mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-16 08:02:40 +01:00
1 line
388 KiB
Plaintext
Executable File
1 line
388 KiB
Plaintext
Executable File
{"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/to-integer.js","../node_modules/core-js/internals/require-object-coercible.js","../node_modules/core-js/internals/string-multibyte.js","../node_modules/core-js/internals/global.js","../node_modules/core-js/internals/fails.js","../node_modules/core-js/internals/descriptors.js","../node_modules/core-js/internals/is-object.js","../node_modules/core-js/internals/document-create-element.js","../node_modules/core-js/internals/ie8-dom-define.js","../node_modules/core-js/internals/an-object.js","../node_modules/core-js/internals/to-primitive.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/set-global.js","../node_modules/core-js/internals/shared-store.js","../node_modules/core-js/internals/inspect-source.js","../node_modules/core-js/internals/native-weak-map.js","../node_modules/core-js/internals/has.js","../node_modules/core-js/internals/shared.js","../node_modules/core-js/internals/uid.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/classof-raw.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/redefine.js","../node_modules/core-js/internals/path.js","../node_modules/core-js/internals/get-built-in.js","../node_modules/core-js/internals/to-length.js","../node_modules/core-js/internals/to-absolute-index.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/to-object.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/native-symbol.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/iterators-core.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/set-to-string-tag.js","../node_modules/core-js/internals/iterators.js","../node_modules/core-js/internals/create-iterator-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/define-iterator.js","../node_modules/core-js/modules/es.string.iterator.js","../node_modules/core-js/internals/a-function.js","../node_modules/core-js/internals/function-bind-context.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/create-property.js","../node_modules/core-js/internals/to-string-tag-support.js","../node_modules/core-js/internals/classof.js","../node_modules/core-js/internals/get-iterator-method.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/es/array/from.js","../node_modules/core-js/internals/add-to-unscopables.js","../node_modules/core-js/internals/array-method-uses-to-length.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/flatten-into-array.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/object-to-string.js","../node_modules/core-js/modules/es.object.to-string.js","../node_modules/core-js/internals/dom-iterables.js","../node_modules/core-js/modules/es.array.iterator.js","../node_modules/core-js/modules/web.dom-collections.iterator.js","../node_modules/core-js/internals/native-promise-constructor.js","../node_modules/core-js/internals/redefine-all.js","../node_modules/core-js/internals/set-species.js","../node_modules/core-js/internals/an-instance.js","../node_modules/core-js/internals/iterate.js","../node_modules/core-js/internals/species-constructor.js","../node_modules/core-js/internals/engine-user-agent.js","../node_modules/core-js/internals/engine-is-ios.js","../node_modules/core-js/internals/task.js","../node_modules/core-js/internals/microtask.js","../node_modules/core-js/internals/new-promise-capability.js","../node_modules/core-js/internals/promise-resolve.js","../node_modules/core-js/internals/host-report-errors.js","../node_modules/core-js/internals/perform.js","../node_modules/core-js/internals/engine-v8-version.js","../node_modules/core-js/modules/es.promise.js","../node_modules/core-js/modules/es.promise.all-settled.js","../node_modules/core-js/modules/es.promise.finally.js","../node_modules/core-js/es/promise/index.js","../node_modules/core-js/modules/esnext.aggregate-error.js","../node_modules/core-js/modules/esnext.promise.try.js","../node_modules/core-js/modules/esnext.promise.any.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/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(/(.*?)\\((.*)\\)/)\n\n if (methodAndParamString) {\n // This \"$event\" is for use inside the livewire event handler.\n const $event = this.eventContext\n method = methodAndParamString[1]\n // use a function that returns it's arguments to parse and eval all params\n params = eval(`(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\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 }\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 event,\n params,\n }\n }\n\n // Overriding toId() becuase 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 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","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.github.io/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n","// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var toInteger = require('../internals/to-integer');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `String.prototype.{ codePointAt, at }` methods implementation\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = String(requireObjectCoercible($this));\n var position = toInteger(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = S.charCodeAt(position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING ? S.charAt(position) : first\n : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","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 no-undef\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func\n Function('return this')();\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\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\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// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","var isObject = require('../internals/is-object');\n\n// `ToPrimitive` abstract operation\n// https://tc39.github.io/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","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 global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var store = require('../internals/shared-store');\n\nvar functionToString = Function.toString;\n\n// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var global = require('../internals/global');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n","var hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\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.6.5',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\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/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar objectHas = require('../internals/has');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\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) {\n var store = new WeakMap();\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","'use strict';\nvar nativePropertyIsEnumerable = {}.propertyIsEnumerable;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : nativePropertyIsEnumerable;\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","// 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 propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\nvar nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return nativeGetOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);\n enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","var path = require('../internals/path');\nvar global = require('../internals/global');\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var toInteger = require('../internals/to-integer');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toInteger = require('../internals/to-integer');\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 = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var has = require('../internals/has');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\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) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n","// 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.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","exports.f = Object.getOwnPropertySymbols;\n","var getBuiltIn = require('../internals/get-built-in');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n","var has = require('../internals/has');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n","var fails = require('../internals/fails');\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 : typeof detection == 'function' ? 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 redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `ToObject` abstract operation\n// https://tc39.github.io/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","var has = require('../internals/has');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar ObjectPrototype = Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectPrototype : null;\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n","var NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n // eslint-disable-next-line no-undef\n && !Symbol.sham\n // eslint-disable-next-line no-undef\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar has = require('../internals/has');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name)) {\n if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];\n else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\nvar returnThis = function () { return this; };\n\n// `%IteratorPrototype%` object\n// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\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\nif (IteratorPrototype == undefined) IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nif (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {\n createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.github.io/ecma262/#sec-object.keys\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperties\nmodule.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);\n return O;\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var anObject = require('../internals/an-object');\nvar defineProperties = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\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 /* global ActiveXObject */\n activeXDocument = document.domain && new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.github.io/ecma262/#sec-object.create\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : defineProperties(result, Properties);\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC) {\n if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {\n defineProperty(it, 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) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it) && it !== null) {\n throw TypeError(\"Can't set \" + String(it) + ' as a prototype');\n } return it;\n};\n","var anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n setter.call(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter.call(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","'use strict';\nvar $ = require('../internals/export');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\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 (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {\n createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return nativeIterator.call(this); };\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);\n }\n Iterators[NAME] = defaultIterator;\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n redefine(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n return methods;\n};\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\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.github.io/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: String(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return { value: undefined, done: true };\n point = charAt(string, index);\n state.index += point.length;\n return { value: point, done: false };\n});\n","module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var anObject = require('../internals/an-object');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (error) {\n var returnMethod = iterator['return'];\n if (returnMethod !== undefined) anObject(returnMethod.call(iterator));\n throw error;\n }\n};\n","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","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPrimitive(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\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 TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\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' && typeof O.callee == 'function' ? 'Arguments' : result;\n};\n","var classof = require('../internals/classof');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\n// `Array.from` method implementation\n// https://tc39.github.io/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n result = new C();\n for (;!(step = next.call(iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = toLength(O.length);\n result = new C(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n","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 no-throw-literal\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 Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.github.io/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\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 definePropertyModule = require('../internals/object-define-property');\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n definePropertyModule.f(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","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar has = require('../internals/has');\n\nvar defineProperty = Object.defineProperty;\nvar cache = {};\n\nvar thrower = function (it) { throw it; };\n\nmodule.exports = function (METHOD_NAME, options) {\n if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];\n if (!options) options = {};\n var method = [][METHOD_NAME];\n var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;\n var argument0 = has(options, 0) ? options[0] : thrower;\n var argument1 = has(options, 1) ? options[1] : undefined;\n\n return cache[METHOD_NAME] = !!method && !fails(function () {\n if (ACCESSORS && !DESCRIPTORS) return true;\n var O = { length: -1 };\n\n if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });\n else O[1] = 1;\n\n method.call(O, argument0, argument1);\n });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });\n\n// `Array.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\n\nvar call = Function.call;\n\nmodule.exports = function (CONSTRUCTOR, METHOD, length) {\n return bind(call, global[CONSTRUCTOR].prototype[METHOD], length);\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.github.io/ecma262/#sec-isarray\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n","'use strict';\nvar isArray = require('../internals/is-array');\nvar toLength = require('../internals/to-length');\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, 3) : false;\n var element;\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 targetIndex = flattenIntoArray(target, original, element, toLength(element.length), targetIndex, depth - 1) - 1;\n } else {\n if (targetIndex >= 0x1FFFFFFFFFFFFF) throw TypeError('Exceed the acceptable array length');\n target[targetIndex] = element;\n }\n\n targetIndex++;\n }\n sourceIndex++;\n }\n return targetIndex;\n};\n\nmodule.exports = flattenIntoArray;\n","var isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.github.io/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return new (C === undefined ? Array : C)(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 toLength = require('../internals/to-length');\nvar toInteger = require('../internals/to-integer');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\n// `Array.prototype.flat` method\n// https://github.com/tc39/proposal-flatMap\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 = toLength(O.length);\n var A = arraySpeciesCreate(O, 0);\n A.length = flattenIntoArray(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toInteger(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\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 IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = [].push;\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push.call(target, value); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6)\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\nvar USES_TO_LENGTH = arrayMethodUsesToLength(FIND);\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.github.io/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","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 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\nvar nativeAssign = Object.assign;\nvar defineProperty = Object.defineProperty;\n\n// `Object.assign` method\n// https://tc39.github.io/ecma262/#sec-object.assign\nmodule.exports = !nativeAssign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(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 no-undef\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : nativeAssign;\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.github.io/ecma262/#sec-object.assign\n$({ target: 'Object', stat: true, 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 objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\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.call(O, key)) {\n result.push(TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.github.io/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.github.io/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.github.io/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.github.io/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","'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.github.io/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 redefine = require('../internals/redefine');\nvar toString = require('../internals/object-to-string');\n\n// `Object.prototype.toString` method\n// https://tc39.github.io/ecma262/#sec-object.prototype.tostring\nif (!TO_STRING_TAG_SUPPORT) {\n redefine(Object.prototype, 'toString', toString, { unsafe: true });\n}\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","'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 defineIterator = require('../internals/define-iterator');\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.github.io/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.github.io/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return { value: undefined, done: true };\n }\n if (kind == 'keys') return { value: index, done: false };\n if (kind == 'values') return { value: target[index], done: false };\n return { value: [index, target[index]], done: false };\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.github.io/ecma262/#sec-createmappedargumentsobject\nIterators.Arguments = Iterators.Array;\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n } catch (error) {\n CollectionPrototype[ITERATOR] = ArrayValues;\n }\n if (!CollectionPrototype[TO_STRING_TAG]) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n // some Chrome versions have non-configurable methods on DOMTokenList\n if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n } catch (error) {\n CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n }\n }\n }\n}\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","var redefine = require('../internals/redefine');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) redefine(target, key, src[key], options);\n return target;\n};\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","module.exports = function (it, Constructor, name) {\n if (!(it instanceof Constructor)) {\n throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');\n } return it;\n};\n","var anObject = require('../internals/an-object');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {\n var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1);\n var iterator, iterFn, index, length, result, next, step;\n\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (typeof iterFn != 'function') throw TypeError('Target is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = toLength(iterable.length); length > index; index++) {\n result = AS_ENTRIES\n ? boundFunction(anObject(step = iterable[index])[0], step[1])\n : boundFunction(iterable[index]);\n if (result && result instanceof Result) return result;\n } return new Result(false);\n }\n iterator = iterFn.call(iterable);\n }\n\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);\n if (typeof result == 'object' && result && result instanceof Result) return result;\n } return new Result(false);\n};\n\niterate.stop = function (result) {\n return new Result(true, result);\n};\n","var anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.github.io/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\nvar bind = require('../internals/function-bind-context');\nvar html = require('../internals/html');\nvar createElement = require('../internals/document-create-element');\nvar IS_IOS = require('../internals/engine-is-ios');\n\nvar location = global.location;\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\n\nvar run = function (id) {\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\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(id + '', location.protocol + '//' + location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (classof(process) == 'process') {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = bind(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n typeof postMessage == 'function' &&\n !global.importScripts &&\n !fails(post) &&\n location.protocol !== 'file:'\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 global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar classof = require('../internals/classof-raw');\nvar macrotask = require('../internals/task').set;\nvar IS_IOS = require('../internals/engine-is-ios');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar IS_NODE = classof(process) == 'process';\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\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 // Node.js\n if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n } else if (MutationObserver && !IS_IOS) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n then = promise.then;\n notify = function () {\n then.call(promise, flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n}\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","'use strict';\nvar aFunction = require('../internals/a-function');\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 = aFunction(resolve);\n this.reject = aFunction(reject);\n};\n\n// 25.4.1.5 NewPromiseCapability(C)\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","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","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 global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] + match[1];\n} else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n}\n\nmodule.exports = version && +version;\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar redefine = require('../internals/redefine');\nvar redefineAll = require('../internals/redefine-all');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar isObject = require('../internals/is-object');\nvar aFunction = require('../internals/a-function');\nvar anInstance = require('../internals/an-instance');\nvar classof = require('../internals/classof-raw');\nvar inspectSource = require('../internals/inspect-source');\nvar iterate = require('../internals/iterate');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar promiseResolve = require('../internals/promise-resolve');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar InternalStateModule = require('../internals/internal-state');\nvar isForced = require('../internals/is-forced');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\nvar PROMISE = 'Promise';\nvar getInternalState = InternalStateModule.get;\nvar setInternalState = InternalStateModule.set;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar PromiseConstructor = NativePromise;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar $fetch = getBuiltIn('fetch');\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\nvar IS_NODE = classof(process) == 'process';\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\nvar FORCED = isForced(PROMISE, function () {\n var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);\n if (!GLOBAL_CORE_JS_PROMISE) {\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (V8_VERSION === 66) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;\n }\n // We need Promise#finally in the pure version for preventing prototype pollution\n if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;\n // Detect correctness of subclassing with @@species support\n var promise = PromiseConstructor.resolve(1);\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n return !(promise.then(function () { /* empty */ }) instanceof FakePromise);\n});\n\nvar INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {\n PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });\n});\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\n\nvar notify = function (promise, state, isReject) {\n if (state.notified) return;\n state.notified = true;\n var chain = state.reactions;\n microtask(function () {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var index = 0;\n // variable length - can't use forEach\n while (chain.length > index) {\n var reaction = chain[index++];\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(promise, state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\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 then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n }\n state.reactions = [];\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(promise, state);\n });\n};\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 (handler = global['on' + name]) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (promise, state) {\n task.call(global, function () {\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (promise, state) {\n task.call(global, function () {\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, promise, state, unwrap) {\n return function (value) {\n fn(promise, state, value, unwrap);\n };\n};\n\nvar internalReject = function (promise, state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(promise, state, true);\n};\n\nvar internalResolve = function (promise, state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n then.call(value,\n bind(internalResolve, promise, wrapper, state),\n bind(internalReject, promise, wrapper, state)\n );\n } catch (error) {\n internalReject(promise, wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(promise, state, false);\n }\n } catch (error) {\n internalReject(promise, { done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromiseConstructor, PROMISE);\n aFunction(executor);\n Internal.call(this);\n var state = getInternalState(this);\n try {\n executor(bind(internalResolve, this, state), bind(internalReject, this, state));\n } catch (error) {\n internalReject(this, state, error);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: [],\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n Internal.prototype = redefineAll(PromiseConstructor.prototype, {\n // `Promise.prototype.then` method\n // https://tc39.github.io/ecma262/#sec-promise.prototype.then\n then: function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n state.parent = true;\n state.reactions.push(reaction);\n if (state.state != PENDING) notify(this, state, false);\n return reaction.promise;\n },\n // `Promise.prototype.catch` method\n // https://tc39.github.io/ecma262/#sec-promise.prototype.catch\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, promise, state);\n this.reject = bind(internalReject, promise, state);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && typeof NativePromise == 'function') {\n nativeThen = NativePromise.prototype.then;\n\n // wrap native Promise#then for native async functions\n redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n nativeThen.call(that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n\n // wrap fetch result\n if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {\n // eslint-disable-next-line no-unused-vars\n fetch: function fetch(input /* , init */) {\n return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));\n }\n });\n }\n}\n\n$({ global: true, wrap: true, forced: FORCED }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n\nPromiseWrapper = getBuiltIn(PROMISE);\n\n// statics\n$({ target: PROMISE, stat: true, forced: FORCED }, {\n // `Promise.reject` method\n // https://tc39.github.io/ecma262/#sec-promise.reject\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n capability.reject.call(undefined, r);\n return capability.promise;\n }\n});\n\n$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {\n // `Promise.resolve` method\n // https://tc39.github.io/ecma262/#sec-promise.resolve\n resolve: function resolve(x) {\n return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);\n }\n});\n\n$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {\n // `Promise.all` method\n // https://tc39.github.io/ecma262/#sec-promise.all\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n $promiseResolve.call(C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n },\n // `Promise.race` method\n // https://tc39.github.io/ecma262/#sec-promise.race\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n iterate(iterable, function (promise) {\n $promiseResolve.call(C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\n\n// `Promise.allSettled` method\n// https://github.com/tc39/proposal-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 = aFunction(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n promiseResolve.call(C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (e) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: e };\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 IS_PURE = require('../internals/is-pure');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar redefine = require('../internals/redefine');\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromise && fails(function () {\n NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.github.io/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 = typeof onFinally == 'function';\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// patch native Promise.prototype for native async functions\nif (!IS_PURE && typeof NativePromise == 'function' && !NativePromise.prototype['finally']) {\n redefine(NativePromise.prototype, 'finally', getBuiltIn('Promise').prototype['finally']);\n}\n","require('../../modules/es.object.to-string');\nrequire('../../modules/es.string.iterator');\nrequire('../../modules/web.dom-collections.iterator');\nrequire('../../modules/es.promise');\nrequire('../../modules/es.promise.all-settled');\nrequire('../../modules/es.promise.finally');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Promise;\n","'use strict';\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar iterate = require('../internals/iterate');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar getInternalAggregateErrorState = InternalStateModule.getterFor('AggregateError');\n\nvar $AggregateError = function AggregateError(errors, message) {\n var that = this;\n if (!(that instanceof $AggregateError)) return new $AggregateError(errors, message);\n if (setPrototypeOf) {\n that = setPrototypeOf(new Error(message), getPrototypeOf(that));\n }\n var errorsArray = [];\n iterate(errors, errorsArray.push, errorsArray);\n if (DESCRIPTORS) setInternalState(that, { errors: errorsArray, type: 'AggregateError' });\n else that.errors = errorsArray;\n if (message !== undefined) createNonEnumerableProperty(that, 'message', String(message));\n return that;\n};\n\n$AggregateError.prototype = create(Error.prototype, {\n constructor: createPropertyDescriptor(5, $AggregateError),\n message: createPropertyDescriptor(5, ''),\n name: createPropertyDescriptor(5, 'AggregateError')\n});\n\nif (DESCRIPTORS) defineProperty.f($AggregateError.prototype, 'errors', {\n get: function () {\n return getInternalAggregateErrorState(this).errors;\n },\n configurable: true\n});\n\n$({ global: true }, {\n AggregateError: $AggregateError\n});\n","'use strict';\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 }, {\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","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\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://github.com/tc39/proposal-promise-any\n$({ target: 'Promise', stat: true }, {\n any: function any(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 = aFunction(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 errors.push(undefined);\n remaining++;\n promiseResolve.call(C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (e) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = e;\n --remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.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.github.io/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var isRegExp = require('../internals/is-regexp');\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 (e) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (f) { /* empty */ }\n } return false;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\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\nvar nativeStartsWith = ''.startsWith;\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.github.io/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 = String(requireObjectCoercible(this));\n notARegExp(searchString);\n var index = toLength(min(arguments.length > 1 ? arguments[1] : undefined, that.length));\n var search = String(searchString);\n return nativeStartsWith\n ? nativeStartsWith.call(that, search, index)\n : that.slice(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')\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 preProcessedHeaders.split(/\\r?\\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 = 'statusText' in options ? 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 onMessage(message, payload) {\n message.component.receiveMessage(message, payload)\n }\n\n onError(message, status) {\n message.component.messageSendFailed()\n\n return componentStore.onErrorCallback(status)\n }\n\n showExpiredMessage() {\n confirm(\n 'This page has expired due to inactivity.\\nWould you like to refresh the page?'\n ) && window.location.reload()\n }\n\n sendMessage(message) {\n let payload = message.payload()\n let csrfToken = getCsrfToken()\n let socketId = this.getSocketId()\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 `${window.livewire_app_url}/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 // 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) === false) return\n\n if (response.status === 419) {\n if (store.sessionHasExpired) return\n\n store.sessionHasExpired = true\n\n this.showExpiredMessage()\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 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 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 >= 0 &&\n bounding.left >= 0 &&\n bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&\n bounding.right <= (window.innerWidth || document.documentElement.clientWidth)\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.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 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 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 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 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 ? e.detail\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 => action.payload.name)\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 = 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 = 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']\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 timeout = setTimeout(() => {\n doCallback()\n el.__livewire_on_finish_loading.push(() => undoCallback())\n }, 200)\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","\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))\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 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 (! 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 (! 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 (! 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 alpinifyElementsForMorphdom(from, to) {\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 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","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 } 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.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 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 means \"$this->redirect()\" was called in the component. let's just bail and redirect.\n if (response.effects.redirect) {\n this.redirect(response.effects.redirect)\n\n return\n }\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\n store.callHook('message.processed', message, this)\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 (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 (property === 'entangle') {\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\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'].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 Echo.join(channel)[event_name](e => {\n store.emit(event, e)\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()\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 const directive = wireDirectives(el).get('dirty')\n\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 = () => el.classList.remove(...classes)\n } else {\n el.classList.remove(...classes)\n el.__livewire_dirty_cleanup = () => 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 = () =>\n el.removeAttribute(directive.value)\n } else {\n el.removeAttribute(directive.value)\n el.__livewire_dirty_cleanup = () =>\n 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 = () =>\n (el.style.display = isDirty ? 'none' : 'inline-block')\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 Sarfari.\n let urlObject = window.webkitURL || window.URL\n\n let url = urlObject.createObjectURL(\n base64toBlob(response.effects.download.content)\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 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 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 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'\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 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\nif (!window.Livewire) {\n window.Livewire = Livewire\n}\n\nSyncBrowserHistory()\nSupportAlpine()\nFileDownloads()\nOfflineStates()\nLoadingStates()\nDisableForms()\nFileUploads()\nLaravelEcho()\nDirtyStates()\nPolling()\n\ndispatch('livewire:available')\n\nexport default Livewire\n"],"names":["debounce","func","wait","immediate","timeout","context","this","args","arguments","later","apply","callNow","clearTimeout","setTimeout","wireDirectives","el","DirectiveManager","directives","extractTypeModifiersAndValue","type","map","directive","includes","has","find","Array","from","getAttributeNames","filter","name","match","RegExp","replace","split","modifiers","Directive","_this","rawName","eventContext","defaultDuration","durationInMilliSeconds","durationInMilliSecondsString","mod","durationInSecondsString","Number","rawMethod","method","params","methodAndParamString","$event","eval","fallback","getAttribute","parseOutMethodAndParams","value","walk","root","callback","node","firstElementChild","nextElementSibling","dispatch","eventName","event","document","createEvent","initEvent","dispatchEvent","getCsrfToken","tokenTag","head","querySelector","content","window","livewire_token","undefined","kebabCase","subject","toLowerCase","val","isArray","target","path","options","isObject","default","isValidObject","String","isString","splitChar","separator","joinChar","isValid","segs","len","length","idx","prop","slice","join","hasProp","n","key","skipWatcher","resolveCallback","rejectCallback","btoa","encodeURIComponent","outerHTML","thing","payload","JSON","stringify","Action","MessageBus","listeners","push","forEach","Object","keys","availableHooks","bus","register","call","component","store","componentsById","initialRenderIsFinished","livewireIsInBackground","livewireIsOffline","sessionHasExpired","hooks","HookManager","onErrorCallback","components","addComponent","id","findComponent","getComponentsByName","hasComponent","tearDownComponents","_this2","removeComponent","on","emit","componentsListeningForEvent","addAction","EventAction","emitUp","componentsListeningForEventThatAreTreeAncestors","emitSelf","componentId","emitTo","componentName","parentIds","parent","parentElement","closest","registerDirective","registerHook","callHook","changeComponentId","newId","oldId","fingerprint","children","serverMemo","entries","tagName","tearDown","onError","getClosestParentId","childId","subsetOfParentIds","distancesByParentId","parentId","distance","_this3","getDistanceToChild","closestParentId","smallestDistance","Math","min","values","distanceMemo","parentComponent","childIds","i","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","get","modelValue","deferredActions","data","mergeCheckboxValueIntoArray","checked","multiple","getSelectValues","arrayValue","concat","item","setInputValueFromModel","modelString","setInputValue","valueFound","updateSelect","option","selected","text","arrayWrappedValue","ceil","floor","argument","isNaN","it","TypeError","createMethod","CONVERT_TO_STRING","$this","pos","first","second","S","requireObjectCoercible","position","toInteger","size","charCodeAt","charAt","codeAt","check","globalThis","self","global","Function","exec","error","fails","defineProperty","EXISTS","createElement","DESCRIPTORS","a","input","PREFERRED_STRING","toString","valueOf","nativeDefineProperty","O","P","Attributes","anObject","toPrimitive","IE8_DOM_DEFINE","bitmap","enumerable","configurable","writable","object","definePropertyModule","f","createPropertyDescriptor","createNonEnumerableProperty","SHARED","setGlobal","functionToString","inspectSource","WeakMap","test","hasOwnProperty","module","version","mode","copyright","postfix","random","shared","uid","set","enforce","getterFor","TYPE","state","NATIVE_WEAK_MAP","wmget","wmhas","wmset","metadata","STATE","sharedKey","hiddenKeys","objectHas","nativePropertyIsEnumerable","propertyIsEnumerable","getOwnPropertyDescriptor","NASHORN_BUG","1","V","descriptor","classof","IndexedObject","nativeGetOwnPropertyDescriptor","toIndexedObject","propertyIsEnumerableModule","getInternalState","InternalStateModule","enforceInternalState","TEMPLATE","unsafe","simple","noTargetGet","source","prototype","aFunction","variable","namespace","max","index","integer","IS_INCLUDES","fromIndex","toLength","toAbsoluteIndex","indexOf","require$$0","names","result","enumBugKeys","getOwnPropertyNames","internalObjectKeys","getOwnPropertySymbols","getBuiltIn","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","ownKeys","getOwnPropertyDescriptorModule","replacement","isForced","feature","detection","normalize","POLYFILL","NATIVE","string","targetProperty","sourceProperty","TARGET","GLOBAL","STATIC","stat","forced","copyConstructorProperties","sham","redefine","F","constructor","getPrototypeOf","IE_PROTO","ObjectPrototype","CORRECT_PROTOTYPE_GETTER","toObject","Symbol","NATIVE_SYMBOL","iterator","WellKnownSymbolsStore","createWellKnownSymbol","USE_SYMBOL_AS_UID","withoutSetter","ITERATOR","wellKnownSymbol","BUGGY_SAFARI_ITERATORS","returnThis","IteratorPrototype","PrototypeOfArrayIteratorPrototype","arrayIterator","defineProperties","Properties","objectKeys","GT","LT","PROTOTYPE","SCRIPT","EmptyConstructor","scriptTag","NullProtoObjectViaActiveX","activeXDocument","write","close","temp","parentWindow","NullProtoObjectViaIFrame","iframeDocument","iframe","documentCreateElement","JS","style","display","html","appendChild","src","contentWindow","open","NullProtoObject","domain","ActiveXObject","create","TO_STRING_TAG","TAG","IteratorConstructor","NAME","next","setToStringTag","Iterators","setPrototypeOf","setter","CORRECT_SETTER","proto","aPossiblePrototype","__proto__","IteratorsCore","KEYS","VALUES","ENTRIES","Iterable","DEFAULT","IS_SET","FORCED","createIteratorConstructor","CurrentIteratorPrototype","methods","KEY","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","$","STRING_ITERATOR","setInternalState","defineIterator","iterated","point","done","that","b","c","returnMethod","ArrayPrototype","propertyKey","CORRECT_ARGUMENTS","classofRaw","tryGet","TO_STRING_TAG_SUPPORT","tag","callee","arrayLike","step","C","argumentsLength","mapfn","mapping","iteratorMethod","getIteratorMethod","isArrayIteratorMethod","createProperty","callWithSafeIterationClosing","SAFE_CLOSING","called","iteratorWithReturn","return","SKIP_CLOSING","ITERATION_SUPPORT","INCORRECT_ITERATION","checkCorrectnessOfIteration","iterable","UNSCOPABLES","cache","thrower","METHOD_NAME","ACCESSORS","argument0","argument1","$includes","USES_TO_LENGTH","arrayMethodUsesToLength","addToUnscopables","CONSTRUCTOR","METHOD","entryUnbind","arg","flattenIntoArray","original","sourceLen","start","depth","mapper","thisArg","element","targetIndex","sourceIndex","mapFn","SPECIES","originalArray","flat","depthArg","A","arraySpeciesCreate","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","NO_HOLES","callbackfn","specificCreate","boundFunction","some","every","findIndex","$find","FIND","SKIPS_HOLES","nativeAssign","assign","B","symbol","chr","T","j","TO_ENTRIES","$entries","$values","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","ARRAY_ITERATOR","kind","Arguments","ArrayValues","ArrayIteratorMethods","COLLECTION_NAME","DOMIterables","Collection","CollectionPrototype","Promise","CONSTRUCTOR_NAME","Constructor","Result","stopped","AS_ENTRIES","IS_ITERATOR","iterFn","stop","defaultConstructor","userAgent","location","setImmediate","clear","clearImmediate","process","MessageChannel","Dispatch","counter","queue","ONREADYSTATECHANGE","defer","channel","port","run","runner","listener","post","postMessage","protocol","host","nextTick","now","IS_IOS","port2","port1","onmessage","addEventListener","importScripts","removeChild","macrotask","require$$1","MutationObserver","WebKitMutationObserver","IS_NODE","queueMicrotaskDescriptor","queueMicrotask","flush","last","notify","toggle","promise","then","exit","enter","createTextNode","observe","characterData","resolve","task","PromiseCapability","reject","$$resolve","$$reject","x","promiseCapability","newPromiseCapability","console","versions","v8","PROMISE","getInternalPromiseState","PromiseConstructor","NativePromise","$fetch","newPromiseCapabilityModule","newGenericPromiseCapability","DISPATCH_EVENT","UNHANDLED_REJECTION","REJECTION_HANDLED","PENDING","FULFILLED","REJECTED","HANDLED","UNHANDLED","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","V8_VERSION","PromiseRejectionEvent","FakePromise","all","isThenable","isReject","notified","chain","reactions","microtask","ok","exited","reaction","handler","fail","rejection","onHandleUnhandled","onUnhandled","reason","hostReportErrors","isUnhandled","perform","unwrap","internalReject","internalResolve","wrapper","executor","anInstance","redefineAll","onFulfilled","onRejected","speciesConstructor","catch","fetch","promiseResolve","wrap","setSpecies","r","capability","$promiseResolve","remaining","iterate","alreadyCalled","race","allSettled","status","e","NON_GENERIC","real","finally","onFinally","isFunction","getInternalAggregateErrorState","$AggregateError","errors","message","Error","errorsArray","AggregateError","try","PROMISE_ANY_ERROR","any","alreadyResolved","alreadyRejected","MATCH","isRegExp","regexp","nativeStartsWith","startsWith","CORRECT_IS_REGEXP_LOGIC","correctIsRegExpLogic","MDN_POLYFILL_BUG","searchString","notARegExp","search","support","searchParams","blob","Blob","formData","arrayBuffer","isDataView","obj","DataView","isPrototypeOf","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","reParamSearch","Date","getTime","form","trim","bytes","decodeURIComponent","parseHeaders","rawHeaders","line","parts","Response","bodyInit","statusText","clone","response","redirectStatuses","redirect","RangeError","DOMException","err","stack","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","getAllResponseHeaders","responseURL","responseText","ontimeout","onabort","href","fixUrl","withCredentials","responseType","setRequestHeader","onreadystatechange","readyState","removeEventListener","send","polyfill","Element","attributes","matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","s","ownerDocument","parentNode","nodeType","Connection","receiveMessage","messageSendFailed","componentStore","confirm","reload","csrfToken","socketId","getSocketId","__testing_request_interceptor","livewire_app_url","isOutputFromDump","showHtmlModal","onMessage","showExpiredMessage","output","Echo","page","innerHTML","modal","getElementById","width","height","padding","backgroundColor","zIndex","borderRadius","prepend","overflow","hideHtmlModal","focus","missing","intervalId","fireActionOnInterval","addListenerForTeardown","clearInterval","__livewire_polling_interval","to","interval","durationOr","setInterval","isConnected","inViewport","MethodAction","bounding","getBoundingClientRect","top","left","bottom","innerHeight","documentElement","clientHeight","right","innerWidth","clientWidth","updateQueue","updates","update","dataKey","effects","dirty","returns","action","toId","Message","morphAttrs","fromNode","toNode","attr","attrName","attrNamespaceURI","attrValue","attrs","namespaceURI","localName","getAttributeNS","prefix","setAttributeNS","specified","hasAttributeNS","removeAttributeNS","syncBooleanAttrProp","fromEl","toEl","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","noop","defaultGetNodeKey","hook","morphdomFactory","toNodeHtml","getNodeKey","onBeforeNodeAdded","onNodeAdded","onBeforeElUpdated","onElUpdated","onBeforeNodeDiscarded","onNodeDiscarded","onBeforeElChildrenUpdated","childrenOnly","fromNodesLookup","keyedRemovalList","addKeyedRemoval","removeNode","skipKeyedNodes","walkDiscardedChildNodes","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","specialElHandlers","isLivewireModel","morphChildren","indexTree","morphedNode","morphedNodeType","toNodeType","elToRemove","morphdom","initialize","fireActionRightAway","DOM","attachModelListener","attachDomListener","isLazy","hasDebounceModifier","condition","time","model","CustomEvent","detail","documentMode","DeferredModelAction","ModelAction","modelSyncDebounce","navigator","animationName","Event","bubbles","attachListener","selectedSystemKeyModifiers","keyCode","modifier","Boolean","addPrefetchAction","debouncedHandler","debounceIf","callAfterModelDebounce","setEventContext","preventAndStop","scopedListeners","preventDefault","stopPropagation","PrefetchManager","prefetchMessagesByActionId","prefetchId","getPrefetchMessageByAction","targetedLoadingElsByAction","genericLoadingEls","currentlyActiveLoadingEls","currentlyActiveUploadLoadingEls","processLoadingDirective","actions","actionsWithParams","generateSignatureFromMethodAndParams","models","setLoading","unsetLoading","removeLoadingEl","__livewire_on_finish_loading","actionNames","nonActionOrModelLivewireDirectives","addLoadingEl","actionsNames","actionsName","splice","actionTargetedEls","startLoading","setUploadLoading","unsetUploadLoading","endLoading","els","classes","doAndSetCallbackOnElToUndo","classList","add","remove","getComputedStyle","getPropertyValue","getDisplayProperty","doCallback","undoCallback","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","Alpine","refreshAlpineAfterEveryLivewireRequest","addDollarSignWire","supportEntangle","onComponentInitialized","livewireEl","$el","__livewire","livewireComponent","updateElements","addMagicProperty","componentEl","wireEl","warn","$wire","onBeforeComponentInitialized","unobservedData","_typeof","livewireEntangle","livewireProperty","isDeferred","livewirePropertyValue","blockAlpineWatcher","$watch","getPropertyValueIncludingDefers","watch","$data","alpinifyElementsForMorphdom","__x","__x_transition","isHiding","isShowing","beforeAlpineTwoPointSevenPointThree","__x_is_shown","major","minor","patch","Component","connection","lastFreshHtml","initialData","tearDownCallbacks","messageInTransit","prefetchManager","uploadManager","watchers","registerListeners","nodeInitializer","reduce","carry","segment","dataValue","shouldSkipWatcherForDataKey","originalSplitKey","basePropertyName","restOfPropertyName","potentiallyNestedValue","dataGet","watcher","onResolve","onReject","actionHasPrefetch","actionPrefetchResponseHasBeenReceived","handleResponse","clearPrefetches","fireMessage","_this4","unshift","sendMessage","capturedRequestsForDusk","storeResponse","PrefetchMessage","updateServerMemoFromResponseAndMergeBackIntoResponse","handleMorph","forceRefreshDataBoundElementsMarkedAsDirty","replaying","emits","_this5","selfOnly","ancestorsOnly","dispatches","Turbolinks","supported","visit","dirtyInputs","_this6","addMessage","dom","morphChanges","changed","added","removed","__x_inserted_me","_this7","fromDirectives","__livewire_ignore","__livewire_ignore_self","skipShow","callbackWhenNewComponentIsEncountered","_this8","modelDebounceCallbacks","callbackRegister","teardownCallback","uploadMultiple","removeUpload","child","dollarWireProxy","Proxy","property","getResult","finish","progressEvent","percentCompleted","eventHandler","clearFileInputValue","event_parts","channel_type","event_name","listen","private","notification","dirtyEls","dirtyEl","setDirtyState","__livewire_dirty_cleanup","isDirty","cleanupStackByComponentId","contains","disabled","readOnly","cleanup","download","urlObject","webkitURL","URL","createObjectURL","base64toBlob","invisibleLink","click","revokeObjectURL","b64Data","contentType","sliceSize","byteCharacters","atob","byteArrays","offset","byteNumbers","byteArray","offlineEls","toggleOffline","isOffline","initializedPath","componentIdsThatAreWritingToHistoryState","Set","normalizeResponse","onlyChangeThePathAndQueryString","destination","afterOrigin","origin","hash","LivewireStateManager","clearState","replaceState","pushState","missingState","replayResponses","lastKnownDomId","updateState","currentState","stateArray","toStateArray","fullstateObject","history","livewire","storeInSession","LivewireState","getFromSession","stringifiedValue","tryToStoreInSession","sessionStorage","setItem","code","oldestTimestamp","sort","removeItem","getItem","signature","targetItem","existingIndex","componentIdsWithStoredResponses","closestParentIndex","parseSignature","originalComponentId","getComponentNameBasedSignature","pushItemInProperOrder","findComponentBySignature","componentIndex","sameNamedComponents","Livewire","devToolsEnabled","onLoadCallback","enableDevtools","hidden","SyncBrowserHistory","SupportAlpine","FileDownloads","OfflineStates","LoadingStates","DisableForms","FileUploads","LaravelEcho","DirtyStates","Polling"],"mappings":"i5KAAO,SAASA,SAASC,KAAMC,KAAMC,eAC7BC,eACG,eACCC,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,OCZlC,SAASO,eAAeC,WACpB,IAAIC,iBAAiBD,QAG1BC,sDACUD,gDACHA,GAAKA,QACLE,WAAaX,KAAKY,wGAIhBZ,KAAKW,uCAGZE,aACOb,KAAKW,WAAWG,KAAI,SAAAC,kBAAaA,UAAUF,QAAMG,SAASH,sCAG7DA,aACIb,KAAKiB,IAAIJ,kCAGjBA,aACOb,KAAKW,WAAWO,MAAK,SAAAH,kBAAaA,UAAUF,OAASA,qFAIrDM,MAAMC,KAAKpB,KA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