mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
1 line
474 KiB
Plaintext
1 line
474 KiB
Plaintext
{"version":3,"file":"livewire.js","sources":["../js/util/debounce.js","../js/util/wire-directives.js","../js/util/walk.js","../js/util/dispatch.js","../js/util/getCsrfToken.js","../js/util/index.js","../node_modules/isobject/index.js","../node_modules/get-value/index.js","../js/action/index.js","../js/action/event.js","../js/MessageBus.js","../js/HookManager.js","../js/DirectiveManager.js","../js/Store.js","../js/dom/dom.js","../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/function-bind-native.js","../node_modules/core-js/internals/function-uncurry-this.js","../node_modules/core-js/internals/math-trunc.js","../node_modules/core-js/internals/to-integer-or-infinity.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/define-global-property.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/is-null-or-undefined.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/to-object.js","../node_modules/core-js/internals/has-own-property.js","../node_modules/core-js/internals/uid.js","../node_modules/core-js/internals/document-all.js","../node_modules/core-js/internals/is-callable.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/internals/symbol-constructor-detection.js","../node_modules/core-js/internals/use-symbol-as-uid.js","../node_modules/core-js/internals/well-known-symbol.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/classof-raw.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/to-string.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/internals/weak-map-basic-detection.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/v8-prototype-define-bug.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/function-call.js","../node_modules/core-js/internals/object-is-prototype-of.js","../node_modules/core-js/internals/is-symbol.js","../node_modules/core-js/internals/try-to-string.js","../node_modules/core-js/internals/a-callable.js","../node_modules/core-js/internals/get-method.js","../node_modules/core-js/internals/ordinary-to-primitive.js","../node_modules/core-js/internals/to-primitive.js","../node_modules/core-js/internals/to-property-key.js","../node_modules/core-js/internals/object-define-property.js","../node_modules/core-js/internals/create-property-descriptor.js","../node_modules/core-js/internals/create-non-enumerable-property.js","../node_modules/core-js/internals/shared-key.js","../node_modules/core-js/internals/hidden-keys.js","../node_modules/core-js/internals/internal-state.js","../node_modules/core-js/internals/object-property-is-enumerable.js","../node_modules/core-js/internals/indexed-object.js","../node_modules/core-js/internals/to-indexed-object.js","../node_modules/core-js/internals/object-get-own-property-descriptor.js","../node_modules/core-js/internals/function-name.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/make-built-in.js","../node_modules/core-js/internals/define-built-in.js","../node_modules/core-js/internals/to-absolute-index.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/length-of-array-like.js","../node_modules/core-js/internals/array-includes.js","../node_modules/core-js/internals/object-keys-internal.js","../node_modules/core-js/internals/enum-bug-keys.js","../node_modules/core-js/internals/object-get-own-property-names.js","../node_modules/core-js/internals/object-get-own-property-symbols.js","../node_modules/core-js/internals/own-keys.js","../node_modules/core-js/internals/copy-constructor-properties.js","../node_modules/core-js/internals/is-forced.js","../node_modules/core-js/internals/export.js","../node_modules/core-js/internals/object-keys.js","../node_modules/core-js/internals/object-define-properties.js","../node_modules/core-js/internals/html.js","../node_modules/core-js/internals/object-create.js","../node_modules/core-js/internals/correct-prototype-getter.js","../node_modules/core-js/internals/object-get-prototype-of.js","../node_modules/core-js/internals/iterators-core.js","../node_modules/core-js/internals/set-to-string-tag.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/iterator-create-constructor.js","../node_modules/core-js/internals/a-possible-prototype.js","../node_modules/core-js/internals/object-set-prototype-of.js","../node_modules/core-js/internals/iterator-define.js","../node_modules/core-js/internals/create-iter-result-object.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/internals/function-uncurry-this-clause.js","../node_modules/core-js/internals/function-bind-context.js","../node_modules/core-js/internals/iterator-close.js","../node_modules/core-js/internals/call-with-safe-iteration-closing.js","../node_modules/core-js/internals/is-array-iterator-method.js","../node_modules/core-js/internals/is-constructor.js","../node_modules/core-js/internals/create-property.js","../node_modules/core-js/internals/get-iterator-method.js","../node_modules/core-js/internals/get-iterator.js","../node_modules/core-js/internals/array-from.js","../node_modules/core-js/internals/check-correctness-of-iteration.js","../node_modules/core-js/modules/es.array.from.js","../node_modules/core-js/internals/path.js","../node_modules/core-js/es/array/from.js","../node_modules/core-js/internals/add-to-unscopables.js","../node_modules/core-js/modules/es.array.includes.js","../node_modules/core-js/internals/entry-unbind.js","../node_modules/core-js/es/array/includes.js","../node_modules/core-js/internals/is-array.js","../node_modules/core-js/internals/does-not-exceed-safe-integer.js","../node_modules/core-js/internals/flatten-into-array.js","../node_modules/core-js/internals/array-species-constructor.js","../node_modules/core-js/internals/array-species-create.js","../node_modules/core-js/modules/es.array.flat.js","../node_modules/core-js/modules/es.array.unscopables.flat.js","../node_modules/core-js/es/array/flat.js","../node_modules/core-js/internals/array-iteration.js","../node_modules/core-js/modules/es.array.find.js","../node_modules/core-js/es/array/find.js","../node_modules/core-js/internals/object-assign.js","../node_modules/core-js/modules/es.object.assign.js","../node_modules/core-js/es/object/assign.js","../node_modules/core-js/internals/object-to-array.js","../node_modules/core-js/modules/es.object.entries.js","../node_modules/core-js/es/object/entries.js","../node_modules/core-js/modules/es.object.values.js","../node_modules/core-js/es/object/values.js","../node_modules/core-js/internals/error-stack-clear.js","../node_modules/core-js/internals/install-error-cause.js","../node_modules/core-js/internals/iterate.js","../node_modules/core-js/internals/normalize-string-argument.js","../node_modules/core-js/internals/error-stack-installable.js","../node_modules/core-js/modules/es.aggregate-error.constructor.js","../node_modules/core-js/modules/es.array.iterator.js","../node_modules/core-js/internals/object-to-string.js","../node_modules/core-js/modules/es.object.to-string.js","../node_modules/core-js/internals/engine-is-node.js","../node_modules/core-js/internals/set-species.js","../node_modules/core-js/internals/an-instance.js","../node_modules/core-js/internals/a-constructor.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/function-apply.js","../node_modules/core-js/internals/array-slice.js","../node_modules/core-js/internals/validate-arguments-length.js","../node_modules/core-js/internals/engine-is-ios.js","../node_modules/core-js/internals/task.js","../node_modules/core-js/internals/engine-is-ios-pebble.js","../node_modules/core-js/internals/engine-is-webos-webkit.js","../node_modules/core-js/internals/microtask.js","../node_modules/core-js/internals/host-report-errors.js","../node_modules/core-js/internals/perform.js","../node_modules/core-js/internals/queue.js","../node_modules/core-js/internals/promise-native-constructor.js","../node_modules/core-js/internals/engine-is-deno.js","../node_modules/core-js/internals/engine-is-browser.js","../node_modules/core-js/internals/promise-constructor-detection.js","../node_modules/core-js/internals/new-promise-capability.js","../node_modules/core-js/modules/es.promise.constructor.js","../node_modules/core-js/internals/promise-statics-incorrect-iteration.js","../node_modules/core-js/modules/es.promise.all.js","../node_modules/core-js/modules/es.promise.catch.js","../node_modules/core-js/modules/es.promise.race.js","../node_modules/core-js/modules/es.promise.reject.js","../node_modules/core-js/internals/promise-resolve.js","../node_modules/core-js/modules/es.promise.resolve.js","../node_modules/core-js/modules/es.promise.all-settled.js","../node_modules/core-js/modules/es.promise.any.js","../node_modules/core-js/modules/es.promise.finally.js","../node_modules/core-js/es/promise/index.js","../node_modules/core-js/internals/dom-iterables.js","../node_modules/core-js/internals/dom-token-list-prototype.js","../node_modules/core-js/modules/web.dom-collections.iterator.js","../node_modules/core-js/modules/esnext.promise.try.js","../node_modules/core-js/internals/is-regexp.js","../node_modules/core-js/internals/not-a-regexp.js","../node_modules/core-js/internals/correct-is-regexp-logic.js","../node_modules/core-js/modules/es.string.starts-with.js","../node_modules/core-js/es/string/starts-with.js","../node_modules/whatwg-fetch/fetch.js","../js/dom/polyfills/modules/es.element.get-attribute-names.js","../js/dom/polyfills/modules/es.element.matches.js","../js/dom/polyfills/modules/es.element.closest.js","../js/connection/index.js","../js/action/method.js","../js/component/Polling.js","../js/Message.js","../js/PrefetchMessage.js","../js/dom/morphdom/morphAttrs.js","../js/dom/morphdom/specialElHandlers.js","../js/dom/morphdom/util.js","../js/dom/morphdom/morphdom.js","../js/dom/morphdom/index.js","../js/action/model.js","../js/action/deferred-model.js","../js/node_initializer.js","../js/component/PrefetchManager.js","../js/component/LoadingStates.js","../js/MessageBag.js","../js/component/UploadManager.js","../js/component/SupportAlpine.js","../js/component/index.js","../js/component/FileUploads.js","../js/component/LaravelEcho.js","../js/component/DirtyStates.js","../js/component/DisableForms.js","../js/component/FileDownloads.js","../js/component/OfflineStates.js","../js/component/SyncBrowserHistory.js","../js/component/SupportStacks.js","../js/index.js"],"sourcesContent":["export function debounce(func, wait, immediate) {\n var timeout\n return function () {\n var context = this,\n args = arguments\n var later = function () {\n timeout = null\n if (!immediate) func.apply(context, args)\n }\n var callNow = immediate && !timeout\n clearTimeout(timeout)\n timeout = setTimeout(later, wait)\n if (callNow) func.apply(context, args)\n }\n}\n","export function wireDirectives(el) {\n return new DirectiveManager(el)\n}\n\nclass DirectiveManager {\n constructor(el) {\n this.el = el\n this.directives = this.extractTypeModifiersAndValue()\n }\n\n all() {\n return this.directives\n }\n\n has(type) {\n return this.directives.map(directive => directive.type).includes(type)\n }\n\n missing(type) {\n return !this.has(type)\n }\n\n get(type) {\n return this.directives.find(directive => directive.type === type)\n }\n\n extractTypeModifiersAndValue() {\n return Array.from(this.el.getAttributeNames()\n // Filter only the livewire directives.\n .filter(name => name.match(new RegExp('wire:')))\n // Parse out the type, modifiers, and value from it.\n .map(name => {\n const [type, ...modifiers] = name.replace(new RegExp('wire:'), '').split('.')\n\n return new Directive(type, modifiers, name, this.el)\n }))\n }\n}\n\nclass Directive {\n constructor(type, modifiers, rawName, el) {\n this.type = type\n this.modifiers = modifiers\n this.rawName = rawName\n this.el = el\n this.eventContext\n }\n\n setEventContext(context) {\n this.eventContext = context\n }\n\n get value() {\n return this.el.getAttribute(this.rawName)\n }\n\n get method() {\n const { method } = this.parseOutMethodAndParams(this.value)\n\n return method\n }\n\n get params() {\n const { params } = this.parseOutMethodAndParams(this.value)\n\n return params\n }\n\n durationOr(defaultDuration) {\n let durationInMilliSeconds\n const durationInMilliSecondsString = this.modifiers.find(mod => mod.match(/([0-9]+)ms/))\n const durationInSecondsString = this.modifiers.find(mod => mod.match(/([0-9]+)s/))\n\n if (durationInMilliSecondsString) {\n durationInMilliSeconds = Number(durationInMilliSecondsString.replace('ms', ''))\n } else if (durationInSecondsString) {\n durationInMilliSeconds = Number(durationInSecondsString.replace('s', '')) * 1000\n }\n\n return durationInMilliSeconds || defaultDuration\n }\n\n parseOutMethodAndParams(rawMethod) {\n let method = rawMethod\n let params = []\n const methodAndParamString = method.match(/(.*?)\\((.*)\\)/s)\n\n if (methodAndParamString) {\n method = methodAndParamString[1]\n\n // Use a function that returns it's arguments to parse and eval all params\n // This \"$event\" is for use inside the livewire event handler.\n let func = new Function('$event', `return (function () {\n for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {\n p[k] = arguments[k];\n }\n return [].concat(p);\n })(${methodAndParamString[2]})`)\n\n params = func(this.eventContext)\n }\n\n return { method, params }\n }\n\n cardinalDirectionOr(fallback = 'right') {\n if (this.modifiers.includes('up')) return 'up'\n if (this.modifiers.includes('down')) return 'down'\n if (this.modifiers.includes('left')) return 'left'\n if (this.modifiers.includes('right')) return 'right'\n return fallback\n }\n}\n","\n// A little DOM-tree walker.\n// (TreeWalker won't do because I need to conditionaly ignore sub-trees using the callback)\nexport function walk(root, callback) {\n if (callback(root) === false) return\n\n let node = root.firstElementChild\n\n while (node) {\n walk(node, callback)\n node = node.nextElementSibling\n }\n}\n","export function dispatch(eventName) {\n const event = document.createEvent('Events')\n\n event.initEvent(eventName, true, true)\n\n document.dispatchEvent(event)\n\n return event\n}\n","export function getCsrfToken() {\n const tokenTag = document.head.querySelector('meta[name=\"csrf-token\"]')\n\n if (tokenTag) {\n return tokenTag.content\n }\n\n return window.livewire_token ?? undefined\n}\n","\nexport * from './debounce'\nexport * from './wire-directives'\nexport * from './walk'\nexport * from './dispatch'\nexport * from './getCsrfToken'\n\nexport function kebabCase(subject) {\n return subject.replace(/([a-z])([A-Z])/g, '$1-$2').replace(/[_\\s]/, '-').toLowerCase()\n}\n\nexport function tap(output, callback) {\n callback(output)\n\n return output\n}\n","/*!\n * isobject <https://github.com/jonschlinkert/isobject>\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isObject(val) {\n return val != null && typeof val === 'object' && Array.isArray(val) === false;\n};\n","/*!\n * get-value <https://github.com/jonschlinkert/get-value>\n *\n * Copyright (c) 2014-2018, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nconst isObject = require('isobject');\n\nmodule.exports = function(target, path, options) {\n if (!isObject(options)) {\n options = { default: options };\n }\n\n if (!isValidObject(target)) {\n return typeof options.default !== 'undefined' ? options.default : target;\n }\n\n if (typeof path === 'number') {\n path = String(path);\n }\n\n const isArray = Array.isArray(path);\n const isString = typeof path === 'string';\n const splitChar = options.separator || '.';\n const joinChar = options.joinChar || (typeof splitChar === 'string' ? splitChar : '.');\n\n if (!isString && !isArray) {\n return target;\n }\n\n if (isString && path in target) {\n return isValid(path, target, options) ? target[path] : options.default;\n }\n\n let segs = isArray ? path : split(path, splitChar, options);\n let len = segs.length;\n let idx = 0;\n\n do {\n let prop = segs[idx];\n if (typeof prop === 'number') {\n prop = String(prop);\n }\n\n while (prop && prop.slice(-1) === '\\\\') {\n prop = join([prop.slice(0, -1), segs[++idx] || ''], joinChar, options);\n }\n\n if (prop in target) {\n if (!isValid(prop, target, options)) {\n return options.default;\n }\n\n target = target[prop];\n } else {\n let hasProp = false;\n let n = idx + 1;\n\n while (n < len) {\n prop = join([prop, segs[n++]], joinChar, options);\n\n if ((hasProp = prop in target)) {\n if (!isValid(prop, target, options)) {\n return options.default;\n }\n\n target = target[prop];\n idx = n - 1;\n break;\n }\n }\n\n if (!hasProp) {\n return options.default;\n }\n }\n } while (++idx < len && isValidObject(target));\n\n if (idx === len) {\n return target;\n }\n\n return options.default;\n};\n\nfunction join(segs, joinChar, options) {\n if (typeof options.join === 'function') {\n return options.join(segs);\n }\n return segs[0] + joinChar + segs[1];\n}\n\nfunction split(path, splitChar, options) {\n if (typeof options.split === 'function') {\n return options.split(path);\n }\n return path.split(splitChar);\n}\n\nfunction isValid(key, target, options) {\n if (typeof options.isValid === 'function') {\n return options.isValid(key, target);\n }\n return true;\n}\n\nfunction isValidObject(val) {\n return isObject(val) || Array.isArray(val) || typeof val === 'function';\n}\n","export default class {\n constructor(el, skipWatcher = false) {\n this.el = el\n this.skipWatcher = skipWatcher\n this.resolveCallback = () => { }\n this.rejectCallback = () => { }\n this.signature = (Math.random() + 1).toString(36).substring(8)\n }\n\n toId() {\n return btoa(encodeURIComponent(this.el.outerHTML))\n }\n\n onResolve(callback) {\n this.resolveCallback = callback\n }\n\n onReject(callback) {\n this.rejectCallback = callback\n }\n\n resolve(thing) {\n this.resolveCallback(thing)\n }\n\n reject(thing) {\n this.rejectCallback(thing)\n }\n}\n","import Action from '.'\n\nexport default class extends Action {\n constructor(event, params, el) {\n super(el)\n\n this.type = 'fireEvent'\n this.payload = {\n id: this.signature,\n event,\n params,\n }\n }\n\n // Overriding toId() because some EventActions don't have an \"el\"\n toId() {\n return btoa(encodeURIComponent(this.type, this.payload.event, JSON.stringify(this.payload.params)))\n }\n}\n","\nexport default class MessageBus {\n constructor() {\n this.listeners = {}\n }\n\n register(name, callback) {\n if (! this.listeners[name]) {\n this.listeners[name] = []\n }\n\n this.listeners[name].push(callback)\n }\n\n call(name, ...params) {\n (this.listeners[name] || []).forEach(callback => {\n callback(...params)\n })\n }\n\n has(name) {\n return Object.keys(this.listeners).includes(name)\n }\n}\n","import MessageBus from './MessageBus'\n\nexport default {\n availableHooks: [\n /**\n * Public Hooks\n */\n 'component.initialized',\n 'element.initialized',\n 'element.updating',\n 'element.updated',\n 'element.removed',\n 'message.sent',\n 'message.failed',\n 'message.received',\n 'message.processed',\n\n /**\n * Private Hooks\n */\n 'interceptWireModelSetValue',\n 'interceptWireModelAttachListener',\n 'beforeReplaceState',\n 'beforePushState',\n ],\n\n bus: new MessageBus(),\n\n register(name, callback) {\n if (! this.availableHooks.includes(name)) {\n throw `Livewire: Referencing unknown hook: [${name}]`\n }\n\n this.bus.register(name, callback)\n },\n\n call(name, ...params) {\n this.bus.call(name, ...params)\n },\n}\n","import MessageBus from \"./MessageBus\"\n\nexport default {\n directives: new MessageBus,\n\n register(name, callback) {\n if (this.has(name)) {\n throw `Livewire: Directive already registered: [${name}]`\n }\n\n this.directives.register(name, callback)\n },\n\n call(name, el, directive, component) {\n this.directives.call(name, el, directive, component)\n },\n\n has(name) {\n return this.directives.has(name)\n },\n}\n","import EventAction from '@/action/event'\nimport HookManager from '@/HookManager'\nimport MessageBus from './MessageBus'\nimport DirectiveManager from './DirectiveManager'\n\nconst store = {\n componentsById: {},\n listeners: new MessageBus(),\n initialRenderIsFinished: false,\n livewireIsInBackground: false,\n livewireIsOffline: false,\n sessionHasExpired: false,\n sessionHasExpiredCallback: undefined,\n directives: DirectiveManager,\n hooks: HookManager,\n onErrorCallback: () => { },\n\n components() {\n return Object.keys(this.componentsById).map(key => {\n return this.componentsById[key]\n })\n },\n\n addComponent(component) {\n return (this.componentsById[component.id] = component)\n },\n\n findComponent(id) {\n return this.componentsById[id]\n },\n\n getComponentsByName(name) {\n return this.components().filter(component => {\n return component.name === name\n })\n },\n\n hasComponent(id) {\n return !!this.componentsById[id]\n },\n\n tearDownComponents() {\n this.components().forEach(component => {\n this.removeComponent(component)\n })\n },\n\n on(event, callback) {\n this.listeners.register(event, callback)\n },\n\n emit(event, ...params) {\n this.listeners.call(event, ...params)\n\n this.componentsListeningForEvent(event).forEach(component =>\n component.addAction(new EventAction(event, params))\n )\n },\n\n emitUp(el, event, ...params) {\n this.componentsListeningForEventThatAreTreeAncestors(\n el,\n event\n ).forEach(component =>\n component.addAction(new EventAction(event, params))\n )\n },\n\n emitSelf(componentId, event, ...params) {\n let component = this.findComponent(componentId)\n\n if (component.listeners.includes(event)) {\n component.addAction(new EventAction(event, params))\n }\n },\n\n emitTo(componentName, event, ...params) {\n let components = this.getComponentsByName(componentName)\n\n components.forEach(component => {\n if (component.listeners.includes(event)) {\n component.addAction(new EventAction(event, params))\n }\n })\n },\n\n componentsListeningForEventThatAreTreeAncestors(el, event) {\n var parentIds = []\n\n var parent = el.parentElement.closest('[wire\\\\:id]')\n\n while (parent) {\n parentIds.push(parent.getAttribute('wire:id'))\n\n parent = parent.parentElement.closest('[wire\\\\:id]')\n }\n\n return this.components().filter(component => {\n return (\n component.listeners.includes(event) &&\n parentIds.includes(component.id)\n )\n })\n },\n\n componentsListeningForEvent(event) {\n return this.components().filter(component => {\n return component.listeners.includes(event)\n })\n },\n\n registerDirective(name, callback) {\n this.directives.register(name, callback)\n },\n\n registerHook(name, callback) {\n this.hooks.register(name, callback)\n },\n\n callHook(name, ...params) {\n this.hooks.call(name, ...params)\n },\n\n changeComponentId(component, newId) {\n let oldId = component.id\n\n component.id = newId\n component.fingerprint.id = newId\n\n this.componentsById[newId] = component\n\n delete this.componentsById[oldId]\n\n // Now go through any parents of this component and change\n // the component's child id references.\n this.components().forEach(component => {\n let children = component.serverMemo.children || {}\n\n Object.entries(children).forEach(([key, { id, tagName }]) => {\n if (id === oldId) {\n children[key].id = newId\n }\n })\n })\n },\n\n removeComponent(component) {\n // Remove event listeners attached to the DOM.\n component.tearDown()\n // Remove the component from the store.\n delete this.componentsById[component.id]\n },\n\n onError(callback) {\n this.onErrorCallback = callback\n },\n\n getClosestParentId(childId, subsetOfParentIds) {\n let distancesByParentId = {}\n\n subsetOfParentIds.forEach(parentId => {\n let distance = this.getDistanceToChild(parentId, childId)\n\n if (distance) distancesByParentId[parentId] = distance\n })\n\n let smallestDistance = Math.min(...Object.values(distancesByParentId))\n\n let closestParentId\n\n Object.entries(distancesByParentId).forEach(([parentId, distance]) => {\n if (distance === smallestDistance) closestParentId = parentId\n })\n\n return closestParentId\n },\n\n getDistanceToChild(parentId, childId, distanceMemo = 1) {\n let parentComponent = this.findComponent(parentId)\n\n if (! parentComponent) return\n\n let childIds = parentComponent.childIds\n\n if (childIds.includes(childId)) return distanceMemo\n\n for (let i = 0; i < childIds.length; i++) {\n let distance = this.getDistanceToChild(childIds[i], childId, distanceMemo + 1)\n\n if (distance) return distance\n }\n }\n}\n\nexport default store\n","import { wireDirectives } from '@/util'\nimport get from 'get-value'\nimport store from '@/Store'\n\n/**\n * This is intended to isolate all native DOM operations. The operations that happen\n * one specific element will be instance methods, the operations you would normally\n * perform on the \"document\" (like \"document.querySelector\") will be static methods.\n */\nexport default {\n rootComponentElements() {\n return Array.from(document.querySelectorAll(`[wire\\\\:id]`))\n },\n\n rootComponentElementsWithNoParents(node = null) {\n if (node === null) {\n node = document\n }\n\n // In CSS, it's simple to select all elements that DO have a certain ancestor.\n // However, it's not simple (kinda impossible) to select elements that DONT have\n // a certain ancestor. Therefore, we will flip the logic: select all roots that DO have\n // have a root ancestor, then select all roots that DONT, then diff the two.\n\n // Convert NodeLists to Arrays so we can use \".includes()\". Ew.\n const allEls = Array.from(node.querySelectorAll(`[wire\\\\:initial-data]`))\n const onlyChildEls = Array.from(node.querySelectorAll(`[wire\\\\:initial-data] [wire\\\\:initial-data]`))\n\n return allEls.filter(el => !onlyChildEls.includes(el))\n },\n\n allModelElementsInside(root) {\n return Array.from(root.querySelectorAll(`[wire\\\\:model]`))\n },\n\n getByAttributeAndValue(attribute, value) {\n return document.querySelector(`[wire\\\\:${attribute}=\"${value}\"]`)\n },\n\n nextFrame(fn) {\n requestAnimationFrame(() => {\n requestAnimationFrame(fn.bind(this))\n })\n },\n\n closestRoot(el) {\n return this.closestByAttribute(el, 'id')\n },\n\n closestByAttribute(el, attribute) {\n const closestEl = el.closest(`[wire\\\\:${attribute}]`)\n\n if (! closestEl) {\n throw `\nLivewire Error:\\n\nCannot find parent element in DOM tree containing attribute: [wire:${attribute}].\\n\nUsually this is caused by Livewire's DOM-differ not being able to properly track changes.\\n\nReference the following guide for common causes: https://laravel-livewire.com/docs/troubleshooting \\n\nReferenced element:\\n\n${el.outerHTML}\n`\n }\n\n return closestEl\n },\n\n isComponentRootEl(el) {\n return this.hasAttribute(el, 'id')\n },\n\n hasAttribute(el, attribute) {\n return el.hasAttribute(`wire:${attribute}`)\n },\n\n getAttribute(el, attribute) {\n return el.getAttribute(`wire:${attribute}`)\n },\n\n removeAttribute(el, attribute) {\n return el.removeAttribute(`wire:${attribute}`)\n },\n\n setAttribute(el, attribute, value) {\n return el.setAttribute(`wire:${attribute}`, value)\n },\n\n hasFocus(el) {\n return el === document.activeElement\n },\n\n isInput(el) {\n return ['INPUT', 'TEXTAREA', 'SELECT'].includes(\n el.tagName.toUpperCase()\n )\n },\n\n isTextInput(el) {\n return (\n ['INPUT', 'TEXTAREA'].includes(el.tagName.toUpperCase()) &&\n !['checkbox', 'radio'].includes(el.type)\n )\n },\n\n valueFromInput(el, component) {\n if (el.type === 'checkbox') {\n let modelName = wireDirectives(el).get('model').value\n // If there is an update from wire:model.defer in the chamber,\n // we need to pretend that is the actual data from the server.\n let modelValue = component.deferredActions[modelName]\n ? component.deferredActions[modelName].payload.value\n : get(component.data, modelName)\n\n if (Array.isArray(modelValue)) {\n return this.mergeCheckboxValueIntoArray(el, modelValue)\n }\n\n if (el.checked) {\n return el.getAttribute('value') || true\n } else {\n return false\n }\n } else if (el.tagName === 'SELECT' && el.multiple) {\n return this.getSelectValues(el)\n }\n\n return el.value\n },\n\n mergeCheckboxValueIntoArray(el, arrayValue) {\n if (el.checked) {\n return arrayValue.includes(el.value)\n ? arrayValue\n : arrayValue.concat(el.value)\n }\n\n return arrayValue.filter(item => item != el.value)\n },\n\n setInputValueFromModel(el, component) {\n const modelString = wireDirectives(el).get('model').value\n const modelValue = get(component.data, modelString)\n\n // Don't manually set file input's values.\n if (\n el.tagName.toLowerCase() === 'input' &&\n el.type === 'file'\n )\n return\n\n this.setInputValue(el, modelValue)\n },\n\n setInputValue(el, value) {\n store.callHook('interceptWireModelSetValue', value, el)\n\n if (el.type === 'radio') {\n el.checked = el.value == value\n } else if (el.type === 'checkbox') {\n if (Array.isArray(value)) {\n // I'm purposely not using Array.includes here because it's\n // strict, and because of Numeric/String mis-casting, I\n // want the \"includes\" to be \"fuzzy\".\n let valueFound = false\n value.forEach(val => {\n if (val == el.value) {\n valueFound = true\n }\n })\n\n el.checked = valueFound\n } else {\n el.checked = !!value\n }\n } else if (el.tagName === 'SELECT') {\n this.updateSelect(el, value)\n } else {\n value = value === undefined ? '' : value\n\n el.value = value\n }\n },\n\n getSelectValues(el) {\n return Array.from(el.options)\n .filter(option => option.selected)\n .map(option => {\n return option.value || option.text\n })\n },\n\n updateSelect(el, value) {\n const arrayWrappedValue = [].concat(value).map(value => {\n return value + ''\n })\n\n Array.from(el.options).forEach(option => {\n option.selected = arrayWrappedValue.includes(option.value)\n })\n }\n}\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.27.1',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/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","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","module.exports = {};\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\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++], props[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = 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');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\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 activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\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 : definePropertiesModule.f(result, Properties);\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","module.exports = {};\n","'use strict';\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');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);\n setter(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(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-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 defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\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';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\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: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { 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]\n || IterablePrototype['@@iterator']\n || 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 (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(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.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\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 defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/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 createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject(point, false);\n});\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","var anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\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 } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\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","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar isConstructor = require('../internals/is-constructor');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $Array = Array;\n\n// `Array.from` method implementation\n// https://tc39.es/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var IS_CONSTRUCTOR = isConstructor(this);\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined);\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = getIterator(O, iteratorMethod);\n next = iterator.next;\n result = IS_CONSTRUCTOR ? new this() : [];\n for (;!(step = call(next, 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 = lengthOfArrayLike(O);\n result = IS_CONSTRUCTOR ? new this(length) : $Array(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","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\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 { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var $ = require('../internals/export');\nvar from = require('../internals/array-from');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","require('../../modules/es.string.iterator');\nrequire('../../modules/es.array.from');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Array.from;\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar fails = require('../internals/fails');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// FF99+ bug\nvar BROKEN_ON_SPARSE = fails(function () {\n return !Array(1).includes();\n});\n\n// `Array.prototype.includes` method\n// https://tc39.es/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","var global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (CONSTRUCTOR, METHOD) {\n return uncurryThis(global[CONSTRUCTOR].prototype[METHOD]);\n};\n","require('../../modules/es.array.includes');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('Array', 'includes');\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","'use strict';\nvar isArray = require('../internals/is-array');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar bind = require('../internals/function-bind-context');\n\n// `FlattenIntoArray` abstract operation\n// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray\nvar flattenIntoArray = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {\n var targetIndex = start;\n var sourceIndex = 0;\n var mapFn = mapper ? bind(mapper, thisArg) : false;\n var element, elementLen;\n\n while (sourceIndex < sourceLen) {\n if (sourceIndex in source) {\n element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];\n\n if (depth > 0 && isArray(element)) {\n elementLen = lengthOfArrayLike(element);\n targetIndex = flattenIntoArray(target, original, element, elementLen, targetIndex, depth - 1) - 1;\n } else {\n doesNotExceedSafeInteger(targetIndex + 1);\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar flattenIntoArray = require('../internals/flatten-into-array');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flat` method\n// https://tc39.es/ecma262/#sec-array.prototype.flat\n$({ target: 'Array', proto: true }, {\n flat: function flat(/* depthArg = 1 */) {\n var depthArg = arguments.length ? arguments[0] : undefined;\n var O = toObject(this);\n var sourceLen = lengthOfArrayLike(O);\n var A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity(depthArg));\n return A;\n }\n});\n","// this method was added to unscopables after implementation\n// in popular engines, so it's moved to a separate module\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('flat');\n","require('../../modules/es.array.flat');\nrequire('../../modules/es.array.unscopables.flat');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('Array', 'flat');\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` 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 IS_FILTER_REJECT = TYPE == 7;\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);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? 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: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","require('../../modules/es.array.find');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('Array', 'find');\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\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');\n\n// eslint-disable-next-line es/no-object-assign -- safe\nvar $assign = Object.assign;\n// eslint-disable-next-line es/no-object-defineproperty -- required for testing\nvar defineProperty = Object.defineProperty;\nvar concat = uncurryThis([].concat);\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\nmodule.exports = !$assign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).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 es/no-symbol -- safe\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`\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 ? concat(objectKeys(S), 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 || call(propertyIsEnumerable, S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.es/ecma262/#sec-object.assign\n// eslint-disable-next-line es/no-object-assign -- required for testing\n$({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {\n assign: assign\n});\n","require('../../modules/es.object.assign');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.assign;\n","var DESCRIPTORS = require('../internals/descriptors');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\nvar propertyIsEnumerable = uncurryThis($propertyIsEnumerable);\nvar push = uncurryThis([].push);\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {\n push(result, TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.es/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n","require('../../modules/es.object.entries');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.entries;\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.es/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","require('../../modules/es.object.values');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.values;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar installErrorCause = require('../internals/install-error-cause');\nvar iterate = require('../internals/iterate');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Error = Error;\nvar push = [].push;\n\nvar $AggregateError = function AggregateError(errors, message /* , options */) {\n var options = arguments.length > 2 ? arguments[2] : undefined;\n var isInstance = isPrototypeOf(AggregateErrorPrototype, this);\n var that;\n if (setPrototypeOf) {\n that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);\n } else {\n that = isInstance ? this : create(AggregateErrorPrototype);\n createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));\n if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(that, 'stack', clearErrorStack(that.stack, 1));\n installErrorCause(that, options);\n var errorsArray = [];\n iterate(errors, push, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\n return that;\n};\n\nif (setPrototypeOf) setPrototypeOf($AggregateError, $Error);\nelse copyConstructorProperties($AggregateError, $Error, { name: true });\n\nvar AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, {\n constructor: createPropertyDescriptor(1, $AggregateError),\n message: createPropertyDescriptor(1, ''),\n name: createPropertyDescriptor(1, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$({ global: true, constructor: true, arity: 2 }, {\n AggregateError: $AggregateError\n});\n","'use strict';\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 defineProperty = require('../internals/object-define-property').f;\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.es/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 createIterResultObject(undefined, true);\n }\n if (kind == 'keys') return createIterResultObject(index, false);\n if (kind == 'values') return createIterResultObject(target[index], false);\n return createIterResultObject([index, target[index]], false);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nvar values = Iterators.Arguments = Iterators.Array;\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n// V8 ~ Chrome 45- bug\nif (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {\n defineProperty(values, 'name', { value: 'values' });\n} catch (error) { /* empty */ }\n","'use strict';\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.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.es/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });\n}\n","var classof = require('../internals/classof-raw');\nvar global = require('../internals/global');\n\nmodule.exports = classof(global.process) == 'process';\n","'use strict';\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');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n var defineProperty = definePropertyModule.f;\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineProperty(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\ntry {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n} catch (error) { /* empty */ }\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar listener = function (event) {\n run(event.data);\n};\n\nvar post = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, 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 (IS_NODE) {\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);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(post)\n ) {\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}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var userAgent = require('../internals/engine-user-agent');\nvar global = require('../internals/global');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefined;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/i.test(userAgent);\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\n\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();\n else last = undefined;\n throw error;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = bind(promise.then, promise);\n notify = function () {\n then(flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessage\n // - onreadystatechange\n // - setTimeout\n } else {\n // strange IE + webpack dev server bug - use .bind(global)\n macrotask = bind(macrotask, global);\n notify = function () {\n macrotask(flush);\n };\n }\n}\n\nmodule.exports = queueMicrotask || function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n};\n","var global = require('../internals/global');\n\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","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var Queue = function () {\n this.head = null;\n this.tail = null;\n};\n\nQueue.prototype = {\n add: function (item) {\n var entry = { item: item, next: null };\n if (this.head) this.tail.next = entry;\n else this.head = entry;\n this.tail = entry;\n },\n get: function () {\n var entry = this.head;\n if (entry) {\n this.head = entry.next;\n if (this.tail === entry) this.tail = null;\n return entry.item;\n }\n }\n};\n\nmodule.exports = Queue;\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\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 (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['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 || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\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 = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar IS_NODE = require('../internals/engine-is-node');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar anInstance = require('../internals/an-instance');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar perform = require('../internals/perform');\nvar Queue = require('../internals/queue');\nvar InternalStateModule = require('../internals/internal-state');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar PromiseConstructorDetection = require('../internals/promise-constructor-detection');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\n\nvar PROMISE = 'Promise';\nvar FORCED_PROMISE_CONSTRUCTOR = PromiseConstructorDetection.CONSTRUCTOR;\nvar NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;\nvar NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar setInternalState = InternalStateModule.set;\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar PromiseConstructor = NativePromiseConstructor;\nvar PromisePrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\n\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;\n\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && isCallable(then = it.then) ? then : false;\n};\n\nvar callReaction = function (reaction, state) {\n var value = state.value;\n var ok = state.state == FULFILLED;\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(state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n 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 call(then, 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\nvar notify = function (state, isReject) {\n if (state.notified) return;\n state.notified = true;\n microtask(function () {\n var reactions = state.reactions;\n var reaction;\n while (reaction = reactions.get()) {\n callReaction(reaction, state);\n }\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(state);\n });\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 = { promise: promise, reason: reason };\n if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\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};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (state) {\n call(task, global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (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(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n call(then, value,\n bind(internalResolve, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED_PROMISE_CONSTRUCTOR) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromisePrototype);\n aCallable(executor);\n call(Internal, this);\n var state = getInternalPromiseState(this);\n try {\n executor(bind(internalResolve, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n\n PromisePrototype = PromiseConstructor.prototype;\n\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: new Queue(),\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n\n // `Promise.prototype.then` method\n // https://tc39.es/ecma262/#sec-promise.prototype.then\n Internal.prototype = defineBuiltIn(PromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n state.parent = true;\n reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;\n reaction.fail = isCallable(onRejected) && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n if (state.state == PENDING) state.reactions.add(reaction);\n else microtask(function () {\n callReaction(reaction, state);\n });\n return reaction.promise;\n });\n\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalPromiseState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, state);\n this.reject = bind(internalReject, state);\n };\n\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && isCallable(NativePromiseConstructor) && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!NATIVE_PROMISE_SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n defineBuiltIn(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n call(nativeThen, that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromisePrototype);\n }\n }\n}\n\n$({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.all` method\n// https://tc39.es/ecma262/#sec-promise.all\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(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 remaining++;\n call($promiseResolve, 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});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// `Promise.prototype.catch` method\n// https://tc39.es/ecma262/#sec-promise.prototype.catch\n$({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR, real: true }, {\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n});\n\n// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['catch'];\n if (NativePromisePrototype['catch'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\n// `Promise.race` method\n// https://tc39.es/ecma262/#sec-promise.race\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aCallable(C.resolve);\n iterate(iterable, function (promise) {\n call($promiseResolve, C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\n// `Promise.reject` method\n// https://tc39.es/ecma262/#sec-promise.reject\n$({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {\n reject: function reject(r) {\n var capability = newPromiseCapabilityModule.f(this);\n call(capability.reject, undefined, r);\n return capability.promise;\n }\n});\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\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","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\nvar promiseResolve = require('../internals/promise-resolve');\n\nvar PromiseConstructorWrapper = getBuiltIn('Promise');\nvar CHECK_WRAPPER = IS_PURE && !FORCED_PROMISE_CONSTRUCTOR;\n\n// `Promise.resolve` method\n// https://tc39.es/ecma262/#sec-promise.resolve\n$({ target: 'Promise', stat: true, forced: IS_PURE || FORCED_PROMISE_CONSTRUCTOR }, {\n resolve: function resolve(x) {\n return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? NativePromiseConstructor : this, x);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\n\n// `Promise.allSettled` method\n// https://tc39.es/ecma262/#sec-promise.allsettled\n$({ target: 'Promise', stat: true }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aCallable(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 remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar getBuiltIn = require('../internals/get-built-in');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://tc39.es/ecma262/#sec-promise.any\n$({ target: 'Promise', stat: true }, {\n any: function any(iterable) {\n var C = this;\n var AggregateError = getBuiltIn('AggregateError');\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aCallable(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar defineBuiltIn = require('../internals/define-built-in');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromiseConstructor && fails(function () {\n // eslint-disable-next-line unicorn/no-thenable -- required for testing\n NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.es/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = isCallable(onFinally);\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\n// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && isCallable(NativePromiseConstructor)) {\n var method = getBuiltIn('Promise').prototype['finally'];\n if (NativePromisePrototype['finally'] !== method) {\n defineBuiltIn(NativePromisePrototype, 'finally', method, { unsafe: true });\n }\n}\n","require('../../modules/es.aggregate-error');\nrequire('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.promise');\nrequire('../../modules/es.promise.all-settled');\nrequire('../../modules/es.promise.any');\nrequire('../../modules/es.promise.finally');\nrequire('../../modules/es.string.iterator');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Promise;\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","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\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\nfor (var COLLECTION_NAME in DOMIterables) {\n handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\n\n// `Promise.try` method\n// https://github.com/tc39/proposal-promise-try\n$({ target: 'Promise', stat: true, forced: true }, {\n 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n var result = perform(callbackfn);\n (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);\n return promiseCapability.promise;\n }\n});\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw $TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (error1) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (error2) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this-clause');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es/no-string-prototype-startswith -- safe\nvar nativeStartsWith = uncurryThis(''.startsWith);\nvar stringSlice = uncurryThis(''.slice);\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.startsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.startswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n startsWith: function startsWith(searchString /* , position = 0 */) {\n var that = toString(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = toString(searchString);\n return nativeStartsWith\n ? nativeStartsWith(that, search, index)\n : stringSlice(that, index, index + search.length) === search;\n }\n});\n","require('../../modules/es.string.starts-with');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('String', 'startsWith');\n","var global =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n (typeof global !== 'undefined' && global)\n\nvar support = {\n searchParams: 'URLSearchParams' in global,\n iterable: 'Symbol' in global && 'iterator' in Symbol,\n blob:\n 'FileReader' in global &&\n 'Blob' in global &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in global,\n arrayBuffer: 'ArrayBuffer' in global\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n","// https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNames#Polyfill\nif (Element.prototype.getAttributeNames == undefined) {\n Element.prototype.getAttributeNames = function () {\n var attributes = this.attributes;\n var length = attributes.length;\n var result = new Array(length);\n for (var i = 0; i < length; i++) {\n result[i] = attributes[i].name;\n }\n return result;\n };\n}\n","// https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill\nif (!Element.prototype.matches) {\n Element.prototype.matches =\n Element.prototype.matchesSelector ||\n Element.prototype.mozMatchesSelector ||\n Element.prototype.msMatchesSelector ||\n Element.prototype.oMatchesSelector ||\n Element.prototype.webkitMatchesSelector ||\n function(s) {\n var matches = (this.document || this.ownerDocument).querySelectorAll(s),\n i = matches.length;\n while (--i >= 0 && matches.item(i) !== this) {}\n return i > -1;\n };\n}\n","// https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill\nif (!Element.prototype.matches) {\n Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;\n}\n\nif (!Element.prototype.closest) {\n Element.prototype.closest = function(s) {\n var el = this;\n\n do {\n if (el.matches(s)) return el;\n el = el.parentElement || el.parentNode;\n } while (el !== null && el.nodeType === 1);\n\n return null;\n };\n}\n","import store from '@/Store'\nimport componentStore from '../Store'\nimport { getCsrfToken } from '@/util'\n\nexport default class Connection {\n constructor() {\n this.headers = {}\n }\n\n onMessage(message, payload) {\n message.component.receiveMessage(message, payload)\n }\n\n onError(message, status, response) {\n message.component.messageSendFailed()\n\n return componentStore.onErrorCallback(status, response)\n }\n\n showExpiredMessage(response, message) {\n if (store.sessionHasExpiredCallback) {\n store.sessionHasExpiredCallback(response, message)\n } else {\n confirm(\n 'This page has expired.\\nWould you like to refresh the page?'\n ) && window.location.reload()\n }\n }\n\n sendMessage(message) {\n let payload = message.payload()\n let csrfToken = getCsrfToken()\n let socketId = this.getSocketId()\n let appUrl = window.livewire_app_url\n\n if (this.shouldUseLocalePrefix(payload)) {\n appUrl = `${appUrl}/${payload.fingerprint.locale}`\n }\n\n\n if (window.__testing_request_interceptor) {\n return window.__testing_request_interceptor(payload, this)\n }\n\n // Forward the query string for the ajax requests.\n fetch(\n `${appUrl}/livewire/message/${payload.fingerprint.name}`,\n {\n method: 'POST',\n body: JSON.stringify(payload),\n // This enables \"cookies\".\n credentials: 'same-origin',\n headers: {\n 'Content-Type': 'application/json',\n 'Accept': 'text/html, application/xhtml+xml',\n 'X-Livewire': true,\n\n // set Custom Headers\n ...(this.headers),\n\n // We'll set this explicitly to mitigate potential interference from ad-blockers/etc.\n 'Referer': window.location.href,\n ...(csrfToken && { 'X-CSRF-TOKEN': csrfToken }),\n ...(socketId && { 'X-Socket-ID': socketId })\n },\n }\n )\n .then(response => {\n if (response.ok) {\n response.text().then(response => {\n if (this.isOutputFromDump(response)) {\n this.onError(message)\n this.showHtmlModal(response)\n } else {\n this.onMessage(message, JSON.parse(response))\n }\n })\n } else {\n if (this.onError(message, response.status, response) === false) return\n\n if (response.status === 419) {\n if (store.sessionHasExpired) return\n\n store.sessionHasExpired = true\n\n this.showExpiredMessage(response, message)\n } else {\n response.text().then(response => {\n this.showHtmlModal(response)\n })\n }\n }\n })\n .catch(() => {\n this.onError(message)\n })\n }\n\n shouldUseLocalePrefix(payload) {\n let path = payload.fingerprint.path\n let locale = payload.fingerprint.locale\n\n if (path.split('/')[0] == locale) {\n return true\n }\n\n return false\n }\n\n isOutputFromDump(output) {\n return !!output.match(/<script>Sfdump\\(\".+\"\\)<\\/script>/)\n }\n\n getSocketId() {\n if (typeof Echo !== 'undefined') {\n return Echo.socketId()\n }\n }\n\n // This code and concept is all Jonathan Reinink - thanks main!\n showHtmlModal(html) {\n let page = document.createElement('html')\n page.innerHTML = html\n page.querySelectorAll('a').forEach(a =>\n a.setAttribute('target', '_top')\n )\n\n let modal = document.getElementById('livewire-error')\n\n if (typeof modal != 'undefined' && modal != null) {\n // Modal already exists.\n modal.innerHTML = ''\n } else {\n modal = document.createElement('div')\n modal.id = 'livewire-error'\n modal.style.position = 'fixed'\n modal.style.width = '100vw'\n modal.style.height = '100vh'\n modal.style.padding = '50px'\n modal.style.backgroundColor = 'rgba(0, 0, 0, .6)'\n modal.style.zIndex = 200000\n }\n\n let iframe = document.createElement('iframe')\n iframe.style.backgroundColor = '#17161A'\n iframe.style.borderRadius = '5px'\n iframe.style.width = '100%'\n iframe.style.height = '100%'\n modal.appendChild(iframe)\n\n document.body.prepend(modal)\n document.body.style.overflow = 'hidden'\n iframe.contentWindow.document.open()\n iframe.contentWindow.document.write(page.outerHTML)\n iframe.contentWindow.document.close()\n\n // Close on click.\n modal.addEventListener('click', () => this.hideHtmlModal(modal))\n\n // Close on escape key press.\n modal.setAttribute('tabindex', 0)\n modal.addEventListener('keydown', e => {\n if (e.key === 'Escape') this.hideHtmlModal(modal)\n })\n modal.focus()\n }\n\n hideHtmlModal(modal) {\n modal.outerHTML = ''\n document.body.style.overflow = 'visible'\n }\n}\n","import Action from '.'\n\nexport default class extends Action {\n constructor(method, params, el, skipWatcher = false) {\n super(el, skipWatcher)\n\n this.type = 'callMethod'\n this.method = method\n this.payload = {\n id: this.signature,\n method,\n params,\n }\n }\n}\n","import MethodAction from '@/action/method'\nimport { wireDirectives } from '@/util'\nimport store from '@/Store'\n\nexport default function () {\n store.registerHook('element.initialized', (el, component) => {\n let directives = wireDirectives(el)\n\n if (directives.missing('poll')) return\n\n let intervalId = fireActionOnInterval(el, component)\n\n component.addListenerForTeardown(() => {\n clearInterval(intervalId)\n })\n\n el.__livewire_polling_interval = intervalId\n })\n\n store.registerHook('element.updating', (from, to, component) => {\n if (from.__livewire_polling_interval !== undefined) return\n\n if (wireDirectives(from).missing('poll') && wireDirectives(to).has('poll')) {\n setTimeout(() => {\n let intervalId = fireActionOnInterval(from, component)\n\n component.addListenerForTeardown(() => {\n clearInterval(intervalId)\n })\n\n from.__livewire_polling_interval = intervalId\n }, 0)\n }\n })\n}\n\nfunction fireActionOnInterval(node, component) {\n let interval = wireDirectives(node).get('poll').durationOr(2000);\n\n return setInterval(() => {\n if (node.isConnected === false) return\n\n let directives = wireDirectives(node)\n\n // Don't poll when directive is removed from element.\n if (directives.missing('poll')) return\n\n const directive = directives.get('poll')\n const method = directive.method || '$refresh'\n\n // Don't poll when the tab is in the background.\n // (unless the \"wire:poll.keep-alive\" modifier is attached)\n if (store.livewireIsInBackground && ! directive.modifiers.includes('keep-alive')) {\n // This \"Math.random\" business effectivlly prevents 95% of requests\n // from executing. We still want \"some\" requests to get through.\n if (Math.random() < .95) return\n }\n\n // Only poll visible elements. Visible elements are elements that\n // are visible in the current viewport.\n if (directive.modifiers.includes('visible') && ! inViewport(directive.el)) {\n return\n }\n\n // Don't poll if livewire is offline as well.\n if (store.livewireIsOffline) return\n\n component.addAction(new MethodAction(method, directive.params, node))\n }, interval);\n}\n\nfunction inViewport(el) {\n var bounding = el.getBoundingClientRect();\n\n return (\n bounding.top < (window.innerHeight || document.documentElement.clientHeight) &&\n bounding.left < (window.innerWidth || document.documentElement.clientWidth) &&\n bounding.bottom > 0 &&\n bounding.right > 0\n );\n}\n","export default class {\n constructor(component, updateQueue) {\n this.component = component\n this.updateQueue = updateQueue\n }\n\n payload() {\n return {\n fingerprint: this.component.fingerprint,\n serverMemo: this.component.serverMemo,\n // This ensures only the type & payload properties only get sent over.\n updates: this.updateQueue.map(update => ({\n type: update.type,\n payload: update.payload,\n })),\n }\n }\n\n shouldSkipWatcherForDataKey(dataKey) {\n // If the data is dirty, run the watcher.\n if (this.response.effects.dirty.includes(dataKey)) return false\n\n let compareBeforeFirstDot = (subject, value) => {\n if (typeof subject !== 'string' || typeof value !== 'string') return false\n\n return subject.split('.')[0] === value.split('.')[0]\n }\n\n // Otherwise see if there was a defered update for a data key.\n // In that case, we want to skip running the Livewire watcher.\n return this.updateQueue\n .filter(update => compareBeforeFirstDot(update.name, dataKey))\n .some(update => update.skipWatcher)\n }\n\n storeResponse(payload) {\n return (this.response = payload)\n }\n\n resolve() {\n let returns = this.response.effects.returns || []\n\n this.updateQueue.forEach(update => {\n if (update.type !== 'callMethod') return\n\n update.resolve(\n returns[update.signature] !== undefined\n ? returns[update.signature]\n : (returns[update.method] !== undefined\n ? returns[update.method]\n : null)\n )\n })\n }\n\n reject() {\n this.updateQueue.forEach(update => {\n update.reject()\n })\n }\n}\n","import Message from '@/Message'\n\nexport default class extends Message {\n constructor(component, action) {\n super(component, [action])\n }\n\n get prefetchId() {\n return this.updateQueue[0].toId()\n }\n}\n","/**\n * I don't want to look at \"value\" attributes when diffing.\n * I commented out all the lines that compare \"value\"\n *\n */\n\nexport default function morphAttrs(fromNode, toNode) {\n // @alpinejs\n if (fromNode._x_isShown !== undefined && toNode._x_isShown !== undefined) return\n if (fromNode._x_isShown && ! toNode._x_isShown) return\n if (! fromNode._x_isShown && toNode._x_isShown) return\n\n var attrs = toNode.attributes;\n var i;\n var attr;\n var attrName;\n var attrNamespaceURI;\n var attrValue;\n var fromValue;\n\n // update attributes on original DOM element\n for (i = attrs.length - 1; i >= 0; --i) {\n attr = attrs[i];\n attrName = attr.name;\n attrNamespaceURI = attr.namespaceURI;\n attrValue = attr.value;\n\n if (attrNamespaceURI) {\n attrName = attr.localName || attrName;\n fromValue = fromNode.getAttributeNS(attrNamespaceURI, attrName);\n\n if (fromValue !== attrValue) {\n if (attr.prefix === 'xmlns'){\n attrName = attr.name; // It's not allowed to set an attribute with the XMLNS namespace without specifying the `xmlns` prefix\n }\n fromNode.setAttributeNS(attrNamespaceURI, attrName, attrValue);\n }\n } else {\n fromValue = fromNode.getAttribute(attrName);\n\n if (fromValue !== attrValue) {\n fromNode.setAttribute(attrName, attrValue);\n }\n }\n }\n\n // Remove any extra attributes found on the original DOM element that\n // weren't found on the target element.\n attrs = fromNode.attributes;\n\n for (i = attrs.length - 1; i >= 0; --i) {\n attr = attrs[i];\n if (attr.specified !== false) {\n attrName = attr.name;\n attrNamespaceURI = attr.namespaceURI;\n\n if (attrNamespaceURI) {\n attrName = attr.localName || attrName;\n\n if (!toNode.hasAttributeNS(attrNamespaceURI, attrName)) {\n fromNode.removeAttributeNS(attrNamespaceURI, attrName);\n }\n } else {\n if (!toNode.hasAttribute(attrName)) {\n fromNode.removeAttribute(attrName);\n }\n }\n }\n }\n}\n","function syncBooleanAttrProp(fromEl, toEl, name) {\n if (fromEl[name] !== toEl[name]) {\n fromEl[name] = toEl[name];\n if (fromEl[name]) {\n fromEl.setAttribute(name, '');\n } else {\n fromEl.removeAttribute(name);\n }\n }\n}\n\nexport default {\n OPTION: function(fromEl, toEl) {\n var parentNode = fromEl.parentNode;\n if (parentNode) {\n var parentName = parentNode.nodeName.toUpperCase();\n if (parentName === 'OPTGROUP') {\n parentNode = parentNode.parentNode;\n parentName = parentNode && parentNode.nodeName.toUpperCase();\n }\n if (parentName === 'SELECT' && !parentNode.hasAttribute('multiple')) {\n if (fromEl.hasAttribute('selected') && !toEl.selected) {\n // Workaround for MS Edge bug where the 'selected' attribute can only be\n // removed if set to a non-empty value:\n // https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12087679/\n fromEl.setAttribute('selected', 'selected');\n fromEl.removeAttribute('selected');\n }\n // We have to reset select element's selectedIndex to -1, otherwise setting\n // fromEl.selected using the syncBooleanAttrProp below has no effect.\n // The correct selectedIndex will be set in the SELECT special handler below.\n parentNode.selectedIndex = -1;\n }\n }\n syncBooleanAttrProp(fromEl, toEl, 'selected');\n },\n /**\n * The \"value\" attribute is special for the <input> element since it sets\n * the initial value. Changing the \"value\" attribute without changing the\n * \"value\" property will have no effect since it is only used to the set the\n * initial value. Similar for the \"checked\" attribute, and \"disabled\".\n */\n INPUT: function(fromEl, toEl) {\n syncBooleanAttrProp(fromEl, toEl, 'checked');\n syncBooleanAttrProp(fromEl, toEl, 'disabled');\n\n if (fromEl.value !== toEl.value) {\n fromEl.value = toEl.value;\n }\n\n if (!toEl.hasAttribute('value')) {\n fromEl.removeAttribute('value');\n }\n },\n\n TEXTAREA: function(fromEl, toEl) {\n var newValue = toEl.value;\n if (fromEl.value !== newValue) {\n fromEl.value = newValue;\n }\n\n var firstChild = fromEl.firstChild;\n if (firstChild) {\n // Needed for IE. Apparently IE sets the placeholder as the\n // node value and vise versa. This ignores an empty update.\n var oldValue = firstChild.nodeValue;\n\n if (oldValue == newValue || (!newValue && oldValue == fromEl.placeholder)) {\n return;\n }\n\n firstChild.nodeValue = newValue;\n }\n },\n SELECT: function(fromEl, toEl) {\n if (!toEl.hasAttribute('multiple')) {\n var selectedIndex = -1;\n var i = 0;\n // We have to loop through children of fromEl, not toEl since nodes can be moved\n // from toEl to fromEl directly when morphing.\n // At the time this special handler is invoked, all children have already been morphed\n // and appended to / removed from fromEl, so using fromEl here is safe and correct.\n var curChild = fromEl.firstChild;\n var optgroup;\n var nodeName;\n while(curChild) {\n nodeName = curChild.nodeName && curChild.nodeName.toUpperCase();\n if (nodeName === 'OPTGROUP') {\n optgroup = curChild;\n curChild = optgroup.firstChild;\n } else {\n if (nodeName === 'OPTION') {\n if (curChild.hasAttribute('selected')) {\n selectedIndex = i;\n break;\n }\n i++;\n }\n curChild = curChild.nextSibling;\n if (!curChild && optgroup) {\n curChild = optgroup.nextSibling;\n optgroup = null;\n }\n }\n }\n\n fromEl.selectedIndex = selectedIndex;\n }\n }\n};\n","var range; // Create a range object for efficently rendering strings to elements.\nvar NS_XHTML = 'http://www.w3.org/1999/xhtml';\n\nexport var doc = typeof document === 'undefined' ? undefined : document;\nvar HAS_TEMPLATE_SUPPORT = !!doc && 'content' in doc.createElement('template');\nvar HAS_RANGE_SUPPORT = !!doc && doc.createRange && 'createContextualFragment' in doc.createRange();\n\nfunction createFragmentFromTemplate(str) {\n var template = doc.createElement('template');\n template.innerHTML = str;\n return template.content.childNodes[0];\n}\n\nfunction createFragmentFromRange(str) {\n if (!range) {\n range = doc.createRange();\n range.selectNode(doc.body);\n }\n\n var fragment = range.createContextualFragment(str);\n return fragment.childNodes[0];\n}\n\nfunction createFragmentFromWrap(str) {\n var fragment = doc.createElement('body');\n fragment.innerHTML = str;\n return fragment.childNodes[0];\n}\n\n/**\n * This is about the same\n * var html = new DOMParser().parseFromString(str, 'text/html');\n * return html.body.firstChild;\n *\n * @method toElement\n * @param {String} str\n */\nexport function toElement(str) {\n str = str.trim();\n if (HAS_TEMPLATE_SUPPORT) {\n // avoid restrictions on content for things like `<tr><th>Hi</th></tr>` which\n // createContextualFragment doesn't support\n // <template> support not available in IE\n return createFragmentFromTemplate(str);\n } else if (HAS_RANGE_SUPPORT) {\n return createFragmentFromRange(str);\n }\n\n return createFragmentFromWrap(str);\n}\n\n/**\n * Returns true if two node's names are the same.\n *\n * NOTE: We don't bother checking `namespaceURI` because you will never find two HTML elements with the same\n * nodeName and different namespace URIs.\n *\n * @param {Element} a\n * @param {Element} b The target element\n * @return {boolean}\n */\nexport function compareNodeNames(fromEl, toEl) {\n var fromNodeName = fromEl.nodeName;\n var toNodeName = toEl.nodeName;\n\n if (fromNodeName === toNodeName) {\n return true;\n }\n\n if (toEl.actualize &&\n fromNodeName.charCodeAt(0) < 91 && /* from tag name is upper case */\n toNodeName.charCodeAt(0) > 90 /* target tag name is lower case */) {\n // If the target element is a virtual DOM node then we may need to normalize the tag name\n // before comparing. Normal HTML elements that are in the \"http://www.w3.org/1999/xhtml\"\n // are converted to upper case\n return fromNodeName === toNodeName.toUpperCase();\n } else {\n return false;\n }\n}\n\n/**\n * Create an element, optionally with a known namespace URI.\n *\n * @param {string} name the element name, e.g. 'div' or 'svg'\n * @param {string} [namespaceURI] the element's namespace URI, i.e. the value of\n * its `xmlns` attribute or its inferred namespace.\n *\n * @return {Element}\n */\nexport function createElementNS(name, namespaceURI) {\n return !namespaceURI || namespaceURI === NS_XHTML ?\n doc.createElement(name) :\n doc.createElementNS(namespaceURI, name);\n}\n\n/**\n * Copies the children of one DOM element to another DOM element\n */\nexport function moveChildren(fromEl, toEl) {\n var curChild = fromEl.firstChild;\n while (curChild) {\n var nextChild = curChild.nextSibling;\n toEl.appendChild(curChild);\n curChild = nextChild;\n }\n return toEl;\n}\n","// From Caleb: I had to change all the \"isSameNode\"s to \"isEqualNode\"s and now everything is working great!\n/**\n * I pulled in my own version of morphdom, so I could tweak it as needed.\n * Here are the tweaks I've made so far:\n *\n * 1) Changed all the \"isSameNode\"s to \"isEqualNode\"s so that morhing doesn't check by reference, only by equality.\n * 2) Automatically filter out any non-\"ElementNode\"s from the lifecycle hooks.\n * 3) Tagged other changes with \"@livewireModification\".\n */\n\n'use strict';\n\nimport specialElHandlers from './specialElHandlers';\nimport { compareNodeNames, createElementNS, doc, moveChildren, toElement } from './util';\n\nvar ELEMENT_NODE = 1;\nvar DOCUMENT_FRAGMENT_NODE = 11;\nvar TEXT_NODE = 3;\nvar COMMENT_NODE = 8;\n\nfunction noop() {}\n\nfunction defaultGetNodeKey(node) {\n return node.id;\n}\n\nfunction callHook(hook, ...params) {\n if (hook.name !== 'getNodeKey' && hook.name !== 'onBeforeElUpdated') {\n // console.log(hook.name, ...params)\n }\n\n // Don't call hook on non-\"DOMElement\" elements.\n if (typeof params[0].hasAttribute !== 'function') return\n\n return hook(...params)\n}\n\nexport default function morphdomFactory(morphAttrs) {\n\n return function morphdom(fromNode, toNode, options) {\n if (!options) {\n options = {};\n }\n\n if (typeof toNode === 'string') {\n if (fromNode.nodeName === '#document' || fromNode.nodeName === 'HTML') {\n var toNodeHtml = toNode;\n toNode = doc.createElement('html');\n toNode.innerHTML = toNodeHtml;\n } else {\n toNode = toElement(toNode);\n }\n }\n\n var getNodeKey = options.getNodeKey || defaultGetNodeKey;\n var onBeforeNodeAdded = options.onBeforeNodeAdded || noop;\n var onNodeAdded = options.onNodeAdded || noop;\n var onBeforeElUpdated = options.onBeforeElUpdated || noop;\n var onElUpdated = options.onElUpdated || noop;\n var onBeforeNodeDiscarded = options.onBeforeNodeDiscarded || noop;\n var onNodeDiscarded = options.onNodeDiscarded || noop;\n var onBeforeElChildrenUpdated = options.onBeforeElChildrenUpdated || noop;\n var childrenOnly = options.childrenOnly === true;\n\n // This object is used as a lookup to quickly find all keyed elements in the original DOM tree.\n var fromNodesLookup = Object.create(null);\n var keyedRemovalList = [];\n\n function addKeyedRemoval(key) {\n keyedRemovalList.push(key);\n }\n\n function walkDiscardedChildNodes(node, skipKeyedNodes) {\n if (node.nodeType === ELEMENT_NODE) {\n var curChild = node.firstChild;\n while (curChild) {\n\n var key = undefined;\n\n if (skipKeyedNodes && (key = callHook(getNodeKey, curChild))) {\n // If we are skipping keyed nodes then we add the key\n // to a list so that it can be handled at the very end.\n addKeyedRemoval(key);\n } else {\n // Only report the node as discarded if it is not keyed. We do this because\n // at the end we loop through all keyed elements that were unmatched\n // and then discard them in one final pass.\n callHook(onNodeDiscarded, curChild);\n if (curChild.firstChild) {\n walkDiscardedChildNodes(curChild, skipKeyedNodes);\n }\n }\n\n curChild = curChild.nextSibling;\n }\n }\n }\n\n /**\n * Removes a DOM node out of the original DOM\n *\n * @param {Node} node The node to remove\n * @param {Node} parentNode The nodes parent\n * @param {Boolean} skipKeyedNodes If true then elements with keys will be skipped and not discarded.\n * @return {undefined}\n */\n function removeNode(node, parentNode, skipKeyedNodes) {\n if (callHook(onBeforeNodeDiscarded, node) === false) {\n return;\n }\n\n if (parentNode) {\n parentNode.removeChild(node);\n }\n\n callHook(onNodeDiscarded, node);\n walkDiscardedChildNodes(node, skipKeyedNodes);\n }\n\n function indexTree(node) {\n if (node.nodeType === ELEMENT_NODE || node.nodeType === DOCUMENT_FRAGMENT_NODE) {\n var curChild = node.firstChild;\n while (curChild) {\n var key = callHook(getNodeKey, curChild);\n if (key) {\n fromNodesLookup[key] = curChild;\n }\n\n // Walk recursively\n indexTree(curChild);\n\n curChild = curChild.nextSibling;\n }\n }\n }\n\n indexTree(fromNode);\n\n function handleNodeAdded(el) {\n callHook(onNodeAdded, el);\n\n if (el.skipAddingChildren) {\n return\n }\n\n var curChild = el.firstChild;\n while (curChild) {\n var nextSibling = curChild.nextSibling;\n\n var key = callHook(getNodeKey, curChild);\n if (key) {\n var unmatchedFromEl = fromNodesLookup[key];\n if (unmatchedFromEl && compareNodeNames(curChild, unmatchedFromEl)) {\n curChild.parentNode.replaceChild(unmatchedFromEl, curChild);\n morphEl(unmatchedFromEl, curChild);\n }\n else {\n handleNodeAdded(curChild);\n }\n }\n else {\n handleNodeAdded(curChild);\n }\n\n curChild = nextSibling;\n }\n }\n\n function cleanupFromEl(fromEl, curFromNodeChild, curFromNodeKey) {\n // We have processed all of the \"to nodes\". If curFromNodeChild is\n // non-null then we still have some from nodes left over that need\n // to be removed\n while (curFromNodeChild) {\n var fromNextSibling = curFromNodeChild.nextSibling;\n if ((curFromNodeKey = callHook(getNodeKey, curFromNodeChild))) {\n // Since the node is keyed it might be matched up later so we defer\n // the actual removal to later\n addKeyedRemoval(curFromNodeKey);\n } else {\n // NOTE: we skip nested keyed nodes from being removed since there is\n // still a chance they will be matched up later\n removeNode(curFromNodeChild, fromEl, true /* skip keyed nodes */);\n }\n curFromNodeChild = fromNextSibling;\n }\n }\n\n\n function morphEl(fromEl, toEl, childrenOnly) {\n var toElKey = callHook(getNodeKey, toEl);\n\n if (toElKey) {\n // If an element with an ID is being morphed then it will be in the final\n // DOM so clear it out of the saved elements collection\n delete fromNodesLookup[toElKey];\n }\n\n if (!childrenOnly) {\n if (callHook(onBeforeElUpdated, fromEl, toEl) === false) {\n return;\n }\n\n // @livewireModification.\n // I added this check to enable wire:ignore.self to not fire\n // morphAttrs, but not skip updating children as well.\n // A task that's currently impossible with the provided hooks.\n if (! fromEl.skipElUpdatingButStillUpdateChildren) {\n morphAttrs(fromEl, toEl);\n }\n\n callHook(onElUpdated, fromEl);\n\n if (callHook(onBeforeElChildrenUpdated, fromEl, toEl) === false) {\n return;\n }\n }\n\n if (fromEl.nodeName !== 'TEXTAREA') {\n morphChildren(fromEl, toEl);\n } else {\n if (fromEl.innerHTML != toEl.innerHTML) {\n // @livewireModification\n // Only mess with the \"value\" of textarea if the new dom has something\n // inside the <textarea></textarea> tag.\n specialElHandlers.TEXTAREA(fromEl, toEl);\n }\n }\n }\n\n function morphChildren(fromEl, toEl) {\n var curToNodeChild = toEl.firstChild;\n var curFromNodeChild = fromEl.firstChild;\n var curToNodeKey;\n var curFromNodeKey;\n\n var fromNextSibling;\n var toNextSibling;\n var matchingFromEl;\n\n // walk the children\n outer: while (curToNodeChild) {\n toNextSibling = curToNodeChild.nextSibling;\n curToNodeKey = callHook(getNodeKey, curToNodeChild);\n\n // walk the fromNode children all the way through\n while (curFromNodeChild) {\n fromNextSibling = curFromNodeChild.nextSibling;\n\n if (curToNodeChild.isSameNode && curToNodeChild.isSameNode(curFromNodeChild)) {\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n continue outer;\n }\n\n curFromNodeKey = callHook(getNodeKey, curFromNodeChild);\n\n var curFromNodeType = curFromNodeChild.nodeType;\n\n // this means if the curFromNodeChild doesnt have a match with the curToNodeChild\n var isCompatible = undefined;\n\n if (curFromNodeType === curToNodeChild.nodeType) {\n if (curFromNodeType === ELEMENT_NODE) {\n // Both nodes being compared are Element nodes\n\n if (curToNodeKey) {\n // The target node has a key so we want to match it up with the correct element\n // in the original DOM tree\n if (curToNodeKey !== curFromNodeKey) {\n // The current element in the original DOM tree does not have a matching key so\n // let's check our lookup to see if there is a matching element in the original\n // DOM tree\n if ((matchingFromEl = fromNodesLookup[curToNodeKey])) {\n if (fromNextSibling === matchingFromEl) {\n // Special case for single element removals. To avoid removing the original\n // DOM node out of the tree (since that can break CSS transitions, etc.),\n // we will instead discard the current node and wait until the next\n // iteration to properly match up the keyed target element with its matching\n // element in the original tree\n isCompatible = false;\n } else {\n // We found a matching keyed element somewhere in the original DOM tree.\n // Let's move the original DOM node into the current position and morph\n // it.\n\n // NOTE: We use insertBefore instead of replaceChild because we want to go through\n // the `removeNode()` function for the node that is being discarded so that\n // all lifecycle hooks are correctly invoked\n fromEl.insertBefore(matchingFromEl, curFromNodeChild);\n\n // fromNextSibling = curFromNodeChild.nextSibling;\n if (curFromNodeKey) {\n // Since the node is keyed it might be matched up later so we defer\n // the actual removal to later\n addKeyedRemoval(curFromNodeKey);\n } else {\n // NOTE: we skip nested keyed nodes from being removed since there is\n // still a chance they will be matched up later\n removeNode(curFromNodeChild, fromEl, true /* skip keyed nodes */);\n }\n\n curFromNodeChild = matchingFromEl;\n }\n } else {\n // The nodes are not compatible since the \"to\" node has a key and there\n // is no matching keyed node in the source tree\n isCompatible = false;\n }\n }\n } else if (curFromNodeKey) {\n // The original has a key\n isCompatible = false;\n }\n\n isCompatible = isCompatible !== false && compareNodeNames(curFromNodeChild, curToNodeChild);\n if (isCompatible) {\n // @livewireModification\n // If the two nodes are different, but the next element is an exact match,\n // we can assume that the new node is meant to be inserted, instead of\n // used as a morph target.\n if (\n ! curToNodeChild.isEqualNode(curFromNodeChild)\n && curToNodeChild.nextElementSibling\n && curToNodeChild.nextElementSibling.isEqualNode(curFromNodeChild)\n ) {\n isCompatible = false\n } else {\n // We found compatible DOM elements so transform\n // the current \"from\" node to match the current\n // target DOM node.\n // MORPH\n morphEl(curFromNodeChild, curToNodeChild);\n }\n }\n\n } else if (curFromNodeType === TEXT_NODE || curFromNodeType == COMMENT_NODE) {\n // Both nodes being compared are Text or Comment nodes\n isCompatible = true;\n // Simply update nodeValue on the original node to\n // change the text value\n if (curFromNodeChild.nodeValue !== curToNodeChild.nodeValue) {\n curFromNodeChild.nodeValue = curToNodeChild.nodeValue;\n }\n }\n }\n\n if (isCompatible) {\n // Advance both the \"to\" child and the \"from\" child since we found a match\n // Nothing else to do as we already recursively called morphChildren above\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n continue outer;\n }\n\n // @livewireModification\n // Before we just remove the original element, let's see if it's the very next\n // element in the \"to\" list. If it is, we can assume we can insert the new\n // element before the original one instead of removing it. This is kind of\n // a \"look-ahead\".\n if (curToNodeChild.nextElementSibling && curToNodeChild.nextElementSibling.isEqualNode(curFromNodeChild)) {\n const nodeToBeAdded = curToNodeChild.cloneNode(true)\n fromEl.insertBefore(nodeToBeAdded, curFromNodeChild)\n handleNodeAdded(nodeToBeAdded)\n curToNodeChild = curToNodeChild.nextElementSibling.nextSibling;\n curFromNodeChild = fromNextSibling;\n continue outer;\n } else {\n // No compatible match so remove the old node from the DOM and continue trying to find a\n // match in the original DOM. However, we only do this if the from node is not keyed\n // since it is possible that a keyed node might match up with a node somewhere else in the\n // target tree and we don't want to discard it just yet since it still might find a\n // home in the final DOM tree. After everything is done we will remove any keyed nodes\n // that didn't find a home\n if (curFromNodeKey) {\n // Since the node is keyed it might be matched up later so we defer\n // the actual removal to later\n addKeyedRemoval(curFromNodeKey);\n } else {\n // NOTE: we skip nested keyed nodes from being removed since there is\n // still a chance they will be matched up later\n removeNode(curFromNodeChild, fromEl, true /* skip keyed nodes */);\n }\n }\n\n curFromNodeChild = fromNextSibling;\n } // END: while(curFromNodeChild) {}\n\n // If we got this far then we did not find a candidate match for\n // our \"to node\" and we exhausted all of the children \"from\"\n // nodes. Therefore, we will just append the current \"to\" node\n // to the end\n if (curToNodeKey && (matchingFromEl = fromNodesLookup[curToNodeKey]) && compareNodeNames(matchingFromEl, curToNodeChild)) {\n fromEl.appendChild(matchingFromEl);\n // MORPH\n morphEl(matchingFromEl, curToNodeChild);\n } else {\n var onBeforeNodeAddedResult = callHook(onBeforeNodeAdded, curToNodeChild);\n if (onBeforeNodeAddedResult !== false) {\n if (onBeforeNodeAddedResult) {\n curToNodeChild = onBeforeNodeAddedResult;\n }\n\n if (curToNodeChild.actualize) {\n curToNodeChild = curToNodeChild.actualize(fromEl.ownerDocument || doc);\n }\n fromEl.appendChild(curToNodeChild);\n handleNodeAdded(curToNodeChild);\n }\n }\n\n curToNodeChild = toNextSibling;\n curFromNodeChild = fromNextSibling;\n }\n\n cleanupFromEl(fromEl, curFromNodeChild, curFromNodeKey);\n\n var specialElHandler = specialElHandlers[fromEl.nodeName];\n if (specialElHandler && ! fromEl.isLivewireModel) {\n specialElHandler(fromEl, toEl);\n }\n } // END: morphChildren(...)\n\n var morphedNode = fromNode;\n var morphedNodeType = morphedNode.nodeType;\n var toNodeType = toNode.nodeType;\n\n if (!childrenOnly) {\n // Handle the case where we are given two DOM nodes that are not\n // compatible (e.g. <div> --> <span> or <div> --> TEXT)\n if (morphedNodeType === ELEMENT_NODE) {\n if (toNodeType === ELEMENT_NODE) {\n if (!compareNodeNames(fromNode, toNode)) {\n callHook(onNodeDiscarded, fromNode);\n morphedNode = moveChildren(fromNode, createElementNS(toNode.nodeName, toNode.namespaceURI));\n }\n } else {\n // Going from an element node to a text node\n morphedNode = toNode;\n }\n } else if (morphedNodeType === TEXT_NODE || morphedNodeType === COMMENT_NODE) { // Text or comment node\n if (toNodeType === morphedNodeType) {\n if (morphedNode.nodeValue !== toNode.nodeValue) {\n morphedNode.nodeValue = toNode.nodeValue;\n }\n\n return morphedNode;\n } else {\n // Text node to something else\n morphedNode = toNode;\n }\n }\n }\n\n if (morphedNode === toNode) {\n // The \"to node\" was not compatible with the \"from node\" so we had to\n // toss out the \"from node\" and use the \"to node\"\n callHook(onNodeDiscarded, fromNode);\n } else {\n if (toNode.isSameNode && toNode.isSameNode(morphedNode)) {\n return;\n }\n\n morphEl(morphedNode, toNode, childrenOnly);\n\n // We now need to loop over any keyed nodes that might need to be\n // removed. We only do the removal if we know that the keyed node\n // never found a match. When a keyed node is matched up we remove\n // it out of fromNodesLookup and we use fromNodesLookup to determine\n // if a keyed node has been matched up or not\n if (keyedRemovalList) {\n for (var i=0, len=keyedRemovalList.length; i<len; i++) {\n var elToRemove = fromNodesLookup[keyedRemovalList[i]];\n if (elToRemove) {\n removeNode(elToRemove, elToRemove.parentNode, false);\n }\n }\n }\n }\n\n if (!childrenOnly && morphedNode !== fromNode && fromNode.parentNode) {\n if (morphedNode.actualize) {\n morphedNode = morphedNode.actualize(fromNode.ownerDocument || doc);\n }\n // If we had to swap out the from node with a new node because the old\n // node was not compatible with the target node then we need to\n // replace the old DOM node in the original DOM tree. This is only\n // possible if the original DOM node was part of a DOM tree which\n // we know is the case if it has a parent node.\n fromNode.parentNode.replaceChild(morphedNode, fromNode);\n }\n\n return morphedNode;\n };\n}\n","import morphAttrs from './morphAttrs';\nimport morphdomFactory from './morphdom';\n\nvar morphdom = morphdomFactory(morphAttrs);\n\nexport default morphdom;","import Action from '.'\n\nexport default class extends Action {\n constructor(name, value, el) {\n super(el)\n\n this.type = 'syncInput'\n this.name = name\n this.payload = {\n id: this.signature,\n name,\n value,\n }\n }\n}\n","import Action from '.'\n\nexport default class extends Action {\n constructor(name, value, el, skipWatcher = false) {\n super(el, skipWatcher)\n\n this.type = 'syncInput'\n this.name = name\n this.payload = {\n id: this.signature,\n name,\n value,\n }\n }\n}\n","import { kebabCase, debounce, wireDirectives } from '@/util'\nimport ModelAction from '@/action/model'\nimport DeferredModelAction from '@/action/deferred-model'\nimport MethodAction from '@/action/method'\nimport store from '@/Store'\nimport DOM from './dom/dom'\n\nexport default {\n initialize(el, component) {\n if (store.initialRenderIsFinished && el.tagName.toLowerCase() === 'script') {\n eval(el.innerHTML)\n return false\n }\n\n wireDirectives(el).all().forEach(directive => {\n switch (directive.type) {\n case 'init':\n this.fireActionRightAway(el, directive, component)\n break\n\n case 'model':\n if (! directive.value) {\n console.warn('Livewire: [wire:model] is missing a value.', el)\n break\n }\n\n DOM.setInputValueFromModel(el, component)\n\n this.attachModelListener(el, directive, component)\n break\n\n default:\n if (store.directives.has(directive.type)) {\n store.directives.call(\n directive.type,\n el,\n directive,\n component\n )\n }\n\n this.attachDomListener(el, directive, component)\n break\n }\n })\n\n store.callHook('element.initialized', el, component)\n },\n\n fireActionRightAway(el, directive, component) {\n const method = directive.value ? directive.method : '$refresh'\n\n component.addAction(new MethodAction(method, directive.params, el))\n },\n\n attachModelListener(el, directive, component) {\n // This is used by morphdom: morphdom.js:391\n el.isLivewireModel = true\n\n const isLazy = directive.modifiers.includes('lazy')\n const debounceIf = (condition, callback, time) => {\n return condition\n ? component.modelSyncDebounce(callback, time)\n : callback\n }\n const hasDebounceModifier = directive.modifiers.includes('debounce')\n\n store.callHook('interceptWireModelAttachListener', directive, el, component)\n\n // File uploads are handled by UploadFiles.js.\n if (el.tagName.toLowerCase() === 'input' && el.type === 'file') return\n\n const event = el.tagName.toLowerCase() === 'select'\n || ['checkbox', 'radio'].includes(el.type)\n || directive.modifiers.includes('lazy') ? 'change' : 'input'\n\n // If it's a text input and not .lazy, debounce, otherwise fire immediately.\n let handler = debounceIf(hasDebounceModifier || (DOM.isTextInput(el) && !isLazy), e => {\n let model = directive.value\n let el = e.target\n\n let value = e instanceof CustomEvent\n // We have to check for typeof e.detail here for IE 11.\n && typeof e.detail != 'undefined'\n && typeof window.document.documentMode == 'undefined'\n // With autofill in Safari, Safari triggers a custom event and assigns\n // the value to e.target.value, so we need to check for that value as well.\n ? e.detail ?? e.target.value\n : DOM.valueFromInput(el, component)\n\n if (directive.modifiers.includes('defer')) {\n component.addAction(new DeferredModelAction(model, value, el))\n } else {\n component.addAction(new ModelAction(model, value, el))\n }\n }, directive.durationOr(150))\n\n el.addEventListener(event, handler)\n\n component.addListenerForTeardown(() => {\n el.removeEventListener(event, handler)\n })\n\n // Taken from: https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser\n let isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)\n\n // Safari is weird and doesn't properly fire input events when\n // a user \"autofills\" a wire:model(.lazy) field. So we are\n // firing them manually for assurance.\n isSafari && el.addEventListener('animationstart', e => {\n if (e.animationName !== 'livewireautofill') return\n\n e.target.dispatchEvent(new Event('change', { bubbles: true }))\n e.target.dispatchEvent(new Event('input', { bubbles: true }))\n })\n },\n\n attachDomListener(el, directive, component) {\n switch (directive.type) {\n case 'keydown':\n case 'keyup':\n this.attachListener(el, directive, component, e => {\n // Detect system modifier key combinations if specified.\n const systemKeyModifiers = [\n 'ctrl',\n 'shift',\n 'alt',\n 'meta',\n 'cmd',\n 'super',\n ]\n const selectedSystemKeyModifiers = systemKeyModifiers.filter(\n key => directive.modifiers.includes(key)\n )\n\n if (selectedSystemKeyModifiers.length > 0) {\n const selectedButNotPressedKeyModifiers = selectedSystemKeyModifiers.filter(\n key => {\n // Alias \"cmd\" and \"super\" to \"meta\"\n if (key === 'cmd' || key === 'super')\n key = 'meta'\n\n return !e[`${key}Key`]\n }\n )\n\n if (selectedButNotPressedKeyModifiers.length > 0)\n return false\n }\n\n\t\t // Handle spacebar\n if (e.keyCode === 32 || (e.key === ' ' || e.key === 'Spacebar')) {\n return directive.modifiers.includes('space')\n }\n\n // Strip 'debounce' modifier and time modifiers from modifiers list\n let modifiers = directive.modifiers.filter(modifier => {\n return (\n !modifier.match(/^debounce$/) &&\n !modifier.match(/^[0-9]+m?s$/)\n )\n })\n\n // Only handle listener if no, or matching key modifiers are passed.\n // It's important to check that e.key exists - OnePassword's extension does weird things.\n return Boolean(modifiers.length === 0 || (e.key && modifiers.includes(kebabCase(e.key))))\n })\n break\n case 'click':\n this.attachListener(el, directive, component, e => {\n // We only care about elements that have the .self modifier on them.\n if (!directive.modifiers.includes('self')) return\n\n // This ensures a listener is only run if the event originated\n // on the elemenet that registered it (not children).\n // This is useful for things like modal back-drop listeners.\n return el.isSameNode(e.target)\n })\n break\n default:\n this.attachListener(el, directive, component)\n break\n }\n },\n\n attachListener(el, directive, component, callback) {\n if (directive.modifiers.includes('prefetch')) {\n el.addEventListener('mouseenter', () => {\n component.addPrefetchAction(\n new MethodAction(directive.method, directive.params, el)\n )\n })\n }\n\n const event = directive.type\n const handler = e => {\n if (callback && callback(e) === false) {\n return\n }\n\n component.callAfterModelDebounce(() => {\n const el = e.target\n\n directive.setEventContext(e)\n\n // This is outside the conditional below so \"wire:click.prevent\" without\n // a value still prevents default.\n this.preventAndStop(e, directive.modifiers)\n const method = directive.method\n let params = directive.params\n\n if (\n params.length === 0 &&\n e instanceof CustomEvent &&\n e.detail\n ) {\n params.push(e.detail)\n }\n\n // Check for global event emission.\n if (method === '$emit') {\n component.scopedListeners.call(...params)\n store.emit(...params)\n return\n }\n\n if (method === '$emitUp') {\n store.emitUp(el, ...params)\n return\n }\n\n if (method === '$emitSelf') {\n store.emitSelf(component.id, ...params)\n return\n }\n\n if (method === '$emitTo') {\n store.emitTo(...params)\n return\n }\n\n if (directive.value) {\n component.addAction(new MethodAction(method, params, el))\n }\n })\n }\n\n const debounceIf = (condition, callback, time) => {\n return condition ? debounce(callback, time) : callback\n }\n\n const hasDebounceModifier = directive.modifiers.includes('debounce')\n const debouncedHandler = debounceIf(\n hasDebounceModifier,\n handler,\n directive.durationOr(150)\n )\n\n el.addEventListener(event, debouncedHandler)\n\n component.addListenerForTeardown(() => {\n el.removeEventListener(event, debouncedHandler)\n })\n },\n\n preventAndStop(event, modifiers) {\n modifiers.includes('prevent') && event.preventDefault()\n\n modifiers.includes('stop') && event.stopPropagation()\n },\n}\n","class PrefetchManager {\n constructor(component) {\n this.component = component\n this.prefetchMessagesByActionId = {}\n }\n\n addMessage(message) {\n this.prefetchMessagesByActionId[message.prefetchId] = message\n }\n\n actionHasPrefetch(action) {\n return Object.keys(this.prefetchMessagesByActionId).includes(\n action.toId()\n )\n }\n\n actionPrefetchResponseHasBeenReceived(action) {\n return !! this.getPrefetchMessageByAction(action).response\n }\n\n getPrefetchMessageByAction(action) {\n return this.prefetchMessagesByActionId[action.toId()]\n }\n\n clearPrefetches() {\n this.prefetchMessagesByActionId = {}\n }\n}\n\nexport default PrefetchManager\n","import store from '@/Store'\nimport { wireDirectives } from '@/util'\n\nexport default function () {\n store.registerHook('component.initialized', component => {\n component.targetedLoadingElsByAction = {}\n component.genericLoadingEls = []\n component.currentlyActiveLoadingEls = []\n component.currentlyActiveUploadLoadingEls = []\n })\n\n store.registerHook('element.initialized', (el, component) => {\n let directives = wireDirectives(el)\n\n if (directives.missing('loading')) return\n\n const loadingDirectives = directives.directives.filter(\n i => i.type === 'loading'\n )\n\n loadingDirectives.forEach(directive => {\n processLoadingDirective(component, el, directive)\n })\n })\n\n store.registerHook('message.sent', (message, component) => {\n const actions = message.updateQueue\n .filter(action => {\n return action.type === 'callMethod'\n })\n .map(action => action.payload.method)\n\n const actionsWithParams = message.updateQueue\n .filter(action => {\n return action.type === 'callMethod'\n })\n .map(action =>\n generateSignatureFromMethodAndParams(\n action.payload.method,\n action.payload.params\n )\n )\n\n const models = message.updateQueue\n .filter(action => {\n return action.type === 'syncInput'\n })\n .map(action => {\n let name = action.payload.name\n if (! name.includes('.')) {\n return name\n }\n\n let modelActions = []\n\n modelActions.push(\n name.split('.').reduce((fullAction, part) => {\n modelActions.push(fullAction)\n\n return fullAction + '.' + part\n })\n )\n\n return modelActions\n })\n .flat()\n\n setLoading(component, actions.concat(actionsWithParams).concat(models))\n })\n\n store.registerHook('message.failed', (message, component) => {\n unsetLoading(component)\n })\n\n store.registerHook('message.received', (message, component) => {\n unsetLoading(component)\n })\n\n store.registerHook('element.removed', (el, component) => {\n removeLoadingEl(component, el)\n })\n}\n\nfunction processLoadingDirective(component, el, directive) {\n // If this element is going to be dealing with loading states.\n // We will initialize an \"undo\" stack upfront, so we don't\n // have to deal with isset() type conditionals later.\n el.__livewire_on_finish_loading = []\n\n var actionNames = false\n\n let directives = wireDirectives(el)\n\n if (directives.get('target')) {\n let target = directives.get('target')\n if (target.params.length > 0) {\n actionNames = [\n generateSignatureFromMethodAndParams(\n target.method,\n target.params\n ),\n ]\n } else {\n // wire:target overrides any automatic loading scoping we do.\n actionNames = target.value.split(',').map(s => s.trim())\n }\n } else {\n // If there is no wire:target, let's check for the existance of a wire:click=\"foo\" or something,\n // and automatically scope this loading directive to that action.\n const nonActionOrModelLivewireDirectives = [\n 'init',\n 'dirty',\n 'offline',\n 'target',\n 'loading',\n 'poll',\n 'ignore',\n 'key',\n 'id',\n ]\n\n actionNames = directives\n .all()\n .filter(i => !nonActionOrModelLivewireDirectives.includes(i.type))\n .map(i => i.method)\n\n // If we found nothing, just set the loading directive to the global component. (run on every request)\n if (actionNames.length < 1) actionNames = false\n }\n\n addLoadingEl(component, el, directive, actionNames)\n}\n\nfunction addLoadingEl(component, el, directive, actionsNames) {\n if (actionsNames) {\n actionsNames.forEach(actionsName => {\n if (component.targetedLoadingElsByAction[actionsName]) {\n component.targetedLoadingElsByAction[actionsName].push({\n el,\n directive,\n })\n } else {\n component.targetedLoadingElsByAction[actionsName] = [\n { el, directive },\n ]\n }\n })\n } else {\n component.genericLoadingEls.push({ el, directive })\n }\n}\n\nfunction removeLoadingEl(component, el) {\n // Look through the global/generic elements for the element to remove.\n component.genericLoadingEls.forEach((element, index) => {\n if (element.el.isSameNode(el)) {\n component.genericLoadingEls.splice(index, 1)\n }\n })\n\n // Look through the targeted elements to remove.\n Object.keys(component.targetedLoadingElsByAction).forEach(key => {\n component.targetedLoadingElsByAction[\n key\n ] = component.targetedLoadingElsByAction[key].filter(element => {\n return ! element.el.isSameNode(el)\n })\n })\n}\n\nfunction setLoading(component, actions) {\n const actionTargetedEls = actions\n .map(action => component.targetedLoadingElsByAction[action])\n .filter(el => el)\n .flat()\n\n const allEls = removeDuplicates(component.genericLoadingEls.concat(actionTargetedEls))\n\n startLoading(allEls)\n\n component.currentlyActiveLoadingEls = allEls\n}\n\nexport function setUploadLoading(component, modelName) {\n const actionTargetedEls =\n component.targetedLoadingElsByAction[modelName] || []\n\n const allEls = removeDuplicates(component.genericLoadingEls.concat(actionTargetedEls))\n\n startLoading(allEls)\n\n component.currentlyActiveUploadLoadingEls = allEls\n}\n\nexport function unsetUploadLoading(component) {\n endLoading(component.currentlyActiveUploadLoadingEls)\n\n component.currentlyActiveUploadLoadingEls = []\n}\n\nfunction unsetLoading(component) {\n endLoading(component.currentlyActiveLoadingEls)\n\n component.currentlyActiveLoadingEls = []\n}\n\nfunction startLoading(els) {\n els.forEach(({ el, directive }) => {\n if (directive.modifiers.includes('class')) {\n let classes = directive.value.split(' ').filter(Boolean)\n\n doAndSetCallbackOnElToUndo(\n el,\n directive,\n () => el.classList.add(...classes),\n () => el.classList.remove(...classes)\n )\n } else if (directive.modifiers.includes('attr')) {\n doAndSetCallbackOnElToUndo(\n el,\n directive,\n () => el.setAttribute(directive.value, true),\n () => el.removeAttribute(directive.value)\n )\n } else {\n let cache = window\n .getComputedStyle(el, null)\n .getPropertyValue('display')\n\n doAndSetCallbackOnElToUndo(\n el,\n directive,\n () => {\n el.style.display = directive.modifiers.includes('remove')\n ? cache\n : getDisplayProperty(directive)\n },\n () => {\n el.style.display = 'none'\n }\n )\n }\n })\n}\n\nfunction getDisplayProperty(directive) {\n return (['inline', 'block', 'table', 'flex', 'grid', 'inline-flex']\n .filter(i => directive.modifiers.includes(i))[0] || 'inline-block')\n}\n\nfunction doAndSetCallbackOnElToUndo(el, directive, doCallback, undoCallback) {\n if (directive.modifiers.includes('remove'))\n [doCallback, undoCallback] = [undoCallback, doCallback]\n\n if (directive.modifiers.includes('delay')) {\n let duration = 200\n\n let delayModifiers = {\n 'shortest': 50,\n 'shorter': 100,\n 'short': 150,\n 'long': 300,\n 'longer': 500,\n 'longest': 1000,\n }\n\n Object.keys(delayModifiers).some(key => {\n if(directive.modifiers.includes(key)) {\n duration = delayModifiers[key]\n return true\n }\n })\n\n let timeout = setTimeout(() => {\n doCallback()\n el.__livewire_on_finish_loading.push(() => undoCallback())\n }, duration)\n\n el.__livewire_on_finish_loading.push(() => clearTimeout(timeout))\n } else {\n doCallback()\n el.__livewire_on_finish_loading.push(() => undoCallback())\n }\n}\n\nfunction endLoading(els) {\n els.forEach(({ el }) => {\n while (el.__livewire_on_finish_loading.length > 0) {\n el.__livewire_on_finish_loading.shift()()\n }\n })\n}\n\nfunction generateSignatureFromMethodAndParams(method, params) {\n return method + btoa(encodeURIComponent(params.toString()))\n}\n\nfunction removeDuplicates(arr) {\n return Array.from(new Set(arr))\n}","\nexport default class MessageBag {\n constructor() {\n this.bag = {}\n }\n\n add(name, thing) {\n if (! this.bag[name]) {\n this.bag[name] = []\n }\n\n this.bag[name].push(thing)\n }\n\n push(name, thing) {\n this.add(name, thing)\n }\n\n first(name) {\n if (! this.bag[name]) return null\n\n return this.bag[name][0]\n }\n\n last(name) {\n return this.bag[name].slice(-1)[0]\n }\n\n get(name) {\n return this.bag[name]\n }\n\n shift(name) {\n return this.bag[name].shift()\n }\n\n call(name, ...params) {\n (this.listeners[name] || []).forEach(callback => {\n callback(...params)\n })\n }\n\n has(name) {\n return Object.keys(this.listeners).includes(name)\n }\n}\n","import { setUploadLoading, unsetUploadLoading } from './LoadingStates'\nimport { getCsrfToken } from '@/util'\nimport MessageBag from '../MessageBag'\n\nclass UploadManager {\n constructor(component) {\n this.component = component\n this.uploadBag = new MessageBag\n this.removeBag = new MessageBag\n }\n\n registerListeners() {\n this.component.on('upload:generatedSignedUrl', (name, url) => {\n // We have to add reduntant \"setLoading\" calls because the dom-patch\n // from the first response will clear the setUploadLoading call\n // from the first upload call.\n setUploadLoading(this.component, name)\n\n this.handleSignedUrl(name, url)\n })\n\n this.component.on('upload:generatedSignedUrlForS3', (name, payload) => {\n setUploadLoading(this.component, name)\n\n this.handleS3PreSignedUrl(name, payload)\n })\n\n this.component.on('upload:finished', (name, tmpFilenames) => this.markUploadFinished(name, tmpFilenames))\n this.component.on('upload:errored', (name) => this.markUploadErrored(name))\n this.component.on('upload:removed', (name, tmpFilename) => this.removeBag.shift(name).finishCallback(tmpFilename))\n }\n\n upload(name, file, finishCallback, errorCallback, progressCallback) {\n this.setUpload(name, {\n files: [file],\n multiple: false,\n finishCallback,\n errorCallback,\n progressCallback,\n })\n }\n\n uploadMultiple(name, files, finishCallback, errorCallback, progressCallback) {\n this.setUpload(name, {\n files: Array.from(files),\n multiple: true,\n finishCallback,\n errorCallback,\n progressCallback,\n })\n }\n\n removeUpload(name, tmpFilename, finishCallback) {\n this.removeBag.push(name, {\n tmpFilename, finishCallback\n })\n\n this.component.call('removeUpload', name, tmpFilename);\n }\n\n setUpload(name, uploadObject) {\n this.uploadBag.add(name, uploadObject)\n\n if (this.uploadBag.get(name).length === 1) {\n this.startUpload(name, uploadObject)\n }\n }\n\n handleSignedUrl(name, url) {\n let formData = new FormData()\n Array.from(this.uploadBag.first(name).files).forEach(file => formData.append('files[]', file, file.name))\n\n let headers = {\n 'Accept': 'application/json',\n }\n\n let csrfToken = getCsrfToken()\n\n if (csrfToken) headers['X-CSRF-TOKEN'] = csrfToken\n\n this.makeRequest(name, formData, 'post', url, headers, response => {\n return response.paths\n })\n }\n\n handleS3PreSignedUrl(name, payload) {\n let formData = this.uploadBag.first(name).files[0]\n\n let headers = payload.headers\n if ('Host' in headers) delete headers.Host\n let url = payload.url\n\n this.makeRequest(name, formData, 'put', url, headers, response => {\n return [payload.path]\n })\n }\n\n makeRequest(name, formData, method, url, headers, retrievePaths) {\n let request = new XMLHttpRequest()\n request.open(method, url)\n\n Object.entries(headers).forEach(([key, value]) => {\n request.setRequestHeader(key, value)\n })\n\n request.upload.addEventListener('progress', e => {\n e.detail = {}\n e.detail.progress = Math.round((e.loaded * 100) / e.total)\n\n this.uploadBag.first(name).progressCallback(e)\n })\n\n request.addEventListener('load', () => {\n if ((request.status+'')[0] === '2') {\n let paths = retrievePaths(request.response && JSON.parse(request.response))\n\n this.component.call('finishUpload', name, paths, this.uploadBag.first(name).multiple)\n\n return\n }\n\n let errors = null\n\n if (request.status === 422) {\n errors = request.response\n }\n\n this.component.call('uploadErrored', name, errors, this.uploadBag.first(name).multiple)\n })\n\n request.send(formData)\n }\n\n startUpload(name, uploadObject) {\n let fileInfos = uploadObject.files.map(file => {\n return { name: file.name, size: file.size, type: file.type }\n })\n\n this.component.call('startUpload', name, fileInfos, uploadObject.multiple);\n\n setUploadLoading(this.component, name)\n }\n\n markUploadFinished(name, tmpFilenames) {\n unsetUploadLoading(this.component)\n\n let uploadObject = this.uploadBag.shift(name)\n uploadObject.finishCallback(uploadObject.multiple ? tmpFilenames : tmpFilenames[0])\n\n if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\n }\n\n markUploadErrored(name) {\n unsetUploadLoading(this.component)\n\n this.uploadBag.shift(name).errorCallback()\n\n if (this.uploadBag.get(name).length > 0) this.startUpload(name, this.uploadBag.last(name))\n }\n}\n\nexport default UploadManager\n","import { walk } from './../util/walk'\nimport store from '@/Store'\n\nexport default function () {\n window.addEventListener('livewire:load', () => {\n if (! window.Alpine) return\n\n refreshAlpineAfterEveryLivewireRequest()\n\n addDollarSignWire()\n\n supportEntangle()\n })\n}\n\nfunction refreshAlpineAfterEveryLivewireRequest() {\n if (isV3()) {\n store.registerHook('message.processed', (message, livewireComponent) => {\n walk(livewireComponent.el, el => {\n if (el._x_hidePromise) return\n if (el._x_runEffects) el._x_runEffects()\n })\n })\n\n return\n }\n\n if (! window.Alpine.onComponentInitialized) return\n\n window.Alpine.onComponentInitialized(component => {\n let livewireEl = component.$el.closest('[wire\\\\:id]')\n\n if (livewireEl && livewireEl.__livewire) {\n store.registerHook('message.processed', (message, livewireComponent) => {\n if (livewireComponent === livewireEl.__livewire) {\n component.updateElements(component.$el)\n }\n })\n }\n })\n}\n\nfunction addDollarSignWire() {\n if (isV3()) {\n window.Alpine.magic('wire', function (el) {\n let wireEl = el.closest('[wire\\\\:id]')\n\n if (! wireEl)\n console.warn(\n 'Alpine: Cannot reference \"$wire\" outside a Livewire component.'\n )\n\n let component = wireEl.__livewire\n\n return component.$wire\n })\n return\n }\n\n if (! window.Alpine.addMagicProperty) return\n\n window.Alpine.addMagicProperty('wire', function (componentEl) {\n let wireEl = componentEl.closest('[wire\\\\:id]')\n\n if (!wireEl)\n console.warn(\n 'Alpine: Cannot reference \"$wire\" outside a Livewire component.'\n )\n\n let component = wireEl.__livewire\n\n return component.$wire\n })\n}\n\nfunction supportEntangle() {\n if (isV3()) return\n\n if (! window.Alpine.onBeforeComponentInitialized) return\n\n window.Alpine.onBeforeComponentInitialized(component => {\n let livewireEl = component.$el.closest('[wire\\\\:id]')\n\n if (livewireEl && livewireEl.__livewire) {\n Object.entries(component.unobservedData).forEach(\n ([key, value]) => {\n if (\n !!value &&\n typeof value === 'object' &&\n value.livewireEntangle\n ) {\n // Ok, it looks like someone set an Alpine property to $wire.entangle or @entangle.\n let livewireProperty = value.livewireEntangle\n let isDeferred = value.isDeferred\n let livewireComponent = livewireEl.__livewire\n\n let livewirePropertyValue = livewireEl.__livewire.get(livewireProperty)\n\n // Check to see if the Livewire property exists and if not log a console error\n // and return so everything else keeps running.\n if (typeof livewirePropertyValue === 'undefined') {\n console.error(`Livewire Entangle Error: Livewire property '${livewireProperty}' cannot be found`)\n return\n }\n\n // Let's set the initial value of the Alpine prop to the Livewire prop's value.\n component.unobservedData[key]\n // We need to stringify and parse it though to get a deep clone.\n = JSON.parse(JSON.stringify(livewirePropertyValue))\n\n let blockAlpineWatcher = false\n\n // Now, we'll watch for changes to the Alpine prop, and fire the update to Livewire.\n component.unobservedData.$watch(key, value => {\n // Let's also make sure that this watcher isn't a result of a Livewire response.\n // If it is, we don't need to \"re-update\" Livewire. (sending an extra useless) request.\n if (blockAlpineWatcher === true) {\n blockAlpineWatcher = false\n return\n }\n\n // If the Alpine value is the same as the Livewire value, we'll skip the update for 2 reasons:\n // - It's just more efficient, why send needless requests.\n // - This prevents a circular dependancy with the other watcher below.\n // - Due to the deep clone using stringify, we need to do the same here to compare.\n if (\n JSON.stringify(value) ==\n JSON.stringify(\n livewireEl.__livewire.getPropertyValueIncludingDefers(\n livewireProperty\n )\n )\n ) return\n\n // We'll tell Livewire to update the property, but we'll also tell Livewire\n // to not call the normal property watchers on the way back to prevent another\n // circular dependancy.\n livewireComponent.set(\n livewireProperty,\n value,\n isDeferred,\n // Block firing of Livewire watchers for this data key when the request comes back.\n // Unless it is deferred, in which cause we don't know if the state will be the same, so let it run.\n isDeferred ? false : true\n )\n })\n\n // We'll also listen for changes to the Livewire prop, and set them in Alpine.\n livewireComponent.watch(\n livewireProperty,\n value => {\n // Ensure data is deep cloned otherwise Alpine mutates Livewire data\n component.$data[key] = typeof value !== 'undefined' ? JSON.parse(JSON.stringify(value)) : value\n }\n )\n }\n }\n )\n }\n })\n}\n\nexport function getEntangleFunction(component) {\n if (isV3()) {\n return (name, defer = false) => {\n let isDeferred = defer\n let livewireProperty = name\n let livewireComponent = component\n let livewirePropertyValue = component.get(livewireProperty)\n\n let interceptor = Alpine.interceptor((initialValue, getter, setter, path, key) => {\n // Check to see if the Livewire property exists and if not log a console error\n // and return so everything else keeps running.\n if (typeof livewirePropertyValue === 'undefined') {\n console.error(`Livewire Entangle Error: Livewire property '${livewireProperty}' cannot be found`)\n return\n }\n\n // Let's set the initial value of the Alpine prop to the Livewire prop's value.\n let value\n // We need to stringify and parse it though to get a deep clone.\n = JSON.parse(JSON.stringify(livewirePropertyValue))\n\n setter(value)\n\n // Now, we'll watch for changes to the Alpine prop, and fire the update to Livewire.\n window.Alpine.effect(() => {\n let value = getter()\n\n if (\n JSON.stringify(value) ==\n JSON.stringify(\n livewireComponent.getPropertyValueIncludingDefers(\n livewireProperty\n )\n )\n ) return\n\n // We'll tell Livewire to update the property, but we'll also tell Livewire\n // to not call the normal property watchers on the way back to prevent another\n // circular dependancy.\n livewireComponent.set(\n livewireProperty,\n value,\n isDeferred,\n // Block firing of Livewire watchers for this data key when the request comes back.\n // Unless it is deferred, in which cause we don't know if the state will be the same, so let it run.\n isDeferred ? false : true\n )\n })\n\n // We'll also listen for changes to the Livewire prop, and set them in Alpine.\n livewireComponent.watch(\n livewireProperty,\n value => {\n // Ensure data is deep cloned otherwise Alpine mutates Livewire data\n window.Alpine.disableEffectScheduling(() => {\n setter(typeof value !== 'undefined' ? JSON.parse(JSON.stringify(value)) : value)\n })\n }\n )\n\n return value\n }, obj => {\n Object.defineProperty(obj, 'defer', {\n get() {\n isDeferred = true\n\n return obj\n }\n })\n })\n\n return interceptor(livewirePropertyValue)\n }\n }\n\n return (name, defer = false) => ({\n isDeferred: defer,\n livewireEntangle: name,\n get defer() {\n this.isDeferred = true\n return this\n },\n })\n}\n\nexport function alpinifyElementsForMorphdom(from, to) {\n if (isV3()) {\n return alpinifyElementsForMorphdomV3(from, to)\n }\n\n // If the element we are updating is an Alpine component...\n if (from.__x) {\n // Then temporarily clone it (with it's data) to the \"to\" element.\n // This should simulate backend Livewire being aware of Alpine changes.\n window.Alpine.clone(from.__x, to)\n }\n\n // x-show elements require care because of transitions.\n if (\n Array.from(from.attributes)\n .map(attr => attr.name)\n .some(name => /x-show/.test(name))\n ) {\n if (from.__x_transition) {\n // This covers @entangle('something')\n from.skipElUpdatingButStillUpdateChildren = true\n } else {\n // This covers x-show=\"$wire.something\"\n //\n // If the element has x-show, we need to \"reverse\" the damage done by \"clone\",\n // so that if/when the element has a transition on it, it will occur naturally.\n if (isHiding(from, to)) {\n let style = to.getAttribute('style')\n\n if (style) {\n to.setAttribute('style', style.replace('display: none;', ''))\n }\n } else if (isShowing(from, to)) {\n to.style.display = from.style.display\n }\n }\n }\n}\n\nfunction alpinifyElementsForMorphdomV3(from, to) {\n if (from.nodeType !== 1) return\n\n // If the element we are updating is an Alpine component...\n if (from._x_dataStack) {\n // Then temporarily clone it (with it's data) to the \"to\" element.\n // This should simulate backend Livewire being aware of Alpine changes.\n window.Alpine.clone(from, to)\n }\n}\n\nfunction isHiding(from, to) {\n if (beforeAlpineTwoPointSevenPointThree()) {\n return from.style.display === '' && to.style.display === 'none'\n }\n\n return from.__x_is_shown && ! to.__x_is_shown\n}\n\nfunction isShowing(from, to) {\n if (beforeAlpineTwoPointSevenPointThree()) {\n return from.style.display === 'none' && to.style.display === ''\n }\n\n return ! from.__x_is_shown && to.__x_is_shown\n}\n\nfunction beforeAlpineTwoPointSevenPointThree() {\n let [major, minor, patch] = window.Alpine.version.split('.').map(i => Number(i))\n\n return major <= 2 && minor <= 7 && patch <= 2\n}\n\nfunction isV3() {\n return window.Alpine && window.Alpine.version && /^3\\..+\\..+$/.test(window.Alpine.version)\n}\n","import Message from '@/Message'\nimport dataGet from 'get-value'\nimport PrefetchMessage from '@/PrefetchMessage'\nimport { dispatch, debounce, wireDirectives, walk } from '@/util'\nimport morphdom from '@/dom/morphdom'\nimport DOM from '@/dom/dom'\nimport nodeInitializer from '@/node_initializer'\nimport store from '@/Store'\nimport PrefetchManager from './PrefetchManager'\nimport UploadManager from './UploadManager'\nimport MethodAction from '@/action/method'\nimport ModelAction from '@/action/model'\nimport DeferredModelAction from '@/action/deferred-model'\nimport MessageBus from '../MessageBus'\nimport { alpinifyElementsForMorphdom, getEntangleFunction } from './SupportAlpine'\n\nexport default class Component {\n constructor(el, connection) {\n el.__livewire = this\n\n this.el = el\n\n this.lastFreshHtml = this.el.outerHTML\n\n this.id = this.el.getAttribute('wire:id')\n\n this.checkForMultipleRootElements()\n\n this.connection = connection\n\n const initialData = JSON.parse(this.el.getAttribute('wire:initial-data'))\n this.el.removeAttribute('wire:initial-data')\n\n this.fingerprint = initialData.fingerprint\n this.serverMemo = initialData.serverMemo\n this.effects = initialData.effects\n\n this.listeners = this.effects.listeners\n this.updateQueue = []\n this.deferredActions = {}\n this.tearDownCallbacks = []\n this.messageInTransit = undefined\n\n this.scopedListeners = new MessageBus()\n this.prefetchManager = new PrefetchManager(this)\n this.uploadManager = new UploadManager(this)\n this.watchers = {}\n\n store.callHook('component.initialized', this)\n\n this.initialize()\n\n this.uploadManager.registerListeners()\n\n if (this.effects.redirect) return this.redirect(this.effects.redirect)\n }\n\n get name() {\n return this.fingerprint.name\n }\n\n get data() {\n return this.serverMemo.data\n }\n\n get childIds() {\n return Object.values(this.serverMemo.children).map(child => child.id)\n }\n\n checkForMultipleRootElements() {\n // Count the number of elements between the first element in the component and the\n // injected \"component-end\" marker. This is an HTML comment with notation.\n let countElementsBeforeMarker = (el, carryCount = 0) => {\n if (! el) return carryCount\n\n // If we see the \"end\" marker, we can return the number of elements in between we've seen.\n if (el.nodeType === Node.COMMENT_NODE && el.textContent.includes(`wire-end:${this.id}`)) return carryCount\n\n let newlyDiscoveredEls = el.nodeType === Node.ELEMENT_NODE ? 1 : 0\n\n return countElementsBeforeMarker(el.nextSibling, carryCount + newlyDiscoveredEls)\n }\n\n if (countElementsBeforeMarker(this.el.nextSibling) > 0) {\n console.warn(`Livewire: Multiple root elements detected. This is not supported. See docs for more information https://laravel-livewire.com/docs/2.x/troubleshooting#root-element-issues`, this.el)\n }\n }\n\n initialize() {\n this.walk(\n // Will run for every node in the component tree (not child component nodes).\n el => nodeInitializer.initialize(el, this),\n // When new component is encountered in the tree, add it.\n el => store.addComponent(new Component(el, this.connection))\n )\n }\n\n get(name) {\n // The .split() stuff is to support dot-notation.\n return name\n .split('.')\n .reduce((carry, segment) => typeof carry === 'undefined' ? carry : carry[segment], this.data)\n }\n\n getPropertyValueIncludingDefers(name) {\n let action = this.deferredActions[name]\n\n if (! action) return this.get(name)\n\n return action.payload.value\n }\n\n updateServerMemoFromResponseAndMergeBackIntoResponse(message) {\n // We have to do a fair amount of object merging here, but we can't use expressive syntax like {...}\n // because browsers mess with the object key order which will break Livewire request checksum checks.\n\n Object.entries(message.response.serverMemo).forEach(([key, value]) => {\n // Because \"data\" is \"partial\" from the server, we have to deep merge it.\n if (key === 'data') {\n Object.entries(value || {}).forEach(([dataKey, dataValue]) => {\n this.serverMemo.data[dataKey] = dataValue\n\n if (message.shouldSkipWatcherForDataKey(dataKey)) return\n\n // Because Livewire (for payload reduction purposes) only returns the data that has changed,\n // we can use all the data keys from the response as watcher triggers.\n Object.entries(this.watchers).forEach(([key, watchers]) => {\n let originalSplitKey = key.split('.')\n let basePropertyName = originalSplitKey.shift()\n let restOfPropertyName = originalSplitKey.join('.')\n\n if (basePropertyName == dataKey) {\n // If the key deals with nested data, use the \"get\" function to get\n // the most nested data. Otherwise, return the entire data chunk.\n let potentiallyNestedValue = !! restOfPropertyName\n ? dataGet(dataValue, restOfPropertyName)\n : dataValue\n\n watchers.forEach(watcher => watcher(potentiallyNestedValue))\n }\n })\n })\n } else {\n // Every other key, we can just overwrite.\n this.serverMemo[key] = value\n }\n })\n\n // Merge back serverMemo changes so the response data is no longer incomplete.\n message.response.serverMemo = Object.assign({}, this.serverMemo)\n }\n\n watch(name, callback) {\n if (!this.watchers[name]) this.watchers[name] = []\n\n this.watchers[name].push(callback)\n }\n\n set(name, value, defer = false, skipWatcher = false) {\n if (defer) {\n this.addAction(\n new DeferredModelAction(name, value, this.el, skipWatcher)\n )\n } else {\n this.addAction(\n new MethodAction('$set', [name, value], this.el, skipWatcher)\n )\n }\n }\n\n sync(name, value, defer = false) {\n if (defer) {\n this.addAction(new DeferredModelAction(name, value, this.el))\n } else {\n this.addAction(new ModelAction(name, value, this.el))\n }\n }\n\n call(method, ...params) {\n return new Promise((resolve, reject) => {\n let action = new MethodAction(method, params, this.el)\n\n this.addAction(action)\n\n action.onResolve(thing => resolve(thing))\n action.onReject(thing => reject(thing))\n })\n }\n\n on(event, callback) {\n this.scopedListeners.register(event, callback)\n }\n\n addAction(action) {\n if (action instanceof DeferredModelAction) {\n this.deferredActions[action.name] = action\n\n return\n }\n\n if (\n this.prefetchManager.actionHasPrefetch(action) &&\n this.prefetchManager.actionPrefetchResponseHasBeenReceived(action)\n ) {\n const message = this.prefetchManager.getPrefetchMessageByAction(\n action\n )\n\n this.handleResponse(message)\n\n this.prefetchManager.clearPrefetches()\n\n return\n }\n\n this.updateQueue.push(action)\n\n // This debounce is here in-case two events fire at the \"same\" time:\n // For example: if you are listening for a click on element A,\n // and a \"blur\" on element B. If element B has focus, and then,\n // you click on element A, the blur event will fire before the \"click\"\n // event. This debounce captures them both in the actionsQueue and sends\n // them off at the same time.\n // Note: currently, it's set to 5ms, that might not be the right amount, we'll see.\n debounce(this.fireMessage, 5).apply(this)\n\n // Clear prefetches.\n this.prefetchManager.clearPrefetches()\n }\n\n fireMessage() {\n if (this.messageInTransit) return\n\n Object.entries(this.deferredActions).forEach(([modelName, action]) => {\n this.updateQueue.unshift(action)\n })\n this.deferredActions = {}\n\n this.messageInTransit = new Message(this, this.updateQueue)\n\n let sendMessage = () => {\n this.connection.sendMessage(this.messageInTransit)\n\n store.callHook('message.sent', this.messageInTransit, this)\n\n this.updateQueue = []\n }\n\n if (window.capturedRequestsForDusk) {\n window.capturedRequestsForDusk.push(sendMessage)\n } else {\n sendMessage()\n }\n }\n\n messageSendFailed() {\n store.callHook('message.failed', this.messageInTransit, this)\n\n this.messageInTransit.reject()\n\n this.messageInTransit = null\n }\n\n receiveMessage(message, payload) {\n message.storeResponse(payload)\n\n if (message instanceof PrefetchMessage) return\n\n this.handleResponse(message)\n\n // This bit of logic ensures that if actions were queued while a request was\n // out to the server, they are sent when the request comes back.\n if (this.updateQueue.length > 0) {\n this.fireMessage()\n }\n\n dispatch('livewire:update')\n }\n\n handleResponse(message) {\n let response = message.response\n\n this.updateServerMemoFromResponseAndMergeBackIntoResponse(message)\n\n store.callHook('message.received', message, this)\n\n if (response.effects.html) {\n // If we get HTML from the server, store it for the next time we might not.\n this.lastFreshHtml = response.effects.html\n\n this.handleMorph(response.effects.html.trim())\n } else {\n // It's important to still \"morphdom\" even when the server HTML hasn't changed,\n // because Alpine needs to be given the chance to update.\n this.handleMorph(this.lastFreshHtml)\n }\n\n if (response.effects.dirty) {\n this.forceRefreshDataBoundElementsMarkedAsDirty(\n response.effects.dirty\n )\n }\n\n if (! message.replaying) {\n this.messageInTransit && this.messageInTransit.resolve()\n\n this.messageInTransit = null\n\n if (response.effects.emits && response.effects.emits.length > 0) {\n response.effects.emits.forEach(event => {\n this.scopedListeners.call(event.event, ...event.params)\n\n if (event.selfOnly) {\n store.emitSelf(this.id, event.event, ...event.params)\n } else if (event.to) {\n store.emitTo(event.to, event.event, ...event.params)\n } else if (event.ancestorsOnly) {\n store.emitUp(this.el, event.event, ...event.params)\n } else {\n store.emit(event.event, ...event.params)\n }\n })\n }\n\n if (\n response.effects.dispatches &&\n response.effects.dispatches.length > 0\n ) {\n response.effects.dispatches.forEach(event => {\n const data = event.data ? event.data : {}\n const e = new CustomEvent(event.event, {\n bubbles: true,\n detail: data,\n })\n this.el.dispatchEvent(e)\n })\n }\n }\n\n store.callHook('message.processed', message, this)\n\n // This means \"$this->redirect()\" was called in the component. let's just bail and redirect.\n if (response.effects.redirect) {\n setTimeout(() => this.redirect(response.effects.redirect))\n\n return\n }\n }\n\n redirect(url) {\n if (window.Turbolinks && window.Turbolinks.supported) {\n window.Turbolinks.visit(url)\n } else {\n window.location.href = url\n }\n }\n\n forceRefreshDataBoundElementsMarkedAsDirty(dirtyInputs) {\n this.walk(el => {\n let directives = wireDirectives(el)\n if (directives.missing('model')) return\n\n const modelValue = directives.get('model').value\n\n if (! (el.nodeName == 'SELECT' && ! el.multiple) && DOM.hasFocus(el) && ! dirtyInputs.includes(modelValue)) return\n\n DOM.setInputValueFromModel(el, this)\n })\n }\n\n addPrefetchAction(action) {\n if (this.prefetchManager.actionHasPrefetch(action)) {\n return\n }\n\n const message = new PrefetchMessage(this, action)\n\n this.prefetchManager.addMessage(message)\n\n this.connection.sendMessage(message)\n }\n\n handleMorph(dom) {\n this.morphChanges = { changed: [], added: [], removed: [] }\n\n morphdom(this.el, dom, {\n childrenOnly: false,\n\n getNodeKey: node => {\n // This allows the tracking of elements by the \"key\" attribute, like in VueJs.\n return node.hasAttribute(`wire:key`)\n ? node.getAttribute(`wire:key`)\n : // If no \"key\", then first check for \"wire:id\", then \"id\"\n node.hasAttribute(`wire:id`)\n ? node.getAttribute(`wire:id`)\n : node.id\n },\n\n onBeforeNodeAdded: node => {\n //\n },\n\n onBeforeNodeDiscarded: node => {\n // If the node is from x-if with a transition.\n if (\n node.__x_inserted_me &&\n Array.from(node.attributes).some(attr =>\n /x-transition/.test(attr.name)\n )\n ) {\n return false\n }\n },\n\n onNodeDiscarded: node => {\n store.callHook('element.removed', node, this)\n\n if (node.__livewire) {\n store.removeComponent(node.__livewire)\n }\n\n this.morphChanges.removed.push(node)\n },\n\n onBeforeElChildrenUpdated: node => {\n //\n },\n\n onBeforeElUpdated: (from, to) => {\n // Because morphdom also supports vDom nodes, it uses isSameNode to detect\n // sameness. When dealing with DOM nodes, we want isEqualNode, otherwise\n // isSameNode will ALWAYS return false.\n if (from.isEqualNode(to)) {\n return false\n }\n\n store.callHook('element.updating', from, to, this)\n\n // Reset the index of wire:modeled select elements in the\n // \"to\" node before doing the diff, so that the options\n // have the proper in-memory .selected value set.\n if (\n from.hasAttribute('wire:model') &&\n from.tagName.toUpperCase() === 'SELECT'\n ) {\n to.selectedIndex = -1\n }\n\n let fromDirectives = wireDirectives(from)\n\n // Honor the \"wire:ignore\" attribute or the .__livewire_ignore element property.\n if (\n fromDirectives.has('ignore') ||\n from.__livewire_ignore === true ||\n from.__livewire_ignore_self === true\n ) {\n if (\n (fromDirectives.has('ignore') &&\n fromDirectives\n .get('ignore')\n .modifiers.includes('self')) ||\n from.__livewire_ignore_self === true\n ) {\n // Don't update children of \"wire:ingore.self\" attribute.\n from.skipElUpdatingButStillUpdateChildren = true\n } else {\n return false\n }\n }\n\n // Children will update themselves.\n if (DOM.isComponentRootEl(from) && from.getAttribute('wire:id') !== this.id) return false\n\n // Give the root Livewire \"to\" element, the same object reference as the \"from\"\n // element. This ensures new Alpine magics like $wire and @entangle can\n // initialize in the context of a real Livewire component object.\n if (DOM.isComponentRootEl(from)) to.__livewire = this\n\n alpinifyElementsForMorphdom(from, to)\n },\n\n onElUpdated: node => {\n this.morphChanges.changed.push(node)\n\n store.callHook('element.updated', node, this)\n },\n\n onNodeAdded: node => {\n const closestComponentId = DOM.closestRoot(node).getAttribute('wire:id')\n\n if (closestComponentId === this.id) {\n if (nodeInitializer.initialize(node, this) === false) {\n return false\n }\n } else if (DOM.isComponentRootEl(node)) {\n store.addComponent(new Component(node, this.connection))\n\n // We don't need to initialize children, the\n // new Component constructor will do that for us.\n node.skipAddingChildren = true\n }\n\n this.morphChanges.added.push(node)\n },\n })\n\n window.skipShow = false\n }\n\n walk(callback, callbackWhenNewComponentIsEncountered = el => { }) {\n walk(this.el, el => {\n // Skip the root component element.\n if (el.isSameNode(this.el)) {\n callback(el)\n return\n }\n\n // If we encounter a nested component, skip walking that tree.\n if (el.hasAttribute('wire:id')) {\n callbackWhenNewComponentIsEncountered(el)\n\n return false\n }\n\n if (callback(el) === false) {\n return false\n }\n })\n }\n\n modelSyncDebounce(callback, time) {\n // Prepare yourself for what's happening here.\n // Any text input with wire:model on it should be \"debounced\" by ~150ms by default.\n // We can't use a simple debounce function because we need a way to clear all the pending\n // debounces if a user submits a form or performs some other action.\n // This is a modified debounce function that acts just like a debounce, except it stores\n // the pending callbacks in a global property so we can \"clear them\" on command instead\n // of waiting for their setTimeouts to expire. I know.\n if (!this.modelDebounceCallbacks) this.modelDebounceCallbacks = []\n\n // This is a \"null\" callback. Each wire:model will resister one of these upon initialization.\n let callbackRegister = { callback: () => { } }\n this.modelDebounceCallbacks.push(callbackRegister)\n\n // This is a normal \"timeout\" for a debounce function.\n var timeout\n\n return e => {\n clearTimeout(timeout)\n\n timeout = setTimeout(() => {\n callback(e)\n timeout = undefined\n\n // Because we just called the callback, let's return the\n // callback register to it's normal \"null\" state.\n callbackRegister.callback = () => { }\n }, time)\n\n // Register the current callback in the register as a kind-of \"escape-hatch\".\n callbackRegister.callback = () => {\n clearTimeout(timeout)\n callback(e)\n }\n }\n }\n\n callAfterModelDebounce(callback) {\n // This is to protect against the following scenario:\n // A user is typing into a debounced input, and hits the enter key.\n // If the enter key submits a form or something, the submission\n // will happen BEFORE the model input finishes syncing because\n // of the debounce. This makes sure to clear anything in the debounce queue.\n\n if (this.modelDebounceCallbacks) {\n this.modelDebounceCallbacks.forEach(callbackRegister => {\n callbackRegister.callback()\n callbackRegister.callback = () => { }\n })\n }\n\n callback()\n }\n\n addListenerForTeardown(teardownCallback) {\n this.tearDownCallbacks.push(teardownCallback)\n }\n\n tearDown() {\n this.tearDownCallbacks.forEach(callback => callback())\n }\n\n upload(\n name,\n file,\n finishCallback = () => { },\n errorCallback = () => { },\n progressCallback = () => { }\n ) {\n this.uploadManager.upload(\n name,\n file,\n finishCallback,\n errorCallback,\n progressCallback\n )\n }\n\n uploadMultiple(\n name,\n files,\n finishCallback = () => { },\n errorCallback = () => { },\n progressCallback = () => { }\n ) {\n this.uploadManager.uploadMultiple(\n name,\n files,\n finishCallback,\n errorCallback,\n progressCallback\n )\n }\n\n removeUpload(\n name,\n tmpFilename,\n finishCallback = () => { },\n errorCallback = () => { }\n ) {\n this.uploadManager.removeUpload(\n name,\n tmpFilename,\n finishCallback,\n errorCallback\n )\n }\n\n get $wire() {\n if (this.dollarWireProxy) return this.dollarWireProxy\n\n let refObj = {}\n\n let component = this\n\n return (this.dollarWireProxy = new Proxy(refObj, {\n get(object, property) {\n if (['_x_interceptor'].includes(property)) return\n\n if (property === 'entangle') {\n return getEntangleFunction(component)\n }\n\n if (property === '__instance') return component\n\n // Forward \"emits\" to base Livewire object.\n if (typeof property === 'string' && property.match(/^emit.*/)) return function (...args) {\n if (property === 'emitSelf') return store.emitSelf(component.id, ...args)\n if (property === 'emitUp') return store.emitUp(component.el, ...args)\n\n return store[property](...args)\n }\n\n if (\n [\n 'get',\n 'set',\n 'sync',\n 'call',\n 'on',\n 'upload',\n 'uploadMultiple',\n 'removeUpload',\n ].includes(property)\n ) {\n // Forward public API methods right away.\n return function (...args) {\n return component[property].apply(component, args)\n }\n }\n\n // If the property exists on the data, return it.\n let getResult = component.get(property)\n\n // If the property does not exist, try calling the method on the class.\n if (getResult === undefined) {\n return function (...args) {\n return component.call.apply(component, [\n property,\n ...args,\n ])\n }\n }\n\n return getResult\n },\n\n set: function (obj, prop, value) {\n component.set(prop, value)\n\n return true\n },\n }))\n }\n}\n","import store from '@/Store'\n\nexport default function () {\n store.registerHook('interceptWireModelAttachListener', (directive, el, component) => {\n if (! (el.tagName.toLowerCase() === 'input' && el.type === 'file')) return\n\n let start = () => el.dispatchEvent(new CustomEvent('livewire-upload-start', { bubbles: true }))\n let finish = () => el.dispatchEvent(new CustomEvent('livewire-upload-finish', { bubbles: true }))\n let error = () => el.dispatchEvent(new CustomEvent('livewire-upload-error', { bubbles: true }))\n let progress = (progressEvent) => {\n var percentCompleted = Math.round( (progressEvent.loaded * 100) / progressEvent.total )\n\n el.dispatchEvent(\n new CustomEvent('livewire-upload-progress', {\n bubbles: true, detail: { progress: percentCompleted }\n })\n )\n }\n\n let eventHandler = e => {\n if (e.target.files.length === 0) return\n\n start()\n\n if (e.target.multiple) {\n component.uploadMultiple(directive.value, e.target.files, finish, error, progress)\n } else {\n component.upload(directive.value, e.target.files[0], finish, error, progress)\n }\n }\n\n el.addEventListener('change', eventHandler)\n\n // There's a bug in browsers where selecting a file, removing it,\n // then re-adding it doesn't fire the change event. This fixes it.\n // Reference: https://stackoverflow.com/questions/12030686/html-input-file-selection-event-not-firing-upon-selecting-the-same-file\n let clearFileInputValue = () => { el.value = null }\n el.addEventListener('click', clearFileInputValue)\n\n component.addListenerForTeardown(() => {\n el.removeEventListener('change', eventHandler)\n el.removeEventListener('click', clearFileInputValue)\n })\n })\n}\n","import store from '@/Store'\n\nexport default function () {\n store.registerHook('component.initialized', component => {\n if (Array.isArray(component.listeners)) {\n component.listeners.forEach(event => {\n if (event.startsWith('echo')) {\n if (typeof Echo === 'undefined') {\n console.warn('Laravel Echo cannot be found')\n return\n }\n\n let event_parts = event.split(/(echo:|echo-)|:|,/)\n\n if (event_parts[1] == 'echo:') {\n event_parts.splice(2, 0, 'channel', undefined)\n }\n\n if (event_parts[2] == 'notification') {\n event_parts.push(undefined, undefined)\n }\n\n let [\n s1,\n signature,\n channel_type,\n s2,\n channel,\n s3,\n event_name,\n ] = event_parts\n\n if (['channel', 'private', 'encryptedPrivate'].includes(channel_type)) {\n Echo[channel_type](channel).listen(event_name, e => {\n store.emit(event, e)\n })\n } else if (channel_type == 'presence') {\n if (['here', 'joining', 'leaving'].includes(event_name)) {\n Echo.join(channel)[event_name](e => {\n store.emit(event, e)\n })\n }else{\n Echo.join(channel).listen(event_name, e => {\n store.emit(event, e)\n })\n }\n } else if (channel_type == 'notification') {\n Echo.private(channel).notification(notification => {\n store.emit(event, notification)\n })\n } else {\n console.warn('Echo channel type not yet supported')\n }\n }\n })\n }\n })\n}\n","import store from '@/Store'\nimport DOM from '../dom/dom'\nimport { wireDirectives } from '../util'\n\nexport default function () {\n store.registerHook('component.initialized', component => {\n component.dirtyEls = []\n })\n\n store.registerHook('element.initialized', (el, component) => {\n if (wireDirectives(el).missing('dirty')) return\n\n component.dirtyEls.push(el)\n })\n\n store.registerHook(\n 'interceptWireModelAttachListener',\n (directive, el, component) => {\n let property = directive.value\n\n el.addEventListener('input', () => {\n component.dirtyEls.forEach(dirtyEl => {\n let directives = wireDirectives(dirtyEl)\n if (\n (directives.has('model') &&\n directives.get('model').value ===\n property) ||\n (directives.has('target') &&\n directives\n .get('target')\n .value.split(',')\n .map(s => s.trim())\n .includes(property))\n ) {\n let isDirty = DOM.valueFromInput(el, component) != component.get(property)\n\n setDirtyState(dirtyEl, isDirty)\n }\n })\n })\n }\n )\n\n store.registerHook('message.received', (message, component) => {\n component.dirtyEls.forEach(element => {\n if (element.__livewire_dirty_cleanup) {\n element.__livewire_dirty_cleanup.forEach(cleanup => cleanup())\n delete element.__livewire_dirty_cleanup\n }\n })\n })\n\n store.registerHook('element.removed', (el, component) => {\n component.dirtyEls.forEach((element, index) => {\n if (element.isSameNode(el)) {\n component.dirtyEls.splice(index, 1)\n }\n })\n })\n}\n\nfunction setDirtyState(el, isDirty) {\n el.__livewire_dirty_cleanup = [];\n\n // Process each of the 'dirty' directives for the element\n wireDirectives(el).all()\n .filter(directive => directive.type === 'dirty')\n .forEach(directive => {\n if (directive.modifiers.includes('class')) {\n const classes = directive.value.split(' ')\n if (directive.modifiers.includes('remove') !== isDirty) {\n el.classList.add(...classes)\n el.__livewire_dirty_cleanup.push(() => el.classList.remove(...classes))\n } else {\n el.classList.remove(...classes)\n el.__livewire_dirty_cleanup.push(() => el.classList.add(...classes))\n }\n } else if (directive.modifiers.includes('attr')) {\n if (directive.modifiers.includes('remove') !== isDirty) {\n el.setAttribute(directive.value, true)\n el.__livewire_dirty_cleanup.push(() => el.removeAttribute(directive.value))\n } else {\n el.removeAttribute(directive.value)\n el.__livewire_dirty_cleanup.push(() => el.setAttribute(directive.value, true))\n }\n } else if (!wireDirectives(el).get('model')) {\n el.style.display = isDirty ? 'inline-block' : 'none'\n el.__livewire_dirty_cleanup.push(() => (el.style.display = isDirty ? 'none' : 'inline-block'))\n }\n });\n}\n","import store from '@/Store'\nimport { wireDirectives } from '../util'\n\nlet cleanupStackByComponentId = {}\n\nexport default function () {\n store.registerHook('element.initialized', (el, component) => {\n let directives = wireDirectives(el)\n\n if (directives.missing('submit')) return\n\n // Set a forms \"disabled\" state on inputs and buttons.\n // Livewire will clean it all up automatically when the form\n // submission returns and the new DOM lacks these additions.\n el.addEventListener('submit', () => {\n cleanupStackByComponentId[component.id] = []\n\n component.walk(node => {\n if (! el.contains(node)) return\n\n if (node.hasAttribute('wire:ignore')) return false\n\n if (\n // <button type=\"submit\">\n (node.tagName.toLowerCase() === 'button' &&\n node.type === 'submit') ||\n // <select>\n node.tagName.toLowerCase() === 'select' ||\n // <input type=\"checkbox|radio\">\n (node.tagName.toLowerCase() === 'input' &&\n (node.type === 'checkbox' || node.type === 'radio'))\n ) {\n if (!node.disabled)\n cleanupStackByComponentId[component.id].push(\n () => (node.disabled = false)\n )\n\n node.disabled = true\n } else if (\n // <input type=\"text\">\n node.tagName.toLowerCase() === 'input' ||\n // <textarea>\n node.tagName.toLowerCase() === 'textarea'\n ) {\n if (!node.readOnly)\n cleanupStackByComponentId[component.id].push(\n () => (node.readOnly = false)\n )\n\n node.readOnly = true\n }\n })\n })\n })\n\n store.registerHook('message.failed', (message, component) => cleanup(component))\n store.registerHook('message.received', (message, component) => cleanup(component))\n}\n\nfunction cleanup(component) {\n if (!cleanupStackByComponentId[component.id]) return\n\n while (cleanupStackByComponentId[component.id].length > 0) {\n cleanupStackByComponentId[component.id].shift()()\n }\n}\n","import store from '@/Store'\n\nexport default function () {\n store.registerHook('message.received', (message, component) => {\n let response = message.response\n\n if (! response.effects.download) return\n\n // We need to use window.webkitURL so downloads work on iOS Safari.\n let urlObject = window.webkitURL || window.URL\n\n let url = urlObject.createObjectURL(\n base64toBlob(response.effects.download.content, response.effects.download.contentType)\n )\n\n let invisibleLink = document.createElement('a')\n\n invisibleLink.style.display = 'none'\n invisibleLink.href = url\n invisibleLink.download = response.effects.download.name\n\n document.body.appendChild(invisibleLink)\n\n invisibleLink.click()\n\n setTimeout(function() {\n urlObject.revokeObjectURL(url)\n }, 0);\n })\n}\n\nfunction base64toBlob(b64Data, contentType = '', sliceSize = 512) {\n const byteCharacters = atob(b64Data)\n const byteArrays = []\n\n if (contentType === null) contentType = ''\n\n for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\n let slice = byteCharacters.slice(offset, offset + sliceSize)\n\n let byteNumbers = new Array(slice.length)\n\n for (let i = 0; i < slice.length; i++) {\n byteNumbers[i] = slice.charCodeAt(i)\n }\n\n let byteArray = new Uint8Array(byteNumbers)\n\n byteArrays.push(byteArray)\n }\n\n return new Blob(byteArrays, { type: contentType });\n}\n","import store from '@/Store'\nimport { wireDirectives} from '@/util'\n\nvar offlineEls = [];\n\nexport default function () {\n store.registerHook('element.initialized', el => {\n if (wireDirectives(el).missing('offline')) return\n\n offlineEls.push(el)\n })\n\n window.addEventListener('offline', () => {\n store.livewireIsOffline = true\n\n offlineEls.forEach(el => {\n toggleOffline(el, true)\n })\n })\n\n window.addEventListener('online', () => {\n store.livewireIsOffline = false\n\n offlineEls.forEach(el => {\n toggleOffline(el, false)\n })\n })\n\n store.registerHook('element.removed', el => {\n offlineEls = offlineEls.filter(el => ! el.isSameNode(el))\n })\n}\n\nfunction toggleOffline(el, isOffline) {\n let directives = wireDirectives(el)\n let directive = directives.get('offline')\n\n if (directive.modifiers.includes('class')) {\n const classes = directive.value.split(' ')\n if (directive.modifiers.includes('remove') !== isOffline) {\n el.classList.add(...classes)\n } else {\n el.classList.remove(...classes)\n }\n } else if (directive.modifiers.includes('attr')) {\n if (directive.modifiers.includes('remove') !== isOffline) {\n el.setAttribute(directive.value, true)\n } else {\n el.removeAttribute(directive.value)\n }\n } else if (! directives.get('model')) {\n el.style.display = isOffline ? 'inline-block' : 'none'\n }\n}\n","import store from '@/Store'\nimport Message from '@/Message';\n\nexport default function () {\n\n let initializedPath = false\n\n let componentIdsThatAreWritingToHistoryState = new Set\n\n LivewireStateManager.clearState()\n\n store.registerHook('component.initialized', component => {\n if (! component.effects.path) return\n\n // We are using setTimeout() to make sure all the components on the page have\n // loaded before we store anything in the history state (because the position\n // of a component on a page matters for generating its state signature).\n setTimeout(() => {\n let url = onlyChangeThePathAndQueryString(initializedPath ? undefined : component.effects.path)\n\n // Generate faux response.\n let response = {\n serverMemo: component.serverMemo,\n effects: component.effects,\n }\n\n normalizeResponse(response, component)\n\n LivewireStateManager.replaceState(url, response, component)\n\n componentIdsThatAreWritingToHistoryState.add(component.id)\n\n initializedPath = true\n })\n })\n\n store.registerHook('message.processed', (message, component) => {\n // Preventing a circular dependancy.\n if (message.replaying) return\n\n let { response } = message\n\n let effects = response.effects || {}\n\n normalizeResponse(response, component)\n\n if ('path' in effects && effects.path !== window.location.href) {\n let url = onlyChangeThePathAndQueryString(effects.path)\n\n LivewireStateManager.pushState(url, response, component)\n\n componentIdsThatAreWritingToHistoryState.add(component.id)\n } else {\n // If the current component has changed it's state, but hasn't written\n // anything new to the URL, we still need to update it's data in the\n // history state so that when a back button is hit, it is caught\n // up to the most recent known data state.\n if (componentIdsThatAreWritingToHistoryState.has(component.id)) {\n LivewireStateManager.replaceState(window.location.href, response, component)\n }\n }\n })\n\n window.addEventListener('popstate', event => {\n if (LivewireStateManager.missingState(event)) return\n\n LivewireStateManager.replayResponses(event, (response, component) => {\n let message = new Message(component, [])\n\n message.storeResponse(response)\n\n message.replaying = true\n\n component.handleResponse(message)\n })\n })\n\n function normalizeResponse(response, component) {\n // Add ALL properties as \"dirty\" so that when the back button is pressed,\n // they ALL are forced to refresh on the page (even if the HTML didn't change).\n response.effects.dirty = Object.keys(response.serverMemo.data)\n\n // Sometimes Livewire doesn't return html from the server to save on bandwidth.\n // So we need to set the HTML no matter what.\n response.effects.html = component.lastFreshHtml\n }\n\n function onlyChangeThePathAndQueryString(url) {\n if (! url) return\n\n let destination = new URL(url)\n\n let afterOrigin = destination.href.replace(destination.origin, '').replace(/\\?$/, '')\n\n return window.location.origin + afterOrigin + window.location.hash\n }\n\n store.registerHook('element.updating', (from, to, component) => {\n // It looks like the element we are about to update is the root\n // element of the component. Let's store this knowledge to\n // reference after update in the \"element.updated\" hook.\n if (from.getAttribute('wire:id') === component.id) {\n component.lastKnownDomId = component.id\n }\n })\n\n store.registerHook('element.updated', (node, component) => {\n // If the element that was just updated was the root DOM element.\n if (component.lastKnownDomId) {\n // Let's check and see if the wire:id was the thing that changed.\n if (node.getAttribute('wire:id') !== component.lastKnownDomId) {\n // If so, we need to change this ID globally everwhere it's referenced.\n store.changeComponentId(component, node.getAttribute('wire:id'))\n }\n\n // Either way, we'll unset this for the next update.\n delete component.lastKnownDomId\n }\n\n // We have to update the component ID because we are replaying responses\n // from similar components but with completely different IDs. If didn't\n // update the component ID, the checksums would fail.\n })\n}\n\nlet LivewireStateManager = {\n replaceState(url, response, component) {\n this.updateState('replaceState', url, response, component)\n },\n\n pushState(url, response, component) {\n this.updateState('pushState', url, response, component)\n },\n\n updateState(method, url, response, component) {\n let state = this.currentState()\n\n state.storeResponse(response, component)\n\n let stateArray = state.toStateArray()\n\n // Copy over existing history state if it's an object, so we don't overwrite it.\n let fullstateObject = Object.assign(history.state || {}, { livewire: stateArray })\n\n let capitalize = subject => subject.charAt(0).toUpperCase() + subject.slice(1)\n\n store.callHook('before'+capitalize(method), fullstateObject, url, component)\n\n try {\n if (decodeURI(url) != 'undefined') {\n url = decodeURI(url).replaceAll(' ', '+').replaceAll('\\\\', '%5C')\n }\n\n history[method](fullstateObject, '', url)\n } catch (error) {\n // Firefox has a 160kb limit to history state entries.\n // If that limit is reached, we'll instead put it in\n // sessionStorage and store a reference to it.\n if (error.name === 'NS_ERROR_ILLEGAL_VALUE') {\n let key = this.storeInSession(stateArray)\n\n fullstateObject.livewire = key\n\n history[method](fullstateObject, '', url)\n }\n }\n },\n\n replayResponses(event, callback) {\n if (! event.state.livewire) return\n\n let state = typeof event.state.livewire === 'string'\n ? new LivewireState(this.getFromSession(event.state.livewire))\n : new LivewireState(event.state.livewire)\n\n state.replayResponses(callback)\n },\n\n currentState() {\n if (! history.state) return new LivewireState\n if (! history.state.livewire) return new LivewireState\n\n let state = typeof history.state.livewire === 'string'\n ? new LivewireState(this.getFromSession(history.state.livewire))\n : new LivewireState(history.state.livewire)\n\n return state\n },\n\n missingState(event) {\n return ! (event.state && event.state.livewire)\n },\n\n clearState() {\n // This is to prevent exponentially increasing the size of our state on page refresh.\n if (window.history.state) window.history.state.livewire = (new LivewireState).toStateArray();\n },\n\n storeInSession(value) {\n let key = 'livewire:'+(new Date).getTime()\n\n let stringifiedValue = JSON.stringify(value)\n\n this.tryToStoreInSession(key, stringifiedValue)\n\n return key\n },\n\n tryToStoreInSession(key, value) {\n // sessionStorage has a max storage limit (usally 5MB).\n // If we meet that limit, we'll start removing entries\n // (oldest first), until there's enough space to store\n // the new one.\n try {\n sessionStorage.setItem(key, value)\n } catch (error) {\n // 22 is Chrome, 1-14 is other browsers.\n if (! [22, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14].includes(error.code)) return\n\n let oldestTimestamp = Object.keys(sessionStorage)\n .map(key => Number(key.replace('livewire:', '')))\n .sort()\n .shift()\n\n if (! oldestTimestamp) return\n\n sessionStorage.removeItem('livewire:'+oldestTimestamp)\n\n this.tryToStoreInSession(key, value)\n }\n },\n\n getFromSession(key) {\n let item = sessionStorage.getItem(key)\n\n if (! item) return\n\n return JSON.parse(item)\n },\n}\n\nclass LivewireState\n{\n constructor(stateArray = []) { this.items = stateArray }\n\n toStateArray() { return this.items }\n\n pushItemInProperOrder(signature, response, component) {\n let targetItem = { signature, response }\n\n // First, we'll check if this signature already has an entry, if so, replace it.\n let existingIndex = this.items.findIndex(item => item.signature === signature)\n\n if (existingIndex !== -1) return this.items[existingIndex] = targetItem\n\n // If it doesn't already exist, we'll add it, but we MUST first see if any of its\n // parents components have entries, and insert it immediately before them.\n // This way, when we replay responses, we will always start with the most\n // inward components and go outwards.\n\n let closestParentId = store.getClosestParentId(component.id, this.componentIdsWithStoredResponses())\n\n if (! closestParentId) return this.items.unshift(targetItem)\n\n let closestParentIndex = this.items.findIndex(item => {\n let { originalComponentId } = this.parseSignature(item.signature)\n\n if (originalComponentId === closestParentId) return true\n })\n\n this.items.splice(closestParentIndex, 0, targetItem);\n }\n\n storeResponse(response, component) {\n let signature = this.getComponentNameBasedSignature(component)\n\n this.pushItemInProperOrder(signature, response, component)\n }\n\n replayResponses(callback) {\n this.items.forEach(({ signature, response }) => {\n let component = this.findComponentBySignature(signature)\n\n if (! component) return\n\n callback(response, component)\n })\n }\n\n // We can't just store component reponses by their id because\n // ids change on every refresh, so history state won't have\n // a component to apply it's changes to. Instead we must\n // generate a unique id based on the components name\n // and it's relative position amongst others with\n // the same name that are loaded on the page.\n getComponentNameBasedSignature(component) {\n let componentName = component.fingerprint.name\n let sameNamedComponents = store.getComponentsByName(componentName)\n let componentIndex = sameNamedComponents.indexOf(component)\n\n return `${component.id}:${componentName}:${componentIndex}`\n }\n\n findComponentBySignature(signature) {\n let { componentName, componentIndex } = this.parseSignature(signature)\n\n let sameNamedComponents = store.getComponentsByName(componentName)\n\n // If we found the component in the proper place, return it,\n // otherwise return the first one.\n return sameNamedComponents[componentIndex] || sameNamedComponents[0] || console.warn(`Livewire: couldn't find component on page: ${componentName}`)\n }\n\n parseSignature(signature) {\n let [originalComponentId, componentName, componentIndex] = signature.split(':')\n\n return { originalComponentId, componentName, componentIndex }\n }\n\n componentIdsWithStoredResponses() {\n return this.items.map(({ signature }) => {\n let { originalComponentId } = this.parseSignature(signature)\n\n return originalComponentId\n })\n }\n}\n","import store from '@/Store'\n\nexport default function () {\n store.registerHook('message.received', (message, component) => {\n let response = message.response\n\n if (! response.effects.forStack) return\n\n // Let's store the updates in an array for execution after the loop,\n // this way we can avoid keyHasAlreadyBeenAddedToTheStack races.\n let updates = []\n \n response.effects.forStack.forEach(({ key, stack, type, contents }) => {\n let startEl = document.querySelector(`[livewire-stack=\"${stack}\"]`)\n let endEl = document.querySelector(`[livewire-end-stack=\"${stack}\"]`)\n if (! startEl || ! endEl) return\n\n if (keyHasAlreadyBeenAddedToTheStack(startEl, endEl, key)) return\n\n let prepend = el => startEl.parentElement.insertBefore(el, startEl.nextElementSibling)\n let push = el => endEl.parentElement.insertBefore(el, endEl)\n\n let frag = createFragment(contents)\n\n updates.push(() => type === 'push' ? push(frag) : prepend(frag))\n })\n\n while (updates.length > 0) updates.shift()() \n })\n}\n\nfunction keyHasAlreadyBeenAddedToTheStack(startEl, endEl, key) {\n let findKeyMarker = el => {\n if (el.isSameNode(endEl)) return\n\n return el.matches(`[livewire-stack-key=\"${key}\"]`) ? el : findKeyMarker(el.nextElementSibling)\n }\n\n return findKeyMarker(startEl)\n}\n\nfunction createFragment(html) {\n return document.createRange().createContextualFragment(html)\n}\n","import DOM from '@/dom/dom'\nimport '@/dom/polyfills/index'\nimport store from '@/Store'\nimport Connection from '@/connection'\nimport Polling from '@/component/Polling'\nimport Component from '@/component/index'\nimport { dispatch, wireDirectives } from '@/util'\nimport FileUploads from '@/component/FileUploads'\nimport LaravelEcho from '@/component/LaravelEcho'\nimport DirtyStates from '@/component/DirtyStates'\nimport DisableForms from '@/component/DisableForms'\nimport FileDownloads from '@/component/FileDownloads'\nimport LoadingStates from '@/component/LoadingStates'\nimport OfflineStates from '@/component/OfflineStates'\nimport SyncBrowserHistory from '@/component/SyncBrowserHistory'\nimport SupportAlpine from '@/component/SupportAlpine'\nimport SupportStacks from '@/component/SupportStacks'\n\nclass Livewire {\n constructor() {\n this.connection = new Connection()\n this.components = store\n this.devToolsEnabled = false\n this.onLoadCallback = () => { }\n }\n\n first() {\n return Object.values(this.components.componentsById)[0].$wire\n }\n\n find(componentId) {\n return this.components.componentsById[componentId].$wire\n }\n\n all() {\n return Object.values(this.components.componentsById).map(\n component => component.$wire\n )\n }\n\n directive(name, callback) {\n this.components.registerDirective(name, callback)\n }\n\n hook(name, callback) {\n this.components.registerHook(name, callback)\n }\n\n onLoad(callback) {\n this.onLoadCallback = callback\n }\n\n onError(callback) {\n this.components.onErrorCallback = callback\n }\n\n emit(event, ...params) {\n this.components.emit(event, ...params)\n }\n\n emitTo(name, event, ...params) {\n this.components.emitTo(name, event, ...params)\n }\n\n on(event, callback) {\n this.components.on(event, callback)\n }\n\n addHeaders(headers) {\n this.connection.headers = { ...this.connection.headers, ...headers}\n }\n\n devTools(enableDevtools) {\n this.devToolsEnabled = enableDevtools\n }\n\n restart() {\n this.stop()\n this.start()\n }\n\n stop() {\n this.components.tearDownComponents()\n }\n\n start() {\n DOM.rootComponentElementsWithNoParents().forEach(el => {\n this.components.addComponent(new Component(el, this.connection))\n })\n\n this.onLoadCallback()\n dispatch('livewire:load')\n\n document.addEventListener(\n 'visibilitychange',\n () => {\n this.components.livewireIsInBackground = document.hidden\n },\n false\n )\n\n this.components.initialRenderIsFinished = true\n }\n\n rescan(node = null) {\n DOM.rootComponentElementsWithNoParents(node).forEach(el => {\n const componentId = wireDirectives(el).get('id').value\n\n if (this.components.hasComponent(componentId)) return\n\n this.components.addComponent(new Component(el, this.connection))\n })\n }\n\n onPageExpired(callback) {\n this.components.sessionHasExpiredCallback = callback\n }\n}\n\nif (!window.Livewire) {\n window.Livewire = Livewire\n}\n\nmonkeyPatchDomSetAttributeToAllowAtSymbols()\n\nSyncBrowserHistory()\nSupportAlpine()\nSupportStacks()\nFileDownloads()\nOfflineStates()\nLoadingStates()\nDisableForms()\nFileUploads()\nLaravelEcho()\nDirtyStates()\nPolling()\n\ndispatch('livewire:available')\n\nexport default Livewire\n\nfunction monkeyPatchDomSetAttributeToAllowAtSymbols() {\n // Because morphdom may add attributes to elements containing \"@\" symbols\n // like in the case of an Alpine `@click` directive, we have to patch\n // the standard Element.setAttribute method to allow this to work.\n let original = Element.prototype.setAttribute\n\n let hostDiv = document.createElement('div')\n\n Element.prototype.setAttribute = function newSetAttribute(name, value) {\n if (! name.includes('@')) {\n return original.call(this, name, value)\n }\n\n hostDiv.innerHTML = `<span ${name}=\"${value}\"></span>`\n\n let attr = hostDiv.firstElementChild.getAttributeNode(name)\n\n hostDiv.firstElementChild.removeAttributeNode(attr)\n\n this.setAttributeNode(attr)\n }\n}\n"],"names":["debounce","func","wait","immediate","timeout","context","this","args","arguments","later","apply","callNow","clearTimeout","setTimeout","wireDirectives","el","DirectiveManager","_classCallCheck","directives","extractTypeModifiersAndValue","_createClass","key","value","type","map","directive","includes","has","find","_this","Array","from","getAttributeNames","filter","name","match","RegExp","_name$replace$split2","_toArray","replace","split","modifiers","slice","Directive","rawName","eventContext","get","getAttribute","parseOutMethodAndParams","method","params","defaultDuration","durationInMilliSeconds","durationInMilliSecondsString","mod","durationInSecondsString","Number","rawMethod","methodAndParamString","Function","concat","fallback","walk","root","callback","node","firstElementChild","nextElementSibling","dispatch","eventName","event","document","createEvent","initEvent","dispatchEvent","getCsrfToken","_window$livewire_toke","tokenTag","head","querySelector","content","window","livewire_token","undefined","kebabCase","subject","toLowerCase","isobject","val","isArray","getValue","target","path","options","isObject","default","isValidObject","String","isString","splitChar","separator","joinChar","isValid","segs","len","length","idx","prop","join","hasProp","n","_default","skipWatcher","resolveCallback","rejectCallback","signature","Math","random","toString","substring","btoa","encodeURIComponent","outerHTML","thing","_Action","_inherits","_super","_createSuper","call","payload","id","JSON","stringify","Action","MessageBus","listeners","push","_len","_key","forEach","Object","keys","HookManager","availableHooks","bus","register","_this$bus","component","store","componentsById","initialRenderIsFinished","livewireIsInBackground","livewireIsOffline","sessionHasExpired","sessionHasExpiredCallback","hooks","onErrorCallback","components","addComponent","findComponent","getComponentsByName","hasComponent","tearDownComponents","_this2","removeComponent","on","emit","_this$listeners","componentsListeningForEvent","addAction","EventAction","emitUp","_len2","_key2","componentsListeningForEventThatAreTreeAncestors","emitSelf","componentId","_len3","_key3","emitTo","componentName","_len4","_key4","parentIds","parent","parentElement","closest","registerDirective","registerHook","callHook","_this$hooks","_len5","_key5","changeComponentId","newId","oldId","fingerprint","children","serverMemo","entries","_ref","_ref2","_slicedToArray","_ref2$","tagName","tearDown","onError","getClosestParentId","childId","subsetOfParentIds","_this3","distancesByParentId","parentId","distance","getDistanceToChild","closestParentId","smallestDistance","min","values","_ref3","_ref4","distanceMemo","parentComponent","childIds","i","DOM","rootComponentElements","querySelectorAll","rootComponentElementsWithNoParents","allEls","onlyChildEls","allModelElementsInside","getByAttributeAndValue","attribute","nextFrame","fn","requestAnimationFrame","bind","closestRoot","closestByAttribute","closestEl","isComponentRootEl","hasAttribute","removeAttribute","setAttribute","hasFocus","activeElement","isInput","toUpperCase","isTextInput","valueFromInput","modelName","modelValue","deferredActions","data","mergeCheckboxValueIntoArray","checked","multiple","getSelectValues","arrayValue","item","setInputValueFromModel","modelString","setInputValue","valueFound","updateSelect","option","selected","text","arrayWrappedValue","fails","exec","error","functionBindNative","test","hasOwnProperty","FunctionPrototype","prototype","uncurryThisWithBind","NATIVE_BIND","functionUncurryThis","ceil","floor","mathTrunc","trunc","x","toIntegerOrInfinity","argument","number","check","it","global_1","globalThis","self","global","defineProperty","defineGlobalProperty","configurable","writable","SHARED","sharedStore","module","version","mode","copyright","license","source","isNullOrUndefined","$TypeError","TypeError","requireObjectCoercible","$Object","toObject","uncurryThis","hasOwnProperty_1","hasOwn","postfix","uid","documentAll","all","IS_HTMLDDA","documentAll_1","$documentAll","isCallable","aFunction","getBuiltIn","namespace","engineUserAgent","process","Deno","versions","v8","userAgent","engineV8Version","symbolConstructorDetection","getOwnPropertySymbols","symbol","Symbol","sham","V8_VERSION","useSymbolAsUid","NATIVE_SYMBOL","iterator","WellKnownSymbolsStore","shared","symbolFor","createWellKnownSymbol","USE_SYMBOL_AS_UID","withoutSetter","wellKnownSymbol","description","TO_STRING_TAG","toStringTagSupport","stringSlice","classofRaw","CORRECT_ARGUMENTS","tryGet","classof","TO_STRING_TAG_SUPPORT","O","tag","result","callee","$String","toString_1","charAt","charCodeAt","createMethod","CONVERT_TO_STRING","$this","pos","first","second","S","position","size","stringMultibyte","codeAt","WeakMap","weakMapBasicDetection","descriptors","EXISTS","createElement","documentCreateElement","ie8DomDefine","DESCRIPTORS","a","v8PrototypeDefineBug","anObject","functionCall","objectIsPrototypeOf","isPrototypeOf","isSymbol","$Symbol","tryToString","aCallable","getMethod","V","P","ordinaryToPrimitive","input","pref","valueOf","TO_PRIMITIVE","toPrimitive","exoticToPrim","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","getOwnPropertyDescriptor","ENUMERABLE","CONFIGURABLE","WRITABLE","f","V8_PROTOTYPE_DEFINE_BUG","Attributes","current","enumerable","IE8_DOM_DEFINE","createPropertyDescriptor","bitmap","createNonEnumerableProperty","object","definePropertyModule","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","set","enforce","getterFor","TYPE","state","NATIVE_WEAK_MAP","metadata","facade","STATE","internalState","$propertyIsEnumerable","propertyIsEnumerable","NASHORN_BUG","descriptor","indexedObject","toIndexedObject","IndexedObject","propertyIsEnumerableModule","getDescriptor","PROPER","functionName","functionToString","inspectSource","CONFIGURABLE_FUNCTION_NAME","require$$0","enforceInternalState","InternalStateModule","getInternalState","CONFIGURABLE_LENGTH","TEMPLATE","makeBuiltIn","exports","getter","setter","arity","constructor","defineBuiltIn","simple","unsafe","nonConfigurable","nonWritable","max","toAbsoluteIndex","index","integer","toLength","lengthOfArrayLike","obj","IS_INCLUDES","fromIndex","arrayIncludes","indexOf","objectKeysInternal","names","enumBugKeys","getOwnPropertyNames","internalObjectKeys","ownKeys","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","copyConstructorProperties","exceptions","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","normalize","POLYFILL","NATIVE","string","isForced_1","_export","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","objectKeys","defineProperties","Properties","props","html","GT","LT","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","NullProtoObjectViaActiveX","activeXDocument","write","close","temp","parentWindow","NullProtoObjectViaIFrame","iframeDocument","iframe","JS","style","display","appendChild","src","contentWindow","open","F","NullProtoObject","ActiveXObject","domain","objectCreate","create","definePropertiesModule","correctPrototypeGetter","getPrototypeOf","ObjectPrototype","objectGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","ITERATOR","BUGGY_SAFARI_ITERATORS","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","NEW_ITERATOR_PROTOTYPE","iteratorsCore","setToStringTag","TAG","iterators","returnThis","iteratorCreateConstructor","IteratorConstructor","NAME","next","ENUMERABLE_NEXT","Iterators","aPossiblePrototype","objectSetPrototypeOf","setPrototypeOf","CORRECT_SETTER","proto","__proto__","PROPER_FUNCTION_NAME","FunctionName","IteratorsCore","KEYS","VALUES","ENTRIES","iteratorDefine","Iterable","DEFAULT","IS_SET","FORCED","createIteratorConstructor","CurrentIteratorPrototype","methods","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","$","createIterResultObject","done","STRING_ITERATOR","setInternalState","defineIterator","iterated","point","functionUncurryThisClause","functionBindContext","that","iteratorClose","kind","innerResult","innerError","callWithSafeIterationClosing","ArrayPrototype","isArrayIteratorMethod","noop","empty","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","isConstructor","called","createProperty","propertyKey","getIteratorMethod","getIterator","usingIterator","iteratorMethod","$Array","arrayFrom","arrayLike","IS_CONSTRUCTOR","argumentsLength","mapfn","mapping","step","SAFE_CLOSING","iteratorWithReturn","return","checkCorrectnessOfIteration","SKIP_CLOSING","ITERATION_SUPPORT","INCORRECT_ITERATION","iterable","UNSCOPABLES","addToUnscopables","$includes","BROKEN_ON_SPARSE","entryUnbind","CONSTRUCTOR","METHOD","MAX_SAFE_INTEGER","doesNotExceedSafeInteger","flattenIntoArray","original","sourceLen","start","depth","mapper","thisArg","element","elementLen","targetIndex","sourceIndex","mapFn","flattenIntoArray_1","SPECIES","arraySpeciesConstructor","originalArray","C","arraySpeciesCreate","flat","depthArg","A","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","callbackfn","specificCreate","boundFunction","arrayIteration","some","every","findIndex","filterReject","$find","FIND","SKIPS_HOLES","$assign","assign","objectAssign","b","B","chr","T","j","TO_ENTRIES","objectToArray","$entries","$values","$Error","Error","TEST","stack","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","errorStackClear","dropEntries","prepareStackTrace","installErrorCause","cause","Result","stopped","ResultPrototype","iterate","unboundFunction","iterFn","AS_ENTRIES","IS_RECORD","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","normalizeStringArgument","$default","errorStackInstallable","$AggregateError","errors","message","isInstance","AggregateErrorPrototype","ERROR_STACK_INSTALLABLE","clearErrorStack","errorsArray","AggregateError","ARRAY_ITERATOR","es_array_iterator","Arguments","objectToString","engineIsNode","setSpecies","CONSTRUCTOR_NAME","Constructor","anInstance","Prototype","aConstructor","speciesConstructor","defaultConstructor","functionApply","Reflect","arraySlice","validateArgumentsLength","passed","required","engineIsIos","setImmediate","clear","clearImmediate","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","$location","defer","channel","port","location","run","runner","listener","post","postMessage","protocol","host","handler","IS_NODE","nextTick","now","IS_IOS","port2","port1","onmessage","addEventListener","importScripts","removeChild","task","engineIsIosPebble","Pebble","engineIsWebosWebkit","macrotask","require$$1","MutationObserver","WebKitMutationObserver","Promise","queueMicrotaskDescriptor","queueMicrotask","flush","last","notify","toggle","promise","then","exit","enter","IS_WEBOS_WEBKIT","IS_IOS_PEBBLE","resolve","createTextNode","observe","characterData","microtask","hostReportErrors","console","perform","Queue","tail","add","entry","promiseNativeConstructor","engineIsDeno","engineIsBrowser","IS_DENO","NativePromiseConstructor","SUBCLASSING","NATIVE_PROMISE_REJECTION_EVENT","PromiseRejectionEvent","FORCED_PROMISE_CONSTRUCTOR","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","IS_BROWSER","promiseConstructorDetection","REJECTION_EVENT","PromiseCapability","reject","$$resolve","$$reject","PROMISE","PromiseConstructorDetection","NATIVE_PROMISE_SUBCLASSING","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromisePrototype","newPromiseCapability","newPromiseCapabilityModule","newGenericPromiseCapability","DISPATCH_EVENT","UNHANDLED_REJECTION","REJECTION_HANDLED","PENDING","FULFILLED","REJECTED","HANDLED","UNHANDLED","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","isThenable","callReaction","reaction","exited","ok","fail","rejection","onHandleUnhandled","isReject","notified","reactions","onUnhandled","reason","isUnhandled","unwrap","internalReject","internalResolve","wrapper","executor","onFulfilled","onRejected","wrap","promiseStaticsIncorrectIteration","PROMISE_STATICS_INCORRECT_ITERATION","capability","$promiseResolve","remaining","alreadyCalled","real","catch","race","r","promiseResolve","promiseCapability","allSettled","status","PROMISE_ANY_ERROR","any","alreadyResolved","alreadyRejected","NON_GENERIC","finally","onFinally","isFunction","e","domIterables","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","classList","DOMTokenListPrototype","domTokenListPrototype","ArrayValues","ArrayIteratorMethods","handlePrototype","CollectionPrototype","COLLECTION_NAME","DOMIterables","METHOD_NAME","try","MATCH","isRegexp","isRegExp","notARegexp","correctIsRegexpLogic","regexp","error1","error2","nativeStartsWith","startsWith","CORRECT_IS_REGEXP_LOGIC","correctIsRegExpLogic","MDN_POLYFILL_BUG","searchString","notARegExp","search","support","searchParams","blob","Blob","formData","arrayBuffer","isDataView","DataView","viewClasses","isArrayBufferView","ArrayBuffer","isView","normalizeName","normalizeValue","iteratorFor","items","shift","Headers","headers","append","header","consumed","body","bodyUsed","fileReaderReady","reader","onload","onerror","readBlobAsArrayBuffer","FileReader","readAsArrayBuffer","readBlobAsText","readAsText","readArrayBufferAsText","buf","view","Uint8Array","chars","fromCharCode","bufferClone","byteLength","buffer","Body","_initBody","_bodyInit","_bodyText","_bodyBlob","FormData","_bodyFormData","URLSearchParams","_bodyArrayBuffer","rejected","isConsumed","byteOffset","decode","json","parse","oldValue","normalizeMethod","upcased","Request","url","credentials","signal","referrer","cache","reParamSearch","Date","getTime","form","trim","bytes","decodeURIComponent","parseHeaders","rawHeaders","substr","line","parts","Response","bodyInit","statusText","clone","response","redirectStatuses","redirect","RangeError","DOMException","err","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","getAllResponseHeaders","responseURL","responseText","ontimeout","onabort","href","fixUrl","withCredentials","responseType","setRequestHeader","onreadystatechange","readyState","removeEventListener","send","fetch$1","polyfill","Element","attributes","matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","s","ownerDocument","parentNode","nodeType","Connection","receiveMessage","messageSendFailed","componentStore","confirm","reload","csrfToken","socketId","getSocketId","appUrl","livewire_app_url","shouldUseLocalePrefix","locale","__testing_request_interceptor","_objectSpread","Accept","Referer","isOutputFromDump","showHtmlModal","onMessage","showExpiredMessage","output","Echo","page","innerHTML","modal","getElementById","width","height","padding","backgroundColor","zIndex","borderRadius","prepend","overflow","hideHtmlModal","focus","Polling","missing","intervalId","fireActionOnInterval","addListenerForTeardown","clearInterval","__livewire_polling_interval","to","interval","durationOr","setInterval","isConnected","inViewport","MethodAction","bounding","getBoundingClientRect","top","innerHeight","documentElement","clientHeight","left","innerWidth","clientWidth","bottom","right","updateQueue","updates","update","dataKey","effects","dirty","returns","_Message","action","toId","Message","morphAttrs","fromNode","toNode","_x_isShown","attr","attrName","attrNamespaceURI","attrValue","attrs","namespaceURI","localName","getAttributeNS","prefix","setAttributeNS","specified","hasAttributeNS","removeAttributeNS","syncBooleanAttrProp","fromEl","toEl","specialElHandlers","OPTION","parentName","nodeName","selectedIndex","INPUT","TEXTAREA","newValue","firstChild","nodeValue","placeholder","SELECT","optgroup","curChild","nextSibling","range","NS_XHTML","doc","HAS_TEMPLATE_SUPPORT","HAS_RANGE_SUPPORT","createRange","createFragmentFromTemplate","str","template","childNodes","createFragmentFromRange","selectNode","createContextualFragment","createFragmentFromWrap","fragment","toElement","compareNodeNames","fromNodeName","toNodeName","actualize","createElementNS","moveChildren","nextChild","ELEMENT_NODE","DOCUMENT_FRAGMENT_NODE","TEXT_NODE","COMMENT_NODE","defaultGetNodeKey","hook","morphdomFactory","toNodeHtml","getNodeKey","onBeforeNodeAdded","onNodeAdded","onBeforeElUpdated","onElUpdated","onBeforeNodeDiscarded","onNodeDiscarded","onBeforeElChildrenUpdated","childrenOnly","fromNodesLookup","keyedRemovalList","addKeyedRemoval","walkDiscardedChildNodes","skipKeyedNodes","removeNode","handleNodeAdded","skipAddingChildren","unmatchedFromEl","replaceChild","morphEl","toElKey","skipElUpdatingButStillUpdateChildren","curToNodeKey","curFromNodeKey","fromNextSibling","toNextSibling","matchingFromEl","curToNodeChild","curFromNodeChild","outer","isSameNode","curFromNodeType","isCompatible","insertBefore","isEqualNode","nodeToBeAdded","cloneNode","onBeforeNodeAddedResult","cleanupFromEl","specialElHandler","isLivewireModel","morphChildren","indexTree","morphedNode","morphedNodeType","toNodeType","elToRemove","morphdom","nodeInitializer","initialize","eval","fireActionRightAway","warn","attachModelListener","attachDomListener","isLazy","hasDebounceModifier","time","_e$detail","model","CustomEvent","detail","documentMode","DeferredModelAction","ModelAction","modelSyncDebounce","navigator","animationName","Event","bubbles","attachListener","selectedSystemKeyModifiers","keyCode","modifier","Boolean","addPrefetchAction","debouncedHandler","debounceIf","callAfterModelDebounce","setEventContext","preventAndStop","_component$scopedList","scopedListeners","_toConsumableArray","preventDefault","stopPropagation","PrefetchManager","prefetchMessagesByActionId","prefetchId","getPrefetchMessageByAction","LoadingStates","targetedLoadingElsByAction","genericLoadingEls","currentlyActiveLoadingEls","currentlyActiveUploadLoadingEls","processLoadingDirective","actions","actionsWithParams","generateSignatureFromMethodAndParams","models","modelActions","reduce","fullAction","part","setLoading","unsetLoading","removeLoadingEl","__livewire_on_finish_loading","actionNames","nonActionOrModelLivewireDirectives","addLoadingEl","actionsNames","actionsName","splice","actionTargetedEls","removeDuplicates","startLoading","setUploadLoading","unsetUploadLoading","endLoading","els","classes","doAndSetCallbackOnElToUndo","_el$classList","_el$classList2","remove","getComputedStyle","getPropertyValue","getDisplayProperty","doCallback","undoCallback","duration","delayModifiers","shortest","shorter","short","long","longer","longest","arr","Set","MessageBag","bag","UploadManager","uploadBag","removeBag","handleSignedUrl","handleS3PreSignedUrl","tmpFilenames","markUploadFinished","markUploadErrored","tmpFilename","finishCallback","file","errorCallback","progressCallback","setUpload","files","uploadObject","startUpload","makeRequest","paths","Host","retrievePaths","upload","progress","round","loaded","total","fileInfos","SupportAlpine","Alpine","refreshAlpineAfterEveryLivewireRequest","addDollarSignWire","supportEntangle","isV3","livewireComponent","_x_hidePromise","_x_runEffects","onComponentInitialized","livewireEl","$el","__livewire","updateElements","magic","wireEl","$wire","addMagicProperty","componentEl","onBeforeComponentInitialized","unobservedData","_typeof","livewireEntangle","livewireProperty","isDeferred","livewirePropertyValue","blockAlpineWatcher","$watch","getPropertyValueIncludingDefers","watch","$data","getEntangleFunction","interceptor","initialValue","effect","disableEffectScheduling","alpinifyElementsForMorphdom","alpinifyElementsForMorphdomV3","__x","__x_transition","isHiding","isShowing","_x_dataStack","beforeAlpineTwoPointSevenPointThree","__x_is_shown","_window$Alpine$versio2","major","minor","patch","Component","connection","lastFreshHtml","checkForMultipleRootElements","initialData","tearDownCallbacks","messageInTransit","prefetchManager","uploadManager","watchers","registerListeners","child","countElementsBeforeMarker","carryCount","Node","textContent","newlyDiscoveredEls","carry","segment","dataValue","shouldSkipWatcherForDataKey","_ref5","_ref6","originalSplitKey","basePropertyName","restOfPropertyName","potentiallyNestedValue","dataGet","watcher","_this4","onResolve","onReject","actionHasPrefetch","actionPrefetchResponseHasBeenReceived","handleResponse","clearPrefetches","fireMessage","_this5","_ref7","_ref8","unshift","sendMessage","capturedRequestsForDusk","storeResponse","PrefetchMessage","_this6","updateServerMemoFromResponseAndMergeBackIntoResponse","handleMorph","forceRefreshDataBoundElementsMarkedAsDirty","replaying","emits","_this6$scopedListener","selfOnly","ancestorsOnly","dispatches","Turbolinks","supported","visit","dirtyInputs","_this7","addMessage","dom","_this8","morphChanges","changed","added","removed","__x_inserted_me","fromDirectives","__livewire_ignore","__livewire_ignore_self","skipShow","_this9","callbackWhenNewComponentIsEncountered","modelDebounceCallbacks","callbackRegister","teardownCallback","uploadMultiple","removeUpload","dollarWireProxy","Proxy","property","getResult","FileUploads","finish","progressEvent","percentCompleted","eventHandler","clearFileInputValue","LaravelEcho","event_parts","_event_parts","channel_type","event_name","listen","private","notification","DirtyStates","dirtyEls","dirtyEl","setDirtyState","__livewire_dirty_cleanup","cleanup","isDirty","_el$classList3","_el$classList4","cleanupStackByComponentId","DisableForms","contains","disabled","readOnly","FileDownloads","download","urlObject","webkitURL","URL","createObjectURL","base64toBlob","contentType","invisibleLink","click","revokeObjectURL","b64Data","sliceSize","byteCharacters","atob","byteArrays","offset","byteNumbers","byteArray","offlineEls","OfflineStates","toggleOffline","isOffline","SyncBrowserHistory","initializedPath","componentIdsThatAreWritingToHistoryState","normalizeResponse","onlyChangeThePathAndQueryString","destination","afterOrigin","origin","hash","LivewireStateManager","clearState","replaceState","pushState","missingState","replayResponses","lastKnownDomId","updateState","currentState","stateArray","toStateArray","fullstateObject","history","livewire","decodeURI","replaceAll","storeInSession","LivewireState","getFromSession","stringifiedValue","tryToStoreInSession","sessionStorage","setItem","code","oldestTimestamp","sort","removeItem","getItem","targetItem","existingIndex","componentIdsWithStoredResponses","closestParentIndex","parseSignature","originalComponentId","getComponentNameBasedSignature","pushItemInProperOrder","findComponentBySignature","componentIndex","_this$parseSignature2","sameNamedComponents","_signature$split2","SupportStacks","forStack","contents","startEl","endEl","keyHasAlreadyBeenAddedToTheStack","frag","createFragment","findKeyMarker","Livewire","devToolsEnabled","onLoadCallback","_this$components","_this$components2","enableDevtools","hidden","monkeyPatchDomSetAttributeToAllowAtSymbols","hostDiv","getAttributeNode","removeAttributeNode","setAttributeNode"],"mappings":"i1MAAO,SAASA,SAASC,KAAMC,KAAMC,WACjC,IAAIC,QACJ,OAAO,WACH,IAAIC,QAAUC,KACVC,KAAOC,UACPC,MAAQ,WACRL,QAAU,KACLD,WAAWF,KAAKS,MAAML,QAASE,OAEpCI,QAAUR,YAAcC,QAC5BQ,aAAaR,SACbA,QAAUS,WAAWJ,MAAOP,MACxBS,SAASV,KAAKS,MAAML,QAASE,MAEzC,CCdO,SAASO,eAAeC,IAC3B,OAAO,IAAIC,mBAAiBD,GAChC,CAAC,IAEKC,mBAAgB,WAClB,SAAAA,iB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