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B,EAAQE,EAAMzI,MAAM10B,GACfi9B,EAAM/H,eACVgI,EAAQD,EAAM/H,aAAalyB,IAAMi6B,EAAM/H,cAM1C,OAAOgI,CACR,EAQAE,UAAWlJ,eAAiBmJ,GAC3B,IAAIH,QAAgBlnC,KAAKgnC,iBACxBM,EAAU,GASX,OAPKJ,EAAQG,IACTH,EAAQG,GAAUzI,QAClBsI,EAAQG,GAAUzI,OAAOt/B,SAE5BgoC,EAAUJ,EAAQG,GAAUzI,QAGtB0I,CACR,EAYAt8B,KAAM,SAASu8B,GACd,IACC,GAA2B,mBAAfA,EACX,KAAM,mCAGPA,GACD,CAAE,MAAQlK,GACTxoB,QAAQwT,IAAIgV,EACb,CACD,EAKF,CAh5CuB,GA05CvB,IAAK,IAAImK,EAAQ,EAAGA,EAAQ/L,GAAWn8B,OAAQkoC,IAC9ChhC,OAAOg1B,MAAME,OAAO1wB,KAAKywB,GAAW+L,G","sources":["webpack://access/./node_modules/core-js/internals/a-callable.js","webpack://access/./node_modules/core-js/internals/an-object.js","webpack://access/./node_modules/core-js/internals/array-includes.js","webpack://access/./node_modules/core-js/internals/array-set-length.js","webpack://access/./node_modules/core-js/internals/classof-raw.js","webpack://access/./node_modules/core-js/internals/classof.js","webpack://access/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://access/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://access/./node_modules/core-js/internals/create-property-descriptor.js","webpack://access/./node_modules/core-js/internals/define-built-in-accessor.js","webpack://access/./node_modules/core-js/internals/define-built-in.js","webpack://access/./node_modules/core-js/internals/define-global-property.js","webpack://access/./node_modules/core-js/internals/descriptors.js","webpack://access/./node_modules/core-js/internals/document-all.js","webpack://access/./node_modules/core-js/internals/document-create-element.js","webpack://access/./node_modules/core-js/internals/does-not-exceed-safe-integer.js","webpack://access/./node_modules/core-js/internals/engine-user-agent.js","webpack://access/./node_modules/core-js/internals/engine-v8-version.js","webpack://access/./node_modules/core-js/internals/enum-bug-keys.js","webpack://access/./node_modules/core-js/internals/export.js","webpack://access/./node_modules/core-js/internals/fails.js","webpack://access/./node_modules/core-js/internals/function-bind-native.js","webpack://access/./node_modules/core-js/internals/function-call.js","webpack://access/./node_modules/core-js/internals/function-name.js","webpack://access/./node_modules/core-js/internals/function-uncurry-this.js","webpack://access/./node_modules/core-js/internals/get-built-in.js","webpack://access/./node_modules/core-js/internals/get-method.js","webpack://access/./node_modules/core-js/internals/global.js","webpack://access/./node_modules/core-js/internals/has-own-property.js","webpack://access/./node_modules/core-js/internals/hidden-keys.js","webpack://access/./node_modules/core-js/internals/ie8-dom-define.js","webpack://access/./node_modules/core-js/internals/indexed-object.js","webpack://access/./node_modules/core-js/internals/inspect-source.js","webpack://access/./node_modules/core-js/internals/internal-state.js","webpack://access/./node_modules/core-js/internals/is-array.js","webpack://access/./node_modules/core-js/internals/is-callable.js","webpack://access/./node_modules/core-js/internals/is-forced.js","webpack://access/./node_modules/core-js/internals/is-null-or-undefined.js","webpack://access/./node_modules/core-js/internals/is-object.js","webpack://access/./node_modules/core-js/internals/is-pure.js","webpack://access/./node_modules/core-js/internals/is-symbol.js","webpack://access/./node_modules/core-js/internals/length-of-array-like.js","webpack://access/./node_modules/core-js/internals/make-built-in.js","webpack://access/./node_modules/core-js/internals/math-trunc.js","webpack://access/./node_modules/core-js/internals/object-define-property.js","webpack://access/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://access/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://access/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://access/./node_modules/core-js/internals/object-is-prototype-of.js","webpack://access/./node_modules/core-js/internals/object-keys-internal.js","webpack://access/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://access/./node_modules/core-js/internals/ordinary-to-primitive.js","webpack://access/./node_modules/core-js/internals/own-keys.js","webpack://access/./node_modules/core-js/internals/require-object-coercible.js","webpack://access/./node_modules/core-js/internals/shared-key.js","webpack://access/./node_modules/core-js/internals/shared-store.js","webpack://access/./node_modules/core-js/internals/shared.js","webpack://access/./node_modules/core-js/internals/symbol-constructor-detection.js","webpack://access/./node_modules/core-js/internals/to-absolute-index.js","webpack://access/./node_modules/core-js/internals/to-indexed-object.js","webpack://access/./node_modules/core-js/internals/to-integer-or-infinity.js","webpack://access/./node_modules/core-js/internals/to-length.js","webpack://access/./node_modules/core-js/internals/to-object.js","webpack://access/./node_modules/core-js/internals/to-primitive.js","webpack://access/./node_modules/core-js/internals/to-property-key.js","webpack://access/./node_modules/core-js/internals/to-string-tag-support.js","webpack://access/./node_modules/core-js/internals/to-string.js","webpack://access/./node_modules/core-js/internals/try-to-string.js","webpack://access/./node_modules/core-js/internals/uid.js","webpack://access/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://access/./node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://access/./node_modules/core-js/internals/validate-arguments-length.js","webpack://access/./node_modules/core-js/internals/weak-map-basic-detection.js","webpack://access/./node_modules/core-js/internals/well-known-symbol.js","webpack://access/./node_modules/core-js/modules/es.array.push.js","webpack://access/./node_modules/core-js/modules/web.url-search-params.delete.js","webpack://access/./node_modules/core-js/modules/web.url-search-params.has.js","webpack://access/./node_modules/core-js/modules/web.url-search-params.size.js","webpack://access/./node_modules/detectincognitojs/dist/detectIncognito.js","webpack://access/./node_modules/just-detect-adblock/dist/bundle.umd.js","webpack://access/webpack/bootstrap","webpack://access/webpack/runtime/global","webpack://access/./src/meter/instance.js","webpack://access/./node_modules/tslib/tslib.es6.mjs","webpack://access/./node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.js","webpack://access/./src/meter/manager.js","webpack://access/./src/access.js"],"sourcesContent":["'use strict';\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw new $TypeError(tryToString(argument) + ' is not a function');\n};\n","'use strict';\nvar isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw new $TypeError($String(argument) + ' is not an object');\n};\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el !== el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value !== value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw new $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\nvar hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","'use strict';\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","'use strict';\nvar global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;\n});\n","'use strict';\nvar documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","'use strict';\nvar $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nmodule.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","'use strict';\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","'use strict';\n// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","'use strict';\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","'use strict';\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","'use strict';\nvar check = function (it) {\n return it && it.Math === Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || this || Function('return this')();\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","'use strict';\nmodule.exports = {};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a !== 7;\n});\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) === 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","'use strict';\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw new TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) === 'Array';\n};\n","'use strict';\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value === POLYFILL ? true\n : value === NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","'use strict';\n// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","'use strict';\nvar isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","'use strict';\nmodule.exports = false;\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","'use strict';\nvar toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","'use strict';\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","'use strict';\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","'use strict';\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","'use strict';\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw new $TypeError(\"Can't convert object to primitive value\");\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","'use strict';\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw new $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","'use strict';\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","'use strict';\nvar global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","'use strict';\nvar IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.33.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '漏 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\nvar global = require('../internals/global');\n\nvar $String = global.String;\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol('symbol detection');\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,\n // of course, fail.\n return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","'use strict';\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","'use strict';\nvar trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","'use strict';\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","'use strict';\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw new $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","'use strict';\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","'use strict';\nvar classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","'use strict';\nvar $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","'use strict';\n/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype !== 42;\n});\n","'use strict';\nvar $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw new $TypeError('Not enough arguments');\n return passed;\n};\n","'use strict';\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","'use strict';\nvar global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar append = uncurryThis(URLSearchParamsPrototype.append);\nvar $delete = uncurryThis(URLSearchParamsPrototype['delete']);\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\nvar push = uncurryThis([].push);\nvar params = new $URLSearchParams('a=1&a=2&b=3');\n\nparams['delete']('a', 1);\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nparams['delete']('b', undefined);\n\nif (params + '' !== 'a=2') {\n defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {\n var length = arguments.length;\n var $value = length < 2 ? undefined : arguments[1];\n if (length && $value === undefined) return $delete(this, name);\n var entries = [];\n forEach(this, function (v, k) { // also validates `this`\n push(entries, { key: k, value: v });\n });\n validateArgumentsLength(length, 1);\n var key = toString(name);\n var value = toString($value);\n var index = 0;\n var dindex = 0;\n var found = false;\n var entriesLength = entries.length;\n var entry;\n while (index < entriesLength) {\n entry = entries[index++];\n if (found || entry.key === key) {\n found = true;\n $delete(this, entry.key);\n } else dindex++;\n }\n while (dindex < entriesLength) {\n entry = entries[dindex++];\n if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);\n }\n }, { enumerable: true, unsafe: true });\n}\n","'use strict';\nvar defineBuiltIn = require('../internals/define-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar $URLSearchParams = URLSearchParams;\nvar URLSearchParamsPrototype = $URLSearchParams.prototype;\nvar getAll = uncurryThis(URLSearchParamsPrototype.getAll);\nvar $has = uncurryThis(URLSearchParamsPrototype.has);\nvar params = new $URLSearchParams('a=1');\n\n// `undefined` case is a Chromium 117 bug\n// https://bugs.chromium.org/p/v8/issues/detail?id=14222\nif (params.has('a', 2) || !params.has('a', undefined)) {\n defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {\n var length = arguments.length;\n var $value = length < 2 ? undefined : arguments[1];\n if (length && $value === undefined) return $has(this, name);\n var values = getAll(this, name); // also validates `this`\n validateArgumentsLength(length, 1);\n var value = toString($value);\n var index = 0;\n while (index < values.length) {\n if (values[index++] === value) return true;\n } return false;\n }, { enumerable: true, unsafe: true });\n}\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\n\nvar URLSearchParamsPrototype = URLSearchParams.prototype;\nvar forEach = uncurryThis(URLSearchParamsPrototype.forEach);\n\n// `URLSearchParams.prototype.size` getter\n// https://github.com/whatwg/url/pull/734\nif (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {\n defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {\n get: function size() {\n var count = 0;\n forEach(this, function () { count++; });\n return count;\n },\n configurable: true,\n enumerable: true\n });\n}\n","\"use strict\";\nexports.__esModule = true;\nexports.detectIncognito = void 0;\n/**\n *\n * detectIncognito v1.3.0 - (c) 2022 Joe Rutkowski (https://github.com/Joe12387/detectIncognito)\n *\n **/\nvar detectIncognito = function () {\n return new Promise(function (resolve, reject) {\n var browserName = \"Unknown\";\n function __callback(isPrivate) {\n resolve({\n isPrivate: isPrivate,\n browserName: browserName\n });\n }\n function identifyChromium() {\n var ua = navigator.userAgent;\n if (ua.match(/Chrome/)) {\n if (navigator.brave !== undefined) {\n return \"Brave\";\n }\n else if (ua.match(/Edg/)) {\n return \"Edge\";\n }\n else if (ua.match(/OPR/)) {\n return \"Opera\";\n }\n return \"Chrome\";\n }\n else {\n return \"Chromium\";\n }\n }\n function assertEvalToString(value) {\n return value === eval.toString().length;\n }\n function isSafari() {\n var v = navigator.vendor;\n return (v !== undefined && v.indexOf(\"Apple\") === 0 && assertEvalToString(37));\n }\n function isChrome() {\n var v = navigator.vendor;\n return (v !== undefined && v.indexOf(\"Google\") === 0 && assertEvalToString(33));\n }\n function isFirefox() {\n return (document.documentElement !== undefined &&\n document.documentElement.style.MozAppearance !== undefined &&\n assertEvalToString(37));\n }\n function isMSIE() {\n return (navigator.msSaveBlob !== undefined && assertEvalToString(39));\n }\n /**\n * Safari (Safari for iOS & macOS)\n **/\n function newSafariTest() {\n var tmp_name = String(Math.random());\n try {\n var db = window.indexedDB.open(tmp_name, 1);\n db.onupgradeneeded = function (i) {\n var _a, _b;\n var res = (_a = i.target) === null || _a === void 0 ? void 0 : _a.result;\n try {\n res.createObjectStore(\"test\", {\n autoIncrement: true\n }).put(new Blob);\n __callback(false);\n }\n catch (e) {\n var message = e;\n if (e instanceof Error) {\n message = (_b = e.message) !== null && _b !== void 0 ? _b : e;\n }\n if (typeof message !== 'string') {\n return __callback(false);\n }\n var matchesExpectedError = /BlobURLs are not yet supported/.test(message);\n return __callback(matchesExpectedError);\n }\n finally {\n res.close();\n window.indexedDB.deleteDatabase(tmp_name);\n }\n };\n }\n catch (e) {\n return __callback(false);\n }\n }\n function oldSafariTest() {\n var openDB = window.openDatabase;\n var storage = window.localStorage;\n try {\n openDB(null, null, null, null);\n }\n catch (e) {\n return __callback(true);\n }\n try {\n storage.setItem(\"test\", \"1\");\n storage.removeItem(\"test\");\n }\n catch (e) {\n return __callback(true);\n }\n return __callback(false);\n }\n function safariPrivateTest() {\n if (navigator.maxTouchPoints !== undefined) {\n newSafariTest();\n }\n else {\n oldSafariTest();\n }\n }\n /**\n * Chrome\n **/\n function getQuotaLimit() {\n var w = window;\n if (w.performance !== undefined &&\n w.performance.memory !== undefined &&\n w.performance.memory.jsHeapSizeLimit !== undefined) {\n return performance.memory.jsHeapSizeLimit;\n }\n return 1073741824;\n }\n // >= 76\n function storageQuotaChromePrivateTest() {\n navigator.webkitTemporaryStorage.queryUsageAndQuota(function (_, quota) {\n var quotaInMib = Math.round(quota / (1024 * 1024));\n var quotaLimitInMib = Math.round(getQuotaLimit() / (1024 * 1024)) * 2;\n __callback(quotaInMib < quotaLimitInMib);\n }, function (e) {\n reject(new Error(\"detectIncognito somehow failed to query storage quota: \" +\n e.message));\n });\n }\n // 50 to 75\n function oldChromePrivateTest() {\n var fs = window.webkitRequestFileSystem;\n var success = function () {\n __callback(false);\n };\n var error = function () {\n __callback(true);\n };\n fs(0, 1, success, error);\n }\n function chromePrivateTest() {\n if (self.Promise !== undefined && self.Promise.allSettled !== undefined) {\n storageQuotaChromePrivateTest();\n }\n else {\n oldChromePrivateTest();\n }\n }\n /**\n * Firefox\n **/\n function firefoxPrivateTest() {\n __callback(navigator.serviceWorker === undefined);\n }\n /**\n * MSIE\n **/\n function msiePrivateTest() {\n __callback(window.indexedDB === undefined);\n }\n function main() {\n if (isSafari()) {\n browserName = 'Safari';\n safariPrivateTest();\n }\n else if (isChrome()) {\n browserName = identifyChromium();\n chromePrivateTest();\n }\n else if (isFirefox()) {\n browserName = \"Firefox\";\n firefoxPrivateTest();\n }\n else if (isMSIE()) {\n browserName = \"Internet Explorer\";\n msiePrivateTest();\n }\n else {\n reject(new Error(\"detectIncognito cannot determine the browser\"));\n }\n }\n main();\n });\n};\nexports.detectIncognito = detectIncognito;\n","!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).justDetectAdblock=e()}(this,(function(){\"use strict\";function t(){return void 0!==navigator.brave&&void 0!==navigator.brave.isBrave}function e(){return\"string\"==typeof navigator.userAgent&&navigator.userAgent.match(/Opera|OPR\\//)}function n(){return new Promise((function(t,e){var n=new XMLHttpRequest;n.onreadystatechange=function(){4==n.readyState&&t(n)},n.open(\"GET\",\"https://raw.githubusercontent.com/wmcmurray/just-detect-adblock/master/baits/pagead2.googlesyndication.com\",!0),n.send()}))}function o(t){return 200===t.status&&!t.responseText.match(/^thistextshouldbethere(\\n|)$/)}function i(t){return 0===t.status&&!t.responseText.match(/^thistextshouldbethere(\\n|)$/)}function r(){if(null!==window.document.body.getAttribute(\"abp\"))return!0;var t=function(){var t=document.createElement(\"div\");return t.setAttribute(\"class\",\"pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links ad-text adSense adBlock adContent adBanner\"),t.setAttribute(\"style\",\"width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;\"),t}();window.document.body.appendChild(t);var e=function(t){if(null===t.offsetParent||0==t.offsetHeight||0==t.offsetLeft||0==t.offsetTop||0==t.offsetWidth||0==t.clientHeight||0==t.clientWidth)return!0;if(void 0!==window.getComputedStyle){var e=window.getComputedStyle(t,null);if(e&&(\"none\"==e.getPropertyValue(\"display\")||\"hidden\"==e.getPropertyValue(\"visibility\")))return!0}return!1}(t);return window.document.body.removeChild(t),e}var u;return{detectAnyAdblocker:function(){return new Promise((function(u,d){if(r())return u(!0);t()||e()?n().then((function(n){return t()?u(o(n)):e()?u(i(n)):void u(!1)})):u(!1)}))},detectDomAdblocker:(u=r,function(){var t=arguments;return new Promise((function(e,n){e(u.apply(this,t))}))}),detectBraveShields:function(){return new Promise((function(e,i){t()?n().then((function(t){e(o(t))})):e(!1)}))},detectOperaAdblocker:function(){return new Promise((function(t,o){e()?n().then((function(e){t(i(e))})):t(!1)}))},isDetected:function(t,e){return function(){return console.warn(\"just-detect-adblock : \"+(e||\"This method is deprecated.\")),t.apply(this,arguments)}}(r,\"The `isDetected()` method is now deprecated, please use `detectAnyAdblocker()` instead, which returns a Promise and can detect more stuff (like Brave Shields).\")}}));\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","\r\n/**\r\n * Meter instance for checking the state of a meter\r\n */\r\nexport class MeterInstance\r\n{\r\n\t/**\r\n\t * The number of views in the provided meter instance\r\n * @type {number}\r\n\t */\r\n\t#nViews = 0;\r\n\t\r\n\t/**\r\n\t * The unique ID of this meter. The ID is returned as part of the rules\r\n * payload from the server.\r\n\t * @type {string}\r\n\t */\r\n\t#sID;\r\n\t\r\n\t/**\r\n\t * If meter configuration is based on a certain number\r\n\t * of days to expire. If NULL default behavior will be assumed.\r\n\t * @type {number}\r\n\t */\r\n\t#nExpireDays;\r\n\r\n\t/**\r\n\t * Constructor\r\n\t *\r\n\t * @param {string} sID\r\n\t * Identifier of the meter\r\n\t *\r\n\t * @param {number} nViews\r\n\t * The number of views to initialize the meter at. This should be queried\r\n * from the remote end-point.\r\n\t */\r\n\tconstructor(sID, nViews = 0)\r\n\t{\t\t\r\n\t\tif (typeof sID !== 'string') {\r\n\t\t\tthrow new Error('A string value must be provided for the ID');\r\n\t\t}\r\n\t\t\r\n\t\tif (sID.length == 0) {\r\n\t\t\tthrow new Error('The ID value must not be empty');\r\n\t\t}\r\n\t\t\r\n\t\tthis.#sID = sID;\r\n\t\t\t\t\r\n\t\tif (nViews === 0) {\r\n\t\t\t\r\n\t\t\tthis.#nViews = this.#getFromCookie();\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tthis.views = nViews;\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * Set cookie lifetime based on days.\r\n\t * \r\n\t */\r\n\tsetExpireDays( nDays ) {\r\n\t\tthis.#nExpireDays = nDays;\r\n\t}\r\n\t\r\n\tincrement()\r\n\t{\r\n\t\tthis.views = this.#nViews+1;\r\n\t}\r\n\t\r\n\tset views(nViews)\r\n\t{\r\n\t\tif (typeof nViews !== 'number') {\r\n\t\t\tthrow new Error('Views must provided as a number');\r\n\t\t}\r\n\t\t\r\n\t\tnViews = parseInt(nViews);\r\n\t\tif (nViews < 0) {\r\n\t\t\tthrow new Error('Views must be greater than or equal to zero');\r\n\t\t}\r\n\t\t\r\n\t\tthis.#nViews = nViews;\r\n\t\t\r\n\t\t// Set a first party cookie to expire on the first day of next month\r\n\t\t\r\n\t\tif (this.#nViews != this.#getFromCookie()) {\r\n\t\t\tthis.#saveToCookie();\r\n\t\t}\r\n\r\n\t}\r\n\t\r\n\tget views()\r\n\t{\r\n\t\treturn this.#nViews;\r\n\t}\r\n\r\n\t/**\r\n\t * Get the ID of the meter\r\n *\r\n * @return {string}\r\n * The ID string that was assigned to this meter instance\r\n\t */\t\r\n\tget id()\r\n\t{\r\n\t\treturn this.#sID;\r\n\t}\r\n\t\r\n\tget expires()\r\n\t{\r\n\t\tlet oExpires;\r\n\t\t\r\n\t\t// Existing behavior\r\n\t\t\r\n\t\tif ( ! this.#nExpireDays ) {\r\n\r\n\t\t\toExpires = new Date();\r\n\t\t\toExpires.setDate(1);\r\n\t\t\toExpires.setMonth(oExpires.getMonth() + 1);\r\n\t\t\toExpires.setHours(0);\r\n\t\t\toExpires.setMinutes(0);\r\n\t\t\toExpires.setSeconds(0);\r\n\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\t// Use relative expire days passed from server\r\n\t\t\toExpires = this.#getExpireDateFromCookie();\r\n\t\t\tif ( ! oExpires ) {\r\n\t\t\t\toExpires = new Date();\r\n\t\t\t\toExpires.setDate(oExpires.getDate() + this.#nExpireDays);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn oExpires;\r\n\t}\r\n\t\r\n\t#getFromCookie()\r\n\t{\r\n\t\ttry {\t\r\n\t\t\tlet aCookies = decodeURIComponent(document.cookie).split(/\\s*?;\\s*/);\t\t\r\n\t\t\tfor ( const sCookie of aCookies ) {\r\n\t\t\t\tif ( sCookie.indexOf('tncms:meter:assets' + this.#sID) === 0 ) {\r\n\t\t\t\t\tlet oMatch = sCookie.match(/=(\\d+)/);\r\n\t\t\t\t\tif ( oMatch ) {\r\n\t\t\t\t\t\treturn parseInt(oMatch[1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch ( oExc ) {\r\n\t\t\t// Missing or malformed URI component - ignore\r\n\t\t}\r\n\t\t\r\n\t\treturn 0;\r\n\t}\r\n\t\r\n\t#getExpireDateFromCookie() {\r\n\t\ttry {\t\r\n\t\t\tlet aCookies = decodeURIComponent(document.cookie).split(/\\s*?;\\s*/);\t\t\r\n\t\t\tfor ( const sCookie of aCookies ) {\r\n\t\t\t\tif ( sCookie.indexOf('tncms:meter:days' + this.#sID) === 0 ) {\r\n\t\t\t\t\tlet oMatch = sCookie.match(/=(.+)/);\r\n\t\t\t\t\tif ( oMatch ) {\r\n\t\t\t\t\t\treturn new Date(oMatch[1]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch ( oExc ) {\r\n\t\t\t// Missing or malformed URI component - ignore\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\t\t\r\n\t}\r\n\t\r\n\t#saveToCookie()\r\n\t{\r\n\t\tdocument.cookie = 'tncms:meter:assets' + this.#sID + '=' + this.#nViews +\r\n\t\t\t'; expires=' + this.expires.toGMTString() + '; path=/; SameSite=Strict';\r\n\t\t\r\n\t\tif ( this.#nExpireDays ) {\t\t\t\r\n\t\t\tdocument.cookie = 'tncms:meter:days' + this.#sID + '=' + this.expires.toGMTString() +\r\n\t\t\t'; expires=' + this.expires.toGMTString() + '; path=/; SameSite=Strict';\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * JSON representation of the meter instance\r\n *\r\n * @return {Object}\r\n * The payload to be converted to a string with JSON.stringify()\r\n\t */\t\r\n\ttoJSON()\r\n\t{\r\n\t\treturn {\r\n\t\t\tid: this.#sID,\r\n\t\t\tviews: this.#nViews,\r\n\t\t\texpires: this.expires\r\n\t\t}\r\n\t}\r\n\t\r\n}\r\n","/***\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n** */\n/* global Reflect, Promise, SuppressedError, Symbol */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n function next() {\n while (env.stack.length) {\n var rec = env.stack.pop();\n try {\n var result = rec.dispose && rec.dispose.call(rec.value);\n if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n catch (e) {\n fail(e);\n }\n }\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n};\n","/**\n * FingerprintJS v3.4.2 - Copyright (c) FingerprintJS, Inc, 2023 (https://fingerprint.com)\n * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.\n *\n * This software contains code from open-source projects:\n * MurmurHash3 by Karan Lyons (https://github.com/karanlyons/murmurHash3.js)\n */\n\nimport { __awaiter, __generator, __assign, __spreadArray } from 'tslib';\n\nvar version = \"3.4.2\";\n\nfunction wait(durationMs, resolveWith) {\n return new Promise(function (resolve) { return setTimeout(resolve, durationMs, resolveWith); });\n}\nfunction requestIdleCallbackIfAvailable(fallbackTimeout, deadlineTimeout) {\n if (deadlineTimeout === void 0) { deadlineTimeout = Infinity; }\n var requestIdleCallback = window.requestIdleCallback;\n if (requestIdleCallback) {\n // The function `requestIdleCallback` loses the binding to `window` here.\n // `globalThis` isn't always equal `window` (see https://github.com/fingerprintjs/fingerprintjs/issues/683).\n // Therefore, an error can occur. `call(window,` prevents the error.\n return new Promise(function (resolve) { return requestIdleCallback.call(window, function () { return resolve(); }, { timeout: deadlineTimeout }); });\n }\n else {\n return wait(Math.min(fallbackTimeout, deadlineTimeout));\n }\n}\nfunction isPromise(value) {\n return !!value && typeof value.then === 'function';\n}\n/**\n * Calls a maybe asynchronous function without creating microtasks when the function is synchronous.\n * Catches errors in both cases.\n *\n * If just you run a code like this:\n * ```\n * console.time('Action duration')\n * await action()\n * console.timeEnd('Action duration')\n * ```\n * The synchronous function time can be measured incorrectly because another microtask may run before the `await`\n * returns the control back to the code.\n */\nfunction awaitIfAsync(action, callback) {\n try {\n var returnedValue = action();\n if (isPromise(returnedValue)) {\n returnedValue.then(function (result) { return callback(true, result); }, function (error) { return callback(false, error); });\n }\n else {\n callback(true, returnedValue);\n }\n }\n catch (error) {\n callback(false, error);\n }\n}\n/**\n * If you run many synchronous tasks without using this function, the JS main loop will be busy and asynchronous tasks\n * (e.g. completing a network request, rendering the page) won't be able to happen.\n * This function allows running many synchronous tasks such way that asynchronous tasks can run too in background.\n */\nfunction mapWithBreaks(items, callback, loopReleaseInterval) {\n if (loopReleaseInterval === void 0) { loopReleaseInterval = 16; }\n return __awaiter(this, void 0, void 0, function () {\n var results, lastLoopReleaseTime, i, now;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n results = Array(items.length);\n lastLoopReleaseTime = Date.now();\n i = 0;\n _a.label = 1;\n case 1:\n if (!(i < items.length)) return [3 /*break*/, 4];\n results[i] = callback(items[i], i);\n now = Date.now();\n if (!(now >= lastLoopReleaseTime + loopReleaseInterval)) return [3 /*break*/, 3];\n lastLoopReleaseTime = now;\n // Allows asynchronous actions and microtasks to happen\n return [4 /*yield*/, wait(0)];\n case 2:\n // Allows asynchronous actions and microtasks to happen\n _a.sent();\n _a.label = 3;\n case 3:\n ++i;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/, results];\n }\n });\n });\n}\n/**\n * Makes the given promise never emit an unhandled promise rejection console warning.\n * The promise will still pass errors to the next promises.\n *\n * Otherwise, promise emits a console warning unless it has a `catch` listener.\n */\nfunction suppressUnhandledRejectionWarning(promise) {\n promise.then(undefined, function () { return undefined; });\n}\n\n/*\n * Taken from https://github.com/karanlyons/murmurHash3.js/blob/a33d0723127e2e5415056c455f8aed2451ace208/murmurHash3.js\n */\n//\n// Given two 64bit ints (as an array of two 32bit ints) returns the two\n// added together as a 64bit int (as an array of two 32bit ints).\n//\nfunction x64Add(m, n) {\n m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff];\n n = [n[0] >>> 16, n[0] & 0xffff, n[1] >>> 16, n[1] & 0xffff];\n var o = [0, 0, 0, 0];\n o[3] += m[3] + n[3];\n o[2] += o[3] >>> 16;\n o[3] &= 0xffff;\n o[2] += m[2] + n[2];\n o[1] += o[2] >>> 16;\n o[2] &= 0xffff;\n o[1] += m[1] + n[1];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[0] += m[0] + n[0];\n o[0] &= 0xffff;\n return [(o[0] << 16) | o[1], (o[2] << 16) | o[3]];\n}\n//\n// Given two 64bit ints (as an array of two 32bit ints) returns the two\n// multiplied together as a 64bit int (as an array of two 32bit ints).\n//\nfunction x64Multiply(m, n) {\n m = [m[0] >>> 16, m[0] & 0xffff, m[1] >>> 16, m[1] & 0xffff];\n n = [n[0] >>> 16, n[0] & 0xffff, n[1] >>> 16, n[1] & 0xffff];\n var o = [0, 0, 0, 0];\n o[3] += m[3] * n[3];\n o[2] += o[3] >>> 16;\n o[3] &= 0xffff;\n o[2] += m[2] * n[3];\n o[1] += o[2] >>> 16;\n o[2] &= 0xffff;\n o[2] += m[3] * n[2];\n o[1] += o[2] >>> 16;\n o[2] &= 0xffff;\n o[1] += m[1] * n[3];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[1] += m[2] * n[2];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[1] += m[3] * n[1];\n o[0] += o[1] >>> 16;\n o[1] &= 0xffff;\n o[0] += m[0] * n[3] + m[1] * n[2] + m[2] * n[1] + m[3] * n[0];\n o[0] &= 0xffff;\n return [(o[0] << 16) | o[1], (o[2] << 16) | o[3]];\n}\n//\n// Given a 64bit int (as an array of two 32bit ints) and an int\n// representing a number of bit positions, returns the 64bit int (as an\n// array of two 32bit ints) rotated left by that number of positions.\n//\nfunction x64Rotl(m, n) {\n n %= 64;\n if (n === 32) {\n return [m[1], m[0]];\n }\n else if (n < 32) {\n return [(m[0] << n) | (m[1] >>> (32 - n)), (m[1] << n) | (m[0] >>> (32 - n))];\n }\n else {\n n -= 32;\n return [(m[1] << n) | (m[0] >>> (32 - n)), (m[0] << n) | (m[1] >>> (32 - n))];\n }\n}\n//\n// Given a 64bit int (as an array of two 32bit ints) and an int\n// representing a number of bit positions, returns the 64bit int (as an\n// array of two 32bit ints) shifted left by that number of positions.\n//\nfunction x64LeftShift(m, n) {\n n %= 64;\n if (n === 0) {\n return m;\n }\n else if (n < 32) {\n return [(m[0] << n) | (m[1] >>> (32 - n)), m[1] << n];\n }\n else {\n return [m[1] << (n - 32), 0];\n }\n}\n//\n// Given two 64bit ints (as an array of two 32bit ints) returns the two\n// xored together as a 64bit int (as an array of two 32bit ints).\n//\nfunction x64Xor(m, n) {\n return [m[0] ^ n[0], m[1] ^ n[1]];\n}\n//\n// Given a block, returns murmurHash3's final x64 mix of that block.\n// (`[0, h[0] >>> 1]` is a 33 bit unsigned right shift. This is the\n// only place where we need to right shift 64bit ints.)\n//\nfunction x64Fmix(h) {\n h = x64Xor(h, [0, h[0] >>> 1]);\n h = x64Multiply(h, [0xff51afd7, 0xed558ccd]);\n h = x64Xor(h, [0, h[0] >>> 1]);\n h = x64Multiply(h, [0xc4ceb9fe, 0x1a85ec53]);\n h = x64Xor(h, [0, h[0] >>> 1]);\n return h;\n}\n//\n// Given a string and an optional seed as an int, returns a 128 bit\n// hash using the x64 flavor of MurmurHash3, as an unsigned hex.\n//\nfunction x64hash128(key, seed) {\n key = key || '';\n seed = seed || 0;\n var remainder = key.length % 16;\n var bytes = key.length - remainder;\n var h1 = [0, seed];\n var h2 = [0, seed];\n var k1 = [0, 0];\n var k2 = [0, 0];\n var c1 = [0x87c37b91, 0x114253d5];\n var c2 = [0x4cf5ad43, 0x2745937f];\n var i;\n for (i = 0; i < bytes; i = i + 16) {\n k1 = [\n (key.charCodeAt(i + 4) & 0xff) |\n ((key.charCodeAt(i + 5) & 0xff) << 8) |\n ((key.charCodeAt(i + 6) & 0xff) << 16) |\n ((key.charCodeAt(i + 7) & 0xff) << 24),\n (key.charCodeAt(i) & 0xff) |\n ((key.charCodeAt(i + 1) & 0xff) << 8) |\n ((key.charCodeAt(i + 2) & 0xff) << 16) |\n ((key.charCodeAt(i + 3) & 0xff) << 24),\n ];\n k2 = [\n (key.charCodeAt(i + 12) & 0xff) |\n ((key.charCodeAt(i + 13) & 0xff) << 8) |\n ((key.charCodeAt(i + 14) & 0xff) << 16) |\n ((key.charCodeAt(i + 15) & 0xff) << 24),\n (key.charCodeAt(i + 8) & 0xff) |\n ((key.charCodeAt(i + 9) & 0xff) << 8) |\n ((key.charCodeAt(i + 10) & 0xff) << 16) |\n ((key.charCodeAt(i + 11) & 0xff) << 24),\n ];\n k1 = x64Multiply(k1, c1);\n k1 = x64Rotl(k1, 31);\n k1 = x64Multiply(k1, c2);\n h1 = x64Xor(h1, k1);\n h1 = x64Rotl(h1, 27);\n h1 = x64Add(h1, h2);\n h1 = x64Add(x64Multiply(h1, [0, 5]), [0, 0x52dce729]);\n k2 = x64Multiply(k2, c2);\n k2 = x64Rotl(k2, 33);\n k2 = x64Multiply(k2, c1);\n h2 = x64Xor(h2, k2);\n h2 = x64Rotl(h2, 31);\n h2 = x64Add(h2, h1);\n h2 = x64Add(x64Multiply(h2, [0, 5]), [0, 0x38495ab5]);\n }\n k1 = [0, 0];\n k2 = [0, 0];\n switch (remainder) {\n case 15:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 14)], 48));\n // fallthrough\n case 14:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 13)], 40));\n // fallthrough\n case 13:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 12)], 32));\n // fallthrough\n case 12:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 11)], 24));\n // fallthrough\n case 11:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 10)], 16));\n // fallthrough\n case 10:\n k2 = x64Xor(k2, x64LeftShift([0, key.charCodeAt(i + 9)], 8));\n // fallthrough\n case 9:\n k2 = x64Xor(k2, [0, key.charCodeAt(i + 8)]);\n k2 = x64Multiply(k2, c2);\n k2 = x64Rotl(k2, 33);\n k2 = x64Multiply(k2, c1);\n h2 = x64Xor(h2, k2);\n // fallthrough\n case 8:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 7)], 56));\n // fallthrough\n case 7:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 6)], 48));\n // fallthrough\n case 6:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 5)], 40));\n // fallthrough\n case 5:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 4)], 32));\n // fallthrough\n case 4:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 3)], 24));\n // fallthrough\n case 3:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 2)], 16));\n // fallthrough\n case 2:\n k1 = x64Xor(k1, x64LeftShift([0, key.charCodeAt(i + 1)], 8));\n // fallthrough\n case 1:\n k1 = x64Xor(k1, [0, key.charCodeAt(i)]);\n k1 = x64Multiply(k1, c1);\n k1 = x64Rotl(k1, 31);\n k1 = x64Multiply(k1, c2);\n h1 = x64Xor(h1, k1);\n // fallthrough\n }\n h1 = x64Xor(h1, [0, key.length]);\n h2 = x64Xor(h2, [0, key.length]);\n h1 = x64Add(h1, h2);\n h2 = x64Add(h2, h1);\n h1 = x64Fmix(h1);\n h2 = x64Fmix(h2);\n h1 = x64Add(h1, h2);\n h2 = x64Add(h2, h1);\n return (('00000000' + (h1[0] >>> 0).toString(16)).slice(-8) +\n ('00000000' + (h1[1] >>> 0).toString(16)).slice(-8) +\n ('00000000' + (h2[0] >>> 0).toString(16)).slice(-8) +\n ('00000000' + (h2[1] >>> 0).toString(16)).slice(-8));\n}\n\n/**\n * Converts an error object to a plain object that can be used with `JSON.stringify`.\n * If you just run `JSON.stringify(error)`, you'll get `'{}'`.\n */\nfunction errorToObject(error) {\n var _a;\n return __assign({ name: error.name, message: error.message, stack: (_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\\n') }, error);\n}\n\n/*\n * This file contains functions to work with pure data only (no browser features, DOM, side effects, etc).\n */\n/**\n * Does the same as Array.prototype.includes but has better typing\n */\nfunction includes(haystack, needle) {\n for (var i = 0, l = haystack.length; i < l; ++i) {\n if (haystack[i] === needle) {\n return true;\n }\n }\n return false;\n}\n/**\n * Like `!includes()` but with proper typing\n */\nfunction excludes(haystack, needle) {\n return !includes(haystack, needle);\n}\n/**\n * Be careful, NaN can return\n */\nfunction toInt(value) {\n return parseInt(value);\n}\n/**\n * Be careful, NaN can return\n */\nfunction toFloat(value) {\n return parseFloat(value);\n}\nfunction replaceNaN(value, replacement) {\n return typeof value === 'number' && isNaN(value) ? replacement : value;\n}\nfunction countTruthy(values) {\n return values.reduce(function (sum, value) { return sum + (value ? 1 : 0); }, 0);\n}\nfunction round(value, base) {\n if (base === void 0) { base = 1; }\n if (Math.abs(base) >= 1) {\n return Math.round(value / base) * base;\n }\n else {\n // Sometimes when a number is multiplied by a small number, precision is lost,\n // for example 1234 * 0.0001 === 0.12340000000000001, and it's more precise divide: 1234 / (1 / 0.0001) === 0.1234.\n var counterBase = 1 / base;\n return Math.round(value * counterBase) / counterBase;\n }\n}\n/**\n * Parses a CSS selector into tag name with HTML attributes.\n * Only single element selector are supported (without operators like space, +, >, etc).\n *\n * Multiple values can be returned for each attribute. You decide how to handle them.\n */\nfunction parseSimpleCssSelector(selector) {\n var _a, _b;\n var errorMessage = \"Unexpected syntax '\".concat(selector, \"'\");\n var tagMatch = /^\\s*([a-z-]*)(.*)$/i.exec(selector);\n var tag = tagMatch[1] || undefined;\n var attributes = {};\n var partsRegex = /([.:#][\\w-]+|\\[.+?\\])/gi;\n var addAttribute = function (name, value) {\n attributes[name] = attributes[name] || [];\n attributes[name].push(value);\n };\n for (;;) {\n var match = partsRegex.exec(tagMatch[2]);\n if (!match) {\n break;\n }\n var part = match[0];\n switch (part[0]) {\n case '.':\n addAttribute('class', part.slice(1));\n break;\n case '#':\n addAttribute('id', part.slice(1));\n break;\n case '[': {\n var attributeMatch = /^\\[([\\w-]+)([~|^$*]?=(\"(.*?)\"|([\\w-]+)))?(\\s+[is])?\\]$/.exec(part);\n if (attributeMatch) {\n addAttribute(attributeMatch[1], (_b = (_a = attributeMatch[4]) !== null && _a !== void 0 ? _a : attributeMatch[5]) !== null && _b !== void 0 ? _b : '');\n }\n else {\n throw new Error(errorMessage);\n }\n break;\n }\n default:\n throw new Error(errorMessage);\n }\n }\n return [tag, attributes];\n}\n\nfunction ensureErrorWithMessage(error) {\n return error && typeof error === 'object' && 'message' in error ? error : { message: error };\n}\nfunction isFinalResultLoaded(loadResult) {\n return typeof loadResult !== 'function';\n}\n/**\n * Loads the given entropy source. Returns a function that gets an entropy component from the source.\n *\n * The result is returned synchronously to prevent `loadSources` from\n * waiting for one source to load before getting the components from the other sources.\n */\nfunction loadSource(source, sourceOptions) {\n var sourceLoadPromise = new Promise(function (resolveLoad) {\n var loadStartTime = Date.now();\n // `awaitIfAsync` is used instead of just `await` in order to measure the duration of synchronous sources\n // correctly (other microtasks won't affect the duration).\n awaitIfAsync(source.bind(null, sourceOptions), function () {\n var loadArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n loadArgs[_i] = arguments[_i];\n }\n var loadDuration = Date.now() - loadStartTime;\n // Source loading failed\n if (!loadArgs[0]) {\n return resolveLoad(function () { return ({ error: ensureErrorWithMessage(loadArgs[1]), duration: loadDuration }); });\n }\n var loadResult = loadArgs[1];\n // Source loaded with the final result\n if (isFinalResultLoaded(loadResult)) {\n return resolveLoad(function () { return ({ value: loadResult, duration: loadDuration }); });\n }\n // Source loaded with \"get\" stage\n resolveLoad(function () {\n return new Promise(function (resolveGet) {\n var getStartTime = Date.now();\n awaitIfAsync(loadResult, function () {\n var getArgs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n getArgs[_i] = arguments[_i];\n }\n var duration = loadDuration + Date.now() - getStartTime;\n // Source getting failed\n if (!getArgs[0]) {\n return resolveGet({ error: ensureErrorWithMessage(getArgs[1]), duration: duration });\n }\n // Source getting succeeded\n resolveGet({ value: getArgs[1], duration: duration });\n });\n });\n });\n });\n });\n suppressUnhandledRejectionWarning(sourceLoadPromise);\n return function getComponent() {\n return sourceLoadPromise.then(function (finalizeSource) { return finalizeSource(); });\n };\n}\n/**\n * Loads the given entropy sources. Returns a function that collects the entropy components.\n *\n * The result is returned synchronously in order to allow start getting the components\n * before the sources are loaded completely.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction loadSources(sources, sourceOptions, excludeSources) {\n var includedSources = Object.keys(sources).filter(function (sourceKey) { return excludes(excludeSources, sourceKey); });\n // Using `mapWithBreaks` allows asynchronous sources to complete between synchronous sources\n // and measure the duration correctly\n var sourceGettersPromise = mapWithBreaks(includedSources, function (sourceKey) {\n return loadSource(sources[sourceKey], sourceOptions);\n });\n suppressUnhandledRejectionWarning(sourceGettersPromise);\n return function getComponents() {\n return __awaiter(this, void 0, void 0, function () {\n var sourceGetters, componentPromises, componentArray, components, index;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, sourceGettersPromise];\n case 1:\n sourceGetters = _a.sent();\n return [4 /*yield*/, mapWithBreaks(sourceGetters, function (sourceGetter) {\n var componentPromise = sourceGetter();\n suppressUnhandledRejectionWarning(componentPromise);\n return componentPromise;\n })];\n case 2:\n componentPromises = _a.sent();\n return [4 /*yield*/, Promise.all(componentPromises)\n // Keeping the component keys order the same as the source keys order\n ];\n case 3:\n componentArray = _a.sent();\n components = {};\n for (index = 0; index < includedSources.length; ++index) {\n components[includedSources[index]] = componentArray[index];\n }\n return [2 /*return*/, components];\n }\n });\n });\n };\n}\n/**\n * Modifies an entropy source by transforming its returned value with the given function.\n * Keeps the source properties: sync/async, 1/2 stages.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction transformSource(source, transformValue) {\n var transformLoadResult = function (loadResult) {\n if (isFinalResultLoaded(loadResult)) {\n return transformValue(loadResult);\n }\n return function () {\n var getResult = loadResult();\n if (isPromise(getResult)) {\n return getResult.then(transformValue);\n }\n return transformValue(getResult);\n };\n };\n return function (options) {\n var loadResult = source(options);\n if (isPromise(loadResult)) {\n return loadResult.then(transformLoadResult);\n }\n return transformLoadResult(loadResult);\n };\n}\n\n/*\n * Functions to help with features that vary through browsers\n */\n/**\n * Checks whether the browser is based on Trident (the Internet Explorer engine) without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction isTrident() {\n var w = window;\n var n = navigator;\n // The properties are checked to be in IE 10, IE 11 and not to be in other browsers in October 2020\n return (countTruthy([\n 'MSCSSMatrix' in w,\n 'msSetImmediate' in w,\n 'msIndexedDB' in w,\n 'msMaxTouchPoints' in n,\n 'msPointerEnabled' in n,\n ]) >= 4);\n}\n/**\n * Checks whether the browser is based on EdgeHTML (the pre-Chromium Edge engine) without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction isEdgeHTML() {\n // Based on research in October 2020\n var w = window;\n var n = navigator;\n return (countTruthy(['msWriteProfilerMark' in w, 'MSStream' in w, 'msLaunchUri' in n, 'msSaveBlob' in n]) >= 3 &&\n !isTrident());\n}\n/**\n * Checks whether the browser is based on Chromium without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction isChromium() {\n // Based on research in October 2020. Tested to detect Chromium 42-86.\n var w = window;\n var n = navigator;\n return (countTruthy([\n 'webkitPersistentStorage' in n,\n 'webkitTemporaryStorage' in n,\n n.vendor.indexOf('Google') === 0,\n 'webkitResolveLocalFileSystemURL' in w,\n 'BatteryManager' in w,\n 'webkitMediaStream' in w,\n 'webkitSpeechGrammar' in w,\n ]) >= 5);\n}\n/**\n * Checks whether the browser is based on mobile or desktop Safari without using user-agent.\n * All iOS browsers use WebKit (the Safari engine).\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction isWebKit() {\n // Based on research in September 2020\n var w = window;\n var n = navigator;\n return (countTruthy([\n 'ApplePayError' in w,\n 'CSSPrimitiveValue' in w,\n 'Counter' in w,\n n.vendor.indexOf('Apple') === 0,\n 'getStorageUpdates' in n,\n 'WebKitMediaKeys' in w,\n ]) >= 4);\n}\n/**\n * Checks whether the WebKit browser is a desktop Safari.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction isDesktopSafari() {\n var w = window;\n return (countTruthy([\n 'safari' in w,\n !('DeviceMotionEvent' in w),\n !('ongestureend' in w),\n !('standalone' in navigator),\n ]) >= 3);\n}\n/**\n * Checks whether the browser is based on Gecko (Firefox engine) without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction isGecko() {\n var _a, _b;\n var w = window;\n // Based on research in September 2020\n return (countTruthy([\n 'buildID' in navigator,\n 'MozAppearance' in ((_b = (_a = document.documentElement) === null || _a === void 0 ? void 0 : _a.style) !== null && _b !== void 0 ? _b : {}),\n 'onmozfullscreenchange' in w,\n 'mozInnerScreenX' in w,\n 'CSSMozDocumentRule' in w,\n 'CanvasCaptureMediaStream' in w,\n ]) >= 4);\n}\n/**\n * Checks whether the browser is based on Chromium version 鈮�86 without using user-agent.\n * It doesn't check that the browser is based on Chromium, there is a separate function for this.\n */\nfunction isChromium86OrNewer() {\n // Checked in Chrome 85 vs Chrome 86 both on desktop and Android\n var w = window;\n return (countTruthy([\n !('MediaSettingsRange' in w),\n 'RTCEncodedAudioFrame' in w,\n '' + w.Intl === '[object Intl]',\n '' + w.Reflect === '[object Reflect]',\n ]) >= 3);\n}\n/**\n * Checks whether the browser is based on WebKit version 鈮�606 (Safari 鈮�12) without using user-agent.\n * It doesn't check that the browser is based on WebKit, there is a separate function for this.\n *\n * @link https://en.wikipedia.org/wiki/Safari_version_history#Release_history Safari-WebKit versions map\n */\nfunction isWebKit606OrNewer() {\n // Checked in Safari 9鈥�14\n var w = window;\n return (countTruthy([\n 'DOMRectList' in w,\n 'RTCPeerConnectionIceEvent' in w,\n 'SVGGeometryElement' in w,\n 'ontransitioncancel' in w,\n ]) >= 3);\n}\n/**\n * Checks whether the device is an iPad.\n * It doesn't check that the engine is WebKit and that the WebKit isn't desktop.\n */\nfunction isIPad() {\n // Checked on:\n // Safari on iPadOS (both mobile and desktop modes): 8, 11, 12, 13, 14\n // Chrome on iPadOS (both mobile and desktop modes): 11, 12, 13, 14\n // Safari on iOS (both mobile and desktop modes): 9, 10, 11, 12, 13, 14\n // Chrome on iOS (both mobile and desktop modes): 9, 10, 11, 12, 13, 14\n // Before iOS 13. Safari tampers the value in \"request desktop site\" mode since iOS 13.\n if (navigator.platform === 'iPad') {\n return true;\n }\n var s = screen;\n var screenRatio = s.width / s.height;\n return (countTruthy([\n 'MediaSource' in window,\n !!Element.prototype.webkitRequestFullscreen,\n // iPhone 4S that runs iOS 9 matches this. But it won't match the criteria above, so it won't be detected as iPad.\n screenRatio > 0.65 && screenRatio < 1.53,\n ]) >= 2);\n}\n/**\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction getFullscreenElement() {\n var d = document;\n return d.fullscreenElement || d.msFullscreenElement || d.mozFullScreenElement || d.webkitFullscreenElement || null;\n}\nfunction exitFullscreen() {\n var d = document;\n // `call` is required because the function throws an error without a proper \"this\" context\n return (d.exitFullscreen || d.msExitFullscreen || d.mozCancelFullScreen || d.webkitExitFullscreen).call(d);\n}\n/**\n * Checks whether the device runs on Android without using user-agent.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction isAndroid() {\n var isItChromium = isChromium();\n var isItGecko = isGecko();\n // Only 2 browser engines are presented on Android.\n // Actually, there is also Android 4.1 browser, but it's not worth detecting it at the moment.\n if (!isItChromium && !isItGecko) {\n return false;\n }\n var w = window;\n // Chrome removes all words \"Android\" from `navigator` when desktop version is requested\n // Firefox keeps \"Android\" in `navigator.appVersion` when desktop version is requested\n return (countTruthy([\n 'onorientationchange' in w,\n 'orientation' in w,\n isItChromium && !('SharedWorker' in w),\n isItGecko && /android/i.test(navigator.appVersion),\n ]) >= 2);\n}\n\n/**\n * A deep description: https://fingerprint.com/blog/audio-fingerprinting/\n * Inspired by and based on https://github.com/cozylife/audio-fingerprint\n */\nfunction getAudioFingerprint() {\n var w = window;\n var AudioContext = w.OfflineAudioContext || w.webkitOfflineAudioContext;\n if (!AudioContext) {\n return -2 /* SpecialFingerprint.NotSupported */;\n }\n // In some browsers, audio context always stays suspended unless the context is started in response to a user action\n // (e.g. a click or a tap). It prevents audio fingerprint from being taken at an arbitrary moment of time.\n // Such browsers are old and unpopular, so the audio fingerprinting is just skipped in them.\n // See a similar case explanation at https://stackoverflow.com/questions/46363048/onaudioprocess-not-called-on-ios11#46534088\n if (doesCurrentBrowserSuspendAudioContext()) {\n return -1 /* SpecialFingerprint.KnownToSuspend */;\n }\n var hashFromIndex = 4500;\n var hashToIndex = 5000;\n var context = new AudioContext(1, hashToIndex, 44100);\n var oscillator = context.createOscillator();\n oscillator.type = 'triangle';\n oscillator.frequency.value = 10000;\n var compressor = context.createDynamicsCompressor();\n compressor.threshold.value = -50;\n compressor.knee.value = 40;\n compressor.ratio.value = 12;\n compressor.attack.value = 0;\n compressor.release.value = 0.25;\n oscillator.connect(compressor);\n compressor.connect(context.destination);\n oscillator.start(0);\n var _a = startRenderingAudio(context), renderPromise = _a[0], finishRendering = _a[1];\n var fingerprintPromise = renderPromise.then(function (buffer) { return getHash(buffer.getChannelData(0).subarray(hashFromIndex)); }, function (error) {\n if (error.name === \"timeout\" /* InnerErrorName.Timeout */ || error.name === \"suspended\" /* InnerErrorName.Suspended */) {\n return -3 /* SpecialFingerprint.Timeout */;\n }\n throw error;\n });\n // Suppresses the console error message in case when the fingerprint fails before requested\n suppressUnhandledRejectionWarning(fingerprintPromise);\n return function () {\n finishRendering();\n return fingerprintPromise;\n };\n}\n/**\n * Checks if the current browser is known to always suspend audio context\n */\nfunction doesCurrentBrowserSuspendAudioContext() {\n return isWebKit() && !isDesktopSafari() && !isWebKit606OrNewer();\n}\n/**\n * Starts rendering the audio context.\n * When the returned function is called, the render process starts finishing.\n */\nfunction startRenderingAudio(context) {\n var renderTryMaxCount = 3;\n var renderRetryDelay = 500;\n var runningMaxAwaitTime = 500;\n var runningSufficientTime = 5000;\n var finalize = function () { return undefined; };\n var resultPromise = new Promise(function (resolve, reject) {\n var isFinalized = false;\n var renderTryCount = 0;\n var startedRunningAt = 0;\n context.oncomplete = function (event) { return resolve(event.renderedBuffer); };\n var startRunningTimeout = function () {\n setTimeout(function () { return reject(makeInnerError(\"timeout\" /* InnerErrorName.Timeout */)); }, Math.min(runningMaxAwaitTime, startedRunningAt + runningSufficientTime - Date.now()));\n };\n var tryRender = function () {\n try {\n var renderingPromise = context.startRendering();\n // `context.startRendering` has two APIs: Promise and callback, we check that it's really a promise just in case\n if (isPromise(renderingPromise)) {\n // Suppresses all unhadled rejections in case of scheduled redundant retries after successful rendering\n suppressUnhandledRejectionWarning(renderingPromise);\n }\n switch (context.state) {\n case 'running':\n startedRunningAt = Date.now();\n if (isFinalized) {\n startRunningTimeout();\n }\n break;\n // Sometimes the audio context doesn't start after calling `startRendering` (in addition to the cases where\n // audio context doesn't start at all). A known case is starting an audio context when the browser tab is in\n // background on iPhone. Retries usually help in this case.\n case 'suspended':\n // The audio context can reject starting until the tab is in foreground. Long fingerprint duration\n // in background isn't a problem, therefore the retry attempts don't count in background. It can lead to\n // a situation when a fingerprint takes very long time and finishes successfully. FYI, the audio context\n // can be suspended when `document.hidden === false` and start running after a retry.\n if (!document.hidden) {\n renderTryCount++;\n }\n if (isFinalized && renderTryCount >= renderTryMaxCount) {\n reject(makeInnerError(\"suspended\" /* InnerErrorName.Suspended */));\n }\n else {\n setTimeout(tryRender, renderRetryDelay);\n }\n break;\n }\n }\n catch (error) {\n reject(error);\n }\n };\n tryRender();\n finalize = function () {\n if (!isFinalized) {\n isFinalized = true;\n if (startedRunningAt > 0) {\n startRunningTimeout();\n }\n }\n };\n });\n return [resultPromise, finalize];\n}\nfunction getHash(signal) {\n var hash = 0;\n for (var i = 0; i < signal.length; ++i) {\n hash += Math.abs(signal[i]);\n }\n return hash;\n}\nfunction makeInnerError(name) {\n var error = new Error(name);\n error.name = name;\n return error;\n}\n\n/**\n * Creates and keeps an invisible iframe while the given function runs.\n * The given function is called when the iframe is loaded and has a body.\n * The iframe allows to measure DOM sizes inside itself.\n *\n * Notice: passing an initial HTML code doesn't work in IE.\n *\n * Warning for package users:\n * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk.\n */\nfunction withIframe(action, initialHtml, domPollInterval) {\n var _a, _b, _c;\n if (domPollInterval === void 0) { domPollInterval = 50; }\n return __awaiter(this, void 0, void 0, function () {\n var d, iframe;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n d = document;\n _d.label = 1;\n case 1:\n if (!!d.body) return [3 /*break*/, 3];\n return [4 /*yield*/, wait(domPollInterval)];\n case 2:\n _d.sent();\n return [3 /*break*/, 1];\n case 3:\n iframe = d.createElement('iframe');\n _d.label = 4;\n case 4:\n _d.trys.push([4, , 10, 11]);\n return [4 /*yield*/, new Promise(function (_resolve, _reject) {\n var isComplete = false;\n var resolve = function () {\n isComplete = true;\n _resolve();\n };\n var reject = function (error) {\n isComplete = true;\n _reject(error);\n };\n iframe.onload = resolve;\n iframe.onerror = reject;\n var style = iframe.style;\n style.setProperty('display', 'block', 'important'); // Required for browsers to calculate the layout\n style.position = 'absolute';\n style.top = '0';\n style.left = '0';\n style.visibility = 'hidden';\n if (initialHtml && 'srcdoc' in iframe) {\n iframe.srcdoc = initialHtml;\n }\n else {\n iframe.src = 'about:blank';\n }\n d.body.appendChild(iframe);\n // WebKit in WeChat doesn't fire the iframe's `onload` for some reason.\n // This code checks for the loading state manually.\n // See https://github.com/fingerprintjs/fingerprintjs/issues/645\n var checkReadyState = function () {\n var _a, _b;\n // The ready state may never become 'complete' in Firefox despite the 'load' event being fired.\n // So an infinite setTimeout loop can happen without this check.\n // See https://github.com/fingerprintjs/fingerprintjs/pull/716#issuecomment-986898796\n if (isComplete) {\n return;\n }\n // Make sure iframe.contentWindow and iframe.contentWindow.document are both loaded\n // The contentWindow.document can miss in JSDOM (https://github.com/jsdom/jsdom).\n if (((_b = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document) === null || _b === void 0 ? void 0 : _b.readyState) === 'complete') {\n resolve();\n }\n else {\n setTimeout(checkReadyState, 10);\n }\n };\n checkReadyState();\n })];\n case 5:\n _d.sent();\n _d.label = 6;\n case 6:\n if (!!((_b = (_a = iframe.contentWindow) === null || _a === void 0 ? void 0 : _a.document) === null || _b === void 0 ? void 0 : _b.body)) return [3 /*break*/, 8];\n return [4 /*yield*/, wait(domPollInterval)];\n case 7:\n _d.sent();\n return [3 /*break*/, 6];\n case 8: return [4 /*yield*/, action(iframe, iframe.contentWindow)];\n case 9: return [2 /*return*/, _d.sent()];\n case 10:\n (_c = iframe.parentNode) === null || _c === void 0 ? void 0 : _c.removeChild(iframe);\n return [7 /*endfinally*/];\n case 11: return [2 /*return*/];\n }\n });\n });\n}\n/**\n * Creates a DOM element that matches the given selector.\n * Only single element selector are supported (without operators like space, +, >, etc).\n */\nfunction selectorToElement(selector) {\n var _a = parseSimpleCssSelector(selector), tag = _a[0], attributes = _a[1];\n var element = document.createElement(tag !== null && tag !== void 0 ? tag : 'div');\n for (var _i = 0, _b = Object.keys(attributes); _i < _b.length; _i++) {\n var name_1 = _b[_i];\n var value = attributes[name_1].join(' ');\n // Changing the `style` attribute can cause a CSP error, therefore we change the `style.cssText` property.\n // https://github.com/fingerprintjs/fingerprintjs/issues/733\n if (name_1 === 'style') {\n addStyleString(element.style, value);\n }\n else {\n element.setAttribute(name_1, value);\n }\n }\n return element;\n}\n/**\n * Adds CSS styles from a string in such a way that doesn't trigger a CSP warning (unsafe-inline or unsafe-eval)\n */\nfunction addStyleString(style, source) {\n // We don't use `style.cssText` because browsers must block it when no `unsafe-eval` CSP is presented: https://csplite.com/csp145/#w3c_note\n // Even though the browsers ignore this standard, we don't use `cssText` just in case.\n for (var _i = 0, _a = source.split(';'); _i < _a.length; _i++) {\n var property = _a[_i];\n var match = /^\\s*([\\w-]+)\\s*:\\s*(.+?)(\\s*!([\\w-]+))?\\s*$/.exec(property);\n if (match) {\n var name_2 = match[1], value = match[2], priority = match[4];\n style.setProperty(name_2, value, priority || ''); // The last argument can't be undefined in IE11\n }\n }\n}\n\n// We use m or w because these two characters take up the maximum width.\n// And we use a LLi so that the same matching fonts can get separated.\nvar testString = 'mmMwWLliI0O&1';\n// We test using 48px font size, we may use any size. I guess larger the better.\nvar textSize = '48px';\n// A font will be compared against all the three default fonts.\n// And if for any default fonts it doesn't match, then that font is available.\nvar baseFonts = ['monospace', 'sans-serif', 'serif'];\nvar fontList = [\n // This is android-specific font from \"Roboto\" family\n 'sans-serif-thin',\n 'ARNO PRO',\n 'Agency FB',\n 'Arabic Typesetting',\n 'Arial Unicode MS',\n 'AvantGarde Bk BT',\n 'BankGothic Md BT',\n 'Batang',\n 'Bitstream Vera Sans Mono',\n 'Calibri',\n 'Century',\n 'Century Gothic',\n 'Clarendon',\n 'EUROSTILE',\n 'Franklin Gothic',\n 'Futura Bk BT',\n 'Futura Md BT',\n 'GOTHAM',\n 'Gill Sans',\n 'HELV',\n 'Haettenschweiler',\n 'Helvetica Neue',\n 'Humanst521 BT',\n 'Leelawadee',\n 'Letter Gothic',\n 'Levenim MT',\n 'Lucida Bright',\n 'Lucida Sans',\n 'Menlo',\n 'MS Mincho',\n 'MS Outlook',\n 'MS Reference Specialty',\n 'MS UI Gothic',\n 'MT Extra',\n 'MYRIAD PRO',\n 'Marlett',\n 'Meiryo UI',\n 'Microsoft Uighur',\n 'Minion Pro',\n 'Monotype Corsiva',\n 'PMingLiU',\n 'Pristina',\n 'SCRIPTINA',\n 'Segoe UI Light',\n 'Serifa',\n 'SimHei',\n 'Small Fonts',\n 'Staccato222 BT',\n 'TRAJAN PRO',\n 'Univers CE 55 Medium',\n 'Vrinda',\n 'ZWAdobeF',\n];\n// kudos to http://www.lalit.org/lab/javascript-css-font-detect/\nfunction getFonts() {\n // Running the script in an iframe makes it not affect the page look and not be affected by the page CSS. See:\n // https://github.com/fingerprintjs/fingerprintjs/issues/592\n // https://github.com/fingerprintjs/fingerprintjs/issues/628\n return withIframe(function (_, _a) {\n var document = _a.document;\n var holder = document.body;\n holder.style.fontSize = textSize;\n // div to load spans for the default fonts and the fonts to detect\n var spansContainer = document.createElement('div');\n var defaultWidth = {};\n var defaultHeight = {};\n // creates a span where the fonts will be loaded\n var createSpan = function (fontFamily) {\n var span = document.createElement('span');\n var style = span.style;\n style.position = 'absolute';\n style.top = '0';\n style.left = '0';\n style.fontFamily = fontFamily;\n span.textContent = testString;\n spansContainer.appendChild(span);\n return span;\n };\n // creates a span and load the font to detect and a base font for fallback\n var createSpanWithFonts = function (fontToDetect, baseFont) {\n return createSpan(\"'\".concat(fontToDetect, \"',\").concat(baseFont));\n };\n // creates spans for the base fonts and adds them to baseFontsDiv\n var initializeBaseFontsSpans = function () {\n return baseFonts.map(createSpan);\n };\n // creates spans for the fonts to detect and adds them to fontsDiv\n var initializeFontsSpans = function () {\n // Stores {fontName : [spans for that font]}\n var spans = {};\n var _loop_1 = function (font) {\n spans[font] = baseFonts.map(function (baseFont) { return createSpanWithFonts(font, baseFont); });\n };\n for (var _i = 0, fontList_1 = fontList; _i < fontList_1.length; _i++) {\n var font = fontList_1[_i];\n _loop_1(font);\n }\n return spans;\n };\n // checks if a font is available\n var isFontAvailable = function (fontSpans) {\n return baseFonts.some(function (baseFont, baseFontIndex) {\n return fontSpans[baseFontIndex].offsetWidth !== defaultWidth[baseFont] ||\n fontSpans[baseFontIndex].offsetHeight !== defaultHeight[baseFont];\n });\n };\n // create spans for base fonts\n var baseFontsSpans = initializeBaseFontsSpans();\n // create spans for fonts to detect\n var fontsSpans = initializeFontsSpans();\n // add all the spans to the DOM\n holder.appendChild(spansContainer);\n // get the default width for the three base fonts\n for (var index = 0; index < baseFonts.length; index++) {\n defaultWidth[baseFonts[index]] = baseFontsSpans[index].offsetWidth; // width for the default font\n defaultHeight[baseFonts[index]] = baseFontsSpans[index].offsetHeight; // height for the default font\n }\n // check available fonts\n return fontList.filter(function (font) { return isFontAvailable(fontsSpans[font]); });\n });\n}\n\nfunction getPlugins() {\n var rawPlugins = navigator.plugins;\n if (!rawPlugins) {\n return undefined;\n }\n var plugins = [];\n // Safari 10 doesn't support iterating navigator.plugins with for...of\n for (var i = 0; i < rawPlugins.length; ++i) {\n var plugin = rawPlugins[i];\n if (!plugin) {\n continue;\n }\n var mimeTypes = [];\n for (var j = 0; j < plugin.length; ++j) {\n var mimeType = plugin[j];\n mimeTypes.push({\n type: mimeType.type,\n suffixes: mimeType.suffixes,\n });\n }\n plugins.push({\n name: plugin.name,\n description: plugin.description,\n mimeTypes: mimeTypes,\n });\n }\n return plugins;\n}\n\n// https://www.browserleaks.com/canvas#how-does-it-work\nfunction getCanvasFingerprint() {\n var winding = false;\n var geometry;\n var text;\n var _a = makeCanvasContext(), canvas = _a[0], context = _a[1];\n if (!isSupported(canvas, context)) {\n geometry = text = ''; // The value will be 'unsupported' in v3.4\n }\n else {\n winding = doesSupportWinding(context);\n renderTextImage(canvas, context);\n var textImage1 = canvasToString(canvas);\n var textImage2 = canvasToString(canvas); // It's slightly faster to double-encode the text image\n // Some browsers add a noise to the canvas: https://github.com/fingerprintjs/fingerprintjs/issues/791\n // The canvas is excluded from the fingerprint in this case\n if (textImage1 !== textImage2) {\n geometry = text = 'unstable';\n }\n else {\n text = textImage1;\n // Text is unstable:\n // https://github.com/fingerprintjs/fingerprintjs/issues/583\n // https://github.com/fingerprintjs/fingerprintjs/issues/103\n // Therefore it's extracted into a separate image.\n renderGeometryImage(canvas, context);\n geometry = canvasToString(canvas);\n }\n }\n return { winding: winding, geometry: geometry, text: text };\n}\nfunction makeCanvasContext() {\n var canvas = document.createElement('canvas');\n canvas.width = 1;\n canvas.height = 1;\n return [canvas, canvas.getContext('2d')];\n}\nfunction isSupported(canvas, context) {\n return !!(context && canvas.toDataURL);\n}\nfunction doesSupportWinding(context) {\n // https://web.archive.org/web/20170825024655/http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/\n // https://github.com/Modernizr/Modernizr/blob/master/feature-detects/canvas/winding.js\n context.rect(0, 0, 10, 10);\n context.rect(2, 2, 6, 6);\n return !context.isPointInPath(5, 5, 'evenodd');\n}\nfunction renderTextImage(canvas, context) {\n // Resizing the canvas cleans it\n canvas.width = 240;\n canvas.height = 60;\n context.textBaseline = 'alphabetic';\n context.fillStyle = '#f60';\n context.fillRect(100, 1, 62, 20);\n context.fillStyle = '#069';\n // It's important to use explicit built-in fonts in order to exclude the affect of font preferences\n // (there is a separate entropy source for them).\n context.font = '11pt \"Times New Roman\"';\n // The choice of emojis has a gigantic impact on rendering performance (especially in FF).\n // Some newer emojis cause it to slow down 50-200 times.\n // There must be no text to the right of the emoji, see https://github.com/fingerprintjs/fingerprintjs/issues/574\n // A bare emoji shouldn't be used because the canvas will change depending on the script encoding:\n // https://github.com/fingerprintjs/fingerprintjs/issues/66\n // Escape sequence shouldn't be used too because Terser will turn it into a bare unicode.\n var printedText = \"Cwm fjordbank gly \".concat(String.fromCharCode(55357, 56835) /* 馃槂 */);\n context.fillText(printedText, 2, 15);\n context.fillStyle = 'rgba(102, 204, 0, 0.2)';\n context.font = '18pt Arial';\n context.fillText(printedText, 4, 45);\n}\nfunction renderGeometryImage(canvas, context) {\n // Resizing the canvas cleans it\n canvas.width = 122;\n canvas.height = 110;\n // Canvas blending\n // https://web.archive.org/web/20170826194121/http://blogs.adobe.com/webplatform/2013/01/28/blending-features-in-canvas/\n // http://jsfiddle.net/NDYV8/16/\n context.globalCompositeOperation = 'multiply';\n for (var _i = 0, _a = [\n ['#f2f', 40, 40],\n ['#2ff', 80, 40],\n ['#ff2', 60, 80],\n ]; _i < _a.length; _i++) {\n var _b = _a[_i], color = _b[0], x = _b[1], y = _b[2];\n context.fillStyle = color;\n context.beginPath();\n context.arc(x, y, 40, 0, Math.PI * 2, true);\n context.closePath();\n context.fill();\n }\n // Canvas winding\n // https://web.archive.org/web/20130913061632/http://blogs.adobe.com/webplatform/2013/01/30/winding-rules-in-canvas/\n // http://jsfiddle.net/NDYV8/19/\n context.fillStyle = '#f9c';\n context.arc(60, 60, 60, 0, Math.PI * 2, true);\n context.arc(60, 60, 20, 0, Math.PI * 2, true);\n context.fill('evenodd');\n}\nfunction canvasToString(canvas) {\n return canvas.toDataURL();\n}\n\n/**\n * This is a crude and primitive touch screen detection. It's not possible to currently reliably detect the availability\n * of a touch screen with a JS, without actually subscribing to a touch event.\n *\n * @see http://www.stucox.com/blog/you-cant-detect-a-touchscreen/\n * @see https://github.com/Modernizr/Modernizr/issues/548\n */\nfunction getTouchSupport() {\n var n = navigator;\n var maxTouchPoints = 0;\n var touchEvent;\n if (n.maxTouchPoints !== undefined) {\n maxTouchPoints = toInt(n.maxTouchPoints);\n }\n else if (n.msMaxTouchPoints !== undefined) {\n maxTouchPoints = n.msMaxTouchPoints;\n }\n try {\n document.createEvent('TouchEvent');\n touchEvent = true;\n }\n catch (_a) {\n touchEvent = false;\n }\n var touchStart = 'ontouchstart' in window;\n return {\n maxTouchPoints: maxTouchPoints,\n touchEvent: touchEvent,\n touchStart: touchStart,\n };\n}\n\nfunction getOsCpu() {\n return navigator.oscpu;\n}\n\nfunction getLanguages() {\n var n = navigator;\n var result = [];\n var language = n.language || n.userLanguage || n.browserLanguage || n.systemLanguage;\n if (language !== undefined) {\n result.push([language]);\n }\n if (Array.isArray(n.languages)) {\n // Starting from Chromium 86, there is only a single value in `navigator.language` in Incognito mode:\n // the value of `navigator.language`. Therefore the value is ignored in this browser.\n if (!(isChromium() && isChromium86OrNewer())) {\n result.push(n.languages);\n }\n }\n else if (typeof n.languages === 'string') {\n var languages = n.languages;\n if (languages) {\n result.push(languages.split(','));\n }\n }\n return result;\n}\n\nfunction getColorDepth() {\n return window.screen.colorDepth;\n}\n\nfunction getDeviceMemory() {\n // `navigator.deviceMemory` is a string containing a number in some unidentified cases\n return replaceNaN(toFloat(navigator.deviceMemory), undefined);\n}\n\nfunction getScreenResolution() {\n var s = screen;\n // Some browsers return screen resolution as strings, e.g. \"1200\", instead of a number, e.g. 1200.\n // I suspect it's done by certain plugins that randomize browser properties to prevent fingerprinting.\n // Some browsers even return screen resolution as not numbers.\n var parseDimension = function (value) { return replaceNaN(toInt(value), null); };\n var dimensions = [parseDimension(s.width), parseDimension(s.height)];\n dimensions.sort().reverse();\n return dimensions;\n}\n\nvar screenFrameCheckInterval = 2500;\nvar roundingPrecision = 10;\n// The type is readonly to protect from unwanted mutations\nvar screenFrameBackup;\nvar screenFrameSizeTimeoutId;\n/**\n * Starts watching the screen frame size. When a non-zero size appears, the size is saved and the watch is stopped.\n * Later, when `getScreenFrame` runs, it will return the saved non-zero size if the current size is null.\n *\n * This trick is required to mitigate the fact that the screen frame turns null in some cases.\n * See more on this at https://github.com/fingerprintjs/fingerprintjs/issues/568\n */\nfunction watchScreenFrame() {\n if (screenFrameSizeTimeoutId !== undefined) {\n return;\n }\n var checkScreenFrame = function () {\n var frameSize = getCurrentScreenFrame();\n if (isFrameSizeNull(frameSize)) {\n screenFrameSizeTimeoutId = setTimeout(checkScreenFrame, screenFrameCheckInterval);\n }\n else {\n screenFrameBackup = frameSize;\n screenFrameSizeTimeoutId = undefined;\n }\n };\n checkScreenFrame();\n}\nfunction getScreenFrame() {\n var _this = this;\n watchScreenFrame();\n return function () { return __awaiter(_this, void 0, void 0, function () {\n var frameSize;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n frameSize = getCurrentScreenFrame();\n if (!isFrameSizeNull(frameSize)) return [3 /*break*/, 2];\n if (screenFrameBackup) {\n return [2 /*return*/, __spreadArray([], screenFrameBackup, true)];\n }\n if (!getFullscreenElement()) return [3 /*break*/, 2];\n // Some browsers set the screen frame to zero when programmatic fullscreen is on.\n // There is a chance of getting a non-zero frame after exiting the fullscreen.\n // See more on this at https://github.com/fingerprintjs/fingerprintjs/issues/568\n return [4 /*yield*/, exitFullscreen()];\n case 1:\n // Some browsers set the screen frame to zero when programmatic fullscreen is on.\n // There is a chance of getting a non-zero frame after exiting the fullscreen.\n // See more on this at https://github.com/fingerprintjs/fingerprintjs/issues/568\n _a.sent();\n frameSize = getCurrentScreenFrame();\n _a.label = 2;\n case 2:\n if (!isFrameSizeNull(frameSize)) {\n screenFrameBackup = frameSize;\n }\n return [2 /*return*/, frameSize];\n }\n });\n }); };\n}\n/**\n * Sometimes the available screen resolution changes a bit, e.g. 1900x1440 鈫� 1900x1439. A possible reason: macOS Dock\n * shrinks to fit more icons when there is too little space. The rounding is used to mitigate the difference.\n */\nfunction getRoundedScreenFrame() {\n var _this = this;\n var screenFrameGetter = getScreenFrame();\n return function () { return __awaiter(_this, void 0, void 0, function () {\n var frameSize, processSize;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, screenFrameGetter()];\n case 1:\n frameSize = _a.sent();\n processSize = function (sideSize) { return (sideSize === null ? null : round(sideSize, roundingPrecision)); };\n // It might look like I don't know about `for` and `map`.\n // In fact, such code is used to avoid TypeScript issues without using `as`.\n return [2 /*return*/, [processSize(frameSize[0]), processSize(frameSize[1]), processSize(frameSize[2]), processSize(frameSize[3])]];\n }\n });\n }); };\n}\nfunction getCurrentScreenFrame() {\n var s = screen;\n // Some browsers return screen resolution as strings, e.g. \"1200\", instead of a number, e.g. 1200.\n // I suspect it's done by certain plugins that randomize browser properties to prevent fingerprinting.\n //\n // Some browsers (IE, Edge 鈮�18) don't provide `screen.availLeft` and `screen.availTop`. The property values are\n // replaced with 0 in such cases to not lose the entropy from `screen.availWidth` and `screen.availHeight`.\n return [\n replaceNaN(toFloat(s.availTop), null),\n replaceNaN(toFloat(s.width) - toFloat(s.availWidth) - replaceNaN(toFloat(s.availLeft), 0), null),\n replaceNaN(toFloat(s.height) - toFloat(s.availHeight) - replaceNaN(toFloat(s.availTop), 0), null),\n replaceNaN(toFloat(s.availLeft), null),\n ];\n}\nfunction isFrameSizeNull(frameSize) {\n for (var i = 0; i < 4; ++i) {\n if (frameSize[i]) {\n return false;\n }\n }\n return true;\n}\n\nfunction getHardwareConcurrency() {\n // sometimes hardware concurrency is a string\n return replaceNaN(toInt(navigator.hardwareConcurrency), undefined);\n}\n\nfunction getTimezone() {\n var _a;\n var DateTimeFormat = (_a = window.Intl) === null || _a === void 0 ? void 0 : _a.DateTimeFormat;\n if (DateTimeFormat) {\n var timezone = new DateTimeFormat().resolvedOptions().timeZone;\n if (timezone) {\n return timezone;\n }\n }\n // For browsers that don't support timezone names\n // The minus is intentional because the JS offset is opposite to the real offset\n var offset = -getTimezoneOffset();\n return \"UTC\".concat(offset >= 0 ? '+' : '').concat(Math.abs(offset));\n}\nfunction getTimezoneOffset() {\n var currentYear = new Date().getFullYear();\n // The timezone offset may change over time due to daylight saving time (DST) shifts.\n // The non-DST timezone offset is used as the result timezone offset.\n // Since the DST season differs in the northern and the southern hemispheres,\n // both January and July timezones offsets are considered.\n return Math.max(\n // `getTimezoneOffset` returns a number as a string in some unidentified cases\n toFloat(new Date(currentYear, 0, 1).getTimezoneOffset()), toFloat(new Date(currentYear, 6, 1).getTimezoneOffset()));\n}\n\nfunction getSessionStorage() {\n try {\n return !!window.sessionStorage;\n }\n catch (error) {\n /* SecurityError when referencing it means it exists */\n return true;\n }\n}\n\n// https://bugzilla.mozilla.org/show_bug.cgi?id=781447\nfunction getLocalStorage() {\n try {\n return !!window.localStorage;\n }\n catch (e) {\n /* SecurityError when referencing it means it exists */\n return true;\n }\n}\n\nfunction getIndexedDB() {\n // IE and Edge don't allow accessing indexedDB in private mode, therefore IE and Edge will have different\n // visitor identifier in normal and private modes.\n if (isTrident() || isEdgeHTML()) {\n return undefined;\n }\n try {\n return !!window.indexedDB;\n }\n catch (e) {\n /* SecurityError when referencing it means it exists */\n return true;\n }\n}\n\nfunction getOpenDatabase() {\n return !!window.openDatabase;\n}\n\nfunction getCpuClass() {\n return navigator.cpuClass;\n}\n\nfunction getPlatform() {\n // Android Chrome 86 and 87 and Android Firefox 80 and 84 don't mock the platform value when desktop mode is requested\n var platform = navigator.platform;\n // iOS mocks the platform value when desktop version is requested: https://github.com/fingerprintjs/fingerprintjs/issues/514\n // iPad uses desktop mode by default since iOS 13\n // The value is 'MacIntel' on M1 Macs\n // The value is 'iPhone' on iPod Touch\n if (platform === 'MacIntel') {\n if (isWebKit() && !isDesktopSafari()) {\n return isIPad() ? 'iPad' : 'iPhone';\n }\n }\n return platform;\n}\n\nfunction getVendor() {\n return navigator.vendor || '';\n}\n\n/**\n * Checks for browser-specific (not engine specific) global variables to tell browsers with the same engine apart.\n * Only somewhat popular browsers are considered.\n */\nfunction getVendorFlavors() {\n var flavors = [];\n for (var _i = 0, _a = [\n // Blink and some browsers on iOS\n 'chrome',\n // Safari on macOS\n 'safari',\n // Chrome on iOS (checked in 85 on 13 and 87 on 14)\n '__crWeb',\n '__gCrWeb',\n // Yandex Browser on iOS, macOS and Android (checked in 21.2 on iOS 14, macOS and Android)\n 'yandex',\n // Yandex Browser on iOS (checked in 21.2 on 14)\n '__yb',\n '__ybro',\n // Firefox on iOS (checked in 32 on 14)\n '__firefox__',\n // Edge on iOS (checked in 46 on 14)\n '__edgeTrackingPreventionStatistics',\n 'webkit',\n // Opera Touch on iOS (checked in 2.6 on 14)\n 'oprt',\n // Samsung Internet on Android (checked in 11.1)\n 'samsungAr',\n // UC Browser on Android (checked in 12.10 and 13.0)\n 'ucweb',\n 'UCShellJava',\n // Puffin on Android (checked in 9.0)\n 'puffinDevice',\n // UC on iOS and Opera on Android have no specific global variables\n // Edge for Android isn't checked\n ]; _i < _a.length; _i++) {\n var key = _a[_i];\n var value = window[key];\n if (value && typeof value === 'object') {\n flavors.push(key);\n }\n }\n return flavors.sort();\n}\n\n/**\n * navigator.cookieEnabled cannot detect custom or nuanced cookie blocking configurations. For example, when blocking\n * cookies via the Advanced Privacy Settings in IE9, it always returns true. And there have been issues in the past with\n * site-specific exceptions. Don't rely on it.\n *\n * @see https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cookies.js Taken from here\n */\nfunction areCookiesEnabled() {\n var d = document;\n // Taken from here: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cookies.js\n // navigator.cookieEnabled cannot detect custom or nuanced cookie blocking configurations. For example, when blocking\n // cookies via the Advanced Privacy Settings in IE9, it always returns true. And there have been issues in the past\n // with site-specific exceptions. Don't rely on it.\n // try..catch because some in situations `document.cookie` is exposed but throws a\n // SecurityError if you try to access it; e.g. documents created from data URIs\n // or in sandboxed iframes (depending on flags/context)\n try {\n // Create cookie\n d.cookie = 'cookietest=1; SameSite=Strict;';\n var result = d.cookie.indexOf('cookietest=') !== -1;\n // Delete cookie\n d.cookie = 'cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT';\n return result;\n }\n catch (e) {\n return false;\n }\n}\n\n/**\n * Only single element selector are supported (no operators like space, +, >, etc).\n * `embed` and `position: fixed;` will be considered as blocked anyway because it always has no offsetParent.\n * Avoid `iframe` and anything with `[src=]` because they produce excess HTTP requests.\n *\n * The \"inappropriate\" selectors are obfuscated. See https://github.com/fingerprintjs/fingerprintjs/issues/734.\n * A function is used instead of a plain object to help tree-shaking.\n *\n * The function code is generated automatically. See docs/content_blockers.md to learn how to make the list.\n */\nfunction getFilters() {\n var fromB64 = atob; // Just for better minification\n return {\n abpIndo: [\n '#Iklan-Melayang',\n '#Kolom-Iklan-728',\n '#SidebarIklan-wrapper',\n '[title=\"ALIENBOLA\" i]',\n fromB64('I0JveC1CYW5uZXItYWRz'),\n ],\n abpvn: ['.quangcao', '#mobileCatfish', fromB64('LmNsb3NlLWFkcw=='), '[id^=\"bn_bottom_fixed_\"]', '#pmadv'],\n adBlockFinland: [\n '.mainostila',\n fromB64('LnNwb25zb3JpdA=='),\n '.ylamainos',\n fromB64('YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd'),\n fromB64('YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd'),\n ],\n adBlockPersian: [\n '#navbar_notice_50',\n '.kadr',\n 'TABLE[width=\"140px\"]',\n '#divAgahi',\n fromB64('YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd'),\n ],\n adBlockWarningRemoval: [\n '#adblock-honeypot',\n '.adblocker-root',\n '.wp_adblock_detect',\n fromB64('LmhlYWRlci1ibG9ja2VkLWFk'),\n fromB64('I2FkX2Jsb2NrZXI='),\n ],\n adGuardAnnoyances: [\n '.hs-sosyal',\n '#cookieconsentdiv',\n 'div[class^=\"app_gdpr\"]',\n '.as-oil',\n '[data-cypress=\"soft-push-notification-modal\"]',\n ],\n adGuardBase: [\n '.BetterJsPopOverlay',\n fromB64('I2FkXzMwMFgyNTA='),\n fromB64('I2Jhbm5lcmZsb2F0MjI='),\n fromB64('I2NhbXBhaWduLWJhbm5lcg=='),\n fromB64('I0FkLUNvbnRlbnQ='),\n ],\n adGuardChinese: [\n fromB64('LlppX2FkX2FfSA=='),\n fromB64('YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd'),\n '#widget-quan',\n fromB64('YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd'),\n fromB64('YVtocmVmKj0iLjE5NTZobC5jb20vIl0='),\n ],\n adGuardFrench: [\n '#pavePub',\n fromB64('LmFkLWRlc2t0b3AtcmVjdGFuZ2xl'),\n '.mobile_adhesion',\n '.widgetadv',\n fromB64('LmFkc19iYW4='),\n ],\n adGuardGerman: ['aside[data-portal-id=\"leaderboard\"]'],\n adGuardJapanese: [\n '#kauli_yad_1',\n fromB64('YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0='),\n fromB64('Ll9wb3BJbl9pbmZpbml0ZV9hZA=='),\n fromB64('LmFkZ29vZ2xl'),\n fromB64('Ll9faXNib29zdFJldHVybkFk'),\n ],\n adGuardMobile: [\n fromB64('YW1wLWF1dG8tYWRz'),\n fromB64('LmFtcF9hZA=='),\n 'amp-embed[type=\"24smi\"]',\n '#mgid_iframe1',\n fromB64('I2FkX2ludmlld19hcmVh'),\n ],\n adGuardRussian: [\n fromB64('YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0='),\n fromB64('LnJlY2xhbWE='),\n 'div[id^=\"smi2adblock\"]',\n fromB64('ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd'),\n '#psyduckpockeball',\n ],\n adGuardSocial: [\n fromB64('YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0='),\n fromB64('YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0='),\n '.etsy-tweet',\n '#inlineShare',\n '.popup-social',\n ],\n adGuardSpanishPortuguese: ['#barraPublicidade', '#Publicidade', '#publiEspecial', '#queTooltip', '.cnt-publi'],\n adGuardTrackingProtection: [\n '#qoo-counter',\n fromB64('YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=='),\n fromB64('YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0='),\n fromB64('YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=='),\n '#top100counter',\n ],\n adGuardTurkish: [\n '#backkapat',\n fromB64('I3Jla2xhbWk='),\n fromB64('YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0='),\n fromB64('YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd'),\n fromB64('YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ=='),\n ],\n bulgarian: [fromB64('dGQjZnJlZW5ldF90YWJsZV9hZHM='), '#ea_intext_div', '.lapni-pop-over', '#xenium_hot_offers'],\n easyList: [\n '.yb-floorad',\n fromB64('LndpZGdldF9wb19hZHNfd2lkZ2V0'),\n fromB64('LnRyYWZmaWNqdW5reS1hZA=='),\n '.textad_headline',\n fromB64('LnNwb25zb3JlZC10ZXh0LWxpbmtz'),\n ],\n easyListChina: [\n fromB64('LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=='),\n fromB64('LmZyb250cGFnZUFkdk0='),\n '#taotaole',\n '#aafoot.top_box',\n '.cfa_popup',\n ],\n easyListCookie: [\n '.ezmob-footer',\n '.cc-CookieWarning',\n '[data-cookie-number]',\n fromB64('LmF3LWNvb2tpZS1iYW5uZXI='),\n '.sygnal24-gdpr-modal-wrap',\n ],\n easyListCzechSlovak: [\n '#onlajny-stickers',\n fromB64('I3Jla2xhbW5pLWJveA=='),\n fromB64('LnJla2xhbWEtbWVnYWJvYXJk'),\n '.sklik',\n fromB64('W2lkXj0ic2tsaWtSZWtsYW1hIl0='),\n ],\n easyListDutch: [\n fromB64('I2FkdmVydGVudGll'),\n fromB64('I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=='),\n '.adstekst',\n fromB64('YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0='),\n '#semilo-lrectangle',\n ],\n easyListGermany: [\n '#SSpotIMPopSlider',\n fromB64('LnNwb25zb3JsaW5rZ3J1ZW4='),\n fromB64('I3dlcmJ1bmdza3k='),\n fromB64('I3Jla2xhbWUtcmVjaHRzLW1pdHRl'),\n fromB64('YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0='),\n ],\n easyListItaly: [\n fromB64('LmJveF9hZHZfYW5udW5jaQ=='),\n '.sb-box-pubbliredazionale',\n fromB64('YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd'),\n fromB64('YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd'),\n fromB64('YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ=='),\n ],\n easyListLithuania: [\n fromB64('LnJla2xhbW9zX3RhcnBhcw=='),\n fromB64('LnJla2xhbW9zX251b3JvZG9z'),\n fromB64('aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd'),\n fromB64('aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd'),\n fromB64('aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd'),\n ],\n estonian: [fromB64('QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==')],\n fanboyAnnoyances: ['#ac-lre-player', '.navigate-to-top', '#subscribe_popup', '.newsletter_holder', '#back-top'],\n fanboyAntiFacebook: ['.util-bar-module-firefly-visible'],\n fanboyEnhancedTrackers: [\n '.open.pushModal',\n '#issuem-leaky-paywall-articles-zero-remaining-nag',\n '#sovrn_container',\n 'div[class$=\"-hide\"][zoompage-fontsize][style=\"display: block;\"]',\n '.BlockNag__Card',\n ],\n fanboySocial: ['#FollowUs', '#meteored_share', '#social_follow', '.article-sharer', '.community__social-desc'],\n frellwitSwedish: [\n fromB64('YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=='),\n fromB64('YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=='),\n 'article.category-samarbete',\n fromB64('ZGl2LmhvbGlkQWRz'),\n 'ul.adsmodern',\n ],\n greekAdBlock: [\n fromB64('QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd'),\n fromB64('QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=='),\n fromB64('QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd'),\n 'DIV.agores300',\n 'TABLE.advright',\n ],\n hungarian: [\n '#cemp_doboz',\n '.optimonk-iframe-container',\n fromB64('LmFkX19tYWlu'),\n fromB64('W2NsYXNzKj0iR29vZ2xlQWRzIl0='),\n '#hirdetesek_box',\n ],\n iDontCareAboutCookies: [\n '.alert-info[data-block-track*=\"CookieNotice\"]',\n '.ModuleTemplateCookieIndicator',\n '.o--cookies--container',\n '#cookies-policy-sticky',\n '#stickyCookieBar',\n ],\n icelandicAbp: [fromB64('QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==')],\n latvian: [\n fromB64('YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0O' +\n 'iA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0='),\n fromB64('YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6I' +\n 'DMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ=='),\n ],\n listKr: [\n fromB64('YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0='),\n fromB64('I2xpdmVyZUFkV3JhcHBlcg=='),\n fromB64('YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=='),\n fromB64('aW5zLmZhc3R2aWV3LWFk'),\n '.revenue_unit_item.dable',\n ],\n listeAr: [\n fromB64('LmdlbWluaUxCMUFk'),\n '.right-and-left-sponsers',\n fromB64('YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=='),\n fromB64('YVtocmVmKj0iYm9vcmFxLm9yZyJd'),\n fromB64('YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd'),\n ],\n listeFr: [\n fromB64('YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=='),\n fromB64('I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=='),\n fromB64('YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0='),\n '.site-pub-interstitiel',\n 'div[id^=\"crt-\"][data-criteo-id]',\n ],\n officialPolish: [\n '#ceneo-placeholder-ceneo-12',\n fromB64('W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd'),\n fromB64('YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=='),\n fromB64('YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=='),\n fromB64('ZGl2I3NrYXBpZWNfYWQ='),\n ],\n ro: [\n fromB64('YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd'),\n fromB64('YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd'),\n fromB64('YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0='),\n fromB64('YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd'),\n 'a[href^=\"/url/\"]',\n ],\n ruAd: [\n fromB64('YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd'),\n fromB64('YVtocmVmKj0iLy91dGltZy5ydS8iXQ=='),\n fromB64('YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0='),\n '#pgeldiz',\n '.yandex-rtb-block',\n ],\n thaiAds: [\n 'a[href*=macau-uta-popup]',\n fromB64('I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=='),\n fromB64('LmFkczMwMHM='),\n '.bumq',\n '.img-kosana',\n ],\n webAnnoyancesUltralist: [\n '#mod-social-share-2',\n '#social-tools',\n fromB64('LmN0cGwtZnVsbGJhbm5lcg=='),\n '.zergnet-recommend',\n '.yt.btn-link.btn-md.btn',\n ],\n };\n}\n/**\n * The order of the returned array means nothing (it's always sorted alphabetically).\n *\n * Notice that the source is slightly unstable.\n * Safari provides a 2-taps way to disable all content blockers on a page temporarily.\n * Also content blockers can be disabled permanently for a domain, but it requires 4 taps.\n * So empty array shouldn't be treated as \"no blockers\", it should be treated as \"no signal\".\n * If you are a website owner, don't make your visitors want to disable content blockers.\n */\nfunction getDomBlockers(_a) {\n var _b = _a === void 0 ? {} : _a, debug = _b.debug;\n return __awaiter(this, void 0, void 0, function () {\n var filters, filterNames, allSelectors, blockedSelectors, activeBlockers;\n var _c;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n if (!isApplicable()) {\n return [2 /*return*/, undefined];\n }\n filters = getFilters();\n filterNames = Object.keys(filters);\n allSelectors = (_c = []).concat.apply(_c, filterNames.map(function (filterName) { return filters[filterName]; }));\n return [4 /*yield*/, getBlockedSelectors(allSelectors)];\n case 1:\n blockedSelectors = _d.sent();\n if (debug) {\n printDebug(filters, blockedSelectors);\n }\n activeBlockers = filterNames.filter(function (filterName) {\n var selectors = filters[filterName];\n var blockedCount = countTruthy(selectors.map(function (selector) { return blockedSelectors[selector]; }));\n return blockedCount > selectors.length * 0.6;\n });\n activeBlockers.sort();\n return [2 /*return*/, activeBlockers];\n }\n });\n });\n}\nfunction isApplicable() {\n // Safari (desktop and mobile) and all Android browsers keep content blockers in both regular and private mode\n return isWebKit() || isAndroid();\n}\nfunction getBlockedSelectors(selectors) {\n var _a;\n return __awaiter(this, void 0, void 0, function () {\n var d, root, elements, blockedSelectors, i, element, holder, i;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n d = document;\n root = d.createElement('div');\n elements = new Array(selectors.length);\n blockedSelectors = {} // Set() isn't used just in case somebody need older browser support\n ;\n forceShow(root);\n // First create all elements that can be blocked. If the DOM steps below are done in a single cycle,\n // browser will alternate tree modification and layout reading, that is very slow.\n for (i = 0; i < selectors.length; ++i) {\n element = selectorToElement(selectors[i]);\n if (element.tagName === 'DIALOG') {\n element.show();\n }\n holder = d.createElement('div') // Protects from unwanted effects of `+` and `~` selectors of filters\n ;\n forceShow(holder);\n holder.appendChild(element);\n root.appendChild(holder);\n elements[i] = element;\n }\n _b.label = 1;\n case 1:\n if (!!d.body) return [3 /*break*/, 3];\n return [4 /*yield*/, wait(50)];\n case 2:\n _b.sent();\n return [3 /*break*/, 1];\n case 3:\n d.body.appendChild(root);\n try {\n // Then check which of the elements are blocked\n for (i = 0; i < selectors.length; ++i) {\n if (!elements[i].offsetParent) {\n blockedSelectors[selectors[i]] = true;\n }\n }\n }\n finally {\n // Then remove the elements\n (_a = root.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(root);\n }\n return [2 /*return*/, blockedSelectors];\n }\n });\n });\n}\nfunction forceShow(element) {\n element.style.setProperty('display', 'block', 'important');\n}\nfunction printDebug(filters, blockedSelectors) {\n var message = 'DOM blockers debug:\\n```';\n for (var _i = 0, _a = Object.keys(filters); _i < _a.length; _i++) {\n var filterName = _a[_i];\n message += \"\\n\".concat(filterName, \":\");\n for (var _b = 0, _c = filters[filterName]; _b < _c.length; _b++) {\n var selector = _c[_b];\n message += \"\\n \".concat(blockedSelectors[selector] ? '馃毇' : '鉃★笍', \" \").concat(selector);\n }\n }\n // console.log is ok here because it's under a debug clause\n // eslint-disable-next-line no-console\n console.log(\"\".concat(message, \"\\n```\"));\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/color-gamut\n */\nfunction getColorGamut() {\n // rec2020 includes p3 and p3 includes srgb\n for (var _i = 0, _a = ['rec2020', 'p3', 'srgb']; _i < _a.length; _i++) {\n var gamut = _a[_i];\n if (matchMedia(\"(color-gamut: \".concat(gamut, \")\")).matches) {\n return gamut;\n }\n }\n return undefined;\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/inverted-colors\n */\nfunction areColorsInverted() {\n if (doesMatch$4('inverted')) {\n return true;\n }\n if (doesMatch$4('none')) {\n return false;\n }\n return undefined;\n}\nfunction doesMatch$4(value) {\n return matchMedia(\"(inverted-colors: \".concat(value, \")\")).matches;\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/forced-colors\n */\nfunction areColorsForced() {\n if (doesMatch$3('active')) {\n return true;\n }\n if (doesMatch$3('none')) {\n return false;\n }\n return undefined;\n}\nfunction doesMatch$3(value) {\n return matchMedia(\"(forced-colors: \".concat(value, \")\")).matches;\n}\n\nvar maxValueToCheck = 100;\n/**\n * If the display is monochrome (e.g. black&white), the value will be 鈮�0 and will mean the number of bits per pixel.\n * If the display is not monochrome, the returned value will be 0.\n * If the browser doesn't support this feature, the returned value will be undefined.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/monochrome\n */\nfunction getMonochromeDepth() {\n if (!matchMedia('(min-monochrome: 0)').matches) {\n // The media feature isn't supported by the browser\n return undefined;\n }\n // A variation of binary search algorithm can be used here.\n // But since expected values are very small (鈮�10), there is no sense in adding the complexity.\n for (var i = 0; i <= maxValueToCheck; ++i) {\n if (matchMedia(\"(max-monochrome: \".concat(i, \")\")).matches) {\n return i;\n }\n }\n throw new Error('Too high value');\n}\n\n/**\n * @see https://www.w3.org/TR/mediaqueries-5/#prefers-contrast\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-contrast\n */\nfunction getContrastPreference() {\n if (doesMatch$2('no-preference')) {\n return 0 /* ContrastPreference.None */;\n }\n // The sources contradict on the keywords. Probably 'high' and 'low' will never be implemented.\n // Need to check it when all browsers implement the feature.\n if (doesMatch$2('high') || doesMatch$2('more')) {\n return 1 /* ContrastPreference.More */;\n }\n if (doesMatch$2('low') || doesMatch$2('less')) {\n return -1 /* ContrastPreference.Less */;\n }\n if (doesMatch$2('forced')) {\n return 10 /* ContrastPreference.ForcedColors */;\n }\n return undefined;\n}\nfunction doesMatch$2(value) {\n return matchMedia(\"(prefers-contrast: \".concat(value, \")\")).matches;\n}\n\n/**\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion\n */\nfunction isMotionReduced() {\n if (doesMatch$1('reduce')) {\n return true;\n }\n if (doesMatch$1('no-preference')) {\n return false;\n }\n return undefined;\n}\nfunction doesMatch$1(value) {\n return matchMedia(\"(prefers-reduced-motion: \".concat(value, \")\")).matches;\n}\n\n/**\n * @see https://www.w3.org/TR/mediaqueries-5/#dynamic-range\n */\nfunction isHDR() {\n if (doesMatch('high')) {\n return true;\n }\n if (doesMatch('standard')) {\n return false;\n }\n return undefined;\n}\nfunction doesMatch(value) {\n return matchMedia(\"(dynamic-range: \".concat(value, \")\")).matches;\n}\n\nvar M = Math; // To reduce the minified code size\nvar fallbackFn = function () { return 0; };\n/**\n * @see https://gitlab.torproject.org/legacy/trac/-/issues/13018\n * @see https://bugzilla.mozilla.org/show_bug.cgi?id=531915\n */\nfunction getMathFingerprint() {\n // Native operations\n var acos = M.acos || fallbackFn;\n var acosh = M.acosh || fallbackFn;\n var asin = M.asin || fallbackFn;\n var asinh = M.asinh || fallbackFn;\n var atanh = M.atanh || fallbackFn;\n var atan = M.atan || fallbackFn;\n var sin = M.sin || fallbackFn;\n var sinh = M.sinh || fallbackFn;\n var cos = M.cos || fallbackFn;\n var cosh = M.cosh || fallbackFn;\n var tan = M.tan || fallbackFn;\n var tanh = M.tanh || fallbackFn;\n var exp = M.exp || fallbackFn;\n var expm1 = M.expm1 || fallbackFn;\n var log1p = M.log1p || fallbackFn;\n // Operation polyfills\n var powPI = function (value) { return M.pow(M.PI, value); };\n var acoshPf = function (value) { return M.log(value + M.sqrt(value * value - 1)); };\n var asinhPf = function (value) { return M.log(value + M.sqrt(value * value + 1)); };\n var atanhPf = function (value) { return M.log((1 + value) / (1 - value)) / 2; };\n var sinhPf = function (value) { return M.exp(value) - 1 / M.exp(value) / 2; };\n var coshPf = function (value) { return (M.exp(value) + 1 / M.exp(value)) / 2; };\n var expm1Pf = function (value) { return M.exp(value) - 1; };\n var tanhPf = function (value) { return (M.exp(2 * value) - 1) / (M.exp(2 * value) + 1); };\n var log1pPf = function (value) { return M.log(1 + value); };\n // Note: constant values are empirical\n return {\n acos: acos(0.123124234234234242),\n acosh: acosh(1e308),\n acoshPf: acoshPf(1e154),\n asin: asin(0.123124234234234242),\n asinh: asinh(1),\n asinhPf: asinhPf(1),\n atanh: atanh(0.5),\n atanhPf: atanhPf(0.5),\n atan: atan(0.5),\n sin: sin(-1e300),\n sinh: sinh(1),\n sinhPf: sinhPf(1),\n cos: cos(10.000000000123),\n cosh: cosh(1),\n coshPf: coshPf(1),\n tan: tan(-1e300),\n tanh: tanh(1),\n tanhPf: tanhPf(1),\n exp: exp(1),\n expm1: expm1(1),\n expm1Pf: expm1Pf(1),\n log1p: log1p(10),\n log1pPf: log1pPf(10),\n powPI: powPI(-100),\n };\n}\n\n/**\n * We use m or w because these two characters take up the maximum width.\n * Also there are a couple of ligatures.\n */\nvar defaultText = 'mmMwWLliI0fiflO&1';\n/**\n * Settings of text blocks to measure. The keys are random but persistent words.\n */\nvar presets = {\n /**\n * The default font. User can change it in desktop Chrome, desktop Firefox, IE 11,\n * Android Chrome (but only when the size is 鈮� than the default) and Android Firefox.\n */\n default: [],\n /** OS font on macOS. User can change its size and weight. Applies after Safari restart. */\n apple: [{ font: '-apple-system-body' }],\n /** User can change it in desktop Chrome and desktop Firefox. */\n serif: [{ fontFamily: 'serif' }],\n /** User can change it in desktop Chrome and desktop Firefox. */\n sans: [{ fontFamily: 'sans-serif' }],\n /** User can change it in desktop Chrome and desktop Firefox. */\n mono: [{ fontFamily: 'monospace' }],\n /**\n * Check the smallest allowed font size. User can change it in desktop Chrome, desktop Firefox and desktop Safari.\n * The height can be 0 in Chrome on a retina display.\n */\n min: [{ fontSize: '1px' }],\n /** Tells one OS from another in desktop Chrome. */\n system: [{ fontFamily: 'system-ui' }],\n};\n/**\n * The result is a dictionary of the width of the text samples.\n * Heights aren't included because they give no extra entropy and are unstable.\n *\n * The result is very stable in IE 11, Edge 18 and Safari 14.\n * The result changes when the OS pixel density changes in Chromium 87. The real pixel density is required to solve,\n * but seems like it's impossible: https://stackoverflow.com/q/1713771/1118709.\n * The \"min\" and the \"mono\" (only on Windows) value may change when the page is zoomed in Firefox 87.\n */\nfunction getFontPreferences() {\n return withNaturalFonts(function (document, container) {\n var elements = {};\n var sizes = {};\n // First create all elements to measure. If the DOM steps below are done in a single cycle,\n // browser will alternate tree modification and layout reading, that is very slow.\n for (var _i = 0, _a = Object.keys(presets); _i < _a.length; _i++) {\n var key = _a[_i];\n var _b = presets[key], _c = _b[0], style = _c === void 0 ? {} : _c, _d = _b[1], text = _d === void 0 ? defaultText : _d;\n var element = document.createElement('span');\n element.textContent = text;\n element.style.whiteSpace = 'nowrap';\n for (var _e = 0, _f = Object.keys(style); _e < _f.length; _e++) {\n var name_1 = _f[_e];\n var value = style[name_1];\n if (value !== undefined) {\n element.style[name_1] = value;\n }\n }\n elements[key] = element;\n container.appendChild(document.createElement('br'));\n container.appendChild(element);\n }\n // Then measure the created elements\n for (var _g = 0, _h = Object.keys(presets); _g < _h.length; _g++) {\n var key = _h[_g];\n sizes[key] = elements[key].getBoundingClientRect().width;\n }\n return sizes;\n });\n}\n/**\n * Creates a DOM environment that provides the most natural font available, including Android OS font.\n * Measurements of the elements are zoom-independent.\n * Don't put a content to measure inside an absolutely positioned element.\n */\nfunction withNaturalFonts(action, containerWidthPx) {\n if (containerWidthPx === void 0) { containerWidthPx = 4000; }\n /*\n * Requirements for Android Chrome to apply the system font size to a text inside an iframe:\n * - The iframe mustn't have a `display: none;` style;\n * - The text mustn't be positioned absolutely;\n * - The text block must be wide enough.\n * 2560px on some devices in portrait orientation for the biggest font size option (32px);\n * - There must be much enough text to form a few lines (I don't know the exact numbers);\n * - The text must have the `text-size-adjust: none` style. Otherwise the text will scale in \"Desktop site\" mode;\n *\n * Requirements for Android Firefox to apply the system font size to a text inside an iframe:\n * - The iframe document must have a header: ``.\n * The only way to set it is to use the `srcdoc` attribute of the iframe;\n * - The iframe content must get loaded before adding extra content with JavaScript;\n *\n * https://example.com as the iframe target always inherits Android font settings so it can be used as a reference.\n *\n * Observations on how page zoom affects the measurements:\n * - macOS Safari 11.1, 12.1, 13.1, 14.0: zoom reset + offsetWidth = 100% reliable;\n * - macOS Safari 11.1, 12.1, 13.1, 14.0: zoom reset + getBoundingClientRect = 100% reliable;\n * - macOS Safari 14.0: offsetWidth = 5% fluctuation;\n * - macOS Safari 14.0: getBoundingClientRect = 5% fluctuation;\n * - iOS Safari 9, 10, 11.0, 12.0: haven't found a way to zoom a page (pinch doesn't change layout);\n * - iOS Safari 13.1, 14.0: zoom reset + offsetWidth = 100% reliable;\n * - iOS Safari 13.1, 14.0: zoom reset + getBoundingClientRect = 100% reliable;\n * - iOS Safari 14.0: offsetWidth = 100% reliable;\n * - iOS Safari 14.0: getBoundingClientRect = 100% reliable;\n * - Chrome 42, 65, 80, 87: zoom 1/devicePixelRatio + offsetWidth = 1px fluctuation;\n * - Chrome 42, 65, 80, 87: zoom 1/devicePixelRatio + getBoundingClientRect = 100% reliable;\n * - Chrome 87: offsetWidth = 1px fluctuation;\n * - Chrome 87: getBoundingClientRect = 0.7px fluctuation;\n * - Firefox 48, 51: offsetWidth = 10% fluctuation;\n * - Firefox 48, 51: getBoundingClientRect = 10% fluctuation;\n * - Firefox 52, 53, 57, 62, 66, 67, 68, 71, 75, 80, 84: offsetWidth = width 100% reliable, height 10% fluctuation;\n * - Firefox 52, 53, 57, 62, 66, 67, 68, 71, 75, 80, 84: getBoundingClientRect = width 100% reliable, height 10%\n * fluctuation;\n * - Android Chrome 86: haven't found a way to zoom a page (pinch doesn't change layout);\n * - Android Firefox 84: font size in accessibility settings changes all the CSS sizes, but offsetWidth and\n * getBoundingClientRect keep measuring with regular units, so the size reflects the font size setting and doesn't\n * fluctuate;\n * - IE 11, Edge 18: zoom 1/devicePixelRatio + offsetWidth = 100% reliable;\n * - IE 11, Edge 18: zoom 1/devicePixelRatio + getBoundingClientRect = reflects the zoom level;\n * - IE 11, Edge 18: offsetWidth = 100% reliable;\n * - IE 11, Edge 18: getBoundingClientRect = 100% reliable;\n */\n return withIframe(function (_, iframeWindow) {\n var iframeDocument = iframeWindow.document;\n var iframeBody = iframeDocument.body;\n var bodyStyle = iframeBody.style;\n bodyStyle.width = \"\".concat(containerWidthPx, \"px\");\n bodyStyle.webkitTextSizeAdjust = bodyStyle.textSizeAdjust = 'none';\n // See the big comment above\n if (isChromium()) {\n iframeBody.style.zoom = \"\".concat(1 / iframeWindow.devicePixelRatio);\n }\n else if (isWebKit()) {\n iframeBody.style.zoom = 'reset';\n }\n // See the big comment above\n var linesOfText = iframeDocument.createElement('div');\n linesOfText.textContent = __spreadArray([], Array((containerWidthPx / 20) << 0), true).map(function () { return 'word'; }).join(' ');\n iframeBody.appendChild(linesOfText);\n return action(iframeDocument, iframeBody);\n }, '');\n}\n\n/**\n * @see Credits: https://stackoverflow.com/a/49267844\n */\nfunction getVideoCard() {\n var _a;\n var canvas = document.createElement('canvas');\n var gl = (_a = canvas.getContext('webgl')) !== null && _a !== void 0 ? _a : canvas.getContext('experimental-webgl');\n if (gl && 'getExtension' in gl) {\n var debugInfo = gl.getExtension('WEBGL_debug_renderer_info');\n if (debugInfo) {\n return {\n vendor: (gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL) || '').toString(),\n renderer: (gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) || '').toString(),\n };\n }\n }\n return undefined;\n}\n\nfunction isPdfViewerEnabled() {\n return navigator.pdfViewerEnabled;\n}\n\n/**\n * Unlike most other architectures, on x86/x86-64 when floating-point instructions\n * have no NaN arguments, but produce NaN output, the output NaN has sign bit set.\n * We use it to distinguish x86/x86-64 from other architectures, by doing subtraction\n * of two infinities (must produce NaN per IEEE 754 standard).\n *\n * See https://codebrowser.bddppq.com/pytorch/pytorch/third_party/XNNPACK/src/init.c.html#79\n */\nfunction getArchitecture() {\n var f = new Float32Array(1);\n var u8 = new Uint8Array(f.buffer);\n f[0] = Infinity;\n f[0] = f[0] - f[0];\n return u8[3];\n}\n\n/**\n * The list of entropy sources used to make visitor identifiers.\n *\n * This value isn't restricted by Semantic Versioning, i.e. it may be changed without bumping minor or major version of\n * this package.\n *\n * Note: Rollup and Webpack are smart enough to remove unused properties of this object during tree-shaking, so there is\n * no need to export the sources individually.\n */\nvar sources = {\n // READ FIRST:\n // See https://github.com/fingerprintjs/fingerprintjs/blob/master/contributing.md#how-to-make-an-entropy-source\n // to learn how entropy source works and how to make your own.\n // The sources run in this exact order.\n // The asynchronous sources are at the start to run in parallel with other sources.\n fonts: getFonts,\n domBlockers: getDomBlockers,\n fontPreferences: getFontPreferences,\n audio: getAudioFingerprint,\n screenFrame: getRoundedScreenFrame,\n osCpu: getOsCpu,\n languages: getLanguages,\n colorDepth: getColorDepth,\n deviceMemory: getDeviceMemory,\n screenResolution: getScreenResolution,\n hardwareConcurrency: getHardwareConcurrency,\n timezone: getTimezone,\n sessionStorage: getSessionStorage,\n localStorage: getLocalStorage,\n indexedDB: getIndexedDB,\n openDatabase: getOpenDatabase,\n cpuClass: getCpuClass,\n platform: getPlatform,\n plugins: getPlugins,\n canvas: getCanvasFingerprint,\n touchSupport: getTouchSupport,\n vendor: getVendor,\n vendorFlavors: getVendorFlavors,\n cookiesEnabled: areCookiesEnabled,\n colorGamut: getColorGamut,\n invertedColors: areColorsInverted,\n forcedColors: areColorsForced,\n monochrome: getMonochromeDepth,\n contrast: getContrastPreference,\n reducedMotion: isMotionReduced,\n hdr: isHDR,\n math: getMathFingerprint,\n videoCard: getVideoCard,\n pdfViewerEnabled: isPdfViewerEnabled,\n architecture: getArchitecture,\n};\n/**\n * Loads the built-in entropy sources.\n * Returns a function that collects the entropy components to make the visitor identifier.\n */\nfunction loadBuiltinSources(options) {\n return loadSources(sources, options, []);\n}\n\nvar commentTemplate = '$ if upgrade to Pro: https://fpjs.dev/pro';\nfunction getConfidence(components) {\n var openConfidenceScore = getOpenConfidenceScore(components);\n var proConfidenceScore = deriveProConfidenceScore(openConfidenceScore);\n return { score: openConfidenceScore, comment: commentTemplate.replace(/\\$/g, \"\".concat(proConfidenceScore)) };\n}\nfunction getOpenConfidenceScore(components) {\n // In order to calculate the true probability of the visitor identifier being correct, we need to know the number of\n // website visitors (the higher the number, the less the probability because the fingerprint entropy is limited).\n // JS agent doesn't know the number of visitors, so we can only do an approximate assessment.\n if (isAndroid()) {\n return 0.4;\n }\n // Safari (mobile and desktop)\n if (isWebKit()) {\n return isDesktopSafari() ? 0.5 : 0.3;\n }\n var platform = components.platform.value || '';\n // Windows\n if (/^Win/.test(platform)) {\n // The score is greater than on macOS because of the higher variety of devices running Windows.\n // Chrome provides more entropy than Firefox according too\n // https://netmarketshare.com/browser-market-share.aspx?options=%7B%22filter%22%3A%7B%22%24and%22%3A%5B%7B%22platform%22%3A%7B%22%24in%22%3A%5B%22Windows%22%5D%7D%7D%5D%7D%2C%22dateLabel%22%3A%22Trend%22%2C%22attributes%22%3A%22share%22%2C%22group%22%3A%22browser%22%2C%22sort%22%3A%7B%22share%22%3A-1%7D%2C%22id%22%3A%22browsersDesktop%22%2C%22dateInterval%22%3A%22Monthly%22%2C%22dateStart%22%3A%222019-11%22%2C%22dateEnd%22%3A%222020-10%22%2C%22segments%22%3A%22-1000%22%7D\n // So we assign the same score to them.\n return 0.6;\n }\n // macOS\n if (/^Mac/.test(platform)) {\n // Chrome provides more entropy than Safari and Safari provides more entropy than Firefox.\n // Chrome is more popular than Safari and Safari is more popular than Firefox according to\n // https://netmarketshare.com/browser-market-share.aspx?options=%7B%22filter%22%3A%7B%22%24and%22%3A%5B%7B%22platform%22%3A%7B%22%24in%22%3A%5B%22Mac%20OS%22%5D%7D%7D%5D%7D%2C%22dateLabel%22%3A%22Trend%22%2C%22attributes%22%3A%22share%22%2C%22group%22%3A%22browser%22%2C%22sort%22%3A%7B%22share%22%3A-1%7D%2C%22id%22%3A%22browsersDesktop%22%2C%22dateInterval%22%3A%22Monthly%22%2C%22dateStart%22%3A%222019-11%22%2C%22dateEnd%22%3A%222020-10%22%2C%22segments%22%3A%22-1000%22%7D\n // So we assign the same score to them.\n return 0.5;\n }\n // Another platform, e.g. a desktop Linux. It's rare, so it should be pretty unique.\n return 0.7;\n}\nfunction deriveProConfidenceScore(openConfidenceScore) {\n return round(0.99 + 0.01 * openConfidenceScore, 0.0001);\n}\n\nfunction componentsToCanonicalString(components) {\n var result = '';\n for (var _i = 0, _a = Object.keys(components).sort(); _i < _a.length; _i++) {\n var componentKey = _a[_i];\n var component = components[componentKey];\n var value = component.error ? 'error' : JSON.stringify(component.value);\n result += \"\".concat(result ? '|' : '').concat(componentKey.replace(/([:|\\\\])/g, '\\\\$1'), \":\").concat(value);\n }\n return result;\n}\nfunction componentsToDebugString(components) {\n return JSON.stringify(components, function (_key, value) {\n if (value instanceof Error) {\n return errorToObject(value);\n }\n return value;\n }, 2);\n}\nfunction hashComponents(components) {\n return x64hash128(componentsToCanonicalString(components));\n}\n/**\n * Makes a GetResult implementation that calculates the visitor id hash on demand.\n * Designed for optimisation.\n */\nfunction makeLazyGetResult(components) {\n var visitorIdCache;\n // This function runs very fast, so there is no need to make it lazy\n var confidence = getConfidence(components);\n // A plain class isn't used because its getters and setters aren't enumerable.\n return {\n get visitorId() {\n if (visitorIdCache === undefined) {\n visitorIdCache = hashComponents(this.components);\n }\n return visitorIdCache;\n },\n set visitorId(visitorId) {\n visitorIdCache = visitorId;\n },\n confidence: confidence,\n components: components,\n version: version,\n };\n}\n/**\n * A delay is required to ensure consistent entropy components.\n * See https://github.com/fingerprintjs/fingerprintjs/issues/254\n * and https://github.com/fingerprintjs/fingerprintjs/issues/307\n * and https://github.com/fingerprintjs/fingerprintjs/commit/945633e7c5f67ae38eb0fea37349712f0e669b18\n */\nfunction prepareForSources(delayFallback) {\n if (delayFallback === void 0) { delayFallback = 50; }\n // A proper deadline is unknown. Let it be twice the fallback timeout so that both cases have the same average time.\n return requestIdleCallbackIfAvailable(delayFallback, delayFallback * 2);\n}\n/**\n * The function isn't exported from the index file to not allow to call it without `load()`.\n * The hiding gives more freedom for future non-breaking updates.\n *\n * A factory function is used instead of a class to shorten the attribute names in the minified code.\n * Native private class fields could've been used, but TypeScript doesn't allow them with `\"target\": \"es5\"`.\n */\nfunction makeAgent(getComponents, debug) {\n var creationTime = Date.now();\n return {\n get: function (options) {\n return __awaiter(this, void 0, void 0, function () {\n var startTime, components, result;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n startTime = Date.now();\n return [4 /*yield*/, getComponents()];\n case 1:\n components = _a.sent();\n result = makeLazyGetResult(components);\n if (debug || (options === null || options === void 0 ? void 0 : options.debug)) {\n // console.log is ok here because it's under a debug clause\n // eslint-disable-next-line no-console\n console.log(\"Copy the text below to get the debug data:\\n\\n```\\nversion: \".concat(result.version, \"\\nuserAgent: \").concat(navigator.userAgent, \"\\ntimeBetweenLoadAndGet: \").concat(startTime - creationTime, \"\\nvisitorId: \").concat(result.visitorId, \"\\ncomponents: \").concat(componentsToDebugString(components), \"\\n```\"));\n }\n return [2 /*return*/, result];\n }\n });\n });\n },\n };\n}\n/**\n * Sends an unpersonalized AJAX request to collect installation statistics\n */\nfunction monitor() {\n // The FingerprintJS CDN (https://github.com/fingerprintjs/cdn) replaces `window.__fpjs_d_m` with `true`\n if (window.__fpjs_d_m || Math.random() >= 0.001) {\n return;\n }\n try {\n var request = new XMLHttpRequest();\n request.open('get', \"https://m1.openfpcdn.io/fingerprintjs/v\".concat(version, \"/npm-monitoring\"), true);\n request.send();\n }\n catch (error) {\n // console.error is ok here because it's an unexpected error handler\n // eslint-disable-next-line no-console\n console.error(error);\n }\n}\n/**\n * Builds an instance of Agent and waits a delay required for a proper operation.\n */\nfunction load(_a) {\n var _b = _a === void 0 ? {} : _a, delayFallback = _b.delayFallback, debug = _b.debug, _c = _b.monitoring, monitoring = _c === void 0 ? true : _c;\n return __awaiter(this, void 0, void 0, function () {\n var getComponents;\n return __generator(this, function (_d) {\n switch (_d.label) {\n case 0:\n if (monitoring) {\n monitor();\n }\n return [4 /*yield*/, prepareForSources(delayFallback)];\n case 1:\n _d.sent();\n getComponents = loadBuiltinSources({ debug: debug });\n return [2 /*return*/, makeAgent(getComponents, debug)];\n }\n });\n });\n}\n\n// The default export is a syntax sugar (`import * as FP from '...' 鈫� import FP from '...'`).\n// It should contain all the public exported values.\nvar index = { load: load, hashComponents: hashComponents, componentsToDebugString: componentsToDebugString };\n// The exports below are for private usage. They may change unexpectedly. Use them at your own risk.\n/** Not documented, out of Semantic Versioning, usage is at your own risk */\nvar murmurX64Hash128 = x64hash128;\n\nexport { componentsToDebugString, index as default, getFullscreenElement, getScreenFrame, hashComponents, isAndroid, isChromium, isDesktopSafari, isEdgeHTML, isGecko, isTrident, isWebKit, load, loadSources, murmurX64Hash128, prepareForSources, sources, transformSource, withIframe };\n","import { MeterInstance } from './instance.js';\r\nimport FingerprintJS from '@fingerprintjs/fingerprintjs';\r\n\r\n// Setup debug logging facility\r\n\r\nlet debug = () => {};\r\n\r\n/**\r\n * Meter Manager\r\n *\r\n * This class provides a mechanism for handling meters using a the server for\r\n * storing the actual meter data. The storage of meters does not use cookies\r\n * for the data but instead relies on device identifiers stored in local storage\r\n * and from device fingerprinting. The fingerprint of the device is not used\r\n * for anything but to make the meter behave in a cookieless fashion.\r\n *\r\n * Meters in this model are stored in various ways locally in case the server\r\n * becomes decynced or the user somehow defeats fingerprinting. In this fall\r\n * back scenario, a local identifier becomes the key of the communication path.\r\n * For local storage to work, it must be run in a first party context as ITP\r\n * in Safari will otherwise block storage access.\r\n */\r\nexport class MeterManager\r\n{\r\n\t/**\r\n\t * If enabled, meters will be fetched and synced back to the server\r\n\t * @type {boolean}\r\n\t */\r\n\t#bSync = true;\r\n\r\n\t/**\r\n\t * If debug mode should be enabled for logging purposes\r\n\t * @type {boolean}\r\n\t */\t\r\n\t#bDebug = false;\r\n\t\r\n\t/**\r\n\t * The remote web site host that is used to perform syncronization\r\n\t * @type {string}\r\n\t */\r\n\t#sHost;\r\n\t\r\n /**\r\n * Meter instances\r\n * @type {Object}\r\n */\t\r\n\t#oMeters = {};\r\n\t\r\n\t/**\r\n\t * Device Identifier from fingerprinting process\r\n * @type {string}\r\n\t */\r\n\t#sDeviceID;\r\n\t\r\n\t/**\r\n\t * The instance ID that is universally unique. This ID is prefered to the\r\n * device ID as it is pretty much guaranteed to be unqiue but can be wiped\r\n * by the user\r\n * @type {string}\r\n\t */\r\n\t#sInstanceID;\r\n\r\n /**\r\n * Assets that have be captured and stored as previously viewed assets\r\n * @type {Array}\r\n */\t\r\n\t#aAssets = [];\r\n\r\n\t/**\r\n\t * The promise made from the sync operation in the constructor\r\n\t * @type {Promise}\r\n\t */\t\r\n\t#oSyncPromise;\r\n\r\n /**\r\n * Constructor\r\n *\r\n * @param {Object} oParams\r\n * Configuration options to initialize the instance\r\n */\r\n\tconstructor(oParams = {})\r\n\t{\r\n\t\tthis.#sHost = oParams.host ?? null;\r\n\t\tthis.#bSync = oParams.sync ?? false;\r\n\t\tthis.#bDebug = oParams.debug ?? false;\r\n\t\t\r\n\t\t// Modify the debug function to be enabled\r\n\t\t\r\n\t\tif (this.#bDebug && window?.console?.debug) {\r\n\t\t\tdebug = console.debug.bind(window.console);\r\n\t\t}\r\n\t\t\r\n\t\tif ( oParams.meters ) {\r\n\r\n\t\t\t// Initialize meters potentially based on legacy cookies if set\r\n\t\t\t\r\n\t\t\tfor ( const oMeter of oParams.meters ) {\t\t\t\t\r\n\t\t\t\tthis.#oMeters[oMeter.id] = new MeterInstance(oMeter.id);\r\n\t\t\t\tif ( oMeter.expire_days ) {\r\n\t\t\t\t\tthis.#oMeters[oMeter.id].setExpireDays(oMeter.expire_days);\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\r\n\t\tdebug('Loading list of already viewed assets');\r\n\r\n\t\tlet sAssets = sessionStorage.getItem('tncms:meter:assets');\r\n\t\tif (sAssets) {\r\n\t\t\tthis.#aAssets = JSON.parse(sAssets) || [];\r\n\t\t}\r\n\t\t\r\n\t\t// Load the local cache when possible\r\n\t\t\r\n\t\tif ( !this.#loadCache() ) {\r\n\t\t\tthis.#oSyncPromise = this.#syncMeters();\r\n\t\t}\r\n\t}\r\n\r\n\t/**\r\n\t * Make sure all meters are loaded first before processing\r\n\t *\r\n\t * @return {Promise}\r\n\t * Returns true when the syncronization is completed\r\n\t */\t\r\n\tasync ready()\r\n\t{\r\n\t\tif (this.#oSyncPromise) {\r\n\t\t\tawait this.#oSyncPromise;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Loads locally cached meter data\r\n *\r\n * Meter cache is only good for the session - each session will load the\r\n * meters from the server.\r\n\t */\r\n\t#loadCache()\r\n\t{\r\n\t\tif ( !this.#bSync ) {\r\n\t\t\tdebug('Meter cache not loaded: syncronization disabled');\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tconst sCacheID = 'access-' + this.#instanceId;\r\n\t\t\r\n\t\tdebug('Checking to see if a meter cache is available');\r\n\t\t\r\n\t\tlet sData = sessionStorage.getItem(sCacheID);\r\n\t\tif ( sData ) {\r\n\t\t\t\r\n\t\t\tdebug('Meter cache detected - unpacking');\r\n\t\t\t\r\n\t\t\tconst oData = JSON.parse(sData);\r\n\t\t\tconst oNow = new Date();\r\n\t\t\t\r\n\t\t\tdebug('Initializing meters using the meter cache');\r\n\t\t\t\r\n\t\t\tfor ( const [sID, oMeter] of Object.entries(oData.meters) ) {\r\n\t\t\t\t\r\n\t\t\t\tif (oMeter.views <= 0) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlet oExpires = new Date(oMeter.expires);\r\n\t\t\t\tif (oExpires.getTime() >= oNow.getTime()) {\r\n\t\t\t\t\tthis.#setViews(sID, oMeter.views);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdebug(`Meter cache for ${sID} skipped - expired`);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.#sDeviceID = oData.deviceId ?? null;\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\tdebug('No meter cache was found');\r\n\t\t\r\n\t\treturn false;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Dynamically determine the meter ID\r\n\t */\r\n\tasync #detectDeviceID()\r\n\t{\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tdebug('Detecting device identifier');\r\n\t\t\t\r\n\t\t\tconst oFP = await FingerprintJS.load();\r\n\t\t\tconst oResult = await oFP.get();\r\n\t\t\t\r\n\t\t\tdebug('Device identified as: ' + oResult.visitorId);\r\n\t\t\t\t\r\n\t\t\treturn oResult.visitorId;\r\n\t\t\t\r\n\t\t} catch (oError) {\r\n\t\t\t\r\n\t\t\tconsole.error('Failed to identify device', oError);\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\r\n /**\r\n * Retrieve the device ID that was detected\r\n *\r\n * @param {string}\r\n * Retrieve the device ID of the system\r\n */\t\r\n\tget #deviceId()\r\n\t{\r\n\t\treturn this.#sDeviceID;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Get the instance ID\r\n *\r\n * @return {string}\r\n * The instance ID assigned to the object\r\n\t */\r\n\tget #instanceId()\r\n\t{\r\n\t\tif ( ! this.#sInstanceID ) {\r\n\t\t\t\r\n\t\t\tthis.#sInstanceID = localStorage.getItem('tncms:access:iid');\r\n\t\t\tif ( ! this.#sInstanceID ) {\r\n\t\t\t\tthis.#instanceId = this.#generateUUID();\r\n\t\t\t\tdebug('Generated new instance ID: %s', this.#sInstanceID);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn this.#sInstanceID;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Set the instance ID of the meter\r\n *\r\n * @param {string} sID\r\n * The instance ID to set the manager too\r\n\t */\r\n\tset #instanceId(sID)\r\n\t{\r\n\t\tthis.#sInstanceID = sID;\r\n\t\tlocalStorage.setItem('tncms:access:iid', sID);\r\n\t}\r\n\t\r\n\t/**\r\n\t * Generate a random V4 UUID\r\n *\r\n\t * Blatantly copied from Stackoverflow post:\r\n *\r\n * https://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid\r\n * \r\n * @return {string}\r\n * A randomly generated v4 UUID. Note that this ID is not cryptographically\r\n * secure and is for use as a secondary identifier only\r\n\t */\r\n\t#generateUUID()\r\n\t{\r\n\t\treturn 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {\r\n\t\t\tlet r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);\r\n\t\t\treturn v.toString(16);\r\n\t\t});\r\n\t}\r\n\t\r\n\t/**\r\n\t * Syncronize meters with the server and local cache\r\n *\r\n * This method will syncronize the server meters to the local cache and the\r\n * in-memory state. This should be called to initialize the local cache if\r\n * not found and to also notify the sever if meter counts need to be updated\r\n * with changes.\r\n\t */\r\n\tasync #syncMeters()\r\n\t{\r\n\t\tif ( !this.#bSync) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif ( ! this.#sDeviceID ) {\r\n\t\t\tthis.#sDeviceID = await this.#detectDeviceID();\r\n\t\t}\r\n\t\t\r\n\t\t// Fetch the meter state. Note that for the moment credentials are\r\n\t\t// passed along to migrate the legacy cookies that are being used.\r\n\t\t\r\n\t\tdebug('Exchanging meter metrics with server');\r\n\t\t\r\n\t\tconst oResp = await fetch(`https://${this.#sHost}/tncms/access/meter/`, {\r\n\t\t\tmethod: 'POST',\r\n\t\t\tcredentials: 'include',\r\n\t\t\tbody: JSON.stringify(this)\r\n\t\t});\r\n\t\t\r\n\t\tconst oResult = await oResp.json();\r\n\t\t\r\n\t\tif (!oResp.ok || oResult?.code ) {\r\n\t\t\tthrow new Error('Failed to sync meters: ' + oResult?.message);\r\n\t\t}\r\n\t\r\n\t\t// Based on the server state, syncronize the meters on the client. This\r\n\t\t\r\n\t\tif (oResult.meters) {\r\n\t\t\t\r\n\t\t\tdebug('Updating local meters based on server state')\r\n\t\t\t\r\n\t\t\tfor ( const [sID, nViews] of Object.entries(oResult.meters) ) {\r\n\t\t\t\t\r\n\t\t\t\tthis.#setViews(sID, nViews);\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Local cache storage of meter data to avoid calling the server\r\n\t\t// unless the meter state changes for the remainder of the session\r\n\t\t\r\n\t\tdebug('Updating local meter cache');\r\n\t\t\r\n\t\tsessionStorage.setItem('access-' + this.#instanceId, JSON.stringify({\r\n\t\t\tdeviceId: this.#deviceId,\r\n\t\t\tmeters: this.#oMeters\r\n\t\t}));\r\n\t\t\r\n\t\tconsole.debug('Sycnronization complete');\r\n\t\t\r\n\t}\r\n\t\r\n\t/**\r\n\t * Check if the provided meter ID is valid\r\n * \r\n * This method should be used to discard access meter methods if invalid and\r\n * to also treat criteria referencing said meter as being hit. This is a\r\n * fraud prevention mechanism as tampering or blocking end-points should\r\n * be treated as effectively a hard wall.\r\n *\r\n * @return {boolean}\r\n * Returns true if the meter is a valid ID\r\n\t */\r\n\tisValidMeter(sID)\r\n\t{\r\n\t\treturn typeof this.#oMeters[sID] === 'Meter';\r\n\t}\r\n\r\n /**\r\n * Retrieve the current meter count of a meter\r\n *\r\n * @param {string} sID\r\n * The ID of the meter to resolve\r\n *\r\n * @return {number}\r\n * The current number of views consumed\r\n */\t\r\n\tgetViews(sID)\r\n\t{\t\t\r\n\t\tif (this.#oMeters[sID]) {\r\n\t\t\treturn this.#oMeters[sID].views;\r\n\t\t}\r\n\r\n\t\tthrow new Error('No such meter: ' + sID);\r\n\t}\r\n\t\r\n\t/**\r\n\t * Set or create a meter instance\r\n *\r\n * @param {string} sID\r\n * The ID of the meter to set\r\n *\r\n * @param {number} nViews\r\n * The number of views to save to the meter\r\n\t */\r\n\t#setViews(sID, nViews)\r\n\t{\r\n\t\tif ( this.#oMeters[sID] ) {\r\n\t\t\t\r\n\t\t\tif (nViews > this.#oMeters[sID].views) {\r\n\t\t\t\tthis.#oMeters[sID].views = nViews;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tthis.#oMeters[sID] = new MeterInstance(sID, nViews);\r\n\t\t\t\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * Increment provided meteres by one and optionally sync\r\n *\r\n * @param {array} aMeters\r\n * An array of meter ID values to syncronize. If none of the meters are\r\n * valid, syncronization will automatically be aborted.\r\n\t */\r\n\tupdateMeters(aMeters = [])\r\n\t{\r\n\t\tlet bChanged = false;\r\n\t\t\r\n\t\t// Increment the meters provided in the array first\r\n\t\t\r\n\t\tfor ( const sID of aMeters ) {\r\n\t\t\tif (this.#oMeters[sID]) {\r\n\t\t\t\tthis.#oMeters[sID].increment();\r\n\t\t\t\tbChanged = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (bChanged === false) {\r\n\t\t\tdebug('No meters were changed - sync cancelled');\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Notify the server of the changed meter state\r\n\t\t\r\n\t\tthis.#syncMeters();\r\n\t}\r\n\t\r\n\t/**\r\n\t * Check if the asset has been viewed before\r\n *\r\n * @return {boolean}\r\n * Returns true if the asset has been previously viewed or false otherwise\r\n *\r\n * @param {string} sID\r\n * The asset ID to verify has already been stored before\r\n\t */\r\n\tinAssetList(sID)\r\n\t{\r\n\t\treturn this.#aAssets.find(oEl => oEl === sID) !== undefined;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Save an asset to the list of previously viewed assets\r\n *\r\n * @param {string} sID\r\n * The ID of the asset to store in the list\r\n\t */\r\n\tsaveAssetToList(sID)\r\n\t{\r\n\t\tthis.#aAssets.push(sID);\r\n\t\tsessionStorage.setItem(\r\n\t\t\t'tncms:meter:assets',\r\n\t\t\tJSON.stringify(this.#aAssets)\r\n\t\t); \t\r\n\t}\r\n\t\r\n\t/**\r\n\t * Produce the JSON payload for passing to the meter end-point\r\n *\r\n * @return {Object}\r\n * The payload that will be converted to JSON\r\n\t */\r\n\ttoJSON()\r\n\t{\r\n\t\treturn {\r\n\t\t\tidentifiers: {\r\n\t\t\t\tdeviceId: this.#deviceId,\r\n\t\t\t\tinstanceId: this.#instanceId\r\n\t\t\t},\r\n\t\t\tmeters: this.#oMeters\r\n\t\t}\r\n\t}\r\n\t\r\n}\r\n","import { detectAnyAdblocker } from 'just-detect-adblock';\r\nimport { MeterManager } from './meter/manager.js';\r\nimport { detectIncognito } from \"detectincognitojs\";\r\n\r\nwindow.TNCMS = window.TNCMS || {};\r\nvar aCallbacks = window.TNCMS.Access || [];\r\n\r\n/* {{{ Initializer: TNCMS.Access */\r\n\r\n/**\r\n * Client side access checks\r\n * \r\n */\r\nwindow.TNCMS.Access = (function() {\r\n\t\r\n\t/* {{{ Properties */\r\n\r\n\tvar aMultivariateOfferIds = [];\r\n\tvar oSelectOfferGroup;\r\n\t\r\n\t/**\r\n\t * Holds the configuration data (rule Id/offer Id)\r\n\t * for multivariate rule\r\n\t * @type {Object}\r\n\t */\r\n\tlet oOfferConfigData = {};\r\n\r\n\t/*\r\n\t* If ad blocking detection is needed by a rule - this will be the cached\r\n\t* detected value for any further rule evaluation\r\n\t* @type {boolean}\r\n\t*/\t\r\n\tlet bAdBlock = null;\r\n\r\n\t/**\r\n\t * If incognito detection is needed by a rule - then this will be the cached\r\n\t * detected value for any further rule evaluation\r\n\t */\r\n\tlet bIncognito = null;\r\n\r\n\t/**\r\n\t * Meter manager if being used for handling the meter\r\n\t * @type {MeterManager}\r\n\t */\t\r\n\tlet oMeterMgr;\r\n\t\r\n\t/**\r\n\t * The last access response state that was determined for the current user\r\n * of the site\r\n * @type {Object}\r\n\t */\r\n\tlet oAccessState = null;\r\n\t\r\n\tvar aRules = null,\r\n\t\toOffers = null,\r\n\t\taMeters = null,\r\n\t\tbLoaded = false,\r\n\t\taAudiences = null,\r\n\t\taRequiresClient = null,\r\n\t\t// Criteria that does not change coming from the page meta tags\r\n\t\t// includes things such as asset type\r\n\t\tkPageCriteriaIDs = {},\r\n\t\t// Criteria based on the current user that may change if an action\r\n\t\t// such as login occurs in an XHR request\r\n\t\tkCriteriaIDs = {},\r\n\t\taAccessIDs = [],\r\n\t\tsAssetID = '',\r\n\t\tsAssetApp = '',\r\n\t\tonSuccess = null,\r\n\t\tonFailure = null,\r\n\t\tsRuleVersion = '',\r\n\t\t// Properties used in external mode\r\n\t\tbIsExternal = false,\r\n\t\tsExternalURL = '',\r\n\t\tsExternalReferrer = null,\r\n\t\taMetaTags = [],\r\n\t\t// Admin preview test profile\r\n\t\toProfile = {};\r\n\t\r\n\t/* }}} */\r\n\t/* {{{ handleError( oData ) */\r\n\t\r\n\tfunction handleError( oData ) {\r\n\t\tvar oErr = {\r\n\t\t\tsuccess: false,\r\n\t\t\tmsg: oData.msg || 'Unknown error occurred',\r\n\t\t\txhrStatus: oData.status || '',\r\n\t\t\txhrStatusText: oData.statusText || ''\t\t\t\t\r\n\t\t};\r\n\t\t\r\n\t\tverbose('Error: ', oErr);\r\n\t\t\r\n\t\tif ( typeof onFailure == 'function' ) {\r\n\t\t\tonFailure.call(this, oErr);\r\n\t\t}\r\n\t};\r\n\t\r\n\t/* }}} */\r\n\t/* {{{ verbose( sMsg ) */\r\n\t\r\n\tfunction verbose( sMsg, oData ) {\r\n\t\tif ( ! console ) return;\r\n\t\t\r\n\t\tif ( typeof oData != 'undefined' ) {\r\n\t\t\tconsole.debug('TNCMS.Access: ' + sMsg, oData);\r\n\t\t} else {\r\n\t\t\tconsole.debug('TNCMS.Access: ' + sMsg);\r\n\t\t}\t\t\r\n\t};\r\n\t\r\n\t/* }}} */\r\n\t/* {{{ getMetaValue( sField ) */\r\n\t\r\n\tfunction getMetaValue( sField ) {\r\n\t\tlet oNodes = document.getElementsByName(sField);\r\n\t\treturn oNodes.item(0)?.content ?? '';\r\n\t};\r\n\t\r\n\t/* }}} */\r\n\t\r\n\t\r\n\t// This is loaded immediately so other functions using it have access\r\n\t// with out the need to call init()\r\n\t\r\n\tsRuleVersion = getMetaValue('tncms-access-version');\r\n\t\r\n\t/* {{{ init() */\r\n\t\r\n\t/**\r\n\t* Initializes the access control functionality by extracting relevant metadata from the page, loading the access rules, and processing them.\r\n\t* \r\n\t* This function is responsible for the following tasks:\r\n\t* 1. Extracting the asset ID and app from the page metadata, if not already set.\r\n\t* 2. Extracting the page criteria IDs from the page metadata.\r\n\t* 3. Extracting the rule version from the page metadata.\r\n\t* 4. If the access rules have already been loaded, processing them immediately.\r\n\t* 5. If the access rules have not been loaded, calling the `loadRules()` function to fetch them.\r\n\t*/\r\n\tasync function init() {\r\n\r\n\t// Extract asset ID and app if in preview\r\n\t// Asset ID may have been initialized via external meta tags\r\n\tif (!sAssetID) {\r\n\tsAssetID = getMetaValue('tncms-access-asset-id');\r\n\tverbose('Asset ID', sAssetID);\r\n\t}\r\n\r\n\tsAssetApp = getMetaValue('tncms-access-asset-app');\r\n\tverbose('Asset app', sAssetApp);\r\n\r\n\t// Extract criteria IDs\r\n\r\n\tlet sCriteria = getMetaValue('tncms-access-criteria');\r\n\tif (sCriteria) {\r\n\tkPageCriteriaIDs = JSON.parse(sCriteria);\r\n\t}\r\n\r\n\tverbose('Page criteria IDs', kPageCriteriaIDs);\r\n\r\n\t// Extact rule version\r\n\r\n\tsRuleVersion = getMetaValue('tncms-access-version');\r\n\tverbose('Rule version', sRuleVersion);\r\n\r\n\tif (aRules !== null) {\r\n\r\n\tprocessRules.call(this);\r\n\treturn;\r\n\t}\r\n\r\n\tloadRules.call(this);\r\n\t};\r\n\r\n\t\r\n\r\n\t/* }}} */\r\n\t/* {{{ loadRules() */\r\n\t\r\n\t/**\r\n\t * Call out to the system to gather all enabled\r\n\t * rules and other metadata to fulfill the access check.\r\n\t * \r\n\t */\r\n\tfunction loadRules() {\t\t\t\r\n\t\tvar oRequest = new Request({\r\n\t\t\turl: 'rules/',\r\n\t\t\theaders: [{ name: 'X-TNCMS-Access-Version', value: sRuleVersion}],\r\n\t\t\tsuccess: function ( oResp ) {\r\n\t\t\t\tvar oData = JSON.parse(oResp.responseText);\r\n\t\t\t\tif ( oData.success == false ) {\r\n\t\t\t\t\thandleError(oData);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\taRules = oData.rules;\r\n\t\t\t\taMeters = oData.meters || [];\r\n\t\t\t\taRequiresClient = oData.requires_client || [];\r\n\t\t\t\toOffers = oData.offers || {};\r\n\t\t\t\t\r\n\t\t\t\toMeterMgr = new MeterManager({\r\n\t\t\t\t\thost: document.location.hostname,\r\n\t\t\t\t\tmeters: aMeters,\r\n\t\t\t\t\tsync: window.tncms_access_control_sync ?? false,\r\n\t\t\t\t\tdebug: true\r\n\t\t\t\t});\r\n\r\n\t\t\t\tif (Array.isArray(aRules) && aRules.length > 0) {\r\n\t\t\t\t\tfor (let i = 0; i < aRules.length; i++) {\r\n\t\t\t\t\t\tconst rule = aRules[i];\r\n\t\t\t\t\t\tif (rule.enable_multivariate) {\r\n\t\t\t\t\t\t\taMultivariateOfferIds.push({ [rule.id]: rule.offer_config })\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tverbose('Rules loaded', aRules);\r\n\t\t\t\tverbose('Offers loaded', oOffers);\r\n\t\t\t\t\r\n\t\t\t\tloadUser.call(this);\r\n\t\t\t},\r\n\t\t\tfailure: handleError,\r\n\t\t\tscope: this\r\n\t\t});\r\n\t\t\r\n\t\toRequest.send();\r\n\t};\r\n\t\r\n\t/* }}} */\t\r\n\t/* {{{ loadUser( oParams ) */\r\n\t\r\n\tfunction loadUser( oParams ) {\r\n\t\tvar aCookies = decodeURIComponent(document.cookie).split(';'),\r\n\t\t\toMatch = null,\r\n\t\t\tn = 0,\r\n\t\t\taHeaders = [],\r\n\t\t\tsUser = 'anonymous';\r\n\t\t\r\n\t\tfor ( n; n < aCookies.length; n++ ) {\r\n\t\t\toMatch = aCookies[n].match(/tncms-screenname=(.+)$/i);\r\n\t\t\tif ( oMatch\r\n\t\t\t\t// Make sure they're actually logged in\r\n\t\t\t\t&& document.cookie.indexOf('tncms-authtoken') > -1\r\n\t\t\t) {\r\n\t\t\t\tsUser = 'loggedin-' + oMatch[1];\r\n\t\t\t}\r\n\t\t\toMatch = aCookies[n].match(/tncms-access-user-version=(.+)/i);\r\n\t\t\tif ( oMatch ) {\r\n\t\t\t\taHeaders.push({ name: 'X-TNCMS-Access-User-Version', value: oMatch[1] });\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\taHeaders.push({ name: 'X-TNCMS-Access-User', value: sUser});\r\n\t\t\r\n\t\tvar oParams = false;\r\n\t\tif ( sAssetID && sAssetApp \r\n\t\t\t&& document.location.pathname.match(\r\n\t\t\t\t/\\/(.+?)\\/tncms\\/admin\\/action\\/main\\/preview\\/site\\//\r\n\t\t\t)\r\n\t\t) {\r\n\t\t\toParams = {\r\n\t\t\t\tasset_id: sAssetID,\r\n\t\t\t\tasset_app: sAssetApp\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\t// Look for sessionStorage data only in preview mode\r\n\t\t\t\r\n\t\t\tif ( sessionStorage.getItem('accessProfile') ) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\toProfile = JSON.parse(sessionStorage.getItem('accessProfile'));\r\n\t\t\t\t\tverbose('Using test profile', oProfile);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Profile ID is included for XHR request to /user \r\n\t\t\t\t\t// so it can test against profile data associated to ID.\r\n\t\t\t\t\toParams.profile = oProfile.id;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Set default ad blocking mode if configured or force to\r\n\t\t\t\t\t// undefined so it will auto-detect\r\n\t\t\t\t\tbAdBlock = oProfile?.adblock ?? undefined;\r\n\t\t\t\t\t\r\n\t\t\t\t\tlet sKey = '',\r\n\t\t\t\t\t\tnCount = 0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor ( sKey in oProfile ) {\r\n\t\t\t\t\t\tif ( ! oProfile.hasOwnProperty(sKey) ) continue;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t/* TODO: Use server-side to control this */\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\toMatch = sKey.match(/meter_(.+)$/i);\r\n\t\t\t\t\t\tif ( oMatch && ! oProfile.initialized ) {\r\n\t\t\t\t\t\t\t// set meter to defined number or 0\r\n\t\t\t\t\t\t\tnCount = parseInt(oProfile[sKey], 10) || 0;\r\n\t\t\t\t\t\t\tsetMeterCount('tncms:meter:assets' + oMatch[1], nCount);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ( sKey == 'dmp' ) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tlet aProfileAud = JSON.parse(oProfile[sKey]);\r\n\t\t\t\t\t\t\t\taAudiences = [];\r\n\t\t\t\t\t\t\t\tfor ( let n = 0; n < aProfileAud.length; n++ ) {\r\n\t\t\t\t\t\t\t\t\taAudiences.push(aProfileAud[n].abbr);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tverbose('Using profile audiences', aAudiences);\r\n\t\t\t\t\t\t\t} catch ( oExc ) {\r\n\t\t\t\t\t\t\t\tverbose('Failed to parse profile audiences', oExc);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tverbose('Meters set to profile configuration');\r\n\t\t\t\t\toProfile.initialized = true;\r\n\t\t\t\t\tsessionStorage.setItem('accessProfile', JSON.stringify(oProfile));\r\n\t\t\t\t\t\r\n\t\t\t\t} catch ( oExc ) {\r\n\t\t\t\t\tverbose('Failed to parse test profile', oExt);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t/**\r\n\t\t* Processes multivariate offer IDs and adds the offer group names and IDs to the request parameters.\r\n\t\t* If the `aMultivariateOfferIds` array is not empty, it maps over the array to extract the offer group names and IDs,\r\n\t\t* and adds them to the `oParams` object under the `multivariate_data` property.\r\n\t\t*/\r\n\t\tif (Array.isArray(aMultivariateOfferIds) && aMultivariateOfferIds.length > 0) {\r\n\t\t\tconst aOfferGroupNameIds = aMultivariateOfferIds.map(item => {\r\n\t\t\t\tconst result = {};\r\n\t\t\t\tfor (const key in item) {\r\n\t\t\t\t\tresult[key] = {};\r\n\t\t\t\t\tfor (const groupKey in item[key]) {\r\n\t\t\t\t\t\tif (groupKey.startsWith(\"offer_group\")) {\r\n\t\t\t\t\t\t\tresult[key][groupKey] = {\r\n\t\t\t\t\t\t\t\tid: item[key][groupKey].id,\r\n\t\t\t\t\t\t\t\tname: item[key][groupKey].name\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn result;\r\n\t\t\t});\r\n\t\t\tif (oParams === false) {\r\n\t\t\t\toParams = { multivariate_data: JSON.stringify(aOfferGroupNameIds) };\r\n\t\t\t} else {\r\n\t\t\t\toParams.multivariate_data = JSON.stringify(aOfferGroupNameIds);\r\n\t\t\t}\r\n\t\t}\r\n\t\tvar oRequest = new Request({\r\n\t\t\turl: 'user/',\r\n\t\t\theaders: aHeaders,\r\n\t\t\tparams: oParams,\r\n\t\t\tsuccess: function ( oResp ) {\t\t\t\t\t\r\n\t\t\t\tvar oData = JSON.parse(oResp.responseText);\t\t\t\t\r\n\t\t\t\tif ( oData.success == false ) {\r\n\t\t\t\t\thandleError(oData);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t\tif ( oData.access_ids && oData.access_ids.length ) {\r\n\t\t\t\t\taAccessIDs = aAccessIDs.concat(oData.access_ids);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tkCriteriaIDs = kPageCriteriaIDs;\r\n\t\t\t\tif ( oData.criteria_ids ) {\t\t\t\t\t\r\n\t\t\t\t\tfor ( let sRuleID in oData.criteria_ids ) {\r\n\t\t\t\t\t\tif ( ! kCriteriaIDs[sRuleID] ) {\r\n\t\t\t\t\t\t\tkCriteriaIDs[sRuleID] = [];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tkCriteriaIDs[sRuleID] = kCriteriaIDs[sRuleID].concat(oData.criteria_ids[sRuleID]); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(oData.multivariate_selected_offer_group){\r\n\t\t\t\t\toSelectOfferGroup = oData.multivariate_selected_offer_group\r\n\t\t\t\t\tverbose('Selected Multivariate Offer Group', oSelectOfferGroup)\r\n\t\t\t\t}\r\n\r\n\t\t\t\tverbose('User access IDs', aAccessIDs);\r\n\t\t\t\tverbose('User criteria IDs', kCriteriaIDs);\r\n\t\t\t\t\r\n\t\t\t\tbLoaded = true;\r\n\t\t\t\tprocessRules.call(this);\r\n\t\t\t},\r\n\t\t\tfailure: handleError,\r\n\t\t\tscope: this\r\n\t\t});\r\n\t\t\r\n\t\toRequest.send();\r\n\t};\r\n\r\n\t/**\r\n\t* Filters the provided rules based on the selected offer group.\r\n\t*\r\n\t* @param {Object[]} rules - An array of rules to filter.\r\n\t* @param {array} oSelectOfferGroup - An object containing the selected offer group for each rule.\r\n\t* @returns {Object[]} - An array of filtered rules, where each rule's `offer_config` property only contains the selected offer group.\r\n\t*/\r\n\tfunction getVariantOfferGroup(aRules, oSelectOfferGroup) {\r\n\t\tlet filteredRules = [];\r\n\r\n\t\t// Loop rules\r\n\t\tfor (let rule of aRules) {\r\n\t\t\t// Check if the rule has offer_config populated\r\n\t\t\tif (typeof rule.offer_config === 'object' && Object.keys(rule.offer_config).length > 0) {\r\n\t\t\t\t// Get the rule ID\r\n\t\t\t\tlet ruleId = rule.id;\r\n\r\n\t\t\t\t// Get the selected offer group for the current rule\r\n\t\t\t\tlet selectedOfferGroup = oSelectOfferGroup[ruleId];\r\n\r\n\t\t\t\t// Check if offer_config contains the selected offer group\r\n\t\t\t\tif (selectedOfferGroup && rule.offer_config[selectedOfferGroup]) {\r\n\t\t\t\t\t// Create a copy of the rule without modifying the original\r\n\t\t\t\t\tlet filteredRule = { ...rule };\r\n\r\n\t\t\t\t\t// Remove other offer groups from offer_config\r\n\t\t\t\t\tfor (let offerGroupKey in filteredRule.offer_config) {\r\n\t\t\t\t\t\tif (offerGroupKey !== selectedOfferGroup) {\r\n\t\t\t\t\t\t\tdelete filteredRule.offer_config[offerGroupKey];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Rename the selected offer group key to 'offer_group'\r\n\t\t\t\t\tfilteredRule.offer_config = filteredRule.offer_config[selectedOfferGroup];\r\n\t\t\t\t\tdelete filteredRule.offer_config[selectedOfferGroup];\r\n\r\n\t\t\t\t\t// Add the filtered rule to the array\r\n\t\t\t\t\tfilteredRules.push(filteredRule);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfilteredRules.push(rule)\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn filteredRules;\r\n\t}\r\n\r\n\t/* }}} */\r\n\t/* {{{ processRules() */\r\n\t\r\n\t/**\r\n\t * Process all gathered rules and return an \r\n\t * object containing the response data.\r\n\t * \r\n\t */\r\n\tasync function processRules() {\r\n\t\tif ( ! bLoaded ) {\r\n\t\t\treturn;\r\n\t\t}\t\t\r\n\t\t// if audiences are required but have not yet been loaded\r\n\t\tif ( aRequiresClient.indexOf('dmp') !== -1 && aAudiences == null ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// Make sure the meter manager is ready to process rules\r\n\t\t\r\n\t\tif (await oMeterMgr.ready()) {\r\n\t\t\tverbose('Meter manager is loaded and ready to be used');\r\n\t\t}\r\n\r\n\t\t // Add sorting here, before offer group filtering\r\n\t\t aRules.sort((a, b) => b.priority - a.priority);\r\n\t\t\r\n\t\t/**\r\n\t\t* Filters the access rules based on the selected offer group.\r\n\t\t* If the `oSelectOfferGroup` array is not empty, this function will filter the `aRules` array\r\n\t\t* to only include rules that match the selected offer group.\r\n\t\t*/\r\n\t\tif (typeof oSelectOfferGroup === 'object' && Object.keys(oSelectOfferGroup).length > 0) {\r\n\r\n\t\t\t// Processes rules and applies selected variants for multivariate testing while preserving non-multivariate rules\r\n\t\t\taRules = aRules.map(rule => {\r\n\t\t\t\t\t\t\tif (rule.enable_multivariate) {\r\n\t\t\t\t\t\t\t\treturn getVariantOfferGroup([rule], oSelectOfferGroup)[0];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn rule;\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tconsole.log(\"After offer group filtering:\", aRules);\r\n\t\t\t\t\t}\r\n\t\t \r\n\t\tverbose('Processing rules');\r\n\t\t\r\n\t\tlet nRequired = 0,\r\n\t\t\toURL = null,\r\n\t\t\tnProcessed = 0;\r\n\t\t\r\n\t\toAccessState = {\r\n\t\t\trequired: false,\r\n\t\t\taccess_methods: [],\r\n\t\t\tgranting_method: null,\r\n\t\t\taccess_rule: {},\r\n\t\t\toffer_config: {}\r\n\t\t};\r\n\t\t\r\n\t\t/**\r\n\t\t * Match a query string parameter in the URL, falling\r\n\t\t * back to sessionStorage.\r\n\t\t * \r\n\t\t * @param object oParam\r\n\t\t * Anonymous object containing name, value, match and preserve keys.\r\n\t\t * The match key will be either exact or partial.\r\n\t\t * @retrurn bool\r\n\t\t */\r\n\t\tfunction matchParam(oParam) {\r\n\t\t\tconst oParams = new URLSearchParams(document.location.search);\r\n\t\t\t\r\n\t\t\tlet xValue = oParams.get(oParam.name);\r\n\t\t\tif ( ! xValue && oParam.preserve ) {\r\n\t\t\t\txValue = sessionStorage.getItem('access-qp-' + oParam.name);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( ! xValue ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlet bHasMatch = false;\t\t\t\r\n\t\t\tif ( oParam.match == 'exact' && oParam.value == xValue ) { \r\n\t\t\t\tbHasMatch = true;\t\t\t\t\r\n\t\t\t} else if ( xValue.indexOf(oParam.value) != -1 ) {\r\n\t\t\t\tbHasMatch = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( bHasMatch && oParam.preserve ) {\r\n\t\t\t\tsessionStorage.setItem('access-qp-' + oParam.name, xValue);\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\treturn bHasMatch;\r\n\t\t};\r\n\t\t\r\n\t\t// Allow any previously viewed asset to have access\r\n\t\t\r\n\t\tif (sAssetID && oMeterMgr.inAssetList(sAssetID)) {\r\n\t\t\tverbose('Asset already viewed');\r\n\t\t\tonSuccess.call(this, oAccessState);\r\n\t\t\treturn;\r\n\t\t}\t\t\r\n\t\t\r\n\t\t// Fall back to `this` pages meta tags if none have been set\r\n\t\t\r\n\t\tif ( aMetaTags.length == 0 ) {\r\n\t\t\taMetaTags = document.getElementsByTagName('meta');\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Processes rule, if Mulitvariate\r\n\t\t * stores the offer ID and rule ID in oOfferConfigData.\r\n\t\t */\r\n\t\tfunction processMultivariateRule(kRule) {\r\n\t\t\tif (kRule.enable_multivariate && Object.keys(kRule.offer_config).length > 0) {\r\n\r\n\t\t\t\t// Only set multivariate if a higher priority rule hasn't already matched\r\n\t\t\t\tif (!oAccessState.required) {\r\n\t\t\t\t\t\t\t\tlet sMultivariateOfferId = kRule.offer_config.id;\r\n\t\t\t\t\t\t\t\tlet sMultivariateRuleId = kRule.id;\r\n\t\t\t\t\t\t\t\tlet sMultivariateId = `${sMultivariateOfferId}::${sMultivariateRuleId}`;\r\n\r\n\t\t\t\t\t\t\t\t// Store the multivariate offer rule ID in the global offerConfigData object\r\n\t\t\t\t\t\t\t\toOfferConfigData.multivariateOfferRuleId = sMultivariateId;\r\n\r\n\t\t\t\t\t\t\t\tverbose('Multivariate rule found ', sMultivariateRuleId);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlet sCurrentMultivariateOfferRuleId = null;\r\n\r\n\r\n\t\t// Examine all rules\t\t\r\n\t\tfor (const kRule of aRules) {\r\n\t\t\t\r\n\t\t\tprocessMultivariateRule(kRule)\r\n\r\n\t\t\tlet aRuleMeters = [];\r\n\r\n\t\t\tnRequired = 0;\r\n\t\t\tnProcessed = 0;\r\n\r\n\t\t\t// List all possible meters for this rule \r\n\r\n\t\t\tfor (const oMethod of kRule.methods) {\r\n\r\n\t\t\t\tif (oMethod.type == 'meter') {\r\n\t\t\t\t\taRuleMeters.push(oMethod.id);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tverbose('Processing rule ' + kRule.name);\r\n\r\n\t\t\t// All criteria for a rule must match \r\n\r\n\t\t\tfor (const kCriteria of kRule.criteria) {\r\n\r\n\t\t\t\tnProcessed++;\r\n\r\n\t\t\t\tverbose('Processing criteria', kCriteria.name);\r\n\r\n\t\t\t\tswitch (kCriteria.driver) {\r\n\r\n\t\t\t\t\tcase 'queryparams':\r\n\t\t\t\t\t\tlet aParams = kCriteria.data.queryparams || [],\r\n\t\t\t\t\t\t\tn = 0,\r\n\t\t\t\t\t\t\tbMatch = false;\r\n\r\n\t\t\t\t\t\tfor (const oParam of aParams) {\r\n\t\t\t\t\t\t\tif (matchParam(oParam)) {\r\n\t\t\t\t\t\t\t\tbMatch = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (bMatch && kCriteria.negate != 1) {\r\n\t\t\t\t\t\t\tverbose('Matched query parameter', aParams);\r\n\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'metercheck':\r\n\t\t\t\t\t\tlet sMeterID = kCriteria.data.meter,\r\n\t\t\t\t\t\t\tnViews = kCriteria.data.views,\r\n\t\t\t\t\t\t\tsMeterOp = kCriteria.data.op;\r\n\r\n\t\t\t\t\t\tif (kCriteria.negate == 1) {\r\n\t\t\t\t\t\t\tverbose('Negate is not supported by meter check');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tfor (const kMeter of aMeters) {\r\n\r\n\t\t\t\t\t\t\t// This meter matches the meter check criteria\r\n\t\t\t\t\t\t\t// And is assigned as an access method for this rule\r\n\t\t\t\t\t\t\tif (kMeter.id == sMeterID\r\n\t\t\t\t\t\t\t\t&& aRuleMeters.indexOf(kMeter.id) !== -1\r\n\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\tverbose('Checking meter ' + kMeter.name);\r\n\t\t\t\t\t\t\t\t// Add one to the meter to emulate what the view count would be\r\n\t\t\t\t\t\t\t\t// if provided access by this meter\r\n\t\t\t\t\t\t\t\tlet nMeterCount = oMeterMgr.getViews(kMeter.id) + 1;\r\n\r\n\t\t\t\t\t\t\t\tswitch (sMeterOp) {\r\n\t\t\t\t\t\t\t\t\tcase '=':\r\n\t\t\t\t\t\t\t\t\t\tif (nMeterCount == nViews) {\r\n\t\t\t\t\t\t\t\t\t\t\tverbose('Meter count equals views', nMeterCount);\r\n\t\t\t\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase '<':\r\n\t\t\t\t\t\t\t\t\t\tif (nMeterCount < nViews) {\r\n\t\t\t\t\t\t\t\t\t\t\tverbose('Meter count is less than views', nMeterCount);\r\n\t\t\t\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase '<=':\r\n\t\t\t\t\t\t\t\t\t\tif (nMeterCount <= nViews) {\r\n\t\t\t\t\t\t\t\t\t\t\tverbose('Meter count is less than or equal to views', nMeterCount);\r\n\t\t\t\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase '>':\r\n\t\t\t\t\t\t\t\t\t\tif (nMeterCount > nViews) {\r\n\t\t\t\t\t\t\t\t\t\t\tverbose('Meter count is greater than views', nMeterCount);\r\n\t\t\t\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\tcase '>=':\r\n\t\t\t\t\t\t\t\t\t\tif (nMeterCount >= nViews) {\r\n\t\t\t\t\t\t\t\t\t\t\tverbose('Meter count is greater than or equal to views', nMeterCount);\r\n\t\t\t\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'dmp':\r\n\t\t\t\t\t\tverbose('Processing DMP', aAudiences);\r\n\t\t\t\t\t\tfor (const oDMP of kCriteria.data.dmp) {\r\n\r\n\t\t\t\t\t\t\t// Test profile will have defined aAudiences if DMP was used\r\n\t\t\t\t\t\t\tif (aAudiences.indexOf(oDMP.abbr) !== -1) {\r\n\t\t\t\t\t\t\t\tif (kCriteria.negate != 1) {\r\n\t\t\t\t\t\t\t\t\tverbose('Found audience', oDMP);\r\n\t\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'urlpattern':\r\n\t\t\t\t\t\toURL = new URL(sExternalURL || window.location.href);\r\n\t\t\t\t\t\tverbose('Processing urlpattern against', oURL.pathname);\r\n\r\n\t\t\t\t\t\tfor (const oPattern of kCriteria.data.pattern) {\r\n\r\n\t\t\t\t\t\t\tlet oReg = new RegExp(oPattern.replace('*', '.*'), 'i'),\r\n\t\t\t\t\t\t\t\taMatch = null;\r\n\r\n\t\t\t\t\t\t\taMatch = oReg.exec(oURL.pathname);\r\n\t\t\t\t\t\t\tif (aMatch && kCriteria.negate != 1) {\r\n\t\t\t\t\t\t\t\tverbose('URL pattern match', oPattern);\r\n\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'hostname':\r\n\t\t\t\t\t\toURL = new URL(sExternalURL || window.location.href);\r\n\t\t\t\t\t\tverbose('Processing host name against', oURL.hostname);\r\n\r\n\t\t\t\t\t\tfor (const oHost of kCriteria.data.host) {\r\n\r\n\t\t\t\t\t\t\tif (oHost.toLowerCase()\r\n\t\t\t\t\t\t\t\t== oURL.hostname.toLowerCase()\r\n\t\t\t\t\t\t\t\t&& kCriteria.negate != 1\r\n\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\tverbose('Host name match', oHost);\r\n\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'metatag':\r\n\t\t\t\t\t\tverbose('Processing meta tags', aMetaTags);\r\n\t\t\t\t\t\tmeta_loop:\r\n\t\t\t\t\t\tfor (const oMeta of aMetaTags) {\r\n\r\n\t\t\t\t\t\t\tfor (const oMetaCrit of kCriteria.data.meta) {\r\n\t\t\t\t\t\t\t\tif (oMeta.name == oMetaCrit.name\r\n\t\t\t\t\t\t\t\t\t&& oMeta.content == oMetaCrit.value\r\n\t\t\t\t\t\t\t\t\t&& kCriteria.negate != 1\r\n\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\tverbose('Meta tag match', oMeta);\r\n\t\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\t\tbreak meta_loop;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'referrer':\r\n\t\t\t\t\t\tvar sReferrer = document.referrer.toLowerCase(),\r\n\t\t\t\t\t\t\taCheckReferrer = kCriteria.data.referrer,\r\n\t\t\t\t\t\t\tsCheck = '',\r\n\t\t\t\t\t\t\tbExists = false;\r\n\t\t\t\t\t\t// If external mode look for external referrer\r\n\t\t\t\t\t\tif (bIsExternal) {\r\n\t\t\t\t\t\t\tsReferrer = sExternalReferrer || '';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Test profile declared referrer\r\n\t\t\t\t\t\tif (oProfile.referrer) {\r\n\t\t\t\t\t\t\tverbose('Using profile referrer', oProfile.referrer);\r\n\t\t\t\t\t\t\tsReferrer = oProfile.referrer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tverbose('Processing referrer', sReferrer);\r\n\r\n\t\t\t\t\t\tif (sReferrer && sReferrer.length > 0) {\r\n\r\n\t\t\t\t\t\t\tfor (const oReferrer of aCheckReferrer) {\r\n\r\n\t\t\t\t\t\t\t\tsCheck = oReferrer.name.toLowerCase();\r\n\t\t\t\t\t\t\t\tbExists = sReferrer.indexOf(sCheck) !== -1;\r\n\t\t\t\t\t\t\t\tif (bExists && kCriteria.negate != 1) {\r\n\t\t\t\t\t\t\t\t\tverbose('Found referrer', kCriteria);\r\n\t\t\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'adblock':\r\n\t\t\t\t\t\t// Perform ad block detection if not cached\r\n\r\n\t\t\t\t\t\tif (typeof bAdBlock !== 'boolean') {\r\n\r\n\t\t\t\t\t\t\tif (window?.dataLayer.find(oEl => oEl?.event === 'tncms.ad.blocked')) {\r\n\r\n\t\t\t\t\t\t\t\tverbose('Ad blocking detected by BLOX core');\r\n\t\t\t\t\t\t\t\tbAdBlock = true;\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\t\t\t\tbAdBlock = await detectAnyAdblocker();\r\n\t\t\t\t\t\t\t\t\tverbose('Ad blocker detected?', bAdBlock);\r\n\r\n\t\t\t\t\t\t\t\t} catch (oError) {\r\n\r\n\t\t\t\t\t\t\t\t\tverbose('Failed to detect ad blocking state', oError);\r\n\t\t\t\t\t\t\t\t\tbAdBlock = false;\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (bAdBlock != (kCriteria.negate == 1)) {\r\n\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'incognito':\r\n\t\t\t\t\t\tvar bNegate = (kCriteria.negate == 1); // get criteria's negation as a boolean to compare bIncognito against\r\n\r\n\t\t\t\t\t\tif (typeof bIncognito !== 'boolean') {\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\t\t\t// Test profile declared incognito mode\r\n\t\t\t\t\t\t\t\tif (oProfile.incognito) {\r\n\r\n\t\t\t\t\t\t\t\t\tverbose('Using profile incognito mode', true);\r\n\t\t\t\t\t\t\t\t\tbIncognito = true;\r\n\r\n\t\t\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\t\t\tlet oResult = await detectIncognito();\r\n\t\t\t\t\t\t\t\t\tbIncognito = oResult.isPrivate;\r\n\t\t\t\t\t\t\t\t\tif (bIncognito) {\r\n\t\t\t\t\t\t\t\t\t\tverbose('Private browsing mode detected');\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} catch (oError) {\r\n\r\n\t\t\t\t\t\t\t\tbIncognito = false;\r\n\t\t\t\t\t\t\t\tverbose('Private mode detection failed', oError);\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (bIncognito != bNegate) {\r\n\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'custom':\r\n\t\t\t\t\t\tverbose('Processing custom', kCriteria.name);\r\n\r\n\t\t\t\t\t\tlet bRequired = null;\r\n\r\n\t\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\t\tlet oFunc = new Function(kCriteria.data.javascript);\r\n\r\n\t\t\t\t\t\t\tbRequired = oFunc();\r\n\r\n\t\t\t\t\t\t} catch (oErr) {\r\n\t\t\t\t\t\t\tverbose('Custom function did not execute properly', oErr);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (typeof bRequired !== 'boolean') {\r\n\t\t\t\t\t\t\tverbose('Custom function did not return a boolean', bRequired);\r\n\t\t\t\t\t\t} else if (bRequired === true && kCriteria.negate != 1) {\r\n\t\t\t\t\t\t\tverbose('Custom JS requires access');\r\n\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t} else if (bRequired === false && kCriteria.negate == 1) {\r\n\t\t\t\t\t\t\tverbose('Custom JS requires access (negated)');\r\n\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tif (kCriteriaIDs[kRule.id]\r\n\t\t\t\t\t\t\t&& kCriteriaIDs[kRule.id].indexOf(kCriteria.id) !== -1\r\n\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\tverbose('Criteria matched', kCriteria);\r\n\t\t\t\t\t\t\tnRequired++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tverbose('Total criteria processed: ', nProcessed);\r\n\t\t\tverbose('Total matching criteria: ', nRequired);\r\n\r\n\t\t\t// There is at least 1 criteria and all criteria matched\t\t\t\r\n\t\t\t// Check if the user has any access granted for the rule\r\n\t\t\t// that has just been matched.\r\n\r\n\t\t\tif (nProcessed && nProcessed == nRequired) {\r\n\r\n\t\t\t\tif (oOfferConfigData.multivariateOfferRuleId) {\r\n\t\t\t\t\tsCurrentMultivariateOfferRuleId = oOfferConfigData.multivariateOfferRuleId;\r\n\r\n\t\t\t\t\t// Track the impression event\r\n\t\t\t\t\tTNCMS.Tracking.addEvent({\r\n\t\t\t\t\t\t'app': 'access',\r\n\t\t\t\t\t\t'metric': 'impression',\r\n\t\t\t\t\t\t'id': sCurrentMultivariateOfferRuleId\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tverbose('Multivariate tracking');\r\n\r\n\t\t\t\t\twindow.addEventListener('BLOXSubscriptionOrderCompleted', function (ev) {\r\n\t\t\t\t\t\tverbose('BLOXSubscriptionOrderCompleted Event Called');\r\n\t\t\t\t\t\tif (sCurrentMultivariateOfferRuleId !== null) {\r\n\t\t\t\t\t\t\t// Track the conversion event\r\n\t\t\t\t\t\t\tTNCMS.Tracking.addEvent({\r\n\t\t\t\t\t\t\t\t'app': 'access',\r\n\t\t\t\t\t\t\t\t'metric': 'conversion',\r\n\t\t\t\t\t\t\t\t'id': sCurrentMultivariateOfferRuleId\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t// Add method that writes conversion event\r\n\t\t\t\t\t\t\tsCurrentMultivariateOfferRuleId = null; // Reset the variable after tracking the conversion\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tverbose('Multivariate tracking conversion not available');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tverbose('Access required');\r\n\t\t\t\toAccessState = hasAccess.call(this, kRule);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// If access is required, contains a redirect\r\n\t\t// and it's not been redirected before\r\n\r\n\t\tif ( oAccessState.required\r\n\t\t\t&& oAccessState.offer_config.redirect_url\r\n\t\t\t&& oAccessState.offer_config.redirect_url.length\r\n\t\t\t&& ! (history.state || (history.state && history.state.redirected))\r\n\t\t) {\r\n\t\t\thistory.pushState({ redirected: true }, 'OfferRedirect');\r\n\t\t\tlocation = oAccessState.offer_config.redirect_url;\t\r\n\t\t}\r\n\t\t\r\n\t\tonSuccess.call(this, oAccessState);\r\n\t};\t\r\n\t\r\n\t/* }}} */\r\n\t/* {{{ hasAccess( kRule ) */\r\n\t\r\n\t/**\r\n\t * Check if a user has any access methods that the rule\r\n\t * is configured to use for access.\r\n\t */\r\n\tfunction hasAccess( kRule ) {\t\r\n\t\tvar oAccessAllowed = {\r\n\t\t\trequired: false,\r\n\t\t\taccess_rule: kRule,\r\n\t\t\taccess_methods: [],\r\n\t\t\taccess_meter: null\r\n\t\t};\r\n\t\t\r\n\t\tlet aReturnMethods = [];\r\n\t\t\r\n\t\tfor ( const kMethod of kRule.methods ) {\r\n\t\t\t\r\n\t\t\tverbose('Examining access method', kMethod);\r\n\t\t\t\t\t\t\r\n\t\t\t// If they are viewing an asset page and this meter is in the list\r\n\t\t\t// of meters they have access to it will automatically be granted\r\n\t\t\t// access\r\n\t\t\t\r\n\t\t\tif ( kMethod.type == 'meter' && sAssetID ) {\r\n\t\t\t\t\r\n\t\t\t\tconst oMeter = aMeters.find(oEl => oEl.id == kMethod.id);\r\n\t\t\t\tif ( !oMeter ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tverbose('Examining meter', oMeter);\r\n\t\t\t\t\t\r\n\t\t\t\tconst nCount = oMeterMgr.getViews(kMethod.id);\r\n\t\t\t\t\t\t\r\n \t\t\t\tverbose('Meter applies at limit ', oMeter.meter); \t\r\n \t\t\t\tverbose('Current count', nCount);\r\n\t\t\t\t\t\t\t\r\n \t\t\t\t// The asset has already been viewed via a meter\r\n\t\r\n\t\t\t\tif (oMeterMgr.inAssetList(sAssetID)) {\r\n\t\t\t\t\t\t\r\n \t\t\t\t\toAccessAllowed.access_meter = oMeter;\r\n \t\t\t\t\tverbose('Asset already viewed, allowing access', oAccessAllowed);\r\n \t\t\t\t\toAccessAllowed.granting_method = kMethod;\r\n\t\t\t\t\treturn oAccessAllowed;\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// The meter has gone passed the allowed range. Note that\r\n\t\t\t\t// the meter will stop growing once it has hit the limit\r\n\t\t\t\t// of the views.\r\n\t\t\t\t\r\n\t\t\t\tif ( nCount >= oMeter.meter ) {\r\n\t\t\t\t\t\t\r\n \t\t\t\t\tverbose('Views exceeded meter limit');\r\n\t\t\t\t\tcontinue;\r\n \t\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t// Provide access based on new metered view\r\n\t\r\n\t\t\t\toMeterMgr.updateMeters([oMeter.id]);\r\n\t\t\t\toMeterMgr.saveAssetToList(sAssetID);\r\n\t\t\t\t\t\t\r\n \t\t\t\toAccessAllowed.access_meter = oMeter;\r\n \t\t\t\toAccessAllowed.access_meter.count = nCount + 1;\r\n \t\t\t\t\t\r\n\t\t\t\tverbose('Access provided by meter', oAccessAllowed);\r\n\t\t\t\toAccessAllowed.granting_method = kMethod;\r\n\t\t\t\t\r\n \t\t\t\treturn oAccessAllowed;\r\n\t\t\t\t\r\n\t\t\t} else if ( aAccessIDs.indexOf(kMethod.id) !== -1 ) {\r\n\t\t\t\t\r\n\t\t\t\tverbose('Access provided by method', kMethod);\r\n\t\t\t\toAccessAllowed.granting_method = kMethod;\r\n\t\t\t\treturn oAccessAllowed;\r\n\t\t\t\t\r\n\t\t\t} else if ( kMethod.type == 'customjavascript' ) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tlet oFunc = new Function(kMethod.metadata.js),\r\n\t\t\t\t\t\toObj = oFunc();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( oObj && oObj.has_access ) {\r\n\t\t\t\t\t\tverbose('Access provided by custom javascript method', kMethod);\r\n\t\t\t\t\t\toAccessAllowed.granting_method = kMethod;\r\n\t\t\t\t\t\treturn oAccessAllowed;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif ( ! kMethod['hidden'] ) {\r\n\t\t\t\t\t\tkMethod['response'] = oObj.data || {};\r\n\t\t\t\t\t\taReturnMethods.push(kMethod);\r\n\t\t\t\t\t\tverbose('Added access method', kMethod);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch ( oErr ) {\r\n\t\t\t\t\tverbose('Custom javascript method did not execute properly', oErr);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t} else if ( ! kMethod['hidden'] ) {\t\t\t\t\r\n\t\t\t\t// Remaining methods are returned as options to gain access\r\n\t\t\t\taReturnMethods.push(kMethod);\r\n\t\t\t\tverbose('Added access method', kMethod);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tvar oResp = {\r\n\t\t\trequired: true,\r\n\t\t\taccess_rule: kRule,\r\n\t\t\taccess_methods: aReturnMethods,\r\n\t\t\tgranting_method: null,\r\n\t\t\toffer_config: kRule.offer_config || {}\t\t\r\n\t\t};\r\n\t\t\r\n\t\tverbose('Access response', oResp);\r\n\t\t\r\n\t\treturn oResp;\r\n\t};\r\n\t\r\n\t/* }}} */\r\n\t/* {{{ Request( oCfg ) */\r\n\t\r\n\t/**\r\n\t * Request class to handle sending an receiving\r\n\t * requests from the server.\r\n\t */\r\n\tvar Request = function( oCfg ) {\r\n\t\tif ( ! oCfg.url || ! oCfg.success ) {\r\n\t\t\tthrow 'Missing URL or handler';\r\n\t\t}\r\n\r\n\t\tfunction _success( oEvt ) {\r\n\t\t\tif ( oEvt.target.status >= 400 ) {\t\t\t\t\r\n\t\t\t\tif ( typeof this.failure == 'function' ) {\r\n\t\t\t\t\tthis.failure.call(this.scope, this);\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t} else if ( typeof this.success == 'function' ) {\r\n\t\t\t\tthis.success.call(this.scope, this);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tfunction _failure( oEvt ) {\r\n\t\t\tif ( typeof this.failure == 'function' ) {\r\n\t\t\t\tthis.failure.call(this.scope, oEvt);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tfunction _request() {\r\n\t\t\tthis.request = new XMLHttpRequest();\r\n\t\t\tthis.request.success = oCfg.success;\r\n\t\t\tthis.request.failure = oCfg.failure;\r\n\t\t\tthis.request.scope = oCfg.scope || this;\r\n\t\t\tthis.request.addEventListener(\"load\", _success);\t\t\t\r\n\t\t\tthis.request.addEventListener(\"error\", _failure);\r\n\t\t\t\r\n\t\t\tvar sURL = '',\r\n\t\t\t\toMatch = document.location.pathname.match(\r\n\t\t\t\t\t/.+?\\/tncms\\/admin\\/action\\/main\\/preview\\/site\\//\r\n\t\t\t\t),\r\n\t\t\t\tsHost = document.location.hostname;\r\n\t\t\t\r\n\t\t\tif ( oMatch ) {\r\n\t\t\t\tsHost += oMatch[0] + '-';\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tsURL = 'https://' + sHost + '/tncms/access/' + oCfg.url;\t\t\t\t\r\n\t\t\t\r\n\t\t\tif ( oCfg.params ) {\r\n\t\t\t\tvar aParams = [];\r\n\t\t\t\tfor ( var s in oCfg.params ) {\r\n\t\t\t\t\taParams.push(s + '=' + encodeURIComponent(oCfg.params[s]));\r\n\t\t\t\t}\r\n\t\t\t\tsURL += '?' + aParams.join('&');\r\n\t\t\t}\r\n\t\t\r\n\t\t\tthis.request.open(oCfg.method || 'GET', sURL, true);\r\n\t\t\t\r\n\t\t\tif ( oCfg.headers && oCfg.headers.length ) {\r\n\t\t\t\tvar oHeader = null;\r\n\t\t\t\tfor ( var n = 0; n < oCfg.headers.length; n++ ) {\r\n\t\t\t\t\toHeader = oCfg.headers[n];\r\n\t\t\t\t\tthis.request.setRequestHeader(oHeader.name, oHeader.value);\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tthis.request.send();\r\n\t\t};\r\n\t\t\r\n\t\treturn {\r\n\t\t\t\r\n\t\t\t/* {{{ new Request */\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * Create an instance of the request object\r\n\t\t\t * \r\n\t\t\t * @param obj {\r\n\t\t\t * \turl string \r\n\t\t\t * \t\tURL fragment endpoint for access controller\r\n\t\t\t * \tmethod string\r\n\t\t\t * \t\tIf something other than GET is needed it can be\r\n\t\t\t * \t\tpassed here. \r\n\t\t\t * params obj\r\n\t\t\t * \tAn object of param names and values to include\r\n\t\t\t * \tin the request\r\n\t\t\t * \t{\r\n\t\t\t * \t\tparamName: '11111'\r\n\t\t\t * \t}\r\n\t\t\t * headers obj[]\r\n\t\t\t * \tAn array of name/value objects\r\n\t\t\t * \t[{\r\n\t\t\t * \t\tname: 'Cache-Control',\r\n\t\t\t * \t\tvalue: 'private, max-age=86400'\r\n\t\t\t * \t}]\r\n\t\t\t * \tsuccess fn \r\n\t\t\t * \t\tCalled when the request has completed. The \r\n\t\t\t * \t\tfunction is passed the response object.\r\n\t\t\t * \tfailure fn\r\n\t\t\t * \t\tCalled upon failure. The function is passed\r\n\t\t\t * \t\tthe response object.\r\n\t\t\t * \tscope obj\r\n\t\t\t * \t\tIf passed will call the function with the\r\n\t\t\t * \t\tscope object.\r\n\t\t\t * }\r\n\t\t\t *\r\n\t\t\t */\r\n\t\t\t\r\n\t\t\t/* }}} */\r\n\t\t\t/* {{{ send() */\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t * Send a configured request to the server\r\n\t\t\t * \r\n\t\t\t */\r\n\t\t\tsend: _request\r\n\t\t\t\r\n\t\t\t/* }}} */\r\n\t\t}\r\n\t};\r\n\t\t\r\n\t/* }}} */\r\n\t/* {{{ API: TNCMS.Access */\r\n\t\r\n\treturn {\r\n\t\t\r\n\t\t/* {{{ checkAcess( fnSuccess, fnFailure ) */\r\n\t\t\r\n\t\t/**\r\n\t\t * Check if access is required to view content\r\n\t\t * on this page.\r\n\t\t * \r\n\t\t * @param fnSuccess func\r\n\t\t * \tCalled when the access check is complete. The function\r\n\t\t * \tis passed an access check response object.\r\n\t\t * \r\n\t\t * \tIf access was provided by a meter then the `access_meter`\r\n\t\t * \twill be populated with the meter that was used.\r\n\t\t * \r\n\t\t * \tresponse {\r\n\t\t * \t\trequired: true|false,\r\n\t\t * \t\taccess_methods: [{ \r\n\t\t * \t\t\tid: '', \r\n\t\t * \t\t\tname: '', \r\n\t\t * \t\t\ttype: '' \r\n\t\t * \t\t}],\r\n\t\t * \t\taccess_rule: \\TNCMS\\Access\\Rule,\r\n\t\t * \t\taccess_meter: {\r\n\t\t * \t\t\tid: '', \r\n\t\t * \t\t\tname: '', \r\n\t\t * \t\t\tmeter: 0, \r\n\t\t * \t\t\tcount: 0,\r\n\t\t * \t\t\tmessages: [{\r\n\t\t * \t\t\t\tid: '', \r\n\t\t * \t\t\t\tmessage:, '', \r\n\t\t * \t\t\t\tshow_at: 0\r\n\t\t * \t\t\t}]\r\n\t\t * }\r\n\t\t * \t}\r\n\t\t * \r\n\t\t * @param fnFailure func\r\n\t\t * \tCalled when a check fails for an unknown reason. The\r\n\t\t * \tfunction is passed anonymous object containing information\r\n\t\t * \tabout the error.\r\n\t\t * \r\n\t\t * \terr {\r\n\t\t * \t\tsuccess: false,\r\n\t\t * \t\tmsg: 'Error message'\r\n\t\t * \t}\r\n\t\t * \t\r\n\t\t */\r\n\t\tcheckAccess: function ( fnSuccess, fnFailure ) {\r\n\t\t\tif ( typeof fnSuccess !== 'function' ) {\r\n\t\t\t\tthrow 'Access success not defined';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tonSuccess = fnSuccess;\r\n\t\t\t\r\n\t\t\tif ( bLoaded && oAccessState ) {\r\n\t\t\t\tverbose('Using cached user access state for success');\r\n\t\t\t\tonSuccess.call(this, oAccessState);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tonFailure = fnFailure;\r\n\t\t\t\r\n\t\t\tinit.call(this);\r\n\t\t}, \r\n\t\t\r\n\t\t/**\r\n\t\t * Revalidate an access check if it needs to be done\r\n\t\t * again on the same page load, for example if an\r\n\t\t * access method is completed via an ajax request.\r\n\t\t * \r\n\t\t * @see checkAccess\r\n\t\t * \r\n\t\t * @param fnSuccess\r\n\t\t * @param fnFailure\r\n\t\t */\r\n\t\trevalidateAccess: function ( fnSuccess, fnFailure ) {\r\n\t\t\tif ( typeof fnSuccess !== 'function' ) {\r\n\t\t\t\tthrow 'Access success not defined';\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\tonSuccess = fnSuccess;\r\n\t\t\tonFailure = fnFailure;\r\n\t\t\t\r\n\t\t\tvar nTimeStamp = Math.round((new Date()).getTime() / 1000);\r\n\t\t\t\r\n\t\t\tdocument.cookie = 'tncms-access-user-version=' + nTimeStamp + '; path=/; SameSite=Strict';\r\n\t\t\t// reload user data to see if they now have access\r\n\t\t\tverbose('revalidating access');\r\n\t\t\tloadUser.call(this);\r\n\t\t},\r\n\t\r\n\t\t/* }}} */\r\n\t\t\r\n\t\t/**\r\n\t\t * Set audience data for this class then call processRules\r\n\t\t * since that method relies on this data. If audiences has \r\n\t\t * already been initialized it return. Audiences may have been\r\n\t\t * set through a test profile if in preview mode.\r\n\t\t * \r\n\t\t * @param array aResult\r\n\t\t * The array of audience data objects\r\n\t\t */\r\n\t\tsetAudiences: function(aResult) {\r\n\t\t\tif ( aAudiences && aAudiences.length > 0 ) {\r\n\t\t\t\tverbose('Audiences already initialized', aAudiences);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\taAudiences = aResult || [];\r\n\t\t\tverbose('Setting audiences', aResult);\r\n\t\t\tprocessRules.call(this);\r\n\t\t},\r\n\t\t\r\n\t\t/**\r\n\t\t * Initialize the library to look for external properties\r\n\t\t * when evaluating some access criteria such as referrer,\r\n\t\t * remote host and URL matching.\r\n\t\t * \r\n\t\t * @param object \r\n\t\t * \treferrer string\r\n\t\t * \t\tURL to use with referrer checks in external mode\r\n\t\t * \tmetaTags array\r\n\t\t * \t\tAn array of name/content objects\r\n\t\t */\r\n\t\tinitializeExternal: function ( oOpt ) {\r\n\t\t\tbIsExternal = true;\r\n\t\t\tif ( ! oOpt ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( oOpt.referrer ) {\r\n\t\t\t\tsExternalReferrer = oOpt.referrer;\r\n\t\t\t\tverbose('Set external referrer', sExternalReferrer);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( oOpt.metaTags ) {\r\n\t\t\t\taMetaTags = oOpt.metaTags;\r\n\t\t\t\tverbose('Set external meta tags', aMetaTags);\r\n\t\t\t\tfor ( let n = 0; n < aMetaTags.length; n++ ) {\r\n\t\t\t\t\tlet oMeta = aMetaTags[n];\r\n\t\t\t\t\tif ( oMeta.name && oMeta.content\r\n\t\t\t\t\t\t&& oMeta.name == 'tncms-access-asset-id'\r\n\t\t\t\t\t) {\r\n\t\t\t\t\t\tsAssetID = oMeta.content;\r\n\t\t\t\t\t\tverbose('Set asset ID', sAssetID);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// External URL is set based on the passed in value\r\n\t\t\t\r\n\t\t\tif ( oOpt.url ) {\r\n\t\t\t\tsExternalURL = oOpt.url || null;\r\n\t\t\t\tverbose('Set external URL', sExternalURL);\r\n\t\t\t}\r\n\r\n\t\t},\r\n\t\t\r\n\t\t/**\r\n\t\t * ASYNC: Return all offer groups assigned to rules.\r\n\t\t * \r\n\t\t * @return object\r\n\t\t * {\r\n\t\t * \t\tgroupID1: {\r\n\t\t * \t\t\tid: string,\r\n\t\t * \t\t\tmessage: string,\r\n\t\t * \t\t\tname: string,\r\n\t\t * \t\t\toffers: array,\r\n\t\t * \t\t\tpromo_image: string,\r\n\t\t * \t\t\tredirect_url: string,\r\n\t\t * \t\t\ttitle: string,\r\n\t\t * \t\t\toffer_group_id: string,\r\n\t\t * \t\t\tpriority: integer,\r\n\t\t * \t\t\ttype: string \r\n\t\t * \t\t},\r\n\t\t * \t\tgroupID2: {\r\n\t\t * \t\t\t...\r\n\t\t * \t\t},\r\n\t\t * \t\t...\r\n\t\t * }\r\n\t\t */\r\n\t\tgetOfferGroups: async function ( ) {\r\n\t\t\tlet oGroups = {},\r\n\t\t\t\toJSON = {},\r\n\t\t\t\toRule,\t\t\t\t\r\n\t\t\t\tn = 0;\t\r\n\t\t\t\r\n\t\t\tawait fetch('/tncms/access/rules/', {\r\n\t\t\t\theaders: {\r\n\t\t\t\t\t'X-TNCMS-Access-Version': sRuleVersion\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\t.then(oResp => oResp.json())\r\n\t\t\t.then(oData => { oJSON = oData });\r\n\t\t\t\t\t\t\t\r\n\t\t\tif ( oJSON.rules && oJSON.rules.length ) {\t\t\t\t\r\n\t\t\t\tfor ( n; n < oJSON.rules.length; n++ ) {\r\n\t\t\t\t\toRule = oJSON.rules[n];\r\n\t\t\t\t\tif ( oRule.offer_config ) {\r\n\t\t\t\t\t\toGroups[oRule.offer_config.id] = oRule.offer_config;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} \r\n\r\n\t\t\t\r\n\t\t\treturn oGroups;\r\n\t\t},\r\n\t\t\r\n\t\t/**\r\n\t\t * ASYNC: Return the list of offers bound to the group.\r\n\t\t * \r\n\t\t * @param string Group ID \r\n\t\t * @return array\r\n\t\t */\r\n\t\tgetOffers: async function ( sGroupID ) {\r\n\t\t\tlet oGroups = await this.getOfferGroups(),\r\n\t\t\t\taOffers = [];\r\n\t\t\t\r\n\t\t\tif ( oGroups[sGroupID]\r\n\t\t\t\t&& oGroups[sGroupID].offers\r\n\t\t\t\t&& oGroups[sGroupID].offers.length\r\n\t\t\t) {\r\n\t\t\t\taOffers = oGroups[sGroupID].offers;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn aOffers;\r\n\t\t},\r\n\t\t\r\n\t\t/**\r\n\t\t * Process queued functions when the access library has loaded\r\n\t\t * \r\n\t\t * Allows for asyncronous setup and execution of the access library. The\r\n\t\t * order of registration doesn't matter as either will result in the\r\n\t\t * proper execution of the library.\r\n\t\t * \r\n\t\t * @param {TNCMS~Access~Push} fnCallback\r\n\t\t * Function to process when the class loads\r\n\t\t */\r\n\t\tpush: function(fnCallback) {\r\n\t\t\ttry {\t\t\t\t\r\n\t\t\t\tif ( typeof fnCallback !== 'function' ) {\r\n\t\t\t\t\tthrow 'Value provided is not a function';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfnCallback();\r\n\t\t\t} catch ( oErr ) {\r\n\t\t\t\tconsole.log(oErr);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t};\r\n\t\r\n\t/* }}} */\r\n\t\r\n})();\r\n\r\n\r\n/**\r\n * Callback that is processed by the push() method of the TNCMS.Access class\r\n * @callback TNCMS~Access~Push\r\n */\r\n\r\n// Trigger any pushable callbacks\r\n\r\nfor( let nItem = 0; nItem < aCallbacks.length; nItem++ ) {\r\n\twindow.TNCMS.Access.push(aCallbacks[nItem]);\r\n}\r\n\r\n"],"names":["isCallable","tryToString","$TypeError","TypeError","module","exports","argument","isObject","$String","String","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","value","O","length","index","includes","indexOf","DESCRIPTORS","isArray","getOwnPropertyDescriptor","Object","SILENT_ON_NON_WRITABLE_LENGTH_SET","undefined","this","defineProperty","writable","error","uncurryThis","toString","stringSlice","slice","it","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","wellKnownSymbol","$Object","CORRECT_ARGUMENTS","arguments","tag","result","key","tryGet","callee","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","source","exceptions","keys","f","i","createPropertyDescriptor","object","bitmap","enumerable","configurable","makeBuiltIn","name","descriptor","get","getter","set","setter","defineGlobalProperty","options","simple","global","unsafe","nonConfigurable","nonWritable","fails","documentAll","document","all","IS_HTMLDDA","EXISTS","createElement","navigator","userAgent","match","version","process","Deno","versions","v8","split","createNonEnumerableProperty","defineBuiltIn","copyConstructorProperties","isForced","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","prototype","dontCallGetSet","forced","sham","exec","test","bind","hasOwnProperty","NATIVE_BIND","call","Function","apply","FunctionPrototype","getDescriptor","PROPER","CONFIGURABLE","uncurryThisWithBind","fn","namespace","method","aCallable","isNullOrUndefined","V","P","func","check","Math","globalThis","window","self","g","toObject","a","classof","propertyIsEnumerable","store","functionToString","inspectSource","has","NATIVE_WEAK_MAP","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","WeakMap","state","metadata","facade","STATE","enforce","getterFor","TYPE","type","Array","$documentAll","replacement","feature","detection","data","normalize","POLYFILL","NATIVE","string","replace","toLowerCase","getBuiltIn","isPrototypeOf","USE_SYMBOL_AS_UID","$Symbol","toLength","obj","CONFIGURABLE_FUNCTION_NAME","InternalStateModule","enforceInternalState","getInternalState","join","CONFIGURABLE_LENGTH","TEMPLATE","arity","constructor","ceil","floor","trunc","x","n","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","internalObjectKeys","concat","getOwnPropertyNames","getOwnPropertySymbols","push","names","$propertyIsEnumerable","NASHORN_BUG","input","pref","val","valueOf","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","uid","SHARED","IS_PURE","mode","copyright","license","V8_VERSION","symbol","Symbol","toIntegerOrInfinity","max","min","integer","IndexedObject","requireObjectCoercible","number","isSymbol","getMethod","ordinaryToPrimitive","TO_PRIMITIVE","exoticToPrim","toPrimitive","id","postfix","random","NATIVE_SYMBOL","iterator","passed","required","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","$","setArrayLength","doesNotExceedSafeInteger","proto","properErrorOnNonWritableLength","item","len","argCount","validateArgumentsLength","$URLSearchParams","URLSearchParams","URLSearchParamsPrototype","append","$delete","forEach","params","$value","entries","v","k","entry","dindex","found","entriesLength","getAll","$has","values","defineBuiltInAccessor","count","Promise","resolve","reject","ua","browserName","__callback","isPrivate","assertEvalToString","eval","vendor","maxTouchPoints","tmp_name","indexedDB","open","onupgradeneeded","_a","_b","res","createObjectStore","autoIncrement","put","Blob","e","message","Error","close","deleteDatabase","newSafariTest","openDB","openDatabase","storage","localStorage","setItem","removeItem","oldSafariTest","isChrome","brave","allSettled","webkitTemporaryStorage","queryUsageAndQuota","_","quota","w","round","performance","memory","jsHeapSizeLimit","fs","webkitRequestFileSystem","documentElement","style","MozAppearance","serviceWorker","msSaveBlob","t","isBrave","XMLHttpRequest","onreadystatechange","readyState","send","o","status","responseText","r","body","getAttribute","setAttribute","appendChild","offsetParent","offsetHeight","offsetLeft","offsetTop","offsetWidth","clientHeight","clientWidth","getComputedStyle","getPropertyValue","removeChild","u","detectAnyAdblocker","d","then","detectDomAdblocker","detectBraveShields","detectOperaAdblocker","isDetected","console","warn","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","MeterInstance","sID","nViews","_classPrivateMethodInitSpec","_saveToCookie","_getExpireDateFromCookie","_getFromCookie","_classPrivateFieldInitSpec","_nViews","_sID","_nExpireDays","_classPrivateFieldSet","_classPrivateMethodGet","_getFromCookie2","views","setExpireDays","nDays","increment","_classPrivateFieldGet","parseInt","_saveToCookie2","expires","oExpires","_getExpireDateFromCookie2","Date","setDate","getDate","setMonth","getMonth","setHours","setMinutes","setSeconds","toJSON","aCookies","decodeURIComponent","cookie","sCookie","oMatch","oExc","toGMTString","__assign","assign","s","p","__awaiter","thisArg","_arguments","generator","fulfilled","step","next","rejected","done","__generator","y","label","sent","trys","ops","verb","op","pop","__spreadArray","to","from","pack","ar","l","create","SuppressedError","wait","durationMs","resolveWith","setTimeout","isPromise","awaitIfAsync","action","callback","returnedValue","mapWithBreaks","items","loopReleaseInterval","results","lastLoopReleaseTime","now","suppressUnhandledRejectionWarning","promise","x64Add","m","x64Multiply","x64Rotl","x64LeftShift","x64Xor","x64Fmix","h","toInt","toFloat","parseFloat","replaceNaN","isNaN","countTruthy","reduce","sum","base","abs","counterBase","ensureErrorWithMessage","loadSources","sources","sourceOptions","excludeSources","includedSources","filter","sourceKey","haystack","needle","sourceGettersPromise","sourceLoadPromise","resolveLoad","loadStartTime","loadArgs","_i","loadDuration","duration","loadResult","isFinalResultLoaded","resolveGet","getStartTime","getArgs","finalizeSource","loadSource","componentPromises","componentArray","components","sourceGetter","componentPromise","isTrident","isChromium","isWebKit","isDesktopSafari","exitFullscreen","msExitFullscreen","mozCancelFullScreen","webkitExitFullscreen","isAndroid","isItChromium","isItGecko","isGecko","appVersion","makeInnerError","withIframe","initialHtml","domPollInterval","_c","iframe","_d","_resolve","_reject","isComplete","onload","onerror","setProperty","position","top","left","visibility","srcdoc","src","checkReadyState","contentWindow","parentNode","selectorToElement","selector","errorMessage","tagMatch","attributes","partsRegex","addAttribute","part","attributeMatch","parseSimpleCssSelector","element","name_1","addStyleString","property","name_2","priority","baseFonts","fontList","canvasToString","canvas","toDataURL","screenFrameBackup","screenFrameSizeTimeoutId","getCurrentScreenFrame","screen","availTop","width","availWidth","availLeft","height","availHeight","isFrameSizeNull","frameSize","getBlockedSelectors","selectors","root","elements","blockedSelectors","holder","forceShow","tagName","show","doesMatch$4","matchMedia","matches","doesMatch$3","doesMatch$2","doesMatch$1","doesMatch","M","fallbackFn","presets","default","apple","font","serif","fontFamily","sans","mono","fontSize","system","fonts","spansContainer","defaultWidth","defaultHeight","createSpan","span","textContent","baseFontsSpans","map","fontsSpans","spans","_loop_1","baseFont","fontToDetect","createSpanWithFonts","fontList_1","initializeFontsSpans","fontSpans","some","baseFontIndex","domBlockers","debug","filters","filterNames","activeBlockers","fromB64","atob","abpIndo","abpvn","adBlockFinland","adBlockPersian","adBlockWarningRemoval","adGuardAnnoyances","adGuardBase","adGuardChinese","adGuardFrench","adGuardGerman","adGuardJapanese","adGuardMobile","adGuardRussian","adGuardSocial","adGuardSpanishPortuguese","adGuardTrackingProtection","adGuardTurkish","bulgarian","easyList","easyListChina","easyListCookie","easyListCzechSlovak","easyListDutch","easyListGermany","easyListItaly","easyListLithuania","estonian","fanboyAnnoyances","fanboyAntiFacebook","fanboyEnhancedTrackers","fanboySocial","frellwitSwedish","greekAdBlock","hungarian","iDontCareAboutCookies","icelandicAbp","latvian","listKr","listeAr","listeFr","officialPolish","ro","ruAd","thaiAds","webAnnoyancesUltralist","filterName","log","printDebug","sort","fontPreferences","containerWidthPx","iframeWindow","iframeDocument","iframeBody","bodyStyle","webkitTextSizeAdjust","textSizeAdjust","zoom","devicePixelRatio","linesOfText","container","sizes","text","whiteSpace","_e","_f","_g","_h","getBoundingClientRect","audio","AudioContext","OfflineAudioContext","webkitOfflineAudioContext","isWebKit606OrNewer","context","oscillator","createOscillator","frequency","compressor","createDynamicsCompressor","threshold","knee","ratio","attack","release","connect","destination","start","finalize","isFinalized","renderTryCount","startedRunningAt","oncomplete","event","renderedBuffer","startRunningTimeout","tryRender","renderingPromise","startRendering","hidden","startRenderingAudio","renderPromise","finishRendering","fingerprintPromise","buffer","signal","hash","getHash","getChannelData","subarray","screenFrame","_this","screenFrameGetter","checkScreenFrame","watchScreenFrame","fullscreenElement","msFullscreenElement","mozFullScreenElement","webkitFullscreenElement","getScreenFrame","processSize","sideSize","osCpu","oscpu","languages","language","userLanguage","browserLanguage","systemLanguage","Intl","Reflect","colorDepth","deviceMemory","screenResolution","parseDimension","dimensions","reverse","hardwareConcurrency","timezone","DateTimeFormat","resolvedOptions","timeZone","currentYear","offset","getFullYear","getTimezoneOffset","sessionStorage","cpuClass","platform","screenRatio","Element","webkitRequestFullscreen","isIPad","plugins","rawPlugins","plugin","mimeTypes","j","mimeType","suffixes","description","geometry","winding","getContext","makeCanvasContext","isSupported","rect","isPointInPath","doesSupportWinding","textBaseline","fillStyle","fillRect","printedText","fromCharCode","fillText","renderTextImage","textImage1","globalCompositeOperation","color","beginPath","arc","PI","closePath","fill","renderGeometryImage","touchSupport","touchEvent","msMaxTouchPoints","createEvent","touchStart","vendorFlavors","flavors","cookiesEnabled","colorGamut","gamut","invertedColors","forcedColors","monochrome","contrast","reducedMotion","hdr","math","acos","acosh","asin","asinh","atanh","atan","sin","sinh","cos","cosh","tan","tanh","exp","expm1","log1p","acoshPf","sqrt","asinhPf","atanhPf","sinhPf","coshPf","tanhPf","expm1Pf","log1pPf","powPI","pow","videoCard","gl","debugInfo","getExtension","getParameter","UNMASKED_VENDOR_WEBGL","renderer","UNMASKED_RENDERER_WEBGL","pdfViewerEnabled","architecture","Float32Array","u8","Uint8Array","Infinity","commentTemplate","getConfidence","openConfidenceScore","getOpenConfidenceScore","proConfidenceScore","deriveProConfidenceScore","score","comment","componentsToDebugString","JSON","stringify","_key","stack","hashComponents","seed","remainder","bytes","h1","h2","k1","k2","c1","c2","charCodeAt","x64hash128","componentKey","component","componentsToCanonicalString","prepareForSources","delayFallback","fallbackTimeout","deadlineTimeout","requestIdleCallback","timeout","requestIdleCallbackIfAvailable","makeAgent","getComponents","creationTime","startTime","visitorIdCache","visitorId","confidence","makeLazyGetResult","load","monitoring","__fpjs_d_m","request","monitor","_bSync","_bDebug","_sHost","_oMeters","_sDeviceID","_sInstanceID","_aAssets","_oSyncPromise","_loadCache","WeakSet","_detectDeviceID","_deviceId","_instanceId","_generateUUID","_syncMeters","_setViews","MeterManager","oParams","_get_instanceId","_set_instanceId","_get_deviceId","host","sync","meters","oMeter","expire_days","sAssets","getItem","parse","_loadCache2","_syncMeters2","ready","isValidMeter","getViews","updateMeters","aMeters","bChanged","inAssetList","find","oEl","saveAssetToList","identifiers","deviceId","instanceId","sCacheID","sData","oData","oNow","getTime","_setViews2","_detectDeviceID2","oFP","FingerprintJS","oResult","oError","_generateUUID2","c","oResp","fetch","credentials","json","ok","code","TNCMS","aCallbacks","Access","oSelectOfferGroup","aMultivariateOfferIds","oMeterMgr","oOfferConfigData","bAdBlock","bIncognito","oAccessState","aRules","oOffers","bLoaded","aAudiences","aRequiresClient","kPageCriteriaIDs","kCriteriaIDs","aAccessIDs","sAssetID","sAssetApp","onSuccess","onFailure","sRuleVersion","bIsExternal","sExternalURL","sExternalReferrer","aMetaTags","oProfile","handleError","oErr","success","msg","xhrStatus","xhrStatusText","statusText","verbose","sMsg","getMetaValue","sField","oNodes","getElementsByName","content","async","init","sCriteria","loadRules","processRules","Request","url","headers","rules","requires_client","offers","location","hostname","tncms_access_control_sync","rule","enable_multivariate","offer_config","loadUser","failure","scope","aHeaders","sUser","pathname","asset_id","asset_app","profile","adblock","sKey","aProfileAud","abbr","initialized","oExt","aOfferGroupNameIds","groupKey","startsWith","multivariate_data","access_ids","criteria_ids","sRuleID","multivariate_selected_offer_group","b","filteredRules","selectedOfferGroup","filteredRule","offerGroupKey","getVariantOfferGroup","nRequired","oURL","nProcessed","matchParam","oParam","xValue","search","preserve","bHasMatch","access_methods","granting_method","access_rule","processMultivariateRule","kRule","sMultivariateOfferId","sMultivariateRuleId","sMultivariateId","multivariateOfferRuleId","getElementsByTagName","sCurrentMultivariateOfferRuleId","aRuleMeters","oMethod","methods","kCriteria","criteria","driver","aParams","queryparams","bMatch","negate","sMeterID","meter","sMeterOp","kMeter","nMeterCount","oDMP","dmp","URL","href","oPattern","pattern","aMatch","RegExp","oHost","meta_loop","oMeta","oMetaCrit","meta","sReferrer","referrer","aCheckReferrer","sCheck","oReferrer","dataLayer","bNegate","incognito","detectIncognito","bRequired","javascript","oFunc","Tracking","addEvent","addEventListener","ev","hasAccess","redirect_url","history","redirected","pushState","oAccessAllowed","access_meter","aReturnMethods","kMethod","nCount","oObj","js","has_access","oCfg","_success","oEvt","_failure","sURL","sHost","encodeURIComponent","oHeader","setRequestHeader","checkAccess","fnSuccess","fnFailure","revalidateAccess","nTimeStamp","setAudiences","aResult","initializeExternal","oOpt","metaTags","getOfferGroups","oRule","oGroups","oJSON","getOffers","sGroupID","aOffers","fnCallback","nItem"],"sourceRoot":""}