const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CrROdkG4.js","./index-BRhY6FpL.css","./userSelection-DSpF-zVD.js","./userSelection-CF-ymHZW.css"])))=>i.map(i=>d[i]); var __defProp2 = Object.defineProperty; var __name = (target, value3) => __defProp2(target, "name", { value: value3, configurable: true }); (/* @__PURE__ */ __name(function polyfill() { const relList = document.createElement("link").relList; if (relList && relList.supports && relList.supports("modulepreload")) { return; } for (const link of document.querySelectorAll('link[rel="modulepreload"]')) { processPreload(link); } new MutationObserver((mutations) => { for (const mutation of mutations) { if (mutation.type !== "childList") { continue; } for (const node3 of mutation.addedNodes) { if (node3.tagName === "LINK" && node3.rel === "modulepreload") processPreload(node3); } } }).observe(document, { childList: true, subtree: true }); function getFetchOpts(link) { const fetchOpts = {}; if (link.integrity) fetchOpts.integrity = link.integrity; if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy; if (link.crossOrigin === "use-credentials") fetchOpts.credentials = "include"; else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit"; else fetchOpts.credentials = "same-origin"; return fetchOpts; } __name(getFetchOpts, "getFetchOpts"); function processPreload(link) { if (link.ep) return; link.ep = true; const fetchOpts = getFetchOpts(link); fetch(link.href, fetchOpts); } __name(processPreload, "processPreload"); }, "polyfill"))(); var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; function getDefaultExportFromCjs(x2) { return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2; } __name(getDefaultExportFromCjs, "getDefaultExportFromCjs"); function getDefaultExportFromNamespaceIfPresent(n) { return n && Object.prototype.hasOwnProperty.call(n, "default") ? n["default"] : n; } __name(getDefaultExportFromNamespaceIfPresent, "getDefaultExportFromNamespaceIfPresent"); function getDefaultExportFromNamespaceIfNotNamed(n) { return n && Object.prototype.hasOwnProperty.call(n, "default") && Object.keys(n).length === 1 ? n["default"] : n; } __name(getDefaultExportFromNamespaceIfNotNamed, "getDefaultExportFromNamespaceIfNotNamed"); function getAugmentedNamespace(n) { if (n.__esModule) return n; var f = n.default; if (typeof f == "function") { var a = /* @__PURE__ */ __name(function a2() { if (this instanceof a2) { return Reflect.construct(f, arguments, this.constructor); } return f.apply(this, arguments); }, "a"); a.prototype = f.prototype; } else a = {}; Object.defineProperty(a, "__esModule", { value: true }); Object.keys(n).forEach(function(k) { var d = Object.getOwnPropertyDescriptor(n, k); Object.defineProperty(a, k, d.get ? d : { enumerable: true, get: /* @__PURE__ */ __name(function() { return n[k]; }, "get") }); }); return a; } __name(getAugmentedNamespace, "getAugmentedNamespace"); var _Reflect = {}; /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var Reflect$1; (function(Reflect2) { (function(factory) { var root26 = typeof globalThis === "object" ? globalThis : typeof commonjsGlobal === "object" ? commonjsGlobal : typeof self === "object" ? self : typeof this === "object" ? this : sloppyModeThis(); var exporter = makeExporter(Reflect2); if (typeof root26.Reflect !== "undefined") { exporter = makeExporter(root26.Reflect, exporter); } factory(exporter, root26); if (typeof root26.Reflect === "undefined") { root26.Reflect = Reflect2; } function makeExporter(target, previous) { return function(key, value3) { Object.defineProperty(target, key, { configurable: true, writable: true, value: value3 }); if (previous) previous(key, value3); }; } __name(makeExporter, "makeExporter"); function functionThis() { try { return Function("return this;")(); } catch (_2) { } } __name(functionThis, "functionThis"); function indirectEvalThis() { try { return (void 0, eval)("(function() { return this; })()"); } catch (_2) { } } __name(indirectEvalThis, "indirectEvalThis"); function sloppyModeThis() { return functionThis() || indirectEvalThis(); } __name(sloppyModeThis, "sloppyModeThis"); })(function(exporter, root26) { var hasOwn2 = Object.prototype.hasOwnProperty; var supportsSymbol = typeof Symbol === "function"; var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive"; var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator"; var supportsCreate = typeof Object.create === "function"; var supportsProto = { __proto__: [] } instanceof Array; var downLevel = !supportsCreate && !supportsProto; var HashMap = { // create an object in dictionary mode (a.k.a. "slow" mode in v8) create: supportsCreate ? function() { return MakeDictionary(/* @__PURE__ */ Object.create(null)); } : supportsProto ? function() { return MakeDictionary({ __proto__: null }); } : function() { return MakeDictionary({}); }, has: downLevel ? function(map2, key) { return hasOwn2.call(map2, key); } : function(map2, key) { return key in map2; }, get: downLevel ? function(map2, key) { return hasOwn2.call(map2, key) ? map2[key] : void 0; } : function(map2, key) { return map2[key]; } }; var functionPrototype = Object.getPrototypeOf(Function); var _Map = typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill(); var _Set = typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill(); var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill(); var registrySymbol = supportsSymbol ? Symbol.for("@reflect-metadata:registry") : void 0; var metadataRegistry = GetOrCreateMetadataRegistry(); var metadataProvider = CreateMetadataProvider(metadataRegistry); function decorate(decorators, target, propertyKey, attributes) { if (!IsUndefined(propertyKey)) { if (!IsArray(decorators)) throw new TypeError(); if (!IsObject(target)) throw new TypeError(); if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes)) throw new TypeError(); if (IsNull(attributes)) attributes = void 0; propertyKey = ToPropertyKey(propertyKey); return DecorateProperty(decorators, target, propertyKey, attributes); } else { if (!IsArray(decorators)) throw new TypeError(); if (!IsConstructor(target)) throw new TypeError(); return DecorateConstructor(decorators, target); } } __name(decorate, "decorate"); exporter("decorate", decorate); function metadata(metadataKey, metadataValue) { function decorator(target, propertyKey) { if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey)) throw new TypeError(); OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey); } __name(decorator, "decorator"); return decorator; } __name(metadata, "metadata"); exporter("metadata", metadata); function defineMetadata(metadataKey, metadataValue, target, propertyKey) { if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey); } __name(defineMetadata, "defineMetadata"); exporter("defineMetadata", defineMetadata); function hasMetadata(metadataKey, target, propertyKey) { if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); return OrdinaryHasMetadata(metadataKey, target, propertyKey); } __name(hasMetadata, "hasMetadata"); exporter("hasMetadata", hasMetadata); function hasOwnMetadata(metadataKey, target, propertyKey) { if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey); } __name(hasOwnMetadata, "hasOwnMetadata"); exporter("hasOwnMetadata", hasOwnMetadata); function getMetadata(metadataKey, target, propertyKey) { if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); return OrdinaryGetMetadata(metadataKey, target, propertyKey); } __name(getMetadata, "getMetadata"); exporter("getMetadata", getMetadata); function getOwnMetadata(metadataKey, target, propertyKey) { if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey); } __name(getOwnMetadata, "getOwnMetadata"); exporter("getOwnMetadata", getOwnMetadata); function getMetadataKeys(target, propertyKey) { if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); return OrdinaryMetadataKeys(target, propertyKey); } __name(getMetadataKeys, "getMetadataKeys"); exporter("getMetadataKeys", getMetadataKeys); function getOwnMetadataKeys(target, propertyKey) { if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); return OrdinaryOwnMetadataKeys(target, propertyKey); } __name(getOwnMetadataKeys, "getOwnMetadataKeys"); exporter("getOwnMetadataKeys", getOwnMetadataKeys); function deleteMetadata(metadataKey, target, propertyKey) { if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); if (!IsObject(target)) throw new TypeError(); if (!IsUndefined(propertyKey)) propertyKey = ToPropertyKey(propertyKey); var provider = GetMetadataProvider( target, propertyKey, /*Create*/ false ); if (IsUndefined(provider)) return false; return provider.OrdinaryDeleteMetadata(metadataKey, target, propertyKey); } __name(deleteMetadata, "deleteMetadata"); exporter("deleteMetadata", deleteMetadata); function DecorateConstructor(decorators, target) { for (var i2 = decorators.length - 1; i2 >= 0; --i2) { var decorator = decorators[i2]; var decorated = decorator(target); if (!IsUndefined(decorated) && !IsNull(decorated)) { if (!IsConstructor(decorated)) throw new TypeError(); target = decorated; } } return target; } __name(DecorateConstructor, "DecorateConstructor"); function DecorateProperty(decorators, target, propertyKey, descriptor) { for (var i2 = decorators.length - 1; i2 >= 0; --i2) { var decorator = decorators[i2]; var decorated = decorator(target, propertyKey, descriptor); if (!IsUndefined(decorated) && !IsNull(decorated)) { if (!IsObject(decorated)) throw new TypeError(); descriptor = decorated; } } return descriptor; } __name(DecorateProperty, "DecorateProperty"); function OrdinaryHasMetadata(MetadataKey, O, P) { var hasOwn3 = OrdinaryHasOwnMetadata(MetadataKey, O, P); if (hasOwn3) return true; var parent = OrdinaryGetPrototypeOf(O); if (!IsNull(parent)) return OrdinaryHasMetadata(MetadataKey, parent, P); return false; } __name(OrdinaryHasMetadata, "OrdinaryHasMetadata"); function OrdinaryHasOwnMetadata(MetadataKey, O, P) { var provider = GetMetadataProvider( O, P, /*Create*/ false ); if (IsUndefined(provider)) return false; return ToBoolean(provider.OrdinaryHasOwnMetadata(MetadataKey, O, P)); } __name(OrdinaryHasOwnMetadata, "OrdinaryHasOwnMetadata"); function OrdinaryGetMetadata(MetadataKey, O, P) { var hasOwn3 = OrdinaryHasOwnMetadata(MetadataKey, O, P); if (hasOwn3) return OrdinaryGetOwnMetadata(MetadataKey, O, P); var parent = OrdinaryGetPrototypeOf(O); if (!IsNull(parent)) return OrdinaryGetMetadata(MetadataKey, parent, P); return void 0; } __name(OrdinaryGetMetadata, "OrdinaryGetMetadata"); function OrdinaryGetOwnMetadata(MetadataKey, O, P) { var provider = GetMetadataProvider( O, P, /*Create*/ false ); if (IsUndefined(provider)) return; return provider.OrdinaryGetOwnMetadata(MetadataKey, O, P); } __name(OrdinaryGetOwnMetadata, "OrdinaryGetOwnMetadata"); function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) { var provider = GetMetadataProvider( O, P, /*Create*/ true ); provider.OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P); } __name(OrdinaryDefineOwnMetadata, "OrdinaryDefineOwnMetadata"); function OrdinaryMetadataKeys(O, P) { var ownKeys2 = OrdinaryOwnMetadataKeys(O, P); var parent = OrdinaryGetPrototypeOf(O); if (parent === null) return ownKeys2; var parentKeys = OrdinaryMetadataKeys(parent, P); if (parentKeys.length <= 0) return ownKeys2; if (ownKeys2.length <= 0) return parentKeys; var set2 = new _Set(); var keys2 = []; for (var _i = 0, ownKeys_1 = ownKeys2; _i < ownKeys_1.length; _i++) { var key = ownKeys_1[_i]; var hasKey = set2.has(key); if (!hasKey) { set2.add(key); keys2.push(key); } } for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) { var key = parentKeys_1[_a]; var hasKey = set2.has(key); if (!hasKey) { set2.add(key); keys2.push(key); } } return keys2; } __name(OrdinaryMetadataKeys, "OrdinaryMetadataKeys"); function OrdinaryOwnMetadataKeys(O, P) { var provider = GetMetadataProvider( O, P, /*create*/ false ); if (!provider) { return []; } return provider.OrdinaryOwnMetadataKeys(O, P); } __name(OrdinaryOwnMetadataKeys, "OrdinaryOwnMetadataKeys"); function Type2(x2) { if (x2 === null) return 1; switch (typeof x2) { case "undefined": return 0; case "boolean": return 2; case "string": return 3; case "symbol": return 4; case "number": return 5; case "object": return x2 === null ? 1 : 6; default: return 6; } } __name(Type2, "Type"); function IsUndefined(x2) { return x2 === void 0; } __name(IsUndefined, "IsUndefined"); function IsNull(x2) { return x2 === null; } __name(IsNull, "IsNull"); function IsSymbol(x2) { return typeof x2 === "symbol"; } __name(IsSymbol, "IsSymbol"); function IsObject(x2) { return typeof x2 === "object" ? x2 !== null : typeof x2 === "function"; } __name(IsObject, "IsObject"); function ToPrimitive(input, PreferredType) { switch (Type2(input)) { case 0: return input; case 1: return input; case 2: return input; case 3: return input; case 4: return input; case 5: return input; } var hint = PreferredType === 3 ? "string" : PreferredType === 5 ? "number" : "default"; var exoticToPrim = GetMethod(input, toPrimitiveSymbol); if (exoticToPrim !== void 0) { var result = exoticToPrim.call(input, hint); if (IsObject(result)) throw new TypeError(); return result; } return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint); } __name(ToPrimitive, "ToPrimitive"); function OrdinaryToPrimitive(O, hint) { if (hint === "string") { var toString_1 = O.toString; if (IsCallable(toString_1)) { var result = toString_1.call(O); if (!IsObject(result)) return result; } var valueOf = O.valueOf; if (IsCallable(valueOf)) { var result = valueOf.call(O); if (!IsObject(result)) return result; } } else { var valueOf = O.valueOf; if (IsCallable(valueOf)) { var result = valueOf.call(O); if (!IsObject(result)) return result; } var toString_2 = O.toString; if (IsCallable(toString_2)) { var result = toString_2.call(O); if (!IsObject(result)) return result; } } throw new TypeError(); } __name(OrdinaryToPrimitive, "OrdinaryToPrimitive"); function ToBoolean(argument) { return !!argument; } __name(ToBoolean, "ToBoolean"); function ToString(argument) { return "" + argument; } __name(ToString, "ToString"); function ToPropertyKey(argument) { var key = ToPrimitive( argument, 3 /* String */ ); if (IsSymbol(key)) return key; return ToString(key); } __name(ToPropertyKey, "ToPropertyKey"); function IsArray(argument) { return Array.isArray ? Array.isArray(argument) : argument instanceof Object ? argument instanceof Array : Object.prototype.toString.call(argument) === "[object Array]"; } __name(IsArray, "IsArray"); function IsCallable(argument) { return typeof argument === "function"; } __name(IsCallable, "IsCallable"); function IsConstructor(argument) { return typeof argument === "function"; } __name(IsConstructor, "IsConstructor"); function IsPropertyKey(argument) { switch (Type2(argument)) { case 3: return true; case 4: return true; default: return false; } } __name(IsPropertyKey, "IsPropertyKey"); function SameValueZero(x2, y2) { return x2 === y2 || x2 !== x2 && y2 !== y2; } __name(SameValueZero, "SameValueZero"); function GetMethod(V, P) { var func = V[P]; if (func === void 0 || func === null) return void 0; if (!IsCallable(func)) throw new TypeError(); return func; } __name(GetMethod, "GetMethod"); function GetIterator(obj) { var method = GetMethod(obj, iteratorSymbol); if (!IsCallable(method)) throw new TypeError(); var iterator = method.call(obj); if (!IsObject(iterator)) throw new TypeError(); return iterator; } __name(GetIterator, "GetIterator"); function IteratorValue(iterResult) { return iterResult.value; } __name(IteratorValue, "IteratorValue"); function IteratorStep(iterator) { var result = iterator.next(); return result.done ? false : result; } __name(IteratorStep, "IteratorStep"); function IteratorClose(iterator) { var f = iterator["return"]; if (f) f.call(iterator); } __name(IteratorClose, "IteratorClose"); function OrdinaryGetPrototypeOf(O) { var proto = Object.getPrototypeOf(O); if (typeof O !== "function" || O === functionPrototype) return proto; if (proto !== functionPrototype) return proto; var prototype2 = O.prototype; var prototypeProto = prototype2 && Object.getPrototypeOf(prototype2); if (prototypeProto == null || prototypeProto === Object.prototype) return proto; var constructor = prototypeProto.constructor; if (typeof constructor !== "function") return proto; if (constructor === O) return proto; return constructor; } __name(OrdinaryGetPrototypeOf, "OrdinaryGetPrototypeOf"); function CreateMetadataRegistry() { var fallback; if (!IsUndefined(registrySymbol) && typeof root26.Reflect !== "undefined" && !(registrySymbol in root26.Reflect) && typeof root26.Reflect.defineMetadata === "function") { fallback = CreateFallbackProvider(root26.Reflect); } var first; var second; var rest; var targetProviderMap = new _WeakMap(); var registry = { registerProvider, getProvider, setProvider }; return registry; function registerProvider(provider) { if (!Object.isExtensible(registry)) { throw new Error("Cannot add provider to a frozen registry."); } switch (true) { case fallback === provider: break; case IsUndefined(first): first = provider; break; case first === provider: break; case IsUndefined(second): second = provider; break; case second === provider: break; default: if (rest === void 0) rest = new _Set(); rest.add(provider); break; } } __name(registerProvider, "registerProvider"); function getProviderNoCache(O, P) { if (!IsUndefined(first)) { if (first.isProviderFor(O, P)) return first; if (!IsUndefined(second)) { if (second.isProviderFor(O, P)) return first; if (!IsUndefined(rest)) { var iterator = GetIterator(rest); while (true) { var next2 = IteratorStep(iterator); if (!next2) { return void 0; } var provider = IteratorValue(next2); if (provider.isProviderFor(O, P)) { IteratorClose(iterator); return provider; } } } } } if (!IsUndefined(fallback) && fallback.isProviderFor(O, P)) { return fallback; } return void 0; } __name(getProviderNoCache, "getProviderNoCache"); function getProvider(O, P) { var providerMap = targetProviderMap.get(O); var provider; if (!IsUndefined(providerMap)) { provider = providerMap.get(P); } if (!IsUndefined(provider)) { return provider; } provider = getProviderNoCache(O, P); if (!IsUndefined(provider)) { if (IsUndefined(providerMap)) { providerMap = new _Map(); targetProviderMap.set(O, providerMap); } providerMap.set(P, provider); } return provider; } __name(getProvider, "getProvider"); function hasProvider(provider) { if (IsUndefined(provider)) throw new TypeError(); return first === provider || second === provider || !IsUndefined(rest) && rest.has(provider); } __name(hasProvider, "hasProvider"); function setProvider(O, P, provider) { if (!hasProvider(provider)) { throw new Error("Metadata provider not registered."); } var existingProvider = getProvider(O, P); if (existingProvider !== provider) { if (!IsUndefined(existingProvider)) { return false; } var providerMap = targetProviderMap.get(O); if (IsUndefined(providerMap)) { providerMap = new _Map(); targetProviderMap.set(O, providerMap); } providerMap.set(P, provider); } return true; } __name(setProvider, "setProvider"); } __name(CreateMetadataRegistry, "CreateMetadataRegistry"); function GetOrCreateMetadataRegistry() { var metadataRegistry2; if (!IsUndefined(registrySymbol) && IsObject(root26.Reflect) && Object.isExtensible(root26.Reflect)) { metadataRegistry2 = root26.Reflect[registrySymbol]; } if (IsUndefined(metadataRegistry2)) { metadataRegistry2 = CreateMetadataRegistry(); } if (!IsUndefined(registrySymbol) && IsObject(root26.Reflect) && Object.isExtensible(root26.Reflect)) { Object.defineProperty(root26.Reflect, registrySymbol, { enumerable: false, configurable: false, writable: false, value: metadataRegistry2 }); } return metadataRegistry2; } __name(GetOrCreateMetadataRegistry, "GetOrCreateMetadataRegistry"); function CreateMetadataProvider(registry) { var metadata2 = new _WeakMap(); var provider = { isProviderFor: /* @__PURE__ */ __name(function(O, P) { var targetMetadata = metadata2.get(O); if (IsUndefined(targetMetadata)) return false; return targetMetadata.has(P); }, "isProviderFor"), OrdinaryDefineOwnMetadata: OrdinaryDefineOwnMetadata2, OrdinaryHasOwnMetadata: OrdinaryHasOwnMetadata2, OrdinaryGetOwnMetadata: OrdinaryGetOwnMetadata2, OrdinaryOwnMetadataKeys: OrdinaryOwnMetadataKeys2, OrdinaryDeleteMetadata }; metadataRegistry.registerProvider(provider); return provider; function GetOrCreateMetadataMap(O, P, Create) { var targetMetadata = metadata2.get(O); var createdTargetMetadata = false; if (IsUndefined(targetMetadata)) { if (!Create) return void 0; targetMetadata = new _Map(); metadata2.set(O, targetMetadata); createdTargetMetadata = true; } var metadataMap = targetMetadata.get(P); if (IsUndefined(metadataMap)) { if (!Create) return void 0; metadataMap = new _Map(); targetMetadata.set(P, metadataMap); if (!registry.setProvider(O, P, provider)) { targetMetadata.delete(P); if (createdTargetMetadata) { metadata2.delete(O); } throw new Error("Wrong provider for target."); } } return metadataMap; } __name(GetOrCreateMetadataMap, "GetOrCreateMetadataMap"); function OrdinaryHasOwnMetadata2(MetadataKey, O, P) { var metadataMap = GetOrCreateMetadataMap( O, P, /*Create*/ false ); if (IsUndefined(metadataMap)) return false; return ToBoolean(metadataMap.has(MetadataKey)); } __name(OrdinaryHasOwnMetadata2, "OrdinaryHasOwnMetadata"); function OrdinaryGetOwnMetadata2(MetadataKey, O, P) { var metadataMap = GetOrCreateMetadataMap( O, P, /*Create*/ false ); if (IsUndefined(metadataMap)) return void 0; return metadataMap.get(MetadataKey); } __name(OrdinaryGetOwnMetadata2, "OrdinaryGetOwnMetadata"); function OrdinaryDefineOwnMetadata2(MetadataKey, MetadataValue, O, P) { var metadataMap = GetOrCreateMetadataMap( O, P, /*Create*/ true ); metadataMap.set(MetadataKey, MetadataValue); } __name(OrdinaryDefineOwnMetadata2, "OrdinaryDefineOwnMetadata"); function OrdinaryOwnMetadataKeys2(O, P) { var keys2 = []; var metadataMap = GetOrCreateMetadataMap( O, P, /*Create*/ false ); if (IsUndefined(metadataMap)) return keys2; var keysObj = metadataMap.keys(); var iterator = GetIterator(keysObj); var k = 0; while (true) { var next2 = IteratorStep(iterator); if (!next2) { keys2.length = k; return keys2; } var nextValue = IteratorValue(next2); try { keys2[k] = nextValue; } catch (e) { try { IteratorClose(iterator); } finally { throw e; } } k++; } } __name(OrdinaryOwnMetadataKeys2, "OrdinaryOwnMetadataKeys"); function OrdinaryDeleteMetadata(MetadataKey, O, P) { var metadataMap = GetOrCreateMetadataMap( O, P, /*Create*/ false ); if (IsUndefined(metadataMap)) return false; if (!metadataMap.delete(MetadataKey)) return false; if (metadataMap.size === 0) { var targetMetadata = metadata2.get(O); if (!IsUndefined(targetMetadata)) { targetMetadata.delete(P); if (targetMetadata.size === 0) { metadata2.delete(targetMetadata); } } } return true; } __name(OrdinaryDeleteMetadata, "OrdinaryDeleteMetadata"); } __name(CreateMetadataProvider, "CreateMetadataProvider"); function CreateFallbackProvider(reflect) { var defineMetadata2 = reflect.defineMetadata, hasOwnMetadata2 = reflect.hasOwnMetadata, getOwnMetadata2 = reflect.getOwnMetadata, getOwnMetadataKeys2 = reflect.getOwnMetadataKeys, deleteMetadata2 = reflect.deleteMetadata; var metadataOwner = new _WeakMap(); var provider = { isProviderFor: /* @__PURE__ */ __name(function(O, P) { var metadataPropertySet = metadataOwner.get(O); if (!IsUndefined(metadataPropertySet) && metadataPropertySet.has(P)) { return true; } if (getOwnMetadataKeys2(O, P).length) { if (IsUndefined(metadataPropertySet)) { metadataPropertySet = new _Set(); metadataOwner.set(O, metadataPropertySet); } metadataPropertySet.add(P); return true; } return false; }, "isProviderFor"), OrdinaryDefineOwnMetadata: defineMetadata2, OrdinaryHasOwnMetadata: hasOwnMetadata2, OrdinaryGetOwnMetadata: getOwnMetadata2, OrdinaryOwnMetadataKeys: getOwnMetadataKeys2, OrdinaryDeleteMetadata: deleteMetadata2 }; return provider; } __name(CreateFallbackProvider, "CreateFallbackProvider"); function GetMetadataProvider(O, P, Create) { var registeredProvider = metadataRegistry.getProvider(O, P); if (!IsUndefined(registeredProvider)) { return registeredProvider; } if (Create) { if (metadataRegistry.setProvider(O, P, metadataProvider)) { return metadataProvider; } throw new Error("Illegal state."); } return void 0; } __name(GetMetadataProvider, "GetMetadataProvider"); function CreateMapPolyfill() { var cacheSentinel = {}; var arraySentinel = []; var MapIterator = ( /** @class */ function() { function MapIterator2(keys2, values2, selector) { this._index = 0; this._keys = keys2; this._values = values2; this._selector = selector; } __name(MapIterator2, "MapIterator"); MapIterator2.prototype["@@iterator"] = function() { return this; }; MapIterator2.prototype[iteratorSymbol] = function() { return this; }; MapIterator2.prototype.next = function() { var index2 = this._index; if (index2 >= 0 && index2 < this._keys.length) { var result = this._selector(this._keys[index2], this._values[index2]); if (index2 + 1 >= this._keys.length) { this._index = -1; this._keys = arraySentinel; this._values = arraySentinel; } else { this._index++; } return { value: result, done: false }; } return { value: void 0, done: true }; }; MapIterator2.prototype.throw = function(error) { if (this._index >= 0) { this._index = -1; this._keys = arraySentinel; this._values = arraySentinel; } throw error; }; MapIterator2.prototype.return = function(value3) { if (this._index >= 0) { this._index = -1; this._keys = arraySentinel; this._values = arraySentinel; } return { value: value3, done: true }; }; return MapIterator2; }() ); var Map2 = ( /** @class */ function() { function Map3() { this._keys = []; this._values = []; this._cacheKey = cacheSentinel; this._cacheIndex = -2; } __name(Map3, "Map"); Object.defineProperty(Map3.prototype, "size", { get: /* @__PURE__ */ __name(function() { return this._keys.length; }, "get"), enumerable: true, configurable: true }); Map3.prototype.has = function(key) { return this._find( key, /*insert*/ false ) >= 0; }; Map3.prototype.get = function(key) { var index2 = this._find( key, /*insert*/ false ); return index2 >= 0 ? this._values[index2] : void 0; }; Map3.prototype.set = function(key, value3) { var index2 = this._find( key, /*insert*/ true ); this._values[index2] = value3; return this; }; Map3.prototype.delete = function(key) { var index2 = this._find( key, /*insert*/ false ); if (index2 >= 0) { var size2 = this._keys.length; for (var i2 = index2 + 1; i2 < size2; i2++) { this._keys[i2 - 1] = this._keys[i2]; this._values[i2 - 1] = this._values[i2]; } this._keys.length--; this._values.length--; if (SameValueZero(key, this._cacheKey)) { this._cacheKey = cacheSentinel; this._cacheIndex = -2; } return true; } return false; }; Map3.prototype.clear = function() { this._keys.length = 0; this._values.length = 0; this._cacheKey = cacheSentinel; this._cacheIndex = -2; }; Map3.prototype.keys = function() { return new MapIterator(this._keys, this._values, getKey); }; Map3.prototype.values = function() { return new MapIterator(this._keys, this._values, getValue2); }; Map3.prototype.entries = function() { return new MapIterator(this._keys, this._values, getEntry); }; Map3.prototype["@@iterator"] = function() { return this.entries(); }; Map3.prototype[iteratorSymbol] = function() { return this.entries(); }; Map3.prototype._find = function(key, insert2) { if (!SameValueZero(this._cacheKey, key)) { this._cacheIndex = -1; for (var i2 = 0; i2 < this._keys.length; i2++) { if (SameValueZero(this._keys[i2], key)) { this._cacheIndex = i2; break; } } } if (this._cacheIndex < 0 && insert2) { this._cacheIndex = this._keys.length; this._keys.push(key); this._values.push(void 0); } return this._cacheIndex; }; return Map3; }() ); return Map2; function getKey(key, _2) { return key; } __name(getKey, "getKey"); function getValue2(_2, value3) { return value3; } __name(getValue2, "getValue"); function getEntry(key, value3) { return [key, value3]; } __name(getEntry, "getEntry"); } __name(CreateMapPolyfill, "CreateMapPolyfill"); function CreateSetPolyfill() { var Set2 = ( /** @class */ function() { function Set3() { this._map = new _Map(); } __name(Set3, "Set"); Object.defineProperty(Set3.prototype, "size", { get: /* @__PURE__ */ __name(function() { return this._map.size; }, "get"), enumerable: true, configurable: true }); Set3.prototype.has = function(value3) { return this._map.has(value3); }; Set3.prototype.add = function(value3) { return this._map.set(value3, value3), this; }; Set3.prototype.delete = function(value3) { return this._map.delete(value3); }; Set3.prototype.clear = function() { this._map.clear(); }; Set3.prototype.keys = function() { return this._map.keys(); }; Set3.prototype.values = function() { return this._map.keys(); }; Set3.prototype.entries = function() { return this._map.entries(); }; Set3.prototype["@@iterator"] = function() { return this.keys(); }; Set3.prototype[iteratorSymbol] = function() { return this.keys(); }; return Set3; }() ); return Set2; } __name(CreateSetPolyfill, "CreateSetPolyfill"); function CreateWeakMapPolyfill() { var UUID_SIZE = 16; var keys2 = HashMap.create(); var rootKey = CreateUniqueKey(); return ( /** @class */ function() { function WeakMap2() { this._key = CreateUniqueKey(); } __name(WeakMap2, "WeakMap"); WeakMap2.prototype.has = function(target) { var table = GetOrCreateWeakMapTable( target, /*create*/ false ); return table !== void 0 ? HashMap.has(table, this._key) : false; }; WeakMap2.prototype.get = function(target) { var table = GetOrCreateWeakMapTable( target, /*create*/ false ); return table !== void 0 ? HashMap.get(table, this._key) : void 0; }; WeakMap2.prototype.set = function(target, value3) { var table = GetOrCreateWeakMapTable( target, /*create*/ true ); table[this._key] = value3; return this; }; WeakMap2.prototype.delete = function(target) { var table = GetOrCreateWeakMapTable( target, /*create*/ false ); return table !== void 0 ? delete table[this._key] : false; }; WeakMap2.prototype.clear = function() { this._key = CreateUniqueKey(); }; return WeakMap2; }() ); function CreateUniqueKey() { var key; do key = "@@WeakMap@@" + CreateUUID(); while (HashMap.has(keys2, key)); keys2[key] = true; return key; } __name(CreateUniqueKey, "CreateUniqueKey"); function GetOrCreateWeakMapTable(target, create2) { if (!hasOwn2.call(target, rootKey)) { if (!create2) return void 0; Object.defineProperty(target, rootKey, { value: HashMap.create() }); } return target[rootKey]; } __name(GetOrCreateWeakMapTable, "GetOrCreateWeakMapTable"); function FillRandomBytes(buffer2, size2) { for (var i2 = 0; i2 < size2; ++i2) buffer2[i2] = Math.random() * 255 | 0; return buffer2; } __name(FillRandomBytes, "FillRandomBytes"); function GenRandomBytes(size2) { if (typeof Uint8Array === "function") { var array = new Uint8Array(size2); if (typeof crypto !== "undefined") { crypto.getRandomValues(array); } else if (typeof msCrypto !== "undefined") { msCrypto.getRandomValues(array); } else { FillRandomBytes(array, size2); } return array; } return FillRandomBytes(new Array(size2), size2); } __name(GenRandomBytes, "GenRandomBytes"); function CreateUUID() { var data24 = GenRandomBytes(UUID_SIZE); data24[6] = data24[6] & 79 | 64; data24[8] = data24[8] & 191 | 128; var result = ""; for (var offset = 0; offset < UUID_SIZE; ++offset) { var byte = data24[offset]; if (offset === 4 || offset === 6 || offset === 8) result += "-"; if (byte < 16) result += "0"; result += byte.toString(16).toLowerCase(); } return result; } __name(CreateUUID, "CreateUUID"); } __name(CreateWeakMapPolyfill, "CreateWeakMapPolyfill"); function MakeDictionary(obj) { obj.__ = void 0; delete obj.__; return obj; } __name(MakeDictionary, "MakeDictionary"); }); })(Reflect$1 || (Reflect$1 = {})); window["__COMFYUI_FRONTEND_VERSION__"] = "1.2.47"; console.log("ComfyUI Front-end version:", "1.2.47"); /** * @vue/shared v3.4.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function makeMap(str, expectsLowerCase) { const set2 = new Set(str.split(",")); return expectsLowerCase ? (val) => set2.has(val.toLowerCase()) : (val) => set2.has(val); } __name(makeMap, "makeMap"); const EMPTY_OBJ = false ? Object.freeze({}) : {}; const EMPTY_ARR = false ? Object.freeze([]) : []; const NOOP = /* @__PURE__ */ __name(() => { }, "NOOP"); const NO = /* @__PURE__ */ __name(() => false, "NO"); const isOn = /* @__PURE__ */ __name((key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97), "isOn"); const isModelListener = /* @__PURE__ */ __name((key) => key.startsWith("onUpdate:"), "isModelListener"); const extend$1 = Object.assign; const remove$1 = /* @__PURE__ */ __name((arr, el) => { const i2 = arr.indexOf(el); if (i2 > -1) { arr.splice(i2, 1); } }, "remove$1"); const hasOwnProperty$3 = Object.prototype.hasOwnProperty; const hasOwn$3 = /* @__PURE__ */ __name((val, key) => hasOwnProperty$3.call(val, key), "hasOwn$3"); const isArray$4 = Array.isArray; const isMap = /* @__PURE__ */ __name((val) => toTypeString$1(val) === "[object Map]", "isMap"); const isSet = /* @__PURE__ */ __name((val) => toTypeString$1(val) === "[object Set]", "isSet"); const isDate$3 = /* @__PURE__ */ __name((val) => toTypeString$1(val) === "[object Date]", "isDate$3"); const isRegExp$2 = /* @__PURE__ */ __name((val) => toTypeString$1(val) === "[object RegExp]", "isRegExp$2"); const isFunction$4 = /* @__PURE__ */ __name((val) => typeof val === "function", "isFunction$4"); const isString$5 = /* @__PURE__ */ __name((val) => typeof val === "string", "isString$5"); const isSymbol$1 = /* @__PURE__ */ __name((val) => typeof val === "symbol", "isSymbol$1"); const isObject$6 = /* @__PURE__ */ __name((val) => val !== null && typeof val === "object", "isObject$6"); const isPromise$2 = /* @__PURE__ */ __name((val) => { return (isObject$6(val) || isFunction$4(val)) && isFunction$4(val.then) && isFunction$4(val.catch); }, "isPromise$2"); const objectToString$1 = Object.prototype.toString; const toTypeString$1 = /* @__PURE__ */ __name((value3) => objectToString$1.call(value3), "toTypeString$1"); const toRawType = /* @__PURE__ */ __name((value3) => { return toTypeString$1(value3).slice(8, -1); }, "toRawType"); const isPlainObject$3 = /* @__PURE__ */ __name((val) => toTypeString$1(val) === "[object Object]", "isPlainObject$3"); const isIntegerKey = /* @__PURE__ */ __name((key) => isString$5(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key, "isIntegerKey"); const isReservedProp = /* @__PURE__ */ makeMap( // the leading comma is intentional so empty string "" is also included ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" ); const isBuiltInDirective = /* @__PURE__ */ makeMap( "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo" ); const cacheStringFunction$1 = /* @__PURE__ */ __name((fn) => { const cache2 = /* @__PURE__ */ Object.create(null); return (str) => { const hit = cache2[str]; return hit || (cache2[str] = fn(str)); }; }, "cacheStringFunction$1"); const camelizeRE$1 = /-(\w)/g; const camelize$1 = cacheStringFunction$1((str) => { return str.replace(camelizeRE$1, (_2, c) => c ? c.toUpperCase() : ""); }); const hyphenateRE$1 = /\B([A-Z])/g; const hyphenate$1 = cacheStringFunction$1( (str) => str.replace(hyphenateRE$1, "-$1").toLowerCase() ); const capitalize$1 = cacheStringFunction$1((str) => { return str.charAt(0).toUpperCase() + str.slice(1); }); const toHandlerKey = cacheStringFunction$1((str) => { const s = str ? `on${capitalize$1(str)}` : ``; return s; }); const hasChanged = /* @__PURE__ */ __name((value3, oldValue) => !Object.is(value3, oldValue), "hasChanged"); const invokeArrayFns = /* @__PURE__ */ __name((fns, ...arg) => { for (let i2 = 0; i2 < fns.length; i2++) { fns[i2](...arg); } }, "invokeArrayFns"); const def = /* @__PURE__ */ __name((obj, key, value3, writable = false) => { Object.defineProperty(obj, key, { configurable: true, enumerable: false, writable, value: value3 }); }, "def"); const looseToNumber = /* @__PURE__ */ __name((val) => { const n = parseFloat(val); return isNaN(n) ? val : n; }, "looseToNumber"); const toNumber = /* @__PURE__ */ __name((val) => { const n = isString$5(val) ? Number(val) : NaN; return isNaN(n) ? val : n; }, "toNumber"); let _globalThis$1; const getGlobalThis$1 = /* @__PURE__ */ __name(() => { return _globalThis$1 || (_globalThis$1 = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {}); }, "getGlobalThis$1"); const identRE = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/; function genPropsAccessExp(name) { return identRE.test(name) ? `__props.${name}` : `__props[${JSON.stringify(name)}]`; } __name(genPropsAccessExp, "genPropsAccessExp"); const PatchFlags = { "TEXT": 1, "1": "TEXT", "CLASS": 2, "2": "CLASS", "STYLE": 4, "4": "STYLE", "PROPS": 8, "8": "PROPS", "FULL_PROPS": 16, "16": "FULL_PROPS", "NEED_HYDRATION": 32, "32": "NEED_HYDRATION", "STABLE_FRAGMENT": 64, "64": "STABLE_FRAGMENT", "KEYED_FRAGMENT": 128, "128": "KEYED_FRAGMENT", "UNKEYED_FRAGMENT": 256, "256": "UNKEYED_FRAGMENT", "NEED_PATCH": 512, "512": "NEED_PATCH", "DYNAMIC_SLOTS": 1024, "1024": "DYNAMIC_SLOTS", "DEV_ROOT_FRAGMENT": 2048, "2048": "DEV_ROOT_FRAGMENT", "HOISTED": -1, "-1": "HOISTED", "BAIL": -2, "-2": "BAIL" }; const PatchFlagNames = { [1]: `TEXT`, [2]: `CLASS`, [4]: `STYLE`, [8]: `PROPS`, [16]: `FULL_PROPS`, [32]: `NEED_HYDRATION`, [64]: `STABLE_FRAGMENT`, [128]: `KEYED_FRAGMENT`, [256]: `UNKEYED_FRAGMENT`, [512]: `NEED_PATCH`, [1024]: `DYNAMIC_SLOTS`, [2048]: `DEV_ROOT_FRAGMENT`, [-1]: `HOISTED`, [-2]: `BAIL` }; const ShapeFlags = { "ELEMENT": 1, "1": "ELEMENT", "FUNCTIONAL_COMPONENT": 2, "2": "FUNCTIONAL_COMPONENT", "STATEFUL_COMPONENT": 4, "4": "STATEFUL_COMPONENT", "TEXT_CHILDREN": 8, "8": "TEXT_CHILDREN", "ARRAY_CHILDREN": 16, "16": "ARRAY_CHILDREN", "SLOTS_CHILDREN": 32, "32": "SLOTS_CHILDREN", "TELEPORT": 64, "64": "TELEPORT", "SUSPENSE": 128, "128": "SUSPENSE", "COMPONENT_SHOULD_KEEP_ALIVE": 256, "256": "COMPONENT_SHOULD_KEEP_ALIVE", "COMPONENT_KEPT_ALIVE": 512, "512": "COMPONENT_KEPT_ALIVE", "COMPONENT": 6, "6": "COMPONENT" }; const SlotFlags = { "STABLE": 1, "1": "STABLE", "DYNAMIC": 2, "2": "DYNAMIC", "FORWARDED": 3, "3": "FORWARDED" }; const slotFlagsText = { [1]: "STABLE", [2]: "DYNAMIC", [3]: "FORWARDED" }; const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error"; const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED); const isGloballyWhitelisted = isGloballyAllowed; const range = 2; function generateCodeFrame$1(source, start2 = 0, end = source.length) { start2 = Math.max(0, Math.min(start2, source.length)); end = Math.max(0, Math.min(end, source.length)); if (start2 > end) return ""; let lines = source.split(/(\r?\n)/); const newlineSequences = lines.filter((_2, idx) => idx % 2 === 1); lines = lines.filter((_2, idx) => idx % 2 === 0); let count = 0; const res = []; for (let i2 = 0; i2 < lines.length; i2++) { count += lines[i2].length + (newlineSequences[i2] && newlineSequences[i2].length || 0); if (count >= start2) { for (let j = i2 - range; j <= i2 + range || end > count; j++) { if (j < 0 || j >= lines.length) continue; const line = j + 1; res.push( `${line}${" ".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}` ); const lineLength = lines[j].length; const newLineSeqLength = newlineSequences[j] && newlineSequences[j].length || 0; if (j === i2) { const pad = start2 - (count - (lineLength + newLineSeqLength)); const length = Math.max( 1, end > count ? lineLength - pad : end - start2 ); res.push(` | ` + " ".repeat(pad) + "^".repeat(length)); } else if (j > i2) { if (end > count) { const length = Math.max(Math.min(end - count, lineLength), 1); res.push(` | ` + "^".repeat(length)); } count += lineLength + newLineSeqLength; } } break; } } return res.join("\n"); } __name(generateCodeFrame$1, "generateCodeFrame$1"); function normalizeStyle(value3) { if (isArray$4(value3)) { const res = {}; for (let i2 = 0; i2 < value3.length; i2++) { const item2 = value3[i2]; const normalized = isString$5(item2) ? parseStringStyle(item2) : normalizeStyle(item2); if (normalized) { for (const key in normalized) { res[key] = normalized[key]; } } } return res; } else if (isString$5(value3) || isObject$6(value3)) { return value3; } } __name(normalizeStyle, "normalizeStyle"); const listDelimiterRE = /;(?![^(]*\))/g; const propertyDelimiterRE = /:([^]+)/; const styleCommentRE = /\/\*[^]*?\*\//g; function parseStringStyle(cssText) { const ret = {}; cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item2) => { if (item2) { const tmp = item2.split(propertyDelimiterRE); tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); } }); return ret; } __name(parseStringStyle, "parseStringStyle"); function stringifyStyle(styles) { let ret = ""; if (!styles || isString$5(styles)) { return ret; } for (const key in styles) { const value3 = styles[key]; if (isString$5(value3) || typeof value3 === "number") { const normalizedKey = key.startsWith(`--`) ? key : hyphenate$1(key); ret += `${normalizedKey}:${value3};`; } } return ret; } __name(stringifyStyle, "stringifyStyle"); function normalizeClass(value3) { let res = ""; if (isString$5(value3)) { res = value3; } else if (isArray$4(value3)) { for (let i2 = 0; i2 < value3.length; i2++) { const normalized = normalizeClass(value3[i2]); if (normalized) { res += normalized + " "; } } } else if (isObject$6(value3)) { for (const name in value3) { if (value3[name]) { res += name + " "; } } } return res.trim(); } __name(normalizeClass, "normalizeClass"); function normalizeProps(props) { if (!props) return null; let { class: klass, style } = props; if (klass && !isString$5(klass)) { props.class = normalizeClass(klass); } if (style) { props.style = normalizeStyle(style); } return props; } __name(normalizeProps, "normalizeProps"); const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"; const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"; const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"; const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"; const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS); const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS); const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS); const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS); const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`; const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs); const isBooleanAttr = /* @__PURE__ */ makeMap( specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected` ); function includeBooleanAttr(value3) { return !!value3 || value3 === ""; } __name(includeBooleanAttr, "includeBooleanAttr"); const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/; const attrValidationCache = {}; function isSSRSafeAttrName(name) { if (attrValidationCache.hasOwnProperty(name)) { return attrValidationCache[name]; } const isUnsafe = unsafeAttrCharRE.test(name); if (isUnsafe) { console.error(`unsafe attribute name: ${name}`); } return attrValidationCache[name] = !isUnsafe; } __name(isSSRSafeAttrName, "isSSRSafeAttrName"); const propsToAttrMap = { acceptCharset: "accept-charset", className: "class", htmlFor: "for", httpEquiv: "http-equiv" }; const isKnownHtmlAttr = /* @__PURE__ */ makeMap( `accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap` ); const isKnownSvgAttr = /* @__PURE__ */ makeMap( `xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan` ); function isRenderableAttrValue(value3) { if (value3 == null) { return false; } const type = typeof value3; return type === "string" || type === "number" || type === "boolean"; } __name(isRenderableAttrValue, "isRenderableAttrValue"); const escapeRE = /["'&<>]/; function escapeHtml$1(string) { const str = "" + string; const match = escapeRE.exec(str); if (!match) { return str; } let html = ""; let escaped; let index2; let lastIndex = 0; for (index2 = match.index; index2 < str.length; index2++) { switch (str.charCodeAt(index2)) { case 34: escaped = """; break; case 38: escaped = "&"; break; case 39: escaped = "'"; break; case 60: escaped = "<"; break; case 62: escaped = ">"; break; default: continue; } if (lastIndex !== index2) { html += str.slice(lastIndex, index2); } lastIndex = index2 + 1; html += escaped; } return lastIndex !== index2 ? html + str.slice(lastIndex, index2) : html; } __name(escapeHtml$1, "escapeHtml$1"); const commentStripRE = /^-?>||--!>| looseEqual(item2, val)); } __name(looseIndexOf, "looseIndexOf"); const isRef$1 = /* @__PURE__ */ __name((val) => { return !!(val && val.__v_isRef === true); }, "isRef$1"); const toDisplayString$1 = /* @__PURE__ */ __name((val) => { return isString$5(val) ? val : val == null ? "" : isArray$4(val) || isObject$6(val) && (val.toString === objectToString$1 || !isFunction$4(val.toString)) ? isRef$1(val) ? toDisplayString$1(val.value) : JSON.stringify(val, replacer, 2) : String(val); }, "toDisplayString$1"); const replacer = /* @__PURE__ */ __name((_key, val) => { if (isRef$1(val)) { return replacer(_key, val.value); } else if (isMap(val)) { return { [`Map(${val.size})`]: [...val.entries()].reduce( (entries, [key, val2], i2) => { entries[stringifySymbol(key, i2) + " =>"] = val2; return entries; }, {} ) }; } else if (isSet(val)) { return { [`Set(${val.size})`]: [...val.values()].map((v2) => stringifySymbol(v2)) }; } else if (isSymbol$1(val)) { return stringifySymbol(val); } else if (isObject$6(val) && !isArray$4(val) && !isPlainObject$3(val)) { return String(val); } return val; }, "replacer"); const stringifySymbol = /* @__PURE__ */ __name((v2, i2 = "") => { var _a; return ( // Symbol.description in es2019+ so we need to cast here to pass // the lib: es2016 check isSymbol$1(v2) ? `Symbol(${(_a = v2.description) != null ? _a : i2})` : v2 ); }, "stringifySymbol"); /** * @vue/reactivity v3.4.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ function warn$3(msg, ...args) { console.warn(`[Vue warn] ${msg}`, ...args); } __name(warn$3, "warn$3"); let activeEffectScope; class EffectScope { static { __name(this, "EffectScope"); } constructor(detached = false) { this.detached = detached; this._active = true; this.effects = []; this.cleanups = []; this.parent = activeEffectScope; if (!detached && activeEffectScope) { this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push( this ) - 1; } } get active() { return this._active; } run(fn) { if (this._active) { const currentEffectScope = activeEffectScope; try { activeEffectScope = this; return fn(); } finally { activeEffectScope = currentEffectScope; } } else if (false) { warn$3(`cannot run an inactive effect scope.`); } } /** * This should only be called on non-detached scopes * @internal */ on() { activeEffectScope = this; } /** * This should only be called on non-detached scopes * @internal */ off() { activeEffectScope = this.parent; } stop(fromParent) { if (this._active) { let i2, l; for (i2 = 0, l = this.effects.length; i2 < l; i2++) { this.effects[i2].stop(); } for (i2 = 0, l = this.cleanups.length; i2 < l; i2++) { this.cleanups[i2](); } if (this.scopes) { for (i2 = 0, l = this.scopes.length; i2 < l; i2++) { this.scopes[i2].stop(true); } } if (!this.detached && this.parent && !fromParent) { const last = this.parent.scopes.pop(); if (last && last !== this) { this.parent.scopes[this.index] = last; last.index = this.index; } } this.parent = void 0; this._active = false; } } } function effectScope(detached) { return new EffectScope(detached); } __name(effectScope, "effectScope"); function recordEffectScope(effect2, scope = activeEffectScope) { if (scope && scope.active) { scope.effects.push(effect2); } } __name(recordEffectScope, "recordEffectScope"); function getCurrentScope() { return activeEffectScope; } __name(getCurrentScope, "getCurrentScope"); function onScopeDispose(fn) { if (activeEffectScope) { activeEffectScope.cleanups.push(fn); } else if (false) { warn$3( `onScopeDispose() is called when there is no active effect scope to be associated with.` ); } } __name(onScopeDispose, "onScopeDispose"); let activeEffect; class ReactiveEffect { static { __name(this, "ReactiveEffect"); } constructor(fn, trigger2, scheduler, scope) { this.fn = fn; this.trigger = trigger2; this.scheduler = scheduler; this.active = true; this.deps = []; this._dirtyLevel = 4; this._trackId = 0; this._runnings = 0; this._shouldSchedule = false; this._depsLength = 0; recordEffectScope(this, scope); } get dirty() { if (this._dirtyLevel === 2 || this._dirtyLevel === 3) { this._dirtyLevel = 1; pauseTracking(); for (let i2 = 0; i2 < this._depsLength; i2++) { const dep = this.deps[i2]; if (dep.computed) { triggerComputed(dep.computed); if (this._dirtyLevel >= 4) { break; } } } if (this._dirtyLevel === 1) { this._dirtyLevel = 0; } resetTracking(); } return this._dirtyLevel >= 4; } set dirty(v2) { this._dirtyLevel = v2 ? 4 : 0; } run() { this._dirtyLevel = 0; if (!this.active) { return this.fn(); } let lastShouldTrack = shouldTrack; let lastEffect = activeEffect; try { shouldTrack = true; activeEffect = this; this._runnings++; preCleanupEffect(this); return this.fn(); } finally { postCleanupEffect(this); this._runnings--; activeEffect = lastEffect; shouldTrack = lastShouldTrack; } } stop() { if (this.active) { preCleanupEffect(this); postCleanupEffect(this); this.onStop && this.onStop(); this.active = false; } } } function triggerComputed(computed2) { return computed2.value; } __name(triggerComputed, "triggerComputed"); function preCleanupEffect(effect2) { effect2._trackId++; effect2._depsLength = 0; } __name(preCleanupEffect, "preCleanupEffect"); function postCleanupEffect(effect2) { if (effect2.deps.length > effect2._depsLength) { for (let i2 = effect2._depsLength; i2 < effect2.deps.length; i2++) { cleanupDepEffect(effect2.deps[i2], effect2); } effect2.deps.length = effect2._depsLength; } } __name(postCleanupEffect, "postCleanupEffect"); function cleanupDepEffect(dep, effect2) { const trackId = dep.get(effect2); if (trackId !== void 0 && effect2._trackId !== trackId) { dep.delete(effect2); if (dep.size === 0) { dep.cleanup(); } } } __name(cleanupDepEffect, "cleanupDepEffect"); function effect(fn, options3) { if (fn.effect instanceof ReactiveEffect) { fn = fn.effect.fn; } const _effect = new ReactiveEffect(fn, NOOP, () => { if (_effect.dirty) { _effect.run(); } }); if (options3) { extend$1(_effect, options3); if (options3.scope) recordEffectScope(_effect, options3.scope); } if (!options3 || !options3.lazy) { _effect.run(); } const runner = _effect.run.bind(_effect); runner.effect = _effect; return runner; } __name(effect, "effect"); function stop(runner) { runner.effect.stop(); } __name(stop, "stop"); let shouldTrack = true; let pauseScheduleStack = 0; const trackStack = []; function pauseTracking() { trackStack.push(shouldTrack); shouldTrack = false; } __name(pauseTracking, "pauseTracking"); function enableTracking() { trackStack.push(shouldTrack); shouldTrack = true; } __name(enableTracking, "enableTracking"); function resetTracking() { const last = trackStack.pop(); shouldTrack = last === void 0 ? true : last; } __name(resetTracking, "resetTracking"); function pauseScheduling() { pauseScheduleStack++; } __name(pauseScheduling, "pauseScheduling"); function resetScheduling() { pauseScheduleStack--; while (!pauseScheduleStack && queueEffectSchedulers.length) { queueEffectSchedulers.shift()(); } } __name(resetScheduling, "resetScheduling"); function trackEffect(effect2, dep, debuggerEventExtraInfo) { var _a; if (dep.get(effect2) !== effect2._trackId) { dep.set(effect2, effect2._trackId); const oldDep = effect2.deps[effect2._depsLength]; if (oldDep !== dep) { if (oldDep) { cleanupDepEffect(oldDep, effect2); } effect2.deps[effect2._depsLength++] = dep; } else { effect2._depsLength++; } if (false) { (_a = effect2.onTrack) == null ? void 0 : _a.call(effect2, extend$1({ effect: effect2 }, debuggerEventExtraInfo)); } } } __name(trackEffect, "trackEffect"); const queueEffectSchedulers = []; function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) { var _a; pauseScheduling(); for (const effect2 of dep.keys()) { let tracking; if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) { effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0); effect2._dirtyLevel = dirtyLevel; } if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) { if (false) { (_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend$1({ effect: effect2 }, debuggerEventExtraInfo)); } effect2.trigger(); if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) { effect2._shouldSchedule = false; if (effect2.scheduler) { queueEffectSchedulers.push(effect2.scheduler); } } } } resetScheduling(); } __name(triggerEffects, "triggerEffects"); const createDep = /* @__PURE__ */ __name((cleanup, computed2) => { const dep = /* @__PURE__ */ new Map(); dep.cleanup = cleanup; dep.computed = computed2; return dep; }, "createDep"); const targetMap = /* @__PURE__ */ new WeakMap(); const ITERATE_KEY = Symbol(false ? "iterate" : ""); const MAP_KEY_ITERATE_KEY = Symbol(false ? "Map key iterate" : ""); function track(target, type, key) { if (shouldTrack && activeEffect) { let depsMap = targetMap.get(target); if (!depsMap) { targetMap.set(target, depsMap = /* @__PURE__ */ new Map()); } let dep = depsMap.get(key); if (!dep) { depsMap.set(key, dep = createDep(() => depsMap.delete(key))); } trackEffect( activeEffect, dep, false ? { target, type, key } : void 0 ); } } __name(track, "track"); function trigger(target, type, key, newValue, oldValue, oldTarget) { const depsMap = targetMap.get(target); if (!depsMap) { return; } let deps = []; if (type === "clear") { deps = [...depsMap.values()]; } else if (key === "length" && isArray$4(target)) { const newLength = Number(newValue); depsMap.forEach((dep, key2) => { if (key2 === "length" || !isSymbol$1(key2) && key2 >= newLength) { deps.push(dep); } }); } else { if (key !== void 0) { deps.push(depsMap.get(key)); } switch (type) { case "add": if (!isArray$4(target)) { deps.push(depsMap.get(ITERATE_KEY)); if (isMap(target)) { deps.push(depsMap.get(MAP_KEY_ITERATE_KEY)); } } else if (isIntegerKey(key)) { deps.push(depsMap.get("length")); } break; case "delete": if (!isArray$4(target)) { deps.push(depsMap.get(ITERATE_KEY)); if (isMap(target)) { deps.push(depsMap.get(MAP_KEY_ITERATE_KEY)); } } break; case "set": if (isMap(target)) { deps.push(depsMap.get(ITERATE_KEY)); } break; } } pauseScheduling(); for (const dep of deps) { if (dep) { triggerEffects( dep, 4, false ? { target, type, key, newValue, oldValue, oldTarget } : void 0 ); } } resetScheduling(); } __name(trigger, "trigger"); function getDepFromReactive(object, key) { const depsMap = targetMap.get(object); return depsMap && depsMap.get(key); } __name(getDepFromReactive, "getDepFromReactive"); const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`); const builtInSymbols = new Set( /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol$1) ); const arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations(); function createArrayInstrumentations() { const instrumentations = {}; ["includes", "indexOf", "lastIndexOf"].forEach((key) => { instrumentations[key] = function(...args) { const arr = toRaw(this); for (let i2 = 0, l = this.length; i2 < l; i2++) { track(arr, "get", i2 + ""); } const res = arr[key](...args); if (res === -1 || res === false) { return arr[key](...args.map(toRaw)); } else { return res; } }; }); ["push", "pop", "shift", "unshift", "splice"].forEach((key) => { instrumentations[key] = function(...args) { pauseTracking(); pauseScheduling(); const res = toRaw(this)[key].apply(this, args); resetScheduling(); resetTracking(); return res; }; }); return instrumentations; } __name(createArrayInstrumentations, "createArrayInstrumentations"); function hasOwnProperty$2(key) { if (!isSymbol$1(key)) key = String(key); const obj = toRaw(this); track(obj, "has", key); return obj.hasOwnProperty(key); } __name(hasOwnProperty$2, "hasOwnProperty$2"); class BaseReactiveHandler { static { __name(this, "BaseReactiveHandler"); } constructor(_isReadonly = false, _isShallow = false) { this._isReadonly = _isReadonly; this._isShallow = _isShallow; } get(target, key, receiver) { const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow; if (key === "__v_isReactive") { return !isReadonly2; } else if (key === "__v_isReadonly") { return isReadonly2; } else if (key === "__v_isShallow") { return isShallow2; } else if (key === "__v_raw") { if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype // this means the reciever is a user proxy of the reactive proxy Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) { return target; } return; } const targetIsArray = isArray$4(target); if (!isReadonly2) { if (targetIsArray && hasOwn$3(arrayInstrumentations, key)) { return Reflect.get(arrayInstrumentations, key, receiver); } if (key === "hasOwnProperty") { return hasOwnProperty$2; } } const res = Reflect.get(target, key, receiver); if (isSymbol$1(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) { return res; } if (!isReadonly2) { track(target, "get", key); } if (isShallow2) { return res; } if (isRef(res)) { return targetIsArray && isIntegerKey(key) ? res : res.value; } if (isObject$6(res)) { return isReadonly2 ? readonly(res) : reactive(res); } return res; } } class MutableReactiveHandler extends BaseReactiveHandler { static { __name(this, "MutableReactiveHandler"); } constructor(isShallow2 = false) { super(false, isShallow2); } set(target, key, value3, receiver) { let oldValue = target[key]; if (!this._isShallow) { const isOldValueReadonly = isReadonly(oldValue); if (!isShallow(value3) && !isReadonly(value3)) { oldValue = toRaw(oldValue); value3 = toRaw(value3); } if (!isArray$4(target) && isRef(oldValue) && !isRef(value3)) { if (isOldValueReadonly) { return false; } else { oldValue.value = value3; return true; } } } const hadKey = isArray$4(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn$3(target, key); const result = Reflect.set(target, key, value3, receiver); if (target === toRaw(receiver)) { if (!hadKey) { trigger(target, "add", key, value3); } else if (hasChanged(value3, oldValue)) { trigger(target, "set", key, value3, oldValue); } } return result; } deleteProperty(target, key) { const hadKey = hasOwn$3(target, key); const oldValue = target[key]; const result = Reflect.deleteProperty(target, key); if (result && hadKey) { trigger(target, "delete", key, void 0, oldValue); } return result; } has(target, key) { const result = Reflect.has(target, key); if (!isSymbol$1(key) || !builtInSymbols.has(key)) { track(target, "has", key); } return result; } ownKeys(target) { track( target, "iterate", isArray$4(target) ? "length" : ITERATE_KEY ); return Reflect.ownKeys(target); } } class ReadonlyReactiveHandler extends BaseReactiveHandler { static { __name(this, "ReadonlyReactiveHandler"); } constructor(isShallow2 = false) { super(true, isShallow2); } set(target, key) { if (false) { warn$3( `Set operation on key "${String(key)}" failed: target is readonly.`, target ); } return true; } deleteProperty(target, key) { if (false) { warn$3( `Delete operation on key "${String(key)}" failed: target is readonly.`, target ); } return true; } } const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(); const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(); const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler( true ); const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true); const toShallow = /* @__PURE__ */ __name((value3) => value3, "toShallow"); const getProto = /* @__PURE__ */ __name((v2) => Reflect.getPrototypeOf(v2), "getProto"); function get$2(target, key, isReadonly2 = false, isShallow2 = false) { target = target["__v_raw"]; const rawTarget = toRaw(target); const rawKey = toRaw(key); if (!isReadonly2) { if (hasChanged(key, rawKey)) { track(rawTarget, "get", key); } track(rawTarget, "get", rawKey); } const { has: has2 } = getProto(rawTarget); const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive$1; if (has2.call(rawTarget, key)) { return wrap(target.get(key)); } else if (has2.call(rawTarget, rawKey)) { return wrap(target.get(rawKey)); } else if (target !== rawTarget) { target.get(key); } } __name(get$2, "get$2"); function has(key, isReadonly2 = false) { const target = this["__v_raw"]; const rawTarget = toRaw(target); const rawKey = toRaw(key); if (!isReadonly2) { if (hasChanged(key, rawKey)) { track(rawTarget, "has", key); } track(rawTarget, "has", rawKey); } return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey); } __name(has, "has"); function size(target, isReadonly2 = false) { target = target["__v_raw"]; !isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY); return Reflect.get(target, "size", target); } __name(size, "size"); function add(value3) { value3 = toRaw(value3); const target = toRaw(this); const proto = getProto(target); const hadKey = proto.has.call(target, value3); if (!hadKey) { target.add(value3); trigger(target, "add", value3, value3); } return this; } __name(add, "add"); function set$4(key, value3) { value3 = toRaw(value3); const target = toRaw(this); const { has: has2, get: get2 } = getProto(target); let hadKey = has2.call(target, key); if (!hadKey) { key = toRaw(key); hadKey = has2.call(target, key); } else if (false) { checkIdentityKeys(target, has2, key); } const oldValue = get2.call(target, key); target.set(key, value3); if (!hadKey) { trigger(target, "add", key, value3); } else if (hasChanged(value3, oldValue)) { trigger(target, "set", key, value3, oldValue); } return this; } __name(set$4, "set$4"); function deleteEntry(key) { const target = toRaw(this); const { has: has2, get: get2 } = getProto(target); let hadKey = has2.call(target, key); if (!hadKey) { key = toRaw(key); hadKey = has2.call(target, key); } else if (false) { checkIdentityKeys(target, has2, key); } const oldValue = get2 ? get2.call(target, key) : void 0; const result = target.delete(key); if (hadKey) { trigger(target, "delete", key, void 0, oldValue); } return result; } __name(deleteEntry, "deleteEntry"); function clear() { const target = toRaw(this); const hadItems = target.size !== 0; const oldTarget = false ? isMap(target) ? new Map(target) : new Set(target) : void 0; const result = target.clear(); if (hadItems) { trigger(target, "clear", void 0, void 0, oldTarget); } return result; } __name(clear, "clear"); function createForEach(isReadonly2, isShallow2) { return /* @__PURE__ */ __name(function forEach2(callback, thisArg) { const observed = this; const target = observed["__v_raw"]; const rawTarget = toRaw(target); const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive$1; !isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY); return target.forEach((value3, key) => { return callback.call(thisArg, wrap(value3), wrap(key), observed); }); }, "forEach"); } __name(createForEach, "createForEach"); function createIterableMethod(method, isReadonly2, isShallow2) { return function(...args) { const target = this["__v_raw"]; const rawTarget = toRaw(target); const targetIsMap = isMap(rawTarget); const isPair = method === "entries" || method === Symbol.iterator && targetIsMap; const isKeyOnly = method === "keys" && targetIsMap; const innerIterator = target[method](...args); const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive$1; !isReadonly2 && track( rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY ); return { // iterator protocol next() { const { value: value3, done } = innerIterator.next(); return done ? { value: value3, done } : { value: isPair ? [wrap(value3[0]), wrap(value3[1])] : wrap(value3), done }; }, // iterable protocol [Symbol.iterator]() { return this; } }; }; } __name(createIterableMethod, "createIterableMethod"); function createReadonlyMethod(type) { return function(...args) { if (false) { const key = args[0] ? `on key "${args[0]}" ` : ``; warn$3( `${capitalize$1(type)} operation ${key}failed: target is readonly.`, toRaw(this) ); } return type === "delete" ? false : type === "clear" ? void 0 : this; }; } __name(createReadonlyMethod, "createReadonlyMethod"); function createInstrumentations() { const mutableInstrumentations2 = { get(key) { return get$2(this, key); }, get size() { return size(this); }, has, add, set: set$4, delete: deleteEntry, clear, forEach: createForEach(false, false) }; const shallowInstrumentations2 = { get(key) { return get$2(this, key, false, true); }, get size() { return size(this); }, has, add, set: set$4, delete: deleteEntry, clear, forEach: createForEach(false, true) }; const readonlyInstrumentations2 = { get(key) { return get$2(this, key, true); }, get size() { return size(this, true); }, has(key) { return has.call(this, key, true); }, add: createReadonlyMethod("add"), set: createReadonlyMethod("set"), delete: createReadonlyMethod("delete"), clear: createReadonlyMethod("clear"), forEach: createForEach(true, false) }; const shallowReadonlyInstrumentations2 = { get(key) { return get$2(this, key, true, true); }, get size() { return size(this, true); }, has(key) { return has.call(this, key, true); }, add: createReadonlyMethod("add"), set: createReadonlyMethod("set"), delete: createReadonlyMethod("delete"), clear: createReadonlyMethod("clear"), forEach: createForEach(true, true) }; const iteratorMethods = [ "keys", "values", "entries", Symbol.iterator ]; iteratorMethods.forEach((method) => { mutableInstrumentations2[method] = createIterableMethod(method, false, false); readonlyInstrumentations2[method] = createIterableMethod(method, true, false); shallowInstrumentations2[method] = createIterableMethod(method, false, true); shallowReadonlyInstrumentations2[method] = createIterableMethod( method, true, true ); }); return [ mutableInstrumentations2, readonlyInstrumentations2, shallowInstrumentations2, shallowReadonlyInstrumentations2 ]; } __name(createInstrumentations, "createInstrumentations"); const [ mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations ] = /* @__PURE__ */ createInstrumentations(); function createInstrumentationGetter(isReadonly2, shallow) { const instrumentations = shallow ? isReadonly2 ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly2 ? readonlyInstrumentations : mutableInstrumentations; return (target, key, receiver) => { if (key === "__v_isReactive") { return !isReadonly2; } else if (key === "__v_isReadonly") { return isReadonly2; } else if (key === "__v_raw") { return target; } return Reflect.get( hasOwn$3(instrumentations, key) && key in target ? instrumentations : target, key, receiver ); }; } __name(createInstrumentationGetter, "createInstrumentationGetter"); const mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, false) }; const shallowCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, true) }; const readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, false) }; const shallowReadonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, true) }; function checkIdentityKeys(target, has2, key) { const rawKey = toRaw(key); if (rawKey !== key && has2.call(target, rawKey)) { const type = toRawType(target); warn$3( `Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.` ); } } __name(checkIdentityKeys, "checkIdentityKeys"); const reactiveMap = /* @__PURE__ */ new WeakMap(); const shallowReactiveMap = /* @__PURE__ */ new WeakMap(); const readonlyMap = /* @__PURE__ */ new WeakMap(); const shallowReadonlyMap = /* @__PURE__ */ new WeakMap(); function targetTypeMap(rawType) { switch (rawType) { case "Object": case "Array": return 1; case "Map": case "Set": case "WeakMap": case "WeakSet": return 2; default: return 0; } } __name(targetTypeMap, "targetTypeMap"); function getTargetType(value3) { return value3["__v_skip"] || !Object.isExtensible(value3) ? 0 : targetTypeMap(toRawType(value3)); } __name(getTargetType, "getTargetType"); function reactive(target) { if (isReadonly(target)) { return target; } return createReactiveObject( target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap ); } __name(reactive, "reactive"); function shallowReactive(target) { return createReactiveObject( target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap ); } __name(shallowReactive, "shallowReactive"); function readonly(target) { return createReactiveObject( target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap ); } __name(readonly, "readonly"); function shallowReadonly(target) { return createReactiveObject( target, true, shallowReadonlyHandlers, shallowReadonlyCollectionHandlers, shallowReadonlyMap ); } __name(shallowReadonly, "shallowReadonly"); function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { if (!isObject$6(target)) { if (false) { warn$3( `value cannot be made ${isReadonly2 ? "readonly" : "reactive"}: ${String( target )}` ); } return target; } if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) { return target; } const existingProxy = proxyMap.get(target); if (existingProxy) { return existingProxy; } const targetType = getTargetType(target); if (targetType === 0) { return target; } const proxy = new Proxy( target, targetType === 2 ? collectionHandlers : baseHandlers ); proxyMap.set(target, proxy); return proxy; } __name(createReactiveObject, "createReactiveObject"); function isReactive(value3) { if (isReadonly(value3)) { return isReactive(value3["__v_raw"]); } return !!(value3 && value3["__v_isReactive"]); } __name(isReactive, "isReactive"); function isReadonly(value3) { return !!(value3 && value3["__v_isReadonly"]); } __name(isReadonly, "isReadonly"); function isShallow(value3) { return !!(value3 && value3["__v_isShallow"]); } __name(isShallow, "isShallow"); function isProxy(value3) { return value3 ? !!value3["__v_raw"] : false; } __name(isProxy, "isProxy"); function toRaw(observed) { const raw = observed && observed["__v_raw"]; return raw ? toRaw(raw) : observed; } __name(toRaw, "toRaw"); function markRaw(value3) { if (Object.isExtensible(value3)) { def(value3, "__v_skip", true); } return value3; } __name(markRaw, "markRaw"); const toReactive$1 = /* @__PURE__ */ __name((value3) => isObject$6(value3) ? reactive(value3) : value3, "toReactive$1"); const toReadonly = /* @__PURE__ */ __name((value3) => isObject$6(value3) ? readonly(value3) : value3, "toReadonly"); const COMPUTED_SIDE_EFFECT_WARN = `Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free`; class ComputedRefImpl { static { __name(this, "ComputedRefImpl"); } constructor(getter, _setter, isReadonly2, isSSR) { this.getter = getter; this._setter = _setter; this.dep = void 0; this.__v_isRef = true; this["__v_isReadonly"] = false; this.effect = new ReactiveEffect( () => getter(this._value), () => triggerRefValue( this, this.effect._dirtyLevel === 2 ? 2 : 3 ) ); this.effect.computed = this; this.effect.active = this._cacheable = !isSSR; this["__v_isReadonly"] = isReadonly2; } get value() { const self2 = toRaw(this); if ((!self2._cacheable || self2.effect.dirty) && hasChanged(self2._value, self2._value = self2.effect.run())) { triggerRefValue(self2, 4); } trackRefValue(self2); if (self2.effect._dirtyLevel >= 2) { if (false) { warn$3(COMPUTED_SIDE_EFFECT_WARN, ` getter: `, this.getter); } triggerRefValue(self2, 2); } return self2._value; } set value(newValue) { this._setter(newValue); } // #region polyfill _dirty for backward compatibility third party code for Vue <= 3.3.x get _dirty() { return this.effect.dirty; } set _dirty(v2) { this.effect.dirty = v2; } // #endregion } function computed$1(getterOrOptions, debugOptions, isSSR = false) { let getter; let setter; const onlyGetter = isFunction$4(getterOrOptions); if (onlyGetter) { getter = getterOrOptions; setter = false ? () => { warn$3("Write operation failed: computed value is readonly"); } : NOOP; } else { getter = getterOrOptions.get; setter = getterOrOptions.set; } const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR); if (false) { cRef.effect.onTrack = debugOptions.onTrack; cRef.effect.onTrigger = debugOptions.onTrigger; } return cRef; } __name(computed$1, "computed$1"); function trackRefValue(ref2) { var _a; if (shouldTrack && activeEffect) { ref2 = toRaw(ref2); trackEffect( activeEffect, (_a = ref2.dep) != null ? _a : ref2.dep = createDep( () => ref2.dep = void 0, ref2 instanceof ComputedRefImpl ? ref2 : void 0 ), false ? { target: ref2, type: "get", key: "value" } : void 0 ); } } __name(trackRefValue, "trackRefValue"); function triggerRefValue(ref2, dirtyLevel = 4, newVal, oldVal) { ref2 = toRaw(ref2); const dep = ref2.dep; if (dep) { triggerEffects( dep, dirtyLevel, false ? { target: ref2, type: "set", key: "value", newValue: newVal, oldValue: oldVal } : void 0 ); } } __name(triggerRefValue, "triggerRefValue"); function isRef(r) { return !!(r && r.__v_isRef === true); } __name(isRef, "isRef"); function ref(value3) { return createRef(value3, false); } __name(ref, "ref"); function shallowRef(value3) { return createRef(value3, true); } __name(shallowRef, "shallowRef"); function createRef(rawValue, shallow) { if (isRef(rawValue)) { return rawValue; } return new RefImpl(rawValue, shallow); } __name(createRef, "createRef"); class RefImpl { static { __name(this, "RefImpl"); } constructor(value3, __v_isShallow) { this.__v_isShallow = __v_isShallow; this.dep = void 0; this.__v_isRef = true; this._rawValue = __v_isShallow ? value3 : toRaw(value3); this._value = __v_isShallow ? value3 : toReactive$1(value3); } get value() { trackRefValue(this); return this._value; } set value(newVal) { const useDirectValue = this.__v_isShallow || isShallow(newVal) || isReadonly(newVal); newVal = useDirectValue ? newVal : toRaw(newVal); if (hasChanged(newVal, this._rawValue)) { const oldVal = this._rawValue; this._rawValue = newVal; this._value = useDirectValue ? newVal : toReactive$1(newVal); triggerRefValue(this, 4, newVal, oldVal); } } } function triggerRef(ref2) { triggerRefValue(ref2, 4, false ? ref2.value : void 0); } __name(triggerRef, "triggerRef"); function unref(ref2) { return isRef(ref2) ? ref2.value : ref2; } __name(unref, "unref"); function toValue$2(source) { return isFunction$4(source) ? source() : unref(source); } __name(toValue$2, "toValue$2"); const shallowUnwrapHandlers = { get: /* @__PURE__ */ __name((target, key, receiver) => unref(Reflect.get(target, key, receiver)), "get"), set: /* @__PURE__ */ __name((target, key, value3, receiver) => { const oldValue = target[key]; if (isRef(oldValue) && !isRef(value3)) { oldValue.value = value3; return true; } else { return Reflect.set(target, key, value3, receiver); } }, "set") }; function proxyRefs(objectWithRefs) { return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); } __name(proxyRefs, "proxyRefs"); class CustomRefImpl { static { __name(this, "CustomRefImpl"); } constructor(factory) { this.dep = void 0; this.__v_isRef = true; const { get: get2, set: set2 } = factory( () => trackRefValue(this), () => triggerRefValue(this) ); this._get = get2; this._set = set2; } get value() { return this._get(); } set value(newVal) { this._set(newVal); } } function customRef(factory) { return new CustomRefImpl(factory); } __name(customRef, "customRef"); function toRefs$1(object) { if (false) { warn$3(`toRefs() expects a reactive object but received a plain one.`); } const ret = isArray$4(object) ? new Array(object.length) : {}; for (const key in object) { ret[key] = propertyToRef(object, key); } return ret; } __name(toRefs$1, "toRefs$1"); class ObjectRefImpl { static { __name(this, "ObjectRefImpl"); } constructor(_object, _key, _defaultValue) { this._object = _object; this._key = _key; this._defaultValue = _defaultValue; this.__v_isRef = true; } get value() { const val = this._object[this._key]; return val === void 0 ? this._defaultValue : val; } set value(newVal) { this._object[this._key] = newVal; } get dep() { return getDepFromReactive(toRaw(this._object), this._key); } } class GetterRefImpl { static { __name(this, "GetterRefImpl"); } constructor(_getter) { this._getter = _getter; this.__v_isRef = true; this.__v_isReadonly = true; } get value() { return this._getter(); } } function toRef$1(source, key, defaultValue) { if (isRef(source)) { return source; } else if (isFunction$4(source)) { return new GetterRefImpl(source); } else if (isObject$6(source) && arguments.length > 1) { return propertyToRef(source, key, defaultValue); } else { return ref(source); } } __name(toRef$1, "toRef$1"); function propertyToRef(source, key, defaultValue) { const val = source[key]; return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue); } __name(propertyToRef, "propertyToRef"); const deferredComputed = computed$1; const TrackOpTypes = { "GET": "get", "HAS": "has", "ITERATE": "iterate" }; const TriggerOpTypes = { "SET": "set", "ADD": "add", "DELETE": "delete", "CLEAR": "clear" }; const ReactiveFlags = { "SKIP": "__v_skip", "IS_REACTIVE": "__v_isReactive", "IS_READONLY": "__v_isReadonly", "IS_SHALLOW": "__v_isShallow", "RAW": "__v_raw" }; /** * @vue/runtime-core v3.4.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ const stack = []; function pushWarningContext(vnode) { stack.push(vnode); } __name(pushWarningContext, "pushWarningContext"); function popWarningContext() { stack.pop(); } __name(popWarningContext, "popWarningContext"); function warn$1(msg, ...args) { pauseTracking(); const instance = stack.length ? stack[stack.length - 1].component : null; const appWarnHandler = instance && instance.appContext.config.warnHandler; const trace = getComponentTrace(); if (appWarnHandler) { callWithErrorHandling( appWarnHandler, instance, 11, [ // eslint-disable-next-line no-restricted-syntax msg + args.map((a) => { var _a, _b; return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a); }).join(""), instance && instance.proxy, trace.map( ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>` ).join("\n"), trace ] ); } else { const warnArgs = [`[Vue warn]: ${msg}`, ...args]; if (trace.length && // avoid spamming console during tests true) { warnArgs.push(` `, ...formatTrace(trace)); } console.warn(...warnArgs); } resetTracking(); } __name(warn$1, "warn$1"); function getComponentTrace() { let currentVNode = stack[stack.length - 1]; if (!currentVNode) { return []; } const normalizedStack = []; while (currentVNode) { const last = normalizedStack[0]; if (last && last.vnode === currentVNode) { last.recurseCount++; } else { normalizedStack.push({ vnode: currentVNode, recurseCount: 0 }); } const parentInstance = currentVNode.component && currentVNode.component.parent; currentVNode = parentInstance && parentInstance.vnode; } return normalizedStack; } __name(getComponentTrace, "getComponentTrace"); function formatTrace(trace) { const logs = []; trace.forEach((entry, i2) => { logs.push(...i2 === 0 ? [] : [` `], ...formatTraceEntry(entry)); }); return logs; } __name(formatTrace, "formatTrace"); function formatTraceEntry({ vnode, recurseCount }) { const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``; const isRoot = vnode.component ? vnode.component.parent == null : false; const open2 = ` at <${formatComponentName( vnode.component, vnode.type, isRoot )}`; const close4 = `>` + postfix; return vnode.props ? [open2, ...formatProps(vnode.props), close4] : [open2 + close4]; } __name(formatTraceEntry, "formatTraceEntry"); function formatProps(props) { const res = []; const keys2 = Object.keys(props); keys2.slice(0, 3).forEach((key) => { res.push(...formatProp(key, props[key])); }); if (keys2.length > 3) { res.push(` ...`); } return res; } __name(formatProps, "formatProps"); function formatProp(key, value3, raw) { if (isString$5(value3)) { value3 = JSON.stringify(value3); return raw ? value3 : [`${key}=${value3}`]; } else if (typeof value3 === "number" || typeof value3 === "boolean" || value3 == null) { return raw ? value3 : [`${key}=${value3}`]; } else if (isRef(value3)) { value3 = formatProp(key, toRaw(value3.value), true); return raw ? value3 : [`${key}=Ref<`, value3, `>`]; } else if (isFunction$4(value3)) { return [`${key}=fn${value3.name ? `<${value3.name}>` : ``}`]; } else { value3 = toRaw(value3); return raw ? value3 : [`${key}=`, value3]; } } __name(formatProp, "formatProp"); function assertNumber(val, type) { if (true) return; if (val === void 0) { return; } else if (typeof val !== "number") { warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`); } else if (isNaN(val)) { warn$1(`${type} is NaN - the duration expression might be incorrect.`); } } __name(assertNumber, "assertNumber"); const ErrorCodes = { "SETUP_FUNCTION": 0, "0": "SETUP_FUNCTION", "RENDER_FUNCTION": 1, "1": "RENDER_FUNCTION", "WATCH_GETTER": 2, "2": "WATCH_GETTER", "WATCH_CALLBACK": 3, "3": "WATCH_CALLBACK", "WATCH_CLEANUP": 4, "4": "WATCH_CLEANUP", "NATIVE_EVENT_HANDLER": 5, "5": "NATIVE_EVENT_HANDLER", "COMPONENT_EVENT_HANDLER": 6, "6": "COMPONENT_EVENT_HANDLER", "VNODE_HOOK": 7, "7": "VNODE_HOOK", "DIRECTIVE_HOOK": 8, "8": "DIRECTIVE_HOOK", "TRANSITION_HOOK": 9, "9": "TRANSITION_HOOK", "APP_ERROR_HANDLER": 10, "10": "APP_ERROR_HANDLER", "APP_WARN_HANDLER": 11, "11": "APP_WARN_HANDLER", "FUNCTION_REF": 12, "12": "FUNCTION_REF", "ASYNC_COMPONENT_LOADER": 13, "13": "ASYNC_COMPONENT_LOADER", "SCHEDULER": 14, "14": "SCHEDULER" }; const ErrorTypeStrings$1 = { ["sp"]: "serverPrefetch hook", ["bc"]: "beforeCreate hook", ["c"]: "created hook", ["bm"]: "beforeMount hook", ["m"]: "mounted hook", ["bu"]: "beforeUpdate hook", ["u"]: "updated", ["bum"]: "beforeUnmount hook", ["um"]: "unmounted hook", ["a"]: "activated hook", ["da"]: "deactivated hook", ["ec"]: "errorCaptured hook", ["rtc"]: "renderTracked hook", ["rtg"]: "renderTriggered hook", [0]: "setup function", [1]: "render function", [2]: "watcher getter", [3]: "watcher callback", [4]: "watcher cleanup function", [5]: "native event handler", [6]: "component event handler", [7]: "vnode hook", [8]: "directive hook", [9]: "transition hook", [10]: "app errorHandler", [11]: "app warnHandler", [12]: "ref function", [13]: "async component loader", [14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ." }; function callWithErrorHandling(fn, instance, type, args) { try { return args ? fn(...args) : fn(); } catch (err) { handleError(err, instance, type); } } __name(callWithErrorHandling, "callWithErrorHandling"); function callWithAsyncErrorHandling(fn, instance, type, args) { if (isFunction$4(fn)) { const res = callWithErrorHandling(fn, instance, type, args); if (res && isPromise$2(res)) { res.catch((err) => { handleError(err, instance, type); }); } return res; } if (isArray$4(fn)) { const values2 = []; for (let i2 = 0; i2 < fn.length; i2++) { values2.push(callWithAsyncErrorHandling(fn[i2], instance, type, args)); } return values2; } else if (false) { warn$1( `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof fn}` ); } } __name(callWithAsyncErrorHandling, "callWithAsyncErrorHandling"); function handleError(err, instance, type, throwInDev = true) { const contextVNode = instance ? instance.vnode : null; if (instance) { let cur = instance.parent; const exposedInstance = instance.proxy; const errorInfo = false ? ErrorTypeStrings$1[type] : `https://vuejs.org/error-reference/#runtime-${type}`; while (cur) { const errorCapturedHooks = cur.ec; if (errorCapturedHooks) { for (let i2 = 0; i2 < errorCapturedHooks.length; i2++) { if (errorCapturedHooks[i2](err, exposedInstance, errorInfo) === false) { return; } } } cur = cur.parent; } const appErrorHandler = instance.appContext.config.errorHandler; if (appErrorHandler) { pauseTracking(); callWithErrorHandling( appErrorHandler, null, 10, [err, exposedInstance, errorInfo] ); resetTracking(); return; } } logError(err, type, contextVNode, throwInDev); } __name(handleError, "handleError"); function logError(err, type, contextVNode, throwInDev = true) { if (false) { const info = ErrorTypeStrings$1[type]; if (contextVNode) { pushWarningContext(contextVNode); } warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`); if (contextVNode) { popWarningContext(); } if (throwInDev) { throw err; } else { console.error(err); } } else { console.error(err); } } __name(logError, "logError"); let isFlushing = false; let isFlushPending = false; const queue = []; let flushIndex = 0; const pendingPostFlushCbs = []; let activePostFlushCbs = null; let postFlushIndex = 0; const resolvedPromise = /* @__PURE__ */ Promise.resolve(); let currentFlushPromise = null; const RECURSION_LIMIT = 100; function nextTick(fn) { const p2 = currentFlushPromise || resolvedPromise; return fn ? p2.then(this ? fn.bind(this) : fn) : p2; } __name(nextTick, "nextTick"); function findInsertionIndex(id2) { let start2 = flushIndex + 1; let end = queue.length; while (start2 < end) { const middle = start2 + end >>> 1; const middleJob = queue[middle]; const middleJobId = getId(middleJob); if (middleJobId < id2 || middleJobId === id2 && middleJob.pre) { start2 = middle + 1; } else { end = middle; } } return start2; } __name(findInsertionIndex, "findInsertionIndex"); function queueJob(job) { if (!queue.length || !queue.includes( job, isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex )) { if (job.id == null) { queue.push(job); } else { queue.splice(findInsertionIndex(job.id), 0, job); } queueFlush(); } } __name(queueJob, "queueJob"); function queueFlush() { if (!isFlushing && !isFlushPending) { isFlushPending = true; currentFlushPromise = resolvedPromise.then(flushJobs); } } __name(queueFlush, "queueFlush"); function invalidateJob(job) { const i2 = queue.indexOf(job); if (i2 > flushIndex) { queue.splice(i2, 1); } } __name(invalidateJob, "invalidateJob"); function queuePostFlushCb(cb) { if (!isArray$4(cb)) { if (!activePostFlushCbs || !activePostFlushCbs.includes( cb, cb.allowRecurse ? postFlushIndex + 1 : postFlushIndex )) { pendingPostFlushCbs.push(cb); } } else { pendingPostFlushCbs.push(...cb); } queueFlush(); } __name(queuePostFlushCb, "queuePostFlushCb"); function flushPreFlushCbs(instance, seen2, i2 = isFlushing ? flushIndex + 1 : 0) { if (false) { seen2 = seen2 || /* @__PURE__ */ new Map(); } for (; i2 < queue.length; i2++) { const cb = queue[i2]; if (cb && cb.pre) { if (instance && cb.id !== instance.uid) { continue; } if (false) { continue; } queue.splice(i2, 1); i2--; cb(); } } } __name(flushPreFlushCbs, "flushPreFlushCbs"); function flushPostFlushCbs(seen2) { if (pendingPostFlushCbs.length) { const deduped = [...new Set(pendingPostFlushCbs)].sort( (a, b) => getId(a) - getId(b) ); pendingPostFlushCbs.length = 0; if (activePostFlushCbs) { activePostFlushCbs.push(...deduped); return; } activePostFlushCbs = deduped; if (false) { seen2 = seen2 || /* @__PURE__ */ new Map(); } for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { const cb = activePostFlushCbs[postFlushIndex]; if (false) { continue; } if (cb.active !== false) cb(); } activePostFlushCbs = null; postFlushIndex = 0; } } __name(flushPostFlushCbs, "flushPostFlushCbs"); const getId = /* @__PURE__ */ __name((job) => job.id == null ? Infinity : job.id, "getId"); const comparator = /* @__PURE__ */ __name((a, b) => { const diff = getId(a) - getId(b); if (diff === 0) { if (a.pre && !b.pre) return -1; if (b.pre && !a.pre) return 1; } return diff; }, "comparator"); function flushJobs(seen2) { isFlushPending = false; isFlushing = true; if (false) { seen2 = seen2 || /* @__PURE__ */ new Map(); } queue.sort(comparator); const check = false ? (job) => checkRecursiveUpdates(seen2, job) : NOOP; try { for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { const job = queue[flushIndex]; if (job && job.active !== false) { if (false) { continue; } callWithErrorHandling(job, null, 14); } } } finally { flushIndex = 0; queue.length = 0; flushPostFlushCbs(seen2); isFlushing = false; currentFlushPromise = null; if (queue.length || pendingPostFlushCbs.length) { flushJobs(seen2); } } } __name(flushJobs, "flushJobs"); function checkRecursiveUpdates(seen2, fn) { if (!seen2.has(fn)) { seen2.set(fn, 1); } else { const count = seen2.get(fn); if (count > RECURSION_LIMIT) { const instance = fn.ownerInstance; const componentName = instance && getComponentName(instance.type); handleError( `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10 ); return true; } else { seen2.set(fn, count + 1); } } } __name(checkRecursiveUpdates, "checkRecursiveUpdates"); let isHmrUpdating = false; const hmrDirtyComponents = /* @__PURE__ */ new Set(); if (false) { getGlobalThis$1().__VUE_HMR_RUNTIME__ = { createRecord: tryWrap(createRecord), rerender: tryWrap(rerender), reload: tryWrap(reload) }; } const map = /* @__PURE__ */ new Map(); function registerHMR(instance) { const id2 = instance.type.__hmrId; let record = map.get(id2); if (!record) { createRecord(id2, instance.type); record = map.get(id2); } record.instances.add(instance); } __name(registerHMR, "registerHMR"); function unregisterHMR(instance) { map.get(instance.type.__hmrId).instances.delete(instance); } __name(unregisterHMR, "unregisterHMR"); function createRecord(id2, initialDef) { if (map.has(id2)) { return false; } map.set(id2, { initialDef: normalizeClassComponent(initialDef), instances: /* @__PURE__ */ new Set() }); return true; } __name(createRecord, "createRecord"); function normalizeClassComponent(component) { return isClassComponent(component) ? component.__vccOpts : component; } __name(normalizeClassComponent, "normalizeClassComponent"); function rerender(id2, newRender) { const record = map.get(id2); if (!record) { return; } record.initialDef.render = newRender; [...record.instances].forEach((instance) => { if (newRender) { instance.render = newRender; normalizeClassComponent(instance.type).render = newRender; } instance.renderCache = []; isHmrUpdating = true; instance.effect.dirty = true; instance.update(); isHmrUpdating = false; }); } __name(rerender, "rerender"); function reload(id2, newComp) { const record = map.get(id2); if (!record) return; newComp = normalizeClassComponent(newComp); updateComponentDef(record.initialDef, newComp); const instances = [...record.instances]; for (const instance of instances) { const oldComp = normalizeClassComponent(instance.type); if (!hmrDirtyComponents.has(oldComp)) { if (oldComp !== record.initialDef) { updateComponentDef(oldComp, newComp); } hmrDirtyComponents.add(oldComp); } instance.appContext.propsCache.delete(instance.type); instance.appContext.emitsCache.delete(instance.type); instance.appContext.optionsCache.delete(instance.type); if (instance.ceReload) { hmrDirtyComponents.add(oldComp); instance.ceReload(newComp.styles); hmrDirtyComponents.delete(oldComp); } else if (instance.parent) { instance.parent.effect.dirty = true; queueJob(() => { instance.parent.update(); hmrDirtyComponents.delete(oldComp); }); } else if (instance.appContext.reload) { instance.appContext.reload(); } else if (typeof window !== "undefined") { window.location.reload(); } else { console.warn( "[HMR] Root or manually mounted instance modified. Full reload required." ); } } queuePostFlushCb(() => { for (const instance of instances) { hmrDirtyComponents.delete( normalizeClassComponent(instance.type) ); } }); } __name(reload, "reload"); function updateComponentDef(oldComp, newComp) { extend$1(oldComp, newComp); for (const key in oldComp) { if (key !== "__file" && !(key in newComp)) { delete oldComp[key]; } } } __name(updateComponentDef, "updateComponentDef"); function tryWrap(fn) { return (id2, arg) => { try { return fn(id2, arg); } catch (e) { console.error(e); console.warn( `[HMR] Something went wrong during Vue component hot-reload. Full reload required.` ); } }; } __name(tryWrap, "tryWrap"); let devtools$1; let buffer = []; let devtoolsNotInstalled = false; function emit$1(event2, ...args) { if (devtools$1) { devtools$1.emit(event2, ...args); } else if (!devtoolsNotInstalled) { buffer.push({ event: event2, args }); } } __name(emit$1, "emit$1"); function setDevtoolsHook$1(hook, target) { var _a, _b; devtools$1 = hook; if (devtools$1) { devtools$1.enabled = true; buffer.forEach(({ event: event2, args }) => devtools$1.emit(event2, ...args)); buffer = []; } else if ( // handle late devtools injection - only do this if we are in an actual // browser environment to avoid the timer handle stalling test runner exit // (#4815) typeof window !== "undefined" && // some envs mock window but not fully window.HTMLElement && // also exclude jsdom // eslint-disable-next-line no-restricted-syntax !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom")) ) { const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || []; replay.push((newHook) => { setDevtoolsHook$1(newHook, target); }); setTimeout(() => { if (!devtools$1) { target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null; devtoolsNotInstalled = true; buffer = []; } }, 3e3); } else { devtoolsNotInstalled = true; buffer = []; } } __name(setDevtoolsHook$1, "setDevtoolsHook$1"); function devtoolsInitApp(app2, version2) { emit$1("app:init", app2, version2, { Fragment, Text, Comment, Static }); } __name(devtoolsInitApp, "devtoolsInitApp"); function devtoolsUnmountApp(app2) { emit$1("app:unmount", app2); } __name(devtoolsUnmountApp, "devtoolsUnmountApp"); const devtoolsComponentAdded = /* @__PURE__ */ createDevtoolsComponentHook( "component:added" /* COMPONENT_ADDED */ ); const devtoolsComponentUpdated = /* @__PURE__ */ createDevtoolsComponentHook( "component:updated" /* COMPONENT_UPDATED */ ); const _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook( "component:removed" /* COMPONENT_REMOVED */ ); const devtoolsComponentRemoved = /* @__PURE__ */ __name((component) => { if (devtools$1 && typeof devtools$1.cleanupBuffer === "function" && // remove the component if it wasn't buffered !devtools$1.cleanupBuffer(component)) { _devtoolsComponentRemoved(component); } }, "devtoolsComponentRemoved"); /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function createDevtoolsComponentHook(hook) { return (component) => { emit$1( hook, component.appContext.app, component.uid, component.parent ? component.parent.uid : void 0, component ); }; } __name(createDevtoolsComponentHook, "createDevtoolsComponentHook"); const devtoolsPerfStart = /* @__PURE__ */ createDevtoolsPerformanceHook( "perf:start" /* PERFORMANCE_START */ ); const devtoolsPerfEnd = /* @__PURE__ */ createDevtoolsPerformanceHook( "perf:end" /* PERFORMANCE_END */ ); function createDevtoolsPerformanceHook(hook) { return (component, type, time) => { emit$1(hook, component.appContext.app, component.uid, component, type, time); }; } __name(createDevtoolsPerformanceHook, "createDevtoolsPerformanceHook"); function devtoolsComponentEmit(component, event2, params) { emit$1( "component:emit", component.appContext.app, component, event2, params ); } __name(devtoolsComponentEmit, "devtoolsComponentEmit"); function emit(instance, event2, ...rawArgs) { if (instance.isUnmounted) return; const props = instance.vnode.props || EMPTY_OBJ; if (false) { const { emitsOptions, propsOptions: [propsOptions] } = instance; if (emitsOptions) { if (!(event2 in emitsOptions) && true) { if (!propsOptions || !(toHandlerKey(event2) in propsOptions)) { warn$1( `Component emitted event "${event2}" but it is neither declared in the emits option nor as an "${toHandlerKey(event2)}" prop.` ); } } else { const validator3 = emitsOptions[event2]; if (isFunction$4(validator3)) { const isValid2 = validator3(...rawArgs); if (!isValid2) { warn$1( `Invalid event arguments: event validation failed for event "${event2}".` ); } } } } } let args = rawArgs; const isModelListener2 = event2.startsWith("update:"); const modelArg = isModelListener2 && event2.slice(7); if (modelArg && modelArg in props) { const modifiersKey = `${modelArg === "modelValue" ? "model" : modelArg}Modifiers`; const { number: number2, trim: trim2 } = props[modifiersKey] || EMPTY_OBJ; if (trim2) { args = rawArgs.map((a) => isString$5(a) ? a.trim() : a); } if (number2) { args = rawArgs.map(looseToNumber); } } if (false) { devtoolsComponentEmit(instance, event2, args); } if (false) { const lowerCaseEvent = event2.toLowerCase(); if (lowerCaseEvent !== event2 && props[toHandlerKey(lowerCaseEvent)]) { warn$1( `Event "${lowerCaseEvent}" is emitted in component ${formatComponentName( instance, instance.type )} but the handler is registered for "${event2}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${hyphenate$1( event2 )}" instead of "${event2}".` ); } } let handlerName; let handler6 = props[handlerName = toHandlerKey(event2)] || // also try camelCase event handler (#2249) props[handlerName = toHandlerKey(camelize$1(event2))]; if (!handler6 && isModelListener2) { handler6 = props[handlerName = toHandlerKey(hyphenate$1(event2))]; } if (handler6) { callWithAsyncErrorHandling( handler6, instance, 6, args ); } const onceHandler = props[handlerName + `Once`]; if (onceHandler) { if (!instance.emitted) { instance.emitted = {}; } else if (instance.emitted[handlerName]) { return; } instance.emitted[handlerName] = true; callWithAsyncErrorHandling( onceHandler, instance, 6, args ); } } __name(emit, "emit"); function normalizeEmitsOptions(comp, appContext, asMixin = false) { const cache2 = appContext.emitsCache; const cached = cache2.get(comp); if (cached !== void 0) { return cached; } const raw = comp.emits; let normalized = {}; let hasExtends = false; if (!isFunction$4(comp)) { const extendEmits = /* @__PURE__ */ __name((raw2) => { const normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); if (normalizedFromExtend) { hasExtends = true; extend$1(normalized, normalizedFromExtend); } }, "extendEmits"); if (!asMixin && appContext.mixins.length) { appContext.mixins.forEach(extendEmits); } if (comp.extends) { extendEmits(comp.extends); } if (comp.mixins) { comp.mixins.forEach(extendEmits); } } if (!raw && !hasExtends) { if (isObject$6(comp)) { cache2.set(comp, null); } return null; } if (isArray$4(raw)) { raw.forEach((key) => normalized[key] = null); } else { extend$1(normalized, raw); } if (isObject$6(comp)) { cache2.set(comp, normalized); } return normalized; } __name(normalizeEmitsOptions, "normalizeEmitsOptions"); function isEmitListener(options3, key) { if (!options3 || !isOn(key)) { return false; } key = key.slice(2).replace(/Once$/, ""); return hasOwn$3(options3, key[0].toLowerCase() + key.slice(1)) || hasOwn$3(options3, hyphenate$1(key)) || hasOwn$3(options3, key); } __name(isEmitListener, "isEmitListener"); let currentRenderingInstance = null; let currentScopeId = null; function setCurrentRenderingInstance(instance) { const prev2 = currentRenderingInstance; currentRenderingInstance = instance; currentScopeId = instance && instance.type.__scopeId || null; return prev2; } __name(setCurrentRenderingInstance, "setCurrentRenderingInstance"); function pushScopeId(id2) { currentScopeId = id2; } __name(pushScopeId, "pushScopeId"); function popScopeId() { currentScopeId = null; } __name(popScopeId, "popScopeId"); const withScopeId = /* @__PURE__ */ __name((_id2) => withCtx, "withScopeId"); function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) { if (!ctx) return fn; if (fn._n) { return fn; } const renderFnWithContext = /* @__PURE__ */ __name((...args) => { if (renderFnWithContext._d) { setBlockTracking(-1); } const prevInstance = setCurrentRenderingInstance(ctx); let res; try { res = fn(...args); } finally { setCurrentRenderingInstance(prevInstance); if (renderFnWithContext._d) { setBlockTracking(1); } } if (false) { devtoolsComponentUpdated(ctx); } return res; }, "renderFnWithContext"); renderFnWithContext._n = true; renderFnWithContext._c = true; renderFnWithContext._d = true; return renderFnWithContext; } __name(withCtx, "withCtx"); let accessedAttrs = false; function markAttrsAccessed() { accessedAttrs = true; } __name(markAttrsAccessed, "markAttrsAccessed"); function renderComponentRoot(instance) { const { type: Component, vnode, proxy, withProxy, propsOptions: [propsOptions], slots, attrs: attrs3, emit: emit2, render: render2, renderCache, props, data: data24, setupState, ctx, inheritAttrs } = instance; const prev2 = setCurrentRenderingInstance(instance); let result; let fallthroughAttrs; if (false) { accessedAttrs = false; } try { if (vnode.shapeFlag & 4) { const proxyToUse = withProxy || proxy; const thisProxy = false ? new Proxy(proxyToUse, { get(target, key, receiver) { warn$1( `Property '${String( key )}' was accessed via 'this'. Avoid using 'this' in templates.` ); return Reflect.get(target, key, receiver); } }) : proxyToUse; result = normalizeVNode( render2.call( thisProxy, proxyToUse, renderCache, false ? shallowReadonly(props) : props, setupState, data24, ctx ) ); fallthroughAttrs = attrs3; } else { const render22 = Component; if (false) { markAttrsAccessed(); } result = normalizeVNode( render22.length > 1 ? render22( false ? shallowReadonly(props) : props, false ? { get attrs() { markAttrsAccessed(); return shallowReadonly(attrs3); }, slots, emit: emit2 } : { attrs: attrs3, slots, emit: emit2 } ) : render22( false ? shallowReadonly(props) : props, null ) ); fallthroughAttrs = Component.props ? attrs3 : getFunctionalFallthrough(attrs3); } } catch (err) { blockStack.length = 0; handleError(err, instance, 1); result = createVNode(Comment); } let root26 = result; let setRoot = void 0; if (false) { [root26, setRoot] = getChildRoot(result); } if (fallthroughAttrs && inheritAttrs !== false) { const keys2 = Object.keys(fallthroughAttrs); const { shapeFlag } = root26; if (keys2.length) { if (shapeFlag & (1 | 6)) { if (propsOptions && keys2.some(isModelListener)) { fallthroughAttrs = filterModelListeners( fallthroughAttrs, propsOptions ); } root26 = cloneVNode(root26, fallthroughAttrs, false, true); } else if (false) { const allAttrs = Object.keys(attrs3); const eventAttrs = []; const extraAttrs = []; for (let i2 = 0, l = allAttrs.length; i2 < l; i2++) { const key = allAttrs[i2]; if (isOn(key)) { if (!isModelListener(key)) { eventAttrs.push(key[2].toLowerCase() + key.slice(3)); } } else { extraAttrs.push(key); } } if (extraAttrs.length) { warn$1( `Extraneous non-props attributes (${extraAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.` ); } if (eventAttrs.length) { warn$1( `Extraneous non-emits event listeners (${eventAttrs.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.` ); } } } } if (vnode.dirs) { if (false) { warn$1( `Runtime directive used on component with non-element root node. The directives will not function as intended.` ); } root26 = cloneVNode(root26, null, false, true); root26.dirs = root26.dirs ? root26.dirs.concat(vnode.dirs) : vnode.dirs; } if (vnode.transition) { if (false) { warn$1( `Component inside renders non-element root node that cannot be animated.` ); } root26.transition = vnode.transition; } if (false) { setRoot(root26); } else { result = root26; } setCurrentRenderingInstance(prev2); return result; } __name(renderComponentRoot, "renderComponentRoot"); const getChildRoot = /* @__PURE__ */ __name((vnode) => { const rawChildren = vnode.children; const dynamicChildren = vnode.dynamicChildren; const childRoot = filterSingleRoot(rawChildren, false); if (!childRoot) { return [vnode, void 0]; } else if (false) { return getChildRoot(childRoot); } const index2 = rawChildren.indexOf(childRoot); const dynamicIndex = dynamicChildren ? dynamicChildren.indexOf(childRoot) : -1; const setRoot = /* @__PURE__ */ __name((updatedRoot) => { rawChildren[index2] = updatedRoot; if (dynamicChildren) { if (dynamicIndex > -1) { dynamicChildren[dynamicIndex] = updatedRoot; } else if (updatedRoot.patchFlag > 0) { vnode.dynamicChildren = [...dynamicChildren, updatedRoot]; } } }, "setRoot"); return [normalizeVNode(childRoot), setRoot]; }, "getChildRoot"); function filterSingleRoot(children, recurse = true) { let singleRoot; for (let i2 = 0; i2 < children.length; i2++) { const child = children[i2]; if (isVNode$1(child)) { if (child.type !== Comment || child.children === "v-if") { if (singleRoot) { return; } else { singleRoot = child; if (false) { return filterSingleRoot(singleRoot.children); } } } } else { return; } } return singleRoot; } __name(filterSingleRoot, "filterSingleRoot"); const getFunctionalFallthrough = /* @__PURE__ */ __name((attrs3) => { let res; for (const key in attrs3) { if (key === "class" || key === "style" || isOn(key)) { (res || (res = {}))[key] = attrs3[key]; } } return res; }, "getFunctionalFallthrough"); const filterModelListeners = /* @__PURE__ */ __name((attrs3, props) => { const res = {}; for (const key in attrs3) { if (!isModelListener(key) || !(key.slice(9) in props)) { res[key] = attrs3[key]; } } return res; }, "filterModelListeners"); const isElementRoot = /* @__PURE__ */ __name((vnode) => { return vnode.shapeFlag & (6 | 1) || vnode.type === Comment; }, "isElementRoot"); function shouldUpdateComponent(prevVNode, nextVNode, optimized) { const { props: prevProps, children: prevChildren, component } = prevVNode; const { props: nextProps, children: nextChildren, patchFlag } = nextVNode; const emits = component.emitsOptions; if (false) { return true; } if (nextVNode.dirs || nextVNode.transition) { return true; } if (optimized && patchFlag >= 0) { if (patchFlag & 1024) { return true; } if (patchFlag & 16) { if (!prevProps) { return !!nextProps; } return hasPropsChanged(prevProps, nextProps, emits); } else if (patchFlag & 8) { const dynamicProps = nextVNode.dynamicProps; for (let i2 = 0; i2 < dynamicProps.length; i2++) { const key = dynamicProps[i2]; if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) { return true; } } } } else { if (prevChildren || nextChildren) { if (!nextChildren || !nextChildren.$stable) { return true; } } if (prevProps === nextProps) { return false; } if (!prevProps) { return !!nextProps; } if (!nextProps) { return true; } return hasPropsChanged(prevProps, nextProps, emits); } return false; } __name(shouldUpdateComponent, "shouldUpdateComponent"); function hasPropsChanged(prevProps, nextProps, emitsOptions) { const nextKeys = Object.keys(nextProps); if (nextKeys.length !== Object.keys(prevProps).length) { return true; } for (let i2 = 0; i2 < nextKeys.length; i2++) { const key = nextKeys[i2]; if (nextProps[key] !== prevProps[key] && !isEmitListener(emitsOptions, key)) { return true; } } return false; } __name(hasPropsChanged, "hasPropsChanged"); function updateHOCHostEl({ vnode, parent }, el) { while (parent) { const root26 = parent.subTree; if (root26.suspense && root26.suspense.activeBranch === vnode) { root26.el = vnode.el; } if (root26 === vnode) { (vnode = parent.vnode).el = el; parent = parent.parent; } else { break; } } } __name(updateHOCHostEl, "updateHOCHostEl"); const COMPONENTS = "components"; const DIRECTIVES = "directives"; function resolveComponent(name, maybeSelfReference) { return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name; } __name(resolveComponent, "resolveComponent"); const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc"); function resolveDynamicComponent(component) { if (isString$5(component)) { return resolveAsset(COMPONENTS, component, false) || component; } else { return component || NULL_DYNAMIC_COMPONENT; } } __name(resolveDynamicComponent, "resolveDynamicComponent"); function resolveDirective(name) { return resolveAsset(DIRECTIVES, name); } __name(resolveDirective, "resolveDirective"); function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false) { const instance = currentRenderingInstance || currentInstance; if (instance) { const Component = instance.type; if (type === COMPONENTS) { const selfName = getComponentName( Component, false ); if (selfName && (selfName === name || selfName === camelize$1(name) || selfName === capitalize$1(camelize$1(name)))) { return Component; } } const res = ( // local registration // check instance[type] first which is resolved for options API resolve$1(instance[type] || Component[type], name) || // global registration resolve$1(instance.appContext[type], name) ); if (!res && maybeSelfReference) { return Component; } if (false) { const extra = type === COMPONENTS ? ` If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : ``; warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`); } return res; } else if (false) { warn$1( `resolve${capitalize$1(type.slice(0, -1))} can only be used in render() or setup().` ); } } __name(resolveAsset, "resolveAsset"); function resolve$1(registry, name) { return registry && (registry[name] || registry[camelize$1(name)] || registry[capitalize$1(camelize$1(name))]); } __name(resolve$1, "resolve$1"); const isSuspense = /* @__PURE__ */ __name((type) => type.__isSuspense, "isSuspense"); let suspenseId = 0; const SuspenseImpl = { name: "Suspense", // In order to make Suspense tree-shakable, we need to avoid importing it // directly in the renderer. The renderer checks for the __isSuspense flag // on a vnode's type and calls the `process` method, passing in renderer // internals. __isSuspense: true, process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { if (n1 == null) { mountSuspense( n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals ); } else { if (parentSuspense && parentSuspense.deps > 0 && !n1.suspense.isInFallback) { n2.suspense = n1.suspense; n2.suspense.vnode = n2; n2.el = n1.el; return; } patchSuspense( n1, n2, container, anchor, parentComponent, namespace, slotScopeIds, optimized, rendererInternals ); } }, hydrate: hydrateSuspense, normalize: normalizeSuspenseChildren }; const Suspense = SuspenseImpl; function triggerEvent(vnode, name) { const eventListener = vnode.props && vnode.props[name]; if (isFunction$4(eventListener)) { eventListener(); } } __name(triggerEvent, "triggerEvent"); function mountSuspense(vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) { const { p: patch, o: { createElement: createElement2 } } = rendererInternals; const hiddenContainer = createElement2("div"); const suspense = vnode.suspense = createSuspenseBoundary( vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, namespace, slotScopeIds, optimized, rendererInternals ); patch( null, suspense.pendingBranch = vnode.ssContent, hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds ); if (suspense.deps > 0) { triggerEvent(vnode, "onPending"); triggerEvent(vnode, "onFallback"); patch( null, vnode.ssFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context namespace, slotScopeIds ); setActiveBranch(suspense, vnode.ssFallback); } else { suspense.resolve(false, true); } } __name(mountSuspense, "mountSuspense"); function patchSuspense(n1, n2, container, anchor, parentComponent, namespace, slotScopeIds, optimized, { p: patch, um: unmount, o: { createElement: createElement2 } }) { const suspense = n2.suspense = n1.suspense; suspense.vnode = n2; n2.el = n1.el; const newBranch = n2.ssContent; const newFallback = n2.ssFallback; const { activeBranch, pendingBranch, isInFallback, isHydrating } = suspense; if (pendingBranch) { suspense.pendingBranch = newBranch; if (isSameVNodeType(newBranch, pendingBranch)) { patch( pendingBranch, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized ); if (suspense.deps <= 0) { suspense.resolve(); } else if (isInFallback) { if (!isHydrating) { patch( activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context namespace, slotScopeIds, optimized ); setActiveBranch(suspense, newFallback); } } } else { suspense.pendingId = suspenseId++; if (isHydrating) { suspense.isHydrating = false; suspense.activeBranch = pendingBranch; } else { unmount(pendingBranch, parentComponent, suspense); } suspense.deps = 0; suspense.effects.length = 0; suspense.hiddenContainer = createElement2("div"); if (isInFallback) { patch( null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized ); if (suspense.deps <= 0) { suspense.resolve(); } else { patch( activeBranch, newFallback, container, anchor, parentComponent, null, // fallback tree will not have suspense context namespace, slotScopeIds, optimized ); setActiveBranch(suspense, newFallback); } } else if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { patch( activeBranch, newBranch, container, anchor, parentComponent, suspense, namespace, slotScopeIds, optimized ); suspense.resolve(true); } else { patch( null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized ); if (suspense.deps <= 0) { suspense.resolve(); } } } } else { if (activeBranch && isSameVNodeType(newBranch, activeBranch)) { patch( activeBranch, newBranch, container, anchor, parentComponent, suspense, namespace, slotScopeIds, optimized ); setActiveBranch(suspense, newBranch); } else { triggerEvent(n2, "onPending"); suspense.pendingBranch = newBranch; if (newBranch.shapeFlag & 512) { suspense.pendingId = newBranch.component.suspenseId; } else { suspense.pendingId = suspenseId++; } patch( null, newBranch, suspense.hiddenContainer, null, parentComponent, suspense, namespace, slotScopeIds, optimized ); if (suspense.deps <= 0) { suspense.resolve(); } else { const { timeout, pendingId } = suspense; if (timeout > 0) { setTimeout(() => { if (suspense.pendingId === pendingId) { suspense.fallback(newFallback); } }, timeout); } else if (timeout === 0) { suspense.fallback(newFallback); } } } } } __name(patchSuspense, "patchSuspense"); let hasWarned$1 = false; function createSuspenseBoundary(vnode, parentSuspense, parentComponent, container, hiddenContainer, anchor, namespace, slotScopeIds, optimized, rendererInternals, isHydrating = false) { if (false) { hasWarned$1 = true; console[console.info ? "info" : "log"]( ` is an experimental feature and its API will likely change.` ); } const { p: patch, m: move, um: unmount, n: next2, o: { parentNode, remove: remove22 } } = rendererInternals; let parentSuspenseId; const isSuspensible = isVNodeSuspensible(vnode); if (isSuspensible) { if (parentSuspense && parentSuspense.pendingBranch) { parentSuspenseId = parentSuspense.pendingId; parentSuspense.deps++; } } const timeout = vnode.props ? toNumber(vnode.props.timeout) : void 0; if (false) { assertNumber(timeout, `Suspense timeout`); } const initialAnchor = anchor; const suspense = { vnode, parent: parentSuspense, parentComponent, namespace, container, hiddenContainer, deps: 0, pendingId: suspenseId++, timeout: typeof timeout === "number" ? timeout : -1, activeBranch: null, pendingBranch: null, isInFallback: !isHydrating, isHydrating, isUnmounted: false, effects: [], resolve(resume = false, sync = false) { if (false) { if (!resume && !suspense.pendingBranch) { throw new Error( `suspense.resolve() is called without a pending branch.` ); } if (suspense.isUnmounted) { throw new Error( `suspense.resolve() is called on an already unmounted suspense boundary.` ); } } const { vnode: vnode2, activeBranch, pendingBranch, pendingId, effects, parentComponent: parentComponent2, container: container2 } = suspense; let delayEnter = false; if (suspense.isHydrating) { suspense.isHydrating = false; } else if (!resume) { delayEnter = activeBranch && pendingBranch.transition && pendingBranch.transition.mode === "out-in"; if (delayEnter) { activeBranch.transition.afterLeave = () => { if (pendingId === suspense.pendingId) { move( pendingBranch, container2, anchor === initialAnchor ? next2(activeBranch) : anchor, 0 ); queuePostFlushCb(effects); } }; } if (activeBranch) { if (parentNode(activeBranch.el) !== suspense.hiddenContainer) { anchor = next2(activeBranch); } unmount(activeBranch, parentComponent2, suspense, true); } if (!delayEnter) { move(pendingBranch, container2, anchor, 0); } } setActiveBranch(suspense, pendingBranch); suspense.pendingBranch = null; suspense.isInFallback = false; let parent = suspense.parent; let hasUnresolvedAncestor = false; while (parent) { if (parent.pendingBranch) { parent.effects.push(...effects); hasUnresolvedAncestor = true; break; } parent = parent.parent; } if (!hasUnresolvedAncestor && !delayEnter) { queuePostFlushCb(effects); } suspense.effects = []; if (isSuspensible) { if (parentSuspense && parentSuspense.pendingBranch && parentSuspenseId === parentSuspense.pendingId) { parentSuspense.deps--; if (parentSuspense.deps === 0 && !sync) { parentSuspense.resolve(); } } } triggerEvent(vnode2, "onResolve"); }, fallback(fallbackVNode) { if (!suspense.pendingBranch) { return; } const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, namespace: namespace2 } = suspense; triggerEvent(vnode2, "onFallback"); const anchor2 = next2(activeBranch); const mountFallback = /* @__PURE__ */ __name(() => { if (!suspense.isInFallback) { return; } patch( null, fallbackVNode, container2, anchor2, parentComponent2, null, // fallback tree will not have suspense context namespace2, slotScopeIds, optimized ); setActiveBranch(suspense, fallbackVNode); }, "mountFallback"); const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in"; if (delayEnter) { activeBranch.transition.afterLeave = mountFallback; } suspense.isInFallback = true; unmount( activeBranch, parentComponent2, null, // no suspense so unmount hooks fire now true // shouldRemove ); if (!delayEnter) { mountFallback(); } }, move(container2, anchor2, type) { suspense.activeBranch && move(suspense.activeBranch, container2, anchor2, type); suspense.container = container2; }, next() { return suspense.activeBranch && next2(suspense.activeBranch); }, registerDep(instance, setupRenderEffect, optimized2) { const isInPendingSuspense = !!suspense.pendingBranch; if (isInPendingSuspense) { suspense.deps++; } const hydratedEl = instance.vnode.el; instance.asyncDep.catch((err) => { handleError(err, instance, 0); }).then((asyncSetupResult) => { if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) { return; } instance.asyncResolved = true; const { vnode: vnode2 } = instance; if (false) { pushWarningContext(vnode2); } handleSetupResult(instance, asyncSetupResult, false); if (hydratedEl) { vnode2.el = hydratedEl; } const placeholder = !hydratedEl && instance.subTree.el; setupRenderEffect( instance, vnode2, // component may have been moved before resolve. // if this is not a hydration, instance.subTree will be the comment // placeholder. parentNode(hydratedEl || instance.subTree.el), // anchor will not be used if this is hydration, so only need to // consider the comment placeholder case. hydratedEl ? null : next2(instance.subTree), suspense, namespace, optimized2 ); if (placeholder) { remove22(placeholder); } updateHOCHostEl(instance, vnode2.el); if (false) { popWarningContext(); } if (isInPendingSuspense && --suspense.deps === 0) { suspense.resolve(); } }); }, unmount(parentSuspense2, doRemove) { suspense.isUnmounted = true; if (suspense.activeBranch) { unmount( suspense.activeBranch, parentComponent, parentSuspense2, doRemove ); } if (suspense.pendingBranch) { unmount( suspense.pendingBranch, parentComponent, parentSuspense2, doRemove ); } } }; return suspense; } __name(createSuspenseBoundary, "createSuspenseBoundary"); function hydrateSuspense(node3, vnode, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals, hydrateNode) { const suspense = vnode.suspense = createSuspenseBoundary( vnode, parentSuspense, parentComponent, node3.parentNode, // eslint-disable-next-line no-restricted-globals document.createElement("div"), null, namespace, slotScopeIds, optimized, rendererInternals, true ); const result = hydrateNode( node3, suspense.pendingBranch = vnode.ssContent, parentComponent, suspense, slotScopeIds, optimized ); if (suspense.deps === 0) { suspense.resolve(false, true); } return result; } __name(hydrateSuspense, "hydrateSuspense"); function normalizeSuspenseChildren(vnode) { const { shapeFlag, children } = vnode; const isSlotChildren = shapeFlag & 32; vnode.ssContent = normalizeSuspenseSlot( isSlotChildren ? children.default : children ); vnode.ssFallback = isSlotChildren ? normalizeSuspenseSlot(children.fallback) : createVNode(Comment); } __name(normalizeSuspenseChildren, "normalizeSuspenseChildren"); function normalizeSuspenseSlot(s) { let block2; if (isFunction$4(s)) { const trackBlock = isBlockTreeEnabled && s._c; if (trackBlock) { s._d = false; openBlock(); } s = s(); if (trackBlock) { s._d = true; block2 = currentBlock; closeBlock(); } } if (isArray$4(s)) { const singleChild = filterSingleRoot(s); if (false) { warn$1(` slots expect a single root node.`); } s = singleChild; } s = normalizeVNode(s); if (block2 && !s.dynamicChildren) { s.dynamicChildren = block2.filter((c) => c !== s); } return s; } __name(normalizeSuspenseSlot, "normalizeSuspenseSlot"); function queueEffectWithSuspense(fn, suspense) { if (suspense && suspense.pendingBranch) { if (isArray$4(fn)) { suspense.effects.push(...fn); } else { suspense.effects.push(fn); } } else { queuePostFlushCb(fn); } } __name(queueEffectWithSuspense, "queueEffectWithSuspense"); function setActiveBranch(suspense, branch) { suspense.activeBranch = branch; const { vnode, parentComponent } = suspense; let el = branch.el; while (!el && branch.component) { branch = branch.component.subTree; el = branch.el; } vnode.el = el; if (parentComponent && parentComponent.subTree === vnode) { parentComponent.vnode.el = el; updateHOCHostEl(parentComponent, el); } } __name(setActiveBranch, "setActiveBranch"); function isVNodeSuspensible(vnode) { const suspensible = vnode.props && vnode.props.suspensible; return suspensible != null && suspensible !== false; } __name(isVNodeSuspensible, "isVNodeSuspensible"); function injectHook(type, hook, target = currentInstance, prepend = false) { if (target) { const hooks = target[type] || (target[type] = []); const wrappedHook = hook.__weh || (hook.__weh = (...args) => { pauseTracking(); const reset = setCurrentInstance(target); const res = callWithAsyncErrorHandling(hook, target, type, args); reset(); resetTracking(); return res; }); if (prepend) { hooks.unshift(wrappedHook); } else { hooks.push(wrappedHook); } return wrappedHook; } else if (false) { const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, "")); warn$1( `${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.` ); } } __name(injectHook, "injectHook"); const createHook = /* @__PURE__ */ __name((lifecycle2) => (hook, target = currentInstance) => { if (!isInSSRComponentSetup || lifecycle2 === "sp") { injectHook(lifecycle2, (...args) => hook(...args), target); } }, "createHook"); const onBeforeMount = createHook("bm"); const onMounted = createHook("m"); const onBeforeUpdate = createHook("bu"); const onUpdated = createHook("u"); const onBeforeUnmount = createHook("bum"); const onUnmounted = createHook("um"); const onServerPrefetch = createHook("sp"); const onRenderTriggered = createHook( "rtg" ); const onRenderTracked = createHook( "rtc" ); function onErrorCaptured(hook, target = currentInstance) { injectHook("ec", hook, target); } __name(onErrorCaptured, "onErrorCaptured"); function validateDirectiveName(name) { if (isBuiltInDirective(name)) { warn$1("Do not use built-in directive ids as custom directive id: " + name); } } __name(validateDirectiveName, "validateDirectiveName"); function withDirectives(vnode, directives) { if (currentRenderingInstance === null) { return vnode; } const instance = getComponentPublicInstance(currentRenderingInstance); const bindings = vnode.dirs || (vnode.dirs = []); for (let i2 = 0; i2 < directives.length; i2++) { let [dir, value3, arg, modifiers = EMPTY_OBJ] = directives[i2]; if (dir) { if (isFunction$4(dir)) { dir = { mounted: dir, updated: dir }; } if (dir.deep) { traverse(value3); } bindings.push({ dir, instance, value: value3, oldValue: void 0, arg, modifiers }); } } return vnode; } __name(withDirectives, "withDirectives"); function invokeDirectiveHook(vnode, prevVNode, instance, name) { const bindings = vnode.dirs; const oldBindings = prevVNode && prevVNode.dirs; for (let i2 = 0; i2 < bindings.length; i2++) { const binding = bindings[i2]; if (oldBindings) { binding.oldValue = oldBindings[i2].value; } let hook = binding.dir[name]; if (hook) { pauseTracking(); callWithAsyncErrorHandling(hook, instance, 8, [ vnode.el, binding, vnode, prevVNode ]); resetTracking(); } } } __name(invokeDirectiveHook, "invokeDirectiveHook"); function renderList(source, renderItem, cache2, index2) { let ret; const cached = cache2 && cache2[index2]; if (isArray$4(source) || isString$5(source)) { ret = new Array(source.length); for (let i2 = 0, l = source.length; i2 < l; i2++) { ret[i2] = renderItem(source[i2], i2, void 0, cached && cached[i2]); } } else if (typeof source === "number") { if (false) { warn$1(`The v-for range expect an integer value but got ${source}.`); } ret = new Array(source); for (let i2 = 0; i2 < source; i2++) { ret[i2] = renderItem(i2 + 1, i2, void 0, cached && cached[i2]); } } else if (isObject$6(source)) { if (source[Symbol.iterator]) { ret = Array.from( source, (item2, i2) => renderItem(item2, i2, void 0, cached && cached[i2]) ); } else { const keys2 = Object.keys(source); ret = new Array(keys2.length); for (let i2 = 0, l = keys2.length; i2 < l; i2++) { const key = keys2[i2]; ret[i2] = renderItem(source[key], key, i2, cached && cached[i2]); } } } else { ret = []; } if (cache2) { cache2[index2] = ret; } return ret; } __name(renderList, "renderList"); function createSlots(slots, dynamicSlots) { for (let i2 = 0; i2 < dynamicSlots.length; i2++) { const slot = dynamicSlots[i2]; if (isArray$4(slot)) { for (let j = 0; j < slot.length; j++) { slots[slot[j].name] = slot[j].fn; } } else if (slot) { slots[slot.name] = slot.key ? (...args) => { const res = slot.fn(...args); if (res) res.key = slot.key; return res; } : slot.fn; } } return slots; } __name(createSlots, "createSlots"); /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function defineComponent(options3, extraOptions) { return isFunction$4(options3) ? ( // #8326: extend call and options.name access are considered side-effects // by Rollup, so we have to wrap it in a pure-annotated IIFE. /* @__PURE__ */ (() => extend$1({ name: options3.name }, extraOptions, { setup: options3 }))() ) : options3; } __name(defineComponent, "defineComponent"); const isAsyncWrapper = /* @__PURE__ */ __name((i2) => !!i2.type.__asyncLoader, "isAsyncWrapper"); /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function defineAsyncComponent(source) { if (isFunction$4(source)) { source = { loader: source }; } const { loader, loadingComponent, errorComponent, delay = 200, timeout, // undefined = never times out suspensible = true, onError: userOnError } = source; let pendingRequest = null; let resolvedComp; let retries = 0; const retry = /* @__PURE__ */ __name(() => { retries++; pendingRequest = null; return load2(); }, "retry"); const load2 = /* @__PURE__ */ __name(() => { let thisRequest; return pendingRequest || (thisRequest = pendingRequest = loader().catch((err) => { err = err instanceof Error ? err : new Error(String(err)); if (userOnError) { return new Promise((resolve22, reject2) => { const userRetry = /* @__PURE__ */ __name(() => resolve22(retry()), "userRetry"); const userFail = /* @__PURE__ */ __name(() => reject2(err), "userFail"); userOnError(err, userRetry, userFail, retries + 1); }); } else { throw err; } }).then((comp) => { if (thisRequest !== pendingRequest && pendingRequest) { return pendingRequest; } if (false) { warn$1( `Async component loader resolved to undefined. If you are using retry(), make sure to return its return value.` ); } if (comp && (comp.__esModule || comp[Symbol.toStringTag] === "Module")) { comp = comp.default; } if (false) { throw new Error(`Invalid async component load result: ${comp}`); } resolvedComp = comp; return comp; })); }, "load"); return /* @__PURE__ */ defineComponent({ name: "AsyncComponentWrapper", __asyncLoader: load2, get __asyncResolved() { return resolvedComp; }, setup() { const instance = currentInstance; if (resolvedComp) { return () => createInnerComp(resolvedComp, instance); } const onError = /* @__PURE__ */ __name((err) => { pendingRequest = null; handleError( err, instance, 13, !errorComponent ); }, "onError"); if (suspensible && instance.suspense || isInSSRComponentSetup) { return load2().then((comp) => { return () => createInnerComp(comp, instance); }).catch((err) => { onError(err); return () => errorComponent ? createVNode(errorComponent, { error: err }) : null; }); } const loaded = ref(false); const error = ref(); const delayed = ref(!!delay); if (delay) { setTimeout(() => { delayed.value = false; }, delay); } if (timeout != null) { setTimeout(() => { if (!loaded.value && !error.value) { const err = new Error( `Async component timed out after ${timeout}ms.` ); onError(err); error.value = err; } }, timeout); } load2().then(() => { loaded.value = true; if (instance.parent && isKeepAlive(instance.parent.vnode)) { instance.parent.effect.dirty = true; queueJob(instance.parent.update); } }).catch((err) => { onError(err); error.value = err; }); return () => { if (loaded.value && resolvedComp) { return createInnerComp(resolvedComp, instance); } else if (error.value && errorComponent) { return createVNode(errorComponent, { error: error.value }); } else if (loadingComponent && !delayed.value) { return createVNode(loadingComponent); } }; } }); } __name(defineAsyncComponent, "defineAsyncComponent"); function createInnerComp(comp, parent) { const { ref: ref22, props, children, ce } = parent.vnode; const vnode = createVNode(comp, props, children); vnode.ref = ref22; vnode.ce = ce; delete parent.vnode.ce; return vnode; } __name(createInnerComp, "createInnerComp"); function renderSlot(slots, name, props = {}, fallback, noSlotted) { if (currentRenderingInstance.isCE || currentRenderingInstance.parent && isAsyncWrapper(currentRenderingInstance.parent) && currentRenderingInstance.parent.isCE) { if (name !== "default") props.name = name; return createVNode("slot", props, fallback && fallback()); } let slot = slots[name]; if (false) { warn$1( `SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template.` ); slot = /* @__PURE__ */ __name(() => [], "slot"); } if (slot && slot._c) { slot._d = false; } openBlock(); const validSlotContent = slot && ensureValidVNode(slot(props)); const rendered = createBlock( Fragment, { key: props.key || // slot content array of a dynamic conditional slot may have a branch // key attached in the `createSlots` helper, respect that validSlotContent && validSlotContent.key || `_${name}` }, validSlotContent || (fallback ? fallback() : []), validSlotContent && slots._ === 1 ? 64 : -2 ); if (!noSlotted && rendered.scopeId) { rendered.slotScopeIds = [rendered.scopeId + "-s"]; } if (slot && slot._c) { slot._d = true; } return rendered; } __name(renderSlot, "renderSlot"); function ensureValidVNode(vnodes) { return vnodes.some((child) => { if (!isVNode$1(child)) return true; if (child.type === Comment) return false; if (child.type === Fragment && !ensureValidVNode(child.children)) return false; return true; }) ? vnodes : null; } __name(ensureValidVNode, "ensureValidVNode"); function toHandlers(obj, preserveCaseIfNecessary) { const ret = {}; if (false) { warn$1(`v-on with no argument expects an object value.`); return ret; } for (const key in obj) { ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey(key)] = obj[key]; } return ret; } __name(toHandlers, "toHandlers"); const getPublicInstance = /* @__PURE__ */ __name((i2) => { if (!i2) return null; if (isStatefulComponent(i2)) return getComponentPublicInstance(i2); return getPublicInstance(i2.parent); }, "getPublicInstance"); const publicPropertiesMap = ( // Move PURE marker to new line to workaround compiler discarding it // due to type annotation /* @__PURE__ */ extend$1(/* @__PURE__ */ Object.create(null), { $: /* @__PURE__ */ __name((i2) => i2, "$"), $el: /* @__PURE__ */ __name((i2) => i2.vnode.el, "$el"), $data: /* @__PURE__ */ __name((i2) => i2.data, "$data"), $props: /* @__PURE__ */ __name((i2) => false ? shallowReadonly(i2.props) : i2.props, "$props"), $attrs: /* @__PURE__ */ __name((i2) => false ? shallowReadonly(i2.attrs) : i2.attrs, "$attrs"), $slots: /* @__PURE__ */ __name((i2) => false ? shallowReadonly(i2.slots) : i2.slots, "$slots"), $refs: /* @__PURE__ */ __name((i2) => false ? shallowReadonly(i2.refs) : i2.refs, "$refs"), $parent: /* @__PURE__ */ __name((i2) => getPublicInstance(i2.parent), "$parent"), $root: /* @__PURE__ */ __name((i2) => getPublicInstance(i2.root), "$root"), $emit: /* @__PURE__ */ __name((i2) => i2.emit, "$emit"), $options: /* @__PURE__ */ __name((i2) => true ? resolveMergedOptions(i2) : i2.type, "$options"), $forceUpdate: /* @__PURE__ */ __name((i2) => i2.f || (i2.f = () => { i2.effect.dirty = true; queueJob(i2.update); }), "$forceUpdate"), $nextTick: /* @__PURE__ */ __name((i2) => i2.n || (i2.n = nextTick.bind(i2.proxy)), "$nextTick"), $watch: /* @__PURE__ */ __name((i2) => true ? instanceWatch.bind(i2) : NOOP, "$watch") }) ); const isReservedPrefix = /* @__PURE__ */ __name((key) => key === "_" || key === "$", "isReservedPrefix"); const hasSetupBinding = /* @__PURE__ */ __name((state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn$3(state, key), "hasSetupBinding"); const PublicInstanceProxyHandlers = { get({ _: instance }, key) { if (key === "__v_skip") { return true; } const { ctx, setupState, data: data24, props, accessCache, type, appContext } = instance; if (false) { return true; } let normalizedProps; if (key[0] !== "$") { const n = accessCache[key]; if (n !== void 0) { switch (n) { case 1: return setupState[key]; case 2: return data24[key]; case 4: return ctx[key]; case 3: return props[key]; } } else if (hasSetupBinding(setupState, key)) { accessCache[key] = 1; return setupState[key]; } else if (data24 !== EMPTY_OBJ && hasOwn$3(data24, key)) { accessCache[key] = 2; return data24[key]; } else if ( // only cache other properties when instance has declared (thus stable) // props (normalizedProps = instance.propsOptions[0]) && hasOwn$3(normalizedProps, key) ) { accessCache[key] = 3; return props[key]; } else if (ctx !== EMPTY_OBJ && hasOwn$3(ctx, key)) { accessCache[key] = 4; return ctx[key]; } else if (shouldCacheAccess) { accessCache[key] = 0; } } const publicGetter = publicPropertiesMap[key]; let cssModule, globalProperties; if (publicGetter) { if (key === "$attrs") { track(instance.attrs, "get", ""); } else if (false) { track(instance, "get", key); } return publicGetter(instance); } else if ( // css module (injected by vue-loader) (cssModule = type.__cssModules) && (cssModule = cssModule[key]) ) { return cssModule; } else if (ctx !== EMPTY_OBJ && hasOwn$3(ctx, key)) { accessCache[key] = 4; return ctx[key]; } else if ( // global properties globalProperties = appContext.config.globalProperties, hasOwn$3(globalProperties, key) ) { { return globalProperties[key]; } } else if (false) { if (data24 !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn$3(data24, key)) { warn$1( `Property ${JSON.stringify( key )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.` ); } else if (instance === currentRenderingInstance) { warn$1( `Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.` ); } } }, set({ _: instance }, key, value3) { const { data: data24, setupState, ctx } = instance; if (hasSetupBinding(setupState, key)) { setupState[key] = value3; return true; } else if (false) { warn$1(`Cannot mutate