vue-mount-plugin 4.0.0-beta.4 → 4.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +36 -8
- package/dist/index.d.ts +4 -1
- package/dist/index.es5.js +42 -9
- package/dist/index.es5.min.js +1 -1
- package/dist/index.iife.js +37 -9
- package/dist/index.iife.min.js +1 -1
- package/dist/index.mjs +37 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -375,8 +375,13 @@ function createInstanceId() {
|
|
|
375
375
|
function capitalize(str) {
|
|
376
376
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
377
377
|
}
|
|
378
|
+
function toCamelCase(str) {
|
|
379
|
+
return str.replace(/-([a-z])/g, function (_, letter) {
|
|
380
|
+
return letter.toUpperCase();
|
|
381
|
+
});
|
|
382
|
+
}
|
|
378
383
|
function eventToPropName(event) {
|
|
379
|
-
return "on".concat(capitalize(event));
|
|
384
|
+
return "on".concat(capitalize(toCamelCase(event)));
|
|
380
385
|
}
|
|
381
386
|
|
|
382
387
|
var instances = new Set();
|
|
@@ -391,6 +396,7 @@ var MountBase = /*#__PURE__*/function () {
|
|
|
391
396
|
_defineProperty(this, "_autoCreatedTarget", false);
|
|
392
397
|
_defineProperty(this, "_hidden", false);
|
|
393
398
|
_defineProperty(this, "_destroyed", false);
|
|
399
|
+
_defineProperty(this, "_resolved", false);
|
|
394
400
|
_defineProperty(this, "destroy", this.unmount);
|
|
395
401
|
_defineProperty(this, "remove", this.unmount);
|
|
396
402
|
this.id = createInstanceId();
|
|
@@ -556,6 +562,8 @@ var MountBase = /*#__PURE__*/function () {
|
|
|
556
562
|
}, {
|
|
557
563
|
key: "_resolvePromise",
|
|
558
564
|
value: function _resolvePromise(value) {
|
|
565
|
+
if (this._resolved) return;
|
|
566
|
+
this._resolved = true;
|
|
559
567
|
this._resolve(value);
|
|
560
568
|
}
|
|
561
569
|
}, {
|
|
@@ -571,7 +579,12 @@ var MountBase = /*#__PURE__*/function () {
|
|
|
571
579
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
572
580
|
event = _ref2[0],
|
|
573
581
|
handler = _ref2[1];
|
|
574
|
-
|
|
582
|
+
var propName = eventToPropName(event);
|
|
583
|
+
result[propName] = function () {
|
|
584
|
+
if (typeof handler === 'function') {
|
|
585
|
+
handler.apply(void 0, arguments);
|
|
586
|
+
}
|
|
587
|
+
};
|
|
575
588
|
});
|
|
576
589
|
return result;
|
|
577
590
|
}
|
|
@@ -721,8 +734,8 @@ var MountVue2 = /*#__PURE__*/function (_MountBase) {
|
|
|
721
734
|
(_this2$_eventEmitter = _this2._eventEmitter).emit.apply(_this2$_eventEmitter, [event].concat(args));
|
|
722
735
|
return originalEmit.apply(void 0, [event].concat(args));
|
|
723
736
|
};
|
|
724
|
-
instance.$on('close', function () {
|
|
725
|
-
_this2._resolvePromise(
|
|
737
|
+
instance.$on('close', function (value) {
|
|
738
|
+
_this2._resolvePromise(value);
|
|
726
739
|
_this2.unmount();
|
|
727
740
|
});
|
|
728
741
|
instance._mountId = this.id;
|
|
@@ -801,8 +814,8 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
801
814
|
on = _this$options.on,
|
|
802
815
|
slots = _this$options.slots;
|
|
803
816
|
var mergedListeners = _objectSpread2(_objectSpread2({}, listeners), on);
|
|
804
|
-
var onClose = function onClose() {
|
|
805
|
-
_this2._resolvePromise(
|
|
817
|
+
var onClose = function onClose(value) {
|
|
818
|
+
_this2._resolvePromise(value);
|
|
806
819
|
_this2.unmount();
|
|
807
820
|
};
|
|
808
821
|
var mergedProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props), this._mergeListenersToProps(mergedListeners)), {}, {
|
|
@@ -831,6 +844,18 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
831
844
|
var _this3$_vNode$compone, _this3$_vNode$compone2;
|
|
832
845
|
render(_this3._vNode, _this3.el);
|
|
833
846
|
_this3.vm = (_this3$_vNode$compone = (_this3$_vNode$compone2 = _this3._vNode.component) === null || _this3$_vNode$compone2 === void 0 ? void 0 : _this3$_vNode$compone2.proxy) !== null && _this3$_vNode$compone !== void 0 ? _this3$_vNode$compone : null;
|
|
847
|
+
var component = _this3._vNode.component;
|
|
848
|
+
if (component) {
|
|
849
|
+
var originalEmit = component.emit;
|
|
850
|
+
component.emit = function (event) {
|
|
851
|
+
var _this3$_eventEmitter;
|
|
852
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
853
|
+
args[_key - 1] = arguments[_key];
|
|
854
|
+
}
|
|
855
|
+
(_this3$_eventEmitter = _this3._eventEmitter).emit.apply(_this3$_eventEmitter, [event].concat(args));
|
|
856
|
+
return originalEmit.call.apply(originalEmit, [component, event].concat(args));
|
|
857
|
+
};
|
|
858
|
+
}
|
|
834
859
|
}
|
|
835
860
|
});
|
|
836
861
|
this.mounted = true;
|
|
@@ -873,6 +898,7 @@ function useMount() {
|
|
|
873
898
|
var mount = function mount(component, options) {
|
|
874
899
|
var instance = createMount(component, options);
|
|
875
900
|
instances.value.push(instance);
|
|
901
|
+
instance.show();
|
|
876
902
|
return instance;
|
|
877
903
|
};
|
|
878
904
|
var unmount = function unmount(instance) {
|
|
@@ -895,9 +921,9 @@ function useMount() {
|
|
|
895
921
|
var hasInstances = function hasInstances() {
|
|
896
922
|
return instances.value.length > 0;
|
|
897
923
|
};
|
|
898
|
-
var count = function
|
|
924
|
+
var count = vueDemi.computed(function () {
|
|
899
925
|
return instances.value.length;
|
|
900
|
-
};
|
|
926
|
+
});
|
|
901
927
|
if (!vueDemi.isVue2) {
|
|
902
928
|
vueDemi.onUnmounted(unmountAll);
|
|
903
929
|
}
|
|
@@ -923,6 +949,7 @@ function useSingleton() {
|
|
|
923
949
|
var instance = createMount(component, _objectSpread2(_objectSpread2({}, options), {}, {
|
|
924
950
|
singleton: key
|
|
925
951
|
}));
|
|
952
|
+
instance.show();
|
|
926
953
|
return instance;
|
|
927
954
|
};
|
|
928
955
|
return {
|
|
@@ -1006,6 +1033,7 @@ exports.resolveTarget = resolveTarget;
|
|
|
1006
1033
|
exports.setGlobalConfig = setGlobalConfig;
|
|
1007
1034
|
exports.setSingleton = setSingleton;
|
|
1008
1035
|
exports.setZIndex = setZIndex;
|
|
1036
|
+
exports.toCamelCase = toCamelCase;
|
|
1009
1037
|
exports.unmountAll = unmountAll;
|
|
1010
1038
|
exports.useMount = useMount;
|
|
1011
1039
|
exports.useSingleton = useSingleton;
|
package/dist/index.d.ts
CHANGED
|
@@ -128,6 +128,7 @@ export declare abstract class MountBase implements MountInstance {
|
|
|
128
128
|
protected _autoCreatedTarget: boolean;
|
|
129
129
|
protected _hidden: boolean;
|
|
130
130
|
protected _destroyed: boolean;
|
|
131
|
+
protected _resolved: boolean;
|
|
131
132
|
protected _singletonKey: string | symbol | undefined;
|
|
132
133
|
constructor(component: any, options?: MountOptions);
|
|
133
134
|
protected abstract _createVM(): void;
|
|
@@ -250,6 +251,8 @@ export declare interface Slots {
|
|
|
250
251
|
[key: string]: VNode | VNode[] | undefined;
|
|
251
252
|
}
|
|
252
253
|
|
|
254
|
+
export declare function toCamelCase(str: string): string;
|
|
255
|
+
|
|
253
256
|
export declare interface TransitionOptions {
|
|
254
257
|
name?: string;
|
|
255
258
|
appear?: boolean;
|
|
@@ -273,7 +276,7 @@ export declare interface UseMountReturn {
|
|
|
273
276
|
unmountAll: () => void;
|
|
274
277
|
getById: (id: string) => MountInstance | undefined;
|
|
275
278
|
hasInstances: () => boolean;
|
|
276
|
-
count:
|
|
279
|
+
count: Ref<number>;
|
|
277
280
|
}
|
|
278
281
|
|
|
279
282
|
export declare function useSingleton(): UseSingletonReturn;
|
package/dist/index.es5.js
CHANGED
|
@@ -126,7 +126,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
126
126
|
);
|
|
127
127
|
;
|
|
128
128
|
/*!
|
|
129
|
-
* vue-mount-plugin v4.0.0-beta.
|
|
129
|
+
* vue-mount-plugin v4.0.0-beta.5
|
|
130
130
|
* A simple and easy to use vue instance extension plugin that supports vue2.0 and vue3.0
|
|
131
131
|
* (c) 2021-2026 saqqdy <https://github.com/saqqdy>
|
|
132
132
|
* Released under the MIT License.
|
|
@@ -7214,8 +7214,13 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7214
7214
|
function capitalize(str) {
|
|
7215
7215
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
7216
7216
|
}
|
|
7217
|
+
function toCamelCase(str) {
|
|
7218
|
+
return str.replace(/-([a-z])/g, function (_, letter) {
|
|
7219
|
+
return letter.toUpperCase();
|
|
7220
|
+
});
|
|
7221
|
+
}
|
|
7217
7222
|
function eventToPropName(event) {
|
|
7218
|
-
return "on".concat(capitalize(event));
|
|
7223
|
+
return "on".concat(capitalize(toCamelCase(event)));
|
|
7219
7224
|
}
|
|
7220
7225
|
|
|
7221
7226
|
var instances = new Set();
|
|
@@ -7231,6 +7236,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7231
7236
|
this._autoCreatedTarget = false;
|
|
7232
7237
|
this._hidden = false;
|
|
7233
7238
|
this._destroyed = false;
|
|
7239
|
+
this._resolved = false;
|
|
7234
7240
|
this.destroy = this.unmount;
|
|
7235
7241
|
this.remove = this.unmount;
|
|
7236
7242
|
this.id = createInstanceId();
|
|
@@ -7364,6 +7370,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7364
7370
|
}
|
|
7365
7371
|
};
|
|
7366
7372
|
MountBase.prototype._resolvePromise = function (value) {
|
|
7373
|
+
if (this._resolved) return;
|
|
7374
|
+
this._resolved = true;
|
|
7367
7375
|
this._resolve(value);
|
|
7368
7376
|
};
|
|
7369
7377
|
MountBase.prototype._rejectPromise = function (error) {
|
|
@@ -7375,7 +7383,16 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7375
7383
|
var _b = __read(_a, 2),
|
|
7376
7384
|
event = _b[0],
|
|
7377
7385
|
handler = _b[1];
|
|
7378
|
-
|
|
7386
|
+
var propName = eventToPropName(event);
|
|
7387
|
+
result[propName] = function () {
|
|
7388
|
+
var args = [];
|
|
7389
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
7390
|
+
args[_i] = arguments[_i];
|
|
7391
|
+
}
|
|
7392
|
+
if (typeof handler === 'function') {
|
|
7393
|
+
handler.apply(void 0, __spreadArray([], __read(args), false));
|
|
7394
|
+
}
|
|
7395
|
+
};
|
|
7379
7396
|
});
|
|
7380
7397
|
return result;
|
|
7381
7398
|
};
|
|
@@ -7522,8 +7539,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7522
7539
|
(_a = _this._eventEmitter).emit.apply(_a, __spreadArray([event], __read(args), false));
|
|
7523
7540
|
return originalEmit.apply(void 0, __spreadArray([event], __read(args), false));
|
|
7524
7541
|
};
|
|
7525
|
-
instance.$on('close', function () {
|
|
7526
|
-
_this._resolvePromise(
|
|
7542
|
+
instance.$on('close', function (value) {
|
|
7543
|
+
_this._resolvePromise(value);
|
|
7527
7544
|
_this.unmount();
|
|
7528
7545
|
});
|
|
7529
7546
|
instance._mountId = this.id;
|
|
@@ -7598,8 +7615,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7598
7615
|
on = _a.on,
|
|
7599
7616
|
slots = _a.slots;
|
|
7600
7617
|
var mergedListeners = _assign(_assign({}, listeners), on);
|
|
7601
|
-
var onClose = function onClose() {
|
|
7602
|
-
_this._resolvePromise(
|
|
7618
|
+
var onClose = function onClose(value) {
|
|
7619
|
+
_this._resolvePromise(value);
|
|
7603
7620
|
_this.unmount();
|
|
7604
7621
|
};
|
|
7605
7622
|
var mergedProps = _assign(_assign(_assign({}, props), this._mergeListenersToProps(mergedListeners)), {
|
|
@@ -7626,6 +7643,19 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7626
7643
|
if (render && _this._vNode && _this.el) {
|
|
7627
7644
|
render(_this._vNode, _this.el);
|
|
7628
7645
|
_this.vm = (_b = (_a = _this._vNode.component) === null || _a === void 0 ? void 0 : _a.proxy) !== null && _b !== void 0 ? _b : null;
|
|
7646
|
+
var component_1 = _this._vNode.component;
|
|
7647
|
+
if (component_1) {
|
|
7648
|
+
var originalEmit_1 = component_1.emit;
|
|
7649
|
+
component_1.emit = function (event) {
|
|
7650
|
+
var _a;
|
|
7651
|
+
var args = [];
|
|
7652
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
7653
|
+
args[_i - 1] = arguments[_i];
|
|
7654
|
+
}
|
|
7655
|
+
(_a = _this._eventEmitter).emit.apply(_a, __spreadArray([event], __read(args), false));
|
|
7656
|
+
return originalEmit_1.call.apply(originalEmit_1, __spreadArray([component_1, event], __read(args), false));
|
|
7657
|
+
};
|
|
7658
|
+
}
|
|
7629
7659
|
}
|
|
7630
7660
|
});
|
|
7631
7661
|
this.mounted = true;
|
|
@@ -7664,6 +7694,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7664
7694
|
var mount = function mount(component, options) {
|
|
7665
7695
|
var instance = createMount(component, options);
|
|
7666
7696
|
instances.value.push(instance);
|
|
7697
|
+
instance.show();
|
|
7667
7698
|
return instance;
|
|
7668
7699
|
};
|
|
7669
7700
|
var unmount = function unmount(instance) {
|
|
@@ -7686,9 +7717,9 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7686
7717
|
var hasInstances = function hasInstances() {
|
|
7687
7718
|
return instances.value.length > 0;
|
|
7688
7719
|
};
|
|
7689
|
-
var count = function
|
|
7720
|
+
var count = vueDemi.computed(function () {
|
|
7690
7721
|
return instances.value.length;
|
|
7691
|
-
};
|
|
7722
|
+
});
|
|
7692
7723
|
if (!vueDemi.isVue2) {
|
|
7693
7724
|
vueDemi.onUnmounted(unmountAll);
|
|
7694
7725
|
}
|
|
@@ -7714,6 +7745,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7714
7745
|
var instance = createMount(component, _assign(_assign({}, options), {
|
|
7715
7746
|
singleton: key
|
|
7716
7747
|
}));
|
|
7748
|
+
instance.show();
|
|
7717
7749
|
return instance;
|
|
7718
7750
|
};
|
|
7719
7751
|
return {
|
|
@@ -7803,6 +7835,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7803
7835
|
exports.setGlobalConfig = setGlobalConfig;
|
|
7804
7836
|
exports.setSingleton = setSingleton;
|
|
7805
7837
|
exports.setZIndex = setZIndex;
|
|
7838
|
+
exports.toCamelCase = toCamelCase;
|
|
7806
7839
|
exports.unmountAll = unmountAll;
|
|
7807
7840
|
exports.useMount = useMount;
|
|
7808
7841
|
exports.useSingleton = useSingleton;
|
package/dist/index.es5.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _VueDemiGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,VueDemi=function(t,n,r){if(t.install)return t;if(!n)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),t;if("2.7."===n.version.slice(0,4)){for(var e in n)t[e]=n[e];t.isVue2=!0,t.isVue3=!1,t.install=function(){},t.Vue=n,t.Vue2=n,t.version=n.version,t.warn=n.util.warn,t.hasInjectionContext=function(){return!!t.getCurrentInstance()},t.createApp=function(t,r){var e,i={},o={config:n.config,use:n.use.bind(n),mixin:n.mixin.bind(n),component:n.component.bind(n),provide:function(t,n){return i[t]=n,this},directive:function(t,r){return r?(n.directive(t,r),o):n.directive(t)},mount:function(o,u){return e||((e=new n(Object.assign({propsData:r},t,{provide:Object.assign(i,t.provide)}))).$mount(o,u),e)},unmount:function(){e&&(e.$destroy(),e=void 0)}};return o}}else if("2."===n.version.slice(0,2))if(r){for(var e in r)t[e]=r[e];t.isVue2=!0,t.isVue3=!1,t.install=function(){},t.Vue=n,t.Vue2=n,t.version=n.version,t.hasInjectionContext=function(){return!!t.getCurrentInstance()}}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if("3."===n.version.slice(0,2)){for(var e in n)t[e]=n[e];t.isVue2=!1,t.isVue3=!0,t.install=function(){},t.Vue=n,t.Vue2=void 0,t.version=n.version,t.set=function(t,n,r){return Array.isArray(t)?(t.length=Math.max(t.length,n),t.splice(n,1,r),r):(t[n]=r,r)},t.del=function(t,n){Array.isArray(t)?t.splice(n,1):delete t[n]}}else console.error("[vue-demi] Vue version "+n.version+" is unsupported.");return t}(_VueDemiGlobal.VueDemi=_VueDemiGlobal.VueDemi||(void 0!==VueDemi?VueDemi:{}),_VueDemiGlobal.Vue||("undefined"!=typeof Vue?Vue:void 0),_VueDemiGlobal.VueCompositionAPI||("undefined"!=typeof VueCompositionAPI?VueCompositionAPI:void 0));!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue-demi")):"function"==typeof define&&define.amd?define(["exports","vue-demi"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).VueMount=t.VueMount||{},t.VueDemi)}(this,function(t,n){"use strict";var r,e,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o={};function u(){if(e)return r;e=1;var t=function(t){return t&&t.Math===Math&&t};return r=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof i&&i)||t("object"==typeof r&&r)||function(){return this}()||Function("return this")()}var f,c,a,s,l,v,p,h,d={};function y(){return c?f:(c=1,f=function(t){try{return!!t()}catch(t){return!0}})}function g(){if(s)return a;s=1;var t=y();return a=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function m(){if(v)return l;v=1;var t=y();return l=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function b(){if(h)return p;h=1;var t=m(),n=Function.prototype.call;return p=t?n.bind(n):function(){return n.apply(n,arguments)},p}var w,O,S,x,E,_,j,I,P,T,A,C,R,N,M,V,k,D,$,L,F,z,B,U,G,W,K,J,q,H,Y,X,Q,Z,tt,nt,rt,et,it,ot,ut,ft={};function ct(){if(w)return ft;w=1;var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);return ft.f=r?function(t){var r=n(this,t);return!!r&&r.enumerable}:t,ft}function at(){return S?O:(S=1,O=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}})}function st(){if(E)return x;E=1;var t=m(),n=Function.prototype,r=n.call,e=t&&n.bind.bind(r,r);return x=t?e:function(t){return function(){return r.apply(t,arguments)}},x}function lt(){if(j)return _;j=1;var t=st(),n=t({}.toString),r=t("".slice);return _=function(t){return r(n(t),8,-1)}}function vt(){if(P)return I;P=1;var t=st(),n=y(),r=lt(),e=Object,i=t("".split);return I=n(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?i(t,""):e(t)}:e}function pt(){return A?T:(A=1,T=function(t){return null==t})}function ht(){if(R)return C;R=1;var t=pt(),n=TypeError;return C=function(r){if(t(r))throw new n("Can't call method on "+r);return r}}function dt(){if(M)return N;M=1;var t=vt(),n=ht();return N=function(r){return t(n(r))}}function yt(){if(k)return V;k=1;var t="object"==typeof document&&document.all;return V=void 0===t&&void 0!==t?function(n){return"function"==typeof n||n===t}:function(t){return"function"==typeof t}}function gt(){if($)return D;$=1;var t=yt();return D=function(n){return"object"==typeof n?null!==n:t(n)}}function mt(){if(F)return L;F=1;var t=u(),n=yt();return L=function(r,e){return arguments.length<2?(i=t[r],n(i)?i:void 0):t[r]&&t[r][e];var i},L}function bt(){if(B)return z;B=1;var t=st();return z=t({}.isPrototypeOf)}function wt(){if(G)return U;G=1;var t=u().navigator,n=t&&t.userAgent;return U=n?String(n):""}function Ot(){if(K)return W;K=1;var t,n,r=u(),e=wt(),i=r.process,o=r.Deno,f=i&&i.versions||o&&o.version,c=f&&f.v8;return c&&(n=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!n&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(n=+t[1]),W=n}function St(){if(q)return J;q=1;var t=Ot(),n=y(),r=u().String;return J=!!Object.getOwnPropertySymbols&&!n(function(){var n=Symbol("symbol detection");return!r(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function xt(){if(Y)return H;Y=1;var t=St();return H=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Et(){if(Q)return X;Q=1;var t=mt(),n=yt(),r=bt(),e=xt(),i=Object;return X=e?function(t){return"symbol"==typeof t}:function(e){var o=t("Symbol");return n(o)&&r(o.prototype,i(e))}}function _t(){if(tt)return Z;tt=1;var t=String;return Z=function(n){try{return t(n)}catch(t){return"Object"}}}function jt(){if(rt)return nt;rt=1;var t=yt(),n=_t(),r=TypeError;return nt=function(e){if(t(e))return e;throw new r(n(e)+" is not a function")}}function It(){if(it)return et;it=1;var t=jt(),n=pt();return et=function(r,e){var i=r[e];return n(i)?void 0:t(i)}}var Pt,Tt,At,Ct,Rt,Nt,Mt,Vt,kt,Dt,$t,Lt,Ft,zt,Bt,Ut,Gt,Wt,Kt,Jt,qt,Ht,Yt,Xt,Qt={exports:{}};function Zt(){return Tt?Pt:(Tt=1,Pt=!1)}function tn(){if(Ct)return At;Ct=1;var t=u(),n=Object.defineProperty;return At=function(r,e){try{n(t,r,{value:e,configurable:!0,writable:!0})}catch(n){t[r]=e}return e}}function nn(){if(Rt)return Qt.exports;Rt=1;var t=Zt(),n=u(),r=tn(),e="__core-js_shared__",i=Qt.exports=n[e]||r(e,{});return(i.versions||(i.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Qt.exports}function rn(){if(Mt)return Nt;Mt=1;var t=nn();return Nt=function(n,r){return t[n]||(t[n]=r||{})}}function en(){if(kt)return Vt;kt=1;var t=ht(),n=Object;return Vt=function(r){return n(t(r))}}function on(){if($t)return Dt;$t=1;var t=st(),n=en(),r=t({}.hasOwnProperty);return Dt=Object.hasOwn||function(t,e){return r(n(t),e)}}function un(){if(Ft)return Lt;Ft=1;var t=st(),n=0,r=Math.random(),e=t(1.1.toString);return Lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++n+r,36)}}function fn(){if(Bt)return zt;Bt=1;var t=u(),n=rn(),r=on(),e=un(),i=St(),o=xt(),f=t.Symbol,c=n("wks"),a=o?f.for||f:f&&f.withoutSetter||e;return zt=function(t){return r(c,t)||(c[t]=i&&r(f,t)?f[t]:a("Symbol."+t)),c[t]}}function cn(){if(Gt)return Ut;Gt=1;var t=b(),n=gt(),r=Et(),e=It(),i=function(){if(ut)return ot;ut=1;var t=b(),n=yt(),r=gt(),e=TypeError;return ot=function(i,o){var u,f;if("string"===o&&n(u=i.toString)&&!r(f=t(u,i)))return f;if(n(u=i.valueOf)&&!r(f=t(u,i)))return f;if("string"!==o&&n(u=i.toString)&&!r(f=t(u,i)))return f;throw new e("Can't convert object to primitive value")}}(),o=fn(),u=TypeError,f=o("toPrimitive");return Ut=function(o,c){if(!n(o)||r(o))return o;var a,s=e(o,f);if(s){if(void 0===c&&(c="default"),a=t(s,o,c),!n(a)||r(a))return a;throw new u("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(o,c)}}function an(){if(Kt)return Wt;Kt=1;var t=cn(),n=Et();return Wt=function(r){var e=t(r,"string");return n(e)?e:e+""}}function sn(){if(qt)return Jt;qt=1;var t=u(),n=gt(),r=t.document,e=n(r)&&n(r.createElement);return Jt=function(t){return e?r.createElement(t):{}}}function ln(){if(Yt)return Ht;Yt=1;var t=g(),n=y(),r=sn();return Ht=!t&&!n(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function vn(){if(Xt)return d;Xt=1;var t=g(),n=b(),r=ct(),e=at(),i=dt(),o=an(),u=on(),f=ln(),c=Object.getOwnPropertyDescriptor;return d.f=t?c:function(t,a){if(t=i(t),a=o(a),f)try{return c(t,a)}catch(t){}if(u(t,a))return e(!n(r.f,t,a),t[a])},d}var pn,hn,dn,yn,gn,mn,bn,wn={};function On(){if(hn)return pn;hn=1;var t=g(),n=y();return pn=t&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Sn(){if(yn)return dn;yn=1;var t=gt(),n=String,r=TypeError;return dn=function(e){if(t(e))return e;throw new r(n(e)+" is not an object")}}function xn(){if(gn)return wn;gn=1;var t=g(),n=ln(),r=On(),e=Sn(),i=an(),o=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",s="writable";return wn.f=t?r?function(t,n,r){if(e(t),n=i(n),e(r),"function"==typeof t&&"prototype"===n&&"value"in r&&s in r&&!r[s]){var o=f(t,n);o&&o[s]&&(t[n]=r.value,r={configurable:a in r?r[a]:o[a],enumerable:c in r?r[c]:o[c],writable:!1})}return u(t,n,r)}:u:function(t,r,f){if(e(t),r=i(r),e(f),n)try{return u(t,r,f)}catch(t){}if("get"in f||"set"in f)throw new o("Accessors not supported");return"value"in f&&(t[r]=f.value),t},wn}function En(){if(bn)return mn;bn=1;var t=g(),n=xn(),r=at();return mn=t?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,n,r){return t[n]=r,t}}var _n,jn,In,Pn,Tn,An,Cn,Rn,Nn,Mn,Vn,kn,Dn,$n,Ln,Fn={exports:{}};function zn(){if(jn)return _n;jn=1;var t=g(),n=on(),r=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,i=n(r,"name"),o=i&&"something"===function(){}.name,u=i&&(!t||t&&e(r,"name").configurable);return _n={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function Bn(){if(Pn)return In;Pn=1;var t=st(),n=yt(),r=nn(),e=t(Function.toString);return n(r.inspectSource)||(r.inspectSource=function(t){return e(t)}),In=r.inspectSource}function Un(){if(An)return Tn;An=1;var t=u(),n=yt(),r=t.WeakMap;return Tn=n(r)&&/native code/.test(String(r))}function Gn(){if(Rn)return Cn;Rn=1;var t=rn(),n=un(),r=t("keys");return Cn=function(t){return r[t]||(r[t]=n(t))}}function Wn(){return Mn?Nn:(Mn=1,Nn={})}function Kn(){if(kn)return Vn;kn=1;var t,n,r,e=Un(),i=u(),o=gt(),f=En(),c=on(),a=nn(),s=Gn(),l=Wn(),v="Object already initialized",p=i.TypeError,h=i.WeakMap;if(e||a.state){var d=a.state||(a.state=new h);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,n){if(d.has(t))throw new p(v);return n.facade=t,d.set(t,n),n},n=function(t){return d.get(t)||{}},r=function(t){return d.has(t)}}else{var y=s("state");l[y]=!0,t=function(t,n){if(c(t,y))throw new p(v);return n.facade=t,f(t,y,n),n},n=function(t){return c(t,y)?t[y]:{}},r=function(t){return c(t,y)}}return Vn={set:t,get:n,has:r,enforce:function(e){return r(e)?n(e):t(e,{})},getterFor:function(t){return function(r){var e;if(!o(r)||(e=n(r)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function Jn(){if(Dn)return Fn.exports;Dn=1;var t=st(),n=y(),r=yt(),e=on(),i=g(),o=zn().CONFIGURABLE,u=Bn(),f=Kn(),c=f.enforce,a=f.get,s=String,l=Object.defineProperty,v=t("".slice),p=t("".replace),h=t([].join),d=i&&!n(function(){return 8!==l(function(){},"length",{value:8}).length}),m=String(String).split("String"),b=Fn.exports=function(t,n,r){"Symbol("===v(s(n),0,7)&&(n="["+p(s(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!e(t,"name")||o&&t.name!==n)&&(i?l(t,"name",{value:n,configurable:!0}):t.name=n),d&&r&&e(r,"arity")&&t.length!==r.arity&&l(t,"length",{value:r.arity});try{r&&e(r,"constructor")&&r.constructor?i&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=c(t);return e(u,"source")||(u.source=h(m,"string"==typeof n?n:"")),t};return Function.prototype.toString=b(function(){return r(this)&&a(this).source||u(this)},"toString"),Fn.exports}function qn(){if(Ln)return $n;Ln=1;var t=yt(),n=xn(),r=Jn(),e=tn();return $n=function(i,o,u,f){f||(f={});var c=f.enumerable,a=void 0!==f.name?f.name:o;if(t(u)&&r(u,a,f),f.global)c?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(c=!0):delete i[o]}catch(t){}c?i[o]=u:n.f(i,o,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}}var Hn,Yn,Xn,Qn,Zn,tr,nr,rr,er,ir,or,ur,fr,cr,ar,sr,lr,vr={};function pr(){if(Qn)return Xn;Qn=1;var t=function(){if(Yn)return Hn;Yn=1;var t=Math.ceil,n=Math.floor;return Hn=Math.trunc||function(r){var e=+r;return(e>0?n:t)(e)}}();return Xn=function(n){var r=+n;return r!=r||0===r?0:t(r)}}function hr(){if(tr)return Zn;tr=1;var t=pr(),n=Math.max,r=Math.min;return Zn=function(e,i){var o=t(e);return o<0?n(o+i,0):r(o,i)}}function dr(){if(rr)return nr;rr=1;var t=pr(),n=Math.min;return nr=function(r){var e=t(r);return e>0?n(e,9007199254740991):0}}function yr(){if(ir)return er;ir=1;var t=dr();return er=function(n){return t(n.length)}}function gr(){if(cr)return fr;cr=1;var t=st(),n=on(),r=dt(),e=function(){if(ur)return or;ur=1;var t=dt(),n=hr(),r=yr(),e=function(e){return function(i,o,u){var f=t(i),c=r(f);if(0===c)return!e&&-1;var a,s=n(u,c);if(e&&o!=o){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((e||s in f)&&f[s]===o)return e||s||0;return!e&&-1}};return or={includes:e(!0),indexOf:e(!1)}}().indexOf,i=Wn(),o=t([].push);return fr=function(t,u){var f,c=r(t),a=0,s=[];for(f in c)!n(i,f)&&n(c,f)&&o(s,f);for(;u.length>a;)n(c,f=u[a++])&&(~e(s,f)||o(s,f));return s}}function mr(){return sr?ar:(sr=1,ar=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function br(){if(lr)return vr;lr=1;var t=gr(),n=mr().concat("length","prototype");return vr.f=Object.getOwnPropertyNames||function(r){return t(r,n)},vr}var wr,Or,Sr,xr,Er,_r,jr,Ir,Pr,Tr,Ar,Cr,Rr,Nr,Mr,Vr,kr,Dr,$r,Lr,Fr,zr,Br,Ur,Gr,Wr,Kr,Jr,qr,Hr,Yr,Xr,Qr={};function Zr(){return wr||(wr=1,Qr.f=Object.getOwnPropertySymbols),Qr}function te(){if(Er)return xr;Er=1;var t=on(),n=function(){if(Sr)return Or;Sr=1;var t=mt(),n=st(),r=br(),e=Zr(),i=Sn(),o=n([].concat);return Or=t("Reflect","ownKeys")||function(t){var n=r.f(i(t)),u=e.f;return u?o(n,u(t)):n}}(),r=vn(),e=xn();return xr=function(i,o,u){for(var f=n(o),c=e.f,a=r.f,s=0;s<f.length;s++){var l=f[s];t(i,l)||u&&t(u,l)||c(i,l,a(o,l))}}}function ne(){if(jr)return _r;jr=1;var t=y(),n=yt(),r=/#|\.prototype\./,e=function(r,e){var c=o[i(r)];return c===f||c!==u&&(n(e)?t(e):!!e)},i=e.normalize=function(t){return String(t).replace(r,".").toLowerCase()},o=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return _r=e}function re(){if(Pr)return Ir;Pr=1;var t=u(),n=vn().f,r=En(),e=qn(),i=tn(),o=te(),f=ne();return Ir=function(u,c){var a,s,l,v,p,h=u.target,d=u.global,y=u.stat;if(a=d?t:y?t[h]||i(h,{}):t[h]&&t[h].prototype)for(s in c){if(v=c[s],l=u.dontCallGetSet?(p=n(a,s))&&p.value:a[s],!f(d?s:h+(y?".":"#")+s,u.forced)&&void 0!==l){if(typeof v==typeof l)continue;o(v,l)}(u.sham||l&&l.sham)&&r(v,"sham",!0),e(a,s,v,u)}}}function ee(){if(Rr)return Cr;Rr=1;var t=function(){if(Ar)return Tr;Ar=1;var t=lt(),n=st();return Tr=function(r){if("Function"===t(r))return n(r)}}(),n=jt(),r=m(),e=t(t.bind);return Cr=function(t,i){return n(t),void 0===i?t:r?e(t,i):function(){return t.apply(i,arguments)}},Cr}function ie(){if(Mr)return Nr;Mr=1;var t=lt();return Nr=Array.isArray||function(n){return"Array"===t(n)}}function oe(){if(kr)return Vr;kr=1;var t={};return t[fn()("toStringTag")]="z",Vr="[object z]"===String(t)}function ue(){if($r)return Dr;$r=1;var t=oe(),n=yt(),r=lt(),e=fn()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Dr=t?r:function(t){var u,f,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(f=function(t,n){try{return t[n]}catch(t){}}(u=i(t),e))?f:o?r(u):"Object"===(c=r(u))&&n(u.callee)?"Arguments":c}}function fe(){if(Fr)return Lr;Fr=1;var t=st(),n=y(),r=yt(),e=ue(),i=mt(),o=Bn(),u=function(){},f=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,a=t(c.exec),s=!c.test(u),l=function(t){if(!r(t))return!1;try{return f(u,[],t),!0}catch(t){return!1}},v=function(t){if(!r(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(c,o(t))}catch(t){return!0}};return v.sham=!0,Lr=!f||n(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function ce(){if(Gr)return Ur;Gr=1;var t=function(){if(Br)return zr;Br=1;var t=ie(),n=fe(),r=gt(),e=fn()("species"),i=Array;return zr=function(o){var u;return t(o)&&(u=o.constructor,(n(u)&&(u===i||t(u.prototype))||r(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?i:u}}();return Ur=function(n,r){return new(t(n))(0===r?0:r)}}function ae(){if(Kr)return Wr;Kr=1;var t=g(),n=xn(),r=at();return Wr=function(e,i,o){t?n.f(e,i,r(0,o)):e[i]=o}}function se(){if(qr)return Jr;qr=1;var t=ee(),n=vt(),r=en(),e=yr(),i=ce(),o=ae(),u=function(u){var f=1===u,c=2===u,a=3===u,s=4===u,l=6===u,v=7===u,p=5===u||l;return function(h,d,y){for(var g,m,b=r(h),w=n(b),O=e(w),S=t(d,y),x=0,E=0,_=f?i(h,O):c||v?i(h,0):void 0;O>x;x++)if((p||x in w)&&(m=S(g=w[x],x,b),u))if(f)o(_,x,m);else if(m)switch(u){case 3:return!0;case 5:return g;case 6:return x;case 2:o(_,E++,g)}else switch(u){case 4:return!1;case 7:o(_,E++,g)}return l?-1:a||s?s:_}};return Jr={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}function le(){if(Yr)return Hr;Yr=1;var t=y(),n=fn(),r=Ot(),e=n("species");return Hr=function(n){return r>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[n](Boolean).foo})}}!function(){if(Xr)return o;Xr=1;var t=re(),n=se().map;t({target:"Array",proto:!0,forced:!le()("map")},{map:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})}();var ve,pe,he,de={};function ye(){if(pe)return ve;pe=1;var t=Jn(),n=xn();return ve=function(r,e,i){return i.get&&t(i.get,e,{getter:!0}),i.set&&t(i.set,e,{setter:!0}),n.f(r,e,i)}}!function(){if(he)return de;he=1;var t=g(),n=zn().EXISTS,r=st(),e=ye(),i=Function.prototype,o=r(i.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=r(u.exec);t&&!n&&e(i,"name",{configurable:!0,get:function(){try{return f(u,o(this))[1]}catch(t){return""}}})}();var ge,me,be,we={};!function(){if(be)return we;be=1;var t=oe(),n=qn(),r=function(){if(me)return ge;me=1;var t=oe(),n=ue();return ge=t?{}.toString:function(){return"[object "+n(this)+"]"}}();t||n(Object.prototype,"toString",r,{unsafe:!0})}();var Oe,Se,xe={};function Ee(){if(Se)return Oe;Se=1;var t=ue(),n=String;return Oe=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return n(r)}}var _e,je,Ie,Pe,Te,Ae,Ce,Re={};function Ne(){if(je)return _e;je=1;var t=gr(),n=mr();return _e=Object.keys||function(r){return t(r,n)}}function Me(){if(Ie)return Re;Ie=1;var t=g(),n=On(),r=xn(),e=Sn(),i=dt(),o=Ne();return Re.f=t&&!n?Object.defineProperties:function(t,n){e(t);for(var u,f=i(n),c=o(n),a=c.length,s=0;a>s;)r.f(t,u=c[s++],f[u]);return t},Re}function Ve(){if(Te)return Pe;Te=1;var t=mt();return Pe=t("document","documentElement")}function ke(){if(Ce)return Ae;Ce=1;var t,n=Sn(),r=Me(),e=mr(),i=Wn(),o=Ve(),u=sn(),f=Gn(),c="prototype",a="script",s=f("IE_PROTO"),l=function(){},v=function(t){return"<"+a+">"+t+"</"+a+">"},p=function(t){t.write(v("")),t.close();var n=t.parentWindow.Object;return t=null,n},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var n,r,i;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),i="java"+a+":",r.style.display="none",o.appendChild(r),r.src=String(i),(n=r.contentWindow.document).open(),n.write(v("document.F=Object")),n.close(),n.F):p(t);for(var f=e.length;f--;)delete h[c][e[f]];return h()};return i[s]=!0,Ae=Object.create||function(t,e){var i;return null!==t?(l[c]=n(t),i=new l,l[c]=null,i[s]=t):i=h(),void 0===e?i:r.f(i,e)}}var De,$e,Le,Fe={};function ze(){if($e)return De;$e=1;var t=st();return De=t([].slice)}function Be(){if(Le)return Fe;Le=1;var t=lt(),n=dt(),r=br().f,e=ze(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Fe.f=function(o){return i&&"Window"===t(o)?function(t){try{return r(t)}catch(t){return e(i)}}(o):r(n(o))},Fe}var Ue,Ge,We,Ke,Je,qe,He,Ye,Xe,Qe,Ze={};function ti(){if(Ue)return Ze;Ue=1;var t=fn();return Ze.f=t,Ze}function ni(){if(We)return Ge;We=1;var t=u();return Ge=t}function ri(){if(Je)return Ke;Je=1;var t=ni(),n=on(),r=ti(),e=xn().f;return Ke=function(i){var o=t.Symbol||(t.Symbol={});n(o,i)||e(o,i,{value:r.f(i)})}}function ei(){if(Xe)return Ye;Xe=1;var t=xn().f,n=on(),r=fn()("toStringTag");return Ye=function(e,i,o){e&&!o&&(e=e.prototype),e&&!n(e,r)&&t(e,r,{configurable:!0,value:i})}}var ii,oi,ui,fi={};function ci(){if(oi)return ii;oi=1;var t=St();return ii=t&&!!Symbol.for&&!!Symbol.keyFor}var ai,si,li,vi,pi,hi,di,yi,gi,mi,bi={},wi={};function Oi(){if(li)return si;li=1;var t=m(),n=Function.prototype,r=n.apply,e=n.call;return si="object"==typeof Reflect&&Reflect.apply||(t?e.bind(r):function(){return e.apply(r,arguments)}),si}var Si,xi,Ei={};xi||(xi=1,function(){if(Qe)return xe;Qe=1;var t=re(),n=u(),r=b(),e=st(),i=Zt(),o=g(),f=St(),c=y(),a=on(),s=bt(),l=Sn(),v=dt(),p=an(),h=Ee(),d=at(),m=ke(),w=Ne(),O=br(),S=Be(),x=Zr(),E=vn(),_=xn(),j=Me(),I=ct(),P=qn(),T=ye(),A=rn(),C=Gn(),R=Wn(),N=un(),M=fn(),V=ti(),k=ri(),D=function(){if(He)return qe;He=1;var t=b(),n=mt(),r=fn(),e=qn();return qe=function(){var i=n("Symbol"),o=i&&i.prototype,u=o&&o.valueOf,f=r("toPrimitive");o&&!o[f]&&e(o,f,function(n){return t(u,this)},{arity:1})}}(),$=ei(),L=Kn(),F=se().forEach,z=C("hidden"),B="Symbol",U="prototype",G=L.set,W=L.getterFor(B),K=Object[U],J=n.Symbol,q=J&&J[U],H=n.RangeError,Y=n.TypeError,X=n.QObject,Q=E.f,Z=_.f,tt=S.f,nt=I.f,rt=e([].push),et=A("symbols"),it=A("op-symbols"),ot=A("wks"),ut=!X||!X[U]||!X[U].findChild,ft=function(t,n,r){var e=Q(K,n);return e&&delete K[n],Z(t,n,r),e&&t!==K&&Z(K,n,e),t},lt=o&&c(function(){return 7!==m(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?ft:Z,vt=function(t,n){var r=et[t]=m(q);return G(r,{type:B,tag:t,description:n}),o||(r.description=n),r},pt=function(t,n,r){t===K&&pt(it,n,r),l(t);var e=p(n);return l(r),a(et,e)?(("enumerable"in r?!r.enumerable:!a(t,e)||a(t,z)&&t[z][e])?(a(t,z)||Z(t,z,d(1,m(null))),t[z][e]=!0):(a(t,z)&&t[z][e]&&(t[z][e]=!1),r=m(r,{enumerable:d(0,!1)})),lt(t,e,r)):Z(t,e,r)},ht=function(t,n){l(t);var e=v(n),i=w(e).concat(Ot(e));return F(i,function(n){o&&!r(yt,e,n)||pt(t,n,e[n])}),t},yt=function(t){var n=p(t),e=r(nt,this,n);return!(this===K&&a(et,n)&&!a(it,n))&&(!(e||!a(this,n)||!a(et,n)||a(this,z)&&this[z][n])||e)},gt=function(t,n){var r=v(t),e=p(n);if(r!==K||!a(et,e)||a(it,e)){var i=Q(r,e);return!i||!a(et,e)||a(r,z)&&r[z][e]||(i.enumerable=!0),i}},wt=function(t){var n=tt(v(t)),r=[];return F(n,function(t){a(et,t)||a(R,t)||rt(r,t)}),r},Ot=function(t){var n=t===K,r=tt(n?it:v(t)),e=[];return F(r,function(t){!a(et,t)||n&&!a(K,t)||rt(e,et[t])}),e};f||(J=function(){if(s(q,this))throw new Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,e=N(t),i=function(t){var o=void 0===this?n:this;o===K&&r(i,it,t),a(o,z)&&a(o[z],e)&&(o[z][e]=!1);var u=d(1,t);try{lt(o,e,u)}catch(t){if(!(t instanceof H))throw t;ft(o,e,u)}};return o&&ut&<(K,e,{configurable:!0,set:i}),vt(e,t)},P(q=J[U],"toString",function(){return W(this).tag}),P(J,"withoutSetter",function(t){return vt(N(t),t)}),I.f=yt,_.f=pt,j.f=ht,E.f=gt,O.f=S.f=wt,x.f=Ot,V.f=function(t){return vt(M(t),t)},o&&(T(q,"description",{configurable:!0,get:function(){return W(this).description}}),i||P(K,"propertyIsEnumerable",yt,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!f,sham:!f},{Symbol:J}),F(w(ot),function(t){k(t)}),t({target:B,stat:!0,forced:!f},{useSetter:function(){ut=!0},useSimple:function(){ut=!1}}),t({target:"Object",stat:!0,forced:!f,sham:!o},{create:function(t,n){return void 0===n?m(t):ht(m(t),n)},defineProperty:pt,defineProperties:ht,getOwnPropertyDescriptor:gt}),t({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:wt}),D(),$(J,B),R[z]=!0}(),function(){if(ui)return fi;ui=1;var t=re(),n=mt(),r=on(),e=Ee(),i=rn(),o=ci(),u=i("string-to-symbol-registry"),f=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{for:function(t){var i=e(t);if(r(u,i))return u[i];var o=n("Symbol")(i);return u[i]=o,f[o]=i,o}})}(),function(){if(ai)return bi;ai=1;var t=re(),n=on(),r=Et(),e=_t(),i=rn(),o=ci(),u=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{keyFor:function(t){if(!r(t))throw new TypeError(e(t)+" is not a symbol");if(n(u,t))return u[t]}})}(),function(){if(mi)return wi;mi=1;var t=re(),n=mt(),r=Oi(),e=b(),i=st(),o=y(),u=ie(),f=yt(),c=function(){if(pi)return vi;pi=1;var t=gt(),n=Kn().get;return vi=function(r){if(!t(r))return!1;var e=n(r);return!!e&&"RawJSON"===e.type}}(),a=Et(),s=lt(),l=Ee(),v=ze(),p=function(){if(di)return hi;di=1;var t=st(),n=on(),r=SyntaxError,e=parseInt,i=String.fromCharCode,o=t("".charAt),u=t("".slice),f=t(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},a=/^[\da-f]{4}$/i,s=/^[\u0000-\u001F]$/;return hi=function(t,l){for(var v=!0,p="";l<t.length;){var h=o(t,l);if("\\"===h){var d=u(t,l,l+2);if(n(c,d))p+=c[d],l+=2;else{if("\\u"!==d)throw new r('Unknown escape sequence: "'+d+'"');var y=u(t,l+=2,l+4);if(!f(a,y))throw new r("Bad Unicode escape at: "+l);p+=i(e(y,16)),l+=4}}else{if('"'===h){v=!1,l++;break}if(f(s,h))throw new r("Bad control character in string literal at: "+l);p+=h,l++}}if(v)throw new r("Unterminated string at: "+l);return{value:p,end:l}}}(),h=un(),d=St(),g=function(){if(gi)return yi;gi=1;var t=y();return yi=!t(function(){var t="9007199254740993",n=JSON.rawJSON(t);return!JSON.isRawJSON(n)||JSON.stringify(n)!==t})}(),m=String,w=n("JSON","stringify"),O=i(/./.exec),S=i("".charAt),x=i("".charCodeAt),E=i("".replace),_=i("".slice),j=i([].push),I=i(1.1.toString),P=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,C=h(),R=C.length,N=!d||o(function(){var t=n("Symbol")("stringify detection");return"[null]"!==w([t])||"{}"!==w({a:t})||"{}"!==w(Object(t))}),M=o(function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")}),V=N?function(t,n){var i=v(arguments),o=D(n);if(f(o)||void 0!==t&&!a(t))return i[1]=function(t,n){if(f(o)&&(n=e(o,this,m(t),n)),!a(n))return n},r(w,null,i)}:w,k=function(t,n,r){var e=S(r,n-1),i=S(r,n+1);return O(T,t)&&!O(A,i)||O(A,t)&&!O(T,e)?"\\u"+I(x(t,0),16):t},D=function(t){if(f(t))return t;if(u(t)){for(var n=t.length,r=[],e=0;e<n;e++){var i=t[e];"string"==typeof i?j(r,i):"number"!=typeof i&&"Number"!==s(i)&&"String"!==s(i)||j(r,l(i))}var o=r.length,c=!0;return function(t,n){if(c)return c=!1,n;if(u(this))return n;for(var e=0;e<o;e++)if(r[e]===t)return n}}};w&&t({target:"JSON",stat:!0,arity:3,forced:N||M||!g},{stringify:function(t,n,r){var i=D(n),o=[],u=V(t,function(t,n){var r=f(i)?e(i,this,m(t),n):n;return!g&&c(r)?C+(j(o,r.rawJSON)-1):r},r);if("string"!=typeof u)return u;if(M&&(u=E(u,P,k)),g)return u;for(var a="",s=u.length,l=0;l<s;l++){var v=S(u,l);if('"'===v){var h=p(u,++l).end-1,d=_(u,l,h);a+=_(d,0,R)===C?o[_(d,R)]:'"'+d+'"',l=h}else a+=v}return a}})}(),function(){if(Si)return Ei;Si=1;var t=re(),n=St(),r=y(),e=Zr(),i=en();t({target:"Object",stat:!0,forced:!n||r(function(){e.f(1)})},{getOwnPropertySymbols:function(t){var n=e.f;return n?n(i(t)):[]}})}());var _i,ji,Ii,Pi={};!function(){if(_i)return Pi;_i=1;var t=re(),n=g(),r=u(),e=b(),i=st(),o=on(),f=yt(),c=bt(),a=Ee(),s=ye(),l=te(),v=r.Symbol,p=v&&v.prototype;if(n&&f(v)&&(!("description"in p)||void 0!==v().description)){var h={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:a(arguments[0]),n=c(p,this)?new v(t):void 0===t?v():v(t);return""===t&&(h[n]=!0),n};l(d,v);var y=d.for;d.for={for:function(t){var n=a(t),r=e(y,this,n);return""===n&&(h[r]=!0),r}}.for,d.prototype=p,p.constructor=d;var m="Symbol(description detection)"===String(v("description detection")),w=i(p.valueOf),O=i(p.toString),S=/^Symbol\((.*)\)[^)]+$/,x=i("".replace),E=i("".slice);s(p,"description",{configurable:!0,get:function(){var t=w(this);if(o(h,t))return"";var n=O(t),r=m?E(n,7,-1):x(n,S,"$1");return""===r?void 0:r}}),t({global:!0,constructor:!0,forced:!0},{Symbol:d})}}(),ji||(ji=1,ri()("asyncIterator")),Ii||(Ii=1,ri()("iterator"));var Ti,Ai,Ci,Ri,Ni,Mi,Vi,ki,Di,$i,Li,Fi,zi,Bi,Ui,Gi,Wi,Ki,Ji,qi,Hi,Yi,Xi,Qi,Zi,to,no,ro,eo,io,oo,uo={};function fo(){if(Ri)return Ci;Ri=1;var t=g(),n=ie(),r=TypeError,e=Object.getOwnPropertyDescriptor,i=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return Ci=i?function(t,i){if(n(t)&&!e(t,"length").writable)throw new r("Cannot set read only .length");return t.length=i}:function(t,n){return t.length=n}}function co(){if(Vi)return Mi;Vi=1;var t=fn(),n=ke(),r=xn().f,e=t("unscopables"),i=Array.prototype;return void 0===i[e]&&r(i,e,{configurable:!0,value:n(null)}),Mi=function(t){i[e][t]=!0}}function ao(){return Di?ki:(Di=1,ki={})}function so(){if(zi)return Fi;zi=1;var t=on(),n=yt(),r=en(),e=Gn(),i=function(){if(Li)return $i;Li=1;var t=y();return $i=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),o=e("IE_PROTO"),u=Object,f=u.prototype;return Fi=i?u.getPrototypeOf:function(e){var i=r(e);if(t(i,o))return i[o];var c=i.constructor;return n(c)&&i instanceof c?c.prototype:i instanceof u?f:null}}function lo(){if(Ui)return Bi;Ui=1;var t,n,r,e=y(),i=yt(),o=gt(),u=ke(),f=so(),c=qn(),a=fn(),s=Zt(),l=a("iterator"),v=!1;return[].keys&&("next"in(r=[].keys())?(n=f(f(r)))!==Object.prototype&&(t=n):v=!0),!o(t)||e(function(){var n={};return t[l].call(n)!==n})?t={}:s&&(t=u(t)),i(t[l])||c(t,l,function(){return this}),Bi={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:v}}function vo(){if(Xi)return Yi;Xi=1;var t=function(){if(Hi)return qi;Hi=1;var t=gt();return qi=function(n){return t(n)||null===n}}(),n=String,r=TypeError;return Yi=function(e){if(t(e))return e;throw new r("Can't set "+n(e)+" as a prototype")}}function po(){if(Zi)return Qi;Zi=1;var t=function(){if(Ji)return Ki;Ji=1;var t=st(),n=jt();return Ki=function(r,e,i){try{return t(n(Object.getOwnPropertyDescriptor(r,e)[i]))}catch(t){}}}(),n=gt(),r=ht(),e=vo();return Qi=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,u={};try{(i=t(Object.prototype,"__proto__","set"))(u,[]),o=u instanceof Array}catch(t){}return function(t,u){return r(t),e(u),n(t)?(o?i(t,u):t.__proto__=u,t):t}}():void 0)}function ho(){if(no)return to;no=1;var t=re(),n=b(),r=Zt(),e=zn(),i=yt(),o=function(){if(Wi)return Gi;Wi=1;var t=lo().IteratorPrototype,n=ke(),r=at(),e=ei(),i=ao(),o=function(){return this};return Gi=function(u,f,c,a){var s=f+" Iterator";return u.prototype=n(t,{next:r(+!a,c)}),e(u,s,!1,!0),i[s]=o,u}}(),u=so(),f=po(),c=ei(),a=En(),s=qn(),l=fn(),v=ao(),p=lo(),h=e.PROPER,d=e.CONFIGURABLE,y=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),w="keys",O="values",S="entries",x=function(){return this};return to=function(e,l,p,b,E,_,j){o(p,l,b);var I,P,T,A=function(t){if(t===E&&V)return V;if(!g&&t&&t in N)return N[t];switch(t){case w:case O:case S:return function(){return new p(this,t)}}return function(){return new p(this)}},C=l+" Iterator",R=!1,N=e.prototype,M=N[m]||N["@@iterator"]||E&&N[E],V=!g&&M||A(E),k="Array"===l&&N.entries||M;if(k&&(I=u(k.call(new e)))!==Object.prototype&&I.next&&(r||u(I)===y||(f?f(I,y):i(I[m])||s(I,m,x)),c(I,C,!0,!0),r&&(v[C]=x)),h&&E===O&&M&&M.name!==O&&(!r&&d?a(N,"name",O):(R=!0,V=function(){return n(M,this)})),E)if(P={values:A(O),keys:_?V:A(w),entries:A(S)},j)for(T in P)(g||R||!(T in N))&&s(N,T,P[T]);else t({target:l,proto:!0,forced:g||R},P);return r&&!j||N[m]===V||s(N,m,V,{name:E}),v[l]=V,P}}function yo(){return eo?ro:(eo=1,ro=function(t,n){return{value:t,done:n}})}function go(){if(oo)return io;oo=1;var t=dt(),n=co(),r=ao(),e=Kn(),i=xn().f,o=ho(),u=yo(),f=Zt(),c=g(),a="Array Iterator",s=e.set,l=e.getterFor(a);io=o(Array,"Array",function(n,r){s(this,{type:a,target:t(n),index:0,kind:r})},function(){var t=l(this),n=t.target,r=t.index++;if(!n||r>=n.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(n[r],!1)}return u([r,n[r]],!1)},"values");var v=r.Arguments=r.Array;if(n("keys"),n("values"),n("entries"),!f&&c&&"values"!==v.name)try{i(v,"name",{value:"values"})}catch(t){}return io}!function(){if(Ni)return uo;Ni=1;var t=re(),n=y(),r=ie(),e=gt(),i=en(),o=yr(),u=function(){if(Ai)return Ti;Ai=1;var t=TypeError;return Ti=function(n){if(n>9007199254740991)throw new t("Maximum allowed index exceeded");return n}}(),f=ae(),c=fo(),a=ce(),s=le(),l=fn(),v=Ot(),p=l("isConcatSpreadable"),h=v>=51||!n(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),d=function(t){if(!e(t))return!1;var n=t[p];return void 0!==n?!!n:r(t)};t({target:"Array",proto:!0,arity:1,forced:!h||!s("concat")},{concat:function(t){var n,r,e,s,l,v=i(this),p=a(v,0),h=0;for(n=-1,e=arguments.length;n<e;n++)if(d(l=-1===n?v:arguments[n]))for(s=o(l),u(h+s),r=0;r<s;r++,h++)r in l&&f(p,h,l[r]);else u(h+1),f(p,h++,l);return c(p,h),p}})}(),go();var mo,bo={};!function(){if(mo)return bo;mo=1;var t=re(),n=ie(),r=fe(),e=gt(),i=hr(),o=yr(),u=dt(),f=ae(),c=fo(),a=fn(),s=le(),l=ze(),v=s("slice"),p=a("species"),h=Array,d=Math.max;t({target:"Array",proto:!0,forced:!v},{slice:function(t,a){var s,v,y,g=u(this),m=o(g),b=i(t,m),w=i(void 0===a?m:a,m);if(n(g)&&(s=g.constructor,(r(s)&&(s===h||n(s.prototype))||e(s)&&null===(s=s[p]))&&(s=void 0),s===h||void 0===s))return l(g,b,w);for(v=new(void 0===s?h:s)(d(w-b,0)),y=0;b<w;b++,y++)b in g&&f(v,y,g[b]);return c(v,y),v}})}();var wo,Oo,So,xo={};!function(){if(So)return xo;So=1;var t=re(),n=function(){if(Oo)return wo;Oo=1;var t=g(),n=st(),r=b(),e=y(),i=Ne(),o=Zr(),u=ct(),f=en(),c=vt(),a=Object.assign,s=Object.defineProperty,l=n([].concat);return wo=!a||e(function(){if(t&&1!==a({b:1},a(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var n={},r={},e=Symbol("assign detection"),o="abcdefghijklmnopqrst";return n[e]=7,o.split("").forEach(function(t){r[t]=t}),7!==a({},n)[e]||i(a({},r)).join("")!==o})?function(n,e){for(var a=f(n),s=arguments.length,v=1,p=o.f,h=u.f;s>v;)for(var d,y=c(arguments[v++]),g=p?l(i(y),p(y)):i(y),m=g.length,b=0;m>b;)d=g[b++],t&&!r(h,y,d)||(a[d]=y[d]);return a}:a,wo}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})}();var Eo,_o={};!function(){if(Eo)return _o;Eo=1;var t=re(),n=y(),r=dt(),e=vn().f,i=g();t({target:"Object",stat:!0,forced:!i||n(function(){e(1)}),sham:!i},{getOwnPropertyDescriptor:function(t,n){return e(r(t),n)}})}();var jo,Io={};!function(){if(jo)return Io;jo=1;var t=re(),n=y(),r=Be().f;t({target:"Object",stat:!0,forced:n(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:r})}();var Po,To,Ao,Co,Ro,No,Mo,Vo,ko,Do,$o,Lo,Fo,zo,Bo,Uo,Go,Wo,Ko,Jo,qo,Ho,Yo,Xo,Qo,Zo,tu,nu,ru,eu,iu,ou,uu,fu,cu,au,su={};function lu(){if(To)return Po;To=1;var t=u(),n=wt(),r=lt(),e=function(t){return n.slice(0,t.length)===t};return Po=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function vu(){if(Co)return Ao;Co=1;var t=lu();return Ao="NODE"===t}function pu(){if(No)return Ro;No=1;var t=mt(),n=ye(),r=fn(),e=g(),i=r("species");return Ro=function(r){var o=t(r);e&&o&&!o[i]&&n(o,i,{configurable:!0,get:function(){return this}})}}function hu(){if(Vo)return Mo;Vo=1;var t=bt(),n=TypeError;return Mo=function(r,e){if(t(e,r))return r;throw new n("Incorrect invocation")}}function du(){if(Lo)return $o;Lo=1;var t=Sn(),n=function(){if(Do)return ko;Do=1;var t=fe(),n=_t(),r=TypeError;return ko=function(e){if(t(e))return e;throw new r(n(e)+" is not a constructor")}}(),r=pt(),e=fn()("species");return $o=function(i,o){var u,f=t(i).constructor;return void 0===f||r(u=t(f)[e])?o:n(u)}}function yu(){if(Uo)return Bo;Uo=1;var t=wt();return Bo=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}function gu(){if(Wo)return Go;Wo=1;var t,n,r,e,i=u(),o=Oi(),f=ee(),c=yt(),a=on(),s=y(),l=Ve(),v=ze(),p=sn(),h=function(){if(zo)return Fo;zo=1;var t=TypeError;return Fo=function(n,r){if(n<r)throw new t("Not enough arguments");return n}}(),d=yu(),g=vu(),m=i.setImmediate,b=i.clearImmediate,w=i.process,O=i.Dispatch,S=i.Function,x=i.MessageChannel,E=i.String,_=0,j={},I="onreadystatechange";s(function(){t=i.location});var P=function(t){if(a(j,t)){var n=j[t];delete j[t],n()}},T=function(t){return function(){P(t)}},A=function(t){P(t.data)},C=function(n){i.postMessage(E(n),t.protocol+"//"+t.host)};return m&&b||(m=function(t){h(arguments.length,1);var r=c(t)?t:S(t),e=v(arguments,1);return j[++_]=function(){o(r,void 0,e)},n(_),_},b=function(t){delete j[t]},g?n=function(t){w.nextTick(T(t))}:O&&O.now?n=function(t){O.now(T(t))}:x&&!d?(e=(r=new x).port2,r.port1.onmessage=A,n=f(e.postMessage,e)):i.addEventListener&&c(i.postMessage)&&!i.importScripts&&t&&"file:"!==t.protocol&&!s(C)?(n=C,i.addEventListener("message",A,!1)):n=I in p("script")?function(t){l.appendChild(p("script"))[I]=function(){l.removeChild(this),P(t)}}:function(t){setTimeout(T(t),0)}),Go={set:m,clear:b}}function mu(){if(Jo)return Ko;Jo=1;var t=u(),n=g(),r=Object.getOwnPropertyDescriptor;return Ko=function(e){if(!n)return t[e];var i=r(t,e);return i&&i.value}}function bu(){if(Ho)return qo;Ho=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var n={item:t,next:null},r=this.tail;r?r.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},qo=t}function wu(){return ou?iu:(ou=1,iu=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function Ou(){if(fu)return uu;fu=1;var t=u();return uu=t.Promise}function Su(){if(au)return cu;au=1;var t=u(),n=Ou(),r=yt(),e=ne(),i=Bn(),o=fn(),f=lu(),c=Zt(),a=Ot(),s=n&&n.prototype,l=o("species"),v=!1,p=r(t.PromiseRejectionEvent),h=e("Promise",function(){var t=i(n),r=t!==String(n);if(!r&&66===a)return!0;if(c&&(!s.catch||!s.finally))return!0;if(!a||a<51||!/native code/.test(t)){var e=new n(function(t){t(1)}),o=function(t){t(function(){},function(){})};if((e.constructor={})[l]=o,!(v=e.then(function(){})instanceof o))return!0}return!(r||"BROWSER"!==f&&"DENO"!==f||p)});return cu={CONSTRUCTOR:h,REJECTION_EVENT:p,SUBCLASSING:v}}var xu,Eu,_u={};function ju(){if(xu)return _u;xu=1;var t=jt(),n=TypeError,r=function(r){var e,i;this.promise=new r(function(t,r){if(void 0!==e||void 0!==i)throw new n("Bad Promise constructor");e=t,i=r}),this.resolve=t(e),this.reject=t(i)};return _u.f=function(t){return new r(t)},_u}var Iu,Pu,Tu,Au,Cu,Ru,Nu,Mu,Vu,ku,Du,$u,Lu,Fu,zu,Bu={};function Uu(){if(Pu)return Iu;Pu=1;var t=fn(),n=ao(),r=t("iterator"),e=Array.prototype;return Iu=function(t){return void 0!==t&&(n.Array===t||e[r]===t)}}function Gu(){if(Au)return Tu;Au=1;var t=ue(),n=It(),r=pt(),e=ao(),i=fn()("iterator");return Tu=function(o){if(!r(o))return n(o,i)||n(o,"@@iterator")||e[t(o)]}}function Wu(){if(Ru)return Cu;Ru=1;var t=b(),n=jt(),r=Sn(),e=_t(),i=Gu(),o=TypeError;return Cu=function(u,f){var c=arguments.length<2?i(u):f;if(n(c))return r(t(c,u));throw new o(e(u)+" is not iterable")},Cu}function Ku(){if(Mu)return Nu;Mu=1;var t=b(),n=Sn(),r=It();return Nu=function(e,i,o){var u,f;n(e);try{if(!(u=r(e,"return"))){if("throw"===i)throw o;return o}u=t(u,e)}catch(t){f=!0,u=t}if("throw"===i)throw o;if(f)throw u;return n(u),o}}function Ju(){if(ku)return Vu;ku=1;var t=ee(),n=b(),r=Sn(),e=_t(),i=Uu(),o=yr(),u=bt(),f=Wu(),c=Gu(),a=Ku(),s=TypeError,l=function(t,n){this.stopped=t,this.result=n},v=l.prototype;return Vu=function(p,h,d){var y,g,m,b,w,O,S,x=d&&d.that,E=!(!d||!d.AS_ENTRIES),_=!(!d||!d.IS_RECORD),j=!(!d||!d.IS_ITERATOR),I=!(!d||!d.INTERRUPTED),P=t(h,x),T=function(t){var n=y;return y=void 0,n&&a(n,"normal"),new l(!0,t)},A=function(t){return E?(r(t),I?P(t[0],t[1],T):P(t[0],t[1])):I?P(t,T):P(t)};if(_)y=p.iterator;else if(j)y=p;else{if(!(g=c(p)))throw new s(e(p)+" is not iterable");if(i(g)){for(m=0,b=o(p);b>m;m++)if((w=A(p[m]))&&u(v,w))return w;return new l(!1)}y=f(p,g)}for(O=_?p.next:y.next;!(S=n(O,y)).done;){var C=S.value;try{w=A(C)}catch(t){if(!y)throw t;a(y,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function qu(){if($u)return Du;$u=1;var t=fn()("iterator"),n=!1;try{var r=0,e={next:function(){return{done:!!r++}},return:function(){n=!0}};e[t]=function(){return this},Array.from(e,function(){throw 2})}catch(t){}return Du=function(r,e){try{if(!e&&!n)return!1}catch(t){return!1}var i=!1;try{var o={};o[t]=function(){return{next:function(){return{done:i=!0}}}},r(o)}catch(t){}return i}}function Hu(){if(Fu)return Lu;Fu=1;var t=Ou(),n=qu(),r=Su().CONSTRUCTOR;return Lu=r||!n(function(n){t.all(n).then(void 0,function(){})})}var Yu,Xu,Qu,Zu,tf,nf,rf,ef={},of={},uf={},ff={};function cf(){if(tf)return Zu;tf=1;var t=Sn(),n=gt(),r=ju();return Zu=function(e,i){if(t(e),n(i)&&i.constructor===e)return i;var o=r.f(e);return(0,o.resolve)(i),o.promise}}rf||(rf=1,function(){if(Eu)return su;Eu=1;var t,n,r,e,i=re(),o=Zt(),f=vu(),c=u(),a=ni(),s=b(),l=qn(),v=po(),p=ei(),h=pu(),d=jt(),y=yt(),g=gt(),m=hu(),w=du(),O=gu().set,S=function(){if(nu)return tu;nu=1;var t,n,r,e,i,o=u(),f=mu(),c=ee(),a=gu().set,s=bu(),l=yu(),v=function(){if(Xo)return Yo;Xo=1;var t=wt();return Yo=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),p=function(){if(Zo)return Qo;Zo=1;var t=wt();return Qo=/web0s(?!.*chrome)/i.test(t)}(),h=vu(),d=o.MutationObserver||o.WebKitMutationObserver,y=o.document,g=o.process,m=o.Promise,b=f("queueMicrotask");if(!b){var w=new s,O=function(){var n,r;for(h&&(n=g.domain)&&n.exit();r=w.get();)try{r()}catch(n){throw w.head&&t(),n}n&&n.enter()};l||h||p||!d||!y?!v&&m&&m.resolve?((e=m.resolve(void 0)).constructor=m,i=c(e.then,e),t=function(){i(O)}):h?t=function(){g.nextTick(O)}:(a=c(a,o),t=function(){a(O)}):(n=!0,r=y.createTextNode(""),new d(O).observe(r,{characterData:!0}),t=function(){r.data=n=!n}),b=function(n){w.head||t(),w.add(n)}}return tu=b}(),x=(eu||(eu=1,ru=function(t,n){try{1===arguments.length?console.error(t):console.error(t,n)}catch(t){}}),ru),E=wu(),_=bu(),j=Kn(),I=Ou(),P=Su(),T=ju(),A="Promise",C=P.CONSTRUCTOR,R=P.REJECTION_EVENT,N=P.SUBCLASSING,M=j.getterFor(A),V=j.set,k=I&&I.prototype,D=I,$=k,L=c.TypeError,F=c.document,z=c.process,B=T.f,U=B,G=!!(F&&F.createEvent&&c.dispatchEvent),W="unhandledrejection",K=function(t){var n;return!(!g(t)||!y(n=t.then))&&n},J=function(t,n){var r,e,i,o=n.value,u=1===n.state,f=u?t.ok:t.fail,c=t.resolve,a=t.reject,l=t.domain;try{f?(u||(2===n.rejection&&Q(n),n.rejection=1),!0===f?r=o:(l&&l.enter(),r=f(o),l&&(l.exit(),i=!0)),r===t.promise?a(new L("Promise-chain cycle")):(e=K(r))?s(e,r,c,a):c(r)):a(o)}catch(t){l&&!i&&l.exit(),a(t)}},q=function(t,n){t.notified||(t.notified=!0,S(function(){for(var r,e=t.reactions;r=e.get();)J(r,t);t.notified=!1,n&&!t.rejection&&Y(t)}))},H=function(t,n,r){var e,i;G?((e=F.createEvent("Event")).promise=n,e.reason=r,e.initEvent(t,!1,!0),c.dispatchEvent(e)):e={promise:n,reason:r},!R&&(i=c["on"+t])?i(e):t===W&&x("Unhandled promise rejection",r)},Y=function(t){s(O,c,function(){var n,r=t.facade,e=t.value;if(X(t)&&(n=E(function(){f?z.emit("unhandledRejection",e,r):H(W,r,e)}),t.rejection=f||X(t)?2:1,n.error))throw n.value})},X=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){s(O,c,function(){var n=t.facade;f?z.emit("rejectionHandled",n):H("rejectionhandled",n,t.value)})},Z=function(t,n,r){return function(e){t(n,e,r)}},tt=function(t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,q(t,!0))},nt=function(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw new L("Promise can't be resolved itself");var e=K(n);e?S(function(){var r={done:!1};try{s(e,n,Z(nt,r,t),Z(tt,r,t))}catch(n){tt(r,n,t)}}):(t.value=n,t.state=1,q(t,!1))}catch(n){tt({done:!1},n,t)}}};if(C&&($=(D=function(n){m(this,$),d(n),s(t,this);var r=M(this);try{n(Z(nt,r),Z(tt,r))}catch(t){tt(r,t)}}).prototype,(t=function(t){V(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=l($,"then",function(t,n){var r=M(this),e=B(w(this,D));return r.parent=!0,e.ok=!y(t)||t,e.fail=y(n)&&n,e.domain=f?z.domain:void 0,0===r.state?r.reactions.add(e):S(function(){J(e,r)}),e.promise}),n=function(){var n=new t,r=M(n);this.promise=n,this.resolve=Z(nt,r),this.reject=Z(tt,r)},T.f=B=function(t){return t===D||t===r?new n(t):U(t)},!o&&y(I)&&k!==Object.prototype)){e=k.then,N||l(k,"then",function(t,n){var r=this;return new D(function(t,n){s(e,r,t,n)}).then(t,n)},{unsafe:!0});try{delete k.constructor}catch(t){}v&&v(k,$)}i({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:D}),r=a.Promise,p(D,A,!1,!0),h(A)}(),function(){if(zu)return Bu;zu=1;var t=re(),n=b(),r=jt(),e=ju(),i=wu(),o=Ju();t({target:"Promise",stat:!0,forced:Hu()},{all:function(t){var u=this,f=e.f(u),c=f.resolve,a=f.reject,s=i(function(){var e=r(u.resolve),i=[],f=0,s=1;o(t,function(t){var r=f++,o=!1;s++,n(e,u,t).then(function(t){o||(o=!0,i[r]=t,--s||c(i))},a)}),--s||c(i)});return s.error&&a(s.value),f.promise}})}(),function(){if(Yu)return ef;Yu=1;var t=re(),n=Zt(),r=Su().CONSTRUCTOR,e=Ou(),i=mt(),o=yt(),u=qn(),f=e&&e.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!n&&o(e)){var c=i("Promise").prototype.catch;f.catch!==c&&u(f,"catch",c,{unsafe:!0})}}(),function(){if(Xu)return of;Xu=1;var t=re(),n=b(),r=jt(),e=ju(),i=wu(),o=Ju();t({target:"Promise",stat:!0,forced:Hu()},{race:function(t){var u=this,f=e.f(u),c=f.reject,a=i(function(){var e=r(u.resolve);o(t,function(t){n(e,u,t).then(f.resolve,c)})});return a.error&&c(a.value),f.promise}})}(),function(){if(Qu)return uf;Qu=1;var t=re(),n=ju();t({target:"Promise",stat:!0,forced:Su().CONSTRUCTOR},{reject:function(t){var r=n.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(nf)return ff;nf=1;var t=re(),n=mt(),r=Zt(),e=Ou(),i=Su().CONSTRUCTOR,o=cf(),u=n("Promise"),f=r&&!i;t({target:"Promise",stat:!0,forced:r||i},{resolve:function(t){return o(f&&this===u?e:this,t)}})}());var af,sf,lf,vf,pf,hf,df,yf,gf,mf,bf,wf={};function Of(){if(sf)return af;sf=1;var t=Sn();return af=function(){var n=t(this),r="";return n.hasIndices&&(r+="d"),n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.unicodeSets&&(r+="v"),n.sticky&&(r+="y"),r}}function Sf(){if(vf)return lf;vf=1;var t=y(),n=u().RegExp,r=t(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=r||t(function(){return!n("a","y").sticky}),i=r||t(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return lf={BROKEN_CARET:i,MISSED_STICKY:e,UNSUPPORTED_Y:r}}function xf(){if(mf)return gf;mf=1;var t,n,r=b(),e=st(),i=Ee(),o=Of(),f=Sf(),c=rn(),a=ke(),s=Kn().get,l=function(){if(hf)return pf;hf=1;var t=y(),n=u().RegExp;return pf=t(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),v=function(){if(yf)return df;yf=1;var t=y(),n=u().RegExp;return df=t(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),p=c("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,d=h,g=e("".charAt),m=e("".indexOf),w=e("".replace),O=e("".slice),S=(n=/b*/g,r(h,t=/a/,"a"),r(h,n,"a"),0!==t.lastIndex||0!==n.lastIndex),x=f.BROKEN_CARET,E=void 0!==/()??/.exec("")[1],_=function(t,n){for(var r=t.groups=a(null),e=0;e<n.length;e++){var i=n[e];r[i[0]]=t[i[1]]}};return(S||E||x||l||v)&&(d=function(t){var n,e,u,f=this,c=s(f),a=i(t),l=c.raw;if(l)return l.lastIndex=f.lastIndex,n=r(d,l,a),f.lastIndex=l.lastIndex,n&&c.groups&&_(n,c.groups),n;var v=c.groups,y=x&&f.sticky,b=r(o,f),j=f.source,I=0,P=a;if(y){b=w(b,"y",""),-1===m(b,"g")&&(b+="g"),P=O(a,f.lastIndex);var T=f.lastIndex>0&&g(a,f.lastIndex-1);f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==T&&"\r"!==T&&"\u2028"!==T&&"\u2029"!==T)&&(j="(?: (?:"+j+"))",P=" "+P,I++),e=new RegExp("^(?:"+j+")",b)}E&&(e=new RegExp("^"+j+"$(?!\\s)",b)),S&&(u=f.lastIndex);var A=r(h,y?e:f,P);return y?A?(A.input=a,A[0]=O(A[0],I),A.index=f.lastIndex,f.lastIndex+=A[0].length):f.lastIndex=0:S&&A&&(f.lastIndex=f.global?A.index+A[0].length:u),E&&A&&A.length>1&&r(p,A[0],e,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(A[t]=void 0)}),A&&v&&_(A,v),A}),gf=d}function Ef(){if(bf)return wf;bf=1;var t=re(),n=xf();return t({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n}),wf}Ef();var _f,jf,If,Pf={};function Tf(){if(jf)return _f;jf=1;var t=st(),n=pr(),r=Ee(),e=ht(),i=t("".charAt),o=t("".charCodeAt),u=t("".slice),f=function(t){return function(f,c){var a,s,l=r(e(f)),v=n(c),p=l.length;return v<0||v>=p?t?"":void 0:(a=o(l,v))<55296||a>56319||v+1===p||(s=o(l,v+1))<56320||s>57343?t?i(l,v):a:t?u(l,v,v+2):s-56320+(a-55296<<10)+65536}};return _f={codeAt:f(!1),charAt:f(!0)}}!function(){if(If)return Pf;If=1;var t=Tf().charAt,n=Ee(),r=Kn(),e=ho(),i=yo(),o="String Iterator",u=r.set,f=r.getterFor(o);e(String,"String",function(t){u(this,{type:o,string:n(t),index:0})},function(){var n,r=f(this),e=r.string,o=r.index;return o>=e.length?i(void 0,!0):(n=t(e,o),r.index+=n.length,i(n,!1))})}();var Af,Cf,Rf,Nf,Mf,Vf,kf,Df,$f,Lf,Ff,zf,Bf,Uf={};function Gf(){if(Cf)return Af;Cf=1,Ef();var t=b(),n=qn(),r=xf(),e=y(),i=fn(),o=En(),u=i("species"),f=RegExp.prototype;return Af=function(c,a,s,l){var v=i(c),p=!e(function(){var t={};return t[v]=function(){return 7},7!==""[c](t)}),h=p&&!e(function(){var t=!1,n=/a/;if("split"===c){var r={};r[u]=function(){return n},(n={constructor:r,flags:""})[v]=/./[v]}return n.exec=function(){return t=!0,null},n[v](""),!t});if(!p||!h||s){var d=/./[v],y=a(v,""[c],function(n,e,i,o,u){var c=e.exec;return c===r||c===f.exec?p&&!u?{done:!0,value:t(d,e,i,o)}:{done:!0,value:t(n,i,e,o)}:{done:!1}});n(String.prototype,c,y[0]),n(f,v,y[1])}l&&o(f[v],"sham",!0)}}function Wf(){if(Nf)return Rf;Nf=1;var t=Tf().charAt;return Rf=function(n,r,e){return r+(e&&t(n,r).length||1)}}function Kf(){if(Lf)return $f;Lf=1;var t=b(),n=on(),r=bt(),e=function(){if(Df)return kf;Df=1;var t=u(),n=y(),r=t.RegExp,e=!n(function(){var t=!0;try{r(".","d")}catch(n){t=!1}var n={},e="",i=t?"dgimsy":"gimsy",o=function(t,r){Object.defineProperty(n,t,{get:function(){return e+=r,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in t&&(u.hasIndices="d"),u)o(f,u[f]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(n)!==i||e!==i});return kf={correct:e}}(),i=Of(),o=RegExp.prototype;return $f=e.correct?function(t){return t.flags}:function(u){return e.correct||!r(o,u)||n(u,"flags")?u.flags:t(i,u)}}function Jf(){if(zf)return Ff;zf=1;var t=b(),n=Sn(),r=yt(),e=lt(),i=xf(),o=TypeError;return Ff=function(u,f){var c=u.exec;if(r(c)){var a=t(c,u,f);return null!==a&&n(a),a}if("RegExp"===e(u))return t(i,u,f);throw new o("RegExp#exec called on incompatible receiver")}}!function(){if(Bf)return Uf;Bf=1;var t=Oi(),n=b(),r=st(),e=Gf(),i=y(),o=Sn(),u=yt(),f=gt(),c=pr(),a=dr(),s=Ee(),l=ht(),v=Wf(),p=It(),h=function(){if(Vf)return Mf;Vf=1;var t=st(),n=en(),r=Math.floor,e=t("".charAt),i=t("".replace),o=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;return Mf=function(t,c,a,s,l,v){var p=a+t.length,h=s.length,d=f;return void 0!==l&&(l=n(l),d=u),i(v,d,function(n,i){var u;switch(e(i,0)){case"$":return"$";case"&":return t;case"`":return o(c,0,a);case"'":return o(c,p);case"<":u=l[o(i,1,-1)];break;default:var f=+i;if(0===f)return n;if(f>h){var v=r(f/10);return 0===v?n:v<=h?void 0===s[v-1]?e(i,1):s[v-1]+e(i,1):n}u=s[f-1]}return void 0===u?"":u})}}(),d=Kf(),g=Jf(),m=fn()("replace"),w=Math.max,O=Math.min,S=r([].concat),x=r([].push),E=r("".indexOf),_=r("".slice),j=function(t){return void 0===t?t:String(t)},I="$0"==="a".replace(/./,"$0"),P=!!/./[m]&&""===/./[m]("a","$0");e("replace",function(r,e,i){var y=P?"$":"$0";return[function(t,r){var i=l(this),o=f(t)?p(t,m):void 0;return o?n(o,t,i,r):n(e,s(i),t,r)},function(n,r){var f=o(this),l=s(n),p=u(r);p||(r=s(r));var m=s(d(f));if("string"==typeof r&&!~E(r,y)&&!~E(r,"$<")&&!~E(m,"y")){var b=i(e,f,l,r);if(b.done)return b.value}var I,P=!!~E(m,"g");P&&(I=!!~E(m,"u")||!!~E(m,"v"),f.lastIndex=0);for(var T,A=[];null!==(T=g(f,l))&&(x(A,T),P);)""===s(T[0])&&(f.lastIndex=v(l,a(f.lastIndex),I));for(var C="",R=0,N=0;N<A.length;N++){for(var M,V=s((T=A[N])[0]),k=w(O(c(T.index),l.length),0),D=[],$=1;$<T.length;$++)x(D,j(T[$]));var L=T.groups;if(p){var F=S([V],D,k,l);void 0!==L&&x(F,L),M=s(t(r,void 0,F))}else M=h(V,l,k,D,L,r);k>=R&&(C+=_(l,R,k)+M,R=k+V.length)}return C+_(l,R)}]},!!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!I||P)}();var qf,Hf,Yf={};Hf||(Hf=1,function(){if(qf)return Yf;qf=1;var t=u(),n=ri(),r=xn().f,e=vn().f,i=t.Symbol;if(n("dispose"),i){var o=e(i,"dispose");o.enumerable&&o.configurable&&o.writable&&r(i,"dispose",{value:o.value,enumerable:!1,configurable:!1,writable:!1})}}());var Xf,Qf,Zf,tc,nc,rc={};function ec(){return Qf?Xf:(Qf=1,Xf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function ic(){if(tc)return Zf;tc=1;var t=sn()("span").classList,n=t&&t.constructor&&t.constructor.prototype;return Zf=n===Object.prototype?void 0:n}!function(){if(nc)return rc;nc=1;var t=u(),n=ec(),r=ic(),e=go(),i=En(),o=ei(),f=fn()("iterator"),c=e.values,a=function(t,r){if(t){if(t[f]!==c)try{i(t,f,c)}catch(n){t[f]=c}if(o(t,r,!0),n[r])for(var u in e)if(t[u]!==e[u])try{i(t,u,e[u])}catch(n){t[u]=e[u]}}};for(var s in n)a(t[s]&&t[s].prototype,s);a(r,"DOMTokenList")}();var oc=function(t,n){return oc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},oc(t,n)};function uc(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}oc(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var fc=function(){return fc=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t},fc.apply(this,arguments)};function cc(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,i,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(t){i={error:t}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function ac(t,n,r){if(r||2===arguments.length)for(var e,i=0,o=n.length;i<o;i++)!e&&i in n||(e||(e=Array.prototype.slice.call(n,0,i)),e[i]=n[i]);return t.concat(e||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var sc,lc,vc,pc,hc,dc={};!function(){if(hc)return dc;hc=1;var t=re(),n=function(){if(pc)return vc;pc=1;var t=ee(),n=b(),r=en(),e=function(){if(lc)return sc;lc=1;var t=Sn(),n=Ku();return sc=function(r,e,i,o){try{return o?e(t(i)[0],i[1]):e(i)}catch(t){n(r,"throw",t)}}}(),i=Uu(),o=fe(),u=yr(),f=ae(),c=fo(),a=Wu(),s=Gu(),l=Ku(),v=Array;return vc=function(p){var h=o(this),d=arguments.length,y=d>1?arguments[1]:void 0,g=void 0!==y;g&&(y=t(y,d>2?arguments[2]:void 0));var m,b,w,O,S,x,E=r(p),_=s(E),j=0;if(!_||this===v&&i(_))for(m=u(E),b=h?new this(m):v(m);m>j;j++)x=g?y(E[j],j):E[j],f(b,j,x);else for(b=h?new this:[],S=(O=a(E,_)).next;!(w=n(S,O)).done;j++){x=g?e(O,y,[w.value,j],!0):w.value;try{f(b,j,x)}catch(t){l(O,"throw",t)}}return c(b,j),b},vc}();t({target:"Array",stat:!0,forced:!qu()(function(t){Array.from(t)})},{from:n})}();var yc,gc,mc,bc,wc,Oc,Sc,xc,Ec,_c,jc,Ic,Pc,Tc,Ac,Cc,Rc,Nc={exports:{}};function Mc(){if(Oc)return wc;Oc=1;var t=y();return wc=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function Vc(){if(Sc)return Nc.exports;Sc=1;var t=re(),n=st(),r=Wn(),e=gt(),i=on(),o=xn().f,u=br(),f=Be(),c=function(){if(bc)return mc;bc=1;var t=y(),n=gt(),r=lt(),e=function(){if(gc)return yc;gc=1;var t=y();return yc=t(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})}(),i=Object.isExtensible,o=t(function(){});return mc=o||e?function(t){return!!n(t)&&(!e||"ArrayBuffer"!==r(t))&&(!i||i(t))}:i}(),a=un(),s=Mc(),l=!1,v=a("meta"),p=0,h=function(t){o(t,v,{value:{objectID:"O"+p++,weakData:{}}})},d=Nc.exports={enable:function(){d.enable=function(){},l=!0;var r=u.f,e=n([].splice),i={};i[v]=1,r(i).length&&(u.f=function(t){for(var n=r(t),i=0,o=n.length;i<o;i++)if(n[i]===v){e(n,i,1);break}return n},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,n){if(!e(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,v)){if(!c(t))return"F";if(!n)return"E";h(t)}return t[v].objectID},getWeakData:function(t,n){if(!i(t,v)){if(!c(t))return!0;if(!n)return!1;h(t)}return t[v].weakData},onFreeze:function(t){return s&&l&&c(t)&&!i(t,v)&&h(t),t}};return r[v]=!0,Nc.exports}function kc(){if(jc)return _c;jc=1;var t=re(),n=u(),r=st(),e=ne(),i=qn(),o=Vc(),f=Ju(),c=hu(),a=yt(),s=pt(),l=gt(),v=y(),p=qu(),h=ei(),d=function(){if(Ec)return xc;Ec=1;var t=yt(),n=gt(),r=po();return xc=function(e,i,o){var u,f;return r&&t(u=i.constructor)&&u!==o&&n(f=u.prototype)&&f!==o.prototype&&r(e,f),e}}();return _c=function(u,y,g){var m=-1!==u.indexOf("Map"),b=-1!==u.indexOf("Weak"),w=m?"set":"add",O=n[u],S=O&&O.prototype,x=O,E={},_=function(t){var n=r(S[t]);i(S,t,"add"===t?function(t){return n(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&n(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:n(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&n(this,0===t?0:t)}:function(t,r){return n(this,0===t?0:t,r),this})};if(e(u,!a(O)||!(b||S.forEach&&!v(function(){(new O).entries().next()}))))x=g.getConstructor(y,u,m,w),o.enable();else if(e(u,!0)){var j=new x,I=j[w](b?{}:-0,1)!==j,P=v(function(){j.has(1)}),T=p(function(t){new O(t)}),A=!b&&v(function(){for(var t=new O,n=5;n--;)t[w](n,n);return!t.has(-0)});T||((x=y(function(t,n){c(t,S);var r=d(new O,t,x);return s(n)||f(n,r[w],{that:r,AS_ENTRIES:m}),r})).prototype=S,S.constructor=x),(P||A)&&(_("delete"),_("has"),m&&_("get")),(A||I)&&_(w),b&&S.clear&&delete S.clear}return E[u]=x,t({global:!0,constructor:!0,forced:x!==O},E),h(x,u),b||g.setStrong(x,u,m),x}}function Dc(){if(Pc)return Ic;Pc=1;var t=qn();return Ic=function(n,r,e){for(var i in r)t(n,i,r[i],e);return n}}function $c(){if(Ac)return Tc;Ac=1;var t=ke(),n=ye(),r=Dc(),e=ee(),i=hu(),o=pt(),u=Ju(),f=ho(),c=yo(),a=pu(),s=g(),l=Vc().fastKey,v=Kn(),p=v.set,h=v.getterFor;return Tc={getConstructor:function(f,c,a,v){var d=f(function(n,r){i(n,y),p(n,{type:c,index:t(null),first:null,last:null,size:0}),s||(n.size=0),o(r)||u(r,n[v],{that:n,AS_ENTRIES:a})}),y=d.prototype,g=h(c),m=function(t,n,r){var e,i,o=g(t),u=b(t,n);return u?u.value=r:(o.last=u={index:i=l(n,!0),key:n,value:r,previous:e=o.last,next:null,removed:!1},o.first||(o.first=u),e&&(e.next=u),s?o.size++:t.size++,"F"!==i&&(o.index[i]=u)),t},b=function(t,n){var r,e=g(t),i=l(n);if("F"!==i)return e.index[i];for(r=e.first;r;r=r.next)if(r.key===n)return r};return r(y,{clear:function(){for(var n=g(this),r=n.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=null),r=r.next;n.first=n.last=null,n.index=t(null),s?n.size=0:this.size=0},delete:function(t){var n=this,r=g(n),e=b(n,t);if(e){var i=e.next,o=e.previous;delete r.index[e.index],e.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first===e&&(r.first=i),r.last===e&&(r.last=o),s?r.size--:n.size--}return!!e},forEach:function(t){for(var n,r=g(this),i=e(t,arguments.length>1?arguments[1]:void 0);n=n?n.next:r.first;)for(i(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(t){return!!b(this,t)}}),r(y,a?{get:function(t){var n=b(this,t);return n&&n.value},set:function(t,n){return m(this,0===t?0:t,n)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),s&&n(y,"size",{configurable:!0,get:function(){return g(this).size}}),d},setStrong:function(t,n,r){var e=n+" Iterator",i=h(n),o=h(e);f(t,n,function(t,n){p(this,{type:e,target:t,state:i(t),kind:n,last:null})},function(){for(var t=o(this),n=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?c("keys"===n?r.key:"values"===n?r.value:[r.key,r.value],!1):(t.target=null,c(void 0,!0))},r?"entries":"values",!r,!0),a(n)}},Tc}Rc||(Rc=1,Cc||(Cc=1,kc()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},$c())));var Lc,Fc,zc,Bc,Uc={};Bc||(Bc=1,function(){if(zc)return Uc;zc=1;var t,n=Mc(),r=u(),e=st(),i=Dc(),o=Vc(),f=kc(),c=function(){if(Fc)return Lc;Fc=1;var t=st(),n=Dc(),r=Vc().getWeakData,e=hu(),i=Sn(),o=pt(),u=gt(),f=Ju(),c=se(),a=on(),s=Kn(),l=s.set,v=s.getterFor,p=c.find,h=c.findIndex,d=t([].splice),y=0,g=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,n){return p(t.entries,function(t){return t[0]===n})};return m.prototype={get:function(t){var n=b(this,t);if(n)return n[1]},has:function(t){return!!b(this,t)},set:function(t,n){var r=b(this,t);r?r[1]=n:this.entries.push([t,n])},delete:function(t){var n=h(this.entries,function(n){return n[0]===t});return~n&&d(this.entries,n,1),!!~n}},Lc={getConstructor:function(t,c,s,p){var h=t(function(t,n){e(t,d),l(t,{type:c,id:y++,frozen:null}),o(n)||f(n,t[p],{that:t,AS_ENTRIES:s})}),d=h.prototype,m=v(c),b=function(t,n,e){var o=m(t),u=r(i(n),!0);return!0===u?g(o).set(n,e):u[o.id]=e,t};return n(d,{delete:function(t){var n=m(this);if(!u(t))return!1;var e=r(t);return!0===e?g(n).delete(t):e&&a(e,n.id)&&delete e[n.id]},has:function(t){var n=m(this);if(!u(t))return!1;var e=r(t);return!0===e?g(n).has(t):e&&a(e,n.id)}}),n(d,s?{get:function(t){var n=m(this);if(u(t)){var e=r(t);if(!0===e)return g(n).get(t);if(e)return e[n.id]}},set:function(t,n){return b(this,t,n)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),a=gt(),s=Kn().enforce,l=y(),v=Un(),p=Object,h=Array.isArray,d=p.isExtensible,g=p.isFrozen,m=p.isSealed,b=p.freeze,w=p.seal,O=!r.ActiveXObject&&"ActiveXObject"in r,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},x=f("WeakMap",S,c),E=x.prototype,_=e(E.set);if(v)if(O){t=c.getConstructor(S,"WeakMap",!0),o.enable();var j=e(E.delete),I=e(E.has),P=e(E.get);i(E,{delete:function(n){if(a(n)&&!d(n)){var r=s(this);return r.frozen||(r.frozen=new t),j(this,n)||r.frozen.delete(n)}return j(this,n)},has:function(n){if(a(n)&&!d(n)){var r=s(this);return r.frozen||(r.frozen=new t),I(this,n)||r.frozen.has(n)}return I(this,n)},get:function(n){if(a(n)&&!d(n)){var r=s(this);return r.frozen||(r.frozen=new t),I(this,n)?P(this,n):r.frozen.get(n)}return P(this,n)},set:function(n,r){if(a(n)&&!d(n)){var e=s(this);e.frozen||(e.frozen=new t),I(this,n)?_(this,n,r):e.frozen.set(n,r)}else _(this,n,r);return this}})}else n&&l(function(){var t=b([]);return _(new x,t,1),!g(t)})&&i(E,{set:function(t,n){var r;return h(t)&&(g(t)?r=b:m(t)&&(r=w)),_(this,t,n),r&&r(t),this}})}());var Gc=new Map,Wc=new WeakMap;function Kc(t,n){if(!1!==n)return"string"==typeof n?n:!0===n?function(t){return Wc.has(t)||Wc.set(t,Symbol(t.name||"anonymous")),Wc.get(t)}(t):void 0}function Jc(t,n){var r=Gc.get(t);r&&r!==n&&r.unmount(),Gc.set(t,n)}function qc(t){Gc.delete(t)}var Hc,Yc={};!function(){if(Hc)return Yc;Hc=1;var t=re(),n=en(),r=Ne();t({target:"Object",stat:!0,forced:y()(function(){r(1)})},{keys:function(t){return r(n(t))}})}();var Xc,Qc,Zc,ta,na,ra={};!function(){if(na)return ra;na=1;var t=u(),n=ec(),r=ic(),e=function(){if(ta)return Zc;ta=1;var t=se().forEach,n=function(){if(Qc)return Xc;Qc=1;var t=y();return Xc=function(n,r){var e=[][n];return!!e&&t(function(){e.call(null,r||function(){return 1},1)})}}()("forEach");return Zc=n?[].forEach:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)},Zc}(),i=En(),o=function(t){if(t&&t.forEach!==e)try{i(t,"forEach",e)}catch(n){t.forEach=e}};for(var f in n)n[f]&&o(t[f]&&t[f].prototype);o(r)}();var ea={installed:!1};function ia(t){Object.assign(ea,t)}function oa(t){return fc(fc({},ea),t)}var ua,fa={};!function(){if(ua)return fa;ua=1;var t=re(),n=se().find,r=co(),e="find",i=!0;e in[]&&Array(1)[e](function(){i=!1}),t({target:"Array",proto:!0,forced:i},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),r(e)}();var ca,aa,sa,la={};!function(){if(sa)return la;sa=1;var t=re(),n=function(){if(aa)return ca;aa=1;var t=g(),n=y(),r=st(),e=so(),i=Ne(),o=dt(),u=r(ct().f),f=r([].push),c=t&&n(function(){var t=Object.create(null);return t[2]=2,!u(t,2)}),a=function(n){return function(r){for(var a,s=o(r),l=i(s),v=c&&null===e(s),p=l.length,h=0,d=[];p>h;)a=l[h++],t&&!(v?a in s:u(s,a))||f(d,n?[a,s[a]]:s[a]);return d}};return ca={entries:a(!0),values:a(!1)}}().entries;t({target:"Object",stat:!0},{entries:function(t){return n(t)}})}();var va,pa,ha,da={};!function(){if(va)return da;va=1;var t=re(),n=Zt(),r=Ou(),e=y(),i=mt(),o=yt(),u=du(),f=cf(),c=qn(),a=r&&r.prototype;if(t({target:"Promise",proto:!0,real:!0,forced:!!r&&e(function(){a.finally.call({then:function(){}},function(){})})},{finally:function(t){var n=u(this,i("Promise")),r=o(t);return this.then(r?function(r){return f(n,t()).then(function(){return r})}:t,r?function(r){return f(n,t()).then(function(){throw r})}:t)}}),!n&&o(r)){var s=i("Promise").prototype.finally;a.finally!==s&&c(a,"finally",s,{unsafe:!0})}}(),ha||(ha=1,pa||(pa=1,kc()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},$c())));var ya,ga={};!function(){if(ya)return ga;ya=1;var t=re(),n=se().filter;t({target:"Array",proto:!0,forced:!le()("filter")},{filter:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})}();var ma,ba={};function wa(){return"undefined"!=typeof document}function Oa(t){return t?"string"==typeof t?wa()?document.querySelector(t):null:t:null}function Sa(t,n){if(void 0===t&&(t="div"),!wa())throw new TypeError("This plugin works in browser");var r=document.createElement(t);return n&&Object.entries(n).forEach(function(t){var n=cc(t,2),e=n[0],i=n[1];r.setAttribute(e,i)}),r}function xa(t,n){if(wa()){var r=Oa(n);r?r.appendChild(t):document.body.appendChild(t)}}function Ea(t){t.parentNode&&t.parentNode.removeChild(t)}function _a(t){return document.body.contains(t)}function ja(t,n){void 0!==n&&(t.style.zIndex=String(n))}!function(){if(ma)return ba;ma=1;var t=b(),n=st(),r=Gf(),e=Sn(),i=gt(),o=ht(),u=du(),f=Wf(),c=dr(),a=Ee(),s=It(),l=Kf(),v=Jf(),p=Sf(),h=y(),d=p.UNSUPPORTED_Y,g=Math.min,m=n([].push),w=n("".slice),O=n("".indexOf),S=!h(function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;r("split",function(n,r,p){var h="0".split(void 0,0).length?function(n,e){return void 0===n&&0===e?[]:t(r,this,n,e)}:r;return[function(r,e){var u=o(this),f=i(r)?s(r,n):void 0;return f?t(f,r,u,e):t(h,a(u),r,e)},function(t,n){var i=e(this),o=a(t);if(!x){var s=p(h,i,o,n,h!==r);if(s.done)return s.value}var y=u(i,RegExp),b=a(l(i)),S=!!~O(b,"u")||!!~O(b,"v");d?~O(b,"g")||(b+="g"):~O(b,"y")||(b+="y");var E=new y(d?"^(?:"+i.source+")":i,b),_=void 0===n?4294967295:n>>>0;if(0===_)return[];if(0===o.length)return null===v(E,o)?[o]:[];for(var j=0,I=0,P=[];I<o.length;){E.lastIndex=d?0:I;var T,A=v(E,d?w(o,I):o);if(null===A||(T=g(c(E.lastIndex+(d?I:0)),o.length))===j)I=f(o,I,S);else{if(m(P,w(o,j,I)),P.length===_)return P;for(var C=1;C<=A.length-1;C++)if(m(P,A[C]),P.length===_)return P;I=j=T}}return m(P,w(o,j)),P}]},x||!S,d)}();var Ia,Pa={};!function(){if(Ia)return Pa;Ia=1;var t=zn().PROPER,n=qn(),r=Sn(),e=Ee(),i=y(),o=Kf(),u="toString",f=RegExp.prototype,c=f[u],a=i(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),s=t&&c.name!==u;(a||s)&&n(f,u,function(){var t=r(this);return"/"+e(t.source)+"/"+e(o(t))},{unsafe:!0})}();var Ta=function(){function t(){this.events=new Map}return t.prototype.on=function(t,n){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(n),this},t.prototype.off=function(t,n){var r;return n?null===(r=this.events.get(t))||void 0===r||r.delete(n):this.events.delete(t),this},t.prototype.emit=function(t){for(var n,r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return null===(n=this.events.get(t))||void 0===n||n.forEach(function(n){try{n.apply(void 0,ac([],cc(r),!1))}catch(n){console.error('Error in event handler for "'.concat(t,'":'),n)}}),this},t.prototype.has=function(t){return this.events.has(t)&&this.events.get(t).size>0},t.prototype.clear=function(){this.events.clear()},t.prototype.eventNames=function(){return Array.from(this.events.keys())},t}(),Aa=0;function Ca(){return"mount-".concat(++Aa,"-").concat(Date.now().toString(36))}function Ra(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Na=new Set,Ma=function(){function t(t,n){void 0===n&&(n={});var r=this;this.mounted=!1,this.el=null,this._eventEmitter=new Ta,this._autoCreatedTarget=!1,this._hidden=!1,this._destroyed=!1,this.destroy=this.unmount,this.remove=this.unmount,this.id=Ca(),this._component=t,this.options=oa(n),this._promise=new Promise(function(t,n){r._resolve=t,r._reject=n}),this._singletonKey=Kc(t,n.singleton),this._singletonKey&&Jc(this._singletonKey,this),Na.add(this)}return t.prototype.show=function(){var t,n,r,e;return this.mounted&&!this._hidden||(null===(n=(t=this.options).onBeforeMount)||void 0===n||n.call(t,this),this._ensureElement(),this._mountVM(),this.options.zIndex&&this.el&&ja(this.el,this.options.zIndex),this.mounted=!0,this._hidden=!1,null===(e=(r=this.options).onMounted)||void 0===e||e.call(r,this),this.emit("show",this)),this},t.prototype.hide=function(){return!this.mounted||this._hidden||(this.emit("beforeHide",this),this.el&&_a(this.el)&&Ea(this.el),this._hidden=!0,this.emit("hide",this)),this},t.prototype.unmount=function(){var t,n,r,e;this._destroyed||(this._destroyed=!0,(this.mounted||this._hidden)&&(null===(n=(t=this.options).onBeforeUnmount)||void 0===n||n.call(t,this)),this._eventEmitter.emit("beforeUnmount",this),this._unmountVM(),this._autoCreatedTarget&&this.el&&Ea(this.el),this.mounted=!1,this._hidden=!1,this.el=null,this.vm=null,Na.delete(this),this._singletonKey&&qc(this._singletonKey),null===(e=(r=this.options).onUnmounted)||void 0===e||e.call(r,this),this._eventEmitter.clear())},t.prototype.setProps=function(t){return this.options=fc(fc({},this.options),{props:fc(fc({},this.options.props),t)}),this.mounted&&this._updateVM(),this},t.prototype.on=function(t,n){return this._eventEmitter.on(t,n),this},t.prototype.off=function(t,n){return this._eventEmitter.off(t,n),this},t.prototype.emit=function(t){for(var n,r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return this._destroyed||(n=this._eventEmitter).emit.apply(n,ac([t],cc(r),!1)),this},t.prototype.then=function(t){return this._promise.then(t)},t.prototype.catch=function(t){return this._promise.catch(t)},t.prototype.finally=function(t){return this._promise.finally(t)},t.prototype.setTarget=function(t){return this.options.target=t,this},t.prototype.setHooks=function(t){return this.options=fc(fc({},this.options),t),this},t.prototype.setSlots=function(t){return this.options=fc(fc({},this.options),{slots:fc(fc({},this.options.slots),t)}),this},t.prototype._ensureElement=function(){if(!this.el){var t=Oa(this.options.target);t instanceof Element?(this.el=t,this._autoCreatedTarget=!1):(this.el=Sa(this.options.tagName||"div",{"data-mount-id":this.id}),this._autoCreatedTarget=!0)}},t.prototype._appendElementToDOM=function(){this.el&&this._autoCreatedTarget&&xa(this.el,null)},t.prototype._resolvePromise=function(t){this._resolve(t)},t.prototype._rejectPromise=function(t){this._reject(t)},t.prototype._mergeListenersToProps=function(t){var n={};return Object.entries(t).forEach(function(t){var r=cc(t,2),e=r[0],i=r[1];n["on".concat(Ra(e))]=i}),n},Object.defineProperty(t,"instances",{get:function(){return Array.from(Na)},enumerable:!1,configurable:!0}),t.unmountAll=function(){Na.forEach(function(t){return t.unmount()})},t.getById=function(t){return Array.from(Na).find(function(n){return n.id===t})},t}();function Va(){return Array.from(Na)}function ka(t){return Ma.getById(t)}function Da(t,n){var r=n.context||{};return t&&(t._isVue||t.$options)?fc({router:t.$router||r.router,store:t.$store||r.store,i18n:t.$i18n||r.i18n,route:t.$route},r):r}var $a,La=function(t){function r(r,e){void 0===e&&(e={});var i=t.call(this,r,e)||this;if(i.vm=null,i._vue2Instance=null,!n.isVue2)throw new Error("MountVue2 can only be used with Vue 2");return i._createVM(),i}return uc(r,t),r.prototype._createVM=function(){var t=this,r=n.Vue2,e=this.options,i=e.props,o=e.parent,u=e.listeners,f=e.on,c=fc(fc({},u),f),a=Da(o,this.options),s=this._component;this._component.options&&(s=this._component.options);var l=new(r.extend(s))({propsData:i||{},parent:o});a.router&&Object.defineProperty(l,"$router",{get:function(){return a.router},configurable:!0}),a.store&&Object.defineProperty(l,"$store",{get:function(){return a.store},configurable:!0}),a.i18n&&Object.defineProperty(l,"$i18n",{get:function(){return a.i18n},configurable:!0}),Object.entries(c).forEach(function(t){var n=cc(t,2),r=n[0],e=n[1];Array.isArray(e)?e.forEach(function(t){return l.$on(r,t)}):l.$on(r,e)});var v=l.$emit.bind(l);l.$emit=function(n){for(var r,e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return(r=t._eventEmitter).emit.apply(r,ac([n],cc(e),!1)),v.apply(void 0,ac([n],cc(e),!1))},l.$on("close",function(){t._resolvePromise(void 0),t.unmount()}),l._mountId=this.id,this._vue2Instance=l},r.prototype._mountVM=function(){this._vue2Instance&&(this._ensureElement(),this._appendElementToDOM(),this._vue2Instance.$mount(this.el),this._vue2Instance.$el&&(this.el=this._vue2Instance.$el),this.vm=this._vue2Instance,this.mounted=!0)},r.prototype._unmountVM=function(){this._vue2Instance&&(this._vue2Instance.$destroy(),this._vue2Instance=null),this.vm=null,this.mounted=!1},r.prototype._updateVM=function(){this._vue2Instance&&this.options.props&&Object.assign(this._vue2Instance.$props,this.options.props)},r}(Ma);function Fa(){return function(t,n,r,e){return new(r||(r=Promise))(function(i,o){function u(t){try{c(e.next(t))}catch(t){o(t)}}function f(t){try{c(e.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof r?n:new r(function(t){t(n)})).then(u,f)}c((e=e.apply(t,n||[])).next())})}(this,void 0,void 0,function(){var t;return function(t,n){var r,e,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=f(0),u.throw=f(1),u.return=f(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function f(f){return function(c){return function(f){if(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,f[0]&&(o=0)),o;)try{if(r=1,e&&(i=2&f[0]?e.return:f[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,f[1])).done)return i;switch(e=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,e=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==f[0]&&2!==f[0])){o=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){o.label=f[1];break}if(6===f[0]&&o.label<i[1]){o.label=i[1],i=f;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(f);break}i[2]&&o.ops.pop(),o.trys.pop();continue}f=n.call(t,o)}catch(t){f=[6,t],e=0}finally{r=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,c])}}}(this,function(n){switch(n.label){case 0:return $a?[2,$a]:[4,import("vue")];case 1:return t=n.sent(),[2,$a=t.render]}})})}var za=function(t){function r(r,e){void 0===e&&(e={});var i=t.call(this,r,e)||this;if(i.vm=null,i._vNode=null,n.isVue2)throw new Error("MountVue3 can only be used with Vue 3");return i._createVM(),i}return uc(r,t),r.prototype._createVM=function(){var t=this,r=this.options,e=r.props,i=r.children,o=r.app,u=r.listeners,f=r.on,c=r.slots,a=fc(fc({},u),f),s=fc(fc(fc({},e),this._mergeListenersToProps(a)),{onClose:function(){t._resolvePromise(void 0),t.unmount()}}),l=c?fc(fc({},c),i?{default:i}:{}):i,v=n.h(this._component,s,l);(null==o?void 0:o._context)&&(v.appContext=o._context),this._vNode=v},r.prototype._mountVM=function(){var t=this;this._vNode||this._createVM(),this._ensureElement(),this._appendElementToDOM(),Fa().then(function(n){var r,e;n&&t._vNode&&t.el&&(n(t._vNode,t.el),t.vm=null!==(e=null===(r=t._vNode.component)||void 0===r?void 0:r.proxy)&&void 0!==e?e:null)}),this.mounted=!0},r.prototype._unmountVM=function(){var t=this;this._vNode&&(Fa().then(function(n){n&&t.el&&n(null,t.el)}),this._vNode=null),this.vm=null,this.mounted=!1},r.prototype._updateVM=function(){var t=this;this._createVM(),this.mounted&&this.el&&this._vNode&&Fa().then(function(n){var r,e;n&&(n(t._vNode,t.el),t.vm=null!==(e=null===(r=t._vNode.component)||void 0===r?void 0:r.proxy)&&void 0!==e?e:null)})},r}(Ma);function Ba(){var t=n.ref([]),r=function(){t.value.forEach(function(t){return t.unmount()}),t.value=[]};return n.isVue2||n.onUnmounted(r),{instances:t,mount:function(n,r){var e=Ua(n,r);return t.value.push(e),e},unmount:function(n){n.unmount(),t.value=t.value.filter(function(t){return t!==n})},unmountAll:r,getById:function(n){return t.value.find(function(t){return t.id===n})},hasInstances:function(){return t.value.length>0},count:function(){return t.value.length}}}function Ua(t,r){return void 0===r&&(r={}),n.isVue2?new La(t,r):new za(t,r)}function Ga(t,n){return void 0===n&&(n={}),Ua(t,n).show()}var Wa={install:function(t,r){void 0===r&&(r={}),ia(fc(fc({},r),{installed:!0}));var e=r.name||"$show";n.isVue2?t.prototype[e]=Ga:t.config.globalProperties[e]=Ga}};t.EventEmitter=Ta,t.MountBase=Ma,t.MountPlugin=Wa,t.MountVue2=La,t.MountVue3=za,t.addClass=function(t,n){var r;n&&(r=t.classList).add.apply(r,ac([],cc(n.split(/\s+/).filter(Boolean)),!1))},t.appendTo=xa,t.capitalize=Ra,t.clearSingletons=function(){Gc.forEach(function(t){return t.unmount()}),Gc.clear()},t.createElement=Sa,t.createInstanceId=Ca,t.createMount=Ua,t.eventToPropName=function(t){return"on".concat(Ra(t))},t.getActiveInstanceIds=function(){return Va().map(function(t){return t.id})},t.getCurrentComponentContext=function(t){var n;if(!t)return{};var r={};return t.$router&&(r.router=t.$router),t.$store&&(r.store=t.$store),t.$i18n&&(r.i18n=t.$i18n),(null===(n=t.$)||void 0===n?void 0:n.appContext)&&(r.appContext=t.$.appContext),r},t.getGlobalConfig=function(){return fc({},ea)},t.getInstanceById=ka,t.getInstances=Va,t.getSingleton=function(t){return Gc.get(t)},t.getSingletonKey=Kc,t.getSingletonKeys=function(){return Array.from(Gc.keys())},t.globalConfig=ea,t.hasSingleton=function(t){return Gc.has(t)},t.inheritVue2Context=Da,t.inheritVue3Context=function(t,n){return(null==t?void 0:t._context)?{appContext:t._context,provides:t._context.provides}:{}},t.isBrowser=wa,t.isInDOM=_a,t.isMounted=function(t){var n,r=ka(t);return null!==(n=null==r?void 0:r.mounted)&&void 0!==n&&n},t.isNodeEnv=function(){var t;return"undefined"!=typeof process&&!!(null===(t=process.versions)||void 0===t?void 0:t.node)},t.mergeWithGlobalConfig=oa,t.mount=Ga,t.removeClass=function(t,n){var r;n&&(r=t.classList).remove.apply(r,ac([],cc(n.split(/\s+/).filter(Boolean)),!1))},t.removeElement=Ea,t.removeSingleton=qc,t.resetGlobalConfig=function(){Object.keys(ea).forEach(function(t){delete ea[t]}),ea.installed=!1},t.resolveTarget=Oa,t.setGlobalConfig=ia,t.setSingleton=Jc,t.setZIndex=ja,t.unmountAll=function(){Ma.unmountAll()},t.useMount=Ba,t.useSingleton=function(){return{getOrCreate:function(t,n,r){var e=Ba().instances.value.find(function(n){return n.id===t||n.options.singleton===t});return e||Ua(n,fc(fc({},r),{singleton:t}))}}}});
|
|
1
|
+
var _VueDemiGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,VueDemi=function(t,n,r){if(t.install)return t;if(!n)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),t;if("2.7."===n.version.slice(0,4)){for(var e in n)t[e]=n[e];t.isVue2=!0,t.isVue3=!1,t.install=function(){},t.Vue=n,t.Vue2=n,t.version=n.version,t.warn=n.util.warn,t.hasInjectionContext=function(){return!!t.getCurrentInstance()},t.createApp=function(t,r){var e,i={},o={config:n.config,use:n.use.bind(n),mixin:n.mixin.bind(n),component:n.component.bind(n),provide:function(t,n){return i[t]=n,this},directive:function(t,r){return r?(n.directive(t,r),o):n.directive(t)},mount:function(o,u){return e||((e=new n(Object.assign({propsData:r},t,{provide:Object.assign(i,t.provide)}))).$mount(o,u),e)},unmount:function(){e&&(e.$destroy(),e=void 0)}};return o}}else if("2."===n.version.slice(0,2))if(r){for(var e in r)t[e]=r[e];t.isVue2=!0,t.isVue3=!1,t.install=function(){},t.Vue=n,t.Vue2=n,t.version=n.version,t.hasInjectionContext=function(){return!!t.getCurrentInstance()}}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if("3."===n.version.slice(0,2)){for(var e in n)t[e]=n[e];t.isVue2=!1,t.isVue3=!0,t.install=function(){},t.Vue=n,t.Vue2=void 0,t.version=n.version,t.set=function(t,n,r){return Array.isArray(t)?(t.length=Math.max(t.length,n),t.splice(n,1,r),r):(t[n]=r,r)},t.del=function(t,n){Array.isArray(t)?t.splice(n,1):delete t[n]}}else console.error("[vue-demi] Vue version "+n.version+" is unsupported.");return t}(_VueDemiGlobal.VueDemi=_VueDemiGlobal.VueDemi||(void 0!==VueDemi?VueDemi:{}),_VueDemiGlobal.Vue||("undefined"!=typeof Vue?Vue:void 0),_VueDemiGlobal.VueCompositionAPI||("undefined"!=typeof VueCompositionAPI?VueCompositionAPI:void 0));!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("vue-demi")):"function"==typeof define&&define.amd?define(["exports","vue-demi"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).VueMount=t.VueMount||{},t.VueDemi)}(this,function(t,n){"use strict";var r,e,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o={};function u(){if(e)return r;e=1;var t=function(t){return t&&t.Math===Math&&t};return r=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof i&&i)||t("object"==typeof r&&r)||function(){return this}()||Function("return this")()}var f,c,a,s,l,v,p,h,d={};function y(){return c?f:(c=1,f=function(t){try{return!!t()}catch(t){return!0}})}function g(){if(s)return a;s=1;var t=y();return a=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function m(){if(v)return l;v=1;var t=y();return l=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function b(){if(h)return p;h=1;var t=m(),n=Function.prototype.call;return p=t?n.bind(n):function(){return n.apply(n,arguments)},p}var w,O,S,x,E,_,j,I,P,T,A,C,R,N,M,V,k,D,$,L,F,z,B,U,G,W,K,J,q,H,Y,X,Q,Z,tt,nt,rt,et,it,ot,ut,ft={};function ct(){if(w)return ft;w=1;var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);return ft.f=r?function(t){var r=n(this,t);return!!r&&r.enumerable}:t,ft}function at(){return S?O:(S=1,O=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}})}function st(){if(E)return x;E=1;var t=m(),n=Function.prototype,r=n.call,e=t&&n.bind.bind(r,r);return x=t?e:function(t){return function(){return r.apply(t,arguments)}},x}function lt(){if(j)return _;j=1;var t=st(),n=t({}.toString),r=t("".slice);return _=function(t){return r(n(t),8,-1)}}function vt(){if(P)return I;P=1;var t=st(),n=y(),r=lt(),e=Object,i=t("".split);return I=n(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?i(t,""):e(t)}:e}function pt(){return A?T:(A=1,T=function(t){return null==t})}function ht(){if(R)return C;R=1;var t=pt(),n=TypeError;return C=function(r){if(t(r))throw new n("Can't call method on "+r);return r}}function dt(){if(M)return N;M=1;var t=vt(),n=ht();return N=function(r){return t(n(r))}}function yt(){if(k)return V;k=1;var t="object"==typeof document&&document.all;return V=void 0===t&&void 0!==t?function(n){return"function"==typeof n||n===t}:function(t){return"function"==typeof t}}function gt(){if($)return D;$=1;var t=yt();return D=function(n){return"object"==typeof n?null!==n:t(n)}}function mt(){if(F)return L;F=1;var t=u(),n=yt();return L=function(r,e){return arguments.length<2?(i=t[r],n(i)?i:void 0):t[r]&&t[r][e];var i},L}function bt(){if(B)return z;B=1;var t=st();return z=t({}.isPrototypeOf)}function wt(){if(G)return U;G=1;var t=u().navigator,n=t&&t.userAgent;return U=n?String(n):""}function Ot(){if(K)return W;K=1;var t,n,r=u(),e=wt(),i=r.process,o=r.Deno,f=i&&i.versions||o&&o.version,c=f&&f.v8;return c&&(n=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!n&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(n=+t[1]),W=n}function St(){if(q)return J;q=1;var t=Ot(),n=y(),r=u().String;return J=!!Object.getOwnPropertySymbols&&!n(function(){var n=Symbol("symbol detection");return!r(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function xt(){if(Y)return H;Y=1;var t=St();return H=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Et(){if(Q)return X;Q=1;var t=mt(),n=yt(),r=bt(),e=xt(),i=Object;return X=e?function(t){return"symbol"==typeof t}:function(e){var o=t("Symbol");return n(o)&&r(o.prototype,i(e))}}function _t(){if(tt)return Z;tt=1;var t=String;return Z=function(n){try{return t(n)}catch(t){return"Object"}}}function jt(){if(rt)return nt;rt=1;var t=yt(),n=_t(),r=TypeError;return nt=function(e){if(t(e))return e;throw new r(n(e)+" is not a function")}}function It(){if(it)return et;it=1;var t=jt(),n=pt();return et=function(r,e){var i=r[e];return n(i)?void 0:t(i)}}var Pt,Tt,At,Ct,Rt,Nt,Mt,Vt,kt,Dt,$t,Lt,Ft,zt,Bt,Ut,Gt,Wt,Kt,Jt,qt,Ht,Yt,Xt,Qt={exports:{}};function Zt(){return Tt?Pt:(Tt=1,Pt=!1)}function tn(){if(Ct)return At;Ct=1;var t=u(),n=Object.defineProperty;return At=function(r,e){try{n(t,r,{value:e,configurable:!0,writable:!0})}catch(n){t[r]=e}return e}}function nn(){if(Rt)return Qt.exports;Rt=1;var t=Zt(),n=u(),r=tn(),e="__core-js_shared__",i=Qt.exports=n[e]||r(e,{});return(i.versions||(i.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Qt.exports}function rn(){if(Mt)return Nt;Mt=1;var t=nn();return Nt=function(n,r){return t[n]||(t[n]=r||{})}}function en(){if(kt)return Vt;kt=1;var t=ht(),n=Object;return Vt=function(r){return n(t(r))}}function on(){if($t)return Dt;$t=1;var t=st(),n=en(),r=t({}.hasOwnProperty);return Dt=Object.hasOwn||function(t,e){return r(n(t),e)}}function un(){if(Ft)return Lt;Ft=1;var t=st(),n=0,r=Math.random(),e=t(1.1.toString);return Lt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++n+r,36)}}function fn(){if(Bt)return zt;Bt=1;var t=u(),n=rn(),r=on(),e=un(),i=St(),o=xt(),f=t.Symbol,c=n("wks"),a=o?f.for||f:f&&f.withoutSetter||e;return zt=function(t){return r(c,t)||(c[t]=i&&r(f,t)?f[t]:a("Symbol."+t)),c[t]}}function cn(){if(Gt)return Ut;Gt=1;var t=b(),n=gt(),r=Et(),e=It(),i=function(){if(ut)return ot;ut=1;var t=b(),n=yt(),r=gt(),e=TypeError;return ot=function(i,o){var u,f;if("string"===o&&n(u=i.toString)&&!r(f=t(u,i)))return f;if(n(u=i.valueOf)&&!r(f=t(u,i)))return f;if("string"!==o&&n(u=i.toString)&&!r(f=t(u,i)))return f;throw new e("Can't convert object to primitive value")}}(),o=fn(),u=TypeError,f=o("toPrimitive");return Ut=function(o,c){if(!n(o)||r(o))return o;var a,s=e(o,f);if(s){if(void 0===c&&(c="default"),a=t(s,o,c),!n(a)||r(a))return a;throw new u("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(o,c)}}function an(){if(Kt)return Wt;Kt=1;var t=cn(),n=Et();return Wt=function(r){var e=t(r,"string");return n(e)?e:e+""}}function sn(){if(qt)return Jt;qt=1;var t=u(),n=gt(),r=t.document,e=n(r)&&n(r.createElement);return Jt=function(t){return e?r.createElement(t):{}}}function ln(){if(Yt)return Ht;Yt=1;var t=g(),n=y(),r=sn();return Ht=!t&&!n(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function vn(){if(Xt)return d;Xt=1;var t=g(),n=b(),r=ct(),e=at(),i=dt(),o=an(),u=on(),f=ln(),c=Object.getOwnPropertyDescriptor;return d.f=t?c:function(t,a){if(t=i(t),a=o(a),f)try{return c(t,a)}catch(t){}if(u(t,a))return e(!n(r.f,t,a),t[a])},d}var pn,hn,dn,yn,gn,mn,bn,wn={};function On(){if(hn)return pn;hn=1;var t=g(),n=y();return pn=t&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Sn(){if(yn)return dn;yn=1;var t=gt(),n=String,r=TypeError;return dn=function(e){if(t(e))return e;throw new r(n(e)+" is not an object")}}function xn(){if(gn)return wn;gn=1;var t=g(),n=ln(),r=On(),e=Sn(),i=an(),o=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",s="writable";return wn.f=t?r?function(t,n,r){if(e(t),n=i(n),e(r),"function"==typeof t&&"prototype"===n&&"value"in r&&s in r&&!r[s]){var o=f(t,n);o&&o[s]&&(t[n]=r.value,r={configurable:a in r?r[a]:o[a],enumerable:c in r?r[c]:o[c],writable:!1})}return u(t,n,r)}:u:function(t,r,f){if(e(t),r=i(r),e(f),n)try{return u(t,r,f)}catch(t){}if("get"in f||"set"in f)throw new o("Accessors not supported");return"value"in f&&(t[r]=f.value),t},wn}function En(){if(bn)return mn;bn=1;var t=g(),n=xn(),r=at();return mn=t?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,n,r){return t[n]=r,t}}var _n,jn,In,Pn,Tn,An,Cn,Rn,Nn,Mn,Vn,kn,Dn,$n,Ln,Fn={exports:{}};function zn(){if(jn)return _n;jn=1;var t=g(),n=on(),r=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,i=n(r,"name"),o=i&&"something"===function(){}.name,u=i&&(!t||t&&e(r,"name").configurable);return _n={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function Bn(){if(Pn)return In;Pn=1;var t=st(),n=yt(),r=nn(),e=t(Function.toString);return n(r.inspectSource)||(r.inspectSource=function(t){return e(t)}),In=r.inspectSource}function Un(){if(An)return Tn;An=1;var t=u(),n=yt(),r=t.WeakMap;return Tn=n(r)&&/native code/.test(String(r))}function Gn(){if(Rn)return Cn;Rn=1;var t=rn(),n=un(),r=t("keys");return Cn=function(t){return r[t]||(r[t]=n(t))}}function Wn(){return Mn?Nn:(Mn=1,Nn={})}function Kn(){if(kn)return Vn;kn=1;var t,n,r,e=Un(),i=u(),o=gt(),f=En(),c=on(),a=nn(),s=Gn(),l=Wn(),v="Object already initialized",p=i.TypeError,h=i.WeakMap;if(e||a.state){var d=a.state||(a.state=new h);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,n){if(d.has(t))throw new p(v);return n.facade=t,d.set(t,n),n},n=function(t){return d.get(t)||{}},r=function(t){return d.has(t)}}else{var y=s("state");l[y]=!0,t=function(t,n){if(c(t,y))throw new p(v);return n.facade=t,f(t,y,n),n},n=function(t){return c(t,y)?t[y]:{}},r=function(t){return c(t,y)}}return Vn={set:t,get:n,has:r,enforce:function(e){return r(e)?n(e):t(e,{})},getterFor:function(t){return function(r){var e;if(!o(r)||(e=n(r)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function Jn(){if(Dn)return Fn.exports;Dn=1;var t=st(),n=y(),r=yt(),e=on(),i=g(),o=zn().CONFIGURABLE,u=Bn(),f=Kn(),c=f.enforce,a=f.get,s=String,l=Object.defineProperty,v=t("".slice),p=t("".replace),h=t([].join),d=i&&!n(function(){return 8!==l(function(){},"length",{value:8}).length}),m=String(String).split("String"),b=Fn.exports=function(t,n,r){"Symbol("===v(s(n),0,7)&&(n="["+p(s(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!e(t,"name")||o&&t.name!==n)&&(i?l(t,"name",{value:n,configurable:!0}):t.name=n),d&&r&&e(r,"arity")&&t.length!==r.arity&&l(t,"length",{value:r.arity});try{r&&e(r,"constructor")&&r.constructor?i&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=c(t);return e(u,"source")||(u.source=h(m,"string"==typeof n?n:"")),t};return Function.prototype.toString=b(function(){return r(this)&&a(this).source||u(this)},"toString"),Fn.exports}function qn(){if(Ln)return $n;Ln=1;var t=yt(),n=xn(),r=Jn(),e=tn();return $n=function(i,o,u,f){f||(f={});var c=f.enumerable,a=void 0!==f.name?f.name:o;if(t(u)&&r(u,a,f),f.global)c?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(c=!0):delete i[o]}catch(t){}c?i[o]=u:n.f(i,o,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}}var Hn,Yn,Xn,Qn,Zn,tr,nr,rr,er,ir,or,ur,fr,cr,ar,sr,lr,vr={};function pr(){if(Qn)return Xn;Qn=1;var t=function(){if(Yn)return Hn;Yn=1;var t=Math.ceil,n=Math.floor;return Hn=Math.trunc||function(r){var e=+r;return(e>0?n:t)(e)}}();return Xn=function(n){var r=+n;return r!=r||0===r?0:t(r)}}function hr(){if(tr)return Zn;tr=1;var t=pr(),n=Math.max,r=Math.min;return Zn=function(e,i){var o=t(e);return o<0?n(o+i,0):r(o,i)}}function dr(){if(rr)return nr;rr=1;var t=pr(),n=Math.min;return nr=function(r){var e=t(r);return e>0?n(e,9007199254740991):0}}function yr(){if(ir)return er;ir=1;var t=dr();return er=function(n){return t(n.length)}}function gr(){if(cr)return fr;cr=1;var t=st(),n=on(),r=dt(),e=function(){if(ur)return or;ur=1;var t=dt(),n=hr(),r=yr(),e=function(e){return function(i,o,u){var f=t(i),c=r(f);if(0===c)return!e&&-1;var a,s=n(u,c);if(e&&o!=o){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((e||s in f)&&f[s]===o)return e||s||0;return!e&&-1}};return or={includes:e(!0),indexOf:e(!1)}}().indexOf,i=Wn(),o=t([].push);return fr=function(t,u){var f,c=r(t),a=0,s=[];for(f in c)!n(i,f)&&n(c,f)&&o(s,f);for(;u.length>a;)n(c,f=u[a++])&&(~e(s,f)||o(s,f));return s}}function mr(){return sr?ar:(sr=1,ar=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function br(){if(lr)return vr;lr=1;var t=gr(),n=mr().concat("length","prototype");return vr.f=Object.getOwnPropertyNames||function(r){return t(r,n)},vr}var wr,Or,Sr,xr,Er,_r,jr,Ir,Pr,Tr,Ar,Cr,Rr,Nr,Mr,Vr,kr,Dr,$r,Lr,Fr,zr,Br,Ur,Gr,Wr,Kr,Jr,qr,Hr,Yr,Xr,Qr={};function Zr(){return wr||(wr=1,Qr.f=Object.getOwnPropertySymbols),Qr}function te(){if(Er)return xr;Er=1;var t=on(),n=function(){if(Sr)return Or;Sr=1;var t=mt(),n=st(),r=br(),e=Zr(),i=Sn(),o=n([].concat);return Or=t("Reflect","ownKeys")||function(t){var n=r.f(i(t)),u=e.f;return u?o(n,u(t)):n}}(),r=vn(),e=xn();return xr=function(i,o,u){for(var f=n(o),c=e.f,a=r.f,s=0;s<f.length;s++){var l=f[s];t(i,l)||u&&t(u,l)||c(i,l,a(o,l))}}}function ne(){if(jr)return _r;jr=1;var t=y(),n=yt(),r=/#|\.prototype\./,e=function(r,e){var c=o[i(r)];return c===f||c!==u&&(n(e)?t(e):!!e)},i=e.normalize=function(t){return String(t).replace(r,".").toLowerCase()},o=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return _r=e}function re(){if(Pr)return Ir;Pr=1;var t=u(),n=vn().f,r=En(),e=qn(),i=tn(),o=te(),f=ne();return Ir=function(u,c){var a,s,l,v,p,h=u.target,d=u.global,y=u.stat;if(a=d?t:y?t[h]||i(h,{}):t[h]&&t[h].prototype)for(s in c){if(v=c[s],l=u.dontCallGetSet?(p=n(a,s))&&p.value:a[s],!f(d?s:h+(y?".":"#")+s,u.forced)&&void 0!==l){if(typeof v==typeof l)continue;o(v,l)}(u.sham||l&&l.sham)&&r(v,"sham",!0),e(a,s,v,u)}}}function ee(){if(Rr)return Cr;Rr=1;var t=function(){if(Ar)return Tr;Ar=1;var t=lt(),n=st();return Tr=function(r){if("Function"===t(r))return n(r)}}(),n=jt(),r=m(),e=t(t.bind);return Cr=function(t,i){return n(t),void 0===i?t:r?e(t,i):function(){return t.apply(i,arguments)}},Cr}function ie(){if(Mr)return Nr;Mr=1;var t=lt();return Nr=Array.isArray||function(n){return"Array"===t(n)}}function oe(){if(kr)return Vr;kr=1;var t={};return t[fn()("toStringTag")]="z",Vr="[object z]"===String(t)}function ue(){if($r)return Dr;$r=1;var t=oe(),n=yt(),r=lt(),e=fn()("toStringTag"),i=Object,o="Arguments"===r(function(){return arguments}());return Dr=t?r:function(t){var u,f,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(f=function(t,n){try{return t[n]}catch(t){}}(u=i(t),e))?f:o?r(u):"Object"===(c=r(u))&&n(u.callee)?"Arguments":c}}function fe(){if(Fr)return Lr;Fr=1;var t=st(),n=y(),r=yt(),e=ue(),i=mt(),o=Bn(),u=function(){},f=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,a=t(c.exec),s=!c.test(u),l=function(t){if(!r(t))return!1;try{return f(u,[],t),!0}catch(t){return!1}},v=function(t){if(!r(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(c,o(t))}catch(t){return!0}};return v.sham=!0,Lr=!f||n(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function ce(){if(Gr)return Ur;Gr=1;var t=function(){if(Br)return zr;Br=1;var t=ie(),n=fe(),r=gt(),e=fn()("species"),i=Array;return zr=function(o){var u;return t(o)&&(u=o.constructor,(n(u)&&(u===i||t(u.prototype))||r(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?i:u}}();return Ur=function(n,r){return new(t(n))(0===r?0:r)}}function ae(){if(Kr)return Wr;Kr=1;var t=g(),n=xn(),r=at();return Wr=function(e,i,o){t?n.f(e,i,r(0,o)):e[i]=o}}function se(){if(qr)return Jr;qr=1;var t=ee(),n=vt(),r=en(),e=yr(),i=ce(),o=ae(),u=function(u){var f=1===u,c=2===u,a=3===u,s=4===u,l=6===u,v=7===u,p=5===u||l;return function(h,d,y){for(var g,m,b=r(h),w=n(b),O=e(w),S=t(d,y),x=0,E=0,_=f?i(h,O):c||v?i(h,0):void 0;O>x;x++)if((p||x in w)&&(m=S(g=w[x],x,b),u))if(f)o(_,x,m);else if(m)switch(u){case 3:return!0;case 5:return g;case 6:return x;case 2:o(_,E++,g)}else switch(u){case 4:return!1;case 7:o(_,E++,g)}return l?-1:a||s?s:_}};return Jr={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}function le(){if(Yr)return Hr;Yr=1;var t=y(),n=fn(),r=Ot(),e=n("species");return Hr=function(n){return r>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[n](Boolean).foo})}}!function(){if(Xr)return o;Xr=1;var t=re(),n=se().map;t({target:"Array",proto:!0,forced:!le()("map")},{map:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})}();var ve,pe,he,de={};function ye(){if(pe)return ve;pe=1;var t=Jn(),n=xn();return ve=function(r,e,i){return i.get&&t(i.get,e,{getter:!0}),i.set&&t(i.set,e,{setter:!0}),n.f(r,e,i)}}!function(){if(he)return de;he=1;var t=g(),n=zn().EXISTS,r=st(),e=ye(),i=Function.prototype,o=r(i.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=r(u.exec);t&&!n&&e(i,"name",{configurable:!0,get:function(){try{return f(u,o(this))[1]}catch(t){return""}}})}();var ge,me,be,we={};!function(){if(be)return we;be=1;var t=oe(),n=qn(),r=function(){if(me)return ge;me=1;var t=oe(),n=ue();return ge=t?{}.toString:function(){return"[object "+n(this)+"]"}}();t||n(Object.prototype,"toString",r,{unsafe:!0})}();var Oe,Se,xe={};function Ee(){if(Se)return Oe;Se=1;var t=ue(),n=String;return Oe=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return n(r)}}var _e,je,Ie,Pe,Te,Ae,Ce,Re={};function Ne(){if(je)return _e;je=1;var t=gr(),n=mr();return _e=Object.keys||function(r){return t(r,n)}}function Me(){if(Ie)return Re;Ie=1;var t=g(),n=On(),r=xn(),e=Sn(),i=dt(),o=Ne();return Re.f=t&&!n?Object.defineProperties:function(t,n){e(t);for(var u,f=i(n),c=o(n),a=c.length,s=0;a>s;)r.f(t,u=c[s++],f[u]);return t},Re}function Ve(){if(Te)return Pe;Te=1;var t=mt();return Pe=t("document","documentElement")}function ke(){if(Ce)return Ae;Ce=1;var t,n=Sn(),r=Me(),e=mr(),i=Wn(),o=Ve(),u=sn(),f=Gn(),c="prototype",a="script",s=f("IE_PROTO"),l=function(){},v=function(t){return"<"+a+">"+t+"</"+a+">"},p=function(t){t.write(v("")),t.close();var n=t.parentWindow.Object;return t=null,n},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var n,r,i;h="undefined"!=typeof document?document.domain&&t?p(t):(r=u("iframe"),i="java"+a+":",r.style.display="none",o.appendChild(r),r.src=String(i),(n=r.contentWindow.document).open(),n.write(v("document.F=Object")),n.close(),n.F):p(t);for(var f=e.length;f--;)delete h[c][e[f]];return h()};return i[s]=!0,Ae=Object.create||function(t,e){var i;return null!==t?(l[c]=n(t),i=new l,l[c]=null,i[s]=t):i=h(),void 0===e?i:r.f(i,e)}}var De,$e,Le,Fe={};function ze(){if($e)return De;$e=1;var t=st();return De=t([].slice)}function Be(){if(Le)return Fe;Le=1;var t=lt(),n=dt(),r=br().f,e=ze(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Fe.f=function(o){return i&&"Window"===t(o)?function(t){try{return r(t)}catch(t){return e(i)}}(o):r(n(o))},Fe}var Ue,Ge,We,Ke,Je,qe,He,Ye,Xe,Qe,Ze={};function ti(){if(Ue)return Ze;Ue=1;var t=fn();return Ze.f=t,Ze}function ni(){if(We)return Ge;We=1;var t=u();return Ge=t}function ri(){if(Je)return Ke;Je=1;var t=ni(),n=on(),r=ti(),e=xn().f;return Ke=function(i){var o=t.Symbol||(t.Symbol={});n(o,i)||e(o,i,{value:r.f(i)})}}function ei(){if(Xe)return Ye;Xe=1;var t=xn().f,n=on(),r=fn()("toStringTag");return Ye=function(e,i,o){e&&!o&&(e=e.prototype),e&&!n(e,r)&&t(e,r,{configurable:!0,value:i})}}var ii,oi,ui,fi={};function ci(){if(oi)return ii;oi=1;var t=St();return ii=t&&!!Symbol.for&&!!Symbol.keyFor}var ai,si,li,vi,pi,hi,di,yi,gi,mi,bi={},wi={};function Oi(){if(li)return si;li=1;var t=m(),n=Function.prototype,r=n.apply,e=n.call;return si="object"==typeof Reflect&&Reflect.apply||(t?e.bind(r):function(){return e.apply(r,arguments)}),si}var Si,xi,Ei={};xi||(xi=1,function(){if(Qe)return xe;Qe=1;var t=re(),n=u(),r=b(),e=st(),i=Zt(),o=g(),f=St(),c=y(),a=on(),s=bt(),l=Sn(),v=dt(),p=an(),h=Ee(),d=at(),m=ke(),w=Ne(),O=br(),S=Be(),x=Zr(),E=vn(),_=xn(),j=Me(),I=ct(),P=qn(),T=ye(),A=rn(),C=Gn(),R=Wn(),N=un(),M=fn(),V=ti(),k=ri(),D=function(){if(He)return qe;He=1;var t=b(),n=mt(),r=fn(),e=qn();return qe=function(){var i=n("Symbol"),o=i&&i.prototype,u=o&&o.valueOf,f=r("toPrimitive");o&&!o[f]&&e(o,f,function(n){return t(u,this)},{arity:1})}}(),$=ei(),L=Kn(),F=se().forEach,z=C("hidden"),B="Symbol",U="prototype",G=L.set,W=L.getterFor(B),K=Object[U],J=n.Symbol,q=J&&J[U],H=n.RangeError,Y=n.TypeError,X=n.QObject,Q=E.f,Z=_.f,tt=S.f,nt=I.f,rt=e([].push),et=A("symbols"),it=A("op-symbols"),ot=A("wks"),ut=!X||!X[U]||!X[U].findChild,ft=function(t,n,r){var e=Q(K,n);return e&&delete K[n],Z(t,n,r),e&&t!==K&&Z(K,n,e),t},lt=o&&c(function(){return 7!==m(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?ft:Z,vt=function(t,n){var r=et[t]=m(q);return G(r,{type:B,tag:t,description:n}),o||(r.description=n),r},pt=function(t,n,r){t===K&&pt(it,n,r),l(t);var e=p(n);return l(r),a(et,e)?(("enumerable"in r?!r.enumerable:!a(t,e)||a(t,z)&&t[z][e])?(a(t,z)||Z(t,z,d(1,m(null))),t[z][e]=!0):(a(t,z)&&t[z][e]&&(t[z][e]=!1),r=m(r,{enumerable:d(0,!1)})),lt(t,e,r)):Z(t,e,r)},ht=function(t,n){l(t);var e=v(n),i=w(e).concat(Ot(e));return F(i,function(n){o&&!r(yt,e,n)||pt(t,n,e[n])}),t},yt=function(t){var n=p(t),e=r(nt,this,n);return!(this===K&&a(et,n)&&!a(it,n))&&(!(e||!a(this,n)||!a(et,n)||a(this,z)&&this[z][n])||e)},gt=function(t,n){var r=v(t),e=p(n);if(r!==K||!a(et,e)||a(it,e)){var i=Q(r,e);return!i||!a(et,e)||a(r,z)&&r[z][e]||(i.enumerable=!0),i}},wt=function(t){var n=tt(v(t)),r=[];return F(n,function(t){a(et,t)||a(R,t)||rt(r,t)}),r},Ot=function(t){var n=t===K,r=tt(n?it:v(t)),e=[];return F(r,function(t){!a(et,t)||n&&!a(K,t)||rt(e,et[t])}),e};f||(J=function(){if(s(q,this))throw new Y("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?h(arguments[0]):void 0,e=N(t),i=function(t){var o=void 0===this?n:this;o===K&&r(i,it,t),a(o,z)&&a(o[z],e)&&(o[z][e]=!1);var u=d(1,t);try{lt(o,e,u)}catch(t){if(!(t instanceof H))throw t;ft(o,e,u)}};return o&&ut&<(K,e,{configurable:!0,set:i}),vt(e,t)},P(q=J[U],"toString",function(){return W(this).tag}),P(J,"withoutSetter",function(t){return vt(N(t),t)}),I.f=yt,_.f=pt,j.f=ht,E.f=gt,O.f=S.f=wt,x.f=Ot,V.f=function(t){return vt(M(t),t)},o&&(T(q,"description",{configurable:!0,get:function(){return W(this).description}}),i||P(K,"propertyIsEnumerable",yt,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!f,sham:!f},{Symbol:J}),F(w(ot),function(t){k(t)}),t({target:B,stat:!0,forced:!f},{useSetter:function(){ut=!0},useSimple:function(){ut=!1}}),t({target:"Object",stat:!0,forced:!f,sham:!o},{create:function(t,n){return void 0===n?m(t):ht(m(t),n)},defineProperty:pt,defineProperties:ht,getOwnPropertyDescriptor:gt}),t({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:wt}),D(),$(J,B),R[z]=!0}(),function(){if(ui)return fi;ui=1;var t=re(),n=mt(),r=on(),e=Ee(),i=rn(),o=ci(),u=i("string-to-symbol-registry"),f=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{for:function(t){var i=e(t);if(r(u,i))return u[i];var o=n("Symbol")(i);return u[i]=o,f[o]=i,o}})}(),function(){if(ai)return bi;ai=1;var t=re(),n=on(),r=Et(),e=_t(),i=rn(),o=ci(),u=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{keyFor:function(t){if(!r(t))throw new TypeError(e(t)+" is not a symbol");if(n(u,t))return u[t]}})}(),function(){if(mi)return wi;mi=1;var t=re(),n=mt(),r=Oi(),e=b(),i=st(),o=y(),u=ie(),f=yt(),c=function(){if(pi)return vi;pi=1;var t=gt(),n=Kn().get;return vi=function(r){if(!t(r))return!1;var e=n(r);return!!e&&"RawJSON"===e.type}}(),a=Et(),s=lt(),l=Ee(),v=ze(),p=function(){if(di)return hi;di=1;var t=st(),n=on(),r=SyntaxError,e=parseInt,i=String.fromCharCode,o=t("".charAt),u=t("".slice),f=t(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},a=/^[\da-f]{4}$/i,s=/^[\u0000-\u001F]$/;return hi=function(t,l){for(var v=!0,p="";l<t.length;){var h=o(t,l);if("\\"===h){var d=u(t,l,l+2);if(n(c,d))p+=c[d],l+=2;else{if("\\u"!==d)throw new r('Unknown escape sequence: "'+d+'"');var y=u(t,l+=2,l+4);if(!f(a,y))throw new r("Bad Unicode escape at: "+l);p+=i(e(y,16)),l+=4}}else{if('"'===h){v=!1,l++;break}if(f(s,h))throw new r("Bad control character in string literal at: "+l);p+=h,l++}}if(v)throw new r("Unterminated string at: "+l);return{value:p,end:l}}}(),h=un(),d=St(),g=function(){if(gi)return yi;gi=1;var t=y();return yi=!t(function(){var t="9007199254740993",n=JSON.rawJSON(t);return!JSON.isRawJSON(n)||JSON.stringify(n)!==t})}(),m=String,w=n("JSON","stringify"),O=i(/./.exec),S=i("".charAt),x=i("".charCodeAt),E=i("".replace),_=i("".slice),j=i([].push),I=i(1.1.toString),P=/[\uD800-\uDFFF]/g,T=/^[\uD800-\uDBFF]$/,A=/^[\uDC00-\uDFFF]$/,C=h(),R=C.length,N=!d||o(function(){var t=n("Symbol")("stringify detection");return"[null]"!==w([t])||"{}"!==w({a:t})||"{}"!==w(Object(t))}),M=o(function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")}),V=N?function(t,n){var i=v(arguments),o=D(n);if(f(o)||void 0!==t&&!a(t))return i[1]=function(t,n){if(f(o)&&(n=e(o,this,m(t),n)),!a(n))return n},r(w,null,i)}:w,k=function(t,n,r){var e=S(r,n-1),i=S(r,n+1);return O(T,t)&&!O(A,i)||O(A,t)&&!O(T,e)?"\\u"+I(x(t,0),16):t},D=function(t){if(f(t))return t;if(u(t)){for(var n=t.length,r=[],e=0;e<n;e++){var i=t[e];"string"==typeof i?j(r,i):"number"!=typeof i&&"Number"!==s(i)&&"String"!==s(i)||j(r,l(i))}var o=r.length,c=!0;return function(t,n){if(c)return c=!1,n;if(u(this))return n;for(var e=0;e<o;e++)if(r[e]===t)return n}}};w&&t({target:"JSON",stat:!0,arity:3,forced:N||M||!g},{stringify:function(t,n,r){var i=D(n),o=[],u=V(t,function(t,n){var r=f(i)?e(i,this,m(t),n):n;return!g&&c(r)?C+(j(o,r.rawJSON)-1):r},r);if("string"!=typeof u)return u;if(M&&(u=E(u,P,k)),g)return u;for(var a="",s=u.length,l=0;l<s;l++){var v=S(u,l);if('"'===v){var h=p(u,++l).end-1,d=_(u,l,h);a+=_(d,0,R)===C?o[_(d,R)]:'"'+d+'"',l=h}else a+=v}return a}})}(),function(){if(Si)return Ei;Si=1;var t=re(),n=St(),r=y(),e=Zr(),i=en();t({target:"Object",stat:!0,forced:!n||r(function(){e.f(1)})},{getOwnPropertySymbols:function(t){var n=e.f;return n?n(i(t)):[]}})}());var _i,ji,Ii,Pi={};!function(){if(_i)return Pi;_i=1;var t=re(),n=g(),r=u(),e=b(),i=st(),o=on(),f=yt(),c=bt(),a=Ee(),s=ye(),l=te(),v=r.Symbol,p=v&&v.prototype;if(n&&f(v)&&(!("description"in p)||void 0!==v().description)){var h={},d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:a(arguments[0]),n=c(p,this)?new v(t):void 0===t?v():v(t);return""===t&&(h[n]=!0),n};l(d,v);var y=d.for;d.for={for:function(t){var n=a(t),r=e(y,this,n);return""===n&&(h[r]=!0),r}}.for,d.prototype=p,p.constructor=d;var m="Symbol(description detection)"===String(v("description detection")),w=i(p.valueOf),O=i(p.toString),S=/^Symbol\((.*)\)[^)]+$/,x=i("".replace),E=i("".slice);s(p,"description",{configurable:!0,get:function(){var t=w(this);if(o(h,t))return"";var n=O(t),r=m?E(n,7,-1):x(n,S,"$1");return""===r?void 0:r}}),t({global:!0,constructor:!0,forced:!0},{Symbol:d})}}(),ji||(ji=1,ri()("asyncIterator")),Ii||(Ii=1,ri()("iterator"));var Ti,Ai,Ci,Ri,Ni,Mi,Vi,ki,Di,$i,Li,Fi,zi,Bi,Ui,Gi,Wi,Ki,Ji,qi,Hi,Yi,Xi,Qi,Zi,to,no,ro,eo,io,oo,uo={};function fo(){if(Ri)return Ci;Ri=1;var t=g(),n=ie(),r=TypeError,e=Object.getOwnPropertyDescriptor,i=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return Ci=i?function(t,i){if(n(t)&&!e(t,"length").writable)throw new r("Cannot set read only .length");return t.length=i}:function(t,n){return t.length=n}}function co(){if(Vi)return Mi;Vi=1;var t=fn(),n=ke(),r=xn().f,e=t("unscopables"),i=Array.prototype;return void 0===i[e]&&r(i,e,{configurable:!0,value:n(null)}),Mi=function(t){i[e][t]=!0}}function ao(){return Di?ki:(Di=1,ki={})}function so(){if(zi)return Fi;zi=1;var t=on(),n=yt(),r=en(),e=Gn(),i=function(){if(Li)return $i;Li=1;var t=y();return $i=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),o=e("IE_PROTO"),u=Object,f=u.prototype;return Fi=i?u.getPrototypeOf:function(e){var i=r(e);if(t(i,o))return i[o];var c=i.constructor;return n(c)&&i instanceof c?c.prototype:i instanceof u?f:null}}function lo(){if(Ui)return Bi;Ui=1;var t,n,r,e=y(),i=yt(),o=gt(),u=ke(),f=so(),c=qn(),a=fn(),s=Zt(),l=a("iterator"),v=!1;return[].keys&&("next"in(r=[].keys())?(n=f(f(r)))!==Object.prototype&&(t=n):v=!0),!o(t)||e(function(){var n={};return t[l].call(n)!==n})?t={}:s&&(t=u(t)),i(t[l])||c(t,l,function(){return this}),Bi={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:v}}function vo(){if(Xi)return Yi;Xi=1;var t=function(){if(Hi)return qi;Hi=1;var t=gt();return qi=function(n){return t(n)||null===n}}(),n=String,r=TypeError;return Yi=function(e){if(t(e))return e;throw new r("Can't set "+n(e)+" as a prototype")}}function po(){if(Zi)return Qi;Zi=1;var t=function(){if(Ji)return Ki;Ji=1;var t=st(),n=jt();return Ki=function(r,e,i){try{return t(n(Object.getOwnPropertyDescriptor(r,e)[i]))}catch(t){}}}(),n=gt(),r=ht(),e=vo();return Qi=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,u={};try{(i=t(Object.prototype,"__proto__","set"))(u,[]),o=u instanceof Array}catch(t){}return function(t,u){return r(t),e(u),n(t)?(o?i(t,u):t.__proto__=u,t):t}}():void 0)}function ho(){if(no)return to;no=1;var t=re(),n=b(),r=Zt(),e=zn(),i=yt(),o=function(){if(Wi)return Gi;Wi=1;var t=lo().IteratorPrototype,n=ke(),r=at(),e=ei(),i=ao(),o=function(){return this};return Gi=function(u,f,c,a){var s=f+" Iterator";return u.prototype=n(t,{next:r(+!a,c)}),e(u,s,!1,!0),i[s]=o,u}}(),u=so(),f=po(),c=ei(),a=En(),s=qn(),l=fn(),v=ao(),p=lo(),h=e.PROPER,d=e.CONFIGURABLE,y=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,m=l("iterator"),w="keys",O="values",S="entries",x=function(){return this};return to=function(e,l,p,b,E,_,j){o(p,l,b);var I,P,T,A=function(t){if(t===E&&V)return V;if(!g&&t&&t in N)return N[t];switch(t){case w:case O:case S:return function(){return new p(this,t)}}return function(){return new p(this)}},C=l+" Iterator",R=!1,N=e.prototype,M=N[m]||N["@@iterator"]||E&&N[E],V=!g&&M||A(E),k="Array"===l&&N.entries||M;if(k&&(I=u(k.call(new e)))!==Object.prototype&&I.next&&(r||u(I)===y||(f?f(I,y):i(I[m])||s(I,m,x)),c(I,C,!0,!0),r&&(v[C]=x)),h&&E===O&&M&&M.name!==O&&(!r&&d?a(N,"name",O):(R=!0,V=function(){return n(M,this)})),E)if(P={values:A(O),keys:_?V:A(w),entries:A(S)},j)for(T in P)(g||R||!(T in N))&&s(N,T,P[T]);else t({target:l,proto:!0,forced:g||R},P);return r&&!j||N[m]===V||s(N,m,V,{name:E}),v[l]=V,P}}function yo(){return eo?ro:(eo=1,ro=function(t,n){return{value:t,done:n}})}function go(){if(oo)return io;oo=1;var t=dt(),n=co(),r=ao(),e=Kn(),i=xn().f,o=ho(),u=yo(),f=Zt(),c=g(),a="Array Iterator",s=e.set,l=e.getterFor(a);io=o(Array,"Array",function(n,r){s(this,{type:a,target:t(n),index:0,kind:r})},function(){var t=l(this),n=t.target,r=t.index++;if(!n||r>=n.length)return t.target=null,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(n[r],!1)}return u([r,n[r]],!1)},"values");var v=r.Arguments=r.Array;if(n("keys"),n("values"),n("entries"),!f&&c&&"values"!==v.name)try{i(v,"name",{value:"values"})}catch(t){}return io}!function(){if(Ni)return uo;Ni=1;var t=re(),n=y(),r=ie(),e=gt(),i=en(),o=yr(),u=function(){if(Ai)return Ti;Ai=1;var t=TypeError;return Ti=function(n){if(n>9007199254740991)throw new t("Maximum allowed index exceeded");return n}}(),f=ae(),c=fo(),a=ce(),s=le(),l=fn(),v=Ot(),p=l("isConcatSpreadable"),h=v>=51||!n(function(){var t=[];return t[p]=!1,t.concat()[0]!==t}),d=function(t){if(!e(t))return!1;var n=t[p];return void 0!==n?!!n:r(t)};t({target:"Array",proto:!0,arity:1,forced:!h||!s("concat")},{concat:function(t){var n,r,e,s,l,v=i(this),p=a(v,0),h=0;for(n=-1,e=arguments.length;n<e;n++)if(d(l=-1===n?v:arguments[n]))for(s=o(l),u(h+s),r=0;r<s;r++,h++)r in l&&f(p,h,l[r]);else u(h+1),f(p,h++,l);return c(p,h),p}})}(),go();var mo,bo={};!function(){if(mo)return bo;mo=1;var t=re(),n=ie(),r=fe(),e=gt(),i=hr(),o=yr(),u=dt(),f=ae(),c=fo(),a=fn(),s=le(),l=ze(),v=s("slice"),p=a("species"),h=Array,d=Math.max;t({target:"Array",proto:!0,forced:!v},{slice:function(t,a){var s,v,y,g=u(this),m=o(g),b=i(t,m),w=i(void 0===a?m:a,m);if(n(g)&&(s=g.constructor,(r(s)&&(s===h||n(s.prototype))||e(s)&&null===(s=s[p]))&&(s=void 0),s===h||void 0===s))return l(g,b,w);for(v=new(void 0===s?h:s)(d(w-b,0)),y=0;b<w;b++,y++)b in g&&f(v,y,g[b]);return c(v,y),v}})}();var wo,Oo,So,xo={};!function(){if(So)return xo;So=1;var t=re(),n=function(){if(Oo)return wo;Oo=1;var t=g(),n=st(),r=b(),e=y(),i=Ne(),o=Zr(),u=ct(),f=en(),c=vt(),a=Object.assign,s=Object.defineProperty,l=n([].concat);return wo=!a||e(function(){if(t&&1!==a({b:1},a(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var n={},r={},e=Symbol("assign detection"),o="abcdefghijklmnopqrst";return n[e]=7,o.split("").forEach(function(t){r[t]=t}),7!==a({},n)[e]||i(a({},r)).join("")!==o})?function(n,e){for(var a=f(n),s=arguments.length,v=1,p=o.f,h=u.f;s>v;)for(var d,y=c(arguments[v++]),g=p?l(i(y),p(y)):i(y),m=g.length,b=0;m>b;)d=g[b++],t&&!r(h,y,d)||(a[d]=y[d]);return a}:a,wo}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})}();var Eo,_o={};!function(){if(Eo)return _o;Eo=1;var t=re(),n=y(),r=dt(),e=vn().f,i=g();t({target:"Object",stat:!0,forced:!i||n(function(){e(1)}),sham:!i},{getOwnPropertyDescriptor:function(t,n){return e(r(t),n)}})}();var jo,Io={};!function(){if(jo)return Io;jo=1;var t=re(),n=y(),r=Be().f;t({target:"Object",stat:!0,forced:n(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:r})}();var Po,To,Ao,Co,Ro,No,Mo,Vo,ko,Do,$o,Lo,Fo,zo,Bo,Uo,Go,Wo,Ko,Jo,qo,Ho,Yo,Xo,Qo,Zo,tu,nu,ru,eu,iu,ou,uu,fu,cu,au,su={};function lu(){if(To)return Po;To=1;var t=u(),n=wt(),r=lt(),e=function(t){return n.slice(0,t.length)===t};return Po=e("Bun/")?"BUN":e("Cloudflare-Workers")?"CLOUDFLARE":e("Deno/")?"DENO":e("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===r(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function vu(){if(Co)return Ao;Co=1;var t=lu();return Ao="NODE"===t}function pu(){if(No)return Ro;No=1;var t=mt(),n=ye(),r=fn(),e=g(),i=r("species");return Ro=function(r){var o=t(r);e&&o&&!o[i]&&n(o,i,{configurable:!0,get:function(){return this}})}}function hu(){if(Vo)return Mo;Vo=1;var t=bt(),n=TypeError;return Mo=function(r,e){if(t(e,r))return r;throw new n("Incorrect invocation")}}function du(){if(Lo)return $o;Lo=1;var t=Sn(),n=function(){if(Do)return ko;Do=1;var t=fe(),n=_t(),r=TypeError;return ko=function(e){if(t(e))return e;throw new r(n(e)+" is not a constructor")}}(),r=pt(),e=fn()("species");return $o=function(i,o){var u,f=t(i).constructor;return void 0===f||r(u=t(f)[e])?o:n(u)}}function yu(){if(Uo)return Bo;Uo=1;var t=wt();return Bo=/ipad|iphone|ipod/i.test(t)&&/applewebkit/i.test(t)}function gu(){if(Wo)return Go;Wo=1;var t,n,r,e,i=u(),o=Oi(),f=ee(),c=yt(),a=on(),s=y(),l=Ve(),v=ze(),p=sn(),h=function(){if(zo)return Fo;zo=1;var t=TypeError;return Fo=function(n,r){if(n<r)throw new t("Not enough arguments");return n}}(),d=yu(),g=vu(),m=i.setImmediate,b=i.clearImmediate,w=i.process,O=i.Dispatch,S=i.Function,x=i.MessageChannel,E=i.String,_=0,j={},I="onreadystatechange";s(function(){t=i.location});var P=function(t){if(a(j,t)){var n=j[t];delete j[t],n()}},T=function(t){return function(){P(t)}},A=function(t){P(t.data)},C=function(n){i.postMessage(E(n),t.protocol+"//"+t.host)};return m&&b||(m=function(t){h(arguments.length,1);var r=c(t)?t:S(t),e=v(arguments,1);return j[++_]=function(){o(r,void 0,e)},n(_),_},b=function(t){delete j[t]},g?n=function(t){w.nextTick(T(t))}:O&&O.now?n=function(t){O.now(T(t))}:x&&!d?(e=(r=new x).port2,r.port1.onmessage=A,n=f(e.postMessage,e)):i.addEventListener&&c(i.postMessage)&&!i.importScripts&&t&&"file:"!==t.protocol&&!s(C)?(n=C,i.addEventListener("message",A,!1)):n=I in p("script")?function(t){l.appendChild(p("script"))[I]=function(){l.removeChild(this),P(t)}}:function(t){setTimeout(T(t),0)}),Go={set:m,clear:b}}function mu(){if(Jo)return Ko;Jo=1;var t=u(),n=g(),r=Object.getOwnPropertyDescriptor;return Ko=function(e){if(!n)return t[e];var i=r(t,e);return i&&i.value}}function bu(){if(Ho)return qo;Ho=1;var t=function(){this.head=null,this.tail=null};return t.prototype={add:function(t){var n={item:t,next:null},r=this.tail;r?r.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},qo=t}function wu(){return ou?iu:(ou=1,iu=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}})}function Ou(){if(fu)return uu;fu=1;var t=u();return uu=t.Promise}function Su(){if(au)return cu;au=1;var t=u(),n=Ou(),r=yt(),e=ne(),i=Bn(),o=fn(),f=lu(),c=Zt(),a=Ot(),s=n&&n.prototype,l=o("species"),v=!1,p=r(t.PromiseRejectionEvent),h=e("Promise",function(){var t=i(n),r=t!==String(n);if(!r&&66===a)return!0;if(c&&(!s.catch||!s.finally))return!0;if(!a||a<51||!/native code/.test(t)){var e=new n(function(t){t(1)}),o=function(t){t(function(){},function(){})};if((e.constructor={})[l]=o,!(v=e.then(function(){})instanceof o))return!0}return!(r||"BROWSER"!==f&&"DENO"!==f||p)});return cu={CONSTRUCTOR:h,REJECTION_EVENT:p,SUBCLASSING:v}}var xu,Eu,_u={};function ju(){if(xu)return _u;xu=1;var t=jt(),n=TypeError,r=function(r){var e,i;this.promise=new r(function(t,r){if(void 0!==e||void 0!==i)throw new n("Bad Promise constructor");e=t,i=r}),this.resolve=t(e),this.reject=t(i)};return _u.f=function(t){return new r(t)},_u}var Iu,Pu,Tu,Au,Cu,Ru,Nu,Mu,Vu,ku,Du,$u,Lu,Fu,zu,Bu={};function Uu(){if(Pu)return Iu;Pu=1;var t=fn(),n=ao(),r=t("iterator"),e=Array.prototype;return Iu=function(t){return void 0!==t&&(n.Array===t||e[r]===t)}}function Gu(){if(Au)return Tu;Au=1;var t=ue(),n=It(),r=pt(),e=ao(),i=fn()("iterator");return Tu=function(o){if(!r(o))return n(o,i)||n(o,"@@iterator")||e[t(o)]}}function Wu(){if(Ru)return Cu;Ru=1;var t=b(),n=jt(),r=Sn(),e=_t(),i=Gu(),o=TypeError;return Cu=function(u,f){var c=arguments.length<2?i(u):f;if(n(c))return r(t(c,u));throw new o(e(u)+" is not iterable")},Cu}function Ku(){if(Mu)return Nu;Mu=1;var t=b(),n=Sn(),r=It();return Nu=function(e,i,o){var u,f;n(e);try{if(!(u=r(e,"return"))){if("throw"===i)throw o;return o}u=t(u,e)}catch(t){f=!0,u=t}if("throw"===i)throw o;if(f)throw u;return n(u),o}}function Ju(){if(ku)return Vu;ku=1;var t=ee(),n=b(),r=Sn(),e=_t(),i=Uu(),o=yr(),u=bt(),f=Wu(),c=Gu(),a=Ku(),s=TypeError,l=function(t,n){this.stopped=t,this.result=n},v=l.prototype;return Vu=function(p,h,d){var y,g,m,b,w,O,S,x=d&&d.that,E=!(!d||!d.AS_ENTRIES),_=!(!d||!d.IS_RECORD),j=!(!d||!d.IS_ITERATOR),I=!(!d||!d.INTERRUPTED),P=t(h,x),T=function(t){var n=y;return y=void 0,n&&a(n,"normal"),new l(!0,t)},A=function(t){return E?(r(t),I?P(t[0],t[1],T):P(t[0],t[1])):I?P(t,T):P(t)};if(_)y=p.iterator;else if(j)y=p;else{if(!(g=c(p)))throw new s(e(p)+" is not iterable");if(i(g)){for(m=0,b=o(p);b>m;m++)if((w=A(p[m]))&&u(v,w))return w;return new l(!1)}y=f(p,g)}for(O=_?p.next:y.next;!(S=n(O,y)).done;){var C=S.value;try{w=A(C)}catch(t){if(!y)throw t;a(y,"throw",t)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function qu(){if($u)return Du;$u=1;var t=fn()("iterator"),n=!1;try{var r=0,e={next:function(){return{done:!!r++}},return:function(){n=!0}};e[t]=function(){return this},Array.from(e,function(){throw 2})}catch(t){}return Du=function(r,e){try{if(!e&&!n)return!1}catch(t){return!1}var i=!1;try{var o={};o[t]=function(){return{next:function(){return{done:i=!0}}}},r(o)}catch(t){}return i}}function Hu(){if(Fu)return Lu;Fu=1;var t=Ou(),n=qu(),r=Su().CONSTRUCTOR;return Lu=r||!n(function(n){t.all(n).then(void 0,function(){})})}var Yu,Xu,Qu,Zu,tf,nf,rf,ef={},of={},uf={},ff={};function cf(){if(tf)return Zu;tf=1;var t=Sn(),n=gt(),r=ju();return Zu=function(e,i){if(t(e),n(i)&&i.constructor===e)return i;var o=r.f(e);return(0,o.resolve)(i),o.promise}}rf||(rf=1,function(){if(Eu)return su;Eu=1;var t,n,r,e,i=re(),o=Zt(),f=vu(),c=u(),a=ni(),s=b(),l=qn(),v=po(),p=ei(),h=pu(),d=jt(),y=yt(),g=gt(),m=hu(),w=du(),O=gu().set,S=function(){if(nu)return tu;nu=1;var t,n,r,e,i,o=u(),f=mu(),c=ee(),a=gu().set,s=bu(),l=yu(),v=function(){if(Xo)return Yo;Xo=1;var t=wt();return Yo=/ipad|iphone|ipod/i.test(t)&&"undefined"!=typeof Pebble}(),p=function(){if(Zo)return Qo;Zo=1;var t=wt();return Qo=/web0s(?!.*chrome)/i.test(t)}(),h=vu(),d=o.MutationObserver||o.WebKitMutationObserver,y=o.document,g=o.process,m=o.Promise,b=f("queueMicrotask");if(!b){var w=new s,O=function(){var n,r;for(h&&(n=g.domain)&&n.exit();r=w.get();)try{r()}catch(n){throw w.head&&t(),n}n&&n.enter()};l||h||p||!d||!y?!v&&m&&m.resolve?((e=m.resolve(void 0)).constructor=m,i=c(e.then,e),t=function(){i(O)}):h?t=function(){g.nextTick(O)}:(a=c(a,o),t=function(){a(O)}):(n=!0,r=y.createTextNode(""),new d(O).observe(r,{characterData:!0}),t=function(){r.data=n=!n}),b=function(n){w.head||t(),w.add(n)}}return tu=b}(),x=(eu||(eu=1,ru=function(t,n){try{1===arguments.length?console.error(t):console.error(t,n)}catch(t){}}),ru),E=wu(),_=bu(),j=Kn(),I=Ou(),P=Su(),T=ju(),A="Promise",C=P.CONSTRUCTOR,R=P.REJECTION_EVENT,N=P.SUBCLASSING,M=j.getterFor(A),V=j.set,k=I&&I.prototype,D=I,$=k,L=c.TypeError,F=c.document,z=c.process,B=T.f,U=B,G=!!(F&&F.createEvent&&c.dispatchEvent),W="unhandledrejection",K=function(t){var n;return!(!g(t)||!y(n=t.then))&&n},J=function(t,n){var r,e,i,o=n.value,u=1===n.state,f=u?t.ok:t.fail,c=t.resolve,a=t.reject,l=t.domain;try{f?(u||(2===n.rejection&&Q(n),n.rejection=1),!0===f?r=o:(l&&l.enter(),r=f(o),l&&(l.exit(),i=!0)),r===t.promise?a(new L("Promise-chain cycle")):(e=K(r))?s(e,r,c,a):c(r)):a(o)}catch(t){l&&!i&&l.exit(),a(t)}},q=function(t,n){t.notified||(t.notified=!0,S(function(){for(var r,e=t.reactions;r=e.get();)J(r,t);t.notified=!1,n&&!t.rejection&&Y(t)}))},H=function(t,n,r){var e,i;G?((e=F.createEvent("Event")).promise=n,e.reason=r,e.initEvent(t,!1,!0),c.dispatchEvent(e)):e={promise:n,reason:r},!R&&(i=c["on"+t])?i(e):t===W&&x("Unhandled promise rejection",r)},Y=function(t){s(O,c,function(){var n,r=t.facade,e=t.value;if(X(t)&&(n=E(function(){f?z.emit("unhandledRejection",e,r):H(W,r,e)}),t.rejection=f||X(t)?2:1,n.error))throw n.value})},X=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){s(O,c,function(){var n=t.facade;f?z.emit("rejectionHandled",n):H("rejectionhandled",n,t.value)})},Z=function(t,n,r){return function(e){t(n,e,r)}},tt=function(t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,q(t,!0))},nt=function(t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===n)throw new L("Promise can't be resolved itself");var e=K(n);e?S(function(){var r={done:!1};try{s(e,n,Z(nt,r,t),Z(tt,r,t))}catch(n){tt(r,n,t)}}):(t.value=n,t.state=1,q(t,!1))}catch(n){tt({done:!1},n,t)}}};if(C&&($=(D=function(n){m(this,$),d(n),s(t,this);var r=M(this);try{n(Z(nt,r),Z(tt,r))}catch(t){tt(r,t)}}).prototype,(t=function(t){V(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:null})}).prototype=l($,"then",function(t,n){var r=M(this),e=B(w(this,D));return r.parent=!0,e.ok=!y(t)||t,e.fail=y(n)&&n,e.domain=f?z.domain:void 0,0===r.state?r.reactions.add(e):S(function(){J(e,r)}),e.promise}),n=function(){var n=new t,r=M(n);this.promise=n,this.resolve=Z(nt,r),this.reject=Z(tt,r)},T.f=B=function(t){return t===D||t===r?new n(t):U(t)},!o&&y(I)&&k!==Object.prototype)){e=k.then,N||l(k,"then",function(t,n){var r=this;return new D(function(t,n){s(e,r,t,n)}).then(t,n)},{unsafe:!0});try{delete k.constructor}catch(t){}v&&v(k,$)}i({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:D}),r=a.Promise,p(D,A,!1,!0),h(A)}(),function(){if(zu)return Bu;zu=1;var t=re(),n=b(),r=jt(),e=ju(),i=wu(),o=Ju();t({target:"Promise",stat:!0,forced:Hu()},{all:function(t){var u=this,f=e.f(u),c=f.resolve,a=f.reject,s=i(function(){var e=r(u.resolve),i=[],f=0,s=1;o(t,function(t){var r=f++,o=!1;s++,n(e,u,t).then(function(t){o||(o=!0,i[r]=t,--s||c(i))},a)}),--s||c(i)});return s.error&&a(s.value),f.promise}})}(),function(){if(Yu)return ef;Yu=1;var t=re(),n=Zt(),r=Su().CONSTRUCTOR,e=Ou(),i=mt(),o=yt(),u=qn(),f=e&&e.prototype;if(t({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(t){return this.then(void 0,t)}}),!n&&o(e)){var c=i("Promise").prototype.catch;f.catch!==c&&u(f,"catch",c,{unsafe:!0})}}(),function(){if(Xu)return of;Xu=1;var t=re(),n=b(),r=jt(),e=ju(),i=wu(),o=Ju();t({target:"Promise",stat:!0,forced:Hu()},{race:function(t){var u=this,f=e.f(u),c=f.reject,a=i(function(){var e=r(u.resolve);o(t,function(t){n(e,u,t).then(f.resolve,c)})});return a.error&&c(a.value),f.promise}})}(),function(){if(Qu)return uf;Qu=1;var t=re(),n=ju();t({target:"Promise",stat:!0,forced:Su().CONSTRUCTOR},{reject:function(t){var r=n.f(this);return(0,r.reject)(t),r.promise}})}(),function(){if(nf)return ff;nf=1;var t=re(),n=mt(),r=Zt(),e=Ou(),i=Su().CONSTRUCTOR,o=cf(),u=n("Promise"),f=r&&!i;t({target:"Promise",stat:!0,forced:r||i},{resolve:function(t){return o(f&&this===u?e:this,t)}})}());var af,sf,lf,vf,pf,hf,df,yf,gf,mf,bf,wf={};function Of(){if(sf)return af;sf=1;var t=Sn();return af=function(){var n=t(this),r="";return n.hasIndices&&(r+="d"),n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.unicodeSets&&(r+="v"),n.sticky&&(r+="y"),r}}function Sf(){if(vf)return lf;vf=1;var t=y(),n=u().RegExp,r=t(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=r||t(function(){return!n("a","y").sticky}),i=r||t(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return lf={BROKEN_CARET:i,MISSED_STICKY:e,UNSUPPORTED_Y:r}}function xf(){if(mf)return gf;mf=1;var t,n,r=b(),e=st(),i=Ee(),o=Of(),f=Sf(),c=rn(),a=ke(),s=Kn().get,l=function(){if(hf)return pf;hf=1;var t=y(),n=u().RegExp;return pf=t(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),v=function(){if(yf)return df;yf=1;var t=y(),n=u().RegExp;return df=t(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),p=c("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,d=h,g=e("".charAt),m=e("".indexOf),w=e("".replace),O=e("".slice),S=(n=/b*/g,r(h,t=/a/,"a"),r(h,n,"a"),0!==t.lastIndex||0!==n.lastIndex),x=f.BROKEN_CARET,E=void 0!==/()??/.exec("")[1],_=function(t,n){for(var r=t.groups=a(null),e=0;e<n.length;e++){var i=n[e];r[i[0]]=t[i[1]]}};return(S||E||x||l||v)&&(d=function(t){var n,e,u,f=this,c=s(f),a=i(t),l=c.raw;if(l)return l.lastIndex=f.lastIndex,n=r(d,l,a),f.lastIndex=l.lastIndex,n&&c.groups&&_(n,c.groups),n;var v=c.groups,y=x&&f.sticky,b=r(o,f),j=f.source,I=0,P=a;if(y){b=w(b,"y",""),-1===m(b,"g")&&(b+="g"),P=O(a,f.lastIndex);var T=f.lastIndex>0&&g(a,f.lastIndex-1);f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==T&&"\r"!==T&&"\u2028"!==T&&"\u2029"!==T)&&(j="(?: (?:"+j+"))",P=" "+P,I++),e=new RegExp("^(?:"+j+")",b)}E&&(e=new RegExp("^"+j+"$(?!\\s)",b)),S&&(u=f.lastIndex);var A=r(h,y?e:f,P);return y?A?(A.input=a,A[0]=O(A[0],I),A.index=f.lastIndex,f.lastIndex+=A[0].length):f.lastIndex=0:S&&A&&(f.lastIndex=f.global?A.index+A[0].length:u),E&&A&&A.length>1&&r(p,A[0],e,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(A[t]=void 0)}),A&&v&&_(A,v),A}),gf=d}function Ef(){if(bf)return wf;bf=1;var t=re(),n=xf();return t({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n}),wf}Ef();var _f,jf,If,Pf={};function Tf(){if(jf)return _f;jf=1;var t=st(),n=pr(),r=Ee(),e=ht(),i=t("".charAt),o=t("".charCodeAt),u=t("".slice),f=function(t){return function(f,c){var a,s,l=r(e(f)),v=n(c),p=l.length;return v<0||v>=p?t?"":void 0:(a=o(l,v))<55296||a>56319||v+1===p||(s=o(l,v+1))<56320||s>57343?t?i(l,v):a:t?u(l,v,v+2):s-56320+(a-55296<<10)+65536}};return _f={codeAt:f(!1),charAt:f(!0)}}!function(){if(If)return Pf;If=1;var t=Tf().charAt,n=Ee(),r=Kn(),e=ho(),i=yo(),o="String Iterator",u=r.set,f=r.getterFor(o);e(String,"String",function(t){u(this,{type:o,string:n(t),index:0})},function(){var n,r=f(this),e=r.string,o=r.index;return o>=e.length?i(void 0,!0):(n=t(e,o),r.index+=n.length,i(n,!1))})}();var Af,Cf,Rf,Nf,Mf,Vf,kf,Df,$f,Lf,Ff,zf,Bf,Uf={};function Gf(){if(Cf)return Af;Cf=1,Ef();var t=b(),n=qn(),r=xf(),e=y(),i=fn(),o=En(),u=i("species"),f=RegExp.prototype;return Af=function(c,a,s,l){var v=i(c),p=!e(function(){var t={};return t[v]=function(){return 7},7!==""[c](t)}),h=p&&!e(function(){var t=!1,n=/a/;if("split"===c){var r={};r[u]=function(){return n},(n={constructor:r,flags:""})[v]=/./[v]}return n.exec=function(){return t=!0,null},n[v](""),!t});if(!p||!h||s){var d=/./[v],y=a(v,""[c],function(n,e,i,o,u){var c=e.exec;return c===r||c===f.exec?p&&!u?{done:!0,value:t(d,e,i,o)}:{done:!0,value:t(n,i,e,o)}:{done:!1}});n(String.prototype,c,y[0]),n(f,v,y[1])}l&&o(f[v],"sham",!0)}}function Wf(){if(Nf)return Rf;Nf=1;var t=Tf().charAt;return Rf=function(n,r,e){return r+(e&&t(n,r).length||1)}}function Kf(){if(Lf)return $f;Lf=1;var t=b(),n=on(),r=bt(),e=function(){if(Df)return kf;Df=1;var t=u(),n=y(),r=t.RegExp,e=!n(function(){var t=!0;try{r(".","d")}catch(n){t=!1}var n={},e="",i=t?"dgimsy":"gimsy",o=function(t,r){Object.defineProperty(n,t,{get:function(){return e+=r,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in t&&(u.hasIndices="d"),u)o(f,u[f]);return Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(n)!==i||e!==i});return kf={correct:e}}(),i=Of(),o=RegExp.prototype;return $f=e.correct?function(t){return t.flags}:function(u){return e.correct||!r(o,u)||n(u,"flags")?u.flags:t(i,u)}}function Jf(){if(zf)return Ff;zf=1;var t=b(),n=Sn(),r=yt(),e=lt(),i=xf(),o=TypeError;return Ff=function(u,f){var c=u.exec;if(r(c)){var a=t(c,u,f);return null!==a&&n(a),a}if("RegExp"===e(u))return t(i,u,f);throw new o("RegExp#exec called on incompatible receiver")}}!function(){if(Bf)return Uf;Bf=1;var t=Oi(),n=b(),r=st(),e=Gf(),i=y(),o=Sn(),u=yt(),f=gt(),c=pr(),a=dr(),s=Ee(),l=ht(),v=Wf(),p=It(),h=function(){if(Vf)return Mf;Vf=1;var t=st(),n=en(),r=Math.floor,e=t("".charAt),i=t("".replace),o=t("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;return Mf=function(t,c,a,s,l,v){var p=a+t.length,h=s.length,d=f;return void 0!==l&&(l=n(l),d=u),i(v,d,function(n,i){var u;switch(e(i,0)){case"$":return"$";case"&":return t;case"`":return o(c,0,a);case"'":return o(c,p);case"<":u=l[o(i,1,-1)];break;default:var f=+i;if(0===f)return n;if(f>h){var v=r(f/10);return 0===v?n:v<=h?void 0===s[v-1]?e(i,1):s[v-1]+e(i,1):n}u=s[f-1]}return void 0===u?"":u})}}(),d=Kf(),g=Jf(),m=fn()("replace"),w=Math.max,O=Math.min,S=r([].concat),x=r([].push),E=r("".indexOf),_=r("".slice),j=function(t){return void 0===t?t:String(t)},I="$0"==="a".replace(/./,"$0"),P=!!/./[m]&&""===/./[m]("a","$0");e("replace",function(r,e,i){var y=P?"$":"$0";return[function(t,r){var i=l(this),o=f(t)?p(t,m):void 0;return o?n(o,t,i,r):n(e,s(i),t,r)},function(n,r){var f=o(this),l=s(n),p=u(r);p||(r=s(r));var m=s(d(f));if("string"==typeof r&&!~E(r,y)&&!~E(r,"$<")&&!~E(m,"y")){var b=i(e,f,l,r);if(b.done)return b.value}var I,P=!!~E(m,"g");P&&(I=!!~E(m,"u")||!!~E(m,"v"),f.lastIndex=0);for(var T,A=[];null!==(T=g(f,l))&&(x(A,T),P);)""===s(T[0])&&(f.lastIndex=v(l,a(f.lastIndex),I));for(var C="",R=0,N=0;N<A.length;N++){for(var M,V=s((T=A[N])[0]),k=w(O(c(T.index),l.length),0),D=[],$=1;$<T.length;$++)x(D,j(T[$]));var L=T.groups;if(p){var F=S([V],D,k,l);void 0!==L&&x(F,L),M=s(t(r,void 0,F))}else M=h(V,l,k,D,L,r);k>=R&&(C+=_(l,R,k)+M,R=k+V.length)}return C+_(l,R)}]},!!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!I||P)}();var qf,Hf,Yf={};Hf||(Hf=1,function(){if(qf)return Yf;qf=1;var t=u(),n=ri(),r=xn().f,e=vn().f,i=t.Symbol;if(n("dispose"),i){var o=e(i,"dispose");o.enumerable&&o.configurable&&o.writable&&r(i,"dispose",{value:o.value,enumerable:!1,configurable:!1,writable:!1})}}());var Xf,Qf,Zf,tc,nc,rc={};function ec(){return Qf?Xf:(Qf=1,Xf={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function ic(){if(tc)return Zf;tc=1;var t=sn()("span").classList,n=t&&t.constructor&&t.constructor.prototype;return Zf=n===Object.prototype?void 0:n}!function(){if(nc)return rc;nc=1;var t=u(),n=ec(),r=ic(),e=go(),i=En(),o=ei(),f=fn()("iterator"),c=e.values,a=function(t,r){if(t){if(t[f]!==c)try{i(t,f,c)}catch(n){t[f]=c}if(o(t,r,!0),n[r])for(var u in e)if(t[u]!==e[u])try{i(t,u,e[u])}catch(n){t[u]=e[u]}}};for(var s in n)a(t[s]&&t[s].prototype,s);a(r,"DOMTokenList")}();var oc=function(t,n){return oc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},oc(t,n)};function uc(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}oc(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var fc=function(){return fc=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t},fc.apply(this,arguments)};function cc(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,i,o=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(t){i={error:t}}finally{try{e&&!e.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return u}function ac(t,n,r){if(r||2===arguments.length)for(var e,i=0,o=n.length;i<o;i++)!e&&i in n||(e||(e=Array.prototype.slice.call(n,0,i)),e[i]=n[i]);return t.concat(e||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;var sc,lc,vc,pc,hc,dc={};!function(){if(hc)return dc;hc=1;var t=re(),n=function(){if(pc)return vc;pc=1;var t=ee(),n=b(),r=en(),e=function(){if(lc)return sc;lc=1;var t=Sn(),n=Ku();return sc=function(r,e,i,o){try{return o?e(t(i)[0],i[1]):e(i)}catch(t){n(r,"throw",t)}}}(),i=Uu(),o=fe(),u=yr(),f=ae(),c=fo(),a=Wu(),s=Gu(),l=Ku(),v=Array;return vc=function(p){var h=o(this),d=arguments.length,y=d>1?arguments[1]:void 0,g=void 0!==y;g&&(y=t(y,d>2?arguments[2]:void 0));var m,b,w,O,S,x,E=r(p),_=s(E),j=0;if(!_||this===v&&i(_))for(m=u(E),b=h?new this(m):v(m);m>j;j++)x=g?y(E[j],j):E[j],f(b,j,x);else for(b=h?new this:[],S=(O=a(E,_)).next;!(w=n(S,O)).done;j++){x=g?e(O,y,[w.value,j],!0):w.value;try{f(b,j,x)}catch(t){l(O,"throw",t)}}return c(b,j),b},vc}();t({target:"Array",stat:!0,forced:!qu()(function(t){Array.from(t)})},{from:n})}();var yc,gc,mc,bc,wc,Oc,Sc,xc,Ec,_c,jc,Ic,Pc,Tc,Ac,Cc,Rc,Nc={exports:{}};function Mc(){if(Oc)return wc;Oc=1;var t=y();return wc=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}function Vc(){if(Sc)return Nc.exports;Sc=1;var t=re(),n=st(),r=Wn(),e=gt(),i=on(),o=xn().f,u=br(),f=Be(),c=function(){if(bc)return mc;bc=1;var t=y(),n=gt(),r=lt(),e=function(){if(gc)return yc;gc=1;var t=y();return yc=t(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})}(),i=Object.isExtensible,o=t(function(){});return mc=o||e?function(t){return!!n(t)&&(!e||"ArrayBuffer"!==r(t))&&(!i||i(t))}:i}(),a=un(),s=Mc(),l=!1,v=a("meta"),p=0,h=function(t){o(t,v,{value:{objectID:"O"+p++,weakData:{}}})},d=Nc.exports={enable:function(){d.enable=function(){},l=!0;var r=u.f,e=n([].splice),i={};i[v]=1,r(i).length&&(u.f=function(t){for(var n=r(t),i=0,o=n.length;i<o;i++)if(n[i]===v){e(n,i,1);break}return n},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,n){if(!e(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,v)){if(!c(t))return"F";if(!n)return"E";h(t)}return t[v].objectID},getWeakData:function(t,n){if(!i(t,v)){if(!c(t))return!0;if(!n)return!1;h(t)}return t[v].weakData},onFreeze:function(t){return s&&l&&c(t)&&!i(t,v)&&h(t),t}};return r[v]=!0,Nc.exports}function kc(){if(jc)return _c;jc=1;var t=re(),n=u(),r=st(),e=ne(),i=qn(),o=Vc(),f=Ju(),c=hu(),a=yt(),s=pt(),l=gt(),v=y(),p=qu(),h=ei(),d=function(){if(Ec)return xc;Ec=1;var t=yt(),n=gt(),r=po();return xc=function(e,i,o){var u,f;return r&&t(u=i.constructor)&&u!==o&&n(f=u.prototype)&&f!==o.prototype&&r(e,f),e}}();return _c=function(u,y,g){var m=-1!==u.indexOf("Map"),b=-1!==u.indexOf("Weak"),w=m?"set":"add",O=n[u],S=O&&O.prototype,x=O,E={},_=function(t){var n=r(S[t]);i(S,t,"add"===t?function(t){return n(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!l(t))&&n(this,0===t?0:t)}:"get"===t?function(t){return b&&!l(t)?void 0:n(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!l(t))&&n(this,0===t?0:t)}:function(t,r){return n(this,0===t?0:t,r),this})};if(e(u,!a(O)||!(b||S.forEach&&!v(function(){(new O).entries().next()}))))x=g.getConstructor(y,u,m,w),o.enable();else if(e(u,!0)){var j=new x,I=j[w](b?{}:-0,1)!==j,P=v(function(){j.has(1)}),T=p(function(t){new O(t)}),A=!b&&v(function(){for(var t=new O,n=5;n--;)t[w](n,n);return!t.has(-0)});T||((x=y(function(t,n){c(t,S);var r=d(new O,t,x);return s(n)||f(n,r[w],{that:r,AS_ENTRIES:m}),r})).prototype=S,S.constructor=x),(P||A)&&(_("delete"),_("has"),m&&_("get")),(A||I)&&_(w),b&&S.clear&&delete S.clear}return E[u]=x,t({global:!0,constructor:!0,forced:x!==O},E),h(x,u),b||g.setStrong(x,u,m),x}}function Dc(){if(Pc)return Ic;Pc=1;var t=qn();return Ic=function(n,r,e){for(var i in r)t(n,i,r[i],e);return n}}function $c(){if(Ac)return Tc;Ac=1;var t=ke(),n=ye(),r=Dc(),e=ee(),i=hu(),o=pt(),u=Ju(),f=ho(),c=yo(),a=pu(),s=g(),l=Vc().fastKey,v=Kn(),p=v.set,h=v.getterFor;return Tc={getConstructor:function(f,c,a,v){var d=f(function(n,r){i(n,y),p(n,{type:c,index:t(null),first:null,last:null,size:0}),s||(n.size=0),o(r)||u(r,n[v],{that:n,AS_ENTRIES:a})}),y=d.prototype,g=h(c),m=function(t,n,r){var e,i,o=g(t),u=b(t,n);return u?u.value=r:(o.last=u={index:i=l(n,!0),key:n,value:r,previous:e=o.last,next:null,removed:!1},o.first||(o.first=u),e&&(e.next=u),s?o.size++:t.size++,"F"!==i&&(o.index[i]=u)),t},b=function(t,n){var r,e=g(t),i=l(n);if("F"!==i)return e.index[i];for(r=e.first;r;r=r.next)if(r.key===n)return r};return r(y,{clear:function(){for(var n=g(this),r=n.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=null),r=r.next;n.first=n.last=null,n.index=t(null),s?n.size=0:this.size=0},delete:function(t){var n=this,r=g(n),e=b(n,t);if(e){var i=e.next,o=e.previous;delete r.index[e.index],e.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first===e&&(r.first=i),r.last===e&&(r.last=o),s?r.size--:n.size--}return!!e},forEach:function(t){for(var n,r=g(this),i=e(t,arguments.length>1?arguments[1]:void 0);n=n?n.next:r.first;)for(i(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(t){return!!b(this,t)}}),r(y,a?{get:function(t){var n=b(this,t);return n&&n.value},set:function(t,n){return m(this,0===t?0:t,n)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),s&&n(y,"size",{configurable:!0,get:function(){return g(this).size}}),d},setStrong:function(t,n,r){var e=n+" Iterator",i=h(n),o=h(e);f(t,n,function(t,n){p(this,{type:e,target:t,state:i(t),kind:n,last:null})},function(){for(var t=o(this),n=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?c("keys"===n?r.key:"values"===n?r.value:[r.key,r.value],!1):(t.target=null,c(void 0,!0))},r?"entries":"values",!r,!0),a(n)}},Tc}Rc||(Rc=1,Cc||(Cc=1,kc()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},$c())));var Lc,Fc,zc,Bc,Uc={};Bc||(Bc=1,function(){if(zc)return Uc;zc=1;var t,n=Mc(),r=u(),e=st(),i=Dc(),o=Vc(),f=kc(),c=function(){if(Fc)return Lc;Fc=1;var t=st(),n=Dc(),r=Vc().getWeakData,e=hu(),i=Sn(),o=pt(),u=gt(),f=Ju(),c=se(),a=on(),s=Kn(),l=s.set,v=s.getterFor,p=c.find,h=c.findIndex,d=t([].splice),y=0,g=function(t){return t.frozen||(t.frozen=new m)},m=function(){this.entries=[]},b=function(t,n){return p(t.entries,function(t){return t[0]===n})};return m.prototype={get:function(t){var n=b(this,t);if(n)return n[1]},has:function(t){return!!b(this,t)},set:function(t,n){var r=b(this,t);r?r[1]=n:this.entries.push([t,n])},delete:function(t){var n=h(this.entries,function(n){return n[0]===t});return~n&&d(this.entries,n,1),!!~n}},Lc={getConstructor:function(t,c,s,p){var h=t(function(t,n){e(t,d),l(t,{type:c,id:y++,frozen:null}),o(n)||f(n,t[p],{that:t,AS_ENTRIES:s})}),d=h.prototype,m=v(c),b=function(t,n,e){var o=m(t),u=r(i(n),!0);return!0===u?g(o).set(n,e):u[o.id]=e,t};return n(d,{delete:function(t){var n=m(this);if(!u(t))return!1;var e=r(t);return!0===e?g(n).delete(t):e&&a(e,n.id)&&delete e[n.id]},has:function(t){var n=m(this);if(!u(t))return!1;var e=r(t);return!0===e?g(n).has(t):e&&a(e,n.id)}}),n(d,s?{get:function(t){var n=m(this);if(u(t)){var e=r(t);if(!0===e)return g(n).get(t);if(e)return e[n.id]}},set:function(t,n){return b(this,t,n)}}:{add:function(t){return b(this,t,!0)}}),h}}}(),a=gt(),s=Kn().enforce,l=y(),v=Un(),p=Object,h=Array.isArray,d=p.isExtensible,g=p.isFrozen,m=p.isSealed,b=p.freeze,w=p.seal,O=!r.ActiveXObject&&"ActiveXObject"in r,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},x=f("WeakMap",S,c),E=x.prototype,_=e(E.set);if(v)if(O){t=c.getConstructor(S,"WeakMap",!0),o.enable();var j=e(E.delete),I=e(E.has),P=e(E.get);i(E,{delete:function(n){if(a(n)&&!d(n)){var r=s(this);return r.frozen||(r.frozen=new t),j(this,n)||r.frozen.delete(n)}return j(this,n)},has:function(n){if(a(n)&&!d(n)){var r=s(this);return r.frozen||(r.frozen=new t),I(this,n)||r.frozen.has(n)}return I(this,n)},get:function(n){if(a(n)&&!d(n)){var r=s(this);return r.frozen||(r.frozen=new t),I(this,n)?P(this,n):r.frozen.get(n)}return P(this,n)},set:function(n,r){if(a(n)&&!d(n)){var e=s(this);e.frozen||(e.frozen=new t),I(this,n)?_(this,n,r):e.frozen.set(n,r)}else _(this,n,r);return this}})}else n&&l(function(){var t=b([]);return _(new x,t,1),!g(t)})&&i(E,{set:function(t,n){var r;return h(t)&&(g(t)?r=b:m(t)&&(r=w)),_(this,t,n),r&&r(t),this}})}());var Gc=new Map,Wc=new WeakMap;function Kc(t,n){if(!1!==n)return"string"==typeof n?n:!0===n?function(t){return Wc.has(t)||Wc.set(t,Symbol(t.name||"anonymous")),Wc.get(t)}(t):void 0}function Jc(t,n){var r=Gc.get(t);r&&r!==n&&r.unmount(),Gc.set(t,n)}function qc(t){Gc.delete(t)}var Hc,Yc={};!function(){if(Hc)return Yc;Hc=1;var t=re(),n=en(),r=Ne();t({target:"Object",stat:!0,forced:y()(function(){r(1)})},{keys:function(t){return r(n(t))}})}();var Xc,Qc,Zc,ta,na,ra={};!function(){if(na)return ra;na=1;var t=u(),n=ec(),r=ic(),e=function(){if(ta)return Zc;ta=1;var t=se().forEach,n=function(){if(Qc)return Xc;Qc=1;var t=y();return Xc=function(n,r){var e=[][n];return!!e&&t(function(){e.call(null,r||function(){return 1},1)})}}()("forEach");return Zc=n?[].forEach:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)},Zc}(),i=En(),o=function(t){if(t&&t.forEach!==e)try{i(t,"forEach",e)}catch(n){t.forEach=e}};for(var f in n)n[f]&&o(t[f]&&t[f].prototype);o(r)}();var ea={installed:!1};function ia(t){Object.assign(ea,t)}function oa(t){return fc(fc({},ea),t)}var ua,fa={};!function(){if(ua)return fa;ua=1;var t=re(),n=se().find,r=co(),e="find",i=!0;e in[]&&Array(1)[e](function(){i=!1}),t({target:"Array",proto:!0,forced:i},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),r(e)}();var ca,aa,sa,la={};!function(){if(sa)return la;sa=1;var t=re(),n=function(){if(aa)return ca;aa=1;var t=g(),n=y(),r=st(),e=so(),i=Ne(),o=dt(),u=r(ct().f),f=r([].push),c=t&&n(function(){var t=Object.create(null);return t[2]=2,!u(t,2)}),a=function(n){return function(r){for(var a,s=o(r),l=i(s),v=c&&null===e(s),p=l.length,h=0,d=[];p>h;)a=l[h++],t&&!(v?a in s:u(s,a))||f(d,n?[a,s[a]]:s[a]);return d}};return ca={entries:a(!0),values:a(!1)}}().entries;t({target:"Object",stat:!0},{entries:function(t){return n(t)}})}();var va,pa,ha,da={};!function(){if(va)return da;va=1;var t=re(),n=Zt(),r=Ou(),e=y(),i=mt(),o=yt(),u=du(),f=cf(),c=qn(),a=r&&r.prototype;if(t({target:"Promise",proto:!0,real:!0,forced:!!r&&e(function(){a.finally.call({then:function(){}},function(){})})},{finally:function(t){var n=u(this,i("Promise")),r=o(t);return this.then(r?function(r){return f(n,t()).then(function(){return r})}:t,r?function(r){return f(n,t()).then(function(){throw r})}:t)}}),!n&&o(r)){var s=i("Promise").prototype.finally;a.finally!==s&&c(a,"finally",s,{unsafe:!0})}}(),ha||(ha=1,pa||(pa=1,kc()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},$c())));var ya,ga={};!function(){if(ya)return ga;ya=1;var t=re(),n=se().filter;t({target:"Array",proto:!0,forced:!le()("filter")},{filter:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})}();var ma,ba={};function wa(){return"undefined"!=typeof document}function Oa(t){return t?"string"==typeof t?wa()?document.querySelector(t):null:t:null}function Sa(t,n){if(void 0===t&&(t="div"),!wa())throw new TypeError("This plugin works in browser");var r=document.createElement(t);return n&&Object.entries(n).forEach(function(t){var n=cc(t,2),e=n[0],i=n[1];r.setAttribute(e,i)}),r}function xa(t,n){if(wa()){var r=Oa(n);r?r.appendChild(t):document.body.appendChild(t)}}function Ea(t){t.parentNode&&t.parentNode.removeChild(t)}function _a(t){return document.body.contains(t)}function ja(t,n){void 0!==n&&(t.style.zIndex=String(n))}!function(){if(ma)return ba;ma=1;var t=b(),n=st(),r=Gf(),e=Sn(),i=gt(),o=ht(),u=du(),f=Wf(),c=dr(),a=Ee(),s=It(),l=Kf(),v=Jf(),p=Sf(),h=y(),d=p.UNSUPPORTED_Y,g=Math.min,m=n([].push),w=n("".slice),O=n("".indexOf),S=!h(function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;r("split",function(n,r,p){var h="0".split(void 0,0).length?function(n,e){return void 0===n&&0===e?[]:t(r,this,n,e)}:r;return[function(r,e){var u=o(this),f=i(r)?s(r,n):void 0;return f?t(f,r,u,e):t(h,a(u),r,e)},function(t,n){var i=e(this),o=a(t);if(!x){var s=p(h,i,o,n,h!==r);if(s.done)return s.value}var y=u(i,RegExp),b=a(l(i)),S=!!~O(b,"u")||!!~O(b,"v");d?~O(b,"g")||(b+="g"):~O(b,"y")||(b+="y");var E=new y(d?"^(?:"+i.source+")":i,b),_=void 0===n?4294967295:n>>>0;if(0===_)return[];if(0===o.length)return null===v(E,o)?[o]:[];for(var j=0,I=0,P=[];I<o.length;){E.lastIndex=d?0:I;var T,A=v(E,d?w(o,I):o);if(null===A||(T=g(c(E.lastIndex+(d?I:0)),o.length))===j)I=f(o,I,S);else{if(m(P,w(o,j,I)),P.length===_)return P;for(var C=1;C<=A.length-1;C++)if(m(P,A[C]),P.length===_)return P;I=j=T}}return m(P,w(o,j)),P}]},x||!S,d)}();var Ia,Pa={};!function(){if(Ia)return Pa;Ia=1;var t=zn().PROPER,n=qn(),r=Sn(),e=Ee(),i=y(),o=Kf(),u="toString",f=RegExp.prototype,c=f[u],a=i(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),s=t&&c.name!==u;(a||s)&&n(f,u,function(){var t=r(this);return"/"+e(t.source)+"/"+e(o(t))},{unsafe:!0})}();var Ta=function(){function t(){this.events=new Map}return t.prototype.on=function(t,n){return this.events.has(t)||this.events.set(t,new Set),this.events.get(t).add(n),this},t.prototype.off=function(t,n){var r;return n?null===(r=this.events.get(t))||void 0===r||r.delete(n):this.events.delete(t),this},t.prototype.emit=function(t){for(var n,r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return null===(n=this.events.get(t))||void 0===n||n.forEach(function(n){try{n.apply(void 0,ac([],cc(r),!1))}catch(n){console.error('Error in event handler for "'.concat(t,'":'),n)}}),this},t.prototype.has=function(t){return this.events.has(t)&&this.events.get(t).size>0},t.prototype.clear=function(){this.events.clear()},t.prototype.eventNames=function(){return Array.from(this.events.keys())},t}(),Aa=0;function Ca(){return"mount-".concat(++Aa,"-").concat(Date.now().toString(36))}function Ra(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Na(t){return t.replace(/-([a-z])/g,function(t,n){return n.toUpperCase()})}function Ma(t){return"on".concat(Ra(Na(t)))}var Va=new Set,ka=function(){function t(t,n){void 0===n&&(n={});var r=this;this.mounted=!1,this.el=null,this._eventEmitter=new Ta,this._autoCreatedTarget=!1,this._hidden=!1,this._destroyed=!1,this._resolved=!1,this.destroy=this.unmount,this.remove=this.unmount,this.id=Ca(),this._component=t,this.options=oa(n),this._promise=new Promise(function(t,n){r._resolve=t,r._reject=n}),this._singletonKey=Kc(t,n.singleton),this._singletonKey&&Jc(this._singletonKey,this),Va.add(this)}return t.prototype.show=function(){var t,n,r,e;return this.mounted&&!this._hidden||(null===(n=(t=this.options).onBeforeMount)||void 0===n||n.call(t,this),this._ensureElement(),this._mountVM(),this.options.zIndex&&this.el&&ja(this.el,this.options.zIndex),this.mounted=!0,this._hidden=!1,null===(e=(r=this.options).onMounted)||void 0===e||e.call(r,this),this.emit("show",this)),this},t.prototype.hide=function(){return!this.mounted||this._hidden||(this.emit("beforeHide",this),this.el&&_a(this.el)&&Ea(this.el),this._hidden=!0,this.emit("hide",this)),this},t.prototype.unmount=function(){var t,n,r,e;this._destroyed||(this._destroyed=!0,(this.mounted||this._hidden)&&(null===(n=(t=this.options).onBeforeUnmount)||void 0===n||n.call(t,this)),this._eventEmitter.emit("beforeUnmount",this),this._unmountVM(),this._autoCreatedTarget&&this.el&&Ea(this.el),this.mounted=!1,this._hidden=!1,this.el=null,this.vm=null,Va.delete(this),this._singletonKey&&qc(this._singletonKey),null===(e=(r=this.options).onUnmounted)||void 0===e||e.call(r,this),this._eventEmitter.clear())},t.prototype.setProps=function(t){return this.options=fc(fc({},this.options),{props:fc(fc({},this.options.props),t)}),this.mounted&&this._updateVM(),this},t.prototype.on=function(t,n){return this._eventEmitter.on(t,n),this},t.prototype.off=function(t,n){return this._eventEmitter.off(t,n),this},t.prototype.emit=function(t){for(var n,r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return this._destroyed||(n=this._eventEmitter).emit.apply(n,ac([t],cc(r),!1)),this},t.prototype.then=function(t){return this._promise.then(t)},t.prototype.catch=function(t){return this._promise.catch(t)},t.prototype.finally=function(t){return this._promise.finally(t)},t.prototype.setTarget=function(t){return this.options.target=t,this},t.prototype.setHooks=function(t){return this.options=fc(fc({},this.options),t),this},t.prototype.setSlots=function(t){return this.options=fc(fc({},this.options),{slots:fc(fc({},this.options.slots),t)}),this},t.prototype._ensureElement=function(){if(!this.el){var t=Oa(this.options.target);t instanceof Element?(this.el=t,this._autoCreatedTarget=!1):(this.el=Sa(this.options.tagName||"div",{"data-mount-id":this.id}),this._autoCreatedTarget=!0)}},t.prototype._appendElementToDOM=function(){this.el&&this._autoCreatedTarget&&xa(this.el,null)},t.prototype._resolvePromise=function(t){this._resolved||(this._resolved=!0,this._resolve(t))},t.prototype._rejectPromise=function(t){this._reject(t)},t.prototype._mergeListenersToProps=function(t){var n={};return Object.entries(t).forEach(function(t){var r=cc(t,2),e=r[0],i=r[1],o=Ma(e);n[o]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"function"==typeof i&&i.apply(void 0,ac([],cc(t),!1))}}),n},Object.defineProperty(t,"instances",{get:function(){return Array.from(Va)},enumerable:!1,configurable:!0}),t.unmountAll=function(){Va.forEach(function(t){return t.unmount()})},t.getById=function(t){return Array.from(Va).find(function(n){return n.id===t})},t}();function Da(){return Array.from(Va)}function $a(t){return ka.getById(t)}function La(t,n){var r=n.context||{};return t&&(t._isVue||t.$options)?fc({router:t.$router||r.router,store:t.$store||r.store,i18n:t.$i18n||r.i18n,route:t.$route},r):r}var Fa,za=function(t){function r(r,e){void 0===e&&(e={});var i=t.call(this,r,e)||this;if(i.vm=null,i._vue2Instance=null,!n.isVue2)throw new Error("MountVue2 can only be used with Vue 2");return i._createVM(),i}return uc(r,t),r.prototype._createVM=function(){var t=this,r=n.Vue2,e=this.options,i=e.props,o=e.parent,u=e.listeners,f=e.on,c=fc(fc({},u),f),a=La(o,this.options),s=this._component;this._component.options&&(s=this._component.options);var l=new(r.extend(s))({propsData:i||{},parent:o});a.router&&Object.defineProperty(l,"$router",{get:function(){return a.router},configurable:!0}),a.store&&Object.defineProperty(l,"$store",{get:function(){return a.store},configurable:!0}),a.i18n&&Object.defineProperty(l,"$i18n",{get:function(){return a.i18n},configurable:!0}),Object.entries(c).forEach(function(t){var n=cc(t,2),r=n[0],e=n[1];Array.isArray(e)?e.forEach(function(t){return l.$on(r,t)}):l.$on(r,e)});var v=l.$emit.bind(l);l.$emit=function(n){for(var r,e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return(r=t._eventEmitter).emit.apply(r,ac([n],cc(e),!1)),v.apply(void 0,ac([n],cc(e),!1))},l.$on("close",function(n){t._resolvePromise(n),t.unmount()}),l._mountId=this.id,this._vue2Instance=l},r.prototype._mountVM=function(){this._vue2Instance&&(this._ensureElement(),this._appendElementToDOM(),this._vue2Instance.$mount(this.el),this._vue2Instance.$el&&(this.el=this._vue2Instance.$el),this.vm=this._vue2Instance,this.mounted=!0)},r.prototype._unmountVM=function(){this._vue2Instance&&(this._vue2Instance.$destroy(),this._vue2Instance=null),this.vm=null,this.mounted=!1},r.prototype._updateVM=function(){this._vue2Instance&&this.options.props&&Object.assign(this._vue2Instance.$props,this.options.props)},r}(ka);function Ba(){return function(t,n,r,e){return new(r||(r=Promise))(function(i,o){function u(t){try{c(e.next(t))}catch(t){o(t)}}function f(t){try{c(e.throw(t))}catch(t){o(t)}}function c(t){var n;t.done?i(t.value):(n=t.value,n instanceof r?n:new r(function(t){t(n)})).then(u,f)}c((e=e.apply(t,n||[])).next())})}(this,void 0,void 0,function(){var t;return function(t,n){var r,e,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=f(0),u.throw=f(1),u.return=f(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function f(f){return function(c){return function(f){if(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,f[0]&&(o=0)),o;)try{if(r=1,e&&(i=2&f[0]?e.return:f[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,f[1])).done)return i;switch(e=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,e=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==f[0]&&2!==f[0])){o=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){o.label=f[1];break}if(6===f[0]&&o.label<i[1]){o.label=i[1],i=f;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(f);break}i[2]&&o.ops.pop(),o.trys.pop();continue}f=n.call(t,o)}catch(t){f=[6,t],e=0}finally{r=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,c])}}}(this,function(n){switch(n.label){case 0:return Fa?[2,Fa]:[4,import("vue")];case 1:return t=n.sent(),[2,Fa=t.render]}})})}var Ua=function(t){function r(r,e){void 0===e&&(e={});var i=t.call(this,r,e)||this;if(i.vm=null,i._vNode=null,n.isVue2)throw new Error("MountVue3 can only be used with Vue 3");return i._createVM(),i}return uc(r,t),r.prototype._createVM=function(){var t=this,r=this.options,e=r.props,i=r.children,o=r.app,u=r.listeners,f=r.on,c=r.slots,a=fc(fc({},u),f),s=fc(fc(fc({},e),this._mergeListenersToProps(a)),{onClose:function(n){t._resolvePromise(n),t.unmount()}}),l=c?fc(fc({},c),i?{default:i}:{}):i,v=n.h(this._component,s,l);(null==o?void 0:o._context)&&(v.appContext=o._context),this._vNode=v},r.prototype._mountVM=function(){var t=this;this._vNode||this._createVM(),this._ensureElement(),this._appendElementToDOM(),Ba().then(function(n){var r,e;if(n&&t._vNode&&t.el){n(t._vNode,t.el),t.vm=null!==(e=null===(r=t._vNode.component)||void 0===r?void 0:r.proxy)&&void 0!==e?e:null;var i=t._vNode.component;if(i){var o=i.emit;i.emit=function(n){for(var r,e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];return(r=t._eventEmitter).emit.apply(r,ac([n],cc(e),!1)),o.call.apply(o,ac([i,n],cc(e),!1))}}}}),this.mounted=!0},r.prototype._unmountVM=function(){var t=this;this._vNode&&(Ba().then(function(n){n&&t.el&&n(null,t.el)}),this._vNode=null),this.vm=null,this.mounted=!1},r.prototype._updateVM=function(){var t=this;this._createVM(),this.mounted&&this.el&&this._vNode&&Ba().then(function(n){var r,e;n&&(n(t._vNode,t.el),t.vm=null!==(e=null===(r=t._vNode.component)||void 0===r?void 0:r.proxy)&&void 0!==e?e:null)})},r}(ka);function Ga(){var t=n.ref([]),r=function(){t.value.forEach(function(t){return t.unmount()}),t.value=[]},e=n.computed(function(){return t.value.length});return n.isVue2||n.onUnmounted(r),{instances:t,mount:function(n,r){var e=Wa(n,r);return t.value.push(e),e.show(),e},unmount:function(n){n.unmount(),t.value=t.value.filter(function(t){return t!==n})},unmountAll:r,getById:function(n){return t.value.find(function(t){return t.id===n})},hasInstances:function(){return t.value.length>0},count:e}}function Wa(t,r){return void 0===r&&(r={}),n.isVue2?new za(t,r):new Ua(t,r)}function Ka(t,n){return void 0===n&&(n={}),Wa(t,n).show()}var Ja={install:function(t,r){void 0===r&&(r={}),ia(fc(fc({},r),{installed:!0}));var e=r.name||"$show";n.isVue2?t.prototype[e]=Ka:t.config.globalProperties[e]=Ka}};t.EventEmitter=Ta,t.MountBase=ka,t.MountPlugin=Ja,t.MountVue2=za,t.MountVue3=Ua,t.addClass=function(t,n){var r;n&&(r=t.classList).add.apply(r,ac([],cc(n.split(/\s+/).filter(Boolean)),!1))},t.appendTo=xa,t.capitalize=Ra,t.clearSingletons=function(){Gc.forEach(function(t){return t.unmount()}),Gc.clear()},t.createElement=Sa,t.createInstanceId=Ca,t.createMount=Wa,t.eventToPropName=Ma,t.getActiveInstanceIds=function(){return Da().map(function(t){return t.id})},t.getCurrentComponentContext=function(t){var n;if(!t)return{};var r={};return t.$router&&(r.router=t.$router),t.$store&&(r.store=t.$store),t.$i18n&&(r.i18n=t.$i18n),(null===(n=t.$)||void 0===n?void 0:n.appContext)&&(r.appContext=t.$.appContext),r},t.getGlobalConfig=function(){return fc({},ea)},t.getInstanceById=$a,t.getInstances=Da,t.getSingleton=function(t){return Gc.get(t)},t.getSingletonKey=Kc,t.getSingletonKeys=function(){return Array.from(Gc.keys())},t.globalConfig=ea,t.hasSingleton=function(t){return Gc.has(t)},t.inheritVue2Context=La,t.inheritVue3Context=function(t,n){return(null==t?void 0:t._context)?{appContext:t._context,provides:t._context.provides}:{}},t.isBrowser=wa,t.isInDOM=_a,t.isMounted=function(t){var n,r=$a(t);return null!==(n=null==r?void 0:r.mounted)&&void 0!==n&&n},t.isNodeEnv=function(){var t;return"undefined"!=typeof process&&!!(null===(t=process.versions)||void 0===t?void 0:t.node)},t.mergeWithGlobalConfig=oa,t.mount=Ka,t.removeClass=function(t,n){var r;n&&(r=t.classList).remove.apply(r,ac([],cc(n.split(/\s+/).filter(Boolean)),!1))},t.removeElement=Ea,t.removeSingleton=qc,t.resetGlobalConfig=function(){Object.keys(ea).forEach(function(t){delete ea[t]}),ea.installed=!1},t.resolveTarget=Oa,t.setGlobalConfig=ia,t.setSingleton=Jc,t.setZIndex=ja,t.toCamelCase=Na,t.unmountAll=function(){ka.unmountAll()},t.useMount=Ga,t.useSingleton=function(){return{getOrCreate:function(t,n,r){var e=Ga().instances.value.find(function(n){return n.id===t||n.options.singleton===t});if(e)return e;var i=Wa(n,fc(fc({},r),{singleton:t}));return i.show(),i}}}});
|
package/dist/index.iife.js
CHANGED
|
@@ -126,7 +126,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
126
126
|
);
|
|
127
127
|
;
|
|
128
128
|
/*!
|
|
129
|
-
* vue-mount-plugin v4.0.0-beta.
|
|
129
|
+
* vue-mount-plugin v4.0.0-beta.5
|
|
130
130
|
* A simple and easy to use vue instance extension plugin that supports vue2.0 and vue3.0
|
|
131
131
|
* (c) 2021-2026 saqqdy <https://github.com/saqqdy>
|
|
132
132
|
* Released under the MIT License.
|
|
@@ -507,8 +507,13 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
507
507
|
function capitalize(str) {
|
|
508
508
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
509
509
|
}
|
|
510
|
+
function toCamelCase(str) {
|
|
511
|
+
return str.replace(/-([a-z])/g, function (_, letter) {
|
|
512
|
+
return letter.toUpperCase();
|
|
513
|
+
});
|
|
514
|
+
}
|
|
510
515
|
function eventToPropName(event) {
|
|
511
|
-
return "on".concat(capitalize(event));
|
|
516
|
+
return "on".concat(capitalize(toCamelCase(event)));
|
|
512
517
|
}
|
|
513
518
|
|
|
514
519
|
var instances = new Set();
|
|
@@ -523,6 +528,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
523
528
|
_defineProperty(this, "_autoCreatedTarget", false);
|
|
524
529
|
_defineProperty(this, "_hidden", false);
|
|
525
530
|
_defineProperty(this, "_destroyed", false);
|
|
531
|
+
_defineProperty(this, "_resolved", false);
|
|
526
532
|
_defineProperty(this, "destroy", this.unmount);
|
|
527
533
|
_defineProperty(this, "remove", this.unmount);
|
|
528
534
|
this.id = createInstanceId();
|
|
@@ -688,6 +694,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
688
694
|
}, {
|
|
689
695
|
key: "_resolvePromise",
|
|
690
696
|
value: function _resolvePromise(value) {
|
|
697
|
+
if (this._resolved) return;
|
|
698
|
+
this._resolved = true;
|
|
691
699
|
this._resolve(value);
|
|
692
700
|
}
|
|
693
701
|
}, {
|
|
@@ -703,7 +711,12 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
703
711
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
704
712
|
event = _ref2[0],
|
|
705
713
|
handler = _ref2[1];
|
|
706
|
-
|
|
714
|
+
var propName = eventToPropName(event);
|
|
715
|
+
result[propName] = function () {
|
|
716
|
+
if (typeof handler === 'function') {
|
|
717
|
+
handler.apply(void 0, arguments);
|
|
718
|
+
}
|
|
719
|
+
};
|
|
707
720
|
});
|
|
708
721
|
return result;
|
|
709
722
|
}
|
|
@@ -853,8 +866,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
853
866
|
(_this2$_eventEmitter = _this2._eventEmitter).emit.apply(_this2$_eventEmitter, [event].concat(args));
|
|
854
867
|
return originalEmit.apply(void 0, [event].concat(args));
|
|
855
868
|
};
|
|
856
|
-
instance.$on('close', function () {
|
|
857
|
-
_this2._resolvePromise(
|
|
869
|
+
instance.$on('close', function (value) {
|
|
870
|
+
_this2._resolvePromise(value);
|
|
858
871
|
_this2.unmount();
|
|
859
872
|
});
|
|
860
873
|
instance._mountId = this.id;
|
|
@@ -933,8 +946,8 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
933
946
|
on = _this$options.on,
|
|
934
947
|
slots = _this$options.slots;
|
|
935
948
|
var mergedListeners = _objectSpread2(_objectSpread2({}, listeners), on);
|
|
936
|
-
var onClose = function onClose() {
|
|
937
|
-
_this2._resolvePromise(
|
|
949
|
+
var onClose = function onClose(value) {
|
|
950
|
+
_this2._resolvePromise(value);
|
|
938
951
|
_this2.unmount();
|
|
939
952
|
};
|
|
940
953
|
var mergedProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props), this._mergeListenersToProps(mergedListeners)), {}, {
|
|
@@ -963,6 +976,18 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
963
976
|
var _this3$_vNode$compone, _this3$_vNode$compone2;
|
|
964
977
|
render(_this3._vNode, _this3.el);
|
|
965
978
|
_this3.vm = (_this3$_vNode$compone = (_this3$_vNode$compone2 = _this3._vNode.component) === null || _this3$_vNode$compone2 === void 0 ? void 0 : _this3$_vNode$compone2.proxy) !== null && _this3$_vNode$compone !== void 0 ? _this3$_vNode$compone : null;
|
|
979
|
+
var component = _this3._vNode.component;
|
|
980
|
+
if (component) {
|
|
981
|
+
var originalEmit = component.emit;
|
|
982
|
+
component.emit = function (event) {
|
|
983
|
+
var _this3$_eventEmitter;
|
|
984
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
985
|
+
args[_key - 1] = arguments[_key];
|
|
986
|
+
}
|
|
987
|
+
(_this3$_eventEmitter = _this3._eventEmitter).emit.apply(_this3$_eventEmitter, [event].concat(args));
|
|
988
|
+
return originalEmit.call.apply(originalEmit, [component, event].concat(args));
|
|
989
|
+
};
|
|
990
|
+
}
|
|
966
991
|
}
|
|
967
992
|
});
|
|
968
993
|
this.mounted = true;
|
|
@@ -1005,6 +1030,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1005
1030
|
var mount = function mount(component, options) {
|
|
1006
1031
|
var instance = createMount(component, options);
|
|
1007
1032
|
instances.value.push(instance);
|
|
1033
|
+
instance.show();
|
|
1008
1034
|
return instance;
|
|
1009
1035
|
};
|
|
1010
1036
|
var unmount = function unmount(instance) {
|
|
@@ -1027,9 +1053,9 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1027
1053
|
var hasInstances = function hasInstances() {
|
|
1028
1054
|
return instances.value.length > 0;
|
|
1029
1055
|
};
|
|
1030
|
-
var count = function
|
|
1056
|
+
var count = vueDemi.computed(function () {
|
|
1031
1057
|
return instances.value.length;
|
|
1032
|
-
};
|
|
1058
|
+
});
|
|
1033
1059
|
if (!vueDemi.isVue2) {
|
|
1034
1060
|
vueDemi.onUnmounted(unmountAll);
|
|
1035
1061
|
}
|
|
@@ -1055,6 +1081,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1055
1081
|
var instance = createMount(component, _objectSpread2(_objectSpread2({}, options), {}, {
|
|
1056
1082
|
singleton: key
|
|
1057
1083
|
}));
|
|
1084
|
+
instance.show();
|
|
1058
1085
|
return instance;
|
|
1059
1086
|
};
|
|
1060
1087
|
return {
|
|
@@ -1138,6 +1165,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
1138
1165
|
exports.setGlobalConfig = setGlobalConfig;
|
|
1139
1166
|
exports.setSingleton = setSingleton;
|
|
1140
1167
|
exports.setZIndex = setZIndex;
|
|
1168
|
+
exports.toCamelCase = toCamelCase;
|
|
1141
1169
|
exports.unmountAll = unmountAll;
|
|
1142
1170
|
exports.useMount = useMount;
|
|
1143
1171
|
exports.useSingleton = useSingleton;
|
package/dist/index.iife.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _VueDemiGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,VueDemi=function(e,t,n){if(e.install)return e;if(!t)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),e;if("2.7."===t.version.slice(0,4)){for(var o in t)e[o]=t[o];e.isVue2=!0,e.isVue3=!1,e.install=function(){},e.Vue=t,e.Vue2=t,e.version=t.version,e.warn=t.util.warn,e.hasInjectionContext=function(){return!!e.getCurrentInstance()},e.createApp=function(e,n){var o,i={},r={config:t.config,use:t.use.bind(t),mixin:t.mixin.bind(t),component:t.component.bind(t),provide:function(e,t){return i[e]=t,this},directive:function(e,n){return n?(t.directive(e,n),r):t.directive(e)},mount:function(r,u){return o||((o=new t(Object.assign({propsData:n},e,{provide:Object.assign(i,e.provide)}))).$mount(r,u),o)},unmount:function(){o&&(o.$destroy(),o=void 0)}};return r}}else if("2."===t.version.slice(0,2))if(n){for(var o in n)e[o]=n[o];e.isVue2=!0,e.isVue3=!1,e.install=function(){},e.Vue=t,e.Vue2=t,e.version=t.version,e.hasInjectionContext=function(){return!!e.getCurrentInstance()}}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if("3."===t.version.slice(0,2)){for(var o in t)e[o]=t[o];e.isVue2=!1,e.isVue3=!0,e.install=function(){},e.Vue=t,e.Vue2=void 0,e.version=t.version,e.set=function(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)},e.del=function(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}}else console.error("[vue-demi] Vue version "+t.version+" is unsupported.");return e}(_VueDemiGlobal.VueDemi=_VueDemiGlobal.VueDemi||(void 0!==VueDemi?VueDemi:{}),_VueDemiGlobal.Vue||("undefined"!=typeof Vue?Vue:void 0),_VueDemiGlobal.VueCompositionAPI||("undefined"!=typeof VueCompositionAPI?VueCompositionAPI:void 0));!function(e,t){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function o(e,t,n,o,i,r,u){try{var s=e[r](u),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(o,i)}function i(e,t,n){return t=a(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,u,s=[],l=!0,a=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(o=r.call(n)).done)&&(s.push(o.value),s.length!==t);l=!0);}catch(e){a=!0,i=e}finally{try{if(!l&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(a)throw i}}return s}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function g(e,t){if(e){if("string"==typeof e)return n(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}var _=new Map,b=new WeakMap;function V(e,t){if(!1!==t)return"string"==typeof t?t:!0===t?function(e){return b.has(e)||b.set(e,Symbol(e.name||"anonymous")),b.get(e)}(e):void 0}function w(e,t){var n=_.get(e);n&&n!==t&&n.unmount(),_.set(e,t)}function O(e){_.delete(e)}var j={installed:!1};function k(e){Object.assign(j,e)}function E(e){return v(v({},j),e)}function I(){return"undefined"!=typeof document}function P(e){return e?"string"==typeof e?I()?document.querySelector(e):null:e:null}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1?arguments[1]:void 0;if(!I())throw new TypeError("This plugin works in browser");var n=document.createElement(e);return t&&Object.entries(t).forEach(function(e){var t=p(e,2),o=t[0],i=t[1];n.setAttribute(o,i)}),n}function M(e,t){if(I()){var n=P(t);n?n.appendChild(e):document.body.appendChild(e)}}function A(e){e.parentNode&&e.parentNode.removeChild(e)}function $(e){return document.body.contains(e)}function x(e,t){void 0!==t&&(e.style.zIndex=String(t))}var S=s(function e(){r(this,e),l(this,"events",new Map)},[{key:"on",value:function(e,t){return this.events.has(e)||this.events.set(e,new Set),this.events.get(e).add(t),this}},{key:"off",value:function(e,t){var n;return t?null===(n=this.events.get(e))||void 0===n||n.delete(t):this.events.delete(e),this}},{key:"emit",value:function(e){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return null===(t=this.events.get(e))||void 0===t||t.forEach(function(t){try{t.apply(void 0,o)}catch(t){console.error('Error in event handler for "'.concat(e,'":'),t)}}),this}},{key:"has",value:function(e){return this.events.has(e)&&this.events.get(e).size>0}},{key:"clear",value:function(){this.events.clear()}},{key:"eventNames",value:function(){return Array.from(this.events.keys())}}]),T=0;function D(){return"mount-".concat(++T,"-").concat(Date.now().toString(36))}function N(e){return e.charAt(0).toUpperCase()+e.slice(1)}var B=new Set,G=s(function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),l(this,"mounted",!1),l(this,"el",null),l(this,"_eventEmitter",new S),l(this,"_autoCreatedTarget",!1),l(this,"_hidden",!1),l(this,"_destroyed",!1),l(this,"destroy",this.unmount),l(this,"remove",this.unmount),this.id=D(),this._component=t,this.options=E(o),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t}),this._singletonKey=V(t,o.singleton),this._singletonKey&&w(this._singletonKey,this),B.add(this)},[{key:"show",value:function(){var e,t,n,o;return this.mounted&&!this._hidden||(null===(e=(t=this.options).onBeforeMount)||void 0===e||e.call(t,this),this._ensureElement(),this._mountVM(),this.options.zIndex&&this.el&&x(this.el,this.options.zIndex),this.mounted=!0,this._hidden=!1,null===(n=(o=this.options).onMounted)||void 0===n||n.call(o,this),this.emit("show",this)),this}},{key:"hide",value:function(){return!this.mounted||this._hidden||(this.emit("beforeHide",this),this.el&&$(this.el)&&A(this.el),this._hidden=!0,this.emit("hide",this)),this}},{key:"unmount",value:function(){var e,t,n,o;this._destroyed||(this._destroyed=!0,(this.mounted||this._hidden)&&(null===(n=(o=this.options).onBeforeUnmount)||void 0===n||n.call(o,this)),this._eventEmitter.emit("beforeUnmount",this),this._unmountVM(),this._autoCreatedTarget&&this.el&&A(this.el),this.mounted=!1,this._hidden=!1,this.el=null,this.vm=null,B.delete(this),this._singletonKey&&O(this._singletonKey),null===(e=(t=this.options).onUnmounted)||void 0===e||e.call(t,this),this._eventEmitter.clear())}},{key:"setProps",value:function(e){return this.options=v(v({},this.options),{},{props:v(v({},this.options.props),e)}),this.mounted&&this._updateVM(),this}},{key:"on",value:function(e,t){return this._eventEmitter.on(e,t),this}},{key:"off",value:function(e,t){return this._eventEmitter.off(e,t),this}},{key:"emit",value:function(e){var t;if(this._destroyed)return this;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this._eventEmitter).emit.apply(t,[e].concat(o)),this}},{key:"then",value:function(e){return this._promise.then(e)}},{key:"catch",value:function(e){return this._promise.catch(e)}},{key:"finally",value:function(e){return this._promise.finally(e)}},{key:"setTarget",value:function(e){return this.options.target=e,this}},{key:"setHooks",value:function(e){return this.options=v(v({},this.options),e),this}},{key:"setSlots",value:function(e){return this.options=v(v({},this.options),{},{slots:v(v({},this.options.slots),e)}),this}},{key:"_ensureElement",value:function(){if(!this.el){var e=P(this.options.target);e instanceof Element?(this.el=e,this._autoCreatedTarget=!1):(this.el=C(this.options.tagName||"div",{"data-mount-id":this.id}),this._autoCreatedTarget=!0)}}},{key:"_appendElementToDOM",value:function(){this.el&&this._autoCreatedTarget&&M(this.el,null)}},{key:"_resolvePromise",value:function(e){this._resolve(e)}},{key:"_rejectPromise",value:function(e){this._reject(e)}},{key:"_mergeListenersToProps",value:function(e){var t={};return Object.entries(e).forEach(function(e){var n=p(e,2),o=n[0],i=n[1];t["on".concat(N(o))]=i}),t}}],[{key:"instances",get:function(){return Array.from(B)}},{key:"unmountAll",value:function(){B.forEach(function(e){return e.unmount()})}},{key:"getById",value:function(e){return Array.from(B).find(function(t){return t.id===e})}}]);function K(){return Array.from(B)}function U(e){return G.getById(e)}function z(e,t){var n=t.context||{};return e&&(e._isVue||e.$options)?v({router:e.$router||n.router,store:e.$store||n.store,i18n:e.$i18n||n.i18n,route:e.$route},n):n}var L,R=function(e){function n(e){var o,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,n),l(o=i(this,n,[e,u]),"vm",null),l(o,"_vue2Instance",null),!t.isVue2)throw new Error("MountVue2 can only be used with Vue 2");return o._createVM(),o}return c(n,e),s(n,[{key:"_createVM",value:function(){var e=this,n=t.Vue2,o=this.options,i=o.props,r=o.parent,u=o.listeners,s=o.on,l=v(v({},u),s),a=z(r,this.options),c=this._component;this._component.options&&(c=this._component.options);var f=new(n.extend(c))({propsData:i||{},parent:r});a.router&&Object.defineProperty(f,"$router",{get:function(){return a.router},configurable:!0}),a.store&&Object.defineProperty(f,"$store",{get:function(){return a.store},configurable:!0}),a.i18n&&Object.defineProperty(f,"$i18n",{get:function(){return a.i18n},configurable:!0}),Object.entries(l).forEach(function(e){var t=p(e,2),n=t[0],o=t[1];Array.isArray(o)?o.forEach(function(e){return f.$on(n,e)}):f.$on(n,o)});var h=f.$emit.bind(f);f.$emit=function(t){for(var n,o=arguments.length,i=new Array(o>1?o-1:0),r=1;r<o;r++)i[r-1]=arguments[r];return(n=e._eventEmitter).emit.apply(n,[t].concat(i)),h.apply(void 0,[t].concat(i))},f.$on("close",function(){e._resolvePromise(void 0),e.unmount()}),f._mountId=this.id,this._vue2Instance=f}},{key:"_mountVM",value:function(){this._vue2Instance&&(this._ensureElement(),this._appendElementToDOM(),this._vue2Instance.$mount(this.el),this._vue2Instance.$el&&(this.el=this._vue2Instance.$el),this.vm=this._vue2Instance,this.mounted=!0)}},{key:"_unmountVM",value:function(){this._vue2Instance&&(this._vue2Instance.$destroy(),this._vue2Instance=null),this.vm=null,this.mounted=!1}},{key:"_updateVM",value:function(){this._vue2Instance&&this.options.props&&Object.assign(this._vue2Instance.$props,this.options.props)}}])}(G);function H(){return W.apply(this,arguments)}function W(){var e;return e=function*(){if(L)return L;var e=yield import("vue");return L=e.render},W=function(){var t=this,n=arguments;return new Promise(function(i,r){var u=e.apply(t,n);function s(e){o(u,i,r,s,l,"next",e)}function l(e){o(u,i,r,s,l,"throw",e)}s(void 0)})},W.apply(this,arguments)}var q=function(e){function n(e){var o,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(r(this,n),l(o=i(this,n,[e,u]),"vm",null),l(o,"_vNode",null),t.isVue2)throw new Error("MountVue3 can only be used with Vue 3");return o._createVM(),o}return c(n,e),s(n,[{key:"_createVM",value:function(){var e=this,n=this.options,o=n.props,i=n.children,r=n.app,u=n.listeners,s=n.on,l=n.slots,a=v(v({},u),s),c=v(v(v({},o),this._mergeListenersToProps(a)),{},{onClose:function(){e._resolvePromise(void 0),e.unmount()}}),f=l?v(v({},l),i?{default:i}:{}):i,h=t.h(this._component,c,f);null!=r&&r._context&&(h.appContext=r._context),this._vNode=h}},{key:"_mountVM",value:function(){var e=this;this._vNode||this._createVM(),this._ensureElement(),this._appendElementToDOM(),H().then(function(t){var n,o;t&&e._vNode&&e.el&&(t(e._vNode,e.el),e.vm=null!==(n=null===(o=e._vNode.component)||void 0===o?void 0:o.proxy)&&void 0!==n?n:null)}),this.mounted=!0}},{key:"_unmountVM",value:function(){var e=this;this._vNode&&(H().then(function(t){t&&e.el&&t(null,e.el)}),this._vNode=null),this.vm=null,this.mounted=!1}},{key:"_updateVM",value:function(){var e=this;this._createVM(),this.mounted&&this.el&&this._vNode&&H().then(function(t){var n,o;t&&(t(e._vNode,e.el),e.vm=null!==(n=null===(o=e._vNode.component)||void 0===o?void 0:o.proxy)&&void 0!==n?n:null)})}}])}(G);function Z(){var e=t.ref([]),n=function(){e.value.forEach(function(e){return e.unmount()}),e.value=[]};return t.isVue2||t.onUnmounted(n),{instances:e,mount:function(t,n){var o=F(t,n);return e.value.push(o),o},unmount:function(t){t.unmount(),e.value=e.value.filter(function(e){return e!==t})},unmountAll:n,getById:function(t){return e.value.find(function(e){return e.id===t})},hasInstances:function(){return e.value.length>0},count:function(){return e.value.length}}}function F(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.isVue2?new R(e,n):new q(e,n)}function J(e){return F(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).show()}var Q={install:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(v(v({},n),{},{installed:!0}));var o=n.name||"$show";t.isVue2?e.prototype[o]=J:e.config.globalProperties[o]=J}};e.EventEmitter=S,e.MountBase=G,e.MountPlugin=Q,e.MountVue2=R,e.MountVue3=q,e.addClass=function(e,t){var n;t&&(n=e.classList).add.apply(n,m(t.split(/\s+/).filter(Boolean)))},e.appendTo=M,e.capitalize=N,e.clearSingletons=function(){_.forEach(function(e){return e.unmount()}),_.clear()},e.createElement=C,e.createInstanceId=D,e.createMount=F,e.eventToPropName=function(e){return"on".concat(N(e))},e.getActiveInstanceIds=function(){return K().map(function(e){return e.id})},e.getCurrentComponentContext=function(e){var t;if(!e)return{};var n={};return e.$router&&(n.router=e.$router),e.$store&&(n.store=e.$store),e.$i18n&&(n.i18n=e.$i18n),null!==(t=e.$)&&void 0!==t&&t.appContext&&(n.appContext=e.$.appContext),n},e.getGlobalConfig=function(){return v({},j)},e.getInstanceById=U,e.getInstances=K,e.getSingleton=function(e){return _.get(e)},e.getSingletonKey=V,e.getSingletonKeys=function(){return Array.from(_.keys())},e.globalConfig=j,e.hasSingleton=function(e){return _.has(e)},e.inheritVue2Context=z,e.inheritVue3Context=function(e,t){return null!=e&&e._context?{appContext:e._context,provides:e._context.provides}:{}},e.isBrowser=I,e.isInDOM=$,e.isMounted=function(e){var t,n=U(e);return null!==(t=null==n?void 0:n.mounted)&&void 0!==t&&t},e.isNodeEnv=function(){var e;return"undefined"!=typeof process&&!(null===(e=process.versions)||void 0===e||!e.node)},e.mergeWithGlobalConfig=E,e.mount=J,e.removeClass=function(e,t){var n;t&&(n=e.classList).remove.apply(n,m(t.split(/\s+/).filter(Boolean)))},e.removeElement=A,e.removeSingleton=O,e.resetGlobalConfig=function(){Object.keys(j).forEach(function(e){delete j[e]}),j.installed=!1},e.resolveTarget=P,e.setGlobalConfig=k,e.setSingleton=w,e.setZIndex=x,e.unmountAll=function(){G.unmountAll()},e.useMount=Z,e.useSingleton=function(){return{getOrCreate:function(e,t,n){var o=Z().instances.value.find(function(t){return t.id===e||t.options.singleton===e});return o||F(t,v(v({},n),{},{singleton:e}))}}}}(this.VueMount=this.VueMount||{},VueDemi);
|
|
1
|
+
var _VueDemiGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,VueDemi=function(e,t,n){if(e.install)return e;if(!t)return console.error("[vue-demi] no Vue instance found, please be sure to import `vue` before `vue-demi`."),e;if("2.7."===t.version.slice(0,4)){for(var o in t)e[o]=t[o];e.isVue2=!0,e.isVue3=!1,e.install=function(){},e.Vue=t,e.Vue2=t,e.version=t.version,e.warn=t.util.warn,e.hasInjectionContext=function(){return!!e.getCurrentInstance()},e.createApp=function(e,n){var o,r={},i={config:t.config,use:t.use.bind(t),mixin:t.mixin.bind(t),component:t.component.bind(t),provide:function(e,t){return r[e]=t,this},directive:function(e,n){return n?(t.directive(e,n),i):t.directive(e)},mount:function(i,u){return o||((o=new t(Object.assign({propsData:n},e,{provide:Object.assign(r,e.provide)}))).$mount(i,u),o)},unmount:function(){o&&(o.$destroy(),o=void 0)}};return i}}else if("2."===t.version.slice(0,2))if(n){for(var o in n)e[o]=n[o];e.isVue2=!0,e.isVue3=!1,e.install=function(){},e.Vue=t,e.Vue2=t,e.version=t.version,e.hasInjectionContext=function(){return!!e.getCurrentInstance()}}else console.error("[vue-demi] no VueCompositionAPI instance found, please be sure to import `@vue/composition-api` before `vue-demi`.");else if("3."===t.version.slice(0,2)){for(var o in t)e[o]=t[o];e.isVue2=!1,e.isVue3=!0,e.install=function(){},e.Vue=t,e.Vue2=void 0,e.version=t.version,e.set=function(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)},e.del=function(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}}else console.error("[vue-demi] Vue version "+t.version+" is unsupported.");return e}(_VueDemiGlobal.VueDemi=_VueDemiGlobal.VueDemi||(void 0!==VueDemi?VueDemi:{}),_VueDemiGlobal.Vue||("undefined"!=typeof Vue?Vue:void 0),_VueDemiGlobal.VueCompositionAPI||("undefined"!=typeof VueCompositionAPI?VueCompositionAPI:void 0));!function(e,t){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function o(e,t,n,o,r,i,u){try{var s=e[i](u),a=s.value}catch(e){return void n(e)}s.done?t(a):Promise.resolve(a).then(o,r)}function r(e,t,n){return t=l(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function a(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,u,s=[],a=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(a=(o=i.call(n)).done)&&(s.push(o.value),s.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw r}}return s}}(e,t)||g(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function g(e,t){if(e){if("string"==typeof e)return n(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(e,t):void 0}}var _=new Map,b=new WeakMap;function V(e,t){if(!1!==t)return"string"==typeof t?t:!0===t?function(e){return b.has(e)||b.set(e,Symbol(e.name||"anonymous")),b.get(e)}(e):void 0}function w(e,t){var n=_.get(e);n&&n!==t&&n.unmount(),_.set(e,t)}function O(e){_.delete(e)}var j={installed:!1};function E(e){Object.assign(j,e)}function k(e){return v(v({},j),e)}function I(){return"undefined"!=typeof document}function C(e){return e?"string"==typeof e?I()?document.querySelector(e):null:e:null}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1?arguments[1]:void 0;if(!I())throw new TypeError("This plugin works in browser");var n=document.createElement(e);return t&&Object.entries(t).forEach(function(e){var t=p(e,2),o=t[0],r=t[1];n.setAttribute(o,r)}),n}function M(e,t){if(I()){var n=C(t);n?n.appendChild(e):document.body.appendChild(e)}}function A(e){e.parentNode&&e.parentNode.removeChild(e)}function $(e){return document.body.contains(e)}function x(e,t){void 0!==t&&(e.style.zIndex=String(t))}var S=s(function e(){i(this,e),a(this,"events",new Map)},[{key:"on",value:function(e,t){return this.events.has(e)||this.events.set(e,new Set),this.events.get(e).add(t),this}},{key:"off",value:function(e,t){var n;return t?null===(n=this.events.get(e))||void 0===n||n.delete(t):this.events.delete(e),this}},{key:"emit",value:function(e){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return null===(t=this.events.get(e))||void 0===t||t.forEach(function(t){try{t.apply(void 0,o)}catch(t){console.error('Error in event handler for "'.concat(e,'":'),t)}}),this}},{key:"has",value:function(e){return this.events.has(e)&&this.events.get(e).size>0}},{key:"clear",value:function(){this.events.clear()}},{key:"eventNames",value:function(){return Array.from(this.events.keys())}}]),T=0;function D(){return"mount-".concat(++T,"-").concat(Date.now().toString(36))}function N(e){return e.charAt(0).toUpperCase()+e.slice(1)}function B(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}function G(e){return"on".concat(N(B(e)))}var K=new Set,U=s(function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),a(this,"mounted",!1),a(this,"el",null),a(this,"_eventEmitter",new S),a(this,"_autoCreatedTarget",!1),a(this,"_hidden",!1),a(this,"_destroyed",!1),a(this,"_resolved",!1),a(this,"destroy",this.unmount),a(this,"remove",this.unmount),this.id=D(),this._component=t,this.options=k(o),this._promise=new Promise(function(e,t){n._resolve=e,n._reject=t}),this._singletonKey=V(t,o.singleton),this._singletonKey&&w(this._singletonKey,this),K.add(this)},[{key:"show",value:function(){var e,t,n,o;return this.mounted&&!this._hidden||(null===(e=(t=this.options).onBeforeMount)||void 0===e||e.call(t,this),this._ensureElement(),this._mountVM(),this.options.zIndex&&this.el&&x(this.el,this.options.zIndex),this.mounted=!0,this._hidden=!1,null===(n=(o=this.options).onMounted)||void 0===n||n.call(o,this),this.emit("show",this)),this}},{key:"hide",value:function(){return!this.mounted||this._hidden||(this.emit("beforeHide",this),this.el&&$(this.el)&&A(this.el),this._hidden=!0,this.emit("hide",this)),this}},{key:"unmount",value:function(){var e,t,n,o;this._destroyed||(this._destroyed=!0,(this.mounted||this._hidden)&&(null===(n=(o=this.options).onBeforeUnmount)||void 0===n||n.call(o,this)),this._eventEmitter.emit("beforeUnmount",this),this._unmountVM(),this._autoCreatedTarget&&this.el&&A(this.el),this.mounted=!1,this._hidden=!1,this.el=null,this.vm=null,K.delete(this),this._singletonKey&&O(this._singletonKey),null===(e=(t=this.options).onUnmounted)||void 0===e||e.call(t,this),this._eventEmitter.clear())}},{key:"setProps",value:function(e){return this.options=v(v({},this.options),{},{props:v(v({},this.options.props),e)}),this.mounted&&this._updateVM(),this}},{key:"on",value:function(e,t){return this._eventEmitter.on(e,t),this}},{key:"off",value:function(e,t){return this._eventEmitter.off(e,t),this}},{key:"emit",value:function(e){var t;if(this._destroyed)return this;for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return(t=this._eventEmitter).emit.apply(t,[e].concat(o)),this}},{key:"then",value:function(e){return this._promise.then(e)}},{key:"catch",value:function(e){return this._promise.catch(e)}},{key:"finally",value:function(e){return this._promise.finally(e)}},{key:"setTarget",value:function(e){return this.options.target=e,this}},{key:"setHooks",value:function(e){return this.options=v(v({},this.options),e),this}},{key:"setSlots",value:function(e){return this.options=v(v({},this.options),{},{slots:v(v({},this.options.slots),e)}),this}},{key:"_ensureElement",value:function(){if(!this.el){var e=C(this.options.target);e instanceof Element?(this.el=e,this._autoCreatedTarget=!1):(this.el=P(this.options.tagName||"div",{"data-mount-id":this.id}),this._autoCreatedTarget=!0)}}},{key:"_appendElementToDOM",value:function(){this.el&&this._autoCreatedTarget&&M(this.el,null)}},{key:"_resolvePromise",value:function(e){this._resolved||(this._resolved=!0,this._resolve(e))}},{key:"_rejectPromise",value:function(e){this._reject(e)}},{key:"_mergeListenersToProps",value:function(e){var t={};return Object.entries(e).forEach(function(e){var n=p(e,2),o=n[0],r=n[1],i=G(o);t[i]=function(){"function"==typeof r&&r.apply(void 0,arguments)}}),t}}],[{key:"instances",get:function(){return Array.from(K)}},{key:"unmountAll",value:function(){K.forEach(function(e){return e.unmount()})}},{key:"getById",value:function(e){return Array.from(K).find(function(t){return t.id===e})}}]);function z(){return Array.from(K)}function L(e){return U.getById(e)}function R(e,t){var n=t.context||{};return e&&(e._isVue||e.$options)?v({router:e.$router||n.router,store:e.$store||n.store,i18n:e.$i18n||n.i18n,route:e.$route},n):n}var H,W=function(e){function n(e){var o,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,n),a(o=r(this,n,[e,u]),"vm",null),a(o,"_vue2Instance",null),!t.isVue2)throw new Error("MountVue2 can only be used with Vue 2");return o._createVM(),o}return c(n,e),s(n,[{key:"_createVM",value:function(){var e=this,n=t.Vue2,o=this.options,r=o.props,i=o.parent,u=o.listeners,s=o.on,a=v(v({},u),s),l=R(i,this.options),c=this._component;this._component.options&&(c=this._component.options);var f=new(n.extend(c))({propsData:r||{},parent:i});l.router&&Object.defineProperty(f,"$router",{get:function(){return l.router},configurable:!0}),l.store&&Object.defineProperty(f,"$store",{get:function(){return l.store},configurable:!0}),l.i18n&&Object.defineProperty(f,"$i18n",{get:function(){return l.i18n},configurable:!0}),Object.entries(a).forEach(function(e){var t=p(e,2),n=t[0],o=t[1];Array.isArray(o)?o.forEach(function(e){return f.$on(n,e)}):f.$on(n,o)});var h=f.$emit.bind(f);f.$emit=function(t){for(var n,o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return(n=e._eventEmitter).emit.apply(n,[t].concat(r)),h.apply(void 0,[t].concat(r))},f.$on("close",function(t){e._resolvePromise(t),e.unmount()}),f._mountId=this.id,this._vue2Instance=f}},{key:"_mountVM",value:function(){this._vue2Instance&&(this._ensureElement(),this._appendElementToDOM(),this._vue2Instance.$mount(this.el),this._vue2Instance.$el&&(this.el=this._vue2Instance.$el),this.vm=this._vue2Instance,this.mounted=!0)}},{key:"_unmountVM",value:function(){this._vue2Instance&&(this._vue2Instance.$destroy(),this._vue2Instance=null),this.vm=null,this.mounted=!1}},{key:"_updateVM",value:function(){this._vue2Instance&&this.options.props&&Object.assign(this._vue2Instance.$props,this.options.props)}}])}(U);function q(){return Z.apply(this,arguments)}function Z(){var e;return e=function*(){if(H)return H;var e=yield import("vue");return H=e.render},Z=function(){var t=this,n=arguments;return new Promise(function(r,i){var u=e.apply(t,n);function s(e){o(u,r,i,s,a,"next",e)}function a(e){o(u,r,i,s,a,"throw",e)}s(void 0)})},Z.apply(this,arguments)}var F=function(e){function n(e){var o,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,n),a(o=r(this,n,[e,u]),"vm",null),a(o,"_vNode",null),t.isVue2)throw new Error("MountVue3 can only be used with Vue 3");return o._createVM(),o}return c(n,e),s(n,[{key:"_createVM",value:function(){var e=this,n=this.options,o=n.props,r=n.children,i=n.app,u=n.listeners,s=n.on,a=n.slots,l=v(v({},u),s),c=v(v(v({},o),this._mergeListenersToProps(l)),{},{onClose:function(t){e._resolvePromise(t),e.unmount()}}),f=a?v(v({},a),r?{default:r}:{}):r,h=t.h(this._component,c,f);null!=i&&i._context&&(h.appContext=i._context),this._vNode=h}},{key:"_mountVM",value:function(){var e=this;this._vNode||this._createVM(),this._ensureElement(),this._appendElementToDOM(),q().then(function(t){if(t&&e._vNode&&e.el){var n,o;t(e._vNode,e.el),e.vm=null!==(n=null===(o=e._vNode.component)||void 0===o?void 0:o.proxy)&&void 0!==n?n:null;var r=e._vNode.component;if(r){var i=r.emit;r.emit=function(t){for(var n,o=arguments.length,u=new Array(o>1?o-1:0),s=1;s<o;s++)u[s-1]=arguments[s];return(n=e._eventEmitter).emit.apply(n,[t].concat(u)),i.call.apply(i,[r,t].concat(u))}}}}),this.mounted=!0}},{key:"_unmountVM",value:function(){var e=this;this._vNode&&(q().then(function(t){t&&e.el&&t(null,e.el)}),this._vNode=null),this.vm=null,this.mounted=!1}},{key:"_updateVM",value:function(){var e=this;this._createVM(),this.mounted&&this.el&&this._vNode&&q().then(function(t){var n,o;t&&(t(e._vNode,e.el),e.vm=null!==(n=null===(o=e._vNode.component)||void 0===o?void 0:o.proxy)&&void 0!==n?n:null)})}}])}(U);function J(){var e=t.ref([]),n=function(){e.value.forEach(function(e){return e.unmount()}),e.value=[]},o=t.computed(function(){return e.value.length});return t.isVue2||t.onUnmounted(n),{instances:e,mount:function(t,n){var o=Q(t,n);return e.value.push(o),o.show(),o},unmount:function(t){t.unmount(),e.value=e.value.filter(function(e){return e!==t})},unmountAll:n,getById:function(t){return e.value.find(function(e){return e.id===t})},hasInstances:function(){return e.value.length>0},count:o}}function Q(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.isVue2?new W(e,n):new F(e,n)}function X(e){return Q(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).show()}var Y={install:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(v(v({},n),{},{installed:!0}));var o=n.name||"$show";t.isVue2?e.prototype[o]=X:e.config.globalProperties[o]=X}};e.EventEmitter=S,e.MountBase=U,e.MountPlugin=Y,e.MountVue2=W,e.MountVue3=F,e.addClass=function(e,t){var n;t&&(n=e.classList).add.apply(n,m(t.split(/\s+/).filter(Boolean)))},e.appendTo=M,e.capitalize=N,e.clearSingletons=function(){_.forEach(function(e){return e.unmount()}),_.clear()},e.createElement=P,e.createInstanceId=D,e.createMount=Q,e.eventToPropName=G,e.getActiveInstanceIds=function(){return z().map(function(e){return e.id})},e.getCurrentComponentContext=function(e){var t;if(!e)return{};var n={};return e.$router&&(n.router=e.$router),e.$store&&(n.store=e.$store),e.$i18n&&(n.i18n=e.$i18n),null!==(t=e.$)&&void 0!==t&&t.appContext&&(n.appContext=e.$.appContext),n},e.getGlobalConfig=function(){return v({},j)},e.getInstanceById=L,e.getInstances=z,e.getSingleton=function(e){return _.get(e)},e.getSingletonKey=V,e.getSingletonKeys=function(){return Array.from(_.keys())},e.globalConfig=j,e.hasSingleton=function(e){return _.has(e)},e.inheritVue2Context=R,e.inheritVue3Context=function(e,t){return null!=e&&e._context?{appContext:e._context,provides:e._context.provides}:{}},e.isBrowser=I,e.isInDOM=$,e.isMounted=function(e){var t,n=L(e);return null!==(t=null==n?void 0:n.mounted)&&void 0!==t&&t},e.isNodeEnv=function(){var e;return"undefined"!=typeof process&&!(null===(e=process.versions)||void 0===e||!e.node)},e.mergeWithGlobalConfig=k,e.mount=X,e.removeClass=function(e,t){var n;t&&(n=e.classList).remove.apply(n,m(t.split(/\s+/).filter(Boolean)))},e.removeElement=A,e.removeSingleton=O,e.resetGlobalConfig=function(){Object.keys(j).forEach(function(e){delete j[e]}),j.installed=!1},e.resolveTarget=C,e.setGlobalConfig=E,e.setSingleton=w,e.setZIndex=x,e.toCamelCase=B,e.unmountAll=function(){U.unmountAll()},e.useMount=J,e.useSingleton=function(){return{getOrCreate:function(e,t,n){var o=J().instances.value.find(function(t){return t.id===e||t.options.singleton===e});if(o)return o;var r=Q(t,v(v({},n),{},{singleton:e}));return r.show(),r}}}}(this.VueMount=this.VueMount||{},VueDemi);
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Vue2, isVue2, h, ref, onUnmounted } from 'vue-demi';
|
|
1
|
+
import { Vue2, isVue2, h, ref, computed, onUnmounted } from 'vue-demi';
|
|
2
2
|
|
|
3
3
|
function _arrayLikeToArray(r, a) {
|
|
4
4
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -373,8 +373,13 @@ function createInstanceId() {
|
|
|
373
373
|
function capitalize(str) {
|
|
374
374
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
375
375
|
}
|
|
376
|
+
function toCamelCase(str) {
|
|
377
|
+
return str.replace(/-([a-z])/g, function (_, letter) {
|
|
378
|
+
return letter.toUpperCase();
|
|
379
|
+
});
|
|
380
|
+
}
|
|
376
381
|
function eventToPropName(event) {
|
|
377
|
-
return "on".concat(capitalize(event));
|
|
382
|
+
return "on".concat(capitalize(toCamelCase(event)));
|
|
378
383
|
}
|
|
379
384
|
|
|
380
385
|
var instances = new Set();
|
|
@@ -389,6 +394,7 @@ var MountBase = /*#__PURE__*/function () {
|
|
|
389
394
|
_defineProperty(this, "_autoCreatedTarget", false);
|
|
390
395
|
_defineProperty(this, "_hidden", false);
|
|
391
396
|
_defineProperty(this, "_destroyed", false);
|
|
397
|
+
_defineProperty(this, "_resolved", false);
|
|
392
398
|
_defineProperty(this, "destroy", this.unmount);
|
|
393
399
|
_defineProperty(this, "remove", this.unmount);
|
|
394
400
|
this.id = createInstanceId();
|
|
@@ -554,6 +560,8 @@ var MountBase = /*#__PURE__*/function () {
|
|
|
554
560
|
}, {
|
|
555
561
|
key: "_resolvePromise",
|
|
556
562
|
value: function _resolvePromise(value) {
|
|
563
|
+
if (this._resolved) return;
|
|
564
|
+
this._resolved = true;
|
|
557
565
|
this._resolve(value);
|
|
558
566
|
}
|
|
559
567
|
}, {
|
|
@@ -569,7 +577,12 @@ var MountBase = /*#__PURE__*/function () {
|
|
|
569
577
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
570
578
|
event = _ref2[0],
|
|
571
579
|
handler = _ref2[1];
|
|
572
|
-
|
|
580
|
+
var propName = eventToPropName(event);
|
|
581
|
+
result[propName] = function () {
|
|
582
|
+
if (typeof handler === 'function') {
|
|
583
|
+
handler.apply(void 0, arguments);
|
|
584
|
+
}
|
|
585
|
+
};
|
|
573
586
|
});
|
|
574
587
|
return result;
|
|
575
588
|
}
|
|
@@ -719,8 +732,8 @@ var MountVue2 = /*#__PURE__*/function (_MountBase) {
|
|
|
719
732
|
(_this2$_eventEmitter = _this2._eventEmitter).emit.apply(_this2$_eventEmitter, [event].concat(args));
|
|
720
733
|
return originalEmit.apply(void 0, [event].concat(args));
|
|
721
734
|
};
|
|
722
|
-
instance.$on('close', function () {
|
|
723
|
-
_this2._resolvePromise(
|
|
735
|
+
instance.$on('close', function (value) {
|
|
736
|
+
_this2._resolvePromise(value);
|
|
724
737
|
_this2.unmount();
|
|
725
738
|
});
|
|
726
739
|
instance._mountId = this.id;
|
|
@@ -799,8 +812,8 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
799
812
|
on = _this$options.on,
|
|
800
813
|
slots = _this$options.slots;
|
|
801
814
|
var mergedListeners = _objectSpread2(_objectSpread2({}, listeners), on);
|
|
802
|
-
var onClose = function onClose() {
|
|
803
|
-
_this2._resolvePromise(
|
|
815
|
+
var onClose = function onClose(value) {
|
|
816
|
+
_this2._resolvePromise(value);
|
|
804
817
|
_this2.unmount();
|
|
805
818
|
};
|
|
806
819
|
var mergedProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props), this._mergeListenersToProps(mergedListeners)), {}, {
|
|
@@ -829,6 +842,18 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
829
842
|
var _this3$_vNode$compone, _this3$_vNode$compone2;
|
|
830
843
|
render(_this3._vNode, _this3.el);
|
|
831
844
|
_this3.vm = (_this3$_vNode$compone = (_this3$_vNode$compone2 = _this3._vNode.component) === null || _this3$_vNode$compone2 === void 0 ? void 0 : _this3$_vNode$compone2.proxy) !== null && _this3$_vNode$compone !== void 0 ? _this3$_vNode$compone : null;
|
|
845
|
+
var component = _this3._vNode.component;
|
|
846
|
+
if (component) {
|
|
847
|
+
var originalEmit = component.emit;
|
|
848
|
+
component.emit = function (event) {
|
|
849
|
+
var _this3$_eventEmitter;
|
|
850
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
851
|
+
args[_key - 1] = arguments[_key];
|
|
852
|
+
}
|
|
853
|
+
(_this3$_eventEmitter = _this3._eventEmitter).emit.apply(_this3$_eventEmitter, [event].concat(args));
|
|
854
|
+
return originalEmit.call.apply(originalEmit, [component, event].concat(args));
|
|
855
|
+
};
|
|
856
|
+
}
|
|
832
857
|
}
|
|
833
858
|
});
|
|
834
859
|
this.mounted = true;
|
|
@@ -871,6 +896,7 @@ function useMount() {
|
|
|
871
896
|
var mount = function mount(component, options) {
|
|
872
897
|
var instance = createMount(component, options);
|
|
873
898
|
instances.value.push(instance);
|
|
899
|
+
instance.show();
|
|
874
900
|
return instance;
|
|
875
901
|
};
|
|
876
902
|
var unmount = function unmount(instance) {
|
|
@@ -893,9 +919,9 @@ function useMount() {
|
|
|
893
919
|
var hasInstances = function hasInstances() {
|
|
894
920
|
return instances.value.length > 0;
|
|
895
921
|
};
|
|
896
|
-
var count = function
|
|
922
|
+
var count = computed(function () {
|
|
897
923
|
return instances.value.length;
|
|
898
|
-
};
|
|
924
|
+
});
|
|
899
925
|
if (!isVue2) {
|
|
900
926
|
onUnmounted(unmountAll);
|
|
901
927
|
}
|
|
@@ -921,6 +947,7 @@ function useSingleton() {
|
|
|
921
947
|
var instance = createMount(component, _objectSpread2(_objectSpread2({}, options), {}, {
|
|
922
948
|
singleton: key
|
|
923
949
|
}));
|
|
950
|
+
instance.show();
|
|
924
951
|
return instance;
|
|
925
952
|
};
|
|
926
953
|
return {
|
|
@@ -965,4 +992,4 @@ function getActiveInstanceIds() {
|
|
|
965
992
|
});
|
|
966
993
|
}
|
|
967
994
|
|
|
968
|
-
export { EventEmitter, MountBase, MountPlugin, MountVue2, MountVue3, addClass, appendTo, capitalize, clearSingletons, createElement, createInstanceId, createMount, eventToPropName, getActiveInstanceIds, getCurrentComponentContext, getGlobalConfig, getInstanceById, getInstances, getSingleton, getSingletonKey, getSingletonKeys, globalConfig, hasSingleton, inheritVue2Context, inheritVue3Context, isBrowser, isInDOM, isMounted, isNodeEnv, mergeWithGlobalConfig, mount, removeClass, removeElement, removeSingleton, resetGlobalConfig, resolveTarget, setGlobalConfig, setSingleton, setZIndex, unmountAll, useMount, useSingleton };
|
|
995
|
+
export { EventEmitter, MountBase, MountPlugin, MountVue2, MountVue3, addClass, appendTo, capitalize, clearSingletons, createElement, createInstanceId, createMount, eventToPropName, getActiveInstanceIds, getCurrentComponentContext, getGlobalConfig, getInstanceById, getInstances, getSingleton, getSingletonKey, getSingletonKeys, globalConfig, hasSingleton, inheritVue2Context, inheritVue3Context, isBrowser, isInDOM, isMounted, isNodeEnv, mergeWithGlobalConfig, mount, removeClass, removeElement, removeSingleton, resetGlobalConfig, resolveTarget, setGlobalConfig, setSingleton, setZIndex, toCamelCase, unmountAll, useMount, useSingleton };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "vue-mount-plugin",
|
|
3
3
|
"description": "A simple and easy to use vue instance extension plugin that supports vue2.0 and vue3.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.0.0-beta.
|
|
5
|
+
"version": "4.0.0-beta.5",
|
|
6
6
|
"packageManager": "pnpm@8.9.0",
|
|
7
7
|
"main": "dist/index.cjs",
|
|
8
8
|
"module": "dist/index.mjs",
|