vue-mount-plugin 4.0.0-beta.1 → 4.0.0-beta.2
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 +25 -13
- package/dist/index.es5.js +14 -2
- package/dist/index.es5.min.js +1 -1
- package/dist/index.iife.js +25 -13
- package/dist/index.iife.min.js +1 -1
- package/dist/index.mjs +25 -13
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -658,6 +658,7 @@ var MountVue2 = /*#__PURE__*/function (_MountBase) {
|
|
|
658
658
|
return _createClass(MountVue2, [{
|
|
659
659
|
key: "_createVM",
|
|
660
660
|
value: function _createVM() {
|
|
661
|
+
var _this2 = this;
|
|
661
662
|
var VueConstructor = vueDemi.Vue2;
|
|
662
663
|
var _this$options = this.options,
|
|
663
664
|
props = _this$options.props,
|
|
@@ -690,6 +691,10 @@ var MountVue2 = /*#__PURE__*/function (_MountBase) {
|
|
|
690
691
|
instance.$on(event, handler);
|
|
691
692
|
}
|
|
692
693
|
});
|
|
694
|
+
instance.$on('close', function () {
|
|
695
|
+
_this2._resolvePromise(undefined);
|
|
696
|
+
_this2.unmount();
|
|
697
|
+
});
|
|
693
698
|
instance._mountId = this.id;
|
|
694
699
|
this._vue2Instance = instance;
|
|
695
700
|
}
|
|
@@ -757,6 +762,7 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
757
762
|
return _createClass(MountVue3, [{
|
|
758
763
|
key: "_createVM",
|
|
759
764
|
value: function _createVM() {
|
|
765
|
+
var _this2 = this;
|
|
760
766
|
var _this$options = this.options,
|
|
761
767
|
props = _this$options.props,
|
|
762
768
|
children = _this$options.children,
|
|
@@ -765,7 +771,13 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
765
771
|
on = _this$options.on,
|
|
766
772
|
slots = _this$options.slots;
|
|
767
773
|
var mergedListeners = _objectSpread2(_objectSpread2({}, listeners), on);
|
|
768
|
-
var
|
|
774
|
+
var onClose = function onClose() {
|
|
775
|
+
_this2._resolvePromise(undefined);
|
|
776
|
+
_this2.unmount();
|
|
777
|
+
};
|
|
778
|
+
var mergedProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props), this._mergeListenersToProps(mergedListeners)), {}, {
|
|
779
|
+
onClose: onClose
|
|
780
|
+
});
|
|
769
781
|
var mergedChildren = slots ? _objectSpread2(_objectSpread2({}, slots), children ? {
|
|
770
782
|
default: children
|
|
771
783
|
} : {}) : children;
|
|
@@ -778,17 +790,17 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
778
790
|
}, {
|
|
779
791
|
key: "_mountVM",
|
|
780
792
|
value: function _mountVM() {
|
|
781
|
-
var
|
|
793
|
+
var _this3 = this;
|
|
782
794
|
if (!this._vNode) {
|
|
783
795
|
this._createVM();
|
|
784
796
|
}
|
|
785
797
|
this._ensureElement();
|
|
786
798
|
this._appendElementToDOM();
|
|
787
799
|
getRender().then(function (render) {
|
|
788
|
-
if (render &&
|
|
789
|
-
var
|
|
790
|
-
render(
|
|
791
|
-
|
|
800
|
+
if (render && _this3._vNode && _this3.el) {
|
|
801
|
+
var _this3$_vNode$compone, _this3$_vNode$compone2;
|
|
802
|
+
render(_this3._vNode, _this3.el);
|
|
803
|
+
_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;
|
|
792
804
|
}
|
|
793
805
|
});
|
|
794
806
|
this.mounted = true;
|
|
@@ -796,11 +808,11 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
796
808
|
}, {
|
|
797
809
|
key: "_unmountVM",
|
|
798
810
|
value: function _unmountVM() {
|
|
799
|
-
var
|
|
811
|
+
var _this4 = this;
|
|
800
812
|
if (this._vNode) {
|
|
801
813
|
getRender().then(function (render) {
|
|
802
|
-
if (render &&
|
|
803
|
-
render(null,
|
|
814
|
+
if (render && _this4.el) {
|
|
815
|
+
render(null, _this4.el);
|
|
804
816
|
}
|
|
805
817
|
});
|
|
806
818
|
this._vNode = null;
|
|
@@ -811,14 +823,14 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
811
823
|
}, {
|
|
812
824
|
key: "_updateVM",
|
|
813
825
|
value: function _updateVM() {
|
|
814
|
-
var
|
|
826
|
+
var _this5 = this;
|
|
815
827
|
this._createVM();
|
|
816
828
|
if (this.mounted && this.el && this._vNode) {
|
|
817
829
|
getRender().then(function (render) {
|
|
818
830
|
if (render) {
|
|
819
|
-
var
|
|
820
|
-
render(
|
|
821
|
-
|
|
831
|
+
var _this5$_vNode$compone, _this5$_vNode$compone2;
|
|
832
|
+
render(_this5._vNode, _this5.el);
|
|
833
|
+
_this5.vm = (_this5$_vNode$compone = (_this5$_vNode$compone2 = _this5._vNode.component) === null || _this5$_vNode$compone2 === void 0 ? void 0 : _this5$_vNode$compone2.proxy) !== null && _this5$_vNode$compone !== void 0 ? _this5$_vNode$compone : null;
|
|
822
834
|
}
|
|
823
835
|
});
|
|
824
836
|
}
|
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.2
|
|
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.
|
|
@@ -7458,6 +7458,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7458
7458
|
return _this;
|
|
7459
7459
|
}
|
|
7460
7460
|
MountVue2.prototype._createVM = function () {
|
|
7461
|
+
var _this = this;
|
|
7461
7462
|
var VueConstructor = vueDemi.Vue2;
|
|
7462
7463
|
var _a = this.options,
|
|
7463
7464
|
props = _a.props,
|
|
@@ -7490,6 +7491,10 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7490
7491
|
instance.$on(event, handler);
|
|
7491
7492
|
}
|
|
7492
7493
|
});
|
|
7494
|
+
instance.$on('close', function () {
|
|
7495
|
+
_this._resolvePromise(undefined);
|
|
7496
|
+
_this.unmount();
|
|
7497
|
+
});
|
|
7493
7498
|
instance._mountId = this.id;
|
|
7494
7499
|
this._vue2Instance = instance;
|
|
7495
7500
|
};
|
|
@@ -7553,6 +7558,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7553
7558
|
return _this;
|
|
7554
7559
|
}
|
|
7555
7560
|
MountVue3.prototype._createVM = function () {
|
|
7561
|
+
var _this = this;
|
|
7556
7562
|
var _a = this.options,
|
|
7557
7563
|
props = _a.props,
|
|
7558
7564
|
children = _a.children,
|
|
@@ -7561,7 +7567,13 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
7561
7567
|
on = _a.on,
|
|
7562
7568
|
slots = _a.slots;
|
|
7563
7569
|
var mergedListeners = _assign(_assign({}, listeners), on);
|
|
7564
|
-
var
|
|
7570
|
+
var onClose = function onClose() {
|
|
7571
|
+
_this._resolvePromise(undefined);
|
|
7572
|
+
_this.unmount();
|
|
7573
|
+
};
|
|
7574
|
+
var mergedProps = _assign(_assign(_assign({}, props), this._mergeListenersToProps(mergedListeners)), {
|
|
7575
|
+
onClose: onClose
|
|
7576
|
+
});
|
|
7565
7577
|
var mergedChildren = slots ? _assign(_assign({}, slots), children ? {
|
|
7566
7578
|
default: children
|
|
7567
7579
|
} : {}) : children;
|
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,T,P,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(T)return I;T=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?P:(A=1,P=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(L)return D;L=1;var t=yt();return D=function(n){return"object"==typeof n?null!==n:t(n)}}function mt(){if($)return F;$=1;var t=u(),n=yt();return F=function(r,e){return arguments.length<2?(i=t[r],n(i)?i:void 0):t[r]&&t[r][e];var i},F}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 Tt,Pt,At,Ct,Rt,Nt,Mt,Vt,kt,Dt,Lt,Ft,$t,zt,Bt,Ut,Gt,Wt,Kt,Jt,qt,Ht,Yt,Xt,Qt={exports:{}};function Zt(){return Pt?Tt:(Pt=1,Tt=!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(Lt)return Dt;Lt=1;var t=st(),n=en(),r=t({}.hasOwnProperty);return Dt=Object.hasOwn||function(t,e){return r(n(t),e)}}function un(){if($t)return Ft;$t=1;var t=st(),n=0,r=Math.random(),e=t(1.1.toString);return Ft=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,Tn,Pn,An,Cn,Rn,Nn,Mn,Vn,kn,Dn,Ln,Fn,$n={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(Tn)return In;Tn=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 Pn;An=1;var t=u(),n=yt(),r=t.WeakMap;return Pn=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 $n.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=$n.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"),$n.exports}function qn(){if(Fn)return Ln;Fn=1;var t=yt(),n=xn(),r=Jn(),e=tn();return Ln=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,Tr,Pr,Ar,Cr,Rr,Nr,Mr,Vr,kr,Dr,Lr,Fr,$r,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(Tr)return Ir;Tr=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 Pr;Ar=1;var t=lt(),n=st();return Pr=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(Lr)return Dr;Lr=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($r)return Fr;$r=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,Fr=!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,Te,Pe,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(Pe)return Te;Pe=1;var t=mt();return Te=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,Le,Fe,$e={};function ze(){if(Le)return De;Le=1;var t=st();return De=t([].slice)}function Be(){if(Fe)return $e;Fe=1;var t=lt(),n=dt(),r=br().f,e=ze(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return $e.f=function(o){return i&&"Window"===t(o)?function(t){try{return r(t)}catch(t){return e(i)}}(o):r(n(o))},$e}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(),T=qn(),P=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})}}(),L=ei(),F=Kn(),$=se().forEach,z=C("hidden"),B="Symbol",U="prototype",G=F.set,W=F.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 $(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 $(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 $(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)},T(q=J[U],"toString",function(){return W(this).tag}),T(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&&(P(q,"description",{configurable:!0,get:function(){return W(this).description}}),i||T(K,"propertyIsEnumerable",yt,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!f,sham:!f},{Symbol:J}),$(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(),L(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),T=/[\uD800-\uDFFF]/g,P=/^[\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(P,t)&&!O(A,i)||O(A,t)&&!O(P,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,T,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,Ti={};!function(){if(_i)return Ti;_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 Pi,Ai,Ci,Ri,Ni,Mi,Vi,ki,Di,Li,Fi,$i,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 $i;zi=1;var t=on(),n=yt(),r=en(),e=Gn(),i=function(){if(Fi)return Li;Fi=1;var t=y();return Li=!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 $i=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,T,P,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(T={values:A(O),keys:_?V:A(w),entries:A(S)},j)for(P in T)(g||R||!(P in N))&&s(N,P,T[P]);else t({target:l,proto:!0,forced:g||R},T);return r&&!j||N[m]===V||s(N,m,V,{name:E}),v[l]=V,T}}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 Pi;Ai=1;var t=TypeError;return Pi=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 To,Po,Ao,Co,Ro,No,Mo,Vo,ko,Do,Lo,Fo,$o,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(Po)return To;Po=1;var t=u(),n=wt(),r=lt(),e=function(t){return n.slice(0,t.length)===t};return To=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(Fo)return Lo;Fo=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 Lo=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 $o;zo=1;var t=TypeError;return $o=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 T=function(t){if(a(j,t)){var n=j[t];delete j[t],n()}},P=function(t){return function(){T(t)}},A=function(t){T(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(P(t))}:O&&O.now?n=function(t){O.now(P(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),T(t)}}:function(t){setTimeout(P(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,Tu,Pu,Au,Cu,Ru,Nu,Mu,Vu,ku,Du,Lu,Fu,$u,zu,Bu={};function Uu(){if(Tu)return Iu;Tu=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 Pu;Au=1;var t=ue(),n=It(),r=pt(),e=ao(),i=fn()("iterator");return Pu=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),T=t(h,x),P=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?T(t[0],t[1],P):T(t[0],t[1])):I?T(t,P):T(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(Lu)return Du;Lu=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($u)return Fu;$u=1;var t=Ou(),n=qu(),r=Su().CONSTRUCTOR;return Fu=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(),T=Su(),P=ju(),A="Promise",C=T.CONSTRUCTOR,R=T.REJECTION_EVENT,N=T.SUBCLASSING,M=j.getterFor(A),V=j.set,k=I&&I.prototype,D=I,L=k,F=c.TypeError,$=c.document,z=c.process,B=P.f,U=B,G=!!($&&$.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 F("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=$.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 F("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&&(L=(D=function(n){m(this,L),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(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)},P.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,L)}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,T=a;if(y){b=w(b,"y",""),-1===m(b,"g")&&(b+="g"),T=O(a,f.lastIndex);var P=f.lastIndex>0&&g(a,f.lastIndex-1);f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==P&&"\r"!==P&&"\u2028"!==P&&"\u2029"!==P)&&(j="(?: (?:"+j+"))",T=" "+T,I++),e=new RegExp("^(?:"+j+")",b)}E&&(e=new RegExp("^"+j+"$(?!\\s)",b)),S&&(u=f.lastIndex);var A=r(h,y?e:f,T);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,Tf={};function Pf(){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 Tf;If=1;var t=Pf().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,Lf,Ff,$f,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=Pf().charAt;return Rf=function(n,r,e){return r+(e&&t(n,r).length||1)}}function Kf(){if(Ff)return Lf;Ff=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 Lf=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 $f;zf=1;var t=b(),n=Sn(),r=yt(),e=lt(),i=xf(),o=TypeError;return $f=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"),T=!!/./[m]&&""===/./[m]("a","$0");e("replace",function(r,e,i){var y=T?"$":"$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,T=!!~E(m,"g");T&&(I=!!~E(m,"u")||!!~E(m,"v"),f.lastIndex=0);for(var P,A=[];null!==(P=g(f,l))&&(x(A,P),T);)""===s(P[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((P=A[N])[0]),k=w(O(c(P.index),l.length),0),D=[],L=1;L<P.length;L++)x(D,j(P[L]));var F=P.groups;if(p){var $=S([V],D,k,l);void 0!==F&&x($,F),M=s(t(r,void 0,$))}else M=h(V,l,k,D,F,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||T)}();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,Tc,Pc,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,T=v(function(){j.has(1)}),P=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)});P||((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),(T||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(Tc)return Ic;Tc=1;var t=qn();return Ic=function(n,r,e){for(var i in r)t(n,i,r[i],e);return n}}function Lc(){if(Ac)return Pc;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 Pc={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)}},Pc}Rc||(Rc=1,Cc||(Cc=1,kc()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Lc())));var Fc,$c,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($c)return Fc;$c=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}},Fc={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),T=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)?T(this,n):r.frozen.get(n)}return T(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)}},Lc())));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,T=[];I<o.length;){E.lastIndex=d?0:I;var P,A=v(E,d?w(o,I):o);if(null===A||(P=g(c(E.lastIndex+(d?I:0)),o.length))===j)I=f(o,I,S);else{if(m(T,w(o,j,I)),T.length===_)return T;for(var C=1;C<=A.length-1;C++)if(m(T,A[C]),T.length===_)return T;I=j=P}}return m(T,w(o,j)),T}]},x||!S,d)}();var Ia,Ta={};!function(){if(Ia)return Ta;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 Pa=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 Pa,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 La,Fa=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=n.Vue2,r=this.options,e=r.props,i=r.parent,o=r.listeners,u=r.on,f=fc(fc({},o),u),c=Da(i,this.options),a=this._component;this._component.options&&(a=this._component.options);var s=new(t.extend(a))({propsData:e||{},parent:i,router:c.router,store:c.store,i18n:c.i18n});Object.entries(f).forEach(function(t){var n=cc(t,2),r=n[0],e=n[1];Array.isArray(e)?e.forEach(function(t){return s.$on(r,t)}):s.$on(r,e)}),s._mountId=this.id,this._vue2Instance=s},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 $a(){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 La?[2,La]:[4,import("vue")];case 1:return t=n.sent(),[2,La=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.options,r=t.props,e=t.children,i=t.app,o=t.listeners,u=t.on,f=t.slots,c=fc(fc({},o),u),a=fc(fc({},r),this._mergeListenersToProps(c)),s=f?fc(fc({},f),e?{default:e}:{}):e,l=n.h(this._component,a,s);(null==i?void 0:i._context)&&(l.appContext=i._context),this._vNode=l},r.prototype._mountVM=function(){var t=this;this._vNode||this._createVM(),this._ensureElement(),this._appendElementToDOM(),$a().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&&($a().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&&$a().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 Fa(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=Pa,t.MountBase=Ma,t.MountPlugin=Wa,t.MountVue2=Fa,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(L)return D;L=1;var t=yt();return D=function(n){return"object"==typeof n?null!==n:t(n)}}function mt(){if($)return F;$=1;var t=u(),n=yt();return F=function(r,e){return arguments.length<2?(i=t[r],n(i)?i:void 0):t[r]&&t[r][e];var i},F}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,Lt,Ft,$t,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(Lt)return Dt;Lt=1;var t=st(),n=en(),r=t({}.hasOwnProperty);return Dt=Object.hasOwn||function(t,e){return r(n(t),e)}}function un(){if($t)return Ft;$t=1;var t=st(),n=0,r=Math.random(),e=t(1.1.toString);return Ft=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,Ln,Fn,$n={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 $n.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=$n.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"),$n.exports}function qn(){if(Fn)return Ln;Fn=1;var t=yt(),n=xn(),r=Jn(),e=tn();return Ln=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,Lr,Fr,$r,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(Lr)return Dr;Lr=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($r)return Fr;$r=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,Fr=!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,Le,Fe,$e={};function ze(){if(Le)return De;Le=1;var t=st();return De=t([].slice)}function Be(){if(Fe)return $e;Fe=1;var t=lt(),n=dt(),r=br().f,e=ze(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return $e.f=function(o){return i&&"Window"===t(o)?function(t){try{return r(t)}catch(t){return e(i)}}(o):r(n(o))},$e}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})}}(),L=ei(),F=Kn(),$=se().forEach,z=C("hidden"),B="Symbol",U="prototype",G=F.set,W=F.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 $(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 $(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 $(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}),$(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(),L(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,Li,Fi,$i,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 $i;zi=1;var t=on(),n=yt(),r=en(),e=Gn(),i=function(){if(Fi)return Li;Fi=1;var t=y();return Li=!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 $i=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,Lo,Fo,$o,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(Fo)return Lo;Fo=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 Lo=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 $o;zo=1;var t=TypeError;return $o=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,Lu,Fu,$u,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(Lu)return Du;Lu=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($u)return Fu;$u=1;var t=Ou(),n=qu(),r=Su().CONSTRUCTOR;return Fu=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,L=k,F=c.TypeError,$=c.document,z=c.process,B=T.f,U=B,G=!!($&&$.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 F("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=$.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 F("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&&(L=(D=function(n){m(this,L),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(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,L)}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,Lf,Ff,$f,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(Ff)return Lf;Ff=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 Lf=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 $f;zf=1;var t=b(),n=Sn(),r=yt(),e=lt(),i=xf(),o=TypeError;return $f=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=[],L=1;L<T.length;L++)x(D,j(T[L]));var F=T.groups;if(p){var $=S([V],D,k,l);void 0!==F&&x($,F),M=s(t(r,void 0,$))}else M=h(V,l,k,D,F,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 Lc(){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)}},Lc())));var Fc,$c,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($c)return Fc;$c=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}},Fc={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)}},Lc())));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 La,Fa=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,router:a.router,store:a.store,i18n:a.i18n});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)}),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 $a(){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 La?[2,La]:[4,import("vue")];case 1:return t=n.sent(),[2,La=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(),$a().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&&($a().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&&$a().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 Fa(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=Fa,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}))}}}});
|
package/dist/index.iife.js
CHANGED
|
@@ -790,6 +790,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
790
790
|
return _createClass(MountVue2, [{
|
|
791
791
|
key: "_createVM",
|
|
792
792
|
value: function _createVM() {
|
|
793
|
+
var _this2 = this;
|
|
793
794
|
var VueConstructor = vueDemi.Vue2;
|
|
794
795
|
var _this$options = this.options,
|
|
795
796
|
props = _this$options.props,
|
|
@@ -822,6 +823,10 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
822
823
|
instance.$on(event, handler);
|
|
823
824
|
}
|
|
824
825
|
});
|
|
826
|
+
instance.$on('close', function () {
|
|
827
|
+
_this2._resolvePromise(undefined);
|
|
828
|
+
_this2.unmount();
|
|
829
|
+
});
|
|
825
830
|
instance._mountId = this.id;
|
|
826
831
|
this._vue2Instance = instance;
|
|
827
832
|
}
|
|
@@ -889,6 +894,7 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
889
894
|
return _createClass(MountVue3, [{
|
|
890
895
|
key: "_createVM",
|
|
891
896
|
value: function _createVM() {
|
|
897
|
+
var _this2 = this;
|
|
892
898
|
var _this$options = this.options,
|
|
893
899
|
props = _this$options.props,
|
|
894
900
|
children = _this$options.children,
|
|
@@ -897,7 +903,13 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
897
903
|
on = _this$options.on,
|
|
898
904
|
slots = _this$options.slots;
|
|
899
905
|
var mergedListeners = _objectSpread2(_objectSpread2({}, listeners), on);
|
|
900
|
-
var
|
|
906
|
+
var onClose = function onClose() {
|
|
907
|
+
_this2._resolvePromise(undefined);
|
|
908
|
+
_this2.unmount();
|
|
909
|
+
};
|
|
910
|
+
var mergedProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props), this._mergeListenersToProps(mergedListeners)), {}, {
|
|
911
|
+
onClose: onClose
|
|
912
|
+
});
|
|
901
913
|
var mergedChildren = slots ? _objectSpread2(_objectSpread2({}, slots), children ? {
|
|
902
914
|
default: children
|
|
903
915
|
} : {}) : children;
|
|
@@ -910,17 +922,17 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
910
922
|
}, {
|
|
911
923
|
key: "_mountVM",
|
|
912
924
|
value: function _mountVM() {
|
|
913
|
-
var
|
|
925
|
+
var _this3 = this;
|
|
914
926
|
if (!this._vNode) {
|
|
915
927
|
this._createVM();
|
|
916
928
|
}
|
|
917
929
|
this._ensureElement();
|
|
918
930
|
this._appendElementToDOM();
|
|
919
931
|
getRender().then(function (render) {
|
|
920
|
-
if (render &&
|
|
921
|
-
var
|
|
922
|
-
render(
|
|
923
|
-
|
|
932
|
+
if (render && _this3._vNode && _this3.el) {
|
|
933
|
+
var _this3$_vNode$compone, _this3$_vNode$compone2;
|
|
934
|
+
render(_this3._vNode, _this3.el);
|
|
935
|
+
_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;
|
|
924
936
|
}
|
|
925
937
|
});
|
|
926
938
|
this.mounted = true;
|
|
@@ -928,11 +940,11 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
928
940
|
}, {
|
|
929
941
|
key: "_unmountVM",
|
|
930
942
|
value: function _unmountVM() {
|
|
931
|
-
var
|
|
943
|
+
var _this4 = this;
|
|
932
944
|
if (this._vNode) {
|
|
933
945
|
getRender().then(function (render) {
|
|
934
|
-
if (render &&
|
|
935
|
-
render(null,
|
|
946
|
+
if (render && _this4.el) {
|
|
947
|
+
render(null, _this4.el);
|
|
936
948
|
}
|
|
937
949
|
});
|
|
938
950
|
this._vNode = null;
|
|
@@ -943,14 +955,14 @@ var VueDemi = (function (VueDemi, Vue, VueCompositionAPI) {
|
|
|
943
955
|
}, {
|
|
944
956
|
key: "_updateVM",
|
|
945
957
|
value: function _updateVM() {
|
|
946
|
-
var
|
|
958
|
+
var _this5 = this;
|
|
947
959
|
this._createVM();
|
|
948
960
|
if (this.mounted && this.el && this._vNode) {
|
|
949
961
|
getRender().then(function (render) {
|
|
950
962
|
if (render) {
|
|
951
|
-
var
|
|
952
|
-
render(
|
|
953
|
-
|
|
963
|
+
var _this5$_vNode$compone, _this5$_vNode$compone2;
|
|
964
|
+
render(_this5._vNode, _this5.el);
|
|
965
|
+
_this5.vm = (_this5$_vNode$compone = (_this5$_vNode$compone2 = _this5._vNode.component) === null || _this5$_vNode$compone2 === void 0 ? void 0 : _this5$_vNode$compone2.proxy) !== null && _this5$_vNode$compone !== void 0 ? _this5$_vNode$compone : null;
|
|
954
966
|
}
|
|
955
967
|
});
|
|
956
968
|
}
|
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 k={installed:!1};function j(e){Object.assign(k,e)}function E(e){return v(v({},k),e)}function I(){return"undefined"!=typeof document}function C(e){return e?"string"==typeof e?I()?document.querySelector(e):null:e:null}function M(){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 A(e,t){if(I()){var n=C(t);n?n.appendChild(e):document.body.appendChild(e)}}function P(e){e.parentNode&&e.parentNode.removeChild(e)}function x(e){return document.body.contains(e)}function S(e,t){void 0!==t&&(e.style.zIndex=String(t))}var T=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())}}]),$=0;function D(){return"mount-".concat(++$,"-").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 T),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&&S(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&&x(this.el)&&P(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&&P(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=C(this.options.target);e instanceof Element?(this.el=e,this._autoCreatedTarget=!1):(this.el=M(this.options.tagName||"div",{"data-mount-id":this.id}),this._autoCreatedTarget=!0)}}},{key:"_appendElementToDOM",value:function(){this.el&&this._autoCreatedTarget&&A(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=t.Vue2,n=this.options,o=n.props,i=n.parent,r=n.listeners,u=n.on,s=v(v({},r),u),l=z(i,this.options),a=this._component;this._component.options&&(a=this._component.options);var c=new(e.extend(a))({propsData:o||{},parent:i,router:l.router,store:l.store,i18n:l.i18n});Object.entries(s).forEach(function(e){var t=p(e,2),n=t[0],o=t[1];Array.isArray(o)?o.forEach(function(e){return c.$on(n,e)}):c.$on(n,o)}),c._mountId=this.id,this._vue2Instance=c}},{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.options,n=e.props,o=e.children,i=e.app,r=e.listeners,u=e.on,s=e.slots,l=v(v({},r),u),a=v(v({},n),this._mergeListenersToProps(l)),c=s?v(v({},s),o?{default:o}:{}):o,f=t.h(this._component,a,c);null!=i&&i._context&&(f.appContext=i._context),this._vNode=f}},{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]:{};j(v(v({},n),{},{installed:!0}));var o=n.name||"$show";t.isVue2?e.prototype[o]=J:e.config.globalProperties[o]=J}};e.EventEmitter=T,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=A,e.capitalize=N,e.clearSingletons=function(){_.forEach(function(e){return e.unmount()}),_.clear()},e.createElement=M,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({},k)},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=k,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=x,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=P,e.removeSingleton=O,e.resetGlobalConfig=function(){Object.keys(k).forEach(function(e){delete k[e]}),k.installed=!1},e.resolveTarget=C,e.setGlobalConfig=j,e.setSingleton=w,e.setZIndex=S,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,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)||_(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)||_(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 _(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 g=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=g.get(e);n&&n!==t&&n.unmount(),g.set(e,t)}function O(e){g.delete(e)}var k={installed:!1};function j(e){Object.assign(k,e)}function E(e){return v(v({},k),e)}function I(){return"undefined"!=typeof document}function C(e){return e?"string"==typeof e?I()?document.querySelector(e):null:e:null}function M(){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 P(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 x(e){return document.body.contains(e)}function S(e,t){void 0!==t&&(e.style.zIndex=String(t))}var $=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 $),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&&S(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&&x(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=C(this.options.target);e instanceof Element?(this.el=e,this._autoCreatedTarget=!1):(this.el=M(this.options.tagName||"div",{"data-mount-id":this.id}),this._autoCreatedTarget=!0)}}},{key:"_appendElementToDOM",value:function(){this.el&&this._autoCreatedTarget&&P(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,router:a.router,store:a.store,i18n:a.i18n});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)}),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]:{};j(v(v({},n),{},{installed:!0}));var o=n.name||"$show";t.isVue2?e.prototype[o]=J:e.config.globalProperties[o]=J}};e.EventEmitter=$,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=P,e.capitalize=N,e.clearSingletons=function(){g.forEach(function(e){return e.unmount()}),g.clear()},e.createElement=M,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({},k)},e.getInstanceById=U,e.getInstances=K,e.getSingleton=function(e){return g.get(e)},e.getSingletonKey=V,e.getSingletonKeys=function(){return Array.from(g.keys())},e.globalConfig=k,e.hasSingleton=function(e){return g.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=x,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(k).forEach(function(e){delete k[e]}),k.installed=!1},e.resolveTarget=C,e.setGlobalConfig=j,e.setSingleton=w,e.setZIndex=S,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);
|
package/dist/index.mjs
CHANGED
|
@@ -656,6 +656,7 @@ var MountVue2 = /*#__PURE__*/function (_MountBase) {
|
|
|
656
656
|
return _createClass(MountVue2, [{
|
|
657
657
|
key: "_createVM",
|
|
658
658
|
value: function _createVM() {
|
|
659
|
+
var _this2 = this;
|
|
659
660
|
var VueConstructor = Vue2;
|
|
660
661
|
var _this$options = this.options,
|
|
661
662
|
props = _this$options.props,
|
|
@@ -688,6 +689,10 @@ var MountVue2 = /*#__PURE__*/function (_MountBase) {
|
|
|
688
689
|
instance.$on(event, handler);
|
|
689
690
|
}
|
|
690
691
|
});
|
|
692
|
+
instance.$on('close', function () {
|
|
693
|
+
_this2._resolvePromise(undefined);
|
|
694
|
+
_this2.unmount();
|
|
695
|
+
});
|
|
691
696
|
instance._mountId = this.id;
|
|
692
697
|
this._vue2Instance = instance;
|
|
693
698
|
}
|
|
@@ -755,6 +760,7 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
755
760
|
return _createClass(MountVue3, [{
|
|
756
761
|
key: "_createVM",
|
|
757
762
|
value: function _createVM() {
|
|
763
|
+
var _this2 = this;
|
|
758
764
|
var _this$options = this.options,
|
|
759
765
|
props = _this$options.props,
|
|
760
766
|
children = _this$options.children,
|
|
@@ -763,7 +769,13 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
763
769
|
on = _this$options.on,
|
|
764
770
|
slots = _this$options.slots;
|
|
765
771
|
var mergedListeners = _objectSpread2(_objectSpread2({}, listeners), on);
|
|
766
|
-
var
|
|
772
|
+
var onClose = function onClose() {
|
|
773
|
+
_this2._resolvePromise(undefined);
|
|
774
|
+
_this2.unmount();
|
|
775
|
+
};
|
|
776
|
+
var mergedProps = _objectSpread2(_objectSpread2(_objectSpread2({}, props), this._mergeListenersToProps(mergedListeners)), {}, {
|
|
777
|
+
onClose: onClose
|
|
778
|
+
});
|
|
767
779
|
var mergedChildren = slots ? _objectSpread2(_objectSpread2({}, slots), children ? {
|
|
768
780
|
default: children
|
|
769
781
|
} : {}) : children;
|
|
@@ -776,17 +788,17 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
776
788
|
}, {
|
|
777
789
|
key: "_mountVM",
|
|
778
790
|
value: function _mountVM() {
|
|
779
|
-
var
|
|
791
|
+
var _this3 = this;
|
|
780
792
|
if (!this._vNode) {
|
|
781
793
|
this._createVM();
|
|
782
794
|
}
|
|
783
795
|
this._ensureElement();
|
|
784
796
|
this._appendElementToDOM();
|
|
785
797
|
getRender().then(function (render) {
|
|
786
|
-
if (render &&
|
|
787
|
-
var
|
|
788
|
-
render(
|
|
789
|
-
|
|
798
|
+
if (render && _this3._vNode && _this3.el) {
|
|
799
|
+
var _this3$_vNode$compone, _this3$_vNode$compone2;
|
|
800
|
+
render(_this3._vNode, _this3.el);
|
|
801
|
+
_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;
|
|
790
802
|
}
|
|
791
803
|
});
|
|
792
804
|
this.mounted = true;
|
|
@@ -794,11 +806,11 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
794
806
|
}, {
|
|
795
807
|
key: "_unmountVM",
|
|
796
808
|
value: function _unmountVM() {
|
|
797
|
-
var
|
|
809
|
+
var _this4 = this;
|
|
798
810
|
if (this._vNode) {
|
|
799
811
|
getRender().then(function (render) {
|
|
800
|
-
if (render &&
|
|
801
|
-
render(null,
|
|
812
|
+
if (render && _this4.el) {
|
|
813
|
+
render(null, _this4.el);
|
|
802
814
|
}
|
|
803
815
|
});
|
|
804
816
|
this._vNode = null;
|
|
@@ -809,14 +821,14 @@ var MountVue3 = /*#__PURE__*/function (_MountBase) {
|
|
|
809
821
|
}, {
|
|
810
822
|
key: "_updateVM",
|
|
811
823
|
value: function _updateVM() {
|
|
812
|
-
var
|
|
824
|
+
var _this5 = this;
|
|
813
825
|
this._createVM();
|
|
814
826
|
if (this.mounted && this.el && this._vNode) {
|
|
815
827
|
getRender().then(function (render) {
|
|
816
828
|
if (render) {
|
|
817
|
-
var
|
|
818
|
-
render(
|
|
819
|
-
|
|
829
|
+
var _this5$_vNode$compone, _this5$_vNode$compone2;
|
|
830
|
+
render(_this5._vNode, _this5.el);
|
|
831
|
+
_this5.vm = (_this5$_vNode$compone = (_this5$_vNode$compone2 = _this5._vNode.component) === null || _this5$_vNode$compone2 === void 0 ? void 0 : _this5$_vNode$compone2.proxy) !== null && _this5$_vNode$compone !== void 0 ? _this5$_vNode$compone : null;
|
|
820
832
|
}
|
|
821
833
|
});
|
|
822
834
|
}
|
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.2",
|
|
6
6
|
"packageManager": "pnpm@8.9.0",
|
|
7
7
|
"main": "dist/index.cjs",
|
|
8
8
|
"module": "dist/index.mjs",
|