n-vz 1.2.2 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.css +1 -1
- package/index.js +1 -2
- package/mini.js +1 -2
- package/package.json +1 -1
- package/publish.js +0 -2
- package/small.js +1 -2
- package/ui.css +1 -1
- package/index.js.LICENSE.txt +0 -1
- package/mini.js.LICENSE.txt +0 -1
- package/small.js.LICENSE.txt +0 -1
package/mini.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
/*! For license information please see mini.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.NVZ=e():t.NVZ=e()}(this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="./",r(r.s="zNcT")}({"+2oP":function(t,e,r){"use strict";var n=r("I+eb"),o=r("6LWA"),i=r("aO6C"),a=r("hh1v"),c=r("I8vh"),u=r("B/qT"),s=r("/GqU"),f=r("hBjN"),l=r("tiKp"),p=r("Hd5f"),h=r("82ph"),d=p("slice"),v=l("species"),m=Array,g=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var r,n,l,p=s(this),d=u(p),y=c(t,d),b=c(void 0===e?d:e,d);if(o(p)&&(r=p.constructor,(i(r)&&(r===m||o(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===m||void 0===r))return h(p,y,b);for(n=new(void 0===r?m:r)(g(b-y,0)),l=0;y<b;y++,l++)y in p&&f(n,l,p[y]);return n.length=l,n}})},"+M1K":function(t,e,r){"use strict";var n=r("WSbT"),o=RangeError;t.exports=function(t){var e=n(t);if(e<0)throw new o("The argument can't be less than 0");return e}},"+ywr":function(t,e,r){"use strict";r("dOgj")("Uint32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},"/Bu5":function(t,e,r){"use strict";var n=r("90hW"),o=r("guPS"),i=Math.abs;t.exports=function(t,e,r,a){var c=+t,u=i(c),s=n(c);if(u<a)return s*o(u/a/e)*a*e;var f=(1+e/2220446049250313e-31)*u,l=f-(f-u);return l>r||l!=l?s*(1/0):s*l}},"/GqU":function(t,e,r){"use strict";var n=r("RK3t"),o=r("HYAF");t.exports=function(t){return n(o(t))}},"/OPJ":function(t,e,r){"use strict";var n=r("0Dky"),o=r("z+kr").RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)}))},"/b8u":function(t,e,r){"use strict";var n=r("BPiQ");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"/byt":function(t,e,r){"use strict";t.exports={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}},"07d7":function(t,e,r){"use strict";var n=r("AO7/"),o=r("yy0I"),i=r("sEFX");n||o(Object.prototype,"toString",i,{unsafe:!0})},"0BK2":function(t,e,r){"use strict";t.exports={}},"0Dky":function(t,e,r){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},"0GbY":function(t,e,r){"use strict";var n=r("z+kr"),o=r("Fib7");t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},"0TkE":function(t,e,r){"use strict";var n=r("67WC"),o=r("tycR").find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},"0eef":function(t,e,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},"0kqD":function(t,e,r){"use strict";var n=r("4zBA"),o=r("Gi26"),i=SyntaxError,a=parseInt,c=String.fromCharCode,u=n("".charAt),s=n("".slice),f=n(/./.exec),l={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},p=/^[\da-f]{4}$/i,h=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var r=!0,n="";e<t.length;){var d=u(t,e);if("\\"===d){var v=s(t,e,e+2);if(o(l,v))n+=l[v],e+=2;else{if("\\u"!==v)throw new i('Unknown escape sequence: "'+v+'"');var m=s(t,e+=2,e+4);if(!f(p,m))throw new i("Bad Unicode escape at: "+e);n+=c(a(m,16)),e+=4}}else{if('"'===d){r=!1,e++;break}if(f(h,d))throw new i("Bad control character in string literal at: "+e);n+=d,e++}}if(r)throw new i("Unterminated string at: "+e);return{value:n,end:e}}},"0lZ3":function(t,e,r){"use strict";var n=r("z+kr");t.exports=n.Promise},"0oug":function(t,e,r){"use strict";r("4GWN")("iterator")},"0rvr":function(t,e,r){"use strict";var n=r("coJu"),o=r("hh1v"),i=r("HYAF"),a=r("O741");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(c){}return function(r,n){return i(r),a(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},"14Sl":function(t,e,r){"use strict";r("rB9j");var n=r("xluM"),o=r("yy0I"),i=r("kmMV"),a=r("0Dky"),c=r("tiKp"),u=r("kRJp"),s=c("species"),f=RegExp.prototype;t.exports=function(t,e,r,l){var p=c(t),h=!a((function(){var e={};return e[p]=function(){return 7},7!==""[t](e)})),d=h&&!a((function(){var e=!1,r=/a/;if("split"===t){var n={};n[s]=function(){return r},(r={constructor:n,flags:""})[p]=/./[p]}return r.exec=function(){return e=!0,null},r[p](""),!e}));if(!h||!d||r){var v=/./[p],m=e(p,""[t],(function(t,e,r,o,a){var c=e.exec;return c===i||c===f.exec?h&&!a?{done:!0,value:n(v,e,r,o)}:{done:!0,value:n(t,r,e,o)}:{done:!1}}));o(String.prototype,t,m[0]),o(f,p,m[1])}l&&u(f[p],"sham",!0)}},"1E5z":function(t,e,r){"use strict";var n=r("m/L8").f,o=r("Gi26"),i=r("tiKp")("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},"1Y/n":function(t,e,r){"use strict";var n=r("We1y"),o=r("ewvW"),i=r("RK3t"),a=r("B/qT"),c=TypeError,u="Reduce of empty array with no initial value",s=function(t){return function(e,r,s,f){var l=o(e),p=i(l),h=a(l);if(n(r),0===h&&s<2)throw new c(u);var d=t?h-1:0,v=t?-1:1;if(s<2)for(;;){if(d in p){f=p[d],d+=v;break}if(d+=v,t?d<0:h<=d)throw new c(u)}for(;t?d>=0:h>d;d+=v)d in p&&(f=r(f,p[d],d,l));return f}};t.exports={left:s(!1),right:s(!0)}},"1dYe":function(t,e,r){"use strict";var n=r("67WC"),o=r("tycR").forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(t){o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},"1tal":function(t,e,r){"use strict";var n=TypeError;t.exports=function(t,e){if(t<e)throw new n("Not enough arguments");return t}},"27RR":function(t,e,r){"use strict";var n=r("I+eb"),o=r("g6v/"),i=r("Vu81"),a=r("/GqU"),c=r("Bs8V"),u=r("hBjN");n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),o=c.f,s=i(n),f={},l=0;s.length>l;)void 0!==(r=o(n,e=s[l++]))&&u(f,e,r);return f}})},"2B1R":function(t,e,r){"use strict";var n=r("I+eb"),o=r("tycR").map;n({target:"Array",proto:!0,forced:!r("Hd5f")("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"2Gvs":function(t,e,r){"use strict";var n=r("0Dky");t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},"2bX/":function(t,e,r){"use strict";var n=r("0GbY"),o=r("Fib7"),i=r("OpvP"),a=r("/b8u"),c=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,c(t))}},"2fXf":function(t,e,r){"use strict";var n=r("I+eb"),o=r("z+kr"),i=r("xluM"),a=r("4zBA"),c=r("xDBR"),u=r("g6v/"),s=r("BPiQ"),f=r("0Dky"),l=r("Gi26"),p=r("OpvP"),h=r("glrk"),d=r("/GqU"),v=r("oEtG"),m=r("V37c"),g=r("XGwC"),y=r("fHMY"),b=r("33Wh"),x=r("JBy8"),w=r("BX/b"),_=r("dBg+"),T=r("Bs8V"),O=r("m/L8"),k=r("N+g0"),S=r("0eef"),E=r("yy0I"),M=r("7dAM"),j=r("VpIT"),A=r("93I0"),I=r("0BK2"),C=r("kOOl"),R=r("tiKp"),P=r("5Tg+"),D=r("4GWN"),z=r("V7lt"),B=r("1E5z"),N=r("afO8"),F=r("tycR").forEach,L=A("hidden"),U="Symbol",W="prototype",V=N.set,G=N.getterFor(U),K=Object[W],H=o.Symbol,Y=H&&H[W],q=o.RangeError,J=o.TypeError,X=o.QObject,$=T.f,Z=O.f,Q=w.f,tt=S.f,et=a([].push),rt=j("symbols"),nt=j("op-symbols"),ot=j("wks"),it=!X||!X[W]||!X[W].findChild,at=function(t,e,r){var n=$(K,e);n&&delete K[e],Z(t,e,r),n&&t!==K&&Z(K,e,n)},ct=u&&f((function(){return 7!==y(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?at:Z,ut=function(t,e){var r=rt[t]=y(Y);return V(r,{type:U,tag:t,description:e}),u||(r.description=e),r},st=function(t,e,r){t===K&&st(nt,e,r),h(t);var n=v(e);return h(r),l(rt,n)?(r.enumerable?(l(t,L)&&t[L][n]&&(t[L][n]=!1),r=y(r,{enumerable:g(0,!1)})):(l(t,L)||Z(t,L,g(1,y(null))),t[L][n]=!0),ct(t,n,r)):Z(t,n,r)},ft=function(t,e){h(t);var r=d(e),n=b(r).concat(dt(r));return F(n,(function(e){u&&!i(lt,r,e)||st(t,e,r[e])})),t},lt=function(t){var e=v(t),r=i(tt,this,e);return!(this===K&&l(rt,e)&&!l(nt,e))&&(!(r||!l(this,e)||!l(rt,e)||l(this,L)&&this[L][e])||r)},pt=function(t,e){var r=d(t),n=v(e);if(r!==K||!l(rt,n)||l(nt,n)){var o=$(r,n);return!o||!l(rt,n)||l(r,L)&&r[L][n]||(o.enumerable=!0),o}},ht=function(t){var e=Q(d(t)),r=[];return F(e,(function(t){l(rt,t)||l(I,t)||et(r,t)})),r},dt=function(t){var e=t===K,r=Q(e?nt:d(t)),n=[];return F(r,(function(t){!l(rt,t)||e&&!l(K,t)||et(n,rt[t])})),n};s||(H=function(){if(p(Y,this))throw new J("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=C(t),r=function(t){var n=void 0===this?o:this;n===K&&i(r,nt,t),l(n,L)&&l(n[L],e)&&(n[L][e]=!1);var a=g(1,t);try{ct(n,e,a)}catch(c){if(!(c instanceof q))throw c;at(n,e,a)}};return u&&it&&ct(K,e,{configurable:!0,set:r}),ut(e,t)},E(Y=H[W],"toString",(function(){return G(this).tag})),E(H,"withoutSetter",(function(t){return ut(C(t),t)})),S.f=lt,O.f=st,k.f=ft,T.f=pt,x.f=w.f=ht,_.f=dt,P.f=function(t){return ut(R(t),t)},u&&(M(Y,"description",{configurable:!0,get:function(){return G(this).description}}),c||E(K,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:H}),F(b(ot),(function(t){D(t)})),n({target:U,stat:!0,forced:!s},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),n({target:"Object",stat:!0,forced:!s,sham:!u},{create:function(t,e){return void 0===e?y(t):ft(y(t),e)},defineProperty:st,defineProperties:ft,getOwnPropertyDescriptor:pt}),n({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:ht}),z(),B(H,U),I[L]=!0},"2mBW":function(t,e){t.exports=function(t){throw new TypeError('"'+t+'" is read-only')},t.exports.__esModule=!0,t.exports.default=t.exports},"33Wh":function(t,e,r){"use strict";var n=r("yoRg"),o=r("eDl+");t.exports=Object.keys||function(t){return n(t,o)}},"37lR":function(t,e,r){"use strict";var n=r("B/qT");t.exports=function(t,e,r){for(var o=0,i=arguments.length>2?r:n(e),a=new t(i);i>o;)a[o]=e[o++];return a}},"3Eq5":function(t,e,r){"use strict";var n=r("We1y"),o=r("cjT7");t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},"3MOf":function(t,e,r){"use strict";var n=r("rpNk").IteratorPrototype,o=r("fHMY"),i=r("XGwC"),a=r("1E5z"),c=r("P4y1"),u=function(){return this};t.exports=function(t,e,r,s){var f=e+" Iterator";return t.prototype=o(n,{next:i(+!s,r)}),a(t,f,!1,!0),c[f]=u,t}},"3bBZ":function(t,e,r){"use strict";var n=r("z+kr"),o=r("/byt"),i=r("eFrH"),a=r("4mDm"),c=r("kRJp"),u=r("1E5z"),s=r("tiKp")("iterator"),f=a.values,l=function(t,e){if(t){if(t[s]!==f)try{c(t,s,f)}catch(n){t[s]=f}if(u(t,e,!0),o[e])for(var r in a)if(t[r]!==a[r])try{c(t,r,a[r])}catch(n){t[r]=a[r]}}};for(var p in o)l(n[p]&&n[p].prototype,p);l(i,"DOMTokenList")},"4Brf":function(t,e,r){"use strict";var n=r("I+eb"),o=r("g6v/"),i=r("z+kr"),a=r("4zBA"),c=r("Gi26"),u=r("Fib7"),s=r("OpvP"),f=r("V37c"),l=r("7dAM"),p=r("6JNq"),h=i.Symbol,d=h&&h.prototype;if(o&&u(h)&&(!("description"in d)||void 0!==h().description)){var v={},m=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),e=s(d,this)?new h(t):void 0===t?h():h(t);return""===t&&(v[e]=!0),e};p(m,h),m.prototype=d,d.constructor=m;var g="Symbol(description detection)"===String(h("description detection")),y=a(d.valueOf),b=a(d.toString),x=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),_=a("".slice);l(d,"description",{configurable:!0,get:function(){var t=y(this);if(c(v,t))return"";var e=b(t),r=g?_(e,7,-1):w(e,x,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:m})}},"4GWN":function(t,e,r){"use strict";var n=r("Qo9l"),o=r("Gi26"),i=r("5Tg+"),a=r("m/L8").f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},"4WOD":function(t,e,r){"use strict";var n=r("Gi26"),o=r("Fib7"),i=r("ewvW"),a=r("93I0"),c=r("4Xet"),u=a("IE_PROTO"),s=Object,f=s.prototype;t.exports=c?s.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof s?f:null}},"4Xet":function(t,e,r){"use strict";var n=r("0Dky");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"4l63":function(t,e,r){"use strict";var n=r("I+eb"),o=r("wg0c");n({global:!0,forced:parseInt!==o},{parseInt:o})},"4mDm":function(t,e,r){"use strict";var n=r("/GqU"),o=r("RNIs"),i=r("P4y1"),a=r("afO8"),c=r("m/L8").f,u=r("xtKg"),s=r("R1RC"),f=r("xDBR"),l=r("g6v/"),p="Array Iterator",h=a.set,d=a.getterFor(p);t.exports=u(Array,"Array",(function(t,e){h(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(r,!1);case"values":return s(e[r],!1)}return s([r,e[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&l&&"values"!==v.name)try{c(v,"name",{value:"values"})}catch(m){}},"4zBA":function(t,e,r){"use strict";var n=r("QNWe"),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},"5DmW":function(t,e,r){"use strict";var n=r("I+eb"),o=r("0Dky"),i=r("/GqU"),a=r("Bs8V").f,c=r("g6v/");n({target:"Object",stat:!0,forced:!c||o((function(){a(1)})),sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},"5Q0V":function(t,e,r){var n=r("cDf5").default;t.exports=function(t,e){if("object"!=n(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},"5Tg+":function(t,e,r){"use strict";var n=r("tiKp");e.f=n},"5Yz+":function(t,e,r){"use strict";var n=r("K6Rb"),o=r("/GqU"),i=r("WSbT"),a=r("B/qT"),c=r("pkCn"),u=Math.min,s=[].lastIndexOf,f=!!s&&1/[1].lastIndexOf(1,-0)<0,l=c("lastIndexOf"),p=f||!l;t.exports=p?function(t){if(f)return n(s,this,arguments)||0;var e=o(this),r=a(e);if(0===r)return-1;var c=r-1;for(arguments.length>1&&(c=u(c,i(arguments[1]))),c<0&&(c=r+c);c>=0;c--)if(c in e&&e[c]===t)return c||0;return-1}:s},"5mdu":function(t,e,r){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"5s+n":function(t,e,r){"use strict";r("Xn6M"),r("FOUG"),r("zJiX"),r("NSnw"),r("8itv"),r("cUmr")},"67WC":function(t,e,r){"use strict";var n,o,i,a=r("SxGu"),c=r("g6v/"),u=r("z+kr"),s=r("Fib7"),f=r("hh1v"),l=r("Gi26"),p=r("9d/t"),h=r("DVFp"),d=r("kRJp"),v=r("yy0I"),m=r("7dAM"),g=r("OpvP"),y=r("4WOD"),b=r("0rvr"),x=r("tiKp"),w=r("kOOl"),_=r("afO8"),T=_.enforce,O=_.get,k=u.Int8Array,S=k&&k.prototype,E=u.Uint8ClampedArray,M=E&&E.prototype,j=k&&y(k),A=S&&y(S),I=Object.prototype,C=u.TypeError,R=x("toStringTag"),P=w("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",z=a&&!!b&&"Opera"!==p(u.opera),B=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},L=function(t){var e=y(t);if(f(e)){var r=O(e);return r&&l(r,D)?r[D]:L(e)}},U=function(t){if(!f(t))return!1;var e=p(t);return l(N,e)||l(F,e)};for(n in N)(i=(o=u[n])&&o.prototype)?T(i)[D]=o:z=!1;for(n in F)(i=(o=u[n])&&o.prototype)&&(T(i)[D]=o);if((!z||!s(j)||j===Function.prototype)&&(j=function(){throw new C("Incorrect invocation")},z))for(n in N)u[n]&&b(u[n],j);if((!z||!A||A===I)&&(A=j.prototype,z))for(n in N)u[n]&&b(u[n].prototype,A);if(z&&y(M)!==A&&b(M,A),c&&!l(A,R))for(n in B=!0,m(A,R,{configurable:!0,get:function(){return f(this)?this[P]:void 0}}),N)u[n]&&d(u[n],P,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:z,TYPED_ARRAY_TAG:B&&P,aTypedArray:function(t){if(U(t))return t;throw new C("Target is not a typed array")},aTypedArrayConstructor:function(t){if(s(t)&&(!b||g(j,t)))return t;throw new C(h(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(c){if(r)for(var o in N){var i=u[o];if(i&&l(i.prototype,t))try{delete i.prototype[t]}catch(a){try{i.prototype[t]=e}catch(s){}}}A[t]&&!r||v(A,t,r?e:z&&S[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(c){if(b){if(r)for(n in N)if((o=u[n])&&l(o,t))try{delete o[t]}catch(i){}if(j[t]&&!r)return;try{return v(j,t,r?e:z&&j[t]||e)}catch(i){}}for(n in N)!(o=u[n])||o[t]&&!r||v(o,t,e)}},getTypedArrayConstructor:L,isView:function(t){if(!f(t))return!1;var e=p(t);return"DataView"===e||l(N,e)||l(F,e)},isTypedArray:U,TypedArray:j,TypedArrayPrototype:A}},"68E8":function(t,e,r){"use strict";var n=r("tdvT");t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},"6JNq":function(t,e,r){"use strict";var n=r("Gi26"),o=r("Vu81"),i=r("Bs8V"),a=r("m/L8");t.exports=function(t,e,r){for(var c=o(e),u=a.f,s=i.f,f=0;f<c.length;f++){var l=c[f];n(t,l)||r&&n(r,l)||u(t,l,s(e,l))}}},"6LWA":function(t,e,r){"use strict";var n=r("xrYK");t.exports=Array.isArray||function(t){return"Array"===n(t)}},"6R/c":function(t,e,r){"use strict";var n=r("67WC"),o=r("TWQb").indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},"6VoE":function(t,e,r){"use strict";var n=r("tiKp"),o=r("P4y1"),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},"6cQw":function(t,e,r){"use strict";var n=r("I+eb"),o=r("0GbY"),i=r("K6Rb"),a=r("xluM"),c=r("4zBA"),u=r("0Dky"),s=r("6LWA"),f=r("Fib7"),l=r("90i9"),p=r("2bX/"),h=r("xrYK"),d=r("V37c"),v=r("82ph"),m=r("0kqD"),g=r("kOOl"),y=r("BPiQ"),b=r("nPd/"),x=String,w=o("JSON","stringify"),_=c(/./.exec),T=c("".charAt),O=c("".charCodeAt),k=c("".replace),S=c("".slice),E=c([].push),M=c(1.1.toString),j=/[\uD800-\uDFFF]/g,A=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,C=g(),R=C.length,P=!y||u((function(){var t=o("Symbol")("stringify detection");return"[null]"!==w([t])||"{}"!==w({a:t})||"{}"!==w(Object(t))})),D=u((function(){return'"\\udf06\\ud834"'!==w("\udf06\ud834")||'"\\udead"'!==w("\udead")})),z=P?function(t,e){var r=v(arguments),n=N(e);if(f(n)||void 0!==t&&!p(t))return r[1]=function(t,e){if(f(n)&&(e=a(n,this,x(t),e)),!p(e))return e},i(w,null,r)}:w,B=function(t,e,r){var n=T(r,e-1),o=T(r,e+1);return _(A,t)&&!_(I,o)||_(I,t)&&!_(A,n)?"\\u"+M(O(t,0),16):t},N=function(t){if(f(t))return t;if(s(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?E(r,o):"number"!=typeof o&&"Number"!==h(o)&&"String"!==h(o)||E(r,d(o))}var i=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(s(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}};w&&n({target:"JSON",stat:!0,arity:3,forced:P||D||!b},{stringify:function(t,e,r){var n=N(e),o=[],i=z(t,(function(t,e){var r=f(n)?a(n,this,x(t),e):e;return!b&&l(r)?C+(E(o,r.rawJSON)-1):r}),r);if("string"!=typeof i)return i;if(D&&(i=k(i,j,B)),b)return i;for(var c="",u=i.length,s=0;s<u;s++){var p=T(i,s);if('"'===p){var h=m(i,++s).end-1,d=S(i,s,h);c+=S(d,0,R)===C?o[S(d,R)]:'"'+d+'"',s=h}else c+=p}return c}})},"6oOd":function(t,e,r){"use strict";var n=r("tdvT").match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},"6sUC":function(t,e,r){"use strict";var n=r("hh1v"),o=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&o(t)===t}},"7IeV":function(t,e,r){"use strict";var n=r("tdvT");t.exports=/web0s(?!.*chrome)/i.test(n)},"7W2i":function(t,e,r){var n=r("SksO");t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},"7dAM":function(t,e,r){"use strict";var n=r("E9LY"),o=r("m/L8");t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},"82ph":function(t,e,r){"use strict";var n=r("4zBA");t.exports=n([].slice)},"8GlL":function(t,e,r){"use strict";var n=r("We1y"),o=TypeError,i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new o("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},"8YOa":function(t,e,r){"use strict";var n=r("I+eb"),o=r("4zBA"),i=r("0BK2"),a=r("hh1v"),c=r("Gi26"),u=r("m/L8").f,s=r("JBy8"),f=r("BX/b"),l=r("T63f"),p=r("kOOl"),h=r("uy83"),d=!1,v=p("meta"),m=0,g=function(t){u(t,v,{value:{objectID:"O"+m++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},d=!0;var t=s.f,e=o([].splice),r={};r[v]=1,t(r).length&&(s.f=function(r){for(var n=t(r),o=0,i=n.length;o<i;o++)if(n[o]===v){e(n,o,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!c(t,v)){if(!l(t))return"F";if(!e)return"E";g(t)}return t[v].objectID},getWeakData:function(t,e){if(!c(t,v)){if(!l(t))return!0;if(!e)return!1;g(t)}return t[v].weakData},onFreeze:function(t){return h&&d&&l(t)&&!c(t,v)&&g(t),t}};i[v]=!0},"8itv":function(t,e,r){"use strict";var n=r("I+eb"),o=r("8GlL");n({target:"Promise",stat:!0,forced:r("Rzhe").CONSTRUCTOR},{reject:function(t){var e=o.f(this);return(0,e.reject)(t),e.promise}})},"90hW":function(t,e,r){"use strict";t.exports=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1}},"90i9":function(t,e,r){"use strict";var n=r("hh1v"),o=r("afO8").get;t.exports=function(t){if(!n(t))return!1;var e=o(t);return!!e&&"RawJSON"===e.type}},"93I0":function(t,e,r){"use strict";var n=r("VpIT"),o=r("kOOl"),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},"9JVa":function(t,e,r){"use strict";var n=r("wE6v"),o=TypeError;t.exports=function(t){var e=n(t,"number");if("number"==typeof e)throw new o("Can't convert number to bigint");return BigInt(e)}},"9d/t":function(t,e,r){"use strict";var n=r("AO7/"),o=r("Fib7"),i=r("xrYK"),a=r("tiKp")("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=c(t),a))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},A2ZE:function(t,e,r){"use strict";var n=r("RiVN"),o=r("We1y"),i=r("QNWe"),a=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},"AO7/":function(t,e,r){"use strict";var n={};n[r("tiKp")("toStringTag")]="z",t.exports="[object z]"===String(n)},AbTg:function(t,e,r){"use strict";var n=function(){this.head=null,this.tail=null};n.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=n},AmFO:function(t,e,r){"use strict";var n=r("I+eb"),o=r("0Dky"),i=r("jrUv"),a=Math.abs,c=Math.exp,u=Math.E;n({target:"Math",stat:!0,forced:o((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(t){var e=+t;return a(e)<1?(i(e)-i(-e))/2:(c(e-1)-c(-e-1))*(u/2)}})},"B/qT":function(t,e,r){"use strict";var n=r("UMSQ");t.exports=function(t){return n(t.length)}},B6y2:function(t,e,r){"use strict";var n=r("I+eb"),o=r("b1O7").values;n({target:"Object",stat:!0},{values:function(t){return o(t)}})},BPiQ:function(t,e,r){"use strict";var n=r("EhIz"),o=r("0Dky"),i=r("z+kr").String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},BTho:function(t,e,r){"use strict";var n=r("4zBA"),o=r("We1y"),i=r("hh1v"),a=r("Gi26"),c=r("82ph"),u=r("QNWe"),s=Function,f=n([].concat),l=n([].join),p={};t.exports=u?s.bind:function(t){var e=o(this),r=e.prototype,n=c(arguments,1),u=function(){var r=f(n,c(arguments));return this instanceof u?function(t,e,r){if(!a(p,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";p[e]=s("C,a","return new C("+l(n,",")+")")}return p[e](t,r)}(e,r.length,r):e.apply(t,r)};return i(r)&&(u.prototype=r),u}},"BX/b":function(t,e,r){"use strict";var n=r("xrYK"),o=r("/GqU"),i=r("JBy8").f,a=r("82ph"),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return c&&"Window"===n(t)?function(t){try{return i(t)}catch(e){return a(c)}}(t):i(o(t))}},Bnag:function(t,e){t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports},Bs8V:function(t,e,r){"use strict";var n=r("g6v/"),o=r("xluM"),i=r("0eef"),a=r("XGwC"),c=r("/GqU"),u=r("oEtG"),s=r("Gi26"),f=r("DPsx"),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=c(t),e=u(e),f)try{return l(t,e)}catch(r){}if(s(t,e))return a(!o(i.f,t,e),t[e])}},C0Ia:function(t,e,r){"use strict";var n=r("6LWA"),o=r("aO6C"),i=r("hh1v"),a=r("tiKp")("species"),c=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===c||n(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?c:e}},C0Od:function(t,e,r){"use strict";var n=r("BPiQ");t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},CDr4:function(t,e,r){"use strict";var n=r("DVFp"),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+n(e)+" of "+n(t))}},CyXQ:function(t,e,r){"use strict";var n=r("WSbT"),o=r("UMSQ"),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=o(e);if(e!==r)throw new i("Wrong length or index");return r}},DLK6:function(t,e,r){"use strict";var n=r("4zBA"),o=r("ewvW"),i=Math.floor,a=n("".charAt),c=n("".replace),u=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,f=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,l,p){var h=r+t.length,d=n.length,v=f;return void 0!==l&&(l=o(l),v=s),c(p,v,(function(o,c){var s;switch(a(c,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,h);case"<":s=l[u(c,1,-1)];break;default:var f=+c;if(0===f)return o;if(f>d){var p=i(f/10);return 0===p?o:p<=d?void 0===n[p-1]?a(c,1):n[p-1]+a(c,1):o}s=n[f-1]}return void 0===s?"":s}))}},DPsx:function(t,e,r){"use strict";var n=r("g6v/"),o=r("0Dky"),i=r("zBJ4");t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},DVFp:function(t,e,r){"use strict";var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},DzMA:function(t,e,r){"use strict";var n=r("z+kr"),o=r("0Dky"),i=n.RegExp,a=!o((function(){var t=!0;try{i(".","d")}catch(u){t=!1}var e={},r="",n=t?"dgimsy":"gimsy",o=function(t,n){Object.defineProperty(e,t,{get:function(){return r+=n,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in t&&(a.hasIndices="d"),a)o(c,a[c]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(e)!==n||r!==n}));t.exports={correct:a}},E6bK:function(t,e,r){"use strict";var n=Math.round;t.exports=function(t){var e=n(t);return e<0?0:e>255?255:255&e}},E9LY:function(t,e,r){"use strict";var n=r("4zBA"),o=r("0Dky"),i=r("Fib7"),a=r("Gi26"),c=r("g6v/"),u=r("Xnc8").CONFIGURABLE,s=r("iSVu"),f=r("afO8"),l=f.enforce,p=f.get,h=String,d=Object.defineProperty,v=n("".slice),m=n("".replace),g=n([].join),y=c&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=t.exports=function(t,e,r){"Symbol("===v(h(e),0,7)&&(e="["+m(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||u&&t.name!==e)&&(c?d(t,"name",{value:e,configurable:!0}):t.name=e),y&&r&&a(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?c&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var n=l(t);return a(n,"source")||(n.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return i(this)&&p(this).source||s(this)}),"toString")},E9XD:function(t,e,r){"use strict";var n=r("I+eb"),o=r("1Y/n").left,i=r("pkCn"),a=r("EhIz");n({target:"Array",proto:!0,forced:!r("mtxD")&&a>79&&a<83||!i("reduce")},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},EHx7:function(t,e,r){"use strict";var n=r("0Dky"),o=r("z+kr").RegExp;t.exports=n((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},EUja:function(t,e,r){"use strict";var n=r("WSbT"),o=r("V37c"),i=r("HYAF"),a=RangeError;t.exports=function(t){var e=o(i(this)),r="",c=n(t);if(c<0||c===1/0)throw new a("Wrong number of repetitions");for(;c>0;(c>>>=1)&&(e+=e))1&c&&(r+=e);return r}},EbDI:function(t,e){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},EhIz:function(t,e,r){"use strict";var n,o,i=r("z+kr"),a=r("tdvT"),c=i.process,u=i.Deno,s=c&&c.versions||u&&u.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},EnZy:function(t,e,r){"use strict";var n=r("xluM"),o=r("4zBA"),i=r("14Sl"),a=r("glrk"),c=r("hh1v"),u=r("HYAF"),s=r("SEBh"),f=r("iqWW"),l=r("UMSQ"),p=r("V37c"),h=r("3Eq5"),d=r("FMNM"),v=r("n3/R"),m=r("0Dky"),g=v.UNSUPPORTED_Y,y=Math.min,b=o([].push),x=o("".slice),w=!m((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),_="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(t,e,r){var o="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:n(e,this,t,r)}:e;return[function(e,r){var i=u(this),a=c(e)?h(e,t):void 0;return a?n(a,e,i,r):n(o,p(i),e,r)},function(t,n){var i=a(this),c=p(t);if(!_){var u=r(o,i,c,n,o!==e);if(u.done)return u.value}var h=s(i,RegExp),v=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(g?"g":"y"),w=new h(g?"^(?:"+i.source+")":i,m),T=void 0===n?4294967295:n>>>0;if(0===T)return[];if(0===c.length)return null===d(w,c)?[c]:[];for(var O=0,k=0,S=[];k<c.length;){w.lastIndex=g?0:k;var E,M=d(w,g?x(c,k):c);if(null===M||(E=y(l(w.lastIndex+(g?k:0)),c.length))===O)k=f(c,k,v);else{if(b(S,x(c,O,k)),S.length===T)return S;for(var j=1;j<=M.length-1;j++)if(b(S,M[j]),S.length===T)return S;k=O=E}}return b(S,x(c,O)),S}]}),_||!w,g)},F4ds:function(t,e,r){"use strict";var n=r("hh1v");t.exports=function(t){return n(t)||null===t}},F8JR:function(t,e,r){"use strict";var n=r("tycR").forEach,o=r("pkCn")("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},FF6l:function(t,e,r){"use strict";var n=r("ewvW"),o=r("I8vh"),i=r("B/qT"),a=r("CDr4"),c=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),u=i(r),s=o(t,u),f=o(e,u),l=arguments.length>2?arguments[2]:void 0,p=c((void 0===l?u:o(l,u))-f,u-s),h=1;for(f<s&&s<f+p&&(h=-1,f+=p-1,s+=p-1);p-- >0;)f in r?r[s]=r[f]:a(r,s),s+=h,f+=h;return r}},FMNM:function(t,e,r){"use strict";var n=r("xluM"),o=r("glrk"),i=r("Fib7"),a=r("xrYK"),c=r("kmMV"),u=TypeError;t.exports=function(t,e){var r=t.exec;if(i(r)){var s=n(r,t,e);return null!==s&&o(s),s}if("RegExp"===a(t))return n(c,t,e);throw new u("RegExp#exec called on incompatible receiver")}},FOUG:function(t,e,r){"use strict";var n=r("I+eb"),o=r("xluM"),i=r("We1y"),a=r("8GlL"),c=r("5mdu"),u=r("ImZN");n({target:"Promise",stat:!0,forced:r("Xu1c")},{all:function(t){var e=this,r=a.f(e),n=r.resolve,s=r.reject,f=c((function(){var r=i(e.resolve),a=[],c=0,f=1;u(t,(function(t){var i=c++,u=!1;f++,o(r,e,t).then((function(t){u||(u=!0,a[i]=t,--f||n(a))}),s)})),--f||n(a)}));return f.error&&s(f.value),r.promise}})},FXpK:function(t,e,r){"use strict";var n=r("z+kr"),o=r("g6v/"),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return n[t];var e=i(n,t);return e&&e.value}},FZtP:function(t,e,r){"use strict";var n=r("z+kr"),o=r("/byt"),i=r("eFrH"),a=r("F8JR"),c=r("kRJp"),u=function(t){if(t&&t.forEach!==a)try{c(t,"forEach",a)}catch(e){t.forEach=a}};for(var s in o)o[s]&&u(n[s]&&n[s].prototype);u(i)},Fib7:function(t,e,r){"use strict";var n="object"==typeof document&&document.all;t.exports=void 0===n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},"Fwt+":function(t,e,r){"use strict";var n=r("67WC"),o=r("UMSQ"),i=r("I8vh"),a=n.aTypedArray,c=n.getTypedArrayConstructor;(0,n.exportTypedArrayMethod)("subarray",(function(t,e){var r=a(this),n=r.length,u=i(t,n);return new(c(r))(r.buffer,r.byteOffset+u*r.BYTES_PER_ELEMENT,o((void 0===e?n:i(e,n))-u))}))},"G+Rx":function(t,e,r){"use strict";var n=r("0GbY");t.exports=n("document","documentElement")},GC2F:function(t,e,r){"use strict";var n=r("+M1K"),o=RangeError;t.exports=function(t,e){var r=n(t);if(r%e)throw new o("Wrong offset");return r}},GarU:function(t,e,r){"use strict";var n=r("OpvP"),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},Gi26:function(t,e,r){"use strict";var n=r("4zBA"),o=r("ewvW"),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},HFnK:function(t,e,r){"use strict";r("bWFh")("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r("ZWaQ"))},HH4o:function(t,e,r){"use strict";var n=r("tiKp")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(c){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(c){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(c){}return r}},HYAF:function(t,e,r){"use strict";var n=r("cjT7"),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},Hd5f:function(t,e,r){"use strict";var n=r("0Dky"),o=r("tiKp"),i=r("EhIz"),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"I+eb":function(t,e,r){"use strict";var n=r("z+kr"),o=r("Bs8V").f,i=r("kRJp"),a=r("yy0I"),c=r("Y3Q8"),u=r("6JNq"),s=r("lMq5");t.exports=function(t,e){var r,f,l,p,h,d=t.target,v=t.global,m=t.stat;if(r=v?n:m?n[d]||c(d,{}):n[d]&&n[d].prototype)for(f in e){if(p=e[f],l=t.dontCallGetSet?(h=o(r,f))&&h.value:r[f],!s(v?f:d+(m?".":"#")+f,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;u(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),a(r,f,p,t)}}},I8vh:function(t,e,r){"use strict";var n=r("WSbT"),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},IZzc:function(t,e,r){"use strict";var n=r("z+kr"),o=r("RiVN"),i=r("0Dky"),a=r("We1y"),c=r("rdv8"),u=r("67WC"),s=r("P34a"),f=r("mfQh"),l=r("EhIz"),p=r("6oOd"),h=u.aTypedArray,d=u.exportTypedArrayMethod,v=n.Uint16Array,m=v&&o(v.prototype.sort),g=!(!m||i((function(){m(new v(2),null)}))&&i((function(){m(new v(2),{})}))),y=!!m&&!i((function(){if(l)return l<74;if(s)return s<67;if(f)return!0;if(p)return p<602;var t,e,r=new v(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(m(r,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));d("sort",(function(t){return void 0!==t&&a(t),y?m(this,t):c(h(this),function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t))}),!y||g)},Ijbi:function(t,e,r){var n=r("WkPL");t.exports=function(t){if(Array.isArray(t))return n(t)},t.exports.__esModule=!0,t.exports.default=t.exports},ImZN:function(t,e,r){"use strict";var n=r("A2ZE"),o=r("xluM"),i=r("glrk"),a=r("DVFp"),c=r("6VoE"),u=r("B/qT"),s=r("OpvP"),f=r("mh/w"),l=r("NaFW"),p=r("KmKo"),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},v=d.prototype;t.exports=function(t,e,r){var m,g,y,b,x,w,_,T=r&&r.that,O=!(!r||!r.AS_ENTRIES),k=!(!r||!r.IS_RECORD),S=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),M=n(e,T),j=function(t){return m&&p(m,"normal"),new d(!0,t)},A=function(t){return O?(i(t),E?M(t[0],t[1],j):M(t[0],t[1])):E?M(t,j):M(t)};if(k)m=t.iterator;else if(S)m=t;else{if(!(g=l(t)))throw new h(a(t)+" is not iterable");if(c(g)){for(y=0,b=u(t);b>y;y++)if((x=A(t[y]))&&s(v,x))return x;return new d(!1)}m=f(t,g)}for(w=k?t.next:m.next;!(_=o(w,m)).done;){try{x=A(_.value)}catch(I){p(m,"throw",I)}if("object"==typeof x&&x&&s(v,x))return x}return new d(!1)}},J4zp:function(t,e,r){var n=r("wTVA"),o=r("m0LI"),i=r("ZhPi"),a=r("wkBT");t.exports=function(t,e){return n(t)||o(t,e)||i(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},JBy8:function(t,e,r){"use strict";var n=r("yoRg"),o=r("eDl+").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},JTJg:function(t,e,r){"use strict";var n=r("I+eb"),o=r("4zBA"),i=r("WjRb"),a=r("HYAF"),c=r("V37c"),u=r("qxPZ"),s=o("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~s(c(a(this)),c(i(t)),arguments.length>1?arguments[1]:void 0)}})},JaFt:function(t,e,r){"use strict";var n=r("67WC"),o=r("1Y/n").right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return o(i(this),t,e,e>1?arguments[1]:void 0)}))},JevA:function(t,e,r){"use strict";var n=r("I+eb"),o=r("wg0c");n({target:"Number",stat:!0,forced:Number.parseInt!==o},{parseInt:o})},JfAA:function(t,e,r){"use strict";var n=r("Xnc8").PROPER,o=r("yy0I"),i=r("glrk"),a=r("V37c"),c=r("0Dky"),u=r("kNi0"),s="toString",f=RegExp.prototype,l=f[s],p=c((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),h=n&&l.name!==s;(p||h)&&o(f,s,(function(){var t=i(this);return"/"+a(t.source)+"/"+a(u(t))}),{unsafe:!0})},JiZb:function(t,e,r){"use strict";var n=r("0GbY"),o=r("7dAM"),i=r("tiKp"),a=r("g6v/"),c=i("species");t.exports=function(t){var e=n(t);a&&e&&!e[c]&&o(e,c,{configurable:!0,get:function(){return this}})}},Junv:function(t,e,r){"use strict";var n=r("I+eb"),o=r("4zBA"),i=r("6LWA"),a=o([].reverse),c=[1,2];n({target:"Array",proto:!0,forced:String(c)===String(c.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},K6Rb:function(t,e,r){"use strict";var n=r("QNWe"),o=Function.prototype,i=o.apply,a=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},KVSy:function(t,e,r){"use strict";var n=r("67WC"),o=r("0Dky"),i=r("82ph"),a=n.aTypedArray,c=n.getTypedArrayConstructor;(0,n.exportTypedArrayMethod)("slice",(function(t,e){for(var r=i(a(this),t,e),n=c(this),o=0,u=r.length,s=new n(u);u>o;)s[o]=r[o++];return s}),o((function(){new Int8Array(1).slice()})))},KmKo:function(t,e,r){"use strict";var n=r("xluM"),o=r("glrk"),i=r("3Eq5");t.exports=function(t,e,r){var a,c;o(t);try{if(!(a=i(t,"return"))){if("throw"===e)throw r;return r}a=n(a,t)}catch(u){c=!0,a=u}if("throw"===e)throw r;if(c)throw a;return o(a),r}},KvGi:function(t,e,r){"use strict";r("I+eb")({target:"Math",stat:!0},{sign:r("90hW")})},LPSS:function(t,e,r){"use strict";var n,o,i,a,c=r("z+kr"),u=r("K6Rb"),s=r("A2ZE"),f=r("Fib7"),l=r("Gi26"),p=r("0Dky"),h=r("G+Rx"),d=r("82ph"),v=r("zBJ4"),m=r("1tal"),g=r("UsjB"),y=r("mtxD"),b=c.setImmediate,x=c.clearImmediate,w=c.process,_=c.Dispatch,T=c.Function,O=c.MessageChannel,k=c.String,S=0,E={},M="onreadystatechange";p((function(){n=c.location}));var j=function(t){if(l(E,t)){var e=E[t];delete E[t],e()}},A=function(t){return function(){j(t)}},I=function(t){j(t.data)},C=function(t){c.postMessage(k(t),n.protocol+"//"+n.host)};b&&x||(b=function(t){m(arguments.length,1);var e=f(t)?t:T(t),r=d(arguments,1);return E[++S]=function(){u(e,void 0,r)},o(S),S},x=function(t){delete E[t]},y?o=function(t){w.nextTick(A(t))}:_&&_.now?o=function(t){_.now(A(t))}:O&&!g?(a=(i=new O).port2,i.port1.onmessage=I,o=s(a.postMessage,a)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&n&&"file:"!==n.protocol&&!p(C)?(o=C,c.addEventListener("message",I,!1)):o=M in v("script")?function(t){h.appendChild(v("script"))[M]=function(){h.removeChild(this),j(t)}}:function(t){setTimeout(A(t),0)}),t.exports={set:b,clear:x}},MPKZ:function(t,e,r){"use strict";var n=r("37lR"),o=r("67WC").getTypedArrayConstructor;t.exports=function(t,e){return n(o(t),e)}},MoCz:function(t,e,r){"use strict";var n=r("67WC"),o=r("K6Rb"),i=r("5Yz+"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return o(i,a(this),e>1?[t,arguments[1]]:[t])}))},"N+g0":function(t,e,r){"use strict";var n=r("g6v/"),o=r("rtlb"),i=r("m/L8"),a=r("glrk"),c=r("/GqU"),u=r("33Wh");e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=c(e),o=u(e),s=o.length,f=0;s>f;)i.f(t,r=o[f++],n[r]);return t}},NRFe:function(t,e,r){"use strict";var n=TypeError;t.exports=function(t){if(t>9007199254740991)throw n("Maximum allowed index exceeded");return t}},NSnw:function(t,e,r){"use strict";var n=r("I+eb"),o=r("xluM"),i=r("We1y"),a=r("8GlL"),c=r("5mdu"),u=r("ImZN");n({target:"Promise",stat:!0,forced:r("Xu1c")},{race:function(t){var e=this,r=a.f(e),n=r.reject,s=c((function(){var a=i(e.resolve);u(t,(function(t){o(a,e,t).then(r.resolve,n)}))}));return s.error&&n(s.value),r.promise}})},NaFW:function(t,e,r){"use strict";var n=r("9d/t"),o=r("3Eq5"),i=r("cjT7"),a=r("P4y1"),c=r("tiKp")("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||a[n(t)]}},Nsbk:function(t,e){function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},O741:function(t,e,r){"use strict";var n=r("F4ds"),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},OjSQ:function(t,e,r){"use strict";var n=r("g6v/"),o=r("6LWA"),i=TypeError,a=Object.getOwnPropertyDescriptor,c=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=c?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},Onu3:function(t,e,r){"use strict";var n=r("67WC"),o=r("tycR").findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},OpvP:function(t,e,r){"use strict";var n=r("4zBA");t.exports=n({}.isPrototypeOf)},P34a:function(t,e,r){"use strict";var n=r("tdvT").match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},P4y1:function(t,e,r){"use strict";t.exports={}},P8wP:function(t,e,r){"use strict";var n=r("67WC"),o=r("tycR").map,i=n.aTypedArray,a=n.getTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(a(t))(e)}))}))},PF2M:function(t,e,r){"use strict";var n=r("z+kr"),o=r("xluM"),i=r("67WC"),a=r("B/qT"),c=r("GC2F"),u=r("ewvW"),s=r("0Dky"),f=n.RangeError,l=n.Int8Array,p=l&&l.prototype,h=p&&p.set,d=i.aTypedArray,v=i.exportTypedArrayMethod,m=!s((function(){var t=new Uint8ClampedArray(2);return o(h,t,{length:1,0:3},1),3!==t[1]})),g=m&&i.NATIVE_ARRAY_BUFFER_VIEWS&&s((function(){var t=new l(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));v("set",(function(t){d(this);var e=c(arguments.length>1?arguments[1]:void 0,1),r=u(t);if(m)return o(h,this,r,e);var n=this.length,i=a(r),s=0;if(i+e>n)throw new f("Wrong length");for(;s<i;)this[e+s]=r[s++]}),!m||g)},PJYZ:function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},PKPk:function(t,e,r){"use strict";var n=r("ZUd8").charAt,o=r("V37c"),i=r("afO8"),a=r("xtKg"),c=r("R1RC"),u="String Iterator",s=i.set,f=i.getterFor(u);a(String,"String",(function(t){s(this,{type:u,string:o(t),index:0})}),(function(){var t,e=f(this),r=e.string,o=e.index;return o>=r.length?c(void 0,!0):(t=n(r,o),e.index+=t.length,c(t,!1))}))},QFcT:function(t,e,r){"use strict";var n=r("I+eb"),o=Math.hypot,i=Math.abs,a=Math.sqrt;n({target:"Math",stat:!0,arity:2,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(t,e){for(var r,n,o=0,c=0,u=arguments.length,s=0;c<u;)s<(r=i(arguments[c++]))?(o=o*(n=s/r)*n+1,s=r):o+=r>0?(n=r/s)*n:r;return s===1/0?1/0:s*a(o)}})},QIpd:function(t,e,r){"use strict";var n=r("4zBA");t.exports=n(1.1.valueOf)},QNWe:function(t,e,r){"use strict";var n=r("0Dky");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},Qo9l:function(t,e,r){"use strict";var n=r("z+kr");t.exports=n},R1RC:function(t,e,r){"use strict";t.exports=function(t,e){return{value:t,done:e}}},RIqP:function(t,e,r){var n=r("Ijbi"),o=r("EbDI"),i=r("ZhPi"),a=r("Bnag");t.exports=function(t){return n(t)||o(t)||i(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},RK3t:function(t,e,r){"use strict";var n=r("4zBA"),o=r("0Dky"),i=r("xrYK"),a=Object,c=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):a(t)}:a},RN6c:function(t,e,r){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(r){}}},RNIs:function(t,e,r){"use strict";var n=r("tiKp"),o=r("fHMY"),i=r("m/L8").f,a=n("unscopables"),c=Array.prototype;void 0===c[a]&&i(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},ROdP:function(t,e,r){"use strict";var n=r("hh1v"),o=r("xrYK"),i=r("tiKp")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"===o(t))}},RiVN:function(t,e,r){"use strict";var n=r("xrYK"),o=r("4zBA");t.exports=function(t){if("Function"===n(t))return o(t)}},Rm1S:function(t,e,r){"use strict";var n=r("xluM"),o=r("4zBA"),i=r("14Sl"),a=r("glrk"),c=r("hh1v"),u=r("UMSQ"),s=r("V37c"),f=r("HYAF"),l=r("3Eq5"),p=r("iqWW"),h=r("kNi0"),d=r("FMNM"),v=o("".indexOf);i("match",(function(t,e,r){return[function(e){var r=f(this),o=c(e)?l(e,t):void 0;return o?n(o,e,r):new RegExp(e)[t](s(r))},function(t){var n=a(this),o=s(t),i=r(e,n,o);if(i.done)return i.value;var c=s(h(n));if(-1===v(c,"g"))return d(n,o);var f=-1!==v(c,"u");n.lastIndex=0;for(var l,m=[],g=0;null!==(l=d(n,o));){var y=s(l[0]);m[g]=y,""===y&&(n.lastIndex=p(o,u(n.lastIndex),f)),g++}return 0===g?null:m}]}))},Rzhe:function(t,e,r){"use strict";var n=r("z+kr"),o=r("0lZ3"),i=r("Fib7"),a=r("lMq5"),c=r("iSVu"),u=r("tiKp"),s=r("hVj3"),f=r("xDBR"),l=r("EhIz"),p=o&&o.prototype,h=u("species"),d=!1,v=i(n.PromiseRejectionEvent),m=a("Promise",(function(){var t=c(o),e=t!==String(o);if(!e&&66===l)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!l||l<51||!/native code/.test(t)){var r=new o((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(d=r.then((function(){}))instanceof n))return!0}return!(e||"BROWSER"!==s&&"DENO"!==s||v)}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:v,SUBCLASSING:d}},SEBh:function(t,e,r){"use strict";var n=r("glrk"),o=r("UIe5"),i=r("cjT7"),a=r("tiKp")("species");t.exports=function(t,e){var r,c=n(t).constructor;return void 0===c||i(r=n(c)[a])?e:o(r)}},SFrS:function(t,e,r){"use strict";var n=r("xluM"),o=r("Fib7"),i=r("hh1v"),a=TypeError;t.exports=function(t,e){var r,c;if("string"===e&&o(r=t.toString)&&!i(c=n(r,t)))return c;if(o(r=t.valueOf)&&!i(c=n(r,t)))return c;if("string"!==e&&o(r=t.toString)&&!i(c=n(r,t)))return c;throw new a("Can't convert object to primitive value")}},SYor:function(t,e,r){"use strict";var n=r("I+eb"),o=r("WKiH").trim;n({target:"String",proto:!0,forced:r("yNLB")("trim")},{trim:function(){return o(this)}})},SksO:function(t,e){function r(e,n){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},SuFq:function(t,e,r){"use strict";var n=r("I+eb"),o=r("0GbY"),i=r("K6Rb"),a=r("BTho"),c=r("UIe5"),u=r("glrk"),s=r("hh1v"),f=r("fHMY"),l=r("0Dky"),p=o("Reflect","construct"),h=Object.prototype,d=[].push,v=l((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),m=!l((function(){p((function(){}))})),g=v||m;n({target:"Reflect",stat:!0,forced:g,sham:g},{construct:function(t,e){c(t),u(e);var r=arguments.length<3?t:c(arguments[2]);if(m&&!v)return p(t,e,r);if(t===r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return i(d,n,e),new(i(a,t,n))}var o=r.prototype,l=f(s(o)?o:h),g=i(t,l,e);return s(g)?g:l}})},SxGu:function(t,e,r){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},T63A:function(t,e,r){"use strict";var n=r("I+eb"),o=r("b1O7").entries;n({target:"Object",stat:!0},{entries:function(t){return o(t)}})},T63f:function(t,e,r){"use strict";var n=r("0Dky"),o=r("hh1v"),i=r("xrYK"),a=r("2Gvs"),c=Object.isExtensible,u=n((function(){c(1)}));t.exports=u||a?function(t){return!!o(t)&&((!a||"ArrayBuffer"!==i(t))&&(!c||c(t)))}:c},TWNs:function(t,e,r){"use strict";var n=r("g6v/"),o=r("z+kr"),i=r("4zBA"),a=r("lMq5"),c=r("cVYH"),u=r("kRJp"),s=r("fHMY"),f=r("JBy8").f,l=r("OpvP"),p=r("ROdP"),h=r("V37c"),d=r("kNi0"),v=r("n3/R"),m=r("rrC/"),g=r("yy0I"),y=r("0Dky"),b=r("Gi26"),x=r("afO8").enforce,w=r("JiZb"),_=r("tiKp"),T=r("/OPJ"),O=r("EHx7"),k=_("match"),S=o.RegExp,E=S.prototype,M=o.SyntaxError,j=i(E.exec),A=i("".charAt),I=i("".replace),C=i("".indexOf),R=i("".slice),P=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,z=/a/g,B=new S(D)!==D,N=v.MISSED_STICKY,F=v.UNSUPPORTED_Y,L=n&&(!B||N||T||O||y((function(){return z[k]=!1,S(D)!==D||S(z)===z||"/a/i"!==String(S(D,"i"))})));if(a("RegExp",L)){for(var U=function(t,e){var r,n,o,i,a,f,v=l(E,this),m=p(t),g=void 0===e,y=[],w=t;if(!v&&m&&g&&t.constructor===U)return t;if((m||l(E,t))&&(t=t.source,g&&(e=d(w))),t=void 0===t?"":h(t),e=void 0===e?"":h(e),w=t,T&&"dotAll"in D&&(n=!!e&&C(e,"s")>-1)&&(e=I(e,/s/g,"")),r=e,N&&"sticky"in D&&(o=!!e&&C(e,"y")>-1)&&F&&(e=I(e,/y/g,"")),O&&(i=function(t){for(var e,r=t.length,n=0,o="",i=[],a=s(null),c=!1,u=!1,f=0,l="";n<=r;n++){if("\\"===(e=A(t,n)))e+=A(t,++n);else if("]"===e)c=!1;else if(!c)switch(!0){case"["===e:c=!0;break;case"("===e:if(o+=e,"?:"===R(t,n+1,n+3))continue;j(P,R(t,n+1))&&(n+=2,u=!0),f++;continue;case">"===e&&u:if(""===l||b(a,l))throw new M("Invalid capture group name");a[l]=!0,i[i.length]=[l,f],u=!1,l="";continue}u?l+=e:o+=e}return[o,i]}(t),t=i[0],y=i[1]),a=c(S(t,e),v?this:E,U),(n||o||y.length)&&(f=x(a),n&&(f.dotAll=!0,f.raw=U(function(t){for(var e,r=t.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(e=A(t,n))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+A(t,++n);return o}(t),r)),o&&(f.sticky=!0),y.length&&(f.groups=y)),t!==w)try{u(a,"source",""===w?"(?:)":w)}catch(_){}return a},W=f(S),V=0;W.length>V;)m(U,S,W[V++]);E.constructor=U,U.prototype=E,g(o,"RegExp",U,{constructor:!0})}w("RegExp")},TWQb:function(t,e,r){"use strict";var n=r("/GqU"),o=r("I8vh"),i=r("B/qT"),a=function(t){return function(e,r,a){var c=n(e),u=i(c);if(0===u)return!t&&-1;var s,f=o(a,u);if(t&&r!=r){for(;u>f;)if((s=c[f++])!=s)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},TeQF:function(t,e,r){"use strict";var n=r("I+eb"),o=r("tycR").filter;n({target:"Array",proto:!0,forced:!r("Hd5f")("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},TfTi:function(t,e,r){"use strict";var n=r("A2ZE"),o=r("xluM"),i=r("ewvW"),a=r("m92n"),c=r("6VoE"),u=r("aO6C"),s=r("B/qT"),f=r("hBjN"),l=r("mh/w"),p=r("NaFW"),h=Array;t.exports=function(t){var e=i(t),r=u(this),d=arguments.length,v=d>1?arguments[1]:void 0,m=void 0!==v;m&&(v=n(v,d>2?arguments[2]:void 0));var g,y,b,x,w,_,T=p(e),O=0;if(!T||this===h&&c(T))for(g=s(e),y=r?new this(g):h(g);g>O;O++)_=m?v(e[O],O):e[O],f(y,O,_);else for(y=r?new this:[],w=(x=l(e,T)).next;!(b=o(w,x)).done;O++)_=m?a(x,v,[b.value,O],!0):b.value,f(y,O,_);return y.length=O,y}},ToJy:function(t,e,r){"use strict";var n=r("I+eb"),o=r("4zBA"),i=r("We1y"),a=r("ewvW"),c=r("B/qT"),u=r("CDr4"),s=r("V37c"),f=r("0Dky"),l=r("rdv8"),p=r("pkCn"),h=r("P34a"),d=r("mfQh"),v=r("EhIz"),m=r("6oOd"),g=[],y=o(g.sort),b=o(g.push),x=f((function(){g.sort(void 0)})),w=f((function(){g.sort(null)})),_=p("sort"),T=!f((function(){if(v)return v<70;if(!(h&&h>3)){if(d)return!0;if(m)return m<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)g.push({k:e+n,v:r})}for(g.sort((function(t,e){return e.v-t.v})),n=0;n<g.length;n++)e=g[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));n({target:"Array",proto:!0,forced:x||!w||!_||!T},{sort:function(t){void 0!==t&&i(t);var e=a(this);if(T)return void 0===t?y(e):y(e,t);var r,n,o=[],f=c(e);for(n=0;n<f;n++)n in e&&b(o,e[n]);for(l(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:s(e)>s(r)?1:-1}}(t)),r=c(o),n=0;n<r;)e[n]=o[n++];for(;n<f;)u(e,n++);return e}})},Tskq:function(t,e,r){"use strict";r("b0gt")},UIe5:function(t,e,r){"use strict";var n=r("aO6C"),o=r("DVFp"),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},UMSQ:function(t,e,r){"use strict";var n=r("WSbT"),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},UsjB:function(t,e,r){"use strict";var n=r("tdvT");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},UxlC:function(t,e,r){"use strict";var n=r("K6Rb"),o=r("xluM"),i=r("4zBA"),a=r("14Sl"),c=r("0Dky"),u=r("glrk"),s=r("Fib7"),f=r("hh1v"),l=r("WSbT"),p=r("UMSQ"),h=r("V37c"),d=r("HYAF"),v=r("iqWW"),m=r("3Eq5"),g=r("DLK6"),y=r("kNi0"),b=r("FMNM"),x=r("tiKp")("replace"),w=Math.max,_=Math.min,T=i([].concat),O=i([].push),k=i("".indexOf),S=i("".slice),E="$0"==="a".replace(/./,"$0"),M=!!/./[x]&&""===/./[x]("a","$0");a("replace",(function(t,e,r){var i=M?"$":"$0";return[function(t,r){var n=d(this),i=f(t)?m(t,x):void 0;return i?o(i,t,n,r):o(e,h(n),t,r)},function(t,o){var a=u(this),c=h(t);if("string"==typeof o&&-1===k(o,i)&&-1===k(o,"$<")){var f=r(e,a,c,o);if(f.done)return f.value}var d=s(o);d||(o=h(o));var m,x=h(y(a)),E=-1!==k(x,"g");E&&(m=-1!==k(x,"u"),a.lastIndex=0);for(var M,j=[];null!==(M=b(a,c))&&(O(j,M),E);){""===h(M[0])&&(a.lastIndex=v(c,p(a.lastIndex),m))}for(var A,I="",C=0,R=0;R<j.length;R++){for(var P,D=h((M=j[R])[0]),z=w(_(l(M.index),c.length),0),B=[],N=1;N<M.length;N++)O(B,void 0===(A=M[N])?A:String(A));var F=M.groups;if(d){var L=T([D],B,z,c);void 0!==F&&O(L,F),P=h(n(o,void 0,L))}else P=g(D,c,z,B,F,o);z>=C&&(I+=S(c,C,z)+P,C=z+D.length)}return I+S(c,C)}]}),!!c((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!E||M)},V37c:function(t,e,r){"use strict";var n=r("9d/t"),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},V7lt:function(t,e,r){"use strict";var n=r("xluM"),o=r("0GbY"),i=r("tiKp"),a=r("yy0I");t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,c=i("toPrimitive");e&&!e[c]&&a(e,c,(function(t){return n(r,this)}),{arity:1})}},VpIT:function(t,e,r){"use strict";var n=r("xs3f");t.exports=function(t,e){return n[t]||(n[t]=e||{})}},Vu81:function(t,e,r){"use strict";var n=r("0GbY"),o=r("4zBA"),i=r("JBy8"),a=r("dBg+"),c=r("glrk"),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=a.f;return r?u(e,r(t)):e}},W8MJ:function(t,e,r){var n=r("o5UB");function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},WJkJ:function(t,e,r){"use strict";t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},WKiH:function(t,e,r){"use strict";var n=r("4zBA"),o=r("HYAF"),i=r("V37c"),a=r("WJkJ"),c=n("".replace),u=RegExp("^["+a+"]+"),s=RegExp("(^|[^"+a+"])["+a+"]+$"),f=function(t){return function(e){var r=i(o(e));return 1&t&&(r=c(r,u,"")),2&t&&(r=c(r,s,"$1")),r}};t.exports={start:f(1),end:f(2),trim:f(3)}},WSbT:function(t,e,r){"use strict";var n=r("tC4l");t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},We1y:function(t,e,r){"use strict";var n=r("Fib7"),o=r("DVFp"),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},WjRb:function(t,e,r){"use strict";var n=r("ROdP"),o=TypeError;t.exports=function(t){if(n(t))throw new o("The method doesn't accept regular expressions");return t}},WkPL:function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports.default=t.exports},WkfP:function(t,e,r){"use strict";var n=r("I+eb"),o=r("BPiQ"),i=r("0Dky"),a=r("dBg+"),c=r("ewvW");n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(c(t)):[]}})},X5Zq:function(t,e,r){"use strict";var n=r("67WC"),o=r("4zBA"),i=n.aTypedArray,a=n.exportTypedArrayMethod,c=o([].join);a("join",(function(t){return c(i(this),t)}))},XGwC:function(t,e,r){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},XMab:function(t,e,r){"use strict";r("dOgj")("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},Xn6M:function(t,e,r){"use strict";var n,o,i,a,c=r("I+eb"),u=r("xDBR"),s=r("mtxD"),f=r("z+kr"),l=r("Qo9l"),p=r("xluM"),h=r("yy0I"),d=r("0rvr"),v=r("1E5z"),m=r("JiZb"),g=r("We1y"),y=r("Fib7"),b=r("hh1v"),x=r("GarU"),w=r("SEBh"),_=r("LPSS").set,T=r("tXUg"),O=r("RN6c"),k=r("5mdu"),S=r("AbTg"),E=r("afO8"),M=r("0lZ3"),j=r("Rzhe"),A=r("8GlL"),I="Promise",C=j.CONSTRUCTOR,R=j.REJECTION_EVENT,P=j.SUBCLASSING,D=E.getterFor(I),z=E.set,B=M&&M.prototype,N=M,F=B,L=f.TypeError,U=f.document,W=f.process,V=A.f,G=V,K=!!(U&&U.createEvent&&f.dispatchEvent),H="unhandledrejection",Y=function(t){var e;return!(!b(t)||!y(e=t.then))&&e},q=function(t,e){var r,n,o,i=e.value,a=1===e.state,c=a?t.ok:t.fail,u=t.resolve,s=t.reject,f=t.domain;try{c?(a||(2===e.rejection&&Q(e),e.rejection=1),!0===c?r=i:(f&&f.enter(),r=c(i),f&&(f.exit(),o=!0)),r===t.promise?s(new L("Promise-chain cycle")):(n=Y(r))?p(n,r,u,s):u(r)):s(i)}catch(l){f&&!o&&f.exit(),s(l)}},J=function(t,e){t.notified||(t.notified=!0,T((function(){for(var r,n=t.reactions;r=n.get();)q(r,t);t.notified=!1,e&&!t.rejection&&$(t)})))},X=function(t,e,r){var n,o;K?((n=U.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),f.dispatchEvent(n)):n={promise:e,reason:r},!R&&(o=f["on"+t])?o(n):t===H&&O("Unhandled promise rejection",r)},$=function(t){p(_,f,(function(){var e,r=t.facade,n=t.value;if(Z(t)&&(e=k((function(){s?W.emit("unhandledRejection",n,r):X(H,r,n)})),t.rejection=s||Z(t)?2:1,e.error))throw e.value}))},Z=function(t){return 1!==t.rejection&&!t.parent},Q=function(t){p(_,f,(function(){var e=t.facade;s?W.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)}))},tt=function(t,e,r){return function(n){t(e,n,r)}},et=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,J(t,!0))},rt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new L("Promise can't be resolved itself");var n=Y(e);n?T((function(){var r={done:!1};try{p(n,e,tt(rt,r,t),tt(et,r,t))}catch(o){et(r,o,t)}})):(t.value=e,t.state=1,J(t,!1))}catch(o){et({done:!1},o,t)}}};if(C&&(F=(N=function(t){x(this,F),g(t),p(n,this);var e=D(this);try{t(tt(rt,e),tt(et,e))}catch(r){et(e,r)}}).prototype,(n=function(t){z(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:null})}).prototype=h(F,"then",(function(t,e){var r=D(this),n=V(w(this,N));return r.parent=!0,n.ok=!y(t)||t,n.fail=y(e)&&e,n.domain=s?W.domain:void 0,0===r.state?r.reactions.add(n):T((function(){q(n,r)})),n.promise})),o=function(){var t=new n,e=D(t);this.promise=t,this.resolve=tt(rt,e),this.reject=tt(et,e)},A.f=V=function(t){return t===N||t===i?new o(t):G(t)},!u&&y(M)&&B!==Object.prototype)){a=B.then,P||h(B,"then",(function(t,e){var r=this;return new N((function(t,e){p(a,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete B.constructor}catch(nt){}d&&d(B,F)}c({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:N}),i=l.Promise,v(N,I,!1,!0),m(I)},Xnc8:function(t,e,r){"use strict";var n=r("g6v/"),o=r("Gi26"),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,s=c&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:s}},Xu1c:function(t,e,r){"use strict";var n=r("0lZ3"),o=r("HH4o"),i=r("Rzhe").CONSTRUCTOR;t.exports=i||!o((function(t){n.all(t).then(void 0,(function(){}))}))},Y3Q8:function(t,e,r){"use strict";var n=r("z+kr"),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},YGK4:function(t,e,r){"use strict";r("HFnK")},YL0P:function(t,e,r){"use strict";var n=r("z+kr"),o=r("0Dky"),i=r("4zBA"),a=r("67WC"),c=r("4mDm"),u=r("tiKp")("iterator"),s=n.Uint8Array,f=i(c.values),l=i(c.keys),p=i(c.entries),h=a.aTypedArray,d=a.exportTypedArrayMethod,v=s&&s.prototype,m=!o((function(){v[u].call([1])})),g=!!v&&v.values&&v[u]===v.values&&"values"===v.values.name,y=function(){return f(h(this))};d("entries",(function(){return p(h(this))}),m),d("keys",(function(){return l(h(this))}),m),d("values",y,m||!g,{name:"values"}),d(u,y,m||!g,{name:"values"})},YNrV:function(t,e,r){"use strict";var n=r("g6v/"),o=r("4zBA"),i=r("xluM"),a=r("0Dky"),c=r("33Wh"),u=r("dBg+"),s=r("0eef"),f=r("ewvW"),l=r("RK3t"),p=Object.assign,h=Object.defineProperty,d=o([].concat);t.exports=!p||a((function(){if(n&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!==p({},t)[r]||c(p({},e)).join("")!==o}))?function(t,e){for(var r=f(t),o=arguments.length,a=1,p=u.f,h=s.f;o>a;)for(var v,m=l(arguments[a++]),g=p?d(c(m),p(m)):c(m),y=g.length,b=0;y>b;)v=g[b++],n&&!i(h,m,v)||(r[v]=m[v]);return r}:p},Yhre:function(t,e,r){"use strict";var n=r("z+kr"),o=r("4zBA"),i=r("g6v/"),a=r("SxGu"),c=r("Xnc8"),u=r("kRJp"),s=r("7dAM"),f=r("aWRN"),l=r("0Dky"),p=r("GarU"),h=r("WSbT"),d=r("UMSQ"),v=r("CyXQ"),m=r("vo4V"),g=r("d6cI"),y=r("4WOD"),b=r("0rvr"),x=r("gdVl"),w=r("82ph"),_=r("cVYH"),T=r("6JNq"),O=r("1E5z"),k=r("afO8"),S=c.PROPER,E=c.CONFIGURABLE,M="ArrayBuffer",j="DataView",A="prototype",I="Wrong index",C=k.getterFor(M),R=k.getterFor(j),P=k.set,D=n[M],z=D,B=z&&z[A],N=n[j],F=N&&N[A],L=Object.prototype,U=n.Array,W=n.RangeError,V=o(x),G=o([].reverse),K=g.pack,H=g.unpack,Y=function(t){return[255&t]},q=function(t){return[255&t,t>>8&255]},J=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},X=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},$=function(t){return K(m(t),23,4)},Z=function(t){return K(t,52,8)},Q=function(t,e,r){s(t[A],e,{configurable:!0,get:function(){return r(this)[e]}})},tt=function(t,e,r,n){var o=R(t),i=v(r),a=!!n;if(i+e>o.byteLength)throw new W(I);var c=o.bytes,u=i+o.byteOffset,s=w(c,u,u+e);return a?s:G(s)},et=function(t,e,r,n,o,i){var a=R(t),c=v(r),u=n(+o),s=!!i;if(c+e>a.byteLength)throw new W(I);for(var f=a.bytes,l=c+a.byteOffset,p=0;p<e;p++)f[l+p]=u[s?p:e-p-1]};if(a){var rt=S&&D.name!==M;l((function(){D(1)}))&&l((function(){new D(-1)}))&&!l((function(){return new D,new D(1.5),new D(NaN),1!==D.length||rt&&!E}))?rt&&E&&u(D,"name",M):((z=function(t){return p(this,B),_(new D(v(t)),this,z)})[A]=B,B.constructor=z,T(z,D)),b&&y(F)!==L&&b(F,L);var nt=new N(new z(2)),ot=o(F.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||f(F,{setInt8:function(t,e){ot(this,t,e<<24>>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else B=(z=function(t){p(this,B);var e=v(t);P(this,{type:M,bytes:V(U(e),0),byteLength:e}),i||(this.byteLength=e,this.detached=!1)})[A],F=(N=function(t,e,r){p(this,F),p(t,B);var n=C(t),o=n.byteLength,a=h(e);if(a<0||a>o)throw new W("Wrong offset");if(a+(r=void 0===r?o-a:d(r))>o)throw new W("Wrong length");P(this,{type:j,buffer:t,byteLength:r,byteOffset:a,bytes:n.bytes}),i||(this.buffer=t,this.byteLength=r,this.byteOffset=a)})[A],i&&(Q(z,"byteLength",C),Q(N,"buffer",R),Q(N,"byteLength",R),Q(N,"byteOffset",R)),f(F,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return X(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return X(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return H(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return H(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,Y,e)},setUint8:function(t,e){et(this,1,t,Y,e)},setInt16:function(t,e){et(this,2,t,q,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,q,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,$,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,Z,e,arguments.length>2&&arguments[2])}});O(z,M),O(N,j),t.exports={ArrayBuffer:z,DataView:N}},ZJ55:function(t,e,r){"use strict";var n=r("67WC"),o=r("tycR").some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},ZUd8:function(t,e,r){"use strict";var n=r("4zBA"),o=r("WSbT"),i=r("V37c"),a=r("HYAF"),c=n("".charAt),u=n("".charCodeAt),s=n("".slice),f=function(t){return function(e,r){var n,f,l=i(a(e)),p=o(r),h=l.length;return p<0||p>=h?t?"":void 0:(n=u(l,p))<55296||n>56319||p+1===h||(f=u(l,p+1))<56320||f>57343?t?c(l,p):n:t?s(l,p,p+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},ZWaQ:function(t,e,r){"use strict";var n=r("fHMY"),o=r("7dAM"),i=r("aWRN"),a=r("A2ZE"),c=r("GarU"),u=r("cjT7"),s=r("ImZN"),f=r("xtKg"),l=r("R1RC"),p=r("JiZb"),h=r("g6v/"),d=r("8YOa").fastKey,v=r("afO8"),m=v.set,g=v.getterFor;t.exports={getConstructor:function(t,e,r,f){var l=t((function(t,o){c(t,p),m(t,{type:e,index:n(null),first:null,last:null,size:0}),h||(t.size=0),u(o)||s(o,t[f],{that:t,AS_ENTRIES:r})})),p=l.prototype,v=g(e),y=function(t,e,r){var n,o,i=v(t),a=b(t,e);return a?a.value=r:(i.last=a={index:o=d(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=a),n&&(n.next=a),h?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},b=function(t,e){var r,n=v(t),o=d(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return i(p,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),h?t.size=0:this.size=0},delete:function(t){var e=this,r=v(e),n=b(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),h?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=v(this),n=a(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),i(p,r?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),h&&o(p,"size",{configurable:!0,get:function(){return v(this).size}}),l},setStrong:function(t,e,r){var n=e+" Iterator",o=g(e),i=g(n);f(t,e,(function(t,e){m(this,{type:n,target:t,state:o(t),kind:e,last:null})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?l("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,l(void 0,!0))}),r?"entries":"values",!r,!0),p(e)}}},ZfDv:function(t,e,r){"use strict";var n=r("C0Ia");t.exports=function(t,e){return new(n(t))(0===e?0:e)}},ZhPi:function(t,e,r){var n=r("WkPL");t.exports=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},a1gu:function(t,e,r){var n=r("cDf5").default,o=r("PJYZ");t.exports=function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},aO6C:function(t,e,r){"use strict";var n=r("4zBA"),o=r("0Dky"),i=r("Fib7"),a=r("9d/t"),c=r("0GbY"),u=r("iSVu"),s=function(){},f=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,p=n(l.exec),h=!l.test(s),d=function(t){if(!i(t))return!1;try{return f(s,[],t),!0}catch(e){return!1}},v=function(t){if(!i(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(l,u(t))}catch(e){return!0}};v.sham=!0,t.exports=!f||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?v:d},aWRN:function(t,e,r){"use strict";var n=r("yy0I");t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},afO8:function(t,e,r){"use strict";var n,o,i,a=r("zc4i"),c=r("z+kr"),u=r("hh1v"),s=r("kRJp"),f=r("Gi26"),l=r("xs3f"),p=r("93I0"),h=r("0BK2"),d="Object already initialized",v=c.TypeError,m=c.WeakMap;if(a||l.state){var g=l.state||(l.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new v(d);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var y=p("state");h[y]=!0,n=function(t,e){if(f(t,y))throw new v(d);return e.facade=t,s(t,y,e),e},o=function(t){return f(t,y)?t[y]:{}},i=function(t){return f(t,y)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw new v("Incompatible receiver, "+t+" required");return r}}}},b0gt:function(t,e,r){"use strict";r("bWFh")("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r("ZWaQ"))},b1O7:function(t,e,r){"use strict";var n=r("g6v/"),o=r("0Dky"),i=r("4zBA"),a=r("4WOD"),c=r("33Wh"),u=r("/GqU"),s=i(r("0eef").f),f=i([].push),l=n&&o((function(){var t=Object.create(null);return t[2]=2,!s(t,2)})),p=function(t){return function(e){for(var r,o=u(e),i=c(o),p=l&&null===a(o),h=i.length,d=0,v=[];h>d;)r=i[d++],n&&!(p?r in o:s(o,r))||f(v,t?[r,o[r]]:o[r]);return v}};t.exports={entries:p(!0),values:p(!1)}},b48C:function(t,e){function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(t.exports=r=function(){return!!e},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},bFeb:function(t,e,r){"use strict";var n=r("I+eb"),o=r("z+kr");n({global:!0,forced:o.globalThis!==o},{globalThis:o})},bWFh:function(t,e,r){"use strict";var n=r("I+eb"),o=r("z+kr"),i=r("4zBA"),a=r("lMq5"),c=r("yy0I"),u=r("8YOa"),s=r("ImZN"),f=r("GarU"),l=r("Fib7"),p=r("cjT7"),h=r("hh1v"),d=r("0Dky"),v=r("HH4o"),m=r("1E5z"),g=r("cVYH");t.exports=function(t,e,r){var y=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),x=y?"set":"add",w=o[t],_=w&&w.prototype,T=w,O={},k=function(t){var e=i(_[t]);c(_,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return b&&!h(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(b&&!h(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(a(t,!l(w)||!(b||_.forEach&&!d((function(){(new w).entries().next()})))))T=r.getConstructor(e,t,y,x),u.enable();else if(a(t,!0)){var S=new T,E=S[x](b?{}:-0,1)!==S,M=d((function(){S.has(1)})),j=v((function(t){new w(t)})),A=!b&&d((function(){for(var t=new w,e=5;e--;)t[x](e,e);return!t.has(-0)}));j||((T=e((function(t,e){f(t,_);var r=g(new w,t,T);return p(e)||s(e,r[x],{that:r,AS_ENTRIES:y}),r}))).prototype=_,_.constructor=T),(M||A)&&(k("delete"),k("has"),y&&k("get")),(A||E)&&k(x),b&&_.clear&&delete _.clear}return O[t]=T,n({global:!0,constructor:!0,forced:T!==w},O),m(T,t),b||r.setStrong(T,t,y),T}},c162:function(t,e,r){"use strict";var n=r("67WC"),o=r("gdVl"),i=r("9JVa"),a=r("9d/t"),c=r("xluM"),u=r("4zBA"),s=r("0Dky"),f=n.aTypedArray,l=n.exportTypedArrayMethod,p=u("".slice);l("fill",(function(t){var e=arguments.length;f(this);var r="Big"===p(a(this),0,3)?i(t):+t;return c(o,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),s((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})))},cDf5:function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},cUmr:function(t,e,r){"use strict";var n=r("I+eb"),o=r("0GbY"),i=r("xDBR"),a=r("0lZ3"),c=r("Rzhe").CONSTRUCTOR,u=r("zfnd"),s=o("Promise"),f=i&&!c;n({target:"Promise",stat:!0,forced:i||c},{resolve:function(t){return u(f&&this===s?a:this,t)}})},cVYH:function(t,e,r){"use strict";var n=r("Fib7"),o=r("hh1v"),i=r("0rvr");t.exports=function(t,e,r){var a,c;return i&&n(a=e.constructor)&&a!==r&&o(c=a.prototype)&&c!==r.prototype&&i(t,c),t}},cjT7:function(t,e,r){"use strict";t.exports=function(t){return null==t}},coJu:function(t,e,r){"use strict";var n=r("4zBA"),o=r("We1y");t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(i){}}},cvf0:function(t,e,r){"use strict";var n=r("67WC").exportTypedArrayMethod,o=r("0Dky"),i=r("z+kr"),a=r("4zBA"),c=i.Uint8Array,u=c&&c.prototype||{},s=[].toString,f=a([].join);o((function(){s.call({})}))&&(s=function(){return f(this)});var l=u.toString!==s;n("toString",s,l)},d6cI:function(t,e,r){"use strict";var n=Array,o=Math.abs,i=Math.pow,a=Math.floor,c=Math.log,u=Math.LN2;t.exports={pack:function(t,e,r){var s,f,l,p=n(r),h=8*r-e-1,d=(1<<h)-1,v=d>>1,m=23===e?i(2,-24)-i(2,-77):0,g=t<0||0===t&&1/t<0?1:0,y=0;for((t=o(t))!=t||t===1/0?(f=t!=t?1:0,s=d):(s=a(c(t)/u),t*(l=i(2,-s))<1&&(s--,l*=2),(t+=s+v>=1?m/l:m*i(2,1-v))*l>=2&&(s++,l/=2),s+v>=d?(f=0,s=d):s+v>=1?(f=(t*l-1)*i(2,e),s+=v):(f=t*i(2,v-1)*i(2,e),s=0));e>=8;)p[y++]=255&f,f/=256,e-=8;for(s=s<<e|f,h+=e;h>0;)p[y++]=255&s,s/=256,h-=8;return p[y-1]|=128*g,p},unpack:function(t,e){var r,n=t.length,o=8*n-e-1,a=(1<<o)-1,c=a>>1,u=o-7,s=n-1,f=t[s--],l=127&f;for(f>>=7;u>0;)l=256*l+t[s--],u-=8;for(r=l&(1<<-u)-1,l>>=-u,u+=e;u>0;)r=256*r+t[s--],u-=8;if(0===l)l=1-c;else{if(l===a)return r?NaN:f?-1/0:1/0;r+=i(2,e),l-=c}return(f?-1:1)*r*i(2,l-e)}}},"dBg+":function(t,e,r){"use strict";e.f=Object.getOwnPropertySymbols},dOgj:function(t,e,r){"use strict";var n=r("I+eb"),o=r("z+kr"),i=r("xluM"),a=r("g6v/"),c=r("iqeF"),u=r("67WC"),s=r("Yhre"),f=r("GarU"),l=r("XGwC"),p=r("kRJp"),h=r("6sUC"),d=r("UMSQ"),v=r("CyXQ"),m=r("GC2F"),g=r("E6bK"),y=r("oEtG"),b=r("Gi26"),x=r("9d/t"),w=r("hh1v"),_=r("2bX/"),T=r("fHMY"),O=r("OpvP"),k=r("0rvr"),S=r("JBy8").f,E=r("oHi+"),M=r("tycR").forEach,j=r("JiZb"),A=r("7dAM"),I=r("m/L8"),C=r("Bs8V"),R=r("37lR"),P=r("afO8"),D=r("cVYH"),z=P.get,B=P.set,N=P.enforce,F=I.f,L=C.f,U=o.RangeError,W=s.ArrayBuffer,V=W.prototype,G=s.DataView,K=u.NATIVE_ARRAY_BUFFER_VIEWS,H=u.TYPED_ARRAY_TAG,Y=u.TypedArray,q=u.TypedArrayPrototype,J=u.isTypedArray,X="BYTES_PER_ELEMENT",$="Wrong length",Z=function(t,e){A(t,e,{configurable:!0,get:function(){return z(this)[e]}})},Q=function(t){var e;return O(V,t)||"ArrayBuffer"===(e=x(t))||"SharedArrayBuffer"===e},tt=function(t,e){return J(t)&&!_(e)&&e in t&&h(+e)&&e>=0},et=function(t,e){return e=y(e),tt(t,e)?l(2,t[e]):L(t,e)},rt=function(t,e,r){return e=y(e),!(tt(t,e)&&w(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?F(t,e,r):(t[e]=r.value,t)};a?(K||(C.f=et,I.f=rt,Z(q,"buffer"),Z(q,"byteOffset"),Z(q,"byteLength"),Z(q,"length")),n({target:"Object",stat:!0,forced:!K},{getOwnPropertyDescriptor:et,defineProperty:rt}),t.exports=function(t,e,r){var a=t.match(/\d+/)[0]/8,u=t+(r?"Clamped":"")+"Array",s="get"+t,l="set"+t,h=o[u],y=h,b=y&&y.prototype,x={},_=function(t,e){F(t,e,{get:function(){return function(t,e){var r=z(t);return r.view[s](e*a+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,n){var o=z(t);o.view[l](e*a+o.byteOffset,r?g(n):n,!0)}(this,e,t)},enumerable:!0})};K?c&&(y=e((function(t,e,r,n){return f(t,b),D(w(e)?Q(e)?void 0!==n?new h(e,m(r,a),n):void 0!==r?new h(e,m(r,a)):new h(e):J(e)?R(y,e):i(E,y,e):new h(v(e)),t,y)})),k&&k(y,Y),M(S(h),(function(t){t in y||p(y,t,h[t])})),y.prototype=b):(y=e((function(t,e,r,n){f(t,b);var o,c,u,s=0,l=0;if(w(e)){if(!Q(e))return J(e)?R(y,e):i(E,y,e);o=e,l=m(r,a);var p=e.byteLength;if(void 0===n){if(p%a)throw new U($);if((c=p-l)<0)throw new U($)}else if((c=d(n)*a)+l>p)throw new U($);u=c/a}else u=v(e),o=new W(c=u*a);for(B(t,{buffer:o,byteOffset:l,byteLength:c,length:u,view:new G(o)});s<u;)_(t,s++)})),k&&k(y,Y),b=y.prototype=T(q)),b.constructor!==y&&p(b,"constructor",y),N(b).TypedArrayConstructor=y,H&&p(b,H,u);var O=y!==h;x[u]=y,n({global:!0,constructor:!0,forced:O,sham:!K},x),X in y||p(y,X,a),X in b||p(b,X,a),j(u)}):t.exports=function(){}},"eDl+":function(t,e,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eFrH:function(t,e,r){"use strict";var n=r("zBJ4")("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},ewvW:function(t,e,r){"use strict";var n=r("HYAF"),o=Object;t.exports=function(t){return o(n(t))}},fHMY:function(t,e,r){"use strict";var n,o=r("glrk"),i=r("N+g0"),a=r("eDl+"),c=r("0BK2"),u=r("G+Rx"),s=r("zBJ4"),f=r("93I0"),l="prototype",p="script",h=f("IE_PROTO"),d=function(){},v=function(t){return"<"+p+">"+t+"</"+p+">"},m=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(i){}var t,e,r;g="undefined"!=typeof document?document.domain&&n?m(n):(e=s("iframe"),r="java"+p+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):m(n);for(var o=a.length;o--;)delete g[l][a[o]];return g()};c[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[l]=o(t),r=new d,d[l]=null,r[h]=t):r=g(),void 0===e?r:i.f(r,e)}},fbCW:function(t,e,r){"use strict";var n=r("I+eb"),o=r("tycR").find,i=r("RNIs"),a="find",c=!0;a in[]&&Array(1)[a]((function(){c=!1})),n({target:"Array",proto:!0,forced:c},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},fsL8:function(t,e,r){var n=r("cDf5").default;function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},i=Object.prototype,a=i.hasOwnProperty,c=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function p(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{p({},"")}catch(e){p=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof x?e:x,i=Object.create(o.prototype),a=new R(n||[]);return c(i,"_invoke",{value:j(t,r,a)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var v="suspendedStart",m="suspendedYield",g="executing",y="completed",b={};function x(){}function w(){}function _(){}var T={};p(T,s,(function(){return this}));var O=Object.getPrototypeOf,k=O&&O(O(P([])));k&&k!==i&&a.call(k,s)&&(T=k);var S=_.prototype=x.prototype=Object.create(T);function E(t){["next","throw","return"].forEach((function(e){p(t,e,(function(t){return this._invoke(e,t)}))}))}function M(t,e){function r(o,i,c,u){var s=d(t[o],t,i);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==n(l)&&a.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return r("throw",t,c,u)}))}u(s.arg)}var o;c(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}})}function j(t,r,n){var o=v;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=A(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=g;var s=d(t,r,n);if("normal"===s.type){if(o=n.done?y:m,s.arg===b)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function A(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,A(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(a.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=_,c(S,"constructor",{value:_,configurable:!0}),c(_,"constructor",{value:w,configurable:!0}),w.displayName=p(_,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,p(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},r.awrap=function(t){return{__await:t}},E(M.prototype),p(M.prototype,f,(function(){return this})),r.AsyncIterator=M,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new M(h(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),p(S,l,"Generator"),p(S,s,(function(){return this})),p(S,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=P,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},"g6v/":function(t,e,r){"use strict";var n=r("0Dky");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},gdVl:function(t,e,r){"use strict";var n=r("ewvW"),o=r("I8vh"),i=r("B/qT");t.exports=function(t){for(var e=n(this),r=i(e),a=arguments.length,c=o(a>1?arguments[1]:void 0,r),u=a>2?arguments[2]:void 0,s=void 0===u?r:o(u,r);s>c;)e[c++]=t;return e}},glrk:function(t,e,r){"use strict";var n=r("hh1v"),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},guPS:function(t,e,r){"use strict";var n=4503599627370496;t.exports=function(t){return t+n-n}},gvgV:function(t,e,r){"use strict";var n=r("67WC"),o=r("TWQb").includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},hBjN:function(t,e,r){"use strict";var n=r("g6v/"),o=r("m/L8"),i=r("XGwC");t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},hVj3:function(t,e,r){"use strict";var n=r("z+kr"),o=r("tdvT"),i=r("xrYK"),a=function(t){return o.slice(0,t.length)===t};t.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},hh1v:function(t,e,r){"use strict";var n=r("Fib7");t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},iSVu:function(t,e,r){"use strict";var n=r("4zBA"),o=r("Fib7"),i=r("xs3f"),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},iqWW:function(t,e,r){"use strict";var n=r("ZUd8").charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},iqeF:function(t,e,r){"use strict";var n=r("z+kr"),o=r("0Dky"),i=r("HH4o"),a=r("67WC").NATIVE_ARRAY_BUFFER_VIEWS,c=n.ArrayBuffer,u=n.Int8Array;t.exports=!a||!o((function(){u(1)}))||!o((function(){new u(-1)}))||!i((function(t){new u,new u(null),new u(1.5),new u(t)}),!0)||o((function(){return 1!==new u(new c(2),1,void 0).length}))},"j+VE":function(t,e,r){"use strict";r("bFeb")},jrUv:function(t,e,r){"use strict";var n=Math.expm1,o=Math.exp;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!==n(-2e-17)?function(t){var e=+t;return 0===e?e:e>-1e-6&&e<1e-6?e+e*e/2:o(e)-1}:n},kNi0:function(t,e,r){"use strict";var n=r("xluM"),o=r("Gi26"),i=r("OpvP"),a=r("DzMA"),c=r("rW0t"),u=RegExp.prototype;t.exports=a.correct?function(t){return t.flags}:function(t){return a.correct||!i(u,t)||o(t,"flags")?t.flags:n(c,t)}},kOOl:function(t,e,r){"use strict";var n=r("4zBA"),o=0,i=Math.random(),a=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},kRJp:function(t,e,r){"use strict";var n=r("g6v/"),o=r("m/L8"),i=r("XGwC");t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},kmMV:function(t,e,r){"use strict";var n,o,i=r("xluM"),a=r("4zBA"),c=r("V37c"),u=r("rW0t"),s=r("n3/R"),f=r("VpIT"),l=r("fHMY"),p=r("afO8").get,h=r("/OPJ"),d=r("EHx7"),v=f("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,g=m,y=a("".charAt),b=a("".indexOf),x=a("".replace),w=a("".slice),_=(o=/b*/g,i(m,n=/a/,"a"),i(m,o,"a"),0!==n.lastIndex||0!==o.lastIndex),T=s.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(_||O||T||h||d)&&(g=function(t){var e,r,n,o,a,s,f,h=this,d=p(h),k=c(t),S=d.raw;if(S)return S.lastIndex=h.lastIndex,e=i(g,S,k),h.lastIndex=S.lastIndex,e;var E=d.groups,M=T&&h.sticky,j=i(u,h),A=h.source,I=0,C=k;if(M&&(j=x(j,"y",""),-1===b(j,"g")&&(j+="g"),C=w(k,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==y(k,h.lastIndex-1))&&(A="(?: "+A+")",C=" "+C,I++),r=new RegExp("^(?:"+A+")",j)),O&&(r=new RegExp("^"+A+"$(?!\\s)",j)),_&&(n=h.lastIndex),o=i(m,M?r:h,C),M?o?(o.input=w(o.input,I),o[0]=w(o[0],I),o.index=h.lastIndex,h.lastIndex+=o[0].length):h.lastIndex=0:_&&o&&(h.lastIndex=h.global?o.index+o[0].length:n),O&&o&&o.length>1&&i(v,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&E)for(o.groups=s=l(null),a=0;a<E.length;a++)s[(f=E[a])[0]]=o[f[1]];return o}),t.exports=g},lMq5:function(t,e,r){"use strict";var n=r("0Dky"),o=r("Fib7"),i=/#|\.prototype\./,a=function(t,e){var r=u[c(t)];return r===f||r!==s&&(o(e)?n(e):!!e)},c=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},lSNA:function(t,e,r){var n=r("o5UB");t.exports=function(t,e,r){return(e=n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},lwsE:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},"m/L8":function(t,e,r){"use strict";var n=r("g6v/"),o=r("DPsx"),i=r("rtlb"),a=r("glrk"),c=r("oEtG"),u=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(a(t),e=c(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=f(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:l in r?r[l]:n[l],writable:!1})}return s(t,e,r)}:s:function(t,e,r){if(a(t),e=c(e),a(r),o)try{return s(t,e,r)}catch(n){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},m0LI:function(t,e){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}},t.exports.__esModule=!0,t.exports.default=t.exports},m92n:function(t,e,r){"use strict";var n=r("glrk"),o=r("KmKo");t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(a){o(t,"throw",a)}}},ma9I:function(t,e,r){"use strict";var n=r("I+eb"),o=r("0Dky"),i=r("6LWA"),a=r("hh1v"),c=r("ewvW"),u=r("B/qT"),s=r("NRFe"),f=r("hBjN"),l=r("ZfDv"),p=r("Hd5f"),h=r("tiKp"),d=r("EhIz"),v=h("isConcatSpreadable"),m=d>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!m||!p("concat")},{concat:function(t){var e,r,n,o,i,a=c(this),p=l(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(g(i=-1===e?a:arguments[e]))for(o=u(i),s(h+o),r=0;r<o;r++,h++)r in i&&f(p,h,i[r]);else s(h+1),f(p,h++,i);return p.length=h,p}})},mfQh:function(t,e,r){"use strict";var n=r("tdvT");t.exports=/MSIE|Trident/.test(n)},"mh/w":function(t,e,r){"use strict";var n=r("xluM"),o=r("We1y"),i=r("glrk"),a=r("DVFp"),c=r("NaFW"),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?c(t):e;if(o(r))return i(n(r,t));throw new u(a(t)+" is not iterable")}},moxL:function(t,e,r){"use strict";var n=r("4zBA"),o=r("67WC"),i=n(r("FF6l")),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(t,e){return i(a(this),t,e,arguments.length>2?arguments[2]:void 0)}))},mtxD:function(t,e,r){"use strict";var n=r("hVj3");t.exports="NODE"===n},"n3/R":function(t,e,r){"use strict";var n=r("0Dky"),o=r("z+kr").RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!==t.exec("abcd")})),a=i||n((function(){return!o("a","y").sticky})),c=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!==t.exec("str")}));t.exports={BROKEN_CARET:c,MISSED_STICKY:a,UNSUPPORTED_Y:i}},"nPd/":function(t,e,r){"use strict";var n=r("0Dky");t.exports=!n((function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t}))},o0o1:function(t,e,r){var n=r("fsL8")();t.exports=n;try{regeneratorRuntime=n}catch(o){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},o5UB:function(t,e,r){var n=r("cDf5").default,o=r("5Q0V");t.exports=function(t){var e=o(t,"string");return"symbol"==n(e)?e:e+""},t.exports.__esModule=!0,t.exports.default=t.exports},oEtG:function(t,e,r){"use strict";var n=r("wE6v"),o=r("2bX/");t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},"oHi+":function(t,e,r){"use strict";var n=r("A2ZE"),o=r("xluM"),i=r("UIe5"),a=r("ewvW"),c=r("B/qT"),u=r("mh/w"),s=r("NaFW"),f=r("6VoE"),l=r("vL8k"),p=r("67WC").aTypedArrayConstructor,h=r("9JVa");t.exports=function(t){var e,r,d,v,m,g,y,b,x=i(this),w=a(t),_=arguments.length,T=_>1?arguments[1]:void 0,O=void 0!==T,k=s(w);if(k&&!f(k))for(b=(y=u(w,k)).next,w=[];!(g=o(b,y)).done;)w.push(g.value);for(O&&_>2&&(T=n(T,arguments[2])),r=c(w),d=new(p(x))(r),v=l(d),e=0;r>e;e++)m=O?T(w[e],e):w[e],d[e]=v?h(m):+m;return d}},oShl:function(t,e,r){var n=r("Nsbk"),o=r("SksO"),i=r("xfeJ"),a=r("sXyB");function c(e){var r="function"==typeof Map?new Map:void 0;return t.exports=c=function(t){if(null===t||!i(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return a(t,arguments,n(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},t.exports.__esModule=!0,t.exports.default=t.exports,c(e)}t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports},oVuX:function(t,e,r){"use strict";var n=r("I+eb"),o=r("4zBA"),i=r("RK3t"),a=r("/GqU"),c=r("pkCn"),u=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!c("join",",")},{join:function(t){return u(a(this),void 0===t?",":t)}})},pDQq:function(t,e,r){"use strict";var n=r("I+eb"),o=r("ewvW"),i=r("I8vh"),a=r("WSbT"),c=r("B/qT"),u=r("OjSQ"),s=r("NRFe"),f=r("ZfDv"),l=r("hBjN"),p=r("CDr4"),h=r("Hd5f")("splice"),d=Math.max,v=Math.min;n({target:"Array",proto:!0,forced:!h},{splice:function(t,e){var r,n,h,m,g,y,b=o(this),x=c(b),w=i(t,x),_=arguments.length;for(0===_?r=n=0:1===_?(r=0,n=x-w):(r=_-2,n=v(d(a(e),0),x-w)),s(x+r-n),h=f(b,n),m=0;m<n;m++)(g=w+m)in b&&l(h,m,b[g]);if(h.length=n,r<n){for(m=w;m<x-n;m++)y=m+r,(g=m+n)in b?b[y]=b[g]:p(b,y);for(m=x;m>x-n+r;m--)p(b,m-1)}else if(r>n)for(m=x-n;m>w;m--)y=m+r-1,(g=m+n-1)in b?b[y]=b[g]:p(b,y);for(m=0;m<r;m++)b[m+w]=arguments[m+2];return u(b,x-n+r),h}})},pNMO:function(t,e,r){"use strict";r("2fXf"),r("tPgW"),r("xRNQ"),r("6cQw"),r("WkfP")},pjDv:function(t,e,r){"use strict";var n=r("I+eb"),o=r("TfTi");n({target:"Array",stat:!0,forced:!r("HH4o")((function(t){Array.from(t)}))},{from:o})},pkCn:function(t,e,r){"use strict";var n=r("0Dky");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},qXVe:function(t,e,r){"use strict";var n=r("67WC"),o=r("tycR").every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},qePV:function(t,e,r){"use strict";var n=r("I+eb"),o=r("xDBR"),i=r("g6v/"),a=r("z+kr"),c=r("Qo9l"),u=r("4zBA"),s=r("lMq5"),f=r("Gi26"),l=r("cVYH"),p=r("OpvP"),h=r("2bX/"),d=r("wE6v"),v=r("0Dky"),m=r("JBy8").f,g=r("Bs8V").f,y=r("m/L8").f,b=r("QIpd"),x=r("WKiH").trim,w="Number",_=a[w],T=c[w],O=_.prototype,k=a.TypeError,S=u("".slice),E=u("".charCodeAt),M=function(t){var e,r,n,o,i,a,c,u,s=d(t,"number");if(h(s))throw new k("Cannot convert a Symbol value to a number");if("string"==typeof s&&s.length>2)if(s=x(s),43===(e=E(s,0))||45===e){if(88===(r=E(s,2))||120===r)return NaN}else if(48===e){switch(E(s,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+s}for(a=(i=S(s,2)).length,c=0;c<a;c++)if((u=E(i,c))<48||u>o)return NaN;return parseInt(i,n)}return+s},j=s(w,!_(" 0o1")||!_("0b1")||_("+0x1")),A=function(t){var e,r=arguments.length<1?0:_(function(t){var e=d(t,"number");return"bigint"==typeof e?e:M(e)}(t));return p(O,e=this)&&v((function(){b(e)}))?l(Object(r),this,A):r};A.prototype=O,j&&!o&&(O.constructor=A),n({global:!0,constructor:!0,wrap:!0,forced:j},{Number:A});var I=function(t,e){for(var r,n=i?m(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)f(e,r=n[o])&&!f(t,r)&&y(t,r,g(e,r))};o&&T&&I(c[w],T),(j||o)&&I(c[w],_)},qxPZ:function(t,e,r){"use strict";var n=r("tiKp")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(o){}}return!1}},rB9j:function(t,e,r){"use strict";var n=r("I+eb"),o=r("kmMV");n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},rOQg:function(t,e,r){"use strict";var n=r("I+eb"),o=r("RiVN"),i=r("0Dky"),a=r("Yhre"),c=r("glrk"),u=r("I8vh"),s=r("UMSQ"),f=a.ArrayBuffer,l=a.DataView,p=l.prototype,h=o(f.prototype.slice),d=o(p.getUint8),v=o(p.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(h&&void 0===e)return h(c(this),t);for(var r=c(this).byteLength,n=u(t,r),o=u(void 0===e?r:e,r),i=new f(s(o-n)),a=new l(this),p=new l(i),m=0;n<o;)v(p,m++,d(a,n++));return i}})},rW0t:function(t,e,r){"use strict";var n=r("glrk");t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},rdv8:function(t,e,r){"use strict";var n=r("82ph"),o=Math.floor,i=function(t,e){var r=t.length;if(r<8)for(var a,c,u=1;u<r;){for(c=u,a=t[u];c&&e(t[c-1],a)>0;)t[c]=t[--c];c!==u++&&(t[c]=a)}else for(var s=o(r/2),f=i(n(t,0,s),e),l=i(n(t,s),e),p=f.length,h=l.length,d=0,v=0;d<p||v<h;)t[d+v]=d<p&&v<h?e(f[d],l[v])<=0?f[d++]:l[v++]:d<p?f[d++]:l[v++];return t};t.exports=i},rpNk:function(t,e,r){"use strict";var n,o,i,a=r("0Dky"),c=r("Fib7"),u=r("hh1v"),s=r("fHMY"),f=r("4WOD"),l=r("yy0I"),p=r("tiKp"),h=r("xDBR"),d=p("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):v=!0),!u(n)||a((function(){var t={};return n[d].call(t)!==t}))?n={}:h&&(n=s(n)),c(n[d])||l(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},"rrC/":function(t,e,r){"use strict";var n=r("m/L8").f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},rtlb:function(t,e,r){"use strict";var n=r("g6v/"),o=r("0Dky");t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},s5qe:function(t,e,r){"use strict";var n=r("z+kr"),o=r("K6Rb"),i=r("67WC"),a=r("0Dky"),c=r("82ph"),u=n.Int8Array,s=i.aTypedArray,f=i.exportTypedArrayMethod,l=[].toLocaleString,p=!!u&&a((function(){l.call(new u(1))}));f("toLocaleString",(function(){return o(l,p?c(s(this)):s(this),c(arguments))}),a((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!a((function(){u.prototype.toLocaleString.call([1,2])})))},sEFX:function(t,e,r){"use strict";var n=r("AO7/"),o=r("9d/t");t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},sMBO:function(t,e,r){"use strict";var n=r("g6v/"),o=r("Xnc8").EXISTS,i=r("4zBA"),a=r("7dAM"),c=Function.prototype,u=i(c.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=i(s.exec);n&&!o&&a(c,"name",{configurable:!0,get:function(){try{return f(s,u(this))[1]}catch(t){return""}}})},sXyB:function(t,e,r){var n=r("b48C"),o=r("SksO");t.exports=function(t,e,r){if(n())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,e);var a=new(t.bind.apply(t,i));return r&&o(a,r.prototype),a},t.exports.__esModule=!0,t.exports.default=t.exports},tC4l:function(t,e,r){"use strict";var n=Math.ceil,o=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?o:n)(e)}},tPgW:function(t,e,r){"use strict";var n=r("I+eb"),o=r("0GbY"),i=r("Gi26"),a=r("V37c"),c=r("VpIT"),u=r("C0Od"),s=c("string-to-symbol-registry"),f=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=a(t);if(i(s,e))return s[e];var r=o("Symbol")(e);return s[e]=r,f[r]=e,r}})},tXUg:function(t,e,r){"use strict";var n,o,i,a,c,u=r("z+kr"),s=r("FXpK"),f=r("A2ZE"),l=r("LPSS").set,p=r("AbTg"),h=r("UsjB"),d=r("68E8"),v=r("7IeV"),m=r("mtxD"),g=u.MutationObserver||u.WebKitMutationObserver,y=u.document,b=u.process,x=u.Promise,w=s("queueMicrotask");if(!w){var _=new p,T=function(){var t,e;for(m&&(t=b.domain)&&t.exit();e=_.get();)try{e()}catch(r){throw _.head&&n(),r}t&&t.enter()};h||m||v||!g||!y?!d&&x&&x.resolve?((a=x.resolve(void 0)).constructor=x,c=f(a.then,a),n=function(){c(T)}):m?n=function(){b.nextTick(T)}:(l=f(l,u),n=function(){l(T)}):(o=!0,i=y.createTextNode(""),new g(T).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),w=function(t){_.head||n(),_.add(t)}}t.exports=w},tdvT:function(t,e,r){"use strict";var n=r("z+kr").navigator,o=n&&n.userAgent;t.exports=o?String(o):""},tiKp:function(t,e,r){"use strict";var n=r("z+kr"),o=r("VpIT"),i=r("Gi26"),a=r("kOOl"),c=r("BPiQ"),u=r("/b8u"),s=n.Symbol,f=o("wks"),l=u?s.for||s:s&&s.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=c&&i(s,t)?s[t]:l("Symbol."+t)),f[t]}},tkto:function(t,e,r){"use strict";var n=r("I+eb"),o=r("ewvW"),i=r("33Wh");n({target:"Object",stat:!0,forced:r("0Dky")((function(){i(1)}))},{keys:function(t){return i(o(t))}})},toAj:function(t,e,r){"use strict";var n=r("I+eb"),o=r("4zBA"),i=r("WSbT"),a=r("QIpd"),c=r("EUja"),u=r("0Dky"),s=RangeError,f=String,l=Math.floor,p=o(c),h=o("".slice),d=o(1.1.toFixed),v=function(t,e,r){return 0===e?r:e%2==1?v(t,e-1,r*t):v(t*t,e/2,r)},m=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=l(o/1e7)},g=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=l(n/e),n=n%e*1e7},y=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=f(t[e]);r=""===r?n:r+p("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:u((function(){return"0.000"!==d(8e-5,3)||"1"!==d(.9,0)||"1.25"!==d(1.255,2)||"1000000000000000128"!==d(0xde0b6b3a7640080,0)}))||!u((function(){d({})}))},{toFixed:function(t){var e,r,n,o,c=a(this),u=i(t),l=[0,0,0,0,0,0],d="",b="0";if(u<0||u>20)throw new s("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return f(c);if(c<0&&(d="-",c=-c),c>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(c*v(2,69,1))-69)<0?c*v(2,-e,1):c/v(2,e,1),r*=4503599627370496,(e=52-e)>0){for(m(l,0,r),n=u;n>=7;)m(l,1e7,0),n-=7;for(m(l,v(10,n,1),0),n=e-1;n>=23;)g(l,1<<23),n-=23;g(l,1<<n),m(l,1,1),g(l,2),b=y(l)}else m(l,0,r),m(l,1<<-e,0),b=y(l)+p("0",u);return b=u>0?d+((o=b.length)<=u?"0."+p("0",u-o)+b:h(b,0,o-u)+"."+h(b,o-u)):d+b}})},tycR:function(t,e,r){"use strict";var n=r("A2ZE"),o=r("4zBA"),i=r("RK3t"),a=r("ewvW"),c=r("B/qT"),u=r("ZfDv"),s=o([].push),f=function(t){var e=1===t,r=2===t,o=3===t,f=4===t,l=6===t,p=7===t,h=5===t||l;return function(d,v,m,g){for(var y,b,x=a(d),w=i(x),_=c(w),T=n(v,m),O=0,k=g||u,S=e?k(d,_):r||p?k(d,0):void 0;_>O;O++)if((h||O in w)&&(b=T(y=w[O],O,x),t))if(e)S[O]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:s(S,y)}else switch(t){case 4:return!1;case 7:s(S,y)}return l?-1:o||f?f:S}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},uy83:function(t,e,r){"use strict";var n=r("0Dky");t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},vL8k:function(t,e,r){"use strict";var n=r("9d/t");t.exports=function(t){var e=n(t);return"BigInt64Array"===e||"BigUint64Array"===e}},vo4V:function(t,e,r){"use strict";var n=r("/Bu5");t.exports=Math.fround||function(t){return n(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},wE6v:function(t,e,r){"use strict";var n=r("xluM"),o=r("hh1v"),i=r("2bX/"),a=r("3Eq5"),c=r("SFrS"),u=r("tiKp"),s=TypeError,f=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,u=a(t,f);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!o(r)||i(r))return r;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},wTVA:function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},"wZ/5":function(t,e,r){"use strict";var n=r("I+eb"),o=r("z+kr"),i=r("Yhre"),a=r("JiZb"),c="ArrayBuffer",u=i[c];n({global:!0,constructor:!0,forced:o[c]!==u},{ArrayBuffer:u}),a(c)},waxf:function(t,e,r){"use strict";var n=r("67WC"),o=r("tycR").filter,i=r("MPKZ"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(t){var e=o(a(this),t,arguments.length>1?arguments[1]:void 0);return i(this,e)}))},wfmh:function(t,e,r){"use strict";var n=r("I+eb"),o=r("ImZN"),i=r("hBjN");n({target:"Object",stat:!0},{fromEntries:function(t){var e={};return o(t,(function(t,r){i(e,t,r)}),{AS_ENTRIES:!0}),e}})},wg0c:function(t,e,r){"use strict";var n=r("z+kr"),o=r("0Dky"),i=r("4zBA"),a=r("V37c"),c=r("WKiH").trim,u=r("WJkJ"),s=n.parseInt,f=n.Symbol,l=f&&f.iterator,p=/^[+-]?0x/i,h=i(p.exec),d=8!==s(u+"08")||22!==s(u+"0x16")||l&&!o((function(){s(Object(l))}));t.exports=d?function(t,e){var r=c(a(t));return s(r,e>>>0||(h(p,r)?16:10))}:s},wkBT:function(t,e){t.exports=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.")},t.exports.__esModule=!0,t.exports.default=t.exports},x0AG:function(t,e,r){"use strict";var n=r("I+eb"),o=r("tycR").findIndex,i=r("RNIs"),a="findIndex",c=!0;a in[]&&Array(1)[a]((function(){c=!1})),n({target:"Array",proto:!0,forced:c},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(a)},xDBR:function(t,e,r){"use strict";t.exports=!1},xRNQ:function(t,e,r){"use strict";var n=r("I+eb"),o=r("Gi26"),i=r("2bX/"),a=r("DVFp"),c=r("VpIT"),u=r("C0Od"),s=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!i(t))throw new TypeError(a(t)+" is not a symbol");if(o(s,t))return s[t]}})},xfeJ:function(t,e){t.exports=function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}},t.exports.__esModule=!0,t.exports.default=t.exports},xluM:function(t,e,r){"use strict";var n=r("QNWe"),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},xrYK:function(t,e,r){"use strict";var n=r("4zBA"),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},xs3f:function(t,e,r){"use strict";var n=r("xDBR"),o=r("z+kr"),i=r("Y3Q8"),a="__core-js_shared__",c=t.exports=o[a]||i(a,{});(c.versions||(c.versions=[])).push({version:"3.47.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})},xtKg:function(t,e,r){"use strict";var n=r("I+eb"),o=r("xluM"),i=r("xDBR"),a=r("Xnc8"),c=r("Fib7"),u=r("3MOf"),s=r("4WOD"),f=r("0rvr"),l=r("1E5z"),p=r("kRJp"),h=r("yy0I"),d=r("tiKp"),v=r("P4y1"),m=r("rpNk"),g=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,x=m.BUGGY_SAFARI_ITERATORS,w=d("iterator"),_="keys",T="values",O="entries",k=function(){return this};t.exports=function(t,e,r,a,d,m,S){u(r,e,a);var E,M,j,A=function(t){if(t===d&&D)return D;if(!x&&t&&t in R)return R[t];switch(t){case _:case T:case O:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",C=!1,R=t.prototype,P=R[w]||R["@@iterator"]||d&&R[d],D=!x&&P||A(d),z="Array"===e&&R.entries||P;if(z&&(E=s(z.call(new t)))!==Object.prototype&&E.next&&(i||s(E)===b||(f?f(E,b):c(E[w])||h(E,w,k)),l(E,I,!0,!0),i&&(v[I]=k)),g&&d===T&&P&&P.name!==T&&(!i&&y?p(R,"name",T):(C=!0,D=function(){return o(P,this)})),d)if(M={values:A(T),keys:m?D:A(_),entries:A(O)},S)for(j in M)(x||C||!(j in R))&&h(R,j,M[j]);else n({target:e,proto:!0,forced:x||C},M);return i&&!S||R[w]===D||h(R,w,D,{name:d}),v[e]=D,M}},yLpj:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"==typeof window&&(r=window)}t.exports=r},yNLB:function(t,e,r){"use strict";var n=r("Xnc8").PROPER,o=r("0Dky"),i=r("WJkJ");t.exports=function(t){return o((function(){return!!i[t]()||"
"!=="
"[t]()||n&&i[t].name!==t}))}},yXPU:function(t,e){function r(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},yoRg:function(t,e,r){"use strict";var n=r("4zBA"),o=r("Gi26"),i=r("/GqU"),a=r("TWQb").indexOf,c=r("0BK2"),u=n([].push);t.exports=function(t,e){var r,n=i(t),s=0,f=[];for(r in n)!o(c,r)&&o(n,r)&&u(f,r);for(;e.length>s;)o(n,r=e[s++])&&(~a(f,r)||u(f,r));return f}},ypFw:function(t,e,r){"use strict";var n=r("67WC"),o=r("1Y/n").left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return o(i(this),t,e,e>1?arguments[1]:void 0)}))},yq1k:function(t,e,r){"use strict";var n=r("I+eb"),o=r("TWQb").includes,i=r("0Dky"),a=r("RNIs");n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},yy0I:function(t,e,r){"use strict";var n=r("Fib7"),o=r("m/L8"),i=r("E9LY"),a=r("Y3Q8");t.exports=function(t,e,r,c){c||(c={});var u=c.enumerable,s=void 0!==c.name?c.name:e;if(n(r)&&i(r,s,c),c.global)u?t[e]=r:a(e,r);else{try{c.unsafe?t[e]&&(u=!0):delete t[e]}catch(f){}u?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},yyme:function(t,e,r){"use strict";var n=r("I+eb"),o=r("gdVl"),i=r("RNIs");n({target:"Array",proto:!0},{fill:o}),i("fill")},"z+kr":function(t,e,r){"use strict";(function(e){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,r("yLpj"))},zBJ4:function(t,e,r){"use strict";var n=r("z+kr"),o=r("hh1v"),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},zJiX:function(t,e,r){"use strict";var n=r("I+eb"),o=r("xDBR"),i=r("Rzhe").CONSTRUCTOR,a=r("0lZ3"),c=r("0GbY"),u=r("Fib7"),s=r("yy0I"),f=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&u(a)){var l=c("Promise").prototype.catch;f.catch!==l&&s(f,"catch",l,{unsafe:!0})}},zKZe:function(t,e,r){"use strict";var n=r("I+eb"),o=r("YNrV");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},zNcT:function(t,e,r){"use strict";r.r(e),r.d(e,"enu",(function(){return st})),r.d(e,"theme",(function(){return nt})),r.d(e,"bus",(function(){return ot})),r.d(e,"req",(function(){return it})),r.d(e,"reOb",(function(){return dt})),r.d(e,"unOb",(function(){return ht})),r.d(e,"unSet",(function(){return pt})),r.d(e,"createStore",(function(){return ut})),r.d(e,"dataMap",(function(){return at})),r.d(e,"fileMap",(function(){return ct})),r.d(e,"webComp",(function(){return ft})),r.d(e,"tc",(function(){return vt})),r.d(e,"ob",(function(){return lt})),r.d(e,"useWebComp",(function(){return rt})),r.d(e,"createCacheComp",(function(){return et})),r.d(e,"directives",(function(){return xt})),r.d(e,"directivesTool",(function(){return n})),r.d(e,"i18n",(function(){return R})),r.d(e,"t",(function(){return I})),r.d(e,"jsx",(function(){return N})),r.d(e,"default",(function(){return wt}));var n={};r.r(n),r.d(n,"clickOutside",(function(){return yt})),r.d(n,"default",(function(){return bt}));var o,i,a=r("lSNA"),c=r.n(a),u=(r("oVuX"),r("pNMO"),r("TeQF"),r("2B1R"),r("5DmW"),r("27RR"),r("tkto"),r("07d7"),r("rB9j"),r("EnZy"),r("FZtP"),r("2mBW"),r("yXPU")),s=r.n(u),f=r("J4zp"),l=r.n(f),p=r("RIqP"),h=r.n(p),d=r("o0o1"),v=r.n(d);r("4Brf"),r("0oug"),r("ma9I"),r("yyme"),r("fbCW"),r("x0AG"),r("pjDv"),r("yq1k"),r("4mDm"),r("E9XD"),r("Junv"),r("+2oP"),r("ToJy"),r("pDQq"),r("wZ/5"),r("rOQg"),r("sMBO"),r("Tskq"),r("QFcT"),r("KvGi"),r("AmFO"),r("qePV"),r("JevA"),r("toAj"),r("zKZe"),r("T63A"),r("wfmh"),r("B6y2"),r("4l63"),r("5s+n"),r("TWNs"),r("JfAA"),r("JTJg"),r("PKPk"),r("Rm1S"),r("UxlC"),r("SYor"),r("XMab"),r("+ywr"),r("moxL"),r("qXVe"),r("c162"),r("waxf"),r("0TkE"),r("Onu3"),r("1dYe"),r("gvgV"),r("6R/c"),r("YL0P"),r("X5Zq"),r("MoCz"),r("P8wP"),r("ypFw"),r("JaFt"),r("zSZm"),r("PF2M"),r("KVSy"),r("ZJ55"),r("IZzc"),r("Fwt+"),r("s5qe"),r("cvf0"),r("j+VE"),r("3bBZ");function m(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return g(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function b(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach((function(e){c()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var x,w,_,T,O,k={setEnv:function(t){o=t.window,i=t.document},uuid:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"_",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n__",r=(new Date).getTime();return e+"xxxxxxxx".concat(t,"xxxx").concat(t,"6xxx").concat(t,"yxxx").concat(t,"xxxxxxxxxxxx").replace(/[xy]/g,(function(t){var e=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"===t?e:3&e|8).toString(16)}))},reg:{phone:/^1[0-9]{10}$/,email:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,idCard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/},getEnv:function(){var t=void 0!==o,e="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,r=e&&WXEnvironment.platform.toLowerCase(),n=t&&o.navigator.userAgent.toLowerCase(),a=n&&/msie|trident/.test(n),c=n&&n.indexOf("msie 9.0")>0,u=n&&n.indexOf("edge/")>0,s=n&&n.indexOf("android")>0||"android"===r,f=n&&/iphone|ipad|ipod|ios/.test(n)||"ios"===r,l=n&&/chrome\/\d+/.test(n)&&!u,p=n&&/phantomjs/.test(n),h=n&&n.match(/firefox\/(\d+)/);return{window:o,document:i,inBrowser:t,inWeex:e,weexPlatform:r,isIE:a,isIE9:c,isEdge:u,isAndroid:s,isIOS:f,isChrome:l,isPhantomJS:p,isFF:h}},date:{getRange:function(t){var e=t.pre,r=void 0===e?["0hs","0ms","0ss","0Ss","23he","59me","59se","0Se"]:e,n=t.sdm,o=t.edm,i=t.oper,a=void 0===i?[]:i,c=t.format,u=void 0===c?"yyyy-MM-dd HH:mm:ss":c,s={s:n=n||k.date.getMath(),e:o=o||k.date.getMath()};return[].concat(h()(r),h()(a)).forEach((function(t){var e=t.match(/(-|\+)?(\d+)([a-z])(s|e)/i);if(e){var r=l()(e,5),n=(r[0],r[1]),o=r[2],i=r[3],a=r[4];o*=1,n?s[a][i]+=o*("+"===n?1:-1):s[a][i]=o}})),[n.format(u),o.format(u)]},formatStr:function(t){var e=t.str,r=t.outDate,n=t.format,o=t.defFill,i=void 0===o?{h:0,m:0,s:0,S:0}:o;e+="";var a,c=k.isEmpty,u=b({},i);if(n){var s={M:"1,2",d:"1,2",H:"1,2",m:"1,2",s:"1,2",S:"1,3"},f=[];n=k.str.escape(n),["yyyy","MM","M","dd","d","HH","H","mm","m","ss","s","SSS","S"].forEach((function(t,e){return n=n.replace(t,(function(r){return r="#n#".concat(e,"#x#"),f.push([t,"(\\d{".concat(s[t]||t.length,"})"),r]),r}))})),f.forEach((function(t){var e=l()(t,3),r=(e[0],e[1]),o=e[2];return n=n.replace(o,r)})),a=e.match(new RegExp(n))||[],f.forEach((function(t,e){var r=l()(t,1)[0];return!c(a[e+1])&&(u[["M","S"].includes(r[0])?r[0]:r[0].toLowerCase()]=1*a[e+1])}))}else{var p=a=e.replace(/\D/g,"").match(/^(\d{4})(\d{2})?(\d{2})?(?:(\d{2})(\d{2})?(\d{2})?(\d{3})?)?$/)||[],h=l()(p,8),d=h[1],v=h[2],m=h[3],g=h[4],y=h[5],x=h[6],w=h[7];Object.entries({y:d,M:v,d:m,h:g,m:y,s:x,S:w}).forEach((function(t){var e=l()(t,2),r=e[0],n=e[1];return!c(n)&&(u[r]=1*n)}))}return a.length?(u.match=a,r?new Date(u.y,u.M-1,u.d,u.h,u.m,u.s,u.S):u):null},getDateLen:function(t,e){var r;return"date"===k.isType(t)?(r=t.getFullYear(),e=t.getMonth()+1):r=t,[1,3,5,7,8,10,12].includes(e*=1)?31:[4,6,9,11].includes(e)?30:(r%4||!(r%100))&&r%400?28:29},getDateByYear:function(t,e,r){var n="date"===k.isType(t)?t:new Date(t,e-1,r),o=new Date(n.getFullYear(),0,1);return Math.floor((n.getTime()-o.getTime())/1e3/60/60/24)+1},getWeek:function(t){var e=t.num,r=t.date,n=t.type,o=void 0===n?"year":n,i=t.offset,a=void 0===i?1:i;if(!["year","month"].includes(o))return!1;var c="date"===k.isType(r),u="number"===k.isType(e),s=k.date.getMath(c&&r);s.h=s.m=s.s=s.S=0;var f,l=k.date.getMath(s.date);if(c&&!u){var p=s.date.getDay();p=0===p?7:p,s.d+=(a<=p?a+7:a)-p,l.date=s.date,l.d-=7,"year"===o&&(l.M=0),l.d=0;var h=0===l.date.getDay()?7:l.date.getDay();l.d=(a<h?a+7:a)-h,f=(k.date.getDateByYear(s.date)+(s.y===l.y?0:k.date.getDateByYear(l.y,12,31))-k.date.getDateByYear(l.date))/7}return u?(l.date=c?r:new Date,"year"===o&&(l.M=0),l.d+=7*e,k.date.getWeek({date:l.date,type:o,offset:a})):(l.date=s.date,l.d-=7,s.d--,{y:l.y,M:l.M+1,start:l.format("yyyy-MM-dd"),end:s.format("yyyy-MM-dd"),sDm:l,eDm:s,week:f})},format:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yyyy-MM-dd HH:mm:ss",e=arguments.length>1?arguments[1]:void 0;e=e||new Date;var r=k.str.pad,n=[e.getFullYear(),e.getMonth(),e.getDate()-1,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds(),e.getTime()],o=n[0],i=n[1],a=n[2],c=n[3],u=n[4],s=n[5],f=n[6],l=n[7],p={yy:o%100,yyyy:r(o,4),M:i+1,MM:r(i+1),d:a+1,dd:r(a+1),H:c,HH:r(c),m:u,mm:r(u),s:s,ss:r(s),S:f,SSS:r(f,3),t:l};return["yyyy","yy","MM","M","dd","d","HH","H","mm","m","ss","s","SSS","S","t"].forEach((function(e){return t=t.replace(new RegExp(e,"g"),p[e])})),t},diff:function(t){var e=t.s,r=t.e,n=void 0===r?(new Date).getTime():r,o=t.unitMap,i=void 0===o?{}:o,a=t.diffList,c=void 0===a?["y","M","d","h","m","s","S"]:a,u=t.format,s=t.outLabel,f=void 0===s||s,l=t.singleLabel,p=void 0===l||l,h=("date"===k.isType(n)?n.getTime():1*n)-("date"===k.isType(e)?e.getTime():1*e),d={wS:h,ws:~~(h/1e3),wm:~~(h/1e3/60),wh:~~(h/1e3/60/60),wd:~~(h/1e3/60/60/24),wM:~~(h/1e3/60/60/24/30),wy:~~(h/1e3/60/60/24/30/12),S:h%1e3,s:~~(h/1e3)%60,m:~~(h/1e3/60)%60,h:~~(h/1e3/60/60)%24,d:~~(h/1e3/60/60/24)%30,M:~~(h/1e3/60/60/24/30)%12,y:~~(h/1e3/60/60/24/30/12),dis:h};if(!f)return d;i=k.params.merge(i,{y:"年前",M:"个月前",d:"天前",h:"小时前",m:"分钟前",s:"秒前",S:"毫秒前",just:"刚刚"}),u=u||function(t){var e=t.k,r=t.label;return"S"===e?i.just:r};var v=function(t){var r,o=d[t];return"number"===k.isType(o)&&o>0&&(r="".concat(o).concat(i[t])),r=u?u({k:t,v:o,label:r,unitMap:i,format:u,s:e,e:n,dis:h,map:d}):r};return p?k.arr.findMap(c,v):k.arr.filterMap(c,v).join("")},getMath:function(t){var e={};return Object.setPrototypeOf(e,{__isDateMath:!0,update:function(t){t=t||new Date,this.y=t.getFullYear(),this.M=t.getMonth(),this.d=t.getDate()-1,this.h=t.getHours(),this.m=t.getMinutes(),this.s=t.getSeconds(),this.S=t.getMilliseconds(),this.date=t},compute:function(){for(var t=["M","d","M","h","m","s","S"],e=t.length-1;e>=0;e--){var r=t[e],n=this[r];if("number"===k.isType(n)&&n==n){var o=void 0;switch(r){case"S":n>=1e3&&(o=~~(n/1e3),this.S=n%1e3,this.s+=o),n<0&&(o=Math.floor(n/1e3),this.S=n%1e3==0?0:1e3+n%1e3,this.s+=o);break;case"s":n>=60&&(o=~~(n/60),this.s=n%60,this.m+=o),n<0&&(o=Math.floor(n/60),this.s=n%60==0?0:60+n%60,this.m+=o);break;case"m":n>=60&&(o=~~(n/60),this.m=n%60,this.h+=o),n<0&&(o=Math.floor(n/60),this.m=n%60==0?0:60+n%60,this.h+=o);break;case"h":n>=24&&(o=~~(n/24),this.h=n%24,this.d+=o),n<0&&(o=Math.floor(n/24),this.h=n%24==0?0:24+n%24,this.d+=o);break;case"d":var i=k.date.getDateLen(this.y,this.M+1);if(n>=i&&(this.d=n-i,this.M++,e=3),n<0){0===this.M?this.y:this.y;i=k.date.getDateLen(this.y,0===this.M?12:this.M),this.d=n+i,this.M--,e=3}break;case"M":n>=12&&(o=~~(n/12),this.M=n%12),n<0&&(o=Math.floor(n/12),this.M=n%12==0?0:12+n%12),(n>=12||n<0)&&(this.y+=o,e=2)}}else this[r]=0}var a=this.y,c=this.M,u=this.d,s=this.h,f=this.m,l=this.s,p=this.S;this.date=new Date(a,c,u+1,s,f,l,p)},format:function(t){return k.date.format(t,this.date)},clone:function(){var t=new Date;return t.setTime(this.date.getTime()),k.date.getMath(t)}}),e.update(t),new Proxy(e,{get:function(t,e,r){return"__self"===e?t:"__proxy"===e?r:t[e]},set:function(t,e,r,n){return t[e]=r,["y","M","d","h","m","s","S"].includes(e)&&t.compute(),["date"].includes(e)&&t.update(r),!0}})}},cookie:{set:function(t){var e=t.k,r=t.v,n=void 0===r?"":r,o=t.exp,a=t.path,c=void 0===a?"/":a,u=t.domain,s=t.encode,f=void 0===s?1:s;void 0===t.doc&&(t.doc=i);var l="".concat(e,"=").concat(f?encodeURIComponent(n):n).concat(o&&"date"===k.isType(o)?"; expires=".concat(o.toGMTString()):"").concat(c?"; path=".concat(c):"").concat(u?"; domain=".concat(u):"");return t.doc&&(t.doc.cookie=l),l},get:function(t){var e=t.k,r=t.decode,n=void 0===r?1:r,o=t.cookie,a=(void 0===o?i.cookie:o).match(new RegExp("(?:^|;\\s)".concat(e,"=([^;]*)(?:;|$)")));return(a=(a=a&&a[1])&&'"'===a[0]&&'"'===a.slice(-1)?a.replace(/^"|"$/g,""):a)?n?decodeURIComponent(a):a:null},del:function(t){var e=t.k,r=t.path,n=new Date;n.setTime(n.getTime()-1e4),this.set({k:e,exp:n,path:r})},encode:function(t){var e=this,r=t.data,n=t.encode,o=void 0===n?1:n;return Object.entries(r).map((function(t){var r=l()(t,2),n=r[0],i=r[1];return"object"!==k.isType(i)?"".concat(n,"=").concat(o?encodeURIComponent(i):i):(void 0===i.encode&&(i.encode=o),i.doc=null,e.set(i))})).join("; ")},formatKeyVal:function(t){var e=t.s,r=t.decode,n=void 0===r?1:r,o=t.trim,i=void 0===o?1:o,a=t.outArr,c=(e=e.split("=")).slice(1).join("=");return c=c||"",c=i&&'"'===c[0]&&'"'===c.slice(-1)?c.replace(/^"|"$/g,""):c,c=n?decodeURIComponent(c):c,a?[e[0],c]:{k:e[0],v:c}},format:function(t){var e=this,r=t.cookie,n=void 0===r?i.cookie:r,o=t.decode,a=void 0===o?1:o,c=t.trim,u=void 0===c?1:c,s={};return n.split("; ").forEach((function(t){var r=e.formatKeyVal({s:t,decode:a,trim:u,outArr:1}),n=l()(r,2),o=n[0],i=n[1];o&&(s[o]=i)})),s},formatSet:function(t){for(var e,r=this,n=t.cookie,o=t.decode,i=void 0===o?1:o,a=t.trim,c=void 0===a?1:a,u=[],s=function(){if(!~(e=(e=n.match(/,\s[^=;,\s]+=/))?e.index:n.length)||!n.length)return 1;var t=n.slice(0,e).split("; ");n=n.slice(e+2);var o=r.formatKeyVal({s:t.shift(),trim:c,decode:i});t.forEach((function(t){var e=r.formatKeyVal({s:t,decode:i,trim:c,outArr:1}),n=l()(e,2),a=n[0],u=n[1];a&&(o[a]=!t.match("=")&&""===u||u)})),u.push(o)};!s(););return u}},storage:{data:[],init:function(t,e){if(t){e=e||o.localStorage;var r=this.data.find((function(r){return r.__before===t&&e===r.__self}));if(r)return r;var n=new Proxy({__before:t,__self:e,__tg:null,getItem:function(t){return this.__self.getItem("".concat(this.__before,"__").concat(t))},setItem:function(t,e){return this.__self.setItem("".concat(this.__before,"__").concat(t),e)},removeItem:function(t){return this.__self.removeItem("".concat(this.__before,"__").concat(t))},clear:function(){var t=this;return this.keys().forEach((function(e){return t.removeItem(e)}))},key:function(t){return this.keys()[t]},keys:function(){var t=this;return k.arr.filterMap(Object.keys(this.__self),(function(e){return 0===(e+"").indexOf(t.__before+"__")&&e.replace(new RegExp("^".concat(k.str.escape(t.__before),"__")),"")}))},values:function(){var t=this;return this.keys().map((function(e){return t.getItem(e)}))},entries:function(){var t=this;return this.keys().map((function(e){return[e,t.getItem(e)]}))},destroy:function(){var t=this;k.arr.delItem(k.storage.data,null,(function(e){return e.__before===t.__before&&e.__self===t.__self}),0)}},{get:function(t,e){return"length"===e?t.keys().length:"__tg"===e?t:e in t?t[e]:t.getItem(e)},set:function(t,e,r){return!(e in t)&&t.setItem(e,r),!0}});return this.data.push(n),n}}},store:{data:{},init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.id&&this.data[e.id];if(r)return r;var n=k.params.merge(e,b(b({},k.clone(k.event)),{},{storeBefore:"",saveInterval:100,computedKeys:[],storeKeys:[],curWatch:[],depMap:{},computedMap:{},id:k.uuid(),store:o.localStorage,getDep:function(t){var e=f[t]=f[t]||{k:t,watchs:[],addWatch:function(t){return k.arr.set(e.watchs,t)},delWatch:function(t){return k.arr.delItem(e.watchs,t)},depend:function(){var t=s.slice(-1)[0];t&&t.addDep(e)},notify:function(){return e.watchs.forEach((function(t){return t.update()}))}};return e},on:{set:[{id:k.uuid(),sort:1,fun:function(t){var e=t.state,r=t.k,n=t.v;return e[r]=n}}],save:[{id:k.uuid(),sort:1,fun:function(t){var e=t.state,r=t.proxy,n=t.conf,o=t.k,c=t.v;n.emitEv("set",{state:e,proxy:r,k:o,v:c,conf:n});var u=a.find((function(t){return t.k===o}));(u=u&&u.store)&&k.debounce.commit("store-".concat(p,":set-").concat(o),(function(){return u.setItem(i+o,JSON.stringify(c))}),h)}}]},destroy:function(){delete k.store.data[e.id]}})),i=n.storeBefore,a=n.storeKeys,c=n.computedKeys,u=n.getDep,s=n.curWatch,f=n.depMap,l=n.computedMap,p=n.id,h=n.saveInterval;this.data[p]=e,a.forEach((function(r,n){a[n]=r=k.params.merge("string"===k.isType(r)?{k:r}:r,{k:"",store:e.store});var o=r,c=o.k,u=o.store;if(!k.isEmpty(c)&&u){var s;try{if(s=u.getItem(i+c),k.isEmpty(s,[null,void 0]))return;s=JSON.parse(s)}catch(f){return}t[c]=s}})),c.forEach((function(e,r){var n=c[r]=k.params.merge("function"===k.isType(t[e])?{get:t[e]}:t[e],{k:e,set:function(){},get:function(){},isUpdate:!0,deps:[],newDeps:[],update:function(){return n.isUpdate=!0},cb:function(){s.push(n),t[e]=n.get.call(null,d),s.pop(),n.nextDeps(),n.isUpdate=!1},addDep:function(t){n.newDeps.includes(t)||(n.newDeps.push(t),!n.deps.includes(t)&&t.addWatch(n))},depend:function(){return n.deps.forEach((function(t){return t.depend()}))},nextDeps:function(){n.deps.forEach((function(t){return!n.newDeps.includes(t)&&t.delWatch(n)})),n.deps=n.newDeps,n.newDeps=[]}});l[n.k]=n}));var d=new Proxy(t,{get:function(t,r){if("__self"===r)return t;if("__conf"===r)return e;var n=l[r];n?(n.isUpdate&&n.cb(),s.slice(-1)[0]&&n.depend()):u(r).depend();return t[r]},set:function(r,n,o){if(r[n]===o||o!=o&&r[n]!=r[n])return!0;var i=l[n];return i?i.set.call(null,d,o):(e.emitEv(a.some((function(t){return t.k===n}))?"save":"set",{state:t,proxy:d,k:n,v:o,conf:e}),u(n).notify()),!0}});return e.state=t,e.proxy=d,d}},indexDb:{data:{},init:function(){var t=arguments,e=this;return s()(v.a.mark((function r(){var n,i,a;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(i=(n=t.length>0&&void 0!==t[0]?t[0]:{}).name&&e.data[n.name])){r.next=4;break}return r.abrupt("return",i);case 4:return k.params.merge(n,b(b({name:"n_tb",tb:["def"]},k.clone(k.event)),{},{on:{upgradeneeded:[{id:k.uuid(),sort:1,fun:function(t){var e=t.target.result;return n.tb.forEach((function(t){return!e.objectStoreNames.contains(t)&&e.createObjectStore(t,{keyPath:"k",autoIncrement:!1})}))}}]},getStore:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"def",e=n.db;if(e.objectStoreNames.contains(t))return e.transaction([t],"readwrite").objectStore(t)},getItem:function(t){var e=arguments,r=this;return s()(v.a.mark((function n(){var o,i,a,c;return v.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:"def",i=r.getStore(o)){n.next=4;break}return n.abrupt("return");case 4:return a=i.get(t),n.next=7,new Promise((function(t){a.onsuccess=function(){return t(1)},a.onerror=function(e){return t(0,console.log(e))}}));case 7:return c=n.sent,n.abrupt("return",c?a.result&&a.result.v:void 0);case 9:case"end":return n.stop()}}),n)})))()},setItem:function(t,e){var r=arguments,n=this;return s()(v.a.mark((function o(){var i,a,c;return v.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i=r.length>2&&void 0!==r[2]?r[2]:"def",a=n.getStore(i)){o.next=4;break}return o.abrupt("return");case 4:return c=a.put({k:t,v:e}),o.abrupt("return",new Promise((function(t){c.onsuccess=function(){return t(1)},c.onerror=function(e){return t(0,console.log(e))}})));case 6:case"end":return o.stop()}}),o)})))()},removeItem:function(t){var e=arguments,r=this;return s()(v.a.mark((function n(){var o,i,a;return v.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:"def",i=r.getStore(o)){n.next=4;break}return n.abrupt("return");case 4:return a=i.delete(t),n.abrupt("return",new Promise((function(t){a.onsuccess=function(){return t(1)},a.onerror=function(e){return t(0,console.log(e))}})));case 6:case"end":return n.stop()}}),n)})))()},clear:function(){var t=arguments,e=this;return s()(v.a.mark((function r(){var n,o,i;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:"def",o=e.getStore(n)){r.next=4;break}return r.abrupt("return");case 4:return i=o.clear(),r.abrupt("return",new Promise((function(t){i.onsuccess=function(){return t(1)},i.onerror=function(e){return t(0,console.log(e))}})));case 6:case"end":return r.stop()}}),r)})))()},entries:function(){var t=arguments,e=this;return s()(v.a.mark((function r(){var n,o,i,a;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:"def",o=e.getStore(n)){r.next=4;break}return r.abrupt("return");case 4:return i=o.getAll(),r.next=7,new Promise((function(t){i.onsuccess=function(){return t(1)},i.onerror=function(e){return t(0,console.log(e))}}));case 7:return a=r.sent,r.abrupt("return",a?(i.result||[]).map((function(t){return[t.k,t.v]})):void 0);case 9:case"end":return r.stop()}}),r)})))()},keys:function(){var t=arguments,e=this;return s()(v.a.mark((function r(){var n,o;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:"def",r.next=3,e.entries(n);case 3:return o=r.sent,r.abrupt("return",o?o.map((function(t){return l()(t,1)[0]})):void 0);case 5:case"end":return r.stop()}}),r)})))()},values:function(){var t=arguments,e=this;return s()(v.a.mark((function r(){var n,o;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:"def",r.next=3,e.entries(n);case 3:return o=r.sent,r.abrupt("return",o?o.map((function(t){var e=l()(t,2);e[0];return e[1]})):void 0);case 5:case"end":return r.stop()}}),r)})))()},destroy:function(){var t=n.name,e=n.db;e&&e.close(),n.db=n.dbReq=null,n.clearEv(),delete k.indexDb.data[t]}})),e.data[n.name]=n,(a=n.dbReq=o.indexedDB.open(n.name,1)).onupgradeneeded=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.emitEv.apply(n,["upgradeneeded"].concat(e))},r.next=10,new Promise((function(t){a.onsuccess=function(e){return n.emitEv("success",e),t(1)},a.onerror=function(e){return console.log(e),n.emitEv("error",e),t(0)},a.onblocked=function(e){return console.log(e),n.emitEv("blocked",e),t(0)}})).catch((function(t){return console.log(t),!1}));case 10:if(r.sent){r.next=13;break}return r.abrupt("return");case 13:return n.db=a.result,["abort","close","error","versionchange"].forEach((function(t){return n.db["on".concat(t)]=function(e){return n.emitEv(t,e)}})),r.abrupt("return",n);case 16:case"end":return r.stop()}}),r)})))()}},dataMap:{data:{},init:function(){var t=arguments,e=this;return s()(v.a.mark((function r(){var n,i,a,c,u,f,p,h,d,m,g,y,b;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(i=(n=t.length>0&&void 0!==t[0]?t[0]:{}).name&&e.data[n.name])){r.next=4;break}return r.abrupt("return",i);case 4:if(a=k.params.merge(n,{name:"n_dataMap",loadBlobMap:{},mapBlobUrlSync:{},saveDb:!0,saveInterval:100,noSaveKeys:[],lazy:!1,loadLazyMap:{},mapSync:{},destroy:function(){return s()(v.a.mark((function t(){return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.wait.end=1,t.next=3,n.wait.p;case 3:n.db&&n.db.destroy(),n.db=n.map=n.wait=null,delete k.dataMap.data[c];case 6:case"end":return t.stop()}}),t)})))()}}),c=a.name,u=a.saveDb,f=a.saveInterval,p=a.noSaveKeys,h=a.loadBlobMap,d=a.mapBlobUrlSync,m=a.lazy,g=a.mapSync,y=a.loadLazyMap,e.data[c]=n,!u){r.next=12;break}return r.next=9,k.indexDb.init({name:c});case 9:if(n.db=r.sent,n.db){r.next=12;break}return r.abrupt("return");case 12:if(m||!n.db){r.next=17;break}return r.next=15,n.db.entries();case 15:(b=r.sent)&&b.forEach((function(t){var e=l()(t,2),r=e[0],n=e[1];return g[r]=n}));case 17:return n.wait=k.promise.queue(),n.map=new Proxy(g,{get:function(t,e){var r=t[e];return m?new Promise(function(){var o=s()(v.a.mark((function o(i){var a;return v.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!(e in t)&&n.db&&!p.includes(e)){o.next=2;break}return o.abrupt("return",i(r));case 2:if(!y[e]){o.next=4;break}return o.abrupt("return",y[e]);case 4:return o.next=6,n.db.getItem(e);case 6:a=y[e]=o.sent,y[e]=null,t[e]=a,i(a);case 10:case"end":return o.stop()}}),o)})));return function(t){return o.apply(this,arguments)}}()):r},set:function(t,e,r){return t[e]===r||t[e]!=t[e]&&r!=r||(t[e]=r,n.mapBlobUrl[e]=void 0,!p.includes(e)&&n.db&&k.debounce.commit("dataMap-".concat(c,":set-").concat(e),(function(){return n.db&&n.wait.arr.push(k.isEmpty(r,[null,void 0])?n.db.removeItem(e):n.db.setItem(e,r))}),f)),!0}}),n.mapBlobUrl=new Proxy(d,{get:function(t,e){return s()(v.a.mark((function r(){var i,a,c,u;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.map[e];case 2:if(i=r.sent){r.next=7;break}return t[e]&&o.URL.revokeObjectURL(t[e]),t[e]=null,r.abrupt("return",i);case 7:if(void 0===t[e]){r.next=10;break}return r.abrupt("return",t[e]);case 10:if(!h[e]){r.next=12;break}return r.abrupt("return",h[e]);case 12:if(a=k.file.getDataUrlInfo(i)||{},c=a.accept,(u=a.base64)&&c){r.next=15;break}return r.abrupt("return",i);case 15:return r.abrupt("return",h[e]=k.bgWork('\n\t\t\t\t\t\t!((base64)=>{\n\t\t\t\t\t\t\tconst binary = atob( base64 );\n\t\t\t\t\t\t\tconst u8 = new Uint8Array(binary.length);\t\t\t\t\t \n\t\t\t\t\t\t\tlet i = binary.length;\n\t\t\t\t\t\t\twhile(i--){\n\t\t\t\t\t\t\t\tu8[i] = binary.charCodeAt(i);\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcb(u8)\n\t\t\t\t\t\t})("'.concat(u,'")\n\t\t\t\t\t')).catch((function(t){return console.log(t),!1})).then((function(r){return h[e]=null,t[e]=r?o.URL.createObjectURL(new Blob([r],{type:c})):null})));case 16:case"end":return r.stop()}}),r)})))()}}),r.abrupt("return",n);case 21:case"end":return r.stop()}}),r)})))()}},enu:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=k.params.merge(t,{opts:{},format:null}),r=e.opts,n=e.format,o=new Proxy(r,{get:function(t,e,r){return"__map"===e?i:"__mapItem"===e?a:n&&n({enu:o,tg:t,k:e})||t[e]||[]}}),i=new Proxy({},{get:function(t,e){return t[e]={},o[e].forEach((function(r){return t[e][r.value]=r.label})),t[e]}}),a=new Proxy({},{get:function(t,e){return t[e]={},o[e].forEach((function(r){return t[e][r.value]=r})),t[e]}});return o},hideProp:function(t,e){return("array"===k.isType(e)?e:[e]).forEach((function(e){return Object.defineProperty(t,e,{writable:!0,configurable:!0,enumerable:!1})}))},clone:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.filter,o=k.isType(t);if(["object","array"].includes(o)){e="array"===o?[]:{};for(var i=0,a=Object.keys(t);i<a.length;i++){var c=a[i];e[c]=n?n({k:c,v:t[c],o:t,opt:r}):k.clone(t[c],r)}}else e=n?n({o:t,opt:r}):t;return e},params:{getTreePath:function(t){var e=t.data,r=void 0===e?[]:e,n=t.id,o=t.checkFunc,i=t.props,a=t.format,c=t.paths,u=void 0===c?[]:c;i=b({children:"children",id:"id"},i||{});var s,f=m(r);try{for(f.s();!(s=f.n()).done;){var l=s.value;if(o?o({id:n,item:l,data:r,props:i,paths:u}):l[i.id]===n)return u.push(a?a({id:n,item:l,data:r,props:i,paths:u}):l),u;if(l[i.children]){u.push(a?a({id:n,item:l,data:r,props:i,paths:u}):l);var p=k.params.getTreePath({data:l[i.children],id:n,checkFunc:o,props:i,format:a,paths:u});if(p)return p;u.pop()}}}catch(h){f.e(h)}finally{f.f()}return!1},getObjPath:function(t){var e=t.obj,r=t.k,n=t.checkFunc,o=t.format,i=t.paths,a=void 0===i?[]:i,c=t.diffMap,u=void 0===c?new Map:c;if(u.get(e))return!1;u.set(e,1);for(var s=0,f=Object.entries(e);s<f.length;s++){var p=l()(f[s],2),h=p[0],d=p[1];if(n?n({k:r,k2:h,v:d,obj:e,paths:a}):h===r)return a.push(o?o({k:r,k2:h,v:d,obj:e,paths:a}):d),a;if(["object","array"].includes(k.isType(d))){a.push(o?o({k:r,k2:h,v:d,obj:e,paths:a}):d);var v=k.params.getObjPath({obj:d,k:r,checkFunc:n,format:o,paths:a,diffMap:u});if(v)return v;a.pop()}}return!1},merge:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.strategy,o=r.k,i=r.breakKey;n||(n=function(t,e,r){return[void 0].includes(e)?r:e}),i=i||"__n_mergeBreakKey";var a,c=k.isType(t),u=k.isType(e);if(c===u&&["object"].includes(u)&&!t[i]&&t!==e){for(var s=0,f=Object.keys(e);s<f.length;s++){var l=f[s];t[l]=k.params.merge(t[l],e[l],{strategy:n,k:l,breakKey:i})}a=t}else a=n(o,t,e);return a},optional:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return e=b({autoBindThis:!0},e),new Proxy({__v:t,__parent:r},{get:function(t,r){if(["__v","__parent"].includes(r))return e.autoBindThis&&"__v"===r&&t.__parent&&"function"===k.isType(t.__v)?t.__v.bind(t.__parent):t[r];var n;try{n=t.__v[r]}catch(o){n=void 0}return k.params.optional(n,e,t.__v)},set:function(){return console.error("在__v属性里获取实际值来设置属性,不要在proxy里设置"),!1}})},formatLineObj:function(t,e){for(var r={},n=function(){var n=i[o],a=n.split(".");if(1===a.length)return r[n]=t[n],1;var c=e?r:t;a.forEach((function(e,r){if(r===a.length-1)return c[e]=t[n];c[e]=c[e]||{},c=c[e]}))},o=0,i=Object.keys(t);o<i.length;o++)n();return e?r:t},formatObjToLine:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e=e||t,Object.entries(e).forEach((function(e){var n=l()(e,2),o=n[0],i=n[1];t["".concat(r).concat(o)]=i,["array","object"].includes(k.isType(i))&&k.params.formatObjToLine(t,i,"".concat(r).concat(o,"."))})),t},clearEmpty:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[null,"NaN",void 0,""],r=function(o,i){return!e.some((function(a){return"NaN"===a?i!=i:"[]"===a?"array"===k.isType(i)&&!i.length:"{}"===a?"object"===k.isType(i)&&!Object.keys(i).length:"function"===k.isType(a)?a({k:o,v:i,tg:t,res:n,verif:r,rule:e}):i===a}))},n={};return"array"===k.isType(t)?(n=[],t.forEach((function(t,e){return r(e,t)&&n.push(t)}))):Object.entries(t).forEach((function(t){var e=l()(t,2),o=e[0],i=e[1];return r(o,i)&&(n[o]=i)})),n},objPropertyNameChange:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"humpToSplit",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"_";if("object"!==k.isType(t))return t;for(var o=Object.keys(t).map((function(e){return[t,e]})),i=function(){var t=o.shift(),i=l()(t,2),a=i[0],c=i[1],u=a[c];delete a[c],"humpToSplit"===r&&(c=e.humpToSplit(c,n)),"splitToHump"===r&&(c=e.splitToHump(c,n)),a[c]=u,"object"===k.isType(u)&&o.unshift.apply(o,h()(Object.keys(u).map((function(t){return[u,t]}))))};o.length;)i();return t},humpToSplit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return(t+="").length?t[0]+t.slice(1).replace(/([A-Z])/g,(function(t){return e+t.toLowerCase()})):t},splitToHump:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return(t+="").length?t.split(e).reduce((function(t,r){return(k.isEmpty(t)?e:t)+(k.isEmpty(r)?e:r)[0].toUpperCase()+r.slice(1)})):t},formatUrlSearch:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=(t+="").match(/\?([^\?\#]+)/);if(!(r=r&&r[1]||t))return{};var n={};return r.split("&").forEach((function(t){t=(e?decodeURIComponent(t):t).split("="),n[t[0]]=t.slice(1).join("=")})),n},formatObjToUrlSearch:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!["array","object"].includes(k.isType(t))||!Object.keys(t).length)return e||"";var o=function(t){var e={};t.forEach((function(t){return e=b(b({},e),t)}));var o=Object.entries(e);return o=(o=n?o.sort((function(t,e){return n>0?t[0].localeCompare(e[0]):e[0].localeCompare(t[0])})):o).map((function(t){var e=l()(t,2),n=e[0],o=e[1];return"".concat(r?encodeURIComponent(n):n,"=").concat(r?encodeURIComponent(o):o)})).join("&")};if(!e)return o([t]);var i=/\?([^\?\#]+)/;return(e+="").match(i)?e.replace(i,(function(n){var i=k.params.formatUrlSearch(e,r?1:0);return"?".concat(o([i,t]))})):"".concat(e,"?").concat(o([t]))}},arr:{replace:function(t,e){var r=[];if(!t)return r;for(var n=0;n<t.length;n++){var o=t[n],i=e(o,n,t);"array"===k.isType(i)&&(r.push(o),t.splice.apply(t,[n,1].concat(h()(i))),n+=i.length-1)}return r},clearRepeat:function(t,e){var r=[],n=new Map;if(!t)return r;for(var o=0;o<t.length;o++){var i=t[o],a=e?e(i,o,t,n):i;n.get(a)?(r.push(i),t.splice(o,1),o--):n.set(a,1)}return r},delItem:function(t,e,r,n){var o=[];if(!t)return o;for(var i=0;i<t.length;i++){var a=t[i];if((r?r(a,i,t):a===e)&&(t.splice(i,1),i--,o.push(a),n))break}return o},findMap:function(t,e){var r;return t&&t.some((function(n,o){return r=e(n,o,t)})),r},filterMap:function(t,e){var r=[];return t?(t.forEach((function(n,o){var i=e(n,o,t);i&&r.push(i)})),r):r},set:function(t,e,r){for(var n=0;n<t.length;n++){var o=t[n];if(r?r(o,n,t):o===e)return}t.push(e)}},path:{format:function(t){if(t=(t&&t+""||"").trim()){t=t.replace(/\\/g,"/");var e="",r="",n="";(r=t.match(/^([^]+?)\:\/{2,}/i)||"")&&(t=t.slice(r[0].length),n=r[0],r=r[1],(e=t.match(/^([a-zA-Z0-9_]+)\:\/{1,}/i)||"")&&(t=t.slice(e[0].length),n+=e[0],e=e[1]));var o=(t=t.replace(/\/{2,}/g,"/").replace(/^\//,"")).split(/\/+/);return{paths:o,protocol:r,disk:e,pre:n,realPath:n+o.join("/")}}},join:function(t,e,r){var n=k.path.format(t),o=k.path.format(e);return n&&!o?t:o&&!n?e:(o.paths.forEach((function(t){if("."!==t&&t)return".."===t?n.paths.pop():void n.paths.push(t)})),r?n:n.pre+n.paths.join("/"))}},bitMap:function(t){var e="array"===k.isType(t)?t:new Array(t).fill(0);return{data:e,size:t=e.length,set:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Math.floor(t/32);if(r>=this.size||r<0)return console.error("超出位图");var n=1<<31-t%32,o=this.data[r];this.data[r]=e?o|n:~(~o|n)},has:function(t){var e=Math.floor(t/32);return e>=this.size||e<0?console.error("超出位图"):!!(this.data[e]&1<<31-t%32)}}},str:{pad:function(t){return(t+"")[(arguments.length>3&&void 0!==arguments[3]?arguments[3]:1)?"padStart":"padEnd"](arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0")},chineseNumToNum:function(t){var e=k.params.merge(t,{txt:"",isChild:0,format:null,unitList:["兆","亿","万","千","百","十"],unitValMap:{"十":10,"百":100,"千":1e3,"万":1e4,"亿":1e8,"兆":1e12},numMap:{"零":0,"〇":0,"一":1,"二":2,"三":3,"四":4,"五":5,"六":6,"七":7,"八":8,"九":9,"十":10}}),r=e.txt,n=e.unitList,o=e.unitValMap,i=e.numMap,a=(e.isChild,e.format);if(1===(r=(r+"").replace(/[^零〇一二三四五六七八九十百千万亿兆]/g,"").replace(/〇/g,"零").replace(/^零+/,"")).length)return i[r]||0;var c=0;return n.forEach((function(e){var n=r.match(e)&&r.split(e);n&&(r=n[1]||"",c+=k.str.chineseNumToNum(b(b({},t),{},{isChild:1,txt:n[0]}))*o[e])})),1===(r=r.replace(/^零+/,"")).length&&(c+=i[r]||0),c=a?a({conf:t,res:c}):c},numToChineseNum:function(t){var e=k.params.merge(t,{num:0,isChild:0,origNum:0,format:function(t){var e=t.conf,r=e.isChild,n=(e.origNum,t.res);return r?n:n.replace(/^一十/,"十").replace(/零一十/g,"零十")},unitList:["兆","亿","万","千","百","十"],unitChildMap:{"兆":["千","百","十"],"亿":["千","百","十"],"万":["千","百","十"],"千":[],"百":[],"十":[]},unitValMap:{"十":10,"百":100,"千":1e3,"万":1e4,"亿":1e8,"兆":1e12},numMap:{0:"零",1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七",8:"八",9:"九",10:"十"}}),r=e.num,n=e.unitList,o=e.unitValMap,i=e.numMap,a=e.format,c=e.isChild,u=e.unitChildMap;t.origNum=r=Math.floor(1*r||0);if(!n.length)return i[r]||"";var s="";return n.forEach((function(e){var n=Math.floor(r/o[e]);r-=n*o[e];var i=k.str.numToChineseNum(b(b({},t),{},{unitList:u[e],isChild:1,num:n}));0!==n&&(i+=e),s+=i})),r>0&&r<10&&(s+=i[r]||""),s=(s=c?s:s.replace(/^零+/,"")).replace(/零+$/,"").replace(/零{2,}/,"零"),s=a?a({conf:t,res:s}):s},thousand:function(t){for(var e=(t+="").match(/^-/)?"-":"",r=t.replace(/^-/,"").split("."),n=(t=r[0]).length-1,o=0,i="",a=r[1];n>=0;n--)i=t[n]+i,++o>=3&&n>0&&(o=0,i=","+i);return e+i+(a?"."+a:"")},textEllipsis:function(t){for(var e=t.str,r=t.lineLen,n=void 0===r?100:r,o=t.syb,i=void 0===o?"...":o,a=t.breakWrap,c=t.max,u=void 0===c?50:c,s=t.lineMax,f=0,l=0,p=0,h=0,d=0;d<e.length;d++)if(h+=p=e.charCodeAt(d)>=255?2:1,((l+=p)>=n||"\n"===e[d]&&!a)&&(l=0,f++),s&&f>s||u&&h>u)return e.slice(0,d-i.length)+i+"__"+f;return e},firstLetter:function(t){if("string"!==k.isType(t))return!1;var e,r,n="abcdefghjklmnopqrstwxyz",o="",i=m(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(e=0,a.match(/[\u4e00-\u9fa5]/))for(var c=0;c<23;c++)if(!(a.localeCompare("驁簿錯鵽樲酜過靃攟鬠纙鞪糯慪曝裠鶸嗦籜錻鑂繧咗"[c])>0)){o+=n[c],e=1;break}e||(o+=a)}}catch(u){i.e(u)}finally{i.f()}return o},halfMap:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_=+[]{}|;:'\",.<>/? `~",isHalf:function(t){return!!k.str.halfMap.match(t)},to16:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.split("").map((function(t){return e+t.charCodeAt(0).toString(16)})).join("")},escape:function(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")},escapeHtmlTag:function(t){return(t+"").replace(/</gi,"<").replace(/>/gi,">")},getLen:function(t,e){var r=new Intl.Segmenter("und",{granularity:"grapheme"}),n=h()(r.segment(t+"")).map((function(t){return t.segment}));return e?n:n.length}},isEmpty:function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:["",null,void 0]).includes(t)},isType:function(t,e){var r=e||{},n=r.exact,o=r.map;o=o||{asyncFunction:"function"};var i=Object.prototype.toString.call(t);return i=(i=(i=i.match(/\[object\s([a-zA-Z0-9]+)\]/))[1]||"")[0].toLowerCase()+i.slice(1),n?i:o[i]||i},random:function(t,e,r){return Math[r?"round":"floor"](Math.random()*(e-t))+t},sleep:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;return new Promise((function(r){return(e?k:o).setTimeout(r,t)}))},setTimeout:function(t,e){var r=k.setTimeout.data=k.setTimeout.data||{},n=k.uuid(),i="\n\t\t\tlet timer = setTimeout(()=> self.postMessage('handle'), ".concat(e,");\n\t\t\tself.onmessage = ()=>{\n\t\t\t\tself.postMessage('end')\n\t\t\t\tclearTimeout(timer)\n\t\t\t};\n\t\t"),a=new Worker(o.URL.createObjectURL(new Blob([i]))),c=function(){a&&a.terminate(),a=null,delete r[n]};return a.onmessage=function(e){var o=e.data;"handle"===o&&(t(),r[n]()),"end"===o&&c()},a.onerror=function(t){return c(console.log(t))},r[n]=function(){return a.postMessage("end")},n},clearTimeout:function(t){var e=k.setTimeout.data=k.setTimeout.data||{};e[t]&&e[t]()},setInterval:function(t,e){var r=k.setInterval.data=k.setInterval.data||{},n=k.uuid(),i="\n\t\t\tlet timer = setInterval(()=> self.postMessage('handle'), ".concat(e,");\n\t\t\tself.onmessage = ()=>{\n\t\t\t\tself.postMessage('end')\n\t\t\t\tclearInterval(timer)\n\t\t\t};\n\t\t"),a=new Worker(o.URL.createObjectURL(new Blob([i]))),c=function(){a&&a.terminate(),a=null,delete r[n]};return a.onmessage=function(e){var r=e.data;"handle"===r&&t(),"end"===r&&c()},a.onerror=function(t){return c(console.log(t))},r[n]=function(){return a.postMessage("end")},n},clearInterval:function(t){var e=k.setInterval.data=k.setInterval.data||{};e[t]&&e[t]()},bgWork:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cb";return new Promise((function(r){var n="".concat(e," = data => self.postMessage(data); ").concat("function"===k.isType(t)?"(".concat(t.toString(),")()"):t),i=new Worker(o.URL.createObjectURL(new Blob([n]))),a=function(t){r(t),i.terminate(),i=null};i.onmessage=function(t){var e=t.data;return a(e)},i.onerror=function(t){return a(void 0,console.log(t))}}))},jsonp:function(t){return s()(v.a.mark((function e(){var r,n,a,u,s,f,l,p,h,d,m;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.params,a=t.cbKey,u=void 0===a?"cbName":a,s=t.exact,f=t.timeout,l=t.cbName,p=i.createElement("script"),l=l||"cb"+k.uuid(),p.src=k.params.formatObjToUrlSearch(b(b({},n),{},c()({},u,l)),r),i.head.appendChild(p),d=s?k:o,e.next=8,new Promise((function(t){f&&(h=d.setTimeout((function(){return t(!1)}),f)),o[l]=t,p.onerror=function(){return t(!1)}})).catch((function(t){return console.log(t),!1}));case 8:return m=e.sent,d.clearTimeout(h),delete o[l],d.setTimeout((function(){return p.remove()}),1e3),e.abrupt("return",m);case 13:case"end":return e.stop()}}),e)})))()},request:function(t){return s()(v.a.mark((function e(){var r,n,i,a,c,u,s,f,p,h,d,m,g,y;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k.params.merge(t,b(b({},k.clone(k.event)),{},{on:{},url:"",method:"get",data:void 0,timeout:0,params:void 0,resHeads:{},headers:{},responseType:"json",baseUrl:null,withCredentials:!1,cache:null,cacheKey:null,cacheExp:500})),r=t.url,n=t.baseUrl,i=t.headers,a=t.method,c=t.data,u=t.cache,s=t.params,f=t.cacheKey,p=t.resHeads,a=t.method=(a+"").toLowerCase(),!r.match(/^http/)&&n&&(r=n+r),t.realUrl=r=k.params.formatObjToUrlSearch(s,r),["post","put","delete"].includes(a)&&["array","object"].includes(k.isType(c))&&(c=JSON.stringify(c),void 0===i["content-type"]&&(i["content-type"]="application/json")),void 0===i["content-type"]&&"string"===k.isType(c)&&(i["content-type"]="application/x-www-form-urlencoded"),!u){e.next=15;break}if(d=(new Date).getTime(),Object.entries(u).forEach((function(t){var e=l()(t,2),r=e[0];return e[1].exp<=d&&delete u[r]})),t.cacheKey=f=f||k.md5.s32(JSON.stringify({url:r,data:c,params:s,headers:i,method:a})),!(h=u[f])){e.next=14;break}return e.abrupt("return",h.promise());case 14:h=u[f]={exp:d+t.cacheExp,res:void 0,isOk:0,arr:[],promise:function(){return new Promise((function(t){return h.isOk?t(h.res):h.arr.push(t)}))}};case 15:return(m=t.xhr=new o.XMLHttpRequest).responseType=t.responseType,m.withCredentials=t.withCredentials,m.open(a,r,!0),m.timeout=t.timeout,Object.entries(i).forEach((function(t){var e=l()(t,2),r=e[0],n=e[1];return!k.isEmpty(n,[null,void 0])&&m.setRequestHeader(r,n)})),t.abort=function(){return m.abort.apply(m,arguments)},t.sendData=c,["abort","error","load","loadstart","readystatechange","progress","timeout"].forEach((function(e){return m["on".concat(e)]=function(r){return t.emitEv(e,r)}})),["abort","error","load","loadstart","loadend","progress","timeout"].forEach((function(e){return m.upload["on".concat(e)]=function(r){return t.emitEv("".concat(e,"Upload"),r)}})),m.onloadend=function(e){t.emitEv("loadend",e),"function"===k.isType(g)?g():g=1},m.send(c),e.next=29,new Promise((function(t){return g?t():g=t}));case 29:return(y=m.getAllResponseHeaders())&&y.split(/\r\n/).forEach((function(t){if(t){var e=(t=t.split(":"))[0].trim(),r=t.slice(1).join(":").trim();p[e];if(k.isEmpty(p[e],[null,void 0]))return p[e]=r;"array"!==k.isType(p[e])&&(p[e]=[p[e]]),p[e].push(r)}})),h&&(h.arr.forEach((function(t){return t(m.response)})),h.isOk=1,h.res=m.response),e.abrupt("return",m.response);case 33:case"end":return e.stop()}}),e)})))()},ws:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return k.params.merge(t,b(b({url:"",opt:void 0,ws:null,sendList:[],timer:null,isDestroy:!1,responseType:"json",reconnTime:5e3},k.clone(k.event)),{},{on:{open:[],close:[],message:[],error:[]},initEv:function(e){var r=t.ws;r&&(r["on".concat(e)]=function(r){return t.on[e].forEach((function(t){var e=(0,t.fun)(r);r=void 0===e?r:e}))})},send:function(e){var r=t.ws,n=t.sendList;if(["object","array"].includes(k.isType(e)))try{e=JSON.stringify(e)}catch(o){}if(!r||r.readyState!==r.OPEN)return n.push(e);r.send(e)},close:function(e){var r=t.ws,n=t.timer;o.clearTimeout(n),r&&(e&&r.close(),r.onmessage=r.onopen=r.onerror=r.onclose=null,r.closeEv(),e||r.close(),t.ws=null)},destroy:function(){t.isDestroy=!0,t.close(1),t.sendList.length=0,t.clearEv()},conn:function(){return s()(v.a.mark((function e(){var r,n,i,a,c;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.ws,n=t.opt,i=t.initEv,t.bindEv,t.unEv,a=t.url,!t.isDestroy){e.next=3;break}return e.abrupt("return");case 3:r&&t.close(),t.ws=r=new WebSocket(a,n),r.id=k.uuid(),i("open"),i("message"),i("error"),i("close"),c=[["open",function(){var e=t.send,r=t.sendList;for(r=h()(r);r.length;)e(r.shift())}],["message",function(e){var r=e.data;try{r="json"===t.responseType?JSON.parse(r):r}catch(e){}return{data:r,e:e}}],["close",function(){t.close(),t.reconnTime>=0&&(t.timer=o.setTimeout(t.conn,t.reconnTime))}]].map((function(e){var r=l()(e,2),n=r[0],o=r[1];return[n,t.bindEv(n,o,1e3)]})),r.closeEv=function(){return c.forEach((function(e){var r=l()(e,2),n=r[0],o=r[1];return t.unEv(n,o)}))};case 12:case"end":return e.stop()}}),e)})))()}})),t},sort:{quick:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r="function"===k.isType(e)?e:function(t,r){return e>0?t-r:r-t};if(t.length<=1)return t;if(2===t.length)return r(t[0],t[1])>0?[t[1],t[0]]:t;for(var n,o=t[0],i=[],a=[o],c=[],u=1;u<t.length;u++)(0===(n=r(t[u],o))?a:n<0?i:c).push(t[u]);return a.unshift.apply(a,h()(k.sort.quick(i,e))),a.push.apply(a,h()(k.sort.quick(c,e))),a}},file:{getSuffix:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=(t=(t+"").split("?")[0]).slice(t.lastIndexOf(".")+1).trim();return e?r.toLowerCase():r},getName:function(t,e){if(t=(t+"").split("?")[0].match(/([^\\\/]*)\.([^\.\\\/]+)\s*$/))return e?{reg:t,name:t[0],short:t[1],suffix:t[2]}:t[0]},test:function(t){var e=t.files,r=t.maxSize,n=t.types;if(!e||!e.length)return 0;var o,i=m(e);try{for(i.s();!(o=i.n()).done;){var a=o.value;if(r&&r<a.size)return 0;if(n&&!n.includes(k.file.getSuffix(a.name).toLowerCase()))return 0}}catch(c){i.e(c)}finally{i.f()}return 1},getMedia:function(t){return s()(v.a.mark((function e(){var r,n,a,c,u,s;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.src,n=t.type,a=void 0===n?"img":n,c=t.timeout,a&&r){e.next=3;break}return e.abrupt("return");case 3:return(u=i.createElement(a)).src=r,e.next=7,new Promise((function(t){u["img"===a?"onload":"oncanplaythrough"]=function(){return t(1)},u.onerror=function(){return t(0)},c&&o.setTimeout((function(){return t(0)}),c)}));case 7:return s=e.sent,e.abrupt("return",s?u:null);case 9:case"end":return e.stop()}}),e)})))()},download:function(t,e){var r=i.createElement("a");r.href=t,r.target="_blank",r.download=e,r.click(),o.setTimeout((function(){return r.remove()}),3e3)},exportCsv:function(t){var e=t.cols,r=void 0===e?[]:e,n=t.rows,i=void 0===n?[]:n,a=t.showHead,c=void 0===a||a,u=t.download,s=void 0===u||u,f=t.fileName,l=void 0===f?"数据":f,p=t.format;p=p||function(t){var e=t.cell;return k.isEmpty(e)?"":(e+"").replace(/\"/g,'""')};var d=[c&&r.map((function(t,e){return'"'.concat(p({cell:t.label,colIdx:e,col:t}),'"')})).join(",")].concat(h()(i.map((function(t,e){return r.map((function(r,n){return'"'.concat(p({cell:t[r.k],row:t,idx:e,colIdx:n,col:r}),'"')})).join(",")})))).filter((function(t){return t})).join("\n");if(!s)return d;var v=new Blob([d],{type:"text/plain"}),m=o.URL.createObjectURL(v);this.download(m,l+".csv"),o.URL.revokeObjectURL(m)},compilerCsv:function(t){var e=t.csv,r=void 0===e?"":e,n=t.head,o=void 0!==n&&n,i=t.syb,a=void 0===i?",":i,c=t.standard;r+="";var u=[];if(void 0===c||c){var s,f,l,p=m(r.split("\n"));try{for(p.s();!(l=p.n()).done;){var h=l.value;if(!h)break;var d=[];for(s=0;~(s=h.indexOf('"',s))&&~(f=h.indexOf('"',s+1));){for(;'""'===h.slice(f,f+2)&&~(f=h.indexOf('"',f+2)););if(!~f)break;d.push(h.slice(s+1,f).replace(/\"\"/g,'"')),s=f+1}u.push(d)}}catch(g){p.e(g)}finally{p.f()}}else r.split("\n").forEach((function(t){return t&&u.push(t.split(a))}));if(!o)return u;if(u.length){var v=u.shift();return{head:v,data:u.map((function(t){var e={};return v.forEach((function(r,n){return e[r]=t[n]})),e}))}}},buffToBase64:function(t,e){var r="";return new Uint8Array(t).forEach((function(t){return r+=String.fromCharCode(t)})),e?o.btoa(r):k.baseEncrypt.en({str:r,utf8:!1})},fileToBase64:function(t,e){return s()(v.a.mark((function r(){var n;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t.arrayBuffer().catch((function(t){return console.log(t),!1}));case 2:return n=r.sent,r.abrupt("return",n&&k.file.buffToBase64(n,e));case 4:case"end":return r.stop()}}),r)})))()},getDataUrlInfo:function(t,e){var r=(t=(t+"").trim()).slice(0,100).match(/^data\:([^;]+);base64,/);if(r){var n=l()(r,2),o=n[0],i=n[1],a=t.slice(o.length);return e?[i,a]:{accept:i,base64:a}}},base64ToUint8:function(t,e){t+="";var r=k.file.getDataUrlInfo(t)||{},n=r.accept,i=r.base64;if(i&&n){for(var a=e?o.atob(i):k.baseEncrypt.de({str:i,utf8:!1}),c=new Uint8Array(a.length),u=a.length;u--;)c[u]=a.charCodeAt(u);return{u8:c,accept:n,base64:i}}},base64ToFile:function(t,e,r){var n=k.file.base64ToUint8(t,r);return n&&new File([n.u8],e||"文件.".concat(n.accept.split("/")[1]||n.accept),{type:n.accept})},buffToFile:function(t,e,r){return new File([new Uint8Array(t)],e||"文件",{type:r})},base64ToBlobUrl:function(t,e){var r=k.file.base64ToBlob(t,e);return r&&o.URL.createObjectURL(r)},base64ToBlob:function(t,e){var r=k.file.base64ToUint8(t,e);return r&&new Blob([r.u8],{type:r.accept})},blobToBuff:function(t){return s()(v.a.mark((function e(){var r,n;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=new FileReader).readAsArrayBuffer(t),e.next=4,new Promise((function(t){r.onload=function(){return t(r.result)},r.onerror=function(){return t(!1)}}));case 4:return n=e.sent,e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})))()},mergeBuff:function(t){if(!t.length)return!1;var e,r=t.map((function(t){return t.byteLength})).reduce((function(t,e){return t+e})),n=new Uint8Array(r),o=0,i=m(t);try{for(i.s();!(e=i.n()).done;){var a=e.value;n.set(new Uint8Array(a),o),o+=a.byteLength}}catch(c){i.e(c)}finally{i.f()}return n},strWriteView:function(t,e,r){for(var n=0;n<r.length;n++)t.setUint8(e+n,r.charCodeAt(n))},channelDataToWav:function(t,e){var r=4*t.length,n=new ArrayBuffer(44+r),o=new DataView(n),i=k.file.strWriteView;i(o,0,"RIFF"),o.setUint32(4,36+r,!0),i(o,8,"WAVE"),i(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,3,!0),o.setUint16(22,1,!0),o.setUint32(24,e,!0),o.setUint32(28,1*e*4,!0),o.setUint16(32,4,!0),o.setUint16(34,32,!0),i(o,36,"data"),o.setUint32(40,r,!0);for(var a=0;a<t.length;a++)o.setFloat32(44+4*a,t[a],!0);return n},getVideoCover:function(t){return s()(v.a.mark((function e(){var r,n,a,c,u,s,f,l,p,h,d,m;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.src,n=t.video,a=t.exp,c=void 0===a?2e3:a,u=t.curTime,s=void 0===u?0:u,f=t.srcObject,r||f||n){e.next=3;break}return e.abrupt("return");case 3:if(l=function(t){return new Promise((function(e){n.oncanplaythrough=function(){return e(1)},n.onerror=function(){return e(0)},t&&o.setTimeout((function(){return e(1)}),t)}))},n){e.next=14;break}return(n=i.createElement("video")).muted=!0,r?n.src=r:f&&(n.srcObject=f),e.next=10,l();case 10:if(p=e.sent){e.next=13;break}return e.abrupt("return");case 13:h=1;case 14:if(!(s>=0)){e.next=21;break}return n.currentTime=s,e.next=18,l(c);case 18:if(p=e.sent){e.next=21;break}return e.abrupt("return");case 21:return d=i.createElement("canvas"),m=d.getContext("2d"),d.width=n.videoWidth,d.height=n.videoHeight,m.drawImage(n,0,0,d.width,d.height),p=d.toDataURL("image/png",1),h&&n.remove(),d.remove(),e.abrupt("return",p);case 30:case"end":return e.stop()}}),e)})))()},compressImg:function(t){return s()(v.a.mark((function e(){var r,n,a,c,u,s,f,l,p,h,d,m,g,y;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.src,n=t.q,a=void 0===n?1:n,c=t.r,u=void 0===c?.7:c,s=t.timeout,f=t.w,l=t.h,p=t.type,h=void 0===p?"image/jpeg":p,(a>1||a<=0)&&(a=1),d=[new Image,i.createElement("canvas")],g=d[1],(m=d[0]).src=r,m.style.position="fixed",m.style.left="-9999px",f&&(m.style.width=f),l&&(m.style.height=l),i.body.appendChild(m),e.next=11,new Promise((function(t){m.onload=function(){return t(1)},m.onerror=function(){return t(0)},s&&o.setTimeout((function(){return t(0)}),s)}));case 11:if(y=e.sent){e.next=14;break}return e.abrupt("return",!1);case 14:return f=g.width=m.clientWidth*u,l=g.height=m.clientHeight*u,g.getContext("2d").drawImage(m,0,0,f,l),y=g.toDataURL(h,a),m.remove(),g.remove(),e.abrupt("return",y);case 22:case"end":return e.stop()}}),e)})))()},chooseFile:function(){var t=arguments;return s()(v.a.mark((function e(){var r,n,a,c,u,f,l,p,d,m,g,y,b,x,w;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=k.params.merge(r,{globalBase64:!1,onError:null,maxSize:null,types:null,limit:1,outType:"file",outArr:null,accept:"",interval:1e3}),a=n.maxSize,c=n.onError,u=n.types,f=n.limit,l=n.outType,p=n.globalBase64,d=n.outArr,m=n.accept,g=n.interval,(y=r.input=r.input||i.createElement("input")).type="file",y.multiple=f>1,y.accept=m,e.next=8,new Promise((function(t){x=function(){var e=s()(v.a.mark((function e(){return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(t){return o.setTimeout(t,g)}));case 2:!b&&t();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o.addEventListener("focus",x),y.onchange=function(){b=1,t(h()(y.files)),y.value=""},y.click()}));case 8:if(w=e.sent,o.removeEventListener("focus",x),r.files=r.res=w=(w||[]).slice(0,f),w.length){e.next=13;break}return e.abrupt("return");case 13:if(k.file.test({files:w,maxSize:a,types:u})){e.next=15;break}return e.abrupt("return",(c&&c({conf:r,errType:"typeSize"}),null));case 15:if("base64"!==l){e.next=23;break}return new FileReader,e.next=19,k.promise.all(w.map((function(t){return k.file.fileToBase64(t,p)})));case 19:if(r.res=e.sent,r.res=r.res.filter((function(t){return t})),r.res.length){e.next=23;break}return e.abrupt("return",(c&&c({errType:"base64",conf:r}),null));case 23:return e.abrupt("return",1!==f||d?r.res:r.res[0]);case 24:case"end":return e.stop()}}),e)})))()},isType:function(t){var e=arguments;return s()(v.a.mark((function r(){var n,o,i,a,c;return v.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=b({"37,80,68,70,45,49,46,55":"pdf","0,0,0,32,102,116,121,112":"mp4","31,139,8,0,231,146,228,99":"com","71,73,70,56,57,97,88,2":"gif","255,251,176,100,0,0,0,0":"mp3","82,97,114,33,26,7,1,0":"rar","77,90,80,0,2,0,0,0":"exe","255,216,255,224,0,16,74,70":"jpg","119,79,70,70,0,1,0,0":"woff","80,75,3,4,20,3,0,0":"apk","137,80,78,71,13,10,26,10":"png","82,73,70,70,118,72,0,0":"webp","77,90,144,0,3,0,0,0":"exe","56,66,80,83,0,1,0,0":"psd","116,168,166,253,85,111,1,93":"mgg","80,75,3,4,20,0,0,0":"zip","208,207,17,224,161,177,26,225":"office","80,75,3,4,10,0,0,0":"office","80,75,3,4,20,0,6,0":"office","123,92,114,116,102,49,32,92":"rtf"},n=e.length>1&&void 0!==e[1]?e[1]:{}),"file"!==(o=k.isType(t))){r.next=11;break}return r.next=6,t.arrayBuffer().catch((function(t){return console.log(t),!1}));case 6:if(i=r.sent){r.next=9;break}return r.abrupt("return",!1);case 9:r.next=16;break;case 11:if("arraybuffer"!==o){r.next=15;break}i=t,r.next=16;break;case 15:return r.abrupt("return",(console.log("参数格式错误"),!1));case 16:return a=new DataView(i),c=new Array(8).fill(1).map((function(t,e){return a.getUint8(e)})).join(","),r.abrupt("return",n[c]);case 19:case"end":return r.stop()}}),r)})))()}},compress:{clearNote:function(t){return(t+"").replace(/\/\/[^\n]*(\n*)/g,(function(t,e){return e||""})).replace(/\/\*[^]*?\*\//g,"")},css:function(t){return k.compress.clearNote(t).replace(/\n/g,"").replace(/\;\s+([^\s])/g,"; $1")}},event:{on:{},bindEv:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.on[t]=this.on[t]||[],o={id:k.uuid(),fun:e,sort:r};return n.push(o),n.sort((function(t,e){return e.sort-t.sort})),o},unEv:function(t,e){var r=this.on[t]=this.on[t]||[],n="function"===k.isType(e)?"fun":"id";k.arr.delItem(r,null,(function(t){return t===e||t[n]===e}))},emitEv:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return(this.on[t]=this.on[t]||[]).map((function(t){return t.fun.apply(void 0,r)}))},clearEv:function(){Object.values(this.on).forEach((function(t){return t.length=0}))}},bus:{data:{},on:function(t,e){this.un(t),this.data[t]={name:t,fun:e}},emit:function(t){for(var e=this.data[t],r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return e?e.fun.apply(e,n):void 0},un:function(t){delete this.data[t]}},loopFun:{timer:null,exact:!1,data:[],commit:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=k.loopFun;n.del(t),n.data.push({name:t,fun:e,interval:r,runTime:(new Date).getTime()+r}),n.run()},del:function(t){t="object"===k.isType(t)?t.name:t,k.arr.delItem(k.loopFun.data,null,(function(e){return e.name===t}))},run:function(){var t=k.loopFun,e=t.exact?k:o;e.clearTimeout(t.timer);var r=Number.MAX_VALUE,n=(new Date).getTime();t.data.forEach((function(t){t.runTime<n&&(t.fun(),t.runTime=n+t.interval);var e=t.runTime-n;r>e&&(r=e)})),r=r<0?0:r,t.data.length&&(t.timer=e.setTimeout(t.run,r))}},debounce:{data:{},commit:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=arguments.length>3?arguments[3]:void 0,a=this.data[t];a||(a={name:t,interval:n},this.data[t]=a);var c=i?k:o;c.clearTimeout(a.timer),a.fun=e;var u=function(){e(),delete r.data[t]};if(0===n)return u();a.timer=c.setTimeout(u,n)}},throttle:{data:{},commit:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;"number"!==k.isType(this.data[t])&&delete this.data[t];var n=(new Date).getTime();this.data[t]&&this.data[t]>n||(this.data[t]=n+r,e())},commitAfter:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=arguments.length>3?arguments[3]:void 0;if("object"!==k.isType(this.data[t])&&delete this.data[t],this.data[t])return this.data[t].again=e;if(0===n)return e();var a=i?k:o,c=this.data[t]={again:!1,timer:null},u=function(){return a.setTimeout((function(){if(e(),c.again)return e=c.again,c.again=!1,u();delete r.data[t]}),n)};u()}},runQueue:{data:{},commit:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=arguments.length>3?arguments[3]:void 0,a=this.data[t];if(a||(a={name:t,list:[],isRun:!1,interval:n},this.data[t]=a),a.interval=n,a.list.push(e),!a.isRun){a.isRun=!0;var c=i?k:o,u=function(){c.clearTimeout(a.timer);var e=a.list.shift();if(e&&e(),!a.list.length)return delete r.data[t];a.timer=c.setTimeout(u,a.interval)};c.setTimeout(u,1)}}},anim:{fun:{linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t||1===t?t:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1;return 0===t||1===t?t:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,r=.1;return 0===t||1===t?t:(!r||r<1?(r=1,e=.1):e=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return 0===t||1===t?t:(!r||r<1?(r=1,e=.1):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t,e){return t*t*(((e=1.70158)+1)*t-e)},backOut:function(t,e){return--t*t*(((e=1.70158)+1)*t+e)+1},backInOut:function(t,e){return e=2.5949095,(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-k.anim.fun.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*k.anim.fun.bounceIn(2*t):.5*k.anim.fun.bounceOut(2*t-1)+.5}},frame:function(t){var e=t.step,r=t.sv,n=t.ev,o=t.lastStep,i=t.animFunc;e++,t.step=e=e>o?o:e<0?0:e;var a=k.anim.fun,c=k.isType(i);i="function"===c?i:"string"===c&&a[i]||a.linear,t.v=r+(n-r)*i(e/o||0)}},color:{getLineGradient:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!t.length)return!1;if(1===t.length)return new Array(e).fill(t[0]);for(var r=[],n=Math.ceil(e/(t.length-1)),o=0;o<t.length-1;o++)for(var i=[t[o],t[o+1]],a=i[0],c=i[1],u=0;u<n;u++)r.push(this.mix(a,c,1-u/(n-1)));return r.slice(0,e)},hslToRgb:function(t,e){if(!(t=(t+"").replace(/\s/g,"").match(/hsla?\s*\(([^\(\)]+)\)/)))return!1;if(t=t[1].split(",").slice(0,4).map((function(t){return 1*t})),[3,4].includes(t.length)){3===t.length&&(t[3]=1);var r,n,o,i=function(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t},a=t,c=l()(a,4),u=c[0],s=c[1],f=c[2],p=c[3];if(0===s)r=n=o=f;else{var h=f<.5?f*(1+s):f+s-f*s,d=2*f-h;r=i(d,h,u+1/3),n=i(d,h,u),o=i(d,h,u-1/3)}var v=[Math.round(255*r),Math.round(255*n),Math.round(255*o),p];return e?v:"rgba(".concat(v.join(","),")")}},hsvToRgb:function(t,e){if(!(t=(t+"").replace(/\s/g,"").match(/hsva?\s*\(([^\(\)]+)\)/)))return!1;if(t=t[1].split(",").slice(0,4).map((function(t){return 1*t})),[3,4].includes(t.length)){3===t.length&&(t[3]=1);var r=t,n=l()(r,4),o=n[0],i=n[1],a=n[2],c=n[3];o*=6;var u=Math.floor(o),s=o-u,f=a*(1-i),p=a*(1-s*i),h=a*(1-(1-s)*i),d=u%6,v=[a,p,f,f,h,a][d],m=[h,a,a,p,f,f][d],g=[f,f,h,a,a,p][d],y=[Math.round(255*v),Math.round(255*m),Math.round(255*g),c];return e?y:"rgba(".concat(y.join(","),")")}},codeToRgb:function(t,e){var r=(t+"").replace(/#|\s/g,""),n=r.length;return!![3,6,4,8].includes(n)&&([3,4].includes(n)&&(r=["".concat(r[0]).concat(r[0]),"".concat(r[1]).concat(r[1]),"".concat(r[2]).concat(r[2])].concat(h()(4===n?["".concat(r[3]).concat(r[3])]:[]))),[6,8].includes(n)&&(r=["".concat(r[0]).concat(r[1]),"".concat(r[2]).concat(r[3]),"".concat(r[4]).concat(r[5])].concat(h()(8===n?["".concat(r[6]).concat(r[7])]:[]))),4===(r=r.map((function(t){return Number.parseInt(t,16)}))).length?r[3]=1*k.math.toFixed(r[3]/255,2,-1):r[3]=1,e?r:"rgba(".concat(r.join(","),")"))},hslToHsv:function(t,e){if(!(t=(t+"").replace(/\s/g,"").match(/hsla?\s*\(([^\(\)]+)\)/)))return!1;if(t=t[1].split(",").slice(0,4).map((function(t){return 1*t})),[3,4].includes(t.length)){3===t.length&&(t[3]=1);var r=t,n=l()(r,4),o=n[0],i=n[1],a=n[2],c=n[3],u=i,s=Math.max(a,.01);i*=(a*=2)<=1?a:2-a,u*=s<=1?s:2-s;var f=[o,0===a?2*u/(s+u):2*i/(a+i),(a+i)/2,c];return e?f:"hsva(".concat(f.join(","),")")}},hsvToHsl:function(t,e){if(!(t=(t+"").replace(/\s/g,"").match(/hsva?\s*\(([^\(\)]+)\)/)))return!1;if(t=t[1].split(",").slice(0,4).map((function(t){return 1*t})),[3,4].includes(t.length)){3===t.length&&(t[3]=1);var r,n=t,o=l()(n,4),i=o[0],a=o[1],c=o[2],u=[i,a=a*c/((r=(2-a)*c)<1?r:2-r)||0,r/2,o[3]];return e?u:"hsla(".concat(u.join(","),")")}},colorToHsl:function(t,e){return(t=this.colorToHsv(t))&&this.hsvToHsl(t,e)},colorToHsv:function(t,e){if(t=this.colorToRgb(t,1)){var r=t,n=l()(r,4),o=n[0],i=n[1],a=n[2],c=n[3];o=1*k.math.toFixed(o/255,6,-1),i=1*k.math.toFixed(i/255,6,-1),a=1*k.math.toFixed(a/255,6,-1);var u,s,f=Math.max(o,i,a),p=Math.min(o,i,a),h=f,d=f-p;if(s=0===f?0:d/f,f===p)u=0;else{switch(f){case o:u=(i-a)/d+(i<a?6:0);break;case i:u=(a-o)/d+2;break;case a:u=(o-i)/d+4}u/=6}var v=[u,s,h,c];return e?v:"hsva(".concat(v.join(","),")")}},colorToCode:function(t,e){if(t=this.colorToRgb(t,1))return e||(t.length=3),4===t.length&&(t[3]=~~(255*t[3])),"#"+t.map((function(t){return k.str.pad((1*t).toString(16))})).join("")},colorToRgb:function(t,e){return(t+="").includes("#")?t=this.codeToRgb(t):t.includes("hsl")?t=this.hslToRgb(t):t.includes("hsv")&&(t=this.hsvToRgb(t)),!!(t=t&&t.replace(/\s/g,"").match(/rgba?\s*\(([^\(\)]+)\)/))&&(3===(t=t[1].split(",").slice(0,4).map((function(t){return 1*t}))).length&&(t[3]=1),e?t:"rgba(".concat(t.join(","),")"))},mix:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3?arguments[3]:void 0;if(r=r<0?0:r>1?1:r,t=this.colorToRgb(t,1),e=this.colorToRgb(e,1),!t||!e)return!1;var o=t.map((function(n,o){return 1*k.math.toFixed(Math.round(t[o]*r+e[o]*(1-r)),3===o?2:0,-1)}));return n?o:"rgba(".concat(o.join(","),")")},setAlpha:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return!!(t=this.colorToRgb(t,1))&&(t[3]=e>1?1:e<0?0:e,"rgba(".concat(t.join(","),")"))},getAlpha:function(t){return!!(t=this.colorToRgb(t,1))&&t[3]},createRgbByRange:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#000",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",r=arguments.length>2?arguments[2]:void 0;if(t=this.colorToRgb(t,1),e=this.colorToRgb(e,1),!t||!e)return!1;var n=t.map((function(t,r){var n=e[r];1*r==3&&(t=Math.round(100*t),n=Math.round(100*n));var o=k.random(t>n?n:t,t>n?t:n);return 1*r==3&&(o=k.math.toFixed(o/100,2,-1)),o}));return r?n:"rgba(".concat(n.join(","),")")},rgbaToRgb:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",r=arguments.length>2?arguments[2]:void 0;return!!(t=this.colorToRgb(t,1))&&this.mix("rgb(".concat(t.slice(0,3).join(","),")"),e,t[3],r)},getBrightness:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff";if(!(t=this.rgbaToRgb(t,e,1)))return!1;var r=t,n=l()(r,3),o=n[0],i=n[1],a=n[2];return Math.round(.3*o+.6*i+.1*a)}},promise:{queue:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],o=new Map,i=function(){var i=s()(v.a.mark((function i(){return v.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!e){i.next=2;break}return i.abrupt("return");case 2:return i.next=4,new Promise((function(t){return t(1)}));case 4:e=i.sent,r.forEach(function(){var t=s()(v.a.mark((function t(e){var i;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.get(e)){t.next=2;break}return t.abrupt("return");case 2:return o.set(e,1),t.next=5,e.catch((function(t){return console.log(t),t}));case 5:i=t.sent,n.push(i),k.arr.delItem(r,e);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),a.end&&!r.length&&t(n),e=null;case 8:case"end":return i.stop()}}),i)})));return function(){return i.apply(this,arguments)}}();r=new Proxy(r,{set:function(t,e,r){return t[e]=r,i(),!0}});var a=new Proxy({arr:r,p:new Promise((function(e){return t=e})),end:0,res:n,map:o},{set:function(t,e,r){return t[e]=r,["end"].includes(e)&&i(),!0}});return i(),a},all:function(t){if(!t.length)return new Promise((function(t){return t([])}));var e,r=t.length,n=[],o=function(t){return function(o){n[t]=o,--r<=0&&e(n)}};return t.forEach((function(t,e){if("promise"!==k.isType(t))return o(e)(t);t.then(o(e)).catch((function(t){return console.error(t),o(e)(t)}))})),new Promise((function(t){return e=t}))}},math:{calcDecayLog:function(t,e,r){return Math.ceil(Math.log(r/t)/Math.log(e))},toFixed:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(t+="").match(/^[\+\-\d\.]+$/))return t;if(0===e)return t.replace(/(\.\d+)?$/,"");t.includes(".")||(t+=".");for(var n=t.indexOf("."),o=t.slice(0,n+1),i=0;i<e;i++){var a=t[n+1+i]||"0",c=1*t[n+1+i+1];i===e-1&&c&&(a=1*a+(r>0?c>0?1:0:r<0?0:c>=5?1:0)+""),o+=a}return o},multiply:function(t,e){var r=t<0&&e>0||t>0&&e<0?"-":"";t=(t+"").replace(/[\-\+]/g,"").split("").map((function(t){return 1*t})).reverse(),e=(e+"").replace(/[\-\+]/g,"").split("").map((function(t){return 1*t})).reverse();for(var n=[],o=0;o<t.length;o++)for(var i=0;i<e.length;i++){n[o+i]=n[o+i]||0;var a=n[o+i]+=t[o]*e[i];a/10>1&&(n[o+i]=a%10,n[o+i+1]=n[o+i+1]||0,n[o+i+1]+=~~(a/10))}return r+n.reverse().join("")},smallCalculate:function(t,e,r){var n,o=Math.max(((t+"").split(".")[1]||"").length,((e+"").split(".")[1]||"").length);switch(t=Math.round(t*Math.pow(10,o)),e=Math.round(e*Math.pow(10,o)),r){case"+":n=t+e;break;case"-":n=t-e;break;case"*":n=this.multiply?this.multiply(t,e):t*e;break;case"/":n=t/e;break;default:return}return"/"===r?n:k.math.toFixed(n/Math.pow(10,"*"===r?2*o:o),o,-1)},toNum:function(t){var e=(t+="").replace(/[^\d\-\+\.]/g,"").split(".");if(e.length>2)return 0;var r=1*(("-"===t[0]?"-":"")+e.map((function(t){return k.math.toInt(t,0)})).join("."));return 0===r?0:r},toInt:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t=(t+"").replace(/\D/g,""),e?1*t||0:t},average:function(t){return t.reduce((function(t,e){return t+e}),0)/t.length}},sign:{create:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s32",n={};return Object.keys(t).sort().forEach((function(e){return n[e]=t[e]})),k.md5[r](JSON.stringify(n)+e)}},utf8:{en:function(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e.push(n):n<2048?(e.push(192|n>>6),e.push(128|63&n)):n<65536?(e.push(224|n>>12),e.push(128|n>>6&63),e.push(128|63&n)):(n-=65536,e.push(240|n>>18),e.push(128|n>>12&63),e.push(128|n>>6&63),e.push(128|63&n))}return e},de:function(t){for(var e,r=[],n=0;n<t.length;)if((e=t[n])<128)r.push(String.fromCharCode(e)),n++;else if(e<224){var o=(31&e)<<6|63&t[n+1];r.push(String.fromCharCode(o)),n+=2}else if(e<240){var i=(15&e)<<12|(63&t[n+1])<<6|63&t[n+2];r.push(String.fromCharCode(i)),n+=3}else{var a=(7&e)<<18|(63&t[n+1])<<12|(63&t[n+2])<<6|63&t[n+3];r.push(String.fromCharCode(a+65536)),n+=4}return r.join("")}},sha:(O=function(){var t,e=Math;void 0!==o&&o.crypto&&(t=o.crypto),"undefined"!=typeof self&&self.crypto&&(t=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(t=globalThis.crypto),!t&&void 0!==o&&o.msCrypto&&(t=o.msCrypto);var r=function(){if(!t)throw new Error("Native crypto module could not be used to get secure random number.");if("function"==typeof t.getRandomValues)try{return t.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof t.randomBytes)try{return t.randomBytes(4).readInt32LE()}catch(e){}},n=Object.create,i={},a=i.lib={},c=a.Base={extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var a=r[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var c=0;c<o;c+=4)e[n+c>>>2]=r[c>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(r());return new u.init(e,t)}}),s=i.enc={},f=s.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new u.init(r,e/2)}},l=s.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new u.init(r,e)}},p=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},h=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,a=this.blockSize,c=i/(4*a),s=(c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0))*a,f=e.min(4*s,i);if(s){for(var l=0;l<s;l+=a)this._doProcessBlock(o,l);r=o.splice(0,s),n.sigBytes-=f}return new u.init(r,f)},clone:function(){var t=c.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),d=(a.Hasher=h.extend({cfg:c.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new d.HMAC.init(t,r).finalize(e)}}}),i.algo={});return i}(),function(){var t=Math,e=O,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,a=[],c=[];!function(){for(var e=function(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0},r=function(t){return 4294967296*(t-(0|t))|0},n=2,o=0;o<64;)e(n)&&(o<8&&(a[o]=r(t.pow(n,.5))),c[o]=r(t.pow(n,1/3)),o++),n++}();var u=[],s=i.SHA256=o.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],s=r[4],f=r[5],l=r[6],p=r[7],h=0;h<64;h++){if(h<16)u[h]=0|t[e+h];else{var d=u[h-15],v=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,m=u[h-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=v+u[h-7]+g+u[h-16]}var y=n&o^n&i^o&i,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),x=p+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&f^~s&l)+c[h]+u[h];p=l,l=f,f=s,s=a+x|0,a=i,i=o,o=n,n=x+(b+y)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+f|0,r[6]=r[6]+l|0,r[7]=r[7]+p|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=t.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.sha256=o._createHelper(s),e.hmacSha256=o._createHmacHelper(s)}(),_=(w=O).lib.Base,T=w.enc.Utf8,w.algo.HMAC=_.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=T.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),i=this._iKey=e.clone(),a=o.words,c=i.words,u=0;u<r;u++)a[u]^=1549556828,c[u]^=909522486;o.sigBytes=i.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}}),O.s256=function(t){return O.sha256(t+"").toString()},O.hs256=function(t,e){return O.hmacSha256(t+"",e+"").toString()},O),md5:{hex_md5:function(t,e){var r,n,o,i,a,c,u,s,f,l=function(t,e){return t<<e|t>>>32-e},p=function(t,e){var r,n,o,i,a;return o=2147483648&t,i=2147483648&e,a=(1073741823&t)+(1073741823&e),(r=1073741824&t)&(n=1073741824&e)?2147483648^a^o^i:r|n?1073741824&a?3221225472^a^o^i:1073741824^a^o^i:a^o^i},h=function(t,e,r,n,o,i,a){return t=p(t,p(p(function(t,e,r){return t&e|~t&r}(e,r,n),o),a)),p(l(t,i),e)},d=function(t,e,r,n,o,i,a){return t=p(t,p(p(function(t,e,r){return t&r|e&~r}(e,r,n),o),a)),p(l(t,i),e)},v=function(t,e,r,n,o,i,a){return t=p(t,p(p(function(t,e,r){return t^e^r}(e,r,n),o),a)),p(l(t,i),e)},m=function(t,e,r,n,o,i,a){return t=p(t,p(p(function(t,e,r){return e^(t|~r)}(e,r,n),o),a)),p(l(t,i),e)},g=function(t){var e,r="",n="";for(e=0;e<=3;e++)r+=(n="0"+(t>>>8*e&255).toString(16)).substr(n.length-2,2);return r},y=Array();for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e+=String.fromCharCode(n):n>127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e}(t),y=function(t){for(var e,r=t.length,n=r+8,o=16*((n-n%64)/64+1),i=Array(o-1),a=0,c=0;c<r;)a=c%4*8,i[e=(c-c%4)/4]=i[e]|t.charCodeAt(c)<<a,c++;return a=c%4*8,i[e=(c-c%4)/4]=i[e]|128<<a,i[o-2]=r<<3,i[o-1]=r>>>29,i}(t),c=1732584193,u=4023233417,s=2562383102,f=271733878,r=0;r<y.length;r+=16)n=c,o=u,i=s,a=f,c=h(c,u,s,f,y[r+0],7,3614090360),f=h(f,c,u,s,y[r+1],12,3905402710),s=h(s,f,c,u,y[r+2],17,606105819),u=h(u,s,f,c,y[r+3],22,3250441966),c=h(c,u,s,f,y[r+4],7,4118548399),f=h(f,c,u,s,y[r+5],12,1200080426),s=h(s,f,c,u,y[r+6],17,2821735955),u=h(u,s,f,c,y[r+7],22,4249261313),c=h(c,u,s,f,y[r+8],7,1770035416),f=h(f,c,u,s,y[r+9],12,2336552879),s=h(s,f,c,u,y[r+10],17,4294925233),u=h(u,s,f,c,y[r+11],22,2304563134),c=h(c,u,s,f,y[r+12],7,1804603682),f=h(f,c,u,s,y[r+13],12,4254626195),s=h(s,f,c,u,y[r+14],17,2792965006),c=d(c,u=h(u,s,f,c,y[r+15],22,1236535329),s,f,y[r+1],5,4129170786),f=d(f,c,u,s,y[r+6],9,3225465664),s=d(s,f,c,u,y[r+11],14,643717713),u=d(u,s,f,c,y[r+0],20,3921069994),c=d(c,u,s,f,y[r+5],5,3593408605),f=d(f,c,u,s,y[r+10],9,38016083),s=d(s,f,c,u,y[r+15],14,3634488961),u=d(u,s,f,c,y[r+4],20,3889429448),c=d(c,u,s,f,y[r+9],5,568446438),f=d(f,c,u,s,y[r+14],9,3275163606),s=d(s,f,c,u,y[r+3],14,4107603335),u=d(u,s,f,c,y[r+8],20,1163531501),c=d(c,u,s,f,y[r+13],5,2850285829),f=d(f,c,u,s,y[r+2],9,4243563512),s=d(s,f,c,u,y[r+7],14,1735328473),c=v(c,u=d(u,s,f,c,y[r+12],20,2368359562),s,f,y[r+5],4,4294588738),f=v(f,c,u,s,y[r+8],11,2272392833),s=v(s,f,c,u,y[r+11],16,1839030562),u=v(u,s,f,c,y[r+14],23,4259657740),c=v(c,u,s,f,y[r+1],4,2763975236),f=v(f,c,u,s,y[r+4],11,1272893353),s=v(s,f,c,u,y[r+7],16,4139469664),u=v(u,s,f,c,y[r+10],23,3200236656),c=v(c,u,s,f,y[r+13],4,681279174),f=v(f,c,u,s,y[r+0],11,3936430074),s=v(s,f,c,u,y[r+3],16,3572445317),u=v(u,s,f,c,y[r+6],23,76029189),c=v(c,u,s,f,y[r+9],4,3654602809),f=v(f,c,u,s,y[r+12],11,3873151461),s=v(s,f,c,u,y[r+15],16,530742520),c=m(c,u=v(u,s,f,c,y[r+2],23,3299628645),s,f,y[r+0],6,4096336452),f=m(f,c,u,s,y[r+7],10,1126891415),s=m(s,f,c,u,y[r+14],15,2878612391),u=m(u,s,f,c,y[r+5],21,4237533241),c=m(c,u,s,f,y[r+12],6,1700485571),f=m(f,c,u,s,y[r+3],10,2399980690),s=m(s,f,c,u,y[r+10],15,4293915773),u=m(u,s,f,c,y[r+1],21,2240044497),c=m(c,u,s,f,y[r+8],6,1873313359),f=m(f,c,u,s,y[r+15],10,4264355552),s=m(s,f,c,u,y[r+6],15,2734768916),u=m(u,s,f,c,y[r+13],21,1309151649),c=m(c,u,s,f,y[r+4],6,4149444226),f=m(f,c,u,s,y[r+11],10,3174756917),s=m(s,f,c,u,y[r+2],15,718787259),u=m(u,s,f,c,y[r+9],21,3951481745),c=p(c,n),u=p(u,o),s=p(s,i),f=p(f,a);return 32===e?(g(c)+g(u)+g(s)+g(f)).toLowerCase():(g(u)+g(s)).toLowerCase()},s16:function(t){return k.md5.hex_md5(t,16)},l16:function(t){return k.md5.hex_md5(t,16).toUpperCase()},s32:function(t){return k.md5.hex_md5(t,32)},l32:function(t){return k.md5.hex_md5(t,32).toUpperCase()}},baseEncrypt:{typeMap:{64:{group:3,newGroup:4,bit:6,map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"},32:{group:5,newGroup:8,bit:5,map:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"},16:{group:1,newGroup:2,bit:4,map:"0123456789ABCDEF"}},en:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=k.params.merge(t,{str:"",utf8:0,type:64,typeMap:k.baseEncrypt.typeMap}),r=e.str,n=e.type,o=e.typeMap,i=e.utf8,a=o[n],c=a.bit,u=a.group,s=a.newGroup,f=a.map;r+="",r=i?k.utf8.en(r):r;for(var l="",p=0;p<r.length;p+=u){var h,d="",v=m(r.slice(p,p+u));try{for(v.s();!(h=v.n()).done;){var g=h.value;d+=k.str.pad((i?g:g.charCodeAt(0)).toString(2),8)}}catch(x){v.e(x)}finally{v.f()}d=k.str.pad(d,d.length+c-d.length%c,"0",0);for(var y=0;y<s*c;y+=c){var b=d.slice(y,y+c);l+=b?f[parseInt(b,2)]:"="}}return l},de:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=k.params.merge(t,{str:"",utf8:0,type:64,typeMap:k.baseEncrypt.typeMap}),r=e.str,n=e.type,o=e.typeMap,i=e.utf8,a=o[n],c=a.bit,u=(a.group,a.newGroup),s=a.map;r+="",[16,32].includes(1*n)&&(r=r.toUpperCase());var f={};h()(s).forEach((function(t,e){return f[t]=e+""}));for(var l=[],p=0;p<r.length;p+=u){var d,v="",g=m(r.slice(p,p+u));try{for(g.s();!(d=g.n()).done;){var y=d.value;if("="!==y){var b=f[y];if(!b)return console.log("超出base".concat(n,"码表范围"));v+=k.str.pad((1*b).toString(2),c)}}}catch(_){g.e(_)}finally{g.f()}v=v.slice(0,8*~~(v.length/8));for(var x=0;x<v.length;x+=8){var w=1*parseInt(v.slice(x,x+8),2);l.push(i?w:String.fromCharCode(w))}}return i?k.utf8.de(l):l.join("")}},dom:{loop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return k.params.merge(t,{timer:null,lastTime:0,timeGap:1e3/60,hidePause:!0,idle:!1,always:!0,frame:0,run:function(){},getTimeFunc:function(){var e=t.idle&&o&&void 0!==o.idleCallback?["idleCallback","cancelIdleCallback"]:["requestAnimationFrame","cancelAnimationFrame"];return{bindEv:function(r){return o&&o[e[0]](r,t.idle?{timeout:t.idle}:void 0)},unEv:function(t){return o&&o[e[1]](t)}}},loop:function(){var e=t.lastTime,r=t.timeGap,n=t.getTimeFunc,o=t.loop,a=t.always,c=t.frame,u=t.hidePause,s=n(),f=s.bindEv;(0,s.unEv)(t.timer),t.timer=f(o);var l=Date.now();i&&(i.hidden||"hidden"===i.visibilityState)&&u||l-e<r||(t.lastTime=l,!a&&c>0&&t.frame--,(a||c>0)&&t.run())},bindEv:function(){return t.timer=t.getTimeFunc().bindEv(t.loop)},unEv:function(){return t.getTimeFunc().unEv(t.timer)}}),t},getElScale:function(t,e){var r=t.clientWidth,n=t.offsetWidth;return t.getBoundingClientRect().width/(e?n:r)},getMouseXYByBox:function(t){var e=t.e,r=t.tg,n=t.single,o=void 0===n||n,i=t.isBoundary,a=void 0===i?1:i,c=t.outArr,u=void 0===c?1:c,s=t.boxScale,f=void 0===s?1:s,l=r.getBoundingClientRect(),p=l.x,d=l.y,v=l.width,m=l.height,g=h()("touchend"===e.type.toLowerCase()?e.changedTouches:e.targetTouches||[e]).map((function(t){var e=t.clientX,r=t.clientY;return"number"!==k.isType(e)||"number"!==k.isType(r)?u?[]:{}:(e-=p,r-=d,a&&(e=e<0?0:e>v?v:e,r=r<0?0:r>m?m:r),e/=f,r/=f,u?[e,r]:{x:e,y:r})}));return o||o?g[0]:g},uiRenderEnd:(x=s()(v.a.mark((function t(){var e,r,n=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=n.length>0&&void 0!==n[0]?n[0]:2,r=0;case 2:if(!(r<e)){t.next=8;break}return t.next=5,new Promise((function(t){return o.requestAnimationFrame(t)}));case 5:r++,t.next=2;break;case 8:case"end":return t.stop()}}),t)}))),function(){return x.apply(this,arguments)}),getFps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;return new Promise((function(e){var r,n=0,i=function(){n++,r=o.requestAnimationFrame(i)};r=o.requestAnimationFrame(i),o.setTimeout((function(){o.cancelAnimationFrame(r),e(n)}),t)}))},mouseDrag:{data:[],isAnim:0,timer:null,anim:function(){var t=k.dom.mouseDrag,e=t.anim,r=t.data,n=t.timer;if(r.forEach((function(t){return t.animCb&&t.animCb(t)})),!r.length)return t.isAnim=0;o.cancelAnimationFrame(n),t.timer=o.requestAnimationFrame(e),t.isAnim=1},init:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=k.dom.mouseDrag,r=function(t){return"number"===k.isType(t)};return k.params.merge(t,{id:k.uuid(),gapTime:(new Date).getTime(),mobile:!0,isAnim:0,isStop:0,isMove:!1,isClick:!0,el:null,boxEl:i.querySelector("html"),isInertia:1,isRebound:0,iTimeGap:500,iFrameGap:1e3/60,iArr:[],iArrLen:10,iMin:.6,iMax:25,ix:0,iy:0,atten:.977,iXFrameConf:{sv:0,ev:0,v:0,step:0,lastStep:0,animFunc:"quarticIn"},iYFrameConf:{sv:0,ev:0,v:0,step:0,lastStep:0,animFunc:"quarticIn"},boxScale:1,xMin:0,xMax:null,yMin:0,yMax:null,x:0,y:0,sx:0,sy:0,mx:0,my:0,reverseX:0,reverseY:0,dirX:0,dirY:0,onDownCb:null,onUpCb:null,onRunCb:null,onMoveCb:function(e){var r=e.e;return r.cancelable&&t.el&&r.preventDefault()},boundary:function(t){var e=t.conf,n=t.outArr,o=void 0===n?1:n,i=e.xMin,a=e.xMax,c=e.yMin,u=e.yMax,s=e.x,f=e.y,l=r(i)&&s<i||r(a)&&s>a,p=r(c)&&f<c||r(u)&&f>u;return e.x=r(i)&&s<i?i:r(a)&&s>a?a:s,e.y=r(c)&&f<c?c:r(u)&&f>u?u:f,o?[l,p]:{reboundX:l,reboundY:p}},animCb:function(){var e=t.isInertia,r=t.isRebound,n=t.isMove,o=t.isStop,i=t.iXFrameConf,a=t.iYFrameConf,c=t.boundary;if(o||!e||n||i.step>=i.lastStep&&a.step>=a.lastStep)return t.isAnim=0;i.step<i.lastStep&&(k.anim.frame(i),t.x+=i.v),a.step<a.lastStep&&(k.anim.frame(a),t.y+=a.v);var u=c({conf:t}),s=l()(u,2),f=s[0],p=s[1];i.sv*=r&&f?-1:1,a.sv*=r&&p?-1:1,!r&&f&&(i.lastStep=0),!r&&p&&(a.lastStep=0),t.isAnim=i.step<i.lastStep||a.step<a.lastStep,t.onRunCb&&t.onRunCb({conf:t})},onDown:function(e){var r=t.isStop,n=t.boxScale,o=t.boxEl,i=t.iXFrameConf,a=t.iYFrameConf;if(!r&&o){var c=k.dom.getMouseXYByBox({e:e,tg:o,isBoundary:0,boxScale:n}),u=l()(c,2),s=u[0],f=u[1];i.lastStep=a.lastStep=0,Object.assign(t,{mx:s,my:f,sx:s,sy:f,ix:0,iy:0,isClick:!0,isMove:!0,iArr:[]}),t.onDownCb&&t.onDownCb({e:e,conf:t})}},onMove:function(e){var r=t.isInertia,n=t.boxScale,o=t.boxEl,i=t.mx,a=t.my,c=t.reverseX,u=t.reverseY,s=(t.iMax,t.iArr),f=t.iArrLen,p=t.boundary,h=t.isStop,d=t.isMove,v=t.sx,m=t.sy;if(!h&&d&&o){var g=k.dom.getMouseXYByBox({e:e,tg:o,isBoundary:0,boxScale:n}),y=l()(g,2),b=y[0],x=y[1],w=t.dirX=c?i-b:b-i,_=t.dirY=u?a-x:x-a;t.x+=w,t.y+=_,p({conf:t});var T=(new Date).getTime();r&&(s.unshift({x:t.x,y:t.y,t:T}),s.length>f&&(s.length=f)),t.gapTime=T,t.mx=b,t.my=x,(Math.abs(v-b)>7||Math.abs(m-x)>7)&&(t.isClick=!1),t.onMoveCb&&t.onMoveCb({e:e,conf:t})}},onUp:function(e){var r=t.isStop,n=t.isMove,o=t.isInertia,i=t.iXFrameConf,a=t.iYFrameConf,c=t.iMax,u=t.iMin,s=t.atten,f=t.iTimeGap,l=t.iFrameGap,p=t.gapTime,h=t.iArr;if(!r&&n){t.isMove=!1;var d=(new Date).getTime();if(o&&d-p<=100&&h.length){for(h.unshift({x:t.x,y:t.y,t:d});h[0]&&d-h.slice(-1)[0].t>f;)h.pop();var v=[h[0],h.slice(-1)[0]],m=v[0],g=v[1],y=m.t-g.t,b=(m.x-g.x)/y*l,x=(m.y-g.y)/y*l;t.ix=b=Math.abs(b)>c?c*Math.sign(b):b,t.iy=x=Math.abs(x)>c?c*Math.sign(x):x,Object.assign(i,{sv:b,step:-1,lastStep:k.math.calcDecayLog(b,s,u*Math.sign(b))}),Object.assign(a,{sv:x,step:-1,lastStep:k.math.calcDecayLog(x,s,u*Math.sign(x))})}t.onUpCb&&t.onUpCb({e:e,conf:t})}},bindEv:function(){t.unEv();var e=t.el;e&&(e.addEventListener("mousedown",t.onDown),t.mobile&&e.addEventListener("touchstart",t.onDown),t.mobile&&e.addEventListener("touchmove",t.onMove,{passive:!1})),i.addEventListener("mousemove",t.onMove),i.addEventListener("mouseup",t.onUp),!e&&t.mobile&&i.addEventListener("touchmove",t.onMove),t.mobile&&i.addEventListener("touchend",t.onUp)},unEv:function(){var e=t.el;e&&(e.removeEventListener("mousedown",t.onDown),e.removeEventListener("touchstart",t.onDown),e.removeEventListener("touchmove",t.onMove)),i.removeEventListener("mousemove",t.onMove),i.removeEventListener("mouseup",t.onUp),i.removeEventListener("touchmove",t.onMove),i.removeEventListener("touchend",t.onUp)}}),t.destroy&&t.destroy(),t.bindEv(),t.destroy=function(){t.unEv(),k.arr.delItem(e.data,t)},e.data.push(t),e.isAnim||e.anim(),t}},codeHighLight:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k.params.merge(t,{type:"js",str:"",showIdx:!1,clearTag:function(t,e){return t.replace(new RegExp("(start|end)__\\w+?__".concat(e),"g"),"")},compilerStr:function(e,r,n){for(var o,i,a,c,u=t.clearTag,s=0;o=e.slice(s).match(/"|'|`/);){for(o=(s+=o.index)+1;a=e.slice(o).match(new RegExp("[\\\\]*".concat(k.str.escape(e[s]))));)if(o+=a.index+a[0].length+1,a[0].length%2!=0){a=o-1;break}if(!a)break;c="start__str__".concat(r).concat(u(e.slice(s,a),r),"end__str__").concat(r),n&&(c=n(c)),i="".concat(e.slice(0,s)).concat(c),e=i+e.slice(a),s=i.length}return e},compilerNotice:function(e,r){var n=t.clearTag;return e=(e=e.replace(/\/\/[^\n]*\n{0,1}/g,(function(t){return"start__notice__".concat(r).concat(n(t,r),"end__notice__").concat(r)}))).replace(/\/\*[^]*?\*\//g,(function(t){return"start__notice__".concat(r).concat(n(t,r),"end__notice__").concat(r)}))},compilerKeyword:function(t,e,r,n){return t.replace(new RegExp("(\\s|^)(".concat(k.str.escape(r),")(\\s|$|\\.|;|,|\\)|\\})"),"g"),(function(t,r,o,i){return"".concat(r,"start__").concat(n,"__").concat(e).concat(o,"end__").concat(n,"__").concat(e).concat(i)}))},compilerFun:function(t,e){return t.replace(/([\w$]+)(\s*\()/g,(function(t,r,n){return"start__fun__".concat(e).concat(r,"end__fun__").concat(e).concat(n)}))},compilerIdx:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t.replace(/(^|\n)([^\n]*)/g,(function(t,n,o){return"".concat(n,"start__idx__").concat(e).concat(r++,"end__idx__").concat(e).concat(o)}))},replaceColor:function(t,e,r){return t=(t=t.replace(new RegExp("start__(\\w+?)__".concat(e),"g"),(function(t,e){return'<span class="n-codeHighLight-'.concat(e,'" style="color:').concat(r[e],'">')}))).replace(new RegExp("end__(\\w+?)__".concat(e),"g"),(function(){return"</span>"}))},replaceLine:function(t,e,r){for(var n,o,i=0;;){var a=t.slice(i).match(e);if(!a)break;n=(i+=a.index)+a[0].length,o=r(a),o="string"===k.isType(o)?{str:o}:o,a="".concat(t.slice(0,i)).concat(o.str),t=a+t.slice(n),i=a.length,o.formatOffset&&(i=o.formatOffset(i))}return t},defOpt:{js:{colors:{str:"rgb(230,219,106)",idx:"#777",notice:"#666",global:"rgb(102,217,235)",syb:"rgb(249,38,102)",num:"rgb(174,102,117)",other:"rgb(174,102,117)",fun:"rgb(146,224,45)"},globalStr:"console,self,navigator,localStorage,indexedDB,history,customElements,performance,screen,speechSynthesis,visualViewport,URL,sessionStorage,undefined,arguments,const,let,Math,function,window,String,Object,Array,Number,parseFloat,parseInt,Symbol,Date,Promise,class,constructor,require,JSON,this".split(","),sybStr:["=>","-","+","=","*","/","!","^","%","&","|","<",">","?","new","return","continue","switch","case","break","default","import","export","extends","for","while","do","as","await","async","from","in","static","public","yield","~","instanceof","use","if","else"],otherStr:"null,false,true,NaN".split(","),compiler:function(t,e,r){t+="";var n=k.uuid(),o=r.showIdx,i=r.compilerStr,a=(r.clearTag,r.compilerNotice),c=r.replaceColor,u=r.compilerFun,s=r.compilerKeyword,f=r.compilerIdx,p=e.colors,h=e.globalStr,d=e.sybStr,v=e.otherStr,m={};return t=i(t,n,(function(t){var e=k.uuid();return m[e]=t,e})),[["global",h],["syb",d],["other",v]].forEach((function(e){var r=l()(e,2),o=r[0];return r[1].forEach((function(e){return t=s(t,n,e,o)}))})),t=a(t=u(t=t.replace(/([,;!:\s=+*\/%^~\-?&|,[\]{}()])(\d+(?:\.\d+)?)([,;!:\s=+*\/%^~\-?&|,[\]{}()])/gi,(function(t,e,r,o){return"".concat(e,"start__num__").concat(n).concat(r,"end__num__").concat(n).concat(o)})),n),n),Object.entries(m).forEach((function(e){var r=l()(e,2),n=r[0],o=r[1];return t=t.replace(n,o)})),o&&(t=f(t,n)),t=c(t,n,p)}},css:{colors:{str:"rgb(230,219,106)",prop:"rgb(156,220,255)",val:"rgb(83,217,233)",idx:"#777",notice:"#666",select:"rgb(166,245,46)",syb:"rgb(249,38,102)",num:"rgb(174,102,117)",fun:"rgb(146,224,45)"},sybStr:["-","+","=","*","/","!","^","%","&","|","<",">","?","~","@","include","mixin","each","important","&","@import","@font-face","@include"],compiler:function(t,e,r){t+="";var n=k.uuid(),o=r.showIdx,i=r.compilerStr,a=(r.clearTag,r.compilerNotice),c=r.replaceColor,u=r.compilerFun,s=r.compilerKeyword,f=r.compilerIdx,p=e.colors,h=e.sybStr,d={};return t=i(t,n,(function(t){var e=k.uuid();return d[e]=t,e})),h.forEach((function(e){return t=s(t,n,e,"syb")})),t=a(t=u(t=(t=(t=(t=t.replace(/([:\s\-+*\/%\(])(\d+(?:\.\d+)?)([a-z%]*)?/gi,(function(t,e,r,o){return"".concat(e,"start__num__").concat(n).concat(r,"end__num__").concat(n)+(o?"start__syb__".concat(n).concat(o,"end__syb__").concat(n):"")}))).replace(/(\.|#)[a-z][\w\-]*/gi,(function(t){return"start__select__".concat(n).concat(t,"end__select__").concat(n)}))).replace(/(\s|\{|\;)([\w\-]+)(\s*\:)/g,(function(t,e,r,o){return"".concat(e,"start__prop__").concat(n).concat(r,"end__prop__").concat(n).concat(o)}))).replace(/(\:\s*)([\w\-]+)(\s*\;)/g,(function(t,e,r,o){return"".concat(e,"start__val__").concat(n).concat(r,"end__val__").concat(n).concat(o)})),n),n),Object.entries(d).forEach((function(e){var r=l()(e,2),n=r[0],o=r[1];return t=t.replace(n,o)})),o&&(t=f(t,n)),t=c(t,n,p)}},html:{colors:{tag:"rgb(249,38,102)",str:"rgb(230,219,106)",prop:"rgb(146,224,45)",idx:"#777",notice:"#666"},compiler:function(t,e,r){t+="";var n=k.uuid(),o=r.showIdx,i=(r.clearTag,r.compilerNotice,r.replaceColor),a=(r.compilerFun,r.compilerKeyword,r.compilerIdx),c=r.defOpt,u=c.js,s=c.css,f=e.colors,p=(e.sybStr,{});s&&(t=t.replace(/(<style[^]*?>)([^]*?)(<\/style>)/gi,(function(t,e,n,o){var i=k.uuid();return p[i]=s.compiler(n,s,b(b({},r),{},{showIdx:!1})),"".concat(e).concat(i).concat(o)}))),u&&(t=t.replace(/(<script[^]*?>)([^]*?)(<\/script>)/gi,(function(t,e,n,o){var i=k.uuid();return p[i]=u.compiler(n,u,b(b({},r),{},{showIdx:!1})),"".concat(e).concat(i).concat(o)})));var h=k.str.escapeHtmlTag;return t=(t=(t=t.replace(/(<\!?)([a-z][\w\-]*)([^]*?)>/gi,(function(t,e,r,o){return o=o.replace(/(\s+)(?:([^"'<>\/=]+)=((?:"[^"]*")|(?:'[^']*'))|([^\s"'<>\/=]+))/g,(function(t,e,r,o,i){return"".concat(e,"start__prop__").concat(n).concat(r||i,"end__prop__").concat(n)+(o?"=start__str__".concat(n).concat(o,"end__str__").concat(n):"")})),"".concat(h(e),"start__tag__").concat(n).concat(r,"end__tag__").concat(n).concat(o,">")}))).replace(/(<\/)([a-z][\w\-]*)>/gi,(function(t,e,r){return"".concat(h(e),"start__tag__").concat(n).concat(r,"end__tag__").concat(n,">")}))).replace(/<\!--[^]*?-->/g,(function(t){return"start__notice__".concat(n).concat(h(t),"end__notice__").concat(n)})),Object.entries(p).forEach((function(e){var r=l()(e,2),n=r[0],o=r[1];return t=t.replace(n,o)})),o&&(t=a(t,n)),t=i(t,n,f)}},json:{colors:{str:"rgb(230,219,106)",prop:"rgb(156,220,255)",idx:"#777",notice:"#666",num:"rgb(174,102,117)",other:"rgb(174,102,117)"},otherStr:"null,false,true,NaN,undefined".split(","),compiler:function(t,e,r){t+="";var n=k.uuid(),o=r.showIdx,i=r.compilerStr,a=(r.clearTag,r.compilerNotice),c=r.replaceColor,u=(r.compilerFun,r.compilerKeyword),s=r.compilerIdx,f=(r.replaceLine,e.colors),p=e.otherStr,h={};return t=(t=(t=(t=t.replace(/\/\/[^\n]*\n{0,1}/g,(function(t){var e=k.uuid()+",";return h[e]=a(t,n),e}))).replace(/\/\*[^]*?\*\//g,(function(t){var e=k.uuid()+",";return h[e]=a(t,n),e}))).replace(/(\"[^"]+\")(\s*\:\s*)/gi,(function(t,e,r){var o=k.uuid();return h[o]="start__prop__".concat(n).concat(e,"end__prop__").concat(n),"".concat(o).concat(r)}))).replace(/([,;!:\s=+*\/%^~\-?&|,[\]{}()])(\d+(?:\.\d+)?)([,;!:\s=+*\/%^~\-?&|,[\]{}()])/gi,(function(t,e,r,o){return"".concat(e,"start__num__").concat(n).concat(r,"end__num__").concat(n).concat(o)})),p.forEach((function(e){return t=u(t,n,e,"other")})),t=i(t,n,(function(t){var e=k.uuid();return Object.entries(h).forEach((function(e){var r=l()(e,2),n=r[0],o=r[1];return t=t.replace(n,o)})),h[e]=t,e})),Object.entries(h).forEach((function(e){var r=l()(e,2),n=r[0],o=r[1];return t=t.replace(n,o)})),o&&(t=s(t,n)),t=c(t,n,f)}}}});var e=t.defOpt,r=t.str,n=e[t.type];return n?n.compiler(r,n,t):r},markdownToHtml:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=k.params.merge(t,{str:"",formatHtml:null,clearTag:function(t,e){return t.replace(new RegExp("(start|end)__\\w+?__".concat(e),"g"),"")},replaceLine:function(t,e,r){for(var n,o,i=0;;){var a=t.slice(i).match(e);if(!a)break;n=(i+=a.index)+a[0].length,o=r(a),o="string"===k.isType(o)?{str:o}:o,a="".concat(t.slice(0,i)).concat(o.str),t=a+t.slice(n),i=a.length,o.formatOffset&&(i=o.formatOffset(i))}return t},compilerInlineCode:function(t){return t.replace(/`([^`]+?)`/gi,(function(t,e){return'<span class="n-markdown-inlineCode">'.concat(e,"</span>")}))},compilerImg:function(t){return t.replace(/\!\[([^\]]*)\]\(([^\)]*)\)/gi,(function(t,e,r){return'<img class="n-markdown-img" src="'.concat(r,'" alt="').concat(e,'" />')}))},compilerUrl:function(t){return t.replace(/([^!]*)\[([^\]]*)\]\(([^\)]*)\)/gi,(function(t,e,r,n){return"".concat(e,'<a class="n-markdown-a" href="').concat(n,'" target="_blank" >').concat(r,"</a>")}))},compilerDelLine:function(t){return t.replace(/~~([^~]+?)~~/gi,(function(t,e){return'<span class="n-markdown-strikethrough">'.concat(e,"</span>")}))},compilerIB:function(t){return t=(t=t.replace(/\*\*\*([^\*]+?)\*\*\*/gi,(function(t,e){return'<span class="n-markdown-bold n-markdown-italic">'.concat(e,"</span>")}))).replace(/\_\_\_([^_]+?)\_\_\_/gi,(function(t,e){return'<span class="n-markdown-bold n-markdown-italic">'.concat(e,"</span>")}))},compilerBold:function(t){return t=(t=t.replace(/\*\*([^\*]+?)\*\*/gi,(function(t,e){return'<span class="n-markdown-bold">'.concat(e,"</span>")}))).replace(/\_\_([^_]+?)\_\_/gi,(function(t,e){return'<span class="n-markdown-bold">'.concat(e,"</span>")}))},compilerItalic:function(t){return t=(t=t.replace(/\*([^\*]+?)\*/gi,(function(t,e){return'<span class="n-markdown-italic">'.concat(e,"</span>")}))).replace(/\_([^_]+?)\_/gi,(function(t,e){return'<span class="n-markdown-italic">'.concat(e,"</span>")}))}}),r=e.str,n=e.formatHtml,o=e.replaceLine,i=(e.clearTag,e.compilerInlineCode),a=e.compilerImg,c=e.compilerUrl,u=e.compilerDelLine,s=e.compilerIB,f=e.compilerBold,p=e.compilerItalic;r+="";var h=function(t){return t=i(t),t=a(t),t=c(t),t=u(t),t=s(t),t=f(t),t=p(t),t=p(t)},d=function(){return"<".concat(k.uuid().replace(/\_/g,"$"),">")};r=k.str.escapeHtmlTag(r);var v={};r=r.replace(/```([\w-]+?)?\n([^]+?)(?:\n\s*```|$)/gi,(function(t,e,r){var n=d();return v[n]='<div class="n-markdown-code"><code class="n-markdown-code-'.concat(e||"empty",'">').concat(r,"</code></div>"),"\n".concat(n,"\n")}));for(var m=function(){var t=[],e=d(),n=r.match(/(^|\n)\|([^]+?)\|\s*(\n|$)/);if(!n)return 0;if(n=n.index+n[1].length,r=r.slice(0,n)+o(r.slice(n),/^\|([^]+?)\|\s*(\n|$)/,(function(r){var n=l()(r,3),o=(n[0],n[1]),i=n[2];return t.push(o.split("|")),1===t.length?"".concat(e).concat(i):""})),!t.length)return 0;var i=t.findIndex((function(t){return t.every((function(t){return t.match(/\s*(?:(\:\-{2,}\:)|(\:\-{2,})|(\-{2,}\:)|(\-{2,}))\s*/)}))})),a=~i&&t.splice(0,i),c=~i&&t.splice(0,1)[0];c&&(c=c.map((function(t){return t.match(/\:\-{2,}\:/)?"center":t.match(/\-{2,}\:/)?"right":"left"})));var u='<div class="n-markdown-tb"><table>';a&&(u+='<thead class="n-markdown-tb-thead">'.concat(a.map((function(t){return'<tr class="n-markdown-tb-tr">'.concat(t.map((function(t,e){return'<th class="n-markdown-tb-th n-markdown-tb-'.concat(c[e]||"left",' ">').concat(h(t),"</th>")})).join(""),"</tr>")})).join(""),"</thead>")),u+='<tbody class="n-markdown-tb-tbody">'.concat(t.map((function(t){return'<tr class="n-markdown-tb-tr">'.concat(t.map((function(t,e){return'<td class="n-markdown-tb-td n-markdown-tb-'.concat(c[e]||"left",' ">').concat(h(t),"</td>")})).join(""),"</tr>")})).join(""),"</tbody></table></div>"),v[e]=u};0!==m(););r=h(r),r=o(r,/(\n|^)[\-\+\*]\s+([^\n]+?)(\n|$)/i,(function(t){var e=l()(t,4),r=(e[0],e[1]),n=e[2],o=e[3];return"".concat(r,'<div class="n-markdown-li"><i class="n-markdown-li-dot"></i>').concat(n,"</div>").concat(o)})),r=o(r,/(\n|^)([\d])\.\s+([^\n]+?)(\n|$)/i,(function(t){var e=l()(t,5),r=(e[0],e[1]),n=e[2],o=e[3],i=e[4];return"".concat(r,'<div class="n-markdown-li"><i class="n-markdown-li-num">').concat(n,".</i>").concat(o,"</div>").concat(i)})),r=o(r,/(\n|^)[\-]{3,}(\n|$)/i,(function(t){var e=l()(t,3),r=(e[0],e[1]),n=e[2];return"".concat(r,'<div class="n-markdown-hr"></div>').concat(n)})),r=o(r,/(\n|^)([#]+)\s*([^\n]+?)(\n|$)/i,(function(t){var e=l()(t,5),r=(e[0],e[1]),n=e[2],o=e[3],i=e[4],a=n.length;return a="h"+(a=a>6?6:a),"".concat(r,"<").concat(a,' class="n-markdown-').concat(a,'">').concat(o,"</").concat(a,">").concat(i)})),r=o(r,/(\n|^)([^<][^\n]+?[^>])(\n|$)/i,(function(t){var e=l()(t,4),r=(e[0],e[1]),n=e[2],o=e[3];return"".concat(r,'<p class="n-markdown-p">').concat(n,"</p>").concat(o)})),Object.entries(v).forEach((function(t){var e=l()(t,2),n=e[0],o=e[1];return r=r.replace(n,o)}));var g='<div class="n-markdown">'.concat(r,"</div>");return g=n?n(g):g},getStrLines:function(t){var e=t.el,r=t.text,n=t.splitWord,o=void 0===n?1:n,a=e.innerText;if(!(r=r||a).length)return[];for(var c,u,s,f,l=i.createElement("span"),p=[],h=[],d=0;o&&(c=r.slice(d).match(/\b\w{2,}\b/));)d+=c.index,p.push({s:d,e:d+=c[0].length,str:c[0]});d=0;for(var v=function(t){f=l.innerText=r.slice(d,t),e.innerText=r.slice(0,d),e.appendChild(l);var n=e.getBoundingClientRect().height;if(u||(u=n),u>=n)return m=t,1;t--,s=t;var o=p.find((function(e){return e.s<=t&&e.e>t}));o&&(s=o.s,t=o.e-1),f=l.innerText=r.slice(d,s);var i=l.getBoundingClientRect(),a=i.width,c=i.height;h.push({w:a,h:c,e:s,s:d,text:f}),t++,u=n,d=s,m=t},m=1;m<=r.length;m++)v(m);s=r.length,f=l.innerText=r.slice(d,s);var g=l.getBoundingClientRect(),y=g.width,b=g.height;return h.push({w:y,h:b,e:s,s:d,text:f}),e.innerText=a,h},strLineLimit:function(t){var e=t.el,r=t.str,n=void 0===r?"":r,o=t.syb,i=void 0===o?"...":o,a=t.offset,c=void 0===a?"":a,u=t.gap,s=void 0===u?1:u,f=t.lineMax,l=void 0===f?1:f;e.style.visibility="hidden",e.innerHTML=new Array(1*l).fill("A").join("<br/>");var p=e.offsetHeight,h=0;for(s=(s=~~s)<1?1:s;h<n.length;){var d=h+s>n.length?n.length-h:s;if(h+=d,e.innerText=n.slice(0,h)+i+c,!(e.offsetHeight<=p)){h-=d;break}}e.innerHTML=n.slice(0,h)+(h<n.length?i:""),e.style.visibility=""},isHtmlTag:function(t,e){if("string"!==k.isType(t))return!1;var r={svg:1,animate:1,circle:1,clippath:1,cursor:1,defs:1,desc:1,ellipse:1,filter:1,"font-face":1,foreignobject:1,g:1,glyph:1,image:1,line:1,marker:1,mask:1,"missing-glyph":1,path:1,pattern:1,polygon:1,polyline:1,rect:1,switch:1,symbol:1,text:1,textpath:1,tspan:1,use:1,view:1};return e?r[t]:r[t]||{html:1,body:1,base:1,head:1,link:1,meta:1,style:1,title:1,address:1,article:1,aside:1,footer:1,header:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hgroup:1,nav:1,section:1,div:1,dd:1,dl:1,dt:1,figcaption:1,figure:1,picture:1,hr:1,img:1,li:1,main:1,ol:1,p:1,pre:1,ul:1,a:1,b:1,abbr:1,bdi:1,bdo:1,br:1,cite:1,code:1,data:1,dfn:1,em:1,i:1,kbd:1,mark:1,q:1,rp:1,rt:1,rtc:1,ruby:1,s:1,samp:1,small:1,span:1,strong:1,sub:1,sup:1,time:1,u:1,var:1,wbr:1,area:1,audio:1,map:1,track:1,video:1,embed:1,object:1,param:1,source:1,canvas:1,script:1,noscript:1,del:1,ins:1,caption:1,col:1,colgroup:1,table:1,thead:1,tbody:1,td:1,th:1,tr:1,button:1,datalist:1,fieldset:1,form:1,input:1,label:1,legend:1,meter:1,optgroup:1,option:1,output:1,progress:1,select:1,textarea:1,details:1,dialog:1,menu:1,menuitem:1,summary:1,content:1,element:1,shadow:1,template:1,blockquote:1,iframe:1,tfoot:1}[t]},waterfallFlow:function(t){var e=k.params.merge(t,{res:[],boxLen:null,ws:null,hs:null,gapX:null,gapY:null,dirMap:null,dir:"vert",gap:0,list:[],colSizes:[]}),r=e.gap,n=e.list,o=e.colSizes,i=e.dir,a=e.hs,c=e.ws,u=e.res,s=t.dirMap={hori:{size:"w",offset:"x",colSize:"h",colOffset:"y",gap:"gapX",colGap:"gapY"},vert:{size:"h",offset:"y",colSize:"w",colOffset:"x",gap:"gapY",colGap:"gapX"}}[i];t.gapX="array"===k.isType(r)?r[0]:r,t.gapY="array"===k.isType(r)?r[1]:r,t.hs=a=a||o.map((function(t,e){return{v:0,idx:e}}));var f=0;t.ws=c=c||o.reduce((function(e,r){return e.push(f),f+=t[s.colGap]+r,e}),[]),o.forEach((function(t,e){return u[e]=u[e]||[]}));var l=0;return n.forEach((function(e){k.params.merge(e,{x:0,y:0,w:0,h:0});var r=e[s.size],n=a.reduce((function(t,e){return e.v<t.v?e:t}),{v:999999999});e[s.offset]=n.v,e[s.colSize]=o[n.idx],e[s.colOffset]=c[n.idx],n.v+=r+t[s.gap],u[n.idx].push(e),n.v>l&&(l=n.v)})),t.boxLen=l-t[s.gap],u},waterfallFlowHori:function(t){var e=k.params.merge(t,{res:[],boxLen:null,lineItems:null,hs:null,gapX:null,gapY:null,dirMap:null,dir:"vert",gap:0,list:[],vagueSize:200,boxSize:0}),r=e.gap,n=e.list,o=e.dir,i=e.vagueSize,a=e.boxSize,c=e.lineItems,u=e.res,s=t.dirMap={hori:{size:"w",offset:"x",colSize:"h",colOffset:"y",gap:"gapX",colGap:"gapY"},vert:{size:"h",offset:"y",colSize:"w",colOffset:"x",gap:"gapY",colGap:"gapX"}}[o];t.gapX="array"===k.isType(r)?r[0]:r,t.gapY="array"===k.isType(r)?r[1]:r,c=c||[];var f=0,l=0,p=0;u.length&&(l=u.reduce((function(e,r){return e+r[0][s.size]+t[s.gap]}),0)),c.length&&(f=c.reduce((function(e,r){return e+r[s.colSize]+t[s.colGap]}),0));for(var h=function(e){var r=n[e];k.params.merge(r,{ratio:0,x:0,y:0,w:0,h:0,ow:0,oh:0});var o=r.ratio=r[s.colSize]/r[s.size];if(r.ow=r.w,r.oh=r.h,r[s.size]=i,r[s.colSize]=o*i,c.push(r),(f+=r[s.colSize]+t[s.colGap])<a)return e===n.length-1&&(u.push(c),p=0,c.forEach((function(e){e[s.offset]=l,e[s.colOffset]=p,p+=t[s.colGap]+e[s.colSize]})),l+=i+t[s.gap]),d=e,1;f-=t[s.colGap],e<n.length-1&&c.length>1&&f-a>.5*r[s.colSize]&&(e--,c.pop(),f-=r[s.colSize]+t[s.colGap]);var h=(c.length-1)*t[s.colGap],v=(a-h)/(f-h),m=i*v;p=0,c.forEach((function(e){e[s.size]=m,e[s.colSize]*=v,e[s.offset]=l,e[s.colOffset]=p,p+=t[s.colGap]+e[s.colSize]})),u.push(c),c=[],l+=m+t[s.gap],f=0,d=e},d=0;d<n.length;d++)h(d);return t.lineItems=c,t.boxLen=l-t[s.gap],u},filterXSS:function(t,e,r){e=e||Object.fromEntries(["style","src","class","href","target","id","controls","autoplay","loop","muted","type","width","height"].map((function(t){return[t,1]}))),r=r||Object.fromEntries(["p","a","div","body","html","head","style","br","h1","h2","h3","h4","h5","h6","aside","article","code","blockquote","b","col","colgroup","ul","li","dl","dt","dd","em","fieldset","i","hr","img","video","label","ins","legend","ol","q","span","strong","sub","sup","table","tbody","td","tr","th","tfoot","thead","section","nav","footer","header","main","pre","figcaption","figure","iframe","audio","canvas","svg","map","area","form","input","button","textarea","select","option","form","legend","#text","font"].map((function(t){return[t,1]})));var n=i.createElement("div");n.innerHTML=t;for(var o=[n],a=function(){var t=o.shift();if(t.nodeName&&!r[t.nodeName.toLowerCase()])return t.remove(),1;t.children&&o.push.apply(o,h()(t.children)),h()(t.attributes).forEach((function(r){var n;r.value+="";try{n=decodeURIComponent(r.value)}catch(o){}e[r.name]&&![r.value,n].some((function(t){return t&&t.match(/^\s?javascript\:/i)}))||t.removeAttributeNode(r)}))};o.length;)a();return n.innerHTML.replace(/<(\/?script)>/gi,"<$1>")},testCssParam:function(t,e,r){var n=i.createElement("div");n.style[t]=e;var o=n.style[t]===e;if(!r)return o;for(var a=0,c=["webkit","khtml","moz","ms","o"];a<c.length;a++){var u=c[a];if(n.style["-".concat(u,"-").concat(t)]=e,n.style["-".concat(u,"-").concat(t)]===e){o=1;break}}return o},rem:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.w,r=void 0===e?750:e,n=t.max,a=o.innerWidth;i.querySelector("html").style.fontSize=(n&&a>n&&n||a)/r*100+"px"},remToPx:function(t){return k.math.toNum(o.getComputedStyle(i.querySelector("html")).fontSize+"")*k.math.toNum(t)},viewport:function(t){var e=t.w,r=void 0===e?750:e,n=t.min,a=t.max,c=t.init,u=t.user,s=i.querySelector('meta[name="viewport"]');s||((s=i.createElement("meta")).name="viewport",i.head.appendChild(s));var f=o.screen.width;c=k.isEmpty(c)?k.math.toFixed(f/r):c,n=k.isEmpty(n)?c:n,a=(a=k.isEmpty(a)?c:a)<n?n:a,s.content="width=".concat(r,", initial-scale=").concat(c,", maximum-scale=").concat(a,", minimum-scale=").concat(n,", user-scalable=").concat(u?"yes":"no")},copyText:function(t){var e=i.createElement("textarea");e.value=t,e.style.left="-9999px",e.style.position="fixed",i.body.appendChild(e),e.select(),i.execCommand("copy"),e.remove()},writeClip:function(t){return t="blob"===k.isType(t)?t:new Blob([t],{type:"text/plain"}),o.navigator.clipboard.write([new ClipboardItem(c()({},t.type,t))])},compilerCss:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!==k.isType(t))return e;var r=t.indexOf("{")+1;r&&(t=t.slice(r)),~(r=t.lastIndexOf("}"))&&(t=t.slice(0,r));var n=/^;?\s*([a-zA-Z-_0-9]+)\s*\:/,o=t.match(n);if(!o)return e;t=t.replace(o[0],""),o=o[1];var i="",a=t.indexOf(";");if(~a)for(;a>=0&&(i+=t.slice(0,a),!(t=t.slice(a)).match(n));)a=t.indexOf(";",a+1);else i=t;return e[o]=i.trim(),k.dom.compilerCss(t,e)},splitCss:function(t){for(var e,r,n,o,i={},a=[],c=[];n=1,e=t.indexOf("{")+1,r=t.indexOf("}")+1,e&&r&&!(e>=r);){for(;n;)if(o=t.slice(e,r).indexOf("{")+1)n++,e+=o;else{if(! --n)break;if(!(o=t.slice(r).indexOf("}")+1)){r=0;break}r+=o}if(!r)break;var u=t.slice(0,r).trim();t=t.slice(r),a.push(u),i[u]=1,k.arr.delItem(c,u),c.push(u)}return{map:i,set:c,arr:a}},compilerHtml:function(t,e){var r=t.html,n=t.compilerCss,o=void 0===n||n,i=t.compilerClass,a=void 0===i||i,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],u=/^<([a-zA-Z_0-9][\w\-]*)/,s=/^\s+(?:([^\s"'<>\/=]+)\s*=\s*((?:"[^"]*")|(?:'[^']*'))|([^\s"'<>\/=]+))/,f=/^<\/[a-zA-Z_0-9][\w\-]*>/,l=/^<\!--[\s\S]*?-->/,p=/^<\!DOCTYPE/i;if(e||(c=[e={children:[]}]),!r||!r.length)return e.children;var h=r.match(p);if(h){r=r.replace(h[0],"");var d={type:"doctype",content:""};c.slice(-1)[0].children.push(d);var v=r.match(/([^>]*)>/);return v&&(r=r.replace(v[0],""),d.content=(v[1]||"").trim()),k.dom.compilerHtml({html:r,compilerCss:o,compilerClass:a},e,c)}var m=r.match(u);if(!m){var g=r.match(f),y=r.match(l);if(g||y){g&&c.pop();var b=g?g[0]:y[0];return r=r.replace(b,""),k.dom.compilerHtml({html:r,compilerCss:o,compilerClass:a},e,c)}for(var x="",w=r.indexOf("<");w>=0&&(x+=r.slice(0,w),!((r=r.slice(w)).match(f)||r.match(u)||r.match(l)||r.match(p)));)w=r.indexOf("<",w+1);if(-1===w&&(x=r,r=""),x){var _={type:"text",text:x};c.slice(-1)[0].children.push(_)}return k.dom.compilerHtml({html:r,compilerCss:o,compilerClass:a},e,c)}var T,O={name:m[1],type:"node",attrs:{},children:[]};for(r=r.replace(m[0],""),c.slice(-1)[0].children.push(O);T=r.match(s);){var S=T[1]||T[3],E=!T[2]||T[2].replace(/^("|')/,"").replace(/("|')$/,"");O.attrs[S]=E,r=r.replace(T[0],""),"class"===S&&a&&(O.attrs[S]=(!0===E?"":E).trim().split(/\s+/)),"style"===S&&o&&(O.attrs[S]=!0===E?E:k.dom.compilerCss(E))}return r.match(/^\s*\/\s*>/)||["meta","input","img","br","link","hr","area","base","basefont","param","col","frame","embed"].includes(m[1])||c.push(O),r=r.replace(/^\s*\/?\s*>/,""),k.dom.compilerHtml({html:r,compilerCss:o,compilerClass:a},e,c)},compilerPseudoJson:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=k.params.merge(t,c()(c()({str:"",formatVal:null,isChild:!1,assignSyb:"=",splitSyb:",",objSyb:["{","}"],arrSyb:["[","]"],strSyb:['"','"'],isStrict:!0,formatKey:function(t){var e=t.k;return e=e.trim(),x&&(e=e.replace(new RegExp("^".concat(R)),"").replace(new RegExp("".concat(P,"$")),"")),e}},"formatVal",(function(t){var e=t.v;if("string"!==k.isType(e))return e;try{e=JSON.parse(e.trim())}catch(r){}return e})),"compilerVal",(function(e){var r,n,o,a,c=e.s,s=e.str,f=(e.endSyb2,e.endSyb),l=s.slice(c),p=function(){return(r=s.slice(c).match(new RegExp("^\\s*".concat(M))))&&(c+=r[0].length),{v:n=i({v:n,conf:t,str:s,s:c}),s:c}};if(x&&(r=l.match(new RegExp("^\\s*".concat(R)))))for(o=c+=r[0].length;;){if(!~(o=s.indexOf(y,o)))throw"字符串格式错误";if("\\"!==s[o-1])return n=s.slice(c,o).replace("\\".concat(y),y),c=o+1,p();o++}if(r=l.match(new RegExp("^\\s*(".concat(I,"|").concat(j,")"))))return r=k.dom.compilerPseudoJson(b(b({},t),{},{str:l,isChild:1})),n=r.v,c+=r.s,p();if(o=l.indexOf(u),a=l.indexOf(f),!~o&&!~a)throw"值格式错误";return o=(~o?o:1/0)<(~a?a:1/0)?o:a,n=s.slice(c,c+o),c+=o,p()}))),r=e.str,n=e.isChild,o=e.formatKey,i=e.formatVal,a=e.assignSyb,u=e.splitSyb,s=l()(e.objSyb,2),f=s[0],p=s[1],h=l()(e.arrSyb,2),d=h[0],v=h[1],m=l()(e.strSyb,2),g=m[0],y=m[1],x=e.isStrict,w=e.compilerVal;r+="";var _,T,O,S,E=k.str.escape(a),M=k.str.escape(u),j=k.str.escape(f),A=k.str.escape(p),I=k.str.escape(d),C=k.str.escape(v),R=k.str.escape(g),P=k.str.escape(y),D=0;if(T=r.match(new RegExp("^\\s*".concat(j))))for(S={},D=T[0].length;;){if(T=(_=r.slice(D)).match(new RegExp("^\\s*".concat(A).concat(M,"?")))){D+=T[0].length;break}if(!(T=_.match(new RegExp("^([^".concat(E,"]+)").concat(E)))))throw console.error("解析失败",D,T,r.slice(D));T=w({k:O=o({k:T[1],str:r,conf:t,s:D}),s:D+=T[0].length,str:r,conf:t,endSyb:p,endSyb2:A}),S[O]=T.v,D=T.s}else if(T=r.match(new RegExp("^\\s*".concat(I))))for(S=[],D=T[0].length,O=0;;){if(T=r.slice(D).match(new RegExp("^\\s*".concat(C).concat(M,"?")))){D+=T[0].length;break}T=w({k:O,s:D,str:r,conf:t,endSyb:v,endSyb2:C}),S[O]=T.v,D=T.s,O++}return n?{s:D,v:S}:S},out:function(){var t=arguments;return s()(v.a.mark((function e(){var r,n,a,c,u,f,p,d,g,y,b,x,w,_,T,O,S,E,M;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.length>0&&void 0!==t[0]?t[0]:{},n=k.params.merge(r,{w:0,h:0,scale:2,timeout:5e3,outBlob:"url",exact:!0,el:null,outType:"png",cssKeys:h()(o.getComputedStyle(i.body)),attrKeys:["style","src","class","id","type","width","height","placeholder","value","colspan","rowspan","align","border","disabled","readonly","size","required",""],filterTag:["body","html","head","meta","link","title","script"],mediaTag:["img","video"],formatHtml:null,toStr:function(t){return(t+"").replace(/"/g,"'")},toHtml:function(){var t=s()(v.a.mark((function t(e){var r,n,o,a,c,u,s,f;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.el,n=e.conf,r){t.next=3;break}return t.abrupt("return");case 3:if(3!==r.nodeType){t.next=5;break}return t.abrupt("return",r.data);case 5:if(1===r.nodeType){t.next=7;break}return t.abrupt("return");case 7:return o=r.tagName.toLowerCase(),o=n.filterTag.includes(o)?"div":o,t.next=11,n.getAttr({conf:n,el:r});case 11:return a=t.sent,"video"===o&&(c=n.scale,u=i.createElement("canvas"),s=u.getContext("2d"),u.width=r.videoWidth*c,u.height=r.videoHeight*c,s.save(),s.scale(c,c),s.drawImage(r,0,0),s.restore(),o="img",a.src=u.toDataURL("image/png"),u.remove()),"canvas"===o&&(o="img",a.src=r.toDataURL("image/png")),t.next=16,k.promise.all(h()(r.childNodes).map((function(t){return n.toHtml({el:t,conf:n})})));case 16:return f=(f=t.sent).filter((function(t){return t})).join(""),t.abrupt("return","<".concat(o," ").concat(Object.entries(a).map((function(t){var e=l()(t,2),r=e[0],n=e[1];return"".concat(r,'="').concat(n,'"')})).join(" "),">").concat(f,"</").concat(o,">"));case 19:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),toDataUrl:function(){var t=s()(v.a.mark((function t(e){var r,n,o,i,a,c;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.conf,n=e.src,!(n+="").match(/^data\:/i)&&!n.match(/^blob/i)){t.next=4;break}return t.abrupt("return",n);case 4:return o={url:n,responseType:"arraybuffer",timeout:r.timeout},t.next=7,k.request(o).catch((function(t){return console.log(t),!1}));case 7:if(i=t.sent){t.next=10;break}return t.abrupt("return",n);case 10:return a=o.resHeads,c=(c=(c=a["content-type"])&&c.split(";")[0])||"application/octet-stream",t.abrupt("return","data:".concat(c,";base64,").concat(k.file.buffToBase64(i)));case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),getStyle:function(){var t=s()(v.a.mark((function t(e){var r,n,i,a,c,u,s,f,l,p,h,d,g;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.el,n=e.conf,i=n.cssKeys,a=n.attrKeys,c=n.toStr,u="",a.includes("style")){t.next=5;break}return t.abrupt("return",u);case 5:s=o.getComputedStyle(r),f=m(i),t.prev=7,f.s();case 9:if((l=f.n()).done){t.next=24;break}if(p=l.value,s[p]){t.next=13;break}return t.abrupt("continue",22);case 13:if(h=c(s[p]),!["border-image","background-image","list-style-image"].includes(p)||!h){t.next=21;break}if(!(d=h.match(/\s?url\(([^\)]+)\)/))||!d[1]){t.next=21;break}return t.next=19,n.toDataUrl({src:d[1].replace(/["']/g,""),conf:n,el:r});case 19:(g=t.sent)&&(h="url(".concat(g,")"));case 21:u+="".concat(p,":").concat(h,"; ");case 22:t.next=9;break;case 24:t.next=29;break;case 26:t.prev=26,t.t0=t.catch(7),f.e(t.t0);case 29:return t.prev=29,f.f(),t.finish(29);case 32:return t.abrupt("return",u);case 33:case"end":return t.stop()}}),t,null,[[7,26,29,32]])})));return function(e){return t.apply(this,arguments)}}(),getAttr:function(){var t=s()(v.a.mark((function t(e){var r,n,o,i,a,c,u,s,f;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.el,n=e.conf,o=n.attrKeys,i=n.toStr,a=n.getStyle,c=n.mediaTag,u=r.tagName.toLowerCase(),s={},!o.includes("style")){t.next=8;break}return t.next=7,a({el:r,conf:n});case 7:s.style=t.sent;case 8:if(h()(r.attributes).forEach((function(t){o.includes(t.name)&&(s[t.name]=s[t.name]||"",s[t.name]+=" "+i(t.value))})),"input"===u&&o.includes("value")&&(s.value=r.value),!((f=(f=r.attributes.src)&&f.value)&&o.includes("src")&&c.includes(u))){t.next=16;break}return t.next=15,n.toDataUrl({src:f,conf:n,el:r});case 15:s.src=t.sent;case 16:return t.abrupt("return",s);case 17:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}),a=n.formatHtml,c=n.outType,u=n.el,f=n.w,p=n.h,d=n.exact,g=n.outBlob,y=n.timeout,b=n.scale,u){e.next=4;break}return e.abrupt("return");case 4:return r.w=f=f||(d?u.getBoundingClientRect().width:u.offsetWidth),r.h=p=p||(d?u.getBoundingClientRect().height:u.offsetHeight),e.next=8,r.toHtml({conf:r,el:u});case 8:if(x=e.sent,x=a?a({conf:r,html:x}):x,w='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(f,'" height="').concat(p,'"><foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">').concat(x,"</div></foreignObject></svg>"),"svg"!==c){e.next=13;break}return e.abrupt("return",w);case 13:if(_=o.URL.createObjectURL(new Blob([w],{type:"image/svg+xml;charset=utf-8"})),"url"!==c){e.next=16;break}return e.abrupt("return",_);case 16:return T=function(){return o.URL.revokeObjectURL(_),!1},(O=new Image).src=_,e.next=21,new Promise((function(t){O.onload=function(){return t(1)},O.onerror=function(e){return t(0,console.error(e,O))},y&&o.setTimeout((function(){return t(0)}),y)}));case 21:if(e.sent){e.next=24;break}return e.abrupt("return",T());case 24:if("img"!==c){e.next=26;break}return e.abrupt("return",O);case 26:if(S=i.createElement("canvas"),E=S.getContext("2d"),S.width=f*b,S.height=p*b,E.save(),E.scale(b,b),E.clearRect(0,0,f,p),E.drawImage(O,0,0),E.restore(),T(),O.remove(),"canvas"!==c){e.next=39;break}return e.abrupt("return",S);case 39:if(M=S.toDataURL("image/".concat(c)),S.remove(),g){e.next=43;break}return e.abrupt("return",M);case 43:return e.abrupt("return",k.file["url"===g?"base64ToBlobUrl":"base64ToBlob"](M));case 44:case"end":return e.stop()}}),e)})))()}},alg:{transform:{scale:function(t){var e,r,n,o,i,a,c,u,s,f,p,h,d,v,m,g,y,b,x,w,_,T,O,S,E,M,j,A,I,C,R,P,D,z,B,N,F,L,U,W,V,G,K,H,Y,q,J,X,$,Z,Q,tt,et,rt,nt,ot,it=k.coord,at=it.rotatePoint3d,ct=it.getDistance,ut=(it.scalePoint,it.getCenter),st=k.params.merge(t,{outArr:!1,type:"rb",lastPoint:{},mx:0,my:0,rz:null,az:null,w:0,h:0}),ft=st.type,lt=void 0===ft?"rb":ft,pt=st.lastPoint,ht=st.mx,dt=st.my,vt=st.rz,mt=st.az,gt=st.w,yt=st.h,bt=st.outArr;(vt="number"===k.isType(vt)?vt:mt*Math.PI/180,"t"===lt)&&(s=at({x:ht,y:dt,cx:pt.t[0],cy:pt.t[1],outArr:1,rz:-vt}),e=(f=l()(s,2))[0],r=f[1],p=at({x:e=pt.t[0],y:r,cx:pt.t[0],cy:pt.t[1],outArr:1,rz:vt}),d=ut({x1:e=(h=l()(p,2))[0],y1:r=h[1],x2:pt.b[0],y2:pt.b[1],outArr:1}),n=(v=l()(d,2))[0],o=v[1],yt=ct({x1:e,y1:r,x2:pt.b[0],y2:pt.b[1]}));"b"===lt&&(m=at({x:ht,y:dt,cx:pt.b[0],cy:pt.b[1],outArr:1,rz:-vt}),e=(g=l()(m,2))[0],r=g[1],y=at({x:e=pt.b[0],y:r,cx:pt.b[0],cy:pt.b[1],outArr:1,rz:vt}),x=ut({x1:e=(b=l()(y,2))[0],y1:r=b[1],x2:pt.t[0],y2:pt.t[1],outArr:1}),n=(w=l()(x,2))[0],o=w[1],yt=ct({x1:e,y1:r,x2:pt.t[0],y2:pt.t[1]}));"l"===lt&&(_=at({x:ht,y:dt,cx:pt.l[0],cy:pt.l[1],outArr:1,rz:-vt}),e=(T=l()(_,2))[0],r=T[1],O=at({x:e,y:r=pt.l[1],cx:pt.l[0],cy:pt.l[1],outArr:1,rz:vt}),E=ut({x1:e=(S=l()(O,2))[0],y1:r=S[1],x2:pt.r[0],y2:pt.r[1],outArr:1}),n=(M=l()(E,2))[0],o=M[1],gt=ct({x1:e,y1:r,x2:pt.r[0],y2:pt.r[1]}));"r"===lt&&(j=at({x:ht,y:dt,cx:pt.r[0],cy:pt.r[1],outArr:1,rz:-vt}),e=(A=l()(j,2))[0],r=A[1],I=at({x:e,y:r=pt.r[1],cx:pt.r[0],cy:pt.r[1],outArr:1,rz:vt}),R=ut({x1:e=(C=l()(I,2))[0],y1:r=C[1],x2:pt.l[0],y2:pt.l[1],outArr:1}),n=(P=l()(R,2))[0],o=P[1],gt=ct({x1:e,y1:r,x2:pt.l[0],y2:pt.l[1]}));(["t","b","l","r"].includes(lt)&&(e=n-gt/2,r=o-yt/2),"lt"===lt)&&(D=ut({x1:ht,y1:dt,x2:pt.rb[0],y2:pt.rb[1],outArr:1}),B=at({x:ht,y:dt,cx:n=(z=l()(D,2))[0],cy:o=z[1],outArr:1,rz:-vt}),i=(N=l()(B,2))[0],a=N[1],F=at({x:pt.rb[0],y:pt.rb[1],cx:n,cy:o,outArr:1,rz:-vt}),c=(L=l()(F,2))[0],u=L[1]);"lb"===lt&&(U=ut({x1:ht,y1:dt,x2:pt.rt[0],y2:pt.rt[1],outArr:1}),V=at({x:ht,y:dt,cx:n=(W=l()(U,2))[0],cy:o=W[1],outArr:1,rz:-vt}),i=(G=l()(V,2))[0],a=G[1],K=at({x:pt.rt[0],y:pt.rt[1],cx:n,cy:o,outArr:1,rz:-vt}),c=(H=l()(K,2))[0],u=H[1]);"rt"===lt&&(Y=ut({x1:ht,y1:dt,x2:pt.lb[0],y2:pt.lb[1],outArr:1}),J=at({x:ht,y:dt,cx:n=(q=l()(Y,2))[0],cy:o=q[1],outArr:1,rz:-vt}),i=(X=l()(J,2))[0],a=X[1],$=at({x:pt.lb[0],y:pt.lb[1],cx:n,cy:o,outArr:1,rz:-vt}),c=(Z=l()($,2))[0],u=Z[1]);"rb"===lt&&(Q=ut({x1:ht,y1:dt,x2:pt.lt[0],y2:pt.lt[1],outArr:1}),et=at({x:ht,y:dt,cx:n=(tt=l()(Q,2))[0],cy:o=tt[1],outArr:1,rz:-vt}),i=(rt=l()(et,2))[0],a=rt[1],nt=at({x:pt.lt[0],y:pt.lt[1],cx:n,cy:o,outArr:1,rz:-vt}),c=(ot=l()(nt,2))[0],u=ot[1]);return["lt","lb","rt","rb"].includes(lt)&&(gt=Math.abs(c-i),yt=Math.abs(u-a),e=i<c?i:c,r=a<u?a:u),bt?[e,r,gt,yt]:{x:e,y:r,w:gt,h:yt}},rotate:function(t){var e=k.params.merge(t,{outAngle:!1,ex:0,ey:0,mx:0,my:0,cx:0,cy:0,az:null,rz:null}),r=e.outAngle,n=e.ex,o=e.ey,i=e.mx,a=e.my,c=e.cx,u=e.cy,s=e.rz,f=e.az;s="number"===k.isType(s)?s:f*Math.PI/180;var l=k.coord.cartesianToPolar(i-c,a-u).a;l=l<0?l+2*Math.PI:l;var p=k.coord.cartesianToPolar(n-c,o-u).a;return s+=(p=p<0?p+2*Math.PI:p)-l,r?s/Math.PI*180:s}},noise:{fade:function(t){return t*t*t*(t*(6*t-15)+10)},turb:function(t){for(var e=t.x,r=t.y,n=t.deep,o=void 0===n?6:n,i=t.freq,a=void 0===i?.2:i,c=t.scale,u=void 0===c?10:c,s=t.amp,f=void 0===s?1:s,l=0,p=0;p<o;p++)l+=k.alg.noise.improve({x:e*a,y:r*a,scale:u})*f,f*=.5,a*=2;return l},normal:function(t){for(var e=t.w,r=t.h,n=t.out2d,o=t.scale,i=void 0===o?10:o,a=[],c=k.alg.noise.fade,u=function(t,e,r){return t+r*(e-t)},s=0;s<=e;s++)for(var f=0;f<=r;f++){var l=Math.random()*Math.PI*2;a.push({x:Math.cos(l),y:Math.sin(l)})}for(var p=[],h=0;h<r;h++){n&&(p[h]=[]);for(var d=0;d<e;d++){var v=Math.floor(d/i),m=Math.floor(h/i),g=d/i-v,y=h/i-m,b=a[v+m*e],x=a[v+1+m*e],w=a[v+(m+1)*e],_=a[v+1+(m+1)*e],T=b.x*g+b.y*y,O=x.x*(g-1)+x.y*y,S=w.x*g+w.y*(y-1),E=_.x*(g-1)+_.y*(y-1),M=c(g),j=c(y),A=u(T,O,M),I=u(S,E,M),C=u(A,I,j);n?p[h][d]=C:p[h*e+d]=C}}return p},improve:function(t){var e=t.x,r=t.y,n=t.z,o=void 0===n?0:n,i=t.w,a=t.h,c=t.out2d,u=t.p,s=t.scale,f=void 0===s?10:s,l=k.alg.noise,p=l.fade,h=(l.lerp2,k.isType),d=function(t,e,r,n){var o=15&t,i=o<8?e:r,a=o<4?r:12===o||14===o?e:n;return(1&o?-i:i)+(2&o?-a:a)},v=function(t,e,r){return e+t*(r-e)};u=u||[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180];for(var m=0;m<256;m++)u[m+256]=u[m];var g=function(t,e,r,n){t/=n,e/=n,r/=n;var o=255&Math.floor(t),i=255&Math.floor(e),a=255&Math.floor(r);t-=Math.floor(t),e-=Math.floor(e),r-=Math.floor(r);var c=p(t),s=p(e),f=p(r),l=u[o]+i,h=u[l]+a,m=u[l+1]+a,g=u[o+1]+i,y=u[g]+a,b=u[g+1]+a;return v(f,v(s,v(c,d(u[h],t,e,r),d(u[y],t-1,e,r)),v(c,d(u[m],t,e-1,r),d(u[b],t-1,e-1,r))),v(s,v(c,d(u[h+1],t,e,r-1),d(u[y+1],t-1,e,r-1)),v(c,d(u[m+1],t,e-1,r-1),d(u[b+1],t-1,e-1,r-1))))};if("number"!==h(i)&&"number"!==h(a))return g(e,r,o,f);for(var y=[],b=0;b<a;b++){c&&(y[b]=[]);for(var x=0;x<i;x++){var w=g(x,b,0,f);c?y[b][x]=w:y[b*i+x]=w}}return y}},forceDirected:function(t){var e=t.nodes,r=void 0===e?[]:e,n=t.maxDis,o=void 0===n?300:n,i=t.maxOffset,a=void 0===i?10:i,c=t.minOffset,u=void 0===c?0:c,s=t.atten,f=void 0===s?.025:s,p=t.props,h=t.boundary,d=t.boundaryOffset,v=void 0===d?5:d;p=b({id:"id",x:"x",y:"y",disabled:"disabled"},p||{});var m=function(t){return[t[p.x],t[p.y]]};r.forEach((function(t){if(!t[p.disabled]){var e=m(t),n=l()(e,2),i=n[0],c=n[1];r.forEach((function(e){if(!e[p.disabled]&&t[p.id]!==e[p.id]){var r=m(e),n=l()(r,2),s=n[0],d=n[1],g=k.coord.springForce({x1:i,y1:c,x2:s,y2:d,maxDis:o,maxOffset:a,minOffset:u,atten:f}),y=l()(g,2),b=y[0],x=y[1];if("array"===k.isType(h)){var w=l()(h,4),_=w[0],T=w[1],O=w[2],S=w[3];b>T&&(b-=v),b<S&&(b+=v),x>O&&(x-=v),x<_&&(x+=v)}e[p.x]=b,e[p.y]=x}}))}}))},moore:function(t){var e=k.params.merge(t,{s:null,w:0,h:0,map:[],mapPointValFunc:function(t){var e=t.x,r=t.y;return t.map[r][e]},neighbors:[[0,1],[-1,1],[-1,0],[-1,-1],[0,-1],[1,-1],[1,0],[1,1]]}),r=e.neighbors,n=e.s,o=e.w,i=e.h,a=e.map,c=e.mapPointValFunc;if(!(n="object"===k.isType(n)?[n.y,n.x]:n))for(var u=0;u<i;u++)for(var s=0;s<o;s++)if(c({x:s,y:u,map:a})){n=[u,s];break}var f=[],p=r.length;if(!n)return f;var d,v=h()(n),m=[n[0],n[1]-1];for(f.push({x:v[1],y:v[0]});;){var g=r.findIndex((function(t){var e=l()(t,2),r=e[0],n=e[1];return v[1]+r===m[1]&&v[0]+n===m[0]}));g=~g?g:0,d=null;for(var y=1;y<=p;y++){var b=(g+y)%p,x=v[1]+r[b][0],w=v[0]+r[b][1];if(x>=0&&x<o&&w>=0&&w<i&&c({x:x,y:w,map:a})){d=[w,x];var _=r[(b+p-1)%p];m=[v[0]+_[1],v[1]+_[0]];break}}if(!d||d[0]===n[0]&&d[1]===n[1])break;f.push({x:d[1],y:d[0]}),v=d}return f},marchingSquares:{getEdge:function(t,e){return[[{x:0,y:.5},{x:.5,y:0}],[{x:.5,y:0},{x:1,y:.5}],[{x:1,y:.5},{x:.5,y:1}],[{x:.5,y:1},{x:0,y:.5}]][e][t[e]]},run:function(t){var e=t.map,r=t.mapPointValFunc,n=[];r=r||function(t){var e=t.x,r=t.y;return t.map[r][e]};for(var o=0;o<e.length-1;o++)for(var i=0;i<e[o].length-1;i++){for(var a=[r({y:o,x:i,map:e}),r({y:o,x:i+1,map:e}),r({y:o+1,x:i+1,map:e}),r({y:o+1,x:i,map:e})],c=0,u=0;u<a.length;u++)c+=a[u]*Math.pow(2,u);if(0!==c&&15!==c){for(var s=[],f=0;f<4;f++){var l=this.getEdge(a,f);l&&s.push({x:i+l.x,y:o+l.y})}n.push(s)}}return n}},aStar:{createNode:function(t){var e=t.x,r=t.y,n=t.g,o=void 0===n?0:n,i=t.h,a=void 0===i?0:i,c=t.f;return{x:e,y:r,g:o,h:a,f:void 0===c?0:c,parent:t.parent}},getPath:function(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e},getNeighbors:function(t,e,r){var n=this,o=[];return e[0]?([[0,1],[0,-1],[1,0],[-1,0]].forEach((function(i){var a=l()(i,2),c=a[0],u=a[1],s=t.x+c,f=t.y+u;s>=0&&s<e[0].length&&f>=0&&f<e.length&&r({x:s,y:f,map:e})&&o.push(n.createNode({x:s,y:f}))})),o):o},run:function(t){var e=this,r=t.map,n=t.start,o=t.end,i=t.mapPointValFunc;i=i||function(t){var e=t.x,r=t.y;return t.map[r][e]};for(var a,c=[n],u=[],s=function(){var t=c[0],n=0;if(c.forEach((function(e,r){return e.f<t.f&&(t=e,n=r)})),c.splice(n,1),u.push(t),t.x===o.x&&t.y===o.y)return{v:e.getPath(t)};e.getNeighbors(t,r,i).forEach((function(e){if(!u.some((function(t){return t.x===e.x&&t.y===e.y}))){var r=t.g+1,n=k.coord.getMD({x1:e.x,y1:e.y,x2:o.x,y2:o.y}),i=r+n,a=c.some((function(t){return t.x===e.x&&t.y===e.y}));a&&i>=e.f||(e.g=r,e.h=n,e.f=i,e.parent=t,!a&&c.push(e))}}))};c.length;)if(a=s())return a.v;return[]}},bilinearInterpolation:function(t){var e=t.x,r=t.y,n=t.imgData,o=n.width,i=n.height,a=n.data,c=Math.floor(e),u=Math.floor(r),s=c+1,f=u+1;if(c<0||c>=o||u<0||u>=i||s<0||s>=o||f<0||f>=i)return[0,0,0,0];var l=e-c,p=r-u,h=4*(u*o+c),d=4*(f*o+c),v=4*(u*o+s),m=4*(f*o+s);return[a[h]*(1-l)*(1-p)+a[v]*l*(1-p)+a[d]*(1-l)*p+a[m]*l*p,a[h+1]*(1-l)*(1-p)+a[v+1]*l*(1-p)+a[d+1]*(1-l)*p+a[m+1]*l*p,a[h+2]*(1-l)*(1-p)+a[v+2]*l*(1-p)+a[d+2]*(1-l)*p+a[m+2]*l*p,a[h+3]*(1-l)*(1-p)+a[v+3]*l*(1-p)+a[d+3]*(1-l)*p+a[m+3]*l*p]},wave:function(t){var e=k.params.merge(t,{lineWidth:1,stroke:"#4095ff",fill:"#4095ff",outBlob:!1,format:null,outType:"png",gap:30,reverse:!1,w:300,h:50,s:1,dir:"hori",smooth:.5,scale:2,top:[1,.5]}),r=e.w,n=e.h,o=e.gap,a=e.s,c=e.dir,u=e.smooth,s=e.outType,f=e.top,l=e.outBlob,p=e.format,h=e.stroke,d=e.fill,v=e.lineWidth,m=e.scale,g=e.reverse,y=i.createElement("canvas"),b=y.getContext("2d");y.width=r*m,y.height=n*m,d&&(b.fillStyle=d),h&&(b.strokeStyle=h),b.lineWidth=v,b.save(),b.scale(m,m),b.clearRect(0,0,r,n);var x,w,_=1,T=a*n,O=[{x:0,y:T}];for(b.moveTo(0,T);w=f[_%f.length]*n,x=_*o,b.bezierCurveTo(x-o*u,T,x-o*(1-u),w,x,w),T=w,_++,O.push({x:x,y:w}),!(x>=r););if(p?p({conf:t,c:y,ctx:b,x:x,y:w,points:O}):(b.lineTo(x,g?0:n),b.lineTo(0,g?0:n),b.closePath(),d&&b.fill(),h&&b.stroke(),b.restore()),"vert"===c){var S=i.createElement("canvas"),E=S.getContext("2d");S.width=n*m,S.height=r*m,E.save(),E.scale(m,m),E.clearRect(0,0,n,r),E.translate(n/2,r/2),E.rotate(.5*Math.PI),E.drawImage(y,r/-2,n/-2,r,n),y=S}if("canvas"===s)return y;var M=y.toDataURL("image/".concat(s));return y.remove(),l?k.file["url"===l?"base64ToBlobUrl":"base64ToBlob"](M):M},imgCartesianToPolar:function(t){return s()(v.a.mark((function e(){var r,n,a,c,u,s,f,l,p,h,d,m,g,y,b,x,w,_,T,O,S,E,M,j,A,I,C,R,P;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.img,n=t.w,a=t.h,c=t.r,u=t.timeout,s=t.outSrc,f=void 0===s?1:s,l=t.bg,p=void 0===l?"rgb(0,0,0,0)":l,r){e.next=3;break}return e.abrupt("return");case 3:if("string"!==k.isType(r)){e.next=12;break}return h=r,(r=new Image).src=h,e.next=9,new Promise((function(t){r.onload=function(){return t(1)},r.onerror=function(){return t(0)},u&&o.setTimeout((function(){return t(0)}),u)}));case 9:if(e.sent){e.next=12;break}return e.abrupt("return");case 12:for(n=n||r.naturalWidth||r.width,a=a||r.naturalHeight||r.height,c=c||k.coord.getDistance({x1:0,y1:0,x2:n,y2:a})/2,d=i.createElement("canvas"),m=d.getContext("2d"),d.width=n,d.height=a,m.drawImage(r,0,0,n,a),g=m.getImageData(0,0,n,a),y=m.createImageData(n,a),b=n/2,x=a/2,w=Math.PI,_=function(t,e,r){return 4*(e*r+t)},(p=k.color.colorToRgb(p))[3]*=255,T=0;T<a;T++)for(O=0;O<n;O++)S=_(O,T,n),E=k.coord.cartesianToPolar(O-b,T-x),M=E.a,j=E.r,A=Math.round(M/(2*w)*n),I=Math.round(j/c*a),C=_(A,I,n),R=4===(R=g.data.slice(C,C+4)).length?R:p,y.data[S]=R[0]||0,y.data[S+1]=R[1]||0,y.data[S+2]=R[2]||0,y.data[S+3]=R[3]||0;if(m.putImageData(y,0,0),P=d.toDataURL(),!f){e.next=31;break}return e.abrupt("return",P);case 31:return e.abrupt("return",{c:d,ctx:m,img:r,imgData:g,newImgData:y,w:n,h:a,r:c,src:P});case 32:case"end":return e.stop()}}),e)})))()}},coord:{getGeoDis:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=k.params.merge(t,{r:6371,lat1:null,lng1:null,lat2:null,lng2:null}),r=e.r,n=e.lat1,o=e.lng1,i=e.lat2,a=e.lng2,c=n*Math.PI/180,u=o*Math.PI/180,s=i*Math.PI/180,f=s-c,l=a*Math.PI/180-u,p=Math.sin(f/2)*Math.sin(f/2)+Math.cos(c)*Math.cos(s)*Math.sin(l/2)*Math.sin(l/2);return r*(2*Math.atan2(Math.sqrt(p),Math.sqrt(1-p)))},geoToCartesian:function(t){var e=t.lat,r=t.lng,n=t.w,o=t.h,i=t.outArr,a=(r+180)*(n/360),c=-1*Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI*(o/2);return i?[a,c]:{x:a,y:c}},cartesianToGeo:function(t){var e=t.x,r=t.y,n=t.w,o=t.h,i=t.outArr,a=360*e/n-180,c=180*Math.atan(Math.sinh(-2*r*Math.PI/o))/Math.PI;return i?[a,c]:{lng:a,lat:c}},geoToWorld:function(t){var e=t.lat,r=t.lng,n=t.outArr,o=t.r,i=void 0===o?6378137:o,a=r*Math.PI/180*i,c=Math.log(Math.tan((90+e)*Math.PI/360))/(Math.PI/180);return c=c*Math.PI/180*i,n?[a,c]:{x:a,y:c}},cartesianToPolar:function(t,e){return{r:Math.sqrt(t*t+e*e),a:Math.atan2(e,t)}},polarToCartesian:function(t,e,r){var n=e*Math.cos(t),o=e*Math.sin(t);return r?[n,o]:{x:n,y:o}},rotatePoint3d:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.x,r=t.y,n=t.z,o=void 0===n?0:n,i=t.cx,a=void 0===i?0:i,c=t.cy,u=void 0===c?0:c,s=t.outArr,f=t.cz,l=void 0===f?0:f,p=t.ax,h=void 0===p?0:p,d=t.ay,v=void 0===d?0:d,m=t.az,g=void 0===m?0:m,y=t.rx,b=t.ry,x=t.rz;y="number"===k.isType(y)?y:h*Math.PI/180,b="number"===k.isType(b)?b:v*Math.PI/180,x="number"===k.isType(x)?x:g*Math.PI/180;var w=e,_=Math.cos(y)*(r-u)-Math.sin(y)*(o-l)+u,T=Math.sin(y)*(r-u)+Math.cos(y)*(o-l)+l,O=Math.cos(b)*(w-a)+Math.sin(b)*(T-l)+a,S=_,E=-Math.sin(b)*(w-a)+Math.cos(b)*(T-l)+l,M=Math.cos(x)*(O-a)-Math.sin(x)*(S-u)+a,j=Math.sin(x)*(O-a)+Math.cos(x)*(S-u)+u;return s?[M,j,E]:{x:M,y:j,z:E}},project3dTo2d:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.x,r=t.y,n=t.z,o=t.dis,i=o/(n+o);return e+=e*i,r+=r*i,t.outArr?[e,r,i]:{x:e,y:r,scale:i}},getDistance:function(t){var e=t.x1,r=t.y1,n=t.z1,o=t.x2,i=t.y2,a=t.z2,c=[];return"number"===k.isType(e)&&c.push(o-e),"number"===k.isType(r)&&c.push(i-r),"number"===k.isType(n)&&c.push(a-n),Math.hypot.apply(Math,c)},getCenter:function(t){var e=t.x1,r=t.y1,n=t.z1,o=t.x2,i=t.y2,a=t.z2,c=t.outArr,u={x:(e+o)/2,y:(r+i)/2},s=[u.x,u.y];return"number"===k.isType(n)&&s.push(u.z=(n+a)/2),c?s:u},getMD:function(t){var e=t.x1,r=t.y1,n=t.z1,o=t.x2,i=t.y2,a=t.z2,c=0;return"number"===k.isType(e)&&(c+=Math.abs(o-e)),"number"===k.isType(r)&&(c+=Math.abs(i-r)),"number"===k.isType(n)&&(c+=Math.abs(a-n)),c},springForce:function(t){var e,r=t.x1,n=t.y1,o=t.z1,i=t.x2,a=t.y2,c=t.z2,u=t.maxDis,s=void 0===u?300:u,f=t.maxOffset,l=void 0===f?10:f,p=t.minOffset,h=void 0===p?0:p,d=t.atten,v=void 0===d?.025:d,m=t.outArr,g=void 0===m?1:m,y=k.coord.getDistance({x1:r,y1:n,z1:o,x2:i,y2:a,z2:c}),b=function(t){return t>l?l:t<h?h:t},x="number"===k.isType(o),w=0,_=i,T=a,O=c;y>s?(_=(e=(w=b((y-s)*v))/y)*(r-i)+i,T=e*(n-a)+a,x&&(O=e*(o-c)+c)):y<s&&y>0&&(_=((e=(w=b((s-y)*v))/(y+w))*r-i)/(e-1),T=(e*n-a)/(e-1),x&&(O=(e*o-c)/(e-1)));var S=[_,T],E={x:_,y:T};return x&&S.push(E.z=O),g?S:E},scalePoint:function(t){var e,r,n,o=t.x,i=t.y,a=t.z,c=t.cx,u=void 0===c?0:c,s=t.cy,f=void 0===s?0:s,l=t.cz,p=void 0===l?0:l,h=t.outArr,d=t.scale,v=t.scaleX,m=t.scaleY,g=t.scaleZ,y=t.lastScale,b=t.lastScaleX,x=t.lastScaleY,w=t.lastScaleZ,_=k.isType,T="number"===_(a);return"number"===_(d)?(e=r=d/y-1,T&&(n=e)):(e=v/b-1,r=m/x-1,T&&(n=g/w-1)),o+=(o-u)*e,i+=(i-f)*r,T&&(a+=(a-p)*n),h?T?[o,i,a]:[o,i]:T?{x:o,y:i,z:a}:{x:o,y:i}}},canvas2d:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.createElement("canvas"),n=k.params.merge(e,{w:t.clientWidth,h:t.clientHeight,evColor:null,dpr:1,boxScale:1,c:t,evC:r,ctx:t.getContext("2d"),evCtx:r.getContext("2d"),bindEvOpt:void 0,evSens:3,curShape:null,curMouseShape:null,events:{},evCache:null,idMap:{},idStart:[0,0,0],idSpan:5,neighbors:[[-1,-1],[0,-1],[1,-1],[-1,0],[0,0],[1,0],[-1,1],[0,1],[1,1]],setEvCtxColor:function(t){var e=this.evCtx,r=this.curShape,n=this.evColor;if(r){var o=r.colorId;if(n!==o&&(this.evColor=o,e.fillStyle=o,e.strokeStyle=o,t)){var i=e.globalAlpha,a=e.shadowBlur,c=e.shadowOffsetX,u=e.shadowOffsetY,s=e.filter;1!==i&&(e.globalAlpha=1),0!==a&&(e.shadowBlur=0),0!==c&&(e.shadowOffsetX=0),0!==u&&(e.shadowOffsetY=0),"none"!==s&&(e.filter="none")}}},resize:function(t){var e=t.w,r=t.h,n=t.dpr;this.w="number"===k.isType(e)?e:this.w,this.h="number"===k.isType(r)?r:this.h,this.dpr="number"===k.isType(n)?n:this.dpr;var o=this.c,i=this.evC;o.width=i.width=this.w*this.dpr,o.height=i.height=this.h*this.dpr,this.render()},render:function(){var t=this.shape,e=this.w,r=this.h,n=this.__proxy,o=this.dpr;this.evCache=null,this.curShape=t,n.save(),n.scale(o,o),n.clearRect(0,0,e,r),this.curShape=null;for(var i=[t];i.length;){var a=i.shift(),c=a.children,u=a.hide,s=a.isUpdateRenderChildren,f=a.renderChildren;u||(s&&(a.renderChildren=f=h()(c).sort((function(t,e){return t.zIndex-e.zIndex}))),i.unshift.apply(i,h()(f)),a.isUpdateRenderChildren=!1,this.curShape=a,a.render&&a.render({ctx:n,item:a}),this.curShape=null)}this.curShape=t,n.restore(),this.curShape=null},createShape:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=this.createId();return k.params.merge(e,b(b({},k.clone(k.event)),{},{on:{},id:r,hide:!1,colorId:r&&"rgb(".concat(r.replace(/-/g,","),")"),zIndex:0,zIndex2:0,render:null,children:[],parent:null,isMouseEnter:!1,renderChildren:[],static:!1,isUpdateRenderChildren:!0})),e.zIndex2=e.zIndex,Object.defineProperty(e,"zIndex",{get:function(){return e.zIndex2},set:function(t){e.zIndex2=t,e.parent&&(e.parent.isUpdateRenderChildren=1)}}),e.parent&&this.pushShape(e.parent,e),!e.static&&e.bindEv("mousemove",(function(r){var n=r.e,o=r.tg;r.stopPropagation;e!==t.curMouseShape&&o===e&&(t.emitEv("mouseleave",t.curMouseShape,n,!1),t.emitEv("mouseout",t.curMouseShape,n),t.curMouseShape=e,t.emitEv("mouseenter",e,n,!1),t.emitEv("mouseover",e,n))})),this.idMap[e.id]=e,e},pushShape:function(t,e){t&&!t.children.some((function(t){return t.id===e.id}))&&(t.children.push(e),e.parent=t,t.isUpdateRenderChildren=1)},createId:function(){var t=this.idStart=this.idStart||[0,0,0];t[0]+=this.idSpan;for(var e=0;e<t.length&&!(t[e]<=255);e++){if(e+1>=t.length)return console.error("新的shape超出颜色ID范围"),!1;t[e]-=256,t[e+1]++}return t.join("-")},getShape:function(t){return this.idMap[t]},updateIdMap:function(){var t=[this.shape];for(this.idMap={};t.length;){var e=t.shift();this.idMap[e.id]=e,e.children&&t.unshift.apply(t,h()(e.children))}},emitEv:function(t,e,r){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=0,i=e,a=function(){return o=1};e&&(e.emitEv(t,{e:r,stopPropagation:a,tg:i}),e.parent&&!o&&n);)e=e.parent},bindEv:function(){var t=this;["mousedown","mouseup","click","contextmenu","dblclick","mousemove","touchstart","touchmove","touchend","touchcancel","auxclick","pointerdown","pointerenter","pointerleave","pointermove","pointerout","pointerover","pointerup","mousewheel","DOMMouseScroll"].forEach((function(e){t.events[e]=function(r){var n,o=t.w,i=t.h,a=t.dpr,c=t.evCtx,u=t.boxScale,s=t.c,f=t.neighbors,p=t.evSens,h=k.dom.getMouseXYByBox({tg:s,single:!1,e:r,boxScale:u}),d=t.evCache=t.evCache||c.getImageData(0,0,o*a,i*a),v=function(t,e){var r=d.width,n=d.data,o=4*r*e+4*t;return"number"===k.isType(n[o])&&255===n[o+3]&&"".concat(n[o],"-").concat(n[o+1],"-").concat(n[o+2])},g=m(h);try{var y,b=function(){var o=l()(n.value,2),i=o[0],c=o[1];if("number"!==k.isType(i)||"number"!==k.isType(c))return 0;var u=v(Math.round(i*a),Math.round(c*a));if(!u)return 0;var s={};if(f.forEach((function(t){var e=l()(t,2),r=e[0],n=e[1],o=v(Math.round((i+r)*a),Math.round((c+n)*a));o&&(s[o]=s[o]||0,s[o]++)})),!s[u]||s[u]<p)return{v:void 0};var h=t.getShape(u);h&&!h.static&&t.emitEv(e,h,r)};for(g.s();!(n=g.n()).done;)if(0!==(y=b())&&y)return y.v}catch(x){g.e(x)}finally{g.f()}},t.c.addEventListener(e,t.events[e],"function"===k.isType(t.bindEvOpt)?t.bindEvOpt({name:e,ctx:t.__proxy}):t.bindEvOpt)})),this.events.mouseleave=function(e){t.emitEv("mouseleave",t.curMouseShape,e,!1),t.emitEv("mouseout",t.curMouseShape,e),t.curMouseShape=null},this.c.addEventListener("mouseleave",this.events.mouseleave,"function"===k.isType(this.bindEvOpt)?this.bindEvOpt({name:"mouseleave",ctx:this.__proxy}):this.bindEvOpt)},unEv:function(){var t=this.events,e=this.c;Object.entries(t).forEach((function(r){var n=l()(r,2),o=n[0],i=n[1];t[o]=null,e.removeEventListener(o,i)}))},destroy:function(){this.unEv(),this.shape=this.c=this.ctx=this.evC=this.evCtx=null}});return n.bindEv(),n.shape=n.createShape({render:function(t){var e=t.ctx;return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,e.w,e.h)}}),n.__self=n,n.__proxy=new Proxy(n,{get:function(t,e,r){var n=t.ctx,o=t.evCtx,i=t.curShape;return"__proxy"===e?r:"__self"===e?t:e in n?"function"===k.isType(n[e])?function(){var r=Array.prototype.slice.call(arguments);if(["createImageData","createLinearGradient","createPattern","createRadialGradient","getImageData","getLineDash","getTransform","isPointInPath","isPointInStroke","measureText","putImageData"].includes(e))return n[e].apply(n,h()(r));if(i){if(i.static)return n[e].apply(n,h()(r));if(t.setEvCtxColor(),"drawImage"===e){var a,c,u,s,f=r[0],p=f.naturalWidth,d=f.naturalHeight;if(3===r.length){var v=l()(r,3);a=v[1],c=v[2],u=p,s=d}else if(5===r.length){var m=l()(r,5);a=m[1],c=m[2],u=m[3],s=m[4]}else if(9===r.length){var g=l()(r,9);a=g[5],c=g[6],u=g[7],s=g[8]}o.fillRect(a,c,u,s)}else if(["fillText","strokeText"].includes(e)){var y,b,x=l()(r,4),w=x[0],_=x[1],T=x[2],O=x[3],S="number"===k.isType(O)?O:o.measureText(w).width,E=(o.font+"").match(/([\d\.]+)px/);E=E&&1*E[1]||12;var M=o.textBaseline,j=o.textAlign;y="right"===j?_-S:"center"===j?_-S/2:_,b=["bottom","alphabetic"].includes(M)?T-E:"middle"===M?T-E/2:T,o.fillRect(y,b,S,E)}else o[e].apply(o,h()(r));return n[e].apply(n,h()(r))}}:n[e]:t[e]},set:function(t,e,r,n){if(e in t.ctx){if(t.ctx[e]===r)return!0;t.ctx[e]=r,["fillStyle","strokeStyle","shadowBlur","shadowOffsetX","shadowOffsetY","filter","globalAlpha"].includes(e)||(t.evCtx[e]=r)}else t[e]=r;return!0}}),n.__proxy}};"undefined"!=typeof window&&k.setEnv({window:window,document:document});var S=k,E=2e3,M={name:"",reqCode:"SUCCESS",env:{mode:"export"},zIndex:function(){return++E},rootPath:"undefined"==typeof window||void 0===window.location?"/":S.path.join(location.href.split("#")[0],"../"),mergeConf:function(){},beforeMergeConf:function(){},mergeDirective:function(){},beforeMergeDirective:function(){},themeTypeSaveKey:"themeType",themeConfSaveKey:"customThemeConf",i18nTypeSaveKey:"i18nType"};function j(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function A(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?j(Object(r),!0).forEach((function(e){c()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var I=function(t){var e=C.language,r=C.noMatch;t="object"===S.isType(t)?t:{txt:t};var n=S.params.merge(t,{txt:null,setLanguage:null,splitTxt:null,splitSyb:"|",setType:null,getType:!1,getI18n:!1,type:C.type}),o=n.txt,i=n.splitTxt,a=n.splitSyb,c=n.setType,u=n.getType,s=n.getI18n,f=n.setLanguage,l=n.type,p=function(t){return S.isEmpty(t,[null,void 0])};if(!p(o)){var h=e[o]&&e[o][l];return p(h)?(r[o]=1,o):h}return p(i)?(c&&(C.type=c),f&&(C.language=f),u?C.type:s?C:void 0):i.split(a).map((function(t){var n=e[t]&&e[t][l];return p(n)?(r[t]=1,t):n})).join("")},C=new Proxy(A(A({},S.clone(S.event)),{},{on:{setType:[],setLanguage:[]},t:I,type:"zh-CN",noMatch:{},language:{},install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";t.prototype.$t=I,t.observable(C),C.type=e}}),{set:function(t,e,r){return t[e]===r||(t[e]=r,"type"===e&&C.emitEv("setType",{i18n:C,type:r}),"language"===e&&C.emitEv("setLanguage",{i18n:C,language:r})),!0}}),R=C;function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach((function(e){c()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var z=new Map,B=D(D({},S.clone(S.event)),{},{root:null,delimiters:["#{","}#"],disabledRender:!1,disabledDiffVNode:!1,disabledSetRenderVm:!1,disabledPatchVNode:!1,disabledSetDepTarget:!1,disabledDefineReactive:!1,disabledDefineObserver:!1,disabledBeforeInitVm:!1,disabledC:!1,disabledT:!1,disabledV:!0,on:{init:[],setDepTarget:[],beforePatchVNode:[],beforeSetRenderVm:[],beforeDiffVNode:[],beforeRenderVNode:[],defineObserver:[],defineReactive:[],beforeCreateVNode:[],createdVNode:[],beforeCreateTNode:[],createdTNode:[],beforeBeforeInitVm:[],destroy:[]},init:function(t){if(t&&!t._jsx_isInit){var e=t.$parent&&t.$parent._jsxOpt;t._jsxOpt=e&&!e.isSelf?e:B,t._jsxOpt.watchT(t),t._jsxOpt.watchC(t),t._jsxOpt.watchV(t),t._jsxOpt.watchRender(t),t._jsx_isInit=1,t._jsxOpt.emitEv("init",{vm:t,jsx:B,jsxOpt:t._jsxOpt})}},injectOpt:function(t,e){for(var r=[t];r.length;){var n=r.shift();n.$children&&r.unshift.apply(r,h()(n.$children)),n._jsxOpt=e,n.$forceUpdate()}},destroy:function(t){if(t&&t._jsx_isInit){var e=t._jsxOpt;t._v=t._jsx_v,t._c=t._jsx_c,t._t=t._jsx_t,t.$createElement=t._jsx_h,t._render=t._jsx_render,t._jsx_render=t._jsx_v=t._jsx_c=t._jsx_t=t._jsx_h=t._jsx_isInit=t._jsxOpt=null,t.$forceUpdate(),e.emitEv("destroy",{vm:t,jsx:B,jsxOpt:e})}},watchRender:function(t){t._jsx_isInit||(t._jsx_render||(t._jsx_render=t._render),t._render=function(){for(var e=t._jsxOpt.disabledRender,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=t._jsx_render.apply(t,n);return("function"===S.isType(e)?e({vm:t,jsx:B,vNode:i,jsxOpt:t._jsxOpt,args:n}):e)||t._jsxOpt.emitEv("beforeRenderVNode",{vNode:i,vm:t,args:n,jsx:B,jsxOpt:t._jsxOpt}),i})},watchT:function(t){if(!t._jsx_isInit){t._jsx_t||(t._jsx_t=t._t);var e=t._jsx_t;t._t=function(){for(var r=t._jsxOpt.disabledT,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if("function"===S.isType(r)?r({vm:t,jsx:B,jsxOpt:t._jsxOpt,args:[str]}):r)return t._jsx_t.apply(t,o);t._jsxOpt.emitEv("beforeCreateTNode",{vm:t,args:o,jsx:B,jsxOpt:t._jsxOpt});var a=e.call.apply(e,[t].concat(o));return t._jsxOpt.emitEv("createdTNode",{vNode:a,vm:t,args:o,jsx:B,jsxOpt:t._jsxOpt}),t._jsx_formatSlot&&(a=t._jsx_formatSlot({vNode:a,vm:t,args:o,jsx:B,jsxOpt:t._jsxOpt})),a}}},watchC:function(t){if(!t._jsx_isInit){t._jsx_h||(t._jsx_h=t.$createElement),t._jsx_c||(t._jsx_c=t._c);var e=t._jsx_h;t.$createElement=t._c=function(){for(var r=t._jsxOpt.disabledC,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if("function"===S.isType(r)?r({vm:t,jsx:B,jsxOpt:t._jsxOpt,args:o}):r)return e.apply(void 0,o);t._jsxOpt.emitEv("beforeCreateVNode",{vm:t,args:o,jsx:B,jsxOpt:t._jsxOpt});var a=e.call.apply(e,[t].concat(o));return t._jsxOpt.emitEv("createdVNode",{vNode:a,vm:t,args:o,jsx:B,jsxOpt:t._jsxOpt}),a}}},watchV:function(t){if(!t._jsx_isInit){var e=t.$createElement;t._jsx_v||(t._jsx_v=t._v),t._v=function(r){var n=t._jsxOpt,o=n.delimiters,i=n.disabledV;if("function"===S.isType(i)?i({vm:t,jsx:B,jsxOpt:t._jsxOpt,args:[r]}):i)return t._jsx_v(r);r+="";var a=l()(o,2),c=a[0],u=a[1],s=r,f=s.indexOf(c),p=[];for(S.isType;~f;){var h=s.slice(0,f);if(h&&p.push(t._jsx_v(h)),f+=c.length,!~(f=(s=s.slice(f)).indexOf(u))){p=[],console.error("jsx编译出错,没有结束标记");break}new Function("__opt","\n\t\t\t\t\t__opt.fun = ".concat(s.slice(0,f),";\n\t\t\t\t\t__opt.arr.push(typeof(__opt.fun) === 'function' ? __opt.fun(__opt) : __opt.vm._jsx_v(__opt.vm._s(__opt.fun)));\n\t\t\t\t"))({arr:p,h:e,vm:t}),f+=u.length,f=(s=s.slice(f)).indexOf(c)}return s&&p.length&&p.push(t._jsx_v(s)),p.length?p:t._jsx_v(r)}}},isChildCache:{},isChildVm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=S.params.merge(t,{vm:null,parent:null,stop:null,noCache:!1,cacheExp:6e4,checkFunc:null}),r=e.vm,n=e.parent,o=e.stop,i=e.noCache,a=e.cacheExp,c=e.checkFunc,u=B.isChildCache,s="".concat(n._uid,"__").concat(r._uid),f=(new Date).getTime();if(S.throttle.commitAfter("jsx:clearExpIsChildCache",(function(){return Object.entries(u).forEach((function(t){var e=l()(t,2),r=e[0];return e[1].exp<=f&&delete u[r]}))}),1e3),!i&&u[s]&&u[s].exp>f)return u[s].isChild;for(u[s]={exp:f+a,isChild:!1};r&&(!o||!o({vm:r,cache:u,opt:t,parent:n}));){if(c?c({vm:r,cache:u,opt:t,parent:n}):r===n)return u[s].isChild=!0;r=r.$parent}return u[s].isChild},formatVNodeData:function(t){var e={styleList:[],classList:[]};return t?([["style","staticStyle",(e=D(D({},t),e)).styleList],["class","staticClass",e.classList]].forEach((function(e){for(var r=l()(e,3),n=r[0],o=r[1],i=r[2],a=[t[n],t[o]];a.length;){var c=a.shift(),u=S.isType(c);"string"===u&&c&&i.push(c.trim()),"array"===u&&a.unshift.apply(a,h()(c)),"object"===u&&("class"===n&&Object.entries(c).forEach((function(t){var e=l()(t,2),r=e[0];return e[1]&&i.push(r.trim())})),"style"===n&&Object.entries(c).forEach((function(t){var e=l()(t,2),r=e[0],n=e[1];return i.push.apply(i,h()(("array"===S.isType(n)?n:[n]).map((function(t){return"".concat(r,":").concat(t)}))))})))}})),e):e},clipRender:function(){var t=this.$options;if(this._c=this.$createElement,!t._origRender){var e=(t._origRender=t.render).toString(),r={},n=/\w+._v\([\s\\n\\t\\f\\r"']*?\{##[\s\\n\\t\\f\\r"']*([^#\s\\n\\t\\f\\r=]+?)[\s\\n\\t\\f\\r"']*\=[\s\\n\\t\\f\\r"']*?\)\s*\,\n?([^]+?)\s*\,\s*\w+\._v\([\s\\n\\t\\f\\r"']*?##\}[\s\\n\\t\\f\\r"']*?\)\,?/;if(e=e.replace(new RegExp(n.source,"ig"),(function(t){return(t=t.match(new RegExp(n.source,"i")))&&(r[t[1]]=t[2]),""})),!Object.keys(r).length)return r;var o=(e=e.replace(/^\s*function\s*[^\(\)]*?\(\)\s*\{/,"").replace(/\}\s*$/,"")).indexOf("return");o=(o=~o&&e.slice(0,o))||"\n\t\t\tconst _vm = this;\n\t\t\tconst _h = _vm.$createElement;\n\t\t\tconst _c = _vm._self._c || _h\n\t\t",n=/\w+\._v\([\s\\n\\t\\f\\r"']*?\{##[\s\\n\\t\\f\\r"']*([^#\s\\n\\t\\f\\r]+?)[\s\\n\\t\\f\\r"']*###\}[\s\\n\\t\\f\\r"']*?\)/,e=e.replace(new RegExp(n.source,"ig"),(function(t){return(t=(t=t.match(new RegExp(n.source,"i")))&&t[1])&&r[t]||""})),t.render=new Function(e).bind(this);var i=this;return{map:r,renderMap:new Proxy(r,{get:function(t,e){var r=t[e];return t[e]?new Function(" ".concat(o,"; return (").concat(r,"); ")).bind(i):r}})}}},setup:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=S.params.optional(M).n.Vue.util.__v||{},n=S.params.merge(e,{preMap:{props:"p_",filters:"f_",computed:"c_",watch:"w_",components:"cp_",directives:"d_",inject:"i_",provide:"pv_",hook:"h_"},hookMap:{c:"created",bm:"beforeMount",m:"mounted",bu:"beforeUpdate",u:"updated",bd:"beforeDestroy",d:"destroyed",a:"activated",da:"deactivated",ec:"errorCaptured",sp:"serverPrefetch",bre:"beforeRouteEnter",bru:"beforeRouterUpdate",brl:"beforeRouteLeave"}}),o=n.preMap,i=n.hookMap;return delete e.preMap,delete e.hookMap,D({_isSetup:!0,data:function(){var e,n=this,a=t.call(n,n),c=this.$options,u={};return Object.entries(a).forEach((function(t){var r,s=l()(t,2),f=s[0],p=s[1],h="string"===S.isType(f),d=function(t){return h&&f.slice(0,t.length)===t&&f.length>t.length&&f.slice(t.length)},v=function(t){return function(t,e,r,n){delete a[r],c[t]=c[t]||{},c[t][e]=n}(t,r,f,p)};return(r=d(o.props))?(v("props"),u.props=1):(r=d(o.filters))?v("filters"):(r=d(o.computed))?v("computed"):(r=d(o.watch))?v("watch"):(r=d(o.components))?v("components"):(r=d(o.directives))?v("directives"):(r=d(o.inject))?(v("inject"),u.inject=1,void(c.inject[r]="object"===S.isType(p)?p:{from:r,default:"function"===S.isType(p)?p:void 0})):(r=d(o.provide))&&"function"===S.isType(p)?(delete a[f],void((e=e||{})[r]=p)):(r=d(o.hook))?(delete a[f],r=i[r]||r,c[r]="array"===S.isType(c[r])?c[r]:[c[r]],c[r].push(p),void S.arr.delItem(c[r],null,(function(t){return"function"!==S.isType(t)}))):void("function"===S.isType(p)&&(a[f]=p.bind(n)))})),u.inject&&r.initInjections&&r.initInjections(n),u.props&&r.initProps&&(c.propsData=n.$attrs,r.initProps(n,c.props)),e&&(c.provide=function(){return Object.fromEntries(Object.entries(e).map((function(t){var e=l()(t,2);return[e[0],e[1].call(n)]})))}),n._isSetup=!0,a}},e)},install:function(t){z.get(t)||(z.set(t,1),t.mixin({beforeCreate:function(){B.init(this)}}),t.prototype.$jsx=B)}});B.root=B;var N=B,F=(r("YGK4"),r("SuFq"),r("lwsE")),L=r.n(F),U=r("W8MJ"),W=r.n(U),V=r("a1gu"),G=r.n(V),K=r("Nsbk"),H=r.n(K),Y=r("7W2i"),q=r.n(Y),J=r("oShl"),X=r.n(J);function $(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($=function(){return!!t})()}function Z(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Q(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Z(Object(r),!0).forEach((function(e){c()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Z(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var tt=M,et=function(t){var e=tt.n&&tt.n.components||{},r={vm:null,cache:null,_isSkip:!0,render:function(){r.comp;var n=r.cache;r.vm=this;var o=this.$createElement(e[t]||t,{on:Q({},this.$listeners),props:Q({},this.$attrs)});return n&&(o.componentInstance=n.componentInstance),r.cache=o,o.data.keepAlive=!0,o},destroy:function(){var t=r.vm;r.cache=null,t&&(t.$destroy(),t.$el&&t.$el.remove(),r.vm=null)}};return r},rt=function(t){var e=S.uuid(),r=S.params.merge(t,{compName:null,form:{},vModelKey:"value",props:{},on:{}}),n=r.vModelKey,o=r.compName,i=r.props,a=r.on,c=r.form,u=tt.n&&tt.n.components||{},s=ft.dataMap[e]={id:e,comp:function(t){var e=t.h;t.vm;return e(u[o]||o,{on:Q(Q({},a),{},{input:[function(t){return c&&(c[n]=t)},a.input].filter((function(t){return t}))}),props:Q({value:c&&c[n]},i)},[])},update:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.props&&(i=t.props),t.on&&(a=t.on),t.form&&(c=t.form),t.compName&&(o=t.compName),t.vModelKey&&(n=t.vModelKey);var e=s.vm;e&&e.$forceUpdate()},destroy:function(){var t=s.vm;t&&(t.$destroy(),t.$el&&t.$el.remove(),s.vm=null),s.emitEv("destroy",{conf:s,vm:t}),delete ft.dataMap[e]}};return s},nt=Q(Q(Q({styleEl:null},function(){var t=M.themeConfSaveKey,e={"--theme-color":"#409eff","--theme-color-gd":"#409eff linear-gradient(45deg, #409eff, #2ee6e6)","--theme-bg-white1":"#fff","--theme-bg-white2":"#fafafa","--theme-bg-white3":"#f7f7f7","--theme-bg-white4":"#f5f5f5","--theme-bg-white5":"#eee","--theme-bg-black1":"#000","--theme-text1":"#000","--theme-text2":"#333","--theme-text3":"#555","--theme-text4":"#777","--theme-text5":"#999","--theme-text6":"#ccc","--theme-text7":"#eee","--theme-border1":"#DCDFE6","--theme-border2":"#ccc","--theme-border3":"#eee","--theme-border4":"#f3f3f3","--theme-shadow1":"rgba(0,0,0,0.07)","--theme-shadow2":"rgba(0,0,0,0.03)","--theme-red":"#FF6161","--theme-green":"#66d231","--theme-yellow":"#ff9000","--theme-grey":"#909399","--theme-scroll-bg":"rgba(255,255,255,0.5)","--theme-scroll-btn":"rgba(0,0,0,0.2)","--theme-size":"small","--theme-medium-h":"36px","--theme-medium-font-size":"14px","--theme-medium-padding":"15px","--theme-medium-margin":"20px","--theme-medium-radius":"3px","--theme-small-h":"32px","--theme-small-font-size":"13px","--theme-small-padding":"12px","--theme-small-margin":"15px","--theme-small-radius":"3px","--theme-mini-h":"28px","--theme-mini-font-size":"12px","--theme-mini-padding":"9px","--theme-mini-margin":"10px","--theme-mini-radius":"3px"},r=null;if(t&&"undefined"!=typeof window)try{r=JSON.parse(window.localStorage[t])}catch(o){}r=r||Q({},e);var n=function(t,e){var r=(t+"").match(/([0-9\.\-\+]+)([a-z_]+)?/)||[],n=l()(r,3),o=n[1],i=n[2];return i=i||"",o=1*o||0,e?o:{n:o,unit:i}};return{customThemeConf:r,baseColors:e,colors:Q(Q({},e),{},{"--theme-h1":function(){return nt.get("--theme-".concat(nt.get("--theme-size")||"small","-h"))},"--theme-h2":function(){var t=n(nt.get("--theme-h1")),e=t.n,r=t.unit;return S.math.toFixed(.75*e)+r},"--theme-h3":function(){var t=n(nt.get("--theme-h1")),e=t.n,r=t.unit;return S.math.toFixed(.5*e)+r},"--theme-h4":function(){var t=n(nt.get("--theme-h1")),e=t.n,r=t.unit;return S.math.toFixed(.25*e)+r},"--theme-font-size1":function(){return nt.get("--theme-".concat(nt.get("--theme-size")||"small","-font-size"))},"--theme-font-size2":function(){var t=n(nt.get("--theme-font-size1")),e=t.n,r=t.unit;return S.math.toFixed(.9*e)+r},"--theme-font-size3":function(){var t=n(nt.get("--theme-font-size1")),e=t.n,r=t.unit;return S.math.toFixed(.8*e)+r},"--theme-font-size4":function(){var t=n(nt.get("--theme-font-size1")),e=t.n,r=t.unit;return S.math.toFixed(.7*e)+r},"--theme-padding1":function(){return nt.get("--theme-".concat(nt.get("--theme-size")||"small","-padding"))},"--theme-padding2":function(){var t=n(nt.get("--theme-padding1")),e=t.n,r=t.unit;return S.math.toFixed(.75*e)+r},"--theme-padding3":function(){var t=n(nt.get("--theme-padding1")),e=t.n,r=t.unit;return S.math.toFixed(.5*e)+r},"--theme-padding4":function(){var t=n(nt.get("--theme-padding1")),e=t.n,r=t.unit;return S.math.toFixed(.25*e)+r},"--theme-margin1":function(){return nt.get("--theme-".concat(nt.get("--theme-size")||"small","-margin"))},"--theme-margin2":function(){var t=n(nt.get("--theme-margin1")),e=t.n,r=t.unit;return S.math.toFixed(.75*e)+r},"--theme-margin3":function(){var t=n(nt.get("--theme-margin1")),e=t.n,r=t.unit;return S.math.toFixed(.5*e)+r},"--theme-margin4":function(){var t=n(nt.get("--theme-margin1")),e=t.n,r=t.unit;return S.math.toFixed(.25*e)+r},"--theme-radius1":function(){return nt.get("--theme-".concat(nt.get("--theme-size")||"small","-radius"))},"--theme-radius2":function(){var t=n(nt.get("--theme-radius1")),e=t.n,r=t.unit;return S.math.toFixed(.75*e)+r},"--theme-radius3":function(){var t=n(nt.get("--theme-radius1")),e=t.n,r=t.unit;return S.math.toFixed(.5*e)+r},"--theme-radius4":function(){var t=n(nt.get("--theme-radius1")),e=t.n,r=t.unit;return S.math.toFixed(.25*e)+r},"--theme-bg-white1-fill":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),1)},"--theme-bg-white2-fill":function(){return S.color.setAlpha(nt.get("--theme-bg-white2"),1)},"--theme-bg-white3-fill":function(){return S.color.setAlpha(nt.get("--theme-bg-white3"),1)},"--theme-bg-white4-fill":function(){return S.color.setAlpha(nt.get("--theme-bg-white4"),1)},"--theme-bg-white5-fill":function(){return S.color.setAlpha(nt.get("--theme-bg-white5"),1)},"--theme-bg-white1-opacity1":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),.1)},"--theme-bg-white1-opacity2":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),.2)},"--theme-bg-white1-opacity3":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),.3)},"--theme-bg-white1-opacity4":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),.4)},"--theme-bg-white1-opacity5":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),.5)},"--theme-bg-white1-opacity6":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),.6)},"--theme-bg-white1-opacity7":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),.7)},"--theme-bg-white1-opacity8":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),.8)},"--theme-bg-white1-opacity9":function(){return S.color.setAlpha(nt.get("--theme-bg-white1"),.9)},"--theme-color-opacity1":function(){return S.color.setAlpha(nt.get("--theme-color"),.1)},"--theme-grey-opacity1":function(){return S.color.setAlpha(nt.get("--theme-grey"),.1)},"--theme-scroll-btn-opacity":function(){return S.color.setAlpha(nt.get("--theme-scroll-btn"),.7*S.color.getAlpha(nt.get("--theme-scroll-btn")))},"--theme-color-light1":function(){return S.color.mix("#fff",nt.get("--theme-color"),.1)},"--theme-color-light2":function(){return S.color.mix("#fff",nt.get("--theme-color"),.2)},"--theme-color-light3":function(){return S.color.mix("#fff",nt.get("--theme-color"),.3)},"--theme-color-light4":function(){return S.color.mix("#fff",nt.get("--theme-color"),.4)},"--theme-color-light5":function(){return S.color.mix("#fff",nt.get("--theme-color"),.5)},"--theme-color-light6":function(){return S.color.mix("#fff",nt.get("--theme-color"),.6)},"--theme-color-light7":function(){return S.color.mix("#fff",nt.get("--theme-color"),.7)},"--theme-color-light8":function(){return S.color.mix("#fff",nt.get("--theme-color"),.8)},"--theme-color-light9":function(){return S.color.mix("#fff",nt.get("--theme-color"),.9)},"--theme-color-dark1":function(){return S.color.mix("#000",nt.get("--theme-color"),.1)},"--theme-color-dark2":function(){return S.color.mix("#000",nt.get("--theme-color"),.2)},"--theme-color-dark3":function(){return S.color.mix("#000",nt.get("--theme-color"),.3)},"--theme-color-dark4":function(){return S.color.mix("#000",nt.get("--theme-color"),.4)},"--theme-color-dark5":function(){return S.color.mix("#000",nt.get("--theme-color"),.5)},"--theme-color-dark6":function(){return S.color.mix("#000",nt.get("--theme-color"),.6)},"--theme-color-dark7":function(){return S.color.mix("#000",nt.get("--theme-color"),.7)},"--theme-color-dark8":function(){return S.color.mix("#000",nt.get("--theme-color"),.8)},"--theme-color-dark9":function(){return S.color.mix("#000",nt.get("--theme-color"),.9)},"--theme-green-light1":function(){return S.color.mix("#fff",nt.get("--theme-green"),.1)},"--theme-green-light2":function(){return S.color.mix("#fff",nt.get("--theme-green"),.2)},"--theme-green-light3":function(){return S.color.mix("#fff",nt.get("--theme-green"),.3)},"--theme-green-light4":function(){return S.color.mix("#fff",nt.get("--theme-green"),.4)},"--theme-green-light5":function(){return S.color.mix("#fff",nt.get("--theme-green"),.5)},"--theme-green-light6":function(){return S.color.mix("#fff",nt.get("--theme-green"),.6)},"--theme-green-light7":function(){return S.color.mix("#fff",nt.get("--theme-green"),.7)},"--theme-green-light8":function(){return S.color.mix("#fff",nt.get("--theme-green"),.8)},"--theme-green-light9":function(){return S.color.mix("#fff",nt.get("--theme-green"),.9)},"--theme-green-dark1":function(){return S.color.mix("#000",nt.get("--theme-green"),.1)},"--theme-green-dark2":function(){return S.color.mix("#000",nt.get("--theme-green"),.2)},"--theme-green-dark3":function(){return S.color.mix("#000",nt.get("--theme-green"),.3)},"--theme-green-dark4":function(){return S.color.mix("#000",nt.get("--theme-green"),.4)},"--theme-green-dark5":function(){return S.color.mix("#000",nt.get("--theme-green"),.5)},"--theme-green-dark6":function(){return S.color.mix("#000",nt.get("--theme-green"),.6)},"--theme-green-dark7":function(){return S.color.mix("#000",nt.get("--theme-green"),.7)},"--theme-green-dark8":function(){return S.color.mix("#000",nt.get("--theme-green"),.8)},"--theme-green-dark9":function(){return S.color.mix("#000",nt.get("--theme-green"),.9)},"--theme-yellow-light1":function(){return S.color.mix("#fff",nt.get("--theme-yellow"),.1)},"--theme-yellow-light2":function(){return S.color.mix("#fff",nt.get("--theme-yellow"),.2)},"--theme-yellow-light3":function(){return S.color.mix("#fff",nt.get("--theme-yellow"),.3)},"--theme-yellow-light4":function(){return S.color.mix("#fff",nt.get("--theme-yellow"),.4)},"--theme-yellow-light5":function(){return S.color.mix("#fff",nt.get("--theme-yellow"),.5)},"--theme-yellow-light6":function(){return S.color.mix("#fff",nt.get("--theme-yellow"),.6)},"--theme-yellow-light7":function(){return S.color.mix("#fff",nt.get("--theme-yellow"),.7)},"--theme-yellow-light8":function(){return S.color.mix("#fff",nt.get("--theme-yellow"),.8)},"--theme-yellow-light9":function(){return S.color.mix("#fff",nt.get("--theme-yellow"),.9)},"--theme-yellow-dark1":function(){return S.color.mix("#000",nt.get("--theme-yellow"),.1)},"--theme-yellow-dark2":function(){return S.color.mix("#000",nt.get("--theme-yellow"),.2)},"--theme-yellow-dark3":function(){return S.color.mix("#000",nt.get("--theme-yellow"),.3)},"--theme-yellow-dark4":function(){return S.color.mix("#000",nt.get("--theme-yellow"),.4)},"--theme-yellow-dark5":function(){return S.color.mix("#000",nt.get("--theme-yellow"),.5)},"--theme-yellow-dark6":function(){return S.color.mix("#000",nt.get("--theme-yellow"),.6)},"--theme-yellow-dark7":function(){return S.color.mix("#000",nt.get("--theme-yellow"),.7)},"--theme-yellow-dark8":function(){return S.color.mix("#000",nt.get("--theme-yellow"),.8)},"--theme-yellow-dark9":function(){return S.color.mix("#000",nt.get("--theme-yellow"),.9)},"--theme-red-light1":function(){return S.color.mix("#fff",nt.get("--theme-red"),.1)},"--theme-red-light2":function(){return S.color.mix("#fff",nt.get("--theme-red"),.2)},"--theme-red-light3":function(){return S.color.mix("#fff",nt.get("--theme-red"),.3)},"--theme-red-light4":function(){return S.color.mix("#fff",nt.get("--theme-red"),.4)},"--theme-red-light5":function(){return S.color.mix("#fff",nt.get("--theme-red"),.5)},"--theme-red-light6":function(){return S.color.mix("#fff",nt.get("--theme-red"),.6)},"--theme-red-light7":function(){return S.color.mix("#fff",nt.get("--theme-red"),.7)},"--theme-red-light8":function(){return S.color.mix("#fff",nt.get("--theme-red"),.8)},"--theme-red-light9":function(){return S.color.mix("#fff",nt.get("--theme-red"),.9)},"--theme-red-dark1":function(){return S.color.mix("#000",nt.get("--theme-red"),.1)},"--theme-red-dark2":function(){return S.color.mix("#000",nt.get("--theme-red"),.2)},"--theme-red-dark3":function(){return S.color.mix("#000",nt.get("--theme-red"),.3)},"--theme-red-dark4":function(){return S.color.mix("#000",nt.get("--theme-red"),.4)},"--theme-red-dark5":function(){return S.color.mix("#000",nt.get("--theme-red"),.5)},"--theme-red-dark6":function(){return S.color.mix("#000",nt.get("--theme-red"),.6)},"--theme-red-dark7":function(){return S.color.mix("#000",nt.get("--theme-red"),.7)},"--theme-red-dark8":function(){return S.color.mix("#000",nt.get("--theme-red"),.8)},"--theme-red-dark9":function(){return S.color.mix("#000",nt.get("--theme-red"),.9)},"--theme-grey-light1":function(){return S.color.mix("#fff",nt.get("--theme-grey"),.1)},"--theme-grey-light2":function(){return S.color.mix("#fff",nt.get("--theme-grey"),.2)},"--theme-grey-light3":function(){return S.color.mix("#fff",nt.get("--theme-grey"),.3)},"--theme-grey-light4":function(){return S.color.mix("#fff",nt.get("--theme-grey"),.4)},"--theme-grey-light5":function(){return S.color.mix("#fff",nt.get("--theme-grey"),.5)},"--theme-grey-light6":function(){return S.color.mix("#fff",nt.get("--theme-grey"),.6)},"--theme-grey-light7":function(){return S.color.mix("#fff",nt.get("--theme-grey"),.7)},"--theme-grey-light8":function(){return S.color.mix("#fff",nt.get("--theme-grey"),.8)},"--theme-grey-light9":function(){return S.color.mix("#fff",nt.get("--theme-grey"),.9)},"--theme-grey-dark1":function(){return S.color.mix("#000",nt.get("--theme-grey"),.1)},"--theme-grey-dark2":function(){return S.color.mix("#000",nt.get("--theme-grey"),.2)},"--theme-grey-dark3":function(){return S.color.mix("#000",nt.get("--theme-grey"),.3)},"--theme-grey-dark4":function(){return S.color.mix("#000",nt.get("--theme-grey"),.4)},"--theme-grey-dark5":function(){return S.color.mix("#000",nt.get("--theme-grey"),.5)},"--theme-grey-dark6":function(){return S.color.mix("#000",nt.get("--theme-grey"),.6)},"--theme-grey-dark7":function(){return S.color.mix("#000",nt.get("--theme-grey"),.7)},"--theme-grey-dark8":function(){return S.color.mix("#000",nt.get("--theme-grey"),.8)},"--theme-grey-dark9":function(){return S.color.mix("#000",nt.get("--theme-grey"),.9)}})}}()),{},{styles:{__base:""},get:function(t){return"function"===S.isType(nt.colors[t])?nt.colors[t]({conf:nt}):nt.colors[t]},set:function(t,e){nt.colors[t]=e,S.debounce.commit("n-theme:update",nt.update.bind(nt),60)},initStyle:function(){if(nt.styleEl=document.querySelector("#n-themeStyle"),nt.styleEl)return nt.update();nt.styleEl=document.createElement("style"),nt.styleEl.id="n-themeStyle",document.querySelector("head").appendChild(nt.styleEl),nt.update()},type:"light"},S.clone(S.event)),{},{on:{},update:function(){if(!nt.styleEl)return nt.initStyle();var t=[nt.styles.__base,nt.styles[nt.type]].filter((function(t){return t}));nt.styleEl.innerText="\n\t\t\thtml{ ".concat(Object.entries(nt.colors).map((function(t){var e=l()(t,2),r=e[0],n=e[1];return(r+"").match(/^\-\-/)?"".concat(r,": ").concat("function"===S.isType(n)?n({conf:nt}):n):""})).join(";")," }\n\t\t\t").concat(t.map((function(t){return"function"===S.isType(t)?t({conf:nt}):t})).join(""),"\n\t\t"),nt.emitEv("update",{conf:nt})},typeMap:{light:function(t){return t},dark:function(t){return S.params.merge({"--theme-color":"rgba(41,204,204,1)","--theme-color-gd":"rgba(51,119,204,1) linear-gradient(45deg, rgba(51,119,204,1),rgba(41,204,204,1))","--theme-bg-white1":"#000","--theme-bg-white2":"#111","--theme-bg-white3":"#1f1f1f","--theme-bg-white4":"#222","--theme-bg-white5":"#2f2f2f","--theme-bg-black1":"#fff","--theme-text1":"#fff","--theme-text2":"#aaa","--theme-text3":"#999","--theme-text4":"#777","--theme-text5":"#666","--theme-text6":"#555","--theme-text7":"#000","--theme-border1":"#333","--theme-border2":"#555","--theme-border3":"#777","--theme-border4":"#999","--theme-shadow1":"rgba(255,255,255,0.3)","--theme-shadow2":"rgba(255,255,255,0.3)","--theme-scroll-bg":"rgba(0,0,0,0)","--theme-scroll-btn":"rgba(255,255,255,0.6)"},t)},custom:function(t){return nt.customThemeConf}},setType:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt.type,e=nt.typeMap,r=nt.baseColors;nt.type=t;var n=e[t]&&e[t](S.clone(r));n&&(nt.emitEv("beforeChangeType",{params:n,conf:nt}),Object.entries(n).forEach((function(t){var e=l()(t,2),r=e[0],n=e[1];return nt.set(r,n)})),nt.emitEv("changeType",{conf:nt}))}}),ot=S.bus,it=function(){var t=s()(v.a.mark((function t(e){var r,n,o,i,a=arguments;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=a.length>1&&void 0!==a[1]?a[1]:this,n=a.length>2&&void 0!==a[2]?a[2]:M.reqCode,o=a.length>3&&void 0!==a[3]?a[3]:"code",e){t.next=5;break}return t.abrupt("return",!1);case 5:return r.loading=!0,t.next=8,e.catch((function(t){return console.log(t),!1}));case 8:return i=t.sent,r.loading=!1,t.abrupt("return",i&&i[o]===n&&i);case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),at={},ct={lazy:!0,name:"n_fileMap"};"undefined"!=typeof window&&(at.p=S.dataMap.init(at),ct.p=S.dataMap.init(ct));var ut=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!M.n||!M.n.Vue)return console.error("no n-vz Vue");var r=M.n.Vue,n=r.observable,o=r.set,i=S.store.init(t,e);return e.bindEv("set",(function(t){var e=t.state,r=t.k,n=t.v;return o(e,r,n)})),n(e.state),i},st=S.enu({opts:{i18nType:[{value:"zh-CN",label:"中文"},{value:"en",label:"English"}],themeType:[{value:"light",label:"明亮"},{value:"dark",label:"夜间"}],themeSize:[{value:"medium",label:"大"},{value:"small",label:"中"},{value:"mini",label:"小"}]},format:function(t){var e=t.tg,r=t.k;return e[r]?S.clone(e[r]).map((function(t){return new Proxy(Q(Q({},t),{},{__label:t.label}),{get:function(t,e){var r=t[e];return"label"===e&&(r=I(t.__label||r)),r}})})):[]}}),ft={dataMap:{},defConf:function(){if(!M.n||!M.n.Vue)return console.error("no n-vz Vue");var t=M.n.Vue;return Q(Q({self:null,pconf:null,Vue:t,observable:t.observable,set:t.set,unSet:pt,unOb:ht,vm:null,comp:function(){return""},cache:!1},S.clone(S.event)),{},{on:{destroy:[],mount:[]},emitCompEv:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];var o=this.vm;if(o)for(var i=[o],a=function(){var e,n=i.shift();n.$children&&i.unshift.apply(i,h()(n.$children)),((e=n,S.params.optional(e)).$options[t].__v||[]).forEach((function(t){return t.call.apply(t,[n].concat(r))}))};i.length;)a()},destroy:function(){var t=this.vm;t&&(t.$destroy(),t.$el&&t.$el.remove(),this.vm=null),this.emitEv("destroy",{conf:this,vm:t})},mount:function(){var e=this,r=this.vm,n=this.comp;r&&this.destroy(),this.vm=r=new t({render:function(t){return n({h:t,vm:this,data:{conf:e}})}}),r.$mount(),this.self.appendChild(r.$el),this.emitEv("mount",{conf:e,vm:r})}})},create:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=S.params.merge(t,{tag:"w-comp",confKey:"conf-key",tagOpt:void 0,tagClass:function(e){function r(){var t;return L()(this,r),t=function(t,e,r){return e=H()(e),G()(t,$()?Reflect.construct(e,r||[],H()(t).constructor):e.apply(t,r))}(this,r),t.initConf(),t}return q()(r,e),W()(r,[{key:"initConf",value:function(){var e=ft.dataMap[this.getAttribute(n)];e&&e===this._compConf||(this._compConf=!e&&this._compConf?this._compConf:S.params.merge(e||{},ft.defConf()),this._compConf.self=this,this._compConf.pconf=t)}},{key:"connectedCallback",value:function(){this.initConf();var t=this._compConf;t.cache&&t.vm?t.emitCompEv("activated","webComp"):t.mount()}},{key:"disconnectedCallback",value:function(){var t=this._compConf;t.cache||!t.vm?t.emitCompEv("deactivated","webComp"):t.destroy()}}])}(X()(HTMLElement))}),r=e.tag,n=e.confKey,o=e.tagClass,i=e.tagOpt;customElements.define(r,o,i)}},lt=S.dom.loop({data:new Set,idle:!0,idleSlowdown:!0,idleGap:function(t){var e=t.conf.idleNum;return e<20?0:e<150?200:e<360?500:2e3},run:function(){var t=Date.now(),e=lt.idleSlowdown,r=lt.idleGap;lt.data.forEach((function(n){e&&(n.idleNum=n.idleNum||0,n.idleTime=n.idleTime||0,n.idleTime+r({conf:n,ob:lt})>t)||(n.verif(n),n.idleTime=t)}))}});lt.bindEv();var pt=function(t,e){"object"===S.isType(t)&&e in t&&Object.defineProperty(t,e,{value:t[e],configurable:!0,enumerable:!0,writable:!0})},ht=function(t,e){var r=S.isType,n=["object","array"];if(!n.includes(r(t)))return t;for(var o=new Map,i=[t];i.length;){var a=i.shift();if(!o.get(a)){o.set(a,1);var c=r(a);if(n.includes(c)&&!a._isVue)for(var u in"array"===c&&(a.__proto__=[].__proto__),delete a.__ob__,a){var s=a[u];n.includes(r(s))&&!e&&i.unshift(s),"object"===c&&pt(a,u)}}}return t},dt=function(t,e){if(!M.n||!M.n.Vue)return console.error("no n-vz Vue"),t;var r=M.n.Vue,n=r.observable,o=r.util.defineReactive,i=S.isType,a=["object","array"];if(!a.includes(i(t)))return t;for(var c=[t],u=new Map;c.length;){var s=c.shift();if(!u.get(s)){u.set(s,1);var f=i(s);if(a.includes(f)&&!s._isVue){if(!s.__ob__){if(!e){n(s);continue}var l="array"===f?[]:{};n(l),Object.defineProperty(s,"__ob__",{value:l.__ob__,writable:!0,configurable:!0,enumerable:!1}),s.__ob__.value=s,s.__ob__.observeArray=function(){},"array"===f&&(s.__proto__=l.__proto__)}for(var p in s){var h=s[p];if(a.includes(i(h))&&!e&&c.unshift(h),"object"===f){var d=Object.getOwnPropertyDescriptor(s,p);d&&(d.get||d.set)||o(s,p,h,null,e)}}}}}return t},vt=function(t,e){if(!M.n||!M.n.VueTemplateCompiler)return console.error("no n-vz VueTemplateCompiler");var r=M.n.VueTemplateCompiler.compileToFunctions(t,e),n=r.render,o=r.staticRenderFns;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return e.$options.staticRenderFns=o,Object.entries(t).forEach((function(t){var r=l()(t,2),n=r[0],o=r[1];return e[n]=o})),n.call(e)}};function mt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?mt(Object(r),!0).forEach((function(e){c()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var yt={data:new Set,down:null,up:null,onDown:function(t){return yt.down=t.target},onUp:function(t){yt.up=t.target;var e=yt.up,r=yt.data,n=yt.down;r.forEach((function(t){return t.verif({down:n,up:e,conf:t})})),yt.down=yt.up=null},bindEv:function(){"undefined"!=typeof document&&(document.addEventListener("mousedown",yt.onDown),document.addEventListener("touchstart",yt.onDown),document.addEventListener("mouseup",yt.onUp),document.addEventListener("touchend",yt.onUp))},unEv:function(){"undefined"!=typeof document&&(document.removeEventListener("mousedown",yt.onDown),document.removeEventListener("touchstart",yt.onDown),document.removeEventListener("mouseup",yt.onUp),document.removeEventListener("touchend",yt.onUp))}};yt.bindEv();var bt={lazy:{bind:function(t,e,r){var n="isMerge__lazy",o={};if("object"===S.isType(e.value)?o=e.value:o.src=e.value,!o[n]){var i={exact:S.params.optional(e).modifiers.exact.__v,src:"",mergeKey:n,id:S.uuid(),wait:300,waitTime:0,vNode:r,el:t,disabled:!1,isLoad:!1,advance:100,idleNum:0,boxEl:null,isHide:function(t){var e=t.el,r=window.getComputedStyle(e);return!e.offsetParent||"none"===r.display||"hidden"===r.visibility||1*r.opacity==0},pre:function(t){t.el.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAgA0JaQAA3AA/vtKAAA=",t.waitTime=Date.now()+t.wait},load:function(t){var e=t.el,r=t.src;return e.src=r},verif:function(t){var e=t.exact,r=t.load,n=t.waitTime,o=t.isHide,i=t.boxEl,a=t.advance,c=t.el,u=t.isLoad,s=t.disabled;if(!(u||s||n>Date.now())){if(o(t))return t.idleNum++;var f=c.offsetWidth,l=c.offsetHeight,p=c.offsetLeft,h=c.offsetTop,d=window,v=d.innerWidth,m=d.innerHeight;if(i){var g=e&&i.getBoundingClientRect();v=e?g.width:i.offsetWidth,m=e?g.height:i.offsetHeight}if(e){var y=c.getBoundingClientRect();f=y.width,l=y.height,p=y.x,h=y.y}if(p+f+a<0||p-a>v||h+l+a<0||h-a>m)return t.idleNum++;t.idleNum=0,t.isLoad=!0,"function"===S.isType(r)&&r(t)}}};M.beforeMergeDirective({conf:o,stand:i,binding:e}),S.params.merge(o,i),o[n]=!0,M.mergeDirective({conf:o,stand:i,binding:e})}t._lazyConf=o,lt.data.add(o)},inserted:function(t,e,r){var n=t._lazyConf;n&&n.pre(n)},componentUpdated:function(t,e,r){var n=t._lazyConf;n&&(n.vNode=r,"object"!==S.isType(e.value)&&(n.src=e.value))},unbind:function(t){lt.data.delete(t._lazyConf),t._lazyConf=void 0}},loading:{bind:function(t,e,r){var n=S.params.optional(M).n,o=n.components["n-loading"].__v,i=n.Vue.__v;if(!i)return console.error("no n-vz Vue");if(!o)return console.error("no n-vz n-loading component");var a="isMerge__loading",c={};if("object"===S.isType(e.value)?c=e.value:c.show=e.value,!c[a]){var u={id:S.uuid(),mergeKey:a,insertEl:t,vNode:r};M.beforeMergeDirective({conf:c,stand:u,binding:e}),S.params.merge(c,u),c[a]=!0,M.mergeDirective({conf:c,stand:u,binding:e})}c.pvm=new i({render:function(t){return t(o,{props:{conf:c}})}}),c.pvm.$mount(),t._loadingConf=c},inserted:function(t,e,r){t._loadingConf&&["static"].includes(window.getComputedStyle(t).position)&&(t.style.position="relative")},componentUpdated:function(t,e,r){var n=t._loadingConf;n&&(n.vNode=r,"object"!==S.isType(e.value)&&(n.show=e.value))},unbind:function(t){var e=t._loadingConf;e&&(e.pvm&&e.pvm.$destroy(),e.pvm=e.vm=null,t._loadingConf=void 0)}},resize:{bind:function(t,e,r){var n="isMerge__resize",o={};if("object"===S.isType(e.value)?o=e.value:o.fun=e.value,!o[n]){var i={exact:S.params.optional(e).modifiers.exact.__v,first:!0,mergeKey:n,fun:null,id:S.uuid(),vNode:r,el:t,disabled:!1,w:null,h:null,idleNum:0,verif:function(t){var e=t.exact,r=t.fun,n=t.w,o=t.h,i=t.el,a=t.first;if(!t.disabled){var c=i.offsetWidth,u=i.offsetHeight;if(e){var s=i.getBoundingClientRect();c=s.width,u=s.height}if(c===n&&u===o)return t.idleNum++;if(t.idleNum=0,t.w=c,t.h=u,!a)return t.first=!0;"function"===S.isType(r)&&r(i,t)}}};M.beforeMergeDirective({conf:o,stand:i,binding:e}),S.params.merge(o,i),o[n]=!0,M.mergeDirective({conf:o,stand:i,binding:e})}t._resizeConf=o,lt.data.add(o)},componentUpdated:function(t,e,r){var n=t._resizeConf;n&&(n.vNode=r,"object"!==S.isType(e.value)&&(n.fun=e.value))},unbind:function(t){lt.data.delete(t._resizeConf),t._resizeConf=void 0}},reposi:{bind:function(t,e,r){var n="isMerge__reposi",o={};if("object"===S.isType(e.value)?o=e.value:o.fun=e.value,!o[n]){var i={exact:S.params.optional(e).modifiers.exact.__v,mergeKey:n,first:!0,fun:null,id:S.uuid(),vNode:r,el:t,disabled:!1,x:null,y:null,idleNum:0,verif:function(t){var e=t.exact,r=t.fun,n=t.x,o=t.y,i=t.el,a=t.first;if(!t.disabled&&"function"===S.isType(r)){var c=i.offsetLeft,u=i.offsetTop;if(e){var s=i.getBoundingClientRect();c=s.x,u=s.y}if(c===n&&u===o)return t.idleNum++;if(t.idleNum=0,t.x=c,t.y=u,!a)return t.first=!0;r(i,t)}}};M.beforeMergeDirective({conf:o,stand:i,binding:e}),S.params.merge(o,i),o[n]=!0,M.mergeDirective({conf:o,stand:i,binding:e})}t._reposiConf=o,lt.data.add(o)},componentUpdated:function(t,e,r){var n=t._reposiConf;n&&(n.vNode=r,"object"!==S.isType(e.value)&&(n.fun=e.value))},unbind:function(t){lt.data.delete(t._reposiConf),t._reposiConf=void 0}},ref:{bind:function(t,e,r){"function"===S.isType(e.value)&&e.value({el:t,binding:e,type:"bind",vm:r&&r.componentInstance,vNode:r})},inserted:function(t,e,r){"function"===S.isType(e.value)&&e.value({el:t,binding:e,type:"inserted",vm:r&&r.componentInstance,vNode:r})},componentUpdated:function(t,e,r,n){"function"===S.isType(e.value)&&e.value({el:t,binding:e,type:"update",vm:r&&r.componentInstance,vNode:r,oldVNode:n})}},focus:{inserted:function(t,e,r){var n=S.params.optional(e).modifiers.left.__v;t.focus&&window.setTimeout((function(){t.focus();var e=t.value.length;t.setSelectionRange&&t.setSelectionRange(n?0:e,n?0:e)}),1*e.value||100)}},"click-outside":{bind:function(t,e,r){var n="isMerge__click-outside",o={};if("object"===S.isType(e.value)?o=e.value:o.fun=e.value,!o[n]){var i={verifEls:[t],mergeKey:n,formatVerifEls:null,fun:null,id:S.uuid(),vNode:r,el:t,clickOutside:yt,disabled:!1,verif:function(t){var e=t.down,r=t.up,n=t.conf;if(!t.disabled){var o=n.verifEls,i=n.formatVerifEls,a=n.fun,c=n.el;o=i?i(gt(gt({},t),{},{verifEls:o})):o,a&&e&&r&&o.every((function(t){return!t||!t.contains(e)&&!t.contains(r)}))&&a(c,n)}}};M.beforeMergeDirective({conf:o,stand:i,binding:e}),S.params.merge(o,i),o[n]=!0,M.mergeDirective({conf:o,stand:i,binding:e})}t._clickOutsideConf=o,yt.data.add(o)},componentUpdated:function(t,e,r){var n=t._clickOutsideConf;n&&(n.vNode=r,"object"!==S.isType(e.value)&&(n.fun=e.value))},unbind:function(t){yt.data.delete(t._clickOutsideConf),t._clickOutsideConf=void 0}}},xt=bt,wt={enu:st,theme:nt,bus:ot,req:it,reOb:dt,unOb:ht,unSet:pt,createStore:ut,dataMap:at,fileMap:ct,webComp:ft,tc:vt,ob:lt,useWebComp:rt,createCacheComp:et,directives:xt,directivesTool:n,i18n:R,t:I,jsx:N,version:"###n-vz:version###"};M.n=wt},zSZm:function(t,e,r){"use strict";var n=r("67WC"),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var t,e=this,r=o(e).length,n=a(r/2),i=0;i<n;)t=e[i],e[i++]=e[--r],e[r]=t;return e}))},zc4i:function(t,e,r){"use strict";var n=r("z+kr"),o=r("Fib7"),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},zfnd:function(t,e,r){"use strict";var n=r("glrk"),o=r("hh1v"),i=r("8GlL");t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}}})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.NVZ=t():e.NVZ=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="./",r(r.s="zNcT")}({zNcT:function(e,t,r){"use strict";r.r(t),r.d(t,"enu",(function(){return $})),r.d(t,"theme",(function(){return v})),r.d(t,"bus",(function(){return x})),r.d(t,"req",(function(){return w})),r.d(t,"reOb",(function(){return k})),r.d(t,"unOb",(function(){return j})),r.d(t,"unSet",(function(){return C})),r.d(t,"createStore",(function(){return T})),r.d(t,"dataMap",(function(){return _})),r.d(t,"fileMap",(function(){return M})),r.d(t,"webComp",(function(){return S})),r.d(t,"tc",(function(){return O})),r.d(t,"ob",(function(){return E})),r.d(t,"useWebComp",(function(){return b})),r.d(t,"createCacheComp",(function(){return y})),r.d(t,"directives",(function(){return A})),r.d(t,"directivesTool",(function(){return n})),r.d(t,"i18n",(function(){return m})),r.d(t,"t",(function(){return h})),r.d(t,"jsx",(function(){return f})),r.d(t,"default",(function(){return D}));var n={};let o,i;r.r(n),r.d(n,"clickOutside",(function(){return I})),r.d(n,"default",(function(){return z}));const s={setEnv(e){o=e.window,i=e.document},uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"_",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n__",r=(new Date).getTime();return t+`xxxxxxxx${e}xxxx${e}6xxx${e}yxxx${e}xxxxxxxxxxxx`.replace(/[xy]/g,(e=>{let t=(r+16*Math.random())%16|0;return r=Math.floor(r/16),("x"===e?t:3&t|8).toString(16)}))},reg:{phone:/^1[0-9]{10}$/,email:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,idCard:/^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/},getEnv(){const e=void 0!==o,t="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,r=t&&WXEnvironment.platform.toLowerCase(),n=e&&o.navigator.userAgent.toLowerCase(),s=n&&/msie|trident/.test(n),a=n&&n.indexOf("msie 9.0")>0,l=n&&n.indexOf("edge/")>0,c=n&&n.indexOf("android")>0||"android"===r,h=n&&/iphone|ipad|ipod|ios/.test(n)||"ios"===r,d=n&&/chrome\/\d+/.test(n)&&!l,m=n&&/phantomjs/.test(n),u=n&&n.match(/firefox\/(\d+)/);return{window:o,document:i,inBrowser:e,inWeex:t,weexPlatform:r,isIE:s,isIE9:a,isEdge:l,isAndroid:c,isIOS:h,isChrome:d,isPhantomJS:m,isFF:u}},date:{getRange(e){let{pre:t=["0hs","0ms","0ss","0Ss","23he","59me","59se","0Se"],sdm:r,edm:n,oper:o=[],format:i="yyyy-MM-dd HH:mm:ss"}=e;r=r||s.date.getMath(),n=n||s.date.getMath();const a={s:r,e:n};return[...t,...o].forEach((e=>{const t=e.match(/(-|\+)?(\d+)([a-z])(s|e)/i);if(!t)return;let[r,n,o,i,s]=t;o*=1,n?a[s][i]+=o*("+"===n?1:-1):a[s][i]=o})),[r.format(i),n.format(i)]},formatStr(e){let{str:t,outDate:r,format:n,defFill:o={h:0,m:0,s:0,S:0}}=e;t+="";const{isEmpty:i}=s,a={...o};let l;if(n){const e={M:"1,2",d:"1,2",H:"1,2",m:"1,2",s:"1,2",S:"1,3"},r=[];n=s.str.escape(n),["yyyy","MM","M","dd","d","HH","H","mm","m","ss","s","SSS","S"].forEach(((t,o)=>n=n.replace(t,(n=>(n=`#n#${o}#x#`,r.push([t,`(\\d{${e[t]||t.length}})`,n]),n))))),r.forEach((e=>{let[t,r,o]=e;return n=n.replace(o,r)})),l=t.match(new RegExp(n))||[],r.forEach(((e,t)=>{let[r]=e;return!i(l[t+1])&&(a[["M","S"].includes(r[0])?r[0]:r[0].toLowerCase()]=1*l[t+1])}))}else{l=t.replace(/\D/g,"").match(/^(\d{4})(\d{2})?(\d{2})?(?:(\d{2})(\d{2})?(\d{2})?(\d{3})?)?$/)||[];const[,e,r,n,o,s,c,h]=l;Object.entries({y:e,M:r,d:n,h:o,m:s,s:c,S:h}).forEach((e=>{let[t,r]=e;return!i(r)&&(a[t]=1*r)}))}return l.length?(a.match=l,r?new Date(a.y,a.M-1,a.d,a.h,a.m,a.s,a.S):a):null},getDateLen(e,t){let r;return"date"===s.isType(e)?(r=e.getFullYear(),t=e.getMonth()+1):r=e,[1,3,5,7,8,10,12].includes(t*=1)?31:[4,6,9,11].includes(t)?30:(r%4||!(r%100))&&r%400?28:29},getDateByYear(e,t,r){const n="date"===s.isType(e)?e:new Date(e,t-1,r),o=new Date(n.getFullYear(),0,1);return Math.floor((n.getTime()-o.getTime())/1e3/60/60/24)+1},getWeek(e){let{num:t,date:r,type:n="year",offset:o=1}=e;if(!["year","month"].includes(n))return!1;const i="date"===s.isType(r),a="number"===s.isType(t),l=s.date.getMath(i&&r);l.h=l.m=l.s=l.S=0;const c=s.date.getMath(l.date);let h;if(i&&!a){let e=l.date.getDay();e=0===e?7:e,l.d+=(o<=e?o+7:o)-e,c.date=l.date,c.d-=7,"year"===n&&(c.M=0),c.d=0;const t=0===c.date.getDay()?7:c.date.getDay();c.d=(o<t?o+7:o)-t,h=(s.date.getDateByYear(l.date)+(l.y===c.y?0:s.date.getDateByYear(c.y,12,31))-s.date.getDateByYear(c.date))/7}return a?(c.date=i?r:new Date,"year"===n&&(c.M=0),c.d+=7*t,s.date.getWeek({date:c.date,type:n,offset:o})):(c.date=l.date,c.d-=7,l.d--,{y:c.y,M:c.M+1,start:c.format("yyyy-MM-dd"),end:l.format("yyyy-MM-dd"),sDm:c,eDm:l,week:h})},format(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yyyy-MM-dd HH:mm:ss",t=arguments.length>1?arguments[1]:void 0;t=t||new Date;const{pad:r}=s.str,[n,o,i,a,l,c,h,d]=[t.getFullYear(),t.getMonth(),t.getDate()-1,t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds(),t.getTime()],m={yy:n%100,yyyy:r(n,4),M:o+1,MM:r(o+1),d:i+1,dd:r(i+1),H:a,HH:r(a),m:l,mm:r(l),s:c,ss:r(c),S:h,SSS:r(h,3),t:d};return["yyyy","yy","MM","M","dd","d","HH","H","mm","m","ss","s","SSS","S","t"].forEach((t=>e=e.replace(new RegExp(t,"g"),m[t]))),e},diff(e){let{s:t,e:r=(new Date).getTime(),unitMap:n={},diffList:o=["y","M","d","h","m","s","S"],format:i,outLabel:a=!0,singleLabel:l=!0}=e;const c=("date"===s.isType(r)?r.getTime():1*r)-("date"===s.isType(t)?t.getTime():1*t),h={wS:c,ws:~~(c/1e3),wm:~~(c/1e3/60),wh:~~(c/1e3/60/60),wd:~~(c/1e3/60/60/24),wM:~~(c/1e3/60/60/24/30),wy:~~(c/1e3/60/60/24/30/12),S:c%1e3,s:~~(c/1e3)%60,m:~~(c/1e3/60)%60,h:~~(c/1e3/60/60)%24,d:~~(c/1e3/60/60/24)%30,M:~~(c/1e3/60/60/24/30)%12,y:~~(c/1e3/60/60/24/30/12),dis:c};if(!a)return h;n=s.params.merge(n,{y:"年前",M:"个月前",d:"天前",h:"小时前",m:"分钟前",s:"秒前",S:"毫秒前",just:"刚刚"}),i=i||(e=>{let{k:t,label:r}=e;return"S"===t?n.just:r});const d=e=>{let o;const a=h[e];return"number"===s.isType(a)&&a>0&&(o=`${a}${n[e]}`),o=i?i({k:e,v:a,label:o,unitMap:n,format:i,s:t,e:r,dis:c,map:h}):o,o};return l?s.arr.findMap(o,d):s.arr.filterMap(o,d).join("")},getMath(e){const t={};Object.setPrototypeOf(t,{__isDateMath:!0,update(e){e=e||new Date,this.y=e.getFullYear(),this.M=e.getMonth(),this.d=e.getDate()-1,this.h=e.getHours(),this.m=e.getMinutes(),this.s=e.getSeconds(),this.S=e.getMilliseconds(),this.date=e},compute(){const e=["M","d","M","h","m","s","S"];for(let c=e.length-1;c>=0;c--){const t=e[c],r=this[t];if("number"!==s.isType(r)||r!=r){this[t]=0;continue}let n;switch(t){case"S":r>=1e3&&(n=~~(r/1e3),this.S=r%1e3,this.s+=n),r<0&&(n=Math.floor(r/1e3),this.S=r%1e3==0?0:1e3+r%1e3,this.s+=n);break;case"s":r>=60&&(n=~~(r/60),this.s=r%60,this.m+=n),r<0&&(n=Math.floor(r/60),this.s=r%60==0?0:60+r%60,this.m+=n);break;case"m":r>=60&&(n=~~(r/60),this.m=r%60,this.h+=n),r<0&&(n=Math.floor(r/60),this.m=r%60==0?0:60+r%60,this.h+=n);break;case"h":r>=24&&(n=~~(r/24),this.h=r%24,this.d+=n),r<0&&(n=Math.floor(r/24),this.h=r%24==0?0:24+r%24,this.d+=n);break;case"d":let e=s.date.getDateLen(this.y,this.M+1);if(r>=e&&(this.d=r-e,this.M++,c=3),r<0){0===this.M?this.y:this.y;e=s.date.getDateLen(this.y,0===this.M?12:this.M),this.d=r+e,this.M--,c=3}break;case"M":r>=12&&(n=~~(r/12),this.M=r%12),r<0&&(n=Math.floor(r/12),this.M=r%12==0?0:12+r%12),(r>=12||r<0)&&(this.y+=n,c=2)}}const{y:t,M:r,d:n,h:o,m:i,s:a,S:l}=this;this.date=new Date(t,r,n+1,o,i,a,l)},format(e){return s.date.format(e,this.date)},clone(){const e=new Date;return e.setTime(this.date.getTime()),s.date.getMath(e)}}),t.update(e);return new Proxy(t,{get:(e,t,r)=>"__self"===t?e:"__proxy"===t?r:e[t],set:(e,t,r,n)=>(e[t]=r,["y","M","d","h","m","s","S"].includes(t)&&e.compute(),["date"].includes(t)&&e.update(r),!0)})}},cookie:{set(e){const{k:t,v:r="",exp:n,path:o="/",domain:a,encode:l=1}=e;void 0===e.doc&&(e.doc=i);const c=`${t}=${l?encodeURIComponent(r):r}${n&&"date"===s.isType(n)?`; expires=${n.toGMTString()}`:""}${o?`; path=${o}`:""}${a?`; domain=${a}`:""}`;return e.doc&&(e.doc.cookie=c),c},get(e){let{k:t,decode:r=1,cookie:n=i.cookie}=e,o=n.match(new RegExp(`(?:^|;\\s)${t}=([^;]*)(?:;|$)`));return o=o&&o[1],o=o&&'"'===o[0]&&'"'===o.slice(-1)?o.replace(/^"|"$/g,""):o,o?r?decodeURIComponent(o):o:null},del(e){let{k:t,path:r}=e;const n=new Date;n.setTime(n.getTime()-1e4),this.set({k:t,exp:n,path:r})},encode(e){let{data:t,encode:r=1}=e;return Object.entries(t).map((e=>{let[t,n]=e;return"object"!==s.isType(n)?`${t}=${r?encodeURIComponent(n):n}`:(void 0===n.encode&&(n.encode=r),n.doc=null,this.set(n))})).join("; ")},formatKeyVal(e){let{s:t,decode:r=1,trim:n=1,outArr:o}=e;t=t.split("=");let i=t.slice(1).join("=");return i=i||"",i=n&&'"'===i[0]&&'"'===i.slice(-1)?i.replace(/^"|"$/g,""):i,i=r?decodeURIComponent(i):i,o?[t[0],i]:{k:t[0],v:i}},format(e){let{cookie:t=i.cookie,decode:r=1,trim:n=1}=e;const o={};return t.split("; ").forEach((e=>{const[t,i]=this.formatKeyVal({s:e,decode:r,trim:n,outArr:1});t&&(o[t]=i)})),o},formatSet(e){let{cookie:t,decode:r=1,trim:n=1}=e;const o=[];let i;for(;i=t.match(/,\s[^=;,\s]+=/),i=i?i.index:t.length,~i&&t.length;){const e=t.slice(0,i).split("; ");t=t.slice(i+2);const s=this.formatKeyVal({s:e.shift(),trim:n,decode:r});e.forEach((e=>{const[t,o]=this.formatKeyVal({s:e,decode:r,trim:n,outArr:1});t&&(s[t]=!e.match("=")&&""===o||o)})),o.push(s)}return o}},storage:{data:[],init(e,t){if(!e)return;t=t||o.localStorage;const r=this.data.find((r=>r.__before===e&&t===r.__self));if(r)return r;const n=new Proxy({__before:e,__self:t,__tg:null,getItem(e){return this.__self.getItem(`${this.__before}__${e}`)},setItem(e,t){return this.__self.setItem(`${this.__before}__${e}`,t)},removeItem(e){return this.__self.removeItem(`${this.__before}__${e}`)},clear(){return this.keys().forEach((e=>this.removeItem(e)))},key(e){return this.keys()[e]},keys(){return s.arr.filterMap(Object.keys(this.__self),(e=>0===(e+"").indexOf(this.__before+"__")&&e.replace(new RegExp(`^${s.str.escape(this.__before)}__`),"")))},values(){return this.keys().map((e=>this.getItem(e)))},entries(){return this.keys().map((e=>[e,this.getItem(e)]))},destroy(){s.arr.delItem(s.storage.data,null,(e=>e.__before===this.__before&&e.__self===this.__self),0)}},{get:(e,t)=>"length"===t?e.keys().length:"__tg"===t?e:t in e?e[t]:e.getItem(t),set:(e,t,r)=>(!(t in e)&&e.setItem(t,r),!0)});return this.data.push(n),n}},store:{data:{},init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t.id&&this.data[t.id];if(r)return r;const{storeBefore:n,storeKeys:i,computedKeys:a,getDep:l,curWatch:c,depMap:h,computedMap:d,id:m,saveInterval:u}=s.params.merge(t,{...s.clone(s.event),storeBefore:"",saveInterval:100,computedKeys:[],storeKeys:[],curWatch:[],depMap:{},computedMap:{},id:s.uuid(),store:o.localStorage,getDep:e=>{const t=h[e]=h[e]||{k:e,watchs:[],addWatch:e=>s.arr.set(t.watchs,e),delWatch:e=>s.arr.delItem(t.watchs,e),depend:()=>{const e=c.slice(-1)[0];e&&e.addDep(t)},notify:()=>t.watchs.forEach((e=>e.update()))};return t},on:{set:[{id:s.uuid(),sort:1,fun:e=>{let{state:t,k:r,v:n}=e;return t[r]=n}}],save:[{id:s.uuid(),sort:1,fun:e=>{let{state:t,proxy:r,conf:o,k:a,v:l}=e;o.emitEv("set",{state:t,proxy:r,k:a,v:l,conf:o});let c=i.find((e=>e.k===a));c=c&&c.store,c&&s.debounce.commit(`store-${m}:set-${a}`,(()=>c.setItem(n+a,JSON.stringify(l))),u)}}]},destroy:()=>{delete s.store.data[t.id]}});this.data[m]=t,i.forEach(((r,o)=>{i[o]=r=s.params.merge("string"===s.isType(r)?{k:r}:r,{k:"",store:t.store});const{k:a,store:l}=r;if(s.isEmpty(a)||!l)return;let c;try{if(c=l.getItem(n+a),s.isEmpty(c,[null,void 0]))return;c=JSON.parse(c)}catch(h){return}e[a]=c})),a.forEach(((t,r)=>{const n=a[r]=s.params.merge("function"===s.isType(e[t])?{get:e[t]}:e[t],{k:t,set(){},get(){},isUpdate:!0,deps:[],newDeps:[],update:()=>n.isUpdate=!0,cb:()=>{c.push(n),e[t]=n.get.call(null,p),c.pop(),n.nextDeps(),n.isUpdate=!1},addDep:e=>{n.newDeps.includes(e)||(n.newDeps.push(e),!n.deps.includes(e)&&e.addWatch(n))},depend:()=>n.deps.forEach((e=>e.depend())),nextDeps:()=>{n.deps.forEach((e=>!n.newDeps.includes(e)&&e.delWatch(n))),n.deps=n.newDeps,n.newDeps=[]}});d[n.k]=n}));const p=new Proxy(e,{get(e,r){if("__self"===r)return e;if("__conf"===r)return t;const n=d[r];if(n){n.isUpdate&&n.cb();c.slice(-1)[0]&&n.depend()}else l(r).depend();return e[r]},set(r,n,o){if(r[n]===o||o!=o&&r[n]!=r[n])return!0;const s=d[n];return s?s.set.call(null,p,o):(t.emitEv(i.some((e=>e.k===n))?"save":"set",{state:e,proxy:p,k:n,v:o,conf:t}),l(n).notify()),!0}});return t.state=e,t.proxy=p,p}},indexDb:{data:{},async init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.name&&this.data[e.name];if(t)return t;s.params.merge(e,{name:"n_tb",tb:["def"],...s.clone(s.event),on:{upgradeneeded:[{id:s.uuid(),sort:1,fun:t=>{let{target:{result:r}}=t;return e.tb.forEach((e=>!r.objectStoreNames.contains(e)&&r.createObjectStore(e,{keyPath:"k",autoIncrement:!1})))}}]},getStore(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"def";const{db:r}=e;if(r.objectStoreNames.contains(t))return r.transaction([t],"readwrite").objectStore(t)},async getItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"def";const r=this.getStore(t);if(!r)return;const n=r.get(e);return await new Promise((e=>{n.onsuccess=()=>e(1),n.onerror=t=>e(0,console.log(t))}))?n.result&&n.result.v:void 0},async setItem(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"def";const n=this.getStore(r);if(!n)return;const o=n.put({k:e,v:t});return new Promise((e=>{o.onsuccess=()=>e(1),o.onerror=t=>e(0,console.log(t))}))},async removeItem(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"def";const r=this.getStore(t);if(!r)return;const n=r.delete(e);return new Promise((e=>{n.onsuccess=()=>e(1),n.onerror=t=>e(0,console.log(t))}))},async clear(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"def";const t=this.getStore(e);if(!t)return;const r=t.clear();return new Promise((e=>{r.onsuccess=()=>e(1),r.onerror=t=>e(0,console.log(t))}))},async entries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"def";const t=this.getStore(e);if(!t)return;const r=t.getAll();return await new Promise((e=>{r.onsuccess=()=>e(1),r.onerror=t=>e(0,console.log(t))}))?(r.result||[]).map((e=>{let{k:t,v:r}=e;return[t,r]})):void 0},async keys(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"def";const t=await this.entries(e);return t?t.map((e=>{let[t]=e;return t})):void 0},async values(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"def";const t=await this.entries(e);return t?t.map((e=>{let[t,r]=e;return r})):void 0},destroy(){const{name:t,db:r}=e;r&&r.close(),e.db=e.dbReq=null,e.clearEv(),delete s.indexDb.data[t]}}),this.data[e.name]=e;const r=e.dbReq=o.indexedDB.open(e.name,1);r.onupgradeneeded=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.emitEv("upgradeneeded",...r)};return await new Promise((t=>{r.onsuccess=r=>(e.emitEv("success",r),t(1)),r.onerror=r=>(console.log(r),e.emitEv("error",r),t(0)),r.onblocked=r=>(console.log(r),e.emitEv("blocked",r),t(0))})).catch((e=>(console.log(e),!1)))?(e.db=r.result,["abort","close","error","versionchange"].forEach((t=>e.db[`on${t}`]=r=>e.emitEv(t,r))),e):void 0}},dataMap:{data:{},async init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.name&&this.data[e.name];if(t)return t;const{name:r,saveDb:n,saveInterval:i,noSaveKeys:a,loadBlobMap:l,mapBlobUrlSync:c,lazy:h,mapSync:d,loadLazyMap:m}=s.params.merge(e,{name:"n_dataMap",loadBlobMap:{},mapBlobUrlSync:{},saveDb:!0,saveInterval:100,noSaveKeys:[],lazy:!1,loadLazyMap:{},mapSync:{},async destroy(){e.wait.end=1,await e.wait.p,e.db&&e.db.destroy(),e.db=e.map=e.wait=null,delete s.dataMap.data[r]}});if(this.data[r]=e,!n||(e.db=await s.indexDb.init({name:r}),e.db)){if(!h&&e.db){const t=await e.db.entries();t&&t.forEach((e=>{let[t,r]=e;return d[t]=r}))}return e.wait=s.promise.queue(),e.map=new Proxy(d,{get(t,r){let n=t[r];return h?new Promise((async o=>{if(r in t||!e.db||a.includes(r))return o(n);if(m[r])return m[r];const i=m[r]=await e.db.getItem(r);m[r]=null,t[r]=i,o(i)})):n},set:(t,n,o)=>(t[n]===o||t[n]!=t[n]&&o!=o||(t[n]=o,e.mapBlobUrl[n]=void 0,!a.includes(n)&&e.db&&s.debounce.commit(`dataMap-${r}:set-${n}`,(()=>e.db&&e.wait.arr.push(s.isEmpty(o,[null,void 0])?e.db.removeItem(n):e.db.setItem(n,o))),i)),!0)}),e.mapBlobUrl=new Proxy(c,{async get(t,r){const n=await e.map[r];if(!n)return t[r]&&o.URL.revokeObjectURL(t[r]),t[r]=null,n;if(void 0!==t[r])return t[r];if(l[r])return l[r];const{accept:i,base64:a}=s.file.getDataUrlInfo(n)||{};return a&&i?l[r]=s.bgWork(`\n\t\t\t\t\t\t!((base64)=>{\n\t\t\t\t\t\t\tconst binary = atob( base64 );\n\t\t\t\t\t\t\tconst u8 = new Uint8Array(binary.length);\t\t\t\t\t \n\t\t\t\t\t\t\tlet i = binary.length;\n\t\t\t\t\t\t\twhile(i--){\n\t\t\t\t\t\t\t\tu8[i] = binary.charCodeAt(i);\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcb(u8)\n\t\t\t\t\t\t})("${a}")\n\t\t\t\t\t`).catch((e=>(console.log(e),!1))).then((e=>(l[r]=null,t[r]=e?o.URL.createObjectURL(new Blob([e],{type:i})):null))):n}}),e}}},enu(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{opts:t,format:r}=s.params.merge(e,{opts:{},format:null}),n=new Proxy(t,{get:(e,t,s)=>"__map"===t?o:"__mapItem"===t?i:r&&r({enu:n,tg:e,k:t})||e[t]||[]}),o=new Proxy({},{get:(e,t)=>(e[t]={},n[t].forEach((r=>e[t][r.value]=r.label)),e[t])}),i=new Proxy({},{get:(e,t)=>(e[t]={},n[t].forEach((r=>e[t][r.value]=r)),e[t])});return n},hideProp:(e,t)=>("array"===s.isType(t)?t:[t]).forEach((t=>Object.defineProperty(e,t,{writable:!0,configurable:!0,enumerable:!1}))),clone(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{filter:r}=t;let n;const o=s.isType(e);if(["object","array"].includes(o)){n="array"===o?[]:{};for(let o of Object.keys(e))n[o]=r?r({k:o,v:e[o],o:e,opt:t}):s.clone(e[o],t)}else n=r?r({o:e,opt:t}):e;return n},params:{getTreePath(e){let{data:t=[],id:r,checkFunc:n,props:o,format:i,paths:a=[]}=e;o={children:"children",id:"id",...o||{}};for(const l of t){if(n?n({id:r,item:l,data:t,props:o,paths:a}):l[o.id]===r)return a.push(i?i({id:r,item:l,data:t,props:o,paths:a}):l),a;if(!l[o.children])continue;a.push(i?i({id:r,item:l,data:t,props:o,paths:a}):l);const e=s.params.getTreePath({data:l[o.children],id:r,checkFunc:n,props:o,format:i,paths:a});if(e)return e;a.pop()}return!1},getObjPath(e){let{obj:t,k:r,checkFunc:n,format:o,paths:i=[],diffMap:a=new Map}=e;if(a.get(t))return!1;a.set(t,1);for(const[l,c]of Object.entries(t)){if(n?n({k:r,k2:l,v:c,obj:t,paths:i}):l===r)return i.push(o?o({k:r,k2:l,v:c,obj:t,paths:i}):c),i;if(!["object","array"].includes(s.isType(c)))continue;i.push(o?o({k:r,k2:l,v:c,obj:t,paths:i}):c);const e=s.params.getObjPath({obj:c,k:r,checkFunc:n,format:o,paths:i,diffMap:a});if(e)return e;i.pop()}return!1},merge(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{strategy:n,k:o,breakKey:i}=r;n||(n=(e,t,r)=>[void 0].includes(t)?r:t),i=i||"__n_mergeBreakKey";const a=s.isType(e),l=s.isType(t);let c;if(a===l&&["object"].includes(l)&&!e[i]&&e!==t){for(let r of Object.keys(t))e[r]=s.params.merge(e[r],t[r],{strategy:n,k:r,breakKey:i});c=e}else c=n(o,e,t);return c},optional(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return t={autoBindThis:!0,...t},new Proxy({__v:e,__parent:r},{get(e,r){if(["__v","__parent"].includes(r))return t.autoBindThis&&"__v"===r&&e.__parent&&"function"===s.isType(e.__v)?e.__v.bind(e.__parent):e[r];let n;try{n=e.__v[r]}catch(o){n=void 0}return s.params.optional(n,t,e.__v)},set:()=>(console.error("在__v属性里获取实际值来设置属性,不要在proxy里设置"),!1)})},formatLineObj(e,t){const r={};for(const n of Object.keys(e)){const o=n.split(".");if(1===o.length){r[n]=e[n];continue}let i=t?r:e;o.forEach(((t,r)=>{if(r===o.length-1)return i[t]=e[n];i[t]=i[t]||{},i=i[t]}))}return t?r:e},formatObjToLine(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t=t||e,Object.entries(t).forEach((t=>{let[n,o]=t;e[`${r}${n}`]=o,["array","object"].includes(s.isType(o))&&s.params.formatObjToLine(e,o,`${r}${n}.`)})),e},clearEmpty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[null,"NaN",void 0,""];const r=(o,i)=>!t.some((a=>"NaN"===a?i!=i:"[]"===a?"array"===s.isType(i)&&!i.length:"{}"===a?"object"===s.isType(i)&&!Object.keys(i).length:"function"===s.isType(a)?a({k:o,v:i,tg:e,res:n,verif:r,rule:t}):i===a));let n={};return"array"===s.isType(e)?(n=[],e.forEach(((e,t)=>r(t,e)&&n.push(e)))):Object.entries(e).forEach((e=>{let[t,o]=e;return r(t,o)&&(n[t]=o)})),n},objPropertyNameChange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"humpToSplit",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"_";if("object"!==s.isType(e))return e;const n=Object.keys(e).map((t=>[e,t]));for(;n.length;){let[e,o]=n.shift();const i=e[o];delete e[o],"humpToSplit"===t&&(o=this.humpToSplit(o,r)),"splitToHump"===t&&(o=this.splitToHump(o,r)),e[o]=i,"object"===s.isType(i)&&n.unshift(...Object.keys(i).map((e=>[i,e])))}return e},humpToSplit(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return(e+="").length?e[0]+e.slice(1).replace(/([A-Z])/g,(e=>t+e.toLowerCase())):e},splitToHump(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return(e+="").length?e.split(t).reduce(((e,r)=>(s.isEmpty(e)?t:e)+(s.isEmpty(r)?t:r)[0].toUpperCase()+r.slice(1))):e},formatUrlSearch(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=(e+="").match(/\?([^\?\#]+)/);if(r=r&&r[1]||e,!r)return{};const n={};return r.split("&").forEach((e=>{e=(t?decodeURIComponent(e):e).split("="),n[e[0]]=e.slice(1).join("=")})),n},formatObjToUrlSearch(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!["array","object"].includes(s.isType(e))||!Object.keys(e).length)return t||"";const o=e=>{let t={};e.forEach((e=>t={...t,...e}));let o=Object.entries(t);return o=n?o.sort(((e,t)=>n>0?e[0].localeCompare(t[0]):t[0].localeCompare(e[0]))):o,o=o.map((e=>{let[t,n]=e;return`${r?encodeURIComponent(t):t}=${r?encodeURIComponent(n):n}`})).join("&"),o};if(!t)return o([e]);const i=/\?([^\?\#]+)/;return(t+="").match(i)?t.replace(i,(n=>{const i=s.params.formatUrlSearch(t,r?1:0);return`?${o([i,e])}`})):`${t}?${o([e])}`}},arr:{replace(e,t){const r=[];if(!e)return r;for(let n=0;n<e.length;n++){const o=e[n],i=t(o,n,e);"array"===s.isType(i)&&(r.push(o),e.splice(n,1,...i),n+=i.length-1)}return r},clearRepeat(e,t){const r=[],n=new Map;if(!e)return r;for(let o=0;o<e.length;o++){const i=e[o],s=t?t(i,o,e,n):i;n.get(s)?(r.push(i),e.splice(o,1),o--):n.set(s,1)}return r},delItem(e,t,r,n){const o=[];if(!e)return o;for(let i=0;i<e.length;i++){const s=e[i];if((r?r(s,i,e):s===t)&&(e.splice(i,1),i--,o.push(s),n))break}return o},findMap(e,t){let r;return e&&e.some(((n,o)=>r=t(n,o,e))),r},filterMap(e,t){const r=[];return e?(e.forEach(((n,o)=>{const i=t(n,o,e);i&&r.push(i)})),r):r},set(e,t,r){for(let n=0;n<e.length;n++){const o=e[n];if(r?r(o,n,e):o===t)return}e.push(t)}},path:{format(e){if(!(e=(e&&e+""||"").trim()))return;e=e.replace(/\\/g,"/");let t="",r="",n="";r=e.match(/^([^]+?)\:\/{2,}/i)||"",r&&(e=e.slice(r[0].length),n=r[0],r=r[1],t=e.match(/^([a-zA-Z0-9_]+)\:\/{1,}/i)||"",t&&(e=e.slice(t[0].length),n+=t[0],t=t[1]));const o=(e=e.replace(/\/{2,}/g,"/").replace(/^\//,"")).split(/\/+/);return{paths:o,protocol:r,disk:t,pre:n,realPath:n+o.join("/")}},join(e,t,r){const n=s.path.format(e),o=s.path.format(t);return n&&!o?e:o&&!n?t:(o.paths.forEach((e=>{if("."!==e&&e)return".."===e?n.paths.pop():void n.paths.push(e)})),r?n:n.pre+n.paths.join("/"))}},bitMap(e){const t="array"===s.isType(e)?e:new Array(e).fill(0);return{data:t,size:e=t.length,set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=Math.floor(e/32);if(r>=this.size||r<0)return console.error("超出位图");const n=1<<31-e%32,o=this.data[r];this.data[r]=t?o|n:~(~o|n)},has(e){const t=Math.floor(e/32);return t>=this.size||t<0?console.error("超出位图"):!!(this.data[t]&1<<31-e%32)}}},str:{pad:function(e){return(e+"")[(arguments.length>3&&void 0!==arguments[3]?arguments[3]:1)?"padStart":"padEnd"](arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0")},chineseNumToNum(e){let{txt:t,unitList:r,unitValMap:n,numMap:o,isChild:i,format:a}=s.params.merge(e,{txt:"",isChild:0,format:null,unitList:["兆","亿","万","千","百","十"],unitValMap:{"十":10,"百":100,"千":1e3,"万":1e4,"亿":1e8,"兆":1e12},numMap:{"零":0,"〇":0,"一":1,"二":2,"三":3,"四":4,"五":5,"六":6,"七":7,"八":8,"九":9,"十":10}});if(t=(t+"").replace(/[^零〇一二三四五六七八九十百千万亿兆]/g,"").replace(/〇/g,"零").replace(/^零+/,""),1===t.length)return o[t]||0;let l=0;return r.forEach((r=>{const o=t.match(r)&&t.split(r);o&&(t=o[1]||"",l+=s.str.chineseNumToNum({...e,isChild:1,txt:o[0]})*n[r])})),t=t.replace(/^零+/,""),1===t.length&&(l+=o[t]||0),l=a?a({conf:e,res:l}):l,l},numToChineseNum(e){let{num:t,unitList:r,unitValMap:n,numMap:o,format:i,isChild:a,unitChildMap:l}=s.params.merge(e,{num:0,isChild:0,origNum:0,format:e=>{let{conf:{isChild:t,origNum:r},res:n}=e;return t?n:n.replace(/^一十/,"十").replace(/零一十/g,"零十")},unitList:["兆","亿","万","千","百","十"],unitChildMap:{"兆":["千","百","十"],"亿":["千","百","十"],"万":["千","百","十"],"千":[],"百":[],"十":[]},unitValMap:{"十":10,"百":100,"千":1e3,"万":1e4,"亿":1e8,"兆":1e12},numMap:{0:"零",1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七",8:"八",9:"九",10:"十"}});e.origNum=t=Math.floor(1*t||0);if(!r.length)return o[t]||"";let c="";return r.forEach((r=>{const o=Math.floor(t/n[r]);t-=o*n[r];let i=s.str.numToChineseNum({...e,unitList:l[r],isChild:1,num:o});0!==o&&(i+=r),c+=i})),t>0&&t<10&&(c+=o[t]||""),c=a?c:c.replace(/^零+/,""),c=c.replace(/零+$/,"").replace(/零{2,}/,"零"),c=i?i({conf:e,res:c}):c,c},thousand(e){const t=(e+="").match(/^-/)?"-":"",r=e.replace(/^-/,"").split(".");let n=(e=r[0]).length-1,o=0,i="",s=r[1];for(;n>=0;n--)i=e[n]+i,++o>=3&&n>0&&(o=0,i=","+i);return t+i+(s?"."+s:"")},textEllipsis(e){let{str:t,lineLen:r=100,syb:n="...",breakWrap:o,max:i=50,lineMax:s}=e,a=0,l=0,c=0,h=0;for(let d=0;d<t.length;d++)if(c=t.charCodeAt(d)>=255?2:1,l+=c,h+=c,(l>=r||"\n"===t[d]&&!o)&&(l=0,a++),s&&a>s||i&&h>i)return t.slice(0,d-n.length)+n+"__"+a;return t},firstLetter(e){if("string"!==s.isType(e))return!1;const t="abcdefghjklmnopqrstwxyz";let r,n="";for(const o of e){if(r=0,o.match(/[\u4e00-\u9fa5]/))for(let e=0;e<23;e++)if(!(o.localeCompare("驁簿錯鵽樲酜過靃攟鬠纙鞪糯慪曝裠鶸嗦籜錻鑂繧咗"[e])>0)){n+=t[e],r=1;break}r||(n+=o)}return n},halfMap:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-_=+[]{}|;:'\",.<>/? `~",isHalf:e=>!!s.str.halfMap.match(e),to16:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.split("").map((e=>t+e.charCodeAt(0).toString(16))).join("")},escape:e=>e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1"),escapeHtmlTag:e=>(e+"").replace(/</gi,"<").replace(/>/gi,">"),getLen:(e,t)=>{const r=[...new Intl.Segmenter("und",{granularity:"grapheme"}).segment(e+"")].map((e=>e.segment));return t?r:r.length}},isEmpty:function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:["",null,void 0]).includes(e)},isType(e,t){let{exact:r,map:n}=t||{};n=n||{asyncFunction:"function"};let o=Object.prototype.toString.call(e);return o=o.match(/\[object\s([a-zA-Z0-9]+)\]/),o=o[1]||"",o=o[0].toLowerCase()+o.slice(1),r?o:n[o]||o},random:(e,t,r)=>Math[r?"round":"floor"](Math.random()*(t-e))+e,sleep:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return new Promise((r=>(t?s:o).setTimeout(r,e)))},setTimeout(e,t){const r=s.setTimeout.data=s.setTimeout.data||{},n=s.uuid(),i=`\n\t\t\tlet timer = setTimeout(()=> self.postMessage('handle'), ${t});\n\t\t\tself.onmessage = ()=>{\n\t\t\t\tself.postMessage('end')\n\t\t\t\tclearTimeout(timer)\n\t\t\t};\n\t\t`;let a=new Worker(o.URL.createObjectURL(new Blob([i])));const l=()=>{a&&a.terminate(),a=null,delete r[n]};return a.onmessage=t=>{let{data:o}=t;"handle"===o&&(e(),r[n]()),"end"===o&&l()},a.onerror=e=>l(console.log(e)),r[n]=()=>a.postMessage("end"),n},clearTimeout(e){const t=s.setTimeout.data=s.setTimeout.data||{};t[e]&&t[e]()},setInterval(e,t){const r=s.setInterval.data=s.setInterval.data||{},n=s.uuid(),i=`\n\t\t\tlet timer = setInterval(()=> self.postMessage('handle'), ${t});\n\t\t\tself.onmessage = ()=>{\n\t\t\t\tself.postMessage('end')\n\t\t\t\tclearInterval(timer)\n\t\t\t};\n\t\t`;let a=new Worker(o.URL.createObjectURL(new Blob([i])));const l=()=>{a&&a.terminate(),a=null,delete r[n]};return a.onmessage=t=>{let{data:r}=t;"handle"===r&&e(),"end"===r&&l()},a.onerror=e=>l(console.log(e)),r[n]=()=>a.postMessage("end"),n},clearInterval(e){const t=s.setInterval.data=s.setInterval.data||{};t[e]&&t[e]()},bgWork:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"cb";return new Promise((r=>{const n=`${t} = data => self.postMessage(data); ${"function"===s.isType(e)?`(${e.toString()})()`:e}`;let i=new Worker(o.URL.createObjectURL(new Blob([n])));const a=e=>{r(e),i.terminate(),i=null};i.onmessage=e=>{let{data:t}=e;return a(t)},i.onerror=e=>a(void 0,console.log(e))}))},async jsonp(e){let{url:t,params:r,cbKey:n="cbName",exact:a,timeout:l,cbName:c}=e;const h=i.createElement("script");let d;c=c||"cb"+s.uuid(),h.src=s.params.formatObjToUrlSearch({...r,[n]:c},t),i.head.appendChild(h);const m=a?s:o,u=await new Promise((e=>{l&&(d=m.setTimeout((()=>e(!1)),l)),o[c]=e,h.onerror=()=>e(!1)})).catch((e=>(console.log(e),!1)));return m.clearTimeout(d),delete o[c],m.setTimeout((()=>h.remove()),1e3),u},async request(e){s.params.merge(e,{...s.clone(s.event),on:{},url:"",method:"get",data:void 0,timeout:0,params:void 0,resHeads:{},headers:{},responseType:"json",baseUrl:null,withCredentials:!1,cache:null,cacheKey:null,cacheExp:500});let t,{url:r,baseUrl:n,headers:i,method:a,data:l,cache:c,params:h,cacheKey:d,resHeads:m}=e;if(a=e.method=(a+"").toLowerCase(),!r.match(/^http/)&&n&&(r=n+r),e.realUrl=r=s.params.formatObjToUrlSearch(h,r),["post","put","delete"].includes(a)&&["array","object"].includes(s.isType(l))&&(l=JSON.stringify(l),void 0===i["content-type"]&&(i["content-type"]="application/json")),void 0===i["content-type"]&&"string"===s.isType(l)&&(i["content-type"]="application/x-www-form-urlencoded"),c){const n=(new Date).getTime();if(Object.entries(c).forEach((e=>{let[t,r]=e;return r.exp<=n&&delete c[t]})),e.cacheKey=d=d||s.md5.s32(JSON.stringify({url:r,data:l,params:h,headers:i,method:a})),t=c[d],t)return t.promise();t=c[d]={exp:n+e.cacheExp,res:void 0,isOk:0,arr:[],promise:()=>new Promise((e=>t.isOk?e(t.res):t.arr.push(e)))}}const u=e.xhr=new o.XMLHttpRequest;let p;u.responseType=e.responseType,u.withCredentials=e.withCredentials,u.open(a,r,!0),u.timeout=e.timeout,Object.entries(i).forEach((e=>{let[t,r]=e;return!s.isEmpty(r,[null,void 0])&&u.setRequestHeader(t,r)})),e.abort=function(){return u.abort(...arguments)},e.sendData=l,["abort","error","load","loadstart","readystatechange","progress","timeout"].forEach((t=>u[`on${t}`]=r=>e.emitEv(t,r))),["abort","error","load","loadstart","loadend","progress","timeout"].forEach((t=>u.upload[`on${t}`]=r=>e.emitEv(`${t}Upload`,r))),u.onloadend=t=>{e.emitEv("loadend",t),"function"===s.isType(p)?p():p=1},u.send(l),await new Promise((e=>p?e():p=e));const f=u.getAllResponseHeaders();return f&&f.split(/\r\n/).forEach((e=>{if(!e)return;const t=(e=e.split(":"))[0].trim(),r=e.slice(1).join(":").trim();m[t];if(s.isEmpty(m[t],[null,void 0]))return m[t]=r;"array"!==s.isType(m[t])&&(m[t]=[m[t]]),m[t].push(r)})),t&&(t.arr.forEach((e=>e(u.response))),t.isOk=1,t.res=u.response),u.response},ws(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.params.merge(e,{url:"",opt:void 0,ws:null,sendList:[],timer:null,isDestroy:!1,responseType:"json",reconnTime:5e3,...s.clone(s.event),on:{open:[],close:[],message:[],error:[]},initEv(t){const{ws:r}=e;r&&(r[`on${t}`]=r=>e.on[t].forEach((e=>{let{fun:t}=e;const n=t(r);r=void 0===n?r:n})))},send(t){const{ws:r,sendList:n}=e;if(["object","array"].includes(s.isType(t)))try{t=JSON.stringify(t)}catch(o){}if(!r||r.readyState!==r.OPEN)return n.push(t);r.send(t)},close(t){const{ws:r,timer:n}=e;o.clearTimeout(n),r&&(t&&r.close(),r.onmessage=r.onopen=r.onerror=r.onclose=null,r.closeEv(),t||r.close(),e.ws=null)},destroy(){e.isDestroy=!0,e.close(1),e.sendList.length=0,e.clearEv()},async conn(){let{ws:t,opt:r,initEv:n,bindEv:i,unEv:a,url:l,isDestroy:c}=e;if(c)return;t&&e.close(),e.ws=t=new WebSocket(l,r),t.id=s.uuid(),n("open"),n("message"),n("error"),n("close");const h=[["open",()=>{let{send:t,sendList:r}=e;for(r=[...r];r.length;)t(r.shift())}],["message",t=>{let r=t.data;try{r="json"===e.responseType?JSON.parse(r):r}catch(t){}return{data:r,e:t}}],["close",()=>{e.close(),e.reconnTime>=0&&(e.timer=o.setTimeout(e.conn,e.reconnTime))}]].map((t=>{let[r,n]=t;return[r,e.bindEv(r,n,1e3)]}));t.closeEv=()=>h.forEach((t=>{let[r,n]=t;return e.unEv(r,n)}))}}),e},sort:{quick(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const r="function"===s.isType(t)?t:(e,r)=>t>0?e-r:r-e;if(e.length<=1)return e;if(2===e.length)return r(e[0],e[1])>0?[e[1],e[0]]:e;let n,o=e[0],i=[],a=[o],l=[];for(let s=1;s<e.length;s++)n=r(e[s],o),(0===n?a:n<0?i:l).push(e[s]);return a.unshift(...s.sort.quick(i,t)),a.push(...s.sort.quick(l,t)),a}},file:{getSuffix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const r=(e=(e+"").split("?")[0]).slice(e.lastIndexOf(".")+1).trim();return t?r.toLowerCase():r},getName(e,t){if(e=(e+"").split("?")[0].match(/([^\\\/]*)\.([^\.\\\/]+)\s*$/))return t?{reg:e,name:e[0],short:e[1],suffix:e[2]}:e[0]},test(e){let{files:t,maxSize:r,types:n}=e;if(!t||!t.length)return 0;for(const o of t){if(r&&r<o.size)return 0;if(n&&!n.includes(s.file.getSuffix(o.name).toLowerCase()))return 0}return 1},async getMedia(e){let{src:t,type:r="img",timeout:n}=e;if(!r||!t)return;const s=i.createElement(r);s.src=t;return await new Promise((e=>{s["img"===r?"onload":"oncanplaythrough"]=()=>e(1),s.onerror=()=>e(0),n&&o.setTimeout((()=>e(0)),n)}))?s:null},download(e,t){const r=i.createElement("a");r.href=e,r.target="_blank",r.download=t,r.click(),o.setTimeout((()=>r.remove()),3e3)},exportCsv(e){let{cols:t=[],rows:r=[],showHead:n=!0,download:i=!0,fileName:a="数据",format:l}=e;l=l||(e=>{let{cell:t}=e;return s.isEmpty(t)?"":(t+"").replace(/\"/g,'""')});const c=[n&&t.map(((e,t)=>`"${l({cell:e.label,colIdx:t,col:e})}"`)).join(","),...r.map(((e,r)=>t.map(((t,n)=>`"${l({cell:e[t.k],row:e,idx:r,colIdx:n,col:t})}"`)).join(",")))].filter((e=>e)).join("\n");if(!i)return c;const h=new Blob([c],{type:"text/plain"}),d=o.URL.createObjectURL(h);this.download(d,a+".csv"),o.URL.revokeObjectURL(d)},compilerCsv(e){let{csv:t="",head:r=!1,syb:n=",",standard:o=!0}=e;t+="";const i=[];if(o){let e,r;for(let n of t.split("\n")){if(!n)break;const t=[];for(e=0;e=n.indexOf('"',e),~e&&(r=n.indexOf('"',e+1),~r);){for(;'""'===n.slice(r,r+2)&&(r=n.indexOf('"',r+2),~r););if(!~r)break;t.push(n.slice(e+1,r).replace(/\"\"/g,'"')),e=r+1}i.push(t)}}else t.split("\n").forEach((e=>e&&i.push(e.split(n))));if(!r)return i;if(!i.length)return;const s=i.shift();return{head:s,data:i.map((e=>{const t={};return s.forEach(((r,n)=>t[r]=e[n])),t}))}},buffToBase64(e,t){let r="";return new Uint8Array(e).forEach((e=>r+=String.fromCharCode(e))),t?o.btoa(r):s.baseEncrypt.en({str:r,utf8:!1})},async fileToBase64(e,t){const r=await e.arrayBuffer().catch((e=>(console.log(e),!1)));return r&&s.file.buffToBase64(r,t)},getDataUrlInfo(e,t){const r=(e=(e+"").trim()).slice(0,100).match(/^data\:([^;]+);base64,/);if(!r)return;const[n,o]=r,i=e.slice(n.length);return t?[o,i]:{accept:o,base64:i}},base64ToUint8(e,t){e+="";const{accept:r,base64:n}=s.file.getDataUrlInfo(e)||{};if(!n||!r)return;const i=t?o.atob(n):s.baseEncrypt.de({str:n,utf8:!1}),a=new Uint8Array(i.length);let l=i.length;for(;l--;)a[l]=i.charCodeAt(l);return{u8:a,accept:r,base64:n}},base64ToFile(e,t,r){const n=s.file.base64ToUint8(e,r);return n&&new File([n.u8],t||`文件.${n.accept.split("/")[1]||n.accept}`,{type:n.accept})},buffToFile:(e,t,r)=>new File([new Uint8Array(e)],t||"文件",{type:r}),base64ToBlobUrl(e,t){const r=s.file.base64ToBlob(e,t);return r&&o.URL.createObjectURL(r)},base64ToBlob(e,t){const r=s.file.base64ToUint8(e,t);return r&&new Blob([r.u8],{type:r.accept})},async blobToBuff(e){const t=new FileReader;t.readAsArrayBuffer(e);return await new Promise((e=>{t.onload=()=>e(t.result),t.onerror=()=>e(!1)}))},mergeBuff(e){if(!e.length)return!1;const t=e.map((e=>e.byteLength)).reduce(((e,t)=>e+t)),r=new Uint8Array(t);let n=0;for(const o of e)r.set(new Uint8Array(o),n),n+=o.byteLength;return r},strWriteView(e,t,r){for(let n=0;n<r.length;n++)e.setUint8(t+n,r.charCodeAt(n))},channelDataToWav(e,t){const r=4*e.length,n=new ArrayBuffer(44+r),o=new DataView(n),{strWriteView:i}=s.file;i(o,0,"RIFF"),o.setUint32(4,36+r,!0),i(o,8,"WAVE"),i(o,12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,3,!0),o.setUint16(22,1,!0),o.setUint32(24,t,!0),o.setUint32(28,1*t*4,!0),o.setUint16(32,4,!0),o.setUint16(34,32,!0),i(o,36,"data"),o.setUint32(40,r,!0);for(let s=0;s<e.length;s++)o.setFloat32(44+4*s,e[s],!0);return n},async getVideoCover(e){let{src:t,video:r,exp:n=2e3,curTime:s=0,srcObject:a}=e;if(!t&&!a&&!r)return;const l=e=>new Promise((t=>{r.oncanplaythrough=()=>t(1),r.onerror=()=>t(0),e&&o.setTimeout((()=>t(1)),e)}));let c,h;if(!r){if(r=i.createElement("video"),r.muted=!0,t?r.src=t:a&&(r.srcObject=a),c=await l(),!c)return;h=1}if(s>=0&&(r.currentTime=s,c=await l(n),!c))return;const d=i.createElement("canvas"),m=d.getContext("2d");return d.width=r.videoWidth,d.height=r.videoHeight,m.drawImage(r,0,0,d.width,d.height),c=d.toDataURL("image/png",1),h&&r.remove(),d.remove(),c},async compressImg(e){let{src:t,q:r=1,r:n=.7,timeout:s,w:a,h:l,type:c="image/jpeg"}=e;(r>1||r<=0)&&(r=1);const[h,d]=[new Image,i.createElement("canvas")];h.src=t,h.style.position="fixed",h.style.left="-9999px",a&&(h.style.width=a),l&&(h.style.height=l),i.body.appendChild(h);let m=await new Promise((e=>{h.onload=()=>e(1),h.onerror=()=>e(0),s&&o.setTimeout((()=>e(0)),s)}));if(!m)return!1;a=d.width=h.clientWidth*n,l=d.height=h.clientHeight*n;return d.getContext("2d").drawImage(h,0,0,a,l),m=d.toDataURL(c,r),h.remove(),d.remove(),m},async chooseFile(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{maxSize:t,onError:r,types:n,limit:a,outType:l,globalBase64:c,outArr:h,accept:d,interval:m}=s.params.merge(e,{globalBase64:!1,onError:null,maxSize:null,types:null,limit:1,outType:"file",outArr:null,accept:"",interval:1e3}),u=e.input=e.input||i.createElement("input");let p,f;u.type="file",u.multiple=a>1,u.accept=d;let g=await new Promise((e=>{f=async()=>{await new Promise((e=>o.setTimeout(e,m))),!p&&e()},o.addEventListener("focus",f),u.onchange=()=>{p=1,e([...u.files]),u.value=""},u.click()}));if(o.removeEventListener("focus",f),e.files=e.res=g=(g||[]).slice(0,a),g.length){if(!s.file.test({files:g,maxSize:t,types:n}))return r&&r({conf:e,errType:"typeSize"}),null;if("base64"===l){new FileReader;if(e.res=await s.promise.all(g.map((e=>s.file.fileToBase64(e,c)))),e.res=e.res.filter((e=>e)),!e.res.length)return r&&r({errType:"base64",conf:e}),null}return 1!==a||h?e.res:e.res[0]}},async isType(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t={"37,80,68,70,45,49,46,55":"pdf","0,0,0,32,102,116,121,112":"mp4","31,139,8,0,231,146,228,99":"com","71,73,70,56,57,97,88,2":"gif","255,251,176,100,0,0,0,0":"mp3","82,97,114,33,26,7,1,0":"rar","77,90,80,0,2,0,0,0":"exe","255,216,255,224,0,16,74,70":"jpg","119,79,70,70,0,1,0,0":"woff","80,75,3,4,20,3,0,0":"apk","137,80,78,71,13,10,26,10":"png","82,73,70,70,118,72,0,0":"webp","77,90,144,0,3,0,0,0":"exe","56,66,80,83,0,1,0,0":"psd","116,168,166,253,85,111,1,93":"mgg","80,75,3,4,20,0,0,0":"zip","208,207,17,224,161,177,26,225":"office","80,75,3,4,10,0,0,0":"office","80,75,3,4,20,0,6,0":"office","123,92,114,116,102,49,32,92":"rtf",...t};const r=s.isType(e);let n;if("file"===r){if(n=await e.arrayBuffer().catch((e=>(console.log(e),!1))),!n)return!1}else{if("arraybuffer"!==r)return console.log("参数格式错误"),!1;n=e}const o=new DataView(n);return t[new Array(8).fill(1).map(((e,t)=>o.getUint8(t))).join(",")]}},compress:{clearNote:e=>(e+"").replace(/\/\/[^\n]*(\n*)/g,((e,t)=>t||"")).replace(/\/\*[^]*?\*\//g,""),css:e=>s.compress.clearNote(e).replace(/\n/g,"").replace(/\;\s+([^\s])/g,"; $1")},event:{on:{},bindEv(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const n=this.on[e]=this.on[e]||[],o={id:s.uuid(),fun:t,sort:r};return n.push(o),n.sort(((e,t)=>t.sort-e.sort)),o},unEv(e,t){const r=this.on[e]=this.on[e]||[],n="function"===s.isType(t)?"fun":"id";s.arr.delItem(r,null,(e=>e===t||e[n]===t))},emitEv(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return(this.on[e]=this.on[e]||[]).map((e=>{let{fun:t}=e;return t(...r)}))},clearEv(){Object.values(this.on).forEach((e=>e.length=0))}},bus:{data:{},on(e,t){this.un(e),this.data[e]={name:e,fun:t}},emit(e){const t=this.data[e];for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return t?t.fun(...n):void 0},un(e){delete this.data[e]}},loopFun:{timer:null,exact:!1,data:[],commit(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;const{loopFun:n}=s;n.del(e),n.data.push({name:e,fun:t,interval:r,runTime:(new Date).getTime()+r}),n.run()},del(e){e="object"===s.isType(e)?e.name:e,s.arr.delItem(s.loopFun.data,null,(t=>t.name===e))},run(){const{loopFun:e}=s,t=e.exact?s:o;t.clearTimeout(e.timer);let r=Number.MAX_VALUE,n=(new Date).getTime();e.data.forEach((e=>{e.runTime<n&&(e.fun(),e.runTime=n+e.interval);const t=e.runTime-n;r>t&&(r=t)})),r=r<0?0:r,e.data.length&&(e.timer=t.setTimeout(e.run,r))}},debounce:{data:{},commit(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=arguments.length>3?arguments[3]:void 0,i=this.data[e];i||(i={name:e,interval:r},this.data[e]=i);const a=n?s:o;a.clearTimeout(i.timer),i.fun=t;const l=()=>{t(),delete this.data[e]};if(0===r)return l();i.timer=a.setTimeout(l,r)}},throttle:{data:{},commit(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;"number"!==s.isType(this.data[e])&&delete this.data[e];const n=(new Date).getTime();this.data[e]&&this.data[e]>n||(this.data[e]=n+r,t())},commitAfter(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=arguments.length>3?arguments[3]:void 0;if("object"!==s.isType(this.data[e])&&delete this.data[e],this.data[e])return this.data[e].again=t;if(0===r)return t();const i=n?s:o,a=this.data[e]={again:!1,timer:null},l=()=>i.setTimeout((()=>{if(t(),a.again)return t=a.again,a.again=!1,l();delete this.data[e]}),r);l()}},runQueue:{data:{},commit(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,n=arguments.length>3?arguments[3]:void 0,i=this.data[e];if(i||(i={name:e,list:[],isRun:!1,interval:r},this.data[e]=i),i.interval=r,i.list.push(t),i.isRun)return;i.isRun=!0;const a=n?s:o,l=()=>{a.clearTimeout(i.timer);const t=i.list.shift();if(t&&t(),!i.list.length)return delete this.data[e];i.timer=a.setTimeout(l,i.interval)};a.setTimeout(l,1)}},anim:{fun:{linear:e=>e,quadraticIn:e=>e*e,quadraticOut:e=>e*(2-e),quadraticInOut:e=>(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1),cubicIn:e=>e*e*e,cubicOut:e=>--e*e*e+1,cubicInOut:e=>(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2),quarticIn:e=>e*e*e*e,quarticOut:e=>1- --e*e*e*e,quarticInOut:e=>(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),quinticIn:e=>e*e*e*e*e,quinticOut:e=>--e*e*e*e*e+1,quinticInOut:e=>(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),sinusoidalIn:e=>1-Math.cos(e*Math.PI/2),sinusoidalOut:e=>Math.sin(e*Math.PI/2),sinusoidalInOut:e=>.5*(1-Math.cos(Math.PI*e)),exponentialIn:e=>0===e?0:Math.pow(1024,e-1),exponentialOut:e=>1===e?1:1-Math.pow(2,-10*e),exponentialInOut:e=>0===e||1===e?e:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1))),circularIn:e=>1-Math.sqrt(1-e*e),circularOut:e=>Math.sqrt(1- --e*e),circularInOut:e=>(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),elasticIn:e=>{let t,r=.1;return 0===e||1===e?e:(!r||r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:e=>{let t,r=.1;return 0===e||1===e?e:(!r||r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:e=>{let t,r=.1,n=.4;return 0===e||1===e?e:(!r||r<1?(r=1,t=.1):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:(e,t)=>e*e*(((t=1.70158)+1)*e-t),backOut:(e,t)=>--e*e*(((t=1.70158)+1)*e+t)+1,backInOut:(e,t)=>(t=2.5949095,(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)),bounceIn:e=>1-s.anim.fun.bounceOut(1-e),bounceOut:e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,bounceInOut:e=>e<.5?.5*s.anim.fun.bounceIn(2*e):.5*s.anim.fun.bounceOut(2*e-1)+.5},frame(e){let{step:t,sv:r,ev:n,lastStep:o,animFunc:i}=e;t++,e.step=t=t>o?o:t<0?0:t;const a=s.anim.fun,l=s.isType(i);i="function"===l?i:"string"===l&&a[i]||a.linear,e.v=r+(n-r)*i(t/o||0)}},color:{getLineGradient(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!e.length)return!1;if(1===e.length)return new Array(t).fill(e[0]);const r=[],n=Math.ceil(t/(e.length-1));for(let o=0;o<e.length-1;o++){const[t,i]=[e[o],e[o+1]];for(let e=0;e<n;e++)r.push(this.mix(t,i,1-e/(n-1)))}return r.slice(0,t)},hslToRgb(e,t){if(!(e=(e+"").replace(/\s/g,"").match(/hsla?\s*\(([^\(\)]+)\)/)))return!1;if(e=e[1].split(",").slice(0,4).map((e=>1*e)),![3,4].includes(e.length))return;3===e.length&&(e[3]=1);const r=(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e),[n,o,i,s]=e;let a,l,c;if(0===o)a=l=c=i;else{const e=i<.5?i*(1+o):i+o-i*o,t=2*i-e;a=r(t,e,n+1/3),l=r(t,e,n),c=r(t,e,n-1/3)}const h=[Math.round(255*a),Math.round(255*l),Math.round(255*c),s];return t?h:`rgba(${h.join(",")})`},hsvToRgb(e,t){if(!(e=(e+"").replace(/\s/g,"").match(/hsva?\s*\(([^\(\)]+)\)/)))return!1;if(e=e[1].split(",").slice(0,4).map((e=>1*e)),![3,4].includes(e.length))return;3===e.length&&(e[3]=1);let[r,n,o,i]=e;r*=6;const s=Math.floor(r),a=r-s,l=o*(1-n),c=o*(1-a*n),h=o*(1-(1-a)*n),d=s%6,m=[o,c,l,l,h,o][d],u=[h,o,o,c,l,l][d],p=[l,l,h,o,o,c][d],f=[Math.round(255*m),Math.round(255*u),Math.round(255*p),i];return t?f:`rgba(${f.join(",")})`},codeToRgb(e,t){let r=(e+"").replace(/#|\s/g,"");const n=r.length;return!![3,6,4,8].includes(n)&&([3,4].includes(n)&&(r=[`${r[0]}${r[0]}`,`${r[1]}${r[1]}`,`${r[2]}${r[2]}`,...4===n?[`${r[3]}${r[3]}`]:[]]),[6,8].includes(n)&&(r=[`${r[0]}${r[1]}`,`${r[2]}${r[3]}`,`${r[4]}${r[5]}`,...8===n?[`${r[6]}${r[7]}`]:[]]),r=r.map((e=>Number.parseInt(e,16))),4===r.length?r[3]=1*s.math.toFixed(r[3]/255,2,-1):r[3]=1,t?r:`rgba(${r.join(",")})`)},hslToHsv(e,t){if(!(e=(e+"").replace(/\s/g,"").match(/hsla?\s*\(([^\(\)]+)\)/)))return!1;if(e=e[1].split(",").slice(0,4).map((e=>1*e)),![3,4].includes(e.length))return;3===e.length&&(e[3]=1);let[r,n,o,i]=e,s=n;const a=Math.max(o,.01);o*=2,n*=o<=1?o:2-o,s*=a<=1?a:2-a;const l=[r,0===o?2*s/(a+s):2*n/(o+n),(o+n)/2,i];return t?l:`hsva(${l.join(",")})`},hsvToHsl(e,t){if(!(e=(e+"").replace(/\s/g,"").match(/hsva?\s*\(([^\(\)]+)\)/)))return!1;if(e=e[1].split(",").slice(0,4).map((e=>1*e)),![3,4].includes(e.length))return;3===e.length&&(e[3]=1);let r,[n,o,i,s]=e;o=o*i/((r=(2-o)*i)<1?r:2-r)||0;const a=[n,o,r/2,s];return t?a:`hsla(${a.join(",")})`},colorToHsl(e,t){return(e=this.colorToHsv(e))&&this.hsvToHsl(e,t)},colorToHsv(e,t){if(!(e=this.colorToRgb(e,1)))return;let[r,n,o,i]=e;r=1*s.math.toFixed(r/255,6,-1),n=1*s.math.toFixed(n/255,6,-1),o=1*s.math.toFixed(o/255,6,-1);const a=Math.max(r,n,o),l=Math.min(r,n,o);let c,h,d=a;const m=a-l;if(h=0===a?0:m/a,a===l)c=0;else{switch(a){case r:c=(n-o)/m+(n<o?6:0);break;case n:c=(o-r)/m+2;break;case o:c=(r-n)/m+4}c/=6}const u=[c,h,d,i];return t?u:`hsva(${u.join(",")})`},colorToCode(e,t){if(e=this.colorToRgb(e,1))return t||(e.length=3),4===e.length&&(e[3]=~~(255*e[3])),"#"+e.map((e=>s.str.pad((1*e).toString(16)))).join("")},colorToRgb(e,t){return(e+="").includes("#")?e=this.codeToRgb(e):e.includes("hsl")?e=this.hslToRgb(e):e.includes("hsv")&&(e=this.hsvToRgb(e)),!!(e=e&&e.replace(/\s/g,"").match(/rgba?\s*\(([^\(\)]+)\)/))&&(3===(e=e[1].split(",").slice(0,4).map((e=>1*e))).length&&(e[3]=1),t?e:`rgba(${e.join(",")})`)},mix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5,n=arguments.length>3?arguments[3]:void 0;if(r=r<0?0:r>1?1:r,e=this.colorToRgb(e,1),t=this.colorToRgb(t,1),!e||!t)return!1;const o=e.map(((n,o)=>1*s.math.toFixed(Math.round(e[o]*r+t[o]*(1-r)),3===o?2:0,-1)));return n?o:`rgba(${o.join(",")})`},setAlpha(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return!!(e=this.colorToRgb(e,1))&&(e[3]=t>1?1:t<0?0:t,`rgba(${e.join(",")})`)},getAlpha(e){return!!(e=this.colorToRgb(e,1))&&e[3]},createRgbByRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#000",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",r=arguments.length>2?arguments[2]:void 0;if(e=this.colorToRgb(e,1),t=this.colorToRgb(t,1),!e||!t)return!1;const n=e.map(((e,r)=>{let n=t[r];1*r==3&&(e=Math.round(100*e),n=Math.round(100*n));let o=s.random(e>n?n:e,e>n?e:n);return 1*r==3&&(o=s.math.toFixed(o/100,2,-1)),o}));return r?n:`rgba(${n.join(",")})`},rgbaToRgb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff",r=arguments.length>2?arguments[2]:void 0;return!!(e=this.colorToRgb(e,1))&&this.mix(`rgb(${e.slice(0,3).join(",")})`,t,e[3],r)},getBrightness(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#fff";if(!(e=this.rgbaToRgb(e,t,1)))return!1;const[r,n,o]=e;return Math.round(.3*r+.6*n+.1*o)}},promise:{queue(){let e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],o=new Map;const i=async()=>{t||(t=await new Promise((e=>e(1))),r.forEach((async e=>{if(o.get(e))return;o.set(e,1);const t=await e.catch((e=>(console.log(e),e)));n.push(t),s.arr.delItem(r,e)})),a.end&&!r.length&&e(n),t=null)};r=new Proxy(r,{set:(e,t,r)=>(e[t]=r,i(),!0)});const a=new Proxy({arr:r,p:new Promise((t=>e=t)),end:0,res:n,map:o},{set:(e,t,r)=>(e[t]=r,["end"].includes(t)&&i(),!0)});return i(),a},all(e){if(!e.length)return new Promise((e=>e([])));let t,r=e.length;const n=[],o=e=>o=>{n[e]=o,--r<=0&&t(n)};return e.forEach(((e,t)=>{if("promise"!==s.isType(e))return o(t)(e);e.then(o(t)).catch((e=>(console.error(e),o(t)(e))))})),new Promise((e=>t=e))}},math:{calcDecayLog:(e,t,r)=>Math.ceil(Math.log(r/e)/Math.log(t)),toFixed(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(e+="").match(/^[\+\-\d\.]+$/))return e;if(0===t)return e.replace(/(\.\d+)?$/,"");e.includes(".")||(e+=".");const n=e.indexOf(".");let o=e.slice(0,n+1);for(let i=0;i<t;i++){let s=e[n+1+i]||"0";const a=1*e[n+1+i+1];i===t-1&&a&&(s=1*s+(r>0?a>0?1:0:r<0?0:a>=5?1:0)+""),o+=s}return o},multiply(e,t){const r=e<0&&t>0||e>0&&t<0?"-":"";e=(e+"").replace(/[\-\+]/g,"").split("").map((e=>1*e)).reverse(),t=(t+"").replace(/[\-\+]/g,"").split("").map((e=>1*e)).reverse();const n=[];for(let o=0;o<e.length;o++)for(let r=0;r<t.length;r++){n[o+r]=n[o+r]||0;const i=n[o+r]+=e[o]*t[r];i/10>1&&(n[o+r]=i%10,n[o+r+1]=n[o+r+1]||0,n[o+r+1]+=~~(i/10))}return r+n.reverse().join("")},smallCalculate(e,t,r){const n=Math.max(((e+"").split(".")[1]||"").length,((t+"").split(".")[1]||"").length);let o;switch(e=Math.round(e*10**n),t=Math.round(t*10**n),r){case"+":o=e+t;break;case"-":o=e-t;break;case"*":o=this.multiply?this.multiply(e,t):e*t;break;case"/":o=e/t;break;default:return}return"/"===r?o:s.math.toFixed(o/10**("*"===r?2*n:n),n,-1)},toNum(e){const t=(e+="").replace(/[^\d\-\+\.]/g,"").split(".");if(t.length>2)return 0;const r=1*(("-"===e[0]?"-":"")+t.map((e=>s.math.toInt(e,0))).join("."));return 0===r?0:r},toInt:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e=(e+"").replace(/\D/g,""),t?1*e||0:e},average:e=>e.reduce(((e,t)=>e+t),0)/e.length},sign:{create(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"s32";const n={};return Object.keys(e).sort().forEach((t=>n[t]=e[t])),s.md5[r](JSON.stringify(n)+t)}},utf8:{en(e){const t=[];for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n<128?t.push(n):n<2048?(t.push(192|n>>6),t.push(128|63&n)):n<65536?(t.push(224|n>>12),t.push(128|n>>6&63),t.push(128|63&n)):(n-=65536,t.push(240|n>>18),t.push(128|n>>12&63),t.push(128|n>>6&63),t.push(128|63&n))}return t},de(e){const t=[];let r,n=0;for(;n<e.length;)if(r=e[n],r<128)t.push(String.fromCharCode(r)),n++;else if(r<224){const o=(31&r)<<6|63&e[n+1];t.push(String.fromCharCode(o)),n+=2}else if(r<240){const o=(15&r)<<12|(63&e[n+1])<<6|63&e[n+2];t.push(String.fromCharCode(o)),n+=3}else{const o=(7&r)<<18|(63&e[n+1])<<12|(63&e[n+2])<<6|63&e[n+3];t.push(String.fromCharCode(o+65536)),n+=4}return t.join("")}},sha:(()=>{const e=(()=>{let e;const t=Math;void 0!==o&&o.crypto&&(e=o.crypto),"undefined"!=typeof self&&self.crypto&&(e=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(e=globalThis.crypto),!e&&void 0!==o&&o.msCrypto&&(e=o.msCrypto);let r=()=>{if(!e)throw new Error("Native crypto module could not be used to get secure random number.");if("function"==typeof e.getRandomValues)try{return e.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof e.randomBytes)try{return e.randomBytes(4).readInt32LE()}catch(t){}},n=Object.create,i={},s=i.lib={},a=s.Base={extend(e){let t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create(){let e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn(e){for(let t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone(){return this.init.prototype.extend(this)}},l=s.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString(e){return(e||h).stringify(this)},concat(e){let t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(let i=0;i<o;i++){let e=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=e<<24-(n+i)%4*8}else for(let i=0;i<o;i+=4)t[n+i>>>2]=r[i>>>2];return this.sigBytes+=o,this},clamp(){let e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone(){let e=a.clone.call(this);return e.words=this.words.slice(0),e},random(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new l.init(t,e)}}),c=i.enc={},h=c.Hex={stringify(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){let e=t[o>>>2]>>>24-o%4*8&255;n.push((e>>>4).toString(16)),n.push((15&e).toString(16))}return n.join("")},parse(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new l.init(r,t/2)}},d=c.Latin1={stringify(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){let e=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(e))}return n.join("")},parse(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new l.init(r,t)}},m=c.Utf8={stringify(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:e=>d.parse(unescape(encodeURIComponent(e)))},u=s.BufferedBlockAlgorithm=a.extend({reset(){this._data=new l.init,this._nDataBytes=0},_append(e){"string"==typeof e&&(e=m.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process(e){let r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,h=t.min(4*c,i);if(c){for(let e=0;e<c;e+=s)this._doProcessBlock(o,e);r=o.splice(0,c),n.sigBytes-=h}return new l.init(r,h)},clone(){let e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),p=(s.Hasher=u.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset(){u.reset.call(this),this._doReset()},update(e){return this._append(e),this._process(),this},finalize(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:e=>(t,r)=>new e.init(r).finalize(t),_createHmacHelper:e=>(t,r)=>new p.HMAC.init(e,r).finalize(t)}),i.algo={});return i})();return(()=>{const t=Math;let r=e,n=r.lib,o=n.WordArray,i=n.Hasher,s=r.algo,a=[],l=[];(()=>{const e=e=>{for(let r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0},r=e=>4294967296*(e-(0|e))|0;for(let n=2,o=0;o<64;)e(n)&&(o<8&&(a[o]=r(t.pow(n,.5))),l[o]=r(t.pow(n,1/3)),o++),n++})();let c=[],h=s.SHA256=i.extend({_doReset(){this._hash=new o.init(a.slice(0))},_doProcessBlock(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],h=r[5],d=r[6],m=r[7],u=0;u<64;u++){if(u<16)c[u]=0|e[t+u];else{var p=c[u-15],f=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[u-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[u]=f+c[u-7]+y+c[u-16]}var b=n&o^n&i^o&i,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),x=m+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&d)+l[u]+c[u];m=d,d=h,h=a,a=s+x|0,s=i,i=o,o=n,n=x+(v+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+h|0,r[6]=r[6]+d|0,r[7]=r[7]+m|0},_doFinalize(){let e=this._data,r=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=t.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone(){let e=i.clone.call(this);return e._hash=this._hash.clone(),e}});r.sha256=i._createHelper(h),r.hmacSha256=i._createHmacHelper(h)})(),(()=>{let t,r,n;r=(t=e).lib.Base,n=t.enc.Utf8,t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));let r=e.blockSize,o=4*r;t.sigBytes>o&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),s=this._iKey=t.clone(),a=i.words,l=s.words,c=0;c<r;c++)a[c]^=1549556828,l[c]^=909522486;i.sigBytes=s.sigBytes=o,this.reset()},reset(){let e=this._hasher;e.reset(),e.update(this._iKey)},update(e){return this._hasher.update(e),this},finalize(e){let t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})})(),e.s256=t=>e.sha256(t+"").toString(),e.hs256=(t,r)=>e.hmacSha256(t+"",r+"").toString(),e})(),md5:{hex_md5(e,t){const r=(e,t)=>e<<t|e>>>32-t,n=(e,t)=>{var r,n,o,i,s;return o=2147483648&e,i=2147483648&t,s=(1073741823&e)+(1073741823&t),(r=1073741824&e)&(n=1073741824&t)?2147483648^s^o^i:r|n?1073741824&s?3221225472^s^o^i:1073741824^s^o^i:s^o^i},o=(e,t,o,i,s,a,l)=>(e=n(e,n(n(((e,t,r)=>e&t|~e&r)(t,o,i),s),l)),n(r(e,a),t)),i=(e,t,o,i,s,a,l)=>(e=n(e,n(n(((e,t,r)=>e&r|t&~r)(t,o,i),s),l)),n(r(e,a),t)),s=(e,t,o,i,s,a,l)=>(e=n(e,n(n(((e,t,r)=>e^t^r)(t,o,i),s),l)),n(r(e,a),t)),a=(e,t,o,i,s,a,l)=>(e=n(e,n(n(((e,t,r)=>t^(e|~r))(t,o,i),s),l)),n(r(e,a),t)),l=e=>{var t,r="",n="";for(t=0;t<=3;t++)r+=(n="0"+(e>>>8*t&255).toString(16)).substr(n.length-2,2);return r};var c,h,d,m,u,p,f,g,y,b=Array();for(e=(e=>{e=e.replace(/\r\n/g,"\n");for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t})(e),b=(e=>{for(var t,r=e.length,n=r+8,o=16*((n-n%64)/64+1),i=Array(o-1),s=0,a=0;a<r;)s=a%4*8,i[t=(a-a%4)/4]=i[t]|e.charCodeAt(a)<<s,a++;return s=a%4*8,i[t=(a-a%4)/4]=i[t]|128<<s,i[o-2]=r<<3,i[o-1]=r>>>29,i})(e),p=1732584193,f=4023233417,g=2562383102,y=271733878,c=0;c<b.length;c+=16)h=p,d=f,m=g,u=y,p=o(p,f,g,y,b[c+0],7,3614090360),y=o(y,p,f,g,b[c+1],12,3905402710),g=o(g,y,p,f,b[c+2],17,606105819),f=o(f,g,y,p,b[c+3],22,3250441966),p=o(p,f,g,y,b[c+4],7,4118548399),y=o(y,p,f,g,b[c+5],12,1200080426),g=o(g,y,p,f,b[c+6],17,2821735955),f=o(f,g,y,p,b[c+7],22,4249261313),p=o(p,f,g,y,b[c+8],7,1770035416),y=o(y,p,f,g,b[c+9],12,2336552879),g=o(g,y,p,f,b[c+10],17,4294925233),f=o(f,g,y,p,b[c+11],22,2304563134),p=o(p,f,g,y,b[c+12],7,1804603682),y=o(y,p,f,g,b[c+13],12,4254626195),g=o(g,y,p,f,b[c+14],17,2792965006),p=i(p,f=o(f,g,y,p,b[c+15],22,1236535329),g,y,b[c+1],5,4129170786),y=i(y,p,f,g,b[c+6],9,3225465664),g=i(g,y,p,f,b[c+11],14,643717713),f=i(f,g,y,p,b[c+0],20,3921069994),p=i(p,f,g,y,b[c+5],5,3593408605),y=i(y,p,f,g,b[c+10],9,38016083),g=i(g,y,p,f,b[c+15],14,3634488961),f=i(f,g,y,p,b[c+4],20,3889429448),p=i(p,f,g,y,b[c+9],5,568446438),y=i(y,p,f,g,b[c+14],9,3275163606),g=i(g,y,p,f,b[c+3],14,4107603335),f=i(f,g,y,p,b[c+8],20,1163531501),p=i(p,f,g,y,b[c+13],5,2850285829),y=i(y,p,f,g,b[c+2],9,4243563512),g=i(g,y,p,f,b[c+7],14,1735328473),p=s(p,f=i(f,g,y,p,b[c+12],20,2368359562),g,y,b[c+5],4,4294588738),y=s(y,p,f,g,b[c+8],11,2272392833),g=s(g,y,p,f,b[c+11],16,1839030562),f=s(f,g,y,p,b[c+14],23,4259657740),p=s(p,f,g,y,b[c+1],4,2763975236),y=s(y,p,f,g,b[c+4],11,1272893353),g=s(g,y,p,f,b[c+7],16,4139469664),f=s(f,g,y,p,b[c+10],23,3200236656),p=s(p,f,g,y,b[c+13],4,681279174),y=s(y,p,f,g,b[c+0],11,3936430074),g=s(g,y,p,f,b[c+3],16,3572445317),f=s(f,g,y,p,b[c+6],23,76029189),p=s(p,f,g,y,b[c+9],4,3654602809),y=s(y,p,f,g,b[c+12],11,3873151461),g=s(g,y,p,f,b[c+15],16,530742520),p=a(p,f=s(f,g,y,p,b[c+2],23,3299628645),g,y,b[c+0],6,4096336452),y=a(y,p,f,g,b[c+7],10,1126891415),g=a(g,y,p,f,b[c+14],15,2878612391),f=a(f,g,y,p,b[c+5],21,4237533241),p=a(p,f,g,y,b[c+12],6,1700485571),y=a(y,p,f,g,b[c+3],10,2399980690),g=a(g,y,p,f,b[c+10],15,4293915773),f=a(f,g,y,p,b[c+1],21,2240044497),p=a(p,f,g,y,b[c+8],6,1873313359),y=a(y,p,f,g,b[c+15],10,4264355552),g=a(g,y,p,f,b[c+6],15,2734768916),f=a(f,g,y,p,b[c+13],21,1309151649),p=a(p,f,g,y,b[c+4],6,4149444226),y=a(y,p,f,g,b[c+11],10,3174756917),g=a(g,y,p,f,b[c+2],15,718787259),f=a(f,g,y,p,b[c+9],21,3951481745),p=n(p,h),f=n(f,d),g=n(g,m),y=n(y,u);return 32===t?(l(p)+l(f)+l(g)+l(y)).toLowerCase():(l(f)+l(g)).toLowerCase()},s16:e=>s.md5.hex_md5(e,16),l16:e=>s.md5.hex_md5(e,16).toUpperCase(),s32:e=>s.md5.hex_md5(e,32),l32:e=>s.md5.hex_md5(e,32).toUpperCase()},baseEncrypt:{typeMap:{64:{group:3,newGroup:4,bit:6,map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"},32:{group:5,newGroup:8,bit:5,map:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"},16:{group:1,newGroup:2,bit:4,map:"0123456789ABCDEF"}},en(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{str:t,type:r,typeMap:n,utf8:o}=s.params.merge(e,{str:"",utf8:0,type:64,typeMap:s.baseEncrypt.typeMap});const{bit:i,group:a,newGroup:l,map:c}=n[r];t+="",t=o?s.utf8.en(t):t;let h="";for(let d=0;d<t.length;d+=a){let e="";for(const r of t.slice(d,d+a))e+=s.str.pad((o?r:r.charCodeAt(0)).toString(2),8);e=s.str.pad(e,e.length+i-e.length%i,"0",0);for(let t=0;t<l*i;t+=i){const r=e.slice(t,t+i);h+=r?c[parseInt(r,2)]:"="}}return h},de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{str:t,type:r,typeMap:n,utf8:o}=s.params.merge(e,{str:"",utf8:0,type:64,typeMap:s.baseEncrypt.typeMap});const{bit:i,group:a,newGroup:l,map:c}=n[r];t+="",[16,32].includes(1*r)&&(t=t.toUpperCase());const h={};[...c].forEach(((e,t)=>h[e]=t+""));let d=[];for(let m=0;m<t.length;m+=l){let e="";for(const n of t.slice(m,m+l)){if("="===n)continue;const t=h[n];if(!t)return console.log(`超出base${r}码表范围`);e+=s.str.pad((1*t).toString(2),i)}e=e.slice(0,8*~~(e.length/8));for(let t=0;t<e.length;t+=8){const r=1*parseInt(e.slice(t,t+8),2);d.push(o?r:String.fromCharCode(r))}}return o?s.utf8.de(d):d.join("")}},dom:{loop(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s.params.merge(e,{timer:null,lastTime:0,timeGap:1e3/60,hidePause:!0,idle:!1,always:!0,frame:0,run(){},getTimeFunc(){const t=e.idle&&o&&void 0!==o.idleCallback?["idleCallback","cancelIdleCallback"]:["requestAnimationFrame","cancelAnimationFrame"];return{bindEv:r=>o&&o[t[0]](r,e.idle?{timeout:e.idle}:void 0),unEv:e=>o&&o[t[1]](e)}},loop(){const{lastTime:t,timeGap:r,getTimeFunc:n,loop:o,always:s,frame:a,hidePause:l}=e,{bindEv:c,unEv:h}=n();h(e.timer),e.timer=c(o);const d=Date.now();i&&(i.hidden||"hidden"===i.visibilityState)&&l||d-t<r||(e.lastTime=d,!s&&a>0&&e.frame--,(s||a>0)&&e.run())},bindEv:()=>e.timer=e.getTimeFunc().bindEv(e.loop),unEv:()=>e.getTimeFunc().unEv(e.timer)}),e},getElScale(e,t){const{clientWidth:r,offsetWidth:n}=e,{width:o}=e.getBoundingClientRect();return o/(t?n:r)},getMouseXYByBox(e){let{e:t,tg:r,single:n=!0,isBoundary:o=1,outArr:i=1,boxScale:a=1}=e;const{x:l,y:c,width:h,height:d}=r.getBoundingClientRect(),m=[..."touchend"===t.type.toLowerCase()?t.changedTouches:t.targetTouches||[t]].map((e=>{let{clientX:t,clientY:r}=e;return"number"!==s.isType(t)||"number"!==s.isType(r)?i?[]:{}:(t-=l,r-=c,o&&(t=t<0?0:t>h?h:t,r=r<0?0:r>d?d:r),t/=a,r/=a,i?[t,r]:{x:t,y:r})}));return n||n?m[0]:m},uiRenderEnd:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;for(let t=0;t<e;t++)await new Promise((e=>o.requestAnimationFrame(e)))},getFps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;return new Promise((t=>{let r,n=0;const i=()=>{n++,r=o.requestAnimationFrame(i)};r=o.requestAnimationFrame(i),o.setTimeout((()=>{o.cancelAnimationFrame(r),t(n)}),e)}))},mouseDrag:{data:[],isAnim:0,timer:null,anim(){const{mouseDrag:e}=s.dom,{anim:t,data:r,timer:n}=e;if(r.forEach((e=>e.animCb&&e.animCb(e))),!r.length)return e.isAnim=0;o.cancelAnimationFrame(n),e.timer=o.requestAnimationFrame(t),e.isAnim=1},init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mouseDrag:t}=s.dom,r=e=>"number"===s.isType(e);return s.params.merge(e,{id:s.uuid(),gapTime:(new Date).getTime(),mobile:!0,isAnim:0,isStop:0,isMove:!1,isClick:!0,el:null,boxEl:i.querySelector("html"),isInertia:1,isRebound:0,iTimeGap:500,iFrameGap:1e3/60,iArr:[],iArrLen:10,iMin:.6,iMax:25,ix:0,iy:0,atten:.977,iXFrameConf:{sv:0,ev:0,v:0,step:0,lastStep:0,animFunc:"quarticIn"},iYFrameConf:{sv:0,ev:0,v:0,step:0,lastStep:0,animFunc:"quarticIn"},boxScale:1,xMin:0,xMax:null,yMin:0,yMax:null,x:0,y:0,sx:0,sy:0,mx:0,my:0,reverseX:0,reverseY:0,dirX:0,dirY:0,onDownCb:null,onUpCb:null,onRunCb:null,onMoveCb:t=>{let{e:r}=t;return r.cancelable&&e.el&&r.preventDefault()},boundary:e=>{let{conf:t,outArr:n=1}=e;const{xMin:o,xMax:i,yMin:s,yMax:a,x:l,y:c}=t,h=r(o)&&l<o||r(i)&&l>i,d=r(s)&&c<s||r(a)&&c>a;return t.x=r(o)&&l<o?o:r(i)&&l>i?i:l,t.y=r(s)&&c<s?s:r(a)&&c>a?a:c,n?[h,d]:{reboundX:h,reboundY:d}},animCb:()=>{let{isInertia:t,isRebound:r,isMove:n,isStop:o,iXFrameConf:i,iYFrameConf:a,boundary:l}=e;if(o||!t||n||i.step>=i.lastStep&&a.step>=a.lastStep)return e.isAnim=0;i.step<i.lastStep&&(s.anim.frame(i),e.x+=i.v),a.step<a.lastStep&&(s.anim.frame(a),e.y+=a.v);const[c,h]=l({conf:e});i.sv*=r&&c?-1:1,a.sv*=r&&h?-1:1,!r&&c&&(i.lastStep=0),!r&&h&&(a.lastStep=0),e.isAnim=i.step<i.lastStep||a.step<a.lastStep,e.onRunCb&&e.onRunCb({conf:e})},onDown:t=>{const{isStop:r,boxScale:n,boxEl:o,iXFrameConf:i,iYFrameConf:a}=e;if(r||!o)return;const[l,c]=s.dom.getMouseXYByBox({e:t,tg:o,isBoundary:0,boxScale:n});i.lastStep=a.lastStep=0,Object.assign(e,{mx:l,my:c,sx:l,sy:c,ix:0,iy:0,isClick:!0,isMove:!0,iArr:[]}),e.onDownCb&&e.onDownCb({e:t,conf:e})},onMove:t=>{let{isInertia:r,boxScale:n,boxEl:o,mx:i,my:a,reverseX:l,reverseY:c,iMax:h,iArr:d,iArrLen:m,boundary:u,isStop:p,isMove:f,sx:g,sy:y}=e;if(p||!f||!o)return;const[b,v]=s.dom.getMouseXYByBox({e:t,tg:o,isBoundary:0,boxScale:n}),x=e.dirX=l?i-b:b-i,w=e.dirY=c?a-v:v-a;e.x+=x,e.y+=w,u({conf:e});const _=(new Date).getTime();r&&(d.unshift({x:e.x,y:e.y,t:_}),d.length>m&&(d.length=m)),e.gapTime=_,e.mx=b,e.my=v,(Math.abs(g-b)>7||Math.abs(y-v)>7)&&(e.isClick=!1),e.onMoveCb&&e.onMoveCb({e:t,conf:e})},onUp:t=>{const{isStop:r,isMove:n,isInertia:o,iXFrameConf:i,iYFrameConf:a,iMax:l,iMin:c,atten:h,iTimeGap:d,iFrameGap:m,gapTime:u,iArr:p}=e;if(r||!n)return;e.isMove=!1;const f=(new Date).getTime();if(o&&f-u<=100&&p.length){for(p.unshift({x:e.x,y:e.y,t:f});p[0]&&f-p.slice(-1)[0].t>d;)p.pop();const[t,r]=[p[0],p.slice(-1)[0]],n=t.t-r.t;let o=(t.x-r.x)/n*m,u=(t.y-r.y)/n*m;e.ix=o=Math.abs(o)>l?l*Math.sign(o):o,e.iy=u=Math.abs(u)>l?l*Math.sign(u):u,Object.assign(i,{sv:o,step:-1,lastStep:s.math.calcDecayLog(o,h,c*Math.sign(o))}),Object.assign(a,{sv:u,step:-1,lastStep:s.math.calcDecayLog(u,h,c*Math.sign(u))})}e.onUpCb&&e.onUpCb({e:t,conf:e})},bindEv(){e.unEv();const{el:t}=e;t&&(t.addEventListener("mousedown",e.onDown),e.mobile&&t.addEventListener("touchstart",e.onDown),e.mobile&&t.addEventListener("touchmove",e.onMove,{passive:!1})),i.addEventListener("mousemove",e.onMove),i.addEventListener("mouseup",e.onUp),!t&&e.mobile&&i.addEventListener("touchmove",e.onMove),e.mobile&&i.addEventListener("touchend",e.onUp)},unEv(){const{el:t}=e;t&&(t.removeEventListener("mousedown",e.onDown),t.removeEventListener("touchstart",e.onDown),t.removeEventListener("touchmove",e.onMove)),i.removeEventListener("mousemove",e.onMove),i.removeEventListener("mouseup",e.onUp),i.removeEventListener("touchmove",e.onMove),i.removeEventListener("touchend",e.onUp)}}),e.destroy&&e.destroy(),e.bindEv(),e.destroy=()=>{e.unEv(),s.arr.delItem(t.data,e)},t.data.push(e),t.isAnim||t.anim(),e}},codeHighLight(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s.params.merge(e,{type:"js",str:"",showIdx:!1,clearTag:(e,t)=>e.replace(new RegExp(`(start|end)__\\w+?__${t}`,"g"),""),compilerStr:(t,r,n)=>{const{clearTag:o}=e;let i,a,l,c,h=0;for(;i=t.slice(h).match(/"|'|`/),i;){for(h+=i.index,i=h+1;l=t.slice(i).match(new RegExp(`[\\\\]*${s.str.escape(t[h])}`)),l;)if(i+=l.index+l[0].length+1,l[0].length%2!=0){l=i-1;break}if(!l)break;c=`start__str__${r}${o(t.slice(h,l),r)}end__str__${r}`,n&&(c=n(c)),a=`${t.slice(0,h)}${c}`,t=a+t.slice(l),h=a.length}return t},compilerNotice:(t,r)=>{const{clearTag:n}=e;return t=(t=t.replace(/\/\/[^\n]*\n{0,1}/g,(e=>`start__notice__${r}${n(e,r)}end__notice__${r}`))).replace(/\/\*[^]*?\*\//g,(e=>`start__notice__${r}${n(e,r)}end__notice__${r}`))},compilerKeyword:(e,t,r,n)=>e.replace(new RegExp(`(\\s|^)(${s.str.escape(r)})(\\s|$|\\.|;|,|\\)|\\})`,"g"),((e,r,o,i)=>`${r}start__${n}__${t}${o}end__${n}__${t}${i}`)),compilerFun:(e,t)=>e.replace(/([\w$]+)(\s*\()/g,((e,r,n)=>`start__fun__${t}${r}end__fun__${t}${n}`)),compilerIdx:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e.replace(/(^|\n)([^\n]*)/g,((e,n,o)=>`${n}start__idx__${t}${r++}end__idx__${t}${o}`))},replaceColor:(e,t,r)=>e=(e=e.replace(new RegExp(`start__(\\w+?)__${t}`,"g"),((e,t)=>`<span class="n-codeHighLight-${t}" style="color:${r[t]}">`))).replace(new RegExp(`end__(\\w+?)__${t}`,"g"),(()=>"</span>")),replaceLine:(e,t,r)=>{let n,o,i=0;for(;;){let a=e.slice(i).match(t);if(!a)break;i+=a.index,n=i+a[0].length,o=r(a),o="string"===s.isType(o)?{str:o}:o,a=`${e.slice(0,i)}${o.str}`,e=a+e.slice(n),i=a.length,o.formatOffset&&(i=o.formatOffset(i))}return e},defOpt:{js:{colors:{str:"rgb(230,219,106)",idx:"#777",notice:"#666",global:"rgb(102,217,235)",syb:"rgb(249,38,102)",num:"rgb(174,102,117)",other:"rgb(174,102,117)",fun:"rgb(146,224,45)"},globalStr:"console,self,navigator,localStorage,indexedDB,history,customElements,performance,screen,speechSynthesis,visualViewport,URL,sessionStorage,undefined,arguments,const,let,Math,function,window,String,Object,Array,Number,parseFloat,parseInt,Symbol,Date,Promise,class,constructor,require,JSON,this".split(","),sybStr:["=>","-","+","=","*","/","!","^","%","&","|","<",">","?","new","return","continue","switch","case","break","default","import","export","extends","for","while","do","as","await","async","from","in","static","public","yield","~","instanceof","use","if","else"],otherStr:"null,false,true,NaN".split(","),compiler:(e,t,r)=>{e+="";const n=s.uuid(),{showIdx:o,compilerStr:i,clearTag:a,compilerNotice:l,replaceColor:c,compilerFun:h,compilerKeyword:d,compilerIdx:m}=r,{colors:u,globalStr:p,sybStr:f,otherStr:g}=t,y={};return e=i(e,n,(e=>{const t=s.uuid();return y[t]=e,t})),[["global",p],["syb",f],["other",g]].forEach((t=>{let[r,o]=t;return o.forEach((t=>e=d(e,n,t,r)))})),e=l(e=h(e=e.replace(/([,;!:\s=+*\/%^~\-?&|,[\]{}()])(\d+(?:\.\d+)?)([,;!:\s=+*\/%^~\-?&|,[\]{}()])/gi,((e,t,r,o)=>`${t}start__num__${n}${r}end__num__${n}${o}`)),n),n),Object.entries(y).forEach((t=>{let[r,n]=t;return e=e.replace(r,n)})),o&&(e=m(e,n)),e=c(e,n,u)}},css:{colors:{str:"rgb(230,219,106)",prop:"rgb(156,220,255)",val:"rgb(83,217,233)",idx:"#777",notice:"#666",select:"rgb(166,245,46)",syb:"rgb(249,38,102)",num:"rgb(174,102,117)",fun:"rgb(146,224,45)"},sybStr:["-","+","=","*","/","!","^","%","&","|","<",">","?","~","@","include","mixin","each","important","&","@import","@font-face","@include"],compiler:(e,t,r)=>{e+="";const n=s.uuid(),{showIdx:o,compilerStr:i,clearTag:a,compilerNotice:l,replaceColor:c,compilerFun:h,compilerKeyword:d,compilerIdx:m}=r,{colors:u,sybStr:p}=t,f={};return e=i(e,n,(e=>{const t=s.uuid();return f[t]=e,t})),p.forEach((t=>e=d(e,n,t,"syb"))),e=l(e=h(e=(e=(e=(e=e.replace(/([:\s\-+*\/%\(])(\d+(?:\.\d+)?)([a-z%]*)?/gi,((e,t,r,o)=>`${t}start__num__${n}${r}end__num__${n}`+(o?`start__syb__${n}${o}end__syb__${n}`:"")))).replace(/(\.|#)[a-z][\w\-]*/gi,(e=>`start__select__${n}${e}end__select__${n}`))).replace(/(\s|\{|\;)([\w\-]+)(\s*\:)/g,((e,t,r,o)=>`${t}start__prop__${n}${r}end__prop__${n}${o}`))).replace(/(\:\s*)([\w\-]+)(\s*\;)/g,((e,t,r,o)=>`${t}start__val__${n}${r}end__val__${n}${o}`)),n),n),Object.entries(f).forEach((t=>{let[r,n]=t;return e=e.replace(r,n)})),o&&(e=m(e,n)),e=c(e,n,u)}},html:{colors:{tag:"rgb(249,38,102)",str:"rgb(230,219,106)",prop:"rgb(146,224,45)",idx:"#777",notice:"#666"},compiler:(e,t,r)=>{e+="";const n=s.uuid(),{showIdx:o,clearTag:i,compilerNotice:a,replaceColor:l,compilerFun:c,compilerKeyword:h,compilerIdx:d,defOpt:{js:m,css:u}}=r,{colors:p,sybStr:f}=t,g={};u&&(e=e.replace(/(<style[^]*?>)([^]*?)(<\/style>)/gi,((e,t,n,o)=>{const i=s.uuid();return g[i]=u.compiler(n,u,{...r,showIdx:!1}),`${t}${i}${o}`}))),m&&(e=e.replace(/(<script[^]*?>)([^]*?)(<\/script>)/gi,((e,t,n,o)=>{const i=s.uuid();return g[i]=m.compiler(n,m,{...r,showIdx:!1}),`${t}${i}${o}`})));const y=s.str.escapeHtmlTag;return e=(e=(e=e.replace(/(<\!?)([a-z][\w\-]*)([^]*?)>/gi,((e,t,r,o)=>(o=o.replace(/(\s+)(?:([^"'<>\/=]+)=((?:"[^"]*")|(?:'[^']*'))|([^\s"'<>\/=]+))/g,((e,t,r,o,i)=>`${t}start__prop__${n}${r||i}end__prop__${n}`+(o?`=start__str__${n}${o}end__str__${n}`:""))),`${y(t)}start__tag__${n}${r}end__tag__${n}${o}>`)))).replace(/(<\/)([a-z][\w\-]*)>/gi,((e,t,r)=>`${y(t)}start__tag__${n}${r}end__tag__${n}>`))).replace(/<\!--[^]*?-->/g,(e=>`start__notice__${n}${y(e)}end__notice__${n}`)),Object.entries(g).forEach((t=>{let[r,n]=t;return e=e.replace(r,n)})),o&&(e=d(e,n)),e=l(e,n,p)}},json:{colors:{str:"rgb(230,219,106)",prop:"rgb(156,220,255)",idx:"#777",notice:"#666",num:"rgb(174,102,117)",other:"rgb(174,102,117)"},otherStr:"null,false,true,NaN,undefined".split(","),compiler:(e,t,r)=>{e+="";const n=s.uuid(),{showIdx:o,compilerStr:i,clearTag:a,compilerNotice:l,replaceColor:c,compilerFun:h,compilerKeyword:d,compilerIdx:m,replaceLine:u}=r,{colors:p,otherStr:f}=t,g={};return e=(e=(e=(e=e.replace(/\/\/[^\n]*\n{0,1}/g,(e=>{const t=s.uuid()+",";return g[t]=l(e,n),t}))).replace(/\/\*[^]*?\*\//g,(e=>{const t=s.uuid()+",";return g[t]=l(e,n),t}))).replace(/(\"[^"]+\")(\s*\:\s*)/gi,((e,t,r)=>{const o=s.uuid();return g[o]=`start__prop__${n}${t}end__prop__${n}`,`${o}${r}`}))).replace(/([,;!:\s=+*\/%^~\-?&|,[\]{}()])(\d+(?:\.\d+)?)([,;!:\s=+*\/%^~\-?&|,[\]{}()])/gi,((e,t,r,o)=>`${t}start__num__${n}${r}end__num__${n}${o}`)),f.forEach((t=>e=d(e,n,t,"other"))),e=i(e,n,(e=>{const t=s.uuid();return Object.entries(g).forEach((t=>{let[r,n]=t;return e=e.replace(r,n)})),g[t]=e,t})),Object.entries(g).forEach((t=>{let[r,n]=t;return e=e.replace(r,n)})),o&&(e=m(e,n)),e=c(e,n,p)}}}});const{defOpt:t,str:r,type:n}=e,o=t[n];return o?o.compiler(r,o,e):r},markdownToHtml(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{str:t,formatHtml:r,replaceLine:n,clearTag:o,compilerInlineCode:i,compilerImg:a,compilerUrl:l,compilerDelLine:c,compilerIB:h,compilerBold:d,compilerItalic:m}=s.params.merge(e,{str:"",formatHtml:null,clearTag:(e,t)=>e.replace(new RegExp(`(start|end)__\\w+?__${t}`,"g"),""),replaceLine:(e,t,r)=>{let n,o,i=0;for(;;){let a=e.slice(i).match(t);if(!a)break;i+=a.index,n=i+a[0].length,o=r(a),o="string"===s.isType(o)?{str:o}:o,a=`${e.slice(0,i)}${o.str}`,e=a+e.slice(n),i=a.length,o.formatOffset&&(i=o.formatOffset(i))}return e},compilerInlineCode:e=>e.replace(/`([^`]+?)`/gi,((e,t)=>`<span class="n-markdown-inlineCode">${t}</span>`)),compilerImg:e=>e.replace(/\!\[([^\]]*)\]\(([^\)]*)\)/gi,((e,t,r)=>`<img class="n-markdown-img" src="${r}" alt="${t}" />`)),compilerUrl:e=>e.replace(/([^!]*)\[([^\]]*)\]\(([^\)]*)\)/gi,((e,t,r,n)=>`${t}<a class="n-markdown-a" href="${n}" target="_blank" >${r}</a>`)),compilerDelLine:e=>e.replace(/~~([^~]+?)~~/gi,((e,t)=>`<span class="n-markdown-strikethrough">${t}</span>`)),compilerIB:e=>e=(e=e.replace(/\*\*\*([^\*]+?)\*\*\*/gi,((e,t)=>`<span class="n-markdown-bold n-markdown-italic">${t}</span>`))).replace(/\_\_\_([^_]+?)\_\_\_/gi,((e,t)=>`<span class="n-markdown-bold n-markdown-italic">${t}</span>`)),compilerBold:e=>e=(e=e.replace(/\*\*([^\*]+?)\*\*/gi,((e,t)=>`<span class="n-markdown-bold">${t}</span>`))).replace(/\_\_([^_]+?)\_\_/gi,((e,t)=>`<span class="n-markdown-bold">${t}</span>`)),compilerItalic:e=>e=(e=e.replace(/\*([^\*]+?)\*/gi,((e,t)=>`<span class="n-markdown-italic">${t}</span>`))).replace(/\_([^_]+?)\_/gi,((e,t)=>`<span class="n-markdown-italic">${t}</span>`))});t+="";const u=e=>(e=i(e),e=a(e),e=l(e),e=c(e),e=h(e),e=d(e),e=m(e),e=m(e)),p=()=>`<${s.uuid().replace(/\_/g,"$")}>`;t=s.str.escapeHtmlTag(t);const f={};for(t=t.replace(/```([\w-]+?)?\n([^]+?)(?:\n\s*```|$)/gi,((e,t,r)=>{const n=p();return f[n]=`<div class="n-markdown-code"><code class="n-markdown-code-${t||"empty"}">${r}</code></div>`,`\n${n}\n`}));;){const e=[],r=p();let o=t.match(/(^|\n)\|([^]+?)\|\s*(\n|$)/);if(!o)break;if(o=o.index+o[1].length,t=t.slice(0,o)+n(t.slice(o),/^\|([^]+?)\|\s*(\n|$)/,(t=>{let[n,o,i]=t;return e.push(o.split("|")),1===e.length?`${r}${i}`:""})),!e.length)break;const i=e.findIndex((e=>e.every((e=>e.match(/\s*(?:(\:\-{2,}\:)|(\:\-{2,})|(\-{2,}\:)|(\-{2,}))\s*/))))),s=~i&&e.splice(0,i);let a=~i&&e.splice(0,1)[0];a&&(a=a.map((e=>e.match(/\:\-{2,}\:/)?"center":e.match(/\-{2,}\:/)?"right":"left")));let l='<div class="n-markdown-tb"><table>';s&&(l+=`<thead class="n-markdown-tb-thead">${s.map((e=>`<tr class="n-markdown-tb-tr">${e.map(((e,t)=>`<th class="n-markdown-tb-th n-markdown-tb-${a[t]||"left"} ">${u(e)}</th>`)).join("")}</tr>`)).join("")}</thead>`),l+=`<tbody class="n-markdown-tb-tbody">${e.map((e=>`<tr class="n-markdown-tb-tr">${e.map(((e,t)=>`<td class="n-markdown-tb-td n-markdown-tb-${a[t]||"left"} ">${u(e)}</td>`)).join("")}</tr>`)).join("")}</tbody></table></div>`,f[r]=l}t=u(t),t=n(t,/(\n|^)[\-\+\*]\s+([^\n]+?)(\n|$)/i,(e=>{let[t,r,n,o]=e;return`${r}<div class="n-markdown-li"><i class="n-markdown-li-dot"></i>${n}</div>${o}`})),t=n(t,/(\n|^)([\d])\.\s+([^\n]+?)(\n|$)/i,(e=>{let[t,r,n,o,i]=e;return`${r}<div class="n-markdown-li"><i class="n-markdown-li-num">${n}.</i>${o}</div>${i}`})),t=n(t,/(\n|^)[\-]{3,}(\n|$)/i,(e=>{let[t,r,n]=e;return`${r}<div class="n-markdown-hr"></div>${n}`})),t=n(t,/(\n|^)([#]+)\s*([^\n]+?)(\n|$)/i,(e=>{const[t,r,n,o,i]=e;let s=n.length;return s=s>6?6:s,s="h"+s,`${r}<${s} class="n-markdown-${s}">${o}</${s}>${i}`})),t=n(t,/(\n|^)([^<][^\n]+?[^>])(\n|$)/i,(e=>{let[t,r,n,o]=e;return`${r}<p class="n-markdown-p">${n}</p>${o}`})),Object.entries(f).forEach((e=>{let[r,n]=e;return t=t.replace(r,n)}));let g=`<div class="n-markdown">${t}</div>`;return g=r?r(g):g,g},getStrLines(e){let{el:t,text:r,splitWord:n=1}=e;const o=t.innerText;if(r=r||o,!r.length)return[];const s=i.createElement("span"),a=[],l=[];let c,h,d,m,u=0;for(;n&&(c=r.slice(u).match(/\b\w{2,}\b/),c);)u+=c.index,a.push({s:u,e:u+=c[0].length,str:c[0]});u=0;for(let i=1;i<=r.length;i++){m=s.innerText=r.slice(u,i),t.innerText=r.slice(0,u),t.appendChild(s);const e=t.getBoundingClientRect().height;if(h||(h=e),h>=e)continue;i--,d=i;const n=a.find((e=>e.s<=i&&e.e>i));n&&(d=n.s,i=n.e-1),m=s.innerText=r.slice(u,d);const{width:o,height:c}=s.getBoundingClientRect();l.push({w:o,h:c,e:d,s:u,text:m}),i++,h=e,u=d}d=r.length,m=s.innerText=r.slice(u,d);const{width:p,height:f}=s.getBoundingClientRect();return l.push({w:p,h:f,e:d,s:u,text:m}),t.innerText=o,l},strLineLimit(e){let{el:t,str:r="",syb:n="...",offset:o="",gap:i=1,lineMax:s=1}=e;t.style.visibility="hidden",t.innerHTML=new Array(1*s).fill("A").join("<br/>");const a=t.offsetHeight;let l=0;for(i=~~i,i=i<1?1:i;l<r.length;){const e=l+i>r.length?r.length-l:i;if(l+=e,t.innerText=r.slice(0,l)+n+o,!(t.offsetHeight<=a)){l-=e;break}}t.innerHTML=r.slice(0,l)+(l<r.length?n:""),t.style.visibility=""},isHtmlTag(e,t){if("string"!==s.isType(e))return!1;const r={svg:1,animate:1,circle:1,clippath:1,cursor:1,defs:1,desc:1,ellipse:1,filter:1,"font-face":1,foreignobject:1,g:1,glyph:1,image:1,line:1,marker:1,mask:1,"missing-glyph":1,path:1,pattern:1,polygon:1,polyline:1,rect:1,switch:1,symbol:1,text:1,textpath:1,tspan:1,use:1,view:1};return t?r[e]:r[e]||{html:1,body:1,base:1,head:1,link:1,meta:1,style:1,title:1,address:1,article:1,aside:1,footer:1,header:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hgroup:1,nav:1,section:1,div:1,dd:1,dl:1,dt:1,figcaption:1,figure:1,picture:1,hr:1,img:1,li:1,main:1,ol:1,p:1,pre:1,ul:1,a:1,b:1,abbr:1,bdi:1,bdo:1,br:1,cite:1,code:1,data:1,dfn:1,em:1,i:1,kbd:1,mark:1,q:1,rp:1,rt:1,rtc:1,ruby:1,s:1,samp:1,small:1,span:1,strong:1,sub:1,sup:1,time:1,u:1,var:1,wbr:1,area:1,audio:1,map:1,track:1,video:1,embed:1,object:1,param:1,source:1,canvas:1,script:1,noscript:1,del:1,ins:1,caption:1,col:1,colgroup:1,table:1,thead:1,tbody:1,td:1,th:1,tr:1,button:1,datalist:1,fieldset:1,form:1,input:1,label:1,legend:1,meter:1,optgroup:1,option:1,output:1,progress:1,select:1,textarea:1,details:1,dialog:1,menu:1,menuitem:1,summary:1,content:1,element:1,shadow:1,template:1,blockquote:1,iframe:1,tfoot:1}[e]},waterfallFlow(e){let{gap:t,list:r,colSizes:n,dir:o,hs:i,ws:a,res:l}=s.params.merge(e,{res:[],boxLen:null,ws:null,hs:null,gapX:null,gapY:null,dirMap:null,dir:"vert",gap:0,list:[],colSizes:[]});const c=e.dirMap={hori:{size:"w",offset:"x",colSize:"h",colOffset:"y",gap:"gapX",colGap:"gapY"},vert:{size:"h",offset:"y",colSize:"w",colOffset:"x",gap:"gapY",colGap:"gapX"}}[o];e.gapX="array"===s.isType(t)?t[0]:t,e.gapY="array"===s.isType(t)?t[1]:t,e.hs=i=i||n.map(((e,t)=>({v:0,idx:t})));let h=0;e.ws=a=a||n.reduce(((t,r)=>(t.push(h),h+=e[c.colGap]+r,t)),[]),n.forEach(((e,t)=>l[t]=l[t]||[]));let d=0;return r.forEach((t=>{s.params.merge(t,{x:0,y:0,w:0,h:0});const r=t[c.size],o=i.reduce(((e,t)=>t.v<e.v?t:e),{v:999999999});t[c.offset]=o.v,t[c.colSize]=n[o.idx],t[c.colOffset]=a[o.idx],o.v+=r+e[c.gap],l[o.idx].push(t),o.v>d&&(d=o.v)})),e.boxLen=d-e[c.gap],l},waterfallFlowHori(e){let{gap:t,list:r,dir:n,vagueSize:o,boxSize:i,lineItems:a,res:l}=s.params.merge(e,{res:[],boxLen:null,lineItems:null,hs:null,gapX:null,gapY:null,dirMap:null,dir:"vert",gap:0,list:[],vagueSize:200,boxSize:0});const c=e.dirMap={hori:{size:"w",offset:"x",colSize:"h",colOffset:"y",gap:"gapX",colGap:"gapY"},vert:{size:"h",offset:"y",colSize:"w",colOffset:"x",gap:"gapY",colGap:"gapX"}}[n];e.gapX="array"===s.isType(t)?t[0]:t,e.gapY="array"===s.isType(t)?t[1]:t,a=a||[];let h=0,d=0,m=0;l.length&&(d=l.reduce(((t,r)=>t+r[0][c.size]+e[c.gap]),0)),a.length&&(h=a.reduce(((t,r)=>t+r[c.colSize]+e[c.colGap]),0));for(let u=0;u<r.length;u++){const t=r[u];s.params.merge(t,{ratio:0,x:0,y:0,w:0,h:0,ow:0,oh:0});const n=t.ratio=t[c.colSize]/t[c.size];if(t.ow=t.w,t.oh=t.h,t[c.size]=o,t[c.colSize]=n*o,a.push(t),h+=t[c.colSize]+e[c.colGap],h<i){u===r.length-1&&(l.push(a),m=0,a.forEach((t=>{t[c.offset]=d,t[c.colOffset]=m,m+=e[c.colGap]+t[c.colSize]})),d+=o+e[c.gap]);continue}h-=e[c.colGap],u<r.length-1&&a.length>1&&h-i>.5*t[c.colSize]&&(u--,a.pop(),h-=t[c.colSize]+e[c.colGap]);const p=(a.length-1)*e[c.colGap],f=(i-p)/(h-p),g=o*f;m=0,a.forEach((t=>{t[c.size]=g,t[c.colSize]*=f,t[c.offset]=d,t[c.colOffset]=m,m+=e[c.colGap]+t[c.colSize]})),l.push(a),a=[],d+=g+e[c.gap],h=0}return e.lineItems=a,e.boxLen=d-e[c.gap],l},filterXSS(e,t,r){t=t||Object.fromEntries(["style","src","class","href","target","id","controls","autoplay","loop","muted","type","width","height"].map((e=>[e,1]))),r=r||Object.fromEntries(["p","a","div","body","html","head","style","br","h1","h2","h3","h4","h5","h6","aside","article","code","blockquote","b","col","colgroup","ul","li","dl","dt","dd","em","fieldset","i","hr","img","video","label","ins","legend","ol","q","span","strong","sub","sup","table","tbody","td","tr","th","tfoot","thead","section","nav","footer","header","main","pre","figcaption","figure","iframe","audio","canvas","svg","map","area","form","input","button","textarea","select","option","form","legend","#text","font"].map((e=>[e,1])));const n=i.createElement("div");n.innerHTML=e;const o=[n];for(;o.length;){const e=o.shift();!e.nodeName||r[e.nodeName.toLowerCase()]?(e.children&&o.push(...e.children),[...e.attributes].forEach((r=>{let n;r.value+="";try{n=decodeURIComponent(r.value)}catch(o){}t[r.name]&&![r.value,n].some((e=>e&&e.match(/^\s?javascript\:/i)))||e.removeAttributeNode(r)}))):e.remove()}return n.innerHTML.replace(/<(\/?script)>/gi,"<$1>")},testCssParam(e,t,r){const n=i.createElement("div");n.style[e]=t;let o=n.style[e]===t;if(!r)return o;for(const i of["webkit","khtml","moz","ms","o"])if(n.style[`-${i}-${e}`]=t,n.style[`-${i}-${e}`]===t){o=1;break}return o},rem(){let{w:e=750,max:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{innerWidth:r}=o;i.querySelector("html").style.fontSize=(t&&r>t&&t||r)/e*100+"px"},remToPx:e=>s.math.toNum(o.getComputedStyle(i.querySelector("html")).fontSize+"")*s.math.toNum(e),viewport(e){let{w:t=750,min:r,max:n,init:a,user:l}=e,c=i.querySelector('meta[name="viewport"]');c||(c=i.createElement("meta"),c.name="viewport",i.head.appendChild(c));const{width:h}=o.screen;a=s.isEmpty(a)?s.math.toFixed(h/t):a,r=s.isEmpty(r)?a:r,n=s.isEmpty(n)?a:n,n=n<r?r:n,c.content=`width=${t}, initial-scale=${a}, maximum-scale=${n}, minimum-scale=${r}, user-scalable=${l?"yes":"no"}`},copyText(e){const t=i.createElement("textarea");t.value=e,t.style.left="-9999px",t.style.position="fixed",i.body.appendChild(t),t.select(),i.execCommand("copy"),t.remove()},writeClip:e=>(e="blob"===s.isType(e)?e:new Blob([e],{type:"text/plain"}),o.navigator.clipboard.write([new ClipboardItem({[e.type]:e})])),compilerCss(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!==s.isType(e))return t;let r=e.indexOf("{")+1;r&&(e=e.slice(r)),r=e.lastIndexOf("}"),~r&&(e=e.slice(0,r));const n=/^;?\s*([a-zA-Z-_0-9]+)\s*\:/;let o=e.match(n);if(!o)return t;e=e.replace(o[0],""),o=o[1];let i="",a=e.indexOf(";");if(~a)for(;a>=0&&(i+=e.slice(0,a),!(e=e.slice(a)).match(n));)a=e.indexOf(";",a+1);else i=e;return t[o]=i.trim(),s.dom.compilerCss(e,t)},splitCss(e){let t,r,n,o,i={},a=[],l=[];for(;n=1,t=e.indexOf("{")+1,r=e.indexOf("}")+1,t&&r&&!(t>=r);){for(;n;)if(o=e.slice(t,r).indexOf("{")+1,o)n++,t+=o;else{if(n--,!n)break;if(o=e.slice(r).indexOf("}")+1,!o){r=0;break}r+=o}if(!r)break;const c=e.slice(0,r).trim();e=e.slice(r),a.push(c),i[c]=1,s.arr.delItem(l,c),l.push(c)}return{map:i,set:l,arr:a}},compilerHtml(e,t){let{html:r,compilerCss:n=!0,compilerClass:o=!0}=e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const a=/^<([a-zA-Z_0-9][\w\-]*)/,l=/^\s+(?:([^\s"'<>\/=]+)\s*=\s*((?:"[^"]*")|(?:'[^']*'))|([^\s"'<>\/=]+))/,c=/^<\/[a-zA-Z_0-9][\w\-]*>/,h=/^<\!--[\s\S]*?-->/,d=/^<\!DOCTYPE/i;if(t||(i=[t={children:[]}]),!r||!r.length)return t.children;const m=r.match(d);if(m){r=r.replace(m[0],"");const e={type:"doctype",content:""};i.slice(-1)[0].children.push(e);const a=r.match(/([^>]*)>/);return a&&(r=r.replace(a[0],""),e.content=(a[1]||"").trim()),s.dom.compilerHtml({html:r,compilerCss:n,compilerClass:o},t,i)}const u=r.match(a);if(!u){const e=r.match(c),l=r.match(h);if(e||l){e&&i.pop();const a=e?e[0]:l[0];return r=r.replace(a,""),s.dom.compilerHtml({html:r,compilerCss:n,compilerClass:o},t,i)}let m="",u=r.indexOf("<");for(;u>=0&&(m+=r.slice(0,u),r=r.slice(u),!(r.match(c)||r.match(a)||r.match(h)||r.match(d)));)u=r.indexOf("<",u+1);if(-1===u&&(m=r,r=""),m){const e={type:"text",text:m};i.slice(-1)[0].children.push(e)}return s.dom.compilerHtml({html:r,compilerCss:n,compilerClass:o},t,i)}const p={name:u[1],type:"node",attrs:{},children:[]};let f;for(r=r.replace(u[0],""),i.slice(-1)[0].children.push(p);f=r.match(l);){const e=f[1]||f[3],t=!f[2]||f[2].replace(/^("|')/,"").replace(/("|')$/,"");p.attrs[e]=t,r=r.replace(f[0],""),"class"===e&&o&&(p.attrs[e]=(!0===t?"":t).trim().split(/\s+/)),"style"===e&&n&&(p.attrs[e]=!0===t?t:s.dom.compilerCss(t))}return r.match(/^\s*\/\s*>/)||["meta","input","img","br","link","hr","area","base","basefont","param","col","frame","embed"].includes(u[1])||i.push(p),r=r.replace(/^\s*\/?\s*>/,""),s.dom.compilerHtml({html:r,compilerCss:n,compilerClass:o},t,i)},compilerPseudoJson(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{str:t,isChild:r,formatKey:n,formatVal:o,assignSyb:i,splitSyb:a,objSyb:[l,c],arrSyb:[h,d],strSyb:[m,u],isStrict:p,compilerVal:f}=s.params.merge(e,{str:"",formatVal:null,isChild:!1,assignSyb:"=",splitSyb:",",objSyb:["{","}"],arrSyb:["[","]"],strSyb:['"','"'],isStrict:!0,formatKey:e=>{let{k:t}=e;return t=t.trim(),p&&(t=t.replace(new RegExp(`^${_}`),"").replace(new RegExp(`${M}$`),"")),t},formatVal:e=>{let{v:t}=e;if("string"!==s.isType(t))return t;try{t=JSON.parse(t.trim())}catch(r){}return t},compilerVal:t=>{let r,n,i,l,{s:c,str:h,endSyb2:d,endSyb:m}=t,f=h.slice(c);const g=()=>(r=h.slice(c).match(new RegExp(`^\\s*${y}`)),r&&(c+=r[0].length),n=o({v:n,conf:e,str:h,s:c}),{v:n,s:c});if(p&&(r=f.match(new RegExp(`^\\s*${_}`))))for(c+=r[0].length,i=c;;){if(i=h.indexOf(u,i),!~i)throw"字符串格式错误";if("\\"!==h[i-1])return n=h.slice(c,i).replace(`\\${u}`,u),c=i+1,g();i++}if(r=f.match(new RegExp(`^\\s*(${x}|${b})`)),r)return r=s.dom.compilerPseudoJson({...e,str:f,isChild:1}),n=r.v,c+=r.s,g();if(i=f.indexOf(a),l=f.indexOf(m),!~i&&!~l)throw"值格式错误";return i=(~i?i:1/0)<(~l?l:1/0)?i:l,n=h.slice(c,c+i),c+=i,g()}});t+="";const g=s.str.escape(i),y=s.str.escape(a),b=s.str.escape(l),v=s.str.escape(c),x=s.str.escape(h),w=s.str.escape(d),_=s.str.escape(m),M=s.str.escape(u);let T,$,S,E,C=0;if($=t.match(new RegExp(`^\\s*${b}`)))for(E={},C=$[0].length;;){if(T=t.slice(C),$=T.match(new RegExp(`^\\s*${v}${y}?`))){C+=$[0].length;break}if($=T.match(new RegExp(`^([^${g}]+)${g}`)),!$)throw console.error("解析失败",C,$,t.slice(C));S=n({k:$[1],str:t,conf:e,s:C}),C+=$[0].length,$=f({k:S,s:C,str:t,conf:e,endSyb:c,endSyb2:v}),E[S]=$.v,C=$.s}else if($=t.match(new RegExp(`^\\s*${x}`)))for(E=[],C=$[0].length,S=0;;){if($=t.slice(C).match(new RegExp(`^\\s*${w}${y}?`))){C+=$[0].length;break}$=f({k:S,s:C,str:t,conf:e,endSyb:d,endSyb2:w}),E[S]=$.v,C=$.s,S++}return r?{s:C,v:E}:E},async out(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{formatHtml:t,outType:r,el:n,w:a,h:l,exact:c,outBlob:h,timeout:d,scale:m}=s.params.merge(e,{w:0,h:0,scale:2,timeout:5e3,outBlob:"url",exact:!0,el:null,outType:"png",cssKeys:[...o.getComputedStyle(i.body)],attrKeys:["style","src","class","id","type","width","height","placeholder","value","colspan","rowspan","align","border","disabled","readonly","size","required",""],filterTag:["body","html","head","meta","link","title","script"],mediaTag:["img","video"],formatHtml:null,toStr:e=>(e+"").replace(/"/g,"'"),toHtml:async e=>{let{el:t,conf:r}=e;if(!t)return;if(3===t.nodeType)return t.data;if(1!==t.nodeType)return;let n=t.tagName.toLowerCase();n=r.filterTag.includes(n)?"div":n;const o=await r.getAttr({conf:r,el:t});if("video"===n){const{scale:e}=r,s=i.createElement("canvas"),a=s.getContext("2d");s.width=t.videoWidth*e,s.height=t.videoHeight*e,a.save(),a.scale(e,e),a.drawImage(t,0,0),a.restore(),n="img",o.src=s.toDataURL("image/png"),s.remove()}"canvas"===n&&(n="img",o.src=t.toDataURL("image/png"));let a=await s.promise.all([...t.childNodes].map((e=>r.toHtml({el:e,conf:r}))));return a=a.filter((e=>e)).join(""),`<${n} ${Object.entries(o).map((e=>{let[t,r]=e;return`${t}="${r}"`})).join(" ")}>${a}</${n}>`},toDataUrl:async e=>{let{conf:t,src:r}=e;if(r+="",r.match(/^data\:/i)||r.match(/^blob/i))return r;const n={url:r,responseType:"arraybuffer",timeout:t.timeout},o=await s.request(n).catch((e=>(console.log(e),!1)));if(!o)return r;const{resHeads:i}=n;let a=i["content-type"];return a=a&&a.split(";")[0],a=a||"application/octet-stream",`data:${a};base64,${s.file.buffToBase64(o)}`},getStyle:async e=>{let{el:t,conf:r}=e;const{cssKeys:n,attrKeys:i,toStr:s}=r;let a="";if(!i.includes("style"))return a;const l=o.getComputedStyle(t);for(const o of n){if(!l[o])continue;let e=s(l[o]);if(["border-image","background-image","list-style-image"].includes(o)&&e){const n=e.match(/\s?url\(([^\)]+)\)/);if(n&&n[1]){const o=await r.toDataUrl({src:n[1].replace(/["']/g,""),conf:r,el:t});o&&(e=`url(${o})`)}}a+=`${o}:${e}; `}return a},getAttr:async e=>{let{el:t,conf:r}=e;const{attrKeys:n,toStr:o,getStyle:i,mediaTag:s}=r,a=t.tagName.toLowerCase(),l={};n.includes("style")&&(l.style=await i({el:t,conf:r})),[...t.attributes].forEach((e=>{n.includes(e.name)&&(l[e.name]=l[e.name]||"",l[e.name]+=" "+o(e.value))})),"input"===a&&n.includes("value")&&(l.value=t.value);let c=t.attributes.src;return c=c&&c.value,c&&n.includes("src")&&s.includes(a)&&(l.src=await r.toDataUrl({src:c,conf:r,el:t})),l}});if(!n)return;e.w=a=a||(c?n.getBoundingClientRect().width:n.offsetWidth),e.h=l=l||(c?n.getBoundingClientRect().height:n.offsetHeight);let u=await e.toHtml({conf:e,el:n});u=t?t({conf:e,html:u}):u;const p=`<svg xmlns="http://www.w3.org/2000/svg" width="${a}" height="${l}"><foreignObject width="100%" height="100%"><div xmlns="http://www.w3.org/1999/xhtml">${u}</div></foreignObject></svg>`;if("svg"===r)return p;const f=o.URL.createObjectURL(new Blob([p],{type:"image/svg+xml;charset=utf-8"}));if("url"===r)return f;const g=()=>(o.URL.revokeObjectURL(f),!1),y=new Image;y.src=f;if(!await new Promise((e=>{y.onload=()=>e(1),y.onerror=t=>e(0,console.error(t,y)),d&&o.setTimeout((()=>e(0)),d)})))return g();if("img"===r)return y;const b=i.createElement("canvas"),v=b.getContext("2d");if(b.width=a*m,b.height=l*m,v.save(),v.scale(m,m),v.clearRect(0,0,a,l),v.drawImage(y,0,0),v.restore(),g(),y.remove(),"canvas"===r)return b;const x=b.toDataURL(`image/${r}`);return b.remove(),h?s.file["url"===h?"base64ToBlobUrl":"base64ToBlob"](x):x}},alg:{transform:{scale(e){const{rotatePoint3d:t,getDistance:r,scalePoint:n,getCenter:o}=s.coord;let i,a,l,c,h,d,m,u,{type:p="rb",lastPoint:f,mx:g,my:y,rz:b,az:v,w:x,h:w,outArr:_}=s.params.merge(e,{outArr:!1,type:"rb",lastPoint:{},mx:0,my:0,rz:null,az:null,w:0,h:0});return b="number"===s.isType(b)?b:v*Math.PI/180,"t"===p&&([i,a]=t({x:g,y:y,cx:f.t[0],cy:f.t[1],outArr:1,rz:-b}),i=f.t[0],[i,a]=t({x:i,y:a,cx:f.t[0],cy:f.t[1],outArr:1,rz:b}),[l,c]=o({x1:i,y1:a,x2:f.b[0],y2:f.b[1],outArr:1}),w=r({x1:i,y1:a,x2:f.b[0],y2:f.b[1]})),"b"===p&&([i,a]=t({x:g,y:y,cx:f.b[0],cy:f.b[1],outArr:1,rz:-b}),i=f.b[0],[i,a]=t({x:i,y:a,cx:f.b[0],cy:f.b[1],outArr:1,rz:b}),[l,c]=o({x1:i,y1:a,x2:f.t[0],y2:f.t[1],outArr:1}),w=r({x1:i,y1:a,x2:f.t[0],y2:f.t[1]})),"l"===p&&([i,a]=t({x:g,y:y,cx:f.l[0],cy:f.l[1],outArr:1,rz:-b}),a=f.l[1],[i,a]=t({x:i,y:a,cx:f.l[0],cy:f.l[1],outArr:1,rz:b}),[l,c]=o({x1:i,y1:a,x2:f.r[0],y2:f.r[1],outArr:1}),x=r({x1:i,y1:a,x2:f.r[0],y2:f.r[1]})),"r"===p&&([i,a]=t({x:g,y:y,cx:f.r[0],cy:f.r[1],outArr:1,rz:-b}),a=f.r[1],[i,a]=t({x:i,y:a,cx:f.r[0],cy:f.r[1],outArr:1,rz:b}),[l,c]=o({x1:i,y1:a,x2:f.l[0],y2:f.l[1],outArr:1}),x=r({x1:i,y1:a,x2:f.l[0],y2:f.l[1]})),["t","b","l","r"].includes(p)&&(i=l-x/2,a=c-w/2),"lt"===p&&([l,c]=o({x1:g,y1:y,x2:f.rb[0],y2:f.rb[1],outArr:1}),[h,d]=t({x:g,y:y,cx:l,cy:c,outArr:1,rz:-b}),[m,u]=t({x:f.rb[0],y:f.rb[1],cx:l,cy:c,outArr:1,rz:-b})),"lb"===p&&([l,c]=o({x1:g,y1:y,x2:f.rt[0],y2:f.rt[1],outArr:1}),[h,d]=t({x:g,y:y,cx:l,cy:c,outArr:1,rz:-b}),[m,u]=t({x:f.rt[0],y:f.rt[1],cx:l,cy:c,outArr:1,rz:-b})),"rt"===p&&([l,c]=o({x1:g,y1:y,x2:f.lb[0],y2:f.lb[1],outArr:1}),[h,d]=t({x:g,y:y,cx:l,cy:c,outArr:1,rz:-b}),[m,u]=t({x:f.lb[0],y:f.lb[1],cx:l,cy:c,outArr:1,rz:-b})),"rb"===p&&([l,c]=o({x1:g,y1:y,x2:f.lt[0],y2:f.lt[1],outArr:1}),[h,d]=t({x:g,y:y,cx:l,cy:c,outArr:1,rz:-b}),[m,u]=t({x:f.lt[0],y:f.lt[1],cx:l,cy:c,outArr:1,rz:-b})),["lt","lb","rt","rb"].includes(p)&&(x=Math.abs(m-h),w=Math.abs(u-d),i=h<m?h:m,a=d<u?d:u),_?[i,a,x,w]:{x:i,y:a,w:x,h:w}},rotate(e){let{outAngle:t,ex:r,ey:n,mx:o,my:i,cx:a,cy:l,rz:c,az:h}=s.params.merge(e,{outAngle:!1,ex:0,ey:0,mx:0,my:0,cx:0,cy:0,az:null,rz:null});c="number"===s.isType(c)?c:h*Math.PI/180;let d=s.coord.cartesianToPolar(o-a,i-l).a;d=d<0?d+2*Math.PI:d;let m=s.coord.cartesianToPolar(r-a,n-l).a;return m=m<0?m+2*Math.PI:m,c+=m-d,t?c/Math.PI*180:c}},noise:{fade:e=>e*e*e*(e*(6*e-15)+10),turb(e){let{x:t,y:r,deep:n=6,freq:o=.2,scale:i=10,amp:a=1}=e,l=0;for(let c=0;c<n;c++)l+=s.alg.noise.improve({x:t*o,y:r*o,scale:i})*a,a*=.5,o*=2;return l},normal(e){let{w:t,h:r,out2d:n,scale:o=10}=e;const i=[],{fade:a}=s.alg.noise,l=(e,t,r)=>e+r*(t-e);for(let s=0;s<=t;s++)for(let e=0;e<=r;e++){const e=Math.random()*Math.PI*2;i.push({x:Math.cos(e),y:Math.sin(e)})}const c=[];for(let s=0;s<r;s++){n&&(c[s]=[]);for(let e=0;e<t;e++){const r=Math.floor(e/o),h=Math.floor(s/o),d=e/o-r,m=s/o-h,u=i[r+h*t],p=i[r+1+h*t],f=i[r+(h+1)*t],g=i[r+1+(h+1)*t],y=u.x*d+u.y*m,b=p.x*(d-1)+p.y*m,v=f.x*d+f.y*(m-1),x=g.x*(d-1)+g.y*(m-1),w=a(d),_=a(m),M=l(y,b,w),T=l(v,x,w),$=l(M,T,_);n?c[s][e]=$:c[s*t+e]=$}}return c},improve(e){let{x:t,y:r,z:n=0,w:o,h:i,out2d:a,p:l,scale:c=10}=e;const{alg:{noise:{fade:h,lerp2:d}},isType:m}=s,u=(e,t,r,n)=>{let o=15&e,i=o<8?t:r,s=o<4?r:12===o||14===o?t:n;return(1&o?-i:i)+(2&o?-s:s)},p=(e,t,r)=>t+e*(r-t);l=l||[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180];for(let s=0;s<256;s++)l[s+256]=l[s];const f=(e,t,r,n)=>{e/=n,t/=n,r/=n;let o=255&Math.floor(e),i=255&Math.floor(t),s=255&Math.floor(r);e-=Math.floor(e),t-=Math.floor(t),r-=Math.floor(r);let a=h(e),c=h(t),d=h(r),m=l[o]+i,f=l[m]+s,g=l[m+1]+s,y=l[o+1]+i,b=l[y]+s,v=l[y+1]+s;return p(d,p(c,p(a,u(l[f],e,t,r),u(l[b],e-1,t,r)),p(a,u(l[g],e,t-1,r),u(l[v],e-1,t-1,r))),p(c,p(a,u(l[f+1],e,t,r-1),u(l[b+1],e-1,t,r-1)),p(a,u(l[g+1],e,t-1,r-1),u(l[v+1],e-1,t-1,r-1))))};if("number"!==m(o)&&"number"!==m(i))return f(t,r,n,c);const g=[];for(let s=0;s<i;s++){a&&(g[s]=[]);for(let e=0;e<o;e++){const t=f(e,s,0,c);a?g[s][e]=t:g[s*o+e]=t}}return g}},forceDirected(e){let{nodes:t=[],maxDis:r=300,maxOffset:n=10,minOffset:o=0,atten:i=.025,props:a,boundary:l,boundaryOffset:c=5}=e;a={id:"id",x:"x",y:"y",disabled:"disabled",...a||{}};const h=e=>[e[a.x],e[a.y]];t.forEach((e=>{if(e[a.disabled])return;const[d,m]=h(e);t.forEach((t=>{if(t[a.disabled]||e[a.id]===t[a.id])return;const[u,p]=h(t);let[f,g]=s.coord.springForce({x1:d,y1:m,x2:u,y2:p,maxDis:r,maxOffset:n,minOffset:o,atten:i});if("array"===s.isType(l)){const[e,t,r,n]=l;f>t&&(f-=c),f<n&&(f+=c),g>r&&(g-=c),g<e&&(g+=c)}t[a.x]=f,t[a.y]=g}))}))},moore(e){let{neighbors:t,s:r,w:n,h:o,map:i,mapPointValFunc:a}=s.params.merge(e,{s:null,w:0,h:0,map:[],mapPointValFunc:e=>{let{x:t,y:r,map:n}=e;return n[r][t]},neighbors:[[0,1],[-1,1],[-1,0],[-1,-1],[0,-1],[1,-1],[1,0],[1,1]]});if(r="object"===s.isType(r)?[r.y,r.x]:r,!r)for(let s=0;s<o;s++)for(let e=0;e<n;e++)if(a({x:e,y:s,map:i})){r=[s,e];break}const l=[],c=t.length;if(!r)return l;let h,d=[...r],m=[r[0],r[1]-1];for(l.push({x:d[1],y:d[0]});;){let e=t.findIndex((e=>{let[t,r]=e;return d[1]+t===m[1]&&d[0]+r===m[0]}));e=~e?e:0,h=null;for(let r=1;r<=c;r++){const s=(e+r)%c,l=d[1]+t[s][0],u=d[0]+t[s][1];if(!(l>=0&&l<n&&u>=0&&u<o&&a({x:l,y:u,map:i})))continue;h=[u,l];const p=t[(s+c-1)%c];m=[d[0]+p[1],d[1]+p[0]];break}if(!h||h[0]===r[0]&&h[1]===r[1])break;l.push({x:h[1],y:h[0]}),d=h}return l},marchingSquares:{getEdge:(e,t)=>[[{x:0,y:.5},{x:.5,y:0}],[{x:.5,y:0},{x:1,y:.5}],[{x:1,y:.5},{x:.5,y:1}],[{x:.5,y:1},{x:0,y:.5}]][t][e[t]],run(e){let{map:t,mapPointValFunc:r}=e;const n=[];r=r||(e=>{let{x:t,y:r,map:n}=e;return n[r][t]});for(let i=0;i<t.length-1;i++)for(let e=0;e<t[i].length-1;e++){const s=[r({y:i,x:e,map:t}),r({y:i,x:e+1,map:t}),r({y:i+1,x:e+1,map:t}),r({y:i+1,x:e,map:t})];let a=0;for(var o=0;o<s.length;o++)a+=s[o]*Math.pow(2,o);if(0===a||15===a)continue;const l=[];for(let t=0;t<4;t++){const r=this.getEdge(s,t);r&&l.push({x:e+r.x,y:i+r.y})}n.push(l)}return n}},aStar:{createNode(e){let{x:t,y:r,g:n=0,h:o=0,f:i=0,parent:s}=e;return{x:t,y:r,g:n,h:o,f:i,parent:s}},getPath(e){const t=[];for(;e;)t.unshift(e),e=e.parent;return t},getNeighbors(e,t,r){const n=[];return t[0]?([[0,1],[0,-1],[1,0],[-1,0]].forEach((o=>{let[i,s]=o;const[a,l]=[e.x+i,e.y+s];a>=0&&a<t[0].length&&l>=0&&l<t.length&&r({x:a,y:l,map:t})&&n.push(this.createNode({x:a,y:l}))})),n):n},run(e){let{map:t,start:r,end:n,mapPointValFunc:o}=e;o=o||(e=>{let{x:t,y:r,map:n}=e;return n[r][t]});const i=[r],a=[];for(;i.length;){let e=i[0],r=0;if(i.forEach(((t,n)=>t.f<e.f&&(e=t,r=n))),i.splice(r,1),a.push(e),e.x===n.x&&e.y===n.y)return this.getPath(e);this.getNeighbors(e,t,o).forEach((t=>{if(a.some((e=>e.x===t.x&&e.y===t.y)))return;const r=e.g+1,o=s.coord.getMD({x1:t.x,y1:t.y,x2:n.x,y2:n.y}),l=r+o,c=i.some((e=>e.x===t.x&&e.y===t.y));c&&l>=t.f||(t.g=r,t.h=o,t.f=l,t.parent=e,!c&&i.push(t))}))}return[]}},bilinearInterpolation(e){let{x:t,y:r,imgData:n}=e;const{width:o,height:i,data:s}=n,a=Math.floor(t),l=Math.floor(r),c=a+1,h=l+1;if(a<0||a>=o||l<0||l>=i||c<0||c>=o||h<0||h>=i)return[0,0,0,0];const d=t-a,m=r-l,u=4*(l*o+a),p=4*(h*o+a),f=4*(l*o+c),g=4*(h*o+c);return[s[u]*(1-d)*(1-m)+s[f]*d*(1-m)+s[p]*(1-d)*m+s[g]*d*m,s[u+1]*(1-d)*(1-m)+s[f+1]*d*(1-m)+s[p+1]*(1-d)*m+s[g+1]*d*m,s[u+2]*(1-d)*(1-m)+s[f+2]*d*(1-m)+s[p+2]*(1-d)*m+s[g+2]*d*m,s[u+3]*(1-d)*(1-m)+s[f+3]*d*(1-m)+s[p+3]*(1-d)*m+s[g+3]*d*m]},wave(e){const{w:t,h:r,gap:n,s:o,dir:a,smooth:l,outType:c,top:h,outBlob:d,format:m,stroke:u,fill:p,lineWidth:f,scale:g,reverse:y}=s.params.merge(e,{lineWidth:1,stroke:"#4095ff",fill:"#4095ff",outBlob:!1,format:null,outType:"png",gap:30,reverse:!1,w:300,h:50,s:1,dir:"hori",smooth:.5,scale:2,top:[1,.5]});let b=i.createElement("canvas"),v=b.getContext("2d");b.width=t*g,b.height=r*g,p&&(v.fillStyle=p),u&&(v.strokeStyle=u),v.lineWidth=f,v.save(),v.scale(g,g),v.clearRect(0,0,t,r);let x,w,_=1,M=o*r;const T=[{x:0,y:M}];for(v.moveTo(0,M);w=h[_%h.length]*r,x=_*n,v.bezierCurveTo(x-n*l,M,x-n*(1-l),w,x,w),M=w,_++,T.push({x:x,y:w}),!(x>=t););if(m?m({conf:e,c:b,ctx:v,x:x,y:w,points:T}):(v.lineTo(x,y?0:r),v.lineTo(0,y?0:r),v.closePath(),p&&v.fill(),u&&v.stroke(),v.restore()),"vert"===a){const e=i.createElement("canvas"),n=e.getContext("2d");e.width=r*g,e.height=t*g,n.save(),n.scale(g,g),n.clearRect(0,0,r,t),n.translate(r/2,t/2),n.rotate(.5*Math.PI),n.drawImage(b,t/-2,r/-2,t,r),b=e}if("canvas"===c)return b;const $=b.toDataURL(`image/${c}`);return b.remove(),d?s.file["url"===d?"base64ToBlobUrl":"base64ToBlob"]($):$},async imgCartesianToPolar(e){let{img:t,w:r,h:n,r:a,timeout:l,outSrc:c=1,bg:h="rgb(0,0,0,0)"}=e;if(!t)return;if("string"===s.isType(t)){const e=t;t=new Image,t.src=e;const r=await new Promise((e=>{t.onload=()=>e(1),t.onerror=()=>e(0),l&&o.setTimeout((()=>e(0)),l)}));if(!r)return}r=r||t.naturalWidth||t.width,n=n||t.naturalHeight||t.height,a=a||s.coord.getDistance({x1:0,y1:0,x2:r,y2:n})/2;const d=i.createElement("canvas"),m=d.getContext("2d");d.width=r,d.height=n,m.drawImage(t,0,0,r,n);const u=m.getImageData(0,0,r,n),p=m.createImageData(r,n),f=r/2,g=n/2,y=Math.PI,b=(e,t,r)=>4*(t*r+e);h=s.color.colorToRgb(h),h[3]*=255;for(let o=0;o<n;o++)for(let e=0;e<r;e++){const t=b(e,o,r),{a:i,r:l}=s.coord.cartesianToPolar(e-f,o-g),c=b(Math.round(i/(2*y)*r),Math.round(l/a*n),r);let d=u.data.slice(c,c+4);d=4===d.length?d:h,p.data[t]=d[0]||0,p.data[t+1]=d[1]||0,p.data[t+2]=d[2]||0,p.data[t+3]=d[3]||0}m.putImageData(p,0,0);const v=d.toDataURL();return c?v:{c:d,ctx:m,img:t,imgData:u,newImgData:p,w:r,h:n,r:a,src:v}}},coord:{getGeoDis(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{r:t,lat1:r,lng1:n,lat2:o,lng2:i}=s.params.merge(e,{r:6371,lat1:null,lng1:null,lat2:null,lng2:null}),a=r*Math.PI/180,l=n*Math.PI/180,c=o*Math.PI/180,h=c-a,d=i*Math.PI/180-l,m=Math.sin(h/2)*Math.sin(h/2)+Math.cos(a)*Math.cos(c)*Math.sin(d/2)*Math.sin(d/2);return t*(2*Math.atan2(Math.sqrt(m),Math.sqrt(1-m)))},geoToCartesian(e){let{lat:t,lng:r,w:n,h:o,outArr:i}=e;const s=(r+180)*(n/360),a=-1*Math.log(Math.tan(t*Math.PI/180)+1/Math.cos(t*Math.PI/180))/Math.PI*(o/2);return i?[s,a]:{x:s,y:a}},cartesianToGeo(e){let{x:t,y:r,w:n,h:o,outArr:i}=e;const s=360*t/n-180,a=180*Math.atan(Math.sinh(-2*r*Math.PI/o))/Math.PI;return i?[s,a]:{lng:s,lat:a}},geoToWorld(e){let{lat:t,lng:r,outArr:n,r:o=6378137}=e,i=r*Math.PI/180*o,s=Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180);return s=s*Math.PI/180*o,n?[i,s]:{x:i,y:s}},cartesianToPolar:(e,t)=>({r:Math.sqrt(e*e+t*t),a:Math.atan2(t,e)}),polarToCartesian(e,t,r){const[n,o]=[t*Math.cos(e),t*Math.sin(e)];return r?[n,o]:{x:n,y:o}},rotatePoint3d(){let{x:e,y:t,z:r=0,cx:n=0,cy:o=0,outArr:i,cz:a=0,ax:l=0,ay:c=0,az:h=0,rx:d,ry:m,rz:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d="number"===s.isType(d)?d:l*Math.PI/180,m="number"===s.isType(m)?m:c*Math.PI/180,u="number"===s.isType(u)?u:h*Math.PI/180;const p=e,f=Math.cos(d)*(t-o)-Math.sin(d)*(r-a)+o,g=Math.sin(d)*(t-o)+Math.cos(d)*(r-a)+a,y=Math.cos(m)*(p-n)+Math.sin(m)*(g-a)+n,b=f,v=-Math.sin(m)*(p-n)+Math.cos(m)*(g-a)+a,x=Math.cos(u)*(y-n)-Math.sin(u)*(b-o)+n,w=Math.sin(u)*(y-n)+Math.cos(u)*(b-o)+o;return i?[x,w,v]:{x:x,y:w,z:v}},project3dTo2d(){let{x:e,y:t,z:r,dis:n,outArr:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=n/(r+n);return e+=e*i,t+=t*i,o?[e,t,i]:{x:e,y:t,scale:i}},getDistance(e){let{x1:t,y1:r,z1:n,x2:o,y2:i,z2:a}=e;const l=[];return"number"===s.isType(t)&&l.push(o-t),"number"===s.isType(r)&&l.push(i-r),"number"===s.isType(n)&&l.push(a-n),Math.hypot(...l)},getCenter(e){let{x1:t,y1:r,z1:n,x2:o,y2:i,z2:a,outArr:l}=e;const c={x:(t+o)/2,y:(r+i)/2},h=[c.x,c.y];return"number"===s.isType(n)&&h.push(c.z=(n+a)/2),l?h:c},getMD(e){let{x1:t,y1:r,z1:n,x2:o,y2:i,z2:a}=e,l=0;return"number"===s.isType(t)&&(l+=Math.abs(o-t)),"number"===s.isType(r)&&(l+=Math.abs(i-r)),"number"===s.isType(n)&&(l+=Math.abs(a-n)),l},springForce(e){let{x1:t,y1:r,z1:n,x2:o,y2:i,z2:a,maxDis:l=300,maxOffset:c=10,minOffset:h=0,atten:d=.025,outArr:m=1}=e;const u=s.coord.getDistance({x1:t,y1:r,z1:n,x2:o,y2:i,z2:a}),p=e=>e>c?c:e<h?h:e,f="number"===s.isType(n);let g,y=0,b=o,v=i,x=a;u>l?(y=p((u-l)*d),g=y/u,b=g*(t-o)+o,v=g*(r-i)+i,f&&(x=g*(n-a)+a)):u<l&&u>0&&(y=p((l-u)*d),g=y/(u+y),b=(g*t-o)/(g-1),v=(g*r-i)/(g-1),f&&(x=(g*n-a)/(g-1)));const w=[b,v],_={x:b,y:v};return f&&w.push(_.z=x),m?w:_},scalePoint(e){let{x:t,y:r,z:n,cx:o=0,cy:i=0,cz:a=0,outArr:l,scale:c,scaleX:h,scaleY:d,scaleZ:m,lastScale:u,lastScaleX:p,lastScaleY:f,lastScaleZ:g}=e;const{isType:y}=s,b="number"===y(n);let v,x,w;return"number"===y(c)?(v=x=c/u-1,b&&(w=v)):(v=h/p-1,x=d/f-1,b&&(w=m/g-1)),t+=(t-o)*v,r+=(r-i)*x,b&&(n+=(n-a)*w),l?b?[t,r,n]:[t,r]:b?{x:t,y:r,z:n}:{x:t,y:r}}},canvas2d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=i.createElement("canvas"),n=s.params.merge(t,{w:e.clientWidth,h:e.clientHeight,evColor:null,dpr:1,boxScale:1,c:e,evC:r,ctx:e.getContext("2d"),evCtx:r.getContext("2d"),bindEvOpt:void 0,evSens:3,curShape:null,curMouseShape:null,events:{},evCache:null,idMap:{},idStart:[0,0,0],idSpan:5,neighbors:[[-1,-1],[0,-1],[1,-1],[-1,0],[0,0],[1,0],[-1,1],[0,1],[1,1]],setEvCtxColor(e){const{evCtx:t,curShape:r,evColor:n}=this;if(!r)return;const o=r.colorId;if(n===o)return;if(this.evColor=o,t.fillStyle=o,t.strokeStyle=o,!e)return;const{globalAlpha:i,shadowBlur:s,shadowOffsetX:a,shadowOffsetY:l,filter:c}=t;1!==i&&(t.globalAlpha=1),0!==s&&(t.shadowBlur=0),0!==a&&(t.shadowOffsetX=0),0!==l&&(t.shadowOffsetY=0),"none"!==c&&(t.filter="none")},resize(e){let{w:t,h:r,dpr:n}=e;this.w="number"===s.isType(t)?t:this.w,this.h="number"===s.isType(r)?r:this.h,this.dpr="number"===s.isType(n)?n:this.dpr;const{c:o,evC:i}=this;o.width=i.width=this.w*this.dpr,o.height=i.height=this.h*this.dpr,this.render()},render(){const{shape:e,w:t,h:r,__proxy:n,dpr:o}=this;this.evCache=null,this.curShape=e,n.save(),n.scale(o,o),n.clearRect(0,0,t,r),this.curShape=null;const i=[e];for(;i.length;){const e=i.shift();let{children:t,hide:r,isUpdateRenderChildren:o,renderChildren:s}=e;r||(o&&(e.renderChildren=s=[...t].sort(((e,t)=>e.zIndex-t.zIndex))),i.unshift(...s),e.isUpdateRenderChildren=!1,this.curShape=e,e.render&&e.render({ctx:n,item:e}),this.curShape=null)}this.curShape=e,n.restore(),this.curShape=null},createShape(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.createId();return s.params.merge(e,{...s.clone(s.event),on:{},id:t,hide:!1,colorId:t&&`rgb(${t.replace(/-/g,",")})`,zIndex:0,zIndex2:0,render:null,children:[],parent:null,isMouseEnter:!1,renderChildren:[],static:!1,isUpdateRenderChildren:!0}),e.zIndex2=e.zIndex,Object.defineProperty(e,"zIndex",{get:()=>e.zIndex2,set:t=>{e.zIndex2=t,e.parent&&(e.parent.isUpdateRenderChildren=1)}}),e.parent&&this.pushShape(e.parent,e),!e.static&&e.bindEv("mousemove",(t=>{let{e:r,tg:n,stopPropagation:o}=t;e!==this.curMouseShape&&n===e&&(this.emitEv("mouseleave",this.curMouseShape,r,!1),this.emitEv("mouseout",this.curMouseShape,r),this.curMouseShape=e,this.emitEv("mouseenter",e,r,!1),this.emitEv("mouseover",e,r))})),this.idMap[e.id]=e,e},pushShape(e,t){e&&!e.children.some((e=>e.id===t.id))&&(e.children.push(t),t.parent=e,e.isUpdateRenderChildren=1)},createId(){const e=this.idStart=this.idStart||[0,0,0];e[0]+=this.idSpan;for(let t=0;t<e.length&&!(e[t]<=255);t++){if(t+1>=e.length)return console.error("新的shape超出颜色ID范围"),!1;e[t]-=256,e[t+1]++}return e.join("-")},getShape(e){return this.idMap[e]},updateIdMap(){const e=[this.shape];for(this.idMap={};e.length;){const t=e.shift();this.idMap[t.id]=t,t.children&&e.unshift(...t.children)}},emitEv(e,t,r){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=0;const i=t,s=()=>o=1;for(;t&&(t.emitEv(e,{e:r,stopPropagation:s,tg:i}),t.parent&&!o&&n);)t=t.parent},bindEv(){["mousedown","mouseup","click","contextmenu","dblclick","mousemove","touchstart","touchmove","touchend","touchcancel","auxclick","pointerdown","pointerenter","pointerleave","pointermove","pointerout","pointerover","pointerup","mousewheel","DOMMouseScroll"].forEach((e=>{this.events[e]=t=>{const{w:r,h:n,dpr:o,evCtx:i,boxScale:a,c:l,neighbors:c,evSens:h}=this,d=s.dom.getMouseXYByBox({tg:l,single:!1,e:t,boxScale:a}),m=this.evCache=this.evCache||i.getImageData(0,0,r*o,n*o),u=(e,t)=>{const{width:r,data:n}=m,o=4*r*t+4*e;return"number"===s.isType(n[o])&&255===n[o+3]&&`${n[o]}-${n[o+1]}-${n[o+2]}`};for(let[p,f]of d){if("number"!==s.isType(p)||"number"!==s.isType(f))continue;const r=u(Math.round(p*o),Math.round(f*o));if(!r)continue;const n={};if(c.forEach((e=>{let[t,r]=e;const i=u(Math.round((p+t)*o),Math.round((f+r)*o));i&&(n[i]=n[i]||0,n[i]++)})),!n[r]||n[r]<h)return;const i=this.getShape(r);i&&!i.static&&this.emitEv(e,i,t)}},this.c.addEventListener(e,this.events[e],"function"===s.isType(this.bindEvOpt)?this.bindEvOpt({name:e,ctx:this.__proxy}):this.bindEvOpt)})),this.events.mouseleave=e=>{this.emitEv("mouseleave",this.curMouseShape,e,!1),this.emitEv("mouseout",this.curMouseShape,e),this.curMouseShape=null},this.c.addEventListener("mouseleave",this.events.mouseleave,"function"===s.isType(this.bindEvOpt)?this.bindEvOpt({name:"mouseleave",ctx:this.__proxy}):this.bindEvOpt)},unEv(){const{events:e,c:t}=this;Object.entries(e).forEach((r=>{let[n,o]=r;e[n]=null,t.removeEventListener(n,o)}))},destroy(){this.unEv(),this.shape=this.c=this.ctx=this.evC=this.evCtx=null}});return n.bindEv(),n.shape=n.createShape({render:e=>{let{ctx:t}=e;return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,t.w,t.h)}}),n.__self=n,n.__proxy=new Proxy(n,{get(e,t,r){const{ctx:n,evCtx:o,curShape:i}=e;return"__proxy"===t?r:"__self"===t?e:t in n?"function"===s.isType(n[t])?function(){const r=[...arguments];if(["createImageData","createLinearGradient","createPattern","createRadialGradient","getImageData","getLineDash","getTransform","isPointInPath","isPointInStroke","measureText","putImageData"].includes(t))return n[t](...r);if(i){if(i.static)return n[t](...r);if(e.setEvCtxColor(),"drawImage"===t){let e,t,n,i;const{naturalWidth:s,naturalHeight:a}=r[0];3===r.length?([,e,t]=r,[n,i]=[s,a]):5===r.length?[,e,t,n,i]=r:9===r.length&&([,,,,,e,t,n,i]=r),o.fillRect(e,t,n,i)}else if(["fillText","strokeText"].includes(t)){let e,t,[n,i,a,l]=r;const c="number"===s.isType(l)?l:o.measureText(n).width;let h=(o.font+"").match(/([\d\.]+)px/);h=h&&1*h[1]||12;const{textBaseline:d,textAlign:m}=o;e="right"===m?i-c:"center"===m?i-c/2:i,t=["bottom","alphabetic"].includes(d)?a-h:"middle"===d?a-h/2:a,o.fillRect(e,t,c,h)}else o[t](...r);return n[t](...r)}}:n[t]:e[t]},set(e,t,r,n){if(t in e.ctx){if(e.ctx[t]===r)return!0;e.ctx[t]=r,["fillStyle","strokeStyle","shadowBlur","shadowOffsetX","shadowOffsetY","filter","globalAlpha"].includes(t)||(e.evCtx[t]=r)}else e[t]=r;return!0}}),n.__proxy}};"undefined"!=typeof window&&s.setEnv({window:window,document:document});var a=s;let l=2e3;var c={name:"",reqCode:"SUCCESS",env:{mode:"export"},zIndex:()=>++l,rootPath:"undefined"==typeof window||void 0===window.location?"/":a.path.join(location.href.split("#")[0],"../"),mergeConf(){},beforeMergeConf(){},mergeDirective(){},beforeMergeDirective(){},themeTypeSaveKey:"themeType",themeConfSaveKey:"customThemeConf",i18nTypeSaveKey:"i18nType"};const h=e=>{const{language:t,noMatch:r}=d;e="object"===a.isType(e)?e:{txt:e};const{txt:n,splitTxt:o,splitSyb:i,setType:s,getType:l,getI18n:c,setLanguage:h,type:m}=a.params.merge(e,{txt:null,setLanguage:null,splitTxt:null,splitSyb:"|",setType:null,getType:!1,getI18n:!1,type:d.type}),u=e=>a.isEmpty(e,[null,void 0]);if(!u(n)){const e=t[n]&&t[n][m];return u(e)?(r[n]=1,n):e}return u(o)?(s&&(d.type=s),h&&(d.language=h),l?d.type:c?d:void 0):o.split(i).map((e=>{const n=t[e]&&t[e][m];return u(n)?(r[e]=1,e):n})).join("")},d=new Proxy({...a.clone(a.event),on:{setType:[],setLanguage:[]},t:h,type:"zh-CN",noMatch:{},language:{},install(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";e.prototype.$t=h,e.observable(d),d.type=t}},{set:(e,t,r)=>(e[t]===r||(e[t]=r,"type"===t&&d.emitEv("setType",{i18n:d,type:r}),"language"===t&&d.emitEv("setLanguage",{i18n:d,language:r})),!0)});var m=d;const u=new Map,p={...a.clone(a.event),root:null,delimiters:["#{","}#"],disabledRender:!1,disabledDiffVNode:!1,disabledSetRenderVm:!1,disabledPatchVNode:!1,disabledSetDepTarget:!1,disabledDefineReactive:!1,disabledDefineObserver:!1,disabledBeforeInitVm:!1,disabledC:!1,disabledT:!1,disabledV:!0,on:{init:[],setDepTarget:[],beforePatchVNode:[],beforeSetRenderVm:[],beforeDiffVNode:[],beforeRenderVNode:[],defineObserver:[],defineReactive:[],beforeCreateVNode:[],createdVNode:[],beforeCreateTNode:[],createdTNode:[],beforeBeforeInitVm:[],destroy:[]},init(e){if(!e||e._jsx_isInit)return;const t=e.$parent&&e.$parent._jsxOpt;e._jsxOpt=t&&!t.isSelf?t:p,e._jsxOpt.watchT(e),e._jsxOpt.watchC(e),e._jsxOpt.watchV(e),e._jsxOpt.watchRender(e),e._jsx_isInit=1,e._jsxOpt.emitEv("init",{vm:e,jsx:p,jsxOpt:e._jsxOpt})},injectOpt(e,t){const r=[e];for(;r.length;){const e=r.shift();e.$children&&r.unshift(...e.$children),e._jsxOpt=t,e.$forceUpdate()}},destroy(e){if(!e||!e._jsx_isInit)return;const{_jsxOpt:t}=e;e._v=e._jsx_v,e._c=e._jsx_c,e._t=e._jsx_t,e.$createElement=e._jsx_h,e._render=e._jsx_render,e._jsx_render=e._jsx_v=e._jsx_c=e._jsx_t=e._jsx_h=e._jsx_isInit=e._jsxOpt=null,e.$forceUpdate(),t.emitEv("destroy",{vm:e,jsx:p,jsxOpt:t})},watchRender(e){e._jsx_isInit||(e._jsx_render||(e._jsx_render=e._render),e._render=function(){const{disabledRender:t}=e._jsxOpt;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];const i=e._jsx_render(...n);return("function"===a.isType(t)?t({vm:e,jsx:p,vNode:i,jsxOpt:e._jsxOpt,args:n}):t)||e._jsxOpt.emitEv("beforeRenderVNode",{vNode:i,vm:e,args:n,jsx:p,jsxOpt:e._jsxOpt}),i})},watchT(e){if(e._jsx_isInit)return;e._jsx_t||(e._jsx_t=e._t);const t=e._jsx_t;e._t=function(){const{disabledT:r}=e._jsxOpt;for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if("function"===a.isType(r)?r({vm:e,jsx:p,jsxOpt:e._jsxOpt,args:[str]}):r)return e._jsx_t(...o);e._jsxOpt.emitEv("beforeCreateTNode",{vm:e,args:o,jsx:p,jsxOpt:e._jsxOpt});let s=t.call(e,...o);return e._jsxOpt.emitEv("createdTNode",{vNode:s,vm:e,args:o,jsx:p,jsxOpt:e._jsxOpt}),e._jsx_formatSlot&&(s=e._jsx_formatSlot({vNode:s,vm:e,args:o,jsx:p,jsxOpt:e._jsxOpt})),s}},watchC(e){if(e._jsx_isInit)return;e._jsx_h||(e._jsx_h=e.$createElement),e._jsx_c||(e._jsx_c=e._c);const t=e._jsx_h;e.$createElement=e._c=function(){const{disabledC:r}=e._jsxOpt;for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];if("function"===a.isType(r)?r({vm:e,jsx:p,jsxOpt:e._jsxOpt,args:o}):r)return t(...o);e._jsxOpt.emitEv("beforeCreateVNode",{vm:e,args:o,jsx:p,jsxOpt:e._jsxOpt});const s=t.call(e,...o);return e._jsxOpt.emitEv("createdVNode",{vNode:s,vm:e,args:o,jsx:p,jsxOpt:e._jsxOpt}),s}},watchV(e){if(e._jsx_isInit)return;const t=e.$createElement;e._jsx_v||(e._jsx_v=e._v),e._v=r=>{const{delimiters:n,disabledV:o}=e._jsxOpt;if("function"===a.isType(o)?o({vm:e,jsx:p,jsxOpt:e._jsxOpt,args:[r]}):o)return e._jsx_v(r);r+="";const[i,s]=n;let l=r,c=l.indexOf(i),h=[];const{isType:d}=a;for(;~c;){const r=l.slice(0,c);if(r&&h.push(e._jsx_v(r)),c+=i.length,l=l.slice(c),c=l.indexOf(s),!~c){h=[],console.error("jsx编译出错,没有结束标记");break}new Function("__opt",`\n\t\t\t\t\t__opt.fun = ${l.slice(0,c)};\n\t\t\t\t\t__opt.arr.push(typeof(__opt.fun) === 'function' ? __opt.fun(__opt) : __opt.vm._jsx_v(__opt.vm._s(__opt.fun)));\n\t\t\t\t`)({arr:h,h:t,vm:e}),c+=s.length,l=l.slice(c),c=l.indexOf(i)}return l&&h.length&&h.push(e._jsx_v(l)),h.length?h:e._jsx_v(r)}},isChildCache:{},isChildVm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{vm:t,parent:r,stop:n,noCache:o,cacheExp:i,checkFunc:s}=a.params.merge(e,{vm:null,parent:null,stop:null,noCache:!1,cacheExp:6e4,checkFunc:null});const{isChildCache:l}=p,c=`${r._uid}__${t._uid}`,h=(new Date).getTime();if(a.throttle.commitAfter("jsx:clearExpIsChildCache",(()=>Object.entries(l).forEach((e=>{let[t,r]=e;return r.exp<=h&&delete l[t]}))),1e3),!o&&l[c]&&l[c].exp>h)return l[c].isChild;for(l[c]={exp:h+i,isChild:!1};t&&(!n||!n({vm:t,cache:l,opt:e,parent:r}));){if(s?s({vm:t,cache:l,opt:e,parent:r}):t===r)return l[c].isChild=!0;t=t.$parent}return l[c].isChild},formatVNodeData(e){let t={styleList:[],classList:[]};return e?(t={...e,...t},[["style","staticStyle",t.styleList],["class","staticClass",t.classList]].forEach((t=>{let[r,n,o]=t;const i=[e[r],e[n]];for(;i.length;){const e=i.shift(),t=a.isType(e);"string"===t&&e&&o.push(e.trim()),"array"===t&&i.unshift(...e),"object"===t&&("class"===r&&Object.entries(e).forEach((e=>{let[t,r]=e;return r&&o.push(t.trim())})),"style"===r&&Object.entries(e).forEach((e=>{let[t,r]=e;return o.push(...("array"===a.isType(r)?r:[r]).map((e=>`${t}:${e}`)))})))}})),t):t},clipRender(){const{$options:e}=this;if(this._c=this.$createElement,e._origRender)return;let t=(e._origRender=e.render).toString();const r={};let n=/\w+._v\([\s\\n\\t\\f\\r"']*?\{##[\s\\n\\t\\f\\r"']*([^#\s\\n\\t\\f\\r=]+?)[\s\\n\\t\\f\\r"']*\=[\s\\n\\t\\f\\r"']*?\)\s*\,\n?([^]+?)\s*\,\s*\w+\._v\([\s\\n\\t\\f\\r"']*?##\}[\s\\n\\t\\f\\r"']*?\)\,?/;if(t=t.replace(new RegExp(n.source,"ig"),(e=>((e=e.match(new RegExp(n.source,"i")))&&(r[e[1]]=e[2]),""))),!Object.keys(r).length)return r;t=t.replace(/^\s*function\s*[^\(\)]*?\(\)\s*\{/,"").replace(/\}\s*$/,"");let o=t.indexOf("return");o=~o&&t.slice(0,o),o=o||"\n\t\t\tconst _vm = this;\n\t\t\tconst _h = _vm.$createElement;\n\t\t\tconst _c = _vm._self._c || _h\n\t\t",n=/\w+\._v\([\s\\n\\t\\f\\r"']*?\{##[\s\\n\\t\\f\\r"']*([^#\s\\n\\t\\f\\r]+?)[\s\\n\\t\\f\\r"']*###\}[\s\\n\\t\\f\\r"']*?\)/,t=t.replace(new RegExp(n.source,"ig"),(e=>(e=(e=e.match(new RegExp(n.source,"i")))&&e[1])&&r[e]||"")),e.render=new Function(t).bind(this);const i=this;return{map:r,renderMap:new Proxy(r,{get(e,t){const r=e[t];return e[t]?new Function(` ${o}; return (${r}); `).bind(i):r}})}},setup(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=a.params.optional(c).n.Vue.util.__v||{},{preMap:n,hookMap:o}=a.params.merge(t,{preMap:{props:"p_",filters:"f_",computed:"c_",watch:"w_",components:"cp_",directives:"d_",inject:"i_",provide:"pv_",hook:"h_"},hookMap:{c:"created",bm:"beforeMount",m:"mounted",bu:"beforeUpdate",u:"updated",bd:"beforeDestroy",d:"destroyed",a:"activated",da:"deactivated",ec:"errorCaptured",sp:"serverPrefetch",bre:"beforeRouteEnter",bru:"beforeRouterUpdate",brl:"beforeRouteLeave"}});return delete t.preMap,delete t.hookMap,{_isSetup:!0,data(){const t=this,i=e.call(t,t),s=this.$options;let l;const c={};return Object.entries(i).forEach((e=>{let[r,h]=e;const d="string"===a.isType(r),m=e=>d&&r.slice(0,e.length)===e&&r.length>e.length&&r.slice(e.length);let u;const p=e=>((e,t,r,n)=>{delete i[r],s[e]=s[e]||{},s[e][t]=n})(e,u,r,h);return(u=m(n.props))?(p("props"),c.props=1):(u=m(n.filters))?p("filters"):(u=m(n.computed))?p("computed"):(u=m(n.watch))?p("watch"):(u=m(n.components))?p("components"):(u=m(n.directives))?p("directives"):(u=m(n.inject))?(p("inject"),c.inject=1,void(s.inject[u]="object"===a.isType(h)?h:{from:u,default:"function"===a.isType(h)?h:void 0})):(u=m(n.provide))&&"function"===a.isType(h)?(delete i[r],l=l||{},void(l[u]=h)):(u=m(n.hook))?(delete i[r],u=o[u]||u,s[u]="array"===a.isType(s[u])?s[u]:[s[u]],s[u].push(h),void a.arr.delItem(s[u],null,(e=>"function"!==a.isType(e)))):void("function"===a.isType(h)&&(i[r]=h.bind(t)))})),c.inject&&r.initInjections&&r.initInjections(t),c.props&&r.initProps&&(s.propsData=t.$attrs,r.initProps(t,s.props)),l&&(s.provide=()=>Object.fromEntries(Object.entries(l).map((e=>{let[r,n]=e;return[r,n.call(t)]})))),t._isSetup=!0,i},...t}},install(e){u.get(e)||(u.set(e,1),e.mixin({beforeCreate(){p.init(this)}}),e.prototype.$jsx=p)}};p.root=p;var f=p;const g=c,y=e=>{const t=g.n&&g.n.components||{},r={vm:null,cache:null,_isSkip:!0,render(){let{comp:n,cache:o}=r;r.vm=this;const i=this.$createElement(t[e]||e,{on:{...this.$listeners},props:{...this.$attrs}});return o&&(i.componentInstance=o.componentInstance),r.cache=i,i.data.keepAlive=!0,i},destroy(){const{vm:e}=r;r.cache=null,e&&(e.$destroy(),e.$el&&e.$el.remove(),r.vm=null)}};return r},b=e=>{const t=a.uuid();let{vModelKey:r,compName:n,props:o,on:i,form:s}=a.params.merge(e,{compName:null,form:{},vModelKey:"value",props:{},on:{}});const l=g.n&&g.n.components||{},c=S.dataMap[t]={id:t,comp:e=>{let{h:t,vm:a}=e;return t(l[n]||n,{on:{...i,input:[e=>s&&(s[r]=e),i.input].filter((e=>e))},props:{value:s&&s[r],...o}},[])},update(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.props&&(o=e.props),e.on&&(i=e.on),e.form&&(s=e.form),e.compName&&(n=e.compName),e.vModelKey&&(r=e.vModelKey);const{vm:t}=c;t&&t.$forceUpdate()},destroy(){const{vm:e}=c;e&&(e.$destroy(),e.$el&&e.$el.remove(),c.vm=null),c.emitEv("destroy",{conf:c,vm:e}),delete S.dataMap[t]}};return c},v={styleEl:null,...(()=>{const e=c.themeConfSaveKey,t={"--theme-color":"#409eff","--theme-color-gd":"#409eff linear-gradient(45deg, #409eff, #2ee6e6)","--theme-bg-white1":"#fff","--theme-bg-white2":"#fafafa","--theme-bg-white3":"#f7f7f7","--theme-bg-white4":"#f5f5f5","--theme-bg-white5":"#eee","--theme-bg-black1":"#000","--theme-text1":"#000","--theme-text2":"#333","--theme-text3":"#555","--theme-text4":"#777","--theme-text5":"#999","--theme-text6":"#ccc","--theme-text7":"#eee","--theme-border1":"#DCDFE6","--theme-border2":"#ccc","--theme-border3":"#eee","--theme-border4":"#f3f3f3","--theme-shadow1":"rgba(0,0,0,0.07)","--theme-shadow2":"rgba(0,0,0,0.03)","--theme-red":"#FF6161","--theme-green":"#66d231","--theme-yellow":"#ff9000","--theme-grey":"#909399","--theme-scroll-bg":"rgba(255,255,255,0.5)","--theme-scroll-btn":"rgba(0,0,0,0.2)","--theme-size":"small","--theme-medium-h":"36px","--theme-medium-font-size":"14px","--theme-medium-padding":"15px","--theme-medium-margin":"20px","--theme-medium-radius":"3px","--theme-small-h":"32px","--theme-small-font-size":"13px","--theme-small-padding":"12px","--theme-small-margin":"15px","--theme-small-radius":"3px","--theme-mini-h":"28px","--theme-mini-font-size":"12px","--theme-mini-padding":"9px","--theme-mini-margin":"10px","--theme-mini-radius":"3px"};let r=null;if(e&&"undefined"!=typeof window)try{r=JSON.parse(window.localStorage[e])}catch(o){}r=r||{...t};const n=(e,t)=>{let[,r,n]=(e+"").match(/([0-9\.\-\+]+)([a-z_]+)?/)||[];return n=n||"",r=1*r||0,t?r:{n:r,unit:n}};return{customThemeConf:r,baseColors:t,colors:{...t,"--theme-h1":()=>v.get(`--theme-${v.get("--theme-size")||"small"}-h`),"--theme-h2":()=>{const{n:e,unit:t}=n(v.get("--theme-h1"));return a.math.toFixed(.75*e)+t},"--theme-h3":()=>{const{n:e,unit:t}=n(v.get("--theme-h1"));return a.math.toFixed(.5*e)+t},"--theme-h4":()=>{const{n:e,unit:t}=n(v.get("--theme-h1"));return a.math.toFixed(.25*e)+t},"--theme-font-size1":()=>v.get(`--theme-${v.get("--theme-size")||"small"}-font-size`),"--theme-font-size2":()=>{const{n:e,unit:t}=n(v.get("--theme-font-size1"));return a.math.toFixed(.9*e)+t},"--theme-font-size3":()=>{const{n:e,unit:t}=n(v.get("--theme-font-size1"));return a.math.toFixed(.8*e)+t},"--theme-font-size4":()=>{const{n:e,unit:t}=n(v.get("--theme-font-size1"));return a.math.toFixed(.7*e)+t},"--theme-padding1":()=>v.get(`--theme-${v.get("--theme-size")||"small"}-padding`),"--theme-padding2":()=>{const{n:e,unit:t}=n(v.get("--theme-padding1"));return a.math.toFixed(.75*e)+t},"--theme-padding3":()=>{const{n:e,unit:t}=n(v.get("--theme-padding1"));return a.math.toFixed(.5*e)+t},"--theme-padding4":()=>{const{n:e,unit:t}=n(v.get("--theme-padding1"));return a.math.toFixed(.25*e)+t},"--theme-margin1":()=>v.get(`--theme-${v.get("--theme-size")||"small"}-margin`),"--theme-margin2":()=>{const{n:e,unit:t}=n(v.get("--theme-margin1"));return a.math.toFixed(.75*e)+t},"--theme-margin3":()=>{const{n:e,unit:t}=n(v.get("--theme-margin1"));return a.math.toFixed(.5*e)+t},"--theme-margin4":()=>{const{n:e,unit:t}=n(v.get("--theme-margin1"));return a.math.toFixed(.25*e)+t},"--theme-radius1":()=>v.get(`--theme-${v.get("--theme-size")||"small"}-radius`),"--theme-radius2":()=>{const{n:e,unit:t}=n(v.get("--theme-radius1"));return a.math.toFixed(.75*e)+t},"--theme-radius3":()=>{const{n:e,unit:t}=n(v.get("--theme-radius1"));return a.math.toFixed(.5*e)+t},"--theme-radius4":()=>{const{n:e,unit:t}=n(v.get("--theme-radius1"));return a.math.toFixed(.25*e)+t},"--theme-bg-white1-fill":()=>a.color.setAlpha(v.get("--theme-bg-white1"),1),"--theme-bg-white2-fill":()=>a.color.setAlpha(v.get("--theme-bg-white2"),1),"--theme-bg-white3-fill":()=>a.color.setAlpha(v.get("--theme-bg-white3"),1),"--theme-bg-white4-fill":()=>a.color.setAlpha(v.get("--theme-bg-white4"),1),"--theme-bg-white5-fill":()=>a.color.setAlpha(v.get("--theme-bg-white5"),1),"--theme-bg-white1-opacity1":()=>a.color.setAlpha(v.get("--theme-bg-white1"),.1),"--theme-bg-white1-opacity2":()=>a.color.setAlpha(v.get("--theme-bg-white1"),.2),"--theme-bg-white1-opacity3":()=>a.color.setAlpha(v.get("--theme-bg-white1"),.3),"--theme-bg-white1-opacity4":()=>a.color.setAlpha(v.get("--theme-bg-white1"),.4),"--theme-bg-white1-opacity5":()=>a.color.setAlpha(v.get("--theme-bg-white1"),.5),"--theme-bg-white1-opacity6":()=>a.color.setAlpha(v.get("--theme-bg-white1"),.6),"--theme-bg-white1-opacity7":()=>a.color.setAlpha(v.get("--theme-bg-white1"),.7),"--theme-bg-white1-opacity8":()=>a.color.setAlpha(v.get("--theme-bg-white1"),.8),"--theme-bg-white1-opacity9":()=>a.color.setAlpha(v.get("--theme-bg-white1"),.9),"--theme-color-opacity1":()=>a.color.setAlpha(v.get("--theme-color"),.1),"--theme-grey-opacity1":()=>a.color.setAlpha(v.get("--theme-grey"),.1),"--theme-scroll-btn-opacity":()=>a.color.setAlpha(v.get("--theme-scroll-btn"),.7*a.color.getAlpha(v.get("--theme-scroll-btn"))),"--theme-color-light1":()=>a.color.mix("#fff",v.get("--theme-color"),.1),"--theme-color-light2":()=>a.color.mix("#fff",v.get("--theme-color"),.2),"--theme-color-light3":()=>a.color.mix("#fff",v.get("--theme-color"),.3),"--theme-color-light4":()=>a.color.mix("#fff",v.get("--theme-color"),.4),"--theme-color-light5":()=>a.color.mix("#fff",v.get("--theme-color"),.5),"--theme-color-light6":()=>a.color.mix("#fff",v.get("--theme-color"),.6),"--theme-color-light7":()=>a.color.mix("#fff",v.get("--theme-color"),.7),"--theme-color-light8":()=>a.color.mix("#fff",v.get("--theme-color"),.8),"--theme-color-light9":()=>a.color.mix("#fff",v.get("--theme-color"),.9),"--theme-color-dark1":()=>a.color.mix("#000",v.get("--theme-color"),.1),"--theme-color-dark2":()=>a.color.mix("#000",v.get("--theme-color"),.2),"--theme-color-dark3":()=>a.color.mix("#000",v.get("--theme-color"),.3),"--theme-color-dark4":()=>a.color.mix("#000",v.get("--theme-color"),.4),"--theme-color-dark5":()=>a.color.mix("#000",v.get("--theme-color"),.5),"--theme-color-dark6":()=>a.color.mix("#000",v.get("--theme-color"),.6),"--theme-color-dark7":()=>a.color.mix("#000",v.get("--theme-color"),.7),"--theme-color-dark8":()=>a.color.mix("#000",v.get("--theme-color"),.8),"--theme-color-dark9":()=>a.color.mix("#000",v.get("--theme-color"),.9),"--theme-green-light1":()=>a.color.mix("#fff",v.get("--theme-green"),.1),"--theme-green-light2":()=>a.color.mix("#fff",v.get("--theme-green"),.2),"--theme-green-light3":()=>a.color.mix("#fff",v.get("--theme-green"),.3),"--theme-green-light4":()=>a.color.mix("#fff",v.get("--theme-green"),.4),"--theme-green-light5":()=>a.color.mix("#fff",v.get("--theme-green"),.5),"--theme-green-light6":()=>a.color.mix("#fff",v.get("--theme-green"),.6),"--theme-green-light7":()=>a.color.mix("#fff",v.get("--theme-green"),.7),"--theme-green-light8":()=>a.color.mix("#fff",v.get("--theme-green"),.8),"--theme-green-light9":()=>a.color.mix("#fff",v.get("--theme-green"),.9),"--theme-green-dark1":()=>a.color.mix("#000",v.get("--theme-green"),.1),"--theme-green-dark2":()=>a.color.mix("#000",v.get("--theme-green"),.2),"--theme-green-dark3":()=>a.color.mix("#000",v.get("--theme-green"),.3),"--theme-green-dark4":()=>a.color.mix("#000",v.get("--theme-green"),.4),"--theme-green-dark5":()=>a.color.mix("#000",v.get("--theme-green"),.5),"--theme-green-dark6":()=>a.color.mix("#000",v.get("--theme-green"),.6),"--theme-green-dark7":()=>a.color.mix("#000",v.get("--theme-green"),.7),"--theme-green-dark8":()=>a.color.mix("#000",v.get("--theme-green"),.8),"--theme-green-dark9":()=>a.color.mix("#000",v.get("--theme-green"),.9),"--theme-yellow-light1":()=>a.color.mix("#fff",v.get("--theme-yellow"),.1),"--theme-yellow-light2":()=>a.color.mix("#fff",v.get("--theme-yellow"),.2),"--theme-yellow-light3":()=>a.color.mix("#fff",v.get("--theme-yellow"),.3),"--theme-yellow-light4":()=>a.color.mix("#fff",v.get("--theme-yellow"),.4),"--theme-yellow-light5":()=>a.color.mix("#fff",v.get("--theme-yellow"),.5),"--theme-yellow-light6":()=>a.color.mix("#fff",v.get("--theme-yellow"),.6),"--theme-yellow-light7":()=>a.color.mix("#fff",v.get("--theme-yellow"),.7),"--theme-yellow-light8":()=>a.color.mix("#fff",v.get("--theme-yellow"),.8),"--theme-yellow-light9":()=>a.color.mix("#fff",v.get("--theme-yellow"),.9),"--theme-yellow-dark1":()=>a.color.mix("#000",v.get("--theme-yellow"),.1),"--theme-yellow-dark2":()=>a.color.mix("#000",v.get("--theme-yellow"),.2),"--theme-yellow-dark3":()=>a.color.mix("#000",v.get("--theme-yellow"),.3),"--theme-yellow-dark4":()=>a.color.mix("#000",v.get("--theme-yellow"),.4),"--theme-yellow-dark5":()=>a.color.mix("#000",v.get("--theme-yellow"),.5),"--theme-yellow-dark6":()=>a.color.mix("#000",v.get("--theme-yellow"),.6),"--theme-yellow-dark7":()=>a.color.mix("#000",v.get("--theme-yellow"),.7),"--theme-yellow-dark8":()=>a.color.mix("#000",v.get("--theme-yellow"),.8),"--theme-yellow-dark9":()=>a.color.mix("#000",v.get("--theme-yellow"),.9),"--theme-red-light1":()=>a.color.mix("#fff",v.get("--theme-red"),.1),"--theme-red-light2":()=>a.color.mix("#fff",v.get("--theme-red"),.2),"--theme-red-light3":()=>a.color.mix("#fff",v.get("--theme-red"),.3),"--theme-red-light4":()=>a.color.mix("#fff",v.get("--theme-red"),.4),"--theme-red-light5":()=>a.color.mix("#fff",v.get("--theme-red"),.5),"--theme-red-light6":()=>a.color.mix("#fff",v.get("--theme-red"),.6),"--theme-red-light7":()=>a.color.mix("#fff",v.get("--theme-red"),.7),"--theme-red-light8":()=>a.color.mix("#fff",v.get("--theme-red"),.8),"--theme-red-light9":()=>a.color.mix("#fff",v.get("--theme-red"),.9),"--theme-red-dark1":()=>a.color.mix("#000",v.get("--theme-red"),.1),"--theme-red-dark2":()=>a.color.mix("#000",v.get("--theme-red"),.2),"--theme-red-dark3":()=>a.color.mix("#000",v.get("--theme-red"),.3),"--theme-red-dark4":()=>a.color.mix("#000",v.get("--theme-red"),.4),"--theme-red-dark5":()=>a.color.mix("#000",v.get("--theme-red"),.5),"--theme-red-dark6":()=>a.color.mix("#000",v.get("--theme-red"),.6),"--theme-red-dark7":()=>a.color.mix("#000",v.get("--theme-red"),.7),"--theme-red-dark8":()=>a.color.mix("#000",v.get("--theme-red"),.8),"--theme-red-dark9":()=>a.color.mix("#000",v.get("--theme-red"),.9),"--theme-grey-light1":()=>a.color.mix("#fff",v.get("--theme-grey"),.1),"--theme-grey-light2":()=>a.color.mix("#fff",v.get("--theme-grey"),.2),"--theme-grey-light3":()=>a.color.mix("#fff",v.get("--theme-grey"),.3),"--theme-grey-light4":()=>a.color.mix("#fff",v.get("--theme-grey"),.4),"--theme-grey-light5":()=>a.color.mix("#fff",v.get("--theme-grey"),.5),"--theme-grey-light6":()=>a.color.mix("#fff",v.get("--theme-grey"),.6),"--theme-grey-light7":()=>a.color.mix("#fff",v.get("--theme-grey"),.7),"--theme-grey-light8":()=>a.color.mix("#fff",v.get("--theme-grey"),.8),"--theme-grey-light9":()=>a.color.mix("#fff",v.get("--theme-grey"),.9),"--theme-grey-dark1":()=>a.color.mix("#000",v.get("--theme-grey"),.1),"--theme-grey-dark2":()=>a.color.mix("#000",v.get("--theme-grey"),.2),"--theme-grey-dark3":()=>a.color.mix("#000",v.get("--theme-grey"),.3),"--theme-grey-dark4":()=>a.color.mix("#000",v.get("--theme-grey"),.4),"--theme-grey-dark5":()=>a.color.mix("#000",v.get("--theme-grey"),.5),"--theme-grey-dark6":()=>a.color.mix("#000",v.get("--theme-grey"),.6),"--theme-grey-dark7":()=>a.color.mix("#000",v.get("--theme-grey"),.7),"--theme-grey-dark8":()=>a.color.mix("#000",v.get("--theme-grey"),.8),"--theme-grey-dark9":()=>a.color.mix("#000",v.get("--theme-grey"),.9)}}})(),styles:{__base:""},get:e=>"function"===a.isType(v.colors[e])?v.colors[e]({conf:v}):v.colors[e],set:(e,t)=>{v.colors[e]=t,a.debounce.commit("n-theme:update",v.update.bind(v),60)},initStyle(){if(v.styleEl=document.querySelector("#n-themeStyle"),v.styleEl)return v.update();v.styleEl=document.createElement("style"),v.styleEl.id="n-themeStyle",document.querySelector("head").appendChild(v.styleEl),v.update()},type:"light",...a.clone(a.event),on:{},update(){if(!v.styleEl)return v.initStyle();const e=[v.styles.__base,v.styles[v.type]].filter((e=>e));v.styleEl.innerText=`\n\t\t\thtml{ ${Object.entries(v.colors).map((e=>{let[t,r]=e;return(t+"").match(/^\-\-/)?`${t}: ${"function"===a.isType(r)?r({conf:v}):r}`:""})).join(";")} }\n\t\t\t${e.map((e=>"function"===a.isType(e)?e({conf:v}):e)).join("")}\n\t\t`,v.emitEv("update",{conf:v})},typeMap:{light:e=>e,dark:e=>a.params.merge({"--theme-color":"rgba(41,204,204,1)","--theme-color-gd":"rgba(51,119,204,1) linear-gradient(45deg, rgba(51,119,204,1),rgba(41,204,204,1))","--theme-bg-white1":"#000","--theme-bg-white2":"#111","--theme-bg-white3":"#1f1f1f","--theme-bg-white4":"#222","--theme-bg-white5":"#2f2f2f","--theme-bg-black1":"#fff","--theme-text1":"#fff","--theme-text2":"#aaa","--theme-text3":"#999","--theme-text4":"#777","--theme-text5":"#666","--theme-text6":"#555","--theme-text7":"#000","--theme-border1":"#333","--theme-border2":"#555","--theme-border3":"#777","--theme-border4":"#999","--theme-shadow1":"rgba(255,255,255,0.3)","--theme-shadow2":"rgba(255,255,255,0.3)","--theme-scroll-bg":"rgba(0,0,0,0)","--theme-scroll-btn":"rgba(255,255,255,0.6)"},e),custom:e=>v.customThemeConf},setType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.type;const{typeMap:t,baseColors:r}=v;v.type=e;const n=t[e]&&t[e](a.clone(r));n&&(v.emitEv("beforeChangeType",{params:n,conf:v}),Object.entries(n).forEach((e=>{let[t,r]=e;return v.set(t,r)})),v.emitEv("changeType",{conf:v}))}},x=a.bus,w=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.reqCode,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"code";if(!e)return!1;t.loading=!0;const o=await e.catch((e=>(console.log(e),!1)));return t.loading=!1,o&&o[n]===r&&o},_={},M={lazy:!0,name:"n_fileMap"};"undefined"!=typeof window&&(_.p=a.dataMap.init(_),M.p=a.dataMap.init(M));const T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!c.n||!c.n.Vue)return console.error("no n-vz Vue");const{Vue:{observable:r,set:n}}=c.n,o=a.store.init(e,t);return t.bindEv("set",(e=>{let{state:t,k:r,v:o}=e;return n(t,r,o)})),r(t.state),o},$=a.enu({opts:{i18nType:[{value:"zh-CN",label:"中文"},{value:"en",label:"English"}],themeType:[{value:"light",label:"明亮"},{value:"dark",label:"夜间"}],themeSize:[{value:"medium",label:"大"},{value:"small",label:"中"},{value:"mini",label:"小"}]},format:e=>{let{tg:t,k:r}=e;return t[r]?a.clone(t[r]).map((e=>new Proxy({...e,__label:e.label},{get(e,t){let r=e[t];return"label"===t&&(r=h(e.__label||r)),r}}))):[]}}),S={dataMap:{},defConf:()=>{if(!c.n||!c.n.Vue)return console.error("no n-vz Vue");const{Vue:e}=c.n;return{self:null,pconf:null,Vue:e,observable:e.observable,set:e.set,unSet:C,unOb:j,vm:null,comp:()=>"",cache:!1,...a.clone(a.event),on:{destroy:[],mount:[]},emitCompEv(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const{vm:o}=this;if(!o)return;const i=[o];for(;i.length;){const t=i.shift();t.$children&&i.unshift(...t.$children),((s=t,a.params.optional(s)).$options[e].__v||[]).forEach((e=>e.call(t,...r)))}var s},destroy(){const{vm:e}=this;e&&(e.$destroy(),e.$el&&e.$el.remove(),this.vm=null),this.emitEv("destroy",{conf:this,vm:e})},mount(){const t=this;let{vm:r,comp:n}=this;r&&this.destroy(),this.vm=r=new e({render(e){return n({h:e,vm:this,data:{conf:t}})}}),r.$mount(),this.self.appendChild(r.$el),this.emitEv("mount",{conf:t,vm:r})}}},create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{tag:t,confKey:r,tagClass:n,tagOpt:o}=a.params.merge(e,{tag:"w-comp",confKey:"conf-key",tagOpt:void 0,tagClass:class extends HTMLElement{constructor(){super(),this.initConf()}initConf(){const t=S.dataMap[this.getAttribute(r)];t&&t===this._compConf||(this._compConf=!t&&this._compConf?this._compConf:a.params.merge(t||{},S.defConf()),this._compConf.self=this,this._compConf.pconf=e)}connectedCallback(){this.initConf();const{_compConf:e}=this;e.cache&&e.vm?e.emitCompEv("activated","webComp"):e.mount()}disconnectedCallback(){const{_compConf:e}=this;e.cache||!e.vm?e.emitCompEv("deactivated","webComp"):e.destroy()}}});customElements.define(t,n,o)}},E=a.dom.loop({data:new Set,idle:!0,idleSlowdown:!0,idleGap:e=>{let{conf:{idleNum:t}}=e;return t<20?0:t<150?200:t<360?500:2e3},run:()=>{const e=Date.now(),{idleSlowdown:t,idleGap:r}=E;E.data.forEach((n=>{t&&(n.idleNum=n.idleNum||0,n.idleTime=n.idleTime||0,n.idleTime+r({conf:n,ob:E})>e)||(n.verif(n),n.idleTime=e)}))}});E.bindEv();const C=(e,t)=>{"object"===a.isType(e)&&t in e&&Object.defineProperty(e,t,{value:e[t],configurable:!0,enumerable:!0,writable:!0})},j=(e,t)=>{const{isType:r}=a,n=["object","array"];if(!n.includes(r(e)))return e;const o=new Map,i=[e];for(;i.length;){const e=i.shift();if(o.get(e))continue;o.set(e,1);const s=r(e);if(n.includes(s)&&!e._isVue){"array"===s&&(e.__proto__=[].__proto__),delete e.__ob__;for(const o in e){const a=e[o];n.includes(r(a))&&!t&&i.unshift(a),"object"===s&&C(e,o)}}}return e},k=(e,t)=>{if(!c.n||!c.n.Vue)return console.error("no n-vz Vue"),e;const{Vue:{observable:r,util:{defineReactive:n}}}=c.n,{isType:o}=a,i=["object","array"];if(!i.includes(o(e)))return e;const s=[e],l=new Map;for(;s.length;){const e=s.shift();if(l.get(e))continue;l.set(e,1);const a=o(e);if(i.includes(a)&&!e._isVue){if(!e.__ob__){if(!t){r(e);continue}const n="array"===a?[]:{};r(n),Object.defineProperty(e,"__ob__",{value:n.__ob__,writable:!0,configurable:!0,enumerable:!1}),e.__ob__.value=e,e.__ob__.observeArray=()=>{},"array"===a&&(e.__proto__=n.__proto__)}for(const r in e){const l=e[r];if(i.includes(o(l))&&!t&&s.unshift(l),"object"!==a)continue;const c=Object.getOwnPropertyDescriptor(e,r);c&&(c.get||c.set)||n(e,r,l,null,t)}}}return e},O=(e,t)=>{if(!c.n||!c.n.VueTemplateCompiler)return console.error("no n-vz VueTemplateCompiler");const{VueTemplateCompiler:r}=c.n,{render:n,staticRenderFns:o}=r.compileToFunctions(e,t);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.$options.staticRenderFns=o,Object.entries(e).forEach((e=>{let[r,n]=e;return t[r]=n})),n.call(t)}},I={data:new Set,down:null,up:null,onDown:e=>I.down=e.target,onUp(e){I.up=e.target;const{up:t,data:r,down:n}=I;r.forEach((e=>e.verif({down:n,up:t,conf:e}))),I.down=I.up=null},bindEv(){"undefined"!=typeof document&&(document.addEventListener("mousedown",I.onDown),document.addEventListener("touchstart",I.onDown),document.addEventListener("mouseup",I.onUp),document.addEventListener("touchend",I.onUp))},unEv(){"undefined"!=typeof document&&(document.removeEventListener("mousedown",I.onDown),document.removeEventListener("touchstart",I.onDown),document.removeEventListener("mouseup",I.onUp),document.removeEventListener("touchend",I.onUp))}};I.bindEv();var z={lazy:{bind(e,t,r){const n="isMerge__lazy";let o={};if("object"===a.isType(t.value)?o=t.value:o.src=t.value,!o[n]){const i={exact:a.params.optional(t).modifiers.exact.__v,src:"",mergeKey:n,id:a.uuid(),wait:300,waitTime:0,vNode:r,el:e,disabled:!1,isLoad:!1,advance:100,idleNum:0,boxEl:null,isHide:e=>{let{el:t}=e;const r=window.getComputedStyle(t);return!t.offsetParent||"none"===r.display||"hidden"===r.visibility||1*r.opacity==0},pre:e=>{e.el.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoBAAEAAgA0JaQAA3AA/vtKAAA=",e.waitTime=Date.now()+e.wait},load:e=>{let{el:t,src:r}=e;return t.src=r},verif:e=>{const{exact:t,load:r,waitTime:n,isHide:o,boxEl:i,advance:s,el:l,isLoad:c,disabled:h}=e;if(c||h||n>Date.now())return;if(o(e))return e.idleNum++;let{offsetWidth:d,offsetHeight:m,offsetLeft:u,offsetTop:p}=l,{innerWidth:f,innerHeight:g}=window;if(i){const e=t&&i.getBoundingClientRect();f=t?e.width:i.offsetWidth,g=t?e.height:i.offsetHeight}if(t){const e=l.getBoundingClientRect();d=e.width,m=e.height,u=e.x,p=e.y}if(u+d+s<0||u-s>f||p+m+s<0||p-s>g)return e.idleNum++;e.idleNum=0,e.isLoad=!0,"function"===a.isType(r)&&r(e)}};c.beforeMergeDirective({conf:o,stand:i,binding:t}),a.params.merge(o,i),o[n]=!0,c.mergeDirective({conf:o,stand:i,binding:t})}e._lazyConf=o,E.data.add(o)},inserted(e,t,r){const{_lazyConf:n}=e;n&&n.pre(n)},componentUpdated(e,t,r){const{_lazyConf:n}=e;n&&(n.vNode=r,"object"!==a.isType(t.value)&&(n.src=t.value))},unbind(e){E.data.delete(e._lazyConf),e._lazyConf=void 0}},loading:{bind(e,t,r){const n=a.params.optional(c).n,o=n.components["n-loading"].__v,i=n.Vue.__v;if(!i)return console.error("no n-vz Vue");if(!o)return console.error("no n-vz n-loading component");const s="isMerge__loading";let l={};if("object"===a.isType(t.value)?l=t.value:l.show=t.value,!l[s]){const n={id:a.uuid(),mergeKey:s,insertEl:e,vNode:r};c.beforeMergeDirective({conf:l,stand:n,binding:t}),a.params.merge(l,n),l[s]=!0,c.mergeDirective({conf:l,stand:n,binding:t})}l.pvm=new i({render:e=>e(o,{props:{conf:l}})}),l.pvm.$mount(),e._loadingConf=l},inserted(e,t,r){const{_loadingConf:n}=e;n&&["static"].includes(window.getComputedStyle(e).position)&&(e.style.position="relative")},componentUpdated(e,t,r){const{_loadingConf:n}=e;n&&(n.vNode=r,"object"!==a.isType(t.value)&&(n.show=t.value))},unbind(e){const{_loadingConf:t}=e;t&&(t.pvm&&t.pvm.$destroy(),t.pvm=t.vm=null,e._loadingConf=void 0)}},resize:{bind(e,t,r){const n="isMerge__resize";let o={};if("object"===a.isType(t.value)?o=t.value:o.fun=t.value,!o[n]){const i={exact:a.params.optional(t).modifiers.exact.__v,first:!0,mergeKey:n,fun:null,id:a.uuid(),vNode:r,el:e,disabled:!1,w:null,h:null,idleNum:0,verif:e=>{const{exact:t,fun:r,w:n,h:o,el:i,first:s,disabled:l}=e;if(l)return;let{offsetWidth:c,offsetHeight:h}=i;if(t){const e=i.getBoundingClientRect();c=e.width,h=e.height}return c===n&&h===o?e.idleNum++:(e.idleNum=0,e.w=c,e.h=h,s?void("function"===a.isType(r)&&r(i,e)):e.first=!0)}};c.beforeMergeDirective({conf:o,stand:i,binding:t}),a.params.merge(o,i),o[n]=!0,c.mergeDirective({conf:o,stand:i,binding:t})}e._resizeConf=o,E.data.add(o)},componentUpdated(e,t,r){const{_resizeConf:n}=e;n&&(n.vNode=r,"object"!==a.isType(t.value)&&(n.fun=t.value))},unbind(e){E.data.delete(e._resizeConf),e._resizeConf=void 0}},reposi:{bind(e,t,r){const n="isMerge__reposi";let o={};if("object"===a.isType(t.value)?o=t.value:o.fun=t.value,!o[n]){const i={exact:a.params.optional(t).modifiers.exact.__v,mergeKey:n,first:!0,fun:null,id:a.uuid(),vNode:r,el:e,disabled:!1,x:null,y:null,idleNum:0,verif:e=>{const{exact:t,fun:r,x:n,y:o,el:i,first:s,disabled:l}=e;if(l||"function"!==a.isType(r))return;let{offsetLeft:c,offsetTop:h}=i;if(t){const e=i.getBoundingClientRect();c=e.x,h=e.y}return c===n&&h===o?e.idleNum++:(e.idleNum=0,e.x=c,e.y=h,s?void r(i,e):e.first=!0)}};c.beforeMergeDirective({conf:o,stand:i,binding:t}),a.params.merge(o,i),o[n]=!0,c.mergeDirective({conf:o,stand:i,binding:t})}e._reposiConf=o,E.data.add(o)},componentUpdated(e,t,r){const{_reposiConf:n}=e;n&&(n.vNode=r,"object"!==a.isType(t.value)&&(n.fun=t.value))},unbind(e){E.data.delete(e._reposiConf),e._reposiConf=void 0}},ref:{bind(e,t,r){"function"===a.isType(t.value)&&t.value({el:e,binding:t,type:"bind",vm:r&&r.componentInstance,vNode:r})},inserted(e,t,r){"function"===a.isType(t.value)&&t.value({el:e,binding:t,type:"inserted",vm:r&&r.componentInstance,vNode:r})},componentUpdated(e,t,r,n){"function"===a.isType(t.value)&&t.value({el:e,binding:t,type:"update",vm:r&&r.componentInstance,vNode:r,oldVNode:n})}},focus:{inserted(e,t,r){const n=a.params.optional(t).modifiers.left.__v;e.focus&&window.setTimeout((()=>{e.focus();const t=e.value.length;e.setSelectionRange&&e.setSelectionRange(n?0:t,n?0:t)}),1*t.value||100)}},"click-outside":{bind(e,t,r){const n="isMerge__click-outside";let o={};if("object"===a.isType(t.value)?o=t.value:o.fun=t.value,!o[n]){const i={verifEls:[e],mergeKey:n,formatVerifEls:null,fun:null,id:a.uuid(),vNode:r,el:e,clickOutside:I,disabled:!1,verif:e=>{const{down:t,up:r,conf:n,disabled:o}=e;if(o)return;let{verifEls:i,formatVerifEls:s,fun:a,el:l}=n;i=s?s({...e,verifEls:i}):i,a&&t&&r&&i.every((e=>!e||!e.contains(t)&&!e.contains(r)))&&a(l,n)}};c.beforeMergeDirective({conf:o,stand:i,binding:t}),a.params.merge(o,i),o[n]=!0,c.mergeDirective({conf:o,stand:i,binding:t})}e._clickOutsideConf=o,I.data.add(o)},componentUpdated(e,t,r){const{_clickOutsideConf:n}=e;n&&(n.vNode=r,"object"!==a.isType(t.value)&&(n.fun=t.value))},unbind(e){I.data.delete(e._clickOutsideConf),e._clickOutsideConf=void 0}}};const A=z,D={enu:$,theme:v,bus:x,req:w,reOb:k,unOb:j,unSet:C,createStore:T,dataMap:_,fileMap:M,webComp:S,tc:O,ob:E,useWebComp:b,createCacheComp:y,directives:A,directivesTool:n,i18n:m,t:h,jsx:f,version:"1.2.5"};c.n=D}})}));
|