{"version":3,"file":"index-generated.js","sources":["index.js"],"sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i 1 ? arguments[1] : undefined);\n} : [].forEach;\n\n},{\"../internals/array-iteration\":10,\"../internals/array-method-is-strict\":12,\"../internals/array-method-uses-to-length\":13}],8:[function(require,module,exports){\n'use strict';\n\nvar bind = require('../internals/function-bind-context');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\n// `Array.from` method implementation\n// https://tc39.github.io/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n result = new C();\n for (; !(step = next.call(iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = toLength(O.length);\n result = new C(length);\n for (; length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n\n},{\"../internals/call-with-safe-iteration-closing\":16,\"../internals/create-property\":25,\"../internals/function-bind-context\":39,\"../internals/get-iterator-method\":41,\"../internals/is-array-iterator-method\":53,\"../internals/to-length\":109,\"../internals/to-object\":110}],9:[function(require,module,exports){\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\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 = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\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 }\n return !IS_INCLUDES && -1;\n };\n};\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n\n},{\"../internals/to-absolute-index\":106,\"../internals/to-indexed-object\":107,\"../internals/to-length\":109}],10:[function(require,module,exports){\nvar bind = require('../internals/function-bind-context');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar push = [].push;\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var value, result;\n for (; length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3:\n return true;\n // some\n case 5:\n return value;\n // find\n case 6:\n return index;\n // findIndex\n case 2:\n push.call(target, value);\n // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6)\n};\n\n},{\"../internals/array-species-create\":15,\"../internals/function-bind-context\":39,\"../internals/indexed-object\":49,\"../internals/to-length\":109,\"../internals/to-object\":110}],11:[function(require,module,exports){\nvar fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar SPECIES = wellKnownSymbol('species');\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return {\n foo: 1\n };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n\n},{\"../internals/engine-v8-version\":34,\"../internals/fails\":37,\"../internals/well-known-symbol\":116}],12:[function(require,module,exports){\n'use strict';\n\nvar fails = require('../internals/fails');\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal\n method.call(null, argument || function () {\n throw 1;\n }, 1);\n });\n};\n\n},{\"../internals/fails\":37}],13:[function(require,module,exports){\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar has = require('../internals/has');\nvar defineProperty = Object.defineProperty;\nvar cache = {};\nvar thrower = function (it) {\n throw it;\n};\nmodule.exports = function (METHOD_NAME, options) {\n if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];\n if (!options) options = {};\n var method = [][METHOD_NAME];\n var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;\n var argument0 = has(options, 0) ? options[0] : thrower;\n var argument1 = has(options, 1) ? options[1] : undefined;\n return cache[METHOD_NAME] = !!method && !fails(function () {\n if (ACCESSORS && !DESCRIPTORS) return true;\n var O = {\n length: -1\n };\n if (ACCESSORS) defineProperty(O, 1, {\n enumerable: true,\n get: thrower\n });else O[1] = 1;\n method.call(O, argument0, argument1);\n });\n};\n\n},{\"../internals/descriptors\":29,\"../internals/fails\":37,\"../internals/has\":44}],14:[function(require,module,exports){\nvar aFunction = require('../internals/a-function');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar toLength = require('../internals/to-length');\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aFunction(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = toLength(O.length);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw TypeError('Reduce of empty array with no initial value');\n }\n }\n for (; IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n\n},{\"../internals/a-function\":1,\"../internals/indexed-object\":49,\"../internals/to-length\":109,\"../internals/to-object\":110}],15:[function(require,module,exports){\nvar isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar SPECIES = wellKnownSymbol('species');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.github.io/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n }\n return new (C === undefined ? Array : C)(length === 0 ? 0 : length);\n};\n\n},{\"../internals/is-array\":54,\"../internals/is-object\":56,\"../internals/well-known-symbol\":116}],16:[function(require,module,exports){\nvar anObject = require('../internals/an-object');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (error) {\n var returnMethod = iterator['return'];\n if (returnMethod !== undefined) anObject(returnMethod.call(iterator));\n throw error;\n }\n};\n\n},{\"../internals/an-object\":6}],17:[function(require,module,exports){\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return {\n done: !!called++\n };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line no-throw-literal\n Array.from(iteratorWithReturn, function () {\n throw 2;\n });\n} catch (error) {/* empty */}\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return {\n done: ITERATION_SUPPORT = true\n };\n }\n };\n };\n exec(object);\n } catch (error) {/* empty */}\n return ITERATION_SUPPORT;\n};\n\n},{\"../internals/well-known-symbol\":116}],18:[function(require,module,exports){\nvar toString = {}.toString;\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n},{}],19:[function(require,module,exports){\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () {\n return arguments;\n}()) == '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' && typeof O.callee == 'function' ? 'Arguments' : result;\n};\n\n},{\"../internals/classof-raw\":18,\"../internals/to-string-tag-support\":112,\"../internals/well-known-symbol\":116}],20:[function(require,module,exports){\nvar has = require('../internals/has');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\nmodule.exports = function (target, source) {\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 (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n\n},{\"../internals/has\":44,\"../internals/object-define-property\":71,\"../internals/object-get-own-property-descriptor\":72,\"../internals/own-keys\":82}],21:[function(require,module,exports){\nvar fails = require('../internals/fails');\nmodule.exports = !fails(function () {\n function F() {/* empty */}\n F.prototype.constructor = null;\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n\n},{\"../internals/fails\":37}],22:[function(require,module,exports){\n'use strict';\n\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\nvar returnThis = function () {\n return this;\n};\nmodule.exports = function (IteratorConstructor, NAME, next) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, {\n next: createPropertyDescriptor(1, next)\n });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n\n},{\"../internals/create-property-descriptor\":24,\"../internals/iterators\":61,\"../internals/iterators-core\":60,\"../internals/object-create\":69,\"../internals/set-to-string-tag\":96}],23:[function(require,module,exports){\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\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\n},{\"../internals/create-property-descriptor\":24,\"../internals/descriptors\":29,\"../internals/object-define-property\":71}],24:[function(require,module,exports){\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\n},{}],25:[function(require,module,exports){\n'use strict';\n\nvar toPrimitive = require('../internals/to-primitive');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nmodule.exports = function (object, key, value) {\n var propertyKey = toPrimitive(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));else object[propertyKey] = value;\n};\n\n},{\"../internals/create-property-descriptor\":24,\"../internals/object-define-property\":71,\"../internals/to-primitive\":111}],26:[function(require,module,exports){\n'use strict';\n\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\nmodule.exports = function (hint) {\n if (hint !== 'string' && hint !== 'number' && hint !== 'default') {\n throw TypeError('Incorrect hint');\n }\n return toPrimitive(anObject(this), hint !== 'number');\n};\n\n},{\"../internals/an-object\":6,\"../internals/to-primitive\":111}],27:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\nvar returnThis = function () {\n return this;\n};\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS:\n return function keys() {\n return new IteratorConstructor(this, KIND);\n };\n case VALUES:\n return function values() {\n return new IteratorConstructor(this, KIND);\n };\n case ENTRIES:\n return function entries() {\n return new IteratorConstructor(this, KIND);\n };\n }\n return function () {\n return new IteratorConstructor(this);\n };\n };\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {\n createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() {\n return nativeIterator.call(this);\n };\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);\n }\n Iterators[NAME] = defaultIterator;\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n redefine(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({\n target: NAME,\n proto: true,\n forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME\n }, methods);\n }\n return methods;\n};\n\n},{\"../internals/create-iterator-constructor\":22,\"../internals/create-non-enumerable-property\":23,\"../internals/export\":36,\"../internals/is-pure\":57,\"../internals/iterators\":61,\"../internals/iterators-core\":60,\"../internals/object-get-prototype-of\":76,\"../internals/object-set-prototype-of\":80,\"../internals/redefine\":87,\"../internals/set-to-string-tag\":96,\"../internals/well-known-symbol\":116}],28:[function(require,module,exports){\nvar path = require('../internals/path');\nvar has = require('../internals/has');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineProperty = require('../internals/object-define-property').f;\nmodule.exports = function (NAME) {\n var Symbol = path.Symbol || (path.Symbol = {});\n if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n};\n\n},{\"../internals/has\":44,\"../internals/object-define-property\":71,\"../internals/path\":83,\"../internals/well-known-symbol-wrapped\":115}],29:[function(require,module,exports){\nvar fails = require('../internals/fails');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 1, {\n get: function () {\n return 7;\n }\n })[1] != 7;\n});\n\n},{\"../internals/fails\":37}],30:[function(require,module,exports){\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n\n},{\"../internals/global\":43,\"../internals/is-object\":56}],31:[function(require,module,exports){\n// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n\n},{}],32:[function(require,module,exports){\nvar userAgent = require('../internals/engine-user-agent');\nmodule.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);\n\n},{\"../internals/engine-user-agent\":33}],33:[function(require,module,exports){\nvar getBuiltIn = require('../internals/get-built-in');\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n\n},{\"../internals/get-built-in\":40}],34:[function(require,module,exports){\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8;\nvar match, version;\nif (v8) {\n match = v8.split('.');\n version = match[0] + match[1];\n} else if (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}\nmodule.exports = version && +version;\n\n},{\"../internals/engine-user-agent\":33,\"../internals/global\":43}],35:[function(require,module,exports){\n// IE8- don't enum bug keys\nmodule.exports = ['constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf'];\n\n},{}],36:[function(require,module,exports){\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\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.noTargetGet - prevent calling a getter on target\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] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\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 // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n\n},{\"../internals/copy-constructor-properties\":20,\"../internals/create-non-enumerable-property\":23,\"../internals/global\":43,\"../internals/is-forced\":55,\"../internals/object-get-own-property-descriptor\":72,\"../internals/redefine\":87,\"../internals/set-global\":94}],37:[function(require,module,exports){\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n\n},{}],38:[function(require,module,exports){\n'use strict';\n\n// TODO: Remove from `core-js@4` since it's moved to entry points\nrequire('../modules/es.regexp.exec');\nvar redefine = require('../internals/redefine');\nvar fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar regexpExec = require('../internals/regexp-exec');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar SPECIES = wellKnownSymbol('species');\nvar REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {\n // #replace needs built-in support for named groups.\n // #match works fine because it just return the exec results, even if it has\n // a \"grops\" property.\n var re = /./;\n re.exec = function () {\n var result = [];\n result.groups = {\n a: '7'\n };\n return result;\n };\n return ''.replace(re, '$') !== '7';\n});\n\n// IE <= 11 replaces $0 with the whole match, as if it was $&\n// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0\nvar REPLACE_KEEPS_$0 = function () {\n return 'a'.replace(/./, '$0') === '$0';\n}();\nvar REPLACE = wellKnownSymbol('replace');\n// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string\nvar REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = function () {\n if (/./[REPLACE]) {\n return /./[REPLACE]('a', '$0') === '';\n }\n return false;\n}();\n\n// Chrome 51 has a buggy \"split\" implementation when RegExp#exec !== nativeExec\n// Weex JS has frozen built-in prototypes, so use try / catch wrapper\nvar SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {\n var re = /(?:)/;\n var originalExec = re.exec;\n re.exec = function () {\n return originalExec.apply(this, arguments);\n };\n var result = 'ab'.split(re);\n return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';\n});\nmodule.exports = function (KEY, length, exec, sham) {\n var SYMBOL = wellKnownSymbol(KEY);\n var DELEGATES_TO_SYMBOL = !fails(function () {\n // String methods call symbol-named RegEp methods\n var O = {};\n O[SYMBOL] = function () {\n return 7;\n };\n return ''[KEY](O) != 7;\n });\n var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {\n // Symbol-named RegExp methods call .exec\n var execCalled = false;\n var re = /a/;\n if (KEY === 'split') {\n // We can't use real regex here since it causes deoptimization\n // and serious performance degradation in V8\n // https://github.com/zloirock/core-js/issues/306\n re = {};\n // RegExp[@@split] doesn't call the regex's exec method, but first creates\n // a new one. We need to return the patched regex when creating the new one.\n re.constructor = {};\n re.constructor[SPECIES] = function () {\n return re;\n };\n re.flags = '';\n re[SYMBOL] = /./[SYMBOL];\n }\n re.exec = function () {\n execCalled = true;\n return null;\n };\n re[SYMBOL]('');\n return !execCalled;\n });\n if (!DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0 && !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE) || KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC) {\n var nativeRegExpMethod = /./[SYMBOL];\n var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {\n if (regexp.exec === regexpExec) {\n if (DELEGATES_TO_SYMBOL && !forceStringMethod) {\n // The native String method already delegates to @@method (this\n // polyfilled function), leasing to infinite recursion.\n // We avoid it by directly calling the native @@method method.\n return {\n done: true,\n value: nativeRegExpMethod.call(regexp, str, arg2)\n };\n }\n return {\n done: true,\n value: nativeMethod.call(str, regexp, arg2)\n };\n }\n return {\n done: false\n };\n }, {\n REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,\n REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE\n });\n var stringMethod = methods[0];\n var regexMethod = methods[1];\n redefine(String.prototype, KEY, stringMethod);\n redefine(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function (string, arg) {\n return regexMethod.call(string, this, arg);\n }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function (string) {\n return regexMethod.call(string, this);\n });\n }\n if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);\n};\n\n},{\"../internals/create-non-enumerable-property\":23,\"../internals/fails\":37,\"../internals/redefine\":87,\"../internals/regexp-exec\":89,\"../internals/well-known-symbol\":116,\"../modules/es.regexp.exec\":140}],39:[function(require,module,exports){\nvar aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0:\n return function () {\n return fn.call(that);\n };\n case 1:\n return function (a) {\n return fn.call(that, a);\n };\n case 2:\n return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3:\n return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function /* ...args */\n () {\n return fn.apply(that, arguments);\n };\n};\n\n},{\"../internals/a-function\":1}],40:[function(require,module,exports){\nvar path = require('../internals/path');\nvar global = require('../internals/global');\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace]) : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n\n},{\"../internals/global\":43,\"../internals/path\":83}],41:[function(require,module,exports){\nvar classof = require('../internals/classof');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar ITERATOR = wellKnownSymbol('iterator');\nmodule.exports = function (it) {\n if (it != undefined) return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)];\n};\n\n},{\"../internals/classof\":19,\"../internals/iterators\":61,\"../internals/well-known-symbol\":116}],42:[function(require,module,exports){\nvar anObject = require('../internals/an-object');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nmodule.exports = function (it) {\n var iteratorMethod = getIteratorMethod(it);\n if (typeof iteratorMethod != 'function') {\n throw TypeError(String(it) + ' is not iterable');\n }\n return anObject(iteratorMethod.call(it));\n};\n\n},{\"../internals/an-object\":6,\"../internals/get-iterator-method\":41}],43:[function(require,module,exports){\n(function (global){\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 no-undef\ncheck(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || check(typeof self == 'object' && self) || check(typeof global == 'object' && global) ||\n// eslint-disable-next-line no-new-func\nFunction('return this')();\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}],44:[function(require,module,exports){\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n},{}],45:[function(require,module,exports){\nmodule.exports = {};\n\n},{}],46:[function(require,module,exports){\nvar global = require('../internals/global');\nmodule.exports = function (a, b) {\n var console = global.console;\n if (console && console.error) {\n arguments.length === 1 ? console.error(a) : console.error(a, b);\n }\n};\n\n},{\"../internals/global\":43}],47:[function(require,module,exports){\nvar getBuiltIn = require('../internals/get-built-in');\nmodule.exports = getBuiltIn('document', 'documentElement');\n\n},{\"../internals/get-built-in\":40}],48:[function(require,module,exports){\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () {\n return 7;\n }\n }).a != 7;\n});\n\n},{\"../internals/descriptors\":29,\"../internals/document-create-element\":30,\"../internals/fails\":37}],49:[function(require,module,exports){\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\nvar split = ''.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\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n\n},{\"../internals/classof-raw\":18,\"../internals/fails\":37}],50:[function(require,module,exports){\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n typeof (NewTarget = dummy.constructor) == 'function' && NewTarget !== Wrapper && isObject(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n\n},{\"../internals/is-object\":56,\"../internals/object-set-prototype-of\":80}],51:[function(require,module,exports){\nvar store = require('../internals/shared-store');\nvar functionToString = Function.toString;\n\n// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\nmodule.exports = store.inspectSource;\n\n},{\"../internals/shared-store\":98}],52:[function(require,module,exports){\nvar NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar objectHas = require('../internals/has');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar WeakMap = global.WeakMap;\nvar set, get, has;\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n }\n return state;\n };\n};\nif (NATIVE_WEAK_MAP) {\n var store = new WeakMap();\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n\n},{\"../internals/create-non-enumerable-property\":23,\"../internals/global\":43,\"../internals/has\":44,\"../internals/hidden-keys\":45,\"../internals/is-object\":56,\"../internals/native-weak-map\":66,\"../internals/shared-key\":97}],53:[function(require,module,exports){\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n\n},{\"../internals/iterators\":61,\"../internals/well-known-symbol\":116}],54:[function(require,module,exports){\nvar classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.github.io/ecma262/#sec-isarray\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n\n},{\"../internals/classof-raw\":18}],55:[function(require,module,exports){\nvar fails = require('../internals/fails');\nvar replacement = /#|\\.prototype\\./;\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true : value == NATIVE ? false : typeof detection == 'function' ? fails(detection) : !!detection;\n};\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\nmodule.exports = isForced;\n\n},{\"../internals/fails\":37}],56:[function(require,module,exports){\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n},{}],57:[function(require,module,exports){\nmodule.exports = false;\n\n},{}],58:[function(require,module,exports){\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.github.io/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n\n},{\"../internals/classof-raw\":18,\"../internals/is-object\":56,\"../internals/well-known-symbol\":116}],59:[function(require,module,exports){\nvar anObject = require('../internals/an-object');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\nvar iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {\n var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1);\n var iterator, iterFn, index, length, result, next, step;\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (typeof iterFn != 'function') throw TypeError('Target is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = toLength(iterable.length); length > index; index++) {\n result = AS_ENTRIES ? boundFunction(anObject(step = iterable[index])[0], step[1]) : boundFunction(iterable[index]);\n if (result && result instanceof Result) return result;\n }\n return new Result(false);\n }\n iterator = iterFn.call(iterable);\n }\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);\n if (typeof result == 'object' && result && result instanceof Result) return result;\n }\n return new Result(false);\n};\niterate.stop = function (result) {\n return new Result(true, result);\n};\n\n},{\"../internals/an-object\":6,\"../internals/call-with-safe-iteration-closing\":16,\"../internals/function-bind-context\":39,\"../internals/get-iterator-method\":41,\"../internals/is-array-iterator-method\":53,\"../internals/to-length\":109}],60:[function(require,module,exports){\n'use strict';\n\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\nvar returnThis = function () {\n return this;\n};\n\n// `%IteratorPrototype%` object\n// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\nif (IteratorPrototype == undefined) IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nif (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {\n createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);\n}\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n\n},{\"../internals/create-non-enumerable-property\":23,\"../internals/has\":44,\"../internals/is-pure\":57,\"../internals/object-get-prototype-of\":76,\"../internals/well-known-symbol\":116}],61:[function(require,module,exports){\nmodule.exports = {};\n\n},{}],62:[function(require,module,exports){\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar classof = require('../internals/classof-raw');\nvar macrotask = require('../internals/task').set;\nvar IS_IOS = require('../internals/engine-is-ios');\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar IS_NODE = classof(process) == 'process';\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\nvar flush, head, last, notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!queueMicrotask) {\n flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (error) {\n if (head) notify();else last = undefined;\n throw error;\n }\n }\n last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n } else if (MutationObserver && !IS_IOS) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, {\n characterData: true\n });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n then = promise.then;\n notify = function () {\n then.call(promise, flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n}\nmodule.exports = queueMicrotask || function (fn) {\n var task = {\n fn: fn,\n next: undefined\n };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n }\n last = task;\n};\n\n},{\"../internals/classof-raw\":18,\"../internals/engine-is-ios\":32,\"../internals/global\":43,\"../internals/object-get-own-property-descriptor\":72,\"../internals/task\":105}],63:[function(require,module,exports){\nvar global = require('../internals/global');\nmodule.exports = global.Promise;\n\n},{\"../internals/global\":43}],64:[function(require,module,exports){\nvar fails = require('../internals/fails');\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n\n},{\"../internals/fails\":37}],65:[function(require,module,exports){\nvar fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\nvar ITERATOR = wellKnownSymbol('iterator');\nmodule.exports = !fails(function () {\n var url = new URL('b?a=1&b=2&c=3', 'http://a');\n var searchParams = url.searchParams;\n var result = '';\n url.pathname = 'c%20d';\n searchParams.forEach(function (value, key) {\n searchParams['delete']('b');\n result += key + value;\n });\n return IS_PURE && !url.toJSON || !searchParams.sort || url.href !== 'http://a/c%20d?a=1&c=3' || searchParams.get('c') !== '3' || String(new URLSearchParams('?a=1')) !== 'a=1' || !searchParams[ITERATOR]\n // throws in Edge\n || new URL('https://a@b').username !== 'a' || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'\n // not punycoded in Edge\n || new URL('http://тест').host !== 'xn--e1aybc'\n // not escaped in Chrome 62-\n || new URL('http://a#б').hash !== '#%D0%B1'\n // fails in Chrome 66-\n || result !== 'a1c3'\n // throws in Safari\n || new URL('http://x', undefined).host !== 'x';\n});\n\n},{\"../internals/fails\":37,\"../internals/is-pure\":57,\"../internals/well-known-symbol\":116}],66:[function(require,module,exports){\nvar global = require('../internals/global');\nvar inspectSource = require('../internals/inspect-source');\nvar WeakMap = global.WeakMap;\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n\n},{\"../internals/global\":43,\"../internals/inspect-source\":51}],67:[function(require,module,exports){\n'use strict';\n\nvar aFunction = require('../internals/a-function');\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n};\n\n// 25.4.1.5 NewPromiseCapability(C)\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n\n},{\"../internals/a-function\":1}],68:[function(require,module,exports){\n'use strict';\n\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar nativeAssign = Object.assign;\nvar defineProperty = Object.defineProperty;\n\n// `Object.assign` method\n// https://tc39.github.io/ecma262/#sec-object.assign\nmodule.exports = !nativeAssign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && nativeAssign({\n b: 1\n }, nativeAssign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), {\n b: 2\n })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) {\n B[chr] = chr;\n });\n return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) {\n // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];\n }\n }\n return T;\n} : nativeAssign;\n\n},{\"../internals/descriptors\":29,\"../internals/fails\":37,\"../internals/indexed-object\":49,\"../internals/object-get-own-property-symbols\":75,\"../internals/object-keys\":78,\"../internals/object-property-is-enumerable\":79,\"../internals/to-object\":110}],69:[function(require,module,exports){\nvar anObject = require('../internals/an-object');\nvar defineProperties = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar EmptyConstructor = function () {/* empty */};\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n /* global ActiveXObject */\n activeXDocument = document.domain && new ActiveXObject('htmlfile');\n } catch (error) {/* ignore */}\n NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.github.io/ecma262/#sec-object.create\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : defineProperties(result, Properties);\n};\n\n},{\"../internals/an-object\":6,\"../internals/document-create-element\":30,\"../internals/enum-bug-keys\":35,\"../internals/hidden-keys\":45,\"../internals/html\":47,\"../internals/object-define-properties\":70,\"../internals/shared-key\":97}],70:[function(require,module,exports){\nvar DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperties\nmodule.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);\n return O;\n};\n\n},{\"../internals/an-object\":6,\"../internals/descriptors\":29,\"../internals/object-define-property\":71,\"../internals/object-keys\":78}],71:[function(require,module,exports){\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) {/* empty */}\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n},{\"../internals/an-object\":6,\"../internals/descriptors\":29,\"../internals/ie8-dom-define\":48,\"../internals/to-primitive\":111}],72:[function(require,module,exports){\nvar DESCRIPTORS = require('../internals/descriptors');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return nativeGetOwnPropertyDescriptor(O, P);\n } catch (error) {/* empty */}\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n\n},{\"../internals/create-property-descriptor\":24,\"../internals/descriptors\":29,\"../internals/has\":44,\"../internals/ie8-dom-define\":48,\"../internals/object-property-is-enumerable\":79,\"../internals/to-indexed-object\":107,\"../internals/to-primitive\":111}],73:[function(require,module,exports){\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar toString = {}.toString;\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];\nvar getWindowNames = function (it) {\n try {\n return nativeGetOwnPropertyNames(it);\n } catch (error) {\n return windowNames.slice();\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : nativeGetOwnPropertyNames(toIndexedObject(it));\n};\n\n},{\"../internals/object-get-own-property-names\":74,\"../internals/to-indexed-object\":107}],74:[function(require,module,exports){\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n\n},{\"../internals/enum-bug-keys\":35,\"../internals/object-keys-internal\":77}],75:[function(require,module,exports){\nexports.f = Object.getOwnPropertySymbols;\n\n},{}],76:[function(require,module,exports){\nvar has = require('../internals/has');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar ObjectPrototype = Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n }\n return O instanceof Object ? ObjectPrototype : null;\n};\n\n},{\"../internals/correct-prototype-getter\":21,\"../internals/has\":44,\"../internals/shared-key\":97,\"../internals/to-object\":110}],77:[function(require,module,exports){\nvar has = require('../internals/has');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\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) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n},{\"../internals/array-includes\":9,\"../internals/has\":44,\"../internals/hidden-keys\":45,\"../internals/to-indexed-object\":107}],78:[function(require,module,exports){\nvar internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.github.io/ecma262/#sec-object.keys\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n\n},{\"../internals/enum-bug-keys\":35,\"../internals/object-keys-internal\":77}],79:[function(require,module,exports){\n'use strict';\n\nvar nativePropertyIsEnumerable = {}.propertyIsEnumerable;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({\n 1: 2\n}, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : nativePropertyIsEnumerable;\n\n},{}],80:[function(require,module,exports){\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n setter.call(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) {/* empty */}\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter.call(O, proto);else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n\n},{\"../internals/a-possible-prototype\":2,\"../internals/an-object\":6}],81:[function(require,module,exports){\n'use strict';\n\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n\n},{\"../internals/classof\":19,\"../internals/to-string-tag-support\":112}],82:[function(require,module,exports){\nvar getBuiltIn = require('../internals/get-built-in');\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\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 ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n\n},{\"../internals/an-object\":6,\"../internals/get-built-in\":40,\"../internals/object-get-own-property-names\":74,\"../internals/object-get-own-property-symbols\":75}],83:[function(require,module,exports){\nvar global = require('../internals/global');\nmodule.exports = global;\n\n},{\"../internals/global\":43}],84:[function(require,module,exports){\nmodule.exports = function (exec) {\n try {\n return {\n error: false,\n value: exec()\n };\n } catch (error) {\n return {\n error: true,\n value: error\n };\n }\n};\n\n},{}],85:[function(require,module,exports){\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n\n},{\"../internals/an-object\":6,\"../internals/is-object\":56,\"../internals/new-promise-capability\":67}],86:[function(require,module,exports){\nvar redefine = require('../internals/redefine');\nmodule.exports = function (target, src, options) {\n for (var key in src) redefine(target, key, src[key], options);\n return target;\n};\n\n},{\"../internals/redefine\":87}],87:[function(require,module,exports){\nvar global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);\n enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n if (O === global) {\n if (simple) O[key] = value;else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;else createNonEnumerableProperty(O, key, value);\n // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n\n},{\"../internals/create-non-enumerable-property\":23,\"../internals/global\":43,\"../internals/has\":44,\"../internals/inspect-source\":51,\"../internals/internal-state\":52,\"../internals/set-global\":94}],88:[function(require,module,exports){\nvar classof = require('./classof-raw');\nvar regexpExec = require('./regexp-exec');\n\n// `RegExpExec` abstract operation\n// https://tc39.github.io/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n var exec = R.exec;\n if (typeof exec === 'function') {\n var result = exec.call(R, S);\n if (typeof result !== 'object') {\n throw TypeError('RegExp exec method returned something other than an Object or null');\n }\n return result;\n }\n if (classof(R) !== 'RegExp') {\n throw TypeError('RegExp#exec called on incompatible receiver');\n }\n return regexpExec.call(R, S);\n};\n\n},{\"./classof-raw\":18,\"./regexp-exec\":89}],89:[function(require,module,exports){\n'use strict';\n\nvar regexpFlags = require('./regexp-flags');\nvar stickyHelpers = require('./regexp-sticky-helpers');\nvar nativeExec = RegExp.prototype.exec;\n// This always refers to the native implementation, because the\n// String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,\n// which loads this file before patching the method.\nvar nativeReplace = String.prototype.replace;\nvar patchedExec = nativeExec;\nvar UPDATES_LAST_INDEX_WRONG = function () {\n var re1 = /a/;\n var re2 = /b*/g;\n nativeExec.call(re1, 'a');\n nativeExec.call(re2, 'a');\n return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n}();\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y || stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;\nif (PATCH) {\n patchedExec = function exec(str) {\n var re = this;\n var lastIndex, reCopy, match, i;\n var sticky = UNSUPPORTED_Y && re.sticky;\n var flags = regexpFlags.call(re);\n var source = re.source;\n var charsAdded = 0;\n var strCopy = str;\n if (sticky) {\n flags = flags.replace('y', '');\n if (flags.indexOf('g') === -1) {\n flags += 'g';\n }\n strCopy = String(str).slice(re.lastIndex);\n // Support anchored sticky behavior.\n if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\\n')) {\n source = '(?: ' + source + ')';\n strCopy = ' ' + strCopy;\n charsAdded++;\n }\n // ^(? + rx + ) is needed, in combination with some str slicing, to\n // simulate the 'y' flag.\n reCopy = new RegExp('^(?:' + source + ')', flags);\n }\n if (NPCG_INCLUDED) {\n reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n }\n if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n match = nativeExec.call(sticky ? reCopy : re, strCopy);\n if (sticky) {\n if (match) {\n match.input = match.input.slice(charsAdded);\n match[0] = match[0].slice(charsAdded);\n match.index = re.lastIndex;\n re.lastIndex += match[0].length;\n } else re.lastIndex = 0;\n } else if (UPDATES_LAST_INDEX_WRONG && match) {\n re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n }\n if (NPCG_INCLUDED && match && match.length > 1) {\n // Fix browsers whose `exec` methods don't consistently return `undefined`\n // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n nativeReplace.call(match[0], reCopy, function () {\n for (i = 1; i < arguments.length - 2; i++) {\n if (arguments[i] === undefined) match[i] = undefined;\n }\n });\n }\n return match;\n };\n}\nmodule.exports = patchedExec;\n\n},{\"./regexp-flags\":90,\"./regexp-sticky-helpers\":91}],90:[function(require,module,exports){\n'use strict';\n\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.sticky) result += 'y';\n return result;\n};\n\n},{\"../internals/an-object\":6}],91:[function(require,module,exports){\n'use strict';\n\nvar fails = require('./fails');\n\n// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,\n// so we use an intermediate function.\nfunction RE(s, f) {\n return RegExp(s, f);\n}\nexports.UNSUPPORTED_Y = fails(function () {\n // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\n var re = RE('a', 'y');\n re.lastIndex = 2;\n return re.exec('abcd') != null;\n});\nexports.BROKEN_CARET = fails(function () {\n // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n var re = RE('^r', 'gy');\n re.lastIndex = 2;\n return re.exec('str') != null;\n});\n\n},{\"./fails\":37}],92:[function(require,module,exports){\n// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n},{}],93:[function(require,module,exports){\n// `SameValue` abstract operation\n// https://tc39.github.io/ecma262/#sec-samevalue\nmodule.exports = Object.is || function is(x, y) {\n // eslint-disable-next-line no-self-compare\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n\n},{}],94:[function(require,module,exports){\nvar global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n }\n return value;\n};\n\n},{\"../internals/create-non-enumerable-property\":23,\"../internals/global\":43}],95:[function(require,module,exports){\n'use strict';\n\nvar getBuiltIn = require('../internals/get-built-in');\nvar definePropertyModule = require('../internals/object-define-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar SPECIES = wellKnownSymbol('species');\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n var defineProperty = definePropertyModule.f;\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineProperty(Constructor, SPECIES, {\n configurable: true,\n get: function () {\n return this;\n }\n });\n }\n};\n\n},{\"../internals/descriptors\":29,\"../internals/get-built-in\":40,\"../internals/object-define-property\":71,\"../internals/well-known-symbol\":116}],96:[function(require,module,exports){\nvar defineProperty = require('../internals/object-define-property').f;\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nmodule.exports = function (it, TAG, STATIC) {\n if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {\n defineProperty(it, TO_STRING_TAG, {\n configurable: true,\n value: TAG\n });\n }\n};\n\n},{\"../internals/has\":44,\"../internals/object-define-property\":71,\"../internals/well-known-symbol\":116}],97:[function(require,module,exports){\nvar shared = require('../internals/shared');\nvar uid = require('../internals/uid');\nvar keys = shared('keys');\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n\n},{\"../internals/shared\":99,\"../internals/uid\":113}],98:[function(require,module,exports){\nvar global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\nmodule.exports = store;\n\n},{\"../internals/global\":43,\"../internals/set-global\":94}],99:[function(require,module,exports){\nvar IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.6.5',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n\n},{\"../internals/is-pure\":57,\"../internals/shared-store\":98}],100:[function(require,module,exports){\nvar anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.github.io/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);\n};\n\n},{\"../internals/a-function\":1,\"../internals/an-object\":6,\"../internals/well-known-symbol\":116}],101:[function(require,module,exports){\nvar toInteger = require('../internals/to-integer');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `String.prototype.{ codePointAt, at }` methods implementation\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = String(requireObjectCoercible($this));\n var position = toInteger(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = S.charCodeAt(position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? S.charAt(position) : first : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n\n},{\"../internals/require-object-coercible\":92,\"../internals/to-integer\":108}],102:[function(require,module,exports){\n'use strict';\n\n// based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js\nvar maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1\nvar base = 36;\nvar tMin = 1;\nvar tMax = 26;\nvar skew = 38;\nvar damp = 700;\nvar initialBias = 72;\nvar initialN = 128; // 0x80\nvar delimiter = '-'; // '\\x2D'\nvar regexNonASCII = /[^\\0-\\u007E]/; // non-ASCII chars\nvar regexSeparators = /[.\\u3002\\uFF0E\\uFF61]/g; // RFC 3490 separators\nvar OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';\nvar baseMinusTMin = base - tMin;\nvar floor = Math.floor;\nvar stringFromCharCode = String.fromCharCode;\n\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n */\nvar ucs2decode = function (string) {\n var output = [];\n var counter = 0;\n var length = string.length;\n while (counter < length) {\n var value = string.charCodeAt(counter++);\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n // It's a high surrogate, and there is a next character.\n var extra = string.charCodeAt(counter++);\n if ((extra & 0xFC00) == 0xDC00) {\n // Low surrogate.\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n // It's an unmatched surrogate; only append this code unit, in case the\n // next code unit is the high surrogate of a surrogate pair.\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n return output;\n};\n\n/**\n * Converts a digit/integer into a basic code point.\n */\nvar digitToBasic = function (digit) {\n // 0..25 map to ASCII a..z or A..Z\n // 26..35 map to ASCII 0..9\n return digit + 22 + 75 * (digit < 26);\n};\n\n/**\n * Bias adaptation function as per section 3.4 of RFC 3492.\n * https://tools.ietf.org/html/rfc3492#section-3.4\n */\nvar adapt = function (delta, numPoints, firstTime) {\n var k = 0;\n delta = firstTime ? floor(delta / damp) : delta >> 1;\n delta += floor(delta / numPoints);\n for (; delta > baseMinusTMin * tMax >> 1; k += base) {\n delta = floor(delta / baseMinusTMin);\n }\n return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n};\n\n/**\n * Converts a string of Unicode symbols (e.g. a domain name label) to a\n * Punycode string of ASCII-only symbols.\n */\n// eslint-disable-next-line max-statements\nvar encode = function (input) {\n var output = [];\n\n // Convert the input in UCS-2 to an array of Unicode code points.\n input = ucs2decode(input);\n\n // Cache the length.\n var inputLength = input.length;\n\n // Initialize the state.\n var n = initialN;\n var delta = 0;\n var bias = initialBias;\n var i, currentValue;\n\n // Handle the basic code points.\n for (i = 0; i < input.length; i++) {\n currentValue = input[i];\n if (currentValue < 0x80) {\n output.push(stringFromCharCode(currentValue));\n }\n }\n var basicLength = output.length; // number of basic code points.\n var handledCPCount = basicLength; // number of code points that have been handled;\n\n // Finish the basic string with a delimiter unless it's empty.\n if (basicLength) {\n output.push(delimiter);\n }\n\n // Main encoding loop:\n while (handledCPCount < inputLength) {\n // All non-basic code points < n have been handled already. Find the next larger one:\n var m = maxInt;\n for (i = 0; i < input.length; i++) {\n currentValue = input[i];\n if (currentValue >= n && currentValue < m) {\n m = currentValue;\n }\n }\n\n // Increase `delta` enough to advance the decoder's state to , but guard against overflow.\n var handledCPCountPlusOne = handledCPCount + 1;\n if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n throw RangeError(OVERFLOW_ERROR);\n }\n delta += (m - n) * handledCPCountPlusOne;\n n = m;\n for (i = 0; i < input.length; i++) {\n currentValue = input[i];\n if (currentValue < n && ++delta > maxInt) {\n throw RangeError(OVERFLOW_ERROR);\n }\n if (currentValue == n) {\n // Represent delta as a generalized variable-length integer.\n var q = delta;\n for /* no condition */\n (var k = base;; k += base) {\n var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;\n if (q < t) break;\n var qMinusT = q - t;\n var baseMinusT = base - t;\n output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT)));\n q = floor(qMinusT / baseMinusT);\n }\n output.push(stringFromCharCode(digitToBasic(q)));\n bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n delta = 0;\n ++handledCPCount;\n }\n }\n ++delta;\n ++n;\n }\n return output.join('');\n};\nmodule.exports = function (input) {\n var encoded = [];\n var labels = input.toLowerCase().replace(regexSeparators, '\\u002E').split('.');\n var i, label;\n for (i = 0; i < labels.length; i++) {\n label = labels[i];\n encoded.push(regexNonASCII.test(label) ? 'xn--' + encode(label) : label);\n }\n return encoded.join('.');\n};\n\n},{}],103:[function(require,module,exports){\nvar fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;\n });\n};\n\n},{\"../internals/fails\":37,\"../internals/whitespaces\":117}],104:[function(require,module,exports){\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar whitespaces = require('../internals/whitespaces');\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = String(requireObjectCoercible($this));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n };\n};\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.github.io/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n\n},{\"../internals/require-object-coercible\":92,\"../internals/whitespaces\":117}],105:[function(require,module,exports){\nvar global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\nvar bind = require('../internals/function-bind-context');\nvar html = require('../internals/html');\nvar createElement = require('../internals/document-create-element');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar location = global.location;\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function (id) {\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\nvar listener = function (event) {\n run(event.data);\n};\nvar post = function (id) {\n // old engines have not location.origin\n global.postMessage(id + '', location.protocol + '//' + location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (classof(process) == 'process') {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = bind(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts && !fails(post) && location.protocol !== 'file:') {\n defer = post;\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\nmodule.exports = {\n set: set,\n clear: clear\n};\n\n},{\"../internals/classof-raw\":18,\"../internals/document-create-element\":30,\"../internals/engine-is-ios\":32,\"../internals/fails\":37,\"../internals/function-bind-context\":39,\"../internals/global\":43,\"../internals/html\":47}],106:[function(require,module,exports){\nvar toInteger = require('../internals/to-integer');\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 = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n\n},{\"../internals/to-integer\":108}],107:[function(require,module,exports){\n// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n\n},{\"../internals/indexed-object\":49,\"../internals/require-object-coercible\":92}],108:[function(require,module,exports){\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.github.io/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n\n},{}],109:[function(require,module,exports){\nvar toInteger = require('../internals/to-integer');\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n\n},{\"../internals/to-integer\":108}],110:[function(require,module,exports){\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `ToObject` abstract operation\n// https://tc39.github.io/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n\n},{\"../internals/require-object-coercible\":92}],111:[function(require,module,exports){\nvar isObject = require('../internals/is-object');\n\n// `ToPrimitive` abstract operation\n// https://tc39.github.io/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n},{\"../internals/is-object\":56}],112:[function(require,module,exports){\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\ntest[TO_STRING_TAG] = 'z';\nmodule.exports = String(test) === '[object z]';\n\n},{\"../internals/well-known-symbol\":116}],113:[function(require,module,exports){\nvar id = 0;\nvar postfix = Math.random();\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n\n},{}],114:[function(require,module,exports){\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nmodule.exports = NATIVE_SYMBOL\n// eslint-disable-next-line no-undef\n&& !Symbol.sham\n// eslint-disable-next-line no-undef\n&& typeof Symbol.iterator == 'symbol';\n\n},{\"../internals/native-symbol\":64}],115:[function(require,module,exports){\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nexports.f = wellKnownSymbol;\n\n},{\"../internals/well-known-symbol\":116}],116:[function(require,module,exports){\nvar global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar has = require('../internals/has');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name)) {\n if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n }\n return WellKnownSymbolsStore[name];\n};\n\n},{\"../internals/global\":43,\"../internals/has\":44,\"../internals/native-symbol\":64,\"../internals/shared\":99,\"../internals/uid\":113,\"../internals/use-symbol-as-uid\":114}],117:[function(require,module,exports){\n// a string of all valid unicode whitespaces\n// eslint-disable-next-line max-len\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n\n},{}],118:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\nvar SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;\n\n// `Array.prototype.concat` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({\n target: 'Array',\n proto: true,\n forced: FORCED\n}, {\n concat: function concat(arg) {\n // eslint-disable-line no-unused-vars\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = toLength(E.length);\n if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n\n},{\"../internals/array-method-has-species-support\":11,\"../internals/array-species-create\":15,\"../internals/create-property\":25,\"../internals/engine-v8-version\":34,\"../internals/export\":36,\"../internals/fails\":37,\"../internals/is-array\":54,\"../internals/is-object\":56,\"../internals/to-length\":109,\"../internals/to-object\":110,\"../internals/well-known-symbol\":116}],119:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n// Edge 14- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({\n target: 'Array',\n proto: true,\n forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH\n}, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n},{\"../internals/array-iteration\":10,\"../internals/array-method-has-species-support\":11,\"../internals/array-method-uses-to-length\":13,\"../internals/export\":36}],120:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\nvar USES_TO_LENGTH = arrayMethodUsesToLength(FIND);\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () {\n SKIPS_HOLES = false;\n});\n\n// `Array.prototype.find` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.find\n$({\n target: 'Array',\n proto: true,\n forced: SKIPS_HOLES || !USES_TO_LENGTH\n}, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n\n},{\"../internals/add-to-unscopables\":3,\"../internals/array-iteration\":10,\"../internals/array-method-uses-to-length\":13,\"../internals/export\":36}],121:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar forEach = require('../internals/array-for-each');\n\n// `Array.prototype.forEach` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n$({\n target: 'Array',\n proto: true,\n forced: [].forEach != forEach\n}, {\n forEach: forEach\n});\n\n},{\"../internals/array-for-each\":7,\"../internals/export\":36}],122:[function(require,module,exports){\nvar $ = require('../internals/export');\nvar from = require('../internals/array-from');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.github.io/ecma262/#sec-array.from\n$({\n target: 'Array',\n stat: true,\n forced: INCORRECT_ITERATION\n}, {\n from: from\n});\n\n},{\"../internals/array-from\":8,\"../internals/check-correctness-of-iteration\":17,\"../internals/export\":36}],123:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\nvar nativeIndexOf = [].indexOf;\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;\nvar STRICT_METHOD = arrayMethodIsStrict('indexOf');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', {\n ACCESSORS: true,\n 1: 0\n});\n\n// `Array.prototype.indexOf` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n$({\n target: 'Array',\n proto: true,\n forced: NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH\n}, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf.apply(this, arguments) || 0 : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n},{\"../internals/array-includes\":9,\"../internals/array-method-is-strict\":12,\"../internals/array-method-uses-to-length\":13,\"../internals/export\":36}],124:[function(require,module,exports){\n'use strict';\n\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.github.io/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated),\n // target\n index: 0,\n // next index\n kind: kind // kind\n });\n // `%ArrayIteratorPrototype%.next` method\n // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return {\n value: undefined,\n done: true\n };\n }\n if (kind == 'keys') return {\n value: index,\n done: false\n };\n if (kind == 'values') return {\n value: target[index],\n done: false\n };\n return {\n value: [index, target[index]],\n done: false\n };\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.github.io/ecma262/#sec-createmappedargumentsobject\nIterators.Arguments = Iterators.Array;\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n},{\"../internals/add-to-unscopables\":3,\"../internals/define-iterator\":27,\"../internals/internal-state\":52,\"../internals/iterators\":61,\"../internals/to-indexed-object\":107}],125:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar IndexedObject = require('../internals/indexed-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar nativeJoin = [].join;\nvar ES3_STRINGS = IndexedObject != Object;\nvar STRICT_METHOD = arrayMethodIsStrict('join', ',');\n\n// `Array.prototype.join` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.join\n$({\n target: 'Array',\n proto: true,\n forced: ES3_STRINGS || !STRICT_METHOD\n}, {\n join: function join(separator) {\n return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);\n }\n});\n\n},{\"../internals/array-method-is-strict\":12,\"../internals/export\":36,\"../internals/indexed-object\":49,\"../internals/to-indexed-object\":107}],126:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n// FF49- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('map');\n\n// `Array.prototype.map` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({\n target: 'Array',\n proto: true,\n forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH\n}, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n},{\"../internals/array-iteration\":10,\"../internals/array-method-has-species-support\":11,\"../internals/array-method-uses-to-length\":13,\"../internals/export\":36}],127:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\nvar STRICT_METHOD = arrayMethodIsStrict('reduce');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('reduce', {\n 1: 0\n});\n\n// `Array.prototype.reduce` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n$({\n target: 'Array',\n proto: true,\n forced: !STRICT_METHOD || !USES_TO_LENGTH\n}, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n},{\"../internals/array-method-is-strict\":12,\"../internals/array-method-uses-to-length\":13,\"../internals/array-reduce\":14,\"../internals/export\":36}],128:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar createProperty = require('../internals/create-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('slice', {\n ACCESSORS: true,\n 0: 0,\n 1: 2\n});\nvar SPECIES = wellKnownSymbol('species');\nvar nativeSlice = [].slice;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({\n target: 'Array',\n proto: true,\n forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH\n}, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = toLength(O.length);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return nativeSlice.call(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n\n},{\"../internals/array-method-has-species-support\":11,\"../internals/array-method-uses-to-length\":13,\"../internals/create-property\":25,\"../internals/export\":36,\"../internals/is-array\":54,\"../internals/is-object\":56,\"../internals/to-absolute-index\":106,\"../internals/to-indexed-object\":107,\"../internals/to-length\":109,\"../internals/well-known-symbol\":116}],129:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('splice', {\n ACCESSORS: true,\n 0: 0,\n 1: 2\n});\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({\n target: 'Array',\n proto: true,\n forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH\n}, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n\n},{\"../internals/array-method-has-species-support\":11,\"../internals/array-method-uses-to-length\":13,\"../internals/array-species-create\":15,\"../internals/create-property\":25,\"../internals/export\":36,\"../internals/to-absolute-index\":106,\"../internals/to-integer\":108,\"../internals/to-length\":109,\"../internals/to-object\":110}],130:[function(require,module,exports){\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar dateToPrimitive = require('../internals/date-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\nvar DatePrototype = Date.prototype;\n\n// `Date.prototype[@@toPrimitive]` method\n// https://tc39.github.io/ecma262/#sec-date.prototype-@@toprimitive\nif (!(TO_PRIMITIVE in DatePrototype)) {\n createNonEnumerableProperty(DatePrototype, TO_PRIMITIVE, dateToPrimitive);\n}\n\n},{\"../internals/create-non-enumerable-property\":23,\"../internals/date-to-primitive\":26,\"../internals/well-known-symbol\":116}],131:[function(require,module,exports){\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineProperty = require('../internals/object-define-property').f;\nvar FunctionPrototype = Function.prototype;\nvar FunctionPrototypeToString = FunctionPrototype.toString;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// Function instances `.name` property\n// https://tc39.github.io/ecma262/#sec-function-instances-name\nif (DESCRIPTORS && !(NAME in FunctionPrototype)) {\n defineProperty(FunctionPrototype, NAME, {\n configurable: true,\n get: function () {\n try {\n return FunctionPrototypeToString.call(this).match(nameRE)[1];\n } catch (error) {\n return '';\n }\n }\n });\n}\n\n},{\"../internals/descriptors\":29,\"../internals/object-define-property\":71}],132:[function(require,module,exports){\n'use strict';\n\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isForced = require('../internals/is-forced');\nvar redefine = require('../internals/redefine');\nvar has = require('../internals/has');\nvar classof = require('../internals/classof-raw');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar toPrimitive = require('../internals/to-primitive');\nvar fails = require('../internals/fails');\nvar create = require('../internals/object-create');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar trim = require('../internals/string-trim').trim;\nvar NUMBER = 'Number';\nvar NativeNumber = global[NUMBER];\nvar NumberPrototype = NativeNumber.prototype;\n\n// Opera ~12 has broken Object#toString\nvar BROKEN_CLASSOF = classof(create(NumberPrototype)) == NUMBER;\n\n// `ToNumber` abstract operation\n// https://tc39.github.io/ecma262/#sec-tonumber\nvar toNumber = function (argument) {\n var it = toPrimitive(argument, false);\n var first, third, radix, maxCode, digits, length, index, code;\n if (typeof it == 'string' && it.length > 2) {\n it = trim(it);\n first = it.charCodeAt(0);\n if (first === 43 || first === 45) {\n third = it.charCodeAt(2);\n if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if (first === 48) {\n switch (it.charCodeAt(1)) {\n case 66:\n case 98:\n radix = 2;\n maxCode = 49;\n break;\n // fast equal of /^0b[01]+$/i\n case 79:\n case 111:\n radix = 8;\n maxCode = 55;\n break;\n // fast equal of /^0o[0-7]+$/i\n default:\n return +it;\n }\n digits = it.slice(2);\n length = digits.length;\n for (index = 0; index < length; index++) {\n code = digits.charCodeAt(index);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if (code < 48 || code > maxCode) return NaN;\n }\n return parseInt(digits, radix);\n }\n }\n return +it;\n};\n\n// `Number` constructor\n// https://tc39.github.io/ecma262/#sec-number-constructor\nif (isForced(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {\n var NumberWrapper = function Number(value) {\n var it = arguments.length < 1 ? 0 : value;\n var dummy = this;\n return dummy instanceof NumberWrapper\n // check on 1..constructor(foo) case\n && (BROKEN_CLASSOF ? fails(function () {\n NumberPrototype.valueOf.call(dummy);\n }) : classof(dummy) != NUMBER) ? inheritIfRequired(new NativeNumber(toNumber(it)), dummy, NumberWrapper) : toNumber(it);\n };\n for (var keys = DESCRIPTORS ? getOwnPropertyNames(NativeNumber) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES2015 (in case, if modules with ES2015 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' + 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger').split(','), j = 0, key; keys.length > j; j++) {\n if (has(NativeNumber, key = keys[j]) && !has(NumberWrapper, key)) {\n defineProperty(NumberWrapper, key, getOwnPropertyDescriptor(NativeNumber, key));\n }\n }\n NumberWrapper.prototype = NumberPrototype;\n NumberPrototype.constructor = NumberWrapper;\n redefine(global, NUMBER, NumberWrapper);\n}\n\n},{\"../internals/classof-raw\":18,\"../internals/descriptors\":29,\"../internals/fails\":37,\"../internals/global\":43,\"../internals/has\":44,\"../internals/inherit-if-required\":50,\"../internals/is-forced\":55,\"../internals/object-create\":69,\"../internals/object-define-property\":71,\"../internals/object-get-own-property-descriptor\":72,\"../internals/object-get-own-property-names\":74,\"../internals/redefine\":87,\"../internals/string-trim\":104,\"../internals/to-primitive\":111}],133:[function(require,module,exports){\nvar $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.github.io/ecma262/#sec-object.assign\n$({\n target: 'Object',\n stat: true,\n forced: Object.assign !== assign\n}, {\n assign: assign\n});\n\n},{\"../internals/export\":36,\"../internals/object-assign\":68}],134:[function(require,module,exports){\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar createProperty = require('../internals/create-property');\n\n// `Object.fromEntries` method\n// https://github.com/tc39/proposal-object-from-entries\n$({\n target: 'Object',\n stat: true\n}, {\n fromEntries: function fromEntries(iterable) {\n var obj = {};\n iterate(iterable, function (k, v) {\n createProperty(obj, k, v);\n }, undefined, true);\n return obj;\n }\n});\n\n},{\"../internals/create-property\":25,\"../internals/export\":36,\"../internals/iterate\":59}],135:[function(require,module,exports){\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toObject = require('../internals/to-object');\nvar nativeGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\nvar FAILS_ON_PRIMITIVES = fails(function () {\n nativeGetPrototypeOf(1);\n});\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\n$({\n target: 'Object',\n stat: true,\n forced: FAILS_ON_PRIMITIVES,\n sham: !CORRECT_PROTOTYPE_GETTER\n}, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject(it));\n }\n});\n\n},{\"../internals/correct-prototype-getter\":21,\"../internals/export\":36,\"../internals/fails\":37,\"../internals/object-get-prototype-of\":76,\"../internals/to-object\":110}],136:[function(require,module,exports){\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\nvar FAILS_ON_PRIMITIVES = fails(function () {\n nativeKeys(1);\n});\n\n// `Object.keys` method\n// https://tc39.github.io/ecma262/#sec-object.keys\n$({\n target: 'Object',\n stat: true,\n forced: FAILS_ON_PRIMITIVES\n}, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n\n},{\"../internals/export\":36,\"../internals/fails\":37,\"../internals/object-keys\":78,\"../internals/to-object\":110}],137:[function(require,module,exports){\nvar $ = require('../internals/export');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n$({\n target: 'Object',\n stat: true\n}, {\n setPrototypeOf: setPrototypeOf\n});\n\n},{\"../internals/export\":36,\"../internals/object-set-prototype-of\":80}],138:[function(require,module,exports){\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar redefine = require('../internals/redefine');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.github.io/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n redefine(Object.prototype, 'toString', toString, {\n unsafe: true\n });\n}\n\n},{\"../internals/object-to-string\":81,\"../internals/redefine\":87,\"../internals/to-string-tag-support\":112}],139:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar redefine = require('../internals/redefine');\nvar redefineAll = require('../internals/redefine-all');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar isObject = require('../internals/is-object');\nvar aFunction = require('../internals/a-function');\nvar anInstance = require('../internals/an-instance');\nvar classof = require('../internals/classof-raw');\nvar inspectSource = require('../internals/inspect-source');\nvar iterate = require('../internals/iterate');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar promiseResolve = require('../internals/promise-resolve');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar InternalStateModule = require('../internals/internal-state');\nvar isForced = require('../internals/is-forced');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar SPECIES = wellKnownSymbol('species');\nvar PROMISE = 'Promise';\nvar getInternalState = InternalStateModule.get;\nvar setInternalState = InternalStateModule.set;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar PromiseConstructor = NativePromise;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar $fetch = getBuiltIn('fetch');\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\nvar IS_NODE = classof(process) == 'process';\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\nvar FORCED = isForced(PROMISE, function () {\n var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);\n if (!GLOBAL_CORE_JS_PROMISE) {\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (V8_VERSION === 66) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;\n }\n // We need Promise#finally in the pure version for preventing prototype pollution\n if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;\n // Detect correctness of subclassing with @@species support\n var promise = PromiseConstructor.resolve(1);\n var FakePromise = function (exec) {\n exec(function () {/* empty */}, function () {/* empty */});\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n return !(promise.then(function () {/* empty */}) instanceof FakePromise);\n});\nvar INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {\n PromiseConstructor.all(iterable)['catch'](function () {/* empty */});\n});\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, state, isReject) {\n if (state.notified) return;\n state.notified = true;\n var chain = state.reactions;\n microtask(function () {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var index = 0;\n // variable length - can't use forEach\n while (chain.length > index) {\n var reaction = chain[index++];\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(promise, state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n }\n state.reactions = [];\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(promise, state);\n });\n};\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = {\n promise: promise,\n reason: reason\n };\n if (handler = global['on' + name]) handler(event);else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\nvar onUnhandled = function (promise, state) {\n task.call(global, function () {\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\nvar onHandleUnhandled = function (promise, state) {\n task.call(global, function () {\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\nvar bind = function (fn, promise, state, unwrap) {\n return function (value) {\n fn(promise, state, value, unwrap);\n };\n};\nvar internalReject = function (promise, state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(promise, state, true);\n};\nvar internalResolve = function (promise, state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = {\n done: false\n };\n try {\n then.call(value, bind(internalResolve, promise, wrapper, state), bind(internalReject, promise, wrapper, state));\n } catch (error) {\n internalReject(promise, wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(promise, state, false);\n }\n } catch (error) {\n internalReject(promise, {\n done: false\n }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromiseConstructor, PROMISE);\n aFunction(executor);\n Internal.call(this);\n var state = getInternalState(this);\n try {\n executor(bind(internalResolve, this, state), bind(internalReject, this, state));\n } catch (error) {\n internalReject(this, state, error);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: [],\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n Internal.prototype = redefineAll(PromiseConstructor.prototype, {\n // `Promise.prototype.then` method\n // https://tc39.github.io/ecma262/#sec-promise.prototype.then\n then: function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n state.parent = true;\n state.reactions.push(reaction);\n if (state.state != PENDING) notify(this, state, false);\n return reaction.promise;\n },\n // `Promise.prototype.catch` method\n // https://tc39.github.io/ecma262/#sec-promise.prototype.catch\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, promise, state);\n this.reject = bind(internalReject, promise, state);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C);\n };\n if (!IS_PURE && typeof NativePromise == 'function') {\n nativeThen = NativePromise.prototype.then;\n\n // wrap native Promise#then for native async functions\n redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n nativeThen.call(that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, {\n unsafe: true\n });\n\n // wrap fetch result\n if (typeof $fetch == 'function') $({\n global: true,\n enumerable: true,\n forced: true\n }, {\n // eslint-disable-next-line no-unused-vars\n fetch: function fetch(input /* , init */) {\n return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));\n }\n });\n }\n}\n$({\n global: true,\n wrap: true,\n forced: FORCED\n}, {\n Promise: PromiseConstructor\n});\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\nPromiseWrapper = getBuiltIn(PROMISE);\n\n// statics\n$({\n target: PROMISE,\n stat: true,\n forced: FORCED\n}, {\n // `Promise.reject` method\n // https://tc39.github.io/ecma262/#sec-promise.reject\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n capability.reject.call(undefined, r);\n return capability.promise;\n }\n});\n$({\n target: PROMISE,\n stat: true,\n forced: IS_PURE || FORCED\n}, {\n // `Promise.resolve` method\n // https://tc39.github.io/ecma262/#sec-promise.resolve\n resolve: function resolve(x) {\n return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);\n }\n});\n$({\n target: PROMISE,\n stat: true,\n forced: INCORRECT_ITERATION\n}, {\n // `Promise.all` method\n // https://tc39.github.io/ecma262/#sec-promise.all\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n $promiseResolve.call(C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n },\n // `Promise.race` method\n // https://tc39.github.io/ecma262/#sec-promise.race\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n iterate(iterable, function (promise) {\n $promiseResolve.call(C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n\n},{\"../internals/a-function\":1,\"../internals/an-instance\":5,\"../internals/check-correctness-of-iteration\":17,\"../internals/classof-raw\":18,\"../internals/engine-v8-version\":34,\"../internals/export\":36,\"../internals/get-built-in\":40,\"../internals/global\":43,\"../internals/host-report-errors\":46,\"../internals/inspect-source\":51,\"../internals/internal-state\":52,\"../internals/is-forced\":55,\"../internals/is-object\":56,\"../internals/is-pure\":57,\"../internals/iterate\":59,\"../internals/microtask\":62,\"../internals/native-promise-constructor\":63,\"../internals/new-promise-capability\":67,\"../internals/perform\":84,\"../internals/promise-resolve\":85,\"../internals/redefine\":87,\"../internals/redefine-all\":86,\"../internals/set-species\":95,\"../internals/set-to-string-tag\":96,\"../internals/species-constructor\":100,\"../internals/task\":105,\"../internals/well-known-symbol\":116}],140:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar exec = require('../internals/regexp-exec');\n$({\n target: 'RegExp',\n proto: true,\n forced: /./.exec !== exec\n}, {\n exec: exec\n});\n\n},{\"../internals/export\":36,\"../internals/regexp-exec\":89}],141:[function(require,module,exports){\n'use strict';\n\nvar redefine = require('../internals/redefine');\nvar anObject = require('../internals/an-object');\nvar fails = require('../internals/fails');\nvar flags = require('../internals/regexp-flags');\nvar TO_STRING = 'toString';\nvar RegExpPrototype = RegExp.prototype;\nvar nativeToString = RegExpPrototype[TO_STRING];\nvar NOT_GENERIC = fails(function () {\n return nativeToString.call({\n source: 'a',\n flags: 'b'\n }) != '/a/b';\n});\n// FF44- RegExp#toString has a wrong name\nvar INCORRECT_NAME = nativeToString.name != TO_STRING;\n\n// `RegExp.prototype.toString` method\n// https://tc39.github.io/ecma262/#sec-regexp.prototype.tostring\nif (NOT_GENERIC || INCORRECT_NAME) {\n redefine(RegExp.prototype, TO_STRING, function toString() {\n var R = anObject(this);\n var p = String(R.source);\n var rf = R.flags;\n var f = String(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype) ? flags.call(R) : rf);\n return '/' + p + '/' + f;\n }, {\n unsafe: true\n });\n}\n\n},{\"../internals/an-object\":6,\"../internals/fails\":37,\"../internals/redefine\":87,\"../internals/regexp-flags\":90}],142:[function(require,module,exports){\n'use strict';\n\nvar charAt = require('../internals/string-multibyte').charAt;\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: String(iterated),\n index: 0\n });\n // `%StringIteratorPrototype%.next` method\n // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return {\n value: undefined,\n done: true\n };\n point = charAt(string, index);\n state.index += point.length;\n return {\n value: point,\n done: false\n };\n});\n\n},{\"../internals/define-iterator\":27,\"../internals/internal-state\":52,\"../internals/string-multibyte\":101}],143:[function(require,module,exports){\n'use strict';\n\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar toLength = require('../internals/to-length');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@match logic\nfixRegExpWellKnownSymbolLogic('match', 1, function (MATCH, nativeMatch, maybeCallNative) {\n return [\n // `String.prototype.match` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.match\n function match(regexp) {\n var O = requireObjectCoercible(this);\n var matcher = regexp == undefined ? undefined : regexp[MATCH];\n return matcher !== undefined ? matcher.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n },\n // `RegExp.prototype[@@match]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@match\n function (regexp) {\n var res = maybeCallNative(nativeMatch, regexp, this);\n if (res.done) return res.value;\n var rx = anObject(regexp);\n var S = String(this);\n if (!rx.global) return regExpExec(rx, S);\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n var A = [];\n var n = 0;\n var result;\n while ((result = regExpExec(rx, S)) !== null) {\n var matchStr = String(result[0]);\n A[n] = matchStr;\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n n++;\n }\n return n === 0 ? null : A;\n }];\n});\n\n},{\"../internals/advance-string-index\":4,\"../internals/an-object\":6,\"../internals/fix-regexp-well-known-symbol-logic\":38,\"../internals/regexp-exec-abstract\":88,\"../internals/require-object-coercible\":92,\"../internals/to-length\":109}],144:[function(require,module,exports){\n'use strict';\n\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar toInteger = require('../internals/to-integer');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar max = Math.max;\nvar min = Math.min;\nvar floor = Math.floor;\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d\\d?|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d\\d?)/g;\nvar maybeToString = function (it) {\n return it === undefined ? it : String(it);\n};\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {\n var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;\n var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n return [\n // `String.prototype.replace` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];\n return replacer !== undefined ? replacer.call(searchValue, O, replaceValue) : nativeReplace.call(String(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace\n function (regexp, replaceValue) {\n if (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0 || typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1) {\n var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);\n if (res.done) return res.value;\n }\n var rx = anObject(regexp);\n var S = String(this);\n var functionalReplace = typeof replaceValue === 'function';\n if (!functionalReplace) replaceValue = String(replaceValue);\n var global = rx.global;\n if (global) {\n var fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n var results = [];\n while (true) {\n var result = regExpExec(rx, S);\n if (result === null) break;\n results.push(result);\n if (!global) break;\n var matchStr = String(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n var matched = String(result[0]);\n var position = max(min(toInteger(result.index), S.length), 0);\n var captures = [];\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = [matched].concat(captures, position, S);\n if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);\n var replacement = String(replaceValue.apply(undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += S.slice(nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n return accumulatedResult + S.slice(nextSourcePosition);\n }];\n\n // https://tc39.github.io/ecma262/#sec-getsubstitution\n function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return nativeReplace.call(replacement, symbols, function (match, ch) {\n var capture;\n switch (ch.charAt(0)) {\n case '$':\n return '$';\n case '&':\n return matched;\n case '`':\n return str.slice(0, position);\n case \"'\":\n return str.slice(tailPos);\n case '<':\n capture = namedCaptures[ch.slice(1, -1)];\n break;\n default:\n // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n }\n});\n\n},{\"../internals/advance-string-index\":4,\"../internals/an-object\":6,\"../internals/fix-regexp-well-known-symbol-logic\":38,\"../internals/regexp-exec-abstract\":88,\"../internals/require-object-coercible\":92,\"../internals/to-integer\":108,\"../internals/to-length\":109,\"../internals/to-object\":110}],145:[function(require,module,exports){\n'use strict';\n\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar anObject = require('../internals/an-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar sameValue = require('../internals/same-value');\nvar regExpExec = require('../internals/regexp-exec-abstract');\n\n// @@search logic\nfixRegExpWellKnownSymbolLogic('search', 1, function (SEARCH, nativeSearch, maybeCallNative) {\n return [\n // `String.prototype.search` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.search\n function search(regexp) {\n var O = requireObjectCoercible(this);\n var searcher = regexp == undefined ? undefined : regexp[SEARCH];\n return searcher !== undefined ? searcher.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));\n },\n // `RegExp.prototype[@@search]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@search\n function (regexp) {\n var res = maybeCallNative(nativeSearch, regexp, this);\n if (res.done) return res.value;\n var rx = anObject(regexp);\n var S = String(this);\n var previousLastIndex = rx.lastIndex;\n if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;\n var result = regExpExec(rx, S);\n if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;\n return result === null ? -1 : result.index;\n }];\n});\n\n},{\"../internals/an-object\":6,\"../internals/fix-regexp-well-known-symbol-logic\":38,\"../internals/regexp-exec-abstract\":88,\"../internals/require-object-coercible\":92,\"../internals/same-value\":93}],146:[function(require,module,exports){\n'use strict';\n\nvar fixRegExpWellKnownSymbolLogic = require('../internals/fix-regexp-well-known-symbol-logic');\nvar isRegExp = require('../internals/is-regexp');\nvar anObject = require('../internals/an-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar speciesConstructor = require('../internals/species-constructor');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar toLength = require('../internals/to-length');\nvar callRegExpExec = require('../internals/regexp-exec-abstract');\nvar regexpExec = require('../internals/regexp-exec');\nvar fails = require('../internals/fails');\nvar arrayPush = [].push;\nvar min = Math.min;\nvar MAX_UINT32 = 0xFFFFFFFF;\n\n// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError\nvar SUPPORTS_Y = !fails(function () {\n return !RegExp(MAX_UINT32, 'y');\n});\n\n// @@split logic\nfixRegExpWellKnownSymbolLogic('split', 2, function (SPLIT, nativeSplit, maybeCallNative) {\n var internalSplit;\n if ('abbc'.split(/(b)*/)[1] == 'c' || 'test'.split(/(?:)/, -1).length != 4 || 'ab'.split(/(?:ab)*/).length != 2 || '.'.split(/(.?)(.?)/).length != 4 || '.'.split(/()()/).length > 1 || ''.split(/.?/).length) {\n // based on es5-shim implementation, need to rework it\n internalSplit = function (separator, limit) {\n var string = String(requireObjectCoercible(this));\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (separator === undefined) return [string];\n // If `separator` is not a regex, use native split\n if (!isRegExp(separator)) {\n return nativeSplit.call(string, separator, lim);\n }\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') + (separator.multiline ? 'm' : '') + (separator.unicode ? 'u' : '') + (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var match, lastIndex, lastLength;\n while (match = regexpExec.call(separatorCopy, string)) {\n lastIndex = separatorCopy.lastIndex;\n if (lastIndex > lastLastIndex) {\n output.push(string.slice(lastLastIndex, match.index));\n if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));\n lastLength = match[0].length;\n lastLastIndex = lastIndex;\n if (output.length >= lim) break;\n }\n if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop\n }\n if (lastLastIndex === string.length) {\n if (lastLength || !separatorCopy.test('')) output.push('');\n } else output.push(string.slice(lastLastIndex));\n return output.length > lim ? output.slice(0, lim) : output;\n };\n // Chakra, V8\n } else if ('0'.split(undefined, 0).length) {\n internalSplit = function (separator, limit) {\n return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);\n };\n } else internalSplit = nativeSplit;\n return [\n // `String.prototype.split` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.split\n function split(separator, limit) {\n var O = requireObjectCoercible(this);\n var splitter = separator == undefined ? undefined : separator[SPLIT];\n return splitter !== undefined ? splitter.call(separator, O, limit) : internalSplit.call(String(O), separator, limit);\n },\n // `RegExp.prototype[@@split]` method\n // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@split\n //\n // NOTE: This cannot be properly polyfilled in engines that don't support\n // the 'y' flag.\n function (regexp, limit) {\n var res = maybeCallNative(internalSplit, regexp, this, limit, internalSplit !== nativeSplit);\n if (res.done) return res.value;\n var rx = anObject(regexp);\n var S = String(this);\n var C = speciesConstructor(rx, RegExp);\n var unicodeMatching = rx.unicode;\n var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (SUPPORTS_Y ? 'y' : 'g');\n\n // ^(? + rx + ) is needed, in combination with some S slicing, to\n // simulate the 'y' flag.\n var splitter = new C(SUPPORTS_Y ? rx : '^(?:' + rx.source + ')', flags);\n var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;\n if (lim === 0) return [];\n if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];\n var p = 0;\n var q = 0;\n var A = [];\n while (q < S.length) {\n splitter.lastIndex = SUPPORTS_Y ? q : 0;\n var z = callRegExpExec(splitter, SUPPORTS_Y ? S : S.slice(q));\n var e;\n if (z === null || (e = min(toLength(splitter.lastIndex + (SUPPORTS_Y ? 0 : q)), S.length)) === p) {\n q = advanceStringIndex(S, q, unicodeMatching);\n } else {\n A.push(S.slice(p, q));\n if (A.length === lim) return A;\n for (var i = 1; i <= z.length - 1; i++) {\n A.push(z[i]);\n if (A.length === lim) return A;\n }\n q = p = e;\n }\n }\n A.push(S.slice(p));\n return A;\n }];\n}, !SUPPORTS_Y);\n\n},{\"../internals/advance-string-index\":4,\"../internals/an-object\":6,\"../internals/fails\":37,\"../internals/fix-regexp-well-known-symbol-logic\":38,\"../internals/is-regexp\":58,\"../internals/regexp-exec\":89,\"../internals/regexp-exec-abstract\":88,\"../internals/require-object-coercible\":92,\"../internals/species-constructor\":100,\"../internals/to-length\":109}],147:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.trim\n$({\n target: 'String',\n proto: true,\n forced: forcedStringTrimMethod('trim')\n}, {\n trim: function trim() {\n return $trim(this);\n }\n});\n\n},{\"../internals/export\":36,\"../internals/string-trim\":104,\"../internals/string-trim-forced\":103}],148:[function(require,module,exports){\n// `Symbol.prototype.description` getter\n// https://tc39.github.io/ecma262/#sec-symbol.prototype.description\n'use strict';\n\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar has = require('../internals/has');\nvar isObject = require('../internals/is-object');\nvar defineProperty = require('../internals/object-define-property').f;\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar NativeSymbol = global.Symbol;\nif (DESCRIPTORS && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||\n// Safari 12 bug\nNativeSymbol().description !== undefined)) {\n var EmptyStringDescriptionStore = {};\n // wrap Symbol constructor for correct work with undefined description\n var SymbolWrapper = function Symbol() {\n var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);\n var result = this instanceof SymbolWrapper ? new NativeSymbol(description)\n // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'\n : description === undefined ? NativeSymbol() : NativeSymbol(description);\n if (description === '') EmptyStringDescriptionStore[result] = true;\n return result;\n };\n copyConstructorProperties(SymbolWrapper, NativeSymbol);\n var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;\n symbolPrototype.constructor = SymbolWrapper;\n var symbolToString = symbolPrototype.toString;\n var native = String(NativeSymbol('test')) == 'Symbol(test)';\n var regexp = /^Symbol\\((.*)\\)[^)]+$/;\n defineProperty(symbolPrototype, 'description', {\n configurable: true,\n get: function description() {\n var symbol = isObject(this) ? this.valueOf() : this;\n var string = symbolToString.call(symbol);\n if (has(EmptyStringDescriptionStore, symbol)) return '';\n var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');\n return desc === '' ? undefined : desc;\n }\n });\n $({\n global: true,\n forced: true\n }, {\n Symbol: SymbolWrapper\n });\n}\n\n},{\"../internals/copy-constructor-properties\":20,\"../internals/descriptors\":29,\"../internals/export\":36,\"../internals/global\":43,\"../internals/has\":44,\"../internals/is-object\":56,\"../internals/object-define-property\":71}],149:[function(require,module,exports){\nvar defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol('iterator');\n\n},{\"../internals/define-well-known-symbol\":28}],150:[function(require,module,exports){\n'use strict';\n\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\nvar fails = require('../internals/fails');\nvar has = require('../internals/has');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar anObject = require('../internals/an-object');\nvar toObject = require('../internals/to-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar nativeObjectCreate = require('../internals/object-create');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar shared = require('../internals/shared');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar uid = require('../internals/uid');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineWellKnownSymbol = require('../internals/define-well-known-symbol');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar InternalStateModule = require('../internals/internal-state');\nvar $forEach = require('../internals/array-iteration').forEach;\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(SYMBOL);\nvar ObjectPrototype = Object[PROTOTYPE];\nvar $Symbol = global.Symbol;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar AllSymbols = shared('symbols');\nvar ObjectPrototypeSymbols = shared('op-symbols');\nvar StringToSymbolRegistry = shared('string-to-symbol-registry');\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\nvar WellKnownSymbolsStore = shared('wks');\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS && fails(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () {\n return nativeDefineProperty(this, 'a', {\n value: 7\n }).a;\n }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {\n nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);\n setInternalState(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS) symbol.description = description;\n return symbol;\n};\nvar isSymbol = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return Object(it) instanceof $Symbol;\n};\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject(O);\n var key = toPrimitive(P, true);\n anObject(Attributes);\n if (has(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, {\n enumerable: createPropertyDescriptor(0, false)\n });\n }\n return setSymbolDescriptor(O, key, Attributes);\n }\n return nativeDefineProperty(O, key, Attributes);\n};\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject(O);\n var properties = toIndexedObject(Properties);\n var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));\n $forEach(keys, function (key) {\n if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(V) {\n var P = toPrimitive(V, true);\n var enumerable = nativePropertyIsEnumerable.call(this, P);\n if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject(O);\n var key = toPrimitive(P, true);\n if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor(it, key);\n if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);\n });\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {\n result.push(AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.github.io/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);\n var tag = uid(description);\n var setter = function (value) {\n if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));\n };\n if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, {\n configurable: true,\n set: setter\n });\n return wrap(tag, description);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return getInternalState(this).tag;\n });\n redefine($Symbol, 'withoutSetter', function (description) {\n return wrap(uid(description), description);\n });\n propertyIsEnumerableModule.f = $propertyIsEnumerable;\n definePropertyModule.f = $defineProperty;\n getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol(name), name);\n };\n if (DESCRIPTORS) {\n // https://github.com/tc39/proposal-Symbol-description\n nativeDefineProperty($Symbol[PROTOTYPE], 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n if (!IS_PURE) {\n redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, {\n unsafe: true\n });\n }\n }\n}\n$({\n global: true,\n wrap: true,\n forced: !NATIVE_SYMBOL,\n sham: !NATIVE_SYMBOL\n}, {\n Symbol: $Symbol\n});\n$forEach(objectKeys(WellKnownSymbolsStore), function (name) {\n defineWellKnownSymbol(name);\n});\n$({\n target: SYMBOL,\n stat: true,\n forced: !NATIVE_SYMBOL\n}, {\n // `Symbol.for` method\n // https://tc39.github.io/ecma262/#sec-symbol.for\n 'for': function (key) {\n var string = String(key);\n if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = $Symbol(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry[symbol] = string;\n return symbol;\n },\n // `Symbol.keyFor` method\n // https://tc39.github.io/ecma262/#sec-symbol.keyfor\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');\n if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n },\n useSetter: function () {\n USE_SETTER = true;\n },\n useSimple: function () {\n USE_SETTER = false;\n }\n});\n$({\n target: 'Object',\n stat: true,\n forced: !NATIVE_SYMBOL,\n sham: !DESCRIPTORS\n}, {\n // `Object.create` method\n // https://tc39.github.io/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.github.io/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.github.io/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n$({\n target: 'Object',\n stat: true,\n forced: !NATIVE_SYMBOL\n}, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames,\n // `Object.getOwnPropertySymbols` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\n$({\n target: 'Object',\n stat: true,\n forced: fails(function () {\n getOwnPropertySymbolsModule.f(1);\n })\n}, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return getOwnPropertySymbolsModule.f(toObject(it));\n }\n});\n\n// `JSON.stringify` method behavior with symbols\n// https://tc39.github.io/ecma262/#sec-json.stringify\nif ($stringify) {\n var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {\n var symbol = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({\n a: symbol\n }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n });\n $({\n target: 'JSON',\n stat: true,\n forced: FORCED_JSON_STRINGIFY\n }, {\n // eslint-disable-next-line no-unused-vars\n stringify: function stringify(it, replacer, space) {\n var args = [it];\n var index = 1;\n var $replacer;\n while (arguments.length > index) args.push(arguments[index++]);\n $replacer = replacer;\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return $stringify.apply(null, args);\n }\n });\n}\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive\nif (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {\n createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n}\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag($Symbol, SYMBOL);\nhiddenKeys[HIDDEN] = true;\n\n},{\"../internals/an-object\":6,\"../internals/array-iteration\":10,\"../internals/create-non-enumerable-property\":23,\"../internals/create-property-descriptor\":24,\"../internals/define-well-known-symbol\":28,\"../internals/descriptors\":29,\"../internals/export\":36,\"../internals/fails\":37,\"../internals/get-built-in\":40,\"../internals/global\":43,\"../internals/has\":44,\"../internals/hidden-keys\":45,\"../internals/internal-state\":52,\"../internals/is-array\":54,\"../internals/is-object\":56,\"../internals/is-pure\":57,\"../internals/native-symbol\":64,\"../internals/object-create\":69,\"../internals/object-define-property\":71,\"../internals/object-get-own-property-descriptor\":72,\"../internals/object-get-own-property-names\":74,\"../internals/object-get-own-property-names-external\":73,\"../internals/object-get-own-property-symbols\":75,\"../internals/object-keys\":78,\"../internals/object-property-is-enumerable\":79,\"../internals/redefine\":87,\"../internals/set-to-string-tag\":96,\"../internals/shared\":99,\"../internals/shared-key\":97,\"../internals/to-indexed-object\":107,\"../internals/to-object\":110,\"../internals/to-primitive\":111,\"../internals/uid\":113,\"../internals/use-symbol-as-uid\":114,\"../internals/well-known-symbol\":116,\"../internals/well-known-symbol-wrapped\":115}],151:[function(require,module,exports){\nvar defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.toPrimitive` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.toprimitive\ndefineWellKnownSymbol('toPrimitive');\n\n},{\"../internals/define-well-known-symbol\":28}],152:[function(require,module,exports){\nvar global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar forEach = require('../internals/array-for-each');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {\n createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);\n } catch (error) {\n CollectionPrototype.forEach = forEach;\n }\n}\n\n},{\"../internals/array-for-each\":7,\"../internals/create-non-enumerable-property\":23,\"../internals/dom-iterables\":31,\"../internals/global\":43}],153:[function(require,module,exports){\nvar global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n}\n\n},{\"../internals/create-non-enumerable-property\":23,\"../internals/dom-iterables\":31,\"../internals/global\":43,\"../internals/well-known-symbol\":116,\"../modules/es.array.iterator\":124}],154:[function(require,module,exports){\n'use strict';\n\n// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\nrequire('../modules/es.array.iterator');\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar USE_NATIVE_URL = require('../internals/native-url');\nvar redefine = require('../internals/redefine');\nvar redefineAll = require('../internals/redefine-all');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar InternalStateModule = require('../internals/internal-state');\nvar anInstance = require('../internals/an-instance');\nvar hasOwn = require('../internals/has');\nvar bind = require('../internals/function-bind-context');\nvar classof = require('../internals/classof');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar $fetch = getBuiltIn('fetch');\nvar Headers = getBuiltIn('Headers');\nvar ITERATOR = wellKnownSymbol('iterator');\nvar URL_SEARCH_PARAMS = 'URLSearchParams';\nvar URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);\nvar getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);\nvar plus = /\\+/g;\nvar sequences = Array(4);\nvar percentSequence = function (bytes) {\n return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\\\da-f]{2}){' + bytes + '})', 'gi'));\n};\nvar percentDecode = function (sequence) {\n try {\n return decodeURIComponent(sequence);\n } catch (error) {\n return sequence;\n }\n};\nvar deserialize = function (it) {\n var result = it.replace(plus, ' ');\n var bytes = 4;\n try {\n return decodeURIComponent(result);\n } catch (error) {\n while (bytes) {\n result = result.replace(percentSequence(bytes--), percentDecode);\n }\n return result;\n }\n};\nvar find = /[!'()~]|%20/g;\nvar replace = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+'\n};\nvar replacer = function (match) {\n return replace[match];\n};\nvar serialize = function (it) {\n return encodeURIComponent(it).replace(find, replacer);\n};\nvar parseSearchParams = function (result, query) {\n if (query) {\n var attributes = query.split('&');\n var index = 0;\n var attribute, entry;\n while (index < attributes.length) {\n attribute = attributes[index++];\n if (attribute.length) {\n entry = attribute.split('=');\n result.push({\n key: deserialize(entry.shift()),\n value: deserialize(entry.join('='))\n });\n }\n }\n }\n};\nvar updateSearchParams = function (query) {\n this.entries.length = 0;\n parseSearchParams(this.entries, query);\n};\nvar validateArgumentsLength = function (passed, required) {\n if (passed < required) throw TypeError('Not enough arguments');\n};\nvar URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {\n setInternalState(this, {\n type: URL_SEARCH_PARAMS_ITERATOR,\n iterator: getIterator(getInternalParamsState(params).entries),\n kind: kind\n });\n}, 'Iterator', function next() {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var step = state.iterator.next();\n var entry = step.value;\n if (!step.done) {\n step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];\n }\n return step;\n});\n\n// `URLSearchParams` constructor\n// https://url.spec.whatwg.org/#interface-urlsearchparams\nvar URLSearchParamsConstructor = function URLSearchParams(/* init */\n) {\n anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);\n var init = arguments.length > 0 ? arguments[0] : undefined;\n var that = this;\n var entries = [];\n var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;\n setInternalState(that, {\n type: URL_SEARCH_PARAMS,\n entries: entries,\n updateURL: function () {/* empty */},\n updateSearchParams: updateSearchParams\n });\n if (init !== undefined) {\n if (isObject(init)) {\n iteratorMethod = getIteratorMethod(init);\n if (typeof iteratorMethod === 'function') {\n iterator = iteratorMethod.call(init);\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n entryIterator = getIterator(anObject(step.value));\n entryNext = entryIterator.next;\n if ((first = entryNext.call(entryIterator)).done || (second = entryNext.call(entryIterator)).done || !entryNext.call(entryIterator).done) throw TypeError('Expected sequence with length 2');\n entries.push({\n key: first.value + '',\n value: second.value + ''\n });\n }\n } else for (key in init) if (hasOwn(init, key)) entries.push({\n key: key,\n value: init[key] + ''\n });\n } else {\n parseSearchParams(entries, typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : init + '');\n }\n }\n};\nvar URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;\nredefineAll(URLSearchParamsPrototype, {\n // `URLSearchParams.prototype.appent` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-append\n append: function append(name, value) {\n validateArgumentsLength(arguments.length, 2);\n var state = getInternalParamsState(this);\n state.entries.push({\n key: name + '',\n value: value + ''\n });\n state.updateURL();\n },\n // `URLSearchParams.prototype.delete` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-delete\n 'delete': function (name) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var key = name + '';\n var index = 0;\n while (index < entries.length) {\n if (entries[index].key === key) entries.splice(index, 1);else index++;\n }\n state.updateURL();\n },\n // `URLSearchParams.prototype.get` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-get\n get: function get(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = name + '';\n var index = 0;\n for (; index < entries.length; index++) {\n if (entries[index].key === key) return entries[index].value;\n }\n return null;\n },\n // `URLSearchParams.prototype.getAll` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-getall\n getAll: function getAll(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = name + '';\n var result = [];\n var index = 0;\n for (; index < entries.length; index++) {\n if (entries[index].key === key) result.push(entries[index].value);\n }\n return result;\n },\n // `URLSearchParams.prototype.has` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-has\n has: function has(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = name + '';\n var index = 0;\n while (index < entries.length) {\n if (entries[index++].key === key) return true;\n }\n return false;\n },\n // `URLSearchParams.prototype.set` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-set\n set: function set(name, value) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var found = false;\n var key = name + '';\n var val = value + '';\n var index = 0;\n var entry;\n for (; index < entries.length; index++) {\n entry = entries[index];\n if (entry.key === key) {\n if (found) entries.splice(index--, 1);else {\n found = true;\n entry.value = val;\n }\n }\n }\n if (!found) entries.push({\n key: key,\n value: val\n });\n state.updateURL();\n },\n // `URLSearchParams.prototype.sort` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-sort\n sort: function sort() {\n var state = getInternalParamsState(this);\n var entries = state.entries;\n // Array#sort is not stable in some engines\n var slice = entries.slice();\n var entry, entriesIndex, sliceIndex;\n entries.length = 0;\n for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) {\n entry = slice[sliceIndex];\n for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) {\n if (entries[entriesIndex].key > entry.key) {\n entries.splice(entriesIndex, 0, entry);\n break;\n }\n }\n if (entriesIndex === sliceIndex) entries.push(entry);\n }\n state.updateURL();\n },\n // `URLSearchParams.prototype.forEach` method\n forEach: function forEach(callback /* , thisArg */) {\n var entries = getInternalParamsState(this).entries;\n var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3);\n var index = 0;\n var entry;\n while (index < entries.length) {\n entry = entries[index++];\n boundFunction(entry.value, entry.key, this);\n }\n },\n // `URLSearchParams.prototype.keys` method\n keys: function keys() {\n return new URLSearchParamsIterator(this, 'keys');\n },\n // `URLSearchParams.prototype.values` method\n values: function values() {\n return new URLSearchParamsIterator(this, 'values');\n },\n // `URLSearchParams.prototype.entries` method\n entries: function entries() {\n return new URLSearchParamsIterator(this, 'entries');\n }\n}, {\n enumerable: true\n});\n\n// `URLSearchParams.prototype[@@iterator]` method\nredefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries);\n\n// `URLSearchParams.prototype.toString` method\n// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior\nredefine(URLSearchParamsPrototype, 'toString', function toString() {\n var entries = getInternalParamsState(this).entries;\n var result = [];\n var index = 0;\n var entry;\n while (index < entries.length) {\n entry = entries[index++];\n result.push(serialize(entry.key) + '=' + serialize(entry.value));\n }\n return result.join('&');\n}, {\n enumerable: true\n});\nsetToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);\n$({\n global: true,\n forced: !USE_NATIVE_URL\n}, {\n URLSearchParams: URLSearchParamsConstructor\n});\n\n// Wrap `fetch` for correct work with polyfilled `URLSearchParams`\n// https://github.com/zloirock/core-js/issues/674\nif (!USE_NATIVE_URL && typeof $fetch == 'function' && typeof Headers == 'function') {\n $({\n global: true,\n enumerable: true,\n forced: true\n }, {\n fetch: function fetch(input /* , init */) {\n var args = [input];\n var init, body, headers;\n if (arguments.length > 1) {\n init = arguments[1];\n if (isObject(init)) {\n body = init.body;\n if (classof(body) === URL_SEARCH_PARAMS) {\n headers = init.headers ? new Headers(init.headers) : new Headers();\n if (!headers.has('content-type')) {\n headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n init = create(init, {\n body: createPropertyDescriptor(0, String(body)),\n headers: createPropertyDescriptor(0, headers)\n });\n }\n }\n args.push(init);\n }\n return $fetch.apply(this, args);\n }\n });\n}\nmodule.exports = {\n URLSearchParams: URLSearchParamsConstructor,\n getState: getInternalParamsState\n};\n\n},{\"../internals/an-instance\":5,\"../internals/an-object\":6,\"../internals/classof\":19,\"../internals/create-iterator-constructor\":22,\"../internals/create-property-descriptor\":24,\"../internals/export\":36,\"../internals/function-bind-context\":39,\"../internals/get-built-in\":40,\"../internals/get-iterator\":42,\"../internals/get-iterator-method\":41,\"../internals/has\":44,\"../internals/internal-state\":52,\"../internals/is-object\":56,\"../internals/native-url\":65,\"../internals/object-create\":69,\"../internals/redefine\":87,\"../internals/redefine-all\":86,\"../internals/set-to-string-tag\":96,\"../internals/well-known-symbol\":116,\"../modules/es.array.iterator\":124}],155:[function(require,module,exports){\n'use strict';\n\n// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\nrequire('../modules/es.string.iterator');\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar USE_NATIVE_URL = require('../internals/native-url');\nvar global = require('../internals/global');\nvar defineProperties = require('../internals/object-define-properties');\nvar redefine = require('../internals/redefine');\nvar anInstance = require('../internals/an-instance');\nvar has = require('../internals/has');\nvar assign = require('../internals/object-assign');\nvar arrayFrom = require('../internals/array-from');\nvar codeAt = require('../internals/string-multibyte').codeAt;\nvar toASCII = require('../internals/string-punycode-to-ascii');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar URLSearchParamsModule = require('../modules/web.url-search-params');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativeURL = global.URL;\nvar URLSearchParams = URLSearchParamsModule.URLSearchParams;\nvar getInternalSearchParamsState = URLSearchParamsModule.getState;\nvar setInternalState = InternalStateModule.set;\nvar getInternalURLState = InternalStateModule.getterFor('URL');\nvar floor = Math.floor;\nvar pow = Math.pow;\nvar INVALID_AUTHORITY = 'Invalid authority';\nvar INVALID_SCHEME = 'Invalid scheme';\nvar INVALID_HOST = 'Invalid host';\nvar INVALID_PORT = 'Invalid port';\nvar ALPHA = /[A-Za-z]/;\nvar ALPHANUMERIC = /[\\d+-.A-Za-z]/;\nvar DIGIT = /\\d/;\nvar HEX_START = /^(0x|0X)/;\nvar OCT = /^[0-7]+$/;\nvar DEC = /^\\d+$/;\nvar HEX = /^[\\dA-Fa-f]+$/;\n// eslint-disable-next-line no-control-regex\nvar FORBIDDEN_HOST_CODE_POINT = /[\\u0000\\u0009\\u000A\\u000D #%/:?@[\\\\]]/;\n// eslint-disable-next-line no-control-regex\nvar FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\\u0000\\u0009\\u000A\\u000D #/:?@[\\\\]]/;\n// eslint-disable-next-line no-control-regex\nvar LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\\u0000-\\u001F ]+|[\\u0000-\\u001F ]+$/g;\n// eslint-disable-next-line no-control-regex\nvar TAB_AND_NEW_LINE = /[\\u0009\\u000A\\u000D]/g;\nvar EOF;\nvar parseHost = function (url, input) {\n var result, codePoints, index;\n if (input.charAt(0) == '[') {\n if (input.charAt(input.length - 1) != ']') return INVALID_HOST;\n result = parseIPv6(input.slice(1, -1));\n if (!result) return INVALID_HOST;\n url.host = result;\n // opaque host\n } else if (!isSpecial(url)) {\n if (FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input)) return INVALID_HOST;\n result = '';\n codePoints = arrayFrom(input);\n for (index = 0; index < codePoints.length; index++) {\n result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);\n }\n url.host = result;\n } else {\n input = toASCII(input);\n if (FORBIDDEN_HOST_CODE_POINT.test(input)) return INVALID_HOST;\n result = parseIPv4(input);\n if (result === null) return INVALID_HOST;\n url.host = result;\n }\n};\nvar parseIPv4 = function (input) {\n var parts = input.split('.');\n var partsLength, numbers, index, part, radix, number, ipv4;\n if (parts.length && parts[parts.length - 1] == '') {\n parts.pop();\n }\n partsLength = parts.length;\n if (partsLength > 4) return input;\n numbers = [];\n for (index = 0; index < partsLength; index++) {\n part = parts[index];\n if (part == '') return input;\n radix = 10;\n if (part.length > 1 && part.charAt(0) == '0') {\n radix = HEX_START.test(part) ? 16 : 8;\n part = part.slice(radix == 8 ? 1 : 2);\n }\n if (part === '') {\n number = 0;\n } else {\n if (!(radix == 10 ? DEC : radix == 8 ? OCT : HEX).test(part)) return input;\n number = parseInt(part, radix);\n }\n numbers.push(number);\n }\n for (index = 0; index < partsLength; index++) {\n number = numbers[index];\n if (index == partsLength - 1) {\n if (number >= pow(256, 5 - partsLength)) return null;\n } else if (number > 255) return null;\n }\n ipv4 = numbers.pop();\n for (index = 0; index < numbers.length; index++) {\n ipv4 += numbers[index] * pow(256, 3 - index);\n }\n return ipv4;\n};\n\n// eslint-disable-next-line max-statements\nvar parseIPv6 = function (input) {\n var address = [0, 0, 0, 0, 0, 0, 0, 0];\n var pieceIndex = 0;\n var compress = null;\n var pointer = 0;\n var value, length, numbersSeen, ipv4Piece, number, swaps, swap;\n var char = function () {\n return input.charAt(pointer);\n };\n if (char() == ':') {\n if (input.charAt(1) != ':') return;\n pointer += 2;\n pieceIndex++;\n compress = pieceIndex;\n }\n while (char()) {\n if (pieceIndex == 8) return;\n if (char() == ':') {\n if (compress !== null) return;\n pointer++;\n pieceIndex++;\n compress = pieceIndex;\n continue;\n }\n value = length = 0;\n while (length < 4 && HEX.test(char())) {\n value = value * 16 + parseInt(char(), 16);\n pointer++;\n length++;\n }\n if (char() == '.') {\n if (length == 0) return;\n pointer -= length;\n if (pieceIndex > 6) return;\n numbersSeen = 0;\n while (char()) {\n ipv4Piece = null;\n if (numbersSeen > 0) {\n if (char() == '.' && numbersSeen < 4) pointer++;else return;\n }\n if (!DIGIT.test(char())) return;\n while (DIGIT.test(char())) {\n number = parseInt(char(), 10);\n if (ipv4Piece === null) ipv4Piece = number;else if (ipv4Piece == 0) return;else ipv4Piece = ipv4Piece * 10 + number;\n if (ipv4Piece > 255) return;\n pointer++;\n }\n address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;\n numbersSeen++;\n if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;\n }\n if (numbersSeen != 4) return;\n break;\n } else if (char() == ':') {\n pointer++;\n if (!char()) return;\n } else if (char()) return;\n address[pieceIndex++] = value;\n }\n if (compress !== null) {\n swaps = pieceIndex - compress;\n pieceIndex = 7;\n while (pieceIndex != 0 && swaps > 0) {\n swap = address[pieceIndex];\n address[pieceIndex--] = address[compress + swaps - 1];\n address[compress + --swaps] = swap;\n }\n } else if (pieceIndex != 8) return;\n return address;\n};\nvar findLongestZeroSequence = function (ipv6) {\n var maxIndex = null;\n var maxLength = 1;\n var currStart = null;\n var currLength = 0;\n var index = 0;\n for (; index < 8; index++) {\n if (ipv6[index] !== 0) {\n if (currLength > maxLength) {\n maxIndex = currStart;\n maxLength = currLength;\n }\n currStart = null;\n currLength = 0;\n } else {\n if (currStart === null) currStart = index;\n ++currLength;\n }\n }\n if (currLength > maxLength) {\n maxIndex = currStart;\n maxLength = currLength;\n }\n return maxIndex;\n};\nvar serializeHost = function (host) {\n var result, index, compress, ignore0;\n // ipv4\n if (typeof host == 'number') {\n result = [];\n for (index = 0; index < 4; index++) {\n result.unshift(host % 256);\n host = floor(host / 256);\n }\n return result.join('.');\n // ipv6\n } else if (typeof host == 'object') {\n result = '';\n compress = findLongestZeroSequence(host);\n for (index = 0; index < 8; index++) {\n if (ignore0 && host[index] === 0) continue;\n if (ignore0) ignore0 = false;\n if (compress === index) {\n result += index ? ':' : '::';\n ignore0 = true;\n } else {\n result += host[index].toString(16);\n if (index < 7) result += ':';\n }\n }\n return '[' + result + ']';\n }\n return host;\n};\nvar C0ControlPercentEncodeSet = {};\nvar fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {\n ' ': 1,\n '\"': 1,\n '<': 1,\n '>': 1,\n '`': 1\n});\nvar pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {\n '#': 1,\n '?': 1,\n '{': 1,\n '}': 1\n});\nvar userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {\n '/': 1,\n ':': 1,\n ';': 1,\n '=': 1,\n '@': 1,\n '[': 1,\n '\\\\': 1,\n ']': 1,\n '^': 1,\n '|': 1\n});\nvar percentEncode = function (char, set) {\n var code = codeAt(char, 0);\n return code > 0x20 && code < 0x7F && !has(set, char) ? char : encodeURIComponent(char);\n};\nvar specialSchemes = {\n ftp: 21,\n file: null,\n http: 80,\n https: 443,\n ws: 80,\n wss: 443\n};\nvar isSpecial = function (url) {\n return has(specialSchemes, url.scheme);\n};\nvar includesCredentials = function (url) {\n return url.username != '' || url.password != '';\n};\nvar cannotHaveUsernamePasswordPort = function (url) {\n return !url.host || url.cannotBeABaseURL || url.scheme == 'file';\n};\nvar isWindowsDriveLetter = function (string, normalized) {\n var second;\n return string.length == 2 && ALPHA.test(string.charAt(0)) && ((second = string.charAt(1)) == ':' || !normalized && second == '|');\n};\nvar startsWithWindowsDriveLetter = function (string) {\n var third;\n return string.length > 1 && isWindowsDriveLetter(string.slice(0, 2)) && (string.length == 2 || (third = string.charAt(2)) === '/' || third === '\\\\' || third === '?' || third === '#');\n};\nvar shortenURLsPath = function (url) {\n var path = url.path;\n var pathSize = path.length;\n if (pathSize && (url.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {\n path.pop();\n }\n};\nvar isSingleDot = function (segment) {\n return segment === '.' || segment.toLowerCase() === '%2e';\n};\nvar isDoubleDot = function (segment) {\n segment = segment.toLowerCase();\n return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';\n};\n\n// States:\nvar SCHEME_START = {};\nvar SCHEME = {};\nvar NO_SCHEME = {};\nvar SPECIAL_RELATIVE_OR_AUTHORITY = {};\nvar PATH_OR_AUTHORITY = {};\nvar RELATIVE = {};\nvar RELATIVE_SLASH = {};\nvar SPECIAL_AUTHORITY_SLASHES = {};\nvar SPECIAL_AUTHORITY_IGNORE_SLASHES = {};\nvar AUTHORITY = {};\nvar HOST = {};\nvar HOSTNAME = {};\nvar PORT = {};\nvar FILE = {};\nvar FILE_SLASH = {};\nvar FILE_HOST = {};\nvar PATH_START = {};\nvar PATH = {};\nvar CANNOT_BE_A_BASE_URL_PATH = {};\nvar QUERY = {};\nvar FRAGMENT = {};\n\n// eslint-disable-next-line max-statements\nvar parseURL = function (url, input, stateOverride, base) {\n var state = stateOverride || SCHEME_START;\n var pointer = 0;\n var buffer = '';\n var seenAt = false;\n var seenBracket = false;\n var seenPasswordToken = false;\n var codePoints, char, bufferCodePoints, failure;\n if (!stateOverride) {\n url.scheme = '';\n url.username = '';\n url.password = '';\n url.host = null;\n url.port = null;\n url.path = [];\n url.query = null;\n url.fragment = null;\n url.cannotBeABaseURL = false;\n input = input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');\n }\n input = input.replace(TAB_AND_NEW_LINE, '');\n codePoints = arrayFrom(input);\n while (pointer <= codePoints.length) {\n char = codePoints[pointer];\n switch (state) {\n case SCHEME_START:\n if (char && ALPHA.test(char)) {\n buffer += char.toLowerCase();\n state = SCHEME;\n } else if (!stateOverride) {\n state = NO_SCHEME;\n continue;\n } else return INVALID_SCHEME;\n break;\n case SCHEME:\n if (char && (ALPHANUMERIC.test(char) || char == '+' || char == '-' || char == '.')) {\n buffer += char.toLowerCase();\n } else if (char == ':') {\n if (stateOverride && (isSpecial(url) != has(specialSchemes, buffer) || buffer == 'file' && (includesCredentials(url) || url.port !== null) || url.scheme == 'file' && !url.host)) return;\n url.scheme = buffer;\n if (stateOverride) {\n if (isSpecial(url) && specialSchemes[url.scheme] == url.port) url.port = null;\n return;\n }\n buffer = '';\n if (url.scheme == 'file') {\n state = FILE;\n } else if (isSpecial(url) && base && base.scheme == url.scheme) {\n state = SPECIAL_RELATIVE_OR_AUTHORITY;\n } else if (isSpecial(url)) {\n state = SPECIAL_AUTHORITY_SLASHES;\n } else if (codePoints[pointer + 1] == '/') {\n state = PATH_OR_AUTHORITY;\n pointer++;\n } else {\n url.cannotBeABaseURL = true;\n url.path.push('');\n state = CANNOT_BE_A_BASE_URL_PATH;\n }\n } else if (!stateOverride) {\n buffer = '';\n state = NO_SCHEME;\n pointer = 0;\n continue;\n } else return INVALID_SCHEME;\n break;\n case NO_SCHEME:\n if (!base || base.cannotBeABaseURL && char != '#') return INVALID_SCHEME;\n if (base.cannotBeABaseURL && char == '#') {\n url.scheme = base.scheme;\n url.path = base.path.slice();\n url.query = base.query;\n url.fragment = '';\n url.cannotBeABaseURL = true;\n state = FRAGMENT;\n break;\n }\n state = base.scheme == 'file' ? FILE : RELATIVE;\n continue;\n case SPECIAL_RELATIVE_OR_AUTHORITY:\n if (char == '/' && codePoints[pointer + 1] == '/') {\n state = SPECIAL_AUTHORITY_IGNORE_SLASHES;\n pointer++;\n } else {\n state = RELATIVE;\n continue;\n }\n break;\n case PATH_OR_AUTHORITY:\n if (char == '/') {\n state = AUTHORITY;\n break;\n } else {\n state = PATH;\n continue;\n }\n case RELATIVE:\n url.scheme = base.scheme;\n if (char == EOF) {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n url.path = base.path.slice();\n url.query = base.query;\n } else if (char == '/' || char == '\\\\' && isSpecial(url)) {\n state = RELATIVE_SLASH;\n } else if (char == '?') {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n url.path = base.path.slice();\n url.query = '';\n state = QUERY;\n } else if (char == '#') {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n url.path = base.path.slice();\n url.query = base.query;\n url.fragment = '';\n state = FRAGMENT;\n } else {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n url.path = base.path.slice();\n url.path.pop();\n state = PATH;\n continue;\n }\n break;\n case RELATIVE_SLASH:\n if (isSpecial(url) && (char == '/' || char == '\\\\')) {\n state = SPECIAL_AUTHORITY_IGNORE_SLASHES;\n } else if (char == '/') {\n state = AUTHORITY;\n } else {\n url.username = base.username;\n url.password = base.password;\n url.host = base.host;\n url.port = base.port;\n state = PATH;\n continue;\n }\n break;\n case SPECIAL_AUTHORITY_SLASHES:\n state = SPECIAL_AUTHORITY_IGNORE_SLASHES;\n if (char != '/' || buffer.charAt(pointer + 1) != '/') continue;\n pointer++;\n break;\n case SPECIAL_AUTHORITY_IGNORE_SLASHES:\n if (char != '/' && char != '\\\\') {\n state = AUTHORITY;\n continue;\n }\n break;\n case AUTHORITY:\n if (char == '@') {\n if (seenAt) buffer = '%40' + buffer;\n seenAt = true;\n bufferCodePoints = arrayFrom(buffer);\n for (var i = 0; i < bufferCodePoints.length; i++) {\n var codePoint = bufferCodePoints[i];\n if (codePoint == ':' && !seenPasswordToken) {\n seenPasswordToken = true;\n continue;\n }\n var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);\n if (seenPasswordToken) url.password += encodedCodePoints;else url.username += encodedCodePoints;\n }\n buffer = '';\n } else if (char == EOF || char == '/' || char == '?' || char == '#' || char == '\\\\' && isSpecial(url)) {\n if (seenAt && buffer == '') return INVALID_AUTHORITY;\n pointer -= arrayFrom(buffer).length + 1;\n buffer = '';\n state = HOST;\n } else buffer += char;\n break;\n case HOST:\n case HOSTNAME:\n if (stateOverride && url.scheme == 'file') {\n state = FILE_HOST;\n continue;\n } else if (char == ':' && !seenBracket) {\n if (buffer == '') return INVALID_HOST;\n failure = parseHost(url, buffer);\n if (failure) return failure;\n buffer = '';\n state = PORT;\n if (stateOverride == HOSTNAME) return;\n } else if (char == EOF || char == '/' || char == '?' || char == '#' || char == '\\\\' && isSpecial(url)) {\n if (isSpecial(url) && buffer == '') return INVALID_HOST;\n if (stateOverride && buffer == '' && (includesCredentials(url) || url.port !== null)) return;\n failure = parseHost(url, buffer);\n if (failure) return failure;\n buffer = '';\n state = PATH_START;\n if (stateOverride) return;\n continue;\n } else {\n if (char == '[') seenBracket = true;else if (char == ']') seenBracket = false;\n buffer += char;\n }\n break;\n case PORT:\n if (DIGIT.test(char)) {\n buffer += char;\n } else if (char == EOF || char == '/' || char == '?' || char == '#' || char == '\\\\' && isSpecial(url) || stateOverride) {\n if (buffer != '') {\n var port = parseInt(buffer, 10);\n if (port > 0xFFFF) return INVALID_PORT;\n url.port = isSpecial(url) && port === specialSchemes[url.scheme] ? null : port;\n buffer = '';\n }\n if (stateOverride) return;\n state = PATH_START;\n continue;\n } else return INVALID_PORT;\n break;\n case FILE:\n url.scheme = 'file';\n if (char == '/' || char == '\\\\') state = FILE_SLASH;else if (base && base.scheme == 'file') {\n if (char == EOF) {\n url.host = base.host;\n url.path = base.path.slice();\n url.query = base.query;\n } else if (char == '?') {\n url.host = base.host;\n url.path = base.path.slice();\n url.query = '';\n state = QUERY;\n } else if (char == '#') {\n url.host = base.host;\n url.path = base.path.slice();\n url.query = base.query;\n url.fragment = '';\n state = FRAGMENT;\n } else {\n if (!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {\n url.host = base.host;\n url.path = base.path.slice();\n shortenURLsPath(url);\n }\n state = PATH;\n continue;\n }\n } else {\n state = PATH;\n continue;\n }\n break;\n case FILE_SLASH:\n if (char == '/' || char == '\\\\') {\n state = FILE_HOST;\n break;\n }\n if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(codePoints.slice(pointer).join(''))) {\n if (isWindowsDriveLetter(base.path[0], true)) url.path.push(base.path[0]);else url.host = base.host;\n }\n state = PATH;\n continue;\n case FILE_HOST:\n if (char == EOF || char == '/' || char == '\\\\' || char == '?' || char == '#') {\n if (!stateOverride && isWindowsDriveLetter(buffer)) {\n state = PATH;\n } else if (buffer == '') {\n url.host = '';\n if (stateOverride) return;\n state = PATH_START;\n } else {\n failure = parseHost(url, buffer);\n if (failure) return failure;\n if (url.host == 'localhost') url.host = '';\n if (stateOverride) return;\n buffer = '';\n state = PATH_START;\n }\n continue;\n } else buffer += char;\n break;\n case PATH_START:\n if (isSpecial(url)) {\n state = PATH;\n if (char != '/' && char != '\\\\') continue;\n } else if (!stateOverride && char == '?') {\n url.query = '';\n state = QUERY;\n } else if (!stateOverride && char == '#') {\n url.fragment = '';\n state = FRAGMENT;\n } else if (char != EOF) {\n state = PATH;\n if (char != '/') continue;\n }\n break;\n case PATH:\n if (char == EOF || char == '/' || char == '\\\\' && isSpecial(url) || !stateOverride && (char == '?' || char == '#')) {\n if (isDoubleDot(buffer)) {\n shortenURLsPath(url);\n if (char != '/' && !(char == '\\\\' && isSpecial(url))) {\n url.path.push('');\n }\n } else if (isSingleDot(buffer)) {\n if (char != '/' && !(char == '\\\\' && isSpecial(url))) {\n url.path.push('');\n }\n } else {\n if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {\n if (url.host) url.host = '';\n buffer = buffer.charAt(0) + ':'; // normalize windows drive letter\n }\n url.path.push(buffer);\n }\n buffer = '';\n if (url.scheme == 'file' && (char == EOF || char == '?' || char == '#')) {\n while (url.path.length > 1 && url.path[0] === '') {\n url.path.shift();\n }\n }\n if (char == '?') {\n url.query = '';\n state = QUERY;\n } else if (char == '#') {\n url.fragment = '';\n state = FRAGMENT;\n }\n } else {\n buffer += percentEncode(char, pathPercentEncodeSet);\n }\n break;\n case CANNOT_BE_A_BASE_URL_PATH:\n if (char == '?') {\n url.query = '';\n state = QUERY;\n } else if (char == '#') {\n url.fragment = '';\n state = FRAGMENT;\n } else if (char != EOF) {\n url.path[0] += percentEncode(char, C0ControlPercentEncodeSet);\n }\n break;\n case QUERY:\n if (!stateOverride && char == '#') {\n url.fragment = '';\n state = FRAGMENT;\n } else if (char != EOF) {\n if (char == \"'\" && isSpecial(url)) url.query += '%27';else if (char == '#') url.query += '%23';else url.query += percentEncode(char, C0ControlPercentEncodeSet);\n }\n break;\n case FRAGMENT:\n if (char != EOF) url.fragment += percentEncode(char, fragmentPercentEncodeSet);\n break;\n }\n pointer++;\n }\n};\n\n// `URL` constructor\n// https://url.spec.whatwg.org/#url-class\nvar URLConstructor = function URL(url /* , base */) {\n var that = anInstance(this, URLConstructor, 'URL');\n var base = arguments.length > 1 ? arguments[1] : undefined;\n var urlString = String(url);\n var state = setInternalState(that, {\n type: 'URL'\n });\n var baseState, failure;\n if (base !== undefined) {\n if (base instanceof URLConstructor) baseState = getInternalURLState(base);else {\n failure = parseURL(baseState = {}, String(base));\n if (failure) throw TypeError(failure);\n }\n }\n failure = parseURL(state, urlString, null, baseState);\n if (failure) throw TypeError(failure);\n var searchParams = state.searchParams = new URLSearchParams();\n var searchParamsState = getInternalSearchParamsState(searchParams);\n searchParamsState.updateSearchParams(state.query);\n searchParamsState.updateURL = function () {\n state.query = String(searchParams) || null;\n };\n if (!DESCRIPTORS) {\n that.href = serializeURL.call(that);\n that.origin = getOrigin.call(that);\n that.protocol = getProtocol.call(that);\n that.username = getUsername.call(that);\n that.password = getPassword.call(that);\n that.host = getHost.call(that);\n that.hostname = getHostname.call(that);\n that.port = getPort.call(that);\n that.pathname = getPathname.call(that);\n that.search = getSearch.call(that);\n that.searchParams = getSearchParams.call(that);\n that.hash = getHash.call(that);\n }\n};\nvar URLPrototype = URLConstructor.prototype;\nvar serializeURL = function () {\n var url = getInternalURLState(this);\n var scheme = url.scheme;\n var username = url.username;\n var password = url.password;\n var host = url.host;\n var port = url.port;\n var path = url.path;\n var query = url.query;\n var fragment = url.fragment;\n var output = scheme + ':';\n if (host !== null) {\n output += '//';\n if (includesCredentials(url)) {\n output += username + (password ? ':' + password : '') + '@';\n }\n output += serializeHost(host);\n if (port !== null) output += ':' + port;\n } else if (scheme == 'file') output += '//';\n output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';\n if (query !== null) output += '?' + query;\n if (fragment !== null) output += '#' + fragment;\n return output;\n};\nvar getOrigin = function () {\n var url = getInternalURLState(this);\n var scheme = url.scheme;\n var port = url.port;\n if (scheme == 'blob') try {\n return new URL(scheme.path[0]).origin;\n } catch (error) {\n return 'null';\n }\n if (scheme == 'file' || !isSpecial(url)) return 'null';\n return scheme + '://' + serializeHost(url.host) + (port !== null ? ':' + port : '');\n};\nvar getProtocol = function () {\n return getInternalURLState(this).scheme + ':';\n};\nvar getUsername = function () {\n return getInternalURLState(this).username;\n};\nvar getPassword = function () {\n return getInternalURLState(this).password;\n};\nvar getHost = function () {\n var url = getInternalURLState(this);\n var host = url.host;\n var port = url.port;\n return host === null ? '' : port === null ? serializeHost(host) : serializeHost(host) + ':' + port;\n};\nvar getHostname = function () {\n var host = getInternalURLState(this).host;\n return host === null ? '' : serializeHost(host);\n};\nvar getPort = function () {\n var port = getInternalURLState(this).port;\n return port === null ? '' : String(port);\n};\nvar getPathname = function () {\n var url = getInternalURLState(this);\n var path = url.path;\n return url.cannotBeABaseURL ? path[0] : path.length ? '/' + path.join('/') : '';\n};\nvar getSearch = function () {\n var query = getInternalURLState(this).query;\n return query ? '?' + query : '';\n};\nvar getSearchParams = function () {\n return getInternalURLState(this).searchParams;\n};\nvar getHash = function () {\n var fragment = getInternalURLState(this).fragment;\n return fragment ? '#' + fragment : '';\n};\nvar accessorDescriptor = function (getter, setter) {\n return {\n get: getter,\n set: setter,\n configurable: true,\n enumerable: true\n };\n};\nif (DESCRIPTORS) {\n defineProperties(URLPrototype, {\n // `URL.prototype.href` accessors pair\n // https://url.spec.whatwg.org/#dom-url-href\n href: accessorDescriptor(serializeURL, function (href) {\n var url = getInternalURLState(this);\n var urlString = String(href);\n var failure = parseURL(url, urlString);\n if (failure) throw TypeError(failure);\n getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);\n }),\n // `URL.prototype.origin` getter\n // https://url.spec.whatwg.org/#dom-url-origin\n origin: accessorDescriptor(getOrigin),\n // `URL.prototype.protocol` accessors pair\n // https://url.spec.whatwg.org/#dom-url-protocol\n protocol: accessorDescriptor(getProtocol, function (protocol) {\n var url = getInternalURLState(this);\n parseURL(url, String(protocol) + ':', SCHEME_START);\n }),\n // `URL.prototype.username` accessors pair\n // https://url.spec.whatwg.org/#dom-url-username\n username: accessorDescriptor(getUsername, function (username) {\n var url = getInternalURLState(this);\n var codePoints = arrayFrom(String(username));\n if (cannotHaveUsernamePasswordPort(url)) return;\n url.username = '';\n for (var i = 0; i < codePoints.length; i++) {\n url.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);\n }\n }),\n // `URL.prototype.password` accessors pair\n // https://url.spec.whatwg.org/#dom-url-password\n password: accessorDescriptor(getPassword, function (password) {\n var url = getInternalURLState(this);\n var codePoints = arrayFrom(String(password));\n if (cannotHaveUsernamePasswordPort(url)) return;\n url.password = '';\n for (var i = 0; i < codePoints.length; i++) {\n url.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);\n }\n }),\n // `URL.prototype.host` accessors pair\n // https://url.spec.whatwg.org/#dom-url-host\n host: accessorDescriptor(getHost, function (host) {\n var url = getInternalURLState(this);\n if (url.cannotBeABaseURL) return;\n parseURL(url, String(host), HOST);\n }),\n // `URL.prototype.hostname` accessors pair\n // https://url.spec.whatwg.org/#dom-url-hostname\n hostname: accessorDescriptor(getHostname, function (hostname) {\n var url = getInternalURLState(this);\n if (url.cannotBeABaseURL) return;\n parseURL(url, String(hostname), HOSTNAME);\n }),\n // `URL.prototype.port` accessors pair\n // https://url.spec.whatwg.org/#dom-url-port\n port: accessorDescriptor(getPort, function (port) {\n var url = getInternalURLState(this);\n if (cannotHaveUsernamePasswordPort(url)) return;\n port = String(port);\n if (port == '') url.port = null;else parseURL(url, port, PORT);\n }),\n // `URL.prototype.pathname` accessors pair\n // https://url.spec.whatwg.org/#dom-url-pathname\n pathname: accessorDescriptor(getPathname, function (pathname) {\n var url = getInternalURLState(this);\n if (url.cannotBeABaseURL) return;\n url.path = [];\n parseURL(url, pathname + '', PATH_START);\n }),\n // `URL.prototype.search` accessors pair\n // https://url.spec.whatwg.org/#dom-url-search\n search: accessorDescriptor(getSearch, function (search) {\n var url = getInternalURLState(this);\n search = String(search);\n if (search == '') {\n url.query = null;\n } else {\n if ('?' == search.charAt(0)) search = search.slice(1);\n url.query = '';\n parseURL(url, search, QUERY);\n }\n getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query);\n }),\n // `URL.prototype.searchParams` getter\n // https://url.spec.whatwg.org/#dom-url-searchparams\n searchParams: accessorDescriptor(getSearchParams),\n // `URL.prototype.hash` accessors pair\n // https://url.spec.whatwg.org/#dom-url-hash\n hash: accessorDescriptor(getHash, function (hash) {\n var url = getInternalURLState(this);\n hash = String(hash);\n if (hash == '') {\n url.fragment = null;\n return;\n }\n if ('#' == hash.charAt(0)) hash = hash.slice(1);\n url.fragment = '';\n parseURL(url, hash, FRAGMENT);\n })\n });\n}\n\n// `URL.prototype.toJSON` method\n// https://url.spec.whatwg.org/#dom-url-tojson\nredefine(URLPrototype, 'toJSON', function toJSON() {\n return serializeURL.call(this);\n}, {\n enumerable: true\n});\n\n// `URL.prototype.toString` method\n// https://url.spec.whatwg.org/#URL-stringification-behavior\nredefine(URLPrototype, 'toString', function toString() {\n return serializeURL.call(this);\n}, {\n enumerable: true\n});\nif (NativeURL) {\n var nativeCreateObjectURL = NativeURL.createObjectURL;\n var nativeRevokeObjectURL = NativeURL.revokeObjectURL;\n // `URL.createObjectURL` method\n // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL\n // eslint-disable-next-line no-unused-vars\n if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', function createObjectURL(blob) {\n return nativeCreateObjectURL.apply(NativeURL, arguments);\n });\n // `URL.revokeObjectURL` method\n // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL\n // eslint-disable-next-line no-unused-vars\n if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', function revokeObjectURL(url) {\n return nativeRevokeObjectURL.apply(NativeURL, arguments);\n });\n}\nsetToStringTag(URLConstructor, 'URL');\n$({\n global: true,\n forced: !USE_NATIVE_URL,\n sham: !DESCRIPTORS\n}, {\n URL: URLConstructor\n});\n\n},{\"../internals/an-instance\":5,\"../internals/array-from\":8,\"../internals/descriptors\":29,\"../internals/export\":36,\"../internals/global\":43,\"../internals/has\":44,\"../internals/internal-state\":52,\"../internals/native-url\":65,\"../internals/object-assign\":68,\"../internals/object-define-properties\":70,\"../internals/redefine\":87,\"../internals/set-to-string-tag\":96,\"../internals/string-multibyte\":101,\"../internals/string-punycode-to-ascii\":102,\"../modules/es.string.iterator\":142,\"../modules/web.url-search-params\":154}],156:[function(require,module,exports){\n(function (global){\n/**\n * Copyright (c) 2014, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * https://raw.github.com/facebook/regenerator/master/LICENSE file. An\n * additional grant of patent rights can be found in the PATENTS file in\n * the same directory.\n */\n\n!function (global) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n var inModule = typeof module === \"object\";\n var runtime = global.regeneratorRuntime;\n if (runtime) {\n if (inModule) {\n // If regeneratorRuntime is defined globally and we're in a module,\n // make the exports object identical to regeneratorRuntime.\n module.exports = runtime;\n }\n // Don't bother evaluating the rest of this file if the runtime was\n // already defined globally.\n return;\n }\n\n // Define the runtime globally (as expected by generated code) as either\n // module.exports (if we're in a module) or a new, empty object.\n runtime = global.regeneratorRuntime = inModule ? module.exports : {};\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n return generator;\n }\n runtime.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: \"normal\",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: \"throw\",\n arg: err\n };\n }\n }\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function (method) {\n prototype[method] = function (arg) {\n return this._invoke(method, arg);\n };\n });\n }\n runtime.isGeneratorFunction = function (genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\" : false;\n };\n runtime.mark = function (genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n runtime.awrap = function (arg) {\n return {\n __await: arg\n };\n };\n function AsyncIterator(generator) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value && typeof value === \"object\" && hasOwn.call(value, \"__await\")) {\n return Promise.resolve(value.__await).then(function (value) {\n invoke(\"next\", value, resolve, reject);\n }, function (err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n return Promise.resolve(value).then(function (unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration. If the Promise is rejected, however, the\n // result for this iteration will be rejected with the same\n // reason. Note that rejections of yielded Promises are not\n // thrown back into the generator function, as is the case\n // when an awaited Promise is rejected. This difference in\n // behavior between yield and await is important, because it\n // allows the consumer to decide what to do with the yielded\n // rejection (swallow it and continue, manually .throw it back\n // into the generator, abandon iteration, whatever). With\n // await, by contrast, there is no opportunity to examine the\n // rejection reason outside the generator function, so the\n // only option is to throw it from the await expression, and\n // let the generator function handle the exception.\n result.value = unwrapped;\n resolve(result);\n }, reject);\n }\n }\n if (typeof global.process === \"object\" && global.process.domain) {\n invoke = global.process.domain.bind(invoke);\n }\n var previousPromise;\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new Promise(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n runtime.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n runtime.async = function (innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList));\n return runtime.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n };\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n context.method = method;\n context.arg = arg;\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n context.dispatchException(context.arg);\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n state = GenStateExecuting;\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done ? GenStateCompleted : GenStateSuspendedYield;\n if (record.arg === ContinueSentinel) {\n continue;\n }\n return {\n value: record.arg,\n done: context.done\n };\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n if (context.method === \"throw\") {\n if (delegate.iterator.return) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n context.method = \"throw\";\n context.arg = new TypeError(\"The iterator does not provide a 'throw' method\");\n }\n return ContinueSentinel;\n }\n var record = tryCatch(method, delegate.iterator, context.arg);\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n var info = record.arg;\n if (!info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function () {\n return this;\n };\n Gp.toString = function () {\n return \"[object Generator]\";\n };\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n this.tryEntries.push(entry);\n }\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{\n tryLoc: \"root\"\n }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n runtime.keys = function (object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n next.value = undefined;\n next.done = true;\n return next;\n };\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return {\n next: doneResult\n };\n }\n runtime.values = values;\n function doneResult() {\n return {\n value: undefined,\n done: true\n };\n }\n Context.prototype = {\n constructor: Context,\n reset: function (skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n this.method = \"next\";\n this.arg = undefined;\n this.tryEntries.forEach(resetTryEntry);\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n stop: function () {\n this.done = true;\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n return this.rval;\n },\n dispatchException: function (exception) {\n if (this.done) {\n throw exception;\n }\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n return !!caught;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n abrupt: function (type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n if (finallyEntry && (type === \"break\" || type === \"continue\") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n return this.complete(record);\n },\n complete: function (record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n if (record.type === \"break\" || record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n return ContinueSentinel;\n },\n finish: function (finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n \"catch\": function (tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function (iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n return ContinueSentinel;\n }\n };\n}(\n// Among the various tricks for obtaining a reference to the global\n// object, this seems to be the most reliable technique that does not\n// use indirect eval (which violates Content Security Policy).\ntypeof global === \"object\" ? global : typeof window === \"object\" ? window : typeof self === \"object\" ? self : this);\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}],157:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.for-each\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.replace\");\nrequire(\"core-js/modules/web.dom-collections.for-each\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.AddAddressForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar AddAddressForm = exports.AddAddressForm = function AddAddressForm() {\n // Cache for fewer DOM queries\n var addErrorElm = (0, _jquery.default)(\".add-error\");\n var emailFormSubmitButton = (0, _jquery.default)(\"#addEmailForm\").find(\"button\");\n var originalSubmitText = emailFormSubmitButton.text();\n\n // Make sure the error field is hidden on load\n addErrorElm.hide();\n\n // process the form\n (0, _jquery.default)(\"#addEmailForm\").on(\"submit\", function (event) {\n //Empty and hide again, in case the error field was already shown from a previous error\n addErrorElm.html(\"\").hide();\n\n // UI update for submit button so user knows it was successful\n emailFormSubmitButton.attr(\"disabled\", true).text(\"Submitting...\");\n\n // get the form data\n // there are many ways to get this data using jQuery (you can use the class or id also)\n var formData = (0, _jquery.default)(\"#addEmailForm\").serialize();\n\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n var antiForgeryToken = (0, _jquery.default)(\"input[name=__RequestVerificationToken]\").val();\n // process the form\n _jquery.default.ajax({\n type: \"POST\",\n // define the type of HTTP verb we want to use (POST for our form)\n url: \"/api/Auth/Accounts/AddEmailAddress\",\n // the url where we want to POST\n data: formData,\n dataType: \"json\",\n statusCode: {\n 500: function _() {\n addErrorElm.append(\"There was an error. Please try again later\");\n addErrorElm.show();\n emailFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n },\n crossDomain: true,\n xhrFields: {\n withCredentials: true\n }\n }).done(function (resp) {\n // Successful login\n if (resp.isValid) {\n if (resp.isRedirect) {\n window.location.replace(resp.result);\n } else {\n (0, _jquery.default)(\".js-email-form\").addClass(\"u-hidden\");\n (0, _jquery.default)(\".js-email-confirmation\").removeClass(\"u-hidden\");\n }\n } else {\n // Unsuccessful login\n if (resp.errors) {\n resp.errors.forEach(function (error) {\n addErrorElm.append(\"\" + error + \"\");\n });\n addErrorElm.show();\n }\n emailFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n });\n });\n};\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.for-each\":121,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.replace\":144,\"core-js/modules/web.dom-collections.for-each\":152,\"jquery\":\"jquery\"}],158:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ChangePasswordForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar _MemberProfileErrorHandling = require(\"./MemberProfileErrorHandling\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar ChangePasswordForm = exports.ChangePasswordForm = function ChangePasswordForm() {\n var formErrorElement = (0, _jquery.default)(\".form-error\");\n var formSuccessElement = (0, _jquery.default)(\".form-success\");\n formErrorElement.hide();\n formSuccessElement.hide();\n var usernameField = (0, _jquery.default)(\"input[name=Username]\");\n var resetTokenField = (0, _jquery.default)(\"input[name=ResetToken]\");\n var changePasswordSubmit = (0, _jquery.default)('#ChangePasswordButton');\n var originalSubmitText = changePasswordSubmit.text();\n // process the form\n (0, _jquery.default)('#changePasswordForm').submit(function (event) {\n (0, _jquery.default)(\"fieldset\").removeClass(\"invalid-field\");\n (0, _jquery.default)(\".invalid-field-msg\").text(\"\");\n changePasswordSubmit.attr('disabled', 'disabled').text('Changing password...');\n formErrorElement.html(\"\");\n formErrorElement.hide();\n (0, _jquery.default)(\".form-success\").html(\"\");\n (0, _jquery.default)(\".form-success\").hide();\n // get the form data\n // there are many ways to get this data using jQuery (you can use the class or id also)\n var formData = (0, _jquery.default)('#changePasswordForm').serialize();\n formData = formData + \"&Username=\" + usernameField.val();\n\n // process the form\n _jquery.default.ajax({\n type: 'POST',\n // define the type of HTTP verb we want to use (POST for our form)\n url: '/api/Auth/NAHBAuthentication/ChangeForgotPassword',\n // the url where we want to POST\n data: formData,\n // our data object\n dataType: 'json' // what type of data do we expect back from the server\n })\n // using the done promise callback\n .done(function (data) {\n changePasswordSubmit.text('Submit');\n changePasswordSubmit.removeAttr('disabled');\n if (data.isValid) {\n formSuccessElement.append(\"\" + data.result + \"\");\n formSuccessElement.append(\"
Redirecting please wait... \");\n formSuccessElement.show();\n changePasswordSubmit.attr('disabled', 'disabled').text('Please wait...');\n setTimeout(function () {\n window.location = \"/login\";\n }, 5000);\n } else {\n (0, _MemberProfileErrorHandling.MemberProfileErrorHandling)(data.errors, (0, _jquery.default)(\".form-error\"));\n if (formErrorElement.children().length) {\n formErrorElement.show();\n }\n }\n // here we will handle errors and validation messages\n });\n\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n });\n};\n\n},{\"./MemberProfileErrorHandling\":172,\"jquery\":\"jquery\"}],159:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.iterator\");\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.index-of\");\nrequire(\"core-js/modules/es.array.iterator\");\nrequire(\"core-js/modules/es.array.join\");\nrequire(\"core-js/modules/es.array.slice\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.iterator\");\nrequire(\"core-js/modules/es.string.replace\");\nrequire(\"core-js/modules/es.string.split\");\nrequire(\"core-js/modules/web.dom-collections.iterator\");\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar _timers = require(\"timers\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/*!\r\n * JavaScript Cookie v2.2.0\r\n * https://github.com/js-cookie/js-cookie\r\n *\r\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\r\n * Released under the MIT license\r\n */\n;\n(function (factory) {\n var registeredInModuleLoader = false;\n if (typeof define === 'function' && define.amd) {\n define(factory);\n registeredInModuleLoader = true;\n }\n if ((typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object') {\n module.exports = factory();\n registeredInModuleLoader = true;\n }\n if (!registeredInModuleLoader) {\n var OldCookies = window.Cookies;\n var api = window.Cookies = factory();\n api.noConflict = function () {\n window.Cookies = OldCookies;\n return api;\n };\n }\n})(function () {\n function extend() {\n var i = 0;\n var result = {};\n for (; i < arguments.length; i++) {\n var attributes = arguments[i];\n for (var key in attributes) {\n result[key] = attributes[key];\n }\n }\n return result;\n }\n function init(converter) {\n function api(key, value, attributes) {\n var result;\n if (typeof document === 'undefined') {\n return;\n }\n\n // Write\n\n if (arguments.length > 1) {\n attributes = extend({\n path: '/'\n }, api.defaults, attributes);\n if (typeof attributes.expires === 'number') {\n var expires = new Date();\n expires.setMilliseconds(expires.getMilliseconds() + attributes.expires * 864e+5);\n attributes.expires = expires;\n }\n\n // We're using \"expires\" because \"max-age\" is not supported by IE\n attributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n try {\n result = JSON.stringify(value);\n if (/^[\\{\\[]/.test(result)) {\n value = result;\n }\n } catch (e) {}\n if (!converter.write) {\n value = encodeURIComponent(String(value)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n } else {\n value = converter.write(value, key);\n }\n key = encodeURIComponent(String(key));\n key = key.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent);\n key = key.replace(/[\\(\\)]/g, escape);\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue;\n }\n stringifiedAttributes += '; ' + attributeName;\n if (attributes[attributeName] === true) {\n continue;\n }\n stringifiedAttributes += '=' + attributes[attributeName];\n }\n return document.cookie = key + '=' + value + stringifiedAttributes;\n }\n\n // Read\n\n if (!key) {\n result = {};\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all. Also prevents odd result when\n // calling \"get()\"\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var rdecode = /(%[0-9A-Z]{2})+/g;\n var i = 0;\n for (; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var cookie = parts.slice(1).join('=');\n if (!this.json && cookie.charAt(0) === '\"') {\n cookie = cookie.slice(1, -1);\n }\n try {\n var name = parts[0].replace(rdecode, decodeURIComponent);\n cookie = converter.read ? converter.read(cookie, name) : converter(cookie, name) || cookie.replace(rdecode, decodeURIComponent);\n if (this.json) {\n try {\n cookie = JSON.parse(cookie);\n } catch (e) {}\n }\n if (key === name) {\n result = cookie;\n break;\n }\n if (!key) {\n result[name] = cookie;\n }\n } catch (e) {}\n }\n return result;\n }\n api.set = api;\n api.get = function (key) {\n return api.call(api, key);\n };\n api.getJSON = function () {\n return api.apply({\n json: true\n }, [].slice.call(arguments));\n };\n api.defaults = {};\n api.remove = function (key, attributes) {\n api(key, '', extend(attributes, {\n expires: -1\n }));\n };\n api.withConverter = init;\n return api;\n }\n return init(function () {});\n});\nvar $cookieBanner = (0, _jquery.default)(\"#js-cookie-warning\");\nvar $cookieBannerAccept = (0, _jquery.default)(\".js-cookie-warning__button--submit-all\");\nvar $cookieKeysList = (0, _jquery.default)('.nahb-cookies-list');\nvar $cookiemanagmentcontainer = (0, _jquery.default)('.cookiemanagmentcontainer');\nvar $cookiePrefSubmit = (0, _jquery.default)('.submitCookies');\nvar $essentialCookie = (0, _jquery.default)('.essential-cookie');\nvar cookieslist = [];\nbindEvents();\nfunction bindEvents() {\n $cookieBannerAccept.on(\"click\", submitAll);\n $cookiePrefSubmit.on(\"click\", submitPreferences);\n}\nfunction submitAll() {\n console.log(\"before cookielist\");\n $cookieKeysList.children('input').each(function () {\n cookieslist.push(this.value);\n });\n console.log(cookieslist);\n setCook('CookieConsent', cookieslist);\n location.reload();\n}\nfunction submitPreferences() {\n (0, _jquery.default)('.cookiemanagmentcontainer input:checked').each(function () {\n cookieslist.push((0, _jquery.default)(this).attr('name'));\n console.log((0, _jquery.default)(this));\n });\n setCook('CookieConsent', cookieslist);\n (0, _timers.setTimeout)(1000, (0, _jquery.default)('.cookiemanagmentcontainer .status').hide());\n (0, _jquery.default)('.cookiemanagmentcontainer .status').hide();\n (0, _jquery.default)('.cookiemanagmentcontainer .status').show();\n}\nfunction setCook(name, value) {\n var CookieDate = new Date();\n CookieDate.setFullYear(CookieDate.getFullYear() + 1);\n var cookie = [name, '=', JSON.stringify(value), \";expires=\", CookieDate.toGMTString(), \"; path=/\"].join('');\n document.cookie = cookie;\n $cookieBanner.hide();\n}\nfunction readCookie(name) {\n var nameEQ = name + \"=\";\n var ca = document.cookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) == ' ') {\n c = c.substring(1, c.length);\n }\n if (c.indexOf(nameEQ) === 0) {\n return JSON.parse(c.substring(nameEQ.length, c.length));\n }\n }\n return null;\n}\n(0, _jquery.default)(\".round label\").on(\"click\", function () {\n var $checkbox = (0, _jquery.default)(this).parent().find('input');\n if (!$checkbox.hasClass(\"essential-cookie\")) {\n var checkboxname = $checkbox.attr('name');\n if ((0, _jquery.default)(this).prev().is(':checked')) {\n (0, _jquery.default)(this).parent().find('input').remove();\n (0, _jquery.default)(this).parent().prepend(\"\");\n } else {\n (0, _jquery.default)(this).parent().find('input').remove();\n (0, _jquery.default)(this).parent().prepend(\"\");\n }\n }\n (0, _jquery.default)('.cookiemanagmentcontainer .status').hide();\n});\n(0, _jquery.default)(document).ready(function () {\n //window.onscroll = function () { makeSticky(); };\n var header = (0, _jquery.default)(\".cookiemanagmentcontainer .save_box\");\n if (header.length > 0) {\n // Get the offset position of the navbar\n var sticky = header.offset().top;\n if ($cookiemanagmentcontainer.length) {\n $cookieBanner.hide();\n }\n var allcheckedcookies = readCookie('CookieConsent');\n console.log(allcheckedcookies);\n for (var i = 0; i < allcheckedcookies.length; i++) {\n var cookieKey = allcheckedcookies[i];\n var $selectedcheckbox = (0, _jquery.default)('.cookiemanagmentcontainer').find(\"input[name='\" + cookieKey + \"']\");\n $selectedcheckbox.parent().prepend(\"\");\n $selectedcheckbox.remove();\n }\n }\n\n // Add the sticky class to the header when you reach its scroll position. Remove \"sticky\" when you leave the scroll position\n //function makeSticky() {\n //\tif (window.pageYOffset >= sticky) {\n //\t\theader.addClass(\"sticky\");\n //\t} else {\n //\t\theader.removeClass(\"sticky\");\n //\t}\n //}\n\n // Get the header\n});\n$essentialCookie.on(\"click\", function (e) {\n (0, _jquery.default)('.cookiemanagmentcontainer .status').hide();\n e.preventDefault();\n return false;\n});\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.index-of\":123,\"core-js/modules/es.array.iterator\":124,\"core-js/modules/es.array.join\":125,\"core-js/modules/es.array.slice\":128,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.iterator\":142,\"core-js/modules/es.string.replace\":144,\"core-js/modules/es.string.split\":146,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.iterator\":149,\"core-js/modules/web.dom-collections.iterator\":153,\"jquery\":\"jquery\",\"timers\":\"timers\"}],160:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.number.constructor\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DuesCollectionForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar _DuesCollectionFormErrorHandling = require(\"./DuesCollectionFormErrorHandling\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar DuesCollectionForm = exports.DuesCollectionForm = function DuesCollectionForm() {\n // Cache for fewer DOM queries\n // const loginErrorElm = $(\".login-error\");\n var registrationSubmitButton = (0, _jquery.default)(\"#dues-collection-form\").find(\"button\");\n var originalSubmitText = registrationSubmitButton.text();\n (0, _jquery.default)(\".BuilderDuesLocalText, .BuilderDuesStateText , .BuilderDuesNAHBText\").keydown(sumBuilderDues);\n (0, _jquery.default)(\".BuilderDuesLocalText, .BuilderDuesStateText , .BuilderDuesNAHBText\").keyup(sumBuilderDues);\n (0, _jquery.default)(\".AssociatesDuesLocalText, .AssociatesDuesStateText , .AssociatesDuesNAHBText\").keydown(sumAssociatesDues);\n (0, _jquery.default)(\".AssociatesDuesLocalText, .AssociatesDuesStateText , .AssociatesDuesNAHBText\").keyup(sumAssociatesDues);\n (0, _jquery.default)(\".AffiliateDuesLocalText, .AffiliateDuesStateText , .AffiliateDuesNAHBText\").keydown(sumAffiliateDues);\n (0, _jquery.default)(\".AffiliateDuesLocalText, .AffiliateDuesStateText , .AffiliateDuesNAHBText\").keyup(sumAffiliateDues);\n function sumBuilderDues() {\n (0, _jquery.default)(\".BuilderDuesTotalText\").val(Number((0, _jquery.default)(\".BuilderDuesLocalText\").val()) + Number((0, _jquery.default)(\".BuilderDuesStateText\").val()) + Number((0, _jquery.default)(\".BuilderDuesNAHBText\").val()));\n }\n function sumAssociatesDues() {\n (0, _jquery.default)(\".AssociatesDuesTotalText\").val(Number((0, _jquery.default)(\".AssociatesDuesLocalText\").val()) + Number((0, _jquery.default)(\".AssociatesDuesStateText\").val()) + Number((0, _jquery.default)(\".AssociatesDuesNAHBText\").val()));\n }\n function sumAffiliateDues() {\n (0, _jquery.default)(\".AffiliateDuesTotalText\").val(Number((0, _jquery.default)(\".AffiliateDuesLocalText\").val()) + Number((0, _jquery.default)(\".AffiliateDuesStateText\").val()) + Number((0, _jquery.default)(\".AffiliateDuesNAHBText\").val()));\n }\n\n // process the form\n (0, _jquery.default)(\"#dues-collection-form\").on(\"submit\", function (event) {\n registrationSubmitButton.attr(\"disabled\", true).text(\"Confirming...\");\n\n // get the form data\n // there are many ways to get this data using jQuery (you can use the class or id also)\n var formData = (0, _jquery.default)(\"#dues-collection-form\").serialize();\n\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n\n // process the form\n _jquery.default.ajax({\n type: \"POST\",\n // define the type of HTTP verb we want to use (POST for our form)\n url: \"/api/Auth/HBADuesCollection/DuesCollection\",\n // the url where we want to POST\n data: formData,\n // our data object\n dataType: \"json\" // what type of data do we expect back from the server\n }).done(function (resp) {\n // Successful login\n if (resp.isValid) {\n window.location = resp.result;\n } else {\n // Unsuccessful login\n (0, _DuesCollectionFormErrorHandling.DuesCollectionFormErrorHandling)(resp.errors);\n registrationSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n });\n });\n};\n\n},{\"./DuesCollectionFormErrorHandling\":161,\"core-js/modules/es.array.find\":120,\"core-js/modules/es.number.constructor\":132,\"jquery\":\"jquery\"}],161:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.for-each\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.split\");\nrequire(\"core-js/modules/web.dom-collections.for-each\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DuesCollectionFormErrorHandling = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar DuesCollectionFormErrorHandling = exports.DuesCollectionFormErrorHandling = function DuesCollectionFormErrorHandling(errors, altElement) {\n // reset error messages\n (0, _jquery.default)(\"fieldset\").removeClass(\"invalid-field\");\n errors.forEach(function (error) {\n var errorData = error.split(\":\");\n if (errorData.length > 1) {\n (0, _jquery.default)(\"input#\" + errorData[0]).closest(\"fieldset\").addClass(\"invalid-field\").find(\".invalid-field-msg\").text(errorData[1]);\n } else {\n // put the error string in a generic, as-of-yet-to-be-determined element\n if (altElement) {\n altElement.append(\"\" + error + \"
\");\n }\n }\n });\n};\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.for-each\":121,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.split\":146,\"core-js/modules/web.dom-collections.for-each\":152,\"jquery\":\"jquery\"}],162:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.to-primitive\");\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.date.to-primitive\");\nrequire(\"core-js/modules/es.number.constructor\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.replace\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.DynamicBanner = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar _objectFit = require(\"../polyfill/object-fit\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar DynamicBanner = exports.DynamicBanner = /*#__PURE__*/function () {\n function DynamicBanner($el) {\n _classCallCheck(this, DynamicBanner);\n this.$el = $el;\n this.$container = $el.parent();\n this.$media = $el.find(\".js-banner-media\");\n this.bindEvents();\n }\n _createClass(DynamicBanner, [{\n key: \"bindEvents\",\n value: function bindEvents() {\n var _this = this;\n // only apply this if media is video or object-fit is not natively supported\n if (!(0, _objectFit.objectFitSupport)() || this.$media[0] && this.$media[0].nodeName === \"VIDEO\") {\n (0, _jquery.default)(window).on(\"resize\", function () {\n return _this.adjustMedia();\n });\n // this.adjustMedia();\n }\n }\n }, {\n key: \"adjustMedia\",\n value: function adjustMedia() {\n var maxHeight = parseInt(this.$el.css(\"max-height\").replace(\"px\", \"\"), 10);\n\n // The object-fit polyfill will apply absolute positioning to the media element.\n // This will remove the media from flow making it's effective height zero.\n // In the case that we have a max-height applied, we still to provide an appropriate\n // height value for both the media and it's container.\n\n if (maxHeight) {\n var mediaWidth = this.$media.width();\n var mediaHeight = this.$media.height();\n var containerWidth = this.$container.width();\n\n // get the aspect ration of the original media\n var ratio = mediaHeight / mediaWidth;\n\n // calculate proportional height based on container size\n var newHeight = containerWidth * ratio;\n if (newHeight > maxHeight) {\n newHeight = maxHeight;\n }\n //this.$media.height(newHeight);\n this.$media.parent().height(newHeight);\n this.$media.height(newHeight);\n }\n (0, _objectFit.objectFit)(this.$media[0]);\n }\n }]);\n return DynamicBanner;\n}();\n\n},{\"../polyfill/object-fit\":283,\"core-js/modules/es.array.find\":120,\"core-js/modules/es.date.to-primitive\":130,\"core-js/modules/es.number.constructor\":132,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.replace\":144,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.to-primitive\":151,\"jquery\":\"jquery\"}],163:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.to-primitive\");\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.date.to-primitive\");\nrequire(\"core-js/modules/es.number.constructor\");\nrequire(\"core-js/modules/es.object.to-string\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ExpandSearchForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar ExpandSearchForm = exports.ExpandSearchForm = /*#__PURE__*/function () {\n function ExpandSearchForm($el) {\n _classCallCheck(this, ExpandSearchForm);\n this.$el = $el;\n this.$form = $el.next(\".search-box__expanded\");\n this.$close = this.$form.find(\".js-search-box__collapse-toggle\");\n this.bindEvents();\n }\n _createClass(ExpandSearchForm, [{\n key: \"bindEvents\",\n value: function bindEvents() {\n var _this = this;\n this.$el.on(\"click\", function (event) {\n return _this.expand(event);\n });\n this.$close.on(\"click\", function (event) {\n return _this.expand(event);\n });\n }\n }, {\n key: \"expand\",\n value: function expand(event) {\n event.preventDefault();\n if (this.$form.hasClass(\"is-active\")) {\n this.$el.removeClass(\"is-hidden\");\n this.$form.removeClass(\"is-active\").attr(\"aria-expanded\", false);\n } else {\n this.$el.addClass(\"is-hidden\");\n this.$form.addClass(\"is-active\").attr(\"aria-expanded\", true);\n }\n }\n }]);\n return ExpandSearchForm;\n}();\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.date.to-primitive\":130,\"core-js/modules/es.number.constructor\":132,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.to-primitive\":151,\"jquery\":\"jquery\"}],164:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ForgotPasswordForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar _MemberProfileErrorHandling = require(\"./MemberProfileErrorHandling\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar ForgotPasswordForm = exports.ForgotPasswordForm = function ForgotPasswordForm() {\n var formErrorElement = (0, _jquery.default)(\".form-error\");\n var formSuccessElement = (0, _jquery.default)(\".form-success\");\n formErrorElement.hide();\n formSuccessElement.hide();\n var usernameField = (0, _jquery.default)(\"input[name=Username]\");\n var forgotPassSubmit = (0, _jquery.default)('#CheckUsernameButton');\n var checkAnswerSubmit = (0, _jquery.default)('#CheckAnswerButton');\n var tokenExpiredMsg = (0, _jquery.default)('.token-expired-msg');\n var originalSubmitText = forgotPassSubmit.text();\n // process the form\n (0, _jquery.default)('#forgotPasswordForm').submit(function (event) {\n (0, _jquery.default)(\"fieldset\").removeClass(\"invalid-field\");\n (0, _jquery.default)(\".invalid-field-msg\").text(\"\");\n forgotPassSubmit.attr('disabled', 'disabled').text('Checking user...');\n formErrorElement.html(\"\");\n formErrorElement.hide();\n (0, _jquery.default)(\".form-success\").html(\"\");\n (0, _jquery.default)(\".form-success\").hide();\n // get the form data\n // there are many ways to get this data using jQuery (you can use the class or id also)\n var formData = (0, _jquery.default)('#forgotPasswordForm').serialize();\n\n // process the form\n _jquery.default.ajax({\n type: 'POST',\n // define the type of HTTP verb we want to use (POST for our form)\n url: '/api/Auth/NAHBAuthentication/CheckUsername',\n // the url where we want to POST\n data: formData,\n // our data object\n dataType: 'json' // what type of data do we expect back from the server\n })\n // using the done promise callback\n .done(function (data) {\n if (data.isValid) {\n if (data.result.question) {\n forgotPassSubmit.text('Submit');\n forgotPassSubmit.hide();\n tokenExpiredMsg.hide();\n usernameField.attr('disabled', 'disabled');\n (0, _jquery.default)(\"#checkSecurityQuestionForm\").show();\n (0, _jquery.default)(\"#securityQuestion\").html(\"Security Question : \" + data.result.question);\n } else {\n formSuccessElement.append(\"\" + data.result + \"\");\n formSuccessElement.show();\n tokenExpiredMsg.hide();\n forgotPassSubmit.hide();\n }\n } else {\n forgotPassSubmit.removeAttr('disabled').text(originalSubmitText);\n (0, _MemberProfileErrorHandling.MemberProfileErrorHandling)(data.errors, formErrorElement);\n if (formErrorElement.children().length) {\n formErrorElement.show();\n }\n }\n // here we will handle errors and validation messages\n });\n\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n });\n (0, _jquery.default)('#checkSecurityQuestionForm').submit(function (event) {\n (0, _jquery.default)(\"fieldset\").removeClass(\"invalid-field\");\n (0, _jquery.default)(\".invalid-field-msg\").text(\"\");\n formErrorElement.html(\"\");\n formErrorElement.hide();\n formSuccessElement.html(\"\");\n formSuccessElement.hide();\n // get the form data\n // there are many ways to get this data using jQuery (you can use the class or id also)\n var formData = (0, _jquery.default)('#checkSecurityQuestionForm').serialize();\n formData = formData + \"&Username=\" + (0, _jquery.default)(\"input[name=Username]\").val();\n checkAnswerSubmit.attr('disabled', 'disabled').text('Checking answer...');\n _jquery.default.ajax({\n type: 'POST',\n // define the type of HTTP verb we want to use (POST for our form)\n url: '/api/Auth/NAHBAuthentication/CheckSecurityQuestion',\n // the url where we want to POST\n data: formData,\n // our data object\n dataType: 'json' // what type of data do we expect back from the server\n })\n // using the done promise callback\n .done(function (data) {\n checkAnswerSubmit.text('Submit');\n checkAnswerSubmit.removeAttr('disabled');\n if (data.isValid) {\n tokenExpiredMsg.hide();\n formSuccessElement.append(\"\" + data.result + \"\");\n formSuccessElement.append(\"
Redirecting please wait... \");\n formSuccessElement.show();\n checkAnswerSubmit.attr('disabled', 'disabled').text('Please wait...');\n setTimeout(function () {\n window.location = \"/\";\n }, 5000);\n } else {\n (0, _MemberProfileErrorHandling.MemberProfileErrorHandling)(data.errors, (0, _jquery.default)(\".form-error\"));\n if (formErrorElement.children().length) {\n formErrorElement.show();\n }\n }\n // here we will handle errors and validation messages\n });\n\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n });\n};\n\n},{\"./MemberProfileErrorHandling\":172,\"jquery\":\"jquery\"}],165:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.index-of\");\nrequire(\"core-js/modules/es.array.iterator\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.iterator\");\nrequire(\"core-js/modules/es.string.replace\");\nrequire(\"core-js/modules/web.dom-collections.iterator\");\nrequire(\"core-js/modules/web.url\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.FormsDataExportForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar _jqueryDatepicker = _interopRequireDefault(require(\"jquery-datepicker\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar FormsDataExportForm = exports.FormsDataExportForm = function FormsDataExportForm() {\n // Cache for fewer DOM queries\n var fdeErrorElm = (0, _jquery.default)(\".forms-data-export-error\");\n var fdeFormSubmitButton = (0, _jquery.default)(\"#forms-data-export-form\").find(\"button\");\n var originalSubmitText = fdeFormSubmitButton.text();\n var fdeFilterDataDatesFields = (0, _jquery.default)(\".filter-data-date\");\n var fdeFilterDataFiltered = (0, _jquery.default)(\".filter-data-filtered\");\n var fdeFilterDataAll = (0, _jquery.default)(\".filter-data-all\");\n var fdeFromDate = (0, _jquery.default)(\"input[name='FromDate']\");\n var fdeToDate = (0, _jquery.default)(\"input[name='ToDate']\");\n var dateFormat = \"mm/dd/yy\";\n (0, _jqueryDatepicker.default)(_jquery.default);\n\n // Make sure the error field is hidden on load\n fdeErrorElm.hide();\n\n // Disable filter data dates fields on load\n fdeFilterDataDatesFields.attr(\"disabled\", \"disabled\");\n fdeFilterDataFiltered.on(\"click\", function () {\n fdeFilterDataDatesFields.removeAttr(\"disabled\");\n });\n fdeFilterDataAll.on(\"click\", function () {\n fdeFilterDataDatesFields.attr(\"disabled\", \"disabled\");\n });\n\n // Initialize datepicker fields\n var getDate = function getDate(element) {\n var date;\n try {\n date = _jquery.default.datepicker.parseDate(dateFormat, element.value);\n } catch (error) {\n date = null;\n }\n return date;\n };\n fdeFromDate.datepicker();\n fdeToDate.datepicker();\n fdeFromDate.on(\"change\", function () {\n var minDate = getDate(this);\n var minDateToSelect = new Date(minDate);\n minDateToSelect.setDate(minDate.getDate() + 1);\n fdeToDate.datepicker(\"option\", \"minDate\", minDateToSelect.toLocaleDateString(\"en-US\"));\n });\n fdeToDate.on(\"change\", function () {\n var maxDate = getDate(this);\n var maxDateToSelect = new Date(maxDate);\n maxDateToSelect.setDate(maxDate.getDate() - 1);\n fdeFromDate.datepicker(\"option\", \"maxDate\", maxDateToSelect.toLocaleDateString(\"en-US\"));\n });\n\n // process the form\n (0, _jquery.default)(\"#forms-data-export-form\").on(\"submit\", function (event) {\n //Empty and hide again, in case the error field was already shown from a previous error\n fdeErrorElm.html(\"\").hide();\n\n // UI update for submit button so user knows it was successful\n fdeFormSubmitButton.attr(\"disabled\", true).text(\"Exporting...\");\n\n // get the form data\n // there are many ways to get this data using jQuery (you can use the class or id also)\n var formData = (0, _jquery.default)(\"#forms-data-export-form\").serialize();\n\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n\n // process the form\n _jquery.default.ajax({\n type: \"GET\",\n url: \"/api/Auth/Forms/Export\",\n data: formData,\n statusCode: {\n 500: function _() {\n fdeErrorElm.append(\"There was an error. Please try again later.\");\n fdeErrorElm.show();\n fdeFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n },\n 400: function _(XMLHttpRequest, textStatus, errorThrown) {\n fdeErrorElm.append(\"The form contains invalid field values. Please review them.\");\n fdeErrorElm.show();\n fdeFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n },\n 404: function _(XMLHttpRequest, textStatus, errorThrown) {\n fdeErrorElm.append(\"The selected form has no submitted data or this form has no data submitted in the selected date range.\");\n fdeErrorElm.show();\n fdeFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n },\n 403: function _(XMLHttpRequest, textStatus, errorThrown) {\n fdeErrorElm.append(\"Access to the selected form data is forbidden.\");\n fdeErrorElm.show();\n fdeFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n },\n xhrFields: {\n responseType: 'blob' // to avoid binary data being mangled on charset conversion\n },\n success: function success(blob, status, xhr) {\n fdeFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n // check for a filename\n var filename = \"\";\n var disposition = xhr.getResponseHeader('Content-Disposition');\n if (disposition && disposition.indexOf('attachment') !== -1) {\n var filenameRegex = /filename[^;=\\n]*=((['\"]).*?\\2|[^;\\n]*)/;\n var matches = filenameRegex.exec(disposition);\n if (matches != null && matches[1]) filename = matches[1].replace(/['\"]/g, '');\n }\n if (typeof window.navigator.msSaveBlob !== 'undefined') {\n // IE workaround for \"HTML7007: One or more blob URLs were revoked by closing the blob for which they were created. These URLs will no longer resolve as the data backing the URL has been freed.\"\n window.navigator.msSaveBlob(blob, filename);\n } else {\n var URL = window.URL || window.webkitURL;\n var downloadUrl = URL.createObjectURL(blob);\n if (filename) {\n // use HTML5 a[download] attribute to specify filename\n var a = document.createElement(\"a\");\n // safari doesn't support this yet\n if (typeof a.download === 'undefined') {\n window.location.href = downloadUrl;\n } else {\n a.href = downloadUrl;\n a.download = filename;\n document.body.appendChild(a);\n a.click();\n }\n } else {\n window.location.href = downloadUrl;\n }\n setTimeout(function () {\n URL.revokeObjectURL(downloadUrl);\n }, 100); // cleanup\n }\n }\n });\n });\n};\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.index-of\":123,\"core-js/modules/es.array.iterator\":124,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.iterator\":142,\"core-js/modules/es.string.replace\":144,\"core-js/modules/web.dom-collections.iterator\":153,\"core-js/modules/web.url\":155,\"jquery\":\"jquery\",\"jquery-datepicker\":\"jquery-datepicker\"}],166:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.to-primitive\");\nrequire(\"core-js/modules/es.date.to-primitive\");\nrequire(\"core-js/modules/es.number.constructor\");\nrequire(\"core-js/modules/es.object.assign\");\nrequire(\"core-js/modules/es.object.to-string\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ImageSlider = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nrequire(\"./custom-vendor/slick-carousel/slick/slick\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar ImageSlider = exports.ImageSlider = /*#__PURE__*/function () {\n function ImageSlider($el, conf) {\n _classCallCheck(this, ImageSlider);\n this.$el = $el;\n var slickConf = Object.assign(this.slickDefaults(), conf);\n\n // bind event prior to slick init\n this.bindEvents();\n this.$el.slick(slickConf);\n }\n _createClass(ImageSlider, [{\n key: \"bindEvents\",\n value: function bindEvents() {\n // bind an event on the arrows to de-focus them when\n // you mouse out, so the focus state doesn't get stuck\n this.$el.on('mouseleave', '.slick-next, .slick-prev', function (event) {\n event.currentTarget.blur();\n });\n }\n }, {\n key: \"slickDefaults\",\n value: function slickDefaults() {\n return {\n dots: false,\n infinite: true,\n speed: 300,\n slidesToShow: 1,\n slidesToScroll: 1,\n prevArrow: \"\\n \",\n nextArrow: \"\\n \"\n };\n }\n }]);\n return ImageSlider;\n}();\n\n},{\"./custom-vendor/slick-carousel/slick/slick\":207,\"core-js/modules/es.date.to-primitive\":130,\"core-js/modules/es.number.constructor\":132,\"core-js/modules/es.object.assign\":133,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.to-primitive\":151,\"jquery\":\"jquery\"}],167:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ImpersonationForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar _ImpersonationFormErrorHandling = require(\"./ImpersonationFormErrorHandling\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar ImpersonationForm = exports.ImpersonationForm = function ImpersonationForm() {\n var impersonateSubmitButton = (0, _jquery.default)(\"#impersonationForm\").find(\"button\");\n var originalSubmitText = impersonateSubmitButton.text();\n var baseUrl = (0, _jquery.default)(\"#Endpoint\").val();\n\n // process the form\n (0, _jquery.default)(\"#impersonationForm\").on(\"submit\", function (event) {\n impersonateSubmitButton.attr(\"disabled\", true).text(\"Impersonating...\");\n\n // get the form data\n // there are many ways to get this data using jQuery (you can use the class or id also)\n var formData = (0, _jquery.default)(\"#impersonationForm\").serialize();\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n\n // process the form\n _jquery.default.ajax({\n type: \"POST\",\n // define the type of HTTP verb we want to use (POST for our form)\n url: baseUrl + \"/api/Auth/NAHBCommerceAccount/ImpersonateUser\",\n // the url where we want to POST\n data: formData,\n // our data object\n dataType: \"json\",\n // what type of data do we expect back from the server\n crossDomain: true,\n xhrFields: {\n withCredentials: true\n }\n }).done(function (resp) {\n if (resp.isValid) {\n window.location = resp.result;\n } else {\n console.log(\"invalid username\");\n (0, _ImpersonationFormErrorHandling.ImpersonationFormErrorHandling)(resp.errors);\n impersonateSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n });\n });\n};\n\n},{\"./ImpersonationFormErrorHandling\":168,\"core-js/modules/es.array.find\":120,\"jquery\":\"jquery\"}],168:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.for-each\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.split\");\nrequire(\"core-js/modules/web.dom-collections.for-each\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ImpersonationFormErrorHandling = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar ImpersonationFormErrorHandling = exports.ImpersonationFormErrorHandling = function ImpersonationFormErrorHandling(errors, altElement) {\n // reset error messages\n (0, _jquery.default)(\"fieldset\").removeClass(\"invalid-field\");\n errors.forEach(function (error) {\n var errorData = error.split(\":\");\n if (errorData.length > 1) {\n (0, _jquery.default)(\"input#Username\").closest(\"fieldset\").addClass(\"invalid-field\").find(\".invalid-field-msg\").text(errorData[1]);\n } else {\n // put the error string in a generic, as-of-yet-to-be-determined element\n if (altElement) {\n altElement.append(\"\" + error + \"
\");\n }\n }\n });\n};\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.for-each\":121,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.split\":146,\"core-js/modules/web.dom-collections.for-each\":152,\"jquery\":\"jquery\"}],169:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.to-primitive\");\nrequire(\"core-js/modules/es.date.to-primitive\");\nrequire(\"core-js/modules/es.number.constructor\");\nrequire(\"core-js/modules/es.object.to-string\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MakeFocusable = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar MakeFocusable = exports.MakeFocusable = /*#__PURE__*/function () {\n function MakeFocusable($el) {\n _classCallCheck(this, MakeFocusable);\n this.$el = $el;\n this.bindEvents();\n }\n _createClass(MakeFocusable, [{\n key: \"bindEvents\",\n value: function bindEvents() {\n var _this = this;\n this.$el.on('click', function (event) {\n return _this.setFocus(event);\n });\n this.$el.on('blur', function (event) {\n return _this.removeFocus(event);\n });\n }\n }, {\n key: \"setFocus\",\n value: function setFocus(event) {\n this.$el.addClass(\"is-hovered\").attr(\"tabindex\", \"1\").focus();\n }\n }, {\n key: \"removeFocus\",\n value: function removeFocus(event) {\n this.$el.removeClass(\"is-hovered\").removeAttr(\"tabindex\");\n }\n }]);\n return MakeFocusable;\n}();\n\n},{\"core-js/modules/es.date.to-primitive\":130,\"core-js/modules/es.number.constructor\":132,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.to-primitive\":151,\"jquery\":\"jquery\"}],170:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.for-each\");\nrequire(\"core-js/modules/web.dom-collections.for-each\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MemberLoginForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar MemberLoginForm = exports.MemberLoginForm = function MemberLoginForm() {\n // Cache for fewer DOM queries\n var loginErrorElm = (0, _jquery.default)(\".login-error\");\n var baseUrl = (0, _jquery.default)(\"#Endpoint\").val();\n var loginFormSubmitButton = (0, _jquery.default)(\"#loginForm\").find(\"button\");\n var originalSubmitText = loginFormSubmitButton.text();\n\n // Make sure the error field is hidden on load\n loginErrorElm.hide();\n\n // process the form\n (0, _jquery.default)(\"#loginForm\").on(\"submit\", function (event) {\n //Empty and hide again, in case the error field was already shown from a previous error\n loginErrorElm.html(\"\").hide();\n\n // UI update for submit button so user knows it was successful\n loginFormSubmitButton.attr(\"disabled\", true).text(\"Logging in...\");\n\n // get the form data\n // there are many ways to get this data using jQuery (you can use the class or id also)\n var formData = (0, _jquery.default)(\"#loginForm\").serialize();\n\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n var antiForgeryToken = (0, _jquery.default)(\"input[name=__RequestVerificationToken]\").val();\n // process the form\n _jquery.default.ajax({\n type: \"POST\",\n // define the type of HTTP verb we want to use (POST for our form)\n url: baseUrl + \"/api/Auth/NAHBCommerceAccount/Login\",\n // the url where we want to POST\n data: formData,\n dataType: \"json\",\n statusCode: {\n 500: function _() {\n loginErrorElm.append(\"There was an error. Please try again later\");\n loginErrorElm.show();\n loginFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n },\n crossDomain: true,\n xhrFields: {\n withCredentials: true\n }\n }).done(function (resp) {\n // Successful login\n if (resp.isValid) {\n window.dataLayer = window.dataLayer || [];\n window.dataLayer.push({\n 'event': 'sign_in',\n 'userID': resp.additionalParameter,\n 'loggedInStatus': 'Yes'\n });\n window.location = resp.result;\n } else {\n // Unsuccessful login\n if (resp.errors) {\n resp.errors.forEach(function (error) {\n loginErrorElm.append(\"\" + error + \"\");\n });\n loginErrorElm.show();\n }\n loginFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n });\n });\n};\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.for-each\":121,\"core-js/modules/web.dom-collections.for-each\":152,\"jquery\":\"jquery\"}],171:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.concat\");\nrequire(\"core-js/modules/es.array.filter\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MemberProfileEditForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar _MemberProfileErrorHandling = require(\"./MemberProfileErrorHandling\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar MemberProfileEditForm = exports.MemberProfileEditForm = function MemberProfileEditForm() {\n var resultBox = (0, _jquery.default)(\".member-profile__edit-results\");\n var interestForm = (0, _jquery.default)(\"#interestForm\").length;\n var interestAreaForm = (0, _jquery.default)(\"#interestAreaForm\").length;\n var usernameForm = (0, _jquery.default)(\"#usernameForm\").length;\n var selectedStateInput = (0, _jquery.default)(\"#selectedState\");\n var stateField = (0, _jquery.default)(\"#registerState\");\n (0, _jquery.default)(\"#cancelProfileButton\").on(\"click\", function (e) {\n e.preventDefault();\n //window.location = \"/member-pages/my-profile\";\n window.location.reload();\n });\n (0, _jquery.default)(\"#SaveProfileButton\").on(\"click\", function (e) {\n resultBox.text(\"\");\n e.preventDefault();\n if (interestForm || interestAreaForm) {\n UpdateInterest();\n } else if (usernameForm) {\n UpdateSecurityInformation();\n } else {\n UpdateProfile();\n }\n });\n function UpdateProfile() {\n var formData = new FormData();\n formData.append(\"FirstName\", (0, _jquery.default)(\"#FirstName\").val());\n formData.append(\"LastName\", (0, _jquery.default)(\"#LastName\").val());\n formData.append(\"Pronounce\", (0, _jquery.default)(\"#Pronounce\").val());\n formData.append(\"BirthYear\", (0, _jquery.default)(\"#BirthYear\").val());\n formData.append(\"AddressId\", (0, _jquery.default)(\"#AddressId\").val());\n formData.append(\"Address1\", (0, _jquery.default)(\"#Address1\").val());\n formData.append(\"Address2\", (0, _jquery.default)(\"#Address2\").val());\n formData.append(\"City\", (0, _jquery.default)(\"#City\").val());\n formData.append(\"State\", (0, _jquery.default)(\"#State\").val());\n formData.append(\"ZipCode\", (0, _jquery.default)(\"#ZipCode\").val());\n formData.append(\"Country\", (0, _jquery.default)(\"#registerCountry\").val());\n formData.append(\"Email\", (0, _jquery.default)(\"#Email\").val());\n formData.append(\"Phone\", (0, _jquery.default)(\"#Phone\").val());\n formData.append(\"Cell\", (0, _jquery.default)(\"#Cell\").val());\n formData.append(\"Fax\", (0, _jquery.default)(\"#Fax\").val());\n formData.append(\"Extension\", (0, _jquery.default)(\"#Extension\").val());\n formData.append(\"ShortBiography\", (0, _jquery.default)(\"#ShortBiography\").val());\n formData.append(\"LinkedIn\", (0, _jquery.default)(\"#LinkedIn\").val());\n formData.append(\"Facebook\", (0, _jquery.default)(\"#Facebook\").val());\n formData.append(\"Twitter\", (0, _jquery.default)(\"#Twitter\").val());\n formData.append(\"Houzz\", (0, _jquery.default)(\"#Houzz\").val());\n formData.append(\"Website\", (0, _jquery.default)(\"#Website\").val());\n formData.append(\"DoNotDisplayEmailPublic\", (0, _jquery.default)(\"#DoNotDisplayEmailPublic\").is(\":checked\"));\n formData.append(\"DoNotDisplayPhonePublic\", (0, _jquery.default)(\"#DoNotDisplayPhonePublic\").is(\":checked\"));\n formData.append(\"DoNotDisplayAddressPublic\", (0, _jquery.default)(\"#DoNotDisplayAddressPublic\").is(\":checked\"));\n formData.append(\"PreferredContactMethod\", (0, _jquery.default)(\"#PreferredContactMethod\").val());\n _jquery.default.ajax({\n type: \"POST\",\n // define the type of HTTP verb we want to use (POST for our form)\n url: \"/api/Auth/Accounts/UpdateProfile\",\n // the url where we want to POST\n data: formData,\n // our data object\n processData: false,\n contentType: false\n }).done(function (data) {\n console.log(data);\n if (data.isValid) {\n (0, _jquery.default)('.invalid-field').each(function () {\n (0, _jquery.default)(this).removeClass('invalid-field');\n });\n (0, _jquery.default)(resultBox).text(\"Profile saved successfully!\");\n } else {\n (0, _MemberProfileErrorHandling.MemberProfileErrorHandling)(data.errors);\n (0, _jquery.default)(resultBox).text(\"Profile couldn't be updated!.\");\n }\n });\n }\n function UpdateInterest() {\n var form1 = (0, _jquery.default)(\"#interestForm\").serializeArray();\n var emptyVal = \"\";\n var form2 = (0, _jquery.default)(\"#interestAreaForm\").serializeArray();\n _jquery.default.each((0, _jquery.default)(\"#interestAreaForm input[type=checkbox]\").filter(function (idx) {\n return (0, _jquery.default)(this).prop(\"checked\") === false;\n }), function (idx, el) {\n // attach matched element names to the formData with a chosen value.\n var item = {};\n item.name = (0, _jquery.default)(el).attr(\"name\");\n item.value = \"false\";\n form2.push(item);\n });\n var form3 = (0, _jquery.default)(\"#newsletterForm\").serializeArray();\n _jquery.default.each((0, _jquery.default)(\"#newsletterForm input[type=checkbox]\").filter(function (idx) {\n return (0, _jquery.default)(this).prop(\"checked\") === false;\n }), function (idx, el) {\n // attach matched element names to the formData with a chosen value.\n var item = {};\n item.name = (0, _jquery.default)(el).attr(\"name\");\n item.value = \"false\";\n form3.push(item);\n });\n var formData = form1.concat(form2).concat(form3);\n console.log(formData);\n _jquery.default.ajax({\n type: \"POST\",\n // define the type of HTTP verb we want to use (POST for our form)\n url: \"/api/Auth/Accounts/SetMyInterestAndNewsLetters\",\n // the url where we want to POST\n data: formData,\n // our data object\n traditional: true\n }).done(function (data) {\n console.log(data);\n if (data.isValid) {\n (0, _jquery.default)(resultBox).text(\"Profile saved successfully!\");\n } else {\n (0, _MemberProfileErrorHandling.MemberProfileErrorHandling)(data.errors);\n (0, _jquery.default)(resultBox).text(\"Profile couldn't be updated!.\");\n }\n });\n }\n function UpdateSecurityInformation() {\n var formData = new FormData();\n formData.append(\"Username\", (0, _jquery.default)(\"#Username\").val());\n formData.append(\"CurrentPassword\", (0, _jquery.default)(\"#CurrentPassword\").val());\n formData.append(\"NewPassword\", (0, _jquery.default)(\"#NewPassword\").val());\n formData.append(\"SecurityQuestion\", (0, _jquery.default)(\"#SecurityQuestion\").val());\n formData.append(\"UseEmailInProfile\", (0, _jquery.default)(\"#UseEmailInProfile\").is(\":checked\"));\n formData.append(\"SecurityQuestionAnswer\", (0, _jquery.default)(\"#SecurityQuestionAnswer\").val());\n _jquery.default.ajax({\n type: \"POST\",\n // define the type of HTTP verb we want to use (POST for our form)\n url: \"/api/Auth/Accounts/UpdateSecurity\",\n // the url where we want to POST\n data: formData,\n // our data object\n processData: false,\n contentType: false\n }).done(function (data) {\n console.log(data);\n if (data.isValid) {\n (0, _jquery.default)('.invalid-field').each(function () {\n (0, _jquery.default)(this).removeClass('invalid-field');\n });\n (0, _jquery.default)(resultBox).text(\"Profile saved successfully!\");\n } else {\n (0, _MemberProfileErrorHandling.MemberProfileErrorHandling)(data.errors);\n (0, _jquery.default)(resultBox).text(\"Profile couldn't be updated!.\");\n }\n });\n }\n\n // When a user changes their Security Question, clear the Answer field\n (0, _jquery.default)(\"#SecurityQuestion\").on(\"change\", function () {\n (0, _jquery.default)(\"#SecurityQuestionAnswer\").val(\"\");\n });\n\n //\n // Member Profile avatar uploads\n //\n\n (0, _jquery.default)(\"#memberPhoto\").on(\"change\", function (elm) {\n (0, _jquery.default)(\".member-profile__field-group-photo\").addClass(\"is-loading\");\n var fileList = this.files; /* now you can work with the file list */\n previewImage(fileList);\n var formData = new FormData();\n formData.append(\"file\", fileList[0]);\n _jquery.default.ajax({\n method: \"POST\",\n url: \"/api/auth/Accounts/AccountProfileUploadPhoto\",\n contentType: false,\n processData: false,\n data: formData\n }).done(function (data) {\n console.log(data);\n if (data.isValid) {\n //$('.member-profile__field-group-photo .invalid-field').each(function(){ $(this).removeClass('invalid-field'); });\n (0, _jquery.default)(\".member-profile__field-group-photo\").removeClass(\"is-loading\");\n (0, _jquery.default)(\"#memberPhotoDelete\").show();\n } else {\n (0, _MemberProfileErrorHandling.MemberProfilePhotoErrorHandling)(data.errors);\n }\n });\n });\n function previewImage(input) {\n if (input[0]) {\n var reader = new FileReader();\n reader.onload = function (e) {\n (0, _jquery.default)(\"#member-profile__avatar\").attr(\"src\", e.target.result);\n };\n reader.readAsDataURL(input[0]);\n }\n }\n (0, _jquery.default)(\"#memberPhotoDelete\").on(\"click\", function (elm) {\n elm.preventDefault();\n (0, _jquery.default)(\".member-profile__field-group-photo\").addClass(\"is-loading\");\n _jquery.default.ajax({\n method: \"POST\",\n url: \"/api/auth/Accounts/AccountProfileDeletePhoto\"\n }).done(function (result) {\n if (result.isValid) {\n (0, _jquery.default)(\"#member-profile__avatar\").attr(\"src\", \"https://via.placeholder.com/192\");\n (0, _jquery.default)(\"#memberPhotoDelete\").hide();\n }\n (0, _jquery.default)(\".member-profile__field-group-photo\").removeClass(\"is-loading\");\n });\n });\n};\n\n},{\"./MemberProfileErrorHandling\":172,\"core-js/modules/es.array.concat\":118,\"core-js/modules/es.array.filter\":119,\"jquery\":\"jquery\"}],172:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.for-each\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.split\");\nrequire(\"core-js/modules/web.dom-collections.for-each\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MemberProfilePhotoErrorHandling = exports.MemberProfileErrorHandling = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar MemberProfileErrorHandling = exports.MemberProfileErrorHandling = function MemberProfileErrorHandling(errors, altElement) {\n // reset error messages\n (0, _jquery.default)(\"fieldset\").removeClass(\"invalid-field\");\n (0, _jquery.default)(\".invalid-field-msg\").text(\"\");\n errors.forEach(function (error) {\n var errorData = error.split(\":\");\n if (errorData.length > 1) {\n (0, _jquery.default)(\"input#\" + errorData[0]).closest(\"fieldset\").addClass(\"invalid-field\").find(\".invalid-field-msg\").text(errorData[1]);\n } else {\n // put the error string in a generic, as-of-yet-to-be-determined element\n if (altElement) {\n altElement.append(\"\" + error + \"
\");\n }\n }\n });\n};\nvar MemberProfilePhotoErrorHandling = exports.MemberProfilePhotoErrorHandling = function MemberProfilePhotoErrorHandling(errors, altElement) {\n // reset error messages\n (0, _jquery.default)(\"fieldset\").removeClass(\"invalid-field\");\n (0, _jquery.default)(\".invalid-field-msg\").text(\"\");\n console.log(errors);\n errors.forEach(function (error) {\n var errorData = error.split(\":\");\n if (errorData.length > 1) {\n (0, _jquery.default)(\"input#\" + errorData[0]).closest(\".member-profile__field-group-photo\").addClass(\"invalid-field\").find(\".invalid-field-msg\").text(errorData[1]);\n } else {\n // put the error string in a generic, as-of-yet-to-be-determined element\n if (altElement) {\n altElement.append(\"\" + error + \"
\");\n }\n }\n });\n};\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.for-each\":121,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.split\":146,\"core-js/modules/web.dom-collections.for-each\":152,\"jquery\":\"jquery\"}],173:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.concat\");\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.for-each\");\nrequire(\"core-js/modules/es.array.index-of\");\nrequire(\"core-js/modules/web.dom-collections.for-each\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MemberRegistrationForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar _MemberProfileErrorHandling = require(\"./MemberProfileErrorHandling\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar MemberRegistrationForm = exports.MemberRegistrationForm = function MemberRegistrationForm() {\n // Cache for fewer DOM queries\n\n var registrationErrorElm = (0, _jquery.default)(\".registration-errors\");\n var registrationSubmitButton = (0, _jquery.default)(\"#registrationForm\").find(\"button\");\n var originalSubmitText = registrationSubmitButton.text();\n var registrationCountriesSelect = (0, _jquery.default)(\"#registerCountry\");\n var selectedCountryInput = (0, _jquery.default)(\"#selectedCountry\");\n var selectedStateInput = (0, _jquery.default)(\"#selectedState\");\n var stateField = (0, _jquery.default)(\"#State\");\n var zipField = (0, _jquery.default)(\"#Zip\");\n var zipFieldLabel = (0, _jquery.default)((0, _jquery.default)(\"#Zip\").siblings('label')[0]);\n // Make sure the error field is hidden on load\n registrationErrorElm.hide();\n // loginErrorElm.hide();\n if (typeof countries !== \"undefined\") {\n countries.forEach(function (val, ind, arr) {\n registrationCountriesSelect.append(\"\"));\n });\n }\n registrationCountriesSelect.on(\"change\", function () {\n var stateField = (0, _jquery.default)(\"#State\");\n var zipField = (0, _jquery.default)(\"#Zip\");\n var zipFieldLabel = (0, _jquery.default)((0, _jquery.default)(\"#Zip\").siblings('label')[0]);\n // countries with no states will have a text field instead of select options\n // need to know what the current setting is so we can switch if new country has different states\n var stateFieldElmType = stateField.is(\"select\") ? \"select\" : \"text\";\n\n // each country has a data attribute of its array index so we can find it easier\n var countryData = countries[(0, _jquery.default)(\"option:selected\", this).attr(\"data-arr-ind\")];\n if (countryData.States.length) {\n // this should be a select field, replace if was text\n if (stateFieldElmType === \"text\") {\n stateField.replaceWith('');\n stateField = (0, _jquery.default)(\"#State\"); // need to reassign, old elm is gone\n zipField.replaceWith('');\n zipField = (0, _jquery.default)(\"#Zip\");\n zipFieldLabel.replaceWith('');\n zipFieldLabel = (0, _jquery.default)((0, _jquery.default)(\"#Zip\").siblings('label')[0]);\n }\n stateField.empty(); // remove any old option values\n if (selectedStateInput && selectedStateInput.val()) {\n stateField.val(selectedStateInput.val());\n }\n countryData.States.forEach(function (val, ind, arr) {\n stateField.append(\"\"));\n });\n } else {\n // this should be a text field, replace if was select\n if (stateFieldElmType === \"select\") {\n stateField.replaceWith('');\n }\n zipField.replaceWith('');\n zipFieldLabel.replaceWith('');\n }\n });\n (0, _jquery.default)(\".js-toggle-registration-pin\").on(\"change\", function () {\n if ((0, _jquery.default)(this)[0].checked) {\n (0, _jquery.default)(\"#registrationForm\").addClass(\"no-pin\");\n (0, _jquery.default)(this).closest(\".labelled-field\").find(\"label[for=PIN]\").removeClass(\"required-field\");\n } else {\n (0, _jquery.default)(\"#registrationForm\").removeClass(\"no-pin\");\n (0, _jquery.default)(this).closest(\".labelled-field\").find(\"label[for=PIN]\").addClass(\"required-field\");\n }\n });\n\n // process the form\n (0, _jquery.default)(\"#registrationForm\").on(\"submit\", function (event) {\n //Empty and hide again, in case the error field was already shown from a previous error\n registrationErrorElm.html(\"\").hide();\n\n // UI update for submit button so user knows it was successful\n registrationSubmitButton.attr(\"disabled\", true).text(\"Registering...\");\n\n // get the form data\n // there are many ways to get this data using jQuery (you can use the class or id also)\n var formData = (0, _jquery.default)(\"#registrationForm\").serialize();\n\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n\n // process the form\n _jquery.default.ajax({\n type: \"POST\",\n // define the type of HTTP verb we want to use (POST for our form)\n url: \"/api/Auth/Accounts/RegisterAccount\",\n // the url where we want to POST\n data: formData,\n // our data object\n dataType: \"json\" // what type of data do we expect back from the server\n }).done(function (resp) {\n // Successful login\n if (resp.isValid) {\n window.location = resp.result;\n } else {\n // Unsuccessful login\n (0, _MemberProfileErrorHandling.MemberProfileErrorHandling)(resp.errors);\n var showGeneralError = false;\n resp.errors.forEach(function (error) {\n if (error.indexOf(\":\") === -1) {\n registrationErrorElm.append(\"\" + error + \"\");\n showGeneralError = true;\n }\n });\n if (showGeneralError) {\n registrationErrorElm.show();\n }\n registrationSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n });\n });\n\n // default to United States as country if no value exists\n if (selectedCountryInput && selectedCountryInput.val()) {\n registrationCountriesSelect.val(selectedCountryInput.val());\n registrationCountriesSelect.trigger(\"change\");\n if (selectedStateInput && selectedStateInput.val()) {\n stateField.val(selectedStateInput.val());\n }\n } else {\n registrationCountriesSelect.val(\"US\");\n registrationCountriesSelect.trigger(\"change\");\n }\n};\n\n},{\"./MemberProfileErrorHandling\":172,\"core-js/modules/es.array.concat\":118,\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.for-each\":121,\"core-js/modules/es.array.index-of\":123,\"core-js/modules/web.dom-collections.for-each\":152,\"jquery\":\"jquery\"}],174:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.to-primitive\");\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.date.to-primitive\");\nrequire(\"core-js/modules/es.number.constructor\");\nrequire(\"core-js/modules/es.object.assign\");\nrequire(\"core-js/modules/es.object.to-string\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.MultiplePullQuoteContainer = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nrequire(\"./custom-vendor/slick-carousel/slick/slick\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar MultiplePullQuoteContainer = exports.MultiplePullQuoteContainer = /*#__PURE__*/function () {\n function MultiplePullQuoteContainer($el, conf) {\n _classCallCheck(this, MultiplePullQuoteContainer);\n this.$el = $el;\n var slickConf = Object.assign(this.slickDefaults(), conf);\n\n // bind event prior to slick init\n this.bindEvents();\n this.$el.slick(slickConf);\n }\n _createClass(MultiplePullQuoteContainer, [{\n key: \"bindEvents\",\n value: function bindEvents() {\n // bind an event on the arrows to de-focus them when\n // you mouse out, so the focus state doesn't get stuck\n this.$el.on('mouseleave', '.slick-next, .slick-prev', function (event) {\n event.currentTarget.blur();\n });\n }\n }, {\n key: \"slickDefaults\",\n value: function slickDefaults() {\n var parentContainer = this.$el.closest('.multiple-pull-quote-container');\n var prevArrow = parentContainer.find('.multiple-pull-quote-container__arrow--left');\n var nextArrow = parentContainer.find('.multiple-pull-quote-container__arrow--right');\n return {\n dots: false,\n infinite: true,\n speed: 300,\n slidesToShow: 1,\n slidesToScroll: 1,\n prevArrow: prevArrow,\n nextArrow: nextArrow\n };\n }\n }]);\n return MultiplePullQuoteContainer;\n}();\n\n},{\"./custom-vendor/slick-carousel/slick/slick\":207,\"core-js/modules/es.array.find\":120,\"core-js/modules/es.date.to-primitive\":130,\"core-js/modules/es.number.constructor\":132,\"core-js/modules/es.object.assign\":133,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.to-primitive\":151,\"jquery\":\"jquery\"}],175:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.for-each\");\nrequire(\"core-js/modules/es.array.iterator\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.iterator\");\nrequire(\"core-js/modules/es.string.replace\");\nrequire(\"core-js/modules/es.string.search\");\nrequire(\"core-js/modules/web.dom-collections.for-each\");\nrequire(\"core-js/modules/web.dom-collections.iterator\");\nrequire(\"core-js/modules/web.url\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ReviewAddressForm = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar ReviewAddressForm = exports.ReviewAddressForm = function ReviewAddressForm() {\n // Cache for fewer DOM queries\n var addErrorElm = (0, _jquery.default)(\".add-error\");\n var emailFormSubmitButton = (0, _jquery.default)(\"#emailForm\").find(\"button\");\n var originalSubmitText = emailFormSubmitButton.text();\n\n // Make sure the error field is hidden on load\n addErrorElm.hide();\n\n // process the form\n (0, _jquery.default)(\"#emailForm\").on(\"submit\", function (event) {\n //Empty and hide again, in case the error field was already shown from a previous error\n addErrorElm.html(\"\").hide();\n\n // UI update for submit button so user knows it was successful\n emailFormSubmitButton.attr(\"disabled\", true).text(\"Confirming...\");\n\n // stop the form from submitting the normal way and refreshing the page\n event.preventDefault();\n var queryString = window.location.search;\n var urlParams = new URLSearchParams(queryString);\n var returnUrlParam = urlParams.get('ReturnUrl');\n\n // process the form\n _jquery.default.ajax({\n type: \"POST\",\n // define the type of HTTP verb we want to use (POST for our form)\n url: \"/api/Auth/Accounts/ReviewEmailAddress\",\n // the url where we want to POST\n data: {\n \"returnUrl\": returnUrlParam\n },\n dataType: \"json\",\n statusCode: {\n 500: function _() {\n addErrorElm.append(\"There was an error. Please try again later\");\n addErrorElm.show();\n emailFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n },\n crossDomain: true,\n xhrFields: {\n withCredentials: true\n }\n }).done(function (resp) {\n // Successful login\n if (resp.isValid) {\n if (resp.isRedirect) {\n window.location.replace(resp.result);\n } else {\n (0, _jquery.default)(\".js-email-form\").addClass(\"u-hidden\");\n (0, _jquery.default)(\".js-email-confirmation\").removeClass(\"u-hidden\");\n }\n } else {\n // Unsuccessful login\n if (resp.errors) {\n resp.errors.forEach(function (error) {\n addErrorElm.append(\"\" + error + \"\");\n });\n addErrorElm.show();\n }\n emailFormSubmitButton.attr(\"disabled\", false).text(originalSubmitText);\n }\n });\n });\n};\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.for-each\":121,\"core-js/modules/es.array.iterator\":124,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.iterator\":142,\"core-js/modules/es.string.replace\":144,\"core-js/modules/es.string.search\":145,\"core-js/modules/web.dom-collections.for-each\":152,\"core-js/modules/web.dom-collections.iterator\":153,\"core-js/modules/web.url\":155,\"jquery\":\"jquery\"}],176:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.SimpleFormValidation = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar SimpleFormValidation = exports.SimpleFormValidation = function SimpleFormValidation() {\n // Find all forms to validate\n (0, _jquery.default)(\"form[data-nahb-validate-form]\").each(function (ind, elm) {\n // Add event listener to submit button\n (0, _jquery.default)(elm).find('button[type=\"submit\"]').on(\"click\", function (event) {\n var invalidFieldCount = 0;\n (0, _jquery.default)(event.target).closest(\"form\").find(\"[data-nahb-form-required-field]\").each(function (ind, elm) {\n // If field is required and empty, display error msg and prevent form submit\n if (!(0, _jquery.default)(elm).val()) {\n invalidFieldCount++;\n (0, _jquery.default)(elm).closest(\"fieldset\").addClass(\"invalid-field\");\n // if($('div[data-nahb-form-error-for=\"' + $(elm).attr('id') + '\"]').length === 0) {\n // $(elm).after('
' + $(elm).attr('data-nahb-form-invalid-msg') + '
');\n // }\n } else {\n (0, _jquery.default)(elm).closest(\"fieldset\").removeClass(\"invalid-field\");\n // $('div[data-nahb-form-error-for=\"' + $(elm).attr('id') + '\"]').remove();\n }\n });\n if (invalidFieldCount > 0) {\n return false;\n }\n });\n });\n // Add onSubmit watcher\n};\n\n},{\"core-js/modules/es.array.find\":120,\"jquery\":\"jquery\"}],177:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.to-primitive\");\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.date.to-primitive\");\nrequire(\"core-js/modules/es.number.constructor\");\nrequire(\"core-js/modules/es.object.to-string\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.ViewAllExpand = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar ViewAllExpand = exports.ViewAllExpand = /*#__PURE__*/function () {\n function ViewAllExpand($el) {\n _classCallCheck(this, ViewAllExpand);\n this.$el = $el;\n this.$button = $el.find('.js-more');\n this.$expandTarget = $el.find('.js-expand-target');\n this.bindEvents();\n }\n _createClass(ViewAllExpand, [{\n key: \"bindEvents\",\n value: function bindEvents() {\n var _this = this;\n this.$el.on('click', '.js-more', function (event) {\n return _this.expand(event);\n });\n }\n }, {\n key: \"expand\",\n value: function expand(event) {\n event.preventDefault();\n this.$expandTarget.slideDown(200).attr('aria-expanded', true);\n this.$button.hide();\n }\n }]);\n return ViewAllExpand;\n}();\n\n},{\"core-js/modules/es.array.find\":120,\"core-js/modules/es.date.to-primitive\":130,\"core-js/modules/es.number.constructor\":132,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.to-primitive\":151,\"jquery\":\"jquery\"}],178:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.iterator\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.promise\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.iterator\");\nrequire(\"core-js/modules/es.string.search\");\nrequire(\"core-js/modules/web.dom-collections.iterator\");\nrequire(\"core-js/modules/web.url\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.AccountRegistration = void 0;\nrequire(\"regenerator-runtime/runtime\");\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\nvar _LoadingSpinner = _interopRequireDefault(require(\"./components/LoadingSpinner.jsx\"));\nvar _PINLookup = _interopRequireDefault(require(\"./components/PINLookup.jsx\"));\nvar _RegisterWithPIN = _interopRequireDefault(require(\"./components/RegisterWithPIN.jsx\"));\nvar _PersonalInfo = _interopRequireDefault(require(\"./components/PersonalInfo.jsx\"));\nvar _CreatePassword = _interopRequireDefault(require(\"./components/CreatePassword.jsx\"));\nvar _RegistrationConfirmation = _interopRequireDefault(require(\"./components/RegistrationConfirmation.jsx\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\nfunction _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nvar token;\nvar App = function App() {\n var _RegisterMultistepDat;\n var dictionary = (_RegisterMultistepDat = RegisterMultistepData) === null || _RegisterMultistepDat === void 0 ? void 0 : _RegisterMultistepDat.Dictionary;\n var PAGES = {\n PINLOOKUP: \"PINLOOKUP\",\n PERSONALINFO: \"PERSONALINFO\",\n REGISTERWITHPIN: \"REGISTERWITHPIN\",\n CREATEPASSWORD: \"CREATEPASSWORD\",\n REGISTRATIONCONFIRMATION: \"REGISTRATIONCONFIRMATION\"\n };\n var _useState = (0, _react.useState)(true),\n _useState2 = _slicedToArray(_useState, 2),\n isLoading = _useState2[0],\n setIsLoading = _useState2[1];\n var _useState3 = (0, _react.useState)(PAGES.PINLOOKUP),\n _useState4 = _slicedToArray(_useState3, 2),\n activePage = _useState4[0],\n setActivePage = _useState4[1];\n var _useState5 = (0, _react.useState)(\"\"),\n _useState6 = _slicedToArray(_useState5, 2),\n landingPage = _useState6[0],\n setLandingPage = _useState6[1];\n var _useState7 = (0, _react.useState)({\n email: \"\",\n pin: \"\",\n password: \"\",\n securityquestion: \"\",\n securityanswer: \"\",\n firstname: \"\",\n middlename: \"\",\n lastname: \"\",\n pronouns: \"\",\n address1: \"\",\n address2: \"\",\n city: \"\",\n state: \"\",\n country: \"\",\n zip: \"\",\n addresstype: \"\"\n }),\n _useState8 = _slicedToArray(_useState7, 2),\n userData = _useState8[0],\n setUserData = _useState8[1]; // on first page load, check if there is a token provided in URL param\n // this indicates a user coming from a PIN retrieval email\n (0, _react.useEffect)(function () {\n var params = new URLSearchParams(window.location.search);\n\n // there might be a token\n if (params.size > 0 && params.get(\"token\") !== null) {\n var fetchData = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {\n var response, jsonData;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n setIsLoading(true);\n _context.prev = 1;\n _context.next = 4;\n return fetch('/api/Auth/RegistrationMultistep/UserLookupByToken', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams({\n \"__RequestVerificationToken\": token,\n \"Token\": \"{\".concat(params.get(\"token\"), \"}\")\n })\n });\n case 4:\n response = _context.sent;\n if (response.ok) {\n _context.next = 7;\n break;\n }\n throw new Error('Network response was not ok');\n case 7:\n _context.next = 9;\n return response.json();\n case 9:\n jsonData = _context.sent;\n if (!jsonData.isValid) {\n // there was a token but it's bad\n setActivePage(PAGES.PINLOOKUP);\n setIsLoading(false);\n } else {\n // there was a token and it's valid\n setUserData(function (userData) {\n return _objectSpread(_objectSpread({}, userData), {}, {\n email: jsonData.result.email,\n zip: jsonData.result.zip,\n country: jsonData.result.country,\n pin: jsonData.result.pin\n });\n });\n setIsLoading(false);\n setLandingPage(params.get(\"token\"));\n setActivePage(PAGES.CREATEPASSWORD);\n }\n _context.next = 18;\n break;\n case 13:\n _context.prev = 13;\n _context.t0 = _context[\"catch\"](1);\n console.log(_context.t0);\n setActivePage(PAGES.PINLOOKUP);\n setIsLoading(false);\n case 18:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 13]]);\n }));\n return function fetchData(_x) {\n return _ref.apply(this, arguments);\n };\n }();\n fetchData();\n } else {\n // no token, proceed as usual\n setActivePage(PAGES.PINLOOKUP);\n setIsLoading(false);\n }\n }, []);\n var renderPage = function renderPage() {\n if (isLoading) {\n return /*#__PURE__*/_react.default.createElement(_LoadingSpinner.default, null);\n } else {\n switch (activePage) {\n case PAGES.REGISTERWITHPIN:\n return /*#__PURE__*/_react.default.createElement(_RegisterWithPIN.default, {\n dictionary: dictionary,\n setLandingPage: setLandingPage,\n setActivePage: setActivePage,\n userData: userData,\n token: token,\n setUserData: setUserData\n });\n case PAGES.PERSONALINFO:\n return /*#__PURE__*/_react.default.createElement(_PersonalInfo.default, {\n dictionary: dictionary,\n landingPage: landingPage,\n setActivePage: setActivePage,\n userData: userData,\n setUserData: setUserData\n });\n case PAGES.CREATEPASSWORD:\n return /*#__PURE__*/_react.default.createElement(_CreatePassword.default, {\n userData: userData,\n setUserData: setUserData,\n token: token,\n dictionary: dictionary,\n setActivePage: setActivePage,\n landingPage: landingPage\n });\n case PAGES.REGISTRATIONCONFIRMATION:\n return /*#__PURE__*/_react.default.createElement(_RegistrationConfirmation.default, {\n dictionary: dictionary,\n landingPage: landingPage,\n token: token,\n userData: userData\n });\n default:\n // PAGES.PINLOOKUP\n return /*#__PURE__*/_react.default.createElement(_PINLookup.default, {\n dictionary: dictionary,\n token: token,\n userData: userData,\n setUserData: setUserData,\n setActivePage: setActivePage\n });\n }\n }\n ;\n };\n return /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"container container--20-60-20\",\n id: \"rfw\"\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"container__col\"\n }), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"container__col\"\n }, renderPage()), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"container__col\"\n }, activePage == \"PINLOOKUP\" && /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"callout\"\n }, /*#__PURE__*/_react.default.createElement(\"span\", {\n className: \"callout__title\"\n }, \"Already have an account?\"), /*#__PURE__*/_react.default.createElement(\"span\", {\n className: \"callout__subtitle\"\n }, \"Go to the Login page\"), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"callout__cta-wrapper\"\n }, /*#__PURE__*/_react.default.createElement(\"a\", {\n href: \"/login\",\n className: \"callout__cta\"\n }, \"Login\")))));\n};\nvar AccountRegistration = exports.AccountRegistration = function AccountRegistration() {\n if (document.querySelector(\".register-multistep\")) {\n var _document$querySelect;\n token = (_document$querySelect = document.querySelector(\".register-multistep .token input\")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.value;\n _reactDom.default.render(/*#__PURE__*/_react.default.createElement(App, null), document.querySelector(\".register-multistep\"));\n }\n};\n\n},{\"./components/CreatePassword.jsx\":180,\"./components/LoadingSpinner.jsx\":181,\"./components/PINLookup.jsx\":182,\"./components/PersonalInfo.jsx\":183,\"./components/RegisterWithPIN.jsx\":184,\"./components/RegistrationConfirmation.jsx\":185,\"core-js/modules/es.array.iterator\":124,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.promise\":139,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.iterator\":142,\"core-js/modules/es.string.search\":145,\"core-js/modules/web.dom-collections.iterator\":153,\"core-js/modules/web.url\":155,\"react\":\"react\",\"react-dom\":\"react-dom\",\"regenerator-runtime/runtime\":156}],179:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.replace\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _dompurify = _interopRequireDefault(require(\"dompurify\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar slugify = function slugify(val) {\n return val.toLowerCase().replace(/[^a-z0-9 -]/g, '') // remove any non-alphanumeric characters\n .replace(/\\s+/g, '-') // replace spaces with hyphens\n .replace(/-+/g, '-');\n}; // remove consecutive hyphens\n\nvar ARFormField = function ARFormField(props) {\n var title = props.title,\n dictionary = props.dictionary,\n _props$isRequired = props.isRequired,\n isRequired = _props$isRequired === void 0 ? false : _props$isRequired,\n _props$hasError = props.hasError,\n hasError = _props$hasError === void 0 ? false : _props$hasError,\n _props$errorMessage = props.errorMessage,\n errorMessage = _props$errorMessage === void 0 ? \"\" : _props$errorMessage,\n _props$placeholder = props.placeholder,\n placeholder = _props$placeholder === void 0 ? \"\" : _props$placeholder,\n has_ref = props.has_ref,\n value = props.value,\n setActivePage = props.setActivePage,\n inputType = props.inputType,\n helpText = props.helpText,\n defaultValue = props.defaultValue,\n onUpdate = props.onUpdate,\n _props$appendRegister = props.appendRegisterWithoutPINToError,\n appendRegisterWithoutPINToError = _props$appendRegister === void 0 ? false : _props$appendRegister,\n _props$hasBlankDefaul = props.hasBlankDefault,\n hasBlankDefault = _props$hasBlankDefaul === void 0 ? false : _props$hasBlankDefaul,\n _props$options = props.options,\n options = _props$options === void 0 ? [] : _props$options;\n return /*#__PURE__*/_react.default.createElement(\"fieldset\", {\n className: \"labelled-field \".concat(hasError && \"invalid-field\")\n }, /*#__PURE__*/_react.default.createElement(\"label\", {\n className: isRequired ? \"required-field\" : \"\",\n htmlFor: \"account-registration-field__\".concat(title)\n }, title), options.length ? /*#__PURE__*/_react.default.createElement(\"select\", {\n ref: has_ref !== null && has_ref !== void 0 ? has_ref : null,\n \"aria-required\": isRequired ? true : false,\n className: \"nahb-select\",\n \"data-nahb-form-required-field\": isRequired ? \"true\" : \"false\",\n \"data-val\": isRequired ? \"true\" : \"false\",\n \"data-val-required\": \"The \".concat(title, \" field is required.\"),\n id: \"account-registration-field__\".concat(slugify(title)),\n name: title,\n onChange: function onChange(e) {\n return onUpdate && onUpdate(e);\n },\n required: isRequired ? \"required\" : null,\n defaultValue: hasBlankDefault ? \"\" : defaultValue\n }, hasBlankDefault && /*#__PURE__*/_react.default.createElement(\"option\", {\n value: \"\"\n }), options.map(function (option) {\n return /*#__PURE__*/_react.default.createElement(\"option\", {\n key: option.value + option.text,\n value: option.value\n }, option.text);\n })) : /*#__PURE__*/_react.default.createElement(\"input\", {\n ref: has_ref !== null && has_ref !== void 0 ? has_ref : null,\n \"aria-required\": isRequired ? true : false,\n \"data-nahb-form-required-field\": isRequired ? \"true\" : \"false\",\n \"data-val\": isRequired ? \"true\" : \"false\",\n \"data-val-required\": \"The \".concat(title, \" field is required.\"),\n id: \"account-registration-field__\".concat(slugify(title)),\n name: title,\n placeholder: placeholder ? \"Enter \" + slugify(title) : \"\",\n required: isRequired ? \"required\" : null,\n type: inputType !== null && inputType !== void 0 ? inputType : \"text\",\n defaultValue: defaultValue !== null && defaultValue !== void 0 ? defaultValue : value\n }), helpText && /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"help-text\"\n }, helpText), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"invalid-field-msg\"\n }, errorMessage ? /*#__PURE__*/_react.default.createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: _dompurify.default.sanitize(errorMessage)\n }\n }) : \"\".concat(title, \" is required\"), appendRegisterWithoutPINToError && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, dictionary[\"Registration.PinLookup.Message.OrYouCan\"], \" \", /*#__PURE__*/_react.default.createElement(\"a\", {\n href: \"#rfw\",\n onClick: function onClick() {\n return setActivePage(\"PERSONALINFO\");\n }\n }, dictionary[\"Registration.PinLookup.Message.RegisterWithoutAPIN\"]), \".\")));\n};\nvar _default = exports.default = ARFormField;\n\n},{\"core-js/modules/es.array.map\":126,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.replace\":144,\"dompurify\":\"dompurify\",\"react\":\"react\"}],180:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.for-each\");\nrequire(\"core-js/modules/es.array.iterator\");\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.object.from-entries\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.promise\");\nrequire(\"core-js/modules/es.string.iterator\");\nrequire(\"core-js/modules/web.dom-collections.for-each\");\nrequire(\"core-js/modules/web.dom-collections.iterator\");\nrequire(\"core-js/modules/web.url\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"regenerator-runtime/runtime\");\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _LoadingSpinner = _interopRequireDefault(require(\"./LoadingSpinner.jsx\"));\nvar _ARFormField = _interopRequireDefault(require(\"./ARFormField.jsx\"));\nvar _dompurify = _interopRequireDefault(require(\"dompurify\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nfunction asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\nfunction _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nvar CreatePassword = function CreatePassword(props) {\n var dictionary = props.dictionary,\n setActivePage = props.setActivePage,\n userData = props.userData,\n setUserData = props.setUserData,\n landingPage = props.landingPage,\n token = props.token;\n var _useState = (0, _react.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n isLoading = _useState2[0],\n setIsLoading = _useState2[1];\n var _useState3 = (0, _react.useState)(\"\"),\n _useState4 = _slicedToArray(_useState3, 2),\n formError = _useState4[0],\n setFormError = _useState4[1];\n var passRef = (0, _react.useRef)(null);\n var confirmPassRef = (0, _react.useRef)(null);\n var question_options = RegisterMultistepData.Questions.map(function (question) {\n return {\n text: question.Text,\n value: question.Value\n };\n });\n var validateForm = function validateForm(e) {\n e.preventDefault();\n var form = new FormData(e.target);\n var values = Object.fromEntries(form.entries());\n document.querySelectorAll(\".labelled-field\").forEach(function (elm) {\n return elm.classList.remove(\"invalid-field\");\n });\n var pass_validation = /[A-Z]/.test(passRef.current.value) &&\n // >1 uppercase letter\n /[0-9]/.test(passRef.current.value) &&\n // >1 number\n passRef.current.value.length > 7; // >8 characters\n if (!pass_validation) {\n var parent = passRef.current.closest(\".labelled-field\");\n parent.querySelector(\".invalid-field-msg\").innerText = dictionary[\"Registration.Form.CreatePassword.Note\"];\n parent.classList.add(\"invalid-field\");\n } else {\n if (passRef.current.value !== confirmPassRef.current.value) {\n var _parent = confirmPassRef.current.closest(\".labelled-field\");\n _parent.querySelector(\".invalid-field-msg\").innerText = \"Passwords do not match\";\n _parent.classList.add(\"invalid-field\");\n } else {\n setUserData(function (userData) {\n return _objectSpread(_objectSpread({}, userData), {}, {\n password: passRef.current.value,\n securityquestion: values[\"Security Question\"],\n securityanswer: values[\"Answer\"]\n });\n });\n fetchData(e, values);\n }\n }\n };\n var fetchData = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(e, values) {\n var _URLSearchParams, response, jsonData;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n setIsLoading(true);\n _context.prev = 1;\n _context.next = 4;\n return fetch('/api/Auth/RegistrationMultistep/RegisterAccount', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams((_URLSearchParams = {\n \"__RequestVerificationToken\": token,\n \"Email\": userData.email,\n \"Pin\": userData.pin,\n \"NoPIN\": userData.pin === \"\" ? true : false,\n \"LastName\": userData.lastname,\n \"Password\": passRef.current.value,\n \"Question\": values[\"Security Question\"],\n \"Answer\": values[\"Answer\"],\n \"Country\": userData.country,\n \"Zip\": userData.zip,\n \"FirstName\": userData.firstname,\n \"MiddleName\": userData.middlename\n }, _defineProperty(_URLSearchParams, \"LastName\", userData.lastname), _defineProperty(_URLSearchParams, \"Pronouns\", userData.pronouns), _defineProperty(_URLSearchParams, \"AddressType\", userData.addresstype), _defineProperty(_URLSearchParams, \"Address1\", userData.address1), _defineProperty(_URLSearchParams, \"Address2\", userData.address2), _defineProperty(_URLSearchParams, \"City\", userData.city), _defineProperty(_URLSearchParams, \"State\", userData.state), _URLSearchParams))\n });\n case 4:\n response = _context.sent;\n if (response.ok) {\n _context.next = 7;\n break;\n }\n throw new Error('Network response was not ok');\n case 7:\n _context.next = 9;\n return response.json();\n case 9:\n jsonData = _context.sent;\n console.log(jsonData);\n if (jsonData.isValid === true) {\n setUserData(function (userData) {\n return _objectSpread(_objectSpread({}, userData), {}, {\n emailIsVerified: jsonData.response === \"Email Verified\"\n });\n });\n setActivePage(\"REGISTRATIONCONFIRMATION\");\n setIsLoading(false);\n } else {\n setFormError(jsonData.errors[0]);\n setIsLoading(false);\n }\n console.log(jsonData);\n _context.next = 19;\n break;\n case 15:\n _context.prev = 15;\n _context.t0 = _context[\"catch\"](1);\n console.log(_context.t0);\n setIsLoading(false);\n case 19:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 15]]);\n }));\n return function fetchData(_x, _x2) {\n return _ref.apply(this, arguments);\n };\n }();\n if (isLoading) {\n return /*#__PURE__*/_react.default.createElement(_LoadingSpinner.default, null);\n } else {\n return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, landingPage === \"\" && /*#__PURE__*/_react.default.createElement(\"p\", null, /*#__PURE__*/_react.default.createElement(\"a\", {\n href: \"#rfw\",\n onClick: function onClick() {\n return setActivePage(\"PERSONALINFO\");\n }\n }, /*#__PURE__*/_react.default.createElement(\"svg\", {\n className: \"icon\"\n }, /*#__PURE__*/_react.default.createElement(\"use\", {\n xlinkHref: \"/assets/NAHB-build/img/svg-sprite.svg#chevron-left\"\n })), dictionary[\"Registration.Form.Button.Previous\"])), /*#__PURE__*/_react.default.createElement(\"p\", null, dictionary[\"Registration.CreateAccount.SecurityDescription\"]), /*#__PURE__*/_react.default.createElement(\"p\", {\n className: \"required-field\"\n }, /*#__PURE__*/_react.default.createElement(\"i\", null, dictionary[\"Registration.Form.RequiredMessage\"])), userData.email !== \"\" && /*#__PURE__*/_react.default.createElement(\"fieldset\", {\n className: \"labelled-field\"\n }, /*#__PURE__*/_react.default.createElement(\"label\", {\n htmlFor: \"account-registration-field__email\"\n }, dictionary[\"Registration.Form.Email\"]), userData.email), userData.pin !== \"\" && /*#__PURE__*/_react.default.createElement(\"fieldset\", {\n className: \"labelled-field\"\n }, /*#__PURE__*/_react.default.createElement(\"label\", {\n htmlFor: \"account-registration-field__email\"\n }, dictionary[\"Registration.Form.PIN\"]), userData.pin), /*#__PURE__*/_react.default.createElement(\"form\", {\n \"data-nahb-validate-form\": true,\n onSubmit: function onSubmit(e) {\n return validateForm(e);\n }\n }, /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n has_ref: passRef,\n title: dictionary[\"Registration.Form.CreatePassword\"],\n inputType: \"password\",\n helpText: dictionary[\"Registration.Form.CreatePassword.Note\"],\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n has_ref: confirmPassRef,\n title: dictionary[\"Registration.Form.ConfirmPassword\"],\n inputType: \"password\",\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.SecurityQuestion\"],\n options: question_options,\n defaultValue: userData.securityquestion,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.Answer\"],\n defaultValue: userData.securityanswer,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(\"fieldset\", {\n className: \"labelled-field\"\n }, /*#__PURE__*/_react.default.createElement(\"input\", {\n type: \"checkbox\",\n id: \"PrivacyAgreement\",\n name: \"PrivacyAgreement\",\n className: \"nahb-checkbox\",\n value: \"true\",\n required: true\n }), /*#__PURE__*/_react.default.createElement(\"label\", {\n htmlFor: \"PrivacyAgreement\"\n }, /*#__PURE__*/_react.default.createElement(\"img\", {\n src: \"/assets/NAHB-build/img/icons/nahb-star.svg\",\n style: {\n \"width\": \"12px\"\n }\n }), /*#__PURE__*/_react.default.createElement(\"span\", {\n dangerouslySetInnerHTML: {\n __html: _dompurify.default.sanitize(dictionary[\"Registration.Form.Policy\"], {\n ADD_ATTR: ['target']\n })\n }\n }))), formError != \"\" && /*#__PURE__*/_react.default.createElement(\"p\", {\n className: \"invalid-field-msg\",\n style: {\n display: \"block\",\n marginBottom: \"20px\"\n }\n }, dictionary[formError]), /*#__PURE__*/_react.default.createElement(\"button\", {\n className: \"btn btn--solid login-submit-button\",\n type: \"submit\",\n name: \"Next\",\n value: \"submit\"\n }, \"Next\")));\n }\n};\nvar _default = exports.default = CreatePassword;\n\n},{\"./ARFormField.jsx\":179,\"./LoadingSpinner.jsx\":181,\"core-js/modules/es.array.for-each\":121,\"core-js/modules/es.array.iterator\":124,\"core-js/modules/es.array.map\":126,\"core-js/modules/es.object.from-entries\":134,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.promise\":139,\"core-js/modules/es.string.iterator\":142,\"core-js/modules/web.dom-collections.for-each\":152,\"core-js/modules/web.dom-collections.iterator\":153,\"core-js/modules/web.url\":155,\"dompurify\":\"dompurify\",\"react\":\"react\",\"regenerator-runtime/runtime\":156}],181:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar _default = exports.default = function _default() {\n return /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"search-results__spinner\"\n }, /*#__PURE__*/_react.default.createElement(\"img\", {\n src: \"/assets/img/svg-sprite/loading-squares.svg\"\n }));\n};\n\n},{\"react\":\"react\"}],182:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.iterator\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.promise\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.iterator\");\nrequire(\"core-js/modules/es.string.replace\");\nrequire(\"core-js/modules/web.dom-collections.iterator\");\nrequire(\"core-js/modules/web.url\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"regenerator-runtime/runtime\");\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _LoadingSpinner = _interopRequireDefault(require(\"./LoadingSpinner.jsx\"));\nvar _ARFormField = _interopRequireDefault(require(\"./ARFormField.jsx\"));\nvar _dompurify = _interopRequireDefault(require(\"dompurify\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nfunction asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\nfunction _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction PINLookup(props) {\n var dictionary = props.dictionary,\n setActivePage = props.setActivePage,\n token = props.token,\n userData = props.userData,\n setUserData = props.setUserData;\n var emailRef = (0, _react.useRef)(null);\n var lastNameRef = (0, _react.useRef)(null);\n var _useState = (0, _react.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n emailError = _useState2[0],\n setEmailError = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n invalidNameError = _useState4[0],\n setInvalidNameError = _useState4[1];\n var _useState5 = (0, _react.useState)(-1),\n _useState6 = _slicedToArray(_useState5, 2),\n pinCount = _useState6[0],\n setPinCount = _useState6[1];\n var _useState7 = (0, _react.useState)(false),\n _useState8 = _slicedToArray(_useState7, 2),\n isLoading = _useState8[0],\n setIsLoading = _useState8[1];\n var _useState9 = (0, _react.useState)(\"\"),\n _useState10 = _slicedToArray(_useState9, 2),\n multiPinsError = _useState10[0],\n setMultiPinsError = _useState10[1];\n var fetchPIN = function fetchPIN(e, useLastName) {\n e.preventDefault();\n setUserData(function (userData) {\n return _objectSpread(_objectSpread({}, userData), {}, {\n email: emailRef.current.value,\n lastname: useLastName ? lastNameRef.current.value : userData.lastname\n });\n });\n setIsLoading(true);\n var fetchData = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {\n var response, jsonData;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n setInvalidNameError(false);\n _context.prev = 1;\n _context.next = 4;\n return fetch('/api/Auth/RegistrationMultistep/UserLookup', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams({\n \"__RequestVerificationToken\": token,\n \"Email\": emailRef.current.value,\n \"LastName\": useLastName ? lastNameRef.current.value : \"\"\n })\n });\n case 4:\n response = _context.sent;\n if (response.ok) {\n _context.next = 7;\n break;\n }\n throw new Error('Network response was not ok');\n case 7:\n _context.next = 9;\n return response.json();\n case 9:\n jsonData = _context.sent;\n if (!(jsonData.isValid === true)) {\n _context.next = 15;\n break;\n }\n setPinCount(1);\n setIsLoading(false);\n _context.next = 37;\n break;\n case 15:\n _context.t0 = jsonData.errors[0];\n _context.next = _context.t0 === \"Multiple Accounts\" ? 18 : _context.t0 === \"Single Account\" ? 18 : _context.t0 === \"Registration.PinLookup.Message.AccountExists\" ? 18 : _context.t0 === \"Registration.PinLookup.Message.MultiplePins\" ? 21 : _context.t0 === \"Registration.PinLookup.Message.MultiplePins.LastNameFriendly\" ? 25 : _context.t0 === \"Registration.PinLookup.Message.MultiplePins.LastName\" ? 29 : _context.t0 === \"Registration.PinLookup.Message.NoUser\" ? 32 : 34;\n break;\n case 18:\n setEmailError(true);\n setIsLoading(false);\n return _context.abrupt(\"break\", 37);\n case 21:\n setMultiPinsError(jsonData.errors[0]);\n setPinCount(2);\n setIsLoading(false);\n return _context.abrupt(\"break\", 37);\n case 25:\n setInvalidNameError(true);\n setPinCount(2);\n setIsLoading(false);\n return _context.abrupt(\"break\", 37);\n case 29:\n setPinCount(3);\n setIsLoading(false);\n return _context.abrupt(\"break\", 37);\n case 32:\n setPinCount(0);\n setIsLoading(false);\n case 34:\n setPinCount(0);\n setIsLoading(false);\n return _context.abrupt(\"break\", 37);\n case 37:\n _context.next = 43;\n break;\n case 39:\n _context.prev = 39;\n _context.t1 = _context[\"catch\"](1);\n console.log(_context.t1);\n setIsLoading(false);\n case 43:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 39]]);\n }));\n return function fetchData(_x) {\n return _ref.apply(this, arguments);\n };\n }();\n fetchData();\n };\n var backToStart = function backToStart() {\n setIsLoading(true);\n setPinCount(-1);\n setIsLoading(false);\n };\n var emailLookup = function emailLookup(dictionary) {\n return /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"p\", null, dictionary[\"Registration.CreateAccount.Message.EmailLookup\"]), /*#__PURE__*/_react.default.createElement(\"p\", null, dictionary[\"Registration.CreateAccount.Message.EmailLookupPin\"], \" \", /*#__PURE__*/_react.default.createElement(\"a\", {\n href: \"#rfw\",\n onClick: function onClick() {\n return setActivePage(\"REGISTERWITHPIN\");\n }\n }, \"register here\"), \".\"), /*#__PURE__*/_react.default.createElement(\"p\", {\n className: \"required-field\"\n }, /*#__PURE__*/_react.default.createElement(\"i\", null, dictionary[\"Registration.Form.RequiredMessage\"])), /*#__PURE__*/_react.default.createElement(\"form\", {\n onSubmit: function onSubmit(e) {\n return fetchPIN(e, false);\n }\n }, /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n has_ref: emailRef,\n title: dictionary[\"Registration.Form.Email\"],\n value: userData.email,\n inputType: \"email\",\n errorMessage: dictionary[\"Registration.PinLookup.Message.AccountExists\"],\n hasError: emailError,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(\"button\", {\n className: \"btn btn--solid login-submit-button\",\n type: \"submit\",\n name: \"Submit\",\n value: \"submit\"\n }, \"Submit\")));\n };\n var noPINFound = function noPINFound(dictionary) {\n return /*#__PURE__*/_react.default.createElement(\"div\", null, previousStep(dictionary), /*#__PURE__*/_react.default.createElement(\"p\", null, /*#__PURE__*/_react.default.createElement(\"strong\", null, dictionary[\"Registration.Form.Email\"]), /*#__PURE__*/_react.default.createElement(\"br\", null), userData.email), /*#__PURE__*/_react.default.createElement(\"h3\", null, dictionary[\"Registration.PinLookup.Message.NoUser\"]), /*#__PURE__*/_react.default.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: _dompurify.default.sanitize(dictionary[\"Registration.PinLookup.Message.NoPin\"])\n }\n }), /*#__PURE__*/_react.default.createElement(\"p\", null, dictionary[\"Registration.PinLookup.Message.OrYouCan\"], \" \", /*#__PURE__*/_react.default.createElement(\"a\", {\n href: \"#rfw\",\n onClick: function onClick() {\n return setActivePage(\"PERSONALINFO\");\n }\n }, dictionary[\"Registration.PinLookup.Message.RegisterWithoutAPIN\"]), \".\"));\n };\n var onePINFound = function onePINFound(dictionary) {\n return /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"h3\", null, \"Your PIN Has Been Found\"), /*#__PURE__*/_react.default.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: _dompurify.default.sanitize(dictionary[\"Registration.PinLookup.Message.PinFound\"].replace(\"[email]\", userData.email))\n }\n }));\n };\n var manyPINFound = function manyPINFound(dictionary) {\n return /*#__PURE__*/_react.default.createElement(\"div\", null, previousStep(dictionary), /*#__PURE__*/_react.default.createElement(\"p\", {\n className: \"required-field\"\n }, /*#__PURE__*/_react.default.createElement(\"i\", null, dictionary[\"Registration.Form.RequiredMessage\"])), /*#__PURE__*/_react.default.createElement(\"form\", {\n onSubmit: function onSubmit(e) {\n return fetchPIN(e, true);\n }\n }, /*#__PURE__*/_react.default.createElement(\"input\", {\n type: \"hidden\",\n ref: emailRef,\n value: userData.email\n }), /*#__PURE__*/_react.default.createElement(\"p\", null, /*#__PURE__*/_react.default.createElement(\"strong\", null, dictionary[\"Registration.Form.Email\"]), /*#__PURE__*/_react.default.createElement(\"br\", null), userData.email), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"callout\",\n dangerouslySetInnerHTML: {\n __html: _dompurify.default.sanitize(dictionary[multiPinsError].replace(\"[email]\", userData.email))\n }\n }), /*#__PURE__*/_react.default.createElement(\"br\", null), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n has_ref: lastNameRef,\n title: dictionary[\"Registration.Form.LastName\"],\n hasError: invalidNameError,\n errorMessage: dictionary[\"Registration.PinLookup.Message.MultiplePins.LastNameFriendly\"],\n appendRegisterWithoutPINToError: true,\n dictionary: dictionary,\n setActivePage: setActivePage,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(\"button\", {\n className: \"btn btn--solid login-submit-button\",\n type: \"submit\",\n name: \"Lookup PIN\",\n value: \"submit\"\n }, dictionary[\"Registration.Form.Button.LookupPIN\"])));\n };\n var manyProspectsFound = function manyProspectsFound(dictionary) {\n return /*#__PURE__*/_react.default.createElement(\"div\", null, /*#__PURE__*/_react.default.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: _dompurify.default.sanitize(dictionary[\"Registration.PinLookup.Message.MultiplePins.LastName\"].replace(\"[email]\", userData.email).replace(\"[lastname]\", userData.lastname))\n }\n }), /*#__PURE__*/_react.default.createElement(\"p\", null, dictionary[\"Registration.PinLookup.Message.OrYouCan\"], \" \", /*#__PURE__*/_react.default.createElement(\"a\", {\n href: \"#rfw\",\n onClick: function onClick() {\n return setActivePage(\"PERSONALINFO\");\n }\n }, dictionary[\"Registration.PinLookup.Message.RegisterWithoutAPIN\"]), \".\"));\n };\n var previousStep = function previousStep(dictionary) {\n return /*#__PURE__*/_react.default.createElement(\"p\", null, /*#__PURE__*/_react.default.createElement(\"a\", {\n href: \"#rfw\",\n onClick: function onClick() {\n return backToStart();\n }\n }, /*#__PURE__*/_react.default.createElement(\"svg\", {\n className: \"icon\"\n }, /*#__PURE__*/_react.default.createElement(\"use\", {\n xlinkHref: \"/assets/NAHB-build/img/svg-sprite.svg#chevron-left\"\n })), dictionary[\"Registration.Form.Button.Previous\"]));\n };\n if (isLoading) {\n return /*#__PURE__*/_react.default.createElement(_LoadingSpinner.default, null);\n } else {\n if (pinCount >= 0) {\n if (pinCount === 0) {\n return noPINFound(dictionary);\n } else if (pinCount === 1) {\n return onePINFound(dictionary);\n } else if (pinCount === 2) {\n return manyPINFound(dictionary);\n } else if (pinCount > 2) {\n return manyProspectsFound(dictionary);\n }\n } else {\n return emailLookup(dictionary);\n }\n }\n}\nvar _default = exports.default = PINLookup;\n\n},{\"./ARFormField.jsx\":179,\"./LoadingSpinner.jsx\":181,\"core-js/modules/es.array.iterator\":124,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.promise\":139,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.iterator\":142,\"core-js/modules/es.string.replace\":144,\"core-js/modules/web.dom-collections.iterator\":153,\"core-js/modules/web.url\":155,\"dompurify\":\"dompurify\",\"react\":\"react\",\"regenerator-runtime/runtime\":156}],183:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.iterator\");\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.object.from-entries\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/web.dom-collections.iterator\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _ARFormField = _interopRequireDefault(require(\"./ARFormField.jsx\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nvar PersonalInfo = function PersonalInfo(props) {\n var dictionary = props.dictionary,\n setActivePage = props.setActivePage,\n userData = props.userData,\n setUserData = props.setUserData;\n var _useState = (0, _react.useState)(\"US\"),\n _useState2 = _slicedToArray(_useState, 2),\n selectedCountry = _useState2[0],\n setSelectedCountry = _useState2[1]; // ID\n var _useState3 = (0, _react.useState)([]),\n _useState4 = _slicedToArray(_useState3, 2),\n statesForCountry = _useState4[0],\n setStatesForCountry = _useState4[1];\n var options_pronouns = RegisterMultistepData.Pronouns.map(function (option) {\n return {\n \"text\": option.Text,\n \"value\": option.Value\n };\n });\n var options_address_type = RegisterMultistepData.AddressesTypes.map(function (option) {\n return {\n \"text\": option.Text,\n \"value\": option.Value\n };\n });\n var options_countries = RegisterMultistepData.Countries.map(function (country) {\n return {\n \"text\": country.Name,\n \"value\": country.Id\n };\n });\n (0, _react.useEffect)(function () {\n RegisterMultistepData.Countries.map(function (country) {\n if (country.Id === selectedCountry) {\n var options = country.States.map(function (state) {\n return {\n \"text\": state.Name,\n \"value\": state.Id\n };\n });\n setStatesForCountry(options);\n }\n });\n }, [selectedCountry]);\n var onCountryUpdate = function onCountryUpdate(e) {\n setSelectedCountry(e.target.value);\n };\n var validateForm = function validateForm(e) {\n e.preventDefault();\n var form = new FormData(e.target);\n var values = Object.fromEntries(form.entries());\n setUserData(function (userData) {\n return _objectSpread(_objectSpread({}, userData), {}, {\n firstname: values[\"First Name\"],\n middlename: values[\"Middle Name\"],\n lastname: values[\"Last Name\"],\n pronouns: values[\"Pronouns\"],\n address1: values[\"Address 1\"],\n address2: values[\"Address 2\"],\n city: values[\"City\"],\n state: values[\"State/Province\"],\n country: values[\"Country\"],\n zip: values[\"Zip Code\"],\n addresstype: values[\"Address Type\"]\n });\n });\n setActivePage(\"CREATEPASSWORD\");\n };\n return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"p\", null, /*#__PURE__*/_react.default.createElement(\"a\", {\n href: \"#rfw\",\n onClick: function onClick() {\n return setActivePage(\"PINLOOKUP\");\n }\n }, /*#__PURE__*/_react.default.createElement(\"svg\", {\n className: \"icon\"\n }, /*#__PURE__*/_react.default.createElement(\"use\", {\n xlinkHref: \"/assets/NAHB-build/img/svg-sprite.svg#chevron-left\"\n })), dictionary[\"Registration.Form.Button.Previous\"])), /*#__PURE__*/_react.default.createElement(\"p\", null, dictionary[\"Registration.CreateAccount.Message.Register\"]), /*#__PURE__*/_react.default.createElement(\"p\", {\n className: \"required-field\"\n }, /*#__PURE__*/_react.default.createElement(\"i\", null, dictionary[\"Registration.Form.RequiredMessage\"])), /*#__PURE__*/_react.default.createElement(\"form\", {\n onSubmit: function onSubmit(e) {\n return validateForm(e);\n }\n }, /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.FirstName\"],\n defaultValue: userData.firstname,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.MiddleName\"],\n defaultValue: userData.middlename\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.LastName\"],\n defaultValue: userData.lastname,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.Pronouns\"],\n defaultValue: userData.pronouns,\n options: options_pronouns,\n hasBlankDefault: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.Country\"],\n options: options_countries,\n onUpdate: onCountryUpdate,\n defaultValue: userData.country !== \"\" ? userData.country : \"US\",\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.Address1\"],\n defaultValue: userData.address1,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.Address2\"],\n defaultValue: userData.address2\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.City\"],\n defaultValue: userData.city,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.State\"],\n defaultValue: userData.state,\n options: statesForCountry,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.Zipcode\"],\n defaultValue: userData.zip,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.AddressType\"],\n defaultValue: userData.addresstype,\n options: options_address_type,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(\"button\", {\n className: \"btn btn--solid login-submit-button\",\n type: \"submit\",\n name: \"Next\",\n value: \"submit\"\n }, dictionary[\"Registration.Form.Button.Next\"])));\n};\nvar _default = exports.default = PersonalInfo;\n\n},{\"./ARFormField.jsx\":179,\"core-js/modules/es.array.iterator\":124,\"core-js/modules/es.array.map\":126,\"core-js/modules/es.object.from-entries\":134,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/web.dom-collections.iterator\":153,\"react\":\"react\"}],184:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.iterator\");\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.object.from-entries\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.promise\");\nrequire(\"core-js/modules/es.string.iterator\");\nrequire(\"core-js/modules/web.dom-collections.iterator\");\nrequire(\"core-js/modules/web.url\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"regenerator-runtime/runtime\");\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _LoadingSpinner = _interopRequireDefault(require(\"./LoadingSpinner.jsx\"));\nvar _ARFormField = _interopRequireDefault(require(\"./ARFormField.jsx\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nfunction asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\nfunction _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction RegisterWithPIN(props) {\n var dictionary = props.dictionary,\n setActivePage = props.setActivePage,\n userData = props.userData,\n setUserData = props.setUserData,\n token = props.token;\n var _useState = (0, _react.useState)(\"\"),\n _useState2 = _slicedToArray(_useState, 2),\n errorMessage = _useState2[0],\n setErrorMessage = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n emailHasError = _useState4[0],\n setEmailHasError = _useState4[1];\n var _useState5 = (0, _react.useState)(false),\n _useState6 = _slicedToArray(_useState5, 2),\n pinHasError = _useState6[0],\n setPinHasError = _useState6[1];\n var _useState7 = (0, _react.useState)(false),\n _useState8 = _slicedToArray(_useState7, 2),\n zipHasError = _useState8[0],\n setZipHasError = _useState8[1];\n var _useState9 = (0, _react.useState)(false),\n _useState10 = _slicedToArray(_useState9, 2),\n genericError = _useState10[0],\n setGenericError = _useState10[1];\n var _useState11 = (0, _react.useState)(null),\n _useState12 = _slicedToArray(_useState11, 2),\n pinCount = _useState12[0],\n setPinCount = _useState12[1];\n var _useState13 = (0, _react.useState)(\"US\"),\n _useState14 = _slicedToArray(_useState13, 2),\n selectedCountry = _useState14[0],\n setSelectedCountry = _useState14[1]; // ID\n var _useState15 = (0, _react.useState)([]),\n _useState16 = _slicedToArray(_useState15, 2),\n statesForCountry = _useState16[0],\n setStatesForCountry = _useState16[1];\n var _useState17 = (0, _react.useState)(false),\n _useState18 = _slicedToArray(_useState17, 2),\n isLoading = _useState18[0],\n setIsLoading = _useState18[1];\n var options_countries = RegisterMultistepData.Countries.map(function (country) {\n return {\n \"text\": country.Name,\n \"value\": country.Id\n };\n });\n var onCountryUpdate = function onCountryUpdate(e) {\n setSelectedCountry(e.target.value);\n };\n var validateForm = function validateForm(e) {\n e.preventDefault();\n // reset error states\n setErrorMessage(\"\");\n setEmailHasError(false);\n setPinHasError(false);\n setZipHasError(false);\n setGenericError(false);\n var form = new FormData(e.target);\n var values = Object.fromEntries(form.entries());\n setUserData(function (userData) {\n return _objectSpread(_objectSpread({}, userData), {}, {\n email: values[\"Email\"],\n pin: values[\"PIN\"],\n country: values[\"Country\"],\n zip: values[\"Zip Code\"]\n });\n });\n var fetchData = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {\n var response, jsonData;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n setIsLoading(true);\n _context.prev = 1;\n _context.next = 4;\n return fetch('/api/Auth/RegistrationMultistep/PinLookup', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams({\n \"__RequestVerificationToken\": token,\n \"Email\": values[\"Email\"],\n \"Pin\": values[\"PIN\"],\n \"Country\": values[\"Country\"],\n \"Zip\": values[\"Zip Code\"]\n })\n });\n case 4:\n response = _context.sent;\n if (response.ok) {\n _context.next = 7;\n break;\n }\n throw new Error('Network response was not ok');\n case 7:\n _context.next = 9;\n return response.json();\n case 9:\n jsonData = _context.sent;\n if (jsonData.isValid) {\n _context.next = 28;\n break;\n }\n _context.t0 = jsonData.errors[0];\n _context.next = _context.t0 === \"Form.Validation.EmailInvalidFormat\" ? 14 : _context.t0 === \"Registration.RegisterConfirm.Message.AccountExists\" ? 14 : _context.t0 === \"Registration.RegisterConfirm.Message.NoUser\" ? 14 : _context.t0 === \"Registration.RegisterConfirm.Message.InvalidPin\" ? 17 : _context.t0 === \"Registration.RegisterConfirm.Message.ZipcodeEmpty\" ? 19 : 22;\n break;\n case 14:\n setEmailHasError(true);\n setErrorMessage(dictionary[jsonData.errors[0]]);\n return _context.abrupt(\"break\", 25);\n case 17:\n setPinHasError(true);\n return _context.abrupt(\"break\", 25);\n case 19:\n setZipHasError(true);\n setErrorMessage(dictionary[jsonData.errors[0]]);\n return _context.abrupt(\"break\", 25);\n case 22:\n setGenericError(true);\n setErrorMessage(dictionary[jsonData.errors[0]]);\n return _context.abrupt(\"break\", 25);\n case 25:\n setIsLoading(false);\n _context.next = 30;\n break;\n case 28:\n setActivePage(\"CREATEPASSWORD\");\n setIsLoading(false);\n case 30:\n _context.next = 36;\n break;\n case 32:\n _context.prev = 32;\n _context.t1 = _context[\"catch\"](1);\n console.log(_context.t1);\n setIsLoading(false);\n case 36:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 32]]);\n }));\n return function fetchData(_x) {\n return _ref.apply(this, arguments);\n };\n }();\n fetchData();\n };\n if (isLoading) {\n return /*#__PURE__*/_react.default.createElement(_LoadingSpinner.default, null);\n } else {\n return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"p\", null, /*#__PURE__*/_react.default.createElement(\"a\", {\n href: \"#rfw\",\n onClick: function onClick() {\n return setActivePage(\"PINLOOKUP\");\n }\n }, /*#__PURE__*/_react.default.createElement(\"svg\", {\n className: \"icon\"\n }, /*#__PURE__*/_react.default.createElement(\"use\", {\n xlinkHref: \"/assets/NAHB-build/img/svg-sprite.svg#chevron-left\"\n })), dictionary[\"Registration.Form.Button.Previous\"])), /*#__PURE__*/_react.default.createElement(\"p\", null, dictionary[\"Registration.CreateAccount.Message.EnterPin\"]), /*#__PURE__*/_react.default.createElement(\"p\", {\n className: \"required-field\"\n }, /*#__PURE__*/_react.default.createElement(\"i\", null, dictionary[\"Registration.Form.RequiredMessage\"])), /*#__PURE__*/_react.default.createElement(\"form\", {\n onSubmit: function onSubmit(e) {\n return validateForm(e);\n }\n }, /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.Email\"],\n value: userData.email,\n hasError: emailHasError,\n errorMessage: errorMessage,\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.PIN\"],\n value: userData.pin,\n hasError: pinHasError,\n errorMessage: dictionary[\"Registration.RegisterConfirm.Message.InvalidPin\"],\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.Country\"],\n options: options_countries,\n onUpdate: onCountryUpdate,\n defaultValue: userData.country !== \"\" ? userData.country : \"US\",\n isRequired: true\n }), /*#__PURE__*/_react.default.createElement(_ARFormField.default, {\n title: dictionary[\"Registration.Form.Zipcode\"],\n value: userData.zip,\n hasError: zipHasError,\n errorMessage: dictionary[\"Registration.RegisterConfirm.Message.InvalidPin\"],\n isRequired: true\n }), genericError === true && /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"invalid-field-msg\",\n style: {\n display: \"block\"\n }\n }, errorMessage), /*#__PURE__*/_react.default.createElement(\"button\", {\n className: \"btn btn--solid login-submit-button\",\n type: \"submit\",\n name: \"Submit\",\n value: \"submit\"\n }, dictionary[\"Registration.Form.Button.Next\"])));\n }\n}\nvar _default = exports.default = RegisterWithPIN;\n\n},{\"./ARFormField.jsx\":179,\"./LoadingSpinner.jsx\":181,\"core-js/modules/es.array.iterator\":124,\"core-js/modules/es.array.map\":126,\"core-js/modules/es.object.from-entries\":134,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.promise\":139,\"core-js/modules/es.string.iterator\":142,\"core-js/modules/web.dom-collections.iterator\":153,\"core-js/modules/web.url\":155,\"react\":\"react\",\"regenerator-runtime/runtime\":156}],185:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.iterator\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.promise\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.iterator\");\nrequire(\"core-js/modules/es.string.replace\");\nrequire(\"core-js/modules/web.dom-collections.iterator\");\nrequire(\"core-js/modules/web.url\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"regenerator-runtime/runtime\");\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _LoadingSpinner = _interopRequireDefault(require(\"./LoadingSpinner.jsx\"));\nvar _dompurify = _interopRequireDefault(require(\"dompurify\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nfunction asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }\nfunction _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n); } _next(void 0); }); }; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nfunction RegistrationConfirmation(props) {\n var dictionary = props.dictionary,\n userData = props.userData,\n token = props.token,\n landingPage = props.landingPage;\n var _useState = (0, _react.useState)(false),\n _useState2 = _slicedToArray(_useState, 2),\n isLoading = _useState2[0],\n setIsLoading = _useState2[1];\n var _useState3 = (0, _react.useState)(false),\n _useState4 = _slicedToArray(_useState3, 2),\n resentSuccessfully = _useState4[0],\n setResentSuccessfully = _useState4[1];\n var fetchData = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {\n var response, jsonData;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n setIsLoading(true);\n _context.prev = 1;\n _context.next = 4;\n return fetch('/api/Auth/RegistrationMultistep/ResendEmail', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded'\n },\n body: new URLSearchParams({\n \"__RequestVerificationToken\": token,\n \"Email\": userData.email\n })\n });\n case 4:\n response = _context.sent;\n if (response.ok) {\n _context.next = 7;\n break;\n }\n throw new Error('Network response was not ok');\n case 7:\n _context.next = 9;\n return response.json();\n case 9:\n jsonData = _context.sent;\n if (!jsonData.isValid) {\n setIsLoading(false);\n } else {\n setResentSuccessfully(true);\n setIsLoading(false);\n }\n _context.next = 17;\n break;\n case 13:\n _context.prev = 13;\n _context.t0 = _context[\"catch\"](1);\n console.log(_context.t0);\n setIsLoading(false);\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 13]]);\n }));\n return function fetchData(_x) {\n return _ref.apply(this, arguments);\n };\n }();\n var resendEmail = function resendEmail(e) {\n if (!resentSuccessfully) fetchData(e);\n };\n if (isLoading) {\n return /*#__PURE__*/_react.default.createElement(_LoadingSpinner.default, null);\n } else {\n return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, landingPage != \"\" || userData.emailIsVerified ? /*#__PURE__*/_react.default.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: _dompurify.default.sanitize(dictionary[\"Registration.RegisterConfirm.Message.AfterRegistrationLogin\"])\n }\n }) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"p\", null, dictionary[\"Registration.RegisterConfirm.Message.ConfirmSent\"].replace(\"[email]\", userData.email)), !resentSuccessfully && /*#__PURE__*/_react.default.createElement(\"p\", null, /*#__PURE__*/_react.default.createElement(\"button\", {\n className: \"btn btn--solid login-submit-button\",\n type: \"submit\",\n name: \"Submit\",\n value: \"submit\",\n onClick: function onClick(e) {\n return resendEmail(e);\n }\n }, dictionary[\"Registration.Form.Button.ResendVerification\"])), /*#__PURE__*/_react.default.createElement(\"p\", {\n dangerouslySetInnerHTML: {\n __html: _dompurify.default.sanitize(dictionary[\"Registration.RegisterConfirm.Message.ContactSupport\"].replace(\"[email]\", userData.email))\n }\n })));\n }\n}\nvar _default = exports.default = RegistrationConfirmation;\n\n},{\"./LoadingSpinner.jsx\":181,\"core-js/modules/es.array.iterator\":124,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.promise\":139,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.iterator\":142,\"core-js/modules/es.string.replace\":144,\"core-js/modules/web.dom-collections.iterator\":153,\"core-js/modules/web.url\":155,\"dompurify\":\"dompurify\",\"react\":\"react\",\"regenerator-runtime/runtime\":156}],186:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.replace\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.breakpoint = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n// Extract current breakpoint name as string from DOM\n// More details: https://www.lullabot.com/articles/importing-css-breakpoints-into-javascript\nvar breakpoint = exports.breakpoint = function breakpoint() {\n return window.getComputedStyle(document.querySelector(\"body\"), \"::before\").getPropertyValue(\"content\").replace(/\\\"/g, \"\");\n};\n\n},{\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.replace\":144,\"jquery\":\"jquery\"}],187:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.slice\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.customFormat = void 0;\nvar R = _interopRequireWildcard(require(\"ramda\"));\nvar _d3Format = require(\"d3-format\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nvar customFormat = exports.customFormat = function customFormat(_, specifier) {\n var val = _;\n var suffix = \"\";\n var type = R.last(specifier);\n var specCopy = specifier;\n if (type === 'm' || type === 'M') {\n specCopy = specCopy.slice(0, specCopy.length - 1) + 'f';\n if (Math.abs(val) >= 1e9) {\n val = val / 1e9;\n suffix = type === 'm' ? \"B\" : \" billion\";\n } else if (Math.abs(val) >= 1e6) {\n val = val / 1e6;\n suffix = type === 'm' ? \"M\" : \" million\";\n } else if (Math.abs(val) >= 1e3) {\n val = val / 1e3;\n suffix = type === 'm' ? \"k\" : \" thousand\";\n }\n }\n return (0, _d3Format.format)(specCopy)(val) + suffix;\n};\n\n},{\"core-js/modules/es.array.slice\":128,\"d3-format\":\"d3-format\",\"ramda\":\"ramda\"}],188:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.find\");\nrequire(\"core-js/modules/es.array.for-each\");\nrequire(\"core-js/modules/es.array.join\");\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.object.assign\");\nrequire(\"core-js/modules/web.dom-collections.for-each\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.preProcessResponsiveTable = preProcessResponsiveTable;\nexports.renderChart = renderChart;\nvar _vega = require(\"vega\");\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar R = _interopRequireWildcard(require(\"ramda\"));\nvar _buildBarSpec = _interopRequireDefault(require(\"./spec/buildBarSpec.js\"));\nvar _buildTrendSpec = _interopRequireDefault(require(\"./spec/buildTrendSpec.js\"));\nvar _popups = require(\"./popup/popups.js\");\nvar _vegaParser = require(\"vega-parser\");\nvar _format = require(\"./format/format.js\");\nvar _detectCsv = _interopRequireDefault(require(\"detect-csv\"));\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\n_vegaParser.functionContext.format = _format.customFormat;\nvar barParse = {\n \"Group\": \"string\",\n \"Subgroup\": \"string\",\n \"Value\": \"number\",\n \"Sublabel\": \"string\"\n};\nvar trendParse = {\n \"Timeframe\": \"string\",\n \"Series\": \"string\",\n \"Value\": \"number\",\n \"Label\": \"string\",\n \"Note\": \"string\"\n};\nvar buildDataSpec = R.curry(function (parse, rawData) {\n var fmt = (0, _detectCsv.default)(rawData);\n return {\n \"name\": \"table\",\n \"values\": rawData,\n \"format\": {\n \"type\": fmt && fmt.delimiter === '\\t' ? \"tsv\" : \"csv\",\n \"parse\": parse\n }\n };\n});\nvar buildBarDataSpec = buildDataSpec(barParse);\nvar buildTrendDataSpec = buildDataSpec(trendParse);\nvar resolveContainers = function resolveContainers(container) {\n var chartContainer = (0, _jquery.default)(\".chart\", container);\n var popupContainer = (0, _jquery.default)(\".popup\", container);\n if (chartContainer.length === 0) {\n chartContainer = container.append((0, _jquery.default)(\"
\").addClass(\"chart\"));\n }\n if (popupContainer.length === 0) {\n popupContainer = container.append((0, _jquery.default)(\"
\").addClass(\"popup\"));\n }\n return {\n chartContainer: chartContainer,\n popupContainer: popupContainer\n };\n};\nfunction renderBarSpec(container, options, data) {\n function render() {\n var _resolveContainers = resolveContainers(container),\n chartContainer = _resolveContainers.chartContainer,\n popupContainer = _resolveContainers.popupContainer;\n var padding = {\n \"top\": 20,\n \"left\": 20,\n \"right\": 20,\n \"bottom\": 30\n };\n var width = container.innerWidth();\n var height = width < 500 ? width * 0.8 : width * 0.66;\n var spec = (0, _buildBarSpec.default)(Object.assign({}, options, {\n width: width,\n height: height,\n padding: padding\n }), buildBarDataSpec(data));\n\n // Render the view\n var view = new _vega.View((0, _vega.parse)(spec), {\n functions: _vegaParser.functionContext\n }).renderer('svg').initialize(chartContainer[0]).hover();\n view.logLevel(_vega.None);\n view.run();\n (0, _popups.registerBarPopup)(spec, options, popupContainer, view);\n }\n (0, _jquery.default)(window).on('resize', render);\n render();\n}\nfunction renderTrendSpec(container, options, data) {\n function render() {\n var _resolveContainers2 = resolveContainers(container),\n chartContainer = _resolveContainers2.chartContainer,\n popupContainer = _resolveContainers2.popupContainer;\n var padding = {\n \"top\": 20,\n \"left\": 20,\n \"right\": 20,\n \"bottom\": 20\n };\n var width = container.innerWidth();\n var height = width < 500 ? width * 0.8 : width * 0.66;\n var spec = (0, _buildTrendSpec.default)(Object.assign({}, options, {\n width: width,\n height: height,\n padding: padding\n }), buildTrendDataSpec(data));\n\n // Render the view\n var view = new _vega.View((0, _vega.parse)(spec), {\n functions: _vegaParser.functionContext\n }).renderer('svg').initialize(chartContainer[0]).hover();\n view.logLevel(_vega.None);\n view.run();\n (0, _popups.registerTrendPopup)(spec, options, popupContainer, view);\n }\n (0, _jquery.default)(window).on('resize', render);\n render();\n}\nfunction renderChart(container) {\n var chartType = container.attr(\"data-type\");\n var options = JSON.parse((0, _jquery.default)(\".chart-options\", container).val());\n var data = (0, _jquery.default)(\".chart-data\", container).val();\n if (chartType === \"bar\") {\n renderBarSpec(container, options, data);\n } else if (chartType === \"trend\") {\n renderTrendSpec(container, options, data);\n } else {\n console.log(\"ERROR: Chart type not defined in data-type attribute\");\n }\n}\nfunction elColspan(el) {\n var colspanAttr = el.attr(\"colspan\");\n return colspanAttr ? +colspanAttr : 1;\n}\nfunction headerCellsText(table) {\n var headerCellText = [];\n table.find(\"thead tr\").each(function () {\n var thisRowText = [];\n var index = 0;\n (0, _jquery.default)(this).find(\"th\").each(function () {\n var colspan = elColspan((0, _jquery.default)(this));\n var $th = (0, _jquery.default)(this);\n R.range(index, index + colspan).forEach(function (i) {\n thisRowText.push($th.text());\n });\n index += colspan;\n });\n headerCellText.push(thisRowText);\n });\n return headerCellText;\n}\nfunction preProcessResponsiveTable(container) {\n var indexedHeaderCellsText = headerCellsText(container);\n if (indexedHeaderCellsText.length === 0) {\n return;\n }\n var lastHeaderRow = R.last(headerCellsText(container));\n container.find('table').addClass('has-header');\n container.find(\"tbody tr\").each(function () {\n var $tr = (0, _jquery.default)(this);\n var index = 0;\n $tr.find(\"td\").each(function () {\n var $td = (0, _jquery.default)(this);\n var colspan = elColspan($td);\n var headerText = R.range(index, index + colspan).map(function (i) {\n return lastHeaderRow[i];\n });\n $td.attr(\"data-label\", headerText.join(\", \"));\n index += colspan;\n });\n });\n}\n\n},{\"./format/format.js\":187,\"./popup/popups.js\":190,\"./spec/buildBarSpec.js\":192,\"./spec/buildTrendSpec.js\":193,\"core-js/modules/es.array.find\":120,\"core-js/modules/es.array.for-each\":121,\"core-js/modules/es.array.join\":125,\"core-js/modules/es.array.map\":126,\"core-js/modules/es.object.assign\":133,\"core-js/modules/web.dom-collections.for-each\":152,\"detect-csv\":\"detect-csv\",\"jquery\":\"jquery\",\"ramda\":\"ramda\",\"vega\":\"vega\",\"vega-parser\":\"vega-parser\"}],189:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.find\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.hidePopup = hidePopup;\nexports.showPopup = showPopup;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction calcOverflow(position) {\n return position > 0 ? 0 : Math.abs(position);\n}\nfunction showPopup(container, contents, x, y) {\n var offsets = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n if (container.find('.custom-hover').length === 0) {\n // One for actually showing\n container.append((0, _jquery.default)('
').addClass('custom-hover').addClass('toshow'));\n\n // One for calculating size\n container.append((0, _jquery.default)('
').addClass('custom-hover').addClass('tohide'));\n }\n var hoverEl = container.find('.custom-hover.toshow');\n var hoverElCalculate = container.find('.custom-hover.tohide');\n\n // Set the html, opacity 0 (to hide, but still render size), and move to top left\n hoverElCalculate.show().html(contents);\n\n // Calculate position\n var hoverRect = hoverElCalculate[0].getBoundingClientRect();\n var hoverHeight = Math.ceil(hoverRect.height);\n var hoverWidth = Math.ceil(hoverRect.width);\n var boundHoverHeight = hoverElCalculate.outerHeight();\n var boundHoverWidth = hoverElCalculate.outerWidth();\n var scrollTop = (0, _jquery.default)(document).scrollTop();\n var scrollLeft = (0, _jquery.default)(document).scrollLeft();\n var containerOffset = container.offset();\n var windowTopRelativeToContainer = -containerOffset.top + scrollTop;\n var windowBottomRelativeToContainer = -containerOffset.top + scrollTop + window.innerHeight;\n var windowLeftRelativeToContainer = -containerOffset.left + scrollLeft;\n var windowRightRelativeToContainer = -containerOffset.left + scrollLeft + window.innerWidth;\n var xPositions = {\n left: x - hoverWidth - offsets.left,\n right: x + offsets.right,\n middle: x - hoverWidth / 2\n };\n var yPositions = {\n top: y - hoverHeight - offsets.top,\n bottom: y + offsets.bottom,\n middle: y - hoverHeight / 2\n };\n var xOverflows = {\n left: calcOverflow(xPositions.left - windowLeftRelativeToContainer),\n right: calcOverflow(windowRightRelativeToContainer - (xPositions.right + hoverWidth)),\n middle: calcOverflow(xPositions.middle - windowLeftRelativeToContainer) + calcOverflow(windowRightRelativeToContainer - (xPositions.middle + hoverWidth))\n };\n var yOverflows = {\n top: calcOverflow(yPositions.top - windowTopRelativeToContainer),\n bottom: calcOverflow(windowBottomRelativeToContainer - (yPositions.bottom + hoverHeight)),\n middle: calcOverflow(yPositions.middle - windowTopRelativeToContainer) + calcOverflow(windowBottomRelativeToContainer - (yPositions.middle + hoverHeight))\n };\n var possiblePositions = [{\n key: 'top',\n overflow: xOverflows.middle + yOverflows.top,\n top: yPositions.top,\n left: xPositions.middle\n }, {\n key: 'bottom',\n overflow: xOverflows.middle + yOverflows.bottom,\n top: yPositions.bottom,\n left: xPositions.middle\n }, {\n key: 'right',\n overflow: xOverflows.right + yOverflows.middle,\n top: yPositions.middle,\n left: xPositions.right\n }, {\n key: 'left',\n overflow: xOverflows.left + yOverflows.middle,\n top: yPositions.middle,\n left: xPositions.left\n }, {\n key: 'bottom-right',\n overflow: xOverflows.right + yOverflows.bottom,\n top: yPositions.bottom,\n left: xPositions.right\n }, {\n key: 'bottom-left',\n overflow: xOverflows.left + yOverflows.bottom,\n top: yPositions.bottom,\n left: xPositions.left\n }, {\n key: 'top-right',\n overflow: xOverflows.right + yOverflows.top,\n top: yPositions.top,\n left: xPositions.right\n }, {\n key: 'top-left',\n overflow: xOverflows.left + yOverflows.top,\n top: yPositions.top,\n left: xPositions.left\n }].sort(function (a, b) {\n return b.overflow > a.overflow ? -1 : a.overflow > b.overflow ? 1 : 0;\n });\n\n // Pick the best position\n var position = possiblePositions[0];\n hoverEl.attr('class', 'custom-hover toshow ' + position.key).css('width', boundHoverWidth).css('height', boundHoverHeight).css('left', position.left + 'px').css('top', position.top + 'px').html(contents).addClass('show');\n}\nfunction hidePopup(container) {\n container.find('.custom-hover.toshow').removeClass('show');\n}\n\n},{\"core-js/modules/es.array.find\":120,\"jquery\":\"jquery\"}],190:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.concat\");\nrequire(\"core-js/modules/es.array.filter\");\nrequire(\"core-js/modules/es.array.join\");\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.split\");\nrequire(\"core-js/modules/es.string.trim\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.registerTrendPopup = exports.registerBarPopup = void 0;\nvar _jquery = _interopRequireDefault(require(\"jquery\"));\nvar R = _interopRequireWildcard(require(\"ramda\"));\nvar _popupBuilder = require(\"./popupBuilder.js\");\nvar _format = require(\"../format/format.js\");\nvar _d3Scale = require(\"d3-scale\");\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nvar groupedDataTemplate = function groupedDataTemplate(options, data) {\n return \"\\n \".concat(data.group, \"\\n \\n \").concat(!R.isNil(options.thresholdLineValue) ? \"\\n \\n \\n \\n \") : \"\", \"\\n \").concat(data.subGroups.map(function (d) {\n return \"\\n \\n \\n \\n \\n \");\n }).join(\"\"), \"\\n
\\n \\n \\n \\n \\n \".concat(options.thresholdLineLabel, \"\\n \\n \").concat((0, _format.customFormat)(options.thresholdLineValue, options.dataFormat), \"\\n
\\n \\n \".concat(options.type === \"trend\" ? \"\") : \"\"), \"\\n \\n \\n \").concat(d.subGroup, \"\\n \\n \").concat(d.formattedValue, \"\\n \").concat(d.subLabel ? \"\".concat(d.subLabel, \"\") : \"\", \"\\n
\\n \");\n};\nvar simpleDataTemplate = function simpleDataTemplate(config, data) {\n return \"\\n \".concat(data.group, \"\\n \").concat(data.formattedValue, \"\\n \").concat(data.subLabel ? \"\".concat(data.subLabel, \"\") : \"\", \"\\n \");\n};\nfunction point(node, event) {\n var svg = node.ownerSVGElement || node;\n if (svg.createSVGPoint) {\n var point = svg.createSVGPoint();\n point.x = event.clientX, point.y = event.clientY;\n point = point.matrixTransform(node.getScreenCTM().inverse());\n return [point.x, point.y];\n }\n var rect = node.getBoundingClientRect();\n return [event.clientX - rect.left - node.clientLeft, event.clientY - rect.top - node.clientTop];\n}\nfunction mousePositionRelativeToContainer(node, event) {\n if (event.changedTouches) event = event.changedTouches[0];\n return point(node, event);\n}\nvar registerPopup = function registerPopup(spec, container, view, generateContent) {\n var popupPosition;\n\n // Hack, because Firefox doesn't support the \"event\" signal being passed in\n view.addEventListener('mousemove', function (event, item) {\n popupPosition = mousePositionRelativeToContainer(container[0], event);\n });\n var touchTimer;\n view.addEventListener('touchstart', function (event, item) {\n popupPosition = mousePositionRelativeToContainer(container[0], event);\n if (touchTimer) {\n clearTimeout(touchTimer);\n }\n touchTimer = setTimeout(function () {\n (0, _popupBuilder.hidePopup)(container);\n }, 5000);\n });\n if (spec.signals && R.find(R.propEq('name', 'tooltip'), spec.signals)) {\n view.removeSignalListener('tooltip');\n view.addSignalListener('tooltip', function (name, value) {\n return setTimeout(function () {\n if (!value || !popupPosition) {\n (0, _popupBuilder.hidePopup)(container);\n return;\n }\n var _popupPosition = popupPosition,\n _popupPosition2 = _slicedToArray(_popupPosition, 2),\n x = _popupPosition2[0],\n y = _popupPosition2[1];\n var left = x;\n var top = y;\n var content = generateContent(value);\n (0, _popupBuilder.showPopup)(container, content, left, top, {\n top: 5,\n right: 5,\n bottom: 5,\n left: 5\n });\n });\n });\n }\n};\nvar registerBarPopup = exports.registerBarPopup = function registerBarPopup(spec, options, container, view) {\n registerPopup(spec, container, view, function (value) {\n var colors = (0, _d3Scale.scaleOrdinal)().domain(value.colors.domain).range(value.colors.range);\n var subGroupValues = value.data.filter(function (d) {\n return d.Group === value.group;\n });\n return subGroupValues.length > 1 ? groupedDataTemplate(options, {\n group: value.group,\n subGroups: subGroupValues.map(function (d) {\n return {\n color: colors(d.Subgroup),\n subGroup: d.Subgroup,\n subLabel: d.Sublabel,\n formattedValue: R.isNil(d.Value) ? 'N/A' : (0, _format.customFormat)(d.Value, options.dataFormat)\n };\n })\n }) : simpleDataTemplate(options, {\n group: value.group,\n subLabel: subGroupValues[0].Sublabel,\n formattedValue: R.isNil(subGroupValues[0].Value) ? 'N/A' : (0, _format.customFormat)(subGroupValues[0].Value, options.dataFormat)\n });\n });\n};\nvar registerTrendPopup = exports.registerTrendPopup = function registerTrendPopup(spec, options, container, view) {\n registerPopup(spec, container, view, function (value) {\n var colors = (0, _d3Scale.scaleOrdinal)().domain(value.colors.domain).range(value.colors.range);\n var subGroupValues = value.data.filter(function (d) {\n return d.Timeframe === value.group;\n });\n var emphasizedLines = (options.emphasizeLines || \"\").split(\",\").map(function (s) {\n return s.trim();\n });\n return subGroupValues.length > 1 ? groupedDataTemplate(options, {\n group: value.group,\n subGroups: subGroupValues.map(function (d) {\n return {\n color: colors(d.Series),\n subGroup: d.Series,\n isEmphasized: R.contains(d.Series, emphasizedLines),\n formattedValue: R.isNil(d.Value) ? 'N/A' : (0, _format.customFormat)(d.Value, options.dataFormat)\n };\n })\n }) : simpleDataTemplate(options, {\n group: value.group,\n formattedValue: R.isNil(subGroupValues[0].Value) ? 'N/A' : (0, _format.customFormat)(subGroupValues[0].Value, options.dataFormat)\n });\n });\n};\n\n},{\"../format/format.js\":187,\"./popupBuilder.js\":189,\"core-js/modules/es.array.concat\":118,\"core-js/modules/es.array.filter\":119,\"core-js/modules/es.array.join\":125,\"core-js/modules/es.array.map\":126,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.split\":146,\"core-js/modules/es.string.trim\":147,\"d3-scale\":\"d3-scale\",\"jquery\":\"jquery\",\"ramda\":\"ramda\"}],191:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.object.assign\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _default = exports.default = function _default(config) {\n var width = config.width,\n type = config.type,\n groupProp = config.groupProp,\n subGroupProp = config.subGroupProp,\n yAxisLabel = config.yAxisLabel,\n axisDataFormat = config.axisDataFormat,\n includeGridLines = config.includeGridLines;\n var axisLabelProps = {\n \"fill\": {\n \"value\": \"#6c6c69\"\n },\n \"fontSize\": width < 500 ? {\n \"value\": 11\n } : {\n \"value\": 13\n },\n \"font\": {\n \"value\": \"stevie-sans, sans-serif\"\n },\n \"fontWeight\": {\n \"value\": 500\n }\n };\n var axisTickProps = {\n \"stroke\": {\n \"value\": \"#d1d1d0\"\n },\n \"strokeWidth\": {\n \"value\": 1\n }\n };\n return {\n yAxis: Object.assign({}, {\n \"orient\": \"left\",\n \"scale\": \"yscale\",\n \"grid\": width > 500 && includeGridLines,\n \"domain\": !includeGridLines,\n \"ticks\": !includeGridLines,\n \"tickSize\": 8,\n \"labelOverlap\": true,\n \"tickCount\": 7,\n \"labelPadding\": 10,\n \"encode\": {\n \"labels\": {\n \"enter\": axisLabelProps,\n \"update\": {\n \"text\": {\n \"signal\": \"format(datum.value, '\".concat(axisDataFormat, \"')\")\n }\n }\n },\n \"title\": {\n \"enter\": axisLabelProps\n },\n \"grid\": {\n \"enter\": Object.assign({}, {\n \"strokeOpacity\": {\n \"value\": 0.6\n }\n }, axisTickProps)\n },\n \"ticks\": {\n \"enter\": axisTickProps\n },\n \"domain\": {\n \"enter\": axisTickProps\n }\n }\n }, yAxisLabel ? {\n title: yAxisLabel,\n titlePadding: 15\n } : {}),\n xAxis: {\n \"orient\": \"bottom\",\n \"scale\": \"xscale\",\n \"ticks\": type === \"trend\",\n \"tickSize\": 10,\n \"labelOverlap\": true,\n \"labelPadding\": width > 500 ? 15 : 10,\n \"encode\": {\n \"labels\": {\n \"enter\": axisLabelProps\n },\n \"domain\": {\n \"enter\": axisTickProps\n },\n \"ticks\": {\n \"enter\": axisTickProps\n }\n }\n },\n manualXAxis: {\n \"type\": \"group\",\n \"role\": \"axis\",\n \"marks\": [{\n \"type\": \"rule\",\n \"encode\": {\n \"enter\": Object.assign({}, {\n \"x\": {\n \"value\": 0\n },\n \"x2\": {\n \"signal\": \"width\"\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"value\": 0\n },\n \"y2\": {\n \"scale\": \"yscale\",\n \"value\": 0\n }\n }, axisTickProps)\n }\n }, {\n \"type\": \"text\",\n \"from\": {\n \"data\": \"table\"\n },\n \"encode\": {\n \"enter\": Object.assign({}, {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"dx\": {\n \"scale\": \"xscale\",\n \"band\": 0.5\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"value\": 0\n },\n \"dy\": [{\n \"test\": \"datum.Value < 0\",\n \"value\": width > 500 ? -15 : -10\n }, {\n \"value\": width > 500 ? 15 : 10\n }],\n \"baseline\": [{\n \"test\": \"datum.Value < 0\",\n \"value\": \"bottom\"\n }, {\n \"value\": \"top\"\n }],\n \"align\": {\n \"value\": \"center\"\n },\n \"text\": {\n \"field\": groupProp\n }\n }, axisLabelProps)\n }\n }]\n }\n };\n};\n\n},{\"core-js/modules/es.object.assign\":133}],192:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.concat\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _ramda = _interopRequireDefault(require(\"ramda\"));\nvar _scales2 = _interopRequireDefault(require(\"./scales.js\"));\nvar _signals2 = _interopRequireDefault(require(\"./signals.js\"));\nvar _axes2 = _interopRequireDefault(require(\"./axes.js\"));\nvar _marks2 = _interopRequireDefault(require(\"./marks.js\"));\nvar _legend2 = _interopRequireDefault(require(\"./legend.js\"));\nvar _data = require(\"./data.js\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nvar _default = exports.default = function _default(config, data) {\n var padding = config.padding,\n width = config.width,\n height = config.height,\n type = config.type,\n groupProp = config.groupProp,\n subGroupProp = config.subGroupProp,\n groupType = config.groupType,\n dataFormat = config.dataFormat,\n includeYAxis = config.includeYAxis,\n includeGridLines = config.includeGridLines,\n yAxisLabel = config.yAxisLabel,\n yAxisUpperBound = config.yAxisUpperBound,\n includeLegend = config.includeLegend,\n splitLegend = config.splitLegend,\n thresholdLineValue = config.thresholdLineValue,\n thresholdLineLabel = config.thresholdLineLabel,\n colorSchemeOverride = config.colorSchemeOverride;\n var _scales = (0, _scales2.default)(config),\n yScale = _scales.yScale,\n barXScale = _scales.barXScale,\n colorScale = _scales.colorScale,\n hoverXScale = _scales.hoverXScale;\n var _signals = (0, _signals2.default)(config),\n hoverSignal = _signals.hoverSignal,\n toolTipSignal = _signals.toolTipSignal;\n var _axes = (0, _axes2.default)(config),\n yAxis = _axes.yAxis,\n xAxis = _axes.xAxis,\n manualXAxis = _axes.manualXAxis;\n var _legend = (0, _legend2.default)(config),\n twoColumnLegend = _legend.twoColumnLegend,\n oneColumnLegend = _legend.oneColumnLegend;\n var _marks = (0, _marks2.default)(config),\n groupedBars = _marks.groupedBars,\n simpleBars = _marks.simpleBars,\n simpleBarLabels = _marks.simpleBarLabels,\n simpleBarSubLabels = _marks.simpleBarSubLabels,\n stackedBars = _marks.stackedBars,\n stackedBarLabels = _marks.stackedBarLabels,\n stackedBarSubLabels = _marks.stackedBarSubLabels,\n stackedOverallBarLabels = _marks.stackedOverallBarLabels,\n interactiveAreas = _marks.interactiveAreas,\n backgroundAreas = _marks.backgroundAreas,\n threshold = _marks.threshold;\n var dataThisChart = [data].concat(_toConsumableArray(groupType === \"Stacked\" ? [{\n \"name\": \"table-stacked\",\n \"source\": \"table\",\n \"transform\": [{\n \"type\": \"stack\",\n \"groupby\": [groupProp],\n \"sort\": {\n \"field\": subGroupProp,\n \"order\": \"ascending\"\n },\n \"field\": \"Value\"\n }]\n }, {\n \"name\": \"table-stacked-sum\",\n \"source\": \"table-stacked\",\n \"transform\": [{\n \"type\": \"aggregate\",\n \"groupby\": [groupProp],\n \"fields\": [\"Value\"],\n \"ops\": [\"sum\"],\n \"as\": [\"sum\"]\n }]\n }] : []), [{\n \"name\": \"subgroups\",\n \"source\": \"table\",\n \"transform\": [{\n \"type\": \"aggregate\",\n \"groupby\": [subGroupProp]\n }]\n }, {\n \"name\": \"groups\",\n \"source\": \"table\",\n \"transform\": [{\n \"type\": \"aggregate\",\n \"groupby\": [groupProp]\n }]\n }]);\n var barMarks = groupType === \"Grouped\" ? [groupedBars] : groupType === \"Stacked\" ? [stackedBars].concat(_toConsumableArray(width > 500 ? [stackedBarLabels, stackedBarSubLabels, stackedOverallBarLabels] : [])) : [simpleBars].concat(_toConsumableArray(width > 500 ? [simpleBarLabels, simpleBarSubLabels] : []));\n var marksThisChart = [\n // Background highlight for interactivity\n backgroundAreas].concat(_toConsumableArray(barMarks), _toConsumableArray(groupType !== \"Grouped\" && groupType !== \"Stacked\" ? [manualXAxis] : []), _toConsumableArray(!_ramda.default.isNil(thresholdLineValue) ? [threshold] : []), _toConsumableArray(includeLegend && splitLegend ? [twoColumnLegend] : includeLegend ? [oneColumnLegend] : []), [\n // Hover targets\n interactiveAreas]);\n return {\n \"$schema\": \"https://vega.github.io/schema/vega/v3.0.json\",\n \"padding\": padding,\n \"width\": width,\n \"height\": height,\n \"autosize\": {\n \"type\": \"fit\",\n \"contains\": \"padding\"\n },\n \"data\": dataThisChart,\n \"signals\": [hoverSignal, toolTipSignal],\n \"scales\": [yScale, barXScale, colorScale, hoverXScale],\n \"axes\": [].concat(_toConsumableArray(includeYAxis ? [yAxis] : []), _toConsumableArray(groupType === \"Grouped\" || groupType === \"Stacked\" ? [xAxis] : [])),\n \"marks\": marksThisChart\n };\n};\n\n},{\"./axes.js\":191,\"./data.js\":194,\"./legend.js\":195,\"./marks.js\":196,\"./scales.js\":197,\"./signals.js\":198,\"core-js/modules/es.array.concat\":118,\"ramda\":\"ramda\"}],193:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.concat\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _scales2 = _interopRequireDefault(require(\"./scales.js\"));\nvar _signals2 = _interopRequireDefault(require(\"./signals.js\"));\nvar _axes2 = _interopRequireDefault(require(\"./axes.js\"));\nvar _marks2 = _interopRequireDefault(require(\"./marks.js\"));\nvar _legend2 = _interopRequireDefault(require(\"./legend.js\"));\nvar _data = require(\"./data.js\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nvar _default = exports.default = function _default(config, data) {\n var padding = config.padding,\n width = config.width,\n height = config.height,\n type = config.type,\n groupProp = config.groupProp,\n subGroupProp = config.subGroupProp,\n dataFormat = config.dataFormat,\n includeGridLines = config.includeGridLines,\n yAxisLabel = config.yAxisLabel,\n yAxisLowerBound = config.yAxisLowerBound,\n yAxisUpperBound = config.yAxisUpperBound,\n includeLegend = config.includeLegend,\n splitLegend = config.splitLegend,\n labelLines = config.labelLines,\n emphasizeLines = config.emphasizeLines,\n colorSchemeOverride = config.colorSchemeOverride;\n var _scales = (0, _scales2.default)(config),\n yScale = _scales.yScale,\n trendXScale = _scales.trendXScale,\n colorScale = _scales.colorScale,\n hoverXScale = _scales.hoverXScale;\n var _signals = (0, _signals2.default)(config),\n hoverSignal = _signals.hoverSignal,\n toolTipSignal = _signals.toolTipSignal;\n var _axes = (0, _axes2.default)(config),\n yAxis = _axes.yAxis,\n xAxis = _axes.xAxis;\n var _legend = (0, _legend2.default)(config),\n twoColumnLegend = _legend.twoColumnLegend,\n oneColumnLegend = _legend.oneColumnLegend;\n var _marks = (0, _marks2.default)(config),\n interactiveAreas = _marks.interactiveAreas,\n backgroundAreas = _marks.backgroundAreas,\n trendLines = _marks.trendLines,\n trendLabels = _marks.trendLabels;\n var dataThisChart = [data, {\n \"name\": \"definedtable\",\n \"source\": \"table\",\n \"transform\": [{\n \"type\": \"filter\",\n \"expr\": \"datum.Value !== null\"\n }]\n }, {\n \"name\": \"subgroups\",\n \"source\": \"table\",\n \"transform\": [{\n \"type\": \"aggregate\",\n \"groupby\": [subGroupProp]\n }]\n }, {\n \"name\": \"groups\",\n \"source\": \"table\",\n \"transform\": [{\n \"type\": \"aggregate\",\n \"groupby\": [groupProp]\n }]\n }, {\n \"name\": \"latest\",\n \"source\": \"table\",\n \"transform\": [{\n \"type\": \"filter\",\n \"expr\": \"datum['\".concat(groupProp, \"'] === data('groups')[length(data('groups')) - 1]['\").concat(groupProp, \"']\")\n }]\n }];\n var marksThisChart = [backgroundAreas].concat(_toConsumableArray(trendLines), _toConsumableArray(includeLegend && splitLegend ? [twoColumnLegend] : includeLegend ? [oneColumnLegend] : []), _toConsumableArray(labelLines && width > 600 ? [trendLabels] : []), [interactiveAreas]);\n return {\n \"$schema\": \"https://vega.github.io/schema/vega/v3.0.json\",\n \"padding\": padding,\n \"width\": width,\n \"height\": height,\n \"autosize\": {\n \"type\": \"fit\",\n \"contains\": \"padding\"\n },\n \"data\": dataThisChart,\n \"signals\": [hoverSignal, toolTipSignal],\n \"scales\": [yScale, trendXScale, colorScale, hoverXScale],\n \"axes\": [yAxis, xAxis],\n \"marks\": marksThisChart\n };\n};\n\n},{\"./axes.js\":191,\"./data.js\":194,\"./legend.js\":195,\"./marks.js\":196,\"./scales.js\":197,\"./signals.js\":198,\"core-js/modules/es.array.concat\":118}],194:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dataStacked = exports.dataSimpleTrend = exports.dataSimple = exports.dataGroupedGrid = exports.dataGrouped = exports.data5x2 = exports.data2x5 = void 0;\nvar dataSimple = exports.dataSimple = [{\n \"Group\": \"Prisons & Probation\",\n \"Value\": 145e6,\n \"Sublabel\": \"(+12%)\"\n}, {\n \"Group\": \"Mental Health\",\n \"Value\": -67e6,\n \"Sublabel\": \"(-8%)\"\n}, {\n \"Group\": \"Public Health\",\n \"Value\": -139e6,\n \"Sublabel\": \"(-19%)\"\n}];\nvar data2x5 = exports.data2x5 = [{\n \"Subgroup\": \"18 to 24\",\n \"Group\": \"Female\",\n \"Value\": 8\n}, {\n \"Subgroup\": \"18 to 24\",\n \"Group\": \"Male\",\n \"Value\": 21\n}, {\n \"Subgroup\": \"25 to 34\",\n \"Group\": \"Female\",\n \"Value\": 18\n}, {\n \"Subgroup\": \"25 to 34\",\n \"Group\": \"Male\",\n \"Value\": 57\n}, {\n \"Subgroup\": \"35 to 49\",\n \"Group\": \"Female\",\n \"Value\": 18\n}, {\n \"Subgroup\": \"35 to 49\",\n \"Group\": \"Male\",\n \"Value\": 42\n}, {\n \"Subgroup\": \"50 to 64\",\n \"Group\": \"Female\",\n \"Value\": 13\n}, {\n \"Subgroup\": \"50 to 64\",\n \"Group\": \"Male\",\n \"Value\": 24\n}, {\n \"Subgroup\": \"65+\",\n \"Group\": \"Female\",\n \"Value\": 2\n}, {\n \"Subgroup\": \"65+\",\n \"Group\": \"Male\",\n \"Value\": 5\n}];\nvar data5x2 = exports.data5x2 = [{\n \"Group\": \"18 to 24\",\n \"Subgroup\": \"Female\",\n \"Value\": 8\n}, {\n \"Group\": \"18 to 24\",\n \"Subgroup\": \"Male\",\n \"Value\": 21\n}, {\n \"Group\": \"25 to 34\",\n \"Subgroup\": \"Female\",\n \"Value\": 18\n}, {\n \"Group\": \"25 to 34\",\n \"Subgroup\": \"Male\",\n \"Value\": 57\n}, {\n \"Group\": \"35 to 49\",\n \"Subgroup\": \"Female\",\n \"Value\": 18\n}, {\n \"Group\": \"35 to 49\",\n \"Subgroup\": \"Male\",\n \"Value\": 42\n}, {\n \"Group\": \"50 to 64\",\n \"Subgroup\": \"Female\",\n \"Value\": 13\n}, {\n \"Group\": \"50 to 64\",\n \"Subgroup\": \"Male\",\n \"Value\": 24\n}, {\n \"Group\": \"65+\",\n \"Subgroup\": \"Female\",\n \"Value\": 2\n}, {\n \"Group\": \"65+\",\n \"Subgroup\": \"Male\",\n \"Value\": 5\n}];\nvar dataGrouped = exports.dataGrouped = [{\n \"Group\": \"2011\",\n \"Subgroup\": \"Male\",\n \"Value\": 0.54,\n \"Sublabel\": \"Foo\"\n}, {\n \"Group\": \"2011\",\n \"Subgroup\": \"Female\",\n \"Value\": 0.16\n}, {\n \"Group\": \"2012\",\n \"Subgroup\": \"Male\",\n \"Value\": 0.58\n}, {\n \"Group\": \"2012\",\n \"Subgroup\": \"Female\",\n \"Value\": 0.27\n}, {\n \"Group\": \"2013\",\n \"Subgroup\": \"Male\",\n \"Value\": 0.60\n}, {\n \"Group\": \"2013\",\n \"Subgroup\": \"Female\",\n \"Value\": 0.23\n}, {\n \"Group\": \"2014\",\n \"Subgroup\": \"Male\",\n \"Value\": 0.57\n}, {\n \"Group\": \"2014\",\n \"Subgroup\": \"Female\",\n \"Value\": 0.18\n}];\nvar dataGroupedGrid = exports.dataGroupedGrid = [{\n \"Group\": \"18 to 24\",\n \"Subgroup\": \"Female\",\n \"Value\": 7.1\n}, {\n \"Group\": \"18 to 24\",\n \"Subgroup\": \"Male\",\n \"Value\": 21.2\n}, {\n \"Group\": \"25 to 34\",\n \"Subgroup\": \"Female\",\n \"Value\": 17.9\n}, {\n \"Group\": \"25 to 34\",\n \"Subgroup\": \"Male\",\n \"Value\": 57.2\n}, {\n \"Group\": \"35 to 49\",\n \"Subgroup\": \"Female\",\n \"Value\": 18.0\n}, {\n \"Group\": \"35 to 49\",\n \"Subgroup\": \"Male\",\n \"Value\": 42.2\n}, {\n \"Group\": \"50 to 64\",\n \"Subgroup\": \"Female\",\n \"Value\": 12.9\n}, {\n \"Group\": \"50 to 64\",\n \"Subgroup\": \"Male\",\n \"Value\": 24.4\n}, {\n \"Group\": \"65+\",\n \"Subgroup\": \"Female\",\n \"Value\": 2.2\n}, {\n \"Group\": \"65+\",\n \"Subgroup\": \"Male\",\n \"Value\": 2.5\n}];\nvar dataStacked = exports.dataStacked = [{\n \"Group\": \"1980\",\n \"Subgroup\": \"Department of correction (state)\",\n \"Value\": 377\n}, {\n \"Group\": \"1980\",\n \"Subgroup\": \"Houses of correction (State)\",\n \"Value\": 106\n}, {\n \"Group\": \"1990\",\n \"Subgroup\": \"Department of correction (state)\",\n \"Value\": 1907\n}, {\n \"Group\": \"1990\",\n \"Subgroup\": \"Houses of correction (State)\",\n \"Value\": 1502\n}, {\n \"Group\": \"2000\",\n \"Subgroup\": \"Department of correction (state)\",\n \"Value\": 2855\n}, {\n \"Group\": \"2000\",\n \"Subgroup\": \"Houses of correction (State)\",\n \"Value\": 2328\n}, {\n \"Group\": \"2010\",\n \"Subgroup\": \"Department of correction (state)\",\n \"Value\": 3086,\n \"Sublabel\": \"Foo\"\n}, {\n \"Group\": \"2010\",\n \"Subgroup\": \"Houses of correction (State)\",\n \"Value\": 2571\n}];\nvar dataSimpleTrend = exports.dataSimpleTrend = [{\n \"Timeframe\": \"2005\",\n \"Series\": \"Boston\",\n \"Value\": 0.51\n}, {\n \"Timeframe\": \"2005\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.43\n}, {\n \"Timeframe\": \"2006\",\n \"Series\": \"Boston\",\n \"Value\": 0.475,\n \"Label\": \"Below\"\n}, {\n \"Timeframe\": \"2006\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.425\n}, {\n \"Timeframe\": \"2007\",\n \"Series\": \"Boston\",\n \"Value\": 0.495\n}, {\n \"Timeframe\": \"2007\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.425\n}, {\n \"Timeframe\": \"2008\",\n \"Series\": \"Boston\",\n \"Value\": 0.52\n}, {\n \"Timeframe\": \"2008\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.43\n}, {\n \"Timeframe\": \"2009\",\n \"Series\": \"Boston\",\n \"Value\": 0.535\n}, {\n \"Timeframe\": \"2009\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.45\n}, {\n \"Timeframe\": \"2010\",\n \"Series\": \"Boston\",\n \"Value\": 0.535\n}, {\n \"Timeframe\": \"2010\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.475,\n \"Label\": \"Above\"\n}, {\n \"Timeframe\": \"2011\",\n \"Series\": \"Boston\",\n \"Value\": 0.54\n}, {\n \"Timeframe\": \"2011\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.48\n}, {\n \"Timeframe\": \"2012\",\n \"Series\": \"Boston\",\n \"Value\": 0.57\n}, {\n \"Timeframe\": \"2012\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.53\n}, {\n \"Timeframe\": \"2013\",\n \"Series\": \"Boston\",\n \"Value\": 0.595\n}, {\n \"Timeframe\": \"2013\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.55\n}, {\n \"Timeframe\": \"2014\",\n \"Series\": \"Boston\",\n \"Value\": 0.595\n}, {\n \"Timeframe\": \"2014\",\n \"Series\": \"Massachusetts\",\n \"Value\": 0.59\n}];\n\n},{}],195:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.split\");\nrequire(\"core-js/modules/es.string.trim\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _default = exports.default = function _default(config) {\n var width = config.width,\n type = config.type,\n groupProp = config.groupProp,\n subGroupProp = config.subGroupProp,\n dataFormat = config.dataFormat,\n thresholdLineValue = config.thresholdLineValue,\n thresholdLineLabel = config.thresholdLineLabel,\n emphasizeLines = config.emphasizeLines;\n var emphasizedLines = (emphasizeLines || \"\").split(\",\").map(function (s) {\n return s.trim();\n });\n var legendSpec = function legendSpec(split) {\n return {\n \"type\": \"group\",\n \"name\": \"legend\",\n \"signals\": [{\n \"name\": \"range\",\n \"update\": split ? \"sequence(0, length(data('subgroups')), 0.5)\" : \"sequence(0, length(data('subgroups')), 1)\"\n }, {\n \"name\": \"emphasizedLines\",\n \"value\": emphasizedLines\n }],\n \"scales\": [{\n \"name\": \"pos\",\n \"type\": \"ordinal\",\n \"range\": {\n \"signal\": \"range\"\n },\n \"domain\": {\n \"data\": \"subgroups\",\n \"field\": subGroupProp\n }\n }],\n \"encode\": {\n \"enter\": {\n \"y\": {\n \"signal\": \"height + padding.bottom + 50\"\n }\n }\n },\n \"marks\": [type === \"trend\" ? {\n \"type\": \"rule\",\n \"from\": {\n \"data\": \"subgroups\"\n },\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"signal\": split ? \"scale('pos', datum['\".concat(subGroupProp, \"']) % 1 === 0 ? 0 : width/2\") : \"0\"\n },\n \"x2\": {\n \"signal\": split ? \"12 + (scale('pos', datum['\".concat(subGroupProp, \"']) % 1 === 0 ? 0 : width/2)\") : \"12\"\n },\n \"y\": {\n \"signal\": \"floor(scale('pos', datum['\".concat(subGroupProp, \"'])) * 25\")\n },\n \"stroke\": {\n \"scale\": \"color\",\n \"field\": subGroupProp\n },\n \"strokeCap\": {\n \"value\": \"round\"\n },\n \"strokeWidth\": [{\n \"test\": \"indexof(emphasizedLines, datum.Series) >= 0\",\n \"value\": 7\n }, {\n \"value\": 4\n }]\n }\n }\n } : {\n \"type\": \"symbol\",\n \"from\": {\n \"data\": \"subgroups\"\n },\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"signal\": split ? \"scale('pos', datum['\".concat(subGroupProp, \"']) % 1 === 0 ? 0 : width/2\") : \"0\"\n },\n \"y\": {\n \"signal\": \"floor(scale('pos', datum['\".concat(subGroupProp, \"'])) * 25\")\n },\n \"fill\": {\n \"scale\": \"color\",\n \"field\": subGroupProp\n },\n \"shape\": {\n \"value\": \"square\"\n },\n \"size\": {\n \"value\": 256\n }\n }\n }\n }, {\n \"type\": \"text\",\n \"from\": {\n \"data\": \"subgroups\"\n },\n \"encode\": {\n \"enter\": {\n \"text\": {\n \"field\": subGroupProp\n },\n \"baseline\": {\n \"value\": \"middle\"\n },\n \"x\": {\n \"signal\": split ? \"20 + (scale('pos', datum['\".concat(subGroupProp, \"']) % 1 === 0 ? 0 : width/2)\") : \"20\"\n },\n \"y\": {\n \"signal\": \"floor(scale('pos', datum['\".concat(subGroupProp, \"'])) * 25\")\n },\n \"fill\": {\n \"value\": \"#6c6c69\"\n },\n \"fontSize\": width < 500 ? {\n \"value\": 13\n } : {\n \"value\": 15\n },\n \"font\": {\n \"value\": \"stevie-sans, sans-serif\"\n },\n \"fontWeight\": {\n \"value\": 400\n }\n }\n }\n }]\n };\n };\n return {\n twoColumnLegend: legendSpec(true),\n oneColumnLegend: legendSpec(false)\n };\n};\n\n},{\"core-js/modules/es.array.map\":126,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.split\":146,\"core-js/modules/es.string.trim\":147}],196:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.concat\");\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.object.assign\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.split\");\nrequire(\"core-js/modules/es.string.trim\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nfunction _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _iterableToArray(r) { if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r); }\nfunction _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\n//import calculateSize from \"calculate-size\";\nvar _default = exports.default = function _default(config) {\n var width = config.width,\n groupProp = config.groupProp,\n subGroupProp = config.subGroupProp,\n dataFormat = config.dataFormat,\n thresholdLineValue = config.thresholdLineValue,\n thresholdLineLabel = config.thresholdLineLabel,\n emphasizeLines = config.emphasizeLines;\n var labelProps = {\n \"align\": {\n \"value\": \"center\"\n },\n \"fontSize\": width > 600 ? {\n \"value\": 13\n } : {\n \"value\": 11\n },\n \"font\": {\n \"value\": \"stevie-sans, sans-serif\"\n },\n \"fontWeight\": {\n \"value\": 400\n },\n \"fill\": {\n \"value\": \"#fff\"\n }\n };\n var labelBoldProps = {\n \"align\": {\n \"value\": \"center\"\n },\n \"fontSize\": width > 600 ? {\n \"value\": 14\n } : {\n \"value\": 12\n },\n \"font\": {\n \"value\": \"stevie-sans, sans-serif\"\n },\n \"fontWeight\": {\n \"value\": 800\n },\n \"fill\": {\n \"value\": \"#353531\"\n }\n };\n var thresholdLabelSize = function thresholdLabelSize() {\n return calculateSize(thresholdLineLabel, {\n font: \"stevie-sans, sans-serif\",\n fontSize: \"12.4px\",\n fontWeight: 500\n });\n };\n var emphasizedLines = (emphasizeLines || \"\").split(\",\").map(function (s) {\n return s.trim();\n });\n var barTooSmallTest = \"abs(scale('yscale', 0) - scale('yscale', datum.Value)) < 27\";\n var barPositiveTest = \"datum.Value >= 0\";\n var barNegativeTest = \"datum.Value < 0\";\n var barLabelProps = function barLabelProps(_ref) {\n var tooSmallAndNegative = _ref.tooSmallAndNegative,\n tooSmallAndPositive = _ref.tooSmallAndPositive,\n negative = _ref.negative,\n positive = _ref.positive;\n return [{\n \"test\": \"\".concat(barTooSmallTest, \" && \").concat(barPositiveTest),\n \"value\": tooSmallAndPositive\n }, {\n \"test\": \"\".concat(barTooSmallTest, \" && \").concat(barNegativeTest),\n \"value\": tooSmallAndNegative\n }, {\n \"test\": barNegativeTest,\n \"value\": negative\n }, {\n \"value\": positive\n }];\n };\n return {\n groupedBars: {\n \"type\": \"group\",\n \"name\": \"bars\",\n \"from\": {\n \"facet\": {\n \"data\": \"table\",\n \"name\": \"facet\",\n \"groupby\": groupProp\n }\n },\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n }\n }\n },\n \"signals\": [{\n \"name\": \"width\",\n \"update\": \"bandwidth('xscale')\"\n }],\n \"scales\": [{\n \"name\": \"pos\",\n \"type\": \"band\",\n \"range\": \"width\",\n \"domain\": {\n \"data\": \"facet\",\n \"field\": subGroupProp\n }\n }],\n \"marks\": [{\n \"name\": \"bars\",\n \"from\": {\n \"data\": \"facet\"\n },\n \"type\": \"rect\",\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"scale\": \"pos\",\n \"field\": subGroupProp\n },\n \"width\": {\n \"scale\": \"pos\",\n \"band\": 1\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"y2\": {\n \"scale\": \"yscale\",\n \"value\": 0\n },\n \"fill\": {\n \"scale\": \"color\",\n \"field\": subGroupProp\n }\n }\n }\n }].concat(_toConsumableArray(width > 500 ? [{\n \"name\": \"labels\",\n \"from\": {\n \"data\": \"facet\"\n },\n \"type\": \"text\",\n \"encode\": {\n \"enter\": Object.assign({}, labelProps, {\n \"x\": {\n \"scale\": \"pos\",\n \"field\": subGroupProp\n },\n \"dx\": {\n \"scale\": \"pos\",\n \"band\": 0.5\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"dy\": barLabelProps({\n tooSmallAndNegative: 10,\n tooSmallAndPositive: -7,\n negative: -10,\n positive: 10\n }),\n \"baseline\": barLabelProps({\n tooSmallAndNegative: \"top\",\n tooSmallAndPositive: \"bottom\",\n negative: \"bottom\",\n positive: \"top\"\n }),\n \"fill\": barLabelProps({\n tooSmallAndNegative: \"#6c6c69\",\n tooSmallAndPositive: \"#6c6c69\",\n negative: \"white\",\n positive: \"white\"\n }),\n \"text\": {\n \"signal\": \"format(datum.Value, '\".concat(dataFormat, \"')\")\n }\n })\n }\n }, {\n \"name\": \"sublabels\",\n \"from\": {\n \"data\": \"facet\"\n },\n \"type\": \"text\",\n \"encode\": {\n \"enter\": Object.assign({}, labelProps, {\n \"x\": {\n \"scale\": \"pos\",\n \"field\": subGroupProp\n },\n \"dx\": {\n \"scale\": \"pos\",\n \"band\": 0.5\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"dy\": barLabelProps({\n tooSmallAndNegative: 27,\n tooSmallAndPositive: -24,\n negative: -27,\n positive: 27\n }),\n \"baseline\": barLabelProps({\n tooSmallAndNegative: \"top\",\n tooSmallAndPositive: \"bottom\",\n negative: \"bottom\",\n positive: \"top\"\n }),\n \"fill\": barLabelProps({\n tooSmallAndNegative: \"#6c6c69\",\n tooSmallAndPositive: \"#6c6c69\",\n negative: \"white\",\n positive: \"white\"\n }),\n \"text\": {\n \"field\": \"Sublabel\"\n },\n \"opacity\": [{\n \"test\": \"!datum.Sublabel\",\n \"value\": 0\n }, {\n \"value\": 1\n }]\n })\n }\n }] : []))\n },\n simpleBars: {\n \"type\": \"rect\",\n \"name\": \"bars\",\n \"from\": {\n \"data\": \"table\"\n },\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"width\": {\n \"scale\": \"xscale\",\n \"band\": 1,\n \"offset\": -1\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"y2\": {\n \"scale\": \"yscale\",\n \"value\": 0\n },\n \"fill\": {\n \"scale\": \"color\",\n \"field\": subGroupProp\n }\n }\n }\n },\n simpleBarLabels: {\n \"name\": \"labels\",\n \"from\": {\n \"data\": \"table\"\n },\n \"type\": \"text\",\n \"encode\": {\n \"enter\": Object.assign({}, labelProps, {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"dx\": {\n \"scale\": \"xscale\",\n \"band\": 0.5\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"dy\": barLabelProps({\n tooSmallAndNegative: 10,\n tooSmallAndPositive: -7,\n negative: -10,\n positive: 10\n }),\n \"baseline\": barLabelProps({\n tooSmallAndNegative: \"top\",\n tooSmallAndPositive: \"bottom\",\n negative: \"bottom\",\n positive: \"top\"\n }),\n \"fill\": barLabelProps({\n tooSmallAndNegative: \"#6c6c69\",\n tooSmallAndPositive: \"#6c6c69\",\n negative: \"white\",\n positive: \"white\"\n }),\n \"text\": {\n \"signal\": \"format(datum.Value, '\".concat(dataFormat, \"')\")\n },\n \"opacity\": {\n \"value\": 1\n }\n })\n }\n },\n simpleBarSubLabels: {\n \"name\": \"sublabels\",\n \"from\": {\n \"data\": \"table\"\n },\n \"type\": \"text\",\n \"encode\": {\n \"enter\": Object.assign({}, labelProps, {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"dx\": {\n \"scale\": \"xscale\",\n \"band\": 0.5\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"dy\": barLabelProps({\n tooSmallAndNegative: 27,\n tooSmallAndPositive: -24,\n negative: -27,\n positive: 27\n }),\n \"baseline\": barLabelProps({\n tooSmallAndNegative: \"top\",\n tooSmallAndPositive: \"bottom\",\n negative: \"bottom\",\n positive: \"top\"\n }),\n \"fill\": barLabelProps({\n tooSmallAndNegative: \"#6c6c69\",\n tooSmallAndPositive: \"#6c6c69\",\n negative: \"white\",\n positive: \"white\"\n }),\n \"text\": {\n \"field\": \"Sublabel\"\n },\n \"opacity\": [{\n \"test\": \"!datum.Sublabel\",\n \"value\": 0\n }, {\n \"value\": 1\n }]\n })\n }\n },\n stackedBars: {\n \"type\": \"rect\",\n \"name\": \"bars\",\n \"from\": {\n \"data\": \"table-stacked\"\n },\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"width\": {\n \"scale\": \"xscale\",\n \"band\": 1,\n \"offset\": -1\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"y0\"\n },\n \"y2\": {\n \"scale\": \"yscale\",\n \"field\": \"y1\"\n },\n \"fill\": {\n \"scale\": \"color\",\n \"field\": subGroupProp\n }\n }\n }\n },\n stackedBarLabels: {\n \"name\": \"labels\",\n \"from\": {\n \"data\": \"table-stacked\"\n },\n \"type\": \"text\",\n \"encode\": {\n \"enter\": Object.assign({}, labelProps, {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"dx\": {\n \"scale\": \"xscale\",\n \"band\": 0.5\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"y1\"\n },\n \"dy\": {\n \"value\": 10\n },\n \"baseline\": {\n \"value\": \"top\"\n },\n \"text\": {\n \"signal\": \"format(datum.Value, '\".concat(dataFormat, \"')\")\n },\n \"opacity\": [{\n \"test\": \"abs(scale('yscale', datum.y1) - scale('yscale', datum.y0)) < 49\",\n \"value\": 0\n }, {\n \"value\": 1\n }]\n })\n }\n },\n stackedBarSubLabels: {\n \"name\": \"sublabels\",\n \"from\": {\n \"data\": \"table-stacked\"\n },\n \"type\": \"text\",\n \"encode\": {\n \"enter\": Object.assign({}, labelProps, {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"dx\": {\n \"scale\": \"xscale\",\n \"band\": 0.5\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"y1\"\n },\n \"dy\": {\n \"value\": 27\n },\n \"baseline\": {\n \"value\": \"top\"\n },\n \"text\": {\n \"field\": \"Sublabel\"\n },\n \"opacity\": [{\n \"test\": \"abs(scale('yscale', datum.y1) - scale('yscale', datum.y0)) < 49\",\n \"value\": 0\n }, {\n \"test\": \"!datum.Sublabel\",\n \"value\": 0\n }, {\n \"value\": 1\n }]\n })\n }\n },\n stackedOverallBarLabels: {\n \"name\": \"labels-sum\",\n \"from\": {\n \"data\": \"table-stacked-sum\"\n },\n \"type\": \"text\",\n \"encode\": {\n \"enter\": Object.assign({}, labelBoldProps, {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"dx\": {\n \"scale\": \"xscale\",\n \"band\": 0.5\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"sum\"\n },\n \"dy\": {\n \"value\": -10\n },\n \"baseline\": {\n \"value\": \"bottom\"\n },\n \"text\": {\n \"signal\": \"format(datum.sum, '\".concat(dataFormat, \"')\")\n },\n \"opacity\": [{\n \"test\": \"height - scale('yscale', datum.sum) < 27\",\n \"value\": 0\n }, {\n \"value\": 1\n }]\n })\n }\n },\n interactiveAreas: {\n \"type\": \"rect\",\n \"name\": \"interactive-areas\",\n \"from\": {\n \"data\": \"table\"\n },\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"scale\": \"fullwidth-xscale\",\n \"field\": groupProp\n },\n \"width\": {\n \"scale\": \"fullwidth-xscale\",\n \"band\": 1\n },\n \"y\": {\n \"value\": 0\n },\n \"y2\": {\n \"signal\": \"height\"\n },\n \"opacity\": {\n \"value\": 0\n }\n }\n }\n },\n backgroundAreas: {\n \"type\": \"rect\",\n \"name\": \"background-areas\",\n \"from\": {\n \"data\": \"table\"\n },\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"scale\": \"fullwidth-xscale\",\n \"field\": groupProp\n },\n \"width\": {\n \"scale\": \"fullwidth-xscale\",\n \"band\": 1\n },\n \"y\": {\n \"value\": 0\n },\n \"y2\": {\n \"signal\": \"height\"\n },\n \"fill\": {\n \"value\": \"#d1d1d0\"\n }\n },\n \"update\": {\n \"opacity\": [{\n \"test\": \"activeGroup === (datum['\".concat(groupProp, \"'])\"),\n \"value\": 0.2\n }, {\n \"value\": 0\n }]\n }\n }\n },\n threshold: {\n \"type\": \"group\",\n \"name\": \"threshold\",\n \"encode\": {\n \"enter\": {\n \"y\": {\n \"scale\": \"yscale\",\n \"value\": thresholdLineValue\n }\n }\n },\n \"marks\": [{\n \"type\": \"rule\",\n \"name\": \"threshold-line-background\",\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"value\": 10\n },\n \"x2\": {\n \"signal\": \"width\"\n },\n \"y\": {\n \"value\": 0\n },\n \"y2\": {\n \"value\": 0\n },\n \"stroke\": {\n \"value\": \"#fff\"\n },\n \"strokeWidth\": {\n \"value\": 6\n },\n \"strokeDash\": {\n \"value\": [1, 7]\n },\n \"strokeCap\": {\n \"value\": \"round\"\n }\n }\n }\n }, {\n \"type\": \"rule\",\n \"name\": \"threshold-line\",\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"value\": 10\n },\n \"x2\": {\n \"signal\": \"width\"\n },\n \"y\": {\n \"value\": 0\n },\n \"y2\": {\n \"value\": 0\n },\n \"stroke\": {\n \"value\": \"#a3a3a1\"\n },\n \"strokeWidth\": {\n \"value\": 4\n },\n \"strokeDash\": {\n \"value\": [1, 7]\n },\n \"strokeCap\": {\n \"value\": \"round\"\n }\n }\n }\n }].concat(_toConsumableArray(width > 600 ? [{\n \"type\": \"text\",\n \"name\": \"threshold-label\",\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"signal\": \"width\"\n },\n \"y\": {\n \"value\": -8\n },\n \"align\": {\n \"value\": \"right\"\n },\n \"baseline\": {\n \"value\": \"middle\"\n },\n \"font\": {\n \"value\": \"stevie-sans, sans-serif\"\n },\n \"fontSize\": {\n \"value\": 12\n },\n \"fontWeight\": {\n \"value\": 500\n },\n \"fill\": {\n \"value\": \"#353531\"\n },\n \"text\": {\n \"value\": thresholdLineLabel\n }\n }\n }\n }] : []))\n },\n trendLines: [{\n \"type\": \"group\",\n \"from\": {\n \"facet\": {\n \"name\": \"series\",\n \"data\": \"table\",\n \"groupby\": subGroupProp\n }\n },\n \"signals\": [{\n \"name\": \"emphasizedLines\",\n \"value\": emphasizedLines\n }],\n \"marks\": [{\n \"type\": \"line\",\n \"name\": \"lines\",\n \"from\": {\n \"data\": \"series\"\n },\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"stroke\": {\n \"scale\": \"color\",\n \"field\": subGroupProp\n },\n \"defined\": {\n \"signal\": \"datum.Value !== null\"\n },\n \"strokeWidth\": [{\n \"test\": \"indexof(emphasizedLines, datum.Series) >= 0\",\n \"value\": 6\n }, {\n \"value\": 3\n }],\n \"strokeCap\": {\n \"value\": \"round\"\n }\n }\n }\n }]\n }, {\n \"type\": \"group\",\n \"from\": {\n \"facet\": {\n \"name\": \"series\",\n \"data\": \"definedtable\",\n \"groupby\": subGroupProp\n }\n },\n \"marks\": _toConsumableArray(width > 500 ? [{\n \"type\": \"symbol\",\n \"name\": \"dots\",\n \"shape\": \"circle\",\n \"from\": {\n \"data\": \"series\"\n },\n \"encode\": {\n \"enter\": {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"size\": {\n \"value\": 200\n },\n \"fill\": {\n \"scale\": \"color\",\n \"field\": subGroupProp\n },\n \"stroke\": {\n \"value\": \"#fff\"\n },\n \"strokeWidth\": {\n \"value\": 3\n }\n },\n \"update\": {\n \"opacity\": [{\n \"test\": \"activeGroup === datum.Timeframe\",\n \"value\": 1\n }, {\n \"test\": \"datum.Label\",\n \"value\": 1\n }, {\n \"value\": 0\n }]\n }\n }\n }, {\n \"type\": \"text\",\n \"name\": \"dot-labels\",\n \"from\": {\n \"data\": \"series\"\n },\n \"encode\": {\n \"enter\": Object.assign({}, labelBoldProps, {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"text\": {\n \"signal\": \"format(datum.Value, '\".concat(dataFormat, \"')\")\n },\n \"align\": {\n \"value\": \"center\"\n },\n \"opacity\": [{\n \"test\": \"datum.Label\",\n \"value\": 1\n }, {\n \"value\": 0\n }],\n \"dy\": [{\n \"test\": \"datum.Label === 'Above'\",\n \"value\": -10\n }, {\n \"value\": 10\n }],\n \"baseline\": [{\n \"test\": \"datum.Label === 'Above'\",\n \"value\": \"bottom\"\n }, {\n \"value\": \"top\"\n }]\n })\n }\n }, {\n \"type\": \"text\",\n \"name\": \"dot-sublabels\",\n \"from\": {\n \"data\": \"series\"\n },\n \"encode\": {\n \"enter\": Object.assign({}, labelBoldProps, {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"text\": {\n \"field\": \"Note\"\n },\n \"align\": {\n \"value\": \"center\"\n },\n \"fontWeight\": {\n \"value\": 500\n },\n \"fontSize\": {\n \"value\": 13\n },\n \"opacity\": [{\n \"test\": \"datum.Note\",\n \"value\": 1\n }, {\n \"value\": 0\n }],\n \"dy\": [{\n \"test\": \"datum.Label === 'Above'\",\n \"value\": -27\n }, {\n \"value\": 27\n }],\n \"baseline\": [{\n \"test\": \"datum.Label == 'Above'\",\n \"value\": \"bottom\"\n }, {\n \"value\": \"top\"\n }]\n })\n }\n }] : [])\n }],\n trendLabels: {\n \"type\": \"group\",\n \"name\": \"trend-labels\",\n \"from\": {\n \"facet\": {\n \"name\": \"series\",\n \"data\": \"latest\",\n \"groupby\": subGroupProp\n }\n },\n \"marks\": [{\n \"type\": \"text\",\n \"from\": {\n \"data\": \"series\"\n },\n \"encode\": {\n \"enter\": Object.assign({}, labelProps, {\n \"x\": {\n \"scale\": \"xscale\",\n \"field\": groupProp\n },\n \"dx\": {\n \"value\": 10\n },\n \"y\": {\n \"scale\": \"yscale\",\n \"field\": \"Value\"\n },\n \"text\": {\n \"field\": subGroupProp\n },\n \"align\": {\n \"value\": \"left\"\n },\n \"baseline\": {\n \"value\": \"middle\"\n },\n \"fill\": {\n \"value\": \"#353531\"\n },\n \"limit\": {\n \"value\": 150\n }\n })\n }\n }]\n }\n };\n};\n\n},{\"core-js/modules/es.array.concat\":118,\"core-js/modules/es.array.map\":126,\"core-js/modules/es.object.assign\":133,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.split\":146,\"core-js/modules/es.string.trim\":147}],197:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.object.assign\");\nrequire(\"core-js/modules/es.regexp.exec\");\nrequire(\"core-js/modules/es.string.split\");\nrequire(\"core-js/modules/es.string.trim\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _ramda = _interopRequireDefault(require(\"ramda\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar _default = exports.default = function _default(config) {\n var type = config.type,\n groupProp = config.groupProp,\n subGroupProp = config.subGroupProp,\n groupType = config.groupType,\n yAxisLowerBound = config.yAxisLowerBound,\n yAxisUpperBound = config.yAxisUpperBound,\n colorSchemeOverride = config.colorSchemeOverride;\n var yScaleDomainField = type === \"bar\" && groupType === \"Stacked\" ? \"y1\" : \"Value\";\n var yScaleDomainOverrides = {};\n if (!_ramda.default.isNil(yAxisLowerBound)) {\n yScaleDomainOverrides.domainMin = yAxisLowerBound;\n }\n if (!_ramda.default.isNil(yAxisUpperBound)) {\n yScaleDomainOverrides.domainMax = yAxisUpperBound;\n }\n var colorScheme = !_ramda.default.isNil(colorSchemeOverride) && colorSchemeOverride !== \"\" ? colorSchemeOverride.split(\",\").map(function (s) {\n return s.trim();\n }) : [\"#314a8e\", \"#75b9b9\", \"#b51454\", \"#a58328\", \"#81588f\"];\n return {\n yScale: Object.assign({}, {\n \"name\": \"yscale\",\n \"type\": \"linear\",\n \"domain\": type === \"bar\" && groupType === \"Stacked\" ? {\n \"data\": \"table-stacked\",\n \"field\": \"y1\"\n } : {\n \"data\": \"table\",\n \"field\": \"Value\"\n },\n \"range\": \"height\",\n \"round\": true,\n \"zero\": true,\n \"nice\": true\n }, yScaleDomainOverrides),\n barXScale: {\n \"name\": \"xscale\",\n \"type\": \"band\",\n \"domain\": {\n \"data\": \"table\",\n \"field\": groupProp\n },\n \"range\": \"width\",\n \"paddingOuter\": 0.2,\n \"paddingInner\": 0.4\n },\n trendXScale: {\n \"name\": \"xscale\",\n \"type\": \"point\",\n \"domain\": {\n \"data\": \"table\",\n \"field\": groupProp\n },\n \"range\": \"width\",\n \"padding\": 0.5\n },\n colorScale: {\n \"name\": \"color\",\n \"type\": \"ordinal\",\n \"domain\": {\n \"data\": \"table\",\n \"field\": subGroupProp\n },\n \"range\": colorScheme\n },\n hoverXScale: {\n \"name\": \"fullwidth-xscale\",\n \"type\": \"band\",\n \"domain\": {\n \"data\": \"table\",\n \"field\": groupProp\n },\n \"range\": \"width\",\n \"padding\": 0\n }\n };\n};\n\n},{\"core-js/modules/es.array.map\":126,\"core-js/modules/es.object.assign\":133,\"core-js/modules/es.regexp.exec\":140,\"core-js/modules/es.string.split\":146,\"core-js/modules/es.string.trim\":147,\"ramda\":\"ramda\"}],198:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _default = exports.default = function _default(config) {\n var groupProp = config.groupProp,\n subGroupProp = config.subGroupProp;\n return {\n hoverSignal: {\n \"name\": \"activeGroup\",\n \"value\": null,\n \"on\": [{\n \"events\": \"@interactive-areas:mousemove\",\n \"update\": \"datum['\".concat(groupProp, \"']\"),\n \"force\": true\n }, {\n \"events\": \"@interactive-areas:touchstart\",\n \"update\": \"datum['\".concat(groupProp, \"']\"),\n \"force\": true\n }, {\n \"events\": \"@interactive-areas:mouseout\",\n \"update\": \"null\"\n }]\n },\n toolTipSignal: {\n \"name\": \"tooltip\",\n \"value\": null,\n \"update\": \"activeGroup? \\n { \\n group: activeGroup, \\n data: data('table'), \\n colors: {domain: domain('color'), range: range('color')}\\n } : \\n null\"\n }\n };\n};\n\n},{}],199:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.to-primitive\");\nrequire(\"core-js/modules/es.array.concat\");\nrequire(\"core-js/modules/es.date.to-primitive\");\nrequire(\"core-js/modules/es.number.constructor\");\nrequire(\"core-js/modules/es.object.to-string\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar CollapsePane = exports.default = /*#__PURE__*/function (_React$Component) {\n _inherits(CollapsePane, _React$Component);\n var _super = _createSuper(CollapsePane);\n function CollapsePane(props) {\n var _this;\n _classCallCheck(this, CollapsePane);\n _this = _super.call(this, props);\n _defineProperty(_assertThisInitialized(_this), \"toggle\", function () {\n return _this.state.isOpen ? _this.collapse() : _this.expand();\n });\n _this.contentRef = /*#__PURE__*/_react.default.createRef();\n _this.state = {\n isOpen: props.open || false\n };\n return _this;\n }\n _createClass(CollapsePane, [{\n key: \"collapse\",\n value: function collapse() {\n var _this2 = this;\n var ref = this.contentRef.current;\n // get the height of the content ref\n var contentHeight = ref.scrollHeight;\n\n // temporarily disable transitions\n var refTransition = ref.style.transition;\n ref.style.transition = \"\";\n\n // on the next frame, set the height of the content\n // explicitly, so we're not animating from \"auto\"\n requestAnimationFrame(function () {\n ref.style.height = contentHeight;\n ref.style.transition = refTransition;\n\n // on the very next frame, set height to 0\n requestAnimationFrame(function () {\n ref.style.height = \"0px\";\n _this2.setState({\n isOpen: false\n });\n });\n });\n }\n }, {\n key: \"expand\",\n value: function expand() {\n var ref = this.contentRef.current;\n // get the height of the content ref\n var contentHeight = ref.scrollHeight;\n\n // create a one-time callback for when the ref is\n // done the transition\n var self = this;\n ref.addEventListener(\"transitionend\", function handler(e) {\n // remove it immediately\n ref.removeEventListener(\"transitionend\", handler);\n\n // remove the inline \"height\" style, reverting back to initial value\n ref.style.height = null;\n self.setState({\n isOpen: true\n });\n });\n\n // set the height of the ref\n ref.style.height = \"\".concat(contentHeight, \"px\");\n }\n }, {\n key: \"render\",\n value: function render() {\n var openStateClass = this.state.isOpen ? \"is-open\" : \"is-closed\";\n var initialStyle = this.state.isOpen ? {} : {\n height: \"0px\"\n };\n return /*#__PURE__*/_react.default.createElement(\"section\", {\n className: \"\".concat(this.props.className, \" \").concat(openStateClass)\n }, this.props.renderTrigger(this.toggle), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"collapse-pane__content\",\n ref: this.contentRef,\n style: initialStyle\n }, this.props.children));\n }\n }]);\n return CollapsePane;\n}(_react.default.Component);\nvar func = _propTypes.default.func,\n bool = _propTypes.default.bool,\n node = _propTypes.default.node,\n string = _propTypes.default.string;\nCollapsePane.props = {\n open: bool,\n renderTrigger: func.isRequired,\n className: string,\n children: node\n};\nCollapsePane.defaultProps = {\n className: \"collapse-pane\"\n};\n\n},{\"core-js/modules/es.array.concat\":118,\"core-js/modules/es.date.to-primitive\":130,\"core-js/modules/es.number.constructor\":132,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.to-primitive\":151,\"prop-types\":\"prop-types\",\"react\":\"react\"}],200:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.array.concat\");\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.object.get-prototype-of\");\nrequire(\"core-js/modules/es.object.set-prototype-of\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _ramda = _interopRequireDefault(require(\"ramda\"));\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\"); }\nfunction _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }\nfunction _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", { writable: !1 }), e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _inherits(t, e) { if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, \"prototype\", { writable: !1 }), e && _setPrototypeOf(t, e); }\nfunction _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }\nfunction _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }\nfunction _possibleConstructorReturn(t, e) { if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e; if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\"); return _assertThisInitialized(t); }\nfunction _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); return e; }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); } /** @module common/components */\n/**\r\n * \r\n * A generic pop-out container that is anchored to an element. Useful for drop-down functionality.\r\n * ```\r\n }\r\n inFlow={bool}\r\n open={bool.isRequired}\r\n requestClose={func}\r\n >\r\n \r\n \r\n * ```\r\n * @extends React.Component \r\n * @param {function} props.anchorToEl Function returning an HtmlElement for the dropdown to be anchored to.\r\n * @param {array} props.doNotCloseOn An array of HtmlElement that should NOT trigger the flyout to close when clicked\r\n @param {bool} props.inFlow Allow flyout to render as static in the document flow (not absolutely positioned)\r\n @param {bool} open Flag for setting the open state\r\n @param {function} requestClose Function called when the component itself asks to be closed\r\n\r\n */\nvar Flyout = /*#__PURE__*/function (_React$Component) {\n _inherits(Flyout, _React$Component);\n var _super = _createSuper(Flyout);\n function Flyout(props) {\n var _this;\n _classCallCheck(this, Flyout);\n _this = _super.call(this, props);\n _this.flyoutRef = /*#__PURE__*/_react.default.createRef();\n return _this;\n }\n _createClass(Flyout, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n document.addEventListener(\"mousedown\", function (e) {\n return _this2.handleClickOutside(e);\n });\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this3 = this;\n document.removeEventListener(\"mousedown\", function (e) {\n return _this3.handleClickOutside(e);\n });\n }\n }, {\n key: \"handleClickOutside\",\n value: function handleClickOutside(event) {\n if (!this.props.open) {\n return;\n }\n var target = event.target;\n var flyoutRef = this.flyoutRef.current;\n var allRefs = this.props.doNotCloseOn.concat(flyoutRef);\n var isOutside = _ramda.default.all(_ramda.default.equals(false))(_ramda.default.map(function (ref) {\n return ref.contains(target);\n }, allRefs));\n if (isOutside) {\n if (this.props.requestClose) {\n this.props.requestClose(this.props.id);\n }\n }\n }\n }, {\n key: \"positionStyles\",\n value: function positionStyles() {\n if (this.props.inFlow) {\n return {};\n }\n var anchor = this.props.anchorToEl();\n var rect = anchor.getBoundingClientRect();\n return {\n position: \"absolute\",\n top: anchor.offsetTop + rect.height,\n left: anchor.offsetLeft\n };\n }\n }, {\n key: \"render\",\n value: function render() {\n var flyoutClass = (0, _classnames.default)(\"flyout\", {\n \"is-open\": this.props.open\n });\n var anchor = this.props.anchorToEl();\n var anchorId = anchor ? anchor.id : \"\";\n return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, this.props.open && /*#__PURE__*/_react.default.createElement(\"div\", {\n className: flyoutClass,\n ref: this.flyoutRef,\n style: this.positionStyles(),\n \"aria-labelledby\": anchorId\n }, this.props.children));\n }\n }]);\n return Flyout;\n}(_react.default.Component);\nvar _default = exports.default = Flyout;\nvar string = _propTypes.default.string,\n bool = _propTypes.default.bool,\n node = _propTypes.default.node,\n func = _propTypes.default.func,\n arrayOf = _propTypes.default.arrayOf,\n instanceOf = _propTypes.default.instanceOf;\nFlyout.propTypes = {\n id: string,\n children: node.isRequired,\n open: bool.isRequired,\n anchorToEl: func.isRequired,\n doNotCloseOn: arrayOf(instanceOf(HTMLElement)),\n requestClose: func,\n inFlow: bool\n};\nFlyout.defaultProps = {\n open: false,\n doNotCloseOn: []\n};\n\n},{\"classnames\":\"classnames\",\"core-js/modules/es.array.concat\":118,\"core-js/modules/es.array.map\":126,\"core-js/modules/es.object.get-prototype-of\":135,\"core-js/modules/es.object.set-prototype-of\":137,\"prop-types\":\"prop-types\",\"ramda\":\"ramda\",\"react\":\"react\"}],201:[function(require,module,exports){\n\"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.array.concat\");\nrequire(\"core-js/modules/es.array.map\");\nrequire(\"core-js/modules/es.function.name\");\nrequire(\"core-js/modules/es.object.to-string\");\nrequire(\"core-js/modules/es.promise\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _propTypes = require(\"prop-types\");\nvar _moment = _interopRequireDefault(require(\"moment\"));\nvar _classnames = _interopRequireDefault(require(\"classnames\"));\nvar _Chevron = _interopRequireDefault(require(\"../icons/Chevron.jsx\"));\nvar _ChevronRight = _interopRequireDefault(require(\"../icons/ChevronRight.jsx\"));\nvar _DoubleChevron = _interopRequireDefault(require(\"../icons/DoubleChevron.jsx\"));\nvar _Inbox = _interopRequireDefault(require(\"../icons/Inbox.jsx\"));\nvar _LoadingSpinner = _interopRequireDefault(require(\"../../search/components/LoadingSpinner.jsx\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) { if (\"default\" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } } return n.default = e, t && t.set(e, n), n; }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(r, a) { if (r) { if (\"string\" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }\nfunction _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(r) { if (Array.isArray(r)) return r; }\nvar propTypes = {\n type: _propTypes.string,\n title: _propTypes.string,\n apiUrl: _propTypes.string.isRequired,\n noResultsText: _propTypes.string.isRequired,\n noFilteredResultsText: _propTypes.string.isRequired,\n description: _propTypes.string,\n TotalHours: _propTypes.number,\n computedTotalHoursText: _propTypes.string,\n headers: (0, _propTypes.arrayOf)((0, _propTypes.shape)({\n name: _propTypes.string.isRequired,\n sortBy: _propTypes.string.isRequired\n })).isRequired,\n cta: (0, _propTypes.shape)({\n text: _propTypes.string.isRequired,\n url: _propTypes.string.isRequired\n }),\n Results: (0, _propTypes.arrayOf)((0, _propTypes.shape)({\n Course: _propTypes.string,\n Location: _propTypes.string,\n ClassDate: _propTypes.string,\n Track: _propTypes.string,\n Category: _propTypes.string,\n Provider: _propTypes.string,\n EducationHours: _propTypes.number,\n Grade: _propTypes.string\n })),\n referrals: (0, _propTypes.arrayOf)((0, _propTypes.shape)({\n Name: _propTypes.string.isRequired,\n Url: _propTypes.string.isRequired,\n Company: _propTypes.string.isRequired,\n HBA: _propTypes.string.isRequired,\n MembershipType: _propTypes.string.isRequired,\n AnniversaryDate: _propTypes.string.isRequired\n }))\n};\nvar ListTable = function ListTable(props) {\n var title = props.title,\n apiUrl = props.apiUrl,\n cta = props.cta,\n headers = props.headers,\n noFilteredResultsText = props.noFilteredResultsText,\n noResultsText = props.noResultsText,\n description = props.description,\n TotalHours = props.TotalHours,\n type = props.type,\n computedTotalHoursText = props.computedTotalHoursText; // transcript class list-table--transcript\n // spike referrals list-table--spike\n var _useState = (0, _react.useState)(props.Results || props.referrals || []),\n _useState2 = _slicedToArray(_useState, 2),\n referrals = _useState2[0],\n setReferrals = _useState2[1];\n var sortType = type !== \"transcript\" || type === null ? \"Anniversary Date\" : \"\";\n var _useState3 = (0, _react.useState)(sortType),\n _useState4 = _slicedToArray(_useState3, 2),\n sortMethod = _useState4[0],\n setSortMethod = _useState4[1];\n var _useState5 = (0, _react.useState)(true),\n _useState6 = _slicedToArray(_useState5, 2),\n sortAsc = _useState6[0],\n setSortAsc = _useState6[1];\n var _useState7 = (0, _react.useState)(false),\n _useState8 = _slicedToArray(_useState7, 2),\n onlyUpcoming = _useState8[0],\n setOnlyUpcoming = _useState8[1];\n var _useState9 = (0, _react.useState)(10),\n _useState10 = _slicedToArray(_useState9, 1),\n perPage = _useState10[0];\n var _useState11 = (0, _react.useState)(1),\n _useState12 = _slicedToArray(_useState11, 2),\n page = _useState12[0],\n setPage = _useState12[1];\n var _useState13 = (0, _react.useState)(1),\n _useState14 = _slicedToArray(_useState13, 2),\n totalPages = _useState14[0],\n setTotalPages = _useState14[1];\n var _useState15 = (0, _react.useState)([0]),\n _useState16 = _slicedToArray(_useState15, 2),\n paginationItems = _useState16[0],\n setPaginationItems = _useState16[1];\n var _useState17 = (0, _react.useState)(false),\n _useState18 = _slicedToArray(_useState17, 2),\n isSorting = _useState18[0],\n setIsSorting = _useState18[1];\n var _useState19 = (0, _react.useState)(false),\n _useState20 = _slicedToArray(_useState19, 2),\n isPaging = _useState20[0],\n setIsPaging = _useState20[1];\n var _useState21 = (0, _react.useState)(false),\n _useState22 = _slicedToArray(_useState21, 2),\n isRefreshing = _useState22[0],\n setIsRefreshing = _useState22[1];\n var _useState23 = (0, _react.useState)(TotalHours),\n _useState24 = _slicedToArray(_useState23, 2),\n totalHours = _useState24[0],\n setTotalHours = _useState24[1];\n var cn = type === \"transcript\" ? \"list-table list-table--transcript\" : \"list-table list-table--spike\";\n var defaultSort = function defaultSort(header) {\n if (!isSorting) {\n setIsSorting(true);\n if (sortMethod === header) {\n setSortAsc(!sortAsc);\n } else {\n setSortMethod(header);\n setSortAsc(true);\n }\n }\n };\n var handleHeaderClick = function handleHeaderClick(header) {\n defaultSort(header);\n };\n var handlePageClick = function handlePageClick(page) {\n if (!isPaging) {\n setIsPaging(true);\n setPage(page);\n }\n };\n var handleFetch = function handleFetch() {\n var fetchURL = type !== \"transcript\" ? \"\".concat(apiUrl, \"?recent=\").concat(onlyUpcoming, \"&page=\").concat(page, \"&sortby=\").concat(sortMethod, \"&sortorder=\").concat(sortAsc ? \"asc\" : \"desc\") : \"\".concat(apiUrl, \"?recent=\").concat(onlyUpcoming, \"&page=0&sortby=\").concat(sortMethod, \"&sortorder=\").concat(sortAsc ? \"asc\" : \"desc\");\n fetch(fetchURL, {\n method: \"GET\"\n }).then(function (response) {\n if (response.ok) {\n return response.json();\n }\n }).then(function (json) {\n setIsRefreshing(false);\n setIsSorting(false);\n setIsPaging(false);\n setReferrals(json.Results);\n setTotalPages(Math.ceil(json.TotalResults / perPage));\n setTotalHours(json.TotalHours);\n });\n };\n (0, _react.useEffect)(function () {\n // Set an array of links/buttons to show in the pagination bar.\n // Will show maximum of three specific page links.\n setPaginationItems([page === totalPages && page > 2 && page - 2 || null,\n // Show two pages back if we're on the final page and are able\n page > 1 && page - 1 || null,\n // Show one page back if we're able\n page,\n // Always show the current page\n page + 1 <= totalPages && page + 1 || null,\n // Show one page forward if we're able\n page === 1 && page + 2 <= totalPages && page + 2 || null // Show one page forward if we're on the first page and we're able\n ]);\n }, [page, totalPages]);\n (0, _react.useEffect)(function () {\n handleFetch();\n }, [sortMethod, sortAsc, page, perPage, onlyUpcoming]);\n var headerTranscriptTemplate = function headerTranscriptTemplate(title, cta, headers) {\n return /*#__PURE__*/_react.default.createElement(\"header\", {\n className: \"list-table__header\"\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"section-title\"\n }), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__actions\"\n }, /*#__PURE__*/_react.default.createElement(\"label\", {\n className: \"list-table__mobile-sort-container\"\n }, /*#__PURE__*/_react.default.createElement(\"span\", null, \"Sort By:\"), /*#__PURE__*/_react.default.createElement(\"select\", {\n className: \"list-table__mobile-sort\",\n onClick: function onClick(e) {\n return setSortMethod(e.target.value);\n }\n }, headers.map(function (header, idx) {\n return (header.sortBy !== \"\" || header.sortBy !== null) && /*#__PURE__*/_react.default.createElement(\"option\", _extends({\n key: idx,\n value: header.sortBy\n }, header.sortBy === sortMethod && _objectSpread({}, {\n selected: \"true\"\n })), header.name);\n }))), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__export\"\n }, /*#__PURE__*/_react.default.createElement(\"a\", {\n href: cta.url,\n className: \"list-table__export btn btn--primary btn--ghost btn--ghost--bright\"\n }, cta.text))));\n };\n var headerDefaultTemplate = function headerDefaultTemplate(title, cta, headers) {\n return /*#__PURE__*/_react.default.createElement(\"header\", {\n className: \"list-table__header\"\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"section-title\"\n }, /*#__PURE__*/_react.default.createElement(\"h3\", {\n className: \"list-table__title piped-header\"\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"piped-header__pipe\"\n }), title)), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__actions\"\n }, /*#__PURE__*/_react.default.createElement(\"label\", {\n className: \"list-table__toggle\"\n }, /*#__PURE__*/_react.default.createElement(\"span\", null, \"Show only due for renewal\"), /*#__PURE__*/_react.default.createElement(\"input\", {\n type: \"checkbox\",\n checked: onlyUpcoming,\n onClick: function onClick() {\n setIsRefreshing(true);\n setOnlyUpcoming(!onlyUpcoming);\n }\n })), /*#__PURE__*/_react.default.createElement(\"a\", {\n href: cta.url,\n className: \"list-table__export btn btn--primary btn--ghost btn--ghost--bright\"\n }, cta.text)), /*#__PURE__*/_react.default.createElement(\"label\", {\n className: \"list-table__mobile-sort-container\"\n }, /*#__PURE__*/_react.default.createElement(\"span\", null, \"Sort By:\"), /*#__PURE__*/_react.default.createElement(\"select\", {\n className: \"list-table__mobile-sort\",\n onChange: function onChange(e) {\n return setSortMethod(e.target.value);\n }\n }, headers.map(function (header, idx) {\n return /*#__PURE__*/_react.default.createElement(\"option\", _extends({\n key: idx,\n value: header.sortBy\n }, header.sortBy === sortMethod && _objectSpread({}, {\n selected: \"true\"\n })), header.name);\n }))));\n };\n var tableDefaultTemplate = function tableDefaultTemplate(referral) {\n return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"td\", {\n className: \"list-table__item-name\"\n }, /*#__PURE__*/_react.default.createElement(\"a\", {\n href: referral.Url\n }, referral.Name)), /*#__PURE__*/_react.default.createElement(\"td\", null, \" \", referral.Company), /*#__PURE__*/_react.default.createElement(\"td\", null, referral.HBA), /*#__PURE__*/_react.default.createElement(\"td\", null, referral.MembershipType), /*#__PURE__*/_react.default.createElement(\"td\", null, (0, _moment.default)(referral.AnniversaryDate).format(\"MMM D, YYYY\")));\n };\n var tableTranscriptTemplate = function tableTranscriptTemplate(referral) {\n return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(\"td\", null, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__mobile-headers\"\n }, headers[0].name), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__data\"\n }, (0, _moment.default)(referral.ClassDate).format(\"MMM D, YYYY\"))), /*#__PURE__*/_react.default.createElement(\"td\", null, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__mobile-headers\"\n }, headers[1].name), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__data\"\n }, referral.Course)), /*#__PURE__*/_react.default.createElement(\"td\", null, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__mobile-headers\"\n }, headers[2].name), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__data\"\n }, referral.Track)), /*#__PURE__*/_react.default.createElement(\"td\", null, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__mobile-headers\"\n }, headers[3].name), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__data\"\n }, referral.Category)), /*#__PURE__*/_react.default.createElement(\"td\", null, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__mobile-headers\"\n }, headers[4].name), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__data\"\n }, referral.Provider)), /*#__PURE__*/_react.default.createElement(\"td\", null, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__mobile-headers\"\n }, headers[5].name), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__data\"\n }, referral.Location)), /*#__PURE__*/_react.default.createElement(\"td\", null, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__mobile-headers\"\n }, headers[6].name), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__data list-table__hour\"\n }, referral.EducationHours)));\n };\n var pagenationTemplate = function pagenationTemplate() {\n return totalPages > 1 && /*#__PURE__*/_react.default.createElement(\"div\", {\n className: (0, _classnames.default)(\"pagination\", {\n \"pagination--is-paging\": isPaging\n })\n }, /*#__PURE__*/_react.default.createElement(\"button\", {\n className: (0, _classnames.default)(\"pagination__page-button\", {\n \"pagination__page-button--disabled\": page < 2\n }),\n onClick: function onClick() {\n return handlePageClick(1);\n },\n \"aria-label\": \"Go to first page\"\n }, /*#__PURE__*/_react.default.createElement(_ChevronRight.default, {\n rotate: \"180\"\n }), /*#__PURE__*/_react.default.createElement(_ChevronRight.default, {\n rotate: \"180\"\n })), /*#__PURE__*/_react.default.createElement(\"button\", _extends({\n className: (0, _classnames.default)(\"pagination__page-button\", {\n \"pagination__page-button--disabled\": page < 2\n }),\n type: \"button\",\n \"aria-label\": \"Go to previous page\"\n }, page > 1 && _objectSpread({}, {\n onClick: function onClick() {\n return handlePageClick(page - 1);\n }\n })), /*#__PURE__*/_react.default.createElement(_Chevron.default, {\n rotate: \"90\"\n })), page > 2 && /*#__PURE__*/_react.default.createElement(\"div\", null, \"\\u2026\"), paginationItems.map(function (item, idx) {\n return item && /*#__PURE__*/_react.default.createElement(\"button\", {\n key: idx,\n className: (0, _classnames.default)(\"pagination__page-button\", {\n \"pagination__page-button--current\": page === item\n }),\n type: \"button\",\n onClick: function onClick() {\n return handlePageClick(item);\n },\n \"aria-label\": \"Go to page \".concat(item)\n }, item);\n }), page <= totalPages - 2 && /*#__PURE__*/_react.default.createElement(\"div\", null, \"\\u2026\"), /*#__PURE__*/_react.default.createElement(\"button\", _extends({\n className: (0, _classnames.default)(\"pagination__page-button\", {\n \"pagination__page-button--disabled\": page >= totalPages\n }),\n type: \"button\",\n \"aria-label\": \"Go to next page\"\n }, page < totalPages && _objectSpread({}, {\n onClick: function onClick() {\n return handlePageClick(page + 1);\n }\n })), /*#__PURE__*/_react.default.createElement(_Chevron.default, {\n rotate: \"-90\"\n })), /*#__PURE__*/_react.default.createElement(\"button\", {\n className: (0, _classnames.default)(\"pagination__page-button\", {\n \"pagination__page-button--disabled\": page >= totalPages\n }),\n onClick: function onClick() {\n return handlePageClick(totalPages);\n },\n \"aria-label\": \"Go to last page\"\n }, /*#__PURE__*/_react.default.createElement(_ChevronRight.default, null), /*#__PURE__*/_react.default.createElement(_ChevronRight.default, null)));\n };\n return /*#__PURE__*/_react.default.createElement(\"div\", {\n className: cn\n }, (isRefreshing || isSorting || isPaging) && /*#__PURE__*/_react.default.createElement(_LoadingSpinner.default, null), type === \"transcript\" ? headerTranscriptTemplate(title, cta, headers) : headerDefaultTemplate(title, cta, headers), description && /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__description\"\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n dangerouslySetInnerHTML: {\n __html: description\n }\n })), type === \"transcript\" && referrals.length !== 0 && /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__total-hours-container\"\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__total-hours-title\"\n }, /*#__PURE__*/_react.default.createElement(\"strong\", null, computedTotalHoursText)), /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__total-hours\"\n }, totalHours)), referrals.length > 0 && /*#__PURE__*/_react.default.createElement(\"table\", {\n className: \"list-table__table\"\n }, /*#__PURE__*/_react.default.createElement(\"thead\", {\n className: \"list-table__table-head\"\n }, /*#__PURE__*/_react.default.createElement(\"tr\", null, headers.map(function (header, idx) {\n return /*#__PURE__*/_react.default.createElement(\"th\", {\n key: idx,\n className: (0, _classnames.default)(\"list-table__col-header\", {\n \"list-table__col-header--active\": sortMethod === header.sortBy\n })\n }, /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__col-header-content\"\n }, /*#__PURE__*/_react.default.createElement(\"button\", {\n type: \"button\",\n onClick: function onClick() {\n handleHeaderClick(header.sortBy);\n },\n \"aria-label\": \"\".concat(header.name, \"; click to sort\")\n }, header.name), sortMethod === header.sortBy && /*#__PURE__*/_react.default.createElement(_Chevron.default, {\n classNames: \"list-table__col-header-icon\",\n rotate: sortAsc ? \"\" : \"180\"\n }) || /*#__PURE__*/_react.default.createElement(_DoubleChevron.default, {\n classNames: \"list-table__col-header-icon\"\n })));\n }))), /*#__PURE__*/_react.default.createElement(\"tbody\", null, referrals.map(function (referral, idx) {\n return /*#__PURE__*/_react.default.createElement(\"tr\", {\n key: idx,\n className: \"list-table__item\"\n }, type === \"transcript\" ? tableTranscriptTemplate(referral) : tableDefaultTemplate(referral));\n }))) || onlyUpcoming && /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__no-results\"\n }, /*#__PURE__*/_react.default.createElement(_Inbox.default, {\n classNames: \"list-table__no-results-icon\"\n }), noFilteredResultsText) || /*#__PURE__*/_react.default.createElement(\"div\", {\n className: \"list-table__no-results\"\n }, /*#__PURE__*/_react.default.createElement(_Inbox.default, {\n classNames: \"list-table__no-results-icon\"\n }), noResultsText), type !== \"transcript\" && pagenationTemplate());\n};\nListTable.propTypes = propTypes;\nvar _default = exports.default = ListTable;\n\n},{\"../../search/components/LoadingSpinner.jsx\":216,\"../icons/Chevron.jsx\":203,\"../icons/ChevronRight.jsx\":204,\"../icons/DoubleChevron.jsx\":205,\"../icons/Inbox.jsx\":206,\"classnames\":\"classnames\",\"core-js/modules/es.array.concat\":118,\"core-js/modules/es.array.map\":126,\"core-js/modules/es.function.name\":131,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.promise\":139,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"moment\":\"moment\",\"prop-types\":\"prop-types\",\"react\":\"react\"}],202:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = renderListTable;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\nvar _ListTable = _interopRequireDefault(require(\"./ListTable.jsx\"));\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction renderListTable(el) {\n var props = JSON.parse(el.dataset.props) || {};\n _reactDom.default.render(/*#__PURE__*/_react.default.createElement(_ListTable.default, props), el);\n}\n\n},{\"./ListTable.jsx\":201,\"react\":\"react\",\"react-dom\":\"react-dom\"}],203:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.to-primitive\");\nrequire(\"core-js/modules/es.date.to-primitive\");\nrequire(\"core-js/modules/es.number.constructor\");\nrequire(\"core-js/modules/es.object.to-string\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _propTypes = require(\"prop-types\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar propTypes = {\n classNames: _propTypes.string,\n rotate: _propTypes.number\n};\nvar IconChevron = function IconChevron(props) {\n var classNames = props.classNames,\n rotate = props.rotate;\n return /*#__PURE__*/_react.default.createElement(\"svg\", _extends({\n role: \"img\",\n className: classNames,\n fill: \"none\",\n height: \"8\",\n viewBox: \"0 0 13 8\",\n width: \"13\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, rotate && _objectSpread({}, {\n transform: \"rotate(\".concat(rotate, \")\")\n })), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"m2.14135.078125 4.594 4.593995 4.59405-4.593995 1.406 1.406005-6.00005 6-5.999998-6z\",\n fill: \"currentColor\"\n }));\n};\nIconChevron.propTypes = propTypes;\nvar _default = exports.default = IconChevron;\n\n},{\"core-js/modules/es.date.to-primitive\":130,\"core-js/modules/es.number.constructor\":132,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.to-primitive\":151,\"prop-types\":\"prop-types\",\"react\":\"react\"}],204:[function(require,module,exports){\n\"use strict\";\n\nrequire(\"core-js/modules/es.symbol\");\nrequire(\"core-js/modules/es.symbol.description\");\nrequire(\"core-js/modules/es.symbol.to-primitive\");\nrequire(\"core-js/modules/es.date.to-primitive\");\nrequire(\"core-js/modules/es.number.constructor\");\nrequire(\"core-js/modules/es.object.to-string\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _propTypes = require(\"prop-types\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nvar propTypes = {\n classNames: _propTypes.string,\n rotate: _propTypes.number\n};\nvar IconChevronRight = function IconChevronRight(props) {\n var classNames = props.classNames,\n rotate = props.rotate;\n return /*#__PURE__*/_react.default.createElement(\"svg\", _extends({\n role: \"img\",\n className: classNames,\n fill: \"none\",\n height: \"12\",\n viewBox: \"0 0 8 12\",\n width: \"8\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, rotate && _objectSpread({}, {\n transform: \"rotate(\".concat(rotate, \")\")\n })), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"m.40625 10.594 4.594-4.594-4.594-4.594 1.406-1.406 6 6-6 6z\",\n fill: \"currentColor\"\n }));\n};\nIconChevronRight.propTypes = propTypes;\nvar _default = exports.default = IconChevronRight;\n\n},{\"core-js/modules/es.date.to-primitive\":130,\"core-js/modules/es.number.constructor\":132,\"core-js/modules/es.object.to-string\":138,\"core-js/modules/es.symbol\":150,\"core-js/modules/es.symbol.description\":148,\"core-js/modules/es.symbol.to-primitive\":151,\"prop-types\":\"prop-types\",\"react\":\"react\"}],205:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _propTypes = require(\"prop-types\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar propTypes = {\n classNames: _propTypes.string\n};\nvar IconDoubleChevron = function IconDoubleChevron(props) {\n var classNames = props.classNames;\n return /*#__PURE__*/_react.default.createElement(\"svg\", {\n role: \"img\",\n className: classNames,\n fill: \"none\",\n height: \"17\",\n viewBox: \"0 0 12 17\",\n width: \"12\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/_react.default.createElement(\"g\", {\n fill: \"currentColor\"\n }, /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"m1.406 9.57764 4.594 4.59396 4.594-4.59396 1.406 1.40596-6 6-6-6z\"\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"m10.594 7.42139-4.594-4.594-4.594 4.594-1.406-1.406 6-6.0000034 6 6.0000034z\"\n })));\n};\nIconDoubleChevron.propTypes = propTypes;\nvar _default = exports.default = IconDoubleChevron;\n\n},{\"prop-types\":\"prop-types\",\"react\":\"react\"}],206:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _propTypes = require(\"prop-types\");\nfunction _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }\nvar propTypes = {\n classNames: _propTypes.string\n};\nvar IconInbox = function IconInbox(props) {\n var classNames = props.classNames;\n return /*#__PURE__*/_react.default.createElement(\"svg\", {\n role: \"img\",\n className: classNames,\n fill: \"none\",\n height: \"64\",\n viewBox: \"0 0 96 64\",\n width: \"96\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/_react.default.createElement(\"g\", {\n fill: \"currentColor\"\n }, /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"m94 32c-.776 0-1.516-.452-1.836-1.212l-11.484-26.788h-65.36l-11.47996 26.788c-.43599 1.02-1.61999 1.492-2.62399 1.052-1.016005-.436-1.488005-1.612-1.052005-2.628l11.999955-28c.316-.736 1.032-1.212 1.836-1.212h68c.796 0 1.524.476 1.836 1.212l12 28c.432 1.012-.04 2.188-1.056 2.628-.248.108-.52.16-.78.16z\"\n }), /*#__PURE__*/_react.default.createElement(\"path\", {\n d: \"m94 64h-92c-1.104 0-2-.9-2-2v-32c0-1.104.896-2 2-2h24.08c.868 0 1.64.564 1.904 1.392l1.4 4.384c1.08 3.376 4.988 6.228 8.532 6.228h20.168c3.544 0 7.456-2.852 8.544-6.24l1.408-4.38c.26-.824 1.036-1.384 1.9-1.384h24.064c1.104 0 2 .896 2 2v32c0 1.1-.9 2-2 2zm-90-4h88v-28h-20.604l-.96 2.996c-1.624 5.052-7.052 9.004-12.352 9.004h-20.168c-5.304 0-10.724-3.956-12.34-9.008l-.956-2.992h-20.62z\"\n })));\n};\nIconInbox.propTypes = propTypes;\nvar _default = exports.default = IconInbox;\n\n},{\"prop-types\":\"prop-types\",\"react\":\"react\"}],207:[function(require,module,exports){\n/*\r\n _ _ _ _\r\n ___| (_) ___| | __ (_)___\r\n/ __| | |/ __| |/ / | / __|\r\n\\__ \\ | | (__| < _ | \\__ \\\r\n|___/_|_|\\___|_|\\_(_)/ |___/\r\n |__/\r\n\r\n Version: 1.6.0\r\n Author: Ken Wheeler\r\n Website: http://kenwheeler.github.io\r\n Docs: http://kenwheeler.github.io/slick\r\n Repo: http://github.com/kenwheeler/slick\r\n Issues: http://github.com/kenwheeler/slick/issues\r\n\r\n */\n/* global window, document, define, jQuery, setInterval, clearInterval */\n(function (factory) {\n 'use strict';\n\n if (typeof define === 'function' && define.amd) {\n define(['jquery'], factory);\n } else if (typeof exports !== 'undefined') {\n module.exports = factory(require('jquery'));\n } else {\n factory(jQuery);\n }\n})(function ($) {\n 'use strict';\n\n var Slick = window.Slick || {};\n Slick = function () {\n var instanceUid = 0;\n function Slick(element, settings) {\n var _ = this,\n dataSettings;\n _.defaults = {\n accessibility: true,\n adaptiveHeight: false,\n appendArrows: $(element),\n appendDots: $(element),\n arrows: true,\n asNavFor: null,\n prevArrow: '',\n nextArrow: '',\n autoplay: false,\n autoplaySpeed: 3000,\n centerMode: false,\n centerPadding: '50px',\n cssEase: 'ease',\n customPaging: function (slider, i) {\n return $('