diff --git a/.obsidian/community-plugins.json b/.obsidian/community-plugins.json index ff3def5..ee188bf 100644 --- a/.obsidian/community-plugins.json +++ b/.obsidian/community-plugins.json @@ -14,7 +14,6 @@ "quickadd", "templater-obsidian", "obsidian-livesync", - "nutstore-sync", "obsidian42-brat", "obsidian-custom-attachment-location", "i18n", diff --git a/.obsidian/plugins/heatmap-tracker/data.json b/.obsidian/plugins/heatmap-tracker/data.json index 9aa345a..62b0225 100644 --- a/.obsidian/plugins/heatmap-tracker/data.json +++ b/.obsidian/plugins/heatmap-tracker/data.json @@ -32,12 +32,12 @@ "weekStartDay": 1, "showWeekNums": true, "weekDisplayMode": "all", - "separateMonths": true, + "separateMonths": false, "language": "zh", "viewTabsVisibility": { - "documentation": true, + "documentation": false, "heatmap-tracker": true, "heatmap-tracker-statistics": true, - "legend": true + "legend": false } } \ No newline at end of file diff --git a/.obsidian/plugins/homepage/data.json b/.obsidian/plugins/homepage/data.json index 15df126..3aca790 100644 --- a/.obsidian/plugins/homepage/data.json +++ b/.obsidian/plugins/homepage/data.json @@ -2,8 +2,8 @@ "version": 4, "homepages": { "Main Homepage": { - "value": "YueQian/相关网站", - "kind": "File", + "value": "🏡HOME", + "kind": "文件", "openOnStartup": true, "openMode": "Replace all open notes", "manualOpenMode": "Keep open notes", diff --git a/.obsidian/plugins/nutstore-sync/data.json b/.obsidian/plugins/nutstore-sync/data.json deleted file mode 100644 index 2aa5475..0000000 --- a/.obsidian/plugins/nutstore-sync/data.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "account": "", - "credential": "", - "remoteDir": "/obsidian/", - "remoteCacheDir": "", - "useGitStyle": true, - "conflictStrategy": "diff-match-patch", - "oauthResponseText": "FyoeXnB7CVHAC1SNgnoJb5oYy3Lgs2yJOeSAKnCvXj6q-tBHpci4uxc1srEpDlnYHcaT4ntBRRxy1_sT_4z_9F_QozF2pnvcFjlOmFf_xtf0sWEZIhCQKHhcMwj4kTXnHCdNVyCFEKZS_b8hPy2IckGyMko8vzxmeJpXIPr2VE-e4oY", - "loginMode": "sso", - "confirmBeforeSync": false, - "confirmBeforeDeleteInAutoSync": true, - "syncMode": "loose", - "filterRules": { - "exclusionRules": [ - { - "expr": "**/.git", - "options": { - "caseSensitive": false - } - }, - { - "expr": "**/.DS_Store", - "options": { - "caseSensitive": false - } - }, - { - "expr": "**/.trash", - "options": { - "caseSensitive": false - } - }, - { - "expr": ".obsidian", - "options": { - "caseSensitive": false - } - } - ], - "inclusionRules": [] - }, - "skipLargeFiles": { - "maxSize": "30 MB" - }, - "realtimeSync": false, - "startupSyncDelaySeconds": 5, - "autoSyncIntervalSeconds": 600 -} \ No newline at end of file diff --git a/.obsidian/plugins/nutstore-sync/main.js b/.obsidian/plugins/nutstore-sync/main.js deleted file mode 100644 index c3f8441..0000000 --- a/.obsidian/plugins/nutstore-sync/main.js +++ /dev/null @@ -1 +0,0 @@ -function _array_like_to_array(arr1,len){if(len==null||len>arr1.length)len=arr1.length;for(var i=0,arr2=new Array(len);i0&&t[t.length-1])&&(op1[0]===6||op1[0]===2)){_2=0;continue}if(op1[0]===3&&(!t||op1[1]>t[0]&&op1[1]=o.length)o=void 0;return{value:o&&o[i++],done:!o}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}var iie=Object.create;var ru=Object.defineProperty;var nie=Object.getOwnPropertyDescriptor;var aie=Object.getOwnPropertyNames;var oie=Object.getPrototypeOf,sie=Object.prototype.hasOwnProperty;var Aie=function(r,e,t){return e in r?ru(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t};var I=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}},cie=function(r,e){for(var t in e)ru(r,t,{get:e[t],enumerable:!0})},uS=function(r,e,t,i){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"||typeof e=="function")try{var _loop=function(){var n=_step.value;!sie.call(r,n)&&n!==t&&ru(r,n,{get:function(){return e[n]},enumerable:!(i=nie(e,n))||i.enumerable})};for(var _iterator=aie(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return r};var Le=function(r,e,t){return t=r!=null?iie(oie(r)):{},uS(e||!r||!r.__esModule?ru(t,"default",{value:r,enumerable:!0}):t,r)},uie=function(r){return uS(ru({},"__esModule",{value:!0}),r)};var Ze=function(r,e,t){return Aie(r,(typeof e==="undefined"?"undefined":_type_of(e))!="symbol"?e+"":e,t),t},sx=function(r,e,t){if(!e.has(r))throw TypeError("Cannot "+t)};var oe=function(r,e,t){return sx(r,e,"read from private field"),t?t.call(r):e.get(r)},It=function(r,e,t){if(e.has(r))throw TypeError("Cannot add the same private member more than once");_instanceof(e,WeakSet)?e.add(r):e.set(r,t)},Fr=function(r,e,t,i){return sx(r,e,"write to private field"),i?i.call(r,t):e.set(r,t),t};var da=function(r,e,t){return sx(r,e,"access private method"),t};var fS=I(function(tu){var lS=function lS(r){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t=[],i=0;i>2,c=(n&3)<<4|o>>4,l=(o&15)<<2|A>>6,f=A&63;s||(f=64,a||(l=64)),t.push(e[u],e[c],e[l],e[f])}return t.join("")};(function(r){(function(e){typeof define=="function"&&define.amd?define(["exports"],e):(typeof tu==="undefined"?"undefined":_type_of(tu))=="object"&&typeof tu.nodeName!="string"?e(tu):e(r)})(function(e){"use strict";var t=r.BlobBuilder||r.WebKitBlobBuilder||r.MSBlobBuilder||r.MozBlobBuilder,i=r.URL||r.webkitURL||function(y,q){return q=document.createElement("a"),q.href=y,q},n=r.Blob,a=i.createObjectURL,o=i.revokeObjectURL,s=r.Symbol&&r.Symbol.toStringTag,A=!1,u=!1,c=t&&t.prototype.append&&t.prototype.getBlob;try{A=new Blob(["ä"]).size===2,u=new Blob([new Uint8Array([1,2])]).size===2}catch(y){}function l(y){return y.map(function(q){if(_instanceof(q.buffer,ArrayBuffer)){var w=q.buffer;if(q.byteLength!==w.byteLength){var N=new Uint8Array(q.byteLength);N.set(new Uint8Array(w,q.byteOffset,q.byteLength)),w=N.buffer}return w}return q})}function f(y,q){q=q||{};var w=new t;return l(y).forEach(function(N){w.append(N)}),q.type?w.getBlob(q.type):w.getBlob()}function g(y,q){return new n(l(y),q||{})}r.Blob&&(f.prototype=r.Blob.prototype,g.prototype=r.Blob.prototype);function h(y){for(var q=0,w=y.length,N=r.Uint8Array||Array,F=0,M=Math.max(32,w+(w>>1)+7),U=new N(M>>3<<3);q=55296&&G<=56319){if(q=55296&&G<=56319)continue}if(F+4>U.length){M+=8,M*=1+q/y.length*2,M=M>>3<<3;var ce=new Uint8Array(M);ce.set(U),U=ce}if(G&4294967168){if(!(G&4294965248))U[F++]=G>>6&31|192;else if(!(G&4294901760))U[F++]=G>>12&15|224,U[F++]=G>>6&63|128;else if(!(G&4292870144))U[F++]=G>>18&7|240,U[F++]=G>>12&63|128,U[F++]=G>>6&63|128;else continue;}else{U[F++]=G;continue}U[F++]=G&63|128}return U.slice(0,F)}function d(y){for(var q=y.length,w=[],N=0;N239?4:F>223?3:F>191?2:1;if(N+U<=q){var G,K,ce,J;switch(U){case 1:F<128&&(M=F);break;case 2:G=y[N+1],(G&192)===128&&(J=(F&31)<<6|G&63,J>127&&(M=J));break;case 3:G=y[N+1],K=y[N+2],(G&192)===128&&(K&192)===128&&(J=(F&15)<<12|(G&63)<<6|K&63,J>2047&&(J<55296||J>57343)&&(M=J));break;case 4:G=y[N+1],K=y[N+2],ce=y[N+3],(G&192)===128&&(K&192)===128&&(ce&192)===128&&(J=(F&15)<<18|(G&63)<<12|(K&63)<<6|ce&63,J>65535&&J<1114112&&(M=J))}}M===null?(M=65533,U=1):M>65535&&(M-=65536,w.push(M>>>10&1023|55296),M=56320|M&1023),w.push(M),N+=U}for(var Ce=w.length,L="",Ae=0;Ae=w.size&&N.close()})}})}}catch(y){try{new ReadableStream({}),b=function b(w){var N=0;return new ReadableStream({pull:function pull(F){var M=w.slice(N,N+524288);return M.arrayBuffer().then(function(U){N+=U.byteLength;var G=new Uint8Array(U);F.enqueue(G),N==w.size&&F.close()})}})}}catch(q){try{new Response("").body.getReader().read(),b=function b(){return new Response(this).body}}catch(w){b=function b(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}function C(y){return new Promise(function(q,w){y.onload=y.onerror=function(N){y.onload=y.onerror=null,N.type==="load"?q(y.result||y):w(new Error("Failed to read the blob/file"))}})}B.arrayBuffer||(B.arrayBuffer=function(){var q=new e.FileReader;return q.readAsArrayBuffer(this),C(q)}),B.text||(B.text=function(){var q=new e.FileReader;return q.readAsText(this),C(q)}),B.stream||(B.stream=b)})})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||tu)});var te=I(function(Ax,gS){"use strict";var iu=function iu(r){return r&&r.Math===Math&&r};gS.exports=iu((typeof globalThis==="undefined"?"undefined":_type_of(globalThis))=="object"&&globalThis)||iu((typeof window==="undefined"?"undefined":_type_of(window))=="object"&&window)||iu((typeof self==="undefined"?"undefined":_type_of(self))=="object"&&self)||iu((typeof global==="undefined"?"undefined":_type_of(global))=="object"&&global)||iu((typeof Ax==="undefined"?"undefined":_type_of(Ax))=="object"&&Ax)||function(){return this}()||Function("return this")()});var W=I(function(Ttr,dS){"use strict";dS.exports=function(r){try{return!!r()}catch(e){return!0}}});var xe=I(function(Ptr,hS){"use strict";var lie=W();hS.exports=!lie(function(){return Object.defineProperty({},1,{get:function get(){return 7}})[1]!==7})});var Ds=I(function(Mtr,IS){"use strict";var fie=W();IS.exports=!fie(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var ge=I(function(Utr,pS){"use strict";var gie=Ds(),vg=Function.prototype.call;pS.exports=gie?vg.bind(vg):function(){return vg.apply(vg,arguments)}});var nu=I(function(vS){"use strict";var xS={}.propertyIsEnumerable,mS=Object.getOwnPropertyDescriptor,die=mS&&!xS.call({1:2},1);vS.f=die?function(e){var t=mS(this,e);return!!t&&t.enumerable}:xS});var Tt=I(function(Ltr,CS){"use strict";CS.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var Y=I(function(Htr,yS){"use strict";var BS=Ds(),ES=Function.prototype,cx=ES.call,hie=BS&&ES.bind.bind(cx,cx);yS.exports=BS?hie:function(r){return function(){return cx.apply(r,arguments)}}});var st=I(function(Wtr,bS){"use strict";var QS=Y(),Iie=QS({}.toString),pie=QS("".slice);bS.exports=function(r){return pie(Iie(r),8,-1)}});var bo=I(function(Jtr,wS){"use strict";var xie=Y(),mie=W(),vie=st(),ux=Object,Cie=xie("".split);wS.exports=mie(function(){return!ux("z").propertyIsEnumerable(0)})?function(r){return vie(r)==="String"?Cie(r,""):ux(r)}:ux});var Zi=I(function(Ktr,SS){"use strict";SS.exports=function(r){return r==null}});var hr=I(function(Vtr,_S){"use strict";var Bie=Zi(),Eie=TypeError;_S.exports=function(r){if(Bie(r))throw new Eie("Can't call method on "+r);return r}});var Wr=I(function(Ytr,qS){"use strict";var yie=bo(),Qie=hr();qS.exports=function(r){return yie(Qie(r))}});var ke=I(function(ztr,DS){"use strict";var lx=(typeof document==="undefined"?"undefined":_type_of(document))=="object"&&document.all;DS.exports=typeof lx=="undefined"&&lx!==void 0?function(r){return typeof r=="function"||r===lx}:function(r){return typeof r=="function"}});var me=I(function(jtr,FS){"use strict";var bie=ke();FS.exports=function(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="object"?r!==null:bie(r)}});var we=I(function(Xtr,kS){"use strict";var fx=te(),wie=ke(),Sie=function Sie(r){return wie(r)?r:void 0};kS.exports=function(r,e){return arguments.length<2?Sie(fx[r]):fx[r]&&fx[r][e]}});var pt=I(function(Ztr,RS){"use strict";var _ie=Y();RS.exports=_ie({}.isPrototypeOf)});var Fi=I(function($tr,TS){"use strict";var qie=te(),NS=qie.navigator,OS=NS&&NS.userAgent;TS.exports=OS?String(OS):""});var Ri=I(function(eir,HS){"use strict";var LS=te(),gx=Fi(),PS=LS.process,MS=LS.Deno,US=PS&&PS.versions||MS&&MS.version,GS=US&&US.v8,ki,Cg;GS&&(ki=GS.split("."),Cg=ki[0]>0&&ki[0]<4?1:+(ki[0]+ki[1]));!Cg&&gx&&(ki=gx.match(/Edge\/(\d+)/),(!ki||ki[1]>=74)&&(ki=gx.match(/Chrome\/(\d+)/),ki&&(Cg=+ki[1])));HS.exports=Cg});var ha=I(function(rir,JS){"use strict";var WS=Ri(),Die=W(),Fie=te(),kie=Fie.String;JS.exports=!!Object.getOwnPropertySymbols&&!Die(function(){var r=Symbol("symbol detection");return!kie(r)||!_instanceof(Object(r),Symbol)||!Symbol.sham&&WS&&WS<41})});var dx=I(function(tir,KS){"use strict";var Rie=ha();KS.exports=Rie&&!Symbol.sham&&_type_of(Symbol.iterator)=="symbol"});var Ia=I(function(iir,VS){"use strict";var Nie=we(),Oie=ke(),Tie=pt(),Pie=dx(),Mie=Object;VS.exports=Pie?function(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="symbol"}:function(r){var e=Nie("Symbol");return Oie(e)&&Tie(e.prototype,Mie(r))}});var pa=I(function(nir,YS){"use strict";var Uie=String;YS.exports=function(r){try{return Uie(r)}catch(e){return"Object"}}});var _e=I(function(air,zS){"use strict";var Gie=ke(),Lie=pa(),Hie=TypeError;zS.exports=function(r){if(Gie(r))return r;throw new Hie(Lie(r)+" is not a function")}});var zr=I(function(oir,jS){"use strict";var Wie=_e(),Jie=Zi();jS.exports=function(r,e){var t=r[e];return Jie(t)?void 0:Wie(t)}});var xx=I(function(sir,XS){"use strict";var hx=ge(),Ix=ke(),px=me(),Kie=TypeError;XS.exports=function(r,e){var t,i;if(e==="string"&&Ix(t=r.toString)&&!px(i=hx(t,r))||Ix(t=r.valueOf)&&!px(i=hx(t,r))||e!=="string"&&Ix(t=r.toString)&&!px(i=hx(t,r)))return i;throw new Kie("Can't convert object to primitive value")}});var Je=I(function(Air,ZS){"use strict";ZS.exports=!1});var Bg=I(function(cir,e_){"use strict";var $S=te(),Vie=Object.defineProperty;e_.exports=function(r,e){try{Vie($S,r,{value:e,configurable:!0,writable:!0})}catch(t){$S[r]=e}return e}});var au=I(function(uir,i_){"use strict";var Yie=Je(),zie=te(),jie=Bg(),r_="__core-js_shared__",t_=i_.exports=zie[r_]||jie(r_,{});(t_.versions||(t_.versions=[])).push({version:"3.47.0",mode:Yie?"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"})});var wo=I(function(lir,a_){"use strict";var n_=au();a_.exports=function(r,e){return n_[r]||(n_[r]=e||{})}});var He=I(function(fir,o_){"use strict";var Xie=hr(),Zie=Object;o_.exports=function(r){return Zie(Xie(r))}});var Se=I(function(gir,s_){"use strict";var $ie=Y(),ene=He(),rne=$ie({}.hasOwnProperty);s_.exports=Object.hasOwn||function(e,t){return rne(ene(e),t)}});var xa=I(function(dir,A_){"use strict";var tne=Y(),ine=0,nne=Math.random(),ane=tne(1.1.toString);A_.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+ane(++ine+nne,36)}});var ve=I(function(hir,u_){"use strict";var one=te(),sne=wo(),c_=Se(),Ane=xa(),cne=ha(),une=dx(),Fs=one.Symbol,mx=sne("wks"),lne=une?Fs.for||Fs:Fs&&Fs.withoutSetter||Ane;u_.exports=function(r){return c_(mx,r)||(mx[r]=cne&&c_(Fs,r)?Fs[r]:lne("Symbol."+r)),mx[r]}});var ou=I(function(Iir,g_){"use strict";var fne=ge(),l_=me(),f_=Ia(),gne=zr(),dne=xx(),hne=ve(),Ine=TypeError,pne=hne("toPrimitive");g_.exports=function(r,e){if(!l_(r)||f_(r))return r;var t=gne(r,pne),i;if(t){if(e===void 0&&(e="default"),i=fne(t,r,e),!l_(i)||f_(i))return i;throw new Ine("Can't convert object to primitive value")}return e===void 0&&(e="number"),dne(r,e)}});var wn=I(function(pir,d_){"use strict";var xne=ou(),mne=Ia();d_.exports=function(r){var e=xne(r,"string");return mne(e)?e:e+""}});var su=I(function(xir,I_){"use strict";var vne=te(),h_=me(),vx=vne.document,Cne=h_(vx)&&h_(vx.createElement);I_.exports=function(r){return Cne?vx.createElement(r):{}}});var Cx=I(function(mir,p_){"use strict";var Bne=xe(),Ene=W(),yne=su();p_.exports=!Bne&&!Ene(function(){return Object.defineProperty(yne("div"),"a",{get:function get(){return 7}}).a!==7})});var jr=I(function(m_){"use strict";var Qne=xe(),bne=ge(),wne=nu(),Sne=Tt(),_ne=Wr(),qne=wn(),Dne=Se(),Fne=Cx(),x_=Object.getOwnPropertyDescriptor;m_.f=Qne?x_:function(e,t){if(e=_ne(e),t=qne(t),Fne)try{return x_(e,t)}catch(i){}if(Dne(e,t))return Sne(!bne(wne.f,e,t),e[t])}});var Bx=I(function(Cir,v_){"use strict";var kne=xe(),Rne=W();v_.exports=kne&&Rne(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var he=I(function(Bir,C_){"use strict";var Nne=me(),One=String,Tne=TypeError;C_.exports=function(r){if(Nne(r))return r;throw new Tne(One(r)+" is not an object")}});var ur=I(function(E_){"use strict";var Pne=xe(),Mne=Cx(),Une=Bx(),Eg=he(),B_=wn(),Gne=TypeError,Ex=Object.defineProperty,Lne=Object.getOwnPropertyDescriptor,yx="enumerable",Qx="configurable",bx="writable";E_.f=Pne?Une?function(e,t,i){if(Eg(e),t=B_(t),Eg(i),typeof e=="function"&&t==="prototype"&&"value"in i&&bx in i&&!i[bx]){var n=Lne(e,t);n&&n[bx]&&(e[t]=i.value,i={configurable:Qx in i?i[Qx]:n[Qx],enumerable:yx in i?i[yx]:n[yx],writable:!1})}return Ex(e,t,i)}:Ex:function(e,t,i){if(Eg(e),t=B_(t),Eg(i),Mne)try{return Ex(e,t,i)}catch(n){}if("get"in i||"set"in i)throw new Gne("Accessors not supported");return"value"in i&&(e[t]=i.value),e}});var Xr=I(function(yir,y_){"use strict";var Hne=xe(),Wne=ur(),Jne=Tt();y_.exports=Hne?function(r,e,t){return Wne.f(r,e,Jne(1,t))}:function(r,e,t){return r[e]=t,r}});var So=I(function(Qir,b_){"use strict";var wx=xe(),Kne=Se(),Q_=Function.prototype,Vne=wx&&Object.getOwnPropertyDescriptor,Sx=Kne(Q_,"name"),Yne=Sx&&function(){}.name==="something",zne=Sx&&(!wx||wx&&Vne(Q_,"name").configurable);b_.exports={EXISTS:Sx,PROPER:Yne,CONFIGURABLE:zne}});var yg=I(function(bir,w_){"use strict";var jne=Y(),Xne=ke(),_x=au(),Zne=jne(Function.toString);Xne(_x.inspectSource)||(_x.inspectSource=function(r){return Zne(r)});w_.exports=_x.inspectSource});var qx=I(function(wir,__){"use strict";var $ne=te(),eae=ke(),S_=$ne.WeakMap;__.exports=eae(S_)&&/native code/.test(String(S_))});var Au=I(function(Sir,D_){"use strict";var rae=wo(),tae=xa(),q_=rae("keys");D_.exports=function(r){return q_[r]||(q_[r]=tae(r))}});var ks=I(function(_ir,F_){"use strict";F_.exports={}});var lr=I(function(qir,N_){"use strict";var iae=qx(),R_=te(),nae=me(),aae=Xr(),Dx=Se(),Fx=au(),oae=Au(),sae=ks(),k_="Object already initialized",kx=R_.TypeError,Aae=R_.WeakMap,Qg,cu,bg,cae=function cae(r){return bg(r)?cu(r):Qg(r,{})},uae=function uae(r){return function(e){var t;if(!nae(e)||(t=cu(e)).type!==r)throw new kx("Incompatible receiver, "+r+" required");return t}};iae||Fx.state?(Ni=Fx.state||(Fx.state=new Aae),Ni.get=Ni.get,Ni.has=Ni.has,Ni.set=Ni.set,Qg=function Qg(r,e){if(Ni.has(r))throw new kx(k_);return e.facade=r,Ni.set(r,e),e},cu=function cu(r){return Ni.get(r)||{}},bg=function bg(r){return Ni.has(r)}):(_o=oae("state"),sae[_o]=!0,Qg=function Qg(r,e){if(Dx(r,_o))throw new kx(k_);return e.facade=r,aae(r,_o,e),e},cu=function cu(r){return Dx(r,_o)?r[_o]:{}},bg=function bg(r){return Dx(r,_o)});var Ni,_o;N_.exports={set:Qg,get:cu,has:bg,enforce:cae,getterFor:uae}});var _g=I(function(Dir,P_){"use strict";var Nx=Y(),lae=W(),fae=ke(),wg=Se(),Rx=xe(),gae=So().CONFIGURABLE,dae=yg(),T_=lr(),hae=T_.enforce,Iae=T_.get,O_=String,Sg=Object.defineProperty,pae=Nx("".slice),xae=Nx("".replace),mae=Nx([].join),vae=Rx&&!lae(function(){return Sg(function(){},"length",{value:8}).length!==8}),Cae=String(String).split("String"),Bae=P_.exports=function Bae(r,e,t){pae(O_(e),0,7)==="Symbol("&&(e="["+xae(O_(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!wg(r,"name")||gae&&r.name!==e)&&(Rx?Sg(r,"name",{value:e,configurable:!0}):r.name=e),vae&&t&&wg(t,"arity")&&r.length!==t.arity&&Sg(r,"length",{value:t.arity});try{t&&wg(t,"constructor")&&t.constructor?Rx&&Sg(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(n){}var i=hae(r);return wg(i,"source")||(i.source=mae(Cae,typeof e=="string"?e:"")),r};Function.prototype.toString=Bae(function(){return fae(this)&&Iae(this).source||dae(this)},"toString")});var $e=I(function(Fir,M_){"use strict";var Eae=ke(),yae=ur(),Qae=_g(),bae=Bg();M_.exports=function(r,e,t,i){i||(i={});var n=i.enumerable,a=i.name!==void 0?i.name:e;if(Eae(t)&&Qae(t,a,i),i.global)n?r[e]=t:bae(e,t);else{try{i.unsafe?r[e]&&(n=!0):delete r[e]}catch(o){}n?r[e]=t:yae.f(r,e,{value:t,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return r}});var Ox=I(function(kir,U_){"use strict";var wae=Math.ceil,Sae=Math.floor;U_.exports=Math.trunc||function(e){var t=+e;return(t>0?Sae:wae)(t)}});var Br=I(function(Rir,G_){"use strict";var _ae=Ox();G_.exports=function(r){var e=+r;return e!==e||e===0?0:_ae(e)}});var $i=I(function(Nir,L_){"use strict";var qae=Br(),Dae=Math.max,Fae=Math.min;L_.exports=function(r,e){var t=qae(r);return t<0?Dae(t+e,0):Fae(t,e)}});var Pt=I(function(Oir,H_){"use strict";var kae=Br(),Rae=Math.min;H_.exports=function(r){var e=kae(r);return e>0?Rae(e,9007199254740991):0}});var er=I(function(Tir,W_){"use strict";var Nae=Pt();W_.exports=function(r){return Nae(r.length)}});var Rs=I(function(Pir,K_){"use strict";var Oae=Wr(),Tae=$i(),Pae=er(),J_=function J_(r){return function(e,t,i){var n=Oae(e),a=Pae(n);if(a===0)return!r&&-1;var o=Tae(i,a),s;if(r&&t!==t){for(;a>o;)if(s=n[o++],s!==s)return!0}else for(;a>o;o++)if((r||o in n)&&n[o]===t)return r||o||0;return!r&&-1}};K_.exports={includes:J_(!0),indexOf:J_(!1)}});var Px=I(function(Mir,Y_){"use strict";var Mae=Y(),Tx=Se(),Uae=Wr(),Gae=Rs().indexOf,Lae=ks(),V_=Mae([].push);Y_.exports=function(r,e){var t=Uae(r),i=0,n=[],a;for(a in t)!Tx(Lae,a)&&Tx(t,a)&&V_(n,a);for(;e.length>i;)Tx(t,a=e[i++])&&(~Gae(n,a)||V_(n,a));return n}});var qg=I(function(Uir,z_){"use strict";z_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var ma=I(function(j_){"use strict";var Hae=Px(),Wae=qg(),Jae=Wae.concat("length","prototype");j_.f=Object.getOwnPropertyNames||function(e){return Hae(e,Jae)}});var uu=I(function(X_){"use strict";X_.f=Object.getOwnPropertySymbols});var Dg=I(function(Hir,Z_){"use strict";var Kae=we(),Vae=Y(),Yae=ma(),zae=uu(),jae=he(),Xae=Vae([].concat);Z_.exports=Kae("Reflect","ownKeys")||function(e){var t=Yae.f(jae(e)),i=zae.f;return i?Xae(t,i(e)):t}});var qo=I(function(Wir,e3){"use strict";var $_=Se(),Zae=Dg(),$ae=jr(),eoe=ur();e3.exports=function(r,e,t){for(var i=Zae(e),n=eoe.f,a=$ae.f,o=0;oo;)_oe.f(e,s=n[o++],i[s]);return e}});var Mx=I(function(Zir,c3){"use strict";var koe=we();c3.exports=koe("document","documentElement")});var Zr=I(function($ir,I3){"use strict";var Roe=he(),Noe=Ng(),u3=qg(),Ooe=ks(),Toe=Mx(),Poe=su(),Moe=Au(),l3=">",f3="<",Gx="prototype",Lx="script",d3=Moe("IE_PROTO"),Ux=function Ux(){},h3=function h3(r){return f3+Lx+l3+r+f3+"/"+Lx+l3},g3=function g3(r){r.write(h3("")),r.close();var e=r.parentWindow.Object;return r=null,e},Uoe=function Uoe(){var r=Poe("iframe"),e="java"+Lx+":",t;return r.style.display="none",Toe.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(h3("document.F=Object")),t.close(),t.F},Og,Tg=function Tg1(){try{Og=new ActiveXObject("htmlfile")}catch(e){}Tg=typeof document!="undefined"?document.domain&&Og?g3(Og):Uoe():g3(Og);for(var r=u3.length;r--;)delete Tg[Gx][u3[r]];return Tg()};Ooe[d3]=!0;I3.exports=Object.create||function(e,t){var i;return e!==null?(Ux[Gx]=Roe(e),i=new Ux,Ux[Gx]=null,i[d3]=e):i=Tg(),t===void 0?i:Noe.f(i,t)}});var ei=I(function(enr,p3){"use strict";var Goe=Y();p3.exports=Goe([].slice)});var Pg=I(function(rnr,v3){"use strict";var Loe=st(),Hoe=Wr(),x3=ma().f,Woe=ei(),m3=(typeof window==="undefined"?"undefined":_type_of(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Joe=function Joe(r){try{return x3(r)}catch(e){return Woe(m3)}};v3.exports.f=function(e){return m3&&Loe(e)==="Window"?Joe(e):x3(Hoe(e))}});var _r=I(function(tnr,B3){"use strict";var C3=_g(),Koe=ur();B3.exports=function(r,e,t){return t.get&&C3(t.get,e,{getter:!0}),t.set&&C3(t.set,e,{setter:!0}),Koe.f(r,e,t)}});var Hx=I(function(E3){"use strict";var Voe=ve();E3.f=Voe});var fu=I(function(nnr,y3){"use strict";var Yoe=te();y3.exports=Yoe});var At=I(function(anr,b3){"use strict";var Q3=fu(),zoe=Se(),joe=Hx(),Xoe=ur().f;b3.exports=function(r){var e=Q3.Symbol||(Q3.Symbol={});zoe(e,r)||Xoe(e,r,{value:joe.f(r)})}});var Wx=I(function(onr,w3){"use strict";var Zoe=ge(),$oe=we(),ese=ve(),rse=$e();w3.exports=function(){var r=$oe("Symbol"),e=r&&r.prototype,t=e&&e.valueOf,i=ese("toPrimitive");e&&!e[i]&&rse(e,i,function(n){return Zoe(t,this)},{arity:1})}});var Qt=I(function(snr,_3){"use strict";var tse=ur().f,ise=Se(),nse=ve(),S3=nse("toStringTag");_3.exports=function(r,e,t){r&&!t&&(r=r.prototype),r&&!ise(r,S3)&&tse(r,S3,{configurable:!0,value:e})}});var va=I(function(Anr,q3){"use strict";var ase=st(),ose=Y();q3.exports=function(r){if(ase(r)==="Function")return ose(r)}});var Ut=I(function(cnr,F3){"use strict";var D3=va(),sse=_e(),Ase=Ds(),cse=D3(D3.bind);F3.exports=function(r,e){return sse(r),e===void 0?r:Ase?cse(r,e):function(){return r.apply(e,arguments)}}});var en=I(function(unr,k3){"use strict";var use=st();k3.exports=Array.isArray||function(e){return use(e)==="Array"}});var Ca=I(function(lnr,P3){"use strict";var lse=Y(),fse=W(),R3=ke(),gse=Mt(),dse=we(),hse=yg(),N3=function N3(){},O3=dse("Reflect","construct"),Jx=/^\s*(?:class|function)\b/,Ise=lse(Jx.exec),pse=!Jx.test(N3),gu=function gu(e){if(!R3(e))return!1;try{return O3(N3,[],e),!0}catch(t){return!1}},T3=function T3(e){if(!R3(e))return!1;switch(gse(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pse||!!Ise(Jx,hse(e))}catch(t){return!0}};T3.sham=!0;P3.exports=!O3||fse(function(){var r;return gu(gu.call)||!gu(Object)||!gu(function(){r=!0})||r})?T3:gu});var L3=I(function(fnr,G3){"use strict";var M3=en(),xse=Ca(),mse=me(),vse=ve(),Cse=vse("species"),U3=Array;G3.exports=function(r){var e;return M3(r)&&(e=r.constructor,xse(e)&&(e===U3||M3(e.prototype))?e=void 0:mse(e)&&(e=e[Cse],e===null&&(e=void 0))),e===void 0?U3:e}});var Ts=I(function(gnr,H3){"use strict";var Bse=L3();H3.exports=function(r,e){return new(Bse(r))(e===0?0:e)}});var $r=I(function(dnr,J3){"use strict";var Ese=Ut(),yse=Y(),Qse=bo(),bse=He(),wse=er(),Sse=Ts(),W3=yse([].push),Ba=function Ba(r){var e=r===1,t=r===2,i=r===3,n=r===4,a=r===6,o=r===7,s=r===5||a;return function(A,u,c,l){for(var f=bse(A),g=Qse(f),h=wse(g),d=Ese(u,c),p=0,m=l||Sse,x=e?m(A,h):t||o?m(A,0):void 0,v,E;h>p;p++)if((s||p in g)&&(v=g[p],E=d(v,p,f),r))if(e)x[p]=E;else if(E)switch(r){case 3:return!0;case 5:return v;case 6:return p;case 2:W3(x,v)}else switch(r){case 4:return!1;case 7:W3(x,v)}return a?-1:i||n?n:x}};J3.exports={forEach:Ba(0),map:Ba(1),filter:Ba(2),some:Ba(3),every:Ba(4),find:Ba(5),findIndex:Ba(6),filterReject:Ba(7)}});var Aq=I(function(){"use strict";var Mg=k(),Iu=te(),em=ge(),_se=Y(),qse=Je(),Ps=xe(),Ms=ha(),Dse=W(),et=Se(),Fse=pt(),zx=he(),Ug=Wr(),rm=wn(),kse=Ee(),jx=Tt(),Us=Zr(),Y3=Os(),Rse=ma(),z3=Pg(),Nse=uu(),j3=jr(),X3=ur(),Ose=Ng(),Z3=nu(),Kx=$e(),Tse=_r(),tm=wo(),Pse=Au(),$3=ks(),K3=xa(),Mse=ve(),Use=Hx(),Gse=At(),Lse=Wx(),Hse=Qt(),eq=lr(),Gg=$r().forEach,Gt=Pse("hidden"),Lg="Symbol",hu="prototype",Wse=eq.set,V3=eq.getterFor(Lg),gi=Object[hu],Do=Iu.Symbol,du=Do&&Do[hu],Jse=Iu.RangeError,Kse=Iu.TypeError,Vx=Iu.QObject,rq=j3.f,Fo=X3.f,tq=z3.f,Vse=Z3.f,iq=_se([].push),Sn=tm("symbols"),pu=tm("op-symbols"),Yse=tm("wks"),Xx=!Vx||!Vx[hu]||!Vx[hu].findChild,nq=function nq(r,e,t){var i=rq(gi,e);i&&delete gi[e],Fo(r,e,t),i&&r!==gi&&Fo(gi,e,i)},Zx=Ps&&Dse(function(){return Us(Fo({},"a",{get:function get(){return Fo(this,"a",{value:7}).a}})).a!==7})?nq:Fo,Yx=function Yx(r,e){var t=Sn[r]=Us(du);return Wse(t,{type:Lg,tag:r,description:e}),Ps||(t.description=e),t},Hg=function Hg1(e,t,i){e===gi&&Hg(pu,t,i),zx(e);var n=rm(t);return zx(i),et(Sn,n)?(i.enumerable?(et(e,Gt)&&e[Gt][n]&&(e[Gt][n]=!1),i=Us(i,{enumerable:jx(0,!1)})):(et(e,Gt)||Fo(e,Gt,jx(1,Us(null))),e[Gt][n]=!0),Zx(e,n,i)):Fo(e,n,i)},im=function im(e,t){zx(e);var i=Ug(t),n=Y3(i).concat(sq(i));return Gg(n,function(a){(!Ps||em($x,i,a))&&Hg(e,a,i[a])}),e},zse=function zse(e,t){return t===void 0?Us(e):im(Us(e),t)},$x=function $x(e){var t=rm(e),i=em(Vse,this,t);return this===gi&&et(Sn,t)&&!et(pu,t)?!1:i||!et(this,t)||!et(Sn,t)||et(this,Gt)&&this[Gt][t]?i:!0},aq=function aq(e,t){var i=Ug(e),n=rm(t);if(!(i===gi&&et(Sn,n)&&!et(pu,n))){var a=rq(i,n);return a&&et(Sn,n)&&!(et(i,Gt)&&i[Gt][n])&&(a.enumerable=!0),a}},oq=function oq(e){var t=tq(Ug(e)),i=[];return Gg(t,function(n){!et(Sn,n)&&!et($3,n)&&iq(i,n)}),i},sq=function sq(r){var e=r===gi,t=tq(e?pu:Ug(r)),i=[];return Gg(t,function(n){et(Sn,n)&&(!e||et(gi,n))&&iq(i,Sn[n])}),i};Ms||(Do=function Do(){if(Fse(du,this))throw new Kse("Symbol is not a constructor");var e=!arguments.length||arguments[0]===void 0?void 0:kse(arguments[0]),t=K3(e),i=function i1(n){var a=this===void 0?Iu:this;a===gi&&em(i,pu,n),et(a,Gt)&&et(a[Gt],t)&&(a[Gt][t]=!1);var o=jx(1,n);try{Zx(a,t,o)}catch(s){if(!_instanceof(s,Jse))throw s;nq(a,t,o)}};return Ps&&Xx&&Zx(gi,t,{configurable:!0,set:i}),Yx(t,e)},du=Do[hu],Kx(du,"toString",function(){return V3(this).tag}),Kx(Do,"withoutSetter",function(r){return Yx(K3(r),r)}),Z3.f=$x,X3.f=Hg,Ose.f=im,j3.f=aq,Rse.f=z3.f=oq,Nse.f=sq,Use.f=function(r){return Yx(Mse(r),r)},Ps&&(Tse(du,"description",{configurable:!0,get:function get(){return V3(this).description}}),qse||Kx(gi,"propertyIsEnumerable",$x,{unsafe:!0})));Mg({global:!0,constructor:!0,wrap:!0,forced:!Ms,sham:!Ms},{Symbol:Do});Gg(Y3(Yse),function(r){Gse(r)});Mg({target:Lg,stat:!0,forced:!Ms},{useSetter:function useSetter(){Xx=!0},useSimple:function useSimple(){Xx=!1}});Mg({target:"Object",stat:!0,forced:!Ms,sham:!Ps},{create:zse,defineProperty:Hg,defineProperties:im,getOwnPropertyDescriptor:aq});Mg({target:"Object",stat:!0,forced:!Ms},{getOwnPropertyNames:oq});Lse();Hse(Do,Lg);$3[Gt]=!0});var nm=I(function(pnr,cq){"use strict";var jse=ha();cq.exports=jse&&!!Symbol.for&&!!Symbol.keyFor});var lq=I(function(){"use strict";var Xse=k(),Zse=we(),$se=Se(),eAe=Ee(),uq=wo(),rAe=nm(),am=uq("string-to-symbol-registry"),tAe=uq("symbol-to-string-registry");Xse({target:"Symbol",stat:!0,forced:!rAe},{for:function _for(r){var e=eAe(r);if($se(am,e))return am[e];var t=Zse("Symbol")(e);return am[e]=t,tAe[t]=e,t}})});var gq=I(function(){"use strict";var iAe=k(),nAe=Se(),aAe=Ia(),oAe=pa(),sAe=wo(),AAe=nm(),fq=sAe("symbol-to-string-registry");iAe({target:"Symbol",stat:!0,forced:!AAe},{keyFor:function keyFor(e){if(!aAe(e))throw new TypeError(oAe(e)+" is not a symbol");if(nAe(fq,e))return fq[e]}})});var Lt=I(function(Bnr,pq){"use strict";var cAe=Ds(),Iq=Function.prototype,dq=Iq.apply,hq=Iq.call;pq.exports=(typeof Reflect==="undefined"?"undefined":_type_of(Reflect))=="object"&&Reflect.apply||(cAe?hq.bind(dq):function(){return hq.apply(dq,arguments)})});var om=I(function(Enr,xq){"use strict";var uAe=me(),lAe=lr().get;xq.exports=function(e){if(!uAe(e))return!1;var t=lAe(e);return!!t&&t.type==="RawJSON"}});var Am=I(function(ynr,Bq){"use strict";var sm=Y(),fAe=Se(),Wg=SyntaxError,gAe=parseInt,dAe=String.fromCharCode,hAe=sm("".charAt),mq=sm("".slice),vq=sm(/./.exec),Cq={"\\\"":"\"","\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},IAe=/^[\da-f]{4}$/i,pAe=/^[\u0000-\u001F]$/;Bq.exports=function(r,e){for(var t=!0,i="";ea&&Kce(d,arguments[a]),d});if(l.prototype=u,s!=="Error"?QD?QD(l,c):bD(l,c,{name:!0}):Yce&&n in A&&(wD(l,A,n),wD(l,A,"prepareStackTrace")),bD(l,A),!SD)try{u.name!==s&&yD(u,"name",s),u.constructor=l}catch(f){}return l}}});var kD=I(function(){"use strict";var DD=k(),zce=te(),rn=Lt(),FD=Em(),ym="WebAssembly",qD=zce[ym],Xg=new Error("e",{cause:7}).cause!==7,Oo=function Oo(r,e){var t={};t[r]=FD(r,e,Xg),DD({global:!0,constructor:!0,arity:1,forced:Xg},t)},Qm=function Qm(r,e){if(qD&&qD[r]){var t={};t[r]=FD(ym+"."+r,e,Xg),DD({target:ym,stat:!0,constructor:!0,arity:1,forced:Xg},t)}};Oo("Error",function(r){return function(t){return rn(r,this,arguments)}});Oo("EvalError",function(r){return function(t){return rn(r,this,arguments)}});Oo("RangeError",function(r){return function(t){return rn(r,this,arguments)}});Oo("ReferenceError",function(r){return function(t){return rn(r,this,arguments)}});Oo("SyntaxError",function(r){return function(t){return rn(r,this,arguments)}});Oo("TypeError",function(r){return function(t){return rn(r,this,arguments)}});Oo("URIError",function(r){return function(t){return rn(r,this,arguments)}});Qm("CompileError",function(r){return function(t){return rn(r,this,arguments)}});Qm("LinkError",function(r){return function(t){return rn(r,this,arguments)}});Qm("RuntimeError",function(r){return function(t){return rn(r,this,arguments)}})});var TD=I(function(){"use strict";var jce=k(),ND=we(),Xce=me(),Zce=Mt(),$ce=W(),OD="Error",wm="DOMException",eue=Object.setPrototypeOf||{}.__proto__,RD=ND(wm),bm=Error,Zg=bm.isError,rue=!Zg||!eue||$ce(function(){return RD&&!Zg(new RD(wm))||!Zg(new bm(OD,{cause:function cause(){}}))||Zg(ND("Object","create")(bm.prototype))});jce({target:"Error",stat:!0,sham:!0,forced:rue},{isError:function isError(e){if(!Xce(e))return!1;var t=Zce(e);return t===OD||t===wm}})});var Sm=I(function(war,MD){"use strict";var tue=xe(),iue=W(),nue=he(),PD=No(),$g=Error.prototype.toString,aue=iue(function(){if(tue){var r=Object.create(Object.defineProperty({},"name",{get:function get(){return this===r}}));if($g.call(r)!=="true")return!0}return $g.call({message:1,name:2})!=="2: 1"||$g.call({})!=="Error"});MD.exports=aue?function(){var e=nue(this),t=PD(e.name,"Error"),i=PD(e.message);return t?i?t+": "+i:t:i}:$g});var LD=I(function(){"use strict";var oue=$e(),UD=Sm(),GD=Error.prototype;GD.toString!==UD&&oue(GD,"toString",UD)});var ed=I(function(qar,HD){"use strict";var sue=W();HD.exports=!sue(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})});var xt=I(function(Dar,JD){"use strict";var Aue=Se(),cue=ke(),uue=He(),lue=Au(),fue=ed(),WD=lue("IE_PROTO"),_m=Object,gue=_m.prototype;JD.exports=fue?_m.getPrototypeOf:function(r){var e=uue(r);if(Aue(e,WD))return e[WD];var t=e.constructor;return cue(t)&&_instanceof(e,t)?t.prototype:_instanceof(e,_m)?gue:null}});var Gs=I(function(Far,KD){"use strict";KD.exports={}});var rd=I(function(kar,VD){"use strict";var due=ve(),hue=Gs(),Iue=due("iterator"),pue=Array.prototype;VD.exports=function(r){return r!==void 0&&(hue.Array===r||pue[Iue]===r)}});var qn=I(function(Rar,zD){"use strict";var xue=Mt(),YD=zr(),mue=Zi(),vue=Gs(),Cue=ve(),Bue=Cue("iterator");zD.exports=function(r){if(!mue(r))return YD(r,Bue)||YD(r,"@@iterator")||vue[xue(r)]}});var To=I(function(Nar,jD){"use strict";var Eue=ge(),yue=_e(),Que=he(),bue=pa(),wue=qn(),Sue=TypeError;jD.exports=function(r,e){var t=arguments.length<2?wue(r):e;if(yue(t))return Que(Eue(t,r));throw new Sue(bue(r)+" is not iterable")}});var rt=I(function(Oar,ZD){"use strict";var _ue=ge(),XD=he(),que=zr();ZD.exports=function(r,e,t){var i,n;XD(r);try{if(i=que(r,"return"),!i){if(e==="throw")throw t;return t}i=_ue(i,r)}catch(a){n=!0,i=a}if(e==="throw")throw t;if(n)throw i;return XD(i),t}});var Pr=I(function(Tar,tF){"use strict";var Due=Ut(),Fue=ge(),kue=he(),Rue=pa(),Nue=rd(),Oue=er(),$D=pt(),Tue=To(),Pue=qn(),eF=rt(),Mue=TypeError,td=function td(r,e){this.stopped=r,this.result=e},rF=td.prototype;tF.exports=function(r,e,t){var i=t&&t.that,n=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),A=Due(e,i),u,c,l,f,g,h,d,p=function p(x){return u&&eF(u,"normal"),new td(!0,x)},m=function m(x){return n?(kue(x),s?A(x[0],x[1],p):A(x[0],x[1])):s?A(x,p):A(x)};if(a)u=r.iterator;else if(o)u=r;else{if(c=Pue(r),!c)throw new Mue(Rue(r)+" is not iterable");if(Nue(c)){for(l=0,f=Oue(r);f>l;l++)if(g=m(r[l]),g&&$D(rF,g))return g;return new td(!1)}u=Tue(r,c)}for(h=a?r.next:u.next;!(d=Fue(h,u)).done;){try{g=m(d.value)}catch(x){eF(u,"throw",x)}if((typeof g==="undefined"?"undefined":_type_of(g))=="object"&&g&&$D(rF,g))return g}return new td(!1)}});var nF=I(function(){"use strict";var Uue=k(),Gue=pt(),Lue=xt(),id=di(),Hue=qo(),iF=Zr(),qm=Xr(),Dm=Tt(),Wue=Cm(),Jue=jg(),Kue=Pr(),Vue=No(),Yue=ve(),zue=Yue("toStringTag"),nd=Error,jue=[].push,Ls=function Ls1(e,t){var i=Gue(Fm,this),n;id?n=id(new nd,i?Lue(this):Fm):(n=i?this:iF(Fm),qm(n,zue,"Error")),t!==void 0&&qm(n,"message",Vue(t)),Jue(n,Ls,n.stack,1),arguments.length>2&&Wue(n,arguments[2]);var a=[];return Kue(e,jue,{that:a}),qm(n,"errors",a),n};id?id(Ls,nd):Hue(Ls,nd,{name:!0});var Fm=Ls.prototype=iF(nd.prototype,{constructor:Dm(1,Ls),message:Dm(1,""),name:Dm(1,"AggregateError")});Uue({global:!0,constructor:!0,arity:2},{AggregateError:Ls})});var aF=I(function(){"use strict";nF()});var cF=I(function(){"use strict";var Xue=k(),Zue=we(),$ue=Lt(),oF=W(),ele=Em(),km="AggregateError",sF=Zue(km),AF=!oF(function(){return sF([1]).errors[0]!==1})&&oF(function(){return sF([1],km,{cause:7}).cause!==7});Xue({global:!0,constructor:!0,arity:2,forced:AF},{AggregateError:ele(km,function(r){return function(t,i){return $ue(r,this,arguments)}},AF,!0)})});var fF=I(function(){"use strict";var rle=k(),tle=te(),ile=pt(),uF=xt(),od=di(),nle=qo(),lF=Zr(),ad=Xr(),Rm=Tt(),ale=jg(),ole=No(),sle=ve(),Ale=W(),cle=Je(),Hs=tle.SuppressedError,ule=sle("toStringTag"),sd=Error,lle=!!Hs&&Hs.length!==3,fle=!!Hs&&Ale(function(){return new Hs(1,2,3,{cause:4}).cause===4}),Ad=lle||fle,Po=function Po1(e,t,i){var n=ile(Bu,this),a;return od?a=Ad&&(!n||uF(this)===Bu)?new Hs:od(new sd,n?uF(this):Bu):(a=n?this:lF(Bu),ad(a,ule,"Error")),i!==void 0&&ad(a,"message",ole(i)),ale(a,Po,a.stack,1),ad(a,"error",e),ad(a,"suppressed",t),a};od?od(Po,sd):nle(Po,sd,{name:!0});var Bu=Po.prototype=Ad?Hs.prototype:lF(sd.prototype,{constructor:Rm(1,Po),message:Rm(1,""),name:Rm(1,"SuppressedError")});Ad&&!cle&&(Bu.constructor=Po);rle({global:!0,constructor:!0,arity:3,forced:Ad},{SuppressedError:Po})});var bt=I(function(Kar,gF){"use strict";var gle=ve(),dle=Zr(),hle=ur().f,Nm=gle("unscopables"),Om=Array.prototype;Om[Nm]===void 0&&hle(Om,Nm,{configurable:!0,value:dle(null)});gF.exports=function(r){Om[Nm][r]=!0}});var dF=I(function(){"use strict";var Ile=k(),ple=He(),xle=er(),mle=Br(),vle=bt();Ile({target:"Array",proto:!0},{at:function at1(e){var t=ple(this),i=xle(t),n=mle(e),a=n>=0?n:i+n;return a<0||a>=i?void 0:t[a]}});vle("at")});var Qa=I(function(zar,hF){"use strict";var Cle=TypeError,Ble=9007199254740991;hF.exports=function(r){if(r>Ble)throw Cle("Maximum allowed index exceeded");return r}});var ri=I(function(jar,IF){"use strict";var Ele=xe(),yle=ur(),Qle=Tt();IF.exports=function(r,e,t){Ele?yle.f(r,e,Qle(0,t)):r[e]=t}});var Ws=I(function(Xar,pF){"use strict";var ble=W(),wle=ve(),Sle=Ri(),_le=wle("species");pF.exports=function(r){return Sle>=51||!ble(function(){var e=[],t=e.constructor={};return t[_le]=function(){return{foo:1}},e[r](Boolean).foo!==1})}});var CF=I(function(){"use strict";var qle=k(),Dle=W(),Fle=en(),kle=me(),Rle=He(),Nle=er(),xF=Qa(),mF=ri(),Ole=Ts(),Tle=Ws(),Ple=ve(),Mle=Ri(),vF=Ple("isConcatSpreadable"),Ule=Mle>=51||!Dle(function(){var r=[];return r[vF]=!1,r.concat()[0]!==r}),Gle=function Gle(r){if(!kle(r))return!1;var e=r[vF];return e!==void 0?!!e:Fle(r)},Lle=!Ule||!Tle("concat");qle({target:"Array",proto:!0,arity:1,forced:Lle},{concat:function concat(e){var t=Rle(this),i=Ole(t,0),n=0,a,o,s,A,u;for(a=-1,s=arguments.length;a2?arguments[2]:void 0,A=Vle((s===void 0?n:Tm(s,n))-o,n-a),u=1;for(o0;)o in i?i[a]=i[o]:Kle(i,a),a+=u,o+=u;return i}});var QF=I(function(){"use strict";var Yle=k(),zle=Pm(),jle=bt();Yle({target:"Array",proto:!0},{copyWithin:zle});jle("copyWithin")});var tn=I(function(nor,bF){"use strict";var Xle=W();bF.exports=function(r,e){var t=[][r];return!!t&&Xle(function(){t.call(null,e||function(){return 1},1)})}});var wF=I(function(){"use strict";var Zle=k(),$le=$r().every,efe=tn(),rfe=efe("every");Zle({target:"Array",proto:!0,forced:!rfe},{every:function every(e){return $le(this,e,arguments.length>1?arguments[1]:void 0)}})});var cd=I(function(sor,_F){"use strict";var tfe=He(),SF=$i(),ife=er();_F.exports=function(e){for(var t=tfe(this),i=ife(t),n=arguments.length,a=SF(n>1?arguments[1]:void 0,i),o=n>2?arguments[2]:void 0,s=o===void 0?i:SF(o,i);s>a;)t[a++]=e;return t}});var qF=I(function(){"use strict";var nfe=k(),afe=cd(),ofe=bt();nfe({target:"Array",proto:!0},{fill:afe});ofe("fill")});var DF=I(function(){"use strict";var sfe=k(),Afe=$r().filter,cfe=Ws(),ufe=cfe("filter");sfe({target:"Array",proto:!0,forced:!ufe},{filter:function filter(e){return Afe(this,e,arguments.length>1?arguments[1]:void 0)}})});var kF=I(function(){"use strict";var lfe=k(),ffe=$r().find,gfe=bt(),Mm="find",FF=!0;Mm in[]&&Array(1)[Mm](function(){FF=!1});lfe({target:"Array",proto:!0,forced:FF},{find:function find(e){return ffe(this,e,arguments.length>1?arguments[1]:void 0)}});gfe(Mm)});var NF=I(function(){"use strict";var dfe=k(),hfe=$r().findIndex,Ife=bt(),Um="findIndex",RF=!0;Um in[]&&Array(1)[Um](function(){RF=!1});dfe({target:"Array",proto:!0,forced:RF},{findIndex:function findIndex(e){return hfe(this,e,arguments.length>1?arguments[1]:void 0)}});Ife(Um)});var yu=I(function(por,TF){"use strict";var pfe=Ut(),xfe=bo(),mfe=He(),vfe=er(),OF=function OF(r){var e=r===1;return function(t,i,n){for(var a=mfe(t),o=xfe(a),s=vfe(o),A=pfe(i,n),u,c;s-->0;)if(u=o[s],c=A(u,s,a),c)switch(r){case 0:return u;case 1:return s}return e?-1:void 0}};TF.exports={findLast:OF(0),findLastIndex:OF(1)}});var PF=I(function(){"use strict";var Cfe=k(),Bfe=yu().findLast,Efe=bt();Cfe({target:"Array",proto:!0},{findLast:function findLast(e){return Bfe(this,e,arguments.length>1?arguments[1]:void 0)}});Efe("findLast")});var MF=I(function(){"use strict";var yfe=k(),Qfe=yu().findLastIndex,bfe=bt();yfe({target:"Array",proto:!0},{findLastIndex:function findLastIndex(e){return Qfe(this,e,arguments.length>1?arguments[1]:void 0)}});bfe("findLastIndex")});var Gm=I(function(Bor,GF){"use strict";var wfe=en(),Sfe=er(),_fe=Qa(),qfe=Ut(),UF=function UF1(r,e,t,i,n,a,o,s){for(var A=n,u=0,c=o?qfe(o,s):!1,l,f;u0&&wfe(l)?(f=Sfe(l),A=UF(r,e,l,f,A,a-1)-1):(_fe(A+1),r[A]=l),A++),u++;return A};GF.exports=UF});var LF=I(function(){"use strict";var Dfe=k(),Ffe=Gm(),kfe=He(),Rfe=er(),Nfe=Br(),Ofe=Ts();Dfe({target:"Array",proto:!0},{flat:function flat(){var e=arguments.length?arguments[0]:void 0,t=kfe(this),i=Rfe(t),n=Ofe(t,0);return n.length=Ffe(n,t,t,i,0,e===void 0?1:Nfe(e)),n}})});var HF=I(function(){"use strict";var Tfe=k(),Pfe=Gm(),Mfe=_e(),Ufe=He(),Gfe=er(),Lfe=Ts();Tfe({target:"Array",proto:!0},{flatMap:function flatMap(e){var t=Ufe(this),i=Gfe(t),n;return Mfe(e),n=Lfe(t,0),n.length=Pfe(n,t,t,i,0,1,e,arguments.length>1?arguments[1]:void 0),n}})});var Lm=I(function(wor,WF){"use strict";var Hfe=$r().forEach,Wfe=tn(),Jfe=Wfe("forEach");WF.exports=Jfe?[].forEach:function(e){return Hfe(this,e,arguments.length>1?arguments[1]:void 0)}});var KF=I(function(){"use strict";var Kfe=k(),JF=Lm();Kfe({target:"Array",proto:!0,forced:[].forEach!==JF},{forEach:JF})});var ud=I(function(qor,VF){"use strict";var Vfe=he(),Yfe=rt();VF.exports=function(r,e,t,i){try{return i?e(Vfe(t)[0],t[1]):e(t)}catch(n){Yfe(r,"throw",n)}}});var Hm=I(function(Dor,jF){"use strict";var zfe=Ut(),jfe=ge(),Xfe=He(),Zfe=ud(),$fe=rd(),ege=Ca(),rge=er(),YF=ri(),tge=To(),ige=qn(),zF=Array;jF.exports=function(e){var t=Xfe(e),i=ege(this),n=arguments.length,a=n>1?arguments[1]:void 0,o=a!==void 0;o&&(a=zfe(a,n>2?arguments[2]:void 0));var s=ige(t),A=0,u,c,l,f,g,h;if(s&&!(this===zF&&$fe(s)))for(c=i?new this:[],f=tge(t,s),g=f.next;!(l=jfe(g,f)).done;A++)h=o?Zfe(f,a,[l.value,A],!0):l.value,YF(c,A,h);else for(u=rge(t),c=i?new this(u):zF(u);u>A;A++)h=o?a(t[A],A):t[A],YF(c,A,h);return c.length=A,c}});var Qu=I(function(For,e2){"use strict";var nge=ve(),ZF=nge("iterator"),$F=!1;try{XF=0,Wm={next:function next(){return{done:!!XF++}},return:function _return(){$F=!0}},Wm[ZF]=function(){return this},Array.from(Wm,function(){throw 2})}catch(r){}var XF,Wm;e2.exports=function(r,e){try{if(!e&&!$F)return!1}catch(n){return!1}var t=!1;try{var i={};i[ZF]=function(){return{next:function next(){return{done:t=!0}}}},r(i)}catch(n){}return t}});var r2=I(function(){"use strict";var age=k(),oge=Hm(),sge=Qu(),Age=!sge(function(r){Array.from(r)});age({target:"Array",stat:!0,forced:Age},{from:oge})});var t2=I(function(){"use strict";var cge=k(),uge=Rs().includes,lge=W(),fge=bt(),gge=lge(function(){return!Array(1).includes()});cge({target:"Array",proto:!0,forced:gge},{includes:function includes(e){return uge(this,e,arguments.length>1?arguments[1]:void 0)}});fge("includes")});var n2=I(function(){"use strict";var dge=k(),hge=va(),Ige=Rs().indexOf,pge=tn(),Jm=hge([].indexOf),i2=!!Jm&&1/Jm([1],1,-0)<0,xge=i2||!pge("indexOf");dge({target:"Array",proto:!0,forced:xge},{indexOf:function indexOf(e){var t=arguments.length>1?arguments[1]:void 0;return i2?Jm(this,e,t)||0:Ige(this,e,t)}})});var a2=I(function(){"use strict";var mge=k(),vge=en();mge({target:"Array",stat:!0},{isArray:vge})});var Mo=I(function(Gor,A2){"use strict";var Cge=W(),Bge=ke(),Ege=me(),yge=Zr(),o2=xt(),Qge=$e(),bge=ve(),wge=Je(),Ym=bge("iterator"),s2=!1,Dn,Km,Vm;[].keys&&(Vm=[].keys(),"next"in Vm?(Km=o2(o2(Vm)),Km!==Object.prototype&&(Dn=Km)):s2=!0);var Sge=!Ege(Dn)||Cge(function(){var r={};return Dn[Ym].call(r)!==r});Sge?Dn={}:wge&&(Dn=yge(Dn));Bge(Dn[Ym])||Qge(Dn,Ym,function(){return this});A2.exports={IteratorPrototype:Dn,BUGGY_SAFARI_ITERATORS:s2}});var ld=I(function(Lor,c2){"use strict";var _ge=Mo().IteratorPrototype,qge=Zr(),Dge=Tt(),Fge=Qt(),kge=Gs(),Rge=function Rge(){return this};c2.exports=function(r,e,t,i){var n=e+" Iterator";return r.prototype=qge(_ge,{next:Dge(+!i,t)}),Fge(r,n,!1,!0),kge[n]=Rge,r}});var dd=I(function(Hor,m2){"use strict";var Nge=k(),Oge=ge(),fd=Je(),p2=So(),Tge=ke(),Pge=ld(),u2=xt(),l2=di(),Mge=Qt(),Uge=Xr(),zm=$e(),Gge=ve(),f2=Gs(),x2=Mo(),Lge=p2.PROPER,Hge=p2.CONFIGURABLE,g2=x2.IteratorPrototype,gd=x2.BUGGY_SAFARI_ITERATORS,bu=Gge("iterator"),d2="keys",wu="values",h2="entries",I2=function I2(){return this};m2.exports=function(r,e,t,i,n,a,o){Pge(t,e,i);var s=function s(m){if(m===n&&f)return f;if(!gd&&m&&m in c)return c[m];switch(m){case d2:return function(){return new t(this,m)};case wu:return function(){return new t(this,m)};case h2:return function(){return new t(this,m)}}return function(){return new t(this)}},A=e+" Iterator",u=!1,c=r.prototype,l=c[bu]||c["@@iterator"]||n&&c[n],f=!gd&&l||s(n),g=e==="Array"&&c.entries||l,h,d,p;if(g&&(h=u2(g.call(new r)),h!==Object.prototype&&h.next&&(!fd&&u2(h)!==g2&&(l2?l2(h,g2):Tge(h[bu])||zm(h,bu,I2)),Mge(h,A,!0,!0),fd&&(f2[A]=I2))),Lge&&n===wu&&l&&l.name!==wu&&(!fd&&Hge?Uge(c,"name",wu):(u=!0,f=function f(){return Oge(l,this)})),n)if(d={values:s(wu),keys:a?f:s(d2),entries:s(h2)},o)for(p in d)(gd||u||!(p in c))&&zm(c,p,d[p]);else Nge({target:e,proto:!0,forced:gd||u},d);return(!fd||o)&&c[bu]!==f&&zm(c,bu,f,{name:n}),f2[e]=f,d}});var ba=I(function(Wor,v2){"use strict";v2.exports=function(r,e){return{value:r,done:e}}});var Su=I(function(Jor,Q2){"use strict";var Wge=Wr(),jm=bt(),C2=Gs(),E2=lr(),Jge=ur().f,Kge=dd(),hd=ba(),Vge=Je(),Yge=xe(),y2="Array Iterator",zge=E2.set,jge=E2.getterFor(y2);Q2.exports=Kge(Array,"Array",function(r,e){zge(this,{type:y2,target:Wge(r),index:0,kind:e})},function(){var r=jge(this),e=r.target,t=r.index++;if(!e||t>=e.length)return r.target=null,hd(void 0,!0);switch(r.kind){case"keys":return hd(t,!1);case"values":return hd(e[t],!1)}return hd([t,e[t]],!1)},"values");var B2=C2.Arguments=C2.Array;jm("keys");jm("values");jm("entries");if(!Vge&&Yge&&B2.name!=="values")try{Jge(B2,"name",{value:"values"})}catch(r){}});var b2=I(function(){"use strict";var Xge=k(),Zge=Y(),$ge=bo(),ede=Wr(),rde=tn(),tde=Zge([].join),ide=$ge!==Object,nde=ide||!rde("join",",");Xge({target:"Array",proto:!0,forced:nde},{join:function join(e){return tde(ede(this),e===void 0?",":e)}})});var Zm=I(function(Yor,S2){"use strict";var ade=Lt(),ode=Wr(),sde=Br(),Ade=er(),cde=tn(),ude=Math.min,Xm=[].lastIndexOf,w2=!!Xm&&1/[1].lastIndexOf(1,-0)<0,lde=cde("lastIndexOf"),fde=w2||!lde;S2.exports=fde?function(e){if(w2)return ade(Xm,this,arguments)||0;var t=ode(this),i=Ade(t);if(i===0)return-1;var n=i-1;for(arguments.length>1&&(n=ude(n,sde(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}:Xm});var q2=I(function(){"use strict";var gde=k(),_2=Zm();gde({target:"Array",proto:!0,forced:_2!==[].lastIndexOf},{lastIndexOf:_2})});var D2=I(function(){"use strict";var dde=k(),hde=$r().map,Ide=Ws(),pde=Ide("map");dde({target:"Array",proto:!0,forced:!pde},{map:function map(e){return hde(this,e,arguments.length>1?arguments[1]:void 0)}})});var k2=I(function(){"use strict";var xde=k(),mde=W(),vde=Ca(),Cde=ri(),F2=Array,Bde=mde(function(){function r(){}return!_instanceof(F2.of.call(r),r)});xde({target:"Array",stat:!0,forced:Bde},{of:function of1(){for(var e=0,t=arguments.length,i=new(vde(this)?this:F2)(t);t>e;)Cde(i,e,arguments[e++]);return i.length=t,i}})});var Id=I(function(rsr,R2){"use strict";var Ede=xe(),yde=en(),Qde=TypeError,bde=Object.getOwnPropertyDescriptor,wde=Ede&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return _instanceof(r,TypeError)}}();R2.exports=wde?function(r,e){if(yde(r)&&!bde(r,"length").writable)throw new Qde("Cannot set read only .length");return r.length=e}:function(r,e){return r.length=e}});var N2=I(function(){"use strict";var Sde=k(),_de=He(),qde=er(),Dde=Id(),Fde=Qa(),kde=W(),Rde=kde(function(){return[].push.call({length:4294967296},1)!==4294967297}),Nde=function Nde(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(r){return _instanceof(r,TypeError)}},Ode=Rde||!Nde();Sde({target:"Array",proto:!0,arity:1,forced:Ode},{push:function push(e){var t=_de(this),i=qde(t),n=arguments.length;Fde(i+n);for(var a=0;a=0:s>A;A+=u)A in o&&(n=t(n,o[A],A,a));return n}};M2.exports={left:P2(!1),right:P2(!0)}});var Du=I(function(asr,U2){"use strict";var qu=te(),Gde=Fi(),Lde=st(),pd=function pd(r){return Gde.slice(0,r.length)===r};U2.exports=function(){return pd("Bun/")?"BUN":pd("Cloudflare-Workers")?"CLOUDFLARE":pd("Deno/")?"DENO":pd("Node.js/")?"NODE":qu.Bun&&typeof Bun.version=="string"?"BUN":qu.Deno&&_type_of(Deno.version)=="object"?"DENO":Lde(qu.process)==="process"?"NODE":qu.window&&qu.document?"BROWSER":"REST"}()});var Uo=I(function(osr,G2){"use strict";var Hde=Du();G2.exports=Hde==="NODE"});var H2=I(function(){"use strict";var Wde=k(),Jde=_u().left,Kde=tn(),L2=Ri(),Vde=Uo(),Yde=!Vde&&L2>79&&L2<83,zde=Yde||!Kde("reduce");Wde({target:"Array",proto:!0,forced:zde},{reduce:function reduce(e){var t=arguments.length;return Jde(this,e,t,t>1?arguments[1]:void 0)}})});var J2=I(function(){"use strict";var jde=k(),Xde=_u().right,Zde=tn(),W2=Ri(),$de=Uo(),ehe=!$de&&W2>79&&W2<83,rhe=ehe||!Zde("reduceRight");jde({target:"Array",proto:!0,forced:rhe},{reduceRight:function reduceRight(e){return Xde(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})});var V2=I(function(){"use strict";var the=k(),ihe=Y(),nhe=en(),ahe=ihe([].reverse),K2=[1,2];the({target:"Array",proto:!0,forced:String(K2)===String(K2.reverse())},{reverse:function reverse(){return nhe(this)&&(this.length=this.length),ahe(this)}})});var j2=I(function(){"use strict";var ohe=k(),Y2=en(),she=Ca(),Ahe=me(),z2=$i(),che=er(),uhe=Wr(),lhe=ri(),fhe=ve(),ghe=Ws(),dhe=ei(),hhe=ghe("slice"),Ihe=fhe("species"),$m=Array,phe=Math.max;ohe({target:"Array",proto:!0,forced:!hhe},{slice:function slice(e,t){var i=uhe(this),n=che(i),a=z2(e,n),o=z2(t===void 0?n:t,n),s,A,u;if(Y2(i)&&(s=i.constructor,she(s)&&(s===$m||Y2(s.prototype))?s=void 0:Ahe(s)&&(s=s[Ihe],s===null&&(s=void 0)),s===$m||s===void 0))return dhe(i,a,o);for(A=new(s===void 0?$m:s)(phe(o-a,0)),u=0;a1?arguments[1]:void 0)}})});var xd=I(function(psr,$2){"use strict";var Z2=ei(),Bhe=Math.floor,ev=function ev1(r,e){var t=r.length;if(t<8)for(var i=1,n,a;i0;)r[a]=r[--a];a!==i++&&(r[a]=n)}else for(var o=Bhe(t/2),s=ev(Z2(r,0,o),e),A=ev(Z2(r,o),e),u=s.length,c=A.length,l=0,f=0;l3)){if(Fhe)return!0;if(ck)return ck<603;var r="",e,t,i,n;for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)wa.push({k:t+n,v:i})}for(wa.sort(function(a,o){return o.v-a.v}),n=0;nok(t)?1:-1}};bhe({target:"Array",proto:!0,forced:The},{sort:function sort(e){e!==void 0&&whe(e);var t=She(this);if(fk)return e===void 0?uk(t):uk(t,e);var i=[],n=ak(t),a,o;for(o=0;on-A+s;c--)nv(i,c-1)}else if(s>A)for(c=n-A;c>a;c--)l=c+A-1,f=c+s-1,l in i?i[f]=i[l]:nv(i,f);for(c=0;c2?t:cIe(e),a=new r(n);n>i;)a[i]=e[i++];return a}});var ov=I(function(Fsr,Ck){"use strict";var uIe=te();Ck.exports=function(r,e){var t=uIe[r],i=t&&t.prototype;return i&&i[e]}});var Bk=I(function(){"use strict";var lIe=k(),fIe=Y(),gIe=_e(),dIe=Wr(),hIe=Js(),IIe=ov(),pIe=bt(),xIe=Array,mIe=fIe(IIe("Array","sort"));lIe({target:"Array",proto:!0},{toSorted:function toSorted(e){e!==void 0&&gIe(e);var t=dIe(this),i=hIe(xIe,t);return mIe(i,e)}});pIe("toSorted")});var Ek=I(function(){"use strict";var vIe=k(),CIe=bt(),BIe=Qa(),EIe=er(),yIe=$i(),QIe=Wr(),bIe=Br(),wIe=Array,SIe=Math.max,_Ie=Math.min;vIe({target:"Array",proto:!0},{toSpliced:function toSpliced(e,t){var i=QIe(this),n=EIe(i),a=yIe(e,n),o=arguments.length,s=0,A,u,c,l;for(o===0?A=u=0:o===1?(A=0,u=n-a):(A=o-2,u=_Ie(SIe(bIe(t),0),n-a)),c=BIe(n+A-u),l=wIe(c);s=n||o<0)throw new HIe("Incorrect index");for(var s=new e(n),A=0;At||A!==A?o*(1/0):o*A}});var uv=I(function($sr,Tk){"use strict";var ope=cv(),spe=1.1920928955078125e-7,Ape=34028234663852886e22,cpe=11754943508222875e-54;Tk.exports=Math.fround||function(e){return ope(e,spe,Ape,cpe)}});var Mk=I(function(eAr,Pk){"use strict";var upe=Array,lpe=Math.abs,Fn=Math.pow,fpe=Math.floor,gpe=Math.log,dpe=Math.LN2,hpe=function hpe(r,e,t){var i=upe(t),n=t*8-e-1,a=(1<>1,s=e===23?Fn(2,-24)-Fn(2,-77):0,A=r<0||r===0&&1/r<0?1:0,u=0,c,l,f;for(r=lpe(r),r!==r||r===1/0?(l=r!==r?1:0,c=a):(c=fpe(gpe(r)/dpe),f=Fn(2,-c),r*f<1&&(c--,f*=2),c+o>=1?r+=s/f:r+=s*Fn(2,1-o),r*f>=2&&(c++,f/=2),c+o>=a?(l=0,c=a):c+o>=1?(l=(r*f-1)*Fn(2,e),c+=o):(l=r*Fn(2,o-1)*Fn(2,e),c=0));e>=8;)i[u++]=l&255,l/=256,e-=8;for(c=c<0;)i[u++]=c&255,c/=256,n-=8;return i[u-1]|=A*128,i},Ipe=function Ipe(r,e){var t=r.length,i=t*8-e-1,n=(1<>1,o=i-7,s=t-1,A=r[s--],u=A&127,c;for(A>>=7;o>0;)u=u*256+r[s--],o-=8;for(c=u&(1<<-o)-1,u>>=-o,o+=e;o>0;)c=c*256+r[s--],o-=8;if(u===0)u=1-a;else{if(u===n)return c?NaN:A?-1/0:1/0;c+=Fn(2,e),u-=a}return(A?-1:1)*c*Fn(2,u-e)};Pk.exports={pack:hpe,unpack:Ipe}});var Ou=I(function(rAr,tR){"use strict";var Qd=te(),hv=Y(),lv=xe(),ppe=Fu(),Xk=So(),xpe=Xr(),mpe=_r(),Uk=nn(),fv=W(),Cd=Ht(),vpe=Br(),Cpe=Pt(),Ed=ku(),Bpe=uv(),Zk=Mk(),Epe=xt(),Gk=di(),ype=cd(),Qpe=ei(),bpe=ya(),wpe=qo(),$k=Qt(),Iv=lr(),Spe=Xk.PROPER,Lk=Xk.CONFIGURABLE,Vs="ArrayBuffer",bd="DataView",Ys="prototype",_pe="Wrong length",eR="Wrong index",Hk=Iv.getterFor(Vs),Nu=Iv.getterFor(bd),Wk=Iv.set,Oi=Qd[Vs],ti=Oi,Ks=ti&&ti[Ys],an=Qd[bd],Lo=an&&an[Ys],Jk=Object.prototype,qpe=Qd.Array,yd=Qd.RangeError,Dpe=hv(ype),Fpe=hv([].reverse),rR=Zk.pack,Kk=Zk.unpack,Vk=function Vk(r){return[r&255]},Yk=function Yk(r){return[r&255,r>>8&255]},zk=function zk(r){return[r&255,r>>8&255,r>>16&255,r>>24&255]},jk=function jk(r){return r[3]<<24|r[2]<<16|r[1]<<8|r[0]},kpe=function kpe(r){return rR(Bpe(r),23,4)},Rpe=function Rpe(r){return rR(r,52,8)},Bd=function Bd(r,e,t){mpe(r[Ys],e,{configurable:!0,get:function get(){return t(this)[e]}})},Sa=function Sa(r,e,t,i){var n=Nu(r),a=Ed(t),o=!!i;if(a+e>n.byteLength)throw new yd(eR);var s=n.bytes,A=a+n.byteOffset,u=Qpe(s,A,A+e);return o?u:Fpe(u)},_a=function _a(r,e,t,i,n,a){var o=Nu(r),s=Ed(t),A=i(+n),u=!!a;if(s+e>o.byteLength)throw new yd(eR);for(var c=o.bytes,l=s+o.byteOffset,f=0;f>24)},setUint8:function setUint8(e,t){dv(this,e,t<<24>>24)}},{unsafe:!0})):(ti=function ti(e){Cd(this,Ks);var t=Ed(e);Wk(this,{type:Vs,bytes:Dpe(qpe(t),0),byteLength:t}),lv||(this.byteLength=t,this.detached=!1)},Ks=ti[Ys],an=function an(e,t,i){Cd(this,Lo),Cd(e,Ks);var n=Hk(e),a=n.byteLength,o=vpe(t);if(o<0||o>a)throw new yd("Wrong offset");if(i=i===void 0?a-o:Cpe(i),o+i>a)throw new yd(_pe);Wk(this,{type:bd,buffer:e,byteLength:i,byteOffset:o,bytes:n.bytes}),lv||(this.buffer=e,this.byteLength=i,this.byteOffset=o)},Lo=an[Ys],lv&&(Bd(ti,"byteLength",Hk),Bd(an,"buffer",Nu),Bd(an,"byteLength",Nu),Bd(an,"byteOffset",Nu)),Uk(Lo,{getInt8:function getInt8(e){return Sa(this,1,e)[0]<<24>>24},getUint8:function getUint8(e){return Sa(this,1,e)[0]},getInt16:function getInt16(e){var t=Sa(this,2,e,arguments.length>1?arguments[1]:!1);return(t[1]<<8|t[0])<<16>>16},getUint16:function getUint16(e){var t=Sa(this,2,e,arguments.length>1?arguments[1]:!1);return t[1]<<8|t[0]},getInt32:function getInt32(e){return jk(Sa(this,4,e,arguments.length>1?arguments[1]:!1))},getUint32:function getUint32(e){return jk(Sa(this,4,e,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function getFloat32(e){return Kk(Sa(this,4,e,arguments.length>1?arguments[1]:!1),23)},getFloat64:function getFloat64(e){return Kk(Sa(this,8,e,arguments.length>1?arguments[1]:!1),52)},setInt8:function setInt8(e,t){_a(this,1,e,Vk,t)},setUint8:function setUint8(e,t){_a(this,1,e,Vk,t)},setInt16:function setInt16(e,t){_a(this,2,e,Yk,t,arguments.length>2?arguments[2]:!1)},setUint16:function setUint16(e,t){_a(this,2,e,Yk,t,arguments.length>2?arguments[2]:!1)},setInt32:function setInt32(e,t){_a(this,4,e,zk,t,arguments.length>2?arguments[2]:!1)},setUint32:function setUint32(e,t){_a(this,4,e,zk,t,arguments.length>2?arguments[2]:!1)},setFloat32:function setFloat32(e,t){_a(this,4,e,kpe,t,arguments.length>2?arguments[2]:!1)},setFloat64:function setFloat64(e,t){_a(this,8,e,Rpe,t,arguments.length>2?arguments[2]:!1)}}));var gv,Ru,dv;$k(ti,Vs);$k(an,bd);tR.exports={ArrayBuffer:ti,DataView:an}});var nR=I(function(){"use strict";var Npe=k(),Ope=te(),Tpe=Ou(),Ppe=Go(),pv="ArrayBuffer",iR=Tpe[pv],Mpe=Ope[pv];Npe({global:!0,constructor:!0,forced:Mpe!==iR},{ArrayBuffer:iR});Ppe(pv)});var Re=I(function(nAr,dR){"use strict";var Upe=Fu(),Cv=xe(),wt=te(),AR=ke(),_d=me(),Da=Se(),Bv=Mt(),Gpe=pa(),Lpe=Xr(),xv=$e(),Hpe=_r(),Wpe=pt(),qd=xt(),js=di(),Jpe=ve(),Kpe=xa(),cR=lr(),uR=cR.enforce,Vpe=cR.get,wd=wt.Int8Array,mv=wd&&wd.prototype,aR=wt.Uint8ClampedArray,oR=aR&&aR.prototype,on=wd&&qd(wd),Ti=mv&&qd(mv),Ype=Object.prototype,Ev=wt.TypeError,sR=Jpe("toStringTag"),vv=Kpe("TYPED_ARRAY_TAG"),Sd="TypedArrayConstructor",kn=Upe&&!!js&&Bv(wt.opera)!=="Opera",lR=!1,Wt,qa,zs,Rn={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},yv={BigInt64Array:8,BigUint64Array:8},zpe=function zpe(e){if(!_d(e))return!1;var t=Bv(e);return t==="DataView"||Da(Rn,t)||Da(yv,t)},fR=function fR1(r){var e=qd(r);if(_d(e)){var t=Vpe(e);return t&&Da(t,Sd)?t[Sd]:fR(e)}},gR=function gR(r){if(!_d(r))return!1;var e=Bv(r);return Da(Rn,e)||Da(yv,e)},jpe=function jpe(r){if(gR(r))return r;throw new Ev("Target is not a typed array")},Xpe=function Xpe(r){if(AR(r)&&(!js||Wpe(on,r)))return r;throw new Ev(Gpe(r)+" is not a typed array constructor")},Zpe=function Zpe(r,e,t,i){if(Cv){if(t)for(var n in Rn){var a=wt[n];if(a&&Da(a.prototype,r))try{delete a.prototype[r]}catch(o){try{a.prototype[r]=e}catch(s){}}}(!Ti[r]||t)&&xv(Ti,r,t?e:kn&&mv[r]||e,i)}},$pe=function $pe(r,e,t){var i,n;if(Cv){if(js){if(t){for(i in Rn)if(n=wt[i],n&&Da(n,r))try{delete n[r]}catch(a){}}if(!on[r]||t)try{return xv(on,r,t?e:kn&&on[r]||e)}catch(a){}else return}for(i in Rn)n=wt[i],n&&(!n[r]||t)&&xv(n,r,e)}};for(Wt in Rn)qa=wt[Wt],zs=qa&&qa.prototype,zs?uR(zs)[Sd]=qa:kn=!1;for(Wt in yv)qa=wt[Wt],zs=qa&&qa.prototype,zs&&(uR(zs)[Sd]=qa);if((!kn||!AR(on)||on===Function.prototype)&&(on=function on(){throw new Ev("Incorrect invocation")},kn))for(Wt in Rn)wt[Wt]&&js(wt[Wt],on);if((!kn||!Ti||Ti===Ype)&&(Ti=on.prototype,kn))for(Wt in Rn)wt[Wt]&&js(wt[Wt].prototype,Ti);kn&&qd(oR)!==Ti&&js(oR,Ti);if(Cv&&!Da(Ti,sR)){lR=!0,Hpe(Ti,sR,{configurable:!0,get:function get(){return _d(this)?this[vv]:void 0}});for(Wt in Rn)wt[Wt]&&Lpe(wt[Wt],vv,Wt)}dR.exports={NATIVE_ARRAY_BUFFER_VIEWS:kn,TYPED_ARRAY_TAG:lR&&vv,aTypedArray:jpe,aTypedArrayConstructor:Xpe,exportTypedArrayMethod:Zpe,exportTypedArrayStaticMethod:$pe,getTypedArrayConstructor:fR,isView:zpe,isTypedArray:gR,TypedArray:on,TypedArrayPrototype:Ti}});var IR=I(function(){"use strict";var e0e=k(),hR=Re(),r0e=hR.NATIVE_ARRAY_BUFFER_VIEWS;e0e({target:"ArrayBuffer",stat:!0,forced:!r0e},{isView:hR.isView})});var BR=I(function(){"use strict";var t0e=k(),bv=va(),i0e=W(),vR=Ou(),pR=he(),xR=$i(),n0e=Pt(),wv=vR.ArrayBuffer,Qv=vR.DataView,CR=Qv.prototype,mR=bv(wv.prototype.slice),a0e=bv(CR.getUint8),o0e=bv(CR.setUint8),s0e=i0e(function(){return!new wv(2).slice(1,void 0).byteLength});t0e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:s0e},{slice:function slice(e,t){if(mR&&t===void 0)return mR(pR(this),e);for(var i=pR(this).byteLength,n=xR(e,i),a=xR(t===void 0?i:t,i),o=new wv(n0e(a-n)),s=new Qv(this),A=new Qv(o),u=0;n>>15,t=r>>>10&QR,i=r&g0e;return t===QR?i===0?e===0?1/0:-1/0:NaN:t===0?i*(e===0?bR:-bR):SR(2,t-15)*(e===0?1+i*wR:-1-i*wR)},h0e=f0e(DataView.prototype.getUint16);l0e({target:"DataView",proto:!0},{getFloat16:function getFloat16(e){return d0e(h0e(this,e,arguments.length>1?arguments[1]:!1))}})});var DR=I(function(hAr,qR){"use strict";var I0e=Mt(),p0e=TypeError;qR.exports=function(r){if(I0e(r)==="DataView")return r;throw new p0e("Argument is not a DataView")}});var Sv=I(function(IAr,FR){"use strict";var x0e=Math.log,m0e=Math.LN2;FR.exports=Math.log2||function(e){return x0e(e)/m0e}});var RR=I(function(){"use strict";var v0e=k(),C0e=Y(),B0e=DR(),E0e=ku(),y0e=Sv(),kR=Av(),Q0e=Math.pow,b0e=65520,w0e=61005353927612305e-21,S0e=16777216,_v=1024,_0e=function _0e(r){if(r!==r)return 32256;if(r===0)return(1/r===-1/0)<<15;var e=r<0;if(e&&(r=-r),r>=b0e)return e<<15|31744;if(r2?arguments[2]:!1)}})});var qv=I(function(mAr,TR){"use strict";var OR=te(),D0e=Cu(),F0e=st(),NR=OR.ArrayBuffer,k0e=OR.TypeError;TR.exports=NR&&D0e(NR.prototype,"byteLength","get")||function(r){if(F0e(r)!=="ArrayBuffer")throw new k0e("ArrayBuffer expected");return r.byteLength}});var Dv=I(function(vAr,PR){"use strict";var R0e=te(),N0e=Fu(),O0e=qv(),T0e=R0e.DataView;PR.exports=function(r){if(!N0e||O0e(r)!==0)return!1;try{return new T0e(r),!1}catch(e){return!0}}});var UR=I(function(){"use strict";var P0e=xe(),M0e=_r(),U0e=Dv(),MR=ArrayBuffer.prototype;P0e&&!("detached"in MR)&&M0e(MR,"detached",{configurable:!0,get:function get(){return U0e(this)}})});var Xs=I(function(EAr,GR){"use strict";var G0e=Dv(),L0e=TypeError;GR.exports=function(r){if(G0e(r))throw new L0e("ArrayBuffer is detached");return r}});var Fv=I(function(yAr,LR){"use strict";var H0e=te(),W0e=Uo();LR.exports=function(r){if(W0e){try{return H0e.process.getBuiltinModule(r)}catch(e){}try{return Function("return require(\""+r+"\")")()}catch(e){}}}});var Dd=I(function(QAr,WR){"use strict";var J0e=te(),K0e=W(),kv=Ri(),Rv=Du(),HR=J0e.structuredClone;WR.exports=!!HR&&!K0e(function(){if(Rv==="DENO"&&kv>92||Rv==="NODE"&&kv>94||Rv==="BROWSER"&&kv>97)return!1;var r=new ArrayBuffer(8),e=HR(r,{transfer:[r]});return r.byteLength!==0||e.byteLength!==8})});var Mv=I(function(bAr,VR){"use strict";var Pv=te(),V0e=Fv(),Y0e=Dd(),z0e=Pv.structuredClone,JR=Pv.ArrayBuffer,Fd=Pv.MessageChannel,Tv=!1,Nv,KR,kd,Ov;if(Y0e)Tv=function Tv(r){z0e(r,{transfer:[r]})};else if(JR)try{Fd||(Nv=V0e("worker_threads"),Nv&&(Fd=Nv.MessageChannel)),Fd&&(KR=new Fd,kd=new JR(2),Ov=function Ov(r){KR.port1.postMessage(null,[r])},kd.byteLength===2&&(Ov(kd),kd.byteLength===0&&(Tv=Ov)))}catch(r){}VR.exports=Tv});var Jv=I(function(wAr,eN){"use strict";var Lv=te(),Hv=Y(),XR=Cu(),j0e=ku(),X0e=Xs(),Z0e=qv(),YR=Mv(),Uv=Dd(),$0e=Lv.structuredClone,ZR=Lv.ArrayBuffer,Gv=Lv.DataView,exe=Math.min,Wv=ZR.prototype,$R=Gv.prototype,rxe=Hv(Wv.slice),zR=XR(Wv,"resizable","get"),jR=XR(Wv,"maxByteLength","get"),txe=Hv($R.getInt8),ixe=Hv($R.setInt8);eN.exports=(Uv||YR)&&function(r,e,t){var i=Z0e(r),n=e===void 0?i:j0e(e),a=!zR||!zR(r),o;if(X0e(r),Uv&&(r=$0e(r,{transfer:[r]}),i===n&&(t||a)))return r;if(i>=n&&(!t||a))o=rxe(r,0,n);else{var s=t&&!a&&jR?{maxByteLength:jR(r)}:void 0;o=new ZR(n,s);for(var A=new Gv(r),u=new Gv(o),c=exe(n,i),l=0;l=0&&t<=99?t+1900:t;return pxe(this,i)}})});var lN=I(function(){"use strict";var xxe=k();xxe({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})});var Tu=I(function(UAr,fN){"use strict";var mxe=Br(),vxe=Ee(),Cxe=hr(),Bxe=RangeError;fN.exports=function(e){var t=vxe(Cxe(this)),i="",n=mxe(e);if(n<0||n===1/0)throw new Bxe("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))n&1&&(i+=t);return i}});var Pu=I(function(GAr,IN){"use strict";var hN=Y(),Exe=Pt(),gN=Ee(),yxe=Tu(),Qxe=hr(),bxe=hN(yxe),wxe=hN("".slice),Sxe=Math.ceil,dN=function dN(r){return function(e,t,i){var n=gN(Qxe(e)),a=Exe(t),o=n.length,s=i===void 0?" ":gN(i),A,u;return a<=o||s===""?n:(A=a-o,u=bxe(s,Sxe(A/s.length)),u.length>A&&(u=wxe(u,0,A)),r?n+u:u+n)}};IN.exports={start:dN(!1),end:dN(!0)}});var mN=I(function(LAr,xN){"use strict";var Fa=Y(),pN=W(),Ho=Pu().start,_xe=RangeError,qxe=isFinite,Dxe=Math.abs,Nn=Date.prototype,Kv=Nn.toISOString,Fxe=Fa(Nn.getTime),kxe=Fa(Nn.getUTCDate),Rxe=Fa(Nn.getUTCFullYear),Nxe=Fa(Nn.getUTCHours),Oxe=Fa(Nn.getUTCMilliseconds),Txe=Fa(Nn.getUTCMinutes),Pxe=Fa(Nn.getUTCMonth),Mxe=Fa(Nn.getUTCSeconds);xN.exports=pN(function(){return Kv.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!pN(function(){Kv.call(new Date(NaN))})?function(){if(!qxe(Fxe(this)))throw new _xe("Invalid time value");var e=this,t=Rxe(e),i=Oxe(e),n=t<0?"-":t>9999?"+":"";return n+Ho(Dxe(t),n?6:4,0)+"-"+Ho(Pxe(e)+1,2,0)+"-"+Ho(kxe(e),2,0)+"T"+Ho(Nxe(e),2,0)+":"+Ho(Txe(e),2,0)+":"+Ho(Mxe(e),2,0)+"."+Ho(i,3,0)+"Z"}:Kv});var CN=I(function(){"use strict";var Uxe=k(),vN=mN();Uxe({target:"Date",proto:!0,forced:Date.prototype.toISOString!==vN},{toISOString:vN})});var BN=I(function(){"use strict";var Gxe=k(),Lxe=W(),Hxe=He(),Wxe=ou(),Jxe=Lxe(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function toISOString(){return 1}})!==1});Gxe({target:"Date",proto:!0,arity:1,forced:Jxe},{toJSON:function toJSON(e){var t=Hxe(this),i=Wxe(t,"number");return typeof i=="number"&&!isFinite(i)?null:t.toISOString()}})});var yN=I(function(VAr,EN){"use strict";var Kxe=he(),Vxe=xx(),Yxe=TypeError;EN.exports=function(r){if(Kxe(this),r==="string"||r==="default")r="string";else if(r!=="number")throw new Yxe("Incorrect hint");return Vxe(this,r)}});var wN=I(function(){"use strict";var zxe=Se(),jxe=$e(),Xxe=yN(),Zxe=ve(),QN=Zxe("toPrimitive"),bN=Date.prototype;zxe(bN,QN)||jxe(bN,QN,Xxe)});var DN=I(function(){"use strict";var _N=Y(),$xe=$e(),Vv=Date.prototype,SN="Invalid Date",qN="toString",eme=_N(Vv[qN]),rme=_N(Vv.getTime);String(new Date(NaN))!==SN&&$xe(Vv,qN,function(){var e=rme(this);return e===e?eme(this):SN})});var zv=I(function(ZAr,ON){"use strict";var tme=we(),ime=ge(),nme=Y(),ame=Ut(),ome=he(),sme=_e(),RN=Zi(),Yv=zr(),NN=ve(),Ame=NN("asyncDispose"),FN=NN("dispose"),cme=nme([].push),ume=function ume(r,e){if(e==="async-dispose"){var t=Yv(r,Ame);return t!==void 0||(t=Yv(r,FN),t===void 0)?t:function(){var i=this,n=tme("Promise");return new n(function(a){ime(t,i),a(void 0)})}}return Yv(r,FN)},kN=function kN(r,e,t){return arguments.length<3&&!RN(r)&&(t=sme(ume(ome(r),e))),t===void 0?function(){}:ame(t,r)};ON.exports=function(r,e,t,i){var n;if(arguments.length<4){if(RN(e)&&t==="sync-dispose")return;n=kN(e,t)}else n=kN(void 0,t,i);cme(r.stack,n)}});var GN=I(function(){"use strict";var lme=k(),Nd=xe(),fme=we(),TN=_e(),gme=Ht(),PN=$e(),dme=nn(),hme=_r(),MN=ve(),UN=lr(),jv=zv(),Ime=fme("SuppressedError"),pme=ReferenceError,xme=MN("dispose"),mme=MN("toStringTag"),Td="DisposableStack",vme=UN.set,Od=UN.getterFor(Td),Xv="sync-dispose",Mu="disposed",Cme="pending",Rd=function Rd(r){var e=Od(r);if(e.state===Mu)throw new pme(Td+" already disposed");return e},Zv=function Zv(){vme(gme(this,Zs),{type:Td,state:Cme,stack:[]}),Nd||(this.disposed=!1)},Zs=Zv.prototype;dme(Zs,{dispose:function dispose(){var e=Od(this);if(e.state!==Mu){e.state=Mu,Nd||(this.disposed=!0);for(var t=e.stack,i=t.length,n=!1,a;i;){var o=t[--i];t[i]=null;try{o()}catch(s){n?a=new Ime(s,a):(n=!0,a=s)}}if(e.stack=null,n)throw a}},use:function use(e){return jv(Rd(this),e,Xv),e},adopt:function adopt(e,t){var i=Rd(this);return TN(t),jv(i,void 0,Xv,function(){t(e)}),e},defer:function defer(e){var t=Rd(this);TN(e),jv(t,void 0,Xv,e)},move:function move(){var e=Rd(this),t=new Zv;return Od(t).stack=e.stack,e.stack=[],e.state=Mu,Nd||(this.disposed=!0),t}});Nd&&hme(Zs,"disposed",{configurable:!0,get:function get(){return Od(this).state===Mu}});PN(Zs,xme,Zs.dispose,{name:"dispose"});PN(Zs,mme,Td,{nonWritable:!0});lme({global:!0,constructor:!0},{DisposableStack:Zv})});var HN=I(function(){"use strict";var Bme=k(),Uu=Y(),Eme=Ee(),yme=Uu("".charAt),Qme=Uu("".charCodeAt),bme=Uu(/./.exec),wme=Uu(1.1.toString),Sme=Uu("".toUpperCase),_me=/[\w*+\-./@]/,LN=function LN(r,e){for(var t=wme(r,16);t.length=0;i--)if(r[i]!==void 0)try{t=Ave(r[i].iterator,e,t)}catch(n){e="throw",t=n}if(e==="throw")throw t;return t}});var ka=I(function(hcr,x4){"use strict";var cve=ge(),uve=Zr(),lve=Xr(),fve=nn(),gve=ve(),g4=lr(),dve=zr(),hve=Mo().IteratorPrototype,Pd=ba(),Md=rt(),Ive=l4(),pve=gve("toStringTag"),d4="IteratorHelper",h4="WrapForValidIterator",sC="normal",f4="throw",xve=g4.set,I4=function I4(r){var e=g4.getterFor(r?h4:d4);return fve(uve(hve),{next:function next(){var i=e(this);if(r)return i.nextHandler();if(i.done)return Pd(void 0,!0);try{var n=i.nextHandler();return i.returnHandlerResult?n:Pd(n,i.done)}catch(a){throw i.done=!0,a}},return:function _return(){var t=e(this),i=t.iterator;if(t.done=!0,r){var n=dve(i,"return");return n?cve(n,i):Pd(void 0,!0)}if(t.inner)try{Md(t.inner.iterator,sC)}catch(a){return Md(i,f4,a)}if(t.openIters)try{Ive(t.openIters,sC)}catch(a){return Md(i,f4,a)}return i&&Md(i,sC),Pd(void 0,!0)}})},mve=I4(!0),p4=I4(!1);lve(p4,pve,"Iterator Helper");x4.exports=function(r,e,t){var i=function i(a,o){o?(o.iterator=a.iterator,o.next=a.next):o=a,o.type=e?h4:d4,o.returnHandlerResult=!!t,o.nextHandler=r,o.counter=0,o.done=!1,xve(this,o)};return i.prototype=e?mve:p4,i}});var C4=I(function(){"use strict";var vve=k(),m4=ge(),Cve=_e(),v4=he(),Bve=qn(),Eve=ka(),yve=Array,Qve=Eve(function(){for(;;){var r=this.iterator;if(!r){var e=this.nextIterableIndex++,t=this.iterables;if(e>=t.length){this.done=!0;return}var i=t[e];this.iterables[e]=null,r=this.iterator=m4(i.method,i.iterable),this.next=r.next}var n=v4(m4(this.next,r));if(n.done){this.iterator=null,this.next=null;continue}return n.value}});vve({target:"Iterator",stat:!0},{concat:function concat(){for(var e=arguments.length,t=yve(e),i=0;i1?arguments[1]:void 0),g;g=g?g.next:l.first;)for(f(g.value,g.key,this);g&&g.removed;)g=g.previous},has:function has(c){return!!A(this,c)}}),_O(a,t?{get:function get(c){var l=A(this,c);return l&&l.value},set:function set(c,l){return s(this,c===0?0:c,l)}}:{add:function add(c){return s(this,c=c===0?0:c,c)}}),Wu&&WEe(a,"size",{configurable:!0,get:function get(){return o(this).size}}),n},setStrong:function setStrong(r,e,t){var i=e+" Iterator",n=WC(e),a=WC(i);zEe(r,e,function(o,s){DO(this,{type:i,target:o,state:n(o),kind:s,last:null})},function(){for(var o=a(this),s=o.kind,A=o.last;A&&A.removed;)A=A.previous;return!o.target||!(o.last=A=A?A.next:o.state.first)?(o.target=null,Jd(void 0,!0)):Jd(s==="keys"?A.key:s==="values"?A.value:[A.key,A.value],!1)},t?"entries":"values",!t,!0),jEe(e)}}});var RO=I(function(){"use strict";var XEe=Hu(),ZEe=JC();XEe("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},ZEe)});var NO=I(function(){"use strict";RO()});var KC=I(function(dur,OO){"use strict";var Kd=Y(),Ju=Map.prototype;OO.exports={Map:Map,set:Kd(Ju.set),get:Kd(Ju.get),has:Kd(Ju.has),remove:Kd(Ju.delete),proto:Ju}});var MO=I(function(){"use strict";var $Ee=k(),eye=Y(),rye=_e(),tye=hr(),iye=Pr(),Vd=KC(),TO=Je(),nye=W(),PO=Vd.Map,aye=Vd.has,oye=Vd.get,sye=Vd.set,Aye=eye([].push),cye=TO||nye(function(){return PO.groupBy("ab",function(r){return r}).get("a").length!==1});$Ee({target:"Map",stat:!0,forced:TO||cye},{groupBy:function groupBy(e,t){tye(e),rye(t);var i=new PO,n=0;return iye(e,function(a){var o=t(a,n++);aye(i,o)?Aye(oye(i,o),a):sye(i,o,[a])}),i}})});var VC=I(function(pur,UO){"use strict";var uye=Math.log;UO.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:uye(1+t)}});var LO=I(function(){"use strict";var lye=k(),fye=VC(),YC=Math.acosh,gye=Math.log,GO=Math.sqrt,dye=Math.LN2,hye=!YC||Math.floor(YC(Number.MAX_VALUE))!==710||YC(1/0)!==1/0;lye({target:"Math",stat:!0,forced:hye},{acosh:function acosh(e){var t=+e;return t<1?NaN:t>94906265.62425156?gye(t)+dye:fye(t-1+GO(t-1)*GO(t+1))}})});var JO=I(function(){"use strict";var Iye=k(),HO=Math.asinh,pye=Math.log,xye=Math.sqrt;function WO(r){var e=+r;return!isFinite(e)||e===0?e:e<0?-WO(-e):pye(e+xye(e*e+1))}var mye=!(HO&&1/HO(0)>0);Iye({target:"Math",stat:!0,forced:mye},{asinh:WO})});var VO=I(function(){"use strict";var vye=k(),KO=Math.atanh,Cye=Math.log,Bye=!(KO&&1/KO(-0)<0);vye({target:"Math",stat:!0,forced:Bye},{atanh:function atanh(e){var t=+e;return t===0?t:Cye((1+t)/(1-t))/2}})});var YO=I(function(){"use strict";var Eye=k(),yye=vd(),Qye=Math.abs,bye=Math.pow;Eye({target:"Math",stat:!0},{cbrt:function cbrt(e){var t=+e;return yye(t)*bye(Qye(t),1/3)}})});var zO=I(function(){"use strict";var wye=k(),Sye=Math.floor,_ye=Math.log,qye=Math.LOG2E;wye({target:"Math",stat:!0},{clz32:function clz32(e){var t=e>>>0;return t?31-Sye(_ye(t+.5)*qye):32}})});var Vu=I(function(Sur,jO){"use strict";var Ku=Math.expm1,Dye=Math.exp;jO.exports=!Ku||Ku(10)>22025.465794806718||Ku(10)<22025.465794806718||Ku(-2e-17)!==-2e-17?function(e){var t=+e;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:Dye(t)-1}:Ku});var ZO=I(function(){"use strict";var Fye=k(),kye=Vu(),XO=Math.cosh,Rye=Math.abs,zC=Math.E,Nye=!XO||XO(710)===1/0;Fye({target:"Math",stat:!0,forced:Nye},{cosh:function cosh(e){var t=kye(Rye(e)-1)+1;return(t+1/(t*zC*zC))*(zC/2)}})});var e8=I(function(){"use strict";var Oye=k(),$O=Vu();Oye({target:"Math",stat:!0,forced:$O!==Math.expm1},{expm1:$O})});var r8=I(function(){"use strict";var Tye=k(),Pye=uv();Tye({target:"Math",stat:!0},{fround:Pye})});var t8=I(function(){"use strict";var Mye=k(),Uye=cv(),Gye=9765625e-10,Lye=65504,Hye=6103515625e-14;Mye({target:"Math",stat:!0},{f16round:function f16round(e){return Uye(e,Gye,Lye,Hye)}})});var n8=I(function(){"use strict";var Wye=k(),i8=Math.hypot,Jye=Math.abs,Kye=Math.sqrt,Vye=!!i8&&i8(1/0,NaN)!==1/0;Wye({target:"Math",stat:!0,arity:2,forced:Vye},{hypot:function hypot(e,t){for(var i=0,n=0,a=arguments.length,o=0,s,A;n0?(A=s/o,i+=A*A):i+=s;return o===1/0?1/0:o*Kye(i)}})});var o8=I(function(){"use strict";var Yye=k(),zye=W(),a8=Math.imul,jye=zye(function(){return a8(4294967295,5)!==-5||a8.length!==2});Yye({target:"Math",stat:!0,forced:jye},{imul:function imul(e,t){var i=65535,n=+e,a=+t,o=i&n,s=i&a;return 0|o*s+((i&n>>>16)*s+o*(i&a>>>16)<<16>>>0)}})});var jC=I(function(Gur,s8){"use strict";var Xye=Math.log,Zye=Math.LOG10E;s8.exports=Math.log10||function(e){return Xye(e)*Zye}});var A8=I(function(){"use strict";var $ye=k(),eQe=jC();$ye({target:"Math",stat:!0},{log10:eQe})});var c8=I(function(){"use strict";var rQe=k(),tQe=VC();rQe({target:"Math",stat:!0},{log1p:tQe})});var u8=I(function(){"use strict";var iQe=k(),nQe=Sv();iQe({target:"Math",stat:!0},{log2:nQe})});var l8=I(function(){"use strict";var aQe=k(),oQe=vd();aQe({target:"Math",stat:!0},{sign:oQe})});var d8=I(function(){"use strict";var sQe=k(),AQe=W(),f8=Vu(),cQe=Math.abs,g8=Math.exp,uQe=Math.E,lQe=AQe(function(){return Math.sinh(-2e-17)!==-2e-17});sQe({target:"Math",stat:!0,forced:lQe},{sinh:function sinh(e){var t=+e;return cQe(t)<1?(f8(t)-f8(-t))/2:(g8(t-1)-g8(-t-1))*(uQe/2)}})});var m8=I(function(){"use strict";var fQe=k(),gQe=Y(),dQe=Pr(),hQe=RangeError,IQe=TypeError,hi=1/0,pQe=NaN,Wo=Math.abs,eB=Math.pow,h8=gQe([].push),Yu=eB(2,1023),xQe=eB(2,53)-1,I8=Number.MAX_VALUE,p8=eB(2,971),zu={},XC={},ZC={},$C={},x8={},Yd=function Yd(r,e){var t=r+e,i=e-(t-r);return{hi:t,lo:i}};fQe({target:"Math",stat:!0},{sumPrecise:function sumPrecise(e){var t=[],i=0,n=$C;switch(dQe(e,function(v){if(++i>=xQe)throw new hQe("Maximum allowed index exceeded");if(typeof v!="number")throw new IQe("Value is not a number");n!==zu&&(v!==v?n=zu:v===hi?n=n===XC?zu:ZC:v===-hi?n=n===ZC?zu:XC:(v!==0||1/v===hi)&&(n===$C||n===x8)&&(n=x8,h8(t,v)))}),n){case zu:return pQe;case XC:return-hi;case ZC:return hi;case $C:return-0}for(var a=[],o=0,s,A,u,c,l,f,g=0;g=0?a[m]:0;if(m--,Wo(o)>1||o>0&&x>0||o<0&&x<0)return o>0?hi:-hi;if(u=Yd(o*Yu,x/2),c=u.hi,l=u.lo,l*=2,Wo(2*c)===hi)return c>0?c===Yu&&l===-(p8/2)&&m>=0&&a[m]<0?I8:hi:c===-Yu&&l===p8/2&&m>=0&&a[m]>0?-I8:-hi;l!==0&&(a[++m]=l,l=0),c*=2}for(;m>=0&&(u=Yd(c,a[m--]),c=u.hi,l=u.lo,l===0););return m>=0&&(l<0&&a[m]<0||l>0&&a[m]>0)&&(A=l*2,s=c+A,A===s-c&&(c=s)),c}})});var B8=I(function(){"use strict";var mQe=k(),v8=Vu(),C8=Math.exp;mQe({target:"Math",stat:!0},{tanh:function tanh(e){var t=+e,i=v8(t),n=v8(-t);return i===1/0?1:n===1/0?-1:(i-n)/(C8(t)+C8(-t))}})});var E8=I(function(){"use strict";var vQe=Qt();vQe(Math,"Math",!0)});var y8=I(function(){"use strict";var CQe=k(),BQe=Ox();CQe({target:"Math",stat:!0},{trunc:BQe})});var ju=I(function(olr,Q8){"use strict";var EQe=Y();Q8.exports=EQe(1.1.valueOf)});var eA=I(function(slr,b8){"use strict";b8.exports="\t\n \f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029"});var Jo=I(function(Alr,S8){"use strict";var yQe=Y(),QQe=hr(),bQe=Ee(),tB=eA(),w8=yQe("".replace),wQe=RegExp("^["+tB+"]+"),SQe=RegExp("(^|[^"+tB+"])["+tB+"]+$"),rB=function rB(r){return function(e){var t=bQe(QQe(e));return r&1&&(t=w8(t,wQe,"")),r&2&&(t=w8(t,SQe,"$1")),t}};S8.exports={start:rB(1),end:rB(2),trim:rB(3)}});var N8=I(function(){"use strict";var _Qe=k(),iB=Je(),qQe=xe(),D8=te(),nB=fu(),F8=Y(),DQe=Ns(),_8=Se(),FQe=ya(),kQe=pt(),RQe=Ia(),k8=ou(),NQe=W(),OQe=ma().f,TQe=jr().f,PQe=ur().f,MQe=ju(),UQe=Jo().trim,Xu="Number",rA=D8[Xu],q8=nB[Xu],aB=rA.prototype,GQe=D8.TypeError,LQe=F8("".slice),zd=F8("".charCodeAt),HQe=function HQe(r){var e=k8(r,"number");return(typeof e==="undefined"?"undefined":_type_of(e))=="bigint"?e:WQe(e)},WQe=function WQe(r){var e=k8(r,"number"),t,i,n,a,o,s,A,u;if(RQe(e))throw new GQe("Cannot convert a Symbol value to a number");if(typeof e=="string"&&e.length>2){if(e=UQe(e),t=zd(e,0),t===43||t===45){if(i=zd(e,2),i===88||i===120)return NaN}else if(t===48){switch(zd(e,1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+e}for(o=LQe(e,2),s=o.length,A=0;Aa)return NaN;return parseInt(o,n)}}return+e},oB=DQe(Xu,!rA(" 0o1")||!rA("0b1")||rA("+0x1")),JQe=function JQe(r){return kQe(aB,r)&&NQe(function(){MQe(r)})},jd=function jd1(e){var t=arguments.length<1?0:rA(HQe(e));return JQe(this)?FQe(Object(t),this,jd):t};jd.prototype=aB;oB&&!iB&&(aB.constructor=jd);_Qe({global:!0,constructor:!0,wrap:!0,forced:oB},{Number:jd});var R8=function R8(r,e){for(var t=qQe?OQe(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(","),i=0,n;t.length>i;i++)_8(e,n=t[i])&&!_8(r,n)&&PQe(r,n,TQe(e,n))};iB&&q8&&R8(nB[Xu],q8);(oB||iB)&&R8(nB[Xu],rA)});var O8=I(function(){"use strict";var KQe=k();KQe({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})});var P8=I(function(glr,T8){"use strict";var VQe=te(),YQe=VQe.isFinite;T8.exports=Number.isFinite||function(e){return typeof e=="number"&&YQe(e)}});var M8=I(function(){"use strict";var zQe=k(),jQe=P8();zQe({target:"Number",stat:!0},{isFinite:jQe})});var Xd=I(function(Ilr,U8){"use strict";var XQe=me(),ZQe=Math.floor;U8.exports=Number.isInteger||function(e){return!XQe(e)&&isFinite(e)&&ZQe(e)===e}});var G8=I(function(){"use strict";var $Qe=k(),ebe=Xd();$Qe({target:"Number",stat:!0},{isInteger:ebe})});var L8=I(function(){"use strict";var rbe=k();rbe({target:"Number",stat:!0},{isNaN:function isNaN1(e){return e!==e}})});var H8=I(function(){"use strict";var tbe=k(),ibe=Xd(),nbe=Math.abs;tbe({target:"Number",stat:!0},{isSafeInteger:function isSafeInteger(e){return ibe(e)&&nbe(e)<=9007199254740991}})});var W8=I(function(){"use strict";var abe=k();abe({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})});var J8=I(function(){"use strict";var obe=k();obe({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})});var sB=I(function(wlr,z8){"use strict";var Y8=te(),sbe=W(),Abe=Y(),cbe=Ee(),ube=Jo().trim,lbe=eA(),fbe=Abe("".charAt),Zd=Y8.parseFloat,K8=Y8.Symbol,V8=K8&&K8.iterator,gbe=1/Zd(lbe+"-0")!==-1/0||V8&&!sbe(function(){Zd(Object(V8))});z8.exports=gbe?function(e){var t=ube(cbe(e)),i=Zd(t);return i===0&&fbe(t,0)==="-"?-0:i}:Zd});var X8=I(function(){"use strict";var dbe=k(),j8=sB();dbe({target:"Number",stat:!0,forced:Number.parseFloat!==j8},{parseFloat:j8})});var AB=I(function(qlr,iT){"use strict";var rT=te(),hbe=W(),Ibe=Y(),pbe=Ee(),xbe=Jo().trim,Z8=eA(),Zu=rT.parseInt,$8=rT.Symbol,eT=$8&&$8.iterator,tT=/^[+-]?0x/i,mbe=Ibe(tT.exec),vbe=Zu(Z8+"08")!==8||Zu(Z8+"0x16")!==22||eT&&!hbe(function(){Zu(Object(eT))});iT.exports=vbe?function(e,t){var i=xbe(pbe(e));return Zu(i,t>>>0||(mbe(tT,i)?16:10))}:Zu});var aT=I(function(){"use strict";var Cbe=k(),nT=AB();Cbe({target:"Number",stat:!0,forced:Number.parseInt!==nT},{parseInt:nT})});var uT=I(function(){"use strict";var Bbe=k(),uB=Y(),Ebe=Br(),ybe=ju(),Qbe=Tu(),bbe=jC(),cB=W(),wbe=RangeError,oT=String,Sbe=isFinite,_be=Math.abs,qbe=Math.floor,sT=Math.pow,Dbe=Math.round,An=uB(1.1.toExponential),Fbe=uB(Qbe),AT=uB("".slice),cT=An(-69e-12,4)==="-6.9000e-11"&&An(1.255,2)==="1.25e+0"&&An(12345,3)==="1.235e+4"&&An(25,0)==="3e+1",kbe=function kbe(){return cB(function(){An(1,1/0)})&&cB(function(){An(1,-1/0)})},Rbe=function Rbe(){return!cB(function(){An(1/0,1/0),An(NaN,1/0)})},Nbe=!cT||!kbe()||!Rbe();Bbe({target:"Number",proto:!0,forced:Nbe},{toExponential:function toExponential(e){var t=ybe(this);if(e===void 0)return An(t);var i=Ebe(e);if(!Sbe(t))return String(t);if(i<0||i>20)throw new wbe("Incorrect fraction digits");if(cT)return An(t,i);var n="",a,o,s,A;if(t<0&&(n="-",t=-t),t===0)o=0,a=Fbe("0",i+1);else{var u=bbe(t);o=qbe(u);var c=sT(10,o-i),l=Dbe(t/c);2*t>=(2*l+1)*c&&(l+=1),l>=sT(10,i+1)&&(l/=10,o+=1),a=oT(l)}return i!==0&&(a=AT(a,0,1)+"."+AT(a,1)),o===0?(s="+",A="0"):(s=o>0?"+":"-",A=oT(_be(o))),a+="e"+s+A,n+a}})});var IT=I(function(){"use strict";var Obe=k(),gB=Y(),Tbe=Br(),Pbe=ju(),Mbe=Tu(),lT=W(),Ube=RangeError,dT=String,hT=Math.floor,fB=gB(Mbe),fT=gB("".slice),$u=gB(1.1.toFixed),iA=function iA1(r,e,t){return e===0?t:e%2===1?iA(r,e-1,t*r):iA(r*r,e/2,t)},Gbe=function Gbe(r){for(var e=0,t=r;t>=4096;)e+=12,t/=4096;for(;t>=2;)e+=1,t/=2;return e},tA=function tA(r,e,t){for(var i=-1,n=t;++i<6;)n+=e*r[i],r[i]=n%1e7,n=hT(n/1e7)},lB=function lB(r,e){for(var t=6,i=0;--t>=0;)i+=r[t],r[t]=hT(i/e),i=i%e*1e7},gT=function gT(r){for(var e=6,t="";--e>=0;)if(t!==""||e===0||r[e]!==0){var i=dT(r[e]);t=t===""?i:t+fB("0",7-i.length)+i}return t},Lbe=lT(function(){return $u(8e-5,3)!=="0.000"||$u(.9,0)!=="1"||$u(1.255,2)!=="1.25"||$u(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!lT(function(){$u({})});Obe({target:"Number",proto:!0,forced:Lbe},{toFixed:function toFixed(e){var t=Pbe(this),i=Tbe(e),n=[0,0,0,0,0,0],a="",o="0",s,A,u,c;if(i<0||i>20)throw new Ube("Incorrect fraction digits");if(t!==t)return"NaN";if(t<=-1e21||t>=1e21)return dT(t);if(t<0&&(a="-",t=-t),t>1e-21)if(s=Gbe(t*iA(2,69,1))-69,A=s<0?t*iA(2,-s,1):t/iA(2,s,1),A*=4503599627370496,s=52-s,s>0){for(tA(n,0,A),u=i;u>=7;)tA(n,1e7,0),u-=7;for(tA(n,iA(10,u,1),0),u=s-1;u>=23;)lB(n,1<<23),u-=23;lB(n,1<0?(c=o.length,o=a+(c<=i?"0."+fB("0",i-c)+o:fT(o,0,c-i)+"."+fT(o,c-i))):o=a+o,o}})});var mT=I(function(){"use strict";var Hbe=k(),Wbe=Y(),pT=W(),xT=ju(),$d=Wbe(1.1.toPrecision),Jbe=pT(function(){return $d(1,void 0)!=="1"})||!pT(function(){$d({})});Hbe({target:"Number",proto:!0,forced:Jbe},{toPrecision:function toPrecision(e){return e===void 0?$d(xT(this)):$d(xT(this),e)}})});var hB=I(function(Mlr,BT){"use strict";var vT=xe(),Kbe=Y(),Vbe=ge(),Ybe=W(),dB=Os(),zbe=uu(),jbe=nu(),Xbe=He(),Zbe=bo(),nA=Object.assign,CT=Object.defineProperty,$be=Kbe([].concat);BT.exports=!nA||Ybe(function(){if(vT&&nA({b:1},nA(CT({},"a",{enumerable:!0,get:function get(){CT(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var r={},e={},t=Symbol("assign detection"),i="abcdefghijklmnopqrst";return r[t]=7,i.split("").forEach(function(n){e[n]=n}),nA({},r)[t]!==7||dB(nA({},e)).join("")!==i})?function(e,t){for(var i=Xbe(e),n=arguments.length,a=1,o=zbe.f,s=jbe.f;n>a;)for(var A=Zbe(arguments[a++]),u=o?$be(dB(A),o(A)):dB(A),c=u.length,l=0,f;c>l;)f=u[l++],(!vT||Vbe(s,A,f))&&(i[f]=A[f]);return i}:nA});var yT=I(function(){"use strict";var ewe=k(),ET=hB();ewe({target:"Object",stat:!0,arity:2,forced:Object.assign!==ET},{assign:ET})});var QT=I(function(){"use strict";var rwe=k(),twe=xe(),iwe=Zr();rwe({target:"Object",stat:!0,sham:!twe},{create:iwe})});var el=I(function(Wlr,wT){"use strict";var nwe=Je(),awe=te(),owe=W(),bT=md();wT.exports=nwe||!owe(function(){if(!(bT&&bT<535)){var r=Math.random();__defineSetter__.call(null,r,function(){}),delete awe[r]}})});var ST=I(function(){"use strict";var swe=k(),Awe=xe(),cwe=el(),uwe=_e(),lwe=He(),fwe=ur();Awe&&swe({target:"Object",proto:!0,forced:cwe},{__defineGetter__:function __defineGetter__(e,t){fwe.f(lwe(this),e,{get:uwe(t),enumerable:!0,configurable:!0})}})});var qT=I(function(){"use strict";var gwe=k(),dwe=xe(),_T=Ng().f;gwe({target:"Object",stat:!0,forced:Object.defineProperties!==_T,sham:!dwe},{defineProperties:_T})});var FT=I(function(){"use strict";var hwe=k(),Iwe=xe(),DT=ur().f;hwe({target:"Object",stat:!0,forced:Object.defineProperty!==DT,sham:!Iwe},{defineProperty:DT})});var kT=I(function(){"use strict";var pwe=k(),xwe=xe(),mwe=el(),vwe=_e(),Cwe=He(),Bwe=ur();xwe&&pwe({target:"Object",proto:!0,forced:mwe},{__defineSetter__:function __defineSetter__1(e,t){Bwe.f(Cwe(this),e,{set:vwe(t),enumerable:!0,configurable:!0})}})});var IB=I(function($lr,PT){"use strict";var NT=xe(),Ewe=W(),OT=Y(),ywe=xt(),Qwe=Os(),bwe=Wr(),wwe=nu().f,TT=OT(wwe),Swe=OT([].push),_we=NT&&Ewe(function(){var r=Object.create(null);return r[2]=2,!TT(r,2)}),RT=function RT(r){return function(e){for(var t=bwe(e),i=Qwe(t),n=_we&&ywe(t)===null,a=i.length,o=0,s=[],A;a>o;)A=i[o++],(!NT||(n?A in t:TT(t,A)))&&Swe(s,r?[A,t[A]]:t[A]);return s}};PT.exports={entries:RT(!0),values:RT(!1)}});var MT=I(function(){"use strict";var qwe=k(),Dwe=IB().entries;qwe({target:"Object",stat:!0},{entries:function entries(e){return Dwe(e)}})});var UT=I(function(){"use strict";var Fwe=k(),kwe=Ra(),Rwe=W(),Nwe=me(),Owe=Na().onFreeze,pB=Object.freeze,Twe=Rwe(function(){pB(1)});Fwe({target:"Object",stat:!0,forced:Twe,sham:!kwe},{freeze:function freeze(e){return pB&&Nwe(e)?pB(Owe(e)):e}})});var GT=I(function(){"use strict";var Pwe=k(),Mwe=Pr(),Uwe=ri();Pwe({target:"Object",stat:!0},{fromEntries:function fromEntries(e){var t={};return Mwe(e,function(i,n){Uwe(t,i,n)},{AS_ENTRIES:!0}),t}})});var WT=I(function(){"use strict";var Gwe=k(),Lwe=W(),Hwe=Wr(),LT=jr().f,HT=xe(),Wwe=!HT||Lwe(function(){LT(1)});Gwe({target:"Object",stat:!0,forced:Wwe,sham:!HT},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){return LT(Hwe(e),t)}})});var JT=I(function(){"use strict";var Jwe=k(),Kwe=xe(),Vwe=Dg(),Ywe=Wr(),zwe=jr(),jwe=ri();Jwe({target:"Object",stat:!0,sham:!Kwe},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(e){for(var t=Ywe(e),i=zwe.f,n=Vwe(t),a={},o=0,s,A;n.length>o;)A=i(t,s=n[o++]),A!==void 0&&jwe(a,s,A);return a}})});var KT=I(function(){"use strict";var Xwe=k(),Zwe=W(),$we=Pg().f,e1e=Zwe(function(){return!Object.getOwnPropertyNames(1)});Xwe({target:"Object",stat:!0,forced:e1e},{getOwnPropertyNames:$we})});var YT=I(function(){"use strict";var r1e=k(),t1e=W(),i1e=He(),VT=xt(),n1e=ed(),a1e=t1e(function(){VT(1)});r1e({target:"Object",stat:!0,forced:a1e,sham:!n1e},{getPrototypeOf:function getPrototypeOf(e){return VT(i1e(e))}})});var jT=I(function(){"use strict";var o1e=k(),s1e=ri(),A1e=we(),c1e=Y(),u1e=_e(),l1e=hr(),f1e=wn(),g1e=Pr(),d1e=W(),zT=Object.groupBy,h1e=A1e("Object","create"),I1e=c1e([].push),p1e=!zT||d1e(function(){return zT("ab",function(r){return r}).a.length!==1});o1e({target:"Object",stat:!0,forced:p1e},{groupBy:function groupBy(e,t){l1e(e),u1e(t);var i=h1e(null),n=0;return g1e(e,function(a){var o=f1e(t(a,n++));o in i?I1e(i[o],a):s1e(i,o,[a])}),i}})});var XT=I(function(){"use strict";var x1e=k(),m1e=Se();x1e({target:"Object",stat:!0},{hasOwn:m1e})});var xB=I(function(xfr,ZT){"use strict";ZT.exports=Object.is||function(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}});var $T=I(function(){"use strict";var v1e=k(),C1e=xB();v1e({target:"Object",stat:!0},{is:C1e})});var r5=I(function(){"use strict";var B1e=k(),e5=Wd();B1e({target:"Object",stat:!0,forced:Object.isExtensible!==e5},{isExtensible:e5})});var i5=I(function(){"use strict";var E1e=k(),y1e=W(),Q1e=me(),b1e=st(),t5=Ld(),mB=Object.isFrozen,w1e=t5||y1e(function(){mB(1)});E1e({target:"Object",stat:!0,forced:w1e},{isFrozen:function isFrozen(e){return!Q1e(e)||t5&&b1e(e)==="ArrayBuffer"?!0:mB?mB(e):!1}})});var a5=I(function(){"use strict";var S1e=k(),_1e=W(),q1e=me(),D1e=st(),n5=Ld(),vB=Object.isSealed,F1e=n5||_1e(function(){vB(1)});S1e({target:"Object",stat:!0,forced:F1e},{isSealed:function isSealed(e){return!q1e(e)||n5&&D1e(e)==="ArrayBuffer"?!0:vB?vB(e):!1}})});var s5=I(function(){"use strict";var k1e=k(),R1e=He(),o5=Os(),N1e=W(),O1e=N1e(function(){o5(1)});k1e({target:"Object",stat:!0,forced:O1e},{keys:function keys(e){return o5(R1e(e))}})});var A5=I(function(){"use strict";var T1e=k(),P1e=xe(),M1e=el(),U1e=He(),G1e=wn(),L1e=xt(),H1e=jr().f;P1e&&T1e({target:"Object",proto:!0,forced:M1e},{__lookupGetter__:function __lookupGetter__(e){var t=U1e(this),i=G1e(e),n;do if(n=H1e(t,i))return n.get;while(t=L1e(t))}})});var c5=I(function(){"use strict";var W1e=k(),J1e=xe(),K1e=el(),V1e=He(),Y1e=wn(),z1e=xt(),j1e=jr().f;J1e&&W1e({target:"Object",proto:!0,forced:K1e},{__lookupSetter__:function __lookupSetter__(e){var t=V1e(this),i=Y1e(e),n;do if(n=j1e(t,i))return n.set;while(t=z1e(t))}})});var u5=I(function(){"use strict";var X1e=k(),Z1e=me(),$1e=Na().onFreeze,eSe=Ra(),rSe=W(),CB=Object.preventExtensions,tSe=rSe(function(){CB(1)});X1e({target:"Object",stat:!0,forced:tSe,sham:!eSe},{preventExtensions:function preventExtensions(e){return CB&&Z1e(e)?CB($1e(e)):e}})});var h5=I(function(){"use strict";var iSe=xe(),nSe=_r(),aSe=me(),oSe=xm(),sSe=He(),ASe=hr(),l5=Object.getPrototypeOf,f5=Object.setPrototypeOf,g5=Object.prototype,d5="__proto__";if(iSe&&l5&&f5&&!(d5 in g5))try{nSe(g5,d5,{configurable:!0,get:function get(){return l5(sSe(this))},set:function set(e){var t=ASe(this);oSe(e)&&aSe(t)&&f5(t,e)}})}catch(r){}});var I5=I(function(){"use strict";var cSe=k(),uSe=me(),lSe=Na().onFreeze,fSe=Ra(),gSe=W(),BB=Object.seal,dSe=gSe(function(){BB(1)});cSe({target:"Object",stat:!0,forced:dSe,sham:!fSe},{seal:function seal(e){return BB&&uSe(e)?BB(lSe(e)):e}})});var p5=I(function(){"use strict";var hSe=k(),ISe=di();hSe({target:"Object",stat:!0},{setPrototypeOf:ISe})});var m5=I(function(Gfr,x5){"use strict";var pSe=kg(),xSe=Mt();x5.exports=pSe?{}.toString:function(){return"[object "+xSe(this)+"]"}});var v5=I(function(){"use strict";var mSe=kg(),vSe=$e(),CSe=m5();mSe||vSe(Object.prototype,"toString",CSe,{unsafe:!0})});var C5=I(function(){"use strict";var BSe=k(),ESe=IB().values;BSe({target:"Object",stat:!0},{values:function values(e){return ESe(e)}})});var E5=I(function(){"use strict";var ySe=k(),B5=sB();ySe({global:!0,forced:parseFloat!==B5},{parseFloat:B5})});var Q5=I(function(){"use strict";var QSe=k(),y5=AB();QSe({global:!0,forced:parseInt!==y5},{parseInt:y5})});var eh=I(function(jfr,b5){"use strict";var bSe=Ca(),wSe=pa(),SSe=TypeError;b5.exports=function(r){if(bSe(r))return r;throw new SSe(wSe(r)+" is not a constructor")}});var rl=I(function(Xfr,S5){"use strict";var w5=he(),_Se=eh(),qSe=Zi(),DSe=ve(),FSe=DSe("species");S5.exports=function(r,e){var t=w5(r).constructor,i;return t===void 0||qSe(i=w5(t)[FSe])?e:_Se(i)}});var ii=I(function(Zfr,_5){"use strict";var kSe=TypeError;_5.exports=function(r,e){if(r1?T3e(arguments,1):[],t=P3e.f(this),i=zP(function(){return O3e(M3e(r),void 0,e)});return(i.error?t.reject:t.resolve)(i.value),t.promise}})});var XP=I(function(){"use strict";var G3e=k(),L3e=cn();G3e({target:"Promise",stat:!0},{withResolvers:function withResolvers(){var e=L3e.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})});var iE=I(function(Tgr,aM){"use strict";var tM=te(),iM=au(),nM=ke(),H3e=Zr(),uh=xt(),W3e=$e(),J3e=ve(),K3e=Je(),ZP="USE_FUNCTION_CONSTRUCTOR",$P=J3e("asyncIterator"),eM=tM.AsyncIterator,rM=iM.AsyncIteratorPrototype,un,tE;if(rM)un=rM;else if(nM(eM))un=eM.prototype;else if(iM[ZP]||tM[ZP])try{tE=uh(uh(uh(Function("return async function*(){}()")()))),uh(tE)===Object.prototype&&(un=tE)}catch(r){}un?K3e&&(un=H3e(un)):un={};nM(un[$P])||W3e(un,$P,function(){return this});aM.exports=un});var aE=I(function(Pgr,dM){"use strict";var oM=ge(),sM=he(),V3e=Zr(),Y3e=zr(),z3e=nn(),uM=lr(),j3e=rt(),X3e=we(),Z3e=iE(),lM=ba(),nE=X3e("Promise"),fM="AsyncFromSyncIterator",$3e=uM.set,AM=uM.getterFor(fM),cM=function cM(r,e,t,i,n){var a=r.done;nE.resolve(r.value).then(function(o){e(lM(o,a))},function(o){if(!a&&n)try{j3e(i,"throw",o)}catch(s){o=s}t(o)})},gM=function gM(e){e.type=fM,$3e(this,e)};gM.prototype=z3e(V3e(Z3e),{next:function next(){var e=AM(this);return new nE(function(t,i){var n=sM(oM(e.next,e.iterator));cM(n,t,i,e.iterator,!0)})},return:function _return(){var r=AM(this).iterator;return new nE(function(e,t){var i=Y3e(r,"return");if(i===void 0)return e(lM(void 0,!0));var n=sM(oM(i,r));cM(n,e,t,r)})}});dM.exports=gM});var IM=I(function(Mgr,hM){"use strict";var eqe=ge(),rqe=aE(),tqe=he(),iqe=To(),nqe=ct(),aqe=zr(),oqe=ve(),sqe=oqe("asyncIterator");hM.exports=function(r,e){var t=arguments.length<2?aqe(r,sqe):e;return t?tqe(eqe(t,r)):new rqe(nqe(iqe(r)))}});var xM=I(function(Ugr,pM){"use strict";var Aqe=ge(),cqe=we(),uqe=zr();pM.exports=function(r,e,t,i){try{var n=uqe(r,"return");if(n)return cqe("Promise").resolve(Aqe(n,r)).then(function(){e(t)},function(a){i(a)})}catch(a){return i(a)}e(t)}});var vM=I(function(Ggr,mM){"use strict";var lqe=ge(),fqe=_e(),oE=he(),gqe=me(),dqe=Qa(),hqe=we(),Iqe=ct(),sE=xM(),cl=function cl(r){var e=r===0,t=r===1,i=r===2,n=r===3;return function(a,o,s){oE(a);var A=o!==void 0;(A||!e)&&fqe(o);var u=Iqe(a),c=hqe("Promise"),l=u.iterator,f=u.next,g=0;return new c(function(h,d){var p=function p(x){sE(l,d,x,d)},m=function m1(){try{if(A)try{dqe(g)}catch(x){p(x)}c.resolve(oE(lqe(f,l))).then(function(x){try{if(oE(x).done)e?(s.length=g,h(s)):h(n?!1:i||void 0);else{var v=x.value;try{if(A){var E=o(v,g),S=function S(B){if(t)m();else if(i)B?m():sE(l,h,!1,d);else if(e)try{s[g++]=B,m()}catch(b){p(b)}else B?sE(l,h,n||v,d):m()};gqe(E)?c.resolve(E).then(S,p):S(E)}else s[g++]=v,m()}catch(B){p(B)}}}catch(B){d(B)}},d)}catch(x){d(x)}};m()})}};mM.exports={toArray:cl(0),forEach:cl(1),every:cl(2),some:cl(3),find:cl(4)}});var QM=I(function(Lgr,yM){"use strict";var pqe=Ut(),CM=Y(),xqe=He(),mqe=Ca(),vqe=IM(),Cqe=To(),Bqe=ct(),Eqe=qn(),yqe=zr(),Qqe=we(),bqe=ov(),wqe=ve(),Sqe=aE(),_qe=vM().toArray,qqe=wqe("asyncIterator"),BM=CM(bqe("Array","values")),Dqe=CM(BM([]).next),Fqe=function Fqe(){return new EM(this)},EM=function EM(r){this.iterator=BM(r)};EM.prototype.next=function(){return Dqe(this.iterator)};yM.exports=function(e){var t=this,i=arguments.length,n=i>1?arguments[1]:void 0,a=i>2?arguments[2]:void 0;return new(Qqe("Promise"))(function(o){var s=xqe(e);n!==void 0&&(n=pqe(n,a));var A=yqe(s,qqe),u=A?void 0:Eqe(s)||Fqe,c=mqe(t)?new t:[],l=A?vqe(s,A):new Sqe(Bqe(Cqe(s,u)));o(_qe(l,n,c))})}});var wM=I(function(){"use strict";var kqe=k(),Rqe=QM(),Nqe=W(),bM=Array.fromAsync,Oqe=!bM||Nqe(function(){var r=0;return bM.call(function(){return r++,[]},{length:0}),r!==1});kqe({target:"Array",stat:!0,forced:Oqe},{fromAsync:Rqe})});var NM=I(function(){"use strict";var Tqe=k(),fh=xe(),DM=we(),SM=_e(),Pqe=Ht(),FM=$e(),Mqe=nn(),Uqe=_r(),kM=ve(),RM=lr(),AE=zv(),_M=Ri(),qM=DM("Promise"),Gqe=DM("SuppressedError"),Lqe=ReferenceError,Hqe=kM("asyncDispose"),Wqe=kM("toStringTag"),dh="AsyncDisposableStack",Jqe=RM.set,gh=RM.getterFor(dh),cE="async-dispose",ul="disposed",Kqe="pending",lh=function lh(r){var e=gh(r);if(e.state===ul)throw new Lqe(dh+" already disposed");return e},uE=function uE(){Jqe(Pqe(this,fA),{type:dh,state:Kqe,stack:[]}),fh||(this.disposed=!1)},fA=uE.prototype;Mqe(fA,{disposeAsync:function disposeAsync(){var e=this;return new qM(function(t,i){var n=gh(e);if(n.state===ul)return t(void 0);n.state=ul,fh||(e.disposed=!0);var a=n.stack,o=a.length,s=!1,A,u=function u(l){s?A=new Gqe(l,A):(s=!0,A=l),c()},c=function c2(){if(o){var l=a[--o];a[o]=null;try{qM.resolve(l()).then(c,u)}catch(f){u(f)}}else n.stack=null,s?i(A):t(void 0)};c()})},use:function use(e){return AE(lh(this),e,cE),e},adopt:function adopt(e,t){var i=lh(this);return SM(t),AE(i,void 0,cE,function(){return t(e)}),e},defer:function defer(e){var t=lh(this);SM(e),AE(t,void 0,cE,e)},move:function move(){var e=lh(this),t=new uE;return gh(t).stack=e.stack,e.stack=[],e.state=ul,fh||(this.disposed=!0),t}});fh&&Uqe(fA,"disposed",{configurable:!0,get:function get(){return gh(this).state===ul}});FM(fA,Hqe,fA.disposeAsync,{name:"disposeAsync"});FM(fA,Wqe,dh,{nonWritable:!0});var Vqe=_M&&_M<136;Tqe({global:!0,constructor:!0,forced:Vqe},{AsyncDisposableStack:uE})});var MM=I(function(){"use strict";var Yqe=ge(),zqe=$e(),jqe=we(),Xqe=zr(),Zqe=Se(),$qe=ve(),OM=iE(),TM=$qe("asyncDispose"),PM=jqe("Promise");Zqe(OM,TM)||zqe(OM,TM,function(){var r=this;return new PM(function(e,t){var i=Xqe(r,"return");i?PM.resolve(Yqe(i,r)).then(function(){e(void 0)},t):e(void 0)})})});var UM=I(function(){"use strict";var eDe=k(),rDe=Lt(),tDe=_e(),iDe=he(),nDe=W(),aDe=!nDe(function(){Reflect.apply(function(){})});eDe({target:"Reflect",stat:!0,forced:aDe},{apply:function apply(e,t,i){return rDe(tDe(e),t,iDe(i))}})});var VM=I(function(){"use strict";var oDe=k(),sDe=we(),lE=Lt(),ADe=eC(),GM=eh(),cDe=he(),LM=me(),uDe=Zr(),WM=W(),fE=sDe("Reflect","construct"),lDe=Object.prototype,fDe=[].push,JM=WM(function(){function r(){}return!_instanceof(fE(function(){},[],r),r)}),KM=!WM(function(){fE(function(){})}),HM=JM||KM;oDe({target:"Reflect",stat:!0,forced:HM,sham:HM},{construct:function construct(e,t){GM(e),cDe(t);var i=arguments.length<3?e:GM(arguments[2]);if(KM&&!JM)return fE(e,t,i);if(e===i){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return lE(fDe,n,t),new(lE(ADe,e,n))}var a=i.prototype,o=uDe(LM(a)?a:lDe),s=lE(e,o,t);return LM(s)?s:o}})});var jM=I(function(){"use strict";var gDe=k(),dDe=xe(),YM=he(),hDe=wn(),zM=ur(),IDe=W(),pDe=IDe(function(){Reflect.defineProperty(zM.f({},1,{value:1}),1,{value:2})});gDe({target:"Reflect",stat:!0,forced:pDe,sham:!dDe},{defineProperty:function defineProperty(e,t,i){YM(e);var n=hDe(t);YM(i);try{return zM.f(e,n,i),!0}catch(a){return!1}}})});var XM=I(function(){"use strict";var xDe=k(),mDe=he(),vDe=jr().f;xDe({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(e,t){var i=vDe(mDe(e),t);return i&&!i.configurable?!1:delete e[t]}})});var gE=I(function(idr,$M){"use strict";var ZM=Se();$M.exports=function(r){return r!==void 0&&(ZM(r,"value")||ZM(r,"writable"))}});var rU=I(function(){"use strict";var CDe=k(),BDe=ge(),EDe=me(),yDe=he(),QDe=gE(),bDe=jr(),wDe=xt();function eU(r,e){var t=arguments.length<3?r:arguments[2],i,n;if(yDe(r)===t)return r[e];if(i=bDe.f(r,e),i)return QDe(i)?i.value:i.get===void 0?void 0:BDe(i.get,t);if(EDe(n=wDe(r)))return eU(n,e,t)}CDe({target:"Reflect",stat:!0},{get:eU})});var tU=I(function(){"use strict";var SDe=k(),_De=xe(),qDe=he(),DDe=jr();SDe({target:"Reflect",stat:!0,sham:!_De},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){return DDe.f(qDe(e),t)}})});var iU=I(function(){"use strict";var FDe=k(),kDe=he(),RDe=xt(),NDe=ed();FDe({target:"Reflect",stat:!0,sham:!NDe},{getPrototypeOf:function getPrototypeOf(e){return RDe(kDe(e))}})});var nU=I(function(){"use strict";var ODe=k();ODe({target:"Reflect",stat:!0},{has:function has(e,t){return t in e}})});var aU=I(function(){"use strict";var TDe=k(),PDe=he(),MDe=Wd();TDe({target:"Reflect",stat:!0},{isExtensible:function isExtensible(e){return PDe(e),MDe(e)}})});var oU=I(function(){"use strict";var UDe=k(),GDe=Dg();UDe({target:"Reflect",stat:!0},{ownKeys:GDe})});var sU=I(function(){"use strict";var LDe=k(),HDe=we(),WDe=he(),JDe=Ra();LDe({target:"Reflect",stat:!0,sham:!JDe},{preventExtensions:function preventExtensions(e){WDe(e);try{var t=HDe("Object","preventExtensions");return t&&t(e),!0}catch(i){return!1}}})});var fU=I(function(){"use strict";var KDe=k(),VDe=ge(),YDe=he(),AU=me(),zDe=gE(),jDe=W(),dE=ur(),cU=jr(),XDe=xt(),uU=Tt();function lU(r,e,t){var i=arguments.length<4?r:arguments[3],n=cU.f(YDe(r),e),a,o,s;if(!n){if(AU(o=XDe(r)))return lU(o,e,t,i);n=uU(0)}if(zDe(n)){if(n.writable===!1||!AU(i))return!1;if(a=cU.f(i,e)){if(a.get||a.set||a.writable===!1)return!1;a.value=t,dE.f(i,e,a)}else dE.f(i,e,uU(0,t))}else{if(s=n.set,s===void 0)return!1;VDe(s,i,t)}return!0}var ZDe=jDe(function(){var r=function r(){},e=dE.f(new r,"a",{configurable:!0});return Reflect.set(r.prototype,"a",1,e)!==!1});KDe({target:"Reflect",stat:!0,forced:ZDe},{set:lU})});var dU=I(function(){"use strict";var $De=k(),eFe=he(),rFe=mm(),gU=di();gU&&$De({target:"Reflect",stat:!0},{setPrototypeOf:function setPrototypeOf(e,t){eFe(e),rFe(t);try{return gU(e,t),!0}catch(i){return!1}}})});var hU=I(function(){"use strict";var tFe=k(),iFe=te(),nFe=Qt();tFe({global:!0},{Reflect:{}});nFe(iFe.Reflect,"Reflect",!0)});var ll=I(function(ydr,IU){"use strict";var aFe=me(),oFe=st(),sFe=ve(),AFe=sFe("match");IU.exports=function(r){var e;return aFe(r)&&((e=r[AFe])!==void 0?!!e:oFe(r)==="RegExp")}});var hE=I(function(Qdr,xU){"use strict";var cFe=te(),uFe=W(),pU=cFe.RegExp,lFe=!uFe(function(){var r=!0;try{pU(".","d")}catch(A){r=!1}var e={},t="",i=r?"dgimsy":"gimsy",n=function n(A,u){Object.defineProperty(e,A,{get:function get(){return t+=u,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};r&&(a.hasIndices="d");for(var o in a)n(o,a[o]);var s=Object.getOwnPropertyDescriptor(pU.prototype,"flags").get.call(e);return s!==i||t!==i});xU.exports={correct:lFe}});var hh=I(function(bdr,mU){"use strict";var fFe=he();mU.exports=function(){var r=fFe(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}});var Ta=I(function(wdr,CU){"use strict";var gFe=ge(),dFe=Se(),hFe=pt(),vU=hE(),IFe=hh(),pFe=RegExp.prototype;CU.exports=vU.correct?function(r){return r.flags}:function(r){return!vU.correct&&hFe(pFe,r)&&!dFe(r,"flags")?gFe(IFe,r):r.flags}});var fl=I(function(Sdr,BU){"use strict";var IE=W(),xFe=te(),pE=xFe.RegExp,xE=IE(function(){var r=pE("a","y");return r.lastIndex=2,r.exec("abcd")!==null}),mFe=xE||IE(function(){return!pE("a","y").sticky}),vFe=xE||IE(function(){var r=pE("^r","gy");return r.lastIndex=2,r.exec("str")!==null});BU.exports={BROKEN_CARET:vFe,MISSED_STICKY:mFe,UNSUPPORTED_Y:xE}});var Ih=I(function(_dr,EU){"use strict";var CFe=W(),BFe=te(),EFe=BFe.RegExp;EU.exports=CFe(function(){var r=EFe(".","s");return!(r.dotAll&&r.test("\n")&&r.flags==="s")})});var mE=I(function(qdr,yU){"use strict";var yFe=W(),QFe=te(),bFe=QFe.RegExp;yU.exports=yFe(function(){var r=bFe("(?b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$c")!=="bc"})});var RU=I(function(){"use strict";var wFe=xe(),EE=te(),gl=Y(),SFe=Ns(),_Fe=ya(),qFe=Xr(),DFe=Zr(),FFe=ma().f,QU=pt(),kFe=ll(),bU=Ee(),RFe=Ta(),qU=fl(),NFe=vm(),OFe=$e(),TFe=W(),PFe=Se(),MFe=lr().enforce,UFe=Go(),GFe=ve(),DU=Ih(),FU=mE(),LFe=GFe("match"),Ma=EE.RegExp,gA=Ma.prototype,HFe=EE.SyntaxError,WFe=gl(gA.exec),ph=gl("".charAt),wU=gl("".replace),SU=gl("".indexOf),_U=gl("".slice),JFe=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,jo=/a/g,vE=/a/g,KFe=new Ma(jo)!==jo,kU=qU.MISSED_STICKY,VFe=qU.UNSUPPORTED_Y,YFe=wFe&&(!KFe||kU||DU||FU||TFe(function(){return vE[LFe]=!1,Ma(jo)!==jo||Ma(vE)===vE||String(Ma(jo,"i"))!=="/a/i"})),zFe=function zFe(r){for(var e=r.length,t=0,i="",n=!1,a;t<=e;t++){if(a=ph(r,t),a==="\\"){i+=a+ph(r,++t);continue}!n&&a==="."?i+="[\\s\\S]":(a==="["?n=!0:a==="]"&&(n=!1),i+=a)}return i},jFe=function jFe(r){for(var e=r.length,t=0,i="",n=[],a=DFe(null),o=!1,s=!1,A=0,u="",c;t<=e;t++){if(c=ph(r,t),c==="\\")c+=ph(r,++t);else if(c==="]")o=!1;else if(!o)switch(!0){case c==="[":o=!0;break;case c==="(":if(i+=c,_U(r,t+1,t+3)==="?:")continue;WFe(JFe,_U(r,t+1))&&(t+=2,s=!0),A++;continue;case c===">"&&s:if(u===""||PFe(a,u))throw new HFe("Invalid capture group name");a[u]=!0,n[n.length]=[u,A],s=!1,u="";continue}s?u+=c:i+=c}return[i,n]};if(SFe("RegExp",YFe)){for(Pa=function(e,t){var i=QU(gA,this),n=kFe(e),a=t===void 0,o=[],s=e,A,u,c,l,f,g;if(!i&&n&&a&&e.constructor===Pa)return e;if((n||QU(gA,e))&&(e=e.source,a&&(t=RFe(s))),e=e===void 0?"":bU(e),t=t===void 0?"":bU(t),s=e,DU&&"dotAll"in jo&&(u=!!t&&SU(t,"s")>-1,u&&(t=wU(t,/s/g,""))),A=t,kU&&"sticky"in jo&&(c=!!t&&SU(t,"y")>-1,c&&VFe&&(t=wU(t,/y/g,""))),FU&&(l=jFe(e),e=l[0],o=l[1]),f=_Fe(Ma(e,t),i?this:gA,Pa),(u||c||o.length)&&(g=MFe(f),u&&(g.dotAll=!0,g.raw=Pa(zFe(e),A)),c&&(g.sticky=!0),o.length&&(g.groups=o)),e!==s)try{qFe(f,"source",s===""?"(?:)":s)}catch(h){}return f},CE=FFe(Ma),BE=0;CE.length>BE;)NFe(Pa,Ma,CE[BE++]);gA.constructor=Pa,Pa.prototype=gA,OFe(EE,"RegExp",Pa,{constructor:!0})}var Pa,CE,BE;UFe("RegExp")});var dl=I(function(kdr,NU){"use strict";var XFe=TypeError;NU.exports=function(r){if(typeof r=="string")return r;throw new XFe("Argument is not a string")}});var GU=I(function(){"use strict";var ZFe=k(),hl=Y(),$Fe=dl(),e2e=Se(),OU=Pu().start,r2e=eA(),t2e=Array,TU=RegExp.escape,PU=hl("".charAt),bE=hl("".charCodeAt),i2e=hl(1.1.toString),n2e=hl([].join),UU=/^[0-9a-z]/i,a2e=/^[$()*+./?[\\\]^{|}]/,o2e=RegExp("^[!\"#%&',\\-:;<=>@`~"+r2e+"]"),yE=hl(UU.exec),MU={"\t":"t","\n":"n"," ":"v","\f":"f","\r":"r"},QE=function QE(r){var e=i2e(bE(r,0),16);return e.length<3?"\\x"+OU(e,2,"0"):"\\u"+OU(e,4,"0")},s2e=!TU||TU("ab")!=="\\x61b";ZFe({target:"RegExp",stat:!0,forced:s2e},{escape:function escape1(e){$Fe(e);for(var t=e.length,i=t2e(t),n=0;n=56320||n+1>=t||(bE(e,n+1)&64512)!==56320?i[n]=QE(a):(i[n]=a,i[++n]=PU(e,n))}}return n2e(i,"")}})});var HU=I(function(){"use strict";var A2e=xe(),c2e=Ih(),u2e=st(),l2e=_r(),f2e=lr().get,LU=RegExp.prototype,g2e=TypeError;A2e&&c2e&&l2e(LU,"dotAll",{configurable:!0,get:function get(){if(this!==LU){if(u2e(this)==="RegExp")return!!f2e(this).dotAll;throw new g2e("Incompatible receiver, RegExp required")}}})});var vh=I(function(Pdr,JU){"use strict";var dA=ge(),mh=Y(),d2e=Ee(),h2e=hh(),I2e=fl(),p2e=wo(),x2e=Zr(),m2e=lr().get,v2e=Ih(),C2e=mE(),B2e=p2e("native-string-replace",String.prototype.replace),xh=RegExp.prototype.exec,SE=xh,E2e=mh("".charAt),y2e=mh("".indexOf),Q2e=mh("".replace),wE=mh("".slice),_E=function(){var r=/a/,e=/b*/g;return dA(xh,r,"a"),dA(xh,e,"a"),r.lastIndex!==0||e.lastIndex!==0}(),WU=I2e.BROKEN_CARET,qE=/()??/.exec("")[1]!==void 0,b2e=_E||qE||WU||v2e||C2e;b2e&&(SE=function(e){var t=this,i=m2e(t),n=d2e(e),a=i.raw,o,s,A,u,c,l,f;if(a)return a.lastIndex=t.lastIndex,o=dA(SE,a,n),t.lastIndex=a.lastIndex,o;var g=i.groups,h=WU&&t.sticky,d=dA(h2e,t),p=t.source,m=0,x=n;if(h&&(d=Q2e(d,"y",""),y2e(d,"g")===-1&&(d+="g"),x=wE(n,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&E2e(n,t.lastIndex-1)!=="\n")&&(p="(?: "+p+")",x=" "+x,m++),s=new RegExp("^(?:"+p+")",d)),qE&&(s=new RegExp("^"+p+"$(?!\\s)",d)),_E&&(A=t.lastIndex),u=dA(xh,h?s:t,x),h?u?(u.input=wE(u.input,m),u[0]=wE(u[0],m),u.index=t.lastIndex,t.lastIndex+=u[0].length):t.lastIndex=0:_E&&u&&(t.lastIndex=t.global?u.index+u[0].length:A),qE&&u&&u.length>1&&dA(B2e,u[0],s,function(){for(c=1;c1;return e.has(1)&&e.clear(),{done:i,value:2}}}}},e=new Set([1,2,3,4]);return e.difference(r).size!==3});Cke({target:"Set",proto:!0,real:!0,forced:bke},{difference:Bke})});var kG=I(function(uhr,FG){"use strict";var wke=Ua(),kE=Ii(),Ske=hA(),_ke=La(),qke=Xo(),Dke=Ga(),Fke=kE.Set,DG=kE.add,kke=kE.has;FG.exports=function(e){var t=wke(this),i=_ke(e),n=new Fke;return Ske(t)>i.size?Dke(i.getIterator(),function(a){kke(t,a)&&DG(n,a)}):qke(t,function(a){i.includes(a)&&DG(n,a)}),n}});var RG=I(function(){"use strict";var Rke=k(),Nke=W(),Oke=kG(),Tke=Ha(),Pke=!Tke("intersection",function(r){return r.size===2&&r.has(1)&&r.has(2)})||Nke(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});Rke({target:"Set",proto:!0,real:!0,forced:Pke},{intersection:Oke})});var OG=I(function(ghr,NG){"use strict";var Mke=Ua(),Uke=Ii().has,Gke=hA(),Lke=La(),Hke=Xo(),Wke=Ga(),Jke=rt();NG.exports=function(e){var t=Mke(this),i=Lke(e);if(Gke(t)<=i.size)return Hke(t,function(a){if(i.includes(a))return!1},!0)!==!1;var n=i.getIterator();return Wke(n,function(a){if(Uke(t,a))return Jke(n,"normal",!1)})!==!1}});var TG=I(function(){"use strict";var Kke=k(),Vke=OG(),Yke=Ha(),zke=!Yke("isDisjointFrom",function(r){return!r});Kke({target:"Set",proto:!0,real:!0,forced:zke},{isDisjointFrom:Vke})});var MG=I(function(Ihr,PG){"use strict";var jke=Ua(),Xke=hA(),Zke=Xo(),$ke=La();PG.exports=function(e){var t=jke(this),i=$ke(e);return Xke(t)>i.size?!1:Zke(t,function(n){if(!i.includes(n))return!1},!0)!==!1}});var UG=I(function(){"use strict";var eRe=k(),rRe=MG(),tRe=Ha(),iRe=!tRe("isSubsetOf",function(r){return r});eRe({target:"Set",proto:!0,real:!0,forced:iRe},{isSubsetOf:rRe})});var LG=I(function(mhr,GG){"use strict";var nRe=Ua(),aRe=Ii().has,oRe=hA(),sRe=La(),ARe=Ga(),cRe=rt();GG.exports=function(e){var t=nRe(this),i=sRe(e);if(oRe(t)=0?n:i+n;return a<0||a>=i?void 0:LRe(t,a)}})});var Il=I(function(Dhr,e6){"use strict";var OE=Y(),WRe=Br(),JRe=Ee(),KRe=hr(),VRe=OE("".charAt),ZG=OE("".charCodeAt),YRe=OE("".slice),$G=function $G(r){return function(e,t){var i=JRe(KRe(e)),n=WRe(t),a=i.length,o,s;return n<0||n>=a?r?"":void 0:(o=ZG(i,n),o<55296||o>56319||n+1===a||(s=ZG(i,n+1))<56320||s>57343?r?VRe(i,n):o:r?YRe(i,n,n+2):(o-55296<<10)+(s-56320)+65536)}};e6.exports={codeAt:$G(!1),charAt:$G(!0)}});var r6=I(function(){"use strict";var zRe=k(),jRe=Il().codeAt;zRe({target:"String",proto:!0},{codePointAt:function codePointAt(e){return jRe(this,e)}})});var yh=I(function(Rhr,t6){"use strict";var XRe=ll(),ZRe=TypeError;t6.exports=function(r){if(XRe(r))throw new ZRe("The method doesn't accept regular expressions");return r}});var Qh=I(function(Nhr,i6){"use strict";var $Re=ve(),eNe=$Re("match");i6.exports=function(r){var e=/./;try{"/./"[r](e)}catch(t){try{return e[eNe]=!1,"/./"[r](e)}catch(i){}}return!1}});var o6=I(function(){"use strict";var rNe=k(),tNe=va(),iNe=jr().f,nNe=Pt(),n6=Ee(),aNe=yh(),oNe=hr(),sNe=Qh(),ANe=Je(),cNe=tNe("".slice),uNe=Math.min,a6=sNe("endsWith"),lNe=!ANe&&!a6&&!!function(){var r=iNe(String.prototype,"endsWith");return r&&!r.writable}();rNe({target:"String",proto:!0,forced:!lNe&&!a6},{endsWith:function endsWith(e){var t=n6(oNe(this));aNe(e);var i=arguments.length>1?arguments[1]:void 0,n=t.length,a=i===void 0?n:uNe(nNe(i),n),o=n6(e);return cNe(t,a-o.length,a)===o}})});var TE=I(function(){"use strict";var fNe=k(),gNe=Y(),dNe=$i(),hNe=RangeError,s6=String.fromCharCode,A6=String.fromCodePoint,INe=gNe([].join),pNe=!!A6&&A6.length!==1;fNe({target:"String",stat:!0,arity:1,forced:pNe},{fromCodePoint:function fromCodePoint(e){for(var t=[],i=arguments.length,n=0,a;i>n;){if(a=+arguments[n++],dNe(a,1114111)!==a)throw new hNe(a+" is not a valid code point");t[n]=a<65536?s6(a):s6(((a-=65536)>>10)+55296,a%1024+56320)}return INe(t,"")}})});var u6=I(function(){"use strict";var xNe=k(),mNe=Y(),vNe=yh(),CNe=hr(),c6=Ee(),BNe=Qh(),ENe=mNe("".indexOf);xNe({target:"String",proto:!0,forced:!BNe("includes")},{includes:function includes(e){return!!~ENe(c6(CNe(this)),c6(vNe(e)),arguments.length>1?arguments[1]:void 0)}})});var f6=I(function(){"use strict";var yNe=k(),QNe=Y(),bNe=hr(),wNe=Ee(),l6=QNe("".charCodeAt);yNe({target:"String",proto:!0},{isWellFormed:function isWellFormed(){for(var e=wNe(bNe(this)),t=e.length,i=0;i=56320||++i>=t||(l6(e,i)&64512)!==56320))return!1}return!0}})});var PE=I(function(){"use strict";var SNe=Il().charAt,_Ne=Ee(),d6=lr(),qNe=dd(),g6=ba(),h6="String Iterator",DNe=d6.set,FNe=d6.getterFor(h6);qNe(String,"String",function(r){DNe(this,{type:h6,string:_Ne(r),index:0})},function(){var e=FNe(this),t=e.string,i=e.index,n;return i>=t.length?g6(void 0,!0):(n=SNe(t,i),e.index+=n.length,g6(n,!1))})});var pl=I(function(Khr,v6){"use strict";Ch();var I6=ge(),p6=$e(),kNe=vh(),x6=W(),m6=ve(),RNe=Xr(),NNe=m6("species"),ME=RegExp.prototype;v6.exports=function(r,e,t,i){var n=m6(r),a=!x6(function(){var u={};return u[n]=function(){return 7},""[r](u)!==7}),o=a&&!x6(function(){var u=!1,c=/a/;if(r==="split"){var l={};l[NNe]=function(){return c},c={constructor:l,flags:""},c[n]=/./[n]}return c.exec=function(){return u=!0,null},c[n](""),!u});if(!a||!o||t){var s=/./[n],A=e(n,""[r],function(u,c,l,f,g){var h=c.exec;return h===kNe||h===ME.exec?a&&!g?{done:!0,value:I6(s,c,l,f)}:{done:!0,value:I6(u,l,c,f)}:{done:!1}});p6(String.prototype,r,A[0]),p6(ME,n,A[1])}i&&RNe(ME[n],"sham",!0)}});var xl=I(function(Vhr,C6){"use strict";var ONe=Il().charAt;C6.exports=function(r,e,t){return e+(t?ONe(r,e).length:1)}});var IA=I(function(Yhr,E6){"use strict";var B6=ge(),TNe=he(),PNe=ke(),MNe=st(),UNe=vh(),GNe=TypeError;E6.exports=function(r,e){var t=r.exec;if(PNe(t)){var i=B6(t,r,e);return i!==null&&TNe(i),i}if(MNe(r)==="RegExp")return B6(UNe,r,e);throw new GNe("RegExp#exec called on incompatible receiver")}});var b6=I(function(){"use strict";var LNe=ge(),HNe=Y(),WNe=pl(),JNe=he(),KNe=me(),VNe=Pt(),bh=Ee(),YNe=hr(),zNe=zr(),jNe=xl(),XNe=Ta(),y6=IA(),Q6=HNe("".indexOf);WNe("match",function(r,e,t){return[function(n){var a=YNe(this),o=KNe(n)?zNe(n,r):void 0;return o?LNe(o,n,a):new RegExp(n)[r](bh(a))},function(i){var n=JNe(this),a=bh(i),o=t(e,n,a);if(o.done)return o.value;var s=bh(XNe(n));if(Q6(s,"g")===-1)return y6(n,a);var A=Q6(s,"u")!==-1;n.lastIndex=0;for(var u=[],c=0,l;(l=y6(n,a))!==null;){var f=bh(l[0]);u[c]=f,f===""&&(n.lastIndex=jNe(a,VNe(n.lastIndex),A)),c++}return c===0?null:u}]})});var O6=I(function(){"use strict";var ZNe=k(),w6=ge(),q6=va(),$Ne=ld(),wh=ba(),S6=hr(),D6=Pt(),ml=Ee(),e4e=he(),r4e=me(),t4e=st(),i4e=ll(),F6=Ta(),n4e=zr(),a4e=$e(),o4e=W(),s4e=ve(),A4e=rl(),c4e=xl(),u4e=IA(),k6=lr(),GE=Je(),Sh=s4e("matchAll"),R6="RegExp String",N6=R6+" Iterator",l4e=k6.set,f4e=k6.getterFor(N6),_6=RegExp.prototype,g4e=TypeError,LE=q6("".indexOf),_h=q6("".matchAll),UE=!!_h&&!o4e(function(){_h("a",/./)}),d4e=$Ne(function(e,t,i,n){l4e(this,{type:N6,regexp:e,string:t,global:i,unicode:n,done:!1})},R6,function(){var e=f4e(this);if(e.done)return wh(void 0,!0);var t=e.regexp,i=e.string,n=u4e(t,i);return n===null?(e.done=!0,wh(void 0,!0)):e.global?(ml(n[0])===""&&(t.lastIndex=c4e(i,D6(t.lastIndex),e.unicode)),wh(n,!1)):(e.done=!0,wh(n,!1))}),HE=function HE(r){var e=e4e(this),t=ml(r),i=A4e(e,RegExp),n=ml(F6(e)),a,o,s;return a=new i(i===RegExp?e.source:e,n),o=!!~LE(n,"g"),s=!!~LE(n,"u"),a.lastIndex=D6(e.lastIndex),new d4e(a,t,o,s)};ZNe({target:"String",proto:!0,forced:UE},{matchAll:function matchAll(e){var t=S6(this),i,n,a,o;if(r4e(e)){if(i4e(e)&&(i=ml(S6(F6(e))),!~LE(i,"g")))throw new g4e("`.matchAll` does not allow non-global regexes");if(UE)return _h(t,e);if(a=n4e(e,Sh),a===void 0&&GE&&t4e(e)==="RegExp"&&(a=HE),a)return w6(a,e,t)}else if(UE)return _h(t,e);return n=ml(t),o=new RegExp(e,"g"),GE?w6(HE,o,n):o[Sh](n)}});GE||Sh in _6||a4e(_6,Sh,HE)});var WE=I(function($hr,T6){"use strict";var h4e=Fi();T6.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(h4e)});var P6=I(function(){"use strict";var I4e=k(),p4e=Pu().end,x4e=WE();I4e({target:"String",proto:!0,forced:x4e},{padEnd:function padEnd(e){return p4e(this,e,arguments.length>1?arguments[1]:void 0)}})});var M6=I(function(){"use strict";var m4e=k(),v4e=Pu().start,C4e=WE();m4e({target:"String",proto:!0,forced:C4e},{padStart:function padStart(e){return v4e(this,e,arguments.length>1?arguments[1]:void 0)}})});var H6=I(function(){"use strict";var B4e=k(),L6=Y(),E4e=Wr(),y4e=He(),U6=Ee(),Q4e=er(),G6=L6([].push),b4e=L6([].join);B4e({target:"String",stat:!0},{raw:function raw(e){var t=E4e(y4e(e).raw),i=Q4e(t);if(!i)return"";for(var n=arguments.length,a=[],o=0;;){if(G6(a,U6(t[o++])),o===i)return b4e(a,"");o]*>)/g,k4e=/\$([$&'`]|\d{1,2})/g;J6.exports=function(r,e,t,i,n,a){var o=t+r.length,s=i.length,A=k4e;return n!==void 0&&(n=_4e(n),A=F4e),D4e(a,A,function(u,c){var l;switch(JE(c,0)){case"$":return"$";case"&":return r;case"`":return KE(e,0,t);case"'":return KE(e,o);case"<":l=n[KE(c,1,-1)];break;default:var f=+c;if(f===0)return u;if(f>s){var g=q4e(f/10);return g===0?u:g<=s?i[g-1]===void 0?JE(c,1):i[g-1]+JE(c,1):u}l=i[f-1]}return l===void 0?"":l})}});var z6=I(function(){"use strict";var R4e=Lt(),K6=ge(),Dh=Y(),N4e=pl(),O4e=W(),T4e=he(),P4e=ke(),M4e=me(),U4e=Br(),G4e=Pt(),Zo=Ee(),L4e=hr(),H4e=xl(),W4e=zr(),J4e=YE(),K4e=Ta(),V4e=IA(),Y4e=ve(),jE=Y4e("replace"),z4e=Math.max,j4e=Math.min,X4e=Dh([].concat),zE=Dh([].push),qh=Dh("".indexOf),V6=Dh("".slice),Z4e=function Z4e(r){return r===void 0?r:String(r)},$4e=function(){return"a".replace(/./,"$0")==="$0"}(),Y6=function(){return /./[jE]?/./[jE]("a","$0")==="":!1}(),eOe=!O4e(function(){var r=/./;return r.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(r,"$")!=="7"});N4e("replace",function(r,e,t){var i=Y6?"$":"$0";return[function(a,o){var s=L4e(this),A=M4e(a)?W4e(a,jE):void 0;return A?K6(A,a,s,o):K6(e,Zo(s),a,o)},function(n,a){var o=T4e(this),s=Zo(n);if(typeof a=="string"&&qh(a,i)===-1&&qh(a,"$<")===-1){var A=t(e,o,s,a);if(A.done)return A.value}var u=P4e(a);u||(a=Zo(a));var c=Zo(K4e(o)),l=qh(c,"g")!==-1,f;l&&(f=qh(c,"u")!==-1,o.lastIndex=0);for(var g=[],h;h=V4e(o,s),!(h===null||(zE(g,h),!l));){var d=Zo(h[0]);d===""&&(o.lastIndex=H4e(s,G4e(o.lastIndex),f))}for(var p="",m=0,x=0;x=m&&(p+=V6(s,m,E)+B,m=E+v.length)}return p+V6(s,m)}]},!eOe||!$4e||Y6)});var Z6=I(function(){"use strict";var rOe=k(),tOe=ge(),ZE=Y(),j6=hr(),iOe=ke(),nOe=me(),aOe=ll(),pA=Ee(),oOe=zr(),sOe=Ta(),AOe=YE(),cOe=ve(),uOe=Je(),lOe=cOe("replace"),fOe=TypeError,XE=ZE("".indexOf),gOe=ZE("".replace),X6=ZE("".slice),dOe=Math.max;rOe({target:"String",proto:!0},{replaceAll:function replaceAll(e,t){var i=j6(this),n,a,o,s,A,u,c,l,f,g,h=0,d="";if(nOe(e)){if(n=aOe(e),n&&(a=pA(j6(sOe(e))),!~XE(a,"g")))throw new fOe("`.replaceAll` does not allow non-global regexes");if(o=oOe(e,lOe),o)return tOe(o,e,i,t);if(uOe&&n)return gOe(pA(i),e,t)}for(s=pA(i),A=pA(e),u=iOe(t),u||(t=pA(t)),c=A.length,l=dOe(1,c),f=XE(s,A);f!==-1;)g=u?pA(t(A,f,s)):AOe(A,s,f,[],void 0,t),d+=X6(s,h,f)+g,h=f+c,f=f+l>s.length?-1:XE(s,A,f+l);return h1||"".split(/.?/).length;BOe("split",function(r,e,t){var i="0".split(void 0,0).length?function i(n,a){return n===void 0&&a===0?[]:$E(e,this,n,a)}:e;return[function(a,o){var s=QOe(this),A=yOe(a)?_Oe(a,r):void 0;return A?$E(A,a,s,o):$E(i,tL(s),a,o)},function(n,a){var o=EOe(this),s=tL(n);if(!nL){var A=t(i,o,s,a,i!==e);if(A.done)return A.value}var u=bOe(o,RegExp),c=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(xA?"g":"y"),f=new u(xA?"^(?:"+o.source+")":o,l),g=a===void 0?FOe:a>>>0;if(g===0)return[];if(s.length===0)return iL(f,s)===null?[s]:[];for(var h=0,d=0,p=[];d1?arguments[1]:void 0,t.length)),n=sL(e);return HOe(t,i,i+n.length)===n}})});var lL=I(function(){"use strict";var KOe=k(),VOe=Y(),YOe=hr(),uL=Br(),zOe=Ee(),jOe=VOe("".slice),XOe=Math.max,ZOe=Math.min,$Oe=!"".substr||"ab".substr(-1)!=="b";KOe({target:"String",proto:!0,forced:$Oe},{substr:function substr(e,t){var i=zOe(YOe(this)),n=i.length,a=uL(e),o,s;return a===1/0&&(a=0),a<0&&(a=XOe(n+a,0)),o=t===void 0?n:uL(t),o<=0||o===1/0?"":(s=ZOe(a+o,n),a>=s?"":jOe(i,a,s))}})});var hL=I(function(){"use strict";var e8e=k(),dL=ge(),ny=Y(),r8e=hr(),t8e=Ee(),i8e=W(),n8e=Array,ty=ny("".charAt),fL=ny("".charCodeAt),a8e=ny([].join),iy="".toWellFormed,o8e="�",gL=iy&&i8e(function(){return dL(iy,1)!=="1"});e8e({target:"String",proto:!0,forced:gL},{toWellFormed:function toWellFormed(){var e=t8e(r8e(this));if(gL)return dL(iy,e);for(var t=e.length,i=n8e(t),n=0;n=56320||n+1>=t||(fL(e,n+1)&64512)!==56320?i[n]=o8e:(i[n]=ty(e,n),i[++n]=ty(e,n))}return a8e(i,"")}})});var Fh=I(function(EIr,xL){"use strict";var s8e=So().PROPER,A8e=W(),IL=eA(),pL="​…᠎";xL.exports=function(r){return A8e(function(){return!!IL[r]()||pL[r]()!==pL||s8e&&IL[r].name!==r})}});var mL=I(function(){"use strict";var c8e=k(),u8e=Jo().trim,l8e=Fh();c8e({target:"String",proto:!0,forced:l8e("trim")},{trim:function trim(){return u8e(this)}})});var ay=I(function(bIr,vL){"use strict";var f8e=Jo().end,g8e=Fh();vL.exports=g8e("trimEnd")?function(){return f8e(this)}:"".trimEnd});var BL=I(function(){"use strict";var d8e=k(),CL=ay();d8e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==CL},{trimRight:CL})});var yL=I(function(){"use strict";BL();var h8e=k(),EL=ay();h8e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==EL},{trimEnd:EL})});var oy=I(function(DIr,QL){"use strict";var I8e=Jo().start,p8e=Fh();QL.exports=p8e("trimStart")?function(){return I8e(this)}:"".trimStart});var wL=I(function(){"use strict";var x8e=k(),bL=oy();x8e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==bL},{trimLeft:bL})});var _L=I(function(){"use strict";wL();var m8e=k(),SL=oy();m8e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==SL},{trimStart:SL})});var Jt=I(function(OIr,DL){"use strict";var v8e=Y(),C8e=hr(),qL=Ee(),B8e=/"/g,E8e=v8e("".replace);DL.exports=function(r,e,t,i){var n=qL(C8e(r)),a="<"+e;return t!==""&&(a+=" "+t+"=\""+E8e(qL(i),B8e,""")+"\""),a+">"+n+""}});var Kt=I(function(TIr,FL){"use strict";var y8e=W();FL.exports=function(r){return y8e(function(){var e=""[r]("\"");return e!==e.toLowerCase()||e.split("\"").length>3})}});var kL=I(function(){"use strict";var Q8e=k(),b8e=Jt(),w8e=Kt();Q8e({target:"String",proto:!0,forced:w8e("anchor")},{anchor:function anchor(e){return b8e(this,"a","name",e)}})});var RL=I(function(){"use strict";var S8e=k(),_8e=Jt(),q8e=Kt();S8e({target:"String",proto:!0,forced:q8e("big")},{big:function big(){return _8e(this,"big","","")}})});var NL=I(function(){"use strict";var D8e=k(),F8e=Jt(),k8e=Kt();D8e({target:"String",proto:!0,forced:k8e("blink")},{blink:function blink(){return F8e(this,"blink","","")}})});var OL=I(function(){"use strict";var R8e=k(),N8e=Jt(),O8e=Kt();R8e({target:"String",proto:!0,forced:O8e("bold")},{bold:function bold(){return N8e(this,"b","","")}})});var TL=I(function(){"use strict";var T8e=k(),P8e=Jt(),M8e=Kt();T8e({target:"String",proto:!0,forced:M8e("fixed")},{fixed:function fixed(){return P8e(this,"tt","","")}})});var PL=I(function(){"use strict";var U8e=k(),G8e=Jt(),L8e=Kt();U8e({target:"String",proto:!0,forced:L8e("fontcolor")},{fontcolor:function fontcolor(e){return G8e(this,"font","color",e)}})});var ML=I(function(){"use strict";var H8e=k(),W8e=Jt(),J8e=Kt();H8e({target:"String",proto:!0,forced:J8e("fontsize")},{fontsize:function fontsize(e){return W8e(this,"font","size",e)}})});var UL=I(function(){"use strict";var K8e=k(),V8e=Jt(),Y8e=Kt();K8e({target:"String",proto:!0,forced:Y8e("italics")},{italics:function italics(){return V8e(this,"i","","")}})});var GL=I(function(){"use strict";var z8e=k(),j8e=Jt(),X8e=Kt();z8e({target:"String",proto:!0,forced:X8e("link")},{link:function link(e){return j8e(this,"a","href",e)}})});var LL=I(function(){"use strict";var Z8e=k(),$8e=Jt(),eTe=Kt();Z8e({target:"String",proto:!0,forced:eTe("small")},{small:function small(){return $8e(this,"small","","")}})});var HL=I(function(){"use strict";var rTe=k(),tTe=Jt(),iTe=Kt();rTe({target:"String",proto:!0,forced:iTe("strike")},{strike:function strike(){return tTe(this,"strike","","")}})});var WL=I(function(){"use strict";var nTe=k(),aTe=Jt(),oTe=Kt();nTe({target:"String",proto:!0,forced:oTe("sub")},{sub:function sub(){return aTe(this,"sub","","")}})});var JL=I(function(){"use strict";var sTe=k(),ATe=Jt(),cTe=Kt();sTe({target:"String",proto:!0,forced:cTe("sup")},{sup:function sup(){return ATe(this,"sup","","")}})});var kh=I(function(upr,VL){"use strict";var KL=te(),sy=W(),uTe=Qu(),lTe=Re().NATIVE_ARRAY_BUFFER_VIEWS,fTe=KL.ArrayBuffer,$o=KL.Int8Array;VL.exports=!lTe||!sy(function(){$o(1)})||!sy(function(){new $o(-1)})||!uTe(function(r){new $o,new $o(null),new $o(1.5),new $o(r)},!0)||sy(function(){return new $o(new fTe(2),1,void 0).length!==1})});var Ay=I(function(lpr,YL){"use strict";var gTe=Ud(),dTe=RangeError;YL.exports=function(r,e){var t=gTe(r);if(t%e)throw new dTe("Wrong offset");return t}});var jL=I(function(fpr,zL){"use strict";var hTe=Math.round;zL.exports=function(r){var e=hTe(r);return e<0?0:e>255?255:e&255}});var cy=I(function(gpr,XL){"use strict";var ITe=Mt();XL.exports=function(r){var e=ITe(r);return e==="BigInt64Array"||e==="BigUint64Array"}});var Rh=I(function(dpr,ZL){"use strict";var pTe=ou(),xTe=TypeError;ZL.exports=function(r){var e=pTe(r,"number");if(typeof e=="number")throw new xTe("Can't convert number to bigint");return BigInt(e)}});var uy=I(function(hpr,$L){"use strict";var mTe=Ut(),vTe=ge(),CTe=eh(),BTe=He(),ETe=er(),yTe=To(),QTe=qn(),bTe=rd(),wTe=cy(),STe=Re().aTypedArrayConstructor,_Te=Rh();$L.exports=function(e){var t=CTe(this),i=BTe(e),n=arguments.length,a=n>1?arguments[1]:void 0,o=a!==void 0,s=QTe(i),A,u,c,l,f,g,h,d;if(s&&!bTe(s))for(h=yTe(i,s),d=h.next,i=[];!(g=vTe(d,h)).done;)i.push(g.value);for(o&&n>2&&(a=mTe(a,arguments[2])),u=ETe(i),c=new(STe(t))(u),l=wTe(c),A=0;u>A;A++)f=o?a(i[A],A):i[A],c[A]=l?_Te(f):+f;return c}});var ln=I(function(Ipr,py){"use strict";var eH=k(),lH=te(),rH=ge(),qTe=xe(),DTe=kh(),El=Re(),fH=Ou(),tH=Ht(),FTe=Tt(),vl=Xr(),kTe=Xd(),RTe=Pt(),iH=ku(),ly=Ay(),NTe=jL(),gH=wn(),Cl=Se(),OTe=Mt(),dy=me(),TTe=Ia(),PTe=Zr(),MTe=pt(),Nh=di(),UTe=ma().f,nH=uy(),GTe=$r().forEach,LTe=Go(),HTe=_r(),dH=ur(),hH=jr(),aH=Js(),xy=lr(),WTe=ya(),hy=xy.get,JTe=xy.set,KTe=xy.enforce,IH=dH.f,VTe=hH.f,fy=lH.RangeError,pH=fH.ArrayBuffer,YTe=pH.prototype,zTe=fH.DataView,Oh=El.NATIVE_ARRAY_BUFFER_VIEWS,oH=El.TYPED_ARRAY_TAG,sH=El.TypedArray,Bl=El.TypedArrayPrototype,Iy=El.isTypedArray,Th="BYTES_PER_ELEMENT",gy="Wrong length",Ph=function Ph(r,e){HTe(r,e,{configurable:!0,get:function get(){return hy(this)[e]}})},AH=function AH(r){var e;return MTe(YTe,r)||(e=OTe(r))==="ArrayBuffer"||e==="SharedArrayBuffer"},xH=function xH(r,e){return Iy(r)&&!TTe(e)&&e in r&&kTe(+e)&&e>=0},cH=function cH(e,t){return t=gH(t),xH(e,t)?FTe(2,e[t]):VTe(e,t)},uH=function uH(e,t,i){return t=gH(t),xH(e,t)&&dy(i)&&Cl(i,"value")&&!Cl(i,"get")&&!Cl(i,"set")&&!i.configurable&&(!Cl(i,"writable")||i.writable)&&(!Cl(i,"enumerable")||i.enumerable)?(e[t]=i.value,e):IH(e,t,i)};qTe?(Oh||(hH.f=cH,dH.f=uH,Ph(Bl,"buffer"),Ph(Bl,"byteOffset"),Ph(Bl,"byteLength"),Ph(Bl,"length")),eH({target:"Object",stat:!0,forced:!Oh},{getOwnPropertyDescriptor:cH,defineProperty:uH}),py.exports=function(r,e,t){var i=r.match(/\d+/)[0]/8,n=r+(t?"Clamped":"")+"Array",a="get"+r,o="set"+r,s=lH[n],A=s,u=A&&A.prototype,c={},l=function l(d,p){var m=hy(d);return m.view[a](p*i+m.byteOffset,!0)},f=function f(d,p,m){var x=hy(d);x.view[o](p*i+x.byteOffset,t?NTe(m):m,!0)},g=function g(d,p){IH(d,p,{get:function get(){return l(this,p)},set:function set(m){return f(this,p,m)},enumerable:!0})};Oh?DTe&&(A=e(function(d,p,m,x){return tH(d,u),WTe(function(){return dy(p)?AH(p)?x!==void 0?new s(p,ly(m,i),x):m!==void 0?new s(p,ly(m,i)):new s(p):Iy(p)?aH(A,p):rH(nH,A,p):new s(iH(p))}(),d,A)}),Nh&&Nh(A,sH),GTe(UTe(s),function(d){d in A||vl(A,d,s[d])}),A.prototype=u):(A=e(function(d,p,m,x){tH(d,u);var v=0,E=0,S,B,b;if(!dy(p))b=iH(p),B=b*i,S=new pH(B);else if(AH(p)){S=p,E=ly(m,i);var C=p.byteLength;if(x===void 0){if(C%i)throw new fy(gy);if(B=C-E,B<0)throw new fy(gy)}else if(B=RTe(x)*i,B+E>C)throw new fy(gy);b=B/i}else return Iy(p)?aH(A,p):rH(nH,A,p);for(JTe(d,{buffer:S,byteOffset:E,byteLength:B,length:b,view:new zTe(S)});v=0?n:i+n;return a<0||a>=i?void 0:t[a]})});var DH=I(function(){"use strict";var c5e=Y(),qH=Re(),u5e=Pm(),l5e=c5e(u5e),f5e=qH.aTypedArray,g5e=qH.exportTypedArrayMethod;g5e("copyWithin",function(e,t){return l5e(f5e(this),e,t,arguments.length>2?arguments[2]:void 0)})});var kH=I(function(){"use strict";var FH=Re(),d5e=$r().every,h5e=FH.aTypedArray,I5e=FH.exportTypedArrayMethod;I5e("every",function(e){return d5e(h5e(this),e,arguments.length>1?arguments[1]:void 0)})});var NH=I(function(){"use strict";var RH=Re(),p5e=cd(),x5e=Rh(),m5e=Mt(),v5e=ge(),C5e=Y(),B5e=W(),E5e=RH.aTypedArray,y5e=RH.exportTypedArrayMethod,Q5e=C5e("".slice),b5e=B5e(function(){var r=0;return new Int8Array(2).fill({valueOf:function valueOf(){return r++}}),r!==1});y5e("fill",function(e){var t=arguments.length;E5e(this);var i=Q5e(m5e(this),0,3)==="Big"?x5e(e):+e;return v5e(p5e,this,i,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)},b5e)});var TH=I(function(Hpr,OH){"use strict";var w5e=Js(),S5e=Re().getTypedArrayConstructor;OH.exports=function(r,e){return w5e(S5e(r),e)}});var MH=I(function(){"use strict";var PH=Re(),_5e=$r().filter,q5e=TH(),D5e=PH.aTypedArray,F5e=PH.exportTypedArrayMethod;F5e("filter",function(e){var t=_5e(D5e(this),e,arguments.length>1?arguments[1]:void 0);return q5e(this,t)})});var GH=I(function(){"use strict";var UH=Re(),k5e=$r().find,R5e=UH.aTypedArray,N5e=UH.exportTypedArrayMethod;N5e("find",function(e){return k5e(R5e(this),e,arguments.length>1?arguments[1]:void 0)})});var HH=I(function(){"use strict";var LH=Re(),O5e=$r().findIndex,T5e=LH.aTypedArray,P5e=LH.exportTypedArrayMethod;P5e("findIndex",function(e){return O5e(T5e(this),e,arguments.length>1?arguments[1]:void 0)})});var JH=I(function(){"use strict";var WH=Re(),M5e=yu().findLast,U5e=WH.aTypedArray,G5e=WH.exportTypedArrayMethod;G5e("findLast",function(e){return M5e(U5e(this),e,arguments.length>1?arguments[1]:void 0)})});var VH=I(function(){"use strict";var KH=Re(),L5e=yu().findLastIndex,H5e=KH.aTypedArray,W5e=KH.exportTypedArrayMethod;W5e("findLastIndex",function(e){return L5e(H5e(this),e,arguments.length>1?arguments[1]:void 0)})});var zH=I(function(){"use strict";var YH=Re(),J5e=$r().forEach,K5e=YH.aTypedArray,V5e=YH.exportTypedArrayMethod;V5e("forEach",function(e){J5e(K5e(this),e,arguments.length>1?arguments[1]:void 0)})});var jH=I(function(){"use strict";var Y5e=kh(),z5e=Re().exportTypedArrayStaticMethod,j5e=uy();z5e("from",j5e,Y5e)});var ZH=I(function(){"use strict";var XH=Re(),X5e=Rs().includes,Z5e=XH.aTypedArray,$5e=XH.exportTypedArrayMethod;$5e("includes",function(e){return X5e(Z5e(this),e,arguments.length>1?arguments[1]:void 0)})});var eW=I(function(){"use strict";var $H=Re(),ePe=Rs().indexOf,rPe=$H.aTypedArray,tPe=$H.exportTypedArrayMethod;tPe("indexOf",function(e){return ePe(rPe(this),e,arguments.length>1?arguments[1]:void 0)})});var aW=I(function(){"use strict";var iPe=te(),nPe=W(),my=Y(),tW=Re(),vy=Su(),aPe=ve(),Cy=aPe("iterator"),rW=iPe.Uint8Array,oPe=my(vy.values),sPe=my(vy.keys),APe=my(vy.entries),By=tW.aTypedArray,Mh=tW.exportTypedArrayMethod,mA=rW&&rW.prototype,Uh=!nPe(function(){mA[Cy].call([1])}),iW=!!mA&&mA.values&&mA[Cy]===mA.values&&mA.values.name==="values",nW=function nW(){return oPe(By(this))};Mh("entries",function(){return APe(By(this))},Uh);Mh("keys",function(){return sPe(By(this))},Uh);Mh("values",nW,Uh||!iW,{name:"values"});Mh(Cy,nW,Uh||!iW,{name:"values"})});var sW=I(function(){"use strict";var oW=Re(),cPe=Y(),uPe=oW.aTypedArray,lPe=oW.exportTypedArrayMethod,fPe=cPe([].join);lPe("join",function(e){return fPe(uPe(this),e)})});var cW=I(function(){"use strict";var AW=Re(),gPe=Lt(),dPe=Zm(),hPe=AW.aTypedArray,IPe=AW.exportTypedArrayMethod;IPe("lastIndexOf",function(e){var t=arguments.length;return gPe(dPe,hPe(this),t>1?[e,arguments[1]]:[e])})});var uW=I(function(){"use strict";var Ey=Re(),pPe=$r().map,xPe=Ey.aTypedArray,mPe=Ey.getTypedArrayConstructor,vPe=Ey.exportTypedArrayMethod;vPe("map",function(e){return pPe(xPe(this),e,arguments.length>1?arguments[1]:void 0,function(t,i){return new(mPe(t))(i)})})});var fW=I(function(){"use strict";var lW=Re(),CPe=kh(),BPe=lW.aTypedArrayConstructor,EPe=lW.exportTypedArrayStaticMethod;EPe("of",function(){for(var e=0,t=arguments.length,i=new(BPe(this))(t);t>e;)i[e]=arguments[e++];return i},CPe)});var dW=I(function(){"use strict";var gW=Re(),yPe=_u().left,QPe=gW.aTypedArray,bPe=gW.exportTypedArrayMethod;bPe("reduce",function(e){var t=arguments.length;return yPe(QPe(this),e,t,t>1?arguments[1]:void 0)})});var IW=I(function(){"use strict";var hW=Re(),wPe=_u().right,SPe=hW.aTypedArray,_Pe=hW.exportTypedArrayMethod;_Pe("reduceRight",function(e){var t=arguments.length;return wPe(SPe(this),e,t,t>1?arguments[1]:void 0)})});var xW=I(function(){"use strict";var pW=Re(),qPe=pW.aTypedArray,DPe=pW.exportTypedArrayMethod,FPe=Math.floor;DPe("reverse",function(){for(var e=this,t=qPe(e).length,i=FPe(t/2),n=0,a;n1?arguments[1]:void 0,1),i=NPe(e);if(Qy)return CW(EW,this,i,t);var n=this.length,a=kPe(i),o=0;if(a+t>n)throw new OPe("Wrong length");for(;oa;)s[a]=i[a++];return s},JPe)});var wW=I(function(){"use strict";var bW=Re(),KPe=$r().some,VPe=bW.aTypedArray,YPe=bW.exportTypedArrayMethod;YPe("some",function(e){return KPe(VPe(this),e,arguments.length>1?arguments[1]:void 0)})});var kW=I(function(){"use strict";var zPe=te(),jPe=va(),Sy=W(),XPe=_e(),ZPe=xd(),FW=Re(),SW=rv(),$Pe=tv(),_W=Ri(),qW=md(),eMe=FW.aTypedArray,rMe=FW.exportTypedArrayMethod,yl=zPe.Uint16Array,vA=yl&&jPe(yl.prototype.sort),tMe=!!vA&&!(Sy(function(){vA(new yl(2),null)})&&Sy(function(){vA(new yl(2),{})})),DW=!!vA&&!Sy(function(){if(_W)return _W<74;if(SW)return SW<67;if($Pe)return!0;if(qW)return qW<602;var r=new yl(516),e=Array(516),t,i;for(t=0;t<516;t++)i=t%4,r[t]=515-t,e[t]=t-2*i+3;for(vA(r,function(n,a){return(n/4|0)-(a/4|0)}),t=0;t<516;t++)if(r[t]!==e[t])return!0}),iMe=function iMe(r){return function(e,t){return r!==void 0?+r(e,t)||0:t!==t?-1:e!==e?1:e===0&&t===0?1/e>0&&1/t<0?1:-1:e>t}};rMe("sort",function(e){return e!==void 0&&XPe(e),DW?vA(this,e):ZPe(eMe(this),iMe(e))},!DW||tMe)});var NW=I(function(){"use strict";var _y=Re(),nMe=Pt(),RW=$i(),aMe=_y.aTypedArray,oMe=_y.getTypedArrayConstructor,sMe=_y.exportTypedArrayMethod;sMe("subarray",function(e,t){var i=aMe(this),n=i.length,a=RW(e,n),o=oMe(i);return new o(i.buffer,i.byteOffset+a*i.BYTES_PER_ELEMENT,nMe((t===void 0?n:RW(t,n))-a))})});var UW=I(function(){"use strict";var AMe=te(),cMe=Lt(),PW=Re(),qy=W(),OW=ei(),Gh=AMe.Int8Array,TW=PW.aTypedArray,uMe=PW.exportTypedArrayMethod,MW=[].toLocaleString,lMe=!!Gh&&qy(function(){MW.call(new Gh(1))}),fMe=qy(function(){return[1,2].toLocaleString()!==new Gh([1,2]).toLocaleString()})||!qy(function(){Gh.prototype.toLocaleString.call([1,2])});uMe("toLocaleString",function(){return cMe(MW,lMe?OW(TW(this)):TW(this),OW(arguments))},fMe)});var GW=I(function(){"use strict";var gMe=av(),Dy=Re(),dMe=Dy.aTypedArray,hMe=Dy.exportTypedArrayMethod,IMe=Dy.getTypedArrayConstructor;hMe("toReversed",function(){return gMe(dMe(this),IMe(this))})});var LW=I(function(){"use strict";var Lh=Re(),pMe=Y(),xMe=_e(),mMe=Js(),vMe=Lh.aTypedArray,CMe=Lh.getTypedArrayConstructor,BMe=Lh.exportTypedArrayMethod,EMe=pMe(Lh.TypedArrayPrototype.sort);BMe("toSorted",function(e){e!==void 0&&xMe(e);var t=vMe(this),i=mMe(CMe(t),t);return EMe(i,e)})});var WW=I(function(){"use strict";var yMe=Re().exportTypedArrayMethod,QMe=W(),bMe=te(),wMe=Y(),HW=bMe.Uint8Array,SMe=HW&&HW.prototype||{},Hh=[].toString,_Me=wMe([].join);QMe(function(){Hh.call({})})&&(Hh=function Hh(){return _Me(this)});var qMe=SMe.toString!==Hh;yMe("toString",Hh,qMe)});var KW=I(function(){"use strict";var DMe=sv(),Fy=Re(),FMe=cy(),kMe=Br(),RMe=Rh(),NMe=Fy.aTypedArray,OMe=Fy.getTypedArrayConstructor,TMe=Fy.exportTypedArrayMethod,JW=function(){try{new Int8Array(1).with(2,{valueOf:function valueOf(){throw 8}})}catch(r){return r===8}}(),PMe=JW&&function(){try{new Int8Array(1).with(-.5,1)}catch(r){return!0}}();TMe("with",function(r,e){var t=NMe(this),i=kMe(r),n=FMe(t)?RMe(e):+e;return DMe(t,OMe(t),i,n)},!JW||PMe)});var ky=I(function(W0r,VW){"use strict";var MMe=me(),UMe=String,GMe=TypeError;VW.exports=function(r){if(r===void 0||MMe(r))return r;throw new GMe(UMe(r)+" is not an object or undefined")}});var Ql=I(function(J0r,ZW){"use strict";var XW="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",YW=XW+"+/",zW=XW+"-_",jW=function jW(r){for(var e={},t=0;t<64;t++)e[r.charAt(t)]=t;return e};ZW.exports={i2c:YW,c2i:jW(YW),i2cUrl:zW,c2iUrl:jW(zW)}});var Ry=I(function(K0r,$W){"use strict";var LMe=TypeError;$W.exports=function(r){var e=r&&r.alphabet;if(e===void 0||e==="base64"||e==="base64url")return e||"base64";throw new LMe("Incorrect `alphabet` option")}});var Py=I(function(V0r,t9){"use strict";var e9=te(),HMe=Y(),WMe=ky(),JMe=dl(),KMe=Se(),r9=Ql(),VMe=Ry(),YMe=Xs(),zMe=r9.c2i,jMe=r9.c2iUrl,Wa=e9.SyntaxError,XMe=e9.TypeError,es=HMe("".charAt),Ny=function Ny(r,e){for(var t=r.length;e>16&255,n>>8&255,n&255];if(i===2){if(t&&a[1]!==0)throw new Wa("Extra bits");return[a[0]]}if(i===3){if(t&&a[2]!==0)throw new Wa("Extra bits");return[a[0],a[1]]}return a},Ty=function Ty(r,e,t){for(var i=e.length,n=0;n0){if(a==="stop-before-partial")break;if(a==="loose"){if(c.length===1)throw new Wa("Malformed padding: exactly one additional character");A=Ty(s,Oy(c,n,!1),A)}else throw new Wa("Missing padding")}u=o;break}var f=es(r,l);if(++l,f==="="){if(c.length<2)throw new Wa("Padding is too early");if(l=Ny(r,l),c.length===2){if(l===o){if(a==="stop-before-partial")break;throw new Wa("Malformed padding: only one =")}es(r,l)==="="&&(++l,l=Ny(r,l))}if(l1?arguments[1]:void 0,null,9007199254740991);return eUe(CA,t.bytes)}})});var Uy=I(function(j0r,s9){"use strict";var My=te(),a9=Y(),iUe=My.Uint8Array,n9=My.SyntaxError,nUe=My.parseInt,aUe=Math.min,o9=/[^\da-f]/i,oUe=a9(o9.exec),sUe=a9("".slice);s9.exports=function(r,e){var t=r.length;if(t%2!==0)throw new n9("String should be an even number of characters");for(var i=e?aUe(e.length,t/2):t/2,n=e||new iUe(i),a=0,o=0;o1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})});var l9=I(function(){"use strict";var mUe=k(),vUe=te(),CUe=dl(),BUe=bl(),EUe=Xs(),yUe=Uy();vUe.Uint8Array&&mUe({target:"Uint8Array",proto:!0},{setFromHex:function setFromHex(e){BUe(this),CUe(e),EUe(this.buffer);var t=yUe(e,this).read;return{read:t,written:t/2}}})});var g9=I(function(){"use strict";var QUe=k(),bUe=te(),wUe=Y(),SUe=ky(),_Ue=bl(),qUe=Xs(),f9=Ql(),DUe=Ry(),FUe=f9.i2c,kUe=f9.i2cUrl,RUe=wUe("".charAt),Jh=bUe.Uint8Array,NUe=!Jh||!Jh.prototype.toBase64||!function(){try{var r=new Jh;r.toBase64(null)}catch(e){return!0}}();Jh&&QUe({target:"Uint8Array",proto:!0,forced:NUe},{toBase64:function toBase64(){var e=_Ue(this),t=arguments.length?SUe(arguments[0]):void 0,i=DUe(t)==="base64"?FUe:kUe,n=!!t&&!!t.omitPadding;qUe(this.buffer);for(var a="",o=0,s=e.length,A,u=function u(c){return RUe(i,A>>6*c&63)};o+2>(-2*a&6)));return i}})});var Y9=I(function(){"use strict";var _Ge=k(),qGe=te(),K9=we(),V9=Y(),DGe=ge(),Yy=W(),W9=Ee(),FGe=ii(),kGe=Ql().i2c,yA=K9("btoa"),J9=V9("".charAt),RGe=V9("".charCodeAt),ql=!!yA&&!Yy(function(){return yA("hi")!=="aGk="}),NGe=ql&&!Yy(function(){yA()}),OGe=ql&&Yy(function(){return yA(null)!=="bnVsbA=="}),TGe=ql&&yA.length!==1;_Ge({global:!0,bind:!0,enumerable:!0,forced:!ql||NGe||OGe||TGe},{btoa:function btoa1(e){if(FGe(arguments.length,1),ql)return DGe(yA,qGe,W9(e));for(var t=W9(e),i="",n=0,a=kGe,o,s;J9(t,n)||(a="=",n%1);){if(s=RGe(t,n+=3/4),s>255)throw new(K9("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o=o<<8|s,i+=J9(a,63&o>>8-n%1*8)}return i}})});var zy=I(function(Exr,z9){"use strict";z9.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}});var Xy=I(function(yxr,X9){"use strict";var PGe=su(),jy=PGe("span").classList,j9=jy&&jy.constructor&&jy.constructor.prototype;X9.exports=j9===Object.prototype?void 0:j9});var rJ=I(function(){"use strict";var Z9=te(),$9=zy(),MGe=Xy(),Zy=Lm(),UGe=Xr(),eJ=function eJ(r){if(r&&r.forEach!==Zy)try{UGe(r,"forEach",Zy)}catch(e){r.forEach=Zy}};for(rI in $9)$9[rI]&&eJ(Z9[rI]&&Z9[rI].prototype);var rI;eJ(MGe)});var oJ=I(function(){"use strict";var tJ=te(),nJ=zy(),GGe=Xy(),Dl=Su(),iJ=Xr(),LGe=Qt(),HGe=ve(),$y=HGe("iterator"),eQ=Dl.values,aJ=function aJ(r,e){if(r){if(r[$y]!==eQ)try{iJ(r,$y,eQ)}catch(i){r[$y]=eQ}if(LGe(r,e,!0),nJ[e]){for(var t in Dl)if(r[t]!==Dl[t])try{iJ(r,t,Dl[t])}catch(i){r[t]=Dl[t]}}}};for(tI in nJ)aJ(tJ[tI]&&tJ[tI].prototype,tI);var tI;aJ(GGe,"DOMTokenList")});var rQ=I(function(_xr,sJ){"use strict";sJ.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}});var xJ=I(function(){"use strict";var WGe=k(),aI=we(),JGe=Fv(),sQ=W(),KGe=Zr(),AQ=Tt(),oI=ur().f,VGe=$e(),iI=_r(),nI=Se(),YGe=Ht(),zGe=he(),uJ=Sm(),AJ=No(),QA=rQ(),jGe=zg(),lJ=lr(),cQ=xe(),fJ=Je(),bA="DOMException",oQ="DATA_CLONE_ERR",AI=aI("Error"),Tn=aI(bA)||function(){try{var r=aI("MessageChannel")||JGe("worker_threads").MessageChannel;new r().port1.postMessage(new WeakMap)}catch(e){if(e.name===oQ&&e.code===25)return e.constructor}}(),XGe=Tn&&Tn.prototype,gJ=AI.prototype,ZGe=lJ.set,$Ge=lJ.getterFor(bA),e6e="stack"in new AI(bA),dJ=function dJ(r){return nI(QA,r)&&QA[r].m?QA[r].c:0},uQ=function uQ(){YGe(this,kl);var e=arguments.length,t=AJ(e<1?void 0:arguments[0]),i=AJ(e<2?void 0:arguments[1],"Error"),n=dJ(i);if(ZGe(this,{type:bA,name:i,message:t,code:n}),cQ||(this.name=i,this.message=t,this.code=n),e6e){var a=new AI(t);a.name=bA,oI(this,"stack",AQ(1,jGe(a.stack,1)))}},kl=uQ.prototype=KGe(gJ),hJ=function hJ(r){return{enumerable:!0,configurable:!0,get:r}},tQ=function tQ(r){return hJ(function(){return $Ge(this)[r]})};cQ&&(iI(kl,"code",tQ("code")),iI(kl,"message",tQ("message")),iI(kl,"name",tQ("name")));oI(kl,"constructor",AQ(1,uQ));var cI=sQ(function(){return!_instanceof(new Tn,AI)}),IJ=cI||sQ(function(){return gJ.toString!==uJ||String(new Tn(1,2))!=="2: 1"}),pJ=cI||sQ(function(){return new Tn(1,"DataCloneError").code!==25}),r6e=cI||Tn[oQ]!==25||XGe[oQ]!==25,cJ=fJ?IJ||pJ||r6e:cI;WGe({global:!0,constructor:!0,forced:cJ},{DOMException:cJ?uQ:Tn});var Rl=aI(bA),sI=Rl.prototype;IJ&&(fJ||Tn===Rl)&&VGe(sI,"toString",uJ);pJ&&cQ&&Tn===Rl&&iI(sI,"code",hJ(function(){return dJ(zGe(this).name)}));for(iQ in QA)nI(QA,iQ)&&(nQ=QA[iQ],Fl=nQ.s,aQ=AQ(6,nQ.c),nI(Rl,Fl)||oI(Rl,Fl,aQ),nI(sI,Fl)||oI(sI,Fl,aQ));var nQ,Fl,aQ,iQ});var QJ=I(function(){"use strict";var t6e=k(),i6e=te(),xQ=we(),IQ=Tt(),pQ=ur().f,mJ=Se(),n6e=Ht(),a6e=ya(),vJ=No(),lQ=rQ(),o6e=zg(),s6e=xe(),EJ=Je(),Ol="DOMException",yJ=xQ("Error"),Tl=xQ(Ol),mQ=function mQ1(){n6e(this,A6e);var e=arguments.length,t=vJ(e<1?void 0:arguments[0]),i=vJ(e<2?void 0:arguments[1],"Error"),n=new Tl(t,i),a=new yJ(t);return a.name=Ol,pQ(n,"stack",IQ(1,o6e(a.stack,1))),a6e(n,this,mQ),n},A6e=mQ.prototype=Tl.prototype,c6e="stack"in new yJ(Ol),u6e="stack"in new Tl(1,2),fQ=Tl&&s6e&&Object.getOwnPropertyDescriptor(i6e,Ol),l6e=!!fQ&&!(fQ.writable&&fQ.configurable),CJ=c6e&&!l6e&&!u6e;t6e({global:!0,constructor:!0,forced:EJ||CJ},{DOMException:CJ?mQ:Tl});var Nl=xQ(Ol),BJ=Nl.prototype;if(BJ.constructor!==Nl){EJ||pQ(BJ,"constructor",IQ(1,Nl));for(gQ in lQ)mJ(lQ,gQ)&&(dQ=lQ[gQ],hQ=dQ.s,mJ(Nl,hQ)||pQ(Nl,hQ,IQ(6,dQ.c)))}var dQ,hQ,gQ});var wJ=I(function(){"use strict";var f6e=we(),g6e=Qt(),bJ="DOMException";g6e(f6e(bJ),bJ)});var _J=I(function(){"use strict";var d6e=k(),h6e=te(),SJ=nl().clear;d6e({global:!0,bind:!0,enumerable:!0,forced:h6e.clearImmediate!==SJ},{clearImmediate:SJ})});var uI=I(function(Pxr,DJ){"use strict";var qJ=te(),I6e=Lt(),p6e=ke(),x6e=Du(),m6e=Fi(),v6e=ei(),C6e=ii(),B6e=qJ.Function,E6e=/MSIE .\./.test(m6e)||x6e==="BUN"&&function(){var r=qJ.Bun.version.split(".");return r.length<3||r[0]==="0"&&(r[1]<3||r[1]==="3"&&r[2]==="0")}();DJ.exports=function(r,e){var t=e?2:1;return E6e?function(i,n){var a=C6e(arguments.length,1)>t,o=p6e(i)?i:B6e(i),s=a?v6e(arguments,t):[],A=a?function A(){I6e(o,this,s)}:o;return e?r(A,n):r(A)}:r}});var NJ=I(function(){"use strict";var y6e=k(),RJ=te(),FJ=nl().set,Q6e=uI(),kJ=RJ.setImmediate?Q6e(FJ,!1):FJ;y6e({global:!0,bind:!0,enumerable:!0,forced:RJ.setImmediate!==kJ},{setImmediate:kJ})});var OJ=I(function(){"use strict";_J();NJ()});var TJ=I(function(){"use strict";var b6e=k(),w6e=te(),S6e=MB(),_6e=_e(),q6e=ii(),D6e=W(),F6e=xe(),k6e=D6e(function(){return F6e&&Object.getOwnPropertyDescriptor(w6e,"queueMicrotask").value.length!==1});b6e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:k6e},{queueMicrotask:function queueMicrotask1(e){q6e(arguments.length,1),S6e(_6e(e))}})});var MJ=I(function(){"use strict";var R6e=k(),Ja=te(),N6e=_r(),O6e=xe(),T6e=TypeError,P6e=Object.defineProperty,PJ=Ja.self!==Ja;try{O6e?(lI=Object.getOwnPropertyDescriptor(Ja,"self"),(PJ||!lI||!lI.get||!lI.enumerable)&&N6e(Ja,"self",{get:function get(){return Ja},set:function set(e){if(this!==Ja)throw new T6e("Illegal invocation");P6e(Ja,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})):R6e({global:!0,simple:!0,forced:PJ},{self:Ja})}catch(r){}var lI});var jJ=I(function(){"use strict";var M6e=Je(),U6e=k(),ft=te(),Ml=we(),Gl=Y(),QQ=W(),G6e=xa(),SA=ke(),L6e=Ca(),H6e=Zi(),II=me(),W6e=Ia(),J6e=Pr(),LJ=he(),dI=Mt(),K6e=Se(),V6e=ri(),vQ=Xr(),fI=er(),Y6e=ii(),z6e=Ta(),pI=KC(),bQ=Ii(),j6e=Xo(),UJ=Mv(),X6e=Bm(),wQ=Dd(),Pl=ft.Object,Z6e=ft.Array,HJ=ft.Date,WJ=ft.Error,$6e=ft.TypeError,eLe=ft.PerformanceMark,ts=Ml("DOMException"),EQ=pI.Map,SQ=pI.has,JJ=pI.get,hI=pI.set,KJ=bQ.Set,VJ=bQ.add,rLe=bQ.has,tLe=Ml("Object","keys"),iLe=Gl([].push),nLe=Gl((!0).valueOf),aLe=Gl(1.1.valueOf),oLe=Gl("".valueOf),sLe=Gl(HJ.prototype.getTime),yQ=G6e("structuredClone"),Ul="DataCloneError",gI="Transferring",YJ=function YJ(r){return!QQ(function(){var e=new ft.Set([7]),t=r(e),i=r(Pl(7));return t===e||!t.has(7)||!II(i)||+i!=7})&&r},GJ=function GJ(r,e){return!QQ(function(){var t=new e,i=r({a:t,b:t});return!(i&&i.a===i.b&&_instanceof(i.a,e)&&i.a.stack===t.stack)})},ALe=function ALe(r){return!QQ(function(){var e=r(new ft.AggregateError([1],yQ,{cause:3}));return e.name!=="AggregateError"||e.errors[0]!==1||e.message!==yQ||e.cause!==3})},wA=ft.structuredClone,cLe=M6e||!GJ(wA,WJ)||!GJ(wA,ts)||!ALe(wA),uLe=!wA&&YJ(function(r){return new eLe(yQ,{detail:r}).detail}),Pn=YJ(wA)||uLe,CQ=function CQ(r){throw new ts("Uncloneable type: "+r,Ul)},Vt=function Vt(r,e){throw new ts((e||"Cloning")+" of "+r+" cannot be properly polyfilled in this engine",Ul)},BQ=function BQ(r,e){return Pn||Vt(e),Pn(r)},lLe=function lLe(){var r;try{r=new ft.DataTransfer}catch(e){try{r=new ft.ClipboardEvent("").clipboardData}catch(t){}}return r&&r.items&&r.files?r:null},zJ=function zJ(r,e,t){if(SQ(e,r))return JJ(e,r);var i=t||dI(r),n,a,o,s,A,u;if(i==="SharedArrayBuffer")Pn?n=Pn(r):n=r;else{var c=ft.DataView;!c&&!SA(r.slice)&&Vt("ArrayBuffer");try{if(SA(r.slice)&&!r.resizable)n=r.slice(0);else for(a=r.byteLength,o=("maxByteLength"in r)?{maxByteLength:r.maxByteLength}:void 0,n=new ArrayBuffer(a,o),s=new c(r),A=new c(n),u=0;u1&&!H6e(arguments[1])?LJ(arguments[1]):void 0,i=t?t.transfer:void 0,n,a;i!==void 0&&(n=new EQ,a=gLe(i,n));var o=lt(e,n);return a&&dLe(a),o}})});var $J=I(function(){"use strict";var hLe=k(),ZJ=te(),ILe=uI(),XJ=ILe(ZJ.setInterval,!0);hLe({global:!0,bind:!0,forced:ZJ.setInterval!==XJ},{setInterval:XJ})});var t7=I(function(){"use strict";var pLe=k(),r7=te(),xLe=uI(),e7=xLe(r7.setTimeout,!0);pLe({global:!0,bind:!0,forced:r7.setTimeout!==e7},{setTimeout:e7})});var i7=I(function(){"use strict";$J();t7()});var Ll=I(function(rmr,a7){"use strict";var mLe=W(),vLe=ve(),CLe=xe(),n7=Je(),BLe=vLe("iterator");a7.exports=!mLe(function(){var r=new URL("b?a=1&b=2&c=3","https://a"),e=r.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),i="";return r.pathname="c%20d",e.forEach(function(n,a){e.delete("b"),i+=a+n}),t.delete("a",2),t.delete("b",void 0),n7&&(!r.toJSON||!t.has("a",1)||t.has("a",2)||!t.has("a",void 0)||t.has("b"))||!e.size&&(n7||!CLe)||!e.sort||r.href!=="https://a/c%20d?a=1&c=3"||e.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!e[BLe]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||i!=="a1c3"||new URL("https://x",void 0).host!=="x"})});var d7=I(function(tmr,g7){"use strict";var is=Y(),_Q=2147483647,Hl=36,u7=1,FQ=26,ELe=38,yLe=700,QLe=72,bLe=128,wLe="-",SLe=/[^\0-\u007E]/,l7=/[.\u3002\uFF0E\uFF61]/g,o7="Overflow: input needs wider integers to process",qQ=Hl-u7,s7=RangeError,_Le=is(l7.exec),_A=Math.floor,DQ=String.fromCharCode,A7=is("".charCodeAt),f7=is([].join),Ka=is([].push),qLe=is("".replace),DLe=is("".split),FLe=is("".toLowerCase),kLe=function kLe(r){for(var e=[],t=0,i=r.length;t=55296&&n<=56319&&t>1,r+=_A(r/e);r>qQ*FQ>>1;)r=_A(r/qQ),i+=Hl;return _A(i+(qQ+1)*r/(r+ELe))},NLe=function NLe(r){var e=[];r=kLe(r);var t=r.length,i=bLe,n=0,a=QLe,o,s;for(o=0;o=i&&s_A((_Q-n)/l))throw new s7(o7);for(n+=(c-i)*l,i=c,o=0;o_Q)throw new s7(o7);if(s===i){for(var f=n,g=Hl;;){var h=g<=a?u7:g>=a+FQ?FQ:g-a;if(f0&&r&t;t>>=1)e++;return e},sHe=function sHe(r){var e=null;switch(r.length){case 1:e=r[0];break;case 2:e=(r[0]&31)<<6|r[1]&63;break;case 3:e=(r[0]&15)<<12|(r[1]&63)<<6|r[2]&63;break;case 4:e=(r[0]&7)<<18|(r[1]&63)<<12|(r[2]&63)<<6|r[3]&63;break}return e>1114111?null:e},E7=function E7(r){r=R7(r,nHe," ");for(var e=r.length,t="",i=0;ie){t+="%",i++;continue}var a=B7(r,i+1);if(a!==a){t+=n,i++;continue}i+=2;var o=oHe(a);if(o===0)n=$Le(a);else{if(o===1||o>4){t+=NQ,i++;continue}for(var s=[a],A=1;Ae||CI(r,i)!=="%"));){var u=B7(r,i+1);if(u!==u){i+=3;break}if(u>191||u<128)break;Va(s,u),i+=2,A++}if(s.length!==o){t+=NQ;continue}var c=sHe(s);c===null?t+=NQ:n=eHe(c)}}t+=n,i++}return t},AHe=/[!'()~]|%20/g,cHe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},uHe=function uHe(r){return cHe[r]},y7=function y7(r){return R7(ZLe(r),AHe,uHe)},OQ=ULe(function(e,t){k7(this,{type:F7,target:pi(e).entries,index:0,kind:t})},FA,function(){var e=jLe(this),t=e.target,i=e.index++;if(!t||i>=t.length)return e.target=null,mI(void 0,!0);var n=t[i];switch(e.kind){case"keys":return mI(n.key,!1);case"values":return mI(n.value,!1)}return mI([n.key,n.value],!1)},!0),O7=function O7(r){this.entries=[],this.url=null,r!==void 0&&(D7(r)?this.parseObject(r):this.parseQuery(typeof r=="string"?CI(r,0)==="?"?N7(r,1):r:St(r)))};O7.prototype={type:FA,bindURL:function bindURL(r){this.url=r,this.update()},parseObject:function parseObject(r){var e=this.entries,t=KLe(r),i,n,a,o,s,A,u;if(t)for(i=I7(r,t),n=i.next;!(a=xI(n,i)).done;){if(o=I7(WLe(a.value)),s=o.next,(A=xI(s,o)).done||(u=xI(s,o)).done||!xI(s,o).done)throw new XLe("Expected sequence with length 2");Va(e,{key:St(A.value),value:St(u.value)})}else for(var c in r)GLe(r,c)&&Va(e,{key:c,value:St(r[c])})},parseQuery:function parseQuery(r){if(r)for(var e=this.entries,t=C7(r,"&"),i=0,n,a;i0?arguments[0]:void 0,t=k7(this,new O7(e));Wl||(this.size=t.entries.length)},DA=EI.prototype;PLe(DA,{append:function append(e,t){var i=pi(this);qA(arguments.length,2),Va(i.entries,{key:St(e),value:St(t)}),Wl||this.size++,i.updateURL()},delete:function _delete(r){for(var e=pi(this),t=qA(arguments.length,1),i=e.entries,n=St(r),a=t<2?void 0:arguments[1],o=a===void 0?a:St(a),s=0;si.key?1:-1}),e.updateURL()},forEach:function forEach(e){for(var t=pi(this).entries,i=LLe(e,arguments.length>1?arguments[1]:void 0),n=0,a;n1?TQ(arguments[1]):{})}}),kQ(BI)&&(vI=function vI(e){return q7(this,RQ),new BI(e,arguments.length>1?TQ(arguments[1]):{})},RQ.constructor=vI,vI.prototype=RQ,PQ({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:vI})));var Q7,b7,TQ,vI;T7.exports={URLSearchParams:EI,getState:pi}});var rK=I(function(){"use strict";PE();var lHe=k(),nb=xe(),fHe=Ll(),ab=te(),P7=Ut(),Bi=Y(),SI=$e(),xi=_r(),gHe=Ht(),rb=Se(),ob=hB(),kA=Hm(),Ui=ei(),dHe=Il().codeAt,hHe=d7(),Un=Ee(),IHe=Qt(),pHe=ii(),z7=GQ(),j7=lr(),xHe=j7.set,_I=j7.getterFor("URL"),mHe=z7.URLSearchParams,vHe=z7.getState,Kl=ab.URL,tb=ab.TypeError,qI=ab.parseInt,CHe=Math.floor,M7=Math.pow,Ci=Bi("".charAt),Gi=Bi(/./.exec),Yl=Bi([].join),BHe=Bi(1.1.toString),EHe=Bi([].pop),NA=Bi([].push),LQ=Bi("".replace),yHe=Bi([].shift),QHe=Bi("".split),jl=Bi("".slice),DI=Bi("".toLowerCase),bHe=Bi([].unshift),wHe="Invalid authority",HQ="Invalid scheme",ns="Invalid host",U7="Invalid port",X7=/[a-z]/i,SHe=/[\d+-.a-z]/i,ib=/\d/,_He=/^0x/i,qHe=/^[0-7]+$/,DHe=/^\d+$/,Z7=/^[\da-f]+$/i,FHe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,kHe=/[\0\t\n\r #/:<>?@[\\\]^|]/,RHe=/^[\u0000-\u0020]+/,NHe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,OHe=/[\t\n\r]/g,mi,THe=function THe(r){var e=QHe(r,"."),t,i,n,a,o,s,A;if(e.length&&e[e.length-1]===""&&e.length--,t=e.length,t>4)return r;for(i=[],n=0;n1&&Ci(a,0)==="0"&&(o=Gi(_He,a)?16:8,a=jl(a,o===8?1:2)),a==="")s=0;else{if(!Gi(o===10?DHe:o===8?qHe:Z7,a))return r;s=qI(a,o)}NA(i,s)}for(n=0;n=M7(256,5-t))return null}else if(s>255)return null;for(A=EHe(i),n=0;n6))return;for(s=0;f();){if(A=null,s>0)if(f()==="."&&s<4)n++;else return;if(!Gi(ib,f()))return;for(;Gi(ib,f());){if(u=qI(f(),10),A===null)A=u;else{if(A===0)return;A=A*10+u}if(A>255)return;n++}e[t]=e[t]*256+A,s++,(s===2||s===4)&&t++}if(s!==4)return;break}else if(f()===":"){if(n++,!f())return}else if(f())return;e[t++]=a}if(i!==null)for(c=t-i,t=7;t!==0&&c>0;)l=e[t],e[t--]=e[i+c-1],e[i+--c]=l;else if(t!==8)return;return e},MHe=function MHe(r){for(var e=null,t=1,i=null,n=0,a=0;a<8;a++)r[a]!==0?(n>t&&(e=i,t=n),i=null,n=0):(i===null&&(i=a),++n);return n>t?i:e},Vl=function Vl(r){var e,t,i,n;if(typeof r=="number"){for(e=[],t=0;t<4;t++)bHe(e,r%256),r=CHe(r/256);return Yl(e,".")}if((typeof r==="undefined"?"undefined":_type_of(r))=="object"){for(e="",i=MHe(r),t=0;t<8;t++)n&&r[t]===0||(n&&(n=!1),i===t?(e+=t?":":"::",n=!0):(e+=BHe(r[t],16),t<7&&(e+=":")));return"["+e+"]"}return r},wI={},$7=ob({},wI,{" ":1,"\"":1,"<":1,">":1,"`":1}),eK=ob({},$7,{"#":1,"?":1,"{":1,"}":1}),WQ=ob({},eK,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Ya=function Ya(r,e){var t=dHe(r,0);return t>32&&t<127&&!rb(e,r)?r:encodeURIComponent(r)},yI={ftp:21,file:null,http:80,https:443,ws:80,wss:443},zl=function zl(r,e){var t;return r.length===2&&Gi(X7,Ci(r,0))&&((t=Ci(r,1))===":"||!e&&t==="|")},G7=function G7(r){var e;return r.length>1&&zl(jl(r,0,2))&&(r.length===2||(e=Ci(r,2))==="/"||e==="\\"||e==="?"||e==="#")},UHe=function UHe(r){return r==="."||DI(r)==="%2e"},GHe=function GHe(r){return r=DI(r),r===".."||r==="%2e."||r===".%2e"||r==="%2e%2e"},JQ={},L7={},KQ={},H7={},W7={},VQ={},J7={},K7={},QI={},bI={},YQ={},zQ={},jQ={},XQ={},V7={},ZQ={},RA={},fn={},Y7={},as={},Mn={},sb=function sb1(r,e,t){var i=Un(r),n,a,o;if(e){if(a=this.parse(i),a)throw new tb(a);this.searchParams=null}else{if(t!==void 0&&(n=new sb(t,!0)),a=this.parse(i,null,n),a)throw new tb(a);o=vHe(new mHe),o.bindURL(this),this.searchParams=o}};sb.prototype={type:"URL",parse:function parse(r,e,t){var i=this,n=e||JQ,a=0,o="",s=!1,A=!1,u=!1,c,l,f,g;for(r=Un(r),e||(i.scheme="",i.username="",i.password="",i.host=null,i.port=null,i.path=[],i.query=null,i.fragment=null,i.cannotBeABaseURL=!1,r=LQ(r,RHe,""),r=LQ(r,NHe,"$1")),r=LQ(r,OHe,""),c=kA(r);a<=c.length;){switch(l=c[a],n){case JQ:if(l&&Gi(X7,l))o+=DI(l),n=L7;else{if(e)return HQ;n=KQ;continue}break;case L7:if(l&&(Gi(SHe,l)||l==="+"||l==="-"||l==="."))o+=DI(l);else if(l===":"){if(e&&(i.isSpecial()!==rb(yI,o)||o==="file"&&(i.includesCredentials()||i.port!==null)||i.scheme==="file"&&!i.host))return;if(i.scheme=o,e){i.isSpecial()&&yI[i.scheme]===i.port&&(i.port=null);return}o="",i.scheme==="file"?n=XQ:i.isSpecial()&&t&&t.scheme===i.scheme?n=H7:i.isSpecial()?n=K7:c[a+1]==="/"?(n=W7,a++):(i.cannotBeABaseURL=!0,NA(i.path,""),n=Y7)}else{if(e)return HQ;o="",n=KQ,a=0;continue}break;case KQ:if(!t||t.cannotBeABaseURL&&l!=="#")return HQ;if(t.cannotBeABaseURL&&l==="#"){i.scheme=t.scheme,i.path=Ui(t.path),i.query=t.query,i.fragment="",i.cannotBeABaseURL=!0,n=Mn;break}n=t.scheme==="file"?XQ:VQ;continue;case H7:if(l==="/"&&c[a+1]==="/")n=QI,a++;else{n=VQ;continue}break;case W7:if(l==="/"){n=bI;break}else{n=fn;continue}case VQ:if(i.scheme=t.scheme,l===mi)i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,i.path=Ui(t.path),i.query=t.query;else if(l==="/"||l==="\\"&&i.isSpecial())n=J7;else if(l==="?")i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,i.path=Ui(t.path),i.query="",n=as;else if(l==="#")i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,i.path=Ui(t.path),i.query=t.query,i.fragment="",n=Mn;else{i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,i.path=Ui(t.path),i.path.length--,n=fn;continue}break;case J7:if(i.isSpecial()&&(l==="/"||l==="\\"))n=QI;else if(l==="/")n=bI;else{i.username=t.username,i.password=t.password,i.host=t.host,i.port=t.port,n=fn;continue}break;case K7:if(n=QI,l!=="/"||Ci(o,a+1)!=="/")continue;a++;break;case QI:if(l!=="/"&&l!=="\\"){n=bI;continue}break;case bI:if(l==="@"){s&&(o="%40"+o),s=!0,f=kA(o);for(var h=0;h65535)return U7;i.port=i.isSpecial()&&m===yI[i.scheme]?null:m,o=""}if(e)return;n=RA;continue}else return U7;break;case XQ:if(i.scheme="file",l==="/"||l==="\\")n=V7;else if(t&&t.scheme==="file")switch(l){case mi:i.host=t.host,i.path=Ui(t.path),i.query=t.query;break;case"?":i.host=t.host,i.path=Ui(t.path),i.query="",n=as;break;case"#":i.host=t.host,i.path=Ui(t.path),i.query=t.query,i.fragment="",n=Mn;break;default:G7(Yl(Ui(c,a),""))||(i.host=t.host,i.path=Ui(t.path),i.shortenPath()),n=fn;continue}else{n=fn;continue}break;case V7:if(l==="/"||l==="\\"){n=ZQ;break}t&&t.scheme==="file"&&!G7(Yl(Ui(c,a),""))&&(zl(t.path[0],!0)?NA(i.path,t.path[0]):i.host=t.host),n=fn;continue;case ZQ:if(l===mi||l==="/"||l==="\\"||l==="?"||l==="#"){if(!e&&zl(o))n=fn;else if(o===""){if(i.host="",e)return;n=RA}else{if(g=i.parseHost(o),g)return g;if(i.host==="localhost"&&(i.host=""),e)return;o="",n=RA}continue}else o+=l;break;case RA:if(i.isSpecial()){if(n=fn,l!=="/"&&l!=="\\")continue}else if(!e&&l==="?")i.query="",n=as;else if(!e&&l==="#")i.fragment="",n=Mn;else if(l!==mi&&(n=fn,l!=="/"))continue;break;case fn:if(l===mi||l==="/"||l==="\\"&&i.isSpecial()||!e&&(l==="?"||l==="#")){if(GHe(o)?(i.shortenPath(),l!=="/"&&!(l==="\\"&&i.isSpecial())&&NA(i.path,"")):UHe(o)?l!=="/"&&!(l==="\\"&&i.isSpecial())&&NA(i.path,""):(i.scheme==="file"&&!i.path.length&&zl(o)&&(i.host&&(i.host=""),o=Ci(o,0)+":"),NA(i.path,o)),o="",i.scheme==="file"&&(l===mi||l==="?"||l==="#"))for(;i.path.length>1&&i.path[0]==="";)yHe(i.path);l==="?"?(i.query="",n=as):l==="#"&&(i.fragment="",n=Mn)}else o+=Ya(l,eK);break;case Y7:l==="?"?(i.query="",n=as):l==="#"?(i.fragment="",n=Mn):l!==mi&&(i.path[0]+=Ya(l,wI));break;case as:!e&&l==="#"?(i.fragment="",n=Mn):l!==mi&&(l==="'"&&i.isSpecial()?i.query+="%27":l==="#"?i.query+="%23":i.query+=Ya(l,wI));break;case Mn:l!==mi&&(i.fragment+=Ya(l,$7));break}a++}},parseHost:function parseHost(r){var e,t,i;if(Ci(r,0)==="["){if(Ci(r,r.length-1)!=="]"||(e=PHe(jl(r,1,-1)),!e))return ns;this.host=e}else if(this.isSpecial()){if(r=hHe(r),Gi(FHe,r)||(e=THe(r),e===null))return ns;this.host=e}else{if(Gi(kHe,r))return ns;for(e="",t=kA(r),i=0;i1?arguments[1]:void 0,n=xHe(t,new sb(e,!1,i));nb||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},_t=OA.prototype,vi=function vi(r,e){return{get:function get(){return _I(this)[r]()},set:e&&function(t){return _I(this)[e](t)},configurable:!0,enumerable:!0}};nb&&(xi(_t,"href",vi("serialize","setHref")),xi(_t,"origin",vi("getOrigin")),xi(_t,"protocol",vi("getProtocol","setProtocol")),xi(_t,"username",vi("getUsername","setUsername")),xi(_t,"password",vi("getPassword","setPassword")),xi(_t,"host",vi("getHost","setHost")),xi(_t,"hostname",vi("getHostname","setHostname")),xi(_t,"port",vi("getPort","setPort")),xi(_t,"pathname",vi("getPathname","setPathname")),xi(_t,"search",vi("getSearch","setSearch")),xi(_t,"searchParams",vi("getSearchParams")),xi(_t,"hash",vi("getHash","setHash")));SI(_t,"toJSON",function(){return _I(this).serialize()},{enumerable:!0});SI(_t,"toString",function(){return _I(this).serialize()},{enumerable:!0});Kl&&($Q=Kl.createObjectURL,eb=Kl.revokeObjectURL,$Q&&SI(OA,"createObjectURL",P7($Q,Kl)),eb&&SI(OA,"revokeObjectURL",P7(eb,Kl)));var $Q,eb;IHe(OA,"URL");lHe({global:!0,constructor:!0,forced:!fHe,sham:!nb},{URL:OA})});var tK=I(function(){"use strict";rK()});var aK=I(function(){"use strict";var LHe=k(),HHe=we(),nK=W(),WHe=ii(),iK=Ee(),JHe=Ll(),Ab=HHe("URL"),KHe=JHe&&nK(function(){Ab.canParse()}),VHe=nK(function(){return Ab.canParse.length!==1});LHe({target:"URL",stat:!0,forced:!KHe||VHe},{canParse:function canParse(e){var t=WHe(arguments.length,1),i=iK(e),n=t<2||arguments[1]===void 0?void 0:iK(arguments[1]);try{return!!new Ab(i,n)}catch(a){return!1}}})});var sK=I(function(){"use strict";var YHe=k(),zHe=we(),jHe=ii(),oK=Ee(),XHe=Ll(),ZHe=zHe("URL");YHe({target:"URL",stat:!0,forced:!XHe},{parse:function parse(e){var t=jHe(arguments.length,1),i=oK(e),n=t<2||arguments[1]===void 0?void 0:oK(arguments[1]);try{return new ZHe(i,n)}catch(a){return null}}})});var AK=I(function(){"use strict";var $He=k(),eWe=ge();$He({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return eWe(URL.prototype.toString,this)}})});var cK=I(function(){"use strict";GQ()});var gK=I(function(){"use strict";var rWe=$e(),FI=Y(),uK=Ee(),tWe=ii(),fK=URLSearchParams,kI=fK.prototype,iWe=FI(kI.append),lK=FI(kI.delete),nWe=FI(kI.forEach),aWe=FI([].push),cb=new fK("a=1&a=2&b=3");cb.delete("a",1);cb.delete("b",void 0);cb+""!="a=2"&&rWe(kI,"delete",function(r){var e=arguments.length,t=e<2?void 0:arguments[1];if(e&&t===void 0)return lK(this,r);var i=[];nWe(this,function(l,f){aWe(i,{key:f,value:l})}),tWe(e,1);for(var n=uK(r),a=uK(t),o=0,s=0,A=!1,u=i.length,c;o2){var A=t.lastIndexOf("/");if(A!==t.length-1){A===-1?(t="",i=0):(t=t.slice(0,A),i=t.length-1-t.lastIndexOf("/")),n=s,a=0;continue}}else if(t.length===2||t.length===1){t="",i=0,n=s,a=0;continue}}e&&(t.length>0?t+="/..":t="..",i=2)}else t.length>0?t+="/"+r.slice(n+1,s):t=r.slice(n+1,s),i=s-n-1;n=s,a=0}else o===46&&a!==-1?++a:a=-1}return t};var wZe=function wZe(r,e){var t=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+i:t+r+i:i};var yc={resolve:function resolve(){for(var e="",t=!1,i,n=arguments.length-1;n>=-1&&!t;n--){var a;n>=0?a=arguments[n]:(i===void 0&&(i=process.cwd()),a=i),vn(a),a.length!==0&&(e=a+"/"+e,t=a.charCodeAt(0)===47)}return e=BX(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function normalize(e){if(vn(e),e.length===0)return".";var t=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=BX(e,!t),e.length===0&&!t&&(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function isAbsolute(e){return vn(e),e.length>0&&e.charCodeAt(0)===47},join:function join(){if(arguments.length===0)return".";for(var e,t=0;t0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":yc.normalize(e)},relative:function relative(e,t){if(vn(e),vn(t),e===t||(e=yc.resolve(e),t=yc.resolve(t),e===t))return"";for(var i=1;iu){if(t.charCodeAt(o+l)===47)return t.slice(o+l+1);if(l===0)return t.slice(o+l)}else a>u&&(e.charCodeAt(i+l)===47?c=l:l===0&&(c=0));break}var f=e.charCodeAt(i+l),g=t.charCodeAt(o+l);if(f!==g)break;f===47&&(c=l)}var h="";for(l=i+c+1;l<=n;++l)(l===n||e.charCodeAt(l)===47)&&(h.length===0?h+="..":h+="/..");return h.length>0?h+t.slice(o+c):(o+=c,t.charCodeAt(o)===47&&++o,t.slice(o))},_makeLong:function _makeLong(e){return e},dirname:function dirname(e){if(vn(e),e.length===0)return".";for(var t=e.charCodeAt(0),i=t===47,n=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!a){n=o;break}}else a=!1;return n===-1?i?"/":".":i&&n===1?"//":e.slice(0,n)},basename:function basename(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError("\"ext\" argument must be a string");vn(e);var i=0,n=-1,a=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,A=-1;for(o=e.length-1;o>=0;--o){var u=e.charCodeAt(o);if(u===47){if(!a){i=o+1;break}}else A===-1&&(a=!1,A=o+1),s>=0&&(u===t.charCodeAt(s)?--s===-1&&(n=o):(s=-1,n=A))}return i===n?n=A:n===-1&&(n=e.length),e.slice(i,n)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":e.slice(i,n)}},extname:function extname(e){vn(e);for(var t=-1,i=0,n=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var A=e.charCodeAt(s);if(A===47){if(!a){i=s+1;break}continue}n===-1&&(a=!1,n=s+1),A===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||n===-1||o===0||o===1&&t===n-1&&t===i+1?"":e.slice(t,n)},format:function format(e){if(e===null||(typeof e==="undefined"?"undefined":_type_of(e))!="object")throw new TypeError("The \"pathObject\" argument must be of type Object. Received type "+(typeof e==="undefined"?"undefined":_type_of(e)));return wZe("/",e)},parse:function parse(e){vn(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var i=e.charCodeAt(0),n=i===47,a;n?(t.root="/",a=1):a=0;for(var o=-1,s=0,A=-1,u=!0,c=e.length-1,l=0;c>=a;--c){if(i=e.charCodeAt(c),i===47){if(!u){s=c+1;break}continue}A===-1&&(u=!1,A=c+1),i===46?o===-1?o=c:l!==1&&(l=1):o!==-1&&(l=-1)}return o===-1||A===-1||l===0||l===1&&o===A-1&&o===s+1?A!==-1&&(s===0&&n?t.base=t.name=e.slice(1,A):t.base=t.name=e.slice(s,A)):(s===0&&n?(t.name=e.slice(1,o),t.base=e.slice(1,A)):(t.name=e.slice(s,o),t.base=e.slice(s,A)),t.ext=e.slice(o,A)),s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};yc.posix=yc;EX.exports=yc});var bX=I(function(QX,Sw){(function(r){if((typeof QX==="undefined"?"undefined":_type_of(QX))=="object"&&typeof Sw!="undefined")Sw.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return function i(n,a,o){function s(c,l){if(!a[c]){if(!n[c]){var f=typeof require=="function"&&require;if(!l&&f)return f(c,!0);if(A)return A(c,!0);var g=new Error("Cannot find module '"+c+"'");throw g.code="MODULE_NOT_FOUND",g}var h=a[c]={exports:{}};n[c][0].call(h.exports,function(d){var p=n[c][1][d];return s(p||d)},h,h.exports,i,n,a,o)}return a[c].exports}for(var A=typeof require=="function"&&require,u=0;u=43)}}).catch(function(){return!1})}function y(Q){return typeof x=="boolean"?f.resolve(x):C(Q).then(function(R){return x=R,x})}function q(Q){var R=v[Q.name],D={};D.promise=new f(function(T,P){D.resolve=T,D.reject=P}),R.deferredOperations.push(D),R.dbReady?R.dbReady=R.dbReady.then(function(){return D.promise}):R.dbReady=D.promise}function w(Q){var R=v[Q.name],D=R.deferredOperations.pop();if(D)return D.resolve(),D.promise}function N(Q,R){var D=v[Q.name],T=D.deferredOperations.pop();if(T)return T.reject(R),T.promise}function F(Q,R){return new f(function(D,T){if(v[Q.name]=v[Q.name]||pe(),Q.db)if(R)q(Q),Q.db.close();else return D(Q.db);var P=[Q.name];R&&P.push(Q.version);var O=u.open.apply(u,P);R&&(O.onupgradeneeded=function(H){var V=O.result;try{V.createObjectStore(Q.storeName),H.oldVersion<=1&&V.createObjectStore(m)}catch($){if($.name==="ConstraintError")console.warn("The database \""+Q.name+"\" has been upgraded from version "+H.oldVersion+" to version "+H.newVersion+", but the storage \""+Q.storeName+"\" already exists.");else throw $}}),O.onerror=function(H){H.preventDefault(),T(O.error)},O.onsuccess=function(){var H=O.result;H.onversionchange=function(V){V.target.close()},D(H),w(Q)}})}function M(Q){return F(Q,!1)}function U(Q){return F(Q,!0)}function G(Q,R){if(!Q.db)return!0;var D=!Q.db.objectStoreNames.contains(Q.storeName),T=Q.versionQ.db.version;if(T&&(Q.version!==R&&console.warn("The database \""+Q.name+"\" can't be downgraded from version "+Q.db.version+" to version "+Q.version+"."),Q.version=Q.db.version),P||D){if(D){var O=Q.db.version+1;O>Q.version&&(Q.version=O)}return!0}return!1}function K(Q){return new f(function(R,D){var T=new FileReader;T.onerror=D,T.onloadend=function(P){var O=btoa(P.target.result||"");R({__local_forage_encoded_blob:!0,data:O,type:Q.type})},T.readAsBinaryString(Q)})}function ce(Q){var R=b(atob(Q.data));return l([R],{type:Q.type})}function J(Q){return Q&&Q.__local_forage_encoded_blob}function Ce(Q){var R=this,D=R._initReady().then(function(){var T=v[R._dbInfo.name];if(T&&T.dbReady)return T.dbReady});return h(D,Q,Q),D}function L(Q){q(Q);for(var R=v[Q.name],D=R.forages,T=0;T0&&(!Q.db||O.name==="InvalidStateError"||O.name==="NotFoundError"))return f.resolve().then(function(){if(!Q.db||O.name==="NotFoundError"&&!Q.db.objectStoreNames.contains(Q.storeName)&&Q.version<=Q.db.version)return Q.db&&(Q.version=Q.db.version+1),U(Q)}).then(function(){return L(Q).then(function(){Ae(Q,R,D,T-1)})}).catch(D);D(O)}}function pe(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function le(Q){var R=this,D={db:null};if(Q)for(var T in Q)D[T]=Q[T];var P=v[D.name];P||(P=pe(),v[D.name]=P),P.forages.push(R),R._initReady||(R._initReady=R.ready,R.ready=Ce);var O=[];function H(){return f.resolve()}for(var V=0;V>4,ae[P++]=(H&15)<<4|V>>2,ae[P++]=(V&3)<<6|$&63;return ee}function rx(Q){var R=new Uint8Array(Q),D="",T;for(T=0;T>2],D+=qe[(R[T]&3)<<4|R[T+1]>>4],D+=qe[(R[T+1]&15)<<2|R[T+2]>>6],D+=qe[R[T+2]&63];return R.length%3===2?D=D.substring(0,D.length-1)+"=":R.length%3===1&&(D=D.substring(0,D.length-2)+"=="),D}function mte(Q,R){var D="";if(Q&&(D=tS.call(Q)),Q&&(D==="[object ArrayBuffer]"||Q.buffer&&tS.call(Q.buffer)==="[object ArrayBuffer]")){var T,P=We;_instanceof(Q,ArrayBuffer)?(T=Q,P+=Sr):(T=Q.buffer,D==="[object Int8Array]"?P+=cr:D==="[object Uint8Array]"?P+=ht:D==="[object Uint8ClampedArray]"?P+=vr:D==="[object Int16Array]"?P+=Or:D==="[object Uint16Array]"?P+=X1:D==="[object Int32Array]"?P+=j1:D==="[object Uint32Array]"?P+=Z1:D==="[object Float32Array]"?P+=$1:D==="[object Float64Array]"?P+=eS:R(new Error("Failed to get type for BinaryArray"))),R(P+rx(T))}else if(D==="[object Blob]"){var O=new FileReader;O.onload=function(){var _$H=qr+Q.type+"~"+rx(this.result);R(We+Ue+_$H)},O.readAsArrayBuffer(Q)}else try{R(JSON.stringify(Q))}catch(H){console.error("无法将值转换为 JSON 字符串:",Q),R(null,H)}}function vte(Q){if(Q.substring(0,ir)!==We)return JSON.parse(Q);var R=Q.substring(rS),D=Q.substring(ir,rS),T;if(D===Ue&&Me.test(R)){var P=R.match(Me);T=P[1],R=R.substring(P[0].length)}var O=iS(R);switch(D){case Sr:return O;case Ue:return l([O],{type:T});case cr:return new Int8Array(O);case ht:return new Uint8Array(O);case vr:return new Uint8ClampedArray(O);case Or:return new Int16Array(O);case X1:return new Uint16Array(O);case j1:return new Int32Array(O);case Z1:return new Uint32Array(O);case $1:return new Float32Array(O);case eS:return new Float64Array(O);default:throw new Error("Unkown type: "+D)}}var tx={serialize:mte,deserialize:vte,stringToBuffer:iS,bufferToString:rx};function nS(Q,R,D,T){Q.executeSql("CREATE TABLE IF NOT EXISTS "+R.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],D,T)}function Cte(Q){var R=this,D={db:null};if(Q)for(var T in Q)D[T]=typeof Q[T]!="string"?Q[T].toString():Q[T];var P=new f(function(O,H){try{D.db=openDatabase(D.name,String(D.version),D.description,D.size)}catch(V){return H(V)}D.db.transaction(function(V){nS(V,D,function(){R._dbInfo=D,O()},function($,ee){H(ee)})},H)});return D.serializer=tx,P}function ga(Q,R,D,T,P,O){Q.executeSql(D,T,P,function(H,V){V.code===V.SYNTAX_ERR?H.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[R.storeName],function($,ee){ee.rows.length?O($,V):nS($,R,function(){$.executeSql(D,T,P,O)},O)},O):O(H,V)},O)}function Bte(Q,R){var D=this;Q=d(Q);var T=new f(function(P,O){D.ready().then(function(){var H=D._dbInfo;H.db.transaction(function(V){ga(V,H,"SELECT * FROM "+H.storeName+" WHERE key = ? LIMIT 1",[Q],function($,ee){var ae=ee.rows.length?ee.rows.item(0).value:null;ae&&(ae=H.serializer.deserialize(ae)),P(ae)},function($,ee){O(ee)})})}).catch(O)});return g(T,R),T}function Ete(Q,R){var D=this,T=new f(function(P,O){D.ready().then(function(){var H=D._dbInfo;H.db.transaction(function(V){ga(V,H,"SELECT * FROM "+H.storeName,[],function($,ee){for(var ae=ee.rows,de=ae.length,De=0;De0){H(aS.apply(P,[Q,$,D,T-1]));return}V(De)}})})}).catch(V)});return g(O,D),O}function yte(Q,R,D){return aS.apply(this,[Q,R,D,1])}function Qte(Q,R){var D=this;Q=d(Q);var T=new f(function(P,O){D.ready().then(function(){var H=D._dbInfo;H.db.transaction(function(V){ga(V,H,"DELETE FROM "+H.storeName+" WHERE key = ?",[Q],function(){P()},function($,ee){O(ee)})})}).catch(O)});return g(T,R),T}function bte(Q){var R=this,D=new f(function(T,P){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(H){ga(H,O,"DELETE FROM "+O.storeName,[],function(){T()},function(V,$){P($)})})}).catch(P)});return g(D,Q),D}function wte(Q){var R=this,D=new f(function(T,P){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(H){ga(H,O,"SELECT COUNT(key) as c FROM "+O.storeName,[],function(V,$){var ee=$.rows.item(0).c;T(ee)},function(V,$){P($)})})}).catch(P)});return g(D,Q),D}function Ste(Q,R){var D=this,T=new f(function(P,O){D.ready().then(function(){var H=D._dbInfo;H.db.transaction(function(V){ga(V,H,"SELECT key FROM "+H.storeName+" WHERE id = ? LIMIT 1",[Q+1],function($,ee){var ae=ee.rows.length?ee.rows.item(0).key:null;P(ae)},function($,ee){O(ee)})})}).catch(O)});return g(T,R),T}function _te(Q){var R=this,D=new f(function(T,P){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(H){ga(H,O,"SELECT key FROM "+O.storeName,[],function(V,$){for(var ee=[],ae=0;ae<$.rows.length;ae++)ee.push($.rows.item(ae).key);T(ee)},function(V,$){P($)})})}).catch(P)});return g(D,Q),D}function qte(Q){return new f(function(R,D){Q.transaction(function(T){T.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(P,O){for(var H=[],V=0;V0}function Ote(Q){var R=this,D={};if(Q)for(var T in Q)D[T]=Q[T];return D.keyPrefix=oS(Q,R._defaultConfig),Nte()?(R._dbInfo=D,D.serializer=tx,f.resolve()):f.reject()}function Tte(Q){var R=this,D=R.ready().then(function(){for(var T=R._dbInfo.keyPrefix,P=localStorage.length-1;P>=0;P--){var O=localStorage.key(P);O.indexOf(T)===0&&localStorage.removeItem(O)}});return g(D,Q),D}function Pte(Q,R){var D=this;Q=d(Q);var T=D.ready().then(function(){var P=D._dbInfo,O=localStorage.getItem(P.keyPrefix+Q);return O&&(O=P.serializer.deserialize(O)),O});return g(T,R),T}function Mte(Q,R){var D=this,T=D.ready().then(function(){for(var P=D._dbInfo,O=P.keyPrefix,H=O.length,V=localStorage.length,$=1,ee=0;ee=0;H--){var V=localStorage.key(H);V.indexOf(O)===0&&localStorage.removeItem(V)}}):P=f.reject("Invalid arguments"),g(P,R),P}var Kte={_driver:"localStorageWrapper",_initStorage:Ote,_support:kte(),iterate:Mte,getItem:Pte,setItem:Wte,removeItem:Hte,clear:Tte,length:Lte,key:Ute,keys:Gte,dropInstance:Jte},Vte=function Vte(R,D){return R===D||typeof R=="number"&&typeof D=="number"&&isNaN(R)&&isNaN(D)},Yte=function Yte(R,D){for(var T=R.length,P=0;Pe.length?r:e,o=r.length>e.length?e:r,s=a.indexOf(o);if(s!=-1)return n=[new X.Diff(gr,a.substring(0,s)),new X.Diff(be,o),new X.Diff(gr,a.substring(s+o.length))],r.length>e.length&&(n[0][0]=n[2][0]=Ar),n;if(o.length==1)return[new X.Diff(Ar,r),new X.Diff(gr,e)];var A=this.diff_halfMatch_(r,e);if(A){var u=A[0],c=A[1],l=A[2],f=A[3],g=A[4],h=this.diff_main(u,l,t,i),d=this.diff_main(c,f,t,i);return h.concat([new X.Diff(be,g)],d)}return t&&r.length>100&&e.length>100?this.diff_lineMode_(r,e,i):this.diff_bisect_(r,e,i)};X.prototype.diff_lineMode_=function(r,e,t){var i=this.diff_linesToChars_(r,e);r=i.chars1,e=i.chars2;var n=i.lineArray,a=this.diff_main(r,e,!1,t);this.diff_charsToLines_(a,n),this.diff_cleanupSemantic(a),a.push(new X.Diff(be,""));for(var o=0,s=0,A=0,u="",c="";o=1&&A>=1){a.splice(o-s-A,s+A),o=o-s-A;for(var l=this.diff_main(u,c,!1,t),f=l.length-1;f>=0;f--)a.splice(o,0,l[f]);o=o+l.length}A=0,s=0,u="",c="";break}o++}return a.pop(),a};X.prototype.diff_bisect_=function(r,e,t){for(var i=r.length,n=e.length,a=Math.ceil((i+n)/2),o=a,s=2*a,A=new Array(s),u=new Array(s),c=0;ct);m++){for(var x=-m+g;x<=m-h;x+=2){var v=o+x,E;x==-m||x!=m&&A[v-1]i)h+=2;else if(S>n)g+=2;else if(f){var B=o+l-x;if(B>=0&&B=b)return this.diff_bisectSplit_(r,e,E,S,t)}}}for(var C=-m+d;C<=m-p;C+=2){var B=o+C,b;C==-m||C!=m&&u[B-1]i)p+=2;else if(y>n)d+=2;else if(!f){var v=o+l-C;if(v>=0&&v=b)return this.diff_bisectSplit_(r,e,E,S,t)}}}}return[new X.Diff(Ar,r),new X.Diff(gr,e)]};X.prototype.diff_bisectSplit_=function(r,e,t,i,n){var a=r.substring(0,t),o=e.substring(0,i),s=r.substring(t),A=e.substring(i),u=this.diff_main(a,o,!1,n),c=this.diff_main(s,A,!1,n);return u.concat(c)};X.prototype.diff_linesToChars_=function(r,e){var t=[],i={};t[0]="";function n(A){for(var u="",c=0,l=-1,f=t.length;li?r=r.substring(t-i):te.length?r:e,i=r.length>e.length?e:r;if(t.length<4||i.length*2=h.length?[E,S,B,b,v]:null}var o=a(t,i,Math.ceil(t.length/4)),s=a(t,i,Math.ceil(t.length/2)),A;if(!o&&!s)return null;s?o?A=o[4].length>s[4].length?o:s:A=s:A=o;var u,c,l,f;r.length>e.length?(u=A[0],c=A[1],l=A[2],f=A[3]):(l=A[0],f=A[1],u=A[2],c=A[3]);var g=A[4];return[u,c,l,f,g]};X.prototype.diff_cleanupSemantic=function(r){for(var e=!1,t=[],i=0,n=null,a=0,o=0,s=0,A=0,u=0;a0?t[i-1]:-1,o=0,s=0,A=0,u=0,n=null,e=!0)),a++;for(e&&this.diff_cleanupMerge(r),this.diff_cleanupSemanticLossless(r),a=1;a=g?(f>=c.length/2||f>=l.length/2)&&(r.splice(a,0,new X.Diff(be,l.substring(0,f))),r[a-1][1]=c.substring(0,c.length-f),r[a+1][1]=l.substring(f),a++):(g>=c.length/2||g>=l.length/2)&&(r.splice(a,0,new X.Diff(be,c.substring(0,g))),r[a-1][0]=gr,r[a-1][1]=l.substring(0,l.length-g),r[a+1][0]=Ar,r[a+1][1]=c.substring(g),a++),a++}a++}};X.prototype.diff_cleanupSemanticLossless=function(r){function e(g,h){if(!g||!h)return 6;var d=g.charAt(g.length-1),p=h.charAt(0),m=d.match(X.nonAlphaNumericRegex_),x=p.match(X.nonAlphaNumericRegex_),v=m&&d.match(X.whitespaceRegex_),E=x&&p.match(X.whitespaceRegex_),S=v&&d.match(X.linebreakRegex_),B=E&&p.match(X.linebreakRegex_),b=S&&g.match(X.blanklineEndRegex_),C=B&&h.match(X.blanklineStartRegex_);return b||C?5:S||B?4:m&&!v&&E?3:v||E?2:m||x?1:0}for(var t=1;t=l&&(l=f,A=i,u=n,c=a)}r[t-1][1]!=A&&(A?r[t-1][1]=A:(r.splice(t-1,1),t--),r[t][1]=u,c?r[t+1][1]=c:(r.splice(t+1,1),t--))}t++}};X.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;X.whitespaceRegex_=/\s/;X.linebreakRegex_=/[\r\n]/;X.blanklineEndRegex_=/\n\r?\n$/;X.blanklineStartRegex_=/^\r?\n\r?\n/;X.prototype.diff_cleanupEfficiency=function(r){for(var e=!1,t=[],i=0,n=null,a=0,o=!1,s=!1,A=!1,u=!1;a0?t[i-1]:-1,A=u=!1),e=!0)),a++;e&&this.diff_cleanupMerge(r)};X.prototype.diff_cleanupMerge=function(r){r.push(new X.Diff(be,""));for(var e=0,t=0,i=0,n="",a="",o;e1?(t!==0&&i!==0&&(o=this.diff_commonPrefix(a,n),o!==0&&(e-t-i>0&&r[e-t-i-1][0]==be?r[e-t-i-1][1]+=a.substring(0,o):(r.splice(0,0,new X.Diff(be,a.substring(0,o))),e++),a=a.substring(o),n=n.substring(o)),o=this.diff_commonSuffix(a,n),o!==0&&(r[e][1]=a.substring(a.length-o)+r[e][1],a=a.substring(0,a.length-o),n=n.substring(0,n.length-o))),e-=t+i,r.splice(e,t+i),n.length&&(r.splice(e,0,new X.Diff(Ar,n)),e++),a.length&&(r.splice(e,0,new X.Diff(gr,a)),e++),e++):e!==0&&r[e-1][0]==be?(r[e-1][1]+=r[e][1],r.splice(e,1)):e++,i=0,t=0,n="",a="";break}r[r.length-1][1]===""&&r.pop();var s=!1;for(e=1;ee));o++)n=t,a=i;return r.length!=o&&r[o][0]===Ar?a:a+(e-n)};X.prototype.diff_prettyHtml=function(r){for(var e=[],t=/&/g,i=//g,a=/\n/g,o=0;o");switch(s){case gr:e[o]=""+u+"";break;case Ar:e[o]=""+u+"";break;case be:e[o]=""+u+"";break}}return e.join("")};X.prototype.diff_text1=function(r){for(var e=[],t=0;tthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(e),n=this;function a(E,S){var B=E/e.length,b=Math.abs(t-S);return n.Match_Distance?B+b/n.Match_Distance:b?1:B}var o=this.Match_Threshold,s=r.indexOf(e,t);s!=-1&&(o=Math.min(a(0,s),o),s=r.lastIndexOf(e,t+e.length),s!=-1&&(o=Math.min(a(0,s),o)));var A=1<=h;m--){var x=i[r.charAt(m-1)];if(g===0?p[m]=(p[m+1]<<1|1)&x:p[m]=(p[m+1]<<1|1)&x|((f[m+1]|f[m])<<1|1)|f[m+1],p[m]&A){var v=a(g,m-1);if(v<=o)if(o=v,s=m-1,s>t)h=Math.max(1,2*t-s);else break}}if(a(g+1,t)>o)break;f=p}return s};X.prototype.match_alphabet_=function(r){for(var e={},t=0;t2&&(this.diff_cleanupSemantic(n),this.diff_cleanupEfficiency(n));else if(r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&typeof e=="undefined"&&typeof t=="undefined")n=r,i=this.diff_text1(n);else if(typeof r=="string"&&e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"&&typeof t=="undefined")i=r,n=e;else if(typeof r=="string"&&typeof e=="string"&&t&&(typeof t==="undefined"?"undefined":_type_of(t))=="object")i=r,n=t;else throw new Error("Unknown call format to patch_make.");if(n.length===0)return[];for(var a=[],o=new X.patch_obj,s=0,A=0,u=0,c=i,l=i,f=0;f=2*this.Patch_Margin&&s&&(this.patch_addContext_(o,c),a.push(o),o=new X.patch_obj,s=0,c=l,A=u);break}g!==gr&&(A+=h.length),g!==Ar&&(u+=h.length)}return s&&(this.patch_addContext_(o,c),a.push(o)),a};X.prototype.patch_deepCopy=function(r){for(var e=[],t=0;tthis.Match_MaxBits?(A=this.match_main(e,s.substring(0,this.Match_MaxBits),o),A!=-1&&(u=this.match_main(e,s.substring(s.length-this.Match_MaxBits),o+s.length-this.Match_MaxBits),(u==-1||A>=u)&&(A=-1))):A=this.match_main(e,s,o),A==-1)n[a]=!1,i-=r[a].length2-r[a].length1;else{n[a]=!0,i=A-o;var c;if(u==-1?c=e.substring(A,A+s.length):c=e.substring(A,u+this.Match_MaxBits),s==c)e=e.substring(0,A)+this.diff_text2(r[a].diffs)+e.substring(A+s.length);else{var l=this.diff_main(s,c,!1);if(s.length>this.Match_MaxBits&&this.diff_levenshtein(l)/s.length>this.Patch_DeleteThreshold)n[a]=!1;else{this.diff_cleanupSemanticLossless(l);for(var f=0,g,h=0;ha[0][1].length){var o=e-a[0][1].length;a[0][1]=t.substring(a[0][1].length)+a[0][1],n.start1-=o,n.start2-=o,n.length1+=o,n.length2+=o}if(n=r[r.length-1],a=n.diffs,a.length==0||a[a.length-1][0]!=be)a.push(new X.Diff(be,t)),n.length1+=e,n.length2+=e;else if(e>a[a.length-1][1].length){var o=e-a[a.length-1][1].length;a[a.length-1][1]+=t.substring(0,o),n.length1+=o,n.length2+=o}return t};X.prototype.patch_splitMax=function(r){for(var e=this.Match_MaxBits,t=0;t2*e?(s.length1+=c.length,n+=c.length,A=!1,s.diffs.push(new X.Diff(u,c)),i.diffs.shift()):(c=c.substring(0,e-s.length1-this.Patch_Margin),s.length1+=c.length,n+=c.length,u===be?(s.length2+=c.length,a+=c.length):A=!1,s.diffs.push(new X.Diff(u,c)),c==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(c.length))}o=this.diff_text2(s.diffs),o=o.substring(o.length-this.Patch_Margin);var l=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);l!==""&&(s.length1+=l.length,s.length2+=l.length,s.diffs.length!==0&&s.diffs[s.diffs.length-1][0]===be?s.diffs[s.diffs.length-1][1]+=l:s.diffs.push(new X.Diff(be,l))),A||r.splice(++t,0,s)}}};X.prototype.patch_toText=function(r){for(var e=[],t=0;t5&&i==="xml")return Rr("InvalidXml","XML declaration allowed only at the start of the document.",Ot(r,e));if(r[e]=="?"&&r[e+1]==">"){e++;break}else continue}return e};var kZ=function kZ(r,e){if(r.length>e+5&&r[e+1]==="-"&&r[e+2]==="-"){for(e+=3;e"){e+=2;break}}else if(r.length>e+8&&r[e+1]==="D"&&r[e+2]==="O"&&r[e+3]==="C"&&r[e+4]==="T"&&r[e+5]==="Y"&&r[e+6]==="P"&&r[e+7]==="E"){var t=1;for(e+=8;e"&&(t--,t===0))break}else if(r.length>e+9&&r[e+1]==="["&&r[e+2]==="C"&&r[e+3]==="D"&&r[e+4]==="A"&&r[e+5]==="T"&&r[e+6]==="A"&&r[e+7]==="["){for(e+=8;e"){e+=2;break}}return e};var P$e=function P$e(r,e){var t="",i="",n=!1;for(;e"&&i===""){n=!0;break}t+=r[e]}return i!==""?!1:{value:t,index:e,tagClosed:n}};var RZ=function RZ(r,e){var t=Zw.getAllMatches(r,M$e),i={};for(var n=0;n"&&r[a]!==" "&&r[a]!=="\t"&&r[a]!=="\n"&&r[a]!=="\r";a++)A+=r[a];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),a--),!H$e(A)){var l=void 0;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Rr("InvalidTag",l,Ot(r,a))}var u=P$e(r,a);if(u===!1)return Rr("InvalidAttr","Attributes for '"+A+"' have open quote.",Ot(r,a));var c=u.value;if(a=u.index,c[c.length-1]==="/"){var l2=a-c.length;c=c.substring(0,c.length-1);var f=RZ(c,e);if(f===!0)i=!0;else return Rr(f.err.code,f.err.msg,Ot(r,l2+f.err.line))}else if(s){if(u.tagClosed){if(c.trim().length>0)return Rr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Ot(r,o));if(t.length===0)return Rr("InvalidTag","Closing tag '"+A+"' has not been opened.",Ot(r,o));{var l3=t.pop();if(A!==l3.tagName){var f2=Ot(r,l3.tagStartPos);return Rr("InvalidTag","Expected closing tag '"+l3.tagName+"' (opened in line "+f2.line+", col "+f2.col+") instead of closing tag '"+A+"'.",Ot(r,o))}t.length==0&&(n=!0)}}else return Rr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Ot(r,a));}else{var l5=RZ(c,e);if(l5!==!0)return Rr(l5.err.code,l5.err.msg,Ot(r,a-c.length+l5.err.line));if(n===!0)return Rr("InvalidXml","Multiple possible root nodes found.",Ot(r,a));e.unpairedTags.indexOf(A)!==-1||t.push({tagName:A,tagStartPos:o}),i=!0}for(a++;a0)return Rr("InvalidXml","Invalid '"+JSON.stringify(t.map(function(a){return a.tagName}),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Rr("InvalidXml","Start tag expected.",1);return!0};var O$e="\"",T$e="'";var M$e=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g")});var TZ=I(function(e1){var OZ={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function tagValueProcessor(r,e){return e},attributeValueProcessor:function attributeValueProcessor(r,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function updateTag(r,e,t){return r}},W$e=function W$e(r){return Object.assign({},OZ,r)};e1.buildOptions=W$e;e1.defaultOptions=OZ});var MZ=I(function(LRr,PZ){"use strict";var r1=function(){function r1(e){_class_call_check(this,r1);this.tagname=e,this.child=[],this[":@"]={}}_create_class(r1,[{key:"add",value:function add(e,t){e==="__proto__"&&(e="#__proto__"),this.child.push(_define_property({},e,t))}},{key:"addChild",value:function addChild(e){var _obj;e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push((_obj={},_define_property(_obj,e.tagname,e.child),_define_property(_obj,":@",e[":@"]),_obj)):this.child.push(_define_property({},e.tagname,e.child))}}]);return r1}();PZ.exports=r1});var GZ=I(function(HRr,UZ){var K$e=function K$e(r,e){var t={};if(r[e+3]==="O"&&r[e+4]==="C"&&r[e+5]==="T"&&r[e+6]==="Y"&&r[e+7]==="P"&&r[e+8]==="E"){e=e+9;var i=1,n=!1,a=!1,o="";for(;e"){if(a?r[e-1]==="-"&&r[e-2]==="-"&&(a=!1,i--):i--,i===0)break}else r[e]==="["?n=!0:o+=r[e];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:e}};var V$e=function V$e(r,e){var t="";for(;e1&&arguments[1]!==void 0?arguments[1]:{};if(e=Object.assign({},ter,e),!r||typeof r!="string")return r;var t=r.trim();if(e.skipLike!==void 0&&e.skipLike.test(t))return r;if(r==="0")return 0;if(e.hex&&eer.test(t))return aer(t,16);if(t.search(/[eE]/)!==-1){var i=t.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(i){if(e.leadingZeros)t=(i[1]||"")+i[3];else if(!(i[2]==="0"&&i[3][0]==="."))return r;return e.eNotation?Number(t):r}else return r}else{var i1=rer.exec(t);if(i1){var n=i1[1],a=i1[2],o=ner(i1[3]);if(!e.leadingZeros&&a.length>0&&n&&t[2]!==".")return r;if(!e.leadingZeros&&a.length>0&&!n&&t[1]!==".")return r;if(e.leadingZeros&&a===r)return 0;{var s=Number(t),A=""+s;return A.search(/[eE]/)!==-1?e.eNotation?s:r:t.indexOf(".")!==-1?A==="0"&&o===""||A===o||n&&A==="-"+o?s:r:a?o===A||n+o===A?s:r:t===A||t===n+A?s:r}}else return r}};var ner=function ner(r){return r&&r.indexOf(".")!==-1&&(r=r.replace(/0+$/,""),r==="."?r="0":r[0]==="."?r="0"+r:r[r.length-1]==="."&&(r=r.substr(0,r.length-1))),r};var aer=function aer(r,e){if(parseInt)return parseInt(r,e);if(Number.parseInt)return Number.parseInt(r,e);if(window&&window.parseInt)return window.parseInt(r,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")};var eer=/^[-+]?0x[a-fA-F0-9]+$/,rer=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,ter={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};LZ.exports=ier});var t1=I(function(JRr,WZ){var oer=function oer(r){return typeof r=="function"?r:Array.isArray(r)?function(e){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=r[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;if(typeof t=="string"&&e===t||_instanceof(t,RegExp)&&t.test(e))return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}:function(){return!1}};WZ.exports=oer});var VZ=I(function(KRr,KZ){"use strict";var uer=function uer(r){var e=Object.keys(r);for(var t=0;t0)){o||(r=this.replaceEntitiesValue(r));var s=this.options.tagValueProcessor(e,r,t,n,a);return s==null?r:(typeof s==="undefined"?"undefined":_type_of(s))!=(typeof r==="undefined"?"undefined":_type_of(r))||s!==r?s:this.options.trimValues?a1(r,this.options.parseTagValue,this.options.numberParseOptions):r.trim()===r?a1(r,this.options.parseTagValue,this.options.numberParseOptions):r}};var fer=function fer(r){if(this.options.removeNSPrefix){var e=r.split(":"),t=r.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(r=t+e[1])}return r};var der=function der(r,e,t){if(this.options.ignoreAttributes!==!0&&typeof r=="string"){var i=JZ.getAllMatches(r,ger),n=i.length,a={};for(var o=0;o2&&arguments[2]!==void 0?arguments[2]:">";var i,n="";for(var a=e;a3&&arguments[3]!==void 0?arguments[3]:">";var n=ver(r,e+1,i);if(!n)return;var a=n.data,o=n.index,s=a.search(/\s/),A=a,u=!0;s!==-1&&(A=a.substring(0,s),a=a.substring(s+1).trimStart());var c=A;if(t){var l=A.indexOf(":");l!==-1&&(A=A.substr(l+1),u=A!==n.data.substr(l+1))}return{tagName:A,tagExp:a,closeIndex:o,attrExpPresent:u,rawTagName:c}};var Cer=function Cer(r,e,t){var i=t,n=1;for(;t",t,"".concat(e," is not closed"));if(r.substring(t+2,a).trim()===e&&(n--,n===0))return{tagContent:r.substring(i,t),i:a};t=a}else if(r[t+1]==="?")t=Bs(r,"?>",t+1,"StopNode is not closed.");else if(r.substr(t+1,3)==="!--")t=Bs(r,"-->",t+3,"StopNode is not closed.");else if(r.substr(t+1,2)==="![")t=Bs(r,"]]>",t,"StopNode is not closed.")-2;else{var a1=n1(r,t,">");a1&&((a1&&a1.tagName)===e&&a1.tagExp[a1.tagExp.length-1]!=="/"&&n++,t=a1.closeIndex)}};var a1=function a1(r,e,t){if(e&&typeof r=="string"){var i=r.trim();return i==="true"?!0:i==="false"?!1:Aer(r,t)}else return JZ.isExist(r)?r:""};var JZ=d0(),Tf=MZ(),ser=GZ(),Aer=HZ(),cer=t1(),i1=function i1(e){_class_call_check(this,i1);this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:function(t,i){return String.fromCharCode(Number.parseInt(i,10))}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(t,i){return String.fromCharCode(Number.parseInt(i,16))}}},this.addExternalEntities=uer,this.parseXml=her,this.parseTextData=ler,this.resolveNameSpace=fer,this.buildAttributesMap=der,this.isItStopNode=mer,this.replaceEntitiesValue=per,this.readStopNodeData=Cer,this.saveTextToParentTag=xer,this.addChild=Ier,this.ignoreAttributesFn=cer(this.options.ignoreAttributes)};var ger=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var her=function her(r){r=r.replace(/\r\n?/g,"\n");var e=new Tf("!xml"),t=e,i="",n="";for(var a=0;a",a,"Closing Tag is not closed."),A=r.substring(a+2,s).trim();if(this.options.removeNSPrefix){var l=A.indexOf(":");l!==-1&&(A=A.substr(l+1))}this.options.transformTagName&&(A=this.options.transformTagName(A)),t&&(i=this.saveTextToParentTag(i,t,n));var u=n.substring(n.lastIndexOf(".")+1);if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error("Unpaired tag can not be used as closing tag: "));var c=0;u&&this.options.unpairedTags.indexOf(u)!==-1?(c=n.lastIndexOf(".",n.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=n.lastIndexOf("."),n=n.substring(0,c),t=this.tagsNodeStack.pop(),i="",a=s}else if(r[a+1]==="?"){var s2=n1(r,a,!1,"?>");if(!s2)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,t,n),!(this.options.ignoreDeclaration&&s2.tagName==="?xml"||this.options.ignorePiTags)){var A2=new Tf(s2.tagName);A2.add(this.options.textNodeName,""),s2.tagName!==s2.tagExp&&s2.attrExpPresent&&(A2[":@"]=this.buildAttributesMap(s2.tagExp,n,s2.tagName)),this.addChild(t,A2,n)}a=s2.closeIndex+1}else if(r.substr(a+1,3)==="!--"){var s3=Bs(r,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){var A3=r.substring(a+4,s3-2);i=this.saveTextToParentTag(i,t,n),t.add(this.options.commentPropName,[_define_property({},this.options.textNodeName,A3)])}a=s3}else if(r.substr(a+1,2)==="!D"){var s4=ser(r,a);this.docTypeEntities=s4.entities,a=s4.i}else if(r.substr(a+1,2)==="!["){var s6=Bs(r,"]]>",a,"CDATA is not closed.")-2,A4=r.substring(a+9,s6);i=this.saveTextToParentTag(i,t,n);var u2=this.parseTextData(A4,t.tagname,n,!0,!1,!0,!0);u2==null&&(u2=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[_define_property({},this.options.textNodeName,A4)]):t.add(this.options.textNodeName,u2),a=s6+2}else{var s7=n1(r,a,this.options.removeNSPrefix),A6=s7.tagName,u3=s7.rawTagName,c2=s7.tagExp,l2=s7.attrExpPresent,f=s7.closeIndex;this.options.transformTagName&&(A6=this.options.transformTagName(A6)),t&&i&&t.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,t,n,!1));var g=t;if(g&&this.options.unpairedTags.indexOf(g.tagname)!==-1&&(t=this.tagsNodeStack.pop(),n=n.substring(0,n.lastIndexOf("."))),A6!==e.tagname&&(n+=n?"."+A6:A6),this.isItStopNode(this.options.stopNodes,n,A6)){var h="";if(c2.length>0&&c2.lastIndexOf("/")===c2.length-1)A6[A6.length-1]==="/"?(A6=A6.substr(0,A6.length-1),n=n.substr(0,n.length-1),c2=A6):c2=c2.substr(0,c2.length-1),a=s7.closeIndex;else if(this.options.unpairedTags.indexOf(A6)!==-1)a=s7.closeIndex;else{var p=this.readStopNodeData(r,u3,f+1);if(!p)throw new Error("Unexpected end of ".concat(u3));a=p.i,h=p.tagContent}var d=new Tf(A6);A6!==c2&&l2&&(d[":@"]=this.buildAttributesMap(c2,n,A6)),h&&(h=this.parseTextData(h,A6,n,!0,l2,!0,!0)),n=n.substr(0,n.lastIndexOf(".")),d.add(this.options.textNodeName,h),this.addChild(t,d,n)}else{if(c2.length>0&&c2.lastIndexOf("/")===c2.length-1){A6[A6.length-1]==="/"?(A6=A6.substr(0,A6.length-1),n=n.substr(0,n.length-1),c2=A6):c2=c2.substr(0,c2.length-1),this.options.transformTagName&&(A6=this.options.transformTagName(A6));var h2=new Tf(A6);A6!==c2&&l2&&(h2[":@"]=this.buildAttributesMap(c2,n,A6)),this.addChild(t,h2,n),n=n.substr(0,n.lastIndexOf("."))}else{var h3=new Tf(A6);this.tagsNodeStack.push(t),A6!==c2&&l2&&(h3[":@"]=this.buildAttributesMap(c2,n,A6)),this.addChild(t,h3,n),t=h3}i="",a=f}}}else i+=r[a];return e.child};var per=function per(r){if(this.options.processEntities){for(var e in this.docTypeEntities){var t=this.docTypeEntities[e];r=r.replace(t.regx,t.val)}for(var e1 in this.lastEntities){var t3=this.lastEntities[e1];r=r.replace(t3.regex,t3.val)}if(this.options.htmlEntities)for(var e2 in this.htmlEntities){var t5=this.htmlEntities[e2];r=r.replace(t5.regex,t5.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};KZ.exports=i1});var jZ=I(function(zZ){"use strict";var Ber=function Ber(r,e){return YZ(r,e)};var Eer=function Eer(r){var e=Object.keys(r);for(var t=0;t0&&(n[e.textNodeName]=i):i!==void 0&&(n[e.textNodeName]=i),n}zZ.prettify=Ber});var ZZ=I(function(YRr,XZ){var _TZ=TZ(),ber=_TZ.buildOptions,wer=VZ(),_jZ=jZ(),Ser=_jZ.prettify,_er=$w(),o1=function(){"use strict";function o1(e){_class_call_check(this,o1);this.externalEntities={},this.options=ber(e)}_create_class(o1,[{key:"parse",value:function parse(e,t){if(typeof e!="string")if(e.toString)e=e.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});var a=_er.validate(e,t);if(a!==!0)throw Error("".concat(a.err.msg,":").concat(a.err.line,":").concat(a.err.col))}var i=new wer(this.options);i.addExternalEntities(this.externalEntities);var n=i.parseXml(e);return this.options.preserveOrder||n===void 0?n:Ser(n,this.options)}},{key:"addEntity",value:function addEntity(e,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}]);return o1}();XZ.exports=o1});var i$=I(function(zRr,t$){var Der=function Der(r,e){var t="";return e.format&&e.indentBy.length>0&&(t=qer),e$(r,e,"",t)};var Fer=function Fer(r){var e=Object.keys(r);for(var t=0;t0&&e.processEntities)for(var t=0;t"),a=!1;continue}else if(A===e.commentPropName){n+=i+""),a=!0;continue}else if(A[0]==="?"){var h2=$Z(s[":@"],e),d=A==="?xml"?"":i,p=s[A][0][e.textNodeName];p=p.length!==0?" "+p:"",n+=d+"<".concat(A).concat(p).concat(h2,"?>"),a=!0;continue}var c=i;c!==""&&(c+=e.indentBy);var l=$Z(s[":@"],e),f=i+"<".concat(A).concat(l),g=e$(s[A],e,u,c);e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?n+=f+">":n+=f+"/>":(!g||g.length===0)&&e.suppressEmptyNode?n+=f+"/>":g&&g.endsWith(">")?n+=f+">".concat(g).concat(i,""):(n+=f+">",g&&i!==""&&(g.includes("/>")||g.includes("")),a=!0}return n}t$.exports=Der});var a$=I(function(jRr,n$){"use strict";var mo=function mo(r){this.options=Object.assign({},Oer,r),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=Ner(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Mer),this.processTextOrObjNode=Ter,this.options.format?(this.indentate=Per,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")};var Ter=function Ter(r,e,t,i){var n=this.j2x(r,t+1,i.concat(e));return r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1?this.buildTextValNode(r[this.options.textNodeName],e,n.attrStr,t):this.buildObjectNode(n.val,e,n.attrStr,t)};var Per=function Per(r){return this.options.indentBy.repeat(r)};var Mer=function Mer(r){return r.startsWith(this.options.attributeNamePrefix)&&r!==this.options.textNodeName?r.substr(this.attrPrefixLen):!1};var Rer=i$(),Ner=t1(),Oer={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function tagValueProcessor(r,e){return e},attributeValueProcessor:function attributeValueProcessor(r,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};mo.prototype.build=function(r){return this.options.preserveOrder?Rer(r,this.options):(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(r=_define_property({},this.options.arrayNodeName,r)),this.j2x(r,0,[]).val)};mo.prototype.j2x=function(r,e,t){var i="",n="",a=t.join(".");for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))if(typeof r[o]=="undefined")this.isAttribute(o)&&(n+="");else if(r[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?n+="":o[0]==="?"?n+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:n+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(_instanceof(r[o],Date))n+=this.buildTextValNode(r[o],o,"",e);else if(_type_of(r[o])!="object"){var s=this.isAttribute(o);if(s&&!this.ignoreAttributesFn(s,a))i+=this.buildAttrPairStr(s,""+r[o]);else if(!s)if(o===this.options.textNodeName){var A=this.options.tagValueProcessor(o,""+r[o]);n+=this.replaceEntitiesValue(A)}else n+=this.buildTextValNode(r[o],o,"",e)}else if(Array.isArray(r[o])){var s2=r[o].length,A2="",u="";for(var c=0;c"+r+n:this.options.commentPropName!==!1&&e===this.options.commentPropName&&a.length===0?this.indentate(i)+"")+this.newLine:this.indentate(i)+"<"+e+t+a+this.tagEndChar+r+this.indentate(i)+n}};mo.prototype.closeTag=function(r){var e="";return this.options.unpairedTags.indexOf(r)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=">")+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(i)+"")+this.newLine;if(e[0]==="?")return this.indentate(i)+"<"+e+t+"?"+this.tagEndChar;{var n=this.options.tagValueProcessor(e,r);return n=this.replaceEntitiesValue(n),n===""?this.indentate(i)+"<"+e+t+this.closeTag(e)+this.tagEndChar:this.indentate(i)+"<"+e+t+">"+n+"0&&this.options.processEntities)for(var e=0;e=i.val||t>=r.length-1)return i}};var lee=function lee(r,e){if(typeof r=="number"&&!isNaN(r))return r;if(typeof r!="string")return null;var t=e&&e.mode||"metric";t=v1(t);var i=Zrr.exec(r),n,a;if(!i)return null;n=parseFloat(i[1]),a=i[4],a===void 0&&(a="b"),a=a.toLowerCase();var o;return t=="jedec"&&(o=Wc["_"+a]),o===void 0&&(o=Wc[a]),Math.floor(o.val*n)};fee.exports=cee("metric");var Vrr=/\B(?=(\d{3})+(?!\d))/g,Yrr=/(?:\.0*|(\.[^0]+)0+)$/,Wc={b:{val:1,longName:"byte",name:"B"},kb:{val:Math.pow(1e3,1),longName:"kilobyte",name:"kB"},mb:{val:Math.pow(1e3,2),longName:"megabyte",name:"MB"},gb:{val:Math.pow(1e3,3),longName:"gigabyte",name:"GB"},tb:{val:Math.pow(1e3,4),longName:"terabyte",name:"TB"},pb:{val:Math.pow(1e3,5),longName:"petabyte",name:"PB"},eb:{val:Math.pow(1e3,6),longName:"exabyte",name:"EB"},zb:{val:Math.pow(1e3,7),longName:"zettabyte",name:"ZB"},yb:{val:Math.pow(1e3,8),longName:"yottabyte",name:"YB"},kib:{val:Math.pow(1024,1),longName:"kibibyte",name:"KiB"},mib:{val:Math.pow(1024,2),longName:"mebibyte",name:"MiB"},gib:{val:Math.pow(1024,3),longName:"gibibyte",name:"GiB"},tib:{val:Math.pow(1024,4),longName:"tebibyte",name:"TiB"},pib:{val:Math.pow(1024,5),longName:"pebibyte",name:"PiB"},eib:{val:Math.pow(1024,6),longName:"exbibyte",name:"EiB"},zib:{val:Math.pow(1024,7),longName:"zebibyte",name:"ZiB"},yib:{val:Math.pow(1024,8),longName:"yobibyte",name:"YiB"},_kb:{val:Math.pow(1024,1),longName:"kilobyte",name:"kB"},_mb:{val:Math.pow(1024,2),longName:"megabyte",name:"MB"},_gb:{val:Math.pow(1024,3),longName:"gigabyte",name:"GB"},_tb:{val:Math.pow(1024,4),longName:"terabyte",name:"TB"}};var zrr=m1(["b","kb","mb","gb","tb","pb","eb","zb","yb"]),jrr=m1(["b","kib","mib","gib","tib","pib","eib","zib","yib"]),Xrr=m1(["b","_kb","_mb","_gb","_tb"]),Zrr=/^((-|\+)?(\d+(?:\.\d+)?)) *((k|m|g|t|p|e|z|y)?i?(b))?$/i;function cee(r){r=v1(r);function e(i){return i=i!==void 0?i:{},i.mode===void 0&&(i.mode=r),i}function t(i,n){return $rr(i,e(n))}return t.format=function(n,a){return uee(n,e(a))},t.parse=function(n,a){return lee(n,e(a))},t.withDefaultMode=cee,t}});var xee=I(function(pOr,pee){pee.exports=function(r,e){if(typeof r!="string")throw new TypeError("Expected a string");for(var t=String(r),i="",n=e?!!e.extended:!1,a=e?!!e.globstar:!1,o=!1,s=e&&typeof e.flags=="string"?e.flags:"",A,u=0,c=t.length;u1&&(l==="/"||l===void 0)&&(g==="/"||g===void 0);h?(i+="((?:[^/]*(?:/|$))*)",u++):i+="([^/]*)"}break;default:i+=A}return(!s||!~s.indexOf("g"))&&(i="^"+i+"$"),new RegExp(i,s)}});var la=I(function(F1){"use strict";F1.load=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var i,n,a;for(i in e)a=e[i],t[i]=(n=r[i])!=null?n:a;return t};F1.overwrite=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var i,n;for(i in r)n=r[i],e[i]!==void 0&&(t[i]=n);return t}});var k1=I(function(E8r,Oee){"use strict";var Nee;Nee=function(){function Nee(e,t){_class_call_check(this,Nee);this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}_create_class(Nee,[{key:"push",value:function push(e){var t;this.length++,typeof this.incr=="function"&&this.incr(),t={value:e,prev:this._last,next:null},this._last!=null?(this._last.next=t,this._last=t):this._first=this._last=t}},{key:"shift",value:function shift(){var e;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),e=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,e}},{key:"first",value:function first(){if(this._first!=null)return this._first.value}},{key:"getArray",value:function getArray(){var e,t,i;for(e=this._first,i=[];e!=null;)i.push((t=e,e=e.next,t.value));return i}},{key:"forEachShift",value:function forEachShift(e){var t;for(t=this.shift();t!=null;)e(t),t=this.shift()}},{key:"debug",value:function debug(){var e,t,i,n,a;for(e=this._first,a=[];e!=null;)a.push((t=e,e=e.next,{value:t.value,prev:(i=t.prev)!=null?i.value:void 0,next:(n=t.next)!=null?n.value:void 0}));return a}}]);return Nee}();Oee.exports=Nee});var ws=I(function(Q8r,Uee){"use strict";var Tee=function Tee(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var Pee=function Pee(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){Tee(a,i,n,o,s,"next",A)}function s(A){Tee(a,i,n,o,s,"throw",A)}o(void 0)})}};var Mee;Mee=function(){function Mee(e){var _this=this;var _this1=this;_class_call_check(this,Mee);if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=function(t,i){return _this._addListener(t,"many",i)},this.instance.once=function(t,i){return _this._addListener(t,"once",i)},this.instance.removeAllListeners=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return t!=null?delete _this1._events[t]:_this1._events={}}}_create_class(Mee,[{key:"_addListener",value:function _addListener(e,t,i){var n;return(n=this._events)[e]==null&&(n[e]=[]),this._events[e].push({cb:i,status:t}),this.instance}},{key:"listenerCount",value:function listenerCount(e){return this._events[e]!=null?this._events[e].length:0}},{key:"trigger",value:function trigger(e){for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key]}var i=this;return Pee(function(){var n,a,_tmp,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,4,,5]);e!=="debug"&&i.trigger("debug","Event triggered: ".concat(e),t);if(!(i._events[e]==null))return[3,1];_tmp=void 0;return[3,3];case 1:i._events[e]=i._events[e].filter(function(o){return o.status!=="none"}),a=i._events[e].map(function(){var _$o=Pee(function(s){var A,u,_s1,_tmp,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(s.status!=="none"))return[3,6];s.status==="once"&&(s.status="none");_state.label=1;case 1:_state.trys.push([1,5,,6]);u=typeof s.cb=="function"?(_s1=s).cb.apply(_s1,_to_consumable_array(t)):void 0;if(!(typeof(u!=null?u.then:void 0)=="function"))return[3,3];return[4,u];case 2:_tmp=_state.sent();return[3,4];case 3:_tmp=u;_state.label=4;case 4:return[2,_tmp];case 5:c=_state.sent();return[2,(A=c,i.trigger("error",A),null)];case 6:return[2]}})});return function(s){return _$o.apply(this,arguments)}}());return[4,Promise.all(a)];case 2:_tmp=_state.sent().find(function(o){return o!=null});_state.label=3;case 3:return[2,_tmp];case 4:o=_state.sent();return[2,(n=o,i.trigger("error",n),null)];case 5:return[2]}})})()}}]);return Mee}();Uee.exports=Mee});var Jee=I(function(w8r,Wee){"use strict";var Gee,Lee,Hee;Gee=k1();Lee=ws();Hee=function(){function Hee(e){_class_call_check(this,Hee);var t;this.Events=new Lee(this),this._length=0,this._lists=function(){var _this=this;var i,n,a;for(a=[],t=i=1,n=e;1<=n?i<=n:i>=n;t=1<=n?++i:--i)a.push(new Gee(function(){return _this.incr()},function(){return _this.decr()}));return a}.call(this)}_create_class(Hee,[{key:"incr",value:function incr(){if(this._length++===0)return this.Events.trigger("leftzero")}},{key:"decr",value:function decr(){if(--this._length===0)return this.Events.trigger("zero")}},{key:"push",value:function push(e){return this._lists[e.options.priority].push(e)}},{key:"queued",value:function queued(e){return e!=null?this._lists[e].length:this._length}},{key:"shiftAll",value:function shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}},{key:"getFirst",value:function getFirst(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._lists;var t,i,n;for(t=0,i=e.length;t0)return n;return[]}},{key:"shiftLastFrom",value:function shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}}]);return Hee}();Wee.exports=Hee});var Vc=I(function(_8r,Vee){"use strict";var Kee;Kee=function(Error1){_inherits(Kee,Error1);function Kee(){_class_call_check(this,Kee);return _call_super(this,Kee,arguments)}return Kee}(_wrap_native_super(Error));Vee.exports=Kee});var ere=I(function(D8r,$ee){"use strict";var Yee=function Yee(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var zee=function zee(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){Yee(a,i,n,o,s,"next",A)}function s(A){Yee(a,i,n,o,s,"throw",A)}o(void 0)})}};var O0,jee,Xee,R1,Zee;R1=10;jee=5;Zee=la();O0=Vc();Xee=function(){function Xee(e,t,i,n,a,o,s,A){var _this=this;_class_call_check(this,Xee);this.task=e,this.args=t,this.rejectOnDrop=a,this.Events=o,this._states=s,this.Promise=A,this.options=Zee.load(i,n),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===n.id&&(this.options.id="".concat(this.options.id,"-").concat(this._randomIndex())),this.promise=new this.Promise(function(u,c){_this._resolve=u,_this._reject=c}),this.retryCount=0}_create_class(Xee,[{key:"_sanitizePriority",value:function _sanitizePriority(e){var t;return t=~~e!==e?jee:e,t<0?0:t>R1-1?R1-1:t}},{key:"_randomIndex",value:function _randomIndex(){return Math.random().toString(36).slice(2)}},{key:"doDrop",value:function doDrop(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=_ref.error,tmp=_ref.message,t=tmp===void 0?"This job has been dropped by Bottleneck":tmp;return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e!=null?e:new O0(t)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}},{key:"_assertStatus",value:function _assertStatus(e){var t;if(t=this._states.jobStatus(this.options.id),!(t===e||e==="DONE"&&t===null))throw new O0("Invalid job status ".concat(t,", expected ").concat(e,". Please open an issue at https://github.com/SGrondin/bottleneck/issues"))}},{key:"doReceive",value:function doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}},{key:"doQueue",value:function doQueue(e,t){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}},{key:"doRun",value:function doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}},{key:"doExecute",value:function doExecute(e,t,i,n){var a=this;return zee(function(){var o,s,A,_e1,_a,u;return _ts_generator(this,function(_state){switch(_state.label){case 0:a.retryCount===0?(a._assertStatus("RUNNING"),a._states.next(a.options.id)):a._assertStatus("EXECUTING"),s={args:a.args,options:a.options,retryCount:a.retryCount},a.Events.trigger("executing",s);_state.label=1;case 1:_state.trys.push([1,5,,6]);return[4,e!=null?(_e1=e).schedule.apply(_e1,[a.options,a.task].concat(_to_consumable_array(a.args))):(_a=a).task.apply(_a,_to_consumable_array(a.args))];case 2:if(!(A=_state.sent(),t()))return[3,4];a.doDone(s);return[4,n(a.options,s)];case 3:return[2,(_state.sent(),a._assertStatus("DONE"),a._resolve(A))];case 4:return[3,6];case 5:u=_state.sent();return[2,(o=u,a._onFailure(o,s,t,i,n))];case 6:return[2]}})})()}},{key:"doExpire",value:function doExpire(e,t,i){var n,a;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),a={args:this.args,options:this.options,retryCount:this.retryCount},n=new O0("This job timed out after ".concat(this.options.expiration," ms.")),this._onFailure(n,a,e,t,i)}},{key:"_onFailure",value:function _onFailure(e,t,i,n,a){var o=this;return zee(function(){var s,A,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!i())return[3,5];return[4,o.Events.trigger("failed",e,t)];case 1:s=_state.sent();if(!(s!=null))return[3,2];_tmp=(A=~~s,o.Events.trigger("retry","Retrying ".concat(o.options.id," after ").concat(A," ms"),t),o.retryCount++,n(A));return[3,4];case 2:o.doDone(t);return[4,a(o.options,t)];case 3:_tmp=(_state.sent(),o._assertStatus("DONE"),o._reject(e));_state.label=4;case 4:return[2,_tmp];case 5:return[2]}})})()}},{key:"doDone",value:function doDone(e){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",e)}}]);return Xee}();$ee.exports=Xee});var are=I(function(k8r,nre){"use strict";var rre=function rre(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var li=function li(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){rre(a,i,n,o,s,"next",A)}function s(A){rre(a,i,n,o,s,"throw",A)}o(void 0)})}};var tre,ire,N1;N1=la();tre=Vc();ire=function(){function ire(e,t,i){_class_call_check(this,ire);this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),N1.load(i,i,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_create_class(ire,[{key:"_startHeartbeat",value:function _startHeartbeat(){var _this=this;var e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(function(){var t,i,n,a,o;if(a=Date.now(),_this.storeOptions.reservoirRefreshInterval!=null&&a>=_this._lastReservoirRefresh+_this.storeOptions.reservoirRefreshInterval&&(_this._lastReservoirRefresh=a,_this.storeOptions.reservoir=_this.storeOptions.reservoirRefreshAmount,_this.instance._drainAll(_this.computeCapacity())),_this.storeOptions.reservoirIncreaseInterval!=null&&a>=_this._lastReservoirIncrease+_this.storeOptions.reservoirIncreaseInterval){var s=_this.storeOptions;if(t=s.reservoirIncreaseAmount,n=s.reservoirIncreaseMaximum,o=s.reservoir,_this._lastReservoirIncrease=a,i=n!=null?Math.min(t,n-o):t,i>0)return _this.storeOptions.reservoir+=i,_this.instance._drainAll(_this.computeCapacity())}},this.heartbeatInterval)).unref=="function"?e.unref():void 0:clearInterval(this.heartbeat)}},{key:"__publish__",value:function __publish__(e){var t=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),t.instance.Events.trigger("message",e.toString()))]}})})()}},{key:"__disconnect__",value:function __disconnect__(e){var t=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),clearInterval(t.heartbeat),t.Promise.resolve())]}})})()}},{key:"yieldLoop",value:function yieldLoop(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new this.Promise(function(t,i){return setTimeout(t,e)})}},{key:"computePenalty",value:function computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}},{key:"__updateSettings__",value:function __updateSettings__(e){var t=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),N1.overwrite(e,e,t.storeOptions),t._startHeartbeat(),t.instance._drainAll(t.computeCapacity()),!0)]}})})()}},{key:"__running__",value:function __running__(){var e=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e._running)]}})})()}},{key:"__queued__",value:function __queued__(){var e=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e.instance.queued())]}})})()}},{key:"__done__",value:function __done__(){var e=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e._done)]}})})()}},{key:"__groupCheck__",value:function __groupCheck__(e){var t=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),t._nextRequest+t.timeout=e}},{key:"check",value:function check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}},{key:"__check__",value:function __check__(e){var t=this;return li(function(){var i;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),i=Date.now(),t.check(e,i))]}})})()}},{key:"__register__",value:function __register__(e,t,i){var n=this;return li(function(){var a,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,n.yieldLoop()];case 1:return[2,(_state.sent(),a=Date.now(),n.conditionsCheck(t)?(n._running+=t,n.storeOptions.reservoir!=null&&(n.storeOptions.reservoir-=t),o=Math.max(n._nextRequest-a,0),n._nextRequest=a+o+n.storeOptions.minTime,{success:!0,wait:o,reservoir:n.storeOptions.reservoir}):{success:!1})]}})})()}},{key:"strategyIsBlock",value:function strategyIsBlock(){return this.storeOptions.strategy===3}},{key:"__submit__",value:function __submit__(e,t){var i=this;return li(function(){var n,a,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,i.yieldLoop()];case 1:if(_state.sent(),i.storeOptions.maxConcurrent!=null&&t>i.storeOptions.maxConcurrent)throw new tre("Impossible to add a job having a weight of ".concat(t," to a limiter having a maxConcurrent setting of ").concat(i.storeOptions.maxConcurrent));return[2,(a=Date.now(),o=i.storeOptions.highWater!=null&&e===i.storeOptions.highWater&&!i.check(t,a),n=i.strategyIsBlock()&&(o||i.isBlocked(a)),n&&(i._unblockTime=a+i.computePenalty(),i._nextRequest=i._unblockTime+i.storeOptions.minTime,i.instance._dropAllQueued()),{reachedHWM:o,blocked:n,strategy:i.storeOptions.strategy})]}})})()}},{key:"__free__",value:function __free__(e,t){var i=this;return li(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,i.yieldLoop()];case 1:return[2,(_state.sent(),i._running-=t,i._done+=t,i.instance._drainAll(i.computeCapacity()),{running:i._running})]}})})()}}]);return ire}();nre.exports=ire});var ore=I(function(R8r,vtr){vtr.exports={"blacklist_client.lua":"local blacklist = ARGV[num_static_argv + 1]\n\nif redis.call('zscore', client_last_seen_key, blacklist) then\n redis.call('zadd', client_last_seen_key, 0, blacklist)\nend\n\n\nreturn {}\n","check.lua":"local weight = tonumber(ARGV[num_static_argv + 1])\n\nlocal capacity = process_tick(now, false)['capacity']\nlocal nextRequest = tonumber(redis.call('hget', settings_key, 'nextRequest'))\n\nreturn conditions_check(capacity, weight) and nextRequest - now <= 0\n","conditions_check.lua":"local conditions_check = function (capacity, weight)\n return capacity == nil or weight <= capacity\nend\n","current_reservoir.lua":"return process_tick(now, false)['reservoir']\n","done.lua":"process_tick(now, false)\n\nreturn tonumber(redis.call('hget', settings_key, 'done'))\n","free.lua":"local index = ARGV[num_static_argv + 1]\n\nredis.call('zadd', job_expirations_key, 0, index)\n\nreturn process_tick(now, false)['running']\n","get_time.lua":"redis.replicate_commands()\n\nlocal get_time = function ()\n local time = redis.call('time')\n\n return tonumber(time[1]..string.sub(time[2], 1, 3))\nend\n","group_check.lua":"return not (redis.call('exists', settings_key) == 1)\n","heartbeat.lua":"process_tick(now, true)\n","increment_reservoir.lua":"local incr = tonumber(ARGV[num_static_argv + 1])\n\nredis.call('hincrby', settings_key, 'reservoir', incr)\n\nlocal reservoir = process_tick(now, true)['reservoir']\n\nlocal groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))\nrefresh_expiration(0, 0, groupTimeout)\n\nreturn reservoir\n","init.lua":"local clear = tonumber(ARGV[num_static_argv + 1])\nlocal limiter_version = ARGV[num_static_argv + 2]\nlocal num_local_argv = num_static_argv + 2\n\nif clear == 1 then\n redis.call('del', unpack(KEYS))\nend\n\nif redis.call('exists', settings_key) == 0 then\n -- Create\n local args = {'hmset', settings_key}\n\n for i = num_local_argv + 1, #ARGV do\n table.insert(args, ARGV[i])\n end\n\n redis.call(unpack(args))\n redis.call('hmset', settings_key,\n 'nextRequest', now,\n 'lastReservoirRefresh', now,\n 'lastReservoirIncrease', now,\n 'running', 0,\n 'done', 0,\n 'unblockTime', 0,\n 'capacityPriorityCounter', 0\n )\n\nelse\n -- Apply migrations\n local settings = redis.call('hmget', settings_key,\n 'id',\n 'version'\n )\n local id = settings[1]\n local current_version = settings[2]\n\n if current_version ~= limiter_version then\n local version_digits = {}\n for k, v in string.gmatch(current_version, \"([^.]+)\") do\n table.insert(version_digits, tonumber(k))\n end\n\n -- 2.10.0\n if version_digits[2] < 10 then\n redis.call('hsetnx', settings_key, 'reservoirRefreshInterval', '')\n redis.call('hsetnx', settings_key, 'reservoirRefreshAmount', '')\n redis.call('hsetnx', settings_key, 'lastReservoirRefresh', '')\n redis.call('hsetnx', settings_key, 'done', 0)\n redis.call('hset', settings_key, 'version', '2.10.0')\n end\n\n -- 2.11.1\n if version_digits[2] < 11 or (version_digits[2] == 11 and version_digits[3] < 1) then\n if redis.call('hstrlen', settings_key, 'lastReservoirRefresh') == 0 then\n redis.call('hmset', settings_key,\n 'lastReservoirRefresh', now,\n 'version', '2.11.1'\n )\n end\n end\n\n -- 2.14.0\n if version_digits[2] < 14 then\n local old_running_key = 'b_'..id..'_running'\n local old_executing_key = 'b_'..id..'_executing'\n\n if redis.call('exists', old_running_key) == 1 then\n redis.call('rename', old_running_key, job_weights_key)\n end\n if redis.call('exists', old_executing_key) == 1 then\n redis.call('rename', old_executing_key, job_expirations_key)\n end\n redis.call('hset', settings_key, 'version', '2.14.0')\n end\n\n -- 2.15.2\n if version_digits[2] < 15 or (version_digits[2] == 15 and version_digits[3] < 2) then\n redis.call('hsetnx', settings_key, 'capacityPriorityCounter', 0)\n redis.call('hset', settings_key, 'version', '2.15.2')\n end\n\n -- 2.17.0\n if version_digits[2] < 17 then\n redis.call('hsetnx', settings_key, 'clientTimeout', 10000)\n redis.call('hset', settings_key, 'version', '2.17.0')\n end\n\n -- 2.18.0\n if version_digits[2] < 18 then\n redis.call('hsetnx', settings_key, 'reservoirIncreaseInterval', '')\n redis.call('hsetnx', settings_key, 'reservoirIncreaseAmount', '')\n redis.call('hsetnx', settings_key, 'reservoirIncreaseMaximum', '')\n redis.call('hsetnx', settings_key, 'lastReservoirIncrease', now)\n redis.call('hset', settings_key, 'version', '2.18.0')\n end\n\n end\n\n process_tick(now, false)\nend\n\nlocal groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))\nrefresh_expiration(0, 0, groupTimeout)\n\nreturn {}\n","process_tick.lua":"local process_tick = function (now, always_publish)\n\n local compute_capacity = function (maxConcurrent, running, reservoir)\n if maxConcurrent ~= nil and reservoir ~= nil then\n return math.min((maxConcurrent - running), reservoir)\n elseif maxConcurrent ~= nil then\n return maxConcurrent - running\n elseif reservoir ~= nil then\n return reservoir\n else\n return nil\n end\n end\n\n local settings = redis.call('hmget', settings_key,\n 'id',\n 'maxConcurrent',\n 'running',\n 'reservoir',\n 'reservoirRefreshInterval',\n 'reservoirRefreshAmount',\n 'lastReservoirRefresh',\n 'reservoirIncreaseInterval',\n 'reservoirIncreaseAmount',\n 'reservoirIncreaseMaximum',\n 'lastReservoirIncrease',\n 'capacityPriorityCounter',\n 'clientTimeout'\n )\n local id = settings[1]\n local maxConcurrent = tonumber(settings[2])\n local running = tonumber(settings[3])\n local reservoir = tonumber(settings[4])\n local reservoirRefreshInterval = tonumber(settings[5])\n local reservoirRefreshAmount = tonumber(settings[6])\n local lastReservoirRefresh = tonumber(settings[7])\n local reservoirIncreaseInterval = tonumber(settings[8])\n local reservoirIncreaseAmount = tonumber(settings[9])\n local reservoirIncreaseMaximum = tonumber(settings[10])\n local lastReservoirIncrease = tonumber(settings[11])\n local capacityPriorityCounter = tonumber(settings[12])\n local clientTimeout = tonumber(settings[13])\n\n local initial_capacity = compute_capacity(maxConcurrent, running, reservoir)\n\n --\n -- Process 'running' changes\n --\n local expired = redis.call('zrangebyscore', job_expirations_key, '-inf', '('..now)\n\n if #expired > 0 then\n redis.call('zremrangebyscore', job_expirations_key, '-inf', '('..now)\n\n local flush_batch = function (batch, acc)\n local weights = redis.call('hmget', job_weights_key, unpack(batch))\n redis.call('hdel', job_weights_key, unpack(batch))\n local clients = redis.call('hmget', job_clients_key, unpack(batch))\n redis.call('hdel', job_clients_key, unpack(batch))\n\n -- Calculate sum of removed weights\n for i = 1, #weights do\n acc['total'] = acc['total'] + (tonumber(weights[i]) or 0)\n end\n\n -- Calculate sum of removed weights by client\n local client_weights = {}\n for i = 1, #clients do\n local removed = tonumber(weights[i]) or 0\n if removed > 0 then\n acc['client_weights'][clients[i]] = (acc['client_weights'][clients[i]] or 0) + removed\n end\n end\n end\n\n local acc = {\n ['total'] = 0,\n ['client_weights'] = {}\n }\n local batch_size = 1000\n\n -- Compute changes to Zsets and apply changes to Hashes\n for i = 1, #expired, batch_size do\n local batch = {}\n for j = i, math.min(i + batch_size - 1, #expired) do\n table.insert(batch, expired[j])\n end\n\n flush_batch(batch, acc)\n end\n\n -- Apply changes to Zsets\n if acc['total'] > 0 then\n redis.call('hincrby', settings_key, 'done', acc['total'])\n running = tonumber(redis.call('hincrby', settings_key, 'running', -acc['total']))\n end\n\n for client, weight in pairs(acc['client_weights']) do\n redis.call('zincrby', client_running_key, -weight, client)\n end\n end\n\n --\n -- Process 'reservoir' changes\n --\n local reservoirRefreshActive = reservoirRefreshInterval ~= nil and reservoirRefreshAmount ~= nil\n if reservoirRefreshActive and now >= lastReservoirRefresh + reservoirRefreshInterval then\n reservoir = reservoirRefreshAmount\n redis.call('hmset', settings_key,\n 'reservoir', reservoir,\n 'lastReservoirRefresh', now\n )\n end\n\n local reservoirIncreaseActive = reservoirIncreaseInterval ~= nil and reservoirIncreaseAmount ~= nil\n if reservoirIncreaseActive and now >= lastReservoirIncrease + reservoirIncreaseInterval then\n local num_intervals = math.floor((now - lastReservoirIncrease) / reservoirIncreaseInterval)\n local incr = reservoirIncreaseAmount * num_intervals\n if reservoirIncreaseMaximum ~= nil then\n incr = math.min(incr, reservoirIncreaseMaximum - (reservoir or 0))\n end\n if incr > 0 then\n reservoir = (reservoir or 0) + incr\n end\n redis.call('hmset', settings_key,\n 'reservoir', reservoir,\n 'lastReservoirIncrease', lastReservoirIncrease + (num_intervals * reservoirIncreaseInterval)\n )\n end\n\n --\n -- Clear unresponsive clients\n --\n local unresponsive = redis.call('zrangebyscore', client_last_seen_key, '-inf', (now - clientTimeout))\n local unresponsive_lookup = {}\n local terminated_clients = {}\n for i = 1, #unresponsive do\n unresponsive_lookup[unresponsive[i]] = true\n if tonumber(redis.call('zscore', client_running_key, unresponsive[i])) == 0 then\n table.insert(terminated_clients, unresponsive[i])\n end\n end\n if #terminated_clients > 0 then\n redis.call('zrem', client_running_key, unpack(terminated_clients))\n redis.call('hdel', client_num_queued_key, unpack(terminated_clients))\n redis.call('zrem', client_last_registered_key, unpack(terminated_clients))\n redis.call('zrem', client_last_seen_key, unpack(terminated_clients))\n end\n\n --\n -- Broadcast capacity changes\n --\n local final_capacity = compute_capacity(maxConcurrent, running, reservoir)\n\n if always_publish or (initial_capacity ~= nil and final_capacity == nil) then\n -- always_publish or was not unlimited, now unlimited\n redis.call('publish', 'b_'..id, 'capacity:'..(final_capacity or ''))\n\n elseif initial_capacity ~= nil and final_capacity ~= nil and final_capacity > initial_capacity then\n -- capacity was increased\n -- send the capacity message to the limiter having the lowest number of running jobs\n -- the tiebreaker is the limiter having not registered a job in the longest time\n\n local lowest_concurrency_value = nil\n local lowest_concurrency_clients = {}\n local lowest_concurrency_last_registered = {}\n local client_concurrencies = redis.call('zrange', client_running_key, 0, -1, 'withscores')\n\n for i = 1, #client_concurrencies, 2 do\n local client = client_concurrencies[i]\n local concurrency = tonumber(client_concurrencies[i+1])\n\n if (\n lowest_concurrency_value == nil or lowest_concurrency_value == concurrency\n ) and (\n not unresponsive_lookup[client]\n ) and (\n tonumber(redis.call('hget', client_num_queued_key, client)) > 0\n ) then\n lowest_concurrency_value = concurrency\n table.insert(lowest_concurrency_clients, client)\n local last_registered = tonumber(redis.call('zscore', client_last_registered_key, client))\n table.insert(lowest_concurrency_last_registered, last_registered)\n end\n end\n\n if #lowest_concurrency_clients > 0 then\n local position = 1\n local earliest = lowest_concurrency_last_registered[1]\n\n for i,v in ipairs(lowest_concurrency_last_registered) do\n if v < earliest then\n position = i\n earliest = v\n end\n end\n\n local next_client = lowest_concurrency_clients[position]\n redis.call('publish', 'b_'..id,\n 'capacity-priority:'..(final_capacity or '')..\n ':'..next_client..\n ':'..capacityPriorityCounter\n )\n redis.call('hincrby', settings_key, 'capacityPriorityCounter', '1')\n else\n redis.call('publish', 'b_'..id, 'capacity:'..(final_capacity or ''))\n end\n end\n\n return {\n ['capacity'] = final_capacity,\n ['running'] = running,\n ['reservoir'] = reservoir\n }\nend\n","queued.lua":"local clientTimeout = tonumber(redis.call('hget', settings_key, 'clientTimeout'))\nlocal valid_clients = redis.call('zrangebyscore', client_last_seen_key, (now - clientTimeout), 'inf')\nlocal client_queued = redis.call('hmget', client_num_queued_key, unpack(valid_clients))\n\nlocal sum = 0\nfor i = 1, #client_queued do\n sum = sum + tonumber(client_queued[i])\nend\n\nreturn sum\n","refresh_expiration.lua":"local refresh_expiration = function (now, nextRequest, groupTimeout)\n\n if groupTimeout ~= nil then\n local ttl = (nextRequest + groupTimeout) - now\n\n for i = 1, #KEYS do\n redis.call('pexpire', KEYS[i], ttl)\n end\n end\n\nend\n","refs.lua":"local settings_key = KEYS[1]\nlocal job_weights_key = KEYS[2]\nlocal job_expirations_key = KEYS[3]\nlocal job_clients_key = KEYS[4]\nlocal client_running_key = KEYS[5]\nlocal client_num_queued_key = KEYS[6]\nlocal client_last_registered_key = KEYS[7]\nlocal client_last_seen_key = KEYS[8]\n\nlocal now = tonumber(ARGV[1])\nlocal client = ARGV[2]\n\nlocal num_static_argv = 2\n","register.lua":"local index = ARGV[num_static_argv + 1]\nlocal weight = tonumber(ARGV[num_static_argv + 2])\nlocal expiration = tonumber(ARGV[num_static_argv + 3])\n\nlocal state = process_tick(now, false)\nlocal capacity = state['capacity']\nlocal reservoir = state['reservoir']\n\nlocal settings = redis.call('hmget', settings_key,\n 'nextRequest',\n 'minTime',\n 'groupTimeout'\n)\nlocal nextRequest = tonumber(settings[1])\nlocal minTime = tonumber(settings[2])\nlocal groupTimeout = tonumber(settings[3])\n\nif conditions_check(capacity, weight) then\n\n redis.call('hincrby', settings_key, 'running', weight)\n redis.call('hset', job_weights_key, index, weight)\n if expiration ~= nil then\n redis.call('zadd', job_expirations_key, now + expiration, index)\n end\n redis.call('hset', job_clients_key, index, client)\n redis.call('zincrby', client_running_key, weight, client)\n redis.call('hincrby', client_num_queued_key, client, -1)\n redis.call('zadd', client_last_registered_key, now, client)\n\n local wait = math.max(nextRequest - now, 0)\n local newNextRequest = now + wait + minTime\n\n if reservoir == nil then\n redis.call('hset', settings_key,\n 'nextRequest', newNextRequest\n )\n else\n reservoir = reservoir - weight\n redis.call('hmset', settings_key,\n 'reservoir', reservoir,\n 'nextRequest', newNextRequest\n )\n end\n\n refresh_expiration(now, newNextRequest, groupTimeout)\n\n return {true, wait, reservoir}\n\nelse\n return {false}\nend\n","register_client.lua":"local queued = tonumber(ARGV[num_static_argv + 1])\n\n-- Could have been re-registered concurrently\nif not redis.call('zscore', client_last_seen_key, client) then\n redis.call('zadd', client_running_key, 0, client)\n redis.call('hset', client_num_queued_key, client, queued)\n redis.call('zadd', client_last_registered_key, 0, client)\nend\n\nredis.call('zadd', client_last_seen_key, now, client)\n\nreturn {}\n","running.lua":"return process_tick(now, false)['running']\n","submit.lua":"local queueLength = tonumber(ARGV[num_static_argv + 1])\nlocal weight = tonumber(ARGV[num_static_argv + 2])\n\nlocal capacity = process_tick(now, false)['capacity']\n\nlocal settings = redis.call('hmget', settings_key,\n 'id',\n 'maxConcurrent',\n 'highWater',\n 'nextRequest',\n 'strategy',\n 'unblockTime',\n 'penalty',\n 'minTime',\n 'groupTimeout'\n)\nlocal id = settings[1]\nlocal maxConcurrent = tonumber(settings[2])\nlocal highWater = tonumber(settings[3])\nlocal nextRequest = tonumber(settings[4])\nlocal strategy = tonumber(settings[5])\nlocal unblockTime = tonumber(settings[6])\nlocal penalty = tonumber(settings[7])\nlocal minTime = tonumber(settings[8])\nlocal groupTimeout = tonumber(settings[9])\n\nif maxConcurrent ~= nil and weight > maxConcurrent then\n return redis.error_reply('OVERWEIGHT:'..weight..':'..maxConcurrent)\nend\n\nlocal reachedHWM = (highWater ~= nil and queueLength == highWater\n and not (\n conditions_check(capacity, weight)\n and nextRequest - now <= 0\n )\n)\n\nlocal blocked = strategy == 3 and (reachedHWM or unblockTime >= now)\n\nif blocked then\n local computedPenalty = penalty\n if computedPenalty == nil then\n if minTime == 0 then\n computedPenalty = 5000\n else\n computedPenalty = 15 * minTime\n end\n end\n\n local newNextRequest = now + computedPenalty + minTime\n\n redis.call('hmset', settings_key,\n 'unblockTime', now + computedPenalty,\n 'nextRequest', newNextRequest\n )\n\n local clients_queued_reset = redis.call('hkeys', client_num_queued_key)\n local queued_reset = {}\n for i = 1, #clients_queued_reset do\n table.insert(queued_reset, clients_queued_reset[i])\n table.insert(queued_reset, 0)\n end\n redis.call('hmset', client_num_queued_key, unpack(queued_reset))\n\n redis.call('publish', 'b_'..id, 'blocked:')\n\n refresh_expiration(now, newNextRequest, groupTimeout)\nend\n\nif not blocked and not reachedHWM then\n redis.call('hincrby', client_num_queued_key, client, 1)\nend\n\nreturn {reachedHWM, blocked, strategy}\n","update_settings.lua":"local args = {'hmset', settings_key}\n\nfor i = num_static_argv + 1, #ARGV do\n table.insert(args, ARGV[i])\nend\n\nredis.call(unpack(args))\n\nprocess_tick(now, true)\n\nlocal groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))\nrefresh_expiration(0, 0, groupTimeout)\n\nreturn {}\n","validate_client.lua":"if not redis.call('zscore', client_last_seen_key, client) then\n return redis.error_reply('UNKNOWN_CLIENT')\nend\n\nredis.call('zadd', client_last_seen_key, now, client)\n","validate_keys.lua":"if not (redis.call('exists', settings_key) == 1) then\n return redis.error_reply('SETTINGS_KEY_NOT_FOUND')\nend\n"}});var M0=I(function(Hr){"use strict";var T0,wr,P0;wr=ore();T0={refs:wr["refs.lua"],validate_keys:wr["validate_keys.lua"],validate_client:wr["validate_client.lua"],refresh_expiration:wr["refresh_expiration.lua"],process_tick:wr["process_tick.lua"],conditions_check:wr["conditions_check.lua"],get_time:wr["get_time.lua"]};Hr.allKeys=function(r){return["b_".concat(r,"_settings"),"b_".concat(r,"_job_weights"),"b_".concat(r,"_job_expirations"),"b_".concat(r,"_job_clients"),"b_".concat(r,"_client_running"),"b_".concat(r,"_client_num_queued"),"b_".concat(r,"_client_last_registered"),"b_".concat(r,"_client_last_seen")]};P0={init:{keys:Hr.allKeys,headers:["process_tick"],refresh_expiration:!0,code:wr["init.lua"]},group_check:{keys:Hr.allKeys,headers:[],refresh_expiration:!1,code:wr["group_check.lua"]},register_client:{keys:Hr.allKeys,headers:["validate_keys"],refresh_expiration:!1,code:wr["register_client.lua"]},blacklist_client:{keys:Hr.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:wr["blacklist_client.lua"]},heartbeat:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:wr["heartbeat.lua"]},update_settings:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:wr["update_settings.lua"]},running:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:wr["running.lua"]},queued:{keys:Hr.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:wr["queued.lua"]},done:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:wr["done.lua"]},check:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!1,code:wr["check.lua"]},submit:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:wr["submit.lua"]},register:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:wr["register.lua"]},free:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:wr["free.lua"]},current_reservoir:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:wr["current_reservoir.lua"]},increment_reservoir:{keys:Hr.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:wr["increment_reservoir.lua"]}};Hr.names=Object.keys(P0);Hr.keys=function(r,e){return P0[r].keys(e)};Hr.payload=function(r){var e;return e=P0[r],Array.prototype.concat(T0.refs,e.headers.map(function(t){return T0[t]}),e.refresh_expiration?T0.refresh_expiration:"",e.code).join("\n")}});var U0=I(function(exports,module){"use strict";var asyncGeneratorStep=function asyncGeneratorStep(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var _asyncToGenerator=function _asyncToGenerator(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){asyncGeneratorStep(a,i,n,o,s,"next",A)}function s(A){asyncGeneratorStep(a,i,n,o,s,"throw",A)}o(void 0)})}};var Events,RedisConnection,Scripts,parser;parser=la();Events=ws();Scripts=M0();RedisConnection=function(){var RedisConnection=function(){function RedisConnection(){var _this=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,RedisConnection);parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("redis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.client==null&&(this.client=this.Redis.createClient(this.clientOptions)),this.subscriber=this.client.duplicate(),this.limiters={},this.shas={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(function(){return _this._loadScripts()}).then(function(){return{client:_this.client,subscriber:_this.subscriber}})}_create_class(RedisConnection,[{key:"_setup",value:function _setup(r,e){var _this=this;return r.setMaxListeners(0),new this.Promise(function(t,i){return r.on("error",function(n){return _this.Events.trigger("error",n)}),e&&r.on("message",function(n,a){var o;return(o=_this.limiters[n])!=null?o._store.onMessage(n,a):void 0}),r.ready?t():r.once("ready",t)})}},{key:"_loadScript",value:function _loadScript(r){var _this=this;return new this.Promise(function(e,t){var i;return i=Scripts.payload(r),_this.client.multi([["script","load",i]]).exec(function(n,a){return n!=null?t(n):(_this.shas[r]=a[0],e(a[0]))})})}},{key:"_loadScripts",value:function _loadScripts(){var _this=this;return this.Promise.all(Scripts.names.map(function(r){return _this._loadScript(r)}))}},{key:"__runCommand__",value:function __runCommand__(r){var e=this;return _asyncToGenerator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.ready];case 1:return[2,(_state.sent(),new e.Promise(function(t,i){return e.client.multi([r]).exec_atomic(function(n,a){return n!=null?i(n):t(a[0])})}))]}})})()}},{key:"__addLimiter__",value:function __addLimiter__(r){var _this=this;return this.Promise.all([r.channel(),r.channel_client()].map(function(e){return new _this.Promise(function(t,i){var n;return n=function(a){if(a===e)return _this.subscriber.removeListener("subscribe",n),_this.limiters[e]=r,t()},_this.subscriber.on("subscribe",n),_this.subscriber.subscribe(e)})}))}},{key:"__removeLimiter__",value:function __removeLimiter__(r){var e=this;return this.Promise.all([r.channel(),r.channel_client()].map(function(){var t=_asyncToGenerator(function(i){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=e.terminated;if(_tmp)return[3,2];return[4,new e.Promise(function(n,a){return e.subscriber.unsubscribe(i,function(o,s){if(o!=null)return a(o);if(s===i)return n()})})];case 1:_tmp=_state.sent();_state.label=2;case 2:return[2,(_tmp,delete e.limiters[i])]}})});return function(i){return t.apply(this,arguments)}}()))}},{key:"__scriptArgs__",value:function __scriptArgs__(r,e,t,i){var n;return n=Scripts.keys(r,e),[this.shas[r],n.length].concat(n,t,i)}},{key:"__scriptFn__",value:function __scriptFn__(r){return this.client.evalsha.bind(this.client)}},{key:"disconnect",value:function disconnect(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var e,t,i,n;for(n=Object.keys(this.limiters),e=0,i=n.length;e0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,IORedisConnection);parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("ioredis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.clusterNodes!=null?(this.client=new this.Redis.Cluster(this.clusterNodes,this.clientOptions),this.subscriber=new this.Redis.Cluster(this.clusterNodes,this.clientOptions)):this.client!=null&&this.client.duplicate==null?this.subscriber=new this.Redis.Cluster(this.client.startupNodes,this.client.options):(this.client==null&&(this.client=new this.Redis(this.clientOptions)),this.subscriber=this.client.duplicate()),this.limiters={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(function(){return _this._loadScripts(),{client:_this.client,subscriber:_this.subscriber}})}_create_class(IORedisConnection,[{key:"_setup",value:function _setup(r,e){var _this=this;return r.setMaxListeners(0),new this.Promise(function(t,i){return r.on("error",function(n){return _this.Events.trigger("error",n)}),e&&r.on("message",function(n,a){var o;return(o=_this.limiters[n])!=null?o._store.onMessage(n,a):void 0}),r.status==="ready"?t():r.once("ready",t)})}},{key:"_loadScripts",value:function _loadScripts(){var _this=this;return Scripts.names.forEach(function(r){return _this.client.defineCommand(r,{lua:Scripts.payload(r)})})}},{key:"__runCommand__",value:function __runCommand__(r){var e=this;return _asyncToGenerator(function(){var t,i,n,a,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.ready];case 1:_state.sent();return[4,e.client.pipeline([r]).exec()];case 2:n=_state.sent(),a=_slicedToArray(n,1),o=_slicedToArray(a[0],2);return[2,(t=o[0],i=o[1],i)]}})})()}},{key:"__addLimiter__",value:function __addLimiter__(r){var _this=this;return this.Promise.all([r.channel(),r.channel_client()].map(function(e){return new _this.Promise(function(t,i){return _this.subscriber.subscribe(e,function(){return _this.limiters[e]=r,t()})})}))}},{key:"__removeLimiter__",value:function __removeLimiter__(r){var e=this;return[r.channel(),r.channel_client()].forEach(function(){var t=_asyncToGenerator(function(i){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=e.terminated;if(_tmp)return[3,2];return[4,e.subscriber.unsubscribe(i)];case 1:_tmp=_state.sent();_state.label=2;case 2:return[2,(_tmp,delete e.limiters[i])]}})});return function(i){return t.apply(this,arguments)}}())}},{key:"__scriptArgs__",value:function __scriptArgs__(r,e,t,i){var n;return n=Scripts.keys(r,e),[n.length].concat(n,t,i)}},{key:"__scriptFn__",value:function __scriptFn__(r){return this.client[r].bind(this.client)}},{key:"disconnect",value:function disconnect(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var e,t,i,n;for(n=Object.keys(this.limiters),e=0,i=n.length;e0?~~o:void 0)];case 1:return[2,_state.sent()];case 2:if(!(g==="capacity-priority"))return[3,7];d=o.split(":"),p=L0(d,3);f=p[0],l=p[1],a=p[2],n=f.length>0?~~f:void 0;if(!(l===i.clientId))return[3,5];return[4,i.instance._drainAll(n)];case 3:s=_state.sent(),u=n!=null?n-(s||0):"";return[4,i.clients.client.publish(i.instance.channel(),"capacity-priority:".concat(u,"::").concat(a))];case 4:_tmp=_state.sent();return[3,6];case 5:_tmp=l===""?(clearTimeout(i.capacityPriorityCounters[a]),delete i.capacityPriorityCounters[a],i.instance._drainAll(n)):i.capacityPriorityCounters[a]=setTimeout(Qn(function(){var _$m,x;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);delete i.capacityPriorityCounters[a];return[4,i.runScript("blacklist_client",[l])];case 1:_state.sent();return[4,i.instance._drainAll(n)];case 2:return[2,_state.sent()];case 3:x=_state.sent();return[2,(_$m=x,i.instance.Events.trigger("error",_$m))];case 4:return[2]}})}),1e3);_state.label=6;case 6:return[2,_tmp];case 7:if(g==="message")return[2,i.instance.Events.trigger("message",o)];if(!(g==="blocked"))return[3,9];return[4,i.instance._dropAllQueued()];case 8:return[2,_state.sent()];case 9:return[3,11];case 10:m=_state.sent();return[2,(A=m,i.instance.Events.trigger("error",A))];case 11:return[2]}})})()}},{key:"__disconnect__",value:function __disconnect__(e){return clearInterval(this.heartbeat),this.sharedConnection?this.connection.__removeLimiter__(this.instance):this.connection.disconnect(e)}},{key:"runScript",value:function runScript(e,t){var i=this;return Qn(function(){var _this,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_tmp=e==="init"||e==="register_client";if(_tmp)return[3,2];return[4,i.ready];case 1:_tmp=_state.sent();_state.label=2;case 2:return[2,(_tmp,new i.Promise(function(n,a){var o,s;return o=[Date.now(),i.clientId].concat(t),i.instance.Events.trigger("debug","Calling Redis script: ".concat(e,".lua"),o),s=i.connection.__scriptArgs__(e,i.originalId,o,function(A,u){return A!=null?a(A):n(u)}),i.connection.__scriptFn__(e).apply(_this,_to_consumable_array(s))}).catch(function(n){return n.message==="SETTINGS_KEY_NOT_FOUND"?e==="heartbeat"?i.Promise.resolve():i.runScript("init",i.prepareInitSettings(!1)).then(function(){return i.runScript(e,t)}):n.message==="UNKNOWN_CLIENT"?i.runScript("register_client",[i.instance.queued()]).then(function(){return i.runScript(e,t)}):i.Promise.reject(n)}))]}})})()}},{key:"prepareArray",value:function prepareArray(e){var t,i,n,a;for(n=[],t=0,i=e.length;t0))return[3,2];e._running++;u=e._queue.shift();A=u.task,t=u.args,o=u.resolve,a=u.reject;return[4,mre(function(){var c;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,A.apply(void 0,_to_consumable_array(t))];case 1:return[2,(s=_state.sent(),function(){return o(s)})];case 2:c=_state.sent();return[2,(n=c,function(){return a(n)})];case 3:return[2]}})})()];case 1:return[2,(i=_state.sent(),e._running--,e._tryToRun(),i())];case 2:return[2]}})})()}},{key:"schedule",value:function schedule(e){for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key]}var i,n,a;return a=n=null,i=new this.Promise(function(o,s){return a=o,n=s}),this._queue.push({task:e,args:t,resolve:a,reject:n}),this._tryToRun(),i}}]);return Cre}();Bre.exports=Cre});var yre=I(function(L8r,ytr){ytr.exports={version:"2.19.5"}});var Fre=I(function(H8r,Dre){"use strict";var Qtr=function Qtr(r,e){return Str(r)||wtr(r,e)||btr()};var btr=function btr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var wtr=function wtr(r,e){var t=[],i=!0,n=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));i=!0);}catch(A){n=!0,a=A}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw a}}return t};var Str=function Str(r){if(Array.isArray(r))return r};var Qre=function Qre(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var T1=function T1(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){Qre(a,i,n,o,s,"next",A)}function s(A){Qre(a,i,n,o,s,"throw",A)}o(void 0)})}};var bre,wre,Sre,_re,qre,H0;H0=la();bre=ws();_re=U0();Sre=G0();qre=M0();wre=function(){var r=function(){function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,r);this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=t,H0.load(this.limiterOptions,this.defaults,this),this.Events=new bre(this),this.instances={},this.Bottleneck=P1(),this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new _re(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new Sre(Object.assign({},this.limiterOptions,{Events:this.Events}))))}_create_class(r,[{key:"key",value:function key(){var _this=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var i;return(i=this.instances[t])!=null?i:function(){var n;return n=_this.instances[t]=new _this.Bottleneck(Object.assign(_this.limiterOptions,{id:"".concat(_this.id,"-").concat(t),timeout:_this.timeout,connection:_this.connection})),_this.Events.trigger("created",n,t),n}()}},{key:"deleteKey",value:function deleteKey(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var i=this;return T1(function(){var n,a,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:a=i.instances[t];_tmp=i.connection;if(!_tmp)return[3,2];return[4,i.connection.__runCommand__(["del"].concat(_to_consumable_array(qre.allKeys("".concat(i.id,"-").concat(t)))))];case 1:_tmp=n=_state.sent();_state.label=2;case 2:_tmp;_tmp1=a!=null;if(!_tmp1)return[3,4];delete i.instances[t];return[4,a.disconnect()];case 3:_tmp1=_state.sent();_state.label=4;case 4:return[2,(_tmp1,a!=null||n>0)]}})})()}},{key:"limiters",value:function limiters(){var t,i,n,a;i=this.instances,n=[];for(t in i)a=i[t],n.push({key:t,limiter:a});return n}},{key:"keys",value:function keys(){return Object.keys(this.instances)}},{key:"clusterKeys",value:function clusterKeys(){var t=this;return T1(function(){var i,n,a,o,s,A,u,c,l,f,g;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(t.connection==null)return[2,t.Promise.resolve(t.keys())];A=[],i=null,l="b_".concat(t.id,"-").length,n=9;_state.label=1;case 1:if(!(i!==0))return[3,4];return[4,t.connection.__runCommand__(["scan",i!=null?i:0,"match","b_".concat(t.id,"-*_settings"),"count",1e4])];case 2:f=_state.sent(),g=Qtr(f,2);for(c=g[0],a=g[1],i=~~c,o=0,u=a.length;o0&&arguments[0]!==void 0?arguments[0]:{};if(H0.overwrite(t,this.defaults,this),H0.overwrite(t,t,this.limiterOptions),t.timeout!=null)return this._startAutoCleanup()}},{key:"disconnect",value:function disconnect(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var i;if(!this.sharedConnection)return(i=this.connection)!=null?i.disconnect(t):void 0}}]);return r}();return r.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"},r}.call(void 0);Dre.exports=wre});var Tre=I(function(W8r,Ore){"use strict";var kre,Rre,Nre;Nre=la();Rre=ws();kre=function(){var r=function(){function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,r);this.options=t,Nre.load(this.options,this.defaults,this),this.Events=new Rre(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_create_class(r,[{key:"_resetPromise",value:function _resetPromise(){var _this=this;return this._promise=new this.Promise(function(t,i){return _this._resolve=t})}},{key:"_flush",value:function _flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}},{key:"add",value:function add(t){var _this=this;var i;return this._arr.push(t),i=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(function(){return _this._flush()},this.maxTime)),i}}]);return r}();return r.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise},r}.call(void 0);Ore.exports=kre});var P1=I(function(J8r,zre){"use strict";var Pre=function Pre(r,e){return Lre(r)||_tr(r,e)||Gre()};var _tr=function _tr(r,e){var t=[],i=!0,n=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));i=!0);}catch(A){n=!0,a=A}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw a}}return t};var W0=function W0(r){return Lre(r)||qtr(r)||Gre()};var Gre=function Gre(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var qtr=function qtr(r){if(Symbol.iterator in Object(r)||Object.prototype.toString.call(r)==="[object Arguments]")return Array.from(r)};var Lre=function Lre(r){if(Array.isArray(r))return r};var Mre=function Mre(r,e,t,i,n,a,o){try{var s=r[a](o),A=s.value}catch(u){t(u);return}s.done?e(A):Promise.resolve(A).then(i,n)};var M1=function M1(r){return function(){var e=this,t=arguments;return new Promise(function(i,n){var a=r.apply(e,t);function o(A){Mre(a,i,n,o,s,"next",A)}function s(A){Mre(a,i,n,o,s,"throw",A)}o(void 0)})}};var Hre,Wre,U1,G1,Jre,L1,Kre,Vre,Yre,H1,bn,Ure=[].splice;L1=10;Wre=5;bn=la();Kre=Jee();G1=ere();Jre=are();Vre=gre();U1=ws();Yre=pre();H1=Ere();Hre=function(){var r=function(){function r(){var _this=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var _len=arguments.length,i=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){i[_key-1]=arguments[_key]}_class_call_check(this,r);var n,a;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,i),bn.load(t,this.instanceDefaults,this),this._queues=new Kre(L1),this._scheduled={},this._states=new Yre(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new U1(this),this._submitLock=new H1("submit",this.Promise),this._registerLock=new H1("register",this.Promise),a=bn.load(t,this.storeDefaults,{}),this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return n=bn.load(t,this.redisStoreDefaults,{}),new Vre(this,a,n);if(this.datastore==="local")return n=bn.load(t,this.localStoreDefaults,{}),new Jre(this,a,n);throw new r.prototype.BottleneckError("Invalid datastore type: ".concat(this.datastore))}.call(this),this._queues.on("leftzero",function(){var o;return(o=_this._store.heartbeat)!=null&&typeof o.ref=="function"?o.ref():void 0}),this._queues.on("zero",function(){var o;return(o=_this._store.heartbeat)!=null&&typeof o.unref=="function"?o.unref():void 0})}_create_class(r,[{key:"_validateOptions",value:function _validateOptions(t,i){if(!(t!=null&&(typeof t==="undefined"?"undefined":_type_of(t))=="object"&&i.length===0))throw new r.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}},{key:"ready",value:function ready(){return this._store.ready}},{key:"clients",value:function clients(){return this._store.clients}},{key:"channel",value:function channel(){return"b_".concat(this.id)}},{key:"channel_client",value:function channel_client(){return"b_".concat(this.id,"_").concat(this._store.clientId)}},{key:"publish",value:function publish(t){return this._store.__publish__(t)}},{key:"disconnect",value:function disconnect(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this._store.__disconnect__(t)}},{key:"chain",value:function chain(t){return this._limiter=t,this}},{key:"queued",value:function queued(t){return this._queues.queued(t)}},{key:"clusterQueued",value:function clusterQueued(){return this._store.__queued__()}},{key:"empty",value:function empty(){return this.queued()===0&&this._submitLock.isEmpty()}},{key:"running",value:function running(){return this._store.__running__()}},{key:"done",value:function done(){return this._store.__done__()}},{key:"jobStatus",value:function jobStatus(t){return this._states.jobStatus(t)}},{key:"jobs",value:function jobs(t){return this._states.statusJobs(t)}},{key:"counts",value:function counts(){return this._states.statusCounts()}},{key:"_randomIndex",value:function _randomIndex(){return Math.random().toString(36).slice(2)}},{key:"check",value:function check(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return this._store.__check__(t)}},{key:"_clearGlobalState",value:function _clearGlobalState(t){return this._scheduled[t]!=null?(clearTimeout(this._scheduled[t].expiration),delete this._scheduled[t],!0):!1}},{key:"_free",value:function _free(t,i,n,a){var o=this;return M1(function(){var s,A,u,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,o._store.__free__(t,n.weight)];case 1:u=_state.sent();if(A=u.running,o.Events.trigger("debug","Freed ".concat(n.id),a),A===0&&o.empty())return[2,o.Events.trigger("idle")];return[3,3];case 2:c=_state.sent();return[2,(s=c,o.Events.trigger("error",s))];case 3:return[2]}})})()}},{key:"_run",value:function _run(t,i,n){var _this=this;var a,o,s;return i.doRun(),a=this._clearGlobalState.bind(this,t),s=this._run.bind(this,t,i),o=this._free.bind(this,t,i),this._scheduled[t]={timeout:setTimeout(function(){return i.doExecute(_this._limiter,a,s,o)},n),expiration:i.options.expiration!=null?setTimeout(function(){return i.doExpire(a,s,o)},n+i.options.expiration):void 0,job:i}}},{key:"_drainOne",value:function _drainOne(t){var _this=this;return this._registerLock.schedule(function(){var i,n,a,o,s;if(_this.queued()===0)return _this.Promise.resolve(null);s=_this._queues.getFirst();var A=a=s.first();return o=A.options,i=A.args,t!=null&&o.weight>t?_this.Promise.resolve(null):(_this.Events.trigger("debug","Draining ".concat(o.id),{args:i,options:o}),n=_this._randomIndex(),_this._store.__register__(n,o.weight,o.expiration).then(function(param){var u=param.success,c=param.wait,l=param.reservoir;var f;return _this.Events.trigger("debug","Drained ".concat(o.id),{success:u,args:i,options:o}),u?(s.shift(),f=_this.empty(),f&&_this.Events.trigger("empty"),l===0&&_this.Events.trigger("depleted",f),_this._run(n,a,c),_this.Promise.resolve(o.weight)):_this.Promise.resolve(null)}))})}},{key:"_drainAll",value:function _drainAll(t){var _this=this;var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._drainOne(t).then(function(n){var a;return n!=null?(a=t!=null?t-n:t,_this._drainAll(a,i+n)):_this.Promise.resolve(i)}).catch(function(n){return _this.Events.trigger("error",n)})}},{key:"_dropAllQueued",value:function _dropAllQueued(t){return this._queues.shiftAll(function(i){return i.doDrop({message:t})})}},{key:"stop",value:function stop(){var _this=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var i,n;return t=bn.load(t,this.stopDefaults),n=function(a){var o;return o=function(){var s;return s=_this._states.counts,s[0]+s[1]+s[2]+s[3]===a},new _this.Promise(function(s,A){return o()?s():_this.on("done",function(){if(o())return _this.removeAllListeners("done"),s()})})},i=t.dropWaitingJobs?(this._run=function i(a,o){return o.doDrop({message:t.dropErrorMessage})},this._drainOne=function(){return _this.Promise.resolve(null)},this._registerLock.schedule(function(){return _this._submitLock.schedule(function(){var a,o,s;o=_this._scheduled;for(a in o)s=o[a],_this.jobStatus(s.job.options.id)==="RUNNING"&&(clearTimeout(s.timeout),clearTimeout(s.expiration),s.job.doDrop({message:t.dropErrorMessage}));return _this._dropAllQueued(t.dropErrorMessage),n(0)})})):this.schedule({priority:L1-1,weight:0},function(){return n(1)}),this._receive=function(a){return a._reject(new r.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=function(){return _this.Promise.reject(new r.prototype.BottleneckError("stop() has already been called"))},i}},{key:"_addToQueue",value:function _addToQueue(t){var i=this;return M1(function(){var n,a,o,s,A,u,c,l,f,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=t.args,s=t.options;_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,i._store.__submit__(i.queued(),s.weight)];case 2:l=_state.sent();A=l.reachedHWM,a=l.blocked,c=l.strategy;return[3,4];case 3:f=_state.sent();return[2,(o=f,i.Events.trigger("debug","Could not queue ".concat(s.id),{args:n,options:s,error:o}),t.doDrop({error:o}),!1)];case 4:if(!a)return[3,5];_tmp=(t.doDrop(),!0);return[3,9];case 5:if(!(A&&(u=c===r.prototype.strategy.LEAK?i._queues.shiftLastFrom(s.priority):c===r.prototype.strategy.OVERFLOW_PRIORITY?i._queues.shiftLastFrom(s.priority+1):c===r.prototype.strategy.OVERFLOW?t:void 0,u!=null&&u.doDrop(),u==null||c===r.prototype.strategy.OVERFLOW)))return[3,6];_tmp1=(u==null&&t.doDrop(),A);return[3,8];case 6:t.doQueue(A,a),i._queues.push(t);return[4,i._drainAll()];case 7:_tmp1=(_state.sent(),A);_state.label=8;case 8:_tmp=_tmp1;_state.label=9;case 9:return[2,_tmp]}})})()}},{key:"_receive",value:function _receive(t){return this._states.jobStatus(t.options.id)!=null?(t._reject(new r.prototype.BottleneckError("A job with the same id already exists (id=".concat(t.options.id,")"))),!1):(t.doReceive(),this._submitLock.schedule(this._addToQueue,t))}},{key:"submit",value:function submit(){for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key]}var _this=this;var i,n,a,o,s,A,u;if(typeof t[0]=="function"){var c,l,f,g;s=t,c=s,l=W0(c),n=l[0],t=l.slice(1),f=Ure.call(t,-1),g=Pre(f,1),i=g[0],o=bn.load({},this.jobDefaults)}else{var h,d,p,m;A=t,h=A,d=W0(h),o=d[0],n=d[1],t=d.slice(2),p=Ure.call(t,-1),m=Pre(p,1),i=m[0],o=bn.load(o,this.jobDefaults)}return u=function(){for(var _len=arguments.length,x=new Array(_len),_key=0;_key<_len;_key++){x[_key]=arguments[_key]}return new _this.Promise(function(v,E){return n.apply(void 0,_to_consumable_array(x).concat([function(){for(var _len=arguments.length,S=new Array(_len),_key=0;_key<_len;_key++){S[_key]=arguments[_key]}return(S[0]!=null?E:v)(S)}]))})},a=new G1(u,t,o,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),a.promise.then(function(x){return typeof i=="function"?i.apply(void 0,_to_consumable_array(x)):void 0}).catch(function(x){return Array.isArray(x)?typeof i=="function"?i.apply(void 0,_to_consumable_array(x)):void 0:typeof i=="function"?i(x):void 0}),this._receive(a)}},{key:"schedule",value:function schedule(){for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key]}var i,n,a;if(typeof t[0]=="function"){var o=t,s=W0(o);a=s[0],t=s.slice(1),n={}}else{var A=t,u=W0(A);n=u[0],a=u[1],t=u.slice(2)}return i=new G1(a,t,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(i),i.promise}},{key:"wrap",value:function wrap(t){var i,n;return i=this.schedule.bind(this),n=function n(){for(var _len=arguments.length,o=new Array(_len),_key=0;_key<_len;_key++){o[_key]=arguments[_key]}return i.apply(void 0,[t.bind(this)].concat(_to_consumable_array(o)))},n.withOptions=function(a){for(var _len=arguments.length,o=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){o[_key-1]=arguments[_key]}return i.apply(void 0,[a,t].concat(_to_consumable_array(o)))},n}},{key:"updateSettings",value:function updateSettings(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var i=this;return M1(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,i._store.__updateSettings__(bn.overwrite(t,i.storeDefaults))];case 1:return[2,(_state.sent(),bn.overwrite(t,i.instanceDefaults,i),i)]}})})()}},{key:"currentReservoir",value:function currentReservoir(){return this._store.__currentReservoir__()}},{key:"incrementReservoir",value:function incrementReservoir(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this._store.__incrementReservoir__(t)}}]);return r}();return r.default=r,r.Events=U1,r.version=r.prototype.version=yre().version,r.strategy=r.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},r.BottleneckError=r.prototype.BottleneckError=Vc(),r.Group=r.prototype.Group=Fre(),r.RedisConnection=r.prototype.RedisConnection=U0(),r.IORedisConnection=r.prototype.IORedisConnection=G0(),r.Batcher=r.prototype.Batcher=Tre(),r.prototype.jobDefaults={priority:Wre,weight:1,expiration:null,id:""},r.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:r.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},r.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250},r.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},r.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:!0,trackDoneStatus:!1,Promise:Promise},r.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},r}.call(void 0);zre.exports=Hre});var Xre=I(function(K8r,jre){"use strict";jre.exports=P1()});var ktr={};cie(ktr,{default:function(){return ex}});module.exports=uie(ktr);var KMr=Le(fS()),VMr=Le(vK());var CK,hWe=(CK=globalThis.process)!=null?CK:{cwd:function cwd(){return"/"}};globalThis.process=hWe;var CV=Le(QK()),BV=require("obsidian");var Ei=require("obsidian");var PA=require("obsidian"),bK="https://dav.jianguoyun.com/nsdav",os="https://dav.jianguoyun.com/dav",wK="1.1.3";var pWe="0.13.26",xWe="0.14.6";var SK=!PA.Platform.isAndroidApp&&(0,PA.requireApiVersion)(pWe)||PA.Platform.isAndroidApp&&(0,PA.requireApiVersion)(xWe),_K=!1;var mt={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},hb={silent:{level:-1},fatal:{level:mt.fatal},error:{level:mt.error},warn:{level:mt.warn},log:{level:mt.log},info:{level:mt.info},success:{level:mt.success},fail:{level:mt.fail},ready:{level:mt.info},start:{level:mt.info},box:{level:mt.info},debug:{level:mt.debug},trace:{level:mt.trace},verbose:{level:mt.verbose}};function fb(r){if(r===null||(typeof r==="undefined"?"undefined":_type_of(r))!="object")return!1;var e=Object.getPrototypeOf(r);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in r?!1:Symbol.toStringTag in r?Object.prototype.toString.call(r)==="[object Module]":!0}function Ib(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".",i=arguments.length>3?arguments[3]:void 0;if(!fb(e))return Ib(r,{},t,i);var n=Object.assign({},e);for(var a in r){if(a==="__proto__"||a==="constructor")continue;var o=r[a];o!=null&&(i&&i(n,a,o,t)||(Array.isArray(o)&&Array.isArray(n[a])?n[a]=_to_consumable_array(o).concat(_to_consumable_array(n[a])):fb(o)&&fb(n[a])?n[a]=Ib(o,n[a],(t?"".concat(t,"."):"")+a.toString(),i):n[a]=o))}return n}function mWe(r){return function(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++){e[_key]=arguments[_key]}return e.reduce(function(t,i){return Ib(t,i,"",r)},{})}}var vWe=mWe();function CWe(r){return Object.prototype.toString.call(r)==="[object Object]"}function BWe(r){return!(!CWe(r)||!r.message&&!r.args||r.stack)}var gb=!1,qK=[],Mr=function(){"use strict";function Mr1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,Mr1);Ze(this,"options");Ze(this,"_lastLog");Ze(this,"_mockFn");var t=e.types||hb;this.options=vWe(_object_spread_props(_object_spread({},e),{defaults:_object_spread({},e.defaults),level:db(e.level,t),reporters:_to_consumable_array(e.reporters||[])}),{types:hb,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(var i in t){var n=_object_spread({type:i},this.options.defaults,t[i]);this[i]=this._wrapLogFn(n),this[i].raw=this._wrapLogFn(n,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}_create_class(Mr1,[{key:"level",get:function get(){return this.options.level},set:function set(e){this.options.level=db(e,this.options.types,this.options.level)}},{key:"prompt",value:function prompt1(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}},{key:"create",value:function create(e){var t=new Mr(_object_spread({},this.options,e));return this._mockFn&&t.mockTypes(this._mockFn),t}},{key:"withDefaults",value:function withDefaults(e){return this.create(_object_spread_props(_object_spread({},this.options),{defaults:_object_spread({},this.options.defaults,e)}))}},{key:"withTag",value:function withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}},{key:"addReporter",value:function addReporter(e){return this.options.reporters.push(e),this}},{key:"removeReporter",value:function removeReporter(e){if(e){var t=this.options.reporters.indexOf(e);if(t!==-1)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}},{key:"setReporters",value:function setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}},{key:"wrapAll",value:function wrapAll(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function restoreAll(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function wrapConsole(){for(var e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}},{key:"restoreConsole",value:function restoreConsole(){for(var e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}},{key:"wrapStd",value:function wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}},{key:"_wrapStream",value:function _wrapStream(e,t){var _this=this;e&&(e.__write||(e.__write=e.write),e.write=function(i){_this[t].raw(String(i).trim())})}},{key:"restoreStd",value:function restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}},{key:"_restoreStream",value:function _restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}},{key:"pauseLogs",value:function pauseLogs(){gb=!0}},{key:"resumeLogs",value:function resumeLogs(){gb=!1;var e=qK.splice(0);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;t[0]._logFn(t[1],t[2])}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}},{key:"mockTypes",value:function mockTypes(e){var t=e||this.options.mockFn;if(this._mockFn=t,typeof t=="function")for(var i in this.options.types)this[i]=t(i,this.options.types[i])||this[i],this[i].raw=this[i]}},{key:"_wrapLogFn",value:function _wrapLogFn(e,t){var _this=this;return function(){for(var _len=arguments.length,i=new Array(_len),_key=0;_key<_len;_key++){i[_key]=arguments[_key]}if(gb){qK.push([_this,e,i,t]);return}return _this._logFn(e,i,t)}}},{key:"_logFn",value:function _logFn(e,t,i){var _this=this;if((e.level||0)>this.level)return!1;var n=_object_spread_props(_object_spread({date:new Date,args:[]},e),{level:db(e.level,this.options.types)});!i&&t.length===1&&BWe(t[0])?Object.assign(n,t[0]):n.args=_to_consumable_array(t),n.message&&(n.args.unshift(n.message),delete n.message),n.additional&&(Array.isArray(n.additional)||(n.additional=n.additional.split("\n")),n.args.push("\n"+n.additional.join("\n")),delete n.additional),n.type=typeof n.type=="string"?n.type.toLowerCase():"log",n.tag=typeof n.tag=="string"?n.tag:"";var a=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;var A=(_this._lastLog.count||0)-_this.options.throttleMin;if(_this._lastLog.object&&A>0){var u=_to_consumable_array(_this._lastLog.object.args);A>1&&u.push("(repeated ".concat(A," times)")),_this._log(_object_spread_props(_object_spread({},_this._lastLog.object),{args:u})),_this._lastLog.count=1}s&&(_this._lastLog.object=n,_this._log(n))};clearTimeout(this._lastLog.timeout);var o=this._lastLog.time&&n.date?n.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=n.date,othis.options.throttleMin)){this._lastLog.timeout=setTimeout(a,this.options.throttle);return}}catch(s){}a(!0)}},{key:"_log",value:function _log(e){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=this.options.reporters[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;t.log(e,{options:this.options})}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}}]);return Mr1}();function db(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3;return r===void 0?t:typeof r=="number"?r:e[r]&&e[r].level!==void 0?e[r].level:t}Mr.prototype.add=Mr.prototype.addReporter;Mr.prototype.remove=Mr.prototype.removeReporter;Mr.prototype.clear=Mr.prototype.removeReporter;Mr.prototype.withScope=Mr.prototype.withTag;Mr.prototype.mock=Mr.prototype.mockTypes;Mr.prototype.pause=Mr.prototype.pauseLogs;Mr.prototype.resume=Mr.prototype.resumeLogs;function DK(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Mr(r)}var pb=function(){"use strict";function pb1(e){_class_call_check(this,pb1);Ze(this,"options");Ze(this,"defaultColor");Ze(this,"levelColorMap");Ze(this,"typeColorMap");this.options=_object_spread({},e),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_create_class(pb1,[{key:"_getLogFn",value:function _getLogFn(e){return e<1?console.__error||console.error:e===1?console.__warn||console.warn:console.__log||console.log}},{key:"log",value:function log(e){var t=this._getLogFn(e.level),i=e.type==="log"?"":e.type,n=e.tag||"",o="\n background: ".concat(this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),s="%c".concat([n,i].filter(Boolean).join(":"));typeof e.args[0]=="string"?t.apply(void 0,["".concat(s,"%c ").concat(e.args[0]),o,""].concat(_to_consumable_array(e.args.slice(1)))):t.apply(void 0,[s,o].concat(_to_consumable_array(e.args)))}}]);return pb1}();function xb(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return DK(_object_spread({reporters:r.reporters||[new pb({})],prompt:function prompt1(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return i.type==="confirm"?Promise.resolve(confirm(t)):Promise.resolve(prompt(t))}},r))}var _mr=xb();var EWe=xb({level:mt.verbose,formatOptions:{date:!0,colors:!1}}),z=EWe;var yWe=function(){return Ei.Platform.isWin?"Windows":Ei.Platform.isMacOS?"macOS":Ei.Platform.isLinux?"Linux":Ei.Platform.isAndroidApp?"Android":Ei.Platform.isIosApp?"iOS":"Unknown"},QWe=function(){return Ei.Platform.isTablet?"Tablet":Ei.Platform.isPhone?"Phone":Ei.Platform.isDesktopApp?"Desktop":Ei.Platform.isMobileApp?"Mobile":"Unknown"},Mmr="Obsidian (".concat(yWe(),"; ").concat(QWe(),"; ObsidianNutstoreSync/").concat(wK,")"),mb=function(Error1){"use strict";_inherits(mb1,Error1);function mb1(t){_class_call_check(this,mb1);var _this;_this=_call_super(this,mb1,["".concat(t.status,": ").concat(t.text)]);_this.res=t;return _this}return mb1}(_wrap_native_super(Error));function gn(r){return _async_to_generator(function(){var e,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=typeof r=="string"?{url:r,throw:!1}:_object_spread_props(_object_spread({},r),{throw:!1,headers:_object_spread({},r.headers||{})});return[4,(0,Ei.requestUrl)(e)];case 1:t=_state.sent();if(t.status>=400&&(z.error(t),typeof r=="string"||r.throw!==!1))throw new mb(t);return[2,t]}})})()}var bWe={2:function(r){var e=function e(n,a,o){_instanceof(n,RegExp)&&(n=t(n,o)),_instanceof(a,RegExp)&&(a=t(a,o));var s=i(n,a,o);return s&&{start:s[0],end:s[1],pre:o.slice(0,s[0]),body:o.slice(s[0]+n.length,s[1]),post:o.slice(s[1]+a.length)}};var t=function t(n,a){var o=a.match(n);return o?o[0]:null};var i=function i(n,a,o){var s,A,u,c,l,f=o.indexOf(n),g=o.indexOf(a,f+1),h=f;if(f>=0&&g>0){for(s=[],u=o.length;h>=0&&!l;)h==f?(s.push(h),f=o.indexOf(n,h+1)):s.length==1?l=[s.pop(),g]:((A=s.pop())=0?f:g;s.length&&(l=[u,c])}return l};r.exports=e,e.range=i},101:function(r,e,t){var i;r=t.nmd(r),function(n){var a=(r&&r.exports,(typeof global==="undefined"?"undefined":_type_of(global))=="object"&&global);a.global!==a&&a.window;var o=function o(l){this.message=l};(o.prototype=new Error).name="InvalidCharacterError";var s=function s(l){throw new o(l)},A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=/[\t\n\f\r ]/g,c={encode:function encode(l){l=String(l),/[^\0-\xFF]/.test(l)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var f,g,h,d,p=l.length%3,m="",x=-1,v=l.length-p;++x>18&63)+A.charAt(d>>12&63)+A.charAt(d>>6&63)+A.charAt(63&d);return p==2?(f=l.charCodeAt(x)<<8,g=l.charCodeAt(++x),m+=A.charAt((d=f+g)>>10)+A.charAt(d>>4&63)+A.charAt(d<<2&63)+"="):p==1&&(d=l.charCodeAt(x),m+=A.charAt(d>>2)+A.charAt(d<<4&63)+"=="),m},decode:function decode(l){var f=(l=String(l).replace(u,"")).length;f%4==0&&(f=(l=l.replace(/==?$/,"")).length),(f%4==1||/[^+a-zA-Z0-9/]/.test(l))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var g,h,d=0,p="",m=-1;++m>(-2*d&6)));return p},version:"1.0.0"};(i=function(){return c}.call(e,t,e,r))===void 0||(r.exports=i)}()},172:function(r,e){e.d=function(t){if(!t)return 0;for(var i=(t=t.toString()).length,n=t.length;n--;){var a=t.charCodeAt(n);56320<=a&&a<=57343&&n--,127>>32-n},rotr:function rotr(i,n){return i<<32-n|i>>>n},endian:function endian(i){if(i.constructor==Number)return 16711935&t.rotl(i,8)|4278255360&t.rotl(i,24);for(var n=0;n0;i--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function bytesToWords(i){for(var n=[],a=0,o=0;a>>5]|=i[a]<<24-o%32;return n},wordsToBytes:function wordsToBytes(i){for(var n=[],a=0;a<32*i.length;a+=8)n.push(i[a>>>5]>>>24-a%32&255);return n},bytesToHex:function bytesToHex(i){for(var n=[],a=0;a>>4).toString(16)),n.push((15&i[a]).toString(16));return n.join("")},hexToBytes:function hexToBytes(i){for(var n=[],a=0;a>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function base64ToBytes(i){i=i.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],a=0,o=0;a>>6-2*o);return n}},r.exports=t},635:function(r,e,t){var i=t(31),n=t(338),a=t(221);r.exports={XMLParser:n,XMLValidator:i,XMLBuilder:a}},118:function(r){r.exports=function(e){return typeof e=="function"?e:Array.isArray(e)?function(t){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var i=_step.value;if(typeof i=="string"&&t===i||_instanceof(i,RegExp)&&i.test(t))return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}:function(){return!1}}},705:function(r,e){var t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+t+"]["+t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",n=new RegExp("^"+i+"$");e.isExist=function(a){return a!==void 0},e.isEmptyObject=function(a){return Object.keys(a).length===0},e.merge=function(a,o,s){if(o){var A=Object.keys(o),u=A.length;for(var c=0;c5&&S==="xml")return h("InvalidXml","XML declaration allowed only at the start of the document.",p(x,v));if(x[v]=="?"&&x[v+1]==">"){v++;break}}return v};var s=function s(x,v){if(x.length>v+5&&x[v+1]==="-"&&x[v+2]==="-"){for(v+=3;v"){v+=2;break}}else if(x.length>v+8&&x[v+1]==="D"&&x[v+2]==="O"&&x[v+3]==="C"&&x[v+4]==="T"&&x[v+5]==="Y"&&x[v+6]==="P"&&x[v+7]==="E"){var E=1;for(v+=8;v"&&(E--,E===0))break}else if(x.length>v+9&&x[v+1]==="["&&x[v+2]==="C"&&x[v+3]==="D"&&x[v+4]==="A"&&x[v+5]==="T"&&x[v+6]==="A"&&x[v+7]==="["){for(v+=8;v"){v+=2;break}}return v};var c=function c(x,v){var E="",S="",B=!1;for(;v"&&S===""){B=!0;break}E+=x[v]}return S===""&&{value:E,index:v,tagClosed:B}};var f=function f(x,v){var E=i.getAllMatches(x,l),S={};for(var B=0;B"&&x[C]!==" "&&x[C]!=="\t"&&x[C]!=="\n"&&x[C]!=="\r";C++)w+=x[C];if(w=w.trim(),w[w.length-1]==="/"&&(w=w.substring(0,w.length-1),C--),b=w,!i.isName(b)){var M=void 0;return M=w.trim().length===0?"Invalid space after '<'.":"Tag '"+w+"' is an invalid name.",h("InvalidTag",M,p(x,C))}var N=c(x,C);if(N===!1)return h("InvalidAttr","Attributes for '"+w+"' have open quote.",p(x,C));var F=N.value;if(C=N.index,F[F.length-1]==="/"){var M1=C-F.length;F=F.substring(0,F.length-1);var U=f(F,v);if(U!==!0)return h(U.err.code,U.err.msg,p(x,M1+U.err.line));S=!0}else if(q){if(!N.tagClosed)return h("InvalidTag","Closing tag '"+w+"' doesn't have proper closing.",p(x,C));if(F.trim().length>0)return h("InvalidTag","Closing tag '"+w+"' can't have attributes or invalid starting.",p(x,y));if(E.length===0)return h("InvalidTag","Closing tag '"+w+"' has not been opened.",p(x,y));{var M2=E.pop();if(w!==M2.tagName){var U1=p(x,M2.tagStartPos);return h("InvalidTag","Expected closing tag '"+M2.tagName+"' (opened in line "+U1.line+", col "+U1.col+") instead of closing tag '"+w+"'.",p(x,y))}E.length==0&&(B=!0)}}else{var M3=f(F,v);if(M3!==!0)return h(M3.err.code,M3.err.msg,p(x,C-F.length+M3.err.line));if(B===!0)return h("InvalidXml","Multiple possible root nodes found.",p(x,C));v.unpairedTags.indexOf(w)!==-1||E.push({tagName:w,tagStartPos:y}),S=!0}for(C++;C0)||h("InvalidXml","Invalid '"+JSON.stringify(E.map(function(C){return C.tagName}),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):h("InvalidXml","Start tag expected.",1)};var A="\"",u="'";var l=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g")},221:function(r,e,t){var o=function o(c){this.options=Object.assign({},a,c),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=n(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=u),this.processTextOrObjNode=s,this.options.format?(this.indentate=A,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")};var s=function s(c,l,f,g){var h=this.j2x(c,f+1,g.concat(l));return c[this.options.textNodeName]!==void 0&&Object.keys(c).length===1?this.buildTextValNode(c[this.options.textNodeName],l,h.attrStr,f):this.buildObjectNode(h.val,l,h.attrStr,f)};var A=function A(c){return this.options.indentBy.repeat(c)};var u=function u(c){return!(!c.startsWith(this.options.attributeNamePrefix)||c===this.options.textNodeName)&&c.substr(this.attrPrefixLen)};var i=t(87),n=t(118),a={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function tagValueProcessor(c,l){return l},attributeValueProcessor:function attributeValueProcessor(c,l){return l},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp("\"","g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};o.prototype.build=function(c){return this.options.preserveOrder?i(c,this.options):(Array.isArray(c)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(c=_define_property({},this.options.arrayNodeName,c)),this.j2x(c,0,[]).val)},o.prototype.j2x=function(c,l,f){var g="",h="",d=f.join(".");for(var p in c)if(Object.prototype.hasOwnProperty.call(c,p))if(c[p]===void 0)this.isAttribute(p)&&(h+="");else if(c[p]===null)this.isAttribute(p)?h+="":p[0]==="?"?h+=this.indentate(l)+"<"+p+"?"+this.tagEndChar:h+=this.indentate(l)+"<"+p+"/"+this.tagEndChar;else if(_instanceof(c[p],Date))h+=this.buildTextValNode(c[p],p,"",l);else if(_type_of(c[p])!="object"){var m=this.isAttribute(p);if(m&&!this.ignoreAttributesFn(m,d))g+=this.buildAttrPairStr(m,""+c[p]);else if(!m)if(p===this.options.textNodeName){var x=this.options.tagValueProcessor(p,""+c[p]);h+=this.replaceEntitiesValue(x)}else h+=this.buildTextValNode(c[p],p,"",l)}else if(Array.isArray(c[p])){var m1=c[p].length,x2="",v="";for(var E=0;E")+this.newLine:this.indentate(g)+"<"+l+f+d+this.tagEndChar+c+this.indentate(g)+h:this.indentate(g)+"<"+l+f+d+">"+c+h}},o.prototype.closeTag=function(c){var l="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(l="/"):l=this.options.suppressEmptyNode?"/":">")+this.newLine;if(this.options.commentPropName!==!1&&l===this.options.commentPropName)return this.indentate(g)+"")+this.newLine;if(l[0]==="?")return this.indentate(g)+"<"+l+f+"?"+this.tagEndChar;{var h=this.options.tagValueProcessor(l,c);return h=this.replaceEntitiesValue(h),h===""?this.indentate(g)+"<"+l+f+this.closeTag(l)+this.tagEndChar:this.indentate(g)+"<"+l+f+">"+h+"0&&this.options.processEntities)for(var l=0;l0&&s.processEntities)for(var A=0;A"),l=!1;continue}if(h===s.commentPropName){c+=u+""),l=!0;continue}if(h[0]==="?"){var v1=i(g[":@"],s),E=h==="?xml"?"":u,S=g[h][0][s.textNodeName];S=S.length!==0?" "+S:"",c+=E+"<".concat(h).concat(S).concat(v1,"?>"),l=!0;continue}var p=u;p!==""&&(p+=s.indentBy);var m=u+"<".concat(h).concat(i(g[":@"],s)),x=e(g[h],s,d,p);s.unpairedTags.indexOf(h)!==-1?s.suppressUnpairedNode?c+=m+">":c+=m+"/>":x&&x.length!==0||!s.suppressEmptyNode?x&&x.endsWith(">")?c+=m+">".concat(x).concat(u,""):(c+=m+">",x&&u!==""&&(x.includes("/>")||x.includes("")):c+=m+"/>",l=!0}return c}r.exports=function(o,s){var A="";return s.format&&s.indentBy.length>0&&(A="\n"),e(o,s,"",A)}},193:function(r,e,t){var n=function n(l,f){var g="";for(;f"){if(p?l[f-1]==="-"&&l[f-2]==="-"&&(p=!1,h--):h--,h===0)break}else l[f]==="["?d=!0:m+=l[f];}else{if(d&&o(l,f)){var x=void 0,v=void 0;var ref;f+=7,ref=_sliced_to_array(n(l,f+1),3),x=ref[0],v=ref[1],f=ref[2],ref,v.indexOf("&")===-1&&(g[c(x)]={regx:RegExp("&".concat(x,";"),"g"),val:v})}else if(d&&s(l,f))f+=8;else if(d&&A(l,f))f+=8;else if(d&&u(l,f))f+=9;else{if(!a)throw new Error("Invalid DOCTYPE");p=!0}h++,m=""}if(h!==0)throw new Error("Unclosed DOCTYPE")}return{entities:g,i:f}}},63:function(r,e){var t={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function tagValueProcessor(i,n){return n},attributeValueProcessor:function attributeValueProcessor(i,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function updateTag(i,n,a){return i}};e.buildOptions=function(i){return Object.assign({},t,i)},e.defaultOptions=t},299:function(r,e,t){var A=function A(B){var b=Object.keys(B);for(var C=0;C0)){N||(B=this.replaceEntitiesValue(B));var F=this.options.tagValueProcessor(b,B,C,q,w);return F==null?B:(typeof F==="undefined"?"undefined":_type_of(F))!=(typeof B==="undefined"?"undefined":_type_of(B))||F!==B?F:this.options.trimValues||B.trim()===B?S(B,this.options.parseTagValue,this.options.numberParseOptions):B}};var c=function c(B){if(this.options.removeNSPrefix){var b=B.split(":"),C=B.charAt(0)==="/"?"/":"";if(b[0]==="xmlns")return"";b.length===2&&(B=C+b[1])}return B};var f=function f(B,b,C){if(this.options.ignoreAttributes!==!0&&typeof B=="string"){var y=i.getAllMatches(B,l),q=y.length,w={};for(var N=0;N2&&arguments[2]!==void 0?arguments[2]:">",Ce="";for(var L=K;L3&&arguments[3]!==void 0?arguments[3]:">");if(!y)return;var q=y.data,w=y.index,N=q.search(/\s/),F=q,M=!0;N!==-1&&(F=q.substring(0,N),q=q.substring(N+1).trimStart());var U=F;if(C){var G=F.indexOf(":");G!==-1&&(F=F.substr(G+1),M=F!==y.data.substr(G+1))}return{tagName:F,tagExp:q,closeIndex:w,attrExpPresent:M,rawTagName:U}};var E=function E(B,b,C){var y=C,q=1;for(;C",C,"".concat(b," is not closed"));if(B.substring(C+2,w).trim()===b&&(q--,q===0))return{tagContent:B.substring(y,C),i:w};C=w}else if(B[C+1]==="?")C=x(B,"?>",C+1,"StopNode is not closed.");else if(B.substr(C+1,3)==="!--")C=x(B,"-->",C+3,"StopNode is not closed.");else if(B.substr(C+1,2)==="![")C=x(B,"]]>",C,"StopNode is not closed.")-2;else{var w2=v(B,C,">");w2&&((w2&&w2.tagName)===b&&w2.tagExp[w2.tagExp.length-1]!=="/"&&q++,C=w2.closeIndex)}};var S=function S(B,b,C){if(b&&typeof B=="string"){var y=B.trim();return y==="true"||y!=="false"&&o(B,C)}return i.isExist(B)?B:""};var i=t(705),n=t(365),a=t(193),o=t(494),s=t(118);var l=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var g=function g(B){B=B.replace(/\r\n?/g,"\n");var b=new n("!xml"),C=b,y="",q="";for(var w=0;w",w,"Closing Tag is not closed."),F=B.substring(w+2,N).trim();if(this.options.removeNSPrefix){var G=F.indexOf(":");G!==-1&&(F=F.substr(G+1))}this.options.transformTagName&&(F=this.options.transformTagName(F)),C&&(y=this.saveTextToParentTag(y,C,q));var M=q.substring(q.lastIndexOf(".")+1);if(F&&this.options.unpairedTags.indexOf(F)!==-1)throw new Error("Unpaired tag can not be used as closing tag: "));var U=0;M&&this.options.unpairedTags.indexOf(M)!==-1?(U=q.lastIndexOf(".",q.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=q.lastIndexOf("."),q=q.substring(0,U),C=this.tagsNodeStack.pop(),y="",w=N}else if(B[w+1]==="?"){var N1=v(B,w,!1,"?>");if(!N1)throw new Error("Pi Tag is not closed.");if(y=this.saveTextToParentTag(y,C,q),!(this.options.ignoreDeclaration&&N1.tagName==="?xml"||this.options.ignorePiTags)){var F1=new n(N1.tagName);F1.add(this.options.textNodeName,""),N1.tagName!==N1.tagExp&&N1.attrExpPresent&&(F1[":@"]=this.buildAttributesMap(N1.tagExp,q,N1.tagName)),this.addChild(C,F1,q)}w=N1.closeIndex+1}else if(B.substr(w+1,3)==="!--"){var N3=x(B,"-->",w+4,"Comment is not closed.");if(this.options.commentPropName){var F2=B.substring(w+4,N3-2);y=this.saveTextToParentTag(y,C,q),C.add(this.options.commentPropName,[_define_property({},this.options.textNodeName,F2)])}w=N3}else if(B.substr(w+1,2)==="!D"){var N4=a(B,w);this.docTypeEntities=N4.entities,w=N4.i}else if(B.substr(w+1,2)==="!["){var N5=x(B,"]]>",w,"CDATA is not closed.")-2,F3=B.substring(w+9,N5);y=this.saveTextToParentTag(y,C,q);var M1=this.parseTextData(F3,C.tagname,q,!0,!1,!0,!0);M1==null&&(M1=""),this.options.cdataPropName?C.add(this.options.cdataPropName,[_define_property({},this.options.textNodeName,F3)]):C.add(this.options.textNodeName,M1),w=N5+2}else{var N6=v(B,w,this.options.removeNSPrefix),F5=N6.tagName,M2=N6.rawTagName,U1=N6.tagExp,G1=N6.attrExpPresent,K=N6.closeIndex;this.options.transformTagName&&(F5=this.options.transformTagName(F5)),C&&y&&C.tagname!=="!xml"&&(y=this.saveTextToParentTag(y,C,q,!1));var ce=C;if(ce&&this.options.unpairedTags.indexOf(ce.tagname)!==-1&&(C=this.tagsNodeStack.pop(),q=q.substring(0,q.lastIndexOf("."))),F5!==b.tagname&&(q+=q?"."+F5:F5),this.isItStopNode(this.options.stopNodes,q,F5)){var J="";if(U1.length>0&&U1.lastIndexOf("/")===U1.length-1)F5[F5.length-1]==="/"?(F5=F5.substr(0,F5.length-1),q=q.substr(0,q.length-1),U1=F5):U1=U1.substr(0,U1.length-1),w=N6.closeIndex;else if(this.options.unpairedTags.indexOf(F5)!==-1)w=N6.closeIndex;else{var L=this.readStopNodeData(B,M2,K+1);if(!L)throw new Error("Unexpected end of ".concat(M2));w=L.i,J=L.tagContent}var Ce=new n(F5);F5!==U1&&G1&&(Ce[":@"]=this.buildAttributesMap(U1,q,F5)),J&&(J=this.parseTextData(J,F5,q,!0,G1,!0,!0)),q=q.substr(0,q.lastIndexOf(".")),Ce.add(this.options.textNodeName,J),this.addChild(C,Ce,q)}else{if(U1.length>0&&U1.lastIndexOf("/")===U1.length-1){F5[F5.length-1]==="/"?(F5=F5.substr(0,F5.length-1),q=q.substr(0,q.length-1),U1=F5):U1=U1.substr(0,U1.length-1),this.options.transformTagName&&(F5=this.options.transformTagName(F5));var J3=new n(F5);F5!==U1&&G1&&(J3[":@"]=this.buildAttributesMap(U1,q,F5)),this.addChild(C,J3,q),q=q.substr(0,q.lastIndexOf("."))}else{var J4=new n(F5);this.tagsNodeStack.push(C),F5!==U1&&G1&&(J4[":@"]=this.buildAttributesMap(U1,q,F5)),this.addChild(C,J4,q),C=J4}y="",w=K}}}else y+=B[w];return b.child};var d=function d(B){if(this.options.processEntities){for(var b in this.docTypeEntities){var C=this.docTypeEntities[b];B=B.replace(C.regx,C.val)}for(var b3 in this.lastEntities){var C2=this.lastEntities[b3];B=B.replace(C2.regex,C2.val)}if(this.options.htmlEntities)for(var b4 in this.htmlEntities){var C3=this.htmlEntities[b4];B=B.replace(C3.regex,C3.val)}B=B.replace(this.ampEntity.regex,this.ampEntity.val)}return B};r.exports=function _class(B){"use strict";_class_call_check(this,_class);this.options=B,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:"\""}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:function(b,C){return String.fromCharCode(Number.parseInt(C,10))}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(b,C){return String.fromCharCode(Number.parseInt(C,16))}}},this.addExternalEntities=A,this.parseXml=g,this.parseTextData=u,this.resolveNameSpace=c,this.buildAttributesMap=f,this.isItStopNode=m,this.replaceEntitiesValue=d,this.readStopNodeData=E,this.saveTextToParentTag=p,this.addChild=h,this.ignoreAttributesFn=s(this.options.ignoreAttributes)}},338:function(r,e,t){var _t=t(63),i=_t.buildOptions,n=t(299),_t1=t(728),a=_t1.prettify,o=t(31);r.exports=function(){"use strict";function _class(s){_class_call_check(this,_class);this.externalEntities={},this.options=i(s)}_create_class(_class,[{key:"parse",value:function parse(s,A){if(typeof s!="string"){if(!s.toString)throw new Error("XML data is accepted in String or Bytes[] form.");s=s.toString()}if(A){A===!0&&(A={});var l=o.validate(s,A);if(l!==!0)throw Error("".concat(l.err.msg,":").concat(l.err.line,":").concat(l.err.col))}var u=new n(this.options);u.addExternalEntities(this.externalEntities);var c=u.parseXml(s);return this.options.preserveOrder||c===void 0?c:a(c,this.options)}},{key:"addEntity",value:function addEntity(s,A){if(A.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(s.indexOf("&")!==-1||s.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '");if(A==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[s]=A}}]);return _class}()},728:function(r,e){var i=function i(o){var s=Object.keys(o);for(var A=0;A0&&(c[s.textNodeName]=u):u!==void 0&&(c[s.textNodeName]=u),c}e.prettify=function(o,s){return t(o,s)}},365:function(r){r.exports=function(){"use strict";function _class(e){_class_call_check(this,_class);this.tagname=e,this.child=[],this[":@"]={}}_create_class(_class,[{key:"add",value:function add(e,t){e==="__proto__"&&(e="#__proto__"),this.child.push(_define_property({},e,t))}},{key:"addChild",value:function addChild(e){var _obj;e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push((_obj={},_define_property(_obj,e.tagname,e.child),_define_property(_obj,":@",e[":@"]),_obj)):this.child.push(_define_property({},e.tagname,e.child))}}]);return _class}()},135:function(r){var e=function e(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};r.exports=function(t){return t!=null&&(e(t)||function(i){return typeof i.readFloatLE=="function"&&typeof i.slice=="function"&&e(i.slice(0,0))}(t)||!!t._isBuffer)}},542:function(r,e,t){(function(){var i=t(298),n=t(526).utf8,a=t(135),o=t(526).bin,s=function s2(A,u){A.constructor==String?A=u&&u.encoding==="binary"?o.stringToBytes(A):n.stringToBytes(A):a(A)?A=Array.prototype.slice.call(A,0):Array.isArray(A)||A.constructor===Uint8Array||(A=A.toString());for(var c=i.bytesToWords(A),l=8*A.length,f=1732584193,g=-271733879,h=-1732584194,d=271733878,p=0;p>>24)|4278255360&(c[p]<<24|c[p]>>>8);c[l>>>5]|=128<>>9<<4)]=l;var m=s._ff,x=s._gg,v=s._hh,E=s._ii;for(p=0;p>>0,g=g+B>>>0,h=h+b>>>0,d=d+C>>>0}return i.endian([f,g,h,d])};s._ff=function(A,u,c,l,f,g,h){var d=A+(u&c|~u&l)+(f>>>0)+h;return(d<>>32-g)+u},s._gg=function(A,u,c,l,f,g,h){var d=A+(u&l|c&~l)+(f>>>0)+h;return(d<>>32-g)+u},s._hh=function(A,u,c,l,f,g,h){var d=A+(u^c^l)+(f>>>0)+h;return(d<>>32-g)+u},s._ii=function(A,u,c,l,f,g,h){var d=A+(c^(u|~l))+(f>>>0)+h;return(d<>>32-g)+u},s._blocksize=16,s._digestsize=16,r.exports=function(A,u){if(A==null)throw new Error("Illegal argument "+A);var c=i.wordsToBytes(s(A,u));return u&&u.asBytes?c:u&&u.asString?o.bytesToString(c):i.bytesToHex(c)}})()},285:function(r,e,t){var u=function u(m){return parseInt(m,10)==m?parseInt(m,10):m.charCodeAt(0)};var c=function c(m){return m.split(n).join("\\").split(a).join("{").split(o).join("}").split(s).join(",").split(A).join(".")};var f=function f(m){return"{"+m+"}"};var g=function g(m){return /^-?0\d/.test(m)};var h=function h(m,x){return m<=x};var d=function d(m,x){return m>=x};var i=t(2);r.exports=function(m){return m?(m.substr(0,2)==="{}"&&(m="\\{\\}"+m.substr(2)),p(function(x){return x.split("\\\\").join(n).split("\\{").join(a).split("\\}").join(o).split("\\,").join(s).split("\\.").join(A)}(m),!0).map(c)):[]};var n="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",A="\0PERIOD"+Math.random()+"\0";function l(m){if(!m)return[""];var x=[],v=i("{","}",m);if(!v)return m.split(",");var E=v.pre,S=v.body,B=v.post,b=E.split(",");b[b.length-1]+="{"+S+"}";var C=l(B);return B.length&&(b[b.length-1]+=C.shift(),b.push.apply(b,C)),x.push.apply(x,b),x}function p(m,x){var v=[],E=i("{","}",m);if(!E)return[m];var S=E.pre,B=E.post.length?p(E.post,!1):[""];if(/\$$/.test(E.pre))for(var b=0;b=0;if(!F&&!M)return E.post.match(/,.*\}/)?p(m=E.pre+"{"+E.body+o+E.post):[m];if(F)y=E.body.split(/\.\./);else if((y=l(E.body)).length===1&&(y=p(y[0],!1).map(f)).length===1)return B.map(function(Ge){return E.pre+y[0]+Ge});if(F){var U=u(y[0]),G=u(y[1]),K=Math.max(y[0].length,y[1].length),ce=y.length==3?Math.abs(u(y[2])):1,J=h;G0){var le=new Array(pe+1).join("0");Ae=L<0?"-"+le+Ae.slice(1):le+Ae}}q.push(Ae)}}else{q=[];for(var ue=0;ue2&&arguments[2]!==void 0?arguments[2]:function l(){},f=c.split("."),g=f.length,h=function h(m){var x=f[m];if(!u)return{v:void 0};if(x==="+"){if(Array.isArray(u))return{v:u.map(function(E,S){var B=f.slice(m+1);return B.length>0?s(E,B.join("."),l):l(u,S,f,m)})};var v=f.slice(0,m).join(".");throw new Error("Object at wildcard (".concat(v,") is not an array"))}u=l(u,x,f,m)},d=0;d2&&arguments[2]!==void 0?arguments[2]:{};if(e(u)!="object"||u===null||c===void 0)return!1;if(typeof c=="number")return c in u;try{var f=!1;return s(u,c,function(g,h,d,p){if(!A(d,p))return g&&g[h];f=l.own?g.hasOwnProperty(h):h in g}),f}catch(g){return!1}},hasOwn:function hasOwn(u,c,l){return this.has(u,c,l||{own:!0})},isIn:function isIn(u,c,l){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(e(u)!="object"||u===null||c===void 0)return!1;try{var g=!1,h=!1;return s(u,c,function(d,p,m,x){return g=g||d===l||!!d&&d[p]===l,h=A(m,x)&&e(d)==="object"&&p in d,d&&d[p]}),f.validPath?g&&h:g}catch(d){return!1}},ObjectPrototypeMutationError:o}},47:function(r,e,t){var a=function a(u,c){for(var l=[],f=0;f=-1&&!c;l--){var f=l>=0?arguments[l]:process.cwd();if(!n(f))throw new TypeError("Arguments to path.resolve must be strings");f&&(u=f+"/"+u,c=f.charAt(0)==="/")}return(c?"/":"")+(u=a(u.split("/"),!c).join("/"))||"."},s.normalize=function(u){var c=s.isAbsolute(u),l=u.substr(-1)==="/";return(u=a(u.split("/"),!c).join("/"))||c||(u="."),u&&l&&(u+="/"),(c?"/":"")+u},s.isAbsolute=function(u){return u.charAt(0)==="/"},s.join=function(){for(var u="",c=0;c=0&&x[E]==="";E--);return v>E?[]:x.slice(v,E+1)}u=s.resolve(u).substr(1),c=s.resolve(c).substr(1);for(var f=l(u.split("/")),g=l(c.split("/")),h=Math.min(f.length,g.length),d=h,p=0;p1&&arguments[1]!==void 0?arguments[1]:{};if(a=Object.assign({},i,a),!n||typeof n!="string")return n;var o=n.trim();if(a.skipLike!==void 0&&a.skipLike.test(o))return n;if(a.hex&&e.test(o))return Number.parseInt(o,16);{var A=t.exec(o);if(A){var u=A[1],c=A[2],l=((s=A[3])&&s.indexOf(".")!==-1&&((s=s.replace(/0+$/,""))==="."?s="0":s[0]==="."?s="0"+s:s[s.length-1]==="."&&(s=s.substr(0,s.length-1))),s),f=A[4]||A[6];if(!a.leadingZeros&&c.length>0&&u&&o[2]!=="."||!a.leadingZeros&&c.length>0&&!u&&o[1]!==".")return n;{var g=Number(o),h=""+g;return h.search(/[eE]/)!==-1||f?a.eNotation?g:n:o.indexOf(".")!==-1?h==="0"&&l===""||h===l||u&&h==="-"+l?g:n:c?l===h||u+l===h?g:n:o===h||o===u+h?g:n}}return n}var s}},737:function(r,e,t){var l=function l(x){return(x||"").toString().replace(a,"")};var h=function h(x){var v,E=(typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{}).location||{},S={},B=_type_of(x=x||E);if(x.protocol==="blob:")S=new m(unescape(x.pathname),{});else if(B==="string")for(v in S=new m(x,{}),g)delete S[v];else if(B==="object"){for(v in x)v in g||(S[v]=x[v]);S.slashes===void 0&&(S.slashes=s.test(x.href))}return S};var d=function d(x){return x==="file:"||x==="ftp:"||x==="http:"||x==="https:"||x==="ws:"||x==="wss:"};var p=function p(x,v){x=(x=l(x)).replace(o,""),v=v||{};var E,S=u.exec(x),B=S[1]?S[1].toLowerCase():"",b=!!S[2],C=!!S[3],y=0;return b?C?(E=S[2]+S[3]+S[4],y=S[2].length+S[3].length):(E=S[2]+S[4],y=S[2].length):C?(E=S[3]+S[4],y=S[3].length):E=S[4],B==="file:"?y>=2&&(E=E.slice(2)):d(B)?E=S[4]:B?b&&(E=E.slice(2)):y>=2&&d(v.protocol)&&(E=S[4]),{protocol:B,slashes:b||d(B),slashesCount:y,rest:E}};var i=t(670),n=t(647),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,A=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,c=/^[a-zA-Z]:/;var f=[["#","hash"],["?","query"],function(x,v){return d(v.protocol)?x.replace(/\\/g,"/"):x},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],g={hash:1,query:1};function m(x,v,E){if(x=(x=l(x)).replace(o,""),!_instanceof(this,m))return new m(x,v,E);var S,B,b,C,y,q,w=f.slice(),N=typeof v==="undefined"?"undefined":_type_of(v),F=this,M=0;for(N!=="object"&&N!=="string"&&(E=v,v=null),E&&typeof E!="function"&&(E=n.parse),S=!(B=p(x||"",v=h(v))).protocol&&!B.slashes,F.slashes=B.slashes||S&&v.slashes,F.protocol=B.protocol||v.protocol||"",x=B.rest,(B.protocol==="file:"&&(B.slashesCount!==2||c.test(x))||!B.slashes&&(B.protocol||B.slashesCount<2||!d(F.protocol)))&&(w[3]=[/(.*)/,"pathname"]);M1){var a=i.shift();i[0]=a+i[0]}i[0].match(/^file:\/\/\//)?i[0]=i[0].replace(/^([^/:]+):\/*/,"$1:///"):i[0]=i[0].replace(/^([^/:]+):\/*/,"$1://");for(var o=0;o0&&(s=s.replace(/^[\/]+/,"")),s=o0?"?":"")+u.join("&")}(_type_of(arguments[0])=="object"?arguments[0]:[].slice.call(arguments))}(e.reduce(function(i,n,a){return(a===0||n!=="/"||n==="/"&&i[i.length-1]!=="/")&&i.push(n),i},[]))}var DWe=sr(542),Xl=sr.n(DWe),FWe="abcdef0123456789";function OK(r,e){var t=r.url.replace("//",""),i=t.indexOf("/")==-1?"/":t.slice(t.indexOf("/")),n=r.method?r.method.toUpperCase():"GET",a=!!/(^|,)\s*auth\s*($|,)/.test(e.qop)&&"auth",o="00000000".concat(e.nc).slice(-8),s=function(f,g,h,d,p,m,x){var v=x||Xl()("".concat(g,":").concat(h,":").concat(d));return f&&f.toLowerCase()==="md5-sess"?Xl()("".concat(v,":").concat(p,":").concat(m)):v}(e.algorithm,e.username,e.realm,e.password,e.nonce,e.cnonce,e.ha1),A=Xl()("".concat(n,":").concat(i)),u=a?Xl()("".concat(s,":").concat(e.nonce,":").concat(o,":").concat(e.cnonce,":").concat(a,":").concat(A)):Xl()("".concat(s,":").concat(e.nonce,":").concat(A)),c={username:e.username,realm:e.realm,nonce:e.nonce,uri:i,qop:a,response:u,nc:o,cnonce:e.cnonce,algorithm:e.algorithm,opaque:e.opaque},l=[];for(var f in c)c[f]&&(f==="qop"||f==="nc"||f==="algorithm"?l.push("".concat(f,"=").concat(c[f])):l.push("".concat(f,"=\"").concat(c[f],"\"")));return"Digest ".concat(l.join(", "))}function ZK(r){return(r.headers&&r.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var kWe=sr(101),$K=sr.n(kWe);function TK(r){return $K().decode(r)}function PK(r,e){var t;return"Basic ".concat((t="".concat(r,":").concat(e),$K().encode(t)))}var tf=typeof WorkerGlobalScope!="undefined"&&_instanceof(self,WorkerGlobalScope)?self:typeof window!="undefined"?window:globalThis,RWe=tf.fetch.bind(tf),NWe=(tf.Headers,tf.Request),OWe=tf.Response,qt=function(r){return r.Auto="auto",r.Digest="digest",r.None="none",r.Password="password",r.Token="token",r}({}),Hn=function(r){return r.DataTypeNoLength="data-type-no-length",r.InvalidAuthType="invalid-auth-type",r.InvalidOutputFormat="invalid-output-format",r.LinkUnsupportedAuthType="link-unsupported-auth",r.InvalidUpdateRange="invalid-update-range",r.NotSupported="not-supported",r}({});function eV(r,e,t,i,n){switch(r.authType){case qt.Auto:e&&t&&(r.headers.Authorization=PK(e,t));break;case qt.Digest:r.digest=function(o,s,A){return{username:o,password:s,ha1:A,nc:0,algorithm:"md5",hasDigestAuth:!1}}(e,t,n);break;case qt.None:break;case qt.Password:r.headers.Authorization=PK(e,t);break;case qt.Token:r.headers.Authorization="".concat((a=i).token_type," ").concat(a.access_token);break;default:throw new gt({info:{code:Hn.InvalidAuthType}},"Invalid auth type: ".concat(r.authType))}var a}sr(345),sr(800);var MK="@@HOTPATCHER",TWe=function(){};function Cb(r){return{original:r,methods:[r],final:!1}}var _b=function(){"use strict";function _b1(){_class_call_check(this,_b1);this._configuration={registry:{},getEmptyAction:"null"},this.__type__=MK}_create_class(_b1,[{key:"configuration",get:function get(){return this._configuration}},{key:"getEmptyAction",get:function get(){return this.configuration.getEmptyAction},set:function set(e){this.configuration.getEmptyAction=e}},{key:"control",value:function control(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!e||e.__type__!==MK)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(e.configuration.registry).forEach(function(i){_this.configuration.registry.hasOwnProperty(i)?t&&(_this.configuration.registry[i]=Object.assign({},e.configuration.registry[i])):_this.configuration.registry[i]=Object.assign({},e.configuration.registry[i])}),e._configuration=this.configuration,this}},{key:"execute",value:function execute(e){var t=this.get(e)||TWe;for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a0;)u=[n.shift().apply(c,u)];return u[0]}}.apply(this,_to_consumable_array(t.methods))}},{key:"isPatched",value:function isPatched(e){return!!this.configuration.registry[e]}},{key:"patch",value:function patch(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=i.chain,n=tmp===void 0?!1:tmp;if(this.configuration.registry[e]&&this.configuration.registry[e].final)throw new Error("Failed patching '".concat(e,"': Method marked as being final"));if(typeof t!="function")throw new Error("Failed patching '".concat(e,"': Provided method is not a function"));if(n)this.configuration.registry[e]?this.configuration.registry[e].methods.push(t):this.configuration.registry[e]=Cb(t);else if(this.isPatched(e)){var _this_configuration_registry_e=this.configuration.registry[e],a=_this_configuration_registry_e.original;this.configuration.registry[e]=Object.assign(Cb(t),{original:a})}else this.configuration.registry[e]=Cb(t);return this}},{key:"patchInline",value:function patchInline(e,t){this.isPatched(e)||this.patch(e,t);for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a1?t-1:0),n=1;n0;){var a=n.shift();i=i?tV(i,a):TI(a)}return i}function tV(r,e){var t=TI(r);return Object.keys(e).forEach(function(i){t.hasOwnProperty(i)?Array.isArray(e[i])?t[i]=Array.isArray(t[i])?_to_consumable_array(t[i]).concat(_to_consumable_array(e[i])):_to_consumable_array(e[i]):_type_of(e[i])=="object"&&e[i]?t[i]=_type_of(t[i])=="object"&&t[i]?tV(t[i],e[i]):TI(e[i]):t[i]=e[i]:t[i]=e[i]}),t}function PWe(r){var e={};var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=r.keys()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;e[t]=r.get(t)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e}function qb(){for(var r=arguments.length,e=new Array(r),t=0;t65536)throw new TypeError("pattern is too long")},HWe={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Zl=function(r){return r.replace(/[[\]\\-]/g,"\\$&")},GK=function(r){return r.join("")},WWe=function(r,e){var t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");var i=[],n=[],a=t+1,o=!1,s=!1,A=!1,u=!1,c=t,l="";e:for(;al?i.push(Zl(l)+"-"+Zl(d)):d===l&&i.push(Zl(d)),l="",a++):r.startsWith("-]",a+1)?(i.push(Zl(d+"-")),a+=2):r.startsWith("-",a+1)?(l=d,a+=2):(i.push(Zl(d)),a++)}else A=!0,a++}else u=!0,a++}if(c1&&arguments[1]!==void 0?arguments[1]:{},tmp=_ref.windowsPathsNoEscape,e=tmp===void 0?!1:tmp;return e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},JWe=new Set(["!","?","+","*","@"]),LK=function(r){return JWe.has(r)},Eb="(?!\\.)",KWe=new Set(["[","."]),VWe=new Set(["..","."]),YWe=new Set("().*{}+?[]^$\\!"),Ob="[^/]",HK=Ob+"*?",WK=Ob+"+?",Jr,tt,Ln,Cr,Ur,ja,ss,Xa,dn,As,nf,GI,oV,LA,NI,af,Fb,LI,sV,Yt=function(){"use strict";function Yt1(e,t){_class_call_check(this,Yt1);It(this,GI);It(this,af);Ze(this,"type");It(this,Jr,void 0);It(this,tt,void 0);It(this,Ln,!1);It(this,Cr,[]);It(this,Ur,void 0);It(this,ja,void 0);It(this,ss,void 0);It(this,Xa,!1);It(this,dn,void 0);It(this,As,void 0);It(this,nf,!1);var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=e,e&&Fr(this,tt,!0),Fr(this,Ur,t),Fr(this,Jr,oe(this,Ur)?oe(oe(this,Ur),Jr):this),Fr(this,dn,oe(this,Jr)===this?i:oe(oe(this,Jr),dn)),Fr(this,ss,oe(this,Jr)===this?[]:oe(oe(this,Jr),ss)),e!=="!"||oe(oe(this,Jr),Xa)||oe(this,ss).push(this),Fr(this,ja,oe(this,Ur)?oe(oe(this,Ur),Cr).length:0)}_create_class(Yt1,[{key:"hasMagic",get:function get(){if(oe(this,tt)!==void 0)return oe(this,tt);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=oe(this,Cr)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var e=_step.value;if(typeof e!="string"&&(e.type||e.hasMagic))return Fr(this,tt,!0)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return oe(this,tt)}},{key:"toString",value:function toString(){return oe(this,As)!==void 0?oe(this,As):this.type?Fr(this,As,this.type+"("+oe(this,Cr).map(function(e){return String(e)}).join("|")+")"):Fr(this,As,oe(this,Cr).map(function(e){return String(e)}).join(""))}},{key:"push",value:function push(){for(var e=arguments.length,t=new Array(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:{},i=new Yt(null,void 0,t);return da(n=Yt,LA,NI).call(n,e,i,0,t),i}}]);return Yt1}(),MA=Yt;Jr=new WeakMap,tt=new WeakMap,Ln=new WeakMap,Cr=new WeakMap,Ur=new WeakMap,ja=new WeakMap,ss=new WeakMap,Xa=new WeakMap,dn=new WeakMap,As=new WeakMap,nf=new WeakMap,GI=new WeakSet,oV=function oV1(){if(this!==oe(this,Jr))throw new Error("should only call on root");if(oe(this,Xa))return this;var e;for(this.toString(),Fr(this,Xa,!0);e=oe(this,ss).pop();){if(e.type!=="!")continue;var t=e,i=oe(t,Ur);for(;i;){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;for(var n=oe(t,ja)+1;!i.type&&n2&&arguments[2]!==void 0&&arguments[2],n=!1,a="",o=!1;for(var s=0;s2&&arguments[2]!==void 0?arguments[2]:{};return MI(e),!(!t.nocomment&&e.charAt(0)==="#")&&new HA(e,t).match(r)},zWe=/^\*+([^+@!?\*\[\(]*)$/,jWe=function(r){return function(e){return!e.startsWith(".")&&e.endsWith(r)}},XWe=function(r){return function(e){return e.endsWith(r)}},ZWe=function(r){return r=r.toLowerCase(),function(e){return!e.startsWith(".")&&e.toLowerCase().endsWith(r)}},$We=function(r){return r=r.toLowerCase(),function(e){return e.toLowerCase().endsWith(r)}},e9e=/^\*+\.\*+$/,r9e=function(r){return!r.startsWith(".")&&r.includes(".")},t9e=function(r){return r!=="."&&r!==".."&&r.includes(".")},i9e=/^\.\*+$/,n9e=function(r){return r!=="."&&r!==".."&&r.startsWith(".")},a9e=/^\*+$/,o9e=function(r){return r.length!==0&&!r.startsWith(".")},s9e=function(r){return r.length!==0&&r!=="."&&r!==".."},A9e=/^\?+([^+@!?\*\[\(]*)?$/,c9e=function(r){var _r1=_sliced_to_array(r,2),e=_r1[0],tmp=_r1[1],t=tmp===void 0?"":tmp,i=AV([e]);return t?(t=t.toLowerCase(),function(n){return i(n)&&n.toLowerCase().endsWith(t)}):i},u9e=function(r){var _r1=_sliced_to_array(r,2),e=_r1[0],tmp=_r1[1],t=tmp===void 0?"":tmp,i=cV([e]);return t?(t=t.toLowerCase(),function(n){return i(n)&&n.toLowerCase().endsWith(t)}):i},l9e=function(r){var _r1=_sliced_to_array(r,2),e=_r1[0],tmp=_r1[1],t=tmp===void 0?"":tmp,i=cV([e]);return t?function(n){return i(n)&&n.endsWith(t)}:i},f9e=function(r){var _r1=_sliced_to_array(r,2),e=_r1[0],tmp=_r1[1],t=tmp===void 0?"":tmp,i=AV([e]);return t?function(n){return i(n)&&n.endsWith(t)}:i},AV=function(r){var _r1=_sliced_to_array(r,1),e=_r1[0],t=e.length;return function(i){return i.length===t&&!i.startsWith(".")}},cV=function(r){var _r1=_sliced_to_array(r,1),e=_r1[0],t=e.length;return function(i){return i.length===t&&i!=="."&&i!==".."}},uV=(typeof process==="undefined"?"undefined":_type_of(process))=="object"&&process?_type_of(process.env)=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";vt.sep=uV==="win32"?"\\":"/";var Qi=Symbol("globstar **");vt.GLOBSTAR=Qi,vt.filter=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(t){return vt(t,r,e)}};var yi=function yi1(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},r,e)};vt.defaults=function(r){if(!r||(typeof r==="undefined"?"undefined":_type_of(r))!="object"||!Object.keys(r).length)return vt;var e=vt;return Object.assign(function(t,i){return e(t,i,yi(r,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:function(_e_Minimatch){"use strict";_inherits(Minimatch,_e_Minimatch);function Minimatch(t){_class_call_check(this,Minimatch);return _call_super(this,Minimatch,[t,yi(r,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})])}_create_class(Minimatch,null,[{key:"defaults",value:function defaults(t){return e.defaults(yi(r,t)).Minimatch}}]);return Minimatch}(e.Minimatch),AST:function(_e_AST){"use strict";_inherits(AST,_e_AST);function AST(t,i){_class_call_check(this,AST);return _call_super(this,AST,[t,i,yi(r,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{})])}_create_class(AST,null,[{key:"fromGlob",value:function fromGlob(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.AST.fromGlob(t,yi(r,i))}}]);return AST}(e.AST),unescape:function unescape1(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.unescape(t,yi(r,i))},escape:function escape1(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.escape(t,yi(r,i))},filter:function filter(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.filter(t,yi(r,i))},defaults:function(t){return e.defaults(yi(r,t))},makeRe:function makeRe(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.makeRe(t,yi(r,i))},braceExpand:function braceExpand(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.braceExpand(t,yi(r,i))},match:function match(t,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.match(t,i,yi(r,n))},sep:e.sep,GLOBSTAR:Qi})};var lV=function lV1(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return MI(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:LWe(r)};vt.braceExpand=lV,vt.makeRe=function(r){return new HA(r,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},vt.match=function(r,e){var t=new HA(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return r=r.filter(function(i){return t.match(i)}),t.options.nonull&&!r.length&&r.push(e),r};var JK=/[?*]|[+@!]\(.*?\)|\[|\]/,HA=function(){"use strict";function HA1(e){_class_call_check(this,HA1);Ze(this,"options");Ze(this,"set");Ze(this,"pattern");Ze(this,"windowsPathsNoEscape");Ze(this,"nonegate");Ze(this,"negate");Ze(this,"comment");Ze(this,"empty");Ze(this,"preserveMultipleSlashes");Ze(this,"partial");Ze(this,"globSet");Ze(this,"globParts");Ze(this,"nocase");Ze(this,"isWindows");Ze(this,"platform");Ze(this,"windowsNoMagicRoot");Ze(this,"regexp");var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};MI(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||uV,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}_create_class(HA1,[{key:"hasMagic",value:function hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined,_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator=this.set[Symbol.iterator](),_step;!(_iteratorNormalCompletion1=(_step=_iterator.next()).done);_iteratorNormalCompletion1=true){var e=_step.value;try{for(var _iterator1=e[Symbol.iterator](),_step1;!(_iteratorNormalCompletion=(_step1=_iterator1.next()).done);_iteratorNormalCompletion=true){var t=_step1.value;if(typeof t!="string")return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}return!1}},{key:"debug",value:function debug(){}},{key:"make",value:function make(){var _this=this;var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#")return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=_to_consumable_array(new Set(this.braceExpand())),t.debug&&(this.debug=function(){var _console;return(_console=console).error.apply(_console,arguments)}),this.debug(this.pattern,this.globSet);var i=this.globSet.map(function(a){return _this.slashSplit(a)});this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);var n=this.globParts.map(function(a,o,s){if(_this.isWindows&&_this.windowsNoMagicRoot){var A=!(a[0]!==""||a[1]!==""||a[2]!=="?"&&JK.test(a[2])||JK.test(a[3])),u=/^[a-z]:/i.test(a[0]);if(A)return _to_consumable_array(a.slice(0,4)).concat(_to_consumable_array(a.slice(4).map(function(c){return _this.parse(c)})));if(u)return[a[0]].concat(_to_consumable_array(a.slice(1).map(function(c){return _this.parse(c)})))}return a.map(function(A){return _this.parse(A)})});if(this.debug(this.pattern,n),this.set=n.filter(function(a){return a.indexOf(!1)===-1}),this.isWindows)for(var a=0;a=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}},{key:"adjascentGlobstarOptimize",value:function adjascentGlobstarOptimize(e){return e.map(function(t){var i=-1;for(;(i=t.indexOf("**",i+1))!==-1;){var n=i;for(;t[n+1]==="**";)n++;n!==i&&t.splice(i,n-i)}return t})}},{key:"levelOneOptimize",value:function levelOneOptimize(e){return e.map(function(t){return(t=t.reduce(function(i,n){var a=i[i.length-1];return n==="**"&&a==="**"?i:n===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(n),i)},[])).length===0?[""]:t})}},{key:"levelTwoFileOptimize",value:function levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));var t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(var n=1;nn&&i.splice(n+1,o-n);var s=i[n+1],A=i[n+2],u=i[n+3];if(s!==".."||!A||A==="."||A===".."||!u||u==="."||u==="..")continue;t=!0,i.splice(n,1);var c=i.slice(0);c[n]="**",e.push(c),n--}if(!this.preserveMultipleSlashes){for(var o1=1;o12&&arguments[2]!==void 0&&arguments[2],n=0,a=0,o=[],s="";for(;n2&&arguments[2]!==void 0&&arguments[2],n=this.options;if(this.isWindows){var d=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),p=!d&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),m=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),x=p?3:d?0:void 0,v=!m&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3])?3:m?0:void 0;if(typeof x=="number"&&typeof v=="number"){var _ref=[e[x],t[v]],E=_ref[0],S=_ref[1];E.toLowerCase()===S.toLowerCase()&&(t[v]=E,v>x?t=t.slice(v):x>v&&(e=e.slice(x)))}}var _this_options=this.options,tmp=_this_options.optimizationLevel,a=tmp===void 0?1:tmp;a>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,s=0,A=e.length,u=t.length;o>> no match, partial?",e,f,t,g),f!==A))}var d2=void 0;if(typeof c=="string"?(d2=l===c,this.debug("string match",c,l,d2)):(d2=c.test(l),this.debug("pattern match",c,l,d2)),!d2)return!1}if(o===A&&s===u)return!0;if(o===A)return i;if(s===u)return o===A-1&&e[o]==="";throw new Error("wtf?")}},{key:"braceExpand",value:function braceExpand(){return lV(this.pattern,this.options)}},{key:"parse",value:function parse(e){MI(e);var t=this.options;if(e==="**")return Qi;if(e==="")return"";var i,n=null;(i=e.match(a9e))?n=t.dot?s9e:o9e:(i=e.match(zWe))?n=(t.nocase?t.dot?$We:ZWe:t.dot?XWe:jWe)(i[1]):(i=e.match(A9e))?n=(t.nocase?t.dot?u9e:c9e:t.dot?l9e:f9e)(i):(i=e.match(e9e))?n=t.dot?t9e:r9e:(i=e.match(i9e))&&(n=n9e);var a=MA.fromGlob(e,this.options).toMMPattern();return n&&(typeof a==="undefined"?"undefined":_type_of(a))=="object"&&Reflect.defineProperty(a,"test",{value:n}),a}},{key:"makeRe",value:function makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,i=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=new Set(t.nocase?["i"]:[]),a=e.map(function(A){var u=A.map(function(c){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(_instanceof(c,RegExp))try{for(var _iterator=c.flags.split("")[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var l=_step.value;n.add(l)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return typeof c=="string"?c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):c===Qi?Qi:c._src});return u.forEach(function(c,l){var f=u[l+1],g=u[l-1];c===Qi&&g!==Qi&&(g===void 0?f!==void 0&&f!==Qi?u[l+1]="(?:\\/|"+i+"\\/)?"+f:u[l]=i:f===void 0?u[l-1]=g+"(?:\\/|"+i+")?":f!==Qi&&(u[l-1]=g+"(?:\\/|\\/"+i+"\\/)"+f,u[l+1]=Qi))}),u.filter(function(c){return c!==Qi}).join("/")}).join("|"),_ref=_sliced_to_array(e.length>1?["(?:",")"]:["",""],2),o=_ref[0],s=_ref[1];a="^"+o+a+s+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,_to_consumable_array(n).join(""))}catch(A){this.regexp=!1}return this.regexp}},{key:"slashSplit",value:function slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?[""].concat(_to_consumable_array(e.split(/\/+/))):e.split(/\/+/)}},{key:"match",value:function match(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;var i=this.options;this.isWindows&&(e=e.split("\\").join("/"));var n=this.slashSplit(e);this.debug(this.pattern,"split",n);var a=this.set;this.debug(this.pattern,"set",a);var o=n[n.length-1];if(!o)for(var s=n.length-2;!o&&s>=0;s--)o=n[s];for(var s2=0;s21&&arguments[1]!==void 0?arguments[1]:"","Invalid response: ").concat(r.status," ").concat(r.statusText));return e.status=r.status,e.response=r,e}function Yr(r,e){var t=e.status;if(t===401&&r.digest)return e;if(t>=400)throw Tb(e);return e}function cs(r,e){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:e,headers:r.headers?PWe(r.headers):{},status:r.status,statusText:r.statusText}:e}vt.AST=MA,vt.Minimatch=HA,vt.escape=function(r){var _ref=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tmp=_ref.windowsPathsNoEscape,e=tmp===void 0?!1:tmp;return e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&")},vt.unescape=$l;var g9e=(KK=function KK1(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=Vr({url:yr(r.remoteURL,Er(e)),method:"COPY",headers:{Destination:yr(r.remoteURL,Er(t)),Overwrite:i.overwrite===!1?"F":"T",Depth:i.shallow?"0":"infinity"}},r,i);return o=function o(s){Yr(r,s)},(a=Kr(n,r))&&a.then||(a=Promise.resolve(a)),o?a.then(o):a;var a,o},function g9e1(){for(var r=[],e=0;e2&&arguments[2]!==void 0?arguments[2]:UA.Original,i=Gn().get(r,e);return t==="array"&&Array.isArray(i)===!1?[i]:t==="object"&&Array.isArray(i)?i[0]:i}function of(r){return new Promise(function(e){e(function(t){var i=t.multistatus;if(i==="")return{multistatus:{response:[]}};if(!i)throw new Error("Invalid response: No root multistatus found");var n={multistatus:Array.isArray(i)?i[0]:i};return Gn().set(n,"multistatus.response",RI(n,"multistatus.response",UA.Array)),Gn().set(n,"multistatus.response",Gn().get(n,"multistatus.response").map(function(a){return function(o){var s=Object.assign({},o);return s.status?Gn().set(s,"status",RI(s,"status",UA.Object)):(Gn().set(s,"propstat",RI(s,"propstat",UA.Object)),Gn().set(s,"propstat.prop",RI(s,"propstat.prop",UA.Object))),s}(a)})),n}(new Pb.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:function(t,i,n){return i==="true"||i==="false"?i==="true":i},tagValueProcessor:function tagValueProcessor(t,i,n){if(!n.endsWith("propstat.prop.displayname"))return i}}).parse(r)))})}function HI(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],tmp=r.getlastmodified,i=tmp===void 0?null:tmp,tmp1=r.getcontentlength,n=tmp1===void 0?"0":tmp1,tmp2=r.resourcetype,a=tmp2===void 0?null:tmp2,tmp3=r.getcontenttype,o=tmp3===void 0?null:tmp3,tmp4=r.getetag,s=tmp4===void 0?null:tmp4,A=a&&(typeof a==="undefined"?"undefined":_type_of(a))=="object"&&a.collection!==void 0?"directory":"file",u={filename:e,basename:OI().basename(e),lastmod:i,size:parseInt(n,10),type:A,etag:typeof s=="string"?s.replace(/"/g,""):null};return A==="file"&&(u.mime=o&&typeof o=="string"?o.split(";")[0]:""),t&&(r.displayname!==void 0&&(r.displayname=String(r.displayname)),u.props=r),u}function fV(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=null;try{r.multistatus.response[0].propstat&&(i=r.multistatus.response[0])}catch(c){}if(!i)throw new Error("Failed getting item stat: bad response");var _i_propstat=i.propstat,n=_i_propstat.prop,a=_i_propstat.status,_a_split=_sliced_to_array(a.split(" ",3),3),o=_a_split[0],s=_a_split[1],A=_a_split[2],u=parseInt(s,10);if(u>=400){var c=new Error("Invalid response: ".concat(u," ").concat(A));throw c.status=u,c}return HI(n,rf(e),t)}function gV(r){switch(String(r)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(r),10)}}function yb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var Mb=function(r){return function(){for(var e=[],t=0;t2&&arguments[2]!==void 0?arguments[2]:{},tmp=t.details,i=tmp===void 0?!1:tmp,n=Vr({url:yr(r.remoteURL,Er(e)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},r,t);return yb(Kr(n,r),function(a){return Yr(r,a),yb(a.text(),function(o){return yb(of(o),function(s){var A=fV(s,e,i);return cs(a,A,i)})})})});function dV(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var h9e=hV(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=function(a){if(!a||a==="/")return[];var o=a,s=[];do s.push(o),o=OI().dirname(o);while(o&&o!=="/");return s}(rf(e));i.sort(function(a,o){return a.length>o.length?1:o.length>a.length?-1:0});var n=!1;return function(a,o,s){if(typeof a[YK]=="function"){var d=function d2(p){try{for(;!(A=l.next()).done;)if((p=o(A.value))&&p.then){if(!zK(p))return void p.then(d,c||(c=Dt.bind(null,u=new GA,2)));p=p.v}u?Dt(u,1,p):u=p}catch(m){Dt(u||(u=new GA),2,m)}};var A,u,c,l=a[YK]();if(d(),l.return){var f=function f(p){try{A.done||l.return()}catch(m){}return p};if(u&&u.then)return u.then(f,function(p){throw f(p)});f()}return u}if(!("length"in a))throw new TypeError("Object is not iterable");for(var g=[],h=0;h2&&arguments[2]!==void 0?arguments[2]:{};if(t.recursive===!0)return h9e(r,e,t);var i=Vr({url:yr(r.remoteURL,(n=Er(e),n.endsWith("/")?n:n+"/")),method:"MKCOL"},r,t);var n;return dV(Kr(i,r),function(a){Yr(r,a)})}),p9e=sr(388),jK=sr.n(p9e),x9e=function(r){return function(){for(var e=[],t=0;t2&&arguments[2]!==void 0?arguments[2]:{},i={};if(_type_of(t.range)=="object"&&typeof t.range.start=="number"){var s="bytes=".concat(t.range.start,"-");typeof t.range.end=="number"&&(s="".concat(s).concat(t.range.end)),i.Range=s}var n=Vr({url:yr(r.remoteURL,Er(e)),method:"GET",headers:i},r,t);return o=function o(s){if(Yr(r,s),i.Range&&s.status!==206){var A=new Error("Invalid response code for partial request: ".concat(s.status));throw A.status=s.status,A}return t.callback&&setTimeout(function(){t.callback(s)},0),s.body},(a=Kr(n,r))&&a.then||(a=Promise.resolve(a)),o?a.then(o):a;var a,o}),m9e=function(){},v9e=function(r){return function(){for(var e=[],t=0;t2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e)),method:"DELETE"},r,t);return a=function a(o){Yr(r,o)},(n=Kr(i,r))&&n.then||(n=Promise.resolve(n)),a?n.then(a):n;var n,a}),B9e=function(r){return function(){for(var e=[],t=0;t2&&arguments[2]!==void 0?arguments[2]:{};return function(i,n){try{var a=(o=Mb(r,e,t),s=function s(){return!0},A?s?s(o):o:(o&&o.then||(o=Promise.resolve(o)),s?o.then(s):o))}catch(u){return n(u)}var o,s,A;return a&&a.then?a.then(void 0,n):a}(0,function(i){if(i.status===404)return!1;throw i})});function Qb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var E9e=function(r){return function(){for(var e=[],t=0;t2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:t.deep?"infinity":"1"}},r,t);return Qb(Kr(i,r),function(n){return Yr(r,n),Qb(n.text(),function(a){if(!a)throw new Error("Failed parsing directory contents: Empty response");return Qb(of(a),function(o){var s=NK(e),A=function(u,c,l){var f=arguments.length>3&&arguments[3]!==void 0&&arguments[3],g=arguments.length>4&&arguments[4]!==void 0&&arguments[4],h=OI().join(c,"/"),_u_multistatus=u.multistatus,d=_u_multistatus.response,p=d.map(function(m){var x=function(E){try{return E.replace(/^https?:\/\/[^\/]+/,"")}catch(S){throw new gt(S,"Failed normalising HREF")}}(m.href),_m_propstat=m.propstat,v=_m_propstat.prop;return HI(v,h==="/"?decodeURIComponent(rf(x)):rf(OI().relative(decodeURIComponent(h),decodeURIComponent(x))),f)});return g?p:p.filter(function(m){return m.basename&&(m.type==="file"||m.filename!==l.replace(/\/$/,""))})}(o,NK(r.remoteBasePath||r.remotePath),s,t.details,t.includeSelf);return t.glob&&(A=function(u,c){return u.filter(function(l){return vt(l.filename,c,{matchBase:!0})})}(A,t.glob)),cs(n,A,t.details)})})})});function Ub(r){return function(){for(var e=[],t=0;t2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[w9e]},r,t);return UI(Kr(i,r),function(n){return Yr(r,n),UI(n.text(),function(a){return cs(n,a,t.details)})})});function UI(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var Q9e=Ub(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e)),method:"GET"},r,t);return UI(Kr(i,r),function(n){var a;return Yr(r,n),function(o,s){var A=o();return A&&A.then?A.then(s):s()}(function(){return UI(n.arrayBuffer(),function(o){a=o})},function(){return cs(n,a,t.details)})})}),b9e=Ub(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=t.format,i=tmp===void 0?"binary":tmp;if(i!=="binary"&&i!=="text")throw new gt({info:{code:Hn.InvalidOutputFormat}},"Invalid output format: ".concat(i));return i==="text"?y9e(r,e,t):Q9e(r,e,t)}),w9e=function(r){return r};function S9e(r){return new Pb.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(IV({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:r}}},"d"))}function IV(r,e){var t=_object_spread({},r);for(var i in t)t.hasOwnProperty(i)&&(t[i]&&_type_of(t[i])=="object"&&i.indexOf(":")===-1?(t["".concat(e,":").concat(i)]=IV(t[i],e),delete t[i]):/^@_/.test(i)===!1&&(t["".concat(e,":").concat(i)]=t[i],delete t[i]));return t}function Rb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function pV(r){return function(){for(var e=[],t=0;t3&&arguments[3]!==void 0?arguments[3]:{},n=Vr({url:yr(r.remoteURL,Er(e)),method:"UNLOCK",headers:{"Lock-Token":t}},r,i);return Rb(Kr(n,r),function(a){if(Yr(r,a),a.status!==204&&a.status!==200)throw Tb(a)})}),q9e=pV(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.refreshToken,tmp=t.timeout,n=tmp===void 0?D9e:tmp,a={Accept:"text/plain,application/xml",Timeout:n};i&&(a.If=i);var o=Vr({url:yr(r.remoteURL,Er(e)),method:"LOCK",headers:a,data:S9e(r.contactHref)},r,t);return Rb(Kr(o,r),function(s){return Yr(r,s),Rb(s.text(),function(A){var u=(f=A,new Pb.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(f)),c=Gn().get(u,"prop.lockdiscovery.activelock.locktoken.href"),l=Gn().get(u,"prop.lockdiscovery.activelock.timeout");var f;if(!c)throw Tb(s,"No lock token received: ");return{token:c,serverTimeout:l}})})}),D9e="Infinite, Second-4100000000";function bb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var F9e=function(r){return function(){for(var e=[],t=0;t1&&arguments[1]!==void 0?arguments[1]:{},t=e.path||"/",i=Vr({url:yr(r.remoteURL,t),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},r,e);return bb(Kr(i,r),function(n){return Yr(r,n),bb(n.text(),function(a){return bb(of(a),function(o){var s=function(A){try{var _A_multistatus_response=_sliced_to_array(A.multistatus.response,1),u=_A_multistatus_response[0],_u_propstat=u.propstat,_u_propstat_prop=_u_propstat.prop,c=_u_propstat_prop["quota-used-bytes"],l=_u_propstat_prop["quota-available-bytes"];return c!==void 0&&l!==void 0?{used:parseInt(String(c),10),available:gV(l)}:null}catch(u){}return null}(o);return cs(n,s,e.details)})})})});function wb(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var k9e=function(r){return function(){for(var e=[],t=0;t2&&arguments[2]!==void 0?arguments[2]:{},tmp=t.details,i=tmp===void 0?!1:tmp,n=Vr({url:yr(r.remoteURL,Er(e)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":r.headers["Content-Type"]||"application/xml; charset=utf-8"}},r,t);return wb(Kr(n,r),function(a){return Yr(r,a),wb(a.text(),function(o){return wb(of(o),function(s){var A=function(u,c,l){var f={truncated:!1,results:[]};return f.truncated=u.multistatus.response.some(function(g){var h,d;return((d=(g.status||((h=g.propstat)==null?void 0:h.status)).split(" ",3))==null?void 0:d[1])==="507"&&g.href.replace(/\/$/,"").endsWith(Er(c).replace(/\/$/,""))}),u.multistatus.response.forEach(function(g){if(g.propstat===void 0)return;var h=g.href.split("/").map(decodeURIComponent).join("/");f.results.push(HI(g.propstat.prop,h,l))}),f}(s,e,i);return cs(a,A,i)})})})}),R9e=function(r){return function(){for(var e=[],t=0;t3&&arguments[3]!==void 0?arguments[3]:{},n=Vr({url:yr(r.remoteURL,Er(e)),method:"MOVE",headers:{Destination:yr(r.remoteURL,Er(t)),Overwrite:i.overwrite===!1?"F":"T"}},r,i);return o=function o(s){Yr(r,s)},(a=Kr(n,r))&&a.then||(a=Promise.resolve(a)),o?a.then(o):a;var a,o}),N9e=sr(172),O9e=function(r){return function(){for(var e=[],t=0;t3&&arguments[3]!==void 0?arguments[3]:{},tmp=i.contentLength,n=tmp===void 0?!0:tmp,tmp1=i.overwrite,a=tmp1===void 0?!0:tmp1,o={"Content-Type":"application/octet-stream"};n===!1||(o["Content-Length"]=typeof n=="number"?"".concat(n):"".concat(function(c){if(iV(c))return c.byteLength;if(nV(c))return c.length;if(typeof c=="string")return(0,N9e.d)(c);throw new gt({info:{code:Hn.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(t))),a||(o["If-None-Match"]="*");var s=Vr({url:yr(r.remoteURL,Er(e)),method:"PUT",headers:o,data:t},r,i);return u=function u(c){try{Yr(r,c)}catch(l){var f=l;if(f.status!==412||a)throw f;return!1}return!0},(A=Kr(s,r))&&A.then||(A=Promise.resolve(A)),u?A.then(u):A;var A,u}),xV=function(r){return function(){for(var e=[],t=0;t2&&arguments[2]!==void 0?arguments[2]:{},i=Vr({url:yr(r.remoteURL,Er(e)),method:"OPTIONS"},r,t);return a=function a(o){var s,A;try{Yr(r,o)}catch(u){throw u}return{compliance:((s=o.headers.get("DAV"))!=null?s:"").split(",").map(function(u){return u.trim()}),server:(A=o.headers.get("Server"))!=null?A:""}},(n=Kr(i,r))&&n.then||(n=Promise.resolve(n)),a?n.then(a):n;var n,a});function ef(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}var T9e=Gb(function(r,e,t,i,n){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(t>i||t<0)throw new gt({info:{code:Hn.InvalidUpdateRange}},"Invalid update range ".concat(t," for partial update"));var o={"Content-Type":"application/octet-stream","Content-Length":""+(i-t+1),"Content-Range":"bytes ".concat(t,"-").concat(i,"/*")},s=Vr({url:yr(r.remoteURL,Er(e)),method:"PUT",headers:o,data:n},r,a);return ef(Kr(s,r),function(A){Yr(r,A)})});function XK(r,e){var t=r();return t&&t.then?t.then(e):e(t)}var P9e=Gb(function(r,e,t,i,n){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(t>i||t<0)throw new gt({info:{code:Hn.InvalidUpdateRange}},"Invalid update range ".concat(t," for partial update"));var o={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(i-t+1),"X-Update-Range":"bytes=".concat(t,"-").concat(i)},s=Vr({url:yr(r.remoteURL,Er(e)),method:"PATCH",headers:o,data:n},r,a);return ef(Kr(s,r),function(A){Yr(r,A)})});function Gb(r){return function(){for(var e=[],t=0;t5&&arguments[5]!==void 0?arguments[5]:{};return ef(xV(r,e,a),function(o){var s=!1;return XK(function(){if(o.compliance.includes("sabredav-partialupdate"))return ef(P9e(r,e,t,i,n,a),function(A){return s=!0,A})},function(A){var u=!1;return s?A:XK(function(){if(o.server.includes("Apache")&&o.compliance.includes(""))return ef(T9e(r,e,t,i,n,a),function(c){return u=!0,c})},function(c){if(u)return c;throw new gt({info:{code:Hn.NotSupported}},"Not supported")})})})}),U9e="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";function G9e(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tmp=e.authType,t=tmp===void 0?null:tmp,i=e.remoteBasePath,tmp1=e.contactHref,n=tmp1===void 0?U9e:tmp1,a=e.ha1,tmp2=e.headers,o=tmp2===void 0?{}:tmp2,s=e.httpAgent,A=e.httpsAgent,u=e.password,c=e.token,l=e.username,f=e.withCredentials,g=t;g||(g=l||u?qt.Password:qt.None);var h={authType:g,remoteBasePath:i,contactHref:n,ha1:a,headers:Object.assign({},o),httpAgent:s,httpsAgent:A,password:u,remotePath:qWe(r),remoteURL:r,token:c,username:l,withCredentials:f};return eV(h,l,u,c,a),{copyFile:function(d,p,m){return g9e(h,d,p,m)},createDirectory:function(d,p){return kb(h,d,p)},createReadStream:function(d,p){return function(m,x){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E=new(jK().PassThrough);return x9e(m,x,v).then(function(S){S.pipe(E)}).catch(function(S){E.emit("error",S)}),E}(h,d,p)},createWriteStream:function(d,p,m){return function(x,v){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:m9e,B=new(jK().PassThrough),b={};E.overwrite===!1&&(b["If-None-Match"]="*");var C=Vr({url:yr(x.remoteURL,Er(v)),method:"PUT",headers:b,data:B,maxRedirects:0},x,E);return Kr(C,x).then(function(y){return Yr(x,y)}).then(function(y){setTimeout(function(){S(y)},0)}).catch(function(y){B.emit("error",y)}),B}(h,d,p,m)},customRequest:function(d,p){return v9e(h,d,p)},deleteFile:function(d,p){return C9e(h,d,p)},exists:function(d,p){return B9e(h,d,p)},getDirectoryContents:function(d,p){return E9e(h,d,p)},getFileContents:function(d,p){return b9e(h,d,p)},getFileDownloadLink:function(d){return function(p,m){var x=yr(p.remoteURL,Er(m)),v=/^https:/i.test(x)?"https":"http";switch(p.authType){case qt.None:break;case qt.Password:{var E=TK(p.headers.Authorization.replace(/^Basic /i,"").trim());x=x.replace(/^https?:\/\//,"".concat(v,"://").concat(E,"@"));break}default:throw new gt({info:{code:Hn.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(p.authType))}return x}(h,d)},getFileUploadLink:function(d){return function(p,m){var x="".concat(yr(p.remoteURL,Er(m)),"?Content-Type=application/octet-stream"),v=/^https:/i.test(x)?"https":"http";switch(p.authType){case qt.None:break;case qt.Password:{var E=TK(p.headers.Authorization.replace(/^Basic /i,"").trim());x=x.replace(/^https?:\/\//,"".concat(v,"://").concat(E,"@"));break}default:throw new gt({info:{code:Hn.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(p.authType))}return x}(h,d)},getHeaders:function(){return Object.assign({},h.headers)},getQuota:function(d){return F9e(h,d)},lock:function(d,p){return q9e(h,d,p)},moveFile:function(d,p,m){return R9e(h,d,p,m)},putFileContents:function(d,p,m){return O9e(h,d,p,m)},partialUpdateFileContents:function(d,p,m,x,v){return M9e(h,d,p,m,x,v)},getDAVCompliance:function(d){return xV(h,d)},search:function(d,p){return k9e(h,d,p)},setHeaders:function(d){h.headers=Object.assign({},d)},stat:function(d,p){return Mb(h,d,p)},unlock:function(d,p,m){return _9e(h,d,p,m)}}}var Gmr=bi.hT,Lmr=bi.O4,Hmr=bi.Kd,Wmr=bi.YK,sf=bi.UU,mV=bi.Gu,Jmr=bi.ky,Kmr=bi.h4,Vmr=bi.ch,Ymr=bi.hq,zmr=bi.i5;function vV(r){return Object.fromEntries(Object.entries(r).map(function(param){var _param=_sliced_to_array(param,2),e=_param[0],t=_param[1];return[e.toLowerCase(),t]}))}function L9e(r){return!/[^\u0000-\u00ff]/g.test(r)}SK&&mV().patch("request",function(r){return _async_to_generator(function(){var u,e,t,i,n,a,_tmp,o,c,s,A;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=vV(_object_spread({},r.headers));delete e.host,delete e["content-length"];t=(u=e.accept)!=null?u:e["content-type"],i=_object_spread({},e);i.hasOwnProperty("authorization")&&(i.authorization="");n={url:r.url,method:r.method,body:r.data,headers:e,contentType:t,throw:!1};return[4,gn(n)];case 1:a=_state.sent();_tmp=a.status===401&&BV.Platform.isIosApp&&!r.url.endsWith("/")&&!r.url.endsWith(".md")&&r.method.toUpperCase()==="PROPFIND";if(!_tmp)return[3,3];n.url="".concat(r.url,"/");return[4,gn(n)];case 2:_tmp=a=_state.sent();_state.label=3;case 3:_tmp;o=vV(_object_spread({},a.headers));for(var c in o)o.hasOwnProperty(c)&&(L9e(o[c])||(o[c]=encodeURIComponent(o[c])));A=(0,CV.getReasonPhrase)(a.status);return[2,([101,103,204,205,304].includes(a.status)?s=new Response(null,{status:a.status,statusText:A,headers:o}):s=new Response(a.arrayBuffer,{status:a.status,statusText:A,headers:o}),s)]}})})()});var Hb=typeof Buffer=="function",cvr=typeof TextDecoder=="function"?new TextDecoder:void 0,EV=typeof TextEncoder=="function"?new TextEncoder:void 0,H9e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Af=Array.prototype.slice.call(H9e),uvr=function(r){var e={};return r.forEach(function(t,i){return e[t]=i}),e}(Af);var hn=String.fromCharCode.bind(String),lvr=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(r){return new Uint8Array(Array.prototype.slice.call(r,0))},QV=function(r){return r.replace(/=/g,"").replace(/[+\/]/g,function(e){return e=="+"?"-":"_"})};var W9e=function(r){var e,t,i,n,a="",o=r.length%3;for(var s=0;s255||(i=r.charCodeAt(s++))>255||(n=r.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=t<<16|i<<8|n,a+=Af[e>>18&63]+Af[e>>12&63]+Af[e>>6&63]+Af[e&63]}return o?a.slice(0,o-3)+"===".substring(o):a},bV=typeof btoa=="function"?function(r){return btoa(r)}:Hb?function(r){return Buffer.from(r,"binary").toString("base64")}:W9e,Lb=Hb?function(r){return Buffer.from(r).toString("base64")}:function(r){var t=[];for(var i=0,n=r.length;i1&&arguments[1]!==void 0?arguments[1]:!1;return e?QV(Lb(r)):Lb(r)},J9e=function(r){if(r.length<2){var e=r.charCodeAt(0);return e<128?r:e<2048?hn(192|e>>>6)+hn(128|e&63):hn(224|e>>>12&15)+hn(128|e>>>6&63)+hn(128|e&63)}else{var e=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return hn(240|e>>>18&7)+hn(128|e>>>12&63)+hn(128|e>>>6&63)+hn(128|e&63)}},K9e=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,V9e=function(r){return r.replace(K9e,J9e)},yV=Hb?function(r){return Buffer.from(r,"utf8").toString("base64")}:EV?function(r){return Lb(EV.encode(r))}:function(r){return bV(V9e(r))},SV=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e?QV(yV(r)):yV(r)};var Zc=require("obsidian");var lte=require("obsidian");var Wb=function Wb1(r,e){return Wb=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Wb(r,e)};function WA(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Wb(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function cf(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function next(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function JA(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-->0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function KA(r,e,t){if(t||arguments.length===2)for(var i=0,n=e.length,a;i0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,n=this,a=n.hasError,o=n.isStopped,s=n.observers;return a||o?Jb:(this.currentObservers=null,s.push(t),new VA(function(){i.currentObservers=null,uf(s,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,n=i.hasError,a=i.thrownError,o=i.isStopped;n?t.error(a):o&&t.complete()},e.prototype.asObservable=function(){var t=new Xb;return t.source=this,t},e.create=function(t,i){return new UV(t,i)},e}(Xb);var UV=function(r){WA(e,r);function e(t,i){var n=r.call(this)||this;return n.destination=t,n.source=i,n}return e.prototype.next=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,t)},e.prototype.error=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&n!==void 0?n:Jb},e}(Gr);var GV=new Gr,lf=function(){return GV.asObservable()},Za=function(){return GV.next()};var LV=new Gr,zI=function(){return LV.asObservable()},Zb=function(r){return LV.next(r)};var HV=new Gr,WV=function(){return HV.asObservable()},ls=function(r){return HV.next(r)};var JV=new Gr,KV=function(){return JV.asObservable()},VV=function(r){return JV.next(r)};var YV=new Gr,jI=function(){return YV.asObservable()},zV=function(r,e){return YV.next({total:r,completed:e})};var jV=new Gr,XI=function(){return jV.asObservable()},XV=function(r){return jV.next(r)};var ZV=new Gr,$V=function(){return ZV.asObservable()},eY=function(r,e){return ZV.next({total:r,completed:e})};var _Cr=new Gr;var ye=function(r){return typeof r=="string"},ff=function(){var r,e,t=new Promise(function(i,n){r=i,e=n});return t.resolve=r,t.reject=e,t},rY=function(r){return r==null?"":""+r},eJe=function(r,e,t){r.forEach(function(i){e[i]&&(t[i]=e[i])})},rJe=/###/g,tY=function(r){return r&&r.indexOf("###")>-1?r.replace(rJe,"."):r},iY=function(r){return!r||ye(r)},gf=function(r,e,t){var i=ye(e)?e.split("."):e,n=0;for(;n":">","\"":""","'":"'","/":"/"},aJe=function(r){return ye(r)?r.replace(/[&<>"'\/]/g,function(e){return nJe[e]}):r},ew=function(){"use strict";function ew1(e){_class_call_check(this,ew1);this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}_create_class(ew1,[{key:"getRegExp",value:function getRegExp(e){var t=this.regExpMap.get(e);if(t!==void 0)return t;var i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}]);return ew1}(),oJe=[" ",",","?","!",";"],sJe=new ew(20),AJe=function(r,e,t){e=e||"",t=t||"";var i=oJe.filter(function(o){return e.indexOf(o)<0&&t.indexOf(o)<0});if(i.length===0)return!0;var n=sJe.getRegExp("(".concat(i.map(function(o){return o==="?"?"\\?":o}).join("|"),")")),a=!n.test(r);if(!a){var o=r.indexOf(t);o>0&&!n.test(r.substring(0,o))&&(a=!0)}return a},rw=function rw1(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[e])return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0;var i=e.split(t),n=r;for(var a=0;a-1&&A1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}_create_class(ZA1,[{key:"init",value:function init(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||cJe,this.options=t,this.debug=t.debug}},{key:"log",value:function log(){for(var e=arguments.length,t=new Array(e),i=0;i1?t-1:0),n=1;n1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};_this=_call_super(this,rp1),_this.data=e||{},_this.options=t,_this.options.keySeparator===void 0&&(_this.options.keySeparator="."),_this.options.ignoreJSONStructure===void 0&&(_this.options.ignoreJSONStructure=!0);return _this}_create_class(rp1,[{key:"addNamespaces",value:function addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function removeNamespaces(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function getResource(e,t,i){var _s1,_s2;var u,c;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure,s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],i&&(Array.isArray(i)?(_s1=s).push.apply(_s1,_to_consumable_array(i)):ye(i)&&a?(_s2=s).push.apply(_s2,_to_consumable_array(i.split(a))):s.push(i)));var A=$I(this.data,s);return!A&&!t&&!i&&e.indexOf(".")>-1&&(e=s[0],t=s[1],i=s.slice(2).join(".")),A||!o||!ye(i)?A:rw((c=(u=this.data)==null?void 0:u[e])==null?void 0:c[t],i,a)}},{key:"addResource",value:function addResource(e,t,i,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=[e,t];i&&(s=s.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(s=e.split("."),n=t,t=s[1]),this.addNamespaces(t),nY(this.data,s,n),a.silent||this.emit("added",e,t,i,n)}},{key:"addResources",value:function addResources(e,t,i){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in i)(ye(i[a])||Array.isArray(i[a]))&&this.addResource(e,t,a,i[a],{silent:!0});n.silent||this.emit("added",e,t,i)}},{key:"addResourceBundle",value:function addResourceBundle(e,t,i,n,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),n=i,i=t,t=s[1]),this.addNamespaces(t);var A=$I(this.data,s)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?fY(A,i,a):A=_object_spread({},A,i),nY(this.data,s,A),o.silent||this.emit("added",e,t,i)}},{key:"removeResourceBundle",value:function removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}},{key:"getResourceBundle",value:function getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}},{key:"getDataByLanguage",value:function getDataByLanguage(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function hasLanguageSomeTranslations(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(n){return t[n]&&Object.keys(t[n]).length>0})}},{key:"toJSON",value:function toJSON(){return this.data}}]);return rp1}($A),gY={processors:{},addPostProcessor:function addPostProcessor(r){this.processors[r.name]=r},handle:function handle(r,e,t,i,n){var _this=this;return r.forEach(function(a){var o,s;e=(s=(o=_this.processors[a])==null?void 0:o.process(e,t,i,n))!=null?s:e}),e}},aY={},oY=function(r){return!ye(r)&&typeof r!="boolean"&&typeof r!="number"},ec=function($A1){"use strict";_inherits(ec1,$A1);function ec1(e){_class_call_check(this,ec1);var _this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_this=_call_super(this,ec1),eJe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,_this),_this.options=t,_this.options.keySeparator===void 0&&(_this.options.keySeparator="."),_this.logger=In.create("translator");return _this}_create_class(ec1,[{key:"changeLanguage",value:function changeLanguage(e){e&&(this.language=e)}},{key:"exists",value:function exists(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var i=this.resolve(e,t);return(i==null?void 0:i.res)!==void 0}},{key:"extractFromKey",value:function extractFromKey(e,t){var i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");var n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],o=i&&e.indexOf(i)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!AJe(e,i,n);if(o&&!s){var A=e.match(this.interpolator.nestingRegexp);if(A&&A.length>0)return{key:e,namespaces:ye(a)?[a]:a};var u=e.split(i);(i!==n||i===n&&this.options.ns.indexOf(u[0])>-1)&&(a=u.shift()),e=u.join(n)}return{key:e,namespaces:ye(a)?[a]:a}}},{key:"translate",value:function translate(e,t,i){var _this=this;if((typeof t==="undefined"?"undefined":_type_of(t))!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),(typeof t==="undefined"?"undefined":_type_of(t))=="object"&&(t=_object_spread({},t)),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);var n=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,_this_extractFromKey=this.extractFromKey(e[e.length-1],t),o=_this_extractFromKey.key,s=_this_extractFromKey.namespaces,A=s[s.length-1],u=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((u==null?void 0:u.toLowerCase())==="cimode"){if(c){var w=t.nsSeparator||this.options.nsSeparator;return n?{res:"".concat(A).concat(w).concat(o),usedKey:o,exactUsedKey:o,usedLng:u,usedNS:A,usedParams:this.getUsedParamsDetails(t)}:"".concat(A).concat(w).concat(o)}return n?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:A,usedParams:this.getUsedParamsDetails(t)}:o}var l=this.resolve(e,t),f=l==null?void 0:l.res,g=(l==null?void 0:l.usedKey)||o,h=(l==null?void 0:l.exactUsedKey)||o,d=["[object Number]","[object Function]","[object RegExp]"],p=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,x=t.count!==void 0&&!ye(t.count),v=ec.hasDefaultValue(t),E=x?this.pluralResolver.getSuffix(u,t.count,t):"",S=t.ordinal&&x?this.pluralResolver.getSuffix(u,t.count,{ordinal:!1}):"",B=x&&!t.ordinal&&t.count===0,b=B&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(E)]||t["defaultValue".concat(S)]||t.defaultValue,C=f;m&&!f&&v&&(C=b);var y=oY(C),q=Object.prototype.toString.apply(C);if(m&&C&&y&&d.indexOf(q)<0&&!(ye(p)&&Array.isArray(C))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("正在访问对象——但未启用 returnObjects 选项!");var w2=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,C,_object_spread_props(_object_spread({},t),{ns:s})):"key '".concat(o," (").concat(this.language,")' returned an object instead of string.");return n?(l.res=w2,l.usedParams=this.getUsedParamsDetails(t),l):w2}if(a){var w3=Array.isArray(C),N=w3?[]:{},F=w3?h:g;for(var M in C)if(Object.prototype.hasOwnProperty.call(C,M)){var U="".concat(F).concat(a).concat(M);v&&!f?N[M]=this.translate(U,_object_spread_props(_object_spread({},t),{defaultValue:oY(b)?b[M]:void 0,joinArrays:!1,ns:s})):N[M]=this.translate(U,_object_spread_props(_object_spread({},t),{joinArrays:!1,ns:s})),N[M]===U&&(N[M]=C[M])}f=N}}else if(m&&ye(p)&&Array.isArray(f))f=f.join(p),f&&(f=this.extendTranslation(f,e,t,i));else{var w4=!1,N1=!1;!this.isValidLookup(f)&&v&&(w4=!0,f=b),this.isValidLookup(f)||(N1=!0,f=o);var M1=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N1?void 0:f,U1=v&&b!==f&&this.options.updateMissing;if(N1||w4||U1){if(this.logger.log(U1?"updateKey":"missingKey",u,A,o,U1?b:f),a){var J=this.resolve(o,_object_spread_props(_object_spread({},t),{keySeparator:!1}));J&&J.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var G=[],K=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&K&&K[0])for(var J3=0;J31&&arguments[1]!==void 0?arguments[1]:{},i,n,a,o,s;return ye(e)&&(e=[e]),e.forEach(function(A){if(_this.isValidLookup(i))return;var u=_this.extractFromKey(A,t),c=u.key;n=c;var l=u.namespaces;_this.options.fallbackNS&&(l=l.concat(_this.options.fallbackNS));var f=t.count!==void 0&&!ye(t.count),g=f&&!t.ordinal&&t.count===0,h=t.context!==void 0&&(ye(t.context)||typeof t.context=="number")&&t.context!=="",d=t.lngs?t.lngs:_this.languageUtils.toResolveHierarchy(t.lng||_this.language,t.fallbackLng);l.forEach(function(p){var m,x;_this.isValidLookup(i)||(s=p,!aY["".concat(d[0],"-").concat(p)]&&(m=_this.utils)!=null&&m.hasLoadedNamespace&&!((x=_this.utils)!=null&&x.hasLoadedNamespace(s))&&(aY["".concat(d[0],"-").concat(p)]=!0,_this.logger.warn("key \"".concat(n,"\" for languages \"").concat(d.join(", "),"\" won't get resolved as namespace \"").concat(s,"\" was not yet loaded"),"这意味着你的设置有问题。你在 i18next.init / i18next.loadNamespace / i18next.changeLanguage 完成之前就访问了 t 函数。请等待回调或 Promise 解析后再访问它!!!")),d.forEach(function(v){var B;if(_this.isValidLookup(i))return;o=v;var E=[c];if((B=_this.i18nFormat)!=null&&B.addLookupKeys)_this.i18nFormat.addLookupKeys(E,c,v,p,t);else{var b;f&&(b=_this.pluralResolver.getSuffix(v,t.count,t));var C="".concat(_this.options.pluralSeparator,"zero"),y="".concat(_this.options.pluralSeparator,"ordinal").concat(_this.options.pluralSeparator);if(f&&(E.push(c+b),t.ordinal&&b.indexOf(y)===0&&E.push(c+b.replace(y,_this.options.pluralSeparator)),g&&E.push(c+C)),h){var q="".concat(c).concat(_this.options.contextSeparator).concat(t.context);E.push(q),f&&(E.push(q+b),t.ordinal&&b.indexOf(y)===0&&E.push(q+b.replace(y,_this.options.pluralSeparator)),g&&E.push(q+C))}}var S;for(;S=E.pop();)_this.isValidLookup(i)||(a=S,i=_this.getResource(v,p,S,t))}))})}),{res:i,usedKey:n,exactUsedKey:a,usedLng:o,usedNS:s}}},{key:"isValidLookup",value:function isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}},{key:"getResource",value:function getResource(e,t,i){var a;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,i,n):this.resourceStore.getResource(e,t,i,n)}},{key:"getUsedParamsDetails",value:function getUsedParamsDetails(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!ye(e.replace),n=i?e.replace:e;if(i&&typeof e.count!="undefined"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n=_object_spread({},this.options.interpolation.defaultVariables,n)),!i){n=_object_spread({},n);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=t[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;delete n[a]}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}return n}}],[{key:"hasDefaultValue",value:function hasDefaultValue(e){var t="defaultValue";for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&e[i]!==void 0)return!0;return!1}}]);return ec1}($A),tp=function(){"use strict";function tp1(e){_class_call_check(this,tp1);this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=In.create("languageUtils")}_create_class(tp1,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(e){if(e=ep(e),!e||e.indexOf("-")<0)return null;var t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(e){if(e=ep(e),!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function formatLanguageCode(e){if(ye(e)&&e.indexOf("-")>-1){var t;try{t=Intl.getCanonicalLocales(e)[0]}catch(i){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(e){var _this=this;if(!e)return null;var t;return e.forEach(function(i){if(t)return;var n=_this.formatLanguageCode(i);(!_this.options.supportedLngs||_this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(function(i){if(t)return;var n=_this.getLanguagePartFromCode(i);if(_this.isSupportedCode(n))return t=n;t=_this.options.supportedLngs.find(function(a){if(a===n)return a;if(!(a.indexOf("-")<0&&n.indexOf("-")<0)&&(a.indexOf("-")>0&&n.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===n||a.indexOf(n)===0&&n.length>1))return a})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}},{key:"getFallbackCodes",value:function getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),ye(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];var i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}},{key:"toResolveHierarchy",value:function toResolveHierarchy(e,t){var _this=this;var i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],a=function(o){o&&(_this.isSupportedCode(o)?n.push(o):_this.logger.warn("rejecting language code not found in supportedLngs: ".concat(o)))};return ye(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):ye(e)&&a(this.formatLanguageCode(e)),i.forEach(function(o){n.indexOf(o)<0&&a(_this.formatLanguageCode(o))}),n}}]);return tp1}(),sY={zero:0,one:1,two:2,few:3,many:4,other:5},AY={select:function(r){return r===1?"one":"other"},resolvedOptions:function(){return{pluralCategories:["one","other"]}}},tw=function(){"use strict";function tw1(e){_class_call_check(this,tw1);var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=In.create("pluralResolver"),this.pluralRulesCache={}}_create_class(tw1,[{key:"addRule",value:function addRule(e,t){this.rules[e]=t}},{key:"clearCache",value:function clearCache(){this.pluralRulesCache={}}},{key:"getRule",value:function getRule(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=ep(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:n});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];var o;try{o=new Intl.PluralRules(i,{type:n})}catch(s){if(!Intl)return this.logger.error("不支持 Intl,请使用 Intl polyfill!"),AY;if(!e.match(/-|_/))return AY;var A=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(A,t)}return this.pluralRulesCache[a]=o,o}},{key:"needsPlural",value:function needsPlural(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(function(n){return"".concat(t).concat(n)})}},{key:"getSuffixes",value:function getSuffixes(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),i?i.resolvedOptions().pluralCategories.sort(function(n,a){return sY[n]-sY[a]}).map(function(n){return"".concat(_this.options.prepend).concat(t.ordinal?"ordinal".concat(_this.options.prepend):"").concat(n)}):[]}},{key:"getSuffix",value:function getSuffix(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=this.getRule(e,i);return n?"".concat(this.options.prepend).concat(i.ordinal?"ordinal".concat(this.options.prepend):"").concat(n.select(t)):(this.logger.warn("no plural rule found for: ".concat(e)),this.getSuffix("dev",t,i))}}]);return tw1}(),cY=function cY1(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=iJe(r,e,t);return!a&&n&&ye(t)&&(a=rw(r,t,i),a===void 0&&(a=rw(e,t,i))),a},$b=function(r){return r.replace(/\$/g,"$$$$")},iw=function(){"use strict";function iw1(){_class_call_check(this,iw1);var t;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=In.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||function(i){return i},this.init(e)}_create_class(iw1,[{key:"init",value:function init(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var _e_interpolation=e.interpolation,t=_e_interpolation.escape,i=_e_interpolation.escapeValue,n=_e_interpolation.useRawValueToEscape,a=_e_interpolation.prefix,o=_e_interpolation.prefixEscaped,s=_e_interpolation.suffix,A=_e_interpolation.suffixEscaped,u=_e_interpolation.formatSeparator,c=_e_interpolation.unescapeSuffix,l=_e_interpolation.unescapePrefix,f=_e_interpolation.nestingPrefix,g=_e_interpolation.nestingPrefixEscaped,h=_e_interpolation.nestingSuffix,d=_e_interpolation.nestingSuffixEscaped,p=_e_interpolation.nestingOptionsSeparator,m=_e_interpolation.maxReplaces,x=_e_interpolation.alwaysFormat;this.escape=t!==void 0?t:aJe,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=a?jA(a):o||"{{",this.suffix=s?jA(s):A||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":l||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?jA(f):g||jA("$t("),this.nestingSuffix=h?jA(h):d||jA(")"),this.nestingOptionsSeparator=p||",",this.maxReplaces=m||1e3,this.alwaysFormat=x!==void 0?x:!1,this.resetRegExp()}},{key:"reset",value:function reset(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function resetRegExp(){var e=function(t,i){return(t==null?void 0:t.source)===i?(t.lastIndex=0,t):new RegExp(i,"g")};this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}},{key:"interpolate",value:function interpolate(e,t,i,n){var _this=this;var g;var a,o,s,A=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=function(h){if(h.indexOf(_this.formatSeparator)<0){var x=cY(t,A,h,_this.options.keySeparator,_this.options.ignoreJSONStructure);return _this.alwaysFormat?_this.format(x,void 0,i,_object_spread_props(_object_spread({},n,t),{interpolationkey:h})):x}var d=h.split(_this.formatSeparator),p=d.shift().trim(),m=d.join(_this.formatSeparator).trim();return _this.format(cY(t,A,p,_this.options.keySeparator,_this.options.ignoreJSONStructure),m,i,_object_spread_props(_object_spread({},n,t),{interpolationkey:p}))};this.resetRegExp();var c=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,l=((g=n==null?void 0:n.interpolation)==null?void 0:g.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(h){return $b(h)}},{regex:this.regexp,safeValue:function(h){return _this.escapeValue?$b(_this.escape(h)):$b(h)}}].forEach(function(h){for(s=0;a=h.regex.exec(e);){var d=a[1].trim();if(o=u(d),o===void 0){if(typeof c=="function"){var m=c(e,a,n);o=ye(m)?m:""}else if(n&&Object.prototype.hasOwnProperty.call(n,d))o="";else if(l){o=a[0];continue}else _this.logger.warn("missed to pass in variable ".concat(d," for interpolating ").concat(e)),o="";}else!ye(o)&&!_this.useRawValueToEscape&&(o=rY(o));var p=h.safeValue(o);if(e=e.replace(a[0],p),l?(h.regex.lastIndex+=o.length,h.regex.lastIndex-=a[0].length):h.regex.lastIndex=0,s++,s>=_this.maxReplaces)break}}),e}},{key:"nest",value:function nest(e,t){var _this=this;var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n,a,o,s=function(A,u){var d;var c=_this.nestingOptionsSeparator;if(A.indexOf(c)<0)return A;var l=A.split(new RegExp("".concat(c,"[ ]*{"))),f="{".concat(l[1]);A=l[0],f=_this.interpolate(f,o);var g=f.match(/'/g),h=f.match(/"/g);(((d=g==null?void 0:g.length)!=null?d:0)%2===0&&!h||h.length%2!==0)&&(f=f.replace(/'/g,"\""));try{o=JSON.parse(f),u&&(o=_object_spread({},u,o))}catch(p){return _this.logger.warn("failed parsing options string in nesting for key ".concat(A),p),"".concat(A).concat(c).concat(f)}return o.defaultValue&&o.defaultValue.indexOf(_this.prefix)>-1&&delete o.defaultValue,A};for(;n=this.nestingRegexp.exec(e);){var A=[];o=_object_spread({},i),o=o.replace&&!ye(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;var u=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map(function(l){return l.trim()});n[1]=c.shift(),A=c,u=!0}if(a=t(s.call(this,n[1].trim(),o),o),a&&n[0]===e&&!ye(a))return a;ye(a)||(a=rY(a)),a||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),a=""),u&&(a=A.reduce(function(c,l){return _this.format(c,l,i.lng,_object_spread_props(_object_spread({},i),{interpolationkey:n[1].trim()}))},a.trim())),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e}}]);return iw1}(),uJe=function(r){var e=r.toLowerCase().trim(),t={};if(r.indexOf("(")>-1){var i=r.split("(");e=i[0].toLowerCase().trim();var n=i[1].substring(0,i[1].length-1);e==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):e==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(function(o){if(o){var _o_split=_to_array(o.split(":")),s=_o_split[0],A=_o_split.slice(1),u=A.join(":").trim().replace(/^'+|'+$/g,""),c=s.trim();t[c]||(t[c]=u),u==="false"&&(t[c]=!1),u==="true"&&(t[c]=!0),isNaN(u)||(t[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},XA=function(r){var e={};return function(t,i,n){var a=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(a=_object_spread_props(_object_spread({},a),_define_property({},n.interpolationkey,void 0)));var o=i+JSON.stringify(a),s=e[o];return s||(s=r(ep(i),n),e[o]=s),s(t)}},nw=function(){"use strict";function nw1(){_class_call_check(this,nw1);var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=In.create("formatter"),this.options=e,this.formats={number:XA(function(t,i){var n=new Intl.NumberFormat(t,_object_spread({},i));return function(a){return n.format(a)}}),currency:XA(function(t,i){var n=new Intl.NumberFormat(t,_object_spread_props(_object_spread({},i),{style:"currency"}));return function(a){return n.format(a)}}),datetime:XA(function(t,i){var n=new Intl.DateTimeFormat(t,_object_spread({},i));return function(a){return n.format(a)}}),relativetime:XA(function(t,i){var n=new Intl.RelativeTimeFormat(t,_object_spread({},i));return function(a){return n.format(a,i.range||"day")}}),list:XA(function(t,i){var n=new Intl.ListFormat(t,_object_spread({},i));return function(a){return n.format(a)}})},this.init(e)}_create_class(nw1,[{key:"init",value:function init(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}},{key:"add",value:function add(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function addCached(e,t){this.formats[e.toLowerCase().trim()]=XA(t)}},{key:"format",value:function format(e,t,i){var _this=this;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(function(s){return s.indexOf(")")>-1})){var s=a.findIndex(function(A){return A.indexOf(")")>-1});a[0]=[a[0]].concat(_to_consumable_array(a.splice(1,s))).join(this.formatSeparator)}return a.reduce(function(s,A){var l;var _uJe=uJe(A),u=_uJe.formatName,c=_uJe.formatOptions;if(_this.formats[u]){var f=s;try{var _$g=((l=n==null?void 0:n.formatParams)==null?void 0:l[n.interpolationkey])||{},h=_$g.locale||_$g.lng||n.locale||n.lng||i;f=_this.formats[u](s,h,_object_spread({},c,n,_$g))}catch(g){_this.logger.warn(g)}return f}else _this.logger.warn("there was no format function for ".concat(u));return s},e)}}]);return nw1}(),lJe=function(r,e){r.pending[e]!==void 0&&(delete r.pending[e],r.pendingCount--)},aw=function($A1){"use strict";_inherits(aw1,$A1);function aw1(e,t,i){_class_call_check(this,aw1);var _this;var a,o;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};_this=_call_super(this,aw1),_this.backend=e,_this.store=t,_this.services=i,_this.languageUtils=i.languageUtils,_this.options=n,_this.logger=In.create("backendConnector"),_this.waitingReads=[],_this.maxParallelReads=n.maxParallelReads||10,_this.readingCalls=0,_this.maxRetries=n.maxRetries>=0?n.maxRetries:5,_this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,_this.state={},_this.queue=[],(o=(a=_this.backend)==null?void 0:a.init)==null||o.call(a,i,n.backend,n);return _this}_create_class(aw1,[{key:"queueLoad",value:function queueLoad(e,t,i,n){var _this=this;var a={},o={},s={},A={};return e.forEach(function(u){var c=!0;t.forEach(function(l){var f="".concat(u,"|").concat(l);!i.reload&&_this.store.hasResourceBundle(u,l)?_this.state[f]=2:_this.state[f]<0||(_this.state[f]===1?o[f]===void 0&&(o[f]=!0):(_this.state[f]=1,c=!1,o[f]===void 0&&(o[f]=!0),a[f]===void 0&&(a[f]=!0),A[l]===void 0&&(A[l]=!0)))}),c||(s[u]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(A)}}},{key:"loaded",value:function loaded(e,t,i){var n=e.split("|"),a=n[0],o=n[1];t&&this.emit("failedLoading",a,o,t),!t&&i&&this.store.addResourceBundle(a,o,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);var s={};this.queue.forEach(function(A){tJe(A.loaded,[a],o),lJe(A,e),t&&A.errors.push(t),A.pendingCount===0&&!A.done&&(Object.keys(A.loaded).forEach(function(u){s[u]||(s[u]={});var c=A.loaded[u];c.length&&c.forEach(function(l){s[u][l]===void 0&&(s[u][l]=!0)})}),A.done=!0,A.errors.length?A.callback(A.errors):A.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(A){return!A.done})}},{key:"read",value:function read(e,t,i){var _this=this;var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:n,wait:a,callback:o});return}this.readingCalls++;var s=function(u,c){if(_this.readingCalls--,_this.waitingReads.length>0){var l=_this.waitingReads.shift();_this.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}if(u&&c&&n<_this.maxRetries){setTimeout(function(){_this.read.call(_this,e,t,i,n+1,a*2,o)},a);return}o(u,c)},A=this.backend[i].bind(this.backend);if(A.length===2){try{var _$u=A(e,t);_$u&&typeof _$u.then=="function"?_$u.then(function(c){return s(null,c)}).catch(s):s(null,_$u)}catch(u){s(u)}return}return A(e,t,s)}},{key:"prepareLoading",value:function prepareLoading(e,t){var _this=this;var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("未通过 i18next.use 添加后端。将不会加载资源。"),n&&n();ye(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ye(t)&&(t=[t]);var a=this.queueLoad(e,t,i,n);if(!a.toLoad.length)return a.pending.length||n(),null;a.toLoad.forEach(function(o){_this.loadOne(o)})}},{key:"load",value:function load(e,t,i){this.prepareLoading(e,t,{},i)}},{key:"reload",value:function reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}},{key:"loadOne",value:function loadOne(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=e.split("|"),n=i[0],a=i[1];this.read(n,a,"read",void 0,void 0,function(o,s){o&&_this.logger.warn("".concat(t,"loading namespace ").concat(a," for language ").concat(n," failed"),o),!o&&s&&_this.logger.log("".concat(t,"loaded namespace ").concat(a," for language ").concat(n),s),_this.loaded(e,o,s)})}},{key:"saveMissing",value:function saveMissing(e,t,i,n,a){var A,u,c,l,f;var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if((u=(A=this.services)==null?void 0:A.utils)!=null&&u.hasLoadedNamespace&&!((l=(c=this.services)==null?void 0:c.utils)!=null&&l.hasLoadedNamespace(t))){this.logger.warn("did not save key \"".concat(i,"\" as the namespace \"").concat(t,"\" was not yet loaded"),"这意味着你的设置有问题。你在 i18next.init / i18next.loadNamespace / i18next.changeLanguage 完成之前就访问了 t 函数。请等待回调或 Promise 解析后再访问它!!!");return}if(!(i==null||i==="")){if((f=this.backend)!=null&&f.create){var g=_object_spread_props(_object_spread({},o),{isUpdate:a}),h=this.backend.create.bind(this.backend);if(h.length<6)try{var _$d;h.length===5?_$d=h(e,t,i,n,g):_$d=h(e,t,i,n),_$d&&typeof _$d.then=="function"?_$d.then(function(p){return s(null,p)}).catch(s):s(null,_$d)}catch(d){s(d)}else h(e,t,i,n,s,g)}!e||!e[0]||this.store.addResource(e[0],t,i,n)}}}]);return aw1}($A),uY=function(){return{debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(r){var e={};if(_type_of(r[1])=="object"&&(e=r[1]),ye(r[1])&&(e.defaultValue=r[1]),ye(r[2])&&(e.tDescription=r[2]),_type_of(r[2])=="object"||_type_of(r[3])=="object"){var t=r[3]||r[2];Object.keys(t).forEach(function(i){e[i]=t[i]})}return e},interpolation:{escapeValue:!0,format:function(r){return r},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}},lY=function(r){var e,t;return ye(r.ns)&&(r.ns=[r.ns]),ye(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),ye(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),((t=(e=r.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r},ZI=function(){},fJe=function(r){Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(function(t){typeof r[t]=="function"&&(r[t]=r[t].bind(r))})},fs=function($A1){"use strict";_inherits(fs1,$A1);function fs1(){_class_call_check(this,fs1);var _this;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(_this=_call_super(this,fs1),_this.options=lY(e),_this.services={},_this.logger=In,_this.modules={external:[]},fJe(_this),t&&!_this.isInitialized&&!e.isClone){if(!_this.options.initAsync)return _possible_constructor_return(_this,(_this.init(e,t),_this));setTimeout(function(){_this.init(e,t)},0)}return _this}_create_class(fs1,[{key:"init",value:function init(){var _this=this;var e=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(i=t,t={}),t.defaultNS==null&&t.ns&&(ye(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var n=uY();this.options=_object_spread({},n,this.options,lY(t)),this.options.interpolation=_object_spread({},n.interpolation,this.options.interpolation),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);var a=function(c){return c?typeof c=="function"?new c:c:null};if(!this.options.isClone){this.modules.logger?In.init(a(this.modules.logger),this.options):In.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:c=nw;var l=new tp(this.options);this.store=new rp(this.options.resources,this.options);var f=this.services;f.logger=In,f.resourceStore=this.store,f.languageUtils=l,f.pluralResolver=new tw(l,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(f.formatter=a(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new iw(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new aw(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(g){var _e1;for(var h=arguments.length,d=new Array(h>1?h-1:0),p=1;p1?h-1:0),p=1;p0&&c2[0]!=="dev"&&(this.options.lng=c2[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: 未使用 languageDetector 且未定义 lng"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(c){_this[c]=function(){var _e_store;return(_e_store=e.store)[c].apply(_e_store,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(c){_this[c]=function(){var _e_store;return(_e_store=e.store)[c].apply(_e_store,arguments),e}});var A=ff(),u=function(){var c=function(l,f){_this.isInitializing=!1,_this.isInitialized&&!_this.initializedStoreOnce&&_this.logger.warn("init: i18next 已经初始化。你只应调用一次 init!"),_this.isInitialized=!0,_this.options.isClone||_this.logger.log("initialized",_this.options),_this.emit("initialized",_this.options),A.resolve(f),i(l,f)};if(_this.languages&&!_this.isInitialized)return c(null,_this.t.bind(_this));_this.changeLanguage(_this.options.lng,c)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),A}},{key:"loadResources",value:function loadResources(e){var _this=this;var a,o;var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ZI,n=ye(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();var s=[],A=function(u){if(!u||u==="cimode")return;_this.services.languageUtils.toResolveHierarchy(u).forEach(function(l){l!=="cimode"&&s.indexOf(l)<0&&s.push(l)})};n?A(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(c){return A(c)}),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,function(u){return A(u)}),this.services.backendConnector.load(s,this.options.ns,function(u){!u&&!_this.resolvedLanguage&&_this.language&&_this.setResolvedLanguage(_this.language),i(u)})}else i(null)}},{key:"reloadResources",value:function reloadResources(e,t,i){var n=ff();return typeof e=="function"&&(i=e,e=void 0),typeof t=="function"&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=ZI),this.services.backendConnector.reload(e,t,function(a){n.resolve(),i(a)}),n}},{key:"use",value:function use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&gY.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}},{key:"changeLanguage",value:function changeLanguage(e,t){var _this=this;var i=this;this.isLanguageChangingTo=e;var n=ff();this.emit("languageChanging",e);var a=function(A){_this.language=A,_this.languages=_this.services.languageUtils.toResolveHierarchy(A),_this.resolvedLanguage=void 0,_this.setResolvedLanguage(A)},o=function(A,u){u?(a(u),_this.translator.changeLanguage(u),_this.isLanguageChangingTo=void 0,_this.emit("languageChanged",u),_this.logger.log("languageChanged",u)):_this.isLanguageChangingTo=void 0,n.resolve(function(){var _i1;return(_i1=i).t.apply(_i1,arguments)}),t&&t(A,function(){var _i1;return(_i1=i).t.apply(_i1,arguments)})},s=function(A){var c,l;!e&&!A&&_this.services.languageDetector&&(A=[]);var u=ye(A)?A:_this.services.languageUtils.getBestMatchFromCodes(A);u&&(_this.language||a(u),_this.translator.language||_this.translator.changeLanguage(u),(l=(c=_this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||l.call(c,u)),_this.loadResources(u,function(f){o(f,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),n}},{key:"getFixedT",value:function getFixedT(e,t,i){var n=this;var a=function a1(o,s){var A;if((typeof s==="undefined"?"undefined":_type_of(s))!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),l=2;l1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next 未初始化",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var o=function(s,A){var u=_this.services.backendConnector.state["".concat(s,"|").concat(A)];return u===-1||u===0||u===2};if(t.precheck){var s=t.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,e)&&(!n||o(a,e)))}},{key:"loadNamespaces",value:function loadNamespaces(e,t){var _this=this;var i=ff();return this.options.ns?(ye(e)&&(e=[e]),e.forEach(function(n){_this.options.ns.indexOf(n)<0&&_this.options.ns.push(n)}),this.loadResources(function(n){i.resolve(),t&&t(n)}),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function loadLanguages(e,t){var _this=this;var i=ff();ye(e)&&(e=[e]);var n=this.options.preload||[],a=e.filter(function(o){return n.indexOf(o)<0&&_this.services.languageUtils.isSupportedCode(o)});return a.length?(this.options.preload=n.concat(a),this.loadResources(function(o){i.resolve(),t&&t(o)}),i):(t&&t(),Promise.resolve())}},{key:"dir",value:function dir(e){var n,a;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!e)return"rtl";var t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((a=this.services)==null?void 0:a.languageUtils)||new tp(uY());return t.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function cloneInstance(){var _this=this;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ZI,i=e.forkResourceStore;i&&delete e.forkResourceStore;var n=_object_spread_props(_object_spread({},this.options,e),{isClone:!0}),a=new fs(n);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(function(s){a[s]=_this[s]}),a.services=_object_spread({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){var s=Object.keys(this.store.data).reduce(function(A,u){return A[u]=_object_spread({},_this.store.data[u]),Object.keys(A[u]).reduce(function(c,l){return c[l]=_object_spread({},A[u][l]),c},{})},{});a.store=new rp(s,n),a.services.resourceStore=a.store}return a.translator=new ec(a.services,n),a.translator.on("*",function(s){var _a;for(var A=arguments.length,u=new Array(A>1?A-1:0),c=1;c0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new fs(e,t)}}]);return fs1}($A),it=fs.createInstance();it.createInstance=fs.createInstance;var UCr=it.createInstance,GCr=it.dir,LCr=it.init,HCr=it.loadResources,WCr=it.reloadResources,JCr=it.use,KCr=it.changeLanguage,VCr=it.getFixedT,YCr=it.t,zCr=it.exists,jCr=it.setDefaultNamespace,XCr=it.hasLoadedNamespace,ZCr=it.loadNamespaces,$Cr=it.loadLanguages;var dY={errors:{filenameUnsupportedChars:"File {{path}} contains unsupported characters: {{chars}}"},settings:{language:{name:"Language",desc:"选择界面语言",auto:"Auto detect"},account:{name:"Account",desc:"输入你的 WebDAV 账号",placeholder:"请输入您的账号"},credential:{name:"Credential",desc:"输入你的 WebDAV 凭据",placeholder:"请输入您的凭证"},checkConnection:{name:"检查连接",desc:"点击检查 WebDAV 连接",success:"WebDAV 连接成功",failure:"WebDAV connection failed",successButton:"Connected ✓",failureButton:"Failed ×"},remoteDir:{name:"Remote directory",desc:"Enter the remote directory",placeholder:"Enter the remote directory",edit:"Edit"},login:{name:"Login",desc:"点击登录",success:"登录成功",failure:"Login failed, please try again"},loginMode:{name:"登录模式",manual:"Manual input",sso:"Single sign-on"},ssoStatus:{loggedIn:"Logged in",notLoggedIn:"Not logged in",logout:"Logout",logoutSuccess:"Logged out successfully"},useGitStyle:{name:"使用 Git 风格冲突标记",desc:"使用 <<<<<<< 和 >>>>>>> 标记冲突,而不是使用 HTML 标签"},backupWarning:{name:"备份警告",desc:"⚠️ 注意:同步过程会修改或删除本地文件。请在同步前备份重要文件。"},conflictStrategy:{name:"冲突解决策略",desc:"选择如何解决文件冲突。 \n注意:我们建议在使用自动合并前备份重要文件,以防数据丢失。",diffMatchPatch:"Smart merge (recommended)",latestTimestamp:"Use latest version",skip:"Skip conflicts"},confirmBeforeSync:{name:"同步前确认",desc:"显示待处理任务并在确认后执行"},confirmBeforeDeleteInAutoSync:{name:"自动同步时删除文件前确认",desc:"Show a confirmation dialog when local files are about to be deleted during auto-sync, allowing you to choose to delete or re-upload them"},realtimeSync:{name:"实时同步",desc:"文件修改后立即自动同步更改"},syncMode:{name:"同步模式",desc:"选择严格或宽松同步模式。建议文件较多的用户使用宽松模式以获得更快的同步速度。在宽松模式下,名称相同且大小相等且无同步记录的文件将被忽略。",strict:"Strict",loose:"Loose"},startupSyncDelay:{name:"启动时自动同步",desc:"设置启动后自动执行同步的秒数。设为 0 可禁用启动时自动同步。",placeholder:"输入秒数(例如:5,0 表示禁用)",invalidValue:"Invalid value, reset to 0",exceedsMax:"Value exceeds maximum limit of {{max}} seconds (1 day), automatically adjusted"},autoSyncInterval:{name:"自动同步间隔",desc:"设置后台自动同步的间隔(分钟)。设为 0 可禁用自动同步。",placeholder:"输入分钟数(例如:5,0 表示禁用)",invalidValue:"Invalid value, reset to 0",exceedsMax:"Value exceeds maximum limit of {{max}} minutes (1 day), automatically adjusted"},sections:{account:"Account",common:"General",filters:"Filter rules"},logout:{confirmTitle:"Confirm logout",confirmMessage:"Are you sure you want to log out? You will need to log in again to continue syncing.",confirm:"Confirm logout",cancel:"Cancel"},help:{name:"如何获取 WebDAV 账户和凭据?",desc:"点击查看帮助文档"},filters:{name:"同步筛选器",desc:"添加路径以过滤文件或文件夹,例如:.DS_Store、.git",add:"Add rule",remove:"Remove",confirmRemove:"Confirm remove",edit:"Edit rules",save:"Save",cancel:"Cancel",placeholder:"例如:.DS_Store、*.pdf",description:"同步时将忽略匹配这些模式的文件或文件夹。使用 * 作为通配符。",exclude:{name:"排除规则",desc:"匹配这些模式的文件/文件夹将不会同步。"},include:{name:"包含规则",desc:"匹配这些模式的文件/文件夹将会同步(如已定义)。"}},skipLargeFiles:{name:"跳过大文件",desc:"超过此大小的文件在同步时将被跳过。如出现同步问题,尝试降低此值。",placeholder:"例如:10 MiB 或 500 KiB",invalidFormat:"Invalid file size format. Please use formats like \"10MB\" or \"500KB\"",exceedsMaxSize:"File size exceeds maximum limit of 500MB"},log:{title:"调试日志",name:"控制台日志",desc:"查看控制台输出和调试信息",button:"View logs",saveToNote:"Save to note",savedToNote:"Logs saved to note: {{fileName}}",saveError:"Failed to save logs",clear:"Clear",cleared:"Console logs cleared",clearName:"Clear logs",clearDesc:"Delete all console output records"},cache:{title:"Cache management",dump:"Export",dumpName:"Cache management",dumpDesc:"The plugin stores remote folder information locally. When switching devices, this data is lost and must be rebuilt before syncing. With many files, rebuilding can be slow due to rate limits. Export saves this data to Nutstore; Import retrieves it, allowing immediate syncing on new devices.",restoreName:"Import cache",restoreDesc:"Import previously exported cache data from Nutstore to your device. This lets you sync immediately on a new device without the long waiting time normally needed to scan all your files.",restore:"Import",clearName:"Clear local cache",clearDesc:"Delete local cache data stored on this device only. This action cannot be undone and will require rebuilding the cache before the next sync. Your Nutstore data remains intact.",clear:"Clear",confirm:"Confirm clear",cleared:"Cache cleared successfully",clearModal:{title:"清除缓存",description:"选择要清除的缓存类型。此操作无法撤销。",cancel:"Cancel",confirm:"Confirm clear",deltaCache:{name:"增量缓存",desc:"Stores information about incremental file changes."},syncRecordCache:{name:"同步记录缓存",desc:"跟踪每个文件的同步状态。"},blobCache:{name:"文件快照缓存",desc:"存储同步期间用于比较更改的文件快照。"},traverseWebDAVCache:{name:"文件扫描缓存",desc:"Stores remote folder structure to enable faster sync by fetching only changes. If you encounter file list anomalies or data inconsistencies after a plugin update, try clearing this cache. After clearing, the next sync will need to re-scan all remote files, which may take a while."},clearedType:"Cleared: {{types}}",nothingSelected:"Please select at least one cache type to clear."},exportSuccess:"Cache saved to plugin data file successfully",exportError:"保存缓存出错:{{message}}",noDataToRestore:"No saved cache data found",restoreSuccess:"缓存恢复成功",restoreError:"恢复缓存出错:{{message}}",remoteCacheDir:{name:"Remote cache directory",desc:"Enter the remote directory for cache storage",placeholder:"Enter the remote cache directory",edit:"Edit"},saveModal:{title:"保存缓存",description:"Enter a filename to save the current cache state. The file will be saved in the remote cache directory.",filename:"Filename",save:"Save",cancel:"Cancel",success:"缓存保存成功",error:"保存缓存出错:{{message}}"},restoreModal:{title:"恢复缓存",description:"选择要恢复或删除的缓存文件。",restore:"Restore",delete:"Delete",deleteConfirm:"Confirm delete",close:"Close",refresh:"Refresh",noFiles:"No cache files found",fileNotFound:"Cache file not found",success:"缓存恢复成功",error:"恢复缓存出错:{{message}}",loadError:"Error loading file list: {{message}}",deleteSuccess:"Cache file deleted successfully",deleteError:"Error deleting cache file: {{message}}"}}},sync:{failed:"Sync failed!",error:{folderButFile:"Expected folder but found file: {{path}}",notFound:"Not found: {{path}}",localPathNotFound:"Local path not found: {{path}}",mergeNotSupported:"This file type is currently not supported for merging",failedToAutoMerge:"Failed to auto merge",failedToUploadMerged:"Failed to upload merged content",conflictsMarkedInFile:"Conflicts found and marked in file",requestsTooFrequent:"Requests too frequent, please wait a few minutes and try again",accountNotConfigured:"Nutstore account not configured. Please configure your account in settings first."},requestsTooFrequent:"Requests too frequent, plugin will resume sync at {{time}}",preparing:"📋 Preparing sync",start:"⌛️ Starting sync",complete:"✅ Sync completed",completeWithFailed:"❌ Sync completed with {{failedCount}} failed tasks",failedWithError:"Sync failed with error: {{error}}",progress:"Sync progress: {{percent}}%",startButton:"Start sync",stopButton:"Stop sync",hideButton:"Hide",closeButton:"Close",showProgressButton:"Show sync progress",notSyncing:"No sync currently in progress",percentComplete:"{{percent}}%",currentFile:"{{path}}",filePath:"{{path}}",progressTitle:"Sync progress",progressStats:"Completed: {{completed}} / {{total}} tasks",completedFilesTitle:"Completed tasks",syncingFiles:"Syncing files...",updatingCache:"Updating local cache...",cacheUpdated:"Local cache updated.",failedStatus:"Sync failed",cancelled:"Sync cancelled",suggestUseClientForManyTasks:"Tip: When there are many sync tasks, we recommend using the Nutstore client for better performance and stability. The plugin is more suitable for mobile use!",modalTitle:"Syncing",cancelButton:"Cancel sync",progressText:"Syncing files",fileOp:{createLocalDir:"Create local directory",createRemoteDir:"Create remote directory",createRemoteDirs:"Create multi-level directories",download:"Download",filenameError:"Invalid path characters",merge:"Merge",removeLocal:"Remove local",removeRemote:"Remove remote",removeRemoteRecursively:"Remove remote recursively",rename:"Rename",sync:"Sync",upload:"Upload",noop:"Skip",cleanRecord:"Clean record",skip:"Skip"},skipReason:{"file-too-large":"File too large","folder-contains-ignored-items":"Folder contains ignored items"},confirmModal:{title:"同步确认",message:"⚠️ 请注意:\n\n1. 同步操作可能会修改或删除本地文件\n2. 建议在同步前手动备份重要文件\n3. 如果出现文件冲突,可能需要手动解决\n4. 首次同步需要处理所有文件,可能会比较慢,请耐心等待\n\n确定要开始同步吗?",confirm:"Confirm sync",cancel:"Cancel",remoteDir:"Remote directory: {{dir}}",strategy:"Sync strategy: {{strategy}}"}},taskList:{title:"同步任务列表",instruction:"Please review the tasks below. Click \"Continue\" to execute the selected tasks, or \"Cancel\" to skip this sync.",execute:"Execute",action:"Action",localPath:"Local path",remotePath:"Remote path",continue:"Continue",cancel:"Cancel"},deleteConfirm:{title:"确认删除本地文件",instruction:"⚠️ The following local files will be deleted during auto-sync (because they were deleted remotely).\n\nCheck files to delete; unchecked files will be re-uploaded:",warningNotice:"Local files will be deleted, please confirm",select:"Select",filePath:"File path",deleteAndReupload:"Delete selected, re-upload unchecked",skipForNow:"Skip for now"},failedTasks:{title:"同步失败的任务",instruction:"The following tasks failed during sync:",taskName:"Task",localPath:"Local path",errorMessage:"Error",close:"Close"},textAreaModal:{copy:"Copy",close:"Close",copied:"Text copied to clipboard"},time:{justNow:"just now",minutesAgo:"{{count}}min ago",hoursAgo:"{{count}}h ago",daysAgo:"{{count}}d ago",longAgo:"long ago"}};var hY={errors:{filenameUnsupportedChars:"文件 {{path}} 包含不支持的字符:{{chars}}"},settings:{title:"WebDAV 设置",language:{name:"语言",desc:"选择界面语言",auto:"自动检测"},account:{name:"账号",desc:"输入你的 WebDAV 账号",placeholder:"输入你的账号"},credential:{name:"凭证",desc:"输入你的 WebDAV 凭证",placeholder:"输入你的凭证"},remoteDir:{name:"远程目录",desc:"输入远程目录",placeholder:"输入远程目录",edit:"编辑"},checkConnection:{name:"检查连接",desc:"点击检查 WebDAV 连接",success:"WebDAV 连接成功",failure:"WebDAV 连接失败",successButton:"连接成功 ✓",failureButton:"连接失败 ×"},login:{name:"登录",desc:"点击登录",success:"登录成功",failure:"登录失败,请重试"},useGitStyle:{name:"使用 Git 样式的冲突标记",desc:"启用后将使用 <<<<<<< 和 >>>>>>> 等标记来显示冲突,而不是 HTML 标记"},backupWarning:{name:"备份提醒",desc:"⚠️ 请注意:同步过程会修改或删除本地文件,建议在同步前备份重要文件。"},conflictStrategy:{name:"冲突解决策略",desc:"选择解决文件冲突的方式。\n注意:建议在使用自动合并功能前,先手动备份重要文件,以防数据丢失。",diffMatchPatch:"智能合并(推荐)",latestTimestamp:"使用最新版本",skip:"跳过冲突"},loginMode:{name:"登录方式",manual:"手动输入",sso:"单点登录"},ssoStatus:{loggedIn:"已登录",notLoggedIn:"未登录",logout:"退出登录",logoutSuccess:"已退出登录"},logout:{confirmTitle:"确认退出",confirmMessage:"确定要退出登录吗?退出后需要重新登录才能继续同步。",confirm:"确认退出",cancel:"取消"},help:{name:"如何获取 WebDAV 账号和凭证?",desc:"点击查看帮助文档"},sections:{account:"账号设置",common:"通用设置",filters:"过滤规则"},confirmBeforeSync:{name:"同步前确认",desc:"同步前显示待执行的任务列表,确认后再执行"},confirmBeforeDeleteInAutoSync:{name:"自动同步时删除文件前确认",desc:"自动同步过程中检测到本地文件将被删除时,弹出确认对话框让你选择删除或重新上传"},realtimeSync:{name:"实时同步",desc:"文件修改后自动进行同步"},syncMode:{name:"同步模式",desc:"建议在文件较多的情况下选择宽松模式,同步速度更快。宽松模式会忽略同名且大小相等但没有同步记录的文件。",strict:"严格",loose:"宽松"},startupSyncDelay:{name:"启动后自动同步",desc:"设置启动后第几秒自动执行一次同步。设置为 0 则禁用启动时自动同步。",placeholder:"输入秒数 (例如 5, 0 则禁用)",invalidValue:"无效的数值,已重置为 0",exceedsMax:"数值超过最大限制 {{max}} 秒(1天),已自动调整"},autoSyncInterval:{name:"定时自动同步",desc:"设置每隔多长时间在后台自动执行一次同步(分钟)。设置为 0 则禁用定时自动同步。",placeholder:"输入分钟数 (例如 5, 0 则禁用)",invalidValue:"无效的数值,已重置为 0",exceedsMax:"数值超过最大限制 {{max}} 分钟(1天),已自动调整"},filters:{name:"过滤器",desc:"添加同步时需要忽略文件或文件夹路径,例如: .DS_Store, .git",add:"添加规则",remove:"删除",confirmRemove:"确认删除",edit:"编辑规则",save:"保存",cancel:"取消",placeholder:"例如: .DS_Store, *.pdf",description:"符合这些规则的文件或文件夹在同步时会被忽略。使用 * 作为通配符。",exclude:{name:"排除规则",desc:"符合规则的文件/文件夹将不会被同步"},include:{name:"包含规则",desc:"符合规则的文件/文件夹会被同步,如果和排除规则有冲突,会优先选择包含规则。"}},skipLargeFiles:{name:"跳过大文件",desc:"同步时将跳过超过此大小的文件。如遇同步崩溃,可尝试降低此值。",placeholder:"例如:10 MiB 或 500 KiB",invalidFormat:"无效的文件大小格式,请使用如 \"10MB\" 或 \"500KB\" 的格式",exceedsMaxSize:"文件大小超过最大限制 500MB"},log:{title:"调试日志",name:"控制台日志",desc:"查看控制台输出和调试信息",button:"查看",saveToNote:"保存到笔记",savedToNote:"日志已保存到笔记: {{fileName}}",saveError:"保存日志失败",clear:"清除",cleared:"控制台日志已清除",clearName:"清除日志",clearDesc:"删除所有控制台输出记录"},cache:{title:"缓存管理",dumpName:"缓存管理",dumpDesc:"插件会在您的设备上保存远程文件夹的目录信息。当您更换设备时,这些信息会丢失,需要在首次同步前重新获取。如果您的文件数量较多,可能会触发坚果云的访问频率限制,导致获取过程变慢。导出功能可将这些信息保存到坚果云,导入功能则可将数据恢复到新设备,使您无需等待即可直接同步。",dump:"导出",restoreName:"导入缓存",restoreDesc:"从坚果云导入之前导出的缓存数据到当前设备。这样可以避免在新设备上等待漫长的文件扫描过程,让您直接进行同步。",restore:"导入",clearName:"清除本地缓存",clearDesc:"删除当前设备上的本地缓存数据。此操作无法撤销,会导致下次同步前需要重新建立缓存。仅影响当前设备,不会影响您在坚果云中的数据。",clear:"清除",confirm:"确认清除",cleared:"缓存已成功清除",clearModal:{title:"清除缓存",description:"选择需要清除的缓存类型。此操作无法撤销。",cancel:"取消",confirm:"确认清除",deltaCache:{name:"增量同步缓存",desc:"存储文件增量变化的相关信息。"},syncRecordCache:{name:"同步记录缓存",desc:"跟踪每个文件的同步状态。"},blobCache:{name:"文件快照缓存",desc:"存储用于同步时对比变化的文件快照。"},traverseWebDAVCache:{name:"文件扫描缓存",desc:"存储远程文件夹结构,下次同步时只需获取变化的部分,加快同步速度。如果插件更新后同步出现文件列表异常或数据不一致,可尝试清除此缓存。清除后下次同步需要重新扫描所有远程文件,可能需要较长时间。"},clearedType:"已清除: {{types}}",nothingSelected:"请至少选择一种缓存类型进行清除。"},exportSuccess:"缓存已成功保存到插件数据文件",exportError:"保存缓存出错: {{message}}",noDataToRestore:"未找到已保存的缓存数据",restoreSuccess:"缓存恢复成功",restoreError:"恢复缓存出错: {{message}}",remoteCacheDir:{name:"远程缓存目录",desc:"输入用于存储缓存的远程目录",placeholder:"输入远程缓存目录",edit:"编辑"},saveModal:{title:"保存缓存",description:"输入文件名以保存当前缓存状态。文件将保存在远程缓存目录中。",filename:"文件名",save:"保存",cancel:"取消",success:"缓存保存成功",error:"保存缓存出错: {{message}}"},restoreModal:{title:"恢复缓存",description:"选择要恢复或删除的缓存文件。",restore:"恢复",delete:"删除",deleteConfirm:"确认删除",close:"关闭",refresh:"刷新",noFiles:"未找到缓存文件",fileNotFound:"未找到缓存文件",success:"缓存恢复成功",error:"恢复缓存出错: {{message}}",loadError:"加载文件列表出错: {{message}}",deleteSuccess:"缓存文件删除成功",deleteError:"删除缓存文件出错: {{message}}"}}},sync:{failed:"同步失败!",error:{folderButFile:"期望是文件夹,却发现是文件: {{path}}",notFound:"未找到: {{path}}",localPathNotFound:"本地路径未找到: {{path}}",mergeNotSupported:"该文件类型暂不支持合并",failedToAutoMerge:"自动合并失败",failedToUploadMerged:"上传合并内容失败",conflictsMarkedInFile:"发现冲突,已在文件中标记",requestsTooFrequent:"请求过于频繁,请等待几分钟后再试",accountNotConfigured:"尚未配置坚果云账号,请先在设置中配置账号信息"},requestsTooFrequent:"请求过于频繁,插件将在 {{time}} 后自动继续同步任务",preparing:"📋 准备同步",start:"⌛️ 开始同步",complete:"✅ 同步完成",completeWithFailed:"❌ 同步完成,但有 {{failedCount}} 个任务失败",failedWithError:"同步失败,错误信息: {{error}}",progress:"同步进度: {{percent}}%",startButton:"开始同步",stopButton:"停止同步",hideButton:"隐藏",closeButton:"关闭",showProgressButton:"显示同步进度",notSyncing:"尚未开始同步",percentComplete:"{{percent}}%",currentFile:"{{path}}",filePath:"{{path}}",progressTitle:"同步进度",progressStats:"已完成: {{completed}} / {{total}} 个任务",completedFilesTitle:"已完成的任务",syncingFiles:"正在同步文件...",updatingCache:"正在更新本地缓存...",cacheUpdated:"本地缓存已更新。",failedStatus:"同步失败",cancelled:"同步已取消",suggestUseClientForManyTasks:"提示:当同步任务较多时,建议使用坚果云客户端同步,可获得更好的性能和稳定性,插件更适合在移动端使用!",modalTitle:"同步进行中",cancelButton:"取消同步",progressText:"正在同步文件",fileOp:{createLocalDir:"创建本地目录",createRemoteDir:"创建远程目录",createRemoteDirs:"创建多级目录",download:"下载",filenameError:"路径含无效字符",merge:"合并",removeLocal:"删除本地",removeRemote:"删除远程",removeRemoteRecursively:"递归删除远程",rename:"重命名",sync:"同步",upload:"上传",noop:"跳过",cleanRecord:"清理记录",skip:"跳过"},skipReason:{"file-too-large":"文件过大","folder-contains-ignored-items":"文件夹包含被忽略的文件"},confirmModal:{title:"同步确认",message:"⚠️ 请注意:\n\n1. 同步操作可能会修改或删除本地文件\n2. 建议在同步前手动备份重要文件\n3. 如果出现文件冲突,可能需要手动解决\n4. 首次同步需要处理所有文件,可能会比较慢,请耐心等待\n\n确定要开始同步吗?",confirm:"确认同步",cancel:"取消",remoteDir:"远程目录:{{dir}}",strategy:"同步策略:{{strategy}}"}},taskList:{title:"同步任务列表",instruction:"请检查以下待执行的任务。点击\"继续\"将执行选中的任务,点击\"取消\"则跳过本次同步。",execute:"执行",action:"行为",localPath:"本地路径",remotePath:"远程路径",continue:"继续",cancel:"取消"},deleteConfirm:{title:"确认删除本地文件",instruction:"⚠️ 在自动同步过程中检测到以下本地文件将被删除(因远程已删除)。\n\n勾选要删除的文件,未勾选的文件将重新上传到远程:",warningNotice:"检测到本地文件将被删除,请确认",select:"选择",filePath:"文件路径",deleteAndReupload:"删除选中的,重新上传未选中的",skipForNow:"暂时忽略"},failedTasks:{title:"同步失败任务",instruction:"以下任务在同步时失败:",taskName:"任务",localPath:"本地路径",errorMessage:"失败原因",close:"关闭"},textAreaModal:{copy:"复制",close:"关闭",copied:"文本已复制到剪贴板"},time:{justNow:"刚刚",minutesAgo:"{{count}}分钟前",hoursAgo:"{{count}}小时前",daysAgo:"{{count}}天前",longAgo:"很久前"}};var gJe="translation",dJe={zh:{translation:hY},en:{translation:dY}};it.init({ns:["translation"],defaultNS:gJe,resources:dJe,fallbackLng:"en",interpolation:{escapeValue:!1}});var _=it;var hJe=(typeof global==="undefined"?"undefined":_type_of(global))=="object"&&global&&global.Object===Object&&global,ip=hJe;var IJe=(typeof self==="undefined"?"undefined":_type_of(self))=="object"&&self&&self.Object===Object&&self,pJe=ip||IJe||Function("return this")(),Ke=pJe;var xJe=Ke.Symbol,Ft=xJe;var IY=Object.prototype,mJe=IY.hasOwnProperty,vJe=IY.toString,df=Ft?Ft.toStringTag:void 0;function CJe(r){var e=mJe.call(r,df),t=r[df];try{r[df]=void 0;var i=!0}catch(a){}var n=vJe.call(r);return i&&(e?r[df]=t:delete r[df]),n}var pY=CJe;var BJe=Object.prototype,EJe=BJe.toString;function yJe(r){return EJe.call(r)}var xY=yJe;var QJe="[object Null]",bJe="[object Undefined]",mY=Ft?Ft.toStringTag:void 0;function wJe(r){return r==null?r===void 0?bJe:QJe:mY&&mY in Object(r)?pY(r):xY(r)}var Ir=wJe;function SJe(r){return r!=null&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"}var Ve=SJe;var _Je="[object Symbol]";function qJe(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="symbol"||Ve(r)&&Ir(r)==_Je}var Hi=qJe;function DJe(r,e){for(var t=-1,i=r==null?0:r.length,n=Array(i);++t0){if(++e>=U7e)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}var gp=H7e;var W7e=gp(op),dp=W7e;var J7e=/\{\n\/\* \[wrapped with (.+)\] \*/,K7e=/,? & /;function V7e(r){var e=r.match(J7e);return e?e[1].split(K7e):[]}var UY=V7e;var Y7e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function z7e(r,e){var t=e.length;if(!t)return r;var i=t-1;return e[i]=(t>1?"& ":"")+e[i],e=e.join(t>2?", ":" "),r.replace(Y7e,"{\n/* [wrapped with "+e+"] */\n")}var GY=z7e;function j7e(r){return function(){return r}}var LY=j7e;var X7e=function(){try{var r=zt(Object,"defineProperty");return r({},"",{}),r}catch(e){}}(),oc=X7e;var Z7e=oc?function Z7e1(r,e){return oc(r,"toString",{configurable:!0,enumerable:!1,value:LY(e),writable:!0})}:$a,HY=Z7e;var $7e=gp(HY),hp=$7e;function eKe(r,e){for(var t=-1,i=r==null?0:r.length;++t-1}var YY=aKe;var oKe=1,sKe=2,AKe=8,cKe=16,uKe=32,lKe=64,fKe=128,gKe=256,dKe=512,hKe=[["ary",fKe],["bind",oKe],["bindKey",sKe],["curry",AKe],["curryRight",cKe],["flip",dKe],["partial",uKe],["partialRight",lKe],["rearg",gKe]];function IKe(r,e){return Ip(hKe,function(t){var i="_."+t[0];e&t[1]&&!YY(r,i)&&r.push(i)}),r.sort()}var zY=IKe;function pKe(r,e,t){var i=e+"";return hp(r,GY(i,zY(UY(i),t)))}var pp=pKe;var xKe=1,mKe=2,vKe=4,CKe=8,jY=32,XY=64;function BKe(r,e,t,i,n,a,o,s,A,u){var c=e&CKe,l=c?o:void 0,f=c?void 0:o,g=c?a:void 0,h=c?void 0:a;e|=c?jY:XY,e&=~(c?XY:jY),e&vKe||(e&=~(xKe|mKe));var d=[r,e,n,g,l,h,f,s,A,u],p=t.apply(void 0,d);return MY(r)&&dp(p,d),p.placeholder=i,pp(p,r,e)}var xp=BKe;function EKe(r){var e=r;return e.placeholder}var sc=EKe;var yKe=9007199254740991,QKe=/^(?:0|[1-9]\d*)$/;function bKe(r,e){var t=typeof r==="undefined"?"undefined":_type_of(r);return e=e==null?yKe:e,!!e&&(t=="number"||t!="symbol"&&QKe.test(r))&&r>-1&&r%1==0&&r1&&x.reverse(),c&&A-1&&r%1==0&&r<=eVe}var Ac=rVe;function tVe(r){return r!=null&&Ac(r.length)&&!gs(r)}var pn=tVe;function iVe(r,e,t){if(!Qr(t))return!1;var i=typeof e==="undefined"?"undefined":_type_of(e);return(i=="number"?pn(t)&&ro(e,t.length):i=="string"&&e in t)?to(t[e],r):!1}var dz=iVe;var nVe=Object.prototype;function aVe(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||nVe;return r===t}var cc=aVe;function oVe(r,e){for(var t=-1,i=Array(r);++t-1}var Oz=bYe;function wYe(r,e){var t=this.__data__,i=no(t,r);return i<0?(++this.size,t.push([r,e])):t[i][1]=e,this}var Tz=wYe;function gc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++en?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var a=Array(n);++i=e?r:e)),r}var Zz=cze;function uze(r,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=Wn(t),t=t===t?t:0),e!==void 0&&(e=Wn(e),e=e===e?e:0),Zz(Wn(r),e,t)}var co=uze;function lze(){this.__data__=new ao,this.size=0}var $z=lze;function fze(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}var ej=fze;function gze(r){return this.__data__.get(r)}var rj=gze;function dze(r){return this.__data__.has(r)}var tj=dze;var hze=200;function Ize(r,e){var t=this.__data__;if(_instanceof(t,ao)){var i=t.__data__;if(!oo||i.lengths))return!1;var u=a.get(r),c=a.get(e);if(u&&c)return u==e&&c==r;var l=-1,f=!0,g=t&oXe?new Lj:void 0;for(a.set(r,e),a.set(e,r);++l=e||b<0||l&&C>=a}function m(){var B=Gp();if(p(B))return x(B);s=setTimeout(m,d(B))}function x(B){return s=void 0,f&&i?g(B):(i=n=void 0,o)}function v(){s!==void 0&&clearTimeout(s),u=0,i=A=n=s=void 0}function E(){return s===void 0?o:x(Gp())}function S(){var B=Gp(),b=p(B);if(i=arguments,n=this,A=B,b){if(s===void 0)return h(A);if(l)return clearTimeout(s),s=setTimeout(m,e),g(A)}return s===void 0&&(s=setTimeout(m,e)),o}return S.cancel=v,S.flush=E,S}var xs=iZe;function nZe(r,e){var t=-1,i=pn(r)?Array(r.length):[];return IX(r,function(n,a,o){i[++t]=e(n,a,o)}),i}var pX=nZe;function aZe(r,e){var t=nr(r)?np:pX;return t(r,lX(e,3))}var pw=aZe;var oZe="[object String]";function sZe(r){return typeof r=="string"||!nr(r)&&Ve(r)&&Ir(r)==oZe}var xw=sZe;var AZe="[object Boolean]";function cZe(r){return r===!0||r===!1||Ve(r)&&Ir(r)==AZe}var mw=cZe;var uZe="[object Date]";function lZe(r){return Ve(r)&&Ir(r)==uZe}var xX=lZe;var mX=kt&&kt.isDate,fZe=mX?xn(mX):xX,vw=fZe;function gZe(r,e){return Cc(r,e)}var Bc=gZe;var dZe=Ke.isFinite;function hZe(r){return typeof r=="number"&&dZe(r)}var Ec=hZe;var IZe="[object Number]";function pZe(r){return typeof r=="number"||Ve(r)&&Ir(r)==IZe}var Cw=pZe;function xZe(r){return r==null}var jt=xZe;function mZe(r){return r===null}var Bw=mZe;var vZe="[object RegExp]";function CZe(r){return Ve(r)&&Ir(r)==vZe}var vX=CZe;var CX=kt&&kt.isRegExp,BZe=CX?xn(CX):vX,Ew=BZe;function EZe(r){return r===void 0}var yw=EZe;var yZe=32,Qw=gz(function(r,e){var t=Vn(e,sc(Qw));return uz(r,yZe,void 0,e,t)});Qw.placeholder={};var Bf=Qw;var QZe="Expected a function";function bZe(r,e,t){var i=!0,n=!0;if(typeof r!="function")throw new TypeError(QZe);return Qr(t)&&(i="leading"in t?!!t.leading:i,n="trailing"in t?!!t.trailing:n),xs(r,e,{leading:i,maxWait:e,trailing:n})}var bw=bZe;var Di=require("obsidian"),ug=Le(kr());var Lp=require("obsidian");var Ef=function(_Lp_Modal){"use strict";_inherits(Ef1,_Lp_Modal);function Ef1(t,i){_class_call_check(this,Ef1);var _this;_this=_call_super(this,Ef1,[t]);_this.tasks=i;_this.confirmed=!1;_this.selectedTasks=[];_this.selectedTasks=new Array(i.length).fill(!0);return _this}_create_class(Ef1,[{key:"onOpen",value:function onOpen(){var _this=this;this.setTitle(_.t("deleteConfirm.title"));var _this1=this,t=_this1.contentEl;t.empty();var i=t.createEl("p",{cls:"delete-confirm-instruction"});i.style.whiteSpace="pre-wrap",i.setText(_.t("deleteConfirm.instruction"));var a=t.createDiv({cls:"max-h-50vh overflow-y-auto"}).createEl("table",{cls:"task-list-table"}),s=a.createEl("thead").createEl("tr"),A=s.createEl("th",{text:_.t("deleteConfirm.select")});A.style.textAlign="center",s.createEl("th",{text:_.t("deleteConfirm.filePath")});var u=a.createEl("tbody");this.tasks.forEach(function(l,f){var g=u.createEl("tr"),h=g.createEl("td");h.style.textAlign="center";var d=h.createEl("input");d.type="checkbox",d.checked=_this.selectedTasks[f],d.addEventListener("change",function(p){_this.selectedTasks[f]=d.checked,p.stopPropagation()}),g.addEventListener("click",function(p){p.target!==d&&(d.checked=!d.checked,_this.selectedTasks[f]=d.checked,p.stopPropagation())}),g.createEl("td",{text:l.localPath})});var c=t.createDiv();c.style.marginTop="1rem",new Lp.Setting(c).addButton(function(l){l.setButtonText(_.t("deleteConfirm.deleteAndReupload")).setCta().onClick(function(){_this.confirmed=!0,_this.close()})}).addButton(function(l){l.setButtonText(_.t("deleteConfirm.skipForNow")).onClick(function(){_this.confirmed=!1,_this.close()})})}},{key:"open",value:function open(){var _this=this;var _this1=this,_superprop_get_open=function(){return _get(_get_prototype_of(Ef1.prototype),"open",_this)};return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){_this=this;return[2,(_superprop_get_open().call(_this1),new Promise(function(t){_this.onClose=function(){if(!_this.confirmed){t({tasksToDelete:[],tasksToReupload:[]});return}var i=_this.tasks.filter(function(a,o){return _this.selectedTasks[o]}),n=_this.tasks.filter(function(a,o){return!_this.selectedTasks[o]});t({tasksToDelete:i,tasksToReupload:n})}}))]})}).call(this)}}]);return Ef1}(Lp.Modal);var Hp=require("obsidian");var yf=function(_Hp_Modal){"use strict";_inherits(yf1,_Hp_Modal);function yf1(t,i){_class_call_check(this,yf1);var _this;_this=_call_super(this,yf1,[t]);_this.failedTasks=i;return _this}_create_class(yf1,[{key:"onOpen",value:function onOpen(){var _this=this;this.setTitle(_.t("failedTasks.title"));var _this1=this,t=_this1.contentEl;t.empty(),t.createEl("p",{cls:"failed-tasks-instruction"}).setText(_.t("failedTasks.instruction"));var a=t.createDiv({cls:"max-h-50vh overflow-y-auto"}).createEl("table",{cls:"task-list-table"}),s=a.createEl("thead").createEl("tr");s.createEl("th",{text:_.t("failedTasks.taskName")}),s.createEl("th",{text:_.t("failedTasks.localPath")}),s.createEl("th",{text:_.t("failedTasks.errorMessage")});var A=a.createEl("tbody");this.failedTasks.forEach(function(c){var l=A.createEl("tr");l.createEl("td",{text:c.taskName}),l.createEl("td",{text:c.localPath}),l.createEl("td",{text:c.errorMessage})});var u=t.createDiv();u.style.marginTop="1rem",new Hp.Setting(u).addButton(function(c){c.setButtonText(_.t("failedTasks.close")).setCta().onClick(function(){return _this.close()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return yf1}(Hp.Modal);var zp=require("obsidian");var yX=require("obsidian"),Wp=Le(kr());var ar=function(){"use strict";function ar1(e){_class_call_check(this,ar1);this.options=e}_create_class(ar1,[{key:"vault",get:function get(){return this.options.vault}},{key:"syncRecord",get:function get(){return this.options.syncRecord}},{key:"webdav",get:function get(){return this.options.webdav}},{key:"remoteBaseDir",get:function get(){return this.options.remoteBaseDir}},{key:"remotePath",get:function get(){return(0,Wp.isAbsolute)(this.options.remotePath)?this.options.remotePath:(0,Wp.join)(this.remoteBaseDir,this.options.remotePath)}},{key:"localPath",get:function get(){return(0,yX.normalizePath)(this.options.localPath)}},{key:"toJSON",value:function toJSON(){var _this=this,e=_this.localPath,t=_this.remoteBaseDir,i=_this.remotePath;return{taskName:Wi(this),localPath:e,remoteBaseDir:t,remotePath:i}}}]);return ar1}(),lo=function(Error1){"use strict";_inherits(lo1,Error1);function lo1(t,i,n){_class_call_check(this,lo1);var _this;_this=_call_super(this,lo1,[t]);_this.task=i;_this.cause=n;_this.name="TaskError";return _this}return lo1}(_wrap_native_super(Error));function xr(r,e){if(_instanceof(r,lo))return r;var t=_instanceof(r,Error)?r.message:String(r);return new lo(t,e,_instanceof(r,Error)?r:void 0)}var Rt=function(ar1){"use strict";_inherits(Rt1,ar1);function Rt1(){_class_call_check(this,Rt1);return _call_super(this,Rt1,arguments)}_create_class(Rt1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.syncRecord.deleteFileRecord(this.localPath)];case 1:return[2,(_state.sent(),{success:!0,skipRecord:!0})];case 2:e=_state.sent();return[2,(z.error(this,e),{success:!1,error:xr(e,this)})];case 3:return[2]}})}).call(this)}}]);return Rt1}(ar);function SZe(r){return _async_to_generator(function(){return _ts_generator(this,function(_state){return[2,crypto.subtle.digest("SHA-256",r)]})})()}function ww(r){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,SZe(r)];case 1:e=_state.sent();return[2,wV(new Uint8Array(e),!1)]}})})()}var Jp=Le(bX());function Qf(r){function e(s,A){return r.setItem(s,A)}function t(s){return r.getItem(s)}function i(s){return r.removeItem(s)}function n(){return r.clear()}function a(){return _async_to_generator(function(){var s,A,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,u,c,err1;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,r.keys()];case 1:s=_state.sent(),A={};_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;_state.label=2;case 2:_state.trys.push([2,7,8,9]);_iterator=s[Symbol.iterator]();_state.label=3;case 3:if(!!(_iteratorNormalCompletion=(_step=_iterator.next()).done))return[3,6];u=_step.value;return[4,r.getItem(u)];case 4:c=_state.sent();c&&(A[u]=c);_state.label=5;case 5:_iteratorNormalCompletion=true;return[3,3];case 6:return[3,9];case 7:err1=_state.sent();_didIteratorError=true;_iteratorError=err1;return[3,9];case 8:try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}return[7];case 9:return[2,A]}})})()}function o(s){return _async_to_generator(function(){var A,_tmp,_tmp1,_tmp2,_i1,u,u2,_tmp3,_tmp4,_tmp5,_i2,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!s||(typeof s==="undefined"?"undefined":_type_of(s))!="object")throw new Error("Invalid data format for restore");return[4,a()];case 1:A=_state.sent();_state.label=2;case 2:_state.trys.push([2,8,,14]);return[4,r.clear()];case 3:_state.sent();_tmp=s;_tmp1=[];for(_tmp2 in _tmp)_tmp1.push(_tmp2);_i1=0;_state.label=4;case 4:if(!(_i1<_tmp1.length))return[3,7];_tmp2=_tmp1[_i1];if(!(_tmp2 in _tmp))return[3,6];u=_tmp2;return[4,r.setItem(u,s[u])];case 5:_state.sent();_state.label=6;case 6:_i1++;return[3,4];case 7:return[3,14];case 8:u2=_state.sent();return[4,r.clear()];case 9:_state.sent();_tmp3=A;_tmp4=[];for(_tmp5 in _tmp3)_tmp4.push(_tmp5);_i2=0;_state.label=10;case 10:if(!(_i2<_tmp4.length))return[3,13];_tmp5=_tmp4[_i2];if(!(_tmp5 in _tmp3))return[3,12];c=_tmp5;return[4,r.setItem(c,A[c])];case 11:_state.sent();_state.label=12;case 12:_i2++;return[3,10];case 13:return[3,14];case 14:return[2]}})})()}return{set:e,get:t,unset:i,clear:n,dump:a,restore:o}}var _w="Nutstore_Plugin_Cache",jn=Qf(Jp.default.createInstance({name:_w,storeName:"sync_record"})),bf=Qf(Jp.default.createInstance({name:_w,storeName:"base_blob_store"})),Cn=Qf(Jp.default.createInstance({name:_w,storeName:"traverse_webdav_cache"}));function _Ze(){function r(t){return bf.get(t)}function e(t){return _async_to_generator(function(){var i,n,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!_instanceof(t,Blob))return[3,3];return[4,t.arrayBuffer()];case 1:return[4,ww.apply(void 0,[_state.sent()])];case 2:_tmp=(i=_state.sent(),n=t);return[3,5];case 3:return[4,ww(t)];case 4:_tmp=(i=_state.sent(),n=new Blob([t]));_state.label=5;case 5:_tmp;_tmp1={key:i};return[4,bf.set(i,n)];case 6:return[2,(_tmp1.value=_state.sent(),_tmp1)]}})})()}return{get:r,store:e}}var Qc=_Ze();function wX(r){return r=r.trim().toLowerCase(),r.endsWith(".md")||r.endsWith(".markdown")}function wf(r){return wX(r)}function _X(r,e){var t={};for(var a=0;al));f++);if(fA.buffer1index;)u.buffer1.push(r[n]);for(;--a>A.buffer2index;)u.buffer2.push(e[a]);(u.buffer1.length||u.buffer2.length)&&(s(),u.buffer1.reverse(),u.buffer2.reverse(),i.push(u)),n>=0&&o.common.push(r[n])}return s(),i.reverse(),i}function SX(r,e){var t=_X(r,e),i=[],n=r.length,a=e.length;for(var o=t;o!==null;o=o.chain){var s=n-o.buffer1index-1,A=a-o.buffer2index-1;n=o.buffer1index,a=o.buffer2index,(s||A)&&i.push({buffer1:[n+1,s],buffer1Content:r.slice(n+1,n+1+s),buffer2:[a+1,A],buffer2Content:e.slice(a+1,a+1+A)})}return i.reverse(),i}function qZe(r,e,t){var i=[];function n(A,u){i.push({ab:u,oStart:A.buffer1[0],oLength:A.buffer1[1],abStart:A.buffer2[0],abLength:A.buffer2[1]})}SX(e,r).forEach(function(A){return n(A,"a")}),SX(e,t).forEach(function(A){return n(A,"b")}),i.sort(function(A,u){return A.oStart-u.oStart});var a=[],o=0;function s(A){A>o&&(a.push({stable:!0,buffer:"o",bufferStart:o,bufferLength:A-o,bufferContent:e.slice(o,A)}),o=A)}for(;i.length;){var A=i.shift(),u=A.oStart,c=A.oStart+A.oLength,l=[A];for(s(u);i.length;){var f=i[0],g=f.oStart;if(g>c)break;c=Math.max(c,g+f.oLength),l.push(i.shift())}if(l.length===1){if(A.abLength>0){var f2=A.ab==="a"?r:t;a.push({stable:!0,buffer:A.ab,bufferStart:A.abStart,bufferLength:A.abLength,bufferContent:f2.slice(A.abStart,A.abStart+A.abLength)})}}else{var f3={a:[r.length,-1,e.length,-1],b:[t.length,-1,e.length,-1]};for(;l.length;){A=l.shift();var x=A.oStart,v=x+A.oLength,E=A.abStart,S=E+A.abLength,B=f3[A.ab];B[0]=Math.min(E,B[0]),B[1]=Math.max(S,B[1]),B[2]=Math.min(x,B[2]),B[3]=Math.max(v,B[3])}var g2=f3.a[0]+(u-f3.a[2]),h=f3.a[1]+(c-f3.a[3]),d=f3.b[0]+(u-f3.b[2]),p=f3.b[1]+(c-f3.b[3]),m={stable:!1,aStart:g2,aLength:h-g2,aContent:r.slice(g2,h),oStart:u,oLength:c-u,oContent:e.slice(u,c),bStart:d,bLength:p-d,bContent:t.slice(d,p)};a.push(m)}o=c}return s(e.length),a}function Kp(r,e,t,i){i=Object.assign({excludeFalseConflicts:!0,stringSeparator:/\s+/},i),typeof r=="string"&&(r=r.split(i.stringSeparator)),typeof e=="string"&&(e=e.split(i.stringSeparator)),typeof t=="string"&&(t=t.split(i.stringSeparator));var a=[],o=qZe(r,e,t),s=[];function A(){s.length&&a.push({ok:s}),s=[]}function u(c,l){if(c.length!==l.length)return!1;for(var f=0;f",o=i.useGitStyle?"=======":"",s=i.useGitStyle?">>>>>>>":"",A=Kp(r,e,t,i),u=!1,c=[];return A.forEach(function(l){if(l.ok)c=c.concat(l.ok);else{var f=qX(l.conflict.a,l.conflict.b);for(var g=0;ge?Bc(i,n)?{status:0}:{status:1,content:n}:Bc(i,n)?{status:0}:{status:2,content:i}}function DZe(r,e,t){var i=Kp(e,r,t,{excludeFalseConflicts:!0,stringSeparator:"\n"});if(i.some(function(a){return!a.ok}))return!1;var n=[];var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=i[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;a.ok&&n.push(a.ok)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return n.flat().join("\n")}function TX(r){return _async_to_generator(function(){var e,t,i,n,a,o,s,_a_patch_apply,A,u;return _ts_generator(this,function(_state){e=r.localContentText,t=r.remoteContentText,i=r.baseContentText;if(e===t)return[2,{success:!0,isIdentical:!0}];n=DZe(i,e,t);if(n!==!1)return[2,{success:!0,mergedText:n}];a=new NX.diff_match_patch;a.Match_Threshold=.2,a.Patch_Margin=2;o=a.diff_main(i,t),s=a.patch_make(i,o),_a_patch_apply=_sliced_to_array(a.patch_apply(s,e),2),A=_a_patch_apply[0],u=_a_patch_apply[1];return[2,u.includes(!1)?{success:!1}:{success:!0,mergedText:A}]})})()}var Xn=function(ar1){"use strict";_inherits(Xn1,ar1);function Xn1(t){_class_call_check(this,Xn1);var _this;_this=_call_super(this,Xn1,[t]);_this.options=t;return _this}_create_class(Xn1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var t,i,_$n,_tmp,a,_tmp1,_2,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,13,,14]);if(!((t=this.options.localStat)!=null))return[3,1];_tmp=t;return[3,3];case 1:return[4,Xt(this.vault,this.localPath)];case 2:_tmp=_state.sent();_state.label=3;case 3:_$n=_tmp;if(!_$n)throw new Error("Local file not found: "+this.localPath);if(!((i=this.options.remoteStat)!=null))return[3,4];_tmp1=i;return[3,6];case 4:return[4,kX(this.webdav,this.remotePath)];case 5:_tmp1=_state.sent();_state.label=6;case 6:a=_tmp1;if(a.isDir)throw new Error("Remote path is a directory: "+this.remotePath);if(_$n.isDir)throw new Error("Local path is a directory: "+this.localPath);if(_$n.size===0&&a.size===0)return[2,{success:!0}];_2=this.options.strategy;switch(_2){case"diff-match-patch":return[3,7];case"latest-timestamp":return[3,9];case"skip":return[3,11]}return[3,12];case 7:return[4,this.execIntelligentMerge()];case 8:return[2,_state.sent()];case 9:return[4,this.execLatestTimeStamp(_$n,a)];case 10:return[2,_state.sent()];case 11:return[2,{success:!0,skipRecord:!0}];case 12:return[3,14];case 13:n=_state.sent();return[2,(z.error(this,n),{success:!1,error:xr(n,this)})];case 14:return[2]}})}).call(this)}},{key:"execLatestTimeStamp",value:function execLatestTimeStamp(t,i){return _async_to_generator(function(){var _$n,a,o,s,A,u,_2,c,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,9,,10]);_$n=t.mtime,a=i.mtime;if(a===_$n)return[2,{success:!0}];o=this.vault.getFileByPath(this.localPath);if(!o)return[2,{success:!1,error:xr(new Error("cannot find file in local fs: "+this.localPath),this)}];return[4,this.vault.readBinary(o)];case 1:s=_state.sent();return[4,this.webdav.getFileContents(this.remotePath,{details:!1,format:"binary"})];case 2:A=_state.sent(),u=OX({localMtime:_$n,remoteMtime:a,localContent:s,remoteContent:A});_2=u.status;switch(_2){case 1:return[3,3];case 2:return[3,5];case 0:return[3,7]}return[3,8];case 3:c=_instanceof(u.content,ArrayBuffer)?u.content:new Uint8Array(u.content).buffer;return[4,this.vault.modifyBinary(o,c)];case 4:_state.sent();return[3,8];case 5:return[4,this.webdav.putFileContents(this.remotePath,u.content,{overwrite:!0})];case 6:_state.sent();return[3,8];case 7:If();return[3,8];case 8:return[2,{success:!0}];case 9:n=_state.sent();return[2,(z.error(this,n),{success:!1,error:xr(n,this)})];case 10:return[2]}})}).call(this)}},{key:"execIntelligentMerge",value:function execIntelligentMerge(){return _async_to_generator(function(){var t,i,_$n,a,o,_this_options,s,A,u,_tmp,c,l,f,g,h,d,v,p,_tmp1,_tmp2,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,19,,20]);_$n=this.vault.getFileByPath(this.localPath);if(!_$n)throw new Error("cannot find file in local fs: "+this.localPath);return[4,this.vault.readBinary(_$n)];case 1:a=_state.sent();return[4,this.webdav.getFileContents(this.remotePath,{format:"binary",details:!1})];case 2:o=_state.sent();if(Bc(a,o))return[2,{success:!0}];_this_options=this.options,s=_this_options.record,A=null,u=(t=s==null?void 0:s.base)==null?void 0:t.key;_tmp=u;if(!_tmp)return[3,4];return[4,Qc.get(u)];case 3:_tmp=A=_state.sent();_state.label=4;case 4:_tmp;c=wf(_$n.path),l=wf(this.remotePath);if(!(c&&l))throw new Error(_.t("sync.error.mergeNotSupported"));return[4,new Blob([new Uint8Array(a)]).text()];case 5:f=_state.sent();return[4,new Blob([new Uint8Array(o)]).text()];case 6:g=_state.sent();return[4,A==null?void 0:A.text()];case 7:h=(i=_state.sent())!=null?i:f;return[4,TX({localContentText:f,remoteContentText:g,baseContentText:h})];case 8:d=_state.sent();if(!!d.success)return[3,12];v=DX(f,h,g,{stringSeparator:"\n",useGitStyle:this.options.useGitStyle}).result.join("\n");return[4,this.webdav.putFileContents(this.remotePath,v,{overwrite:!0})];case 9:if(!_state.sent())return[3,11];return[4,this.vault.modify(_$n,v)];case 10:return[2,(_state.sent(),{success:!0})];case 11:throw new Error(_.t("sync.error.failedToUploadMerged"));case 12:if(d.isIdentical)return[2,{success:!0}];p=d.mergedText;if(!(p===g))return[3,15];_tmp1=p!==f;if(!_tmp1)return[3,14];return[4,this.vault.modify(_$n,p)];case 13:_tmp1=_state.sent();_state.label=14;case 14:return[2,(_tmp1,{success:!0})];case 15:return[4,this.webdav.putFileContents(this.remotePath,p,{overwrite:!0})];case 16:if(!_state.sent())throw new Error(_.t("sync.error.failedToUploadMerged"));_tmp2=f!==p;if(!_tmp2)return[3,18];return[4,this.vault.modify(_$n,p)];case 17:_tmp2=_state.sent();_state.label=18;case 18:return[2,(_tmp2,{success:!0})];case 19:n=_state.sent();return[2,(z.error(this,n),{success:!1,error:xr(n,this)})];case 20:return[2]}})}).call(this)}}]);return Xn1}(ar);var FZe=":*?\"<>|",PX=FZe.split("");function go(r){return PX.some(function(e){return r.includes(e)})}function MX(r){return PX.filter(function(e){return r.includes(e)})}var Sf=function _target(Error1){"use strict";_inherits(Sf1,Error1);function Sf1(t,i){_class_call_check(this,Sf1);var _this;var n;_this=_call_super(this,Sf1);_this.invalidChars=t;_this.filePath=i;_this.name="FilenameError",(n=Object.setPrototypeOf)==null||n.call(Object,_this,(_instanceof(this,Sf1)?this.constructor:void 0).prototype),Object.defineProperty(_this,"message",{configurable:!0,get:function(){return Sf.format(_this.invalidChars,_this.filePath)}});return _this}_create_class(Sf1,null,[{key:"format",value:function format(t,i){var a=Array.from(new Set(t)).map(function(o){return"'".concat(o,"'")}).join(", ");return _.t("errors.filenameUnsupportedChars",{chars:a,path:i})}}]);return Sf1}(_wrap_native_super(Error)),Zn=function(ar1){"use strict";_inherits(Zn1,ar1);function Zn1(){_class_call_check(this,Zn1);return _call_super(this,Zn1,arguments)}_create_class(Zn1,[{key:"exec",value:function exec(){var e=MX(this.localPath);return{success:!1,error:xr(new Sf(e,this.localPath),this)}}}]);return Zn1}(ar);var Vp=Le(kr());function Yp(r,e){return _async_to_generator(function(){var t,i,n,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=[],i=(0,Vp.normalize)(e);if(!(!(i==="/"||i===".")&&!r.getAbstractFileByPath(i)))return[3,5];for(;i!==""&&i!=="/"&&i!=="."&&jt(r.getAbstractFileByPath(i));)t.push(i),i=(0,Vp.dirname)(i);_state.label=1;case 1:if(!t.length)return[3,5];n=t.pop();_tmp=n;if(!_tmp)return[3,3];return[4,r.createFolder(n)];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;_state.label=4;case 4:return[3,1];case 5:return[2]}})})()}var $n=function(ar1){"use strict";_inherits($n1,ar1);function $n1(){_class_call_check(this,$n1);return _call_super(this,$n1,arguments)}_create_class($n1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,Yp(this.vault,this.localPath)];case 1:return[2,(_state.sent(),{success:!0})];case 2:e=_state.sent();return[2,(z.error(this,e),{success:!1,error:xr(e,this)})];case 3:return[2]}})}).call(this)}}]);return $n1}(ar);var Ct=function(ar1){"use strict";_inherits(Ct1,ar1);function Ct1(){_class_call_check(this,Ct1);return _call_super(this,Ct1,arguments)}_create_class(Ct1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,Xt(this.vault,this.localPath)];case 1:if(!_state.sent())throw z.debug("PullTask: local path:",this.localPath),z.debug("PullTask: local stat is null"),new Error(_.t("sync.error.localPathNotFound",{path:this.localPath}));return[4,this.webdav.createDirectory(this.remotePath,{recursive:!0})];case 2:return[2,(_state.sent(),{success:!0})];case 3:e=_state.sent();return[2,(z.error(this,e),{success:!1,error:xr(e,this)})];case 4:return[2]}})}).call(this)}}]);return Ct1}(ar);var Ji=function(ar1){"use strict";_inherits(Ji1,ar1);function Ji1(t){_class_call_check(this,Ji1);var _this;_this=_call_super(this,Ji1,[t]);_this.additionalPaths=t.additionalPaths;return _this}_create_class(Ji1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,Xt(this.vault,this.localPath)];case 1:if(!_state.sent())throw z.debug("MkdirsRemoteTask: local path:",this.localPath),z.debug("MkdirsRemoteTask: local stat is null"),new Error(_.t("sync.error.localPathNotFound",{path:this.localPath}));return[4,this.webdav.createDirectory(this.remotePath,{recursive:!0})];case 2:return[2,(_state.sent(),{success:!0})];case 3:t=_state.sent();return[2,(z.error(this,t),{success:!1,error:xr(t,this)})];case 4:return[2]}})}).call(this)}},{key:"getAllPaths",value:function getAllPaths(){return[{localPath:this.localPath,remotePath:this.remotePath}].concat(_to_consumable_array(this.additionalPaths))}},{key:"toJSON",value:function toJSON(){return _object_spread_props(_object_spread({},_get(_get_prototype_of(Ji1.prototype),"toJSON",this).call(this)),{additionalPaths:this.additionalPaths,totalDirs:this.getAllPaths().length})}}]);return Ji1}(ar);var Zt=function(ar1){"use strict";_inherits(Zt1,ar1);function Zt1(){_class_call_check(this,Zt1);return _call_super(this,Zt1,arguments)}_create_class(Zt1,[{key:"exec",value:function exec(){return{success:!0}}}]);return Zt1}(ar);var UX=Le(kr());var ea=function(ar1){"use strict";_inherits(ea1,ar1);function ea1(t){_class_call_check(this,ea1);var _this;_this=_call_super(this,ea1,[t]);_this.options=t;return _this}_create_class(ea1,[{key:"remoteSize",get:function get(){return this.options.remoteSize}},{key:"exec",value:function exec(){return _async_to_generator(function(){var t,_$i,n,_tmp,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.vault.getFileByPath(this.localPath)];case 1:t=_state.sent();_state.label=2;case 2:_state.trys.push([2,9,,10]);return[4,this.webdav.getFileContents(this.remotePath,{format:"binary",details:!1})];case 3:_$i=_state.sent(),n=kZe(_$i);if(n.byteLength!==this.remoteSize)throw new Error("Remote Size Not Match!");if(!t)return[3,5];return[4,this.vault.modifyBinary(t,n)];case 4:_tmp=_state.sent();return[3,8];case 5:return[4,Yp(this.vault,(0,UX.dirname)(this.localPath))];case 6:_state.sent();return[4,this.vault.createBinary(this.localPath,n)];case 7:_tmp=_state.sent();_state.label=8;case 8:return[2,(_tmp,{success:!0})];case 9:i=_state.sent();return[2,(z.error(this,i),{success:!1,error:xr(i,this)})];case 10:return[2]}})}).call(this)}}]);return ea1}(ar);function kZe(r){return _instanceof(r,ArrayBuffer)?r:RZe(r)}function RZe(r){if(_instanceof(r.buffer,SharedArrayBuffer)){var e=new ArrayBuffer(r.byteLength);return new Uint8Array(e).set(r),e}return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}var Ki=function(ar1){"use strict";_inherits(Ki1,ar1);function Ki1(){_class_call_check(this,Ki1);return _call_super(this,Ki1,arguments)}_create_class(Ki1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var _$e1,t,i,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);_$e1=this.vault.getFileByPath(this.localPath);if(!_$e1)throw new Error("cannot find file in local fs: "+this.localPath);return[4,this.vault.readBinary(_$e1)];case 1:t=_state.sent();return[4,this.webdav.putFileContents(this.remotePath,t,{overwrite:!0})];case 2:i=_state.sent();if(!i)throw new Error("Upload failed");return[2,{success:i}];case 3:e=_state.sent();return[2,(z.error(this,e),{success:!1,error:xr(e,this)})];case 4:return[2]}})}).call(this)}}]);return Ki1}(ar);var Si=function(ar1){"use strict";_inherits(Si1,ar1);function Si1(t){_class_call_check(this,Si1);var _this;_this=_call_super(this,Si1,[t]);_this.options=t;return _this}_create_class(Si1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var i,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,Xt(this.vault,this.localPath)];case 1:if(!_state.sent())return[2,{success:!0}];i=this.vault.getAbstractFileByPath(this.localPath);if(!i)throw new Error("cannot find file in local fs: "+this.localPath);return[4,this.vault.trash(i,!1)];case 2:return[2,(_state.sent(),{success:!0})];case 3:t=_state.sent();return[2,(z.error(t),{success:!1,error:xr(t,this)})];case 4:return[2]}})}).call(this)}}]);return Si1}(ar);var Vi=function(ar1){"use strict";_inherits(Vi1,ar1);function Vi1(){_class_call_check(this,Vi1);return _call_super(this,Vi1,arguments)}_create_class(Vi1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.webdav.deleteFile(this.remotePath)];case 1:return[2,(_state.sent(),{success:!0})];case 2:e=_state.sent();return[2,(z.error(e),{success:!1,error:xr(e,this)})];case 3:return[2]}})}).call(this)}}]);return Vi1}(ar);var _i=function(ar1){"use strict";_inherits(_i1,ar1);function _i1(){_class_call_check(this,_i1);return _call_super(this,_i1,arguments)}_create_class(_i1,[{key:"exec",value:function exec(){return _async_to_generator(function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.webdav.deleteFile(this.remotePath)];case 1:return[2,(_state.sent(),{success:!0})];case 2:e=_state.sent();return[2,(z.error(e),{success:!1,error:xr(e,this)})];case 3:return[2]}})}).call(this)}}]);return _i1}(ar);var ai=function(ar1){"use strict";_inherits(ai1,ar1);function ai1(t){_class_call_check(this,ai1);var _this;_this=_call_super(this,ai1,[t]);_this.options=t;return _this}_create_class(ai1,[{key:"exec",value:function exec(){return{success:!0,skipRecord:!0}}}]);return ai1}(ar);function Wi(r){if(_instanceof(r,Rt))return _.t("sync.fileOp.cleanRecord");if(_instanceof(r,Xn))return _.t("sync.fileOp.merge");if(_instanceof(r,Zn))return _.t("sync.fileOp.filenameError");if(_instanceof(r,$n))return _.t("sync.fileOp.createLocalDir");if(_instanceof(r,Ct))return _.t("sync.fileOp.createRemoteDir");if(_instanceof(r,Ji))return _.t("sync.fileOp.createRemoteDirs");if(_instanceof(r,Zt))return _.t("sync.fileOp.noop");if(_instanceof(r,ea))return _.t("sync.fileOp.download");if(_instanceof(r,Ki))return _.t("sync.fileOp.upload");if(_instanceof(r,Si))return _.t("sync.fileOp.removeLocal");if(_instanceof(r,_i))return _.t("sync.fileOp.removeRemote");if(_instanceof(r,Vi))return _.t("sync.fileOp.removeRemoteRecursively");if(_instanceof(r,ai)){var e=_.t("sync.skipReason.".concat(r.options.reason));return"".concat(_.t("sync.fileOp.skip"),": ").concat(e)}return _.t("sync.fileOp.sync")}var _f=function(_zp_Modal){"use strict";_inherits(_f1,_zp_Modal);function _f1(t,i){_class_call_check(this,_f1);var _this;_this=_call_super(this,_f1,[t]);_this.tasks=i;_this.result=!1;_this.selectedTasks=[];_this.selectedTasks=new Array(i.length).fill(!0);return _this}_create_class(_f1,[{key:"onOpen",value:function onOpen(){var _this=this;this.setTitle(_.t("taskList.title"));var _this1=this,t=_this1.contentEl;t.empty(),t.createEl("p").setText(_.t("taskList.instruction"));var a=t.createDiv({cls:"max-h-50vh overflow-y-auto"}).createEl("table",{cls:"task-list-table"}),s=a.createEl("thead").createEl("tr");s.createEl("th",{text:_.t("taskList.execute")}),s.createEl("th",{text:_.t("taskList.action")}),s.createEl("th",{text:_.t("taskList.localPath")}),s.createEl("th",{text:_.t("taskList.remotePath")});var A=a.createEl("tbody");this.tasks.forEach(function(c,l){var f=A.createEl("tr"),h=f.createEl("td").createEl("input");h.type="checkbox",h.checked=_this.selectedTasks[l],h.addEventListener("change",function(d){_this.selectedTasks[l]=h.checked,d.stopPropagation()}),f.addEventListener("click",function(d){d.target!==h&&(h.checked=!h.checked,_this.selectedTasks[l]=h.checked,d.stopPropagation())}),f.createEl("td",{text:Wi(c)}),f.createEl("td",{text:c.localPath}),f.createEl("td",{text:c.remotePath})});var u=t.createDiv();u.style.marginTop="1rem",new zp.Setting(u).addButton(function(c){c.setButtonText(_.t("taskList.continue")).setCta().onClick(function(){_this.result=!0,_this.close()})}).addButton(function(c){c.setButtonText(_.t("taskList.cancel")).onClick(function(){_this.result=!1,_this.close()})})}},{key:"open",value:function open(){var _this=this;var _this1=this,_superprop_get_open=function(){return _get(_get_prototype_of(_f1.prototype),"open",_this)};return _async_to_generator(function(){var _this;return _ts_generator(this,function(_state){_this=this;return[2,(_superprop_get_open().call(_this1),new Promise(function(t){_this.onClose=function(){var i=_this.tasks.filter(function(n,a){return _this.selectedTasks[a]});t({confirm:_this.result,tasks:i})}}))]})}).call(this)}}]);return _f1}(zp.Modal);var F0=require("obsidian");var GX=new Gr,LX=function(){return GX.asObservable()},HX=function(r){return GX.next(r)};function qf(r){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,new Promise(function(e){return window.setTimeout(e,r)})];case 1:_state.sent();return[2]}})})()}function ms(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Promise.resolve(r())];case 1:t=_state.sent();if(t)return[2,t];return[4,qf(e)];case 2:_state.sent();_state.label=3;case 3:return[3,0];case 4:return[2]}})})()}(function(r,e){var t={_0x5cf91e:1609,_0x3faf49:1377,_0x5120ac:1289,_0x2f5ef4:"ejE(",_0x2cd6cc:1094,_0x2c966b:1717,_0x17ae12:1758,_0x51b4:1193,_0x3bcad0:481,_0x5df4d4:638,_0x8ba02:645,_0x1f3ae4:438,_0x30de76:501,_0x587f8e:495,_0x2efe7b:"o)FD",_0xf40806:1523,_0x126189:"N0Iq",_0x5ea1cb:644,_0x374dff:485,_0x4969c8:454,_0x578a1c:"Iozt",_0x562047:934,_0x1160b4:295,_0x4cb40b:838,_0x55f294:"iqpp",_0x3e2c3e:1084,_0x1b8ae4:1210,_0x3058bd:"RtOR",_0x377b2a:1191,_0x4ea89d:320,_0x33694f:83},i={_0x2ccfe8:417},n={_0xfad580:312},a={_0x3df5d1:14};function o(g,h,d,p,m){return Ie(p- -a._0x3df5d1,d)}function s(g,h,d,p,m){return Ie(d-199,p)}function A(g,h,d,p,m){return Ie(p- -35,h)}function u(g,h,d,p,m){return Ie(p-n._0xfad580,m)}function c(g,h,d,p,m){return Ie(h- -i._0x2ccfe8,g)}for(var l=r();[];)try{var f=parseInt(u(1461,t._0x5cf91e,t._0x3faf49,t._0x5120ac,t._0x2f5ef4))/1+parseInt(u(t._0x2cd6cc,t._0x2c966b,t._0x17ae12,1356,"DLFC"))/2*(parseInt(u(t._0x51b4,1126,t._0x3bcad0,825,"ejE("))/3)+parseInt(u(t._0x5df4d4,t._0x8ba02,t._0x1f3ae4,792,"o)FD"))/4+parseInt(u(1119,t._0x30de76,t._0x587f8e,845,t._0x2efe7b))/5*(parseInt(u(1108,t._0xf40806,1296,1305,"V&B%"))/6)+parseInt(c(t._0x126189,t._0x5ea1cb,t._0x374dff,593,391))/7*(-parseInt(A(t._0x4969c8,t._0x578a1c,t._0x562047,575,t._0x1160b4))/8)+parseInt(s(t._0x4cb40b,645,989,t._0x55f294,1130))/9+parseInt(s(1588,t._0x3e2c3e,t._0x1b8ae4,t._0x3058bd,t._0x377b2a))/10*(-parseInt(c("s!LQ",t._0x4ea89d,-t._0x33694f,119,265))/11);if(f===e)break;l.push(l.shift())}catch(g){l.push(l.shift())}})(jp,624791);var NZe=Object[j("wS8$",553,212,371,8)+"e"],JX=Object[j("r^O1",507,120,124,-69)+j("fdfK",300,672,280,465)+Z(1093,1435,1838,"o5uN",1474)],OZe=Object[j("N0Iq",-207,-111,-266,-345)+ne("QwuZ",1462,1571,1840,1821)+se(-31,"V&B%",-408,-314,152)+Z(1710,2056,1416,"QwuZ",1724)+se(-177,"XKg0",-537,-317,-92)],TZe=Object[j("Iozt",79,-650,-307,-363)+re("bVi3",1108,1698,1572,1488)+ne("bVi3",1211,1244,845,1246)+j("N0Iq",-259,-65,-20,102)],PZe=Object[j("SAMA",226,-484,-112,24)+j("V&B%",749,722,429,795)+Z(1236,1161,1700,"s!LQ",1505)],MZe=Object[re("o5uN",1353,1418,1505,1524)+se(-342,"*YWj",-685,-563,-424)][Z(1152,641,745,"7r4f",989)+Z(1180,1573,1080,"848R",1330)+re("N2PL",1608,1749,1038,1359)],KX={};KX[ne("Zr4y",1522,1236,1729,1220)+"ts"]={};var UZe=function(r,e){return function(){return e||r((e=KX)[j("DLFC",-19,439,183,173)+"ts"],e),e[j("ejE(",394,129,225,612)+"ts"]}},GZe=function(r,e,t,i){var c=function c(d,p,m,x,v){return ne(p,d-u._0x13b464,m-u._0x164e32,x-270,v-66)};var l=function l(d,p,m,x,v){return j(m,p-426,m-A._0x56d95e,v-1330,v-A._0x3916e9)};var f=function f(d,p,m,x,v){return j(v,p-s._0x139304,m-298,p-1252,v-343)};var g=function g(d,p,m,x,v){return re(m,p-o._0x2f79ff,m-o._0x3fb4a0,x-145,d- -297)};var h=function h(d,p,m,x,v){return Z(d-10,p-a._0x4f2c85,m-436,p,d-40)};var n={_0x46dc05:1288,_0x2cf1ec:"JNeN",_0x3f78c5:1300,_0x5c298e:1563,_0x1627f1:1527,_0x5de1c1:1305,_0x1bd299:1430,_0x23642d:"N2PL",_0x4e3302:"7r4f",_0x2d5b51:1246,_0x40363a:1008,_0xf3d49a:1005,_0x134dd5:981,_0x210600:"AQmA",_0x3cda24:867,_0x4f040c:1088},a={_0x4f2c85:153},o={_0x2f79ff:53,_0x3fb4a0:259},s={_0x139304:292},A={_0x56d95e:204,_0x3916e9:234},u={_0x13b464:533,_0x164e32:339};var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(e&&(typeof e==="undefined"?"undefined":_type_of(e))==l(1811,n._0x46dc05,n._0x2cf1ec,n._0x3f78c5,1632)+"t"||(typeof e==="undefined"?"undefined":_type_of(e))==l(n._0x5c298e,n._0x1627f1,"X@hs",1383,n._0x5de1c1)+g(1195,n._0x1bd299,n._0x23642d,1207,914))try{var _loop=function(){var d=_step.value;!MZe[l(1602,1630,n._0x4e3302,1406,1626)](r,d)&&d!==t&&JX(r,d,{get:function(){return e[d]},enumerable:!(i=OZe(e,d))||i[g(n._0x2d5b51,n._0x40363a,"QdMv",1545,n._0xf3d49a)+l(n._0x134dd5,911,n._0x210600,n._0x3cda24,n._0x4f040c)]})};for(var _iterator=TZe(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return r},Xp=function(r,e,t){return t=r!=null?NZe(PZe(r)):{},GZe(e||!r||!r[Z(1461,1565,1550,"Td@a",1498)+j("*YWj",57,458,136,470)]?JX(t,Z(1264,1334,1552,"V&B%",1516)+"lt",{value:r,enumerable:!0}):t,r)},_c=function(r,e,t){return new Promise(function(i,n){var p=function p(S,B,b,C,y){return se(B-1636,C,b-u._0x1816fc,C-u._0x39f5e0,y-232)};var m=function m(S,B,b,C,y){return re(B,B-A._0x5d5dfe,b-452,C-497,y- -1382)};var x=function x(S,B,b,C,y){return se(S-s._0x3eff3f,C,b-s._0x12fd2d,C-177,y-49)};var v=function v(S,B,b,C,y){return se(B-1348,b,b-412,C-330,y-44)};var E=function E(S,B,b,C,y){return j(B,B-o._0x64f9da,b-o._0x3a440f,S-52,y-o._0x5e0269)};var a={_0x1e13d3:"wS8$",_0x401b9f:329,_0x59665c:461},o={_0x64f9da:161,_0x3a440f:410,_0x5e0269:460},s={_0x3eff3f:1355,_0x12fd2d:364},A={_0x5d5dfe:164},u={_0x1816fc:279,_0x39f5e0:110},c={_0x5b7525:88,_0xc3ebd5:477,_0x5c4429:159,_0x3356bc:"ix8k",_0x18415e:83,_0x519845:207,_0x176fe4:128,_0x2a03e9:20,_0x329d56:"Zr4y",_0x601cab:155,_0x835e94:1276,_0x2afa5a:1602,_0x49af3c:1891,_0x34e983:2153,_0x437779:"Iozt",_0x42b754:2148,_0x1c95c2:2226,_0x2cf41b:1527,_0x43d1e0:1465,_0x1a8771:753,_0xef95ff:537,_0x524270:19,_0x428fe1:343,_0x5a5724:1657,_0x4cd4cd:1764,_0x5e5d57:1486,_0x14ddfe:"JNeN",_0x41b554:1546,_0xc4c2e:"tghG",_0xe231e2:402,_0xf62f63:292},l={_0x91c602:136},f={_0xd08b04:296,_0x22ee44:20,_0x436e99:212,_0x4e7849:105,_0x2ae8bc:355,_0x39c870:142,_0x308e10:1301,_0x395f66:"MVwD",_0x540eff:1756,_0x59acbf:1363,_0x1044b3:1099,_0x5005e7:"SAMA",_0x1930ce:865,_0x19a896:932,_0x4a313d:1358,_0x5bd2e2:1711,_0x28f913:1048,_0x5df361:91,_0x12f5cb:9,_0x1c9436:1361,_0x157474:"848R",_0x1827e7:1362,_0x3578fd:1230,_0x46fff8:1148,_0x23664a:1229,_0x4ace64:"s!LQ",_0x150da1:540,_0x20d8e9:1427,_0x1915fe:1213,_0x2ddf10:1335,_0x2dc58c:"fdfK",_0x4cd2fc:1286,_0x460c5b:285,_0xde2caa:217,_0x9367d3:"ix8k",_0x2ec30c:252,_0x1fb50a:398,_0x53b334:116,_0x4d6f00:"DgfB",_0x5ec534:187,_0x5376ed:1226,_0x41cb1b:1324,_0x1e7f85:"*YWj",_0x2541ce:707,_0xa87ac3:205,_0x58d686:86,_0x26cdb9:1346,_0x25054a:1134,_0x145b9a:1231,_0x20ee3b:"AQmA"},g=function(S){var b=function b(Ce,L,Ae,pe,le){return Ie(le-257,L)};var C=function C(Ce,L,Ae,pe,le){return Ie(le- -892,L)};var y=function y(Ce,L,Ae,pe,le){return Ie(le- -806,pe)};var q=function q(Ce,L,Ae,pe,le){return Ie(Ce-672,le)};var w=function w(Ce,L,Ae,pe,le){return Ie(le-B._0x7b60e4,pe)};var B={_0x7b60e4:790};try{if(C(-f._0xd08b04,"Z(VR",-34,-232,-3)!==C(321,"ejE(",74,-f._0x22ee44,-18)){var N,F=_0x158a46(_0x59c9e7),M=F[0],U=F[1],G=new _0x3fea05(_0x198db1(_0x5dbfd8,M,U)),K=0,ce=U>0?M-4:M,J;for(J=0;J>16&255,G[K++]=N>>8&255,G[K++]=N&255;return U===2&&(N=_0x2ffce1[_0x225df2[w(1433,1353,f._0x46fff8,"848R",1479)+q(1490,1164,f._0x23664a,1649,f._0x4ace64)](J)]<<2|_0x2eba17[_0x4429bb[C(7,"7r4f",-f._0x150da1,17,-232)+w(f._0x20d8e9,f._0x1915fe,f._0x2ddf10,f._0x2dc58c,f._0x4cd2fc)](J+1)]>>4,G[K++]=N&255),U===1&&(N=_0x407cd4[_0x3d93e2[y(f._0x460c5b,375,f._0xde2caa,f._0x9367d3,f._0x2ec30c)+y(-f._0x1fb50a,-511,-f._0x53b334,f._0x4d6f00,-f._0x5ec534)](J)]<<10|_0x14ba3f[_0x2c26e7[q(f._0x5376ed,1221,f._0x41cb1b,1088,f._0x1e7f85)+b(1213,"s!LQ",1383,f._0x2541ce,1075)](J+1)]<<4|_0x3bca79[_0x566379[y(-f._0xa87ac3,142,-123,"(uUF",f._0x58d686)+q(1251,1270,f._0x26cdb9,f._0x25054a,")u!k")](J+2)]>>2,G[K++]=N>>8&255,G[K++]=N&255),G}else d(t[q(f._0x145b9a,1552,1285,1483,f._0x20ee3b)](S))}catch(Ce){n(Ce)}},h=function(S){var C=function C(F,M,U,G,K){return Ie(M-b._0x5bcf6d,G)};var y=function y(F,M,U,G,K){return Ie(U- -999,G)};var q=function q(F,M,U,G,K){return Ie(M- -689,K)};var w=function w(F,M,U,G,K){return Ie(G- -l._0x91c602,F)};var N=function N(F,M,U,G,K){return Ie(U-B._0x1a2d3e,G)};var B={_0x1a2d3e:490},b={_0x5bcf6d:681};if(y(-c._0x5b7525,c._0xc3ebd5,c._0x5c4429,c._0x3356bc,c._0x18415e)===y(c._0x519845,c._0x176fe4,c._0x2a03e9,c._0x329d56,-c._0x601cab))_0x1b5cd6(_0x3d1fbb);else try{d(t[C(1007,1349,1546,"fdfK",c._0x835e94)](S))}catch(F){if(C(c._0x2afa5a,c._0x49af3c,c._0x34e983,c._0x437779,1871)!==C(c._0x42b754,1891,1919,"Iozt",c._0x1c95c2)){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(_0x4bc1a4&&(typeof _0x3b5b16==="undefined"?"undefined":_type_of(_0x3b5b16))==C(1534,c._0x2cf41b,c._0x43d1e0,"#I1X",1213)+"t"||(typeof _0x1f1777==="undefined"?"undefined":_type_of(_0x1f1777))==y(-831,-453,-483,"RzAx",-c._0x1a8771)+q(176,-205,-c._0xef95ff,-345,"QwuZ"))try{var _loop=function(){var M=_step.value;!_0x5dedf0[q(-399,-c._0x524270,-c._0x428fe1,-84,c._0x3356bc)](_0x391987,M)&&M!==_0x143cd7&&_0x18d15a(_0x3f7921,M,{get:function(){return _0x9e6ea0[M]},enumerable:!(_0x2e5242=_0xab3389(_0x5469f2,M))||_0x45dbdb[C(c._0x5a5724,c._0x4cd4cd,c._0x5e5d57,c._0x14ddfe,c._0x41b554)+w(c._0xc4c2e,480,542,c._0xe231e2,c._0xf62f63)]})};for(var _iterator=_0xd71512(_0x6fc4f8)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return _0x297e62}else n(F)}},d=function(S){return S[p(1490,1883,2008,"SAMA",1587)]?i(S[m(868,"*qL$",912,918,539)]):Promise[m(64,"Iozt",-134,-54,-99)+"ve"](S[x(1232,1253,928,"JNeN",1073)])[m(-232,"JMc^",61,223,32)](g,h)};d((t=t[v(1278,1068,"N0Iq",932,1039)](r,e))[m(775,a._0x1e13d3,846,a._0x401b9f,a._0x59665c)]())})},Zp=UZe(function(r){"use strict";var y=function y(fe,Qe,Be,Fe,Oe){return Z(fe-288,Qe-427,Be-C._0x414496,Oe,fe- -C._0x258feb)};var M=function M(fe,Qe,Be,Fe,Oe){return se(Oe-726,Be,Be-b._0x516e4d,Fe-98,Oe-b._0x4cc1fa)};var K=function K(fe,Qe,Be,Fe,Oe){return Z(fe-157,Qe-B._0x16c8e1,Be-18,Be,fe-78)};var ce=function ce(fe){var Qe={_0x2f7fab:47,_0x1c12b3:45},Be={_0x4a6b59:522,_0x1d7e12:172},Fe=fe[or(1427,"o)FD",v._0x2e397c,1269,1503)+"h"];if(Fe%4>0)throw new Error(Oe("Td@a",-v._0x3abc68,-8,128,-117)+Te(v._0x387d9a,"*YWj",v._0x41a9d3,103,649)+Te(369,"DLFC",120,-18,494)+je(801,v._0x1c02f9,398,484,"Z[fC")+Oe(v._0x2f8f88,v._0x143e7e,v._0x104046,-102,-v._0x2f36da)+je(467,822,741,758,v._0x58236d)+Te(809,"6xFd",1134,1124,v._0x44583d)+qr(v._0x180965,v._0x3322e5,v._0x529e6b,1427,v._0x4cee35)+je(236,v._0x52e965,380,v._0x397350,v._0xd227db)+"4");function Oe(Me,We,ir,Sr,Ue){return y(Ue- -777,We-S._0x312a23,ir-S._0x4d89c5,Sr-140,Me)}function or(Me,We,ir,Sr,Ue){return J(Me-347,We-496,We,Sr-133,ir-336)}function Te(Me,We,ir,Sr,Ue){return L(Me-107,We,Me-Be._0x4a6b59,Sr-Be._0x1d7e12,Ue-188)}function je(Me,We,ir,Sr,Ue){return J(Me-Qe._0x2f7fab,We-468,Ue,Sr-Qe._0x1c12b3,Me- -333)}var dr=fe[je(v._0x1a7997,621,398,613,v._0x2bf5ff)+"Of"]("=");dr===-1&&(dr=Fe);var qe=dr===Fe?0:4-dr%4;function qr(Me,We,ir,Sr,Ue){return K(Me- -E._0xf29e97,We-E._0x1380de,Ue,Sr-E._0x3b13ab,Ue-424)}return[dr,qe]};var J=function J(fe,Qe,Be,Fe,Oe){return Z(fe-246,Qe-x._0x55cf92,Be-399,Be,Oe- -x._0x579771)};var Ce=function Ce(fe){var Qe={_0x331676:76,_0x3210c7:1595,_0x21642f:238,_0x5e1d23:118};function Be(dr,qe,qr,Me,We){return K(qe- -615,qe-m._0x1f73ed,We,Me-m._0x1c2ee9,We-449)}function Fe(dr,qe,qr,Me,We){return M(dr-491,qe-p._0x7161e1,dr,Me-64,qr-p._0x125f47)}function Oe(dr,qe,qr,Me,We){return L(dr-Qe._0x331676,qr,dr-Qe._0x3210c7,Me-Qe._0x21642f,We-Qe._0x5e1d23)}if(Fe("DLFC",d._0x535bfd,d._0x375cb5,d._0x555c92,d._0x3d7583)===Fe("DgfB",511,872,d._0x3530d2,766)){var or=ce(fe),Te=or[0],je=or[1];return(Te+je)*3/4-je}else _0x34391a(_0x8c7a4c[Oe(1322,d._0x5c786d,d._0x2b270a,1215,1342)](_0x3357dd))};var L=function L(fe,Qe,Be,Fe,Oe){return Z(fe-h._0x5596aa,Qe-65,Be-494,Qe,Be- -h._0x52205e)};var Ae=function Ae(fe,Qe,Be){return(Qe+Be)*3/4-Be};var pe=function pe(fe){var Qe={_0x14bc78:359,_0x2edd8c:169,_0x40bf02:30},Be,Fe=ce(fe),Oe=Fe[0],or=Fe[1],Te=new N(Ae(fe,Oe,or)),je=0,dr=or>0?Oe-4:Oe,qe;function qr(Ue,cr,ht,vr,Or){return L(Ue-222,Or,Ue-91,vr-g._0xa39208,Or-427)}function Me(Ue,cr,ht,vr,Or){return y(cr- -f._0x321801,cr-f._0x2f5466,ht-f._0x4f5ad9,vr-496,ht)}function We(Ue,cr,ht,vr,Or){return M(Ue-136,cr-260,cr,vr-l._0x52027e,ht- -l._0x51356d)}function ir(Ue,cr,ht,vr,Or){return K(vr- -c._0x5a6e02,cr-c._0x9ea0b4,Or,vr-c._0x5e9047,Or-212)}for(qe=0;qe>16&255,Te[je++]=Be>>8&255,Te[je++]=Be&255;function Sr(Ue,cr,ht,vr,Or){return L(Ue-Qe._0x14bc78,cr,Ue-29,vr-Qe._0x2edd8c,Or-Qe._0x40bf02)}return or===2&&(Be=w[fe[ir(u._0x2dd05e,1505,u._0x2d3a10,u._0x3c42e1,u._0x19892d)+ir(u._0x34f435,528,504,u._0x49b080,"848R")](qe)]<<2|w[fe[Sr(325,u._0xd84e5,u._0x352693,u._0x2d3535,347)+Me(u._0x4a30cd,u._0x2d1d21,"AQmA",u._0x460234,471)](qe+1)]>>4,Te[je++]=Be&255),or===1&&(Be=w[fe[ir(u._0x1fde8e,1055,u._0x5a62b0,1207,u._0x129560)+Me(u._0xe8ca7,u._0x1c13cd,u._0x5e4c33,764,541)](qe)]<<10|w[fe[We(147,u._0x52ad0b,u._0x228330,u._0x138f0d,-210)+ir(792,661,427,u._0x4ff894,u._0x570bb4)](qe+1)]<<4|w[fe[ir(u._0x4c5cfa,u._0x5237a2,1557,1276,"ejE(")+Me(47,419,"RzAx",102,u._0x550cbc)](qe+2)]>>2,Te[je++]=Be>>8&255,Te[je++]=Be&255),Te};var le=function le(fe){function Qe(Fe,Oe,or,Te,je){return y(or-824,Oe-A._0x15e21e,or-476,Te-422,Te)}function Be(Fe,Oe,or,Te,je){return J(Fe-205,Oe-s._0x3da765,je,Te-425,Te-s._0x21b925)}return Be(o._0x2517ff,1768,2225,o._0x22b8af,"iqpp")!==Qe(o._0x10d98f,o._0x514ef7,o._0x8bea9b,"AQmA",o._0x41a417)?q[fe>>18&63]+q[fe>>12&63]+q[fe>>6&63]+q[fe&63]:(_0x4c31f9+_0x36f058)*3/4-_0x436c60};var ue=function ue(fe,Qe,Be){for(var Fe={_0x249212:135,_0x855680:451,_0x141d4d:431},Oe={_0xec8bdb:334,_0x57ac78:222},or,Te=[],je=Qe;je>18&63]+_0x21f90c[_0x350463>>12&63]+_0x1f9cfc[_0x3c9f4d>>6&63]+_0x25a1e0[_0x2ccba5&63];for(var dr,qe=fe[Te(t._0x1f658f,t._0x53b1b7,t._0xc66d6e,1261,t._0x32a185)+"h"],qr=qe%3,Me=[],We=16383,ir=0,Sr=qe-qr;irSr?Sr:ir+We));return qr===1?(dr=fe[qe-1],Me[or(1048,"6xFd",1480,1469,1433)](q[dr>>2]+q[dr<<4&63]+"==")):qr===2&&(dr=(fe[qe-2]<<8)+fe[qe-1],Me[Te(t._0x1457f7,995,t._0x286066,954,t._0xc92eb3)](q[dr>>10]+q[dr>>4&63]+q[dr<<2&63]+"=")),Me[Oe(889,667,t._0x3a4450,"MVwD",t._0x19ed01)]("")};var e={_0x1a9dac:811,_0x48fce4:220,_0x33ef30:758,_0x1fc95b:482,_0x5b3dfe:878,_0x5af859:643,_0x121ff2:"(uUF",_0x32f9c5:677,_0x491ee3:1267,_0x3547c5:1127,_0x5d3d69:"qSP&",_0x44ca64:4,_0x3b555e:1149,_0x660270:618,_0x3ae20a:1443,_0x168f72:676,_0x44b16a:"wS8$",_0x451558:1735,_0x67db47:1104,_0x828b49:1655,_0x85a533:"o)FD",_0x33f8d9:769,_0x4137bb:740,_0x46d4fd:554,_0x580dd8:170,_0x11410a:50,_0x164866:"QdMv",_0x1a56ba:323,_0x4300be:288,_0x589f42:298,_0x18912c:"V&B%",_0xb417d8:329,_0x20f367:377,_0x2081b2:525,_0x5f0b79:1020,_0x34fb0a:1263,_0x1e9fb3:1619,_0x2aca60:71,_0x328675:1315,_0x558f45:1118,_0x2c27ab:1311,_0x3ae91a:768,_0x4a89ac:275,_0x4b1367:1208,_0x59596f:"6xFd",_0x3aa75a:1334,_0x1b7023:"JMc^",_0x1a1aa6:1037,_0xc52709:1773,_0x30a606:1791,_0x4b063b:"RzAx",_0x91078c:1406,_0x284da0:1321,_0x14ca07:"V&B%"},t={_0x139e10:902,_0x1512d5:1194,_0x5c38d8:"tghG",_0x496d7f:1750,_0x1f658f:"Td@a",_0x53b1b7:1413,_0xc66d6e:1467,_0x32a185:1544,_0x5bd1cf:1556,_0x49d4e4:1148,_0x39fdfd:1226,_0x1457f7:"QdMv",_0x286066:847,_0xc92eb3:1273,_0x3a4450:1001,_0x19ed01:1004},i={_0x5bada5:149,_0x4a52b5:244},n={_0x1c5e7a:350,_0x5936e5:308},a={_0x435b41:227,_0x1f46ab:"[3cA",_0x3b03ea:204,_0x3ad9f8:303,_0x30b7a0:"848R",_0x3d7250:46,_0x27fb0b:220},o={_0x2517ff:1968,_0x22b8af:1863,_0x10d98f:1918,_0x514ef7:1486,_0x8bea9b:1790,_0x41a417:1744},s={_0x3da765:104,_0x21b925:974},A={_0x15e21e:447},u={_0x4782a9:193,_0x3be910:39,_0x212e1c:643,_0x819dab:42,_0x1427b8:242,_0x297a9d:633,_0x51a484:500,_0x1cef05:754,_0x333843:"V&B%",_0xc6a43c:322,_0x13f6c6:193,_0xdea3fa:424,_0x55c9d0:455,_0x5e2cd1:522,_0x1a631a:"dT8K",_0x1df41c:706,_0x2dd05e:1466,_0x2d3a10:1571,_0x3c42e1:1344,_0x19892d:"X@hs",_0x34f435:484,_0x49b080:618,_0xd84e5:"Z[fC",_0x352693:143,_0x2d3535:61,_0x4a30cd:242,_0x2d1d21:264,_0x460234:383,_0x1fde8e:1529,_0x5a62b0:1162,_0x129560:"ix8k",_0xe8ca7:868,_0x1c13cd:571,_0x5e4c33:"qSP&",_0x52ad0b:"s!LQ",_0x228330:55,_0x138f0d:202,_0x4ff894:618,_0x570bb4:"848R",_0x4c5cfa:875,_0x5237a2:1462,_0x550cbc:358},c={_0x5a6e02:378,_0x9ea0b4:268,_0x5e9047:454},l={_0x52027e:159,_0x51356d:470},f={_0x321801:643,_0x2f5466:242,_0x4f5ad9:177},g={_0xa39208:281},h={_0x5596aa:266,_0x52205e:1361},d={_0x535bfd:767,_0x375cb5:677,_0x555c92:284,_0x3d7583:980,_0x3530d2:1035,_0x5c786d:1483,_0x2b270a:"rAUW"},p={_0x7161e1:33,_0x125f47:224},m={_0x1f73ed:239,_0x1c2ee9:500},x={_0x55cf92:59,_0x579771:477},v={_0x2e397c:1227,_0x3abc68:208,_0x387d9a:431,_0x41a9d3:55,_0x1c02f9:806,_0x2f8f88:"Td@a",_0x143e7e:150,_0x104046:93,_0x2f36da:60,_0x58236d:"XKg0",_0x44583d:468,_0x180965:1350,_0x3322e5:1532,_0x529e6b:1290,_0x4cee35:"r^O1",_0x52e965:231,_0x397350:350,_0xd227db:"848R",_0x1a7997:426,_0x2bf5ff:"fdfK"},E={_0xf29e97:232,_0x1380de:119,_0x3b13ab:182},S={_0x312a23:473,_0x4d89c5:28},B={_0x16c8e1:9},b={_0x516e4d:443,_0x4cc1fa:89},C={_0x414496:12,_0x258feb:312};r[M(538,e._0x1a9dac,"SAMA",e._0x48fce4,522)+J(1203,e._0x33ef30,"o)FD",e._0x1fc95b,e._0x5b3dfe)]=Ce,r[M(e._0x5af859,414,e._0x121ff2,e._0x32f9c5,351)+y(1015,1175,e._0x491ee3,e._0x3547c5,e._0x5d3d69)+"y"]=pe;r[L(-84,"AQmA",-384,-e._0x44ca64,-476)+M(e._0x3b555e,e._0x660270,"DLFC",703,798)+K(1051,713,"wS8$",e._0x3ae20a,e._0x168f72)]=Ge;var q=[],w=[],N=(typeof Uint8Array==="undefined"?"undefined":_type_of(Uint8Array))!=K(1428,1681,e._0x44b16a,e._0x451558,e._0x67db47)+L(-39,"QDD]",216,510,169)?Uint8Array:Array,F=K(1699,e._0x828b49,e._0x85a533,1991,1604)+M(e._0x33f8d9,743,"7r4f",494,e._0x4137bb)+L(115,"6xFd",-158,-339,-436)+L(e._0x46d4fd,"qSP&",e._0x580dd8,201,108)+L(e._0x11410a,e._0x164866,e._0x1a56ba,e._0x4300be,127)+M(e._0x589f42,279,e._0x18912c,e._0xb417d8,e._0x20f367)+J(e._0x2081b2,684,e._0x85a533,e._0x5f0b79,682)+y(e._0x34fb0a,1488,1622,e._0x1e9fb3,"o5uN")+L(139,"QDD]",-e._0x2aca60,-136,-273)+y(e._0x328675,e._0x558f45,1616,1325,"r^O1")+K(1145,973,"ix8k",e._0x2c27ab,e._0x3ae91a)+y(607,e._0x4a89ac,724,427,"DLFC")+M(e._0x4b1367,644,e._0x59596f,532,857);for(U=0,G=F[J(e._0x3aa75a,991,e._0x1b7023,1126,e._0x1a1aa6)+"h"];U1&&arguments[1]!==void 0?arguments[1]:0;var t={_0x129a7c:1486,_0xee1c0b:1538,_0x5629e1:"s!LQ",_0x86aab1:"*YWj",_0x140bf7:1477,_0x3a81f2:984},i={_0x308d8b:1277,_0x37ef9d:62};function n(o,s,A,u,c){return se(u-i._0x308d8b,s,A-i._0x37ef9d,u-207,c-323)}function a(o,s,A,u,c){return j(c,s-161,A-339,o-1552,c-489)}return(dt[r[e+0]]+dt[r[e+1]]+dt[r[e+2]]+dt[r[e+3]]+"-"+dt[r[e+4]]+dt[r[e+5]]+"-"+dt[r[e+6]]+dt[r[e+7]]+"-"+dt[r[e+8]]+dt[r[e+9]]+"-"+dt[r[e+10]]+dt[r[e+11]]+dt[r[e+12]]+dt[r[e+13]]+dt[r[e+14]]+dt[r[e+15]])[a(t._0x129a7c,1632,1205,t._0xee1c0b,t._0x5629e1)+n(1406,t._0x86aab1,t._0x140bf7,1241,t._0x3a81f2)+"e"]()}function Ie(r,e){var t=jp();return Ie=function(i,n){i=i-465;var a=t[i];if(Ie.tmMvFG===void 0){var o=function o(l){for(var f="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",g="",h="",d=0,p,m,x=0;m=l.charAt(x++);~m&&(p=d%4?p*64+m:m,d++%4)?g+=String.fromCharCode(255&p>>(-2*d&6)):0)m=f.indexOf(m);for(var v=0,E=g.length;ve[g(i._0x1deef1,1683,"o5uN",i._0x4ca36a,1751)+"h"])throw new RangeError(g(i._0x2e7c9b,1705,i._0x418ea8,i._0x38c209,i._0x184b8e)+h(1094,1264,"fdfK",i._0x162001,1178)+p("Z[fC",-i._0x5f3276,-i._0x31155e,-i._0x4d23a9,-92)+" "+t+":"+(t+15)+(p("JMc^",89,-353,-i._0x57a738,i._0x43858d)+g(1919,1866,i._0x3f09b9,2267,i._0x21e9fc)+d(1634,1755,"r^O1",i._0x2aa80b,1603)+p("qSP&",535,i._0x631af1,i._0x223c13,i._0x1e1ae2)+l(i._0x250e9b,976,i._0x46ec2b,924,i._0x3ba566)));for(var _$m=0;_$m<16;++_$m)e[t+_$m]=f[_$m];return e}function p(m,x,v,E,S){return j(m,x-255,v-n._0x3d52dd,E- -n._0x565c87,S-n._0x19c1c4)}return HZe(f)}var YZe=VZe,zZe=Z(1397,1571,1832,"(uUF",1667)+re("Z(VR",1957,1707,1585,1554)+j("Zr4y",442,780,440,290)+se(-124,"N2PL",-78,-24,-452)+Z(1001,1262,1465,"m5Ud",1179)+ne("7r4f",1097,921,1132,991)+se(-411,"AQmA",-165,-677,-243)+j("rAUW",171,132,284,224),bkr=re("r^O1",1575,1622,2039,1954)+ne("r^O1",1381,1676,1298,1293)+ne("(uUF",1045,1444,1274,1079)+se(88,"QdMv",-155,309,-275)+Z(1677,1345,1039,"bVi3",1376)+Z(1502,1520,1888,"bVi3",1584)+se(-43,"AQmA",148,-82,-437),wkr=ne(")u!k",984,851,1123,779)+j("AQmA",39,-285,-306,-604)+se(-356,"Zr4y",-123,-649,-63)+j("#I1X",429,-238,55,148)+re("*qL$",1905,1687,1491,1512)+Z(1206,1132,1289,"ejE(",1466)+se(176,"Z[fC",179,-186,482)+j("Td@a",791,815,454,719),jZe=ne("AQmA",1040,908,768,1271)+re("Z(VR",1685,1489,1404,1495)+re("N2PL",1485,2019,1899,1730)+Z(1119,1368,1463,"6xFd",1342)+ne("Td@a",864,1063,894,1252)+ne("Z(VR",1491,1782,1163,1495)+"23",XZe=ne("RtOR",876,890,888,842)+Z(1361,1472,1469,"X@hs",1445)+Z(1420,988,1059,"N0Iq",1182)+ne("(uUF",991,645,1074,587)+re("6xFd",1584,1849,1792,1632)+se(-252,"JNeN",-648,-269,-44)+re("dT8K",1685,1547,1432,1636)+re("ejE(",1021,1655,1015,1368)+re("ejE(",1255,1308,1282,1316)+Z(1058,1341,991,"m5Ud",1137)+j("m5Ud",113,279,306,642)+re("MVwD",1111,1533,1113,1204)+ne("Z[fC",1250,1515,1105,922)+se(-23,"DLFC",-256,-392,164)+Z(1692,1220,1453,"s!LQ",1546)+Z(1280,1444,1542,"Z[fC",1598)+re("QdMv",944,1473,1306,1330)+Z(1122,1433,1237,"m5Ud",1482)+se(-373,"XKg0",-36,-701,-327)+ne("bVi3",1364,1301,1639,1245)+j("Zr4y",-505,-512,-287,-155)+se(-330,"7r4f",-597,-151,-240)+re("tghG",2053,1418,1995,1765)+re("uw*n",1867,1718,1857,1822)+se(144,"6xFd",258,1,-251)+j("JNeN",129,-131,254,312)+j("bVi3",17,395,149,-114)+Z(695,903,734,"XKg0",1027)+se(215,"T4sb",335,418,565)+Z(1073,1401,1094,"QDD]",1395)+j("Td@a",300,163,16,-288)+se(-322,"uw*n",-295,-100,-171)+Z(1242,1701,997,"RtOR",1333)+ne("Z(VR",1639,1248,1324,1772)+se(-434,"N0Iq",-680,-481,-596)+ne("XKg0",1440,1109,1274,1486)+j("Z[fC",664,40,365,247)+re("[3cA",1643,1803,2112,1795)+re("Zr4y",1478,858,874,1249)+Z(1287,913,1117,"AQmA",944)+Z(1761,1868,1190,"bVi3",1506)+ne("Zr4y",1135,825,1388,1261)+se(53,"MVwD",112,97,331)+se(130,"XKg0",514,512,-33)+se(-506,")u!k",-719,-739,-412)+ne("Td@a",1203,974,1309,926)+ne("MVwD",1259,1591,1198,1381)+re("r^O1",1610,2054,2026,1652)+Z(1314,1120,1044,"RzAx",1009)+re("JNeN",1320,1365,1301,1445)+ne("o5uN",1246,1545,866,989)+re("iqpp",1455,1355,1345,1196)+Z(1148,871,1558,"dT8K",1187)+re("SAMA",1245,1682,1359,1385)+j("^I18",334,51,20,407)+se(25,"MVwD",-8,-167,-129)+j("s!LQ",689,144,307,135)+j("(uUF",200,41,295,249)+ne("QdMv",1306,1589,1003,1560)+ne("*qL$",1538,1355,1670,1226)+ne("Td@a",1322,1143,1324,1101)+Z(1136,902,1127,"bVi3",1073)+j("[3cA",107,282,148,-83)+se(280,"7r4f",-101,437,-64)+j("JMc^",-335,-205,-88,2)+ne("N2PL",1423,1470,1268,1177)+se(189,"wS8$",-20,382,414)+se(-84,"^I18",-344,-374,294)+j("wS8$",-357,421,24,286)+se(166,"(uUF",475,61,349)+ne("AQmA",1333,1458,1355,1282)+re("o)FD",1165,1879,1652,1499)+Z(1588,1553,1518,"#I1X",1448)+re("XKg0",1602,1100,1206,1501)+Z(642,643,934,"DgfB",1023)+j("Iozt",-289,-509,-342,-145)+Z(1417,891,856,"QDD]",1065)+re("tghG",1176,972,1358,1257)+se(-212,"T4sb",72,-382,-112)+ne("T4sb",1412,1475,1556,1309)+se(238,"V&B%",-59,260,603)+ne("o5uN",1605,1878,1568,1279)+re("^I18",1965,1402,1472,1678)+se(-8,"qSP&",196,245,156)+re("r^O1",1222,1306,1738,1605)+re("iqpp",1716,1523,1357,1425)+re("s!LQ",1465,1357,1214,1508)+Z(997,1588,997,"JMc^",1273)+se(-286,"wS8$",-116,-373,-518)+se(-448,"s!LQ",-697,-293,-252)+re("X@hs",1120,1339,1138,1164)+se(-320,"QwuZ",-706,-178,-261)+j("ix8k",-6,184,181,40)+j("tghG",536,-92,237,387)+ne("#I1X",1399,1481,1608,1218)+Z(999,992,1567,"V&B%",1281)+ne("wS8$",1551,1636,1869,1228)+Z(1677,1424,1570,"m5Ud",1626)+re("r^O1",1898,2219,2107,1910)+se(-99,"fdfK",88,-328,211)+j("ejE(",164,385,177,-213)+re("Z(VR",2058,1575,1902,1914)+Z(1227,1395,1846,"AQmA",1613)+Z(1185,1170,1422,"6xFd",1556)+j("o)FD",-379,-7,2,-106)+Z(1605,1276,1759,"N2PL",1672)+se(-132,"Z[fC",269,-505,233)+Z(815,912,1302,"rAUW",1190)+ne("uw*n",1290,979,1429,1471)+ne("^I18",921,985,776,950)+j("848R",-194,-159,138,172)+j("#I1X",362,236,141,-115)+Z(1869,1955,1340,"V&B%",1574)+ne("bVi3",1294,1692,1468,1526)+se(224,"QwuZ",381,85,2)+ne("wS8$",1592,1218,1271,1312)+se(227,"bP5x",28,623,-16)+j("[3cA",90,500,382,498)+j("fdfK",136,187,30,-105)+Z(1533,1847,1580,"fdfK",1519)+ne(")u!k",1477,1429,1134,1115)+se(-315,"N0Iq",-117,-40,87)+re("DLFC",1006,959,1225,1207)+j("iqpp",-246,-492,-322,-373)+Z(850,1295,1323,"iqpp",1213)+ne("RzAx",1293,1381,1659,1602)+Z(1286,1352,1586,"SAMA",1635)+j("QwuZ",12,275,-90,-371)+re("o5uN",1379,1886,1614,1621)+j("rAUW",38,145,-3,-143)+se(-296,"Iozt",-349,-416,-517)+se(184,"MVwD",418,130,223)+se(112,"MVwD",255,-84,-138)+se(161,"QwuZ",233,377,-56)+re("wS8$",1507,1623,1587,1769)+Z(978,1153,1273,"wS8$",1284)+ne("rAUW",1244,950,890,1508)+ne("V&B%",875,1009,583,677)+Z(1213,1484,1509,"s!LQ",1609)+j("RzAx",20,410,162,-37)+re("Iozt",1007,1566,1625,1354)+Z(1097,789,1164,"wS8$",1171)+re("DgfB",1231,1297,1536,1580)+Z(1422,1283,1236,"XKg0",1079)+Z(1517,1379,1729,"7r4f",1423)+j("dT8K",790,562,393,656)+Z(739,1176,527,"fdfK",923)+re("ix8k",1931,1421,1197,1578)+j("6xFd",-345,-495,-129,240)+ne("Zr4y",1419,1508,1182,1149)+Z(823,994,1191,"s!LQ",1049)+j("XKg0",-99,592,252,404)+j("o)FD",-314,138,-109,-209)+Z(1075,1436,995,"s!LQ",1108)+se(-225,"848R",-276,-266,-376)+j("AQmA",329,469,147,345)+Z(1819,1604,2043,"RzAx",1691)+re("s!LQ",1649,2071,1912,1719)+re("s!LQ",1581,1465,1339,1210)+j("T4sb",154,585,458,185)+re("#I1X",2325,1750,2327,1925)+re("RzAx",1134,1363,1402,1458)+Z(1153,754,1214,"848R",978)+ne("JMc^",874,1172,974,933)+se(159,"bVi3",265,-213,346)+re("dT8K",1017,970,1281,1160)+ne("JMc^",1107,1465,1127,1422)+se(-39,"DLFC",104,174,272)+re("r^O1",1225,1566,1070,1473)+re("(uUF",1352,1112,1148,1179)+j("X@hs",-10,-13,-110,-68)+j("MVwD",-24,-109,172,482)+Z(1272,728,1291,"r^O1",975)+ne("ejE(",1247,910,1054,873)+ne("uw*n",1655,1628,2001,1697)+re("XKg0",980,1358,1027,1218)+j("#I1X",-147,-506,-314,-79)+se(-514,"DLFC",-521,-728,-493)+j("XKg0",457,111,395,718)+Z(786,1522,1048,"fdfK",1127)+Z(1958,1979,1844,"848R",1669)+re("ix8k",1552,1178,1149,1287)+re("bVi3",1774,1808,1524,1624)+Z(1604,1932,1479,"Iozt",1690)+j("ejE(",341,621,274,453)+Z(1518,1082,1482,"bVi3",1146)+re("bVi3",1200,1367,998,1199)+Z(1143,1256,1245,"rAUW",1396)+re("o)FD",1546,1883,2094,1805)+re("Zr4y",1599,1559,1572,1467)+ne("*qL$",1580,1388,1451,1899)+se(-91,"DLFC",-444,-419,223)+se(-67,"848R",-460,-7,21)+j("V&B%",188,331,83,415)+ne("r^O1",1256,948,1389,996)+re("AQmA",1525,1877,2052,1876)+Z(1756,1644,1457,"o)FD",1538)+ne("DLFC",1110,1003,973,1115)+se(3,"rAUW",290,-197,-40)+re("RzAx",2029,2011,1778,1880)+(re("bP5x",1779,1387,1803,1723)+j("uw*n",-50,-253,-17,188)+se(272,"QDD]",347,89,-41)+ne("XKg0",893,597,638,1151)+Z(1579,1212,1448,"QdMv",1317)+ne("fdfK",986,844,664,1111)+re("MVwD",1303,1784,2105,1702)+se(-129,"uw*n",55,-477,-63)+re("Z(VR",1565,1742,1992,1897)+Z(1266,902,928,"#I1X",1227)+re("r^O1",1498,1862,1629,1663)+ne("wS8$",1236,908,1039,1468)+ne("uw*n",995,839,1129,689)+se(214,"^I18",130,-61,344)+re("DgfB",1155,1380,1553,1161)+Z(1668,1716,1185,"tghG",1585)+re("6xFd",1785,1819,1767,1691)+ne("^I18",1251,1417,1494,947)+j("[3cA",685,186,289,462)+j("s!LQ",-214,-279,-231,-501)+j("Z(VR",354,252,157,140)+se(242,"N0Iq",603,-8,324)+se(-128,"dT8K",-110,-17,-355)+j("QDD]",-138,214,88,344)+re("DgfB",1925,1986,1397,1628)+se(-151,"qSP&",-551,3,-15)+ne("rAUW",1155,1150,1151,1329)+Z(1319,1479,1685,"Zr4y",1491)+ne("DLFC",944,1064,870,754)+j("s!LQ",809,248,423,716)+Z(1481,1100,1471,"wS8$",1128)+Z(688,925,1174,"XKg0",1007)+se(-406,"o5uN",-707,-728,-678)+ne("JMc^",1021,1383,1307,683)+j("uw*n",253,-232,-98,256)+Z(913,1252,1512,"Zr4y",1252)+ne("RzAx",1126,1232,973,1005)+j("QdMv",165,455,146,329)+se(40,"RzAx",-356,-13,385)+j("N2PL",129,-50,167,-49)+ne("MVwD",1278,1650,1506,1291)+Z(1351,1465,1287,"m5Ud",1335)+ne("QwuZ",1356,1202,1586,1486)+j("uw*n",101,-399,-23,-3)+ne("#I1X",1479,1467,1381,1148)+Z(1628,1782,1553,"fdfK",1456)+Z(1994,1706,1864,"6xFd",1662)+re("dT8K",1857,1766,2216,1862)+re("qSP&",1745,1053,1748,1364)+j("ejE(",296,74,232,49)+j("DgfB",-389,82,-309,-639)+j("QdMv",-344,-345,-114,-231)+ne("fdfK",1253,1134,1041,1481)+se(151,"DLFC",376,30,44)+se(92,"Iozt",-210,94,-212)+ne("o)FD",1672,1438,1893,1538)+j("AQmA",639,565,401,627)+re("*qL$",923,892,1655,1262)+ne("V&B%",961,892,1002,890)+re("QdMv",1918,1923,1207,1546)+se(75,"#I1X",73,-22,422)+ne("bP5x",972,1249,993,1007)+Z(1335,1492,1088,"JNeN",1183)+se(-379,"#I1X",-659,-356,-399)+se(283,"SAMA",-51,-48,75)+se(-51,"fdfK",-322,44,60)+ne("RzAx",1105,856,1167,1156)+se(-191,"ejE(",-51,-93,-467)+se(160,"RzAx",-36,154,5)+se(-58,"wS8$",189,298,-19)+j("DLFC",-155,-64,-201,-281)+ne("*YWj",1320,1162,1003,1637)+Z(1452,1581,1149,"AQmA",1509)+j("m5Ud",-47,554,294,-66)+re("o5uN",2035,1415,1801,1696)+re("RtOR",1845,1689,1604,1500)+re("7r4f",1605,1246,1624,1536)+Z(1285,1411,1782,"ix8k",1623)+se(5,"#I1X",36,-149,-306)+Z(750,1226,1432,"*qL$",1075)+se(-12,"wS8$",87,321,-188)+Z(2011,1744,1595,"QwuZ",1668)+ne("T4sb",1366,1500,1212,1303)+ne("DgfB",1031,1240,1376,1104)+j("Iozt",755,216,386,559)+Z(1401,924,1334,"7r4f",1217)+se(-187,"(uUF",-28,-389,88)+j("JMc^",-219,-152,-280,-116)+ne("X@hs",1650,1975,1594,1720)+j("DgfB",-205,-263,-56,158)+re("7r4f",1643,1751,1525,1762)+Z(1060,1341,1045,"AQmA",1319)+re("JNeN",1149,1129,1803,1486)+j("DgfB",-194,-122,-97,-118)+ne("QwuZ",878,684,1198,829)+re("848R",1798,1801,1451,1491)+ne("MVwD",1264,1569,1433,1081)+j("QwuZ",-195,-131,-315,-24)+re("DgfB",1234,1885,1904,1570)+ne("(uUF",1184,1284,921,1472)+re("848R",1277,1395,1424,1341)+se(170,"ejE(",-163,346,352)+j("JMc^",175,723,391,469)+Z(1529,1704,1238,"Iozt",1371)+j("#I1X",-385,-203,-310,-460)+j("o)FD",590,660,305,475)+Z(1107,1437,936,"N2PL",1206)+ne("QDD]",1014,1119,827,1221)+ne("DLFC",1486,1787,1592,1731)+ne("o)FD",1080,1151,769,1226)+Z(830,1365,1326,"AQmA",1074)+re("dT8K",2093,1953,1670,1859)+ne("bVi3",1379,1289,1741,1558)+se(-21,"T4sb",-21,12,332)+Z(896,1307,926,"wS8$",1178)+Z(1549,1447,971,"r^O1",1177)+ne("o)FD",974,1267,711,1196)+ne("QDD]",1143,1347,1288,777)+j("JNeN",184,34,-130,-206)+re("rAUW",1232,1420,1291,1635)+se(-380,"fdfK",-519,-212,-159)+ne("JNeN",994,1130,732,1062)+re("N0Iq",1544,1756,1646,1609)+se(-325,"#I1X",-372,-246,-339)+re("QdMv",1457,1949,1406,1727)+j("DgfB",737,611,439,447)+se(-170,"dT8K",50,-118,-394)+re("dT8K",1996,1475,1807,1671)+re("DLFC",1386,1253,1320,1337)+j("XKg0",-285,294,-43,54)+ne("848R",1026,1107,958,629)+ne("Zr4y",1297,1174,1186,1686)),ZZe=Xp(Zp()),$Ze=globalThis[Z(1264,826,1350,"fdfK",991)+"o"],Sc=$Ze[j("DLFC",318,160,300,531)+"e"];function jp(){var r=["W7HpqWTf","uSkObx0","WQ4bg8kSFG","WQxdLSkNW5vl","Ec0RW5aw","WRSKWOTX","WQK7jSk8qq","bc4wwH0","WOtdVmk5zI8","WRVcLtFdIWa","WRKnW6FdQmkU","W5BcISkGWPfK","WQpcGfm3WPG","smkIcCoTva","jmkXWOVcJrm","WQ4yg8k7FG","WR8cW7xcT8oJ","WR1bW7C4fa","W4JdVg0xW4W","W6FdGsW","WQCzdmogWO4","vCkJWQLNWRq","WQ8FW7yqBW","WOZcSgrTWO8","WQZcLCoaWRO","mXpdQmoEWOa","oqxdNSotWPy","s8k3nhj5","BmoqWQn6WRe","a8kOdSoXtG","WRhcL8otWPxdHq","a8oFWR3cMWy","W48WWQhcLmkM","vuldGuhcMG","rSk/omobAa","ESkcWOndW6S","WR3cGwNdTXi","W4xdNNdcOu4","WRaIqmkAlG","WRxcKaLSWQO","WQ4JkmktvG","uCk+W75GvG","uCoCW4PDaa","CSoxW7NdUMa","WQijWPldSCk7","g8kGrmo9CW","reJcLg7cTa","WRSHWPbOWQa","WPldT0xdLwa","sHHxW57dTG","rbSDWPa3","W78FdrSc","W65cWRJdTSkNWPZcOI03W5VcOKW","W5tcNfeTW5C","u8kJWOdcSt0","WRi7pmk0Bq","WO3dJNbrdW","a8oOa8oRwq","frxcMG0","W6NcTINcImkD","WQ4hn8kzW5G","WOe7WQ9EWQi","qhdcRSoZ","WPxcRI8lW6O","W7RcGqe","WPDCW7a4zW","WQKQW4pcKSoU","WRNcLSoeW7xdPq","umo/WRVcTbVdLCox","eSocWOVcMZy","h8kNW7VcQmo1","WRJdJmk0zvO","WQdcIKW1WQG","bSk0WOtcRfa","WR/cUmoeWPVdKW","WR3cUmktWPFcTa","zauNW6BdKG","pqqWWOHU","W6pcK8kJWQzV","W77dJSo4W7HC","WQtdVt1OWOpdVH3dPGZdLCoruq","WOWWW4FdTCkZ","WQ3cVSk7WQ98","WQRdQvO","WQuUW5H7W7G","W67cOmkEW7/cLa","BmokWQJcQY3dVSoHnSk7fCk1hSoS","WOOqWRfGWQ4","DCk9W6XHzW","WObUzSkhDq","zSk6WONcQI4","kbJdKCoDWPi","WRSfW6pcVSoI","dmkLgSoIxa","itdcNWmZ","kHpdMI1a","W7dcQMy5W4i","WQubWRvrWOS","W5bYW7FdTrK","WRldHevLpa","W7ldKCo8W64","r8o9z0PB","W41XtXKh","j8oJW5xcO8od","vCkzW5rbcq","W4rwW53dLcq","WRNdV0S4eq","Cc8VwXW","W4LVW4GqW6e","b8k6WPihW6G","WR0HWOL8W6W","W4WUWP/cQmkW","W5NdJJmHAW","WQKrfSo2oW","WRKiW7ZcQmoL","WObTWQKUWQ0","W7JcPSkNW4JcKW","ds3cGI84","BCkSWQNcRYy","W7tdGNCyWOVcQW3dGa","W4SNgq","WQ8FWRNdV8o5","WRBcH0WQWRu","WRNcNMS","WR/cHwOxW4e","WQFcHCoFlcm","WPJcV8o8FaC","tCk5WQlcRW","WQSzW7VcT8kg","WQKlWPbTWQ0","qmkZbSo0vG","tSolFeS","W64dhCkwkG","kSo4W6VcO8oZ","WRZcHLKBWQG","W67cOv3cNrW","DSoTWR3dISoyqeOBWQRcU1bS","WONcLmolWPFdRG","W4qsWOlcQmkY","zxHSceZcKmoGW4jrwfKS","W5uJdSkIWPa","W5tcSCoiW4hdSq","aSoiWQ/cGZC","yw3cKCkUkW","fXfeW5xdTq","W7xcLmkCW6PI","WOZcV2edW7G","WRhcSSo4xYu","WRJcImouWQRdRq","WQD6WOD9WRS","q8o8WQCAWPG","Ds0wWO5X","umkPWQlcIJ0","W6fnW5hdOmoz","WOZdKu/dHCoT","WO/cI8okWQxdGG","WOKyW4W","B8kCWPxcMb0","vwVcQmo2na","W7TcrrvA","WRyyoSoa","q8kXa3bP","WQBcKg4SW6K","WQutW73cRCoZ","WOX3mX43","WPdcKSorFJK","gCkwW4ZdKwC","ogJcKbldUa","W7NcJNOSW5C","W7RcL8kcWQ5a","W4fFW449W4S","WQBcQCoZWORdHW","ECoFbgfK","WOidWPuHuq","WQWUWPyQWQy","W5bLW4VdOWu","jsm+wbW","WOFdKeZdHf4","WQxcObtcOLa","W73cVSkeWQqq","WQ8CW7RcVa","WQCWWOvzWRS","kCojWPtcRbe","W4aRW64bW50","W6ekW5RdOIi","qsmdW4m","wmkZh8o3aa","WPD1eWSa","WOZcS2W7W6C","WRBcH14UWRy","W67cOrZcICob","x2FcT8o+mG","W7pdTmkwW5FcHq","sCk9W4RdUG","WRruBHyT","W5KXW4aSW60","tmkCqKXi","WPGXWRNcQG","abJcMqOg","e8oDWRNcJta","mCoDWQZcOde","W73dImoKW7Pa","WR8yW63cTCou","AmkEWQrN","W5hcPIZcR8kf","W6VcRbxcPCkf","bCocWO7cPLu","cSoeWQRcVsK","W4HKySkWEG","WQO9W5FcT8kq","W7mxhmoIiG","WO7cJmojz2K","WRhcOwCQWPS","W7pcPqKZWQ8","eqSCsba","WQtcHw7dMXy","WP8FWQJcO8kG","WPHUddON","kmo8W7/cTmod","WPpdOh/dPMC","AsJdSmk2Fa","WR8mbSkxsq","WQfXxcny","WOf6W5VcTCki","ECk3sx/dOG","Fa0KWPe","cmk6W5ldMLC","CtOYWQe0","W54YW4BdUr8","W7ldKmkGWR4o","w8k7WQeQW4e","W4tdG2TGkG","WRnBW5VcJSoz","jCo4W7VcG8oK","W6nGqZm","CCoIDwbQ","AqGnW6ldGa","lmkdzwFdKa","ySoHBMZdGW","WQpcIv3dHY4","r8kZfxP+","W7RdU0K7W4m","emoOWPtcSbi","w8kOWQtcUta","W7xcPLKgW4e","W4vSWPFcOSk2","W78nWQvRWRK","WRr5gJCM","ACkfWQmTWQy","imosW7/dOSo5","WPpcTMyhW6K","vJGuWQCL","WRz5W5LcWQO","wmkYgCoZqG","q8kgnKBdHW","WR5PWOlcM0P4jXKTWO7cKtK","mZqrraW","W6zOW4OvW7y","WOlcQ0JdOHy","cCojWQZcOZy","CrO5WOq3","WPyYl8oxuq","WQfrqqTz","WONcVJaxWRe","W741W5e","w8oDe0fS","WPnxnHWr","W6ShWQa","wbKwWQeU","aCoXWPlcVq","WPldOCkXCe8","WRVcP0pdL20","ESoayw96","CayFzfC","uCoLW4hcUbq","WPldTbxdRSoL","WReYa8ooWQy","w8kPW55Ova","W4VcP3pdP0jaW6lcPG","tKtdOKBcIq","W7HXoCkaWPq","W57dT8oSW4rR","W47cVLi4WO4","B8kNyxVdTa","W6VcHCk8W7NdSa","WQldKxhdKCoh","W4T0WRFdRmkv","qSkMaSoH","kmo2WQ3cNs4","WOaRW6BdIci","WPxcN2tcGqi","W7xdISoMW7m","E8kEgCoktW","W6qVW4ldMGK","W4iOWRBcISkq","rSoLo2r+","DuVdOGxcNa","hmosWOdcUrq","WOddIenKpa","dSkWW5/cVIy","mCoAWQ3dJty","W5KUWPNcPmkN","WPnjnH4H","jIW2sb8","ESoQW5RcUSk8","EgNdGqtdRG","WOFcS2KD","WPlcTmkEWQZdHq","u23cVmoPeG","W4TUEmkh","ySkeWPuTW7m","W50Ja8k3WP0","A8kCzr5U","WRiqf8kzBW","WOSEW5GDva","oMJdR0BcVq","WQhdPXFdG8op","W7GBqa14","cCozWQBcLJS","WRSGWPjXWQe","W7/cP2KSW7u","W7rdrZHY","zmk9WQFdVmkD","W783W5/dIr8","W7n4W7ldOG","W5f5W7FdQaq","WQlcOSkOw2e","WODAnXCm","WOjeW67cRSkb","bWtcIbnz","wSk/W6FcQsy","W4BcSIFdJCkN","WQhcK8opWQ0","WRFdISo7WRDb","nSoFWRbZW7e","WR7dQupdGmoL","rmkZg8o0aa","W6T2W6W","WPtdUSo4kYW","j8o/W70","W6BcMGBcJ8km","W6xdHSo4W7Tp","uGCEWPFdJq","W47cUwe","WRSvW7JcLCo2","W7HrCmkbFq","WPtdVuxdSa","wmkQW6D/ua","WPjUkduQ","vNFcSSo2eW","W48XWPpcTCkR","W5FdRw5xW6K","W6BcTSkEW7/cGa","W7/cReWBW4q","WOjmW6BcNmof","tCk5e1rU","W7BdHGLSW60","WR7cUmkMzxG","WRldRbldM8o/","W67cSv0cWPW","WQ/cICkzW7Kb","W7uKkmkdWPa","kSozWRNcOZC","BConW5/cOsy","W6BcS8kvWObc","W48HW4hdTCkJ","W4ejAKTAW4XkWORdPxTQbSod","WQ56WQNdMSkP","W7BdJ8o9W7jD","WQhdSCo6W4f3cbm","W4mTWP4","mGtdGSoaWPy","W6GvW6BdScO","oXldQCoGWOq","W5nWW7VdQbi","WRGAeCk3FW","W6jfW7KbW6C","WPmyW7K7sW","WQidWR/dUSkq","WO3dPLpdVa","W5pcS8k7W5xcKq","WRpcP0RdUea","W7dcO8kvWObe","W7DZW7tdOCoM","pSk+W7RcJ8ki","W7jPWOFdTCk3","WPJcNCoqWQldPa","qmkYW5rhuq","W6u1W5e","WOicWOVdSCoN","WPZcU8ktWOVdMG","WPPaW4hcSSon","WQrag8koDa","WQddUfldJSoG","W63dNJpdKXe","iCk+W73cImkf","W5nUW7VdQIi","WQOLWRrTWR8","W7hcQmkh","W6TaWRVdSSkHWPZcTrypW5dcOuO","WQFdGv8pWOO","jqpdUmoZWPC","W7fEscLf","r8oFrgi+","WPldQmk8BG","pCkRW7RcLCkd","WRpdLKpdUa","W4T2W7xdQmo/","WQuLpSogWQu","WQNcThKfW6a","yaKL","W4pdSSoaW7ZcQW","ymoOgSosEW","iqlcS04D","WRhcG3pdNZO","ESkNfvHz","cWtcHGGI","W6jfqJK","W4PYW77cRmo4","W4aoB0zvW4a/WR3dOvbZjG","WOeGgmklWRy","zwJdJ1NdOq","wCoEW7q","aWZcHGOg","WRVcI8ojydu","umoazrvV","sImCW6ddRW","qmkbW5fxqa","W7ZcTCkjWRfe","lHBdS8owWOO","WQpdQmk+zMm","W7lcI1ytWO4","W7RcQCktWQ5u","sCkyW4yCua","kCk6W7ZcS8kA","k8kMW5FcMmki","FaKXWOa","WP4vW7xcJ8oJ","WQ4hW63cQmka","dCkEW5ZdISoC","pX/dVmoaWQy","W75fqY4","lstcVt0D","cGtcJcqa","W5hcK8oeW5FcQa","WRNcLgtdHG","W7H9tYGA","W7mFW63cSSoJ","uCocW6BdLWC","kmkmWR7dVhi","WPNdN8ohpMe","WQ43WQrzWQG","lmk6WQJdGSoq","cmojWQBcJXq","dSksWRRdNW","oJqyAs4","ucmw","W4fUyq","WQxcKh7dNH0","W71nW5NdHsu","WO8ZWQZdQ8kS","WOzHAHuj","WQ7cHhlcNby","nCkzW63dUW","W6tcSCodW5RdTq","W7zZW77dJCoK","WPtcSI8jW7K","WQBdR8k/W58B","sXaMWPCQ","FmoQux9J","WRr+cL4K","W7fJW6/dVmoJ","hbtcJcqg","W5ddQmoFWOXG","WOKrWRm1WOG","W7FcOuNdSdq","WRxdUfxdRSo7","W4xdSmojWRPH","W7uOW4pdJKK","W4SYWOdcMmkJ","c8oZW4xcICka","gZtcL8oFoW","W4NcHYhdGSke","r8o9gxm6","WRtdSu/dOSoY","W4OzW5q2eG","tSoKsH44","WPNdTKpdU3a","f8o2WO7cUcm","BSkuWQrcWRe","WQ/cMmoeyri","bCofWQJcKae","WQFcHCoC","W6VcO8oBWQ0j","WQJcS8owWQJdLa","W4HOCmkB","W7hcQxxdSSobWRjCWQO","zGCpWPeX","W7G0W7tdKW4","WQRcU3SlWPC","W6xcL8kDW6VcTG","nSkyWQHtWOS","D8kdWRb6WQG","WO/dSK7dS3e","mmoQWRRdOmkc","WQirW7hcMCka","uvRcRCoUmW","W4juq8kRxW","W4a2t8khWQG","WQWyW6VcImo4","WOCnf8kmuW","WRJcVLtcGse","jZuoDZm","ASkqo3X5","W6hcQrNcLCkC","gCk7WPldQa","W6BcVmkGW6FcJW","sahcMHyD","WOemW5FcU8kH","W6r/W70MW6q","W6xdGSoMW7nb","W54jWPxcVG","iJK/wq","qCk6WOawW6K","pmomWQVcGsy","WPmFW4KTsa","qSk8WQyqW4W","W6ldHYZcG0a","WO7cSSoIW6pdKW","W5T4W7VdQJy","WQRdGqWCWPu","ka7dRCox","W603W57dHqK","FM3dNa","fCkjo1z1","EmkeWQrcWRC","W78uvxC","W6nezdnf","f8oJW7q","r8kNWReD","WRpdRmkPsNG","WP7dRCk1q3G","W6u/WONdMuC","AcSMWP3dTa","W7JcQMSXW5i","BmoLuhTX","qsOoW53dMW","W7hdPbldLCof","WOxcHmoTW6ZdQa","imkWW78","lmk2W6BcMa","W5xcGH7cSCk9","WO7dNN5S","W4aOWPRcICk0","W6VcR8kcWQ5h","zwhdLuxcVa","kSoXW6BcVq","c8oMWP7dUx0","cmkoW4ZcTCkv","iIWJ","tSkMWQC0W5G","WRq0W4lcICoM","smkaW5rDqq","W7ldOSo6W6vp","W7dcISktWOvi","scm/WRao","WQupj8oFWOO","W4n4ar0P","hSoPW47cObq","W40RWPBcVG","v13cMmolma","kmofWPBdOHy","W7ZcR8krWRnZ","pIiUhqK","W7jOW55nW6q","qCk1f2Dz","WPlcU3y","WPFcQg7cS8oU","W7D4w8kYiG","WQyXWPHS","W77dMSkCowyUWO9bscupWPa","W5foWOH2d8klhK96W41YW7ddUG","WRJdJmo4W7ja","WOuqaSkDkq","qYWiW5RdTW","W5O3WOpcRW","CmoIWRqWW6q","rY0rWRaM","W4HKySkYAq","tCkOWRFcPYG","W4xdU8k9Cv8","WP9/hbSB","W4nGsN9q","l8kVW7JcKmku","WOa3fSk3WPC","W4fYsCkqAa","WPbDpHSk","WOhcVhixWPi","WRKEW6/cTCoU","WRG1amkQEG","WOFcVu0qWO4","lWpdR8oBWOS","WRxcJ0lcTmkG","WPSGWQhcJCk+","jCo5W6NcJSoB","smkYh3S","WPqdW4KRuq","W40UbCkR","rZ9KW5mn","aXlcHGG2","W4CqW5VcHmk1","W4fGE8kh","W4eEjCkOWOW","W4qFfMvD","wCo2bmo2FW","xt1QWRv7","W6bUWQCEW6W","F8oTWR7dHmours4cWPlcIvPleW","WOHkW7VdU8o9","omoWW6BcN8kk","sdxcJCothq","agFcTCo9hG","pbpcQaLb","d8kBb0rhW5WaWQVdUW","W7lcQfagW5G","W4qJWP3cOG","x8oXq1HR","WOaIWO4atq","iIW0wru","iIWT","s8kuWO1SW7e","xmkYhmoS","WRFcK1i+WRu","tCkiW4PvrW","sSobF0j+","W7Pux8kMoW","W6pcRmkqW6dcGq","W5L5W7RdObq","sMhdQ8o9cW","WOldGM9X","oSoiWQZcMY4","W4XPD8kqwa","W5jpW6f6uq","WOBdH2bfkW","WP0XWQxcISk/","WRFcM1i9W7q","vCkRWRyqWOO","WQhcL18OWQm","rmk5bh4X","WO7dLvvXoW","WP8OWRNcTmkJ","W795uIvd","W7rIW6JdUmkW","WRxdUfBdRCo2","zqOeW6RdRq","WQudnCou","WRJcLxNdSWW","W4JdTmkeWQpcPW","W7bcqdm","WRSEnSoSWPK","kGJcHsqm","vmkmWPDyCq","gmo9WQuCW54","a8kRa8oPfW","WOdcQSktW7VdRG","b8oYWRNcLYa","g8k1rmoEAG","fmo2W4hcTW4","WQatWQ7dNmkJ","W414ySkhvW","W7iBe8kTBW","W68XW6ddI0W","xCoguL9k","W7BcQCkuWQri","gq56DJ8","WPFdVmk+yxG","W7PdW77cT8o4vWlcQJRcVHXkW4W","W4NcGGFcSSoy","zSkzWQD6","DvBdQmosya","l8kYW63cJW","WRmKamk3AW","W6uEW7BcT8oY","WQZcPbFcSmkP","fCkriLzw","WOldG2q","W4aIW7JdRJm","W7vCW4G+W6W","BJVcKrpdVq","xfpcSZ0r","WPpcQwefW6a","W7VdHSoMW7bA","WRX2nHeX","zmkYW4JdI1e","W6ZcImkiW7/cTa","W7BcRw3dG8ogWO56WQ4","W7dcSmkEW6a","WRfhW4GUuW","WRGgbSkHvq","mXRcSSohWPa","j8o0W6xcVmog","B8ocq0v/","WRrVlJqV","W4tcTKyeWOa","uCokvMX9","FICZxbq","W67cRNe","nrpcVCobWPe","o8kXW6ZcMCkl","WQaJW7xcTmkb","W54qt8kUWRW","xMlcQCoZCq","WPrxlbyq","cmkTW5FdLZq","W7pcSmorW7dcPW","WQpcOf/dIc4","WQNcRvG1W5u","W6FdKCoNW6nb","cSo9WRpcHaq","W6tdL8o6W75a","W60EgCoUWPi","ureWWQmq","sCo5WP/dVNK","ELfOW5uq","AYiSWPn2","xvRdOgpcNG","WPKVe8oLWOS","BSkaWRbXWRy","WQi7WOL2","zNuvW6NdMq","W4/cGSkHWPDY","WOa1W7C7Aa","WQtcNSomWQBdOa","W47cLSoCW59k","WOKBW6dcGCov","FSkUBM7dKG","uSk8WRCyW48","y8o+mtNdJG","W7OhASoLWOu","DmkFWRCmW70","W4xdV8kBWPCd","ymo2AgpdNa","W73cKhGRW5q","a8kHpmkRqG","WR7cPHZcK8kD","W5pdT21NW74","WPOKWO5PW7S","nIpcIL3cQW","WQWzdmoFWPG","WOJdG2r7oW","rMtcSCoUna","WO49WQvAWOW","WQtdTuFdS8ou","WRFcK0u","xSk/W7a+W6e","WRJcImohWQ3dTW","WQ7dNNJdGKa","W7z0W60h","jmkNW7RdTMi","WPBdOmk2EW","WQ0HW47cJCoF","D8k2WObjWQW","WO/cU3OqW6q","WPWuW5FcM8oB","wSkmWRxcUsG","WRe7WRrWWPy","W7pcSmkdW7VcRa","tmknbhPQ","oCkDW73dOw0","WQJdUupdGmoJ","eSooW7xdM3m","hmo9WRNcP8oi","W7D0W54HW4m","WRGuW5VcQ8kF","W7pcGSocW6PJ","Fv3dP2dcHG","WPRdM2pdU3a","W5dcJtJcUCkT","W68ZW5FdMdK","qCoLW5FdOfu","W7jYtc5J","WOSLmmkaka","WQNdG3i7WPy","l8oaWPJcJZi","uclcPq5j","WPNcTSkJpW","WQhdP3b2jG","zWy4WOaL","D8ocWQ1zWOq","WPfty8o+WR8","WQNdRNNdS8oK","WQhdSuNdRSoL","WPbvpGCl","CCkHWO5EW6q","u8kmW50","WO86W6xcKSkG","W63cOSkaWQ1r","w8kPe1rO","FSkax8owaW","WQKaW7ZcQmoL","ACokWQ3cQY3dTCoNdmkLlSkeo8oH","WPlcV38iW60","bCkxW5/cUCky","WPGxWOhdGCkk","WPjElqec","WPLEnXqx","vSkuehOI","BdhcTSoKWPy","WQ3dNbpdLmoN","WRBcUwGLWRG","BulcQCoBWQVcRmolW5JdOa"];return jp=function jp1(){return r},jp()}function VX(){var r={_0x237192:1220,_0x325b3e:1019,_0x526cd3:565,_0x22f2df:1497,_0x35e3a1:1443,_0x1306bb:"JNeN",_0x409720:1235,_0x5da6c9:"848R",_0x49e786:17,_0x562098:932,_0x4e89e6:904,_0x39efd1:465,_0x4bf6f9:1481,_0xfa9524:1089,_0x49bfa3:1248,_0x12ef2e:1314,_0x15adf0:1629,_0x564aab:"[3cA",_0x3f0af5:1550,_0x4fd3de:666,_0x3c4dc5:547};return _c(this,null,function(){var e,t,i,u,c,l,f,g,h,d,p,m,x;function n(p,m,x,v,E){return Ie(x- -753,v)}function a(p,m,x,v,E){return Ie(m-713,v)}function o(p,m,x,v,E){return Ie(p-i._0x42be11,v)}function s(p,m,x,v,E){return Ie(m- -t._0x5dbcea,E)}function A(p,m,x,v,E){return Ie(E-e._0x2a527,p)}return _ts_generator(this,function(_state){switch(_state.label){case 0:e={_0x2a527:4},t={_0x5dbcea:792},i={_0x42be11:168};if(!(A("qSP&",1188,r._0x237192,932,r._0x325b3e)===A("Z(VR",1087,r._0x526cd3,1003,843)))return[3,1];for(c=_0x45e779[a(r._0x22f2df,1734,1599,"dT8K",r._0x35e3a1)+"h"],l=c%3,f=[],g=16383,h=0,d=c-l;hd?d:h+g));return[2,(l===1?(u=_0x1a0a1c[c-1],f[n(470,503,173,r._0x5da6c9,-r._0x49e786)](_0x5da273[u>>2]+_0x4e3fdd[u<<4&63]+"==")):l===2&&(u=(_0x1ba850[c-2]<<8)+_0x2547c0[c-1],f[o(1151,1526,r._0x562098,"Zr4y",r._0x4e89e6)](_0x59056a[u>>10]+_0x2c527f[u>>4&63]+_0x58a32f[u<<2&63]+"=")),f[s(155,r._0x39efd1,233,205,"#I1X")](""))];case 1:p=XZe[A("^I18",1485,r._0x4bf6f9,1435,r._0xfa9524)]();return[4,e$e(jZe,p)];case 2:m=_state.sent(),x=new TextDecoder()[a(r._0x49bfa3,r._0x12ef2e,r._0x15adf0,r._0x564aab,r._0x3f0af5)+"e"](m);return[2,JSON[o(r._0x4fd3de,r._0x3c4dc5,641,"N0Iq",494)](x)];case 3:return[2]}})})}function re(r,e,t,i,n){return Ie(n-693,r)}function e$e(r,e){var t={_0x2127ed:1313,_0x13700c:1421,_0x515434:2020,_0x4686d8:"DgfB",_0x439168:542,_0x39ffcb:"T4sb",_0x1f5793:148,_0x8fcff1:1983,_0x87046:1331,_0x396b50:1436,_0x4a8900:1117,_0x2d9a52:1260,_0x7ecd30:981,_0xd620e1:522,_0x55910f:1707,_0x213ce6:1570,_0x401815:2e3,_0x27a8f3:1465,_0x5327be:1152,_0xd58797:1628,_0x3db9d3:1775,_0x3ee9c8:"dT8K",_0xa83efd:"Iozt",_0x411e32:1069,_0x41dd65:999,_0x4de2aa:"MVwD",_0x20b50e:1059,_0x4cae74:956,_0x197297:1259,_0xaa0a9b:1256,_0xd6a61:1467},i={_0x48808f:528},n={_0x240861:471};return _c(this,null,function(){var a,A,l,f,g,h,d;function o(m,x,v,E,S){return Ie(x-374,m)}function s(m,x,v,E,S){return Ie(x-n._0x240861,m)}function u(m,x,v,E,S){return Ie(v-682,S)}function c(m,x,v,E,S){return Ie(S-a._0x41c126,v)}function p(m,x,v,E,S){return Ie(S- -i._0x48808f,E)}return _ts_generator(this,function(_state){switch(_state.label){case 0:a={_0x41c126:33};A={};A[u(1300,t._0x2127ed,t._0x13700c,1465,"QwuZ")]=u(t._0x515434,1393,1688,1986,t._0x4686d8)+"CM";l=new TextEncoder;return[4,Sc[p(t._0x439168,-155,5,t._0x39ffcb,t._0x1f5793)+s("RzAx",1630,t._0x8fcff1,t._0x87046,t._0x396b50)](o("*qL$",t._0x4a8900,t._0x2d9a52,834,t._0x7ecd30),l[c(684,793,"bVi3",688,t._0xd620e1)+"e"](r),A,!1,[s("JMc^",t._0x55910f,t._0x213ce6,t._0x401815,1544)+"pt"])];case 1:f=_state.sent(),g=(0,ZZe[s("V&B%",t._0x27a8f3,1202,1225,t._0x5327be)+u(t._0xd58797,2153,t._0x3db9d3,1963,t._0x3ee9c8)+"y"])(e),h=g[s(t._0xa83efd,t._0x411e32,844,1309,t._0x41dd65)](12),d={name:s(t._0x4de2aa,t._0x20b50e,t._0x4cae74,898,1191)+"CM",iv:g[c(1652,1119,"QwuZ",931,t._0x197297)](0,12)};return[2,Sc[o("RtOR",t._0xaa0a9b,1554,912,t._0xd6a61)+"pt"](d,f,h)]}})})}function Z(r,e,t,i,n){return Ie(n-449,i)}function j(r,e,t,i,n){var a={_0x12047d:814};return Ie(i- -a._0x12047d,r)}var r$e=Xp(Zp()),t$e=re("ix8k",2172,1646,1798,1940)+ne("m5Ud",1494,1277,1837,1616)+j("AQmA",-229,-459,-225,-392)+Z(1219,894,926,"*qL$",1237)+Z(1247,1536,1526,"JNeN",1594)+"-",i$e=se(-422,"m5Ud",-509,-460,-761)+se(-345,"#I1X",-269,-164,-223)+j("RtOR",319,-47,337,-29)+se(211,"*qL$",509,96,124)+re("bP5x",1964,1892,1643,1815);function n$e(r,e){var t={_0xc8c20e:"Td@a",_0x1775bf:1246,_0x18d183:1869,_0x2fae98:1803,_0x16c77f:1806,_0xdd9b38:960,_0x4a7ed5:750,_0xb90100:1436,_0x4a3690:1607,_0x133e43:2319,_0xa4c373:1919,_0x1f9e7b:281,_0x41a9ae:385,_0x12eddb:156,_0xf220d5:"N2PL",_0x2fa6ee:289,_0x3a152e:"RtOR",_0x566c43:1773,_0x2e3f71:2121,_0x5ca700:"r^O1",_0x3748e4:1487,_0x56bfcc:"o5uN",_0x2c375b:2051,_0x4fc997:1732,_0x541953:893,_0x3c91ae:1261,_0x51f6a0:1305,_0x35ff5a:1220,_0x2f7b8f:1816,_0x57b76e:1814,_0x7ef534:117,_0x24996c:348,_0x466a92:63,_0x2f8117:"ejE(",_0xe09706:158,_0x48f8bb:101,_0x583201:215,_0x4a8b23:1789,_0x293a50:1644,_0x8b4251:1911,_0x4988a4:"848R"},i={_0x57c9fa:611};return _c(this,null,function(){var n,o,s,f,g,h;function a(d,p,m,x,v){return Ie(x-888,m)}function A(d,p,m,x,v){return Ie(v-n._0x29345d,x)}function u(d,p,m,x,v){return Ie(d- -939,v)}function c(d,p,m,x,v){return Ie(m-375,d)}function l(d,p,m,x,v){return Ie(x- -i._0x57c9fa,d)}return _ts_generator(this,function(_state){switch(_state.label){case 0:n={_0x29345d:540};o=new TextEncoder;r=r[c(t._0xc8c20e,1377,1290,1589,t._0x1775bf)+"ce"](t$e,""),r=r[A(t._0x18d183,1842,t._0x2fae98,"o5uN",t._0x16c77f)+"ce"](i$e,""),r=r[c("Iozt",1537,1142,t._0xdd9b38,t._0x4a7ed5)+"ce"](/\n/g,"");s={};s[c("SAMA",1391,1100,1340,t._0xb90100)]=a(t._0x4a3690,t._0x133e43,"N2PL",t._0xa4c373,1785)+u(69,t._0x1f9e7b,t._0x41a9ae,t._0x12eddb,t._0xf220d5),s[l("RtOR",13,309,-34,-t._0x2fa6ee)]=c(t._0x3a152e,1680,1599,1696,1315)+"56";f={};f[A(t._0x566c43,1785,t._0x2e3f71,t._0x5ca700,1752)]=A(1388,t._0x3748e4,845,t._0x56bfcc,1131)+A(1703,t._0x2c375b,1634,"QwuZ",t._0x4fc997);return[4,Sc[a(1696,1253,"Z(VR",1557,1879)+A(t._0x541953,903,t._0x3c91ae,"Iozt",1060)](c("MVwD",1521,t._0x51f6a0,t._0x35ff5a,1599),(0,r$e[a(1584,t._0x2f7b8f,"RzAx",1539,t._0x57b76e)+l("o5uN",t._0x7ef534,t._0x24996c,66,-t._0x466a92)+"y"])(r),s,!1,[l(t._0x2f8117,503,-t._0xe09706,t._0x48f8bb,-t._0x583201)+"pt"])];case 1:g=_state.sent(),h=f;return[2,Sc[a(t._0x4a8b23,t._0x293a50,"bP5x",t._0x8b4251,2046)+"pt"](h,g,o[l(t._0x4988a4,t._0x12eddb,220,554,940)+"e"](e))]}})})}function Fw(r){var e={_0x170fcf:736,_0x484a2d:171,_0x14c288:"ejE(",_0x2c2fce:144,_0x518ced:254,_0x34c29d:"QdMv",_0x4bb8de:"[3cA",_0x3740ee:862,_0x4a2372:"*YWj",_0x2cc4e3:1421,_0x49afcd:"bP5x",_0x130a4d:1497,_0xb2ff3e:1569,_0x8b2308:1482,_0x449535:358,_0x1a9f62:804,_0x4c18ff:532,_0x11a177:"ejE(",_0x2015c3:1439,_0x49f967:523,_0x11cd97:601,_0x476301:642,_0x52d7b8:301,_0x207733:")u!k",_0x441bd3:177,_0x439b50:"DgfB",_0x1f5d22:455,_0x35e08b:"o5uN",_0x5163df:1188,_0x24f160:1781,_0x161411:1513,_0x49bb48:1465,_0x90e03b:2040,_0x306b06:1708,_0x58a903:1292,_0x4ae733:"bVi3",_0x2ef314:1681,_0x14428b:253,_0x25ab94:1688,_0xfedcfa:"r^O1",_0x18e56b:2037,_0x58801c:2287,_0x3eaa52:309,_0x20f4c5:272,_0x49ff4c:528,_0x3a3e3c:451,_0xfd0cf7:737,_0x17d278:616,_0x524f8d:848,_0xcf59c8:1458,_0x28b4c0:"*YWj",_0xa1c935:1125,_0x9593bf:1149,_0x40abf8:783,_0x6656a1:538,_0x76e559:"MVwD",_0x4ff9f6:705,_0xcebbe1:763,_0x2b9631:"o)FD",_0x5c0533:593,_0x23fdb0:398,_0x3da1d4:"ix8k",_0x2011c5:489,_0x17511e:1384,_0x503aad:1076,_0x1255b6:1680,_0x1be01c:160,_0x411624:"rAUW",_0x3470ac:36,_0xfe72ed:378,_0x102563:2356,_0xc98e89:"qSP&",_0xff353e:1965,_0x1d4d3a:1978,_0x4f0bb5:2376,_0x2cbed4:1971,_0x494fad:2271,_0x5a5a96:2184,_0x479295:"Zr4y",_0x38d389:555,_0x58cbbe:1584,_0x5f100f:1245,_0xdfcdae:"N0Iq",_0xfb3695:646,_0x57f0c8:894,_0x4d8b13:827,_0x54af54:"m5Ud",_0x2e6ce0:668,_0x4acd68:467,_0xa2e76a:979,_0x3561c4:830,_0x48449d:1472,_0x5ac397:29,_0x54f0e6:64,_0x337b95:942,_0x18ecb0:387,_0x1d399c:303,_0x1e5459:157,_0x33e410:1500,_0x50d904:"tghG",_0x5d397a:1495,_0x2f4bc4:1018,_0x30bf9e:928,_0x30f67b:1118,_0xec5dc7:"dT8K",_0x1dd7f4:1182,_0x35871b:563,_0x1ac935:280,_0x19235c:"6xFd",_0x11d502:321,_0x348098:304};return _c(this,arguments,function(param){var t,i,n,c,l,f,g;function a(c,l,f,g,h){return Ie(h- -n._0x54d788,f)}function o(c,l,f,g,h){return Ie(h- -635,f)}function s(c,l,f,g,h){return Ie(c-i._0x4c69a8,f)}function A(c,l,f,g,h){return Ie(l-254,f)}function u(c,l,f,g,h){return Ie(g-926,l)}return _ts_generator(this,function(_state){switch(_state.label){case 0:t=param.app;i={_0x4c69a8:298},n={_0x54d788:325};if(!(s(952,675,"X@hs",941,e._0x170fcf)!==o(e._0x484a2d,-179,e._0x14c288,-e._0x2c2fce,-84)))return[3,1];if(!_0x264a75){if((typeof _0x46253f==="undefined"?"undefined":_type_of(_0x46253f))==o(326,-e._0x518ced,e._0x34c29d,74,5)+a(1132,971,e._0x4bb8de,1096,946)||!_0x1135e2[s(785,e._0x3740ee,e._0x4a2372,933,1157)+u(e._0x2cc4e3,e._0x49afcd,e._0x130a4d,e._0xb2ff3e,e._0x8b2308)+o(e._0x449535,e._0x1a9f62,"6xFd",933,e._0x4c18ff)])throw new _0x17290f(s(1239,1343,e._0x11a177,1348,e._0x2015c3)+a(e._0x49f967,e._0x11cd97,"MVwD",e._0x476301,749)+a(400,e._0x52d7b8,e._0x207733,-27,196)+o(-e._0x441bd3,31,e._0x439b50,e._0x1f5d22,188)+A(1071,1408,e._0x35e08b,e._0x5163df,e._0x24f160)+u(1589,"*qL$",e._0x161411,1613,e._0x49bb48)+u(2241,"ejE(",e._0x90e03b,1839,e._0x306b06)+A(1268,e._0x58a903,e._0x4ae733,1301,e._0x2ef314)+o(-234,255,")u!k",-e._0x14428b,-103)+u(e._0x25ab94,e._0xfedcfa,2301,e._0x18e56b,e._0x58801c)+a(e._0x3eaa52,e._0x20f4c5,"QdMv",e._0x49ff4c,e._0x3a3e3c)+a(e._0xfd0cf7,e._0x17d278,"QDD]",876,e._0x524f8d)+A(e._0xcf59c8,1067,e._0x28b4c0,e._0xa1c935,947)+s(1413,1109,"uw*n",1157,e._0x9593bf)+o(e._0x40abf8,e._0x6656a1,e._0x76e559,147,400)+a(e._0x4ff9f6,e._0xcebbe1,e._0x2b9631,647,e._0x5c0533)+a(e._0x23fdb0,517,e._0x3da1d4,818,e._0x2011c5)+s(e._0x17511e,e._0x503aad,"848R",1767,e._0x1255b6)+o(-e._0x1be01c,10,e._0x411624,-320,-e._0x3470ac)+a(e._0xfe72ed,797,"MVwD",919,647)+u(e._0x102563,e._0xc98e89,e._0xff353e,e._0x1d4d3a,e._0x4f0bb5));_0x562620=_0x40d0ca[u(e._0x2cbed4,"ejE(",e._0x494fad,2195,e._0x5a5a96)+s(828,468,e._0x479295,933,e._0x38d389)+u(1066,e._0x35e08b,e._0x58cbbe,1408,1760)][s(962,e._0x5f100f,e._0xdfcdae,e._0xfb3695,791)](_0x23dbef)}return[2,_0x10c472(_0x1f4f07)];case 1:return[4,VX()];case 2:c=_state.sent()[a(1041,e._0x57f0c8,"[3cA",e._0x4d8b13,819)+A(1144,744,e._0x54af54,e._0x2e6ce0,1081)+a(e._0x4acd68,761,e._0x34c29d,e._0xa2e76a,e._0x3561c4)+"ey"],l={timestamp:Math[s(1203,e._0x48449d,"Iozt",1575,979)](Date[o(-6,e._0x5ac397,"SAMA",59,-e._0x54f0e6)]()/1e3),ticket:YZe(),app:t};return[4,n$e(c,JSON[s(817,1102,"N0Iq",e._0x337b95,673)+o(e._0x18ecb0,e._0x1d399c,"QDD]",133,e._0x1e5459)](l))];case 3:f=_state.sent(),g=(0,LZe[u(e._0x33e410,e._0x50d904,e._0x5d397a,1530,1170)+A(e._0x2f4bc4,e._0x30bf9e,e._0x34c29d,917,1229)+s(e._0x30f67b,977,e._0xec5dc7,1187,1133)])(new Uint8Array(f));return[2,zZe+"/"+t+(s(859,e._0x1dd7f4,e._0x11a177,1223,e._0x35871b)+a(265,e._0x1ac935,e._0x19235c,e._0x11d502,e._0x348098))+encodeURIComponent(g)];case 4:return[2]}})})}function se(r,e,t,i,n){var a={_0x28a316:987};return Ie(r- -a._0x28a316,e)}var a$e=Xp(Zp());function o$e(r){var e={_0xa30ea1:207,_0x41a13f:"bP5x",_0x466507:351,_0x4422d1:246,_0x540726:326,_0x530cab:741,_0x2db7b8:"fdfK",_0x309279:446,_0x14bb3e:485,_0x18df3d:204,_0x2f265a:88,_0x33062e:2},t={_0x21273a:221},i={_0x13cb51:356,_0x3e5ddc:275},n={_0x5bd479:344};function a(u,c,l,f,g){return j(l,c-165,l-419,u-n._0x5bd479,g-370)}function o(u,c,l,f,g){return Z(u-56,c-i._0x13cb51,l-i._0x3e5ddc,c,g- -874)}var s=4-r[o(e._0xa30ea1,e._0x41a13f,e._0x466507,e._0x4422d1,e._0x540726)+"h"]%4;if(s<4)for(var u=0;u_0x26908a[o(e._0x1e8c54,e._0x509784,e._0x19779f,657,e._0x9366b8)+"h"])throw new _0x561855(A(80,e._0x126632,e._0x53455c,e._0x48eaaa,e._0x5e19a7)+A(e._0x1a9a81,e._0x88d008,e._0x5b1fa6,e._0x585173,266)+o(e._0xf395ee,"[3cA",689,527,156)+" "+_0x4e8d06+":"+(_0x1c6802+15)+(A(e._0x21c5a4,e._0x36b552,e._0x3d6bd0,e._0x473138,e._0x46ad5c)+a(e._0xbca73e,e._0x2dc3a3,e._0x356c1,364,378)+o(930,"*qL$",e._0x1bfec0,942,e._0x3ae8d5)+o(787,e._0x19b456,888,e._0x10d80a,e._0xced079)+o(e._0xa1ebdc,e._0x245a98,e._0x3dc4d6,e._0x1eebd4,e._0x5d9506)));for(c2=0;c2<16;++c2)_0x460ef7[_0x2cd408+c2]=_0x466072[c2];return[2,_0x228b07];case 4:return[2]}})})}var Nt=require("obsidian");var $p=require("obsidian");var Df=function(_$p_Modal){"use strict";_inherits(Df1,_$p_Modal);function Df1(t,i){_class_call_check(this,Df1);var _this;_this=_call_super(this,Df1,[t]);_this.onConfirm=i;return _this}_create_class(Df1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.createEl("h2",{text:_.t("settings.logout.confirmTitle")}),t.createEl("p",{text:_.t("settings.logout.confirmMessage")}),new $p.Setting(t).addButton(function(i){return i.setButtonText(_.t("settings.logout.cancel")).onClick(function(){return _this.close()})}).addButton(function(i){return i.setButtonText(_.t("settings.logout.confirm")).setWarning().onClick(function(){_this.close(),_this.onConfirm()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return Df1}($p.Modal);var zX="Invalid response: 503 Service Unavailable";function Yi(r){return _instanceof(r,Error)?r.message===zX:r===zX}var oi=function oi1(e,t,i,n){"use strict";_class_call_check(this,oi1);this.app=e;this.plugin=t;this.settings=i;this.containerEl=n};var Ff=function(oi1){"use strict";_inherits(Ff1,oi1);function Ff1(){_class_call_check(this,Ff1);var _this;_this=_call_super(this,Ff1,arguments);_this.updateOAuthUrlTimer=null;return _this}_create_class(Ff1,[{key:"display",value:function display(){return _async_to_generator(function(){var _this,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;this.containerEl.empty(),new Nt.Setting(this.containerEl).setName(_.t("settings.sections.account")).setHeading(),new Nt.Setting(this.containerEl).setName(_.t("settings.loginMode.name")).addDropdown(function(t){return t.addOption("manual",_.t("settings.loginMode.manual")).addOption("sso",_.t("settings.loginMode.sso")).setValue(_this.plugin.settings.loginMode).onChange(function(i){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.loginMode=i;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})}).call(_this)})});if(!this.settings.isSSO)return[3,2];return[4,this.displaySSOLoginSettings()];case 1:_tmp=_state.sent();return[3,4];case 2:return[4,this.displayManualLoginSettings()];case 3:_tmp=_state.sent();_state.label=4;case 4:_tmp;return[2]}})}).call(this)}},{key:"hide",value:function hide(){return _async_to_generator(function(){return _ts_generator(this,function(_state){this.updateOAuthUrlTimer!==null&&(window.clearInterval(this.updateOAuthUrlTimer),this.updateOAuthUrlTimer=null);return[2]})}).call(this)}},{key:"displayManualLoginSettings",value:function displayManualLoginSettings(){var _this=this;var i=new Nt.Setting(this.containerEl).descEl.createEl("a",{href:"https://help.jianguoyun.com/?p=2064",cls:"no-underline",text:_.t("settings.help.name")});i.target="_blank",new Nt.Setting(this.containerEl).setName(_.t("settings.account.name")).setDesc(_.t("settings.account.desc")).addText(function(n){return n.setPlaceholder(_.t("settings.account.placeholder")).setValue(_this.plugin.settings.account).onChange(function(a){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.account=a;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)})}),new Nt.Setting(this.containerEl).setName(_.t("settings.credential.name")).setDesc(_.t("settings.credential.desc")).addText(function(n){n.setPlaceholder(_.t("settings.credential.placeholder")).setValue(_this.plugin.settings.credential).onChange(function(a){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.credential=a;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})}).call(_this)}),n.inputEl.type="password"}),this.displayCheckConnection()}},{key:"displaySSOLoginSettings",value:function displaySSOLoginSettings(){return _async_to_generator(function(){var _this,t,i,n,_$n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;t=this.plugin.settings.oauthResponseText.length>0;if(!t)return[3,4];_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,this.plugin.getDecryptedOAuthInfo()];case 2:i=_state.sent();return[3,4];case 3:n=_state.sent();z.error(n),t=!1;return[3,4];case 4:if(t&&i!=null&&i.username){_$n=new Nt.Setting(this.containerEl).setName(_.t("settings.ssoStatus.loggedIn")).setDesc(i.username).addButton(function(a){a.setWarning().setButtonText(_.t("settings.ssoStatus.logout")).onClick(function(){new Df(_this.app,function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.oauthResponseText="";return[4,this.plugin.saveSettings()];case 1:_state.sent(),new Nt.Notice(_.t("settings.ssoStatus.logoutSuccess")),this.display();return[2]}})}).call(_this)}).open()})});_$n.descEl.classList.add("max-w-full","truncate"),_$n.infoEl.classList.add("max-w-full"),this.displayCheckConnection()}else new Nt.Setting(this.containerEl).setName(_.t("settings.ssoStatus.notLoggedIn")).addButton(function(n){return _async_to_generator(function(){var _this,o,a;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;n.setButtonText(_.t("settings.login.name"));a=document.createElement("a");a.target="_blank",(o=n.buttonEl.parentElement)==null||o.appendChild(a),a.appendChild(n.buttonEl);return[4,Fw({app:"obsidian"})];case 1:a.href=_state.sent(),this.updateOAuthUrlTimer=window.setInterval(function(){return _async_to_generator(function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!document.contains(a))return[3,2];return[4,Fw({app:"obsidian"})];case 1:_tmp=a.href=_state.sent();return[3,3];case 2:_tmp=(window.clearInterval(this.updateOAuthUrlTimer),this.updateOAuthUrlTimer=null);_state.label=3;case 3:_tmp;return[2]}})}).call(_this)},60*1e3);return[2]}})}).call(_this)});return[2]}})}).call(this)}},{key:"displayCheckConnection",value:function displayCheckConnection(){var _this=this;new Nt.Setting(this.containerEl).setName(_.t("settings.checkConnection.name")).setDesc(_.t("settings.checkConnection.desc")).addButton(function(t){t.setButtonText(_.t("settings.checkConnection.name")).onClick(function(i){return _async_to_generator(function(){var n,_ref,a,o,a1;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=i.target;n.classList.add("connection-button","loading"),n.classList.remove("success","error"),n.textContent=_.t("settings.checkConnection.name");_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,this.plugin.webDAVService.checkWebDAVConnection()];case 2:_ref=_state.sent(),a=_ref.success,o=_ref.error;n.classList.remove("loading"),a?(n.classList.add("success"),n.textContent=_.t("settings.checkConnection.successButton"),new Nt.Notice(_.t("settings.checkConnection.success"))):o&&Yi(o)?(n.classList.add("error"),n.textContent=_.t("sync.error.requestsTooFrequent"),new Nt.Notice(_.t("sync.error.requestsTooFrequent"))):(n.classList.add("error"),n.textContent=_.t("settings.checkConnection.failureButton"),new Nt.Notice(_.t("settings.checkConnection.failure")));return[3,4];case 3:a1=_state.sent();n.classList.remove("loading"),n.classList.add("error"),n.textContent=_.t("settings.checkConnection.failureButton"),new Nt.Notice(_.t("settings.checkConnection.failure"));return[3,4];case 4:return[2]}})}).call(_this)})})}}]);return Ff1}(oi);var yn=require("obsidian"),Aee=Le(kr());var ho=require("obsidian");var qc=function(_ho_Modal){"use strict";_inherits(qc1,_ho_Modal);function qc1(t,i){_class_call_check(this,qc1);var _this;_this=_call_super(this,qc1,[t.app]);_this.plugin=t;_this.onSuccess=i;_this.options={syncRecordEnabled:!1,blobEnabled:!1,traverseWebDAVEnabled:!1};return _this}_create_class(qc1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;new ho.Setting(t).setName(_.t("settings.cache.clearModal.title")).setDesc(_.t("settings.cache.clearModal.description"));var i=t.createDiv({cls:"py-2"});new ho.Setting(i).setName(_.t("settings.cache.clearModal.syncRecordCache.name")).setDesc(_.t("settings.cache.clearModal.syncRecordCache.desc")).addToggle(function(n){n.setValue(_this.options.syncRecordEnabled).onChange(function(a){_this.options.syncRecordEnabled=a})}),new ho.Setting(i).setName(_.t("settings.cache.clearModal.blobCache.name")).setDesc(_.t("settings.cache.clearModal.blobCache.desc")).addToggle(function(n){n.setValue(_this.options.blobEnabled).onChange(function(a){_this.options.blobEnabled=a})}),new ho.Setting(i).setName(_.t("settings.cache.clearModal.traverseWebDAVCache.name")).setDesc(_.t("settings.cache.clearModal.traverseWebDAVCache.desc")).addToggle(function(n){n.setValue(_this.options.traverseWebDAVEnabled).onChange(function(a){_this.options.traverseWebDAVEnabled=a})}),new ho.Setting(t).addButton(function(n){n.setButtonText(_.t("settings.cache.clearModal.cancel")).onClick(function(){_this.close()})}).addButton(function(n){var a=!1;n.setButtonText(_.t("settings.cache.clear")).onClick(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){if(a)try{this.onSuccess&&this.onSuccess(this.options),this.close()}catch(o){z.error("清除缓存出错:",o)}finally{n.setButtonText(_.t("settings.cache.clearModal.confirm")),n.buttonEl.classList.remove("mod-warning"),a=!1}else a=!0,n.setButtonText(_.t("settings.cache.confirm")).setWarning();return[2]})}).call(_this)}),n.buttonEl.addEventListener("blur",function(){a&&(a=!1,n.setButtonText(_.t("settings.cache.clear")),n.buttonEl.classList.remove("mod-warning"))})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}],[{key:"clearSelectedCaches",value:function clearSelectedCaches(t){return _async_to_generator(function(){var i,n,a,o,_tmp,_tmp1,_tmp2,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=t.syncRecordEnabled,n=t.blobEnabled,a=t.traverseWebDAVEnabled,o=[];_state.label=1;case 1:_state.trys.push([1,8,,9]);_tmp=i;if(!_tmp)return[3,3];return[4,jn.clear()];case 2:_tmp=(_state.sent(),o.push(_.t("settings.cache.clearModal.syncRecordCache.name")));_state.label=3;case 3:_tmp;_tmp1=n;if(!_tmp1)return[3,5];return[4,bf.clear()];case 4:_tmp1=(_state.sent(),o.push(_.t("settings.cache.clearModal.blobCache.name")));_state.label=5;case 5:_tmp1;_tmp2=a;if(!_tmp2)return[3,7];return[4,Cn.clear()];case 6:_tmp2=(_state.sent(),o.push(_.t("settings.cache.clearModal.traverseWebDAVCache.name")));_state.label=7;case 7:return[2,(_tmp2,o)];case 8:s=_state.sent();throw z.error("清除缓存出错:",s),s;case 9:return[2]}})})()}}]);return qc1}(ho.Modal);var Hf=require("obsidian");var Bt=Uint8Array,si=Uint16Array,Uw=Int32Array,e0=new Bt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),r0=new Bt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ow=new Bt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$X=function $X1(r,e){for(var t=new si(31),i=0;i<31;++i)t[i]=e+=1<>1|(Ye&21845)<<1,ra=(ra&52428)>>2|(ra&13107)<<2,ra=(ra&61680)>>4|(ra&3855)<<4,Pw[Ye]=((ra&65280)>>8|(ra&255)<<8)>>1;var ra,Ye,Bn=function Bn1(r,e,t){for(var i=r.length,n=0,a=new si(e);n>A]=u}else for(s=new si(i),n=0;n>15-r[n]);return s},Io=new Bt(288);for(Ye=0;Ye<144;++Ye)Io[Ye]=8;var Ye;for(Ye=144;Ye<256;++Ye)Io[Ye]=9;var Ye;for(Ye=256;Ye<280;++Ye)Io[Ye]=7;var Ye;for(Ye=280;Ye<288;++Ye)Io[Ye]=8;var Ye,Nf=new Bt(32);for(Ye=0;Ye<32;++Ye)Nf[Ye]=5;var Ye,c$e=Bn(Io,9,0),u$e=Bn(Io,9,1),l$e=Bn(Nf,5,0),f$e=Bn(Nf,5,1),kw=function kw1(r){for(var e=r[0],t=1;te&&(e=r[t]);return e},zi=function zi1(r,e,t){var i=e/8|0;return(r[i]|r[i+1]<<8)>>(e&7)&t},Rw=function Rw1(r,e){var t=e/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(e&7)},Gw=function Gw1(r){return(r+7)/8|0},iZ=function iZ1(r,e,t){return(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length),new Bt(r.subarray(e,t))};var g$e=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ia=function ia1(r,e,t){var i=new Error(e||g$e[r]);if(i.code=r,Error.captureStackTrace&&Error.captureStackTrace(i,ia),!t)throw i;return i},d$e=function d$e1(r,e,t,i){var n=r.length,a=i?i.length:0;if(!n||e.f&&!e.l)return t||new Bt(0);var o=!t,s=o||e.i!=2,A=e.i;o&&(t=new Bt(n*3));var u=function u(Oe){var or=t.length;if(Oe>or){var Te=new Bt(Math.max(or*2,Oe));Te.set(t),t=Te}},c=e.f||0,l=e.p||0,f=e.b||0,g=e.l,h=e.d,d=e.m,p=e.n,m=n*8;do{if(!g){c=zi(r,l,1);var x=zi(r,l+1,3);if(l+=3,x){if(x==1)g=u$e,h=f$e,d=9,p=5;else if(x==2){var B=zi(r,l,31)+257,b=zi(r,l+10,15)+4,C=B+zi(r,l+5,31)+1;l+=14;for(var y=new Bt(C),q=new Bt(19),w=0;w>4;if(v<16)y[w++]=v;else{var G=0,K=0;for(v==16?(K=3+zi(r,l,3),l+=2,G=y[w-1]):v==17?(K=3+zi(r,l,7),l+=3):v==18&&(K=11+zi(r,l,127),l+=7);K--;)y[w++]=G}}var ce=y.subarray(0,B),J=y.subarray(B);d=kw(ce),p=kw(J),g=Bn(ce,d,1),h=Bn(J,p,1)}else ia(1);}else{var v=Gw(l)+4,E=r[v-4]|r[v-3]<<8,S=v+E;if(S>n){A&&ia(0);break}s&&u(f+E),t.set(r.subarray(v,S),f),e.b=f+=E,e.p=l=S*8,e.f=c;continue}if(l>m){A&&ia(0);break}}s&&u(f+131072);for(var Ce=(1<>4;if(l+=G&15,l>m){A&&ia(0);break}if(G||ia(2),pe<256)t[f++]=pe;else if(pe==256){Ae=l,g=null;break}else{var le=pe-254;if(pe>264){var w=pe-257,ue=e0[w];le=zi(r,l,(1<>4;Ge||ia(3),l+=Ge&15;var J=A$e[fe];if(fe>3){var ue=r0[fe];J+=Rw(r,l)&(1<m){A&&ia(0);break}s&&u(f+131072);var Qe=f+le;if(f>8},kf=function kf1(r,e,t){t<<=e&7;var i=e/8|0;r[i]|=t,r[i+1]|=t>>8,r[i+2]|=t>>16},Nw=function Nw1(r,e){for(var t=[],i=0;if&&(f=a[i].s);var g=new si(f+1),h=Mw(t[c-1],g,0);if(h>e){var i=0,d=0,p=h-e,m=1<e)d+=m-(1<>=p;d>0;){var v=a[i].s;g[v]=0&&d;--i){var E=a[i].s;g[E]==e&&(--g[E],++d)}h=e}return{t:new Bt(g),l:h}},Mw=function Mw1(r,e,t){return r.s==-1?Math.max(Mw(r.l,e,t+1),Mw(r.r,e,t+1)):e[r.s]=t},XX=function XX1(r){for(var e=r.length;e&&!r[--e];);for(var t=new si(++e),i=0,n=r[0],a=1,o=function o(A){t[i++]=A},s=1;s<=e;++s)if(r[s]==n&&s!=e)++a;else{if(!n&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(n),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(n);a=1,n=r[s]}return{c:t.subarray(0,i),n:e}},Rf=function Rf1(r,e){for(var t=0,i=0;i>8,r[n+2]=r[n]^255,r[n+3]=r[n+1]^255;for(var a=0;a4&&!q[Ow[N-1]];--N);var F=u+5<<3,M=Rf(n,Io)+Rf(a,Nf)+o,U=Rf(n,f)+Rf(a,d)+o+14+3*N+Rf(b,q)+2*b[16]+3*b[17]+7*b[18];if(A>=0&&F<=M&&F<=U)return nZ(e,c,r.subarray(A,A+u));var G,K,ce,J;if(ta(e,c,1+(U15&&(ta(e,c,pe[C]>>5&127),c+=pe[C]>>12)}}else G=c$e,K=Io,ce=l$e,J=Nf;for(var C=0;C255){var le=ue>>18&31;kf(e,c,G[le+257]),c+=K[le+257],le>7&&(ta(e,c,ue>>23&31),c+=e0[le]);var Ge=ue&31;kf(e,c,ce[Ge]),c+=J[Ge],Ge>3&&(kf(e,c,ue>>5&8191),c+=r0[Ge])}else kf(e,c,G[ue]),c+=K[ue]}return kf(e,c,G[256]),c+K[256]},h$e=new Uw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),aZ=new Bt(0),I$e=function I$e1(r,e,t,i,n,a){var o=a.z||r.length,s=new Bt(i+o+5*(1+Math.ceil(o/7e3))+n),A=s.subarray(i,s.length-n),u=a.l,c=(a.r||0)&7;if(e){c&&(A[0]=a.r>>3);for(var l=h$e[e-1],f=l>>13,g=l&8191,h=(1<7e3||q>24576)&&(G>423||!u)){c=ZX(r,A,0,E,S,B,C,q,N,y-N,c),q=b=C=0,N=y;for(var K=0;K<286;++K)S[K]=0;for(var K=0;K<30;++K)B[K]=0}var ce=2,J=0,Ce=g,L=M-U&32767;if(G>2&&F==v(y-L))for(var Ae=Math.min(f,G)-1,pe=Math.min(32767,y),le=Math.min(258,G);L<=pe&&--Ce&&M!=U;){if(r[y+ce]==r[y+ce-L]){for(var ue=0;uece){if(ce=ue,J=L,ue>Ae)break;for(var Ge=Math.min(L,ue-2),fe=0,K=0;Kfe&&(fe=Fe,U=Qe)}}}M=U,U=d[M],L+=M-U&32767}if(J){E[q++]=268435456|Tw[ce]<<18|jX[J];var Oe=Tw[ce]&31,or=jX[J]&31;C+=e0[Oe]+r0[or],++S[257+Oe],++B[or],w=y+ce,++b}else E[q++]=r[y],++S[r[y]]}}for(y=Math.max(y,w);y=o&&(A[c/8|0]=u,Te=o),c=nZ(A,c+1,r.subarray(y,Te))}a.i=o}return iZ(s,0,i+Gw(c)+n)};var p$e=function p$e1(r,e,t,i,n){if(!n&&(n={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),o=new Bt(a.length+r.length);o.set(a),o.set(r,a.length),r=o,n.w=a.length}return I$e(r,e.level==null?6:e.level,e.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,t,i,n)};function oZ(r,e){return p$e(r,e||{},0,0)}function sZ(r,e){return d$e(r,{i:2},e&&e.out,e&&e.dictionary)}var x$e=typeof TextDecoder!="undefined"&&new TextDecoder,m$e=0;try{x$e.decode(aZ,{stream:!0}),m$e=1}catch(r){}var vo=require("obsidian"),m0=Le(kr());var t0=function(){"use strict";function t01(){_class_call_check(this,t01);this.keyToValue=new Map,this.valueToKey=new Map}_create_class(t01,[{key:"set",value:function set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}},{key:"getByKey",value:function getByKey(e){return this.keyToValue.get(e)}},{key:"getByValue",value:function getByValue(e){return this.valueToKey.get(e)}},{key:"clear",value:function clear(){this.keyToValue.clear(),this.valueToKey.clear()}}]);return t01}();var Dc=function(){"use strict";function Dc1(e){_class_call_check(this,Dc1);this.generateIdentifier=e,this.kv=new t0}_create_class(Dc1,[{key:"register",value:function register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}},{key:"clear",value:function clear(){this.kv.clear()}},{key:"getIdentifier",value:function getIdentifier(e){return this.kv.getByValue(e)}},{key:"getValue",value:function getValue(e){return this.kv.getByKey(e)}}]);return Dc1}();var i0=function(Dc1){"use strict";_inherits(i01,Dc1);function i01(){_class_call_check(this,i01);var _this;_this=_call_super(this,i01,[function(e){return e.name}]),_this.classToAllowedProps=new Map;return _this}_create_class(i01,[{key:"register",value:function register(e,t){(typeof t==="undefined"?"undefined":_type_of(t))=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),_get(_get_prototype_of(i01.prototype),"register",this).call(this,e,t.identifier)):_get(_get_prototype_of(i01.prototype),"register",this).call(this,e,t)}},{key:"getAllowedProps",value:function getAllowedProps(e){return this.classToAllowedProps.get(e)}}]);return i01}(Dc);function v$e(r){if("values"in Object)return Object.values(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(r[t]);return e}function AZ(r,e){var t=v$e(r);if("find"in t)return t.find(e);var i=t;for(var n=0;n0?"Infinity":"-Infinity"},Number),En(function(r){return r===0&&1/r===-1/0},"number",function(){return"-0"},Number),En(hZ,"URL",function(r){return r.toString()},function(r){return new URL(r)})];function c0(r,e,t,i){return{isApplicable:r,annotation:e,transform:t,untransform:i}}var pZ=c0(function(r,e){return Ww(r)?!!e.symbolRegistry.getIdentifier(r):!1},function(r,e){return["symbol",e.symbolRegistry.getIdentifier(r)]},function(r){return r.description},function(r,e,t){var i=t.symbolRegistry.getValue(e[1]);if(!i)throw new Error("Trying to deserialize unknown symbol");return i}),b$e=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(r,e){return r[e.name]=e,r},{}),xZ=c0(dZ,function(r){return["typed-array",r.constructor.name]},function(r){return _to_consumable_array(r)},function(r,e){var t=b$e[e[1]];if(!t)throw new Error("Trying to deserialize unknown typed array");return new t(r)});function Kw(r,e){return r!=null&&r.constructor?!!e.classRegistry.getIdentifier(r.constructor):!1}var mZ=c0(Kw,function(r,e){return["class",e.classRegistry.getIdentifier(r.constructor)]},function(r,e){var t=e.classRegistry.getAllowedProps(r.constructor);if(!t)return _object_spread({},r);var i={};return t.forEach(function(n){i[n]=r[n]}),i},function(r,e,t){var i=t.classRegistry.getValue(e[1]);if(!i)throw new Error("Trying to deserialize unknown class '".concat(e[1],"' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564"));return Object.assign(Object.create(i.prototype),r)}),vZ=c0(function(r,e){return!!e.customTransformerRegistry.findApplicable(r)},function(r,e){return["custom",e.customTransformerRegistry.findApplicable(r).name]},function(r,e){return e.customTransformerRegistry.findApplicable(r).serialize(r)},function(r,e,t){var i=t.customTransformerRegistry.findByName(e[1]);if(!i)throw new Error("Trying to deserialize unknown custom value");return i.deserialize(r)}),w$e=[mZ,pZ,vZ,xZ],Vw=function(r,e){var t=Lw(w$e,function(n){return n.isApplicable(r,e)});if(t)return{value:t.transform(r,e),type:t.annotation(r,e)};var i=Lw(IZ,function(n){return n.isApplicable(r,e)});if(i)return{value:i.transform(r,e),type:i.annotation}},CZ={};IZ.forEach(function(r){CZ[r.annotation]=r});var BZ=function(r,e,t){if(ji(e))switch(e[0]){case"symbol":return pZ.untransform(r,e,t);case"class":return mZ.untransform(r,e,t);case"custom":return vZ.untransform(r,e,t);case"typed-array":return xZ.untransform(r,e,t);default:throw new Error("Unknown transformation: "+e)}else{var i=CZ[e];if(!i)throw new Error("Unknown transformation: "+e);return i.untransform(r,t)}};var Rc=function(r,e){if(e>r.size)throw new Error("index out of bounds");var t=r.keys();for(;e>0;)t.next(),e--;return t.next().value};function EZ(r){if(Fc(r,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Fc(r,"prototype"))throw new Error("prototype is not allowed as a property");if(Fc(r,"constructor"))throw new Error("constructor is not allowed as a property")}var yZ=function(r,e){EZ(e);for(var t=0;t3&&arguments[3]!==void 0?arguments[3]:[];if(!r)return;var n=QZ(t);if(!ji(r)){vs(r,function(s,A){return Yw(s,e,t,_to_consumable_array(i).concat(_to_consumable_array(kc(A,n))))});return}var _r1=_sliced_to_array(r,2),a=_r1[0],o=_r1[1];o&&vs(o,function(s,A){Yw(s,e,t,_to_consumable_array(i).concat(_to_consumable_array(kc(A,n))))}),e(a,i)}function bZ(r,e,t,i){return Yw(e,function(n,a){r=u0(r,a,function(o){return BZ(o,n,i)})},t),r}function wZ(r,e,t){var i=QZ(t);function n(a,o){var s=yZ(r,kc(o,i));a.map(function(A){return kc(A,i)}).forEach(function(A){r=u0(r,A,function(){return s})})}if(ji(e)){var _e1=_sliced_to_array(e,2),a=_e1[0],o=_e1[1];a.forEach(function(s){r=u0(r,kc(s,i),function(){return r})}),o&&vs(o,n)}else vs(e,n);return r}var S$e=function(r,e){return Cs(r)||ji(r)||po(r)||xo(r)||o0(r)||Kw(r,e)};function _$e(r,e,t){var i=t.get(r);i?i.push(e):t.set(r,[e])}function SZ(r,e){var t={},i;return r.forEach(function(n){if(n.length<=1)return;e||(n=n.map(function(s){return s.map(String)}).sort(function(s,A){return s.length-A.length}));var _n=_to_array(n),a=_n[0],o=_n.slice(1);a.length===0?i=o.map(A0):t[A0(a)]=o.map(A0)}),i?a0(t)?[i]:[i,t]:a0(t)?void 0:t}var zw=function(r,e,t,i){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Map;var g;var s=lZ(r);if(!s){_$e(r,n,e);var h=o.get(r);if(h)return i?{transformedValue:null}:h}if(!S$e(r,t)){var h2=Vw(r,t),d=h2?{transformedValue:h2.value,annotations:[h2.type]}:{transformedValue:r};return s||o.set(r,d),d}if(Fc(a,r))return{transformedValue:null};var A=Vw(r,t),u=(g=A==null?void 0:A.value)!=null?g:r,c=ji(u)?[]:{},l={};vs(u,function(h,d){if(d==="__proto__"||d==="constructor"||d==="prototype")throw new Error("Detected property ".concat(d,". This is a prototype pollution risk, please remove it from your object."));var p=zw(h,e,t,i,_to_consumable_array(n).concat([d]),_to_consumable_array(a).concat([r]),o);c[d]=p.transformedValue,ji(p.annotations)?l[s0(d)]=p.annotations:Cs(p.annotations)&&vs(p.annotations,function(m,x){l[s0(d)+"."+x]=m})});var f=a0(l)?{transformedValue:c,annotations:A?[A.type]:void 0}:{transformedValue:c,annotations:A?[A.type,l]:l};return s||o.set(r,f),f};function l0(r){return Object.prototype.toString.call(r).slice(8,-1)}function f0(r){return l0(r)==="Array"}function jw(r){if(l0(r)!=="Object")return!1;var e=Object.getPrototypeOf(r);return!!e&&e.constructor===Object&&e===Object.prototype}function q$e(r,e,t,i,n){var a={}.propertyIsEnumerable.call(i,e)?"enumerable":"nonenumerable";a==="enumerable"&&(r[e]=t),n&&a==="nonenumerable"&&Object.defineProperty(r,e,{value:t,enumerable:!1,writable:!0,configurable:!0})}function g0(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(f0(r))return r.map(function(n){return g0(n,e)});if(!jw(r))return r;var t=Object.getOwnPropertyNames(r),i=Object.getOwnPropertySymbols(r);return _to_consumable_array(t).concat(_to_consumable_array(i)).reduce(function(n,a){if(a==="__proto__"||f0(e.props)&&!e.props.includes(a))return n;var o=r[a],s=g0(o,e);return q$e(n,a,s,r,e.nonenumerable),n},{})}var Ne=function(){"use strict";function Ne1(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tmp=_ref.dedupe,e=tmp===void 0?!1:tmp;_class_call_check(this,Ne1);this.classRegistry=new i0,this.symbolRegistry=new Dc(function(t){var i;return(i=t.description)!=null?i:""}),this.customTransformerRegistry=new n0,this.allowedErrorProps=[],this.dedupe=e}_create_class(Ne1,[{key:"serialize",value:function serialize(e){var t=new Map,i=zw(e,t,this,this.dedupe),n={json:i.transformedValue};i.annotations&&(n.meta=_object_spread_props(_object_spread({},n.meta),{values:i.annotations}));var a=SZ(t,this.dedupe);return a&&(n.meta=_object_spread_props(_object_spread({},n.meta),{referentialEqualities:a})),n.meta&&(n.meta.v=1),n}},{key:"deserialize",value:function deserialize(e,t){var o,s;var i=e.json,n=e.meta,a=t!=null&&t.inPlace?i:g0(i);return n!=null&&n.values&&(a=bZ(a,n.values,(o=n.v)!=null?o:0,this)),n!=null&&n.referentialEqualities&&(a=wZ(a,n.referentialEqualities,(s=n.v)!=null?s:0)),a}},{key:"stringify",value:function stringify(e){return JSON.stringify(this.serialize(e))}},{key:"parse",value:function parse(e){return this.deserialize(JSON.parse(e),{inPlace:!0})}},{key:"registerClass",value:function registerClass(e,t){this.classRegistry.register(e,t)}},{key:"registerSymbol",value:function registerSymbol(e,t){this.symbolRegistry.register(e,t)}},{key:"registerCustom",value:function registerCustom(e,t){this.customTransformerRegistry.register(_object_spread({name:t},e))}},{key:"allowErrorProps",value:function allowErrorProps(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++){e[_key]=arguments[_key]}var _this_allowedErrorProps;(_this_allowedErrorProps=this.allowedErrorProps).push.apply(_this_allowedErrorProps,_to_consumable_array(e))}}]);return Ne1}();Ne.defaultInstance=new Ne;Ne.serialize=Ne.defaultInstance.serialize.bind(Ne.defaultInstance);Ne.deserialize=Ne.defaultInstance.deserialize.bind(Ne.defaultInstance);Ne.stringify=Ne.defaultInstance.stringify.bind(Ne.defaultInstance);Ne.parse=Ne.defaultInstance.parse.bind(Ne.defaultInstance);Ne.registerClass=Ne.defaultInstance.registerClass.bind(Ne.defaultInstance);Ne.registerSymbol=Ne.defaultInstance.registerSymbol.bind(Ne.defaultInstance);Ne.registerCustom=Ne.defaultInstance.registerCustom.bind(Ne.defaultInstance);Ne.allowErrorProps=Ne.defaultInstance.allowErrorProps.bind(Ne.defaultInstance);var Xw=Ne;var qRr=Ne.serialize,DRr=Ne.deserialize,FRr=Ne.stringify,kRr=Ne.parse,RRr=Ne.registerClass,NRr=Ne.registerCustom,ORr=Ne.registerSymbol,TRr=Ne.allowErrorProps;var s$=Le(h0());var I0=Le(kr());function Her(r){var e=r.match(/<([^>]+)>;\s*rel="next"/);return e?e[1]:null}function Wer(r,e){var o;var t=e.propstat.prop,i=!jt((o=t.resourcetype)==null?void 0:o.collection),n=decodeURIComponent(e.href),a=r==="/"?n:(0,I0.join)("/",n.replace(r,""));return{filename:a,basename:(0,I0.basename)(a),lastmod:t.getlastmodified||"",size:t.getcontentlength?parseInt(t.getcontentlength,10):0,type:i?"directory":"file",etag:null,mime:t.getcontenttype}}function Nc(r,e){return _async_to_generator(function(){var t,i,_t,_$n,o,s,A,u,c,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=[];e=e.split("/").map(encodeURIComponent).join("/"),e.startsWith("/")||(e="/"+e);i="".concat(os).concat(e);_state.label=1;case 1:_state.trys.push([1,3,,6]);return[4,gn({url:i,method:"PROPFIND",headers:{Authorization:"Basic ".concat(r),"Content-Type":"application/xml",Depth:"1"},body:"\n \n \n \n \n \n \n \n \n "})];case 2:_$n=_state.sent(),o=new s$.XMLParser({attributeNamePrefix:"",removeNSPrefix:!0,parseTagValue:!1,numberParseOptions:{eNotation:!1,hex:!0,leadingZeros:!0},processEntities:!1}).parse(_$n.text),s=Array.isArray(o.multistatus.response)?o.multistatus.response:[o.multistatus.response];(_t=t).push.apply(_t,_to_consumable_array(s.slice(1).map(Bf(Wer,"/dav"))));A=_$n.headers.link||_$n.headers.Link;if(!A)return[3,7];u=Her(A);if(!u)return[3,7];c=new URL(u);c.pathname=decodeURI(c.pathname),i=c.toString();return[3,6];case 3:n=_state.sent();if(!Yi(n))return[3,5];z.error("503 错误,正在重试...");return[4,sleep(6e4)];case 4:_state.sent();return[3,6];case 5:throw n;case 6:return[3,1];case 7:return[2,t]}})})()}function Uf(r,e,t,i){function n(a){return _instanceof(a,t)?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(l){o(l)}}function A(c){try{u(i.throw(c))}catch(l){o(l)}}function u(c){c.done?a(c.value):n(c.value).then(s,A)}u((i=i.apply(r,e||[])).next())})}var mr=function(){"use strict";function mr1(){_class_call_check(this,mr1);this.mutex=Promise.resolve()}_create_class(mr1,[{key:"lock",value:function lock(){var e=function(){};return this.mutex=this.mutex.then(function(){return new Promise(e)}),new Promise(function(t){e=t})}},{key:"dispatch",value:function dispatch(e){return Uf(this,void 0,void 0,function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.lock()];case 1:t=_state.sent();_state.label=2;case 2:_state.trys.push([2,,4,5]);return[4,Promise.resolve(e())];case 3:return[2,_state.sent()];case 4:t();return[7];case 5:return[2]}})})}}]);return mr1}(),s1;function Jer(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global}var u1=Jer(),A1=(s1=u1.Buffer)!==null&&s1!==void 0?s1:null,Ker=u1.TextEncoder?new u1.TextEncoder:null;function g$(r,e){return(r&15)+(r>>6|r>>3&8)<<4|(e&15)+(e>>6|e>>3&8)}function Ver(r,e){var t=e.length>>1;for(var i=0;i>>4;r[i++]=a>9?a+A$:a+c$,a=e[n]&15,r[i++]=a>9?a+A$:a+c$}return String.fromCharCode.apply(null,r)}var l$=A1!==null?function(r){if(typeof r=="string"){var e=A1.from(r,"utf8");return new Uint8Array(e.buffer,e.byteOffset,e.length)}if(A1.isBuffer(r))return new Uint8Array(r.buffer,r.byteOffset,r.length);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Invalid data type!")}:function(r){if(typeof r=="string")return Ker.encode(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Invalid data type!")},f$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mf=new Uint8Array(256);for(var r=0;r>4,n+=1,i[n]=(s&15)<<4|A>>2,n+=1,i[n]=(A&3)<<6|u&63,n+=1}return i}var p0=16*1024,Pf=4,Xer=new mr,c1=new Map;function Zer(r,e){return Uf(this,void 0,void 0,function(){var _this,t,i,n,a,o,s,A,u,c,l,f,g,h,d,p,m,x,v,E,S;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;t=null,i=null,n=!1;if(typeof WebAssembly=="undefined")throw new Error("WebAssembly is not supported in this environment!");a=function(B){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;i.set(B,b)},o=function(){return i},s=function(){return t.exports},A=function(B){t.exports.Hash_SetMemorySize(B);var b=t.exports.Hash_GetBuffer(),C=t.exports.memory.buffer;i=new Uint8Array(C,b,B)},u=function(){return new DataView(t.exports.memory.buffer).getUint32(t.exports.STATE_SIZE,!0)},c=Xer.dispatch(function(){return Uf(_this,void 0,void 0,function(){var b,C,B;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!c1.has(r.name)){b=jer(r.data),C=WebAssembly.compile(b);c1.set(r.name,C)}return[4,c1.get(r.name)];case 1:B=_state.sent();return[4,WebAssembly.instantiate(B,{})];case 2:t=_state.sent();return[2]}})})}),l=function(){return Uf(_this,void 0,void 0,function(){var _tmp,B,b;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=t;if(_tmp)return[3,2];return[4,c];case 1:_tmp=_state.sent();_state.label=2;case 2:_tmp;B=t.exports.Hash_GetBuffer(),b=t.exports.memory.buffer;i=new Uint8Array(b,B,p0);return[2]}})})},f=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;n=!0,t.exports.Hash_Init(B)},g=function(B){var b=0;for(;b1&&arguments[1]!==void 0?arguments[1]:null;if(!n)throw new Error("digest() called before init()");return n=!1,t.exports.Hash_Final(b),B==="binary"?i.slice(0,e):u$(d,i,e)},m=function(){if(!n)throw new Error("save() can only be called after init() and before digest()");var B=t.exports.Hash_GetState(),b=u(),C=t.exports.memory.buffer,y=new Uint8Array(C,B,b),q=new Uint8Array(Pf+b);return Ver(q,r.hash),q.set(y,Pf),q},x=function(B){if(!_instanceof(B,Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");var b=t.exports.Hash_GetState(),C=u(),y=Pf+C,q=t.exports.memory.buffer;if(B.length!==y)throw new Error("Bad state length (expected ".concat(y," bytes, got ").concat(B.length,")"));if(!Yer(r.hash,B.subarray(0,Pf)))throw new Error("This state was written by an incompatible hash implementation");var w=B.subarray(Pf);new Uint8Array(q,b,C).set(w),n=!0},v=function(B){return typeof B=="string"?B.length1&&arguments[1]!==void 0?arguments[1]:null,C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!E(B,b))return f(b),h(B),p("hex",C);var y=l$(B);return i.set(y),t.exports.Hash_Calculate(y.length,b,C),u$(d,i,e)};return[4,l()];case 1:return[2,(_state.sent(),{getMemory:o,writeMemory:a,getExports:s,setMemorySize:A,init:f,update:h,digest:p,save:m,load:x,calculate:S,hashLength:e})]}})})}function $er(r,e,t){return Uf(this,void 0,void 0,function(){var i,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,r.lock()];case 1:i=_state.sent();return[4,Zer(e,t)];case 2:n=_state.sent();return[2,(i(),n)]}})})}var oNr=new mr;var sNr=new mr;var ANr=new DataView(new ArrayBuffer(4));var cNr=new mr;var uNr=new mr;var lNr=new mr;var fNr=new mr;var gNr=new Uint8Array(8);var dNr=new mr;var hNr=new mr;var INr=new mr;var pNr=new mr;var xNr=new mr;var err="sha256",rrr="AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwgHAAEBAQIAAwUEAQECAgYOAn8BQfCJBQt/AEGACAsHcAgGbWVtb3J5AgAOSGFzaF9HZXRCdWZmZXIAAAlIYXNoX0luaXQAAQtIYXNoX1VwZGF0ZQACCkhhc2hfRmluYWwABA1IYXNoX0dldFN0YXRlAAUOSGFzaF9DYWxjdWxhdGUABgpTVEFURV9TSVpFAwEKnEoHBQBBgAkLnQEAQQBCADcDwIkBQQBBHEEgIABB4AFGIgAbNgLoiQFBAEKnn+anxvST/b5/Qquzj/yRo7Pw2wAgABs3A+CJAUEAQrGWgP6fooWs6ABC/6S5iMWR2oKbfyAAGzcD2IkBQQBCl7rDg5Onlod3QvLmu+Ojp/2npX8gABs3A9CJAUEAQti9loj8oLW+NkLnzKfQ1tDrs7t/IAAbNwPIiQEL7wICAX4Gf0EAQQApA8CJASIBIACtfDcDwIkBAkACQAJAIAGnQT9xIgINAEGACSEDDAELAkBBwAAgAmsiBCAAIAQgAEkbIgNFDQAgA0EDcSEFIAJBgIkBaiEGQQAhAgJAIANBBEkNACADQfwAcSEHQQAhAgNAIAYgAmoiAyACQYAJai0AADoAACADQQFqIAJBgQlqLQAAOgAAIANBAmogAkGCCWotAAA6AAAgA0EDaiACQYMJai0AADoAACAHIAJBBGoiAkcNAAsLIAVFDQADQCAGIAJqIAJBgAlqLQAAOgAAIAJBAWohAiAFQX9qIgUNAAsLIAAgBEkNAUGAiQEQAyAAIARrIQAgBEGACWohAwsCQCAAQcAASQ0AA0AgAxADIANBwABqIQMgAEFAaiIAQT9LDQALCyAARQ0AQQAhAkEAIQUDQCACQYCJAWogAyACai0AADoAACACQQFqIQIgACAFQQFqIgVB/wFxSw0ACwsLoz4BRX9BACAAKAI8IgFBGHQgAUGA/gNxQQh0ciABQQh2QYD+A3EgAUEYdnJyIgFBGXcgAUEOd3MgAUEDdnMgACgCOCICQRh0IAJBgP4DcUEIdHIgAkEIdkGA/gNxIAJBGHZyciICaiAAKAIgIgNBGHQgA0GA/gNxQQh0ciADQQh2QYD+A3EgA0EYdnJyIgRBGXcgBEEOd3MgBEEDdnMgACgCHCIDQRh0IANBgP4DcUEIdHIgA0EIdkGA/gNxIANBGHZyciIFaiAAKAIEIgNBGHQgA0GA/gNxQQh0ciADQQh2QYD+A3EgA0EYdnJyIgZBGXcgBkEOd3MgBkEDdnMgACgCACIDQRh0IANBgP4DcUEIdHIgA0EIdkGA/gNxIANBGHZyciIHaiAAKAIkIgNBGHQgA0GA/gNxQQh0ciADQQh2QYD+A3EgA0EYdnJyIghqIAJBD3cgAkENd3MgAkEKdnNqIgNqIAAoAhgiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiCkEZdyAKQQ53cyAKQQN2cyAAKAIUIglBGHQgCUGA/gNxQQh0ciAJQQh2QYD+A3EgCUEYdnJyIgtqIAJqIAAoAhAiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiDEEZdyAMQQ53cyAMQQN2cyAAKAIMIglBGHQgCUGA/gNxQQh0ciAJQQh2QYD+A3EgCUEYdnJyIg1qIAAoAjAiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiDmogACgCCCIJQRh0IAlBgP4DcUEIdHIgCUEIdkGA/gNxIAlBGHZyciIPQRl3IA9BDndzIA9BA3ZzIAZqIAAoAigiCUEYdCAJQYD+A3FBCHRyIAlBCHZBgP4DcSAJQRh2cnIiEGogAUEPdyABQQ13cyABQQp2c2oiCUEPdyAJQQ13cyAJQQp2c2oiEUEPdyARQQ13cyARQQp2c2oiEkEPdyASQQ13cyASQQp2c2oiE2ogACgCNCIUQRh0IBRBgP4DcUEIdHIgFEEIdkGA/gNxIBRBGHZyciIVQRl3IBVBDndzIBVBA3ZzIA5qIBJqIAAoAiwiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnIiFkEZdyAWQQ53cyAWQQN2cyAQaiARaiAIQRl3IAhBDndzIAhBA3ZzIARqIAlqIAVBGXcgBUEOd3MgBUEDdnMgCmogAWogC0EZdyALQQ53cyALQQN2cyAMaiAVaiANQRl3IA1BDndzIA1BA3ZzIA9qIBZqIANBD3cgA0ENd3MgA0EKdnNqIhRBD3cgFEENd3MgFEEKdnNqIhdBD3cgF0ENd3MgF0EKdnNqIhhBD3cgGEENd3MgGEEKdnNqIhlBD3cgGUENd3MgGUEKdnNqIhpBD3cgGkENd3MgGkEKdnNqIhtBD3cgG0ENd3MgG0EKdnNqIhxBGXcgHEEOd3MgHEEDdnMgAkEZdyACQQ53cyACQQN2cyAVaiAYaiAOQRl3IA5BDndzIA5BA3ZzIBZqIBdqIBBBGXcgEEEOd3MgEEEDdnMgCGogFGogE0EPdyATQQ13cyATQQp2c2oiHUEPdyAdQQ13cyAdQQp2c2oiHkEPdyAeQQ13cyAeQQp2c2oiH2ogE0EZdyATQQ53cyATQQN2cyAYaiADQRl3IANBDndzIANBA3ZzIAFqIBlqIB9BD3cgH0ENd3MgH0EKdnNqIiBqIBJBGXcgEkEOd3MgEkEDdnMgF2ogH2ogEUEZdyARQQ53cyARQQN2cyAUaiAeaiAJQRl3IAlBDndzIAlBA3ZzIANqIB1qIBxBD3cgHEENd3MgHEEKdnNqIiFBD3cgIUENd3MgIUEKdnNqIiJBD3cgIkENd3MgIkEKdnNqIiNBD3cgI0ENd3MgI0EKdnNqIiRqIBtBGXcgG0EOd3MgG0EDdnMgHmogI2ogGkEZdyAaQQ53cyAaQQN2cyAdaiAiaiAZQRl3IBlBDndzIBlBA3ZzIBNqICFqIBhBGXcgGEEOd3MgGEEDdnMgEmogHGogF0EZdyAXQQ53cyAXQQN2cyARaiAbaiAUQRl3IBRBDndzIBRBA3ZzIAlqIBpqICBBD3cgIEENd3MgIEEKdnNqIiVBD3cgJUENd3MgJUEKdnNqIiZBD3cgJkENd3MgJkEKdnNqIidBD3cgJ0ENd3MgJ0EKdnNqIihBD3cgKEENd3MgKEEKdnNqIilBD3cgKUENd3MgKUEKdnNqIipBD3cgKkENd3MgKkEKdnNqIitBGXcgK0EOd3MgK0EDdnMgH0EZdyAfQQ53cyAfQQN2cyAbaiAnaiAeQRl3IB5BDndzIB5BA3ZzIBpqICZqIB1BGXcgHUEOd3MgHUEDdnMgGWogJWogJEEPdyAkQQ13cyAkQQp2c2oiLEEPdyAsQQ13cyAsQQp2c2oiLUEPdyAtQQ13cyAtQQp2c2oiLmogJEEZdyAkQQ53cyAkQQN2cyAnaiAgQRl3ICBBDndzICBBA3ZzIBxqIChqIC5BD3cgLkENd3MgLkEKdnNqIi9qICNBGXcgI0EOd3MgI0EDdnMgJmogLmogIkEZdyAiQQ53cyAiQQN2cyAlaiAtaiAhQRl3ICFBDndzICFBA3ZzICBqICxqICtBD3cgK0ENd3MgK0EKdnNqIjBBD3cgMEENd3MgMEEKdnNqIjFBD3cgMUENd3MgMUEKdnNqIjJBD3cgMkENd3MgMkEKdnNqIjNqICpBGXcgKkEOd3MgKkEDdnMgLWogMmogKUEZdyApQQ53cyApQQN2cyAsaiAxaiAoQRl3IChBDndzIChBA3ZzICRqIDBqICdBGXcgJ0EOd3MgJ0EDdnMgI2ogK2ogJkEZdyAmQQ53cyAmQQN2cyAiaiAqaiAlQRl3ICVBDndzICVBA3ZzICFqIClqIC9BD3cgL0ENd3MgL0EKdnNqIjRBD3cgNEENd3MgNEEKdnNqIjVBD3cgNUENd3MgNUEKdnNqIjZBD3cgNkENd3MgNkEKdnNqIjdBD3cgN0ENd3MgN0EKdnNqIjhBD3cgOEENd3MgOEEKdnNqIjlBD3cgOUENd3MgOUEKdnNqIjogOCA0IC4gLCAhIBsgGSADIA4gBEEAKALYiQEiO0EadyA7QRV3cyA7QQd3c0EAKALkiQEiPGpBACgC4IkBIj1BACgC3IkBIj5zIDtxID1zaiAHakGY36iUBGoiB0EAKALUiQEiP2oiACAMaiA7IA1qID4gD2ogPSAGaiAAID4gO3NxID5zaiAAQRp3IABBFXdzIABBB3dzakGRid2JB2oiQEEAKALQiQEiQWoiDCAAIDtzcSA7c2ogDEEadyAMQRV3cyAMQQd3c2pBz/eDrntqIkJBACgCzIkBIkNqIg0gDCAAc3EgAHNqIA1BGncgDUEVd3MgDUEHd3NqQaW3181+aiJEQQAoAsiJASIAaiIPIA0gDHNxIAxzaiAPQRp3IA9BFXdzIA9BB3dzakHbhNvKA2oiRSBBIEMgAHNxIEMgAHFzIABBHncgAEETd3MgAEEKd3NqIAdqIgZqIgdqIAUgD2ogCiANaiALIAxqIAcgDyANc3EgDXNqIAdBGncgB0EVd3MgB0EHd3NqQfGjxM8FaiIKIAYgAHMgQ3EgBiAAcXMgBkEedyAGQRN3cyAGQQp3c2ogQGoiDGoiBCAHIA9zcSAPc2ogBEEadyAEQRV3cyAEQQd3c2pBpIX+kXlqIgsgDCAGcyAAcSAMIAZxcyAMQR53IAxBE3dzIAxBCndzaiBCaiINaiIPIAQgB3NxIAdzaiAPQRp3IA9BFXdzIA9BB3dzakHVvfHYemoiQCANIAxzIAZxIA0gDHFzIA1BHncgDUETd3MgDUEKd3NqIERqIgZqIgcgDyAEc3EgBHNqIAdBGncgB0EVd3MgB0EHd3NqQZjVnsB9aiJCIAYgDXMgDHEgBiANcXMgBkEedyAGQRN3cyAGQQp3c2ogRWoiDGoiBWogFiAHaiAQIA9qIAggBGogBSAHIA9zcSAPc2ogBUEadyAFQRV3cyAFQQd3c2pBgbaNlAFqIgggDCAGcyANcSAMIAZxcyAMQR53IAxBE3dzIAxBCndzaiAKaiINaiIPIAUgB3NxIAdzaiAPQRp3IA9BFXdzIA9BB3dzakG+i8ahAmoiDiANIAxzIAZxIA0gDHFzIA1BHncgDUETd3MgDUEKd3NqIAtqIgZqIgcgDyAFc3EgBXNqIAdBGncgB0EVd3MgB0EHd3NqQcP7sagFaiIQIAYgDXMgDHEgBiANcXMgBkEedyAGQRN3cyAGQQp3c2ogQGoiDGoiBCAHIA9zcSAPc2ogBEEadyAEQRV3cyAEQQd3c2pB9Lr5lQdqIhYgDCAGcyANcSAMIAZxcyAMQR53IAxBE3dzIAxBCndzaiBCaiINaiIFaiABIARqIAIgB2ogFSAPaiAFIAQgB3NxIAdzaiAFQRp3IAVBFXdzIAVBB3dzakH+4/qGeGoiByANIAxzIAZxIA0gDHFzIA1BHncgDUETd3MgDUEKd3NqIAhqIgFqIgYgBSAEc3EgBHNqIAZBGncgBkEVd3MgBkEHd3NqQaeN8N55aiIEIAEgDXMgDHEgASANcXMgAUEedyABQRN3cyABQQp3c2ogDmoiAmoiDCAGIAVzcSAFc2ogDEEadyAMQRV3cyAMQQd3c2pB9OLvjHxqIgUgAiABcyANcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAQaiIDaiINIAwgBnNxIAZzaiANQRp3IA1BFXdzIA1BB3dzakHB0+2kfmoiCCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBZqIgFqIg8gF2ogESANaiAUIAxqIAkgBmogDyANIAxzcSAMc2ogD0EadyAPQRV3cyAPQQd3c2pBho/5/X5qIgYgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAHaiICaiIJIA8gDXNxIA1zaiAJQRp3IAlBFXdzIAlBB3dzakHGu4b+AGoiDCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIARqIgNqIhEgCSAPc3EgD3NqIBFBGncgEUEVd3MgEUEHd3NqQczDsqACaiINIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogBWoiAWoiFCARIAlzcSAJc2ogFEEadyAUQRV3cyAUQQd3c2pB79ik7wJqIg8gASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAIaiICaiIXaiATIBRqIBggEWogEiAJaiAXIBQgEXNxIBFzaiAXQRp3IBdBFXdzIBdBB3dzakGqidLTBGoiGCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIAZqIgNqIgkgFyAUc3EgFHNqIAlBGncgCUEVd3MgCUEHd3NqQdzTwuUFaiIUIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogDGoiAWoiESAJIBdzcSAXc2ogEUEadyARQRV3cyARQQd3c2pB2pHmtwdqIhcgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiANaiICaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakHSovnBeWoiGSACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIA9qIgNqIhNqIB4gEmogGiARaiAdIAlqIBMgEiARc3EgEXNqIBNBGncgE0EVd3MgE0EHd3NqQe2Mx8F6aiIaIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGGoiAWoiCSATIBJzcSASc2ogCUEadyAJQRV3cyAJQQd3c2pByM+MgHtqIhggASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAUaiICaiIRIAkgE3NxIBNzaiARQRp3IBFBFXdzIBFBB3dzakHH/+X6e2oiFCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBdqIgNqIhIgESAJc3EgCXNqIBJBGncgEkEVd3MgEkEHd3NqQfOXgLd8aiIXIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGWoiAWoiE2ogICASaiAcIBFqIB8gCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBx6KerX1qIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakHRxqk2aiIaIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGGoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB59KkoQFqIhggAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAUaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGFldy9AmoiFCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBdqIgJqIhMgI2ogJiASaiAiIBFqICUgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBuMLs8AJqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakH827HpBGoiGSADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBpqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQZOa4JkFaiIaIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGGoiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pB1OapqAZqIhggAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAUaiIDaiITaiAoIBJqICQgEWogJyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakG7laizB2oiFCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBdqIgFqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQa6Si454aiIXIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGWoiAmoiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pBhdnIk3lqIhkgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAaaiIDaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakGh0f+VemoiGiADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBhqIgFqIhNqICogEmogLSARaiApIAlqIBMgEiARc3EgEXNqIBNBGncgE0EVd3MgE0EHd3NqQcvM6cB6aiIYIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogFGoiAmoiCSATIBJzcSASc2ogCUEadyAJQRV3cyAJQQd3c2pB8JauknxqIhQgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAXaiIDaiIRIAkgE3NxIBNzaiARQRp3IBFBFXdzIBFBB3dzakGjo7G7fGoiFyADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBlqIgFqIhIgESAJc3EgCXNqIBJBGncgEkEVd3MgEkEHd3NqQZnQy4x9aiIZIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogGmoiAmoiE2ogMCASaiAvIBFqICsgCWogEyASIBFzcSARc2ogE0EadyATQRV3cyATQQd3c2pBpIzktH1qIhogAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAYaiIDaiIJIBMgEnNxIBJzaiAJQRp3IAlBFXdzIAlBB3dzakGF67igf2oiGCADIAJzIAFxIAMgAnFzIANBHncgA0ETd3MgA0EKd3NqIBRqIgFqIhEgCSATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQfDAqoMBaiIUIAEgA3MgAnEgASADcXMgAUEedyABQRN3cyABQQp3c2ogF2oiAmoiEiARIAlzcSAJc2ogEkEadyASQRV3cyASQQd3c2pBloKTzQFqIhcgAiABcyADcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiAZaiIDaiITIDZqIDIgEmogNSARaiAxIAlqIBMgEiARc3EgEXNqIBNBGncgE0EVd3MgE0EHd3NqQYjY3fEBaiIZIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGmoiAWoiCSATIBJzcSASc2ogCUEadyAJQRV3cyAJQQd3c2pBzO6hugJqIhogASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAYaiICaiIRIAkgE3NxIBNzaiARQRp3IBFBFXdzIBFBB3dzakG1+cKlA2oiGCACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBRqIgNqIhIgESAJc3EgCXNqIBJBGncgEkEVd3MgEkEHd3NqQbOZ8MgDaiIUIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogF2oiAWoiE2ogLEEZdyAsQQ53cyAsQQN2cyAoaiA0aiAzQQ93IDNBDXdzIDNBCnZzaiIXIBJqIDcgEWogMyAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakHK1OL2BGoiGyABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBlqIgJqIgkgEyASc3EgEnNqIAlBGncgCUEVd3MgCUEHd3NqQc+U89wFaiIZIAIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGmoiA2oiESAJIBNzcSATc2ogEUEadyARQRV3cyARQQd3c2pB89+5wQZqIhogAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAYaiIBaiISIBEgCXNxIAlzaiASQRp3IBJBFXdzIBJBB3dzakHuhb6kB2oiHCABIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBRqIgJqIhNqIC5BGXcgLkEOd3MgLkEDdnMgKmogNmogLUEZdyAtQQ53cyAtQQN2cyApaiA1aiAXQQ93IBdBDXdzIBdBCnZzaiIUQQ93IBRBDXdzIBRBCnZzaiIYIBJqIDkgEWogFCAJaiATIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakHvxpXFB2oiCSACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBtqIgNqIhEgEyASc3EgEnNqIBFBGncgEUEVd3MgEUEHd3NqQZTwoaZ4aiIbIAMgAnMgAXEgAyACcXMgA0EedyADQRN3cyADQQp3c2ogGWoiAWoiEiARIBNzcSATc2ogEkEadyASQRV3cyASQQd3c2pBiISc5nhqIhkgASADcyACcSABIANxcyABQR53IAFBE3dzIAFBCndzaiAaaiICaiITIBIgEXNxIBFzaiATQRp3IBNBFXdzIBNBB3dzakH6//uFeWoiGiACIAFzIANxIAIgAXFzIAJBHncgAkETd3MgAkEKd3NqIBxqIgNqIhQgPGo2AuSJAUEAID8gAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAJaiIBIANzIAJxIAEgA3FzIAFBHncgAUETd3MgAUEKd3NqIBtqIgIgAXMgA3EgAiABcXMgAkEedyACQRN3cyACQQp3c2ogGWoiAyACcyABcSADIAJxcyADQR53IANBE3dzIANBCndzaiAaaiIJajYC1IkBQQAgPSAvQRl3IC9BDndzIC9BA3ZzICtqIDdqIBhBD3cgGEENd3MgGEEKdnNqIhggEWogFCATIBJzcSASc2ogFEEadyAUQRV3cyAUQQd3c2pB69nBonpqIhkgAWoiEWo2AuCJAUEAIEEgCSADcyACcSAJIANxcyAJQR53IAlBE3dzIAlBCndzaiAZaiIBajYC0IkBQQAgPiAwQRl3IDBBDndzIDBBA3ZzIC9qIBdqIDpBD3cgOkENd3MgOkEKdnNqIBJqIBEgFCATc3EgE3NqIBFBGncgEUEVd3MgEUEHd3NqQffH5vd7aiIXIAJqIhJqNgLciQFBACBDIAEgCXMgA3EgASAJcXMgAUEedyABQRN3cyABQQp3c2ogF2oiAmo2AsyJAUEAIDsgNEEZdyA0QQ53cyA0QQN2cyAwaiA4aiAYQQ93IBhBDXdzIBhBCnZzaiATaiASIBEgFHNxIBRzaiASQRp3IBJBFXdzIBJBB3dzakHy8cWzfGoiESADamo2AtiJAUEAIAAgAiABcyAJcSACIAFxcyACQR53IAJBE3dzIAJBCndzaiARamo2AsiJAQuyBgIEfwF+QQAoAsCJASIAQQJ2QQ9xIgFBAnRBgIkBaiICIAIoAgBBfyAAQQN0IgB0QX9zcUGAASAAdHM2AgACQAJAAkAgAUEOSQ0AAkAgAUEORw0AQQBBADYCvIkBC0GAiQEQA0EAIQIMAQsgAUENRg0BIAFBAWohAgsgAiEDAkBBBiACa0EHcSIARQ0AIAIgAGohAyACQQJ0QYCJAWohAQNAIAFBADYCACABQQRqIQEgAEF/aiIADQALCyACQXlqQQdJDQAgA0ECdCEBA0AgAUGYiQFqQgA3AgAgAUGQiQFqQgA3AgAgAUGIiQFqQgA3AgAgAUGAiQFqQgA3AgAgAUEgaiIBQThHDQALC0EAIQFBAEEAKQPAiQEiBKciAEEbdCAAQQt0QYCA/AdxciAAQQV2QYD+A3EgAEEDdEEYdnJyNgK8iQFBACAEQh2IpyIAQRh0IABBgP4DcUEIdHIgAEEIdkGA/gNxIABBGHZycjYCuIkBQYCJARADQQBBACgC5IkBIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyNgLkiQFBAEEAKALgiQEiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnI2AuCJAUEAQQAoAtyJASIAQRh0IABBgP4DcUEIdHIgAEEIdkGA/gNxIABBGHZycjYC3IkBQQBBACgC2IkBIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyNgLYiQFBAEEAKALUiQEiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnI2AtSJAUEAQQAoAtCJASIAQRh0IABBgP4DcUEIdHIgAEEIdkGA/gNxIABBGHZycjYC0IkBQQBBACgCzIkBIgBBGHQgAEGA/gNxQQh0ciAAQQh2QYD+A3EgAEEYdnJyNgLMiQFBAEEAKALIiQEiAEEYdCAAQYD+A3FBCHRyIABBCHZBgP4DcSAAQRh2cnI2AsiJAQJAQQAoAuiJASICRQ0AQQAhAANAIAFBgAlqIAFByIkBai0AADoAACABQQFqIQEgAiAAQQFqIgBB/wFxSw0ACwsLBgBBgIkBC6MBAEEAQgA3A8CJAUEAQRxBICABQeABRiIBGzYC6IkBQQBCp5/mp8b0k/2+f0Krs4/8kaOz8NsAIAEbNwPgiQFBAEKxloD+n6KFrOgAQv+kuYjFkdqCm38gARs3A9iJAUEAQpe6w4OTp5aHd0Ly5rvjo6f9p6V/IAEbNwPQiQFBAELYvZaI/KC1vjZC58yn0NbQ67O7fyABGzcDyIkBIAAQAhAECwsLAQBBgAgLBHAAAAA=",trr="8c18dd94",irr={name:err,data:rrr,hash:trr},mNr=new mr;var nrr=new mr,x0=null;function d$(r){if(x0===null)return $er(nrr,irr,32).then(function(e){return x0=e,x0.calculate(r,256)});try{var _$e1=x0.calculate(r,256);return Promise.resolve(_$e1)}catch(e){return Promise.reject(e)}}var vNr=new mr;var CNr=new mr;var BNr=new mr;var ENr=new mr;var yNr=new Uint8Array(8);var QNr=new mr;var bNr=new Uint8Array(8);var wNr=new mr;var SNr=new Uint8Array(8);var _Nr=new mr;var qNr=new mr;var DNr=new mr;var v$=require("obsidian");var h$=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function Gf(r,e){e?e=_object_spread({},h$,e):e=h$;var t=p$(e);return t.dispatch(r),t.toString()}var arr=Object.freeze(["prototype","__proto__","constructor"]);function p$(r){var e="",t=new Map,i=function(n){e+=n};return{toString:function toString(){return e},getContext:function getContext(){return t},dispatch:function dispatch(n){return r.replacer&&(n=r.replacer(n)),this[n===null?"null":typeof n==="undefined"?"undefined":_type_of(n)](n)},object:function object(n){var _this=this;if(n&&typeof n.toJSON=="function")return this.object(n.toJSON());var a=Object.prototype.toString.call(n),o="",s=a.length;s<10?o="unknown:["+a+"]":o=a.slice(8,s-1),o=o.toLowerCase();var A=null;if((A=t.get(n))===void 0)t.set(n,t.size);else return this.dispatch("[CIRCULAR:"+A+"]");if(typeof Buffer!="undefined"&&Buffer.isBuffer&&Buffer.isBuffer(n))return i("buffer:"),i(n.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](n):r.ignoreUnknown||this.unkown(n,o);else{var u=Object.keys(n);r.unorderedObjects&&(u=u.sort());var c=[];r.respectType!==!1&&!I$(n)&&(c=arr),r.excludeKeys&&(u=u.filter(function(f){return!r.excludeKeys(f)}),c=c.filter(function(f){return!r.excludeKeys(f)})),i("object:"+(u.length+c.length)+":");var l=function(f){_this.dispatch(f),i(":"),r.excludeValues||_this.dispatch(n[f]),i(",")};var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=u[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var f=_step.value;l(f)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=c[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var f2=_step1.value;l(f2)}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}}},array:function array(n,a){if(a=a===void 0?r.unorderedArrays!==!1:a,i("array:"+n.length+":"),!a||n.length<=1){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=n[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var A=_step.value;this.dispatch(A)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return}var o=new Map,s=n.map(function(A){var u=p$(r);u.dispatch(A);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=u.getContext()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),c=_step_value[0],l=_step_value[1];o.set(c,l)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return u.toString()});return t=o,s.sort(),this.array(s,!1)},date:function date(n){return i("date:"+n.toJSON())},symbol:function symbol(n){return i("symbol:"+n.toString())},unkown:function unkown(n,a){if(i(a),!!n&&(i(":"),n&&typeof n.entries=="function"))return this.array(Array.from(n.entries()),!0)},error:function error(n){return i("error:"+n.toString())},boolean:function boolean(n){return i("bool:"+n)},string:function string(n){i("string:"+n.length+":"),i(n)},function:function _function(n){i("fn:"),I$(n)?this.dispatch("[native]"):this.dispatch(n.toString()),r.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(n.name)),r.respectFunctionProperties&&this.object(n)},number:function number(n){return i("number:"+n)},xml:function xml(n){return i("xml:"+n.toString())},null:function _null(){return i("Null")},undefined:function undefined1(){return i("Undefined")},regexp:function regexp(n){return i("regex:"+n.toString())},uint8array:function uint8array(n){return i("uint8array:"),this.dispatch(Array.prototype.slice.call(n))},uint8clampedarray:function uint8clampedarray(n){return i("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(n))},int8array:function int8array(n){return i("int8array:"),this.dispatch(Array.prototype.slice.call(n))},uint16array:function uint16array(n){return i("uint16array:"),this.dispatch(Array.prototype.slice.call(n))},int16array:function int16array(n){return i("int16array:"),this.dispatch(Array.prototype.slice.call(n))},uint32array:function uint32array(n){return i("uint32array:"),this.dispatch(Array.prototype.slice.call(n))},int32array:function int32array(n){return i("int32array:"),this.dispatch(Array.prototype.slice.call(n))},float32array:function float32array(n){return i("float32array:"),this.dispatch(Array.prototype.slice.call(n))},float64array:function float64array(n){return i("float64array:"),this.dispatch(Array.prototype.slice.call(n))},arraybuffer:function arraybuffer(n){return i("arraybuffer:"),this.dispatch(new Uint8Array(n))},url:function url(n){return i("url:"+n.toString())},map:function map(n){i("map:");var a=_to_consumable_array(n);return this.array(a,r.unorderedSets!==!1)},set:function set(n){i("set:");var a=_to_consumable_array(n);return this.array(a,r.unorderedSets!==!1)},file:function file(n){return i("file:"),this.dispatch([n.name,n.size,n.type,n.lastModfied])},blob:function blob(){if(r.ignoreUnknown)return i("[blob]");throw new Error("Hashing Blob objects is currently not supported\nUse \"options.replacer\" or \"options.ignoreUnknown\"\n")},domwindow:function domwindow(){return i("domwindow")},bigint:function bigint(n){return i("bigint:"+n.toString())},process:function process1(){return i("process")},timer:function timer(){return i("timer")},pipe:function pipe(){return i("pipe")},tcp:function tcp(){return i("tcp")},udp:function udp(){return i("udp")},tty:function tty(){return i("tty")},statwatcher:function statwatcher(){return i("statwatcher")},securecontext:function securecontext(){return i("securecontext")},connection:function connection(){return i("connection")},zlib:function zlib(){return i("zlib")},context:function context(){return i("context")},nodescript:function nodescript(){return i("nodescript")},httpparser:function httpparser(){return i("httpparser")},dataview:function dataview(){return i("dataview")},signal:function signal(){return i("signal")},fsevent:function fsevent(){return i("fsevent")},tlswrap:function tlswrap(){return i("tlswrap")}}}var x$="[native code] }",orr=x$.length;function I$(r){return typeof r!="function"?!1:Function.prototype.toString.call(r).slice(-orr)===x$}function l1(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return r===e||Gf(r,t)===Gf(e,t)}var m$=Le(kr());function nt(r){return r.startsWith("/")||(r="/".concat(r)),r.endsWith("/")||(r="".concat(r,"/")),(0,m$.normalize)(r)}function aa(r,e){return Gf({vaultName:r,remoteBaseDir:nt(e)})}function Lf(r,e){return _async_to_generator(function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,d$(r)];case 1:t=_state.sent();return[2,(e=(0,v$.normalizePath)(e),"".concat(t,":").concat(e))]}})})()}function C$(r){return r.buffer.byteLength===r.byteLength&&r.byteOffset===0?r.buffer:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}var Es=function(){"use strict";function Es1(e,t){_class_call_check(this,Es1);this.plugin=e;this.remoteCacheDir=t}_create_class(Es1,[{key:"saveCache",value:function saveCache(e){return _async_to_generator(function(){var _$t,n,a,_tmp,_2,o,s,A,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,7,,8]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$t=_state.sent();_tmp={};_2=Cn.get;return[4,this.plugin.getToken()];case 2:return[4,Lf.apply(void 0,[_state.sent(),this.plugin.remoteBaseDir])];case 3:return[4,_2.apply(Cn,[_state.sent()])];case 4:n=(_tmp.traverseWebDAVCache=_state.sent()||void 0,_tmp.exportedAt=new Date().toISOString(),_tmp),a=Xw.stringify(n);if(!a||a.length===0)throw new Error("Cache data serialization failed");o=new TextEncoder,s=oZ(o.encode(a),{level:9}),A=(0,m0.join)(this.remoteCacheDir,e);return[4,_$t.createDirectory(this.remoteCacheDir,{recursive:!0})];case 5:_state.sent();return[4,_$t.putFileContents(A,C$(s),{overwrite:!0})];case 6:return[2,(_state.sent(),new vo.Notice(_.t("settings.cache.saveModal.success")),Promise.resolve())];case 7:t=_state.sent();return[2,(z.error("保存缓存出错:",t),new vo.Notice(_.t("settings.cache.saveModal.error",{message:t.message})),Promise.reject(t))];case 8:return[2]}})}).call(this)}},{key:"restoreCache",value:function restoreCache(e){return _async_to_generator(function(){var _$t,i,a,o,A,u,c,_tmp,_2,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,8,,9]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$t=_state.sent(),i=(0,m0.join)(this.remoteCacheDir,e);return[4,_$t.exists(i).catch(function(){return!1})];case 2:if(!_state.sent())return[2,(new vo.Notice(_.t("settings.cache.restoreModal.fileNotFound")),Promise.reject(new Error("File not found")))];return[4,_$t.getFileContents(i,{format:"binary"})];case 3:a=_state.sent();if(!a||a.byteLength===0)throw new Error("Cache file is empty");o=sZ(new Uint8Array(a));if(!o||o.length===0)throw new Error("Inflate failed or resulted in empty content");A=new TextDecoder().decode(o);if(!A||A.trim()==="")throw new Error("Cache file content is invalid or empty");u=Xw.parse(A);if(!u)throw new Error("Invalid cache file format");c=u.traverseWebDAVCache;_tmp=c;if(!_tmp)return[3,7];_2=Cn.set;return[4,this.plugin.getToken()];case 4:return[4,Lf.apply(void 0,[_state.sent(),this.plugin.remoteBaseDir])];case 5:return[4,_2.apply(Cn,[_state.sent(),c])];case 6:_tmp=_state.sent();_state.label=7;case 7:return[2,(_tmp,new vo.Notice(_.t("settings.cache.restoreModal.success")),Promise.resolve())];case 8:t=_state.sent();return[2,(z.error("恢复缓存出错:",t),new vo.Notice(_.t("settings.cache.restoreModal.error",{message:t.message})),Promise.reject(t))];case 9:return[2]}})}).call(this)}},{key:"deleteCache",value:function deleteCache(e){return _async_to_generator(function(){var _$t,i,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$t=_state.sent(),i=(0,m0.join)(this.remoteCacheDir,e);return[4,_$t.deleteFile(i)];case 2:return[2,(_state.sent(),new vo.Notice(_.t("settings.cache.restoreModal.deleteSuccess")),Promise.resolve())];case 3:t=_state.sent();return[2,(z.error("删除缓存文件出错:",t),new vo.Notice(_.t("settings.cache.restoreModal.deleteError",{message:t.message})),Promise.reject(t))];case 4:return[2]}})}).call(this)}},{key:"loadCacheFileList",value:function loadCacheFileList(){return _async_to_generator(function(){var _$e1,_tmp,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,8,,9]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$e1=_state.sent();return[4,_$e1.exists(this.remoteCacheDir).catch(function(){return!1})];case 2:if(!_state.sent())return[3,5];return[4,this.plugin.getToken()];case 3:return[4,Nc.apply(void 0,[_state.sent(),this.remoteCacheDir])];case 4:_tmp=_state.sent().map(fo);return[3,7];case 5:return[4,_$e1.createDirectory(this.remoteCacheDir,{recursive:!0})];case 6:_tmp=(_state.sent(),[]);_state.label=7;case 7:return[2,_tmp];case 8:e=_state.sent();throw z.error("加载缓存文件列表时出错:",e),e;case 9:return[2]}})}).call(this)}}]);return Es1}();var Wf=function(_Hf_Modal){"use strict";_inherits(Wf1,_Hf_Modal);function Wf1(t,i,n){_class_call_check(this,Wf1);var _this;_this=_call_super(this,Wf1,[t.app]);_this.plugin=t;_this.remoteCacheDir=i;_this.onSuccess=n;_this.files=[];_this.cacheService=new Es(t,i);return _this}_create_class(Wf1,[{key:"onOpen",value:function onOpen(){return _async_to_generator(function(){var _this,_this1,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_this1=this,t=_this1.contentEl;new Hf.Setting(t).setName(_.t("settings.cache.restoreModal.title")).setDesc(_.t("settings.cache.restoreModal.description")),this.fileList=t.createDiv({cls:"max-h-50vh overflow-y-auto pb-2 flex flex-col"});return[4,this.loadFileList()];case 1:_state.sent(),new Hf.Setting(t).addButton(function(i){i.setButtonText(_.t("settings.cache.restoreModal.refresh")).onClick(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.loadFileList()];case 1:_state.sent();return[2]}})}).call(_this)})}).addButton(function(i){i.setButtonText(_.t("settings.cache.restoreModal.close")).onClick(function(){_this.close()})});return[2]}})}).call(this)}},{key:"loadFileList",value:function loadFileList(){return _async_to_generator(function(){var _this,_2,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_state.label=1;case 1:_state.trys.push([1,3,,4]);_2=this;return[4,this.cacheService.loadCacheFileList()];case 2:if(_2.files=_state.sent(),this.files.length===0){this.renderEmptyList();return[2]}this.fileList.empty(),this.files.forEach(function(param){var _$t=param.basename;var i=_this.fileList.createDiv({cls:"flex justify-between items-center py-2"});i.createSpan({text:_$t,cls:"flex-1 break-all mr-2"});var n=i.createDiv({cls:"flex gap-2"});n.createEl("button",{text:_.t("settings.cache.restoreModal.restore"),cls:"mod-cta"}).addEventListener("click",function(){return _async_to_generator(function(){var A,u;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.cacheService.restoreCache(_$t)];case 1:_state.sent(),(A=this.onSuccess)==null||A.call(this),this.close();return[3,3];case 2:u=_state.sent();return[3,3];case 3:return[2]}})}).call(_this)});var o=!1,s=n.createEl("button",{text:_.t("settings.cache.restoreModal.delete"),cls:"transition"});s.addEventListener("click",function(){return _async_to_generator(function(){var A;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!o)return[3,6];_state.label=1;case 1:_state.trys.push([1,4,,5]);return[4,this.cacheService.deleteCache(_$t)];case 2:_state.sent();return[4,this.loadFileList()];case 3:_state.sent();return[3,5];case 4:A=_state.sent();return[3,5];case 5:return[3,7];case 6:o=!0,s.setText(_.t("settings.cache.restoreModal.deleteConfirm")),s.classList.add("mod-warning");_state.label=7;case 7:return[2]}})}).call(_this)}),s.addEventListener("blur",function(){o=!1,s.setText(_.t("settings.cache.restoreModal.delete")),s.classList.remove("mod-warning")})});return[3,4];case 3:t=_state.sent();z.error("加载缓存文件列表时出错:",t),this.fileList.empty(),this.fileList.createEl("p",{text:_.t("settings.cache.restoreModal.loadError",{message:t.message}),cls:"p-12px text-center text-[var(--text-error)]"});return[3,4];case 4:return[2]}})}).call(this)}},{key:"renderEmptyList",value:function renderEmptyList(){this.fileList.empty(),this.fileList.createEl("p",{text:_.t("settings.cache.restoreModal.noFiles"),cls:"p-12px text-center"})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return Wf1}(Hf.Modal);var Oc=require("obsidian");var Jf=function(_Oc_Modal){"use strict";_inherits(Jf1,_Oc_Modal);function Jf1(t,i,n){_class_call_check(this,Jf1);var _this;_this=_call_super(this,Jf1,[t.app]);_this.plugin=t;_this.remoteCacheDir=i;_this.onSuccess=n;_this.cacheService=new Es(t,i);return _this}_create_class(Jf1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.createEl("h2",{text:_.t("settings.cache.saveModal.title")}),t.createEl("p",{text:_.t("settings.cache.saveModal.description"),cls:"setting-item-description"});var i="".concat(this.plugin.app.vault.getName(),".").concat((0,Oc.moment)().format("YYYY-MM-DD HH_mm_ss"),".SyncCache"),a=t.createDiv().createEl("input",{cls:"w-full",type:"text",value:i});new Oc.Setting(t).addButton(function(o){o.setButtonText(_.t("settings.cache.saveModal.save")).setCta().onClick(function(){return _async_to_generator(function(){var s,A,A2;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);A=a.value;A.endsWith(".v1")||(A+=".v1");return[4,this.cacheService.saveCache(A)];case 1:_state.sent(),(s=this.onSuccess)==null||s.call(this),this.close();return[3,3];case 2:A2=_state.sent();return[3,3];case 3:return[2]}})}).call(_this)})}).addButton(function(o){o.setButtonText(_.t("settings.cache.saveModal.cancel")).onClick(function(){_this.close()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return Jf1}(Oc.Modal);var see=require("obsidian");var ze={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId:function getContextId(){return B$(this.context.count)},getNextContextId:function getNextContextId(){return B$(this.context.count++)}};function B$(r){var e=String(r),t=e.length-1;return ze.context.id+(t?String.fromCharCode(96+t):"")+e}function g1(r){ze.context=r}function srr(){return _object_spread_props(_object_spread({},ze.context),{id:ze.getNextContextId(),count:0})}var Arr=!1,crr=function(r,e){return r===e},A4r=Symbol("solid-proxy");var urr=Symbol("solid-track"),c4r=Symbol("solid-dev-component"),C0={equals:crr},E$=null,_$=O$,ci=1,Vf=2,q$={owned:null,cleanups:null,context:null,owner:null},f1={},Pe=null,ie=null,Mc=null,Tc=null,rr=null,Lr=null,Et=null,E0=0;function Kf(r,e){var t=rr,i=Pe,n=r.length===0,a=e===void 0?i:e,o=n?q$:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=n?r:function(){return r(function(){return qi(function(){return Co(o)})})};Pe=o,rr=null;try{return Ai(s,!0)}finally{rr=t,Pe=i}}function at(r,e){e=e?Object.assign({},C0,e):C0;var t={value:r,observers:null,observerSlots:null,comparator:e.equals||void 0},i=function(n){return typeof n=="function"&&(ie&&ie.running&&ie.sources.has(t)?n=n(t.tValue):n=n(t.value)),N$(t,n)};return[R$.bind(t),i]}function y$(r,e,t){var i=y0(r,e,!0,ci);Mc&&ie&&ie.running?Lr.push(i):Uc(i)}function Bo(r,e,t){var i=y0(r,e,!1,ci);Mc&&ie&&ie.running?Lr.push(i):Uc(i)}function d1(r,e,t){_$=hrr;var i=y0(r,e,!1,ci),n=Yf&&k$(Yf);n&&(i.suspense=n),(!t||!t.render)&&(i.user=!0),Et?Et.push(i):Uc(i)}function Pc(r,e,t){t=t?Object.assign({},C0,t):C0;var i=y0(r,e,!0,0);return i.observers=null,i.observerSlots=null,i.comparator=t.equals||void 0,Mc&&ie&&ie.running?(i.tState=ci,Lr.push(i)):Uc(i),R$.bind(i)}function lrr(r){return r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&"then"in r}function D$(r,e,t){var i,n,a;typeof e=="function"?(i=r,n=e,a=t||{}):(i=!0,n=r,a=e||{});var o=null,s=f1,A=null,u=!1,c=!1,l="initialValue"in a,f=typeof i=="function"&&Pc(i),g=new Set,_ref=_sliced_to_array((a.storage||at)(a.initialValue),2),h=_ref[0],d=_ref[1],_at=_sliced_to_array(at(void 0),2),p=_at[0],m=_at[1],_at1=_sliced_to_array(at(void 0,{equals:!1}),2),x=_at1[0],v=_at1[1],_at2=_sliced_to_array(at(l?"ready":"unresolved"),2),E=_at2[0],S=_at2[1];ze.context&&(A=ze.getNextContextId(),a.ssrLoadFrom==="initial"?s=a.initialValue:ze.load&&ze.has(A)&&(s=ze.load(A)));function B(w,N,F,M){return o===w&&(o=null,M!==void 0&&(l=!0),(w===s||N===s)&&a.onHydrated&&queueMicrotask(function(){return a.onHydrated(M,{value:N})}),s=f1,ie&&w&&u?(ie.promises.delete(w),u=!1,Ai(function(){ie.running=!0,b(N,F)},!1)):b(N,F)),N}function b(w,N){Ai(function(){N===void 0&&d(function(){return w}),S(N!==void 0?"errored":l?"ready":"unresolved"),m(N);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=g.keys()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var F=_step.value;F.decrement()}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}g.clear()},!1)}function C(){var w=Yf&&k$(Yf),N=h(),F=p();if(F!==void 0&&!o)throw F;return rr&&!rr.user&&w&&y$(function(){x(),o&&(w.resolved&&ie&&u?ie.promises.add(o):g.has(w)||(w.increment(),g.add(w)))}),N}function y(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(w!==!1&&c)return;c=!1;var N=f?f():i;if(u=ie&&ie.running,N==null||N===!1){B(o,qi(h));return}ie&&o&&ie.promises.delete(o);var F,M=s!==f1?s:qi(function(){try{return n(N,{value:h(),refetching:w})}catch(U){F=U}});if(F!==void 0){B(o,void 0,v0(F),N);return}else if(!lrr(M))return B(o,M,void 0,N),M;return o=M,"v"in M?(M.s===1?B(o,M.v,void 0,N):B(o,void 0,v0(M.v),N),M):(c=!0,queueMicrotask(function(){return c=!1}),Ai(function(){S(l?"refreshing":"pending"),v()},!1),M.then(function(U){return B(M,U,void 0,N)},function(U){return B(M,void 0,v0(U),N)}))}Object.defineProperties(C,{state:{get:function(){return E()}},error:{get:function(){return p()}},loading:{get:function get(){var w=E();return w==="pending"||w==="refreshing"}},latest:{get:function get(){if(!l)return C();var w=p();if(w&&!o)throw w;return h()}}});var q=Pe;return f?y$(function(){return q=Pe,y(!1)}):y(!1),[C,{refetch:function(w){return F$(q,function(){return y(w)})},mutate:d}]}function qi(r){if(!Tc&&rr===null)return r();var e=rr;rr=null;try{return Tc?Tc.untrack(r):r()}finally{rr=e}}function h1(r){return Pe===null||(Pe.cleanups===null?Pe.cleanups=[r]:Pe.cleanups.push(r)),r}function F$(r,e){var t=Pe,i=rr;Pe=r,rr=null;try{return Ai(e,!0)}catch(n){Q0(n)}finally{Pe=t,rr=i}}function frr(r){if(ie&&ie.running)return r(),ie.done;var e=rr,t=Pe;return Promise.resolve().then(function(){rr=e,Pe=t;var i;return(Mc||Yf)&&(i=ie||(ie={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),i.done||(i.done=new Promise(function(n){return i.resolve=n})),i.running=!0),Ai(r,!1),rr=Pe=null,i?i.done:void 0})}var _at=_sliced_to_array(at(!1),2),u4r=_at[0],Q$=_at[1];function k$(r){var e;return Pe&&Pe.context&&(e=Pe.context[r.id])!==void 0?e:r.defaultValue}var Yf;function R$(){var _this=this;var r=ie&&ie.running;if(this.sources&&(r?this.tState:this.state))if((r?this.tState:this.state)===ci)Uc(this);else{var e=Lr;Lr=null,Ai(function(){return B0(_this)},!1),Lr=e}if(rr){var e1=this.observers?this.observers.length:0;rr.sources?(rr.sources.push(this),rr.sourceSlots.push(e1)):(rr.sources=[this],rr.sourceSlots=[e1]),this.observers?(this.observers.push(rr),this.observerSlots.push(rr.sources.length-1)):(this.observers=[rr],this.observerSlots=[rr.sources.length-1])}return r&&ie.sources.has(this)?this.tValue:this.value}function N$(r,e,t){var i=ie&&ie.running&&ie.sources.has(r)?r.tValue:r.value;if(!r.comparator||!r.comparator(i,e)){if(ie){var n=ie.running;(n||!t&&ie.sources.has(r))&&(ie.sources.add(r),r.tValue=e),n||(r.value=e)}else r.value=e;r.observers&&r.observers.length&&Ai(function(){for(var n=0;n1e6)throw Lr=[],new Error},!1)}return e}function Uc(r){if(!r.fn)return;Co(r);var e=E0;b$(r,ie&&ie.running&&ie.sources.has(r)?r.tValue:r.value,e),ie&&!ie.running&&ie.sources.has(r)&&queueMicrotask(function(){Ai(function(){ie&&(ie.running=!0),rr=Pe=r,b$(r,r.tValue,e),rr=Pe=null},!1)})}function b$(r,e,t){var i,n=Pe,a=rr;rr=Pe=r;try{i=r.fn(e)}catch(o){return r.pure&&(ie&&ie.running?(r.tState=ci,r.tOwned&&r.tOwned.forEach(Co),r.tOwned=void 0):(r.state=ci,r.owned&&r.owned.forEach(Co),r.owned=null)),r.updatedAt=t+1,Q0(o)}finally{rr=a,Pe=n}(!r.updatedAt||r.updatedAt<=t)&&(r.updatedAt!=null&&"observers"in r?N$(r,i,!0):ie&&ie.running&&r.pure?(ie.sources.add(r),r.tValue=i):r.value=i,r.updatedAt=t)}function y0(r,e,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ci,n=arguments.length>4?arguments[4]:void 0;var a={fn:r,state:i,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:Pe,context:Pe?Pe.context:null,pure:t};if(ie&&ie.running&&(a.state=0,a.tState=i),Pe===null||Pe!==q$&&(ie&&ie.running&&Pe.pure?Pe.tOwned?Pe.tOwned.push(a):Pe.tOwned=[a]:Pe.owned?Pe.owned.push(a):Pe.owned=[a]),Tc&&a.fn){var _at=_sliced_to_array(at(void 0,{equals:!1}),2),o=_at[0],s=_at[1],A=Tc.factory(a.fn,s);h1(function(){return A.dispose()});var u=function(){return frr(s).then(function(){return c.dispose()})},c=Tc.factory(a.fn,u);a.fn=function(l){return o(),ie&&ie.running?c.track(l):A.track(l)}}return a}function zf(r){var e=ie&&ie.running;if((e?r.tState:r.state)===0)return;if((e?r.tState:r.state)===Vf)return B0(r);if(r.suspense&&qi(r.suspense.inFallback))return r.suspense.effects.push(r);var t=[r];for(;(r=r.owner)&&(!r.updatedAt||r.updatedAt=0;i--){if(r=t[i],e){var n=r,a=t[i+1];for(;(n=n.owner)&&n!==a;)if(ie.disposed.has(n))return}if((e?r.tState:r.state)===ci)Uc(r);else if((e?r.tState:r.state)===Vf){var n1=Lr;Lr=null,Ai(function(){return B0(r,t[0])},!1),Lr=n1}}}function Ai(r,e){if(Lr)return r();var t=!1;e||(Lr=[]),Et?t=!0:Et=[],E0++;try{var _$i=r();return grr(t),_$i}catch(i){t||(Et=null),Lr=null,Q0(i)}}function grr(r){if(Lr&&(Mc&&ie&&ie.running?drr(Lr):O$(Lr),Lr=null),r)return;var e;if(ie){if(!ie.promises.size&&!ie.queue.size){var i=ie.sources,n=ie.disposed;Et.push.apply(Et,ie.effects),e=ie.resolve;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Et[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;"tState"in a&&(a.state=a.tState),delete a.tState}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}ie=null,Ai(function(){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=n[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;Co(a)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=i[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var a1=_step1.value;if(a1.value=a1.tValue,a1.owned)for(var o=0,s=a1.owned.length;o=0;e--)Co(r.tOwned[e]);delete r.tOwned}if(ie&&ie.running&&r.pure)P$(r,!0);else if(r.owned){for(e=r.owned.length-1;e>=0;e--)Co(r.owned[e]);r.owned=null}if(r.cleanups){for(e=r.cleanups.length-1;e>=0;e--)r.cleanups[e]();r.cleanups=null}ie&&ie.running?r.tState=0:r.state=0}function P$(r,e){if(e||(r.tState=0,ie.disposed.add(r)),r.owned)for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:Pe;var t=E$&&e&&e.context&&e.context[E$],i=v0(r);if(!t)throw i;Et?Et.push({fn:function fn(){w$(i,t,e)},state:ci}):w$(i,t,e)}var Irr=Symbol("fallback");function S$(r){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:{};var i=[],n=[],a=[],o=0,s=e.length>1?[]:null;return h1(function(){return S$(a)}),function(){var f=function f(g){if(a[l]=g,s){var _at=_sliced_to_array(at(l),2),h=_at[0],d=_at[1];return s[l]=d,e(A[l],h)}return e(A[l])};var A=r()||[],u=A.length,c,l;return A[urr],qi(function(){var g,h,d,p,m,x,v,E,S;if(u===0)o!==0&&(S$(a),a=[],i=[],n=[],o=0,s&&(s=[])),t.fallback&&(i=[Irr],n[0]=Kf(function(B){return a[0]=B,t.fallback()}),o=1);else if(o===0){for(n=new Array(u),l=0;l=x&&E>=x&&i[v]===A[E];v--,E--)d[E]=n[v],p[E]=a[v],s&&(m[E]=s[v]);for(g=new Map,h=new Array(E+1),l=E;l>=x;l--)S=A[l],c=g.get(S),h[l]=c===void 0?-1:c,g.set(S,l);for(c=x;c<=v;c++)S=i[c],l=g.get(S),l!==void 0&&l!==-1?(d[l]=n[c],p[l]=a[c],s&&(m[l]=s[c]),l=h[l],g.set(S,l)):a[c]();for(l=x;l.")};function I1(r){var e="fallback"in r&&{fallback:function(){return r.fallback}};return Pc(prr(function(){return r.each},r.children,e||void 0))}function jf(r){var e=r.keyed,t=Pc(function(){return r.when},void 0,void 0),i=e?t:Pc(t,void 0,{equals:function(n,a){return!n==!a}});return Pc(function(){var n=i();if(n){var a=r.children;return typeof a=="function"&&a.length>0?qi(function(){return a(e?n:function(){if(!qi(i))throw mrr("Show");return t()})}):a}return r.fallback},void 0,void 0)}var Crr=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],C4r=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable"].concat(_to_consumable_array(Crr)));function Brr(r,e,t){var i=t.length,n=e.length,a=i,o=0,s=0,A=e[n-1].nextSibling,u=null;for(;oc3-s){var h=e[o];for(;s3&&arguments[3]!==void 0?arguments[3]:{};var n;return Kf(function(a){n=a,e===document?r():ot(e,r(),e.firstChild?null:void 0,t)},i.owner),function(){n(),e.textContent=""}}function oa(r,e,t,i){var n,a=function(){var s=i?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return s.innerHTML=r,t?s.content.firstChild.firstChild:i?s.firstChild:s.content.firstChild},o=e?function(){return qi(function(){return document.importNode(n||(n=a()),!0)})}:function(){return(n||(n=a())).cloneNode(!0)};return o.cloneNode=o,o}function Lc(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window.document;var t=e[M$]||(e[M$]=new Set);for(var i=0,n=r.length;i2&&arguments[2]!==void 0?arguments[2]:null;for(var i=0,n=e.length;i=0;o--){var s=e[o];if(n!==s){var A=s.parentNode===r;!a&&!o?A?r.replaceChild(n,s):r.insertBefore(n,t):A&&s.remove()}else a=!0}}else r.insertBefore(n,t);return[n]}var B4r=Symbol();var tee=Le(require("obsidian"),1),iee=Le(kr(),1);var V$=Le(require("obsidian"),1);var yrr=oa("
");function Qrr(r){return function(){var e=yrr(),t=e.firstChild,i=t.nextSibling;return ot(i,function(){return r.name}),e}()}var J$=Qrr;var wrr=oa("
");function Srr(r){return function(){var e=wrr(),t=e.firstChild,i=t.nextSibling;return e.$$click=function(){return r.onClick(r.path)},ot(i,function(){return r.name}),e}()}var K$=Srr;Lc(["click"]);function Y$(){var _at=_sliced_to_array(at(0),2),r=_at[0],e=_at[1];return{refresh:function refresh(){e(function(t){return++t})},FileList:function FileList(t){var _at=_sliced_to_array(at([]),2),i=_at[0],n=_at[1],a=function(){return i().sort(function(s,A){return s.isDir===A.isDir?s.basename.localeCompare(A.basename,["zh"]):s.isDir&&!A.isDir?-1:1})};function o(){return _async_to_generator(function(){var _$s,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,t.fs.ls(t.path)];case 1:_$s=_state.sent();n(_$s);return[3,3];case 2:s=_state.sent();_instanceof(s,Error)&&new V$.Notice(s.message);return[3,3];case 3:return[2]}})})()}return d1(function(){return _async_to_generator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(r()===0))return[3,2];return[4,o()];case 1:_state.sent();return[2];case 2:e(0);return[2]}})})()}),ui(I1,{get each(){return a()},children:function(s){return ui(jf,{get when(){return s.isDir},get fallback(){return ui(J$,{get name(){return s.basename}})},get children(){return ui(K$,{get name(){return s.basename},get path(){return s.path},onClick:function(){return t.onClick(s)}})}})}})}}}var z$=function(r){return r!=null&&(r=Object.getPrototypeOf(r),r===Array.prototype||r===Object.prototype)};function j$(r,e,t){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Object.entries(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),i=_step_value[0],n=_step_value[1];var a="".concat(t,".").concat(i);r[a]=n,z$(n)&&j$(r,n,a)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}function x1(r){var e=_object_spread({},r);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Object.entries(r)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),t=_step_value[0],i=_step_value[1];z$(i)&&j$(e,i,t)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e}var Drr=function(r){return r};function X$(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Drr;return function(t){for(var _len=arguments.length,i=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){i[_key-1]=arguments[_key]}var a;t[0]==="."&&(t=t.slice(1));var n=(a=r())==null?void 0:a[t];switch(typeof n==="undefined"?"undefined":_type_of(n)){case"function":return n.apply(void 0,_to_consumable_array(i));case"string":return e(n,i[0]);default:return n}}}var krr={newFolder:"New Folder",goBack:"Go Back",confirm:"Confirm",cancel:"Cancel",currentPath:"Current Path"},Z$=krr;var Nrr={newFolder:"新建文件夹",goBack:"返回上一层",confirm:"确定",cancel:"取消",currentPath:"当前路径"},$$=Nrr;function Trr(r){switch(r.split("-")[0].toLowerCase()){case"zh":return"zh";default:return"en"}}var _at1=_sliced_to_array(at(Trr(navigator.language)),2),Prr=_at1[0],w4r=_at1[1],_D$=_sliced_to_array(D$(Prr,function(r){switch(r){case"zh":return x1($$);default:return x1(Z$)}}),1),Mrr=_D$[0],sa=X$(Mrr);var Urr=oa("