{"version":3,"sources":["src/app/core/guards/permission.guard.ts","node_modules/posthog-js/dist/module.js","src/app/store/features/features.actions.ts","src/app/store/features/features.service.ts","src/app/store/features/flags.ts","src/app/store/features/features.state.ts"],"sourcesContent":["import { inject } from '@angular/core';\nimport { ActivatedRouteSnapshot, Route } from '@angular/router';\nimport { Store } from '@ngxs/store';\nimport { UserState } from 'src/app/store/user/user.state';\n\nexport const RequiredRolesAnnotation = 'requiredRoles';\n\n// PermissionGuard checks wether a user has the requiredPermissions to access a route.\nexport const PermissionGuard = async (snapshot: ActivatedRouteSnapshot) => {\n const store = inject(Store);\n\n if (!snapshot.data || !snapshot.data[RequiredRolesAnnotation]) return true;\n\n const permissionRoles = store.selectSnapshot(UserState.getPermissionRoles);\n\n return HasPermissionForRoute(permissionRoles, snapshot);\n};\n\nexport const HasPermissionForRoute = (\n permissionRoles: string[],\n route: Route | ActivatedRouteSnapshot\n) => {\n if (!route.data || !route.data[RequiredRolesAnnotation]) return true;\n\n // check wether a user has one of the required permission\n for (const rp of route.data[RequiredRolesAnnotation]) {\n if (permissionRoles?.includes(rp)) {\n return true;\n }\n }\n\n return false;\n};\n","const e = \"undefined\" != typeof window ? window : void 0,\n t = \"undefined\" != typeof globalThis ? globalThis : e,\n i = Array.prototype,\n s = i.forEach,\n n = i.indexOf,\n r = null == t ? void 0 : t.navigator,\n o = null == t ? void 0 : t.document,\n a = null == t ? void 0 : t.location,\n l = null == t ? void 0 : t.fetch,\n c = null != t && t.XMLHttpRequest && \"withCredentials\" in new t.XMLHttpRequest() ? t.XMLHttpRequest : void 0,\n u = null == t ? void 0 : t.AbortController,\n d = null == r ? void 0 : r.userAgent,\n h = null != e ? e : {};\nconst _ = {\n DEBUG: !1,\n LIB_VERSION: \"1.186.1\"\n },\n p = Array.isArray,\n g = Object.prototype,\n f = g.hasOwnProperty,\n v = g.toString,\n m = p || function (e) {\n return \"[object Array]\" === v.call(e);\n },\n y = function (e) {\n return \"function\" == typeof e;\n },\n b = function (e) {\n return e === Object(e) && !m(e);\n },\n w = function (e) {\n if (b(e)) {\n for (const t in e) if (f.call(e, t)) return !1;\n return !0;\n }\n return !1;\n },\n S = function (e) {\n return void 0 === e;\n },\n E = function (e) {\n return \"[object String]\" == v.call(e);\n },\n k = function (e) {\n return E(e) && 0 === e.trim().length;\n },\n x = function (e) {\n return null === e;\n },\n I = function (e) {\n return S(e) || x(e);\n },\n R = function (e) {\n return \"[object Number]\" == v.call(e);\n },\n P = function (e) {\n return \"[object Boolean]\" === v.call(e);\n },\n F = e => e instanceof FormData,\n C = \"[PostHog.js]\",\n T = {\n _log: function (t) {\n if (e && (_.DEBUG || h.POSTHOG_DEBUG) && !S(e.console) && e.console) {\n const r = \"__rrweb_original__\" in e.console[t] ? e.console[t].__rrweb_original__ : e.console[t];\n for (var i = arguments.length, s = new Array(i > 1 ? i - 1 : 0), n = 1; n < i; n++) s[n - 1] = arguments[n];\n r(C, ...s);\n }\n },\n info: function () {\n for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++) t[i] = arguments[i];\n T._log(\"log\", ...t);\n },\n warn: function () {\n for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++) t[i] = arguments[i];\n T._log(\"warn\", ...t);\n },\n error: function () {\n for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++) t[i] = arguments[i];\n T._log(\"error\", ...t);\n },\n critical: function () {\n for (var e = arguments.length, t = new Array(e), i = 0; i < e; i++) t[i] = arguments[i];\n console.error(C, ...t);\n },\n uninitializedWarning: e => {\n T.error(`You must initialize PostHog before calling ${e}`);\n }\n },\n $ = (e, t, i) => {\n if (e.config.disable_external_dependency_loading) return T.warn(`${t} was requested but loading of external scripts is disabled.`), i(\"Loading of external scripts is disabled\");\n const s = () => {\n if (!o) return i(\"document not found\");\n const e = o.createElement(\"script\");\n e.type = \"text/javascript\", e.crossOrigin = \"anonymous\", e.src = t, e.onload = e => i(void 0, e), e.onerror = e => i(e);\n const s = o.querySelectorAll(\"body > script\");\n var n;\n s.length > 0 ? null === (n = s[0].parentNode) || void 0 === n || n.insertBefore(e, s[0]) : o.body.appendChild(e);\n };\n null != o && o.body ? s() : null == o || o.addEventListener(\"DOMContentLoaded\", s);\n };\nh.__PosthogExtensions__ = h.__PosthogExtensions__ || {}, h.__PosthogExtensions__.loadExternalDependency = (e, t, i) => {\n let s = `/static/${t}.js?v=${e.version}`;\n if (\"toolbar\" === t) {\n const e = 3e5;\n s = `${s}&t=${Math.floor(Date.now() / e) * e}`;\n }\n const n = e.requestRouter.endpointFor(\"assets\", s);\n $(e, n, i);\n}, h.__PosthogExtensions__.loadSiteApp = (e, t, i) => {\n const s = e.requestRouter.endpointFor(\"api\", t);\n $(e, s, i);\n};\nconst A = {},\n M = function (e) {\n return e.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, \"\");\n };\nfunction L(e, t, i) {\n if (m(e)) if (s && e.forEach === s) e.forEach(t, i);else if (\"length\" in e && e.length === +e.length) for (let s = 0, n = e.length; s < n; s++) if (s in e && t.call(i, e[s], s) === A) return;\n}\nfunction D(e, t, i) {\n if (!I(e)) {\n if (m(e)) return L(e, t, i);\n if (F(e)) {\n for (const s of e.entries()) if (t.call(i, s[1], s[0]) === A) return;\n } else for (const s in e) if (f.call(e, s) && t.call(i, e[s], s) === A) return;\n }\n}\nconst O = function (e) {\n for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++) i[s - 1] = arguments[s];\n return L(i, function (t) {\n for (const i in t) void 0 !== t[i] && (e[i] = t[i]);\n }), e;\n};\nfunction N(e, t) {\n return -1 !== e.indexOf(t);\n}\nfunction q(e) {\n const t = Object.keys(e);\n let i = t.length;\n const s = new Array(i);\n for (; i--;) s[i] = [t[i], e[t[i]]];\n return s;\n}\nconst B = function (e) {\n try {\n return e();\n } catch {\n return;\n }\n },\n H = function (e) {\n return function () {\n try {\n for (var t = arguments.length, i = new Array(t), s = 0; s < t; s++) i[s] = arguments[s];\n return e.apply(this, i);\n } catch (e) {\n T.critical(\"Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A.\"), T.critical(e);\n }\n };\n },\n U = function (e) {\n const t = {};\n return D(e, function (e, i) {\n E(e) && e.length > 0 && (t[i] = e);\n }), t;\n },\n W = function (e) {\n return e.replace(/^\\$/, \"\");\n };\nfunction z(e, t) {\n return function (e, t) {\n const i = new Set();\n return function e(s, n) {\n if (s !== Object(s)) return t ? t(s, n) : s;\n if (i.has(s)) return;\n let r;\n return i.add(s), m(s) ? (r = [], L(s, t => {\n r.push(e(t));\n })) : (r = {}, D(s, (t, s) => {\n i.has(t) || (r[s] = e(t, s));\n })), r;\n }(e);\n }(e, e => E(e) && !x(t) ? e.slice(0, t) : e);\n}\nconst V = function (e) {\n let t,\n i,\n s,\n n = \"\",\n r = 0;\n for (t = i = 0, r = (e = (e + \"\").replace(/\\r\\n/g, \"\\n\").replace(/\\r/g, \"\\n\")).length, s = 0; s < r; s++) {\n const r = e.charCodeAt(s);\n let o = null;\n r < 128 ? i++ : o = r > 127 && r < 2048 ? String.fromCharCode(r >> 6 | 192, 63 & r | 128) : String.fromCharCode(r >> 12 | 224, r >> 6 & 63 | 128, 63 & r | 128), x(o) || (i > t && (n += e.substring(t, i)), n += o, t = i = s + 1);\n }\n return i > t && (n += e.substring(t, e.length)), n;\n },\n G = function () {\n function t(e) {\n return e && (e.preventDefault = t.preventDefault, e.stopPropagation = t.stopPropagation), e;\n }\n return t.preventDefault = function () {\n this.returnValue = !1;\n }, t.stopPropagation = function () {\n this.cancelBubble = !0;\n }, function (i, s, n, r, o) {\n if (i) {\n if (i.addEventListener && !r) i.addEventListener(s, n, !!o);else {\n const r = \"on\" + s,\n o = i[r];\n i[r] = function (i, s, n) {\n return function (r) {\n if (!(r = r || t(null == e ? void 0 : e.event))) return;\n let o,\n a = !0;\n y(n) && (o = n(r));\n const l = s.call(i, r);\n return !1 !== o && !1 !== l || (a = !1), a;\n };\n }(i, n, o);\n }\n } else T.error(\"No valid element provided to register_event\");\n };\n }();\nfunction j(e) {\n const t = null == e ? void 0 : e.hostname;\n return !!E(t) && \"herokuapp.com\" !== t.split(\".\").slice(-2).join(\".\");\n}\nfunction Q(e, t) {\n for (let i = 0; i < e.length; i++) if (t(e[i])) return e[i];\n}\nlet J;\n!function (e) {\n e.GZipJS = \"gzip-js\", e.Base64 = \"base64\";\n}(J || (J = {}));\nconst Y = [\"fatal\", \"error\", \"warning\", \"log\", \"info\", \"debug\"],\n X = \"$people_distinct_id\",\n K = \"__alias\",\n Z = \"__timers\",\n ee = \"$autocapture_disabled_server_side\",\n te = \"$heatmaps_enabled_server_side\",\n ie = \"$exception_capture_enabled_server_side\",\n se = \"$exception_capture_endpoint_suffix\",\n ne = \"$web_vitals_enabled_server_side\",\n re = \"$dead_clicks_enabled_server_side\",\n oe = \"$web_vitals_allowed_metrics\",\n ae = \"$session_recording_enabled_server_side\",\n le = \"$console_log_recording_enabled_server_side\",\n ce = \"$session_recording_network_payload_capture\",\n ue = \"$session_recording_canvas_recording\",\n de = \"$replay_sample_rate\",\n he = \"$replay_minimum_duration\",\n _e = \"$sesid\",\n pe = \"$session_is_sampled\",\n ge = \"$session_recording_url_trigger_activated_session\",\n fe = \"$session_recording_event_trigger_activated_session\",\n ve = \"$enabled_feature_flags\",\n me = \"$early_access_features\",\n ye = \"$stored_person_properties\",\n be = \"$stored_group_properties\",\n we = \"$surveys\",\n Se = \"$surveys_activated\",\n Ee = \"$flag_call_reported\",\n ke = \"$user_state\",\n xe = \"$client_session_props\",\n Ie = \"$capture_rate_limit\",\n Re = \"$initial_campaign_params\",\n Pe = \"$initial_referrer_info\",\n Fe = \"$initial_person_info\",\n Ce = \"$epp\",\n Te = \"__POSTHOG_TOOLBAR__\",\n $e = [X, K, \"__cmpns\", Z, ae, te, _e, ve, ke, me, be, ye, we, Ee, xe, Ie, Re, Pe, Ce],\n Ae = \"$active_feature_flags\",\n Me = \"$override_feature_flags\",\n Le = \"$feature_flag_payloads\",\n De = e => {\n const t = {};\n for (const [i, s] of q(e || {})) s && (t[i] = s);\n return t;\n };\nclass Oe {\n constructor(e) {\n this.instance = e, this._override_warning = !1, this.featureFlagEventHandlers = [], this.reloadFeatureFlagsQueued = !1, this.reloadFeatureFlagsInAction = !1;\n }\n getFlags() {\n return Object.keys(this.getFlagVariants());\n }\n getFlagVariants() {\n const e = this.instance.get_property(ve),\n t = this.instance.get_property(Me);\n if (!t) return e || {};\n const i = O({}, e),\n s = Object.keys(t);\n for (let e = 0; e < s.length; e++) i[s[e]] = t[s[e]];\n return this._override_warning || (T.warn(\" Overriding feature flags!\", {\n enabledFlags: e,\n overriddenFlags: t,\n finalFlags: i\n }), this._override_warning = !0), i;\n }\n getFlagPayloads() {\n return this.instance.get_property(Le) || {};\n }\n reloadFeatureFlags() {\n this.reloadFeatureFlagsQueued || (this.reloadFeatureFlagsQueued = !0, this._startReloadTimer());\n }\n setAnonymousDistinctId(e) {\n this.$anon_distinct_id = e;\n }\n setReloadingPaused(e) {\n this.reloadFeatureFlagsInAction = e;\n }\n resetRequestQueue() {\n this.reloadFeatureFlagsQueued = !1;\n }\n _startReloadTimer() {\n this.reloadFeatureFlagsQueued && !this.reloadFeatureFlagsInAction && setTimeout(() => {\n !this.reloadFeatureFlagsInAction && this.reloadFeatureFlagsQueued && (this.reloadFeatureFlagsQueued = !1, this._reloadFeatureFlagsRequest());\n }, 5);\n }\n _reloadFeatureFlagsRequest() {\n if (this.instance.config.advanced_disable_feature_flags) return;\n this.setReloadingPaused(!0);\n const e = this.instance.config.token,\n t = this.instance.get_property(ye),\n i = this.instance.get_property(be),\n s = {\n token: e,\n distinct_id: this.instance.get_distinct_id(),\n groups: this.instance.getGroups(),\n $anon_distinct_id: this.$anon_distinct_id,\n person_properties: t,\n group_properties: i,\n disable_flags: this.instance.config.advanced_disable_feature_flags || void 0\n };\n this.instance._send_request({\n method: \"POST\",\n url: this.instance.requestRouter.endpointFor(\"api\", \"/decide/?v=3\"),\n data: s,\n compression: this.instance.config.disable_compression ? void 0 : J.Base64,\n timeout: this.instance.config.feature_flag_request_timeout_ms,\n callback: e => {\n var t;\n this.setReloadingPaused(!1);\n let i = !0;\n 200 === e.statusCode && (this.$anon_distinct_id = void 0, i = !1), this.receivedFeatureFlags(null !== (t = e.json) && void 0 !== t ? t : {}, i), this._startReloadTimer();\n }\n });\n }\n getFeatureFlag(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n if (!(this.instance.decideEndpointWasHit || this.getFlags() && this.getFlags().length > 0)) return void T.warn('getFeatureFlag for key \"' + e + \"\\\" failed. Feature flags didn't load in time.\");\n const i = this.getFlagVariants()[e],\n s = `${i}`,\n n = this.instance.get_property(Ee) || {};\n var r;\n !t.send_event && \"send_event\" in t || e in n && n[e].includes(s) || (m(n[e]) ? n[e].push(s) : n[e] = [s], null === (r = this.instance.persistence) || void 0 === r || r.register({\n [Ee]: n\n }), this.instance.capture(\"$feature_flag_called\", {\n $feature_flag: e,\n $feature_flag_response: i\n }));\n return i;\n }\n getFeatureFlagPayload(e) {\n return this.getFlagPayloads()[e];\n }\n isFeatureEnabled(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n if (this.instance.decideEndpointWasHit || this.getFlags() && this.getFlags().length > 0) return !!this.getFeatureFlag(e, t);\n T.warn('isFeatureEnabled for key \"' + e + \"\\\" failed. Feature flags didn't load in time.\");\n }\n addFeatureFlagsHandler(e) {\n this.featureFlagEventHandlers.push(e);\n }\n removeFeatureFlagsHandler(e) {\n this.featureFlagEventHandlers = this.featureFlagEventHandlers.filter(t => t !== e);\n }\n receivedFeatureFlags(e, t) {\n if (!this.instance.persistence) return;\n this.instance.decideEndpointWasHit = !0;\n const i = this.getFlagVariants(),\n s = this.getFlagPayloads();\n !function (e, t) {\n let i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},\n s = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : {};\n const n = e.featureFlags,\n r = e.featureFlagPayloads;\n if (!n) return;\n if (m(n)) {\n const e = {};\n if (n) for (let t = 0; t < n.length; t++) e[n[t]] = !0;\n return void (t && t.register({\n [Ae]: n,\n [ve]: e\n }));\n }\n let o = n,\n a = r;\n e.errorsWhileComputingFlags && (o = {\n ...i,\n ...o\n }, a = {\n ...s,\n ...a\n }), t && t.register({\n [Ae]: Object.keys(De(o)),\n [ve]: o || {},\n [Le]: a || {}\n });\n }(e, this.instance.persistence, i, s), this._fireFeatureFlagsCallbacks(t);\n }\n override(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];\n if (!this.instance.__loaded || !this.instance.persistence) return T.uninitializedWarning(\"posthog.feature_flags.override\");\n if (this._override_warning = t, !1 === e) this.instance.persistence.unregister(Me);else if (m(e)) {\n const t = {};\n for (let i = 0; i < e.length; i++) t[e[i]] = !0;\n this.instance.persistence.register({\n [Me]: t\n });\n } else this.instance.persistence.register({\n [Me]: e\n });\n }\n onFeatureFlags(e) {\n if (this.addFeatureFlagsHandler(e), this.instance.decideEndpointWasHit) {\n const {\n flags: t,\n flagVariants: i\n } = this._prepareFeatureFlagsForCallbacks();\n e(t, i);\n }\n return () => this.removeFeatureFlagsHandler(e);\n }\n updateEarlyAccessFeatureEnrollment(e, t) {\n var i;\n const s = {\n [`$feature_enrollment/${e}`]: t\n };\n this.instance.capture(\"$feature_enrollment_update\", {\n $feature_flag: e,\n $feature_enrollment: t,\n $set: s\n }), this.setPersonPropertiesForFlags(s, !1);\n const n = {\n ...this.getFlagVariants(),\n [e]: t\n };\n null === (i = this.instance.persistence) || void 0 === i || i.register({\n [Ae]: Object.keys(De(n)),\n [ve]: n\n }), this._fireFeatureFlagsCallbacks();\n }\n getEarlyAccessFeatures(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];\n const i = this.instance.get_property(me);\n if (i && !t) return e(i);\n this.instance._send_request({\n transport: \"XHR\",\n url: this.instance.requestRouter.endpointFor(\"api\", `/api/early_access_features/?token=${this.instance.config.token}`),\n method: \"GET\",\n callback: t => {\n var i;\n if (!t.json) return;\n const s = t.json.earlyAccessFeatures;\n return null === (i = this.instance.persistence) || void 0 === i || i.register({\n [me]: s\n }), e(s);\n }\n });\n }\n _prepareFeatureFlagsForCallbacks() {\n const e = this.getFlags(),\n t = this.getFlagVariants();\n return {\n flags: e.filter(e => t[e]),\n flagVariants: Object.keys(t).filter(e => t[e]).reduce((e, i) => (e[i] = t[i], e), {})\n };\n }\n _fireFeatureFlagsCallbacks(e) {\n const {\n flags: t,\n flagVariants: i\n } = this._prepareFeatureFlagsForCallbacks();\n this.featureFlagEventHandlers.forEach(s => s(t, i, {\n errorsLoading: e\n }));\n }\n setPersonPropertiesForFlags(e) {\n let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];\n const i = this.instance.get_property(ye) || {};\n this.instance.register({\n [ye]: {\n ...i,\n ...e\n }\n }), t && this.instance.reloadFeatureFlags();\n }\n resetPersonPropertiesForFlags() {\n this.instance.unregister(ye);\n }\n setGroupPropertiesForFlags(e) {\n let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];\n const i = this.instance.get_property(be) || {};\n 0 !== Object.keys(i).length && Object.keys(i).forEach(t => {\n i[t] = {\n ...i[t],\n ...e[t]\n }, delete e[t];\n }), this.instance.register({\n [be]: {\n ...i,\n ...e\n }\n }), t && this.instance.reloadFeatureFlags();\n }\n resetGroupPropertiesForFlags(e) {\n if (e) {\n const t = this.instance.get_property(be) || {};\n this.instance.register({\n [be]: {\n ...t,\n [e]: {}\n }\n });\n } else this.instance.unregister(be);\n }\n}\n/**\n * uuidv7: An experimental implementation of the proposed UUID Version 7\n *\n * @license Apache-2.0\n * @copyright 2021-2023 LiosK\n * @packageDocumentation\n *\n * from https://github.com/LiosK/uuidv7/blob/e501462ea3d23241de13192ceae726956f9b3b7d/src/index.ts\n */\nMath.trunc || (Math.trunc = function (e) {\n return e < 0 ? Math.ceil(e) : Math.floor(e);\n}), Number.isInteger || (Number.isInteger = function (e) {\n return R(e) && isFinite(e) && Math.floor(e) === e;\n});\nconst Ne = \"0123456789abcdef\";\nclass qe {\n constructor(e) {\n if (this.bytes = e, 16 !== e.length) throw new TypeError(\"not 128-bit length\");\n }\n static fromFieldsV7(e, t, i, s) {\n if (!Number.isInteger(e) || !Number.isInteger(t) || !Number.isInteger(i) || !Number.isInteger(s) || e < 0 || t < 0 || i < 0 || s < 0 || e > 0xffffffffffff || t > 4095 || i > 1073741823 || s > 4294967295) throw new RangeError(\"invalid field value\");\n const n = new Uint8Array(16);\n return n[0] = e / 2 ** 40, n[1] = e / 2 ** 32, n[2] = e / 2 ** 24, n[3] = e / 65536, n[4] = e / 256, n[5] = e, n[6] = 112 | t >>> 8, n[7] = t, n[8] = 128 | i >>> 24, n[9] = i >>> 16, n[10] = i >>> 8, n[11] = i, n[12] = s >>> 24, n[13] = s >>> 16, n[14] = s >>> 8, n[15] = s, new qe(n);\n }\n toString() {\n let e = \"\";\n for (let t = 0; t < this.bytes.length; t++) e = e + Ne.charAt(this.bytes[t] >>> 4) + Ne.charAt(15 & this.bytes[t]), 3 !== t && 5 !== t && 7 !== t && 9 !== t || (e += \"-\");\n if (36 !== e.length) throw new Error(\"Invalid UUIDv7 was generated\");\n return e;\n }\n clone() {\n return new qe(this.bytes.slice(0));\n }\n equals(e) {\n return 0 === this.compareTo(e);\n }\n compareTo(e) {\n for (let t = 0; t < 16; t++) {\n const i = this.bytes[t] - e.bytes[t];\n if (0 !== i) return Math.sign(i);\n }\n return 0;\n }\n}\nclass Be {\n timestamp = 0;\n counter = 0;\n random = new We();\n generate() {\n const e = this.generateOrAbort();\n if (S(e)) {\n this.timestamp = 0;\n const e = this.generateOrAbort();\n if (S(e)) throw new Error(\"Could not generate UUID after timestamp reset\");\n return e;\n }\n return e;\n }\n generateOrAbort() {\n const e = Date.now();\n if (e > this.timestamp) this.timestamp = e, this.resetCounter();else {\n if (!(e + 1e4 > this.timestamp)) return;\n this.counter++, this.counter > 4398046511103 && (this.timestamp++, this.resetCounter());\n }\n return qe.fromFieldsV7(this.timestamp, Math.trunc(this.counter / 2 ** 30), this.counter & 2 ** 30 - 1, this.random.nextUint32());\n }\n resetCounter() {\n this.counter = 1024 * this.random.nextUint32() + (1023 & this.random.nextUint32());\n }\n}\nlet He,\n Ue = e => {\n if (\"undefined\" != typeof UUIDV7_DENY_WEAK_RNG && UUIDV7_DENY_WEAK_RNG) throw new Error(\"no cryptographically strong RNG available\");\n for (let t = 0; t < e.length; t++) e[t] = 65536 * Math.trunc(65536 * Math.random()) + Math.trunc(65536 * Math.random());\n return e;\n };\ne && !S(e.crypto) && crypto.getRandomValues && (Ue = e => crypto.getRandomValues(e));\nclass We {\n buffer = new Uint32Array(8);\n cursor = 1 / 0;\n nextUint32() {\n return this.cursor >= this.buffer.length && (Ue(this.buffer), this.cursor = 0), this.buffer[this.cursor++];\n }\n}\nconst ze = () => Ve().toString(),\n Ve = () => (He || (He = new Be())).generate(),\n Ge = \"Thu, 01 Jan 1970 00:00:00 GMT\";\nlet je = \"\";\nconst Qe = /[a-z0-9][a-z0-9-]+\\.[a-z]{2,}$/i;\nfunction Je(e, t) {\n if (t) {\n let t = function (e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : o;\n if (je) return je;\n if (!t) return \"\";\n if ([\"localhost\", \"127.0.0.1\"].includes(e)) return \"\";\n const i = e.split(\".\");\n let s = Math.min(i.length, 8);\n const n = \"dmn_chk_\" + ze(),\n r = new RegExp(\"(^|;)\\\\s*\" + n + \"=1\");\n for (; !je && s--;) {\n const e = i.slice(s).join(\".\"),\n o = n + \"=1;domain=.\" + e;\n t.cookie = o, r.test(t.cookie) && (t.cookie = o + \";expires=\" + Ge, je = e);\n }\n return je;\n }(e);\n if (!t) {\n const i = (e => {\n const t = e.match(Qe);\n return t ? t[0] : \"\";\n })(e);\n i !== t && T.info(\"Warning: cookie subdomain discovery mismatch\", i, t), t = i;\n }\n return t ? \"; domain=.\" + t : \"\";\n }\n return \"\";\n}\nconst Ye = {\n is_supported: () => !!o,\n error: function (e) {\n T.error(\"cookieStore error: \" + e);\n },\n get: function (e) {\n if (o) {\n try {\n const t = e + \"=\",\n i = o.cookie.split(\";\").filter(e => e.length);\n for (let e = 0; e < i.length; e++) {\n let s = i[e];\n for (; \" \" == s.charAt(0);) s = s.substring(1, s.length);\n if (0 === s.indexOf(t)) return decodeURIComponent(s.substring(t.length, s.length));\n }\n } catch {}\n return null;\n }\n },\n parse: function (e) {\n let t;\n try {\n t = JSON.parse(Ye.get(e)) || {};\n } catch {}\n return t;\n },\n set: function (e, t, i, s, n) {\n if (o) try {\n let r = \"\",\n a = \"\";\n const l = Je(o.location.hostname, s);\n if (i) {\n const e = new Date();\n e.setTime(e.getTime() + 24 * i * 60 * 60 * 1e3), r = \"; expires=\" + e.toUTCString();\n }\n n && (a = \"; secure\");\n const c = e + \"=\" + encodeURIComponent(JSON.stringify(t)) + r + \"; SameSite=Lax; path=/\" + l + a;\n return c.length > 3686.4 && T.warn(\"cookieStore warning: large cookie, len=\" + c.length), o.cookie = c, c;\n } catch {\n return;\n }\n },\n remove: function (e, t) {\n try {\n Ye.set(e, \"\", -1, t);\n } catch {\n return;\n }\n }\n};\nlet Xe = null;\nconst Ke = {\n is_supported: function () {\n if (!x(Xe)) return Xe;\n let t = !0;\n if (S(e)) t = !1;else try {\n const e = \"__mplssupport__\",\n i = \"xyz\";\n Ke.set(e, i), '\"xyz\"' !== Ke.get(e) && (t = !1), Ke.remove(e);\n } catch {\n t = !1;\n }\n return t || T.error(\"localStorage unsupported; falling back to cookie store\"), Xe = t, t;\n },\n error: function (e) {\n T.error(\"localStorage error: \" + e);\n },\n get: function (t) {\n try {\n return null == e ? void 0 : e.localStorage.getItem(t);\n } catch (e) {\n Ke.error(e);\n }\n return null;\n },\n parse: function (e) {\n try {\n return JSON.parse(Ke.get(e)) || {};\n } catch {}\n return null;\n },\n set: function (t, i) {\n try {\n null == e || e.localStorage.setItem(t, JSON.stringify(i));\n } catch (e) {\n Ke.error(e);\n }\n },\n remove: function (t) {\n try {\n null == e || e.localStorage.removeItem(t);\n } catch (e) {\n Ke.error(e);\n }\n }\n },\n Ze = [\"distinct_id\", _e, pe, Ce],\n et = {\n ...Ke,\n parse: function (e) {\n try {\n let t = {};\n try {\n t = Ye.parse(e) || {};\n } catch {}\n const i = O(t, JSON.parse(Ke.get(e) || \"{}\"));\n return Ke.set(e, i), i;\n } catch {}\n return null;\n },\n set: function (e, t, i, s, n, r) {\n try {\n Ke.set(e, t, void 0, void 0, r);\n const o = {};\n Ze.forEach(e => {\n t[e] && (o[e] = t[e]);\n }), Object.keys(o).length && Ye.set(e, o, i, s, n, r);\n } catch (e) {\n Ke.error(e);\n }\n },\n remove: function (t, i) {\n try {\n null == e || e.localStorage.removeItem(t), Ye.remove(t, i);\n } catch (e) {\n Ke.error(e);\n }\n }\n },\n tt = {},\n it = {\n is_supported: function () {\n return !0;\n },\n error: function (e) {\n T.error(\"memoryStorage error: \" + e);\n },\n get: function (e) {\n return tt[e] || null;\n },\n parse: function (e) {\n return tt[e] || null;\n },\n set: function (e, t) {\n tt[e] = t;\n },\n remove: function (e) {\n delete tt[e];\n }\n };\nlet st = null;\nconst nt = {\n is_supported: function () {\n if (!x(st)) return st;\n if (st = !0, S(e)) st = !1;else try {\n const e = \"__support__\",\n t = \"xyz\";\n nt.set(e, t), '\"xyz\"' !== nt.get(e) && (st = !1), nt.remove(e);\n } catch {\n st = !1;\n }\n return st;\n },\n error: function (e) {\n T.error(\"sessionStorage error: \", e);\n },\n get: function (t) {\n try {\n return null == e ? void 0 : e.sessionStorage.getItem(t);\n } catch (e) {\n nt.error(e);\n }\n return null;\n },\n parse: function (e) {\n try {\n return JSON.parse(nt.get(e)) || null;\n } catch {}\n return null;\n },\n set: function (t, i) {\n try {\n null == e || e.sessionStorage.setItem(t, JSON.stringify(i));\n } catch (e) {\n nt.error(e);\n }\n },\n remove: function (t) {\n try {\n null == e || e.sessionStorage.removeItem(t);\n } catch (e) {\n nt.error(e);\n }\n }\n },\n rt = [\"localhost\", \"127.0.0.1\"],\n ot = e => {\n const t = null == o ? void 0 : o.createElement(\"a\");\n return S(t) ? null : (t.href = e, t);\n },\n at = function (e, t) {\n return !!function (e) {\n try {\n new RegExp(e);\n } catch {\n return !1;\n }\n return !0;\n }(t) && new RegExp(t).test(e);\n },\n lt = function (e) {\n let t,\n i,\n s = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : \"&\";\n const n = [];\n return D(e, function (e, s) {\n S(e) || S(s) || \"undefined\" === s || (t = encodeURIComponent((e => e instanceof File)(e) ? e.name : e.toString()), i = encodeURIComponent(s), n[n.length] = i + \"=\" + t);\n }), n.join(s);\n },\n ct = function (e, t) {\n const i = ((e.split(\"#\")[0] || \"\").split(\"?\")[1] || \"\").split(\"&\");\n let s;\n for (let e = 0; e < i.length; e++) {\n const n = i[e].split(\"=\");\n if (n[0] === t) {\n s = n;\n break;\n }\n }\n if (!m(s) || s.length < 2) return \"\";\n {\n let e = s[1];\n try {\n e = decodeURIComponent(e);\n } catch {\n T.error(\"Skipping decoding for malformed query param: \" + e);\n }\n return e.replace(/\\+/g, \" \");\n }\n },\n ut = function (e, t) {\n const i = e.match(new RegExp(t + \"=([^&]*)\"));\n return i ? i[1] : null;\n },\n dt = \"Mobile\",\n ht = \"iOS\",\n _t = \"Android\",\n pt = \"Tablet\",\n gt = _t + \" \" + pt,\n ft = \"iPad\",\n vt = \"Apple\",\n mt = vt + \" Watch\",\n yt = \"Safari\",\n bt = \"BlackBerry\",\n wt = \"Samsung\",\n St = wt + \"Browser\",\n Et = wt + \" Internet\",\n kt = \"Chrome\",\n xt = kt + \" OS\",\n It = kt + \" \" + ht,\n Rt = \"Internet Explorer\",\n Pt = Rt + \" \" + dt,\n Ft = \"Opera\",\n Ct = Ft + \" Mini\",\n Tt = \"Edge\",\n $t = \"Microsoft \" + Tt,\n At = \"Firefox\",\n Mt = At + \" \" + ht,\n Lt = \"Nintendo\",\n Dt = \"PlayStation\",\n Ot = \"Xbox\",\n Nt = _t + \" \" + dt,\n qt = dt + \" \" + yt,\n Bt = \"Windows\",\n Ht = Bt + \" Phone\",\n Ut = \"Nokia\",\n Wt = \"Ouya\",\n zt = \"Generic\",\n Vt = zt + \" \" + dt.toLowerCase(),\n Gt = zt + \" \" + pt.toLowerCase(),\n jt = \"Konqueror\",\n Qt = \"(\\\\d+(\\\\.\\\\d+)?)\",\n Jt = new RegExp(\"Version/\" + Qt),\n Yt = new RegExp(Ot, \"i\"),\n Xt = new RegExp(Dt + \" \\\\w+\", \"i\"),\n Kt = new RegExp(Lt + \" \\\\w+\", \"i\"),\n Zt = new RegExp(bt + \"|PlayBook|BB10\", \"i\"),\n ei = {\n \"NT3.51\": \"NT 3.11\",\n \"NT4.0\": \"NT 4.0\",\n \"5.0\": \"2000\",\n 5.1: \"XP\",\n 5.2: \"XP\",\n \"6.0\": \"Vista\",\n 6.1: \"7\",\n 6.2: \"8\",\n 6.3: \"8.1\",\n 6.4: \"10\",\n \"10.0\": \"10\"\n };\nconst ti = (e, t) => t && N(t, vt) || function (e) {\n return N(e, yt) && !N(e, kt) && !N(e, _t);\n }(e),\n ii = function (e, t) {\n return t = t || \"\", N(e, \" OPR/\") && N(e, \"Mini\") ? Ct : N(e, \" OPR/\") ? Ft : Zt.test(e) ? bt : N(e, \"IE\" + dt) || N(e, \"WPDesktop\") ? Pt : N(e, St) ? Et : N(e, Tt) || N(e, \"Edg/\") ? $t : N(e, \"FBIOS\") ? \"Facebook \" + dt : N(e, \"UCWEB\") || N(e, \"UCBrowser\") ? \"UC Browser\" : N(e, \"CriOS\") ? It : N(e, \"CrMo\") ? kt : N(e, _t) && N(e, yt) ? Nt : N(e, kt) ? kt : N(e, \"FxiOS\") ? Mt : N(e.toLowerCase(), jt.toLowerCase()) ? jt : ti(e, t) ? N(e, dt) ? qt : yt : N(e, At) ? At : N(e, \"MSIE\") || N(e, \"Trident/\") ? Rt : N(e, \"Gecko\") ? At : \"\";\n },\n si = {\n [Pt]: [new RegExp(\"rv:\" + Qt)],\n [$t]: [new RegExp(Tt + \"?\\\\/\" + Qt)],\n [kt]: [new RegExp(\"(\" + kt + \"|CrMo)\\\\/\" + Qt)],\n [It]: [new RegExp(\"CriOS\\\\/\" + Qt)],\n \"UC Browser\": [new RegExp(\"(UCBrowser|UCWEB)\\\\/\" + Qt)],\n [yt]: [Jt],\n [qt]: [Jt],\n [Ft]: [new RegExp(\"(Opera|OPR)\\\\/\" + Qt)],\n [At]: [new RegExp(At + \"\\\\/\" + Qt)],\n [Mt]: [new RegExp(\"FxiOS\\\\/\" + Qt)],\n [jt]: [new RegExp(\"Konqueror[:/]?\" + Qt, \"i\")],\n [bt]: [new RegExp(bt + \" \" + Qt), Jt],\n [Nt]: [new RegExp(\"android\\\\s\" + Qt, \"i\")],\n [Et]: [new RegExp(St + \"\\\\/\" + Qt)],\n [Rt]: [new RegExp(\"(rv:|MSIE )\" + Qt)],\n Mozilla: [new RegExp(\"rv:\" + Qt)]\n },\n ni = [[new RegExp(Ot + \"; \" + Ot + \" (.*?)[);]\", \"i\"), e => [Ot, e && e[1] || \"\"]], [new RegExp(Lt, \"i\"), [Lt, \"\"]], [new RegExp(Dt, \"i\"), [Dt, \"\"]], [Zt, [bt, \"\"]], [new RegExp(Bt, \"i\"), (e, t) => {\n if (/Phone/.test(t) || /WPDesktop/.test(t)) return [Ht, \"\"];\n if (new RegExp(dt).test(t) && !/IEMobile\\b/.test(t)) return [Bt + \" \" + dt, \"\"];\n const i = /Windows NT ([0-9.]+)/i.exec(t);\n if (i && i[1]) {\n const e = i[1];\n let s = ei[e] || \"\";\n return /arm/i.test(t) && (s = \"RT\"), [Bt, s];\n }\n return [Bt, \"\"];\n }], [/((iPhone|iPad|iPod).*?OS (\\d+)_(\\d+)_?(\\d+)?|iPhone)/, e => {\n if (e && e[3]) {\n const t = [e[3], e[4], e[5] || \"0\"];\n return [ht, t.join(\".\")];\n }\n return [ht, \"\"];\n }], [/(watch.*\\/(\\d+\\.\\d+\\.\\d+)|watch os,(\\d+\\.\\d+),)/i, e => {\n let t = \"\";\n return e && e.length >= 3 && (t = S(e[2]) ? e[3] : e[2]), [\"watchOS\", t];\n }], [new RegExp(\"(\" + _t + \" (\\\\d+)\\\\.(\\\\d+)\\\\.?(\\\\d+)?|\" + _t + \")\", \"i\"), e => {\n if (e && e[2]) {\n const t = [e[2], e[3], e[4] || \"0\"];\n return [_t, t.join(\".\")];\n }\n return [_t, \"\"];\n }], [/Mac OS X (\\d+)[_.](\\d+)[_.]?(\\d+)?/i, e => {\n const t = [\"Mac OS X\", \"\"];\n if (e && e[1]) {\n const i = [e[1], e[2], e[3] || \"0\"];\n t[1] = i.join(\".\");\n }\n return t;\n }], [/Mac/i, [\"Mac OS X\", \"\"]], [/CrOS/, [xt, \"\"]], [/Linux|debian/i, [\"Linux\", \"\"]]],\n ri = function (e) {\n return Kt.test(e) ? Lt : Xt.test(e) ? Dt : Yt.test(e) ? Ot : new RegExp(Wt, \"i\").test(e) ? Wt : new RegExp(\"(\" + Ht + \"|WPDesktop)\", \"i\").test(e) ? Ht : /iPad/.test(e) ? ft : /iPod/.test(e) ? \"iPod Touch\" : /iPhone/.test(e) ? \"iPhone\" : /(watch)(?: ?os[,/]|\\d,\\d\\/)[\\d.]+/i.test(e) ? mt : Zt.test(e) ? bt : /(kobo)\\s(ereader|touch)/i.test(e) ? \"Kobo\" : new RegExp(Ut, \"i\").test(e) ? Ut : /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i.test(e) || /(kf[a-z]+)( bui|\\)).+silk\\//i.test(e) ? \"Kindle Fire\" : /(Android|ZTE)/i.test(e) ? !new RegExp(dt).test(e) || /(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e) ? /pixel[\\daxl ]{1,6}/i.test(e) && !/pixel c/i.test(e) || /(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e) || /lmy47v/i.test(e) && !/QTAQZ3/i.test(e) ? _t : gt : _t : new RegExp(\"(pda|\" + dt + \")\", \"i\").test(e) ? Vt : new RegExp(pt, \"i\").test(e) && !new RegExp(pt + \" pc\", \"i\").test(e) ? Gt : \"\";\n },\n oi = \"https?://(.*)\",\n ai = [\"utm_source\", \"utm_medium\", \"utm_campaign\", \"utm_content\", \"utm_term\", \"gclid\", \"gad_source\", \"gclsrc\", \"dclid\", \"gbraid\", \"wbraid\", \"fbclid\", \"msclkid\", \"twclid\", \"li_fat_id\", \"mc_cid\", \"igshid\", \"ttclid\", \"rdt_cid\"],\n li = {\n campaignParams: function (e) {\n return o ? this._campaignParamsFromUrl(o.URL, e) : {};\n },\n _campaignParamsFromUrl: function (e, t) {\n const i = ai.concat(t || []),\n s = {};\n return D(i, function (t) {\n const i = ct(e, t);\n s[t] = i || null;\n }), s;\n },\n _searchEngine: function (e) {\n return e ? 0 === e.search(oi + \"google.([^/?]*)\") ? \"google\" : 0 === e.search(oi + \"bing.com\") ? \"bing\" : 0 === e.search(oi + \"yahoo.com\") ? \"yahoo\" : 0 === e.search(oi + \"duckduckgo.com\") ? \"duckduckgo\" : null : null;\n },\n _searchInfoFromReferrer: function (e) {\n const t = li._searchEngine(e),\n i = \"yahoo\" != t ? \"q\" : \"p\",\n s = {};\n if (!x(t)) {\n s.$search_engine = t;\n const e = o ? ct(o.referrer, i) : \"\";\n e.length && (s.ph_keyword = e);\n }\n return s;\n },\n searchInfo: function () {\n const e = null == o ? void 0 : o.referrer;\n return e ? this._searchInfoFromReferrer(e) : {};\n },\n browser: ii,\n browserVersion: function (e, t) {\n const i = ii(e, t),\n s = si[i];\n if (S(s)) return null;\n for (let t = 0; t < s.length; t++) {\n const i = s[t],\n n = e.match(i);\n if (n) return parseFloat(n[n.length - 2]);\n }\n return null;\n },\n browserLanguage: function () {\n return navigator.language || navigator.userLanguage;\n },\n os: function (e) {\n for (let t = 0; t < ni.length; t++) {\n const [i, s] = ni[t],\n n = i.exec(e),\n r = n && (y(s) ? s(n, e) : s);\n if (r) return r;\n }\n return [\"\", \"\"];\n },\n device: ri,\n deviceType: function (e) {\n const t = ri(e);\n return t === ft || t === gt || \"Kobo\" === t || \"Kindle Fire\" === t || t === Gt ? pt : t === Lt || t === Ot || t === Dt || t === Wt ? \"Console\" : t === mt ? \"Wearable\" : t ? dt : \"Desktop\";\n },\n referrer: function () {\n return (null == o ? void 0 : o.referrer) || \"$direct\";\n },\n referringDomain: function () {\n var e;\n return null != o && o.referrer && (null === (e = ot(o.referrer)) || void 0 === e ? void 0 : e.host) || \"$direct\";\n },\n referrerInfo: function () {\n return {\n $referrer: this.referrer(),\n $referring_domain: this.referringDomain()\n };\n },\n initialPersonInfo: function () {\n return {\n r: this.referrer(),\n u: null == a ? void 0 : a.href\n };\n },\n initialPersonPropsFromInfo: function (e) {\n var t;\n const {\n r: i,\n u: s\n } = e,\n n = {\n $initial_referrer: i,\n $initial_referring_domain: null == i ? void 0 : \"$direct\" == i ? \"$direct\" : null === (t = ot(i)) || void 0 === t ? void 0 : t.host\n };\n if (s) {\n n.$initial_current_url = s;\n const e = ot(s);\n n.$initial_host = null == e ? void 0 : e.host, n.$initial_pathname = null == e ? void 0 : e.pathname;\n D(this._campaignParamsFromUrl(s), function (e, t) {\n n[\"$initial_\" + W(t)] = e;\n });\n }\n if (i) {\n D(this._searchInfoFromReferrer(i), function (e, t) {\n n[\"$initial_\" + W(t)] = e;\n });\n }\n return n;\n },\n timezone: function () {\n try {\n return Intl.DateTimeFormat().resolvedOptions().timeZone;\n } catch {\n return;\n }\n },\n properties: function () {\n if (!d) return {};\n const [t, i] = li.os(d);\n return O(U({\n $os: t,\n $os_version: i,\n $browser: li.browser(d, navigator.vendor),\n $device: li.device(d),\n $device_type: li.deviceType(d),\n $timezone: li.timezone()\n }), {\n $current_url: null == a ? void 0 : a.href,\n $host: null == a ? void 0 : a.host,\n $pathname: null == a ? void 0 : a.pathname,\n $raw_user_agent: d.length > 1e3 ? d.substring(0, 997) + \"...\" : d,\n $browser_version: li.browserVersion(d, navigator.vendor),\n $browser_language: li.browserLanguage(),\n $screen_height: null == e ? void 0 : e.screen.height,\n $screen_width: null == e ? void 0 : e.screen.width,\n $viewport_height: null == e ? void 0 : e.innerHeight,\n $viewport_width: null == e ? void 0 : e.innerWidth,\n $lib: \"web\",\n $lib_version: _.LIB_VERSION,\n $insert_id: Math.random().toString(36).substring(2, 10) + Math.random().toString(36).substring(2, 10),\n $time: Date.now() / 1e3\n });\n },\n people_properties: function () {\n if (!d) return {};\n const [e, t] = li.os(d);\n return O(U({\n $os: e,\n $os_version: t,\n $browser: li.browser(d, navigator.vendor)\n }), {\n $browser_version: li.browserVersion(d, navigator.vendor)\n });\n }\n },\n ci = [\"cookie\", \"localstorage\", \"localstorage+cookie\", \"sessionstorage\", \"memory\"];\nclass ui {\n constructor(e) {\n this.config = e, this.props = {}, this.campaign_params_saved = !1, this.name = (e => {\n let t = \"\";\n return e.token && (t = e.token.replace(/\\+/g, \"PL\").replace(/\\//g, \"SL\").replace(/=/g, \"EQ\")), e.persistence_name ? \"ph_\" + e.persistence_name : \"ph_\" + t + \"_posthog\";\n })(e), this.storage = this.buildStorage(e), this.load(), e.debug && T.info(\"Persistence loaded\", e.persistence, {\n ...this.props\n }), this.update_config(e, e), this.save();\n }\n buildStorage(e) {\n let t;\n -1 === ci.indexOf(e.persistence.toLowerCase()) && (T.critical(\"Unknown persistence type \" + e.persistence + \"; falling back to localStorage+cookie\"), e.persistence = \"localStorage+cookie\");\n const i = e.persistence.toLowerCase();\n return t = \"localstorage\" === i && Ke.is_supported() ? Ke : \"localstorage+cookie\" === i && et.is_supported() ? et : \"sessionstorage\" === i && nt.is_supported() ? nt : \"memory\" === i ? it : \"cookie\" === i ? Ye : et.is_supported() ? et : Ye, t;\n }\n properties() {\n const e = {};\n return D(this.props, function (t, i) {\n if (i === ve && b(t)) {\n const i = Object.keys(t);\n for (let s = 0; s < i.length; s++) e[`$feature/${i[s]}`] = t[i[s]];\n } else (function (e, t) {\n let i = !1;\n return x(e) ? i : n && e.indexOf === n ? -1 != e.indexOf(t) : (D(e, function (e) {\n if (i || (i = e === t)) return A;\n }), i);\n })($e, i) || (e[i] = t);\n }), e;\n }\n load() {\n if (this.disabled) return;\n const e = this.storage.parse(this.name);\n e && (this.props = O({}, e));\n }\n save() {\n this.disabled || this.storage.set(this.name, this.props, this.expire_days, this.cross_subdomain, this.secure, this.config.debug);\n }\n remove() {\n this.storage.remove(this.name, !1), this.storage.remove(this.name, !0);\n }\n clear() {\n this.remove(), this.props = {};\n }\n register_once(e, t, i) {\n if (b(e)) {\n S(t) && (t = \"None\"), this.expire_days = S(i) ? this.default_expiry : i;\n let s = !1;\n if (D(e, (e, i) => {\n this.props.hasOwnProperty(i) && this.props[i] !== t || (this.props[i] = e, s = !0);\n }), s) return this.save(), !0;\n }\n return !1;\n }\n register(e, t) {\n if (b(e)) {\n this.expire_days = S(t) ? this.default_expiry : t;\n let i = !1;\n if (D(e, (t, s) => {\n e.hasOwnProperty(s) && this.props[s] !== t && (this.props[s] = t, i = !0);\n }), i) return this.save(), !0;\n }\n return !1;\n }\n unregister(e) {\n e in this.props && (delete this.props[e], this.save());\n }\n update_campaign_params() {\n if (!this.campaign_params_saved) {\n const e = li.campaignParams(this.config.custom_campaign_params);\n w(U(e)) || this.register(li.campaignParams(this.config.custom_campaign_params)), this.campaign_params_saved = !0;\n }\n }\n update_search_keyword() {\n this.register(li.searchInfo());\n }\n update_referrer_info() {\n this.register_once(li.referrerInfo(), void 0);\n }\n set_initial_person_info() {\n this.props[Re] || this.props[Pe] || this.register_once({\n [Fe]: li.initialPersonInfo()\n }, void 0);\n }\n get_referrer_info() {\n return U({\n $referrer: this.props.$referrer,\n $referring_domain: this.props.$referring_domain\n });\n }\n get_initial_props() {\n const e = {};\n D([Pe, Re], t => {\n const i = this.props[t];\n i && D(i, function (t, i) {\n e[\"$initial_\" + W(i)] = t;\n });\n });\n const t = this.props[Fe];\n if (t) {\n const i = li.initialPersonPropsFromInfo(t);\n O(e, i);\n }\n return e;\n }\n safe_merge(e) {\n return D(this.props, function (t, i) {\n i in e || (e[i] = t);\n }), e;\n }\n update_config(e, t) {\n if (this.default_expiry = this.expire_days = e.cookie_expiration, this.set_disabled(e.disable_persistence), this.set_cross_subdomain(e.cross_subdomain_cookie), this.set_secure(e.secure_cookie), e.persistence !== t.persistence) {\n const t = this.buildStorage(e),\n i = this.props;\n this.clear(), this.storage = t, this.props = i, this.save();\n }\n }\n set_disabled(e) {\n this.disabled = e, this.disabled ? this.remove() : this.save();\n }\n set_cross_subdomain(e) {\n e !== this.cross_subdomain && (this.cross_subdomain = e, this.remove(), this.save());\n }\n get_cross_subdomain() {\n return !!this.cross_subdomain;\n }\n set_secure(e) {\n e !== this.secure && (this.secure = e, this.remove(), this.save());\n }\n set_event_timer(e, t) {\n const i = this.props[Z] || {};\n i[e] = t, this.props[Z] = i, this.save();\n }\n remove_event_timer(e) {\n const t = (this.props[Z] || {})[e];\n return S(t) || (delete this.props[Z][e], this.save()), t;\n }\n get_property(e) {\n return this.props[e];\n }\n set_property(e, t) {\n this.props[e] = t, this.save();\n }\n}\nfunction di(e) {\n var t;\n return (null === (t = JSON.stringify(e, function () {\n const e = [];\n return function (t, i) {\n if (b(i)) {\n for (; e.length > 0 && e.at(-1) !== this;) e.pop();\n return e.includes(i) ? \"[Circular]\" : (e.push(i), i);\n }\n return i;\n };\n }())) || void 0 === t ? void 0 : t.length) || 0;\n}\nfunction hi(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 6606028.8;\n if (e.size >= t && e.data.length > 1) {\n const t = Math.floor(e.data.length / 2),\n i = e.data.slice(0, t),\n s = e.data.slice(t);\n return [hi({\n size: di(i),\n data: i,\n sessionId: e.sessionId,\n windowId: e.windowId\n }), hi({\n size: di(s),\n data: s,\n sessionId: e.sessionId,\n windowId: e.windowId\n })].flatMap(e => e);\n }\n return [e];\n}\nvar _i = (e => (e[e.DomContentLoaded = 0] = \"DomContentLoaded\", e[e.Load = 1] = \"Load\", e[e.FullSnapshot = 2] = \"FullSnapshot\", e[e.IncrementalSnapshot = 3] = \"IncrementalSnapshot\", e[e.Meta = 4] = \"Meta\", e[e.Custom = 5] = \"Custom\", e[e.Plugin = 6] = \"Plugin\", e))(_i || {}),\n pi = (e => (e[e.Mutation = 0] = \"Mutation\", e[e.MouseMove = 1] = \"MouseMove\", e[e.MouseInteraction = 2] = \"MouseInteraction\", e[e.Scroll = 3] = \"Scroll\", e[e.ViewportResize = 4] = \"ViewportResize\", e[e.Input = 5] = \"Input\", e[e.TouchMove = 6] = \"TouchMove\", e[e.MediaInteraction = 7] = \"MediaInteraction\", e[e.StyleSheetRule = 8] = \"StyleSheetRule\", e[e.CanvasMutation = 9] = \"CanvasMutation\", e[e.Font = 10] = \"Font\", e[e.Log = 11] = \"Log\", e[e.Drag = 12] = \"Drag\", e[e.StyleDeclaration = 13] = \"StyleDeclaration\", e[e.Selection = 14] = \"Selection\", e[e.AdoptedStyleSheet = 15] = \"AdoptedStyleSheet\", e[e.CustomElement = 16] = \"CustomElement\", e))(pi || {});\nfunction gi(e) {\n var t;\n return e.id === Te || !(null === (t = e.closest) || void 0 === t || !t.call(e, \".toolbar-global-fade-container\"));\n}\nfunction fi(e) {\n return !!e && 1 === e.nodeType;\n}\nfunction vi(e, t) {\n return !!e && !!e.tagName && e.tagName.toLowerCase() === t.toLowerCase();\n}\nfunction mi(e) {\n return !!e && 3 === e.nodeType;\n}\nfunction yi(e) {\n return !!e && 11 === e.nodeType;\n}\nfunction bi(e) {\n return e ? M(e).split(/\\s+/) : [];\n}\nfunction wi(t) {\n const i = null == e ? void 0 : e.location.href;\n return !!(i && t && t.some(e => i.match(e)));\n}\nfunction Si(e) {\n let t = \"\";\n switch (typeof e.className) {\n case \"string\":\n t = e.className;\n break;\n case \"object\":\n t = (e.className && \"baseVal\" in e.className ? e.className.baseVal : null) || e.getAttribute(\"class\") || \"\";\n break;\n default:\n t = \"\";\n }\n return bi(t);\n}\nfunction Ei(e) {\n return I(e) ? null : M(e).split(/(\\s+)/).filter(e => Oi(e)).join(\"\").replace(/[\\r\\n]/g, \" \").replace(/[ ]+/g, \" \").substring(0, 255);\n}\nfunction ki(e) {\n let t = \"\";\n return Fi(e) && !Ci(e) && e.childNodes && e.childNodes.length && D(e.childNodes, function (e) {\n var i;\n mi(e) && e.textContent && (t += null !== (i = Ei(e.textContent)) && void 0 !== i ? i : \"\");\n }), M(t);\n}\nfunction xi(e) {\n return S(e.target) ? e.srcElement || null : null !== (t = e.target) && void 0 !== t && t.shadowRoot ? e.composedPath()[0] || null : e.target || null;\n var t;\n}\nconst Ii = [\"a\", \"button\", \"form\", \"input\", \"select\", \"textarea\", \"label\"];\nfunction Ri(e) {\n const t = e.parentNode;\n return !(!t || !fi(t)) && t;\n}\nfunction Pi(t, i) {\n let s = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : void 0,\n n = arguments.length > 3 ? arguments[3] : void 0,\n r = arguments.length > 4 ? arguments[4] : void 0;\n if (!e || !t || vi(t, \"html\") || !fi(t)) return !1;\n if (null != s && s.url_allowlist && !wi(s.url_allowlist)) return !1;\n if (null != s && s.url_ignorelist && wi(s.url_ignorelist)) return !1;\n if (null != s && s.dom_event_allowlist) {\n const e = s.dom_event_allowlist;\n if (e && !e.some(e => i.type === e)) return !1;\n }\n let o = !1;\n const a = [t];\n let l = !0,\n c = t;\n for (; c.parentNode && !vi(c, \"body\");) if (yi(c.parentNode)) a.push(c.parentNode.host), c = c.parentNode.host;else {\n if (l = Ri(c), !l) break;\n if (n || Ii.indexOf(l.tagName.toLowerCase()) > -1) o = !0;else {\n const t = e.getComputedStyle(l);\n t && \"pointer\" === t.getPropertyValue(\"cursor\") && (o = !0);\n }\n a.push(l), c = l;\n }\n if (!function (e, t) {\n const i = null == t ? void 0 : t.element_allowlist;\n if (S(i)) return !0;\n for (const t of e) if (i.some(e => t.tagName.toLowerCase() === e)) return !0;\n return !1;\n }(a, s)) return !1;\n if (!function (e, t) {\n const i = null == t ? void 0 : t.css_selector_allowlist;\n if (S(i)) return !0;\n for (const t of e) if (i.some(e => t.matches(e))) return !0;\n return !1;\n }(a, s)) return !1;\n const u = e.getComputedStyle(t);\n if (u && \"pointer\" === u.getPropertyValue(\"cursor\") && \"click\" === i.type) return !0;\n const d = t.tagName.toLowerCase();\n switch (d) {\n case \"html\":\n return !1;\n case \"form\":\n return (r || [\"submit\"]).indexOf(i.type) >= 0;\n case \"input\":\n case \"select\":\n case \"textarea\":\n return (r || [\"change\", \"click\"]).indexOf(i.type) >= 0;\n default:\n return o ? (r || [\"click\"]).indexOf(i.type) >= 0 : (r || [\"click\"]).indexOf(i.type) >= 0 && (Ii.indexOf(d) > -1 || \"true\" === t.getAttribute(\"contenteditable\"));\n }\n}\nfunction Fi(e) {\n for (let t = e; t.parentNode && !vi(t, \"body\"); t = t.parentNode) {\n const e = Si(t);\n if (N(e, \"ph-sensitive\") || N(e, \"ph-no-capture\")) return !1;\n }\n if (N(Si(e), \"ph-include\")) return !0;\n const t = e.type || \"\";\n if (E(t)) switch (t.toLowerCase()) {\n case \"hidden\":\n case \"password\":\n return !1;\n }\n const i = e.name || e.id || \"\";\n if (E(i)) {\n if (/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(i.replace(/[^a-zA-Z0-9]/g, \"\"))) return !1;\n }\n return !0;\n}\nfunction Ci(e) {\n return !!(vi(e, \"input\") && ![\"button\", \"checkbox\", \"submit\", \"reset\"].includes(e.type) || vi(e, \"select\") || vi(e, \"textarea\") || \"true\" === e.getAttribute(\"contenteditable\"));\n}\nconst Ti = \"(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})\",\n $i = new RegExp(`^(?:${Ti})$`),\n Ai = new RegExp(Ti),\n Mi = \"\\\\d{3}-?\\\\d{2}-?\\\\d{4}\",\n Li = new RegExp(`^(${Mi})$`),\n Di = new RegExp(`(${Mi})`);\nfunction Oi(e) {\n let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];\n if (I(e)) return !1;\n if (E(e)) {\n e = M(e);\n if ((t ? $i : Ai).test((e || \"\").replace(/[- ]/g, \"\"))) return !1;\n if ((t ? Li : Di).test(e)) return !1;\n }\n return !0;\n}\nfunction Ni(e) {\n let t = ki(e);\n return t = `${t} ${qi(e)}`.trim(), Oi(t) ? t : \"\";\n}\nfunction qi(e) {\n let t = \"\";\n return e && e.childNodes && e.childNodes.length && D(e.childNodes, function (e) {\n var i;\n if (e && \"span\" === (null === (i = e.tagName) || void 0 === i ? void 0 : i.toLowerCase())) try {\n const i = ki(e);\n t = `${t} ${i}`.trim(), e.childNodes && e.childNodes.length && (t = `${t} ${qi(e)}`.trim());\n } catch (e) {\n T.error(e);\n }\n }), t;\n}\nfunction Bi(e) {\n return function (e) {\n const t = e.map(e => {\n var t, i;\n let s = \"\";\n if (e.tag_name && (s += e.tag_name), e.attr_class) {\n e.attr_class.sort();\n for (const t of e.attr_class) s += `.${t.replace(/\"/g, \"\")}`;\n }\n const n = {\n ...(e.text ? {\n text: e.text\n } : {}),\n \"nth-child\": null !== (t = e.nth_child) && void 0 !== t ? t : 0,\n \"nth-of-type\": null !== (i = e.nth_of_type) && void 0 !== i ? i : 0,\n ...(e.href ? {\n href: e.href\n } : {}),\n ...(e.attr_id ? {\n attr_id: e.attr_id\n } : {}),\n ...e.attributes\n },\n r = {};\n return q(n).sort((e, t) => {\n let [i] = e,\n [s] = t;\n return i.localeCompare(s);\n }).forEach(e => {\n let [t, i] = e;\n return r[Hi(t.toString())] = Hi(i.toString());\n }), s += \":\", s += q(n).map(e => {\n let [t, i] = e;\n return `${t}=\"${i}\"`;\n }).join(\"\"), s;\n });\n return t.join(\";\");\n }(function (e) {\n return e.map(e => {\n var t, i;\n const s = {\n text: null === (t = e.$el_text) || void 0 === t ? void 0 : t.slice(0, 400),\n tag_name: e.tag_name,\n href: null === (i = e.attr__href) || void 0 === i ? void 0 : i.slice(0, 2048),\n attr_class: Ui(e),\n attr_id: e.attr__id,\n nth_child: e.nth_child,\n nth_of_type: e.nth_of_type,\n attributes: {}\n };\n return q(e).filter(e => {\n let [t] = e;\n return 0 === t.indexOf(\"attr__\");\n }).forEach(e => {\n let [t, i] = e;\n return s.attributes[t] = i;\n }), s;\n });\n }(e));\n}\nfunction Hi(e) {\n return e.replace(/\"|\\\\\"/g, '\\\\\"');\n}\nfunction Ui(e) {\n const t = e.attr__class;\n return t ? m(t) ? t : bi(t) : void 0;\n}\nconst Wi = \"[SessionRecording]\",\n zi = \"redacted\",\n Vi = {\n initiatorTypes: [\"audio\", \"beacon\", \"body\", \"css\", \"early-hint\", \"embed\", \"fetch\", \"frame\", \"iframe\", \"icon\", \"image\", \"img\", \"input\", \"link\", \"navigation\", \"object\", \"ping\", \"script\", \"track\", \"video\", \"xmlhttprequest\"],\n maskRequestFn: e => e,\n recordHeaders: !1,\n recordBody: !1,\n recordInitialRequests: !1,\n recordPerformance: !1,\n performanceEntryTypeToObserve: [\"first-input\", \"navigation\", \"paint\", \"resource\"],\n payloadSizeLimitBytes: 1e6,\n payloadHostDenyList: [\".lr-ingest.io\", \".ingest.sentry.io\"]\n },\n Gi = [\"authorization\", \"x-forwarded-for\", \"authorization\", \"cookie\", \"set-cookie\", \"x-api-key\", \"x-real-ip\", \"remote-addr\", \"forwarded\", \"proxy-authorization\", \"x-csrf-token\", \"x-csrftoken\", \"x-xsrf-token\"],\n ji = [\"password\", \"secret\", \"passwd\", \"api_key\", \"apikey\", \"auth\", \"credentials\", \"mysql_pwd\", \"privatekey\", \"private_key\", \"token\"],\n Qi = [\"/s/\", \"/e/\", \"/i/\"];\nfunction Ji(e, t, i, s) {\n if (I(e)) return e;\n let n = (null == t ? void 0 : t[\"content-length\"]) || function (e) {\n return new Blob([e]).size;\n }(e);\n return E(n) && (n = parseInt(n)), n > i ? Wi + ` ${s} body too large to record (${n} bytes)` : e;\n}\nfunction Yi(e, t) {\n if (I(e)) return e;\n let i = e;\n return Oi(i, !1) || (i = Wi + \" \" + t + \" body \" + zi), D(ji, e => {\n var s, n;\n null !== (s = i) && void 0 !== s && s.length && -1 !== (null === (n = i) || void 0 === n ? void 0 : n.indexOf(e)) && (i = Wi + \" \" + t + \" body \" + zi + \" as might contain: \" + e);\n }), i;\n}\nconst Xi = (e, t) => {\n const i = {\n payloadSizeLimitBytes: Vi.payloadSizeLimitBytes,\n performanceEntryTypeToObserve: [...Vi.performanceEntryTypeToObserve],\n payloadHostDenyList: [...(t.payloadHostDenyList || []), ...Vi.payloadHostDenyList]\n },\n s = !1 !== e.session_recording.recordHeaders && t.recordHeaders,\n n = !1 !== e.session_recording.recordBody && t.recordBody,\n r = !1 !== e.capture_performance && t.recordPerformance,\n o = (e => {\n var t;\n const i = Math.min(1e6, null !== (t = e.payloadSizeLimitBytes) && void 0 !== t ? t : 1e6);\n return e => (null != e && e.requestBody && (e.requestBody = Ji(e.requestBody, e.requestHeaders, i, \"Request\")), null != e && e.responseBody && (e.responseBody = Ji(e.responseBody, e.responseHeaders, i, \"Response\")), e);\n })(i),\n a = e => o((e => {\n const t = ot(e.name);\n if (!(t && t.pathname && Qi.some(e => 0 === t.pathname.indexOf(e)))) return e;\n })((e => {\n const t = e.requestHeaders;\n return I(t) || D(Object.keys(null != t ? t : {}), e => {\n Gi.includes(e.toLowerCase()) && (t[e] = zi);\n }), e;\n })(e))),\n l = y(e.session_recording.maskNetworkRequestFn);\n return l && y(e.session_recording.maskCapturedNetworkRequestFn) && T.warn(\"Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored.\"), l && (e.session_recording.maskCapturedNetworkRequestFn = t => {\n const i = e.session_recording.maskNetworkRequestFn({\n url: t.name\n });\n return {\n ...t,\n name: null == i ? void 0 : i.url\n };\n }), i.maskRequestFn = y(e.session_recording.maskCapturedNetworkRequestFn) ? t => {\n var i, s, n;\n const r = a(t);\n return r && null !== (i = null === (s = (n = e.session_recording).maskCapturedNetworkRequestFn) || void 0 === s ? void 0 : s.call(n, r)) && void 0 !== i ? i : void 0;\n } : e => function (e) {\n if (!S(e)) return e.requestBody = Yi(e.requestBody, \"Request\"), e.responseBody = Yi(e.responseBody, \"Response\"), e;\n }(a(e)), {\n ...Vi,\n ...i,\n recordHeaders: s,\n recordBody: n,\n recordPerformance: r,\n recordInitialRequests: r\n };\n};\nfunction Ki(e, t, i, s) {\n return t > i && (T.warn(\"min cannot be greater than max.\"), t = i), R(e) ? e > i ? (s && T.warn(s + \" cannot be greater than max: \" + i + \". Using max value instead.\"), i) : e < t ? (s && T.warn(s + \" cannot be less than min: \" + t + \". Using min value instead.\"), t) : e : (s && T.warn(s + \" must be a number. Defaulting to max value:\" + i), i);\n}\nclass Zi {\n bucketSize = 100;\n refillRate = 10;\n mutationBuckets = {};\n loggedTracker = {};\n constructor(e) {\n var t, i;\n let s = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n this.rrweb = e, this.options = s, this.refillRate = Ki(null !== (t = this.options.refillRate) && void 0 !== t ? t : this.refillRate, 0, 100, \"mutation throttling refill rate\"), this.bucketSize = Ki(null !== (i = this.options.bucketSize) && void 0 !== i ? i : this.bucketSize, 0, 100, \"mutation throttling bucket size\"), setInterval(() => {\n this.refillBuckets();\n }, 1e3);\n }\n refillBuckets = () => {\n Object.keys(this.mutationBuckets).forEach(e => {\n this.mutationBuckets[e] = this.mutationBuckets[e] + this.refillRate, this.mutationBuckets[e] >= this.bucketSize && delete this.mutationBuckets[e];\n });\n };\n getNodeOrRelevantParent = e => {\n const t = this.rrweb.mirror.getNode(e);\n if (\"svg\" !== (null == t ? void 0 : t.nodeName) && t instanceof Element) {\n const e = t.closest(\"svg\");\n if (e) return [this.rrweb.mirror.getId(e), e];\n }\n return [e, t];\n };\n numberOfChanges = e => {\n var t, i, s, n, r, o, a, l;\n return (null !== (t = null === (i = e.removes) || void 0 === i ? void 0 : i.length) && void 0 !== t ? t : 0) + (null !== (s = null === (n = e.attributes) || void 0 === n ? void 0 : n.length) && void 0 !== s ? s : 0) + (null !== (r = null === (o = e.texts) || void 0 === o ? void 0 : o.length) && void 0 !== r ? r : 0) + (null !== (a = null === (l = e.adds) || void 0 === l ? void 0 : l.length) && void 0 !== a ? a : 0);\n };\n throttleMutations = e => {\n if (3 !== e.type || 0 !== e.data.source) return e;\n const t = e.data,\n i = this.numberOfChanges(t);\n t.attributes && (t.attributes = t.attributes.filter(e => {\n var t;\n const [i, s] = this.getNodeOrRelevantParent(e.id);\n if (0 === this.mutationBuckets[i]) return !1;\n var n, r;\n (this.mutationBuckets[i] = null !== (t = this.mutationBuckets[i]) && void 0 !== t ? t : this.bucketSize, this.mutationBuckets[i] = Math.max(this.mutationBuckets[i] - 1, 0), 0 === this.mutationBuckets[i]) && (this.loggedTracker[i] || (this.loggedTracker[i] = !0, null === (n = (r = this.options).onBlockedNode) || void 0 === n || n.call(r, i, s)));\n return e;\n }));\n const s = this.numberOfChanges(t);\n return 0 !== s || i === s ? e : void 0;\n };\n}\nvar es = Uint8Array,\n ts = Uint16Array,\n is = Uint32Array,\n ss = new es([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]),\n ns = new es([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]),\n rs = new es([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]),\n os = function (e, t) {\n for (var i = new ts(31), s = 0; s < 31; ++s) i[s] = t += 1 << e[s - 1];\n var n = new is(i[30]);\n for (s = 1; s < 30; ++s) for (var r = i[s]; r < i[s + 1]; ++r) n[r] = r - i[s] << 5 | s;\n return [i, n];\n },\n as = os(ss, 2),\n ls = as[0],\n cs = as[1];\nls[28] = 258, cs[258] = 28;\nfor (var us = os(ns, 0)[1], ds = new ts(32768), hs = 0; hs < 32768; ++hs) {\n var _s = (43690 & hs) >>> 1 | (21845 & hs) << 1;\n _s = (61680 & (_s = (52428 & _s) >>> 2 | (13107 & _s) << 2)) >>> 4 | (3855 & _s) << 4, ds[hs] = ((65280 & _s) >>> 8 | (255 & _s) << 8) >>> 1;\n}\nvar ps = function (e, t, i) {\n for (var s = e.length, n = 0, r = new ts(t); n < s; ++n) ++r[e[n] - 1];\n var o,\n a = new ts(t);\n for (n = 0; n < t; ++n) a[n] = a[n - 1] + r[n - 1] << 1;\n if (i) {\n o = new ts(1 << t);\n var l = 15 - t;\n for (n = 0; n < s; ++n) if (e[n]) for (var c = n << 4 | e[n], u = t - e[n], d = a[e[n] - 1]++ << u, h = d | (1 << u) - 1; d <= h; ++d) o[ds[d] >>> l] = c;\n } else for (o = new ts(s), n = 0; n < s; ++n) o[n] = ds[a[e[n] - 1]++] >>> 15 - e[n];\n return o;\n },\n gs = new es(288);\nfor (hs = 0; hs < 144; ++hs) gs[hs] = 8;\nfor (hs = 144; hs < 256; ++hs) gs[hs] = 9;\nfor (hs = 256; hs < 280; ++hs) gs[hs] = 7;\nfor (hs = 280; hs < 288; ++hs) gs[hs] = 8;\nvar fs = new es(32);\nfor (hs = 0; hs < 32; ++hs) fs[hs] = 5;\nvar vs = ps(gs, 9, 0),\n ms = ps(fs, 5, 0),\n ys = function (e) {\n return (e / 8 >> 0) + (7 & e && 1);\n },\n bs = function (e, t, i) {\n (null == i || i > e.length) && (i = e.length);\n var s = new (e instanceof ts ? ts : e instanceof is ? is : es)(i - t);\n return s.set(e.subarray(t, i)), s;\n },\n ws = function (e, t, i) {\n i <<= 7 & t;\n var s = t / 8 >> 0;\n e[s] |= i, e[s + 1] |= i >>> 8;\n },\n Ss = function (e, t, i) {\n i <<= 7 & t;\n var s = t / 8 >> 0;\n e[s] |= i, e[s + 1] |= i >>> 8, e[s + 2] |= i >>> 16;\n },\n Es = function (e, t) {\n for (var i = [], s = 0; s < e.length; ++s) e[s] && i.push({\n s: s,\n f: e[s]\n });\n var n = i.length,\n r = i.slice();\n if (!n) return [new es(0), 0];\n if (1 == n) {\n var o = new es(i[0].s + 1);\n return o[i[0].s] = 1, [o, 1];\n }\n i.sort(function (e, t) {\n return e.f - t.f;\n }), i.push({\n s: -1,\n f: 25001\n });\n var a = i[0],\n l = i[1],\n c = 0,\n u = 1,\n d = 2;\n for (i[0] = {\n s: -1,\n f: a.f + l.f,\n l: a,\n r: l\n }; u != n - 1;) a = i[i[c].f < i[d].f ? c++ : d++], l = i[c != u && i[c].f < i[d].f ? c++ : d++], i[u++] = {\n s: -1,\n f: a.f + l.f,\n l: a,\n r: l\n };\n var h = r[0].s;\n for (s = 1; s < n; ++s) r[s].s > h && (h = r[s].s);\n var _ = new ts(h + 1),\n p = ks(i[u - 1], _, 0);\n if (p > t) {\n s = 0;\n var g = 0,\n f = p - t,\n v = 1 << f;\n for (r.sort(function (e, t) {\n return _[t.s] - _[e.s] || e.f - t.f;\n }); s < n; ++s) {\n var m = r[s].s;\n if (!(_[m] > t)) break;\n g += v - (1 << p - _[m]), _[m] = t;\n }\n for (g >>>= f; g > 0;) {\n var y = r[s].s;\n _[y] < t ? g -= 1 << t - _[y]++ - 1 : ++s;\n }\n for (; s >= 0 && g; --s) {\n var b = r[s].s;\n _[b] == t && (--_[b], ++g);\n }\n p = t;\n }\n return [new es(_), p];\n },\n ks = function (e, t, i) {\n return -1 == e.s ? Math.max(ks(e.l, t, i + 1), ks(e.r, t, i + 1)) : t[e.s] = i;\n },\n xs = function (e) {\n for (var t = e.length; t && !e[--t];);\n for (var i = new ts(++t), s = 0, n = e[0], r = 1, o = function (e) {\n i[s++] = e;\n }, a = 1; a <= t; ++a) if (e[a] == n && a != t) ++r;else {\n if (!n && r > 2) {\n for (; r > 138; r -= 138) o(32754);\n r > 2 && (o(r > 10 ? r - 11 << 5 | 28690 : r - 3 << 5 | 12305), r = 0);\n } else if (r > 3) {\n for (o(n), --r; r > 6; r -= 6) o(8304);\n r > 2 && (o(r - 3 << 5 | 8208), r = 0);\n }\n for (; r--;) o(n);\n r = 1, n = e[a];\n }\n return [i.subarray(0, s), t];\n },\n Is = function (e, t) {\n for (var i = 0, s = 0; s < t.length; ++s) i += e[s] * t[s];\n return i;\n },\n Rs = function (e, t, i) {\n var s = i.length,\n n = ys(t + 2);\n e[n] = 255 & s, e[n + 1] = s >>> 8, e[n + 2] = 255 ^ e[n], e[n + 3] = 255 ^ e[n + 1];\n for (var r = 0; r < s; ++r) e[n + r + 4] = i[r];\n return 8 * (n + 4 + s);\n },\n Ps = function (e, t, i, s, n, r, o, a, l, c, u) {\n ws(t, u++, i), ++n[256];\n for (var d = Es(n, 15), h = d[0], _ = d[1], p = Es(r, 15), g = p[0], f = p[1], v = xs(h), m = v[0], y = v[1], b = xs(g), w = b[0], S = b[1], E = new ts(19), k = 0; k < m.length; ++k) E[31 & m[k]]++;\n for (k = 0; k < w.length; ++k) E[31 & w[k]]++;\n for (var x = Es(E, 7), I = x[0], R = x[1], P = 19; P > 4 && !I[rs[P - 1]]; --P);\n var F,\n C,\n T,\n $,\n A = c + 5 << 3,\n M = Is(n, gs) + Is(r, fs) + o,\n L = Is(n, h) + Is(r, g) + o + 14 + 3 * P + Is(E, I) + (2 * E[16] + 3 * E[17] + 7 * E[18]);\n if (A <= M && A <= L) return Rs(t, u, e.subarray(l, l + c));\n if (ws(t, u, 1 + (L < M)), u += 2, L < M) {\n F = ps(h, _, 0), C = h, T = ps(g, f, 0), $ = g;\n var D = ps(I, R, 0);\n ws(t, u, y - 257), ws(t, u + 5, S - 1), ws(t, u + 10, P - 4), u += 14;\n for (k = 0; k < P; ++k) ws(t, u + 3 * k, I[rs[k]]);\n u += 3 * P;\n for (var O = [m, w], N = 0; N < 2; ++N) {\n var q = O[N];\n for (k = 0; k < q.length; ++k) {\n var B = 31 & q[k];\n ws(t, u, D[B]), u += I[B], B > 15 && (ws(t, u, q[k] >>> 5 & 127), u += q[k] >>> 12);\n }\n }\n } else F = vs, C = gs, T = ms, $ = fs;\n for (k = 0; k < a; ++k) if (s[k] > 255) {\n B = s[k] >>> 18 & 31;\n Ss(t, u, F[B + 257]), u += C[B + 257], B > 7 && (ws(t, u, s[k] >>> 23 & 31), u += ss[B]);\n var H = 31 & s[k];\n Ss(t, u, T[H]), u += $[H], H > 3 && (Ss(t, u, s[k] >>> 5 & 8191), u += ns[H]);\n } else Ss(t, u, F[s[k]]), u += C[s[k]];\n return Ss(t, u, F[256]), u + C[256];\n },\n Fs = new is([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]),\n Cs = function () {\n for (var e = new is(256), t = 0; t < 256; ++t) {\n for (var i = t, s = 9; --s;) i = (1 & i && 3988292384) ^ i >>> 1;\n e[t] = i;\n }\n return e;\n }(),\n Ts = function () {\n var e = 4294967295;\n return {\n p: function (t) {\n for (var i = e, s = 0; s < t.length; ++s) i = Cs[255 & i ^ t[s]] ^ i >>> 8;\n e = i;\n },\n d: function () {\n return 4294967295 ^ e;\n }\n };\n },\n $s = function (e, t, i, s, n) {\n return function (e, t, i, s, n, r) {\n var o = e.length,\n a = new es(s + o + 5 * (1 + Math.floor(o / 7e3)) + n),\n l = a.subarray(s, a.length - n),\n c = 0;\n if (!t || o < 8) for (var u = 0; u <= o; u += 65535) {\n var d = u + 65535;\n d < o ? c = Rs(l, c, e.subarray(u, d)) : (l[u] = r, c = Rs(l, c, e.subarray(u, o)));\n } else {\n for (var h = Fs[t - 1], _ = h >>> 13, p = 8191 & h, g = (1 << i) - 1, f = new ts(32768), v = new ts(g + 1), m = Math.ceil(i / 3), y = 2 * m, b = function (t) {\n return (e[t] ^ e[t + 1] << m ^ e[t + 2] << y) & g;\n }, w = new is(25e3), S = new ts(288), E = new ts(32), k = 0, x = 0, I = (u = 0, 0), R = 0, P = 0; u < o; ++u) {\n var F = b(u),\n C = 32767 & u,\n T = v[F];\n if (f[C] = T, v[F] = C, R <= u) {\n var $ = o - u;\n if ((k > 7e3 || I > 24576) && $ > 423) {\n c = Ps(e, l, 0, w, S, E, x, I, P, u - P, c), I = k = x = 0, P = u;\n for (var A = 0; A < 286; ++A) S[A] = 0;\n for (A = 0; A < 30; ++A) E[A] = 0;\n }\n var M = 2,\n L = 0,\n D = p,\n O = C - T & 32767;\n if ($ > 2 && F == b(u - O)) for (var N = Math.min(_, $) - 1, q = Math.min(32767, u), B = Math.min(258, $); O <= q && --D && C != T;) {\n if (e[u + M] == e[u + M - O]) {\n for (var H = 0; H < B && e[u + H] == e[u + H - O]; ++H);\n if (H > M) {\n if (M = H, L = O, H > N) break;\n var U = Math.min(O, H - 2),\n W = 0;\n for (A = 0; A < U; ++A) {\n var z = u - O + A + 32768 & 32767,\n V = z - f[z] + 32768 & 32767;\n V > W && (W = V, T = z);\n }\n }\n }\n O += (C = T) - (T = f[C]) + 32768 & 32767;\n }\n if (L) {\n w[I++] = 268435456 | cs[M] << 18 | us[L];\n var G = 31 & cs[M],\n j = 31 & us[L];\n x += ss[G] + ns[j], ++S[257 + G], ++E[j], R = u + M, ++k;\n } else w[I++] = e[u], ++S[e[u]];\n }\n }\n c = Ps(e, l, r, w, S, E, x, I, P, u - P, c);\n }\n return bs(a, 0, s + ys(c) + n);\n }(e, null == t.level ? 6 : t.level, null == t.mem ? Math.ceil(1.5 * Math.max(8, Math.min(13, Math.log(e.length)))) : 12 + t.mem, i, s, !n);\n },\n As = function (e, t, i) {\n for (; i; ++t) e[t] = i, i >>>= 8;\n },\n Ms = function (e, t) {\n var i = t.filename;\n if (e[0] = 31, e[1] = 139, e[2] = 8, e[8] = t.level < 2 ? 4 : 9 == t.level ? 2 : 0, e[9] = 3, 0 != t.mtime && As(e, 4, Math.floor(new Date(t.mtime || Date.now()) / 1e3)), i) {\n e[3] = 8;\n for (var s = 0; s <= i.length; ++s) e[s + 10] = i.charCodeAt(s);\n }\n },\n Ls = function (e) {\n return 10 + (e.filename && e.filename.length + 1 || 0);\n };\nfunction Ds(e, t) {\n void 0 === t && (t = {});\n var i = Ts(),\n s = e.length;\n i.p(e);\n var n = $s(e, t, Ls(t), 8),\n r = n.length;\n return Ms(n, t), As(n, r - 8, i.d()), As(n, r - 4, s), n;\n}\nfunction Os(e, t) {\n var i = e.length;\n if (\"undefined\" != typeof TextEncoder) return new TextEncoder().encode(e);\n for (var s = new es(e.length + (e.length >>> 1)), n = 0, r = function (e) {\n s[n++] = e;\n }, o = 0; o < i; ++o) {\n if (n + 5 > s.length) {\n var a = new es(n + 8 + (i - o << 1));\n a.set(s), s = a;\n }\n var l = e.charCodeAt(o);\n l < 128 || t ? r(l) : l < 2048 ? (r(192 | l >>> 6), r(128 | 63 & l)) : l > 55295 && l < 57344 ? (r(240 | (l = 65536 + (1047552 & l) | 1023 & e.charCodeAt(++o)) >>> 18), r(128 | l >>> 12 & 63), r(128 | l >>> 6 & 63), r(128 | 63 & l)) : (r(224 | l >>> 12), r(128 | l >>> 6 & 63), r(128 | 63 & l));\n }\n return bs(s, 0, n);\n}\nconst Ns = 3e5,\n qs = [pi.MouseMove, pi.MouseInteraction, pi.Scroll, pi.ViewportResize, pi.Input, pi.TouchMove, pi.MediaInteraction, pi.Drag],\n Bs = e => ({\n rrwebMethod: e,\n enqueuedAt: Date.now(),\n attempt: 1\n }),\n Hs = \"[SessionRecording]\";\nfunction Us(e) {\n return function (e, t) {\n for (var i = \"\", s = 0; s < e.length;) {\n var n = e[s++];\n n < 128 || t ? i += String.fromCharCode(n) : n < 224 ? i += String.fromCharCode((31 & n) << 6 | 63 & e[s++]) : n < 240 ? i += String.fromCharCode((15 & n) << 12 | (63 & e[s++]) << 6 | 63 & e[s++]) : (n = ((15 & n) << 18 | (63 & e[s++]) << 12 | (63 & e[s++]) << 6 | 63 & e[s++]) - 65536, i += String.fromCharCode(55296 | n >> 10, 56320 | 1023 & n));\n }\n return i;\n }(Ds(Os(JSON.stringify(e))), !0);\n}\nfunction Ws(e) {\n return e.type === _i.Custom && \"sessionIdle\" === e.data.tag;\n}\nfunction zs(e, t) {\n return t.some(t => \"regex\" === t.matching && new RegExp(t.url).test(e));\n}\nclass Vs {\n queuedRRWebEvents = [];\n isIdle = !1;\n _linkedFlagSeen = !1;\n _lastActivityTimestamp = Date.now();\n _linkedFlag = null;\n _removePageViewCaptureHook = void 0;\n _onSessionIdListener = void 0;\n _persistDecideOnSessionListener = void 0;\n _samplingSessionListener = void 0;\n _urlTriggers = [];\n _urlBlocklist = [];\n _urlBlocked = !1;\n _eventTriggers = [];\n _removeEventTriggerCaptureHook = void 0;\n _forceAllowLocalhostNetworkCapture = !1;\n get sessionIdleThresholdMilliseconds() {\n return this.instance.config.session_recording.session_idle_threshold_ms || 3e5;\n }\n get rrwebRecord() {\n var e, t;\n return null == h || null === (e = h.__PosthogExtensions__) || void 0 === e || null === (t = e.rrweb) || void 0 === t ? void 0 : t.record;\n }\n get started() {\n return this._captureStarted;\n }\n get sessionManager() {\n if (!this.instance.sessionManager) throw new Error(Hs + \" must be started with a valid sessionManager.\");\n return this.instance.sessionManager;\n }\n get fullSnapshotIntervalMillis() {\n var e, t;\n return \"trigger_pending\" === this.triggerStatus ? 6e4 : null !== (e = null === (t = this.instance.config.session_recording) || void 0 === t ? void 0 : t.full_snapshot_interval_millis) && void 0 !== e ? e : Ns;\n }\n get isSampled() {\n const e = this.instance.get_property(pe);\n return P(e) ? e : null;\n }\n get sessionDuration() {\n var e, t;\n const i = null === (e = this.buffer) || void 0 === e ? void 0 : e.data[(null === (t = this.buffer) || void 0 === t ? void 0 : t.data.length) - 1],\n {\n sessionStartTimestamp: s\n } = this.sessionManager.checkAndGetSessionAndWindowId(!0);\n return i ? i.timestamp - s : null;\n }\n get isRecordingEnabled() {\n const t = !!this.instance.get_property(ae),\n i = !this.instance.config.disable_session_recording;\n return e && t && i;\n }\n get isConsoleLogCaptureEnabled() {\n const e = !!this.instance.get_property(le),\n t = this.instance.config.enable_recording_console_log;\n return null != t ? t : e;\n }\n get canvasRecording() {\n var e, t, i, s, n, r;\n const o = this.instance.config.session_recording.captureCanvas,\n a = this.instance.get_property(ue),\n l = null !== (e = null !== (t = null == o ? void 0 : o.recordCanvas) && void 0 !== t ? t : null == a ? void 0 : a.enabled) && void 0 !== e && e,\n c = null !== (i = null !== (s = null == o ? void 0 : o.canvasFps) && void 0 !== s ? s : null == a ? void 0 : a.fps) && void 0 !== i ? i : 0,\n u = null !== (n = null !== (r = null == o ? void 0 : o.canvasQuality) && void 0 !== r ? r : null == a ? void 0 : a.quality) && void 0 !== n ? n : 0;\n return {\n enabled: l,\n fps: Ki(c, 0, 12, \"canvas recording fps\"),\n quality: Ki(u, 0, 1, \"canvas recording quality\")\n };\n }\n get networkPayloadCapture() {\n var e, t;\n const i = this.instance.get_property(ce),\n s = {\n recordHeaders: null === (e = this.instance.config.session_recording) || void 0 === e ? void 0 : e.recordHeaders,\n recordBody: null === (t = this.instance.config.session_recording) || void 0 === t ? void 0 : t.recordBody\n },\n n = (null == s ? void 0 : s.recordHeaders) || (null == i ? void 0 : i.recordHeaders),\n r = (null == s ? void 0 : s.recordBody) || (null == i ? void 0 : i.recordBody),\n o = b(this.instance.config.capture_performance) ? this.instance.config.capture_performance.network_timing : this.instance.config.capture_performance,\n a = !!(P(o) ? o : null == i ? void 0 : i.capturePerformance);\n return n || r || a ? {\n recordHeaders: n,\n recordBody: r,\n recordPerformance: a\n } : void 0;\n }\n get sampleRate() {\n const e = this.instance.get_property(de);\n return R(e) ? e : null;\n }\n get minimumDuration() {\n const e = this.instance.get_property(he);\n return R(e) ? e : null;\n }\n get status() {\n return this.receivedDecide ? this.isRecordingEnabled ? I(this._linkedFlag) || this._linkedFlagSeen ? \"trigger_pending\" === this.triggerStatus ? \"buffering\" : this._urlBlocked ? \"paused\" : P(this.isSampled) ? this.isSampled ? \"sampled\" : \"disabled\" : \"active\" : \"buffering\" : \"disabled\" : \"buffering\";\n }\n get urlTriggerStatus() {\n var e;\n if (0 === this._urlTriggers.length) return \"trigger_disabled\";\n return (null === (e = this.instance) || void 0 === e ? void 0 : e.get_property(ge)) === this.sessionId ? \"trigger_activated\" : \"trigger_pending\";\n }\n get eventTriggerStatus() {\n var e;\n if (0 === this._eventTriggers.length) return \"trigger_disabled\";\n return (null === (e = this.instance) || void 0 === e ? void 0 : e.get_property(fe)) === this.sessionId ? \"trigger_activated\" : \"trigger_pending\";\n }\n get triggerStatus() {\n const e = \"trigger_activated\" === this.eventTriggerStatus || \"trigger_activated\" === this.urlTriggerStatus,\n t = \"trigger_pending\" === this.eventTriggerStatus || \"trigger_pending\" === this.urlTriggerStatus;\n return e ? \"trigger_activated\" : t ? \"trigger_pending\" : \"trigger_disabled\";\n }\n constructor(e) {\n if (this.instance = e, this._captureStarted = !1, this._endpoint = \"/s/\", this.stopRrweb = void 0, this.receivedDecide = !1, !this.instance.sessionManager) throw T.error(Hs + \" started without valid sessionManager\"), new Error(Hs + \" started without valid sessionManager. This is a bug.\");\n const {\n sessionId: t,\n windowId: i\n } = this.sessionManager.checkAndGetSessionAndWindowId();\n this.sessionId = t, this.windowId = i, this.buffer = this.clearBuffer(), this.sessionIdleThresholdMilliseconds >= this.sessionManager.sessionTimeoutMs && T.warn(Hs + ` session_idle_threshold_ms (${this.sessionIdleThresholdMilliseconds}) is greater than the session timeout (${this.sessionManager.sessionTimeoutMs}). Session will never be detected as idle`);\n }\n _onBeforeUnload = () => {\n this._flushBuffer();\n };\n _onOffline = () => {\n this._tryAddCustomEvent(\"browser offline\", {});\n };\n _onOnline = () => {\n this._tryAddCustomEvent(\"browser online\", {});\n };\n _onVisibilityChange = () => {\n if (null != o && o.visibilityState) {\n const e = \"window \" + o.visibilityState;\n this._tryAddCustomEvent(e, {});\n }\n };\n startIfEnabledOrStop(t) {\n this.isRecordingEnabled ? (this._startCapture(t), null == e || e.addEventListener(\"beforeunload\", this._onBeforeUnload), null == e || e.addEventListener(\"offline\", this._onOffline), null == e || e.addEventListener(\"online\", this._onOnline), null == e || e.addEventListener(\"visibilitychange\", this._onVisibilityChange), this._setupSampling(), this._addEventTriggerListener(), I(this._removePageViewCaptureHook) && (this._removePageViewCaptureHook = this.instance._addCaptureHook(t => {\n try {\n if (\"$pageview\" === t) {\n const t = e ? this._maskUrl(e.location.href) : \"\";\n if (!t) return;\n this._tryAddCustomEvent(\"$pageview\", {\n href: t\n });\n }\n } catch (e) {\n T.error(\"Could not add $pageview to rrweb session\", e);\n }\n })), this._onSessionIdListener || (this._onSessionIdListener = this.sessionManager.onSessionId((e, t, i) => {\n var s, n, r, o;\n i && (this._tryAddCustomEvent(\"$session_id_change\", {\n sessionId: e,\n windowId: t,\n changeReason: i\n }), null === (s = this.instance) || void 0 === s || null === (n = s.persistence) || void 0 === n || n.unregister(fe), null === (r = this.instance) || void 0 === r || null === (o = r.persistence) || void 0 === o || o.unregister(ge));\n }))) : this.stopRecording();\n }\n stopRecording() {\n var t, i, s, n;\n this._captureStarted && this.stopRrweb && (this.stopRrweb(), this.stopRrweb = void 0, this._captureStarted = !1, null == e || e.removeEventListener(\"beforeunload\", this._onBeforeUnload), null == e || e.removeEventListener(\"offline\", this._onOffline), null == e || e.removeEventListener(\"online\", this._onOnline), null == e || e.removeEventListener(\"visibilitychange\", this._onVisibilityChange), this.clearBuffer(), clearInterval(this._fullSnapshotTimer), null === (t = this._removePageViewCaptureHook) || void 0 === t || t.call(this), this._removePageViewCaptureHook = void 0, null === (i = this._removeEventTriggerCaptureHook) || void 0 === i || i.call(this), this._removeEventTriggerCaptureHook = void 0, null === (s = this._onSessionIdListener) || void 0 === s || s.call(this), this._onSessionIdListener = void 0, null === (n = this._samplingSessionListener) || void 0 === n || n.call(this), this._samplingSessionListener = void 0, T.info(Hs + \" stopped\"));\n }\n makeSamplingDecision(e) {\n var t;\n const i = this.sessionId !== e,\n s = this.sampleRate;\n var n;\n if (!R(s)) return void (null === (n = this.instance.persistence) || void 0 === n || n.register({\n [pe]: null\n }));\n const r = this.isSampled;\n let o;\n const a = i || !P(r);\n if (a) {\n o = Math.random() < s;\n } else o = r;\n a && (o ? this._reportStarted(\"sampled\") : T.warn(Hs + ` Sample rate (${s}) has determined that this sessionId (${e}) will not be sent to the server.`), this._tryAddCustomEvent(\"samplingDecisionMade\", {\n sampleRate: s,\n isSampled: o\n })), null === (t = this.instance.persistence) || void 0 === t || t.register({\n [pe]: o\n });\n }\n afterDecideResponse(e) {\n var t, i, s, n, r, o;\n (this._persistDecideResponse(e), this._linkedFlag = (null === (t = e.sessionRecording) || void 0 === t ? void 0 : t.linkedFlag) || null, null !== (i = e.sessionRecording) && void 0 !== i && i.endpoint) && (this._endpoint = null === (o = e.sessionRecording) || void 0 === o ? void 0 : o.endpoint);\n if (this._setupSampling(), !I(this._linkedFlag) && !this._linkedFlagSeen) {\n const e = E(this._linkedFlag) ? this._linkedFlag : this._linkedFlag.flag,\n t = E(this._linkedFlag) ? null : this._linkedFlag.variant;\n this.instance.onFeatureFlags((i, s) => {\n const n = b(s) && e in s,\n r = t ? s[e] === t : n;\n r && this._reportStarted(\"linked_flag_matched\", {\n linkedFlag: e,\n linkedVariant: t\n }), this._linkedFlagSeen = r;\n });\n }\n null !== (s = e.sessionRecording) && void 0 !== s && s.urlTriggers && (this._urlTriggers = e.sessionRecording.urlTriggers), null !== (n = e.sessionRecording) && void 0 !== n && n.urlBlocklist && (this._urlBlocklist = e.sessionRecording.urlBlocklist), null !== (r = e.sessionRecording) && void 0 !== r && r.eventTriggers && (this._eventTriggers = e.sessionRecording.eventTriggers), this.receivedDecide = !0, this.startIfEnabledOrStop();\n }\n _setupSampling() {\n R(this.sampleRate) && I(this._samplingSessionListener) && (this._samplingSessionListener = this.sessionManager.onSessionId(e => {\n this.makeSamplingDecision(e);\n }));\n }\n _persistDecideResponse(e) {\n if (this.instance.persistence) {\n var t;\n const i = this.instance.persistence,\n s = () => {\n var t, s, n, r, o, a, l;\n const c = null === (t = e.sessionRecording) || void 0 === t ? void 0 : t.sampleRate,\n u = I(c) ? null : parseFloat(c),\n d = null === (s = e.sessionRecording) || void 0 === s ? void 0 : s.minimumDurationMilliseconds;\n i.register({\n [ae]: !!e.sessionRecording,\n [le]: null === (n = e.sessionRecording) || void 0 === n ? void 0 : n.consoleLogRecordingEnabled,\n [ce]: {\n capturePerformance: e.capturePerformance,\n ...(null === (r = e.sessionRecording) || void 0 === r ? void 0 : r.networkPayloadCapture)\n },\n [ue]: {\n enabled: null === (o = e.sessionRecording) || void 0 === o ? void 0 : o.recordCanvas,\n fps: null === (a = e.sessionRecording) || void 0 === a ? void 0 : a.canvasFps,\n quality: null === (l = e.sessionRecording) || void 0 === l ? void 0 : l.canvasQuality\n },\n [de]: u,\n [he]: S(d) ? null : d\n });\n };\n s(), null === (t = this._persistDecideOnSessionListener) || void 0 === t || t.call(this), this._persistDecideOnSessionListener = this.sessionManager.onSessionId(s);\n }\n }\n log(e) {\n var t;\n let i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : \"log\";\n null === (t = this.instance.sessionRecording) || void 0 === t || t.onRRwebEmit({\n type: 6,\n data: {\n plugin: \"rrweb/console@1\",\n payload: {\n level: i,\n trace: [],\n payload: [JSON.stringify(e)]\n }\n },\n timestamp: Date.now()\n });\n }\n _startCapture(e) {\n if (!S(Object.assign) && !S(Array.from) && !(this._captureStarted || this.instance.config.disable_session_recording || this.instance.consent.isOptedOut())) {\n var t, i;\n if (this._captureStarted = !0, this.sessionManager.checkAndGetSessionAndWindowId(), this.rrwebRecord) this._onScriptLoaded();else null === (t = h.__PosthogExtensions__) || void 0 === t || null === (i = t.loadExternalDependency) || void 0 === i || i.call(t, this.instance, \"recorder\", e => {\n if (e) return T.error(Hs + \" could not load recorder\", e);\n this._onScriptLoaded();\n });\n T.info(Hs + \" starting\"), \"active\" === this.status && this._reportStarted(e || \"recording_initialized\");\n }\n }\n isInteractiveEvent(e) {\n var t;\n return 3 === e.type && -1 !== qs.indexOf(null === (t = e.data) || void 0 === t ? void 0 : t.source);\n }\n _updateWindowAndSessionIds(e) {\n const t = this.isInteractiveEvent(e);\n if (!t && !this.isIdle) {\n e.timestamp - this._lastActivityTimestamp > this.sessionIdleThresholdMilliseconds && (this.isIdle = !0, clearInterval(this._fullSnapshotTimer), this._tryAddCustomEvent(\"sessionIdle\", {\n eventTimestamp: e.timestamp,\n lastActivityTimestamp: this._lastActivityTimestamp,\n threshold: this.sessionIdleThresholdMilliseconds,\n bufferLength: this.buffer.data.length,\n bufferSize: this.buffer.size\n }), this._flushBuffer());\n }\n let i = !1;\n if (t && (this._lastActivityTimestamp = e.timestamp, this.isIdle && (this.isIdle = !1, this._tryAddCustomEvent(\"sessionNoLongerIdle\", {\n reason: \"user activity\",\n type: e.type\n }), i = !0)), this.isIdle) return;\n const {\n windowId: s,\n sessionId: n\n } = this.sessionManager.checkAndGetSessionAndWindowId(!t, e.timestamp),\n r = this.sessionId !== n,\n o = this.windowId !== s;\n this.windowId = s, this.sessionId = n, r || o ? (this.stopRecording(), this.startIfEnabledOrStop(\"session_id_changed\")) : i && this._scheduleFullSnapshot();\n }\n _tryRRWebMethod(e) {\n try {\n return e.rrwebMethod(), !0;\n } catch (t) {\n return this.queuedRRWebEvents.length < 10 ? this.queuedRRWebEvents.push({\n enqueuedAt: e.enqueuedAt || Date.now(),\n attempt: e.attempt++,\n rrwebMethod: e.rrwebMethod\n }) : T.warn(Hs + \" could not emit queued rrweb event.\", t, e), !1;\n }\n }\n _tryAddCustomEvent(e, t) {\n return this._tryRRWebMethod(Bs(() => this.rrwebRecord.addCustomEvent(e, t)));\n }\n _tryTakeFullSnapshot() {\n return this._tryRRWebMethod(Bs(() => this.rrwebRecord.takeFullSnapshot()));\n }\n _onScriptLoaded() {\n var e;\n const t = {\n blockClass: \"ph-no-capture\",\n blockSelector: void 0,\n ignoreClass: \"ph-ignore-input\",\n maskTextClass: \"ph-mask\",\n maskTextSelector: void 0,\n maskTextFn: void 0,\n maskAllInputs: !0,\n maskInputOptions: {\n password: !0\n },\n maskInputFn: void 0,\n slimDOMOptions: {},\n collectFonts: !1,\n inlineStylesheet: !0,\n recordCrossOriginIframes: !1\n },\n i = this.instance.config.session_recording;\n for (const [e, s] of Object.entries(i || {})) e in t && (\"maskInputOptions\" === e ? t.maskInputOptions = {\n password: !0,\n ...s\n } : t[e] = s);\n if (this.canvasRecording && this.canvasRecording.enabled && (t.recordCanvas = !0, t.sampling = {\n canvas: this.canvasRecording.fps\n }, t.dataURLOptions = {\n type: \"image/webp\",\n quality: this.canvasRecording.quality\n }), !this.rrwebRecord) return void T.error(Hs + \"onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.\");\n this.mutationRateLimiter = null !== (e = this.mutationRateLimiter) && void 0 !== e ? e : new Zi(this.rrwebRecord, {\n refillRate: this.instance.config.session_recording.__mutationRateLimiterRefillRate,\n bucketSize: this.instance.config.session_recording.__mutationRateLimiterBucketSize,\n onBlockedNode: (e, t) => {\n const i = `Too many mutations on node '${e}'. Rate limiting. This could be due to SVG animations or something similar`;\n T.info(i, {\n node: t\n }), this.log(Hs + \" \" + i, \"warn\");\n }\n });\n const s = this._gatherRRWebPlugins();\n this.stopRrweb = this.rrwebRecord({\n emit: e => {\n this.onRRwebEmit(e);\n },\n plugins: s,\n ...t\n }), this._lastActivityTimestamp = Date.now(), this.isIdle = !1, this._tryAddCustomEvent(\"$session_options\", {\n sessionRecordingOptions: t,\n activePlugins: s.map(e => null == e ? void 0 : e.name)\n }), this._tryAddCustomEvent(\"$posthog_config\", {\n config: this.instance.config\n });\n }\n _scheduleFullSnapshot() {\n if (this._fullSnapshotTimer && clearInterval(this._fullSnapshotTimer), this.isIdle) return;\n const e = this.fullSnapshotIntervalMillis;\n e && (this._fullSnapshotTimer = setInterval(() => {\n this._tryTakeFullSnapshot();\n }, e));\n }\n _gatherRRWebPlugins() {\n var e, t, i, s;\n const n = [],\n r = null === (e = h.__PosthogExtensions__) || void 0 === e || null === (t = e.rrwebPlugins) || void 0 === t ? void 0 : t.getRecordConsolePlugin;\n r && this.isConsoleLogCaptureEnabled && n.push(r());\n const o = null === (i = h.__PosthogExtensions__) || void 0 === i || null === (s = i.rrwebPlugins) || void 0 === s ? void 0 : s.getRecordNetworkPlugin;\n if (this.networkPayloadCapture && y(o)) {\n !rt.includes(location.hostname) || this._forceAllowLocalhostNetworkCapture ? n.push(o(Xi(this.instance.config, this.networkPayloadCapture))) : T.info(Hs + \" NetworkCapture not started because we are on localhost.\");\n }\n return n;\n }\n onRRwebEmit(e) {\n var t;\n if (this._processQueuedEvents(), !e || !b(e)) return;\n if (e.type === _i.Meta) {\n const t = this._maskUrl(e.data.href);\n if (this._lastHref = t, !t) return;\n e.data.href = t;\n } else this._pageViewFallBack();\n if (this._checkUrlTriggerConditions(), \"paused\" === this.status && !function (e) {\n return e.type === _i.Custom && \"recording paused\" === e.data.tag;\n }(e)) return;\n e.type === _i.FullSnapshot && this._scheduleFullSnapshot(), e.type === _i.FullSnapshot && \"trigger_pending\" === this.triggerStatus && this.clearBuffer();\n const i = this.mutationRateLimiter ? this.mutationRateLimiter.throttleMutations(e) : e;\n if (!i) return;\n const s = function (e) {\n const t = e;\n if (t && b(t) && 6 === t.type && b(t.data) && \"rrweb/console@1\" === t.data.plugin) {\n t.data.payload.payload.length > 10 && (t.data.payload.payload = t.data.payload.payload.slice(0, 10), t.data.payload.payload.push(\"...[truncated]\"));\n const i = [];\n for (let e = 0; e < t.data.payload.payload.length; e++) t.data.payload.payload[e] && t.data.payload.payload[e].length > 2e3 ? i.push(t.data.payload.payload[e].slice(0, 2e3) + \"...[truncated]\") : i.push(t.data.payload.payload[e]);\n return t.data.payload.payload = i, e;\n }\n return e;\n }(i);\n if (this._updateWindowAndSessionIds(s), this.isIdle && !Ws(s)) return;\n if (Ws(s)) {\n const e = s.data.payload;\n if (e) {\n const t = e.lastActivityTimestamp,\n i = e.threshold;\n s.timestamp = t + i;\n }\n }\n const n = null === (t = this.instance.config.session_recording.compress_events) || void 0 === t || t ? function (e) {\n if (di(e) < 1024) return e;\n try {\n if (e.type === _i.FullSnapshot) return {\n ...e,\n data: Us(e.data),\n cv: \"2024-10\"\n };\n if (e.type === _i.IncrementalSnapshot && e.data.source === pi.Mutation) return {\n ...e,\n cv: \"2024-10\",\n data: {\n ...e.data,\n texts: Us(e.data.texts),\n attributes: Us(e.data.attributes),\n removes: Us(e.data.removes),\n adds: Us(e.data.adds)\n }\n };\n if (e.type === _i.IncrementalSnapshot && e.data.source === pi.StyleSheetRule) return {\n ...e,\n cv: \"2024-10\",\n data: {\n ...e.data,\n adds: Us(e.data.adds),\n removes: Us(e.data.removes)\n }\n };\n } catch (e) {\n T.error(Hs + \" could not compress event - will use uncompressed event\", e);\n }\n return e;\n }(s) : s,\n r = {\n $snapshot_bytes: di(n),\n $snapshot_data: n,\n $session_id: this.sessionId,\n $window_id: this.windowId\n };\n \"disabled\" !== this.status ? this._captureSnapshotBuffered(r) : this.clearBuffer();\n }\n _pageViewFallBack() {\n if (this.instance.config.capture_pageview || !e) return;\n const t = this._maskUrl(e.location.href);\n this._lastHref !== t && (this._tryAddCustomEvent(\"$url_changed\", {\n href: t\n }), this._lastHref = t);\n }\n _processQueuedEvents() {\n if (this.queuedRRWebEvents.length) {\n const e = [...this.queuedRRWebEvents];\n this.queuedRRWebEvents = [], e.forEach(e => {\n Date.now() - e.enqueuedAt <= 2e3 && this._tryRRWebMethod(e);\n });\n }\n }\n _maskUrl(e) {\n const t = this.instance.config.session_recording;\n if (t.maskNetworkRequestFn) {\n var i;\n let s = {\n url: e\n };\n return s = t.maskNetworkRequestFn(s), null === (i = s) || void 0 === i ? void 0 : i.url;\n }\n return e;\n }\n clearBuffer() {\n return this.buffer = {\n size: 0,\n data: [],\n sessionId: this.sessionId,\n windowId: this.windowId\n }, this.buffer;\n }\n _flushBuffer() {\n this.flushBufferTimer && (clearTimeout(this.flushBufferTimer), this.flushBufferTimer = void 0);\n const e = this.minimumDuration,\n t = this.sessionDuration,\n i = R(t) && t >= 0,\n s = R(e) && i && t < e;\n if (\"buffering\" === this.status || s) return this.flushBufferTimer = setTimeout(() => {\n this._flushBuffer();\n }, 2e3), this.buffer;\n if (this.buffer.data.length > 0) {\n hi(this.buffer).forEach(e => {\n this._captureSnapshot({\n $snapshot_bytes: e.size,\n $snapshot_data: e.data,\n $session_id: e.sessionId,\n $window_id: e.windowId\n });\n });\n }\n return this.clearBuffer();\n }\n _captureSnapshotBuffered(e) {\n var t;\n const i = 2 + ((null === (t = this.buffer) || void 0 === t ? void 0 : t.data.length) || 0);\n !this.isIdle && (this.buffer.size + e.$snapshot_bytes + i > 943718.4 || this.buffer.sessionId !== this.sessionId) && (this.buffer = this._flushBuffer()), this.buffer.size += e.$snapshot_bytes, this.buffer.data.push(e.$snapshot_data), this.flushBufferTimer || this.isIdle || (this.flushBufferTimer = setTimeout(() => {\n this._flushBuffer();\n }, 2e3));\n }\n _captureSnapshot(e) {\n this.instance.capture(\"$snapshot\", e, {\n _url: this.instance.requestRouter.endpointFor(\"api\", this._endpoint),\n _noTruncate: !0,\n _batchKey: \"recordings\",\n skip_client_rate_limiting: !0\n });\n }\n _checkUrlTriggerConditions() {\n if (void 0 === e || !e.location.href) return;\n const t = e.location.href,\n i = \"paused\" === this.status,\n s = zs(t, this._urlBlocklist);\n s && !i ? this._pauseRecording() : !s && i && this._resumeRecording(), zs(t, this._urlTriggers) && this._activateTrigger(\"url\");\n }\n _activateTrigger(e) {\n var t, i;\n \"trigger_pending\" === this.triggerStatus && (null === (t = this.instance) || void 0 === t || null === (i = t.persistence) || void 0 === i || i.register({\n [\"url\" === e ? ge : fe]: this.sessionId\n }), this._flushBuffer(), this._reportStarted(e + \"_trigger_matched\"));\n }\n _pauseRecording() {\n var e, t;\n \"paused\" !== this.status && (this._urlBlocked = !0, null == o || null === (e = o.body) || void 0 === e || null === (t = e.classList) || void 0 === t || t.add(\"ph-no-capture\"), clearInterval(this._fullSnapshotTimer), setTimeout(() => {\n this._flushBuffer();\n }, 100), T.info(Hs + \" recording paused due to URL blocker\"), this._tryAddCustomEvent(\"recording paused\", {\n reason: \"url blocker\"\n }));\n }\n _resumeRecording() {\n var e, t;\n \"paused\" === this.status && (this._urlBlocked = !1, null == o || null === (e = o.body) || void 0 === e || null === (t = e.classList) || void 0 === t || t.remove(\"ph-no-capture\"), this._tryTakeFullSnapshot(), this._scheduleFullSnapshot(), this._tryAddCustomEvent(\"recording resumed\", {\n reason: \"left blocked url\"\n }), T.info(Hs + \" recording resumed\"));\n }\n _addEventTriggerListener() {\n 0 !== this._eventTriggers.length && I(this._removeEventTriggerCaptureHook) && (this._removeEventTriggerCaptureHook = this.instance.on(\"eventCaptured\", e => {\n try {\n this._eventTriggers.includes(e.event) && this._activateTrigger(\"event\");\n } catch (e) {\n T.error(Hs + \"Could not activate event trigger\", e);\n }\n }));\n }\n overrideLinkedFlag() {\n this._linkedFlagSeen = !0, this._reportStarted(\"linked_flag_overridden\");\n }\n overrideSampling() {\n var e;\n null === (e = this.instance.persistence) || void 0 === e || e.register({\n [pe]: !0\n }), this._reportStarted(\"sampling_overridden\");\n }\n overrideTrigger(e) {\n this._activateTrigger(e);\n }\n _reportStarted(e, t) {\n this.instance.register_for_session({\n $session_recording_start_reason: e\n }), T.info(Hs + \" \" + e.replace(\"_\", \" \"), t), N([\"recording_initialized\", \"session_id_changed\"], e) || this._tryAddCustomEvent(e, t);\n }\n}\nclass Gs {\n constructor(e) {\n this.instance = e, this.instance.decideEndpointWasHit = this.instance._hasBootstrappedFeatureFlags();\n }\n call() {\n const e = {\n token: this.instance.config.token,\n distinct_id: this.instance.get_distinct_id(),\n groups: this.instance.getGroups(),\n person_properties: this.instance.get_property(ye),\n group_properties: this.instance.get_property(be),\n disable_flags: this.instance.config.advanced_disable_feature_flags || this.instance.config.advanced_disable_feature_flags_on_first_load || void 0\n };\n this.instance._send_request({\n method: \"POST\",\n url: this.instance.requestRouter.endpointFor(\"api\", \"/decide/?v=3\"),\n data: e,\n compression: this.instance.config.disable_compression ? void 0 : J.Base64,\n timeout: this.instance.config.feature_flag_request_timeout_ms,\n callback: e => this.parseDecideResponse(e.json)\n });\n }\n parseDecideResponse(e) {\n this.instance.featureFlags.setReloadingPaused(!1), this.instance.featureFlags._startReloadTimer();\n const t = !e;\n if (this.instance.config.advanced_disable_feature_flags_on_first_load || this.instance.config.advanced_disable_feature_flags || this.instance.featureFlags.receivedFeatureFlags(null != e ? e : {}, t), t) T.error(\"Failed to fetch feature flags from PostHog.\");else {\n if (!o || !o.body) return T.info(\"document not ready yet, trying again in 500 milliseconds...\"), void setTimeout(() => {\n this.parseDecideResponse(e);\n }, 500);\n if (this.instance._afterDecideResponse(e), e.siteApps) if (this.instance.config.opt_in_site_apps) for (const {\n id: t,\n url: r\n } of e.siteApps) {\n var i, s, n;\n h[`__$$ph_site_app_${t}`] = this.instance, null === (i = h.__PosthogExtensions__) || void 0 === i || null === (s = (n = i).loadSiteApp) || void 0 === s || s.call(n, this.instance, r, e => {\n if (e) return T.error(`Error while initializing PostHog app with config id ${t}`, e);\n });\n } else e.siteApps.length > 0 && T.error('PostHog site apps are disabled. Enable the \"opt_in_site_apps\" config to proceed.');\n }\n }\n}\nconst js = null != e && e.location ? ut(e.location.hash, \"__posthog\") || ut(location.hash, \"state\") : null,\n Qs = \"_postHogToolbarParams\";\nvar Js;\n!function (e) {\n e[e.UNINITIALIZED = 0] = \"UNINITIALIZED\", e[e.LOADING = 1] = \"LOADING\", e[e.LOADED = 2] = \"LOADED\";\n}(Js || (Js = {}));\nclass Ys {\n constructor(e) {\n this.instance = e;\n }\n setToolbarState(e) {\n h.ph_toolbar_state = e;\n }\n getToolbarState() {\n var e;\n return null !== (e = h.ph_toolbar_state) && void 0 !== e ? e : Js.UNINITIALIZED;\n }\n maybeLoadToolbar() {\n var t, i;\n let s = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : void 0,\n n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : void 0,\n r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : void 0;\n if (!e || !o) return !1;\n s = null !== (t = s) && void 0 !== t ? t : e.location, r = null !== (i = r) && void 0 !== i ? i : e.history;\n try {\n if (!n) {\n try {\n e.localStorage.setItem(\"test\", \"test\"), e.localStorage.removeItem(\"test\");\n } catch {\n return !1;\n }\n n = null == e ? void 0 : e.localStorage;\n }\n const t = js || ut(s.hash, \"__posthog\") || ut(s.hash, \"state\");\n let i;\n const o = t ? B(() => JSON.parse(atob(decodeURIComponent(t)))) || B(() => JSON.parse(decodeURIComponent(t))) : null;\n return o && \"ph_authorize\" === o.action ? (i = o, i.source = \"url\", i && Object.keys(i).length > 0 && (o.desiredHash ? s.hash = o.desiredHash : r ? r.replaceState(r.state, \"\", s.pathname + s.search) : s.hash = \"\")) : (i = JSON.parse(n.getItem(Qs) || \"{}\"), i.source = \"localstorage\", delete i.userIntent), !(!i.token || this.instance.config.token !== i.token) && (this.loadToolbar(i), !0);\n } catch {\n return !1;\n }\n }\n _callLoadToolbar(e) {\n (h.ph_load_toolbar || h.ph_load_editor)(e, this.instance);\n }\n loadToolbar(t) {\n const i = !(null == o || !o.getElementById(Te));\n if (!e || i) return !1;\n const s = \"custom\" === this.instance.requestRouter.region && this.instance.config.advanced_disable_toolbar_metrics,\n n = {\n token: this.instance.config.token,\n ...t,\n apiURL: this.instance.requestRouter.endpointFor(\"ui\"),\n ...(s ? {\n instrument: !1\n } : {})\n };\n if (e.localStorage.setItem(Qs, JSON.stringify({\n ...n,\n source: void 0\n })), this.getToolbarState() === Js.LOADED) this._callLoadToolbar(n);else if (this.getToolbarState() === Js.UNINITIALIZED) {\n var r, a;\n this.setToolbarState(Js.LOADING), null === (r = h.__PosthogExtensions__) || void 0 === r || null === (a = r.loadExternalDependency) || void 0 === a || a.call(r, this.instance, \"toolbar\", e => {\n if (e) return T.error(\"Failed to load toolbar\", e), void this.setToolbarState(Js.UNINITIALIZED);\n this.setToolbarState(Js.LOADED), this._callLoadToolbar(n);\n }), G(e, \"turbolinks:load\", () => {\n this.setToolbarState(Js.UNINITIALIZED), this.loadToolbar(n);\n });\n }\n return !0;\n }\n _loadEditor(e) {\n return this.loadToolbar(e);\n }\n maybeLoadEditor() {\n let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : void 0,\n t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : void 0,\n i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : void 0;\n return this.maybeLoadToolbar(e, t, i);\n }\n}\nclass Xs {\n isPaused = !0;\n queue = [];\n flushTimeoutMs = 3e3;\n constructor(e) {\n this.sendRequest = e;\n }\n enqueue(e) {\n this.queue.push(e), this.flushTimeout || this.setFlushTimeout();\n }\n unload() {\n this.clearFlushTimeout();\n const e = this.queue.length > 0 ? this.formatQueue() : {},\n t = Object.values(e),\n i = [...t.filter(e => 0 === e.url.indexOf(\"/e\")), ...t.filter(e => 0 !== e.url.indexOf(\"/e\"))];\n i.map(e => {\n this.sendRequest({\n ...e,\n transport: \"sendBeacon\"\n });\n });\n }\n enable() {\n this.isPaused = !1, this.setFlushTimeout();\n }\n setFlushTimeout() {\n this.isPaused || (this.flushTimeout = setTimeout(() => {\n if (this.clearFlushTimeout(), this.queue.length > 0) {\n const e = this.formatQueue();\n for (const t in e) {\n const i = e[t],\n s = new Date().getTime();\n i.data && m(i.data) && D(i.data, e => {\n e.offset = Math.abs(e.timestamp - s), delete e.timestamp;\n }), this.sendRequest(i);\n }\n }\n }, this.flushTimeoutMs));\n }\n clearFlushTimeout() {\n clearTimeout(this.flushTimeout), this.flushTimeout = void 0;\n }\n formatQueue() {\n const e = {};\n return D(this.queue, t => {\n var i;\n const s = t,\n n = (s ? s.batchKey : null) || s.url;\n S(e[n]) && (e[n] = {\n ...s,\n data: []\n }), null === (i = e[n].data) || void 0 === i || i.push(s.data);\n }), this.queue = [], e;\n }\n}\nconst Ks = !!c || !!l,\n Zs = \"text/plain\",\n en = (e, t) => {\n const [i, s] = e.split(\"?\"),\n n = {\n ...t\n };\n null == s || s.split(\"&\").forEach(e => {\n const [t] = e.split(\"=\");\n delete n[t];\n });\n let r = lt(n);\n return r = r ? (s ? s + \"&\" : \"\") + r : s, `${i}?${r}`;\n },\n tn = e => {\n let {\n data: t,\n compression: i\n } = e;\n if (!t) return;\n if (i === J.GZipJS) {\n const e = Ds(Os(JSON.stringify(t)), {\n mtime: 0\n }),\n i = new Blob([e], {\n type: Zs\n });\n return {\n contentType: Zs,\n body: i,\n estimatedSize: i.size\n };\n }\n if (i === J.Base64) {\n const e = function (e) {\n const t = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n let i,\n s,\n n,\n r,\n o,\n a,\n l,\n c,\n u = 0,\n d = 0,\n h = \"\";\n const _ = [];\n if (!e) return e;\n e = V(e);\n do {\n i = e.charCodeAt(u++), s = e.charCodeAt(u++), n = e.charCodeAt(u++), c = i << 16 | s << 8 | n, r = c >> 18 & 63, o = c >> 12 & 63, a = c >> 6 & 63, l = 63 & c, _[d++] = t.charAt(r) + t.charAt(o) + t.charAt(a) + t.charAt(l);\n } while (u < e.length);\n switch (h = _.join(\"\"), e.length % 3) {\n case 1:\n h = h.slice(0, -2) + \"==\";\n break;\n case 2:\n h = h.slice(0, -1) + \"=\";\n }\n return h;\n }(JSON.stringify(t)),\n i = (e => \"data=\" + encodeURIComponent(\"string\" == typeof e ? e : JSON.stringify(e)))(e);\n return {\n contentType: \"application/x-www-form-urlencoded\",\n body: i,\n estimatedSize: new Blob([i]).size\n };\n }\n const s = JSON.stringify(t);\n return {\n contentType: \"application/json\",\n body: s,\n estimatedSize: new Blob([s]).size\n };\n },\n sn = e => {\n var t;\n const i = new c();\n i.open(e.method || \"GET\", e.url, !0);\n const {\n contentType: s,\n body: n\n } = null !== (t = tn(e)) && void 0 !== t ? t : {};\n D(e.headers, function (e, t) {\n i.setRequestHeader(t, e);\n }), s && i.setRequestHeader(\"Content-Type\", s), e.timeout && (i.timeout = e.timeout), i.withCredentials = !0, i.onreadystatechange = () => {\n if (4 === i.readyState) {\n var t;\n const s = {\n statusCode: i.status,\n text: i.responseText\n };\n if (200 === i.status) try {\n s.json = JSON.parse(i.responseText);\n } catch {}\n null === (t = e.callback) || void 0 === t || t.call(e, s);\n }\n }, i.send(n);\n },\n nn = e => {\n var t, i;\n const {\n contentType: s,\n body: n,\n estimatedSize: r\n } = null !== (t = tn(e)) && void 0 !== t ? t : {},\n o = new Headers();\n D(e.headers, function (e, t) {\n o.append(t, e);\n }), s && o.append(\"Content-Type\", s);\n const a = e.url;\n let c = null;\n if (u) {\n const t = new u();\n c = {\n signal: t.signal,\n timeout: setTimeout(() => t.abort(), e.timeout)\n };\n }\n l(a, {\n method: (null == e ? void 0 : e.method) || \"GET\",\n headers: o,\n keepalive: \"POST\" === e.method && (r || 0) < 52428.8,\n body: n,\n signal: null === (i = c) || void 0 === i ? void 0 : i.signal\n }).then(t => t.text().then(i => {\n var s;\n const n = {\n statusCode: t.status,\n text: i\n };\n if (200 === t.status) try {\n n.json = JSON.parse(i);\n } catch (e) {\n T.error(e);\n }\n null === (s = e.callback) || void 0 === s || s.call(e, n);\n })).catch(t => {\n var i;\n T.error(t), null === (i = e.callback) || void 0 === i || i.call(e, {\n statusCode: 0,\n text: t\n });\n }).finally(() => c ? clearTimeout(c.timeout) : null);\n },\n rn = e => {\n const t = en(e.url, {\n beacon: \"1\"\n });\n try {\n var i;\n const {\n contentType: s,\n body: n\n } = null !== (i = tn(e)) && void 0 !== i ? i : {},\n o = \"string\" == typeof n ? new Blob([n], {\n type: s\n }) : n;\n r.sendBeacon(t, o);\n } catch {}\n },\n on = [];\nc && on.push({\n transport: \"XHR\",\n method: sn\n}), l && on.push({\n transport: \"fetch\",\n method: nn\n}), null != r && r.sendBeacon && on.push({\n transport: \"sendBeacon\",\n method: rn\n});\nclass an {\n isPolling = !1;\n pollIntervalMs = 3e3;\n queue = [];\n constructor(t) {\n this.instance = t, this.queue = [], this.areWeOnline = !0, !S(e) && \"onLine\" in e.navigator && (this.areWeOnline = e.navigator.onLine, e.addEventListener(\"online\", () => {\n this.areWeOnline = !0, this.flush();\n }), e.addEventListener(\"offline\", () => {\n this.areWeOnline = !1;\n }));\n }\n retriableRequest(e) {\n let {\n retriesPerformedSoFar: t,\n ...i\n } = e;\n R(t) && t > 0 && (i.url = en(i.url, {\n retry_count: t\n })), this.instance._send_request({\n ...i,\n callback: e => {\n var s;\n 200 !== e.statusCode && (e.statusCode < 400 || e.statusCode >= 500) && (null != t ? t : 0) < 10 ? this.enqueue({\n retriesPerformedSoFar: t,\n ...i\n }) : null === (s = i.callback) || void 0 === s || s.call(i, e);\n }\n });\n }\n enqueue(e) {\n const t = e.retriesPerformedSoFar || 0;\n e.retriesPerformedSoFar = t + 1;\n const i = function (e) {\n const t = 3e3 * 2 ** e,\n i = t / 2,\n s = Math.min(18e5, t),\n n = (Math.random() - .5) * (s - i);\n return Math.ceil(s + n);\n }(t),\n s = Date.now() + i;\n this.queue.push({\n retryAt: s,\n requestOptions: e\n });\n let n = `Enqueued failed request for retry in ${i}`;\n navigator.onLine || (n += \" (Browser is offline)\"), T.warn(n), this.isPolling || (this.isPolling = !0, this.poll());\n }\n poll() {\n this.poller && clearTimeout(this.poller), this.poller = setTimeout(() => {\n this.areWeOnline && this.queue.length > 0 && this.flush(), this.poll();\n }, this.pollIntervalMs);\n }\n flush() {\n const e = Date.now(),\n t = [],\n i = this.queue.filter(i => i.retryAt < e || (t.push(i), !1));\n if (this.queue = t, i.length > 0) for (const {\n requestOptions: e\n } of i) this.retriableRequest(e);\n }\n unload() {\n this.poller && (clearTimeout(this.poller), this.poller = void 0);\n for (const {\n requestOptions: e\n } of this.queue) try {\n this.instance._send_request({\n ...e,\n transport: \"sendBeacon\"\n });\n } catch (e) {\n T.error(e);\n }\n this.queue = [];\n }\n}\nclass ln {\n _sessionIdChangedHandlers = [];\n constructor(e, t, i, s) {\n var n;\n this.config = e, this.persistence = t, this._windowId = void 0, this._sessionId = void 0, this._sessionStartTimestamp = null, this._sessionActivityTimestamp = null, this._sessionIdGenerator = i || ze, this._windowIdGenerator = s || ze;\n const r = e.persistence_name || e.token,\n o = e.session_idle_timeout_seconds || 1800;\n if (this._sessionTimeoutMs = 1e3 * Ki(o, 60, 1800, \"session_idle_timeout_seconds\"), this._window_id_storage_key = \"ph_\" + r + \"_window_id\", this._primary_window_exists_storage_key = \"ph_\" + r + \"_primary_window_exists\", this._canUseSessionStorage()) {\n const e = nt.parse(this._window_id_storage_key),\n t = nt.parse(this._primary_window_exists_storage_key);\n e && !t ? this._windowId = e : nt.remove(this._window_id_storage_key), nt.set(this._primary_window_exists_storage_key, !0);\n }\n if (null !== (n = this.config.bootstrap) && void 0 !== n && n.sessionID) try {\n const e = (e => {\n const t = e.replace(/-/g, \"\");\n if (32 !== t.length) throw new Error(\"Not a valid UUID\");\n if (\"7\" !== t[12]) throw new Error(\"Not a UUIDv7\");\n return parseInt(t.substring(0, 12), 16);\n })(this.config.bootstrap.sessionID);\n this._setSessionId(this.config.bootstrap.sessionID, new Date().getTime(), e);\n } catch (e) {\n T.error(\"Invalid sessionID in bootstrap\", e);\n }\n this._listenToReloadWindow();\n }\n get sessionTimeoutMs() {\n return this._sessionTimeoutMs;\n }\n onSessionId(e) {\n return S(this._sessionIdChangedHandlers) && (this._sessionIdChangedHandlers = []), this._sessionIdChangedHandlers.push(e), this._sessionId && e(this._sessionId, this._windowId), () => {\n this._sessionIdChangedHandlers = this._sessionIdChangedHandlers.filter(t => t !== e);\n };\n }\n _canUseSessionStorage() {\n return \"memory\" !== this.config.persistence && !this.persistence.disabled && nt.is_supported();\n }\n _setWindowId(e) {\n e !== this._windowId && (this._windowId = e, this._canUseSessionStorage() && nt.set(this._window_id_storage_key, e));\n }\n _getWindowId() {\n return this._windowId ? this._windowId : this._canUseSessionStorage() ? nt.parse(this._window_id_storage_key) : null;\n }\n _setSessionId(e, t, i) {\n e === this._sessionId && t === this._sessionActivityTimestamp && i === this._sessionStartTimestamp || (this._sessionStartTimestamp = i, this._sessionActivityTimestamp = t, this._sessionId = e, this.persistence.register({\n [_e]: [t, e, i]\n }));\n }\n _getSessionId() {\n if (this._sessionId && this._sessionActivityTimestamp && this._sessionStartTimestamp) return [this._sessionActivityTimestamp, this._sessionId, this._sessionStartTimestamp];\n const e = this.persistence.props[_e];\n return m(e) && 2 === e.length && e.push(e[0]), e || [0, null, 0];\n }\n resetSessionId() {\n this._setSessionId(null, null, null);\n }\n _listenToReloadWindow() {\n null == e || e.addEventListener(\"beforeunload\", () => {\n this._canUseSessionStorage() && nt.remove(this._primary_window_exists_storage_key);\n });\n }\n checkAndGetSessionAndWindowId() {\n let e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];\n const t = (arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : null) || new Date().getTime();\n let [i, s, n] = this._getSessionId(),\n r = this._getWindowId();\n const o = R(n) && n > 0 && Math.abs(t - n) > 864e5;\n let a = !1;\n const l = !s,\n c = !e && Math.abs(t - i) > this.sessionTimeoutMs;\n l || c || o ? (s = this._sessionIdGenerator(), r = this._windowIdGenerator(), T.info(\"[SessionId] new session ID generated\", {\n sessionId: s,\n windowId: r,\n changeReason: {\n noSessionId: l,\n activityTimeout: c,\n sessionPastMaximumLength: o\n }\n }), n = t, a = !0) : r || (r = this._windowIdGenerator(), a = !0);\n const u = 0 === i || !e || o ? t : i,\n d = 0 === n ? new Date().getTime() : n;\n return this._setWindowId(r), this._setSessionId(s, u, d), a && this._sessionIdChangedHandlers.forEach(e => e(s, r, a ? {\n noSessionId: l,\n activityTimeout: c,\n sessionPastMaximumLength: o\n } : void 0)), {\n sessionId: s,\n windowId: r,\n sessionStartTimestamp: d,\n changeReason: a ? {\n noSessionId: l,\n activityTimeout: c,\n sessionPastMaximumLength: o\n } : void 0,\n lastActivityTimestamp: i\n };\n }\n}\nlet cn;\n!function (e) {\n e.US = \"us\", e.EU = \"eu\", e.CUSTOM = \"custom\";\n}(cn || (cn = {}));\nconst un = \"i.posthog.com\";\nclass dn {\n _regionCache = {};\n constructor(e) {\n this.instance = e;\n }\n get apiHost() {\n const e = this.instance.config.api_host.trim().replace(/\\/$/, \"\");\n return \"https://app.posthog.com\" === e ? \"https://us.i.posthog.com\" : e;\n }\n get uiHost() {\n var e;\n let t = null === (e = this.instance.config.ui_host) || void 0 === e ? void 0 : e.replace(/\\/$/, \"\");\n return t || (t = this.apiHost.replace(`.${un}`, \".posthog.com\")), \"https://app.posthog.com\" === t ? \"https://us.posthog.com\" : t;\n }\n get region() {\n return this._regionCache[this.apiHost] || (/https:\\/\\/(app|us|us-assets)(\\.i)?\\.posthog\\.com/i.test(this.apiHost) ? this._regionCache[this.apiHost] = cn.US : /https:\\/\\/(eu|eu-assets)(\\.i)?\\.posthog\\.com/i.test(this.apiHost) ? this._regionCache[this.apiHost] = cn.EU : this._regionCache[this.apiHost] = cn.CUSTOM), this._regionCache[this.apiHost];\n }\n endpointFor(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : \"\";\n if (t && (t = \"/\" === t[0] ? t : `/${t}`), \"ui\" === e) return this.uiHost + t;\n if (this.region === cn.CUSTOM) return this.apiHost + t;\n const i = un + t;\n switch (e) {\n case \"assets\":\n return `https://${this.region}-assets.${i}`;\n case \"api\":\n return `https://${this.region}.${i}`;\n }\n }\n}\nconst hn = \"posthog-js\";\nfunction _n(e) {\n let {\n organization: t,\n projectId: i,\n prefix: s,\n severityAllowList: n = [\"error\"]\n } = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};\n return r => {\n var o, a, l, c, u;\n if (!(\"*\" === n || n.includes(r.level)) || !e.__loaded) return r;\n r.tags || (r.tags = {});\n const d = e.requestRouter.endpointFor(\"ui\", `/project/${e.config.token}/person/${e.get_distinct_id()}`);\n r.tags[\"PostHog Person URL\"] = d, e.sessionRecordingStarted() && (r.tags[\"PostHog Recording URL\"] = e.get_session_replay_url({\n withTimestamp: !0\n }));\n const h = (null === (o = r.exception) || void 0 === o ? void 0 : o.values) || [];\n h.map(e => {\n e.stacktrace && (e.stacktrace.type = \"raw\");\n });\n const _ = {\n $exception_message: (null === (a = h[0]) || void 0 === a ? void 0 : a.value) || r.message,\n $exception_type: null === (l = h[0]) || void 0 === l ? void 0 : l.type,\n $exception_personURL: d,\n $exception_level: r.level,\n $exception_list: h,\n $sentry_event_id: r.event_id,\n $sentry_exception: r.exception,\n $sentry_exception_message: (null === (c = h[0]) || void 0 === c ? void 0 : c.value) || r.message,\n $sentry_exception_type: null === (u = h[0]) || void 0 === u ? void 0 : u.type,\n $sentry_tags: r.tags,\n $level: r.level\n };\n return t && i && (_.$sentry_url = (s || \"https://sentry.io/organizations/\") + t + \"/issues/?project=\" + i + \"&query=\" + r.event_id), e.exceptions.sendExceptionEvent(_), r;\n };\n}\nclass pn {\n constructor(e, t, i, s, n) {\n this.name = hn, this.setupOnce = function (r) {\n r(_n(e, {\n organization: t,\n projectId: i,\n prefix: s,\n severityAllowList: n\n }));\n };\n }\n}\nfunction gn(e, t) {\n const i = e.config.segment;\n if (!i) return t();\n !function (e, t) {\n const i = e.config.segment;\n if (!i) return t();\n const s = i => {\n const s = () => i.anonymousId() || ze();\n e.config.get_device_id = s, i.id() && (e.register({\n distinct_id: i.id(),\n $device_id: s()\n }), e.persistence.set_property(ke, \"identified\")), t();\n },\n n = i.user();\n \"then\" in n && y(n.then) ? n.then(e => s(e)) : s(n);\n }(e, () => {\n i.register((e => {\n Promise && Promise.resolve || T.warn(\"This browser does not have Promise support, and can not use the segment integration\");\n const t = (t, i) => {\n var s;\n if (!i) return t;\n t.event.userId || t.event.anonymousId === e.get_distinct_id() || (T.info(\"Segment integration does not have a userId set, resetting PostHog\"), e.reset()), t.event.userId && t.event.userId !== e.get_distinct_id() && (T.info(\"Segment integration has a userId set, identifying with PostHog\"), e.identify(t.event.userId));\n const n = e._calculate_event_properties(i, null !== (s = t.event.properties) && void 0 !== s ? s : {}, new Date());\n return t.event.properties = Object.assign({}, n, t.event.properties), t;\n };\n return {\n name: \"PostHog JS\",\n type: \"enrichment\",\n version: \"1.0.0\",\n isLoaded: () => !0,\n load: () => Promise.resolve(),\n track: e => t(e, e.event.event),\n page: e => t(e, \"$pageview\"),\n identify: e => t(e, \"$identify\"),\n screen: e => t(e, \"$screen\")\n };\n })(e)).then(() => {\n t();\n });\n });\n}\nclass fn {\n constructor(e) {\n this._instance = e;\n }\n doPageView(t) {\n var i;\n const s = this._previousPageViewProperties(t);\n return this._currentPath = null !== (i = null == e ? void 0 : e.location.pathname) && void 0 !== i ? i : \"\", this._instance.scrollManager.resetContext(), this._prevPageviewTimestamp = t, s;\n }\n doPageLeave(e) {\n return this._previousPageViewProperties(e);\n }\n _previousPageViewProperties(e) {\n const t = this._currentPath,\n i = this._prevPageviewTimestamp,\n s = this._instance.scrollManager.getContext();\n if (!i) return {};\n let n = {};\n if (s) {\n let {\n maxScrollHeight: e,\n lastScrollY: t,\n maxScrollY: i,\n maxContentHeight: r,\n lastContentY: o,\n maxContentY: a\n } = s;\n if (!(S(e) || S(t) || S(i) || S(r) || S(o) || S(a))) {\n e = Math.ceil(e), t = Math.ceil(t), i = Math.ceil(i), r = Math.ceil(r), o = Math.ceil(o), a = Math.ceil(a);\n n = {\n $prev_pageview_last_scroll: t,\n $prev_pageview_last_scroll_percentage: e <= 1 ? 1 : Ki(t / e, 0, 1),\n $prev_pageview_max_scroll: i,\n $prev_pageview_max_scroll_percentage: e <= 1 ? 1 : Ki(i / e, 0, 1),\n $prev_pageview_last_content: o,\n $prev_pageview_last_content_percentage: r <= 1 ? 1 : Ki(o / r, 0, 1),\n $prev_pageview_max_content: a,\n $prev_pageview_max_content_percentage: r <= 1 ? 1 : Ki(a / r, 0, 1)\n };\n }\n }\n return t && (n.$prev_pageview_pathname = t), i && (n.$prev_pageview_duration = (e.getTime() - i.getTime()) / 1e3), n;\n }\n}\nlet vn, mn, yn;\n!function (e) {\n e.Popover = \"popover\", e.API = \"api\", e.Widget = \"widget\";\n}(vn || (vn = {})), function (e) {\n e.Open = \"open\", e.MultipleChoice = \"multiple_choice\", e.SingleChoice = \"single_choice\", e.Rating = \"rating\", e.Link = \"link\";\n}(mn || (mn = {})), function (e) {\n e.NextQuestion = \"next_question\", e.End = \"end\", e.ResponseBased = \"response_based\", e.SpecificQuestion = \"specific_question\";\n}(yn || (yn = {}));\nclass bn {\n events = {};\n constructor() {\n this.events = {};\n }\n on(e, t) {\n return this.events[e] || (this.events[e] = []), this.events[e].push(t), () => {\n this.events[e] = this.events[e].filter(e => e !== t);\n };\n }\n emit(e, t) {\n for (const i of this.events[e] || []) i(t);\n for (const i of this.events[\"*\"] || []) i(e, t);\n }\n}\nclass wn {\n _debugEventEmitter = new bn();\n constructor(e) {\n this.instance = e, this.actionEvents = new Set(), this.actionRegistry = new Set();\n }\n init() {\n var e;\n if (!S(null === (e = this.instance) || void 0 === e ? void 0 : e._addCaptureHook)) {\n var t;\n const e = (e, t) => {\n this.on(e, t);\n };\n null === (t = this.instance) || void 0 === t || t._addCaptureHook(e);\n }\n }\n register(e) {\n var t, i;\n if (!S(null === (t = this.instance) || void 0 === t ? void 0 : t._addCaptureHook) && (e.forEach(e => {\n var t, i;\n null === (t = this.actionRegistry) || void 0 === t || t.add(e), null === (i = e.steps) || void 0 === i || i.forEach(e => {\n var t;\n null === (t = this.actionEvents) || void 0 === t || t.add((null == e ? void 0 : e.event) || \"\");\n });\n }), null !== (i = this.instance) && void 0 !== i && i.autocapture)) {\n var s;\n const t = new Set();\n e.forEach(e => {\n var i;\n null === (i = e.steps) || void 0 === i || i.forEach(e => {\n null != e && e.selector && t.add(null == e ? void 0 : e.selector);\n });\n }), null === (s = this.instance) || void 0 === s || s.autocapture.setElementSelectors(t);\n }\n }\n on(e, t) {\n var i;\n null != t && 0 != e.length && (this.actionEvents.has(e) || this.actionEvents.has(null == t ? void 0 : t.event)) && this.actionRegistry && (null === (i = this.actionRegistry) || void 0 === i ? void 0 : i.size) > 0 && this.actionRegistry.forEach(e => {\n this.checkAction(t, e) && this._debugEventEmitter.emit(\"actionCaptured\", e.name);\n });\n }\n _addActionHook(e) {\n this.onAction(\"actionCaptured\", t => e(t));\n }\n checkAction(e, t) {\n if (null == (null == t ? void 0 : t.steps)) return !1;\n for (const i of t.steps) if (this.checkStep(e, i)) return !0;\n return !1;\n }\n onAction(e, t) {\n return this._debugEventEmitter.on(e, t);\n }\n checkStep = (e, t) => this.checkStepEvent(e, t) && this.checkStepUrl(e, t) && this.checkStepElement(e, t);\n checkStepEvent = (e, t) => null == t || !t.event || (null == e ? void 0 : e.event) === (null == t ? void 0 : t.event);\n checkStepUrl(e, t) {\n if (null != t && t.url) {\n var i;\n const s = null == e || null === (i = e.properties) || void 0 === i ? void 0 : i.$current_url;\n if (!s || \"string\" != typeof s) return !1;\n if (!wn.matchString(s, null == t ? void 0 : t.url, (null == t ? void 0 : t.url_matching) || \"contains\")) return !1;\n }\n return !0;\n }\n static matchString(t, i, s) {\n switch (s) {\n case \"regex\":\n return !!e && at(t, i);\n case \"exact\":\n return i === t;\n case \"contains\":\n const s = wn.escapeStringRegexp(i).replace(/_/g, \".\").replace(/%/g, \".*\");\n return at(t, s);\n default:\n return !1;\n }\n }\n static escapeStringRegexp(e) {\n return e.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\");\n }\n checkStepElement(e, t) {\n if (null != t && t.href || null != t && t.tag_name || null != t && t.text) {\n if (!this.getElementsList(e).some(e => !(null != t && t.href && !wn.matchString(e.href || \"\", null == t ? void 0 : t.href, (null == t ? void 0 : t.href_matching) || \"exact\")) && (null == t || !t.tag_name || e.tag_name === (null == t ? void 0 : t.tag_name)) && !(null != t && t.text && !wn.matchString(e.text || \"\", null == t ? void 0 : t.text, (null == t ? void 0 : t.text_matching) || \"exact\") && !wn.matchString(e.$el_text || \"\", null == t ? void 0 : t.text, (null == t ? void 0 : t.text_matching) || \"exact\")))) return !1;\n }\n if (null != t && t.selector) {\n var i;\n const s = null == e || null === (i = e.properties) || void 0 === i ? void 0 : i.$element_selectors;\n if (!s) return !1;\n if (!s.includes(null == t ? void 0 : t.selector)) return !1;\n }\n return !0;\n }\n getElementsList(e) {\n return null == (null == e ? void 0 : e.properties.$elements) ? [] : null == e ? void 0 : e.properties.$elements;\n }\n}\nlet Sn = /*#__PURE__*/(() => {\n class Sn {\n static SURVEY_SHOWN_EVENT_NAME = \"survey shown\";\n constructor(e) {\n this.instance = e, this.eventToSurveys = new Map(), this.actionToSurveys = new Map();\n }\n register(e) {\n var t;\n S(null === (t = this.instance) || void 0 === t ? void 0 : t._addCaptureHook) || (this.setupEventBasedSurveys(e), this.setupActionBasedSurveys(e));\n }\n setupActionBasedSurveys(e) {\n const t = e.filter(e => {\n var t, i, s, n;\n return (null === (t = e.conditions) || void 0 === t ? void 0 : t.actions) && (null === (i = e.conditions) || void 0 === i || null === (s = i.actions) || void 0 === s || null === (n = s.values) || void 0 === n ? void 0 : n.length) > 0;\n });\n if (0 !== t.length) {\n if (null == this.actionMatcher) {\n this.actionMatcher = new wn(this.instance), this.actionMatcher.init();\n const e = e => {\n this.onAction(e);\n };\n this.actionMatcher._addActionHook(e);\n }\n t.forEach(e => {\n var t, i, s, n, r, o, a, l, c, u;\n e.conditions && null !== (t = e.conditions) && void 0 !== t && t.actions && null !== (i = e.conditions) && void 0 !== i && null !== (s = i.actions) && void 0 !== s && s.values && (null === (n = e.conditions) || void 0 === n || null === (r = n.actions) || void 0 === r || null === (o = r.values) || void 0 === o ? void 0 : o.length) > 0 && (null === (a = this.actionMatcher) || void 0 === a || a.register(e.conditions.actions.values), null === (l = e.conditions) || void 0 === l || null === (c = l.actions) || void 0 === c || null === (u = c.values) || void 0 === u || u.forEach(t => {\n if (t && t.name) {\n const i = this.actionToSurveys.get(t.name);\n i && i.push(e.id), this.actionToSurveys.set(t.name, i || [e.id]);\n }\n }));\n });\n }\n }\n setupEventBasedSurveys(e) {\n var t;\n if (0 === e.filter(e => {\n var t, i, s, n;\n return (null === (t = e.conditions) || void 0 === t ? void 0 : t.events) && (null === (i = e.conditions) || void 0 === i || null === (s = i.events) || void 0 === s || null === (n = s.values) || void 0 === n ? void 0 : n.length) > 0;\n }).length) return;\n null === (t = this.instance) || void 0 === t || t._addCaptureHook((e, t) => {\n this.onEvent(e, t);\n }), e.forEach(e => {\n var t, i, s;\n null === (t = e.conditions) || void 0 === t || null === (i = t.events) || void 0 === i || null === (s = i.values) || void 0 === s || s.forEach(t => {\n if (t && t.name) {\n const i = this.eventToSurveys.get(t.name);\n i && i.push(e.id), this.eventToSurveys.set(t.name, i || [e.id]);\n }\n });\n });\n }\n onEvent(e, t) {\n var i, s;\n const n = (null === (i = this.instance) || void 0 === i || null === (s = i.persistence) || void 0 === s ? void 0 : s.props[Se]) || [];\n if (Sn.SURVEY_SHOWN_EVENT_NAME == e && t && n.length > 0) {\n var r;\n const e = null == t || null === (r = t.properties) || void 0 === r ? void 0 : r.$survey_id;\n if (e) {\n const t = n.indexOf(e);\n t >= 0 && (n.splice(t, 1), this._updateActivatedSurveys(n));\n }\n } else this.eventToSurveys.has(e) && this._updateActivatedSurveys(n.concat(this.eventToSurveys.get(e) || []));\n }\n onAction(e) {\n var t, i;\n const s = (null === (t = this.instance) || void 0 === t || null === (i = t.persistence) || void 0 === i ? void 0 : i.props[Se]) || [];\n this.actionToSurveys.has(e) && this._updateActivatedSurveys(s.concat(this.actionToSurveys.get(e) || []));\n }\n _updateActivatedSurveys(e) {\n var t, i;\n null === (t = this.instance) || void 0 === t || null === (i = t.persistence) || void 0 === i || i.register({\n [Se]: [...new Set(e)]\n });\n }\n getSurveys() {\n var e, t;\n const i = null === (e = this.instance) || void 0 === e || null === (t = e.persistence) || void 0 === t ? void 0 : t.props[Se];\n return i || [];\n }\n getEventToSurveys() {\n return this.eventToSurveys;\n }\n _getActionMatcher() {\n return this.actionMatcher;\n }\n }\n return Sn;\n})();\nvar En,\n kn,\n xn,\n In,\n Rn,\n Pn,\n Fn,\n Cn,\n Tn = {},\n $n = [],\n An = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,\n Mn = Array.isArray;\nfunction Ln(e, t) {\n for (var i in t) e[i] = t[i];\n return e;\n}\nfunction Dn(e) {\n var t = e.parentNode;\n t && t.removeChild(e);\n}\nfunction On(e, t, i, s, n) {\n var r = {\n type: e,\n props: t,\n key: i,\n ref: s,\n __k: null,\n __: null,\n __b: 0,\n __e: null,\n __d: void 0,\n __c: null,\n constructor: void 0,\n __v: null == n ? ++xn : n,\n __i: -1,\n __u: 0\n };\n return null == n && null != kn.vnode && kn.vnode(r), r;\n}\nfunction Nn(e) {\n return e.children;\n}\nfunction qn(e, t) {\n this.props = e, this.context = t;\n}\nfunction Bn(e, t) {\n if (null == t) return e.__ ? Bn(e.__, e.__i + 1) : null;\n for (var i; t < e.__k.length; t++) if (null != (i = e.__k[t]) && null != i.__e) return i.__e;\n return \"function\" == typeof e.type ? Bn(e) : null;\n}\nfunction Hn(e) {\n var t, i;\n if (null != (e = e.__) && null != e.__c) {\n for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if (null != (i = e.__k[t]) && null != i.__e) {\n e.__e = e.__c.base = i.__e;\n break;\n }\n return Hn(e);\n }\n}\nfunction Un(e) {\n (!e.__d && (e.__d = !0) && In.push(e) && !Wn.__r++ || Rn !== kn.debounceRendering) && ((Rn = kn.debounceRendering) || Pn)(Wn);\n}\nfunction Wn() {\n var e, t, i, s, n, r, o, a, l;\n for (In.sort(Fn); e = In.shift();) e.__d && (t = In.length, s = void 0, r = (n = (i = e).__v).__e, a = [], l = [], (o = i.__P) && ((s = Ln({}, n)).__v = n.__v + 1, kn.vnode && kn.vnode(s), Kn(o, s, n, i.__n, void 0 !== o.ownerSVGElement, 32 & n.__u ? [r] : null, a, null == r ? Bn(n) : r, !!(32 & n.__u), l), s.__.__k[s.__i] = s, Zn(a, s, l), s.__e != r && Hn(s)), In.length > t && In.sort(Fn));\n Wn.__r = 0;\n}\nfunction zn(e, t, i, s, n, r, o, a, l, c, u) {\n var d,\n h,\n _,\n p,\n g,\n f = s && s.__k || $n,\n v = t.length;\n for (i.__d = l, Vn(i, t, f), l = i.__d, d = 0; d < v; d++) null != (_ = i.__k[d]) && \"boolean\" != typeof _ && \"function\" != typeof _ && (h = -1 === _.__i ? Tn : f[_.__i] || Tn, _.__i = d, Kn(e, _, h, n, r, o, a, l, c, u), p = _.__e, _.ref && h.ref != _.ref && (h.ref && tr(h.ref, null, _), u.push(_.ref, _.__c || p, _)), null == g && null != p && (g = p), 65536 & _.__u || h.__k === _.__k ? l = Gn(_, l, e) : \"function\" == typeof _.type && void 0 !== _.__d ? l = _.__d : p && (l = p.nextSibling), _.__d = void 0, _.__u &= -196609);\n i.__d = l, i.__e = g;\n}\nfunction Vn(e, t, i) {\n var s,\n n,\n r,\n o,\n a,\n l = t.length,\n c = i.length,\n u = c,\n d = 0;\n for (e.__k = [], s = 0; s < l; s++) null != (n = e.__k[s] = null == (n = t[s]) || \"boolean\" == typeof n || \"function\" == typeof n ? null : \"string\" == typeof n || \"number\" == typeof n || \"bigint\" == typeof n || n.constructor == String ? On(null, n, null, null, n) : Mn(n) ? On(Nn, {\n children: n\n }, null, null, null) : void 0 === n.constructor && n.__b > 0 ? On(n.type, n.props, n.key, n.ref ? n.ref : null, n.__v) : n) ? (n.__ = e, n.__b = e.__b + 1, a = jn(n, i, o = s + d, u), n.__i = a, r = null, -1 !== a && (u--, (r = i[a]) && (r.__u |= 131072)), null == r || null === r.__v ? (-1 == a && d--, \"function\" != typeof n.type && (n.__u |= 65536)) : a !== o && (a === o + 1 ? d++ : a > o ? u > l - o ? d += a - o : d-- : d = a < o && a == o - 1 ? a - o : 0, a !== s + d && (n.__u |= 65536))) : (r = i[s]) && null == r.key && r.__e && (r.__e == e.__d && (e.__d = Bn(r)), ir(r, r, !1), i[s] = null, u--);\n if (u) for (s = 0; s < c; s++) null != (r = i[s]) && 0 == (131072 & r.__u) && (r.__e == e.__d && (e.__d = Bn(r)), ir(r, r));\n}\nfunction Gn(e, t, i) {\n var s, n;\n if (\"function\" == typeof e.type) {\n for (s = e.__k, n = 0; s && n < s.length; n++) s[n] && (s[n].__ = e, t = Gn(s[n], t, i));\n return t;\n }\n return e.__e != t && (i.insertBefore(e.__e, t || null), t = e.__e), t && t.nextSibling;\n}\nfunction jn(e, t, i, s) {\n var n = e.key,\n r = e.type,\n o = i - 1,\n a = i + 1,\n l = t[i];\n if (null === l || l && n == l.key && r === l.type) return i;\n if (s > (null != l && 0 == (131072 & l.__u) ? 1 : 0)) for (; o >= 0 || a < t.length;) {\n if (o >= 0) {\n if ((l = t[o]) && 0 == (131072 & l.__u) && n == l.key && r === l.type) return o;\n o--;\n }\n if (a < t.length) {\n if ((l = t[a]) && 0 == (131072 & l.__u) && n == l.key && r === l.type) return a;\n a++;\n }\n }\n return -1;\n}\nfunction Qn(e, t, i) {\n \"-\" === t[0] ? e.setProperty(t, null == i ? \"\" : i) : e[t] = null == i ? \"\" : \"number\" != typeof i || An.test(t) ? i : i + \"px\";\n}\nfunction Jn(e, t, i, s, n) {\n var r;\n e: if (\"style\" === t) {\n if (\"string\" == typeof i) e.style.cssText = i;else {\n if (\"string\" == typeof s && (e.style.cssText = s = \"\"), s) for (t in s) i && t in i || Qn(e.style, t, \"\");\n if (i) for (t in i) s && i[t] === s[t] || Qn(e.style, t, i[t]);\n }\n } else if (\"o\" === t[0] && \"n\" === t[1]) r = t !== (t = t.replace(/(PointerCapture)$|Capture$/, \"$1\")), t = t.toLowerCase() in e ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + r] = i, i ? s ? i.u = s.u : (i.u = Date.now(), e.addEventListener(t, r ? Xn : Yn, r)) : e.removeEventListener(t, r ? Xn : Yn, r);else {\n if (n) t = t.replace(/xlink(H|:h)/, \"h\").replace(/sName$/, \"s\");else if (\"width\" !== t && \"height\" !== t && \"href\" !== t && \"list\" !== t && \"form\" !== t && \"tabIndex\" !== t && \"download\" !== t && \"rowSpan\" !== t && \"colSpan\" !== t && \"role\" !== t && t in e) try {\n e[t] = null == i ? \"\" : i;\n break e;\n } catch (e) {}\n \"function\" == typeof i || (null == i || !1 === i && \"-\" !== t[4] ? e.removeAttribute(t) : e.setAttribute(t, i));\n }\n}\nfunction Yn(e) {\n var t = this.l[e.type + !1];\n if (e.t) {\n if (e.t <= t.u) return;\n } else e.t = Date.now();\n return t(kn.event ? kn.event(e) : e);\n}\nfunction Xn(e) {\n return this.l[e.type + !0](kn.event ? kn.event(e) : e);\n}\nfunction Kn(e, t, i, s, n, r, o, a, l, c) {\n var u,\n d,\n h,\n _,\n p,\n g,\n f,\n v,\n m,\n y,\n b,\n w,\n S,\n E,\n k,\n x = t.type;\n if (void 0 !== t.constructor) return null;\n 128 & i.__u && (l = !!(32 & i.__u), r = [a = t.__e = i.__e]), (u = kn.__b) && u(t);\n e: if (\"function\" == typeof x) try {\n if (v = t.props, m = (u = x.contextType) && s[u.__c], y = u ? m ? m.props.value : u.__ : s, i.__c ? f = (d = t.__c = i.__c).__ = d.__E : (\"prototype\" in x && x.prototype.render ? t.__c = d = new x(v, y) : (t.__c = d = new qn(v, y), d.constructor = x, d.render = sr), m && m.sub(d), d.props = v, d.state || (d.state = {}), d.context = y, d.__n = s, h = d.__d = !0, d.__h = [], d._sb = []), null == d.__s && (d.__s = d.state), null != x.getDerivedStateFromProps && (d.__s == d.state && (d.__s = Ln({}, d.__s)), Ln(d.__s, x.getDerivedStateFromProps(v, d.__s))), _ = d.props, p = d.state, d.__v = t, h) null == x.getDerivedStateFromProps && null != d.componentWillMount && d.componentWillMount(), null != d.componentDidMount && d.__h.push(d.componentDidMount);else {\n if (null == x.getDerivedStateFromProps && v !== _ && null != d.componentWillReceiveProps && d.componentWillReceiveProps(v, y), !d.__e && (null != d.shouldComponentUpdate && !1 === d.shouldComponentUpdate(v, d.__s, y) || t.__v === i.__v)) {\n for (t.__v !== i.__v && (d.props = v, d.state = d.__s, d.__d = !1), t.__e = i.__e, t.__k = i.__k, t.__k.forEach(function (e) {\n e && (e.__ = t);\n }), b = 0; b < d._sb.length; b++) d.__h.push(d._sb[b]);\n d._sb = [], d.__h.length && o.push(d);\n break e;\n }\n null != d.componentWillUpdate && d.componentWillUpdate(v, d.__s, y), null != d.componentDidUpdate && d.__h.push(function () {\n d.componentDidUpdate(_, p, g);\n });\n }\n if (d.context = y, d.props = v, d.__P = e, d.__e = !1, w = kn.__r, S = 0, \"prototype\" in x && x.prototype.render) {\n for (d.state = d.__s, d.__d = !1, w && w(t), u = d.render(d.props, d.state, d.context), E = 0; E < d._sb.length; E++) d.__h.push(d._sb[E]);\n d._sb = [];\n } else do {\n d.__d = !1, w && w(t), u = d.render(d.props, d.state, d.context), d.state = d.__s;\n } while (d.__d && ++S < 25);\n d.state = d.__s, null != d.getChildContext && (s = Ln(Ln({}, s), d.getChildContext())), h || null == d.getSnapshotBeforeUpdate || (g = d.getSnapshotBeforeUpdate(_, p)), zn(e, Mn(k = null != u && u.type === Nn && null == u.key ? u.props.children : u) ? k : [k], t, i, s, n, r, o, a, l, c), d.base = t.__e, t.__u &= -161, d.__h.length && o.push(d), f && (d.__E = d.__ = null);\n } catch (e) {\n t.__v = null, l || null != r ? (t.__e = a, t.__u |= l ? 160 : 32, r[r.indexOf(a)] = null) : (t.__e = i.__e, t.__k = i.__k), kn.__e(e, t, i);\n } else null == r && t.__v === i.__v ? (t.__k = i.__k, t.__e = i.__e) : t.__e = er(i.__e, t, i, s, n, r, o, l, c);\n (u = kn.diffed) && u(t);\n}\nfunction Zn(e, t, i) {\n t.__d = void 0;\n for (var s = 0; s < i.length; s++) tr(i[s], i[++s], i[++s]);\n kn.__c && kn.__c(t, e), e.some(function (t) {\n try {\n e = t.__h, t.__h = [], e.some(function (e) {\n e.call(t);\n });\n } catch (e) {\n kn.__e(e, t.__v);\n }\n });\n}\nfunction er(e, t, i, s, n, r, o, a, l) {\n var c,\n u,\n d,\n h,\n _,\n p,\n g,\n f = i.props,\n v = t.props,\n m = t.type;\n if (\"svg\" === m && (n = !0), null != r) for (c = 0; c < r.length; c++) if ((_ = r[c]) && \"setAttribute\" in _ == !!m && (m ? _.localName === m : 3 === _.nodeType)) {\n e = _, r[c] = null;\n break;\n }\n if (null == e) {\n if (null === m) return document.createTextNode(v);\n e = n ? document.createElementNS(\"http://www.w3.org/2000/svg\", m) : document.createElement(m, v.is && v), r = null, a = !1;\n }\n if (null === m) f === v || a && e.data === v || (e.data = v);else {\n if (r = r && En.call(e.childNodes), f = i.props || Tn, !a && null != r) for (f = {}, c = 0; c < e.attributes.length; c++) f[(_ = e.attributes[c]).name] = _.value;\n for (c in f) _ = f[c], \"children\" == c || (\"dangerouslySetInnerHTML\" == c ? d = _ : \"key\" === c || c in v || Jn(e, c, null, _, n));\n for (c in v) _ = v[c], \"children\" == c ? h = _ : \"dangerouslySetInnerHTML\" == c ? u = _ : \"value\" == c ? p = _ : \"checked\" == c ? g = _ : \"key\" === c || a && \"function\" != typeof _ || f[c] === _ || Jn(e, c, _, f[c], n);\n if (u) a || d && (u.__html === d.__html || u.__html === e.innerHTML) || (e.innerHTML = u.__html), t.__k = [];else if (d && (e.innerHTML = \"\"), zn(e, Mn(h) ? h : [h], t, i, s, n && \"foreignObject\" !== m, r, o, r ? r[0] : i.__k && Bn(i, 0), a, l), null != r) for (c = r.length; c--;) null != r[c] && Dn(r[c]);\n a || (c = \"value\", void 0 !== p && (p !== e[c] || \"progress\" === m && !p || \"option\" === m && p !== f[c]) && Jn(e, c, p, f[c], !1), c = \"checked\", void 0 !== g && g !== e[c] && Jn(e, c, g, f[c], !1));\n }\n return e;\n}\nfunction tr(e, t, i) {\n try {\n \"function\" == typeof e ? e(t) : e.current = t;\n } catch (e) {\n kn.__e(e, i);\n }\n}\nfunction ir(e, t, i) {\n var s, n;\n if (kn.unmount && kn.unmount(e), (s = e.ref) && (s.current && s.current !== e.__e || tr(s, null, t)), null != (s = e.__c)) {\n if (s.componentWillUnmount) try {\n s.componentWillUnmount();\n } catch (e) {\n kn.__e(e, t);\n }\n s.base = s.__P = null, e.__c = void 0;\n }\n if (s = e.__k) for (n = 0; n < s.length; n++) s[n] && ir(s[n], t, i || \"function\" != typeof e.type);\n i || null == e.__e || Dn(e.__e), e.__ = e.__e = e.__d = void 0;\n}\nfunction sr(e, t, i) {\n return this.constructor(e, i);\n}\nEn = $n.slice, kn = {\n __e: function (e, t, i, s) {\n for (var n, r, o; t = t.__;) if ((n = t.__c) && !n.__) try {\n if ((r = n.constructor) && null != r.getDerivedStateFromError && (n.setState(r.getDerivedStateFromError(e)), o = n.__d), null != n.componentDidCatch && (n.componentDidCatch(e, s || {}), o = n.__d), o) return n.__E = n;\n } catch (t) {\n e = t;\n }\n throw e;\n }\n}, xn = 0, qn.prototype.setState = function (e, t) {\n var i;\n i = null != this.__s && this.__s !== this.state ? this.__s : this.__s = Ln({}, this.state), \"function\" == typeof e && (e = e(Ln({}, i), this.props)), e && Ln(i, e), null != e && this.__v && (t && this._sb.push(t), Un(this));\n}, qn.prototype.forceUpdate = function (e) {\n this.__v && (this.__e = !0, e && this.__h.push(e), Un(this));\n}, qn.prototype.render = Nn, In = [], Pn = \"function\" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Fn = function (e, t) {\n return e.__v.__b - t.__v.__b;\n}, Wn.__r = 0, Cn = 0;\n!function (e, t) {\n var i = {\n __c: t = \"__cC\" + Cn++,\n __: e,\n Consumer: function (e, t) {\n return e.children(t);\n },\n Provider: function (e) {\n var i, s;\n return this.getChildContext || (i = [], (s = {})[t] = this, this.getChildContext = function () {\n return s;\n }, this.shouldComponentUpdate = function (e) {\n this.props.value !== e.value && i.some(function (e) {\n e.__e = !0, Un(e);\n });\n }, this.sub = function (e) {\n i.push(e);\n var t = e.componentWillUnmount;\n e.componentWillUnmount = function () {\n i.splice(i.indexOf(e), 1), t && t.call(e);\n };\n }), e.children;\n }\n };\n i.Provider.__ = i.Consumer.contextType = i;\n}({\n isPreviewMode: !1,\n previewPageIndex: 0,\n handleCloseSurveyPopup: () => {},\n isPopup: !0\n});\nconst nr = \"[Surveys]\",\n rr = {\n icontains: t => !!e && e.location.href.toLowerCase().indexOf(t.toLowerCase()) > -1,\n not_icontains: t => !!e && -1 === e.location.href.toLowerCase().indexOf(t.toLowerCase()),\n regex: t => !!e && at(e.location.href, t),\n not_regex: t => !!e && !at(e.location.href, t),\n exact: t => (null == e ? void 0 : e.location.href) === t,\n is_not: t => (null == e ? void 0 : e.location.href) !== t\n };\nclass or {\n constructor(e) {\n this.instance = e, this._surveyEventReceiver = null;\n }\n afterDecideResponse(e) {\n this._decideServerResponse = !!e.surveys, this.loadIfEnabled();\n }\n reset() {\n localStorage.removeItem(\"lastSeenSurveyDate\");\n const e = (() => {\n const e = [];\n for (let t = 0; t < localStorage.length; t++) {\n const i = localStorage.key(t);\n null != i && i.startsWith(\"seenSurvey_\") && e.push(i);\n }\n return e;\n })();\n e.forEach(e => localStorage.removeItem(e));\n }\n loadIfEnabled() {\n var e;\n const t = null == h || null === (e = h.__PosthogExtensions__) || void 0 === e ? void 0 : e.generateSurveys;\n var i, s;\n this.instance.config.disable_surveys || !this._decideServerResponse || t || (null == this._surveyEventReceiver && (this._surveyEventReceiver = new Sn(this.instance)), null === (i = h.__PosthogExtensions__) || void 0 === i || null === (s = i.loadExternalDependency) || void 0 === s || s.call(i, this.instance, \"surveys\", e => {\n var t, i;\n if (e) return T.error(nr, \"Could not load surveys script\", e);\n this._surveyManager = null === (t = h.__PosthogExtensions__) || void 0 === t || null === (i = t.generateSurveys) || void 0 === i ? void 0 : i.call(t, this.instance);\n }));\n }\n getSurveys(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];\n if (this.instance.config.disable_surveys) return e([]);\n null == this._surveyEventReceiver && (this._surveyEventReceiver = new Sn(this.instance));\n const i = this.instance.get_property(we);\n if (i && !t) return e(i);\n this.instance._send_request({\n url: this.instance.requestRouter.endpointFor(\"api\", `/api/surveys/?token=${this.instance.config.token}`),\n method: \"GET\",\n transport: \"XHR\",\n callback: t => {\n var i;\n if (200 !== t.statusCode || !t.json) return e([]);\n const s = t.json.surveys || [],\n n = s.filter(e => {\n var t, i, s, n, r, o, a, l, c, u, d, h;\n return (null === (t = e.conditions) || void 0 === t ? void 0 : t.events) && (null === (i = e.conditions) || void 0 === i || null === (s = i.events) || void 0 === s ? void 0 : s.values) && (null === (n = e.conditions) || void 0 === n || null === (r = n.events) || void 0 === r || null === (o = r.values) || void 0 === o ? void 0 : o.length) > 0 || (null === (a = e.conditions) || void 0 === a ? void 0 : a.actions) && (null === (l = e.conditions) || void 0 === l || null === (c = l.actions) || void 0 === c ? void 0 : c.values) && (null === (u = e.conditions) || void 0 === u || null === (d = u.actions) || void 0 === d || null === (h = d.values) || void 0 === h ? void 0 : h.length) > 0;\n });\n var r;\n n.length > 0 && (null === (r = this._surveyEventReceiver) || void 0 === r || r.register(n));\n return null === (i = this.instance.persistence) || void 0 === i || i.register({\n [we]: s\n }), e(s);\n }\n });\n }\n getActiveMatchingSurveys(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];\n this.getSurveys(t => {\n var i;\n const s = t.filter(e => !(!e.start_date || e.end_date)).filter(e => {\n var t, i, s, n;\n if (!e.conditions) return !0;\n const r = null === (t = e.conditions) || void 0 === t || !t.url || rr[null !== (i = null === (s = e.conditions) || void 0 === s ? void 0 : s.urlMatchType) && void 0 !== i ? i : \"icontains\"](e.conditions.url),\n a = null === (n = e.conditions) || void 0 === n || !n.selector || (null == o ? void 0 : o.querySelector(e.conditions.selector));\n return r && a;\n }),\n n = null === (i = this._surveyEventReceiver) || void 0 === i ? void 0 : i.getSurveys(),\n r = s.filter(e => {\n var t, i, s, r, o, a, l, c, u, d;\n if (!e.linked_flag_key && !e.targeting_flag_key && !e.internal_targeting_flag_key) return !0;\n const h = !e.linked_flag_key || this.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),\n _ = !e.targeting_flag_key || this.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key),\n p = (null === (t = e.conditions) || void 0 === t ? void 0 : t.events) && (null === (i = e.conditions) || void 0 === i || null === (s = i.events) || void 0 === s ? void 0 : s.values) && (null === (r = e.conditions) || void 0 === r || null === (o = r.events) || void 0 === o ? void 0 : o.values.length) > 0,\n g = (null === (a = e.conditions) || void 0 === a ? void 0 : a.actions) && (null === (l = e.conditions) || void 0 === l || null === (c = l.actions) || void 0 === c ? void 0 : c.values) && (null === (u = e.conditions) || void 0 === u || null === (d = u.actions) || void 0 === d ? void 0 : d.values.length) > 0,\n f = !p && !g || (null == n ? void 0 : n.includes(e.id)),\n v = this._canActivateRepeatedly(e),\n m = !(e.internal_targeting_flag_key && !v) || this.instance.featureFlags.isFeatureEnabled(e.internal_targeting_flag_key);\n return h && _ && m && f;\n });\n return e(r);\n }, t);\n }\n getNextSurveyStep(e, t, i) {\n var s;\n const n = e.questions[t],\n r = t + 1;\n if (null === (s = n.branching) || void 0 === s || !s.type) return t === e.questions.length - 1 ? yn.End : r;\n if (n.branching.type === yn.End) return yn.End;\n if (n.branching.type === yn.SpecificQuestion) {\n if (Number.isInteger(n.branching.index)) return n.branching.index;\n } else if (n.branching.type === yn.ResponseBased) {\n if (n.type === mn.SingleChoice) {\n var o, a;\n const e = n.choices.indexOf(`${i}`);\n if (null !== (o = n.branching) && void 0 !== o && null !== (a = o.responseValues) && void 0 !== a && a.hasOwnProperty(e)) {\n const t = n.branching.responseValues[e];\n return Number.isInteger(t) ? t : t === yn.End ? yn.End : r;\n }\n } else if (n.type === mn.Rating) {\n var l, c;\n if (\"number\" != typeof i || !Number.isInteger(i)) throw new Error(\"The response type must be an integer\");\n const e = function (e, t) {\n if (3 === t) {\n if (e < 1 || e > 3) throw new Error(\"The response must be in range 1-3\");\n return 1 === e ? \"negative\" : 2 === e ? \"neutral\" : \"positive\";\n }\n if (5 === t) {\n if (e < 1 || e > 5) throw new Error(\"The response must be in range 1-5\");\n return e <= 2 ? \"negative\" : 3 === e ? \"neutral\" : \"positive\";\n }\n if (7 === t) {\n if (e < 1 || e > 7) throw new Error(\"The response must be in range 1-7\");\n return e <= 3 ? \"negative\" : 4 === e ? \"neutral\" : \"positive\";\n }\n if (10 === t) {\n if (e < 0 || e > 10) throw new Error(\"The response must be in range 0-10\");\n return e <= 6 ? \"detractors\" : e <= 8 ? \"passives\" : \"promoters\";\n }\n throw new Error(\"The scale must be one of: 3, 5, 7, 10\");\n }(i, n.scale);\n if (null !== (l = n.branching) && void 0 !== l && null !== (c = l.responseValues) && void 0 !== c && c.hasOwnProperty(e)) {\n const t = n.branching.responseValues[e];\n return Number.isInteger(t) ? t : t === yn.End ? yn.End : r;\n }\n }\n return r;\n }\n return T.warn(nr, \"Falling back to next question index due to unexpected branching type\"), r;\n }\n _canActivateRepeatedly(e) {\n var t;\n return I(null === (t = h.__PosthogExtensions__) || void 0 === t ? void 0 : t.canActivateRepeatedly) ? (T.warn(nr, \"canActivateRepeatedly is not defined, must init before calling\"), !1) : h.__PosthogExtensions__.canActivateRepeatedly(e);\n }\n canRenderSurvey(e) {\n I(this._surveyManager) ? T.warn(nr, \"canActivateRepeatedly is not defined, must init before calling\") : this.getSurveys(t => {\n const i = t.filter(t => t.id === e)[0];\n this._surveyManager.canRenderSurvey(i);\n });\n }\n renderSurvey(e, t) {\n I(this._surveyManager) ? T.warn(nr, \"canActivateRepeatedly is not defined, must init before calling\") : this.getSurveys(i => {\n const s = i.filter(t => t.id === e)[0];\n this._surveyManager.renderSurvey(s, null == o ? void 0 : o.querySelector(t));\n });\n }\n}\nclass ar {\n serverLimits = {};\n lastEventRateLimited = !1;\n constructor(e) {\n var t, i;\n this.instance = e, this.captureEventsPerSecond = (null === (t = e.config.rate_limiting) || void 0 === t ? void 0 : t.events_per_second) || 10, this.captureEventsBurstLimit = Math.max((null === (i = e.config.rate_limiting) || void 0 === i ? void 0 : i.events_burst_limit) || 10 * this.captureEventsPerSecond, this.captureEventsPerSecond), this.lastEventRateLimited = this.clientRateLimitContext(!0).isRateLimited;\n }\n clientRateLimitContext() {\n var e, t, i;\n let s = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];\n const n = new Date().getTime(),\n r = null !== (e = null === (t = this.instance.persistence) || void 0 === t ? void 0 : t.get_property(Ie)) && void 0 !== e ? e : {\n tokens: this.captureEventsBurstLimit,\n last: n\n };\n r.tokens += (n - r.last) / 1e3 * this.captureEventsPerSecond, r.last = n, r.tokens > this.captureEventsBurstLimit && (r.tokens = this.captureEventsBurstLimit);\n const o = r.tokens < 1;\n return o || s || (r.tokens = Math.max(0, r.tokens - 1)), !o || this.lastEventRateLimited || s || this.instance.capture(\"$$client_ingestion_warning\", {\n $$client_ingestion_warning_message: `posthog-js client rate limited. Config is set to ${this.captureEventsPerSecond} events per second and ${this.captureEventsBurstLimit} events burst limit.`\n }, {\n skip_client_rate_limiting: !0\n }), this.lastEventRateLimited = o, null === (i = this.instance.persistence) || void 0 === i || i.set_property(Ie, r), {\n isRateLimited: o,\n remainingTokens: r.tokens\n };\n }\n isServerRateLimited(e) {\n const t = this.serverLimits[e || \"events\"] || !1;\n return !1 !== t && new Date().getTime() < t;\n }\n checkForLimiting = e => {\n const t = e.text;\n if (t && t.length) try {\n const e = JSON.parse(t);\n (e.quota_limited || []).forEach(e => {\n T.info(`[RateLimiter] ${e || \"events\"} is quota limited.`), this.serverLimits[e] = new Date().getTime() + 6e4;\n });\n } catch (e) {\n return void T.warn(`[RateLimiter] could not rate limit - continuing. Error: \"${null == e ? void 0 : e.message}\"`, {\n text: t\n });\n }\n };\n}\nconst lr = () => ({\n initialPathName: (null == a ? void 0 : a.pathname) || \"\",\n referringDomain: li.referringDomain(),\n ...li.campaignParams()\n});\nclass cr {\n constructor(e, t, i) {\n this._sessionIdManager = e, this._persistence = t, this._sessionSourceParamGenerator = i || lr, this._sessionIdManager.onSessionId(this._onSessionIdCallback);\n }\n _getStoredProps() {\n return this._persistence.props[xe];\n }\n _onSessionIdCallback = e => {\n const t = this._getStoredProps();\n if (t && t.sessionId === e) return;\n const i = {\n sessionId: e,\n props: this._sessionSourceParamGenerator()\n };\n this._persistence.register({\n [xe]: i\n });\n };\n getSessionProps() {\n var e;\n const t = null === (e = this._getStoredProps()) || void 0 === e ? void 0 : e.props;\n return t ? {\n $client_session_initial_referring_host: t.referringDomain,\n $client_session_initial_pathname: t.initialPathName,\n $client_session_initial_utm_source: t.utm_source,\n $client_session_initial_utm_campaign: t.utm_campaign,\n $client_session_initial_utm_medium: t.utm_medium,\n $client_session_initial_utm_content: t.utm_content,\n $client_session_initial_utm_term: t.utm_term\n } : {};\n }\n}\nconst ur = [\"ahrefsbot\", \"ahrefssiteaudit\", \"applebot\", \"baiduspider\", \"bingbot\", \"bingpreview\", \"bot.htm\", \"bot.php\", \"crawler\", \"deepscan\", \"duckduckbot\", \"facebookexternal\", \"facebookcatalog\", \"gptbot\", \"http://yandex.com/bots\", \"hubspot\", \"ia_archiver\", \"linkedinbot\", \"mj12bot\", \"msnbot\", \"nessus\", \"petalbot\", \"pinterest\", \"prerender\", \"rogerbot\", \"screaming frog\", \"semrushbot\", \"sitebulb\", \"slurp\", \"turnitin\", \"twitterbot\", \"vercelbot\", \"yahoo! slurp\", \"yandexbot\", \"headlesschrome\", \"cypress\", \"Google-HotelAdsVerifier\", \"adsbot-google\", \"apis-google\", \"duplexweb-google\", \"feedfetcher-google\", \"google favicon\", \"google web preview\", \"google-read-aloud\", \"googlebot\", \"googleweblight\", \"mediapartners-google\", \"storebot-google\", \"Bytespider;\"],\n dr = function (e, t) {\n if (!e) return !1;\n const i = e.toLowerCase();\n return ur.concat(t || []).some(e => {\n const t = e.toLowerCase();\n return -1 !== i.indexOf(t);\n });\n },\n hr = function (e, t) {\n if (!e) return !1;\n const i = e.userAgent;\n if (i && dr(i, t)) return !0;\n try {\n const i = null == e ? void 0 : e.userAgentData;\n if (null != i && i.brands && i.brands.some(e => dr(null == e ? void 0 : e.brand, t))) return !0;\n } catch {}\n return !!e.webdriver;\n };\nclass _r {\n constructor() {\n this.clicks = [];\n }\n isRageClick(e, t, i) {\n const s = this.clicks[this.clicks.length - 1];\n if (s && Math.abs(e - s.x) + Math.abs(t - s.y) < 30 && i - s.timestamp < 1e3) {\n if (this.clicks.push({\n x: e,\n y: t,\n timestamp: i\n }), 3 === this.clicks.length) return !0;\n } else this.clicks = [{\n x: e,\n y: t,\n timestamp: i\n }];\n return !1;\n }\n}\nconst pr = \"[Dead Clicks]\",\n gr = () => !0,\n fr = e => {\n var t;\n const i = !(null === (t = e.instance.persistence) || void 0 === t || !t.get_property(re)),\n s = e.instance.config.capture_dead_clicks;\n return P(s) ? s : i;\n };\nclass vr {\n get lazyLoadedDeadClicksAutocapture() {\n return this._lazyLoadedDeadClicksAutocapture;\n }\n constructor(e, t, i) {\n this.instance = e, this.isEnabled = t, this.onCapture = i, this.startIfEnabled();\n }\n afterDecideResponse(e) {\n this.instance.persistence && this.instance.persistence.register({\n [re]: null == e ? void 0 : e.captureDeadClicks\n }), this.startIfEnabled();\n }\n startIfEnabled() {\n this.isEnabled(this) && this.loadScript(() => {\n this.start();\n });\n }\n loadScript(e) {\n var t, i, s;\n null !== (t = h.__PosthogExtensions__) && void 0 !== t && t.initDeadClicksAutocapture && e(), null === (i = h.__PosthogExtensions__) || void 0 === i || null === (s = i.loadExternalDependency) || void 0 === s || s.call(i, this.instance, \"dead-clicks-autocapture\", t => {\n t ? T.error(pr + \" failed to load script\", t) : e();\n });\n }\n start() {\n var e;\n if (o) {\n if (!this._lazyLoadedDeadClicksAutocapture && null !== (e = h.__PosthogExtensions__) && void 0 !== e && e.initDeadClicksAutocapture) {\n const e = b(this.instance.config.capture_dead_clicks) ? this.instance.config.capture_dead_clicks : {};\n e.__onCapture = this.onCapture, this._lazyLoadedDeadClicksAutocapture = h.__PosthogExtensions__.initDeadClicksAutocapture(this.instance, e), this._lazyLoadedDeadClicksAutocapture.start(o), T.info(`${pr} starting...`);\n }\n } else T.error(pr + \" `document` not found. Cannot start.\");\n }\n stop() {\n this._lazyLoadedDeadClicksAutocapture && (this._lazyLoadedDeadClicksAutocapture.stop(), this._lazyLoadedDeadClicksAutocapture = void 0, T.info(`${pr} stopping...`));\n }\n}\nclass mr {\n rageclicks = new _r();\n _enabledServerSide = !1;\n _initialized = !1;\n _flushInterval = null;\n constructor(t) {\n var i;\n this.instance = t, this._enabledServerSide = !(null === (i = this.instance.persistence) || void 0 === i || !i.props[te]), null == e || e.addEventListener(\"beforeunload\", () => {\n this.flush();\n });\n }\n get flushIntervalMilliseconds() {\n let e = 5e3;\n return b(this.instance.config.capture_heatmaps) && this.instance.config.capture_heatmaps.flush_interval_milliseconds && (e = this.instance.config.capture_heatmaps.flush_interval_milliseconds), e;\n }\n get isEnabled() {\n return S(this.instance.config.capture_heatmaps) ? S(this.instance.config.enable_heatmaps) ? this._enabledServerSide : this.instance.config.enable_heatmaps : !1 !== this.instance.config.capture_heatmaps;\n }\n startIfEnabled() {\n if (this.isEnabled) {\n if (this._initialized) return;\n T.info(\"[heatmaps] starting...\"), this._setupListeners(), this._flushInterval = setInterval(this.flush.bind(this), this.flushIntervalMilliseconds);\n } else {\n var e, t;\n clearInterval(null !== (e = this._flushInterval) && void 0 !== e ? e : void 0), null === (t = this.deadClicksCapture) || void 0 === t || t.stop(), this.getAndClearBuffer();\n }\n }\n afterDecideResponse(e) {\n const t = !!e.heatmaps;\n this.instance.persistence && this.instance.persistence.register({\n [te]: t\n }), this._enabledServerSide = t, this.startIfEnabled();\n }\n getAndClearBuffer() {\n const e = this.buffer;\n return this.buffer = void 0, e;\n }\n _onDeadClick(e) {\n this._onClick(e.originalEvent, \"deadclick\");\n }\n _setupListeners() {\n e && o && (G(o, \"click\", t => this._onClick(t || (null == e ? void 0 : e.event)), !1, !0), G(o, \"mousemove\", t => this._onMouseMove(t || (null == e ? void 0 : e.event)), !1, !0), this.deadClicksCapture = new vr(this.instance, gr, this._onDeadClick.bind(this)), this.deadClicksCapture.startIfEnabled(), this._initialized = !0);\n }\n _getProperties(t, i) {\n const s = this.instance.scrollManager.scrollY(),\n n = this.instance.scrollManager.scrollX(),\n r = this.instance.scrollManager.scrollElement(),\n o = function (t, i, s) {\n let n = t;\n for (; n && fi(n) && !vi(n, \"body\");) {\n if (n === s) return !1;\n if (N(i, null == e ? void 0 : e.getComputedStyle(n).position)) return !0;\n n = Ri(n);\n }\n return !1;\n }(xi(t), [\"fixed\", \"sticky\"], r);\n return {\n x: t.clientX + (o ? 0 : n),\n y: t.clientY + (o ? 0 : s),\n target_fixed: o,\n type: i\n };\n }\n _onClick(e) {\n var t;\n let i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : \"click\";\n if (gi(e.target)) return;\n const s = this._getProperties(e, i);\n null !== (t = this.rageclicks) && void 0 !== t && t.isRageClick(e.clientX, e.clientY, new Date().getTime()) && this._capture({\n ...s,\n type: \"rageclick\"\n }), this._capture(s);\n }\n _onMouseMove(e) {\n gi(e.target) || (clearTimeout(this._mouseMoveTimeout), this._mouseMoveTimeout = setTimeout(() => {\n this._capture(this._getProperties(e, \"mousemove\"));\n }, 500));\n }\n _capture(t) {\n if (!e) return;\n const i = e.location.href;\n this.buffer = this.buffer || {}, this.buffer[i] || (this.buffer[i] = []), this.buffer[i].push(t);\n }\n flush() {\n this.buffer && !w(this.buffer) && this.instance.capture(\"$$heatmap\", {\n $heatmap_data: this.getAndClearBuffer()\n });\n }\n}\nclass yr {\n constructor(e) {\n this.instance = e;\n }\n getContext() {\n return this.context;\n }\n resetContext() {\n const e = this.context;\n return setTimeout(this._updateScrollData, 0), e;\n }\n _updateScrollData = () => {\n var e, t, i, s;\n this.context || (this.context = {});\n const n = this.scrollElement(),\n r = this.scrollY(),\n o = n ? Math.max(0, n.scrollHeight - n.clientHeight) : 0,\n a = r + ((null == n ? void 0 : n.clientHeight) || 0),\n l = (null == n ? void 0 : n.scrollHeight) || 0;\n this.context.lastScrollY = Math.ceil(r), this.context.maxScrollY = Math.max(r, null !== (e = this.context.maxScrollY) && void 0 !== e ? e : 0), this.context.maxScrollHeight = Math.max(o, null !== (t = this.context.maxScrollHeight) && void 0 !== t ? t : 0), this.context.lastContentY = a, this.context.maxContentY = Math.max(a, null !== (i = this.context.maxContentY) && void 0 !== i ? i : 0), this.context.maxContentHeight = Math.max(l, null !== (s = this.context.maxContentHeight) && void 0 !== s ? s : 0);\n };\n startMeasuringScrollPosition() {\n null == e || e.addEventListener(\"scroll\", this._updateScrollData, !0), null == e || e.addEventListener(\"scrollend\", this._updateScrollData, !0), null == e || e.addEventListener(\"resize\", this._updateScrollData);\n }\n scrollElement() {\n if (!this.instance.config.scroll_root_selector) return null == e ? void 0 : e.document.documentElement;\n {\n const t = m(this.instance.config.scroll_root_selector) ? this.instance.config.scroll_root_selector : [this.instance.config.scroll_root_selector];\n for (const i of t) {\n const t = null == e ? void 0 : e.document.querySelector(i);\n if (t) return t;\n }\n }\n }\n scrollY() {\n if (this.instance.config.scroll_root_selector) {\n const e = this.scrollElement();\n return e && e.scrollTop || 0;\n }\n return e && (e.scrollY || e.pageYOffset || e.document.documentElement.scrollTop) || 0;\n }\n scrollX() {\n if (this.instance.config.scroll_root_selector) {\n const e = this.scrollElement();\n return e && e.scrollLeft || 0;\n }\n return e && (e.scrollX || e.pageXOffset || e.document.documentElement.scrollLeft) || 0;\n }\n}\nconst br = \"$copy_autocapture\";\nfunction wr(e, t) {\n return t.length > e ? t.slice(0, e) + \"...\" : t;\n}\nfunction Sr(e) {\n if (e.previousElementSibling) return e.previousElementSibling;\n let t = e;\n do {\n t = t.previousSibling;\n } while (t && !fi(t));\n return t;\n}\nfunction Er(e, t, i, s) {\n const n = e.tagName.toLowerCase(),\n r = {\n tag_name: n\n };\n Ii.indexOf(n) > -1 && !i && (\"a\" === n.toLowerCase() || \"button\" === n.toLowerCase() ? r.$el_text = wr(1024, Ni(e)) : r.$el_text = wr(1024, ki(e)));\n const o = Si(e);\n o.length > 0 && (r.classes = o.filter(function (e) {\n return \"\" !== e;\n })), D(e.attributes, function (i) {\n var n;\n if ((!Ci(e) || -1 !== [\"name\", \"id\", \"class\", \"aria-label\"].indexOf(i.name)) && (null == s || !s.includes(i.name)) && !t && Oi(i.value) && (n = i.name, !E(n) || \"_ngcontent\" !== n.substring(0, 10) && \"_nghost\" !== n.substring(0, 7))) {\n let e = i.value;\n \"class\" === i.name && (e = bi(e).join(\" \")), r[\"attr__\" + i.name] = wr(1024, e);\n }\n });\n let a = 1,\n l = 1,\n c = e;\n for (; c = Sr(c);) a++, c.tagName === e.tagName && l++;\n return r.nth_child = a, r.nth_of_type = l, r;\n}\nfunction kr(t, i) {\n var s, n;\n let {\n e: r,\n maskAllElementAttributes: o,\n maskAllText: a,\n elementAttributeIgnoreList: l,\n elementsChainAsString: c\n } = i;\n const u = [t];\n let d = t;\n for (; d.parentNode && !vi(d, \"body\");) yi(d.parentNode) ? (u.push(d.parentNode.host), d = d.parentNode.host) : (u.push(d.parentNode), d = d.parentNode);\n const h = [],\n _ = {};\n let p,\n g = !1,\n f = !1;\n if (D(u, e => {\n const t = Fi(e);\n \"a\" === e.tagName.toLowerCase() && (g = e.getAttribute(\"href\"), g = t && g && Oi(g) && g);\n N(Si(e), \"ph-no-capture\") && (f = !0), h.push(Er(e, o, a, l));\n const i = function (e) {\n if (!Fi(e)) return {};\n const t = {};\n return D(e.attributes, function (e) {\n if (e.name && 0 === e.name.indexOf(\"data-ph-capture-attribute\")) {\n const i = e.name.replace(\"data-ph-capture-attribute-\", \"\"),\n s = e.value;\n i && s && Oi(s) && (t[i] = s);\n }\n }), t;\n }(e);\n O(_, i);\n }), f) return {\n props: {},\n explicitNoCapture: f\n };\n if (a || (\"a\" === t.tagName.toLowerCase() || \"button\" === t.tagName.toLowerCase() ? h[0].$el_text = Ni(t) : h[0].$el_text = ki(t)), g) {\n var v, m;\n h[0].attr__href = g;\n const t = null === (v = ot(g)) || void 0 === v ? void 0 : v.host,\n i = null == e || null === (m = e.location) || void 0 === m ? void 0 : m.host;\n t && i && t !== i && (p = g);\n }\n return {\n props: O({\n $event_type: r.type,\n $ce_version: 1\n }, c ? {\n $elements_chain: Bi(h)\n } : {\n $elements: h\n }, null !== (s = h[0]) && void 0 !== s && s.$el_text ? {\n $el_text: null === (n = h[0]) || void 0 === n ? void 0 : n.$el_text\n } : {}, p && \"click\" === r.type ? {\n $external_click_url: p\n } : {}, _)\n };\n}\nclass xr {\n _initialized = !1;\n _isDisabledServerSide = null;\n rageclicks = new _r();\n _elementsChainAsString = !1;\n constructor(e) {\n this.instance = e, this._elementSelectors = null;\n }\n get config() {\n var e, t;\n const i = b(this.instance.config.autocapture) ? this.instance.config.autocapture : {};\n return i.url_allowlist = null === (e = i.url_allowlist) || void 0 === e ? void 0 : e.map(e => new RegExp(e)), i.url_ignorelist = null === (t = i.url_ignorelist) || void 0 === t ? void 0 : t.map(e => new RegExp(e)), i;\n }\n _addDomEventHandlers() {\n if (!this.isBrowserSupported()) return void T.info(\"Disabling Automatic Event Collection because this browser is not supported\");\n if (!e || !o) return;\n const t = t => {\n t = t || (null == e ? void 0 : e.event);\n try {\n this._captureEvent(t);\n } catch (e) {\n T.error(\"Failed to capture event\", e);\n }\n },\n i = t => {\n t = t || (null == e ? void 0 : e.event), this._captureEvent(t, br);\n };\n G(o, \"submit\", t, !1, !0), G(o, \"change\", t, !1, !0), G(o, \"click\", t, !1, !0), this.config.capture_copied_text && (G(o, \"copy\", i, !1, !0), G(o, \"cut\", i, !1, !0));\n }\n startIfEnabled() {\n this.isEnabled && !this._initialized && (this._addDomEventHandlers(), this._initialized = !0);\n }\n afterDecideResponse(e) {\n e.elementsChainAsString && (this._elementsChainAsString = e.elementsChainAsString), this.instance.persistence && this.instance.persistence.register({\n [ee]: !!e.autocapture_opt_out\n }), this._isDisabledServerSide = !!e.autocapture_opt_out, this.startIfEnabled();\n }\n setElementSelectors(e) {\n this._elementSelectors = e;\n }\n getElementSelectors(e) {\n var t;\n const i = [];\n return null === (t = this._elementSelectors) || void 0 === t || t.forEach(t => {\n const s = null == o ? void 0 : o.querySelectorAll(t);\n null == s || s.forEach(s => {\n e === s && i.push(t);\n });\n }), i;\n }\n get isEnabled() {\n var e, t;\n const i = null === (e = this.instance.persistence) || void 0 === e ? void 0 : e.props[ee],\n s = this._isDisabledServerSide;\n if (x(s) && !P(i) && !this.instance.config.advanced_disable_decide) return !1;\n const n = null !== (t = this._isDisabledServerSide) && void 0 !== t ? t : !!i;\n return !!this.instance.config.autocapture && !n;\n }\n _captureEvent(t) {\n let i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : \"$autocapture\";\n if (!this.isEnabled) return;\n let s = xi(t);\n var n;\n (mi(s) && (s = s.parentNode || null), \"$autocapture\" === i && \"click\" === t.type && t instanceof MouseEvent) && this.instance.config.rageclick && null !== (n = this.rageclicks) && void 0 !== n && n.isRageClick(t.clientX, t.clientY, new Date().getTime()) && this._captureEvent(t, \"$rageclick\");\n const r = i === br;\n if (s && Pi(s, t, this.config, r, r ? [\"copy\", \"cut\"] : void 0)) {\n const {\n props: n,\n explicitNoCapture: r\n } = kr(s, {\n e: t,\n maskAllElementAttributes: this.instance.config.mask_all_element_attributes,\n maskAllText: this.instance.config.mask_all_text,\n elementAttributeIgnoreList: this.config.element_attribute_ignorelist,\n elementsChainAsString: this._elementsChainAsString\n });\n if (r) return !1;\n const a = this.getElementSelectors(s);\n if (a && a.length > 0 && (n.$element_selectors = a), i === br) {\n var o;\n const i = Ei(null == e || null === (o = e.getSelection()) || void 0 === o ? void 0 : o.toString()),\n s = t.type || \"clipboard\";\n if (!i) return !1;\n n.$selected_content = i, n.$copy_type = s;\n }\n return this.instance.capture(i, n), !0;\n }\n }\n isBrowserSupported() {\n return y(null == o ? void 0 : o.querySelectorAll);\n }\n}\nclass Ir {\n _restoreXHRPatch = void 0;\n _restoreFetchPatch = void 0;\n constructor(e) {\n this.instance = e;\n }\n _loadScript(e) {\n var t, i, s;\n null !== (t = h.__PosthogExtensions__) && void 0 !== t && t.tracingHeadersPatchFns && e(), null === (i = h.__PosthogExtensions__) || void 0 === i || null === (s = i.loadExternalDependency) || void 0 === s || s.call(i, this.instance, \"tracing-headers\", t => {\n if (t) return T.error(\"[TRACING-HEADERS] failed to load script\", t);\n e();\n });\n }\n startIfEnabledOrStop() {\n var e, t;\n this.instance.config.__add_tracing_headers ? this._loadScript(this._startCapturing) : (null === (e = this._restoreXHRPatch) || void 0 === e || e.call(this), null === (t = this._restoreFetchPatch) || void 0 === t || t.call(this), this._restoreXHRPatch = void 0, this._restoreFetchPatch = void 0);\n }\n _startCapturing = () => {\n var e, t, i, s;\n S(this._restoreXHRPatch) && (null === (e = h.__PosthogExtensions__) || void 0 === e || null === (t = e.tracingHeadersPatchFns) || void 0 === t || t._patchXHR(this.instance.sessionManager));\n S(this._restoreFetchPatch) && (null === (i = h.__PosthogExtensions__) || void 0 === i || null === (s = i.tracingHeadersPatchFns) || void 0 === s || s._patchFetch(this.instance.sessionManager));\n };\n}\nlet Rr;\n!function (e) {\n e[e.PENDING = -1] = \"PENDING\", e[e.DENIED = 0] = \"DENIED\", e[e.GRANTED = 1] = \"GRANTED\";\n}(Rr || (Rr = {}));\nclass Pr {\n constructor(e) {\n this.instance = e;\n }\n get config() {\n return this.instance.config;\n }\n get consent() {\n return this.getDnt() ? Rr.DENIED : this.storedConsent;\n }\n isOptedOut() {\n return this.consent === Rr.DENIED || this.consent === Rr.PENDING && this.config.opt_out_capturing_by_default;\n }\n isOptedIn() {\n return !this.isOptedOut();\n }\n optInOut(e) {\n this.storage.set(this.storageKey, e ? 1 : 0, this.config.cookie_expiration, this.config.cross_subdomain_cookie, this.config.secure_cookie);\n }\n reset() {\n this.storage.remove(this.storageKey, this.config.cross_subdomain_cookie);\n }\n get storageKey() {\n const {\n token: e,\n opt_out_capturing_cookie_prefix: t\n } = this.instance.config;\n return (t || \"__ph_opt_in_out_\") + e;\n }\n get storedConsent() {\n const e = this.storage.get(this.storageKey);\n return \"1\" === e ? Rr.GRANTED : \"0\" === e ? Rr.DENIED : Rr.PENDING;\n }\n get storage() {\n if (!this._storage) {\n const e = this.config.opt_out_capturing_persistence_type;\n this._storage = \"localStorage\" === e ? Ke : Ye;\n const t = \"localStorage\" === e ? Ye : Ke;\n t.get(this.storageKey) && (this._storage.get(this.storageKey) || this.optInOut(\"1\" === t.get(this.storageKey)), t.remove(this.storageKey, this.config.cross_subdomain_cookie));\n }\n return this._storage;\n }\n getDnt() {\n return !!this.config.respect_dnt && !!Q([null == r ? void 0 : r.doNotTrack, null == r ? void 0 : r.msDoNotTrack, h.doNotTrack], e => N([!0, 1, \"1\", \"yes\"], e));\n }\n}\nconst Fr = \"[Exception Autocapture]\";\nclass Cr {\n originalOnUnhandledRejectionHandler = void 0;\n constructor(e) {\n var t;\n this.instance = e, this.remoteEnabled = !(null === (t = this.instance.persistence) || void 0 === t || !t.props[ie]), this.startIfEnabled();\n }\n get isEnabled() {\n var e;\n return null !== (e = this.remoteEnabled) && void 0 !== e && e;\n }\n get isCapturing() {\n var t;\n return !(null == e || null === (t = e.onerror) || void 0 === t || !t.__POSTHOG_INSTRUMENTED__);\n }\n get hasHandlers() {\n return this.originalOnUnhandledRejectionHandler || this.unwrapOnError;\n }\n startIfEnabled() {\n this.isEnabled && !this.isCapturing && (T.info(Fr + \" enabled, starting...\"), this.loadScript(this.startCapturing));\n }\n loadScript(e) {\n var t, i;\n this.hasHandlers && e(), null === (t = h.__PosthogExtensions__) || void 0 === t || null === (i = t.loadExternalDependency) || void 0 === i || i.call(t, this.instance, \"exception-autocapture\", t => {\n if (t) return T.error(Fr + \" failed to load script\", t);\n e();\n });\n }\n startCapturing = () => {\n var t, i, s, n;\n if (!e || !this.isEnabled || this.hasHandlers || this.isCapturing) return;\n const r = null === (t = h.__PosthogExtensions__) || void 0 === t || null === (i = t.errorWrappingFunctions) || void 0 === i ? void 0 : i.wrapOnError,\n o = null === (s = h.__PosthogExtensions__) || void 0 === s || null === (n = s.errorWrappingFunctions) || void 0 === n ? void 0 : n.wrapUnhandledRejection;\n if (r && o) try {\n this.unwrapOnError = r(this.captureException.bind(this)), this.unwrapUnhandledRejection = o(this.captureException.bind(this));\n } catch (e) {\n T.error(Fr + \" failed to start\", e), this.stopCapturing();\n } else T.error(Fr + \" failed to load error wrapping functions - cannot start\");\n };\n stopCapturing() {\n var e, t;\n null === (e = this.unwrapOnError) || void 0 === e || e.call(this), null === (t = this.unwrapUnhandledRejection) || void 0 === t || t.call(this);\n }\n afterDecideResponse(e) {\n const t = e.autocaptureExceptions;\n this.remoteEnabled = !!t || !1, this.instance.persistence && this.instance.persistence.register({\n [ie]: this.remoteEnabled\n }), this.startIfEnabled();\n }\n captureException(e) {\n const t = this.instance.requestRouter.endpointFor(\"ui\");\n e.$exception_personURL = `${t}/project/${this.instance.config.token}/person/${this.instance.get_distinct_id()}`, this.instance.exceptions.sendExceptionEvent(e);\n }\n}\nconst Tr = 9e5,\n $r = \"[Web Vitals]\";\nclass Ar {\n _enabledServerSide = !1;\n _initialized = !1;\n buffer = {\n url: void 0,\n metrics: [],\n firstMetricTimestamp: void 0\n };\n constructor(e) {\n var t;\n this.instance = e, this._enabledServerSide = !(null === (t = this.instance.persistence) || void 0 === t || !t.props[ne]), this.startIfEnabled();\n }\n get allowedMetrics() {\n var e, t;\n const i = b(this.instance.config.capture_performance) ? null === (e = this.instance.config.capture_performance) || void 0 === e ? void 0 : e.web_vitals_allowed_metrics : void 0;\n return S(i) ? (null === (t = this.instance.persistence) || void 0 === t ? void 0 : t.props[oe]) || [\"CLS\", \"FCP\", \"INP\", \"LCP\"] : i;\n }\n get flushToCaptureTimeoutMs() {\n return (b(this.instance.config.capture_performance) ? this.instance.config.capture_performance.web_vitals_delayed_flush_ms : void 0) || 5e3;\n }\n get _maxAllowedValue() {\n const e = b(this.instance.config.capture_performance) && R(this.instance.config.capture_performance.__web_vitals_max_value) ? this.instance.config.capture_performance.__web_vitals_max_value : Tr;\n return 0 < e && e <= 6e4 ? Tr : e;\n }\n get isEnabled() {\n const e = b(this.instance.config.capture_performance) ? this.instance.config.capture_performance.web_vitals : void 0;\n return P(e) ? e : this._enabledServerSide;\n }\n startIfEnabled() {\n this.isEnabled && !this._initialized && (T.info($r + \" enabled, starting...\"), this.loadScript(this._startCapturing));\n }\n afterDecideResponse(e) {\n const t = b(e.capturePerformance) && !!e.capturePerformance.web_vitals,\n i = b(e.capturePerformance) ? e.capturePerformance.web_vitals_allowed_metrics : void 0;\n this.instance.persistence && (this.instance.persistence.register({\n [ne]: t\n }), this.instance.persistence.register({\n [oe]: i\n })), this._enabledServerSide = t, this.startIfEnabled();\n }\n loadScript(e) {\n var t, i, s;\n null !== (t = h.__PosthogExtensions__) && void 0 !== t && t.postHogWebVitalsCallbacks && e(), null === (i = h.__PosthogExtensions__) || void 0 === i || null === (s = i.loadExternalDependency) || void 0 === s || s.call(i, this.instance, \"web-vitals\", t => {\n t ? T.error($r + \" failed to load script\", t) : e();\n });\n }\n _currentURL() {\n const t = e ? e.location.href : void 0;\n return t || T.error($r + \"Could not determine current URL\"), t;\n }\n _flushToCapture = () => {\n clearTimeout(this._delayedFlushTimer), 0 !== this.buffer.metrics.length && (this.instance.capture(\"$web_vitals\", this.buffer.metrics.reduce((e, t) => ({\n ...e,\n [`$web_vitals_${t.name}_event`]: {\n ...t\n },\n [`$web_vitals_${t.name}_value`]: t.value\n }), {})), this.buffer = {\n url: void 0,\n metrics: [],\n firstMetricTimestamp: void 0\n });\n };\n _addToBuffer = e => {\n var t;\n const i = null === (t = this.instance.sessionManager) || void 0 === t ? void 0 : t.checkAndGetSessionAndWindowId(!0);\n if (S(i)) return void T.error($r + \"Could not read session ID. Dropping metrics!\");\n this.buffer = this.buffer || {\n url: void 0,\n metrics: [],\n firstMetricTimestamp: void 0\n };\n const s = this._currentURL();\n if (S(s)) return;\n if (I(null == e ? void 0 : e.name) || I(null == e ? void 0 : e.value)) return void T.error($r + \"Invalid metric received\", e);\n if (this._maxAllowedValue && e.value >= this._maxAllowedValue) return void T.error($r + \"Ignoring metric with value >= \" + this._maxAllowedValue, e);\n this.buffer.url !== s && (this._flushToCapture(), this._delayedFlushTimer = setTimeout(this._flushToCapture, this.flushToCaptureTimeoutMs)), S(this.buffer.url) && (this.buffer.url = s), this.buffer.firstMetricTimestamp = S(this.buffer.firstMetricTimestamp) ? Date.now() : this.buffer.firstMetricTimestamp, e.attribution && e.attribution.interactionTargetElement && (e.attribution.interactionTargetElement = void 0), this.buffer.metrics.push({\n ...e,\n $current_url: s,\n $session_id: i.sessionId,\n $window_id: i.windowId,\n timestamp: Date.now()\n }), this.buffer.metrics.length === this.allowedMetrics.length && this._flushToCapture();\n };\n _startCapturing = () => {\n let e, t, i, s;\n const n = h.__PosthogExtensions__;\n S(n) || S(n.postHogWebVitalsCallbacks) || ({\n onLCP: e,\n onCLS: t,\n onFCP: i,\n onINP: s\n } = n.postHogWebVitalsCallbacks), e && t && i && s ? (this.allowedMetrics.indexOf(\"LCP\") > -1 && e(this._addToBuffer.bind(this)), this.allowedMetrics.indexOf(\"CLS\") > -1 && t(this._addToBuffer.bind(this)), this.allowedMetrics.indexOf(\"FCP\") > -1 && i(this._addToBuffer.bind(this)), this.allowedMetrics.indexOf(\"INP\") > -1 && s(this._addToBuffer.bind(this)), this._initialized = !0) : T.error($r + \"web vitals callbacks not loaded - not starting\");\n };\n}\nconst Mr = {\n icontains: (t, i) => !!e && i.href.toLowerCase().indexOf(t.toLowerCase()) > -1,\n not_icontains: (t, i) => !!e && -1 === i.href.toLowerCase().indexOf(t.toLowerCase()),\n regex: (t, i) => !!e && at(i.href, t),\n not_regex: (t, i) => !!e && !at(i.href, t),\n exact: (e, t) => t.href === e,\n is_not: (e, t) => t.href !== e\n};\nclass Lr {\n constructor(e) {\n this.instance = e;\n const t = e => {\n this.applyFeatureFlagChanges(e);\n };\n this.instance.onFeatureFlags && this.instance.onFeatureFlags(t), this._flagToExperiments = new Map();\n }\n applyFeatureFlagChanges(e) {\n I(this._flagToExperiments) || this.instance.config.disable_web_experiments || (Lr.logInfo(\"applying feature flags\", e), e.forEach(e => {\n var t;\n if (this._flagToExperiments && null !== (t = this._flagToExperiments) && void 0 !== t && t.has(e)) {\n var i;\n const t = this.instance.getFeatureFlag(e),\n s = null === (i = this._flagToExperiments) || void 0 === i ? void 0 : i.get(e);\n t && null != s && s.variants[t] && this.applyTransforms(s.name, t, s.variants[t].transforms);\n }\n }));\n }\n afterDecideResponse(e) {\n this._is_bot() ? Lr.logInfo(\"Refusing to render web experiment since the viewer is a likely bot\") : (this._featureFlags = e.featureFlags, this.loadIfEnabled(), this.previewWebExperiment());\n }\n previewWebExperiment() {\n const e = Lr.getWindowLocation();\n if (null != e && e.search) {\n const t = ct(null == e ? void 0 : e.search, \"__experiment_id\"),\n i = ct(null == e ? void 0 : e.search, \"__experiment_variant\");\n t && i && (Lr.logInfo(`previewing web experiments ${t} && ${i}`), this.getWebExperiments(e => {\n this.showPreviewWebExperiment(parseInt(t), i, e);\n }, !1, !0));\n }\n }\n loadIfEnabled() {\n this.instance.config.disable_web_experiments || this.getWebExperimentsAndEvaluateDisplayLogic();\n }\n getWebExperimentsAndEvaluateDisplayLogic = (() => {\n var e = this;\n return function () {\n let t = arguments.length > 0 && void 0 !== arguments[0] && arguments[0];\n e.getWebExperiments(t => {\n Lr.logInfo(\"retrieved web experiments from the server\"), e._flagToExperiments = new Map(), t.forEach(t => {\n if (t.feature_flag_key && e._featureFlags && e._featureFlags[t.feature_flag_key]) {\n var i;\n if (e._flagToExperiments) Lr.logInfo(\"setting flag key \", t.feature_flag_key, \" to web experiment \", t), null === (i = e._flagToExperiments) || void 0 === i || i.set(t.feature_flag_key, t);\n const s = e._featureFlags[t.feature_flag_key];\n s && t.variants[s] && e.applyTransforms(t.name, s, t.variants[s].transforms);\n } else if (t.variants) for (const i in t.variants) {\n const s = t.variants[i];\n Lr.matchesTestVariant(s) && e.applyTransforms(t.name, i, s.transforms);\n }\n });\n }, t);\n };\n })();\n getWebExperiments(e, t, i) {\n if (this.instance.config.disable_web_experiments && !i) return e([]);\n const s = this.instance.get_property(\"$web_experiments\");\n if (s && !t) return e(s);\n this.instance._send_request({\n url: this.instance.requestRouter.endpointFor(\"api\", `/api/web_experiments/?token=${this.instance.config.token}`),\n method: \"GET\",\n transport: \"XHR\",\n callback: t => {\n if (200 !== t.statusCode || !t.json) return e([]);\n const i = t.json.experiments || [];\n return e(i);\n }\n });\n }\n showPreviewWebExperiment(e, t, i) {\n const s = i.filter(t => t.id === e);\n s && s.length > 0 && (Lr.logInfo(`Previewing web experiment [${s[0].name}] with variant [${t}]`), this.applyTransforms(s[0].name, t, s[0].variants[t].transforms, !0));\n }\n static matchesTestVariant(e) {\n return !I(e.conditions) && Lr.matchUrlConditions(e) && Lr.matchUTMConditions(e);\n }\n static matchUrlConditions(e) {\n var t;\n if (I(e.conditions) || I(null === (t = e.conditions) || void 0 === t ? void 0 : t.url)) return !0;\n const i = Lr.getWindowLocation();\n if (i) {\n var s, n, r;\n return null === (s = e.conditions) || void 0 === s || !s.url || Mr[null !== (n = null === (r = e.conditions) || void 0 === r ? void 0 : r.urlMatchType) && void 0 !== n ? n : \"icontains\"](e.conditions.url, i);\n }\n return !1;\n }\n static getWindowLocation() {\n return null == e ? void 0 : e.location;\n }\n static matchUTMConditions(e) {\n var t;\n if (I(e.conditions) || I(null === (t = e.conditions) || void 0 === t ? void 0 : t.utm)) return !0;\n const i = li.campaignParams();\n if (i.utm_source) {\n var s, n, r, o, a, l, c, u, d, h, _, p, g, f, v, m;\n const t = null === (s = e.conditions) || void 0 === s || null === (n = s.utm) || void 0 === n || !n.utm_campaign || (null === (r = e.conditions) || void 0 === r || null === (o = r.utm) || void 0 === o ? void 0 : o.utm_campaign) == i.utm_campaign,\n y = null === (a = e.conditions) || void 0 === a || null === (l = a.utm) || void 0 === l || !l.utm_source || (null === (c = e.conditions) || void 0 === c || null === (u = c.utm) || void 0 === u ? void 0 : u.utm_source) == i.utm_source,\n b = null === (d = e.conditions) || void 0 === d || null === (h = d.utm) || void 0 === h || !h.utm_medium || (null === (_ = e.conditions) || void 0 === _ || null === (p = _.utm) || void 0 === p ? void 0 : p.utm_medium) == i.utm_medium,\n w = null === (g = e.conditions) || void 0 === g || null === (f = g.utm) || void 0 === f || !f.utm_term || (null === (v = e.conditions) || void 0 === v || null === (m = v.utm) || void 0 === m ? void 0 : m.utm_term) == i.utm_term;\n return t && b && w && y;\n }\n return !1;\n }\n static logInfo(e) {\n for (var t = arguments.length, i = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++) i[s - 1] = arguments[s];\n T.info(`[WebExperiments] ${e}`, i);\n }\n applyTransforms(e, t, i, s) {\n var n;\n this._is_bot() ? Lr.logInfo(\"Refusing to render web experiment since the viewer is a likely bot\") : \"control\" !== t ? i.forEach(i => {\n if (i.selector) {\n var n;\n Lr.logInfo(`applying transform of variant ${t} for experiment ${e} `, i);\n let o = 0;\n const a = null === (n = document) || void 0 === n ? void 0 : n.querySelectorAll(i.selector);\n var r;\n if (null == a || a.forEach(e => {\n const t = e;\n o += 1, i.attributes && i.attributes.forEach(e => {\n switch (e.name) {\n case \"text\":\n t.innerText = e.value;\n break;\n case \"html\":\n t.innerHTML = e.value;\n break;\n case \"cssClass\":\n t.className = e.value;\n break;\n default:\n t.setAttribute(e.name, e.value);\n }\n }), i.text && (t.innerText = i.text), i.html && (t.parentElement ? t.parentElement.innerHTML = i.html : t.innerHTML = i.html), i.css && t.setAttribute(\"style\", i.css);\n }), this.instance && this.instance.capture) this.instance.capture(\"$web_experiment_applied\", {\n $web_experiment_name: e,\n $web_experiment_variant: t,\n $web_experiment_preview: s,\n $web_experiment_document_url: null === (r = Lr.getWindowLocation()) || void 0 === r ? void 0 : r.href,\n $web_experiment_elements_modified: o\n });\n }\n }) : (Lr.logInfo(\"Control variants leave the page unmodified.\"), this.instance && this.instance.capture && this.instance.capture(\"$web_experiment_applied\", {\n $web_experiment_name: e,\n $web_experiment_preview: s,\n $web_experiment_variant: t,\n $web_experiment_document_url: null === (n = Lr.getWindowLocation()) || void 0 === n ? void 0 : n.href,\n $web_experiment_elements_modified: 0\n }));\n }\n _is_bot() {\n return r && this.instance ? hr(r, this.instance.config.custom_blocked_useragents) : void 0;\n }\n}\nconst Dr = \"/e/\";\nclass Or {\n constructor(e) {\n var t;\n this.instance = e, this._endpointSuffix = (null === (t = this.instance.persistence) || void 0 === t ? void 0 : t.props[se]) || Dr;\n }\n get endpoint() {\n return this.instance.requestRouter.endpointFor(\"api\", this._endpointSuffix);\n }\n afterDecideResponse(e) {\n const t = e.autocaptureExceptions;\n this._endpointSuffix = b(t) && t.endpoint || Dr, this.instance.persistence && this.instance.persistence.register({\n [se]: this._endpointSuffix\n });\n }\n sendExceptionEvent(e) {\n this.instance.capture(\"$exception\", e, {\n _noTruncate: !0,\n _batchKey: \"exceptionEvent\",\n _url: this.endpoint\n });\n }\n}\nconst Nr = {},\n qr = () => {},\n Br = \"posthog\";\nlet Hr = !Ks && -1 === (null == d ? void 0 : d.indexOf(\"MSIE\")) && -1 === (null == d ? void 0 : d.indexOf(\"Mozilla\"));\nconst Ur = () => {\n var t;\n return {\n api_host: \"https://us.i.posthog.com\",\n ui_host: null,\n token: \"\",\n autocapture: !0,\n rageclick: !0,\n cross_subdomain_cookie: j(null == o ? void 0 : o.location),\n persistence: \"localStorage+cookie\",\n persistence_name: \"\",\n loaded: qr,\n store_google: !0,\n custom_campaign_params: [],\n custom_blocked_useragents: [],\n save_referrer: !0,\n capture_pageview: !0,\n capture_pageleave: \"if_capture_pageview\",\n debug: a && E(null == a ? void 0 : a.search) && -1 !== a.search.indexOf(\"__posthog_debug=true\") || !1,\n verbose: !1,\n cookie_expiration: 365,\n upgrade: !1,\n disable_session_recording: !1,\n disable_persistence: !1,\n disable_web_experiments: !0,\n disable_surveys: !1,\n enable_recording_console_log: void 0,\n secure_cookie: \"https:\" === (null == e || null === (t = e.location) || void 0 === t ? void 0 : t.protocol),\n ip: !0,\n opt_out_capturing_by_default: !1,\n opt_out_persistence_by_default: !1,\n opt_out_useragent_filter: !1,\n opt_out_capturing_persistence_type: \"localStorage\",\n opt_out_capturing_cookie_prefix: null,\n opt_in_site_apps: !1,\n property_denylist: [],\n respect_dnt: !1,\n sanitize_properties: null,\n request_headers: {},\n inapp_protocol: \"//\",\n inapp_link_new_window: !1,\n request_batching: !0,\n properties_string_max_length: 65535,\n session_recording: {},\n mask_all_element_attributes: !1,\n mask_all_text: !1,\n advanced_disable_decide: !1,\n advanced_disable_feature_flags: !1,\n advanced_disable_feature_flags_on_first_load: !1,\n advanced_disable_toolbar_metrics: !1,\n feature_flag_request_timeout_ms: 3e3,\n on_request_error: e => {\n const t = \"Bad HTTP status: \" + e.statusCode + \" \" + e.text;\n T.error(t);\n },\n get_device_id: e => e,\n _onCapture: qr,\n capture_performance: void 0,\n name: \"posthog\",\n bootstrap: {},\n disable_compression: !1,\n session_idle_timeout_seconds: 1800,\n person_profiles: \"identified_only\",\n __add_tracing_headers: !1\n };\n },\n Wr = e => {\n const t = {};\n S(e.process_person) || (t.person_profiles = e.process_person), S(e.xhr_headers) || (t.request_headers = e.xhr_headers), S(e.cookie_name) || (t.persistence_name = e.cookie_name), S(e.disable_cookie) || (t.disable_persistence = e.disable_cookie);\n const i = O({}, t, e);\n return m(e.property_blacklist) && (S(e.property_denylist) ? i.property_denylist = e.property_blacklist : m(e.property_denylist) ? i.property_denylist = [...e.property_blacklist, ...e.property_denylist] : T.error(\"Invalid value for property_denylist config: \" + e.property_denylist)), i;\n };\nclass zr {\n get _forceAllowLocalhost() {\n return this.__forceAllowLocalhost;\n }\n set _forceAllowLocalhost(e) {\n T.error(\"WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`\"), this.__forceAllowLocalhost = e;\n }\n __forceAllowLocalhost = !1;\n}\nclass Vr {\n webPerformance = new zr();\n version = _.LIB_VERSION;\n _internalEventEmitter = new bn();\n constructor() {\n this.config = Ur(), this.decideEndpointWasHit = !1, this.SentryIntegration = pn, this.sentryIntegration = e => function (e, t) {\n const i = _n(e, t);\n return {\n name: hn,\n processEvent: e => i(e)\n };\n }(this, e), this.__request_queue = [], this.__loaded = !1, this.analyticsDefaultEndpoint = \"/e/\", this._initialPageviewCaptured = !1, this._initialPersonProfilesConfig = null, this.featureFlags = new Oe(this), this.toolbar = new Ys(this), this.scrollManager = new yr(this), this.pageViewManager = new fn(this), this.surveys = new or(this), this.experiments = new Lr(this), this.exceptions = new Or(this), this.rateLimiter = new ar(this), this.requestRouter = new dn(this), this.consent = new Pr(this), this.people = {\n set: (e, t, i) => {\n const s = E(e) ? {\n [e]: t\n } : e;\n this.setPersonProperties(s), null == i || i({});\n },\n set_once: (e, t, i) => {\n const s = E(e) ? {\n [e]: t\n } : e;\n this.setPersonProperties(void 0, s), null == i || i({});\n }\n }, this.on(\"eventCaptured\", e => T.info(`send \"${null == e ? void 0 : e.event}\"`, e));\n }\n init(e, t, i) {\n if (i && i !== Br) {\n var s;\n const n = null !== (s = Nr[i]) && void 0 !== s ? s : new Vr();\n return n._init(e, t, i), Nr[i] = n, Nr[Br][i] = n, n;\n }\n return this._init(e, t, i);\n }\n _init(t) {\n var i, s;\n let n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {},\n r = arguments.length > 2 ? arguments[2] : void 0;\n if (S(t) || k(t)) return T.critical(\"PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()\"), this;\n if (this.__loaded) return T.warn(\"You have already initialized PostHog! Re-initializing is a no-op\"), this;\n this.__loaded = !0, this.config = {}, this._triggered_notifs = [], n.person_profiles && (this._initialPersonProfilesConfig = n.person_profiles), this.set_config(O({}, Ur(), Wr(n), {\n name: r,\n token: t\n })), this.config.on_xhr_error && T.error(\"[posthog] on_xhr_error is deprecated. Use on_request_error instead\"), this.compression = n.disable_compression ? void 0 : J.GZipJS, this.persistence = new ui(this.config), this.sessionPersistence = \"sessionStorage\" === this.config.persistence || \"memory\" === this.config.persistence ? this.persistence : new ui({\n ...this.config,\n persistence: \"sessionStorage\"\n });\n const o = {\n ...this.persistence.props\n },\n a = {\n ...this.sessionPersistence.props\n };\n if (this._requestQueue = new Xs(e => this._send_retriable_request(e)), this._retryQueue = new an(this), this.__request_queue = [], this.sessionManager = new ln(this.config, this.persistence), this.sessionPropsManager = new cr(this.sessionManager, this.persistence), new Ir(this).startIfEnabledOrStop(), this.sessionRecording = new Vs(this), this.sessionRecording.startIfEnabledOrStop(), this.config.disable_scroll_properties || this.scrollManager.startMeasuringScrollPosition(), this.autocapture = new xr(this), this.autocapture.startIfEnabled(), this.surveys.loadIfEnabled(), this.heatmaps = new mr(this), this.heatmaps.startIfEnabled(), this.webVitalsAutocapture = new Ar(this), this.exceptionObserver = new Cr(this), this.exceptionObserver.startIfEnabled(), this.deadClicksAutocapture = new vr(this, fr), this.deadClicksAutocapture.startIfEnabled(), _.DEBUG = _.DEBUG || this.config.debug, _.DEBUG && T.info(\"Starting in debug mode\", {\n this: this,\n config: n,\n thisC: {\n ...this.config\n },\n p: o,\n s: a\n }), this._sync_opt_out_with_persistence(), void 0 !== (null === (i = n.bootstrap) || void 0 === i ? void 0 : i.distinctID)) {\n var l, c;\n const e = this.config.get_device_id(ze()),\n t = null !== (l = n.bootstrap) && void 0 !== l && l.isIdentifiedID ? e : n.bootstrap.distinctID;\n this.persistence.set_property(ke, null !== (c = n.bootstrap) && void 0 !== c && c.isIdentifiedID ? \"identified\" : \"anonymous\"), this.register({\n distinct_id: n.bootstrap.distinctID,\n $device_id: t\n });\n }\n if (this._hasBootstrappedFeatureFlags()) {\n var u, d;\n const e = Object.keys((null === (u = n.bootstrap) || void 0 === u ? void 0 : u.featureFlags) || {}).filter(e => {\n var t, i;\n return !(null === (t = n.bootstrap) || void 0 === t || null === (i = t.featureFlags) || void 0 === i || !i[e]);\n }).reduce((e, t) => {\n var i, s;\n return e[t] = (null === (i = n.bootstrap) || void 0 === i || null === (s = i.featureFlags) || void 0 === s ? void 0 : s[t]) || !1, e;\n }, {}),\n t = Object.keys((null === (d = n.bootstrap) || void 0 === d ? void 0 : d.featureFlagPayloads) || {}).filter(t => e[t]).reduce((e, t) => {\n var i, s, r, o;\n null !== (i = n.bootstrap) && void 0 !== i && null !== (s = i.featureFlagPayloads) && void 0 !== s && s[t] && (e[t] = null === (r = n.bootstrap) || void 0 === r || null === (o = r.featureFlagPayloads) || void 0 === o ? void 0 : o[t]);\n return e;\n }, {});\n this.featureFlags.receivedFeatureFlags({\n featureFlags: e,\n featureFlagPayloads: t\n });\n }\n if (!this.get_distinct_id()) {\n const e = this.config.get_device_id(ze());\n this.register_once({\n distinct_id: e,\n $device_id: e\n }, \"\"), this.persistence.set_property(ke, \"anonymous\");\n }\n return null == e || null === (s = e.addEventListener) || void 0 === s || s.call(e, \"onpagehide\" in self ? \"pagehide\" : \"unload\", this._handle_unload.bind(this)), this.toolbar.maybeLoadToolbar(), n.segment ? gn(this, () => this._loaded()) : this._loaded(), y(this.config._onCapture) && this.on(\"eventCaptured\", e => this.config._onCapture(e.event, e)), this;\n }\n _afterDecideResponse(e) {\n var t, i, s, n, r, o, a, l, c, u;\n this.compression = void 0, e.supportedCompression && !this.config.disable_compression && (this.compression = N(e.supportedCompression, J.GZipJS) ? J.GZipJS : N(e.supportedCompression, J.Base64) ? J.Base64 : void 0), null !== (t = e.analytics) && void 0 !== t && t.endpoint && (this.analyticsDefaultEndpoint = e.analytics.endpoint), this.set_config({\n person_profiles: this._initialPersonProfilesConfig ? this._initialPersonProfilesConfig : e.defaultIdentifiedOnly ? \"identified_only\" : \"always\"\n }), null === (i = this.sessionRecording) || void 0 === i || i.afterDecideResponse(e), null === (s = this.autocapture) || void 0 === s || s.afterDecideResponse(e), null === (n = this.heatmaps) || void 0 === n || n.afterDecideResponse(e), null === (r = this.experiments) || void 0 === r || r.afterDecideResponse(e), null === (o = this.surveys) || void 0 === o || o.afterDecideResponse(e), null === (a = this.webVitalsAutocapture) || void 0 === a || a.afterDecideResponse(e), null === (l = this.exceptions) || void 0 === l || l.afterDecideResponse(e), null === (c = this.exceptionObserver) || void 0 === c || c.afterDecideResponse(e), null === (u = this.deadClicksAutocapture) || void 0 === u || u.afterDecideResponse(e);\n }\n _loaded() {\n const e = this.config.advanced_disable_decide;\n e || this.featureFlags.setReloadingPaused(!0);\n try {\n this.config.loaded(this);\n } catch (e) {\n T.critical(\"`loaded` function failed\", e);\n }\n this._start_queue_if_opted_in(), this.config.capture_pageview && setTimeout(() => {\n this.consent.isOptedIn() && this._captureInitialPageview();\n }, 1), e || (new Gs(this).call(), this.featureFlags.resetRequestQueue());\n }\n _start_queue_if_opted_in() {\n var e;\n this.has_opted_out_capturing() || this.config.request_batching && (null === (e = this._requestQueue) || void 0 === e || e.enable());\n }\n _dom_loaded() {\n this.has_opted_out_capturing() || L(this.__request_queue, e => this._send_retriable_request(e)), this.__request_queue = [], this._start_queue_if_opted_in();\n }\n _handle_unload() {\n var e, t;\n this.config.request_batching ? (this._shouldCapturePageleave() && this.capture(\"$pageleave\"), null === (e = this._requestQueue) || void 0 === e || e.unload(), null === (t = this._retryQueue) || void 0 === t || t.unload()) : this._shouldCapturePageleave() && this.capture(\"$pageleave\", null, {\n transport: \"sendBeacon\"\n });\n }\n _send_request(e) {\n this.__loaded && (Hr ? this.__request_queue.push(e) : this.rateLimiter.isServerRateLimited(e.batchKey) || (e.transport = e.transport || this.config.api_transport, e.url = en(e.url, {\n ip: this.config.ip ? 1 : 0\n }), e.headers = {\n ...this.config.request_headers\n }, e.compression = \"best-available\" === e.compression ? this.compression : e.compression, (e => {\n var t, i, s;\n const n = {\n ...e\n };\n n.timeout = n.timeout || 6e4, n.url = en(n.url, {\n _: new Date().getTime().toString(),\n ver: _.LIB_VERSION,\n compression: n.compression\n });\n const r = null !== (t = n.transport) && void 0 !== t ? t : \"XHR\",\n o = null !== (i = null === (s = Q(on, e => e.transport === r)) || void 0 === s ? void 0 : s.method) && void 0 !== i ? i : on[0].method;\n if (!o) throw new Error(\"No available transport method\");\n o(n);\n })({\n ...e,\n callback: t => {\n var i, s, n;\n (this.rateLimiter.checkForLimiting(t), t.statusCode >= 400) && (null === (s = (n = this.config).on_request_error) || void 0 === s || s.call(n, t));\n null === (i = e.callback) || void 0 === i || i.call(e, t);\n }\n })));\n }\n _send_retriable_request(e) {\n this._retryQueue ? this._retryQueue.retriableRequest(e) : this._send_request(e);\n }\n _execute_array(e) {\n let t;\n const i = [],\n s = [],\n n = [];\n L(e, e => {\n e && (t = e[0], m(t) ? n.push(e) : y(e) ? e.call(this) : m(e) && \"alias\" === t ? i.push(e) : m(e) && -1 !== t.indexOf(\"capture\") && y(this[t]) ? n.push(e) : s.push(e));\n });\n const r = function (e, t) {\n L(e, function (e) {\n if (m(e[0])) {\n let i = t;\n D(e, function (e) {\n i = i[e[0]].apply(i, e.slice(1));\n });\n } else this[e[0]].apply(this, e.slice(1));\n }, t);\n };\n r(i, this), r(s, this), r(n, this);\n }\n _hasBootstrappedFeatureFlags() {\n var e, t;\n return (null === (e = this.config.bootstrap) || void 0 === e ? void 0 : e.featureFlags) && Object.keys(null === (t = this.config.bootstrap) || void 0 === t ? void 0 : t.featureFlags).length > 0 || !1;\n }\n push(e) {\n this._execute_array([e]);\n }\n capture(e, t, i) {\n var s;\n if (!(this.__loaded && this.persistence && this.sessionPersistence && this._requestQueue)) return void T.uninitializedWarning(\"posthog.capture\");\n if (this.consent.isOptedOut()) return;\n if (S(e) || !E(e)) return void T.error(\"No event name provided to posthog.capture\");\n if (!this.config.opt_out_useragent_filter && this._is_bot()) return;\n const n = null != i && i.skip_client_rate_limiting ? void 0 : this.rateLimiter.clientRateLimitContext();\n if (null != n && n.isRateLimited) return void T.critical(\"This capture call is ignored due to client rate limiting.\");\n this.sessionPersistence.update_search_keyword(), this.config.store_google && this.sessionPersistence.update_campaign_params(), this.config.save_referrer && this.sessionPersistence.update_referrer_info(), (this.config.store_google || this.config.save_referrer) && this.persistence.set_initial_person_info();\n const r = new Date(),\n o = (null == i ? void 0 : i.timestamp) || r;\n let a = {\n uuid: ze(),\n event: e,\n properties: this._calculate_event_properties(e, t || {}, o)\n };\n n && (a.properties.$lib_rate_limit_remaining_tokens = n.remainingTokens);\n (null == i ? void 0 : i.$set) && (a.$set = null == i ? void 0 : i.$set);\n const l = this._calculate_set_once_properties(null == i ? void 0 : i.$set_once);\n l && (a.$set_once = l), a = z(a, null != i && i._noTruncate ? null : this.config.properties_string_max_length), a.timestamp = o, S(null == i ? void 0 : i.timestamp) || (a.properties.$event_time_override_provided = !0, a.properties.$event_time_override_system_time = r);\n const c = {\n ...a.properties.$set,\n ...a.$set\n };\n w(c) || this.setPersonPropertiesForFlags(c), this._internalEventEmitter.emit(\"eventCaptured\", a);\n const u = {\n method: \"POST\",\n url: null !== (s = null == i ? void 0 : i._url) && void 0 !== s ? s : this.requestRouter.endpointFor(\"api\", this.analyticsDefaultEndpoint),\n data: a,\n compression: \"best-available\",\n batchKey: null == i ? void 0 : i._batchKey\n };\n return !this.config.request_batching || i && (null == i || !i._batchKey) || null != i && i.send_instantly ? this._send_retriable_request(u) : this._requestQueue.enqueue(u), a;\n }\n _addCaptureHook(e) {\n return this.on(\"eventCaptured\", t => e(t.event, t));\n }\n _calculate_event_properties(e, t, i) {\n if (i = i || new Date(), !this.persistence || !this.sessionPersistence) return t;\n const s = this.persistence.remove_event_timer(e);\n let n = {\n ...t\n };\n if (n.token = this.config.token, \"$snapshot\" === e) {\n const e = {\n ...this.persistence.properties(),\n ...this.sessionPersistence.properties()\n };\n return n.distinct_id = e.distinct_id, (!E(n.distinct_id) && !R(n.distinct_id) || k(n.distinct_id)) && T.error(\"Invalid distinct_id for replay event. This indicates a bug in your implementation\"), n;\n }\n const r = li.properties();\n if (this.sessionManager) {\n const {\n sessionId: e,\n windowId: t\n } = this.sessionManager.checkAndGetSessionAndWindowId();\n n.$session_id = e, n.$window_id = t;\n }\n if (this.requestRouter.region === cn.CUSTOM && (n.$lib_custom_api_host = this.config.api_host), this.sessionPropsManager && this.config.__preview_send_client_session_params && (\"$pageview\" === e || \"$pageleave\" === e || \"$autocapture\" === e)) {\n const e = this.sessionPropsManager.getSessionProps();\n n = O(n, e);\n }\n if (!this.config.disable_scroll_properties) {\n let t = {};\n \"$pageview\" === e ? t = this.pageViewManager.doPageView(i) : \"$pageleave\" === e && (t = this.pageViewManager.doPageLeave(i)), n = O(n, t);\n }\n if (\"$pageview\" === e && o && (n.title = o.title), !S(s)) {\n const e = i.getTime() - s;\n n.$duration = parseFloat((e / 1e3).toFixed(3));\n }\n d && this.config.opt_out_useragent_filter && (n.$browser_type = this._is_bot() ? \"bot\" : \"browser\"), n = O({}, r, this.persistence.properties(), this.sessionPersistence.properties(), n), n.$is_identified = this._isIdentified(), m(this.config.property_denylist) ? D(this.config.property_denylist, function (e) {\n delete n[e];\n }) : T.error(\"Invalid value for property_denylist config: \" + this.config.property_denylist + \" or property_blacklist config: \" + this.config.property_blacklist);\n const a = this.config.sanitize_properties;\n a && (n = a(n, e));\n const l = this._hasPersonProcessing();\n return n.$process_person_profile = l, l && this._requirePersonProcessing(\"_calculate_event_properties\"), n;\n }\n _calculate_set_once_properties(e) {\n if (!this.persistence || !this._hasPersonProcessing()) return e;\n let t = O({}, this.persistence.get_initial_props(), e || {});\n const i = this.config.sanitize_properties;\n return i && (t = i(t, \"$set_once\")), w(t) ? void 0 : t;\n }\n register(e, t) {\n var i;\n null === (i = this.persistence) || void 0 === i || i.register(e, t);\n }\n register_once(e, t, i) {\n var s;\n null === (s = this.persistence) || void 0 === s || s.register_once(e, t, i);\n }\n register_for_session(e) {\n var t;\n null === (t = this.sessionPersistence) || void 0 === t || t.register(e);\n }\n unregister(e) {\n var t;\n null === (t = this.persistence) || void 0 === t || t.unregister(e);\n }\n unregister_for_session(e) {\n var t;\n null === (t = this.sessionPersistence) || void 0 === t || t.unregister(e);\n }\n _register_single(e, t) {\n this.register({\n [e]: t\n });\n }\n getFeatureFlag(e, t) {\n return this.featureFlags.getFeatureFlag(e, t);\n }\n getFeatureFlagPayload(e) {\n const t = this.featureFlags.getFeatureFlagPayload(e);\n try {\n return JSON.parse(t);\n } catch {\n return t;\n }\n }\n isFeatureEnabled(e, t) {\n return this.featureFlags.isFeatureEnabled(e, t);\n }\n reloadFeatureFlags() {\n this.featureFlags.reloadFeatureFlags();\n }\n updateEarlyAccessFeatureEnrollment(e, t) {\n this.featureFlags.updateEarlyAccessFeatureEnrollment(e, t);\n }\n getEarlyAccessFeatures(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];\n return this.featureFlags.getEarlyAccessFeatures(e, t);\n }\n on(e, t) {\n return this._internalEventEmitter.on(e, t);\n }\n onFeatureFlags(e) {\n return this.featureFlags.onFeatureFlags(e);\n }\n onSessionId(e) {\n var t, i;\n return null !== (t = null === (i = this.sessionManager) || void 0 === i ? void 0 : i.onSessionId(e)) && void 0 !== t ? t : () => {};\n }\n getSurveys(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];\n this.surveys.getSurveys(e, t);\n }\n getActiveMatchingSurveys(e) {\n let t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];\n this.surveys.getActiveMatchingSurveys(e, t);\n }\n renderSurvey(e, t) {\n this.surveys.renderSurvey(e, t);\n }\n canRenderSurvey(e) {\n this.surveys.canRenderSurvey(e);\n }\n getNextSurveyStep(e, t, i) {\n return this.surveys.getNextSurveyStep(e, t, i);\n }\n identify(e, t, i) {\n if (!this.__loaded || !this.persistence) return T.uninitializedWarning(\"posthog.identify\");\n if (R(e) && (e = e.toString(), T.warn(\"The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.\")), !e) return void T.error(\"Unique user id has not been set in posthog.identify\");\n if ([\"distinct_id\", \"distinctid\"].includes(e.toLowerCase())) return void T.critical(`The string \"${e}\" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.`);\n if (!this._requirePersonProcessing(\"posthog.identify\")) return;\n const s = this.get_distinct_id();\n if (this.register({\n $user_id: e\n }), !this.get_property(\"$device_id\")) {\n const e = s;\n this.register_once({\n $had_persisted_distinct_id: !0,\n $device_id: e\n }, \"\");\n }\n e !== s && e !== this.get_property(K) && (this.unregister(K), this.register({\n distinct_id: e\n }));\n const n = \"anonymous\" === (this.persistence.get_property(ke) || \"anonymous\");\n e !== s && n ? (this.persistence.set_property(ke, \"identified\"), this.setPersonPropertiesForFlags(t || {}, !1), this.capture(\"$identify\", {\n distinct_id: e,\n $anon_distinct_id: s\n }, {\n $set: t || {},\n $set_once: i || {}\n }), this.featureFlags.setAnonymousDistinctId(s)) : (t || i) && this.setPersonProperties(t, i), e !== s && (this.reloadFeatureFlags(), this.unregister(Ee));\n }\n setPersonProperties(e, t) {\n (e || t) && this._requirePersonProcessing(\"posthog.setPersonProperties\") && (this.setPersonPropertiesForFlags(e || {}), this.capture(\"$set\", {\n $set: e || {},\n $set_once: t || {}\n }));\n }\n group(e, t, i) {\n if (!e || !t) return void T.error(\"posthog.group requires a group type and group key\");\n if (!this._requirePersonProcessing(\"posthog.group\")) return;\n const s = this.getGroups();\n s[e] !== t && this.resetGroupPropertiesForFlags(e), this.register({\n $groups: {\n ...s,\n [e]: t\n }\n }), i && (this.capture(\"$groupidentify\", {\n $group_type: e,\n $group_key: t,\n $group_set: i\n }), this.setGroupPropertiesForFlags({\n [e]: i\n })), s[e] === t || i || this.reloadFeatureFlags();\n }\n resetGroups() {\n this.register({\n $groups: {}\n }), this.resetGroupPropertiesForFlags(), this.reloadFeatureFlags();\n }\n setPersonPropertiesForFlags(e) {\n let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];\n this._requirePersonProcessing(\"posthog.setPersonPropertiesForFlags\") && this.featureFlags.setPersonPropertiesForFlags(e, t);\n }\n resetPersonPropertiesForFlags() {\n this.featureFlags.resetPersonPropertiesForFlags();\n }\n setGroupPropertiesForFlags(e) {\n let t = !(arguments.length > 1 && void 0 !== arguments[1]) || arguments[1];\n this._requirePersonProcessing(\"posthog.setGroupPropertiesForFlags\") && this.featureFlags.setGroupPropertiesForFlags(e, t);\n }\n resetGroupPropertiesForFlags(e) {\n this.featureFlags.resetGroupPropertiesForFlags(e);\n }\n reset(e) {\n var t, i, s, n, r;\n if (T.info(\"reset\"), !this.__loaded) return T.uninitializedWarning(\"posthog.reset\");\n const o = this.get_property(\"$device_id\");\n this.consent.reset(), null === (t = this.persistence) || void 0 === t || t.clear(), null === (i = this.sessionPersistence) || void 0 === i || i.clear(), null === (s = this.surveys) || void 0 === s || s.reset(), null === (n = this.persistence) || void 0 === n || n.set_property(ke, \"anonymous\"), null === (r = this.sessionManager) || void 0 === r || r.resetSessionId();\n const a = this.config.get_device_id(ze());\n this.register_once({\n distinct_id: a,\n $device_id: e ? a : o\n }, \"\");\n }\n get_distinct_id() {\n return this.get_property(\"distinct_id\");\n }\n getGroups() {\n return this.get_property(\"$groups\") || {};\n }\n get_session_id() {\n var e, t;\n return null !== (e = null === (t = this.sessionManager) || void 0 === t ? void 0 : t.checkAndGetSessionAndWindowId(!0).sessionId) && void 0 !== e ? e : \"\";\n }\n get_session_replay_url(e) {\n if (!this.sessionManager) return \"\";\n const {\n sessionId: t,\n sessionStartTimestamp: i\n } = this.sessionManager.checkAndGetSessionAndWindowId(!0);\n let s = this.requestRouter.endpointFor(\"ui\", `/project/${this.config.token}/replay/${t}`);\n if (null != e && e.withTimestamp && i) {\n var n;\n const t = null !== (n = e.timestampLookBack) && void 0 !== n ? n : 10;\n if (!i) return s;\n s += `?t=${Math.max(Math.floor((new Date().getTime() - i) / 1e3) - t, 0)}`;\n }\n return s;\n }\n alias(e, t) {\n return e === this.get_property(X) ? (T.critical(\"Attempting to create alias for existing People user - aborting.\"), -2) : this._requirePersonProcessing(\"posthog.alias\") ? (S(t) && (t = this.get_distinct_id()), e !== t ? (this._register_single(K, e), this.capture(\"$create_alias\", {\n alias: e,\n distinct_id: t\n })) : (T.warn(\"alias matches current distinct_id - skipping api call.\"), this.identify(e), -1)) : void 0;\n }\n set_config(e) {\n const t = {\n ...this.config\n };\n var i, s, n, r;\n b(e) && (O(this.config, Wr(e)), null === (i = this.persistence) || void 0 === i || i.update_config(this.config, t), this.sessionPersistence = \"sessionStorage\" === this.config.persistence || \"memory\" === this.config.persistence ? this.persistence : new ui({\n ...this.config,\n persistence: \"sessionStorage\"\n }), Ke.is_supported() && \"true\" === Ke.get(\"ph_debug\") && (this.config.debug = !0), this.config.debug && (_.DEBUG = !0, T.info(\"set_config\", {\n config: e,\n oldConfig: t,\n newConfig: {\n ...this.config\n }\n })), null === (s = this.sessionRecording) || void 0 === s || s.startIfEnabledOrStop(), null === (n = this.autocapture) || void 0 === n || n.startIfEnabled(), null === (r = this.heatmaps) || void 0 === r || r.startIfEnabled(), this.surveys.loadIfEnabled(), this._sync_opt_out_with_persistence());\n }\n startSessionRecording(e) {\n const t = !0 === e,\n i = {\n sampling: t || !(null == e || !e.sampling),\n linked_flag: t || !(null == e || !e.linked_flag),\n url_trigger: t || !(null == e || !e.url_trigger),\n event_trigger: t || !(null == e || !e.event_trigger)\n };\n if (Object.values(i).some(Boolean)) {\n var s, n, r, o, a;\n if (null === (s = this.sessionManager) || void 0 === s || s.checkAndGetSessionAndWindowId(), i.sampling) null === (n = this.sessionRecording) || void 0 === n || n.overrideSampling();\n if (i.linked_flag) null === (r = this.sessionRecording) || void 0 === r || r.overrideLinkedFlag();\n if (i.url_trigger) null === (o = this.sessionRecording) || void 0 === o || o.overrideTrigger(\"url\");\n if (i.event_trigger) null === (a = this.sessionRecording) || void 0 === a || a.overrideTrigger(\"event\");\n }\n this.set_config({\n disable_session_recording: !1\n });\n }\n stopSessionRecording() {\n this.set_config({\n disable_session_recording: !0\n });\n }\n sessionRecordingStarted() {\n var e;\n return !(null === (e = this.sessionRecording) || void 0 === e || !e.started);\n }\n captureException(e, t) {\n var i;\n const s = new Error(\"PostHog syntheticException\"),\n n = y(null === (i = h.__PosthogExtensions__) || void 0 === i ? void 0 : i.parseErrorAsProperties) ? h.__PosthogExtensions__.parseErrorAsProperties([e.message, void 0, void 0, void 0, e], {\n syntheticException: s\n }) : {\n $exception_level: \"error\",\n $exception_list: [{\n type: e.name,\n value: e.message,\n mechanism: {\n handled: !0,\n synthetic: !1\n }\n }],\n ...t\n };\n this.exceptions.sendExceptionEvent(n);\n }\n loadToolbar(e) {\n return this.toolbar.loadToolbar(e);\n }\n get_property(e) {\n var t;\n return null === (t = this.persistence) || void 0 === t ? void 0 : t.props[e];\n }\n getSessionProperty(e) {\n var t;\n return null === (t = this.sessionPersistence) || void 0 === t ? void 0 : t.props[e];\n }\n toString() {\n var e;\n let t = null !== (e = this.config.name) && void 0 !== e ? e : Br;\n return t !== Br && (t = Br + \".\" + t), t;\n }\n _isIdentified() {\n var e, t;\n return \"identified\" === (null === (e = this.persistence) || void 0 === e ? void 0 : e.get_property(ke)) || \"identified\" === (null === (t = this.sessionPersistence) || void 0 === t ? void 0 : t.get_property(ke));\n }\n _hasPersonProcessing() {\n var e, t, i, s;\n return !(\"never\" === this.config.person_profiles || \"identified_only\" === this.config.person_profiles && !this._isIdentified() && w(this.getGroups()) && (null === (e = this.persistence) || void 0 === e || null === (t = e.props) || void 0 === t || !t[K]) && (null === (i = this.persistence) || void 0 === i || null === (s = i.props) || void 0 === s || !s[Ce]));\n }\n _shouldCapturePageleave() {\n return !0 === this.config.capture_pageleave || \"if_capture_pageview\" === this.config.capture_pageleave && this.config.capture_pageview;\n }\n createPersonProfile() {\n this._hasPersonProcessing() || this._requirePersonProcessing(\"posthog.createPersonProfile\") && this.setPersonProperties({}, {});\n }\n _requirePersonProcessing(e) {\n return \"never\" === this.config.person_profiles ? (T.error(e + ' was called, but process_person is set to \"never\". This call will be ignored.'), !1) : (this._register_single(Ce, !0), !0);\n }\n _sync_opt_out_with_persistence() {\n var e, t;\n const i = this.consent.isOptedOut(),\n s = this.config.opt_out_persistence_by_default,\n n = this.config.disable_persistence || i && !!s;\n var r, o;\n (null === (e = this.persistence) || void 0 === e ? void 0 : e.disabled) !== n && (null === (r = this.persistence) || void 0 === r || r.set_disabled(n));\n (null === (t = this.sessionPersistence) || void 0 === t ? void 0 : t.disabled) !== n && (null === (o = this.sessionPersistence) || void 0 === o || o.set_disabled(n));\n }\n opt_in_capturing(e) {\n var t;\n (this.consent.optInOut(!0), this._sync_opt_out_with_persistence(), S(null == e ? void 0 : e.captureEventName) || null != e && e.captureEventName) && this.capture(null !== (t = null == e ? void 0 : e.captureEventName) && void 0 !== t ? t : \"$opt_in\", null == e ? void 0 : e.captureProperties, {\n send_instantly: !0\n });\n this.config.capture_pageview && this._captureInitialPageview();\n }\n opt_out_capturing() {\n this.consent.optInOut(!1), this._sync_opt_out_with_persistence();\n }\n has_opted_in_capturing() {\n return this.consent.isOptedIn();\n }\n has_opted_out_capturing() {\n return this.consent.isOptedOut();\n }\n clear_opt_in_out_capturing() {\n this.consent.reset(), this._sync_opt_out_with_persistence();\n }\n _is_bot() {\n return r ? hr(r, this.config.custom_blocked_useragents) : void 0;\n }\n _captureInitialPageview() {\n o && !this._initialPageviewCaptured && (this._initialPageviewCaptured = !0, this.capture(\"$pageview\", {\n title: o.title\n }, {\n send_instantly: !0\n }));\n }\n debug(t) {\n !1 === t ? (null == e || e.console.log(\"You've disabled debug mode.\"), localStorage && localStorage.removeItem(\"ph_debug\"), this.set_config({\n debug: !1\n })) : (null == e || e.console.log(\"You're now in debug mode. All calls to PostHog will be logged in your console.\\nYou can disable this with `posthog.debug(false)`.\"), localStorage && localStorage.setItem(\"ph_debug\", \"true\"), this.set_config({\n debug: !0\n }));\n }\n}\n!function (e, t) {\n for (let i = 0; i < t.length; i++) e.prototype[t[i]] = H(e.prototype[t[i]]);\n}(Vr, [\"identify\"]);\nconst Gr = function () {\n const t = Nr[Br] = new Vr();\n return function () {\n function t() {\n t.done || (t.done = !0, Hr = !1, D(Nr, function (e) {\n e._dom_loaded();\n }));\n }\n null != o && o.addEventListener && (\"complete\" === o.readyState ? t() : o.addEventListener(\"DOMContentLoaded\", t, !1)), e && G(e, \"load\", t, !0);\n }(), t;\n}();\nexport { J as Compression, Vr as PostHog, yn as SurveyQuestionBranchingType, mn as SurveyQuestionType, vn as SurveyType, Gr as default, Gr as posthog, Y as severityLevels };\n","export class UpdateFeatureFlagsAction {\n static readonly type = '[Flags] Update Feature Flags';\n constructor(public flags: Record) {}\n}\n","import { Injectable, inject } from '@angular/core';\nimport { Actions, Store, ofActionCompleted } from '@ngxs/store';\n\nimport posthog from 'posthog-js';\nimport { forkJoin, take } from 'rxjs';\nimport { environment } from 'src/environments/environment';\nimport { LoadOrganizationAction } from '../organization/organization.actions';\nimport { OrganizationDetailsState } from '../organization/organization.state';\nimport { LoadUserAction } from '../user/user.actions';\nimport { UserState } from '../user/user.state';\nimport { UpdateFeatureFlagsAction } from './features.actions';\n\n@Injectable()\nexport class FeaturesService {\n store = inject(Store);\n actions = inject(Actions);\n\n constructor() {\n posthog.onFeatureFlags(\n (flags: string[], variants: Record) => {\n this.store.dispatch(new UpdateFeatureFlagsAction(variants));\n }\n );\n\n forkJoin([\n this.actions.pipe(ofActionCompleted(LoadUserAction), take(1)),\n this.actions.pipe(ofActionCompleted(LoadOrganizationAction), take(1)),\n ]).subscribe(() => {\n const user = this.store.selectSnapshot(UserState.getUser);\n const organization = this.store.selectSnapshot(\n OrganizationDetailsState.organization\n );\n\n if (organization?.data) {\n posthog.identify(user!.id, {\n email: user?.email,\n organizationId: organization.data.id,\n environment: environment.posthog.environment,\n });\n\n posthog.group('company', organization.data.id, {\n name: organization.data.name,\n plan: organization.data.subscription.plan.name,\n environment: environment.posthog.environment,\n });\n }\n });\n }\n}\n","export const FLAGS = {\n HALO_PROTOCOL_FRONTENT: 'halo-protocol-frontend',\n DISABLE_REGISTRATION: 'disable-registration',\n ENABLE_INCIDENT_SCHEMA_EDITOR: 'incident-schema-editor',\n ENABLE_MONITORS: 'enable-monitors',\n};\n","import { Injectable, inject } from '@angular/core';\nimport {\n Action,\n Selector,\n State,\n StateContext,\n createSelector,\n} from '@ngxs/store';\n\nimport { Router } from '@angular/router';\nimport { UpdateFeatureFlagsAction } from './features.actions';\nimport { FeaturesService } from './features.service';\nimport { FLAGS } from './flags';\n\nexport type FeatureFlags = Record;\n\nexport interface FeaturesStateModel {\n flags: FeatureFlags;\n}\n\n@State({\n name: 'features',\n defaults: { flags: {} },\n})\n@Injectable()\nexport class FeaturesState {\n private fs = inject(FeaturesService);\n private router = inject(Router);\n\n static boolFlag(flag: string) {\n return createSelector([FeaturesState], (state: FeaturesStateModel) => {\n return state.flags[flag] ? state.flags[flag] : false;\n });\n }\n\n @Selector()\n static flags(state: FeaturesStateModel) {\n return state.flags;\n }\n\n @Action(UpdateFeatureFlagsAction)\n updateFeatureFlags(\n ctx: StateContext,\n action: UpdateFeatureFlagsAction\n ) {\n ctx.patchState({\n flags: action.flags,\n });\n\n if (action.flags[FLAGS.HALO_PROTOCOL_FRONTENT]) {\n this.router.navigate(['/maintenance']);\n }\n }\n}\n"],"names":["RequiredRolesAnnotation","PermissionGuard","snapshot","__async","store","inject","Store","data","permissionRoles","selectSnapshot","UserState","getPermissionRoles","HasPermissionForRoute","route","rp","includes","e","t","i","s","n","r","o","a","l","c","u","d","h","_","p","g","f","v","m","y","b","w","S","E","k","x","I","R","P","F","C","T","$","A","M","L","D","O","N","q","B","H","U","W","z","V","G","j","Q","J","X","K","Z","ee","te","ie","se","ne","re","oe","ae","le","ce","ue","de","he","_e","pe","ge","fe","ve","me","ye","be","we","Se","Ee","ke","xe","Ie","Re","Pe","Fe","Ce","Te","$e","Ae","Me","Le","De","e","t","i","s","q","Oe","O","T","J","n","r","m","o","a","__spreadValues","__spreadProps","R","Ne","qe","_qe","Be","We","S","He","Ue","ze","Ve","Ge","je","Qe","Je","Ye","l","c","Xe","Ke","x","Ze","et","tt","it","st","nt","rt","ot","at","lt","D","ct","ut","dt","ht","_t","pt","gt","ft","vt","mt","yt","bt","wt","St","Et","kt","xt","It","Rt","Pt","Ft","Ct","Tt","$t","At","Mt","Lt","Dt","Ot","Nt","qt","Bt","Ht","Ut","Wt","zt","Vt","Gt","jt","Qt","Jt","Yt","Xt","Kt","Zt","ei","ti","N","ii","si","ni","ri","oi","ai","li","y","W","d","U","_","ci","ui","b","A","w","di","hi","_i","pi","gi","fi","vi","mi","yi","bi","M","wi","Si","Ei","I","Oi","ki","Fi","Ci","xi","Ii","Ri","Pi","u","E","Ti","$i","Ai","Mi","Li","Di","Ni","qi","Bi","Hi","Ui","Wi","zi","Vi","Gi","ji","Qi","Ji","Yi","Xi","Ki","Zi","es","ts","is","ss","ns","rs","os","as","ls","cs","us","ds","hs","_s","ps","gs","fs","vs","ms","ys","bs","ws","Ss","Es","p","ks","g","f","v","xs","Is","Rs","Ps","k","P","F","C","$","L","B","H","Fs","Cs","Ts","$s","h","z","V","G","j","As","Ms","Ls","Ds","Os","Ns","qs","Bs","Hs","Us","Ws","zs","Vs","Gs","js","Qs","Js","Ys","Xs","Ks","Zs","en","tn","sn","nn","rn","on","an","_a","__objRest","ln","cn","un","dn","hn","_n","pn","gn","fn","vn","mn","yn","bn","wn","_wn","Sn","En","kn","xn","In","Rn","Pn","Fn","Cn","Tn","$n","An","Mn","Ln","Dn","On","qn","Bn","Hn","Un","Wn","Kn","Zn","zn","Vn","tr","Gn","jn","ir","Qn","Jn","Xn","Yn","sr","er","nr","rr","or","ar","lr","cr","ur","dr","hr","_r","pr","gr","fr","vr","mr","yr","br","wr","Sr","Er","kr","xr","Ir","Rr","Pr","Q","Fr","Cr","Tr","$r","Ar","Mr","Lr","_Lr","Dr","Or","Nr","qr","Br","Hr","Ur","Wr","zr","Vr","_Vr","Gr","UpdateFeatureFlagsAction","type","constructor","flags","FeaturesService","constructor","store","inject","Store","actions","Actions","posthog","onFeatureFlags","flags","variants","dispatch","UpdateFeatureFlagsAction","forkJoin","pipe","ofActionCompleted","LoadUserAction","take","LoadOrganizationAction","subscribe","user","selectSnapshot","UserState","getUser","organization","OrganizationDetailsState","data","identify","id","email","organizationId","environment","group","name","plan","subscription","factory","ɵfac","FLAGS","HALO_PROTOCOL_FRONTENT","DISABLE_REGISTRATION","ENABLE_INCIDENT_SCHEMA_EDITOR","ENABLE_MONITORS","FeaturesState","constructor","fs","inject","FeaturesService","router","Router","boolFlag","flag","createSelector","FeaturesState_1","state","flags","updateFeatureFlags","ctx","action","patchState","FLAGS","HALO_PROTOCOL_FRONTENT","navigate","factory","ɵfac","__decorate","Action","UpdateFeatureFlagsAction","Selector","State","name","defaults"],"mappings":";;wPAKO,IAAMA,GAA0B,gBAG1BC,GAAyBC,GAAoCC,GAAA,wBACxE,IAAMC,EAAQC,GAAOC,EAAK,EAE1B,GAAI,CAACJ,EAASK,MAAQ,CAACL,EAASK,KAAKP,EAAuB,EAAG,MAAO,GAEtE,IAAMQ,EAAkBJ,EAAMK,eAAeC,GAAUC,kBAAkB,EAEzE,OAAOC,GAAsBJ,EAAiBN,CAAQ,CACxD,GAEaU,GAAwBA,CACnCJ,EACAK,IACE,CACF,GAAI,CAACA,EAAMN,MAAQ,CAACM,EAAMN,KAAKP,EAAuB,EAAG,MAAO,GAGhE,QAAWc,KAAMD,EAAMN,KAAKP,EAAuB,EACjD,GAAIQ,GAAiBO,SAASD,CAAE,EAC9B,MAAO,GAIX,MAAO,EACT,EChCA,IAAME,EAAmB,OAAO,OAAtB,IAA+B,OAAS,OAChDC,EAAmB,OAAO,WAAtB,IAAmC,WAAaD,EACpDE,GAAI,MAAM,UACVC,GAAID,GAAE,QACNE,GAAIF,GAAE,QACNG,GAAyBJ,GAAE,UAC3BK,EAAyBL,GAAE,SAC3BM,EAAyBN,GAAE,SAC3BO,GAAyBP,GAAE,MAC3BQ,GAAYR,GAAR,MAAaA,EAAE,gBAAkB,oBAAqB,IAAIA,EAAE,eAAmBA,EAAE,eAAiB,OACtGS,GAAyBT,GAAE,gBAC3BU,EAAyBN,IAAE,UAC3BO,EAAYZ,GAAQ,CAAC,EACjBa,GAAI,CACN,MAAO,GACP,YAAa,SACf,EACAC,GAAI,MAAM,QACVC,GAAI,OAAO,UACXC,GAAID,GAAE,eACNE,GAAIF,GAAE,SACNG,EAAIJ,IAAK,SAAUd,EAAG,CACpB,OAA4BiB,GAAE,KAAKjB,CAAC,IAA7B,gBACT,EACAmB,GAAI,SA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