(function(factory) { typeof define === "function" && define.amd ? define(factory) : factory(); })(function() { "use strict"; function getDefaultExportFromCjs(x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; } var _wks = { exports: {} }; var _shared = { exports: {} }; var _core = { exports: {} }; var core$3 = _core.exports = { version: "2.6.12" }; if (typeof __e == "number") __e = core$3; var _coreExports = _core.exports; var _global = { exports: {} }; var global$5 = _global.exports = typeof window != "undefined" && window.Math == Math ? window : typeof self != "undefined" && self.Math == Math ? self : Function("return this")(); if (typeof __g == "number") __g = global$5; var _globalExports = _global.exports; var core$2 = _coreExports; var global$4 = _globalExports; var SHARED = "__core-js_shared__"; var store$1 = global$4[SHARED] || (global$4[SHARED] = {}); (_shared.exports = function(key2, value) { return store$1[key2] || (store$1[key2] = value !== void 0 ? value : {}); })("versions", []).push({ version: core$2.version, mode: "global", copyright: "© 2020 Denis Pushkarev (zloirock.ru)" }); var _sharedExports = _shared.exports; var id = 0; var px = Math.random(); var _uid = function(key2) { return "Symbol(".concat(key2 === void 0 ? "" : key2, ")_", (++id + px).toString(36)); }; var store = _sharedExports("wks"); var uid$3 = _uid; var Symbol$1 = _globalExports.Symbol; var USE_SYMBOL = typeof Symbol$1 == "function"; var $exports = _wks.exports = function(name) { return store[name] || (store[name] = USE_SYMBOL && Symbol$1[name] || (USE_SYMBOL ? Symbol$1 : uid$3)("Symbol." + name)); }; $exports.store = store; var _wksExports = _wks.exports; var _objectDp = {}; var _isObject = function(it) { return typeof it === "object" ? it !== null : typeof it === "function"; }; var isObject$4 = _isObject; var _anObject = function(it) { if (!isObject$4(it)) throw TypeError(it + " is not an object!"); return it; }; var _fails = function(exec) { try { return !!exec(); } catch (e2) { return true; } }; var _descriptors = !_fails(function() { return Object.defineProperty({}, "a", { get: function() { return 7; } }).a != 7; }); var _domCreate; var hasRequired_domCreate; function require_domCreate() { if (hasRequired_domCreate) return _domCreate; hasRequired_domCreate = 1; var isObject2 = _isObject; var document2 = _globalExports.document; var is = isObject2(document2) && isObject2(document2.createElement); _domCreate = function(it) { return is ? document2.createElement(it) : {}; }; return _domCreate; } var _ie8DomDefine = !_descriptors && !_fails(function() { return Object.defineProperty(require_domCreate()("div"), "a", { get: function() { return 7; } }).a != 7; }); var isObject$3 = _isObject; var _toPrimitive$1 = function(it, S) { if (!isObject$3(it)) return it; var fn, val; if (S && typeof (fn = it.toString) == "function" && !isObject$3(val = fn.call(it))) return val; if (typeof (fn = it.valueOf) == "function" && !isObject$3(val = fn.call(it))) return val; if (!S && typeof (fn = it.toString) == "function" && !isObject$3(val = fn.call(it))) return val; throw TypeError("Can't convert object to primitive value"); }; var anObject$4 = _anObject; var IE8_DOM_DEFINE = _ie8DomDefine; var toPrimitive = _toPrimitive$1; var dP$2 = Object.defineProperty; _objectDp.f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) { anObject$4(O); P = toPrimitive(P, true); anObject$4(Attributes); if (IE8_DOM_DEFINE) try { return dP$2(O, P, Attributes); } catch (e2) { } if ("get" in Attributes || "set" in Attributes) throw TypeError("Accessors not supported!"); if ("value" in Attributes) O[P] = Attributes.value; return O; }; var _propertyDesc = function(bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value }; }; var dP$1 = _objectDp; var createDesc = _propertyDesc; var _hide = _descriptors ? function(object, key2, value) { return dP$1.f(object, key2, createDesc(1, value)); } : function(object, key2, value) { object[key2] = value; return object; }; var UNSCOPABLES = _wksExports("unscopables"); var ArrayProto = Array.prototype; if (ArrayProto[UNSCOPABLES] == void 0) _hide(ArrayProto, UNSCOPABLES, {}); var _addToUnscopables = function(key2) { ArrayProto[UNSCOPABLES][key2] = true; }; var _iterStep = function(done, value) { return { value, done: !!done }; }; var _iterators = {}; var toString$2 = {}.toString; var _cof = function(it) { return toString$2.call(it).slice(8, -1); }; var cof = _cof; var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) { return cof(it) == "String" ? it.split("") : Object(it); }; var _defined = function(it) { if (it == void 0) throw TypeError("Can't call method on " + it); return it; }; var IObject = _iobject; var defined$1 = _defined; var _toIobject = function(it) { return IObject(defined$1(it)); }; var _redefine = { exports: {} }; var hasOwnProperty$3 = {}.hasOwnProperty; var _has = function(it, key2) { return hasOwnProperty$3.call(it, key2); }; var _functionToString = _sharedExports("native-function-to-string", Function.toString); var global$3 = _globalExports; var hide$3 = _hide; var has$4 = _has; var SRC = _uid("src"); var $toString = _functionToString; var TO_STRING = "toString"; var TPL = ("" + $toString).split(TO_STRING); _coreExports.inspectSource = function(it) { return $toString.call(it); }; (_redefine.exports = function(O, key2, val, safe) { var isFunction2 = typeof val == "function"; if (isFunction2) has$4(val, "name") || hide$3(val, "name", key2); if (O[key2] === val) return; if (isFunction2) has$4(val, SRC) || hide$3(val, SRC, O[key2] ? "" + O[key2] : TPL.join(String(key2))); if (O === global$3) { O[key2] = val; } else if (!safe) { delete O[key2]; hide$3(O, key2, val); } else if (O[key2]) { O[key2] = val; } else { hide$3(O, key2, val); } })(Function.prototype, TO_STRING, function toString2() { return typeof this == "function" && this[SRC] || $toString.call(this); }); var _redefineExports = _redefine.exports; var _aFunction = function(it) { if (typeof it != "function") throw TypeError(it + " is not a function!"); return it; }; var aFunction$3 = _aFunction; var _ctx = function(fn, that, length) { aFunction$3(fn); if (that === void 0) return fn; switch (length) { case 1: return function(a2) { return fn.call(that, a2); }; case 2: return function(a2, b) { return fn.call(that, a2, b); }; case 3: return function(a2, b, c2) { return fn.call(that, a2, b, c2); }; } return function() { return fn.apply(that, arguments); }; }; var global$2 = _globalExports; var core$1 = _coreExports; var hide$2 = _hide; var redefine$2 = _redefineExports; var ctx = _ctx; var PROTOTYPE$1 = "prototype"; var $export$4 = function(type, name, source) { var IS_FORCED = type & $export$4.F; var IS_GLOBAL = type & $export$4.G; var IS_STATIC = type & $export$4.S; var IS_PROTO = type & $export$4.P; var IS_BIND = type & $export$4.B; var target = IS_GLOBAL ? global$2 : IS_STATIC ? global$2[name] || (global$2[name] = {}) : (global$2[name] || {})[PROTOTYPE$1]; var exports = IS_GLOBAL ? core$1 : core$1[name] || (core$1[name] = {}); var expProto = exports[PROTOTYPE$1] || (exports[PROTOTYPE$1] = {}); var key2, own, out2, exp; if (IS_GLOBAL) source = name; for (key2 in source) { own = !IS_FORCED && target && target[key2] !== void 0; out2 = (own ? target : source)[key2]; exp = IS_BIND && own ? ctx(out2, global$2) : IS_PROTO && typeof out2 == "function" ? ctx(Function.call, out2) : out2; if (target) redefine$2(target, key2, out2, type & $export$4.U); if (exports[key2] != out2) hide$2(exports, key2, exp); if (IS_PROTO && expProto[key2] != out2) expProto[key2] = out2; } }; global$2.core = core$1; $export$4.F = 1; $export$4.G = 2; $export$4.S = 4; $export$4.P = 8; $export$4.B = 16; $export$4.W = 32; $export$4.U = 64; $export$4.R = 128; var _export = $export$4; var ceil = Math.ceil; var floor = Math.floor; var _toInteger = function(it) { return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); }; var toInteger$1 = _toInteger; var min$1 = Math.min; var _toLength = function(it) { return it > 0 ? min$1(toInteger$1(it), 9007199254740991) : 0; }; var toInteger = _toInteger; var max = Math.max; var min = Math.min; var _toAbsoluteIndex = function(index2, length) { index2 = toInteger(index2); return index2 < 0 ? max(index2 + length, 0) : min(index2, length); }; var toIObject$3 = _toIobject; var toLength = _toLength; var toAbsoluteIndex = _toAbsoluteIndex; var _arrayIncludes = function(IS_INCLUDES) { return function($this, el, fromIndex) { var O = toIObject$3($this); var length = toLength(O.length); var index2 = toAbsoluteIndex(fromIndex, length); var value; if (IS_INCLUDES && el != el) while (length > index2) { value = O[index2++]; if (value != value) return true; } else for (; length > index2; index2++) { if (IS_INCLUDES || index2 in O) { if (O[index2] === el) return IS_INCLUDES || index2 || 0; } } return !IS_INCLUDES && -1; }; }; var shared = _sharedExports("keys"); var uid$2 = _uid; var _sharedKey = function(key2) { return shared[key2] || (shared[key2] = uid$2(key2)); }; var has$3 = _has; var toIObject$2 = _toIobject; var arrayIndexOf = _arrayIncludes(false); var IE_PROTO$2 = _sharedKey("IE_PROTO"); var _objectKeysInternal = function(object, names) { var O = toIObject$2(object); var i2 = 0; var result = []; var key2; for (key2 in O) { if (key2 != IE_PROTO$2) has$3(O, key2) && result.push(key2); } while (names.length > i2) { if (has$3(O, key2 = names[i2++])) { ~arrayIndexOf(result, key2) || result.push(key2); } } return result; }; var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","); var $keys = _objectKeysInternal; var enumBugKeys$1 = _enumBugKeys; var _objectKeys = Object.keys || function keys(O) { return $keys(O, enumBugKeys$1); }; var dP = _objectDp; var anObject$3 = _anObject; var getKeys$2 = _objectKeys; var _objectDps = _descriptors ? Object.defineProperties : function defineProperties(O, Properties) { anObject$3(O); var keys = getKeys$2(Properties); var length = keys.length; var i2 = 0; var P; while (length > i2) { dP.f(O, P = keys[i2++], Properties[P]); } return O; }; var _html; var hasRequired_html; function require_html() { if (hasRequired_html) return _html; hasRequired_html = 1; var document2 = _globalExports.document; _html = document2 && document2.documentElement; return _html; } var anObject$2 = _anObject; var dPs = _objectDps; var enumBugKeys = _enumBugKeys; var IE_PROTO$1 = _sharedKey("IE_PROTO"); var Empty = function() { }; var PROTOTYPE = "prototype"; var createDict = function() { var iframe = require_domCreate()("iframe"); var i2 = enumBugKeys.length; var lt = "<"; var gt = ">"; var iframeDocument; iframe.style.display = "none"; require_html().appendChild(iframe); iframe.src = "javascript:"; iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt); iframeDocument.close(); createDict = iframeDocument.F; while (i2--) { delete createDict[PROTOTYPE][enumBugKeys[i2]]; } return createDict(); }; var _objectCreate = Object.create || function create2(O, Properties) { var result; if (O !== null) { Empty[PROTOTYPE] = anObject$2(O); result = new Empty(); Empty[PROTOTYPE] = null; result[IE_PROTO$1] = O; } else result = createDict(); return Properties === void 0 ? result : dPs(result, Properties); }; var def$1 = _objectDp.f; var has$2 = _has; var TAG = _wksExports("toStringTag"); var _setToStringTag = function(it, tag, stat) { if (it && !has$2(it = stat ? it : it.prototype, TAG)) def$1(it, TAG, { configurable: true, value: tag }); }; var create = _objectCreate; var descriptor = _propertyDesc; var setToStringTag$1 = _setToStringTag; var IteratorPrototype = {}; _hide(IteratorPrototype, _wksExports("iterator"), function() { return this; }); var _iterCreate = function(Constructor, NAME2, next) { Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); setToStringTag$1(Constructor, NAME2 + " Iterator"); }; var defined = _defined; var _toObject = function(it) { return Object(defined(it)); }; var has$1 = _has; var toObject$1 = _toObject; var IE_PROTO = _sharedKey("IE_PROTO"); var ObjectProto = Object.prototype; var _objectGpo = Object.getPrototypeOf || function(O) { O = toObject$1(O); if (has$1(O, IE_PROTO)) return O[IE_PROTO]; if (typeof O.constructor == "function" && O instanceof O.constructor) { return O.constructor.prototype; } return O instanceof Object ? ObjectProto : null; }; var $export$3 = _export; var redefine$1 = _redefineExports; var hide$1 = _hide; var Iterators$2 = _iterators; var $iterCreate = _iterCreate; var setToStringTag = _setToStringTag; var getPrototypeOf = _objectGpo; var ITERATOR$1 = _wksExports("iterator"); var BUGGY = !([].keys && "next" in [].keys()); var FF_ITERATOR = "@@iterator"; var KEYS = "keys"; var VALUES = "values"; var returnThis = function() { return this; }; var _iterDefine = function(Base, NAME2, Constructor, next, DEFAULT, IS_SET, FORCED) { $iterCreate(Constructor, NAME2, next); var getMethod = function(kind) { if (!BUGGY && kind in proto2) return proto2[kind]; switch (kind) { case KEYS: return function keys() { return new Constructor(this, kind); }; case VALUES: return function values() { return new Constructor(this, kind); }; } return function entries2() { return new Constructor(this, kind); }; }; var TAG2 = NAME2 + " Iterator"; var DEF_VALUES = DEFAULT == VALUES; var VALUES_BUG = false; var proto2 = Base.prototype; var $native = proto2[ITERATOR$1] || proto2[FF_ITERATOR] || DEFAULT && proto2[DEFAULT]; var $default = $native || getMethod(DEFAULT); var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod("entries") : void 0; var $anyNative = NAME2 == "Array" ? proto2.entries || $native : $native; var methods, key2, IteratorPrototype2; if ($anyNative) { IteratorPrototype2 = getPrototypeOf($anyNative.call(new Base())); if (IteratorPrototype2 !== Object.prototype && IteratorPrototype2.next) { setToStringTag(IteratorPrototype2, TAG2, true); if (typeof IteratorPrototype2[ITERATOR$1] != "function") hide$1(IteratorPrototype2, ITERATOR$1, returnThis); } } if (DEF_VALUES && $native && $native.name !== VALUES) { VALUES_BUG = true; $default = function values() { return $native.call(this); }; } if (BUGGY || VALUES_BUG || !proto2[ITERATOR$1]) { hide$1(proto2, ITERATOR$1, $default); } Iterators$2[NAME2] = $default; Iterators$2[TAG2] = returnThis; if (DEFAULT) { methods = { values: DEF_VALUES ? $default : getMethod(VALUES), keys: IS_SET ? $default : getMethod(KEYS), entries: $entries }; if (FORCED) for (key2 in methods) { if (!(key2 in proto2)) redefine$1(proto2, key2, methods[key2]); } else $export$3($export$3.P + $export$3.F * (BUGGY || VALUES_BUG), NAME2, methods); } return methods; }; var addToUnscopables = _addToUnscopables; var step = _iterStep; var Iterators$1 = _iterators; var toIObject$1 = _toIobject; var es6_array_iterator = _iterDefine(Array, "Array", function(iterated, kind) { this._t = toIObject$1(iterated); this._i = 0; this._k = kind; }, function() { var O = this._t; var kind = this._k; var index2 = this._i++; if (!O || index2 >= O.length) { this._t = void 0; return step(1); } if (kind == "keys") return step(0, index2); if (kind == "values") return step(0, O[index2]); return step(0, [index2, O[index2]]); }, "values"); Iterators$1.Arguments = Iterators$1.Array; addToUnscopables("keys"); addToUnscopables("values"); addToUnscopables("entries"); var $iterators = es6_array_iterator; var getKeys$1 = _objectKeys; var redefine = _redefineExports; var global$1 = _globalExports; var hide = _hide; var Iterators = _iterators; var wks = _wksExports; var ITERATOR = wks("iterator"); var TO_STRING_TAG = wks("toStringTag"); var ArrayValues = Iterators.Array; var DOMIterables = { CSSRuleList: true, // TODO: Not spec compliant, should be false. CSSStyleDeclaration: false, CSSValueList: false, ClientRectList: false, DOMRectList: false, DOMStringList: false, DOMTokenList: true, DataTransferItemList: false, FileList: false, HTMLAllCollection: false, HTMLCollection: false, HTMLFormElement: false, HTMLSelectElement: false, MediaList: true, // TODO: Not spec compliant, should be false. MimeTypeArray: false, NamedNodeMap: false, NodeList: true, PaintRequestList: false, Plugin: false, PluginArray: false, SVGLengthList: false, SVGNumberList: false, SVGPathSegList: false, SVGPointList: false, SVGStringList: false, SVGTransformList: false, SourceBufferList: false, StyleSheetList: true, // TODO: Not spec compliant, should be false. TextTrackCueList: false, TextTrackList: false, TouchList: false }; for (var collections = getKeys$1(DOMIterables), i = 0; i < collections.length; i++) { var NAME$1 = collections[i]; var explicit = DOMIterables[NAME$1]; var Collection = global$1[NAME$1]; var proto = Collection && Collection.prototype; var key; if (proto) { if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues); if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME$1); Iterators[NAME$1] = ArrayValues; if (explicit) { for (key in $iterators) { if (!proto[key]) redefine(proto, key, $iterators[key], true); } } } } /** * @vue/shared v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ function makeMap$1(str, expectsLowerCase) { var set2 = new Set(str.split(",")); return (val) => set2.has(val); } var EMPTY_OBJ = {}; var EMPTY_ARR = []; var NOOP = () => { }; var NO = () => false; var isOn = (key2) => key2.charCodeAt(0) === 111 && key2.charCodeAt(1) === 110 && // uppercase letter (key2.charCodeAt(2) > 122 || key2.charCodeAt(2) < 97); var isModelListener = (key2) => key2.startsWith("onUpdate:"); var extend = Object.assign; var remove = (arr, el) => { var i2 = arr.indexOf(el); if (i2 > -1) { arr.splice(i2, 1); } }; var hasOwnProperty$2 = Object.prototype.hasOwnProperty; var hasOwn$1 = (val, key2) => hasOwnProperty$2.call(val, key2); var isArray = Array.isArray; var isMap = (val) => toTypeString(val) === "[object Map]"; var isSet = (val) => toTypeString(val) === "[object Set]"; var isFunction = (val) => typeof val === "function"; var isString = (val) => typeof val === "string"; var isSymbol = (val) => typeof val === "symbol"; var isObject$2 = (val) => val !== null && typeof val === "object"; var isPromise = (val) => { return (isObject$2(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch); }; var objectToString = Object.prototype.toString; var toTypeString = (value) => objectToString.call(value); var toRawType = (value) => { return toTypeString(value).slice(8, -1); }; var isPlainObject = (val) => toTypeString(val) === "[object Object]"; var isIntegerKey = (key2) => isString(key2) && key2 !== "NaN" && key2[0] !== "-" && "" + parseInt(key2, 10) === key2; var isReservedProp = /* @__PURE__ */ makeMap$1( // the leading comma is intentional so empty string "" is also included ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" ); var cacheStringFunction$1 = (fn) => { var cache2 = /* @__PURE__ */ Object.create(null); return (str) => { var hit = cache2[str]; return hit || (cache2[str] = fn(str)); }; }; var camelizeRE = /-(\w)/g; var camelize = cacheStringFunction$1((str) => { return str.replace(camelizeRE, (_, c2) => c2 ? c2.toUpperCase() : ""); }); var hyphenateRE = /\B([A-Z])/g; var hyphenate = cacheStringFunction$1((str) => str.replace(hyphenateRE, "-$1").toLowerCase()); var capitalize = cacheStringFunction$1((str) => { return str.charAt(0).toUpperCase() + str.slice(1); }); var toHandlerKey = cacheStringFunction$1((str) => { var s = str ? "on".concat(capitalize(str)) : ""; return s; }); var hasChanged = (value, oldValue) => !Object.is(value, oldValue); var invokeArrayFns = (fns, arg) => { for (var i2 = 0; i2 < fns.length; i2++) { fns[i2](arg); } }; var def = (obj, key2, value) => { Object.defineProperty(obj, key2, { configurable: true, enumerable: false, value }); }; var looseToNumber = (val) => { var n = parseFloat(val); return isNaN(n) ? val : n; }; var _globalThis; var getGlobalThis = () => { return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof window !== "undefined" ? window : {}); }; function normalizeStyle(value) { if (isArray(value)) { var res = {}; for (var i2 = 0; i2 < value.length; i2++) { var item = value[i2]; var normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item); if (normalized) { for (var key2 in normalized) { res[key2] = normalized[key2]; } } } return res; } else if (isString(value) || isObject$2(value)) { return value; } } var listDelimiterRE = /;(?![^(]*\))/g; var propertyDelimiterRE = /:([^]+)/; var styleCommentRE = /\/\*[^]*?\*\//g; function parseStringStyle(cssText) { var ret = {}; cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => { if (item) { var tmp = item.split(propertyDelimiterRE); tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim()); } }); return ret; } function stringifyStyle(styles) { var ret = ""; if (!styles || isString(styles)) { return ret; } for (var key2 in styles) { var value = styles[key2]; var normalizedKey = key2.startsWith("--") ? key2 : hyphenate(key2); if (isString(value) || typeof value === "number") { ret += "".concat(normalizedKey, ":").concat(value, ";"); } } return ret; } function normalizeClass(value) { var res = ""; if (isString(value)) { res = value; } else if (isArray(value)) { for (var i2 = 0; i2 < value.length; i2++) { var normalized = normalizeClass(value[i2]); if (normalized) { res += normalized + " "; } } } else if (isObject$2(value)) { for (var name in value) { if (value[name]) { res += name + " "; } } } return res.trim(); } var specialBooleanAttrs = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"; var isSpecialBooleanAttr = /* @__PURE__ */ makeMap$1(specialBooleanAttrs); function includeBooleanAttr(value) { return !!value || value === ""; } var _strictMethod; var hasRequired_strictMethod; function require_strictMethod() { if (hasRequired_strictMethod) return _strictMethod; hasRequired_strictMethod = 1; var fails2 = _fails; _strictMethod = function(method, arg) { return !!method && fails2(function() { arg ? method.call(null, function() { }, 1) : method.call(null); }); }; return _strictMethod; } var $export$2 = _export; var aFunction$2 = _aFunction; var toObject = _toObject; var fails = _fails; var $sort = [].sort; var test = [1, 2, 3]; $export$2($export$2.P + $export$2.F * (fails(function() { test.sort(void 0); }) || !fails(function() { test.sort(null); }) || !require_strictMethod()($sort)), "Array", { // 22.1.3.25 Array.prototype.sort(comparefn) sort: function sort(comparefn) { return comparefn === void 0 ? $sort.call(toObject(this)) : $sort.call(toObject(this), aFunction$2(comparefn)); } }); var LINEFEED = "\n"; var PRIMARY_COLOR = "#007aff"; var SCHEME_RE = /^([a-z-]+:)?\/\//i; var DATA_RE = /^data:.*,.*/; var WXS_PROTOCOL = "wxs://"; var JSON_PROTOCOL = "json://"; var WXS_MODULES = "wxsModules"; var RENDERJS_MODULES = "renderjsModules"; var ON_PAGE_SCROLL = "onPageScroll"; var ON_REACH_BOTTOM = "onReachBottom"; var ON_WXS_INVOKE_CALL_METHOD = "onWxsInvokeCallMethod"; function cache(fn) { var cache2 = /* @__PURE__ */ Object.create(null); return (str) => { var hit = cache2[str]; return hit || (cache2[str] = fn(str)); }; } function cacheStringFunction(fn) { return cache(fn); } function hasLeadingSlash(str) { return str.indexOf("/") === 0; } function addLeadingSlash(str) { return hasLeadingSlash(str) ? str : "/" + str; } function once(fn) { var ctx2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; var res; return function() { if (fn) { for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) { args[_key2] = arguments[_key2]; } res = fn.apply(ctx2, args); fn = null; } return res; }; } function getValueByDataPath(obj, path) { if (!isString(path)) { return; } path = path.replace(/\[(\d+)\]/g, ".$1"); var parts = path.split("."); var key2 = parts[0]; if (!obj) { obj = {}; } if (parts.length === 1) { return obj[key2]; } return getValueByDataPath(obj[key2], parts.slice(1).join(".")); } var lastLogTime = 0; function formatLog(module) { var now = Date.now(); var diff = lastLogTime ? now - lastLogTime : 0; lastLogTime = now; for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key3 = 1; _key3 < _len2; _key3++) { args[_key3 - 1] = arguments[_key3]; } return "[".concat(now, "][").concat(diff, "ms][").concat(module, "]:").concat(args.map((arg) => JSON.stringify(arg)).join(" ")); } function formatKey(key2) { return camelize(key2.substring(5)); } var initCustomDatasetOnce = /* @__PURE__ */ once(() => { var prototype = HTMLElement.prototype; var setAttribute = prototype.setAttribute; prototype.setAttribute = function(key2, value) { if (key2.startsWith("data-") && this.tagName.startsWith("UNI-")) { var dataset = this.__uniDataset || (this.__uniDataset = {}); dataset[formatKey(key2)] = value; } setAttribute.call(this, key2, value); }; var removeAttribute = prototype.removeAttribute; prototype.removeAttribute = function(key2) { if (this.__uniDataset && key2.startsWith("data-") && this.tagName.startsWith("UNI-")) { delete this.__uniDataset[formatKey(key2)]; } removeAttribute.call(this, key2); }; }); function getCustomDataset(el) { return extend({}, el.dataset, el.__uniDataset); } var unitRE = new RegExp(`"[^"]+"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px`, "g"); function toFixed(number, precision) { var multiplier = Math.pow(10, precision + 1); var wholeNumber = Math.floor(number * multiplier); return Math.round(wholeNumber / 10) * 10 / multiplier; } var defaultRpx2Unit = { unit: "rem", unitRatio: 10 / 320, unitPrecision: 5 }; function createRpx2Unit(unit2, unitRatio2, unitPrecision2) { return (val) => val.replace(unitRE, (m, $1) => { if (!$1) { return m; } if (unitRatio2 === 1) { return "".concat($1).concat(unit2); } var value = toFixed(parseFloat($1) * unitRatio2, unitPrecision2); return value === 0 ? "0" : "".concat(value).concat(unit2); }); } function passive(passive2) { return { passive: passive2 }; } function normalizeTarget(el) { var { id: id2, offsetTop, offsetLeft } = el; return { id: id2, dataset: getCustomDataset(el), offsetTop, offsetLeft }; } function addFont(family, source, desc) { var fonts = document.fonts; if (fonts) { var fontFace = new FontFace(family, source, desc); return fontFace.load().then(() => { fonts.add && fonts.add(fontFace); }); } return new Promise((resolve) => { var style = document.createElement("style"); var values = []; if (desc) { var { style: style2, weight, stretch, unicodeRange, variant, featureSettings } = desc; style2 && values.push("font-style:".concat(style2)); weight && values.push("font-weight:".concat(weight)); stretch && values.push("font-stretch:".concat(stretch)); unicodeRange && values.push("unicode-range:".concat(unicodeRange)); variant && values.push("font-variant:".concat(variant)); featureSettings && values.push("font-feature-settings:".concat(featureSettings)); } style.innerText = '@font-face{font-family:"'.concat(family, '";src:').concat(source, ";").concat(values.join(";"), "}"); document.head.appendChild(style); resolve(); }); } function scrollTo(scrollTop, duration, isH5) { if (isString(scrollTop)) { var el = document.querySelector(scrollTop); if (el) { var { top } = el.getBoundingClientRect(); scrollTop = top + window.pageYOffset; var pageHeader = document.querySelector("uni-page-head"); if (pageHeader) { scrollTop -= pageHeader.offsetHeight; } } } if (scrollTop < 0) { scrollTop = 0; } var documentElement = document.documentElement; var { clientHeight, scrollHeight } = documentElement; scrollTop = Math.min(scrollTop, scrollHeight - clientHeight); if (duration === 0) { documentElement.scrollTop = document.body.scrollTop = scrollTop; return; } if (window.scrollY === scrollTop) { return; } var scrollTo2 = (duration2) => { if (duration2 <= 0) { window.scrollTo(0, scrollTop); return; } var distaince = scrollTop - window.scrollY; requestAnimationFrame(function() { window.scrollTo(0, window.scrollY + distaince / duration2 * 10); scrollTo2(duration2 - 10); }); }; scrollTo2(duration); } function plusReady(callback) { if (!isFunction(callback)) { return; } if (window.plus) { return callback(); } document.addEventListener("plusready", callback); } function normalizeEventType(type, options) { if (options) { if (options.capture) { type += "Capture"; } if (options.once) { type += "Once"; } if (options.passive) { type += "Passive"; } } return "on".concat(capitalize(camelize(type))); } var optionsModifierRE$1 = /(?:Once|Passive|Capture)$/; function parseEventName(name) { var options; if (optionsModifierRE$1.test(name)) { options = {}; var m; while (m = name.match(optionsModifierRE$1)) { name = name.slice(0, name.length - m[0].length); options[m[0].toLowerCase()] = true; } } return [hyphenate(name.slice(2)), options]; } var EventModifierFlags = /* @__PURE__ */ (() => { return { stop: 1, prevent: 1 << 1, self: 1 << 2 }; })(); var ATTR_CLASS = "class"; var ATTR_STYLE = "style"; var ATTR_INNER_HTML = "innerHTML"; var ATTR_TEXT_CONTENT = "textContent"; var ATTR_V_SHOW = ".vShow"; var ATTR_V_OWNER_ID = ".vOwnerId"; var ATTR_V_RENDERJS = ".vRenderjs"; var ATTR_CHANGE_PREFIX = "change:"; var ACTION_TYPE_PAGE_CREATE = 1; var ACTION_TYPE_PAGE_CREATED = 2; var ACTION_TYPE_CREATE = 3; var ACTION_TYPE_INSERT = 4; var ACTION_TYPE_REMOVE = 5; var ACTION_TYPE_SET_ATTRIBUTE = 6; var ACTION_TYPE_REMOVE_ATTRIBUTE = 7; var ACTION_TYPE_ADD_EVENT = 8; var ACTION_TYPE_REMOVE_EVENT = 9; var ACTION_TYPE_SET_TEXT = 10; var ACTION_TYPE_ADD_WXS_EVENT = 12; var ACTION_TYPE_PAGE_SCROLL = 15; var ACTION_TYPE_EVENT = 20; function debounce(fn, delay, _ref2) { var { clearTimeout: clearTimeout2, setTimeout: setTimeout2 } = _ref2; var timeout; var newFn = function() { clearTimeout2(timeout); var timerFn = () => fn.apply(this, arguments); timeout = setTimeout2(timerFn, delay); }; newFn.cancel = function() { clearTimeout2(timeout); }; return newFn; } var E = function() { }; E.prototype = { _id: 1, on: function(name, callback, ctx2) { var e2 = this.e || (this.e = {}); (e2[name] || (e2[name] = [])).push({ fn: callback, ctx: ctx2, _id: this._id }); return this._id++; }, once: function(name, callback, ctx2) { var self2 = this; function listener() { self2.off(name, listener); callback.apply(ctx2, arguments); } listener._ = callback; return this.on(name, listener, ctx2); }, emit: function(name) { var data = [].slice.call(arguments, 1); var evtArr = ((this.e || (this.e = {}))[name] || []).slice(); var i2 = 0; var len = evtArr.length; for (i2; i2 < len; i2++) { evtArr[i2].fn.apply(evtArr[i2].ctx, data); } return this; }, off: function(name, event) { var e2 = this.e || (this.e = {}); var evts = e2[name]; var liveEvents = []; if (evts && event) { for (var i2 = evts.length - 1; i2 >= 0; i2--) { if (evts[i2].fn === event || evts[i2].fn._ === event || evts[i2]._id === event) { evts.splice(i2, 1); break; } } liveEvents = evts; } liveEvents.length ? e2[name] = liveEvents : delete e2[name]; return this; } }; var E$1 = E; var isObject$1 = (val) => val !== null && typeof val === "object"; var defaultDelimiters = ["{", "}"]; class BaseFormatter { constructor() { this._caches = /* @__PURE__ */ Object.create(null); } interpolate(message, values) { var delimiters = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : defaultDelimiters; if (!values) { return [message]; } var tokens = this._caches[message]; if (!tokens) { tokens = parse(message, delimiters); this._caches[message] = tokens; } return compile$1(tokens, values); } } var RE_TOKEN_LIST_VALUE = /^(?:\d)+/; var RE_TOKEN_NAMED_VALUE = /^(?:\w)+/; function parse(format, _ref) { var [startDelimiter, endDelimiter] = _ref; var tokens = []; var position = 0; var text2 = ""; while (position < format.length) { var char = format[position++]; if (char === startDelimiter) { if (text2) { tokens.push({ type: "text", value: text2 }); } text2 = ""; var sub = ""; char = format[position++]; while (char !== void 0 && char !== endDelimiter) { sub += char; char = format[position++]; } var isClosed = char === endDelimiter; var type = RE_TOKEN_LIST_VALUE.test(sub) ? "list" : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? "named" : "unknown"; tokens.push({ value: sub, type }); } else { text2 += char; } } text2 && tokens.push({ type: "text", value: text2 }); return tokens; } function compile$1(tokens, values) { var compiled = []; var index2 = 0; var mode2 = Array.isArray(values) ? "list" : isObject$1(values) ? "named" : "unknown"; if (mode2 === "unknown") { return compiled; } while (index2 < tokens.length) { var token = tokens[index2]; switch (token.type) { case "text": compiled.push(token.value); break; case "list": compiled.push(values[parseInt(token.value, 10)]); break; case "named": if (mode2 === "named") { compiled.push(values[token.value]); } break; } index2++; } return compiled; } var LOCALE_ZH_HANS = "zh-Hans"; var LOCALE_ZH_HANT = "zh-Hant"; var LOCALE_EN = "en"; var LOCALE_FR = "fr"; var LOCALE_ES = "es"; var hasOwnProperty$1 = Object.prototype.hasOwnProperty; var hasOwn = (val, key2) => hasOwnProperty$1.call(val, key2); var defaultFormatter = new BaseFormatter(); function include(str, parts) { return !!parts.find((part) => str.indexOf(part) !== -1); } function startsWith(str, parts) { return parts.find((part) => str.indexOf(part) === 0); } function normalizeLocale(locale, messages2) { if (!locale) { return; } locale = locale.trim().replace(/_/g, "-"); if (messages2 && messages2[locale]) { return locale; } locale = locale.toLowerCase(); if (locale === "chinese") { return LOCALE_ZH_HANS; } if (locale.indexOf("zh") === 0) { if (locale.indexOf("-hans") > -1) { return LOCALE_ZH_HANS; } if (locale.indexOf("-hant") > -1) { return LOCALE_ZH_HANT; } if (include(locale, ["-tw", "-hk", "-mo", "-cht"])) { return LOCALE_ZH_HANT; } return LOCALE_ZH_HANS; } var locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES]; if (messages2 && Object.keys(messages2).length > 0) { locales = Object.keys(messages2); } var lang = startsWith(locale, locales); if (lang) { return lang; } } class I18n { constructor(_ref2) { var { locale, fallbackLocale, messages: messages2, watcher, formater: formater2 } = _ref2; this.locale = LOCALE_EN; this.fallbackLocale = LOCALE_EN; this.message = {}; this.messages = {}; this.watchers = []; if (fallbackLocale) { this.fallbackLocale = fallbackLocale; } this.formater = formater2 || defaultFormatter; this.messages = messages2 || {}; this.setLocale(locale || LOCALE_EN); if (watcher) { this.watchLocale(watcher); } } setLocale(locale) { var oldLocale = this.locale; this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale; if (!this.messages[this.locale]) { this.messages[this.locale] = {}; } this.message = this.messages[this.locale]; if (oldLocale !== this.locale) { this.watchers.forEach((watcher) => { watcher(this.locale, oldLocale); }); } } getLocale() { return this.locale; } watchLocale(fn) { var index2 = this.watchers.push(fn) - 1; return () => { this.watchers.splice(index2, 1); }; } add(locale, message) { var override = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; var curMessages = this.messages[locale]; if (curMessages) { if (override) { Object.assign(curMessages, message); } else { Object.keys(message).forEach((key2) => { if (!hasOwn(curMessages, key2)) { curMessages[key2] = message[key2]; } }); } } else { this.messages[locale] = message; } } f(message, values, delimiters) { return this.formater.interpolate(message, values, delimiters).join(""); } t(key2, locale, values) { var message = this.message; if (typeof locale === "string") { locale = normalizeLocale(locale, this.messages); locale && (message = this.messages[locale]); } else { values = locale; } if (!hasOwn(message, key2)) { console.warn("Cannot translate the value of keypath ".concat(key2, ". Use the value of keypath as default.")); return key2; } return this.formater.interpolate(message[key2], values).join(""); } } function watchAppLocale(appVm, i18n2) { if (appVm.$watchLocale) { appVm.$watchLocale((newLocale) => { i18n2.setLocale(newLocale); }); } else { appVm.$watch(() => appVm.$locale, (newLocale) => { i18n2.setLocale(newLocale); }); } } function getDefaultLocale() { if (typeof uni !== "undefined" && uni.getLocale) { return uni.getLocale(); } if (typeof window !== "undefined" && window.getLocale) { return window.getLocale(); } return LOCALE_EN; } function initVueI18n(locale) { var messages2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}; var fallbackLocale = arguments.length > 2 ? arguments[2] : void 0; var watcher = arguments.length > 3 ? arguments[3] : void 0; if (typeof locale !== "string") { var options = [messages2, locale]; locale = options[0]; messages2 = options[1]; } if (typeof locale !== "string") { locale = getDefaultLocale(); } if (typeof fallbackLocale !== "string") { fallbackLocale = typeof __uniConfig !== "undefined" && __uniConfig.fallbackLocale || LOCALE_EN; } var i18n2 = new I18n({ locale, fallbackLocale, messages: messages2, watcher }); var t2 = (key2, values) => { if (typeof getApp !== "function") { t2 = function(key22, values2) { return i18n2.t(key22, values2); }; } else { var isWatchedAppLocale = false; t2 = function(key22, values2) { var appVm = getApp().$vm; if (appVm) { appVm.$locale; if (!isWatchedAppLocale) { isWatchedAppLocale = true; watchAppLocale(appVm, i18n2); } } return i18n2.t(key22, values2); }; } return t2(key2, values); }; return { i18n: i18n2, f(message, values, delimiters) { return i18n2.f(message, values, delimiters); }, t(key2, values) { return t2(key2, values); }, add(locale2, message) { var override = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true; return i18n2.add(locale2, message, override); }, watch(fn) { return i18n2.watchLocale(fn); }, getLocale() { return i18n2.getLocale(); }, setLocale(newLocale) { return i18n2.setLocale(newLocale); } }; } var isEnableLocale = /* @__PURE__ */ once(() => typeof __uniConfig !== "undefined" && __uniConfig.locales && !!Object.keys(__uniConfig.locales).length); var i18n; function useI18n() { if (!i18n) { var locale; { if (typeof getApp === "function") { locale = weex.requireModule("plus").getLanguage(); } else { locale = plus.webview.currentWebview().getStyle().locale; } } i18n = initVueI18n(locale); if (isEnableLocale()) { var localeKeys = Object.keys(__uniConfig.locales || {}); if (localeKeys.length) { localeKeys.forEach((locale2) => i18n.add(locale2, __uniConfig.locales[locale2])); } i18n.setLocale(locale); } } return i18n; } function normalizeMessages(module, keys, values) { return keys.reduce((res, name, index2) => { res[module + name] = values[index2]; return res; }, {}); } var initI18nVideoMsgsOnce = /* @__PURE__ */ once(() => { var name = "uni.video."; var keys = ["danmu", "volume"]; { useI18n().add(LOCALE_EN, normalizeMessages(name, keys, ["Danmu", "Volume"]), false); } { useI18n().add(LOCALE_ES, normalizeMessages(name, keys, ["Danmu", "Volumen"]), false); } { useI18n().add(LOCALE_FR, normalizeMessages(name, keys, ["Danmu", "Le Volume"]), false); } { useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, keys, ["弹幕", "音量"]), false); } { useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, keys, ["彈幕", "音量"]), false); } }); var initI18nChooseLocationMsgsOnce = /* @__PURE__ */ once(() => { var name = "uni.chooseLocation."; var keys = ["search", "cancel"]; { useI18n().add(LOCALE_EN, normalizeMessages(name, keys, ["Find Place", "Cancel"]), false); } { useI18n().add(LOCALE_ES, normalizeMessages(name, keys, ["Encontrar", "Cancelar"]), false); } { useI18n().add(LOCALE_FR, normalizeMessages(name, keys, ["Trouve", "Annuler"]), false); } { useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, keys, ["搜索地点", "取消"]), false); } { useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, keys, ["搜索地點", "取消"]), false); } }); function initBridge(subscribeNamespace) { var emitter = new E$1(); return { on(event, callback) { return emitter.on(event, callback); }, once(event, callback) { return emitter.once(event, callback); }, off(event, callback) { return emitter.off(event, callback); }, emit(event) { for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } return emitter.emit(event, ...args); }, subscribe(event, callback) { var once2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; emitter[once2 ? "once" : "on"]("".concat(subscribeNamespace, ".").concat(event), callback); }, unsubscribe(event, callback) { emitter.off("".concat(subscribeNamespace, ".").concat(event), callback); }, subscribeHandler(event, args, pageId) { emitter.emit("".concat(subscribeNamespace, ".").concat(event), args, pageId); } }; } var INVOKE_VIEW_API = "invokeViewApi"; var INVOKE_SERVICE_API = "invokeServiceApi"; var invokeServiceMethodId = 1; var invokeServiceMethod = (name, args, callback) => { var { subscribe, publishHandler: publishHandler2 } = UniViewJSBridge; var id2 = callback ? invokeServiceMethodId++ : 0; callback && subscribe(INVOKE_SERVICE_API + "." + id2, callback, true); publishHandler2(INVOKE_SERVICE_API, { id: id2, name, args }); }; var viewMethods = /* @__PURE__ */ Object.create(null); function normalizeViewMethodName(pageId, name) { return pageId + "." + name; } function subscribeViewMethod(pageId, wrapper2) { UniViewJSBridge.subscribe(normalizeViewMethodName(pageId, INVOKE_VIEW_API), wrapper2 ? wrapper2(onInvokeViewMethod) : onInvokeViewMethod); } function registerViewMethod(pageId, name, fn) { name = normalizeViewMethodName(pageId, name); if (!viewMethods[name]) { viewMethods[name] = fn; } } function unregisterViewMethod(pageId, name) { name = normalizeViewMethodName(pageId, name); delete viewMethods[name]; } function onInvokeViewMethod(_ref, pageId) { var { id: id2, name, args } = _ref; name = normalizeViewMethodName(pageId, name); var publish = (res) => { id2 && UniViewJSBridge.publishHandler(INVOKE_VIEW_API + "." + id2, res); }; var handler = viewMethods[name]; if (handler) { handler(args, publish); } else { publish({}); } } var ViewJSBridge = /* @__PURE__ */ extend(/* @__PURE__ */ initBridge("service"), { invokeServiceMethod }); var LONGPRESS_TIMEOUT = 350; var LONGPRESS_THRESHOLD = 10; var passiveOptions$2 = /* @__PURE__ */ passive(true); var longPressTimer; function clearLongPressTimer() { if (longPressTimer) { clearTimeout(longPressTimer); longPressTimer = null; } } var startPageX = 0; var startPageY = 0; function touchstart(evt) { clearLongPressTimer(); if (evt.touches.length !== 1) { return; } var { pageX, pageY } = evt.touches[0]; startPageX = pageX; startPageY = pageY; longPressTimer = setTimeout(function() { var customEvent = new CustomEvent("longpress", { bubbles: true, cancelable: true, // @ts-expect-error target: evt.target, currentTarget: evt.currentTarget }); customEvent.touches = evt.touches; customEvent.changedTouches = evt.changedTouches; evt.target.dispatchEvent(customEvent); }, LONGPRESS_TIMEOUT); } function touchmove(evt) { if (!longPressTimer) { return; } if (evt.touches.length !== 1) { return clearLongPressTimer(); } var { pageX, pageY } = evt.touches[0]; if (Math.abs(pageX - startPageX) > LONGPRESS_THRESHOLD || Math.abs(pageY - startPageY) > LONGPRESS_THRESHOLD) { return clearLongPressTimer(); } } function initLongPress() { window.addEventListener("touchstart", touchstart, passiveOptions$2); window.addEventListener("touchmove", touchmove, passiveOptions$2); window.addEventListener("touchend", clearLongPressTimer, passiveOptions$2); window.addEventListener("touchcancel", clearLongPressTimer, passiveOptions$2); } function checkValue$1(value, defaultValue) { var newValue = Number(value); return isNaN(newValue) ? defaultValue : newValue; } function getWindowWidth() { var screenFix = /^Apple/.test(navigator.vendor) && typeof window.orientation === "number"; var landscape = screenFix && Math.abs(window.orientation) === 90; var screenWidth = screenFix ? Math[landscape ? "max" : "min"](screen.width, screen.height) : screen.width; var windowWidth = Math.min(window.innerWidth, document.documentElement.clientWidth, screenWidth) || screenWidth; return windowWidth; } function useRem() { var config = __uniConfig.globalStyle || {}; var maxWidth2 = checkValue$1(config.rpxCalcMaxDeviceWidth, 960); var baseWidth2 = checkValue$1(config.rpxCalcBaseDeviceWidth, 375); function updateRem() { var width = getWindowWidth(); width = width <= maxWidth2 ? width : baseWidth2; document.documentElement.style.fontSize = width / 23.4375 + "px"; } updateRem(); document.addEventListener("DOMContentLoaded", updateRem); window.addEventListener("load", updateRem); window.addEventListener("resize", updateRem); } function initView() { useRem(); initCustomDatasetOnce(); { initLongPress(); } } var activeEffectScope; class EffectScope { constructor() { var detached = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 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) { var currentEffectScope = activeEffectScope; try { activeEffectScope = this; return fn(); } finally { activeEffectScope = currentEffectScope; } } } /** * 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) { var 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) { var 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 recordEffectScope(effect2) { var scope = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : activeEffectScope; if (scope && scope.active) { scope.effects.push(effect2); } } function getCurrentScope() { return activeEffectScope; } var activeEffect; class 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 (var i2 = 0; i2 < this._depsLength; i2++) { var 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(); } var lastShouldTrack = shouldTrack; var lastEffect = activeEffect; try { shouldTrack = true; activeEffect = this; this._runnings++; preCleanupEffect(this); return this.fn(); } finally { postCleanupEffect(this); this._runnings--; activeEffect = lastEffect; shouldTrack = lastShouldTrack; } } stop() { var _a; if (this.active) { preCleanupEffect(this); postCleanupEffect(this); (_a = this.onStop) == null ? void 0 : _a.call(this); this.active = false; } } } function triggerComputed(computed2) { return computed2.value; } function preCleanupEffect(effect2) { effect2._trackId++; effect2._depsLength = 0; } function postCleanupEffect(effect2) { if (effect2.deps.length > effect2._depsLength) { for (var i2 = effect2._depsLength; i2 < effect2.deps.length; i2++) { cleanupDepEffect(effect2.deps[i2], effect2); } effect2.deps.length = effect2._depsLength; } } function cleanupDepEffect(dep, effect2) { var trackId = dep.get(effect2); if (trackId !== void 0 && effect2._trackId !== trackId) { dep.delete(effect2); if (dep.size === 0) { dep.cleanup(); } } } var shouldTrack = true; var pauseScheduleStack = 0; var trackStack = []; function pauseTracking() { trackStack.push(shouldTrack); shouldTrack = false; } function resetTracking() { var last = trackStack.pop(); shouldTrack = last === void 0 ? true : last; } function pauseScheduling() { pauseScheduleStack++; } function resetScheduling() { pauseScheduleStack--; while (!pauseScheduleStack && queueEffectSchedulers.length) { queueEffectSchedulers.shift()(); } } function trackEffect(effect2, dep, debuggerEventExtraInfo) { if (dep.get(effect2) !== effect2._trackId) { dep.set(effect2, effect2._trackId); var oldDep = effect2.deps[effect2._depsLength]; if (oldDep !== dep) { if (oldDep) { cleanupDepEffect(oldDep, effect2); } effect2.deps[effect2._depsLength++] = dep; } else { effect2._depsLength++; } } } var queueEffectSchedulers = []; function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) { pauseScheduling(); for (var effect2 of dep.keys()) { var tracking = void 0; 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)) { effect2.trigger(); if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) { effect2._shouldSchedule = false; if (effect2.scheduler) { queueEffectSchedulers.push(effect2.scheduler); } } } } resetScheduling(); } var createDep = (cleanup, computed2) => { var dep = /* @__PURE__ */ new Map(); dep.cleanup = cleanup; dep.computed = computed2; return dep; }; var targetMap = /* @__PURE__ */ new WeakMap(); var ITERATE_KEY = Symbol(""); var MAP_KEY_ITERATE_KEY = Symbol(""); function track(target, type, key2) { if (shouldTrack && activeEffect) { var depsMap = targetMap.get(target); if (!depsMap) { targetMap.set(target, depsMap = /* @__PURE__ */ new Map()); } var dep = depsMap.get(key2); if (!dep) { depsMap.set(key2, dep = createDep(() => depsMap.delete(key2))); } trackEffect(activeEffect, dep); } } function trigger(target, type, key2, newValue, oldValue, oldTarget) { var depsMap = targetMap.get(target); if (!depsMap) { return; } var deps = []; if (type === "clear") { deps = [...depsMap.values()]; } else if (key2 === "length" && isArray(target)) { var newLength = Number(newValue); depsMap.forEach((dep2, key22) => { if (key22 === "length" || !isSymbol(key22) && key22 >= newLength) { deps.push(dep2); } }); } else { if (key2 !== void 0) { deps.push(depsMap.get(key2)); } switch (type) { case "add": if (!isArray(target)) { deps.push(depsMap.get(ITERATE_KEY)); if (isMap(target)) { deps.push(depsMap.get(MAP_KEY_ITERATE_KEY)); } } else if (isIntegerKey(key2)) { deps.push(depsMap.get("length")); } break; case "delete": if (!isArray(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 (var dep of deps) { if (dep) { triggerEffects(dep, 4); } } resetScheduling(); } var isNonTrackableKeys = /* @__PURE__ */ makeMap$1("__proto__,__v_isRef,__isVue"); var builtInSymbols = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key2) => key2 !== "arguments" && key2 !== "caller").map((key2) => Symbol[key2]).filter(isSymbol)); var arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations(); function createArrayInstrumentations() { var instrumentations = {}; ["includes", "indexOf", "lastIndexOf"].forEach((key2) => { instrumentations[key2] = function() { var arr = toRaw(this); for (var i2 = 0, l = this.length; i2 < l; i2++) { track(arr, "get", i2 + ""); } for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) { args[_key3] = arguments[_key3]; } var res = arr[key2](...args); if (res === -1 || res === false) { return arr[key2](...args.map(toRaw)); } else { return res; } }; }); ["push", "pop", "shift", "unshift", "splice"].forEach((key2) => { instrumentations[key2] = function() { pauseTracking(); pauseScheduling(); for (var _len3 = arguments.length, args = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) { args[_key4] = arguments[_key4]; } var res = toRaw(this)[key2].apply(this, args); resetScheduling(); resetTracking(); return res; }; }); return instrumentations; } function hasOwnProperty(key2) { var obj = toRaw(this); track(obj, "has", key2); return obj.hasOwnProperty(key2); } class BaseReactiveHandler { constructor() { var _isReadonly = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; var _isShallow = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; this._isReadonly = _isReadonly; this._isShallow = _isShallow; } get(target, key2, receiver) { var isReadonly2 = this._isReadonly, isShallow2 = this._isShallow; if (key2 === "__v_isReactive") { return !isReadonly2; } else if (key2 === "__v_isReadonly") { return isReadonly2; } else if (key2 === "__v_isShallow") { return isShallow2; } else if (key2 === "__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; } var targetIsArray = isArray(target); if (!isReadonly2) { if (targetIsArray && hasOwn$1(arrayInstrumentations, key2)) { return Reflect.get(arrayInstrumentations, key2, receiver); } if (key2 === "hasOwnProperty") { return hasOwnProperty; } } var res = Reflect.get(target, key2, receiver); if (isSymbol(key2) ? builtInSymbols.has(key2) : isNonTrackableKeys(key2)) { return res; } if (!isReadonly2) { track(target, "get", key2); } if (isShallow2) { return res; } if (isRef(res)) { return targetIsArray && isIntegerKey(key2) ? res : res.value; } if (isObject$2(res)) { return isReadonly2 ? readonly(res) : reactive(res); } return res; } } class MutableReactiveHandler extends BaseReactiveHandler { constructor() { var isShallow2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; super(false, isShallow2); } set(target, key2, value, receiver) { var oldValue = target[key2]; if (!this._isShallow) { var isOldValueReadonly = isReadonly(oldValue); if (!isShallow(value) && !isReadonly(value)) { oldValue = toRaw(oldValue); value = toRaw(value); } if (!isArray(target) && isRef(oldValue) && !isRef(value)) { if (isOldValueReadonly) { return false; } else { oldValue.value = value; return true; } } } var hadKey = isArray(target) && isIntegerKey(key2) ? Number(key2) < target.length : hasOwn$1(target, key2); var result = Reflect.set(target, key2, value, receiver); if (target === toRaw(receiver)) { if (!hadKey) { trigger(target, "add", key2, value); } else if (hasChanged(value, oldValue)) { trigger(target, "set", key2, value); } } return result; } deleteProperty(target, key2) { var hadKey = hasOwn$1(target, key2); target[key2]; var result = Reflect.deleteProperty(target, key2); if (result && hadKey) { trigger(target, "delete", key2, void 0); } return result; } has(target, key2) { var result = Reflect.has(target, key2); if (!isSymbol(key2) || !builtInSymbols.has(key2)) { track(target, "has", key2); } return result; } ownKeys(target) { track(target, "iterate", isArray(target) ? "length" : ITERATE_KEY); return Reflect.ownKeys(target); } } class ReadonlyReactiveHandler extends BaseReactiveHandler { constructor() { var isShallow2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false; super(true, isShallow2); } set(target, key2) { return true; } deleteProperty(target, key2) { return true; } } var mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler(); var readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(); var shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(true); var toShallow = (value) => value; var getProto = (v2) => Reflect.getPrototypeOf(v2); function get(target, key2) { var isReadonly2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; var isShallow2 = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; target = target["__v_raw"]; var rawTarget = toRaw(target); var rawKey = toRaw(key2); if (!isReadonly2) { if (hasChanged(key2, rawKey)) { track(rawTarget, "get", key2); } track(rawTarget, "get", rawKey); } var { has: has2 } = getProto(rawTarget); var wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; if (has2.call(rawTarget, key2)) { return wrap(target.get(key2)); } else if (has2.call(rawTarget, rawKey)) { return wrap(target.get(rawKey)); } else if (target !== rawTarget) { target.get(key2); } } function has(key2) { var isReadonly2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; var target = this["__v_raw"]; var rawTarget = toRaw(target); var rawKey = toRaw(key2); if (!isReadonly2) { if (hasChanged(key2, rawKey)) { track(rawTarget, "has", key2); } track(rawTarget, "has", rawKey); } return key2 === rawKey ? target.has(key2) : target.has(key2) || target.has(rawKey); } function size(target) { var isReadonly2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false; target = target["__v_raw"]; !isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY); return Reflect.get(target, "size", target); } function add(value) { value = toRaw(value); var target = toRaw(this); var proto2 = getProto(target); var hadKey = proto2.has.call(target, value); if (!hadKey) { target.add(value); trigger(target, "add", value, value); } return this; } function set(key2, value) { value = toRaw(value); var target = toRaw(this); var { has: has2, get: get2 } = getProto(target); var hadKey = has2.call(target, key2); if (!hadKey) { key2 = toRaw(key2); hadKey = has2.call(target, key2); } var oldValue = get2.call(target, key2); target.set(key2, value); if (!hadKey) { trigger(target, "add", key2, value); } else if (hasChanged(value, oldValue)) { trigger(target, "set", key2, value); } return this; } function deleteEntry(key2) { var target = toRaw(this); var { has: has2, get: get2 } = getProto(target); var hadKey = has2.call(target, key2); if (!hadKey) { key2 = toRaw(key2); hadKey = has2.call(target, key2); } get2 ? get2.call(target, key2) : void 0; var result = target.delete(key2); if (hadKey) { trigger(target, "delete", key2, void 0); } return result; } function clear() { var target = toRaw(this); var hadItems = target.size !== 0; var result = target.clear(); if (hadItems) { trigger(target, "clear", void 0, void 0); } return result; } function createForEach(isReadonly2, isShallow2) { return function forEach(callback, thisArg) { var observed = this; var target = observed["__v_raw"]; var rawTarget = toRaw(target); var wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; !isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY); return target.forEach((value, key2) => { return callback.call(thisArg, wrap(value), wrap(key2), observed); }); }; } function createIterableMethod(method, isReadonly2, isShallow2) { return function() { var target = this["__v_raw"]; var rawTarget = toRaw(target); var targetIsMap = isMap(rawTarget); var isPair = method === "entries" || method === Symbol.iterator && targetIsMap; var isKeyOnly = method === "keys" && targetIsMap; var innerIterator = target[method](...arguments); var wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive; !isReadonly2 && track(rawTarget, "iterate", isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY); return { // iterator protocol next() { var { value, done } = innerIterator.next(); return done ? { value, done } : { value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value), done }; }, // iterable protocol [Symbol.iterator]() { return this; } }; }; } function createReadonlyMethod(type) { return function() { return type === "delete" ? false : type === "clear" ? void 0 : this; }; } function createInstrumentations() { var mutableInstrumentations2 = { get(key2) { return get(this, key2); }, get size() { return size(this); }, has, add, set, delete: deleteEntry, clear, forEach: createForEach(false, false) }; var shallowInstrumentations2 = { get(key2) { return get(this, key2, false, true); }, get size() { return size(this); }, has, add, set, delete: deleteEntry, clear, forEach: createForEach(false, true) }; var readonlyInstrumentations2 = { get(key2) { return get(this, key2, true); }, get size() { return size(this, true); }, has(key2) { return has.call(this, key2, true); }, add: createReadonlyMethod("add"), set: createReadonlyMethod("set"), delete: createReadonlyMethod("delete"), clear: createReadonlyMethod("clear"), forEach: createForEach(true, false) }; var shallowReadonlyInstrumentations2 = { get(key2) { return get(this, key2, true, true); }, get size() { return size(this, true); }, has(key2) { return has.call(this, key2, true); }, add: createReadonlyMethod("add"), set: createReadonlyMethod("set"), delete: createReadonlyMethod("delete"), clear: createReadonlyMethod("clear"), forEach: createForEach(true, true) }; var 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]; } var [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* @__PURE__ */ createInstrumentations(); function createInstrumentationGetter(isReadonly2, shallow) { var instrumentations = shallow ? isReadonly2 ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly2 ? readonlyInstrumentations : mutableInstrumentations; return (target, key2, receiver) => { if (key2 === "__v_isReactive") { return !isReadonly2; } else if (key2 === "__v_isReadonly") { return isReadonly2; } else if (key2 === "__v_raw") { return target; } return Reflect.get(hasOwn$1(instrumentations, key2) && key2 in target ? instrumentations : target, key2, receiver); }; } var mutableCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, false) }; var shallowCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(false, true) }; var readonlyCollectionHandlers = { get: /* @__PURE__ */ createInstrumentationGetter(true, false) }; var reactiveMap = /* @__PURE__ */ new WeakMap(); var shallowReactiveMap = /* @__PURE__ */ new WeakMap(); var readonlyMap = /* @__PURE__ */ new WeakMap(); var 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; } } function getTargetType(value) { return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value)); } function reactive(target) { if (isReadonly(target)) { return target; } return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap); } function shallowReactive(target) { return createReactiveObject(target, false, shallowReactiveHandlers, shallowCollectionHandlers, shallowReactiveMap); } function readonly(target) { return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap); } function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) { if (!isObject$2(target)) { return target; } if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) { return target; } var existingProxy = proxyMap.get(target); if (existingProxy) { return existingProxy; } var targetType = getTargetType(target); if (targetType === 0) { return target; } var proxy = new Proxy(target, targetType === 2 ? collectionHandlers : baseHandlers); proxyMap.set(target, proxy); return proxy; } function isReactive(value) { if (isReadonly(value)) { return isReactive(value["__v_raw"]); } return !!(value && value["__v_isReactive"]); } function isReadonly(value) { return !!(value && value["__v_isReadonly"]); } function isShallow(value) { return !!(value && value["__v_isShallow"]); } function isProxy(value) { return isReactive(value) || isReadonly(value); } function toRaw(observed) { var raw = observed && observed["__v_raw"]; return raw ? toRaw(raw) : observed; } function markRaw(value) { if (Object.isExtensible(value)) { def(value, "__v_skip", true); } return value; } var toReactive = (value) => isObject$2(value) ? reactive(value) : value; var toReadonly = (value) => isObject$2(value) ? readonly(value) : value; class 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() { var 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) { 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) { var isSSR = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; var getter; var setter; var onlyGetter = isFunction(getterOrOptions); if (onlyGetter) { getter = getterOrOptions; setter = NOOP; } else { getter = getterOrOptions.get; setter = getterOrOptions.set; } var cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR); return cRef; } 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)); } } function triggerRefValue(ref2) { var dirtyLevel = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 4; ref2 = toRaw(ref2); var dep = ref2.dep; if (dep) { triggerEffects(dep, dirtyLevel); } } function isRef(r) { return !!(r && r.__v_isRef === true); } function ref(value) { return createRef(value, false); } function shallowRef(value) { return createRef(value, true); } function createRef(rawValue, shallow) { if (isRef(rawValue)) { return rawValue; } return new RefImpl(rawValue, shallow); } class RefImpl { constructor(value, __v_isShallow) { this.__v_isShallow = __v_isShallow; this.dep = void 0; this.__v_isRef = true; this._rawValue = __v_isShallow ? value : toRaw(value); this._value = __v_isShallow ? value : toReactive(value); } get value() { trackRefValue(this); return this._value; } set value(newVal) { var useDirectValue = this.__v_isShallow || isShallow(newVal) || isReadonly(newVal); newVal = useDirectValue ? newVal : toRaw(newVal); if (hasChanged(newVal, this._rawValue)) { this._rawValue = newVal; this._value = useDirectValue ? newVal : toReactive(newVal); triggerRefValue(this, 4, newVal); } } } function unref(ref2) { return isRef(ref2) ? ref2.value : ref2; } var shallowUnwrapHandlers = { get: (target, key2, receiver) => unref(Reflect.get(target, key2, receiver)), set: (target, key2, value, receiver) => { var oldValue = target[key2]; if (isRef(oldValue) && !isRef(value)) { oldValue.value = value; return true; } else { return Reflect.set(target, key2, value, receiver); } } }; function proxyRefs(objectWithRefs) { return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers); } var stack = []; function warn$1(msg2) { pauseTracking(); var instance = stack.length ? stack[stack.length - 1].component : null; var appWarnHandler = instance && instance.appContext.config.warnHandler; var trace = getComponentTrace(); for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key5 = 1; _key5 < _len4; _key5++) { args[_key5 - 1] = arguments[_key5]; } if (appWarnHandler) { callWithErrorHandling(appWarnHandler, instance, 11, [msg2 + args.map((a2) => { var _a, _b; return (_b = (_a = a2.toString) == null ? void 0 : _a.call(a2)) != null ? _b : JSON.stringify(a2); }).join(""), instance && instance.proxy, trace.map((_ref) => { var { vnode } = _ref; return "at <".concat(formatComponentName(instance, vnode.type), ">"); }).join("\n"), trace]); } else { var warnArgs = ["[Vue warn]: ".concat(msg2), ...args]; if (trace.length && // avoid spamming console during tests true) { warnArgs.push("\n", ...formatTrace(trace)); } console.warn(...warnArgs); } resetTracking(); } function getComponentTrace() { var currentVNode = stack[stack.length - 1]; if (!currentVNode) { return []; } var normalizedStack = []; while (currentVNode) { var last = normalizedStack[0]; if (last && last.vnode === currentVNode) { last.recurseCount++; } else { normalizedStack.push({ vnode: currentVNode, recurseCount: 0 }); } var parentInstance = currentVNode.component && currentVNode.component.parent; currentVNode = parentInstance && parentInstance.vnode; } return normalizedStack; } function formatTrace(trace) { var logs = []; trace.forEach((entry, i2) => { logs.push(...i2 === 0 ? [] : ["\n"], ...formatTraceEntry(entry)); }); return logs; } function formatTraceEntry(_ref2) { var { vnode, recurseCount } = _ref2; var postfix = recurseCount > 0 ? "... (".concat(recurseCount, " recursive calls)") : ""; var isRoot = vnode.component ? vnode.component.parent == null : false; var open = " at <".concat(formatComponentName(vnode.component, vnode.type, isRoot)); var close = ">" + postfix; return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close]; } function formatProps(props2) { var res = []; var keys = Object.keys(props2); keys.slice(0, 3).forEach((key2) => { res.push(...formatProp(key2, props2[key2])); }); if (keys.length > 3) { res.push(" ..."); } return res; } function formatProp(key2, value, raw) { if (isString(value)) { value = JSON.stringify(value); return raw ? value : ["".concat(key2, "=").concat(value)]; } else if (typeof value === "number" || typeof value === "boolean" || value == null) { return raw ? value : ["".concat(key2, "=").concat(value)]; } else if (isRef(value)) { value = formatProp(key2, toRaw(value.value), true); return raw ? value : ["".concat(key2, "=Ref<"), value, ">"]; } else if (isFunction(value)) { return ["".concat(key2, "=fn").concat(value.name ? "<".concat(value.name, ">") : "")]; } else { value = toRaw(value); return raw ? value : ["".concat(key2, "="), value]; } } function callWithErrorHandling(fn, instance, type, args) { try { return args ? fn(...args) : fn(); } catch (err2) { handleError(err2, instance, type); } } function callWithAsyncErrorHandling(fn, instance, type, args) { if (isFunction(fn)) { var res = callWithErrorHandling(fn, instance, type, args); if (res && isPromise(res)) { res.catch((err2) => { handleError(err2, instance, type); }); } return res; } var values = []; for (var i2 = 0; i2 < fn.length; i2++) { values.push(callWithAsyncErrorHandling(fn[i2], instance, type, args)); } return values; } function handleError(err2, instance, type) { instance ? instance.vnode : null; if (instance) { var cur = instance.parent; var exposedInstance = instance.proxy; var errorInfo = "https://vuejs.org/error-reference/#runtime-".concat(type); while (cur) { var errorCapturedHooks = cur.ec; if (errorCapturedHooks) { for (var i2 = 0; i2 < errorCapturedHooks.length; i2++) { if (errorCapturedHooks[i2](err2, exposedInstance, errorInfo) === false) { return; } } } cur = cur.parent; } var appErrorHandler = instance.appContext.config.errorHandler; if (appErrorHandler) { callWithErrorHandling(appErrorHandler, null, 10, [err2, exposedInstance, errorInfo]); return; } } logError(err2); } function logError(err2, type, contextVNode) { { if (err2 instanceof Error) { console.error(err2.message + "\n" + err2.stack); } else { console.error(err2); } } } var isFlushing = false; var isFlushPending = false; var queue = []; var flushIndex = 0; var pendingPostFlushCbs = []; var activePostFlushCbs = null; var postFlushIndex = 0; var resolvedPromise = /* @__PURE__ */ Promise.resolve(); var currentFlushPromise = null; function nextTick(fn) { var p2 = currentFlushPromise || resolvedPromise; return fn ? p2.then(this ? fn.bind(this) : fn) : p2; } function findInsertionIndex(id2) { var start = flushIndex + 1; var end = queue.length; while (start < end) { var middle = start + end >>> 1; var middleJob = queue[middle]; var middleJobId = getId(middleJob); if (middleJobId < id2 || middleJobId === id2 && middleJob.pre) { start = middle + 1; } else { end = middle; } } return start; } 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(); } } function queueFlush() { if (!isFlushing && !isFlushPending) { isFlushPending = true; currentFlushPromise = resolvedPromise.then(flushJobs); } } function invalidateJob(job) { var i2 = queue.indexOf(job); if (i2 > flushIndex) { queue.splice(i2, 1); } } function queuePostFlushCb(cb) { if (!isArray(cb)) { if (!activePostFlushCbs || !activePostFlushCbs.includes(cb, cb.allowRecurse ? postFlushIndex + 1 : postFlushIndex)) { pendingPostFlushCbs.push(cb); } } else { pendingPostFlushCbs.push(...cb); } queueFlush(); } function flushPreFlushCbs(instance, seen) { var i2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : isFlushing ? flushIndex + 1 : 0; for (; i2 < queue.length; i2++) { var cb = queue[i2]; if (cb && cb.pre) { if (instance && cb.id !== instance.uid) { continue; } queue.splice(i2, 1); i2--; cb(); } } } function flushPostFlushCbs(seen) { if (pendingPostFlushCbs.length) { var deduped = [...new Set(pendingPostFlushCbs)].sort((a2, b) => getId(a2) - getId(b)); pendingPostFlushCbs.length = 0; if (activePostFlushCbs) { activePostFlushCbs.push(...deduped); return; } activePostFlushCbs = deduped; for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) { activePostFlushCbs[postFlushIndex](); } activePostFlushCbs = null; postFlushIndex = 0; } } var getId = (job) => job.id == null ? Infinity : job.id; var comparator = (a2, b) => { var diff = getId(a2) - getId(b); if (diff === 0) { if (a2.pre && !b.pre) return -1; if (b.pre && !a2.pre) return 1; } return diff; }; function flushJobs(seen) { isFlushPending = false; isFlushing = true; queue.sort(comparator); try { for (flushIndex = 0; flushIndex < queue.length; flushIndex++) { var job = queue[flushIndex]; if (job && job.active !== false) { if (false) ; callWithErrorHandling(job, null, 14); } } } finally { flushIndex = 0; queue.length = 0; flushPostFlushCbs(); isFlushing = false; currentFlushPromise = null; if (queue.length || pendingPostFlushCbs.length) { flushJobs(); } } } function emit$2(instance, event) { if (instance.isUnmounted) return; var props2 = instance.vnode.props || EMPTY_OBJ; for (var _len6 = arguments.length, rawArgs = new Array(_len6 > 2 ? _len6 - 2 : 0), _key7 = 2; _key7 < _len6; _key7++) { rawArgs[_key7 - 2] = arguments[_key7]; } var args = rawArgs; var isModelListener2 = event.startsWith("update:"); var modelArg = isModelListener2 && event.slice(7); if (modelArg && modelArg in props2) { var modifiersKey = "".concat(modelArg === "modelValue" ? "model" : modelArg, "Modifiers"); var { number, trim } = props2[modifiersKey] || EMPTY_OBJ; if (trim) { args = rawArgs.map((a2) => isString(a2) ? a2.trim() : a2); } if (number) { args = rawArgs.map(looseToNumber); } } var handlerName; var handler = props2[handlerName = toHandlerKey(event)] || // also try camelCase event handler (#2249) props2[handlerName = toHandlerKey(camelize(event))]; if (!handler && isModelListener2) { handler = props2[handlerName = toHandlerKey(hyphenate(event))]; } if (handler) { callWithAsyncErrorHandling(handler, instance, 6, args); } var onceHandler = props2[handlerName + "Once"]; if (onceHandler) { if (!instance.emitted) { instance.emitted = {}; } else if (instance.emitted[handlerName]) { return; } instance.emitted[handlerName] = true; callWithAsyncErrorHandling(onceHandler, instance, 6, args); } } function normalizeEmitsOptions(comp, appContext) { var asMixin = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; var cache2 = appContext.emitsCache; var cached = cache2.get(comp); if (cached !== void 0) { return cached; } var raw = comp.emits; var normalized = {}; var hasExtends = false; if (!isFunction(comp)) { var extendEmits = (raw2) => { var normalizedFromExtend = normalizeEmitsOptions(raw2, appContext, true); if (normalizedFromExtend) { hasExtends = true; extend(normalized, normalizedFromExtend); } }; 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$2(comp)) { cache2.set(comp, null); } return null; } if (isArray(raw)) { raw.forEach((key2) => normalized[key2] = null); } else { extend(normalized, raw); } if (isObject$2(comp)) { cache2.set(comp, normalized); } return normalized; } function isEmitListener(options, key2) { if (!options || !isOn(key2)) { return false; } key2 = key2.slice(2).replace(/Once$/, ""); return hasOwn$1(options, key2[0].toLowerCase() + key2.slice(1)) || hasOwn$1(options, hyphenate(key2)) || hasOwn$1(options, key2); } var currentRenderingInstance = null; var currentScopeId = null; function setCurrentRenderingInstance(instance) { var prev = currentRenderingInstance; currentRenderingInstance = instance; currentScopeId = instance && instance.type.__scopeId || null; return prev; } function withCtx(fn) { var ctx2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : currentRenderingInstance; if (!ctx2) return fn; if (fn._n) { return fn; } var renderFnWithContext = function() { if (renderFnWithContext._d) { setBlockTracking(-1); } var prevInstance = setCurrentRenderingInstance(ctx2); var res; try { res = fn(...arguments); } finally { setCurrentRenderingInstance(prevInstance); if (renderFnWithContext._d) { setBlockTracking(1); } } return res; }; renderFnWithContext._n = true; renderFnWithContext._c = true; renderFnWithContext._d = true; return renderFnWithContext; } function markAttrsAccessed() { } function renderComponentRoot(instance) { var { type: Component, vnode, proxy, withProxy, props: props2, propsOptions: [propsOptions], slots, attrs: attrs2, emit: emit2, render: render2, renderCache, data, setupState, ctx: ctx2, inheritAttrs } = instance; var result; var fallthroughAttrs; var prev = setCurrentRenderingInstance(instance); try { if (vnode.shapeFlag & 4) { var proxyToUse = withProxy || proxy; var thisProxy = false ? new Proxy(proxyToUse, { get(target, key2, receiver) { warn$1("Property '".concat(String(key2), "' was accessed via 'this'. Avoid using 'this' in templates.")); return Reflect.get(target, key2, receiver); } }) : proxyToUse; result = normalizeVNode(render2.call(thisProxy, proxyToUse, renderCache, props2, setupState, data, ctx2)); fallthroughAttrs = attrs2; } else { var render22 = Component; if (false) ; result = normalizeVNode(render22.length > 1 ? render22(props2, false ? { get attrs() { markAttrsAccessed(); return attrs2; }, slots, emit: emit2 } : { attrs: attrs2, slots, emit: emit2 }) : render22( props2, null /* we know it doesn't need it */ )); fallthroughAttrs = Component.props ? attrs2 : getFunctionalFallthrough(attrs2); } } catch (err2) { handleError(err2, instance, 1); result = createVNode(Comment); } var root = result; if (fallthroughAttrs && inheritAttrs !== false) { var keys = Object.keys(fallthroughAttrs); var { shapeFlag } = root; if (keys.length) { if (shapeFlag & (1 | 6)) { if (propsOptions && keys.some(isModelListener)) { fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions); } root = cloneVNode(root, fallthroughAttrs); } } } if (vnode.dirs) { root = cloneVNode(root); root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs; } if (vnode.transition) { root.transition = vnode.transition; } { result = root; } setCurrentRenderingInstance(prev); return result; } var getFunctionalFallthrough = (attrs2) => { var res; for (var key2 in attrs2) { if (key2 === "class" || key2 === "style" || isOn(key2)) { (res || (res = {}))[key2] = attrs2[key2]; } } return res; }; var filterModelListeners = (attrs2, props2) => { var res = {}; for (var key2 in attrs2) { if (!isModelListener(key2) || !(key2.slice(9) in props2)) { res[key2] = attrs2[key2]; } } return res; }; function shouldUpdateComponent(prevVNode, nextVNode, optimized) { var { props: prevProps, children: prevChildren, component } = prevVNode; var { props: nextProps, children: nextChildren, patchFlag } = nextVNode; var emits = component.emitsOptions; 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) { var dynamicProps = nextVNode.dynamicProps; for (var i2 = 0; i2 < dynamicProps.length; i2++) { var key2 = dynamicProps[i2]; if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emits, key2)) { 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; } function hasPropsChanged(prevProps, nextProps, emitsOptions) { var nextKeys = Object.keys(nextProps); if (nextKeys.length !== Object.keys(prevProps).length) { return true; } for (var i2 = 0; i2 < nextKeys.length; i2++) { var key2 = nextKeys[i2]; if (nextProps[key2] !== prevProps[key2] && !isEmitListener(emitsOptions, key2)) { return true; } } return false; } function updateHOCHostEl(_ref4, el) { var { vnode, parent } = _ref4; while (parent) { var root = parent.subTree; if (root.suspense && root.suspense.activeBranch === vnode) { root.el = vnode.el; } if (root === vnode) { (vnode = parent.vnode).el = el; parent = parent.parent; } else { break; } } } var NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc"); var isSuspense = (type) => type.__isSuspense; function queueEffectWithSuspense(fn, suspense) { if (suspense && suspense.pendingBranch) { if (isArray(fn)) { suspense.effects.push(...fn); } else { suspense.effects.push(fn); } } else { queuePostFlushCb(fn); } } var ssrContextKey = Symbol.for("v-scx"); var useSSRContext = () => { { var ctx2 = inject(ssrContextKey); return ctx2; } }; function watchEffect(effect2, options) { return doWatch(effect2, null, options); } var INITIAL_WATCHER_VALUE = {}; function watch(source, cb, options) { return doWatch(source, cb, options); } function doWatch(source, cb) { var { immediate, deep, flush, once: once2, onTrack, onTrigger } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : EMPTY_OBJ; if (cb && once2) { var _cb = cb; cb = function() { _cb(...arguments); unwatch(); }; } var instance = currentInstance; var reactiveGetter = (source2) => deep === true ? source2 : ( // for deep: false, only traverse root-level properties traverse(source2, deep === false ? 1 : void 0) ); var getter; var forceTrigger = false; var isMultiSource = false; if (isRef(source)) { getter = () => source.value; forceTrigger = isShallow(source); } else if (isReactive(source)) { getter = () => reactiveGetter(source); forceTrigger = true; } else if (isArray(source)) { isMultiSource = true; forceTrigger = source.some((s) => isReactive(s) || isShallow(s)); getter = () => source.map((s) => { if (isRef(s)) { return s.value; } else if (isReactive(s)) { return reactiveGetter(s); } else if (isFunction(s)) { return callWithErrorHandling(s, instance, 2); } else ; }); } else if (isFunction(source)) { if (cb) { getter = () => callWithErrorHandling(source, instance, 2); } else { getter = () => { if (cleanup) { cleanup(); } return callWithAsyncErrorHandling(source, instance, 3, [onCleanup]); }; } } else { getter = NOOP; } if (cb && deep) { var baseGetter = getter; getter = () => traverse(baseGetter()); } var cleanup; var onCleanup = (fn) => { cleanup = effect2.onStop = () => { callWithErrorHandling(fn, instance, 4); cleanup = effect2.onStop = void 0; }; }; var ssrCleanup; if (isInSSRComponentSetup) { onCleanup = NOOP; if (!cb) { getter(); } else if (immediate) { callWithAsyncErrorHandling(cb, instance, 3, [getter(), isMultiSource ? [] : void 0, onCleanup]); } if (flush === "sync") { var ctx2 = useSSRContext(); ssrCleanup = ctx2.__watcherHandles || (ctx2.__watcherHandles = []); } else { return NOOP; } } var oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE; var job = () => { if (!effect2.active || !effect2.dirty) { return; } if (cb) { var newValue = effect2.run(); if (deep || forceTrigger || (isMultiSource ? newValue.some((v2, i2) => hasChanged(v2, oldValue[i2])) : hasChanged(newValue, oldValue)) || false) { if (cleanup) { cleanup(); } callWithAsyncErrorHandling(cb, instance, 3, [ newValue, // pass undefined as the old value when it's changed for the first time oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue, onCleanup ]); oldValue = newValue; } } else { effect2.run(); } }; job.allowRecurse = !!cb; var scheduler; if (flush === "sync") { scheduler = job; } else if (flush === "post") { scheduler = () => queuePostRenderEffect(job, instance && instance.suspense); } else { job.pre = true; if (instance) job.id = instance.uid; scheduler = () => queueJob(job); } var effect2 = new ReactiveEffect(getter, NOOP, scheduler); var scope = getCurrentScope(); var unwatch = () => { effect2.stop(); if (scope) { remove(scope.effects, effect2); } }; if (cb) { if (immediate) { job(); } else { oldValue = effect2.run(); } } else if (flush === "post") { queuePostRenderEffect(effect2.run.bind(effect2), instance && instance.suspense); } else { effect2.run(); } if (ssrCleanup) ssrCleanup.push(unwatch); return unwatch; } function instanceWatch(source, value, options) { var publicThis = this.proxy; var getter = isString(source) ? source.includes(".") ? createPathGetter(publicThis, source) : () => publicThis[source] : source.bind(publicThis, publicThis); var cb; if (isFunction(value)) { cb = value; } else { cb = value.handler; options = value; } var reset = setCurrentInstance(this); var res = doWatch(getter, cb.bind(publicThis), options); reset(); return res; } function createPathGetter(ctx2, path) { var segments = path.split("."); return () => { var cur = ctx2; for (var i2 = 0; i2 < segments.length && cur; i2++) { cur = cur[segments[i2]]; } return cur; }; } function traverse(value, depth) { var currentDepth = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0; var seen = arguments.length > 3 ? arguments[3] : void 0; if (!isObject$2(value) || value["__v_skip"]) { return value; } if (depth && depth > 0) { if (currentDepth >= depth) { return value; } currentDepth++; } seen = seen || /* @__PURE__ */ new Set(); if (seen.has(value)) { return value; } seen.add(value); if (isRef(value)) { traverse(value.value, depth, currentDepth, seen); } else if (isArray(value)) { for (var i2 = 0; i2 < value.length; i2++) { traverse(value[i2], depth, currentDepth, seen); } } else if (isSet(value) || isMap(value)) { value.forEach((v2) => { traverse(v2, depth, currentDepth, seen); }); } else if (isPlainObject(value)) { for (var key2 in value) { traverse(value[key2], depth, currentDepth, seen); } } return value; } function withDirectives(vnode, directives) { if (currentRenderingInstance === null) { return vnode; } var instance = getExposeProxy(currentRenderingInstance) || currentRenderingInstance.proxy; var bindings = vnode.dirs || (vnode.dirs = []); for (var i2 = 0; i2 < directives.length; i2++) { var [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i2]; if (dir) { if (isFunction(dir)) { dir = { mounted: dir, updated: dir }; } if (dir.deep) { traverse(value); } bindings.push({ dir, instance, value, oldValue: void 0, arg, modifiers }); } } return vnode; } function invokeDirectiveHook(vnode, prevVNode, instance, name) { var bindings = vnode.dirs; var oldBindings = prevVNode && prevVNode.dirs; for (var i2 = 0; i2 < bindings.length; i2++) { var binding = bindings[i2]; if (oldBindings) { binding.oldValue = oldBindings[i2].value; } var hook = binding.dir[name]; if (hook) { pauseTracking(); callWithAsyncErrorHandling(hook, instance, 8, [vnode.el, binding, vnode, prevVNode]); resetTracking(); } } } /*! #__NO_SIDE_EFFECTS__ */ // @__NO_SIDE_EFFECTS__ function defineComponent(options, extraOptions) { return isFunction(options) ? ( // #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({ name: options.name }, extraOptions, { setup: options }))() ) : options; } var isAsyncWrapper = (i2) => !!i2.type.__asyncLoader; var isKeepAlive = (vnode) => vnode.type.__isKeepAlive; function onActivated(hook, target) { registerKeepAliveHook(hook, "a", target); } function onDeactivated(hook, target) { registerKeepAliveHook(hook, "da", target); } function registerKeepAliveHook(hook, type) { var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : currentInstance; var wrappedHook = hook.__wdc || (hook.__wdc = () => { var current2 = target; while (current2) { if (current2.isDeactivated) { return; } current2 = current2.parent; } return hook(); }); injectHook(type, wrappedHook, target); if (target) { var current = target.parent; while (current && current.parent) { if (isKeepAlive(current.parent.vnode)) { injectToKeepAliveRoot(wrappedHook, type, target, current); } current = current.parent; } } } function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) { var injected = injectHook( type, hook, keepAliveRoot, true /* prepend */ ); onUnmounted(() => { remove(keepAliveRoot[type], injected); }, target); } function injectHook(type, hook) { var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : currentInstance; var prepend = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; if (target) { var hooks = target[type] || (target[type] = []); var wrappedHook = hook.__weh || (hook.__weh = function() { if (target.isUnmounted) { return; } pauseTracking(); var reset = setCurrentInstance(target); for (var _len7 = arguments.length, args = new Array(_len7), _key8 = 0; _key8 < _len7; _key8++) { args[_key8] = arguments[_key8]; } var res = callWithAsyncErrorHandling(hook, target, type, args); reset(); resetTracking(); return res; }); if (prepend) { hooks.unshift(wrappedHook); } else { hooks.push(wrappedHook); } return wrappedHook; } } var createHook = (lifecycle) => function(hook) { var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : currentInstance; return ( // post-create lifecycle registrations are noops during SSR (except for serverPrefetch) (!isInSSRComponentSetup || lifecycle === "sp") && injectHook(lifecycle, function() { return hook(...arguments); }, target) ); }; var onBeforeMount = createHook("bm"); var onMounted = createHook("m"); var onBeforeUpdate = createHook("bu"); var onUpdated = createHook("u"); var onBeforeUnmount = createHook("bum"); var onUnmounted = createHook("um"); var onServerPrefetch = createHook("sp"); var onRenderTriggered = createHook("rtg"); var onRenderTracked = createHook("rtc"); function onErrorCaptured(hook) { var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : currentInstance; injectHook("ec", hook, target); } function renderList(source, renderItem, cache2, index2) { var ret; var cached = cache2; if (isArray(source) || isString(source)) { ret = new Array(source.length); for (var i2 = 0, l = source.length; i2 < l; i2++) { ret[i2] = renderItem(source[i2], i2, void 0, cached); } } else { ret = new Array(source); for (var _i2 = 0; _i2 < source; _i2++) { ret[_i2] = renderItem(_i2 + 1, _i2, void 0, cached); } } return ret; } var getPublicInstance = (i2) => { if (!i2) return null; if (isStatefulComponent(i2)) return getExposeProxy(i2) || i2.proxy; return getPublicInstance(i2.parent); }; var publicPropertiesMap = ( // Move PURE marker to new line to workaround compiler discarding it // due to type annotation /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), { $: (i2) => i2, $el: (i2) => i2.vnode.el, $data: (i2) => i2.data, $props: (i2) => i2.props, $attrs: (i2) => i2.attrs, $slots: (i2) => i2.slots, $refs: (i2) => i2.refs, $parent: (i2) => getPublicInstance(i2.parent), $root: (i2) => getPublicInstance(i2.root), $emit: (i2) => i2.emit, $options: (i2) => resolveMergedOptions(i2), $forceUpdate: (i2) => i2.f || (i2.f = () => { i2.effect.dirty = true; queueJob(i2.update); }), $nextTick: (i2) => i2.n || (i2.n = nextTick.bind(i2.proxy)), $watch: (i2) => instanceWatch.bind(i2) }) ); var hasSetupBinding = (state, key2) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn$1(state, key2); var PublicInstanceProxyHandlers = { get(_ref9, key2) { var { _: instance } = _ref9; var { ctx: ctx2, setupState, data, props: props2, accessCache, type, appContext } = instance; var normalizedProps; if (key2[0] !== "$") { var n = accessCache[key2]; if (n !== void 0) { switch (n) { case 1: return setupState[key2]; case 2: return data[key2]; case 4: return ctx2[key2]; case 3: return props2[key2]; } } else if (hasSetupBinding(setupState, key2)) { accessCache[key2] = 1; return setupState[key2]; } else if (data !== EMPTY_OBJ && hasOwn$1(data, key2)) { accessCache[key2] = 2; return data[key2]; } else if ( // only cache other properties when instance has declared (thus stable) // props (normalizedProps = instance.propsOptions[0]) && hasOwn$1(normalizedProps, key2) ) { accessCache[key2] = 3; return props2[key2]; } else if (ctx2 !== EMPTY_OBJ && hasOwn$1(ctx2, key2)) { accessCache[key2] = 4; return ctx2[key2]; } else if (shouldCacheAccess) { accessCache[key2] = 0; } } var publicGetter = publicPropertiesMap[key2]; var cssModule, globalProperties; if (publicGetter) { if (key2 === "$attrs") { track(instance, "get", key2); } return publicGetter(instance); } else if ( // css module (injected by vue-loader) (cssModule = type.__cssModules) && (cssModule = cssModule[key2]) ) { return cssModule; } else if (ctx2 !== EMPTY_OBJ && hasOwn$1(ctx2, key2)) { accessCache[key2] = 4; return ctx2[key2]; } else if ( // global properties globalProperties = appContext.config.globalProperties, hasOwn$1(globalProperties, key2) ) { { return globalProperties[key2]; } } else ; }, set(_ref10, key2, value) { var { _: instance } = _ref10; var { data, setupState, ctx: ctx2 } = instance; if (hasSetupBinding(setupState, key2)) { setupState[key2] = value; return true; } else if (data !== EMPTY_OBJ && hasOwn$1(data, key2)) { data[key2] = value; return true; } else if (hasOwn$1(instance.props, key2)) { return false; } if (key2[0] === "$" && key2.slice(1) in instance) { return false; } else { { ctx2[key2] = value; } } return true; }, has(_ref11, key2) { var { _: { data, setupState, accessCache, ctx: ctx2, appContext, propsOptions } } = _ref11; var normalizedProps; return !!accessCache[key2] || data !== EMPTY_OBJ && hasOwn$1(data, key2) || hasSetupBinding(setupState, key2) || (normalizedProps = propsOptions[0]) && hasOwn$1(normalizedProps, key2) || hasOwn$1(ctx2, key2) || hasOwn$1(publicPropertiesMap, key2) || hasOwn$1(appContext.config.globalProperties, key2); }, defineProperty(target, key2, descriptor2) { if (descriptor2.get != null) { target._.accessCache[key2] = 0; } else if (hasOwn$1(descriptor2, "value")) { this.set(target, key2, descriptor2.value, null); } return Reflect.defineProperty(target, key2, descriptor2); } }; function normalizePropsOrEmits(props2) { return isArray(props2) ? props2.reduce((normalized, p2) => (normalized[p2] = null, normalized), {}) : props2; } var shouldCacheAccess = true; function applyOptions(instance) { var options = resolveMergedOptions(instance); var publicThis = instance.proxy; var ctx2 = instance.ctx; shouldCacheAccess = false; if (options.beforeCreate) { callHook$1(options.beforeCreate, instance, "bc"); } var { // state data: dataOptions, computed: computedOptions, methods, watch: watchOptions, provide: provideOptions, inject: injectOptions, // lifecycle created, beforeMount, mounted, beforeUpdate, updated, activated, deactivated, beforeDestroy, beforeUnmount, destroyed, unmounted, render: render2, renderTracked, renderTriggered, errorCaptured, serverPrefetch, // public API expose, inheritAttrs, // assets components, directives, filters } = options; if (injectOptions) { resolveInjections(injectOptions, ctx2); } if (methods) { for (var _key9 in methods) { var methodHandler = methods[_key9]; if (isFunction(methodHandler)) { { ctx2[_key9] = methodHandler.bind(publicThis); } } } } if (dataOptions) { (function() { var data = dataOptions.call(publicThis, publicThis); if (!isObject$2(data)) ; else { instance.data = reactive(data); } })(); } shouldCacheAccess = true; if (computedOptions) { var _loop4 = function(_key112) { var opt = computedOptions[_key112]; var get2 = isFunction(opt) ? opt.bind(publicThis, publicThis) : isFunction(opt.get) ? opt.get.bind(publicThis, publicThis) : NOOP; var set2 = !isFunction(opt) && isFunction(opt.set) ? opt.set.bind(publicThis) : NOOP; var c2 = computed({ get: get2, set: set2 }); Object.defineProperty(ctx2, _key112, { enumerable: true, configurable: true, get: () => c2.value, set: (v2) => c2.value = v2 }); }; for (var _key11 in computedOptions) { _loop4(_key11); } } if (watchOptions) { for (var _key12 in watchOptions) { createWatcher(watchOptions[_key12], ctx2, publicThis, _key12); } } if (provideOptions) { var provides = isFunction(provideOptions) ? provideOptions.call(publicThis) : provideOptions; Reflect.ownKeys(provides).forEach((key2) => { provide(key2, provides[key2]); }); } if (created) { callHook$1(created, instance, "c"); } function registerLifecycleHook(register2, hook) { if (isArray(hook)) { hook.forEach((_hook) => register2(_hook.bind(publicThis))); } else if (hook) { register2(hook.bind(publicThis)); } } registerLifecycleHook(onBeforeMount, beforeMount); registerLifecycleHook(onMounted, mounted); registerLifecycleHook(onBeforeUpdate, beforeUpdate); registerLifecycleHook(onUpdated, updated); registerLifecycleHook(onActivated, activated); registerLifecycleHook(onDeactivated, deactivated); registerLifecycleHook(onErrorCaptured, errorCaptured); registerLifecycleHook(onRenderTracked, renderTracked); registerLifecycleHook(onRenderTriggered, renderTriggered); registerLifecycleHook(onBeforeUnmount, beforeUnmount); registerLifecycleHook(onUnmounted, unmounted); registerLifecycleHook(onServerPrefetch, serverPrefetch); if (isArray(expose)) { if (expose.length) { var exposed = instance.exposed || (instance.exposed = {}); expose.forEach((key2) => { Object.defineProperty(exposed, key2, { get: () => publicThis[key2], set: (val) => publicThis[key2] = val }); }); } else if (!instance.exposed) { instance.exposed = {}; } } if (render2 && instance.render === NOOP) { instance.render = render2; } if (inheritAttrs != null) { instance.inheritAttrs = inheritAttrs; } if (components) instance.components = components; if (directives) instance.directives = directives; } function resolveInjections(injectOptions, ctx2) { if (isArray(injectOptions)) { injectOptions = normalizeInject(injectOptions); } var _loop5 = function(key3) { var opt = injectOptions[key3]; var injected = void 0; if (isObject$2(opt)) { if ("default" in opt) { injected = inject(opt.from || key3, opt.default, true); } else { injected = inject(opt.from || key3); } } else { injected = inject(opt); } if (isRef(injected)) { Object.defineProperty(ctx2, key3, { enumerable: true, configurable: true, get: () => injected.value, set: (v2) => injected.value = v2 }); } else { ctx2[key3] = injected; } }; for (var key2 in injectOptions) { _loop5(key2); } } function callHook$1(hook, instance, type) { callWithAsyncErrorHandling(isArray(hook) ? hook.map((h2) => h2.bind(instance.proxy)) : hook.bind(instance.proxy), instance, type); } function createWatcher(raw, ctx2, publicThis, key2) { var getter = key2.includes(".") ? createPathGetter(publicThis, key2) : () => publicThis[key2]; if (isString(raw)) { var handler = ctx2[raw]; if (isFunction(handler)) { watch(getter, handler); } } else if (isFunction(raw)) { watch(getter, raw.bind(publicThis)); } else if (isObject$2(raw)) { if (isArray(raw)) { raw.forEach((r) => createWatcher(r, ctx2, publicThis, key2)); } else { var _handler = isFunction(raw.handler) ? raw.handler.bind(publicThis) : ctx2[raw.handler]; if (isFunction(_handler)) { watch(getter, _handler, raw); } } } else ; } function resolveMergedOptions(instance) { var base = instance.type; var { mixins, extends: extendsOptions } = base; var { mixins: globalMixins, optionsCache: cache2, config: { optionMergeStrategies } } = instance.appContext; var cached = cache2.get(base); var resolved; if (cached) { resolved = cached; } else if (!globalMixins.length && !mixins && !extendsOptions) { { resolved = base; } } else { resolved = {}; if (globalMixins.length) { globalMixins.forEach((m) => mergeOptions(resolved, m, optionMergeStrategies, true)); } mergeOptions(resolved, base, optionMergeStrategies); } if (isObject$2(base)) { cache2.set(base, resolved); } return resolved; } function mergeOptions(to, from, strats) { var asMixin = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; var { mixins, extends: extendsOptions } = from; if (extendsOptions) { mergeOptions(to, extendsOptions, strats, true); } if (mixins) { mixins.forEach((m) => mergeOptions(to, m, strats, true)); } for (var key2 in from) { if (asMixin && key2 === "expose") ; else { var strat = internalOptionMergeStrats[key2] || strats && strats[key2]; to[key2] = strat ? strat(to[key2], from[key2]) : from[key2]; } } return to; } var internalOptionMergeStrats = { data: mergeDataFn, props: mergeEmitsOrPropsOptions, emits: mergeEmitsOrPropsOptions, // objects methods: mergeObjectOptions, computed: mergeObjectOptions, // lifecycle beforeCreate: mergeAsArray, created: mergeAsArray, beforeMount: mergeAsArray, mounted: mergeAsArray, beforeUpdate: mergeAsArray, updated: mergeAsArray, beforeDestroy: mergeAsArray, beforeUnmount: mergeAsArray, destroyed: mergeAsArray, unmounted: mergeAsArray, activated: mergeAsArray, deactivated: mergeAsArray, errorCaptured: mergeAsArray, serverPrefetch: mergeAsArray, // assets components: mergeObjectOptions, directives: mergeObjectOptions, // watch watch: mergeWatchOptions, // provide / inject provide: mergeDataFn, inject: mergeInject }; function mergeDataFn(to, from) { if (!from) { return to; } if (!to) { return from; } return function mergedDataFn() { return extend(isFunction(to) ? to.call(this, this) : to, isFunction(from) ? from.call(this, this) : from); }; } function mergeInject(to, from) { return mergeObjectOptions(normalizeInject(to), normalizeInject(from)); } function normalizeInject(raw) { if (isArray(raw)) { var res = {}; for (var i2 = 0; i2 < raw.length; i2++) { res[raw[i2]] = raw[i2]; } return res; } return raw; } function mergeAsArray(to, from) { return to ? [...new Set([].concat(to, from))] : from; } function mergeObjectOptions(to, from) { return to ? extend(/* @__PURE__ */ Object.create(null), to, from) : from; } function mergeEmitsOrPropsOptions(to, from) { if (to) { if (isArray(to) && isArray(from)) { return [.../* @__PURE__ */ new Set([...to, ...from])]; } return extend(/* @__PURE__ */ Object.create(null), normalizePropsOrEmits(to), normalizePropsOrEmits(from != null ? from : {})); } else { return from; } } function mergeWatchOptions(to, from) { if (!to) return from; if (!from) return to; var merged = extend(/* @__PURE__ */ Object.create(null), to); for (var key2 in from) { merged[key2] = mergeAsArray(to[key2], from[key2]); } return merged; } function createAppContext() { return { app: null, config: { isNativeTag: NO, performance: false, globalProperties: {}, optionMergeStrategies: {}, errorHandler: void 0, warnHandler: void 0, compilerOptions: {} }, mixins: [], components: {}, directives: {}, provides: /* @__PURE__ */ Object.create(null), optionsCache: /* @__PURE__ */ new WeakMap(), propsCache: /* @__PURE__ */ new WeakMap(), emitsCache: /* @__PURE__ */ new WeakMap() }; } var uid$1 = 0; function createAppAPI(render2, hydrate2) { return function createApp2(rootComponent) { var rootProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null; if (!isFunction(rootComponent)) { rootComponent = extend({}, rootComponent); } if (rootProps != null && !isObject$2(rootProps)) { rootProps = null; } var context = createAppContext(); var installedPlugins = /* @__PURE__ */ new WeakSet(); var isMounted = false; var app = context.app = { _uid: uid$1++, _component: rootComponent, _props: rootProps, _container: null, _context: context, _instance: null, version, get config() { return context.config; }, set config(v2) { }, use(plugin) { for (var _len8 = arguments.length, options = new Array(_len8 > 1 ? _len8 - 1 : 0), _key13 = 1; _key13 < _len8; _key13++) { options[_key13 - 1] = arguments[_key13]; } if (installedPlugins.has(plugin)) ; else if (plugin && isFunction(plugin.install)) { installedPlugins.add(plugin); plugin.install(app, ...options); } else if (isFunction(plugin)) { installedPlugins.add(plugin); plugin(app, ...options); } else ; return app; }, mixin(mixin) { { if (!context.mixins.includes(mixin)) { context.mixins.push(mixin); } } return app; }, component(name, component) { if (!component) { return context.components[name]; } context.components[name] = component; return app; }, directive(name, directive) { if (!directive) { return context.directives[name]; } context.directives[name] = directive; return app; }, mount(rootContainer, isHydrate, namespace) { if (!isMounted) { var vnode = createVNode(rootComponent, rootProps); vnode.appContext = context; if (namespace === true) { namespace = "svg"; } else if (namespace === false) { namespace = void 0; } if (isHydrate && hydrate2) { hydrate2(vnode, rootContainer); } else { render2(vnode, rootContainer, namespace); } isMounted = true; app._container = rootContainer; rootContainer.__vue_app__ = app; return getExposeProxy(vnode.component) || vnode.component.proxy; } }, unmount() { if (isMounted) { render2(null, app._container); delete app._container.__vue_app__; } }, provide(key2, value) { context.provides[key2] = value; return app; }, runWithContext(fn) { var lastApp = currentApp; currentApp = app; try { return fn(); } finally { currentApp = lastApp; } } }; return app; }; } var currentApp = null; function provide(key2, value) { if (!currentInstance) ; else { var provides = currentInstance.provides; var parentProvides = currentInstance.parent && currentInstance.parent.provides; if (parentProvides === provides) { provides = currentInstance.provides = Object.create(parentProvides); } provides[key2] = value; } } function inject(key2, defaultValue) { var treatDefaultAsFactory = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; var instance = currentInstance || currentRenderingInstance; if (instance || currentApp) { var provides = instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : currentApp._context.provides; if (provides && key2 in provides) { return provides[key2]; } else if (arguments.length > 1) { return treatDefaultAsFactory && isFunction(defaultValue) ? defaultValue.call(instance && instance.proxy) : defaultValue; } else ; } } function initProps(instance, rawProps, isStateful) { var isSSR = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false; var props2 = {}; var attrs2 = {}; def(attrs2, InternalObjectKey, 1); instance.propsDefaults = /* @__PURE__ */ Object.create(null); setFullProps(instance, rawProps, props2, attrs2); for (var key2 in instance.propsOptions[0]) { if (!(key2 in props2)) { props2[key2] = void 0; } } if (isStateful) { instance.props = isSSR ? props2 : shallowReactive(props2); } else { if (!instance.type.props) { instance.props = attrs2; } else { instance.props = props2; } } instance.attrs = attrs2; } function updateProps(instance, rawProps, rawPrevProps, optimized) { var { props: props2, attrs: attrs2, vnode: { patchFlag } } = instance; var rawCurrentProps = toRaw(props2); var [options] = instance.propsOptions; var hasAttrsChanged = false; if ( // always force full diff in dev // - #1942 if hmr is enabled with sfc component // - vite#872 non-sfc component used by sfc component (optimized || patchFlag > 0) && !(patchFlag & 16) ) { if (patchFlag & 8) { var propsToUpdate = instance.vnode.dynamicProps; for (var i2 = 0; i2 < propsToUpdate.length; i2++) { var key2 = propsToUpdate[i2]; if (isEmitListener(instance.emitsOptions, key2)) { continue; } var value = rawProps[key2]; if (options) { if (hasOwn$1(attrs2, key2)) { if (value !== attrs2[key2]) { attrs2[key2] = value; hasAttrsChanged = true; } } else { var camelizedKey = camelize(key2); props2[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false); } } else { if (value !== attrs2[key2]) { attrs2[key2] = value; hasAttrsChanged = true; } } } } } else { if (setFullProps(instance, rawProps, props2, attrs2)) { hasAttrsChanged = true; } var kebabKey; for (var _key14 in rawCurrentProps) { if (!rawProps || // for camelCase !hasOwn$1(rawProps, _key14) && // it's possible the original props was passed in as kebab-case // and converted to camelCase (#955) ((kebabKey = hyphenate(_key14)) === _key14 || !hasOwn$1(rawProps, kebabKey))) { if (options) { if (rawPrevProps && // for camelCase (rawPrevProps[_key14] !== void 0 || // for kebab-case rawPrevProps[kebabKey] !== void 0)) { props2[_key14] = resolvePropValue(options, rawCurrentProps, _key14, void 0, instance, true); } } else { delete props2[_key14]; } } } if (attrs2 !== rawCurrentProps) { for (var _key15 in attrs2) { if (!rawProps || !hasOwn$1(rawProps, _key15) && true) { delete attrs2[_key15]; hasAttrsChanged = true; } } } } if (hasAttrsChanged) { trigger(instance, "set", "$attrs"); } } function setFullProps(instance, rawProps, props2, attrs2) { var [options, needCastKeys] = instance.propsOptions; var hasAttrsChanged = false; var rawCastValues; if (rawProps) { for (var key2 in rawProps) { if (isReservedProp(key2)) { continue; } var value = rawProps[key2]; var camelKey = void 0; if (options && hasOwn$1(options, camelKey = camelize(key2))) { if (!needCastKeys || !needCastKeys.includes(camelKey)) { props2[camelKey] = value; } else { (rawCastValues || (rawCastValues = {}))[camelKey] = value; } } else if (!isEmitListener(instance.emitsOptions, key2)) { if (!(key2 in attrs2) || value !== attrs2[key2]) { attrs2[key2] = value; hasAttrsChanged = true; } } } } if (needCastKeys) { var rawCurrentProps = toRaw(props2); var castValues = rawCastValues || EMPTY_OBJ; for (var i2 = 0; i2 < needCastKeys.length; i2++) { var _key16 = needCastKeys[i2]; props2[_key16] = resolvePropValue(options, rawCurrentProps, _key16, castValues[_key16], instance, !hasOwn$1(castValues, _key16)); } } return hasAttrsChanged; } function resolvePropValue(options, props2, key2, value, instance, isAbsent) { var opt = options[key2]; if (opt != null) { var hasDefault = hasOwn$1(opt, "default"); if (hasDefault && value === void 0) { var defaultValue = opt.default; if (opt.type !== Function && !opt.skipFactory && isFunction(defaultValue)) { var { propsDefaults } = instance; if (key2 in propsDefaults) { value = propsDefaults[key2]; } else { var reset = setCurrentInstance(instance); value = propsDefaults[key2] = defaultValue.call(null, props2); reset(); } } else { value = defaultValue; } } if (opt[ 0 /* shouldCast */ ]) { if (isAbsent && !hasDefault) { value = false; } else if (opt[ 1 /* shouldCastTrue */ ] && (value === "" || value === hyphenate(key2))) { value = true; } } } return value; } function normalizePropsOptions(comp, appContext) { var asMixin = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false; var cache2 = appContext.propsCache; var cached = cache2.get(comp); if (cached) { return cached; } var raw = comp.props; var normalized = {}; var needCastKeys = []; var hasExtends = false; if (!isFunction(comp)) { var extendProps = (raw2) => { hasExtends = true; var [props2, keys] = normalizePropsOptions(raw2, appContext, true); extend(normalized, props2); if (keys) needCastKeys.push(...keys); }; if (!asMixin && appContext.mixins.length) { appContext.mixins.forEach(extendProps); } if (comp.extends) { extendProps(comp.extends); } if (comp.mixins) { comp.mixins.forEach(extendProps); } } if (!raw && !hasExtends) { if (isObject$2(comp)) { cache2.set(comp, EMPTY_ARR); } return EMPTY_ARR; } if (isArray(raw)) { for (var i2 = 0; i2 < raw.length; i2++) { var normalizedKey = camelize(raw[i2]); if (validatePropName(normalizedKey)) { normalized[normalizedKey] = EMPTY_OBJ; } } } else if (raw) { for (var key2 in raw) { var _normalizedKey = camelize(key2); if (validatePropName(_normalizedKey)) { var opt = raw[key2]; var prop = normalized[_normalizedKey] = isArray(opt) || isFunction(opt) ? { type: opt } : extend({}, opt); if (prop) { var booleanIndex = getTypeIndex(Boolean, prop.type); var stringIndex = getTypeIndex(String, prop.type); prop[ 0 /* shouldCast */ ] = booleanIndex > -1; prop[ 1 /* shouldCastTrue */ ] = stringIndex < 0 || booleanIndex < stringIndex; if (booleanIndex > -1 || hasOwn$1(prop, "default")) { needCastKeys.push(_normalizedKey); } } } } } var res = [normalized, needCastKeys]; if (isObject$2(comp)) { cache2.set(comp, res); } return res; } function validatePropName(key2) { if (key2[0] !== "$" && !isReservedProp(key2)) { return true; } return false; } function getType(ctor) { if (ctor === null) { return "null"; } if (typeof ctor === "function") { return ctor.name || ""; } else if (typeof ctor === "object") { var name = ctor.constructor && ctor.constructor.name; return name || ""; } return ""; } function isSameType(a2, b) { return getType(a2) === getType(b); } function getTypeIndex(type, expectedTypes) { if (isArray(expectedTypes)) { return expectedTypes.findIndex((t2) => isSameType(t2, type)); } else if (isFunction(expectedTypes)) { return isSameType(expectedTypes, type) ? 0 : -1; } return -1; } var isInternalKey = (key2) => key2[0] === "_" || key2 === "$stable"; var normalizeSlotValue = (value) => isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)]; var normalizeSlot = (key2, rawSlot, ctx2) => { if (rawSlot._n) { return rawSlot; } var normalized = withCtx(function() { if (false) ; return normalizeSlotValue(rawSlot(...arguments)); }, ctx2); normalized._c = false; return normalized; }; var normalizeObjectSlots = (rawSlots, slots, instance) => { var ctx2 = rawSlots._ctx; for (var key2 in rawSlots) { if (isInternalKey(key2)) continue; var value = rawSlots[key2]; if (isFunction(value)) { slots[key2] = normalizeSlot(key2, value, ctx2); } else if (value != null) { (function() { var normalized = normalizeSlotValue(value); slots[key2] = () => normalized; })(); } } }; var normalizeVNodeSlots = (instance, children) => { var normalized = normalizeSlotValue(children); instance.slots.default = () => normalized; }; var initSlots = (instance, children) => { if (instance.vnode.shapeFlag & 32) { var type = children._; if (type) { instance.slots = toRaw(children); def(children, "_", type); } else { normalizeObjectSlots(children, instance.slots = {}); } } else { instance.slots = {}; if (children) { normalizeVNodeSlots(instance, children); } } def(instance.slots, InternalObjectKey, 1); }; var updateSlots = (instance, children, optimized) => { var { vnode, slots } = instance; var needDeletionCheck = true; var deletionComparisonTarget = EMPTY_OBJ; if (vnode.shapeFlag & 32) { var type = children._; if (type) { if (optimized && type === 1) { needDeletionCheck = false; } else { extend(slots, children); if (!optimized && type === 1) { delete slots._; } } } else { needDeletionCheck = !children.$stable; normalizeObjectSlots(children, slots); } deletionComparisonTarget = children; } else if (children) { normalizeVNodeSlots(instance, children); deletionComparisonTarget = { default: 1 }; } if (needDeletionCheck) { for (var key2 in slots) { if (!isInternalKey(key2) && deletionComparisonTarget[key2] == null) { delete slots[key2]; } } } }; function setRef(rawRef, oldRawRef, parentSuspense, vnode) { var isUnmount = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false; if (isArray(rawRef)) { rawRef.forEach((r, i2) => setRef(r, oldRawRef && (isArray(oldRawRef) ? oldRawRef[i2] : oldRawRef), parentSuspense, vnode, isUnmount)); return; } if (isAsyncWrapper(vnode) && !isUnmount) { return; } var refValue = vnode.shapeFlag & 4 ? getExposeProxy(vnode.component) || vnode.component.proxy : vnode.el; var value = isUnmount ? null : refValue; var { i: owner, r: ref2 } = rawRef; var oldRef = oldRawRef && oldRawRef.r; var refs = owner.refs === EMPTY_OBJ ? owner.refs = {} : owner.refs; var setupState = owner.setupState; if (oldRef != null && oldRef !== ref2) { if (isString(oldRef)) { refs[oldRef] = null; if (hasOwn$1(setupState, oldRef)) { setupState[oldRef] = null; } } else if (isRef(oldRef)) { oldRef.value = null; } } if (isFunction(ref2)) { callWithErrorHandling(ref2, owner, 12, [value, refs]); } else { var _isString = isString(ref2); var _isRef = isRef(ref2); if (_isString || _isRef) { var doSet = () => { if (rawRef.f) { var existing = _isString ? hasOwn$1(setupState, ref2) ? setupState[ref2] : refs[ref2] : ref2.value; if (isUnmount) { isArray(existing) && remove(existing, refValue); } else { if (!isArray(existing)) { if (_isString) { refs[ref2] = [refValue]; if (hasOwn$1(setupState, ref2)) { setupState[ref2] = refs[ref2]; } } else { ref2.value = [refValue]; if (rawRef.k) refs[rawRef.k] = ref2.value; } } else if (!existing.includes(refValue)) { existing.push(refValue); } } } else if (_isString) { refs[ref2] = value; if (hasOwn$1(setupState, ref2)) { setupState[ref2] = value; } } else if (_isRef) { ref2.value = value; if (rawRef.k) refs[rawRef.k] = value; } else ; }; if (value) { doSet.id = -1; queuePostRenderEffect(doSet, parentSuspense); } else { doSet(); } } } } var queuePostRenderEffect = queueEffectWithSuspense; function createRenderer(options) { return baseCreateRenderer(options); } function baseCreateRenderer(options, createHydrationFns) { var target = getGlobalThis(); target.__VUE__ = true; var { insert: hostInsert, remove: hostRemove, patchProp: hostPatchProp, createElement: hostCreateElement, createText: hostCreateText, createComment: hostCreateComment, setText: hostSetText, setElementText: hostSetElementText, parentNode: hostParentNode, nextSibling: hostNextSibling, setScopeId: hostSetScopeId = NOOP, insertStaticContent: hostInsertStaticContent } = options; var patch = function(n1, n2, container) { var anchor = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : null; var parentComponent = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null; var parentSuspense = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : null; var namespace = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : void 0; var slotScopeIds = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : null; var optimized = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : !!n2.dynamicChildren; if (n1 === n2) { return; } if (n1 && !isSameVNodeType(n1, n2)) { anchor = getNextHostNode(n1); unmount(n1, parentComponent, parentSuspense, true); n1 = null; } if (n2.patchFlag === -2) { optimized = false; n2.dynamicChildren = null; } var { type, ref: ref2, shapeFlag } = n2; switch (type) { case Text: processText(n1, n2, container, anchor); break; case Comment: processCommentNode(n1, n2, container, anchor); break; case Static: if (n1 == null) { mountStaticNode(n2, container, anchor, namespace); } break; case Fragment: processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized); break; default: if (shapeFlag & 1) { processElement(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized); } else if (shapeFlag & 6) { processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized); } else if (shapeFlag & 64) { type.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals); } else if (shapeFlag & 128) { type.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals); } else ; } if (ref2 != null && parentComponent) { setRef(ref2, n1 && n1.ref, parentSuspense, n2 || n1, !n2); } }; var processText = (n1, n2, container, anchor) => { if (n1 == null) { hostInsert(n2.el = hostCreateText(n2.children), container, anchor); } else { var el = n2.el = n1.el; if (n2.children !== n1.children) { hostSetText(el, n2.children); } } }; var processCommentNode = (n1, n2, container, anchor) => { if (n1 == null) { hostInsert(n2.el = hostCreateComment(n2.children || ""), container, anchor); } else { n2.el = n1.el; } }; var mountStaticNode = (n2, container, anchor, namespace) => { [n2.el, n2.anchor] = hostInsertStaticContent(n2.children, container, anchor, namespace, n2.el, n2.anchor); }; var moveStaticNode = (_ref12, container, nextSibling) => { var { el, anchor } = _ref12; var next; while (el && el !== anchor) { next = hostNextSibling(el); hostInsert(el, container, nextSibling); el = next; } hostInsert(anchor, container, nextSibling); }; var removeStaticNode = (_ref13) => { var { el, anchor } = _ref13; var next; while (el && el !== anchor) { next = hostNextSibling(el); hostRemove(el); el = next; } hostRemove(anchor); }; var processElement = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { if (n2.type === "svg") { namespace = "svg"; } else if (n2.type === "math") { namespace = "mathml"; } if (n1 == null) { mountElement(n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized); } else { patchElement(n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized); } }; var mountElement = (vnode, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { var el; var vnodeHook; var { props: props2, shapeFlag, transition, dirs } = vnode; el = vnode.el = hostCreateElement(vnode.type, namespace, props2 && props2.is, props2); if (shapeFlag & 8) { hostSetElementText(el, vnode.children); } else if (shapeFlag & 16) { mountChildren(vnode.children, el, null, parentComponent, parentSuspense, resolveChildrenNamespace(vnode, namespace), slotScopeIds, optimized); } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "created"); } setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); if (props2) { for (var key2 in props2) { if (key2 !== "value" && !isReservedProp(key2)) { hostPatchProp(el, key2, null, props2[key2], namespace, vnode.children, parentComponent, parentSuspense, unmountChildren); } } if ("value" in props2) { hostPatchProp(el, "value", null, props2.value, namespace); } if (vnodeHook = props2.onVnodeBeforeMount) { invokeVNodeHook(vnodeHook, parentComponent, vnode); } } Object.defineProperty(el, "__vueParentComponent", { value: parentComponent, enumerable: false }); if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, "beforeMount"); } var needCallTransitionHooks = needTransition(parentSuspense, transition); if (needCallTransitionHooks) { transition.beforeEnter(el); } hostInsert(el, container, anchor); if ((vnodeHook = props2 && props2.onVnodeMounted) || needCallTransitionHooks || dirs) { queuePostRenderEffect(() => { vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); needCallTransitionHooks && transition.enter(el); dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted"); }, parentSuspense); } }; var setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => { if (scopeId) { hostSetScopeId(el, scopeId); } if (slotScopeIds) { for (var i2 = 0; i2 < slotScopeIds.length; i2++) { hostSetScopeId(el, slotScopeIds[i2]); } } if (parentComponent) { var subTree = parentComponent.subTree; if (vnode === subTree) { var parentVNode = parentComponent.vnode; setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent); } } }; var mountChildren = function(children, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) { var start = arguments.length > 8 && arguments[8] !== void 0 ? arguments[8] : 0; for (var i2 = start; i2 < children.length; i2++) { var child = children[i2] = optimized ? cloneIfMounted(children[i2]) : normalizeVNode(children[i2]); patch(null, child, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized); } }; var patchElement = (n1, n2, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { var el = n2.el = n1.el; var { patchFlag, dynamicChildren, dirs } = n2; patchFlag |= n1.patchFlag & 16; var oldProps = n1.props || EMPTY_OBJ; var newProps = n2.props || EMPTY_OBJ; var vnodeHook; parentComponent && toggleRecurse(parentComponent, false); if (vnodeHook = newProps.onVnodeBeforeUpdate) { invokeVNodeHook(vnodeHook, parentComponent, n2, n1); } if (dirs) { invokeDirectiveHook(n2, n1, parentComponent, "beforeUpdate"); } parentComponent && toggleRecurse(parentComponent, true); if (dynamicChildren) { patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace), slotScopeIds); } else if (!optimized) { patchChildren(n1, n2, el, null, parentComponent, parentSuspense, resolveChildrenNamespace(n2, namespace), slotScopeIds, false); } if (patchFlag > 0) { if (patchFlag & 16) { patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, namespace); } else { if (patchFlag & 2) { if (oldProps.class !== newProps.class) { hostPatchProp(el, "class", null, newProps.class, namespace); } } if (patchFlag & 4) { hostPatchProp(el, "style", oldProps.style, newProps.style, namespace); } if (patchFlag & 8) { var propsToUpdate = n2.dynamicProps; for (var i2 = 0; i2 < propsToUpdate.length; i2++) { var key2 = propsToUpdate[i2]; var prev = oldProps[key2]; var next = newProps[key2]; if (next !== prev || key2 === "value") { hostPatchProp(el, key2, prev, next, namespace, n1.children, parentComponent, parentSuspense, unmountChildren); } } } } if (patchFlag & 1) { if (n1.children !== n2.children) { hostSetElementText(el, n2.children); } } } else if (!optimized && dynamicChildren == null) { patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, namespace); } if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { queuePostRenderEffect(() => { vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); dirs && invokeDirectiveHook(n2, n1, parentComponent, "updated"); }, parentSuspense); } }; var patchBlockChildren = (oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, namespace, slotScopeIds) => { for (var i2 = 0; i2 < newChildren.length; i2++) { var oldVNode = oldChildren[i2]; var newVNode = newChildren[i2]; var container = ( // oldVNode may be an errored async setup() component inside Suspense // which will not have a mounted element oldVNode.el && // - In the case of a Fragment, we need to provide the actual parent // of the Fragment itself so it can move its children. (oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement // which also requires the correct parent container !isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything. oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : ( // In other cases, the parent container is not actually used so we // just pass the block element here to avoid a DOM parentNode call. fallbackContainer ) ); patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, namespace, slotScopeIds, true); } }; var patchProps = (el, vnode, oldProps, newProps, parentComponent, parentSuspense, namespace) => { if (oldProps !== newProps) { if (oldProps !== EMPTY_OBJ) { for (var key2 in oldProps) { if (!isReservedProp(key2) && !(key2 in newProps)) { hostPatchProp(el, key2, oldProps[key2], null, namespace, vnode.children, parentComponent, parentSuspense, unmountChildren); } } } for (var _key18 in newProps) { if (isReservedProp(_key18)) continue; var next = newProps[_key18]; var prev = oldProps[_key18]; if (next !== prev && _key18 !== "value") { hostPatchProp(el, _key18, prev, next, namespace, vnode.children, parentComponent, parentSuspense, unmountChildren); } } if ("value" in newProps) { hostPatchProp(el, "value", oldProps.value, newProps.value, namespace); } } }; var processFragment = (n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized) => { var fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText(""); var fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText(""); var { patchFlag, dynamicChildren, slotScopeIds: fragmentSlotScopeIds } = n2; if (fragmentSlotScopeIds) { slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; } if (n1 == null) { hostInsert(fragmentStartAnchor, container, anchor); hostInsert(fragmentEndAnchor, container, anchor); mountChildren( // #10007 // such fragment like `<>` will be compiled into // a fragment which doesn't have a children. // In this case fallback to an empty array n2.children || [], container, fragmentEndAnchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized ); } else { if (patchFlag > 0 && patchFlag & 64 && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result // of renderSlot() with no valid children n1.dynamicChildren) { patchBlockChildren(n1.dynamicChildren, dynamicChildren, container, parentComponent, parentSuspense, namespace, slotScopeIds); if ( // #2080 if the stable fragment has a key, it's a