@ninebone/grid 0.0.104 → 0.0.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nine-grid.js +140 -139
- package/dist/nine-grid.js.map +1 -1
- package/dist/nine-grid.umd.js +19 -19
- package/dist/nine-grid.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-grid.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(de,Se){typeof exports=="object"&&typeof module<"u"?Se(exports,require("jquery"),require("@ninebone/util")):typeof define=="function"&&define.amd?define(["exports","jquery","@ninebone/util"],Se):(de=typeof globalThis<"u"?globalThis:de||self,Se(de.NineGrid={},de.$,de.util))})(this,(function(de,Se,Ve){"use strict";var Hf=Object.defineProperty;var Nu=de=>{throw TypeError(de)};var zf=(de,Se,Ve)=>Se in de?Hf(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):de[Se]=Ve;var it=(de,Se,Ve)=>zf(de,typeof Se!="symbol"?Se+"":Se,Ve),
|
|
1
|
+
(function(de,Se){typeof exports=="object"&&typeof module<"u"?Se(exports,require("jquery"),require("@ninebone/util")):typeof define=="function"&&define.amd?define(["exports","jquery","@ninebone/util"],Se):(de=typeof globalThis<"u"?globalThis:de||self,Se(de.NineGrid={},de.$,de.util))})(this,(function(de,Se,Ve){"use strict";var Hf=Object.defineProperty;var Nu=de=>{throw TypeError(de)};var zf=(de,Se,Ve)=>Se in de?Hf(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):de[Se]=Ve;var it=(de,Se,Ve)=>zf(de,typeof Se!="symbol"?Se+"":Se,Ve),xu=(de,Se,Ve)=>Se.has(de)||Nu("Cannot "+Ve);var f=(de,Se,Ve)=>(xu(de,Se,"read from private field"),Ve?Ve.call(de):Se.get(de)),Y=(de,Se,Ve)=>Se.has(de)?Nu("Cannot add the same private member more than once"):Se instanceof WeakSet?Se.add(de):Se.set(de,Ve),tt=(de,Se,Ve,Cs)=>(xu(de,Se,"write to private field"),Cs?Cs.call(de,Ve):Se.set(de,Ve),Ve),Ue=(de,Se,Ve)=>(xu(de,Se,"access private method"),Ve);var Ou=(de,Se,Ve,Cs)=>({set _(Mi){tt(de,Se,Mi,Ve)},get _(){return f(de,Se,Cs)}});var Qn,to,eo,hs,ql,Es,Ge,Hl,zl,Ul,Vl,Wt,Wl,Ii,As,Ts,Ni,Rs,Oi,ro,ji,$i,lr,ju,$u,Uf,Lu,Pu,Du,Vf,Bu,ri,Li,so,io,no,oo,kt,Sr,Pi,Xl,ao,Ot,cs,lo,ho,co,jr,uo,fo,dr,po,Yl,Gl,Kl,Zl,Jl,Ql,mo,go,bo,yo,th,eh,Di,vo,Bi,Fi,qi,wo,Hi,zi,si,Fr,xo,Ui,_o,rh,ve,$r,qr,So,kr,Vi,Hr,ko,hu,Co,cu,Eo,Ao,Wi,Xi,To,Ie,Cr,Er,Ms,Is,zr,Ar,Ns,Os,Ro,Mo,Io,uu,No,sh,Oo,Yi,Gi,Ki,ii,Zi,ih,ce,ni,Lr,Ji,jo,nh,oh,Qi,De,nr,$o,js,oi,tn,ah,lh,hh,ch,du,Lo,Be,$s,ai,en,uh,Po,dh,Do,rn,fu,fh,ph,sn,Bo,nn,li,on,Zr,mh,Fo,gh,qo,bh,Ur,Ho,yh,vh,wh,Jr,zo,us,We,Ft,Pe,Tr,hi,Ls,an,Uo,ln,Vo,Wo,xh,Xo,Yo,hn,cn,Go,Ko,Zo,Ne,Jo,un,ds,ci,dn,Qo,pu,mu,_h,ta,hr,ea,Sh,kh,fn,fs,Vr,ps,Ch,ra,pn,Eh,Ps,mn,Ah,Th,Rh,Mh,Ih,Nh,sa,gn,Oh,ia,Qr,jh,ts,ui,$h,Ze,ms,Wr,Ds,bn,es,Lh,je,di,yn,vn,wn,fi,rs,ss,Lt,na,Ph,Fe,oa,aa,Rr,la,Xe,rr,Bs,Dh,xn,Bh,pi,ha,Fs,Pr,qs,mi,Fh,qh,_n,Hh,sr,cr,gi,zh,He,ca,ua,da,gs,fa,pa,ma,ga,or,gr,bi,Uh,Vh,ba,ya,Wh,fr,is,va,br,Hs,yi,gu,ns,Xh,Yh,Gh,wa,xa,_a,Kh,Zh,Le,pr,Pt,Xr,ge,yr,vr,kn,zs,Dr,Jh,Qh,Sa,tc,ka,Ca,Cn,bu,En,nu,vi,Je,bs,ae,Yr,Gr,Us,ec,Ea,rc,Aa,sc,Ta,Ra,An,Ye,os,Ma,Ia,Na,ic,nc,Gt,oc,Oa,ja,ys,$a,La,Pa,Da,Ba,Fa,qa,wi,Pl,ac,lc,hc,cc,yu,Ha,za,uc,dc,fc,yt,Ke,wr,xi,_i,Ua,Va,Wa,Xa,Ya,pc,mc,gc,Tn,Vs,Ws,Qe,Xs,bc,Ga,Rn,Ka,Mr,Za,Ja,yc,vc,wc,xc,Qa,Si,tl,Mn,as,el,rl,_c,vs,Sc,sl,kc,ls,Cc,il,Ec,nl,Ys,Gs,ws,Ac,ol,In,al,ll,Nn,hl,cl,Ks,ul,On,xs,ki,jn,Tc,$n,Ln,Rc,dl,fl,Pn,Dn,pl,ml,gl,Mc,Ci,Ic,Nc,Fu,Bn,Oc,jc,qu,$c,Lc,bl,Fn,yl,Pc,vl,qn,wl,Hn,_s,Ei,Dc,ur,xl,Bc,zn,Hu,zu,Fc,Br,qc,Hc,zc,_l,vu,Uc,Ir,Sl,kl,Cl,El,Vc,Al,Ai,Tl,Nr,Dl,_u,Su,Rl,Wc,Ml,Xc,Un,Il,ku,Vn,Zs,Cu,Eu,Yc,Gc,Kc,Ss,Zc,Nl,Wn,Ol,jl,Xn,$l;class Cs extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.shadowRoot.innerHTML=`
|
|
2
2
|
<nx-dialog css-file="nxConfirm.css">
|
|
3
3
|
<div class="msg"></div>
|
|
4
4
|
<buttons class="buttons-confirm">
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
</style>
|
|
158
158
|
|
|
159
159
|
<div></div>
|
|
160
|
-
`}}customElements.get("ng-col-mover-grip")||customElements.define("ng-col-mover-grip",td),customElements.get("ng-col-mover-indi")||customElements.define("ng-col-mover-indi",ed);class rd{constructor(E){Y(this,ve);Y(this,$r);Y(this,qr);Y(this,So);Y(this,kr);Y(this,Vi);Y(this,Hr);it(this,"resetEvent",()=>{$(document).off("mouseup",f(this,Wi)),$(".ng-table thead",f(this,ve).body).off("mousedown",f(this,Eo)),f(this,ve).body.querySelectorAll(".ng-table thead").forEach(E=>{E.removeEventListener("click",f(this,ko))}),$(document).on("mouseup",f(this,Wi)),$(".ng-table thead",f(this,ve).body).on("mousedown",f(this,Eo)),f(this,ve).body.querySelectorAll(".ng-table thead").forEach(E=>{E.addEventListener("click",f(this,ko))})});Y(this,ko,E=>{if(E.target.closest("ng-filter-button"))return;const t=E.currentTarget||E.target,l=getComputedStyle(t,":before"),c=getComputedStyle(t,":after");if(!(!l&&!c)){if(l){const i=Number(l.getPropertyValue("top").slice(0,-2)),u=6,a=Number(l.getPropertyValue("left").slice(0,-2));if(E.layerX>=a&&E.layerX<=a+6&&E.layerY>=i&&E.layerY<=i+u){var o=E.target.closest(".ng-container-left")||E.target.closest(".ng-container-body");if(o){var r=o.querySelectorAll("thead tr:nth-child(2) th:not(.dummy),thead tr:nth-child(2) td:not(.dummy)"),n=E.target.closest(".ng-container-left")?f(this,ve).body.querySelector(".ng-container-body"):f(this,ve).body.querySelector(".ng-container-right"),s=n.querySelector("thead tr:nth-child(2) th:first-child,thead tr:nth-child(2) td:first-child");const p=parseInt(r[r.length-1].dataset.col),m=r[r.length-1].colSpan;for(var e=0;e<m;e++)f(this,ve).body.querySelectorAll(`[data-col="${p+e}"] ng-col-expand:not(.expand)`).forEach(d=>{d.expand()});E.target.closest(".ng-container-body")?f(this,ve).body.querySelectorAll(".ng-container-right colgroup col:not(.dummy)").length==0?f(this,ve).columns.moveColumn(r[r.length-1],s):(f(this,ve).columns.moveColumn(r[r.length-1],s),f(this,ve).columns.moveColumn(r[r.length-1],s)):(f(this,ve).columns.moveColumn(r[r.length-1],s),f(this,ve).columns.moveColumn(r[r.length-1],s))}}}if(c){const i=Number(c.getPropertyValue("top").slice(0,-2)),u=6,a=Number(c.getPropertyValue("left").slice(0,-2));if(E.layerX>=a&&E.layerX<=a+6&&E.layerY>=i&&E.layerY<=i+u){var o=E.target.closest(".ng-container-body")||E.target.closest(".ng-container-right");if(o){var r=o.querySelector("thead tr:nth-child(2) th:first-child,thead tr:nth-child(2) td:first-child"),n=E.target.closest(".ng-container-body")?f(this,ve).body.querySelector(".ng-container-left"):f(this,ve).body.querySelector(".ng-container-body"),s=n.querySelectorAll("thead tr:nth-child(2) th:not(.dummy),thead tr:nth-child(2) td:not(.dummy)");const g=parseInt(r.dataset.col),S=r.colSpan;for(var e=0;e<S;e++)f(this,ve).body.querySelectorAll(`[data-col="${g+e}"] ng-col-expand:not(.expand)`).forEach(I=>{I.expand()});E.target.closest(".ng-container-right")?(f(this,ve).columns.moveColumn(r,s[s.length-1]),f(this,ve).columns.moveColumn(s[s.length-1],r)):(f(this,ve).columns.moveColumn(r,s[s.length-1]),f(this,ve).columns.moveColumn(r,s[s.length-1]))}}}}});Y(this,lu,E=>{if(!["INPUT"].includes(E.target.tagName)){var t=E.target.getBoundingClientRect();E.offsetX=E.targetTouches[0].pageX-t.left,E.pageX=E.changedTouches[0].pageX,E.pageY=E.changedTouches[0].pageY,E.buttons=1,f(this,Ao).call(this,E),$(document).on("touchmove",l=>f(this,Co).call(this,l))}});Y(this,Co,E=>{var t=E.target.getBoundingClientRect();E.offsetX=E.targetTouches[0].pageX-t.left,E.pageX=E.changedTouches[0].pageX,E.pageY=E.changedTouches[0].pageY,E.clientX=E.changedTouches[0].clientX,f(this,Xi).call(this,E)});Y(this,hu,E=>{E.clientX=E.changedTouches[0].clientX,f(this,Wi).call(this,E)});Y(this,Eo,E=>{H.j.querySelectorAll(f(this,ve)).attr("col-movable")=="true"&&E.target.tagName!="NG-FILTER-BUTTON"&&(tt(this,Vi,!0),setTimeout(()=>{f(this,Vi)&&f(this,Ao).call(this,E)},500))});Y(this,Ao,E=>{if(E.buttons!=1||E.altKey||E.ctrlKey||E.shiftkey||["INPUT"].includes(E.target.tagName))return;var t=E.pageX-$(E.target).offset().left;if(t<=3||$(E.target).width()-t<=3)return;E.target.closest(".ng-container-right")&&f(this,ve).body.querySelector("ng-hscrollbar").scrollToEnd();var l=E.target.closest("th,td");tt(this,kr,{col:parseInt(l.dataset.col),row:E.target.closest("tr").sectionRowIndex,target:l}),tt(this,So,t+f(this,$r)[0].getBoundingClientRect().x);const c=f(this,$r)[0].shadowRoot.querySelector("span");c.innerHTML=$(E.target).html(),$(c).css({font:$(l).css("font")}),f(this,$r).show(),f(this,$r).width($(l).width()),f(this,$r).height($(l).height()),f(this,$r).offset({top:$(l).offset().top-1}),$(document).on("mousemove",f(this,Xi)),f(this,To).call(this,E.pageX);const o=f(this,ve).tableUtils.getElement("thead",f(this,kr).row,E.clientX);f(this,qr).height($(o).height())});Y(this,Wi,E=>{if(tt(this,Vi,!1),$(document).off("mousemove",f(this,Xi)),$(document).off("touchmove",f(this,Co)),f(this,Hr)&&$(f(this,Hr).target).css({cursor:f(this,Hr).cursor}),f(this,kr)){var t=f(this,ve).tableUtils.getElement("thead",f(this,kr).row,E.clientX);f(this,ve).columns.moveColumn(f(this,kr).target,t)}tt(this,Hr,null),tt(this,kr,null),f(this,$r).hide(),f(this,qr).hide()});Y(this,Xi,E=>{if(f(this,kr)!=null){f(this,Hr)&&$(f(this,Hr).target).css({cursor:f(this,Hr).cursor}),tt(this,Hr,{target:E.target,cursor:$(E.target).css("cursor")}),$(E.target).css({cursor:E.target.closest("thead")||E.target.tagName=="ng-col-mover-grip"?"move":"not-allowed"});var t=f(this,ve).tableUtils.getElement("thead",f(this,kr).row,E.clientX);if(t)if(f(this,kr).col>parseInt(t.dataset.col)){var l=$(t).offset();f(this,qr).show(),f(this,qr).offset({left:parseInt(l.left-1),top:l.top})}else if(f(this,kr).col<parseInt(t.dataset.col)){var l=$(t).offset();f(this,qr).show(),f(this,qr).offset({left:parseInt(l.left+$(t).width()-1),top:l.top})}else f(this,qr).hide();f(this,To).call(this,E.pageX)}});Y(this,To,E=>{f(this,$r).offset({left:E-f(this,So)})});tt(this,ve,E),$(".ng-container",f(this,ve).body).append($("<ng-col-mover-grip></ng-col-mover-grip>").hide()).append($("<ng-col-mover-indi></ng-col-mover-indi>").hide()),tt(this,$r,$("ng-col-mover-grip",f(this,ve).body)),tt(this,qr,$("ng-col-mover-indi",f(this,ve).body)),this.resetEvent()}}ve=new WeakMap,$r=new WeakMap,qr=new WeakMap,So=new WeakMap,kr=new WeakMap,Vi=new WeakMap,Hr=new WeakMap,ko=new WeakMap,lu=new WeakMap,Co=new WeakMap,hu=new WeakMap,Eo=new WeakMap,Ao=new WeakMap,Wi=new WeakMap,Xi=new WeakMap,To=new WeakMap;class sd{constructor(E){Y(this,Ie);Y(this,Cr);Y(this,Er);Y(this,Ms);Y(this,Is);Y(this,zr);Y(this,Ar);Y(this,Ns);Y(this,Os,[]);it(this,"resetEvent",()=>{$(".ng-table > thead",f(this,Ie).body).off("mousemove",f(this,Io)).off("mousedown",f(this,No)).off("dblclick",f(this,Ro)),$(document).off("mouseup",f(this,Mo)),$(".ng-table > thead",f(this,Ie).body).on("mousemove",f(this,Io)).on("mousedown",f(this,No)).on("dblclick",f(this,Ro)),$(document).on("mouseup",f(this,Mo))});it(this,"autoFit",E=>{if(f(this,Ie).body)if(E){f(this,Ie).body.querySelector("ng-hscrollbar").scrollToHome(),tt(this,Os,[]);var t=0;$(".ng-container-body col",f(this,Ie).body).each((c,o)=>{f(this,Os).push({col:o,width:parseInt(o.getAttribute("width"))})}),f(this,Os).forEach(c=>{t+=c.width}),$(".ng-container-body > table",f(this,Ie).body).css({width:"100%","min-width":"100%"});var l=$(".ng-container-body",f(this,Ie).body).width();l!=0&&f(this,Os).forEach(c=>{var o=c.width*l/t;c.col.setAttribute("width",o)})}else $(".ng-container-body > table",f(this,Ie).body).css({width:"0","min-width":"0"}),f(this,Os).forEach(c=>{c.col.setAttribute("width",c.width)})});Y(this,Ro,E=>{E.target.style.cursor=="col-resize"&&f(this,ih).call(this,E)});Y(this,Mo,E=>{tt(this,Is,!1)});Y(this,Io,E=>{if(!E.target.closest("ng-info")&&(E.target=E.target.closest("th,td"),!!E.target&&f(this,Ie).getAttribute("col-resizable")=="true"&&!(E.altKey||E.ctrlKey||E.shiftkey)))if(E.preventDefault(),E.offsetX<=2||E.offsetX>=E.target.offsetWidth-2){if(E.offsetX<=2&&f(this,Ie).tableUtils.isFirst(E.target)||E.offsetX>=E.target.offsetWidth-2&&f(this,Ie).tableUtils.isLast(E.target))return;E.target.style.cursor="col-resize"}else E.target.style.cursor="auto"});Y(this,cu,E=>{tt(this,Is,!0),setTimeout(()=>{f(this,Is)&&f(this,sh).call(this,E)},500)});Y(this,No,E=>{const t=E.target.closest("th,td");!t||t.style.cursor!="col-resize"||(tt(this,Is,!0),setTimeout(()=>{f(this,Is)&&f(this,Oo).call(this,E)},500))});Y(this,sh,E=>{E.target=E.target.closest("th,td");var t=E.target.getBoundingClientRect();E.offsetX=E.targetTouches[0].pageX-t.left,E.pageX=E.changedTouches[0].pageX,E.buttons=1,f(this,Oo).call(this,E),f(this,Cr).is(":visible")?($(E.target).on("touchmove",l=>f(this,Yi).call(this,l)),$(E.target).on("touchend",l=>f(this,Ki).call(this,l))):($(E.target).off("touchmove",l=>f(this,Yi).call(this,l)),$(E.target).off("touchend",l=>f(this,Ki).call(this,l)))});Y(this,Oo,E=>{if(E.target=E.target.closest("th,td"),!(E.buttons!=1||E.altKey||E.ctrlKey||E.shiftkey)){if(tt(this,Ns,!!E.target.closest(".ng-container-right")),E.pageX-$(E.target).offset().left<=3){var t=$(`.col-indicator[data-col=${E.target.dataset.col}]`,f(this,Ie).body).not(".dummy")[0];tt(this,zr,f(this,Ie).tableUtils.prev(t)),tt(this,Ar,$(t))}else{if($(E.target).width()-E.offsetX>2)return;var l=parseInt(E.target.dataset.col)+E.target.colSpan-1,t=$(`.col-indicator[data-col=${l}]`,f(this,Ie).body).not(".dummy")[0];tt(this,zr,$(t)),tt(this,Ar,f(this,Ie).tableUtils.next(t))}f(this,Cr).show(),f(this,Er).offset({top:$(".ng-container-body",f(this,Ie).body).offset().top,left:f(this,Ar).offset().left-1}),f(this,Er).height(f(this,Ie).body.querySelector(".ng-container-body").offsetHeight),f(this,Ms).offset({top:$(".ng-container-body",f(this,Ie).body).offset().top}),f(this,Zi).call(this,E.pageX),$(f(this,Cr)).off("mousemove",f(this,Gi)).off("mouseup",f(this,ii)).on("mousemove",f(this,Gi)).on("mouseup",f(this,ii))}});Y(this,Yi,E=>{f(this,Zi).call(this,E.changedTouches[0].pageX)});Y(this,Gi,E=>{f(this,Zi).call(this,E.pageX)});Y(this,Ki,E=>{$(E.target).off("touchmove",t=>f(this,Yi).call(this,t)),$(E.target).off("touchend",t=>f(this,Ki).call(this,t)),f(this,ii).call(this,E)});Y(this,ii,E=>{if(!f(this,Er).is(":visible"))return;var t;f(this,Ns)?t=f(this,Ar).offset().left-f(this,Er).offset().left+f(this,Ar).width():t=f(this,Er).offset().left-f(this,zr).offset().left+1,t<=1&&(t=0);const l=f(this,Ns)?f(this,Ar)[0].dataset.col:f(this,zr)[0].dataset.col;f(this,Ie).columns.width(l,t),$(f(this,Cr)).off("mousemove",f(this,Gi)),$(f(this,Cr)).off("mouseup",f(this,ii)),f(this,Cr).hide()});Y(this,Zi,E=>{!f(this,Ns)&&E<f(this,zr).offset().left&&(E=f(this,zr).offset().left),f(this,Er).offset({left:E});var t=parseInt(f(this,Er).offset().left),l,c,o;f(this,Ns)?(c=f(this,Ar).width()+f(this,Ar).offset().left-f(this,Er).offset().left,o=c<10?10:c-1,l=parseInt(f(this,Ar).width()+f(this,Ar).offset().left-f(this,Er).offset().left)):(c=parseInt(t-f(this,zr).offset().left),o=c,l=parseInt(t-f(this,zr).offset().left+1),t=t-o),l<=1&&(l=0),f(this,Ms).offset({left:t}),f(this,Ms).width(o),f(this,Ms).find("span").text(l)});Y(this,ih,E=>{var t=E.target.closest("th,td"),l=f(this,Ie).tableUtils.prev(t),c=f(this,Ie).tableUtils.next(t),o=f(this,Ie).getBand(t.dataset.col)==H.BAND.RIGHT?E.offsetX<=2?$(t):c:E.offsetX<=2?l:$(t);f(this,Ie).setColumnWidthFit(o[0].dataset.col)});tt(this,Ie,E),tt(this,Cr,$('<div class="resizer-col-panel"><div class="grip"></div><div class="tooltip"><div></div><span></span><div></div></div></div>').hide()),$(f(this,Ie).body).append(f(this,Cr)),tt(this,Er,f(this,Cr).find(".grip")),tt(this,Ms,f(this,Cr).find(".tooltip")),this.resetEvent()}}Ie=new WeakMap,Cr=new WeakMap,Er=new WeakMap,Ms=new WeakMap,Is=new WeakMap,zr=new WeakMap,Ar=new WeakMap,Ns=new WeakMap,Os=new WeakMap,Ro=new WeakMap,Mo=new WeakMap,Io=new WeakMap,cu=new WeakMap,No=new WeakMap,sh=new WeakMap,Oo=new WeakMap,Yi=new WeakMap,Gi=new WeakMap,Ki=new WeakMap,ii=new WeakMap,Zi=new WeakMap,ih=new WeakMap;class id{constructor(E){Y(this,ce);it(this,"count",()=>f(this,ce).activeTmpl.querySelectorAll("[data-bind]").length);it(this,"info",E=>{const t=l=>{if(!l)return null;const c=f(this,ce).body.querySelectorAll(`thead [data-col="${l.dataset.col}"]`);return{name:l.dataset.bind,type:(l.dataset.type||"string").toLocaleLowerCase(),desc:c.length>0?c[c.length-1].getAttribute("title"):null}};return E?t(f(this,ce).activeTmpl.querySelector(`[data-bind="${E}"]`)):Array.from(f(this,ce).activeTmpl.querySelectorAll("[data-bind]")).filter(l=>l.dataset.bind!=="rowState").map(l=>t(l))});Y(this,ni,(E,t)=>{var l=Array.from(E.querySelectorAll("col"));return l[t]});Y(this,Lr,(E,t,l)=>{var c=[];if(!E)return c;for(var o=t;o<=l;o++)c=c.concat(Array.from(E.querySelectorAll(`[data-col="${o}"]:not(.dummy)`)));return c});Y(this,Ji,(E,t,l)=>{const c=(r,n)=>{const s=parseInt(n.dataset.col);return r.closest("thead,tbody,tfoot"),r.querySelector(`[data-col="${s}"]`)},o=(r,n)=>{const s=parseInt(n.dataset.col),e=n.colSpan||1,i=!r.closest("thead,tbody,tfoot");var u=r.querySelectorAll("th:not(.tmp),td:not(.tmp)");for(var a of u)if(parseInt(a.dataset.col)>s+e-1)return a};return parseInt(t.dataset.col)>parseInt(l.dataset.col)?c(E,l):o(E,l)});Y(this,jo,E=>{const t={org:{thead:{cells:[]},tfoot:{cells:[]},tbody:{cells:[]},fixed:{cells:[]},cols:[]},thead:{cells:[]},tfoot:{cells:[]},tbody:{cells:[]},fixed:{cells:[]},template:{cells:[]},cols:[]},l=E.colSpan||1,c=E.closest("table"),o=parseInt(E.dataset.col),r=E.closest("tr").sectionRowIndex;$("thead tr",c).each((e,i)=>{if(i.sectionRowIndex<r&&i.sectionRowIndex!=0)return!0;t.thead.cells=t.thead.cells.concat(f(this,Lr).call(this,i,o,o+l-1))}),t.tfoot.cells=f(this,Lr).call(this,c.querySelector("tfoot"),o,o+l-1),t.tbody.cells=f(this,Lr).call(this,c.querySelector("tbody.bindable"),o,o+l-1),t.fixed.cells=f(this,Lr).call(this,c.querySelector("tbody.fixed"),o,o+l-1);const n=f(this,ce).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout");t.org.thead.cells=f(this,Lr).call(this,n.currentTable.querySelector("thead"),o,o+l-1),t.org.tfoot.cells=f(this,Lr).call(this,n.currentTable.querySelector("tfoot"),o,o+l-1),t.org.tbody.cells=f(this,Lr).call(this,n.currentTable.querySelector("tbody.bindable"),o,o+l-1),t.org.fixed.cells=f(this,Lr).call(this,n.currentTable.querySelector("tbody.fixed"),o,o+l-1),f(this,ce).template.each((e,i)=>{t.template.cells=t.template.cells.concat(f(this,Lr).call(this,i,o,o+l-1))});for(var s=o;s<=o+l-1;s++)t.cols.push(f(this,ni).call(this,f(this,ce).body,s));for(var s=o;s<=o+l-1;s++)t.org.cols.push(f(this,ni).call(this,n.currentTable,s));return t});Y(this,nh,(E,t,l,c)=>{if(E.closest("tr").rowIndex!=t.closest("tr").rowIndex)return!1;const o=parseInt(E.dataset.col),r=E.colSpan;parseInt(t.dataset.col),t.colSpan;for(var n of[l.thead.cells,l.tfoot.cells,l.tbody.cells,l.fixed.cells,l.template.cells])for(var s of n){const e=parseInt(s.dataset.col),i=s.colSpan;if(e<o||e+i-1>o+r-1)return!1}return!0});it(this,"moveColumn",(E,t)=>{if(!E||!t)return!1;const l=f(this,ce).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout"),c=f(this,jo).call(this,E),o=f(this,jo).call(this,t),r=t.closest("table"),n=!!(E.closest(".ng-container-left")||t.closest(".ng-container-left")),s=!!(E.closest(".ng-container-right")||t.closest(".ng-container-right"));if(!f(this,nh).call(this,E,t,c,o))return!1;for(var e of[c.thead.cells,c.tfoot.cells,c.tbody.cells,c.fixed.cells])for(var i of e){H.j.querySelectorAll(i).addClass("tmp");const b=i.closest("tr").rowIndex,g=r.querySelectorAll("tr")[b];var u=f(this,Ji).call(this,g,E,t);u?g.insertBefore(i,u):g.appendChild(i)}for(var e of[c.org.thead.cells,c.org.tfoot.cells,c.org.tbody.cells,c.org.fixed.cells])for(var i of e){H.j.querySelectorAll(i).addClass("tmp");const S=i.closest("table"),C=i.closest("tr").rowIndex,I=S.querySelectorAll("tr")[C];var u=f(this,Ji).call(this,I,E,t);u?I.insertBefore(i,u):I.appendChild(i)}for(var i of c.template.cells){H.j.querySelectorAll(i).addClass("tmp");const g=i.closest("tr");var u=f(this,Ji).call(this,g,E,t);u?g.insertBefore(i,u):g.appendChild(i)}var a;parseInt(E.dataset.col)>parseInt(t.dataset.col)?a=parseInt(t.dataset.col):a=parseInt(t.dataset.col)+(t.colSpan||1)-1+(parseInt(E.dataset.col)>parseInt(t.dataset.col)?0:1);let h=f(this,ni).call(this,f(this,ce).body,a);const p=t.closest("table")==h.closest("table");for(var m of c.cols)m&&(p?t.closest("table").querySelector("colgroup").insertBefore(m,h):t.closest("table").querySelector("colgroup").appendChild(m));for(var m of c.org.cols)h=f(this,ni).call(this,l.currentTable,a),m&&m.closest("colgroup").insertBefore(m,h);for(var e of[c.thead.cells,c.tfoot.cells,c.tbody.cells,c.fixed.cells])for(var i of e)H.j.querySelectorAll(i).removeClass("tmp");for(var e of[c.org.thead.cells,c.org.tfoot.cells,c.org.tbody.cells,c.org.fixed.cells])for(var i of e)H.j.querySelectorAll(i).removeClass("tmp");for(var i of c.template.cells)H.j.querySelectorAll(i).removeClass("tmp");if(f(this,ce).body.querySelectorAll(".ng-container-left col").forEach(b=>{b.setAttribute("fixed","left")}),f(this,ce).body.querySelectorAll(".ng-container-left .col-indicator").forEach(b=>{b.setAttribute("fixed","left")}),f(this,ce).body.querySelectorAll(".ng-container-right col").forEach(b=>{b.setAttribute("fixed","right")}),f(this,ce).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{b.setAttribute("fixed","right")}),f(this,ce).body.querySelectorAll(".ng-container-body col").forEach(b=>{b.removeAttribute("fixed")}),f(this,ce).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{b.removeAttribute("fixed")}),l.currentTable.querySelectorAll("colgroup col").forEach(b=>{b.removeAttribute("fixed")}),$("th,td",f(this,ce).template).each((b,g)=>{g.removeAttribute("fixed")}),$("th,td",l.currentTable).each((b,g)=>{g.removeAttribute("fixed")}),f(this,ce).body.querySelectorAll(".ng-container-left .col-indicator").forEach(b=>{$(`[data-col="${b.dataset.col}"]`,f(this,ce).template).each((g,S)=>{S.setAttribute("fixed","left")}),$(`[data-col="${b.dataset.col}"]`,l.currentTable).each((g,S)=>{S.setAttribute("fixed","left")}),$("colgroup col",l.currentTable).each((g,S)=>{g<=parseInt(b.dataset.col)&&S.setAttribute("fixed","left")})}),f(this,ce).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{$(`[data-col="${b.dataset.col}"]`,f(this,ce).template).each((g,S)=>{S.setAttribute("fixed","right")}),$(`[data-col="${b.dataset.col}"]`,l.currentTable).each((g,S)=>{S.setAttribute("fixed","right")})}),f(this,ce).resetTemplate(),f(this,ce).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{$("colgroup col",l.currentTable).each((g,S)=>{g>=parseInt(b.dataset.col)&&S.setAttribute("fixed","right")})}),n){var d=t.closest(".ng-container-body")?-E.offsetWidth:0;$(".ng-container-left .col-indicator",f(this,ce).body).each((b,g)=>{d+=g.offsetWidth}),$(".ng-container-left",f(this,ce).body).css({width:d,"min-width":d})}if(s){var d=t.closest(".ng-container-body")?-E.offsetWidth:0;$(".ng-container-right .col-indicator",f(this,ce).body).each((g,S)=>{d+=S.offsetWidth}),$(".ng-container-right",f(this,ce).body).css({width:d,"min-width":d})}f(this,ce).refreshData()});it(this,"width",(E,t)=>{t=parseFloat(t);const l=f(this,ce).body.querySelector(`colgroup col[data-col="${E}"]`),c=!!l.closest(".ng-container-left"),o=!!l.closest(".ng-container-right"),r=!!l.closest(".ng-container-body"),n=c?"left":o?"right":"body";if(r)if(f(this,ce).getAttribute("auto-fit-col")=="true"){var s=0;$(".ng-container-body .col-indicator",f(this,ce).body).not(`[data-col=${E}]`).each((u,a)=>{s+=a.offsetWidth});const i=$(".ng-container-body",f(this,ce).body).width();$(".ng-container-body col",f(this,ce).body).each((u,a)=>{var h=parseInt(E==a.dataset.col?t:a.getAttribute("width"))*i/s;a.setAttribute("width",h)})}else l.setAttribute("width",t);else{var e=0;$(`.ng-container-${n} .col-indicator`,f(this,ce).body).not(`[data-col=${E}]`).each((i,u)=>{e+=parseInt(u.offsetWidth)}),$(`.ng-container-${n}`,f(this,ce).body).css({width:parseInt(e+t),"min-width":parseInt(e+t)}),l.setAttribute("width",t)}});tt(this,ce,E)}}ce=new WeakMap,ni=new WeakMap,Lr=new WeakMap,Ji=new WeakMap,jo=new WeakMap,nh=new WeakMap;class nd extends Ve.trace.constructor{constructor(){super(),this.init("nine-grid","green")}}const Eu=new nd;class od extends ei{constructor(){super();Y(this,oh,10);Y(this,Qi);Y(this,De);Y(this,nr);Y(this,$o);Y(this,js);Y(this,oi);Y(this,tn);it(this,"dataRefresh",t=>{f(this,nr)&&(f(this,ah).call(this)?H.j.querySelectorAll(this).removeClass("invalid"):H.j.querySelectorAll(this).addClass("invalid")),f(this,Qi).innerHTML=this.getDisplayText()||"Select",t||this.reset()});Y(this,ah,()=>{if(H.isNull(this.value))return!0;var t=this.multi?this.value.split(this.multiSeparator):[this.value];for(var l of t){var c=f(this,nr).findIndex(o=>l==o[f(this,js)]);if(c<0)return!1}return!0});Y(this,lh,()=>{if(this.owner){if(tt(this,De,this.owner.shadowRoot.querySelector("ng-combo-panel")),this.owner.shadowRoot.querySelectorAll("ng-combo-panel").length>1)throw"too many ng-combo-panel";var t=this.getAttribute("data-source");t&&this.owner&&this.owner.exprFunction}});Y(this,hh,t=>{if(console.log(f(this,nr)),!!f(this,nr)){console.log(f(this,nr)),f(this,De).col=this.cell.dataset.col,f(this,De).row=this.cell.closest("tr").sectionRowIndex,f(this,nr).length>f(this,oh)?H.j.querySelectorAll(f(this,De)).addClass("expand"):H.j.querySelectorAll(f(this,De)).removeClass("expand"),this.multi?H.j.querySelectorAll(f(this,De)).addClass("multi"):H.j.querySelectorAll(f(this,De)).removeClass("multi"),f(this,De).refresh(this,f(this,nr),f(this,js),f(this,tn));var l=$(".btn1",this.shadowRoot).offset().left-$(this.owner).offset().left;l+$(f(this,De)).width()>$(this.owner).width()&&(l=$(".btn2",this.shadowRoot).offset().left-$(this.owner).offset().left-$(f(this,De)).width()+8),l<0&&(l=0);var c=Math.min(f(this,nr).length,f(this,$o))*26;this.multi?(H.j.querySelectorAll(f(this,De)).hasClass("expand")&&(c+=12,c+=3,c+=24),c+=2,c+=3,c+=25):(H.j.querySelectorAll(f(this,De)).hasClass("expand")&&(c+=12,c+=3,c+=24),c+=3);var o=$(".btn1",this.shadowRoot).offset().top+$(".btn1",this.shadowRoot).height()-$(this.owner).offset().top+3;o+c>$(this.owner).height()&&(o-=c+$(".btn1",this.shadowRoot).height()+6);var r=this.getAttribute("template");r&&console.error("logic error !!!!"),$(f(this,De)).css({left:l,top:o,height:c,"min-height":c}).show(),H.j.querySelectorAll(f(this,De)).hasClass("expand")&&$("div",f(this,De)).eq(0).find("input").focus().val("")}});Y(this,ch,t=>{t.target.closest("ng-combo-panel")||(f(this,De).row=f(this,De).col=-1,$(f(this,De)).hide())});Y(this,uu,()=>"a")}connectedCallback(){this.multi=this.getAttribute("multi")=="true",this.multiSeparator=this.getAttribute("multi-separator")||",",tt(this,$o,this.getAttribute("rows")||5),tt(this,js,this.getAttribute("code")||"code"),tt(this,oi,this.getAttribute("codename")||"codename"),tt(this,tn,(this.getAttribute("items")||f(this,oi)||"").split(",")),f(this,tn).unshift("CHK");var t=this.querySelector("datalist");t&&(tt(this,nr,[]),t.querySelectorAll("option").forEach(n=>{const s=n.getAttribute(f(this,js)),e=n.getAttribute(f(this,oi));s&&e&&f(this,nr).push({[f(this,js)]:s,[f(this,oi)]:e})})),this.shadowRoot.innerHTML=`
|
|
160
|
+
`}}customElements.get("ng-col-mover-grip")||customElements.define("ng-col-mover-grip",td),customElements.get("ng-col-mover-indi")||customElements.define("ng-col-mover-indi",ed);class rd{constructor(E){Y(this,ve);Y(this,$r);Y(this,qr);Y(this,So);Y(this,kr);Y(this,Vi);Y(this,Hr);it(this,"resetEvent",()=>{$(document).off("mouseup",f(this,Wi)),$(".ng-table thead",f(this,ve).body).off("mousedown",f(this,Eo)),f(this,ve).body.querySelectorAll(".ng-table thead").forEach(E=>{E.removeEventListener("click",f(this,ko))}),$(document).on("mouseup",f(this,Wi)),$(".ng-table thead",f(this,ve).body).on("mousedown",f(this,Eo)),f(this,ve).body.querySelectorAll(".ng-table thead").forEach(E=>{E.addEventListener("click",f(this,ko))})});Y(this,ko,E=>{if(E.target.closest("ng-filter-button"))return;const t=E.currentTarget||E.target,l=getComputedStyle(t,":before"),c=getComputedStyle(t,":after");if(!(!l&&!c)){if(l){const i=Number(l.getPropertyValue("top").slice(0,-2)),u=6,a=Number(l.getPropertyValue("left").slice(0,-2));if(E.layerX>=a&&E.layerX<=a+6&&E.layerY>=i&&E.layerY<=i+u){var o=E.target.closest(".ng-container-left")||E.target.closest(".ng-container-body");if(o){var r=o.querySelectorAll("thead tr:nth-child(2) th:not(.dummy),thead tr:nth-child(2) td:not(.dummy)"),n=E.target.closest(".ng-container-left")?f(this,ve).body.querySelector(".ng-container-body"):f(this,ve).body.querySelector(".ng-container-right"),s=n.querySelector("thead tr:nth-child(2) th:first-child,thead tr:nth-child(2) td:first-child");const p=parseInt(r[r.length-1].dataset.col),m=r[r.length-1].colSpan;for(var e=0;e<m;e++)f(this,ve).body.querySelectorAll(`[data-col="${p+e}"] ng-col-expand:not(.expand)`).forEach(d=>{d.expand()});E.target.closest(".ng-container-body")?f(this,ve).body.querySelectorAll(".ng-container-right colgroup col:not(.dummy)").length==0?f(this,ve).columns.moveColumn(r[r.length-1],s):(f(this,ve).columns.moveColumn(r[r.length-1],s),f(this,ve).columns.moveColumn(r[r.length-1],s)):(f(this,ve).columns.moveColumn(r[r.length-1],s),f(this,ve).columns.moveColumn(r[r.length-1],s))}}}if(c){const i=Number(c.getPropertyValue("top").slice(0,-2)),u=6,a=Number(c.getPropertyValue("left").slice(0,-2));if(E.layerX>=a&&E.layerX<=a+6&&E.layerY>=i&&E.layerY<=i+u){var o=E.target.closest(".ng-container-body")||E.target.closest(".ng-container-right");if(o){var r=o.querySelector("thead tr:nth-child(2) th:first-child,thead tr:nth-child(2) td:first-child"),n=E.target.closest(".ng-container-body")?f(this,ve).body.querySelector(".ng-container-left"):f(this,ve).body.querySelector(".ng-container-body"),s=n.querySelectorAll("thead tr:nth-child(2) th:not(.dummy),thead tr:nth-child(2) td:not(.dummy)");const g=parseInt(r.dataset.col),S=r.colSpan;for(var e=0;e<S;e++)f(this,ve).body.querySelectorAll(`[data-col="${g+e}"] ng-col-expand:not(.expand)`).forEach(I=>{I.expand()});E.target.closest(".ng-container-right")?(f(this,ve).columns.moveColumn(r,s[s.length-1]),f(this,ve).columns.moveColumn(s[s.length-1],r)):(f(this,ve).columns.moveColumn(r,s[s.length-1]),f(this,ve).columns.moveColumn(r,s[s.length-1]))}}}}});Y(this,hu,E=>{if(!["INPUT"].includes(E.target.tagName)){var t=E.target.getBoundingClientRect();E.offsetX=E.targetTouches[0].pageX-t.left,E.pageX=E.changedTouches[0].pageX,E.pageY=E.changedTouches[0].pageY,E.buttons=1,f(this,Ao).call(this,E),$(document).on("touchmove",l=>f(this,Co).call(this,l))}});Y(this,Co,E=>{var t=E.target.getBoundingClientRect();E.offsetX=E.targetTouches[0].pageX-t.left,E.pageX=E.changedTouches[0].pageX,E.pageY=E.changedTouches[0].pageY,E.clientX=E.changedTouches[0].clientX,f(this,Xi).call(this,E)});Y(this,cu,E=>{E.clientX=E.changedTouches[0].clientX,f(this,Wi).call(this,E)});Y(this,Eo,E=>{H.j.querySelectorAll(f(this,ve)).attr("col-movable")=="true"&&E.target.tagName!="NG-FILTER-BUTTON"&&(tt(this,Vi,!0),setTimeout(()=>{f(this,Vi)&&f(this,Ao).call(this,E)},500))});Y(this,Ao,E=>{if(E.buttons!=1||E.altKey||E.ctrlKey||E.shiftkey||["INPUT"].includes(E.target.tagName))return;var t=E.pageX-$(E.target).offset().left;if(t<=3||$(E.target).width()-t<=3)return;E.target.closest(".ng-container-right")&&f(this,ve).body.querySelector("ng-hscrollbar").scrollToEnd();var l=E.target.closest("th,td");tt(this,kr,{col:parseInt(l.dataset.col),row:E.target.closest("tr").sectionRowIndex,target:l}),tt(this,So,t+f(this,$r)[0].getBoundingClientRect().x);const c=f(this,$r)[0].shadowRoot.querySelector("span");c.innerHTML=$(E.target).html(),$(c).css({font:$(l).css("font")}),f(this,$r).show(),f(this,$r).width($(l).width()),f(this,$r).height($(l).height()),f(this,$r).offset({top:$(l).offset().top-1}),$(document).on("mousemove",f(this,Xi)),f(this,To).call(this,E.pageX);const o=f(this,ve).tableUtils.getElement("thead",f(this,kr).row,E.clientX);f(this,qr).height($(o).height())});Y(this,Wi,E=>{if(tt(this,Vi,!1),$(document).off("mousemove",f(this,Xi)),$(document).off("touchmove",f(this,Co)),f(this,Hr)&&$(f(this,Hr).target).css({cursor:f(this,Hr).cursor}),f(this,kr)){var t=f(this,ve).tableUtils.getElement("thead",f(this,kr).row,E.clientX);f(this,ve).columns.moveColumn(f(this,kr).target,t)}tt(this,Hr,null),tt(this,kr,null),f(this,$r).hide(),f(this,qr).hide()});Y(this,Xi,E=>{if(f(this,kr)!=null){f(this,Hr)&&$(f(this,Hr).target).css({cursor:f(this,Hr).cursor}),tt(this,Hr,{target:E.target,cursor:$(E.target).css("cursor")}),$(E.target).css({cursor:E.target.closest("thead")||E.target.tagName=="ng-col-mover-grip"?"move":"not-allowed"});var t=f(this,ve).tableUtils.getElement("thead",f(this,kr).row,E.clientX);if(t)if(f(this,kr).col>parseInt(t.dataset.col)){var l=$(t).offset();f(this,qr).show(),f(this,qr).offset({left:parseInt(l.left-1),top:l.top})}else if(f(this,kr).col<parseInt(t.dataset.col)){var l=$(t).offset();f(this,qr).show(),f(this,qr).offset({left:parseInt(l.left+$(t).width()-1),top:l.top})}else f(this,qr).hide();f(this,To).call(this,E.pageX)}});Y(this,To,E=>{f(this,$r).offset({left:E-f(this,So)})});tt(this,ve,E),$(".ng-container",f(this,ve).body).append($("<ng-col-mover-grip></ng-col-mover-grip>").hide()).append($("<ng-col-mover-indi></ng-col-mover-indi>").hide()),tt(this,$r,$("ng-col-mover-grip",f(this,ve).body)),tt(this,qr,$("ng-col-mover-indi",f(this,ve).body)),this.resetEvent()}}ve=new WeakMap,$r=new WeakMap,qr=new WeakMap,So=new WeakMap,kr=new WeakMap,Vi=new WeakMap,Hr=new WeakMap,ko=new WeakMap,hu=new WeakMap,Co=new WeakMap,cu=new WeakMap,Eo=new WeakMap,Ao=new WeakMap,Wi=new WeakMap,Xi=new WeakMap,To=new WeakMap;class sd{constructor(E){Y(this,Ie);Y(this,Cr);Y(this,Er);Y(this,Ms);Y(this,Is);Y(this,zr);Y(this,Ar);Y(this,Ns);Y(this,Os,[]);it(this,"resetEvent",()=>{$(".ng-table > thead",f(this,Ie).body).off("mousemove",f(this,Io)).off("mousedown",f(this,No)).off("dblclick",f(this,Ro)),$(document).off("mouseup",f(this,Mo)),$(".ng-table > thead",f(this,Ie).body).on("mousemove",f(this,Io)).on("mousedown",f(this,No)).on("dblclick",f(this,Ro)),$(document).on("mouseup",f(this,Mo))});it(this,"autoFit",E=>{if(f(this,Ie).body)if(E){f(this,Ie).body.querySelector("ng-hscrollbar").scrollToHome(),tt(this,Os,[]);var t=0;$(".ng-container-body col",f(this,Ie).body).each((c,o)=>{f(this,Os).push({col:o,width:parseInt(o.getAttribute("width"))})}),f(this,Os).forEach(c=>{t+=c.width}),$(".ng-container-body > table",f(this,Ie).body).css({width:"100%","min-width":"100%"});var l=$(".ng-container-body",f(this,Ie).body).width();l!=0&&f(this,Os).forEach(c=>{var o=c.width*l/t;c.col.setAttribute("width",o)})}else $(".ng-container-body > table",f(this,Ie).body).css({width:"0","min-width":"0"}),f(this,Os).forEach(c=>{c.col.setAttribute("width",c.width)})});Y(this,Ro,E=>{E.target.style.cursor=="col-resize"&&f(this,ih).call(this,E)});Y(this,Mo,E=>{tt(this,Is,!1)});Y(this,Io,E=>{if(!E.target.closest("ng-info")&&(E.target=E.target.closest("th,td"),!!E.target&&f(this,Ie).getAttribute("col-resizable")=="true"&&!(E.altKey||E.ctrlKey||E.shiftkey)))if(E.preventDefault(),E.offsetX<=2||E.offsetX>=E.target.offsetWidth-2){if(E.offsetX<=2&&f(this,Ie).tableUtils.isFirst(E.target)||E.offsetX>=E.target.offsetWidth-2&&f(this,Ie).tableUtils.isLast(E.target))return;E.target.style.cursor="col-resize"}else E.target.style.cursor="auto"});Y(this,uu,E=>{tt(this,Is,!0),setTimeout(()=>{f(this,Is)&&f(this,sh).call(this,E)},500)});Y(this,No,E=>{const t=E.target.closest("th,td");!t||t.style.cursor!="col-resize"||(tt(this,Is,!0),setTimeout(()=>{f(this,Is)&&f(this,Oo).call(this,E)},500))});Y(this,sh,E=>{E.target=E.target.closest("th,td");var t=E.target.getBoundingClientRect();E.offsetX=E.targetTouches[0].pageX-t.left,E.pageX=E.changedTouches[0].pageX,E.buttons=1,f(this,Oo).call(this,E),f(this,Cr).is(":visible")?($(E.target).on("touchmove",l=>f(this,Yi).call(this,l)),$(E.target).on("touchend",l=>f(this,Ki).call(this,l))):($(E.target).off("touchmove",l=>f(this,Yi).call(this,l)),$(E.target).off("touchend",l=>f(this,Ki).call(this,l)))});Y(this,Oo,E=>{if(E.target=E.target.closest("th,td"),!(E.buttons!=1||E.altKey||E.ctrlKey||E.shiftkey)){if(tt(this,Ns,!!E.target.closest(".ng-container-right")),E.pageX-$(E.target).offset().left<=3){var t=$(`.col-indicator[data-col=${E.target.dataset.col}]`,f(this,Ie).body).not(".dummy")[0];tt(this,zr,f(this,Ie).tableUtils.prev(t)),tt(this,Ar,$(t))}else{if($(E.target).width()-E.offsetX>2)return;var l=parseInt(E.target.dataset.col)+E.target.colSpan-1,t=$(`.col-indicator[data-col=${l}]`,f(this,Ie).body).not(".dummy")[0];tt(this,zr,$(t)),tt(this,Ar,f(this,Ie).tableUtils.next(t))}f(this,Cr).show(),f(this,Er).offset({top:$(".ng-container-body",f(this,Ie).body).offset().top,left:f(this,Ar).offset().left-1}),f(this,Er).height(f(this,Ie).body.querySelector(".ng-container-body").offsetHeight),f(this,Ms).offset({top:$(".ng-container-body",f(this,Ie).body).offset().top}),f(this,Zi).call(this,E.pageX),$(f(this,Cr)).off("mousemove",f(this,Gi)).off("mouseup",f(this,ii)).on("mousemove",f(this,Gi)).on("mouseup",f(this,ii))}});Y(this,Yi,E=>{f(this,Zi).call(this,E.changedTouches[0].pageX)});Y(this,Gi,E=>{f(this,Zi).call(this,E.pageX)});Y(this,Ki,E=>{$(E.target).off("touchmove",t=>f(this,Yi).call(this,t)),$(E.target).off("touchend",t=>f(this,Ki).call(this,t)),f(this,ii).call(this,E)});Y(this,ii,E=>{if(!f(this,Er).is(":visible"))return;var t;f(this,Ns)?t=f(this,Ar).offset().left-f(this,Er).offset().left+f(this,Ar).width():t=f(this,Er).offset().left-f(this,zr).offset().left+1,t<=1&&(t=0);const l=f(this,Ns)?f(this,Ar)[0].dataset.col:f(this,zr)[0].dataset.col;f(this,Ie).columns.width(l,t),$(f(this,Cr)).off("mousemove",f(this,Gi)),$(f(this,Cr)).off("mouseup",f(this,ii)),f(this,Cr).hide()});Y(this,Zi,E=>{!f(this,Ns)&&E<f(this,zr).offset().left&&(E=f(this,zr).offset().left),f(this,Er).offset({left:E});var t=parseInt(f(this,Er).offset().left),l,c,o;f(this,Ns)?(c=f(this,Ar).width()+f(this,Ar).offset().left-f(this,Er).offset().left,o=c<10?10:c-1,l=parseInt(f(this,Ar).width()+f(this,Ar).offset().left-f(this,Er).offset().left)):(c=parseInt(t-f(this,zr).offset().left),o=c,l=parseInt(t-f(this,zr).offset().left+1),t=t-o),l<=1&&(l=0),f(this,Ms).offset({left:t}),f(this,Ms).width(o),f(this,Ms).find("span").text(l)});Y(this,ih,E=>{var t=E.target.closest("th,td"),l=f(this,Ie).tableUtils.prev(t),c=f(this,Ie).tableUtils.next(t),o=f(this,Ie).getBand(t.dataset.col)==H.BAND.RIGHT?E.offsetX<=2?$(t):c:E.offsetX<=2?l:$(t);f(this,Ie).setColumnWidthFit(o[0].dataset.col)});tt(this,Ie,E),tt(this,Cr,$('<div class="resizer-col-panel"><div class="grip"></div><div class="tooltip"><div></div><span></span><div></div></div></div>').hide()),$(f(this,Ie).body).append(f(this,Cr)),tt(this,Er,f(this,Cr).find(".grip")),tt(this,Ms,f(this,Cr).find(".tooltip")),this.resetEvent()}}Ie=new WeakMap,Cr=new WeakMap,Er=new WeakMap,Ms=new WeakMap,Is=new WeakMap,zr=new WeakMap,Ar=new WeakMap,Ns=new WeakMap,Os=new WeakMap,Ro=new WeakMap,Mo=new WeakMap,Io=new WeakMap,uu=new WeakMap,No=new WeakMap,sh=new WeakMap,Oo=new WeakMap,Yi=new WeakMap,Gi=new WeakMap,Ki=new WeakMap,ii=new WeakMap,Zi=new WeakMap,ih=new WeakMap;class id{constructor(E){Y(this,ce);it(this,"count",()=>f(this,ce).activeTmpl.querySelectorAll("[data-bind]").length);it(this,"info",E=>{const t=l=>{if(!l)return null;const c=f(this,ce).body.querySelectorAll(`thead [data-col="${l.dataset.col}"]`);return{name:l.dataset.bind,type:(l.dataset.type||"string").toLocaleLowerCase(),desc:c.length>0?c[c.length-1].getAttribute("title"):null}};return E?t(f(this,ce).activeTmpl.querySelector(`[data-bind="${E}"]`)):Array.from(f(this,ce).activeTmpl.querySelectorAll("[data-bind]")).filter(l=>l.dataset.bind!=="rowState").map(l=>t(l))});Y(this,ni,(E,t)=>{var l=Array.from(E.querySelectorAll("col"));return l[t]});Y(this,Lr,(E,t,l)=>{var c=[];if(!E)return c;for(var o=t;o<=l;o++)c=c.concat(Array.from(E.querySelectorAll(`[data-col="${o}"]:not(.dummy)`)));return c});Y(this,Ji,(E,t,l)=>{const c=(r,n)=>{const s=parseInt(n.dataset.col);return r.closest("thead,tbody,tfoot"),r.querySelector(`[data-col="${s}"]`)},o=(r,n)=>{const s=parseInt(n.dataset.col),e=n.colSpan||1,i=!r.closest("thead,tbody,tfoot");var u=r.querySelectorAll("th:not(.tmp),td:not(.tmp)");for(var a of u)if(parseInt(a.dataset.col)>s+e-1)return a};return parseInt(t.dataset.col)>parseInt(l.dataset.col)?c(E,l):o(E,l)});Y(this,jo,E=>{const t={org:{thead:{cells:[]},tfoot:{cells:[]},tbody:{cells:[]},fixed:{cells:[]},cols:[]},thead:{cells:[]},tfoot:{cells:[]},tbody:{cells:[]},fixed:{cells:[]},template:{cells:[]},cols:[]},l=E.colSpan||1,c=E.closest("table"),o=parseInt(E.dataset.col),r=E.closest("tr").sectionRowIndex;$("thead tr",c).each((e,i)=>{if(i.sectionRowIndex<r&&i.sectionRowIndex!=0)return!0;t.thead.cells=t.thead.cells.concat(f(this,Lr).call(this,i,o,o+l-1))}),t.tfoot.cells=f(this,Lr).call(this,c.querySelector("tfoot"),o,o+l-1),t.tbody.cells=f(this,Lr).call(this,c.querySelector("tbody.bindable"),o,o+l-1),t.fixed.cells=f(this,Lr).call(this,c.querySelector("tbody.fixed"),o,o+l-1);const n=f(this,ce).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout");t.org.thead.cells=f(this,Lr).call(this,n.currentTable.querySelector("thead"),o,o+l-1),t.org.tfoot.cells=f(this,Lr).call(this,n.currentTable.querySelector("tfoot"),o,o+l-1),t.org.tbody.cells=f(this,Lr).call(this,n.currentTable.querySelector("tbody.bindable"),o,o+l-1),t.org.fixed.cells=f(this,Lr).call(this,n.currentTable.querySelector("tbody.fixed"),o,o+l-1),f(this,ce).template.each((e,i)=>{t.template.cells=t.template.cells.concat(f(this,Lr).call(this,i,o,o+l-1))});for(var s=o;s<=o+l-1;s++)t.cols.push(f(this,ni).call(this,f(this,ce).body,s));for(var s=o;s<=o+l-1;s++)t.org.cols.push(f(this,ni).call(this,n.currentTable,s));return t});Y(this,nh,(E,t,l,c)=>{if(E.closest("tr").rowIndex!=t.closest("tr").rowIndex)return!1;const o=parseInt(E.dataset.col),r=E.colSpan;parseInt(t.dataset.col),t.colSpan;for(var n of[l.thead.cells,l.tfoot.cells,l.tbody.cells,l.fixed.cells,l.template.cells])for(var s of n){const e=parseInt(s.dataset.col),i=s.colSpan;if(e<o||e+i-1>o+r-1)return!1}return!0});it(this,"moveColumn",(E,t)=>{if(!E||!t)return!1;const l=f(this,ce).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout"),c=f(this,jo).call(this,E),o=f(this,jo).call(this,t),r=t.closest("table"),n=!!(E.closest(".ng-container-left")||t.closest(".ng-container-left")),s=!!(E.closest(".ng-container-right")||t.closest(".ng-container-right"));if(!f(this,nh).call(this,E,t,c,o))return!1;for(var e of[c.thead.cells,c.tfoot.cells,c.tbody.cells,c.fixed.cells])for(var i of e){H.j.querySelectorAll(i).addClass("tmp");const b=i.closest("tr").rowIndex,g=r.querySelectorAll("tr")[b];var u=f(this,Ji).call(this,g,E,t);u?g.insertBefore(i,u):g.appendChild(i)}for(var e of[c.org.thead.cells,c.org.tfoot.cells,c.org.tbody.cells,c.org.fixed.cells])for(var i of e){H.j.querySelectorAll(i).addClass("tmp");const S=i.closest("table"),C=i.closest("tr").rowIndex,I=S.querySelectorAll("tr")[C];var u=f(this,Ji).call(this,I,E,t);u?I.insertBefore(i,u):I.appendChild(i)}for(var i of c.template.cells){H.j.querySelectorAll(i).addClass("tmp");const g=i.closest("tr");var u=f(this,Ji).call(this,g,E,t);u?g.insertBefore(i,u):g.appendChild(i)}var a;parseInt(E.dataset.col)>parseInt(t.dataset.col)?a=parseInt(t.dataset.col):a=parseInt(t.dataset.col)+(t.colSpan||1)-1+(parseInt(E.dataset.col)>parseInt(t.dataset.col)?0:1);let h=f(this,ni).call(this,f(this,ce).body,a);const p=t.closest("table")==h.closest("table");for(var m of c.cols)m&&(p?t.closest("table").querySelector("colgroup").insertBefore(m,h):t.closest("table").querySelector("colgroup").appendChild(m));for(var m of c.org.cols)h=f(this,ni).call(this,l.currentTable,a),m&&m.closest("colgroup").insertBefore(m,h);for(var e of[c.thead.cells,c.tfoot.cells,c.tbody.cells,c.fixed.cells])for(var i of e)H.j.querySelectorAll(i).removeClass("tmp");for(var e of[c.org.thead.cells,c.org.tfoot.cells,c.org.tbody.cells,c.org.fixed.cells])for(var i of e)H.j.querySelectorAll(i).removeClass("tmp");for(var i of c.template.cells)H.j.querySelectorAll(i).removeClass("tmp");if(f(this,ce).body.querySelectorAll(".ng-container-left col").forEach(b=>{b.setAttribute("fixed","left")}),f(this,ce).body.querySelectorAll(".ng-container-left .col-indicator").forEach(b=>{b.setAttribute("fixed","left")}),f(this,ce).body.querySelectorAll(".ng-container-right col").forEach(b=>{b.setAttribute("fixed","right")}),f(this,ce).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{b.setAttribute("fixed","right")}),f(this,ce).body.querySelectorAll(".ng-container-body col").forEach(b=>{b.removeAttribute("fixed")}),f(this,ce).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{b.removeAttribute("fixed")}),l.currentTable.querySelectorAll("colgroup col").forEach(b=>{b.removeAttribute("fixed")}),$("th,td",f(this,ce).template).each((b,g)=>{g.removeAttribute("fixed")}),$("th,td",l.currentTable).each((b,g)=>{g.removeAttribute("fixed")}),f(this,ce).body.querySelectorAll(".ng-container-left .col-indicator").forEach(b=>{$(`[data-col="${b.dataset.col}"]`,f(this,ce).template).each((g,S)=>{S.setAttribute("fixed","left")}),$(`[data-col="${b.dataset.col}"]`,l.currentTable).each((g,S)=>{S.setAttribute("fixed","left")}),$("colgroup col",l.currentTable).each((g,S)=>{g<=parseInt(b.dataset.col)&&S.setAttribute("fixed","left")})}),f(this,ce).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{$(`[data-col="${b.dataset.col}"]`,f(this,ce).template).each((g,S)=>{S.setAttribute("fixed","right")}),$(`[data-col="${b.dataset.col}"]`,l.currentTable).each((g,S)=>{S.setAttribute("fixed","right")})}),f(this,ce).resetTemplate(),f(this,ce).body.querySelectorAll(".ng-container-right .col-indicator").forEach(b=>{$("colgroup col",l.currentTable).each((g,S)=>{g>=parseInt(b.dataset.col)&&S.setAttribute("fixed","right")})}),n){var d=t.closest(".ng-container-body")?-E.offsetWidth:0;$(".ng-container-left .col-indicator",f(this,ce).body).each((b,g)=>{d+=g.offsetWidth}),$(".ng-container-left",f(this,ce).body).css({width:d,"min-width":d})}if(s){var d=t.closest(".ng-container-body")?-E.offsetWidth:0;$(".ng-container-right .col-indicator",f(this,ce).body).each((g,S)=>{d+=S.offsetWidth}),$(".ng-container-right",f(this,ce).body).css({width:d,"min-width":d})}f(this,ce).refreshData()});it(this,"width",(E,t)=>{t=parseFloat(t);const l=f(this,ce).body.querySelector(`colgroup col[data-col="${E}"]`),c=!!l.closest(".ng-container-left"),o=!!l.closest(".ng-container-right"),r=!!l.closest(".ng-container-body"),n=c?"left":o?"right":"body";if(r)if(f(this,ce).getAttribute("auto-fit-col")=="true"){var s=0;$(".ng-container-body .col-indicator",f(this,ce).body).not(`[data-col=${E}]`).each((u,a)=>{s+=a.offsetWidth});const i=$(".ng-container-body",f(this,ce).body).width();$(".ng-container-body col",f(this,ce).body).each((u,a)=>{var h=parseInt(E==a.dataset.col?t:a.getAttribute("width"))*i/s;a.setAttribute("width",h)})}else l.setAttribute("width",t);else{var e=0;$(`.ng-container-${n} .col-indicator`,f(this,ce).body).not(`[data-col=${E}]`).each((i,u)=>{e+=parseInt(u.offsetWidth)}),$(`.ng-container-${n}`,f(this,ce).body).css({width:parseInt(e+t),"min-width":parseInt(e+t)}),l.setAttribute("width",t)}});tt(this,ce,E)}}ce=new WeakMap,ni=new WeakMap,Lr=new WeakMap,Ji=new WeakMap,jo=new WeakMap,nh=new WeakMap;class nd extends Ve.trace.constructor{constructor(){super(),this.init("nine-grid","green")}}const ou=new nd;class od extends ei{constructor(){super();Y(this,oh,10);Y(this,Qi);Y(this,De);Y(this,nr);Y(this,$o);Y(this,js);Y(this,oi);Y(this,tn);it(this,"dataRefresh",t=>{f(this,nr)&&(f(this,ah).call(this)?H.j.querySelectorAll(this).removeClass("invalid"):H.j.querySelectorAll(this).addClass("invalid")),f(this,Qi).innerHTML=this.getDisplayText()||"Select",t||this.reset()});Y(this,ah,()=>{if(H.isNull(this.value))return!0;var t=this.multi?this.value.split(this.multiSeparator):[this.value];for(var l of t){var c=f(this,nr).findIndex(o=>l==o[f(this,js)]);if(c<0)return!1}return!0});Y(this,lh,()=>{if(this.owner){if(tt(this,De,this.owner.shadowRoot.querySelector("ng-combo-panel")),this.owner.shadowRoot.querySelectorAll("ng-combo-panel").length>1)throw"too many ng-combo-panel";var t=this.getAttribute("data-source");t&&this.owner&&this.owner.exprFunction}});Y(this,hh,t=>{if(console.log(f(this,nr)),!!f(this,nr)){console.log(f(this,nr)),f(this,De).col=this.cell.dataset.col,f(this,De).row=this.cell.closest("tr").sectionRowIndex,f(this,nr).length>f(this,oh)?H.j.querySelectorAll(f(this,De)).addClass("expand"):H.j.querySelectorAll(f(this,De)).removeClass("expand"),this.multi?H.j.querySelectorAll(f(this,De)).addClass("multi"):H.j.querySelectorAll(f(this,De)).removeClass("multi"),f(this,De).refresh(this,f(this,nr),f(this,js),f(this,tn));var l=$(".btn1",this.shadowRoot).offset().left-$(this.owner).offset().left;l+$(f(this,De)).width()>$(this.owner).width()&&(l=$(".btn2",this.shadowRoot).offset().left-$(this.owner).offset().left-$(f(this,De)).width()+8),l<0&&(l=0);var c=Math.min(f(this,nr).length,f(this,$o))*26;this.multi?(H.j.querySelectorAll(f(this,De)).hasClass("expand")&&(c+=12,c+=3,c+=24),c+=2,c+=3,c+=25):(H.j.querySelectorAll(f(this,De)).hasClass("expand")&&(c+=12,c+=3,c+=24),c+=3);var o=$(".btn1",this.shadowRoot).offset().top+$(".btn1",this.shadowRoot).height()-$(this.owner).offset().top+3;o+c>$(this.owner).height()&&(o-=c+$(".btn1",this.shadowRoot).height()+6);var r=this.getAttribute("template");r&&console.error("logic error !!!!"),$(f(this,De)).css({left:l,top:o,height:c,"min-height":c}).show(),H.j.querySelectorAll(f(this,De)).hasClass("expand")&&$("div",f(this,De)).eq(0).find("input").focus().val("")}});Y(this,ch,t=>{t.target.closest("ng-combo-panel")||(f(this,De).row=f(this,De).col=-1,$(f(this,De)).hide())});Y(this,du,()=>"a")}connectedCallback(){this.multi=this.getAttribute("multi")=="true",this.multiSeparator=this.getAttribute("multi-separator")||",",tt(this,$o,this.getAttribute("rows")||5),tt(this,js,this.getAttribute("code")||"code"),tt(this,oi,this.getAttribute("codename")||"codename"),tt(this,tn,(this.getAttribute("items")||f(this,oi)||"").split(",")),f(this,tn).unshift("CHK");var t=this.querySelector("datalist");t&&(tt(this,nr,[]),t.querySelectorAll("option").forEach(n=>{const s=n.getAttribute(f(this,js)),e=n.getAttribute(f(this,oi));s&&e&&f(this,nr).push({[f(this,js)]:s,[f(this,oi)]:e})})),this.shadowRoot.innerHTML=`
|
|
161
161
|
<style>
|
|
162
162
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngCombo.css";
|
|
163
163
|
${H.getCustomPath(this,"ngCombo.css")}
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
|
|
166
166
|
<button class="btn1" type="button" data-bs-toggle="dropdown" aria-expanded="false" tabindex="-1"></button>
|
|
167
167
|
<button class="btn2" tabindex="-1"></button>
|
|
168
|
-
`,super.connectedCallback();const l=this.closest("th,td"),c=this.getAttribute("data-source");c&&this.owner&&this.owner.exprFunction&&(this.owner[c]?tt(this,nr,this.owner[c]):tt(this,nr,this.owner.exprFunction(c).call(this,this.owner.data.get(this.cell.dataset.row),this.cell.dataset.row))),l&&l.dataset&&f(this,nr)&&!l.dataset.expr&&(l.dataset.expr="comboExpr()"),f(this,lh).call(this),f(this,De),tt(this,Qi,this.shadowRoot.querySelector(".btn1"));var o=this.closest("th,td").dataset.col,r=this.closest("tr").sectionRowIndex;$(this.cell).on("keydown",n=>{n.code=="Enter"&&$(f(this,Qi)).trigger("click")}),$("button",this.shadowRoot).on("click",n=>{f(this,De).row==r&&f(this,De).col==o?f(this,ch).call(this,n):f(this,hh).call(this,n)})}get dataSource(){return f(this,nr)}}oh=new WeakMap,Qi=new WeakMap,De=new WeakMap,nr=new WeakMap,$o=new WeakMap,js=new WeakMap,oi=new WeakMap,tn=new WeakMap,ah=new WeakMap,lh=new WeakMap,hh=new WeakMap,ch=new WeakMap,
|
|
168
|
+
`,super.connectedCallback();const l=this.closest("th,td"),c=this.getAttribute("data-source");c&&this.owner&&this.owner.exprFunction&&(this.owner[c]?tt(this,nr,this.owner[c]):tt(this,nr,this.owner.exprFunction(c).call(this,this.owner.data.get(this.cell.dataset.row),this.cell.dataset.row))),l&&l.dataset&&f(this,nr)&&!l.dataset.expr&&(l.dataset.expr="comboExpr()"),f(this,lh).call(this),f(this,De),tt(this,Qi,this.shadowRoot.querySelector(".btn1"));var o=this.closest("th,td").dataset.col,r=this.closest("tr").sectionRowIndex;$(this.cell).on("keydown",n=>{n.code=="Enter"&&$(f(this,Qi)).trigger("click")}),$("button",this.shadowRoot).on("click",n=>{f(this,De).row==r&&f(this,De).col==o?f(this,ch).call(this,n):f(this,hh).call(this,n)})}get dataSource(){return f(this,nr)}}oh=new WeakMap,Qi=new WeakMap,De=new WeakMap,nr=new WeakMap,$o=new WeakMap,js=new WeakMap,oi=new WeakMap,tn=new WeakMap,ah=new WeakMap,lh=new WeakMap,hh=new WeakMap,ch=new WeakMap,du=new WeakMap;class ad extends HTMLElement{constructor(){super();Y(this,Lo);Y(this,Be);Y(this,$s);Y(this,ai);Y(this,en);Y(this,uh,()=>{$("input[type=checkbox]",this.shadowRoot).on("change",f(this,dh)),$("input[type=text]",this.shadowRoot).on("input",f(this,fh)),$("button#btnOk",this.shadowRoot).on("click",f(this,Do))});Y(this,Po,t=>{["TH","TD"].includes(t.target.tagName)&&["Enter"].includes(t.code)&&(f(this,Be).multi?f(this,Do).call(this,t):f(this,rn).call(this,t))});Y(this,dh,t=>{var l=this.shadowRoot.querySelector("nine-grid"),c=l.fields.indexOf("CHK");l.data.getValidData().map(o=>{o.v[c]=$(t.target).prop("checked")?"Y":"N"}),l.refreshData()});Y(this,Do,t=>{var l=this.shadowRoot.querySelector("nine-grid"),c=l.data.getValidData();const o=l.fields.indexOf("CHK"),r=l.fields.indexOf(f(this,$s));var n=[];c.forEach(e=>{e.v[o]=="Y"&&n.push(e.v[r])});var s=t.target.closest("th,td");$(s).blur(),f(this,Be).value=n.join(f(this,Be).multiSeparator),$(this).hide(),f(this,Be).getRootNode().host.cell.currentCell=f(this,Be).closest("th,td")});Y(this,rn,t=>{if(t.target.tagName!="NG-CHECKBOX"&&(t.preventDefault(),t.stopPropagation()),!f(this,Be).multi){var l=this.shadowRoot.querySelector("nine-grid"),c=t.target.closest("th,td");$(c).blur(),f(this,Be).value=l.data.get(c.dataset.row)[f(this,$s)],this.row=this.col=-1,$(this).hide(),f(this,Be).getRootNode().host.cell.currentCell=f(this,Be).closest("th,td")}});Y(this,fu,t=>{t.preventDefault(),t.stopPropagation(),$(this).hide()});Y(this,fh,t=>{var l=this.shadowRoot.querySelector("nine-grid");H.j.querySelectorAll(l).addClass("loading");var c=l.data.getValidDataNF();c.map(r=>{r.__ng.filtered=!1});var o=$(t.target).val().toLowerCase();c.filter(r=>{for(var n of f(this,en)){if(n=="CHK")continue;const s=l.fields.indexOf(n);if((String(r.v[s])||"").toLowerCase().indexOf(o)>=0)return!1}return!0}).map(r=>{r.__ng.filtered=!0}),l.data.resetRecords(),l.data.count()==0&&H.j.querySelectorAll(l).removeClass("loading"),f(this,ai)&&(clearTimeout(f(this,ai)),tt(this,ai,null)),tt(this,ai,setTimeout(()=>{l.dataManager.viewRecords.reset()},200))});it(this,"refresh",(t,l,c,o)=>{var r=this.shadowRoot.querySelector("nine-grid");$(this.shadowRoot).find("input[type=text]").val(""),$("input[type=checkbox]",this).prop("checked",!0),tt(this,en,o),$(".ng-table tbody",r.body).off("click","th,td",f(this,rn)),$(".ng-table tbody",r.body).on("click","th,td",f(this,rn)),tt(this,Be,t),tt(this,$s,c),$("th,td",r.template).each((i,u)=>{$(u).hide()}),$("thead th",r).each((i,u)=>{$(u).hide()}),o.forEach((i,u)=>{$(`[data-col=${u}]`,r.template).each((a,h)=>{h.dataset.bind=i,$(h).show()}),$(`[data-col=${u}]`,r.body).each((a,h)=>{h.dataset.bind=i,$(h).show()})});const n=["CHK"];if(l.length>0)for(const i in l[0])n.push(i);if(r.fields.add(n),r.data.set(l),f(this,ph).call(this,o),$(".ng-container-left",r.body).css({width:f(this,Be).multi?30:0,"min-width":f(this,Be).multi?30:0}),f(this,Be).multi){var s=f(this,Be).value.split(f(this,Be).multiSeparator);const i=r.fields.indexOf("CHK"),u=r.fields.indexOf(f(this,$s));r.data.getValidData().forEach(a=>{a.v[i]=s.includes(a.v[u])?"Y":"N"}),r.row.at=0}else{var e=r.fields.indexOf(f(this,$s));r.row.at=r.data.getValidData().findIndex(i=>f(this,Be).value==i.v[e])}setTimeout(()=>{$(`tbody.bindable tr[data-row="${r.row.at}"]`,r.shadowRoot).find("td").eq(0).focus()}),$(".ng-table tbody",r.body).off("keydown","th,td",f(this,Po)),$(".ng-table tbody",r.body).on("keydown","th,td",f(this,Po))});Y(this,ph,()=>{var t=this.shadowRoot.querySelector("nine-grid");$("col",t.body).each((o,r)=>{r.setAttribute("width","0")}),$("th",t.body).each((o,r)=>{$(r).html("")}),f(this,en).forEach((o,r)=>{t.setColumnWidthFit(r,30,!1)});var l=f(this,Be).getAttribute("template");l&&console.error("logic error !!!!");var c=16+(H.j.querySelectorAll(this).hasClass("expand"),0)+20;H.j.querySelectorAll(this).hasClass("multi")?$("col",t.body).each((o,r)=>{c+=parseInt(r.getAttribute("width"))}):$(".ng-container-body col",t.body).each((o,r)=>{c+=parseInt(r.getAttribute("width"))}),c<$(f(this,Be)).width()&&(c=$(f(this,Be)).width()-8),c>$(f(this,Be).closest("nine-grid")).width()&&(c=$(f(this,Be).closest("nine-grid")).width()),$(this).css({width:c,"min-width":c}),$(".ng-container-body .ng-table",t.body).css({left:0})});this.attachShadow({mode:"open"})}connectedCallback(){tt(this,Lo,this.getRootNode().host.closest("nine-grid"));const t=f(this,Lo).getAttribute("css-path")||"";this.shadowRoot.innerHTML=`
|
|
169
169
|
<style>
|
|
170
170
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngComboPanel.css";
|
|
171
171
|
${H.getCustomPath(this,"ngComboPanel.css")}
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
<input id="chkAll" type="checkbox" checked><label for="chkAll">Select All</label>
|
|
213
213
|
<button id="btnOk">OK</button>
|
|
214
214
|
</div>
|
|
215
|
-
`,f(this,uh).call(this)}}Lo=new WeakMap,Be=new WeakMap,$s=new WeakMap,ai=new WeakMap,en=new WeakMap,uh=new WeakMap,Po=new WeakMap,dh=new WeakMap,Do=new WeakMap,rn=new WeakMap,
|
|
215
|
+
`,f(this,uh).call(this)}}Lo=new WeakMap,Be=new WeakMap,$s=new WeakMap,ai=new WeakMap,en=new WeakMap,uh=new WeakMap,Po=new WeakMap,dh=new WeakMap,Do=new WeakMap,rn=new WeakMap,fu=new WeakMap,fh=new WeakMap,ph=new WeakMap,customElements.get("ng-combo")||customElements.define("ng-combo",od),customElements.get("ng-combo-panel")||customElements.define("ng-combo-panel",ad);class ld{constructor(E){Y(this,sn);Y(this,Bo);Y(this,nn);Y(this,li);Y(this,on);Y(this,Zr);it(this,"openMenu",(E,t)=>{var l=$(f(this,Zr)).css("font"),c=150;for(const o of f(this,nn))c=Math.max(c,H.measureTextSize(o.name,l).width+60);$(f(this,Zr)).css({width:c,top:t,left:E}),f(this,Zr).open(),f(this,li)&&f(this,li).show&&f(this,li).show.call(this,{source:f(this,Bo)})});Y(this,mh,E=>{tt(this,nn,f(this,Fo).call(this,E.items,0)),tt(this,li,E.events),tt(this,Zr,$(`<ng-context-menu-panel id="${E.id}"></ng-context-menu-panel>`)[0]),$(f(this,sn).shadowRoot).append($(f(this,Zr)).hide()),f(this,Zr).init(f(this,nn)),$("li",f(this,Zr)).on("mousedown",t=>{E.callback&&(t.menuId=t.currentTarget.getAttribute("menu-id"),t.source=f(this,Bo),E.callback(t)),$("ng-context-menu-panel",f(this,sn).shadowRoot).hide()})});Y(this,Fo,(E,t)=>{tt(this,on,Math.max(t,f(this,on))+1),E=f(this,gh).call(this,E);for(const l of E)l.level=t,l.hasOwnProperty("items")&&(l.items=f(this,Fo).call(this,l.items,t+1));return E});Y(this,gh,E=>{if(Array.isArray(E))return E;var t=[];for(const c in E){var l=E[c];l.menuId=c,t.push(l)}return t});tt(this,on,0),tt(this,sn,E.owner),f(this,mh).call(this,E)}}sn=new WeakMap,Bo=new WeakMap,nn=new WeakMap,li=new WeakMap,on=new WeakMap,Zr=new WeakMap,mh=new WeakMap,Fo=new WeakMap,gh=new WeakMap;class hd extends HTMLElement{constructor(){super();it(this,"init",t=>{var l=$("ul",this);$("li",l).remove(),f(this,qo).call(this,l,t),$("li",this).on("mouseover",f(this,bh)),$("li",this).on("mouseout",c=>{H.j.querySelectorAll(c.currentTarget).removeClass("visible")})});it(this,"open",()=>{$(this).show()});Y(this,qo,(t,l)=>{for(const n of l){var c=(n.hasOwnProperty("className")?n.className:"")+(n.hasOwnProperty("items")?" submenu":""),o=$(`<li menu-id='${n.menuId}' id="${n.name}" class="${c.trim()}"><span>${n.name}</span></li>`);if(t.append(o),n.hasOwnProperty("items")){var r=$("<ul></ul>");o.append(r),f(this,qo).call(this,r,n.items)}}});Y(this,bh,t=>{H.j.querySelectorAll(t.currentTarget).addClass("visible");var l=$(this).css("font"),c=150;$("ul > li:visible > span",t.currentTarget).each((o,r)=>{c=Math.max(c,H.measureTextSize($(r).text(),l).width+60)}),$("ul",t.currentTarget).eq(0).css({width:c,top:-9,left:$(t.currentTarget.closest("ul")).width()-8,"z-index":Number($(this).css("z-index"))+1})})}connectedCallback(){this.innerHTML="<ul></ul>"}}qo=new WeakMap,bh=new WeakMap,customElements.get("ng-context-menu-panel")||customElements.define("ng-context-menu-panel",hd);class cd{constructor(E){Y(this,Ur);Y(this,Ho,()=>{$(".ng-table tbody",f(this,Ur).shadowRoot).on("click","th,td",f(this,yh)),$(".ng-table thead",f(this,Ur).shadowRoot).on("click","th,td",f(this,vh)),$(".ng-table tfoot",f(this,Ur).shadowRoot).on("click","th,td",f(this,wh))});Y(this,yh,E=>{if(![1,2].includes(E.detail))return;const t=["altKey","ctrlKey","shiftKey","clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","button","buttons","whitch"],l=E.target.closest("th,td"),c=E.detail==1?H.EVENT.CELL_CLICK:H.EVENT.CELL_DBL_CLICK,o=new CustomEvent(c,{bubbles:!0,composed:!0,detail:{target:l}});o.col=l.dataset.col,o.row=l.dataset.row,o.subrow=parseInt(l.dataset.matrixRow)%parseInt(l.dataset.row),o.bind=l.dataset.bind,H.copyProperty(o,E,t),f(this,Ur).dispatchEvent(o)});Y(this,vh,E=>{if(![1,2].includes(E.detail))return;const t=["altKey","ctrlKey","shiftKey","clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","button","buttons","whitch"],l=E.target.closest("th,td"),c=E.detail==1?H.EVENT.HEADCELL_CLICK:H.EVENT.HEADCELL_DBL_CLICK,o=new CustomEvent(c,{bubbles:!0,composed:!0,detail:{target:l}});o.col=l.dataset.col,H.copyProperty(o,E,t),f(this,Ur).dispatchEvent(o)});Y(this,wh,E=>{if(![1,2].includes(E.detail))return;const t=["altKey","ctrlKey","shiftKey","clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","button","buttons","whitch"],l=E.target.closest("th,td"),c=E.detail==1?H.EVENT.FOOTCELL_CLICK:H.EVENT.FOOTCELL_DBL_CLICK,o=new CustomEvent(c,{bubbles:!0,composed:!0,detail:{target:l}});o.col=l.dataset.col,H.copyProperty(o,E,t),f(this,Ur).dispatchEvent(o)});tt(this,Ur,E),f(this,Ho).call(this),f(this,Ur).addEventListener(H.EVENT.LAYOUT_CHANGED,t=>{f(this,Ho).call(this)})}}Ur=new WeakMap,Ho=new WeakMap,yh=new WeakMap,vh=new WeakMap,wh=new WeakMap;class ud{constructor(E){Y(this,Jr);Y(this,zo);Y(this,us);it(this,"count",()=>f(this,Jr).rawRecords.length);it(this,"has",E=>f(this,Jr).data.filter(E).length>0);it(this,"first",E=>(f(this,Jr).data.first(E).__ng||{rowidx:-1}).rowidx);it(this,"last",E=>(f(this,Jr).data.last(E).__ng||{rowidx:-1}).rowidx);tt(this,Jr,E),tt(this,zo,-1),tt(this,us,-1)}get at(){return f(this,us)}set at(E){tt(this,zo,f(this,us)),tt(this,us,parseInt(E)),f(this,Jr).owner.body.querySelector(`tbody.bindable tr[data-row="${f(this,us)}"]`)||setTimeout(()=>{f(this,Jr).owner.scrollTo_V1(f(this,us))})}}Jr=new WeakMap,zo=new WeakMap,us=new WeakMap;class dd{constructor(E,t){Y(this,We);Y(this,Ft);Y(this,Pe);Y(this,Tr);Y(this,hi);Y(this,Ls);it(this,"initialize",()=>{tt(this,Ls,[]),$(f(this,We).template).each((E,t)=>{f(this,Ls).push($(t).height())}),(f(this,Ft).rawRecords||[]).forEach(E=>{E.__ng.height=f(this,Ls).slice()})});it(this,"set",E=>{this.clear(),this.add(E,!1)});it(this,"assign",E=>{this.source=E;for(var t=0;t<E.length;t++)f(this,Pe)[t].__ng._[H.ROW.ID]=E[t].__ng._[H.ROW.ID],tt(this,hi,Math.max(f(this,hi),E[t].__ng.rowid))});it(this,"getId",E=>E.__ng._[H.ROW.ID]);it(this,"reset",()=>{tt(this,Pe,[]),tt(this,Tr,[])});it(this,"refresh",()=>{f(this,Ft).viewRecords.reset()});it(this,"clearFilter",()=>(f(this,Ft).rawRecords.map(E=>{E.__ng.filtered=!1}),tt(this,Pe,f(this,Ft).rawRecords.filter(E=>!E.__ng.deleted&&!E.__ng.filtered)),f(this,Pe)));it(this,"refreshFilter",()=>(tt(this,Pe,f(this,Ft).rawRecords.filter(E=>!E.__ng.deleted&&!E.__ng.filtered)),f(this,ln).call(this),f(this,Pe)));it(this,"setFilter",E=>{f(this,We).filtering.on();let t={};if(Array.isArray(E))for(let c in E[0])console.log(`::::::${c}::::::`),t[c]=Array.from(new Set(E.map(o=>o[c])));else t=E;this.clearFilter();for(let c in t){const o=t[c],r=f(this,Ft).owner.fields.indexOf(c);let n=!1;for(let s of this.getValidData())if(s.v[r]!=null){n=typeof s.v[r]=="number";break}if(n)for(var l=0;l<o.length;l++)o[l]=Number(o[l]);this.getValidData().filter(s=>o.nineBinarySearch(s.v[r]||"")<0).map(s=>{s.__ng.filtered=!0})}this.refreshFilter(),f(this,We).shadowRoot.querySelectorAll("ng-filter-button").forEach(c=>{c.filterOptions.forEach(o=>{o.data=[]})}),Object.entries(t).forEach(([c,o])=>{f(this,We).shadowRoot.querySelectorAll("ng-filter-button").forEach(r=>{let n=r.filterOptions;n.forEach(s=>{s.colnm===c&&(s.data=o)}),r.filterOptions=n})}),f(this,Ft).owner.scrollTo_V1(0),f(this,Ft).owner.paging.reset()});it(this,"indexOf",E=>f(this,an).call(this,this.recordsNF(),E,this.records()));Y(this,an,(E,t,l)=>{const c=E[t];return l.findIndex(o=>o.__ng._[H.ROW.ID]==c.__ng._[H.ROW.ID])});it(this,"moveRow",(E,t)=>{E!=t&&(H.move(f(this,Ft).rawRecords,this.total.indexOf(E),this.total.indexOf(t)),this.resetRecords(),f(this,Ft).owner.dataManager.viewRecords.reset())});it(this,"filter",E=>f(this,Pe).filter(E));it(this,"max",(E,t)=>{var l=(t?this.filter(t):f(this,Ft).rawRecords).map(c=>c[E]);return l&&l.length>0?l.reduce((c,o)=>c>o?c:o):null});it(this,"min",(E,t)=>{var l=(t?this.filter(t):f(this,Ft).rawRecords).map(c=>c[E]);return l&&l.length>0?l.reduce((c,o)=>c>o?o:c):null});it(this,"first",E=>this.filter(E).first());it(this,"last",E=>this.filter(E).last());it(this,"count",()=>this.getValidData().length);it(this,"countNF",()=>this.getValidDataNF().length);it(this,"onRowStateChanged",()=>{const E=this.getChangedData(),t=$("tbody td[data-bind=rowState]",f(this,Ft).owner.body);if(t.length<=0)return;const l=t.eq(0)[0].dataset.col,c=H.j.querySelectorAll(`thead th[data-col="${l}"]:not(.col-indicator)`,f(this,Ft).owner.body);c.removeClass("deleted").removeClass("added").removeClass("updated"),E.delete.length>0?c.addClass("deleted"):E.insert.length>0?c.addClass("added"):E.update.length>0&&c.addClass("updated"),f(this,Ft).owner.paging.refreshTotal()});Y(this,Uo,E=>(Array.isArray(E)||(E=[E]),E.forEach((t,l)=>{t.__ng=this.default,t.__ng.rowid=this.nextId,t.__ng.rowState=H.ROW_STATE.INSERT,t.__ng._[H.ROW.ID]=t.__ng.rowid}),this.onRowStateChanged(),E));it(this,"sort",E=>{f(this,Ft).rawRecords.sort(E),f(this,Tr).sort(E),f(this,Pe).sort(E),f(this,ln).call(this),f(this,Ft).owner.refresh()});Y(this,ln,()=>{f(this,Ft).rawRecords.forEach((t,l)=>{t.__ng._[H.ROW.INDEX]=l}),f(this,Ft).rawRecords.filter(t=>!t.__ng.deleted&&!t.__ng.filtered&&t.__ng.visible).forEach((t,l)=>{t.__ng._[H.ROW.ORDER]=l+1});const E=f(this,Ft).rawRecords.filter(t=>!t.__ng.deleted&&t.__ng._[H.ROW.PIN]);E.forEach((t,l)=>{t.__ng._[H.ROW.VISIBLE_ROW]=(E.length-l)*-1}),f(this,Pe).forEach((t,l)=>{t.__ng._[H.ROW.VISIBLE_ROW]=l});//!m.__ng.deleted && !m.__ng.pin && !m.__ng._[ninegrid.ROW.PIN] && !m.__ng.filtered && m.__ng.visible && m.__ng.paging;
|
|
216
216
|
});it(this,"resetIndex",()=>{f(this,Ft).rawRecords.forEach((E,t)=>{E.__ng.ii=t,E.__ng.rowidx=t,E.__ng.rowidx1=t}),this.getValidData().forEach((E,t)=>{E.__ng.i=t,E.__ng.rowidx=t}),f(this,ln).call(this)});it(this,"resetRecords",()=>{tt(this,Tr,f(this,Ft).rawRecords.filter(E=>!E.__ng.deleted)),tt(this,Pe,f(this,Ft).rawRecords.filter(E=>!E.__ng.deleted&&!E.__ng._[H.ROW.PIN]&&!E.__ng._[H.ROW.COLLAPSE]&&!E.__ng.filtered&&E.__ng.visible&&E.__ng.paging)),this.resetIndex()});Y(this,Vo,E=>{Array.isArray(E)||(E=[E]);var t=[];return E.forEach(l=>{var c={v:[]};for(const o of f(this,We).fields.get())c.v.push(H.nvl(l[o],""));t.push(c)}),t});it(this,"exprFunction",E=>{let t="...args",l="let [data, currow] = args; currow = Number(currow); return "+E+";";return new Function(t,l)});it(this,"__ng",E=>{var t=this.getValidData();if(t.length==0)return null;try{return t[E].__ng}catch(l){console.error(l,t,E)}});it(this,"getValidData",()=>(f(this,Pe).length==0&&tt(this,Pe,f(this,Ft).rawRecords.filter(E=>!E.__ng.deleted&&!E.__ng._[H.ROW.PIN]&&!E.__ng._[H.ROW.COLLAPSE]&&E.__ng._[H.ROW.VISIBLE]&&!E.__ng.filtered&&E.__ng.visible&&E.__ng.paging)),f(this,Pe)));it(this,"getValidDataNF",()=>(f(this,Tr).length==0&&tt(this,Tr,f(this,Ft).rawRecords.filter(E=>!E.__ng.deleted)),f(this,Tr)));it(this,"conv",E=>{if(H.isNull(E))return E;if(Array.isArray(E)){var t=[];for(const r of E){for(var l={},c=0;c<f(this,We).fields.get().length;c++){const n=f(this,We).fields.get()[c];l[n]=r.v[c]}l.__ng=r.__ng,t.push(l)}return t}else{for(var o=E,l={},c=0;c<f(this,We).fields.get().length;c++){const s=f(this,We).fields.get()[c];l[s]=o.v[c]}return l.__ng=o.__ng,l}});it(this,"conv2",E=>{if(H.isNull(E))return E;if(Array.isArray(E)){var t=[];for(const r of E){for(var l={},c=0;c<f(this,We).fields.get().length;c++){const n=f(this,We).fields.get()[c];l[n]=r.v[c]}l.__ng=r.__ng,t.push(l)}return t}else{for(var o=E,l={},c=0;c<f(this,We).fields.get().length;c++){const s=f(this,We).fields.get()[c];l[s]=o.v[c]}return l.__ng=o.__ng,l}});it(this,"changeRowState",(E,t,l)=>{const c=o=>{[H.ROW_STATE.EMPTY,H.ROW_STATE.NORMAL].includes(E)&&(o.__ng.o={}),o.__ng.rowState=E};E||(E=H.ROW_STATE.EMPTY),!t&&!l&&(t=0,l=this.count()-1),t||(t=0),l||(l=t),l>=this.count()&&(l=this.count()-1),f(this,Pe).forEach((o,r)=>{o.__ng.rowidx>=t&&o.__ng.rowidx<=l&&c(o)}),f(this,Tr).forEach((o,r)=>{o.__ng.rowidx>=t&&o.__ng.rowidx<=l&&c(o)}),this.getValidDataNF().forEach((o,r)=>{o.__ng.rowidx>=t&&o.__ng.rowidx<=l&&c(o)}),this.onRowStateChanged(),f(this,Ft).viewRecords.reset()});it(this,"getCheckedData",E=>this.get().filter(t=>t.__ng.c[E]==!0));it(this,"search",(E,t)=>this.get().filter(l=>l[E]==t));Y(this,Wo,(E,t,l,c)=>{if(l==c)return;const o=new CustomEvent(H.EVENT.DATA_CHANGED,{bubbles:!0,detail:{}});o.row=E,o.bind=t,o.oldvalue=l,o.value=c,o.data=this.get(E),f(this,Ft).owner.dispatchEvent(o)});it(this,"add",(E,t)=>{E==null&&(E={}),t==null&&(t=!0);const l=f(this,Vo).call(this,E);f(this,Ft).rawRecords=f(this,Ft).rawRecords.concat(f(this,Uo).call(this,l));const c=f(this,Ft).rawRecords.map(r=>r.__ng._[H.ROW.ORIGIN_ORDER]);if(c.length>0){const r=c.reduce(function(n,s){return n>s?n:s});f(this,Ft).rawRecords.forEach((n,s)=>{n.__ng._[H.ROW.ORIGIN_ORDER]<0&&(n.__ng._[H.ROW.ORIGIN_ORDER]=r+1+s)})}this.resetRecords();const o=this.count()-1;return t||this.changeRowState(H.ROW_STATE.EMPTY,o-l.length+1,o),f(this,Ft).viewRecords.reset(),o});it(this,"insert",(E,t,l)=>{E==null&&(E={}),t==null&&(t=0),l==null&&(l=!0);var c=f(this,Vo).call(this,E);const o=f(this,Ft).rawRecords[t].__ng._[H.ROW.ORIGIN_ORDER];return f(this,Ft).rawRecords.filter(r=>r.__ng._[H.ROW.ORIGIN_ORDER]>=o).forEach(r=>{r.__ng._[H.ROW.ORIGIN_ORDER]+=c.length}),c=f(this,Uo).call(this,c),c.forEach((r,n)=>{r.__ng._[H.ROW.ORIGIN_ORDER]=o+n}),f(this,Ft).rawRecords.splice(t,0,...c),this.resetRecords(),l||this.changeRowState(H.ROW_STATE.EMPTY,t,t+c.length-1),f(this,Ft).viewRecords.reset(),t});Y(this,xh,E=>{var t=!1;E.sort((l,c)=>c-l).forEach(l=>{f(this,Pe)[l].__ng.rowState==H.ROW_STATE.INSERT?H.removeIf(f(this,Ft).rawRecords,c=>c.__ng.rowid==f(this,Pe)[l].__ng.rowid):(f(this,Ft).rawRecords.filter(c=>c.__ng.rowid==f(this,Pe)[l].__ng.rowid).map(c=>{c.__ng.deleted=!0,c.__ng.rowState=H.ROW_STATE.DELETE}),t=!0)}),t&&this.onRowStateChanged(),tt(this,Pe,f(this,Ft).rawRecords.filter(l=>!l.__ng.deleted&&!l.__ng.filtered)),tt(this,Tr,f(this,Ft).rawRecords.filter(l=>!l.__ng.deleted)),this.getValidDataNF().forEach((l,c)=>{l.__ng.rowidx=c}),this.getValidData().forEach((l,c)=>{l.__ng.rowidx=c}),f(this,Ft).viewRecords.reset()});it(this,"delete",E=>{var t=[];if(Array.isArray(E))t=E;else if(typeof E>"u"){if(f(this,Ft).owner.row.at<0)throw`invalid ${f(this,Ft).owner.row.at}`;t=[f(this,Ft).owner.row.at]}else if(typeof E=="number"||typeof E=="string")t=[E];else if(typeof E=="object"){const l=f(this,Pe).findIndex(c=>c.__ng._[H.ROW.ID]==E.__ng._[H.ROW.ID]);if(l<0)throw new Error(`${E.__ng._[H.ROW.ID]} not found.`);t=[l]}else throw`invalid ${E}`;f(this,xh).call(this,t)});it(this,"deleteFromId",E=>{var t=this.records();const l=t.findIndex(c=>c.__ng._[H.ROW.ID]==E);if(l<0)throw new Error(`${E} not found.`);this.delete(l)});Y(this,Xo,(E,t,l)=>{if(typeof l>"u")l=E.findIndex(e=>e.__ng._[H.ROW.ID]==t.__ng._[H.ROW.ID]);else if(typeof l=="number"||typeof l=="string")l=parseInt(l);else throw`invalid ${l}`;var c=E[l],o=!1;for(const e in t)if(!["__ng","rowState"].includes(e)){var r=f(this,We).fields.indexOf(e);if(!(r<0)){var n=c.v[r],s=t[e];c.v[r]=s,n!=s&&(c.__ng.rowState=H.ROW_STATE.UPDATE,o=!0,f(this,Wo).call(this,l,e,n,s))}}o&&this.onRowStateChanged(),f(this,Ft).owner.refreshData()});it(this,"update",(E,t)=>{f(this,Xo).call(this,f(this,Pe),E,t)});it(this,"setValue",(E,t,l,c)=>{f(this,Yo).call(this,E,t,l,c,!1)});it(this,"setValueNF",(E,t,l,c)=>{f(this,Yo).call(this,E,t,l,c,!0)});Y(this,Yo,(E,t,l,c,o)=>{E=parseInt(E),c==null&&(c=!0);const r=f(this,We).fields.indexOf(t);if(!(r<0)){var n=o?this.getValidDataNF()[E]:this.getValidData()[E],s=n.v[r];n.v[r]!=l&&n.__ng.rowState!=H.ROW_STATE.INSERT&&(n.__ng.o.hasOwnProperty(t)||(n.__ng.o[t]=s),c&&(n.__ng.rowState=H.ROW_STATE.UPDATE,this.onRowStateChanged())),n.v[r]=l,f(this,Ft).owner.refreshData(E),f(this,Wo).call(this,E,t,s,l)}});it(this,"setRecord",(E,t,l,c)=>{f(this,hn).call(this,this.getValidData(),E,t,l,c,!1)});it(this,"setRecordNF",(E,t,l,c)=>{f(this,hn).call(this,this.getValidDataNF(),E,t,l,c,!0)});Y(this,hn,(E,t,l,c,o)=>{t=parseInt(t),l=parseInt(l),o==null&&(o=!0);var r=E[t];r.v[l],r.v[l]!=c&&r.__ng.rowState!=H.ROW_STATE.INSERT&&o&&(r.__ng.rowState=H.ROW_STATE.UPDATE),r.v[l]=c});it(this,"getChangedData",E=>E?this.conv2(f(this,Ft).rawRecords.filter(t=>t.__ng.rowState==E)):{insert:this.conv2(f(this,Ft).rawRecords.filter(t=>t.__ng.rowState==H.ROW_STATE.INSERT)),update:this.conv2(f(this,Ft).rawRecords.filter(t=>t.__ng.rowState==H.ROW_STATE.UPDATE)),delete:this.conv2(f(this,Ft).rawRecords.filter(t=>t.__ng.rowState==H.ROW_STATE.DELETE))});it(this,"isChanged",()=>f(this,Ft).rawRecords.filter(t=>t.__ng.rowState==H.ROW_STATE.INSERT||t.__ng.rowState==H.ROW_STATE.UPDATE||t.__ng.rowState==H.ROW_STATE.DELETE).length>0);Y(this,cn,(E,t,l)=>{if(!(!E||E.length<=0)){if(H.isNull(t))return this.conv2(E);if(t<0||t>=E.length)throw`invalid row : ${t}`;if(l!=null){var c=f(this,We).fields.indexOf(l);return c>=0?E[t].v[c]:null}var o=t==null?E:E[t];return this.conv(o)}});it(this,"get",(E,t)=>f(this,cn).call(this,this.getValidData(),E,t));it(this,"getNF",(E,t)=>f(this,cn).call(this,this.getValidDataNF(),E,t));it(this,"records",E=>H.isNull(E)?this.getValidData():this.getValidData(E));it(this,"recordsNF",E=>H.isNull(E)?this.getValidDataNF():this.getValidDataNF(E));it(this,"getRow",E=>this.getValidData()[E]);it(this,"getRowNF",E=>this.getValidDataNF()[E]);Y(this,Go,(E,t)=>{var l=f(this,We).fields.indexOf(t);return l<0?[]:E.map(c=>c.v[l])});it(this,"getMap",E=>f(this,Go).call(this,this.getValidData(),E));it(this,"getMapNF",E=>f(this,Go).call(this,this.getValidDataNF(),E));it(this,"findIndex",E=>f(this,Ko).call(this,this.getValidData(),E));it(this,"findIndexNF",E=>f(this,Ko).call(this,this.getValidDataNF(),E));Y(this,Ko,function(E,t){return this.conv2(E).findIndex(t)});it(this,"findIndex_1",E=>f(this,Zo).call(this,this.getValidData(),E));it(this,"findIndexNF_1",E=>f(this,Zo).call(this,this.getValidDataNF(),E));Y(this,Zo,function(E,t){let l=0,c=E.length-1,o;for(;l<=c;){if(o=parseInt((l+c)/2),t===E[o].__ng._[H.ROW.INDEX])return o;t<E[o].__ng._[H.ROW.INDEX]?c=o-1:l=o+1}return-1});tt(this,We,E),tt(this,Ft,t),tt(this,Pe,[]),tt(this,Tr,[]),tt(this,hi,0),this.all={get:(l,c)=>f(this,cn).call(this,this.recordsNF(),l,c),records:l=>this.recordsNF(l),count:()=>this.recordsNF().length,setRecord:(l,c,o,r)=>f(this,hn).call(this,this.all.records(),l,c,o,r),indexOf:l=>f(this,an).call(this,this.records(),l,this.recordsNF()),update:(l,c)=>f(this,Xo).call(this,this.records(),l,c)},this.total={indexOf:l=>f(this,an).call(this,this.records(),l,f(this,Ft).rawRecords)},this.initialize()}get source(){return this.conv2(f(this,Ft).rawRecords)}set source(E){this.clear(),this.add(E,!1)}get nextId(){return++Ou(this,hi)._}get default(){return{rowState:H.ROW_STATE.EMPTY,deleted:!1,filtered:!1,pin:!1,expand:!0,visible:!0,paging:!0,height:f(this,Ls).slice(),o:{},c:{},_:[0,0,0,0,H.ROW_STATE.EMPTY,!1,!1,!0,!1,!0,!0,!1,f(this,Ls).slice(),-1,{},{}]}}clear(){delete f(this,Ft).rawRecords,tt(this,Pe,[]),tt(this,Tr,[]),f(this,Ft).rawRecords=[],f(this,Ft).viewRecords.reset()}}We=new WeakMap,Ft=new WeakMap,Pe=new WeakMap,Tr=new WeakMap,hi=new WeakMap,Ls=new WeakMap,an=new WeakMap,Uo=new WeakMap,ln=new WeakMap,Vo=new WeakMap,Wo=new WeakMap,xh=new WeakMap,Xo=new WeakMap,Yo=new WeakMap,hn=new WeakMap,cn=new WeakMap,Go=new WeakMap,Ko=new WeakMap,Zo=new WeakMap;class fd{constructor(E){this.owner=E,this.row=new ud(this),this.data=new dd(E,this),this.setDataSource=l=>{this.data&&this.data.reset(),this.pageCnt=25,this.rawRecords=[],this.viewRecords=[],this.delRecords=[],this.viewRecords.touch=()=>{this.viewRecords.updateCnt=(this.viewRecords.updateCnt||0)+1},this.viewRecords.rawIndex=0,this.viewRecords.setPageCnt=c=>{this.pageCnt=c},this.viewRecords.reset=()=>{this.owner.view&&this.owner.view.redraw()},this.viewRecords.resetV2=()=>{this.owner.view.redrawV2()},this.data.set(l)},this.getRowState=c=>{var c=parseInt(c);if(!(c>=this.data.count()))return this.data.__ng(c).rowState},this.getRowPosition=()=>this.row.at,this.setRowPosition=l=>{this.row.at=l},this.pageUp=()=>{if(!this.owner.isFirstPage){var l=$(".ng-container-body",this.owner.body).height()-($(".ng-container-body thead",this.owner.body).height()||0)-($(".ng-container-body tfoot",this.owner.body).height()||0);l-=$(".ng-container-body tbody.fixed",this.owner.body).height();for(var c=0,o=this.viewRecords.rawIndex;c<l;){o--;for(var r=0;r<this.owner.template.length;r++){var n=parseInt(o*this.owner.template.length+r);c+=this.owner.matrix.getHeight(n)}}return this.scrollTo_V1(o+1)}},this.pageDown=()=>{if(this.owner.isLastPage||!$("ng-vscrollbar",this.owner.body).is(":visible"))return;const l=parseInt(Array.from(this.owner.body.querySelectorAll(".ng-container-body tbody.bindable tr:not(.nodata)")).pop().dataset.row);return this.scrollTo_V1(l)},this.scrollTo_V1=l=>(l<0&&(l=0),l>=this.rawRecords.length&&(l=this.rawRecords.length-1),this.viewRecords.rawIndex=l,this.viewRecords.reset(),!(l<=0||l>=this.rawRecords.length-1)),this.scrollToV2=l=>(l<0&&(l=0),l>=this.rawRecords.length&&(l=this.rawRecords.length-1),this.viewRecords.rawIndex=l,this.viewRecords.resetV2(),!(l<=0||l>=this.rawRecords.length-1)),this.exprFunction=l=>{l=l.replaceAll("ninegrid.ROW.ORDER",H.ROW.ORDER);let c="...args",o="let [data, currow, all] = args; currow = Number(currow); return "+l+";";return new Function(c,o)},this.exprFunction2=l=>{this.owner.fields.get().forEach(r=>{const n=this.owner.fields.indexOf(r);l=l.replaceAll(`data.${r}`,`data.v[${n}]`)});let c="...args",o="let [data, currow, all] = args; currow = Number(currow); return "+l+";";return new Function(c,o)},this.getColumn=(l,c)=>this.data.get(l,c),this.setColumn=(l,c,o)=>{l=parseInt(l),this.data.get(l)[c]!=o&&this.data.get(l).__ng.rowState!=H.ROW_STATE.INSERT&&(this.data.get(l).__ng.rowState=H.ROW_STATE.UPDATE,this.data.onRowStateChanged()),this.setColumnSilent(l,c,o)},this.setColumnSilent=(l,c,o)=>{this.data.set(l,c,o)},this.setDataSource([]);for(var t in this.row)["first","last","count","add","insert","move","delete"].includes(t)||(this.data[t]=this.row[t])}}class pd extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const E=this.getAttribute("type")||"sphere",t=this.getAttribute("size")||this.getAttribute("width")||this.getAttribute("height")||"8",l=this.getAttribute("width")||this.getAttribute("size")||"8",c=this.getAttribute("height")||this.getAttribute("size")||"8",o=this.getAttribute("color")||"gray";var r="";switch(E){case"sphere":r=`<div class="ng-expand-icon-sphere" style="width: ${t}px; height: ${t}px; background: radial-gradient(circle farthest-corner at 33% 33%, white 0%, ${o} 80%), radial-gradient(circle farthest-corner at 45% 45%, rgba(0, 0, 0, 0) 50%, #000000 80%);" />`;break;case"circle":var n=Number(t)/2,s=this.getAttribute("stroke")||"#666",e=Number(this.getAttribute("stroke-width")||0),i=n+e,u=n+e;r=`
|
|
217
217
|
<svg class="ng-expand-icon-circle" viewBox="0 0 ${t} ${t}" width="${t}" height="${t}" xmlns="http://www.w3.org/2000/svg">
|
|
218
218
|
<circle fill="${o}" stroke="${s}" stroke-width="${e}" cx="${i}" cy="${u}" r="${n}"/>
|
|
@@ -253,14 +253,14 @@
|
|
|
253
253
|
</style>
|
|
254
254
|
|
|
255
255
|
<button>...</button>
|
|
256
|
-
`}}customElements.get("ng-expand-icon")||customElements.define("ng-expand-icon",pd),customElements.get("ng-expand-check")||customElements.define("ng-expand-check",md),customElements.get("ng-expand-button")||customElements.define("ng-expand-button",gd);var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bd(vt){return vt&&vt.__esModule&&Object.prototype.hasOwnProperty.call(vt,"default")?vt.default:vt}function Bl(vt){throw new Error('Could not dynamically require "'+vt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ou={exports:{}};/*! ExcelJS 19-10-2023 */var Au;function yd(){return Au||(Au=1,(function(vt,E){(function(t){vt.exports=t()})((function(){return(function t(l,c,o){function r(e,i){if(!c[e]){if(!l[e]){var u=typeof Bl=="function"&&Bl;if(!i&&u)return u(e,!0);if(n)return n(e,!0);var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}var h=c[e]={exports:{}};l[e][0].call(h.exports,(function(p){return r(l[e][1][p]||p)}),h,h.exports,t,l,c,o)}return c[e].exports}for(var n=typeof Bl=="function"&&Bl,s=0;s<o.length;s++)r(o[s]);return r})({1:[function(t,l,c){const o=t("fs"),r=t("fast-csv"),n=t("dayjs/plugin/customParseFormat"),s=t("dayjs/plugin/utc"),e=t("dayjs").extend(n).extend(s),i=t("../utils/stream-buf"),{fs:{exists:u}}=t("../utils/utils"),a={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};l.exports=class{constructor(h){this.workbook=h,this.worksheet=null}async readFile(h,p){if(p=p||{},!await u(h))throw new Error("File not found: "+h);const m=o.createReadStream(h),d=await this.read(m,p);return m.close(),d}read(h,p){return p=p||{},new Promise((m,d)=>{const b=this.workbook.addWorksheet(p.sheetName),g=p.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],S=p.map||function(I){if(I==="")return null;const D=Number(I);if(!Number.isNaN(D)&&D!==1/0)return D;const z=g.reduce((B,F)=>{if(B)return B;const W=e(I,F,!0);return W.isValid()?W:null},null);if(z)return new Date(z.valueOf());const P=a[I];return P!==void 0?P:I},C=r.parse(p.parserOptions).on("data",I=>{b.addRow(I.map(S))}).on("end",()=>{C.emit("worksheet",b)});C.on("worksheet",m).on("error",d),h.pipe(C)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(h,p){return new Promise((m,d)=>{p=p||{};const b=this.workbook.getWorksheet(p.sheetName||p.sheetId),g=r.format(p.formatterOptions);h.on("finish",()=>{m()}),g.on("error",d),g.pipe(h);const{dateFormat:S,dateUTC:C}=p,I=p.map||(P=>{if(P){if(P.text||P.hyperlink)return P.hyperlink||P.text||"";if(P.formula||P.result)return P.result||"";if(P instanceof Date)return S?C?e.utc(P).format(S):e(P).format(S):C?e.utc(P).format():e(P).format();if(P.error)return P.error;if(typeof P=="object")return JSON.stringify(P)}return P}),D=p.includeEmptyRows===void 0||p.includeEmptyRows;let z=1;b&&b.eachRow((P,B)=>{if(D)for(;z++<B-1;)g.write([]);const{values:F}=P;F.shift(),g.write(F.map(I)),z=B}),g.end()})}writeFile(h,p){const m={encoding:(p=p||{}).encoding||"utf8"},d=o.createWriteStream(h,m);return this.write(d,p)}async writeBuffer(h){const p=new i;return await this.write(p,h),p.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,l,c){const o=t("../utils/col-cache");class r{constructor(s,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=s,e)if(typeof e=="string"){const u=o.decodeAddress(e);this.nativeCol=u.col+i,this.nativeColOff=0,this.nativeRow=u.row+i,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+i,this.row=e.row+i):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(s){return s instanceof r||s==null?s:new r(s)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(s){this.nativeCol=Math.floor(s),this.nativeColOff=Math.floor((s-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(s){this.nativeRow=Math.floor(s),this.nativeRowOff=Math.floor((s-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(s){this.nativeCol=s.nativeCol,this.nativeColOff=s.nativeColOff,this.nativeRow=s.nativeRow,this.nativeRowOff=s.nativeRowOff}}l.exports=r},{"../utils/col-cache":19}],3:[function(t,l,c){const o=t("../utils/col-cache"),r=t("../utils/under-dash"),n=t("./enums"),{slideFormula:s}=t("../utils/shared-formula"),e=t("./note");class i{constructor(h,p,m){if(!h||!p)throw new Error("A Cell needs a Row");this._row=h,this._column=p,o.validateAddress(m),this._address=m,this._value=u.create(i.Types.Null,this),this.style=this._mergeStyle(h.style,p.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(h){this.style.numFmt=h}get font(){return this.style.font}set font(h){this.style.font=h}get alignment(){return this.style.alignment}set alignment(h){this.style.alignment=h}get border(){return this.style.border}set border(h){this.style.border=h}get fill(){return this.style.fill}set fill(h){this.style.fill=h}get protection(){return this.style.protection}set protection(h){this.style.protection=h}_mergeStyle(h,p,m){const d=h&&h.numFmt||p&&p.numFmt;d&&(m.numFmt=d);const b=h&&h.font||p&&p.font;b&&(m.font=b);const g=h&&h.alignment||p&&p.alignment;g&&(m.alignment=g);const S=h&&h.border||p&&p.border;S&&(m.border=S);const C=h&&h.fill||p&&p.fill;C&&(m.fill=C);const I=h&&h.protection||p&&p.protection;return I&&(m.protection=I),m}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===i.Types.Merge}merge(h,p){this._value.release(),this._value=u.create(i.Types.Merge,this,h),p||(this.style=h.style)}unmerge(){this.type===i.Types.Merge&&(this._value.release(),this._value=u.create(i.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(h){return this._value.type===i.Types.Merge&&this._value.isMergedTo(h)}get master(){return this.type===i.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===i.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(h){this.type!==i.Types.Merge?(this._value.release(),this._value=u.create(u.getType(h),this,h)):this._value.master.value=h}get note(){return this._comment&&this._comment.note}set note(h){this._comment=new e(h)}get text(){return this._value.toString()}get html(){return r.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(h){this.type===i.Types.String&&(this._value=u.create(i.Types.Hyperlink,this,{text:this._value.value,hyperlink:h}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:h}=this._row;return{sheetName:h.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(h){this.names=[h]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(h){const{definedNames:p}=this.workbook;p.removeAllNames(this.fullAddress),h.forEach(m=>{p.addEx(this.fullAddress,m)})}addName(h){this.workbook.definedNames.addEx(this.fullAddress,h)}removeName(h){this.workbook.definedNames.removeEx(this.fullAddress,h)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(h){this._dataValidations.add(this.address,h)}get model(){const{model:h}=this._value;return h.style=this.style,this._comment&&(h.comment=this._comment.model),h}set model(h){if(this._value.release(),this._value=u.create(h.type,this),this._value.model=h,h.comment)switch(h.comment.type){case"note":this._comment=e.fromModel(h.comment)}h.style?this.style=h.style:this.style={}}}i.Types=n.ValueType;const u={getType:a=>a==null?i.Types.Null:a instanceof String||typeof a=="string"?i.Types.String:typeof a=="number"?i.Types.Number:typeof a=="boolean"?i.Types.Boolean:a instanceof Date?i.Types.Date:a.text&&a.hyperlink?i.Types.Hyperlink:a.formula||a.sharedFormula?i.Types.Formula:a.richText?i.Types.RichText:a.sharedString?i.Types.SharedString:a.error?i.Types.Error:i.Types.JSON,types:[{t:i.Types.Null,f:class{constructor(a){this.model={address:a.address,type:i.Types.Null}}get value(){return null}set value(a){}get type(){return i.Types.Null}get effectiveType(){return i.Types.Null}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return""}release(){}toString(){return""}}},{t:i.Types.Number,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Number,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.Number}get effectiveType(){return i.Types.Number}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:i.Types.String,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.String,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.String}get effectiveType(){return i.Types.String}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:i.Types.Date,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Date,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.Date}get effectiveType(){return i.Types.Date}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:i.Types.Hyperlink,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Hyperlink,text:h?h.text:void 0,hyperlink:h?h.hyperlink:void 0},h&&h.tooltip&&(this.model.tooltip=h.tooltip)}get value(){const a={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(a.tooltip=this.model.tooltip),a}set value(a){this.model={text:a.text,hyperlink:a.hyperlink},a.tooltip&&(this.model.tooltip=a.tooltip)}get text(){return this.model.text}set text(a){this.model.text=a}get hyperlink(){return this.model.hyperlink}set hyperlink(a){this.model.hyperlink=a}get type(){return i.Types.Hyperlink}get effectiveType(){return i.Types.Hyperlink}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:i.Types.Formula,f:class{constructor(a,h){this.cell=a,this.model={address:a.address,type:i.Types.Formula,shareType:h?h.shareType:void 0,ref:h?h.ref:void 0,formula:h?h.formula:void 0,sharedFormula:h?h.sharedFormula:void 0,result:h?h.result:void 0}}_copyModel(a){const h={},p=m=>{const d=a[m];d&&(h[m]=d)};return p("formula"),p("result"),p("ref"),p("shareType"),p("sharedFormula"),h}get value(){return this._copyModel(this.model)}set value(a){this.model=this._copyModel(a)}validate(a){switch(u.getType(a)){case i.Types.Null:case i.Types.String:case i.Types.Number:case i.Types.Date:break;case i.Types.Hyperlink:case i.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(a){this.model.formula=a}get formulaType(){return this.model.formula?n.FormulaType.Master:this.model.sharedFormula?n.FormulaType.Shared:n.FormulaType.None}get result(){return this.model.result}set result(a){this.model.result=a}get type(){return i.Types.Formula}get effectiveType(){const a=this.model.result;return a==null?n.ValueType.Null:a instanceof String||typeof a=="string"?n.ValueType.String:typeof a=="number"?n.ValueType.Number:a instanceof Date?n.ValueType.Date:a.text&&a.hyperlink?n.ValueType.Hyperlink:a.formula?n.ValueType.Formula:n.ValueType.Null}get address(){return this.model.address}set address(a){this.model.address=a}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:a}=this.cell,h=a.findCell(this.model.sharedFormula);this._translatedFormula=h&&s(h.formula,h.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:i.Types.Merge,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Merge,master:h?h.address:void 0},this._master=h,h&&h.addMergeRef()}get value(){return this._master.value}set value(a){a instanceof i?(this._master&&this._master.releaseMergeRef(),a.addMergeRef(),this._master=a):this._master.value=a}isMergedTo(a){return a===this._master}get master(){return this._master}get type(){return i.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:i.Types.JSON,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.String,value:JSON.stringify(h),rawValue:h}}get value(){return this.model.rawValue}set value(a){this.model.rawValue=a,this.model.value=JSON.stringify(a)}get type(){return i.Types.String}get effectiveType(){return i.Types.String}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:i.Types.SharedString,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.SharedString,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.SharedString}get effectiveType(){return i.Types.SharedString}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:i.Types.RichText,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.String,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}toString(){return this.model.value.richText.map(a=>a.text).join("")}get type(){return i.Types.RichText}get effectiveType(){return i.Types.RichText}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:i.Types.Boolean,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Boolean,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.Boolean}get effectiveType(){return i.Types.Boolean}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:i.Types.Error,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Error,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.Error}get effectiveType(){return i.Types.Error}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((a,h)=>(a[h.t]=h.f,a),[]),create(a,h,p){const m=this.types[a];if(!m)throw new Error("Could not create Value of type "+a);return new m(h,p)}};l.exports=i},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,l,c){const o=t("../utils/under-dash"),r=t("./enums"),n=t("../utils/col-cache");class s{constructor(i,u,a){this._worksheet=i,this._number=u,a!==!1&&(this.defn=a)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return n.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(i){i?(this.key=i.key,this.width=i.width!==void 0?i.width:9,this.outlineLevel=i.outlineLevel,i.style?this.style=i.style:this.style={},this.header=i.header,this._hidden=!!i.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(i){i!==void 0?(this._header=i,this.headers.forEach((u,a)=>{this._worksheet.getCell(a+1,this.number).value=u})):this._header=void 0}get key(){return this._key}set key(i){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=i,i&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(i){this._hidden=i}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(i){this._outlineLevel=i}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(i){return this.width===i.width&&this.hidden===i.hidden&&this.outlineLevel===i.outlineLevel&&o.isEqual(this.style,i.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const i=this.style;return!i||!(i.font||i.numFmt||i.alignment||i.border||i.fill||i.protection)}get headerCount(){return this.headers.length}eachCell(i,u){const a=this.number;u||(u=i,i=null),this._worksheet.eachRow(i,(h,p)=>{u(h.getCell(a),p)})}get values(){const i=[];return this.eachCell((u,a)=>{u&&u.type!==r.ValueType.Null&&(i[a]=u.value)}),i}set values(i){if(!i)return;const u=this.number;let a=0;i.hasOwnProperty("0")&&(a=1),i.forEach((h,p)=>{this._worksheet.getCell(p+a,u).value=h})}_applyStyle(i,u){return this.style[i]=u,this.eachCell(a=>{a[i]=u}),u}get numFmt(){return this.style.numFmt}set numFmt(i){this._applyStyle("numFmt",i)}get font(){return this.style.font}set font(i){this._applyStyle("font",i)}get alignment(){return this.style.alignment}set alignment(i){this._applyStyle("alignment",i)}get protection(){return this.style.protection}set protection(i){this._applyStyle("protection",i)}get border(){return this.style.border}set border(i){this._applyStyle("border",i)}get fill(){return this.style.fill}set fill(i){this._applyStyle("fill",i)}static toModel(i){const u=[];let a=null;return i&&i.forEach((h,p)=>{h.isDefault?a&&(a=null):a&&h.equivalentTo(a)?a.max=p+1:(a={min:p+1,max:p+1,width:h.width!==void 0?h.width:9,style:h.style,isCustomWidth:h.isCustomWidth,hidden:h.hidden,outlineLevel:h.outlineLevel,collapsed:h.collapsed},u.push(a))}),u.length?u:void 0}static fromModel(i,u){const a=[];let h=1,p=0;for(u=(u=u||[]).sort((function(m,d){return m.min-d.min}));p<u.length;){const m=u[p++];for(;h<m.min;)a.push(new s(i,h++));for(;h<=m.max;)a.push(new s(i,h++,m))}return a.length?a:null}}l.exports=s},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,l,c){l.exports=class{constructor(o){this.model=o||{}}add(o,r){return this.model[o]=r}find(o){return this.model[o]}remove(o){this.model[o]=void 0}}},{}],6:[function(t,l,c){const o=t("../utils/under-dash"),r=t("../utils/col-cache"),n=t("../utils/cell-matrix"),s=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;l.exports=class{constructor(){this.matrixMap={}}getMatrix(i){return this.matrixMap[i]||(this.matrixMap[i]=new n)}add(i,u){const a=r.decodeEx(i);this.addEx(a,u)}addEx(i,u){const a=this.getMatrix(u);if(i.top)for(let h=i.left;h<=i.right;h++)for(let p=i.top;p<=i.bottom;p++){const m={sheetName:i.sheetName,address:r.n2l(h)+p,row:p,col:h};a.addCellEx(m)}else a.addCellEx(i)}remove(i,u){const a=r.decodeEx(i);this.removeEx(a,u)}removeEx(i,u){this.getMatrix(u).removeCellEx(i)}removeAllNames(i){o.each(this.matrixMap,u=>{u.removeCellEx(i)})}forEach(i){o.each(this.matrixMap,(u,a)=>{u.forEach(h=>{i(a,h)})})}getNames(i){return this.getNamesEx(r.decodeEx(i))}getNamesEx(i){return o.map(this.matrixMap,(u,a)=>u.findCellEx(i)&&a).filter(Boolean)}_explore(i,u){u.mark=!1;const{sheetName:a}=u,h=new s(u.row,u.col,u.row,u.col,a);let p,m;function d(g,S){const C=i.findCellAt(a,g,u.col);return!(!C||!C.mark)&&(h[S]=g,C.mark=!1,!0)}for(m=u.row-1;d(m,"top");m--);for(m=u.row+1;d(m,"bottom");m++);function b(g,S){const C=[];for(m=h.top;m<=h.bottom;m++){const I=i.findCellAt(a,m,g);if(!I||!I.mark)return!1;C.push(I)}h[S]=g;for(let I=0;I<C.length;I++)C[I].mark=!1;return!0}for(p=u.col-1;b(p,"left");p--);for(p=u.col+1;b(p,"right");p++);return h}getRanges(i,u){return(u=u||this.matrixMap[i])?(u.forEach(a=>{a.mark=!0}),{name:i,ranges:u.map(a=>a.mark&&this._explore(u,a)).filter(Boolean).map(a=>a.$shortRange)}):{name:i,ranges:[]}}normaliseMatrix(i,u){i.forEachInSheet(u,(a,h,p)=>{a&&(a.row===h&&a.col===p||(a.row=h,a.col=p,a.address=r.n2l(p)+h))})}spliceRows(i,u,a,h){o.each(this.matrixMap,p=>{p.spliceRows(i,u,a,h),this.normaliseMatrix(p,i)})}spliceColumns(i,u,a,h){o.each(this.matrixMap,p=>{p.spliceColumns(i,u,a,h),this.normaliseMatrix(p,i)})}get model(){return o.map(this.matrixMap,(i,u)=>this.getRanges(u,i)).filter(i=>i.ranges.length)}set model(i){const u=this.matrixMap={};i.forEach(a=>{const h=u[a.name]=new n;a.ranges.forEach(p=>{e.test(p.split("!").pop()||"")&&h.addCell(p)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,l,c){l.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,l,c){const o=t("../utils/col-cache"),r=t("./anchor");l.exports=class{constructor(n,s){this.worksheet=n,this.model=s}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(n){let{type:s,imageId:e,range:i,hyperlinks:u}=n;if(this.type=s,this.imageId=e,s==="image")if(typeof i=="string"){const a=o.decode(i);this.range={tl:new r(this.worksheet,{col:a.left,row:a.top},-1),br:new r(this.worksheet,{col:a.right,row:a.bottom},0),editAs:"oneCell"}}else this.range={tl:new r(this.worksheet,i.tl,0),br:i.br&&new r(this.worksheet,i.br,0),ext:i.ext,editAs:i.editAs,hyperlinks:u||i.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,l,c){const o=t("../utils/under-dash");class r{constructor(s){this.note=s}get model(){let s=null;switch(typeof this.note){case"string":s={type:"note",note:{texts:[{text:this.note}]}};break;default:s={type:"note",note:this.note}}return o.deepMerge({},r.DEFAULT_CONFIGS,s)}set model(s){const{note:e}=s,{texts:i}=e;i.length===1&&Object.keys(i[0]).length===1?this.note=i[0].text:this.note=e}static fromModel(s){const e=new r;return e.model=s,e}}r.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},l.exports=r},{"../utils/under-dash":26}],10:[function(t,l,c){const o=t("../utils/col-cache");class r{constructor(){this.decode(arguments)}setTLBR(s,e,i,u,a){if(arguments.length<4){const h=o.decodeAddress(s),p=o.decodeAddress(e);this.model={top:Math.min(h.row,p.row),left:Math.min(h.col,p.col),bottom:Math.max(h.row,p.row),right:Math.max(h.col,p.col),sheetName:i},this.setTLBR(h.row,h.col,p.row,p.col,a)}else this.model={top:Math.min(s,i),left:Math.min(e,u),bottom:Math.max(s,i),right:Math.max(e,u),sheetName:a}}decode(s){switch(s.length){case 5:this.setTLBR(s[0],s[1],s[2],s[3],s[4]);break;case 4:this.setTLBR(s[0],s[1],s[2],s[3]);break;case 3:this.setTLBR(s[0],s[1],s[2]);break;case 2:this.setTLBR(s[0],s[1]);break;case 1:{const e=s[0];if(e instanceof r)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const i=o.decodeEx(e);i.top?this.model={top:i.top,left:i.left,bottom:i.bottom,right:i.right,sheetName:i.sheetName}:this.model={top:i.row,left:i.col,bottom:i.row,right:i.col,sheetName:i.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+s.length)}}get top(){return this.model.top||1}set top(s){this.model.top=s}get left(){return this.model.left||1}set left(s){this.model.left=s}get bottom(){return this.model.bottom||1}set bottom(s){this.model.bottom=s}get right(){return this.model.right||1}set right(s){this.model.right=s}get sheetName(){return this.model.sheetName}set sheetName(s){this.model.sheetName=s}get _serialisedSheetName(){const{sheetName:s}=this.model;return s?/^[a-zA-Z0-9]*$/.test(s)?s+"!":`'${s}'!`:""}expand(s,e,i,u){(!this.model.top||s<this.top)&&(this.top=s),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||i>this.bottom)&&(this.bottom=i),(!this.model.right||u>this.right)&&(this.right=u)}expandRow(s){if(s){const{dimensions:e,number:i}=s;e&&this.expand(i,e.min,i,e.max)}}expandToAddress(s){const e=o.decodeEx(s);this.expand(e.row,e.col,e.row,e.col)}get tl(){return o.n2l(this.left)+this.top}get $t$l(){return`$${o.n2l(this.left)}$${this.top}`}get br(){return o.n2l(this.right)+this.bottom}get $b$r(){return`$${o.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(s){return(!s.sheetName||!this.sheetName||s.sheetName===this.sheetName)&&!(s.bottom<this.top)&&!(s.top>this.bottom)&&!(s.right<this.left)&&!(s.left>this.right)}contains(s){const e=o.decodeEx(s);return this.containsEx(e)}containsEx(s){return(!s.sheetName||!this.sheetName||s.sheetName===this.sheetName)&&s.row>=this.top&&s.row<=this.bottom&&s.col>=this.left&&s.col<=this.right}forEachAddress(s){for(let e=this.left;e<=this.right;e++)for(let i=this.top;i<=this.bottom;i++)s(o.encodeAddress(i,e),i,e)}}l.exports=r},{"../utils/col-cache":19}],11:[function(t,l,c){const o=t("../utils/under-dash"),r=t("./enums"),n=t("../utils/col-cache"),s=t("./cell");l.exports=class{constructor(e,i){this._worksheet=e,this._number=i,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let i=this._cells[e.col-1];if(!i){const u=this._worksheet.getColumn(e.col);i=new s(this,u,e.address),this._cells[e.col-1]=i}return i}getCell(e){if(typeof e=="string"){const i=this._worksheet.getColumnKey(e);e=i?i.number:n.l2n(e)}return this._cells[e-1]||this.getCellEx({address:n.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,i){const u=e+i;for(var a=arguments.length,h=new Array(a>2?a-2:0),p=2;p<a;p++)h[p-2]=arguments[p];const m=h.length-i,d=this._cells.length;let b,g,S;if(m<0)for(b=e+h.length;b<=d;b++)S=this._cells[b-1],g=this._cells[b-m-1],g?(S=this.getCell(b),S.value=g.value,S.style=g.style,S._comment=g._comment):S&&(S.value=null,S.style={},S._comment=void 0);else if(m>0)for(b=d;b>=u;b--)g=this._cells[b-1],g?(S=this.getCell(b+m),S.value=g.value,S.style=g.style,S._comment=g._comment):this._cells[b+m-1]=void 0;for(b=0;b<h.length;b++)S=this.getCell(e+b),S.value=h[b],S.style={},S._comment=void 0}eachCell(e,i){if(i||(i=e,e=null),e&&e.includeEmpty){const u=this._cells.length;for(let a=1;a<=u;a++)i(this.getCell(a),a)}else this._cells.forEach((u,a)=>{u&&u.type!==r.ValueType.Null&&i(u,a+1)})}addPageBreak(e,i){const u=this._worksheet,a=Math.max(0,e-1)||0,h=Math.max(0,i-1)||16838,p={id:this._number,max:h,man:1};a&&(p.min=a),u.rowBreaks.push(p)}get values(){const e=[];return this._cells.forEach(i=>{i&&i.type!==r.ValueType.Null&&(e[i.col]=i.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let i=0;e.hasOwnProperty("0")&&(i=1),e.forEach((u,a)=>{u!==void 0&&(this.getCellEx({address:n.encodeAddress(this._number,a+i),row:this._number,col:a+i}).value=u)})}else this._worksheet.eachColumnKey((i,u)=>{e[u]!==void 0&&(this.getCellEx({address:n.encodeAddress(this._number,i.number),row:this._number,col:i.number}).value=e[u])})}get hasValues(){return o.some(this._cells,e=>e&&e.type!==r.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,i=0;return this._cells.forEach(u=>{u&&u.type!==r.ValueType.Null&&((!e||e>u.col)&&(e=u.col),i<u.col&&(i=u.col))}),e>0?{min:e,max:i}:null}_applyStyle(e,i){return this.style[e]=i,this._cells.forEach(u=>{u&&(u[e]=i)}),i}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let i=0,u=0;return this._cells.forEach(a=>{if(a){const h=a.model;h&&((!i||i>a.col)&&(i=a.col),u<a.col&&(u=a.col),e.push(h))}}),this.height||e.length?{cells:e,number:this.number,min:i,max:u,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let i;this._cells=[],e.cells.forEach(u=>{switch(u.type){case s.Types.Merge:break;default:{let a;if(u.address)a=n.decodeAddress(u.address);else if(i){const{row:h}=i,p=i.col+1;a={row:h,col:p,address:n.encodeAddress(h,p),$col$row:`$${n.n2l(p)}$${h}`}}i=a,this.getCellEx(a).model=u;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,l,c){const o=t("../utils/col-cache");class r{constructor(s,e,i){this.table=s,this.column=e,this.index=i}_set(s,e){this.table.cacheState(),this.column[s]=e}get name(){return this.column.name}set name(s){this._set("name",s)}get filterButton(){return this.column.filterButton}set filterButton(s){this.column.filterButton=s}get style(){return this.column.style}set style(s){this.column.style=s}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(s){this._set("totalsRowLabel",s)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(s){this._set("totalsRowFunction",s)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(s){this._set("totalsRowResult",s)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(s){this._set("totalsRowFormula",s)}}l.exports=class{constructor(n,s){this.worksheet=n,s&&(this.table=s,this.validate(),this.store())}getFormula(n){switch(n.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${n.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${n.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${n.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${n.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${n.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${n.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${n.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${n.name}])`;case"custom":return n.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+n.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:n}=this,s=(m,d,b)=>{m[d]===void 0&&(m[d]=b)};s(n,"headerRow",!0),s(n,"totalsRow",!1),s(n,"style",{}),s(n.style,"theme","TableStyleMedium2"),s(n.style,"showFirstColumn",!1),s(n.style,"showLastColumn",!1),s(n.style,"showRowStripes",!1),s(n.style,"showColumnStripes",!1);const e=(m,d)=>{if(!m)throw new Error(d)};e(n.ref,"Table must have ref"),e(n.columns,"Table must have column definitions"),e(n.rows,"Table must have row definitions"),n.tl=o.decodeAddress(n.ref);const{row:i,col:u}=n.tl;e(i>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:a,filterHeight:h,tableHeight:p}=this;n.autoFilterRef=o.encode(i,u,i+h-1,u+a-1),n.tableRef=o.encode(i,u,i+p-1,u+a-1),n.columns.forEach((m,d)=>{e(m.name,`Column ${d} must have a name`),d===0?s(m,"totalsRowLabel","Total"):(s(m,"totalsRowFunction","none"),m.totalsRowFormula=this.getFormula(m))})}store(){const n=(h,p)=>{p&&Object.keys(p).forEach(m=>{h[m]=p[m]})},{worksheet:s,table:e}=this,{row:i,col:u}=e.tl;let a=0;if(e.headerRow){const h=s.getRow(i+a++);e.columns.forEach((p,m)=>{const{style:d,name:b}=p,g=h.getCell(u+m);g.value=b,n(g,d)})}if(e.rows.forEach(h=>{const p=s.getRow(i+a++);h.forEach((m,d)=>{const b=p.getCell(u+d);b.value=m,n(b,e.columns[d].style)})}),e.totalsRow){const h=s.getRow(i+a++);e.columns.forEach((p,m)=>{const d=h.getCell(u+m);if(m===0)d.value=p.totalsRowLabel;else{const b=this.getFormula(p);d.value=b?{formula:p.totalsRowFormula,result:p.totalsRowResult}:null}n(d,p.style)})}}load(n){const{table:s}=this,{row:e,col:i}=s.tl;let u=0;if(s.headerRow){const a=n.getRow(e+u++);s.columns.forEach((h,p)=>{a.getCell(i+p).value=h.name})}if(s.rows.forEach(a=>{const h=n.getRow(e+u++);a.forEach((p,m)=>{h.getCell(i+m).value=p})}),s.totalsRow){const a=n.getRow(e+u++);s.columns.forEach((h,p)=>{const m=a.getCell(i+p);p===0?m.value=h.totalsRowLabel:this.getFormula(h)&&(m.value={formula:h.totalsRowFormula,result:h.totalsRowResult})})}}get model(){return this.table}set model(n){this.table=n}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const n=o.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let s=0;s<this._cache.tableHeight;s++){const e=this.worksheet.getRow(n.row+s);for(let i=0;i<this._cache.width;i++)e.getCell(n.col+i).value=null}else{for(let s=this.tableHeight;s<this._cache.tableHeight;s++){const e=this.worksheet.getRow(n.row+s);for(let i=0;i<this._cache.width;i++)e.getCell(n.col+i).value=null}for(let s=0;s<this.tableHeight;s++){const e=this.worksheet.getRow(n.row+s);for(let i=this.width;i<this._cache.width;i++)e.getCell(n.col+i).value=null}}this.store()}addRow(n,s){this.cacheState(),s===void 0?this.table.rows.push(n):this.table.rows.splice(s,0,n)}removeRows(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(n,s)}getColumn(n){const s=this.table.columns[n];return new r(this,s,n)}addColumn(n,s,e){this.cacheState(),e===void 0?(this.table.columns.push(n),this.table.rows.forEach((i,u)=>{i.push(s[u])})):(this.table.columns.splice(e,0,n),this.table.rows.forEach((i,u)=>{i.splice(e,0,s[u])}))}removeColumns(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(n,s),this.table.rows.forEach(e=>{e.splice(n,s)})}_assign(n,s,e){this.cacheState(),n[s]=e}get ref(){return this.table.ref}set ref(n){this._assign(this.table,"ref",n)}get name(){return this.table.name}set name(n){this.table.name=n}get displayName(){return this.table.displyName||this.table.name}set displayNamename(n){this.table.displayName=n}get headerRow(){return this.table.headerRow}set headerRow(n){this._assign(this.table,"headerRow",n)}get totalsRow(){return this.table.totalsRow}set totalsRow(n){this._assign(this.table,"totalsRow",n)}get theme(){return this.table.style.name}set theme(n){this.table.style.name=n}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(n){this.table.style.showFirstColumn=n}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(n){this.table.style.showLastColumn=n}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(n){this.table.style.showRowStripes=n}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(n){this.table.style.showColumnStripes=n}}},{"../utils/col-cache":19}],13:[function(t,l,c){const o=t("./worksheet"),r=t("./defined-names"),n=t("../xlsx/xlsx"),s=t("../csv/csv");l.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new r}get xlsx(){return this._xlsx||(this._xlsx=new n(this)),this._xlsx}get csv(){return this._csv||(this._csv=new s(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,i){const u=this.nextId;i&&(typeof i=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),i={properties:{tabColor:{argb:i}}}):(i.argb||i.theme||i.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),i={properties:{tabColor:i}}));const a=this._worksheets.reduce((m,d)=>(d&&d.orderNo)>m?d.orderNo:m,0),h=Object.assign({},i,{id:u,name:e,orderNo:a+1,workbook:this}),p=new o(h);return this._worksheets[u]=p,p}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const i=this.getWorksheet(e);i&&i.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(i=>i&&i.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,i)=>e.orderNo-i.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(i=>{e(i,i.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const i=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),i}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(i=>{const{id:u,name:a,state:h}=i,p=e.sheets&&e.sheets.findIndex(m=>m.id===u);(this._worksheets[u]=new o({id:u,name:a,orderNo:p,state:h,workbook:this})).model=i}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,l,c){const o=t("../utils/under-dash"),r=t("../utils/col-cache"),n=t("./range"),s=t("./row"),e=t("./column"),i=t("./enums"),u=t("./image"),a=t("./table"),h=t("./data-validations"),p=t("../utils/encryptor"),{copyStyle:m}=t("../utils/copy-style");l.exports=class{constructor(d){d=d||{},this._workbook=d.workbook,this.id=d.id,this.orderNo=d.orderNo,this.name=d.name,this.state=d.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},d.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!d.pageSetup||!d.pageSetup.fitToWidth&&!d.pageSetup.fitToHeight||d.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},d.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},d.headerFooter),this.dataValidations=new h,this.views=d.views||[],this.autoFilter=d.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(d){if(d===void 0&&(d="sheet"+this.id),this._name!==d){if(typeof d!="string")throw new Error("The name has to be a string.");if(d==="")throw new Error("The name can't be empty.");if(d==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(d))throw new Error(`Worksheet name ${d} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(d))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+d);if(d&&d.length>31&&(console.warn(`Worksheet name ${d} exceeds 31 chars. This will be truncated`),d=d.substring(0,31)),this._workbook._worksheets.find(b=>b&&b.name.toLowerCase()===d.toLowerCase()))throw new Error("Worksheet name already exists: "+d);this._name=d}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const d=new n;return this._rows.forEach(b=>{if(b){const g=b.dimensions;g&&d.expand(b.number,g.min,b.number,g.max)}}),d}get columns(){return this._columns}set columns(d){this._headerRowCount=d.reduce((S,C)=>{const I=(C.header?1:C.headers&&C.headers.length)||0;return Math.max(S,I)},0);let b=1;const g=this._columns=[];d.forEach(S=>{const C=new e(this,b++,!1);g.push(C),C.defn=S})}getColumnKey(d){return this._keys[d]}setColumnKey(d,b){this._keys[d]=b}deleteColumnKey(d){delete this._keys[d]}eachColumnKey(d){o.each(this._keys,d)}getColumn(d){if(typeof d=="string"){const b=this._keys[d];if(b)return b;d=r.l2n(d)}if(this._columns||(this._columns=[]),d>this._columns.length){let b=this._columns.length+1;for(;b<=d;)this._columns.push(new e(this,b++))}return this._columns[d-1]}spliceColumns(d,b){const g=this._rows.length;for(var S=arguments.length,C=new Array(S>2?S-2:0),I=2;I<S;I++)C[I-2]=arguments[I];if(C.length>0)for(let B=0;B<g;B++){const F=[d,b];C.forEach(q=>{F.push(q[B]||null)});const W=this.getRow(B+1);W.splice.apply(W,F)}else this._rows.forEach(B=>{B&&B.splice(d,b)});const D=C.length-b,z=d+b,P=this._columns.length;if(D<0)for(let B=d+C.length;B<=P;B++)this.getColumn(B).defn=this.getColumn(B-D).defn;else if(D>0)for(let B=P;B>=z;B--)this.getColumn(B+D).defn=this.getColumn(B).defn;for(let B=d;B<d+C.length;B++)this.getColumn(B).defn=null;this.workbook.definedNames.spliceColumns(this.name,d,b,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let d=0;return this.eachRow(b=>{d=Math.max(d,b.cellCount)}),d}get actualColumnCount(){const d=[];let b=0;return this.eachRow(g=>{g.eachCell(S=>{let{col:C}=S;d[C]||(d[C]=!0,b++)})}),b}_commitRow(){}get _lastRowNumber(){const d=this._rows;let b=d.length;for(;b>0&&d[b-1]===void 0;)b--;return b}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(d){return this._rows[d-1]}findRows(d,b){return this._rows.slice(d-1,d-1+b)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let d=0;return this.eachRow(()=>{d++}),d}getRow(d){let b=this._rows[d-1];return b||(b=this._rows[d-1]=new s(this,d)),b}getRows(d,b){if(b<1)return;const g=[];for(let S=d;S<d+b;S++)g.push(this.getRow(S));return g}addRow(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const g=this._nextRow,S=this.getRow(g);return S.values=d,this._setStyleOption(g,b[0]==="i"?b:"n"),S}addRows(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const g=[];return d.forEach(S=>{g.push(this.addRow(S,b))}),g}insertRow(d,b){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(d,0,b),this._setStyleOption(d,g),this.getRow(d)}insertRows(d,b){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(d,0,...b),g!=="n")for(let S=0;S<b.length;S++)g[0]==="o"&&this.findRow(b.length+d+S)!==void 0?this._copyStyle(b.length+d+S,d+S,g[1]==="+"):g[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d+S,g[1]==="+");return this.getRows(d,b.length)}_setStyleOption(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";b[0]==="o"&&this.findRow(d+1)!==void 0?this._copyStyle(d+1,d,b[1]==="+"):b[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d,b[1]==="+")}_copyStyle(d,b){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this.getRow(d),C=this.getRow(b);C.style=m(S.style),S.eachCell({includeEmpty:g},(I,D)=>{C.getCell(D).style=m(I.style)}),C.height=S.height}duplicateRow(d,b){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this._rows[d-1],C=new Array(b).fill(S.values);this.spliceRows(d+1,g?0:b,...C);for(let I=0;I<b;I++){const D=this._rows[d+I];D.style=S.style,D.height=S.height,S.eachCell({includeEmpty:!0},(z,P)=>{D.getCell(P).style=z.style})}}spliceRows(d,b){const g=d+b;for(var S=arguments.length,C=new Array(S>2?S-2:0),I=2;I<S;I++)C[I-2]=arguments[I];const D=C.length,z=D-b,P=this._rows.length;let B,F;if(z<0)for(d===P&&(this._rows[P-1]=void 0),B=g;B<=P;B++)if(F=this._rows[B-1],F){const W=this.getRow(B+z);W.values=F.values,W.style=F.style,W.height=F.height,F.eachCell({includeEmpty:!0},(q,A)=>{W.getCell(A).style=q.style}),this._rows[B-1]=void 0}else this._rows[B+z-1]=void 0;else if(z>0)for(B=P;B>=g;B--)if(F=this._rows[B-1],F){const W=this.getRow(B+z);W.values=F.values,W.style=F.style,W.height=F.height,F.eachCell({includeEmpty:!0},(q,A)=>{if(W.getCell(A).style=q.style,q._value.constructor.name==="MergeValue"){const M=this.getRow(q._row._number+D).getCell(A),k=q._value._master,y=this.getRow(k._row._number+D).getCell(k._column._number);M.merge(y)}})}else this._rows[B+z-1]=void 0;for(B=0;B<D;B++){const W=this.getRow(d+B);W.style={},W.values=C[B]}this.workbook.definedNames.spliceRows(this.name,d,b,D)}eachRow(d,b){if(b||(b=d,d=void 0),d&&d.includeEmpty){const g=this._rows.length;for(let S=1;S<=g;S++)b(this.getRow(S),S)}else this._rows.forEach(g=>{g&&g.hasValues&&b(g,g.number)})}getSheetValues(){const d=[];return this._rows.forEach(b=>{b&&(d[b.number]=b.values)}),d}findCell(d,b){const g=r.getAddress(d,b),S=this._rows[g.row-1];return S?S.findCell(g.col):void 0}getCell(d,b){const g=r.getAddress(d,b);return this.getRow(g.row).getCellEx(g)}mergeCells(){for(var d=arguments.length,b=new Array(d),g=0;g<d;g++)b[g]=arguments[g];const S=new n(b);this._mergeCellsInternal(S)}mergeCellsWithoutStyle(){for(var d=arguments.length,b=new Array(d),g=0;g<d;g++)b[g]=arguments[g];const S=new n(b);this._mergeCellsInternal(S,!0)}_mergeCellsInternal(d,b){o.each(this._merges,S=>{if(S.intersects(d))throw new Error("Cannot merge already merged cells")});const g=this.getCell(d.top,d.left);for(let S=d.top;S<=d.bottom;S++)for(let C=d.left;C<=d.right;C++)(S>d.top||C>d.left)&&this.getCell(S,C).merge(g,b);this._merges[g.address]=d}_unMergeMaster(d){const b=this._merges[d.address];if(b){for(let g=b.top;g<=b.bottom;g++)for(let S=b.left;S<=b.right;S++)this.getCell(g,S).unmerge();delete this._merges[d.address]}}get hasMerges(){return o.some(this._merges,Boolean)}unMergeCells(){for(var d=arguments.length,b=new Array(d),g=0;g<d;g++)b[g]=arguments[g];const S=new n(b);for(let C=S.top;C<=S.bottom;C++)for(let I=S.left;I<=S.right;I++){const D=this.findCell(C,I);D&&(D.type===i.ValueType.Merge?this._unMergeMaster(D.master):this._merges[D.address]&&this._unMergeMaster(D))}}fillFormula(d,b,g){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const C=r.decode(d),{top:I,left:D,bottom:z,right:P}=C,B=P-D+1,F=r.encodeAddress(I,D),W=S==="shared";let q;q=typeof g=="function"?g:Array.isArray(g)?Array.isArray(g[0])?(M,k)=>g[M-I][k-D]:(M,k)=>g[(M-I)*B+(k-D)]:()=>{};let A=!0;for(let M=I;M<=z;M++)for(let k=D;k<=P;k++)A?(this.getCell(M,k).value={shareType:S,formula:b,ref:d,result:q(M,k)},A=!1):this.getCell(M,k).value=W?{sharedFormula:F,result:q(M,k)}:q(M,k)}addImage(d,b){const g={type:"image",imageId:d,range:b};this._media.push(new u(this,g))}getImages(){return this._media.filter(d=>d.type==="image")}addBackgroundImage(d){const b={type:"background",imageId:d};this._media.push(new u(this,b))}getBackgroundImageId(){const d=this._media.find(b=>b.type==="background");return d&&d.imageId}protect(d,b){return new Promise(g=>{this.sheetProtection={sheet:!0},b&&"spinCount"in b&&(b.spinCount=Number.isFinite(b.spinCount)?Math.round(Math.max(0,b.spinCount)):1e5),d&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=p.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=b&&"spinCount"in b?b.spinCount:1e5,this.sheetProtection.hashValue=p.convertPasswordToHash(d,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),b&&(this.sheetProtection=Object.assign(this.sheetProtection,b),!d&&"spinCount"in b&&delete this.sheetProtection.spinCount),g()})}unprotect(){this.sheetProtection=null}addTable(d){const b=new a(this,d);return this.tables[d.name]=b,b}getTable(d){return this.tables[d]}removeTable(d){delete this.tables[d]}getTables(){return Object.values(this.tables)}addConditionalFormatting(d){this.conditionalFormattings.push(d)}removeConditionalFormatting(d){typeof d=="number"?this.conditionalFormattings.splice(d,1):this.conditionalFormattings=d instanceof Function?this.conditionalFormattings.filter(d):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(d){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=d}get model(){const d={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(S=>S.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(S=>S.model),conditionalFormattings:this.conditionalFormattings};d.cols=e.toModel(this.columns);const b=d.rows=[],g=d.dimensions=new n;return this._rows.forEach(S=>{const C=S&&S.model;C&&(g.expand(C.number,C.min,C.number,C.max),b.push(C))}),d.merges=[],o.each(this._merges,S=>{d.merges.push(S.range)}),d}_parseRows(d){this._rows=[],d.rows.forEach(b=>{const g=new s(this,b.number);this._rows[g.number-1]=g,g.model=b})}_parseMergeCells(d){o.each(d.mergeCells,b=>{this.mergeCellsWithoutStyle(b)})}set model(d){this.name=d.name,this._columns=e.fromModel(this,d.cols),this._parseRows(d),this._parseMergeCells(d),this.dataValidations=new h(d.dataValidations),this.properties=d.properties,this.pageSetup=d.pageSetup,this.headerFooter=d.headerFooter,this.views=d.views,this.autoFilter=d.autoFilter,this._media=d.media.map(b=>new u(this,b)),this.sheetProtection=d.sheetProtection,this.tables=d.tables.reduce((b,g)=>{const S=new a;return S.model=g,b[g.name]=S,b},{}),this.conditionalFormattings=d.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,l,c){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");const o={Workbook:t("./doc/workbook")},r=t("./doc/enums");Object.keys(r).forEach(n=>{o[n]=r[n]}),l.exports=o},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,l,c){const o=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");c.bufferToString=function(r){return typeof r=="string"?r:o?o.decode(r):r.toString()}},{}],17:[function(t,l,c){const o=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:r}=t("buffer");c.stringToBuffer=function(n){return typeof n!="string"?n:o?r.from(o.encode(n).buffer):r.from(n)}},{buffer:220}],18:[function(t,l,c){const o=t("./under-dash"),r=t("./col-cache");l.exports=class{constructor(n){this.template=n,this.sheets={}}addCell(n){this.addCellEx(r.decodeEx(n))}getCell(n){return this.findCellEx(r.decodeEx(n),!0)}findCell(n){return this.findCellEx(r.decodeEx(n),!1)}findCellAt(n,s,e){const i=this.sheets[n],u=i&&i[s];return u&&u[e]}addCellEx(n){if(n.top)for(let s=n.top;s<=n.bottom;s++)for(let e=n.left;e<=n.right;e++)this.getCellAt(n.sheetName,s,e);else this.findCellEx(n,!0)}getCellEx(n){return this.findCellEx(n,!0)}findCellEx(n,s){const e=this.findSheet(n,s),i=this.findSheetRow(e,n,s);return this.findRowCell(i,n,s)}getCellAt(n,s,e){const i=this.sheets[n]||(this.sheets[n]=[]),u=i[s]||(i[s]=[]);return u[e]||(u[e]={sheetName:n,address:r.n2l(e)+s,row:s,col:e})}removeCellEx(n){const s=this.findSheet(n);if(!s)return;const e=this.findSheetRow(s,n);e&&delete e[n.col]}forEachInSheet(n,s){const e=this.sheets[n];e&&e.forEach((i,u)=>{i&&i.forEach((a,h)=>{a&&s(a,u,h)})})}forEach(n){o.each(this.sheets,(s,e)=>{this.forEachInSheet(e,n)})}map(n){const s=[];return this.forEach(e=>{s.push(n(e))}),s}findSheet(n,s){const e=n.sheetName;return this.sheets[e]?this.sheets[e]:s?this.sheets[e]=[]:void 0}findSheetRow(n,s,e){const{row:i}=s;return n&&n[i]?n[i]:e?n[i]=[]:void 0}findRowCell(n,s,e){const{col:i}=s;return n&&n[i]?n[i]:e?n[i]=this.template?Object.assign(s,JSON.parse(JSON.stringify(this.template))):s:void 0}spliceRows(n,s,e,i){const u=this.sheets[n];if(u){const a=[];for(let h=0;h<i;h++)a.push([]);u.splice(s,e,...a)}}spliceColumns(n,s,e,i){const u=this.sheets[n];if(u){const a=[];for(let h=0;h<i;h++)a.push(null);o.each(u,h=>{h.splice(s,e,...a)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,l,c){const o=/^[A-Z]+\d+$/,r={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:n=>n<=26?1:n<=676?2:3,_fill(n){let s,e,i,u,a,h=1;if(n>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&n>=1){for(;h<=26;)s=this._dictionary[h-1],this._n2l[h]=s,this._l2n[s]=h,h++;this._l2nFill=1}if(this._l2nFill<2&&n>=2){for(h=27;h<=702;)e=h-27,i=e%26,u=Math.floor(e/26),s=this._dictionary[u]+this._dictionary[i],this._n2l[h]=s,this._l2n[s]=h,h++;this._l2nFill=2}if(this._l2nFill<3&&n>=3){for(h=703;h<=16384;)e=h-703,i=e%26,u=Math.floor(e/26)%26,a=Math.floor(e/676),s=this._dictionary[a]+this._dictionary[u]+this._dictionary[i],this._n2l[h]=s,this._l2n[s]=h,h++;this._l2nFill=3}},l2n(n){if(this._l2n[n]||this._fill(n.length),!this._l2n[n])throw new Error("Out of bounds. Invalid column letter: "+n);return this._l2n[n]},n2l(n){if(n<1||n>16384)throw new Error(n+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[n]||this._fill(this._level(n)),this._n2l[n]},_hash:{},validateAddress(n){if(!o.test(n))throw new Error("Invalid Address: "+n);return!0},decodeAddress(n){const s=n.length<5&&this._hash[n];if(s)return s;let e=!1,i="",u=0,a=!1,h="",p=0;for(let d,b=0;b<n.length;b++)if(d=n.charCodeAt(b),!a&&d>=65&&d<=90)e=!0,i+=n[b],u=26*u+d-64;else if(d>=48&&d<=57)a=!0,h+=n[b],p=10*p+d-48;else if(a&&e&&d!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+i)}else u=void 0;a||(p=void 0);const m={address:n=i+h,col:u,row:p,$col$row:`$${i}$${h}`};return u<=100&&p<=100&&(this._hash[n]=m,this._hash[m.$col$row]=m),m},getAddress(n,s){if(s){const e=this.n2l(s)+n;return this.decodeAddress(e)}return this.decodeAddress(n)},decode(n){const s=n.split(":");if(s.length===2){const e=this.decodeAddress(s[0]),i=this.decodeAddress(s[1]),u={top:Math.min(e.row,i.row),left:Math.min(e.col,i.col),bottom:Math.max(e.row,i.row),right:Math.max(e.col,i.col)};return u.tl=this.n2l(u.left)+u.top,u.br=this.n2l(u.right)+u.bottom,u.dimensions=`${u.tl}:${u.br}`,u}return this.decodeAddress(n)},decodeEx(n){const s=n.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=s[1]||s[2],i=s[3],u=i.split(":");if(u.length>1){let h=this.decodeAddress(u[0]),p=this.decodeAddress(u[1]);const m=Math.min(h.row,p.row),d=Math.min(h.col,p.col),b=Math.max(h.row,p.row),g=Math.max(h.col,p.col);return h=this.n2l(d)+m,p=this.n2l(g)+b,{top:m,left:d,bottom:b,right:g,sheetName:e,tl:{address:h,col:d,row:m,$col$row:`$${this.n2l(d)}$${m}`,sheetName:e},br:{address:p,col:g,row:b,$col$row:`$${this.n2l(g)}$${b}`,sheetName:e},dimensions:`${h}:${p}`}}if(i.startsWith("#"))return e?{sheetName:e,error:i}:{error:i};const a=this.decodeAddress(i);return e?{sheetName:e,...a}:a},encodeAddress:(n,s)=>r.n2l(s)+n,encode(){switch(arguments.length){case 2:return r.encodeAddress(arguments[0],arguments[1]);case 4:return`${r.encodeAddress(arguments[0],arguments[1])}:${r.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(n,s){const[e,i,,u,a]=n,[h,p]=s;return h>=e&&h<=u&&p>=i&&p<=a}};l.exports=r},{}],20:[function(t,l,c){const o=(n,s)=>({...n,...s.reduce((e,i)=>(n[i]&&(e[i]={...n[i]}),e),{})}),r=function(n,s,e){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];n[e]&&(s[e]=o(n[e],i))};c.copyStyle=n=>{if(!n)return n;if(s=n,Object.keys(s).length===0)return{};var s;const e={...n};return r(n,e,"font",["color"]),r(n,e,"alignment"),r(n,e,"protection"),n.border&&(r(n,e,"border"),r(n.border,e.border,"top",["color"]),r(n.border,e.border,"left",["color"]),r(n.border,e.border,"bottom",["color"]),r(n.border,e.border,"right",["color"]),r(n.border,e.border,"diagonal",["color"])),n.fill&&(r(n,e,"fill",["fgColor","bgColor","center"]),n.fill.stops&&(e.fill.stops=n.fill.stops.map(i=>o(i,["color"])))),e}},{}],21:[function(t,l,c){(function(o){(function(){const r=t("crypto"),n={hash(s){const e=r.createHash(s);for(var i=arguments.length,u=new Array(i>1?i-1:0),a=1;a<i;a++)u[a-1]=arguments[a];return e.update(o.concat(u)),e.digest()},convertPasswordToHash(s,e,i,u){if(e=e.toLowerCase(),r.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const a=o.from(s,"utf16le");let h=this.hash(e,o.from(i,"base64"),a);for(let p=0;p<u;p++){const m=o.alloc(4);m.writeUInt32LE(p,0),h=this.hash(e,h,m)}return h.toString("base64")},randomBytes:s=>r.randomBytes(s)};l.exports=n}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,l,c){const{SaxesParser:o}=t("saxes"),{PassThrough:r}=t("readable-stream"),{bufferToString:n}=t("./browser-buffer-decode");l.exports=async function*(s){s.pipe&&!s[Symbol.asyncIterator]&&(s=s.pipe(new r));const e=new o;let i;e.on("error",a=>{i=a});let u=[];e.on("opentag",a=>u.push({eventType:"opentag",value:a})),e.on("text",a=>u.push({eventType:"text",value:a})),e.on("closetag",a=>u.push({eventType:"closetag",value:a}));for await(const a of s){if(e.write(n(a)),i)throw i;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,l,c){const o=t("./col-cache"),r=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,n=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;l.exports={slideFormula:function(s,e,i){const u=o.decode(e),a=o.decode(i);return s.replace(r,(h,p,m,d,b)=>{if(b)return h;const g=n.exec(d);if(g){const S=g[1],C=g[2].toUpperCase(),I=g[3],D=g[4];if(C.length>3||C.length===3&&C>"XFD")return h;let z=o.l2n(C),P=parseInt(D,10);return S||(z+=a.col-u.col),I||(P+=a.row-u.row),(p||"")+(S||"")+o.n2l(z)+(I||"")+P}return h})}}},{"./col-cache":19}],24:[function(t,l,c){(function(o,r){(function(){const n=t("readable-stream"),s=t("./utils"),e=t("./string-buf");class i{constructor(d,b){this._data=d,this._encoding=b}get length(){return this.toBuffer().length}copy(d,b,g,S){return this.toBuffer().copy(d,b,g,S)}toBuffer(){return this._buffer||(this._buffer=r.from(this._data,this._encoding)),this._buffer}}class u{constructor(d){this._data=d}get length(){return this._data.length}copy(d,b,g,S){return this._data._buf.copy(d,b,g,S)}toBuffer(){return this._data.toBuffer()}}class a{constructor(d){this._data=d}get length(){return this._data.length}copy(d,b,g,S){this._data.copy(d,b,g,S)}toBuffer(){return this._data}}class h{constructor(d){this.size=d,this.buffer=r.alloc(d),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const d=r.alloc(this.iWrite-this.iRead);return this.buffer.copy(d,0,this.iRead,this.iWrite),d}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(d){let b;return d===0?null:d===void 0||d>=this.length?(b=this.toBuffer(),this.iRead=this.iWrite,b):(b=r.alloc(d),this.buffer.copy(b,0,this.iRead,d),this.iRead+=d,b)}write(d,b,g){const S=Math.min(g,this.size-this.iWrite);return d.copy(this.buffer,this.iWrite,b,b+S),this.iWrite+=S,S}}const p=function(m){m=m||{},this.bufSize=m.bufSize||1048576,this.buffers=[],this.batch=m.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};s.inherits(p,n.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return r.concat(this.buffers.map(m=>m.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const d=this.buffers[this.buffers.length-1];if(!d.full)return d}const m=new h(this.bufSize);return this.buffers.push(m),m},async _pipe(m){await Promise.all(this.pipes.map((function(d){return new Promise(b=>{d.write(m.toBuffer(),()=>{b()})})})))},_writeToBuffers(m){let d=0;const b=m.length;for(;d<b;)d+=this._getWritableBuffer().write(m,d,b-d)},async write(m,d,b){let g;if(d instanceof Function&&(b=d,d="utf8"),b=b||s.nop,m instanceof e)g=new u(m);else if(m instanceof r)g=new a(m);else{if(!(typeof m=="string"||m instanceof String||m instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");g=new i(m,d)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(g);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(g),o.nextTick(b)):(await this._pipe(g),b());else this.paused||this.emit("data",g.toBuffer()),this._writeToBuffers(g),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(m,d,b){const g=S=>{S?b(S):(this._flush(),this.pipes.forEach(C=>{C.end()}),this.emit("finish"))};m?this.write(m,d,g):g()},read(m){let d;if(m){for(d=[];m&&this.buffers.length&&!this.buffers[0].eod;){const b=this.buffers[0],g=b.read(m);m-=g.length,d.push(g),b.eod&&b.full&&this.buffers.shift()}return r.concat(d)}return d=this.buffers.map(b=>b.toBuffer()).filter(Boolean),this.buffers=[],r.concat(d)},setEncoding(m){this.encoding=m},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(m){this.pipes.push(m),!this.paused&&this.buffers.length&&this.end()},unpipe(m){this.pipes=this.pipes.filter(d=>d!==m)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),l.exports=p}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,l,c){(function(o){(function(){l.exports=class{constructor(r){this._buf=o.alloc(r&&r.size||16384),this._encoding=r&&r.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=o.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(r){r=r||0,this._buffer=void 0,this._inPos=r}_grow(r){let n=2*this._buf.length;for(;n<r;)n*=2;const s=o.alloc(n);this._buf.copy(s,0),this._buf=s}addText(r){this._buffer=void 0;let n=this._inPos+this._buf.write(r,this._inPos,this._encoding);for(;n>=this._buf.length-4;)this._grow(this._inPos+r.length),n=this._inPos+this._buf.write(r,this._inPos,this._encoding);this._inPos=n}addStringBuf(r){r.length&&(this._buffer=void 0,this.length+r.length>this.capacity&&this._grow(this.length+r.length),r._buf.copy(this._buf,this._inPos,0,r.length),this._inPos+=r.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,l,c){const{toString:o}=Object.prototype,r=/["&<>]/,n={each:function(s,e){s&&(Array.isArray(s)?s.forEach(e):Object.keys(s).forEach(i=>{e(s[i],i)}))},some:function(s,e){return!!s&&(Array.isArray(s)?s.some(e):Object.keys(s).some(i=>e(s[i],i)))},every:function(s,e){return!s||(Array.isArray(s)?s.every(e):Object.keys(s).every(i=>e(s[i],i)))},map:function(s,e){return s?Array.isArray(s)?s.map(e):Object.keys(s).map(i=>e(s[i],i)):[]},keyBy:(s,e)=>s.reduce((i,u)=>(i[u[e]]=u,i),{}),isEqual:function(s,e){const i=typeof s,u=typeof e,a=Array.isArray(s),h=Array.isArray(e);let p;if(i!==u)return!1;switch(typeof s){case"object":if(a||h)return!(!a||!h)&&s.length===e.length&&s.every((m,d)=>{const b=e[d];return n.isEqual(m,b)});if(s===null||e===null)return s===e;if(p=Object.keys(s),Object.keys(e).length!==p.length)return!1;for(const m of p)if(!e.hasOwnProperty(m))return!1;return n.every(s,(m,d)=>{const b=e[d];return n.isEqual(m,b)});default:return s===e}},escapeHtml(s){const e=r.exec(s);if(!e)return s;let i="",u="",a=0,h=e.index;for(;h<s.length;h++){switch(s.charAt(h)){case'"':u=""";break;case"&":u="&";break;case"'":u="'";break;case"<":u="<";break;case">":u=">";break;default:continue}a!==h&&(i+=s.substring(a,h)),a=h+1,i+=u}return a!==h?i+s.substring(a,h):i},strcmp:(s,e)=>s<e?-1:s>e?1:0,isUndefined:s=>o.call(s)==="[object Undefined]",isObject:s=>o.call(s)==="[object Object]",deepMerge(){const s=arguments[0]||{},{length:e}=arguments;let i,u,a;function h(p,m){i=s[m],a=Array.isArray(p),n.isObject(p)||a?(a?(a=!1,u=i&&Array.isArray(i)?i:[]):u=i&&n.isObject(i)?i:{},s[m]=n.deepMerge(u,p)):n.isUndefined(p)||(s[m]=p)}for(let p=0;p<e;p++)n.each(arguments[p],h);return s}};l.exports=n},{}],27:[function(t,l,c){(function(o,r){(function(){const n=t("fs"),s=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:i=>new Promise(u=>{o.setImmediate?r(()=>{u(i)}):setTimeout(()=>{u(i)},1)}),inherits:function(i,u,a,h){i.super_=u,h||(h=a,a=null),a&&Object.keys(a).forEach(m=>{Object.defineProperty(i,m,Object.getOwnPropertyDescriptor(a,m))});const p={constructor:{value:i,enumerable:!1,writable:!1,configurable:!0}};h&&Object.keys(h).forEach(m=>{p[m]=Object.getOwnPropertyDescriptor(h,m)}),i.prototype=Object.create(u.prototype,p)},dateToExcel:(i,u)=>25569+i.getTime()/864e5-(u?1462:0),excelToDate(i,u){const a=Math.round(24*(i-25569+(u?1462:0))*3600*1e3);return new Date(a)},parsePath(i){const u=i.lastIndexOf("/");return{path:i.substring(0,u),name:i.substring(u+1)}},getRelsPath(i){const u=e.parsePath(i);return`${u.path}/_rels/${u.name}.rels`},xmlEncode(i){const u=s.exec(i);if(!u)return i;let a="",h="",p=0,m=u.index;for(;m<i.length;m++){const d=i.charCodeAt(m);switch(d){case 34:h=""";break;case 38:h="&";break;case 39:h="'";break;case 60:h="<";break;case 62:h=">";break;case 127:h="";break;default:if(d<=31&&(d<=8||d>=11&&d!==13)){h="";break}continue}p!==m&&(a+=i.substring(p,m)),p=m+1,h&&(a+=h)}return p!==m?a+i.substring(p,m):a},xmlDecode:i=>i.replace(/&([a-z]*);/g,u=>{switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return u}}),validInt(i){const u=parseInt(i,10);return Number.isNaN(u)?0:u},isDateFmt(i){return i?(i=(i=i.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:i=>new Promise(u=>{n.access(i,n.constants.F_OK,a=>{u(!a)})})},toIsoDateString:i=>i.toIsoString().subsstr(0,10),parseBoolean:i=>i===!0||i==="true"||i===1||i==="1"};l.exports=e}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,l,c){const o=t("./under-dash"),r=t("./utils");function n(i,u,a){i.push(` ${u}="${r.xmlEncode(a.toString())}"`)}function s(i,u){if(u){const a=[];o.each(u,(h,p)=>{h!==void 0&&n(a,p,h)}),i.push(a.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(u){const a=this._xml;a.push("<?xml"),s(a,u),a.push(`?>
|
|
256
|
+
`}}customElements.get("ng-expand-icon")||customElements.define("ng-expand-icon",pd),customElements.get("ng-expand-check")||customElements.define("ng-expand-check",md),customElements.get("ng-expand-button")||customElements.define("ng-expand-button",gd);var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bd(vt){return vt&&vt.__esModule&&Object.prototype.hasOwnProperty.call(vt,"default")?vt.default:vt}function Bl(vt){throw new Error('Could not dynamically require "'+vt+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var au={exports:{}};/*! ExcelJS 19-10-2023 */var Au;function yd(){return Au||(Au=1,(function(vt,E){(function(t){vt.exports=t()})((function(){return(function t(l,c,o){function r(e,i){if(!c[e]){if(!l[e]){var u=typeof Bl=="function"&&Bl;if(!i&&u)return u(e,!0);if(n)return n(e,!0);var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}var h=c[e]={exports:{}};l[e][0].call(h.exports,(function(p){return r(l[e][1][p]||p)}),h,h.exports,t,l,c,o)}return c[e].exports}for(var n=typeof Bl=="function"&&Bl,s=0;s<o.length;s++)r(o[s]);return r})({1:[function(t,l,c){const o=t("fs"),r=t("fast-csv"),n=t("dayjs/plugin/customParseFormat"),s=t("dayjs/plugin/utc"),e=t("dayjs").extend(n).extend(s),i=t("../utils/stream-buf"),{fs:{exists:u}}=t("../utils/utils"),a={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};l.exports=class{constructor(h){this.workbook=h,this.worksheet=null}async readFile(h,p){if(p=p||{},!await u(h))throw new Error("File not found: "+h);const m=o.createReadStream(h),d=await this.read(m,p);return m.close(),d}read(h,p){return p=p||{},new Promise((m,d)=>{const b=this.workbook.addWorksheet(p.sheetName),g=p.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],S=p.map||function(I){if(I==="")return null;const D=Number(I);if(!Number.isNaN(D)&&D!==1/0)return D;const z=g.reduce((B,F)=>{if(B)return B;const W=e(I,F,!0);return W.isValid()?W:null},null);if(z)return new Date(z.valueOf());const P=a[I];return P!==void 0?P:I},C=r.parse(p.parserOptions).on("data",I=>{b.addRow(I.map(S))}).on("end",()=>{C.emit("worksheet",b)});C.on("worksheet",m).on("error",d),h.pipe(C)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(h,p){return new Promise((m,d)=>{p=p||{};const b=this.workbook.getWorksheet(p.sheetName||p.sheetId),g=r.format(p.formatterOptions);h.on("finish",()=>{m()}),g.on("error",d),g.pipe(h);const{dateFormat:S,dateUTC:C}=p,I=p.map||(P=>{if(P){if(P.text||P.hyperlink)return P.hyperlink||P.text||"";if(P.formula||P.result)return P.result||"";if(P instanceof Date)return S?C?e.utc(P).format(S):e(P).format(S):C?e.utc(P).format():e(P).format();if(P.error)return P.error;if(typeof P=="object")return JSON.stringify(P)}return P}),D=p.includeEmptyRows===void 0||p.includeEmptyRows;let z=1;b&&b.eachRow((P,B)=>{if(D)for(;z++<B-1;)g.write([]);const{values:F}=P;F.shift(),g.write(F.map(I)),z=B}),g.end()})}writeFile(h,p){const m={encoding:(p=p||{}).encoding||"utf8"},d=o.createWriteStream(h,m);return this.write(d,p)}async writeBuffer(h){const p=new i;return await this.write(p,h),p.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(t,l,c){const o=t("../utils/col-cache");class r{constructor(s,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=s,e)if(typeof e=="string"){const u=o.decodeAddress(e);this.nativeCol=u.col+i,this.nativeColOff=0,this.nativeRow=u.row+i,this.nativeRowOff=0}else e.nativeCol!==void 0?(this.nativeCol=e.nativeCol||0,this.nativeColOff=e.nativeColOff||0,this.nativeRow=e.nativeRow||0,this.nativeRowOff=e.nativeRowOff||0):e.col!==void 0?(this.col=e.col+i,this.row=e.row+i):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(s){return s instanceof r||s==null?s:new r(s)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(s){this.nativeCol=Math.floor(s),this.nativeColOff=Math.floor((s-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(s){this.nativeRow=Math.floor(s),this.nativeRowOff=Math.floor((s-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(s){this.nativeCol=s.nativeCol,this.nativeColOff=s.nativeColOff,this.nativeRow=s.nativeRow,this.nativeRowOff=s.nativeRowOff}}l.exports=r},{"../utils/col-cache":19}],3:[function(t,l,c){const o=t("../utils/col-cache"),r=t("../utils/under-dash"),n=t("./enums"),{slideFormula:s}=t("../utils/shared-formula"),e=t("./note");class i{constructor(h,p,m){if(!h||!p)throw new Error("A Cell needs a Row");this._row=h,this._column=p,o.validateAddress(m),this._address=m,this._value=u.create(i.Types.Null,this),this.style=this._mergeStyle(h.style,p.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(h){this.style.numFmt=h}get font(){return this.style.font}set font(h){this.style.font=h}get alignment(){return this.style.alignment}set alignment(h){this.style.alignment=h}get border(){return this.style.border}set border(h){this.style.border=h}get fill(){return this.style.fill}set fill(h){this.style.fill=h}get protection(){return this.style.protection}set protection(h){this.style.protection=h}_mergeStyle(h,p,m){const d=h&&h.numFmt||p&&p.numFmt;d&&(m.numFmt=d);const b=h&&h.font||p&&p.font;b&&(m.font=b);const g=h&&h.alignment||p&&p.alignment;g&&(m.alignment=g);const S=h&&h.border||p&&p.border;S&&(m.border=S);const C=h&&h.fill||p&&p.fill;C&&(m.fill=C);const I=h&&h.protection||p&&p.protection;return I&&(m.protection=I),m}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===i.Types.Merge}merge(h,p){this._value.release(),this._value=u.create(i.Types.Merge,this,h),p||(this.style=h.style)}unmerge(){this.type===i.Types.Merge&&(this._value.release(),this._value=u.create(i.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(h){return this._value.type===i.Types.Merge&&this._value.isMergedTo(h)}get master(){return this.type===i.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===i.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(h){this.type!==i.Types.Merge?(this._value.release(),this._value=u.create(u.getType(h),this,h)):this._value.master.value=h}get note(){return this._comment&&this._comment.note}set note(h){this._comment=new e(h)}get text(){return this._value.toString()}get html(){return r.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(h){this.type===i.Types.String&&(this._value=u.create(i.Types.Hyperlink,this,{text:this._value.value,hyperlink:h}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:h}=this._row;return{sheetName:h.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(h){this.names=[h]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(h){const{definedNames:p}=this.workbook;p.removeAllNames(this.fullAddress),h.forEach(m=>{p.addEx(this.fullAddress,m)})}addName(h){this.workbook.definedNames.addEx(this.fullAddress,h)}removeName(h){this.workbook.definedNames.removeEx(this.fullAddress,h)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(h){this._dataValidations.add(this.address,h)}get model(){const{model:h}=this._value;return h.style=this.style,this._comment&&(h.comment=this._comment.model),h}set model(h){if(this._value.release(),this._value=u.create(h.type,this),this._value.model=h,h.comment)switch(h.comment.type){case"note":this._comment=e.fromModel(h.comment)}h.style?this.style=h.style:this.style={}}}i.Types=n.ValueType;const u={getType:a=>a==null?i.Types.Null:a instanceof String||typeof a=="string"?i.Types.String:typeof a=="number"?i.Types.Number:typeof a=="boolean"?i.Types.Boolean:a instanceof Date?i.Types.Date:a.text&&a.hyperlink?i.Types.Hyperlink:a.formula||a.sharedFormula?i.Types.Formula:a.richText?i.Types.RichText:a.sharedString?i.Types.SharedString:a.error?i.Types.Error:i.Types.JSON,types:[{t:i.Types.Null,f:class{constructor(a){this.model={address:a.address,type:i.Types.Null}}get value(){return null}set value(a){}get type(){return i.Types.Null}get effectiveType(){return i.Types.Null}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return""}release(){}toString(){return""}}},{t:i.Types.Number,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Number,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.Number}get effectiveType(){return i.Types.Number}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:i.Types.String,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.String,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.String}get effectiveType(){return i.Types.String}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:i.Types.Date,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Date,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.Date}get effectiveType(){return i.Types.Date}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:i.Types.Hyperlink,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Hyperlink,text:h?h.text:void 0,hyperlink:h?h.hyperlink:void 0},h&&h.tooltip&&(this.model.tooltip=h.tooltip)}get value(){const a={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(a.tooltip=this.model.tooltip),a}set value(a){this.model={text:a.text,hyperlink:a.hyperlink},a.tooltip&&(this.model.tooltip=a.tooltip)}get text(){return this.model.text}set text(a){this.model.text=a}get hyperlink(){return this.model.hyperlink}set hyperlink(a){this.model.hyperlink=a}get type(){return i.Types.Hyperlink}get effectiveType(){return i.Types.Hyperlink}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:i.Types.Formula,f:class{constructor(a,h){this.cell=a,this.model={address:a.address,type:i.Types.Formula,shareType:h?h.shareType:void 0,ref:h?h.ref:void 0,formula:h?h.formula:void 0,sharedFormula:h?h.sharedFormula:void 0,result:h?h.result:void 0}}_copyModel(a){const h={},p=m=>{const d=a[m];d&&(h[m]=d)};return p("formula"),p("result"),p("ref"),p("shareType"),p("sharedFormula"),h}get value(){return this._copyModel(this.model)}set value(a){this.model=this._copyModel(a)}validate(a){switch(u.getType(a)){case i.Types.Null:case i.Types.String:case i.Types.Number:case i.Types.Date:break;case i.Types.Hyperlink:case i.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(a){this.model.formula=a}get formulaType(){return this.model.formula?n.FormulaType.Master:this.model.sharedFormula?n.FormulaType.Shared:n.FormulaType.None}get result(){return this.model.result}set result(a){this.model.result=a}get type(){return i.Types.Formula}get effectiveType(){const a=this.model.result;return a==null?n.ValueType.Null:a instanceof String||typeof a=="string"?n.ValueType.String:typeof a=="number"?n.ValueType.Number:a instanceof Date?n.ValueType.Date:a.text&&a.hyperlink?n.ValueType.Hyperlink:a.formula?n.ValueType.Formula:n.ValueType.Null}get address(){return this.model.address}set address(a){this.model.address=a}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:a}=this.cell,h=a.findCell(this.model.sharedFormula);this._translatedFormula=h&&s(h.formula,h.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:i.Types.Merge,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Merge,master:h?h.address:void 0},this._master=h,h&&h.addMergeRef()}get value(){return this._master.value}set value(a){a instanceof i?(this._master&&this._master.releaseMergeRef(),a.addMergeRef(),this._master=a):this._master.value=a}isMergedTo(a){return a===this._master}get master(){return this._master}get type(){return i.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:i.Types.JSON,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.String,value:JSON.stringify(h),rawValue:h}}get value(){return this.model.rawValue}set value(a){this.model.rawValue=a,this.model.value=JSON.stringify(a)}get type(){return i.Types.String}get effectiveType(){return i.Types.String}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:i.Types.SharedString,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.SharedString,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.SharedString}get effectiveType(){return i.Types.SharedString}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:i.Types.RichText,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.String,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}toString(){return this.model.value.richText.map(a=>a.text).join("")}get type(){return i.Types.RichText}get effectiveType(){return i.Types.RichText}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:i.Types.Boolean,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Boolean,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.Boolean}get effectiveType(){return i.Types.Boolean}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:i.Types.Error,f:class{constructor(a,h){this.model={address:a.address,type:i.Types.Error,value:h}}get value(){return this.model.value}set value(a){this.model.value=a}get type(){return i.Types.Error}get effectiveType(){return i.Types.Error}get address(){return this.model.address}set address(a){this.model.address=a}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((a,h)=>(a[h.t]=h.f,a),[]),create(a,h,p){const m=this.types[a];if(!m)throw new Error("Could not create Value of type "+a);return new m(h,p)}};l.exports=i},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(t,l,c){const o=t("../utils/under-dash"),r=t("./enums"),n=t("../utils/col-cache");class s{constructor(i,u,a){this._worksheet=i,this._number=u,a!==!1&&(this.defn=a)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return n.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(i){i?(this.key=i.key,this.width=i.width!==void 0?i.width:9,this.outlineLevel=i.outlineLevel,i.style?this.style=i.style:this.style={},this.header=i.header,this._hidden=!!i.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(i){i!==void 0?(this._header=i,this.headers.forEach((u,a)=>{this._worksheet.getCell(a+1,this.number).value=u})):this._header=void 0}get key(){return this._key}set key(i){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=i,i&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(i){this._hidden=i}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(i){this._outlineLevel=i}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(i){return this.width===i.width&&this.hidden===i.hidden&&this.outlineLevel===i.outlineLevel&&o.isEqual(this.style,i.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const i=this.style;return!i||!(i.font||i.numFmt||i.alignment||i.border||i.fill||i.protection)}get headerCount(){return this.headers.length}eachCell(i,u){const a=this.number;u||(u=i,i=null),this._worksheet.eachRow(i,(h,p)=>{u(h.getCell(a),p)})}get values(){const i=[];return this.eachCell((u,a)=>{u&&u.type!==r.ValueType.Null&&(i[a]=u.value)}),i}set values(i){if(!i)return;const u=this.number;let a=0;i.hasOwnProperty("0")&&(a=1),i.forEach((h,p)=>{this._worksheet.getCell(p+a,u).value=h})}_applyStyle(i,u){return this.style[i]=u,this.eachCell(a=>{a[i]=u}),u}get numFmt(){return this.style.numFmt}set numFmt(i){this._applyStyle("numFmt",i)}get font(){return this.style.font}set font(i){this._applyStyle("font",i)}get alignment(){return this.style.alignment}set alignment(i){this._applyStyle("alignment",i)}get protection(){return this.style.protection}set protection(i){this._applyStyle("protection",i)}get border(){return this.style.border}set border(i){this._applyStyle("border",i)}get fill(){return this.style.fill}set fill(i){this._applyStyle("fill",i)}static toModel(i){const u=[];let a=null;return i&&i.forEach((h,p)=>{h.isDefault?a&&(a=null):a&&h.equivalentTo(a)?a.max=p+1:(a={min:p+1,max:p+1,width:h.width!==void 0?h.width:9,style:h.style,isCustomWidth:h.isCustomWidth,hidden:h.hidden,outlineLevel:h.outlineLevel,collapsed:h.collapsed},u.push(a))}),u.length?u:void 0}static fromModel(i,u){const a=[];let h=1,p=0;for(u=(u=u||[]).sort((function(m,d){return m.min-d.min}));p<u.length;){const m=u[p++];for(;h<m.min;)a.push(new s(i,h++));for(;h<=m.max;)a.push(new s(i,h++,m))}return a.length?a:null}}l.exports=s},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(t,l,c){l.exports=class{constructor(o){this.model=o||{}}add(o,r){return this.model[o]=r}find(o){return this.model[o]}remove(o){this.model[o]=void 0}}},{}],6:[function(t,l,c){const o=t("../utils/under-dash"),r=t("../utils/col-cache"),n=t("../utils/cell-matrix"),s=t("./range"),e=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;l.exports=class{constructor(){this.matrixMap={}}getMatrix(i){return this.matrixMap[i]||(this.matrixMap[i]=new n)}add(i,u){const a=r.decodeEx(i);this.addEx(a,u)}addEx(i,u){const a=this.getMatrix(u);if(i.top)for(let h=i.left;h<=i.right;h++)for(let p=i.top;p<=i.bottom;p++){const m={sheetName:i.sheetName,address:r.n2l(h)+p,row:p,col:h};a.addCellEx(m)}else a.addCellEx(i)}remove(i,u){const a=r.decodeEx(i);this.removeEx(a,u)}removeEx(i,u){this.getMatrix(u).removeCellEx(i)}removeAllNames(i){o.each(this.matrixMap,u=>{u.removeCellEx(i)})}forEach(i){o.each(this.matrixMap,(u,a)=>{u.forEach(h=>{i(a,h)})})}getNames(i){return this.getNamesEx(r.decodeEx(i))}getNamesEx(i){return o.map(this.matrixMap,(u,a)=>u.findCellEx(i)&&a).filter(Boolean)}_explore(i,u){u.mark=!1;const{sheetName:a}=u,h=new s(u.row,u.col,u.row,u.col,a);let p,m;function d(g,S){const C=i.findCellAt(a,g,u.col);return!(!C||!C.mark)&&(h[S]=g,C.mark=!1,!0)}for(m=u.row-1;d(m,"top");m--);for(m=u.row+1;d(m,"bottom");m++);function b(g,S){const C=[];for(m=h.top;m<=h.bottom;m++){const I=i.findCellAt(a,m,g);if(!I||!I.mark)return!1;C.push(I)}h[S]=g;for(let I=0;I<C.length;I++)C[I].mark=!1;return!0}for(p=u.col-1;b(p,"left");p--);for(p=u.col+1;b(p,"right");p++);return h}getRanges(i,u){return(u=u||this.matrixMap[i])?(u.forEach(a=>{a.mark=!0}),{name:i,ranges:u.map(a=>a.mark&&this._explore(u,a)).filter(Boolean).map(a=>a.$shortRange)}):{name:i,ranges:[]}}normaliseMatrix(i,u){i.forEachInSheet(u,(a,h,p)=>{a&&(a.row===h&&a.col===p||(a.row=h,a.col=p,a.address=r.n2l(p)+h))})}spliceRows(i,u,a,h){o.each(this.matrixMap,p=>{p.spliceRows(i,u,a,h),this.normaliseMatrix(p,i)})}spliceColumns(i,u,a,h){o.each(this.matrixMap,p=>{p.spliceColumns(i,u,a,h),this.normaliseMatrix(p,i)})}get model(){return o.map(this.matrixMap,(i,u)=>this.getRanges(u,i)).filter(i=>i.ranges.length)}set model(i){const u=this.matrixMap={};i.forEach(a=>{const h=u[a.name]=new n;a.ranges.forEach(p=>{e.test(p.split("!").pop()||"")&&h.addCell(p)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(t,l,c){l.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(t,l,c){const o=t("../utils/col-cache"),r=t("./anchor");l.exports=class{constructor(n,s){this.worksheet=n,this.model=s}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(n){let{type:s,imageId:e,range:i,hyperlinks:u}=n;if(this.type=s,this.imageId=e,s==="image")if(typeof i=="string"){const a=o.decode(i);this.range={tl:new r(this.worksheet,{col:a.left,row:a.top},-1),br:new r(this.worksheet,{col:a.right,row:a.bottom},0),editAs:"oneCell"}}else this.range={tl:new r(this.worksheet,i.tl,0),br:i.br&&new r(this.worksheet,i.br,0),ext:i.ext,editAs:i.editAs,hyperlinks:u||i.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,l,c){const o=t("../utils/under-dash");class r{constructor(s){this.note=s}get model(){let s=null;switch(typeof this.note){case"string":s={type:"note",note:{texts:[{text:this.note}]}};break;default:s={type:"note",note:this.note}}return o.deepMerge({},r.DEFAULT_CONFIGS,s)}set model(s){const{note:e}=s,{texts:i}=e;i.length===1&&Object.keys(i[0]).length===1?this.note=i[0].text:this.note=e}static fromModel(s){const e=new r;return e.model=s,e}}r.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},l.exports=r},{"../utils/under-dash":26}],10:[function(t,l,c){const o=t("../utils/col-cache");class r{constructor(){this.decode(arguments)}setTLBR(s,e,i,u,a){if(arguments.length<4){const h=o.decodeAddress(s),p=o.decodeAddress(e);this.model={top:Math.min(h.row,p.row),left:Math.min(h.col,p.col),bottom:Math.max(h.row,p.row),right:Math.max(h.col,p.col),sheetName:i},this.setTLBR(h.row,h.col,p.row,p.col,a)}else this.model={top:Math.min(s,i),left:Math.min(e,u),bottom:Math.max(s,i),right:Math.max(e,u),sheetName:a}}decode(s){switch(s.length){case 5:this.setTLBR(s[0],s[1],s[2],s[3],s[4]);break;case 4:this.setTLBR(s[0],s[1],s[2],s[3]);break;case 3:this.setTLBR(s[0],s[1],s[2]);break;case 2:this.setTLBR(s[0],s[1]);break;case 1:{const e=s[0];if(e instanceof r)this.model={top:e.model.top,left:e.model.left,bottom:e.model.bottom,right:e.model.right,sheetName:e.sheetName};else if(e instanceof Array)this.decode(e);else if(e.top&&e.left&&e.bottom&&e.right)this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName};else{const i=o.decodeEx(e);i.top?this.model={top:i.top,left:i.left,bottom:i.bottom,right:i.right,sheetName:i.sheetName}:this.model={top:i.row,left:i.col,bottom:i.row,right:i.col,sheetName:i.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+s.length)}}get top(){return this.model.top||1}set top(s){this.model.top=s}get left(){return this.model.left||1}set left(s){this.model.left=s}get bottom(){return this.model.bottom||1}set bottom(s){this.model.bottom=s}get right(){return this.model.right||1}set right(s){this.model.right=s}get sheetName(){return this.model.sheetName}set sheetName(s){this.model.sheetName=s}get _serialisedSheetName(){const{sheetName:s}=this.model;return s?/^[a-zA-Z0-9]*$/.test(s)?s+"!":`'${s}'!`:""}expand(s,e,i,u){(!this.model.top||s<this.top)&&(this.top=s),(!this.model.left||e<this.left)&&(this.left=e),(!this.model.bottom||i>this.bottom)&&(this.bottom=i),(!this.model.right||u>this.right)&&(this.right=u)}expandRow(s){if(s){const{dimensions:e,number:i}=s;e&&this.expand(i,e.min,i,e.max)}}expandToAddress(s){const e=o.decodeEx(s);this.expand(e.row,e.col,e.row,e.col)}get tl(){return o.n2l(this.left)+this.top}get $t$l(){return`$${o.n2l(this.left)}$${this.top}`}get br(){return o.n2l(this.right)+this.bottom}get $b$r(){return`$${o.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(s){return(!s.sheetName||!this.sheetName||s.sheetName===this.sheetName)&&!(s.bottom<this.top)&&!(s.top>this.bottom)&&!(s.right<this.left)&&!(s.left>this.right)}contains(s){const e=o.decodeEx(s);return this.containsEx(e)}containsEx(s){return(!s.sheetName||!this.sheetName||s.sheetName===this.sheetName)&&s.row>=this.top&&s.row<=this.bottom&&s.col>=this.left&&s.col<=this.right}forEachAddress(s){for(let e=this.left;e<=this.right;e++)for(let i=this.top;i<=this.bottom;i++)s(o.encodeAddress(i,e),i,e)}}l.exports=r},{"../utils/col-cache":19}],11:[function(t,l,c){const o=t("../utils/under-dash"),r=t("./enums"),n=t("../utils/col-cache"),s=t("./cell");l.exports=class{constructor(e,i){this._worksheet=e,this._number=i,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let i=this._cells[e.col-1];if(!i){const u=this._worksheet.getColumn(e.col);i=new s(this,u,e.address),this._cells[e.col-1]=i}return i}getCell(e){if(typeof e=="string"){const i=this._worksheet.getColumnKey(e);e=i?i.number:n.l2n(e)}return this._cells[e-1]||this.getCellEx({address:n.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,i){const u=e+i;for(var a=arguments.length,h=new Array(a>2?a-2:0),p=2;p<a;p++)h[p-2]=arguments[p];const m=h.length-i,d=this._cells.length;let b,g,S;if(m<0)for(b=e+h.length;b<=d;b++)S=this._cells[b-1],g=this._cells[b-m-1],g?(S=this.getCell(b),S.value=g.value,S.style=g.style,S._comment=g._comment):S&&(S.value=null,S.style={},S._comment=void 0);else if(m>0)for(b=d;b>=u;b--)g=this._cells[b-1],g?(S=this.getCell(b+m),S.value=g.value,S.style=g.style,S._comment=g._comment):this._cells[b+m-1]=void 0;for(b=0;b<h.length;b++)S=this.getCell(e+b),S.value=h[b],S.style={},S._comment=void 0}eachCell(e,i){if(i||(i=e,e=null),e&&e.includeEmpty){const u=this._cells.length;for(let a=1;a<=u;a++)i(this.getCell(a),a)}else this._cells.forEach((u,a)=>{u&&u.type!==r.ValueType.Null&&i(u,a+1)})}addPageBreak(e,i){const u=this._worksheet,a=Math.max(0,e-1)||0,h=Math.max(0,i-1)||16838,p={id:this._number,max:h,man:1};a&&(p.min=a),u.rowBreaks.push(p)}get values(){const e=[];return this._cells.forEach(i=>{i&&i.type!==r.ValueType.Null&&(e[i.col]=i.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let i=0;e.hasOwnProperty("0")&&(i=1),e.forEach((u,a)=>{u!==void 0&&(this.getCellEx({address:n.encodeAddress(this._number,a+i),row:this._number,col:a+i}).value=u)})}else this._worksheet.eachColumnKey((i,u)=>{e[u]!==void 0&&(this.getCellEx({address:n.encodeAddress(this._number,i.number),row:this._number,col:i.number}).value=e[u])})}get hasValues(){return o.some(this._cells,e=>e&&e.type!==r.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,i=0;return this._cells.forEach(u=>{u&&u.type!==r.ValueType.Null&&((!e||e>u.col)&&(e=u.col),i<u.col&&(i=u.col))}),e>0?{min:e,max:i}:null}_applyStyle(e,i){return this.style[e]=i,this._cells.forEach(u=>{u&&(u[e]=i)}),i}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let i=0,u=0;return this._cells.forEach(a=>{if(a){const h=a.model;h&&((!i||i>a.col)&&(i=a.col),u<a.col&&(u=a.col),e.push(h))}}),this.height||e.length?{cells:e,number:this.number,min:i,max:u,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let i;this._cells=[],e.cells.forEach(u=>{switch(u.type){case s.Types.Merge:break;default:{let a;if(u.address)a=n.decodeAddress(u.address);else if(i){const{row:h}=i,p=i.col+1;a={row:h,col:p,address:n.encodeAddress(h,p),$col$row:`$${n.n2l(p)}$${h}`}}i=a,this.getCellEx(a).model=u;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(t,l,c){const o=t("../utils/col-cache");class r{constructor(s,e,i){this.table=s,this.column=e,this.index=i}_set(s,e){this.table.cacheState(),this.column[s]=e}get name(){return this.column.name}set name(s){this._set("name",s)}get filterButton(){return this.column.filterButton}set filterButton(s){this.column.filterButton=s}get style(){return this.column.style}set style(s){this.column.style=s}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(s){this._set("totalsRowLabel",s)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(s){this._set("totalsRowFunction",s)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(s){this._set("totalsRowResult",s)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(s){this._set("totalsRowFormula",s)}}l.exports=class{constructor(n,s){this.worksheet=n,s&&(this.table=s,this.validate(),this.store())}getFormula(n){switch(n.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${n.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${n.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${n.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${n.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${n.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${n.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${n.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${n.name}])`;case"custom":return n.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+n.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:n}=this,s=(m,d,b)=>{m[d]===void 0&&(m[d]=b)};s(n,"headerRow",!0),s(n,"totalsRow",!1),s(n,"style",{}),s(n.style,"theme","TableStyleMedium2"),s(n.style,"showFirstColumn",!1),s(n.style,"showLastColumn",!1),s(n.style,"showRowStripes",!1),s(n.style,"showColumnStripes",!1);const e=(m,d)=>{if(!m)throw new Error(d)};e(n.ref,"Table must have ref"),e(n.columns,"Table must have column definitions"),e(n.rows,"Table must have row definitions"),n.tl=o.decodeAddress(n.ref);const{row:i,col:u}=n.tl;e(i>0,"Table must be on valid row"),e(u>0,"Table must be on valid col");const{width:a,filterHeight:h,tableHeight:p}=this;n.autoFilterRef=o.encode(i,u,i+h-1,u+a-1),n.tableRef=o.encode(i,u,i+p-1,u+a-1),n.columns.forEach((m,d)=>{e(m.name,`Column ${d} must have a name`),d===0?s(m,"totalsRowLabel","Total"):(s(m,"totalsRowFunction","none"),m.totalsRowFormula=this.getFormula(m))})}store(){const n=(h,p)=>{p&&Object.keys(p).forEach(m=>{h[m]=p[m]})},{worksheet:s,table:e}=this,{row:i,col:u}=e.tl;let a=0;if(e.headerRow){const h=s.getRow(i+a++);e.columns.forEach((p,m)=>{const{style:d,name:b}=p,g=h.getCell(u+m);g.value=b,n(g,d)})}if(e.rows.forEach(h=>{const p=s.getRow(i+a++);h.forEach((m,d)=>{const b=p.getCell(u+d);b.value=m,n(b,e.columns[d].style)})}),e.totalsRow){const h=s.getRow(i+a++);e.columns.forEach((p,m)=>{const d=h.getCell(u+m);if(m===0)d.value=p.totalsRowLabel;else{const b=this.getFormula(p);d.value=b?{formula:p.totalsRowFormula,result:p.totalsRowResult}:null}n(d,p.style)})}}load(n){const{table:s}=this,{row:e,col:i}=s.tl;let u=0;if(s.headerRow){const a=n.getRow(e+u++);s.columns.forEach((h,p)=>{a.getCell(i+p).value=h.name})}if(s.rows.forEach(a=>{const h=n.getRow(e+u++);a.forEach((p,m)=>{h.getCell(i+m).value=p})}),s.totalsRow){const a=n.getRow(e+u++);s.columns.forEach((h,p)=>{const m=a.getCell(i+p);p===0?m.value=h.totalsRowLabel:this.getFormula(h)&&(m.value={formula:h.totalsRowFormula,result:h.totalsRowResult})})}}get model(){return this.table}set model(n){this.table=n}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const n=o.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let s=0;s<this._cache.tableHeight;s++){const e=this.worksheet.getRow(n.row+s);for(let i=0;i<this._cache.width;i++)e.getCell(n.col+i).value=null}else{for(let s=this.tableHeight;s<this._cache.tableHeight;s++){const e=this.worksheet.getRow(n.row+s);for(let i=0;i<this._cache.width;i++)e.getCell(n.col+i).value=null}for(let s=0;s<this.tableHeight;s++){const e=this.worksheet.getRow(n.row+s);for(let i=this.width;i<this._cache.width;i++)e.getCell(n.col+i).value=null}}this.store()}addRow(n,s){this.cacheState(),s===void 0?this.table.rows.push(n):this.table.rows.splice(s,0,n)}removeRows(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(n,s)}getColumn(n){const s=this.table.columns[n];return new r(this,s,n)}addColumn(n,s,e){this.cacheState(),e===void 0?(this.table.columns.push(n),this.table.rows.forEach((i,u)=>{i.push(s[u])})):(this.table.columns.splice(e,0,n),this.table.rows.forEach((i,u)=>{i.splice(e,0,s[u])}))}removeColumns(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(n,s),this.table.rows.forEach(e=>{e.splice(n,s)})}_assign(n,s,e){this.cacheState(),n[s]=e}get ref(){return this.table.ref}set ref(n){this._assign(this.table,"ref",n)}get name(){return this.table.name}set name(n){this.table.name=n}get displayName(){return this.table.displyName||this.table.name}set displayNamename(n){this.table.displayName=n}get headerRow(){return this.table.headerRow}set headerRow(n){this._assign(this.table,"headerRow",n)}get totalsRow(){return this.table.totalsRow}set totalsRow(n){this._assign(this.table,"totalsRow",n)}get theme(){return this.table.style.name}set theme(n){this.table.style.name=n}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(n){this.table.style.showFirstColumn=n}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(n){this.table.style.showLastColumn=n}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(n){this.table.style.showRowStripes=n}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(n){this.table.style.showColumnStripes=n}}},{"../utils/col-cache":19}],13:[function(t,l,c){const o=t("./worksheet"),r=t("./defined-names"),n=t("../xlsx/xlsx"),s=t("../csv/csv");l.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new r}get xlsx(){return this._xlsx||(this._xlsx=new n(this)),this._xlsx}get csv(){return this._csv||(this._csv=new s(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,i){const u=this.nextId;i&&(typeof i=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),i={properties:{tabColor:{argb:i}}}):(i.argb||i.theme||i.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),i={properties:{tabColor:i}}));const a=this._worksheets.reduce((m,d)=>(d&&d.orderNo)>m?d.orderNo:m,0),h=Object.assign({},i,{id:u,name:e,orderNo:a+1,workbook:this}),p=new o(h);return this._worksheets[u]=p,p}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const i=this.getWorksheet(e);i&&i.destroy()}getWorksheet(e){return e===void 0?this._worksheets.find(Boolean):typeof e=="number"?this._worksheets[e]:typeof e=="string"?this._worksheets.find(i=>i&&i.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,i)=>e.orderNo-i.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(i=>{e(i,i.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const i=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),i}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(e=>e.model),sheets:this.worksheets.map(e=>e.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(i=>{const{id:u,name:a,state:h}=i,p=e.sheets&&e.sheets.findIndex(m=>m.id===u);(this._worksheets[u]=new o({id:u,name:a,orderNo:p,state:h,workbook:this})).model=i}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(t,l,c){const o=t("../utils/under-dash"),r=t("../utils/col-cache"),n=t("./range"),s=t("./row"),e=t("./column"),i=t("./enums"),u=t("./image"),a=t("./table"),h=t("./data-validations"),p=t("../utils/encryptor"),{copyStyle:m}=t("../utils/copy-style");l.exports=class{constructor(d){d=d||{},this._workbook=d.workbook,this.id=d.id,this.orderNo=d.orderNo,this.name=d.name,this.state=d.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},d.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!d.pageSetup||!d.pageSetup.fitToWidth&&!d.pageSetup.fitToHeight||d.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},d.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},d.headerFooter),this.dataValidations=new h,this.views=d.views||[],this.autoFilter=d.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(d){if(d===void 0&&(d="sheet"+this.id),this._name!==d){if(typeof d!="string")throw new Error("The name has to be a string.");if(d==="")throw new Error("The name can't be empty.");if(d==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(d))throw new Error(`Worksheet name ${d} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(d))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+d);if(d&&d.length>31&&(console.warn(`Worksheet name ${d} exceeds 31 chars. This will be truncated`),d=d.substring(0,31)),this._workbook._worksheets.find(b=>b&&b.name.toLowerCase()===d.toLowerCase()))throw new Error("Worksheet name already exists: "+d);this._name=d}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const d=new n;return this._rows.forEach(b=>{if(b){const g=b.dimensions;g&&d.expand(b.number,g.min,b.number,g.max)}}),d}get columns(){return this._columns}set columns(d){this._headerRowCount=d.reduce((S,C)=>{const I=(C.header?1:C.headers&&C.headers.length)||0;return Math.max(S,I)},0);let b=1;const g=this._columns=[];d.forEach(S=>{const C=new e(this,b++,!1);g.push(C),C.defn=S})}getColumnKey(d){return this._keys[d]}setColumnKey(d,b){this._keys[d]=b}deleteColumnKey(d){delete this._keys[d]}eachColumnKey(d){o.each(this._keys,d)}getColumn(d){if(typeof d=="string"){const b=this._keys[d];if(b)return b;d=r.l2n(d)}if(this._columns||(this._columns=[]),d>this._columns.length){let b=this._columns.length+1;for(;b<=d;)this._columns.push(new e(this,b++))}return this._columns[d-1]}spliceColumns(d,b){const g=this._rows.length;for(var S=arguments.length,C=new Array(S>2?S-2:0),I=2;I<S;I++)C[I-2]=arguments[I];if(C.length>0)for(let B=0;B<g;B++){const F=[d,b];C.forEach(q=>{F.push(q[B]||null)});const W=this.getRow(B+1);W.splice.apply(W,F)}else this._rows.forEach(B=>{B&&B.splice(d,b)});const D=C.length-b,z=d+b,P=this._columns.length;if(D<0)for(let B=d+C.length;B<=P;B++)this.getColumn(B).defn=this.getColumn(B-D).defn;else if(D>0)for(let B=P;B>=z;B--)this.getColumn(B+D).defn=this.getColumn(B).defn;for(let B=d;B<d+C.length;B++)this.getColumn(B).defn=null;this.workbook.definedNames.spliceColumns(this.name,d,b,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let d=0;return this.eachRow(b=>{d=Math.max(d,b.cellCount)}),d}get actualColumnCount(){const d=[];let b=0;return this.eachRow(g=>{g.eachCell(S=>{let{col:C}=S;d[C]||(d[C]=!0,b++)})}),b}_commitRow(){}get _lastRowNumber(){const d=this._rows;let b=d.length;for(;b>0&&d[b-1]===void 0;)b--;return b}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(d){return this._rows[d-1]}findRows(d,b){return this._rows.slice(d-1,d-1+b)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let d=0;return this.eachRow(()=>{d++}),d}getRow(d){let b=this._rows[d-1];return b||(b=this._rows[d-1]=new s(this,d)),b}getRows(d,b){if(b<1)return;const g=[];for(let S=d;S<d+b;S++)g.push(this.getRow(S));return g}addRow(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const g=this._nextRow,S=this.getRow(g);return S.values=d,this._setStyleOption(g,b[0]==="i"?b:"n"),S}addRows(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const g=[];return d.forEach(S=>{g.push(this.addRow(S,b))}),g}insertRow(d,b){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(d,0,b),this._setStyleOption(d,g),this.getRow(d)}insertRows(d,b){let g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(d,0,...b),g!=="n")for(let S=0;S<b.length;S++)g[0]==="o"&&this.findRow(b.length+d+S)!==void 0?this._copyStyle(b.length+d+S,d+S,g[1]==="+"):g[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d+S,g[1]==="+");return this.getRows(d,b.length)}_setStyleOption(d){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";b[0]==="o"&&this.findRow(d+1)!==void 0?this._copyStyle(d+1,d,b[1]==="+"):b[0]==="i"&&this.findRow(d-1)!==void 0&&this._copyStyle(d-1,d,b[1]==="+")}_copyStyle(d,b){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this.getRow(d),C=this.getRow(b);C.style=m(S.style),S.eachCell({includeEmpty:g},(I,D)=>{C.getCell(D).style=m(I.style)}),C.height=S.height}duplicateRow(d,b){let g=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const S=this._rows[d-1],C=new Array(b).fill(S.values);this.spliceRows(d+1,g?0:b,...C);for(let I=0;I<b;I++){const D=this._rows[d+I];D.style=S.style,D.height=S.height,S.eachCell({includeEmpty:!0},(z,P)=>{D.getCell(P).style=z.style})}}spliceRows(d,b){const g=d+b;for(var S=arguments.length,C=new Array(S>2?S-2:0),I=2;I<S;I++)C[I-2]=arguments[I];const D=C.length,z=D-b,P=this._rows.length;let B,F;if(z<0)for(d===P&&(this._rows[P-1]=void 0),B=g;B<=P;B++)if(F=this._rows[B-1],F){const W=this.getRow(B+z);W.values=F.values,W.style=F.style,W.height=F.height,F.eachCell({includeEmpty:!0},(q,A)=>{W.getCell(A).style=q.style}),this._rows[B-1]=void 0}else this._rows[B+z-1]=void 0;else if(z>0)for(B=P;B>=g;B--)if(F=this._rows[B-1],F){const W=this.getRow(B+z);W.values=F.values,W.style=F.style,W.height=F.height,F.eachCell({includeEmpty:!0},(q,A)=>{if(W.getCell(A).style=q.style,q._value.constructor.name==="MergeValue"){const M=this.getRow(q._row._number+D).getCell(A),k=q._value._master,y=this.getRow(k._row._number+D).getCell(k._column._number);M.merge(y)}})}else this._rows[B+z-1]=void 0;for(B=0;B<D;B++){const W=this.getRow(d+B);W.style={},W.values=C[B]}this.workbook.definedNames.spliceRows(this.name,d,b,D)}eachRow(d,b){if(b||(b=d,d=void 0),d&&d.includeEmpty){const g=this._rows.length;for(let S=1;S<=g;S++)b(this.getRow(S),S)}else this._rows.forEach(g=>{g&&g.hasValues&&b(g,g.number)})}getSheetValues(){const d=[];return this._rows.forEach(b=>{b&&(d[b.number]=b.values)}),d}findCell(d,b){const g=r.getAddress(d,b),S=this._rows[g.row-1];return S?S.findCell(g.col):void 0}getCell(d,b){const g=r.getAddress(d,b);return this.getRow(g.row).getCellEx(g)}mergeCells(){for(var d=arguments.length,b=new Array(d),g=0;g<d;g++)b[g]=arguments[g];const S=new n(b);this._mergeCellsInternal(S)}mergeCellsWithoutStyle(){for(var d=arguments.length,b=new Array(d),g=0;g<d;g++)b[g]=arguments[g];const S=new n(b);this._mergeCellsInternal(S,!0)}_mergeCellsInternal(d,b){o.each(this._merges,S=>{if(S.intersects(d))throw new Error("Cannot merge already merged cells")});const g=this.getCell(d.top,d.left);for(let S=d.top;S<=d.bottom;S++)for(let C=d.left;C<=d.right;C++)(S>d.top||C>d.left)&&this.getCell(S,C).merge(g,b);this._merges[g.address]=d}_unMergeMaster(d){const b=this._merges[d.address];if(b){for(let g=b.top;g<=b.bottom;g++)for(let S=b.left;S<=b.right;S++)this.getCell(g,S).unmerge();delete this._merges[d.address]}}get hasMerges(){return o.some(this._merges,Boolean)}unMergeCells(){for(var d=arguments.length,b=new Array(d),g=0;g<d;g++)b[g]=arguments[g];const S=new n(b);for(let C=S.top;C<=S.bottom;C++)for(let I=S.left;I<=S.right;I++){const D=this.findCell(C,I);D&&(D.type===i.ValueType.Merge?this._unMergeMaster(D.master):this._merges[D.address]&&this._unMergeMaster(D))}}fillFormula(d,b,g){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const C=r.decode(d),{top:I,left:D,bottom:z,right:P}=C,B=P-D+1,F=r.encodeAddress(I,D),W=S==="shared";let q;q=typeof g=="function"?g:Array.isArray(g)?Array.isArray(g[0])?(M,k)=>g[M-I][k-D]:(M,k)=>g[(M-I)*B+(k-D)]:()=>{};let A=!0;for(let M=I;M<=z;M++)for(let k=D;k<=P;k++)A?(this.getCell(M,k).value={shareType:S,formula:b,ref:d,result:q(M,k)},A=!1):this.getCell(M,k).value=W?{sharedFormula:F,result:q(M,k)}:q(M,k)}addImage(d,b){const g={type:"image",imageId:d,range:b};this._media.push(new u(this,g))}getImages(){return this._media.filter(d=>d.type==="image")}addBackgroundImage(d){const b={type:"background",imageId:d};this._media.push(new u(this,b))}getBackgroundImageId(){const d=this._media.find(b=>b.type==="background");return d&&d.imageId}protect(d,b){return new Promise(g=>{this.sheetProtection={sheet:!0},b&&"spinCount"in b&&(b.spinCount=Number.isFinite(b.spinCount)?Math.round(Math.max(0,b.spinCount)):1e5),d&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=p.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=b&&"spinCount"in b?b.spinCount:1e5,this.sheetProtection.hashValue=p.convertPasswordToHash(d,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),b&&(this.sheetProtection=Object.assign(this.sheetProtection,b),!d&&"spinCount"in b&&delete this.sheetProtection.spinCount),g()})}unprotect(){this.sheetProtection=null}addTable(d){const b=new a(this,d);return this.tables[d.name]=b,b}getTable(d){return this.tables[d]}removeTable(d){delete this.tables[d]}getTables(){return Object.values(this.tables)}addConditionalFormatting(d){this.conditionalFormattings.push(d)}removeConditionalFormatting(d){typeof d=="number"?this.conditionalFormattings.splice(d,1):this.conditionalFormattings=d instanceof Function?this.conditionalFormattings.filter(d):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(d){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=d}get model(){const d={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(S=>S.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(S=>S.model),conditionalFormattings:this.conditionalFormattings};d.cols=e.toModel(this.columns);const b=d.rows=[],g=d.dimensions=new n;return this._rows.forEach(S=>{const C=S&&S.model;C&&(g.expand(C.number,C.min,C.number,C.max),b.push(C))}),d.merges=[],o.each(this._merges,S=>{d.merges.push(S.range)}),d}_parseRows(d){this._rows=[],d.rows.forEach(b=>{const g=new s(this,b.number);this._rows[g.number-1]=g,g.model=b})}_parseMergeCells(d){o.each(d.mergeCells,b=>{this.mergeCellsWithoutStyle(b)})}set model(d){this.name=d.name,this._columns=e.fromModel(this,d.cols),this._parseRows(d),this._parseMergeCells(d),this.dataValidations=new h(d.dataValidations),this.properties=d.properties,this.pageSetup=d.pageSetup,this.headerFooter=d.headerFooter,this.views=d.views,this.autoFilter=d.autoFilter,this._media=d.media.map(b=>new u(this,b)),this.sheetProtection=d.sheetProtection,this.tables=d.tables.reduce((b,g)=>{const S=new a;return S.model=g,b[g.name]=S,b},{}),this.conditionalFormattings=d.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,l,c){t("core-js/modules/es.promise"),t("core-js/modules/es.promise.finally"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");const o={Workbook:t("./doc/workbook")},r=t("./doc/enums");Object.keys(r).forEach(n=>{o[n]=r[n]}),l.exports=o},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(t,l,c){const o=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");c.bufferToString=function(r){return typeof r=="string"?r:o?o.decode(r):r.toString()}},{}],17:[function(t,l,c){const o=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:r}=t("buffer");c.stringToBuffer=function(n){return typeof n!="string"?n:o?r.from(o.encode(n).buffer):r.from(n)}},{buffer:220}],18:[function(t,l,c){const o=t("./under-dash"),r=t("./col-cache");l.exports=class{constructor(n){this.template=n,this.sheets={}}addCell(n){this.addCellEx(r.decodeEx(n))}getCell(n){return this.findCellEx(r.decodeEx(n),!0)}findCell(n){return this.findCellEx(r.decodeEx(n),!1)}findCellAt(n,s,e){const i=this.sheets[n],u=i&&i[s];return u&&u[e]}addCellEx(n){if(n.top)for(let s=n.top;s<=n.bottom;s++)for(let e=n.left;e<=n.right;e++)this.getCellAt(n.sheetName,s,e);else this.findCellEx(n,!0)}getCellEx(n){return this.findCellEx(n,!0)}findCellEx(n,s){const e=this.findSheet(n,s),i=this.findSheetRow(e,n,s);return this.findRowCell(i,n,s)}getCellAt(n,s,e){const i=this.sheets[n]||(this.sheets[n]=[]),u=i[s]||(i[s]=[]);return u[e]||(u[e]={sheetName:n,address:r.n2l(e)+s,row:s,col:e})}removeCellEx(n){const s=this.findSheet(n);if(!s)return;const e=this.findSheetRow(s,n);e&&delete e[n.col]}forEachInSheet(n,s){const e=this.sheets[n];e&&e.forEach((i,u)=>{i&&i.forEach((a,h)=>{a&&s(a,u,h)})})}forEach(n){o.each(this.sheets,(s,e)=>{this.forEachInSheet(e,n)})}map(n){const s=[];return this.forEach(e=>{s.push(n(e))}),s}findSheet(n,s){const e=n.sheetName;return this.sheets[e]?this.sheets[e]:s?this.sheets[e]=[]:void 0}findSheetRow(n,s,e){const{row:i}=s;return n&&n[i]?n[i]:e?n[i]=[]:void 0}findRowCell(n,s,e){const{col:i}=s;return n&&n[i]?n[i]:e?n[i]=this.template?Object.assign(s,JSON.parse(JSON.stringify(this.template))):s:void 0}spliceRows(n,s,e,i){const u=this.sheets[n];if(u){const a=[];for(let h=0;h<i;h++)a.push([]);u.splice(s,e,...a)}}spliceColumns(n,s,e,i){const u=this.sheets[n];if(u){const a=[];for(let h=0;h<i;h++)a.push(null);o.each(u,h=>{h.splice(s,e,...a)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(t,l,c){const o=/^[A-Z]+\d+$/,r={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:n=>n<=26?1:n<=676?2:3,_fill(n){let s,e,i,u,a,h=1;if(n>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&n>=1){for(;h<=26;)s=this._dictionary[h-1],this._n2l[h]=s,this._l2n[s]=h,h++;this._l2nFill=1}if(this._l2nFill<2&&n>=2){for(h=27;h<=702;)e=h-27,i=e%26,u=Math.floor(e/26),s=this._dictionary[u]+this._dictionary[i],this._n2l[h]=s,this._l2n[s]=h,h++;this._l2nFill=2}if(this._l2nFill<3&&n>=3){for(h=703;h<=16384;)e=h-703,i=e%26,u=Math.floor(e/26)%26,a=Math.floor(e/676),s=this._dictionary[a]+this._dictionary[u]+this._dictionary[i],this._n2l[h]=s,this._l2n[s]=h,h++;this._l2nFill=3}},l2n(n){if(this._l2n[n]||this._fill(n.length),!this._l2n[n])throw new Error("Out of bounds. Invalid column letter: "+n);return this._l2n[n]},n2l(n){if(n<1||n>16384)throw new Error(n+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[n]||this._fill(this._level(n)),this._n2l[n]},_hash:{},validateAddress(n){if(!o.test(n))throw new Error("Invalid Address: "+n);return!0},decodeAddress(n){const s=n.length<5&&this._hash[n];if(s)return s;let e=!1,i="",u=0,a=!1,h="",p=0;for(let d,b=0;b<n.length;b++)if(d=n.charCodeAt(b),!a&&d>=65&&d<=90)e=!0,i+=n[b],u=26*u+d-64;else if(d>=48&&d<=57)a=!0,h+=n[b],p=10*p+d-48;else if(a&&e&&d!==36)break;if(e){if(u>16384)throw new Error("Out of bounds. Invalid column letter: "+i)}else u=void 0;a||(p=void 0);const m={address:n=i+h,col:u,row:p,$col$row:`$${i}$${h}`};return u<=100&&p<=100&&(this._hash[n]=m,this._hash[m.$col$row]=m),m},getAddress(n,s){if(s){const e=this.n2l(s)+n;return this.decodeAddress(e)}return this.decodeAddress(n)},decode(n){const s=n.split(":");if(s.length===2){const e=this.decodeAddress(s[0]),i=this.decodeAddress(s[1]),u={top:Math.min(e.row,i.row),left:Math.min(e.col,i.col),bottom:Math.max(e.row,i.row),right:Math.max(e.col,i.col)};return u.tl=this.n2l(u.left)+u.top,u.br=this.n2l(u.right)+u.bottom,u.dimensions=`${u.tl}:${u.br}`,u}return this.decodeAddress(n)},decodeEx(n){const s=n.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),e=s[1]||s[2],i=s[3],u=i.split(":");if(u.length>1){let h=this.decodeAddress(u[0]),p=this.decodeAddress(u[1]);const m=Math.min(h.row,p.row),d=Math.min(h.col,p.col),b=Math.max(h.row,p.row),g=Math.max(h.col,p.col);return h=this.n2l(d)+m,p=this.n2l(g)+b,{top:m,left:d,bottom:b,right:g,sheetName:e,tl:{address:h,col:d,row:m,$col$row:`$${this.n2l(d)}$${m}`,sheetName:e},br:{address:p,col:g,row:b,$col$row:`$${this.n2l(g)}$${b}`,sheetName:e},dimensions:`${h}:${p}`}}if(i.startsWith("#"))return e?{sheetName:e,error:i}:{error:i};const a=this.decodeAddress(i);return e?{sheetName:e,...a}:a},encodeAddress:(n,s)=>r.n2l(s)+n,encode(){switch(arguments.length){case 2:return r.encodeAddress(arguments[0],arguments[1]);case 4:return`${r.encodeAddress(arguments[0],arguments[1])}:${r.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(n,s){const[e,i,,u,a]=n,[h,p]=s;return h>=e&&h<=u&&p>=i&&p<=a}};l.exports=r},{}],20:[function(t,l,c){const o=(n,s)=>({...n,...s.reduce((e,i)=>(n[i]&&(e[i]={...n[i]}),e),{})}),r=function(n,s,e){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];n[e]&&(s[e]=o(n[e],i))};c.copyStyle=n=>{if(!n)return n;if(s=n,Object.keys(s).length===0)return{};var s;const e={...n};return r(n,e,"font",["color"]),r(n,e,"alignment"),r(n,e,"protection"),n.border&&(r(n,e,"border"),r(n.border,e.border,"top",["color"]),r(n.border,e.border,"left",["color"]),r(n.border,e.border,"bottom",["color"]),r(n.border,e.border,"right",["color"]),r(n.border,e.border,"diagonal",["color"])),n.fill&&(r(n,e,"fill",["fgColor","bgColor","center"]),n.fill.stops&&(e.fill.stops=n.fill.stops.map(i=>o(i,["color"])))),e}},{}],21:[function(t,l,c){(function(o){(function(){const r=t("crypto"),n={hash(s){const e=r.createHash(s);for(var i=arguments.length,u=new Array(i>1?i-1:0),a=1;a<i;a++)u[a-1]=arguments[a];return e.update(o.concat(u)),e.digest()},convertPasswordToHash(s,e,i,u){if(e=e.toLowerCase(),r.getHashes().indexOf(e)<0)throw new Error(`Hash algorithm '${e}' not supported!`);const a=o.from(s,"utf16le");let h=this.hash(e,o.from(i,"base64"),a);for(let p=0;p<u;p++){const m=o.alloc(4);m.writeUInt32LE(p,0),h=this.hash(e,h,m)}return h.toString("base64")},randomBytes:s=>r.randomBytes(s)};l.exports=n}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(t,l,c){const{SaxesParser:o}=t("saxes"),{PassThrough:r}=t("readable-stream"),{bufferToString:n}=t("./browser-buffer-decode");l.exports=async function*(s){s.pipe&&!s[Symbol.asyncIterator]&&(s=s.pipe(new r));const e=new o;let i;e.on("error",a=>{i=a});let u=[];e.on("opentag",a=>u.push({eventType:"opentag",value:a})),e.on("text",a=>u.push({eventType:"text",value:a})),e.on("closetag",a=>u.push({eventType:"closetag",value:a}));for await(const a of s){if(e.write(n(a)),i)throw i;yield u,u=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(t,l,c){const o=t("./col-cache"),r=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,n=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;l.exports={slideFormula:function(s,e,i){const u=o.decode(e),a=o.decode(i);return s.replace(r,(h,p,m,d,b)=>{if(b)return h;const g=n.exec(d);if(g){const S=g[1],C=g[2].toUpperCase(),I=g[3],D=g[4];if(C.length>3||C.length===3&&C>"XFD")return h;let z=o.l2n(C),P=parseInt(D,10);return S||(z+=a.col-u.col),I||(P+=a.row-u.row),(p||"")+(S||"")+o.n2l(z)+(I||"")+P}return h})}}},{"./col-cache":19}],24:[function(t,l,c){(function(o,r){(function(){const n=t("readable-stream"),s=t("./utils"),e=t("./string-buf");class i{constructor(d,b){this._data=d,this._encoding=b}get length(){return this.toBuffer().length}copy(d,b,g,S){return this.toBuffer().copy(d,b,g,S)}toBuffer(){return this._buffer||(this._buffer=r.from(this._data,this._encoding)),this._buffer}}class u{constructor(d){this._data=d}get length(){return this._data.length}copy(d,b,g,S){return this._data._buf.copy(d,b,g,S)}toBuffer(){return this._data.toBuffer()}}class a{constructor(d){this._data=d}get length(){return this._data.length}copy(d,b,g,S){this._data.copy(d,b,g,S)}toBuffer(){return this._data}}class h{constructor(d){this.size=d,this.buffer=r.alloc(d),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const d=r.alloc(this.iWrite-this.iRead);return this.buffer.copy(d,0,this.iRead,this.iWrite),d}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(d){let b;return d===0?null:d===void 0||d>=this.length?(b=this.toBuffer(),this.iRead=this.iWrite,b):(b=r.alloc(d),this.buffer.copy(b,0,this.iRead,d),this.iRead+=d,b)}write(d,b,g){const S=Math.min(g,this.size-this.iWrite);return d.copy(this.buffer,this.iWrite,b,b+S),this.iWrite+=S,S}}const p=function(m){m=m||{},this.bufSize=m.bufSize||1048576,this.buffers=[],this.batch=m.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};s.inherits(p,n.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return r.concat(this.buffers.map(m=>m.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const d=this.buffers[this.buffers.length-1];if(!d.full)return d}const m=new h(this.bufSize);return this.buffers.push(m),m},async _pipe(m){await Promise.all(this.pipes.map((function(d){return new Promise(b=>{d.write(m.toBuffer(),()=>{b()})})})))},_writeToBuffers(m){let d=0;const b=m.length;for(;d<b;)d+=this._getWritableBuffer().write(m,d,b-d)},async write(m,d,b){let g;if(d instanceof Function&&(b=d,d="utf8"),b=b||s.nop,m instanceof e)g=new u(m);else if(m instanceof r)g=new a(m);else{if(!(typeof m=="string"||m instanceof String||m instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");g=new i(m,d)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(g);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(g),o.nextTick(b)):(await this._pipe(g),b());else this.paused||this.emit("data",g.toBuffer()),this._writeToBuffers(g),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(m,d,b){const g=S=>{S?b(S):(this._flush(),this.pipes.forEach(C=>{C.end()}),this.emit("finish"))};m?this.write(m,d,g):g()},read(m){let d;if(m){for(d=[];m&&this.buffers.length&&!this.buffers[0].eod;){const b=this.buffers[0],g=b.read(m);m-=g.length,d.push(g),b.eod&&b.full&&this.buffers.shift()}return r.concat(d)}return d=this.buffers.map(b=>b.toBuffer()).filter(Boolean),this.buffers=[],r.concat(d)},setEncoding(m){this.encoding=m},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(m){this.pipes.push(m),!this.paused&&this.buffers.length&&this.end()},unpipe(m){this.pipes=this.pipes.filter(d=>d!==m)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),l.exports=p}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(t,l,c){(function(o){(function(){l.exports=class{constructor(r){this._buf=o.alloc(r&&r.size||16384),this._encoding=r&&r.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=o.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(r){r=r||0,this._buffer=void 0,this._inPos=r}_grow(r){let n=2*this._buf.length;for(;n<r;)n*=2;const s=o.alloc(n);this._buf.copy(s,0),this._buf=s}addText(r){this._buffer=void 0;let n=this._inPos+this._buf.write(r,this._inPos,this._encoding);for(;n>=this._buf.length-4;)this._grow(this._inPos+r.length),n=this._inPos+this._buf.write(r,this._inPos,this._encoding);this._inPos=n}addStringBuf(r){r.length&&(this._buffer=void 0,this.length+r.length>this.capacity&&this._grow(this.length+r.length),r._buf.copy(this._buf,this._inPos,0,r.length),this._inPos+=r.length)}}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],26:[function(t,l,c){const{toString:o}=Object.prototype,r=/["&<>]/,n={each:function(s,e){s&&(Array.isArray(s)?s.forEach(e):Object.keys(s).forEach(i=>{e(s[i],i)}))},some:function(s,e){return!!s&&(Array.isArray(s)?s.some(e):Object.keys(s).some(i=>e(s[i],i)))},every:function(s,e){return!s||(Array.isArray(s)?s.every(e):Object.keys(s).every(i=>e(s[i],i)))},map:function(s,e){return s?Array.isArray(s)?s.map(e):Object.keys(s).map(i=>e(s[i],i)):[]},keyBy:(s,e)=>s.reduce((i,u)=>(i[u[e]]=u,i),{}),isEqual:function(s,e){const i=typeof s,u=typeof e,a=Array.isArray(s),h=Array.isArray(e);let p;if(i!==u)return!1;switch(typeof s){case"object":if(a||h)return!(!a||!h)&&s.length===e.length&&s.every((m,d)=>{const b=e[d];return n.isEqual(m,b)});if(s===null||e===null)return s===e;if(p=Object.keys(s),Object.keys(e).length!==p.length)return!1;for(const m of p)if(!e.hasOwnProperty(m))return!1;return n.every(s,(m,d)=>{const b=e[d];return n.isEqual(m,b)});default:return s===e}},escapeHtml(s){const e=r.exec(s);if(!e)return s;let i="",u="",a=0,h=e.index;for(;h<s.length;h++){switch(s.charAt(h)){case'"':u=""";break;case"&":u="&";break;case"'":u="'";break;case"<":u="<";break;case">":u=">";break;default:continue}a!==h&&(i+=s.substring(a,h)),a=h+1,i+=u}return a!==h?i+s.substring(a,h):i},strcmp:(s,e)=>s<e?-1:s>e?1:0,isUndefined:s=>o.call(s)==="[object Undefined]",isObject:s=>o.call(s)==="[object Object]",deepMerge(){const s=arguments[0]||{},{length:e}=arguments;let i,u,a;function h(p,m){i=s[m],a=Array.isArray(p),n.isObject(p)||a?(a?(a=!1,u=i&&Array.isArray(i)?i:[]):u=i&&n.isObject(i)?i:{},s[m]=n.deepMerge(u,p)):n.isUndefined(p)||(s[m]=p)}for(let p=0;p<e;p++)n.each(arguments[p],h);return s}};l.exports=n},{}],27:[function(t,l,c){(function(o,r){(function(){const n=t("fs"),s=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,e={nop(){},promiseImmediate:i=>new Promise(u=>{o.setImmediate?r(()=>{u(i)}):setTimeout(()=>{u(i)},1)}),inherits:function(i,u,a,h){i.super_=u,h||(h=a,a=null),a&&Object.keys(a).forEach(m=>{Object.defineProperty(i,m,Object.getOwnPropertyDescriptor(a,m))});const p={constructor:{value:i,enumerable:!1,writable:!1,configurable:!0}};h&&Object.keys(h).forEach(m=>{p[m]=Object.getOwnPropertyDescriptor(h,m)}),i.prototype=Object.create(u.prototype,p)},dateToExcel:(i,u)=>25569+i.getTime()/864e5-(u?1462:0),excelToDate(i,u){const a=Math.round(24*(i-25569+(u?1462:0))*3600*1e3);return new Date(a)},parsePath(i){const u=i.lastIndexOf("/");return{path:i.substring(0,u),name:i.substring(u+1)}},getRelsPath(i){const u=e.parsePath(i);return`${u.path}/_rels/${u.name}.rels`},xmlEncode(i){const u=s.exec(i);if(!u)return i;let a="",h="",p=0,m=u.index;for(;m<i.length;m++){const d=i.charCodeAt(m);switch(d){case 34:h=""";break;case 38:h="&";break;case 39:h="'";break;case 60:h="<";break;case 62:h=">";break;case 127:h="";break;default:if(d<=31&&(d<=8||d>=11&&d!==13)){h="";break}continue}p!==m&&(a+=i.substring(p,m)),p=m+1,h&&(a+=h)}return p!==m?a+i.substring(p,m):a},xmlDecode:i=>i.replace(/&([a-z]*);/g,u=>{switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return u}}),validInt(i){const u=parseInt(i,10);return Number.isNaN(u)?0:u},isDateFmt(i){return i?(i=(i=i.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:i=>new Promise(u=>{n.access(i,n.constants.F_OK,a=>{u(!a)})})},toIsoDateString:i=>i.toIsoString().subsstr(0,10),parseBoolean:i=>i===!0||i==="true"||i===1||i==="1"};l.exports=e}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{},t("timers").setImmediate)},{fs:216,timers:523}],28:[function(t,l,c){const o=t("./under-dash"),r=t("./utils");function n(i,u,a){i.push(` ${u}="${r.xmlEncode(a.toString())}"`)}function s(i,u){if(u){const a=[];o.each(u,(h,p)=>{h!==void 0&&n(a,p,h)}),i.push(a.join(""))}}class e{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(u){const a=this._xml;a.push("<?xml"),s(a,u),a.push(`?>
|
|
257
257
|
`)}openNode(u,a){const h=this.tos,p=this._xml;h&&this.open&&p.push(">"),this._stack.push(u),p.push("<"),p.push(u),s(p,a),this.leaf=!0,this.open=!0}addAttribute(u,a){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");a!==void 0&&n(this._xml,u,a)}addAttributes(u){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s(this._xml,u)}writeText(u){const a=this._xml;this.open&&(a.push(">"),this.open=!1),this.leaf=!1,a.push(r.xmlEncode(u.toString()))}writeXml(u){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(u)}closeNode(){const u=this._stack.pop(),a=this._xml;this.leaf?a.push("/>"):(a.push("</"),a.push(u),a.push(">")),this.open=!1,this.leaf=!1}leafNode(u,a,h){this.openNode(u,a),h!==void 0&&this.writeText(h),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const u=this._rollbacks.pop();this._xml.length>u.xml&&this._xml.splice(u.xml,this._xml.length-u.xml),this._stack.length>u.stack&&this._stack.splice(u.stack,this._stack.length-u.stack),this.leaf=u.leaf,this.open=u.open}get xml(){return this.closeAll(),this._xml.join("")}}e.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},l.exports=e},{"./under-dash":26,"./utils":27}],29:[function(t,l,c){(function(o){(function(){const r=t("events"),n=t("jszip"),s=t("./stream-buf"),{stringToBuffer:e}=t("./browser-buffer-encode");class i extends r.EventEmitter{constructor(a){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},a),this.zip=new n,this.stream=new s}append(a,h){h.hasOwnProperty("base64")&&h.base64?this.zip.file(h.name,a,{base64:!0}):(o.browser&&typeof a=="string"&&(a=e(a)),this.zip.file(h.name,a))}async finalize(){const a=await this.zip.generateAsync(this.options);this.stream.end(a),this.emit("finish")}read(a){return this.stream.read(a)}setEncoding(a){return this.stream.setEncoding(a)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(a,h){return this.stream.pipe(a,h)}unpipe(a){return this.stream.unpipe(a)}unshift(a){return this.stream.unshift(a)}wrap(a){return this.stream.wrap(a)}}l.exports={ZipWriter:i}}).call(this)}).call(this,t("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(t,l,c){l.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(t,l,c){l.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(t,l,c){const o=t("../../utils/parse-sax"),r=t("../../utils/xml-stream");class n{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,i){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof n?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const i of e)for(const{eventType:u,value:a}of i)if(u==="opentag")this.parseOpen(a);else if(u==="text")this.parseText(a);else if(u==="closetag"&&!this.parseClose(a.name))return this.model;return this.model}async parseStream(e){return this.parse(o(e))}get xml(){return this.toXml(this.model)}toXml(e){const i=new r;return this.render(i,e),i.xml}static toAttribute(e,i){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(u)return i}else if(u||e!==i)return e.toString()}static toStringAttribute(e,i){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return n.toAttribute(e,i,u)}static toStringValue(e,i){return e===void 0?i:e}static toBoolAttribute(e,i){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(e===void 0){if(u)return i}else if(u||e!==i)return e?"1":"0"}static toBoolValue(e,i){return e===void 0?i:e==="1"}static toIntAttribute(e,i){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return n.toAttribute(e,i,u)}static toIntValue(e,i){return e===void 0?i:parseInt(e,10)}static toFloatAttribute(e,i){let u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return n.toAttribute(e,i,u)}static toFloatValue(e,i){return e===void 0?i:parseFloat(e)}}l.exports=n},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(t,l,c){const o=t("../base-xform"),r=t("../../../utils/col-cache");function n(e){try{return r.decodeEx(e),!0}catch{return!1}}function s(e){const i=[];let u=!1,a="";return e.split(",").forEach(h=>{if(!h)return;const p=(h.match(/'/g)||[]).length;if(!p)return void(u?a+=h+",":n(h)&&i.push(h));const m=p%2==0;!u&&m&&n(h)?i.push(h):u&&!m?(u=!1,n(a+h)&&i.push(a+h),a=""):(u=!0,a+=h+",")}),i}l.exports=class extends o{render(e,i){e.openNode("definedName",{name:i.name,localSheetId:i.localSheetId}),e.writeText(i.ranges.join(",")),e.closeNode()}parseOpen(e){switch(e.name){case"definedName":return this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:s(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(t,l,c){const o=t("../../../utils/utils"),r=t("../base-xform");l.exports=class extends r{render(n,s){n.leafNode("sheet",{sheetId:s.id,name:s.name,state:s.state,"r:id":s.rId})}parseOpen(n){return n.name==="sheet"&&(this.model={name:o.xmlDecode(n.attributes.name),id:parseInt(n.attributes.sheetId,10),state:n.attributes.state,rId:n.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{render(r,n){r.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:n.fullCalcOnLoad?1:void 0})}parseOpen(r){return r.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{render(r,n){r.leafNode("workbookPr",{date1904:n.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(r){return r.name==="workbookPr"&&(this.model={date1904:r.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{render(r,n){const s={xWindow:n.x||0,yWindow:n.y||0,windowWidth:n.width||12e3,windowHeight:n.height||24e3,firstSheet:n.firstSheet,activeTab:n.activeTab};n.visibility&&n.visibility!=="visible"&&(s.visibility=n.visibility),r.leafNode("workbookView",s)}parseOpen(r){if(r.name==="workbookView"){const n=this.model={},s=function(i,u,a){const h=u!==void 0?n[i]=u:a;h!==void 0&&(n[i]=h)},e=function(i,u,a){const h=u!==void 0?n[i]=parseInt(u,10):a;h!==void 0&&(n[i]=h)};return e("x",r.attributes.xWindow,0),e("y",r.attributes.yWindow,0),e("width",r.attributes.windowWidth,25e3),e("height",r.attributes.windowHeight,1e4),s("visibility",r.attributes.visibility,"visible"),e("activeTab",r.attributes.activeTab,void 0),e("firstSheet",r.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../../../utils/col-cache"),n=t("../../../utils/xml-stream"),s=t("../base-xform"),e=t("../static-xform"),i=t("../list-xform"),u=t("./defined-name-xform"),a=t("./sheet-xform"),h=t("./workbook-view-xform"),p=t("./workbook-properties-xform"),m=t("./workbook-calc-properties-xform");class d extends s{constructor(){super(),this.map={fileVersion:d.STATIC_XFORMS.fileVersion,workbookPr:new p,bookViews:new i({tag:"bookViews",count:!1,childXform:new h}),sheets:new i({tag:"sheets",count:!1,childXform:new a}),definedNames:new i({tag:"definedNames",count:!1,childXform:new u}),calcPr:new m}}prepare(g){g.sheets=g.worksheets;const S=[];let C=0;g.sheets.forEach(I=>{if(I.pageSetup&&I.pageSetup.printArea&&I.pageSetup.printArea.split("&&").forEach(D=>{const z=D.split(":"),P={name:"_xlnm.Print_Area",ranges:[`'${I.name}'!$${z[0]}:$${z[1]}`],localSheetId:C};S.push(P)}),I.pageSetup&&(I.pageSetup.printTitlesRow||I.pageSetup.printTitlesColumn)){const D=[];if(I.pageSetup.printTitlesColumn){const P=I.pageSetup.printTitlesColumn.split(":");D.push(`'${I.name}'!$${P[0]}:$${P[1]}`)}if(I.pageSetup.printTitlesRow){const P=I.pageSetup.printTitlesRow.split(":");D.push(`'${I.name}'!$${P[0]}:$${P[1]}`)}const z={name:"_xlnm.Print_Titles",ranges:D,localSheetId:C};S.push(z)}C++}),S.length&&(g.definedNames=g.definedNames.concat(S)),(g.media||[]).forEach((I,D)=>{I.name=I.type+(D+1)})}render(g,S){g.openXml(n.StdDocAttributes),g.openNode("workbook",d.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(g),this.map.workbookPr.render(g,S.properties),this.map.bookViews.render(g,S.views),this.map.sheets.render(g,S.sheets),this.map.definedNames.render(g,S.definedNames),this.map.calcPr.render(g,S.calcProperties),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;switch(g.name){case"workbook":return!0;default:return this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g),!0}}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser)return this.parser.parseClose(g)||(this.parser=void 0),!0;switch(g){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(g){const S=(g.workbookRels||[]).reduce((P,B)=>(P[B.Id]=B,P),{}),C=[];let I,D=0;(g.sheets||[]).forEach(P=>{const B=S[P.rId];B&&(I=g.worksheetHash["xl/"+B.Target.replace(/^(\s|\/xl\/)+/,"")],I&&(I.name=P.name,I.id=P.id,I.state=P.state,C[D++]=I))});const z=[];o.each(g.definedNames,P=>{if(P.name==="_xlnm.Print_Area"){if(I=C[P.localSheetId],I){I.pageSetup||(I.pageSetup={});const B=r.decodeEx(P.ranges[0]);I.pageSetup.printArea=I.pageSetup.printArea?`${I.pageSetup.printArea}&&${B.dimensions}`:B.dimensions}}else if(P.name==="_xlnm.Print_Titles"){if(I=C[P.localSheetId],I){I.pageSetup||(I.pageSetup={});const B=P.ranges.join(","),F=/\$/g,W=/\$\d+:\$\d+/,q=B.match(W);if(q&&q.length){const k=q[0];I.pageSetup.printTitlesRow=k.replace(F,"")}const A=/\$[A-Z]+:\$[A-Z]+/,M=B.match(A);if(M&&M.length){const k=M[0];I.pageSetup.printTitlesColumn=k.replace(F,"")}}}else z.push(P)}),g.definedNames=z,g.media.forEach((P,B)=>{P.index=B})}}d.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},d.STATIC_XFORMS={fileVersion:new e({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},l.exports=d},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(t,l,c){const o=t("../strings/rich-text-xform"),r=t("../../../utils/utils"),n=t("../base-xform"),s=l.exports=function(e){this.model=e};r.inherits(s,n,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new o),this._richTextXform},render(e,i){i=i||this.model,e.openNode("comment",{ref:i.ref,authorId:0}),e.openNode("text"),i&&i.note&&i.note.texts&&i.note.texts.forEach(u=>{this.richTextXform.render(e,u)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(t,l,c){const o=t("../../../utils/xml-stream"),r=t("../../../utils/utils"),n=t("../base-xform"),s=t("./comment-xform"),e=l.exports=function(){this.map={comment:new s}};r.inherits(e,n,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(i,u){u=u||this.model,i.openXml(o.StdDocAttributes),i.openNode("comments",e.COMMENTS_ATTRIBUTES),i.openNode("authors"),i.leafNode("author",null,"Author"),i.closeNode(),i.openNode("commentList"),u.comments.forEach(a=>{this.map.comment.render(i,a)}),i.closeNode(),i.closeNode()},parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(i),!0;default:return!1}},parseText(i){this.parser&&this.parser.parseText(i)},parseClose(i){switch(i){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(i),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(t,l,c){const o=t("../../base-xform");l.exports=class extends o{constructor(r){super(),this._model=r}get tag(){return this._model&&this._model.tag}render(r,n,s){(n===s[2]||this.tag==="x:SizeWithCells"&&n===s[1])&&r.leafNode(this.tag)}parseOpen(r){switch(r.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(t,l,c){const o=t("../../base-xform");l.exports=class extends o{constructor(r){super(),this._model=r}get tag(){return this._model&&this._model.tag}render(r,n){r.leafNode(this.tag,null,n)}parseOpen(r){switch(r.name){case this.tag:return this.text="",!0;default:return!1}}parseText(r){this.text=r}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"x:Anchor"}getAnchorRect(r){const n=Math.floor(r.left),s=Math.floor(68*(r.left-n)),e=Math.floor(r.top),i=Math.floor(18*(r.top-e)),u=Math.floor(r.right),a=Math.floor(68*(r.right-u)),h=Math.floor(r.bottom);return[n,s,e,i,u,a,h,Math.floor(18*(r.bottom-h))]}getDefaultRect(r){const n=r.col,s=Math.max(r.row-2,0);return[n,6,s,14,n+2,2,s+4,16]}render(r,n){const s=n.anchor?this.getAnchorRect(n.anchor):this.getDefaultRect(n.refAddress);r.leafNode("x:Anchor",null,s.join(", "))}parseOpen(r){switch(r.name){case this.tag:return this.text="",!0;default:return!1}}parseText(r){this.text=r}parseClose(){return!1}}},{"../base-xform":32}],44:[function(t,l,c){const o=t("../base-xform"),r=t("./vml-anchor-xform"),n=t("./style/vml-protection-xform"),s=t("./style/vml-position-xform"),e=["twoCells","oneCells","absolute"];l.exports=class extends o{constructor(){super(),this.map={"x:Anchor":new r,"x:Locked":new n({tag:"x:Locked"}),"x:LockText":new n({tag:"x:LockText"}),"x:SizeWithCells":new s({tag:"x:SizeWithCells"}),"x:MoveWithCells":new s({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(i,u){const{protection:a,editAs:h}=u.note;i.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(i,h,e),this.map["x:SizeWithCells"].render(i,h,e),this.map["x:Anchor"].render(i,u),this.map["x:Locked"].render(i,a.locked),i.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(i,a.lockText),i.leafNode("x:Row",null,u.refAddress.row-1),i.leafNode("x:Column",null,u.refAddress.col-1),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const i=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),u=Object.keys(i).length;this.model.editAs=e[u],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(t,l,c){const o=t("../../../utils/xml-stream"),r=t("../base-xform"),n=t("./vml-shape-xform");class s extends r{constructor(){super(),this.map={"v:shape":new n}}get tag(){return"xml"}render(i,u){i.openXml(o.StdDocAttributes),i.openNode(this.tag,s.DRAWING_ATTRIBUTES),i.openNode("o:shapelayout",{"v:ext":"edit"}),i.leafNode("o:idmap",{"v:ext":"edit",data:1}),i.closeNode(),i.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),i.leafNode("v:stroke",{joinstyle:"miter"}),i.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),i.closeNode(),u.comments.forEach((a,h)=>{this.map["v:shape"].render(i,a,h)}),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(i){case this.tag:return!1;default:return!0}}reconcile(i,u){i.anchors.forEach(a=>{a.br?this.map["xdr:twoCellAnchor"].reconcile(a,u):this.map["xdr:oneCellAnchor"].reconcile(a,u)})}}s.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},l.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(t,l,c){const o=t("../base-xform"),r=t("./vml-textbox-xform"),n=t("./vml-client-data-xform");class s extends o{constructor(){super(),this.map={"v:textbox":new r,"x:ClientData":new n}}get tag(){return"v:shape"}render(i,u,a){i.openNode("v:shape",s.V_SHAPE_ATTRIBUTES(u,a)),i.leafNode("v:fill",{color2:"infoBackground [80]"}),i.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),i.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(i,u),this.map["x:ClientData"].render(i,u),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:this.reset(),this.model={margins:{insetmode:i.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}s.V_SHAPE_ATTRIBUTES=(e,i)=>({id:"_x0000_s"+(1025+i),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),l.exports=s},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"v:textbox"}conversionUnit(r,n,s){return`${parseFloat(r)*n.toFixed(2)}${s}`}reverseConversionUnit(r){return(r||"").split(",").map(n=>Number(parseFloat(this.conversionUnit(parseFloat(n),.1,"")).toFixed(2)))}render(r,n){const s={style:"mso-direction-alt:auto"};if(n&&n.note){let{inset:e}=n.note&&n.note.margins;Array.isArray(e)&&(e=e.map(i=>this.conversionUnit(i,10,"mm")).join(",")),e&&(s.inset=e)}r.openNode("v:textbox",s),r.leafNode("div",{style:"text-align:left"}),r.closeNode()}parseOpen(r){switch(r.name){case this.tag:return this.model={inset:this.reverseConversionUnit(r.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(r){switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(t,l,c){const o=t("./base-xform");l.exports=class extends o{createNewModel(r){return{}}parseOpen(r){return this.parser=this.parser||this.map[r.name],this.parser?(this.parser.parseOpen(r),!0):r.name===this.tag&&(this.model=this.createNewModel(r),!0)}parseText(r){this.parser&&this.parser.parseText(r)}onParserClose(r,n){this.model[r]=n.model}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.onParserClose(r,this.parser),this.parser=void 0),!0):r!==this.tag}}},{"./base-xform":32}],49:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{render(r,n){r.openNode("HeadingPairs"),r.openNode("vt:vector",{size:2,baseType:"variant"}),r.openNode("vt:variant"),r.leafNode("vt:lpstr",void 0,"Worksheets"),r.closeNode(),r.openNode("vt:variant"),r.leafNode("vt:i4",void 0,n.length),r.closeNode(),r.closeNode(),r.closeNode()}parseOpen(r){return r.name==="HeadingPairs"}parseText(){}parseClose(r){return r!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{render(r,n){r.openNode("TitlesOfParts"),r.openNode("vt:vector",{size:n.length,baseType:"lpstr"}),n.forEach(s=>{r.leafNode("vt:lpstr",void 0,s.name)}),r.closeNode(),r.closeNode()}parseOpen(r){return r.name==="TitlesOfParts"}parseText(){}parseClose(r){return r!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(t,l,c){const o=t("../../../utils/xml-stream"),r=t("../base-xform"),n=t("../simple/string-xform"),s=t("./app-heading-pairs-xform"),e=t("./app-titles-of-parts-xform");class i extends r{constructor(){super(),this.map={Company:new n({tag:"Company"}),Manager:new n({tag:"Manager"}),HeadingPairs:new s,TitleOfParts:new e}}render(a,h){a.openXml(o.StdDocAttributes),a.openNode("Properties",i.PROPERTY_ATTRIBUTES),a.leafNode("Application",void 0,"Microsoft Excel"),a.leafNode("DocSecurity",void 0,"0"),a.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(a,h.worksheets),this.map.TitleOfParts.render(a,h.worksheets),this.map.Company.render(a,h.company||""),this.map.Manager.render(a,h.manager),a.leafNode("LinksUpToDate",void 0,"false"),a.leafNode("SharedDoc",void 0,"false"),a.leafNode("HyperlinksChanged",void 0,"false"),a.leafNode("AppVersion",void 0,"16.0300"),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"Properties":return!0;default:return this.parser=this.map[a.name],!!this.parser&&(this.parser.parseOpen(a),!0)}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}i.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3,6}/,"")},i.DateAttrs={"xsi:type":"dcterms:W3CDTF"},i.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},l.exports=i},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(t,l,c){const o=t("../../../utils/xml-stream"),r=t("../base-xform");class n extends r{render(e,i){e.openXml(o.StdDocAttributes),e.openNode("Types",n.PROPERTY_ATTRIBUTES);const u={};(i.media||[]).forEach(a=>{if(a.type==="image"){const h=a.extension;u[h]||(u[h]=!0,e.leafNode("Default",{Extension:h,ContentType:"image/"+h}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),i.worksheets.forEach(a=>{const h=`/xl/worksheets/sheet${a.id}.xml`;e.leafNode("Override",{PartName:h,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),i.sharedStrings&&i.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),i.tables&&i.tables.forEach(a=>{e.leafNode("Override",{PartName:"/xl/tables/"+a.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),i.drawings&&i.drawings.forEach(a=>{e.leafNode("Override",{PartName:`/xl/drawings/${a.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),i.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),i.commentRefs.forEach(a=>{let{commentName:h}=a;e.leafNode("Override",{PartName:`/xl/${h}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}n.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},l.exports=n},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(t,l,c){const o=t("../../../utils/xml-stream"),r=t("../base-xform"),n=t("../simple/date-xform"),s=t("../simple/string-xform"),e=t("../simple/integer-xform");class i extends r{constructor(){super(),this.map={"dc:creator":new s({tag:"dc:creator"}),"dc:title":new s({tag:"dc:title"}),"dc:subject":new s({tag:"dc:subject"}),"dc:description":new s({tag:"dc:description"}),"dc:identifier":new s({tag:"dc:identifier"}),"dc:language":new s({tag:"dc:language"}),"cp:keywords":new s({tag:"cp:keywords"}),"cp:category":new s({tag:"cp:category"}),"cp:lastModifiedBy":new s({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new n({tag:"cp:lastPrinted",format:i.DateFormat}),"cp:revision":new e({tag:"cp:revision"}),"cp:version":new s({tag:"cp:version"}),"cp:contentStatus":new s({tag:"cp:contentStatus"}),"cp:contentType":new s({tag:"cp:contentType"}),"dcterms:created":new n({tag:"dcterms:created",attrs:i.DateAttrs,format:i.DateFormat}),"dcterms:modified":new n({tag:"dcterms:modified",attrs:i.DateAttrs,format:i.DateFormat})}}render(a,h){a.openXml(o.StdDocAttributes),a.openNode("cp:coreProperties",i.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(a,h.creator),this.map["dc:title"].render(a,h.title),this.map["dc:subject"].render(a,h.subject),this.map["dc:description"].render(a,h.description),this.map["dc:identifier"].render(a,h.identifier),this.map["dc:language"].render(a,h.language),this.map["cp:keywords"].render(a,h.keywords),this.map["cp:category"].render(a,h.category),this.map["cp:lastModifiedBy"].render(a,h.lastModifiedBy),this.map["cp:lastPrinted"].render(a,h.lastPrinted),this.map["cp:revision"].render(a,h.revision),this.map["cp:version"].render(a,h.version),this.map["cp:contentStatus"].render(a,h.contentStatus),this.map["cp:contentType"].render(a,h.contentType),this.map["dcterms:created"].render(a,h.created),this.map["dcterms:modified"].render(a,h.modified),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[a.name],this.parser)return this.parser.parseOpen(a),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+a)}}}i.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3}/,"")},i.DateAttrs={"xsi:type":"dcterms:W3CDTF"},i.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},l.exports=i},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{render(r,n){r.leafNode("Relationship",n)}parseOpen(r){switch(r.name){case"Relationship":return this.model=r.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(t,l,c){const o=t("../../../utils/xml-stream"),r=t("../base-xform"),n=t("./relationship-xform");class s extends r{constructor(){super(),this.map={Relationship:new n}}render(i,u){u=u||this._values,i.openXml(o.StdDocAttributes),i.openNode("Relationships",s.RELATIONSHIPS_ATTRIBUTES),u.forEach(a=>{this.map.Relationship.render(i,a)}),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[i.name],this.parser)return this.parser.parseOpen(i),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(i))}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(i){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+i)}}}s.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},l.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset(),this.model={range:{editAs:r.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(r){this.parser&&this.parser.parseText(r)}reconcilePicture(r,n){if(r&&r.rId){const s=n.rels[r.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(s){const e=s[1],i=n.mediaIndex[e];return n.media[i]}}}}},{"../base-xform":32}],57:[function(t,l,c){const o=t("../base-xform"),r=t("./blip-xform");l.exports=class extends o{constructor(){super(),this.map={"a:blip":new r}}get tag(){return"xdr:blipFill"}render(n,s){n.openNode(this.tag),this.map["a:blip"].render(n,s),n.openNode("a:stretch"),n.leafNode("a:fillRect"),n.closeNode(),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(){}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"a:blip"}render(r,n){r.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":n.rId,cstate:"print"})}parseOpen(r){switch(r.name){case this.tag:return this.model={rId:r.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(r){switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"xdr:cNvPicPr"}render(r){r.openNode(this.tag),r.leafNode("a:picLocks",{noChangeAspect:"1"}),r.closeNode()}parseOpen(r){switch(r.name){case this.tag:default:return!0}}parseText(){}parseClose(r){switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(t,l,c){const o=t("../base-xform"),r=t("./hlink-click-xform"),n=t("./ext-lst-xform");l.exports=class extends o{constructor(){super(),this.map={"a:hlinkClick":new r,"a:extLst":new n}}get tag(){return"xdr:cNvPr"}render(s,e){s.openNode(this.tag,{id:e.index,name:"Picture "+e.index}),this.map["a:hlinkClick"].render(s,e),this.map["a:extLst"].render(s,e),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(){}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(t,l,c){const o=t("../base-xform"),r=t("../simple/integer-xform");l.exports=class extends o{constructor(n){super(),this.tag=n.tag,this.map={"xdr:col":new r({tag:"xdr:col",zero:!0}),"xdr:colOff":new r({tag:"xdr:colOff",zero:!0}),"xdr:row":new r({tag:"xdr:row",zero:!0}),"xdr:rowOff":new r({tag:"xdr:rowOff",zero:!0})}}render(n,s){n.openNode(this.tag),this.map["xdr:col"].render(n,s.nativeCol),this.map["xdr:colOff"].render(n,s.nativeColOff),this.map["xdr:row"].render(n,s.nativeRow),this.map["xdr:rowOff"].render(n,s.nativeRowOff),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset();break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(t,l,c){const o=t("../../../utils/col-cache"),r=t("../../../utils/xml-stream"),n=t("../base-xform"),s=t("./two-cell-anchor-xform"),e=t("./one-cell-anchor-xform");class i extends n{constructor(){super(),this.map={"xdr:twoCellAnchor":new s,"xdr:oneCellAnchor":new e}}prepare(a){a.anchors.forEach((h,p)=>{h.anchorType=(function(m){return(typeof m.range=="string"?o.decode(m.range):m.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"})(h),this.map[h.anchorType].prepare(h,{index:p})})}get tag(){return"xdr:wsDr"}render(a,h){a.openXml(r.StdDocAttributes),a.openNode(this.tag,i.DRAWING_ATTRIBUTES),h.anchors.forEach(p=>{this.map[p.anchorType].render(a,p)}),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(a){case this.tag:return!1;default:return!0}}reconcile(a,h){a.anchors.forEach(p=>{p.br?this.map["xdr:twoCellAnchor"].reconcile(p,h):this.map["xdr:oneCellAnchor"].reconcile(p,h)})}}i.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},l.exports=i},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"a:extLst"}render(r){r.openNode(this.tag),r.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),r.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),r.closeNode(),r.closeNode()}parseOpen(r){switch(r.name){case this.tag:default:return!0}}parseText(){}parseClose(r){switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{constructor(r){super(),this.tag=r.tag,this.map={}}render(r,n){r.openNode(this.tag);const s=Math.floor(9525*n.width),e=Math.floor(9525*n.height);r.addAttribute("cx",s),r.addAttribute("cy",e),r.closeNode()}parseOpen(r){return r.name===this.tag&&(this.model={width:parseInt(r.attributes.cx||"0",10)/9525,height:parseInt(r.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"a:hlinkClick"}render(r,n){n.hyperlinks&&n.hyperlinks.rId&&r.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":n.hyperlinks.rId,tooltip:n.hyperlinks.tooltip})}parseOpen(r){switch(r.name){case this.tag:return this.model={hyperlinks:{rId:r.attributes["r:id"],tooltip:r.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(t,l,c){const o=t("../base-xform"),r=t("./c-nv-pr-xform"),n=t("./c-nv-pic-pr-xform");l.exports=class extends o{constructor(){super(),this.map={"xdr:cNvPr":new r,"xdr:cNvPicPr":new n}}get tag(){return"xdr:nvPicPr"}render(s,e){s.openNode(this.tag),this.map["xdr:cNvPr"].render(s,e),this.map["xdr:cNvPicPr"].render(s,e),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(){}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(t,l,c){const o=t("./base-cell-anchor-xform"),r=t("../static-xform"),n=t("./cell-position-xform"),s=t("./ext-xform"),e=t("./pic-xform");l.exports=class extends o{constructor(){super(),this.map={"xdr:from":new n({tag:"xdr:from"}),"xdr:ext":new s({tag:"xdr:ext"}),"xdr:pic":new e,"xdr:clientData":new r({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(i,u){this.map["xdr:pic"].prepare(i.picture,u)}render(i,u){i.openNode(this.tag,{editAs:u.range.editAs||"oneCell"}),this.map["xdr:from"].render(i,u.range.tl),this.map["xdr:ext"].render(i,u.range.ext),this.map["xdr:pic"].render(i,u.picture),this.map["xdr:clientData"].render(i,{}),i.closeNode()}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(i,u){i.medium=this.reconcilePicture(i.picture,u)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(t,l,c){const o=t("../base-xform"),r=t("../static-xform"),n=t("./blip-fill-xform"),s=t("./nv-pic-pr-xform"),e=t("./sp-pr");l.exports=class extends o{constructor(){super(),this.map={"xdr:nvPicPr":new s,"xdr:blipFill":new n,"xdr:spPr":new r(e)}}get tag(){return"xdr:pic"}prepare(i,u){i.index=u.index+1}render(i,u){i.openNode(this.tag),this.map["xdr:nvPicPr"].render(i,u),this.map["xdr:blipFill"].render(i,u),this.map["xdr:spPr"].render(i,u),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:this.reset();break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(){}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(t,l,c){l.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(t,l,c){const o=t("./base-cell-anchor-xform"),r=t("../static-xform"),n=t("./cell-position-xform"),s=t("./pic-xform");l.exports=class extends o{constructor(){super(),this.map={"xdr:from":new n({tag:"xdr:from"}),"xdr:to":new n({tag:"xdr:to"}),"xdr:pic":new s,"xdr:clientData":new r({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,i){this.map["xdr:pic"].prepare(e.picture,i)}render(e,i){e.openNode(this.tag,{editAs:i.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,i.range.tl),this.map["xdr:to"].render(e,i.range.br),this.map["xdr:pic"].render(e,i.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(e,i){e.medium=this.reconcilePicture(e.picture,i)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(t,l,c){const o=t("./base-xform");l.exports=class extends o{constructor(r){super(),this.tag=r.tag,this.always=!!r.always,this.count=r.count,this.empty=r.empty,this.$count=r.$count||"count",this.$=r.$,this.childXform=r.childXform,this.maxItems=r.maxItems}prepare(r,n){const{childXform:s}=this;r&&r.forEach((e,i)=>{n.index=i,s.prepare(e,n)})}render(r,n){if(this.always||n&&n.length){r.openNode(this.tag,this.$),this.count&&r.addAttribute(this.$count,n&&n.length||0);const{childXform:s}=this;(n||[]).forEach((e,i)=>{s.render(r,e,i)}),r.closeNode()}else this.empty&&r.leafNode(this.tag)}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(r)&&(this.parser=this.childXform,!0)}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(r,n){if(r){const{childXform:s}=this;r.forEach(e=>{s.reconcile(e,n)})}}}},{"./base-xform":32}],72:[function(t,l,c){const o=t("../../../utils/col-cache"),r=t("../base-xform");l.exports=class extends r{get tag(){return"autoFilter"}render(n,s){if(s)if(typeof s=="string")n.leafNode("autoFilter",{ref:s});else{const e=function(a){return typeof a=="string"?a:o.getAddress(a.row,a.column).address},i=e(s.from),u=e(s.to);i&&u&&n.leafNode("autoFilter",{ref:`${i}:${u}`})}}parseOpen(n){n.name==="autoFilter"&&(this.model=n.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(t,l,c){const o=t("../../../utils/utils"),r=t("../base-xform"),n=t("../../../doc/range"),s=t("../../../doc/enums"),e=t("../strings/rich-text-xform");function i(u){if(u==null)return s.ValueType.Null;if(u instanceof String||typeof u=="string")return s.ValueType.String;if(typeof u=="number")return s.ValueType.Number;if(typeof u=="boolean")return s.ValueType.Boolean;if(u instanceof Date)return s.ValueType.Date;if(u.text&&u.hyperlink)return s.ValueType.Hyperlink;if(u.formula)return s.ValueType.Formula;if(u.error)return s.ValueType.Error;throw new Error("I could not understand type of value")}l.exports=class extends r{constructor(){super(),this.richTextXForm=new e}get tag(){return"c"}prepare(u,a){const h=a.styles.addStyleModel(u.style||{},(function(p){switch(p.type){case s.ValueType.Formula:return i(p.result);default:return p.type}})(u));switch(h&&(u.styleId=h),u.comment&&a.comments.push({...u.comment,ref:u.address}),u.type){case s.ValueType.String:case s.ValueType.RichText:a.sharedStrings&&(u.ssId=a.sharedStrings.add(u.value));break;case s.ValueType.Date:a.date1904&&(u.date1904=!0);break;case s.ValueType.Hyperlink:a.sharedStrings&&u.text!==void 0&&u.text!==null&&(u.ssId=a.sharedStrings.add(u.text)),a.hyperlinks.push({address:u.address,target:u.hyperlink,tooltip:u.tooltip});break;case s.ValueType.Merge:a.merges.add(u);break;case s.ValueType.Formula:if(a.date1904&&(u.date1904=!0),u.shareType==="shared"&&(u.si=a.siFormulae++),u.formula)a.formulae[u.address]=u;else if(u.sharedFormula){const p=a.formulae[u.sharedFormula];if(!p)throw new Error("Shared Formula master must exist above and or left of clone for cell "+u.address);p.si===void 0?(p.shareType="shared",p.si=a.siFormulae++,p.range=new n(p.address,u.address)):p.range&&p.range.expandToAddress(u.address),u.si=p.si}}}renderFormula(u,a){let h=null;switch(a.shareType){case"shared":h={t:"shared",ref:a.ref||a.range.range,si:a.si};break;case"array":h={t:"array",ref:a.ref};break;default:a.si!==void 0&&(h={t:"shared",si:a.si})}switch(i(a.result)){case s.ValueType.Null:u.leafNode("f",h,a.formula);break;case s.ValueType.String:u.addAttribute("t","str"),u.leafNode("f",h,a.formula),u.leafNode("v",null,a.result);break;case s.ValueType.Number:u.leafNode("f",h,a.formula),u.leafNode("v",null,a.result);break;case s.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("f",h,a.formula),u.leafNode("v",null,a.result?1:0);break;case s.ValueType.Error:u.addAttribute("t","e"),u.leafNode("f",h,a.formula),u.leafNode("v",null,a.result.error);break;case s.ValueType.Date:u.leafNode("f",h,a.formula),u.leafNode("v",null,o.dateToExcel(a.result,a.date1904));break;default:throw new Error("I could not understand type of value")}}render(u,a){if(a.type!==s.ValueType.Null||a.styleId){switch(u.openNode("c"),u.addAttribute("r",a.address),a.styleId&&u.addAttribute("s",a.styleId),a.type){case s.ValueType.Null:break;case s.ValueType.Number:u.leafNode("v",null,a.value);break;case s.ValueType.Boolean:u.addAttribute("t","b"),u.leafNode("v",null,a.value?"1":"0");break;case s.ValueType.Error:u.addAttribute("t","e"),u.leafNode("v",null,a.value.error);break;case s.ValueType.String:case s.ValueType.RichText:a.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,a.ssId)):a.value&&a.value.richText?(u.addAttribute("t","inlineStr"),u.openNode("is"),a.value.richText.forEach(h=>{this.richTextXForm.render(u,h)}),u.closeNode("is")):(u.addAttribute("t","str"),u.leafNode("v",null,a.value));break;case s.ValueType.Date:u.leafNode("v",null,o.dateToExcel(a.value,a.date1904));break;case s.ValueType.Hyperlink:a.ssId!==void 0?(u.addAttribute("t","s"),u.leafNode("v",null,a.ssId)):(u.addAttribute("t","str"),u.leafNode("v",null,a.text));break;case s.ValueType.Formula:this.renderFormula(u,a);break;case s.ValueType.Merge:}u.closeNode()}}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"c":return this.model={address:u.attributes.r},this.t=u.attributes.t,u.attributes.s&&(this.model.styleId=parseInt(u.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=u.attributes.si,this.model.shareType=u.attributes.t,this.model.ref=u.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){if(this.parser)this.parser.parseText(u);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+u:u;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+u:u:this.model.value=this.model.value?this.model.value+u:u}}parseClose(u){switch(u){case"c":{const{model:a}=this;if(a.formula||a.shareType)a.type=s.ValueType.Formula,a.value&&(this.t==="str"?a.result=o.xmlDecode(a.value):this.t==="b"?a.result=parseInt(a.value,10)!==0:this.t==="e"?a.result={error:a.value}:a.result=parseFloat(a.value),a.value=void 0);else if(a.value!==void 0)switch(this.t){case"s":a.type=s.ValueType.String,a.value=parseInt(a.value,10);break;case"str":a.type=s.ValueType.String,a.value=o.xmlDecode(a.value);break;case"inlineStr":a.type=s.ValueType.String;break;case"b":a.type=s.ValueType.Boolean,a.value=parseInt(a.value,10)!==0;break;case"e":a.type=s.ValueType.Error,a.value={error:a.value};break;default:a.type=s.ValueType.Number,a.value=parseFloat(a.value)}else a.styleId?a.type=s.ValueType.Null:a.type=s.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(u),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(u),!0)}}reconcile(u,a){const h=u.styleId&&a.styles&&a.styles.getStyleModel(u.styleId);switch(h&&(u.style=h),u.styleId!==void 0&&(u.styleId=void 0),u.type){case s.ValueType.String:typeof u.value=="number"&&a.sharedStrings&&(u.value=a.sharedStrings.getString(u.value)),u.value.richText&&(u.type=s.ValueType.RichText);break;case s.ValueType.Number:h&&o.isDateFmt(h.numFmt)&&(u.type=s.ValueType.Date,u.value=o.excelToDate(u.value,a.date1904));break;case s.ValueType.Formula:u.result!==void 0&&h&&o.isDateFmt(h.numFmt)&&(u.result=o.excelToDate(u.result,a.date1904)),u.shareType==="shared"&&(u.ref?a.formulae[u.si]=u.address:(u.sharedFormula=a.formulae[u.si],delete u.shareType),delete u.si)}const p=a.hyperlinkMap[u.address];p&&(u.type===s.ValueType.Formula?(u.text=u.result,u.result=void 0):(u.text=u.value,u.value=void 0),u.type=s.ValueType.Hyperlink,u.hyperlink=p);const m=a.commentsMap&&a.commentsMap[u.address];m&&(u.comment=m)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(t,l,c){const o=t("../../base-xform");l.exports=class extends o{get tag(){return"x14:cfIcon"}render(r,n){r.leafNode(this.tag,{iconSet:n.iconSet,iconId:n.iconId})}parseOpen(r){let{attributes:n}=r;this.model={iconSet:n.iconSet,iconId:o.toIntValue(n.iconId)}}parseClose(r){return r!==this.tag}}},{"../../base-xform":32}],75:[function(t,l,c){const{v4:o}=t("uuid"),r=t("../../base-xform"),n=t("../../composite-xform"),s=t("./databar-ext-xform"),e=t("./icon-set-ext-xform"),i={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class u extends n{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new s,"x14:iconSet":this.iconSetXform=new e}}get tag(){return"x14:cfRule"}static isExt(h){return h.type==="dataBar"?s.isExt(h):!(h.type!=="iconSet"||!h.custom&&!i[h.iconSet])}prepare(h){u.isExt(h)&&(h.x14Id=`{${o()}}`.toUpperCase())}render(h,p){if(u.isExt(p))switch(p.type){case"dataBar":this.renderDataBar(h,p);break;case"iconSet":this.renderIconSet(h,p)}}renderDataBar(h,p){h.openNode(this.tag,{type:"dataBar",id:p.x14Id}),this.databarXform.render(h,p),h.closeNode()}renderIconSet(h,p){h.openNode(this.tag,{type:"iconSet",priority:p.priority,id:p.x14Id||`{${o()}}`}),this.iconSetXform.render(h,p),h.closeNode()}createNewModel(h){let{attributes:p}=h;return{type:p.type,x14Id:p.id,priority:r.toIntValue(p.priority)}}onParserClose(h,p){Object.assign(this.model,p.model)}}l.exports=u},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(t,l,c){const o=t("../../composite-xform"),r=t("./f-ext-xform");l.exports=class extends o{constructor(){super(),this.map={"xm:f":this.fExtXform=new r}}get tag(){return"x14:cfvo"}render(n,s){n.openNode(this.tag,{type:s.type}),s.value!==void 0&&this.fExtXform.render(n,s.value),n.closeNode()}createNewModel(n){return{type:n.attributes.type}}onParserClose(n,s){switch(n){case"xm:f":this.model.value=s.model?parseFloat(s.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(t,l,c){const o=t("../../composite-xform"),r=t("./sqref-ext-xform"),n=t("./cf-rule-ext-xform");l.exports=class extends o{constructor(){super(),this.map={"xm:sqref":this.sqRef=new r,"x14:cfRule":this.cfRule=new n}}get tag(){return"x14:conditionalFormatting"}prepare(s,e){s.rules.forEach(i=>{this.cfRule.prepare(i,e)})}render(s,e){e.rules.some(n.isExt)&&(s.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),e.rules.filter(n.isExt).forEach(i=>this.cfRule.render(s,i)),this.sqRef.render(s,e.ref),s.closeNode())}createNewModel(){return{rules:[]}}onParserClose(s,e){switch(s){case"xm:sqref":this.model.ref=e.model;break;case"x14:cfRule":this.model.rules.push(e.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(t,l,c){const o=t("../../composite-xform"),r=t("./cf-rule-ext-xform"),n=t("./conditional-formatting-ext-xform");l.exports=class extends o{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new n}}get tag(){return"x14:conditionalFormattings"}hasContent(s){return s.hasExtContent===void 0&&(s.hasExtContent=s.some(e=>e.rules.some(r.isExt))),s.hasExtContent}prepare(s,e){s.forEach(i=>{this.cfXform.prepare(i,e)})}render(s,e){this.hasContent(e)&&(s.openNode(this.tag),e.forEach(i=>this.cfXform.render(s,i)),s.closeNode())}createNewModel(){return[]}onParserClose(s,e){this.model.push(e.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(t,l,c){const o=t("../../base-xform"),r=t("../../composite-xform"),n=t("../../style/color-xform"),s=t("./cfvo-ext-xform");l.exports=class extends r{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new s,"x14:borderColor":this.borderColorXform=new n("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new n("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new n("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new n("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,i){e.openNode(this.tag,{minLength:o.toIntAttribute(i.minLength,0,!0),maxLength:o.toIntAttribute(i.maxLength,100,!0),border:o.toBoolAttribute(i.border,!1),gradient:o.toBoolAttribute(i.gradient,!0),negativeBarColorSameAsPositive:o.toBoolAttribute(i.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:o.toBoolAttribute(i.negativeBarBorderColorSameAsPositive,!0),axisPosition:o.toAttribute(i.axisPosition,"auto"),direction:o.toAttribute(i.direction,"leftToRight")}),i.cfvo.forEach(u=>{this.cfvoXform.render(e,u)}),this.borderColorXform.render(e,i.borderColor),this.negativeBorderColorXform.render(e,i.negativeBorderColor),this.negativeFillColorXform.render(e,i.negativeFillColor),this.axisColorXform.render(e,i.axisColor),e.closeNode()}createNewModel(e){let{attributes:i}=e;return{cfvo:[],minLength:o.toIntValue(i.minLength,0),maxLength:o.toIntValue(i.maxLength,100),border:o.toBoolValue(i.border,!1),gradient:o.toBoolValue(i.gradient,!0),negativeBarColorSameAsPositive:o.toBoolValue(i.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:o.toBoolValue(i.negativeBarBorderColorSameAsPositive,!0),axisPosition:o.toStringValue(i.axisPosition,"auto"),direction:o.toStringValue(i.direction,"leftToRight")}}onParserClose(e,i){const[,u]=e.split(":");switch(u){case"cfvo":this.model.cfvo.push(i.model);break;default:this.model[u]=i.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(t,l,c){const o=t("../../base-xform");l.exports=class extends o{get tag(){return"xm:f"}render(r,n){r.leafNode(this.tag,null,n)}parseOpen(){this.model=""}parseText(r){this.model+=r}parseClose(r){return r!==this.tag}}},{"../../base-xform":32}],81:[function(t,l,c){const o=t("../../base-xform"),r=t("../../composite-xform"),n=t("./cfvo-ext-xform"),s=t("./cf-icon-ext-xform");l.exports=class extends r{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new n,"x14:cfIcon":this.cfIconXform=new s}}get tag(){return"x14:iconSet"}render(e,i){e.openNode(this.tag,{iconSet:o.toStringAttribute(i.iconSet),reverse:o.toBoolAttribute(i.reverse,!1),showValue:o.toBoolAttribute(i.showValue,!0),custom:o.toBoolAttribute(i.icons,!1)}),i.cfvo.forEach(u=>{this.cfvoXform.render(e,u)}),i.icons&&i.icons.forEach((u,a)=>{u.iconId=a,this.cfIconXform.render(e,u)}),e.closeNode()}createNewModel(e){let{attributes:i}=e;return{cfvo:[],iconSet:o.toStringValue(i.iconSet,"3TrafficLights"),reverse:o.toBoolValue(i.reverse,!1),showValue:o.toBoolValue(i.showValue,!0)}}onParserClose(e,i){const[,u]=e.split(":");switch(u){case"cfvo":this.model.cfvo.push(i.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(i.model);break;default:this.model[u]=i.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(t,l,c){const o=t("../../base-xform");l.exports=class extends o{get tag(){return"xm:sqref"}render(r,n){r.leafNode(this.tag,null,n)}parseOpen(){this.model=""}parseText(r){this.model+=r}parseClose(r){return r!==this.tag}}},{"../../base-xform":32}],83:[function(t,l,c){const o=t("../../base-xform"),r=t("../../composite-xform"),n=t("../../../../doc/range"),s=t("./databar-xform"),e=t("./ext-lst-ref-xform"),i=t("./formula-xform"),u=t("./color-scale-xform"),a=t("./icon-set-xform"),h={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},p=d=>{const{type:b,operator:g}=d;switch(b){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:b};default:return{type:b,operator:g}}};class m extends r{constructor(){super(),this.map={dataBar:this.databarXform=new s,extLst:this.extLstRefXform=new e,formula:this.formulaXform=new i,colorScale:this.colorScaleXform=new u,iconSet:this.iconSetXform=new a}}get tag(){return"cfRule"}static isPrimitive(b){return b.type!=="iconSet"||!b.custom&&!h[b.iconSet]}render(b,g){switch(g.type){case"expression":this.renderExpression(b,g);break;case"cellIs":this.renderCellIs(b,g);break;case"top10":this.renderTop10(b,g);break;case"aboveAverage":this.renderAboveAverage(b,g);break;case"dataBar":this.renderDataBar(b,g);break;case"colorScale":this.renderColorScale(b,g);break;case"iconSet":this.renderIconSet(b,g);break;case"containsText":this.renderText(b,g);break;case"timePeriod":this.renderTimePeriod(b,g)}}renderExpression(b,g){b.openNode(this.tag,{type:"expression",dxfId:g.dxfId,priority:g.priority}),this.formulaXform.render(b,g.formulae[0]),b.closeNode()}renderCellIs(b,g){b.openNode(this.tag,{type:"cellIs",dxfId:g.dxfId,priority:g.priority,operator:g.operator}),g.formulae.forEach(S=>{this.formulaXform.render(b,S)}),b.closeNode()}renderTop10(b,g){b.leafNode(this.tag,{type:"top10",dxfId:g.dxfId,priority:g.priority,percent:o.toBoolAttribute(g.percent,!1),bottom:o.toBoolAttribute(g.bottom,!1),rank:o.toIntValue(g.rank,10,!0)})}renderAboveAverage(b,g){b.leafNode(this.tag,{type:"aboveAverage",dxfId:g.dxfId,priority:g.priority,aboveAverage:o.toBoolAttribute(g.aboveAverage,!0)})}renderDataBar(b,g){b.openNode(this.tag,{type:"dataBar",priority:g.priority}),this.databarXform.render(b,g),this.extLstRefXform.render(b,g),b.closeNode()}renderColorScale(b,g){b.openNode(this.tag,{type:"colorScale",priority:g.priority}),this.colorScaleXform.render(b,g),b.closeNode()}renderIconSet(b,g){m.isPrimitive(g)&&(b.openNode(this.tag,{type:"iconSet",priority:g.priority}),this.iconSetXform.render(b,g),b.closeNode())}renderText(b,g){b.openNode(this.tag,{type:g.operator,dxfId:g.dxfId,priority:g.priority,operator:o.toStringAttribute(g.operator,"containsText")});const S=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const I=new n(C.ref),{tl:D}=I;switch(C.operator){case"containsText":return`NOT(ISERROR(SEARCH("${C.text}",${D})))`;case"containsBlanks":return`LEN(TRIM(${D}))=0`;case"notContainsBlanks":return`LEN(TRIM(${D}))>0`;case"containsErrors":return`ISERROR(${D})`;case"notContainsErrors":return`NOT(ISERROR(${D}))`;default:return}})(g);S&&this.formulaXform.render(b,S),b.closeNode()}renderTimePeriod(b,g){b.openNode(this.tag,{type:"timePeriod",dxfId:g.dxfId,priority:g.priority,timePeriod:g.timePeriod});const S=(C=>{if(C.formulae&&C.formulae[0])return C.formulae[0];const I=new n(C.ref),{tl:D}=I;switch(C.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${D},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${D},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${D},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${D},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${D},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${D},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${D},1)=TODAY()-1`;case"today":return`FLOOR(${D},1)=TODAY()`;case"tomorrow":return`FLOOR(${D},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${D},1)<=6,FLOOR(${D},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${D})=MONTH(EDATE(TODAY(),0-1)),YEAR(${D})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${D})=MONTH(TODAY()),YEAR(${D})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${D})=MONTH(EDATE(TODAY(),0+1)),YEAR(${D})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(g);S&&this.formulaXform.render(b,S),b.closeNode()}createNewModel(b){let{attributes:g}=b;return{...p(g),dxfId:o.toIntValue(g.dxfId),priority:o.toIntValue(g.priority),timePeriod:g.timePeriod,percent:o.toBoolValue(g.percent),bottom:o.toBoolValue(g.bottom),rank:o.toIntValue(g.rank),aboveAverage:o.toBoolValue(g.aboveAverage)}}onParserClose(b,g){switch(b){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,g.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(g.model)}}}l.exports=m},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(t,l,c){const o=t("../../base-xform");l.exports=class extends o{get tag(){return"cfvo"}render(r,n){r.leafNode(this.tag,{type:n.type,val:n.value})}parseOpen(r){this.model={type:r.attributes.type,value:o.toFloatValue(r.attributes.val)}}parseClose(r){return r!==this.tag}}},{"../../base-xform":32}],85:[function(t,l,c){const o=t("../../composite-xform"),r=t("../../style/color-xform"),n=t("./cfvo-xform");l.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new n,color:this.colorXform=new r}}get tag(){return"colorScale"}render(s,e){s.openNode(this.tag),e.cfvo.forEach(i=>{this.cfvoXform.render(s,i)}),e.color.forEach(i=>{this.colorXform.render(s,i)}),s.closeNode()}createNewModel(s){return{cfvo:[],color:[]}}onParserClose(s,e){this.model[s].push(e.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(t,l,c){const o=t("../../composite-xform"),r=t("./cf-rule-xform");l.exports=class extends o{constructor(){super(),this.map={cfRule:new r}}get tag(){return"conditionalFormatting"}render(n,s){s.rules.some(r.isPrimitive)&&(n.openNode(this.tag,{sqref:s.ref}),s.rules.forEach(e=>{r.isPrimitive(e)&&(e.ref=s.ref,this.map.cfRule.render(n,e))}),n.closeNode())}createNewModel(n){let{attributes:s}=n;return{ref:s.sqref,rules:[]}}onParserClose(n,s){this.model.rules.push(s.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(t,l,c){const o=t("../../base-xform"),r=t("./conditional-formatting-xform");l.exports=class extends o{constructor(){super(),this.cfXform=new r}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(n,s){let e=n.reduce((i,u)=>Math.max(i,...u.rules.map(a=>a.priority||0)),1);n.forEach(i=>{i.rules.forEach(u=>{u.priority||(u.priority=e++),u.style&&(u.dxfId=s.styles.addDxfStyle(u.style))})})}render(n,s){s.forEach(e=>{this.cfXform.render(n,e)})}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(!!this.parser.parseClose(n)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(n,s){n.forEach(e=>{e.rules.forEach(i=>{i.dxfId!==void 0&&(i.style=s.styles.getDxfStyle(i.dxfId),delete i.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(t,l,c){const o=t("../../composite-xform"),r=t("../../style/color-xform"),n=t("./cfvo-xform");l.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new n,color:this.colorXform=new r}}get tag(){return"dataBar"}render(s,e){s.openNode(this.tag),e.cfvo.forEach(i=>{this.cfvoXform.render(s,i)}),this.colorXform.render(s,e.color),s.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(s,e){switch(s){case"cfvo":this.model.cfvo.push(e.model);break;case"color":this.model.color=e.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(t,l,c){const o=t("../../base-xform"),r=t("../../composite-xform");class n extends o{get tag(){return"x14:id"}render(i,u){i.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}class s extends r{constructor(){super(),this.map={"x14:id":this.idXform=new n}}get tag(){return"ext"}render(i,u){i.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(i,u.x14Id),i.closeNode()}createNewModel(){return{}}onParserClose(i,u){this.model.x14Id=u.model}}l.exports=class extends r{constructor(){super(),this.map={ext:new s}}get tag(){return"extLst"}render(e,i){e.openNode(this.tag),this.map.ext.render(e,i),e.closeNode()}createNewModel(){return{}}onParserClose(e,i){Object.assign(this.model,i.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(t,l,c){const o=t("../../base-xform");l.exports=class extends o{get tag(){return"formula"}render(r,n){r.leafNode(this.tag,null,n)}parseOpen(){this.model=""}parseText(r){this.model+=r}parseClose(r){return r!==this.tag}}},{"../../base-xform":32}],91:[function(t,l,c){const o=t("../../base-xform"),r=t("../../composite-xform"),n=t("./cfvo-xform");l.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new n}}get tag(){return"iconSet"}render(s,e){s.openNode(this.tag,{iconSet:o.toStringAttribute(e.iconSet,"3TrafficLights"),reverse:o.toBoolAttribute(e.reverse,!1),showValue:o.toBoolAttribute(e.showValue,!0)}),e.cfvo.forEach(i=>{this.cfvoXform.render(s,i)}),s.closeNode()}createNewModel(s){let{attributes:e}=s;return{iconSet:o.toStringValue(e.iconSet,"3TrafficLights"),reverse:o.toBoolValue(e.reverse),showValue:o.toBoolValue(e.showValue),cfvo:[]}}onParserClose(s,e){this.model[s].push(e.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(t,l,c){const o=t("../../../utils/utils"),r=t("../base-xform");l.exports=class extends r{get tag(){return"col"}prepare(n,s){const e=s.styles.addStyleModel(n.style||{});e&&(n.styleId=e)}render(n,s){n.openNode("col"),n.addAttribute("min",s.min),n.addAttribute("max",s.max),s.width&&n.addAttribute("width",s.width),s.styleId&&n.addAttribute("style",s.styleId),s.hidden&&n.addAttribute("hidden","1"),s.bestFit&&n.addAttribute("bestFit","1"),s.outlineLevel&&n.addAttribute("outlineLevel",s.outlineLevel),s.collapsed&&n.addAttribute("collapsed","1"),n.addAttribute("customWidth","1"),n.closeNode()}parseOpen(n){if(n.name==="col"){const s=this.model={min:parseInt(n.attributes.min||"0",10),max:parseInt(n.attributes.max||"0",10),width:n.attributes.width===void 0?void 0:parseFloat(n.attributes.width||"0")};return n.attributes.style&&(s.styleId=parseInt(n.attributes.style,10)),o.parseBoolean(n.attributes.hidden)&&(s.hidden=!0),o.parseBoolean(n.attributes.bestFit)&&(s.bestFit=!0),n.attributes.outlineLevel&&(s.outlineLevel=parseInt(n.attributes.outlineLevel,10)),o.parseBoolean(n.attributes.collapsed)&&(s.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(n,s){n.styleId&&(n.style=s.styles.getStyleModel(n.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../../../utils/utils"),n=t("../../../utils/col-cache"),s=t("../base-xform"),e=t("../../../doc/range");function i(a,h,p,m){const d=h[p];d!==void 0?a[p]=d:m!==void 0&&(a[p]=m)}function u(a,h,p,m){const d=h[p];d!==void 0&&(a[p]=r.parseBoolean(d))}l.exports=class extends s{get tag(){return"dataValidations"}render(a,h){const p=(function(m){const d=o.map(m,(S,C)=>({address:C,dataValidation:S,marked:!1})).sort((S,C)=>o.strcmp(S.address,C.address)),b=o.keyBy(d,"address"),g=(S,C,I)=>{for(let D=0;D<C;D++){const z=n.encodeAddress(S.row+D,I);if(!m[z]||!o.isEqual(m[S.address],m[z]))return!1}return!0};return d.map(S=>{if(!S.marked){const C=n.decodeEx(S.address);if(C.dimensions)return b[C.dimensions].marked=!0,{...S.dataValidation,sqref:S.address};let I=1,D=n.encodeAddress(C.row+I,C.col);for(;m[D]&&o.isEqual(S.dataValidation,m[D]);)I++,D=n.encodeAddress(C.row+I,C.col);let z=1;for(;g(C,I,C.col+z);)z++;for(let P=0;P<I;P++)for(let B=0;B<z;B++)D=n.encodeAddress(C.row+P,C.col+B),b[D].marked=!0;if(I>1||z>1){const P=C.row+(I-1),B=C.col+(z-1);return{...S.dataValidation,sqref:`${S.address}:${n.encodeAddress(P,B)}`}}return{...S.dataValidation,sqref:S.address}}return null}).filter(Boolean)})(h);p.length&&(a.openNode("dataValidations",{count:p.length}),p.forEach(m=>{a.openNode("dataValidation"),m.type!=="any"&&(a.addAttribute("type",m.type),m.operator&&m.type!=="list"&&m.operator!=="between"&&a.addAttribute("operator",m.operator),m.allowBlank&&a.addAttribute("allowBlank","1")),m.showInputMessage&&a.addAttribute("showInputMessage","1"),m.promptTitle&&a.addAttribute("promptTitle",m.promptTitle),m.prompt&&a.addAttribute("prompt",m.prompt),m.showErrorMessage&&a.addAttribute("showErrorMessage","1"),m.errorStyle&&a.addAttribute("errorStyle",m.errorStyle),m.errorTitle&&a.addAttribute("errorTitle",m.errorTitle),m.error&&a.addAttribute("error",m.error),a.addAttribute("sqref",m.sqref),(m.formulae||[]).forEach((d,b)=>{a.openNode("formula"+(b+1)),m.type==="date"?a.writeText(r.dateToExcel(new Date(d))):a.writeText(d),a.closeNode()}),a.closeNode()}),a.closeNode())}parseOpen(a){switch(a.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=a.attributes.sqref;const h={type:a.attributes.type||"any",formulae:[]};switch(a.attributes.type&&u(h,a.attributes,"allowBlank"),u(h,a.attributes,"showInputMessage"),u(h,a.attributes,"showErrorMessage"),h.type){case"any":case"list":case"custom":break;default:i(h,a.attributes,"operator","between")}return i(h,a.attributes,"promptTitle"),i(h,a.attributes,"prompt"),i(h,a.attributes,"errorStyle"),i(h,a.attributes,"errorTitle"),i(h,a.attributes,"error"),this._dataValidation=h,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(a){this._formula&&this._formula.push(a)}parseClose(a){switch(a){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(h=>{h.includes(":")?new e(h).forEachAddress(p=>{this.model[p]=this._dataValidation}):this.model[h]=this._dataValidation}),!0;case"formula1":case"formula2":{let h=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":h=parseInt(h,10);break;case"decimal":h=parseFloat(h);break;case"date":h=r.excelToDate(parseFloat(h))}return this._dataValidation.formulae.push(h),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"dimension"}render(r,n){n&&r.leafNode("dimension",{ref:n})}parseOpen(r){return r.name==="dimension"&&(this.model=r.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"drawing"}render(r,n){n&&r.leafNode(this.tag,{"r:id":n.rId})}parseOpen(r){switch(r.name){case this.tag:return this.model={rId:r.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(t,l,c){const o=t("../composite-xform"),r=t("./cf-ext/conditional-formattings-ext-xform");class n extends o{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new r}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,i){this.conditionalFormattings.prepare(e.conditionalFormattings,i)}render(e,i){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,i.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,i){this.model[e]=i.model}}l.exports=class extends o{constructor(){super(),this.map={ext:this.ext=new n}}get tag(){return"extLst"}prepare(s,e){this.ext.prepare(s,e)}hasContent(s){return this.ext.hasContent(s)}render(s,e){this.hasContent(e)&&(s.openNode("extLst"),this.ext.render(s,e),s.closeNode())}createNewModel(){return{}}onParserClose(s,e){Object.assign(this.model,e.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"headerFooter"}render(r,n){if(n){r.addRollback();let s=!1;r.openNode("headerFooter"),n.differentFirst&&(r.addAttribute("differentFirst","1"),s=!0),n.differentOddEven&&(r.addAttribute("differentOddEven","1"),s=!0),n.oddHeader&&typeof n.oddHeader=="string"&&(r.leafNode("oddHeader",null,n.oddHeader),s=!0),n.oddFooter&&typeof n.oddFooter=="string"&&(r.leafNode("oddFooter",null,n.oddFooter),s=!0),n.evenHeader&&typeof n.evenHeader=="string"&&(r.leafNode("evenHeader",null,n.evenHeader),s=!0),n.evenFooter&&typeof n.evenFooter=="string"&&(r.leafNode("evenFooter",null,n.evenFooter),s=!0),n.firstHeader&&typeof n.firstHeader=="string"&&(r.leafNode("firstHeader",null,n.firstHeader),s=!0),n.firstFooter&&typeof n.firstFooter=="string"&&(r.leafNode("firstFooter",null,n.firstFooter),s=!0),s?(r.closeNode(),r.commit()):r.rollback()}}parseOpen(r){switch(r.name){case"headerFooter":return this.model={},r.attributes.differentFirst&&(this.model.differentFirst=parseInt(r.attributes.differentFirst,0)===1),r.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(r.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(r){switch(this.currentNode){case"oddHeader":this.model.oddHeader=r;break;case"oddFooter":this.model.oddFooter=r;break;case"evenHeader":this.model.evenHeader=r;break;case"evenFooter":this.model.evenFooter=r;break;case"firstHeader":this.model.firstHeader=r;break;case"firstFooter":this.model.firstFooter=r}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"hyperlink"}render(r,n){this.isInternalLink(n)?r.leafNode("hyperlink",{ref:n.address,"r:id":n.rId,tooltip:n.tooltip,location:n.target}):r.leafNode("hyperlink",{ref:n.address,"r:id":n.rId,tooltip:n.tooltip})}parseOpen(r){return r.name==="hyperlink"&&(this.model={address:r.attributes.ref,rId:r.attributes["r:id"],tooltip:r.attributes.tooltip},r.attributes.location&&(this.model.target=r.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(r){return r.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(r.target)}}},{"../base-xform":32}],99:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"mergeCell"}render(r,n){r.leafNode("mergeCell",{ref:n})}parseOpen(r){return r.name==="mergeCell"&&(this.model=r.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../../../doc/range"),n=t("../../../utils/col-cache"),s=t("../../../doc/enums");l.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const i=`${e.master}:${e.address}`;this.merges[e.master]=new r(i)}}get mergeCells(){return o.map(this.merges,e=>e.range)}reconcile(e,i){o.each(e,u=>{const a=n.decode(u);for(let h=a.top;h<=a.bottom;h++){const p=i[h-1];for(let m=a.left;m<=a.right;m++){const d=p.cells[m-1];d?d.type===s.ValueType.Merge&&(d.master=a.tl):p.cells[m]={type:s.ValueType.Null,address:n.encodeAddress(h,m)}}}})}getMasterAddress(e){const i=this.hash[e];return i&&i.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(t,l,c){const o=t("../base-xform"),r=n=>n!==void 0;l.exports=class extends o{get tag(){return"outlinePr"}render(n,s){return!(!s||!r(s.summaryBelow)&&!r(s.summaryRight))&&(n.leafNode(this.tag,{summaryBelow:r(s.summaryBelow)?Number(s.summaryBelow):void 0,summaryRight:r(s.summaryRight)?Number(s.summaryRight):void 0}),!0)}parseOpen(n){return n.name===this.tag&&(this.model={summaryBelow:r(n.attributes.summaryBelow)?!!Number(n.attributes.summaryBelow):void 0,summaryRight:r(n.attributes.summaryRight)?!!Number(n.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"brk"}render(r,n){r.leafNode("brk",n)}parseOpen(r){return r.name==="brk"&&(this.model=r.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../base-xform");l.exports=class extends r{get tag(){return"pageMargins"}render(n,s){if(s){const e={left:s.left,right:s.right,top:s.top,bottom:s.bottom,header:s.header,footer:s.footer};o.some(e,i=>i!==void 0)&&n.leafNode(this.tag,e)}}parseOpen(n){switch(n.name){case this.tag:return this.model={left:parseFloat(n.attributes.left||.7),right:parseFloat(n.attributes.right||.7),top:parseFloat(n.attributes.top||.75),bottom:parseFloat(n.attributes.bottom||.75),header:parseFloat(n.attributes.header||.3),footer:parseFloat(n.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"pageSetUpPr"}render(r,n){return!(!n||!n.fitToPage)&&(r.leafNode(this.tag,{fitToPage:n.fitToPage?"1":void 0}),!0)}parseOpen(r){return r.name===this.tag&&(this.model={fitToPage:r.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../base-xform");function n(u){return u?"1":void 0}function s(u){switch(u){case"overThenDown":return u;default:return}}function e(u){switch(u){case"atEnd":case"asDisplyed":return u;default:return}}function i(u){switch(u){case"dash":case"blank":case"NA":return u;default:return}}l.exports=class extends r{get tag(){return"pageSetup"}render(u,a){if(a){const h={paperSize:a.paperSize,orientation:a.orientation,horizontalDpi:a.horizontalDpi,verticalDpi:a.verticalDpi,pageOrder:s(a.pageOrder),blackAndWhite:n(a.blackAndWhite),draft:n(a.draft),cellComments:e(a.cellComments),errors:i(a.errors),scale:a.scale,fitToWidth:a.fitToWidth,fitToHeight:a.fitToHeight,firstPageNumber:a.firstPageNumber,useFirstPageNumber:n(a.firstPageNumber),usePrinterDefaults:n(a.usePrinterDefaults),copies:a.copies};o.some(h,p=>p!==void 0)&&u.leafNode(this.tag,h)}}parseOpen(u){switch(u.name){case this.tag:return this.model={paperSize:(a=u.attributes.paperSize,a!==void 0?parseInt(a,10):void 0),orientation:u.attributes.orientation||"portrait",horizontalDpi:parseInt(u.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(u.attributes.verticalDpi||"4294967295",10),pageOrder:u.attributes.pageOrder||"downThenOver",blackAndWhite:u.attributes.blackAndWhite==="1",draft:u.attributes.draft==="1",cellComments:u.attributes.cellComments||"None",errors:u.attributes.errors||"displayed",scale:parseInt(u.attributes.scale||"100",10),fitToWidth:parseInt(u.attributes.fitToWidth||"1",10),fitToHeight:parseInt(u.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(u.attributes.firstPageNumber||"1",10),useFirstPageNumber:u.attributes.useFirstPageNumber==="1",usePrinterDefaults:u.attributes.usePrinterDefaults==="1",copies:parseInt(u.attributes.copies||"1",10)},!0;default:return!1}var a}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"picture"}render(r,n){n&&r.leafNode(this.tag,{"r:id":n.rId})}parseOpen(r){switch(r.name){case this.tag:return this.model={rId:r.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../base-xform");function n(s){return s?"1":void 0}l.exports=class extends r{get tag(){return"printOptions"}render(s,e){if(e){const i={headings:n(e.showRowColHeaders),gridLines:n(e.showGridLines),horizontalCentered:n(e.horizontalCentered),verticalCentered:n(e.verticalCentered)};o.some(i,u=>u!==void 0)&&s.leafNode(this.tag,i)}}parseOpen(s){switch(s.name){case this.tag:return this.model={showRowColHeaders:s.attributes.headings==="1",showGridLines:s.attributes.gridLines==="1",horizontalCentered:s.attributes.horizontalCentered==="1",verticalCentered:s.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(t,l,c){const o=t("./page-breaks-xform"),r=t("../list-xform");l.exports=class extends r{constructor(){super({tag:"rowBreaks",count:!0,childXform:new o})}render(n,s){if(s&&s.length){n.openNode(this.tag,this.$),this.count&&(n.addAttribute(this.$count,s.length),n.addAttribute("manualBreakCount",s.length));const{childXform:e}=this;s.forEach(i=>{e.render(n,i)}),n.closeNode()}else this.empty&&n.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(t,l,c){const o=t("../base-xform"),r=t("../../../utils/utils"),n=t("./cell-xform");l.exports=class extends o{constructor(s){super(),this.maxItems=s&&s.maxItems,this.map={c:new n}}get tag(){return"row"}prepare(s,e){const i=e.styles.addStyleModel(s.style);i&&(s.styleId=i);const u=this.map.c;s.cells.forEach(a=>{u.prepare(a,e)})}render(s,e,i){s.openNode("row"),s.addAttribute("r",e.number),e.height&&(s.addAttribute("ht",e.height),s.addAttribute("customHeight","1")),e.hidden&&s.addAttribute("hidden","1"),e.min>0&&e.max>0&&e.min<=e.max&&s.addAttribute("spans",`${e.min}:${e.max}`),e.styleId&&(s.addAttribute("s",e.styleId),s.addAttribute("customFormat","1")),s.addAttribute("x14ac:dyDescent","0.25"),e.outlineLevel&&s.addAttribute("outlineLevel",e.outlineLevel),e.collapsed&&s.addAttribute("collapsed","1");const u=this.map.c;e.cells.forEach(a=>{u.render(s,a,i)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;if(s.name==="row"){this.numRowsSeen+=1;const e=s.attributes.spans?s.attributes.spans.split(":").map(u=>parseInt(u,10)):[void 0,void 0],i=this.model={number:parseInt(s.attributes.r,10),min:e[0],max:e[1],cells:[]};return s.attributes.s&&(i.styleId=parseInt(s.attributes.s,10)),r.parseBoolean(s.attributes.hidden)&&(i.hidden=!0),r.parseBoolean(s.attributes.bestFit)&&(i.bestFit=!0),s.attributes.ht&&(i.height=parseFloat(s.attributes.ht)),s.attributes.outlineLevel&&(i.outlineLevel=parseInt(s.attributes.outlineLevel,10)),r.parseBoolean(s.attributes.collapsed)&&(i.collapsed=!0),!0}return this.parser=this.map[s.name],!!this.parser&&(this.parser.parseOpen(s),!0)}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser){if(!this.parser.parseClose(s)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(s,e){s.style=s.styleId?e.styles.getStyleModel(s.styleId):{},s.styleId!==void 0&&(s.styleId=void 0);const i=this.map.c;s.cells.forEach(u=>{i.reconcile(u,e)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../base-xform");l.exports=class extends r{get tag(){return"sheetFormatPr"}render(n,s){if(s){const e={defaultRowHeight:s.defaultRowHeight,outlineLevelRow:s.outlineLevelRow,outlineLevelCol:s.outlineLevelCol,"x14ac:dyDescent":s.dyDescent};s.defaultColWidth&&(e.defaultColWidth=s.defaultColWidth),s.defaultRowHeight&&s.defaultRowHeight===15||(e.customHeight="1"),o.some(e,i=>i!==void 0)&&n.leafNode("sheetFormatPr",e)}}parseOpen(n){return n.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(n.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(n.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(n.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(n.attributes.outlineLevelCol||"0",10)},n.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(n.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(t,l,c){const o=t("../base-xform"),r=t("../style/color-xform"),n=t("./page-setup-properties-xform"),s=t("./outline-properties-xform");l.exports=class extends o{constructor(){super(),this.map={tabColor:new r("tabColor"),pageSetUpPr:new n,outlinePr:new s}}get tag(){return"sheetPr"}render(e,i){if(i){e.addRollback(),e.openNode("sheetPr");let u=!1;u=this.map.tabColor.render(e,i.tabColor)||u,u=this.map.pageSetUpPr.render(e,i.pageSetup)||u,u=this.map.outlinePr.render(e,i.outlineProperties)||u,u?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../base-xform");function n(e,i){return e?i:void 0}function s(e,i){return e===i||void 0}l.exports=class extends r{get tag(){return"sheetProtection"}render(e,i){if(i){const u={sheet:n(i.sheet,"1"),selectLockedCells:i.selectLockedCells===!1?"1":void 0,selectUnlockedCells:i.selectUnlockedCells===!1?"1":void 0,formatCells:n(i.formatCells,"0"),formatColumns:n(i.formatColumns,"0"),formatRows:n(i.formatRows,"0"),insertColumns:n(i.insertColumns,"0"),insertRows:n(i.insertRows,"0"),insertHyperlinks:n(i.insertHyperlinks,"0"),deleteColumns:n(i.deleteColumns,"0"),deleteRows:n(i.deleteRows,"0"),sort:n(i.sort,"0"),autoFilter:n(i.autoFilter,"0"),pivotTables:n(i.pivotTables,"0")};i.sheet&&(u.algorithmName=i.algorithmName,u.hashValue=i.hashValue,u.saltValue=i.saltValue,u.spinCount=i.spinCount,u.objects=n(i.objects===!1,"1"),u.scenarios=n(i.scenarios===!1,"1")),o.some(u,a=>a!==void 0)&&e.leafNode(this.tag,u)}}parseOpen(e){switch(e.name){case this.tag:return this.model={sheet:s(e.attributes.sheet,"1"),objects:e.attributes.objects!=="1"&&void 0,scenarios:e.attributes.scenarios!=="1"&&void 0,selectLockedCells:e.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:e.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:s(e.attributes.formatCells,"0"),formatColumns:s(e.attributes.formatColumns,"0"),formatRows:s(e.attributes.formatRows,"0"),insertColumns:s(e.attributes.insertColumns,"0"),insertRows:s(e.attributes.insertRows,"0"),insertHyperlinks:s(e.attributes.insertHyperlinks,"0"),deleteColumns:s(e.attributes.deleteColumns,"0"),deleteRows:s(e.attributes.deleteRows,"0"),sort:s(e.attributes.sort,"0"),autoFilter:s(e.attributes.autoFilter,"0"),pivotTables:s(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(t,l,c){const o=t("../../../utils/col-cache"),r=t("../base-xform"),n={frozen:"frozen",frozenSplit:"frozen",split:"split"};l.exports=class extends r{get tag(){return"sheetView"}prepare(s){switch(s.state){case"frozen":case"split":break;default:s.state="normal"}}render(s,e){s.openNode("sheetView",{workbookViewId:e.workbookViewId||0});const i=function(m,d,b){b&&s.addAttribute(m,d)};let u,a,h,p;switch(i("rightToLeft","1",e.rightToLeft===!0),i("tabSelected","1",e.tabSelected),i("showRuler","0",e.showRuler===!1),i("showRowColHeaders","0",e.showRowColHeaders===!1),i("showGridLines","0",e.showGridLines===!1),i("zoomScale",e.zoomScale,e.zoomScale),i("zoomScaleNormal",e.zoomScaleNormal,e.zoomScaleNormal),i("view",e.style,e.style),e.state){case"frozen":a=e.xSplit||0,h=e.ySplit||0,u=e.topLeftCell||o.getAddress(h+1,a+1).address,p=(e.xSplit&&e.ySplit?"bottomRight":e.xSplit&&"topRight")||"bottomLeft",s.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:u,activePane:p,state:"frozen"}),s.leafNode("selection",{pane:p,activeCell:e.activeCell,sqref:e.activeCell});break;case"split":e.activePane==="topLeft"&&(e.activePane=void 0),s.leafNode("pane",{xSplit:e.xSplit||void 0,ySplit:e.ySplit||void 0,topLeftCell:e.topLeftCell,activePane:e.activePane}),s.leafNode("selection",{pane:e.activePane,activeCell:e.activeCell,sqref:e.activeCell});break;case"normal":e.activeCell&&s.leafNode("selection",{activeCell:e.activeCell,sqref:e.activeCell})}s.closeNode()}parseOpen(s){switch(s.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(s.attributes.workbookViewId,10),rightToLeft:s.attributes.rightToLeft==="1",tabSelected:s.attributes.tabSelected==="1",showRuler:s.attributes.showRuler!=="0",showRowColHeaders:s.attributes.showRowColHeaders!=="0",showGridLines:s.attributes.showGridLines!=="0",zoomScale:parseInt(s.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(s.attributes.zoomScaleNormal||"100",10),style:s.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(s.attributes.xSplit||"0",10),ySplit:parseInt(s.attributes.ySplit||"0",10),topLeftCell:s.attributes.topLeftCell,activePane:s.attributes.activePane||"topLeft",state:s.attributes.state},!0;case"selection":{const e=s.attributes.pane||"topLeft";return this.selections[e]={pane:e,activeCell:s.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(s){let e,i;switch(s){case"sheetView":return this.sheetView&&this.pane?(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:n[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(e.activePane=this.pane.activePane),i=this.selections[this.pane.activePane],i&&i.activeCell&&(e.activeCell=i.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)):(e=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},i=this.selections.topLeft,i&&i.activeCell&&(e.activeCell=i.activeCell),this.sheetView.style&&(e.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"tablePart"}render(r,n){n&&r.leafNode(this.tag,{"r:id":n.rId})}parseOpen(r){switch(r.name){case this.tag:return this.model={rId:r.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../../../utils/col-cache"),n=t("../../../utils/xml-stream"),s=t("../../rel-type"),e=t("./merges"),i=t("../base-xform"),u=t("../list-xform"),a=t("./row-xform"),h=t("./col-xform"),p=t("./dimension-xform"),m=t("./hyperlink-xform"),d=t("./merge-cell-xform"),b=t("./data-validations-xform"),g=t("./sheet-properties-xform"),S=t("./sheet-format-properties-xform"),C=t("./sheet-view-xform"),I=t("./sheet-protection-xform"),D=t("./page-margins-xform"),z=t("./page-setup-xform"),P=t("./print-options-xform"),B=t("./auto-filter-xform"),F=t("./picture-xform"),W=t("./drawing-xform"),q=t("./table-part-xform"),A=t("./row-breaks-xform"),M=t("./header-footer-xform"),k=t("./cf/conditional-formattings-xform"),y=t("./ext-lst-xform"),w=(_,T)=>{if(!T||!T.length)return _;if(!_||!_.length)return T;const O={},j={};return _.forEach(V=>{O[V.ref]=V,V.rules.forEach(X=>{const{x14Id:J}=X;J&&(j[J]=X)})}),T.forEach(V=>{V.rules.forEach(X=>{const J=j[X.x14Id];J?((L,G)=>{Object.keys(G).forEach(N=>{const R=L[N],U=G[N];R===void 0&&U!==void 0&&(L[N]=U)})})(J,X):O[V.ref]?O[V.ref].rules.push(X):_.push({ref:V.ref,rules:[X]})})}),_};class x extends i{constructor(T){super();const{maxRows:O,maxCols:j,ignoreNodes:V}=T||{};this.ignoreNodes=V||[],this.map={sheetPr:new g,dimension:new p,sheetViews:new u({tag:"sheetViews",count:!1,childXform:new C}),sheetFormatPr:new S,cols:new u({tag:"cols",count:!1,childXform:new h}),sheetData:new u({tag:"sheetData",count:!1,empty:!0,childXform:new a({maxItems:j}),maxItems:O}),autoFilter:new B,mergeCells:new u({tag:"mergeCells",count:!0,childXform:new d}),rowBreaks:new A,hyperlinks:new u({tag:"hyperlinks",count:!1,childXform:new m}),pageMargins:new D,dataValidations:new b,pageSetup:new z,headerFooter:new M,printOptions:new P,picture:new F,drawing:new W,sheetProtection:new I,tableParts:new u({tag:"tableParts",count:!0,childXform:new q}),conditionalFormatting:new k,extLst:new y}}prepare(T,O){O.merges=new e,T.hyperlinks=O.hyperlinks=[],T.comments=O.comments=[],O.formulae={},O.siFormulae=0,this.map.cols.prepare(T.cols,O),this.map.sheetData.prepare(T.rows,O),this.map.conditionalFormatting.prepare(T.conditionalFormattings,O),T.mergeCells=O.merges.mergeCells;const j=T.rels=[];function V(L){return"rId"+(L.length+1)}if(T.hyperlinks.forEach(L=>{const G=V(j);L.rId=G,j.push({Id:G,Type:s.Hyperlink,Target:L.target,TargetMode:"External"})}),T.comments.length>0){const L={Id:V(j),Type:s.Comments,Target:`../comments${T.id}.xml`};j.push(L);const G={Id:V(j),Type:s.VmlDrawing,Target:`../drawings/vmlDrawing${T.id}.vml`};j.push(G),T.comments.forEach(N=>{N.refAddress=r.decodeAddress(N.ref)}),O.commentRefs.push({commentName:"comments"+T.id,vmlDrawing:"vmlDrawing"+T.id})}const X=[];let J;T.media.forEach(L=>{if(L.type==="background"){const G=V(j);J=O.media[L.imageId],j.push({Id:G,Type:s.Image,Target:`../media/${J.name}.${J.extension}`}),T.background={rId:G},T.image=O.media[L.imageId]}else if(L.type==="image"){let{drawing:G}=T;J=O.media[L.imageId],G||(G=T.drawing={rId:V(j),name:"drawing"+ ++O.drawingsCount,anchors:[],rels:[]},O.drawings.push(G),j.push({Id:G.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${G.name}.xml`}));let N=this.preImageId===L.imageId?X[L.imageId]:X[G.rels.length];N||(N=V(G.rels),X[G.rels.length]=N,G.rels.push({Id:N,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${J.name}.${J.extension}`}));const R={picture:{rId:N},range:L.range};if(L.hyperlinks&&L.hyperlinks.hyperlink){const U=V(G.rels);X[G.rels.length]=U,R.picture.hyperlinks={tooltip:L.hyperlinks.tooltip,rId:U},G.rels.push({Id:U,Type:s.Hyperlink,Target:L.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=L.imageId,G.anchors.push(R)}}),T.tables.forEach(L=>{const G=V(j);L.rId=G,j.push({Id:G,Type:s.Table,Target:"../tables/"+L.target}),L.columns.forEach(N=>{const{style:R}=N;R&&(N.dxfId=O.styles.addDxfStyle(R))})}),this.map.extLst.prepare(T,O)}render(T,O){T.openXml(n.StdDocAttributes),T.openNode("worksheet",x.WORKSHEET_ATTRIBUTES);const j=O.properties?{defaultRowHeight:O.properties.defaultRowHeight,dyDescent:O.properties.dyDescent,outlineLevelCol:O.properties.outlineLevelCol,outlineLevelRow:O.properties.outlineLevelRow}:void 0;O.properties&&O.properties.defaultColWidth&&(j.defaultColWidth=O.properties.defaultColWidth);const V={outlineProperties:O.properties&&O.properties.outlineProperties,tabColor:O.properties&&O.properties.tabColor,pageSetup:O.pageSetup&&O.pageSetup.fitToPage?{fitToPage:O.pageSetup.fitToPage}:void 0},X=O.pageSetup&&O.pageSetup.margins,J={showRowColHeaders:O.pageSetup&&O.pageSetup.showRowColHeaders,showGridLines:O.pageSetup&&O.pageSetup.showGridLines,horizontalCentered:O.pageSetup&&O.pageSetup.horizontalCentered,verticalCentered:O.pageSetup&&O.pageSetup.verticalCentered},L=O.sheetProtection;this.map.sheetPr.render(T,V),this.map.dimension.render(T,O.dimensions),this.map.sheetViews.render(T,O.views),this.map.sheetFormatPr.render(T,j),this.map.cols.render(T,O.cols),this.map.sheetData.render(T,O.rows),this.map.sheetProtection.render(T,L),this.map.autoFilter.render(T,O.autoFilter),this.map.mergeCells.render(T,O.mergeCells),this.map.conditionalFormatting.render(T,O.conditionalFormattings),this.map.dataValidations.render(T,O.dataValidations),this.map.hyperlinks.render(T,O.hyperlinks),this.map.printOptions.render(T,J),this.map.pageMargins.render(T,X),this.map.pageSetup.render(T,O.pageSetup),this.map.headerFooter.render(T,O.headerFooter),this.map.rowBreaks.render(T,O.rowBreaks),this.map.drawing.render(T,O.drawing),this.map.picture.render(T,O.background),this.map.tableParts.render(T,O.tables),this.map.extLst.render(T,O),O.rels&&O.rels.forEach(G=>{G.Type===s.VmlDrawing&&T.leafNode("legacyDrawing",{"r:id":G.Id})}),T.closeNode()}parseOpen(T){return this.parser?(this.parser.parseOpen(T),!0):T.name==="worksheet"?(o.each(this.map,O=>{O.reset()}),!0):(this.map[T.name]&&!this.ignoreNodes.includes(T.name)&&(this.parser=this.map[T.name],this.parser.parseOpen(T)),!0)}parseText(T){this.parser&&this.parser.parseText(T)}parseClose(T){if(this.parser)return this.parser.parseClose(T)||(this.parser=void 0),!0;switch(T){case"worksheet":{const O=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(O.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(O.outlineProperties=this.map.sheetPr.model.outlineProperties);const j={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},V=Object.assign(j,this.map.pageSetup.model,this.map.printOptions.model),X=w(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:O,views:this.map.sheetViews.model,pageSetup:V,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:X},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(T,O){const j=(T.relationships||[]).reduce((X,J)=>{if(X[J.Id]=J,J.Type===s.Comments&&(T.comments=O.comments[J.Target].comments),J.Type===s.VmlDrawing&&T.comments&&T.comments.length){const L=O.vmlDrawings[J.Target].comments;T.comments.forEach((G,N)=>{G.note=Object.assign({},G.note,L[N])})}return X},{});if(O.commentsMap=(T.comments||[]).reduce((X,J)=>(J.ref&&(X[J.ref]=J),X),{}),O.hyperlinkMap=(T.hyperlinks||[]).reduce((X,J)=>(J.rId&&(X[J.address]=j[J.rId].Target),X),{}),O.formulae={},T.rows=T.rows&&T.rows.filter(Boolean)||[],T.rows.forEach(X=>{X.cells=X.cells&&X.cells.filter(Boolean)||[]}),this.map.cols.reconcile(T.cols,O),this.map.sheetData.reconcile(T.rows,O),this.map.conditionalFormatting.reconcile(T.conditionalFormattings,O),T.media=[],T.drawing){const X=j[T.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(X){const J=X[1];O.drawings[J].anchors.forEach(L=>{if(L.medium){const G={type:"image",imageId:L.medium.index,range:L.range,hyperlinks:L.picture.hyperlinks};T.media.push(G)}})}}const V=T.background&&j[T.background.rId];if(V){const X=V.Target.split("/media/")[1],J=O.mediaIndex&&O.mediaIndex[X];J!==void 0&&T.media.push({type:"background",imageId:J})}T.tables=(T.tables||[]).map(X=>{const J=j[X.rId];return O.tables[J.Target]}),delete T.relationships,delete T.hyperlinks,delete T.comments}}x.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},l.exports=x},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{constructor(r){super(),this.tag=r.tag,this.attr=r.attr}render(r,n){n&&(r.openNode(this.tag),r.closeNode())}parseOpen(r){r.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{constructor(r){super(),this.tag=r.tag,this.attr=r.attr,this.attrs=r.attrs,this._format=r.format||function(n){try{return Number.isNaN(n.getTime())?"":n.toISOString()}catch{return""}},this._parse=r.parse||function(n){return new Date(n)}}render(r,n){n&&(r.openNode(this.tag),this.attrs&&r.addAttributes(this.attrs),this.attr?r.addAttribute(this.attr,this._format(n)):r.writeText(this._format(n)),r.closeNode())}parseOpen(r){r.name===this.tag&&(this.attr?this.model=this._parse(r.attributes[this.attr]):this.text=[])}parseText(r){this.attr||this.text.push(r)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{constructor(r){super(),this.tag=r.tag,this.attr=r.attr,this.attrs=r.attrs,this.zero=r.zero}render(r,n){(n||this.zero)&&(r.openNode(this.tag),this.attrs&&r.addAttributes(this.attrs),this.attr?r.addAttribute(this.attr,n):r.writeText(n),r.closeNode())}parseOpen(r){return r.name===this.tag&&(this.attr?this.model=parseInt(r.attributes[this.attr],10):this.text=[],!0)}parseText(r){this.attr||this.text.push(r)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{constructor(r){super(),this.tag=r.tag,this.attr=r.attr,this.attrs=r.attrs}render(r,n){n!==void 0&&(r.openNode(this.tag),this.attrs&&r.addAttributes(this.attrs),this.attr?r.addAttribute(this.attr,n):r.writeText(n),r.closeNode())}parseOpen(r){r.name===this.tag&&(this.attr?this.model=r.attributes[this.attr]:this.text=[])}parseText(r){this.attr||this.text.push(r)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(t,l,c){const o=t("./base-xform"),r=t("../../utils/xml-stream");l.exports=class extends o{constructor(n){super(),this._model=n}render(n){if(!this._xml){const s=new r;(function e(i,u){i.openNode(u.tag,u.$),u.c&&u.c.forEach(a=>{e(i,a)}),u.t&&i.writeText(u.t),i.closeNode()})(s,this._model),this._xml=s.xml}n.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(n){switch(n){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(t,l,c){const o=t("./text-xform"),r=t("./rich-text-xform"),n=t("../base-xform");l.exports=class extends n{constructor(){super(),this.map={r:new r,t:new o}}get tag(){return"rPh"}render(s,e){if(s.openNode(this.tag,{sb:e.sb||0,eb:e.eb||0}),e&&e.hasOwnProperty("richText")&&e.richText){const{r:i}=this.map;e.richText.forEach(u=>{i.render(s,u)})}else e&&this.map.t.render(s,e.text);s.closeNode()}parseOpen(s){const{name:e}=s;return this.parser?(this.parser.parseOpen(s),!0):e===this.tag?(this.model={sb:parseInt(s.attributes.sb,10),eb:parseInt(s.attributes.eb,10)},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(s),!0))}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser){if(!this.parser.parseClose(s)){switch(s){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(s){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(t,l,c){const o=t("./text-xform"),r=t("../style/font-xform"),n=t("../base-xform");class s extends n{constructor(i){super(),this.model=i}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new o)}get fontXform(){return this._fontXform||(this._fontXform=new r(s.FONT_OPTIONS))}render(i,u){u=u||this.model,i.openNode("r"),u.font&&this.fontXform.render(i,u.font),this.textXform.render(i,u.text),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(i),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(i),!0;default:return!1}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){switch(i){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(i),!0}}}s.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},l.exports=s},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(t,l,c){const o=t("./text-xform"),r=t("./rich-text-xform"),n=t("./phonetic-text-xform"),s=t("../base-xform");l.exports=class extends s{constructor(e){super(),this.model=e,this.map={r:new r,t:new o,rPh:new n}}get tag(){return"si"}render(e,i){e.openNode(this.tag),i&&i.hasOwnProperty("richText")&&i.richText?i.richText.length?i.richText.forEach(u=>{this.map.r.render(e,u)}):this.map.t.render(e,""):i!=null&&this.map.t.render(e,i),e.closeNode()}parseOpen(e){const{name:i}=e;return this.parser?(this.parser.parseOpen(e),!0):i===this.tag?(this.model={},!0):(this.parser=this.map[i],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let i=this.model.richText;i||(i=this.model.richText=[]),i.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(t,l,c){const o=t("../../../utils/xml-stream"),r=t("../base-xform"),n=t("./shared-string-xform");l.exports=class extends r{constructor(s){super(),this.model=s||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new n)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(s){return this.model.values[s]}add(s){return s.richText?this.addRichText(s):this.addText(s)}addText(s){let e=this.hash[s];return e===void 0&&(e=this.hash[s]=this.model.values.length,this.model.values.push(s)),this.model.count++,e}addRichText(s){const e=this.sharedStringXform.toXml(s);let i=this.rich[e];return i===void 0&&(i=this.rich[e]=this.model.values.length,this.model.values.push(s)),this.model.count++,i}render(s,e){e=e||this._values,s.openXml(o.StdDocAttributes),s.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.count,uniqueCount:e.values.length});const i=this.sharedStringXform;e.values.forEach(u=>{i.render(s,u)}),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(s),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(s){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+s)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"t"}render(r,n){r.openNode("t"),/^\s|\n|\s$/.test(n)&&r.addAttribute("xml:space","preserve"),r.writeText(n),r.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(r,n)=>String.fromCharCode(parseInt(n,16)))}parseOpen(r){switch(r.name){case"t":return this._text=[],!0;default:return!1}}parseText(r){this._text.push(r)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(t,l,c){const o=t("../../../doc/enums"),r=t("../../../utils/utils"),n=t("../base-xform"),s={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((i,u)=>(i[u]=!0,i),{}),horizontal(i){return this.horizontalValues[i]?i:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((i,u)=>(i[u]=!0,i),{}),vertical(i){return i==="middle"?"center":this.verticalValues[i]?i:void 0},wrapText:i=>!!i||void 0,shrinkToFit:i=>!!i||void 0,textRotation(i){switch(i){case"vertical":return i;default:return(i=r.validInt(i))>=-90&&i<=90?i:void 0}},indent:i=>(i=r.validInt(i),Math.max(0,i)),readingOrder(i){switch(i){case"ltr":return o.ReadingOrder.LeftToRight;case"rtl":return o.ReadingOrder.RightToLeft;default:return}}},e={toXml(i){if(i=s.textRotation(i)){if(i==="vertical")return 255;const u=Math.round(i);if(u>=0&&u<=90)return u;if(u<0&&u>=-90)return 90-u}},toModel(i){const u=r.validInt(i);if(u!==void 0){if(u===255)return"vertical";if(u>=0&&u<=90)return u;if(u>90&&u<=180)return 90-u}}};l.exports=class extends n{get tag(){return"alignment"}render(i,u){i.addRollback(),i.openNode("alignment");let a=!1;function h(p,m){m&&(i.addAttribute(p,m),a=!0)}h("horizontal",s.horizontal(u.horizontal)),h("vertical",s.vertical(u.vertical)),h("wrapText",!!s.wrapText(u.wrapText)&&"1"),h("shrinkToFit",!!s.shrinkToFit(u.shrinkToFit)&&"1"),h("indent",s.indent(u.indent)),h("textRotation",e.toXml(u.textRotation)),h("readingOrder",s.readingOrder(u.readingOrder)),i.closeNode(),a?i.commit():i.rollback()}parseOpen(i){const u={};let a=!1;function h(p,m,d){p&&(u[m]=d,a=!0)}h(i.attributes.horizontal,"horizontal",i.attributes.horizontal),h(i.attributes.vertical,"vertical",i.attributes.vertical==="center"?"middle":i.attributes.vertical),h(i.attributes.wrapText,"wrapText",r.parseBoolean(i.attributes.wrapText)),h(i.attributes.shrinkToFit,"shrinkToFit",r.parseBoolean(i.attributes.shrinkToFit)),h(i.attributes.indent,"indent",parseInt(i.attributes.indent,10)),h(i.attributes.textRotation,"textRotation",e.toModel(i.attributes.textRotation)),h(i.attributes.readingOrder,"readingOrder",i.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=a?u:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(t,l,c){const o=t("../base-xform"),r=t("../../../utils/utils"),n=t("./color-xform");class s extends o{constructor(i){super(),this.name=i,this.map={color:new n}}get tag(){return this.name}render(i,u,a){const h=u&&u.color||a||this.defaultColor;i.openNode(this.name),u&&u.style&&(i.addAttribute("style",u.style),h&&this.map.color.render(i,h)),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.name:{const{style:u}=i.attributes;return this.model=u?{style:u}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(i),!0;default:return!1}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.parser=void 0),!0):(i===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(i){return s.validStyleValues[i]}}s.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,i)=>(e[i]=!0,e),{}),l.exports=class extends o{constructor(){super(),this.map={top:new s("top"),left:new s("left"),bottom:new s("bottom"),right:new s("right"),diagonal:new s("diagonal")}}render(e,i){const{color:u}=i;function a(h,p){h&&!h.color&&i.color&&(h={...h,color:i.color}),p.render(e,h,u)}e.openNode("border"),i.diagonal&&i.diagonal.style&&(i.diagonal.up&&e.addAttribute("diagonalUp","1"),i.diagonal.down&&e.addAttribute("diagonalDown","1")),a(i.left,this.map.left),a(i.right,this.map.right),a(i.top,this.map.top),a(i.bottom,this.map.bottom),a(i.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"border":return this.reset(),this.diagonalUp=r.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=r.parseBoolean(e.attributes.diagonalDown),!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if(e==="border"){const i=this.model={},u=function(a,h,p){h&&(p&&Object.assign(h,p),i[a]=h)};u("left",this.map.left.model),u("right",this.map.right.model),u("top",this.map.top.model),u("bottom",this.map.bottom.model),u("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{constructor(r){super(),this.name=r||"color"}get tag(){return this.name}render(r,n){return!!n&&(r.openNode(this.name),n.argb?r.addAttribute("rgb",n.argb):n.theme!==void 0?(r.addAttribute("theme",n.theme),n.tint!==void 0&&r.addAttribute("tint",n.tint)):n.indexed!==void 0?r.addAttribute("indexed",n.indexed):r.addAttribute("auto","1"),r.closeNode(),!0)}parseOpen(r){return r.name===this.name&&(r.attributes.rgb?this.model={argb:r.attributes.rgb}:r.attributes.theme?(this.model={theme:parseInt(r.attributes.theme,10)},r.attributes.tint&&(this.model.tint=parseFloat(r.attributes.tint))):r.attributes.indexed?this.model={indexed:parseInt(r.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(t,l,c){const o=t("../base-xform"),r=t("./alignment-xform"),n=t("./border-xform"),s=t("./fill-xform"),e=t("./font-xform"),i=t("./numfmt-xform"),u=t("./protection-xform");l.exports=class extends o{constructor(){super(),this.map={alignment:new r,border:new n,fill:new s,font:new e,numFmt:new i,protection:new u}}get tag(){return"dxf"}render(a,h){if(a.openNode(this.tag),h.font&&this.map.font.render(a,h.font),h.numFmt&&h.numFmtId){const p={id:h.numFmtId,formatCode:h.numFmt};this.map.numFmt.render(a,p)}h.fill&&this.map.fill.render(a,h.fill),h.alignment&&this.map.alignment.render(a,h.alignment),h.border&&this.map.border.render(a,h.border),h.protection&&this.map.protection.render(a,h.protection),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a),!0}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.parser=void 0),!0):a!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(t,l,c){const o=t("../base-xform"),r=t("./color-xform");class n extends o{constructor(){super(),this.map={color:new r}}get tag(){return"stop"}render(a,h){a.openNode("stop"),a.addAttribute("position",h.position),this.map.color.render(a,h.color),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"stop":return this.model={position:parseFloat(a.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(a),!0;default:return!1}}parseText(){}parseClose(a){return!!this.parser&&(this.parser.parseClose(a)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class s extends o{constructor(){super(),this.map={fgColor:new r("fgColor"),bgColor:new r("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(a,h){a.openNode("patternFill"),a.addAttribute("patternType",h.pattern),h.fgColor&&this.map.fgColor.render(a,h.fgColor),h.bgColor&&this.map.bgColor.render(a,h.bgColor),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"patternFill":return this.model={type:"pattern",pattern:a.attributes.patternType},!0;default:return this.parser=this.map[a.name],!!this.parser&&(this.parser.parseOpen(a),!0)}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return!!this.parser&&(this.parser.parseClose(a)||(this.parser.model&&(this.model[a]=this.parser.model),this.parser=void 0),!0)}}class e extends o{constructor(){super(),this.map={stop:new n}}get name(){return"gradient"}get tag(){return"gradientFill"}render(a,h){switch(a.openNode("gradientFill"),h.gradient){case"angle":a.addAttribute("degree",h.degree);break;case"path":a.addAttribute("type","path"),h.center.left&&(a.addAttribute("left",h.center.left),h.center.right===void 0&&a.addAttribute("right",h.center.left)),h.center.right&&a.addAttribute("right",h.center.right),h.center.top&&(a.addAttribute("top",h.center.top),h.center.bottom===void 0&&a.addAttribute("bottom",h.center.top)),h.center.bottom&&a.addAttribute("bottom",h.center.bottom)}const p=this.map.stop;h.stops.forEach(m=>{p.render(a,m)}),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"gradientFill":{const h=this.model={stops:[]};return a.attributes.degree?(h.gradient="angle",h.degree=parseInt(a.attributes.degree,10)):a.attributes.type==="path"&&(h.gradient="path",h.center={left:a.attributes.left?parseFloat(a.attributes.left):0,top:a.attributes.top?parseFloat(a.attributes.top):0},a.attributes.right!==a.attributes.left&&(h.center.right=a.attributes.right?parseFloat(a.attributes.right):0),a.attributes.bottom!==a.attributes.top&&(h.center.bottom=a.attributes.bottom?parseFloat(a.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(a),!0;default:return!1}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return!!this.parser&&(this.parser.parseClose(a)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class i extends o{constructor(){super(),this.map={patternFill:new s,gradientFill:new e}}get tag(){return"fill"}render(a,h){switch(a.addRollback(),a.openNode("fill"),h.type){case"pattern":this.map.patternFill.render(a,h);break;case"gradient":this.map.gradientFill.render(a,h);break;default:return void a.rollback()}a.closeNode(),a.commit()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"fill":return this.model={},!0;default:return this.parser=this.map[a.name],!!this.parser&&(this.parser.parseOpen(a),!0)}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return!!this.parser&&(this.parser.parseClose(a)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(a){return i.validPatternValues[a]}}i.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((u,a)=>(u[a]=!0,u),{}),i.StopXform=n,i.PatternFillXform=s,i.GradientFillXform=e,l.exports=i},{"../base-xform":32,"./color-xform":128}],131:[function(t,l,c){const o=t("./color-xform"),r=t("../simple/boolean-xform"),n=t("../simple/integer-xform"),s=t("../simple/string-xform"),e=t("./underline-xform"),i=t("../../../utils/under-dash"),u=t("../base-xform");class a extends u{constructor(p){super(),this.options=p||a.OPTIONS,this.map={b:{prop:"bold",xform:new r({tag:"b",attr:"val"})},i:{prop:"italic",xform:new r({tag:"i",attr:"val"})},u:{prop:"underline",xform:new e},charset:{prop:"charset",xform:new n({tag:"charset",attr:"val"})},color:{prop:"color",xform:new o},condense:{prop:"condense",xform:new r({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new r({tag:"extend",attr:"val"})},family:{prop:"family",xform:new n({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new r({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new s({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new s({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new r({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new r({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new n({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new s({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(p,m){const{map:d}=this;p.openNode(this.options.tagName),i.each(this.map,(b,g)=>{d[g].xform.render(p,m[b.prop])}),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;if(this.map[p.name])return this.parser=this.map[p.name].xform,this.parser.parseOpen(p);switch(p.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser&&!this.parser.parseClose(p)){const m=this.map[p];return this.parser.model&&(this.model[m.prop]=this.parser.model),this.parser=void 0,!0}switch(p){case this.options.tagName:return!1;default:return!0}}}a.OPTIONS={tagName:"font",fontNameTag:"name"},l.exports=a},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(t,l,c){const o=t("../../../utils/under-dash"),r=t("../../defaultnumformats"),n=t("../base-xform"),s=(function(){const i={};return o.each(r,(u,a)=>{u.f&&(i[u.f]=parseInt(a,10))}),i})();class e extends n{constructor(u,a){super(),this.id=u,this.formatCode=a}get tag(){return"numFmt"}render(u,a){u.leafNode("numFmt",{numFmtId:a.id,formatCode:a.formatCode})}parseOpen(u){switch(u.name){case"numFmt":return this.model={id:parseInt(u.attributes.numFmtId,10),formatCode:u.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}e.getDefaultFmtId=function(i){return s[i]},e.getDefaultFmtCode=function(i){return r[i]&&r[i].f},l.exports=e},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(t,l,c){const o=t("../base-xform"),r={boolean:(n,s)=>n===void 0?s:n};l.exports=class extends o{get tag(){return"protection"}render(n,s){n.addRollback(),n.openNode("protection");let e=!1;function i(u,a){a!==void 0&&(n.addAttribute(u,a),e=!0)}i("locked",r.boolean(s.locked,!0)?void 0:"0"),i("hidden",r.boolean(s.hidden,!1)?"1":void 0),n.closeNode(),e?n.commit():n.rollback()}parseOpen(n){const s={locked:n.attributes.locked!=="0",hidden:n.attributes.hidden==="1"},e=!s.locked||s.hidden;this.model=e?s:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(t,l,c){const o=t("../base-xform"),r=t("./alignment-xform"),n=t("./protection-xform");l.exports=class extends o{constructor(s){super(),this.xfId=!(!s||!s.xfId),this.map={alignment:new r,protection:new n}}get tag(){return"xf"}render(s,e){s.openNode("xf",{numFmtId:e.numFmtId||0,fontId:e.fontId||0,fillId:e.fillId||0,borderId:e.borderId||0}),this.xfId&&s.addAttribute("xfId",e.xfId||0),e.numFmtId&&s.addAttribute("applyNumberFormat","1"),e.fontId&&s.addAttribute("applyFont","1"),e.fillId&&s.addAttribute("applyFill","1"),e.borderId&&s.addAttribute("applyBorder","1"),e.alignment&&s.addAttribute("applyAlignment","1"),e.protection&&s.addAttribute("applyProtection","1"),e.alignment&&this.map.alignment.render(s,e.alignment),e.protection&&this.map.protection.render(s,e.protection),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"xf":return this.model={numFmtId:parseInt(s.attributes.numFmtId,10),fontId:parseInt(s.attributes.fontId,10),fillId:parseInt(s.attributes.fillId,10),borderId:parseInt(s.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(s.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(s),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return this.parser?(this.parser.parseClose(s)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):s!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(t,l,c){const o=t("../../../doc/enums"),r=t("../../../utils/xml-stream"),n=t("../base-xform"),s=t("../static-xform"),e=t("../list-xform"),i=t("./font-xform"),u=t("./fill-xform"),a=t("./border-xform"),h=t("./numfmt-xform"),p=t("./style-xform"),m=t("./dxf-xform");class d extends n{constructor(g){super(),this.map={numFmts:new e({tag:"numFmts",count:!0,childXform:new h}),fonts:new e({tag:"fonts",count:!0,childXform:new i,$:{"x14ac:knownFonts":1}}),fills:new e({tag:"fills",count:!0,childXform:new u}),borders:new e({tag:"borders",count:!0,childXform:new a}),cellStyleXfs:new e({tag:"cellStyleXfs",count:!0,childXform:new p}),cellXfs:new e({tag:"cellXfs",count:!0,childXform:new p({xfId:!0})}),dxfs:new e({tag:"dxfs",always:!0,count:!0,childXform:new m}),numFmt:new h,font:new i,fill:new u,border:new a,style:new p({xfId:!0}),cellStyles:d.STATIC_XFORMS.cellStyles,tableStyles:d.STATIC_XFORMS.tableStyles,extLst:d.STATIC_XFORMS.extLst},g&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(g,S){S=S||this.model,g.openXml(r.StdDocAttributes),g.openNode("styleSheet",d.STYLESHEET_ATTRIBUTES),this.index?(S.numFmts&&S.numFmts.length&&(g.openNode("numFmts",{count:S.numFmts.length}),S.numFmts.forEach(C=>{g.writeXml(C)}),g.closeNode()),S.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),g.openNode("fonts",{count:S.fonts.length,"x14ac:knownFonts":1}),S.fonts.forEach(C=>{g.writeXml(C)}),g.closeNode(),g.openNode("fills",{count:S.fills.length}),S.fills.forEach(C=>{g.writeXml(C)}),g.closeNode(),g.openNode("borders",{count:S.borders.length}),S.borders.forEach(C=>{g.writeXml(C)}),g.closeNode(),this.map.cellStyleXfs.render(g,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),g.openNode("cellXfs",{count:S.styles.length}),S.styles.forEach(C=>{g.writeXml(C)}),g.closeNode()):(this.map.numFmts.render(g,S.numFmts),this.map.fonts.render(g,S.fonts),this.map.fills.render(g,S.fills),this.map.borders.render(g,S.borders),this.map.cellStyleXfs.render(g,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(g,S.styles)),d.STATIC_XFORMS.cellStyles.render(g),this.map.dxfs.render(g,S.dxfs),d.STATIC_XFORMS.tableStyles.render(g),d.STATIC_XFORMS.extLst.render(g),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;switch(g.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g),!0}}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser)return this.parser.parseClose(g)||(this.parser=void 0),!0;switch(g){case"styleSheet":{this.model={};const S=(C,I)=>{I.model&&I.model.length&&(this.model[C]=I.model)};if(S("numFmts",this.map.numFmts),S("fonts",this.map.fonts),S("fills",this.map.fills),S("borders",this.map.borders),S("styles",this.map.cellXfs),S("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const C=this.index.numFmt;this.model.numFmts.forEach(I=>{C[I.id]=I.formatCode})}return!1}default:return!0}}addStyleModel(g,S){if(!g)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(g))return this.weakMap.get(g);const C={};if(S=S||o.ValueType.Number,g.numFmt)C.numFmtId=this._addNumFmtStr(g.numFmt);else switch(S){case o.ValueType.Number:C.numFmtId=this._addNumFmtStr("General");break;case o.ValueType.Date:C.numFmtId=this._addNumFmtStr("mm-dd-yy")}g.font&&(C.fontId=this._addFont(g.font)),g.border&&(C.borderId=this._addBorder(g.border)),g.fill&&(C.fillId=this._addFill(g.fill)),g.alignment&&(C.alignment=g.alignment),g.protection&&(C.protection=g.protection);const I=this._addStyle(C);return this.weakMap&&this.weakMap.set(g,I),I}getStyleModel(g){const S=this.model.styles[g];if(!S)return null;let C=this.index.model[g];if(C)return C;if(C=this.index.model[g]={},S.numFmtId){const D=this.index.numFmt[S.numFmtId]||h.getDefaultFmtCode(S.numFmtId);D&&(C.numFmt=D)}function I(D,z,P){if(P||P===0){const B=z[P];B&&(C[D]=B)}}return I("font",this.model.fonts,S.fontId),I("border",this.model.borders,S.borderId),I("fill",this.model.fills,S.fillId),S.alignment&&(C.alignment=S.alignment),S.protection&&(C.protection=S.protection),C}addDxfStyle(g){return g.numFmt&&(g.numFmtId=this._addNumFmtStr(g.numFmt)),this.model.dxfs.push(g),this.model.dxfs.length-1}getDxfStyle(g){return this.model.dxfs[g]}_addStyle(g){const S=this.map.style.toXml(g);let C=this.index.style[S];return C===void 0&&(C=this.index.style[S]=this.model.styles.length,this.model.styles.push(S)),C}_addNumFmtStr(g){let S=h.getDefaultFmtId(g);if(S!==void 0||(S=this.index.numFmt[g],S!==void 0))return S;S=this.index.numFmt[g]=164+this.model.numFmts.length;const C=this.map.numFmt.toXml({id:S,formatCode:g});return this.model.numFmts.push(C),S}_addFont(g){const S=this.map.font.toXml(g);let C=this.index.font[S];return C===void 0&&(C=this.index.font[S]=this.model.fonts.length,this.model.fonts.push(S)),C}_addBorder(g){const S=this.map.border.toXml(g);let C=this.index.border[S];return C===void 0&&(C=this.index.border[S]=this.model.borders.length,this.model.borders.push(S)),C}_addFill(g){const S=this.map.fill.toXml(g);let C=this.index.fill[S];return C===void 0&&(C=this.index.fill[S]=this.model.fills.length,this.model.fills.push(S)),C}}d.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},d.STATIC_XFORMS={cellStyles:new s({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new s({tag:"dxfs",$:{count:0}}),tableStyles:new s({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new s({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},d.Mock=class extends d{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(b){return b.autodrain(),Promise.resolve()}addStyleModel(b,g){switch(g){case o.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const b={numFmtId:h.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(b)}return this._dateStyleId}getStyleModel(){return{}}},l.exports=d},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(t,l,c){const o=t("../base-xform");class r extends o{constructor(s){super(),this.model=s}get tag(){return"u"}render(s,e){if((e=e||this.model)===!0)s.leafNode("u");else{const i=r.Attributes[e];i&&s.leafNode("u",i)}}parseOpen(s){s.name==="u"&&(this.model=s.attributes.val||!0)}parseText(){}parseClose(){return!1}}r.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},l.exports=r},{"../base-xform":32}],137:[function(t,l,c){const o=t("../base-xform"),r=t("./filter-column-xform");l.exports=class extends o{constructor(){super(),this.map={filterColumn:new r}}get tag(){return"autoFilter"}prepare(n){n.columns.forEach((s,e)=>{this.map.filterColumn.prepare(s,{index:e})})}render(n,s){return n.openNode(this.tag,{ref:s.autoFilterRef}),s.columns.forEach(e=>{this.map.filterColumn.render(n,e)}),n.closeNode(),!0}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:return this.model={autoFilterRef:n.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[n.name],this.parser)return this.parseOpen(n),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(n){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+n)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"customFilter"}render(r,n){r.leafNode(this.tag,{val:n.val,operator:n.operator})}parseOpen(r){return r.name===this.tag&&(this.model={val:r.attributes.val,operator:r.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(t,l,c){const o=t("../base-xform"),r=t("../list-xform"),n=t("./custom-filter-xform"),s=t("./filter-xform");l.exports=class extends o{constructor(){super(),this.map={customFilters:new r({tag:"customFilters",count:!1,empty:!0,childXform:new n}),filters:new r({tag:"filters",count:!1,empty:!0,childXform:new s})}}get tag(){return"filterColumn"}prepare(e,i){e.colId=i.index.toString()}render(e,i){return i.customFilters?(e.openNode(this.tag,{colId:i.colId,hiddenButton:i.filterButton?"0":"1"}),this.map.customFilters.render(e,i.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:i.colId,hiddenButton:i.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:i}=e;switch(e.name){case this.tag:return this.model={filterButton:i.hiddenButton==="0"},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"filter"}render(r,n){r.leafNode(this.tag,{val:n.val})}parseOpen(r){return r.name===this.tag&&(this.model={val:r.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"tableColumn"}prepare(r,n){r.id=n.index+1}render(r,n){return r.leafNode(this.tag,{id:n.id.toString(),name:n.name,totalsRowLabel:n.totalsRowLabel,totalsRowFunction:n.totalsRowFunction,dxfId:n.dxfId}),!0}parseOpen(r){if(r.name===this.tag){const{attributes:n}=r;return this.model={name:n.name,totalsRowLabel:n.totalsRowLabel,totalsRowFunction:n.totalsRowFunction,dxfId:n.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(t,l,c){const o=t("../base-xform");l.exports=class extends o{get tag(){return"tableStyleInfo"}render(r,n){return r.leafNode(this.tag,{name:n.theme?n.theme:void 0,showFirstColumn:n.showFirstColumn?"1":"0",showLastColumn:n.showLastColumn?"1":"0",showRowStripes:n.showRowStripes?"1":"0",showColumnStripes:n.showColumnStripes?"1":"0"}),!0}parseOpen(r){if(r.name===this.tag){const{attributes:n}=r;return this.model={theme:n.name?n.name:null,showFirstColumn:n.showFirstColumn==="1",showLastColumn:n.showLastColumn==="1",showRowStripes:n.showRowStripes==="1",showColumnStripes:n.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(t,l,c){const o=t("../../../utils/xml-stream"),r=t("../base-xform"),n=t("../list-xform"),s=t("./auto-filter-xform"),e=t("./table-column-xform"),i=t("./table-style-info-xform");class u extends r{constructor(){super(),this.map={autoFilter:new s,tableColumns:new n({tag:"tableColumns",count:!0,empty:!0,childXform:new e}),tableStyleInfo:new i}}prepare(h,p){this.map.autoFilter.prepare(h),this.map.tableColumns.prepare(h.columns,p)}get tag(){return"table"}render(h,p){h.openXml(o.StdDocAttributes),h.openNode(this.tag,{...u.TABLE_ATTRIBUTES,id:p.id,name:p.name,displayName:p.displayName||p.name,ref:p.tableRef,totalsRowCount:p.totalsRow?"1":void 0,totalsRowShown:p.totalsRow?void 0:"1",headerRowCount:p.headerRow?"1":"0"}),this.map.autoFilter.render(h,p),this.map.tableColumns.render(h,p.columns),this.map.tableStyleInfo.render(h,p.style),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;const{name:p,attributes:m}=h;switch(p){case this.tag:this.reset(),this.model={name:m.name,displayName:m.displayName||m.name,tableRef:m.ref,totalsRow:m.totalsRowCount==="1",headerRow:m.headerRowCount==="1"};break;default:this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h)}return!0}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((p,m)=>{this.model.columns[m].filterButton=p.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(h,p){h.columns.forEach(m=>{m.dxfId!==void 0&&(m.style=p.styles.getDxfStyle(m.dxfId))})}}u.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},l.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(t,l,c){(function(o,r){(function(){const n=t("fs"),s=t("jszip"),{PassThrough:e}=t("readable-stream"),i=t("../utils/zip-stream"),u=t("../utils/stream-buf"),a=t("../utils/utils"),h=t("../utils/xml-stream"),{bufferToString:p}=t("../utils/browser-buffer-decode"),m=t("./xform/style/styles-xform"),d=t("./xform/core/core-xform"),b=t("./xform/strings/shared-strings-xform"),g=t("./xform/core/relationships-xform"),S=t("./xform/core/content-types-xform"),C=t("./xform/core/app-xform"),I=t("./xform/book/workbook-xform"),D=t("./xform/sheet/worksheet-xform"),z=t("./xform/drawing/drawing-xform"),P=t("./xform/table/table-xform"),B=t("./xform/comment/comments-xform"),F=t("./xform/comment/vml-notes-xform"),W=t("./xml/theme1");class q{constructor(M){this.workbook=M}async readFile(M,k){if(!await a.fs.exists(M))throw new Error("File not found: "+M);const y=n.createReadStream(M);try{const w=await this.read(y,k);return y.close(),w}catch(w){throw y.close(),w}}parseRels(M){return new g().parseStream(M)}parseWorkbook(M){return new I().parseStream(M)}parseSharedStrings(M){return new b().parseStream(M)}reconcile(M,k){const y=new I,w=new D(k),x=new z,_=new P;y.reconcile(M);const T={media:M.media,mediaIndex:M.mediaIndex};Object.keys(M.drawings).forEach(V=>{const X=M.drawings[V],J=M.drawingRels[V];J&&(T.rels=J.reduce((L,G)=>(L[G.Id]=G,L),{}),(X.anchors||[]).forEach(L=>{const G=L.picture&&L.picture.hyperlinks;G&&T.rels[G.rId]&&(G.hyperlink=T.rels[G.rId].Target,delete G.rId)}),x.reconcile(X,T))});const O={styles:M.styles};Object.values(M.tables).forEach(V=>{_.reconcile(V,O)});const j={styles:M.styles,sharedStrings:M.sharedStrings,media:M.media,mediaIndex:M.mediaIndex,date1904:M.properties&&M.properties.date1904,drawings:M.drawings,comments:M.comments,tables:M.tables,vmlDrawings:M.vmlDrawings};M.worksheets.forEach(V=>{V.relationships=M.worksheetRels[V.sheetNo],w.reconcile(V,j)}),delete M.worksheetHash,delete M.worksheetRels,delete M.globalRels,delete M.sharedStrings,delete M.workbookRels,delete M.sheetDefs,delete M.styles,delete M.mediaIndex,delete M.drawings,delete M.drawingRels,delete M.vmlDrawings}async _processWorksheetEntry(M,k,y,w,x){const _=new D(w),T=await _.parseStream(M);T.sheetNo=y,k.worksheetHash[x]=T,k.worksheets.push(T)}async _processCommentEntry(M,k,y){const w=new B,x=await w.parseStream(M);k.comments[`../${y}.xml`]=x}async _processTableEntry(M,k,y){const w=new P,x=await w.parseStream(M);k.tables[`../tables/${y}.xml`]=x}async _processWorksheetRelsEntry(M,k,y){const w=new g,x=await w.parseStream(M);k.worksheetRels[y]=x}async _processMediaEntry(M,k,y){const w=y.lastIndexOf(".");if(w>=1){const x=y.substr(w+1),_=y.substr(0,w);await new Promise((T,O)=>{const j=new u;j.on("finish",()=>{k.mediaIndex[y]=k.media.length,k.mediaIndex[_]=k.media.length;const V={type:"image",name:_,extension:x,buffer:j.toBuffer()};k.media.push(V),T()}),M.on("error",V=>{O(V)}),M.pipe(j)})}}async _processDrawingEntry(M,k,y){const w=new z,x=await w.parseStream(M);k.drawings[y]=x}async _processDrawingRelsEntry(M,k,y){const w=new g,x=await w.parseStream(M);k.drawingRels[y]=x}async _processVmlDrawingEntry(M,k,y){const w=new F,x=await w.parseStream(M);k.vmlDrawings[`../drawings/${y}.vml`]=x}async _processThemeEntry(M,k,y){await new Promise((w,x)=>{const _=new u;M.on("error",x),_.on("error",x),_.on("finish",()=>{k.themes[y]=_.read().toString(),w()}),M.pipe(_)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(M,k){!M[Symbol.asyncIterator]&&M.pipe&&(M=M.pipe(new e));const y=[];for await(const w of M)y.push(w);return this.load(r.concat(y),k)}async load(M,k){let y;y=k&&k.base64?r.from(M.toString(),"base64"):M;const w={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},x=await s.loadAsync(y);for(const _ of Object.values(x.files))if(!_.dir){let T,O=_.name;if(O[0]==="/"&&(O=O.substr(1)),O.match(/xl\/media\//)||O.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))T=new e,T.write(await _.async("nodebuffer"));else{let j;T=new e({writableObjectMode:!0,readableObjectMode:!0}),j=o.browser?p(await _.async("nodebuffer")):await _.async("string");const V=16384;for(let X=0;X<j.length;X+=V)T.write(j.substring(X,X+V))}switch(T.end(),O){case"_rels/.rels":w.globalRels=await this.parseRels(T);break;case"xl/workbook.xml":{const j=await this.parseWorkbook(T);w.sheets=j.sheets,w.definedNames=j.definedNames,w.views=j.views,w.properties=j.properties,w.calcProperties=j.calcProperties;break}case"xl/_rels/workbook.xml.rels":w.workbookRels=await this.parseRels(T);break;case"xl/sharedStrings.xml":w.sharedStrings=new b,await w.sharedStrings.parseStream(T);break;case"xl/styles.xml":w.styles=new m,await w.styles.parseStream(T);break;case"docProps/app.xml":{const j=new C,V=await j.parseStream(T);w.company=V.company,w.manager=V.manager;break}case"docProps/core.xml":{const j=new d,V=await j.parseStream(T);Object.assign(w,V);break}default:{let j=O.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(j){await this._processWorksheetEntry(T,w,j[1],k,O);break}if(j=O.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),j){await this._processWorksheetRelsEntry(T,w,j[1]);break}if(j=O.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),j){await this._processThemeEntry(T,w,j[1]);break}if(j=O.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),j){await this._processMediaEntry(T,w,j[1]);break}if(j=O.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),j){await this._processDrawingEntry(T,w,j[1]);break}if(j=O.match(/xl\/(comments\d+)[.]xml/),j){await this._processCommentEntry(T,w,j[1]);break}if(j=O.match(/xl\/tables\/(table\d+)[.]xml/),j){await this._processTableEntry(T,w,j[1]);break}if(j=O.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),j){await this._processDrawingRelsEntry(T,w,j[1]);break}if(j=O.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),j){await this._processVmlDrawingEntry(T,w,j[1]);break}}}}return this.reconcile(w,k),this.workbook.model=w,this.workbook}async addMedia(M,k){await Promise.all(k.media.map(async y=>{if(y.type==="image"){const w=`xl/media/${y.name}.${y.extension}`;if(y.filename){const x=await(function(_,T){return new Promise((O,j)=>{n.readFile(_,T,(V,X)=>{V?j(V):O(X)})})})(y.filename);return M.append(x,{name:w})}if(y.buffer)return M.append(y.buffer,{name:w});if(y.base64){const x=y.base64,_=x.substring(x.indexOf(",")+1);return M.append(_,{name:w,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(M,k){const y=new z,w=new g;k.worksheets.forEach(x=>{const{drawing:_}=x;if(_){y.prepare(_,{});let T=y.toXml(_);M.append(T,{name:`xl/drawings/${_.name}.xml`}),T=w.toXml(_.rels),M.append(T,{name:`xl/drawings/_rels/${_.name}.xml.rels`})}})}addTables(M,k){const y=new P;k.worksheets.forEach(w=>{const{tables:x}=w;x.forEach(_=>{y.prepare(_,{});const T=y.toXml(_);M.append(T,{name:"xl/tables/"+_.target})})})}async addContentTypes(M,k){const y=new S().toXml(k);M.append(y,{name:"[Content_Types].xml"})}async addApp(M,k){const y=new C().toXml(k);M.append(y,{name:"docProps/app.xml"})}async addCore(M,k){const y=new d;M.append(y.toXml(k),{name:"docProps/core.xml"})}async addThemes(M,k){const y=k.themes||{theme1:W};Object.keys(y).forEach(w=>{const x=y[w],_=`xl/theme/${w}.xml`;M.append(x,{name:_})})}async addOfficeRels(M){const k=new g().toXml([{Id:"rId1",Type:q.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:q.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:q.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);M.append(k,{name:"_rels/.rels"})}async addWorkbookRels(M,k){let y=1;const w=[{Id:"rId"+y++,Type:q.RelType.Styles,Target:"styles.xml"},{Id:"rId"+y++,Type:q.RelType.Theme,Target:"theme/theme1.xml"}];k.sharedStrings.count&&w.push({Id:"rId"+y++,Type:q.RelType.SharedStrings,Target:"sharedStrings.xml"}),k.worksheets.forEach(_=>{_.rId="rId"+y++,w.push({Id:_.rId,Type:q.RelType.Worksheet,Target:`worksheets/sheet${_.id}.xml`})});const x=new g().toXml(w);M.append(x,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(M,k){k.sharedStrings&&k.sharedStrings.count&&M.append(k.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(M,k){const{xml:y}=k.styles;y&&M.append(y,{name:"xl/styles.xml"})}async addWorkbook(M,k){const y=new I;M.append(y.toXml(k),{name:"xl/workbook.xml"})}async addWorksheets(M,k){const y=new D,w=new g,x=new B,_=new F;k.worksheets.forEach(T=>{let O=new h;y.render(O,T),M.append(O.xml,{name:`xl/worksheets/sheet${T.id}.xml`}),T.rels&&T.rels.length&&(O=new h,w.render(O,T.rels),M.append(O.xml,{name:`xl/worksheets/_rels/sheet${T.id}.xml.rels`})),T.comments.length>0&&(O=new h,x.render(O,T),M.append(O.xml,{name:`xl/comments${T.id}.xml`}),O=new h,_.render(O,T),M.append(O.xml,{name:`xl/drawings/vmlDrawing${T.id}.vml`}))})}_finalize(M){return new Promise((k,y)=>{M.on("finish",()=>{k(this)}),M.on("error",y),M.finalize()})}prepareModel(M,k){M.creator=M.creator||"ExcelJS",M.lastModifiedBy=M.lastModifiedBy||"ExcelJS",M.created=M.created||new Date,M.modified=M.modified||new Date,M.useSharedStrings=k.useSharedStrings===void 0||k.useSharedStrings,M.useStyles=k.useStyles===void 0||k.useStyles,M.sharedStrings=new b,M.styles=M.useStyles?new m(!0):new m.Mock;const y=new I,w=new D;y.prepare(M);const x={sharedStrings:M.sharedStrings,styles:M.styles,date1904:M.properties.date1904,drawingsCount:0,media:M.media};x.drawings=M.drawings=[],x.commentRefs=M.commentRefs=[];let _=0;M.tables=[],M.worksheets.forEach(T=>{T.tables.forEach(O=>{_++,O.target=`table${_}.xml`,O.id=_,M.tables.push(O)}),w.prepare(T,x)})}async write(M,k){k=k||{};const{model:y}=this.workbook,w=new i.ZipWriter(k.zip);return w.pipe(M),this.prepareModel(y,k),await this.addContentTypes(w,y),await this.addOfficeRels(w,y),await this.addWorkbookRels(w,y),await this.addWorksheets(w,y),await this.addSharedStrings(w,y),await this.addDrawings(w,y),await this.addTables(w,y),await Promise.all([this.addThemes(w,y),this.addStyles(w,y)]),await this.addMedia(w,y),await Promise.all([this.addApp(w,y),this.addCore(w,y)]),await this.addWorkbook(w,y),this._finalize(w)}writeFile(M,k){const y=n.createWriteStream(M);return new Promise((w,x)=>{y.on("finish",()=>{w()}),y.on("error",_=>{x(_)}),this.write(y,k).then(()=>{y.end()}).catch(_=>{x(_)})})}async writeBuffer(M){const k=new u;return await this.write(k,M),k.read()}}q.RelType=t("./rel-type"),l.exports=q}).call(this)}).call(this,t("_process"),t("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(t,l,c){l.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
258
258
|
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(t,l,c){(function(o){(function(){Object.defineProperty(c,"__esModule",{value:!0}),c.CsvFormatterStream=void 0;const r=t("stream"),n=t("./formatter");class s extends r.Transform{constructor(i){super({writableObjectMode:i.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=i,this.rowFormatter=new n.RowFormatter(i),this.hasWrittenBOM=!i.writeBOM}transform(i){return this.rowFormatter.rowTransform=i,this}_transform(i,u,a){let h=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(i,(p,m)=>p?(h=!0,a(p)):(m&&m.forEach(d=>{this.push(o.from(d,"utf8"))}),h=!0,a()))}catch(p){if(h)throw p;a(p)}}_flush(i){this.rowFormatter.finish((u,a)=>u?i(u):(a&&a.forEach(h=>{this.push(o.from(h,"utf8"))}),i()))}}c.CsvFormatterStream=s}).call(this)}).call(this,t("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.FormatterOptions=void 0,c.FormatterOptions=class{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var r;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
|
|
259
259
|
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,o||{}),(o==null?void 0:o.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(o==null?void 0:o.quote)===!0?this.quote='"':(o==null?void 0:o.quote)===!1&&(this.quote=""),typeof(o==null?void 0:o.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((r=o.writeHeaders)===null||r===void 0||r),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(t,l,c){var o=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(c,"__esModule",{value:!0}),c.FieldFormatter=void 0;const r=o(t("lodash.isboolean")),n=o(t("lodash.isnil")),s=o(t("lodash.escaperegexp"));c.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,e.headers!==null&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const i=`[${e.delimiter}${s.default(e.rowDelimiter)}|\r|
|
|
260
260
|
]`;this.ESCAPE_REGEXP=new RegExp(i)}set headers(e){this._headers=e}shouldQuote(e,i){const u=i?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return r.default(u)?u:Array.isArray(u)?u[e]:this._headers!==null&&u[this._headers[e]]}format(e,i,u){const a=(""+(n.default(e)?"":e)).replace(/\0/g,""),{formatterOptions:h}=this;return h.quote!==""&&a.indexOf(h.quote)!==-1?this.quoteField(a.replace(this.REPLACE_REGEXP,h.escapedQuote)):a.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(i,u)?this.quoteField(a):a}quoteField(e){const{quote:i}=this.formatterOptions;return`${i}${e}${i}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(t,l,c){var o=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(c,"__esModule",{value:!0}),c.RowFormatter=void 0;const r=o(t("lodash.isfunction")),n=o(t("lodash.isequal")),s=t("./FieldFormatter"),e=t("../types");class i{constructor(a){this.rowCount=0,this.formatterOptions=a,this.fieldFormatter=new s.FieldFormatter(a),this.headers=a.headers,this.shouldWriteHeaders=a.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),a.transform&&(this.rowTransform=a.transform)}static isRowHashArray(a){return!!Array.isArray(a)&&Array.isArray(a[0])&&a[0].length===2}static isRowArray(a){return Array.isArray(a)&&!this.isRowHashArray(a)}static gatherHeaders(a){return i.isRowHashArray(a)?a.map(h=>h[0]):Array.isArray(a)?a:Object.keys(a)}static createTransform(a){return e.isSyncTransform(a)?(h,p)=>{let m=null;try{m=a(h)}catch(d){return p(d)}return p(null,m)}:(h,p)=>{a(h,p)}}set rowTransform(a){if(!r.default(a))throw new TypeError("The transform should be a function");this._rowTransform=i.createTransform(a)}format(a,h){this.callTransformer(a,(p,m)=>{if(p)return h(p);if(!a)return h(null);const d=[];if(m){const{shouldFormatColumns:b,headers:g}=this.checkHeaders(m);if(this.shouldWriteHeaders&&g&&!this.hasWrittenHeaders&&(d.push(this.formatColumns(g,!0)),this.hasWrittenHeaders=!0),b){const S=this.gatherColumns(m);d.push(this.formatColumns(S,!1))}}return h(null,d)})}finish(a){const h=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return a(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));h.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&h.push(this.formatterOptions.rowDelimiter),a(null,h)}checkHeaders(a){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const h=i.gatherHeaders(a);return this.headers=h,this.fieldFormatter.headers=h,this.shouldWriteHeaders?{shouldFormatColumns:!n.default(h,a),headers:h}:{shouldFormatColumns:!0,headers:null}}gatherColumns(a){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(a)?i.isRowHashArray(a)?this.headers.map((h,p)=>{const m=a[p];return m?m[1]:""}):i.isRowArray(a)&&!this.shouldWriteHeaders?a:this.headers.map((h,p)=>a[p]):this.headers.map(h=>a[h])}callTransformer(a,h){return this._rowTransform?this._rowTransform(a,h):h(null,a)}formatColumns(a,h){const p=a.map((d,b)=>this.fieldFormatter.format(d,b,h)).join(this.formatterOptions.delimiter),{rowCount:m}=this;return this.rowCount+=1,m?[this.formatterOptions.rowDelimiter,p].join(""):p}}c.RowFormatter=i},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.FieldFormatter=c.RowFormatter=void 0;var o=t("./RowFormatter");Object.defineProperty(c,"RowFormatter",{enumerable:!0,get:function(){return o.RowFormatter}});var r=t("./FieldFormatter");Object.defineProperty(c,"FieldFormatter",{enumerable:!0,get:function(){return r.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(t,l,c){(function(o){(function(){var r=Object.create?function(b,g,S,C){C===void 0&&(C=S),Object.defineProperty(b,C,{enumerable:!0,get:function(){return g[S]}})}:function(b,g,S,C){C===void 0&&(C=S),b[C]=g[S]},n=Object.create?function(b,g){Object.defineProperty(b,"default",{enumerable:!0,value:g})}:function(b,g){b.default=g},s=function(b){if(b&&b.__esModule)return b;var g={};if(b!=null)for(var S in b)S!=="default"&&Object.prototype.hasOwnProperty.call(b,S)&&r(g,b,S);return n(g,b),g},e=function(b,g){for(var S in b)S==="default"||Object.prototype.hasOwnProperty.call(g,S)||r(g,b,S)};Object.defineProperty(c,"__esModule",{value:!0}),c.writeToPath=c.writeToString=c.writeToBuffer=c.writeToStream=c.write=c.format=c.FormatterOptions=c.CsvFormatterStream=void 0;const i=t("util"),u=t("stream"),a=s(t("fs")),h=t("./FormatterOptions"),p=t("./CsvFormatterStream");e(t("./types"),c);var m=t("./CsvFormatterStream");Object.defineProperty(c,"CsvFormatterStream",{enumerable:!0,get:function(){return m.CsvFormatterStream}});var d=t("./FormatterOptions");Object.defineProperty(c,"FormatterOptions",{enumerable:!0,get:function(){return d.FormatterOptions}}),c.format=b=>new p.CsvFormatterStream(new h.FormatterOptions(b)),c.write=(b,g)=>{const S=c.format(g),C=i.promisify((I,D)=>{S.write(I,void 0,D)});return b.reduce((I,D)=>I.then(()=>C(D)),Promise.resolve()).then(()=>S.end()).catch(I=>{S.emit("error",I)}),S},c.writeToStream=(b,g,S)=>c.write(g,S).pipe(b),c.writeToBuffer=function(b){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const S=[],C=new u.Writable({write(I,D,z){S.push(I),z()}});return new Promise((I,D)=>{C.on("error",D).on("finish",()=>I(o.concat(S))),c.write(b,g).pipe(C)})},c.writeToString=(b,g)=>c.writeToBuffer(b,g).then(S=>S.toString()),c.writeToPath=(b,g,S)=>{const C=a.createWriteStream(b,{encoding:"utf8"});return c.write(g,S).pipe(C)}}).call(this)}).call(this,t("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.isSyncTransform=void 0,c.isSyncTransform=o=>o.length===1},{}],153:[function(t,l,c){(function(o){(function(){Object.defineProperty(c,"__esModule",{value:!0}),c.CsvParserStream=void 0;const r=t("string_decoder"),n=t("stream"),s=t("./transforms"),e=t("./parser");class i extends n.Transform{constructor(a){super({objectMode:a.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=a,this.parser=new e.Parser(a),this.headerTransformer=new s.HeaderTransformer(a),this.decoder=new r.StringDecoder(a.encoding),this.rowTransformerValidator=new s.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(a){return this.rowTransformerValidator.rowTransform=a,this}validate(a){return this.rowTransformerValidator.rowValidator=a,this}emit(a){if(a==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var h=arguments.length,p=new Array(h>1?h-1:0),m=1;m<h;m++)p[m-1]=arguments[m];return super.emit(a,...p)}_transform(a,h,p){if(this.hasHitRowLimit)return p();const m=i.wrapDoneCallback(p);try{const{lines:d}=this,b=d+this.decoder.write(a),g=this.parse(b,!0);return this.processRows(g,m)}catch(d){return m(d)}}_flush(a){const h=i.wrapDoneCallback(a);if(this.hasHitRowLimit)return h();try{const p=this.lines+this.decoder.end(),m=this.parse(p,!1);return this.processRows(m,h)}catch(p){return h(p)}}parse(a,h){if(!a)return[];const{line:p,rows:m}=this.parser.parse(a,h);return this.lines=p,m}processRows(a,h){const p=a.length,m=d=>{const b=C=>C?h(C):d%100!=0?m(d+1):void o(()=>m(d+1));if(this.checkAndEmitHeaders(),d>=p||this.hasHitRowLimit)return h();if(this.parsedLineCount+=1,this.shouldSkipLine)return b();const g=a[d];this.rowCount+=1,this.parsedRowCount+=1;const S=this.rowCount;return this.transformRow(g,(C,I)=>{if(C)return this.rowCount-=1,b(C);if(!I)return b(new Error("expected transform result"));if(I.isValid){if(I.row)return this.pushRow(I.row,b)}else this.emit("data-invalid",I.row,S,I.reason);return b()})};m(0)}transformRow(a,h){try{this.headerTransformer.transform(a,(p,m)=>p?h(p):m?m.isValid?m.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(m.row,h):this.skipRow(h):(this.rowCount-=1,this.parsedRowCount-=1,h(null,{row:null,isValid:!0})):this.shouldEmitRows?h(null,{isValid:!1,row:a}):this.skipRow(h):h(new Error("Expected result from header transform")))}catch(p){h(p)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(a){return this.rowCount-=1,a(null,{row:null,isValid:!0})}pushRow(a,h){try{this.parserOptions.objectMode?this.push(a):this.push(JSON.stringify(a)),h()}catch(p){h(p)}}static wrapDoneCallback(a){let h=!1;return function(p){if(p){if(h)throw p;return h=!0,void a(p)}for(var m=arguments.length,d=new Array(m>1?m-1:0),b=1;b<m;b++)d[b-1]=arguments[b];a(...d)}}}c.CsvParserStream=i}).call(this)}).call(this,t("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(t,l,c){var o=function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(c,"__esModule",{value:!0}),c.ParserOptions=void 0;const r=o(t("lodash.escaperegexp")),n=o(t("lodash.isnil"));c.ParserOptions=class{constructor(s){var e;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,s||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=r.default(this.delimiter),this.escapeChar=(e=this.escape)!==null&&e!==void 0?e:this.quote,this.supportsComments=!n.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(t,l,c){var o=Object.create?function(m,d,b,g){g===void 0&&(g=b),Object.defineProperty(m,g,{enumerable:!0,get:function(){return d[b]}})}:function(m,d,b,g){g===void 0&&(g=b),m[g]=d[b]},r=Object.create?function(m,d){Object.defineProperty(m,"default",{enumerable:!0,value:d})}:function(m,d){m.default=d},n=function(m){if(m&&m.__esModule)return m;var d={};if(m!=null)for(var b in m)b!=="default"&&Object.prototype.hasOwnProperty.call(m,b)&&o(d,m,b);return r(d,m),d},s=function(m,d){for(var b in m)b==="default"||Object.prototype.hasOwnProperty.call(d,b)||o(d,m,b)};Object.defineProperty(c,"__esModule",{value:!0}),c.parseString=c.parseFile=c.parseStream=c.parse=c.ParserOptions=c.CsvParserStream=void 0;const e=n(t("fs")),i=t("stream"),u=t("./ParserOptions"),a=t("./CsvParserStream");s(t("./types"),c);var h=t("./CsvParserStream");Object.defineProperty(c,"CsvParserStream",{enumerable:!0,get:function(){return h.CsvParserStream}});var p=t("./ParserOptions");Object.defineProperty(c,"ParserOptions",{enumerable:!0,get:function(){return p.ParserOptions}}),c.parse=m=>new a.CsvParserStream(new u.ParserOptions(m)),c.parseStream=(m,d)=>m.pipe(new a.CsvParserStream(new u.ParserOptions(d))),c.parseFile=function(m){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.createReadStream(m).pipe(new a.CsvParserStream(new u.ParserOptions(d)))},c.parseString=(m,d)=>{const b=new i.Readable;return b.push(m),b.push(null),b.pipe(new a.CsvParserStream(new u.ParserOptions(d)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Parser=void 0;const o=t("./Scanner"),r=t("./RowParser"),n=t("./Token");class s{constructor(i){this.parserOptions=i,this.rowParser=new r.RowParser(this.parserOptions)}static removeBOM(i){return i&&i.charCodeAt(0)===65279?i.slice(1):i}parse(i,u){const a=new o.Scanner({line:s.removeBOM(i),parserOptions:this.parserOptions,hasMoreData:u});return this.parserOptions.supportsComments?this.parseWithComments(a):this.parseWithoutComments(a)}parseWithoutComments(i){const u=[];let a=!0;for(;a;)a=this.parseRow(i,u);return{line:i.line,rows:u}}parseWithComments(i){const{parserOptions:u}=this,a=[];for(let h=i.nextCharacterToken;h!==null;h=i.nextCharacterToken)if(n.Token.isTokenComment(h,u)){if(i.advancePastLine()===null)return{line:i.lineFromCursor,rows:a};if(!i.hasMoreCharacters)return{line:i.lineFromCursor,rows:a};i.truncateToCursor()}else if(!this.parseRow(i,a))break;return{line:i.line,rows:a}}parseRow(i,u){if(!i.nextNonSpaceToken)return!1;const a=this.rowParser.parse(i);return a!==null&&(this.parserOptions.ignoreEmpty&&r.RowParser.isEmptyRow(a)||u.push(a),!0)}}c.Parser=s},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.RowParser=void 0;const o=t("./column"),r=t("./Token");c.RowParser=class{constructor(n){this.parserOptions=n,this.columnParser=new o.ColumnParser(n)}static isEmptyRow(n){return n.join("").replace(/\s+/g,"")===""}parse(n){const{parserOptions:s}=this,{hasMoreData:e}=n,i=n,u=[];let a=this.getStartToken(i,u);for(;a;){if(r.Token.isTokenRowDelimiter(a))return i.advancePastToken(a),!i.hasMoreCharacters&&r.Token.isTokenCarriageReturn(a,s)&&e?null:(i.truncateToCursor(),u);if(!this.shouldSkipColumnParse(i,a,u)){const h=this.columnParser.parse(i);if(h===null)return null;u.push(h)}a=i.nextNonSpaceToken}return e?null:(i.truncateToCursor(),u)}getStartToken(n,s){const e=n.nextNonSpaceToken;return e!==null&&r.Token.isTokenDelimiter(e,this.parserOptions)?(s.push(""),n.nextNonSpaceToken):e}shouldSkipColumnParse(n,s,e){const{parserOptions:i}=this;if(r.Token.isTokenDelimiter(s,i)){n.advancePastToken(s);const u=n.nextCharacterToken;if(!n.hasMoreCharacters||u!==null&&r.Token.isTokenRowDelimiter(u)||u!==null&&r.Token.isTokenDelimiter(u,i))return e.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Scanner=void 0;const o=t("./Token"),r=/((?:\r\n)|\n|\r)/;c.Scanner=class{constructor(n){this.cursor=0,this.line=n.line,this.lineLength=this.line.length,this.parserOptions=n.parserOptions,this.hasMoreData=n.hasMoreData,this.cursor=n.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:n}=this,s=this.parserOptions.NEXT_TOKEN_REGEXP;if(n.search(s)===-1)return null;const e=s.exec(n);if(e==null)return null;const i=e[1],u=this.cursor+(e.index||0);return new o.Token({token:i,startCursor:u,endCursor:u+i.length-1})}get nextCharacterToken(){const{cursor:n,lineLength:s}=this;return s<=n?null:new o.Token({token:this.line[n],startCursor:n,endCursor:n})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const n=r.exec(this.lineFromCursor);return n?(this.cursor+=(n.index||0)+n[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(n){return this.cursor=n,this}advanceToToken(n){return this.cursor=n.startCursor,this}advancePastToken(n){return this.cursor=n.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Token=void 0,c.Token=class{constructor(o){this.token=o.token,this.startCursor=o.startCursor,this.endCursor=o.endCursor}static isTokenRowDelimiter(o){const r=o.token;return r==="\r"||r===`
|
|
261
261
|
`||r===`\r
|
|
262
262
|
`}static isTokenCarriageReturn(o,r){return o.token===r.carriageReturn}static isTokenComment(o,r){return r.supportsComments&&!!o&&o.token===r.comment}static isTokenEscapeCharacter(o,r){return o.token===r.escapeChar}static isTokenQuote(o,r){return o.token===r.quote}static isTokenDelimiter(o,r){return o.token===r.delimiter}}},{}],160:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.ColumnFormatter=void 0,c.ColumnFormatter=class{constructor(o){o.trim?this.format=r=>r.trim():o.ltrim?this.format=r=>r.trimLeft():o.rtrim?this.format=r=>r.trimRight():this.format=r=>r}}},{}],161:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.ColumnParser=void 0;const o=t("./NonQuotedColumnParser"),r=t("./QuotedColumnParser"),n=t("../Token");c.ColumnParser=class{constructor(s){this.parserOptions=s,this.quotedColumnParser=new r.QuotedColumnParser(s),this.nonQuotedColumnParser=new o.NonQuotedColumnParser(s)}parse(s){const{nextNonSpaceToken:e}=s;return e!==null&&n.Token.isTokenQuote(e,this.parserOptions)?(s.advanceToToken(e),this.quotedColumnParser.parse(s)):this.nonQuotedColumnParser.parse(s)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.NonQuotedColumnParser=void 0;const o=t("./ColumnFormatter"),r=t("../Token");c.NonQuotedColumnParser=class{constructor(n){this.parserOptions=n,this.columnFormatter=new o.ColumnFormatter(n)}parse(n){if(!n.hasMoreCharacters)return null;const{parserOptions:s}=this,e=[];let i=n.nextCharacterToken;for(;i&&!r.Token.isTokenDelimiter(i,s)&&!r.Token.isTokenRowDelimiter(i);i=n.nextCharacterToken)e.push(i.token),n.advancePastToken(i);return this.columnFormatter.format(e.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.QuotedColumnParser=void 0;const o=t("./ColumnFormatter"),r=t("../Token");c.QuotedColumnParser=class{constructor(n){this.parserOptions=n,this.columnFormatter=new o.ColumnFormatter(n)}parse(n){if(!n.hasMoreCharacters)return null;const s=n.cursor,{foundClosingQuote:e,col:i}=this.gatherDataBetweenQuotes(n);if(!e){if(n.advanceTo(s),!n.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${n.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(n),i}gatherDataBetweenQuotes(n){const{parserOptions:s}=this;let e=!1,i=!1;const u=[];let a=n.nextCharacterToken;for(;!i&&a!==null;a=n.nextCharacterToken){const h=r.Token.isTokenQuote(a,s);if(!e&&h)e=!0;else if(e)if(r.Token.isTokenEscapeCharacter(a,s)){n.advancePastToken(a);const p=n.nextCharacterToken;p!==null&&(r.Token.isTokenQuote(p,s)||r.Token.isTokenEscapeCharacter(p,s))?(u.push(p.token),a=p):h?i=!0:u.push(a.token)}else h?i=!0:u.push(a.token);n.advancePastToken(a)}return{col:this.columnFormatter.format(u.join("")),foundClosingQuote:i}}checkForMalformedColumn(n){const{parserOptions:s}=this,{nextNonSpaceToken:e}=n;if(e){const i=r.Token.isTokenDelimiter(e,s),u=r.Token.isTokenRowDelimiter(e);if(!i&&!u){const a=n.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${s.escapedDelimiter}' OR new line got: '${e.token}'. at '${a}`)}n.advanceToToken(e)}else n.hasMoreData||n.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.ColumnFormatter=c.QuotedColumnParser=c.NonQuotedColumnParser=c.ColumnParser=void 0;var o=t("./ColumnParser");Object.defineProperty(c,"ColumnParser",{enumerable:!0,get:function(){return o.ColumnParser}});var r=t("./NonQuotedColumnParser");Object.defineProperty(c,"NonQuotedColumnParser",{enumerable:!0,get:function(){return r.NonQuotedColumnParser}});var n=t("./QuotedColumnParser");Object.defineProperty(c,"QuotedColumnParser",{enumerable:!0,get:function(){return n.QuotedColumnParser}});var s=t("./ColumnFormatter");Object.defineProperty(c,"ColumnFormatter",{enumerable:!0,get:function(){return s.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.QuotedColumnParser=c.NonQuotedColumnParser=c.ColumnParser=c.Token=c.Scanner=c.RowParser=c.Parser=void 0;var o=t("./Parser");Object.defineProperty(c,"Parser",{enumerable:!0,get:function(){return o.Parser}});var r=t("./RowParser");Object.defineProperty(c,"RowParser",{enumerable:!0,get:function(){return r.RowParser}});var n=t("./Scanner");Object.defineProperty(c,"Scanner",{enumerable:!0,get:function(){return n.Scanner}});var s=t("./Token");Object.defineProperty(c,"Token",{enumerable:!0,get:function(){return s.Token}});var e=t("./column");Object.defineProperty(c,"ColumnParser",{enumerable:!0,get:function(){return e.ColumnParser}}),Object.defineProperty(c,"NonQuotedColumnParser",{enumerable:!0,get:function(){return e.NonQuotedColumnParser}}),Object.defineProperty(c,"QuotedColumnParser",{enumerable:!0,get:function(){return e.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(t,l,c){var o=function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(c,"__esModule",{value:!0}),c.HeaderTransformer=void 0;const r=o(t("lodash.isundefined")),n=o(t("lodash.isfunction")),s=o(t("lodash.uniq")),e=o(t("lodash.groupby"));c.HeaderTransformer=class{constructor(i){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=i,i.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(i.headers)?this.setHeaders(i.headers):n.default(i.headers)&&(this.headersTransform=i.headers)}transform(i,u){return this.shouldMapRow(i)?u(null,this.processRow(i)):u(null,{row:null,isValid:!0})}shouldMapRow(i){const{parserOptions:u}=this;if(!this.headersTransform&&u.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(i)){if(this.headersTransform)this.setHeaders(this.headersTransform(i));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(i)}return!1}return!0}processRow(i){if(!this.headers)return{row:i,isValid:!0};const{parserOptions:u}=this;if(!u.discardUnmappedColumns&&i.length>this.headersLength){if(!u.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${i.length}`);return{row:i,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${i.length}`}}return u.strictColumnHandling&&i.length<this.headersLength?{row:i,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${i.length}`}:{row:this.mapHeaders(i),isValid:!0}}mapHeaders(i){const u={},{headers:a,headersLength:h}=this;for(let p=0;p<h;p+=1){const m=a[p];if(!r.default(m)){const d=i[p];r.default(d)?u[m]="":u[m]=d}}return u}setHeaders(i){var u;const a=i.filter(h=>!!h);if(s.default(a).length!==a.length){const h=e.default(a),p=Object.keys(h).filter(m=>h[m].length>1);throw new Error("Duplicate headers found "+JSON.stringify(p))}this.headers=i,this.receivedHeaders=!0,this.headersLength=((u=this.headers)===null||u===void 0?void 0:u.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(t,l,c){var o=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(c,"__esModule",{value:!0}),c.RowTransformerValidator=void 0;const r=o(t("lodash.isfunction")),n=t("../types");class s{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(i){return n.isSyncTransform(i)?(u,a)=>{let h=null;try{h=i(u)}catch(p){return a(p)}return a(null,h)}:i}static createValidator(i){return n.isSyncValidate(i)?(u,a)=>{a(null,{row:u,isValid:i(u)})}:(u,a)=>{i(u,(h,p,m)=>h?a(h):a(null,p?{row:u,isValid:p,reason:m}:{row:u,isValid:!1,reason:m}))}}set rowTransform(i){if(!r.default(i))throw new TypeError("The transform should be a function");this._rowTransform=s.createTransform(i)}set rowValidator(i){if(!r.default(i))throw new TypeError("The validate should be a function");this._rowValidator=s.createValidator(i)}transformAndValidate(i,u){return this.callTransformer(i,(a,h)=>a?u(a):h?this.callValidator(h,(p,m)=>p?u(p):m&&!m.isValid?u(null,{row:h,isValid:!1,reason:m.reason}):u(null,{row:h,isValid:!0})):u(null,{row:null,isValid:!0}))}callTransformer(i,u){return this._rowTransform?this._rowTransform(i,u):u(null,i)}callValidator(i,u){return this._rowValidator?this._rowValidator(i,u):u(null,{row:i,isValid:!0})}}c.RowTransformerValidator=s},{"../types":169,"lodash.isfunction":446}],168:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.HeaderTransformer=c.RowTransformerValidator=void 0;var o=t("./RowTransformerValidator");Object.defineProperty(c,"RowTransformerValidator",{enumerable:!0,get:function(){return o.RowTransformerValidator}});var r=t("./HeaderTransformer");Object.defineProperty(c,"HeaderTransformer",{enumerable:!0,get:function(){return r.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.isSyncValidate=c.isSyncTransform=void 0,c.isSyncTransform=o=>o.length===1,c.isSyncValidate=o=>o.length===1},{}],170:[function(t,l,c){const o=c;o.bignum=t("bn.js"),o.define=t("./asn1/api").define,o.base=t("./asn1/base"),o.constants=t("./asn1/constants"),o.decoders=t("./asn1/decoders"),o.encoders=t("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(t,l,c){const o=t("./encoders"),r=t("./decoders"),n=t("inherits");function s(e,i){this.name=e,this.body=i,this.decoders={},this.encoders={}}c.define=function(e,i){return new s(e,i)},s.prototype._createNamed=function(e){const i=this.name;function u(a){this._initNamed(a,i)}return n(u,e),u.prototype._initNamed=function(a,h){e.call(this,a,h)},new u(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(r[e])),this.decoders[e]},s.prototype.decode=function(e,i,u){return this._getDecoder(i).decode(e,u)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(o[e])),this.encoders[e]},s.prototype.encode=function(e,i,u){return this._getEncoder(i).encode(e,u)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(t,l,c){const o=t("inherits"),r=t("../base/reporter").Reporter,n=t("safer-buffer").Buffer;function s(i,u){r.call(this,u),n.isBuffer(i)?(this.base=i,this.offset=0,this.length=i.length):this.error("Input not Buffer")}function e(i,u){if(Array.isArray(i))this.length=0,this.value=i.map((function(a){return e.isEncoderBuffer(a)||(a=new e(a,u)),this.length+=a.length,a}),this);else if(typeof i=="number"){if(!(0<=i&&i<=255))return u.error("non-byte EncoderBuffer value");this.value=i,this.length=1}else if(typeof i=="string")this.value=i,this.length=n.byteLength(i);else{if(!n.isBuffer(i))return u.error("Unsupported type: "+typeof i);this.value=i,this.length=i.length}}o(s,r),c.DecoderBuffer=s,s.isDecoderBuffer=function(i){return i instanceof s?!0:typeof i=="object"&&n.isBuffer(i.base)&&i.constructor.name==="DecoderBuffer"&&typeof i.offset=="number"&&typeof i.length=="number"&&typeof i.save=="function"&&typeof i.restore=="function"&&typeof i.isEmpty=="function"&&typeof i.readUInt8=="function"&&typeof i.skip=="function"&&typeof i.raw=="function"},s.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},s.prototype.restore=function(i){const u=new s(this.base);return u.offset=i.offset,u.length=this.offset,this.offset=i.offset,r.prototype.restore.call(this,i.reporter),u},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(i){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(i||"DecoderBuffer overrun")},s.prototype.skip=function(i,u){if(!(this.offset+i<=this.length))return this.error(u||"DecoderBuffer overrun");const a=new s(this.base);return a._reporterState=this._reporterState,a.offset=this.offset,a.length=this.offset+i,this.offset+=i,a},s.prototype.raw=function(i){return this.base.slice(i?i.offset:this.offset,this.length)},c.EncoderBuffer=e,e.isEncoderBuffer=function(i){return i instanceof e?!0:typeof i=="object"&&i.constructor.name==="EncoderBuffer"&&typeof i.length=="number"&&typeof i.join=="function"},e.prototype.join=function(i,u){return i||(i=n.alloc(this.length)),u||(u=0),this.length===0||(Array.isArray(this.value)?this.value.forEach((function(a){a.join(i,u),u+=a.length})):(typeof this.value=="number"?i[u]=this.value:typeof this.value=="string"?i.write(this.value,u):n.isBuffer(this.value)&&this.value.copy(i,u),u+=this.length)),i}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(t,l,c){const o=c;o.Reporter=t("./reporter").Reporter,o.DecoderBuffer=t("./buffer").DecoderBuffer,o.EncoderBuffer=t("./buffer").EncoderBuffer,o.Node=t("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(t,l,c){const o=t("../base/reporter").Reporter,r=t("../base/buffer").EncoderBuffer,n=t("../base/buffer").DecoderBuffer,s=t("minimalistic-assert"),e=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],i=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(e);function u(h,p,m){const d={};this._baseState=d,d.name=m,d.enc=h,d.parent=p||null,d.children=null,d.tag=null,d.args=null,d.reverseArgs=null,d.choice=null,d.optional=!1,d.any=!1,d.obj=!1,d.use=null,d.useDecoder=null,d.key=null,d.default=null,d.explicit=null,d.implicit=null,d.contains=null,d.parent||(d.children=[],this._wrap())}l.exports=u;const a=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const h=this._baseState,p={};a.forEach((function(d){p[d]=h[d]}));const m=new this.constructor(p.parent);return m._baseState=p,m},u.prototype._wrap=function(){const h=this._baseState;i.forEach((function(p){this[p]=function(){const m=new this.constructor(this);return h.children.push(m),m[p].apply(m,arguments)}}),this)},u.prototype._init=function(h){const p=this._baseState;s(p.parent===null),h.call(this),p.children=p.children.filter((function(m){return m._baseState.parent===this}),this),s.equal(p.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(h){const p=this._baseState,m=h.filter((function(d){return d instanceof this.constructor}),this);h=h.filter((function(d){return!(d instanceof this.constructor)}),this),m.length!==0&&(s(p.children===null),p.children=m,m.forEach((function(d){d._baseState.parent=this}),this)),h.length!==0&&(s(p.args===null),p.args=h,p.reverseArgs=h.map((function(d){if(typeof d!="object"||d.constructor!==Object)return d;const b={};return Object.keys(d).forEach((function(g){g==(0|g)&&(g|=0);const S=d[g];b[S]=g})),b})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(h){u.prototype[h]=function(){const p=this._baseState;throw new Error(h+" not implemented for encoding: "+p.enc)}})),e.forEach((function(h){u.prototype[h]=function(){const p=this._baseState,m=Array.prototype.slice.call(arguments);return s(p.tag===null),p.tag=h,this._useArgs(m),this}})),u.prototype.use=function(h){s(h);const p=this._baseState;return s(p.use===null),p.use=h,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(h){const p=this._baseState;return s(p.default===null),p.default=h,p.optional=!0,this},u.prototype.explicit=function(h){const p=this._baseState;return s(p.explicit===null&&p.implicit===null),p.explicit=h,this},u.prototype.implicit=function(h){const p=this._baseState;return s(p.explicit===null&&p.implicit===null),p.implicit=h,this},u.prototype.obj=function(){const h=this._baseState,p=Array.prototype.slice.call(arguments);return h.obj=!0,p.length!==0&&this._useArgs(p),this},u.prototype.key=function(h){const p=this._baseState;return s(p.key===null),p.key=h,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(h){const p=this._baseState;return s(p.choice===null),p.choice=h,this._useArgs(Object.keys(h).map((function(m){return h[m]}))),this},u.prototype.contains=function(h){const p=this._baseState;return s(p.use===null),p.contains=h,this},u.prototype._decode=function(h,p){const m=this._baseState;if(m.parent===null)return h.wrapResult(m.children[0]._decode(h,p));let d,b=m.default,g=!0,S=null;if(m.key!==null&&(S=h.enterKey(m.key)),m.optional){let C=null;if(m.explicit!==null?C=m.explicit:m.implicit!==null?C=m.implicit:m.tag!==null&&(C=m.tag),C!==null||m.any){if(g=this._peekTag(h,C,m.any),h.isError(g))return g}else{const I=h.save();try{m.choice===null?this._decodeGeneric(m.tag,h,p):this._decodeChoice(h,p),g=!0}catch{g=!1}h.restore(I)}}if(m.obj&&g&&(d=h.enterObject()),g){if(m.explicit!==null){const I=this._decodeTag(h,m.explicit);if(h.isError(I))return I;h=I}const C=h.offset;if(m.use===null&&m.choice===null){let I;m.any&&(I=h.save());const D=this._decodeTag(h,m.implicit!==null?m.implicit:m.tag,m.any);if(h.isError(D))return D;m.any?b=h.raw(I):h=D}if(p&&p.track&&m.tag!==null&&p.track(h.path(),C,h.length,"tagged"),p&&p.track&&m.tag!==null&&p.track(h.path(),h.offset,h.length,"content"),m.any||(b=m.choice===null?this._decodeGeneric(m.tag,h,p):this._decodeChoice(h,p)),h.isError(b))return b;if(m.any||m.choice!==null||m.children===null||m.children.forEach((function(I){I._decode(h,p)})),m.contains&&(m.tag==="octstr"||m.tag==="bitstr")){const I=new n(b);b=this._getUse(m.contains,h._reporterState.obj)._decode(I,p)}}return m.obj&&g&&(b=h.leaveObject(d)),m.key===null||b===null&&g!==!0?S!==null&&h.exitKey(S):h.leaveKey(S,m.key,b),b},u.prototype._decodeGeneric=function(h,p,m){const d=this._baseState;return h==="seq"||h==="set"?null:h==="seqof"||h==="setof"?this._decodeList(p,h,d.args[0],m):/str$/.test(h)?this._decodeStr(p,h,m):h==="objid"&&d.args?this._decodeObjid(p,d.args[0],d.args[1],m):h==="objid"?this._decodeObjid(p,null,null,m):h==="gentime"||h==="utctime"?this._decodeTime(p,h,m):h==="null_"?this._decodeNull(p,m):h==="bool"?this._decodeBool(p,m):h==="objDesc"?this._decodeStr(p,h,m):h==="int"||h==="enum"?this._decodeInt(p,d.args&&d.args[0],m):d.use!==null?this._getUse(d.use,p._reporterState.obj)._decode(p,m):p.error("unknown tag: "+h)},u.prototype._getUse=function(h,p){const m=this._baseState;return m.useDecoder=this._use(h,p),s(m.useDecoder._baseState.parent===null),m.useDecoder=m.useDecoder._baseState.children[0],m.implicit!==m.useDecoder._baseState.implicit&&(m.useDecoder=m.useDecoder.clone(),m.useDecoder._baseState.implicit=m.implicit),m.useDecoder},u.prototype._decodeChoice=function(h,p){const m=this._baseState;let d=null,b=!1;return Object.keys(m.choice).some((function(g){const S=h.save(),C=m.choice[g];try{const I=C._decode(h,p);if(h.isError(I))return!1;d={type:g,value:I},b=!0}catch{return h.restore(S),!1}return!0}),this),b?d:h.error("Choice not matched")},u.prototype._createEncoderBuffer=function(h){return new r(h,this.reporter)},u.prototype._encode=function(h,p,m){const d=this._baseState;if(d.default!==null&&d.default===h)return;const b=this._encodeValue(h,p,m);return b===void 0||this._skipDefault(b,p,m)?void 0:b},u.prototype._encodeValue=function(h,p,m){const d=this._baseState;if(d.parent===null)return d.children[0]._encode(h,p||new o);let b=null;if(this.reporter=p,d.optional&&h===void 0){if(d.default===null)return;h=d.default}let g=null,S=!1;if(d.any)b=this._createEncoderBuffer(h);else if(d.choice)b=this._encodeChoice(h,p);else if(d.contains)g=this._getUse(d.contains,m)._encode(h,p),S=!0;else if(d.children)g=d.children.map((function(C){if(C._baseState.tag==="null_")return C._encode(null,p,h);if(C._baseState.key===null)return p.error("Child should have a key");const I=p.enterKey(C._baseState.key);if(typeof h!="object")return p.error("Child expected, but input is not object");const D=C._encode(h[C._baseState.key],p,h);return p.leaveKey(I),D}),this).filter((function(C){return C})),g=this._createEncoderBuffer(g);else if(d.tag==="seqof"||d.tag==="setof"){if(!d.args||d.args.length!==1)return p.error("Too many args for : "+d.tag);if(!Array.isArray(h))return p.error("seqof/setof, but data is not Array");const C=this.clone();C._baseState.implicit=null,g=this._createEncoderBuffer(h.map((function(I){const D=this._baseState;return this._getUse(D.args[0],h)._encode(I,p)}),C))}else d.use!==null?b=this._getUse(d.use,m)._encode(h,p):(g=this._encodePrimitive(d.tag,h),S=!0);if(!d.any&&d.choice===null){const C=d.implicit!==null?d.implicit:d.tag,I=d.implicit===null?"universal":"context";C===null?d.use===null&&p.error("Tag could be omitted only for .use()"):d.use===null&&(b=this._encodeComposite(C,S,I,g))}return d.explicit!==null&&(b=this._encodeComposite(d.explicit,!1,"context",b)),b},u.prototype._encodeChoice=function(h,p){const m=this._baseState,d=m.choice[h.type];return d||s(!1,h.type+" not found in "+JSON.stringify(Object.keys(m.choice))),d._encode(h.value,p)},u.prototype._encodePrimitive=function(h,p){const m=this._baseState;if(/str$/.test(h))return this._encodeStr(p,h);if(h==="objid"&&m.args)return this._encodeObjid(p,m.reverseArgs[0],m.args[1]);if(h==="objid")return this._encodeObjid(p,null,null);if(h==="gentime"||h==="utctime")return this._encodeTime(p,h);if(h==="null_")return this._encodeNull();if(h==="int"||h==="enum")return this._encodeInt(p,m.args&&m.reverseArgs[0]);if(h==="bool")return this._encodeBool(p);if(h==="objDesc")return this._encodeStr(p,h);throw new Error("Unsupported tag: "+h)},u.prototype._isNumstr=function(h){return/^[0-9 ]*$/.test(h)},u.prototype._isPrintstr=function(h){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(h)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(t,l,c){const o=t("inherits");function r(s){this._reporterState={obj:null,path:[],options:s||{},errors:[]}}function n(s,e){this.path=s,this.rethrow(e)}c.Reporter=r,r.prototype.isError=function(s){return s instanceof n},r.prototype.save=function(){const s=this._reporterState;return{obj:s.obj,pathLen:s.path.length}},r.prototype.restore=function(s){const e=this._reporterState;e.obj=s.obj,e.path=e.path.slice(0,s.pathLen)},r.prototype.enterKey=function(s){return this._reporterState.path.push(s)},r.prototype.exitKey=function(s){const e=this._reporterState;e.path=e.path.slice(0,s-1)},r.prototype.leaveKey=function(s,e,i){const u=this._reporterState;this.exitKey(s),u.obj!==null&&(u.obj[e]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){const s=this._reporterState,e=s.obj;return s.obj={},e},r.prototype.leaveObject=function(s){const e=this._reporterState,i=e.obj;return e.obj=s,i},r.prototype.error=function(s){let e;const i=this._reporterState,u=s instanceof n;if(e=u?s:new n(i.path.map((function(a){return"["+JSON.stringify(a)+"]"})).join(""),s.message||s,s.stack),!i.options.partial)throw e;return u||i.errors.push(e),e},r.prototype.wrapResult=function(s){const e=this._reporterState;return e.options.partial?{result:this.isError(s)?null:s,errors:e.errors}:s},o(n,Error),n.prototype.rethrow=function(s){if(this.message=s+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(t,l,c){function o(r){const n={};return Object.keys(r).forEach((function(s){(0|s)==s&&(s|=0);const e=r[s];n[e]=s})),n}c.tagClass={0:"universal",1:"application",2:"context",3:"private"},c.tagClassByName=o(c.tagClass),c.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},c.tagByName=o(c.tag)},{}],177:[function(t,l,c){const o=c;o._reverse=function(r){const n={};return Object.keys(r).forEach((function(s){(0|s)==s&&(s|=0);const e=r[s];n[e]=s})),n},o.der=t("./der")},{"./der":176}],178:[function(t,l,c){const o=t("inherits"),r=t("bn.js"),n=t("../base/buffer").DecoderBuffer,s=t("../base/node"),e=t("../constants/der");function i(p){this.enc="der",this.name=p.name,this.entity=p,this.tree=new u,this.tree._init(p.body)}function u(p){s.call(this,"der",p)}function a(p,m){let d=p.readUInt8(m);if(p.isError(d))return d;const b=e.tagClass[d>>6],g=(32&d)==0;if((31&d)==31){let S=d;for(d=0;(128&S)==128;){if(S=p.readUInt8(m),p.isError(S))return S;d<<=7,d|=127&S}}else d&=31;return{cls:b,primitive:g,tag:d,tagStr:e.tag[d]}}function h(p,m,d){let b=p.readUInt8(d);if(p.isError(b))return b;if(!m&&b===128)return null;if((128&b)==0)return b;const g=127&b;if(g>4)return p.error("length octect is too long");b=0;for(let S=0;S<g;S++){b<<=8;const C=p.readUInt8(d);if(p.isError(C))return C;b|=C}return b}l.exports=i,i.prototype.decode=function(p,m){return n.isDecoderBuffer(p)||(p=new n(p,m)),this.tree._decode(p,m)},o(u,s),u.prototype._peekTag=function(p,m,d){if(p.isEmpty())return!1;const b=p.save(),g=a(p,'Failed to peek tag: "'+m+'"');return p.isError(g)?g:(p.restore(b),g.tag===m||g.tagStr===m||g.tagStr+"of"===m||d)},u.prototype._decodeTag=function(p,m,d){const b=a(p,'Failed to decode tag of "'+m+'"');if(p.isError(b))return b;let g=h(p,b.primitive,'Failed to get length of "'+m+'"');if(p.isError(g))return g;if(!d&&b.tag!==m&&b.tagStr!==m&&b.tagStr+"of"!==m)return p.error('Failed to match tag: "'+m+'"');if(b.primitive||g!==null)return p.skip(g,'Failed to match body of: "'+m+'"');const S=p.save(),C=this._skipUntilEnd(p,'Failed to skip indefinite length body: "'+this.tag+'"');return p.isError(C)?C:(g=p.offset-S.offset,p.restore(S),p.skip(g,'Failed to match body of: "'+m+'"'))},u.prototype._skipUntilEnd=function(p,m){for(;;){const d=a(p,m);if(p.isError(d))return d;const b=h(p,d.primitive,m);if(p.isError(b))return b;let g;if(g=d.primitive||b!==null?p.skip(b):this._skipUntilEnd(p,m),p.isError(g))return g;if(d.tagStr==="end")break}},u.prototype._decodeList=function(p,m,d,b){const g=[];for(;!p.isEmpty();){const S=this._peekTag(p,"end");if(p.isError(S))return S;const C=d.decode(p,"der",b);if(p.isError(C)&&S)break;g.push(C)}return g},u.prototype._decodeStr=function(p,m){if(m==="bitstr"){const d=p.readUInt8();return p.isError(d)?d:{unused:d,data:p.raw()}}if(m==="bmpstr"){const d=p.raw();if(d.length%2==1)return p.error("Decoding of string type: bmpstr length mismatch");let b="";for(let g=0;g<d.length/2;g++)b+=String.fromCharCode(d.readUInt16BE(2*g));return b}if(m==="numstr"){const d=p.raw().toString("ascii");return this._isNumstr(d)?d:p.error("Decoding of string type: numstr unsupported characters")}if(m==="octstr"||m==="objDesc")return p.raw();if(m==="printstr"){const d=p.raw().toString("ascii");return this._isPrintstr(d)?d:p.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(m)?p.raw().toString():p.error("Decoding of string type: "+m+" unsupported")},u.prototype._decodeObjid=function(p,m,d){let b;const g=[];let S=0,C=0;for(;!p.isEmpty();)C=p.readUInt8(),S<<=7,S|=127&C,(128&C)==0&&(g.push(S),S=0);128&C&&g.push(S);const I=g[0]/40|0,D=g[0]%40;if(b=d?g:[I,D].concat(g.slice(1)),m){let z=m[b.join(" ")];z===void 0&&(z=m[b.join(".")]),z!==void 0&&(b=z)}return b},u.prototype._decodeTime=function(p,m){const d=p.raw().toString();let b,g,S,C,I,D;if(m==="gentime")b=0|d.slice(0,4),g=0|d.slice(4,6),S=0|d.slice(6,8),C=0|d.slice(8,10),I=0|d.slice(10,12),D=0|d.slice(12,14);else{if(m!=="utctime")return p.error("Decoding "+m+" time is not supported yet");b=0|d.slice(0,2),g=0|d.slice(2,4),S=0|d.slice(4,6),C=0|d.slice(6,8),I=0|d.slice(8,10),D=0|d.slice(10,12),b=b<70?2e3+b:1900+b}return Date.UTC(b,g-1,S,C,I,D,0)},u.prototype._decodeNull=function(){return null},u.prototype._decodeBool=function(p){const m=p.readUInt8();return p.isError(m)?m:m!==0},u.prototype._decodeInt=function(p,m){const d=p.raw();let b=new r(d);return m&&(b=m[b.toString(10)]||b),b},u.prototype._use=function(p,m){return typeof p=="function"&&(p=p(m)),p._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(t,l,c){const o=c;o.der=t("./der"),o.pem=t("./pem")},{"./der":178,"./pem":180}],180:[function(t,l,c){const o=t("inherits"),r=t("safer-buffer").Buffer,n=t("./der");function s(e){n.call(this,e),this.enc="pem"}o(s,n),l.exports=s,s.prototype.decode=function(e,i){const u=e.toString().split(/[\r\n]+/g),a=i.label.toUpperCase(),h=/^-----(BEGIN|END) ([^-]+)-----$/;let p=-1,m=-1;for(let g=0;g<u.length;g++){const S=u[g].match(h);if(S!==null&&S[2]===a){if(p!==-1){if(S[1]!=="END")break;m=g;break}if(S[1]!=="BEGIN")break;p=g}}if(p===-1||m===-1)throw new Error("PEM section not found for: "+a);const d=u.slice(p+1,m).join("");d.replace(/[^a-z0-9+/=]+/gi,"");const b=r.from(d,"base64");return n.prototype.decode.call(this,b,i)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(t,l,c){const o=t("inherits"),r=t("safer-buffer").Buffer,n=t("../base/node"),s=t("../constants/der");function e(a){this.enc="der",this.name=a.name,this.entity=a,this.tree=new i,this.tree._init(a.body)}function i(a){n.call(this,"der",a)}function u(a){return a<10?"0"+a:a}l.exports=e,e.prototype.encode=function(a,h){return this.tree._encode(a,h).join()},o(i,n),i.prototype._encodeComposite=function(a,h,p,m){const d=(function(S,C,I,D){let z;if(S==="seqof"?S="seq":S==="setof"&&(S="set"),s.tagByName.hasOwnProperty(S))z=s.tagByName[S];else{if(typeof S!="number"||(0|S)!==S)return D.error("Unknown tag: "+S);z=S}return z>=31?D.error("Multi-octet tag encoding unsupported"):(C||(z|=32),z|=s.tagClassByName[I||"universal"]<<6,z)})(a,h,p,this.reporter);if(m.length<128){const S=r.alloc(2);return S[0]=d,S[1]=m.length,this._createEncoderBuffer([S,m])}let b=1;for(let S=m.length;S>=256;S>>=8)b++;const g=r.alloc(2+b);g[0]=d,g[1]=128|b;for(let S=1+b,C=m.length;C>0;S--,C>>=8)g[S]=255&C;return this._createEncoderBuffer([g,m])},i.prototype._encodeStr=function(a,h){if(h==="bitstr")return this._createEncoderBuffer([0|a.unused,a.data]);if(h==="bmpstr"){const p=r.alloc(2*a.length);for(let m=0;m<a.length;m++)p.writeUInt16BE(a.charCodeAt(m),2*m);return this._createEncoderBuffer(p)}return h==="numstr"?this._isNumstr(a)?this._createEncoderBuffer(a):this.reporter.error("Encoding of string type: numstr supports only digits and space"):h==="printstr"?this._isPrintstr(a)?this._createEncoderBuffer(a):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(h)||h==="objDesc"?this._createEncoderBuffer(a):this.reporter.error("Encoding of string type: "+h+" unsupported")},i.prototype._encodeObjid=function(a,h,p){if(typeof a=="string"){if(!h)return this.reporter.error("string objid given, but no values map found");if(!h.hasOwnProperty(a))return this.reporter.error("objid not found in values map");a=h[a].split(/[\s.]+/g);for(let g=0;g<a.length;g++)a[g]|=0}else if(Array.isArray(a)){a=a.slice();for(let g=0;g<a.length;g++)a[g]|=0}if(!Array.isArray(a))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(a));if(!p){if(a[1]>=40)return this.reporter.error("Second objid identifier OOB");a.splice(0,2,40*a[0]+a[1])}let m=0;for(let g=0;g<a.length;g++){let S=a[g];for(m++;S>=128;S>>=7)m++}const d=r.alloc(m);let b=d.length-1;for(let g=a.length-1;g>=0;g--){let S=a[g];for(d[b--]=127&S;(S>>=7)>0;)d[b--]=128|127&S}return this._createEncoderBuffer(d)},i.prototype._encodeTime=function(a,h){let p;const m=new Date(a);return h==="gentime"?p=[u(m.getUTCFullYear()),u(m.getUTCMonth()+1),u(m.getUTCDate()),u(m.getUTCHours()),u(m.getUTCMinutes()),u(m.getUTCSeconds()),"Z"].join(""):h==="utctime"?p=[u(m.getUTCFullYear()%100),u(m.getUTCMonth()+1),u(m.getUTCDate()),u(m.getUTCHours()),u(m.getUTCMinutes()),u(m.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+h+" time is not supported yet"),this._encodeStr(p,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.prototype._encodeInt=function(a,h){if(typeof a=="string"){if(!h)return this.reporter.error("String int or enum given, but no values map");if(!h.hasOwnProperty(a))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(a));a=h[a]}if(typeof a!="number"&&!r.isBuffer(a)){const d=a.toArray();!a.sign&&128&d[0]&&d.unshift(0),a=r.from(d)}if(r.isBuffer(a)){let d=a.length;a.length===0&&d++;const b=r.alloc(d);return a.copy(b),a.length===0&&(b[0]=0),this._createEncoderBuffer(b)}if(a<128)return this._createEncoderBuffer(a);if(a<256)return this._createEncoderBuffer([0,a]);let p=1;for(let d=a;d>=256;d>>=8)p++;const m=new Array(p);for(let d=m.length-1;d>=0;d--)m[d]=255&a,a>>=8;return 128&m[0]&&m.unshift(0),this._createEncoderBuffer(r.from(m))},i.prototype._encodeBool=function(a){return this._createEncoderBuffer(a?255:0)},i.prototype._use=function(a,h){return typeof a=="function"&&(a=a(h)),a._getEncoder("der").tree},i.prototype._skipDefault=function(a,h,p){const m=this._baseState;let d;if(m.default===null)return!1;const b=a.join();if(m.defaultBuffer===void 0&&(m.defaultBuffer=this._encodeValue(m.default,h,p).join()),b.length!==m.defaultBuffer.length)return!1;for(d=0;d<b.length;d++)if(b[d]!==m.defaultBuffer[d])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(t,l,c){const o=c;o.der=t("./der"),o.pem=t("./pem")},{"./der":181,"./pem":183}],183:[function(t,l,c){const o=t("inherits"),r=t("./der");function n(s){r.call(this,s),this.enc="pem"}o(n,r),l.exports=n,n.prototype.encode=function(s,e){const i=r.prototype.encode.call(this,s).toString("base64"),u=["-----BEGIN "+e.label+"-----"];for(let a=0;a<i.length;a+=64)u.push(i.slice(a,a+64));return u.push("-----END "+e.label+"-----"),u.join(`
|
|
263
|
-
`)}},{"./der":181,inherits:440}],184:[function(t,l,c){(function(o,r){function n(A,M){if(!A)throw new Error(M||"Assertion failed")}function s(A,M){A.super_=M;var k=function(){};k.prototype=M.prototype,A.prototype=new k,A.prototype.constructor=A}function e(A,M,k){if(e.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&(M!=="le"&&M!=="be"||(k=M,M=10),this._init(A||0,M||10,k||"be"))}var i;typeof o=="object"?o.exports=e:(void 0).BN=e,e.BN=e,e.wordSize=26;try{i=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch{}function u(A,M){var k=A.charCodeAt(M);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function a(A,M,k){var y=u(A,k);return k-1>=M&&(y|=u(A,k-1)<<4),y}function h(A,M,k,y){for(var w=0,x=Math.min(A.length,k),_=M;_<x;_++){var T=A.charCodeAt(_)-48;w*=y,w+=T>=49?T-49+10:T>=17?T-17+10:T}return w}e.isBN=function(A){return A instanceof e||A!==null&&typeof A=="object"&&A.constructor.wordSize===e.wordSize&&Array.isArray(A.words)},e.max=function(A,M){return A.cmp(M)>0?A:M},e.min=function(A,M){return A.cmp(M)<0?A:M},e.prototype._init=function(A,M,k){if(typeof A=="number")return this._initNumber(A,M,k);if(typeof A=="object")return this._initArray(A,M,k);M==="hex"&&(M=16),n(M===(0|M)&&M>=2&&M<=36);var y=0;(A=A.toString().replace(/\s+/g,""))[0]==="-"&&(y++,this.negative=1),y<A.length&&(M===16?this._parseHex(A,y,k):(this._parseBase(A,M,y),k==="le"&&this._initArray(this.toArray(),M,k)))},e.prototype._initNumber=function(A,M,k){A<0&&(this.negative=1,A=-A),A<67108864?(this.words=[67108863&A],this.length=1):A<4503599627370496?(this.words=[67108863&A,A/67108864&67108863],this.length=2):(n(A<9007199254740992),this.words=[67108863&A,A/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),M,k)},e.prototype._initArray=function(A,M,k){if(n(typeof A.length=="number"),A.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(A.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var w,x,_=0;if(k==="be")for(y=A.length-1,w=0;y>=0;y-=3)x=A[y]|A[y-1]<<8|A[y-2]<<16,this.words[w]|=x<<_&67108863,this.words[w+1]=x>>>26-_&67108863,(_+=24)>=26&&(_-=26,w++);else if(k==="le")for(y=0,w=0;y<A.length;y+=3)x=A[y]|A[y+1]<<8|A[y+2]<<16,this.words[w]|=x<<_&67108863,this.words[w+1]=x>>>26-_&67108863,(_+=24)>=26&&(_-=26,w++);return this.strip()},e.prototype._parseHex=function(A,M,k){this.length=Math.ceil((A.length-M)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var w,x=0,_=0;if(k==="be")for(y=A.length-1;y>=M;y-=2)w=a(A,M,y)<<x,this.words[_]|=67108863&w,x>=18?(x-=18,_+=1,this.words[_]|=w>>>26):x+=8;else for(y=(A.length-M)%2==0?M+1:M;y<A.length;y+=2)w=a(A,M,y)<<x,this.words[_]|=67108863&w,x>=18?(x-=18,_+=1,this.words[_]|=w>>>26):x+=8;this.strip()},e.prototype._parseBase=function(A,M,k){this.words=[0],this.length=1;for(var y=0,w=1;w<=67108863;w*=M)y++;y--,w=w/M|0;for(var x=A.length-k,_=x%y,T=Math.min(x,x-_)+k,O=0,j=k;j<T;j+=y)O=h(A,j,j+y,M),this.imuln(w),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O);if(_!==0){var V=1;for(O=h(A,j,A.length,M),j=0;j<_;j++)V*=M;this.imuln(V),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O)}this.strip()},e.prototype.copy=function(A){A.words=new Array(this.length);for(var M=0;M<this.length;M++)A.words[M]=this.words[M];A.length=this.length,A.negative=this.negative,A.red=this.red},e.prototype.clone=function(){var A=new e(null);return this.copy(A),A},e.prototype._expand=function(A){for(;this.length<A;)this.words[this.length++]=0;return this},e.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},e.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(A,M,k){k.negative=M.negative^A.negative;var y=A.length+M.length|0;k.length=y,y=y-1|0;var w=0|A.words[0],x=0|M.words[0],_=w*x,T=67108863&_,O=_/67108864|0;k.words[0]=T;for(var j=1;j<y;j++){for(var V=O>>>26,X=67108863&O,J=Math.min(j,M.length-1),L=Math.max(0,j-A.length+1);L<=J;L++){var G=j-L|0;V+=(_=(w=0|A.words[G])*(x=0|M.words[L])+X)/67108864|0,X=67108863&_}k.words[j]=0|X,O=0|V}return O!==0?k.words[j]=0|O:k.length--,k.strip()}e.prototype.toString=function(A,M){var k;if(M=0|M||1,(A=A||10)===16||A==="hex"){k="";for(var y=0,w=0,x=0;x<this.length;x++){var _=this.words[x],T=(16777215&(_<<y|w)).toString(16);k=(w=_>>>24-y&16777215)!==0||x!==this.length-1?p[6-T.length]+T+k:T+k,(y+=2)>=26&&(y-=26,x--)}for(w!==0&&(k=w.toString(16)+k);k.length%M!=0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(A===(0|A)&&A>=2&&A<=36){var O=m[A],j=d[A];k="";var V=this.clone();for(V.negative=0;!V.isZero();){var X=V.modn(j).toString(A);k=(V=V.idivn(j)).isZero()?X+k:p[O-X.length]+X+k}for(this.isZero()&&(k="0"+k);k.length%M!=0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}n(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var A=this.words[0];return this.length===2?A+=67108864*this.words[1]:this.length===3&&this.words[2]===1?A+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-A:A},e.prototype.toJSON=function(){return this.toString(16)},e.prototype.toBuffer=function(A,M){return n(i!==void 0),this.toArrayLike(i,A,M)},e.prototype.toArray=function(A,M){return this.toArrayLike(Array,A,M)},e.prototype.toArrayLike=function(A,M,k){var y=this.byteLength(),w=k||Math.max(1,y);n(y<=w,"byte array longer than desired length"),n(w>0,"Requested array length <= 0"),this.strip();var x,_,T=M==="le",O=new A(w),j=this.clone();if(T){for(_=0;!j.isZero();_++)x=j.andln(255),j.iushrn(8),O[_]=x;for(;_<w;_++)O[_]=0}else{for(_=0;_<w-y;_++)O[_]=0;for(_=0;!j.isZero();_++)x=j.andln(255),j.iushrn(8),O[w-_-1]=x}return O},Math.clz32?e.prototype._countBits=function(A){return 32-Math.clz32(A)}:e.prototype._countBits=function(A){var M=A,k=0;return M>=4096&&(k+=13,M>>>=13),M>=64&&(k+=7,M>>>=7),M>=8&&(k+=4,M>>>=4),M>=2&&(k+=2,M>>>=2),k+M},e.prototype._zeroBits=function(A){if(A===0)return 26;var M=A,k=0;return(8191&M)==0&&(k+=13,M>>>=13),(127&M)==0&&(k+=7,M>>>=7),(15&M)==0&&(k+=4,M>>>=4),(3&M)==0&&(k+=2,M>>>=2),(1&M)==0&&k++,k},e.prototype.bitLength=function(){var A=this.words[this.length-1],M=this._countBits(A);return 26*(this.length-1)+M},e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,M=0;M<this.length;M++){var k=this._zeroBits(this.words[M]);if(A+=k,k!==26)break}return A},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(A){return this.negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},e.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(A){for(;this.length<A.length;)this.words[this.length++]=0;for(var M=0;M<A.length;M++)this.words[M]=this.words[M]|A.words[M];return this.strip()},e.prototype.ior=function(A){return n((this.negative|A.negative)==0),this.iuor(A)},e.prototype.or=function(A){return this.length>A.length?this.clone().ior(A):A.clone().ior(this)},e.prototype.uor=function(A){return this.length>A.length?this.clone().iuor(A):A.clone().iuor(this)},e.prototype.iuand=function(A){var M;M=this.length>A.length?A:this;for(var k=0;k<M.length;k++)this.words[k]=this.words[k]&A.words[k];return this.length=M.length,this.strip()},e.prototype.iand=function(A){return n((this.negative|A.negative)==0),this.iuand(A)},e.prototype.and=function(A){return this.length>A.length?this.clone().iand(A):A.clone().iand(this)},e.prototype.uand=function(A){return this.length>A.length?this.clone().iuand(A):A.clone().iuand(this)},e.prototype.iuxor=function(A){var M,k;this.length>A.length?(M=this,k=A):(M=A,k=this);for(var y=0;y<k.length;y++)this.words[y]=M.words[y]^k.words[y];if(this!==M)for(;y<M.length;y++)this.words[y]=M.words[y];return this.length=M.length,this.strip()},e.prototype.ixor=function(A){return n((this.negative|A.negative)==0),this.iuxor(A)},e.prototype.xor=function(A){return this.length>A.length?this.clone().ixor(A):A.clone().ixor(this)},e.prototype.uxor=function(A){return this.length>A.length?this.clone().iuxor(A):A.clone().iuxor(this)},e.prototype.inotn=function(A){n(typeof A=="number"&&A>=0);var M=0|Math.ceil(A/26),k=A%26;this._expand(M),k>0&&M--;for(var y=0;y<M;y++)this.words[y]=67108863&~this.words[y];return k>0&&(this.words[y]=~this.words[y]&67108863>>26-k),this.strip()},e.prototype.notn=function(A){return this.clone().inotn(A)},e.prototype.setn=function(A,M){n(typeof A=="number"&&A>=0);var k=A/26|0,y=A%26;return this._expand(k+1),this.words[k]=M?this.words[k]|1<<y:this.words[k]&~(1<<y),this.strip()},e.prototype.iadd=function(A){var M,k,y;if(this.negative!==0&&A.negative===0)return this.negative=0,M=this.isub(A),this.negative^=1,this._normSign();if(this.negative===0&&A.negative!==0)return A.negative=0,M=this.isub(A),A.negative=1,M._normSign();this.length>A.length?(k=this,y=A):(k=A,y=this);for(var w=0,x=0;x<y.length;x++)M=(0|k.words[x])+(0|y.words[x])+w,this.words[x]=67108863&M,w=M>>>26;for(;w!==0&&x<k.length;x++)M=(0|k.words[x])+w,this.words[x]=67108863&M,w=M>>>26;if(this.length=k.length,w!==0)this.words[this.length]=w,this.length++;else if(k!==this)for(;x<k.length;x++)this.words[x]=k.words[x];return this},e.prototype.add=function(A){var M;return A.negative!==0&&this.negative===0?(A.negative=0,M=this.sub(A),A.negative^=1,M):A.negative===0&&this.negative!==0?(this.negative=0,M=A.sub(this),this.negative=1,M):this.length>A.length?this.clone().iadd(A):A.clone().iadd(this)},e.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var M=this.iadd(A);return A.negative=1,M._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(A),this.negative=1,this._normSign();var k,y,w=this.cmp(A);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(k=this,y=A):(k=A,y=this);for(var x=0,_=0;_<y.length;_++)x=(M=(0|k.words[_])-(0|y.words[_])+x)>>26,this.words[_]=67108863&M;for(;x!==0&&_<k.length;_++)x=(M=(0|k.words[_])+x)>>26,this.words[_]=67108863&M;if(x===0&&_<k.length&&k!==this)for(;_<k.length;_++)this.words[_]=k.words[_];return this.length=Math.max(this.length,_),k!==this&&(this.negative=1),this.strip()},e.prototype.sub=function(A){return this.clone().isub(A)};var g=function(A,M,k){var y,w,x,_=A.words,T=M.words,O=k.words,j=0,V=0|_[0],X=8191&V,J=V>>>13,L=0|_[1],G=8191&L,N=L>>>13,R=0|_[2],U=8191&R,K=R>>>13,rt=0|_[3],Z=8191&rt,et=rt>>>13,ht=0|_[4],lt=8191&ht,Q=ht>>>13,ot=0|_[5],nt=8191&ot,ut=ot>>>13,ct=0|_[6],ft=8191&ct,mt=ct>>>13,gt=0|_[7],xt=8191>,Nt=gt>>>13,It=0|_[8],At=8191&It,Ut=It>>>13,Ht=0|_[9],zt=8191&Ht,Xt=Ht>>>13,jt=0|T[0],Ct=8191&jt,$t=jt>>>13,qt=0|T[1],Pt=8191&qt,fe=qt>>>13,ke=0|T[2],Yt=8191&ke,we=ke>>>13,ue=0|T[3],se=8191&ue,Oe=ue>>>13,xe=0|T[4],Qt=8191&xe,be=xe>>>13,Te=0|T[5],te=8191&Te,_e=Te>>>13,Re=0|T[6],ne=8191&Re,at=Re>>>13,dt=0|T[7],bt=8191&dt,Tt=dt>>>13,Kt=0|T[8],Mt=8191&Kt,ee=Kt>>>13,Zt=0|T[9],Vt=8191&Zt,ie=Zt>>>13;k.negative=A.negative^M.negative,k.length=19;var re=(j+(y=Math.imul(X,Ct))|0)+((8191&(w=(w=Math.imul(X,$t))+Math.imul(J,Ct)|0))<<13)|0;j=((x=Math.imul(J,$t))+(w>>>13)|0)+(re>>>26)|0,re&=67108863,y=Math.imul(G,Ct),w=(w=Math.imul(G,$t))+Math.imul(N,Ct)|0,x=Math.imul(N,$t);var le=(j+(y=y+Math.imul(X,Pt)|0)|0)+((8191&(w=(w=w+Math.imul(X,fe)|0)+Math.imul(J,Pt)|0))<<13)|0;j=((x=x+Math.imul(J,fe)|0)+(w>>>13)|0)+(le>>>26)|0,le&=67108863,y=Math.imul(U,Ct),w=(w=Math.imul(U,$t))+Math.imul(K,Ct)|0,x=Math.imul(K,$t),y=y+Math.imul(G,Pt)|0,w=(w=w+Math.imul(G,fe)|0)+Math.imul(N,Pt)|0,x=x+Math.imul(N,fe)|0;var ze=(j+(y=y+Math.imul(X,Yt)|0)|0)+((8191&(w=(w=w+Math.imul(X,we)|0)+Math.imul(J,Yt)|0))<<13)|0;j=((x=x+Math.imul(J,we)|0)+(w>>>13)|0)+(ze>>>26)|0,ze&=67108863,y=Math.imul(Z,Ct),w=(w=Math.imul(Z,$t))+Math.imul(et,Ct)|0,x=Math.imul(et,$t),y=y+Math.imul(U,Pt)|0,w=(w=w+Math.imul(U,fe)|0)+Math.imul(K,Pt)|0,x=x+Math.imul(K,fe)|0,y=y+Math.imul(G,Yt)|0,w=(w=w+Math.imul(G,we)|0)+Math.imul(N,Yt)|0,x=x+Math.imul(N,we)|0;var $e=(j+(y=y+Math.imul(X,se)|0)|0)+((8191&(w=(w=w+Math.imul(X,Oe)|0)+Math.imul(J,se)|0))<<13)|0;j=((x=x+Math.imul(J,Oe)|0)+(w>>>13)|0)+($e>>>26)|0,$e&=67108863,y=Math.imul(lt,Ct),w=(w=Math.imul(lt,$t))+Math.imul(Q,Ct)|0,x=Math.imul(Q,$t),y=y+Math.imul(Z,Pt)|0,w=(w=w+Math.imul(Z,fe)|0)+Math.imul(et,Pt)|0,x=x+Math.imul(et,fe)|0,y=y+Math.imul(U,Yt)|0,w=(w=w+Math.imul(U,we)|0)+Math.imul(K,Yt)|0,x=x+Math.imul(K,we)|0,y=y+Math.imul(G,se)|0,w=(w=w+Math.imul(G,Oe)|0)+Math.imul(N,se)|0,x=x+Math.imul(N,Oe)|0;var tr=(j+(y=y+Math.imul(X,Qt)|0)|0)+((8191&(w=(w=w+Math.imul(X,be)|0)+Math.imul(J,Qt)|0))<<13)|0;j=((x=x+Math.imul(J,be)|0)+(w>>>13)|0)+(tr>>>26)|0,tr&=67108863,y=Math.imul(nt,Ct),w=(w=Math.imul(nt,$t))+Math.imul(ut,Ct)|0,x=Math.imul(ut,$t),y=y+Math.imul(lt,Pt)|0,w=(w=w+Math.imul(lt,fe)|0)+Math.imul(Q,Pt)|0,x=x+Math.imul(Q,fe)|0,y=y+Math.imul(Z,Yt)|0,w=(w=w+Math.imul(Z,we)|0)+Math.imul(et,Yt)|0,x=x+Math.imul(et,we)|0,y=y+Math.imul(U,se)|0,w=(w=w+Math.imul(U,Oe)|0)+Math.imul(K,se)|0,x=x+Math.imul(K,Oe)|0,y=y+Math.imul(G,Qt)|0,w=(w=w+Math.imul(G,be)|0)+Math.imul(N,Qt)|0,x=x+Math.imul(N,be)|0;var er=(j+(y=y+Math.imul(X,te)|0)|0)+((8191&(w=(w=w+Math.imul(X,_e)|0)+Math.imul(J,te)|0))<<13)|0;j=((x=x+Math.imul(J,_e)|0)+(w>>>13)|0)+(er>>>26)|0,er&=67108863,y=Math.imul(ft,Ct),w=(w=Math.imul(ft,$t))+Math.imul(mt,Ct)|0,x=Math.imul(mt,$t),y=y+Math.imul(nt,Pt)|0,w=(w=w+Math.imul(nt,fe)|0)+Math.imul(ut,Pt)|0,x=x+Math.imul(ut,fe)|0,y=y+Math.imul(lt,Yt)|0,w=(w=w+Math.imul(lt,we)|0)+Math.imul(Q,Yt)|0,x=x+Math.imul(Q,we)|0,y=y+Math.imul(Z,se)|0,w=(w=w+Math.imul(Z,Oe)|0)+Math.imul(et,se)|0,x=x+Math.imul(et,Oe)|0,y=y+Math.imul(U,Qt)|0,w=(w=w+Math.imul(U,be)|0)+Math.imul(K,Qt)|0,x=x+Math.imul(K,be)|0,y=y+Math.imul(G,te)|0,w=(w=w+Math.imul(G,_e)|0)+Math.imul(N,te)|0,x=x+Math.imul(N,_e)|0;var xr=(j+(y=y+Math.imul(X,ne)|0)|0)+((8191&(w=(w=w+Math.imul(X,at)|0)+Math.imul(J,ne)|0))<<13)|0;j=((x=x+Math.imul(J,at)|0)+(w>>>13)|0)+(xr>>>26)|0,xr&=67108863,y=Math.imul(xt,Ct),w=(w=Math.imul(xt,$t))+Math.imul(Nt,Ct)|0,x=Math.imul(Nt,$t),y=y+Math.imul(ft,Pt)|0,w=(w=w+Math.imul(ft,fe)|0)+Math.imul(mt,Pt)|0,x=x+Math.imul(mt,fe)|0,y=y+Math.imul(nt,Yt)|0,w=(w=w+Math.imul(nt,we)|0)+Math.imul(ut,Yt)|0,x=x+Math.imul(ut,we)|0,y=y+Math.imul(lt,se)|0,w=(w=w+Math.imul(lt,Oe)|0)+Math.imul(Q,se)|0,x=x+Math.imul(Q,Oe)|0,y=y+Math.imul(Z,Qt)|0,w=(w=w+Math.imul(Z,be)|0)+Math.imul(et,Qt)|0,x=x+Math.imul(et,be)|0,y=y+Math.imul(U,te)|0,w=(w=w+Math.imul(U,_e)|0)+Math.imul(K,te)|0,x=x+Math.imul(K,_e)|0,y=y+Math.imul(G,ne)|0,w=(w=w+Math.imul(G,at)|0)+Math.imul(N,ne)|0,x=x+Math.imul(N,at)|0;var st=(j+(y=y+Math.imul(X,bt)|0)|0)+((8191&(w=(w=w+Math.imul(X,Tt)|0)+Math.imul(J,bt)|0))<<13)|0;j=((x=x+Math.imul(J,Tt)|0)+(w>>>13)|0)+(st>>>26)|0,st&=67108863,y=Math.imul(At,Ct),w=(w=Math.imul(At,$t))+Math.imul(Ut,Ct)|0,x=Math.imul(Ut,$t),y=y+Math.imul(xt,Pt)|0,w=(w=w+Math.imul(xt,fe)|0)+Math.imul(Nt,Pt)|0,x=x+Math.imul(Nt,fe)|0,y=y+Math.imul(ft,Yt)|0,w=(w=w+Math.imul(ft,we)|0)+Math.imul(mt,Yt)|0,x=x+Math.imul(mt,we)|0,y=y+Math.imul(nt,se)|0,w=(w=w+Math.imul(nt,Oe)|0)+Math.imul(ut,se)|0,x=x+Math.imul(ut,Oe)|0,y=y+Math.imul(lt,Qt)|0,w=(w=w+Math.imul(lt,be)|0)+Math.imul(Q,Qt)|0,x=x+Math.imul(Q,be)|0,y=y+Math.imul(Z,te)|0,w=(w=w+Math.imul(Z,_e)|0)+Math.imul(et,te)|0,x=x+Math.imul(et,_e)|0,y=y+Math.imul(U,ne)|0,w=(w=w+Math.imul(U,at)|0)+Math.imul(K,ne)|0,x=x+Math.imul(K,at)|0,y=y+Math.imul(G,bt)|0,w=(w=w+Math.imul(G,Tt)|0)+Math.imul(N,bt)|0,x=x+Math.imul(N,Tt)|0;var pt=(j+(y=y+Math.imul(X,Mt)|0)|0)+((8191&(w=(w=w+Math.imul(X,ee)|0)+Math.imul(J,Mt)|0))<<13)|0;j=((x=x+Math.imul(J,ee)|0)+(w>>>13)|0)+(pt>>>26)|0,pt&=67108863,y=Math.imul(zt,Ct),w=(w=Math.imul(zt,$t))+Math.imul(Xt,Ct)|0,x=Math.imul(Xt,$t),y=y+Math.imul(At,Pt)|0,w=(w=w+Math.imul(At,fe)|0)+Math.imul(Ut,Pt)|0,x=x+Math.imul(Ut,fe)|0,y=y+Math.imul(xt,Yt)|0,w=(w=w+Math.imul(xt,we)|0)+Math.imul(Nt,Yt)|0,x=x+Math.imul(Nt,we)|0,y=y+Math.imul(ft,se)|0,w=(w=w+Math.imul(ft,Oe)|0)+Math.imul(mt,se)|0,x=x+Math.imul(mt,Oe)|0,y=y+Math.imul(nt,Qt)|0,w=(w=w+Math.imul(nt,be)|0)+Math.imul(ut,Qt)|0,x=x+Math.imul(ut,be)|0,y=y+Math.imul(lt,te)|0,w=(w=w+Math.imul(lt,_e)|0)+Math.imul(Q,te)|0,x=x+Math.imul(Q,_e)|0,y=y+Math.imul(Z,ne)|0,w=(w=w+Math.imul(Z,at)|0)+Math.imul(et,ne)|0,x=x+Math.imul(et,at)|0,y=y+Math.imul(U,bt)|0,w=(w=w+Math.imul(U,Tt)|0)+Math.imul(K,bt)|0,x=x+Math.imul(K,Tt)|0,y=y+Math.imul(G,Mt)|0,w=(w=w+Math.imul(G,ee)|0)+Math.imul(N,Mt)|0,x=x+Math.imul(N,ee)|0;var wt=(j+(y=y+Math.imul(X,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(X,ie)|0)+Math.imul(J,Vt)|0))<<13)|0;j=((x=x+Math.imul(J,ie)|0)+(w>>>13)|0)+(wt>>>26)|0,wt&=67108863,y=Math.imul(zt,Pt),w=(w=Math.imul(zt,fe))+Math.imul(Xt,Pt)|0,x=Math.imul(Xt,fe),y=y+Math.imul(At,Yt)|0,w=(w=w+Math.imul(At,we)|0)+Math.imul(Ut,Yt)|0,x=x+Math.imul(Ut,we)|0,y=y+Math.imul(xt,se)|0,w=(w=w+Math.imul(xt,Oe)|0)+Math.imul(Nt,se)|0,x=x+Math.imul(Nt,Oe)|0,y=y+Math.imul(ft,Qt)|0,w=(w=w+Math.imul(ft,be)|0)+Math.imul(mt,Qt)|0,x=x+Math.imul(mt,be)|0,y=y+Math.imul(nt,te)|0,w=(w=w+Math.imul(nt,_e)|0)+Math.imul(ut,te)|0,x=x+Math.imul(ut,_e)|0,y=y+Math.imul(lt,ne)|0,w=(w=w+Math.imul(lt,at)|0)+Math.imul(Q,ne)|0,x=x+Math.imul(Q,at)|0,y=y+Math.imul(Z,bt)|0,w=(w=w+Math.imul(Z,Tt)|0)+Math.imul(et,bt)|0,x=x+Math.imul(et,Tt)|0,y=y+Math.imul(U,Mt)|0,w=(w=w+Math.imul(U,ee)|0)+Math.imul(K,Mt)|0,x=x+Math.imul(K,ee)|0;var _t=(j+(y=y+Math.imul(G,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(G,ie)|0)+Math.imul(N,Vt)|0))<<13)|0;j=((x=x+Math.imul(N,ie)|0)+(w>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(zt,Yt),w=(w=Math.imul(zt,we))+Math.imul(Xt,Yt)|0,x=Math.imul(Xt,we),y=y+Math.imul(At,se)|0,w=(w=w+Math.imul(At,Oe)|0)+Math.imul(Ut,se)|0,x=x+Math.imul(Ut,Oe)|0,y=y+Math.imul(xt,Qt)|0,w=(w=w+Math.imul(xt,be)|0)+Math.imul(Nt,Qt)|0,x=x+Math.imul(Nt,be)|0,y=y+Math.imul(ft,te)|0,w=(w=w+Math.imul(ft,_e)|0)+Math.imul(mt,te)|0,x=x+Math.imul(mt,_e)|0,y=y+Math.imul(nt,ne)|0,w=(w=w+Math.imul(nt,at)|0)+Math.imul(ut,ne)|0,x=x+Math.imul(ut,at)|0,y=y+Math.imul(lt,bt)|0,w=(w=w+Math.imul(lt,Tt)|0)+Math.imul(Q,bt)|0,x=x+Math.imul(Q,Tt)|0,y=y+Math.imul(Z,Mt)|0,w=(w=w+Math.imul(Z,ee)|0)+Math.imul(et,Mt)|0,x=x+Math.imul(et,ee)|0;var Bt=(j+(y=y+Math.imul(U,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(U,ie)|0)+Math.imul(K,Vt)|0))<<13)|0;j=((x=x+Math.imul(K,ie)|0)+(w>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(zt,se),w=(w=Math.imul(zt,Oe))+Math.imul(Xt,se)|0,x=Math.imul(Xt,Oe),y=y+Math.imul(At,Qt)|0,w=(w=w+Math.imul(At,be)|0)+Math.imul(Ut,Qt)|0,x=x+Math.imul(Ut,be)|0,y=y+Math.imul(xt,te)|0,w=(w=w+Math.imul(xt,_e)|0)+Math.imul(Nt,te)|0,x=x+Math.imul(Nt,_e)|0,y=y+Math.imul(ft,ne)|0,w=(w=w+Math.imul(ft,at)|0)+Math.imul(mt,ne)|0,x=x+Math.imul(mt,at)|0,y=y+Math.imul(nt,bt)|0,w=(w=w+Math.imul(nt,Tt)|0)+Math.imul(ut,bt)|0,x=x+Math.imul(ut,Tt)|0,y=y+Math.imul(lt,Mt)|0,w=(w=w+Math.imul(lt,ee)|0)+Math.imul(Q,Mt)|0,x=x+Math.imul(Q,ee)|0;var Et=(j+(y=y+Math.imul(Z,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(Z,ie)|0)+Math.imul(et,Vt)|0))<<13)|0;j=((x=x+Math.imul(et,ie)|0)+(w>>>13)|0)+(Et>>>26)|0,Et&=67108863,y=Math.imul(zt,Qt),w=(w=Math.imul(zt,be))+Math.imul(Xt,Qt)|0,x=Math.imul(Xt,be),y=y+Math.imul(At,te)|0,w=(w=w+Math.imul(At,_e)|0)+Math.imul(Ut,te)|0,x=x+Math.imul(Ut,_e)|0,y=y+Math.imul(xt,ne)|0,w=(w=w+Math.imul(xt,at)|0)+Math.imul(Nt,ne)|0,x=x+Math.imul(Nt,at)|0,y=y+Math.imul(ft,bt)|0,w=(w=w+Math.imul(ft,Tt)|0)+Math.imul(mt,bt)|0,x=x+Math.imul(mt,Tt)|0,y=y+Math.imul(nt,Mt)|0,w=(w=w+Math.imul(nt,ee)|0)+Math.imul(ut,Mt)|0,x=x+Math.imul(ut,ee)|0;var Rt=(j+(y=y+Math.imul(lt,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(lt,ie)|0)+Math.imul(Q,Vt)|0))<<13)|0;j=((x=x+Math.imul(Q,ie)|0)+(w>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,y=Math.imul(zt,te),w=(w=Math.imul(zt,_e))+Math.imul(Xt,te)|0,x=Math.imul(Xt,_e),y=y+Math.imul(At,ne)|0,w=(w=w+Math.imul(At,at)|0)+Math.imul(Ut,ne)|0,x=x+Math.imul(Ut,at)|0,y=y+Math.imul(xt,bt)|0,w=(w=w+Math.imul(xt,Tt)|0)+Math.imul(Nt,bt)|0,x=x+Math.imul(Nt,Tt)|0,y=y+Math.imul(ft,Mt)|0,w=(w=w+Math.imul(ft,ee)|0)+Math.imul(mt,Mt)|0,x=x+Math.imul(mt,ee)|0;var me=(j+(y=y+Math.imul(nt,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(nt,ie)|0)+Math.imul(ut,Vt)|0))<<13)|0;j=((x=x+Math.imul(ut,ie)|0)+(w>>>13)|0)+(me>>>26)|0,me&=67108863,y=Math.imul(zt,ne),w=(w=Math.imul(zt,at))+Math.imul(Xt,ne)|0,x=Math.imul(Xt,at),y=y+Math.imul(At,bt)|0,w=(w=w+Math.imul(At,Tt)|0)+Math.imul(Ut,bt)|0,x=x+Math.imul(Ut,Tt)|0,y=y+Math.imul(xt,Mt)|0,w=(w=w+Math.imul(xt,ee)|0)+Math.imul(Nt,Mt)|0,x=x+Math.imul(Nt,ee)|0;var oe=(j+(y=y+Math.imul(ft,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(ft,ie)|0)+Math.imul(mt,Vt)|0))<<13)|0;j=((x=x+Math.imul(mt,ie)|0)+(w>>>13)|0)+(oe>>>26)|0,oe&=67108863,y=Math.imul(zt,bt),w=(w=Math.imul(zt,Tt))+Math.imul(Xt,bt)|0,x=Math.imul(Xt,Tt),y=y+Math.imul(At,Mt)|0,w=(w=w+Math.imul(At,ee)|0)+Math.imul(Ut,Mt)|0,x=x+Math.imul(Ut,ee)|0;var he=(j+(y=y+Math.imul(xt,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(xt,ie)|0)+Math.imul(Nt,Vt)|0))<<13)|0;j=((x=x+Math.imul(Nt,ie)|0)+(w>>>13)|0)+(he>>>26)|0,he&=67108863,y=Math.imul(zt,Mt),w=(w=Math.imul(zt,ee))+Math.imul(Xt,Mt)|0,x=Math.imul(Xt,ee);var Jt=(j+(y=y+Math.imul(At,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(At,ie)|0)+Math.imul(Ut,Vt)|0))<<13)|0;j=((x=x+Math.imul(Ut,ie)|0)+(w>>>13)|0)+(Jt>>>26)|0,Jt&=67108863;var Ce=(j+(y=Math.imul(zt,Vt))|0)+((8191&(w=(w=Math.imul(zt,ie))+Math.imul(Xt,Vt)|0))<<13)|0;return j=((x=Math.imul(Xt,ie))+(w>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,O[0]=re,O[1]=le,O[2]=ze,O[3]=$e,O[4]=tr,O[5]=er,O[6]=xr,O[7]=st,O[8]=pt,O[9]=wt,O[10]=_t,O[11]=Bt,O[12]=Et,O[13]=Rt,O[14]=me,O[15]=oe,O[16]=he,O[17]=Jt,O[18]=Ce,j!==0&&(O[19]=j,k.length++),k};function S(A,M,k){return new C().mulp(A,M,k)}function C(A,M){this.x=A,this.y=M}Math.imul||(g=b),e.prototype.mulTo=function(A,M){var k=this.length+A.length;return this.length===10&&A.length===10?g(this,A,M):k<63?b(this,A,M):k<1024?(function(y,w,x){x.negative=w.negative^y.negative,x.length=y.length+w.length;for(var _=0,T=0,O=0;O<x.length-1;O++){var j=T;T=0;for(var V=67108863&_,X=Math.min(O,w.length-1),J=Math.max(0,O-y.length+1);J<=X;J++){var L=O-J,G=(0|y.words[L])*(0|w.words[J]),N=67108863&G;V=67108863&(N=N+V|0),T+=(j=(j=j+(G/67108864|0)|0)+(N>>>26)|0)>>>26,j&=67108863}x.words[O]=V,_=j,j=T}return _!==0?x.words[O]=_:x.length--,x.strip()})(this,A,M):S(this,A,M)},C.prototype.makeRBT=function(A){for(var M=new Array(A),k=e.prototype._countBits(A)-1,y=0;y<A;y++)M[y]=this.revBin(y,k,A);return M},C.prototype.revBin=function(A,M,k){if(A===0||A===k-1)return A;for(var y=0,w=0;w<M;w++)y|=(1&A)<<M-w-1,A>>=1;return y},C.prototype.permute=function(A,M,k,y,w,x){for(var _=0;_<x;_++)y[_]=M[A[_]],w[_]=k[A[_]]},C.prototype.transform=function(A,M,k,y,w,x){this.permute(x,A,M,k,y,w);for(var _=1;_<w;_<<=1)for(var T=_<<1,O=Math.cos(2*Math.PI/T),j=Math.sin(2*Math.PI/T),V=0;V<w;V+=T)for(var X=O,J=j,L=0;L<_;L++){var G=k[V+L],N=y[V+L],R=k[V+L+_],U=y[V+L+_],K=X*R-J*U;U=X*U+J*R,R=K,k[V+L]=G+R,y[V+L]=N+U,k[V+L+_]=G-R,y[V+L+_]=N-U,L!==T&&(K=O*X-j*J,J=O*J+j*X,X=K)}},C.prototype.guessLen13b=function(A,M){var k=1|Math.max(M,A),y=1&k,w=0;for(k=k/2|0;k;k>>>=1)w++;return 1<<w+1+y},C.prototype.conjugate=function(A,M,k){if(!(k<=1))for(var y=0;y<k/2;y++){var w=A[y];A[y]=A[k-y-1],A[k-y-1]=w,w=M[y],M[y]=-M[k-y-1],M[k-y-1]=-w}},C.prototype.normalize13b=function(A,M){for(var k=0,y=0;y<M/2;y++){var w=8192*Math.round(A[2*y+1]/M)+Math.round(A[2*y]/M)+k;A[y]=67108863&w,k=w<67108864?0:w/67108864|0}return A},C.prototype.convert13b=function(A,M,k,y){for(var w=0,x=0;x<M;x++)w+=0|A[x],k[2*x]=8191&w,w>>>=13,k[2*x+1]=8191&w,w>>>=13;for(x=2*M;x<y;++x)k[x]=0;n(w===0),n((-8192&w)==0)},C.prototype.stub=function(A){for(var M=new Array(A),k=0;k<A;k++)M[k]=0;return M},C.prototype.mulp=function(A,M,k){var y=2*this.guessLen13b(A.length,M.length),w=this.makeRBT(y),x=this.stub(y),_=new Array(y),T=new Array(y),O=new Array(y),j=new Array(y),V=new Array(y),X=new Array(y),J=k.words;J.length=y,this.convert13b(A.words,A.length,_,y),this.convert13b(M.words,M.length,j,y),this.transform(_,x,T,O,y,w),this.transform(j,x,V,X,y,w);for(var L=0;L<y;L++){var G=T[L]*V[L]-O[L]*X[L];O[L]=T[L]*X[L]+O[L]*V[L],T[L]=G}return this.conjugate(T,O,y),this.transform(T,O,J,x,y,w),this.conjugate(J,x,y),this.normalize13b(J,y),k.negative=A.negative^M.negative,k.length=A.length+M.length,k.strip()},e.prototype.mul=function(A){var M=new e(null);return M.words=new Array(this.length+A.length),this.mulTo(A,M)},e.prototype.mulf=function(A){var M=new e(null);return M.words=new Array(this.length+A.length),S(this,A,M)},e.prototype.imul=function(A){return this.clone().mulTo(A,this)},e.prototype.imuln=function(A){n(typeof A=="number"),n(A<67108864);for(var M=0,k=0;k<this.length;k++){var y=(0|this.words[k])*A,w=(67108863&y)+(67108863&M);M>>=26,M+=y/67108864|0,M+=w>>>26,this.words[k]=67108863&w}return M!==0&&(this.words[k]=M,this.length++),this},e.prototype.muln=function(A){return this.clone().imuln(A)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(A){var M=(function(x){for(var _=new Array(x.bitLength()),T=0;T<_.length;T++){var O=T/26|0,j=T%26;_[T]=(x.words[O]&1<<j)>>>j}return _})(A);if(M.length===0)return new e(1);for(var k=this,y=0;y<M.length&&M[y]===0;y++,k=k.sqr());if(++y<M.length)for(var w=k.sqr();y<M.length;y++,w=w.sqr())M[y]!==0&&(k=k.mul(w));return k},e.prototype.iushln=function(A){n(typeof A=="number"&&A>=0);var M,k=A%26,y=(A-k)/26,w=67108863>>>26-k<<26-k;if(k!==0){var x=0;for(M=0;M<this.length;M++){var _=this.words[M]&w,T=(0|this.words[M])-_<<k;this.words[M]=T|x,x=_>>>26-k}x&&(this.words[M]=x,this.length++)}if(y!==0){for(M=this.length-1;M>=0;M--)this.words[M+y]=this.words[M];for(M=0;M<y;M++)this.words[M]=0;this.length+=y}return this.strip()},e.prototype.ishln=function(A){return n(this.negative===0),this.iushln(A)},e.prototype.iushrn=function(A,M,k){var y;n(typeof A=="number"&&A>=0),y=M?(M-M%26)/26:0;var w=A%26,x=Math.min((A-w)/26,this.length),_=67108863^67108863>>>w<<w,T=k;if(y-=x,y=Math.max(0,y),T){for(var O=0;O<x;O++)T.words[O]=this.words[O];T.length=x}if(x!==0)if(this.length>x)for(this.length-=x,O=0;O<this.length;O++)this.words[O]=this.words[O+x];else this.words[0]=0,this.length=1;var j=0;for(O=this.length-1;O>=0&&(j!==0||O>=y);O--){var V=0|this.words[O];this.words[O]=j<<26-w|V>>>w,j=V&_}return T&&j!==0&&(T.words[T.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},e.prototype.ishrn=function(A,M,k){return n(this.negative===0),this.iushrn(A,M,k)},e.prototype.shln=function(A){return this.clone().ishln(A)},e.prototype.ushln=function(A){return this.clone().iushln(A)},e.prototype.shrn=function(A){return this.clone().ishrn(A)},e.prototype.ushrn=function(A){return this.clone().iushrn(A)},e.prototype.testn=function(A){n(typeof A=="number"&&A>=0);var M=A%26,k=(A-M)/26,y=1<<M;return!(this.length<=k)&&!!(this.words[k]&y)},e.prototype.imaskn=function(A){n(typeof A=="number"&&A>=0);var M=A%26,k=(A-M)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(M!==0&&k++,this.length=Math.min(k,this.length),M!==0){var y=67108863^67108863>>>M<<M;this.words[this.length-1]&=y}return this.strip()},e.prototype.maskn=function(A){return this.clone().imaskn(A)},e.prototype.iaddn=function(A){return n(typeof A=="number"),n(A<67108864),A<0?this.isubn(-A):this.negative!==0?this.length===1&&(0|this.words[0])<A?(this.words[0]=A-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(A),this.negative=1,this):this._iaddn(A)},e.prototype._iaddn=function(A){this.words[0]+=A;for(var M=0;M<this.length&&this.words[M]>=67108864;M++)this.words[M]-=67108864,M===this.length-1?this.words[M+1]=1:this.words[M+1]++;return this.length=Math.max(this.length,M+1),this},e.prototype.isubn=function(A){if(n(typeof A=="number"),n(A<67108864),A<0)return this.iaddn(-A);if(this.negative!==0)return this.negative=0,this.iaddn(A),this.negative=1,this;if(this.words[0]-=A,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var M=0;M<this.length&&this.words[M]<0;M++)this.words[M]+=67108864,this.words[M+1]-=1;return this.strip()},e.prototype.addn=function(A){return this.clone().iaddn(A)},e.prototype.subn=function(A){return this.clone().isubn(A)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(A,M,k){var y,w,x=A.length+k;this._expand(x);var _=0;for(y=0;y<A.length;y++){w=(0|this.words[y+k])+_;var T=(0|A.words[y])*M;_=((w-=67108863&T)>>26)-(T/67108864|0),this.words[y+k]=67108863&w}for(;y<this.length-k;y++)_=(w=(0|this.words[y+k])+_)>>26,this.words[y+k]=67108863&w;if(_===0)return this.strip();for(n(_===-1),_=0,y=0;y<this.length;y++)_=(w=-(0|this.words[y])+_)>>26,this.words[y]=67108863&w;return this.negative=1,this.strip()},e.prototype._wordDiv=function(A,M){var k=(this.length,A.length),y=this.clone(),w=A,x=0|w.words[w.length-1];(k=26-this._countBits(x))!==0&&(w=w.ushln(k),y.iushln(k),x=0|w.words[w.length-1]);var _,T=y.length-w.length;if(M!=="mod"){(_=new e(null)).length=T+1,_.words=new Array(_.length);for(var O=0;O<_.length;O++)_.words[O]=0}var j=y.clone()._ishlnsubmul(w,1,T);j.negative===0&&(y=j,_&&(_.words[T]=1));for(var V=T-1;V>=0;V--){var X=67108864*(0|y.words[w.length+V])+(0|y.words[w.length+V-1]);for(X=Math.min(X/x|0,67108863),y._ishlnsubmul(w,X,V);y.negative!==0;)X--,y.negative=0,y._ishlnsubmul(w,1,V),y.isZero()||(y.negative^=1);_&&(_.words[V]=X)}return _&&_.strip(),y.strip(),M!=="div"&&k!==0&&y.iushrn(k),{div:_||null,mod:y}},e.prototype.divmod=function(A,M,k){return n(!A.isZero()),this.isZero()?{div:new e(0),mod:new e(0)}:this.negative!==0&&A.negative===0?(x=this.neg().divmod(A,M),M!=="mod"&&(y=x.div.neg()),M!=="div"&&(w=x.mod.neg(),k&&w.negative!==0&&w.iadd(A)),{div:y,mod:w}):this.negative===0&&A.negative!==0?(x=this.divmod(A.neg(),M),M!=="mod"&&(y=x.div.neg()),{div:y,mod:x.mod}):(this.negative&A.negative)!=0?(x=this.neg().divmod(A.neg(),M),M!=="div"&&(w=x.mod.neg(),k&&w.negative!==0&&w.isub(A)),{div:x.div,mod:w}):A.length>this.length||this.cmp(A)<0?{div:new e(0),mod:this}:A.length===1?M==="div"?{div:this.divn(A.words[0]),mod:null}:M==="mod"?{div:null,mod:new e(this.modn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new e(this.modn(A.words[0]))}:this._wordDiv(A,M);var y,w,x},e.prototype.div=function(A){return this.divmod(A,"div",!1).div},e.prototype.mod=function(A){return this.divmod(A,"mod",!1).mod},e.prototype.umod=function(A){return this.divmod(A,"mod",!0).mod},e.prototype.divRound=function(A){var M=this.divmod(A);if(M.mod.isZero())return M.div;var k=M.div.negative!==0?M.mod.isub(A):M.mod,y=A.ushrn(1),w=A.andln(1),x=k.cmp(y);return x<0||w===1&&x===0?M.div:M.div.negative!==0?M.div.isubn(1):M.div.iaddn(1)},e.prototype.modn=function(A){n(A<=67108863);for(var M=(1<<26)%A,k=0,y=this.length-1;y>=0;y--)k=(M*k+(0|this.words[y]))%A;return k},e.prototype.idivn=function(A){n(A<=67108863);for(var M=0,k=this.length-1;k>=0;k--){var y=(0|this.words[k])+67108864*M;this.words[k]=y/A|0,M=y%A}return this.strip()},e.prototype.divn=function(A){return this.clone().idivn(A)},e.prototype.egcd=function(A){n(A.negative===0),n(!A.isZero());var M=this,k=A.clone();M=M.negative!==0?M.umod(A):M.clone();for(var y=new e(1),w=new e(0),x=new e(0),_=new e(1),T=0;M.isEven()&&k.isEven();)M.iushrn(1),k.iushrn(1),++T;for(var O=k.clone(),j=M.clone();!M.isZero();){for(var V=0,X=1;(M.words[0]&X)==0&&V<26;++V,X<<=1);if(V>0)for(M.iushrn(V);V-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(O),w.isub(j)),y.iushrn(1),w.iushrn(1);for(var J=0,L=1;(k.words[0]&L)==0&&J<26;++J,L<<=1);if(J>0)for(k.iushrn(J);J-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(O),_.isub(j)),x.iushrn(1),_.iushrn(1);M.cmp(k)>=0?(M.isub(k),y.isub(x),w.isub(_)):(k.isub(M),x.isub(y),_.isub(w))}return{a:x,b:_,gcd:k.iushln(T)}},e.prototype._invmp=function(A){n(A.negative===0),n(!A.isZero());var M=this,k=A.clone();M=M.negative!==0?M.umod(A):M.clone();for(var y,w=new e(1),x=new e(0),_=k.clone();M.cmpn(1)>0&&k.cmpn(1)>0;){for(var T=0,O=1;(M.words[0]&O)==0&&T<26;++T,O<<=1);if(T>0)for(M.iushrn(T);T-- >0;)w.isOdd()&&w.iadd(_),w.iushrn(1);for(var j=0,V=1;(k.words[0]&V)==0&&j<26;++j,V<<=1);if(j>0)for(k.iushrn(j);j-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);M.cmp(k)>=0?(M.isub(k),w.isub(x)):(k.isub(M),x.isub(w))}return(y=M.cmpn(1)===0?w:x).cmpn(0)<0&&y.iadd(A),y},e.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var M=this.clone(),k=A.clone();M.negative=0,k.negative=0;for(var y=0;M.isEven()&&k.isEven();y++)M.iushrn(1),k.iushrn(1);for(;;){for(;M.isEven();)M.iushrn(1);for(;k.isEven();)k.iushrn(1);var w=M.cmp(k);if(w<0){var x=M;M=k,k=x}else if(w===0||k.cmpn(1)===0)break;M.isub(k)}return k.iushln(y)},e.prototype.invm=function(A){return this.egcd(A).a.umod(A)},e.prototype.isEven=function(){return(1&this.words[0])==0},e.prototype.isOdd=function(){return(1&this.words[0])==1},e.prototype.andln=function(A){return this.words[0]&A},e.prototype.bincn=function(A){n(typeof A=="number");var M=A%26,k=(A-M)/26,y=1<<M;if(this.length<=k)return this._expand(k+1),this.words[k]|=y,this;for(var w=y,x=k;w!==0&&x<this.length;x++){var _=0|this.words[x];w=(_+=w)>>>26,_&=67108863,this.words[x]=_}return w!==0&&(this.words[x]=w,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(A){var M,k=A<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;if(this.strip(),this.length>1)M=1;else{k&&(A=-A),n(A<=67108863,"Number is too big");var y=0|this.words[0];M=y===A?0:y<A?-1:1}return this.negative!==0?0|-M:M},e.prototype.cmp=function(A){if(this.negative!==0&&A.negative===0)return-1;if(this.negative===0&&A.negative!==0)return 1;var M=this.ucmp(A);return this.negative!==0?0|-M:M},e.prototype.ucmp=function(A){if(this.length>A.length)return 1;if(this.length<A.length)return-1;for(var M=0,k=this.length-1;k>=0;k--){var y=0|this.words[k],w=0|A.words[k];if(y!==w){y<w?M=-1:y>w&&(M=1);break}}return M},e.prototype.gtn=function(A){return this.cmpn(A)===1},e.prototype.gt=function(A){return this.cmp(A)===1},e.prototype.gten=function(A){return this.cmpn(A)>=0},e.prototype.gte=function(A){return this.cmp(A)>=0},e.prototype.ltn=function(A){return this.cmpn(A)===-1},e.prototype.lt=function(A){return this.cmp(A)===-1},e.prototype.lten=function(A){return this.cmpn(A)<=0},e.prototype.lte=function(A){return this.cmp(A)<=0},e.prototype.eqn=function(A){return this.cmpn(A)===0},e.prototype.eq=function(A){return this.cmp(A)===0},e.red=function(A){return new W(A)},e.prototype.toRed=function(A){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),A.convertTo(this)._forceRed(A)},e.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(A){return this.red=A,this},e.prototype.forceRed=function(A){return n(!this.red,"Already a number in reduction context"),this._forceRed(A)},e.prototype.redAdd=function(A){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,A)},e.prototype.redIAdd=function(A){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,A)},e.prototype.redSub=function(A){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,A)},e.prototype.redISub=function(A){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,A)},e.prototype.redShl=function(A){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,A)},e.prototype.redMul=function(A){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.mul(this,A)},e.prototype.redIMul=function(A){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.imul(this,A)},e.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(A){return n(this.red&&!A.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,A)};var I={k256:null,p224:null,p192:null,p25519:null};function D(A,M){this.name=A,this.p=new e(M,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function z(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function B(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function F(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(A){if(typeof A=="string"){var M=e._prime(A);this.m=M.p,this.prime=M}else n(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function q(A){W.call(this,A),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new e(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}D.prototype._tmp=function(){var A=new e(null);return A.words=new Array(Math.ceil(this.n/13)),A},D.prototype.ireduce=function(A){var M,k=A;do this.split(k,this.tmp),M=(k=(k=this.imulK(k)).iadd(this.tmp)).bitLength();while(M>this.n);var y=M<this.n?-1:k.ucmp(this.p);return y===0?(k.words[0]=0,k.length=1):y>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},D.prototype.split=function(A,M){A.iushrn(this.n,0,M)},D.prototype.imulK=function(A){return A.imul(this.k)},s(z,D),z.prototype.split=function(A,M){for(var k=Math.min(A.length,9),y=0;y<k;y++)M.words[y]=A.words[y];if(M.length=k,A.length<=9)return A.words[0]=0,void(A.length=1);var w=A.words[9];for(M.words[M.length++]=4194303&w,y=10;y<A.length;y++){var x=0|A.words[y];A.words[y-10]=(4194303&x)<<4|w>>>22,w=x}w>>>=22,A.words[y-10]=w,w===0&&A.length>10?A.length-=10:A.length-=9},z.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var M=0,k=0;k<A.length;k++){var y=0|A.words[k];M+=977*y,A.words[k]=67108863&M,M=64*y+(M/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A},s(P,D),s(B,D),s(F,D),F.prototype.imulK=function(A){for(var M=0,k=0;k<A.length;k++){var y=19*(0|A.words[k])+M,w=67108863&y;y>>>=26,A.words[k]=w,M=y}return M!==0&&(A.words[A.length++]=M),A},e._prime=function(A){if(I[A])return I[A];var M;if(A==="k256")M=new z;else if(A==="p224")M=new P;else if(A==="p192")M=new B;else{if(A!=="p25519")throw new Error("Unknown prime "+A);M=new F}return I[A]=M,M},W.prototype._verify1=function(A){n(A.negative===0,"red works only with positives"),n(A.red,"red works only with red numbers")},W.prototype._verify2=function(A,M){n((A.negative|M.negative)==0,"red works only with positives"),n(A.red&&A.red===M.red,"red works only with red numbers")},W.prototype.imod=function(A){return this.prime?this.prime.ireduce(A)._forceRed(this):A.umod(this.m)._forceRed(this)},W.prototype.neg=function(A){return A.isZero()?A.clone():this.m.sub(A)._forceRed(this)},W.prototype.add=function(A,M){this._verify2(A,M);var k=A.add(M);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},W.prototype.iadd=function(A,M){this._verify2(A,M);var k=A.iadd(M);return k.cmp(this.m)>=0&&k.isub(this.m),k},W.prototype.sub=function(A,M){this._verify2(A,M);var k=A.sub(M);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},W.prototype.isub=function(A,M){this._verify2(A,M);var k=A.isub(M);return k.cmpn(0)<0&&k.iadd(this.m),k},W.prototype.shl=function(A,M){return this._verify1(A),this.imod(A.ushln(M))},W.prototype.imul=function(A,M){return this._verify2(A,M),this.imod(A.imul(M))},W.prototype.mul=function(A,M){return this._verify2(A,M),this.imod(A.mul(M))},W.prototype.isqr=function(A){return this.imul(A,A.clone())},W.prototype.sqr=function(A){return this.mul(A,A)},W.prototype.sqrt=function(A){if(A.isZero())return A.clone();var M=this.m.andln(3);if(n(M%2==1),M===3){var k=this.m.add(new e(1)).iushrn(2);return this.pow(A,k)}for(var y=this.m.subn(1),w=0;!y.isZero()&&y.andln(1)===0;)w++,y.iushrn(1);n(!y.isZero());var x=new e(1).toRed(this),_=x.redNeg(),T=this.m.subn(1).iushrn(1),O=this.m.bitLength();for(O=new e(2*O*O).toRed(this);this.pow(O,T).cmp(_)!==0;)O.redIAdd(_);for(var j=this.pow(O,y),V=this.pow(A,y.addn(1).iushrn(1)),X=this.pow(A,y),J=w;X.cmp(x)!==0;){for(var L=X,G=0;L.cmp(x)!==0;G++)L=L.redSqr();n(G<J);var N=this.pow(j,new e(1).iushln(J-G-1));V=V.redMul(N),j=N.redSqr(),X=X.redMul(j),J=G}return V},W.prototype.invm=function(A){var M=A._invmp(this.m);return M.negative!==0?(M.negative=0,this.imod(M).redNeg()):this.imod(M)},W.prototype.pow=function(A,M){if(M.isZero())return new e(1).toRed(this);if(M.cmpn(1)===0)return A.clone();var k=new Array(16);k[0]=new e(1).toRed(this),k[1]=A;for(var y=2;y<k.length;y++)k[y]=this.mul(k[y-1],A);var w=k[0],x=0,_=0,T=M.bitLength()%26;for(T===0&&(T=26),y=M.length-1;y>=0;y--){for(var O=M.words[y],j=T-1;j>=0;j--){var V=O>>j&1;w!==k[0]&&(w=this.sqr(w)),V!==0||x!==0?(x<<=1,x|=V,(++_===4||y===0&&j===0)&&(w=this.mul(w,k[x]),_=0,x=0)):_=0}T=26}return w},W.prototype.convertTo=function(A){var M=A.umod(this.m);return M===A?M.clone():M},W.prototype.convertFrom=function(A){var M=A.clone();return M.red=null,M},e.mont=function(A){return new q(A)},s(q,W),q.prototype.convertTo=function(A){return this.imod(A.ushln(this.shift))},q.prototype.convertFrom=function(A){var M=this.imod(A.mul(this.rinv));return M.red=null,M},q.prototype.imul=function(A,M){if(A.isZero()||M.isZero())return A.words[0]=0,A.length=1,A;var k=A.imul(M),y=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(y).iushrn(this.shift),x=w;return w.cmp(this.m)>=0?x=w.isub(this.m):w.cmpn(0)<0&&(x=w.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(A,M){if(A.isZero()||M.isZero())return new e(0)._forceRed(this);var k=A.mul(M),y=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(y).iushrn(this.shift),x=w;return w.cmp(this.m)>=0?x=w.isub(this.m):w.cmpn(0)<0&&(x=w.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(A){return this.imod(A._invmp(this.m).mul(this.r2))._forceRed(this)}})(l===void 0||l)},{buffer:188}],185:[function(t,l,c){c.byteLength=function(h){var p=u(h),m=p[0],d=p[1];return 3*(m+d)/4-d},c.toByteArray=function(h){var p,m,d=u(h),b=d[0],g=d[1],S=new n((function(D,z,P){return 3*(z+P)/4-P})(0,b,g)),C=0,I=g>0?b-4:b;for(m=0;m<I;m+=4)p=r[h.charCodeAt(m)]<<18|r[h.charCodeAt(m+1)]<<12|r[h.charCodeAt(m+2)]<<6|r[h.charCodeAt(m+3)],S[C++]=p>>16&255,S[C++]=p>>8&255,S[C++]=255&p;return g===2&&(p=r[h.charCodeAt(m)]<<2|r[h.charCodeAt(m+1)]>>4,S[C++]=255&p),g===1&&(p=r[h.charCodeAt(m)]<<10|r[h.charCodeAt(m+1)]<<4|r[h.charCodeAt(m+2)]>>2,S[C++]=p>>8&255,S[C++]=255&p),S},c.fromByteArray=function(h){for(var p,m=h.length,d=m%3,b=[],g=0,S=m-d;g<S;g+=16383)b.push(a(h,g,g+16383>S?S:g+16383));return d===1?(p=h[m-1],b.push(o[p>>2]+o[p<<4&63]+"==")):d===2&&(p=(h[m-2]<<8)+h[m-1],b.push(o[p>>10]+o[p>>4&63]+o[p<<2&63]+"=")),b.join("")};for(var o=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,i=s.length;e<i;++e)o[e]=s[e],r[s.charCodeAt(e)]=e;function u(h){var p=h.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=h.indexOf("=");return m===-1&&(m=p),[m,m===p?0:4-m%4]}function a(h,p,m){for(var d,b,g=[],S=p;S<m;S+=3)d=(h[S]<<16&16711680)+(h[S+1]<<8&65280)+(255&h[S+2]),g.push(o[(b=d)>>18&63]+o[b>>12&63]+o[b>>6&63]+o[63&b]);return g.join("")}r[45]=62,r[95]=63},{}],186:[function(t,l,c){(function(o,r){function n(k,y){if(!k)throw new Error(y||"Assertion failed")}function s(k,y){k.super_=y;var w=function(){};w.prototype=y.prototype,k.prototype=new w,k.prototype.constructor=k}function e(k,y,w){if(e.isBN(k))return k;this.negative=0,this.words=null,this.length=0,this.red=null,k!==null&&(y!=="le"&&y!=="be"||(w=y,y=10),this._init(k||0,y||10,w||"be"))}var i;typeof o=="object"?o.exports=e:(void 0).BN=e,e.BN=e,e.wordSize=26;try{i=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch{}function u(k,y){var w=k.charCodeAt(y);return w>=48&&w<=57?w-48:w>=65&&w<=70?w-55:w>=97&&w<=102?w-87:void n(!1,"Invalid character in "+k)}function a(k,y,w){var x=u(k,w);return w-1>=y&&(x|=u(k,w-1)<<4),x}function h(k,y,w,x){for(var _=0,T=0,O=Math.min(k.length,w),j=y;j<O;j++){var V=k.charCodeAt(j)-48;_*=x,T=V>=49?V-49+10:V>=17?V-17+10:V,n(V>=0&&T<x,"Invalid character"),_+=T}return _}function p(k,y){k.words=y.words,k.length=y.length,k.negative=y.negative,k.red=y.red}if(e.isBN=function(k){return k instanceof e||k!==null&&typeof k=="object"&&k.constructor.wordSize===e.wordSize&&Array.isArray(k.words)},e.max=function(k,y){return k.cmp(y)>0?k:y},e.min=function(k,y){return k.cmp(y)<0?k:y},e.prototype._init=function(k,y,w){if(typeof k=="number")return this._initNumber(k,y,w);if(typeof k=="object")return this._initArray(k,y,w);y==="hex"&&(y=16),n(y===(0|y)&&y>=2&&y<=36);var x=0;(k=k.toString().replace(/\s+/g,""))[0]==="-"&&(x++,this.negative=1),x<k.length&&(y===16?this._parseHex(k,x,w):(this._parseBase(k,y,x),w==="le"&&this._initArray(this.toArray(),y,w)))},e.prototype._initNumber=function(k,y,w){k<0&&(this.negative=1,k=-k),k<67108864?(this.words=[67108863&k],this.length=1):k<4503599627370496?(this.words=[67108863&k,k/67108864&67108863],this.length=2):(n(k<9007199254740992),this.words=[67108863&k,k/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),y,w)},e.prototype._initArray=function(k,y,w){if(n(typeof k.length=="number"),k.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(k.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var _,T,O=0;if(w==="be")for(x=k.length-1,_=0;x>=0;x-=3)T=k[x]|k[x-1]<<8|k[x-2]<<16,this.words[_]|=T<<O&67108863,this.words[_+1]=T>>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if(w==="le")for(x=0,_=0;x<k.length;x+=3)T=k[x]|k[x+1]<<8|k[x+2]<<16,this.words[_]|=T<<O&67108863,this.words[_+1]=T>>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this._strip()},e.prototype._parseHex=function(k,y,w){this.length=Math.ceil((k.length-y)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var _,T=0,O=0;if(w==="be")for(x=k.length-1;x>=y;x-=2)_=a(k,y,x)<<T,this.words[O]|=67108863&_,T>=18?(T-=18,O+=1,this.words[O]|=_>>>26):T+=8;else for(x=(k.length-y)%2==0?y+1:y;x<k.length;x+=2)_=a(k,y,x)<<T,this.words[O]|=67108863&_,T>=18?(T-=18,O+=1,this.words[O]|=_>>>26):T+=8;this._strip()},e.prototype._parseBase=function(k,y,w){this.words=[0],this.length=1;for(var x=0,_=1;_<=67108863;_*=y)x++;x--,_=_/y|0;for(var T=k.length-w,O=T%x,j=Math.min(T,T-O)+w,V=0,X=w;X<j;X+=x)V=h(k,X,X+x,y),this.imuln(_),this.words[0]+V<67108864?this.words[0]+=V:this._iaddn(V);if(O!==0){var J=1;for(V=h(k,X,k.length,y),X=0;X<O;X++)J*=y;this.imuln(J),this.words[0]+V<67108864?this.words[0]+=V:this._iaddn(V)}this._strip()},e.prototype.copy=function(k){k.words=new Array(this.length);for(var y=0;y<this.length;y++)k.words[y]=this.words[y];k.length=this.length,k.negative=this.negative,k.red=this.red},e.prototype._move=function(k){p(k,this)},e.prototype.clone=function(){var k=new e(null);return this.copy(k),k},e.prototype._expand=function(k){for(;this.length<k;)this.words[this.length++]=0;return this},e.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{e.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch{e.prototype.inspect=m}else e.prototype.inspect=m;function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];e.prototype.toString=function(k,y){var w;if(y=0|y||1,(k=k||10)===16||k==="hex"){w="";for(var x=0,_=0,T=0;T<this.length;T++){var O=this.words[T],j=(16777215&(O<<x|_)).toString(16);_=O>>>24-x&16777215,(x+=2)>=26&&(x-=26,T--),w=_!==0||T!==this.length-1?d[6-j.length]+j+w:j+w}for(_!==0&&(w=_.toString(16)+w);w.length%y!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(k===(0|k)&&k>=2&&k<=36){var V=b[k],X=g[k];w="";var J=this.clone();for(J.negative=0;!J.isZero();){var L=J.modrn(X).toString(k);w=(J=J.idivn(X)).isZero()?L+w:d[V-L.length]+L+w}for(this.isZero()&&(w="0"+w);w.length%y!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}n(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var k=this.words[0];return this.length===2?k+=67108864*this.words[1]:this.length===3&&this.words[2]===1?k+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-k:k},e.prototype.toJSON=function(){return this.toString(16,2)},i&&(e.prototype.toBuffer=function(k,y){return this.toArrayLike(i,k,y)}),e.prototype.toArray=function(k,y){return this.toArrayLike(Array,k,y)};function S(k,y,w){w.negative=y.negative^k.negative;var x=k.length+y.length|0;w.length=x,x=x-1|0;var _=0|k.words[0],T=0|y.words[0],O=_*T,j=67108863&O,V=O/67108864|0;w.words[0]=j;for(var X=1;X<x;X++){for(var J=V>>>26,L=67108863&V,G=Math.min(X,y.length-1),N=Math.max(0,X-k.length+1);N<=G;N++){var R=X-N|0;J+=(O=(_=0|k.words[R])*(T=0|y.words[N])+L)/67108864|0,L=67108863&O}w.words[X]=0|L,V=0|J}return V!==0?w.words[X]=0|V:w.length--,w._strip()}e.prototype.toArrayLike=function(k,y,w){this._strip();var x=this.byteLength(),_=w||Math.max(1,x);n(x<=_,"byte array longer than desired length"),n(_>0,"Requested array length <= 0");var T=(function(O,j){return O.allocUnsafe?O.allocUnsafe(j):new O(j)})(k,_);return this["_toArrayLike"+(y==="le"?"LE":"BE")](T,x),T},e.prototype._toArrayLikeLE=function(k,y){for(var w=0,x=0,_=0,T=0;_<this.length;_++){var O=this.words[_]<<T|x;k[w++]=255&O,w<k.length&&(k[w++]=O>>8&255),w<k.length&&(k[w++]=O>>16&255),T===6?(w<k.length&&(k[w++]=O>>24&255),x=0,T=0):(x=O>>>24,T+=2)}if(w<k.length)for(k[w++]=x;w<k.length;)k[w++]=0},e.prototype._toArrayLikeBE=function(k,y){for(var w=k.length-1,x=0,_=0,T=0;_<this.length;_++){var O=this.words[_]<<T|x;k[w--]=255&O,w>=0&&(k[w--]=O>>8&255),w>=0&&(k[w--]=O>>16&255),T===6?(w>=0&&(k[w--]=O>>24&255),x=0,T=0):(x=O>>>24,T+=2)}if(w>=0)for(k[w--]=x;w>=0;)k[w--]=0},Math.clz32?e.prototype._countBits=function(k){return 32-Math.clz32(k)}:e.prototype._countBits=function(k){var y=k,w=0;return y>=4096&&(w+=13,y>>>=13),y>=64&&(w+=7,y>>>=7),y>=8&&(w+=4,y>>>=4),y>=2&&(w+=2,y>>>=2),w+y},e.prototype._zeroBits=function(k){if(k===0)return 26;var y=k,w=0;return(8191&y)==0&&(w+=13,y>>>=13),(127&y)==0&&(w+=7,y>>>=7),(15&y)==0&&(w+=4,y>>>=4),(3&y)==0&&(w+=2,y>>>=2),(1&y)==0&&w++,w},e.prototype.bitLength=function(){var k=this.words[this.length-1],y=this._countBits(k);return 26*(this.length-1)+y},e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var k=0,y=0;y<this.length;y++){var w=this._zeroBits(this.words[y]);if(k+=w,w!==26)break}return k},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(k){return this.negative!==0?this.abs().inotn(k).iaddn(1):this.clone()},e.prototype.fromTwos=function(k){return this.testn(k-1)?this.notn(k).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(k){for(;this.length<k.length;)this.words[this.length++]=0;for(var y=0;y<k.length;y++)this.words[y]=this.words[y]|k.words[y];return this._strip()},e.prototype.ior=function(k){return n((this.negative|k.negative)==0),this.iuor(k)},e.prototype.or=function(k){return this.length>k.length?this.clone().ior(k):k.clone().ior(this)},e.prototype.uor=function(k){return this.length>k.length?this.clone().iuor(k):k.clone().iuor(this)},e.prototype.iuand=function(k){var y;y=this.length>k.length?k:this;for(var w=0;w<y.length;w++)this.words[w]=this.words[w]&k.words[w];return this.length=y.length,this._strip()},e.prototype.iand=function(k){return n((this.negative|k.negative)==0),this.iuand(k)},e.prototype.and=function(k){return this.length>k.length?this.clone().iand(k):k.clone().iand(this)},e.prototype.uand=function(k){return this.length>k.length?this.clone().iuand(k):k.clone().iuand(this)},e.prototype.iuxor=function(k){var y,w;this.length>k.length?(y=this,w=k):(y=k,w=this);for(var x=0;x<w.length;x++)this.words[x]=y.words[x]^w.words[x];if(this!==y)for(;x<y.length;x++)this.words[x]=y.words[x];return this.length=y.length,this._strip()},e.prototype.ixor=function(k){return n((this.negative|k.negative)==0),this.iuxor(k)},e.prototype.xor=function(k){return this.length>k.length?this.clone().ixor(k):k.clone().ixor(this)},e.prototype.uxor=function(k){return this.length>k.length?this.clone().iuxor(k):k.clone().iuxor(this)},e.prototype.inotn=function(k){n(typeof k=="number"&&k>=0);var y=0|Math.ceil(k/26),w=k%26;this._expand(y),w>0&&y--;for(var x=0;x<y;x++)this.words[x]=67108863&~this.words[x];return w>0&&(this.words[x]=~this.words[x]&67108863>>26-w),this._strip()},e.prototype.notn=function(k){return this.clone().inotn(k)},e.prototype.setn=function(k,y){n(typeof k=="number"&&k>=0);var w=k/26|0,x=k%26;return this._expand(w+1),this.words[w]=y?this.words[w]|1<<x:this.words[w]&~(1<<x),this._strip()},e.prototype.iadd=function(k){var y,w,x;if(this.negative!==0&&k.negative===0)return this.negative=0,y=this.isub(k),this.negative^=1,this._normSign();if(this.negative===0&&k.negative!==0)return k.negative=0,y=this.isub(k),k.negative=1,y._normSign();this.length>k.length?(w=this,x=k):(w=k,x=this);for(var _=0,T=0;T<x.length;T++)y=(0|w.words[T])+(0|x.words[T])+_,this.words[T]=67108863&y,_=y>>>26;for(;_!==0&&T<w.length;T++)y=(0|w.words[T])+_,this.words[T]=67108863&y,_=y>>>26;if(this.length=w.length,_!==0)this.words[this.length]=_,this.length++;else if(w!==this)for(;T<w.length;T++)this.words[T]=w.words[T];return this},e.prototype.add=function(k){var y;return k.negative!==0&&this.negative===0?(k.negative=0,y=this.sub(k),k.negative^=1,y):k.negative===0&&this.negative!==0?(this.negative=0,y=k.sub(this),this.negative=1,y):this.length>k.length?this.clone().iadd(k):k.clone().iadd(this)},e.prototype.isub=function(k){if(k.negative!==0){k.negative=0;var y=this.iadd(k);return k.negative=1,y._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(k),this.negative=1,this._normSign();var w,x,_=this.cmp(k);if(_===0)return this.negative=0,this.length=1,this.words[0]=0,this;_>0?(w=this,x=k):(w=k,x=this);for(var T=0,O=0;O<x.length;O++)T=(y=(0|w.words[O])-(0|x.words[O])+T)>>26,this.words[O]=67108863&y;for(;T!==0&&O<w.length;O++)T=(y=(0|w.words[O])+T)>>26,this.words[O]=67108863&y;if(T===0&&O<w.length&&w!==this)for(;O<w.length;O++)this.words[O]=w.words[O];return this.length=Math.max(this.length,O),w!==this&&(this.negative=1),this._strip()},e.prototype.sub=function(k){return this.clone().isub(k)};var C=function(k,y,w){var x,_,T,O=k.words,j=y.words,V=w.words,X=0,J=0|O[0],L=8191&J,G=J>>>13,N=0|O[1],R=8191&N,U=N>>>13,K=0|O[2],rt=8191&K,Z=K>>>13,et=0|O[3],ht=8191&et,lt=et>>>13,Q=0|O[4],ot=8191&Q,nt=Q>>>13,ut=0|O[5],ct=8191&ut,ft=ut>>>13,mt=0|O[6],gt=8191&mt,xt=mt>>>13,Nt=0|O[7],It=8191&Nt,At=Nt>>>13,Ut=0|O[8],Ht=8191&Ut,zt=Ut>>>13,Xt=0|O[9],jt=8191&Xt,Ct=Xt>>>13,$t=0|j[0],qt=8191&$t,Pt=$t>>>13,fe=0|j[1],ke=8191&fe,Yt=fe>>>13,we=0|j[2],ue=8191&we,se=we>>>13,Oe=0|j[3],xe=8191&Oe,Qt=Oe>>>13,be=0|j[4],Te=8191&be,te=be>>>13,_e=0|j[5],Re=8191&_e,ne=_e>>>13,at=0|j[6],dt=8191&at,bt=at>>>13,Tt=0|j[7],Kt=8191&Tt,Mt=Tt>>>13,ee=0|j[8],Zt=8191&ee,Vt=ee>>>13,ie=0|j[9],re=8191&ie,le=ie>>>13;w.negative=k.negative^y.negative,w.length=19;var ze=(X+(x=Math.imul(L,qt))|0)+((8191&(_=(_=Math.imul(L,Pt))+Math.imul(G,qt)|0))<<13)|0;X=((T=Math.imul(G,Pt))+(_>>>13)|0)+(ze>>>26)|0,ze&=67108863,x=Math.imul(R,qt),_=(_=Math.imul(R,Pt))+Math.imul(U,qt)|0,T=Math.imul(U,Pt);var $e=(X+(x=x+Math.imul(L,ke)|0)|0)+((8191&(_=(_=_+Math.imul(L,Yt)|0)+Math.imul(G,ke)|0))<<13)|0;X=((T=T+Math.imul(G,Yt)|0)+(_>>>13)|0)+($e>>>26)|0,$e&=67108863,x=Math.imul(rt,qt),_=(_=Math.imul(rt,Pt))+Math.imul(Z,qt)|0,T=Math.imul(Z,Pt),x=x+Math.imul(R,ke)|0,_=(_=_+Math.imul(R,Yt)|0)+Math.imul(U,ke)|0,T=T+Math.imul(U,Yt)|0;var tr=(X+(x=x+Math.imul(L,ue)|0)|0)+((8191&(_=(_=_+Math.imul(L,se)|0)+Math.imul(G,ue)|0))<<13)|0;X=((T=T+Math.imul(G,se)|0)+(_>>>13)|0)+(tr>>>26)|0,tr&=67108863,x=Math.imul(ht,qt),_=(_=Math.imul(ht,Pt))+Math.imul(lt,qt)|0,T=Math.imul(lt,Pt),x=x+Math.imul(rt,ke)|0,_=(_=_+Math.imul(rt,Yt)|0)+Math.imul(Z,ke)|0,T=T+Math.imul(Z,Yt)|0,x=x+Math.imul(R,ue)|0,_=(_=_+Math.imul(R,se)|0)+Math.imul(U,ue)|0,T=T+Math.imul(U,se)|0;var er=(X+(x=x+Math.imul(L,xe)|0)|0)+((8191&(_=(_=_+Math.imul(L,Qt)|0)+Math.imul(G,xe)|0))<<13)|0;X=((T=T+Math.imul(G,Qt)|0)+(_>>>13)|0)+(er>>>26)|0,er&=67108863,x=Math.imul(ot,qt),_=(_=Math.imul(ot,Pt))+Math.imul(nt,qt)|0,T=Math.imul(nt,Pt),x=x+Math.imul(ht,ke)|0,_=(_=_+Math.imul(ht,Yt)|0)+Math.imul(lt,ke)|0,T=T+Math.imul(lt,Yt)|0,x=x+Math.imul(rt,ue)|0,_=(_=_+Math.imul(rt,se)|0)+Math.imul(Z,ue)|0,T=T+Math.imul(Z,se)|0,x=x+Math.imul(R,xe)|0,_=(_=_+Math.imul(R,Qt)|0)+Math.imul(U,xe)|0,T=T+Math.imul(U,Qt)|0;var xr=(X+(x=x+Math.imul(L,Te)|0)|0)+((8191&(_=(_=_+Math.imul(L,te)|0)+Math.imul(G,Te)|0))<<13)|0;X=((T=T+Math.imul(G,te)|0)+(_>>>13)|0)+(xr>>>26)|0,xr&=67108863,x=Math.imul(ct,qt),_=(_=Math.imul(ct,Pt))+Math.imul(ft,qt)|0,T=Math.imul(ft,Pt),x=x+Math.imul(ot,ke)|0,_=(_=_+Math.imul(ot,Yt)|0)+Math.imul(nt,ke)|0,T=T+Math.imul(nt,Yt)|0,x=x+Math.imul(ht,ue)|0,_=(_=_+Math.imul(ht,se)|0)+Math.imul(lt,ue)|0,T=T+Math.imul(lt,se)|0,x=x+Math.imul(rt,xe)|0,_=(_=_+Math.imul(rt,Qt)|0)+Math.imul(Z,xe)|0,T=T+Math.imul(Z,Qt)|0,x=x+Math.imul(R,Te)|0,_=(_=_+Math.imul(R,te)|0)+Math.imul(U,Te)|0,T=T+Math.imul(U,te)|0;var st=(X+(x=x+Math.imul(L,Re)|0)|0)+((8191&(_=(_=_+Math.imul(L,ne)|0)+Math.imul(G,Re)|0))<<13)|0;X=((T=T+Math.imul(G,ne)|0)+(_>>>13)|0)+(st>>>26)|0,st&=67108863,x=Math.imul(gt,qt),_=(_=Math.imul(gt,Pt))+Math.imul(xt,qt)|0,T=Math.imul(xt,Pt),x=x+Math.imul(ct,ke)|0,_=(_=_+Math.imul(ct,Yt)|0)+Math.imul(ft,ke)|0,T=T+Math.imul(ft,Yt)|0,x=x+Math.imul(ot,ue)|0,_=(_=_+Math.imul(ot,se)|0)+Math.imul(nt,ue)|0,T=T+Math.imul(nt,se)|0,x=x+Math.imul(ht,xe)|0,_=(_=_+Math.imul(ht,Qt)|0)+Math.imul(lt,xe)|0,T=T+Math.imul(lt,Qt)|0,x=x+Math.imul(rt,Te)|0,_=(_=_+Math.imul(rt,te)|0)+Math.imul(Z,Te)|0,T=T+Math.imul(Z,te)|0,x=x+Math.imul(R,Re)|0,_=(_=_+Math.imul(R,ne)|0)+Math.imul(U,Re)|0,T=T+Math.imul(U,ne)|0;var pt=(X+(x=x+Math.imul(L,dt)|0)|0)+((8191&(_=(_=_+Math.imul(L,bt)|0)+Math.imul(G,dt)|0))<<13)|0;X=((T=T+Math.imul(G,bt)|0)+(_>>>13)|0)+(pt>>>26)|0,pt&=67108863,x=Math.imul(It,qt),_=(_=Math.imul(It,Pt))+Math.imul(At,qt)|0,T=Math.imul(At,Pt),x=x+Math.imul(gt,ke)|0,_=(_=_+Math.imul(gt,Yt)|0)+Math.imul(xt,ke)|0,T=T+Math.imul(xt,Yt)|0,x=x+Math.imul(ct,ue)|0,_=(_=_+Math.imul(ct,se)|0)+Math.imul(ft,ue)|0,T=T+Math.imul(ft,se)|0,x=x+Math.imul(ot,xe)|0,_=(_=_+Math.imul(ot,Qt)|0)+Math.imul(nt,xe)|0,T=T+Math.imul(nt,Qt)|0,x=x+Math.imul(ht,Te)|0,_=(_=_+Math.imul(ht,te)|0)+Math.imul(lt,Te)|0,T=T+Math.imul(lt,te)|0,x=x+Math.imul(rt,Re)|0,_=(_=_+Math.imul(rt,ne)|0)+Math.imul(Z,Re)|0,T=T+Math.imul(Z,ne)|0,x=x+Math.imul(R,dt)|0,_=(_=_+Math.imul(R,bt)|0)+Math.imul(U,dt)|0,T=T+Math.imul(U,bt)|0;var wt=(X+(x=x+Math.imul(L,Kt)|0)|0)+((8191&(_=(_=_+Math.imul(L,Mt)|0)+Math.imul(G,Kt)|0))<<13)|0;X=((T=T+Math.imul(G,Mt)|0)+(_>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(Ht,qt),_=(_=Math.imul(Ht,Pt))+Math.imul(zt,qt)|0,T=Math.imul(zt,Pt),x=x+Math.imul(It,ke)|0,_=(_=_+Math.imul(It,Yt)|0)+Math.imul(At,ke)|0,T=T+Math.imul(At,Yt)|0,x=x+Math.imul(gt,ue)|0,_=(_=_+Math.imul(gt,se)|0)+Math.imul(xt,ue)|0,T=T+Math.imul(xt,se)|0,x=x+Math.imul(ct,xe)|0,_=(_=_+Math.imul(ct,Qt)|0)+Math.imul(ft,xe)|0,T=T+Math.imul(ft,Qt)|0,x=x+Math.imul(ot,Te)|0,_=(_=_+Math.imul(ot,te)|0)+Math.imul(nt,Te)|0,T=T+Math.imul(nt,te)|0,x=x+Math.imul(ht,Re)|0,_=(_=_+Math.imul(ht,ne)|0)+Math.imul(lt,Re)|0,T=T+Math.imul(lt,ne)|0,x=x+Math.imul(rt,dt)|0,_=(_=_+Math.imul(rt,bt)|0)+Math.imul(Z,dt)|0,T=T+Math.imul(Z,bt)|0,x=x+Math.imul(R,Kt)|0,_=(_=_+Math.imul(R,Mt)|0)+Math.imul(U,Kt)|0,T=T+Math.imul(U,Mt)|0;var _t=(X+(x=x+Math.imul(L,Zt)|0)|0)+((8191&(_=(_=_+Math.imul(L,Vt)|0)+Math.imul(G,Zt)|0))<<13)|0;X=((T=T+Math.imul(G,Vt)|0)+(_>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(jt,qt),_=(_=Math.imul(jt,Pt))+Math.imul(Ct,qt)|0,T=Math.imul(Ct,Pt),x=x+Math.imul(Ht,ke)|0,_=(_=_+Math.imul(Ht,Yt)|0)+Math.imul(zt,ke)|0,T=T+Math.imul(zt,Yt)|0,x=x+Math.imul(It,ue)|0,_=(_=_+Math.imul(It,se)|0)+Math.imul(At,ue)|0,T=T+Math.imul(At,se)|0,x=x+Math.imul(gt,xe)|0,_=(_=_+Math.imul(gt,Qt)|0)+Math.imul(xt,xe)|0,T=T+Math.imul(xt,Qt)|0,x=x+Math.imul(ct,Te)|0,_=(_=_+Math.imul(ct,te)|0)+Math.imul(ft,Te)|0,T=T+Math.imul(ft,te)|0,x=x+Math.imul(ot,Re)|0,_=(_=_+Math.imul(ot,ne)|0)+Math.imul(nt,Re)|0,T=T+Math.imul(nt,ne)|0,x=x+Math.imul(ht,dt)|0,_=(_=_+Math.imul(ht,bt)|0)+Math.imul(lt,dt)|0,T=T+Math.imul(lt,bt)|0,x=x+Math.imul(rt,Kt)|0,_=(_=_+Math.imul(rt,Mt)|0)+Math.imul(Z,Kt)|0,T=T+Math.imul(Z,Mt)|0,x=x+Math.imul(R,Zt)|0,_=(_=_+Math.imul(R,Vt)|0)+Math.imul(U,Zt)|0,T=T+Math.imul(U,Vt)|0;var Bt=(X+(x=x+Math.imul(L,re)|0)|0)+((8191&(_=(_=_+Math.imul(L,le)|0)+Math.imul(G,re)|0))<<13)|0;X=((T=T+Math.imul(G,le)|0)+(_>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,x=Math.imul(jt,ke),_=(_=Math.imul(jt,Yt))+Math.imul(Ct,ke)|0,T=Math.imul(Ct,Yt),x=x+Math.imul(Ht,ue)|0,_=(_=_+Math.imul(Ht,se)|0)+Math.imul(zt,ue)|0,T=T+Math.imul(zt,se)|0,x=x+Math.imul(It,xe)|0,_=(_=_+Math.imul(It,Qt)|0)+Math.imul(At,xe)|0,T=T+Math.imul(At,Qt)|0,x=x+Math.imul(gt,Te)|0,_=(_=_+Math.imul(gt,te)|0)+Math.imul(xt,Te)|0,T=T+Math.imul(xt,te)|0,x=x+Math.imul(ct,Re)|0,_=(_=_+Math.imul(ct,ne)|0)+Math.imul(ft,Re)|0,T=T+Math.imul(ft,ne)|0,x=x+Math.imul(ot,dt)|0,_=(_=_+Math.imul(ot,bt)|0)+Math.imul(nt,dt)|0,T=T+Math.imul(nt,bt)|0,x=x+Math.imul(ht,Kt)|0,_=(_=_+Math.imul(ht,Mt)|0)+Math.imul(lt,Kt)|0,T=T+Math.imul(lt,Mt)|0,x=x+Math.imul(rt,Zt)|0,_=(_=_+Math.imul(rt,Vt)|0)+Math.imul(Z,Zt)|0,T=T+Math.imul(Z,Vt)|0;var Et=(X+(x=x+Math.imul(R,re)|0)|0)+((8191&(_=(_=_+Math.imul(R,le)|0)+Math.imul(U,re)|0))<<13)|0;X=((T=T+Math.imul(U,le)|0)+(_>>>13)|0)+(Et>>>26)|0,Et&=67108863,x=Math.imul(jt,ue),_=(_=Math.imul(jt,se))+Math.imul(Ct,ue)|0,T=Math.imul(Ct,se),x=x+Math.imul(Ht,xe)|0,_=(_=_+Math.imul(Ht,Qt)|0)+Math.imul(zt,xe)|0,T=T+Math.imul(zt,Qt)|0,x=x+Math.imul(It,Te)|0,_=(_=_+Math.imul(It,te)|0)+Math.imul(At,Te)|0,T=T+Math.imul(At,te)|0,x=x+Math.imul(gt,Re)|0,_=(_=_+Math.imul(gt,ne)|0)+Math.imul(xt,Re)|0,T=T+Math.imul(xt,ne)|0,x=x+Math.imul(ct,dt)|0,_=(_=_+Math.imul(ct,bt)|0)+Math.imul(ft,dt)|0,T=T+Math.imul(ft,bt)|0,x=x+Math.imul(ot,Kt)|0,_=(_=_+Math.imul(ot,Mt)|0)+Math.imul(nt,Kt)|0,T=T+Math.imul(nt,Mt)|0,x=x+Math.imul(ht,Zt)|0,_=(_=_+Math.imul(ht,Vt)|0)+Math.imul(lt,Zt)|0,T=T+Math.imul(lt,Vt)|0;var Rt=(X+(x=x+Math.imul(rt,re)|0)|0)+((8191&(_=(_=_+Math.imul(rt,le)|0)+Math.imul(Z,re)|0))<<13)|0;X=((T=T+Math.imul(Z,le)|0)+(_>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(jt,xe),_=(_=Math.imul(jt,Qt))+Math.imul(Ct,xe)|0,T=Math.imul(Ct,Qt),x=x+Math.imul(Ht,Te)|0,_=(_=_+Math.imul(Ht,te)|0)+Math.imul(zt,Te)|0,T=T+Math.imul(zt,te)|0,x=x+Math.imul(It,Re)|0,_=(_=_+Math.imul(It,ne)|0)+Math.imul(At,Re)|0,T=T+Math.imul(At,ne)|0,x=x+Math.imul(gt,dt)|0,_=(_=_+Math.imul(gt,bt)|0)+Math.imul(xt,dt)|0,T=T+Math.imul(xt,bt)|0,x=x+Math.imul(ct,Kt)|0,_=(_=_+Math.imul(ct,Mt)|0)+Math.imul(ft,Kt)|0,T=T+Math.imul(ft,Mt)|0,x=x+Math.imul(ot,Zt)|0,_=(_=_+Math.imul(ot,Vt)|0)+Math.imul(nt,Zt)|0,T=T+Math.imul(nt,Vt)|0;var me=(X+(x=x+Math.imul(ht,re)|0)|0)+((8191&(_=(_=_+Math.imul(ht,le)|0)+Math.imul(lt,re)|0))<<13)|0;X=((T=T+Math.imul(lt,le)|0)+(_>>>13)|0)+(me>>>26)|0,me&=67108863,x=Math.imul(jt,Te),_=(_=Math.imul(jt,te))+Math.imul(Ct,Te)|0,T=Math.imul(Ct,te),x=x+Math.imul(Ht,Re)|0,_=(_=_+Math.imul(Ht,ne)|0)+Math.imul(zt,Re)|0,T=T+Math.imul(zt,ne)|0,x=x+Math.imul(It,dt)|0,_=(_=_+Math.imul(It,bt)|0)+Math.imul(At,dt)|0,T=T+Math.imul(At,bt)|0,x=x+Math.imul(gt,Kt)|0,_=(_=_+Math.imul(gt,Mt)|0)+Math.imul(xt,Kt)|0,T=T+Math.imul(xt,Mt)|0,x=x+Math.imul(ct,Zt)|0,_=(_=_+Math.imul(ct,Vt)|0)+Math.imul(ft,Zt)|0,T=T+Math.imul(ft,Vt)|0;var oe=(X+(x=x+Math.imul(ot,re)|0)|0)+((8191&(_=(_=_+Math.imul(ot,le)|0)+Math.imul(nt,re)|0))<<13)|0;X=((T=T+Math.imul(nt,le)|0)+(_>>>13)|0)+(oe>>>26)|0,oe&=67108863,x=Math.imul(jt,Re),_=(_=Math.imul(jt,ne))+Math.imul(Ct,Re)|0,T=Math.imul(Ct,ne),x=x+Math.imul(Ht,dt)|0,_=(_=_+Math.imul(Ht,bt)|0)+Math.imul(zt,dt)|0,T=T+Math.imul(zt,bt)|0,x=x+Math.imul(It,Kt)|0,_=(_=_+Math.imul(It,Mt)|0)+Math.imul(At,Kt)|0,T=T+Math.imul(At,Mt)|0,x=x+Math.imul(gt,Zt)|0,_=(_=_+Math.imul(gt,Vt)|0)+Math.imul(xt,Zt)|0,T=T+Math.imul(xt,Vt)|0;var he=(X+(x=x+Math.imul(ct,re)|0)|0)+((8191&(_=(_=_+Math.imul(ct,le)|0)+Math.imul(ft,re)|0))<<13)|0;X=((T=T+Math.imul(ft,le)|0)+(_>>>13)|0)+(he>>>26)|0,he&=67108863,x=Math.imul(jt,dt),_=(_=Math.imul(jt,bt))+Math.imul(Ct,dt)|0,T=Math.imul(Ct,bt),x=x+Math.imul(Ht,Kt)|0,_=(_=_+Math.imul(Ht,Mt)|0)+Math.imul(zt,Kt)|0,T=T+Math.imul(zt,Mt)|0,x=x+Math.imul(It,Zt)|0,_=(_=_+Math.imul(It,Vt)|0)+Math.imul(At,Zt)|0,T=T+Math.imul(At,Vt)|0;var Jt=(X+(x=x+Math.imul(gt,re)|0)|0)+((8191&(_=(_=_+Math.imul(gt,le)|0)+Math.imul(xt,re)|0))<<13)|0;X=((T=T+Math.imul(xt,le)|0)+(_>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,x=Math.imul(jt,Kt),_=(_=Math.imul(jt,Mt))+Math.imul(Ct,Kt)|0,T=Math.imul(Ct,Mt),x=x+Math.imul(Ht,Zt)|0,_=(_=_+Math.imul(Ht,Vt)|0)+Math.imul(zt,Zt)|0,T=T+Math.imul(zt,Vt)|0;var Ce=(X+(x=x+Math.imul(It,re)|0)|0)+((8191&(_=(_=_+Math.imul(It,le)|0)+Math.imul(At,re)|0))<<13)|0;X=((T=T+Math.imul(At,le)|0)+(_>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,x=Math.imul(jt,Zt),_=(_=Math.imul(jt,Vt))+Math.imul(Ct,Zt)|0,T=Math.imul(Ct,Vt);var Ee=(X+(x=x+Math.imul(Ht,re)|0)|0)+((8191&(_=(_=_+Math.imul(Ht,le)|0)+Math.imul(zt,re)|0))<<13)|0;X=((T=T+Math.imul(zt,le)|0)+(_>>>13)|0)+(Ee>>>26)|0,Ee&=67108863;var Me=(X+(x=Math.imul(jt,re))|0)+((8191&(_=(_=Math.imul(jt,le))+Math.imul(Ct,re)|0))<<13)|0;return X=((T=Math.imul(Ct,le))+(_>>>13)|0)+(Me>>>26)|0,Me&=67108863,V[0]=ze,V[1]=$e,V[2]=tr,V[3]=er,V[4]=xr,V[5]=st,V[6]=pt,V[7]=wt,V[8]=_t,V[9]=Bt,V[10]=Et,V[11]=Rt,V[12]=me,V[13]=oe,V[14]=he,V[15]=Jt,V[16]=Ce,V[17]=Ee,V[18]=Me,X!==0&&(V[19]=X,w.length++),w};function I(k,y,w){w.negative=y.negative^k.negative,w.length=k.length+y.length;for(var x=0,_=0,T=0;T<w.length-1;T++){var O=_;_=0;for(var j=67108863&x,V=Math.min(T,y.length-1),X=Math.max(0,T-k.length+1);X<=V;X++){var J=T-X,L=(0|k.words[J])*(0|y.words[X]),G=67108863&L;j=67108863&(G=G+j|0),_+=(O=(O=O+(L/67108864|0)|0)+(G>>>26)|0)>>>26,O&=67108863}w.words[T]=j,x=O,O=_}return x!==0?w.words[T]=x:w.length--,w._strip()}function D(k,y,w){return I(k,y,w)}Math.imul||(C=S),e.prototype.mulTo=function(k,y){var w=this.length+k.length;return this.length===10&&k.length===10?C(this,k,y):w<63?S(this,k,y):w<1024?I(this,k,y):D(this,k,y)},e.prototype.mul=function(k){var y=new e(null);return y.words=new Array(this.length+k.length),this.mulTo(k,y)},e.prototype.mulf=function(k){var y=new e(null);return y.words=new Array(this.length+k.length),D(this,k,y)},e.prototype.imul=function(k){return this.clone().mulTo(k,this)},e.prototype.imuln=function(k){var y=k<0;y&&(k=-k),n(typeof k=="number"),n(k<67108864);for(var w=0,x=0;x<this.length;x++){var _=(0|this.words[x])*k,T=(67108863&_)+(67108863&w);w>>=26,w+=_/67108864|0,w+=T>>>26,this.words[x]=67108863&T}return w!==0&&(this.words[x]=w,this.length++),y?this.ineg():this},e.prototype.muln=function(k){return this.clone().imuln(k)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(k){var y=(function(T){for(var O=new Array(T.bitLength()),j=0;j<O.length;j++){var V=j/26|0,X=j%26;O[j]=T.words[V]>>>X&1}return O})(k);if(y.length===0)return new e(1);for(var w=this,x=0;x<y.length&&y[x]===0;x++,w=w.sqr());if(++x<y.length)for(var _=w.sqr();x<y.length;x++,_=_.sqr())y[x]!==0&&(w=w.mul(_));return w},e.prototype.iushln=function(k){n(typeof k=="number"&&k>=0);var y,w=k%26,x=(k-w)/26,_=67108863>>>26-w<<26-w;if(w!==0){var T=0;for(y=0;y<this.length;y++){var O=this.words[y]&_,j=(0|this.words[y])-O<<w;this.words[y]=j|T,T=O>>>26-w}T&&(this.words[y]=T,this.length++)}if(x!==0){for(y=this.length-1;y>=0;y--)this.words[y+x]=this.words[y];for(y=0;y<x;y++)this.words[y]=0;this.length+=x}return this._strip()},e.prototype.ishln=function(k){return n(this.negative===0),this.iushln(k)},e.prototype.iushrn=function(k,y,w){var x;n(typeof k=="number"&&k>=0),x=y?(y-y%26)/26:0;var _=k%26,T=Math.min((k-_)/26,this.length),O=67108863^67108863>>>_<<_,j=w;if(x-=T,x=Math.max(0,x),j){for(var V=0;V<T;V++)j.words[V]=this.words[V];j.length=T}if(T!==0)if(this.length>T)for(this.length-=T,V=0;V<this.length;V++)this.words[V]=this.words[V+T];else this.words[0]=0,this.length=1;var X=0;for(V=this.length-1;V>=0&&(X!==0||V>=x);V--){var J=0|this.words[V];this.words[V]=X<<26-_|J>>>_,X=J&O}return j&&X!==0&&(j.words[j.length++]=X),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},e.prototype.ishrn=function(k,y,w){return n(this.negative===0),this.iushrn(k,y,w)},e.prototype.shln=function(k){return this.clone().ishln(k)},e.prototype.ushln=function(k){return this.clone().iushln(k)},e.prototype.shrn=function(k){return this.clone().ishrn(k)},e.prototype.ushrn=function(k){return this.clone().iushrn(k)},e.prototype.testn=function(k){n(typeof k=="number"&&k>=0);var y=k%26,w=(k-y)/26,x=1<<y;return!(this.length<=w)&&!!(this.words[w]&x)},e.prototype.imaskn=function(k){n(typeof k=="number"&&k>=0);var y=k%26,w=(k-y)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(y!==0&&w++,this.length=Math.min(w,this.length),y!==0){var x=67108863^67108863>>>y<<y;this.words[this.length-1]&=x}return this._strip()},e.prototype.maskn=function(k){return this.clone().imaskn(k)},e.prototype.iaddn=function(k){return n(typeof k=="number"),n(k<67108864),k<0?this.isubn(-k):this.negative!==0?this.length===1&&(0|this.words[0])<=k?(this.words[0]=k-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(k),this.negative=1,this):this._iaddn(k)},e.prototype._iaddn=function(k){this.words[0]+=k;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},e.prototype.isubn=function(k){if(n(typeof k=="number"),n(k<67108864),k<0)return this.iaddn(-k);if(this.negative!==0)return this.negative=0,this.iaddn(k),this.negative=1,this;if(this.words[0]-=k,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this._strip()},e.prototype.addn=function(k){return this.clone().iaddn(k)},e.prototype.subn=function(k){return this.clone().isubn(k)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(k,y,w){var x,_,T=k.length+w;this._expand(T);var O=0;for(x=0;x<k.length;x++){_=(0|this.words[x+w])+O;var j=(0|k.words[x])*y;O=((_-=67108863&j)>>26)-(j/67108864|0),this.words[x+w]=67108863&_}for(;x<this.length-w;x++)O=(_=(0|this.words[x+w])+O)>>26,this.words[x+w]=67108863&_;if(O===0)return this._strip();for(n(O===-1),O=0,x=0;x<this.length;x++)O=(_=-(0|this.words[x])+O)>>26,this.words[x]=67108863&_;return this.negative=1,this._strip()},e.prototype._wordDiv=function(k,y){var w=(this.length,k.length),x=this.clone(),_=k,T=0|_.words[_.length-1];(w=26-this._countBits(T))!==0&&(_=_.ushln(w),x.iushln(w),T=0|_.words[_.length-1]);var O,j=x.length-_.length;if(y!=="mod"){(O=new e(null)).length=j+1,O.words=new Array(O.length);for(var V=0;V<O.length;V++)O.words[V]=0}var X=x.clone()._ishlnsubmul(_,1,j);X.negative===0&&(x=X,O&&(O.words[j]=1));for(var J=j-1;J>=0;J--){var L=67108864*(0|x.words[_.length+J])+(0|x.words[_.length+J-1]);for(L=Math.min(L/T|0,67108863),x._ishlnsubmul(_,L,J);x.negative!==0;)L--,x.negative=0,x._ishlnsubmul(_,1,J),x.isZero()||(x.negative^=1);O&&(O.words[J]=L)}return O&&O._strip(),x._strip(),y!=="div"&&w!==0&&x.iushrn(w),{div:O||null,mod:x}},e.prototype.divmod=function(k,y,w){return n(!k.isZero()),this.isZero()?{div:new e(0),mod:new e(0)}:this.negative!==0&&k.negative===0?(T=this.neg().divmod(k,y),y!=="mod"&&(x=T.div.neg()),y!=="div"&&(_=T.mod.neg(),w&&_.negative!==0&&_.iadd(k)),{div:x,mod:_}):this.negative===0&&k.negative!==0?(T=this.divmod(k.neg(),y),y!=="mod"&&(x=T.div.neg()),{div:x,mod:T.mod}):(this.negative&k.negative)!=0?(T=this.neg().divmod(k.neg(),y),y!=="div"&&(_=T.mod.neg(),w&&_.negative!==0&&_.isub(k)),{div:T.div,mod:_}):k.length>this.length||this.cmp(k)<0?{div:new e(0),mod:this}:k.length===1?y==="div"?{div:this.divn(k.words[0]),mod:null}:y==="mod"?{div:null,mod:new e(this.modrn(k.words[0]))}:{div:this.divn(k.words[0]),mod:new e(this.modrn(k.words[0]))}:this._wordDiv(k,y);var x,_,T},e.prototype.div=function(k){return this.divmod(k,"div",!1).div},e.prototype.mod=function(k){return this.divmod(k,"mod",!1).mod},e.prototype.umod=function(k){return this.divmod(k,"mod",!0).mod},e.prototype.divRound=function(k){var y=this.divmod(k);if(y.mod.isZero())return y.div;var w=y.div.negative!==0?y.mod.isub(k):y.mod,x=k.ushrn(1),_=k.andln(1),T=w.cmp(x);return T<0||_===1&&T===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},e.prototype.modrn=function(k){var y=k<0;y&&(k=-k),n(k<=67108863);for(var w=(1<<26)%k,x=0,_=this.length-1;_>=0;_--)x=(w*x+(0|this.words[_]))%k;return y?-x:x},e.prototype.modn=function(k){return this.modrn(k)},e.prototype.idivn=function(k){var y=k<0;y&&(k=-k),n(k<=67108863);for(var w=0,x=this.length-1;x>=0;x--){var _=(0|this.words[x])+67108864*w;this.words[x]=_/k|0,w=_%k}return this._strip(),y?this.ineg():this},e.prototype.divn=function(k){return this.clone().idivn(k)},e.prototype.egcd=function(k){n(k.negative===0),n(!k.isZero());var y=this,w=k.clone();y=y.negative!==0?y.umod(k):y.clone();for(var x=new e(1),_=new e(0),T=new e(0),O=new e(1),j=0;y.isEven()&&w.isEven();)y.iushrn(1),w.iushrn(1),++j;for(var V=w.clone(),X=y.clone();!y.isZero();){for(var J=0,L=1;(y.words[0]&L)==0&&J<26;++J,L<<=1);if(J>0)for(y.iushrn(J);J-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(V),_.isub(X)),x.iushrn(1),_.iushrn(1);for(var G=0,N=1;(w.words[0]&N)==0&&G<26;++G,N<<=1);if(G>0)for(w.iushrn(G);G-- >0;)(T.isOdd()||O.isOdd())&&(T.iadd(V),O.isub(X)),T.iushrn(1),O.iushrn(1);y.cmp(w)>=0?(y.isub(w),x.isub(T),_.isub(O)):(w.isub(y),T.isub(x),O.isub(_))}return{a:T,b:O,gcd:w.iushln(j)}},e.prototype._invmp=function(k){n(k.negative===0),n(!k.isZero());var y=this,w=k.clone();y=y.negative!==0?y.umod(k):y.clone();for(var x,_=new e(1),T=new e(0),O=w.clone();y.cmpn(1)>0&&w.cmpn(1)>0;){for(var j=0,V=1;(y.words[0]&V)==0&&j<26;++j,V<<=1);if(j>0)for(y.iushrn(j);j-- >0;)_.isOdd()&&_.iadd(O),_.iushrn(1);for(var X=0,J=1;(w.words[0]&J)==0&&X<26;++X,J<<=1);if(X>0)for(w.iushrn(X);X-- >0;)T.isOdd()&&T.iadd(O),T.iushrn(1);y.cmp(w)>=0?(y.isub(w),_.isub(T)):(w.isub(y),T.isub(_))}return(x=y.cmpn(1)===0?_:T).cmpn(0)<0&&x.iadd(k),x},e.prototype.gcd=function(k){if(this.isZero())return k.abs();if(k.isZero())return this.abs();var y=this.clone(),w=k.clone();y.negative=0,w.negative=0;for(var x=0;y.isEven()&&w.isEven();x++)y.iushrn(1),w.iushrn(1);for(;;){for(;y.isEven();)y.iushrn(1);for(;w.isEven();)w.iushrn(1);var _=y.cmp(w);if(_<0){var T=y;y=w,w=T}else if(_===0||w.cmpn(1)===0)break;y.isub(w)}return w.iushln(x)},e.prototype.invm=function(k){return this.egcd(k).a.umod(k)},e.prototype.isEven=function(){return(1&this.words[0])==0},e.prototype.isOdd=function(){return(1&this.words[0])==1},e.prototype.andln=function(k){return this.words[0]&k},e.prototype.bincn=function(k){n(typeof k=="number");var y=k%26,w=(k-y)/26,x=1<<y;if(this.length<=w)return this._expand(w+1),this.words[w]|=x,this;for(var _=x,T=w;_!==0&&T<this.length;T++){var O=0|this.words[T];_=(O+=_)>>>26,O&=67108863,this.words[T]=O}return _!==0&&(this.words[T]=_,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(k){var y,w=k<0;if(this.negative!==0&&!w)return-1;if(this.negative===0&&w)return 1;if(this._strip(),this.length>1)y=1;else{w&&(k=-k),n(k<=67108863,"Number is too big");var x=0|this.words[0];y=x===k?0:x<k?-1:1}return this.negative!==0?0|-y:y},e.prototype.cmp=function(k){if(this.negative!==0&&k.negative===0)return-1;if(this.negative===0&&k.negative!==0)return 1;var y=this.ucmp(k);return this.negative!==0?0|-y:y},e.prototype.ucmp=function(k){if(this.length>k.length)return 1;if(this.length<k.length)return-1;for(var y=0,w=this.length-1;w>=0;w--){var x=0|this.words[w],_=0|k.words[w];if(x!==_){x<_?y=-1:x>_&&(y=1);break}}return y},e.prototype.gtn=function(k){return this.cmpn(k)===1},e.prototype.gt=function(k){return this.cmp(k)===1},e.prototype.gten=function(k){return this.cmpn(k)>=0},e.prototype.gte=function(k){return this.cmp(k)>=0},e.prototype.ltn=function(k){return this.cmpn(k)===-1},e.prototype.lt=function(k){return this.cmp(k)===-1},e.prototype.lten=function(k){return this.cmpn(k)<=0},e.prototype.lte=function(k){return this.cmp(k)<=0},e.prototype.eqn=function(k){return this.cmpn(k)===0},e.prototype.eq=function(k){return this.cmp(k)===0},e.red=function(k){return new A(k)},e.prototype.toRed=function(k){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),k.convertTo(this)._forceRed(k)},e.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(k){return this.red=k,this},e.prototype.forceRed=function(k){return n(!this.red,"Already a number in reduction context"),this._forceRed(k)},e.prototype.redAdd=function(k){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,k)},e.prototype.redIAdd=function(k){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,k)},e.prototype.redSub=function(k){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,k)},e.prototype.redISub=function(k){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,k)},e.prototype.redShl=function(k){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,k)},e.prototype.redMul=function(k){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.mul(this,k)},e.prototype.redIMul=function(k){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.imul(this,k)},e.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(k){return n(this.red&&!k.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,k)};var z={k256:null,p224:null,p192:null,p25519:null};function P(k,y){this.name=k,this.p=new e(y,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function B(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function F(){P.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function W(){P.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function q(){P.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(k){if(typeof k=="string"){var y=e._prime(k);this.m=y.p,this.prime=y}else n(k.gtn(1),"modulus must be greater than 1"),this.m=k,this.prime=null}function M(k){A.call(this,k),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new e(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}P.prototype._tmp=function(){var k=new e(null);return k.words=new Array(Math.ceil(this.n/13)),k},P.prototype.ireduce=function(k){var y,w=k;do this.split(w,this.tmp),y=(w=(w=this.imulK(w)).iadd(this.tmp)).bitLength();while(y>this.n);var x=y<this.n?-1:w.ucmp(this.p);return x===0?(w.words[0]=0,w.length=1):x>0?w.isub(this.p):w.strip!==void 0?w.strip():w._strip(),w},P.prototype.split=function(k,y){k.iushrn(this.n,0,y)},P.prototype.imulK=function(k){return k.imul(this.k)},s(B,P),B.prototype.split=function(k,y){for(var w=Math.min(k.length,9),x=0;x<w;x++)y.words[x]=k.words[x];if(y.length=w,k.length<=9)return k.words[0]=0,void(k.length=1);var _=k.words[9];for(y.words[y.length++]=4194303&_,x=10;x<k.length;x++){var T=0|k.words[x];k.words[x-10]=(4194303&T)<<4|_>>>22,_=T}_>>>=22,k.words[x-10]=_,_===0&&k.length>10?k.length-=10:k.length-=9},B.prototype.imulK=function(k){k.words[k.length]=0,k.words[k.length+1]=0,k.length+=2;for(var y=0,w=0;w<k.length;w++){var x=0|k.words[w];y+=977*x,k.words[w]=67108863&y,y=64*x+(y/67108864|0)}return k.words[k.length-1]===0&&(k.length--,k.words[k.length-1]===0&&k.length--),k},s(F,P),s(W,P),s(q,P),q.prototype.imulK=function(k){for(var y=0,w=0;w<k.length;w++){var x=19*(0|k.words[w])+y,_=67108863&x;x>>>=26,k.words[w]=_,y=x}return y!==0&&(k.words[k.length++]=y),k},e._prime=function(k){if(z[k])return z[k];var y;if(k==="k256")y=new B;else if(k==="p224")y=new F;else if(k==="p192")y=new W;else{if(k!=="p25519")throw new Error("Unknown prime "+k);y=new q}return z[k]=y,y},A.prototype._verify1=function(k){n(k.negative===0,"red works only with positives"),n(k.red,"red works only with red numbers")},A.prototype._verify2=function(k,y){n((k.negative|y.negative)==0,"red works only with positives"),n(k.red&&k.red===y.red,"red works only with red numbers")},A.prototype.imod=function(k){return this.prime?this.prime.ireduce(k)._forceRed(this):(p(k,k.umod(this.m)._forceRed(this)),k)},A.prototype.neg=function(k){return k.isZero()?k.clone():this.m.sub(k)._forceRed(this)},A.prototype.add=function(k,y){this._verify2(k,y);var w=k.add(y);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},A.prototype.iadd=function(k,y){this._verify2(k,y);var w=k.iadd(y);return w.cmp(this.m)>=0&&w.isub(this.m),w},A.prototype.sub=function(k,y){this._verify2(k,y);var w=k.sub(y);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},A.prototype.isub=function(k,y){this._verify2(k,y);var w=k.isub(y);return w.cmpn(0)<0&&w.iadd(this.m),w},A.prototype.shl=function(k,y){return this._verify1(k),this.imod(k.ushln(y))},A.prototype.imul=function(k,y){return this._verify2(k,y),this.imod(k.imul(y))},A.prototype.mul=function(k,y){return this._verify2(k,y),this.imod(k.mul(y))},A.prototype.isqr=function(k){return this.imul(k,k.clone())},A.prototype.sqr=function(k){return this.mul(k,k)},A.prototype.sqrt=function(k){if(k.isZero())return k.clone();var y=this.m.andln(3);if(n(y%2==1),y===3){var w=this.m.add(new e(1)).iushrn(2);return this.pow(k,w)}for(var x=this.m.subn(1),_=0;!x.isZero()&&x.andln(1)===0;)_++,x.iushrn(1);n(!x.isZero());var T=new e(1).toRed(this),O=T.redNeg(),j=this.m.subn(1).iushrn(1),V=this.m.bitLength();for(V=new e(2*V*V).toRed(this);this.pow(V,j).cmp(O)!==0;)V.redIAdd(O);for(var X=this.pow(V,x),J=this.pow(k,x.addn(1).iushrn(1)),L=this.pow(k,x),G=_;L.cmp(T)!==0;){for(var N=L,R=0;N.cmp(T)!==0;R++)N=N.redSqr();n(R<G);var U=this.pow(X,new e(1).iushln(G-R-1));J=J.redMul(U),X=U.redSqr(),L=L.redMul(X),G=R}return J},A.prototype.invm=function(k){var y=k._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},A.prototype.pow=function(k,y){if(y.isZero())return new e(1).toRed(this);if(y.cmpn(1)===0)return k.clone();var w=new Array(16);w[0]=new e(1).toRed(this),w[1]=k;for(var x=2;x<w.length;x++)w[x]=this.mul(w[x-1],k);var _=w[0],T=0,O=0,j=y.bitLength()%26;for(j===0&&(j=26),x=y.length-1;x>=0;x--){for(var V=y.words[x],X=j-1;X>=0;X--){var J=V>>X&1;_!==w[0]&&(_=this.sqr(_)),J!==0||T!==0?(T<<=1,T|=J,(++O===4||x===0&&X===0)&&(_=this.mul(_,w[T]),O=0,T=0)):O=0}j=26}return _},A.prototype.convertTo=function(k){var y=k.umod(this.m);return y===k?y.clone():y},A.prototype.convertFrom=function(k){var y=k.clone();return y.red=null,y},e.mont=function(k){return new M(k)},s(M,A),M.prototype.convertTo=function(k){return this.imod(k.ushln(this.shift))},M.prototype.convertFrom=function(k){var y=this.imod(k.mul(this.rinv));return y.red=null,y},M.prototype.imul=function(k,y){if(k.isZero()||y.isZero())return k.words[0]=0,k.length=1,k;var w=k.imul(y),x=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(x).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},M.prototype.mul=function(k,y){if(k.isZero()||y.isZero())return new e(0)._forceRed(this);var w=k.mul(y),x=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(x).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},M.prototype.invm=function(k){return this.imod(k._invmp(this.m).mul(this.r2))._forceRed(this)}})(l===void 0||l)},{buffer:188}],187:[function(t,l,c){var o;function r(s){this.rand=s}if(l.exports=function(s){return o||(o=new r(null)),o.generate(s)},l.exports.Rand=r,r.prototype.generate=function(s){return this._rand(s)},r.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var e=new Uint8Array(s),i=0;i<e.length;i++)e[i]=this.rand.getByte();return e},typeof self=="object")self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(s){var e=new Uint8Array(s);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(s){var e=new Uint8Array(s);return self.msCrypto.getRandomValues(e),e}:typeof window=="object"&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var n=t("crypto");if(typeof n.randomBytes!="function")throw new Error("Not supported");r.prototype._rand=function(s){return n.randomBytes(s)}}catch{}},{crypto:188}],188:[function(t,l,c){},{}],189:[function(t,l,c){var o=t("safe-buffer").Buffer;function r(a){o.isBuffer(a)||(a=o.from(a));for(var h=a.length/4|0,p=new Array(h),m=0;m<h;m++)p[m]=a.readUInt32BE(4*m);return p}function n(a){for(;0<a.length;a++)a[0]=0}function s(a,h,p,m,d){for(var b,g,S,C,I=p[0],D=p[1],z=p[2],P=p[3],B=a[0]^h[0],F=a[1]^h[1],W=a[2]^h[2],q=a[3]^h[3],A=4,M=1;M<d;M++)b=I[B>>>24]^D[F>>>16&255]^z[W>>>8&255]^P[255&q]^h[A++],g=I[F>>>24]^D[W>>>16&255]^z[q>>>8&255]^P[255&B]^h[A++],S=I[W>>>24]^D[q>>>16&255]^z[B>>>8&255]^P[255&F]^h[A++],C=I[q>>>24]^D[B>>>16&255]^z[F>>>8&255]^P[255&W]^h[A++],B=b,F=g,W=S,q=C;return b=(m[B>>>24]<<24|m[F>>>16&255]<<16|m[W>>>8&255]<<8|m[255&q])^h[A++],g=(m[F>>>24]<<24|m[W>>>16&255]<<16|m[q>>>8&255]<<8|m[255&B])^h[A++],S=(m[W>>>24]<<24|m[q>>>16&255]<<16|m[B>>>8&255]<<8|m[255&F])^h[A++],C=(m[q>>>24]<<24|m[B>>>16&255]<<16|m[F>>>8&255]<<8|m[255&W])^h[A++],[b>>>=0,g>>>=0,S>>>=0,C>>>=0]}var e=[0,1,2,4,8,16,32,64,128,27,54],i=(function(){for(var a=new Array(256),h=0;h<256;h++)a[h]=h<128?h<<1:h<<1^283;for(var p=[],m=[],d=[[],[],[],[]],b=[[],[],[],[]],g=0,S=0,C=0;C<256;++C){var I=S^S<<1^S<<2^S<<3^S<<4;I=I>>>8^255&I^99,p[g]=I,m[I]=g;var D=a[g],z=a[D],P=a[z],B=257*a[I]^16843008*I;d[0][g]=B<<24|B>>>8,d[1][g]=B<<16|B>>>16,d[2][g]=B<<8|B>>>24,d[3][g]=B,B=16843009*P^65537*z^257*D^16843008*g,b[0][I]=B<<24|B>>>8,b[1][I]=B<<16|B>>>16,b[2][I]=B<<8|B>>>24,b[3][I]=B,g===0?g=S=1:(g=D^a[a[a[P^D]]],S^=a[a[S]])}return{SBOX:p,INV_SBOX:m,SUB_MIX:d,INV_SUB_MIX:b}})();function u(a){this._key=r(a),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var a=this._key,h=a.length,p=h+6,m=4*(p+1),d=[],b=0;b<h;b++)d[b]=a[b];for(b=h;b<m;b++){var g=d[b-1];b%h==0?(g=g<<8|g>>>24,g=i.SBOX[g>>>24]<<24|i.SBOX[g>>>16&255]<<16|i.SBOX[g>>>8&255]<<8|i.SBOX[255&g],g^=e[b/h|0]<<24):h>6&&b%h==4&&(g=i.SBOX[g>>>24]<<24|i.SBOX[g>>>16&255]<<16|i.SBOX[g>>>8&255]<<8|i.SBOX[255&g]),d[b]=d[b-h]^g}for(var S=[],C=0;C<m;C++){var I=m-C,D=d[I-(C%4?0:4)];S[C]=C<4||I<=4?D:i.INV_SUB_MIX[0][i.SBOX[D>>>24]]^i.INV_SUB_MIX[1][i.SBOX[D>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[D>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[255&D]]}this._nRounds=p,this._keySchedule=d,this._invKeySchedule=S},u.prototype.encryptBlockRaw=function(a){return s(a=r(a),this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},u.prototype.encryptBlock=function(a){var h=this.encryptBlockRaw(a),p=o.allocUnsafe(16);return p.writeUInt32BE(h[0],0),p.writeUInt32BE(h[1],4),p.writeUInt32BE(h[2],8),p.writeUInt32BE(h[3],12),p},u.prototype.decryptBlock=function(a){var h=(a=r(a))[1];a[1]=a[3],a[3]=h;var p=s(a,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),m=o.allocUnsafe(16);return m.writeUInt32BE(p[0],0),m.writeUInt32BE(p[3],4),m.writeUInt32BE(p[2],8),m.writeUInt32BE(p[1],12),m},u.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},l.exports.AES=u},{"safe-buffer":494}],190:[function(t,l,c){var o=t("./aes"),r=t("safe-buffer").Buffer,n=t("cipher-base"),s=t("inherits"),e=t("./ghash"),i=t("buffer-xor"),u=t("./incr32");function a(h,p,m,d){n.call(this);var b=r.alloc(4,0);this._cipher=new o.AES(p);var g=this._cipher.encryptBlock(b);this._ghash=new e(g),m=(function(S,C,I){if(C.length===12)return S._finID=r.concat([C,r.from([0,0,0,1])]),r.concat([C,r.from([0,0,0,2])]);var D=new e(I),z=C.length,P=z%16;D.update(C),P&&(P=16-P,D.update(r.alloc(P,0))),D.update(r.alloc(8,0));var B=8*z,F=r.alloc(8);F.writeUIntBE(B,0,8),D.update(F),S._finID=D.state;var W=r.from(S._finID);return u(W),W})(this,m,g),this._prev=r.from(m),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=d,this._alen=0,this._len=0,this._mode=h,this._authTag=null,this._called=!1}s(a,n),a.prototype._update=function(h){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=r.alloc(p,0),this._ghash.update(p))}this._called=!0;var m=this._mode.encrypt(this,h);return this._decrypt?this._ghash.update(h):this._ghash.update(m),this._len+=h.length,m},a.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var h=i(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&(function(p,m){var d=0;p.length!==m.length&&d++;for(var b=Math.min(p.length,m.length),g=0;g<b;++g)d+=p[g]^m[g];return d})(h,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=h,this._cipher.scrub()},a.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},a.prototype.setAuthTag=function(h){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=h},a.prototype.setAAD=function(h){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(h),this._alen+=h.length},l.exports=a},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(t,l,c){var o=t("./encrypter"),r=t("./decrypter"),n=t("./modes/list.json");c.createCipher=c.Cipher=o.createCipher,c.createCipheriv=c.Cipheriv=o.createCipheriv,c.createDecipher=c.Decipher=r.createDecipher,c.createDecipheriv=c.Decipheriv=r.createDecipheriv,c.listCiphers=c.getCiphers=function(){return Object.keys(n)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(t,l,c){var o=t("./authCipher"),r=t("safe-buffer").Buffer,n=t("./modes"),s=t("./streamCipher"),e=t("cipher-base"),i=t("./aes"),u=t("evp_bytestokey");function a(m,d,b){e.call(this),this._cache=new h,this._last=void 0,this._cipher=new i.AES(d),this._prev=r.from(b),this._mode=m,this._autopadding=!0}function h(){this.cache=r.allocUnsafe(0)}function p(m,d,b){var g=n[m.toLowerCase()];if(!g)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=r.from(b)),g.mode!=="GCM"&&b.length!==g.iv)throw new TypeError("invalid iv length "+b.length);if(typeof d=="string"&&(d=r.from(d)),d.length!==g.key/8)throw new TypeError("invalid key length "+d.length);return g.type==="stream"?new s(g.module,d,b,!0):g.type==="auth"?new o(g.module,d,b,!0):new a(g.module,d,b)}t("inherits")(a,e),a.prototype._update=function(m){var d,b;this._cache.add(m);for(var g=[];d=this._cache.get(this._autopadding);)b=this._mode.decrypt(this,d),g.push(b);return r.concat(g)},a.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return(function(d){var b=d[15];if(b<1||b>16)throw new Error("unable to decrypt data");for(var g=-1;++g<b;)if(d[g+(16-b)]!==b)throw new Error("unable to decrypt data");if(b!==16)return d.slice(0,16-b)})(this._mode.decrypt(this,m));if(m)throw new Error("data not multiple of block length")},a.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},h.prototype.add=function(m){this.cache=r.concat([this.cache,m])},h.prototype.get=function(m){var d;if(m){if(this.cache.length>16)return d=this.cache.slice(0,16),this.cache=this.cache.slice(16),d}else if(this.cache.length>=16)return d=this.cache.slice(0,16),this.cache=this.cache.slice(16),d;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},c.createDecipher=function(m,d){var b=n[m.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var g=u(d,!1,b.key,b.iv);return p(m,g.key,g.iv)},c.createDecipheriv=p},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(t,l,c){var o=t("./modes"),r=t("./authCipher"),n=t("safe-buffer").Buffer,s=t("./streamCipher"),e=t("cipher-base"),i=t("./aes"),u=t("evp_bytestokey");function a(d,b,g){e.call(this),this._cache=new p,this._cipher=new i.AES(b),this._prev=n.from(g),this._mode=d,this._autopadding=!0}t("inherits")(a,e),a.prototype._update=function(d){var b,g;this._cache.add(d);for(var S=[];b=this._cache.get();)g=this._mode.encrypt(this,b),S.push(g);return n.concat(S)};var h=n.alloc(16,16);function p(){this.cache=n.allocUnsafe(0)}function m(d,b,g){var S=o[d.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=n.from(b)),b.length!==S.key/8)throw new TypeError("invalid key length "+b.length);if(typeof g=="string"&&(g=n.from(g)),S.mode!=="GCM"&&g.length!==S.iv)throw new TypeError("invalid iv length "+g.length);return S.type==="stream"?new s(S.module,b,g):S.type==="auth"?new r(S.module,b,g):new a(S.module,b,g)}a.prototype._final=function(){var d=this._cache.flush();if(this._autopadding)return d=this._mode.encrypt(this,d),this._cipher.scrub(),d;if(!d.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},a.prototype.setAutoPadding=function(d){return this._autopadding=!!d,this},p.prototype.add=function(d){this.cache=n.concat([this.cache,d])},p.prototype.get=function(){if(this.cache.length>15){var d=this.cache.slice(0,16);return this.cache=this.cache.slice(16),d}return null},p.prototype.flush=function(){for(var d=16-this.cache.length,b=n.allocUnsafe(d),g=-1;++g<d;)b.writeUInt8(d,g);return n.concat([this.cache,b])},c.createCipheriv=m,c.createCipher=function(d,b){var g=o[d.toLowerCase()];if(!g)throw new TypeError("invalid suite type");var S=u(b,!1,g.key,g.iv);return m(d,S.key,S.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(t,l,c){var o=t("safe-buffer").Buffer,r=o.alloc(16,0);function n(e){var i=o.allocUnsafe(16);return i.writeUInt32BE(e[0]>>>0,0),i.writeUInt32BE(e[1]>>>0,4),i.writeUInt32BE(e[2]>>>0,8),i.writeUInt32BE(e[3]>>>0,12),i}function s(e){this.h=e,this.state=o.alloc(16,0),this.cache=o.allocUnsafe(0)}s.prototype.ghash=function(e){for(var i=-1;++i<e.length;)this.state[i]^=e[i];this._multiply()},s.prototype._multiply=function(){for(var e,i,u,a=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],h=[0,0,0,0],p=-1;++p<128;){for((this.state[~~(p/8)]&1<<7-p%8)!=0&&(h[0]^=a[0],h[1]^=a[1],h[2]^=a[2],h[3]^=a[3]),u=(1&a[3])!=0,i=3;i>0;i--)a[i]=a[i]>>>1|(1&a[i-1])<<31;a[0]=a[0]>>>1,u&&(a[0]=a[0]^225<<24)}this.state=n(h)},s.prototype.update=function(e){var i;for(this.cache=o.concat([this.cache,e]);this.cache.length>=16;)i=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(i)},s.prototype.final=function(e,i){return this.cache.length&&this.ghash(o.concat([this.cache,r],16)),this.ghash(n([0,e,0,i])),this.state},l.exports=s},{"safe-buffer":494}],195:[function(t,l,c){l.exports=function(o){for(var r,n=o.length;n--;){if((r=o.readUInt8(n))!==255){r++,o.writeUInt8(r,n);break}o.writeUInt8(0,n)}}},{}],196:[function(t,l,c){var o=t("buffer-xor");c.encrypt=function(r,n){var s=o(n,r._prev);return r._prev=r._cipher.encryptBlock(s),r._prev},c.decrypt=function(r,n){var s=r._prev;r._prev=n;var e=r._cipher.decryptBlock(n);return o(e,s)}},{"buffer-xor":219}],197:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("buffer-xor");function n(s,e,i){var u=e.length,a=r(e,s._cache);return s._cache=s._cache.slice(u),s._prev=o.concat([s._prev,i?e:a]),a}c.encrypt=function(s,e,i){for(var u,a=o.allocUnsafe(0);e.length;){if(s._cache.length===0&&(s._cache=s._cipher.encryptBlock(s._prev),s._prev=o.allocUnsafe(0)),!(s._cache.length<=e.length)){a=o.concat([a,n(s,e,i)]);break}u=s._cache.length,a=o.concat([a,n(s,e.slice(0,u),i)]),e=e.slice(u)}return a}},{"buffer-xor":219,"safe-buffer":494}],198:[function(t,l,c){var o=t("safe-buffer").Buffer;function r(s,e,i){for(var u,a,h=-1,p=0;++h<8;)u=e&1<<7-h?128:0,p+=(128&(a=s._cipher.encryptBlock(s._prev)[0]^u))>>h%8,s._prev=n(s._prev,i?u:a);return p}function n(s,e){var i=s.length,u=-1,a=o.allocUnsafe(s.length);for(s=o.concat([s,o.from([e])]);++u<i;)a[u]=s[u]<<1|s[u+1]>>7;return a}c.encrypt=function(s,e,i){for(var u=e.length,a=o.allocUnsafe(u),h=-1;++h<u;)a[h]=r(s,e[h],i);return a}},{"safe-buffer":494}],199:[function(t,l,c){var o=t("safe-buffer").Buffer;function r(n,s,e){var i=n._cipher.encryptBlock(n._prev)[0]^s;return n._prev=o.concat([n._prev.slice(1),o.from([e?s:i])]),i}c.encrypt=function(n,s,e){for(var i=s.length,u=o.allocUnsafe(i),a=-1;++a<i;)u[a]=r(n,s[a],e);return u}},{"safe-buffer":494}],200:[function(t,l,c){var o=t("buffer-xor"),r=t("safe-buffer").Buffer,n=t("../incr32");function s(e){var i=e._cipher.encryptBlockRaw(e._prev);return n(e._prev),i}c.encrypt=function(e,i){var u=Math.ceil(i.length/16),a=e._cache.length;e._cache=r.concat([e._cache,r.allocUnsafe(16*u)]);for(var h=0;h<u;h++){var p=s(e),m=a+16*h;e._cache.writeUInt32BE(p[0],m+0),e._cache.writeUInt32BE(p[1],m+4),e._cache.writeUInt32BE(p[2],m+8),e._cache.writeUInt32BE(p[3],m+12)}var d=e._cache.slice(0,i.length);return e._cache=e._cache.slice(i.length),o(i,d)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(t,l,c){c.encrypt=function(o,r){return o._cipher.encryptBlock(r)},c.decrypt=function(o,r){return o._cipher.decryptBlock(r)}},{}],202:[function(t,l,c){var o={ECB:t("./ecb"),CBC:t("./cbc"),CFB:t("./cfb"),CFB8:t("./cfb8"),CFB1:t("./cfb1"),OFB:t("./ofb"),CTR:t("./ctr"),GCM:t("./ctr")},r=t("./list.json");for(var n in r)r[n].module=o[r[n].mode];l.exports=r},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(t,l,c){l.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(t,l,c){(function(o){(function(){var r=t("buffer-xor");function n(s){return s._prev=s._cipher.encryptBlock(s._prev),s._prev}c.encrypt=function(s,e){for(;s._cache.length<e.length;)s._cache=o.concat([s._cache,n(s)]);var i=s._cache.slice(0,e.length);return s._cache=s._cache.slice(e.length),r(e,i)}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(t,l,c){var o=t("./aes"),r=t("safe-buffer").Buffer,n=t("cipher-base");function s(e,i,u,a){n.call(this),this._cipher=new o.AES(i),this._prev=r.from(u),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._mode=e}t("inherits")(s,n),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},l.exports=s},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(t,l,c){var o=t("browserify-des"),r=t("browserify-aes/browser"),n=t("browserify-aes/modes"),s=t("browserify-des/modes"),e=t("evp_bytestokey");function i(a,h,p){if(a=a.toLowerCase(),n[a])return r.createCipheriv(a,h,p);if(s[a])return new o({key:h,iv:p,mode:a});throw new TypeError("invalid suite type")}function u(a,h,p){if(a=a.toLowerCase(),n[a])return r.createDecipheriv(a,h,p);if(s[a])return new o({key:h,iv:p,mode:a,decrypt:!0});throw new TypeError("invalid suite type")}c.createCipher=c.Cipher=function(a,h){var p,m;if(a=a.toLowerCase(),n[a])p=n[a].key,m=n[a].iv;else{if(!s[a])throw new TypeError("invalid suite type");p=8*s[a].key,m=s[a].iv}var d=e(h,!1,p,m);return i(a,d.key,d.iv)},c.createCipheriv=c.Cipheriv=i,c.createDecipher=c.Decipher=function(a,h){var p,m;if(a=a.toLowerCase(),n[a])p=n[a].key,m=n[a].iv;else{if(!s[a])throw new TypeError("invalid suite type");p=8*s[a].key,m=s[a].iv}var d=e(h,!1,p,m);return u(a,d.key,d.iv)},c.createDecipheriv=c.Decipheriv=u,c.listCiphers=c.getCiphers=function(){return Object.keys(s).concat(r.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(t,l,c){var o=t("cipher-base"),r=t("des.js"),n=t("inherits"),s=t("safe-buffer").Buffer,e={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function i(u){o.call(this);var a,h=u.mode.toLowerCase(),p=e[h];a=u.decrypt?"decrypt":"encrypt";var m=u.key;s.isBuffer(m)||(m=s.from(m)),h!=="des-ede"&&h!=="des-ede-cbc"||(m=s.concat([m,m.slice(0,8)]));var d=u.iv;s.isBuffer(d)||(d=s.from(d)),this._des=p.create({key:m,iv:d,type:a})}e.des=e["des-cbc"],e.des3=e["des-ede3-cbc"],l.exports=i,n(i,o),i.prototype._update=function(u){return s.from(this._des.update(u))},i.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(t,l,c){c["des-ecb"]={key:8,iv:0},c["des-cbc"]=c.des={key:8,iv:8},c["des-ede3-cbc"]=c.des3={key:24,iv:8},c["des-ede3"]={key:24,iv:0},c["des-ede-cbc"]={key:16,iv:8},c["des-ede"]={key:16,iv:0}},{}],209:[function(t,l,c){(function(o){(function(){var r=t("bn.js"),n=t("randombytes");function s(i){var u,a=i.modulus.byteLength();do u=new r(n(a));while(u.cmp(i.modulus)>=0||!u.umod(i.prime1)||!u.umod(i.prime2));return u}function e(i,u){var a=(function(z){var P=s(z);return{blinder:P.toRed(r.mont(z.modulus)).redPow(new r(z.publicExponent)).fromRed(),unblinder:P.invm(z.modulus)}})(u),h=u.modulus.byteLength(),p=new r(i).mul(a.blinder).umod(u.modulus),m=p.toRed(r.mont(u.prime1)),d=p.toRed(r.mont(u.prime2)),b=u.coefficient,g=u.prime1,S=u.prime2,C=m.redPow(u.exponent1).fromRed(),I=d.redPow(u.exponent2).fromRed(),D=C.isub(I).imul(b).umod(g).imul(S);return I.iadd(D).imul(a.unblinder).umod(u.modulus).toArrayLike(o,"be",h)}e.getr=s,l.exports=e}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(t,l,c){l.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(t,l,c){l.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(t,l,c){l.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("create-hash"),n=t("readable-stream"),s=t("inherits"),e=t("./sign"),i=t("./verify"),u=t("./algorithms.json");function a(d){n.Writable.call(this);var b=u[d];if(!b)throw new Error("Unknown message digest");this._hashType=b.hash,this._hash=r(b.hash),this._tag=b.id,this._signType=b.sign}function h(d){n.Writable.call(this);var b=u[d];if(!b)throw new Error("Unknown message digest");this._hash=r(b.hash),this._tag=b.id,this._signType=b.sign}function p(d){return new a(d)}function m(d){return new h(d)}Object.keys(u).forEach((function(d){u[d].id=o.from(u[d].id,"hex"),u[d.toLowerCase()]=u[d]})),s(a,n.Writable),a.prototype._write=function(d,b,g){this._hash.update(d),g()},a.prototype.update=function(d,b){return typeof d=="string"&&(d=o.from(d,b)),this._hash.update(d),this},a.prototype.sign=function(d,b){this.end();var g=this._hash.digest(),S=e(g,d,this._hashType,this._signType,this._tag);return b?S.toString(b):S},s(h,n.Writable),h.prototype._write=function(d,b,g){this._hash.update(d),g()},h.prototype.update=function(d,b){return typeof d=="string"&&(d=o.from(d,b)),this._hash.update(d),this},h.prototype.verify=function(d,b,g){typeof b=="string"&&(b=o.from(b,g)),this.end();var S=this._hash.digest();return i(b,S,d,this._signType,this._tag)},l.exports={Sign:p,Verify:m,createSign:p,createVerify:m}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("create-hmac"),n=t("browserify-rsa"),s=t("elliptic").ec,e=t("bn.js"),i=t("parse-asn1"),u=t("./curves.json");function a(d,b,g,S){if((d=o.from(d.toArray())).length<b.byteLength()){var C=o.alloc(b.byteLength()-d.length);d=o.concat([C,d])}var I=g.length,D=(function(B,F){B=(B=h(B,F)).mod(F);var W=o.from(B.toArray());if(W.length<F.byteLength()){var q=o.alloc(F.byteLength()-W.length);W=o.concat([q,W])}return W})(g,b),z=o.alloc(I);z.fill(1);var P=o.alloc(I);return P=r(S,P).update(z).update(o.from([0])).update(d).update(D).digest(),z=r(S,P).update(z).digest(),{k:P=r(S,P).update(z).update(o.from([1])).update(d).update(D).digest(),v:z=r(S,P).update(z).digest()}}function h(d,b){var g=new e(d),S=(d.length<<3)-b.bitLength();return S>0&&g.ishrn(S),g}function p(d,b,g){var S,C;do{for(S=o.alloc(0);8*S.length<d.bitLength();)b.v=r(g,b.k).update(b.v).digest(),S=o.concat([S,b.v]);C=h(S,d),b.k=r(g,b.k).update(b.v).update(o.from([0])).digest(),b.v=r(g,b.k).update(b.v).digest()}while(C.cmp(d)!==-1);return C}function m(d,b,g,S){return d.toRed(e.mont(g)).redPow(b).fromRed().mod(S)}l.exports=function(d,b,g,S,C){var I=i(b);if(I.curve){if(S!=="ecdsa"&&S!=="ecdsa/rsa")throw new Error("wrong private key type");return(function(B,F){var W=u[F.curve.join(".")];if(!W)throw new Error("unknown curve "+F.curve.join("."));var q=new s(W).keyFromPrivate(F.privateKey).sign(B);return o.from(q.toDER())})(d,I)}if(I.type==="dsa"){if(S!=="dsa")throw new Error("wrong private key type");return(function(B,F,W){for(var q,A=F.params.priv_key,M=F.params.p,k=F.params.q,y=F.params.g,w=new e(0),x=h(B,k).mod(k),_=!1,T=a(A,k,B,W);_===!1;)q=p(k,T,W),w=m(y,q,M,k),(_=q.invm(k).imul(x.add(A.mul(w))).mod(k)).cmpn(0)===0&&(_=!1,w=new e(0));return(function(O,j){O=O.toArray(),j=j.toArray(),128&O[0]&&(O=[0].concat(O)),128&j[0]&&(j=[0].concat(j));var V=[48,O.length+j.length+4,2,O.length];return V=V.concat(O,[2,j.length],j),o.from(V)})(w,_)})(d,I,g)}if(S!=="rsa"&&S!=="ecdsa/rsa")throw new Error("wrong private key type");d=o.concat([C,d]);for(var D=I.modulus.byteLength(),z=[0,1];d.length+z.length+1<D;)z.push(255);z.push(0);for(var P=-1;++P<d.length;)z.push(d[P]);return n(z,I)},l.exports.getKey=a,l.exports.makeKey=p},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("bn.js"),n=t("elliptic").ec,s=t("parse-asn1"),e=t("./curves.json");function i(u,a){if(u.cmpn(0)<=0)throw new Error("invalid sig");if(u.cmp(a)>=a)throw new Error("invalid sig")}l.exports=function(u,a,h,p,m){var d=s(h);if(d.type==="ec"){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");return(function(z,P,B){var F=e[B.data.algorithm.curve.join(".")];if(!F)throw new Error("unknown curve "+B.data.algorithm.curve.join("."));var W=new n(F),q=B.data.subjectPrivateKey.data;return W.verify(P,z,q)})(u,a,d)}if(d.type==="dsa"){if(p!=="dsa")throw new Error("wrong public key type");return(function(z,P,B){var F=B.data.p,W=B.data.q,q=B.data.g,A=B.data.pub_key,M=s.signature.decode(z,"der"),k=M.s,y=M.r;i(k,W),i(y,W);var w=r.mont(F),x=k.invm(W);return q.toRed(w).redPow(new r(P).mul(x).mod(W)).fromRed().mul(A.toRed(w).redPow(y.mul(x).mod(W)).fromRed()).mod(F).mod(W).cmp(y)===0})(u,a,d)}if(p!=="rsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");a=o.concat([m,a]);for(var b=d.modulus.byteLength(),g=[1],S=0;a.length+g.length+2<b;)g.push(255),S++;g.push(0);for(var C=-1;++C<a.length;)g.push(a[C]);g=o.from(g);var I=r.mont(d.modulus);u=(u=new r(u).toRed(I)).redPow(new r(d.publicExponent)),u=o.from(u.fromRed().toArray());var D=S<8?1:0;for(b=Math.min(u.length,g.length),u.length!==g.length&&(D=1),C=-1;++C<b;)D|=u[C]^g[C];return D===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(t,l,c){},{}],217:[function(t,l,c){var o=t("buffer"),r=o.Buffer;function n(e,i){for(var u in e)i[u]=e[u]}function s(e,i,u){return r(e,i,u)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?l.exports=o:(n(o,c),c.Buffer=s),n(r,s),s.from=function(e,i,u){if(typeof e=="number")throw new TypeError("Argument must not be a number");return r(e,i,u)},s.alloc=function(e,i,u){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=r(e);return i!==void 0?typeof u=="string"?a.fill(i,u):a.fill(i):a.fill(0),a},s.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return r(e)},s.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},{buffer:220}],218:[function(t,l,c){var o=t("safe-buffer").Buffer,r=o.isEncoding||function(d){switch((d=""+d)&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(d){var b;switch(this.encoding=(function(g){var S=(function(C){if(!C)return"utf8";for(var I;;)switch(C){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return C;default:if(I)return;C=(""+C).toLowerCase(),I=!0}})(g);if(typeof S!="string"&&(o.isEncoding===r||!r(g)))throw new Error("Unknown encoding: "+g);return S||g})(d),this.encoding){case"utf16le":this.text=i,this.end=u,b=4;break;case"utf8":this.fillLast=e,b=4;break;case"base64":this.text=a,this.end=h,b=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(b)}function s(d){return d<=127?0:d>>5==6?2:d>>4==14?3:d>>3==30?4:d>>6==2?-1:-2}function e(d){var b=this.lastTotal-this.lastNeed,g=(function(S,C,I){if((192&C[0])!=128)return S.lastNeed=0,"�";if(S.lastNeed>1&&C.length>1){if((192&C[1])!=128)return S.lastNeed=1,"�";if(S.lastNeed>2&&C.length>2&&(192&C[2])!=128)return S.lastNeed=2,"�"}})(this,d);return g!==void 0?g:this.lastNeed<=d.length?(d.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(d.copy(this.lastChar,b,0,d.length),void(this.lastNeed-=d.length))}function i(d,b){if((d.length-b)%2==0){var g=d.toString("utf16le",b);if(g){var S=g.charCodeAt(g.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],g.slice(0,-1)}return g}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",b,d.length-1)}function u(d){var b=d&&d.length?this.write(d):"";if(this.lastNeed){var g=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,g)}return b}function a(d,b){var g=(d.length-b)%3;return g===0?d.toString("base64",b):(this.lastNeed=3-g,this.lastTotal=3,g===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",b,d.length-g))}function h(d){var b=d&&d.length?this.write(d):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function p(d){return d.toString(this.encoding)}function m(d){return d&&d.length?this.write(d):""}c.StringDecoder=n,n.prototype.write=function(d){if(d.length===0)return"";var b,g;if(this.lastNeed){if((b=this.fillLast(d))===void 0)return"";g=this.lastNeed,this.lastNeed=0}else g=0;return g<d.length?b?b+this.text(d,g):this.text(d,g):b||""},n.prototype.end=function(d){var b=d&&d.length?this.write(d):"";return this.lastNeed?b+"�":b},n.prototype.text=function(d,b){var g=(function(C,I,D){var z=I.length-1;if(z<D)return 0;var P=s(I[z]);return P>=0?(P>0&&(C.lastNeed=P-1),P):--z<D||P===-2?0:(P=s(I[z]))>=0?(P>0&&(C.lastNeed=P-2),P):--z<D||P===-2?0:(P=s(I[z]))>=0?(P>0&&(P===2?P=0:C.lastNeed=P-3),P):0})(this,d,b);if(!this.lastNeed)return d.toString("utf8",b);this.lastTotal=g;var S=d.length-(g-this.lastNeed);return d.copy(this.lastChar,0,S),d.toString("utf8",b,S)},n.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length}},{"safe-buffer":217}],219:[function(t,l,c){(function(o){(function(){l.exports=function(r,n){for(var s=Math.min(r.length,n.length),e=new o(s),i=0;i<s;++i)e[i]=r[i]^n[i];return e}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],220:[function(t,l,c){(function(o){(function(){var r=t("base64-js"),n=t("ieee754");c.Buffer=e,c.SlowBuffer=function(N){return+N!=N&&(N=0),e.alloc(+N)},c.INSPECT_MAX_BYTES=50;function s(N){if(N>2147483647)throw new RangeError('The value "'+N+'" is invalid for option "size"');var R=new Uint8Array(N);return R.__proto__=e.prototype,R}function e(N,R,U){if(typeof N=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return a(N)}return i(N,R,U)}function i(N,R,U){if(typeof N=="string")return(function(Z,et){if(typeof et=="string"&&et!==""||(et="utf8"),!e.isEncoding(et))throw new TypeError("Unknown encoding: "+et);var ht=0|m(Z,et),lt=s(ht),Q=lt.write(Z,et);return Q!==ht&&(lt=lt.slice(0,Q)),lt})(N,R);if(ArrayBuffer.isView(N))return h(N);if(N==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(L(N,ArrayBuffer)||N&&L(N.buffer,ArrayBuffer))return(function(Z,et,ht){if(et<0||Z.byteLength<et)throw new RangeError('"offset" is outside of buffer bounds');if(Z.byteLength<et+(ht||0))throw new RangeError('"length" is outside of buffer bounds');var lt;return lt=et===void 0&&ht===void 0?new Uint8Array(Z):ht===void 0?new Uint8Array(Z,et):new Uint8Array(Z,et,ht),lt.__proto__=e.prototype,lt})(N,R,U);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var K=N.valueOf&&N.valueOf();if(K!=null&&K!==N)return e.from(K,R,U);var rt=(function(Z){if(e.isBuffer(Z)){var et=0|p(Z.length),ht=s(et);return ht.length===0||Z.copy(ht,0,0,et),ht}if(Z.length!==void 0)return typeof Z.length!="number"||G(Z.length)?s(0):h(Z);if(Z.type==="Buffer"&&Array.isArray(Z.data))return h(Z.data)})(N);if(rt)return rt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return e.from(N[Symbol.toPrimitive]("string"),R,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}function u(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function a(N){return u(N),s(N<0?0:0|p(N))}function h(N){for(var R=N.length<0?0:0|p(N.length),U=s(R),K=0;K<R;K+=1)U[K]=255&N[K];return U}function p(N){if(N>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|N}function m(N,R){if(e.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||L(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);var U=N.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&U===0)return 0;for(var rt=!1;;)switch(R){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return V(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return X(N).length;default:if(rt)return K?-1:V(N).length;R=(""+R).toLowerCase(),rt=!0}}function d(N,R,U){var K=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0)<=(R>>>=0))return"";for(N||(N="utf8");;)switch(N){case"hex":return M(this,R,U);case"utf8":case"utf-8":return W(this,R,U);case"ascii":return q(this,R,U);case"latin1":case"binary":return A(this,R,U);case"base64":return F(this,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,R,U);default:if(K)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),K=!0}}function b(N,R,U){var K=N[R];N[R]=N[U],N[U]=K}function g(N,R,U,K,rt){if(N.length===0)return-1;if(typeof U=="string"?(K=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),G(U=+U)&&(U=rt?0:N.length-1),U<0&&(U=N.length+U),U>=N.length){if(rt)return-1;U=N.length-1}else if(U<0){if(!rt)return-1;U=0}if(typeof R=="string"&&(R=e.from(R,K)),e.isBuffer(R))return R.length===0?-1:S(N,R,U,K,rt);if(typeof R=="number")return R&=255,typeof Uint8Array.prototype.indexOf=="function"?rt?Uint8Array.prototype.indexOf.call(N,R,U):Uint8Array.prototype.lastIndexOf.call(N,R,U):S(N,[R],U,K,rt);throw new TypeError("val must be string, number or Buffer")}function S(N,R,U,K,rt){var Z,et=1,ht=N.length,lt=R.length;if(K!==void 0&&((K=String(K).toLowerCase())==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(N.length<2||R.length<2)return-1;et=2,ht/=2,lt/=2,U/=2}function Q(ct,ft){return et===1?ct[ft]:ct.readUInt16BE(ft*et)}if(rt){var ot=-1;for(Z=U;Z<ht;Z++)if(Q(N,Z)===Q(R,ot===-1?0:Z-ot)){if(ot===-1&&(ot=Z),Z-ot+1===lt)return ot*et}else ot!==-1&&(Z-=Z-ot),ot=-1}else for(U+lt>ht&&(U=ht-lt),Z=U;Z>=0;Z--){for(var nt=!0,ut=0;ut<lt;ut++)if(Q(N,Z+ut)!==Q(R,ut)){nt=!1;break}if(nt)return Z}return-1}function C(N,R,U,K){U=Number(U)||0;var rt=N.length-U;K?(K=Number(K))>rt&&(K=rt):K=rt;var Z=R.length;K>Z/2&&(K=Z/2);for(var et=0;et<K;++et){var ht=parseInt(R.substr(2*et,2),16);if(G(ht))return et;N[U+et]=ht}return et}function I(N,R,U,K){return J(V(R,N.length-U),N,U,K)}function D(N,R,U,K){return J((function(rt){for(var Z=[],et=0;et<rt.length;++et)Z.push(255&rt.charCodeAt(et));return Z})(R),N,U,K)}function z(N,R,U,K){return D(N,R,U,K)}function P(N,R,U,K){return J(X(R),N,U,K)}function B(N,R,U,K){return J((function(rt,Z){for(var et,ht,lt,Q=[],ot=0;ot<rt.length&&!((Z-=2)<0);++ot)et=rt.charCodeAt(ot),ht=et>>8,lt=et%256,Q.push(lt),Q.push(ht);return Q})(R,N.length-U),N,U,K)}function F(N,R,U){return R===0&&U===N.length?r.fromByteArray(N):r.fromByteArray(N.slice(R,U))}function W(N,R,U){U=Math.min(N.length,U);for(var K=[],rt=R;rt<U;){var Z,et,ht,lt,Q=N[rt],ot=null,nt=Q>239?4:Q>223?3:Q>191?2:1;if(rt+nt<=U)switch(nt){case 1:Q<128&&(ot=Q);break;case 2:(192&(Z=N[rt+1]))==128&&(lt=(31&Q)<<6|63&Z)>127&&(ot=lt);break;case 3:Z=N[rt+1],et=N[rt+2],(192&Z)==128&&(192&et)==128&&(lt=(15&Q)<<12|(63&Z)<<6|63&et)>2047&&(lt<55296||lt>57343)&&(ot=lt);break;case 4:Z=N[rt+1],et=N[rt+2],ht=N[rt+3],(192&Z)==128&&(192&et)==128&&(192&ht)==128&&(lt=(15&Q)<<18|(63&Z)<<12|(63&et)<<6|63&ht)>65535&<<1114112&&(ot=lt)}ot===null?(ot=65533,nt=1):ot>65535&&(ot-=65536,K.push(ot>>>10&1023|55296),ot=56320|1023&ot),K.push(ot),rt+=nt}return(function(ut){var ct=ut.length;if(ct<=4096)return String.fromCharCode.apply(String,ut);for(var ft="",mt=0;mt<ct;)ft+=String.fromCharCode.apply(String,ut.slice(mt,mt+=4096));return ft})(K)}c.kMaxLength=2147483647,e.TYPED_ARRAY_SUPPORT=(function(){try{var N=new Uint8Array(1);return N.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},N.foo()===42}catch{return!1}})(),e.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),e.poolSize=8192,e.from=function(N,R,U){return i(N,R,U)},e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,e.alloc=function(N,R,U){return(function(K,rt,Z){return u(K),K<=0?s(K):rt!==void 0?typeof Z=="string"?s(K).fill(rt,Z):s(K).fill(rt):s(K)})(N,R,U)},e.allocUnsafe=function(N){return a(N)},e.allocUnsafeSlow=function(N){return a(N)},e.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==e.prototype},e.compare=function(N,R){if(L(N,Uint8Array)&&(N=e.from(N,N.offset,N.byteLength)),L(R,Uint8Array)&&(R=e.from(R,R.offset,R.byteLength)),!e.isBuffer(N)||!e.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===R)return 0;for(var U=N.length,K=R.length,rt=0,Z=Math.min(U,K);rt<Z;++rt)if(N[rt]!==R[rt]){U=N[rt],K=R[rt];break}return U<K?-1:K<U?1:0},e.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(N,R){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return e.alloc(0);var U;if(R===void 0)for(R=0,U=0;U<N.length;++U)R+=N[U].length;var K=e.allocUnsafe(R),rt=0;for(U=0;U<N.length;++U){var Z=N[U];if(L(Z,Uint8Array)&&(Z=e.from(Z)),!e.isBuffer(Z))throw new TypeError('"list" argument must be an Array of Buffers');Z.copy(K,rt),rt+=Z.length}return K},e.byteLength=m,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var N=this.length;if(N%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var R=0;R<N;R+=2)b(this,R,R+1);return this},e.prototype.swap32=function(){var N=this.length;if(N%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var R=0;R<N;R+=4)b(this,R,R+3),b(this,R+1,R+2);return this},e.prototype.swap64=function(){var N=this.length;if(N%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var R=0;R<N;R+=8)b(this,R,R+7),b(this,R+1,R+6),b(this,R+2,R+5),b(this,R+3,R+4);return this},e.prototype.toString=function(){var N=this.length;return N===0?"":arguments.length===0?W(this,0,N):d.apply(this,arguments)},e.prototype.toLocaleString=e.prototype.toString,e.prototype.equals=function(N){if(!e.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N||e.compare(this,N)===0},e.prototype.inspect=function(){var N="",R=c.INSPECT_MAX_BYTES;return N=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(N+=" ... "),"<Buffer "+N+">"},e.prototype.compare=function(N,R,U,K,rt){if(L(N,Uint8Array)&&(N=e.from(N,N.offset,N.byteLength)),!e.isBuffer(N))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if(R===void 0&&(R=0),U===void 0&&(U=N?N.length:0),K===void 0&&(K=0),rt===void 0&&(rt=this.length),R<0||U>N.length||K<0||rt>this.length)throw new RangeError("out of range index");if(K>=rt&&R>=U)return 0;if(K>=rt)return-1;if(R>=U)return 1;if(this===N)return 0;for(var Z=(rt>>>=0)-(K>>>=0),et=(U>>>=0)-(R>>>=0),ht=Math.min(Z,et),lt=this.slice(K,rt),Q=N.slice(R,U),ot=0;ot<ht;++ot)if(lt[ot]!==Q[ot]){Z=lt[ot],et=Q[ot];break}return Z<et?-1:et<Z?1:0},e.prototype.includes=function(N,R,U){return this.indexOf(N,R,U)!==-1},e.prototype.indexOf=function(N,R,U){return g(this,N,R,U,!0)},e.prototype.lastIndexOf=function(N,R,U){return g(this,N,R,U,!1)},e.prototype.write=function(N,R,U,K){if(R===void 0)K="utf8",U=this.length,R=0;else if(U===void 0&&typeof R=="string")K=R,U=this.length,R=0;else{if(!isFinite(R))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");R>>>=0,isFinite(U)?(U>>>=0,K===void 0&&(K="utf8")):(K=U,U=void 0)}var rt=this.length-R;if((U===void 0||U>rt)&&(U=rt),N.length>0&&(U<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");for(var Z=!1;;)switch(K){case"hex":return C(this,N,R,U);case"utf8":case"utf-8":return I(this,N,R,U);case"ascii":return D(this,N,R,U);case"latin1":case"binary":return z(this,N,R,U);case"base64":return P(this,N,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,N,R,U);default:if(Z)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),Z=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(N,R,U){var K="";U=Math.min(N.length,U);for(var rt=R;rt<U;++rt)K+=String.fromCharCode(127&N[rt]);return K}function A(N,R,U){var K="";U=Math.min(N.length,U);for(var rt=R;rt<U;++rt)K+=String.fromCharCode(N[rt]);return K}function M(N,R,U){var K=N.length;(!R||R<0)&&(R=0),(!U||U<0||U>K)&&(U=K);for(var rt="",Z=R;Z<U;++Z)rt+=j(N[Z]);return rt}function k(N,R,U){for(var K=N.slice(R,U),rt="",Z=0;Z<K.length;Z+=2)rt+=String.fromCharCode(K[Z]+256*K[Z+1]);return rt}function y(N,R,U){if(N%1!=0||N<0)throw new RangeError("offset is not uint");if(N+R>U)throw new RangeError("Trying to access beyond buffer length")}function w(N,R,U,K,rt,Z){if(!e.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>rt||R<Z)throw new RangeError('"value" argument is out of bounds');if(U+K>N.length)throw new RangeError("Index out of range")}function x(N,R,U,K,rt,Z){if(U+K>N.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function _(N,R,U,K,rt){return R=+R,U>>>=0,rt||x(N,0,U,4),n.write(N,R,U,K,23,4),U+4}function T(N,R,U,K,rt){return R=+R,U>>>=0,rt||x(N,0,U,8),n.write(N,R,U,K,52,8),U+8}e.prototype.slice=function(N,R){var U=this.length;(N=~~N)<0?(N+=U)<0&&(N=0):N>U&&(N=U),(R=R===void 0?U:~~R)<0?(R+=U)<0&&(R=0):R>U&&(R=U),R<N&&(R=N);var K=this.subarray(N,R);return K.__proto__=e.prototype,K},e.prototype.readUIntLE=function(N,R,U){N>>>=0,R>>>=0,U||y(N,R,this.length);for(var K=this[N],rt=1,Z=0;++Z<R&&(rt*=256);)K+=this[N+Z]*rt;return K},e.prototype.readUIntBE=function(N,R,U){N>>>=0,R>>>=0,U||y(N,R,this.length);for(var K=this[N+--R],rt=1;R>0&&(rt*=256);)K+=this[N+--R]*rt;return K},e.prototype.readUInt8=function(N,R){return N>>>=0,R||y(N,1,this.length),this[N]},e.prototype.readUInt16LE=function(N,R){return N>>>=0,R||y(N,2,this.length),this[N]|this[N+1]<<8},e.prototype.readUInt16BE=function(N,R){return N>>>=0,R||y(N,2,this.length),this[N]<<8|this[N+1]},e.prototype.readUInt32LE=function(N,R){return N>>>=0,R||y(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+16777216*this[N+3]},e.prototype.readUInt32BE=function(N,R){return N>>>=0,R||y(N,4,this.length),16777216*this[N]+(this[N+1]<<16|this[N+2]<<8|this[N+3])},e.prototype.readIntLE=function(N,R,U){N>>>=0,R>>>=0,U||y(N,R,this.length);for(var K=this[N],rt=1,Z=0;++Z<R&&(rt*=256);)K+=this[N+Z]*rt;return K>=(rt*=128)&&(K-=Math.pow(2,8*R)),K},e.prototype.readIntBE=function(N,R,U){N>>>=0,R>>>=0,U||y(N,R,this.length);for(var K=R,rt=1,Z=this[N+--K];K>0&&(rt*=256);)Z+=this[N+--K]*rt;return Z>=(rt*=128)&&(Z-=Math.pow(2,8*R)),Z},e.prototype.readInt8=function(N,R){return N>>>=0,R||y(N,1,this.length),128&this[N]?-1*(255-this[N]+1):this[N]},e.prototype.readInt16LE=function(N,R){N>>>=0,R||y(N,2,this.length);var U=this[N]|this[N+1]<<8;return 32768&U?4294901760|U:U},e.prototype.readInt16BE=function(N,R){N>>>=0,R||y(N,2,this.length);var U=this[N+1]|this[N]<<8;return 32768&U?4294901760|U:U},e.prototype.readInt32LE=function(N,R){return N>>>=0,R||y(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},e.prototype.readInt32BE=function(N,R){return N>>>=0,R||y(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},e.prototype.readFloatLE=function(N,R){return N>>>=0,R||y(N,4,this.length),n.read(this,N,!0,23,4)},e.prototype.readFloatBE=function(N,R){return N>>>=0,R||y(N,4,this.length),n.read(this,N,!1,23,4)},e.prototype.readDoubleLE=function(N,R){return N>>>=0,R||y(N,8,this.length),n.read(this,N,!0,52,8)},e.prototype.readDoubleBE=function(N,R){return N>>>=0,R||y(N,8,this.length),n.read(this,N,!1,52,8)},e.prototype.writeUIntLE=function(N,R,U,K){N=+N,R>>>=0,U>>>=0,K||w(this,N,R,U,Math.pow(2,8*U)-1,0);var rt=1,Z=0;for(this[R]=255&N;++Z<U&&(rt*=256);)this[R+Z]=N/rt&255;return R+U},e.prototype.writeUIntBE=function(N,R,U,K){N=+N,R>>>=0,U>>>=0,K||w(this,N,R,U,Math.pow(2,8*U)-1,0);var rt=U-1,Z=1;for(this[R+rt]=255&N;--rt>=0&&(Z*=256);)this[R+rt]=N/Z&255;return R+U},e.prototype.writeUInt8=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,1,255,0),this[R]=255&N,R+1},e.prototype.writeUInt16LE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,2,65535,0),this[R]=255&N,this[R+1]=N>>>8,R+2},e.prototype.writeUInt16BE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,2,65535,0),this[R]=N>>>8,this[R+1]=255&N,R+2},e.prototype.writeUInt32LE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,4,4294967295,0),this[R+3]=N>>>24,this[R+2]=N>>>16,this[R+1]=N>>>8,this[R]=255&N,R+4},e.prototype.writeUInt32BE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,4,4294967295,0),this[R]=N>>>24,this[R+1]=N>>>16,this[R+2]=N>>>8,this[R+3]=255&N,R+4},e.prototype.writeIntLE=function(N,R,U,K){if(N=+N,R>>>=0,!K){var rt=Math.pow(2,8*U-1);w(this,N,R,U,rt-1,-rt)}var Z=0,et=1,ht=0;for(this[R]=255&N;++Z<U&&(et*=256);)N<0&&ht===0&&this[R+Z-1]!==0&&(ht=1),this[R+Z]=(N/et>>0)-ht&255;return R+U},e.prototype.writeIntBE=function(N,R,U,K){if(N=+N,R>>>=0,!K){var rt=Math.pow(2,8*U-1);w(this,N,R,U,rt-1,-rt)}var Z=U-1,et=1,ht=0;for(this[R+Z]=255&N;--Z>=0&&(et*=256);)N<0&&ht===0&&this[R+Z+1]!==0&&(ht=1),this[R+Z]=(N/et>>0)-ht&255;return R+U},e.prototype.writeInt8=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,1,127,-128),N<0&&(N=255+N+1),this[R]=255&N,R+1},e.prototype.writeInt16LE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,2,32767,-32768),this[R]=255&N,this[R+1]=N>>>8,R+2},e.prototype.writeInt16BE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,2,32767,-32768),this[R]=N>>>8,this[R+1]=255&N,R+2},e.prototype.writeInt32LE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,4,2147483647,-2147483648),this[R]=255&N,this[R+1]=N>>>8,this[R+2]=N>>>16,this[R+3]=N>>>24,R+4},e.prototype.writeInt32BE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),this[R]=N>>>24,this[R+1]=N>>>16,this[R+2]=N>>>8,this[R+3]=255&N,R+4},e.prototype.writeFloatLE=function(N,R,U){return _(this,N,R,!0,U)},e.prototype.writeFloatBE=function(N,R,U){return _(this,N,R,!1,U)},e.prototype.writeDoubleLE=function(N,R,U){return T(this,N,R,!0,U)},e.prototype.writeDoubleBE=function(N,R,U){return T(this,N,R,!1,U)},e.prototype.copy=function(N,R,U,K){if(!e.isBuffer(N))throw new TypeError("argument should be a Buffer");if(U||(U=0),K||K===0||(K=this.length),R>=N.length&&(R=N.length),R||(R=0),K>0&&K<U&&(K=U),K===U||N.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),N.length-R<K-U&&(K=N.length-R+U);var rt=K-U;if(this===N&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(R,U,K);else if(this===N&&U<R&&R<K)for(var Z=rt-1;Z>=0;--Z)N[Z+R]=this[Z+U];else Uint8Array.prototype.set.call(N,this.subarray(U,K),R);return rt},e.prototype.fill=function(N,R,U,K){if(typeof N=="string"){if(typeof R=="string"?(K=R,R=0,U=this.length):typeof U=="string"&&(K=U,U=this.length),K!==void 0&&typeof K!="string")throw new TypeError("encoding must be a string");if(typeof K=="string"&&!e.isEncoding(K))throw new TypeError("Unknown encoding: "+K);if(N.length===1){var rt=N.charCodeAt(0);(K==="utf8"&&rt<128||K==="latin1")&&(N=rt)}}else typeof N=="number"&&(N&=255);if(R<0||this.length<R||this.length<U)throw new RangeError("Out of range index");if(U<=R)return this;var Z;if(R>>>=0,U=U===void 0?this.length:U>>>0,N||(N=0),typeof N=="number")for(Z=R;Z<U;++Z)this[Z]=N;else{var et=e.isBuffer(N)?N:e.from(N,K),ht=et.length;if(ht===0)throw new TypeError('The value "'+N+'" is invalid for argument "value"');for(Z=0;Z<U-R;++Z)this[Z+R]=et[Z%ht]}return this};var O=/[^+/0-9A-Za-z-_]/g;function j(N){return N<16?"0"+N.toString(16):N.toString(16)}function V(N,R){var U;R=R||1/0;for(var K=N.length,rt=null,Z=[],et=0;et<K;++et){if((U=N.charCodeAt(et))>55295&&U<57344){if(!rt){if(U>56319){(R-=3)>-1&&Z.push(239,191,189);continue}if(et+1===K){(R-=3)>-1&&Z.push(239,191,189);continue}rt=U;continue}if(U<56320){(R-=3)>-1&&Z.push(239,191,189),rt=U;continue}U=65536+(rt-55296<<10|U-56320)}else rt&&(R-=3)>-1&&Z.push(239,191,189);if(rt=null,U<128){if((R-=1)<0)break;Z.push(U)}else if(U<2048){if((R-=2)<0)break;Z.push(U>>6|192,63&U|128)}else if(U<65536){if((R-=3)<0)break;Z.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;Z.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return Z}function X(N){return r.toByteArray((function(R){if((R=(R=R.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R})(N))}function J(N,R,U,K){for(var rt=0;rt<K&&!(rt+U>=R.length||rt>=N.length);++rt)R[rt+U]=N[rt];return rt}function L(N,R){return N instanceof R||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===R.name}function G(N){return N!=N}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("stream").Transform,n=t("string_decoder").StringDecoder;function s(e){r.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t("inherits")(s,r),s.prototype.update=function(e,i,u){typeof e=="string"&&(e=o.from(e,i));var a=this._update(e);return this.hashMode?this:(u&&(a=this._toString(a,u)),a)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,i,u){var a;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(h){a=h}finally{u(a)}},s.prototype._flush=function(e){var i;try{this.push(this.__final())}catch(u){i=u}e(i)},s.prototype._finalOrDigest=function(e){var i=this.__final()||o.alloc(0);return e&&(i=this._toString(i,e,!0)),i},s.prototype._toString=function(e,i,u){if(this._decoder||(this._decoder=new n(i),this._encoding=i),this._encoding!==i)throw new Error("can't switch encodings");var a=this._decoder.write(e);return u&&(a+=this._decoder.end()),a},l.exports=s},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(t,l,c){var o=t("../internals/is-callable"),r=t("../internals/try-to-string"),n=TypeError;l.exports=function(s){if(o(s))return s;throw new n(r(s)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(t,l,c){var o=t("../internals/is-constructor"),r=t("../internals/try-to-string"),n=TypeError;l.exports=function(s){if(o(s))return s;throw new n(r(s)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(t,l,c){var o=t("../internals/is-callable"),r=String,n=TypeError;l.exports=function(s){if(typeof s=="object"||o(s))return s;throw new n("Can't set "+r(s)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(t,l,c){var o=t("../internals/well-known-symbol"),r=t("../internals/object-create"),n=t("../internals/object-define-property").f,s=o("unscopables"),e=Array.prototype;e[s]===void 0&&n(e,s,{configurable:!0,value:r(null)}),l.exports=function(i){e[s][i]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(t,l,c){var o=t("../internals/object-is-prototype-of"),r=TypeError;l.exports=function(n,s){if(o(s,n))return n;throw new r("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(t,l,c){var o=t("../internals/is-object"),r=String,n=TypeError;l.exports=function(s){if(o(s))return s;throw new n(r(s)+" is not an object")}},{"../internals/is-object":289}],228:[function(t,l,c){var o=t("../internals/to-indexed-object"),r=t("../internals/to-absolute-index"),n=t("../internals/length-of-array-like"),s=function(e){return function(i,u,a){var h,p=o(i),m=n(p),d=r(a,m);if(e&&u!=u){for(;m>d;)if((h=p[d++])!=h)return!0}else for(;m>d;d++)if((e||d in p)&&p[d]===u)return e||d||0;return!e&&-1}};l.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(t,l,c){var o=t("../internals/function-bind-context"),r=t("../internals/function-uncurry-this"),n=t("../internals/indexed-object"),s=t("../internals/to-object"),e=t("../internals/length-of-array-like"),i=t("../internals/array-species-create"),u=r([].push),a=function(h){var p=h===1,m=h===2,d=h===3,b=h===4,g=h===6,S=h===7,C=h===5||g;return function(I,D,z,P){for(var B,F,W=s(I),q=n(W),A=o(D,z),M=e(q),k=0,y=P||i,w=p?y(I,M):m||S?y(I,0):void 0;M>k;k++)if((C||k in q)&&(F=A(B=q[k],k,W),h))if(p)w[k]=F;else if(F)switch(h){case 3:return!0;case 5:return B;case 6:return k;case 2:u(w,B)}else switch(h){case 4:return!1;case 7:u(w,B)}return g?-1:d||b?b:w}};l.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(t,l,c){var o=t("../internals/to-absolute-index"),r=t("../internals/length-of-array-like"),n=t("../internals/create-property"),s=Array,e=Math.max;l.exports=function(i,u,a){for(var h=r(i),p=o(u,h),m=o(a===void 0?h:a,h),d=s(e(m-p,0)),b=0;p<m;p++,b++)n(d,b,i[p]);return d.length=b,d}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(t,l,c){var o=t("../internals/function-uncurry-this");l.exports=o([].slice)},{"../internals/function-uncurry-this":268}],232:[function(t,l,c){var o=t("../internals/is-array"),r=t("../internals/is-constructor"),n=t("../internals/is-object"),s=t("../internals/well-known-symbol")("species"),e=Array;l.exports=function(i){var u;return o(i)&&(u=i.constructor,(r(u)&&(u===e||o(u.prototype))||n(u)&&(u=u[s])===null)&&(u=void 0)),u===void 0?e:u}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(t,l,c){var o=t("../internals/array-species-constructor");l.exports=function(r,n){return new(o(r))(n===0?0:n)}},{"../internals/array-species-constructor":232}],234:[function(t,l,c){var o=t("../internals/well-known-symbol")("iterator"),r=!1;try{var n=0,s={next:function(){return{done:!!n++}},return:function(){r=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch{}l.exports=function(e,i){try{if(!i&&!r)return!1}catch{return!1}var u=!1;try{var a={};a[o]=function(){return{next:function(){return{done:u=!0}}}},e(a)}catch{}return u}},{"../internals/well-known-symbol":357}],235:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=o({}.toString),n=o("".slice);l.exports=function(s){return n(r(s),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(t,l,c){var o=t("../internals/to-string-tag-support"),r=t("../internals/is-callable"),n=t("../internals/classof-raw"),s=t("../internals/well-known-symbol")("toStringTag"),e=Object,i=n((function(){return arguments})())==="Arguments";l.exports=o?n:function(u){var a,h,p;return u===void 0?"Undefined":u===null?"Null":typeof(h=(function(m,d){try{return m[d]}catch{}})(a=e(u),s))=="string"?h:i?n(a):(p=n(a))==="Object"&&r(a.callee)?"Arguments":p}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(t,l,c){var o=t("../internals/has-own-property"),r=t("../internals/own-keys"),n=t("../internals/object-get-own-property-descriptor"),s=t("../internals/object-define-property");l.exports=function(e,i,u){for(var a=r(i),h=s.f,p=n.f,m=0;m<a.length;m++){var d=a[m];o(e,d)||u&&o(u,d)||h(e,d,p(i,d))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(t,l,c){var o=t("../internals/well-known-symbol")("match");l.exports=function(r){var n=/./;try{"/./"[r](n)}catch{try{return n[o]=!1,"/./"[r](n)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(t,l,c){var o=t("../internals/fails");l.exports=!o((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))},{"../internals/fails":260}],240:[function(t,l,c){l.exports=function(o,r){return{value:o,done:r}}},{}],241:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/object-define-property"),n=t("../internals/create-property-descriptor");l.exports=o?function(s,e,i){return r.f(s,e,n(1,i))}:function(s,e,i){return s[e]=i,s}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(t,l,c){l.exports=function(o,r){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:r}}},{}],243:[function(t,l,c){var o=t("../internals/to-property-key"),r=t("../internals/object-define-property"),n=t("../internals/create-property-descriptor");l.exports=function(s,e,i){var u=o(e);u in s?r.f(s,u,n(0,i)):s[u]=i}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(t,l,c){var o=t("../internals/make-built-in"),r=t("../internals/object-define-property");l.exports=function(n,s,e){return e.get&&o(e.get,s,{getter:!0}),e.set&&o(e.set,s,{setter:!0}),r.f(n,s,e)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(t,l,c){var o=t("../internals/is-callable"),r=t("../internals/object-define-property"),n=t("../internals/make-built-in"),s=t("../internals/define-global-property");l.exports=function(e,i,u,a){a||(a={});var h=a.enumerable,p=a.name!==void 0?a.name:i;if(o(u)&&n(u,p,a),a.global)h?e[i]=u:s(i,u);else{try{a.unsafe?e[i]&&(h=!0):delete e[i]}catch{}h?e[i]=u:r.f(e,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(t,l,c){var o=t("../internals/global"),r=Object.defineProperty;l.exports=function(n,s){try{r(o,n,{value:s,configurable:!0,writable:!0})}catch{o[n]=s}return s}},{"../internals/global":274}],247:[function(t,l,c){var o=t("../internals/fails");l.exports=!o((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},{"../internals/fails":260}],248:[function(t,l,c){var o=typeof document=="object"&&document.all,r=o===void 0&&o!==void 0;l.exports={all:o,IS_HTMLDDA:r}},{}],249:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/is-object"),n=o.document,s=r(n)&&r(n.createElement);l.exports=function(e){return s?n.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(t,l,c){var o=t("../internals/engine-is-deno"),r=t("../internals/engine-is-node");l.exports=!o&&!r&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(t,l,c){l.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(t,l,c){var o=t("../internals/engine-user-agent");l.exports=/ipad|iphone|ipod/i.test(o)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(t,l,c){var o=t("../internals/engine-user-agent");l.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},{"../internals/engine-user-agent":256}],254:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/classof-raw");l.exports=r(o.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(t,l,c){var o=t("../internals/engine-user-agent");l.exports=/web0s(?!.*chrome)/i.test(o)},{"../internals/engine-user-agent":256}],256:[function(t,l,c){l.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(t,l,c){var o,r,n=t("../internals/global"),s=t("../internals/engine-user-agent"),e=n.process,i=n.Deno,u=e&&e.versions||i&&i.version,a=u&&u.v8;a&&(r=(o=a.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&s&&(!(o=s.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/))&&(r=+o[1]),l.exports=r},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(t,l,c){l.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/object-get-own-property-descriptor").f,n=t("../internals/create-non-enumerable-property"),s=t("../internals/define-built-in"),e=t("../internals/define-global-property"),i=t("../internals/copy-constructor-properties"),u=t("../internals/is-forced");l.exports=function(a,h){var p,m,d,b,g,S=a.target,C=a.global,I=a.stat;if(p=C?o:I?o[S]||e(S,{}):(o[S]||{}).prototype)for(m in h){if(b=h[m],d=a.dontCallGetSet?(g=r(p,m))&&g.value:p[m],!u(C?m:S+(I?".":"#")+m,a.forced)&&d!==void 0){if(typeof b==typeof d)continue;i(b,d)}(a.sham||d&&d.sham)&&n(b,"sham",!0),s(p,m,b,a)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(t,l,c){l.exports=function(o){try{return!!o()}catch{return!0}}},{}],261:[function(t,l,c){var o=t("../internals/function-bind-native"),r=Function.prototype,n=r.apply,s=r.call;l.exports=typeof Reflect=="object"&&Reflect.apply||(o?s.bind(n):function(){return s.apply(n,arguments)})},{"../internals/function-bind-native":263}],262:[function(t,l,c){var o=t("../internals/function-uncurry-this-clause"),r=t("../internals/a-callable"),n=t("../internals/function-bind-native"),s=o(o.bind);l.exports=function(e,i){return r(e),i===void 0?e:n?s(e,i):function(){return e.apply(i,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(t,l,c){var o=t("../internals/fails");l.exports=!o((function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(t,l,c){var o=t("../internals/function-bind-native"),r=Function.prototype.call;l.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},{"../internals/function-bind-native":263}],265:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/has-own-property"),n=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,e=r(n,"name"),i=e&&(function(){}).name==="something",u=e&&(!o||o&&s(n,"name").configurable);l.exports={EXISTS:e,PROPER:i,CONFIGURABLE:u}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/a-callable");l.exports=function(n,s,e){try{return o(r(Object.getOwnPropertyDescriptor(n,s)[e]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(t,l,c){var o=t("../internals/classof-raw"),r=t("../internals/function-uncurry-this");l.exports=function(n){if(o(n)==="Function")return r(n)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(t,l,c){var o=t("../internals/function-bind-native"),r=Function.prototype,n=r.call,s=o&&r.bind.bind(n,n);l.exports=o?s:function(e){return function(){return n.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/is-callable"),n=function(s){return r(s)?s:void 0};l.exports=function(s,e){return arguments.length<2?n(o[s]):o[s]&&o[s][e]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(t,l,c){var o=t("../internals/classof"),r=t("../internals/get-method"),n=t("../internals/is-null-or-undefined"),s=t("../internals/iterators"),e=t("../internals/well-known-symbol")("iterator");l.exports=function(i){if(!n(i))return r(i,e)||r(i,"@@iterator")||s[o(i)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/a-callable"),n=t("../internals/an-object"),s=t("../internals/try-to-string"),e=t("../internals/get-iterator-method"),i=TypeError;l.exports=function(u,a){var h=arguments.length<2?e(u):a;if(r(h))return n(o(h,u));throw new i(s(u)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/is-array"),n=t("../internals/is-callable"),s=t("../internals/classof-raw"),e=t("../internals/to-string"),i=o([].push);l.exports=function(u){if(n(u))return u;if(r(u)){for(var a=u.length,h=[],p=0;p<a;p++){var m=u[p];typeof m=="string"?i(h,m):typeof m!="number"&&s(m)!=="Number"&&s(m)!=="String"||i(h,e(m))}var d=h.length,b=!0;return function(g,S){if(b)return b=!1,S;if(r(this))return S;for(var C=0;C<d;C++)if(h[C]===g)return S}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(t,l,c){var o=t("../internals/a-callable"),r=t("../internals/is-null-or-undefined");l.exports=function(n,s){var e=n[s];return r(e)?void 0:o(e)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(t,l,c){(function(o){(function(){var r=function(n){return n&&n.Math===Math&&n};l.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof o=="object"&&o)||(function(){return this})()||this||Function("return this")()}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/to-object"),n=o({}.hasOwnProperty);l.exports=Object.hasOwn||function(s,e){return n(r(s),e)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(t,l,c){l.exports={}},{}],277:[function(t,l,c){l.exports=function(o,r){try{arguments.length===1?console.error(o):console.error(o,r)}catch{}}},{}],278:[function(t,l,c){var o=t("../internals/get-built-in");l.exports=o("document","documentElement")},{"../internals/get-built-in":269}],279:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/fails"),n=t("../internals/document-create-element");l.exports=!o&&!r((function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/fails"),n=t("../internals/classof-raw"),s=Object,e=o("".split);l.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(i){return n(i)==="String"?e(i,""):s(i)}:s},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/is-callable"),n=t("../internals/shared-store"),s=o(Function.toString);r(n.inspectSource)||(n.inspectSource=function(e){return s(e)}),l.exports=n.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(t,l,c){var o,r,n,s=t("../internals/weak-map-basic-detection"),e=t("../internals/global"),i=t("../internals/is-object"),u=t("../internals/create-non-enumerable-property"),a=t("../internals/has-own-property"),h=t("../internals/shared-store"),p=t("../internals/shared-key"),m=t("../internals/hidden-keys"),d=e.TypeError,b=e.WeakMap;if(s||h.state){var g=h.state||(h.state=new b);g.get=g.get,g.has=g.has,g.set=g.set,o=function(C,I){if(g.has(C))throw new d("Object already initialized");return I.facade=C,g.set(C,I),I},r=function(C){return g.get(C)||{}},n=function(C){return g.has(C)}}else{var S=p("state");m[S]=!0,o=function(C,I){if(a(C,S))throw new d("Object already initialized");return I.facade=C,u(C,S,I),I},r=function(C){return a(C,S)?C[S]:{}},n=function(C){return a(C,S)}}l.exports={set:o,get:r,has:n,enforce:function(C){return n(C)?r(C):o(C,{})},getterFor:function(C){return function(I){var D;if(!i(I)||(D=r(I)).type!==C)throw new d("Incompatible receiver, "+C+" required");return D}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(t,l,c){var o=t("../internals/well-known-symbol"),r=t("../internals/iterators"),n=o("iterator"),s=Array.prototype;l.exports=function(e){return e!==void 0&&(r.Array===e||s[n]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(t,l,c){var o=t("../internals/classof-raw");l.exports=Array.isArray||function(r){return o(r)==="Array"}},{"../internals/classof-raw":235}],285:[function(t,l,c){var o=t("../internals/document-all"),r=o.all;l.exports=o.IS_HTMLDDA?function(n){return typeof n=="function"||n===r}:function(n){return typeof n=="function"}},{"../internals/document-all":248}],286:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/fails"),n=t("../internals/is-callable"),s=t("../internals/classof"),e=t("../internals/get-built-in"),i=t("../internals/inspect-source"),u=function(){},a=[],h=e("Reflect","construct"),p=/^\s*(?:class|function)\b/,m=o(p.exec),d=!p.test(u),b=function(S){if(!n(S))return!1;try{return h(u,a,S),!0}catch{return!1}},g=function(S){if(!n(S))return!1;switch(s(S)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!m(p,i(S))}catch{return!0}};g.sham=!0,l.exports=!h||r((function(){var S;return b(b.call)||!b(Object)||!b((function(){S=!0}))||S}))?g:b},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(t,l,c){var o=t("../internals/fails"),r=t("../internals/is-callable"),n=/#|\.prototype\./,s=function(h,p){var m=i[e(h)];return m===a||m!==u&&(r(p)?o(p):!!p)},e=s.normalize=function(h){return String(h).replace(n,".").toLowerCase()},i=s.data={},u=s.NATIVE="N",a=s.POLYFILL="P";l.exports=s},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(t,l,c){l.exports=function(o){return o==null}},{}],289:[function(t,l,c){var o=t("../internals/is-callable"),r=t("../internals/document-all"),n=r.all;l.exports=r.IS_HTMLDDA?function(s){return typeof s=="object"?s!==null:o(s)||s===n}:function(s){return typeof s=="object"?s!==null:o(s)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(t,l,c){l.exports=!1},{}],291:[function(t,l,c){var o=t("../internals/is-object"),r=t("../internals/classof-raw"),n=t("../internals/well-known-symbol")("match");l.exports=function(s){var e;return o(s)&&((e=s[n])!==void 0?!!e:r(s)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(t,l,c){var o=t("../internals/get-built-in"),r=t("../internals/is-callable"),n=t("../internals/object-is-prototype-of"),s=t("../internals/use-symbol-as-uid"),e=Object;l.exports=s?function(i){return typeof i=="symbol"}:function(i){var u=o("Symbol");return r(u)&&n(u.prototype,e(i))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(t,l,c){var o=t("../internals/function-bind-context"),r=t("../internals/function-call"),n=t("../internals/an-object"),s=t("../internals/try-to-string"),e=t("../internals/is-array-iterator-method"),i=t("../internals/length-of-array-like"),u=t("../internals/object-is-prototype-of"),a=t("../internals/get-iterator"),h=t("../internals/get-iterator-method"),p=t("../internals/iterator-close"),m=TypeError,d=function(g,S){this.stopped=g,this.result=S},b=d.prototype;l.exports=function(g,S,C){var I,D,z,P,B,F,W,q=C&&C.that,A=!(!C||!C.AS_ENTRIES),M=!(!C||!C.IS_RECORD),k=!(!C||!C.IS_ITERATOR),y=!(!C||!C.INTERRUPTED),w=o(S,q),x=function(T){return I&&p(I,"normal",T),new d(!0,T)},_=function(T){return A?(n(T),y?w(T[0],T[1],x):w(T[0],T[1])):y?w(T,x):w(T)};if(M)I=g.iterator;else if(k)I=g;else{if(!(D=h(g)))throw new m(s(g)+" is not iterable");if(e(D)){for(z=0,P=i(g);P>z;z++)if((B=_(g[z]))&&u(b,B))return B;return new d(!1)}I=a(g,D)}for(F=M?g.next:I.next;!(W=r(F,I)).done;){try{B=_(W.value)}catch(T){p(I,"throw",T)}if(typeof B=="object"&&B&&u(b,B))return B}return new d(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/an-object"),n=t("../internals/get-method");l.exports=function(s,e,i){var u,a;r(s);try{if(!(u=n(s,"return"))){if(e==="throw")throw i;return i}u=o(u,s)}catch(h){a=!0,u=h}if(e==="throw")throw i;if(a)throw u;return r(u),i}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(t,l,c){var o=t("../internals/iterators-core").IteratorPrototype,r=t("../internals/object-create"),n=t("../internals/create-property-descriptor"),s=t("../internals/set-to-string-tag"),e=t("../internals/iterators"),i=function(){return this};l.exports=function(u,a,h,p){var m=a+" Iterator";return u.prototype=r(o,{next:n(+!p,h)}),s(u,m,!1,!0),e[m]=i,u}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-call"),n=t("../internals/is-pure"),s=t("../internals/function-name"),e=t("../internals/is-callable"),i=t("../internals/iterator-create-constructor"),u=t("../internals/object-get-prototype-of"),a=t("../internals/object-set-prototype-of"),h=t("../internals/set-to-string-tag"),p=t("../internals/create-non-enumerable-property"),m=t("../internals/define-built-in"),d=t("../internals/well-known-symbol"),b=t("../internals/iterators"),g=t("../internals/iterators-core"),S=s.PROPER,C=s.CONFIGURABLE,I=g.IteratorPrototype,D=g.BUGGY_SAFARI_ITERATORS,z=d("iterator"),P=function(){return this};l.exports=function(B,F,W,q,A,M,k){i(W,F,q);var y,w,x,_=function(L){if(L===A&&X)return X;if(!D&&L&&L in j)return j[L];switch(L){case"keys":case"values":case"entries":return function(){return new W(this,L)}}return function(){return new W(this)}},T=F+" Iterator",O=!1,j=B.prototype,V=j[z]||j["@@iterator"]||A&&j[A],X=!D&&V||_(A),J=F==="Array"&&j.entries||V;if(J&&(y=u(J.call(new B)))!==Object.prototype&&y.next&&(n||u(y)===I||(a?a(y,I):e(y[z])||m(y,z,P)),h(y,T,!0,!0),n&&(b[T]=P)),S&&A==="values"&&V&&V.name!=="values"&&(!n&&C?p(j,"name","values"):(O=!0,X=function(){return r(V,this)})),A)if(w={values:_("values"),keys:M?X:_("keys"),entries:_("entries")},k)for(x in w)(D||O||!(x in j))&&m(j,x,w[x]);else o({target:F,proto:!0,forced:D||O},w);return n&&!k||j[z]===X||m(j,z,X,{name:A}),b[F]=X,w}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(t,l,c){var o,r,n,s=t("../internals/fails"),e=t("../internals/is-callable"),i=t("../internals/is-object"),u=t("../internals/object-create"),a=t("../internals/object-get-prototype-of"),h=t("../internals/define-built-in"),p=t("../internals/well-known-symbol"),m=t("../internals/is-pure"),d=p("iterator"),b=!1;[].keys&&("next"in(n=[].keys())?(r=a(a(n)))!==Object.prototype&&(o=r):b=!0),!i(o)||s((function(){var g={};return o[d].call(g)!==g}))?o={}:m&&(o=u(o)),e(o[d])||h(o,d,(function(){return this})),l.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:b}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(t,l,c){arguments[4][276][0].apply(c,arguments)},{dup:276}],299:[function(t,l,c){var o=t("../internals/to-length");l.exports=function(r){return o(r.length)}},{"../internals/to-length":343}],300:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/fails"),n=t("../internals/is-callable"),s=t("../internals/has-own-property"),e=t("../internals/descriptors"),i=t("../internals/function-name").CONFIGURABLE,u=t("../internals/inspect-source"),a=t("../internals/internal-state"),h=a.enforce,p=a.get,m=String,d=Object.defineProperty,b=o("".slice),g=o("".replace),S=o([].join),C=e&&!r((function(){return d((function(){}),"length",{value:8}).length!==8})),I=String(String).split("String"),D=l.exports=function(z,P,B){b(m(P),0,7)==="Symbol("&&(P="["+g(m(P),/^Symbol\(([^)]*)\)/,"$1")+"]"),B&&B.getter&&(P="get "+P),B&&B.setter&&(P="set "+P),(!s(z,"name")||i&&z.name!==P)&&(e?d(z,"name",{value:P,configurable:!0}):z.name=P),C&&B&&s(B,"arity")&&z.length!==B.arity&&d(z,"length",{value:B.arity});try{B&&s(B,"constructor")&&B.constructor?e&&d(z,"prototype",{writable:!1}):z.prototype&&(z.prototype=void 0)}catch{}var F=h(z);return s(F,"source")||(F.source=S(I,typeof P=="string"?P:"")),z};Function.prototype.toString=D((function(){return n(this)&&p(this).source||u(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(t,l,c){var o=Math.ceil,r=Math.floor;l.exports=Math.trunc||function(n){var s=+n;return(s>0?r:o)(s)}},{}],302:[function(t,l,c){var o,r,n,s,e,i=t("../internals/global"),u=t("../internals/function-bind-context"),a=t("../internals/object-get-own-property-descriptor").f,h=t("../internals/task").set,p=t("../internals/queue"),m=t("../internals/engine-is-ios"),d=t("../internals/engine-is-ios-pebble"),b=t("../internals/engine-is-webos-webkit"),g=t("../internals/engine-is-node"),S=i.MutationObserver||i.WebKitMutationObserver,C=i.document,I=i.process,D=i.Promise,z=a(i,"queueMicrotask"),P=z&&z.value;if(!P){var B=new p,F=function(){var W,q;for(g&&(W=I.domain)&&W.exit();q=B.get();)try{q()}catch(A){throw B.head&&o(),A}W&&W.enter()};m||g||b||!S||!C?!d&&D&&D.resolve?((s=D.resolve(void 0)).constructor=D,e=u(s.then,s),o=function(){e(F)}):g?o=function(){I.nextTick(F)}:(h=u(h,i),o=function(){h(F)}):(r=!0,n=C.createTextNode(""),new S(F).observe(n,{characterData:!0}),o=function(){n.data=r=!r}),P=function(W){B.head||o(),B.add(W)}}l.exports=P},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(t,l,c){var o=t("../internals/a-callable"),r=TypeError,n=function(s){var e,i;this.promise=new s((function(u,a){if(e!==void 0||i!==void 0)throw new r("Bad Promise constructor");e=u,i=a})),this.resolve=o(e),this.reject=o(i)};l.exports.f=function(s){return new n(s)}},{"../internals/a-callable":222}],304:[function(t,l,c){var o=t("../internals/is-regexp"),r=TypeError;l.exports=function(n){if(o(n))throw new r("The method doesn't accept regular expressions");return n}},{"../internals/is-regexp":291}],305:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/function-uncurry-this"),n=t("../internals/function-call"),s=t("../internals/fails"),e=t("../internals/object-keys"),i=t("../internals/object-get-own-property-symbols"),u=t("../internals/object-property-is-enumerable"),a=t("../internals/to-object"),h=t("../internals/indexed-object"),p=Object.assign,m=Object.defineProperty,d=r([].concat);l.exports=!p||s((function(){if(o&&p({b:1},p(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},g={},S=Symbol("assign detection");return b[S]=7,"abcdefghijklmnopqrst".split("").forEach((function(C){g[C]=C})),p({},b)[S]!==7||e(p({},g)).join("")!=="abcdefghijklmnopqrst"}))?function(b,g){for(var S=a(b),C=arguments.length,I=1,D=i.f,z=u.f;C>I;)for(var P,B=h(arguments[I++]),F=D?d(e(B),D(B)):e(B),W=F.length,q=0;W>q;)P=F[q++],o&&!n(z,B,P)||(S[P]=B[P]);return S}:p},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(t,l,c){var o,r=t("../internals/an-object"),n=t("../internals/object-define-properties"),s=t("../internals/enum-bug-keys"),e=t("../internals/hidden-keys"),i=t("../internals/html"),u=t("../internals/document-create-element"),a=t("../internals/shared-key"),h=a("IE_PROTO"),p=function(){},m=function(g){return"<script>"+g+"<\/script>"},d=function(g){g.write(m("")),g.close();var S=g.parentWindow.Object;return g=null,S},b=function(){try{o=new ActiveXObject("htmlfile")}catch{}var g,S;b=typeof document<"u"?document.domain&&o?d(o):((S=u("iframe")).style.display="none",i.appendChild(S),S.src="javascript:",(g=S.contentWindow.document).open(),g.write(m("document.F=Object")),g.close(),g.F):d(o);for(var C=s.length;C--;)delete b.prototype[s[C]];return b()};e[h]=!0,l.exports=Object.create||function(g,S){var C;return g!==null?(p.prototype=r(g),C=new p,p.prototype=null,C[h]=g):C=b(),S===void 0?C:n.f(C,S)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/v8-prototype-define-bug"),n=t("../internals/object-define-property"),s=t("../internals/an-object"),e=t("../internals/to-indexed-object"),i=t("../internals/object-keys");c.f=o&&!r?Object.defineProperties:function(u,a){s(u);for(var h,p=e(a),m=i(a),d=m.length,b=0;d>b;)n.f(u,h=m[b++],p[h]);return u}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/ie8-dom-define"),n=t("../internals/v8-prototype-define-bug"),s=t("../internals/an-object"),e=t("../internals/to-property-key"),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor;c.f=o?n?function(h,p,m){if(s(h),p=e(p),s(m),typeof h=="function"&&p==="prototype"&&"value"in m&&"writable"in m&&!m.writable){var d=a(h,p);d&&d.writable&&(h[p]=m.value,m={configurable:"configurable"in m?m.configurable:d.configurable,enumerable:"enumerable"in m?m.enumerable:d.enumerable,writable:!1})}return u(h,p,m)}:u:function(h,p,m){if(s(h),p=e(p),s(m),r)try{return u(h,p,m)}catch{}if("get"in m||"set"in m)throw new i("Accessors not supported");return"value"in m&&(h[p]=m.value),h}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/function-call"),n=t("../internals/object-property-is-enumerable"),s=t("../internals/create-property-descriptor"),e=t("../internals/to-indexed-object"),i=t("../internals/to-property-key"),u=t("../internals/has-own-property"),a=t("../internals/ie8-dom-define"),h=Object.getOwnPropertyDescriptor;c.f=o?h:function(p,m){if(p=e(p),m=i(m),a)try{return h(p,m)}catch{}if(u(p,m))return s(!r(n.f,p,m),p[m])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(t,l,c){var o=t("../internals/classof-raw"),r=t("../internals/to-indexed-object"),n=t("../internals/object-get-own-property-names").f,s=t("../internals/array-slice-simple"),e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];l.exports.f=function(i){return e&&o(i)==="Window"?(function(u){try{return n(u)}catch{return s(e)}})(i):n(r(i))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(t,l,c){var o=t("../internals/object-keys-internal"),r=t("../internals/enum-bug-keys").concat("length","prototype");c.f=Object.getOwnPropertyNames||function(n){return o(n,r)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(t,l,c){c.f=Object.getOwnPropertySymbols},{}],313:[function(t,l,c){var o=t("../internals/has-own-property"),r=t("../internals/is-callable"),n=t("../internals/to-object"),s=t("../internals/shared-key"),e=t("../internals/correct-prototype-getter"),i=s("IE_PROTO"),u=Object,a=u.prototype;l.exports=e?u.getPrototypeOf:function(h){var p=n(h);if(o(p,i))return p[i];var m=p.constructor;return r(m)&&p instanceof m?m.prototype:p instanceof u?a:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(t,l,c){var o=t("../internals/function-uncurry-this");l.exports=o({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/has-own-property"),n=t("../internals/to-indexed-object"),s=t("../internals/array-includes").indexOf,e=t("../internals/hidden-keys"),i=o([].push);l.exports=function(u,a){var h,p=n(u),m=0,d=[];for(h in p)!r(e,h)&&r(p,h)&&i(d,h);for(;a.length>m;)r(p,h=a[m++])&&(~s(d,h)||i(d,h));return d}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(t,l,c){var o=t("../internals/object-keys-internal"),r=t("../internals/enum-bug-keys");l.exports=Object.keys||function(n){return o(n,r)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(t,l,c){var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!o.call({1:2},1);c.f=n?function(s){var e=r(this,s);return!!e&&e.enumerable}:o},{}],318:[function(t,l,c){var o=t("../internals/function-uncurry-this-accessor"),r=t("../internals/an-object"),n=t("../internals/a-possible-prototype");l.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var s,e=!1,i={};try{(s=o(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch{}return function(u,a){return r(u),n(a),e?s(u,a):u.__proto__=a,u}})():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/fails"),n=t("../internals/function-uncurry-this"),s=t("../internals/object-get-prototype-of"),e=t("../internals/object-keys"),i=t("../internals/to-indexed-object"),u=n(t("../internals/object-property-is-enumerable").f),a=n([].push),h=o&&r((function(){var m=Object.create(null);return m[2]=2,!u(m,2)})),p=function(m){return function(d){for(var b,g=i(d),S=e(g),C=h&&s(g)===null,I=S.length,D=0,z=[];I>D;)b=S[D++],o&&!(C?b in g:u(g,b))||a(z,m?[b,g[b]]:g[b]);return z}};l.exports={entries:p(!0),values:p(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/is-callable"),n=t("../internals/is-object"),s=TypeError;l.exports=function(e,i){var u,a;if(i==="string"&&r(u=e.toString)&&!n(a=o(u,e))||r(u=e.valueOf)&&!n(a=o(u,e))||i!=="string"&&r(u=e.toString)&&!n(a=o(u,e)))return a;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(t,l,c){var o=t("../internals/get-built-in"),r=t("../internals/function-uncurry-this"),n=t("../internals/object-get-own-property-names"),s=t("../internals/object-get-own-property-symbols"),e=t("../internals/an-object"),i=r([].concat);l.exports=o("Reflect","ownKeys")||function(u){var a=n.f(e(u)),h=s.f;return h?i(a,h(u)):a}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(t,l,c){var o=t("../internals/global");l.exports=o},{"../internals/global":274}],323:[function(t,l,c){l.exports=function(o){try{return{error:!1,value:o()}}catch(r){return{error:!0,value:r}}}},{}],324:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/promise-native-constructor"),n=t("../internals/is-callable"),s=t("../internals/is-forced"),e=t("../internals/inspect-source"),i=t("../internals/well-known-symbol"),u=t("../internals/engine-is-browser"),a=t("../internals/engine-is-deno"),h=t("../internals/is-pure"),p=t("../internals/engine-v8-version"),m=r&&r.prototype,d=i("species"),b=!1,g=n(o.PromiseRejectionEvent),S=s("Promise",(function(){var C=e(r),I=C!==String(r);if(!I&&p===66||h&&(!m.catch||!m.finally))return!0;if(!p||p<51||!/native code/.test(C)){var D=new r((function(P){P(1)})),z=function(P){P((function(){}),(function(){}))};if((D.constructor={})[d]=z,!(b=D.then((function(){}))instanceof z))return!0}return!I&&(u||a)&&!g}));l.exports={CONSTRUCTOR:S,REJECTION_EVENT:g,SUBCLASSING:b}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(t,l,c){var o=t("../internals/global");l.exports=o.Promise},{"../internals/global":274}],326:[function(t,l,c){var o=t("../internals/an-object"),r=t("../internals/is-object"),n=t("../internals/new-promise-capability");l.exports=function(s,e){if(o(s),r(e)&&e.constructor===s)return e;var i=n.f(s);return(0,i.resolve)(e),i.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(t,l,c){var o=t("../internals/promise-native-constructor"),r=t("../internals/check-correctness-of-iteration"),n=t("../internals/promise-constructor-detection").CONSTRUCTOR;l.exports=n||!r((function(s){o.all(s).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(t,l,c){var o=function(){this.head=null,this.tail=null};o.prototype={add:function(r){var n={item:r,next:null},s=this.tail;s?s.next=n:this.head=n,this.tail=n},get:function(){var r=this.head;if(r)return(this.head=r.next)===null&&(this.tail=null),r.item}},l.exports=o},{}],329:[function(t,l,c){var o=t("../internals/is-null-or-undefined"),r=TypeError;l.exports=function(n){if(o(n))throw new r("Can't call method on "+n);return n}},{"../internals/is-null-or-undefined":288}],330:[function(t,l,c){var o=t("../internals/get-built-in"),r=t("../internals/define-built-in-accessor"),n=t("../internals/well-known-symbol"),s=t("../internals/descriptors"),e=n("species");l.exports=function(i){var u=o(i);s&&u&&!u[e]&&r(u,e,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(t,l,c){var o=t("../internals/object-define-property").f,r=t("../internals/has-own-property"),n=t("../internals/well-known-symbol")("toStringTag");l.exports=function(s,e,i){s&&!i&&(s=s.prototype),s&&!r(s,n)&&o(s,n,{configurable:!0,value:e})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(t,l,c){var o=t("../internals/shared"),r=t("../internals/uid"),n=o("keys");l.exports=function(s){return n[s]||(n[s]=r(s))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/define-global-property"),n=o["__core-js_shared__"]||r("__core-js_shared__",{});l.exports=n},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(t,l,c){var o=t("../internals/is-pure"),r=t("../internals/shared-store");(l.exports=function(n,s){return r[n]||(r[n]=s!==void 0?s:{})})("versions",[]).push({version:"3.33.0",mode:o?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(t,l,c){var o=t("../internals/an-object"),r=t("../internals/a-constructor"),n=t("../internals/is-null-or-undefined"),s=t("../internals/well-known-symbol")("species");l.exports=function(e,i){var u,a=o(e).constructor;return a===void 0||n(u=o(a)[s])?i:r(u)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(t,l,c){var o=t("../internals/engine-v8-version"),r=t("../internals/fails"),n=t("../internals/global").String;l.exports=!!Object.getOwnPropertySymbols&&!r((function(){var s=Symbol("symbol detection");return!n(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/get-built-in"),n=t("../internals/well-known-symbol"),s=t("../internals/define-built-in");l.exports=function(){var e=r("Symbol"),i=e&&e.prototype,u=i&&i.valueOf,a=n("toPrimitive");i&&!i[a]&&s(i,a,(function(h){return o(u,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(t,l,c){var o=t("../internals/symbol-constructor-detection");l.exports=o&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(t,l,c){var o,r,n,s,e=t("../internals/global"),i=t("../internals/function-apply"),u=t("../internals/function-bind-context"),a=t("../internals/is-callable"),h=t("../internals/has-own-property"),p=t("../internals/fails"),m=t("../internals/html"),d=t("../internals/array-slice"),b=t("../internals/document-create-element"),g=t("../internals/validate-arguments-length"),S=t("../internals/engine-is-ios"),C=t("../internals/engine-is-node"),I=e.setImmediate,D=e.clearImmediate,z=e.process,P=e.Dispatch,B=e.Function,F=e.MessageChannel,W=e.String,q=0,A={};p((function(){o=e.location}));var M=function(x){if(h(A,x)){var _=A[x];delete A[x],_()}},k=function(x){return function(){M(x)}},y=function(x){M(x.data)},w=function(x){e.postMessage(W(x),o.protocol+"//"+o.host)};I&&D||(I=function(x){g(arguments.length,1);var _=a(x)?x:B(x),T=d(arguments,1);return A[++q]=function(){i(_,void 0,T)},r(q),q},D=function(x){delete A[x]},C?r=function(x){z.nextTick(k(x))}:P&&P.now?r=function(x){P.now(k(x))}:F&&!S?(s=(n=new F).port2,n.port1.onmessage=y,r=u(s.postMessage,s)):e.addEventListener&&a(e.postMessage)&&!e.importScripts&&o&&o.protocol!=="file:"&&!p(w)?(r=w,e.addEventListener("message",y,!1)):r="onreadystatechange"in b("script")?function(x){m.appendChild(b("script")).onreadystatechange=function(){m.removeChild(this),M(x)}}:function(x){setTimeout(k(x),0)}),l.exports={set:I,clear:D}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(t,l,c){var o=t("../internals/to-integer-or-infinity"),r=Math.max,n=Math.min;l.exports=function(s,e){var i=o(s);return i<0?r(i+e,0):n(i,e)}},{"../internals/to-integer-or-infinity":342}],341:[function(t,l,c){var o=t("../internals/indexed-object"),r=t("../internals/require-object-coercible");l.exports=function(n){return o(r(n))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(t,l,c){var o=t("../internals/math-trunc");l.exports=function(r){var n=+r;return n!=n||n===0?0:o(n)}},{"../internals/math-trunc":301}],343:[function(t,l,c){var o=t("../internals/to-integer-or-infinity"),r=Math.min;l.exports=function(n){return n>0?r(o(n),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(t,l,c){var o=t("../internals/require-object-coercible"),r=Object;l.exports=function(n){return r(o(n))}},{"../internals/require-object-coercible":329}],345:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/is-object"),n=t("../internals/is-symbol"),s=t("../internals/get-method"),e=t("../internals/ordinary-to-primitive"),i=t("../internals/well-known-symbol"),u=TypeError,a=i("toPrimitive");l.exports=function(h,p){if(!r(h)||n(h))return h;var m,d=s(h,a);if(d){if(p===void 0&&(p="default"),m=o(d,h,p),!r(m)||n(m))return m;throw new u("Can't convert object to primitive value")}return p===void 0&&(p="number"),e(h,p)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(t,l,c){var o=t("../internals/to-primitive"),r=t("../internals/is-symbol");l.exports=function(n){var s=o(n,"string");return r(s)?s:s+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(t,l,c){var o={};o[t("../internals/well-known-symbol")("toStringTag")]="z",l.exports=String(o)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(t,l,c){var o=t("../internals/classof"),r=String;l.exports=function(n){if(o(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}},{"../internals/classof":236}],349:[function(t,l,c){var o=String;l.exports=function(r){try{return o(r)}catch{return"Object"}}},{}],350:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=0,n=Math.random(),s=o(1 .toString);l.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+s(++r+n,36)}},{"../internals/function-uncurry-this":268}],351:[function(t,l,c){var o=t("../internals/symbol-constructor-detection");l.exports=o&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/fails");l.exports=o&&r((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(t,l,c){var o=TypeError;l.exports=function(r,n){if(r<n)throw new o("Not enough arguments");return r}},{}],354:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/is-callable"),n=o.WeakMap;l.exports=r(n)&&/native code/.test(String(n))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(t,l,c){var o=t("../internals/path"),r=t("../internals/has-own-property"),n=t("../internals/well-known-symbol-wrapped"),s=t("../internals/object-define-property").f;l.exports=function(e){var i=o.Symbol||(o.Symbol={});r(i,e)||s(i,e,{value:n.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(t,l,c){var o=t("../internals/well-known-symbol");c.f=o},{"../internals/well-known-symbol":357}],357:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/shared"),n=t("../internals/has-own-property"),s=t("../internals/uid"),e=t("../internals/symbol-constructor-detection"),i=t("../internals/use-symbol-as-uid"),u=o.Symbol,a=r("wks"),h=i?u.for||u:u&&u.withoutSetter||s;l.exports=function(p){return n(a,p)||(a[p]=e&&n(u,p)?u[p]:h("Symbol."+p)),a[p]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/array-iteration").findIndex,n=t("../internals/add-to-unscopables"),s=!0;"findIndex"in[]&&Array(1).findIndex((function(){s=!1})),o({target:"Array",proto:!0,forced:s},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/array-iteration").find,n=t("../internals/add-to-unscopables"),s=!0;"find"in[]&&Array(1).find((function(){s=!1})),o({target:"Array",proto:!0,forced:s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/array-includes").includes,n=t("../internals/fails"),s=t("../internals/add-to-unscopables");o({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(t,l,c){var o=t("../internals/to-indexed-object"),r=t("../internals/add-to-unscopables"),n=t("../internals/iterators"),s=t("../internals/internal-state"),e=t("../internals/object-define-property").f,i=t("../internals/iterator-define"),u=t("../internals/create-iter-result-object"),a=t("../internals/is-pure"),h=t("../internals/descriptors"),p=s.set,m=s.getterFor("Array Iterator");l.exports=i(Array,"Array",(function(b,g){p(this,{type:"Array Iterator",target:o(b),index:0,kind:g})}),(function(){var b=m(this),g=b.target,S=b.kind,C=b.index++;if(!g||C>=g.length)return b.target=void 0,u(void 0,!0);switch(S){case"keys":return u(C,!1);case"values":return u(g[C],!1)}return u([C,g[C]],!1)}),"values");var d=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!a&&h&&d.name!=="values")try{e(d,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/get-built-in"),n=t("../internals/function-apply"),s=t("../internals/function-call"),e=t("../internals/function-uncurry-this"),i=t("../internals/fails"),u=t("../internals/is-callable"),a=t("../internals/is-symbol"),h=t("../internals/array-slice"),p=t("../internals/get-json-replacer-function"),m=t("../internals/symbol-constructor-detection"),d=String,b=r("JSON","stringify"),g=e(/./.exec),S=e("".charAt),C=e("".charCodeAt),I=e("".replace),D=e(1 .toString),z=/[\uD800-\uDFFF]/g,P=/^[\uD800-\uDBFF]$/,B=/^[\uDC00-\uDFFF]$/,F=!m||i((function(){var M=r("Symbol")("stringify detection");return b([M])!=="[null]"||b({a:M})!=="{}"||b(Object(M))!=="{}"})),W=i((function(){return b("\uDF06\uD834")!=='"\\udf06\\ud834"'||b("\uDEAD")!=='"\\udead"'})),q=function(M,k){var y=h(arguments),w=p(k);if(u(w)||M!==void 0&&!a(M))return y[1]=function(x,_){if(u(w)&&(_=s(w,this,d(x),_)),!a(_))return _},n(b,null,y)},A=function(M,k,y){var w=S(y,k-1),x=S(y,k+1);return g(P,M)&&!g(B,x)||g(B,M)&&!g(P,w)?"\\u"+D(C(M,0),16):M};b&&o({target:"JSON",stat:!0,arity:3,forced:F||W},{stringify:function(M,k,y){var w=h(arguments),x=n(F?q:b,null,w);return W&&typeof x=="string"?I(x,z,A):x}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(t,l,c){t("../internals/export")({target:"Number",stat:!0},{isNaN:function(o){return o!=o}})},{"../internals/export":259}],364:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/object-assign");o({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/symbol-constructor-detection"),n=t("../internals/fails"),s=t("../internals/object-get-own-property-symbols"),e=t("../internals/to-object");o({target:"Object",stat:!0,forced:!r||n((function(){s.f(1)}))},{getOwnPropertySymbols:function(i){var u=s.f;return u?u(e(i)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/to-object"),n=t("../internals/object-keys");o({target:"Object",stat:!0,forced:t("../internals/fails")((function(){n(1)}))},{keys:function(s){return n(r(s))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/object-to-array").values;o({target:"Object",stat:!0},{values:function(n){return r(n)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-call"),n=t("../internals/a-callable"),s=t("../internals/new-promise-capability"),e=t("../internals/perform"),i=t("../internals/iterate");o({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{all:function(u){var a=this,h=s.f(a),p=h.resolve,m=h.reject,d=e((function(){var b=n(a.resolve),g=[],S=0,C=1;i(u,(function(I){var D=S++,z=!1;C++,r(b,a,I).then((function(P){z||(z=!0,g[D]=P,--C||p(g))}),m)})),--C||p(g)}));return d.error&&m(d.value),h.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/is-pure"),n=t("../internals/promise-constructor-detection").CONSTRUCTOR,s=t("../internals/promise-native-constructor"),e=t("../internals/get-built-in"),i=t("../internals/is-callable"),u=t("../internals/define-built-in"),a=s&&s.prototype;if(o({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(p){return this.then(void 0,p)}}),!r&&i(s)){var h=e("Promise").prototype.catch;a.catch!==h&&u(a,"catch",h,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(t,l,c){var o,r,n,s=t("../internals/export"),e=t("../internals/is-pure"),i=t("../internals/engine-is-node"),u=t("../internals/global"),a=t("../internals/function-call"),h=t("../internals/define-built-in"),p=t("../internals/object-set-prototype-of"),m=t("../internals/set-to-string-tag"),d=t("../internals/set-species"),b=t("../internals/a-callable"),g=t("../internals/is-callable"),S=t("../internals/is-object"),C=t("../internals/an-instance"),I=t("../internals/species-constructor"),D=t("../internals/task").set,z=t("../internals/microtask"),P=t("../internals/host-report-errors"),B=t("../internals/perform"),F=t("../internals/queue"),W=t("../internals/internal-state"),q=t("../internals/promise-native-constructor"),A=t("../internals/promise-constructor-detection"),M=t("../internals/new-promise-capability"),k=A.CONSTRUCTOR,y=A.REJECTION_EVENT,w=A.SUBCLASSING,x=W.getterFor("Promise"),_=W.set,T=q&&q.prototype,O=q,j=T,V=u.TypeError,X=u.document,J=u.process,L=M.f,G=L,N=!!(X&&X.createEvent&&u.dispatchEvent),R=function(nt){var ut;return!(!S(nt)||!g(ut=nt.then))&&ut},U=function(nt,ut){var ct,ft,mt,gt=ut.value,xt=ut.state===1,Nt=xt?nt.ok:nt.fail,It=nt.resolve,At=nt.reject,Ut=nt.domain;try{Nt?(xt||(ut.rejection===2&&ht(ut),ut.rejection=1),Nt===!0?ct=gt:(Ut&&Ut.enter(),ct=Nt(gt),Ut&&(Ut.exit(),mt=!0)),ct===nt.promise?At(new V("Promise-chain cycle")):(ft=R(ct))?a(ft,ct,It,At):It(ct)):At(gt)}catch(Ht){Ut&&!mt&&Ut.exit(),At(Ht)}},K=function(nt,ut){nt.notified||(nt.notified=!0,z((function(){for(var ct,ft=nt.reactions;ct=ft.get();)U(ct,nt);nt.notified=!1,ut&&!nt.rejection&&Z(nt)})))},rt=function(nt,ut,ct){var ft,mt;N?((ft=X.createEvent("Event")).promise=ut,ft.reason=ct,ft.initEvent(nt,!1,!0),u.dispatchEvent(ft)):ft={promise:ut,reason:ct},!y&&(mt=u["on"+nt])?mt(ft):nt==="unhandledrejection"&&P("Unhandled promise rejection",ct)},Z=function(nt){a(D,u,(function(){var ut,ct=nt.facade,ft=nt.value;if(et(nt)&&(ut=B((function(){i?J.emit("unhandledRejection",ft,ct):rt("unhandledrejection",ct,ft)})),nt.rejection=i||et(nt)?2:1,ut.error))throw ut.value}))},et=function(nt){return nt.rejection!==1&&!nt.parent},ht=function(nt){a(D,u,(function(){var ut=nt.facade;i?J.emit("rejectionHandled",ut):rt("rejectionhandled",ut,nt.value)}))},lt=function(nt,ut,ct){return function(ft){nt(ut,ft,ct)}},Q=function(nt,ut,ct){nt.done||(nt.done=!0,ct&&(nt=ct),nt.value=ut,nt.state=2,K(nt,!0))},ot=function(nt,ut,ct){if(!nt.done){nt.done=!0,ct&&(nt=ct);try{if(nt.facade===ut)throw new V("Promise can't be resolved itself");var ft=R(ut);ft?z((function(){var mt={done:!1};try{a(ft,ut,lt(ot,mt,nt),lt(Q,mt,nt))}catch(gt){Q(mt,gt,nt)}})):(nt.value=ut,nt.state=1,K(nt,!1))}catch(mt){Q({done:!1},mt,nt)}}};if(k&&(j=(O=function(nt){C(this,j),b(nt),a(o,this);var ut=x(this);try{nt(lt(ot,ut),lt(Q,ut))}catch(ct){Q(ut,ct)}}).prototype,(o=function(nt){_(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new F,rejection:!1,state:0,value:void 0})}).prototype=h(j,"then",(function(nt,ut){var ct=x(this),ft=L(I(this,O));return ct.parent=!0,ft.ok=!g(nt)||nt,ft.fail=g(ut)&&ut,ft.domain=i?J.domain:void 0,ct.state===0?ct.reactions.add(ft):z((function(){U(ft,ct)})),ft.promise})),r=function(){var nt=new o,ut=x(nt);this.promise=nt,this.resolve=lt(ot,ut),this.reject=lt(Q,ut)},M.f=L=function(nt){return nt===O||nt===void 0?new r(nt):G(nt)},!e&&g(q)&&T!==Object.prototype)){n=T.then,w||h(T,"then",(function(nt,ut){var ct=this;return new O((function(ft,mt){a(n,ct,ft,mt)})).then(nt,ut)}),{unsafe:!0});try{delete T.constructor}catch{}p&&p(T,j)}s({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:O}),m(O,"Promise",!1,!0),d("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/is-pure"),n=t("../internals/promise-native-constructor"),s=t("../internals/fails"),e=t("../internals/get-built-in"),i=t("../internals/is-callable"),u=t("../internals/species-constructor"),a=t("../internals/promise-resolve"),h=t("../internals/define-built-in"),p=n&&n.prototype;if(o({target:"Promise",proto:!0,real:!0,forced:!!n&&s((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(d){var b=u(this,e("Promise")),g=i(d);return this.then(g?function(S){return a(b,d()).then((function(){return S}))}:d,g?function(S){return a(b,d()).then((function(){throw S}))}:d)}}),!r&&i(n)){var m=e("Promise").prototype.finally;p.finally!==m&&h(p,"finally",m,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(t,l,c){t("../modules/es.promise.constructor"),t("../modules/es.promise.all"),t("../modules/es.promise.catch"),t("../modules/es.promise.race"),t("../modules/es.promise.reject"),t("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-call"),n=t("../internals/a-callable"),s=t("../internals/new-promise-capability"),e=t("../internals/perform"),i=t("../internals/iterate");o({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{race:function(u){var a=this,h=s.f(a),p=h.reject,m=e((function(){var d=n(a.resolve);i(u,(function(b){r(d,a,b).then(h.resolve,p)}))}));return m.error&&p(m.value),h.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-call"),n=t("../internals/new-promise-capability");o({target:"Promise",stat:!0,forced:t("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(s){var e=n.f(this);return r(e.reject,void 0,s),e.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/get-built-in"),n=t("../internals/is-pure"),s=t("../internals/promise-native-constructor"),e=t("../internals/promise-constructor-detection").CONSTRUCTOR,i=t("../internals/promise-resolve"),u=r("Promise"),a=n&&!e;o({target:"Promise",stat:!0,forced:n||e},{resolve:function(h){return i(a&&this===u?s:this,h)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-uncurry-this"),n=t("../internals/to-absolute-index"),s=RangeError,e=String.fromCharCode,i=String.fromCodePoint,u=r([].join);o({target:"String",stat:!0,arity:1,forced:!!i&&i.length!==1},{fromCodePoint:function(a){for(var h,p=[],m=arguments.length,d=0;m>d;){if(h=+arguments[d++],n(h,1114111)!==h)throw new s(h+" is not a valid code point");p[d]=h<65536?e(h):e(55296+((h-=65536)>>10),h%1024+56320)}return u(p,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-uncurry-this"),n=t("../internals/not-a-regexp"),s=t("../internals/require-object-coercible"),e=t("../internals/to-string"),i=t("../internals/correct-is-regexp-logic"),u=r("".indexOf);o({target:"String",proto:!0,forced:!i("includes")},{includes:function(a){return!!~u(e(s(this)),e(n(a)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(t,l,c){t("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/global"),n=t("../internals/function-call"),s=t("../internals/function-uncurry-this"),e=t("../internals/is-pure"),i=t("../internals/descriptors"),u=t("../internals/symbol-constructor-detection"),a=t("../internals/fails"),h=t("../internals/has-own-property"),p=t("../internals/object-is-prototype-of"),m=t("../internals/an-object"),d=t("../internals/to-indexed-object"),b=t("../internals/to-property-key"),g=t("../internals/to-string"),S=t("../internals/create-property-descriptor"),C=t("../internals/object-create"),I=t("../internals/object-keys"),D=t("../internals/object-get-own-property-names"),z=t("../internals/object-get-own-property-names-external"),P=t("../internals/object-get-own-property-symbols"),B=t("../internals/object-get-own-property-descriptor"),F=t("../internals/object-define-property"),W=t("../internals/object-define-properties"),q=t("../internals/object-property-is-enumerable"),A=t("../internals/define-built-in"),M=t("../internals/define-built-in-accessor"),k=t("../internals/shared"),y=t("../internals/shared-key"),w=t("../internals/hidden-keys"),x=t("../internals/uid"),_=t("../internals/well-known-symbol"),T=t("../internals/well-known-symbol-wrapped"),O=t("../internals/well-known-symbol-define"),j=t("../internals/symbol-define-to-primitive"),V=t("../internals/set-to-string-tag"),X=t("../internals/internal-state"),J=t("../internals/array-iteration").forEach,L=y("hidden"),G=X.set,N=X.getterFor("Symbol"),R=Object.prototype,U=r.Symbol,K=U&&U.prototype,rt=r.RangeError,Z=r.TypeError,et=r.QObject,ht=B.f,lt=F.f,Q=z.f,ot=q.f,nt=s([].push),ut=k("symbols"),ct=k("op-symbols"),ft=k("wks"),mt=!et||!et.prototype||!et.prototype.findChild,gt=function(jt,Ct,$t){var qt=ht(R,Ct);qt&&delete R[Ct],lt(jt,Ct,$t),qt&&jt!==R&<(R,Ct,qt)},xt=i&&a((function(){return C(lt({},"a",{get:function(){return lt(this,"a",{value:7}).a}})).a!==7}))?gt:lt,Nt=function(jt,Ct){var $t=ut[jt]=C(K);return G($t,{type:"Symbol",tag:jt,description:Ct}),i||($t.description=Ct),$t},It=function(jt,Ct,$t){jt===R&&It(ct,Ct,$t),m(jt);var qt=b(Ct);return m($t),h(ut,qt)?($t.enumerable?(h(jt,L)&&jt[L][qt]&&(jt[L][qt]=!1),$t=C($t,{enumerable:S(0,!1)})):(h(jt,L)||lt(jt,L,S(1,{})),jt[L][qt]=!0),xt(jt,qt,$t)):lt(jt,qt,$t)},At=function(jt,Ct){m(jt);var $t=d(Ct),qt=I($t).concat(Xt($t));return J(qt,(function(Pt){i&&!n(Ut,$t,Pt)||It(jt,Pt,$t[Pt])})),jt},Ut=function(jt){var Ct=b(jt),$t=n(ot,this,Ct);return!(this===R&&h(ut,Ct)&&!h(ct,Ct))&&(!($t||!h(this,Ct)||!h(ut,Ct)||h(this,L)&&this[L][Ct])||$t)},Ht=function(jt,Ct){var $t=d(jt),qt=b(Ct);if($t!==R||!h(ut,qt)||h(ct,qt)){var Pt=ht($t,qt);return!Pt||!h(ut,qt)||h($t,L)&&$t[L][qt]||(Pt.enumerable=!0),Pt}},zt=function(jt){var Ct=Q(d(jt)),$t=[];return J(Ct,(function(qt){h(ut,qt)||h(w,qt)||nt($t,qt)})),$t},Xt=function(jt){var Ct=jt===R,$t=Q(Ct?ct:d(jt)),qt=[];return J($t,(function(Pt){!h(ut,Pt)||Ct&&!h(R,Pt)||nt(qt,ut[Pt])})),qt};u||(A(K=(U=function(){if(p(K,this))throw new Z("Symbol is not a constructor");var jt=arguments.length&&arguments[0]!==void 0?g(arguments[0]):void 0,Ct=x(jt),$t=function(qt){this===R&&n($t,ct,qt),h(this,L)&&h(this[L],Ct)&&(this[L][Ct]=!1);var Pt=S(1,qt);try{xt(this,Ct,Pt)}catch(fe){if(!(fe instanceof rt))throw fe;gt(this,Ct,Pt)}};return i&&mt&&xt(R,Ct,{configurable:!0,set:$t}),Nt(Ct,jt)}).prototype,"toString",(function(){return N(this).tag})),A(U,"withoutSetter",(function(jt){return Nt(x(jt),jt)})),q.f=Ut,F.f=It,W.f=At,B.f=Ht,D.f=z.f=zt,P.f=Xt,T.f=function(jt){return Nt(_(jt),jt)},i&&(M(K,"description",{configurable:!0,get:function(){return N(this).description}}),e||A(R,"propertyIsEnumerable",Ut,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),J(I(ft),(function(jt){O(jt)})),o({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){mt=!0},useSimple:function(){mt=!1}}),o({target:"Object",stat:!0,forced:!u,sham:!i},{create:function(jt,Ct){return Ct===void 0?C(jt):At(C(jt),Ct)},defineProperty:It,defineProperties:At,getOwnPropertyDescriptor:Ht}),o({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:zt}),j(),V(U,"Symbol"),w[L]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/get-built-in"),n=t("../internals/has-own-property"),s=t("../internals/to-string"),e=t("../internals/shared"),i=t("../internals/symbol-registry-detection"),u=e("string-to-symbol-registry"),a=e("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!i},{for:function(h){var p=s(h);if(n(u,p))return u[p];var m=r("Symbol")(p);return u[p]=m,a[m]=p,m}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(t,l,c){t("../modules/es.symbol.constructor"),t("../modules/es.symbol.for"),t("../modules/es.symbol.key-for"),t("../modules/es.json.stringify"),t("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/has-own-property"),n=t("../internals/is-symbol"),s=t("../internals/try-to-string"),e=t("../internals/shared"),i=t("../internals/symbol-registry-detection"),u=e("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!i},{keyFor:function(a){if(!n(a))throw new TypeError(s(a)+" is not a symbol");if(r(u,a))return u[a]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(t,l,c){function o(r){return Object.prototype.toString.call(r)}c.isArray=function(r){return Array.isArray?Array.isArray(r):o(r)==="[object Array]"},c.isBoolean=function(r){return typeof r=="boolean"},c.isNull=function(r){return r===null},c.isNullOrUndefined=function(r){return r==null},c.isNumber=function(r){return typeof r=="number"},c.isString=function(r){return typeof r=="string"},c.isSymbol=function(r){return typeof r=="symbol"},c.isUndefined=function(r){return r===void 0},c.isRegExp=function(r){return o(r)==="[object RegExp]"},c.isObject=function(r){return typeof r=="object"&&r!==null},c.isDate=function(r){return o(r)==="[object Date]"},c.isError=function(r){return o(r)==="[object Error]"||r instanceof Error},c.isFunction=function(r){return typeof r=="function"},c.isPrimitive=function(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||r===void 0},c.isBuffer=t("buffer").Buffer.isBuffer},{buffer:220}],384:[function(t,l,c){(function(o){(function(){var r=t("elliptic"),n=t("bn.js");l.exports=function(u){return new e(u)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function e(u){this.curveType=s[u],this.curveType||(this.curveType={name:u}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function i(u,a,h){Array.isArray(u)||(u=u.toArray());var p=new o(u);if(h&&p.length<h){var m=new o(h-p.length);m.fill(0),p=o.concat([m,p])}return a?p.toString(a):p}s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,e.prototype.generateKeys=function(u,a){return this.keys=this.curve.genKeyPair(),this.getPublicKey(u,a)},e.prototype.computeSecret=function(u,a,h){return a=a||"utf8",o.isBuffer(u)||(u=new o(u,a)),i(this.curve.keyFromPublic(u).getPublic().mul(this.keys.getPrivate()).getX(),h,this.curveType.byteLength)},e.prototype.getPublicKey=function(u,a){var h=this.keys.getPublic(a==="compressed",!0);return a==="hybrid"&&(h[h.length-1]%2?h[0]=7:h[0]=6),i(h,u)},e.prototype.getPrivateKey=function(u){return i(this.keys.getPrivate(),u)},e.prototype.setPublicKey=function(u,a){return a=a||"utf8",o.isBuffer(u)||(u=new o(u,a)),this.keys._importPublic(u),this},e.prototype.setPrivateKey=function(u,a){a=a||"utf8",o.isBuffer(u)||(u=new o(u,a));var h=new n(u);return h=h.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(h),this}}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(t,l,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],386:[function(t,l,c){var o=t("inherits"),r=t("md5.js"),n=t("ripemd160"),s=t("sha.js"),e=t("cipher-base");function i(u){e.call(this,"digest"),this._hash=u}o(i,e),i.prototype._update=function(u){this._hash.update(u)},i.prototype._final=function(){return this._hash.digest()},l.exports=function(u){return(u=u.toLowerCase())==="md5"?new r:u==="rmd160"||u==="ripemd160"?new n:new i(s(u))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(t,l,c){var o=t("md5.js");l.exports=function(r){return new o().update(r).digest()}},{"md5.js":450}],388:[function(t,l,c){var o=t("inherits"),r=t("./legacy"),n=t("cipher-base"),s=t("safe-buffer").Buffer,e=t("create-hash/md5"),i=t("ripemd160"),u=t("sha.js"),a=s.alloc(128);function h(p,m){n.call(this,"digest"),typeof m=="string"&&(m=s.from(m));var d=p==="sha512"||p==="sha384"?128:64;this._alg=p,this._key=m,m.length>d?m=(p==="rmd160"?new i:u(p)).update(m).digest():m.length<d&&(m=s.concat([m,a],d));for(var b=this._ipad=s.allocUnsafe(d),g=this._opad=s.allocUnsafe(d),S=0;S<d;S++)b[S]=54^m[S],g[S]=92^m[S];this._hash=p==="rmd160"?new i:u(p),this._hash.update(b)}o(h,n),h.prototype._update=function(p){this._hash.update(p)},h.prototype._final=function(){var p=this._hash.digest();return(this._alg==="rmd160"?new i:u(this._alg)).update(this._opad).update(p).digest()},l.exports=function(p,m){return(p=p.toLowerCase())==="rmd160"||p==="ripemd160"?new h("rmd160",m):p==="md5"?new r(e,m):new h(p,m)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(t,l,c){var o=t("inherits"),r=t("safe-buffer").Buffer,n=t("cipher-base"),s=r.alloc(128);function e(i,u){n.call(this,"digest"),typeof u=="string"&&(u=r.from(u)),this._alg=i,this._key=u,u.length>64?u=i(u):u.length<64&&(u=r.concat([u,s],64));for(var a=this._ipad=r.allocUnsafe(64),h=this._opad=r.allocUnsafe(64),p=0;p<64;p++)a[p]=54^u[p],h[p]=92^u[p];this._hash=[a]}o(e,n),e.prototype._update=function(i){this._hash.push(i)},e.prototype._final=function(){var i=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,i]))},l.exports=e},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(t,l,c){c.randomBytes=c.rng=c.pseudoRandomBytes=c.prng=t("randombytes"),c.createHash=c.Hash=t("create-hash"),c.createHmac=c.Hmac=t("create-hmac");var o=t("browserify-sign/algos"),r=Object.keys(o),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);c.getHashes=function(){return n};var s=t("pbkdf2");c.pbkdf2=s.pbkdf2,c.pbkdf2Sync=s.pbkdf2Sync;var e=t("browserify-cipher");c.Cipher=e.Cipher,c.createCipher=e.createCipher,c.Cipheriv=e.Cipheriv,c.createCipheriv=e.createCipheriv,c.Decipher=e.Decipher,c.createDecipher=e.createDecipher,c.Decipheriv=e.Decipheriv,c.createDecipheriv=e.createDecipheriv,c.getCiphers=e.getCiphers,c.listCiphers=e.listCiphers;var i=t("diffie-hellman");c.DiffieHellmanGroup=i.DiffieHellmanGroup,c.createDiffieHellmanGroup=i.createDiffieHellmanGroup,c.getDiffieHellman=i.getDiffieHellman,c.createDiffieHellman=i.createDiffieHellman,c.DiffieHellman=i.DiffieHellman;var u=t("browserify-sign");c.createSign=u.createSign,c.Sign=u.Sign,c.createVerify=u.createVerify,c.Verify=u.Verify,c.createECDH=t("create-ecdh");var a=t("public-encrypt");c.publicEncrypt=a.publicEncrypt,c.privateEncrypt=a.privateEncrypt,c.publicDecrypt=a.publicDecrypt,c.privateDecrypt=a.privateDecrypt;var h=t("randomfill");c.randomFill=h.randomFill,c.randomFillSync=h.randomFillSync,c.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
263
|
+
`)}},{"./der":181,inherits:440}],184:[function(t,l,c){(function(o,r){function n(A,M){if(!A)throw new Error(M||"Assertion failed")}function s(A,M){A.super_=M;var k=function(){};k.prototype=M.prototype,A.prototype=new k,A.prototype.constructor=A}function e(A,M,k){if(e.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&(M!=="le"&&M!=="be"||(k=M,M=10),this._init(A||0,M||10,k||"be"))}var i;typeof o=="object"?o.exports=e:(void 0).BN=e,e.BN=e,e.wordSize=26;try{i=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch{}function u(A,M){var k=A.charCodeAt(M);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function a(A,M,k){var y=u(A,k);return k-1>=M&&(y|=u(A,k-1)<<4),y}function h(A,M,k,y){for(var w=0,x=Math.min(A.length,k),_=M;_<x;_++){var T=A.charCodeAt(_)-48;w*=y,w+=T>=49?T-49+10:T>=17?T-17+10:T}return w}e.isBN=function(A){return A instanceof e||A!==null&&typeof A=="object"&&A.constructor.wordSize===e.wordSize&&Array.isArray(A.words)},e.max=function(A,M){return A.cmp(M)>0?A:M},e.min=function(A,M){return A.cmp(M)<0?A:M},e.prototype._init=function(A,M,k){if(typeof A=="number")return this._initNumber(A,M,k);if(typeof A=="object")return this._initArray(A,M,k);M==="hex"&&(M=16),n(M===(0|M)&&M>=2&&M<=36);var y=0;(A=A.toString().replace(/\s+/g,""))[0]==="-"&&(y++,this.negative=1),y<A.length&&(M===16?this._parseHex(A,y,k):(this._parseBase(A,M,y),k==="le"&&this._initArray(this.toArray(),M,k)))},e.prototype._initNumber=function(A,M,k){A<0&&(this.negative=1,A=-A),A<67108864?(this.words=[67108863&A],this.length=1):A<4503599627370496?(this.words=[67108863&A,A/67108864&67108863],this.length=2):(n(A<9007199254740992),this.words=[67108863&A,A/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),M,k)},e.prototype._initArray=function(A,M,k){if(n(typeof A.length=="number"),A.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(A.length/3),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var w,x,_=0;if(k==="be")for(y=A.length-1,w=0;y>=0;y-=3)x=A[y]|A[y-1]<<8|A[y-2]<<16,this.words[w]|=x<<_&67108863,this.words[w+1]=x>>>26-_&67108863,(_+=24)>=26&&(_-=26,w++);else if(k==="le")for(y=0,w=0;y<A.length;y+=3)x=A[y]|A[y+1]<<8|A[y+2]<<16,this.words[w]|=x<<_&67108863,this.words[w+1]=x>>>26-_&67108863,(_+=24)>=26&&(_-=26,w++);return this.strip()},e.prototype._parseHex=function(A,M,k){this.length=Math.ceil((A.length-M)/6),this.words=new Array(this.length);for(var y=0;y<this.length;y++)this.words[y]=0;var w,x=0,_=0;if(k==="be")for(y=A.length-1;y>=M;y-=2)w=a(A,M,y)<<x,this.words[_]|=67108863&w,x>=18?(x-=18,_+=1,this.words[_]|=w>>>26):x+=8;else for(y=(A.length-M)%2==0?M+1:M;y<A.length;y+=2)w=a(A,M,y)<<x,this.words[_]|=67108863&w,x>=18?(x-=18,_+=1,this.words[_]|=w>>>26):x+=8;this.strip()},e.prototype._parseBase=function(A,M,k){this.words=[0],this.length=1;for(var y=0,w=1;w<=67108863;w*=M)y++;y--,w=w/M|0;for(var x=A.length-k,_=x%y,T=Math.min(x,x-_)+k,O=0,j=k;j<T;j+=y)O=h(A,j,j+y,M),this.imuln(w),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O);if(_!==0){var V=1;for(O=h(A,j,A.length,M),j=0;j<_;j++)V*=M;this.imuln(V),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O)}this.strip()},e.prototype.copy=function(A){A.words=new Array(this.length);for(var M=0;M<this.length;M++)A.words[M]=this.words[M];A.length=this.length,A.negative=this.negative,A.red=this.red},e.prototype.clone=function(){var A=new e(null);return this.copy(A),A},e.prototype._expand=function(A){for(;this.length<A;)this.words[this.length++]=0;return this},e.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},e.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],m=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(A,M,k){k.negative=M.negative^A.negative;var y=A.length+M.length|0;k.length=y,y=y-1|0;var w=0|A.words[0],x=0|M.words[0],_=w*x,T=67108863&_,O=_/67108864|0;k.words[0]=T;for(var j=1;j<y;j++){for(var V=O>>>26,X=67108863&O,J=Math.min(j,M.length-1),L=Math.max(0,j-A.length+1);L<=J;L++){var G=j-L|0;V+=(_=(w=0|A.words[G])*(x=0|M.words[L])+X)/67108864|0,X=67108863&_}k.words[j]=0|X,O=0|V}return O!==0?k.words[j]=0|O:k.length--,k.strip()}e.prototype.toString=function(A,M){var k;if(M=0|M||1,(A=A||10)===16||A==="hex"){k="";for(var y=0,w=0,x=0;x<this.length;x++){var _=this.words[x],T=(16777215&(_<<y|w)).toString(16);k=(w=_>>>24-y&16777215)!==0||x!==this.length-1?p[6-T.length]+T+k:T+k,(y+=2)>=26&&(y-=26,x--)}for(w!==0&&(k=w.toString(16)+k);k.length%M!=0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(A===(0|A)&&A>=2&&A<=36){var O=m[A],j=d[A];k="";var V=this.clone();for(V.negative=0;!V.isZero();){var X=V.modn(j).toString(A);k=(V=V.idivn(j)).isZero()?X+k:p[O-X.length]+X+k}for(this.isZero()&&(k="0"+k);k.length%M!=0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}n(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var A=this.words[0];return this.length===2?A+=67108864*this.words[1]:this.length===3&&this.words[2]===1?A+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-A:A},e.prototype.toJSON=function(){return this.toString(16)},e.prototype.toBuffer=function(A,M){return n(i!==void 0),this.toArrayLike(i,A,M)},e.prototype.toArray=function(A,M){return this.toArrayLike(Array,A,M)},e.prototype.toArrayLike=function(A,M,k){var y=this.byteLength(),w=k||Math.max(1,y);n(y<=w,"byte array longer than desired length"),n(w>0,"Requested array length <= 0"),this.strip();var x,_,T=M==="le",O=new A(w),j=this.clone();if(T){for(_=0;!j.isZero();_++)x=j.andln(255),j.iushrn(8),O[_]=x;for(;_<w;_++)O[_]=0}else{for(_=0;_<w-y;_++)O[_]=0;for(_=0;!j.isZero();_++)x=j.andln(255),j.iushrn(8),O[w-_-1]=x}return O},Math.clz32?e.prototype._countBits=function(A){return 32-Math.clz32(A)}:e.prototype._countBits=function(A){var M=A,k=0;return M>=4096&&(k+=13,M>>>=13),M>=64&&(k+=7,M>>>=7),M>=8&&(k+=4,M>>>=4),M>=2&&(k+=2,M>>>=2),k+M},e.prototype._zeroBits=function(A){if(A===0)return 26;var M=A,k=0;return(8191&M)==0&&(k+=13,M>>>=13),(127&M)==0&&(k+=7,M>>>=7),(15&M)==0&&(k+=4,M>>>=4),(3&M)==0&&(k+=2,M>>>=2),(1&M)==0&&k++,k},e.prototype.bitLength=function(){var A=this.words[this.length-1],M=this._countBits(A);return 26*(this.length-1)+M},e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var A=0,M=0;M<this.length;M++){var k=this._zeroBits(this.words[M]);if(A+=k,k!==26)break}return A},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(A){return this.negative!==0?this.abs().inotn(A).iaddn(1):this.clone()},e.prototype.fromTwos=function(A){return this.testn(A-1)?this.notn(A).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(A){for(;this.length<A.length;)this.words[this.length++]=0;for(var M=0;M<A.length;M++)this.words[M]=this.words[M]|A.words[M];return this.strip()},e.prototype.ior=function(A){return n((this.negative|A.negative)==0),this.iuor(A)},e.prototype.or=function(A){return this.length>A.length?this.clone().ior(A):A.clone().ior(this)},e.prototype.uor=function(A){return this.length>A.length?this.clone().iuor(A):A.clone().iuor(this)},e.prototype.iuand=function(A){var M;M=this.length>A.length?A:this;for(var k=0;k<M.length;k++)this.words[k]=this.words[k]&A.words[k];return this.length=M.length,this.strip()},e.prototype.iand=function(A){return n((this.negative|A.negative)==0),this.iuand(A)},e.prototype.and=function(A){return this.length>A.length?this.clone().iand(A):A.clone().iand(this)},e.prototype.uand=function(A){return this.length>A.length?this.clone().iuand(A):A.clone().iuand(this)},e.prototype.iuxor=function(A){var M,k;this.length>A.length?(M=this,k=A):(M=A,k=this);for(var y=0;y<k.length;y++)this.words[y]=M.words[y]^k.words[y];if(this!==M)for(;y<M.length;y++)this.words[y]=M.words[y];return this.length=M.length,this.strip()},e.prototype.ixor=function(A){return n((this.negative|A.negative)==0),this.iuxor(A)},e.prototype.xor=function(A){return this.length>A.length?this.clone().ixor(A):A.clone().ixor(this)},e.prototype.uxor=function(A){return this.length>A.length?this.clone().iuxor(A):A.clone().iuxor(this)},e.prototype.inotn=function(A){n(typeof A=="number"&&A>=0);var M=0|Math.ceil(A/26),k=A%26;this._expand(M),k>0&&M--;for(var y=0;y<M;y++)this.words[y]=67108863&~this.words[y];return k>0&&(this.words[y]=~this.words[y]&67108863>>26-k),this.strip()},e.prototype.notn=function(A){return this.clone().inotn(A)},e.prototype.setn=function(A,M){n(typeof A=="number"&&A>=0);var k=A/26|0,y=A%26;return this._expand(k+1),this.words[k]=M?this.words[k]|1<<y:this.words[k]&~(1<<y),this.strip()},e.prototype.iadd=function(A){var M,k,y;if(this.negative!==0&&A.negative===0)return this.negative=0,M=this.isub(A),this.negative^=1,this._normSign();if(this.negative===0&&A.negative!==0)return A.negative=0,M=this.isub(A),A.negative=1,M._normSign();this.length>A.length?(k=this,y=A):(k=A,y=this);for(var w=0,x=0;x<y.length;x++)M=(0|k.words[x])+(0|y.words[x])+w,this.words[x]=67108863&M,w=M>>>26;for(;w!==0&&x<k.length;x++)M=(0|k.words[x])+w,this.words[x]=67108863&M,w=M>>>26;if(this.length=k.length,w!==0)this.words[this.length]=w,this.length++;else if(k!==this)for(;x<k.length;x++)this.words[x]=k.words[x];return this},e.prototype.add=function(A){var M;return A.negative!==0&&this.negative===0?(A.negative=0,M=this.sub(A),A.negative^=1,M):A.negative===0&&this.negative!==0?(this.negative=0,M=A.sub(this),this.negative=1,M):this.length>A.length?this.clone().iadd(A):A.clone().iadd(this)},e.prototype.isub=function(A){if(A.negative!==0){A.negative=0;var M=this.iadd(A);return A.negative=1,M._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(A),this.negative=1,this._normSign();var k,y,w=this.cmp(A);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;w>0?(k=this,y=A):(k=A,y=this);for(var x=0,_=0;_<y.length;_++)x=(M=(0|k.words[_])-(0|y.words[_])+x)>>26,this.words[_]=67108863&M;for(;x!==0&&_<k.length;_++)x=(M=(0|k.words[_])+x)>>26,this.words[_]=67108863&M;if(x===0&&_<k.length&&k!==this)for(;_<k.length;_++)this.words[_]=k.words[_];return this.length=Math.max(this.length,_),k!==this&&(this.negative=1),this.strip()},e.prototype.sub=function(A){return this.clone().isub(A)};var g=function(A,M,k){var y,w,x,_=A.words,T=M.words,O=k.words,j=0,V=0|_[0],X=8191&V,J=V>>>13,L=0|_[1],G=8191&L,N=L>>>13,R=0|_[2],U=8191&R,K=R>>>13,rt=0|_[3],Z=8191&rt,et=rt>>>13,ht=0|_[4],lt=8191&ht,Q=ht>>>13,ot=0|_[5],nt=8191&ot,ut=ot>>>13,ct=0|_[6],ft=8191&ct,mt=ct>>>13,gt=0|_[7],xt=8191>,Nt=gt>>>13,It=0|_[8],At=8191&It,Ut=It>>>13,Ht=0|_[9],zt=8191&Ht,Xt=Ht>>>13,jt=0|T[0],Ct=8191&jt,$t=jt>>>13,qt=0|T[1],Dt=8191&qt,fe=qt>>>13,ke=0|T[2],Yt=8191&ke,we=ke>>>13,ue=0|T[3],se=8191&ue,Oe=ue>>>13,xe=0|T[4],Qt=8191&xe,be=xe>>>13,Te=0|T[5],te=8191&Te,_e=Te>>>13,Re=0|T[6],ne=8191&Re,at=Re>>>13,dt=0|T[7],bt=8191&dt,Tt=dt>>>13,Kt=0|T[8],Mt=8191&Kt,ee=Kt>>>13,Zt=0|T[9],Vt=8191&Zt,ie=Zt>>>13;k.negative=A.negative^M.negative,k.length=19;var re=(j+(y=Math.imul(X,Ct))|0)+((8191&(w=(w=Math.imul(X,$t))+Math.imul(J,Ct)|0))<<13)|0;j=((x=Math.imul(J,$t))+(w>>>13)|0)+(re>>>26)|0,re&=67108863,y=Math.imul(G,Ct),w=(w=Math.imul(G,$t))+Math.imul(N,Ct)|0,x=Math.imul(N,$t);var le=(j+(y=y+Math.imul(X,Dt)|0)|0)+((8191&(w=(w=w+Math.imul(X,fe)|0)+Math.imul(J,Dt)|0))<<13)|0;j=((x=x+Math.imul(J,fe)|0)+(w>>>13)|0)+(le>>>26)|0,le&=67108863,y=Math.imul(U,Ct),w=(w=Math.imul(U,$t))+Math.imul(K,Ct)|0,x=Math.imul(K,$t),y=y+Math.imul(G,Dt)|0,w=(w=w+Math.imul(G,fe)|0)+Math.imul(N,Dt)|0,x=x+Math.imul(N,fe)|0;var ze=(j+(y=y+Math.imul(X,Yt)|0)|0)+((8191&(w=(w=w+Math.imul(X,we)|0)+Math.imul(J,Yt)|0))<<13)|0;j=((x=x+Math.imul(J,we)|0)+(w>>>13)|0)+(ze>>>26)|0,ze&=67108863,y=Math.imul(Z,Ct),w=(w=Math.imul(Z,$t))+Math.imul(et,Ct)|0,x=Math.imul(et,$t),y=y+Math.imul(U,Dt)|0,w=(w=w+Math.imul(U,fe)|0)+Math.imul(K,Dt)|0,x=x+Math.imul(K,fe)|0,y=y+Math.imul(G,Yt)|0,w=(w=w+Math.imul(G,we)|0)+Math.imul(N,Yt)|0,x=x+Math.imul(N,we)|0;var $e=(j+(y=y+Math.imul(X,se)|0)|0)+((8191&(w=(w=w+Math.imul(X,Oe)|0)+Math.imul(J,se)|0))<<13)|0;j=((x=x+Math.imul(J,Oe)|0)+(w>>>13)|0)+($e>>>26)|0,$e&=67108863,y=Math.imul(lt,Ct),w=(w=Math.imul(lt,$t))+Math.imul(Q,Ct)|0,x=Math.imul(Q,$t),y=y+Math.imul(Z,Dt)|0,w=(w=w+Math.imul(Z,fe)|0)+Math.imul(et,Dt)|0,x=x+Math.imul(et,fe)|0,y=y+Math.imul(U,Yt)|0,w=(w=w+Math.imul(U,we)|0)+Math.imul(K,Yt)|0,x=x+Math.imul(K,we)|0,y=y+Math.imul(G,se)|0,w=(w=w+Math.imul(G,Oe)|0)+Math.imul(N,se)|0,x=x+Math.imul(N,Oe)|0;var tr=(j+(y=y+Math.imul(X,Qt)|0)|0)+((8191&(w=(w=w+Math.imul(X,be)|0)+Math.imul(J,Qt)|0))<<13)|0;j=((x=x+Math.imul(J,be)|0)+(w>>>13)|0)+(tr>>>26)|0,tr&=67108863,y=Math.imul(nt,Ct),w=(w=Math.imul(nt,$t))+Math.imul(ut,Ct)|0,x=Math.imul(ut,$t),y=y+Math.imul(lt,Dt)|0,w=(w=w+Math.imul(lt,fe)|0)+Math.imul(Q,Dt)|0,x=x+Math.imul(Q,fe)|0,y=y+Math.imul(Z,Yt)|0,w=(w=w+Math.imul(Z,we)|0)+Math.imul(et,Yt)|0,x=x+Math.imul(et,we)|0,y=y+Math.imul(U,se)|0,w=(w=w+Math.imul(U,Oe)|0)+Math.imul(K,se)|0,x=x+Math.imul(K,Oe)|0,y=y+Math.imul(G,Qt)|0,w=(w=w+Math.imul(G,be)|0)+Math.imul(N,Qt)|0,x=x+Math.imul(N,be)|0;var er=(j+(y=y+Math.imul(X,te)|0)|0)+((8191&(w=(w=w+Math.imul(X,_e)|0)+Math.imul(J,te)|0))<<13)|0;j=((x=x+Math.imul(J,_e)|0)+(w>>>13)|0)+(er>>>26)|0,er&=67108863,y=Math.imul(ft,Ct),w=(w=Math.imul(ft,$t))+Math.imul(mt,Ct)|0,x=Math.imul(mt,$t),y=y+Math.imul(nt,Dt)|0,w=(w=w+Math.imul(nt,fe)|0)+Math.imul(ut,Dt)|0,x=x+Math.imul(ut,fe)|0,y=y+Math.imul(lt,Yt)|0,w=(w=w+Math.imul(lt,we)|0)+Math.imul(Q,Yt)|0,x=x+Math.imul(Q,we)|0,y=y+Math.imul(Z,se)|0,w=(w=w+Math.imul(Z,Oe)|0)+Math.imul(et,se)|0,x=x+Math.imul(et,Oe)|0,y=y+Math.imul(U,Qt)|0,w=(w=w+Math.imul(U,be)|0)+Math.imul(K,Qt)|0,x=x+Math.imul(K,be)|0,y=y+Math.imul(G,te)|0,w=(w=w+Math.imul(G,_e)|0)+Math.imul(N,te)|0,x=x+Math.imul(N,_e)|0;var xr=(j+(y=y+Math.imul(X,ne)|0)|0)+((8191&(w=(w=w+Math.imul(X,at)|0)+Math.imul(J,ne)|0))<<13)|0;j=((x=x+Math.imul(J,at)|0)+(w>>>13)|0)+(xr>>>26)|0,xr&=67108863,y=Math.imul(xt,Ct),w=(w=Math.imul(xt,$t))+Math.imul(Nt,Ct)|0,x=Math.imul(Nt,$t),y=y+Math.imul(ft,Dt)|0,w=(w=w+Math.imul(ft,fe)|0)+Math.imul(mt,Dt)|0,x=x+Math.imul(mt,fe)|0,y=y+Math.imul(nt,Yt)|0,w=(w=w+Math.imul(nt,we)|0)+Math.imul(ut,Yt)|0,x=x+Math.imul(ut,we)|0,y=y+Math.imul(lt,se)|0,w=(w=w+Math.imul(lt,Oe)|0)+Math.imul(Q,se)|0,x=x+Math.imul(Q,Oe)|0,y=y+Math.imul(Z,Qt)|0,w=(w=w+Math.imul(Z,be)|0)+Math.imul(et,Qt)|0,x=x+Math.imul(et,be)|0,y=y+Math.imul(U,te)|0,w=(w=w+Math.imul(U,_e)|0)+Math.imul(K,te)|0,x=x+Math.imul(K,_e)|0,y=y+Math.imul(G,ne)|0,w=(w=w+Math.imul(G,at)|0)+Math.imul(N,ne)|0,x=x+Math.imul(N,at)|0;var st=(j+(y=y+Math.imul(X,bt)|0)|0)+((8191&(w=(w=w+Math.imul(X,Tt)|0)+Math.imul(J,bt)|0))<<13)|0;j=((x=x+Math.imul(J,Tt)|0)+(w>>>13)|0)+(st>>>26)|0,st&=67108863,y=Math.imul(At,Ct),w=(w=Math.imul(At,$t))+Math.imul(Ut,Ct)|0,x=Math.imul(Ut,$t),y=y+Math.imul(xt,Dt)|0,w=(w=w+Math.imul(xt,fe)|0)+Math.imul(Nt,Dt)|0,x=x+Math.imul(Nt,fe)|0,y=y+Math.imul(ft,Yt)|0,w=(w=w+Math.imul(ft,we)|0)+Math.imul(mt,Yt)|0,x=x+Math.imul(mt,we)|0,y=y+Math.imul(nt,se)|0,w=(w=w+Math.imul(nt,Oe)|0)+Math.imul(ut,se)|0,x=x+Math.imul(ut,Oe)|0,y=y+Math.imul(lt,Qt)|0,w=(w=w+Math.imul(lt,be)|0)+Math.imul(Q,Qt)|0,x=x+Math.imul(Q,be)|0,y=y+Math.imul(Z,te)|0,w=(w=w+Math.imul(Z,_e)|0)+Math.imul(et,te)|0,x=x+Math.imul(et,_e)|0,y=y+Math.imul(U,ne)|0,w=(w=w+Math.imul(U,at)|0)+Math.imul(K,ne)|0,x=x+Math.imul(K,at)|0,y=y+Math.imul(G,bt)|0,w=(w=w+Math.imul(G,Tt)|0)+Math.imul(N,bt)|0,x=x+Math.imul(N,Tt)|0;var pt=(j+(y=y+Math.imul(X,Mt)|0)|0)+((8191&(w=(w=w+Math.imul(X,ee)|0)+Math.imul(J,Mt)|0))<<13)|0;j=((x=x+Math.imul(J,ee)|0)+(w>>>13)|0)+(pt>>>26)|0,pt&=67108863,y=Math.imul(zt,Ct),w=(w=Math.imul(zt,$t))+Math.imul(Xt,Ct)|0,x=Math.imul(Xt,$t),y=y+Math.imul(At,Dt)|0,w=(w=w+Math.imul(At,fe)|0)+Math.imul(Ut,Dt)|0,x=x+Math.imul(Ut,fe)|0,y=y+Math.imul(xt,Yt)|0,w=(w=w+Math.imul(xt,we)|0)+Math.imul(Nt,Yt)|0,x=x+Math.imul(Nt,we)|0,y=y+Math.imul(ft,se)|0,w=(w=w+Math.imul(ft,Oe)|0)+Math.imul(mt,se)|0,x=x+Math.imul(mt,Oe)|0,y=y+Math.imul(nt,Qt)|0,w=(w=w+Math.imul(nt,be)|0)+Math.imul(ut,Qt)|0,x=x+Math.imul(ut,be)|0,y=y+Math.imul(lt,te)|0,w=(w=w+Math.imul(lt,_e)|0)+Math.imul(Q,te)|0,x=x+Math.imul(Q,_e)|0,y=y+Math.imul(Z,ne)|0,w=(w=w+Math.imul(Z,at)|0)+Math.imul(et,ne)|0,x=x+Math.imul(et,at)|0,y=y+Math.imul(U,bt)|0,w=(w=w+Math.imul(U,Tt)|0)+Math.imul(K,bt)|0,x=x+Math.imul(K,Tt)|0,y=y+Math.imul(G,Mt)|0,w=(w=w+Math.imul(G,ee)|0)+Math.imul(N,Mt)|0,x=x+Math.imul(N,ee)|0;var wt=(j+(y=y+Math.imul(X,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(X,ie)|0)+Math.imul(J,Vt)|0))<<13)|0;j=((x=x+Math.imul(J,ie)|0)+(w>>>13)|0)+(wt>>>26)|0,wt&=67108863,y=Math.imul(zt,Dt),w=(w=Math.imul(zt,fe))+Math.imul(Xt,Dt)|0,x=Math.imul(Xt,fe),y=y+Math.imul(At,Yt)|0,w=(w=w+Math.imul(At,we)|0)+Math.imul(Ut,Yt)|0,x=x+Math.imul(Ut,we)|0,y=y+Math.imul(xt,se)|0,w=(w=w+Math.imul(xt,Oe)|0)+Math.imul(Nt,se)|0,x=x+Math.imul(Nt,Oe)|0,y=y+Math.imul(ft,Qt)|0,w=(w=w+Math.imul(ft,be)|0)+Math.imul(mt,Qt)|0,x=x+Math.imul(mt,be)|0,y=y+Math.imul(nt,te)|0,w=(w=w+Math.imul(nt,_e)|0)+Math.imul(ut,te)|0,x=x+Math.imul(ut,_e)|0,y=y+Math.imul(lt,ne)|0,w=(w=w+Math.imul(lt,at)|0)+Math.imul(Q,ne)|0,x=x+Math.imul(Q,at)|0,y=y+Math.imul(Z,bt)|0,w=(w=w+Math.imul(Z,Tt)|0)+Math.imul(et,bt)|0,x=x+Math.imul(et,Tt)|0,y=y+Math.imul(U,Mt)|0,w=(w=w+Math.imul(U,ee)|0)+Math.imul(K,Mt)|0,x=x+Math.imul(K,ee)|0;var _t=(j+(y=y+Math.imul(G,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(G,ie)|0)+Math.imul(N,Vt)|0))<<13)|0;j=((x=x+Math.imul(N,ie)|0)+(w>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(zt,Yt),w=(w=Math.imul(zt,we))+Math.imul(Xt,Yt)|0,x=Math.imul(Xt,we),y=y+Math.imul(At,se)|0,w=(w=w+Math.imul(At,Oe)|0)+Math.imul(Ut,se)|0,x=x+Math.imul(Ut,Oe)|0,y=y+Math.imul(xt,Qt)|0,w=(w=w+Math.imul(xt,be)|0)+Math.imul(Nt,Qt)|0,x=x+Math.imul(Nt,be)|0,y=y+Math.imul(ft,te)|0,w=(w=w+Math.imul(ft,_e)|0)+Math.imul(mt,te)|0,x=x+Math.imul(mt,_e)|0,y=y+Math.imul(nt,ne)|0,w=(w=w+Math.imul(nt,at)|0)+Math.imul(ut,ne)|0,x=x+Math.imul(ut,at)|0,y=y+Math.imul(lt,bt)|0,w=(w=w+Math.imul(lt,Tt)|0)+Math.imul(Q,bt)|0,x=x+Math.imul(Q,Tt)|0,y=y+Math.imul(Z,Mt)|0,w=(w=w+Math.imul(Z,ee)|0)+Math.imul(et,Mt)|0,x=x+Math.imul(et,ee)|0;var Bt=(j+(y=y+Math.imul(U,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(U,ie)|0)+Math.imul(K,Vt)|0))<<13)|0;j=((x=x+Math.imul(K,ie)|0)+(w>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(zt,se),w=(w=Math.imul(zt,Oe))+Math.imul(Xt,se)|0,x=Math.imul(Xt,Oe),y=y+Math.imul(At,Qt)|0,w=(w=w+Math.imul(At,be)|0)+Math.imul(Ut,Qt)|0,x=x+Math.imul(Ut,be)|0,y=y+Math.imul(xt,te)|0,w=(w=w+Math.imul(xt,_e)|0)+Math.imul(Nt,te)|0,x=x+Math.imul(Nt,_e)|0,y=y+Math.imul(ft,ne)|0,w=(w=w+Math.imul(ft,at)|0)+Math.imul(mt,ne)|0,x=x+Math.imul(mt,at)|0,y=y+Math.imul(nt,bt)|0,w=(w=w+Math.imul(nt,Tt)|0)+Math.imul(ut,bt)|0,x=x+Math.imul(ut,Tt)|0,y=y+Math.imul(lt,Mt)|0,w=(w=w+Math.imul(lt,ee)|0)+Math.imul(Q,Mt)|0,x=x+Math.imul(Q,ee)|0;var Et=(j+(y=y+Math.imul(Z,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(Z,ie)|0)+Math.imul(et,Vt)|0))<<13)|0;j=((x=x+Math.imul(et,ie)|0)+(w>>>13)|0)+(Et>>>26)|0,Et&=67108863,y=Math.imul(zt,Qt),w=(w=Math.imul(zt,be))+Math.imul(Xt,Qt)|0,x=Math.imul(Xt,be),y=y+Math.imul(At,te)|0,w=(w=w+Math.imul(At,_e)|0)+Math.imul(Ut,te)|0,x=x+Math.imul(Ut,_e)|0,y=y+Math.imul(xt,ne)|0,w=(w=w+Math.imul(xt,at)|0)+Math.imul(Nt,ne)|0,x=x+Math.imul(Nt,at)|0,y=y+Math.imul(ft,bt)|0,w=(w=w+Math.imul(ft,Tt)|0)+Math.imul(mt,bt)|0,x=x+Math.imul(mt,Tt)|0,y=y+Math.imul(nt,Mt)|0,w=(w=w+Math.imul(nt,ee)|0)+Math.imul(ut,Mt)|0,x=x+Math.imul(ut,ee)|0;var Rt=(j+(y=y+Math.imul(lt,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(lt,ie)|0)+Math.imul(Q,Vt)|0))<<13)|0;j=((x=x+Math.imul(Q,ie)|0)+(w>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,y=Math.imul(zt,te),w=(w=Math.imul(zt,_e))+Math.imul(Xt,te)|0,x=Math.imul(Xt,_e),y=y+Math.imul(At,ne)|0,w=(w=w+Math.imul(At,at)|0)+Math.imul(Ut,ne)|0,x=x+Math.imul(Ut,at)|0,y=y+Math.imul(xt,bt)|0,w=(w=w+Math.imul(xt,Tt)|0)+Math.imul(Nt,bt)|0,x=x+Math.imul(Nt,Tt)|0,y=y+Math.imul(ft,Mt)|0,w=(w=w+Math.imul(ft,ee)|0)+Math.imul(mt,Mt)|0,x=x+Math.imul(mt,ee)|0;var me=(j+(y=y+Math.imul(nt,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(nt,ie)|0)+Math.imul(ut,Vt)|0))<<13)|0;j=((x=x+Math.imul(ut,ie)|0)+(w>>>13)|0)+(me>>>26)|0,me&=67108863,y=Math.imul(zt,ne),w=(w=Math.imul(zt,at))+Math.imul(Xt,ne)|0,x=Math.imul(Xt,at),y=y+Math.imul(At,bt)|0,w=(w=w+Math.imul(At,Tt)|0)+Math.imul(Ut,bt)|0,x=x+Math.imul(Ut,Tt)|0,y=y+Math.imul(xt,Mt)|0,w=(w=w+Math.imul(xt,ee)|0)+Math.imul(Nt,Mt)|0,x=x+Math.imul(Nt,ee)|0;var oe=(j+(y=y+Math.imul(ft,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(ft,ie)|0)+Math.imul(mt,Vt)|0))<<13)|0;j=((x=x+Math.imul(mt,ie)|0)+(w>>>13)|0)+(oe>>>26)|0,oe&=67108863,y=Math.imul(zt,bt),w=(w=Math.imul(zt,Tt))+Math.imul(Xt,bt)|0,x=Math.imul(Xt,Tt),y=y+Math.imul(At,Mt)|0,w=(w=w+Math.imul(At,ee)|0)+Math.imul(Ut,Mt)|0,x=x+Math.imul(Ut,ee)|0;var he=(j+(y=y+Math.imul(xt,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(xt,ie)|0)+Math.imul(Nt,Vt)|0))<<13)|0;j=((x=x+Math.imul(Nt,ie)|0)+(w>>>13)|0)+(he>>>26)|0,he&=67108863,y=Math.imul(zt,Mt),w=(w=Math.imul(zt,ee))+Math.imul(Xt,Mt)|0,x=Math.imul(Xt,ee);var Jt=(j+(y=y+Math.imul(At,Vt)|0)|0)+((8191&(w=(w=w+Math.imul(At,ie)|0)+Math.imul(Ut,Vt)|0))<<13)|0;j=((x=x+Math.imul(Ut,ie)|0)+(w>>>13)|0)+(Jt>>>26)|0,Jt&=67108863;var Ce=(j+(y=Math.imul(zt,Vt))|0)+((8191&(w=(w=Math.imul(zt,ie))+Math.imul(Xt,Vt)|0))<<13)|0;return j=((x=Math.imul(Xt,ie))+(w>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,O[0]=re,O[1]=le,O[2]=ze,O[3]=$e,O[4]=tr,O[5]=er,O[6]=xr,O[7]=st,O[8]=pt,O[9]=wt,O[10]=_t,O[11]=Bt,O[12]=Et,O[13]=Rt,O[14]=me,O[15]=oe,O[16]=he,O[17]=Jt,O[18]=Ce,j!==0&&(O[19]=j,k.length++),k};function S(A,M,k){return new C().mulp(A,M,k)}function C(A,M){this.x=A,this.y=M}Math.imul||(g=b),e.prototype.mulTo=function(A,M){var k=this.length+A.length;return this.length===10&&A.length===10?g(this,A,M):k<63?b(this,A,M):k<1024?(function(y,w,x){x.negative=w.negative^y.negative,x.length=y.length+w.length;for(var _=0,T=0,O=0;O<x.length-1;O++){var j=T;T=0;for(var V=67108863&_,X=Math.min(O,w.length-1),J=Math.max(0,O-y.length+1);J<=X;J++){var L=O-J,G=(0|y.words[L])*(0|w.words[J]),N=67108863&G;V=67108863&(N=N+V|0),T+=(j=(j=j+(G/67108864|0)|0)+(N>>>26)|0)>>>26,j&=67108863}x.words[O]=V,_=j,j=T}return _!==0?x.words[O]=_:x.length--,x.strip()})(this,A,M):S(this,A,M)},C.prototype.makeRBT=function(A){for(var M=new Array(A),k=e.prototype._countBits(A)-1,y=0;y<A;y++)M[y]=this.revBin(y,k,A);return M},C.prototype.revBin=function(A,M,k){if(A===0||A===k-1)return A;for(var y=0,w=0;w<M;w++)y|=(1&A)<<M-w-1,A>>=1;return y},C.prototype.permute=function(A,M,k,y,w,x){for(var _=0;_<x;_++)y[_]=M[A[_]],w[_]=k[A[_]]},C.prototype.transform=function(A,M,k,y,w,x){this.permute(x,A,M,k,y,w);for(var _=1;_<w;_<<=1)for(var T=_<<1,O=Math.cos(2*Math.PI/T),j=Math.sin(2*Math.PI/T),V=0;V<w;V+=T)for(var X=O,J=j,L=0;L<_;L++){var G=k[V+L],N=y[V+L],R=k[V+L+_],U=y[V+L+_],K=X*R-J*U;U=X*U+J*R,R=K,k[V+L]=G+R,y[V+L]=N+U,k[V+L+_]=G-R,y[V+L+_]=N-U,L!==T&&(K=O*X-j*J,J=O*J+j*X,X=K)}},C.prototype.guessLen13b=function(A,M){var k=1|Math.max(M,A),y=1&k,w=0;for(k=k/2|0;k;k>>>=1)w++;return 1<<w+1+y},C.prototype.conjugate=function(A,M,k){if(!(k<=1))for(var y=0;y<k/2;y++){var w=A[y];A[y]=A[k-y-1],A[k-y-1]=w,w=M[y],M[y]=-M[k-y-1],M[k-y-1]=-w}},C.prototype.normalize13b=function(A,M){for(var k=0,y=0;y<M/2;y++){var w=8192*Math.round(A[2*y+1]/M)+Math.round(A[2*y]/M)+k;A[y]=67108863&w,k=w<67108864?0:w/67108864|0}return A},C.prototype.convert13b=function(A,M,k,y){for(var w=0,x=0;x<M;x++)w+=0|A[x],k[2*x]=8191&w,w>>>=13,k[2*x+1]=8191&w,w>>>=13;for(x=2*M;x<y;++x)k[x]=0;n(w===0),n((-8192&w)==0)},C.prototype.stub=function(A){for(var M=new Array(A),k=0;k<A;k++)M[k]=0;return M},C.prototype.mulp=function(A,M,k){var y=2*this.guessLen13b(A.length,M.length),w=this.makeRBT(y),x=this.stub(y),_=new Array(y),T=new Array(y),O=new Array(y),j=new Array(y),V=new Array(y),X=new Array(y),J=k.words;J.length=y,this.convert13b(A.words,A.length,_,y),this.convert13b(M.words,M.length,j,y),this.transform(_,x,T,O,y,w),this.transform(j,x,V,X,y,w);for(var L=0;L<y;L++){var G=T[L]*V[L]-O[L]*X[L];O[L]=T[L]*X[L]+O[L]*V[L],T[L]=G}return this.conjugate(T,O,y),this.transform(T,O,J,x,y,w),this.conjugate(J,x,y),this.normalize13b(J,y),k.negative=A.negative^M.negative,k.length=A.length+M.length,k.strip()},e.prototype.mul=function(A){var M=new e(null);return M.words=new Array(this.length+A.length),this.mulTo(A,M)},e.prototype.mulf=function(A){var M=new e(null);return M.words=new Array(this.length+A.length),S(this,A,M)},e.prototype.imul=function(A){return this.clone().mulTo(A,this)},e.prototype.imuln=function(A){n(typeof A=="number"),n(A<67108864);for(var M=0,k=0;k<this.length;k++){var y=(0|this.words[k])*A,w=(67108863&y)+(67108863&M);M>>=26,M+=y/67108864|0,M+=w>>>26,this.words[k]=67108863&w}return M!==0&&(this.words[k]=M,this.length++),this},e.prototype.muln=function(A){return this.clone().imuln(A)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(A){var M=(function(x){for(var _=new Array(x.bitLength()),T=0;T<_.length;T++){var O=T/26|0,j=T%26;_[T]=(x.words[O]&1<<j)>>>j}return _})(A);if(M.length===0)return new e(1);for(var k=this,y=0;y<M.length&&M[y]===0;y++,k=k.sqr());if(++y<M.length)for(var w=k.sqr();y<M.length;y++,w=w.sqr())M[y]!==0&&(k=k.mul(w));return k},e.prototype.iushln=function(A){n(typeof A=="number"&&A>=0);var M,k=A%26,y=(A-k)/26,w=67108863>>>26-k<<26-k;if(k!==0){var x=0;for(M=0;M<this.length;M++){var _=this.words[M]&w,T=(0|this.words[M])-_<<k;this.words[M]=T|x,x=_>>>26-k}x&&(this.words[M]=x,this.length++)}if(y!==0){for(M=this.length-1;M>=0;M--)this.words[M+y]=this.words[M];for(M=0;M<y;M++)this.words[M]=0;this.length+=y}return this.strip()},e.prototype.ishln=function(A){return n(this.negative===0),this.iushln(A)},e.prototype.iushrn=function(A,M,k){var y;n(typeof A=="number"&&A>=0),y=M?(M-M%26)/26:0;var w=A%26,x=Math.min((A-w)/26,this.length),_=67108863^67108863>>>w<<w,T=k;if(y-=x,y=Math.max(0,y),T){for(var O=0;O<x;O++)T.words[O]=this.words[O];T.length=x}if(x!==0)if(this.length>x)for(this.length-=x,O=0;O<this.length;O++)this.words[O]=this.words[O+x];else this.words[0]=0,this.length=1;var j=0;for(O=this.length-1;O>=0&&(j!==0||O>=y);O--){var V=0|this.words[O];this.words[O]=j<<26-w|V>>>w,j=V&_}return T&&j!==0&&(T.words[T.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},e.prototype.ishrn=function(A,M,k){return n(this.negative===0),this.iushrn(A,M,k)},e.prototype.shln=function(A){return this.clone().ishln(A)},e.prototype.ushln=function(A){return this.clone().iushln(A)},e.prototype.shrn=function(A){return this.clone().ishrn(A)},e.prototype.ushrn=function(A){return this.clone().iushrn(A)},e.prototype.testn=function(A){n(typeof A=="number"&&A>=0);var M=A%26,k=(A-M)/26,y=1<<M;return!(this.length<=k)&&!!(this.words[k]&y)},e.prototype.imaskn=function(A){n(typeof A=="number"&&A>=0);var M=A%26,k=(A-M)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(M!==0&&k++,this.length=Math.min(k,this.length),M!==0){var y=67108863^67108863>>>M<<M;this.words[this.length-1]&=y}return this.strip()},e.prototype.maskn=function(A){return this.clone().imaskn(A)},e.prototype.iaddn=function(A){return n(typeof A=="number"),n(A<67108864),A<0?this.isubn(-A):this.negative!==0?this.length===1&&(0|this.words[0])<A?(this.words[0]=A-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(A),this.negative=1,this):this._iaddn(A)},e.prototype._iaddn=function(A){this.words[0]+=A;for(var M=0;M<this.length&&this.words[M]>=67108864;M++)this.words[M]-=67108864,M===this.length-1?this.words[M+1]=1:this.words[M+1]++;return this.length=Math.max(this.length,M+1),this},e.prototype.isubn=function(A){if(n(typeof A=="number"),n(A<67108864),A<0)return this.iaddn(-A);if(this.negative!==0)return this.negative=0,this.iaddn(A),this.negative=1,this;if(this.words[0]-=A,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var M=0;M<this.length&&this.words[M]<0;M++)this.words[M]+=67108864,this.words[M+1]-=1;return this.strip()},e.prototype.addn=function(A){return this.clone().iaddn(A)},e.prototype.subn=function(A){return this.clone().isubn(A)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(A,M,k){var y,w,x=A.length+k;this._expand(x);var _=0;for(y=0;y<A.length;y++){w=(0|this.words[y+k])+_;var T=(0|A.words[y])*M;_=((w-=67108863&T)>>26)-(T/67108864|0),this.words[y+k]=67108863&w}for(;y<this.length-k;y++)_=(w=(0|this.words[y+k])+_)>>26,this.words[y+k]=67108863&w;if(_===0)return this.strip();for(n(_===-1),_=0,y=0;y<this.length;y++)_=(w=-(0|this.words[y])+_)>>26,this.words[y]=67108863&w;return this.negative=1,this.strip()},e.prototype._wordDiv=function(A,M){var k=(this.length,A.length),y=this.clone(),w=A,x=0|w.words[w.length-1];(k=26-this._countBits(x))!==0&&(w=w.ushln(k),y.iushln(k),x=0|w.words[w.length-1]);var _,T=y.length-w.length;if(M!=="mod"){(_=new e(null)).length=T+1,_.words=new Array(_.length);for(var O=0;O<_.length;O++)_.words[O]=0}var j=y.clone()._ishlnsubmul(w,1,T);j.negative===0&&(y=j,_&&(_.words[T]=1));for(var V=T-1;V>=0;V--){var X=67108864*(0|y.words[w.length+V])+(0|y.words[w.length+V-1]);for(X=Math.min(X/x|0,67108863),y._ishlnsubmul(w,X,V);y.negative!==0;)X--,y.negative=0,y._ishlnsubmul(w,1,V),y.isZero()||(y.negative^=1);_&&(_.words[V]=X)}return _&&_.strip(),y.strip(),M!=="div"&&k!==0&&y.iushrn(k),{div:_||null,mod:y}},e.prototype.divmod=function(A,M,k){return n(!A.isZero()),this.isZero()?{div:new e(0),mod:new e(0)}:this.negative!==0&&A.negative===0?(x=this.neg().divmod(A,M),M!=="mod"&&(y=x.div.neg()),M!=="div"&&(w=x.mod.neg(),k&&w.negative!==0&&w.iadd(A)),{div:y,mod:w}):this.negative===0&&A.negative!==0?(x=this.divmod(A.neg(),M),M!=="mod"&&(y=x.div.neg()),{div:y,mod:x.mod}):(this.negative&A.negative)!=0?(x=this.neg().divmod(A.neg(),M),M!=="div"&&(w=x.mod.neg(),k&&w.negative!==0&&w.isub(A)),{div:x.div,mod:w}):A.length>this.length||this.cmp(A)<0?{div:new e(0),mod:this}:A.length===1?M==="div"?{div:this.divn(A.words[0]),mod:null}:M==="mod"?{div:null,mod:new e(this.modn(A.words[0]))}:{div:this.divn(A.words[0]),mod:new e(this.modn(A.words[0]))}:this._wordDiv(A,M);var y,w,x},e.prototype.div=function(A){return this.divmod(A,"div",!1).div},e.prototype.mod=function(A){return this.divmod(A,"mod",!1).mod},e.prototype.umod=function(A){return this.divmod(A,"mod",!0).mod},e.prototype.divRound=function(A){var M=this.divmod(A);if(M.mod.isZero())return M.div;var k=M.div.negative!==0?M.mod.isub(A):M.mod,y=A.ushrn(1),w=A.andln(1),x=k.cmp(y);return x<0||w===1&&x===0?M.div:M.div.negative!==0?M.div.isubn(1):M.div.iaddn(1)},e.prototype.modn=function(A){n(A<=67108863);for(var M=(1<<26)%A,k=0,y=this.length-1;y>=0;y--)k=(M*k+(0|this.words[y]))%A;return k},e.prototype.idivn=function(A){n(A<=67108863);for(var M=0,k=this.length-1;k>=0;k--){var y=(0|this.words[k])+67108864*M;this.words[k]=y/A|0,M=y%A}return this.strip()},e.prototype.divn=function(A){return this.clone().idivn(A)},e.prototype.egcd=function(A){n(A.negative===0),n(!A.isZero());var M=this,k=A.clone();M=M.negative!==0?M.umod(A):M.clone();for(var y=new e(1),w=new e(0),x=new e(0),_=new e(1),T=0;M.isEven()&&k.isEven();)M.iushrn(1),k.iushrn(1),++T;for(var O=k.clone(),j=M.clone();!M.isZero();){for(var V=0,X=1;(M.words[0]&X)==0&&V<26;++V,X<<=1);if(V>0)for(M.iushrn(V);V-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(O),w.isub(j)),y.iushrn(1),w.iushrn(1);for(var J=0,L=1;(k.words[0]&L)==0&&J<26;++J,L<<=1);if(J>0)for(k.iushrn(J);J-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(O),_.isub(j)),x.iushrn(1),_.iushrn(1);M.cmp(k)>=0?(M.isub(k),y.isub(x),w.isub(_)):(k.isub(M),x.isub(y),_.isub(w))}return{a:x,b:_,gcd:k.iushln(T)}},e.prototype._invmp=function(A){n(A.negative===0),n(!A.isZero());var M=this,k=A.clone();M=M.negative!==0?M.umod(A):M.clone();for(var y,w=new e(1),x=new e(0),_=k.clone();M.cmpn(1)>0&&k.cmpn(1)>0;){for(var T=0,O=1;(M.words[0]&O)==0&&T<26;++T,O<<=1);if(T>0)for(M.iushrn(T);T-- >0;)w.isOdd()&&w.iadd(_),w.iushrn(1);for(var j=0,V=1;(k.words[0]&V)==0&&j<26;++j,V<<=1);if(j>0)for(k.iushrn(j);j-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);M.cmp(k)>=0?(M.isub(k),w.isub(x)):(k.isub(M),x.isub(w))}return(y=M.cmpn(1)===0?w:x).cmpn(0)<0&&y.iadd(A),y},e.prototype.gcd=function(A){if(this.isZero())return A.abs();if(A.isZero())return this.abs();var M=this.clone(),k=A.clone();M.negative=0,k.negative=0;for(var y=0;M.isEven()&&k.isEven();y++)M.iushrn(1),k.iushrn(1);for(;;){for(;M.isEven();)M.iushrn(1);for(;k.isEven();)k.iushrn(1);var w=M.cmp(k);if(w<0){var x=M;M=k,k=x}else if(w===0||k.cmpn(1)===0)break;M.isub(k)}return k.iushln(y)},e.prototype.invm=function(A){return this.egcd(A).a.umod(A)},e.prototype.isEven=function(){return(1&this.words[0])==0},e.prototype.isOdd=function(){return(1&this.words[0])==1},e.prototype.andln=function(A){return this.words[0]&A},e.prototype.bincn=function(A){n(typeof A=="number");var M=A%26,k=(A-M)/26,y=1<<M;if(this.length<=k)return this._expand(k+1),this.words[k]|=y,this;for(var w=y,x=k;w!==0&&x<this.length;x++){var _=0|this.words[x];w=(_+=w)>>>26,_&=67108863,this.words[x]=_}return w!==0&&(this.words[x]=w,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(A){var M,k=A<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;if(this.strip(),this.length>1)M=1;else{k&&(A=-A),n(A<=67108863,"Number is too big");var y=0|this.words[0];M=y===A?0:y<A?-1:1}return this.negative!==0?0|-M:M},e.prototype.cmp=function(A){if(this.negative!==0&&A.negative===0)return-1;if(this.negative===0&&A.negative!==0)return 1;var M=this.ucmp(A);return this.negative!==0?0|-M:M},e.prototype.ucmp=function(A){if(this.length>A.length)return 1;if(this.length<A.length)return-1;for(var M=0,k=this.length-1;k>=0;k--){var y=0|this.words[k],w=0|A.words[k];if(y!==w){y<w?M=-1:y>w&&(M=1);break}}return M},e.prototype.gtn=function(A){return this.cmpn(A)===1},e.prototype.gt=function(A){return this.cmp(A)===1},e.prototype.gten=function(A){return this.cmpn(A)>=0},e.prototype.gte=function(A){return this.cmp(A)>=0},e.prototype.ltn=function(A){return this.cmpn(A)===-1},e.prototype.lt=function(A){return this.cmp(A)===-1},e.prototype.lten=function(A){return this.cmpn(A)<=0},e.prototype.lte=function(A){return this.cmp(A)<=0},e.prototype.eqn=function(A){return this.cmpn(A)===0},e.prototype.eq=function(A){return this.cmp(A)===0},e.red=function(A){return new W(A)},e.prototype.toRed=function(A){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),A.convertTo(this)._forceRed(A)},e.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(A){return this.red=A,this},e.prototype.forceRed=function(A){return n(!this.red,"Already a number in reduction context"),this._forceRed(A)},e.prototype.redAdd=function(A){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,A)},e.prototype.redIAdd=function(A){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,A)},e.prototype.redSub=function(A){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,A)},e.prototype.redISub=function(A){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,A)},e.prototype.redShl=function(A){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,A)},e.prototype.redMul=function(A){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.mul(this,A)},e.prototype.redIMul=function(A){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,A),this.red.imul(this,A)},e.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(A){return n(this.red&&!A.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,A)};var I={k256:null,p224:null,p192:null,p25519:null};function D(A,M){this.name=A,this.p=new e(M,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function z(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P(){D.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function B(){D.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function F(){D.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function W(A){if(typeof A=="string"){var M=e._prime(A);this.m=M.p,this.prime=M}else n(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}function q(A){W.call(this,A),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new e(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}D.prototype._tmp=function(){var A=new e(null);return A.words=new Array(Math.ceil(this.n/13)),A},D.prototype.ireduce=function(A){var M,k=A;do this.split(k,this.tmp),M=(k=(k=this.imulK(k)).iadd(this.tmp)).bitLength();while(M>this.n);var y=M<this.n?-1:k.ucmp(this.p);return y===0?(k.words[0]=0,k.length=1):y>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},D.prototype.split=function(A,M){A.iushrn(this.n,0,M)},D.prototype.imulK=function(A){return A.imul(this.k)},s(z,D),z.prototype.split=function(A,M){for(var k=Math.min(A.length,9),y=0;y<k;y++)M.words[y]=A.words[y];if(M.length=k,A.length<=9)return A.words[0]=0,void(A.length=1);var w=A.words[9];for(M.words[M.length++]=4194303&w,y=10;y<A.length;y++){var x=0|A.words[y];A.words[y-10]=(4194303&x)<<4|w>>>22,w=x}w>>>=22,A.words[y-10]=w,w===0&&A.length>10?A.length-=10:A.length-=9},z.prototype.imulK=function(A){A.words[A.length]=0,A.words[A.length+1]=0,A.length+=2;for(var M=0,k=0;k<A.length;k++){var y=0|A.words[k];M+=977*y,A.words[k]=67108863&M,M=64*y+(M/67108864|0)}return A.words[A.length-1]===0&&(A.length--,A.words[A.length-1]===0&&A.length--),A},s(P,D),s(B,D),s(F,D),F.prototype.imulK=function(A){for(var M=0,k=0;k<A.length;k++){var y=19*(0|A.words[k])+M,w=67108863&y;y>>>=26,A.words[k]=w,M=y}return M!==0&&(A.words[A.length++]=M),A},e._prime=function(A){if(I[A])return I[A];var M;if(A==="k256")M=new z;else if(A==="p224")M=new P;else if(A==="p192")M=new B;else{if(A!=="p25519")throw new Error("Unknown prime "+A);M=new F}return I[A]=M,M},W.prototype._verify1=function(A){n(A.negative===0,"red works only with positives"),n(A.red,"red works only with red numbers")},W.prototype._verify2=function(A,M){n((A.negative|M.negative)==0,"red works only with positives"),n(A.red&&A.red===M.red,"red works only with red numbers")},W.prototype.imod=function(A){return this.prime?this.prime.ireduce(A)._forceRed(this):A.umod(this.m)._forceRed(this)},W.prototype.neg=function(A){return A.isZero()?A.clone():this.m.sub(A)._forceRed(this)},W.prototype.add=function(A,M){this._verify2(A,M);var k=A.add(M);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},W.prototype.iadd=function(A,M){this._verify2(A,M);var k=A.iadd(M);return k.cmp(this.m)>=0&&k.isub(this.m),k},W.prototype.sub=function(A,M){this._verify2(A,M);var k=A.sub(M);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},W.prototype.isub=function(A,M){this._verify2(A,M);var k=A.isub(M);return k.cmpn(0)<0&&k.iadd(this.m),k},W.prototype.shl=function(A,M){return this._verify1(A),this.imod(A.ushln(M))},W.prototype.imul=function(A,M){return this._verify2(A,M),this.imod(A.imul(M))},W.prototype.mul=function(A,M){return this._verify2(A,M),this.imod(A.mul(M))},W.prototype.isqr=function(A){return this.imul(A,A.clone())},W.prototype.sqr=function(A){return this.mul(A,A)},W.prototype.sqrt=function(A){if(A.isZero())return A.clone();var M=this.m.andln(3);if(n(M%2==1),M===3){var k=this.m.add(new e(1)).iushrn(2);return this.pow(A,k)}for(var y=this.m.subn(1),w=0;!y.isZero()&&y.andln(1)===0;)w++,y.iushrn(1);n(!y.isZero());var x=new e(1).toRed(this),_=x.redNeg(),T=this.m.subn(1).iushrn(1),O=this.m.bitLength();for(O=new e(2*O*O).toRed(this);this.pow(O,T).cmp(_)!==0;)O.redIAdd(_);for(var j=this.pow(O,y),V=this.pow(A,y.addn(1).iushrn(1)),X=this.pow(A,y),J=w;X.cmp(x)!==0;){for(var L=X,G=0;L.cmp(x)!==0;G++)L=L.redSqr();n(G<J);var N=this.pow(j,new e(1).iushln(J-G-1));V=V.redMul(N),j=N.redSqr(),X=X.redMul(j),J=G}return V},W.prototype.invm=function(A){var M=A._invmp(this.m);return M.negative!==0?(M.negative=0,this.imod(M).redNeg()):this.imod(M)},W.prototype.pow=function(A,M){if(M.isZero())return new e(1).toRed(this);if(M.cmpn(1)===0)return A.clone();var k=new Array(16);k[0]=new e(1).toRed(this),k[1]=A;for(var y=2;y<k.length;y++)k[y]=this.mul(k[y-1],A);var w=k[0],x=0,_=0,T=M.bitLength()%26;for(T===0&&(T=26),y=M.length-1;y>=0;y--){for(var O=M.words[y],j=T-1;j>=0;j--){var V=O>>j&1;w!==k[0]&&(w=this.sqr(w)),V!==0||x!==0?(x<<=1,x|=V,(++_===4||y===0&&j===0)&&(w=this.mul(w,k[x]),_=0,x=0)):_=0}T=26}return w},W.prototype.convertTo=function(A){var M=A.umod(this.m);return M===A?M.clone():M},W.prototype.convertFrom=function(A){var M=A.clone();return M.red=null,M},e.mont=function(A){return new q(A)},s(q,W),q.prototype.convertTo=function(A){return this.imod(A.ushln(this.shift))},q.prototype.convertFrom=function(A){var M=this.imod(A.mul(this.rinv));return M.red=null,M},q.prototype.imul=function(A,M){if(A.isZero()||M.isZero())return A.words[0]=0,A.length=1,A;var k=A.imul(M),y=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(y).iushrn(this.shift),x=w;return w.cmp(this.m)>=0?x=w.isub(this.m):w.cmpn(0)<0&&(x=w.iadd(this.m)),x._forceRed(this)},q.prototype.mul=function(A,M){if(A.isZero()||M.isZero())return new e(0)._forceRed(this);var k=A.mul(M),y=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),w=k.isub(y).iushrn(this.shift),x=w;return w.cmp(this.m)>=0?x=w.isub(this.m):w.cmpn(0)<0&&(x=w.iadd(this.m)),x._forceRed(this)},q.prototype.invm=function(A){return this.imod(A._invmp(this.m).mul(this.r2))._forceRed(this)}})(l===void 0||l)},{buffer:188}],185:[function(t,l,c){c.byteLength=function(h){var p=u(h),m=p[0],d=p[1];return 3*(m+d)/4-d},c.toByteArray=function(h){var p,m,d=u(h),b=d[0],g=d[1],S=new n((function(D,z,P){return 3*(z+P)/4-P})(0,b,g)),C=0,I=g>0?b-4:b;for(m=0;m<I;m+=4)p=r[h.charCodeAt(m)]<<18|r[h.charCodeAt(m+1)]<<12|r[h.charCodeAt(m+2)]<<6|r[h.charCodeAt(m+3)],S[C++]=p>>16&255,S[C++]=p>>8&255,S[C++]=255&p;return g===2&&(p=r[h.charCodeAt(m)]<<2|r[h.charCodeAt(m+1)]>>4,S[C++]=255&p),g===1&&(p=r[h.charCodeAt(m)]<<10|r[h.charCodeAt(m+1)]<<4|r[h.charCodeAt(m+2)]>>2,S[C++]=p>>8&255,S[C++]=255&p),S},c.fromByteArray=function(h){for(var p,m=h.length,d=m%3,b=[],g=0,S=m-d;g<S;g+=16383)b.push(a(h,g,g+16383>S?S:g+16383));return d===1?(p=h[m-1],b.push(o[p>>2]+o[p<<4&63]+"==")):d===2&&(p=(h[m-2]<<8)+h[m-1],b.push(o[p>>10]+o[p>>4&63]+o[p<<2&63]+"=")),b.join("")};for(var o=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,i=s.length;e<i;++e)o[e]=s[e],r[s.charCodeAt(e)]=e;function u(h){var p=h.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=h.indexOf("=");return m===-1&&(m=p),[m,m===p?0:4-m%4]}function a(h,p,m){for(var d,b,g=[],S=p;S<m;S+=3)d=(h[S]<<16&16711680)+(h[S+1]<<8&65280)+(255&h[S+2]),g.push(o[(b=d)>>18&63]+o[b>>12&63]+o[b>>6&63]+o[63&b]);return g.join("")}r[45]=62,r[95]=63},{}],186:[function(t,l,c){(function(o,r){function n(k,y){if(!k)throw new Error(y||"Assertion failed")}function s(k,y){k.super_=y;var w=function(){};w.prototype=y.prototype,k.prototype=new w,k.prototype.constructor=k}function e(k,y,w){if(e.isBN(k))return k;this.negative=0,this.words=null,this.length=0,this.red=null,k!==null&&(y!=="le"&&y!=="be"||(w=y,y=10),this._init(k||0,y||10,w||"be"))}var i;typeof o=="object"?o.exports=e:(void 0).BN=e,e.BN=e,e.wordSize=26;try{i=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:t("buffer").Buffer}catch{}function u(k,y){var w=k.charCodeAt(y);return w>=48&&w<=57?w-48:w>=65&&w<=70?w-55:w>=97&&w<=102?w-87:void n(!1,"Invalid character in "+k)}function a(k,y,w){var x=u(k,w);return w-1>=y&&(x|=u(k,w-1)<<4),x}function h(k,y,w,x){for(var _=0,T=0,O=Math.min(k.length,w),j=y;j<O;j++){var V=k.charCodeAt(j)-48;_*=x,T=V>=49?V-49+10:V>=17?V-17+10:V,n(V>=0&&T<x,"Invalid character"),_+=T}return _}function p(k,y){k.words=y.words,k.length=y.length,k.negative=y.negative,k.red=y.red}if(e.isBN=function(k){return k instanceof e||k!==null&&typeof k=="object"&&k.constructor.wordSize===e.wordSize&&Array.isArray(k.words)},e.max=function(k,y){return k.cmp(y)>0?k:y},e.min=function(k,y){return k.cmp(y)<0?k:y},e.prototype._init=function(k,y,w){if(typeof k=="number")return this._initNumber(k,y,w);if(typeof k=="object")return this._initArray(k,y,w);y==="hex"&&(y=16),n(y===(0|y)&&y>=2&&y<=36);var x=0;(k=k.toString().replace(/\s+/g,""))[0]==="-"&&(x++,this.negative=1),x<k.length&&(y===16?this._parseHex(k,x,w):(this._parseBase(k,y,x),w==="le"&&this._initArray(this.toArray(),y,w)))},e.prototype._initNumber=function(k,y,w){k<0&&(this.negative=1,k=-k),k<67108864?(this.words=[67108863&k],this.length=1):k<4503599627370496?(this.words=[67108863&k,k/67108864&67108863],this.length=2):(n(k<9007199254740992),this.words=[67108863&k,k/67108864&67108863,1],this.length=3),w==="le"&&this._initArray(this.toArray(),y,w)},e.prototype._initArray=function(k,y,w){if(n(typeof k.length=="number"),k.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(k.length/3),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var _,T,O=0;if(w==="be")for(x=k.length-1,_=0;x>=0;x-=3)T=k[x]|k[x-1]<<8|k[x-2]<<16,this.words[_]|=T<<O&67108863,this.words[_+1]=T>>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);else if(w==="le")for(x=0,_=0;x<k.length;x+=3)T=k[x]|k[x+1]<<8|k[x+2]<<16,this.words[_]|=T<<O&67108863,this.words[_+1]=T>>>26-O&67108863,(O+=24)>=26&&(O-=26,_++);return this._strip()},e.prototype._parseHex=function(k,y,w){this.length=Math.ceil((k.length-y)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var _,T=0,O=0;if(w==="be")for(x=k.length-1;x>=y;x-=2)_=a(k,y,x)<<T,this.words[O]|=67108863&_,T>=18?(T-=18,O+=1,this.words[O]|=_>>>26):T+=8;else for(x=(k.length-y)%2==0?y+1:y;x<k.length;x+=2)_=a(k,y,x)<<T,this.words[O]|=67108863&_,T>=18?(T-=18,O+=1,this.words[O]|=_>>>26):T+=8;this._strip()},e.prototype._parseBase=function(k,y,w){this.words=[0],this.length=1;for(var x=0,_=1;_<=67108863;_*=y)x++;x--,_=_/y|0;for(var T=k.length-w,O=T%x,j=Math.min(T,T-O)+w,V=0,X=w;X<j;X+=x)V=h(k,X,X+x,y),this.imuln(_),this.words[0]+V<67108864?this.words[0]+=V:this._iaddn(V);if(O!==0){var J=1;for(V=h(k,X,k.length,y),X=0;X<O;X++)J*=y;this.imuln(J),this.words[0]+V<67108864?this.words[0]+=V:this._iaddn(V)}this._strip()},e.prototype.copy=function(k){k.words=new Array(this.length);for(var y=0;y<this.length;y++)k.words[y]=this.words[y];k.length=this.length,k.negative=this.negative,k.red=this.red},e.prototype._move=function(k){p(k,this)},e.prototype.clone=function(){var k=new e(null);return this.copy(k),k},e.prototype._expand=function(k){for(;this.length<k;)this.words[this.length++]=0;return this},e.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},e.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{e.prototype[Symbol.for("nodejs.util.inspect.custom")]=m}catch{e.prototype.inspect=m}else e.prototype.inspect=m;function m(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];e.prototype.toString=function(k,y){var w;if(y=0|y||1,(k=k||10)===16||k==="hex"){w="";for(var x=0,_=0,T=0;T<this.length;T++){var O=this.words[T],j=(16777215&(O<<x|_)).toString(16);_=O>>>24-x&16777215,(x+=2)>=26&&(x-=26,T--),w=_!==0||T!==this.length-1?d[6-j.length]+j+w:j+w}for(_!==0&&(w=_.toString(16)+w);w.length%y!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}if(k===(0|k)&&k>=2&&k<=36){var V=b[k],X=g[k];w="";var J=this.clone();for(J.negative=0;!J.isZero();){var L=J.modrn(X).toString(k);w=(J=J.idivn(X)).isZero()?L+w:d[V-L.length]+L+w}for(this.isZero()&&(w="0"+w);w.length%y!=0;)w="0"+w;return this.negative!==0&&(w="-"+w),w}n(!1,"Base should be between 2 and 36")},e.prototype.toNumber=function(){var k=this.words[0];return this.length===2?k+=67108864*this.words[1]:this.length===3&&this.words[2]===1?k+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-k:k},e.prototype.toJSON=function(){return this.toString(16,2)},i&&(e.prototype.toBuffer=function(k,y){return this.toArrayLike(i,k,y)}),e.prototype.toArray=function(k,y){return this.toArrayLike(Array,k,y)};function S(k,y,w){w.negative=y.negative^k.negative;var x=k.length+y.length|0;w.length=x,x=x-1|0;var _=0|k.words[0],T=0|y.words[0],O=_*T,j=67108863&O,V=O/67108864|0;w.words[0]=j;for(var X=1;X<x;X++){for(var J=V>>>26,L=67108863&V,G=Math.min(X,y.length-1),N=Math.max(0,X-k.length+1);N<=G;N++){var R=X-N|0;J+=(O=(_=0|k.words[R])*(T=0|y.words[N])+L)/67108864|0,L=67108863&O}w.words[X]=0|L,V=0|J}return V!==0?w.words[X]=0|V:w.length--,w._strip()}e.prototype.toArrayLike=function(k,y,w){this._strip();var x=this.byteLength(),_=w||Math.max(1,x);n(x<=_,"byte array longer than desired length"),n(_>0,"Requested array length <= 0");var T=(function(O,j){return O.allocUnsafe?O.allocUnsafe(j):new O(j)})(k,_);return this["_toArrayLike"+(y==="le"?"LE":"BE")](T,x),T},e.prototype._toArrayLikeLE=function(k,y){for(var w=0,x=0,_=0,T=0;_<this.length;_++){var O=this.words[_]<<T|x;k[w++]=255&O,w<k.length&&(k[w++]=O>>8&255),w<k.length&&(k[w++]=O>>16&255),T===6?(w<k.length&&(k[w++]=O>>24&255),x=0,T=0):(x=O>>>24,T+=2)}if(w<k.length)for(k[w++]=x;w<k.length;)k[w++]=0},e.prototype._toArrayLikeBE=function(k,y){for(var w=k.length-1,x=0,_=0,T=0;_<this.length;_++){var O=this.words[_]<<T|x;k[w--]=255&O,w>=0&&(k[w--]=O>>8&255),w>=0&&(k[w--]=O>>16&255),T===6?(w>=0&&(k[w--]=O>>24&255),x=0,T=0):(x=O>>>24,T+=2)}if(w>=0)for(k[w--]=x;w>=0;)k[w--]=0},Math.clz32?e.prototype._countBits=function(k){return 32-Math.clz32(k)}:e.prototype._countBits=function(k){var y=k,w=0;return y>=4096&&(w+=13,y>>>=13),y>=64&&(w+=7,y>>>=7),y>=8&&(w+=4,y>>>=4),y>=2&&(w+=2,y>>>=2),w+y},e.prototype._zeroBits=function(k){if(k===0)return 26;var y=k,w=0;return(8191&y)==0&&(w+=13,y>>>=13),(127&y)==0&&(w+=7,y>>>=7),(15&y)==0&&(w+=4,y>>>=4),(3&y)==0&&(w+=2,y>>>=2),(1&y)==0&&w++,w},e.prototype.bitLength=function(){var k=this.words[this.length-1],y=this._countBits(k);return 26*(this.length-1)+y},e.prototype.zeroBits=function(){if(this.isZero())return 0;for(var k=0,y=0;y<this.length;y++){var w=this._zeroBits(this.words[y]);if(k+=w,w!==26)break}return k},e.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},e.prototype.toTwos=function(k){return this.negative!==0?this.abs().inotn(k).iaddn(1):this.clone()},e.prototype.fromTwos=function(k){return this.testn(k-1)?this.notn(k).iaddn(1).ineg():this.clone()},e.prototype.isNeg=function(){return this.negative!==0},e.prototype.neg=function(){return this.clone().ineg()},e.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},e.prototype.iuor=function(k){for(;this.length<k.length;)this.words[this.length++]=0;for(var y=0;y<k.length;y++)this.words[y]=this.words[y]|k.words[y];return this._strip()},e.prototype.ior=function(k){return n((this.negative|k.negative)==0),this.iuor(k)},e.prototype.or=function(k){return this.length>k.length?this.clone().ior(k):k.clone().ior(this)},e.prototype.uor=function(k){return this.length>k.length?this.clone().iuor(k):k.clone().iuor(this)},e.prototype.iuand=function(k){var y;y=this.length>k.length?k:this;for(var w=0;w<y.length;w++)this.words[w]=this.words[w]&k.words[w];return this.length=y.length,this._strip()},e.prototype.iand=function(k){return n((this.negative|k.negative)==0),this.iuand(k)},e.prototype.and=function(k){return this.length>k.length?this.clone().iand(k):k.clone().iand(this)},e.prototype.uand=function(k){return this.length>k.length?this.clone().iuand(k):k.clone().iuand(this)},e.prototype.iuxor=function(k){var y,w;this.length>k.length?(y=this,w=k):(y=k,w=this);for(var x=0;x<w.length;x++)this.words[x]=y.words[x]^w.words[x];if(this!==y)for(;x<y.length;x++)this.words[x]=y.words[x];return this.length=y.length,this._strip()},e.prototype.ixor=function(k){return n((this.negative|k.negative)==0),this.iuxor(k)},e.prototype.xor=function(k){return this.length>k.length?this.clone().ixor(k):k.clone().ixor(this)},e.prototype.uxor=function(k){return this.length>k.length?this.clone().iuxor(k):k.clone().iuxor(this)},e.prototype.inotn=function(k){n(typeof k=="number"&&k>=0);var y=0|Math.ceil(k/26),w=k%26;this._expand(y),w>0&&y--;for(var x=0;x<y;x++)this.words[x]=67108863&~this.words[x];return w>0&&(this.words[x]=~this.words[x]&67108863>>26-w),this._strip()},e.prototype.notn=function(k){return this.clone().inotn(k)},e.prototype.setn=function(k,y){n(typeof k=="number"&&k>=0);var w=k/26|0,x=k%26;return this._expand(w+1),this.words[w]=y?this.words[w]|1<<x:this.words[w]&~(1<<x),this._strip()},e.prototype.iadd=function(k){var y,w,x;if(this.negative!==0&&k.negative===0)return this.negative=0,y=this.isub(k),this.negative^=1,this._normSign();if(this.negative===0&&k.negative!==0)return k.negative=0,y=this.isub(k),k.negative=1,y._normSign();this.length>k.length?(w=this,x=k):(w=k,x=this);for(var _=0,T=0;T<x.length;T++)y=(0|w.words[T])+(0|x.words[T])+_,this.words[T]=67108863&y,_=y>>>26;for(;_!==0&&T<w.length;T++)y=(0|w.words[T])+_,this.words[T]=67108863&y,_=y>>>26;if(this.length=w.length,_!==0)this.words[this.length]=_,this.length++;else if(w!==this)for(;T<w.length;T++)this.words[T]=w.words[T];return this},e.prototype.add=function(k){var y;return k.negative!==0&&this.negative===0?(k.negative=0,y=this.sub(k),k.negative^=1,y):k.negative===0&&this.negative!==0?(this.negative=0,y=k.sub(this),this.negative=1,y):this.length>k.length?this.clone().iadd(k):k.clone().iadd(this)},e.prototype.isub=function(k){if(k.negative!==0){k.negative=0;var y=this.iadd(k);return k.negative=1,y._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(k),this.negative=1,this._normSign();var w,x,_=this.cmp(k);if(_===0)return this.negative=0,this.length=1,this.words[0]=0,this;_>0?(w=this,x=k):(w=k,x=this);for(var T=0,O=0;O<x.length;O++)T=(y=(0|w.words[O])-(0|x.words[O])+T)>>26,this.words[O]=67108863&y;for(;T!==0&&O<w.length;O++)T=(y=(0|w.words[O])+T)>>26,this.words[O]=67108863&y;if(T===0&&O<w.length&&w!==this)for(;O<w.length;O++)this.words[O]=w.words[O];return this.length=Math.max(this.length,O),w!==this&&(this.negative=1),this._strip()},e.prototype.sub=function(k){return this.clone().isub(k)};var C=function(k,y,w){var x,_,T,O=k.words,j=y.words,V=w.words,X=0,J=0|O[0],L=8191&J,G=J>>>13,N=0|O[1],R=8191&N,U=N>>>13,K=0|O[2],rt=8191&K,Z=K>>>13,et=0|O[3],ht=8191&et,lt=et>>>13,Q=0|O[4],ot=8191&Q,nt=Q>>>13,ut=0|O[5],ct=8191&ut,ft=ut>>>13,mt=0|O[6],gt=8191&mt,xt=mt>>>13,Nt=0|O[7],It=8191&Nt,At=Nt>>>13,Ut=0|O[8],Ht=8191&Ut,zt=Ut>>>13,Xt=0|O[9],jt=8191&Xt,Ct=Xt>>>13,$t=0|j[0],qt=8191&$t,Dt=$t>>>13,fe=0|j[1],ke=8191&fe,Yt=fe>>>13,we=0|j[2],ue=8191&we,se=we>>>13,Oe=0|j[3],xe=8191&Oe,Qt=Oe>>>13,be=0|j[4],Te=8191&be,te=be>>>13,_e=0|j[5],Re=8191&_e,ne=_e>>>13,at=0|j[6],dt=8191&at,bt=at>>>13,Tt=0|j[7],Kt=8191&Tt,Mt=Tt>>>13,ee=0|j[8],Zt=8191&ee,Vt=ee>>>13,ie=0|j[9],re=8191&ie,le=ie>>>13;w.negative=k.negative^y.negative,w.length=19;var ze=(X+(x=Math.imul(L,qt))|0)+((8191&(_=(_=Math.imul(L,Dt))+Math.imul(G,qt)|0))<<13)|0;X=((T=Math.imul(G,Dt))+(_>>>13)|0)+(ze>>>26)|0,ze&=67108863,x=Math.imul(R,qt),_=(_=Math.imul(R,Dt))+Math.imul(U,qt)|0,T=Math.imul(U,Dt);var $e=(X+(x=x+Math.imul(L,ke)|0)|0)+((8191&(_=(_=_+Math.imul(L,Yt)|0)+Math.imul(G,ke)|0))<<13)|0;X=((T=T+Math.imul(G,Yt)|0)+(_>>>13)|0)+($e>>>26)|0,$e&=67108863,x=Math.imul(rt,qt),_=(_=Math.imul(rt,Dt))+Math.imul(Z,qt)|0,T=Math.imul(Z,Dt),x=x+Math.imul(R,ke)|0,_=(_=_+Math.imul(R,Yt)|0)+Math.imul(U,ke)|0,T=T+Math.imul(U,Yt)|0;var tr=(X+(x=x+Math.imul(L,ue)|0)|0)+((8191&(_=(_=_+Math.imul(L,se)|0)+Math.imul(G,ue)|0))<<13)|0;X=((T=T+Math.imul(G,se)|0)+(_>>>13)|0)+(tr>>>26)|0,tr&=67108863,x=Math.imul(ht,qt),_=(_=Math.imul(ht,Dt))+Math.imul(lt,qt)|0,T=Math.imul(lt,Dt),x=x+Math.imul(rt,ke)|0,_=(_=_+Math.imul(rt,Yt)|0)+Math.imul(Z,ke)|0,T=T+Math.imul(Z,Yt)|0,x=x+Math.imul(R,ue)|0,_=(_=_+Math.imul(R,se)|0)+Math.imul(U,ue)|0,T=T+Math.imul(U,se)|0;var er=(X+(x=x+Math.imul(L,xe)|0)|0)+((8191&(_=(_=_+Math.imul(L,Qt)|0)+Math.imul(G,xe)|0))<<13)|0;X=((T=T+Math.imul(G,Qt)|0)+(_>>>13)|0)+(er>>>26)|0,er&=67108863,x=Math.imul(ot,qt),_=(_=Math.imul(ot,Dt))+Math.imul(nt,qt)|0,T=Math.imul(nt,Dt),x=x+Math.imul(ht,ke)|0,_=(_=_+Math.imul(ht,Yt)|0)+Math.imul(lt,ke)|0,T=T+Math.imul(lt,Yt)|0,x=x+Math.imul(rt,ue)|0,_=(_=_+Math.imul(rt,se)|0)+Math.imul(Z,ue)|0,T=T+Math.imul(Z,se)|0,x=x+Math.imul(R,xe)|0,_=(_=_+Math.imul(R,Qt)|0)+Math.imul(U,xe)|0,T=T+Math.imul(U,Qt)|0;var xr=(X+(x=x+Math.imul(L,Te)|0)|0)+((8191&(_=(_=_+Math.imul(L,te)|0)+Math.imul(G,Te)|0))<<13)|0;X=((T=T+Math.imul(G,te)|0)+(_>>>13)|0)+(xr>>>26)|0,xr&=67108863,x=Math.imul(ct,qt),_=(_=Math.imul(ct,Dt))+Math.imul(ft,qt)|0,T=Math.imul(ft,Dt),x=x+Math.imul(ot,ke)|0,_=(_=_+Math.imul(ot,Yt)|0)+Math.imul(nt,ke)|0,T=T+Math.imul(nt,Yt)|0,x=x+Math.imul(ht,ue)|0,_=(_=_+Math.imul(ht,se)|0)+Math.imul(lt,ue)|0,T=T+Math.imul(lt,se)|0,x=x+Math.imul(rt,xe)|0,_=(_=_+Math.imul(rt,Qt)|0)+Math.imul(Z,xe)|0,T=T+Math.imul(Z,Qt)|0,x=x+Math.imul(R,Te)|0,_=(_=_+Math.imul(R,te)|0)+Math.imul(U,Te)|0,T=T+Math.imul(U,te)|0;var st=(X+(x=x+Math.imul(L,Re)|0)|0)+((8191&(_=(_=_+Math.imul(L,ne)|0)+Math.imul(G,Re)|0))<<13)|0;X=((T=T+Math.imul(G,ne)|0)+(_>>>13)|0)+(st>>>26)|0,st&=67108863,x=Math.imul(gt,qt),_=(_=Math.imul(gt,Dt))+Math.imul(xt,qt)|0,T=Math.imul(xt,Dt),x=x+Math.imul(ct,ke)|0,_=(_=_+Math.imul(ct,Yt)|0)+Math.imul(ft,ke)|0,T=T+Math.imul(ft,Yt)|0,x=x+Math.imul(ot,ue)|0,_=(_=_+Math.imul(ot,se)|0)+Math.imul(nt,ue)|0,T=T+Math.imul(nt,se)|0,x=x+Math.imul(ht,xe)|0,_=(_=_+Math.imul(ht,Qt)|0)+Math.imul(lt,xe)|0,T=T+Math.imul(lt,Qt)|0,x=x+Math.imul(rt,Te)|0,_=(_=_+Math.imul(rt,te)|0)+Math.imul(Z,Te)|0,T=T+Math.imul(Z,te)|0,x=x+Math.imul(R,Re)|0,_=(_=_+Math.imul(R,ne)|0)+Math.imul(U,Re)|0,T=T+Math.imul(U,ne)|0;var pt=(X+(x=x+Math.imul(L,dt)|0)|0)+((8191&(_=(_=_+Math.imul(L,bt)|0)+Math.imul(G,dt)|0))<<13)|0;X=((T=T+Math.imul(G,bt)|0)+(_>>>13)|0)+(pt>>>26)|0,pt&=67108863,x=Math.imul(It,qt),_=(_=Math.imul(It,Dt))+Math.imul(At,qt)|0,T=Math.imul(At,Dt),x=x+Math.imul(gt,ke)|0,_=(_=_+Math.imul(gt,Yt)|0)+Math.imul(xt,ke)|0,T=T+Math.imul(xt,Yt)|0,x=x+Math.imul(ct,ue)|0,_=(_=_+Math.imul(ct,se)|0)+Math.imul(ft,ue)|0,T=T+Math.imul(ft,se)|0,x=x+Math.imul(ot,xe)|0,_=(_=_+Math.imul(ot,Qt)|0)+Math.imul(nt,xe)|0,T=T+Math.imul(nt,Qt)|0,x=x+Math.imul(ht,Te)|0,_=(_=_+Math.imul(ht,te)|0)+Math.imul(lt,Te)|0,T=T+Math.imul(lt,te)|0,x=x+Math.imul(rt,Re)|0,_=(_=_+Math.imul(rt,ne)|0)+Math.imul(Z,Re)|0,T=T+Math.imul(Z,ne)|0,x=x+Math.imul(R,dt)|0,_=(_=_+Math.imul(R,bt)|0)+Math.imul(U,dt)|0,T=T+Math.imul(U,bt)|0;var wt=(X+(x=x+Math.imul(L,Kt)|0)|0)+((8191&(_=(_=_+Math.imul(L,Mt)|0)+Math.imul(G,Kt)|0))<<13)|0;X=((T=T+Math.imul(G,Mt)|0)+(_>>>13)|0)+(wt>>>26)|0,wt&=67108863,x=Math.imul(Ht,qt),_=(_=Math.imul(Ht,Dt))+Math.imul(zt,qt)|0,T=Math.imul(zt,Dt),x=x+Math.imul(It,ke)|0,_=(_=_+Math.imul(It,Yt)|0)+Math.imul(At,ke)|0,T=T+Math.imul(At,Yt)|0,x=x+Math.imul(gt,ue)|0,_=(_=_+Math.imul(gt,se)|0)+Math.imul(xt,ue)|0,T=T+Math.imul(xt,se)|0,x=x+Math.imul(ct,xe)|0,_=(_=_+Math.imul(ct,Qt)|0)+Math.imul(ft,xe)|0,T=T+Math.imul(ft,Qt)|0,x=x+Math.imul(ot,Te)|0,_=(_=_+Math.imul(ot,te)|0)+Math.imul(nt,Te)|0,T=T+Math.imul(nt,te)|0,x=x+Math.imul(ht,Re)|0,_=(_=_+Math.imul(ht,ne)|0)+Math.imul(lt,Re)|0,T=T+Math.imul(lt,ne)|0,x=x+Math.imul(rt,dt)|0,_=(_=_+Math.imul(rt,bt)|0)+Math.imul(Z,dt)|0,T=T+Math.imul(Z,bt)|0,x=x+Math.imul(R,Kt)|0,_=(_=_+Math.imul(R,Mt)|0)+Math.imul(U,Kt)|0,T=T+Math.imul(U,Mt)|0;var _t=(X+(x=x+Math.imul(L,Zt)|0)|0)+((8191&(_=(_=_+Math.imul(L,Vt)|0)+Math.imul(G,Zt)|0))<<13)|0;X=((T=T+Math.imul(G,Vt)|0)+(_>>>13)|0)+(_t>>>26)|0,_t&=67108863,x=Math.imul(jt,qt),_=(_=Math.imul(jt,Dt))+Math.imul(Ct,qt)|0,T=Math.imul(Ct,Dt),x=x+Math.imul(Ht,ke)|0,_=(_=_+Math.imul(Ht,Yt)|0)+Math.imul(zt,ke)|0,T=T+Math.imul(zt,Yt)|0,x=x+Math.imul(It,ue)|0,_=(_=_+Math.imul(It,se)|0)+Math.imul(At,ue)|0,T=T+Math.imul(At,se)|0,x=x+Math.imul(gt,xe)|0,_=(_=_+Math.imul(gt,Qt)|0)+Math.imul(xt,xe)|0,T=T+Math.imul(xt,Qt)|0,x=x+Math.imul(ct,Te)|0,_=(_=_+Math.imul(ct,te)|0)+Math.imul(ft,Te)|0,T=T+Math.imul(ft,te)|0,x=x+Math.imul(ot,Re)|0,_=(_=_+Math.imul(ot,ne)|0)+Math.imul(nt,Re)|0,T=T+Math.imul(nt,ne)|0,x=x+Math.imul(ht,dt)|0,_=(_=_+Math.imul(ht,bt)|0)+Math.imul(lt,dt)|0,T=T+Math.imul(lt,bt)|0,x=x+Math.imul(rt,Kt)|0,_=(_=_+Math.imul(rt,Mt)|0)+Math.imul(Z,Kt)|0,T=T+Math.imul(Z,Mt)|0,x=x+Math.imul(R,Zt)|0,_=(_=_+Math.imul(R,Vt)|0)+Math.imul(U,Zt)|0,T=T+Math.imul(U,Vt)|0;var Bt=(X+(x=x+Math.imul(L,re)|0)|0)+((8191&(_=(_=_+Math.imul(L,le)|0)+Math.imul(G,re)|0))<<13)|0;X=((T=T+Math.imul(G,le)|0)+(_>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,x=Math.imul(jt,ke),_=(_=Math.imul(jt,Yt))+Math.imul(Ct,ke)|0,T=Math.imul(Ct,Yt),x=x+Math.imul(Ht,ue)|0,_=(_=_+Math.imul(Ht,se)|0)+Math.imul(zt,ue)|0,T=T+Math.imul(zt,se)|0,x=x+Math.imul(It,xe)|0,_=(_=_+Math.imul(It,Qt)|0)+Math.imul(At,xe)|0,T=T+Math.imul(At,Qt)|0,x=x+Math.imul(gt,Te)|0,_=(_=_+Math.imul(gt,te)|0)+Math.imul(xt,Te)|0,T=T+Math.imul(xt,te)|0,x=x+Math.imul(ct,Re)|0,_=(_=_+Math.imul(ct,ne)|0)+Math.imul(ft,Re)|0,T=T+Math.imul(ft,ne)|0,x=x+Math.imul(ot,dt)|0,_=(_=_+Math.imul(ot,bt)|0)+Math.imul(nt,dt)|0,T=T+Math.imul(nt,bt)|0,x=x+Math.imul(ht,Kt)|0,_=(_=_+Math.imul(ht,Mt)|0)+Math.imul(lt,Kt)|0,T=T+Math.imul(lt,Mt)|0,x=x+Math.imul(rt,Zt)|0,_=(_=_+Math.imul(rt,Vt)|0)+Math.imul(Z,Zt)|0,T=T+Math.imul(Z,Vt)|0;var Et=(X+(x=x+Math.imul(R,re)|0)|0)+((8191&(_=(_=_+Math.imul(R,le)|0)+Math.imul(U,re)|0))<<13)|0;X=((T=T+Math.imul(U,le)|0)+(_>>>13)|0)+(Et>>>26)|0,Et&=67108863,x=Math.imul(jt,ue),_=(_=Math.imul(jt,se))+Math.imul(Ct,ue)|0,T=Math.imul(Ct,se),x=x+Math.imul(Ht,xe)|0,_=(_=_+Math.imul(Ht,Qt)|0)+Math.imul(zt,xe)|0,T=T+Math.imul(zt,Qt)|0,x=x+Math.imul(It,Te)|0,_=(_=_+Math.imul(It,te)|0)+Math.imul(At,Te)|0,T=T+Math.imul(At,te)|0,x=x+Math.imul(gt,Re)|0,_=(_=_+Math.imul(gt,ne)|0)+Math.imul(xt,Re)|0,T=T+Math.imul(xt,ne)|0,x=x+Math.imul(ct,dt)|0,_=(_=_+Math.imul(ct,bt)|0)+Math.imul(ft,dt)|0,T=T+Math.imul(ft,bt)|0,x=x+Math.imul(ot,Kt)|0,_=(_=_+Math.imul(ot,Mt)|0)+Math.imul(nt,Kt)|0,T=T+Math.imul(nt,Mt)|0,x=x+Math.imul(ht,Zt)|0,_=(_=_+Math.imul(ht,Vt)|0)+Math.imul(lt,Zt)|0,T=T+Math.imul(lt,Vt)|0;var Rt=(X+(x=x+Math.imul(rt,re)|0)|0)+((8191&(_=(_=_+Math.imul(rt,le)|0)+Math.imul(Z,re)|0))<<13)|0;X=((T=T+Math.imul(Z,le)|0)+(_>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,x=Math.imul(jt,xe),_=(_=Math.imul(jt,Qt))+Math.imul(Ct,xe)|0,T=Math.imul(Ct,Qt),x=x+Math.imul(Ht,Te)|0,_=(_=_+Math.imul(Ht,te)|0)+Math.imul(zt,Te)|0,T=T+Math.imul(zt,te)|0,x=x+Math.imul(It,Re)|0,_=(_=_+Math.imul(It,ne)|0)+Math.imul(At,Re)|0,T=T+Math.imul(At,ne)|0,x=x+Math.imul(gt,dt)|0,_=(_=_+Math.imul(gt,bt)|0)+Math.imul(xt,dt)|0,T=T+Math.imul(xt,bt)|0,x=x+Math.imul(ct,Kt)|0,_=(_=_+Math.imul(ct,Mt)|0)+Math.imul(ft,Kt)|0,T=T+Math.imul(ft,Mt)|0,x=x+Math.imul(ot,Zt)|0,_=(_=_+Math.imul(ot,Vt)|0)+Math.imul(nt,Zt)|0,T=T+Math.imul(nt,Vt)|0;var me=(X+(x=x+Math.imul(ht,re)|0)|0)+((8191&(_=(_=_+Math.imul(ht,le)|0)+Math.imul(lt,re)|0))<<13)|0;X=((T=T+Math.imul(lt,le)|0)+(_>>>13)|0)+(me>>>26)|0,me&=67108863,x=Math.imul(jt,Te),_=(_=Math.imul(jt,te))+Math.imul(Ct,Te)|0,T=Math.imul(Ct,te),x=x+Math.imul(Ht,Re)|0,_=(_=_+Math.imul(Ht,ne)|0)+Math.imul(zt,Re)|0,T=T+Math.imul(zt,ne)|0,x=x+Math.imul(It,dt)|0,_=(_=_+Math.imul(It,bt)|0)+Math.imul(At,dt)|0,T=T+Math.imul(At,bt)|0,x=x+Math.imul(gt,Kt)|0,_=(_=_+Math.imul(gt,Mt)|0)+Math.imul(xt,Kt)|0,T=T+Math.imul(xt,Mt)|0,x=x+Math.imul(ct,Zt)|0,_=(_=_+Math.imul(ct,Vt)|0)+Math.imul(ft,Zt)|0,T=T+Math.imul(ft,Vt)|0;var oe=(X+(x=x+Math.imul(ot,re)|0)|0)+((8191&(_=(_=_+Math.imul(ot,le)|0)+Math.imul(nt,re)|0))<<13)|0;X=((T=T+Math.imul(nt,le)|0)+(_>>>13)|0)+(oe>>>26)|0,oe&=67108863,x=Math.imul(jt,Re),_=(_=Math.imul(jt,ne))+Math.imul(Ct,Re)|0,T=Math.imul(Ct,ne),x=x+Math.imul(Ht,dt)|0,_=(_=_+Math.imul(Ht,bt)|0)+Math.imul(zt,dt)|0,T=T+Math.imul(zt,bt)|0,x=x+Math.imul(It,Kt)|0,_=(_=_+Math.imul(It,Mt)|0)+Math.imul(At,Kt)|0,T=T+Math.imul(At,Mt)|0,x=x+Math.imul(gt,Zt)|0,_=(_=_+Math.imul(gt,Vt)|0)+Math.imul(xt,Zt)|0,T=T+Math.imul(xt,Vt)|0;var he=(X+(x=x+Math.imul(ct,re)|0)|0)+((8191&(_=(_=_+Math.imul(ct,le)|0)+Math.imul(ft,re)|0))<<13)|0;X=((T=T+Math.imul(ft,le)|0)+(_>>>13)|0)+(he>>>26)|0,he&=67108863,x=Math.imul(jt,dt),_=(_=Math.imul(jt,bt))+Math.imul(Ct,dt)|0,T=Math.imul(Ct,bt),x=x+Math.imul(Ht,Kt)|0,_=(_=_+Math.imul(Ht,Mt)|0)+Math.imul(zt,Kt)|0,T=T+Math.imul(zt,Mt)|0,x=x+Math.imul(It,Zt)|0,_=(_=_+Math.imul(It,Vt)|0)+Math.imul(At,Zt)|0,T=T+Math.imul(At,Vt)|0;var Jt=(X+(x=x+Math.imul(gt,re)|0)|0)+((8191&(_=(_=_+Math.imul(gt,le)|0)+Math.imul(xt,re)|0))<<13)|0;X=((T=T+Math.imul(xt,le)|0)+(_>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,x=Math.imul(jt,Kt),_=(_=Math.imul(jt,Mt))+Math.imul(Ct,Kt)|0,T=Math.imul(Ct,Mt),x=x+Math.imul(Ht,Zt)|0,_=(_=_+Math.imul(Ht,Vt)|0)+Math.imul(zt,Zt)|0,T=T+Math.imul(zt,Vt)|0;var Ce=(X+(x=x+Math.imul(It,re)|0)|0)+((8191&(_=(_=_+Math.imul(It,le)|0)+Math.imul(At,re)|0))<<13)|0;X=((T=T+Math.imul(At,le)|0)+(_>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,x=Math.imul(jt,Zt),_=(_=Math.imul(jt,Vt))+Math.imul(Ct,Zt)|0,T=Math.imul(Ct,Vt);var Ee=(X+(x=x+Math.imul(Ht,re)|0)|0)+((8191&(_=(_=_+Math.imul(Ht,le)|0)+Math.imul(zt,re)|0))<<13)|0;X=((T=T+Math.imul(zt,le)|0)+(_>>>13)|0)+(Ee>>>26)|0,Ee&=67108863;var Me=(X+(x=Math.imul(jt,re))|0)+((8191&(_=(_=Math.imul(jt,le))+Math.imul(Ct,re)|0))<<13)|0;return X=((T=Math.imul(Ct,le))+(_>>>13)|0)+(Me>>>26)|0,Me&=67108863,V[0]=ze,V[1]=$e,V[2]=tr,V[3]=er,V[4]=xr,V[5]=st,V[6]=pt,V[7]=wt,V[8]=_t,V[9]=Bt,V[10]=Et,V[11]=Rt,V[12]=me,V[13]=oe,V[14]=he,V[15]=Jt,V[16]=Ce,V[17]=Ee,V[18]=Me,X!==0&&(V[19]=X,w.length++),w};function I(k,y,w){w.negative=y.negative^k.negative,w.length=k.length+y.length;for(var x=0,_=0,T=0;T<w.length-1;T++){var O=_;_=0;for(var j=67108863&x,V=Math.min(T,y.length-1),X=Math.max(0,T-k.length+1);X<=V;X++){var J=T-X,L=(0|k.words[J])*(0|y.words[X]),G=67108863&L;j=67108863&(G=G+j|0),_+=(O=(O=O+(L/67108864|0)|0)+(G>>>26)|0)>>>26,O&=67108863}w.words[T]=j,x=O,O=_}return x!==0?w.words[T]=x:w.length--,w._strip()}function D(k,y,w){return I(k,y,w)}Math.imul||(C=S),e.prototype.mulTo=function(k,y){var w=this.length+k.length;return this.length===10&&k.length===10?C(this,k,y):w<63?S(this,k,y):w<1024?I(this,k,y):D(this,k,y)},e.prototype.mul=function(k){var y=new e(null);return y.words=new Array(this.length+k.length),this.mulTo(k,y)},e.prototype.mulf=function(k){var y=new e(null);return y.words=new Array(this.length+k.length),D(this,k,y)},e.prototype.imul=function(k){return this.clone().mulTo(k,this)},e.prototype.imuln=function(k){var y=k<0;y&&(k=-k),n(typeof k=="number"),n(k<67108864);for(var w=0,x=0;x<this.length;x++){var _=(0|this.words[x])*k,T=(67108863&_)+(67108863&w);w>>=26,w+=_/67108864|0,w+=T>>>26,this.words[x]=67108863&T}return w!==0&&(this.words[x]=w,this.length++),y?this.ineg():this},e.prototype.muln=function(k){return this.clone().imuln(k)},e.prototype.sqr=function(){return this.mul(this)},e.prototype.isqr=function(){return this.imul(this.clone())},e.prototype.pow=function(k){var y=(function(T){for(var O=new Array(T.bitLength()),j=0;j<O.length;j++){var V=j/26|0,X=j%26;O[j]=T.words[V]>>>X&1}return O})(k);if(y.length===0)return new e(1);for(var w=this,x=0;x<y.length&&y[x]===0;x++,w=w.sqr());if(++x<y.length)for(var _=w.sqr();x<y.length;x++,_=_.sqr())y[x]!==0&&(w=w.mul(_));return w},e.prototype.iushln=function(k){n(typeof k=="number"&&k>=0);var y,w=k%26,x=(k-w)/26,_=67108863>>>26-w<<26-w;if(w!==0){var T=0;for(y=0;y<this.length;y++){var O=this.words[y]&_,j=(0|this.words[y])-O<<w;this.words[y]=j|T,T=O>>>26-w}T&&(this.words[y]=T,this.length++)}if(x!==0){for(y=this.length-1;y>=0;y--)this.words[y+x]=this.words[y];for(y=0;y<x;y++)this.words[y]=0;this.length+=x}return this._strip()},e.prototype.ishln=function(k){return n(this.negative===0),this.iushln(k)},e.prototype.iushrn=function(k,y,w){var x;n(typeof k=="number"&&k>=0),x=y?(y-y%26)/26:0;var _=k%26,T=Math.min((k-_)/26,this.length),O=67108863^67108863>>>_<<_,j=w;if(x-=T,x=Math.max(0,x),j){for(var V=0;V<T;V++)j.words[V]=this.words[V];j.length=T}if(T!==0)if(this.length>T)for(this.length-=T,V=0;V<this.length;V++)this.words[V]=this.words[V+T];else this.words[0]=0,this.length=1;var X=0;for(V=this.length-1;V>=0&&(X!==0||V>=x);V--){var J=0|this.words[V];this.words[V]=X<<26-_|J>>>_,X=J&O}return j&&X!==0&&(j.words[j.length++]=X),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},e.prototype.ishrn=function(k,y,w){return n(this.negative===0),this.iushrn(k,y,w)},e.prototype.shln=function(k){return this.clone().ishln(k)},e.prototype.ushln=function(k){return this.clone().iushln(k)},e.prototype.shrn=function(k){return this.clone().ishrn(k)},e.prototype.ushrn=function(k){return this.clone().iushrn(k)},e.prototype.testn=function(k){n(typeof k=="number"&&k>=0);var y=k%26,w=(k-y)/26,x=1<<y;return!(this.length<=w)&&!!(this.words[w]&x)},e.prototype.imaskn=function(k){n(typeof k=="number"&&k>=0);var y=k%26,w=(k-y)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(y!==0&&w++,this.length=Math.min(w,this.length),y!==0){var x=67108863^67108863>>>y<<y;this.words[this.length-1]&=x}return this._strip()},e.prototype.maskn=function(k){return this.clone().imaskn(k)},e.prototype.iaddn=function(k){return n(typeof k=="number"),n(k<67108864),k<0?this.isubn(-k):this.negative!==0?this.length===1&&(0|this.words[0])<=k?(this.words[0]=k-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(k),this.negative=1,this):this._iaddn(k)},e.prototype._iaddn=function(k){this.words[0]+=k;for(var y=0;y<this.length&&this.words[y]>=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},e.prototype.isubn=function(k){if(n(typeof k=="number"),n(k<67108864),k<0)return this.iaddn(-k);if(this.negative!==0)return this.negative=0,this.iaddn(k),this.negative=1,this;if(this.words[0]-=k,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y<this.length&&this.words[y]<0;y++)this.words[y]+=67108864,this.words[y+1]-=1;return this._strip()},e.prototype.addn=function(k){return this.clone().iaddn(k)},e.prototype.subn=function(k){return this.clone().isubn(k)},e.prototype.iabs=function(){return this.negative=0,this},e.prototype.abs=function(){return this.clone().iabs()},e.prototype._ishlnsubmul=function(k,y,w){var x,_,T=k.length+w;this._expand(T);var O=0;for(x=0;x<k.length;x++){_=(0|this.words[x+w])+O;var j=(0|k.words[x])*y;O=((_-=67108863&j)>>26)-(j/67108864|0),this.words[x+w]=67108863&_}for(;x<this.length-w;x++)O=(_=(0|this.words[x+w])+O)>>26,this.words[x+w]=67108863&_;if(O===0)return this._strip();for(n(O===-1),O=0,x=0;x<this.length;x++)O=(_=-(0|this.words[x])+O)>>26,this.words[x]=67108863&_;return this.negative=1,this._strip()},e.prototype._wordDiv=function(k,y){var w=(this.length,k.length),x=this.clone(),_=k,T=0|_.words[_.length-1];(w=26-this._countBits(T))!==0&&(_=_.ushln(w),x.iushln(w),T=0|_.words[_.length-1]);var O,j=x.length-_.length;if(y!=="mod"){(O=new e(null)).length=j+1,O.words=new Array(O.length);for(var V=0;V<O.length;V++)O.words[V]=0}var X=x.clone()._ishlnsubmul(_,1,j);X.negative===0&&(x=X,O&&(O.words[j]=1));for(var J=j-1;J>=0;J--){var L=67108864*(0|x.words[_.length+J])+(0|x.words[_.length+J-1]);for(L=Math.min(L/T|0,67108863),x._ishlnsubmul(_,L,J);x.negative!==0;)L--,x.negative=0,x._ishlnsubmul(_,1,J),x.isZero()||(x.negative^=1);O&&(O.words[J]=L)}return O&&O._strip(),x._strip(),y!=="div"&&w!==0&&x.iushrn(w),{div:O||null,mod:x}},e.prototype.divmod=function(k,y,w){return n(!k.isZero()),this.isZero()?{div:new e(0),mod:new e(0)}:this.negative!==0&&k.negative===0?(T=this.neg().divmod(k,y),y!=="mod"&&(x=T.div.neg()),y!=="div"&&(_=T.mod.neg(),w&&_.negative!==0&&_.iadd(k)),{div:x,mod:_}):this.negative===0&&k.negative!==0?(T=this.divmod(k.neg(),y),y!=="mod"&&(x=T.div.neg()),{div:x,mod:T.mod}):(this.negative&k.negative)!=0?(T=this.neg().divmod(k.neg(),y),y!=="div"&&(_=T.mod.neg(),w&&_.negative!==0&&_.isub(k)),{div:T.div,mod:_}):k.length>this.length||this.cmp(k)<0?{div:new e(0),mod:this}:k.length===1?y==="div"?{div:this.divn(k.words[0]),mod:null}:y==="mod"?{div:null,mod:new e(this.modrn(k.words[0]))}:{div:this.divn(k.words[0]),mod:new e(this.modrn(k.words[0]))}:this._wordDiv(k,y);var x,_,T},e.prototype.div=function(k){return this.divmod(k,"div",!1).div},e.prototype.mod=function(k){return this.divmod(k,"mod",!1).mod},e.prototype.umod=function(k){return this.divmod(k,"mod",!0).mod},e.prototype.divRound=function(k){var y=this.divmod(k);if(y.mod.isZero())return y.div;var w=y.div.negative!==0?y.mod.isub(k):y.mod,x=k.ushrn(1),_=k.andln(1),T=w.cmp(x);return T<0||_===1&&T===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},e.prototype.modrn=function(k){var y=k<0;y&&(k=-k),n(k<=67108863);for(var w=(1<<26)%k,x=0,_=this.length-1;_>=0;_--)x=(w*x+(0|this.words[_]))%k;return y?-x:x},e.prototype.modn=function(k){return this.modrn(k)},e.prototype.idivn=function(k){var y=k<0;y&&(k=-k),n(k<=67108863);for(var w=0,x=this.length-1;x>=0;x--){var _=(0|this.words[x])+67108864*w;this.words[x]=_/k|0,w=_%k}return this._strip(),y?this.ineg():this},e.prototype.divn=function(k){return this.clone().idivn(k)},e.prototype.egcd=function(k){n(k.negative===0),n(!k.isZero());var y=this,w=k.clone();y=y.negative!==0?y.umod(k):y.clone();for(var x=new e(1),_=new e(0),T=new e(0),O=new e(1),j=0;y.isEven()&&w.isEven();)y.iushrn(1),w.iushrn(1),++j;for(var V=w.clone(),X=y.clone();!y.isZero();){for(var J=0,L=1;(y.words[0]&L)==0&&J<26;++J,L<<=1);if(J>0)for(y.iushrn(J);J-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(V),_.isub(X)),x.iushrn(1),_.iushrn(1);for(var G=0,N=1;(w.words[0]&N)==0&&G<26;++G,N<<=1);if(G>0)for(w.iushrn(G);G-- >0;)(T.isOdd()||O.isOdd())&&(T.iadd(V),O.isub(X)),T.iushrn(1),O.iushrn(1);y.cmp(w)>=0?(y.isub(w),x.isub(T),_.isub(O)):(w.isub(y),T.isub(x),O.isub(_))}return{a:T,b:O,gcd:w.iushln(j)}},e.prototype._invmp=function(k){n(k.negative===0),n(!k.isZero());var y=this,w=k.clone();y=y.negative!==0?y.umod(k):y.clone();for(var x,_=new e(1),T=new e(0),O=w.clone();y.cmpn(1)>0&&w.cmpn(1)>0;){for(var j=0,V=1;(y.words[0]&V)==0&&j<26;++j,V<<=1);if(j>0)for(y.iushrn(j);j-- >0;)_.isOdd()&&_.iadd(O),_.iushrn(1);for(var X=0,J=1;(w.words[0]&J)==0&&X<26;++X,J<<=1);if(X>0)for(w.iushrn(X);X-- >0;)T.isOdd()&&T.iadd(O),T.iushrn(1);y.cmp(w)>=0?(y.isub(w),_.isub(T)):(w.isub(y),T.isub(_))}return(x=y.cmpn(1)===0?_:T).cmpn(0)<0&&x.iadd(k),x},e.prototype.gcd=function(k){if(this.isZero())return k.abs();if(k.isZero())return this.abs();var y=this.clone(),w=k.clone();y.negative=0,w.negative=0;for(var x=0;y.isEven()&&w.isEven();x++)y.iushrn(1),w.iushrn(1);for(;;){for(;y.isEven();)y.iushrn(1);for(;w.isEven();)w.iushrn(1);var _=y.cmp(w);if(_<0){var T=y;y=w,w=T}else if(_===0||w.cmpn(1)===0)break;y.isub(w)}return w.iushln(x)},e.prototype.invm=function(k){return this.egcd(k).a.umod(k)},e.prototype.isEven=function(){return(1&this.words[0])==0},e.prototype.isOdd=function(){return(1&this.words[0])==1},e.prototype.andln=function(k){return this.words[0]&k},e.prototype.bincn=function(k){n(typeof k=="number");var y=k%26,w=(k-y)/26,x=1<<y;if(this.length<=w)return this._expand(w+1),this.words[w]|=x,this;for(var _=x,T=w;_!==0&&T<this.length;T++){var O=0|this.words[T];_=(O+=_)>>>26,O&=67108863,this.words[T]=O}return _!==0&&(this.words[T]=_,this.length++),this},e.prototype.isZero=function(){return this.length===1&&this.words[0]===0},e.prototype.cmpn=function(k){var y,w=k<0;if(this.negative!==0&&!w)return-1;if(this.negative===0&&w)return 1;if(this._strip(),this.length>1)y=1;else{w&&(k=-k),n(k<=67108863,"Number is too big");var x=0|this.words[0];y=x===k?0:x<k?-1:1}return this.negative!==0?0|-y:y},e.prototype.cmp=function(k){if(this.negative!==0&&k.negative===0)return-1;if(this.negative===0&&k.negative!==0)return 1;var y=this.ucmp(k);return this.negative!==0?0|-y:y},e.prototype.ucmp=function(k){if(this.length>k.length)return 1;if(this.length<k.length)return-1;for(var y=0,w=this.length-1;w>=0;w--){var x=0|this.words[w],_=0|k.words[w];if(x!==_){x<_?y=-1:x>_&&(y=1);break}}return y},e.prototype.gtn=function(k){return this.cmpn(k)===1},e.prototype.gt=function(k){return this.cmp(k)===1},e.prototype.gten=function(k){return this.cmpn(k)>=0},e.prototype.gte=function(k){return this.cmp(k)>=0},e.prototype.ltn=function(k){return this.cmpn(k)===-1},e.prototype.lt=function(k){return this.cmp(k)===-1},e.prototype.lten=function(k){return this.cmpn(k)<=0},e.prototype.lte=function(k){return this.cmp(k)<=0},e.prototype.eqn=function(k){return this.cmpn(k)===0},e.prototype.eq=function(k){return this.cmp(k)===0},e.red=function(k){return new A(k)},e.prototype.toRed=function(k){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),k.convertTo(this)._forceRed(k)},e.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},e.prototype._forceRed=function(k){return this.red=k,this},e.prototype.forceRed=function(k){return n(!this.red,"Already a number in reduction context"),this._forceRed(k)},e.prototype.redAdd=function(k){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,k)},e.prototype.redIAdd=function(k){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,k)},e.prototype.redSub=function(k){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,k)},e.prototype.redISub=function(k){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,k)},e.prototype.redShl=function(k){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,k)},e.prototype.redMul=function(k){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.mul(this,k)},e.prototype.redIMul=function(k){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,k),this.red.imul(this,k)},e.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},e.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},e.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},e.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},e.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},e.prototype.redPow=function(k){return n(this.red&&!k.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,k)};var z={k256:null,p224:null,p192:null,p25519:null};function P(k,y){this.name=k,this.p=new e(y,16),this.n=this.p.bitLength(),this.k=new e(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function B(){P.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function F(){P.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function W(){P.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function q(){P.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(k){if(typeof k=="string"){var y=e._prime(k);this.m=y.p,this.prime=y}else n(k.gtn(1),"modulus must be greater than 1"),this.m=k,this.prime=null}function M(k){A.call(this,k),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new e(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}P.prototype._tmp=function(){var k=new e(null);return k.words=new Array(Math.ceil(this.n/13)),k},P.prototype.ireduce=function(k){var y,w=k;do this.split(w,this.tmp),y=(w=(w=this.imulK(w)).iadd(this.tmp)).bitLength();while(y>this.n);var x=y<this.n?-1:w.ucmp(this.p);return x===0?(w.words[0]=0,w.length=1):x>0?w.isub(this.p):w.strip!==void 0?w.strip():w._strip(),w},P.prototype.split=function(k,y){k.iushrn(this.n,0,y)},P.prototype.imulK=function(k){return k.imul(this.k)},s(B,P),B.prototype.split=function(k,y){for(var w=Math.min(k.length,9),x=0;x<w;x++)y.words[x]=k.words[x];if(y.length=w,k.length<=9)return k.words[0]=0,void(k.length=1);var _=k.words[9];for(y.words[y.length++]=4194303&_,x=10;x<k.length;x++){var T=0|k.words[x];k.words[x-10]=(4194303&T)<<4|_>>>22,_=T}_>>>=22,k.words[x-10]=_,_===0&&k.length>10?k.length-=10:k.length-=9},B.prototype.imulK=function(k){k.words[k.length]=0,k.words[k.length+1]=0,k.length+=2;for(var y=0,w=0;w<k.length;w++){var x=0|k.words[w];y+=977*x,k.words[w]=67108863&y,y=64*x+(y/67108864|0)}return k.words[k.length-1]===0&&(k.length--,k.words[k.length-1]===0&&k.length--),k},s(F,P),s(W,P),s(q,P),q.prototype.imulK=function(k){for(var y=0,w=0;w<k.length;w++){var x=19*(0|k.words[w])+y,_=67108863&x;x>>>=26,k.words[w]=_,y=x}return y!==0&&(k.words[k.length++]=y),k},e._prime=function(k){if(z[k])return z[k];var y;if(k==="k256")y=new B;else if(k==="p224")y=new F;else if(k==="p192")y=new W;else{if(k!=="p25519")throw new Error("Unknown prime "+k);y=new q}return z[k]=y,y},A.prototype._verify1=function(k){n(k.negative===0,"red works only with positives"),n(k.red,"red works only with red numbers")},A.prototype._verify2=function(k,y){n((k.negative|y.negative)==0,"red works only with positives"),n(k.red&&k.red===y.red,"red works only with red numbers")},A.prototype.imod=function(k){return this.prime?this.prime.ireduce(k)._forceRed(this):(p(k,k.umod(this.m)._forceRed(this)),k)},A.prototype.neg=function(k){return k.isZero()?k.clone():this.m.sub(k)._forceRed(this)},A.prototype.add=function(k,y){this._verify2(k,y);var w=k.add(y);return w.cmp(this.m)>=0&&w.isub(this.m),w._forceRed(this)},A.prototype.iadd=function(k,y){this._verify2(k,y);var w=k.iadd(y);return w.cmp(this.m)>=0&&w.isub(this.m),w},A.prototype.sub=function(k,y){this._verify2(k,y);var w=k.sub(y);return w.cmpn(0)<0&&w.iadd(this.m),w._forceRed(this)},A.prototype.isub=function(k,y){this._verify2(k,y);var w=k.isub(y);return w.cmpn(0)<0&&w.iadd(this.m),w},A.prototype.shl=function(k,y){return this._verify1(k),this.imod(k.ushln(y))},A.prototype.imul=function(k,y){return this._verify2(k,y),this.imod(k.imul(y))},A.prototype.mul=function(k,y){return this._verify2(k,y),this.imod(k.mul(y))},A.prototype.isqr=function(k){return this.imul(k,k.clone())},A.prototype.sqr=function(k){return this.mul(k,k)},A.prototype.sqrt=function(k){if(k.isZero())return k.clone();var y=this.m.andln(3);if(n(y%2==1),y===3){var w=this.m.add(new e(1)).iushrn(2);return this.pow(k,w)}for(var x=this.m.subn(1),_=0;!x.isZero()&&x.andln(1)===0;)_++,x.iushrn(1);n(!x.isZero());var T=new e(1).toRed(this),O=T.redNeg(),j=this.m.subn(1).iushrn(1),V=this.m.bitLength();for(V=new e(2*V*V).toRed(this);this.pow(V,j).cmp(O)!==0;)V.redIAdd(O);for(var X=this.pow(V,x),J=this.pow(k,x.addn(1).iushrn(1)),L=this.pow(k,x),G=_;L.cmp(T)!==0;){for(var N=L,R=0;N.cmp(T)!==0;R++)N=N.redSqr();n(R<G);var U=this.pow(X,new e(1).iushln(G-R-1));J=J.redMul(U),X=U.redSqr(),L=L.redMul(X),G=R}return J},A.prototype.invm=function(k){var y=k._invmp(this.m);return y.negative!==0?(y.negative=0,this.imod(y).redNeg()):this.imod(y)},A.prototype.pow=function(k,y){if(y.isZero())return new e(1).toRed(this);if(y.cmpn(1)===0)return k.clone();var w=new Array(16);w[0]=new e(1).toRed(this),w[1]=k;for(var x=2;x<w.length;x++)w[x]=this.mul(w[x-1],k);var _=w[0],T=0,O=0,j=y.bitLength()%26;for(j===0&&(j=26),x=y.length-1;x>=0;x--){for(var V=y.words[x],X=j-1;X>=0;X--){var J=V>>X&1;_!==w[0]&&(_=this.sqr(_)),J!==0||T!==0?(T<<=1,T|=J,(++O===4||x===0&&X===0)&&(_=this.mul(_,w[T]),O=0,T=0)):O=0}j=26}return _},A.prototype.convertTo=function(k){var y=k.umod(this.m);return y===k?y.clone():y},A.prototype.convertFrom=function(k){var y=k.clone();return y.red=null,y},e.mont=function(k){return new M(k)},s(M,A),M.prototype.convertTo=function(k){return this.imod(k.ushln(this.shift))},M.prototype.convertFrom=function(k){var y=this.imod(k.mul(this.rinv));return y.red=null,y},M.prototype.imul=function(k,y){if(k.isZero()||y.isZero())return k.words[0]=0,k.length=1,k;var w=k.imul(y),x=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(x).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},M.prototype.mul=function(k,y){if(k.isZero()||y.isZero())return new e(0)._forceRed(this);var w=k.mul(y),x=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=w.isub(x).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},M.prototype.invm=function(k){return this.imod(k._invmp(this.m).mul(this.r2))._forceRed(this)}})(l===void 0||l)},{buffer:188}],187:[function(t,l,c){var o;function r(s){this.rand=s}if(l.exports=function(s){return o||(o=new r(null)),o.generate(s)},l.exports.Rand=r,r.prototype.generate=function(s){return this._rand(s)},r.prototype._rand=function(s){if(this.rand.getBytes)return this.rand.getBytes(s);for(var e=new Uint8Array(s),i=0;i<e.length;i++)e[i]=this.rand.getByte();return e},typeof self=="object")self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(s){var e=new Uint8Array(s);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(s){var e=new Uint8Array(s);return self.msCrypto.getRandomValues(e),e}:typeof window=="object"&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var n=t("crypto");if(typeof n.randomBytes!="function")throw new Error("Not supported");r.prototype._rand=function(s){return n.randomBytes(s)}}catch{}},{crypto:188}],188:[function(t,l,c){},{}],189:[function(t,l,c){var o=t("safe-buffer").Buffer;function r(a){o.isBuffer(a)||(a=o.from(a));for(var h=a.length/4|0,p=new Array(h),m=0;m<h;m++)p[m]=a.readUInt32BE(4*m);return p}function n(a){for(;0<a.length;a++)a[0]=0}function s(a,h,p,m,d){for(var b,g,S,C,I=p[0],D=p[1],z=p[2],P=p[3],B=a[0]^h[0],F=a[1]^h[1],W=a[2]^h[2],q=a[3]^h[3],A=4,M=1;M<d;M++)b=I[B>>>24]^D[F>>>16&255]^z[W>>>8&255]^P[255&q]^h[A++],g=I[F>>>24]^D[W>>>16&255]^z[q>>>8&255]^P[255&B]^h[A++],S=I[W>>>24]^D[q>>>16&255]^z[B>>>8&255]^P[255&F]^h[A++],C=I[q>>>24]^D[B>>>16&255]^z[F>>>8&255]^P[255&W]^h[A++],B=b,F=g,W=S,q=C;return b=(m[B>>>24]<<24|m[F>>>16&255]<<16|m[W>>>8&255]<<8|m[255&q])^h[A++],g=(m[F>>>24]<<24|m[W>>>16&255]<<16|m[q>>>8&255]<<8|m[255&B])^h[A++],S=(m[W>>>24]<<24|m[q>>>16&255]<<16|m[B>>>8&255]<<8|m[255&F])^h[A++],C=(m[q>>>24]<<24|m[B>>>16&255]<<16|m[F>>>8&255]<<8|m[255&W])^h[A++],[b>>>=0,g>>>=0,S>>>=0,C>>>=0]}var e=[0,1,2,4,8,16,32,64,128,27,54],i=(function(){for(var a=new Array(256),h=0;h<256;h++)a[h]=h<128?h<<1:h<<1^283;for(var p=[],m=[],d=[[],[],[],[]],b=[[],[],[],[]],g=0,S=0,C=0;C<256;++C){var I=S^S<<1^S<<2^S<<3^S<<4;I=I>>>8^255&I^99,p[g]=I,m[I]=g;var D=a[g],z=a[D],P=a[z],B=257*a[I]^16843008*I;d[0][g]=B<<24|B>>>8,d[1][g]=B<<16|B>>>16,d[2][g]=B<<8|B>>>24,d[3][g]=B,B=16843009*P^65537*z^257*D^16843008*g,b[0][I]=B<<24|B>>>8,b[1][I]=B<<16|B>>>16,b[2][I]=B<<8|B>>>24,b[3][I]=B,g===0?g=S=1:(g=D^a[a[a[P^D]]],S^=a[a[S]])}return{SBOX:p,INV_SBOX:m,SUB_MIX:d,INV_SUB_MIX:b}})();function u(a){this._key=r(a),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var a=this._key,h=a.length,p=h+6,m=4*(p+1),d=[],b=0;b<h;b++)d[b]=a[b];for(b=h;b<m;b++){var g=d[b-1];b%h==0?(g=g<<8|g>>>24,g=i.SBOX[g>>>24]<<24|i.SBOX[g>>>16&255]<<16|i.SBOX[g>>>8&255]<<8|i.SBOX[255&g],g^=e[b/h|0]<<24):h>6&&b%h==4&&(g=i.SBOX[g>>>24]<<24|i.SBOX[g>>>16&255]<<16|i.SBOX[g>>>8&255]<<8|i.SBOX[255&g]),d[b]=d[b-h]^g}for(var S=[],C=0;C<m;C++){var I=m-C,D=d[I-(C%4?0:4)];S[C]=C<4||I<=4?D:i.INV_SUB_MIX[0][i.SBOX[D>>>24]]^i.INV_SUB_MIX[1][i.SBOX[D>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[D>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[255&D]]}this._nRounds=p,this._keySchedule=d,this._invKeySchedule=S},u.prototype.encryptBlockRaw=function(a){return s(a=r(a),this._keySchedule,i.SUB_MIX,i.SBOX,this._nRounds)},u.prototype.encryptBlock=function(a){var h=this.encryptBlockRaw(a),p=o.allocUnsafe(16);return p.writeUInt32BE(h[0],0),p.writeUInt32BE(h[1],4),p.writeUInt32BE(h[2],8),p.writeUInt32BE(h[3],12),p},u.prototype.decryptBlock=function(a){var h=(a=r(a))[1];a[1]=a[3],a[3]=h;var p=s(a,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX,this._nRounds),m=o.allocUnsafe(16);return m.writeUInt32BE(p[0],0),m.writeUInt32BE(p[3],4),m.writeUInt32BE(p[2],8),m.writeUInt32BE(p[1],12),m},u.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},l.exports.AES=u},{"safe-buffer":494}],190:[function(t,l,c){var o=t("./aes"),r=t("safe-buffer").Buffer,n=t("cipher-base"),s=t("inherits"),e=t("./ghash"),i=t("buffer-xor"),u=t("./incr32");function a(h,p,m,d){n.call(this);var b=r.alloc(4,0);this._cipher=new o.AES(p);var g=this._cipher.encryptBlock(b);this._ghash=new e(g),m=(function(S,C,I){if(C.length===12)return S._finID=r.concat([C,r.from([0,0,0,1])]),r.concat([C,r.from([0,0,0,2])]);var D=new e(I),z=C.length,P=z%16;D.update(C),P&&(P=16-P,D.update(r.alloc(P,0))),D.update(r.alloc(8,0));var B=8*z,F=r.alloc(8);F.writeUIntBE(B,0,8),D.update(F),S._finID=D.state;var W=r.from(S._finID);return u(W),W})(this,m,g),this._prev=r.from(m),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=d,this._alen=0,this._len=0,this._mode=h,this._authTag=null,this._called=!1}s(a,n),a.prototype._update=function(h){if(!this._called&&this._alen){var p=16-this._alen%16;p<16&&(p=r.alloc(p,0),this._ghash.update(p))}this._called=!0;var m=this._mode.encrypt(this,h);return this._decrypt?this._ghash.update(h):this._ghash.update(m),this._len+=h.length,m},a.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var h=i(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&(function(p,m){var d=0;p.length!==m.length&&d++;for(var b=Math.min(p.length,m.length),g=0;g<b;++g)d+=p[g]^m[g];return d})(h,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=h,this._cipher.scrub()},a.prototype.getAuthTag=function(){if(this._decrypt||!r.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},a.prototype.setAuthTag=function(h){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=h},a.prototype.setAAD=function(h){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(h),this._alen+=h.length},l.exports=a},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(t,l,c){var o=t("./encrypter"),r=t("./decrypter"),n=t("./modes/list.json");c.createCipher=c.Cipher=o.createCipher,c.createCipheriv=c.Cipheriv=o.createCipheriv,c.createDecipher=c.Decipher=r.createDecipher,c.createDecipheriv=c.Decipheriv=r.createDecipheriv,c.listCiphers=c.getCiphers=function(){return Object.keys(n)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(t,l,c){var o=t("./authCipher"),r=t("safe-buffer").Buffer,n=t("./modes"),s=t("./streamCipher"),e=t("cipher-base"),i=t("./aes"),u=t("evp_bytestokey");function a(m,d,b){e.call(this),this._cache=new h,this._last=void 0,this._cipher=new i.AES(d),this._prev=r.from(b),this._mode=m,this._autopadding=!0}function h(){this.cache=r.allocUnsafe(0)}function p(m,d,b){var g=n[m.toLowerCase()];if(!g)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=r.from(b)),g.mode!=="GCM"&&b.length!==g.iv)throw new TypeError("invalid iv length "+b.length);if(typeof d=="string"&&(d=r.from(d)),d.length!==g.key/8)throw new TypeError("invalid key length "+d.length);return g.type==="stream"?new s(g.module,d,b,!0):g.type==="auth"?new o(g.module,d,b,!0):new a(g.module,d,b)}t("inherits")(a,e),a.prototype._update=function(m){var d,b;this._cache.add(m);for(var g=[];d=this._cache.get(this._autopadding);)b=this._mode.decrypt(this,d),g.push(b);return r.concat(g)},a.prototype._final=function(){var m=this._cache.flush();if(this._autopadding)return(function(d){var b=d[15];if(b<1||b>16)throw new Error("unable to decrypt data");for(var g=-1;++g<b;)if(d[g+(16-b)]!==b)throw new Error("unable to decrypt data");if(b!==16)return d.slice(0,16-b)})(this._mode.decrypt(this,m));if(m)throw new Error("data not multiple of block length")},a.prototype.setAutoPadding=function(m){return this._autopadding=!!m,this},h.prototype.add=function(m){this.cache=r.concat([this.cache,m])},h.prototype.get=function(m){var d;if(m){if(this.cache.length>16)return d=this.cache.slice(0,16),this.cache=this.cache.slice(16),d}else if(this.cache.length>=16)return d=this.cache.slice(0,16),this.cache=this.cache.slice(16),d;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},c.createDecipher=function(m,d){var b=n[m.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var g=u(d,!1,b.key,b.iv);return p(m,g.key,g.iv)},c.createDecipheriv=p},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(t,l,c){var o=t("./modes"),r=t("./authCipher"),n=t("safe-buffer").Buffer,s=t("./streamCipher"),e=t("cipher-base"),i=t("./aes"),u=t("evp_bytestokey");function a(d,b,g){e.call(this),this._cache=new p,this._cipher=new i.AES(b),this._prev=n.from(g),this._mode=d,this._autopadding=!0}t("inherits")(a,e),a.prototype._update=function(d){var b,g;this._cache.add(d);for(var S=[];b=this._cache.get();)g=this._mode.encrypt(this,b),S.push(g);return n.concat(S)};var h=n.alloc(16,16);function p(){this.cache=n.allocUnsafe(0)}function m(d,b,g){var S=o[d.toLowerCase()];if(!S)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=n.from(b)),b.length!==S.key/8)throw new TypeError("invalid key length "+b.length);if(typeof g=="string"&&(g=n.from(g)),S.mode!=="GCM"&&g.length!==S.iv)throw new TypeError("invalid iv length "+g.length);return S.type==="stream"?new s(S.module,b,g):S.type==="auth"?new r(S.module,b,g):new a(S.module,b,g)}a.prototype._final=function(){var d=this._cache.flush();if(this._autopadding)return d=this._mode.encrypt(this,d),this._cipher.scrub(),d;if(!d.equals(h))throw this._cipher.scrub(),new Error("data not multiple of block length")},a.prototype.setAutoPadding=function(d){return this._autopadding=!!d,this},p.prototype.add=function(d){this.cache=n.concat([this.cache,d])},p.prototype.get=function(){if(this.cache.length>15){var d=this.cache.slice(0,16);return this.cache=this.cache.slice(16),d}return null},p.prototype.flush=function(){for(var d=16-this.cache.length,b=n.allocUnsafe(d),g=-1;++g<d;)b.writeUInt8(d,g);return n.concat([this.cache,b])},c.createCipheriv=m,c.createCipher=function(d,b){var g=o[d.toLowerCase()];if(!g)throw new TypeError("invalid suite type");var S=u(b,!1,g.key,g.iv);return m(d,S.key,S.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(t,l,c){var o=t("safe-buffer").Buffer,r=o.alloc(16,0);function n(e){var i=o.allocUnsafe(16);return i.writeUInt32BE(e[0]>>>0,0),i.writeUInt32BE(e[1]>>>0,4),i.writeUInt32BE(e[2]>>>0,8),i.writeUInt32BE(e[3]>>>0,12),i}function s(e){this.h=e,this.state=o.alloc(16,0),this.cache=o.allocUnsafe(0)}s.prototype.ghash=function(e){for(var i=-1;++i<e.length;)this.state[i]^=e[i];this._multiply()},s.prototype._multiply=function(){for(var e,i,u,a=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],h=[0,0,0,0],p=-1;++p<128;){for((this.state[~~(p/8)]&1<<7-p%8)!=0&&(h[0]^=a[0],h[1]^=a[1],h[2]^=a[2],h[3]^=a[3]),u=(1&a[3])!=0,i=3;i>0;i--)a[i]=a[i]>>>1|(1&a[i-1])<<31;a[0]=a[0]>>>1,u&&(a[0]=a[0]^225<<24)}this.state=n(h)},s.prototype.update=function(e){var i;for(this.cache=o.concat([this.cache,e]);this.cache.length>=16;)i=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(i)},s.prototype.final=function(e,i){return this.cache.length&&this.ghash(o.concat([this.cache,r],16)),this.ghash(n([0,e,0,i])),this.state},l.exports=s},{"safe-buffer":494}],195:[function(t,l,c){l.exports=function(o){for(var r,n=o.length;n--;){if((r=o.readUInt8(n))!==255){r++,o.writeUInt8(r,n);break}o.writeUInt8(0,n)}}},{}],196:[function(t,l,c){var o=t("buffer-xor");c.encrypt=function(r,n){var s=o(n,r._prev);return r._prev=r._cipher.encryptBlock(s),r._prev},c.decrypt=function(r,n){var s=r._prev;r._prev=n;var e=r._cipher.decryptBlock(n);return o(e,s)}},{"buffer-xor":219}],197:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("buffer-xor");function n(s,e,i){var u=e.length,a=r(e,s._cache);return s._cache=s._cache.slice(u),s._prev=o.concat([s._prev,i?e:a]),a}c.encrypt=function(s,e,i){for(var u,a=o.allocUnsafe(0);e.length;){if(s._cache.length===0&&(s._cache=s._cipher.encryptBlock(s._prev),s._prev=o.allocUnsafe(0)),!(s._cache.length<=e.length)){a=o.concat([a,n(s,e,i)]);break}u=s._cache.length,a=o.concat([a,n(s,e.slice(0,u),i)]),e=e.slice(u)}return a}},{"buffer-xor":219,"safe-buffer":494}],198:[function(t,l,c){var o=t("safe-buffer").Buffer;function r(s,e,i){for(var u,a,h=-1,p=0;++h<8;)u=e&1<<7-h?128:0,p+=(128&(a=s._cipher.encryptBlock(s._prev)[0]^u))>>h%8,s._prev=n(s._prev,i?u:a);return p}function n(s,e){var i=s.length,u=-1,a=o.allocUnsafe(s.length);for(s=o.concat([s,o.from([e])]);++u<i;)a[u]=s[u]<<1|s[u+1]>>7;return a}c.encrypt=function(s,e,i){for(var u=e.length,a=o.allocUnsafe(u),h=-1;++h<u;)a[h]=r(s,e[h],i);return a}},{"safe-buffer":494}],199:[function(t,l,c){var o=t("safe-buffer").Buffer;function r(n,s,e){var i=n._cipher.encryptBlock(n._prev)[0]^s;return n._prev=o.concat([n._prev.slice(1),o.from([e?s:i])]),i}c.encrypt=function(n,s,e){for(var i=s.length,u=o.allocUnsafe(i),a=-1;++a<i;)u[a]=r(n,s[a],e);return u}},{"safe-buffer":494}],200:[function(t,l,c){var o=t("buffer-xor"),r=t("safe-buffer").Buffer,n=t("../incr32");function s(e){var i=e._cipher.encryptBlockRaw(e._prev);return n(e._prev),i}c.encrypt=function(e,i){var u=Math.ceil(i.length/16),a=e._cache.length;e._cache=r.concat([e._cache,r.allocUnsafe(16*u)]);for(var h=0;h<u;h++){var p=s(e),m=a+16*h;e._cache.writeUInt32BE(p[0],m+0),e._cache.writeUInt32BE(p[1],m+4),e._cache.writeUInt32BE(p[2],m+8),e._cache.writeUInt32BE(p[3],m+12)}var d=e._cache.slice(0,i.length);return e._cache=e._cache.slice(i.length),o(i,d)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(t,l,c){c.encrypt=function(o,r){return o._cipher.encryptBlock(r)},c.decrypt=function(o,r){return o._cipher.decryptBlock(r)}},{}],202:[function(t,l,c){var o={ECB:t("./ecb"),CBC:t("./cbc"),CFB:t("./cfb"),CFB8:t("./cfb8"),CFB1:t("./cfb1"),OFB:t("./ofb"),CTR:t("./ctr"),GCM:t("./ctr")},r=t("./list.json");for(var n in r)r[n].module=o[r[n].mode];l.exports=r},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(t,l,c){l.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(t,l,c){(function(o){(function(){var r=t("buffer-xor");function n(s){return s._prev=s._cipher.encryptBlock(s._prev),s._prev}c.encrypt=function(s,e){for(;s._cache.length<e.length;)s._cache=o.concat([s._cache,n(s)]);var i=s._cache.slice(0,e.length);return s._cache=s._cache.slice(e.length),r(e,i)}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(t,l,c){var o=t("./aes"),r=t("safe-buffer").Buffer,n=t("cipher-base");function s(e,i,u,a){n.call(this),this._cipher=new o.AES(i),this._prev=r.from(u),this._cache=r.allocUnsafe(0),this._secCache=r.allocUnsafe(0),this._decrypt=a,this._mode=e}t("inherits")(s,n),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},l.exports=s},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(t,l,c){var o=t("browserify-des"),r=t("browserify-aes/browser"),n=t("browserify-aes/modes"),s=t("browserify-des/modes"),e=t("evp_bytestokey");function i(a,h,p){if(a=a.toLowerCase(),n[a])return r.createCipheriv(a,h,p);if(s[a])return new o({key:h,iv:p,mode:a});throw new TypeError("invalid suite type")}function u(a,h,p){if(a=a.toLowerCase(),n[a])return r.createDecipheriv(a,h,p);if(s[a])return new o({key:h,iv:p,mode:a,decrypt:!0});throw new TypeError("invalid suite type")}c.createCipher=c.Cipher=function(a,h){var p,m;if(a=a.toLowerCase(),n[a])p=n[a].key,m=n[a].iv;else{if(!s[a])throw new TypeError("invalid suite type");p=8*s[a].key,m=s[a].iv}var d=e(h,!1,p,m);return i(a,d.key,d.iv)},c.createCipheriv=c.Cipheriv=i,c.createDecipher=c.Decipher=function(a,h){var p,m;if(a=a.toLowerCase(),n[a])p=n[a].key,m=n[a].iv;else{if(!s[a])throw new TypeError("invalid suite type");p=8*s[a].key,m=s[a].iv}var d=e(h,!1,p,m);return u(a,d.key,d.iv)},c.createDecipheriv=c.Decipheriv=u,c.listCiphers=c.getCiphers=function(){return Object.keys(s).concat(r.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(t,l,c){var o=t("cipher-base"),r=t("des.js"),n=t("inherits"),s=t("safe-buffer").Buffer,e={"des-ede3-cbc":r.CBC.instantiate(r.EDE),"des-ede3":r.EDE,"des-ede-cbc":r.CBC.instantiate(r.EDE),"des-ede":r.EDE,"des-cbc":r.CBC.instantiate(r.DES),"des-ecb":r.DES};function i(u){o.call(this);var a,h=u.mode.toLowerCase(),p=e[h];a=u.decrypt?"decrypt":"encrypt";var m=u.key;s.isBuffer(m)||(m=s.from(m)),h!=="des-ede"&&h!=="des-ede-cbc"||(m=s.concat([m,m.slice(0,8)]));var d=u.iv;s.isBuffer(d)||(d=s.from(d)),this._des=p.create({key:m,iv:d,type:a})}e.des=e["des-cbc"],e.des3=e["des-ede3-cbc"],l.exports=i,n(i,o),i.prototype._update=function(u){return s.from(this._des.update(u))},i.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(t,l,c){c["des-ecb"]={key:8,iv:0},c["des-cbc"]=c.des={key:8,iv:8},c["des-ede3-cbc"]=c.des3={key:24,iv:8},c["des-ede3"]={key:24,iv:0},c["des-ede-cbc"]={key:16,iv:8},c["des-ede"]={key:16,iv:0}},{}],209:[function(t,l,c){(function(o){(function(){var r=t("bn.js"),n=t("randombytes");function s(i){var u,a=i.modulus.byteLength();do u=new r(n(a));while(u.cmp(i.modulus)>=0||!u.umod(i.prime1)||!u.umod(i.prime2));return u}function e(i,u){var a=(function(z){var P=s(z);return{blinder:P.toRed(r.mont(z.modulus)).redPow(new r(z.publicExponent)).fromRed(),unblinder:P.invm(z.modulus)}})(u),h=u.modulus.byteLength(),p=new r(i).mul(a.blinder).umod(u.modulus),m=p.toRed(r.mont(u.prime1)),d=p.toRed(r.mont(u.prime2)),b=u.coefficient,g=u.prime1,S=u.prime2,C=m.redPow(u.exponent1).fromRed(),I=d.redPow(u.exponent2).fromRed(),D=C.isub(I).imul(b).umod(g).imul(S);return I.iadd(D).imul(a.unblinder).umod(u.modulus).toArrayLike(o,"be",h)}e.getr=s,l.exports=e}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(t,l,c){l.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(t,l,c){l.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(t,l,c){l.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("create-hash"),n=t("readable-stream"),s=t("inherits"),e=t("./sign"),i=t("./verify"),u=t("./algorithms.json");function a(d){n.Writable.call(this);var b=u[d];if(!b)throw new Error("Unknown message digest");this._hashType=b.hash,this._hash=r(b.hash),this._tag=b.id,this._signType=b.sign}function h(d){n.Writable.call(this);var b=u[d];if(!b)throw new Error("Unknown message digest");this._hash=r(b.hash),this._tag=b.id,this._signType=b.sign}function p(d){return new a(d)}function m(d){return new h(d)}Object.keys(u).forEach((function(d){u[d].id=o.from(u[d].id,"hex"),u[d.toLowerCase()]=u[d]})),s(a,n.Writable),a.prototype._write=function(d,b,g){this._hash.update(d),g()},a.prototype.update=function(d,b){return typeof d=="string"&&(d=o.from(d,b)),this._hash.update(d),this},a.prototype.sign=function(d,b){this.end();var g=this._hash.digest(),S=e(g,d,this._hashType,this._signType,this._tag);return b?S.toString(b):S},s(h,n.Writable),h.prototype._write=function(d,b,g){this._hash.update(d),g()},h.prototype.update=function(d,b){return typeof d=="string"&&(d=o.from(d,b)),this._hash.update(d),this},h.prototype.verify=function(d,b,g){typeof b=="string"&&(b=o.from(b,g)),this.end();var S=this._hash.digest();return i(b,S,d,this._signType,this._tag)},l.exports={Sign:p,Verify:m,createSign:p,createVerify:m}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("create-hmac"),n=t("browserify-rsa"),s=t("elliptic").ec,e=t("bn.js"),i=t("parse-asn1"),u=t("./curves.json");function a(d,b,g,S){if((d=o.from(d.toArray())).length<b.byteLength()){var C=o.alloc(b.byteLength()-d.length);d=o.concat([C,d])}var I=g.length,D=(function(B,F){B=(B=h(B,F)).mod(F);var W=o.from(B.toArray());if(W.length<F.byteLength()){var q=o.alloc(F.byteLength()-W.length);W=o.concat([q,W])}return W})(g,b),z=o.alloc(I);z.fill(1);var P=o.alloc(I);return P=r(S,P).update(z).update(o.from([0])).update(d).update(D).digest(),z=r(S,P).update(z).digest(),{k:P=r(S,P).update(z).update(o.from([1])).update(d).update(D).digest(),v:z=r(S,P).update(z).digest()}}function h(d,b){var g=new e(d),S=(d.length<<3)-b.bitLength();return S>0&&g.ishrn(S),g}function p(d,b,g){var S,C;do{for(S=o.alloc(0);8*S.length<d.bitLength();)b.v=r(g,b.k).update(b.v).digest(),S=o.concat([S,b.v]);C=h(S,d),b.k=r(g,b.k).update(b.v).update(o.from([0])).digest(),b.v=r(g,b.k).update(b.v).digest()}while(C.cmp(d)!==-1);return C}function m(d,b,g,S){return d.toRed(e.mont(g)).redPow(b).fromRed().mod(S)}l.exports=function(d,b,g,S,C){var I=i(b);if(I.curve){if(S!=="ecdsa"&&S!=="ecdsa/rsa")throw new Error("wrong private key type");return(function(B,F){var W=u[F.curve.join(".")];if(!W)throw new Error("unknown curve "+F.curve.join("."));var q=new s(W).keyFromPrivate(F.privateKey).sign(B);return o.from(q.toDER())})(d,I)}if(I.type==="dsa"){if(S!=="dsa")throw new Error("wrong private key type");return(function(B,F,W){for(var q,A=F.params.priv_key,M=F.params.p,k=F.params.q,y=F.params.g,w=new e(0),x=h(B,k).mod(k),_=!1,T=a(A,k,B,W);_===!1;)q=p(k,T,W),w=m(y,q,M,k),(_=q.invm(k).imul(x.add(A.mul(w))).mod(k)).cmpn(0)===0&&(_=!1,w=new e(0));return(function(O,j){O=O.toArray(),j=j.toArray(),128&O[0]&&(O=[0].concat(O)),128&j[0]&&(j=[0].concat(j));var V=[48,O.length+j.length+4,2,O.length];return V=V.concat(O,[2,j.length],j),o.from(V)})(w,_)})(d,I,g)}if(S!=="rsa"&&S!=="ecdsa/rsa")throw new Error("wrong private key type");d=o.concat([C,d]);for(var D=I.modulus.byteLength(),z=[0,1];d.length+z.length+1<D;)z.push(255);z.push(0);for(var P=-1;++P<d.length;)z.push(d[P]);return n(z,I)},l.exports.getKey=a,l.exports.makeKey=p},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("bn.js"),n=t("elliptic").ec,s=t("parse-asn1"),e=t("./curves.json");function i(u,a){if(u.cmpn(0)<=0)throw new Error("invalid sig");if(u.cmp(a)>=a)throw new Error("invalid sig")}l.exports=function(u,a,h,p,m){var d=s(h);if(d.type==="ec"){if(p!=="ecdsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");return(function(z,P,B){var F=e[B.data.algorithm.curve.join(".")];if(!F)throw new Error("unknown curve "+B.data.algorithm.curve.join("."));var W=new n(F),q=B.data.subjectPrivateKey.data;return W.verify(P,z,q)})(u,a,d)}if(d.type==="dsa"){if(p!=="dsa")throw new Error("wrong public key type");return(function(z,P,B){var F=B.data.p,W=B.data.q,q=B.data.g,A=B.data.pub_key,M=s.signature.decode(z,"der"),k=M.s,y=M.r;i(k,W),i(y,W);var w=r.mont(F),x=k.invm(W);return q.toRed(w).redPow(new r(P).mul(x).mod(W)).fromRed().mul(A.toRed(w).redPow(y.mul(x).mod(W)).fromRed()).mod(F).mod(W).cmp(y)===0})(u,a,d)}if(p!=="rsa"&&p!=="ecdsa/rsa")throw new Error("wrong public key type");a=o.concat([m,a]);for(var b=d.modulus.byteLength(),g=[1],S=0;a.length+g.length+2<b;)g.push(255),S++;g.push(0);for(var C=-1;++C<a.length;)g.push(a[C]);g=o.from(g);var I=r.mont(d.modulus);u=(u=new r(u).toRed(I)).redPow(new r(d.publicExponent)),u=o.from(u.fromRed().toArray());var D=S<8?1:0;for(b=Math.min(u.length,g.length),u.length!==g.length&&(D=1),C=-1;++C<b;)D|=u[C]^g[C];return D===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(t,l,c){},{}],217:[function(t,l,c){var o=t("buffer"),r=o.Buffer;function n(e,i){for(var u in e)i[u]=e[u]}function s(e,i,u){return r(e,i,u)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?l.exports=o:(n(o,c),c.Buffer=s),n(r,s),s.from=function(e,i,u){if(typeof e=="number")throw new TypeError("Argument must not be a number");return r(e,i,u)},s.alloc=function(e,i,u){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=r(e);return i!==void 0?typeof u=="string"?a.fill(i,u):a.fill(i):a.fill(0),a},s.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return r(e)},s.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},{buffer:220}],218:[function(t,l,c){var o=t("safe-buffer").Buffer,r=o.isEncoding||function(d){switch((d=""+d)&&d.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(d){var b;switch(this.encoding=(function(g){var S=(function(C){if(!C)return"utf8";for(var I;;)switch(C){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return C;default:if(I)return;C=(""+C).toLowerCase(),I=!0}})(g);if(typeof S!="string"&&(o.isEncoding===r||!r(g)))throw new Error("Unknown encoding: "+g);return S||g})(d),this.encoding){case"utf16le":this.text=i,this.end=u,b=4;break;case"utf8":this.fillLast=e,b=4;break;case"base64":this.text=a,this.end=h,b=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=o.allocUnsafe(b)}function s(d){return d<=127?0:d>>5==6?2:d>>4==14?3:d>>3==30?4:d>>6==2?-1:-2}function e(d){var b=this.lastTotal-this.lastNeed,g=(function(S,C,I){if((192&C[0])!=128)return S.lastNeed=0,"�";if(S.lastNeed>1&&C.length>1){if((192&C[1])!=128)return S.lastNeed=1,"�";if(S.lastNeed>2&&C.length>2&&(192&C[2])!=128)return S.lastNeed=2,"�"}})(this,d);return g!==void 0?g:this.lastNeed<=d.length?(d.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(d.copy(this.lastChar,b,0,d.length),void(this.lastNeed-=d.length))}function i(d,b){if((d.length-b)%2==0){var g=d.toString("utf16le",b);if(g){var S=g.charCodeAt(g.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1],g.slice(0,-1)}return g}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=d[d.length-1],d.toString("utf16le",b,d.length-1)}function u(d){var b=d&&d.length?this.write(d):"";if(this.lastNeed){var g=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,g)}return b}function a(d,b){var g=(d.length-b)%3;return g===0?d.toString("base64",b):(this.lastNeed=3-g,this.lastTotal=3,g===1?this.lastChar[0]=d[d.length-1]:(this.lastChar[0]=d[d.length-2],this.lastChar[1]=d[d.length-1]),d.toString("base64",b,d.length-g))}function h(d){var b=d&&d.length?this.write(d):"";return this.lastNeed?b+this.lastChar.toString("base64",0,3-this.lastNeed):b}function p(d){return d.toString(this.encoding)}function m(d){return d&&d.length?this.write(d):""}c.StringDecoder=n,n.prototype.write=function(d){if(d.length===0)return"";var b,g;if(this.lastNeed){if((b=this.fillLast(d))===void 0)return"";g=this.lastNeed,this.lastNeed=0}else g=0;return g<d.length?b?b+this.text(d,g):this.text(d,g):b||""},n.prototype.end=function(d){var b=d&&d.length?this.write(d):"";return this.lastNeed?b+"�":b},n.prototype.text=function(d,b){var g=(function(C,I,D){var z=I.length-1;if(z<D)return 0;var P=s(I[z]);return P>=0?(P>0&&(C.lastNeed=P-1),P):--z<D||P===-2?0:(P=s(I[z]))>=0?(P>0&&(C.lastNeed=P-2),P):--z<D||P===-2?0:(P=s(I[z]))>=0?(P>0&&(P===2?P=0:C.lastNeed=P-3),P):0})(this,d,b);if(!this.lastNeed)return d.toString("utf8",b);this.lastTotal=g;var S=d.length-(g-this.lastNeed);return d.copy(this.lastChar,0,S),d.toString("utf8",b,S)},n.prototype.fillLast=function(d){if(this.lastNeed<=d.length)return d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);d.copy(this.lastChar,this.lastTotal-this.lastNeed,0,d.length),this.lastNeed-=d.length}},{"safe-buffer":217}],219:[function(t,l,c){(function(o){(function(){l.exports=function(r,n){for(var s=Math.min(r.length,n.length),e=new o(s),i=0;i<s;++i)e[i]=r[i]^n[i];return e}}).call(this)}).call(this,t("buffer").Buffer)},{buffer:220}],220:[function(t,l,c){(function(o){(function(){var r=t("base64-js"),n=t("ieee754");c.Buffer=e,c.SlowBuffer=function(N){return+N!=N&&(N=0),e.alloc(+N)},c.INSPECT_MAX_BYTES=50;function s(N){if(N>2147483647)throw new RangeError('The value "'+N+'" is invalid for option "size"');var R=new Uint8Array(N);return R.__proto__=e.prototype,R}function e(N,R,U){if(typeof N=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return a(N)}return i(N,R,U)}function i(N,R,U){if(typeof N=="string")return(function(Z,et){if(typeof et=="string"&&et!==""||(et="utf8"),!e.isEncoding(et))throw new TypeError("Unknown encoding: "+et);var ht=0|m(Z,et),lt=s(ht),Q=lt.write(Z,et);return Q!==ht&&(lt=lt.slice(0,Q)),lt})(N,R);if(ArrayBuffer.isView(N))return h(N);if(N==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(L(N,ArrayBuffer)||N&&L(N.buffer,ArrayBuffer))return(function(Z,et,ht){if(et<0||Z.byteLength<et)throw new RangeError('"offset" is outside of buffer bounds');if(Z.byteLength<et+(ht||0))throw new RangeError('"length" is outside of buffer bounds');var lt;return lt=et===void 0&&ht===void 0?new Uint8Array(Z):ht===void 0?new Uint8Array(Z,et):new Uint8Array(Z,et,ht),lt.__proto__=e.prototype,lt})(N,R,U);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var K=N.valueOf&&N.valueOf();if(K!=null&&K!==N)return e.from(K,R,U);var rt=(function(Z){if(e.isBuffer(Z)){var et=0|p(Z.length),ht=s(et);return ht.length===0||Z.copy(ht,0,0,et),ht}if(Z.length!==void 0)return typeof Z.length!="number"||G(Z.length)?s(0):h(Z);if(Z.type==="Buffer"&&Array.isArray(Z.data))return h(Z.data)})(N);if(rt)return rt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return e.from(N[Symbol.toPrimitive]("string"),R,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}function u(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function a(N){return u(N),s(N<0?0:0|p(N))}function h(N){for(var R=N.length<0?0:0|p(N.length),U=s(R),K=0;K<R;K+=1)U[K]=255&N[K];return U}function p(N){if(N>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|N}function m(N,R){if(e.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||L(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);var U=N.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&U===0)return 0;for(var rt=!1;;)switch(R){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return V(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*U;case"hex":return U>>>1;case"base64":return X(N).length;default:if(rt)return K?-1:V(N).length;R=(""+R).toLowerCase(),rt=!0}}function d(N,R,U){var K=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0)<=(R>>>=0))return"";for(N||(N="utf8");;)switch(N){case"hex":return M(this,R,U);case"utf8":case"utf-8":return W(this,R,U);case"ascii":return q(this,R,U);case"latin1":case"binary":return A(this,R,U);case"base64":return F(this,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,R,U);default:if(K)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),K=!0}}function b(N,R,U){var K=N[R];N[R]=N[U],N[U]=K}function g(N,R,U,K,rt){if(N.length===0)return-1;if(typeof U=="string"?(K=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),G(U=+U)&&(U=rt?0:N.length-1),U<0&&(U=N.length+U),U>=N.length){if(rt)return-1;U=N.length-1}else if(U<0){if(!rt)return-1;U=0}if(typeof R=="string"&&(R=e.from(R,K)),e.isBuffer(R))return R.length===0?-1:S(N,R,U,K,rt);if(typeof R=="number")return R&=255,typeof Uint8Array.prototype.indexOf=="function"?rt?Uint8Array.prototype.indexOf.call(N,R,U):Uint8Array.prototype.lastIndexOf.call(N,R,U):S(N,[R],U,K,rt);throw new TypeError("val must be string, number or Buffer")}function S(N,R,U,K,rt){var Z,et=1,ht=N.length,lt=R.length;if(K!==void 0&&((K=String(K).toLowerCase())==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(N.length<2||R.length<2)return-1;et=2,ht/=2,lt/=2,U/=2}function Q(ct,ft){return et===1?ct[ft]:ct.readUInt16BE(ft*et)}if(rt){var ot=-1;for(Z=U;Z<ht;Z++)if(Q(N,Z)===Q(R,ot===-1?0:Z-ot)){if(ot===-1&&(ot=Z),Z-ot+1===lt)return ot*et}else ot!==-1&&(Z-=Z-ot),ot=-1}else for(U+lt>ht&&(U=ht-lt),Z=U;Z>=0;Z--){for(var nt=!0,ut=0;ut<lt;ut++)if(Q(N,Z+ut)!==Q(R,ut)){nt=!1;break}if(nt)return Z}return-1}function C(N,R,U,K){U=Number(U)||0;var rt=N.length-U;K?(K=Number(K))>rt&&(K=rt):K=rt;var Z=R.length;K>Z/2&&(K=Z/2);for(var et=0;et<K;++et){var ht=parseInt(R.substr(2*et,2),16);if(G(ht))return et;N[U+et]=ht}return et}function I(N,R,U,K){return J(V(R,N.length-U),N,U,K)}function D(N,R,U,K){return J((function(rt){for(var Z=[],et=0;et<rt.length;++et)Z.push(255&rt.charCodeAt(et));return Z})(R),N,U,K)}function z(N,R,U,K){return D(N,R,U,K)}function P(N,R,U,K){return J(X(R),N,U,K)}function B(N,R,U,K){return J((function(rt,Z){for(var et,ht,lt,Q=[],ot=0;ot<rt.length&&!((Z-=2)<0);++ot)et=rt.charCodeAt(ot),ht=et>>8,lt=et%256,Q.push(lt),Q.push(ht);return Q})(R,N.length-U),N,U,K)}function F(N,R,U){return R===0&&U===N.length?r.fromByteArray(N):r.fromByteArray(N.slice(R,U))}function W(N,R,U){U=Math.min(N.length,U);for(var K=[],rt=R;rt<U;){var Z,et,ht,lt,Q=N[rt],ot=null,nt=Q>239?4:Q>223?3:Q>191?2:1;if(rt+nt<=U)switch(nt){case 1:Q<128&&(ot=Q);break;case 2:(192&(Z=N[rt+1]))==128&&(lt=(31&Q)<<6|63&Z)>127&&(ot=lt);break;case 3:Z=N[rt+1],et=N[rt+2],(192&Z)==128&&(192&et)==128&&(lt=(15&Q)<<12|(63&Z)<<6|63&et)>2047&&(lt<55296||lt>57343)&&(ot=lt);break;case 4:Z=N[rt+1],et=N[rt+2],ht=N[rt+3],(192&Z)==128&&(192&et)==128&&(192&ht)==128&&(lt=(15&Q)<<18|(63&Z)<<12|(63&et)<<6|63&ht)>65535&<<1114112&&(ot=lt)}ot===null?(ot=65533,nt=1):ot>65535&&(ot-=65536,K.push(ot>>>10&1023|55296),ot=56320|1023&ot),K.push(ot),rt+=nt}return(function(ut){var ct=ut.length;if(ct<=4096)return String.fromCharCode.apply(String,ut);for(var ft="",mt=0;mt<ct;)ft+=String.fromCharCode.apply(String,ut.slice(mt,mt+=4096));return ft})(K)}c.kMaxLength=2147483647,e.TYPED_ARRAY_SUPPORT=(function(){try{var N=new Uint8Array(1);return N.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},N.foo()===42}catch{return!1}})(),e.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),e.poolSize=8192,e.from=function(N,R,U){return i(N,R,U)},e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,e.alloc=function(N,R,U){return(function(K,rt,Z){return u(K),K<=0?s(K):rt!==void 0?typeof Z=="string"?s(K).fill(rt,Z):s(K).fill(rt):s(K)})(N,R,U)},e.allocUnsafe=function(N){return a(N)},e.allocUnsafeSlow=function(N){return a(N)},e.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==e.prototype},e.compare=function(N,R){if(L(N,Uint8Array)&&(N=e.from(N,N.offset,N.byteLength)),L(R,Uint8Array)&&(R=e.from(R,R.offset,R.byteLength)),!e.isBuffer(N)||!e.isBuffer(R))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===R)return 0;for(var U=N.length,K=R.length,rt=0,Z=Math.min(U,K);rt<Z;++rt)if(N[rt]!==R[rt]){U=N[rt],K=R[rt];break}return U<K?-1:K<U?1:0},e.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},e.concat=function(N,R){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return e.alloc(0);var U;if(R===void 0)for(R=0,U=0;U<N.length;++U)R+=N[U].length;var K=e.allocUnsafe(R),rt=0;for(U=0;U<N.length;++U){var Z=N[U];if(L(Z,Uint8Array)&&(Z=e.from(Z)),!e.isBuffer(Z))throw new TypeError('"list" argument must be an Array of Buffers');Z.copy(K,rt),rt+=Z.length}return K},e.byteLength=m,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var N=this.length;if(N%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var R=0;R<N;R+=2)b(this,R,R+1);return this},e.prototype.swap32=function(){var N=this.length;if(N%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var R=0;R<N;R+=4)b(this,R,R+3),b(this,R+1,R+2);return this},e.prototype.swap64=function(){var N=this.length;if(N%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var R=0;R<N;R+=8)b(this,R,R+7),b(this,R+1,R+6),b(this,R+2,R+5),b(this,R+3,R+4);return this},e.prototype.toString=function(){var N=this.length;return N===0?"":arguments.length===0?W(this,0,N):d.apply(this,arguments)},e.prototype.toLocaleString=e.prototype.toString,e.prototype.equals=function(N){if(!e.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N||e.compare(this,N)===0},e.prototype.inspect=function(){var N="",R=c.INSPECT_MAX_BYTES;return N=this.toString("hex",0,R).replace(/(.{2})/g,"$1 ").trim(),this.length>R&&(N+=" ... "),"<Buffer "+N+">"},e.prototype.compare=function(N,R,U,K,rt){if(L(N,Uint8Array)&&(N=e.from(N,N.offset,N.byteLength)),!e.isBuffer(N))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if(R===void 0&&(R=0),U===void 0&&(U=N?N.length:0),K===void 0&&(K=0),rt===void 0&&(rt=this.length),R<0||U>N.length||K<0||rt>this.length)throw new RangeError("out of range index");if(K>=rt&&R>=U)return 0;if(K>=rt)return-1;if(R>=U)return 1;if(this===N)return 0;for(var Z=(rt>>>=0)-(K>>>=0),et=(U>>>=0)-(R>>>=0),ht=Math.min(Z,et),lt=this.slice(K,rt),Q=N.slice(R,U),ot=0;ot<ht;++ot)if(lt[ot]!==Q[ot]){Z=lt[ot],et=Q[ot];break}return Z<et?-1:et<Z?1:0},e.prototype.includes=function(N,R,U){return this.indexOf(N,R,U)!==-1},e.prototype.indexOf=function(N,R,U){return g(this,N,R,U,!0)},e.prototype.lastIndexOf=function(N,R,U){return g(this,N,R,U,!1)},e.prototype.write=function(N,R,U,K){if(R===void 0)K="utf8",U=this.length,R=0;else if(U===void 0&&typeof R=="string")K=R,U=this.length,R=0;else{if(!isFinite(R))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");R>>>=0,isFinite(U)?(U>>>=0,K===void 0&&(K="utf8")):(K=U,U=void 0)}var rt=this.length-R;if((U===void 0||U>rt)&&(U=rt),N.length>0&&(U<0||R<0)||R>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");for(var Z=!1;;)switch(K){case"hex":return C(this,N,R,U);case"utf8":case"utf-8":return I(this,N,R,U);case"ascii":return D(this,N,R,U);case"latin1":case"binary":return z(this,N,R,U);case"base64":return P(this,N,R,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,N,R,U);default:if(Z)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),Z=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function q(N,R,U){var K="";U=Math.min(N.length,U);for(var rt=R;rt<U;++rt)K+=String.fromCharCode(127&N[rt]);return K}function A(N,R,U){var K="";U=Math.min(N.length,U);for(var rt=R;rt<U;++rt)K+=String.fromCharCode(N[rt]);return K}function M(N,R,U){var K=N.length;(!R||R<0)&&(R=0),(!U||U<0||U>K)&&(U=K);for(var rt="",Z=R;Z<U;++Z)rt+=j(N[Z]);return rt}function k(N,R,U){for(var K=N.slice(R,U),rt="",Z=0;Z<K.length;Z+=2)rt+=String.fromCharCode(K[Z]+256*K[Z+1]);return rt}function y(N,R,U){if(N%1!=0||N<0)throw new RangeError("offset is not uint");if(N+R>U)throw new RangeError("Trying to access beyond buffer length")}function w(N,R,U,K,rt,Z){if(!e.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>rt||R<Z)throw new RangeError('"value" argument is out of bounds');if(U+K>N.length)throw new RangeError("Index out of range")}function x(N,R,U,K,rt,Z){if(U+K>N.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function _(N,R,U,K,rt){return R=+R,U>>>=0,rt||x(N,0,U,4),n.write(N,R,U,K,23,4),U+4}function T(N,R,U,K,rt){return R=+R,U>>>=0,rt||x(N,0,U,8),n.write(N,R,U,K,52,8),U+8}e.prototype.slice=function(N,R){var U=this.length;(N=~~N)<0?(N+=U)<0&&(N=0):N>U&&(N=U),(R=R===void 0?U:~~R)<0?(R+=U)<0&&(R=0):R>U&&(R=U),R<N&&(R=N);var K=this.subarray(N,R);return K.__proto__=e.prototype,K},e.prototype.readUIntLE=function(N,R,U){N>>>=0,R>>>=0,U||y(N,R,this.length);for(var K=this[N],rt=1,Z=0;++Z<R&&(rt*=256);)K+=this[N+Z]*rt;return K},e.prototype.readUIntBE=function(N,R,U){N>>>=0,R>>>=0,U||y(N,R,this.length);for(var K=this[N+--R],rt=1;R>0&&(rt*=256);)K+=this[N+--R]*rt;return K},e.prototype.readUInt8=function(N,R){return N>>>=0,R||y(N,1,this.length),this[N]},e.prototype.readUInt16LE=function(N,R){return N>>>=0,R||y(N,2,this.length),this[N]|this[N+1]<<8},e.prototype.readUInt16BE=function(N,R){return N>>>=0,R||y(N,2,this.length),this[N]<<8|this[N+1]},e.prototype.readUInt32LE=function(N,R){return N>>>=0,R||y(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+16777216*this[N+3]},e.prototype.readUInt32BE=function(N,R){return N>>>=0,R||y(N,4,this.length),16777216*this[N]+(this[N+1]<<16|this[N+2]<<8|this[N+3])},e.prototype.readIntLE=function(N,R,U){N>>>=0,R>>>=0,U||y(N,R,this.length);for(var K=this[N],rt=1,Z=0;++Z<R&&(rt*=256);)K+=this[N+Z]*rt;return K>=(rt*=128)&&(K-=Math.pow(2,8*R)),K},e.prototype.readIntBE=function(N,R,U){N>>>=0,R>>>=0,U||y(N,R,this.length);for(var K=R,rt=1,Z=this[N+--K];K>0&&(rt*=256);)Z+=this[N+--K]*rt;return Z>=(rt*=128)&&(Z-=Math.pow(2,8*R)),Z},e.prototype.readInt8=function(N,R){return N>>>=0,R||y(N,1,this.length),128&this[N]?-1*(255-this[N]+1):this[N]},e.prototype.readInt16LE=function(N,R){N>>>=0,R||y(N,2,this.length);var U=this[N]|this[N+1]<<8;return 32768&U?4294901760|U:U},e.prototype.readInt16BE=function(N,R){N>>>=0,R||y(N,2,this.length);var U=this[N+1]|this[N]<<8;return 32768&U?4294901760|U:U},e.prototype.readInt32LE=function(N,R){return N>>>=0,R||y(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},e.prototype.readInt32BE=function(N,R){return N>>>=0,R||y(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},e.prototype.readFloatLE=function(N,R){return N>>>=0,R||y(N,4,this.length),n.read(this,N,!0,23,4)},e.prototype.readFloatBE=function(N,R){return N>>>=0,R||y(N,4,this.length),n.read(this,N,!1,23,4)},e.prototype.readDoubleLE=function(N,R){return N>>>=0,R||y(N,8,this.length),n.read(this,N,!0,52,8)},e.prototype.readDoubleBE=function(N,R){return N>>>=0,R||y(N,8,this.length),n.read(this,N,!1,52,8)},e.prototype.writeUIntLE=function(N,R,U,K){N=+N,R>>>=0,U>>>=0,K||w(this,N,R,U,Math.pow(2,8*U)-1,0);var rt=1,Z=0;for(this[R]=255&N;++Z<U&&(rt*=256);)this[R+Z]=N/rt&255;return R+U},e.prototype.writeUIntBE=function(N,R,U,K){N=+N,R>>>=0,U>>>=0,K||w(this,N,R,U,Math.pow(2,8*U)-1,0);var rt=U-1,Z=1;for(this[R+rt]=255&N;--rt>=0&&(Z*=256);)this[R+rt]=N/Z&255;return R+U},e.prototype.writeUInt8=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,1,255,0),this[R]=255&N,R+1},e.prototype.writeUInt16LE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,2,65535,0),this[R]=255&N,this[R+1]=N>>>8,R+2},e.prototype.writeUInt16BE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,2,65535,0),this[R]=N>>>8,this[R+1]=255&N,R+2},e.prototype.writeUInt32LE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,4,4294967295,0),this[R+3]=N>>>24,this[R+2]=N>>>16,this[R+1]=N>>>8,this[R]=255&N,R+4},e.prototype.writeUInt32BE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,4,4294967295,0),this[R]=N>>>24,this[R+1]=N>>>16,this[R+2]=N>>>8,this[R+3]=255&N,R+4},e.prototype.writeIntLE=function(N,R,U,K){if(N=+N,R>>>=0,!K){var rt=Math.pow(2,8*U-1);w(this,N,R,U,rt-1,-rt)}var Z=0,et=1,ht=0;for(this[R]=255&N;++Z<U&&(et*=256);)N<0&&ht===0&&this[R+Z-1]!==0&&(ht=1),this[R+Z]=(N/et>>0)-ht&255;return R+U},e.prototype.writeIntBE=function(N,R,U,K){if(N=+N,R>>>=0,!K){var rt=Math.pow(2,8*U-1);w(this,N,R,U,rt-1,-rt)}var Z=U-1,et=1,ht=0;for(this[R+Z]=255&N;--Z>=0&&(et*=256);)N<0&&ht===0&&this[R+Z+1]!==0&&(ht=1),this[R+Z]=(N/et>>0)-ht&255;return R+U},e.prototype.writeInt8=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,1,127,-128),N<0&&(N=255+N+1),this[R]=255&N,R+1},e.prototype.writeInt16LE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,2,32767,-32768),this[R]=255&N,this[R+1]=N>>>8,R+2},e.prototype.writeInt16BE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,2,32767,-32768),this[R]=N>>>8,this[R+1]=255&N,R+2},e.prototype.writeInt32LE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,4,2147483647,-2147483648),this[R]=255&N,this[R+1]=N>>>8,this[R+2]=N>>>16,this[R+3]=N>>>24,R+4},e.prototype.writeInt32BE=function(N,R,U){return N=+N,R>>>=0,U||w(this,N,R,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),this[R]=N>>>24,this[R+1]=N>>>16,this[R+2]=N>>>8,this[R+3]=255&N,R+4},e.prototype.writeFloatLE=function(N,R,U){return _(this,N,R,!0,U)},e.prototype.writeFloatBE=function(N,R,U){return _(this,N,R,!1,U)},e.prototype.writeDoubleLE=function(N,R,U){return T(this,N,R,!0,U)},e.prototype.writeDoubleBE=function(N,R,U){return T(this,N,R,!1,U)},e.prototype.copy=function(N,R,U,K){if(!e.isBuffer(N))throw new TypeError("argument should be a Buffer");if(U||(U=0),K||K===0||(K=this.length),R>=N.length&&(R=N.length),R||(R=0),K>0&&K<U&&(K=U),K===U||N.length===0||this.length===0)return 0;if(R<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),N.length-R<K-U&&(K=N.length-R+U);var rt=K-U;if(this===N&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(R,U,K);else if(this===N&&U<R&&R<K)for(var Z=rt-1;Z>=0;--Z)N[Z+R]=this[Z+U];else Uint8Array.prototype.set.call(N,this.subarray(U,K),R);return rt},e.prototype.fill=function(N,R,U,K){if(typeof N=="string"){if(typeof R=="string"?(K=R,R=0,U=this.length):typeof U=="string"&&(K=U,U=this.length),K!==void 0&&typeof K!="string")throw new TypeError("encoding must be a string");if(typeof K=="string"&&!e.isEncoding(K))throw new TypeError("Unknown encoding: "+K);if(N.length===1){var rt=N.charCodeAt(0);(K==="utf8"&&rt<128||K==="latin1")&&(N=rt)}}else typeof N=="number"&&(N&=255);if(R<0||this.length<R||this.length<U)throw new RangeError("Out of range index");if(U<=R)return this;var Z;if(R>>>=0,U=U===void 0?this.length:U>>>0,N||(N=0),typeof N=="number")for(Z=R;Z<U;++Z)this[Z]=N;else{var et=e.isBuffer(N)?N:e.from(N,K),ht=et.length;if(ht===0)throw new TypeError('The value "'+N+'" is invalid for argument "value"');for(Z=0;Z<U-R;++Z)this[Z+R]=et[Z%ht]}return this};var O=/[^+/0-9A-Za-z-_]/g;function j(N){return N<16?"0"+N.toString(16):N.toString(16)}function V(N,R){var U;R=R||1/0;for(var K=N.length,rt=null,Z=[],et=0;et<K;++et){if((U=N.charCodeAt(et))>55295&&U<57344){if(!rt){if(U>56319){(R-=3)>-1&&Z.push(239,191,189);continue}if(et+1===K){(R-=3)>-1&&Z.push(239,191,189);continue}rt=U;continue}if(U<56320){(R-=3)>-1&&Z.push(239,191,189),rt=U;continue}U=65536+(rt-55296<<10|U-56320)}else rt&&(R-=3)>-1&&Z.push(239,191,189);if(rt=null,U<128){if((R-=1)<0)break;Z.push(U)}else if(U<2048){if((R-=2)<0)break;Z.push(U>>6|192,63&U|128)}else if(U<65536){if((R-=3)<0)break;Z.push(U>>12|224,U>>6&63|128,63&U|128)}else{if(!(U<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;Z.push(U>>18|240,U>>12&63|128,U>>6&63|128,63&U|128)}}return Z}function X(N){return r.toByteArray((function(R){if((R=(R=R.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R})(N))}function J(N,R,U,K){for(var rt=0;rt<K&&!(rt+U>=R.length||rt>=N.length);++rt)R[rt+U]=N[rt];return rt}function L(N,R){return N instanceof R||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===R.name}function G(N){return N!=N}}).call(this)}).call(this,t("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("stream").Transform,n=t("string_decoder").StringDecoder;function s(e){r.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t("inherits")(s,r),s.prototype.update=function(e,i,u){typeof e=="string"&&(e=o.from(e,i));var a=this._update(e);return this.hashMode?this:(u&&(a=this._toString(a,u)),a)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,i,u){var a;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(h){a=h}finally{u(a)}},s.prototype._flush=function(e){var i;try{this.push(this.__final())}catch(u){i=u}e(i)},s.prototype._finalOrDigest=function(e){var i=this.__final()||o.alloc(0);return e&&(i=this._toString(i,e,!0)),i},s.prototype._toString=function(e,i,u){if(this._decoder||(this._decoder=new n(i),this._encoding=i),this._encoding!==i)throw new Error("can't switch encodings");var a=this._decoder.write(e);return u&&(a+=this._decoder.end()),a},l.exports=s},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(t,l,c){var o=t("../internals/is-callable"),r=t("../internals/try-to-string"),n=TypeError;l.exports=function(s){if(o(s))return s;throw new n(r(s)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(t,l,c){var o=t("../internals/is-constructor"),r=t("../internals/try-to-string"),n=TypeError;l.exports=function(s){if(o(s))return s;throw new n(r(s)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(t,l,c){var o=t("../internals/is-callable"),r=String,n=TypeError;l.exports=function(s){if(typeof s=="object"||o(s))return s;throw new n("Can't set "+r(s)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(t,l,c){var o=t("../internals/well-known-symbol"),r=t("../internals/object-create"),n=t("../internals/object-define-property").f,s=o("unscopables"),e=Array.prototype;e[s]===void 0&&n(e,s,{configurable:!0,value:r(null)}),l.exports=function(i){e[s][i]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(t,l,c){var o=t("../internals/object-is-prototype-of"),r=TypeError;l.exports=function(n,s){if(o(s,n))return n;throw new r("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(t,l,c){var o=t("../internals/is-object"),r=String,n=TypeError;l.exports=function(s){if(o(s))return s;throw new n(r(s)+" is not an object")}},{"../internals/is-object":289}],228:[function(t,l,c){var o=t("../internals/to-indexed-object"),r=t("../internals/to-absolute-index"),n=t("../internals/length-of-array-like"),s=function(e){return function(i,u,a){var h,p=o(i),m=n(p),d=r(a,m);if(e&&u!=u){for(;m>d;)if((h=p[d++])!=h)return!0}else for(;m>d;d++)if((e||d in p)&&p[d]===u)return e||d||0;return!e&&-1}};l.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(t,l,c){var o=t("../internals/function-bind-context"),r=t("../internals/function-uncurry-this"),n=t("../internals/indexed-object"),s=t("../internals/to-object"),e=t("../internals/length-of-array-like"),i=t("../internals/array-species-create"),u=r([].push),a=function(h){var p=h===1,m=h===2,d=h===3,b=h===4,g=h===6,S=h===7,C=h===5||g;return function(I,D,z,P){for(var B,F,W=s(I),q=n(W),A=o(D,z),M=e(q),k=0,y=P||i,w=p?y(I,M):m||S?y(I,0):void 0;M>k;k++)if((C||k in q)&&(F=A(B=q[k],k,W),h))if(p)w[k]=F;else if(F)switch(h){case 3:return!0;case 5:return B;case 6:return k;case 2:u(w,B)}else switch(h){case 4:return!1;case 7:u(w,B)}return g?-1:d||b?b:w}};l.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(t,l,c){var o=t("../internals/to-absolute-index"),r=t("../internals/length-of-array-like"),n=t("../internals/create-property"),s=Array,e=Math.max;l.exports=function(i,u,a){for(var h=r(i),p=o(u,h),m=o(a===void 0?h:a,h),d=s(e(m-p,0)),b=0;p<m;p++,b++)n(d,b,i[p]);return d.length=b,d}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(t,l,c){var o=t("../internals/function-uncurry-this");l.exports=o([].slice)},{"../internals/function-uncurry-this":268}],232:[function(t,l,c){var o=t("../internals/is-array"),r=t("../internals/is-constructor"),n=t("../internals/is-object"),s=t("../internals/well-known-symbol")("species"),e=Array;l.exports=function(i){var u;return o(i)&&(u=i.constructor,(r(u)&&(u===e||o(u.prototype))||n(u)&&(u=u[s])===null)&&(u=void 0)),u===void 0?e:u}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(t,l,c){var o=t("../internals/array-species-constructor");l.exports=function(r,n){return new(o(r))(n===0?0:n)}},{"../internals/array-species-constructor":232}],234:[function(t,l,c){var o=t("../internals/well-known-symbol")("iterator"),r=!1;try{var n=0,s={next:function(){return{done:!!n++}},return:function(){r=!0}};s[o]=function(){return this},Array.from(s,(function(){throw 2}))}catch{}l.exports=function(e,i){try{if(!i&&!r)return!1}catch{return!1}var u=!1;try{var a={};a[o]=function(){return{next:function(){return{done:u=!0}}}},e(a)}catch{}return u}},{"../internals/well-known-symbol":357}],235:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=o({}.toString),n=o("".slice);l.exports=function(s){return n(r(s),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(t,l,c){var o=t("../internals/to-string-tag-support"),r=t("../internals/is-callable"),n=t("../internals/classof-raw"),s=t("../internals/well-known-symbol")("toStringTag"),e=Object,i=n((function(){return arguments})())==="Arguments";l.exports=o?n:function(u){var a,h,p;return u===void 0?"Undefined":u===null?"Null":typeof(h=(function(m,d){try{return m[d]}catch{}})(a=e(u),s))=="string"?h:i?n(a):(p=n(a))==="Object"&&r(a.callee)?"Arguments":p}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(t,l,c){var o=t("../internals/has-own-property"),r=t("../internals/own-keys"),n=t("../internals/object-get-own-property-descriptor"),s=t("../internals/object-define-property");l.exports=function(e,i,u){for(var a=r(i),h=s.f,p=n.f,m=0;m<a.length;m++){var d=a[m];o(e,d)||u&&o(u,d)||h(e,d,p(i,d))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(t,l,c){var o=t("../internals/well-known-symbol")("match");l.exports=function(r){var n=/./;try{"/./"[r](n)}catch{try{return n[o]=!1,"/./"[r](n)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(t,l,c){var o=t("../internals/fails");l.exports=!o((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))},{"../internals/fails":260}],240:[function(t,l,c){l.exports=function(o,r){return{value:o,done:r}}},{}],241:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/object-define-property"),n=t("../internals/create-property-descriptor");l.exports=o?function(s,e,i){return r.f(s,e,n(1,i))}:function(s,e,i){return s[e]=i,s}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(t,l,c){l.exports=function(o,r){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:r}}},{}],243:[function(t,l,c){var o=t("../internals/to-property-key"),r=t("../internals/object-define-property"),n=t("../internals/create-property-descriptor");l.exports=function(s,e,i){var u=o(e);u in s?r.f(s,u,n(0,i)):s[u]=i}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(t,l,c){var o=t("../internals/make-built-in"),r=t("../internals/object-define-property");l.exports=function(n,s,e){return e.get&&o(e.get,s,{getter:!0}),e.set&&o(e.set,s,{setter:!0}),r.f(n,s,e)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(t,l,c){var o=t("../internals/is-callable"),r=t("../internals/object-define-property"),n=t("../internals/make-built-in"),s=t("../internals/define-global-property");l.exports=function(e,i,u,a){a||(a={});var h=a.enumerable,p=a.name!==void 0?a.name:i;if(o(u)&&n(u,p,a),a.global)h?e[i]=u:s(i,u);else{try{a.unsafe?e[i]&&(h=!0):delete e[i]}catch{}h?e[i]=u:r.f(e,i,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(t,l,c){var o=t("../internals/global"),r=Object.defineProperty;l.exports=function(n,s){try{r(o,n,{value:s,configurable:!0,writable:!0})}catch{o[n]=s}return s}},{"../internals/global":274}],247:[function(t,l,c){var o=t("../internals/fails");l.exports=!o((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},{"../internals/fails":260}],248:[function(t,l,c){var o=typeof document=="object"&&document.all,r=o===void 0&&o!==void 0;l.exports={all:o,IS_HTMLDDA:r}},{}],249:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/is-object"),n=o.document,s=r(n)&&r(n.createElement);l.exports=function(e){return s?n.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(t,l,c){var o=t("../internals/engine-is-deno"),r=t("../internals/engine-is-node");l.exports=!o&&!r&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(t,l,c){l.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(t,l,c){var o=t("../internals/engine-user-agent");l.exports=/ipad|iphone|ipod/i.test(o)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(t,l,c){var o=t("../internals/engine-user-agent");l.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(o)},{"../internals/engine-user-agent":256}],254:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/classof-raw");l.exports=r(o.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(t,l,c){var o=t("../internals/engine-user-agent");l.exports=/web0s(?!.*chrome)/i.test(o)},{"../internals/engine-user-agent":256}],256:[function(t,l,c){l.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(t,l,c){var o,r,n=t("../internals/global"),s=t("../internals/engine-user-agent"),e=n.process,i=n.Deno,u=e&&e.versions||i&&i.version,a=u&&u.v8;a&&(r=(o=a.split("."))[0]>0&&o[0]<4?1:+(o[0]+o[1])),!r&&s&&(!(o=s.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=s.match(/Chrome\/(\d+)/))&&(r=+o[1]),l.exports=r},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(t,l,c){l.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/object-get-own-property-descriptor").f,n=t("../internals/create-non-enumerable-property"),s=t("../internals/define-built-in"),e=t("../internals/define-global-property"),i=t("../internals/copy-constructor-properties"),u=t("../internals/is-forced");l.exports=function(a,h){var p,m,d,b,g,S=a.target,C=a.global,I=a.stat;if(p=C?o:I?o[S]||e(S,{}):(o[S]||{}).prototype)for(m in h){if(b=h[m],d=a.dontCallGetSet?(g=r(p,m))&&g.value:p[m],!u(C?m:S+(I?".":"#")+m,a.forced)&&d!==void 0){if(typeof b==typeof d)continue;i(b,d)}(a.sham||d&&d.sham)&&n(b,"sham",!0),s(p,m,b,a)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(t,l,c){l.exports=function(o){try{return!!o()}catch{return!0}}},{}],261:[function(t,l,c){var o=t("../internals/function-bind-native"),r=Function.prototype,n=r.apply,s=r.call;l.exports=typeof Reflect=="object"&&Reflect.apply||(o?s.bind(n):function(){return s.apply(n,arguments)})},{"../internals/function-bind-native":263}],262:[function(t,l,c){var o=t("../internals/function-uncurry-this-clause"),r=t("../internals/a-callable"),n=t("../internals/function-bind-native"),s=o(o.bind);l.exports=function(e,i){return r(e),i===void 0?e:n?s(e,i):function(){return e.apply(i,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(t,l,c){var o=t("../internals/fails");l.exports=!o((function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(t,l,c){var o=t("../internals/function-bind-native"),r=Function.prototype.call;l.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},{"../internals/function-bind-native":263}],265:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/has-own-property"),n=Function.prototype,s=o&&Object.getOwnPropertyDescriptor,e=r(n,"name"),i=e&&(function(){}).name==="something",u=e&&(!o||o&&s(n,"name").configurable);l.exports={EXISTS:e,PROPER:i,CONFIGURABLE:u}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/a-callable");l.exports=function(n,s,e){try{return o(r(Object.getOwnPropertyDescriptor(n,s)[e]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(t,l,c){var o=t("../internals/classof-raw"),r=t("../internals/function-uncurry-this");l.exports=function(n){if(o(n)==="Function")return r(n)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(t,l,c){var o=t("../internals/function-bind-native"),r=Function.prototype,n=r.call,s=o&&r.bind.bind(n,n);l.exports=o?s:function(e){return function(){return n.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/is-callable"),n=function(s){return r(s)?s:void 0};l.exports=function(s,e){return arguments.length<2?n(o[s]):o[s]&&o[s][e]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(t,l,c){var o=t("../internals/classof"),r=t("../internals/get-method"),n=t("../internals/is-null-or-undefined"),s=t("../internals/iterators"),e=t("../internals/well-known-symbol")("iterator");l.exports=function(i){if(!n(i))return r(i,e)||r(i,"@@iterator")||s[o(i)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/a-callable"),n=t("../internals/an-object"),s=t("../internals/try-to-string"),e=t("../internals/get-iterator-method"),i=TypeError;l.exports=function(u,a){var h=arguments.length<2?e(u):a;if(r(h))return n(o(h,u));throw new i(s(u)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/is-array"),n=t("../internals/is-callable"),s=t("../internals/classof-raw"),e=t("../internals/to-string"),i=o([].push);l.exports=function(u){if(n(u))return u;if(r(u)){for(var a=u.length,h=[],p=0;p<a;p++){var m=u[p];typeof m=="string"?i(h,m):typeof m!="number"&&s(m)!=="Number"&&s(m)!=="String"||i(h,e(m))}var d=h.length,b=!0;return function(g,S){if(b)return b=!1,S;if(r(this))return S;for(var C=0;C<d;C++)if(h[C]===g)return S}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(t,l,c){var o=t("../internals/a-callable"),r=t("../internals/is-null-or-undefined");l.exports=function(n,s){var e=n[s];return r(e)?void 0:o(e)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(t,l,c){(function(o){(function(){var r=function(n){return n&&n.Math===Math&&n};l.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof o=="object"&&o)||(function(){return this})()||this||Function("return this")()}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/to-object"),n=o({}.hasOwnProperty);l.exports=Object.hasOwn||function(s,e){return n(r(s),e)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(t,l,c){l.exports={}},{}],277:[function(t,l,c){l.exports=function(o,r){try{arguments.length===1?console.error(o):console.error(o,r)}catch{}}},{}],278:[function(t,l,c){var o=t("../internals/get-built-in");l.exports=o("document","documentElement")},{"../internals/get-built-in":269}],279:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/fails"),n=t("../internals/document-create-element");l.exports=!o&&!r((function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/fails"),n=t("../internals/classof-raw"),s=Object,e=o("".split);l.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(i){return n(i)==="String"?e(i,""):s(i)}:s},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/is-callable"),n=t("../internals/shared-store"),s=o(Function.toString);r(n.inspectSource)||(n.inspectSource=function(e){return s(e)}),l.exports=n.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(t,l,c){var o,r,n,s=t("../internals/weak-map-basic-detection"),e=t("../internals/global"),i=t("../internals/is-object"),u=t("../internals/create-non-enumerable-property"),a=t("../internals/has-own-property"),h=t("../internals/shared-store"),p=t("../internals/shared-key"),m=t("../internals/hidden-keys"),d=e.TypeError,b=e.WeakMap;if(s||h.state){var g=h.state||(h.state=new b);g.get=g.get,g.has=g.has,g.set=g.set,o=function(C,I){if(g.has(C))throw new d("Object already initialized");return I.facade=C,g.set(C,I),I},r=function(C){return g.get(C)||{}},n=function(C){return g.has(C)}}else{var S=p("state");m[S]=!0,o=function(C,I){if(a(C,S))throw new d("Object already initialized");return I.facade=C,u(C,S,I),I},r=function(C){return a(C,S)?C[S]:{}},n=function(C){return a(C,S)}}l.exports={set:o,get:r,has:n,enforce:function(C){return n(C)?r(C):o(C,{})},getterFor:function(C){return function(I){var D;if(!i(I)||(D=r(I)).type!==C)throw new d("Incompatible receiver, "+C+" required");return D}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(t,l,c){var o=t("../internals/well-known-symbol"),r=t("../internals/iterators"),n=o("iterator"),s=Array.prototype;l.exports=function(e){return e!==void 0&&(r.Array===e||s[n]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(t,l,c){var o=t("../internals/classof-raw");l.exports=Array.isArray||function(r){return o(r)==="Array"}},{"../internals/classof-raw":235}],285:[function(t,l,c){var o=t("../internals/document-all"),r=o.all;l.exports=o.IS_HTMLDDA?function(n){return typeof n=="function"||n===r}:function(n){return typeof n=="function"}},{"../internals/document-all":248}],286:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/fails"),n=t("../internals/is-callable"),s=t("../internals/classof"),e=t("../internals/get-built-in"),i=t("../internals/inspect-source"),u=function(){},a=[],h=e("Reflect","construct"),p=/^\s*(?:class|function)\b/,m=o(p.exec),d=!p.test(u),b=function(S){if(!n(S))return!1;try{return h(u,a,S),!0}catch{return!1}},g=function(S){if(!n(S))return!1;switch(s(S)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!m(p,i(S))}catch{return!0}};g.sham=!0,l.exports=!h||r((function(){var S;return b(b.call)||!b(Object)||!b((function(){S=!0}))||S}))?g:b},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(t,l,c){var o=t("../internals/fails"),r=t("../internals/is-callable"),n=/#|\.prototype\./,s=function(h,p){var m=i[e(h)];return m===a||m!==u&&(r(p)?o(p):!!p)},e=s.normalize=function(h){return String(h).replace(n,".").toLowerCase()},i=s.data={},u=s.NATIVE="N",a=s.POLYFILL="P";l.exports=s},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(t,l,c){l.exports=function(o){return o==null}},{}],289:[function(t,l,c){var o=t("../internals/is-callable"),r=t("../internals/document-all"),n=r.all;l.exports=r.IS_HTMLDDA?function(s){return typeof s=="object"?s!==null:o(s)||s===n}:function(s){return typeof s=="object"?s!==null:o(s)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(t,l,c){l.exports=!1},{}],291:[function(t,l,c){var o=t("../internals/is-object"),r=t("../internals/classof-raw"),n=t("../internals/well-known-symbol")("match");l.exports=function(s){var e;return o(s)&&((e=s[n])!==void 0?!!e:r(s)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(t,l,c){var o=t("../internals/get-built-in"),r=t("../internals/is-callable"),n=t("../internals/object-is-prototype-of"),s=t("../internals/use-symbol-as-uid"),e=Object;l.exports=s?function(i){return typeof i=="symbol"}:function(i){var u=o("Symbol");return r(u)&&n(u.prototype,e(i))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(t,l,c){var o=t("../internals/function-bind-context"),r=t("../internals/function-call"),n=t("../internals/an-object"),s=t("../internals/try-to-string"),e=t("../internals/is-array-iterator-method"),i=t("../internals/length-of-array-like"),u=t("../internals/object-is-prototype-of"),a=t("../internals/get-iterator"),h=t("../internals/get-iterator-method"),p=t("../internals/iterator-close"),m=TypeError,d=function(g,S){this.stopped=g,this.result=S},b=d.prototype;l.exports=function(g,S,C){var I,D,z,P,B,F,W,q=C&&C.that,A=!(!C||!C.AS_ENTRIES),M=!(!C||!C.IS_RECORD),k=!(!C||!C.IS_ITERATOR),y=!(!C||!C.INTERRUPTED),w=o(S,q),x=function(T){return I&&p(I,"normal",T),new d(!0,T)},_=function(T){return A?(n(T),y?w(T[0],T[1],x):w(T[0],T[1])):y?w(T,x):w(T)};if(M)I=g.iterator;else if(k)I=g;else{if(!(D=h(g)))throw new m(s(g)+" is not iterable");if(e(D)){for(z=0,P=i(g);P>z;z++)if((B=_(g[z]))&&u(b,B))return B;return new d(!1)}I=a(g,D)}for(F=M?g.next:I.next;!(W=r(F,I)).done;){try{B=_(W.value)}catch(T){p(I,"throw",T)}if(typeof B=="object"&&B&&u(b,B))return B}return new d(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/an-object"),n=t("../internals/get-method");l.exports=function(s,e,i){var u,a;r(s);try{if(!(u=n(s,"return"))){if(e==="throw")throw i;return i}u=o(u,s)}catch(h){a=!0,u=h}if(e==="throw")throw i;if(a)throw u;return r(u),i}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(t,l,c){var o=t("../internals/iterators-core").IteratorPrototype,r=t("../internals/object-create"),n=t("../internals/create-property-descriptor"),s=t("../internals/set-to-string-tag"),e=t("../internals/iterators"),i=function(){return this};l.exports=function(u,a,h,p){var m=a+" Iterator";return u.prototype=r(o,{next:n(+!p,h)}),s(u,m,!1,!0),e[m]=i,u}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-call"),n=t("../internals/is-pure"),s=t("../internals/function-name"),e=t("../internals/is-callable"),i=t("../internals/iterator-create-constructor"),u=t("../internals/object-get-prototype-of"),a=t("../internals/object-set-prototype-of"),h=t("../internals/set-to-string-tag"),p=t("../internals/create-non-enumerable-property"),m=t("../internals/define-built-in"),d=t("../internals/well-known-symbol"),b=t("../internals/iterators"),g=t("../internals/iterators-core"),S=s.PROPER,C=s.CONFIGURABLE,I=g.IteratorPrototype,D=g.BUGGY_SAFARI_ITERATORS,z=d("iterator"),P=function(){return this};l.exports=function(B,F,W,q,A,M,k){i(W,F,q);var y,w,x,_=function(L){if(L===A&&X)return X;if(!D&&L&&L in j)return j[L];switch(L){case"keys":case"values":case"entries":return function(){return new W(this,L)}}return function(){return new W(this)}},T=F+" Iterator",O=!1,j=B.prototype,V=j[z]||j["@@iterator"]||A&&j[A],X=!D&&V||_(A),J=F==="Array"&&j.entries||V;if(J&&(y=u(J.call(new B)))!==Object.prototype&&y.next&&(n||u(y)===I||(a?a(y,I):e(y[z])||m(y,z,P)),h(y,T,!0,!0),n&&(b[T]=P)),S&&A==="values"&&V&&V.name!=="values"&&(!n&&C?p(j,"name","values"):(O=!0,X=function(){return r(V,this)})),A)if(w={values:_("values"),keys:M?X:_("keys"),entries:_("entries")},k)for(x in w)(D||O||!(x in j))&&m(j,x,w[x]);else o({target:F,proto:!0,forced:D||O},w);return n&&!k||j[z]===X||m(j,z,X,{name:A}),b[F]=X,w}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(t,l,c){var o,r,n,s=t("../internals/fails"),e=t("../internals/is-callable"),i=t("../internals/is-object"),u=t("../internals/object-create"),a=t("../internals/object-get-prototype-of"),h=t("../internals/define-built-in"),p=t("../internals/well-known-symbol"),m=t("../internals/is-pure"),d=p("iterator"),b=!1;[].keys&&("next"in(n=[].keys())?(r=a(a(n)))!==Object.prototype&&(o=r):b=!0),!i(o)||s((function(){var g={};return o[d].call(g)!==g}))?o={}:m&&(o=u(o)),e(o[d])||h(o,d,(function(){return this})),l.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:b}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(t,l,c){arguments[4][276][0].apply(c,arguments)},{dup:276}],299:[function(t,l,c){var o=t("../internals/to-length");l.exports=function(r){return o(r.length)}},{"../internals/to-length":343}],300:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/fails"),n=t("../internals/is-callable"),s=t("../internals/has-own-property"),e=t("../internals/descriptors"),i=t("../internals/function-name").CONFIGURABLE,u=t("../internals/inspect-source"),a=t("../internals/internal-state"),h=a.enforce,p=a.get,m=String,d=Object.defineProperty,b=o("".slice),g=o("".replace),S=o([].join),C=e&&!r((function(){return d((function(){}),"length",{value:8}).length!==8})),I=String(String).split("String"),D=l.exports=function(z,P,B){b(m(P),0,7)==="Symbol("&&(P="["+g(m(P),/^Symbol\(([^)]*)\)/,"$1")+"]"),B&&B.getter&&(P="get "+P),B&&B.setter&&(P="set "+P),(!s(z,"name")||i&&z.name!==P)&&(e?d(z,"name",{value:P,configurable:!0}):z.name=P),C&&B&&s(B,"arity")&&z.length!==B.arity&&d(z,"length",{value:B.arity});try{B&&s(B,"constructor")&&B.constructor?e&&d(z,"prototype",{writable:!1}):z.prototype&&(z.prototype=void 0)}catch{}var F=h(z);return s(F,"source")||(F.source=S(I,typeof P=="string"?P:"")),z};Function.prototype.toString=D((function(){return n(this)&&p(this).source||u(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(t,l,c){var o=Math.ceil,r=Math.floor;l.exports=Math.trunc||function(n){var s=+n;return(s>0?r:o)(s)}},{}],302:[function(t,l,c){var o,r,n,s,e,i=t("../internals/global"),u=t("../internals/function-bind-context"),a=t("../internals/object-get-own-property-descriptor").f,h=t("../internals/task").set,p=t("../internals/queue"),m=t("../internals/engine-is-ios"),d=t("../internals/engine-is-ios-pebble"),b=t("../internals/engine-is-webos-webkit"),g=t("../internals/engine-is-node"),S=i.MutationObserver||i.WebKitMutationObserver,C=i.document,I=i.process,D=i.Promise,z=a(i,"queueMicrotask"),P=z&&z.value;if(!P){var B=new p,F=function(){var W,q;for(g&&(W=I.domain)&&W.exit();q=B.get();)try{q()}catch(A){throw B.head&&o(),A}W&&W.enter()};m||g||b||!S||!C?!d&&D&&D.resolve?((s=D.resolve(void 0)).constructor=D,e=u(s.then,s),o=function(){e(F)}):g?o=function(){I.nextTick(F)}:(h=u(h,i),o=function(){h(F)}):(r=!0,n=C.createTextNode(""),new S(F).observe(n,{characterData:!0}),o=function(){n.data=r=!r}),P=function(W){B.head||o(),B.add(W)}}l.exports=P},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(t,l,c){var o=t("../internals/a-callable"),r=TypeError,n=function(s){var e,i;this.promise=new s((function(u,a){if(e!==void 0||i!==void 0)throw new r("Bad Promise constructor");e=u,i=a})),this.resolve=o(e),this.reject=o(i)};l.exports.f=function(s){return new n(s)}},{"../internals/a-callable":222}],304:[function(t,l,c){var o=t("../internals/is-regexp"),r=TypeError;l.exports=function(n){if(o(n))throw new r("The method doesn't accept regular expressions");return n}},{"../internals/is-regexp":291}],305:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/function-uncurry-this"),n=t("../internals/function-call"),s=t("../internals/fails"),e=t("../internals/object-keys"),i=t("../internals/object-get-own-property-symbols"),u=t("../internals/object-property-is-enumerable"),a=t("../internals/to-object"),h=t("../internals/indexed-object"),p=Object.assign,m=Object.defineProperty,d=r([].concat);l.exports=!p||s((function(){if(o&&p({b:1},p(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},g={},S=Symbol("assign detection");return b[S]=7,"abcdefghijklmnopqrst".split("").forEach((function(C){g[C]=C})),p({},b)[S]!==7||e(p({},g)).join("")!=="abcdefghijklmnopqrst"}))?function(b,g){for(var S=a(b),C=arguments.length,I=1,D=i.f,z=u.f;C>I;)for(var P,B=h(arguments[I++]),F=D?d(e(B),D(B)):e(B),W=F.length,q=0;W>q;)P=F[q++],o&&!n(z,B,P)||(S[P]=B[P]);return S}:p},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(t,l,c){var o,r=t("../internals/an-object"),n=t("../internals/object-define-properties"),s=t("../internals/enum-bug-keys"),e=t("../internals/hidden-keys"),i=t("../internals/html"),u=t("../internals/document-create-element"),a=t("../internals/shared-key"),h=a("IE_PROTO"),p=function(){},m=function(g){return"<script>"+g+"<\/script>"},d=function(g){g.write(m("")),g.close();var S=g.parentWindow.Object;return g=null,S},b=function(){try{o=new ActiveXObject("htmlfile")}catch{}var g,S;b=typeof document<"u"?document.domain&&o?d(o):((S=u("iframe")).style.display="none",i.appendChild(S),S.src="javascript:",(g=S.contentWindow.document).open(),g.write(m("document.F=Object")),g.close(),g.F):d(o);for(var C=s.length;C--;)delete b.prototype[s[C]];return b()};e[h]=!0,l.exports=Object.create||function(g,S){var C;return g!==null?(p.prototype=r(g),C=new p,p.prototype=null,C[h]=g):C=b(),S===void 0?C:n.f(C,S)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/v8-prototype-define-bug"),n=t("../internals/object-define-property"),s=t("../internals/an-object"),e=t("../internals/to-indexed-object"),i=t("../internals/object-keys");c.f=o&&!r?Object.defineProperties:function(u,a){s(u);for(var h,p=e(a),m=i(a),d=m.length,b=0;d>b;)n.f(u,h=m[b++],p[h]);return u}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/ie8-dom-define"),n=t("../internals/v8-prototype-define-bug"),s=t("../internals/an-object"),e=t("../internals/to-property-key"),i=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor;c.f=o?n?function(h,p,m){if(s(h),p=e(p),s(m),typeof h=="function"&&p==="prototype"&&"value"in m&&"writable"in m&&!m.writable){var d=a(h,p);d&&d.writable&&(h[p]=m.value,m={configurable:"configurable"in m?m.configurable:d.configurable,enumerable:"enumerable"in m?m.enumerable:d.enumerable,writable:!1})}return u(h,p,m)}:u:function(h,p,m){if(s(h),p=e(p),s(m),r)try{return u(h,p,m)}catch{}if("get"in m||"set"in m)throw new i("Accessors not supported");return"value"in m&&(h[p]=m.value),h}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/function-call"),n=t("../internals/object-property-is-enumerable"),s=t("../internals/create-property-descriptor"),e=t("../internals/to-indexed-object"),i=t("../internals/to-property-key"),u=t("../internals/has-own-property"),a=t("../internals/ie8-dom-define"),h=Object.getOwnPropertyDescriptor;c.f=o?h:function(p,m){if(p=e(p),m=i(m),a)try{return h(p,m)}catch{}if(u(p,m))return s(!r(n.f,p,m),p[m])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(t,l,c){var o=t("../internals/classof-raw"),r=t("../internals/to-indexed-object"),n=t("../internals/object-get-own-property-names").f,s=t("../internals/array-slice-simple"),e=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];l.exports.f=function(i){return e&&o(i)==="Window"?(function(u){try{return n(u)}catch{return s(e)}})(i):n(r(i))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(t,l,c){var o=t("../internals/object-keys-internal"),r=t("../internals/enum-bug-keys").concat("length","prototype");c.f=Object.getOwnPropertyNames||function(n){return o(n,r)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(t,l,c){c.f=Object.getOwnPropertySymbols},{}],313:[function(t,l,c){var o=t("../internals/has-own-property"),r=t("../internals/is-callable"),n=t("../internals/to-object"),s=t("../internals/shared-key"),e=t("../internals/correct-prototype-getter"),i=s("IE_PROTO"),u=Object,a=u.prototype;l.exports=e?u.getPrototypeOf:function(h){var p=n(h);if(o(p,i))return p[i];var m=p.constructor;return r(m)&&p instanceof m?m.prototype:p instanceof u?a:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(t,l,c){var o=t("../internals/function-uncurry-this");l.exports=o({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=t("../internals/has-own-property"),n=t("../internals/to-indexed-object"),s=t("../internals/array-includes").indexOf,e=t("../internals/hidden-keys"),i=o([].push);l.exports=function(u,a){var h,p=n(u),m=0,d=[];for(h in p)!r(e,h)&&r(p,h)&&i(d,h);for(;a.length>m;)r(p,h=a[m++])&&(~s(d,h)||i(d,h));return d}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(t,l,c){var o=t("../internals/object-keys-internal"),r=t("../internals/enum-bug-keys");l.exports=Object.keys||function(n){return o(n,r)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(t,l,c){var o={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!o.call({1:2},1);c.f=n?function(s){var e=r(this,s);return!!e&&e.enumerable}:o},{}],318:[function(t,l,c){var o=t("../internals/function-uncurry-this-accessor"),r=t("../internals/an-object"),n=t("../internals/a-possible-prototype");l.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var s,e=!1,i={};try{(s=o(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch{}return function(u,a){return r(u),n(a),e?s(u,a):u.__proto__=a,u}})():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/fails"),n=t("../internals/function-uncurry-this"),s=t("../internals/object-get-prototype-of"),e=t("../internals/object-keys"),i=t("../internals/to-indexed-object"),u=n(t("../internals/object-property-is-enumerable").f),a=n([].push),h=o&&r((function(){var m=Object.create(null);return m[2]=2,!u(m,2)})),p=function(m){return function(d){for(var b,g=i(d),S=e(g),C=h&&s(g)===null,I=S.length,D=0,z=[];I>D;)b=S[D++],o&&!(C?b in g:u(g,b))||a(z,m?[b,g[b]]:g[b]);return z}};l.exports={entries:p(!0),values:p(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/is-callable"),n=t("../internals/is-object"),s=TypeError;l.exports=function(e,i){var u,a;if(i==="string"&&r(u=e.toString)&&!n(a=o(u,e))||r(u=e.valueOf)&&!n(a=o(u,e))||i!=="string"&&r(u=e.toString)&&!n(a=o(u,e)))return a;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(t,l,c){var o=t("../internals/get-built-in"),r=t("../internals/function-uncurry-this"),n=t("../internals/object-get-own-property-names"),s=t("../internals/object-get-own-property-symbols"),e=t("../internals/an-object"),i=r([].concat);l.exports=o("Reflect","ownKeys")||function(u){var a=n.f(e(u)),h=s.f;return h?i(a,h(u)):a}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(t,l,c){var o=t("../internals/global");l.exports=o},{"../internals/global":274}],323:[function(t,l,c){l.exports=function(o){try{return{error:!1,value:o()}}catch(r){return{error:!0,value:r}}}},{}],324:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/promise-native-constructor"),n=t("../internals/is-callable"),s=t("../internals/is-forced"),e=t("../internals/inspect-source"),i=t("../internals/well-known-symbol"),u=t("../internals/engine-is-browser"),a=t("../internals/engine-is-deno"),h=t("../internals/is-pure"),p=t("../internals/engine-v8-version"),m=r&&r.prototype,d=i("species"),b=!1,g=n(o.PromiseRejectionEvent),S=s("Promise",(function(){var C=e(r),I=C!==String(r);if(!I&&p===66||h&&(!m.catch||!m.finally))return!0;if(!p||p<51||!/native code/.test(C)){var D=new r((function(P){P(1)})),z=function(P){P((function(){}),(function(){}))};if((D.constructor={})[d]=z,!(b=D.then((function(){}))instanceof z))return!0}return!I&&(u||a)&&!g}));l.exports={CONSTRUCTOR:S,REJECTION_EVENT:g,SUBCLASSING:b}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(t,l,c){var o=t("../internals/global");l.exports=o.Promise},{"../internals/global":274}],326:[function(t,l,c){var o=t("../internals/an-object"),r=t("../internals/is-object"),n=t("../internals/new-promise-capability");l.exports=function(s,e){if(o(s),r(e)&&e.constructor===s)return e;var i=n.f(s);return(0,i.resolve)(e),i.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(t,l,c){var o=t("../internals/promise-native-constructor"),r=t("../internals/check-correctness-of-iteration"),n=t("../internals/promise-constructor-detection").CONSTRUCTOR;l.exports=n||!r((function(s){o.all(s).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(t,l,c){var o=function(){this.head=null,this.tail=null};o.prototype={add:function(r){var n={item:r,next:null},s=this.tail;s?s.next=n:this.head=n,this.tail=n},get:function(){var r=this.head;if(r)return(this.head=r.next)===null&&(this.tail=null),r.item}},l.exports=o},{}],329:[function(t,l,c){var o=t("../internals/is-null-or-undefined"),r=TypeError;l.exports=function(n){if(o(n))throw new r("Can't call method on "+n);return n}},{"../internals/is-null-or-undefined":288}],330:[function(t,l,c){var o=t("../internals/get-built-in"),r=t("../internals/define-built-in-accessor"),n=t("../internals/well-known-symbol"),s=t("../internals/descriptors"),e=n("species");l.exports=function(i){var u=o(i);s&&u&&!u[e]&&r(u,e,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(t,l,c){var o=t("../internals/object-define-property").f,r=t("../internals/has-own-property"),n=t("../internals/well-known-symbol")("toStringTag");l.exports=function(s,e,i){s&&!i&&(s=s.prototype),s&&!r(s,n)&&o(s,n,{configurable:!0,value:e})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(t,l,c){var o=t("../internals/shared"),r=t("../internals/uid"),n=o("keys");l.exports=function(s){return n[s]||(n[s]=r(s))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/define-global-property"),n=o["__core-js_shared__"]||r("__core-js_shared__",{});l.exports=n},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(t,l,c){var o=t("../internals/is-pure"),r=t("../internals/shared-store");(l.exports=function(n,s){return r[n]||(r[n]=s!==void 0?s:{})})("versions",[]).push({version:"3.33.0",mode:o?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(t,l,c){var o=t("../internals/an-object"),r=t("../internals/a-constructor"),n=t("../internals/is-null-or-undefined"),s=t("../internals/well-known-symbol")("species");l.exports=function(e,i){var u,a=o(e).constructor;return a===void 0||n(u=o(a)[s])?i:r(u)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(t,l,c){var o=t("../internals/engine-v8-version"),r=t("../internals/fails"),n=t("../internals/global").String;l.exports=!!Object.getOwnPropertySymbols&&!r((function(){var s=Symbol("symbol detection");return!n(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/get-built-in"),n=t("../internals/well-known-symbol"),s=t("../internals/define-built-in");l.exports=function(){var e=r("Symbol"),i=e&&e.prototype,u=i&&i.valueOf,a=n("toPrimitive");i&&!i[a]&&s(i,a,(function(h){return o(u,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(t,l,c){var o=t("../internals/symbol-constructor-detection");l.exports=o&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(t,l,c){var o,r,n,s,e=t("../internals/global"),i=t("../internals/function-apply"),u=t("../internals/function-bind-context"),a=t("../internals/is-callable"),h=t("../internals/has-own-property"),p=t("../internals/fails"),m=t("../internals/html"),d=t("../internals/array-slice"),b=t("../internals/document-create-element"),g=t("../internals/validate-arguments-length"),S=t("../internals/engine-is-ios"),C=t("../internals/engine-is-node"),I=e.setImmediate,D=e.clearImmediate,z=e.process,P=e.Dispatch,B=e.Function,F=e.MessageChannel,W=e.String,q=0,A={};p((function(){o=e.location}));var M=function(x){if(h(A,x)){var _=A[x];delete A[x],_()}},k=function(x){return function(){M(x)}},y=function(x){M(x.data)},w=function(x){e.postMessage(W(x),o.protocol+"//"+o.host)};I&&D||(I=function(x){g(arguments.length,1);var _=a(x)?x:B(x),T=d(arguments,1);return A[++q]=function(){i(_,void 0,T)},r(q),q},D=function(x){delete A[x]},C?r=function(x){z.nextTick(k(x))}:P&&P.now?r=function(x){P.now(k(x))}:F&&!S?(s=(n=new F).port2,n.port1.onmessage=y,r=u(s.postMessage,s)):e.addEventListener&&a(e.postMessage)&&!e.importScripts&&o&&o.protocol!=="file:"&&!p(w)?(r=w,e.addEventListener("message",y,!1)):r="onreadystatechange"in b("script")?function(x){m.appendChild(b("script")).onreadystatechange=function(){m.removeChild(this),M(x)}}:function(x){setTimeout(k(x),0)}),l.exports={set:I,clear:D}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(t,l,c){var o=t("../internals/to-integer-or-infinity"),r=Math.max,n=Math.min;l.exports=function(s,e){var i=o(s);return i<0?r(i+e,0):n(i,e)}},{"../internals/to-integer-or-infinity":342}],341:[function(t,l,c){var o=t("../internals/indexed-object"),r=t("../internals/require-object-coercible");l.exports=function(n){return o(r(n))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(t,l,c){var o=t("../internals/math-trunc");l.exports=function(r){var n=+r;return n!=n||n===0?0:o(n)}},{"../internals/math-trunc":301}],343:[function(t,l,c){var o=t("../internals/to-integer-or-infinity"),r=Math.min;l.exports=function(n){return n>0?r(o(n),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(t,l,c){var o=t("../internals/require-object-coercible"),r=Object;l.exports=function(n){return r(o(n))}},{"../internals/require-object-coercible":329}],345:[function(t,l,c){var o=t("../internals/function-call"),r=t("../internals/is-object"),n=t("../internals/is-symbol"),s=t("../internals/get-method"),e=t("../internals/ordinary-to-primitive"),i=t("../internals/well-known-symbol"),u=TypeError,a=i("toPrimitive");l.exports=function(h,p){if(!r(h)||n(h))return h;var m,d=s(h,a);if(d){if(p===void 0&&(p="default"),m=o(d,h,p),!r(m)||n(m))return m;throw new u("Can't convert object to primitive value")}return p===void 0&&(p="number"),e(h,p)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(t,l,c){var o=t("../internals/to-primitive"),r=t("../internals/is-symbol");l.exports=function(n){var s=o(n,"string");return r(s)?s:s+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(t,l,c){var o={};o[t("../internals/well-known-symbol")("toStringTag")]="z",l.exports=String(o)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(t,l,c){var o=t("../internals/classof"),r=String;l.exports=function(n){if(o(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}},{"../internals/classof":236}],349:[function(t,l,c){var o=String;l.exports=function(r){try{return o(r)}catch{return"Object"}}},{}],350:[function(t,l,c){var o=t("../internals/function-uncurry-this"),r=0,n=Math.random(),s=o(1 .toString);l.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+s(++r+n,36)}},{"../internals/function-uncurry-this":268}],351:[function(t,l,c){var o=t("../internals/symbol-constructor-detection");l.exports=o&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(t,l,c){var o=t("../internals/descriptors"),r=t("../internals/fails");l.exports=o&&r((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(t,l,c){var o=TypeError;l.exports=function(r,n){if(r<n)throw new o("Not enough arguments");return r}},{}],354:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/is-callable"),n=o.WeakMap;l.exports=r(n)&&/native code/.test(String(n))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(t,l,c){var o=t("../internals/path"),r=t("../internals/has-own-property"),n=t("../internals/well-known-symbol-wrapped"),s=t("../internals/object-define-property").f;l.exports=function(e){var i=o.Symbol||(o.Symbol={});r(i,e)||s(i,e,{value:n.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(t,l,c){var o=t("../internals/well-known-symbol");c.f=o},{"../internals/well-known-symbol":357}],357:[function(t,l,c){var o=t("../internals/global"),r=t("../internals/shared"),n=t("../internals/has-own-property"),s=t("../internals/uid"),e=t("../internals/symbol-constructor-detection"),i=t("../internals/use-symbol-as-uid"),u=o.Symbol,a=r("wks"),h=i?u.for||u:u&&u.withoutSetter||s;l.exports=function(p){return n(a,p)||(a[p]=e&&n(u,p)?u[p]:h("Symbol."+p)),a[p]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/array-iteration").findIndex,n=t("../internals/add-to-unscopables"),s=!0;"findIndex"in[]&&Array(1).findIndex((function(){s=!1})),o({target:"Array",proto:!0,forced:s},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/array-iteration").find,n=t("../internals/add-to-unscopables"),s=!0;"find"in[]&&Array(1).find((function(){s=!1})),o({target:"Array",proto:!0,forced:s},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/array-includes").includes,n=t("../internals/fails"),s=t("../internals/add-to-unscopables");o({target:"Array",proto:!0,forced:n((function(){return!Array(1).includes()}))},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(t,l,c){var o=t("../internals/to-indexed-object"),r=t("../internals/add-to-unscopables"),n=t("../internals/iterators"),s=t("../internals/internal-state"),e=t("../internals/object-define-property").f,i=t("../internals/iterator-define"),u=t("../internals/create-iter-result-object"),a=t("../internals/is-pure"),h=t("../internals/descriptors"),p=s.set,m=s.getterFor("Array Iterator");l.exports=i(Array,"Array",(function(b,g){p(this,{type:"Array Iterator",target:o(b),index:0,kind:g})}),(function(){var b=m(this),g=b.target,S=b.kind,C=b.index++;if(!g||C>=g.length)return b.target=void 0,u(void 0,!0);switch(S){case"keys":return u(C,!1);case"values":return u(g[C],!1)}return u([C,g[C]],!1)}),"values");var d=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!a&&h&&d.name!=="values")try{e(d,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/get-built-in"),n=t("../internals/function-apply"),s=t("../internals/function-call"),e=t("../internals/function-uncurry-this"),i=t("../internals/fails"),u=t("../internals/is-callable"),a=t("../internals/is-symbol"),h=t("../internals/array-slice"),p=t("../internals/get-json-replacer-function"),m=t("../internals/symbol-constructor-detection"),d=String,b=r("JSON","stringify"),g=e(/./.exec),S=e("".charAt),C=e("".charCodeAt),I=e("".replace),D=e(1 .toString),z=/[\uD800-\uDFFF]/g,P=/^[\uD800-\uDBFF]$/,B=/^[\uDC00-\uDFFF]$/,F=!m||i((function(){var M=r("Symbol")("stringify detection");return b([M])!=="[null]"||b({a:M})!=="{}"||b(Object(M))!=="{}"})),W=i((function(){return b("\uDF06\uD834")!=='"\\udf06\\ud834"'||b("\uDEAD")!=='"\\udead"'})),q=function(M,k){var y=h(arguments),w=p(k);if(u(w)||M!==void 0&&!a(M))return y[1]=function(x,_){if(u(w)&&(_=s(w,this,d(x),_)),!a(_))return _},n(b,null,y)},A=function(M,k,y){var w=S(y,k-1),x=S(y,k+1);return g(P,M)&&!g(B,x)||g(B,M)&&!g(P,w)?"\\u"+D(C(M,0),16):M};b&&o({target:"JSON",stat:!0,arity:3,forced:F||W},{stringify:function(M,k,y){var w=h(arguments),x=n(F?q:b,null,w);return W&&typeof x=="string"?I(x,z,A):x}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(t,l,c){t("../internals/export")({target:"Number",stat:!0},{isNaN:function(o){return o!=o}})},{"../internals/export":259}],364:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/object-assign");o({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/symbol-constructor-detection"),n=t("../internals/fails"),s=t("../internals/object-get-own-property-symbols"),e=t("../internals/to-object");o({target:"Object",stat:!0,forced:!r||n((function(){s.f(1)}))},{getOwnPropertySymbols:function(i){var u=s.f;return u?u(e(i)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/to-object"),n=t("../internals/object-keys");o({target:"Object",stat:!0,forced:t("../internals/fails")((function(){n(1)}))},{keys:function(s){return n(r(s))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/object-to-array").values;o({target:"Object",stat:!0},{values:function(n){return r(n)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-call"),n=t("../internals/a-callable"),s=t("../internals/new-promise-capability"),e=t("../internals/perform"),i=t("../internals/iterate");o({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{all:function(u){var a=this,h=s.f(a),p=h.resolve,m=h.reject,d=e((function(){var b=n(a.resolve),g=[],S=0,C=1;i(u,(function(I){var D=S++,z=!1;C++,r(b,a,I).then((function(P){z||(z=!0,g[D]=P,--C||p(g))}),m)})),--C||p(g)}));return d.error&&m(d.value),h.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/is-pure"),n=t("../internals/promise-constructor-detection").CONSTRUCTOR,s=t("../internals/promise-native-constructor"),e=t("../internals/get-built-in"),i=t("../internals/is-callable"),u=t("../internals/define-built-in"),a=s&&s.prototype;if(o({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(p){return this.then(void 0,p)}}),!r&&i(s)){var h=e("Promise").prototype.catch;a.catch!==h&&u(a,"catch",h,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(t,l,c){var o,r,n,s=t("../internals/export"),e=t("../internals/is-pure"),i=t("../internals/engine-is-node"),u=t("../internals/global"),a=t("../internals/function-call"),h=t("../internals/define-built-in"),p=t("../internals/object-set-prototype-of"),m=t("../internals/set-to-string-tag"),d=t("../internals/set-species"),b=t("../internals/a-callable"),g=t("../internals/is-callable"),S=t("../internals/is-object"),C=t("../internals/an-instance"),I=t("../internals/species-constructor"),D=t("../internals/task").set,z=t("../internals/microtask"),P=t("../internals/host-report-errors"),B=t("../internals/perform"),F=t("../internals/queue"),W=t("../internals/internal-state"),q=t("../internals/promise-native-constructor"),A=t("../internals/promise-constructor-detection"),M=t("../internals/new-promise-capability"),k=A.CONSTRUCTOR,y=A.REJECTION_EVENT,w=A.SUBCLASSING,x=W.getterFor("Promise"),_=W.set,T=q&&q.prototype,O=q,j=T,V=u.TypeError,X=u.document,J=u.process,L=M.f,G=L,N=!!(X&&X.createEvent&&u.dispatchEvent),R=function(nt){var ut;return!(!S(nt)||!g(ut=nt.then))&&ut},U=function(nt,ut){var ct,ft,mt,gt=ut.value,xt=ut.state===1,Nt=xt?nt.ok:nt.fail,It=nt.resolve,At=nt.reject,Ut=nt.domain;try{Nt?(xt||(ut.rejection===2&&ht(ut),ut.rejection=1),Nt===!0?ct=gt:(Ut&&Ut.enter(),ct=Nt(gt),Ut&&(Ut.exit(),mt=!0)),ct===nt.promise?At(new V("Promise-chain cycle")):(ft=R(ct))?a(ft,ct,It,At):It(ct)):At(gt)}catch(Ht){Ut&&!mt&&Ut.exit(),At(Ht)}},K=function(nt,ut){nt.notified||(nt.notified=!0,z((function(){for(var ct,ft=nt.reactions;ct=ft.get();)U(ct,nt);nt.notified=!1,ut&&!nt.rejection&&Z(nt)})))},rt=function(nt,ut,ct){var ft,mt;N?((ft=X.createEvent("Event")).promise=ut,ft.reason=ct,ft.initEvent(nt,!1,!0),u.dispatchEvent(ft)):ft={promise:ut,reason:ct},!y&&(mt=u["on"+nt])?mt(ft):nt==="unhandledrejection"&&P("Unhandled promise rejection",ct)},Z=function(nt){a(D,u,(function(){var ut,ct=nt.facade,ft=nt.value;if(et(nt)&&(ut=B((function(){i?J.emit("unhandledRejection",ft,ct):rt("unhandledrejection",ct,ft)})),nt.rejection=i||et(nt)?2:1,ut.error))throw ut.value}))},et=function(nt){return nt.rejection!==1&&!nt.parent},ht=function(nt){a(D,u,(function(){var ut=nt.facade;i?J.emit("rejectionHandled",ut):rt("rejectionhandled",ut,nt.value)}))},lt=function(nt,ut,ct){return function(ft){nt(ut,ft,ct)}},Q=function(nt,ut,ct){nt.done||(nt.done=!0,ct&&(nt=ct),nt.value=ut,nt.state=2,K(nt,!0))},ot=function(nt,ut,ct){if(!nt.done){nt.done=!0,ct&&(nt=ct);try{if(nt.facade===ut)throw new V("Promise can't be resolved itself");var ft=R(ut);ft?z((function(){var mt={done:!1};try{a(ft,ut,lt(ot,mt,nt),lt(Q,mt,nt))}catch(gt){Q(mt,gt,nt)}})):(nt.value=ut,nt.state=1,K(nt,!1))}catch(mt){Q({done:!1},mt,nt)}}};if(k&&(j=(O=function(nt){C(this,j),b(nt),a(o,this);var ut=x(this);try{nt(lt(ot,ut),lt(Q,ut))}catch(ct){Q(ut,ct)}}).prototype,(o=function(nt){_(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new F,rejection:!1,state:0,value:void 0})}).prototype=h(j,"then",(function(nt,ut){var ct=x(this),ft=L(I(this,O));return ct.parent=!0,ft.ok=!g(nt)||nt,ft.fail=g(ut)&&ut,ft.domain=i?J.domain:void 0,ct.state===0?ct.reactions.add(ft):z((function(){U(ft,ct)})),ft.promise})),r=function(){var nt=new o,ut=x(nt);this.promise=nt,this.resolve=lt(ot,ut),this.reject=lt(Q,ut)},M.f=L=function(nt){return nt===O||nt===void 0?new r(nt):G(nt)},!e&&g(q)&&T!==Object.prototype)){n=T.then,w||h(T,"then",(function(nt,ut){var ct=this;return new O((function(ft,mt){a(n,ct,ft,mt)})).then(nt,ut)}),{unsafe:!0});try{delete T.constructor}catch{}p&&p(T,j)}s({global:!0,constructor:!0,wrap:!0,forced:k},{Promise:O}),m(O,"Promise",!1,!0),d("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/is-pure"),n=t("../internals/promise-native-constructor"),s=t("../internals/fails"),e=t("../internals/get-built-in"),i=t("../internals/is-callable"),u=t("../internals/species-constructor"),a=t("../internals/promise-resolve"),h=t("../internals/define-built-in"),p=n&&n.prototype;if(o({target:"Promise",proto:!0,real:!0,forced:!!n&&s((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(d){var b=u(this,e("Promise")),g=i(d);return this.then(g?function(S){return a(b,d()).then((function(){return S}))}:d,g?function(S){return a(b,d()).then((function(){throw S}))}:d)}}),!r&&i(n)){var m=e("Promise").prototype.finally;p.finally!==m&&h(p,"finally",m,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(t,l,c){t("../modules/es.promise.constructor"),t("../modules/es.promise.all"),t("../modules/es.promise.catch"),t("../modules/es.promise.race"),t("../modules/es.promise.reject"),t("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-call"),n=t("../internals/a-callable"),s=t("../internals/new-promise-capability"),e=t("../internals/perform"),i=t("../internals/iterate");o({target:"Promise",stat:!0,forced:t("../internals/promise-statics-incorrect-iteration")},{race:function(u){var a=this,h=s.f(a),p=h.reject,m=e((function(){var d=n(a.resolve);i(u,(function(b){r(d,a,b).then(h.resolve,p)}))}));return m.error&&p(m.value),h.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-call"),n=t("../internals/new-promise-capability");o({target:"Promise",stat:!0,forced:t("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(s){var e=n.f(this);return r(e.reject,void 0,s),e.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/get-built-in"),n=t("../internals/is-pure"),s=t("../internals/promise-native-constructor"),e=t("../internals/promise-constructor-detection").CONSTRUCTOR,i=t("../internals/promise-resolve"),u=r("Promise"),a=n&&!e;o({target:"Promise",stat:!0,forced:n||e},{resolve:function(h){return i(a&&this===u?s:this,h)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-uncurry-this"),n=t("../internals/to-absolute-index"),s=RangeError,e=String.fromCharCode,i=String.fromCodePoint,u=r([].join);o({target:"String",stat:!0,arity:1,forced:!!i&&i.length!==1},{fromCodePoint:function(a){for(var h,p=[],m=arguments.length,d=0;m>d;){if(h=+arguments[d++],n(h,1114111)!==h)throw new s(h+" is not a valid code point");p[d]=h<65536?e(h):e(55296+((h-=65536)>>10),h%1024+56320)}return u(p,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/function-uncurry-this"),n=t("../internals/not-a-regexp"),s=t("../internals/require-object-coercible"),e=t("../internals/to-string"),i=t("../internals/correct-is-regexp-logic"),u=r("".indexOf);o({target:"String",proto:!0,forced:!i("includes")},{includes:function(a){return!!~u(e(s(this)),e(n(a)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(t,l,c){t("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/global"),n=t("../internals/function-call"),s=t("../internals/function-uncurry-this"),e=t("../internals/is-pure"),i=t("../internals/descriptors"),u=t("../internals/symbol-constructor-detection"),a=t("../internals/fails"),h=t("../internals/has-own-property"),p=t("../internals/object-is-prototype-of"),m=t("../internals/an-object"),d=t("../internals/to-indexed-object"),b=t("../internals/to-property-key"),g=t("../internals/to-string"),S=t("../internals/create-property-descriptor"),C=t("../internals/object-create"),I=t("../internals/object-keys"),D=t("../internals/object-get-own-property-names"),z=t("../internals/object-get-own-property-names-external"),P=t("../internals/object-get-own-property-symbols"),B=t("../internals/object-get-own-property-descriptor"),F=t("../internals/object-define-property"),W=t("../internals/object-define-properties"),q=t("../internals/object-property-is-enumerable"),A=t("../internals/define-built-in"),M=t("../internals/define-built-in-accessor"),k=t("../internals/shared"),y=t("../internals/shared-key"),w=t("../internals/hidden-keys"),x=t("../internals/uid"),_=t("../internals/well-known-symbol"),T=t("../internals/well-known-symbol-wrapped"),O=t("../internals/well-known-symbol-define"),j=t("../internals/symbol-define-to-primitive"),V=t("../internals/set-to-string-tag"),X=t("../internals/internal-state"),J=t("../internals/array-iteration").forEach,L=y("hidden"),G=X.set,N=X.getterFor("Symbol"),R=Object.prototype,U=r.Symbol,K=U&&U.prototype,rt=r.RangeError,Z=r.TypeError,et=r.QObject,ht=B.f,lt=F.f,Q=z.f,ot=q.f,nt=s([].push),ut=k("symbols"),ct=k("op-symbols"),ft=k("wks"),mt=!et||!et.prototype||!et.prototype.findChild,gt=function(jt,Ct,$t){var qt=ht(R,Ct);qt&&delete R[Ct],lt(jt,Ct,$t),qt&&jt!==R&<(R,Ct,qt)},xt=i&&a((function(){return C(lt({},"a",{get:function(){return lt(this,"a",{value:7}).a}})).a!==7}))?gt:lt,Nt=function(jt,Ct){var $t=ut[jt]=C(K);return G($t,{type:"Symbol",tag:jt,description:Ct}),i||($t.description=Ct),$t},It=function(jt,Ct,$t){jt===R&&It(ct,Ct,$t),m(jt);var qt=b(Ct);return m($t),h(ut,qt)?($t.enumerable?(h(jt,L)&&jt[L][qt]&&(jt[L][qt]=!1),$t=C($t,{enumerable:S(0,!1)})):(h(jt,L)||lt(jt,L,S(1,{})),jt[L][qt]=!0),xt(jt,qt,$t)):lt(jt,qt,$t)},At=function(jt,Ct){m(jt);var $t=d(Ct),qt=I($t).concat(Xt($t));return J(qt,(function(Dt){i&&!n(Ut,$t,Dt)||It(jt,Dt,$t[Dt])})),jt},Ut=function(jt){var Ct=b(jt),$t=n(ot,this,Ct);return!(this===R&&h(ut,Ct)&&!h(ct,Ct))&&(!($t||!h(this,Ct)||!h(ut,Ct)||h(this,L)&&this[L][Ct])||$t)},Ht=function(jt,Ct){var $t=d(jt),qt=b(Ct);if($t!==R||!h(ut,qt)||h(ct,qt)){var Dt=ht($t,qt);return!Dt||!h(ut,qt)||h($t,L)&&$t[L][qt]||(Dt.enumerable=!0),Dt}},zt=function(jt){var Ct=Q(d(jt)),$t=[];return J(Ct,(function(qt){h(ut,qt)||h(w,qt)||nt($t,qt)})),$t},Xt=function(jt){var Ct=jt===R,$t=Q(Ct?ct:d(jt)),qt=[];return J($t,(function(Dt){!h(ut,Dt)||Ct&&!h(R,Dt)||nt(qt,ut[Dt])})),qt};u||(A(K=(U=function(){if(p(K,this))throw new Z("Symbol is not a constructor");var jt=arguments.length&&arguments[0]!==void 0?g(arguments[0]):void 0,Ct=x(jt),$t=function(qt){this===R&&n($t,ct,qt),h(this,L)&&h(this[L],Ct)&&(this[L][Ct]=!1);var Dt=S(1,qt);try{xt(this,Ct,Dt)}catch(fe){if(!(fe instanceof rt))throw fe;gt(this,Ct,Dt)}};return i&&mt&&xt(R,Ct,{configurable:!0,set:$t}),Nt(Ct,jt)}).prototype,"toString",(function(){return N(this).tag})),A(U,"withoutSetter",(function(jt){return Nt(x(jt),jt)})),q.f=Ut,F.f=It,W.f=At,B.f=Ht,D.f=z.f=zt,P.f=Xt,T.f=function(jt){return Nt(_(jt),jt)},i&&(M(K,"description",{configurable:!0,get:function(){return N(this).description}}),e||A(R,"propertyIsEnumerable",Ut,{unsafe:!0}))),o({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:U}),J(I(ft),(function(jt){O(jt)})),o({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){mt=!0},useSimple:function(){mt=!1}}),o({target:"Object",stat:!0,forced:!u,sham:!i},{create:function(jt,Ct){return Ct===void 0?C(jt):At(C(jt),Ct)},defineProperty:It,defineProperties:At,getOwnPropertyDescriptor:Ht}),o({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:zt}),j(),V(U,"Symbol"),w[L]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/get-built-in"),n=t("../internals/has-own-property"),s=t("../internals/to-string"),e=t("../internals/shared"),i=t("../internals/symbol-registry-detection"),u=e("string-to-symbol-registry"),a=e("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!i},{for:function(h){var p=s(h);if(n(u,p))return u[p];var m=r("Symbol")(p);return u[p]=m,a[m]=p,m}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(t,l,c){t("../modules/es.symbol.constructor"),t("../modules/es.symbol.for"),t("../modules/es.symbol.key-for"),t("../modules/es.json.stringify"),t("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(t,l,c){var o=t("../internals/export"),r=t("../internals/has-own-property"),n=t("../internals/is-symbol"),s=t("../internals/try-to-string"),e=t("../internals/shared"),i=t("../internals/symbol-registry-detection"),u=e("symbol-to-string-registry");o({target:"Symbol",stat:!0,forced:!i},{keyFor:function(a){if(!n(a))throw new TypeError(s(a)+" is not a symbol");if(r(u,a))return u[a]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(t,l,c){function o(r){return Object.prototype.toString.call(r)}c.isArray=function(r){return Array.isArray?Array.isArray(r):o(r)==="[object Array]"},c.isBoolean=function(r){return typeof r=="boolean"},c.isNull=function(r){return r===null},c.isNullOrUndefined=function(r){return r==null},c.isNumber=function(r){return typeof r=="number"},c.isString=function(r){return typeof r=="string"},c.isSymbol=function(r){return typeof r=="symbol"},c.isUndefined=function(r){return r===void 0},c.isRegExp=function(r){return o(r)==="[object RegExp]"},c.isObject=function(r){return typeof r=="object"&&r!==null},c.isDate=function(r){return o(r)==="[object Date]"},c.isError=function(r){return o(r)==="[object Error]"||r instanceof Error},c.isFunction=function(r){return typeof r=="function"},c.isPrimitive=function(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||r===void 0},c.isBuffer=t("buffer").Buffer.isBuffer},{buffer:220}],384:[function(t,l,c){(function(o){(function(){var r=t("elliptic"),n=t("bn.js");l.exports=function(u){return new e(u)};var s={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function e(u){this.curveType=s[u],this.curveType||(this.curveType={name:u}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function i(u,a,h){Array.isArray(u)||(u=u.toArray());var p=new o(u);if(h&&p.length<h){var m=new o(h-p.length);m.fill(0),p=o.concat([m,p])}return a?p.toString(a):p}s.p224=s.secp224r1,s.p256=s.secp256r1=s.prime256v1,s.p192=s.secp192r1=s.prime192v1,s.p384=s.secp384r1,s.p521=s.secp521r1,e.prototype.generateKeys=function(u,a){return this.keys=this.curve.genKeyPair(),this.getPublicKey(u,a)},e.prototype.computeSecret=function(u,a,h){return a=a||"utf8",o.isBuffer(u)||(u=new o(u,a)),i(this.curve.keyFromPublic(u).getPublic().mul(this.keys.getPrivate()).getX(),h,this.curveType.byteLength)},e.prototype.getPublicKey=function(u,a){var h=this.keys.getPublic(a==="compressed",!0);return a==="hybrid"&&(h[h.length-1]%2?h[0]=7:h[0]=6),i(h,u)},e.prototype.getPrivateKey=function(u){return i(this.keys.getPrivate(),u)},e.prototype.setPublicKey=function(u,a){return a=a||"utf8",o.isBuffer(u)||(u=new o(u,a)),this.keys._importPublic(u),this},e.prototype.setPrivateKey=function(u,a){a=a||"utf8",o.isBuffer(u)||(u=new o(u,a));var h=new n(u);return h=h.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(h),this}}).call(this)}).call(this,t("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(t,l,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],386:[function(t,l,c){var o=t("inherits"),r=t("md5.js"),n=t("ripemd160"),s=t("sha.js"),e=t("cipher-base");function i(u){e.call(this,"digest"),this._hash=u}o(i,e),i.prototype._update=function(u){this._hash.update(u)},i.prototype._final=function(){return this._hash.digest()},l.exports=function(u){return(u=u.toLowerCase())==="md5"?new r:u==="rmd160"||u==="ripemd160"?new n:new i(s(u))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(t,l,c){var o=t("md5.js");l.exports=function(r){return new o().update(r).digest()}},{"md5.js":450}],388:[function(t,l,c){var o=t("inherits"),r=t("./legacy"),n=t("cipher-base"),s=t("safe-buffer").Buffer,e=t("create-hash/md5"),i=t("ripemd160"),u=t("sha.js"),a=s.alloc(128);function h(p,m){n.call(this,"digest"),typeof m=="string"&&(m=s.from(m));var d=p==="sha512"||p==="sha384"?128:64;this._alg=p,this._key=m,m.length>d?m=(p==="rmd160"?new i:u(p)).update(m).digest():m.length<d&&(m=s.concat([m,a],d));for(var b=this._ipad=s.allocUnsafe(d),g=this._opad=s.allocUnsafe(d),S=0;S<d;S++)b[S]=54^m[S],g[S]=92^m[S];this._hash=p==="rmd160"?new i:u(p),this._hash.update(b)}o(h,n),h.prototype._update=function(p){this._hash.update(p)},h.prototype._final=function(){var p=this._hash.digest();return(this._alg==="rmd160"?new i:u(this._alg)).update(this._opad).update(p).digest()},l.exports=function(p,m){return(p=p.toLowerCase())==="rmd160"||p==="ripemd160"?new h("rmd160",m):p==="md5"?new r(e,m):new h(p,m)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(t,l,c){var o=t("inherits"),r=t("safe-buffer").Buffer,n=t("cipher-base"),s=r.alloc(128);function e(i,u){n.call(this,"digest"),typeof u=="string"&&(u=r.from(u)),this._alg=i,this._key=u,u.length>64?u=i(u):u.length<64&&(u=r.concat([u,s],64));for(var a=this._ipad=r.allocUnsafe(64),h=this._opad=r.allocUnsafe(64),p=0;p<64;p++)a[p]=54^u[p],h[p]=92^u[p];this._hash=[a]}o(e,n),e.prototype._update=function(i){this._hash.push(i)},e.prototype._final=function(){var i=this._alg(r.concat(this._hash));return this._alg(r.concat([this._opad,i]))},l.exports=e},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(t,l,c){c.randomBytes=c.rng=c.pseudoRandomBytes=c.prng=t("randombytes"),c.createHash=c.Hash=t("create-hash"),c.createHmac=c.Hmac=t("create-hmac");var o=t("browserify-sign/algos"),r=Object.keys(o),n=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r);c.getHashes=function(){return n};var s=t("pbkdf2");c.pbkdf2=s.pbkdf2,c.pbkdf2Sync=s.pbkdf2Sync;var e=t("browserify-cipher");c.Cipher=e.Cipher,c.createCipher=e.createCipher,c.Cipheriv=e.Cipheriv,c.createCipheriv=e.createCipheriv,c.Decipher=e.Decipher,c.createDecipher=e.createDecipher,c.Decipheriv=e.Decipheriv,c.createDecipheriv=e.createDecipheriv,c.getCiphers=e.getCiphers,c.listCiphers=e.listCiphers;var i=t("diffie-hellman");c.DiffieHellmanGroup=i.DiffieHellmanGroup,c.createDiffieHellmanGroup=i.createDiffieHellmanGroup,c.getDiffieHellman=i.getDiffieHellman,c.createDiffieHellman=i.createDiffieHellman,c.DiffieHellman=i.DiffieHellman;var u=t("browserify-sign");c.createSign=u.createSign,c.Sign=u.Sign,c.createVerify=u.createVerify,c.Verify=u.Verify,c.createECDH=t("create-ecdh");var a=t("public-encrypt");c.publicEncrypt=a.publicEncrypt,c.privateEncrypt=a.privateEncrypt,c.publicDecrypt=a.publicDecrypt,c.privateDecrypt=a.privateDecrypt;var h=t("randomfill");c.randomFill=h.randomFill,c.randomFillSync=h.randomFillSync,c.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
264
264
|
`))},c.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(t,l,c){(function(o,r){typeof c=="object"&&l!==void 0?l.exports=r():(o=typeof globalThis<"u"?globalThis:o||self).dayjs=r()})(void 0,(function(){var o=6e4,r=36e5,n="millisecond",s="second",e="minute",i="hour",u="day",a="week",h="month",p="quarter",m="year",d="date",b="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(y){var w=["th","st","nd","rd"],x=y%100;return"["+y+(w[(x-20)%10]||w[x]||w[0])+"]"}},I=function(y,w,x){var _=String(y);return!_||_.length>=w?y:""+Array(w+1-_.length).join(x)+y},D={s:I,z:function(y){var w=-y.utcOffset(),x=Math.abs(w),_=Math.floor(x/60),T=x%60;return(w<=0?"+":"-")+I(_,2,"0")+":"+I(T,2,"0")},m:function y(w,x){if(w.date()<x.date())return-y(x,w);var _=12*(x.year()-w.year())+(x.month()-w.month()),T=w.clone().add(_,h),O=x-T<0,j=w.clone().add(_+(O?-1:1),h);return+(-(_+(x-T)/(O?T-j:j-T))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:h,y:m,w:a,d:u,D:d,h:i,m:e,s,ms:n,Q:p}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},z="en",P={};P[z]=C;var B="$isDayjsObject",F=function(y){return y instanceof M||!(!y||!y[B])},W=function y(w,x,_){var T;if(!w)return z;if(typeof w=="string"){var O=w.toLowerCase();P[O]&&(T=O),x&&(P[O]=x,T=O);var j=w.split("-");if(!T&&j.length>1)return y(j[0])}else{var V=w.name;P[V]=w,T=V}return!_&&T&&(z=T),T||!_&&z},q=function(y,w){if(F(y))return y.clone();var x=typeof w=="object"?w:{};return x.date=y,x.args=arguments,new M(x)},A=D;A.l=W,A.i=F,A.w=function(y,w){return q(y,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var M=(function(){function y(x){this.$L=W(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[B]=!0}var w=y.prototype;return w.parse=function(x){this.$d=(function(_){var T=_.date,O=_.utc;if(T===null)return new Date(NaN);if(A.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var j=T.match(g);if(j){var V=j[2]-1||0,X=(j[7]||"0").substring(0,3);return O?new Date(Date.UTC(j[1],V,j[3]||1,j[4]||0,j[5]||0,j[6]||0,X)):new Date(j[1],V,j[3]||1,j[4]||0,j[5]||0,j[6]||0,X)}}return new Date(T)})(x),this.init()},w.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},w.$utils=function(){return A},w.isValid=function(){return this.$d.toString()!==b},w.isSame=function(x,_){var T=q(x);return this.startOf(_)<=T&&T<=this.endOf(_)},w.isAfter=function(x,_){return q(x)<this.startOf(_)},w.isBefore=function(x,_){return this.endOf(_)<q(x)},w.$g=function(x,_,T){return A.u(x)?this[_]:this.set(T,x)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(x,_){var T=this,O=!!A.u(_)||_,j=A.p(x),V=function(K,rt){var Z=A.w(T.$u?Date.UTC(T.$y,rt,K):new Date(T.$y,rt,K),T);return O?Z:Z.endOf(u)},X=function(K,rt){return A.w(T.toDate()[K].apply(T.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(rt)),T)},J=this.$W,L=this.$M,G=this.$D,N="set"+(this.$u?"UTC":"");switch(j){case m:return O?V(1,0):V(31,11);case h:return O?V(1,L):V(0,L+1);case a:var R=this.$locale().weekStart||0,U=(J<R?J+7:J)-R;return V(O?G-U:G+(6-U),L);case u:case d:return X(N+"Hours",0);case i:return X(N+"Minutes",1);case e:return X(N+"Seconds",2);case s:return X(N+"Milliseconds",3);default:return this.clone()}},w.endOf=function(x){return this.startOf(x,!1)},w.$set=function(x,_){var T,O=A.p(x),j="set"+(this.$u?"UTC":""),V=(T={},T[u]=j+"Date",T[d]=j+"Date",T[h]=j+"Month",T[m]=j+"FullYear",T[i]=j+"Hours",T[e]=j+"Minutes",T[s]=j+"Seconds",T[n]=j+"Milliseconds",T)[O],X=O===u?this.$D+(_-this.$W):_;if(O===h||O===m){var J=this.clone().set(d,1);J.$d[V](X),J.init(),this.$d=J.set(d,Math.min(this.$D,J.daysInMonth())).$d}else V&&this.$d[V](X);return this.init(),this},w.set=function(x,_){return this.clone().$set(x,_)},w.get=function(x){return this[A.p(x)]()},w.add=function(x,_){var T,O=this;x=Number(x);var j=A.p(_),V=function(L){var G=q(O);return A.w(G.date(G.date()+Math.round(L*x)),O)};if(j===h)return this.set(h,this.$M+x);if(j===m)return this.set(m,this.$y+x);if(j===u)return V(1);if(j===a)return V(7);var X=(T={},T[e]=o,T[i]=r,T[s]=1e3,T)[j]||1,J=this.$d.getTime()+x*X;return A.w(J,this)},w.subtract=function(x,_){return this.add(-1*x,_)},w.format=function(x){var _=this,T=this.$locale();if(!this.isValid())return T.invalidDate||b;var O=x||"YYYY-MM-DDTHH:mm:ssZ",j=A.z(this),V=this.$H,X=this.$m,J=this.$M,L=T.weekdays,G=T.months,N=T.meridiem,R=function(rt,Z,et,ht){return rt&&(rt[Z]||rt(_,O))||et[Z].slice(0,ht)},U=function(rt){return A.s(V%12||12,rt,"0")},K=N||function(rt,Z,et){var ht=rt<12?"AM":"PM";return et?ht.toLowerCase():ht};return O.replace(S,(function(rt,Z){return Z||(function(et){switch(et){case"YY":return String(_.$y).slice(-2);case"YYYY":return A.s(_.$y,4,"0");case"M":return J+1;case"MM":return A.s(J+1,2,"0");case"MMM":return R(T.monthsShort,J,G,3);case"MMMM":return R(G,J);case"D":return _.$D;case"DD":return A.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return R(T.weekdaysMin,_.$W,L,2);case"ddd":return R(T.weekdaysShort,_.$W,L,3);case"dddd":return L[_.$W];case"H":return String(V);case"HH":return A.s(V,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return K(V,X,!0);case"A":return K(V,X,!1);case"m":return String(X);case"mm":return A.s(X,2,"0");case"s":return String(_.$s);case"ss":return A.s(_.$s,2,"0");case"SSS":return A.s(_.$ms,3,"0");case"Z":return j}return null})(rt)||j.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(x,_,T){var O,j=this,V=A.p(_),X=q(x),J=(X.utcOffset()-this.utcOffset())*o,L=this-X,G=function(){return A.m(j,X)};switch(V){case m:O=G()/12;break;case h:O=G();break;case p:O=G()/3;break;case a:O=(L-J)/6048e5;break;case u:O=(L-J)/864e5;break;case i:O=L/r;break;case e:O=L/o;break;case s:O=L/1e3;break;default:O=L}return T?O:A.a(O)},w.daysInMonth=function(){return this.endOf(h).$D},w.$locale=function(){return P[this.$L]},w.locale=function(x,_){if(!x)return this.$L;var T=this.clone(),O=W(x,_,!0);return O&&(T.$L=O),T},w.clone=function(){return A.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},y})(),k=M.prototype;return q.prototype=k,[["$ms",n],["$s",s],["$m",e],["$H",i],["$W",u],["$M",h],["$y",m],["$D",d]].forEach((function(y){k[y[1]]=function(w){return this.$g(w,y[0],y[1])}})),q.extend=function(y,w){return y.$i||(y(w,M,q),y.$i=!0),q},q.locale=W,q.isDayjs=F,q.unix=function(y){return q(1e3*y)},q.en=P[z],q.Ls=P,q.p={},q}))},{}],392:[function(t,l,c){(function(o,r){typeof c=="object"&&l!==void 0?l.exports=r():(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_customParseFormat=r()})(void 0,(function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,s=/\d\d?/,e=/\d*[^-_:/,()\s\d]+/,i={},u=function(g){return(g=+g)+(g>68?1900:2e3)},a=function(g){return function(S){this[g]=+S}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var C=S.match(/([+-]|\d\d)/g),I=60*C[1]+(+C[2]||0);return I===0?0:C[0]==="+"?-I:I})(g)}],p=function(g){var S=i[g];return S&&(S.indexOf?S:S.s.concat(S.f))},m=function(g,S){var C,I=i.meridiem;if(I){for(var D=1;D<=24;D+=1)if(g.indexOf(I(D,0,S))>-1){C=D>12;break}}else C=g===(S?"pm":"PM");return C},d={A:[e,function(g){this.afternoon=m(g,!1)}],a:[e,function(g){this.afternoon=m(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[n,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,a("seconds")],ss:[s,a("seconds")],m:[s,a("minutes")],mm:[s,a("minutes")],H:[s,a("hours")],h:[s,a("hours")],HH:[s,a("hours")],hh:[s,a("hours")],D:[s,a("day")],DD:[n,a("day")],Do:[e,function(g){var S=i.ordinal,C=g.match(/\d+/);if(this.day=C[0],S)for(var I=1;I<=31;I+=1)S(I).replace(/\[|\]/g,"")===g&&(this.day=I)}],M:[s,a("month")],MM:[n,a("month")],MMM:[e,function(g){var S=p("months"),C=(p("monthsShort")||S.map((function(I){return I.slice(0,3)}))).indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[e,function(g){var S=p("months").indexOf(g)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,a("year")],YY:[n,function(g){this.year=u(g)}],YYYY:[/\d{4}/,a("year")],Z:h,ZZ:h};function b(g){var S,C;S=g,C=i&&i.formats;for(var I=(g=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(q,A,M){var k=M&&M.toUpperCase();return A||C[M]||o[M]||C[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(y,w,x){return w||x.slice(1)}))}))).match(r),D=I.length,z=0;z<D;z+=1){var P=I[z],B=d[P],F=B&&B[0],W=B&&B[1];I[z]=W?{regex:F,parser:W}:P.replace(/^\[|\]$/g,"")}return function(q){for(var A={},M=0,k=0;M<D;M+=1){var y=I[M];if(typeof y=="string")k+=y.length;else{var w=y.regex,x=y.parser,_=q.slice(k),T=w.exec(_)[0];x.call(A,T),q=q.replace(T,"")}}return(function(O){var j=O.afternoon;if(j!==void 0){var V=O.hours;j?V<12&&(O.hours+=12):V===12&&(O.hours=0),delete O.afternoon}})(A),A}}return function(g,S,C){C.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var I=S.prototype,D=I.parse;I.parse=function(z){var P=z.date,B=z.utc,F=z.args;this.$u=B;var W=F[1];if(typeof W=="string"){var q=F[2]===!0,A=F[3]===!0,M=q||A,k=F[2];A&&(k=F[2]),i=this.$locale(),!q&&k&&(i=C.Ls[k]),this.$d=(function(_,T,O){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*_);var j=b(T)(_),V=j.year,X=j.month,J=j.day,L=j.hours,G=j.minutes,N=j.seconds,R=j.milliseconds,U=j.zone,K=new Date,rt=J||(V||X?1:K.getDate()),Z=V||K.getFullYear(),et=0;V&&!X||(et=X>0?X-1:K.getMonth());var ht=L||0,lt=G||0,Q=N||0,ot=R||0;return U?new Date(Date.UTC(Z,et,rt,ht,lt,Q,ot+60*U.offset*1e3)):O?new Date(Date.UTC(Z,et,rt,ht,lt,Q,ot)):new Date(Z,et,rt,ht,lt,Q,ot)}catch{return new Date("")}})(P,W,B),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),M&&P!=this.format(W)&&(this.$d=new Date("")),i={}}else if(W instanceof Array)for(var y=W.length,w=1;w<=y;w+=1){F[1]=W[w-1];var x=C.apply(this,F);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}w===y&&(this.$d=new Date(""))}else D.call(this,z)}}}))},{}],393:[function(t,l,c){(function(o,r){typeof c=="object"&&l!==void 0?l.exports=r():(o=typeof globalThis<"u"?globalThis:o||self).dayjs_plugin_utc=r()})(void 0,(function(){var o="minute",r=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(s,e,i){var u=e.prototype;i.utc=function(g){var S={date:g,utc:!0,args:arguments};return new e(S)},u.utc=function(g){var S=i(this.toDate(),{locale:this.$L,utc:!0});return g?S.add(this.utcOffset(),o):S},u.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=u.parse;u.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),a.call(this,g)};var h=u.init;u.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else h.call(this)};var p=u.utcOffset;u.utcOffset=function(g,S){var C=this.$utils().u;if(C(g))return this.$u?0:C(this.$offset)?p.call(this):this.$offset;if(typeof g=="string"&&(g=(function(P){P===void 0&&(P="");var B=P.match(r);if(!B)return null;var F=(""+B[0]).match(n)||["-",0,0],W=F[0],q=60*+F[1]+ +F[2];return q===0?0:W==="+"?q:-q})(g))===null)return this;var I=Math.abs(g)<=16?60*g:g,D=this;if(S)return D.$offset=I,D.$u=g===0,D;if(g!==0){var z=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(D=this.local().add(I+z,o)).$offset=I,D.$x.$localOffset=z}else D=this.utc();return D};var m=u.format;u.format=function(g){var S=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,S)},u.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var d=u.toDate;u.toDate=function(g){return g==="s"&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var b=u.diff;u.diff=function(g,S,C){if(g&&this.$u===g.$u)return b.call(this,g,S,C);var I=this.local(),D=i(g).local();return b.call(I,D,S,C)}}}))},{}],394:[function(t,l,c){c.utils=t("./des/utils"),c.Cipher=t("./des/cipher"),c.DES=t("./des/des"),c.CBC=t("./des/cbc"),c.EDE=t("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(t,l,c){var o=t("minimalistic-assert"),r=t("inherits"),n={};function s(e){o.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var i=0;i<this.iv.length;i++)this.iv[i]=e[i]}c.instantiate=function(e){function i(p){e.call(this,p),this._cbcInit()}r(i,e);for(var u=Object.keys(n),a=0;a<u.length;a++){var h=u[a];i.prototype[h]=n[h]}return i.create=function(p){return new i(p)},i},n._cbcInit=function(){var e=new s(this.options.iv);this._cbcState=e},n._update=function(e,i,u,a){var h=this._cbcState,p=this.constructor.super_.prototype,m=h.iv;if(this.type==="encrypt"){for(var d=0;d<this.blockSize;d++)m[d]^=e[i+d];for(p._update.call(this,m,0,u,a),d=0;d<this.blockSize;d++)m[d]=u[a+d]}else{for(p._update.call(this,e,i,u,a),d=0;d<this.blockSize;d++)u[a+d]^=m[d];for(d=0;d<this.blockSize;d++)m[d]=e[i+d]}}},{inherits:440,"minimalistic-assert":453}],396:[function(t,l,c){var o=t("minimalistic-assert");function r(n){this.options=n,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=n.padding!==!1}l.exports=r,r.prototype._init=function(){},r.prototype.update=function(n){return n.length===0?[]:this.type==="decrypt"?this._updateDecrypt(n):this._updateEncrypt(n)},r.prototype._buffer=function(n,s){for(var e=Math.min(this.buffer.length-this.bufferOff,n.length-s),i=0;i<e;i++)this.buffer[this.bufferOff+i]=n[s+i];return this.bufferOff+=e,e},r.prototype._flushBuffer=function(n,s){return this._update(this.buffer,0,n,s),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(n){var s=0,e=0,i=(this.bufferOff+n.length)/this.blockSize|0,u=new Array(i*this.blockSize);this.bufferOff!==0&&(s+=this._buffer(n,s),this.bufferOff===this.buffer.length&&(e+=this._flushBuffer(u,e)));for(var a=n.length-(n.length-s)%this.blockSize;s<a;s+=this.blockSize)this._update(n,s,u,e),e+=this.blockSize;for(;s<n.length;s++,this.bufferOff++)this.buffer[this.bufferOff]=n[s];return u},r.prototype._updateDecrypt=function(n){for(var s=0,e=0,i=Math.ceil((this.bufferOff+n.length)/this.blockSize)-1,u=new Array(i*this.blockSize);i>0;i--)s+=this._buffer(n,s),e+=this._flushBuffer(u,e);return s+=this._buffer(n,s),u},r.prototype.final=function(n){var s,e;return n&&(s=this.update(n)),e=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),s?s.concat(e):e},r.prototype._pad=function(n,s){if(s===0)return!1;for(;s<n.length;)n[s++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var n=new Array(this.blockSize);return this._update(this.buffer,0,n,0),n},r.prototype._unpad=function(n){return n},r.prototype._finalDecrypt=function(){o.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var n=new Array(this.blockSize);return this._flushBuffer(n,0),this._unpad(n)}},{"minimalistic-assert":453}],397:[function(t,l,c){var o=t("minimalistic-assert"),r=t("inherits"),n=t("./utils"),s=t("./cipher");function e(){this.tmp=new Array(2),this.keys=null}function i(a){s.call(this,a);var h=new e;this._desState=h,this.deriveKeys(h,a.key)}r(i,s),l.exports=i,i.create=function(a){return new i(a)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];i.prototype.deriveKeys=function(a,h){a.keys=new Array(32),o.equal(h.length,this.blockSize,"Invalid key length");var p=n.readUInt32BE(h,0),m=n.readUInt32BE(h,4);n.pc1(p,m,a.tmp,0),p=a.tmp[0],m=a.tmp[1];for(var d=0;d<a.keys.length;d+=2){var b=u[d>>>1];p=n.r28shl(p,b),m=n.r28shl(m,b),n.pc2(p,m,a.keys,d)}},i.prototype._update=function(a,h,p,m){var d=this._desState,b=n.readUInt32BE(a,h),g=n.readUInt32BE(a,h+4);n.ip(b,g,d.tmp,0),b=d.tmp[0],g=d.tmp[1],this.type==="encrypt"?this._encrypt(d,b,g,d.tmp,0):this._decrypt(d,b,g,d.tmp,0),b=d.tmp[0],g=d.tmp[1],n.writeUInt32BE(p,b,m),n.writeUInt32BE(p,g,m+4)},i.prototype._pad=function(a,h){if(this.padding===!1)return!1;for(var p=a.length-h,m=h;m<a.length;m++)a[m]=p;return!0},i.prototype._unpad=function(a){if(this.padding===!1)return a;for(var h=a[a.length-1],p=a.length-h;p<a.length;p++)o.equal(a[p],h);return a.slice(0,a.length-h)},i.prototype._encrypt=function(a,h,p,m,d){for(var b=h,g=p,S=0;S<a.keys.length;S+=2){var C=a.keys[S],I=a.keys[S+1];n.expand(g,a.tmp,0),C^=a.tmp[0],I^=a.tmp[1];var D=n.substitute(C,I),z=g;g=(b^n.permute(D))>>>0,b=z}n.rip(g,b,m,d)},i.prototype._decrypt=function(a,h,p,m,d){for(var b=p,g=h,S=a.keys.length-2;S>=0;S-=2){var C=a.keys[S],I=a.keys[S+1];n.expand(b,a.tmp,0),C^=a.tmp[0],I^=a.tmp[1];var D=n.substitute(C,I),z=b;b=(g^n.permute(D))>>>0,g=z}n.rip(b,g,m,d)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(t,l,c){var o=t("minimalistic-assert"),r=t("inherits"),n=t("./cipher"),s=t("./des");function e(u,a){o.equal(a.length,24,"Invalid key length");var h=a.slice(0,8),p=a.slice(8,16),m=a.slice(16,24);this.ciphers=u==="encrypt"?[s.create({type:"encrypt",key:h}),s.create({type:"decrypt",key:p}),s.create({type:"encrypt",key:m})]:[s.create({type:"decrypt",key:m}),s.create({type:"encrypt",key:p}),s.create({type:"decrypt",key:h})]}function i(u){n.call(this,u);var a=new e(this.type,this.options.key);this._edeState=a}r(i,n),l.exports=i,i.create=function(u){return new i(u)},i.prototype._update=function(u,a,h,p){var m=this._edeState;m.ciphers[0]._update(u,a,h,p),m.ciphers[1]._update(h,p,h,p),m.ciphers[2]._update(h,p,h,p)},i.prototype._pad=s.prototype._pad,i.prototype._unpad=s.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(t,l,c){c.readUInt32BE=function(s,e){return(s[0+e]<<24|s[1+e]<<16|s[2+e]<<8|s[3+e])>>>0},c.writeUInt32BE=function(s,e,i){s[0+i]=e>>>24,s[1+i]=e>>>16&255,s[2+i]=e>>>8&255,s[3+i]=255&e},c.ip=function(s,e,i,u){for(var a=0,h=0,p=6;p>=0;p-=2){for(var m=0;m<=24;m+=8)a<<=1,a|=e>>>m+p&1;for(m=0;m<=24;m+=8)a<<=1,a|=s>>>m+p&1}for(p=6;p>=0;p-=2){for(m=1;m<=25;m+=8)h<<=1,h|=e>>>m+p&1;for(m=1;m<=25;m+=8)h<<=1,h|=s>>>m+p&1}i[u+0]=a>>>0,i[u+1]=h>>>0},c.rip=function(s,e,i,u){for(var a=0,h=0,p=0;p<4;p++)for(var m=24;m>=0;m-=8)a<<=1,a|=e>>>m+p&1,a<<=1,a|=s>>>m+p&1;for(p=4;p<8;p++)for(m=24;m>=0;m-=8)h<<=1,h|=e>>>m+p&1,h<<=1,h|=s>>>m+p&1;i[u+0]=a>>>0,i[u+1]=h>>>0},c.pc1=function(s,e,i,u){for(var a=0,h=0,p=7;p>=5;p--){for(var m=0;m<=24;m+=8)a<<=1,a|=e>>m+p&1;for(m=0;m<=24;m+=8)a<<=1,a|=s>>m+p&1}for(m=0;m<=24;m+=8)a<<=1,a|=e>>m+p&1;for(p=1;p<=3;p++){for(m=0;m<=24;m+=8)h<<=1,h|=e>>m+p&1;for(m=0;m<=24;m+=8)h<<=1,h|=s>>m+p&1}for(m=0;m<=24;m+=8)h<<=1,h|=s>>m+p&1;i[u+0]=a>>>0,i[u+1]=h>>>0},c.r28shl=function(s,e){return s<<e&268435455|s>>>28-e};var o=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];c.pc2=function(s,e,i,u){for(var a=0,h=0,p=o.length>>>1,m=0;m<p;m++)a<<=1,a|=s>>>o[m]&1;for(m=p;m<o.length;m++)h<<=1,h|=e>>>o[m]&1;i[u+0]=a>>>0,i[u+1]=h>>>0},c.expand=function(s,e,i){var u=0,a=0;u=(1&s)<<5|s>>>27;for(var h=23;h>=15;h-=4)u<<=6,u|=s>>>h&63;for(h=11;h>=3;h-=4)a|=s>>>h&63,a<<=6;a|=(31&s)<<1|s>>>31,e[i+0]=u>>>0,e[i+1]=a>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];c.substitute=function(s,e){for(var i=0,u=0;u<4;u++)i<<=4,i|=r[64*u+(s>>>18-6*u&63)];for(u=0;u<4;u++)i<<=4,i|=r[256+64*u+(e>>>18-6*u&63)];return i>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];c.permute=function(s){for(var e=0,i=0;i<n.length;i++)e<<=1,e|=s>>>n[i]&1;return e>>>0},c.padSplit=function(s,e,i){for(var u=s.toString(2);u.length<e;)u="0"+u;for(var a=[],h=0;h<e;h+=i)a.push(u.slice(h,h+i));return a.join(" ")}},{}],400:[function(t,l,c){(function(o){(function(){var r=t("./lib/generatePrime"),n=t("./lib/primes.json"),s=t("./lib/dh"),e={binary:!0,hex:!0,base64:!0};c.DiffieHellmanGroup=c.createDiffieHellmanGroup=c.getDiffieHellman=function(i){var u=new o(n[i].prime,"hex"),a=new o(n[i].gen,"hex");return new s(u,a)},c.createDiffieHellman=c.DiffieHellman=function i(u,a,h,p){return o.isBuffer(a)||e[a]===void 0?i(u,"binary",a,h):(a=a||"binary",p=p||"binary",h=h||new o([2]),o.isBuffer(h)||(h=new o(h,p)),typeof u=="number"?new s(r(u,h),h,!0):(o.isBuffer(u)||(u=new o(u,a)),new s(u,h,!0)))}}).call(this)}).call(this,t("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(t,l,c){(function(o){(function(){var r=t("bn.js"),n=new(t("miller-rabin")),s=new r(24),e=new r(11),i=new r(10),u=new r(3),a=new r(7),h=t("./generatePrime"),p=t("randombytes");function m(C,I){return I=I||"utf8",o.isBuffer(C)||(C=new o(C,I)),this._pub=new r(C),this}function d(C,I){return I=I||"utf8",o.isBuffer(C)||(C=new o(C,I)),this._priv=new r(C),this}l.exports=g;var b={};function g(C,I,D){this.setGenerator(I),this.__prime=new r(C),this._prime=r.mont(this.__prime),this._primeLen=C.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,D?(this.setPublicKey=m,this.setPrivateKey=d):this._primeCode=8}function S(C,I){var D=new o(C.toArray());return I?D.toString(I):D}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=(function(C,I){var D=I.toString("hex"),z=[D,C.toString(16)].join("_");if(z in b)return b[z];var P,B=0;if(C.isEven()||!h.simpleSieve||!h.fermatTest(C)||!n.test(C))return B+=1,B+=D==="02"||D==="05"?8:4,b[z]=B,B;switch(n.test(C.shrn(1))||(B+=2),D){case"02":C.mod(s).cmp(e)&&(B+=8);break;case"05":(P=C.mod(i)).cmp(u)&&P.cmp(a)&&(B+=8);break;default:B+=4}return b[z]=B,B})(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new r(p(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(C){var I=(C=(C=new r(C)).toRed(this._prime)).redPow(this._priv).fromRed(),D=new o(I.toArray()),z=this.getPrime();if(D.length<z.length){var P=new o(z.length-D.length);P.fill(0),D=o.concat([P,D])}return D},g.prototype.getPublicKey=function(C){return S(this._pub,C)},g.prototype.getPrivateKey=function(C){return S(this._priv,C)},g.prototype.getPrime=function(C){return S(this.__prime,C)},g.prototype.getGenerator=function(C){return S(this._gen,C)},g.prototype.setGenerator=function(C,I){return I=I||"utf8",o.isBuffer(C)||(C=new o(C,I)),this.__gen=C,this._gen=new r(C),this}}).call(this)}).call(this,t("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(t,l,c){var o=t("randombytes");l.exports=C,C.simpleSieve=g,C.fermatTest=S;var r=t("bn.js"),n=new r(24),s=new(t("miller-rabin")),e=new r(1),i=new r(2),u=new r(5),a=(new r(16),new r(8),new r(10)),h=new r(3),p=(new r(7),new r(11)),m=new r(4),d=(new r(12),null);function b(){if(d!==null)return d;var I=[];I[0]=2;for(var D=1,z=3;z<1048576;z+=2){for(var P=Math.ceil(Math.sqrt(z)),B=0;B<D&&I[B]<=P&&z%I[B]!=0;B++);D!==B&&I[B]<=P||(I[D++]=z)}return d=I,I}function g(I){for(var D=b(),z=0;z<D.length;z++)if(I.modn(D[z])===0)return I.cmpn(D[z])===0;return!0}function S(I){var D=r.mont(I);return i.toRed(D).redPow(I.subn(1)).fromRed().cmpn(1)===0}function C(I,D){if(I<16)return new r(D===2||D===5?[140,123]:[140,39]);var z,P;for(D=new r(D);;){for(z=new r(o(Math.ceil(I/8)));z.bitLength()>I;)z.ishrn(1);if(z.isEven()&&z.iadd(e),z.testn(1)||z.iadd(i),D.cmp(i)){if(!D.cmp(u))for(;z.mod(a).cmp(h);)z.iadd(m)}else for(;z.mod(n).cmp(p);)z.iadd(m);if(g(P=z.shrn(1))&&g(z)&&S(P)&&S(z)&&s.test(P)&&s.test(z))return z}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(t,l,c){l.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(t,l,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],405:[function(t,l,c){var o=c;o.version=t("../package.json").version,o.utils=t("./elliptic/utils"),o.rand=t("brorand"),o.curve=t("./elliptic/curve"),o.curves=t("./elliptic/curves"),o.ec=t("./elliptic/ec"),o.eddsa=t("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(t,l,c){var o=t("bn.js"),r=t("../utils"),n=r.getNAF,s=r.getJSF,e=r.assert;function i(a,h){this.type=a,this.p=new o(h.p,16),this.red=h.prime?o.red(h.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=h.n&&new o(h.n,16),this.g=h.g&&this.pointFromJSON(h.g,h.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var p=this.n&&this.p.div(this.n);!p||p.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(a,h){this.curve=a,this.type=h,this.precomputed=null}l.exports=i,i.prototype.point=function(){throw new Error("Not implemented")},i.prototype.validate=function(){throw new Error("Not implemented")},i.prototype._fixedNafMul=function(a,h){e(a.precomputed);var p=a._getDoubles(),m=n(h,1,this._bitLength),d=(1<<p.step+1)-(p.step%2==0?2:1);d/=3;var b,g,S=[];for(b=0;b<m.length;b+=p.step){g=0;for(var C=b+p.step-1;C>=b;C--)g=(g<<1)+m[C];S.push(g)}for(var I=this.jpoint(null,null,null),D=this.jpoint(null,null,null),z=d;z>0;z--){for(b=0;b<S.length;b++)(g=S[b])===z?D=D.mixedAdd(p.points[b]):g===-z&&(D=D.mixedAdd(p.points[b].neg()));I=I.add(D)}return I.toP()},i.prototype._wnafMul=function(a,h){var p=4,m=a._getNAFPoints(p);p=m.wnd;for(var d=m.points,b=n(h,p,this._bitLength),g=this.jpoint(null,null,null),S=b.length-1;S>=0;S--){for(var C=0;S>=0&&b[S]===0;S--)C++;if(S>=0&&C++,g=g.dblp(C),S<0)break;var I=b[S];e(I!==0),g=a.type==="affine"?I>0?g.mixedAdd(d[I-1>>1]):g.mixedAdd(d[-I-1>>1].neg()):I>0?g.add(d[I-1>>1]):g.add(d[-I-1>>1].neg())}return a.type==="affine"?g.toP():g},i.prototype._wnafMulAdd=function(a,h,p,m,d){var b,g,S,C=this._wnafT1,I=this._wnafT2,D=this._wnafT3,z=0;for(b=0;b<m;b++){var P=(S=h[b])._getNAFPoints(a);C[b]=P.wnd,I[b]=P.points}for(b=m-1;b>=1;b-=2){var B=b-1,F=b;if(C[B]===1&&C[F]===1){var W=[h[B],null,null,h[F]];h[B].y.cmp(h[F].y)===0?(W[1]=h[B].add(h[F]),W[2]=h[B].toJ().mixedAdd(h[F].neg())):h[B].y.cmp(h[F].y.redNeg())===0?(W[1]=h[B].toJ().mixedAdd(h[F]),W[2]=h[B].add(h[F].neg())):(W[1]=h[B].toJ().mixedAdd(h[F]),W[2]=h[B].toJ().mixedAdd(h[F].neg()));var q=[-3,-1,-5,-7,0,7,5,1,3],A=s(p[B],p[F]);for(z=Math.max(A[0].length,z),D[B]=new Array(z),D[F]=new Array(z),g=0;g<z;g++){var M=0|A[0][g],k=0|A[1][g];D[B][g]=q[3*(M+1)+(k+1)],D[F][g]=0,I[B]=W}}else D[B]=n(p[B],C[B],this._bitLength),D[F]=n(p[F],C[F],this._bitLength),z=Math.max(D[B].length,z),z=Math.max(D[F].length,z)}var y=this.jpoint(null,null,null),w=this._wnafT4;for(b=z;b>=0;b--){for(var x=0;b>=0;){var _=!0;for(g=0;g<m;g++)w[g]=0|D[g][b],w[g]!==0&&(_=!1);if(!_)break;x++,b--}if(b>=0&&x++,y=y.dblp(x),b<0)break;for(g=0;g<m;g++){var T=w[g];T!==0&&(T>0?S=I[g][T-1>>1]:T<0&&(S=I[g][-T-1>>1].neg()),y=S.type==="affine"?y.mixedAdd(S):y.add(S))}}for(b=0;b<m;b++)I[b]=null;return d?y:y.toP()},i.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},i.prototype.decodePoint=function(a,h){a=r.toArray(a,h);var p=this.p.byteLength();if((a[0]===4||a[0]===6||a[0]===7)&&a.length-1==2*p)return a[0]===6?e(a[a.length-1]%2==0):a[0]===7&&e(a[a.length-1]%2==1),this.point(a.slice(1,1+p),a.slice(1+p,1+2*p));if((a[0]===2||a[0]===3)&&a.length-1===p)return this.pointFromX(a.slice(1,1+p),a[0]===3);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(a){return this.encode(a,!0)},u.prototype._encode=function(a){var h=this.curve.p.byteLength(),p=this.getX().toArray("be",h);return a?[this.getY().isEven()?2:3].concat(p):[4].concat(p,this.getY().toArray("be",h))},u.prototype.encode=function(a,h){return r.encode(this._encode(h),a)},u.prototype.precompute=function(a){if(this.precomputed)return this;var h={doubles:null,naf:null,beta:null};return h.naf=this._getNAFPoints(8),h.doubles=this._getDoubles(4,a),h.beta=this._getBeta(),this.precomputed=h,this},u.prototype._hasDoubles=function(a){if(!this.precomputed)return!1;var h=this.precomputed.doubles;return!!h&&h.points.length>=Math.ceil((a.bitLength()+1)/h.step)},u.prototype._getDoubles=function(a,h){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var p=[this],m=this,d=0;d<h;d+=a){for(var b=0;b<a;b++)m=m.dbl();p.push(m)}return{step:a,points:p}},u.prototype._getNAFPoints=function(a){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var h=[this],p=(1<<a)-1,m=p===1?null:this.dbl(),d=1;d<p;d++)h[d]=h[d-1].add(m);return{wnd:a,points:h}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(a){for(var h=this,p=0;p<a;p++)h=h.dbl();return h}},{"../utils":419,"bn.js":420}],407:[function(t,l,c){var o=t("../utils"),r=t("bn.js"),n=t("inherits"),s=t("./base"),e=o.assert;function i(a){this.twisted=(0|a.a)!=1,this.mOneA=this.twisted&&(0|a.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",a),this.a=new r(a.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r(a.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r(a.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),e(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|a.c)==1}function u(a,h,p,m,d){s.BasePoint.call(this,a,"projective"),h===null&&p===null&&m===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r(h,16),this.y=new r(p,16),this.z=m?new r(m,16):this.curve.one,this.t=d&&new r(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}n(i,s),l.exports=i,i.prototype._mulA=function(a){return this.mOneA?a.redNeg():this.a.redMul(a)},i.prototype._mulC=function(a){return this.oneC?a:this.c.redMul(a)},i.prototype.jpoint=function(a,h,p,m){return this.point(a,h,p,m)},i.prototype.pointFromX=function(a,h){(a=new r(a,16)).red||(a=a.toRed(this.red));var p=a.redSqr(),m=this.c2.redSub(this.a.redMul(p)),d=this.one.redSub(this.c2.redMul(this.d).redMul(p)),b=m.redMul(d.redInvm()),g=b.redSqrt();if(g.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");var S=g.fromRed().isOdd();return(h&&!S||!h&&S)&&(g=g.redNeg()),this.point(a,g)},i.prototype.pointFromY=function(a,h){(a=new r(a,16)).red||(a=a.toRed(this.red));var p=a.redSqr(),m=p.redSub(this.c2),d=p.redMul(this.d).redMul(this.c2).redSub(this.a),b=m.redMul(d.redInvm());if(b.cmp(this.zero)===0){if(h)throw new Error("invalid point");return this.point(this.zero,a)}var g=b.redSqrt();if(g.redSqr().redSub(b).cmp(this.zero)!==0)throw new Error("invalid point");return g.fromRed().isOdd()!==h&&(g=g.redNeg()),this.point(g,a)},i.prototype.validate=function(a){if(a.isInfinity())return!0;a.normalize();var h=a.x.redSqr(),p=a.y.redSqr(),m=h.redMul(this.a).redAdd(p),d=this.c2.redMul(this.one.redAdd(this.d.redMul(h).redMul(p)));return m.cmp(d)===0},n(u,s.BasePoint),i.prototype.pointFromJSON=function(a){return u.fromJSON(this,a)},i.prototype.point=function(a,h,p,m){return new u(this,a,h,p,m)},u.fromJSON=function(a,h){return new u(a,h[0],h[1],h[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},u.prototype._extDbl=function(){var a=this.x.redSqr(),h=this.y.redSqr(),p=this.z.redSqr();p=p.redIAdd(p);var m=this.curve._mulA(a),d=this.x.redAdd(this.y).redSqr().redISub(a).redISub(h),b=m.redAdd(h),g=b.redSub(p),S=m.redSub(h),C=d.redMul(g),I=b.redMul(S),D=d.redMul(S),z=g.redMul(b);return this.curve.point(C,I,z,D)},u.prototype._projDbl=function(){var a,h,p,m,d,b,g=this.x.redAdd(this.y).redSqr(),S=this.x.redSqr(),C=this.y.redSqr();if(this.curve.twisted){var I=(m=this.curve._mulA(S)).redAdd(C);this.zOne?(a=g.redSub(S).redSub(C).redMul(I.redSub(this.curve.two)),h=I.redMul(m.redSub(C)),p=I.redSqr().redSub(I).redSub(I)):(d=this.z.redSqr(),b=I.redSub(d).redISub(d),a=g.redSub(S).redISub(C).redMul(b),h=I.redMul(m.redSub(C)),p=I.redMul(b))}else m=S.redAdd(C),d=this.curve._mulC(this.z).redSqr(),b=m.redSub(d).redSub(d),a=this.curve._mulC(g.redISub(m)).redMul(b),h=this.curve._mulC(m).redMul(S.redISub(C)),p=m.redMul(b);return this.curve.point(a,h,p)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(a){var h=this.y.redSub(this.x).redMul(a.y.redSub(a.x)),p=this.y.redAdd(this.x).redMul(a.y.redAdd(a.x)),m=this.t.redMul(this.curve.dd).redMul(a.t),d=this.z.redMul(a.z.redAdd(a.z)),b=p.redSub(h),g=d.redSub(m),S=d.redAdd(m),C=p.redAdd(h),I=b.redMul(g),D=S.redMul(C),z=b.redMul(C),P=g.redMul(S);return this.curve.point(I,D,P,z)},u.prototype._projAdd=function(a){var h,p,m=this.z.redMul(a.z),d=m.redSqr(),b=this.x.redMul(a.x),g=this.y.redMul(a.y),S=this.curve.d.redMul(b).redMul(g),C=d.redSub(S),I=d.redAdd(S),D=this.x.redAdd(this.y).redMul(a.x.redAdd(a.y)).redISub(b).redISub(g),z=m.redMul(C).redMul(D);return this.curve.twisted?(h=m.redMul(I).redMul(g.redSub(this.curve._mulA(b))),p=C.redMul(I)):(h=m.redMul(I).redMul(g.redSub(b)),p=this.curve._mulC(C).redMul(I)),this.curve.point(z,h,p)},u.prototype.add=function(a){return this.isInfinity()?a:a.isInfinity()?this:this.curve.extended?this._extAdd(a):this._projAdd(a)},u.prototype.mul=function(a){return this._hasDoubles(a)?this.curve._fixedNafMul(this,a):this.curve._wnafMul(this,a)},u.prototype.mulAdd=function(a,h,p){return this.curve._wnafMulAdd(1,[this,h],[a,p],2,!1)},u.prototype.jmulAdd=function(a,h,p){return this.curve._wnafMulAdd(1,[this,h],[a,p],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var a=this.z.redInvm();return this.x=this.x.redMul(a),this.y=this.y.redMul(a),this.t&&(this.t=this.t.redMul(a)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(a){return this===a||this.getX().cmp(a.getX())===0&&this.getY().cmp(a.getY())===0},u.prototype.eqXToP=function(a){var h=a.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(h)===0)return!0;for(var p=a.clone(),m=this.curve.redN.redMul(this.z);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(m),this.x.cmp(h)===0)return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(t,l,c){var o=c;o.base=t("./base"),o.short=t("./short"),o.mont=t("./mont"),o.edwards=t("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(t,l,c){var o=t("bn.js"),r=t("inherits"),n=t("./base"),s=t("../utils");function e(u){n.call(this,"mont",u),this.a=new o(u.a,16).toRed(this.red),this.b=new o(u.b,16).toRed(this.red),this.i4=new o(4).toRed(this.red).redInvm(),this.two=new o(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(u,a,h){n.BasePoint.call(this,u,"projective"),a===null&&h===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new o(a,16),this.z=new o(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(e,n),l.exports=e,e.prototype.validate=function(u){var a=u.normalize().x,h=a.redSqr(),p=h.redMul(a).redAdd(h.redMul(this.a)).redAdd(a);return p.redSqrt().redSqr().cmp(p)===0},r(i,n.BasePoint),e.prototype.decodePoint=function(u,a){return this.point(s.toArray(u,a),1)},e.prototype.point=function(u,a){return new i(this,u,a)},e.prototype.pointFromJSON=function(u){return i.fromJSON(this,u)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(u,a){return new i(u,a[0],a[1]||u.one)},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return this.z.cmpn(0)===0},i.prototype.dbl=function(){var u=this.x.redAdd(this.z).redSqr(),a=this.x.redSub(this.z).redSqr(),h=u.redSub(a),p=u.redMul(a),m=h.redMul(a.redAdd(this.curve.a24.redMul(h)));return this.curve.point(p,m)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(u,a){var h=this.x.redAdd(this.z),p=this.x.redSub(this.z),m=u.x.redAdd(u.z),d=u.x.redSub(u.z).redMul(h),b=m.redMul(p),g=a.z.redMul(d.redAdd(b).redSqr()),S=a.x.redMul(d.redISub(b).redSqr());return this.curve.point(g,S)},i.prototype.mul=function(u){for(var a=u.clone(),h=this,p=this.curve.point(null,null),m=[];a.cmpn(0)!==0;a.iushrn(1))m.push(a.andln(1));for(var d=m.length-1;d>=0;d--)m[d]===0?(h=h.diffAdd(p,this),p=p.dbl()):(p=h.diffAdd(p,this),h=h.dbl());return p},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(u){return this.getX().cmp(u.getX())===0},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(t,l,c){var o=t("../utils"),r=t("bn.js"),n=t("inherits"),s=t("./base"),e=o.assert;function i(h){s.call(this,"short",h),this.a=new r(h.a,16).toRed(this.red),this.b=new r(h.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(h),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(h,p,m,d){s.BasePoint.call(this,h,"affine"),p===null&&m===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new r(p,16),this.y=new r(m,16),d&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function a(h,p,m,d){s.BasePoint.call(this,h,"jacobian"),p===null&&m===null&&d===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new r(0)):(this.x=new r(p,16),this.y=new r(m,16),this.z=new r(d,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}n(i,s),l.exports=i,i.prototype._getEndomorphism=function(h){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var p,m;if(h.beta)p=new r(h.beta,16).toRed(this.red);else{var d=this._getEndoRoots(this.p);p=(p=d[0].cmp(d[1])<0?d[0]:d[1]).toRed(this.red)}if(h.lambda)m=new r(h.lambda,16);else{var b=this._getEndoRoots(this.n);this.g.mul(b[0]).x.cmp(this.g.x.redMul(p))===0?m=b[0]:(m=b[1],e(this.g.mul(m).x.cmp(this.g.x.redMul(p))===0))}return{beta:p,lambda:m,basis:h.basis?h.basis.map((function(g){return{a:new r(g.a,16),b:new r(g.b,16)}})):this._getEndoBasis(m)}}},i.prototype._getEndoRoots=function(h){var p=h===this.p?this.red:r.mont(h),m=new r(2).toRed(p).redInvm(),d=m.redNeg(),b=new r(3).toRed(p).redNeg().redSqrt().redMul(m);return[d.redAdd(b).fromRed(),d.redSub(b).fromRed()]},i.prototype._getEndoBasis=function(h){for(var p,m,d,b,g,S,C,I,D,z=this.n.ushrn(Math.floor(this.n.bitLength()/2)),P=h,B=this.n.clone(),F=new r(1),W=new r(0),q=new r(0),A=new r(1),M=0;P.cmpn(0)!==0;){var k=B.div(P);I=B.sub(k.mul(P)),D=q.sub(k.mul(F));var y=A.sub(k.mul(W));if(!d&&I.cmp(z)<0)p=C.neg(),m=F,d=I.neg(),b=D;else if(d&&++M==2)break;C=I,B=P,P=I,q=F,F=D,A=W,W=y}g=I.neg(),S=D;var w=d.sqr().add(b.sqr());return g.sqr().add(S.sqr()).cmp(w)>=0&&(g=p,S=m),d.negative&&(d=d.neg(),b=b.neg()),g.negative&&(g=g.neg(),S=S.neg()),[{a:d,b},{a:g,b:S}]},i.prototype._endoSplit=function(h){var p=this.endo.basis,m=p[0],d=p[1],b=d.b.mul(h).divRound(this.n),g=m.b.neg().mul(h).divRound(this.n),S=b.mul(m.a),C=g.mul(d.a),I=b.mul(m.b),D=g.mul(d.b);return{k1:h.sub(S).sub(C),k2:I.add(D).neg()}},i.prototype.pointFromX=function(h,p){(h=new r(h,16)).red||(h=h.toRed(this.red));var m=h.redSqr().redMul(h).redIAdd(h.redMul(this.a)).redIAdd(this.b),d=m.redSqrt();if(d.redSqr().redSub(m).cmp(this.zero)!==0)throw new Error("invalid point");var b=d.fromRed().isOdd();return(p&&!b||!p&&b)&&(d=d.redNeg()),this.point(h,d)},i.prototype.validate=function(h){if(h.inf)return!0;var p=h.x,m=h.y,d=this.a.redMul(p),b=p.redSqr().redMul(p).redIAdd(d).redIAdd(this.b);return m.redSqr().redISub(b).cmpn(0)===0},i.prototype._endoWnafMulAdd=function(h,p,m){for(var d=this._endoWnafT1,b=this._endoWnafT2,g=0;g<h.length;g++){var S=this._endoSplit(p[g]),C=h[g],I=C._getBeta();S.k1.negative&&(S.k1.ineg(),C=C.neg(!0)),S.k2.negative&&(S.k2.ineg(),I=I.neg(!0)),d[2*g]=C,d[2*g+1]=I,b[2*g]=S.k1,b[2*g+1]=S.k2}for(var D=this._wnafMulAdd(1,d,b,2*g,m),z=0;z<2*g;z++)d[z]=null,b[z]=null;return D},n(u,s.BasePoint),i.prototype.point=function(h,p,m){return new u(this,h,p,m)},i.prototype.pointFromJSON=function(h,p){return u.fromJSON(this,h,p)},u.prototype._getBeta=function(){if(this.curve.endo){var h=this.precomputed;if(h&&h.beta)return h.beta;var p=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(h){var m=this.curve,d=function(b){return m.point(b.x.redMul(m.endo.beta),b.y)};h.beta=p,p.precomputed={beta:null,naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(d)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(d)}}}return p}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(h,p,m){typeof p=="string"&&(p=JSON.parse(p));var d=h.point(p[0],p[1],m);if(!p[2])return d;function b(S){return h.point(S[0],S[1],m)}var g=p[2];return d.precomputed={beta:null,doubles:g.doubles&&{step:g.doubles.step,points:[d].concat(g.doubles.points.map(b))},naf:g.naf&&{wnd:g.naf.wnd,points:[d].concat(g.naf.points.map(b))}},d},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(h){if(this.inf)return h;if(h.inf)return this;if(this.eq(h))return this.dbl();if(this.neg().eq(h))return this.curve.point(null,null);if(this.x.cmp(h.x)===0)return this.curve.point(null,null);var p=this.y.redSub(h.y);p.cmpn(0)!==0&&(p=p.redMul(this.x.redSub(h.x).redInvm()));var m=p.redSqr().redISub(this.x).redISub(h.x),d=p.redMul(this.x.redSub(m)).redISub(this.y);return this.curve.point(m,d)},u.prototype.dbl=function(){if(this.inf)return this;var h=this.y.redAdd(this.y);if(h.cmpn(0)===0)return this.curve.point(null,null);var p=this.curve.a,m=this.x.redSqr(),d=h.redInvm(),b=m.redAdd(m).redIAdd(m).redIAdd(p).redMul(d),g=b.redSqr().redISub(this.x.redAdd(this.x)),S=b.redMul(this.x.redSub(g)).redISub(this.y);return this.curve.point(g,S)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(h){return h=new r(h,16),this.isInfinity()?this:this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve.endo?this.curve._endoWnafMulAdd([this],[h]):this.curve._wnafMul(this,h)},u.prototype.mulAdd=function(h,p,m){var d=[this,p],b=[h,m];return this.curve.endo?this.curve._endoWnafMulAdd(d,b):this.curve._wnafMulAdd(1,d,b,2)},u.prototype.jmulAdd=function(h,p,m){var d=[this,p],b=[h,m];return this.curve.endo?this.curve._endoWnafMulAdd(d,b,!0):this.curve._wnafMulAdd(1,d,b,2,!0)},u.prototype.eq=function(h){return this===h||this.inf===h.inf&&(this.inf||this.x.cmp(h.x)===0&&this.y.cmp(h.y)===0)},u.prototype.neg=function(h){if(this.inf)return this;var p=this.curve.point(this.x,this.y.redNeg());if(h&&this.precomputed){var m=this.precomputed,d=function(b){return b.neg()};p.precomputed={naf:m.naf&&{wnd:m.naf.wnd,points:m.naf.points.map(d)},doubles:m.doubles&&{step:m.doubles.step,points:m.doubles.points.map(d)}}}return p},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(a,s.BasePoint),i.prototype.jpoint=function(h,p,m){return new a(this,h,p,m)},a.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var h=this.z.redInvm(),p=h.redSqr(),m=this.x.redMul(p),d=this.y.redMul(p).redMul(h);return this.curve.point(m,d)},a.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},a.prototype.add=function(h){if(this.isInfinity())return h;if(h.isInfinity())return this;var p=h.z.redSqr(),m=this.z.redSqr(),d=this.x.redMul(p),b=h.x.redMul(m),g=this.y.redMul(p.redMul(h.z)),S=h.y.redMul(m.redMul(this.z)),C=d.redSub(b),I=g.redSub(S);if(C.cmpn(0)===0)return I.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=C.redSqr(),z=D.redMul(C),P=d.redMul(D),B=I.redSqr().redIAdd(z).redISub(P).redISub(P),F=I.redMul(P.redISub(B)).redISub(g.redMul(z)),W=this.z.redMul(h.z).redMul(C);return this.curve.jpoint(B,F,W)},a.prototype.mixedAdd=function(h){if(this.isInfinity())return h.toJ();if(h.isInfinity())return this;var p=this.z.redSqr(),m=this.x,d=h.x.redMul(p),b=this.y,g=h.y.redMul(p).redMul(this.z),S=m.redSub(d),C=b.redSub(g);if(S.cmpn(0)===0)return C.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var I=S.redSqr(),D=I.redMul(S),z=m.redMul(I),P=C.redSqr().redIAdd(D).redISub(z).redISub(z),B=C.redMul(z.redISub(P)).redISub(b.redMul(D)),F=this.z.redMul(S);return this.curve.jpoint(P,B,F)},a.prototype.dblp=function(h){if(h===0)return this;if(this.isInfinity())return this;if(!h)return this.dbl();var p;if(this.curve.zeroA||this.curve.threeA){var m=this;for(p=0;p<h;p++)m=m.dbl();return m}var d=this.curve.a,b=this.curve.tinv,g=this.x,S=this.y,C=this.z,I=C.redSqr().redSqr(),D=S.redAdd(S);for(p=0;p<h;p++){var z=g.redSqr(),P=D.redSqr(),B=P.redSqr(),F=z.redAdd(z).redIAdd(z).redIAdd(d.redMul(I)),W=g.redMul(P),q=F.redSqr().redISub(W.redAdd(W)),A=W.redISub(q),M=F.redMul(A);M=M.redIAdd(M).redISub(B);var k=D.redMul(C);p+1<h&&(I=I.redMul(B)),g=q,C=k,D=M}return this.curve.jpoint(g,D.redMul(b),C)},a.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},a.prototype._zeroDbl=function(){var h,p,m;if(this.zOne){var d=this.x.redSqr(),b=this.y.redSqr(),g=b.redSqr(),S=this.x.redAdd(b).redSqr().redISub(d).redISub(g);S=S.redIAdd(S);var C=d.redAdd(d).redIAdd(d),I=C.redSqr().redISub(S).redISub(S),D=g.redIAdd(g);D=(D=D.redIAdd(D)).redIAdd(D),h=I,p=C.redMul(S.redISub(I)).redISub(D),m=this.y.redAdd(this.y)}else{var z=this.x.redSqr(),P=this.y.redSqr(),B=P.redSqr(),F=this.x.redAdd(P).redSqr().redISub(z).redISub(B);F=F.redIAdd(F);var W=z.redAdd(z).redIAdd(z),q=W.redSqr(),A=B.redIAdd(B);A=(A=A.redIAdd(A)).redIAdd(A),h=q.redISub(F).redISub(F),p=W.redMul(F.redISub(h)).redISub(A),m=(m=this.y.redMul(this.z)).redIAdd(m)}return this.curve.jpoint(h,p,m)},a.prototype._threeDbl=function(){var h,p,m;if(this.zOne){var d=this.x.redSqr(),b=this.y.redSqr(),g=b.redSqr(),S=this.x.redAdd(b).redSqr().redISub(d).redISub(g);S=S.redIAdd(S);var C=d.redAdd(d).redIAdd(d).redIAdd(this.curve.a),I=C.redSqr().redISub(S).redISub(S);h=I;var D=g.redIAdd(g);D=(D=D.redIAdd(D)).redIAdd(D),p=C.redMul(S.redISub(I)).redISub(D),m=this.y.redAdd(this.y)}else{var z=this.z.redSqr(),P=this.y.redSqr(),B=this.x.redMul(P),F=this.x.redSub(z).redMul(this.x.redAdd(z));F=F.redAdd(F).redIAdd(F);var W=B.redIAdd(B),q=(W=W.redIAdd(W)).redAdd(W);h=F.redSqr().redISub(q),m=this.y.redAdd(this.z).redSqr().redISub(P).redISub(z);var A=P.redSqr();A=(A=(A=A.redIAdd(A)).redIAdd(A)).redIAdd(A),p=F.redMul(W.redISub(h)).redISub(A)}return this.curve.jpoint(h,p,m)},a.prototype._dbl=function(){var h=this.curve.a,p=this.x,m=this.y,d=this.z,b=d.redSqr().redSqr(),g=p.redSqr(),S=m.redSqr(),C=g.redAdd(g).redIAdd(g).redIAdd(h.redMul(b)),I=p.redAdd(p),D=(I=I.redIAdd(I)).redMul(S),z=C.redSqr().redISub(D.redAdd(D)),P=D.redISub(z),B=S.redSqr();B=(B=(B=B.redIAdd(B)).redIAdd(B)).redIAdd(B);var F=C.redMul(P).redISub(B),W=m.redAdd(m).redMul(d);return this.curve.jpoint(z,F,W)},a.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var h=this.x.redSqr(),p=this.y.redSqr(),m=this.z.redSqr(),d=p.redSqr(),b=h.redAdd(h).redIAdd(h),g=b.redSqr(),S=this.x.redAdd(p).redSqr().redISub(h).redISub(d),C=(S=(S=(S=S.redIAdd(S)).redAdd(S).redIAdd(S)).redISub(g)).redSqr(),I=d.redIAdd(d);I=(I=(I=I.redIAdd(I)).redIAdd(I)).redIAdd(I);var D=b.redIAdd(S).redSqr().redISub(g).redISub(C).redISub(I),z=p.redMul(D);z=(z=z.redIAdd(z)).redIAdd(z);var P=this.x.redMul(C).redISub(z);P=(P=P.redIAdd(P)).redIAdd(P);var B=this.y.redMul(D.redMul(I.redISub(D)).redISub(S.redMul(C)));B=(B=(B=B.redIAdd(B)).redIAdd(B)).redIAdd(B);var F=this.z.redAdd(S).redSqr().redISub(m).redISub(C);return this.curve.jpoint(P,B,F)},a.prototype.mul=function(h,p){return h=new r(h,p),this.curve._wnafMul(this,h)},a.prototype.eq=function(h){if(h.type==="affine")return this.eq(h.toJ());if(this===h)return!0;var p=this.z.redSqr(),m=h.z.redSqr();if(this.x.redMul(m).redISub(h.x.redMul(p)).cmpn(0)!==0)return!1;var d=p.redMul(this.z),b=m.redMul(h.z);return this.y.redMul(b).redISub(h.y.redMul(d)).cmpn(0)===0},a.prototype.eqXToP=function(h){var p=this.z.redSqr(),m=h.toRed(this.curve.red).redMul(p);if(this.x.cmp(m)===0)return!0;for(var d=h.clone(),b=this.curve.redN.redMul(p);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(m.redIAdd(b),this.x.cmp(m)===0)return!0}},a.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},a.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(t,l,c){var o,r=c,n=t("hash.js"),s=t("./curve"),e=t("./utils").assert;function i(a){a.type==="short"?this.curve=new s.short(a):a.type==="edwards"?this.curve=new s.edwards(a):this.curve=new s.mont(a),this.g=this.curve.g,this.n=this.curve.n,this.hash=a.hash,e(this.g.validate(),"Invalid curve"),e(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(a,h){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){var p=new i(h);return Object.defineProperty(r,a,{configurable:!0,enumerable:!0,value:p}),p}})}r.PresetCurve=i,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:n.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:n.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{o=t("./precomputed/secp256k1")}catch{o=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(t,l,c){var o=t("bn.js"),r=t("hmac-drbg"),n=t("../utils"),s=t("../curves"),e=t("brorand"),i=n.assert,u=t("./key"),a=t("./signature");function h(p){if(!(this instanceof h))return new h(p);typeof p=="string"&&(i(Object.prototype.hasOwnProperty.call(s,p),"Unknown curve "+p),p=s[p]),p instanceof s.PresetCurve&&(p={curve:p}),this.curve=p.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=p.curve.g,this.g.precompute(p.curve.n.bitLength()+1),this.hash=p.hash||p.curve.hash}l.exports=h,h.prototype.keyPair=function(p){return new u(this,p)},h.prototype.keyFromPrivate=function(p,m){return u.fromPrivate(this,p,m)},h.prototype.keyFromPublic=function(p,m){return u.fromPublic(this,p,m)},h.prototype.genKeyPair=function(p){p||(p={});for(var m=new r({hash:this.hash,pers:p.pers,persEnc:p.persEnc||"utf8",entropy:p.entropy||e(this.hash.hmacStrength),entropyEnc:p.entropy&&p.entropyEnc||"utf8",nonce:this.n.toArray()}),d=this.n.byteLength(),b=this.n.sub(new o(2));;){var g=new o(m.generate(d));if(!(g.cmp(b)>0))return g.iaddn(1),this.keyFromPrivate(g)}},h.prototype._truncateToN=function(p,m){var d=8*p.byteLength()-this.n.bitLength();return d>0&&(p=p.ushrn(d)),!m&&p.cmp(this.n)>=0?p.sub(this.n):p},h.prototype.sign=function(p,m,d,b){typeof d=="object"&&(b=d,d=null),b||(b={}),m=this.keyFromPrivate(m,d),p=this._truncateToN(new o(p,16));for(var g=this.n.byteLength(),S=m.getPrivate().toArray("be",g),C=p.toArray("be",g),I=new r({hash:this.hash,entropy:S,nonce:C,pers:b.pers,persEnc:b.persEnc||"utf8"}),D=this.n.sub(new o(1)),z=0;;z++){var P=b.k?b.k(z):new o(I.generate(this.n.byteLength()));if(!((P=this._truncateToN(P,!0)).cmpn(1)<=0||P.cmp(D)>=0)){var B=this.g.mul(P);if(!B.isInfinity()){var F=B.getX(),W=F.umod(this.n);if(W.cmpn(0)!==0){var q=P.invm(this.n).mul(W.mul(m.getPrivate()).iadd(p));if((q=q.umod(this.n)).cmpn(0)!==0){var A=(B.getY().isOdd()?1:0)|(F.cmp(W)!==0?2:0);return b.canonical&&q.cmp(this.nh)>0&&(q=this.n.sub(q),A^=1),new a({r:W,s:q,recoveryParam:A})}}}}}},h.prototype.verify=function(p,m,d,b){p=this._truncateToN(new o(p,16)),d=this.keyFromPublic(d,b);var g=(m=new a(m,"hex")).r,S=m.s;if(g.cmpn(1)<0||g.cmp(this.n)>=0||S.cmpn(1)<0||S.cmp(this.n)>=0)return!1;var C,I=S.invm(this.n),D=I.mul(p).umod(this.n),z=I.mul(g).umod(this.n);return this.curve._maxwellTrick?!(C=this.g.jmulAdd(D,d.getPublic(),z)).isInfinity()&&C.eqXToP(g):!(C=this.g.mulAdd(D,d.getPublic(),z)).isInfinity()&&C.getX().umod(this.n).cmp(g)===0},h.prototype.recoverPubKey=function(p,m,d,b){i((3&d)===d,"The recovery param is more than two bits"),m=new a(m,b);var g=this.n,S=new o(p),C=m.r,I=m.s,D=1&d,z=d>>1;if(C.cmp(this.curve.p.umod(this.curve.n))>=0&&z)throw new Error("Unable to find sencond key candinate");C=z?this.curve.pointFromX(C.add(this.curve.n),D):this.curve.pointFromX(C,D);var P=m.r.invm(g),B=g.sub(S).mul(P).umod(g),F=I.mul(P).umod(g);return this.g.mulAdd(B,C,F)},h.prototype.getKeyRecoveryParam=function(p,m,d,b){if((m=new a(m,b)).recoveryParam!==null)return m.recoveryParam;for(var g=0;g<4;g++){var S;try{S=this.recoverPubKey(p,m,g)}catch{continue}if(S.eq(d))return g}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(t,l,c){var o=t("bn.js"),r=t("../utils").assert;function n(s,e){this.ec=s,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}l.exports=n,n.fromPublic=function(s,e,i){return e instanceof n?e:new n(s,{pub:e,pubEnc:i})},n.fromPrivate=function(s,e,i){return e instanceof n?e:new n(s,{priv:e,privEnc:i})},n.prototype.validate=function(){var s=this.getPublic();return s.isInfinity()?{result:!1,reason:"Invalid public key"}:s.validate()?s.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},n.prototype.getPublic=function(s,e){return typeof s=="string"&&(e=s,s=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,s):this.pub},n.prototype.getPrivate=function(s){return s==="hex"?this.priv.toString(16,2):this.priv},n.prototype._importPrivate=function(s,e){this.priv=new o(s,e||16),this.priv=this.priv.umod(this.ec.curve.n)},n.prototype._importPublic=function(s,e){if(s.x||s.y)return this.ec.curve.type==="mont"?r(s.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||r(s.x&&s.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(s.x,s.y));this.pub=this.ec.curve.decodePoint(s,e)},n.prototype.derive=function(s){return s.validate()||r(s.validate(),"public point not validated"),s.mul(this.priv).getX()},n.prototype.sign=function(s,e,i){return this.ec.sign(s,this,e,i)},n.prototype.verify=function(s,e){return this.ec.verify(s,e,this)},n.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(t,l,c){var o=t("bn.js"),r=t("../utils"),n=r.assert;function s(h,p){if(h instanceof s)return h;this._importDER(h,p)||(n(h.r&&h.s,"Signature without r or s"),this.r=new o(h.r,16),this.s=new o(h.s,16),h.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=h.recoveryParam)}function e(){this.place=0}function i(h,p){var m=h[p.place++];if(!(128&m))return m;var d=15&m;if(d===0||d>4)return!1;for(var b=0,g=0,S=p.place;g<d;g++,S++)b<<=8,b|=h[S],b>>>=0;return!(b<=127)&&(p.place=S,b)}function u(h){for(var p=0,m=h.length-1;!h[p]&&!(128&h[p+1])&&p<m;)p++;return p===0?h:h.slice(p)}function a(h,p){if(p<128)h.push(p);else{var m=1+(Math.log(p)/Math.LN2>>>3);for(h.push(128|m);--m;)h.push(p>>>(m<<3)&255);h.push(p)}}l.exports=s,s.prototype._importDER=function(h,p){h=r.toArray(h,p);var m=new e;if(h[m.place++]!==48)return!1;var d=i(h,m);if(d===!1||d+m.place!==h.length||h[m.place++]!==2)return!1;var b=i(h,m);if(b===!1)return!1;var g=h.slice(m.place,b+m.place);if(m.place+=b,h[m.place++]!==2)return!1;var S=i(h,m);if(S===!1||h.length!==S+m.place)return!1;var C=h.slice(m.place,S+m.place);if(g[0]===0){if(!(128&g[1]))return!1;g=g.slice(1)}if(C[0]===0){if(!(128&C[1]))return!1;C=C.slice(1)}return this.r=new o(g),this.s=new o(C),this.recoveryParam=null,!0},s.prototype.toDER=function(h){var p=this.r.toArray(),m=this.s.toArray();for(128&p[0]&&(p=[0].concat(p)),128&m[0]&&(m=[0].concat(m)),p=u(p),m=u(m);!(m[0]||128&m[1]);)m=m.slice(1);var d=[2];a(d,p.length),(d=d.concat(p)).push(2),a(d,m.length);var b=d.concat(m),g=[48];return a(g,b.length),g=g.concat(b),r.encode(g,h)}},{"../utils":419,"bn.js":420}],415:[function(t,l,c){var o=t("hash.js"),r=t("../curves"),n=t("../utils"),s=n.assert,e=n.parseBytes,i=t("./key"),u=t("./signature");function a(h){if(s(h==="ed25519","only tested with ed25519 so far"),!(this instanceof a))return new a(h);h=r[h].curve,this.curve=h,this.g=h.g,this.g.precompute(h.n.bitLength()+1),this.pointClass=h.point().constructor,this.encodingLength=Math.ceil(h.n.bitLength()/8),this.hash=o.sha512}l.exports=a,a.prototype.sign=function(h,p){h=e(h);var m=this.keyFromSecret(p),d=this.hashInt(m.messagePrefix(),h),b=this.g.mul(d),g=this.encodePoint(b),S=this.hashInt(g,m.pubBytes(),h).mul(m.priv()),C=d.add(S).umod(this.curve.n);return this.makeSignature({R:b,S:C,Rencoded:g})},a.prototype.verify=function(h,p,m){h=e(h),p=this.makeSignature(p);var d=this.keyFromPublic(m),b=this.hashInt(p.Rencoded(),d.pubBytes(),h),g=this.g.mul(p.S());return p.R().add(d.pub().mul(b)).eq(g)},a.prototype.hashInt=function(){for(var h=this.hash(),p=0;p<arguments.length;p++)h.update(arguments[p]);return n.intFromLE(h.digest()).umod(this.curve.n)},a.prototype.keyFromPublic=function(h){return i.fromPublic(this,h)},a.prototype.keyFromSecret=function(h){return i.fromSecret(this,h)},a.prototype.makeSignature=function(h){return h instanceof u?h:new u(this,h)},a.prototype.encodePoint=function(h){var p=h.getY().toArray("le",this.encodingLength);return p[this.encodingLength-1]|=h.getX().isOdd()?128:0,p},a.prototype.decodePoint=function(h){var p=(h=n.parseBytes(h)).length-1,m=h.slice(0,p).concat(-129&h[p]),d=(128&h[p])!=0,b=n.intFromLE(m);return this.curve.pointFromY(b,d)},a.prototype.encodeInt=function(h){return h.toArray("le",this.encodingLength)},a.prototype.decodeInt=function(h){return n.intFromLE(h)},a.prototype.isPoint=function(h){return h instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(t,l,c){var o=t("../utils"),r=o.assert,n=o.parseBytes,s=o.cachedProperty;function e(i,u){this.eddsa=i,this._secret=n(u.secret),i.isPoint(u.pub)?this._pub=u.pub:this._pubBytes=n(u.pub)}e.fromPublic=function(i,u){return u instanceof e?u:new e(i,{pub:u})},e.fromSecret=function(i,u){return u instanceof e?u:new e(i,{secret:u})},e.prototype.secret=function(){return this._secret},s(e,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),s(e,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),s(e,"privBytes",(function(){var i=this.eddsa,u=this.hash(),a=i.encodingLength-1,h=u.slice(0,i.encodingLength);return h[0]&=248,h[a]&=127,h[a]|=64,h})),s(e,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),s(e,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),s(e,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),e.prototype.sign=function(i){return r(this._secret,"KeyPair can only verify"),this.eddsa.sign(i,this)},e.prototype.verify=function(i,u){return this.eddsa.verify(i,u,this)},e.prototype.getSecret=function(i){return r(this._secret,"KeyPair is public only"),o.encode(this.secret(),i)},e.prototype.getPublic=function(i){return o.encode(this.pubBytes(),i)},l.exports=e},{"../utils":419}],417:[function(t,l,c){var o=t("bn.js"),r=t("../utils"),n=r.assert,s=r.cachedProperty,e=r.parseBytes;function i(u,a){this.eddsa=u,typeof a!="object"&&(a=e(a)),Array.isArray(a)&&(a={R:a.slice(0,u.encodingLength),S:a.slice(u.encodingLength)}),n(a.R&&a.S,"Signature without R or S"),u.isPoint(a.R)&&(this._R=a.R),a.S instanceof o&&(this._S=a.S),this._Rencoded=Array.isArray(a.R)?a.R:a.Rencoded,this._Sencoded=Array.isArray(a.S)?a.S:a.Sencoded}s(i,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(i,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(i,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(i,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),i.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},i.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},l.exports=i},{"../utils":419,"bn.js":420}],418:[function(t,l,c){l.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(t,l,c){var o=c,r=t("bn.js"),n=t("minimalistic-assert"),s=t("minimalistic-crypto-utils");o.assert=n,o.toArray=s.toArray,o.zero2=s.zero2,o.toHex=s.toHex,o.encode=s.encode,o.getNAF=function(e,i,u){var a=new Array(Math.max(e.bitLength(),u)+1);a.fill(0);for(var h=1<<i+1,p=e.clone(),m=0;m<a.length;m++){var d,b=p.andln(h-1);p.isOdd()?(d=b>(h>>1)-1?(h>>1)-b:b,p.isubn(d)):d=0,a[m]=d,p.iushrn(1)}return a},o.getJSF=function(e,i){var u=[[],[]];e=e.clone(),i=i.clone();for(var a,h=0,p=0;e.cmpn(-h)>0||i.cmpn(-p)>0;){var m,d,b=e.andln(3)+h&3,g=i.andln(3)+p&3;b===3&&(b=-1),g===3&&(g=-1),m=(1&b)==0?0:(a=e.andln(7)+h&7)!==3&&a!==5||g!==2?b:-b,u[0].push(m),d=(1&g)==0?0:(a=i.andln(7)+p&7)!==3&&a!==5||b!==2?g:-g,u[1].push(d),2*h===m+1&&(h=1-h),2*p===d+1&&(p=1-p),e.iushrn(1),i.iushrn(1)}return u},o.cachedProperty=function(e,i,u){var a="_"+i;e.prototype[i]=function(){return this[a]!==void 0?this[a]:this[a]=u.call(this)}},o.parseBytes=function(e){return typeof e=="string"?o.toArray(e,"hex"):e},o.intFromLE=function(e){return new r(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(t,l,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],421:[function(t,l,c){l.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(t,l,c){var o=Object.create||function(P){var B=function(){};return B.prototype=P,new B},r=Object.keys||function(P){var B=[];for(var F in P)Object.prototype.hasOwnProperty.call(P,F)&&B.push(F);return F},n=Function.prototype.bind||function(P){var B=this;return function(){return B.apply(P,arguments)}};function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=o(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}l.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var e,i=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),e=u.x===0}catch{e=!1}function a(P){return P._maxListeners===void 0?s.defaultMaxListeners:P._maxListeners}function h(P,B,F){if(B)P.call(F);else for(var W=P.length,q=z(P,W),A=0;A<W;++A)q[A].call(F)}function p(P,B,F,W){if(B)P.call(F,W);else for(var q=P.length,A=z(P,q),M=0;M<q;++M)A[M].call(F,W)}function m(P,B,F,W,q){if(B)P.call(F,W,q);else for(var A=P.length,M=z(P,A),k=0;k<A;++k)M[k].call(F,W,q)}function d(P,B,F,W,q,A){if(B)P.call(F,W,q,A);else for(var M=P.length,k=z(P,M),y=0;y<M;++y)k[y].call(F,W,q,A)}function b(P,B,F,W){if(B)P.apply(F,W);else for(var q=P.length,A=z(P,q),M=0;M<q;++M)A[M].apply(F,W)}function g(P,B,F,W){var q,A,M;if(typeof F!="function")throw new TypeError('"listener" argument must be a function');if((A=P._events)?(A.newListener&&(P.emit("newListener",B,F.listener?F.listener:F),A=P._events),M=A[B]):(A=P._events=o(null),P._eventsCount=0),M){if(typeof M=="function"?M=A[B]=W?[F,M]:[M,F]:W?M.unshift(F):M.push(F),!M.warned&&(q=a(P))&&q>0&&M.length>q){M.warned=!0;var k=new Error("Possible EventEmitter memory leak detected. "+M.length+' "'+String(B)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');k.name="MaxListenersExceededWarning",k.emitter=P,k.type=B,k.count=M.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",k.name,k.message)}}else M=A[B]=F,++P._eventsCount;return P}function S(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var P=new Array(arguments.length),B=0;B<P.length;++B)P[B]=arguments[B];this.listener.apply(this.target,P)}}function C(P,B,F){var W={fired:!1,wrapFn:void 0,target:P,type:B,listener:F},q=n.call(S,W);return q.listener=F,W.wrapFn=q,q}function I(P,B,F){var W=P._events;if(!W)return[];var q=W[B];return q?typeof q=="function"?F?[q.listener||q]:[q]:F?(function(A){for(var M=new Array(A.length),k=0;k<M.length;++k)M[k]=A[k].listener||A[k];return M})(q):z(q,q.length):[]}function D(P){var B=this._events;if(B){var F=B[P];if(typeof F=="function")return 1;if(F)return F.length}return 0}function z(P,B){for(var F=new Array(B),W=0;W<B;++W)F[W]=P[W];return F}e?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(P){if(typeof P!="number"||P<0||P!=P)throw new TypeError('"defaultMaxListeners" must be a positive number');i=P}}):s.defaultMaxListeners=i,s.prototype.setMaxListeners=function(P){if(typeof P!="number"||P<0||isNaN(P))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=P,this},s.prototype.getMaxListeners=function(){return a(this)},s.prototype.emit=function(P){var B,F,W,q,A,M,k=P==="error";if(M=this._events)k=k&&M.error==null;else if(!k)return!1;if(k){if(arguments.length>1&&(B=arguments[1]),B instanceof Error)throw B;var y=new Error('Unhandled "error" event. ('+B+")");throw y.context=B,y}if(!(F=M[P]))return!1;var w=typeof F=="function";switch(W=arguments.length){case 1:h(F,w,this);break;case 2:p(F,w,this,arguments[1]);break;case 3:m(F,w,this,arguments[1],arguments[2]);break;case 4:d(F,w,this,arguments[1],arguments[2],arguments[3]);break;default:for(q=new Array(W-1),A=1;A<W;A++)q[A-1]=arguments[A];b(F,w,this,q)}return!0},s.prototype.addListener=function(P,B){return g(this,P,B,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(P,B){return g(this,P,B,!0)},s.prototype.once=function(P,B){if(typeof B!="function")throw new TypeError('"listener" argument must be a function');return this.on(P,C(this,P,B)),this},s.prototype.prependOnceListener=function(P,B){if(typeof B!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(P,C(this,P,B)),this},s.prototype.removeListener=function(P,B){var F,W,q,A,M;if(typeof B!="function")throw new TypeError('"listener" argument must be a function');if(!(W=this._events))return this;if(!(F=W[P]))return this;if(F===B||F.listener===B)--this._eventsCount==0?this._events=o(null):(delete W[P],W.removeListener&&this.emit("removeListener",P,F.listener||B));else if(typeof F!="function"){for(q=-1,A=F.length-1;A>=0;A--)if(F[A]===B||F[A].listener===B){M=F[A].listener,q=A;break}if(q<0)return this;q===0?F.shift():(function(k,y){for(var w=y,x=w+1,_=k.length;x<_;w+=1,x+=1)k[w]=k[x];k.pop()})(F,q),F.length===1&&(W[P]=F[0]),W.removeListener&&this.emit("removeListener",P,M||B)}return this},s.prototype.removeAllListeners=function(P){var B,F,W;if(!(F=this._events))return this;if(!F.removeListener)return arguments.length===0?(this._events=o(null),this._eventsCount=0):F[P]&&(--this._eventsCount==0?this._events=o(null):delete F[P]),this;if(arguments.length===0){var q,A=r(F);for(W=0;W<A.length;++W)(q=A[W])!=="removeListener"&&this.removeAllListeners(q);return this.removeAllListeners("removeListener"),this._events=o(null),this._eventsCount=0,this}if(typeof(B=F[P])=="function")this.removeListener(P,B);else if(B)for(W=B.length-1;W>=0;W--)this.removeListener(P,B[W]);return this},s.prototype.listeners=function(P){return I(this,P,!0)},s.prototype.rawListeners=function(P){return I(this,P,!1)},s.listenerCount=function(P,B){return typeof P.listenerCount=="function"?P.listenerCount(B):D.call(P,B)},s.prototype.listenerCount=D,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("md5.js");l.exports=function(n,s,e,i){if(o.isBuffer(n)||(n=o.from(n,"binary")),s&&(o.isBuffer(s)||(s=o.from(s,"binary")),s.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var u=e/8,a=o.alloc(u),h=o.alloc(i||0),p=o.alloc(0);u>0||i>0;){var m=new r;m.update(p),m.update(n),s&&m.update(s),p=m.digest();var d=0;if(u>0){var b=a.length-u;d=Math.min(u,p.length),p.copy(a,b,0,d),u-=d}if(d<p.length&&i>0){var g=h.length-i,S=Math.min(i,p.length-d);p.copy(h,g,d,d+S),i-=S}}return p.fill(0),{key:a,iv:h}}},{"md5.js":450,"safe-buffer":494}],424:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0}),c.CsvParserStream=c.ParserOptions=c.parseFile=c.parseStream=c.parseString=c.parse=c.FormatterOptions=c.CsvFormatterStream=c.writeToPath=c.writeToString=c.writeToBuffer=c.writeToStream=c.write=c.format=void 0;var o=t("@fast-csv/format");Object.defineProperty(c,"format",{enumerable:!0,get:function(){return o.format}}),Object.defineProperty(c,"write",{enumerable:!0,get:function(){return o.write}}),Object.defineProperty(c,"writeToStream",{enumerable:!0,get:function(){return o.writeToStream}}),Object.defineProperty(c,"writeToBuffer",{enumerable:!0,get:function(){return o.writeToBuffer}}),Object.defineProperty(c,"writeToString",{enumerable:!0,get:function(){return o.writeToString}}),Object.defineProperty(c,"writeToPath",{enumerable:!0,get:function(){return o.writeToPath}}),Object.defineProperty(c,"CsvFormatterStream",{enumerable:!0,get:function(){return o.CsvFormatterStream}}),Object.defineProperty(c,"FormatterOptions",{enumerable:!0,get:function(){return o.FormatterOptions}});var r=t("@fast-csv/parse");Object.defineProperty(c,"parse",{enumerable:!0,get:function(){return r.parse}}),Object.defineProperty(c,"parseString",{enumerable:!0,get:function(){return r.parseString}}),Object.defineProperty(c,"parseStream",{enumerable:!0,get:function(){return r.parseStream}}),Object.defineProperty(c,"parseFile",{enumerable:!0,get:function(){return r.parseFile}}),Object.defineProperty(c,"ParserOptions",{enumerable:!0,get:function(){return r.ParserOptions}}),Object.defineProperty(c,"CsvParserStream",{enumerable:!0,get:function(){return r.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(t,l,c){var o=t("safe-buffer").Buffer,r=t("readable-stream").Transform;function n(s){r.call(this),this._block=o.allocUnsafe(s),this._blockSize=s,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}t("inherits")(n,r),n.prototype._transform=function(s,e,i){var u=null;try{this.update(s,e)}catch(a){u=a}i(u)},n.prototype._flush=function(s){var e=null;try{this.push(this.digest())}catch(i){e=i}s(e)},n.prototype.update=function(s,e){if((function(m,d){if(!o.isBuffer(m)&&typeof m!="string")throw new TypeError(d+" must be a string or a buffer")})(s,"Data"),this._finalized)throw new Error("Digest already called");o.isBuffer(s)||(s=o.from(s,e));for(var i=this._block,u=0;this._blockOffset+s.length-u>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)i[a++]=s[u++];this._update(),this._blockOffset=0}for(;u<s.length;)i[this._blockOffset++]=s[u++];for(var h=0,p=8*s.length;p>0;++h)this._length[h]+=p,(p=this._length[h]/4294967296|0)>0&&(this._length[h]-=4294967296*p);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.prototype.digest=function(s){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();s!==void 0&&(e=e.toString(s)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return e},n.prototype._digest=function(){throw new Error("_digest is not implemented")},l.exports=n},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(t,l,c){var o=c;o.utils=t("./hash/utils"),o.common=t("./hash/common"),o.sha=t("./hash/sha"),o.ripemd=t("./hash/ripemd"),o.hmac=t("./hash/hmac"),o.sha1=o.sha.sha1,o.sha256=o.sha.sha256,o.sha224=o.sha.sha224,o.sha384=o.sha.sha384,o.sha512=o.sha.sha512,o.ripemd160=o.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(t,l,c){var o=t("./utils"),r=t("minimalistic-assert");function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}c.BlockHash=n,n.prototype.update=function(s,e){if(s=o.toArray(s,e),this.pending?this.pending=this.pending.concat(s):this.pending=s,this.pendingTotal+=s.length,this.pending.length>=this._delta8){var i=(s=this.pending).length%this._delta8;this.pending=s.slice(s.length-i,s.length),this.pending.length===0&&(this.pending=null),s=o.join32(s,0,s.length-i,this.endian);for(var u=0;u<s.length;u+=this._delta32)this._update(s,u,u+this._delta32)}return this},n.prototype.digest=function(s){return this.update(this._pad()),r(this.pending===null),this._digest(s)},n.prototype._pad=function(){var s=this.pendingTotal,e=this._delta8,i=e-(s+this.padLength)%e,u=new Array(i+this.padLength);u[0]=128;for(var a=1;a<i;a++)u[a]=0;if(s<<=3,this.endian==="big"){for(var h=8;h<this.padLength;h++)u[a++]=0;u[a++]=0,u[a++]=0,u[a++]=0,u[a++]=0,u[a++]=s>>>24&255,u[a++]=s>>>16&255,u[a++]=s>>>8&255,u[a++]=255&s}else for(u[a++]=255&s,u[a++]=s>>>8&255,u[a++]=s>>>16&255,u[a++]=s>>>24&255,u[a++]=0,u[a++]=0,u[a++]=0,u[a++]=0,h=8;h<this.padLength;h++)u[a++]=0;return u}},{"./utils":437,"minimalistic-assert":453}],428:[function(t,l,c){var o=t("./utils"),r=t("minimalistic-assert");function n(s,e,i){if(!(this instanceof n))return new n(s,e,i);this.Hash=s,this.blockSize=s.blockSize/8,this.outSize=s.outSize/8,this.inner=null,this.outer=null,this._init(o.toArray(e,i))}l.exports=n,n.prototype._init=function(s){s.length>this.blockSize&&(s=new this.Hash().update(s).digest()),r(s.length<=this.blockSize);for(var e=s.length;e<this.blockSize;e++)s.push(0);for(e=0;e<s.length;e++)s[e]^=54;for(this.inner=new this.Hash().update(s),e=0;e<s.length;e++)s[e]^=106;this.outer=new this.Hash().update(s)},n.prototype.update=function(s,e){return this.inner.update(s,e),this},n.prototype.digest=function(s){return this.outer.update(this.inner.digest()),this.outer.digest(s)}},{"./utils":437,"minimalistic-assert":453}],429:[function(t,l,c){var o=t("./utils"),r=t("./common"),n=o.rotl32,s=o.sum32,e=o.sum32_3,i=o.sum32_4,u=r.BlockHash;function a(){if(!(this instanceof a))return new a;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(C,I,D,z){return C<=15?I^D^z:C<=31?I&D|~I&z:C<=47?(I|~D)^z:C<=63?I&z|D&~z:I^(D|~z)}function p(C){return C<=15?0:C<=31?1518500249:C<=47?1859775393:C<=63?2400959708:2840853838}function m(C){return C<=15?1352829926:C<=31?1548603684:C<=47?1836072691:C<=63?2053994217:0}o.inherits(a,u),c.ripemd160=a,a.blockSize=512,a.outSize=160,a.hmacStrength=192,a.padLength=64,a.prototype._update=function(C,I){for(var D=this.h[0],z=this.h[1],P=this.h[2],B=this.h[3],F=this.h[4],W=D,q=z,A=P,M=B,k=F,y=0;y<80;y++){var w=s(n(i(D,h(y,z,P,B),C[d[y]+I],p(y)),g[y]),F);D=F,F=B,B=n(P,10),P=z,z=w,w=s(n(i(W,h(79-y,q,A,M),C[b[y]+I],m(y)),S[y]),k),W=k,k=M,M=n(A,10),A=q,q=w}w=e(this.h[1],P,M),this.h[1]=e(this.h[2],B,k),this.h[2]=e(this.h[3],F,W),this.h[3]=e(this.h[4],D,q),this.h[4]=e(this.h[0],z,A),this.h[0]=w},a.prototype._digest=function(C){return C==="hex"?o.toHex32(this.h,"little"):o.split32(this.h,"little")};var d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],S=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":427,"./utils":437}],430:[function(t,l,c){c.sha1=t("./sha/1"),c.sha224=t("./sha/224"),c.sha256=t("./sha/256"),c.sha384=t("./sha/384"),c.sha512=t("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(t,l,c){var o=t("../utils"),r=t("../common"),n=t("./common"),s=o.rotl32,e=o.sum32,i=o.sum32_5,u=n.ft_1,a=r.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}o.inherits(p,a),l.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.prototype._update=function(m,d){for(var b=this.W,g=0;g<16;g++)b[g]=m[d+g];for(;g<b.length;g++)b[g]=s(b[g-3]^b[g-8]^b[g-14]^b[g-16],1);var S=this.h[0],C=this.h[1],I=this.h[2],D=this.h[3],z=this.h[4];for(g=0;g<b.length;g++){var P=~~(g/20),B=i(s(S,5),u(P,C,I,D),z,b[g],h[P]);z=D,D=I,I=s(C,30),C=S,S=B}this.h[0]=e(this.h[0],S),this.h[1]=e(this.h[1],C),this.h[2]=e(this.h[2],I),this.h[3]=e(this.h[3],D),this.h[4]=e(this.h[4],z)},p.prototype._digest=function(m){return m==="hex"?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(t,l,c){var o=t("../utils"),r=t("./256");function n(){if(!(this instanceof n))return new n;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}o.inherits(n,r),l.exports=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(s){return s==="hex"?o.toHex32(this.h.slice(0,7),"big"):o.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(t,l,c){var o=t("../utils"),r=t("../common"),n=t("./common"),s=t("minimalistic-assert"),e=o.sum32,i=o.sum32_4,u=o.sum32_5,a=n.ch32,h=n.maj32,p=n.s0_256,m=n.s1_256,d=n.g0_256,b=n.g1_256,g=r.BlockHash,S=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function C(){if(!(this instanceof C))return new C;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=S,this.W=new Array(64)}o.inherits(C,g),l.exports=C,C.blockSize=512,C.outSize=256,C.hmacStrength=192,C.padLength=64,C.prototype._update=function(I,D){for(var z=this.W,P=0;P<16;P++)z[P]=I[D+P];for(;P<z.length;P++)z[P]=i(b(z[P-2]),z[P-7],d(z[P-15]),z[P-16]);var B=this.h[0],F=this.h[1],W=this.h[2],q=this.h[3],A=this.h[4],M=this.h[5],k=this.h[6],y=this.h[7];for(s(this.k.length===z.length),P=0;P<z.length;P++){var w=u(y,m(A),a(A,M,k),this.k[P],z[P]),x=e(p(B),h(B,F,W));y=k,k=M,M=A,A=e(q,w),q=W,W=F,F=B,B=e(w,x)}this.h[0]=e(this.h[0],B),this.h[1]=e(this.h[1],F),this.h[2]=e(this.h[2],W),this.h[3]=e(this.h[3],q),this.h[4]=e(this.h[4],A),this.h[5]=e(this.h[5],M),this.h[6]=e(this.h[6],k),this.h[7]=e(this.h[7],y)},C.prototype._digest=function(I){return I==="hex"?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(t,l,c){var o=t("../utils"),r=t("./512");function n(){if(!(this instanceof n))return new n;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}o.inherits(n,r),l.exports=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(s){return s==="hex"?o.toHex32(this.h.slice(0,12),"big"):o.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(t,l,c){var o=t("../utils"),r=t("../common"),n=t("minimalistic-assert"),s=o.rotr64_hi,e=o.rotr64_lo,i=o.shr64_hi,u=o.shr64_lo,a=o.sum64,h=o.sum64_hi,p=o.sum64_lo,m=o.sum64_4_hi,d=o.sum64_4_lo,b=o.sum64_5_hi,g=o.sum64_5_lo,S=r.BlockHash,C=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function I(){if(!(this instanceof I))return new I;S.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=C,this.W=new Array(160)}function D(x,_,T,O,j){var V=x&T^~x&j;return V<0&&(V+=4294967296),V}function z(x,_,T,O,j,V){var X=_&O^~_&V;return X<0&&(X+=4294967296),X}function P(x,_,T,O,j){var V=x&T^x&j^T&j;return V<0&&(V+=4294967296),V}function B(x,_,T,O,j,V){var X=_&O^_&V^O&V;return X<0&&(X+=4294967296),X}function F(x,_){var T=s(x,_,28)^s(_,x,2)^s(_,x,7);return T<0&&(T+=4294967296),T}function W(x,_){var T=e(x,_,28)^e(_,x,2)^e(_,x,7);return T<0&&(T+=4294967296),T}function q(x,_){var T=s(x,_,14)^s(x,_,18)^s(_,x,9);return T<0&&(T+=4294967296),T}function A(x,_){var T=e(x,_,14)^e(x,_,18)^e(_,x,9);return T<0&&(T+=4294967296),T}function M(x,_){var T=s(x,_,1)^s(x,_,8)^i(x,_,7);return T<0&&(T+=4294967296),T}function k(x,_){var T=e(x,_,1)^e(x,_,8)^u(x,_,7);return T<0&&(T+=4294967296),T}function y(x,_){var T=s(x,_,19)^s(_,x,29)^i(x,_,6);return T<0&&(T+=4294967296),T}function w(x,_){var T=e(x,_,19)^e(_,x,29)^u(x,_,6);return T<0&&(T+=4294967296),T}o.inherits(I,S),l.exports=I,I.blockSize=1024,I.outSize=512,I.hmacStrength=192,I.padLength=128,I.prototype._prepareBlock=function(x,_){for(var T=this.W,O=0;O<32;O++)T[O]=x[_+O];for(;O<T.length;O+=2){var j=y(T[O-4],T[O-3]),V=w(T[O-4],T[O-3]),X=T[O-14],J=T[O-13],L=M(T[O-30],T[O-29]),G=k(T[O-30],T[O-29]),N=T[O-32],R=T[O-31];T[O]=m(j,V,X,J,L,G,N,R),T[O+1]=d(j,V,X,J,L,G,N,R)}},I.prototype._update=function(x,_){this._prepareBlock(x,_);var T=this.W,O=this.h[0],j=this.h[1],V=this.h[2],X=this.h[3],J=this.h[4],L=this.h[5],G=this.h[6],N=this.h[7],R=this.h[8],U=this.h[9],K=this.h[10],rt=this.h[11],Z=this.h[12],et=this.h[13],ht=this.h[14],lt=this.h[15];n(this.k.length===T.length);for(var Q=0;Q<T.length;Q+=2){var ot=ht,nt=lt,ut=q(R,U),ct=A(R,U),ft=D(R,U,K,rt,Z),mt=z(R,U,K,rt,Z,et),gt=this.k[Q],xt=this.k[Q+1],Nt=T[Q],It=T[Q+1],At=b(ot,nt,ut,ct,ft,mt,gt,xt,Nt,It),Ut=g(ot,nt,ut,ct,ft,mt,gt,xt,Nt,It);ot=F(O,j),nt=W(O,j),ut=P(O,j,V,X,J),ct=B(O,j,V,X,J,L);var Ht=h(ot,nt,ut,ct),zt=p(ot,nt,ut,ct);ht=Z,lt=et,Z=K,et=rt,K=R,rt=U,R=h(G,N,At,Ut),U=p(N,N,At,Ut),G=J,N=L,J=V,L=X,V=O,X=j,O=h(At,Ut,Ht,zt),j=p(At,Ut,Ht,zt)}a(this.h,0,O,j),a(this.h,2,V,X),a(this.h,4,J,L),a(this.h,6,G,N),a(this.h,8,R,U),a(this.h,10,K,rt),a(this.h,12,Z,et),a(this.h,14,ht,lt)},I.prototype._digest=function(x){return x==="hex"?o.toHex32(this.h,"big"):o.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(t,l,c){var o=t("../utils").rotr32;function r(e,i,u){return e&i^~e&u}function n(e,i,u){return e&i^e&u^i&u}function s(e,i,u){return e^i^u}c.ft_1=function(e,i,u,a){return e===0?r(i,u,a):e===1||e===3?s(i,u,a):e===2?n(i,u,a):void 0},c.ch32=r,c.maj32=n,c.p32=s,c.s0_256=function(e){return o(e,2)^o(e,13)^o(e,22)},c.s1_256=function(e){return o(e,6)^o(e,11)^o(e,25)},c.g0_256=function(e){return o(e,7)^o(e,18)^e>>>3},c.g1_256=function(e){return o(e,17)^o(e,19)^e>>>10}},{"../utils":437}],437:[function(t,l,c){var o=t("minimalistic-assert"),r=t("inherits");function n(u,a){return(64512&u.charCodeAt(a))==55296&&!(a<0||a+1>=u.length)&&(64512&u.charCodeAt(a+1))==56320}function s(u){return(u>>>24|u>>>8&65280|u<<8&16711680|(255&u)<<24)>>>0}function e(u){return u.length===1?"0"+u:u}function i(u){return u.length===7?"0"+u:u.length===6?"00"+u:u.length===5?"000"+u:u.length===4?"0000"+u:u.length===3?"00000"+u:u.length===2?"000000"+u:u.length===1?"0000000"+u:u}c.inherits=r,c.toArray=function(u,a){if(Array.isArray(u))return u.slice();if(!u)return[];var h=[];if(typeof u=="string")if(a){if(a==="hex")for((u=u.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(u="0"+u),m=0;m<u.length;m+=2)h.push(parseInt(u[m]+u[m+1],16))}else for(var p=0,m=0;m<u.length;m++){var d=u.charCodeAt(m);d<128?h[p++]=d:d<2048?(h[p++]=d>>6|192,h[p++]=63&d|128):n(u,m)?(d=65536+((1023&d)<<10)+(1023&u.charCodeAt(++m)),h[p++]=d>>18|240,h[p++]=d>>12&63|128,h[p++]=d>>6&63|128,h[p++]=63&d|128):(h[p++]=d>>12|224,h[p++]=d>>6&63|128,h[p++]=63&d|128)}else for(m=0;m<u.length;m++)h[m]=0|u[m];return h},c.toHex=function(u){for(var a="",h=0;h<u.length;h++)a+=e(u[h].toString(16));return a},c.htonl=s,c.toHex32=function(u,a){for(var h="",p=0;p<u.length;p++){var m=u[p];a==="little"&&(m=s(m)),h+=i(m.toString(16))}return h},c.zero2=e,c.zero8=i,c.join32=function(u,a,h,p){var m=h-a;o(m%4==0);for(var d=new Array(m/4),b=0,g=a;b<d.length;b++,g+=4){var S;S=p==="big"?u[g]<<24|u[g+1]<<16|u[g+2]<<8|u[g+3]:u[g+3]<<24|u[g+2]<<16|u[g+1]<<8|u[g],d[b]=S>>>0}return d},c.split32=function(u,a){for(var h=new Array(4*u.length),p=0,m=0;p<u.length;p++,m+=4){var d=u[p];a==="big"?(h[m]=d>>>24,h[m+1]=d>>>16&255,h[m+2]=d>>>8&255,h[m+3]=255&d):(h[m+3]=d>>>24,h[m+2]=d>>>16&255,h[m+1]=d>>>8&255,h[m]=255&d)}return h},c.rotr32=function(u,a){return u>>>a|u<<32-a},c.rotl32=function(u,a){return u<<a|u>>>32-a},c.sum32=function(u,a){return u+a>>>0},c.sum32_3=function(u,a,h){return u+a+h>>>0},c.sum32_4=function(u,a,h,p){return u+a+h+p>>>0},c.sum32_5=function(u,a,h,p,m){return u+a+h+p+m>>>0},c.sum64=function(u,a,h,p){var m=u[a],d=p+u[a+1]>>>0,b=(d<p?1:0)+h+m;u[a]=b>>>0,u[a+1]=d},c.sum64_hi=function(u,a,h,p){return(a+p>>>0<a?1:0)+u+h>>>0},c.sum64_lo=function(u,a,h,p){return a+p>>>0},c.sum64_4_hi=function(u,a,h,p,m,d,b,g){var S=0,C=a;return S+=(C=C+p>>>0)<a?1:0,S+=(C=C+d>>>0)<d?1:0,u+h+m+b+(S+=(C=C+g>>>0)<g?1:0)>>>0},c.sum64_4_lo=function(u,a,h,p,m,d,b,g){return a+p+d+g>>>0},c.sum64_5_hi=function(u,a,h,p,m,d,b,g,S,C){var I=0,D=a;return I+=(D=D+p>>>0)<a?1:0,I+=(D=D+d>>>0)<d?1:0,I+=(D=D+g>>>0)<g?1:0,u+h+m+b+S+(I+=(D=D+C>>>0)<C?1:0)>>>0},c.sum64_5_lo=function(u,a,h,p,m,d,b,g,S,C){return a+p+d+g+C>>>0},c.rotr64_hi=function(u,a,h){return(a<<32-h|u>>>h)>>>0},c.rotr64_lo=function(u,a,h){return(u<<32-h|a>>>h)>>>0},c.shr64_hi=function(u,a,h){return u>>>h},c.shr64_lo=function(u,a,h){return(u<<32-h|a>>>h)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(t,l,c){var o=t("hash.js"),r=t("minimalistic-crypto-utils"),n=t("minimalistic-assert");function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var i=r.toArray(e.entropy,e.entropyEnc||"hex"),u=r.toArray(e.nonce,e.nonceEnc||"hex"),a=r.toArray(e.pers,e.persEnc||"hex");n(i.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(i,u,a)}l.exports=s,s.prototype._init=function(e,i,u){var a=e.concat(i).concat(u);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var h=0;h<this.V.length;h++)this.K[h]=0,this.V[h]=1;this._update(a),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new o.hmac(this.hash,this.K)},s.prototype._update=function(e){var i=this._hmac().update(this.V).update([0]);e&&(i=i.update(e)),this.K=i.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,i,u,a){typeof i!="string"&&(a=u,u=i,i=null),e=r.toArray(e,i),u=r.toArray(u,a),n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(u||[])),this._reseed=1},s.prototype.generate=function(e,i,u,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof i!="string"&&(a=u,u=i,i=null),u&&(u=r.toArray(u,a||"hex"),this._update(u));for(var h=[];h.length<e;)this.V=this._hmac().update(this.V).digest(),h=h.concat(this.V);var p=h.slice(0,e);return this._update(u),this._reseed++,r.encode(p,i)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(t,l,c){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */c.read=function(o,r,n,s,e){var i,u,a=8*e-s-1,h=(1<<a)-1,p=h>>1,m=-7,d=n?e-1:0,b=n?-1:1,g=o[r+d];for(d+=b,i=g&(1<<-m)-1,g>>=-m,m+=a;m>0;i=256*i+o[r+d],d+=b,m-=8);for(u=i&(1<<-m)-1,i>>=-m,m+=s;m>0;u=256*u+o[r+d],d+=b,m-=8);if(i===0)i=1-p;else{if(i===h)return u?NaN:1/0*(g?-1:1);u+=Math.pow(2,s),i-=p}return(g?-1:1)*u*Math.pow(2,i-s)},c.write=function(o,r,n,s,e,i){var u,a,h,p=8*i-e-1,m=(1<<p)-1,d=m>>1,b=e===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=s?0:i-1,S=s?1:-1,C=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(a=isNaN(r)?1:0,u=m):(u=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-u))<1&&(u--,h*=2),(r+=u+d>=1?b/h:b*Math.pow(2,1-d))*h>=2&&(u++,h/=2),u+d>=m?(a=0,u=m):u+d>=1?(a=(r*h-1)*Math.pow(2,e),u+=d):(a=r*Math.pow(2,d-1)*Math.pow(2,e),u=0));e>=8;o[n+g]=255&a,g+=S,a/=256,e-=8);for(u=u<<e|a,p+=e;p>0;o[n+g]=255&u,g+=S,u/=256,p-=8);o[n+g-S]|=128*C}},{}],440:[function(t,l,c){typeof Object.create=="function"?l.exports=function(o,r){r&&(o.super_=r,o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:l.exports=function(o,r){if(r){o.super_=r;var n=function(){};n.prototype=r.prototype,o.prototype=new n,o.prototype.constructor=o}}},{}],441:[function(t,l,c){(function(o,r,n,s,e,i,u,a){(function(){/*!
|
|
265
265
|
|
|
266
266
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
JSZip uses the library pako released under the MIT license :
|
|
273
273
|
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
274
274
|
*/(function(h){typeof c=="object"&&l!==void 0?l.exports=h():(typeof window<"u"?window:r!==void 0?r:typeof self<"u"?self:this).JSZip=h()})((function(){return(function h(p,m,d){function b(C,I){if(!m[C]){if(!p[C]){var D=typeof t=="function"&&t;if(!I&&D)return D(C,!0);if(g)return g(C,!0);var z=new Error("Cannot find module '"+C+"'");throw z.code="MODULE_NOT_FOUND",z}var P=m[C]={exports:{}};p[C][0].call(P.exports,(function(B){return b(p[C][1][B]||B)}),P,P.exports,h,p,m,d)}return m[C].exports}for(var g=typeof t=="function"&&t,S=0;S<d.length;S++)b(d[S]);return b})({1:[function(h,p,m){var d=h("./utils"),b=h("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";m.encode=function(S){for(var C,I,D,z,P,B,F,W=[],q=0,A=S.length,M=A,k=d.getTypeOf(S)!=="string";q<S.length;)M=A-q,D=k?(C=S[q++],I=q<A?S[q++]:0,q<A?S[q++]:0):(C=S.charCodeAt(q++),I=q<A?S.charCodeAt(q++):0,q<A?S.charCodeAt(q++):0),z=C>>2,P=(3&C)<<4|I>>4,B=1<M?(15&I)<<2|D>>6:64,F=2<M?63&D:64,W.push(g.charAt(z)+g.charAt(P)+g.charAt(B)+g.charAt(F));return W.join("")},m.decode=function(S){var C,I,D,z,P,B,F=0,W=0,q="data:";if(S.substr(0,q.length)===q)throw new Error("Invalid base64 input, it looks like a data url.");var A,M=3*(S=S.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(S.charAt(S.length-1)===g.charAt(64)&&M--,S.charAt(S.length-2)===g.charAt(64)&&M--,M%1!=0)throw new Error("Invalid base64 input, bad content length.");for(A=b.uint8array?new Uint8Array(0|M):new Array(0|M);F<S.length;)C=g.indexOf(S.charAt(F++))<<2|(z=g.indexOf(S.charAt(F++)))>>4,I=(15&z)<<4|(P=g.indexOf(S.charAt(F++)))>>2,D=(3&P)<<6|(B=g.indexOf(S.charAt(F++))),A[W++]=C,P!==64&&(A[W++]=I),B!==64&&(A[W++]=D);return A}},{"./support":30,"./utils":32}],2:[function(h,p,m){var d=h("./external"),b=h("./stream/DataWorker"),g=h("./stream/Crc32Probe"),S=h("./stream/DataLengthProbe");function C(I,D,z,P,B){this.compressedSize=I,this.uncompressedSize=D,this.crc32=z,this.compression=P,this.compressedContent=B}C.prototype={getContentWorker:function(){var I=new b(d.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new S("data_length")),D=this;return I.on("end",(function(){if(this.streamInfo.data_length!==D.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),I},getCompressedWorker:function(){return new b(d.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},C.createWorkerFrom=function(I,D,z){return I.pipe(new g).pipe(new S("uncompressedSize")).pipe(D.compressWorker(z)).pipe(new S("compressedSize")).withStreamInfo("compression",D)},p.exports=C},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(h,p,m){var d=h("./stream/GenericWorker");m.STORE={magic:"\0\0",compressWorker:function(){return new d("STORE compression")},uncompressWorker:function(){return new d("STORE decompression")}},m.DEFLATE=h("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(h,p,m){var d=h("./utils"),b=(function(){for(var g,S=[],C=0;C<256;C++){g=C;for(var I=0;I<8;I++)g=1&g?3988292384^g>>>1:g>>>1;S[C]=g}return S})();p.exports=function(g,S){return g!==void 0&&g.length?d.getTypeOf(g)!=="string"?(function(C,I,D,z){var P=b,B=0+D;C^=-1;for(var F=0;F<B;F++)C=C>>>8^P[255&(C^I[F])];return-1^C})(0|S,g,g.length):(function(C,I,D,z){var P=b,B=0+D;C^=-1;for(var F=0;F<B;F++)C=C>>>8^P[255&(C^I.charCodeAt(F))];return-1^C})(0|S,g,g.length):0}},{"./utils":32}],5:[function(h,p,m){m.base64=!1,m.binary=!1,m.dir=!1,m.createFolders=!0,m.date=null,m.compression=null,m.compressionOptions=null,m.comment=null,m.unixPermissions=null,m.dosPermissions=null},{}],6:[function(h,p,m){var d;d=typeof Promise<"u"?Promise:h("lie"),p.exports={Promise:d}},{lie:37}],7:[function(h,p,m){var d=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",b=h("pako"),g=h("./utils"),S=h("./stream/GenericWorker"),C=d?"uint8array":"array";function I(D,z){S.call(this,"FlateWorker/"+D),this._pako=null,this._pakoAction=D,this._pakoOptions=z,this.meta={}}m.magic="\b\0",g.inherits(I,S),I.prototype.processChunk=function(D){this.meta=D.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(C,D.data),!1)},I.prototype.flush=function(){S.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},I.prototype.cleanUp=function(){S.prototype.cleanUp.call(this),this._pako=null},I.prototype._createPako=function(){this._pako=new b[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var D=this;this._pako.onData=function(z){D.push({data:z,meta:D.meta})}},m.compressWorker=function(D){return new I("Deflate",D)},m.uncompressWorker=function(){return new I("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(h,p,m){function d(P,B){var F,W="";for(F=0;F<B;F++)W+=String.fromCharCode(255&P),P>>>=8;return W}function b(P,B,F,W,q,A){var M,k,y=P.file,w=P.compression,x=A!==C.utf8encode,_=g.transformTo("string",A(y.name)),T=g.transformTo("string",C.utf8encode(y.name)),O=y.comment,j=g.transformTo("string",A(O)),V=g.transformTo("string",C.utf8encode(O)),X=T.length!==y.name.length,J=V.length!==O.length,L="",G="",N="",R=y.dir,U=y.date,K={crc32:0,compressedSize:0,uncompressedSize:0};B&&!F||(K.crc32=P.crc32,K.compressedSize=P.compressedSize,K.uncompressedSize=P.uncompressedSize);var rt=0;B&&(rt|=8),x||!X&&!J||(rt|=2048);var Z=0,et=0;R&&(Z|=16),q==="UNIX"?(et=798,Z|=(function(lt,Q){var ot=lt;return lt||(ot=Q?16893:33204),(65535&ot)<<16})(y.unixPermissions,R)):(et=20,Z|=(function(lt){return 63&(lt||0)})(y.dosPermissions)),M=U.getUTCHours(),M<<=6,M|=U.getUTCMinutes(),M<<=5,M|=U.getUTCSeconds()/2,k=U.getUTCFullYear()-1980,k<<=4,k|=U.getUTCMonth()+1,k<<=5,k|=U.getUTCDate(),X&&(G=d(1,1)+d(I(_),4)+T,L+="up"+d(G.length,2)+G),J&&(N=d(1,1)+d(I(j),4)+V,L+="uc"+d(N.length,2)+N);var ht="";return ht+=`
|
|
275
|
-
\0`,ht+=d(rt,2),ht+=w.magic,ht+=d(M,2),ht+=d(k,2),ht+=d(K.crc32,4),ht+=d(K.compressedSize,4),ht+=d(K.uncompressedSize,4),ht+=d(_.length,2),ht+=d(L.length,2),{fileRecord:D.LOCAL_FILE_HEADER+ht+_+L,dirRecord:D.CENTRAL_FILE_HEADER+d(et,2)+ht+d(j.length,2)+"\0\0\0\0"+d(Z,4)+d(W,4)+_+L+j}}var g=h("../utils"),S=h("../stream/GenericWorker"),C=h("../utf8"),I=h("../crc32"),D=h("../signature");function z(P,B,F,W){S.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=F,this.encodeFileName=W,this.streamFiles=P,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(z,S),z.prototype.push=function(P){var B=P.meta.percent||0,F=this.entriesCount,W=this._sources.length;this.accumulate?this.contentBuffer.push(P):(this.bytesWritten+=P.data.length,S.prototype.push.call(this,{data:P.data,meta:{currentFile:this.currentFile,percent:F?(B+100*(F-W-1))/F:100}}))},z.prototype.openedSource=function(P){this.currentSourceOffset=this.bytesWritten,this.currentFile=P.file.name;var B=this.streamFiles&&!P.file.dir;if(B){var F=b(P,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:F.fileRecord,meta:{percent:0}})}else this.accumulate=!0},z.prototype.closedSource=function(P){this.accumulate=!1;var B=this.streamFiles&&!P.file.dir,F=b(P,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(F.dirRecord),B)this.push({data:(function(W){return D.DATA_DESCRIPTOR+d(W.crc32,4)+d(W.compressedSize,4)+d(W.uncompressedSize,4)})(P),meta:{percent:100}});else for(this.push({data:F.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},z.prototype.flush=function(){for(var P=this.bytesWritten,B=0;B<this.dirRecords.length;B++)this.push({data:this.dirRecords[B],meta:{percent:100}});var F=this.bytesWritten-P,W=(function(q,A,M,k,y){var w=g.transformTo("string",y(k));return D.CENTRAL_DIRECTORY_END+"\0\0\0\0"+d(q,2)+d(q,2)+d(A,4)+d(M,4)+d(w.length,2)+w})(this.dirRecords.length,F,P,this.zipComment,this.encodeFileName);this.push({data:W,meta:{percent:100}})},z.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},z.prototype.registerPrevious=function(P){this._sources.push(P);var B=this;return P.on("data",(function(F){B.processChunk(F)})),P.on("end",(function(){B.closedSource(B.previous.streamInfo),B._sources.length?B.prepareNextSource():B.end()})),P.on("error",(function(F){B.error(F)})),this},z.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},z.prototype.error=function(P){var B=this._sources;if(!S.prototype.error.call(this,P))return!1;for(var F=0;F<B.length;F++)try{B[F].error(P)}catch{}return!0},z.prototype.lock=function(){S.prototype.lock.call(this);for(var P=this._sources,B=0;B<P.length;B++)P[B].lock()},p.exports=z},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(h,p,m){var d=h("../compressions"),b=h("./ZipFileWorker");m.generateWorker=function(g,S,C){var I=new b(S.streamFiles,C,S.platform,S.encodeFileName),D=0;try{g.forEach((function(z,P){D++;var B=(function(A,M){var k=A||M,y=d[k];if(!y)throw new Error(k+" is not a valid compression method !");return y})(P.options.compression,S.compression),F=P.options.compressionOptions||S.compressionOptions||{},W=P.dir,q=P.date;P._compressWorker(B,F).withStreamInfo("file",{name:z,dir:W,date:q,comment:P.comment||"",unixPermissions:P.unixPermissions,dosPermissions:P.dosPermissions}).pipe(I)})),I.entriesCount=D}catch(z){I.error(z)}return I}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(h,p,m){function d(){if(!(this instanceof d))return new d;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var b=new d;for(var g in this)typeof this[g]!="function"&&(b[g]=this[g]);return b}}(d.prototype=h("./object")).loadAsync=h("./load"),d.support=h("./support"),d.defaults=h("./defaults"),d.version="3.10.1",d.loadAsync=function(b,g){return new d().loadAsync(b,g)},d.external=h("./external"),p.exports=d},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(h,p,m){var d=h("./utils"),b=h("./external"),g=h("./utf8"),S=h("./zipEntries"),C=h("./stream/Crc32Probe"),I=h("./nodejsUtils");function D(z){return new b.Promise((function(P,B){var F=z.decompressed.getContentWorker().pipe(new C);F.on("error",(function(W){B(W)})).on("end",(function(){F.streamInfo.crc32!==z.decompressed.crc32?B(new Error("Corrupted zip : CRC32 mismatch")):P()})).resume()}))}p.exports=function(z,P){var B=this;return P=d.extend(P||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),I.isNode&&I.isStream(z)?b.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",z,!0,P.optimizedBinaryString,P.base64).then((function(F){var W=new S(P);return W.load(F),W})).then((function(F){var W=[b.Promise.resolve(F)],q=F.files;if(P.checkCRC32)for(var A=0;A<q.length;A++)W.push(D(q[A]));return b.Promise.all(W)})).then((function(F){for(var W=F.shift(),q=W.files,A=0;A<q.length;A++){var M=q[A],k=M.fileNameStr,y=d.resolve(M.fileNameStr);B.file(y,M.decompressed,{binary:!0,optimizedBinaryString:!0,date:M.date,dir:M.dir,comment:M.fileCommentStr.length?M.fileCommentStr:null,unixPermissions:M.unixPermissions,dosPermissions:M.dosPermissions,createFolders:P.createFolders}),M.dir||(B.file(y).unsafeOriginalName=k)}return W.zipComment.length&&(B.comment=W.zipComment),B}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(h,p,m){var d=h("../utils"),b=h("../stream/GenericWorker");function g(S,C){b.call(this,"Nodejs stream input adapter for "+S),this._upstreamEnded=!1,this._bindStream(C)}d.inherits(g,b),g.prototype._bindStream=function(S){var C=this;(this._stream=S).pause(),S.on("data",(function(I){C.push({data:I,meta:{percent:0}})})).on("error",(function(I){C.isPaused?this.generatedError=I:C.error(I)})).on("end",(function(){C.isPaused?C._upstreamEnded=!0:C.end()}))},g.prototype.pause=function(){return!!b.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},p.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(h,p,m){var d=h("readable-stream").Readable;function b(g,S,C){d.call(this,S),this._helper=g;var I=this;g.on("data",(function(D,z){I.push(D)||I._helper.pause(),C&&C(z)})).on("error",(function(D){I.emit("error",D)})).on("end",(function(){I.push(null)}))}h("../utils").inherits(b,d),b.prototype._read=function(){this._helper.resume()},p.exports=b},{"../utils":32,"readable-stream":16}],14:[function(h,p,m){p.exports={isNode:n!==void 0,newBufferFrom:function(d,b){if(n.from&&n.from!==Uint8Array.from)return n.from(d,b);if(typeof d=="number")throw new Error('The "data" argument must not be a number');return new n(d,b)},allocBuffer:function(d){if(n.alloc)return n.alloc(d);var b=new n(d);return b.fill(0),b},isBuffer:function(d){return n.isBuffer(d)},isStream:function(d){return d&&typeof d.on=="function"&&typeof d.pause=="function"&&typeof d.resume=="function"}}},{}],15:[function(h,p,m){function d(y,w,x){var _,T=g.getTypeOf(w),O=g.extend(x||{},I);O.date=O.date||new Date,O.compression!==null&&(O.compression=O.compression.toUpperCase()),typeof O.unixPermissions=="string"&&(O.unixPermissions=parseInt(O.unixPermissions,8)),O.unixPermissions&&16384&O.unixPermissions&&(O.dir=!0),O.dosPermissions&&16&O.dosPermissions&&(O.dir=!0),O.dir&&(y=q(y)),O.createFolders&&(_=W(y))&&A.call(this,_,!0);var j=T==="string"&&O.binary===!1&&O.base64===!1;x&&x.binary!==void 0||(O.binary=!j),(w instanceof D&&w.uncompressedSize===0||O.dir||!w||w.length===0)&&(O.base64=!1,O.binary=!0,w="",O.compression="STORE",T="string");var V;V=w instanceof D||w instanceof S?w:B.isNode&&B.isStream(w)?new F(y,w):g.prepareContent(y,w,O.binary,O.optimizedBinaryString,O.base64);var X=new z(y,V,O);this.files[y]=X}var b=h("./utf8"),g=h("./utils"),S=h("./stream/GenericWorker"),C=h("./stream/StreamHelper"),I=h("./defaults"),D=h("./compressedObject"),z=h("./zipObject"),P=h("./generate"),B=h("./nodejsUtils"),F=h("./nodejs/NodejsStreamInputAdapter"),W=function(y){y.slice(-1)==="/"&&(y=y.substring(0,y.length-1));var w=y.lastIndexOf("/");return 0<w?y.substring(0,w):""},q=function(y){return y.slice(-1)!=="/"&&(y+="/"),y},A=function(y,w){return w=w!==void 0?w:I.createFolders,y=q(y),this.files[y]||d.call(this,y,null,{dir:!0,createFolders:w}),this.files[y]};function M(y){return Object.prototype.toString.call(y)==="[object RegExp]"}var k={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(y){var w,x,_;for(w in this.files)_=this.files[w],(x=w.slice(this.root.length,w.length))&&w.slice(0,this.root.length)===this.root&&y(x,_)},filter:function(y){var w=[];return this.forEach((function(x,_){y(x,_)&&w.push(_)})),w},file:function(y,w,x){if(arguments.length!==1)return y=this.root+y,d.call(this,y,w,x),this;if(M(y)){var _=y;return this.filter((function(O,j){return!j.dir&&_.test(O)}))}var T=this.files[this.root+y];return T&&!T.dir?T:null},folder:function(y){if(!y)return this;if(M(y))return this.filter((function(T,O){return O.dir&&y.test(T)}));var w=this.root+y,x=A.call(this,w),_=this.clone();return _.root=x.name,_},remove:function(y){y=this.root+y;var w=this.files[y];if(w||(y.slice(-1)!=="/"&&(y+="/"),w=this.files[y]),w&&!w.dir)delete this.files[y];else for(var x=this.filter((function(T,O){return O.name.slice(0,y.length)===y})),_=0;_<x.length;_++)delete this.files[x[_].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(y){var w,x={};try{if((x=g.extend(y||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:b.utf8encode})).type=x.type.toLowerCase(),x.compression=x.compression.toUpperCase(),x.type==="binarystring"&&(x.type="string"),!x.type)throw new Error("No output type specified.");g.checkSupport(x.type),x.platform!=="darwin"&&x.platform!=="freebsd"&&x.platform!=="linux"&&x.platform!=="sunos"||(x.platform="UNIX"),x.platform==="win32"&&(x.platform="DOS");var _=x.comment||this.comment||"";w=P.generateWorker(this,x,_)}catch(T){(w=new S("error")).error(T)}return new C(w,x.type||"string",x.mimeType)},generateAsync:function(y,w){return this.generateInternalStream(y).accumulate(w)},generateNodeStream:function(y,w){return(y=y||{}).type||(y.type="nodebuffer"),this.generateInternalStream(y).toNodejsStream(w)}};p.exports=k},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(h,p,m){p.exports=h("stream")},{stream:void 0}],17:[function(h,p,m){var d=h("./DataReader");function b(g){d.call(this,g);for(var S=0;S<this.data.length;S++)g[S]=255&g[S]}h("../utils").inherits(b,d),b.prototype.byteAt=function(g){return this.data[this.zero+g]},b.prototype.lastIndexOfSignature=function(g){for(var S=g.charCodeAt(0),C=g.charCodeAt(1),I=g.charCodeAt(2),D=g.charCodeAt(3),z=this.length-4;0<=z;--z)if(this.data[z]===S&&this.data[z+1]===C&&this.data[z+2]===I&&this.data[z+3]===D)return z-this.zero;return-1},b.prototype.readAndCheckSignature=function(g){var S=g.charCodeAt(0),C=g.charCodeAt(1),I=g.charCodeAt(2),D=g.charCodeAt(3),z=this.readData(4);return S===z[0]&&C===z[1]&&I===z[2]&&D===z[3]},b.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var S=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,S},p.exports=b},{"../utils":32,"./DataReader":18}],18:[function(h,p,m){var d=h("../utils");function b(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}b.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var S,C=0;for(this.checkOffset(g),S=this.index+g-1;S>=this.index;S--)C=(C<<8)+this.byteAt(S);return this.index+=g,C},readString:function(g){return d.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},p.exports=b},{"../utils":32}],19:[function(h,p,m){var d=h("./Uint8ArrayReader");function b(g){d.call(this,g)}h("../utils").inherits(b,d),b.prototype.readData=function(g){this.checkOffset(g);var S=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,S},p.exports=b},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(h,p,m){var d=h("./DataReader");function b(g){d.call(this,g)}h("../utils").inherits(b,d),b.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},b.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},b.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},b.prototype.readData=function(g){this.checkOffset(g);var S=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,S},p.exports=b},{"../utils":32,"./DataReader":18}],21:[function(h,p,m){var d=h("./ArrayReader");function b(g){d.call(this,g)}h("../utils").inherits(b,d),b.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var S=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,S},p.exports=b},{"../utils":32,"./ArrayReader":17}],22:[function(h,p,m){var d=h("../utils"),b=h("../support"),g=h("./ArrayReader"),S=h("./StringReader"),C=h("./NodeBufferReader"),I=h("./Uint8ArrayReader");p.exports=function(D){var z=d.getTypeOf(D);return d.checkSupport(z),z!=="string"||b.uint8array?z==="nodebuffer"?new C(D):b.uint8array?new I(d.transformTo("uint8array",D)):new g(d.transformTo("array",D)):new S(D)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(h,p,m){m.LOCAL_FILE_HEADER="PK",m.CENTRAL_FILE_HEADER="PK",m.CENTRAL_DIRECTORY_END="PK",m.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",m.ZIP64_CENTRAL_DIRECTORY_END="PK",m.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(h,p,m){var d=h("./GenericWorker"),b=h("../utils");function g(S){d.call(this,"ConvertWorker to "+S),this.destType=S}b.inherits(g,d),g.prototype.processChunk=function(S){this.push({data:b.transformTo(this.destType,S.data),meta:S.meta})},p.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(h,p,m){var d=h("./GenericWorker"),b=h("../crc32");function g(){d.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}h("../utils").inherits(g,d),g.prototype.processChunk=function(S){this.streamInfo.crc32=b(S.data,this.streamInfo.crc32||0),this.push(S)},p.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(h,p,m){var d=h("../utils"),b=h("./GenericWorker");function g(S){b.call(this,"DataLengthProbe for "+S),this.propName=S,this.withStreamInfo(S,0)}d.inherits(g,b),g.prototype.processChunk=function(S){if(S){var C=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=C+S.data.length}b.prototype.processChunk.call(this,S)},p.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(h,p,m){var d=h("../utils"),b=h("./GenericWorker");function g(S){b.call(this,"DataWorker");var C=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,S.then((function(I){C.dataIsReady=!0,C.data=I,C.max=I&&I.length||0,C.type=d.getTypeOf(I),C.isPaused||C._tickAndRepeat()}),(function(I){C.error(I)}))}d.inherits(g,b),g.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,d.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(d.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var S=null,C=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":S=this.data.substring(this.index,C);break;case"uint8array":S=this.data.subarray(this.index,C);break;case"array":case"nodebuffer":S=this.data.slice(this.index,C)}return this.index=C,this.push({data:S,meta:{percent:this.max?this.index/this.max*100:0}})},p.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(h,p,m){function d(b){this.name=b||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}d.prototype={push:function(b){this.emit("data",b)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(b){this.emit("error",b)}return!0},error:function(b){return!this.isFinished&&(this.isPaused?this.generatedError=b:(this.isFinished=!0,this.emit("error",b),this.previous&&this.previous.error(b),this.cleanUp()),!0)},on:function(b,g){return this._listeners[b].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(b,g){if(this._listeners[b])for(var S=0;S<this._listeners[b].length;S++)this._listeners[b][S].call(this,g)},pipe:function(b){return b.registerPrevious(this)},registerPrevious:function(b){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=b.streamInfo,this.mergeStreamInfo(),this.previous=b;var g=this;return b.on("data",(function(S){g.processChunk(S)})),b.on("end",(function(){g.end()})),b.on("error",(function(S){g.error(S)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var b=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),b=!0),this.previous&&this.previous.resume(),!b},flush:function(){},processChunk:function(b){this.push(b)},withStreamInfo:function(b,g){return this.extraStreamInfo[b]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var b in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,b)&&(this.streamInfo[b]=this.extraStreamInfo[b])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var b="Worker "+this.name;return this.previous?this.previous+" -> "+b:b}},p.exports=d},{}],29:[function(h,p,m){var d=h("../utils"),b=h("./ConvertWorker"),g=h("./GenericWorker"),S=h("../base64"),C=h("../support"),I=h("../external"),D=null;if(C.nodestream)try{D=h("../nodejs/NodejsStreamOutputAdapter")}catch{}function z(P,B,F){var W=B;switch(B){case"blob":case"arraybuffer":W="uint8array";break;case"base64":W="string"}try{this._internalType=W,this._outputType=B,this._mimeType=F,d.checkSupport(W),this._worker=P.pipe(new b(W)),P.lock()}catch(q){this._worker=new g("error"),this._worker.error(q)}}z.prototype={accumulate:function(P){return(function(B,F){return new I.Promise((function(W,q){var A=[],M=B._internalType,k=B._outputType,y=B._mimeType;B.on("data",(function(w,x){A.push(w),F&&F(x)})).on("error",(function(w){A=[],q(w)})).on("end",(function(){try{var w=(function(x,_,T){switch(x){case"blob":return d.newBlob(d.transformTo("arraybuffer",_),T);case"base64":return S.encode(_);default:return d.transformTo(x,_)}})(k,(function(x,_){var T,O=0,j=null,V=0;for(T=0;T<_.length;T++)V+=_[T].length;switch(x){case"string":return _.join("");case"array":return Array.prototype.concat.apply([],_);case"uint8array":for(j=new Uint8Array(V),T=0;T<_.length;T++)j.set(_[T],O),O+=_[T].length;return j;case"nodebuffer":return n.concat(_);default:throw new Error("concat : unsupported type '"+x+"'")}})(M,A),y);W(w)}catch(x){q(x)}A=[]})).resume()}))})(this,P)},on:function(P,B){var F=this;return P==="data"?this._worker.on(P,(function(W){B.call(F,W.data,W.meta)})):this._worker.on(P,(function(){d.delay(B,arguments,F)})),this},resume:function(){return d.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(P){if(d.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new D(this,{objectMode:this._outputType!=="nodebuffer"},P)}},p.exports=z},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(h,p,m){if(m.base64=!0,m.array=!0,m.string=!0,m.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",m.nodebuffer=n!==void 0,m.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")m.blob=!1;else{var d=new ArrayBuffer(0);try{m.blob=new Blob([d],{type:"application/zip"}).size===0}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);b.append(d),m.blob=b.getBlob("application/zip").size===0}catch{m.blob=!1}}}try{m.nodestream=!!h("readable-stream").Readable}catch{m.nodestream=!1}},{"readable-stream":16}],31:[function(h,p,m){for(var d=h("./utils"),b=h("./support"),g=h("./nodejsUtils"),S=h("./stream/GenericWorker"),C=new Array(256),I=0;I<256;I++)C[I]=252<=I?6:248<=I?5:240<=I?4:224<=I?3:192<=I?2:1;function D(){S.call(this,"utf-8 decode"),this.leftOver=null}function z(){S.call(this,"utf-8 encode")}C[254]=C[254]=1,m.utf8encode=function(P){return b.nodebuffer?g.newBufferFrom(P,"utf-8"):(function(B){var F,W,q,A,M,k=B.length,y=0;for(A=0;A<k;A++)(64512&(W=B.charCodeAt(A)))==55296&&A+1<k&&(64512&(q=B.charCodeAt(A+1)))==56320&&(W=65536+(W-55296<<10)+(q-56320),A++),y+=W<128?1:W<2048?2:W<65536?3:4;for(F=b.uint8array?new Uint8Array(y):new Array(y),A=M=0;M<y;A++)(64512&(W=B.charCodeAt(A)))==55296&&A+1<k&&(64512&(q=B.charCodeAt(A+1)))==56320&&(W=65536+(W-55296<<10)+(q-56320),A++),W<128?F[M++]=W:(W<2048?F[M++]=192|W>>>6:(W<65536?F[M++]=224|W>>>12:(F[M++]=240|W>>>18,F[M++]=128|W>>>12&63),F[M++]=128|W>>>6&63),F[M++]=128|63&W);return F})(P)},m.utf8decode=function(P){return b.nodebuffer?d.transformTo("nodebuffer",P).toString("utf-8"):(function(B){var F,W,q,A,M=B.length,k=new Array(2*M);for(F=W=0;F<M;)if((q=B[F++])<128)k[W++]=q;else if(4<(A=C[q]))k[W++]=65533,F+=A-1;else{for(q&=A===2?31:A===3?15:7;1<A&&F<M;)q=q<<6|63&B[F++],A--;1<A?k[W++]=65533:q<65536?k[W++]=q:(q-=65536,k[W++]=55296|q>>10&1023,k[W++]=56320|1023&q)}return k.length!==W&&(k.subarray?k=k.subarray(0,W):k.length=W),d.applyFromCharCode(k)})(P=d.transformTo(b.uint8array?"uint8array":"array",P))},d.inherits(D,S),D.prototype.processChunk=function(P){var B=d.transformTo(b.uint8array?"uint8array":"array",P.data);if(this.leftOver&&this.leftOver.length){if(b.uint8array){var F=B;(B=new Uint8Array(F.length+this.leftOver.length)).set(this.leftOver,0),B.set(F,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var W=(function(A,M){var k;for((M=M||A.length)>A.length&&(M=A.length),k=M-1;0<=k&&(192&A[k])==128;)k--;return k<0||k===0?M:k+C[A[k]]>M?k:M})(B),q=B;W!==B.length&&(b.uint8array?(q=B.subarray(0,W),this.leftOver=B.subarray(W,B.length)):(q=B.slice(0,W),this.leftOver=B.slice(W,B.length))),this.push({data:m.utf8decode(q),meta:P.meta})},D.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:m.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},m.Utf8DecodeWorker=D,d.inherits(z,S),z.prototype.processChunk=function(P){this.push({data:m.utf8encode(P.data),meta:P.meta})},m.Utf8EncodeWorker=z},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(h,p,m){var d=h("./support"),b=h("./base64"),g=h("./nodejsUtils"),S=h("./external");function C(F){return F}function I(F,W){for(var q=0;q<F.length;++q)W[q]=255&F.charCodeAt(q);return W}h("setimmediate"),m.newBlob=function(F,W){m.checkSupport("blob");try{return new Blob([F],{type:W})}catch{try{var q=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return q.append(F),q.getBlob(W)}catch{throw new Error("Bug : can't construct the Blob.")}}};var D={stringifyByChunk:function(F,W,q){var A=[],M=0,k=F.length;if(k<=q)return String.fromCharCode.apply(null,F);for(;M<k;)W==="array"||W==="nodebuffer"?A.push(String.fromCharCode.apply(null,F.slice(M,Math.min(M+q,k)))):A.push(String.fromCharCode.apply(null,F.subarray(M,Math.min(M+q,k)))),M+=q;return A.join("")},stringifyByChar:function(F){for(var W="",q=0;q<F.length;q++)W+=String.fromCharCode(F[q]);return W},applyCanBeUsed:{uint8array:(function(){try{return d.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return d.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch{return!1}})()}};function z(F){var W=65536,q=m.getTypeOf(F),A=!0;if(q==="uint8array"?A=D.applyCanBeUsed.uint8array:q==="nodebuffer"&&(A=D.applyCanBeUsed.nodebuffer),A)for(;1<W;)try{return D.stringifyByChunk(F,q,W)}catch{W=Math.floor(W/2)}return D.stringifyByChar(F)}function P(F,W){for(var q=0;q<F.length;q++)W[q]=F[q];return W}m.applyFromCharCode=z;var B={};B.string={string:C,array:function(F){return I(F,new Array(F.length))},arraybuffer:function(F){return B.string.uint8array(F).buffer},uint8array:function(F){return I(F,new Uint8Array(F.length))},nodebuffer:function(F){return I(F,g.allocBuffer(F.length))}},B.array={string:z,array:C,arraybuffer:function(F){return new Uint8Array(F).buffer},uint8array:function(F){return new Uint8Array(F)},nodebuffer:function(F){return g.newBufferFrom(F)}},B.arraybuffer={string:function(F){return z(new Uint8Array(F))},array:function(F){return P(new Uint8Array(F),new Array(F.byteLength))},arraybuffer:C,uint8array:function(F){return new Uint8Array(F)},nodebuffer:function(F){return g.newBufferFrom(new Uint8Array(F))}},B.uint8array={string:z,array:function(F){return P(F,new Array(F.length))},arraybuffer:function(F){return F.buffer},uint8array:C,nodebuffer:function(F){return g.newBufferFrom(F)}},B.nodebuffer={string:z,array:function(F){return P(F,new Array(F.length))},arraybuffer:function(F){return B.nodebuffer.uint8array(F).buffer},uint8array:function(F){return P(F,new Uint8Array(F.length))},nodebuffer:C},m.transformTo=function(F,W){if(W=W||"",!F)return W;m.checkSupport(F);var q=m.getTypeOf(W);return B[q][F](W)},m.resolve=function(F){for(var W=F.split("/"),q=[],A=0;A<W.length;A++){var M=W[A];M==="."||M===""&&A!==0&&A!==W.length-1||(M===".."?q.pop():q.push(M))}return q.join("/")},m.getTypeOf=function(F){return typeof F=="string"?"string":Object.prototype.toString.call(F)==="[object Array]"?"array":d.nodebuffer&&g.isBuffer(F)?"nodebuffer":d.uint8array&&F instanceof Uint8Array?"uint8array":d.arraybuffer&&F instanceof ArrayBuffer?"arraybuffer":void 0},m.checkSupport=function(F){if(!d[F.toLowerCase()])throw new Error(F+" is not supported by this platform")},m.MAX_VALUE_16BITS=65535,m.MAX_VALUE_32BITS=-1,m.pretty=function(F){var W,q,A="";for(q=0;q<(F||"").length;q++)A+="\\x"+((W=F.charCodeAt(q))<16?"0":"")+W.toString(16).toUpperCase();return A},m.delay=function(F,W,q){a((function(){F.apply(q||null,W||[])}))},m.inherits=function(F,W){function q(){}q.prototype=W.prototype,F.prototype=new q},m.extend=function(){var F,W,q={};for(F=0;F<arguments.length;F++)for(W in arguments[F])Object.prototype.hasOwnProperty.call(arguments[F],W)&&q[W]===void 0&&(q[W]=arguments[F][W]);return q},m.prepareContent=function(F,W,q,A,M){return S.Promise.resolve(W).then((function(k){return d.blob&&(k instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(k))!==-1)&&typeof FileReader<"u"?new S.Promise((function(y,w){var x=new FileReader;x.onload=function(_){y(_.target.result)},x.onerror=function(_){w(_.target.error)},x.readAsArrayBuffer(k)})):k})).then((function(k){var y=m.getTypeOf(k);return y?(y==="arraybuffer"?k=m.transformTo("uint8array",k):y==="string"&&(M?k=b.decode(k):q&&A!==!0&&(k=(function(w){return I(w,d.uint8array?new Uint8Array(w.length):new Array(w.length))})(k))),k):S.Promise.reject(new Error("Can't read the data of '"+F+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(h,p,m){var d=h("./reader/readerFor"),b=h("./utils"),g=h("./signature"),S=h("./zipEntry"),C=h("./support");function I(D){this.files=[],this.loadOptions=D}I.prototype={checkSignature:function(D){if(!this.reader.readAndCheckSignature(D)){this.reader.index-=4;var z=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+b.pretty(z)+", expected "+b.pretty(D)+")")}},isSignature:function(D,z){var P=this.reader.index;this.reader.setIndex(D);var B=this.reader.readString(4)===z;return this.reader.setIndex(P),B},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var D=this.reader.readData(this.zipCommentLength),z=C.uint8array?"uint8array":"array",P=b.transformTo(z,D);this.zipComment=this.loadOptions.decodeFileName(P)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var D,z,P,B=this.zip64EndOfCentralSize-44;0<B;)D=this.reader.readInt(2),z=this.reader.readInt(4),P=this.reader.readData(z),this.zip64ExtensibleData[D]={id:D,length:z,value:P}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var D,z;for(D=0;D<this.files.length;D++)z=this.files[D],this.reader.setIndex(z.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),z.readLocalPart(this.reader),z.handleUTF8(),z.processAttributes()},readCentralDir:function(){var D;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(D=new S({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(D);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var D=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(D<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(D);var z=D;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===b.MAX_VALUE_16BITS||this.diskWithCentralDirStart===b.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===b.MAX_VALUE_16BITS||this.centralDirRecords===b.MAX_VALUE_16BITS||this.centralDirSize===b.MAX_VALUE_32BITS||this.centralDirOffset===b.MAX_VALUE_32BITS){if(this.zip64=!0,(D=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(D),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var P=this.centralDirOffset+this.centralDirSize;this.zip64&&(P+=20,P+=12+this.zip64EndOfCentralSize);var B=z-P;if(0<B)this.isSignature(z,g.CENTRAL_FILE_HEADER)||(this.reader.zero=B);else if(B<0)throw new Error("Corrupted zip: missing "+Math.abs(B)+" bytes.")},prepareReader:function(D){this.reader=d(D)},load:function(D){this.prepareReader(D),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},p.exports=I},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(h,p,m){var d=h("./reader/readerFor"),b=h("./utils"),g=h("./compressedObject"),S=h("./crc32"),C=h("./utf8"),I=h("./compressions"),D=h("./support");function z(P,B){this.options=P,this.loadOptions=B}z.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(P){var B,F;if(P.skip(22),this.fileNameLength=P.readInt(2),F=P.readInt(2),this.fileName=P.readData(this.fileNameLength),P.skip(F),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((B=(function(W){for(var q in I)if(Object.prototype.hasOwnProperty.call(I,q)&&I[q].magic===W)return I[q];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+b.pretty(this.compressionMethod)+" unknown (inner file : "+b.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,B,P.readData(this.compressedSize))},readCentralPart:function(P){this.versionMadeBy=P.readInt(2),P.skip(2),this.bitFlag=P.readInt(2),this.compressionMethod=P.readString(2),this.date=P.readDate(),this.crc32=P.readInt(4),this.compressedSize=P.readInt(4),this.uncompressedSize=P.readInt(4);var B=P.readInt(2);if(this.extraFieldsLength=P.readInt(2),this.fileCommentLength=P.readInt(2),this.diskNumberStart=P.readInt(2),this.internalFileAttributes=P.readInt(2),this.externalFileAttributes=P.readInt(4),this.localHeaderOffset=P.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");P.skip(B),this.readExtraFields(P),this.parseZIP64ExtraField(P),this.fileComment=P.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var P=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),P==0&&(this.dosPermissions=63&this.externalFileAttributes),P==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var P=d(this.extraFields[1].value);this.uncompressedSize===b.MAX_VALUE_32BITS&&(this.uncompressedSize=P.readInt(8)),this.compressedSize===b.MAX_VALUE_32BITS&&(this.compressedSize=P.readInt(8)),this.localHeaderOffset===b.MAX_VALUE_32BITS&&(this.localHeaderOffset=P.readInt(8)),this.diskNumberStart===b.MAX_VALUE_32BITS&&(this.diskNumberStart=P.readInt(4))}},readExtraFields:function(P){var B,F,W,q=P.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});P.index+4<q;)B=P.readInt(2),F=P.readInt(2),W=P.readData(F),this.extraFields[B]={id:B,length:F,value:W};P.setIndex(q)},handleUTF8:function(){var P=D.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=C.utf8decode(this.fileName),this.fileCommentStr=C.utf8decode(this.fileComment);else{var B=this.findExtraFieldUnicodePath();if(B!==null)this.fileNameStr=B;else{var F=b.transformTo(P,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(F)}var W=this.findExtraFieldUnicodeComment();if(W!==null)this.fileCommentStr=W;else{var q=b.transformTo(P,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(q)}}},findExtraFieldUnicodePath:function(){var P=this.extraFields[28789];if(P){var B=d(P.value);return B.readInt(1)!==1||S(this.fileName)!==B.readInt(4)?null:C.utf8decode(B.readData(P.length-5))}return null},findExtraFieldUnicodeComment:function(){var P=this.extraFields[25461];if(P){var B=d(P.value);return B.readInt(1)!==1||S(this.fileComment)!==B.readInt(4)?null:C.utf8decode(B.readData(P.length-5))}return null}},p.exports=z},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(h,p,m){function d(B,F,W){this.name=B,this.dir=W.dir,this.date=W.date,this.comment=W.comment,this.unixPermissions=W.unixPermissions,this.dosPermissions=W.dosPermissions,this._data=F,this._dataBinary=W.binary,this.options={compression:W.compression,compressionOptions:W.compressionOptions}}var b=h("./stream/StreamHelper"),g=h("./stream/DataWorker"),S=h("./utf8"),C=h("./compressedObject"),I=h("./stream/GenericWorker");d.prototype={internalStream:function(B){var F=null,W="string";try{if(!B)throw new Error("No output type specified.");var q=(W=B.toLowerCase())==="string"||W==="text";W!=="binarystring"&&W!=="text"||(W="string"),F=this._decompressWorker();var A=!this._dataBinary;A&&!q&&(F=F.pipe(new S.Utf8EncodeWorker)),!A&&q&&(F=F.pipe(new S.Utf8DecodeWorker))}catch(M){(F=new I("error")).error(M)}return new b(F,W,"")},async:function(B,F){return this.internalStream(B).accumulate(F)},nodeStream:function(B,F){return this.internalStream(B||"nodebuffer").toNodejsStream(F)},_compressWorker:function(B,F){if(this._data instanceof C&&this._data.compression.magic===B.magic)return this._data.getCompressedWorker();var W=this._decompressWorker();return this._dataBinary||(W=W.pipe(new S.Utf8EncodeWorker)),C.createWorkerFrom(W,B,F)},_decompressWorker:function(){return this._data instanceof C?this._data.getContentWorker():this._data instanceof I?this._data:new g(this._data)}};for(var D=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],z=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},P=0;P<D.length;P++)d.prototype[D[P]]=z;p.exports=d},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(h,p,m){(function(d){var b,g,S=d.MutationObserver||d.WebKitMutationObserver;if(S){var C=0,I=new S(B),D=d.document.createTextNode("");I.observe(D,{characterData:!0}),b=function(){D.data=C=++C%2}}else if(d.setImmediate||d.MessageChannel===void 0)b="document"in d&&"onreadystatechange"in d.document.createElement("script")?function(){var F=d.document.createElement("script");F.onreadystatechange=function(){B(),F.onreadystatechange=null,F.parentNode.removeChild(F),F=null},d.document.documentElement.appendChild(F)}:function(){setTimeout(B,0)};else{var z=new d.MessageChannel;z.port1.onmessage=B,b=function(){z.port2.postMessage(0)}}var P=[];function B(){var F,W;g=!0;for(var q=P.length;q;){for(W=P,P=[],F=-1;++F<q;)W[F]();q=P.length}g=!1}p.exports=function(F){P.push(F)!==1||g||b()}}).call(this,r!==void 0?r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(h,p,m){var d=h("immediate");function b(){}var g={},S=["REJECTED"],C=["FULFILLED"],I=["PENDING"];function D(q){if(typeof q!="function")throw new TypeError("resolver must be a function");this.state=I,this.queue=[],this.outcome=void 0,q!==b&&F(this,q)}function z(q,A,M){this.promise=q,typeof A=="function"&&(this.onFulfilled=A,this.callFulfilled=this.otherCallFulfilled),typeof M=="function"&&(this.onRejected=M,this.callRejected=this.otherCallRejected)}function P(q,A,M){d((function(){var k;try{k=A(M)}catch(y){return g.reject(q,y)}k===q?g.reject(q,new TypeError("Cannot resolve promise with itself")):g.resolve(q,k)}))}function B(q){var A=q&&q.then;if(q&&(typeof q=="object"||typeof q=="function")&&typeof A=="function")return function(){A.apply(q,arguments)}}function F(q,A){var M=!1;function k(x){M||(M=!0,g.reject(q,x))}function y(x){M||(M=!0,g.resolve(q,x))}var w=W((function(){A(y,k)}));w.status==="error"&&k(w.value)}function W(q,A){var M={};try{M.value=q(A),M.status="success"}catch(k){M.status="error",M.value=k}return M}(p.exports=D).prototype.finally=function(q){if(typeof q!="function")return this;var A=this.constructor;return this.then((function(M){return A.resolve(q()).then((function(){return M}))}),(function(M){return A.resolve(q()).then((function(){throw M}))}))},D.prototype.catch=function(q){return this.then(null,q)},D.prototype.then=function(q,A){if(typeof q!="function"&&this.state===C||typeof A!="function"&&this.state===S)return this;var M=new this.constructor(b);return this.state!==I?P(M,this.state===C?q:A,this.outcome):this.queue.push(new z(M,q,A)),M},z.prototype.callFulfilled=function(q){g.resolve(this.promise,q)},z.prototype.otherCallFulfilled=function(q){P(this.promise,this.onFulfilled,q)},z.prototype.callRejected=function(q){g.reject(this.promise,q)},z.prototype.otherCallRejected=function(q){P(this.promise,this.onRejected,q)},g.resolve=function(q,A){var M=W(B,A);if(M.status==="error")return g.reject(q,M.value);var k=M.value;if(k)F(q,k);else{q.state=C,q.outcome=A;for(var y=-1,w=q.queue.length;++y<w;)q.queue[y].callFulfilled(A)}return q},g.reject=function(q,A){q.state=S,q.outcome=A;for(var M=-1,k=q.queue.length;++M<k;)q.queue[M].callRejected(A);return q},D.resolve=function(q){return q instanceof this?q:g.resolve(new this(b),q)},D.reject=function(q){var A=new this(b);return g.reject(A,q)},D.all=function(q){var A=this;if(Object.prototype.toString.call(q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=q.length,k=!1;if(!M)return this.resolve([]);for(var y=new Array(M),w=0,x=-1,_=new this(b);++x<M;)T(q[x],x);return _;function T(O,j){A.resolve(O).then((function(V){y[j]=V,++w!==M||k||(k=!0,g.resolve(_,y))}),(function(V){k||(k=!0,g.reject(_,V))}))}},D.race=function(q){if(Object.prototype.toString.call(q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=q.length,M=!1;if(!A)return this.resolve([]);for(var k,y=-1,w=new this(b);++y<A;)k=q[y],this.resolve(k).then((function(x){M||(M=!0,g.resolve(w,x))}),(function(x){M||(M=!0,g.reject(w,x))}));return w}},{immediate:36}],38:[function(h,p,m){var d={};(0,h("./lib/utils/common").assign)(d,h("./lib/deflate"),h("./lib/inflate"),h("./lib/zlib/constants")),p.exports=d},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(h,p,m){var d=h("./zlib/deflate"),b=h("./utils/common"),g=h("./utils/strings"),S=h("./zlib/messages"),C=h("./zlib/zstream"),I=Object.prototype.toString;function D(P){if(!(this instanceof D))return new D(P);this.options=b.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},P||{});var B=this.options;B.raw&&0<B.windowBits?B.windowBits=-B.windowBits:B.gzip&&0<B.windowBits&&B.windowBits<16&&(B.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new C,this.strm.avail_out=0;var F=d.deflateInit2(this.strm,B.level,B.method,B.windowBits,B.memLevel,B.strategy);if(F!==0)throw new Error(S[F]);if(B.header&&d.deflateSetHeader(this.strm,B.header),B.dictionary){var W;if(W=typeof B.dictionary=="string"?g.string2buf(B.dictionary):I.call(B.dictionary)==="[object ArrayBuffer]"?new Uint8Array(B.dictionary):B.dictionary,(F=d.deflateSetDictionary(this.strm,W))!==0)throw new Error(S[F]);this._dict_set=!0}}function z(P,B){var F=new D(B);if(F.push(P,!0),F.err)throw F.msg||S[F.err];return F.result}D.prototype.push=function(P,B){var F,W,q=this.strm,A=this.options.chunkSize;if(this.ended)return!1;W=B===~~B?B:B===!0?4:0,typeof P=="string"?q.input=g.string2buf(P):I.call(P)==="[object ArrayBuffer]"?q.input=new Uint8Array(P):q.input=P,q.next_in=0,q.avail_in=q.input.length;do{if(q.avail_out===0&&(q.output=new b.Buf8(A),q.next_out=0,q.avail_out=A),(F=d.deflate(q,W))!==1&&F!==0)return this.onEnd(F),!(this.ended=!0);q.avail_out!==0&&(q.avail_in!==0||W!==4&&W!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(b.shrinkBuf(q.output,q.next_out))):this.onData(b.shrinkBuf(q.output,q.next_out)))}while((0<q.avail_in||q.avail_out===0)&&F!==1);return W===4?(F=d.deflateEnd(this.strm),this.onEnd(F),this.ended=!0,F===0):W!==2||(this.onEnd(0),!(q.avail_out=0))},D.prototype.onData=function(P){this.chunks.push(P)},D.prototype.onEnd=function(P){P===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg},m.Deflate=D,m.deflate=z,m.deflateRaw=function(P,B){return(B=B||{}).raw=!0,z(P,B)},m.gzip=function(P,B){return(B=B||{}).gzip=!0,z(P,B)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(h,p,m){var d=h("./zlib/inflate"),b=h("./utils/common"),g=h("./utils/strings"),S=h("./zlib/constants"),C=h("./zlib/messages"),I=h("./zlib/zstream"),D=h("./zlib/gzheader"),z=Object.prototype.toString;function P(F){if(!(this instanceof P))return new P(F);this.options=b.assign({chunkSize:16384,windowBits:0,to:""},F||{});var W=this.options;W.raw&&0<=W.windowBits&&W.windowBits<16&&(W.windowBits=-W.windowBits,W.windowBits===0&&(W.windowBits=-15)),!(0<=W.windowBits&&W.windowBits<16)||F&&F.windowBits||(W.windowBits+=32),15<W.windowBits&&W.windowBits<48&&(15&W.windowBits)==0&&(W.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new I,this.strm.avail_out=0;var q=d.inflateInit2(this.strm,W.windowBits);if(q!==S.Z_OK)throw new Error(C[q]);this.header=new D,d.inflateGetHeader(this.strm,this.header)}function B(F,W){var q=new P(W);if(q.push(F,!0),q.err)throw q.msg||C[q.err];return q.result}P.prototype.push=function(F,W){var q,A,M,k,y,w,x=this.strm,_=this.options.chunkSize,T=this.options.dictionary,O=!1;if(this.ended)return!1;A=W===~~W?W:W===!0?S.Z_FINISH:S.Z_NO_FLUSH,typeof F=="string"?x.input=g.binstring2buf(F):z.call(F)==="[object ArrayBuffer]"?x.input=new Uint8Array(F):x.input=F,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new b.Buf8(_),x.next_out=0,x.avail_out=_),(q=d.inflate(x,S.Z_NO_FLUSH))===S.Z_NEED_DICT&&T&&(w=typeof T=="string"?g.string2buf(T):z.call(T)==="[object ArrayBuffer]"?new Uint8Array(T):T,q=d.inflateSetDictionary(this.strm,w)),q===S.Z_BUF_ERROR&&O===!0&&(q=S.Z_OK,O=!1),q!==S.Z_STREAM_END&&q!==S.Z_OK)return this.onEnd(q),!(this.ended=!0);x.next_out&&(x.avail_out!==0&&q!==S.Z_STREAM_END&&(x.avail_in!==0||A!==S.Z_FINISH&&A!==S.Z_SYNC_FLUSH)||(this.options.to==="string"?(M=g.utf8border(x.output,x.next_out),k=x.next_out-M,y=g.buf2string(x.output,M),x.next_out=k,x.avail_out=_-k,k&&b.arraySet(x.output,x.output,M,k,0),this.onData(y)):this.onData(b.shrinkBuf(x.output,x.next_out)))),x.avail_in===0&&x.avail_out===0&&(O=!0)}while((0<x.avail_in||x.avail_out===0)&&q!==S.Z_STREAM_END);return q===S.Z_STREAM_END&&(A=S.Z_FINISH),A===S.Z_FINISH?(q=d.inflateEnd(this.strm),this.onEnd(q),this.ended=!0,q===S.Z_OK):A!==S.Z_SYNC_FLUSH||(this.onEnd(S.Z_OK),!(x.avail_out=0))},P.prototype.onData=function(F){this.chunks.push(F)},P.prototype.onEnd=function(F){F===S.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=F,this.msg=this.strm.msg},m.Inflate=P,m.inflate=B,m.inflateRaw=function(F,W){return(W=W||{}).raw=!0,B(F,W)},m.ungzip=B},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(h,p,m){var d=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";m.assign=function(S){for(var C=Array.prototype.slice.call(arguments,1);C.length;){var I=C.shift();if(I){if(typeof I!="object")throw new TypeError(I+"must be non-object");for(var D in I)I.hasOwnProperty(D)&&(S[D]=I[D])}}return S},m.shrinkBuf=function(S,C){return S.length===C?S:S.subarray?S.subarray(0,C):(S.length=C,S)};var b={arraySet:function(S,C,I,D,z){if(C.subarray&&S.subarray)S.set(C.subarray(I,I+D),z);else for(var P=0;P<D;P++)S[z+P]=C[I+P]},flattenChunks:function(S){var C,I,D,z,P,B;for(C=D=0,I=S.length;C<I;C++)D+=S[C].length;for(B=new Uint8Array(D),C=z=0,I=S.length;C<I;C++)P=S[C],B.set(P,z),z+=P.length;return B}},g={arraySet:function(S,C,I,D,z){for(var P=0;P<D;P++)S[z+P]=C[I+P]},flattenChunks:function(S){return[].concat.apply([],S)}};m.setTyped=function(S){S?(m.Buf8=Uint8Array,m.Buf16=Uint16Array,m.Buf32=Int32Array,m.assign(m,b)):(m.Buf8=Array,m.Buf16=Array,m.Buf32=Array,m.assign(m,g))},m.setTyped(d)},{}],42:[function(h,p,m){var d=h("./common"),b=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{b=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}for(var S=new d.Buf8(256),C=0;C<256;C++)S[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;function I(D,z){if(z<65537&&(D.subarray&&g||!D.subarray&&b))return String.fromCharCode.apply(null,d.shrinkBuf(D,z));for(var P="",B=0;B<z;B++)P+=String.fromCharCode(D[B]);return P}S[254]=S[254]=1,m.string2buf=function(D){var z,P,B,F,W,q=D.length,A=0;for(F=0;F<q;F++)(64512&(P=D.charCodeAt(F)))==55296&&F+1<q&&(64512&(B=D.charCodeAt(F+1)))==56320&&(P=65536+(P-55296<<10)+(B-56320),F++),A+=P<128?1:P<2048?2:P<65536?3:4;for(z=new d.Buf8(A),F=W=0;W<A;F++)(64512&(P=D.charCodeAt(F)))==55296&&F+1<q&&(64512&(B=D.charCodeAt(F+1)))==56320&&(P=65536+(P-55296<<10)+(B-56320),F++),P<128?z[W++]=P:(P<2048?z[W++]=192|P>>>6:(P<65536?z[W++]=224|P>>>12:(z[W++]=240|P>>>18,z[W++]=128|P>>>12&63),z[W++]=128|P>>>6&63),z[W++]=128|63&P);return z},m.buf2binstring=function(D){return I(D,D.length)},m.binstring2buf=function(D){for(var z=new d.Buf8(D.length),P=0,B=z.length;P<B;P++)z[P]=D.charCodeAt(P);return z},m.buf2string=function(D,z){var P,B,F,W,q=z||D.length,A=new Array(2*q);for(P=B=0;P<q;)if((F=D[P++])<128)A[B++]=F;else if(4<(W=S[F]))A[B++]=65533,P+=W-1;else{for(F&=W===2?31:W===3?15:7;1<W&&P<q;)F=F<<6|63&D[P++],W--;1<W?A[B++]=65533:F<65536?A[B++]=F:(F-=65536,A[B++]=55296|F>>10&1023,A[B++]=56320|1023&F)}return I(A,B)},m.utf8border=function(D,z){var P;for((z=z||D.length)>D.length&&(z=D.length),P=z-1;0<=P&&(192&D[P])==128;)P--;return P<0||P===0?z:P+S[D[P]]>z?P:z}},{"./common":41}],43:[function(h,p,m){p.exports=function(d,b,g,S){for(var C=65535&d|0,I=d>>>16&65535|0,D=0;g!==0;){for(g-=D=2e3<g?2e3:g;I=I+(C=C+b[S++]|0)|0,--D;);C%=65521,I%=65521}return C|I<<16|0}},{}],44:[function(h,p,m){p.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(h,p,m){var d=(function(){for(var b,g=[],S=0;S<256;S++){b=S;for(var C=0;C<8;C++)b=1&b?3988292384^b>>>1:b>>>1;g[S]=b}return g})();p.exports=function(b,g,S,C){var I=d,D=C+S;b^=-1;for(var z=C;z<D;z++)b=b>>>8^I[255&(b^g[z])];return-1^b}},{}],46:[function(h,p,m){var d,b=h("../utils/common"),g=h("./trees"),S=h("./adler32"),C=h("./crc32"),I=h("./messages"),D=-2,z=258,P=262,B=113;function F(L,G){return L.msg=I[G],G}function W(L){return(L<<1)-(4<L?9:0)}function q(L){for(var G=L.length;0<=--G;)L[G]=0}function A(L){var G=L.state,N=G.pending;N>L.avail_out&&(N=L.avail_out),N!==0&&(b.arraySet(L.output,G.pending_buf,G.pending_out,N,L.next_out),L.next_out+=N,G.pending_out+=N,L.total_out+=N,L.avail_out-=N,G.pending-=N,G.pending===0&&(G.pending_out=0))}function M(L,G){g._tr_flush_block(L,0<=L.block_start?L.block_start:-1,L.strstart-L.block_start,G),L.block_start=L.strstart,A(L.strm)}function k(L,G){L.pending_buf[L.pending++]=G}function y(L,G){L.pending_buf[L.pending++]=G>>>8&255,L.pending_buf[L.pending++]=255&G}function w(L,G){var N,R,U=L.max_chain_length,K=L.strstart,rt=L.prev_length,Z=L.nice_match,et=L.strstart>L.w_size-P?L.strstart-(L.w_size-P):0,ht=L.window,lt=L.w_mask,Q=L.prev,ot=L.strstart+z,nt=ht[K+rt-1],ut=ht[K+rt];L.prev_length>=L.good_match&&(U>>=2),Z>L.lookahead&&(Z=L.lookahead);do if(ht[(N=G)+rt]===ut&&ht[N+rt-1]===nt&&ht[N]===ht[K]&&ht[++N]===ht[K+1]){K+=2,N++;do;while(ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&K<ot);if(R=z-(ot-K),K=ot-z,rt<R){if(L.match_start=G,Z<=(rt=R))break;nt=ht[K+rt-1],ut=ht[K+rt]}}while((G=Q[G<])>et&&--U!=0);return rt<=L.lookahead?rt:L.lookahead}function x(L){var G,N,R,U,K,rt,Z,et,ht,lt,Q=L.w_size;do{if(U=L.window_size-L.lookahead-L.strstart,L.strstart>=Q+(Q-P)){for(b.arraySet(L.window,L.window,Q,Q,0),L.match_start-=Q,L.strstart-=Q,L.block_start-=Q,G=N=L.hash_size;R=L.head[--G],L.head[G]=Q<=R?R-Q:0,--N;);for(G=N=Q;R=L.prev[--G],L.prev[G]=Q<=R?R-Q:0,--N;);U+=Q}if(L.strm.avail_in===0)break;if(rt=L.strm,Z=L.window,et=L.strstart+L.lookahead,lt=void 0,(ht=U)<(lt=rt.avail_in)&&(lt=ht),N=lt===0?0:(rt.avail_in-=lt,b.arraySet(Z,rt.input,rt.next_in,lt,et),rt.state.wrap===1?rt.adler=S(rt.adler,Z,lt,et):rt.state.wrap===2&&(rt.adler=C(rt.adler,Z,lt,et)),rt.next_in+=lt,rt.total_in+=lt,lt),L.lookahead+=N,L.lookahead+L.insert>=3)for(K=L.strstart-L.insert,L.ins_h=L.window[K],L.ins_h=(L.ins_h<<L.hash_shift^L.window[K+1])&L.hash_mask;L.insert&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[K+3-1])&L.hash_mask,L.prev[K&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=K,K++,L.insert--,!(L.lookahead+L.insert<3)););}while(L.lookahead<P&&L.strm.avail_in!==0)}function _(L,G){for(var N,R;;){if(L.lookahead<P){if(x(L),L.lookahead<P&&G===0)return 1;if(L.lookahead===0)break}if(N=0,L.lookahead>=3&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),N!==0&&L.strstart-N<=L.w_size-P&&(L.match_length=w(L,N)),L.match_length>=3)if(R=g._tr_tally(L,L.strstart-L.match_start,L.match_length-3),L.lookahead-=L.match_length,L.match_length<=L.max_lazy_match&&L.lookahead>=3){for(L.match_length--;L.strstart++,L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart,--L.match_length!=0;);L.strstart++}else L.strstart+=L.match_length,L.match_length=0,L.ins_h=L.window[L.strstart],L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+1])&L.hash_mask;else R=g._tr_tally(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++;if(R&&(M(L,!1),L.strm.avail_out===0))return 1}return L.insert=L.strstart<2?L.strstart:2,G===4?(M(L,!0),L.strm.avail_out===0?3:4):L.last_lit&&(M(L,!1),L.strm.avail_out===0)?1:2}function T(L,G){for(var N,R,U;;){if(L.lookahead<P){if(x(L),L.lookahead<P&&G===0)return 1;if(L.lookahead===0)break}if(N=0,L.lookahead>=3&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),L.prev_length=L.match_length,L.prev_match=L.match_start,L.match_length=2,N!==0&&L.prev_length<L.max_lazy_match&&L.strstart-N<=L.w_size-P&&(L.match_length=w(L,N),L.match_length<=5&&(L.strategy===1||L.match_length===3&&4096<L.strstart-L.match_start)&&(L.match_length=2)),L.prev_length>=3&&L.match_length<=L.prev_length){for(U=L.strstart+L.lookahead-3,R=g._tr_tally(L,L.strstart-1-L.prev_match,L.prev_length-3),L.lookahead-=L.prev_length-1,L.prev_length-=2;++L.strstart<=U&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),--L.prev_length!=0;);if(L.match_available=0,L.match_length=2,L.strstart++,R&&(M(L,!1),L.strm.avail_out===0))return 1}else if(L.match_available){if((R=g._tr_tally(L,0,L.window[L.strstart-1]))&&M(L,!1),L.strstart++,L.lookahead--,L.strm.avail_out===0)return 1}else L.match_available=1,L.strstart++,L.lookahead--}return L.match_available&&(R=g._tr_tally(L,0,L.window[L.strstart-1]),L.match_available=0),L.insert=L.strstart<2?L.strstart:2,G===4?(M(L,!0),L.strm.avail_out===0?3:4):L.last_lit&&(M(L,!1),L.strm.avail_out===0)?1:2}function O(L,G,N,R,U){this.good_length=L,this.max_lazy=G,this.nice_length=N,this.max_chain=R,this.func=U}function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new b.Buf16(1146),this.dyn_dtree=new b.Buf16(122),this.bl_tree=new b.Buf16(78),q(this.dyn_ltree),q(this.dyn_dtree),q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new b.Buf16(16),this.heap=new b.Buf16(573),q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new b.Buf16(573),q(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(L){var G;return L&&L.state?(L.total_in=L.total_out=0,L.data_type=2,(G=L.state).pending=0,G.pending_out=0,G.wrap<0&&(G.wrap=-G.wrap),G.status=G.wrap?42:B,L.adler=G.wrap===2?0:1,G.last_flush=0,g._tr_init(G),0):F(L,D)}function X(L){var G=V(L);return G===0&&(function(N){N.window_size=2*N.w_size,q(N.head),N.max_lazy_match=d[N.level].max_lazy,N.good_match=d[N.level].good_length,N.nice_match=d[N.level].nice_length,N.max_chain_length=d[N.level].max_chain,N.strstart=0,N.block_start=0,N.lookahead=0,N.insert=0,N.match_length=N.prev_length=2,N.match_available=0,N.ins_h=0})(L.state),G}function J(L,G,N,R,U,K){if(!L)return D;var rt=1;if(G===-1&&(G=6),R<0?(rt=0,R=-R):15<R&&(rt=2,R-=16),U<1||9<U||N!==8||R<8||15<R||G<0||9<G||K<0||4<K)return F(L,D);R===8&&(R=9);var Z=new j;return(L.state=Z).strm=L,Z.wrap=rt,Z.gzhead=null,Z.w_bits=R,Z.w_size=1<<Z.w_bits,Z.w_mask=Z.w_size-1,Z.hash_bits=U+7,Z.hash_size=1<<Z.hash_bits,Z.hash_mask=Z.hash_size-1,Z.hash_shift=~~((Z.hash_bits+3-1)/3),Z.window=new b.Buf8(2*Z.w_size),Z.head=new b.Buf16(Z.hash_size),Z.prev=new b.Buf16(Z.w_size),Z.lit_bufsize=1<<U+6,Z.pending_buf_size=4*Z.lit_bufsize,Z.pending_buf=new b.Buf8(Z.pending_buf_size),Z.d_buf=1*Z.lit_bufsize,Z.l_buf=3*Z.lit_bufsize,Z.level=G,Z.strategy=K,Z.method=N,X(L)}d=[new O(0,0,0,0,(function(L,G){var N=65535;for(N>L.pending_buf_size-5&&(N=L.pending_buf_size-5);;){if(L.lookahead<=1){if(x(L),L.lookahead===0&&G===0)return 1;if(L.lookahead===0)break}L.strstart+=L.lookahead,L.lookahead=0;var R=L.block_start+N;if((L.strstart===0||L.strstart>=R)&&(L.lookahead=L.strstart-R,L.strstart=R,M(L,!1),L.strm.avail_out===0)||L.strstart-L.block_start>=L.w_size-P&&(M(L,!1),L.strm.avail_out===0))return 1}return L.insert=0,G===4?(M(L,!0),L.strm.avail_out===0?3:4):(L.strstart>L.block_start&&(M(L,!1),L.strm.avail_out),1)})),new O(4,4,8,4,_),new O(4,5,16,8,_),new O(4,6,32,32,_),new O(4,4,16,16,T),new O(8,16,32,32,T),new O(8,16,128,128,T),new O(8,32,128,256,T),new O(32,128,258,1024,T),new O(32,258,258,4096,T)],m.deflateInit=function(L,G){return J(L,G,8,15,8,0)},m.deflateInit2=J,m.deflateReset=X,m.deflateResetKeep=V,m.deflateSetHeader=function(L,G){return L&&L.state?L.state.wrap!==2?D:(L.state.gzhead=G,0):D},m.deflate=function(L,G){var N,R,U,K;if(!L||!L.state||5<G||G<0)return L?F(L,D):D;if(R=L.state,!L.output||!L.input&&L.avail_in!==0||R.status===666&&G!==4)return F(L,L.avail_out===0?-5:D);if(R.strm=L,N=R.last_flush,R.last_flush=G,R.status===42)if(R.wrap===2)L.adler=0,k(R,31),k(R,139),k(R,8),R.gzhead?(k(R,(R.gzhead.text?1:0)+(R.gzhead.hcrc?2:0)+(R.gzhead.extra?4:0)+(R.gzhead.name?8:0)+(R.gzhead.comment?16:0)),k(R,255&R.gzhead.time),k(R,R.gzhead.time>>8&255),k(R,R.gzhead.time>>16&255),k(R,R.gzhead.time>>24&255),k(R,R.level===9?2:2<=R.strategy||R.level<2?4:0),k(R,255&R.gzhead.os),R.gzhead.extra&&R.gzhead.extra.length&&(k(R,255&R.gzhead.extra.length),k(R,R.gzhead.extra.length>>8&255)),R.gzhead.hcrc&&(L.adler=C(L.adler,R.pending_buf,R.pending,0)),R.gzindex=0,R.status=69):(k(R,0),k(R,0),k(R,0),k(R,0),k(R,0),k(R,R.level===9?2:2<=R.strategy||R.level<2?4:0),k(R,3),R.status=B);else{var rt=8+(R.w_bits-8<<4)<<8;rt|=(2<=R.strategy||R.level<2?0:R.level<6?1:R.level===6?2:3)<<6,R.strstart!==0&&(rt|=32),rt+=31-rt%31,R.status=B,y(R,rt),R.strstart!==0&&(y(R,L.adler>>>16),y(R,65535&L.adler)),L.adler=1}if(R.status===69)if(R.gzhead.extra){for(U=R.pending;R.gzindex<(65535&R.gzhead.extra.length)&&(R.pending!==R.pending_buf_size||(R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),A(L),U=R.pending,R.pending!==R.pending_buf_size));)k(R,255&R.gzhead.extra[R.gzindex]),R.gzindex++;R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),R.gzindex===R.gzhead.extra.length&&(R.gzindex=0,R.status=73)}else R.status=73;if(R.status===73)if(R.gzhead.name){U=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),A(L),U=R.pending,R.pending===R.pending_buf_size)){K=1;break}K=R.gzindex<R.gzhead.name.length?255&R.gzhead.name.charCodeAt(R.gzindex++):0,k(R,K)}while(K!==0);R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),K===0&&(R.gzindex=0,R.status=91)}else R.status=91;if(R.status===91)if(R.gzhead.comment){U=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),A(L),U=R.pending,R.pending===R.pending_buf_size)){K=1;break}K=R.gzindex<R.gzhead.comment.length?255&R.gzhead.comment.charCodeAt(R.gzindex++):0,k(R,K)}while(K!==0);R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),K===0&&(R.status=103)}else R.status=103;if(R.status===103&&(R.gzhead.hcrc?(R.pending+2>R.pending_buf_size&&A(L),R.pending+2<=R.pending_buf_size&&(k(R,255&L.adler),k(R,L.adler>>8&255),L.adler=0,R.status=B)):R.status=B),R.pending!==0){if(A(L),L.avail_out===0)return R.last_flush=-1,0}else if(L.avail_in===0&&W(G)<=W(N)&&G!==4)return F(L,-5);if(R.status===666&&L.avail_in!==0)return F(L,-5);if(L.avail_in!==0||R.lookahead!==0||G!==0&&R.status!==666){var Z=R.strategy===2?(function(et,ht){for(var lt;;){if(et.lookahead===0&&(x(et),et.lookahead===0)){if(ht===0)return 1;break}if(et.match_length=0,lt=g._tr_tally(et,0,et.window[et.strstart]),et.lookahead--,et.strstart++,lt&&(M(et,!1),et.strm.avail_out===0))return 1}return et.insert=0,ht===4?(M(et,!0),et.strm.avail_out===0?3:4):et.last_lit&&(M(et,!1),et.strm.avail_out===0)?1:2})(R,G):R.strategy===3?(function(et,ht){for(var lt,Q,ot,nt,ut=et.window;;){if(et.lookahead<=z){if(x(et),et.lookahead<=z&&ht===0)return 1;if(et.lookahead===0)break}if(et.match_length=0,et.lookahead>=3&&0<et.strstart&&(Q=ut[ot=et.strstart-1])===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]){nt=et.strstart+z;do;while(Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&ot<nt);et.match_length=z-(nt-ot),et.match_length>et.lookahead&&(et.match_length=et.lookahead)}if(et.match_length>=3?(lt=g._tr_tally(et,1,et.match_length-3),et.lookahead-=et.match_length,et.strstart+=et.match_length,et.match_length=0):(lt=g._tr_tally(et,0,et.window[et.strstart]),et.lookahead--,et.strstart++),lt&&(M(et,!1),et.strm.avail_out===0))return 1}return et.insert=0,ht===4?(M(et,!0),et.strm.avail_out===0?3:4):et.last_lit&&(M(et,!1),et.strm.avail_out===0)?1:2})(R,G):d[R.level].func(R,G);if(Z!==3&&Z!==4||(R.status=666),Z===1||Z===3)return L.avail_out===0&&(R.last_flush=-1),0;if(Z===2&&(G===1?g._tr_align(R):G!==5&&(g._tr_stored_block(R,0,0,!1),G===3&&(q(R.head),R.lookahead===0&&(R.strstart=0,R.block_start=0,R.insert=0))),A(L),L.avail_out===0))return R.last_flush=-1,0}return G!==4?0:R.wrap<=0?1:(R.wrap===2?(k(R,255&L.adler),k(R,L.adler>>8&255),k(R,L.adler>>16&255),k(R,L.adler>>24&255),k(R,255&L.total_in),k(R,L.total_in>>8&255),k(R,L.total_in>>16&255),k(R,L.total_in>>24&255)):(y(R,L.adler>>>16),y(R,65535&L.adler)),A(L),0<R.wrap&&(R.wrap=-R.wrap),R.pending!==0?0:1)},m.deflateEnd=function(L){var G;return L&&L.state?(G=L.state.status)!==42&&G!==69&&G!==73&&G!==91&&G!==103&&G!==B&&G!==666?F(L,D):(L.state=null,G===B?F(L,-3):0):D},m.deflateSetDictionary=function(L,G){var N,R,U,K,rt,Z,et,ht,lt=G.length;if(!L||!L.state||(K=(N=L.state).wrap)===2||K===1&&N.status!==42||N.lookahead)return D;for(K===1&&(L.adler=S(L.adler,G,lt,0)),N.wrap=0,lt>=N.w_size&&(K===0&&(q(N.head),N.strstart=0,N.block_start=0,N.insert=0),ht=new b.Buf8(N.w_size),b.arraySet(ht,G,lt-N.w_size,N.w_size,0),G=ht,lt=N.w_size),rt=L.avail_in,Z=L.next_in,et=L.input,L.avail_in=lt,L.next_in=0,L.input=G,x(N);N.lookahead>=3;){for(R=N.strstart,U=N.lookahead-2;N.ins_h=(N.ins_h<<N.hash_shift^N.window[R+3-1])&N.hash_mask,N.prev[R&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=R,R++,--U;);N.strstart=R,N.lookahead=2,x(N)}return N.strstart+=N.lookahead,N.block_start=N.strstart,N.insert=N.lookahead,N.lookahead=0,N.match_length=N.prev_length=2,N.match_available=0,L.next_in=Z,L.input=et,L.avail_in=rt,N.wrap=K,0},m.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(h,p,m){p.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(h,p,m){p.exports=function(d,b){var g,S,C,I,D,z,P,B,F,W,q,A,M,k,y,w,x,_,T,O,j,V,X,J,L;g=d.state,S=d.next_in,J=d.input,C=S+(d.avail_in-5),I=d.next_out,L=d.output,D=I-(b-d.avail_out),z=I+(d.avail_out-257),P=g.dmax,B=g.wsize,F=g.whave,W=g.wnext,q=g.window,A=g.hold,M=g.bits,k=g.lencode,y=g.distcode,w=(1<<g.lenbits)-1,x=(1<<g.distbits)-1;t:do{M<15&&(A+=J[S++]<<M,M+=8,A+=J[S++]<<M,M+=8),_=k[A&w];e:for(;;){if(A>>>=T=_>>>24,M-=T,(T=_>>>16&255)==0)L[I++]=65535&_;else{if(!(16&T)){if((64&T)==0){_=k[(65535&_)+(A&(1<<T)-1)];continue e}if(32&T){g.mode=12;break t}d.msg="invalid literal/length code",g.mode=30;break t}O=65535&_,(T&=15)&&(M<T&&(A+=J[S++]<<M,M+=8),O+=A&(1<<T)-1,A>>>=T,M-=T),M<15&&(A+=J[S++]<<M,M+=8,A+=J[S++]<<M,M+=8),_=y[A&x];r:for(;;){if(A>>>=T=_>>>24,M-=T,!(16&(T=_>>>16&255))){if((64&T)==0){_=y[(65535&_)+(A&(1<<T)-1)];continue r}d.msg="invalid distance code",g.mode=30;break t}if(j=65535&_,M<(T&=15)&&(A+=J[S++]<<M,(M+=8)<T&&(A+=J[S++]<<M,M+=8)),P<(j+=A&(1<<T)-1)){d.msg="invalid distance too far back",g.mode=30;break t}if(A>>>=T,M-=T,(T=I-D)<j){if(F<(T=j-T)&&g.sane){d.msg="invalid distance too far back",g.mode=30;break t}if(X=q,(V=0)===W){if(V+=B-T,T<O){for(O-=T;L[I++]=q[V++],--T;);V=I-j,X=L}}else if(W<T){if(V+=B+W-T,(T-=W)<O){for(O-=T;L[I++]=q[V++],--T;);if(V=0,W<O){for(O-=T=W;L[I++]=q[V++],--T;);V=I-j,X=L}}}else if(V+=W-T,T<O){for(O-=T;L[I++]=q[V++],--T;);V=I-j,X=L}for(;2<O;)L[I++]=X[V++],L[I++]=X[V++],L[I++]=X[V++],O-=3;O&&(L[I++]=X[V++],1<O&&(L[I++]=X[V++]))}else{for(V=I-j;L[I++]=L[V++],L[I++]=L[V++],L[I++]=L[V++],2<(O-=3););O&&(L[I++]=L[V++],1<O&&(L[I++]=L[V++]))}break}}break}}while(S<C&&I<z);S-=O=M>>3,A&=(1<<(M-=O<<3))-1,d.next_in=S,d.next_out=I,d.avail_in=S<C?C-S+5:5-(S-C),d.avail_out=I<z?z-I+257:257-(I-z),g.hold=A,g.bits=M}},{}],49:[function(h,p,m){var d=h("../utils/common"),b=h("./adler32"),g=h("./crc32"),S=h("./inffast"),C=h("./inftrees"),I=-2;function D(w){return(w>>>24&255)+(w>>>8&65280)+((65280&w)<<8)+((255&w)<<24)}function z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new d.Buf16(320),this.work=new d.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function P(w){var x;return w&&w.state?(x=w.state,w.total_in=w.total_out=x.total=0,w.msg="",x.wrap&&(w.adler=1&x.wrap),x.mode=1,x.last=0,x.havedict=0,x.dmax=32768,x.head=null,x.hold=0,x.bits=0,x.lencode=x.lendyn=new d.Buf32(852),x.distcode=x.distdyn=new d.Buf32(592),x.sane=1,x.back=-1,0):I}function B(w){var x;return w&&w.state?((x=w.state).wsize=0,x.whave=0,x.wnext=0,P(w)):I}function F(w,x){var _,T;return w&&w.state?(T=w.state,x<0?(_=0,x=-x):(_=1+(x>>4),x<48&&(x&=15)),x&&(x<8||15<x)?I:(T.window!==null&&T.wbits!==x&&(T.window=null),T.wrap=_,T.wbits=x,B(w))):I}function W(w,x){var _,T;return w?(T=new z,(w.state=T).window=null,(_=F(w,x))!==0&&(w.state=null),_):I}var q,A,M=!0;function k(w){if(M){var x;for(q=new d.Buf32(512),A=new d.Buf32(32),x=0;x<144;)w.lens[x++]=8;for(;x<256;)w.lens[x++]=9;for(;x<280;)w.lens[x++]=7;for(;x<288;)w.lens[x++]=8;for(C(1,w.lens,0,288,q,0,w.work,{bits:9}),x=0;x<32;)w.lens[x++]=5;C(2,w.lens,0,32,A,0,w.work,{bits:5}),M=!1}w.lencode=q,w.lenbits=9,w.distcode=A,w.distbits=5}function y(w,x,_,T){var O,j=w.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new d.Buf8(j.wsize)),T>=j.wsize?(d.arraySet(j.window,x,_-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(T<(O=j.wsize-j.wnext)&&(O=T),d.arraySet(j.window,x,_-T,O,j.wnext),(T-=O)?(d.arraySet(j.window,x,_-T,T,0),j.wnext=T,j.whave=j.wsize):(j.wnext+=O,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=O))),0}m.inflateReset=B,m.inflateReset2=F,m.inflateResetKeep=P,m.inflateInit=function(w){return W(w,15)},m.inflateInit2=W,m.inflate=function(w,x){var _,T,O,j,V,X,J,L,G,N,R,U,K,rt,Z,et,ht,lt,Q,ot,nt,ut,ct,ft,mt=0,gt=new d.Buf8(4),xt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!w||!w.state||!w.output||!w.input&&w.avail_in!==0)return I;(_=w.state).mode===12&&(_.mode=13),V=w.next_out,O=w.output,J=w.avail_out,j=w.next_in,T=w.input,X=w.avail_in,L=_.hold,G=_.bits,N=X,R=J,ut=0;t:for(;;)switch(_.mode){case 1:if(_.wrap===0){_.mode=13;break}for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(2&_.wrap&&L===35615){gt[_.check=0]=255&L,gt[1]=L>>>8&255,_.check=g(_.check,gt,2,0),G=L=0,_.mode=2;break}if(_.flags=0,_.head&&(_.head.done=!1),!(1&_.wrap)||(((255&L)<<8)+(L>>8))%31){w.msg="incorrect header check",_.mode=30;break}if((15&L)!=8){w.msg="unknown compression method",_.mode=30;break}if(G-=4,nt=8+(15&(L>>>=4)),_.wbits===0)_.wbits=nt;else if(nt>_.wbits){w.msg="invalid window size",_.mode=30;break}_.dmax=1<<nt,w.adler=_.check=1,_.mode=512&L?10:12,G=L=0;break;case 2:for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(_.flags=L,(255&_.flags)!=8){w.msg="unknown compression method",_.mode=30;break}if(57344&_.flags){w.msg="unknown header flags set",_.mode=30;break}_.head&&(_.head.text=L>>8&1),512&_.flags&&(gt[0]=255&L,gt[1]=L>>>8&255,_.check=g(_.check,gt,2,0)),G=L=0,_.mode=3;case 3:for(;G<32;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.head&&(_.head.time=L),512&_.flags&&(gt[0]=255&L,gt[1]=L>>>8&255,gt[2]=L>>>16&255,gt[3]=L>>>24&255,_.check=g(_.check,gt,4,0)),G=L=0,_.mode=4;case 4:for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.head&&(_.head.xflags=255&L,_.head.os=L>>8),512&_.flags&&(gt[0]=255&L,gt[1]=L>>>8&255,_.check=g(_.check,gt,2,0)),G=L=0,_.mode=5;case 5:if(1024&_.flags){for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.length=L,_.head&&(_.head.extra_len=L),512&_.flags&&(gt[0]=255&L,gt[1]=L>>>8&255,_.check=g(_.check,gt,2,0)),G=L=0}else _.head&&(_.head.extra=null);_.mode=6;case 6:if(1024&_.flags&&(X<(U=_.length)&&(U=X),U&&(_.head&&(nt=_.head.extra_len-_.length,_.head.extra||(_.head.extra=new Array(_.head.extra_len)),d.arraySet(_.head.extra,T,j,U,nt)),512&_.flags&&(_.check=g(_.check,T,U,j)),X-=U,j+=U,_.length-=U),_.length))break t;_.length=0,_.mode=7;case 7:if(2048&_.flags){if(X===0)break t;for(U=0;nt=T[j+U++],_.head&&nt&&_.length<65536&&(_.head.name+=String.fromCharCode(nt)),nt&&U<X;);if(512&_.flags&&(_.check=g(_.check,T,U,j)),X-=U,j+=U,nt)break t}else _.head&&(_.head.name=null);_.length=0,_.mode=8;case 8:if(4096&_.flags){if(X===0)break t;for(U=0;nt=T[j+U++],_.head&&nt&&_.length<65536&&(_.head.comment+=String.fromCharCode(nt)),nt&&U<X;);if(512&_.flags&&(_.check=g(_.check,T,U,j)),X-=U,j+=U,nt)break t}else _.head&&(_.head.comment=null);_.mode=9;case 9:if(512&_.flags){for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(L!==(65535&_.check)){w.msg="header crc mismatch",_.mode=30;break}G=L=0}_.head&&(_.head.hcrc=_.flags>>9&1,_.head.done=!0),w.adler=_.check=0,_.mode=12;break;case 10:for(;G<32;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}w.adler=_.check=D(L),G=L=0,_.mode=11;case 11:if(_.havedict===0)return w.next_out=V,w.avail_out=J,w.next_in=j,w.avail_in=X,_.hold=L,_.bits=G,2;w.adler=_.check=1,_.mode=12;case 12:if(x===5||x===6)break t;case 13:if(_.last){L>>>=7&G,G-=7&G,_.mode=27;break}for(;G<3;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}switch(_.last=1&L,G-=1,3&(L>>>=1)){case 0:_.mode=14;break;case 1:if(k(_),_.mode=20,x!==6)break;L>>>=2,G-=2;break t;case 2:_.mode=17;break;case 3:w.msg="invalid block type",_.mode=30}L>>>=2,G-=2;break;case 14:for(L>>>=7&G,G-=7&G;G<32;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if((65535&L)!=(L>>>16^65535)){w.msg="invalid stored block lengths",_.mode=30;break}if(_.length=65535&L,G=L=0,_.mode=15,x===6)break t;case 15:_.mode=16;case 16:if(U=_.length){if(X<U&&(U=X),J<U&&(U=J),U===0)break t;d.arraySet(O,T,j,U,V),X-=U,j+=U,J-=U,V+=U,_.length-=U;break}_.mode=12;break;case 17:for(;G<14;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(_.nlen=257+(31&L),L>>>=5,G-=5,_.ndist=1+(31&L),L>>>=5,G-=5,_.ncode=4+(15&L),L>>>=4,G-=4,286<_.nlen||30<_.ndist){w.msg="too many length or distance symbols",_.mode=30;break}_.have=0,_.mode=18;case 18:for(;_.have<_.ncode;){for(;G<3;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.lens[xt[_.have++]]=7&L,L>>>=3,G-=3}for(;_.have<19;)_.lens[xt[_.have++]]=0;if(_.lencode=_.lendyn,_.lenbits=7,ct={bits:_.lenbits},ut=C(0,_.lens,0,19,_.lencode,0,_.work,ct),_.lenbits=ct.bits,ut){w.msg="invalid code lengths set",_.mode=30;break}_.have=0,_.mode=19;case 19:for(;_.have<_.nlen+_.ndist;){for(;et=(mt=_.lencode[L&(1<<_.lenbits)-1])>>>16&255,ht=65535&mt,!((Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(ht<16)L>>>=Z,G-=Z,_.lens[_.have++]=ht;else{if(ht===16){for(ft=Z+2;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(L>>>=Z,G-=Z,_.have===0){w.msg="invalid bit length repeat",_.mode=30;break}nt=_.lens[_.have-1],U=3+(3&L),L>>>=2,G-=2}else if(ht===17){for(ft=Z+3;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}G-=Z,nt=0,U=3+(7&(L>>>=Z)),L>>>=3,G-=3}else{for(ft=Z+7;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}G-=Z,nt=0,U=11+(127&(L>>>=Z)),L>>>=7,G-=7}if(_.have+U>_.nlen+_.ndist){w.msg="invalid bit length repeat",_.mode=30;break}for(;U--;)_.lens[_.have++]=nt}}if(_.mode===30)break;if(_.lens[256]===0){w.msg="invalid code -- missing end-of-block",_.mode=30;break}if(_.lenbits=9,ct={bits:_.lenbits},ut=C(1,_.lens,0,_.nlen,_.lencode,0,_.work,ct),_.lenbits=ct.bits,ut){w.msg="invalid literal/lengths set",_.mode=30;break}if(_.distbits=6,_.distcode=_.distdyn,ct={bits:_.distbits},ut=C(2,_.lens,_.nlen,_.ndist,_.distcode,0,_.work,ct),_.distbits=ct.bits,ut){w.msg="invalid distances set",_.mode=30;break}if(_.mode=20,x===6)break t;case 20:_.mode=21;case 21:if(6<=X&&258<=J){w.next_out=V,w.avail_out=J,w.next_in=j,w.avail_in=X,_.hold=L,_.bits=G,S(w,R),V=w.next_out,O=w.output,J=w.avail_out,j=w.next_in,T=w.input,X=w.avail_in,L=_.hold,G=_.bits,_.mode===12&&(_.back=-1);break}for(_.back=0;et=(mt=_.lencode[L&(1<<_.lenbits)-1])>>>16&255,ht=65535&mt,!((Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(et&&(240&et)==0){for(lt=Z,Q=et,ot=ht;et=(mt=_.lencode[ot+((L&(1<<lt+Q)-1)>>lt)])>>>16&255,ht=65535&mt,!(lt+(Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}L>>>=lt,G-=lt,_.back+=lt}if(L>>>=Z,G-=Z,_.back+=Z,_.length=ht,et===0){_.mode=26;break}if(32&et){_.back=-1,_.mode=12;break}if(64&et){w.msg="invalid literal/length code",_.mode=30;break}_.extra=15&et,_.mode=22;case 22:if(_.extra){for(ft=_.extra;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.length+=L&(1<<_.extra)-1,L>>>=_.extra,G-=_.extra,_.back+=_.extra}_.was=_.length,_.mode=23;case 23:for(;et=(mt=_.distcode[L&(1<<_.distbits)-1])>>>16&255,ht=65535&mt,!((Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if((240&et)==0){for(lt=Z,Q=et,ot=ht;et=(mt=_.distcode[ot+((L&(1<<lt+Q)-1)>>lt)])>>>16&255,ht=65535&mt,!(lt+(Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}L>>>=lt,G-=lt,_.back+=lt}if(L>>>=Z,G-=Z,_.back+=Z,64&et){w.msg="invalid distance code",_.mode=30;break}_.offset=ht,_.extra=15&et,_.mode=24;case 24:if(_.extra){for(ft=_.extra;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.offset+=L&(1<<_.extra)-1,L>>>=_.extra,G-=_.extra,_.back+=_.extra}if(_.offset>_.dmax){w.msg="invalid distance too far back",_.mode=30;break}_.mode=25;case 25:if(J===0)break t;if(U=R-J,_.offset>U){if((U=_.offset-U)>_.whave&&_.sane){w.msg="invalid distance too far back",_.mode=30;break}K=U>_.wnext?(U-=_.wnext,_.wsize-U):_.wnext-U,U>_.length&&(U=_.length),rt=_.window}else rt=O,K=V-_.offset,U=_.length;for(J<U&&(U=J),J-=U,_.length-=U;O[V++]=rt[K++],--U;);_.length===0&&(_.mode=21);break;case 26:if(J===0)break t;O[V++]=_.length,J--,_.mode=21;break;case 27:if(_.wrap){for(;G<32;){if(X===0)break t;X--,L|=T[j++]<<G,G+=8}if(R-=J,w.total_out+=R,_.total+=R,R&&(w.adler=_.check=_.flags?g(_.check,O,R,V-R):b(_.check,O,R,V-R)),R=J,(_.flags?L:D(L))!==_.check){w.msg="incorrect data check",_.mode=30;break}G=L=0}_.mode=28;case 28:if(_.wrap&&_.flags){for(;G<32;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(L!==(4294967295&_.total)){w.msg="incorrect length check",_.mode=30;break}G=L=0}_.mode=29;case 29:ut=1;break t;case 30:ut=-3;break t;case 31:return-4;case 32:default:return I}return w.next_out=V,w.avail_out=J,w.next_in=j,w.avail_in=X,_.hold=L,_.bits=G,(_.wsize||R!==w.avail_out&&_.mode<30&&(_.mode<27||x!==4))&&y(w,w.output,w.next_out,R-w.avail_out)?(_.mode=31,-4):(N-=w.avail_in,R-=w.avail_out,w.total_in+=N,w.total_out+=R,_.total+=R,_.wrap&&R&&(w.adler=_.check=_.flags?g(_.check,O,R,w.next_out-R):b(_.check,O,R,w.next_out-R)),w.data_type=_.bits+(_.last?64:0)+(_.mode===12?128:0)+(_.mode===20||_.mode===15?256:0),(N==0&&R===0||x===4)&&ut===0&&(ut=-5),ut)},m.inflateEnd=function(w){if(!w||!w.state)return I;var x=w.state;return x.window&&(x.window=null),w.state=null,0},m.inflateGetHeader=function(w,x){var _;return w&&w.state?(2&(_=w.state).wrap)==0?I:((_.head=x).done=!1,0):I},m.inflateSetDictionary=function(w,x){var _,T=x.length;return w&&w.state?(_=w.state).wrap!==0&&_.mode!==11?I:_.mode===11&&b(1,x,T,0)!==_.check?-3:y(w,x,T,T)?(_.mode=31,-4):(_.havedict=1,0):I},m.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(h,p,m){var d=h("../utils/common"),b=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],S=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],C=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];p.exports=function(I,D,z,P,B,F,W,q){var A,M,k,y,w,x,_,T,O,j=q.bits,V=0,X=0,J=0,L=0,G=0,N=0,R=0,U=0,K=0,rt=0,Z=null,et=0,ht=new d.Buf16(16),lt=new d.Buf16(16),Q=null,ot=0;for(V=0;V<=15;V++)ht[V]=0;for(X=0;X<P;X++)ht[D[z+X]]++;for(G=j,L=15;1<=L&&ht[L]===0;L--);if(L<G&&(G=L),L===0)return B[F++]=20971520,B[F++]=20971520,q.bits=1,0;for(J=1;J<L&&ht[J]===0;J++);for(G<J&&(G=J),V=U=1;V<=15;V++)if(U<<=1,(U-=ht[V])<0)return-1;if(0<U&&(I===0||L!==1))return-1;for(lt[1]=0,V=1;V<15;V++)lt[V+1]=lt[V]+ht[V];for(X=0;X<P;X++)D[z+X]!==0&&(W[lt[D[z+X]]++]=X);if(x=I===0?(Z=Q=W,19):I===1?(Z=b,et-=257,Q=g,ot-=257,256):(Z=S,Q=C,-1),V=J,w=F,R=X=rt=0,k=-1,y=(K=1<<(N=G))-1,I===1&&852<K||I===2&&592<K)return 1;for(;;){for(_=V-R,O=W[X]<x?(T=0,W[X]):W[X]>x?(T=Q[ot+W[X]],Z[et+W[X]]):(T=96,0),A=1<<V-R,J=M=1<<N;B[w+(rt>>R)+(M-=A)]=_<<24|T<<16|O|0,M!==0;);for(A=1<<V-1;rt&A;)A>>=1;if(A!==0?(rt&=A-1,rt+=A):rt=0,X++,--ht[V]==0){if(V===L)break;V=D[z+W[X]]}if(G<V&&(rt&y)!==k){for(R===0&&(R=G),w+=J,U=1<<(N=V-R);N+R<L&&!((U-=ht[N+R])<=0);)N++,U<<=1;if(K+=1<<N,I===1&&852<K||I===2&&592<K)return 1;B[k=rt&y]=G<<24|N<<16|w-F|0}}return rt!==0&&(B[w+rt]=V-R<<24|64<<16|0),q.bits=G,0}},{"../utils/common":41}],51:[function(h,p,m){p.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(h,p,m){var d=h("../utils/common");function b(Q){for(var ot=Q.length;0<=--ot;)Q[ot]=0}var g=256,S=286,C=30,I=15,D=[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],z=[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],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(576);b(F);var W=new Array(60);b(W);var q=new Array(512);b(q);var A=new Array(256);b(A);var M=new Array(29);b(M);var k,y,w,x=new Array(C);function _(Q,ot,nt,ut,ct){this.static_tree=Q,this.extra_bits=ot,this.extra_base=nt,this.elems=ut,this.max_length=ct,this.has_stree=Q&&Q.length}function T(Q,ot){this.dyn_tree=Q,this.max_code=0,this.stat_desc=ot}function O(Q){return Q<256?q[Q]:q[256+(Q>>>7)]}function j(Q,ot){Q.pending_buf[Q.pending++]=255&ot,Q.pending_buf[Q.pending++]=ot>>>8&255}function V(Q,ot,nt){Q.bi_valid>16-nt?(Q.bi_buf|=ot<<Q.bi_valid&65535,j(Q,Q.bi_buf),Q.bi_buf=ot>>16-Q.bi_valid,Q.bi_valid+=nt-16):(Q.bi_buf|=ot<<Q.bi_valid&65535,Q.bi_valid+=nt)}function X(Q,ot,nt){V(Q,nt[2*ot],nt[2*ot+1])}function J(Q,ot){for(var nt=0;nt|=1&Q,Q>>>=1,nt<<=1,0<--ot;);return nt>>>1}function L(Q,ot,nt){var ut,ct,ft=new Array(16),mt=0;for(ut=1;ut<=I;ut++)ft[ut]=mt=mt+nt[ut-1]<<1;for(ct=0;ct<=ot;ct++){var gt=Q[2*ct+1];gt!==0&&(Q[2*ct]=J(ft[gt]++,gt))}}function G(Q){var ot;for(ot=0;ot<S;ot++)Q.dyn_ltree[2*ot]=0;for(ot=0;ot<C;ot++)Q.dyn_dtree[2*ot]=0;for(ot=0;ot<19;ot++)Q.bl_tree[2*ot]=0;Q.dyn_ltree[512]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function N(Q){8<Q.bi_valid?j(Q,Q.bi_buf):0<Q.bi_valid&&(Q.pending_buf[Q.pending++]=Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0}function R(Q,ot,nt,ut){var ct=2*ot,ft=2*nt;return Q[ct]<Q[ft]||Q[ct]===Q[ft]&&ut[ot]<=ut[nt]}function U(Q,ot,nt){for(var ut=Q.heap[nt],ct=nt<<1;ct<=Q.heap_len&&(ct<Q.heap_len&&R(ot,Q.heap[ct+1],Q.heap[ct],Q.depth)&&ct++,!R(ot,ut,Q.heap[ct],Q.depth));)Q.heap[nt]=Q.heap[ct],nt=ct,ct<<=1;Q.heap[nt]=ut}function K(Q,ot,nt){var ut,ct,ft,mt,gt=0;if(Q.last_lit!==0)for(;ut=Q.pending_buf[Q.d_buf+2*gt]<<8|Q.pending_buf[Q.d_buf+2*gt+1],ct=Q.pending_buf[Q.l_buf+gt],gt++,ut===0?X(Q,ct,ot):(X(Q,(ft=A[ct])+g+1,ot),(mt=D[ft])!==0&&V(Q,ct-=M[ft],mt),X(Q,ft=O(--ut),nt),(mt=z[ft])!==0&&V(Q,ut-=x[ft],mt)),gt<Q.last_lit;);X(Q,256,ot)}function rt(Q,ot){var nt,ut,ct,ft=ot.dyn_tree,mt=ot.stat_desc.static_tree,gt=ot.stat_desc.has_stree,xt=ot.stat_desc.elems,Nt=-1;for(Q.heap_len=0,Q.heap_max=573,nt=0;nt<xt;nt++)ft[2*nt]!==0?(Q.heap[++Q.heap_len]=Nt=nt,Q.depth[nt]=0):ft[2*nt+1]=0;for(;Q.heap_len<2;)ft[2*(ct=Q.heap[++Q.heap_len]=Nt<2?++Nt:0)]=1,Q.depth[ct]=0,Q.opt_len--,gt&&(Q.static_len-=mt[2*ct+1]);for(ot.max_code=Nt,nt=Q.heap_len>>1;1<=nt;nt--)U(Q,ft,nt);for(ct=xt;nt=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],U(Q,ft,1),ut=Q.heap[1],Q.heap[--Q.heap_max]=nt,Q.heap[--Q.heap_max]=ut,ft[2*ct]=ft[2*nt]+ft[2*ut],Q.depth[ct]=(Q.depth[nt]>=Q.depth[ut]?Q.depth[nt]:Q.depth[ut])+1,ft[2*nt+1]=ft[2*ut+1]=ct,Q.heap[1]=ct++,U(Q,ft,1),2<=Q.heap_len;);Q.heap[--Q.heap_max]=Q.heap[1],(function(It,At){var Ut,Ht,zt,Xt,jt,Ct,$t=At.dyn_tree,qt=At.max_code,Pt=At.stat_desc.static_tree,fe=At.stat_desc.has_stree,ke=At.stat_desc.extra_bits,Yt=At.stat_desc.extra_base,we=At.stat_desc.max_length,ue=0;for(Xt=0;Xt<=I;Xt++)It.bl_count[Xt]=0;for($t[2*It.heap[It.heap_max]+1]=0,Ut=It.heap_max+1;Ut<573;Ut++)we<(Xt=$t[2*$t[2*(Ht=It.heap[Ut])+1]+1]+1)&&(Xt=we,ue++),$t[2*Ht+1]=Xt,qt<Ht||(It.bl_count[Xt]++,jt=0,Yt<=Ht&&(jt=ke[Ht-Yt]),Ct=$t[2*Ht],It.opt_len+=Ct*(Xt+jt),fe&&(It.static_len+=Ct*(Pt[2*Ht+1]+jt)));if(ue!==0){do{for(Xt=we-1;It.bl_count[Xt]===0;)Xt--;It.bl_count[Xt]--,It.bl_count[Xt+1]+=2,It.bl_count[we]--,ue-=2}while(0<ue);for(Xt=we;Xt!==0;Xt--)for(Ht=It.bl_count[Xt];Ht!==0;)qt<(zt=It.heap[--Ut])||($t[2*zt+1]!==Xt&&(It.opt_len+=(Xt-$t[2*zt+1])*$t[2*zt],$t[2*zt+1]=Xt),Ht--)}})(Q,ot),L(ft,Nt,Q.bl_count)}function Z(Q,ot,nt){var ut,ct,ft=-1,mt=ot[1],gt=0,xt=7,Nt=4;for(mt===0&&(xt=138,Nt=3),ot[2*(nt+1)+1]=65535,ut=0;ut<=nt;ut++)ct=mt,mt=ot[2*(ut+1)+1],++gt<xt&&ct===mt||(gt<Nt?Q.bl_tree[2*ct]+=gt:ct!==0?(ct!==ft&&Q.bl_tree[2*ct]++,Q.bl_tree[32]++):gt<=10?Q.bl_tree[34]++:Q.bl_tree[36]++,ft=ct,Nt=(gt=0)===mt?(xt=138,3):ct===mt?(xt=6,3):(xt=7,4))}function et(Q,ot,nt){var ut,ct,ft=-1,mt=ot[1],gt=0,xt=7,Nt=4;for(mt===0&&(xt=138,Nt=3),ut=0;ut<=nt;ut++)if(ct=mt,mt=ot[2*(ut+1)+1],!(++gt<xt&&ct===mt)){if(gt<Nt)for(;X(Q,ct,Q.bl_tree),--gt!=0;);else ct!==0?(ct!==ft&&(X(Q,ct,Q.bl_tree),gt--),X(Q,16,Q.bl_tree),V(Q,gt-3,2)):gt<=10?(X(Q,17,Q.bl_tree),V(Q,gt-3,3)):(X(Q,18,Q.bl_tree),V(Q,gt-11,7));ft=ct,Nt=(gt=0)===mt?(xt=138,3):ct===mt?(xt=6,3):(xt=7,4)}}b(x);var ht=!1;function lt(Q,ot,nt,ut){V(Q,0+(ut?1:0),3),(function(ct,ft,mt,gt){N(ct),j(ct,mt),j(ct,~mt),d.arraySet(ct.pending_buf,ct.window,ft,mt,ct.pending),ct.pending+=mt})(Q,ot,nt)}m._tr_init=function(Q){ht||((function(){var ot,nt,ut,ct,ft,mt=new Array(16);for(ct=ut=0;ct<28;ct++)for(M[ct]=ut,ot=0;ot<1<<D[ct];ot++)A[ut++]=ct;for(A[ut-1]=ct,ct=ft=0;ct<16;ct++)for(x[ct]=ft,ot=0;ot<1<<z[ct];ot++)q[ft++]=ct;for(ft>>=7;ct<C;ct++)for(x[ct]=ft<<7,ot=0;ot<1<<z[ct]-7;ot++)q[256+ft++]=ct;for(nt=0;nt<=I;nt++)mt[nt]=0;for(ot=0;ot<=143;)F[2*ot+1]=8,ot++,mt[8]++;for(;ot<=255;)F[2*ot+1]=9,ot++,mt[9]++;for(;ot<=279;)F[2*ot+1]=7,ot++,mt[7]++;for(;ot<=287;)F[2*ot+1]=8,ot++,mt[8]++;for(L(F,287,mt),ot=0;ot<C;ot++)W[2*ot+1]=5,W[2*ot]=J(ot,5);k=new _(F,D,257,S,I),y=new _(W,z,0,C,I),w=new _(new Array(0),P,0,19,7)})(),ht=!0),Q.l_desc=new T(Q.dyn_ltree,k),Q.d_desc=new T(Q.dyn_dtree,y),Q.bl_desc=new T(Q.bl_tree,w),Q.bi_buf=0,Q.bi_valid=0,G(Q)},m._tr_stored_block=lt,m._tr_flush_block=function(Q,ot,nt,ut){var ct,ft,mt=0;0<Q.level?(Q.strm.data_type===2&&(Q.strm.data_type=(function(gt){var xt,Nt=4093624447;for(xt=0;xt<=31;xt++,Nt>>>=1)if(1&Nt&>.dyn_ltree[2*xt]!==0)return 0;if(gt.dyn_ltree[18]!==0||gt.dyn_ltree[20]!==0||gt.dyn_ltree[26]!==0)return 1;for(xt=32;xt<g;xt++)if(gt.dyn_ltree[2*xt]!==0)return 1;return 0})(Q)),rt(Q,Q.l_desc),rt(Q,Q.d_desc),mt=(function(gt){var xt;for(Z(gt,gt.dyn_ltree,gt.l_desc.max_code),Z(gt,gt.dyn_dtree,gt.d_desc.max_code),rt(gt,gt.bl_desc),xt=18;3<=xt&>.bl_tree[2*B[xt]+1]===0;xt--);return gt.opt_len+=3*(xt+1)+5+5+4,xt})(Q),ct=Q.opt_len+3+7>>>3,(ft=Q.static_len+3+7>>>3)<=ct&&(ct=ft)):ct=ft=nt+5,nt+4<=ct&&ot!==-1?lt(Q,ot,nt,ut):Q.strategy===4||ft===ct?(V(Q,2+(ut?1:0),3),K(Q,F,W)):(V(Q,4+(ut?1:0),3),(function(gt,xt,Nt,It){var At;for(V(gt,xt-257,5),V(gt,Nt-1,5),V(gt,It-4,4),At=0;At<It;At++)V(gt,gt.bl_tree[2*B[At]+1],3);et(gt,gt.dyn_ltree,xt-1),et(gt,gt.dyn_dtree,Nt-1)})(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,mt+1),K(Q,Q.dyn_ltree,Q.dyn_dtree)),G(Q),ut&&N(Q)},m._tr_tally=function(Q,ot,nt){return Q.pending_buf[Q.d_buf+2*Q.last_lit]=ot>>>8&255,Q.pending_buf[Q.d_buf+2*Q.last_lit+1]=255&ot,Q.pending_buf[Q.l_buf+Q.last_lit]=255&nt,Q.last_lit++,ot===0?Q.dyn_ltree[2*nt]++:(Q.matches++,ot--,Q.dyn_ltree[2*(A[nt]+g+1)]++,Q.dyn_dtree[2*O(ot)]++),Q.last_lit===Q.lit_bufsize-1},m._tr_align=function(Q){V(Q,2,3),X(Q,256,F),(function(ot){ot.bi_valid===16?(j(ot,ot.bi_buf),ot.bi_buf=0,ot.bi_valid=0):8<=ot.bi_valid&&(ot.pending_buf[ot.pending++]=255&ot.bi_buf,ot.bi_buf>>=8,ot.bi_valid-=8)})(Q)}},{"../utils/common":41}],53:[function(h,p,m){p.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(h,p,m){(function(d){(function(b,g){if(!b.setImmediate){var S,C,I,D,z=1,P={},B=!1,F=b.document,W=Object.getPrototypeOf&&Object.getPrototypeOf(b);W=W&&W.setTimeout?W:b,S={}.toString.call(b.process)==="[object process]"?function(k){o.nextTick((function(){A(k)}))}:(function(){if(b.postMessage&&!b.importScripts){var k=!0,y=b.onmessage;return b.onmessage=function(){k=!1},b.postMessage("","*"),b.onmessage=y,k}})()?(D="setImmediate$"+Math.random()+"$",b.addEventListener?b.addEventListener("message",M,!1):b.attachEvent("onmessage",M),function(k){b.postMessage(D+k,"*")}):b.MessageChannel?((I=new MessageChannel).port1.onmessage=function(k){A(k.data)},function(k){I.port2.postMessage(k)}):F&&"onreadystatechange"in F.createElement("script")?(C=F.documentElement,function(k){var y=F.createElement("script");y.onreadystatechange=function(){A(k),y.onreadystatechange=null,C.removeChild(y),y=null},C.appendChild(y)}):function(k){setTimeout(A,0,k)},W.setImmediate=function(k){typeof k!="function"&&(k=new Function(""+k));for(var y=new Array(arguments.length-1),w=0;w<y.length;w++)y[w]=arguments[w+1];var x={callback:k,args:y};return P[z]=x,S(z),z++},W.clearImmediate=q}function q(k){delete P[k]}function A(k){if(B)setTimeout(A,0,k);else{var y=P[k];if(y){B=!0;try{(function(w){var x=w.callback,_=w.args;switch(_.length){case 0:x();break;case 1:x(_[0]);break;case 2:x(_[0],_[1]);break;case 3:x(_[0],_[1],_[2]);break;default:x.apply(void 0,_)}})(y)}finally{q(k),B=!1}}}}function M(k){k.source===b&&typeof k.data=="string"&&k.data.indexOf(D)===0&&A(+k.data.slice(D.length))}})(typeof self>"u"?d===void 0?this:d:self)}).call(this,r!==void 0?r:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,t("_process"),typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],t("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(t,l,c){(function(o){(function(){var r=/[\\^$.*+?()[\]{}|]/g,n=RegExp(r.source),s=typeof o=="object"&&o&&o.Object===Object&&o,e=typeof self=="object"&&self&&self.Object===Object&&self,i=s||e||Function("return this")(),u=Object.prototype.toString,a=i.Symbol,h=a?a.prototype:void 0,p=h?h.toString:void 0;function m(d){if(typeof d=="string")return d;if((function(g){return typeof g=="symbol"||(function(S){return!!S&&typeof S=="object"})(g)&&u.call(g)=="[object Symbol]"})(d))return p?p.call(d):"";var b=d+"";return b=="0"&&1/d==-1/0?"-0":b}l.exports=function(d){var b;return(d=(b=d)==null?"":m(b))&&n.test(d)?d.replace(r,"\\$&"):d}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(t,l,c){(function(o){(function(){var r="[object Arguments]",n="[object Map]",s="[object Object]",e="[object Set]",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,a=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,m=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[r]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b["[object Function]"]=b[n]=b["[object Number]"]=b[s]=b["[object RegExp]"]=b[e]=b["[object String]"]=b["[object WeakMap]"]=!1;var g=typeof o=="object"&&o&&o.Object===Object&&o,S=typeof self=="object"&&self&&self.Object===Object&&self,C=g||S||Function("return this")(),I=typeof c=="object"&&c&&!c.nodeType&&c,D=I&&typeof l=="object"&&l&&!l.nodeType&&l,z=D&&D.exports===I&&g.process,P=(function(){try{return z&&z.binding("util")}catch{}})(),B=P&&P.isTypedArray;function F(st,pt,wt,_t){for(var Bt=-1,Et=st?st.length:0;++Bt<Et;){var Rt=st[Bt];pt(_t,Rt,wt(Rt),st)}return _t}function W(st,pt){for(var wt=-1,_t=st?st.length:0;++wt<_t;)if(pt(st[wt],wt,st))return!0;return!1}function q(st){var pt=!1;if(st!=null&&typeof st.toString!="function")try{pt=!!(st+"")}catch{}return pt}function A(st){var pt=-1,wt=Array(st.size);return st.forEach((function(_t,Bt){wt[++pt]=[Bt,_t]})),wt}function M(st){var pt=-1,wt=Array(st.size);return st.forEach((function(_t){wt[++pt]=_t})),wt}var k,y,w,x=Array.prototype,_=Function.prototype,T=Object.prototype,O=C["__core-js_shared__"],j=(k=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",V=_.toString,X=T.hasOwnProperty,J=T.toString,L=RegExp("^"+V.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=C.Symbol,N=C.Uint8Array,R=T.propertyIsEnumerable,U=x.splice,K=(y=Object.keys,w=Object,function(st){return y(w(st))}),rt=Qt(C,"DataView"),Z=Qt(C,"Map"),et=Qt(C,"Promise"),ht=Qt(C,"Set"),lt=Qt(C,"WeakMap"),Q=Qt(Object,"create"),ot=dt(rt),nt=dt(Z),ut=dt(et),ct=dt(ht),ft=dt(lt),mt=G?G.prototype:void 0,gt=mt?mt.valueOf:void 0,xt=mt?mt.toString:void 0;function Nt(st){var pt=-1,wt=st?st.length:0;for(this.clear();++pt<wt;){var _t=st[pt];this.set(_t[0],_t[1])}}function It(st){var pt=-1,wt=st?st.length:0;for(this.clear();++pt<wt;){var _t=st[pt];this.set(_t[0],_t[1])}}function At(st){var pt=-1,wt=st?st.length:0;for(this.clear();++pt<wt;){var _t=st[pt];this.set(_t[0],_t[1])}}function Ut(st){var pt=-1,wt=st?st.length:0;for(this.__data__=new At;++pt<wt;)this.add(st[pt])}function Ht(st){this.__data__=new It(st)}function zt(st,pt){var wt=Zt(st)||ee(st)?(function(Rt,me){for(var oe=-1,he=Array(Rt);++oe<Rt;)he[oe]=me(oe);return he})(st.length,String):[],_t=wt.length,Bt=!!_t;for(var Et in st)!X.call(st,Et)||Bt&&(Et=="length"||Te(Et,_t))||wt.push(Et);return wt}function Xt(st,pt){for(var wt=st.length;wt--;)if(Mt(st[wt][0],pt))return wt;return-1}function jt(st,pt,wt,_t){return $t(st,(function(Bt,Et,Rt){pt(_t,Bt,wt(Bt),Rt)})),_t}Nt.prototype.clear=function(){this.__data__=Q?Q(null):{}},Nt.prototype.delete=function(st){return this.has(st)&&delete this.__data__[st]},Nt.prototype.get=function(st){var pt=this.__data__;if(Q){var wt=pt[st];return wt==="__lodash_hash_undefined__"?void 0:wt}return X.call(pt,st)?pt[st]:void 0},Nt.prototype.has=function(st){var pt=this.__data__;return Q?pt[st]!==void 0:X.call(pt,st)},Nt.prototype.set=function(st,pt){return this.__data__[st]=Q&&pt===void 0?"__lodash_hash_undefined__":pt,this},It.prototype.clear=function(){this.__data__=[]},It.prototype.delete=function(st){var pt=this.__data__,wt=Xt(pt,st);return!(wt<0)&&(wt==pt.length-1?pt.pop():U.call(pt,wt,1),!0)},It.prototype.get=function(st){var pt=this.__data__,wt=Xt(pt,st);return wt<0?void 0:pt[wt][1]},It.prototype.has=function(st){return Xt(this.__data__,st)>-1},It.prototype.set=function(st,pt){var wt=this.__data__,_t=Xt(wt,st);return _t<0?wt.push([st,pt]):wt[_t][1]=pt,this},At.prototype.clear=function(){this.__data__={hash:new Nt,map:new(Z||It),string:new Nt}},At.prototype.delete=function(st){return xe(this,st).delete(st)},At.prototype.get=function(st){return xe(this,st).get(st)},At.prototype.has=function(st){return xe(this,st).has(st)},At.prototype.set=function(st,pt){return xe(this,st).set(st,pt),this},Ut.prototype.add=Ut.prototype.push=function(st){return this.__data__.set(st,"__lodash_hash_undefined__"),this},Ut.prototype.has=function(st){return this.__data__.has(st)},Ht.prototype.clear=function(){this.__data__=new It},Ht.prototype.delete=function(st){return this.__data__.delete(st)},Ht.prototype.get=function(st){return this.__data__.get(st)},Ht.prototype.has=function(st){return this.__data__.has(st)},Ht.prototype.set=function(st,pt){var wt=this.__data__;if(wt instanceof It){var _t=wt.__data__;if(!Z||_t.length<199)return _t.push([st,pt]),this;wt=this.__data__=new At(_t)}return wt.set(st,pt),this};var Ct,$t=(Ct=function(st,pt){return st&&qt(st,pt,er)},function(st,pt){if(st==null)return st;if(!Vt(st))return Ct(st,pt);for(var wt=st.length,_t=-1,Bt=Object(st);++_t<wt&&pt(Bt[_t],_t,Bt)!==!1;);return st}),qt=(function(st){return function(pt,wt,_t){for(var Bt=-1,Et=Object(pt),Rt=_t(pt),me=Rt.length;me--;){var oe=Rt[++Bt];if(wt(Et[oe],oe,Et)===!1)break}return pt}})();function Pt(st,pt){for(var wt=0,_t=(pt=te(pt,st)?[pt]:se(pt)).length;st!=null&&wt<_t;)st=st[at(pt[wt++])];return wt&&wt==_t?st:void 0}function fe(st,pt){return st!=null&&pt in Object(st)}function ke(st,pt,wt,_t,Bt){return st===pt||(st==null||pt==null||!le(st)&&!ze(pt)?st!=st&&pt!=pt:(function(Et,Rt,me,oe,he,Jt){var Ce=Zt(Et),Ee=Zt(Rt),Me="[object Array]",qe="[object Array]";Ce||(Me=(Me=be(Et))==r?s:Me),Ee||(qe=(qe=be(Rt))==r?s:qe);var ir=Me==s&&!q(Et),mr=qe==s&&!q(Rt),Kr=Me==qe;if(Kr&&!ir)return Jt||(Jt=new Ht),Ce||tr(Et)?Oe(Et,Rt,me,oe,he,Jt):(function(Ae,ye,Js,Ri,Jc,Or,ks){switch(Js){case"[object DataView]":if(Ae.byteLength!=ye.byteLength||Ae.byteOffset!=ye.byteOffset)return!1;Ae=Ae.buffer,ye=ye.buffer;case"[object ArrayBuffer]":return!(Ae.byteLength!=ye.byteLength||!Ri(new N(Ae),new N(ye)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Mt(+Ae,+ye);case"[object Error]":return Ae.name==ye.name&&Ae.message==ye.message;case"[object RegExp]":case"[object String]":return Ae==ye+"";case n:var Qs=A;case e:var Ll=2⩔if(Qs||(Qs=M),Ae.size!=ye.size&&!Ll)return!1;var Qc=ks.get(Ae);if(Qc)return Qc==ye;Or|=1,ks.set(Ae,ye);var Zn=Oe(Qs(Ae),Qs(ye),Ri,Jc,Or,ks);return ks.delete(Ae),Zn;case"[object Symbol]":if(gt)return gt.call(Ae)==gt.call(ye)}return!1})(Et,Rt,Me,me,oe,he,Jt);if(!(2&he)){var Ti=ir&&X.call(Et,"__wrapped__"),Yn=mr&&X.call(Rt,"__wrapped__");if(Ti||Yn){var Gn=Ti?Et.value():Et,Kn=Yn?Rt.value():Rt;return Jt||(Jt=new Ht),me(Gn,Kn,oe,he,Jt)}}return Kr?(Jt||(Jt=new Ht),(function(Ae,ye,Js,Ri,Jc,Or){var ks=2&Jc,Qs=er(Ae),Ll=Qs.length,Qc=er(ye).length;if(Ll!=Qc&&!ks)return!1;for(var Zn=Ll;Zn--;){var ti=Qs[Zn];if(!(ks?ti in ye:X.call(ye,ti)))return!1}var Mu=Or.get(Ae);if(Mu&&Or.get(ye))return Mu==ye;var tu=!0;Or.set(Ae,ye),Or.set(ye,Ae);for(var vu=ks;++Zn<Ll;){ti=Qs[Zn];var eu=Ae[ti],ru=ye[ti];if(Ri)var Iu=ks?Ri(ru,eu,ti,ye,Ae,Or):Ri(eu,ru,ti,Ae,ye,Or);if(!(Iu===void 0?eu===ru||Js(eu,ru,Ri,Jc,Or):Iu)){tu=!1;break}vu||(vu=ti=="constructor")}if(tu&&!vu){var su=Ae.constructor,iu=ye.constructor;su==iu||!("constructor"in Ae)||!("constructor"in ye)||typeof su=="function"&&su instanceof su&&typeof iu=="function"&&iu instanceof iu||(tu=!1)}return Or.delete(Ae),Or.delete(ye),tu})(Et,Rt,me,oe,he,Jt)):!1})(st,pt,ke,wt,_t,Bt))}function Yt(st){return!(!le(st)||(function(pt){return!!j&&j in pt})(st))&&(ie(st)||q(st)?L:m).test(dt(st))}function we(st){return typeof st=="function"?st:st==null?xr:typeof st=="object"?Zt(st)?(function(_t,Bt){return te(_t)&&_e(Bt)?Re(at(_t),Bt):function(Et){var Rt=(function(me,oe,he){var Jt=me==null?void 0:Pt(me,oe);return Jt===void 0?he:Jt})(Et,_t);return Rt===void 0&&Rt===Bt?(function(me,oe){return me!=null&&(function(he,Jt,Ce){Jt=te(Jt,he)?[Jt]:se(Jt);for(var Ee,Me=-1,qe=Jt.length;++Me<qe;){var ir=at(Jt[Me]);if(!(Ee=he!=null&&Ce(he,ir)))break;he=he[ir]}return Ee||!!(qe=he?he.length:0)&&re(qe)&&Te(ir,qe)&&(Zt(he)||ee(he))})(me,oe,fe)})(Et,_t):ke(Bt,Rt,void 0,3)}})(st[0],st[1]):(function(_t){var Bt=(function(Et){for(var Rt=er(Et),me=Rt.length;me--;){var oe=Rt[me],he=Et[oe];Rt[me]=[oe,he,_e(he)]}return Rt})(_t);return Bt.length==1&&Bt[0][2]?Re(Bt[0][0],Bt[0][1]):function(Et){return Et===_t||(function(Rt,me,oe,he){var Jt=oe.length,Ce=Jt;if(Rt==null)return!Ce;for(Rt=Object(Rt);Jt--;){var Ee=oe[Jt];if(Ee[2]?Ee[1]!==Rt[Ee[0]]:!(Ee[0]in Rt))return!1}for(;++Jt<Ce;){var Me=(Ee=oe[Jt])[0],qe=Rt[Me],ir=Ee[1];if(Ee[2]){if(qe===void 0&&!(Me in Rt))return!1}else{var mr=new Ht,Kr;if(!(Kr===void 0?ke(ir,qe,he,3,mr):Kr))return!1}}return!0})(Et,_t,Bt)}})(st):te(pt=st)?(wt=at(pt),function(_t){return _t==null?void 0:_t[wt]}):(function(_t){return function(Bt){return Pt(Bt,_t)}})(pt);var pt,wt}function ue(st){if(wt=(pt=st)&&pt.constructor,_t=typeof wt=="function"&&wt.prototype||T,pt!==_t)return K(st);var pt,wt,_t,Bt=[];for(var Et in Object(st))X.call(st,Et)&&Et!="constructor"&&Bt.push(Et);return Bt}function se(st){return Zt(st)?st:ne(st)}function Oe(st,pt,wt,_t,Bt,Et){var Rt=2&Bt,me=st.length,oe=pt.length;if(me!=oe&&!(Rt&&oe>me))return!1;var he=Et.get(st);if(he&&Et.get(pt))return he==pt;var Jt=-1,Ce=!0,Ee=1&Bt?new Ut:void 0;for(Et.set(st,pt),Et.set(pt,st);++Jt<me;){var Me=st[Jt],qe=pt[Jt];if(_t)var ir=Rt?_t(qe,Me,Jt,pt,st,Et):_t(Me,qe,Jt,st,pt,Et);if(ir!==void 0){if(ir)continue;Ce=!1;break}if(Ee){if(!W(pt,(function(mr,Kr){if(!Ee.has(Kr)&&(Me===mr||wt(Me,mr,_t,Bt,Et)))return Ee.add(Kr)}))){Ce=!1;break}}else if(Me!==qe&&!wt(Me,qe,_t,Bt,Et)){Ce=!1;break}}return Et.delete(st),Et.delete(pt),Ce}function xe(st,pt){var wt,_t,Bt=st.__data__;return((_t=typeof(wt=pt))=="string"||_t=="number"||_t=="symbol"||_t=="boolean"?wt!=="__proto__":wt===null)?Bt[typeof pt=="string"?"string":"hash"]:Bt.map}function Qt(st,pt){var wt=(function(_t,Bt){return _t==null?void 0:_t[Bt]})(st,pt);return Yt(wt)?wt:void 0}var be=function(st){return J.call(st)};function Te(st,pt){return!!(pt=pt??9007199254740991)&&(typeof st=="number"||d.test(st))&&st>-1&&st%1==0&&st<pt}function te(st,pt){if(Zt(st))return!1;var wt=typeof st;return!(wt!="number"&&wt!="symbol"&&wt!="boolean"&&st!=null&&!$e(st))||u.test(st)||!i.test(st)||pt!=null&&st in Object(pt)}function _e(st){return st==st&&!le(st)}function Re(st,pt){return function(wt){return wt!=null&&wt[st]===pt&&(pt!==void 0||st in Object(wt))}}(rt&&be(new rt(new ArrayBuffer(1)))!="[object DataView]"||Z&&be(new Z)!=n||et&&be(et.resolve())!="[object Promise]"||ht&&be(new ht)!=e||lt&&be(new lt)!="[object WeakMap]")&&(be=function(st){var pt=J.call(st),wt=pt==s?st.constructor:void 0,_t=wt?dt(wt):void 0;if(_t)switch(_t){case ot:return"[object DataView]";case nt:return n;case ut:return"[object Promise]";case ct:return e;case ft:return"[object WeakMap]"}return pt});var ne=Kt((function(st){var pt;st=(pt=st)==null?"":(function(_t){if(typeof _t=="string")return _t;if($e(_t))return xt?xt.call(_t):"";var Bt=_t+"";return Bt=="0"&&1/_t==-1/0?"-0":Bt})(pt);var wt=[];return a.test(st)&&wt.push(""),st.replace(h,(function(_t,Bt,Et,Rt){wt.push(Et?Rt.replace(p,"$1"):Bt||_t)})),wt}));function at(st){if(typeof st=="string"||$e(st))return st;var pt=st+"";return pt=="0"&&1/st==-1/0?"-0":pt}function dt(st){if(st!=null){try{return V.call(st)}catch{}try{return st+""}catch{}}return""}var bt,Tt=(bt=function(st,pt,wt){X.call(st,wt)?st[wt].push(pt):st[wt]=[pt]},function(st,pt){var wt=Zt(st)?F:jt,_t={};return wt(st,bt,we(pt),_t)});function Kt(st,pt){if(typeof st!="function"||pt&&typeof pt!="function")throw new TypeError("Expected a function");var wt=function(){var _t=arguments,Bt=pt?pt.apply(this,_t):_t[0],Et=wt.cache;if(Et.has(Bt))return Et.get(Bt);var Rt=st.apply(this,_t);return wt.cache=Et.set(Bt,Rt),Rt};return wt.cache=new(Kt.Cache||At),wt}function Mt(st,pt){return st===pt||st!=st&&pt!=pt}function ee(st){return(function(pt){return ze(pt)&&Vt(pt)})(st)&&X.call(st,"callee")&&(!R.call(st,"callee")||J.call(st)==r)}Kt.Cache=At;var Zt=Array.isArray;function Vt(st){return st!=null&&re(st.length)&&!ie(st)}function ie(st){var pt=le(st)?J.call(st):"";return pt=="[object Function]"||pt=="[object GeneratorFunction]"}function re(st){return typeof st=="number"&&st>-1&&st%1==0&&st<=9007199254740991}function le(st){var pt=typeof st;return!!st&&(pt=="object"||pt=="function")}function ze(st){return!!st&&typeof st=="object"}function $e(st){return typeof st=="symbol"||ze(st)&&J.call(st)=="[object Symbol]"}var tr=B?(function(st){return function(pt){return st(pt)}})(B):function(st){return ze(st)&&re(st.length)&&!!b[J.call(st)]};function er(st){return Vt(st)?zt(st):ue(st)}function xr(st){return st}l.exports=Tt}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(t,l,c){var o=Object.prototype.toString;l.exports=function(r){return r===!0||r===!1||(function(n){return!!n&&typeof n=="object"})(r)&&o.call(r)=="[object Boolean]"}},{}],445:[function(t,l,c){(function(o){(function(){var r="[object Arguments]",n="[object Map]",s="[object Object]",e="[object Set]",i=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a[r]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a[n]=a["[object Number]"]=a[s]=a["[object RegExp]"]=a[e]=a["[object String]"]=a["[object WeakMap]"]=!1;var h=typeof o=="object"&&o&&o.Object===Object&&o,p=typeof self=="object"&&self&&self.Object===Object&&self,m=h||p||Function("return this")(),d=typeof c=="object"&&c&&!c.nodeType&&c,b=d&&typeof l=="object"&&l&&!l.nodeType&&l,g=b&&b.exports===d,S=g&&h.process,C=(function(){try{return S&&S.binding&&S.binding("util")}catch{}})(),I=C&&C.isTypedArray;function D(at,dt){for(var bt=-1,Tt=at==null?0:at.length;++bt<Tt;)if(dt(at[bt],bt,at))return!0;return!1}function z(at){var dt=-1,bt=Array(at.size);return at.forEach((function(Tt,Kt){bt[++dt]=[Kt,Tt]})),bt}function P(at){var dt=-1,bt=Array(at.size);return at.forEach((function(Tt){bt[++dt]=Tt})),bt}var B,F,W,q=Array.prototype,A=Function.prototype,M=Object.prototype,k=m["__core-js_shared__"],y=A.toString,w=M.hasOwnProperty,x=(B=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",_=M.toString,T=RegExp("^"+y.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=g?m.Buffer:void 0,j=m.Symbol,V=m.Uint8Array,X=M.propertyIsEnumerable,J=q.splice,L=j?j.toStringTag:void 0,G=Object.getOwnPropertySymbols,N=O?O.isBuffer:void 0,R=(F=Object.keys,W=Object,function(at){return F(W(at))}),U=fe(m,"DataView"),K=fe(m,"Map"),rt=fe(m,"Promise"),Z=fe(m,"Set"),et=fe(m,"WeakMap"),ht=fe(Object,"create"),lt=ue(U),Q=ue(K),ot=ue(rt),nt=ue(Z),ut=ue(et),ct=j?j.prototype:void 0,ft=ct?ct.valueOf:void 0;function mt(at){var dt=-1,bt=at==null?0:at.length;for(this.clear();++dt<bt;){var Tt=at[dt];this.set(Tt[0],Tt[1])}}function gt(at){var dt=-1,bt=at==null?0:at.length;for(this.clear();++dt<bt;){var Tt=at[dt];this.set(Tt[0],Tt[1])}}function xt(at){var dt=-1,bt=at==null?0:at.length;for(this.clear();++dt<bt;){var Tt=at[dt];this.set(Tt[0],Tt[1])}}function Nt(at){var dt=-1,bt=at==null?0:at.length;for(this.__data__=new xt;++dt<bt;)this.add(at[dt])}function It(at){var dt=this.__data__=new gt(at);this.size=dt.size}function At(at,dt){var bt=xe(at),Tt=!bt&&Oe(at),Kt=!bt&&!Tt&&Qt(at),Mt=!bt&&!Tt&&!Kt&&Re(at),ee=bt||Tt||Kt||Mt,Zt=ee?(function(re,le){for(var ze=-1,$e=Array(re);++ze<re;)$e[ze]=le(ze);return $e})(at.length,String):[],Vt=Zt.length;for(var ie in at)!w.call(at,ie)||ee&&(ie=="length"||Kt&&(ie=="offset"||ie=="parent")||Mt&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||we(ie,Vt))||Zt.push(ie);return Zt}function Ut(at,dt){for(var bt=at.length;bt--;)if(se(at[bt][0],dt))return bt;return-1}function Ht(at){return at==null?at===void 0?"[object Undefined]":"[object Null]":L&&L in Object(at)?(function(dt){var bt=w.call(dt,L),Tt=dt[L];try{dt[L]=void 0;var Kt=!0}catch{}var Mt=_.call(dt);return Kt&&(bt?dt[L]=Tt:delete dt[L]),Mt})(at):(function(dt){return _.call(dt)})(at)}function zt(at){return _e(at)&&Ht(at)==r}function Xt(at,dt,bt,Tt,Kt){return at===dt||(at==null||dt==null||!_e(at)&&!_e(dt)?at!=at&&dt!=dt:(function(Mt,ee,Zt,Vt,ie,re){var le=xe(Mt),ze=xe(ee),$e=le?"[object Array]":Yt(Mt),tr=ze?"[object Array]":Yt(ee),er=($e=$e==r?s:$e)==s,xr=(tr=tr==r?s:tr)==s,st=$e==tr;if(st&&Qt(Mt)){if(!Qt(ee))return!1;le=!0,er=!1}if(st&&!er)return re||(re=new It),le||Re(Mt)?$t(Mt,ee,Zt,Vt,ie,re):(function(Et,Rt,me,oe,he,Jt,Ce){switch(me){case"[object DataView]":if(Et.byteLength!=Rt.byteLength||Et.byteOffset!=Rt.byteOffset)return!1;Et=Et.buffer,Rt=Rt.buffer;case"[object ArrayBuffer]":return!(Et.byteLength!=Rt.byteLength||!Jt(new V(Et),new V(Rt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return se(+Et,+Rt);case"[object Error]":return Et.name==Rt.name&&Et.message==Rt.message;case"[object RegExp]":case"[object String]":return Et==Rt+"";case n:var Ee=z;case e:var Me=1&oe;if(Ee||(Ee=P),Et.size!=Rt.size&&!Me)return!1;var qe=Ce.get(Et);if(qe)return qe==Rt;oe|=2,Ce.set(Et,Rt);var ir=$t(Ee(Et),Ee(Rt),oe,he,Jt,Ce);return Ce.delete(Et),ir;case"[object Symbol]":if(ft)return ft.call(Et)==ft.call(Rt)}return!1})(Mt,ee,$e,Zt,Vt,ie,re);if(!(1&Zt)){var pt=er&&w.call(Mt,"__wrapped__"),wt=xr&&w.call(ee,"__wrapped__");if(pt||wt){var _t=pt?Mt.value():Mt,Bt=wt?ee.value():ee;return re||(re=new It),ie(_t,Bt,Zt,Vt,re)}}return st?(re||(re=new It),(function(Et,Rt,me,oe,he,Jt){var Ce=1&me,Ee=qt(Et),Me=Ee.length,qe=qt(Rt).length;if(Me!=qe&&!Ce)return!1;for(var ir=Me;ir--;){var mr=Ee[ir];if(!(Ce?mr in Rt:w.call(Rt,mr)))return!1}var Kr=Jt.get(Et);if(Kr&&Jt.get(Rt))return Kr==Rt;var Ti=!0;Jt.set(Et,Rt),Jt.set(Rt,Et);for(var Yn=Ce;++ir<Me;){mr=Ee[ir];var Gn=Et[mr],Kn=Rt[mr];if(oe)var Ae=Ce?oe(Kn,Gn,mr,Rt,Et,Jt):oe(Gn,Kn,mr,Et,Rt,Jt);if(!(Ae===void 0?Gn===Kn||he(Gn,Kn,me,oe,Jt):Ae)){Ti=!1;break}Yn||(Yn=mr=="constructor")}if(Ti&&!Yn){var ye=Et.constructor,Js=Rt.constructor;ye==Js||!("constructor"in Et)||!("constructor"in Rt)||typeof ye=="function"&&ye instanceof ye&&typeof Js=="function"&&Js instanceof Js||(Ti=!1)}return Jt.delete(Et),Jt.delete(Rt),Ti})(Mt,ee,Zt,Vt,ie,re)):!1})(at,dt,bt,Tt,Xt,Kt))}function jt(at){return!(!te(at)||(function(dt){return!!x&&x in dt})(at))&&(be(at)?T:i).test(ue(at))}function Ct(at){if(bt=(dt=at)&&dt.constructor,Tt=typeof bt=="function"&&bt.prototype||M,dt!==Tt)return R(at);var dt,bt,Tt,Kt=[];for(var Mt in Object(at))w.call(at,Mt)&&Mt!="constructor"&&Kt.push(Mt);return Kt}function $t(at,dt,bt,Tt,Kt,Mt){var ee=1&bt,Zt=at.length,Vt=dt.length;if(Zt!=Vt&&!(ee&&Vt>Zt))return!1;var ie=Mt.get(at);if(ie&&Mt.get(dt))return ie==dt;var re=-1,le=!0,ze=2&bt?new Nt:void 0;for(Mt.set(at,dt),Mt.set(dt,at);++re<Zt;){var $e=at[re],tr=dt[re];if(Tt)var er=ee?Tt(tr,$e,re,dt,at,Mt):Tt($e,tr,re,at,dt,Mt);if(er!==void 0){if(er)continue;le=!1;break}if(ze){if(!D(dt,(function(xr,st){if(pt=st,!ze.has(pt)&&($e===xr||Kt($e,xr,bt,Tt,Mt)))return ze.push(st);var pt}))){le=!1;break}}else if($e!==tr&&!Kt($e,tr,bt,Tt,Mt)){le=!1;break}}return Mt.delete(at),Mt.delete(dt),le}function qt(at){return(function(dt,bt,Tt){var Kt=bt(dt);return xe(dt)?Kt:(function(Mt,ee){for(var Zt=-1,Vt=ee.length,ie=Mt.length;++Zt<Vt;)Mt[ie+Zt]=ee[Zt];return Mt})(Kt,Tt(dt))})(at,ne,ke)}function Pt(at,dt){var bt,Tt,Kt=at.__data__;return((Tt=typeof(bt=dt))=="string"||Tt=="number"||Tt=="symbol"||Tt=="boolean"?bt!=="__proto__":bt===null)?Kt[typeof dt=="string"?"string":"hash"]:Kt.map}function fe(at,dt){var bt=(function(Tt,Kt){return Tt==null?void 0:Tt[Kt]})(at,dt);return jt(bt)?bt:void 0}mt.prototype.clear=function(){this.__data__=ht?ht(null):{},this.size=0},mt.prototype.delete=function(at){var dt=this.has(at)&&delete this.__data__[at];return this.size-=dt?1:0,dt},mt.prototype.get=function(at){var dt=this.__data__;if(ht){var bt=dt[at];return bt==="__lodash_hash_undefined__"?void 0:bt}return w.call(dt,at)?dt[at]:void 0},mt.prototype.has=function(at){var dt=this.__data__;return ht?dt[at]!==void 0:w.call(dt,at)},mt.prototype.set=function(at,dt){var bt=this.__data__;return this.size+=this.has(at)?0:1,bt[at]=ht&&dt===void 0?"__lodash_hash_undefined__":dt,this},gt.prototype.clear=function(){this.__data__=[],this.size=0},gt.prototype.delete=function(at){var dt=this.__data__,bt=Ut(dt,at);return!(bt<0)&&(bt==dt.length-1?dt.pop():J.call(dt,bt,1),--this.size,!0)},gt.prototype.get=function(at){var dt=this.__data__,bt=Ut(dt,at);return bt<0?void 0:dt[bt][1]},gt.prototype.has=function(at){return Ut(this.__data__,at)>-1},gt.prototype.set=function(at,dt){var bt=this.__data__,Tt=Ut(bt,at);return Tt<0?(++this.size,bt.push([at,dt])):bt[Tt][1]=dt,this},xt.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(K||gt),string:new mt}},xt.prototype.delete=function(at){var dt=Pt(this,at).delete(at);return this.size-=dt?1:0,dt},xt.prototype.get=function(at){return Pt(this,at).get(at)},xt.prototype.has=function(at){return Pt(this,at).has(at)},xt.prototype.set=function(at,dt){var bt=Pt(this,at),Tt=bt.size;return bt.set(at,dt),this.size+=bt.size==Tt?0:1,this},Nt.prototype.add=Nt.prototype.push=function(at){return this.__data__.set(at,"__lodash_hash_undefined__"),this},Nt.prototype.has=function(at){return this.__data__.has(at)},It.prototype.clear=function(){this.__data__=new gt,this.size=0},It.prototype.delete=function(at){var dt=this.__data__,bt=dt.delete(at);return this.size=dt.size,bt},It.prototype.get=function(at){return this.__data__.get(at)},It.prototype.has=function(at){return this.__data__.has(at)},It.prototype.set=function(at,dt){var bt=this.__data__;if(bt instanceof gt){var Tt=bt.__data__;if(!K||Tt.length<199)return Tt.push([at,dt]),this.size=++bt.size,this;bt=this.__data__=new xt(Tt)}return bt.set(at,dt),this.size=bt.size,this};var ke=G?function(at){return at==null?[]:(at=Object(at),(function(dt,bt){for(var Tt=-1,Kt=dt==null?0:dt.length,Mt=0,ee=[];++Tt<Kt;){var Zt=dt[Tt];bt(Zt,Tt,dt)&&(ee[Mt++]=Zt)}return ee})(G(at),(function(dt){return X.call(at,dt)})))}:function(){return[]},Yt=Ht;function we(at,dt){return!!(dt=dt??9007199254740991)&&(typeof at=="number"||u.test(at))&&at>-1&&at%1==0&&at<dt}function ue(at){if(at!=null){try{return y.call(at)}catch{}try{return at+""}catch{}}return""}function se(at,dt){return at===dt||at!=at&&dt!=dt}(U&&Yt(new U(new ArrayBuffer(1)))!="[object DataView]"||K&&Yt(new K)!=n||rt&&Yt(rt.resolve())!="[object Promise]"||Z&&Yt(new Z)!=e||et&&Yt(new et)!="[object WeakMap]")&&(Yt=function(at){var dt=Ht(at),bt=dt==s?at.constructor:void 0,Tt=bt?ue(bt):"";if(Tt)switch(Tt){case lt:return"[object DataView]";case Q:return n;case ot:return"[object Promise]";case nt:return e;case ut:return"[object WeakMap]"}return dt});var Oe=zt((function(){return arguments})())?zt:function(at){return _e(at)&&w.call(at,"callee")&&!X.call(at,"callee")},xe=Array.isArray,Qt=N||function(){return!1};function be(at){if(!te(at))return!1;var dt=Ht(at);return dt=="[object Function]"||dt=="[object GeneratorFunction]"||dt=="[object AsyncFunction]"||dt=="[object Proxy]"}function Te(at){return typeof at=="number"&&at>-1&&at%1==0&&at<=9007199254740991}function te(at){var dt=typeof at;return at!=null&&(dt=="object"||dt=="function")}function _e(at){return at!=null&&typeof at=="object"}var Re=I?(function(at){return function(dt){return at(dt)}})(I):function(at){return _e(at)&&Te(at.length)&&!!a[Ht(at)]};function ne(at){return(dt=at)!=null&&Te(dt.length)&&!be(dt)?At(at):Ct(at);var dt}l.exports=function(at,dt){return Xt(at,dt)}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(t,l,c){(function(o){(function(){var r=typeof o=="object"&&o&&o.Object===Object&&o,n=typeof self=="object"&&self&&self.Object===Object&&self,s=r||n||Function("return this")(),e=Object.prototype,i=e.hasOwnProperty,u=e.toString,a=s.Symbol,h=a?a.toStringTag:void 0;function p(m){return m==null?m===void 0?"[object Undefined]":"[object Null]":h&&h in Object(m)?(function(d){var b=i.call(d,h),g=d[h];try{d[h]=void 0;var S=!0}catch{}var C=u.call(d);return S&&(b?d[h]=g:delete d[h]),C})(m):(function(d){return u.call(d)})(m)}l.exports=function(m){if(!(function(b){var g=typeof b;return b!=null&&(g=="object"||g=="function")})(m))return!1;var d=p(m);return d=="[object Function]"||d=="[object GeneratorFunction]"||d=="[object AsyncFunction]"||d=="[object Proxy]"}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(t,l,c){l.exports=function(o){return o==null}},{}],448:[function(t,l,c){l.exports=function(o){return o===void 0}},{}],449:[function(t,l,c){(function(o){(function(){var r=/^\[object .+?Constructor\]$/,n=typeof o=="object"&&o&&o.Object===Object&&o,s=typeof self=="object"&&self&&self.Object===Object&&self,e=n||s||Function("return this")();function i(j,V){return!!(j&&j.length)&&(function(X,J,L){if(J!=J)return(function(R,U,K,rt){for(var Z=R.length,et=K+-1;++et<Z;)if(U(R[et],et,R))return et;return-1})(X,u,L);for(var G=L-1,N=X.length;++G<N;)if(X[G]===J)return G;return-1})(j,V,0)>-1}function u(j){return j!=j}function a(j,V){return j.has(V)}function h(j){var V=-1,X=Array(j.size);return j.forEach((function(J){X[++V]=J})),X}var p,m=Array.prototype,d=Function.prototype,b=Object.prototype,g=e["__core-js_shared__"],S=(p=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",C=d.toString,I=b.hasOwnProperty,D=b.toString,z=RegExp("^"+C.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=m.splice,B=T(e,"Map"),F=T(e,"Set"),W=T(Object,"create");function q(j){var V=-1,X=j?j.length:0;for(this.clear();++V<X;){var J=j[V];this.set(J[0],J[1])}}function A(j){var V=-1,X=j?j.length:0;for(this.clear();++V<X;){var J=j[V];this.set(J[0],J[1])}}function M(j){var V=-1,X=j?j.length:0;for(this.clear();++V<X;){var J=j[V];this.set(J[0],J[1])}}function k(j){var V=-1,X=j?j.length:0;for(this.__data__=new M;++V<X;)this.add(j[V])}function y(j,V){for(var X,J,L=j.length;L--;)if((X=j[L][0])===(J=V)||X!=X&&J!=J)return L;return-1}function w(j){return!(!O(j)||(V=j,S&&S in V))&&((function(X){var J=O(X)?D.call(X):"";return J=="[object Function]"||J=="[object GeneratorFunction]"})(j)||(function(X){var J=!1;if(X!=null&&typeof X.toString!="function")try{J=!!(X+"")}catch{}return J})(j)?z:r).test((function(X){if(X!=null){try{return C.call(X)}catch{}try{return X+""}catch{}}return""})(j));var V}q.prototype.clear=function(){this.__data__=W?W(null):{}},q.prototype.delete=function(j){return this.has(j)&&delete this.__data__[j]},q.prototype.get=function(j){var V=this.__data__;if(W){var X=V[j];return X==="__lodash_hash_undefined__"?void 0:X}return I.call(V,j)?V[j]:void 0},q.prototype.has=function(j){var V=this.__data__;return W?V[j]!==void 0:I.call(V,j)},q.prototype.set=function(j,V){return this.__data__[j]=W&&V===void 0?"__lodash_hash_undefined__":V,this},A.prototype.clear=function(){this.__data__=[]},A.prototype.delete=function(j){var V=this.__data__,X=y(V,j);return!(X<0)&&(X==V.length-1?V.pop():P.call(V,X,1),!0)},A.prototype.get=function(j){var V=this.__data__,X=y(V,j);return X<0?void 0:V[X][1]},A.prototype.has=function(j){return y(this.__data__,j)>-1},A.prototype.set=function(j,V){var X=this.__data__,J=y(X,j);return J<0?X.push([j,V]):X[J][1]=V,this},M.prototype.clear=function(){this.__data__={hash:new q,map:new(B||A),string:new q}},M.prototype.delete=function(j){return _(this,j).delete(j)},M.prototype.get=function(j){return _(this,j).get(j)},M.prototype.has=function(j){return _(this,j).has(j)},M.prototype.set=function(j,V){return _(this,j).set(j,V),this},k.prototype.add=k.prototype.push=function(j){return this.__data__.set(j,"__lodash_hash_undefined__"),this},k.prototype.has=function(j){return this.__data__.has(j)};var x=F&&1/h(new F([,-0]))[1]==1/0?function(j){return new F(j)}:function(){};function _(j,V){var X,J,L=j.__data__;return((J=typeof(X=V))=="string"||J=="number"||J=="symbol"||J=="boolean"?X!=="__proto__":X===null)?L[typeof V=="string"?"string":"hash"]:L.map}function T(j,V){var X=(function(J,L){return J==null?void 0:J[L]})(j,V);return w(X)?X:void 0}function O(j){var V=typeof j;return!!j&&(V=="object"||V=="function")}l.exports=function(j){return j&&j.length?(function(V,X,J){var L=-1,G=i,N=V.length,R=!0,U=[],K=U;if(N>=200){var rt=x(V);if(rt)return h(rt);R=!1,G=a,K=new k}else K=U;t:for(;++L<N;){var Z=V[L],et=Z;if(Z=Z!==0?Z:0,R&&et==et){for(var ht=K.length;ht--;)if(K[ht]===et)continue t;U.push(Z)}else G(K,et,J)||(K!==U&&K.push(et),U.push(Z))}return U})(j):[]}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(t,l,c){var o=t("inherits"),r=t("hash-base"),n=t("safe-buffer").Buffer,s=new Array(16);function e(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function i(m,d){return m<<d|m>>>32-d}function u(m,d,b,g,S,C,I){return i(m+(d&b|~d&g)+S+C|0,I)+d|0}function a(m,d,b,g,S,C,I){return i(m+(d&g|b&~g)+S+C|0,I)+d|0}function h(m,d,b,g,S,C,I){return i(m+(d^b^g)+S+C|0,I)+d|0}function p(m,d,b,g,S,C,I){return i(m+(b^(d|~g))+S+C|0,I)+d|0}o(e,r),e.prototype._update=function(){for(var m=s,d=0;d<16;++d)m[d]=this._block.readInt32LE(4*d);var b=this._a,g=this._b,S=this._c,C=this._d;b=u(b,g,S,C,m[0],3614090360,7),C=u(C,b,g,S,m[1],3905402710,12),S=u(S,C,b,g,m[2],606105819,17),g=u(g,S,C,b,m[3],3250441966,22),b=u(b,g,S,C,m[4],4118548399,7),C=u(C,b,g,S,m[5],1200080426,12),S=u(S,C,b,g,m[6],2821735955,17),g=u(g,S,C,b,m[7],4249261313,22),b=u(b,g,S,C,m[8],1770035416,7),C=u(C,b,g,S,m[9],2336552879,12),S=u(S,C,b,g,m[10],4294925233,17),g=u(g,S,C,b,m[11],2304563134,22),b=u(b,g,S,C,m[12],1804603682,7),C=u(C,b,g,S,m[13],4254626195,12),S=u(S,C,b,g,m[14],2792965006,17),b=a(b,g=u(g,S,C,b,m[15],1236535329,22),S,C,m[1],4129170786,5),C=a(C,b,g,S,m[6],3225465664,9),S=a(S,C,b,g,m[11],643717713,14),g=a(g,S,C,b,m[0],3921069994,20),b=a(b,g,S,C,m[5],3593408605,5),C=a(C,b,g,S,m[10],38016083,9),S=a(S,C,b,g,m[15],3634488961,14),g=a(g,S,C,b,m[4],3889429448,20),b=a(b,g,S,C,m[9],568446438,5),C=a(C,b,g,S,m[14],3275163606,9),S=a(S,C,b,g,m[3],4107603335,14),g=a(g,S,C,b,m[8],1163531501,20),b=a(b,g,S,C,m[13],2850285829,5),C=a(C,b,g,S,m[2],4243563512,9),S=a(S,C,b,g,m[7],1735328473,14),b=h(b,g=a(g,S,C,b,m[12],2368359562,20),S,C,m[5],4294588738,4),C=h(C,b,g,S,m[8],2272392833,11),S=h(S,C,b,g,m[11],1839030562,16),g=h(g,S,C,b,m[14],4259657740,23),b=h(b,g,S,C,m[1],2763975236,4),C=h(C,b,g,S,m[4],1272893353,11),S=h(S,C,b,g,m[7],4139469664,16),g=h(g,S,C,b,m[10],3200236656,23),b=h(b,g,S,C,m[13],681279174,4),C=h(C,b,g,S,m[0],3936430074,11),S=h(S,C,b,g,m[3],3572445317,16),g=h(g,S,C,b,m[6],76029189,23),b=h(b,g,S,C,m[9],3654602809,4),C=h(C,b,g,S,m[12],3873151461,11),S=h(S,C,b,g,m[15],530742520,16),b=p(b,g=h(g,S,C,b,m[2],3299628645,23),S,C,m[0],4096336452,6),C=p(C,b,g,S,m[7],1126891415,10),S=p(S,C,b,g,m[14],2878612391,15),g=p(g,S,C,b,m[5],4237533241,21),b=p(b,g,S,C,m[12],1700485571,6),C=p(C,b,g,S,m[3],2399980690,10),S=p(S,C,b,g,m[10],4293915773,15),g=p(g,S,C,b,m[1],2240044497,21),b=p(b,g,S,C,m[8],1873313359,6),C=p(C,b,g,S,m[15],4264355552,10),S=p(S,C,b,g,m[6],2734768916,15),g=p(g,S,C,b,m[13],1309151649,21),b=p(b,g,S,C,m[4],4149444226,6),C=p(C,b,g,S,m[11],3174756917,10),S=p(S,C,b,g,m[2],718787259,15),g=p(g,S,C,b,m[9],3951481745,21),this._a=this._a+b|0,this._b=this._b+g|0,this._c=this._c+S|0,this._d=this._d+C|0},e.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var m=n.allocUnsafe(16);return m.writeInt32LE(this._a,0),m.writeInt32LE(this._b,4),m.writeInt32LE(this._c,8),m.writeInt32LE(this._d,12),m},l.exports=e},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(t,l,c){var o=t("bn.js"),r=t("brorand");function n(s){this.rand=s||new r.Rand}l.exports=n,n.create=function(s){return new n(s)},n.prototype._randbelow=function(s){var e=s.bitLength(),i=Math.ceil(e/8);do var u=new o(this.rand.generate(i));while(u.cmp(s)>=0);return u},n.prototype._randrange=function(s,e){var i=e.sub(s);return s.add(this._randbelow(i))},n.prototype.test=function(s,e,i){var u=s.bitLength(),a=o.mont(s),h=new o(1).toRed(a);e||(e=Math.max(1,u/48|0));for(var p=s.subn(1),m=0;!p.testn(m);m++);for(var d=s.shrn(m),b=p.toRed(a);e>0;e--){var g=this._randrange(new o(2),p);i&&i(g);var S=g.toRed(a).redPow(d);if(S.cmp(h)!==0&&S.cmp(b)!==0){for(var C=1;C<m;C++){if((S=S.redSqr()).cmp(h)===0)return!1;if(S.cmp(b)===0)break}if(C===m)return!1}}return!0},n.prototype.getDivisor=function(s,e){var i=s.bitLength(),u=o.mont(s),a=new o(1).toRed(u);e||(e=Math.max(1,i/48|0));for(var h=s.subn(1),p=0;!h.testn(p);p++);for(var m=s.shrn(p),d=h.toRed(u);e>0;e--){var b=this._randrange(new o(2),h),g=s.gcd(b);if(g.cmpn(1)!==0)return g;var S=b.toRed(u).redPow(m);if(S.cmp(a)!==0&&S.cmp(d)!==0){for(var C=1;C<p;C++){if((S=S.redSqr()).cmp(a)===0)return S.fromRed().subn(1).gcd(s);if(S.cmp(d)===0)break}if(C===p)return(S=S.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},{"bn.js":452,brorand:187}],452:[function(t,l,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],453:[function(t,l,c){function o(r,n){if(!r)throw new Error(n||"Assertion failed")}l.exports=o,o.equal=function(r,n,s){if(r!=n)throw new Error(s||"Assertion failed: "+r+" != "+n)}},{}],454:[function(t,l,c){var o=c;function r(s){return s.length===1?"0"+s:s}function n(s){for(var e="",i=0;i<s.length;i++)e+=r(s[i].toString(16));return e}o.toArray=function(s,e){if(Array.isArray(s))return s.slice();if(!s)return[];var i=[];if(typeof s!="string"){for(var u=0;u<s.length;u++)i[u]=0|s[u];return i}if(e==="hex")for((s=s.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(s="0"+s),u=0;u<s.length;u+=2)i.push(parseInt(s[u]+s[u+1],16));else for(u=0;u<s.length;u++){var a=s.charCodeAt(u),h=a>>8,p=255&a;h?i.push(h,p):i.push(p)}return i},o.zero2=r,o.toHex=n,o.encode=function(s,e){return e==="hex"?n(s):s}},{}],455:[function(t,l,c){l.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(t,l,c){var o=t("asn1.js");c.certificate=t("./certificate");var r=o.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));c.RSAPrivateKey=r;var n=o.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));c.RSAPublicKey=n;var s=o.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(e),this.key("subjectPublicKey").bitstr())}));c.PublicKey=s;var e=o.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),i=o.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(e),this.key("subjectPrivateKey").octstr())}));c.PrivateKey=i;var u=o.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));c.EncryptedPrivateKey=u;var a=o.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));c.DSAPrivateKey=a,c.DSAparam=o.define("DSAparam",(function(){this.int()}));var h=o.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p),this.key("publicKey").optional().explicit(1).bitstr())}));c.ECPrivateKey=h;var p=o.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));c.signature=o.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(t,l,c){var o=t("asn1.js"),r=o.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),n=o.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),s=o.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),e=o.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())})),i=o.define("RelativeDistinguishedName",(function(){this.setof(n)})),u=o.define("RDNSequence",(function(){this.seqof(i)})),a=o.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),h=o.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),p=o.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),m=o.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(a),this.key("validity").use(h),this.key("subject").use(a),this.key("subjectPublicKeyInfo").use(e),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p).optional())})),d=o.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(m),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));l.exports=d},{"asn1.js":170}],458:[function(t,l,c){var o=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=t("evp_bytestokey"),e=t("browserify-aes"),i=t("safe-buffer").Buffer;l.exports=function(u,a){var h,p=u.toString(),m=p.match(o);if(m){var d="aes"+m[1],b=i.from(m[2],"hex"),g=i.from(m[3].replace(/[\r\n]/g,""),"base64"),S=s(a,b.slice(0,8),parseInt(m[1],10)).key,C=[],I=e.createDecipheriv(d,S,b);C.push(I.update(g)),C.push(I.final()),h=i.concat(C)}else{var D=p.match(n);h=i.from(D[2].replace(/[\r\n]/g,""),"base64")}return{tag:p.match(r)[1],data:h}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(t,l,c){var o=t("./asn1"),r=t("./aesid.json"),n=t("./fixProc"),s=t("browserify-aes"),e=t("pbkdf2"),i=t("safe-buffer").Buffer;function u(a){var h;typeof a!="object"||i.isBuffer(a)||(h=a.passphrase,a=a.key),typeof a=="string"&&(a=i.from(a));var p,m,d=n(a,h),b=d.tag,g=d.data;switch(b){case"CERTIFICATE":m=o.certificate.decode(g,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(m||(m=o.PublicKey.decode(g,"der")),p=m.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPublicKey.decode(m.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return m.subjectPrivateKey=m.subjectPublicKey,{type:"ec",data:m};case"1.2.840.10040.4.1":return m.algorithm.params.pub_key=o.DSAparam.decode(m.subjectPublicKey.data,"der"),{type:"dsa",data:m.algorithm.params};default:throw new Error("unknown key id "+p)}case"ENCRYPTED PRIVATE KEY":g=(function(S,C){var I=S.algorithm.decrypt.kde.kdeparams.salt,D=parseInt(S.algorithm.decrypt.kde.kdeparams.iters.toString(),10),z=r[S.algorithm.decrypt.cipher.algo.join(".")],P=S.algorithm.decrypt.cipher.iv,B=S.subjectPrivateKey,F=parseInt(z.split("-")[1],10)/8,W=e.pbkdf2Sync(C,I,D,F,"sha1"),q=s.createDecipheriv(z,W,P),A=[];return A.push(q.update(B)),A.push(q.final()),i.concat(A)})(g=o.EncryptedPrivateKey.decode(g,"der"),h);case"PRIVATE KEY":switch(p=(m=o.PrivateKey.decode(g,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPrivateKey.decode(m.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:m.algorithm.curve,privateKey:o.ECPrivateKey.decode(m.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return m.algorithm.params.priv_key=o.DSAparam.decode(m.subjectPrivateKey,"der"),{type:"dsa",params:m.algorithm.params};default:throw new Error("unknown key id "+p)}case"RSA PUBLIC KEY":return o.RSAPublicKey.decode(g,"der");case"RSA PRIVATE KEY":return o.RSAPrivateKey.decode(g,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:o.DSAPrivateKey.decode(g,"der")};case"EC PRIVATE KEY":return{curve:(g=o.ECPrivateKey.decode(g,"der")).parameters.value,privateKey:g.privateKey};default:throw new Error("unknown key type "+b)}}l.exports=u,u.signature=o.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(t,l,c){c.pbkdf2=t("./lib/async"),c.pbkdf2Sync=t("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(t,l,c){(function(o){(function(){var r,n,s=t("safe-buffer").Buffer,e=t("./precondition"),i=t("./default-encoding"),u=t("./sync"),a=t("./to-buffer"),h=o.crypto&&o.crypto.subtle,p={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},m=[];function d(){return n||(n=o.process&&o.process.nextTick?o.process.nextTick:o.queueMicrotask?o.queueMicrotask:o.setImmediate?o.setImmediate:o.setTimeout)}function b(g,S,C,I,D){return h.importKey("raw",g,{name:"PBKDF2"},!1,["deriveBits"]).then((function(z){return h.deriveBits({name:"PBKDF2",salt:S,iterations:C,hash:{name:D}},z,I<<3)})).then((function(z){return s.from(z)}))}l.exports=function(g,S,C,I,D,z){typeof D=="function"&&(z=D,D=void 0);var P=p[(D=D||"sha1").toLowerCase()];if(P&&typeof o.Promise=="function"){if(e(C,I),g=a(g,i,"Password"),S=a(S,i,"Salt"),typeof z!="function")throw new Error("No callback provided to pbkdf2");(function(B,F){B.then((function(W){d()((function(){F(null,W)}))}),(function(W){d()((function(){F(W)}))}))})((function(B){if(o.process&&!o.process.browser||!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(m[B]!==void 0)return m[B];var F=b(r=r||s.alloc(8),r,10,128,B).then((function(){return!0})).catch((function(){return!1}));return m[B]=F,F})(P).then((function(B){return B?b(g,S,C,I,P):u(g,S,C,I,D)})),z)}else d()((function(){var B;try{B=u(g,S,C,I,D)}catch(F){return z(F)}z(null,B)}))}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(t,l,c){(function(o,r){(function(){var n;r.process&&r.process.browser?n="utf-8":r.process&&r.process.version?n=parseInt(o.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":n="utf-8",l.exports=n}).call(this)}).call(this,t("_process"),typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(t,l,c){var o=Math.pow(2,30)-1;l.exports=function(r,n){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof n!="number")throw new TypeError("Key length not a number");if(n<0||n>o||n!=n)throw new TypeError("Bad key length")}},{}],464:[function(t,l,c){var o=t("create-hash/md5"),r=t("ripemd160"),n=t("sha.js"),s=t("safe-buffer").Buffer,e=t("./precondition"),i=t("./default-encoding"),u=t("./to-buffer"),a=s.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function p(m,d,b){var g=(function(P){function B(F){return n(P).update(F).digest()}return P==="rmd160"||P==="ripemd160"?function(F){return new r().update(F).digest()}:P==="md5"?o:B})(m),S=m==="sha512"||m==="sha384"?128:64;d.length>S?d=g(d):d.length<S&&(d=s.concat([d,a],S));for(var C=s.allocUnsafe(S+h[m]),I=s.allocUnsafe(S+h[m]),D=0;D<S;D++)C[D]=54^d[D],I[D]=92^d[D];var z=s.allocUnsafe(S+b+4);C.copy(z,0,0,S),this.ipad1=z,this.ipad2=C,this.opad=I,this.alg=m,this.blocksize=S,this.hash=g,this.size=h[m]}p.prototype.run=function(m,d){return m.copy(d,this.blocksize),this.hash(d).copy(this.opad,this.blocksize),this.hash(this.opad)},l.exports=function(m,d,b,g,S){e(b,g);var C=new p(S=S||"sha1",m=u(m,i,"Password"),(d=u(d,i,"Salt")).length),I=s.allocUnsafe(g),D=s.allocUnsafe(d.length+4);d.copy(D,0,0,d.length);for(var z=0,P=h[S],B=Math.ceil(g/P),F=1;F<=B;F++){D.writeUInt32BE(F,d.length);for(var W=C.run(D,C.ipad1),q=W,A=1;A<b;A++){q=C.run(q,C.ipad2);for(var M=0;M<P;M++)W[M]^=q[M]}W.copy(I,z),z+=P}return I}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(t,l,c){var o=t("safe-buffer").Buffer;l.exports=function(r,n,s){if(o.isBuffer(r))return r;if(typeof r=="string")return o.from(r,n);if(ArrayBuffer.isView(r))return o.from(r.buffer);throw new TypeError(s+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(t,l,c){(function(o){(function(){o===void 0||!o.version||o.version.indexOf("v0.")===0||o.version.indexOf("v1.")===0&&o.version.indexOf("v1.8.")!==0?l.exports={nextTick:function(r,n,s,e){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var i,u,a=arguments.length;switch(a){case 0:case 1:return o.nextTick(r);case 2:return o.nextTick((function(){r.call(null,n)}));case 3:return o.nextTick((function(){r.call(null,n,s)}));case 4:return o.nextTick((function(){r.call(null,n,s,e)}));default:for(i=new Array(a-1),u=0;u<i.length;)i[u++]=arguments[u];return o.nextTick((function(){r.apply(null,i)}))}}}:l.exports=o}).call(this)}).call(this,t("_process"))},{_process:467}],467:[function(t,l,c){var o,r,n=l.exports={};function s(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function i(S){if(o===setTimeout)return setTimeout(S,0);if((o===s||!o)&&setTimeout)return o=setTimeout,setTimeout(S,0);try{return o(S,0)}catch{try{return o.call(null,S,0)}catch{return o.call(this,S,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:s}catch{o=s}try{r=typeof clearTimeout=="function"?clearTimeout:e}catch{r=e}})();var u,a=[],h=!1,p=-1;function m(){h&&u&&(h=!1,u.length?a=u.concat(a):p=-1,a.length&&d())}function d(){if(!h){var S=i(m);h=!0;for(var C=a.length;C;){for(u=a,a=[];++p<C;)u&&u[p].run();p=-1,C=a.length}u=null,h=!1,(function(I){if(r===clearTimeout)return clearTimeout(I);if((r===e||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(I);try{r(I)}catch{try{return r.call(null,I)}catch{return r.call(this,I)}}})(S)}}function b(S,C){this.fun=S,this.array=C}function g(){}n.nextTick=function(S){var C=new Array(arguments.length-1);if(arguments.length>1)for(var I=1;I<arguments.length;I++)C[I-1]=arguments[I];a.push(new b(S,C)),a.length!==1||h||i(d)},b.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(S){return[]},n.binding=function(S){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(S){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},{}],468:[function(t,l,c){c.publicEncrypt=t("./publicEncrypt"),c.privateDecrypt=t("./privateDecrypt"),c.privateEncrypt=function(o,r){return c.publicEncrypt(o,r,!0)},c.publicDecrypt=function(o,r){return c.privateDecrypt(o,r,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(t,l,c){var o=t("create-hash"),r=t("safe-buffer").Buffer;function n(s){var e=r.allocUnsafe(4);return e.writeUInt32BE(s,0),e}l.exports=function(s,e){for(var i,u=r.alloc(0),a=0;u.length<e;)i=n(a++),u=r.concat([u,o("sha1").update(s).update(i).digest()]);return u.slice(0,e)}},{"create-hash":386,"safe-buffer":494}],470:[function(t,l,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],471:[function(t,l,c){var o=t("parse-asn1"),r=t("./mgf"),n=t("./xor"),s=t("bn.js"),e=t("browserify-rsa"),i=t("create-hash"),u=t("./withPublic"),a=t("safe-buffer").Buffer;l.exports=function(h,p,m){var d;d=h.padding?h.padding:m?1:4;var b,g=o(h),S=g.modulus.byteLength();if(p.length>S||new s(p).cmp(g.modulus)>=0)throw new Error("decryption error");b=m?u(new s(p),g):e(p,g);var C=a.alloc(S-b.length);if(b=a.concat([C,b],S),d===4)return(function(I,D){var z=I.modulus.byteLength(),P=i("sha1").update(a.alloc(0)).digest(),B=P.length;if(D[0]!==0)throw new Error("decryption error");var F=D.slice(1,B+1),W=D.slice(B+1),q=n(F,r(W,B)),A=n(W,r(q,z-B-1));if((function(k,y){k=a.from(k),y=a.from(y);var w=0,x=k.length;k.length!==y.length&&(w++,x=Math.min(k.length,y.length));for(var _=-1;++_<x;)w+=k[_]^y[_];return w})(P,A.slice(0,B)))throw new Error("decryption error");for(var M=B;A[M]===0;)M++;if(A[M++]!==1)throw new Error("decryption error");return A.slice(M)})(g,b);if(d===1)return(function(I,D,z){for(var P=D.slice(0,2),B=2,F=0;D[B++]!==0;)if(B>=D.length){F++;break}var W=D.slice(2,B-1);if((P.toString("hex")!=="0002"&&!z||P.toString("hex")!=="0001"&&z)&&F++,W.length<8&&F++,F)throw new Error("decryption error");return D.slice(B)})(0,b,m);if(d===3)return b;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(t,l,c){var o=t("parse-asn1"),r=t("randombytes"),n=t("create-hash"),s=t("./mgf"),e=t("./xor"),i=t("bn.js"),u=t("./withPublic"),a=t("browserify-rsa"),h=t("safe-buffer").Buffer;l.exports=function(p,m,d){var b;b=p.padding?p.padding:d?1:4;var g,S=o(p);if(b===4)g=(function(C,I){var D=C.modulus.byteLength(),z=I.length,P=n("sha1").update(h.alloc(0)).digest(),B=P.length,F=2*B;if(z>D-F-2)throw new Error("message too long");var W=h.alloc(D-z-F-2),q=D-B-1,A=r(B),M=e(h.concat([P,W,h.alloc(1,1),I],q),s(A,q)),k=e(A,s(M,B));return new i(h.concat([h.alloc(1),k,M],D))})(S,m);else if(b===1)g=(function(C,I,D){var z,P=I.length,B=C.modulus.byteLength();if(P>B-11)throw new Error("message too long");return z=D?h.alloc(B-P-3,255):(function(F){for(var W,q=h.allocUnsafe(F),A=0,M=r(2*F),k=0;A<F;)k===M.length&&(M=r(2*F),k=0),(W=M[k++])&&(q[A++]=W);return q})(B-P-3),new i(h.concat([h.from([0,D?1:2]),z,h.alloc(1),I],B))})(S,m,d);else{if(b!==3)throw new Error("unknown padding");if((g=new i(m)).cmp(S.modulus)>=0)throw new Error("data too long for modulus")}return d?a(g,S):u(g,S)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(t,l,c){var o=t("bn.js"),r=t("safe-buffer").Buffer;l.exports=function(n,s){return r.from(n.toRed(o.mont(s.modulus)).redPow(new o(s.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(t,l,c){l.exports=function(o,r){for(var n=o.length,s=-1;++s<n;)o[s]^=r[s];return o}},{}],475:[function(t,l,c){(function(o,r){(function(){var n=t("safe-buffer").Buffer,s=r.crypto||r.msCrypto;s&&s.getRandomValues?l.exports=function(e,i){if(e>4294967295)throw new RangeError("requested too many random bytes");var u=n.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)s.getRandomValues(u.slice(a,a+65536));else s.getRandomValues(u);return typeof i=="function"?o.nextTick((function(){i(null,u)})):u}:l.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
275
|
+
\0`,ht+=d(rt,2),ht+=w.magic,ht+=d(M,2),ht+=d(k,2),ht+=d(K.crc32,4),ht+=d(K.compressedSize,4),ht+=d(K.uncompressedSize,4),ht+=d(_.length,2),ht+=d(L.length,2),{fileRecord:D.LOCAL_FILE_HEADER+ht+_+L,dirRecord:D.CENTRAL_FILE_HEADER+d(et,2)+ht+d(j.length,2)+"\0\0\0\0"+d(Z,4)+d(W,4)+_+L+j}}var g=h("../utils"),S=h("../stream/GenericWorker"),C=h("../utf8"),I=h("../crc32"),D=h("../signature");function z(P,B,F,W){S.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=B,this.zipPlatform=F,this.encodeFileName=W,this.streamFiles=P,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(z,S),z.prototype.push=function(P){var B=P.meta.percent||0,F=this.entriesCount,W=this._sources.length;this.accumulate?this.contentBuffer.push(P):(this.bytesWritten+=P.data.length,S.prototype.push.call(this,{data:P.data,meta:{currentFile:this.currentFile,percent:F?(B+100*(F-W-1))/F:100}}))},z.prototype.openedSource=function(P){this.currentSourceOffset=this.bytesWritten,this.currentFile=P.file.name;var B=this.streamFiles&&!P.file.dir;if(B){var F=b(P,B,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:F.fileRecord,meta:{percent:0}})}else this.accumulate=!0},z.prototype.closedSource=function(P){this.accumulate=!1;var B=this.streamFiles&&!P.file.dir,F=b(P,B,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(F.dirRecord),B)this.push({data:(function(W){return D.DATA_DESCRIPTOR+d(W.crc32,4)+d(W.compressedSize,4)+d(W.uncompressedSize,4)})(P),meta:{percent:100}});else for(this.push({data:F.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},z.prototype.flush=function(){for(var P=this.bytesWritten,B=0;B<this.dirRecords.length;B++)this.push({data:this.dirRecords[B],meta:{percent:100}});var F=this.bytesWritten-P,W=(function(q,A,M,k,y){var w=g.transformTo("string",y(k));return D.CENTRAL_DIRECTORY_END+"\0\0\0\0"+d(q,2)+d(q,2)+d(A,4)+d(M,4)+d(w.length,2)+w})(this.dirRecords.length,F,P,this.zipComment,this.encodeFileName);this.push({data:W,meta:{percent:100}})},z.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},z.prototype.registerPrevious=function(P){this._sources.push(P);var B=this;return P.on("data",(function(F){B.processChunk(F)})),P.on("end",(function(){B.closedSource(B.previous.streamInfo),B._sources.length?B.prepareNextSource():B.end()})),P.on("error",(function(F){B.error(F)})),this},z.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},z.prototype.error=function(P){var B=this._sources;if(!S.prototype.error.call(this,P))return!1;for(var F=0;F<B.length;F++)try{B[F].error(P)}catch{}return!0},z.prototype.lock=function(){S.prototype.lock.call(this);for(var P=this._sources,B=0;B<P.length;B++)P[B].lock()},p.exports=z},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(h,p,m){var d=h("../compressions"),b=h("./ZipFileWorker");m.generateWorker=function(g,S,C){var I=new b(S.streamFiles,C,S.platform,S.encodeFileName),D=0;try{g.forEach((function(z,P){D++;var B=(function(A,M){var k=A||M,y=d[k];if(!y)throw new Error(k+" is not a valid compression method !");return y})(P.options.compression,S.compression),F=P.options.compressionOptions||S.compressionOptions||{},W=P.dir,q=P.date;P._compressWorker(B,F).withStreamInfo("file",{name:z,dir:W,date:q,comment:P.comment||"",unixPermissions:P.unixPermissions,dosPermissions:P.dosPermissions}).pipe(I)})),I.entriesCount=D}catch(z){I.error(z)}return I}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(h,p,m){function d(){if(!(this instanceof d))return new d;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var b=new d;for(var g in this)typeof this[g]!="function"&&(b[g]=this[g]);return b}}(d.prototype=h("./object")).loadAsync=h("./load"),d.support=h("./support"),d.defaults=h("./defaults"),d.version="3.10.1",d.loadAsync=function(b,g){return new d().loadAsync(b,g)},d.external=h("./external"),p.exports=d},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(h,p,m){var d=h("./utils"),b=h("./external"),g=h("./utf8"),S=h("./zipEntries"),C=h("./stream/Crc32Probe"),I=h("./nodejsUtils");function D(z){return new b.Promise((function(P,B){var F=z.decompressed.getContentWorker().pipe(new C);F.on("error",(function(W){B(W)})).on("end",(function(){F.streamInfo.crc32!==z.decompressed.crc32?B(new Error("Corrupted zip : CRC32 mismatch")):P()})).resume()}))}p.exports=function(z,P){var B=this;return P=d.extend(P||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),I.isNode&&I.isStream(z)?b.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):d.prepareContent("the loaded zip file",z,!0,P.optimizedBinaryString,P.base64).then((function(F){var W=new S(P);return W.load(F),W})).then((function(F){var W=[b.Promise.resolve(F)],q=F.files;if(P.checkCRC32)for(var A=0;A<q.length;A++)W.push(D(q[A]));return b.Promise.all(W)})).then((function(F){for(var W=F.shift(),q=W.files,A=0;A<q.length;A++){var M=q[A],k=M.fileNameStr,y=d.resolve(M.fileNameStr);B.file(y,M.decompressed,{binary:!0,optimizedBinaryString:!0,date:M.date,dir:M.dir,comment:M.fileCommentStr.length?M.fileCommentStr:null,unixPermissions:M.unixPermissions,dosPermissions:M.dosPermissions,createFolders:P.createFolders}),M.dir||(B.file(y).unsafeOriginalName=k)}return W.zipComment.length&&(B.comment=W.zipComment),B}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(h,p,m){var d=h("../utils"),b=h("../stream/GenericWorker");function g(S,C){b.call(this,"Nodejs stream input adapter for "+S),this._upstreamEnded=!1,this._bindStream(C)}d.inherits(g,b),g.prototype._bindStream=function(S){var C=this;(this._stream=S).pause(),S.on("data",(function(I){C.push({data:I,meta:{percent:0}})})).on("error",(function(I){C.isPaused?this.generatedError=I:C.error(I)})).on("end",(function(){C.isPaused?C._upstreamEnded=!0:C.end()}))},g.prototype.pause=function(){return!!b.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},p.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(h,p,m){var d=h("readable-stream").Readable;function b(g,S,C){d.call(this,S),this._helper=g;var I=this;g.on("data",(function(D,z){I.push(D)||I._helper.pause(),C&&C(z)})).on("error",(function(D){I.emit("error",D)})).on("end",(function(){I.push(null)}))}h("../utils").inherits(b,d),b.prototype._read=function(){this._helper.resume()},p.exports=b},{"../utils":32,"readable-stream":16}],14:[function(h,p,m){p.exports={isNode:n!==void 0,newBufferFrom:function(d,b){if(n.from&&n.from!==Uint8Array.from)return n.from(d,b);if(typeof d=="number")throw new Error('The "data" argument must not be a number');return new n(d,b)},allocBuffer:function(d){if(n.alloc)return n.alloc(d);var b=new n(d);return b.fill(0),b},isBuffer:function(d){return n.isBuffer(d)},isStream:function(d){return d&&typeof d.on=="function"&&typeof d.pause=="function"&&typeof d.resume=="function"}}},{}],15:[function(h,p,m){function d(y,w,x){var _,T=g.getTypeOf(w),O=g.extend(x||{},I);O.date=O.date||new Date,O.compression!==null&&(O.compression=O.compression.toUpperCase()),typeof O.unixPermissions=="string"&&(O.unixPermissions=parseInt(O.unixPermissions,8)),O.unixPermissions&&16384&O.unixPermissions&&(O.dir=!0),O.dosPermissions&&16&O.dosPermissions&&(O.dir=!0),O.dir&&(y=q(y)),O.createFolders&&(_=W(y))&&A.call(this,_,!0);var j=T==="string"&&O.binary===!1&&O.base64===!1;x&&x.binary!==void 0||(O.binary=!j),(w instanceof D&&w.uncompressedSize===0||O.dir||!w||w.length===0)&&(O.base64=!1,O.binary=!0,w="",O.compression="STORE",T="string");var V;V=w instanceof D||w instanceof S?w:B.isNode&&B.isStream(w)?new F(y,w):g.prepareContent(y,w,O.binary,O.optimizedBinaryString,O.base64);var X=new z(y,V,O);this.files[y]=X}var b=h("./utf8"),g=h("./utils"),S=h("./stream/GenericWorker"),C=h("./stream/StreamHelper"),I=h("./defaults"),D=h("./compressedObject"),z=h("./zipObject"),P=h("./generate"),B=h("./nodejsUtils"),F=h("./nodejs/NodejsStreamInputAdapter"),W=function(y){y.slice(-1)==="/"&&(y=y.substring(0,y.length-1));var w=y.lastIndexOf("/");return 0<w?y.substring(0,w):""},q=function(y){return y.slice(-1)!=="/"&&(y+="/"),y},A=function(y,w){return w=w!==void 0?w:I.createFolders,y=q(y),this.files[y]||d.call(this,y,null,{dir:!0,createFolders:w}),this.files[y]};function M(y){return Object.prototype.toString.call(y)==="[object RegExp]"}var k={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(y){var w,x,_;for(w in this.files)_=this.files[w],(x=w.slice(this.root.length,w.length))&&w.slice(0,this.root.length)===this.root&&y(x,_)},filter:function(y){var w=[];return this.forEach((function(x,_){y(x,_)&&w.push(_)})),w},file:function(y,w,x){if(arguments.length!==1)return y=this.root+y,d.call(this,y,w,x),this;if(M(y)){var _=y;return this.filter((function(O,j){return!j.dir&&_.test(O)}))}var T=this.files[this.root+y];return T&&!T.dir?T:null},folder:function(y){if(!y)return this;if(M(y))return this.filter((function(T,O){return O.dir&&y.test(T)}));var w=this.root+y,x=A.call(this,w),_=this.clone();return _.root=x.name,_},remove:function(y){y=this.root+y;var w=this.files[y];if(w||(y.slice(-1)!=="/"&&(y+="/"),w=this.files[y]),w&&!w.dir)delete this.files[y];else for(var x=this.filter((function(T,O){return O.name.slice(0,y.length)===y})),_=0;_<x.length;_++)delete this.files[x[_].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(y){var w,x={};try{if((x=g.extend(y||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:b.utf8encode})).type=x.type.toLowerCase(),x.compression=x.compression.toUpperCase(),x.type==="binarystring"&&(x.type="string"),!x.type)throw new Error("No output type specified.");g.checkSupport(x.type),x.platform!=="darwin"&&x.platform!=="freebsd"&&x.platform!=="linux"&&x.platform!=="sunos"||(x.platform="UNIX"),x.platform==="win32"&&(x.platform="DOS");var _=x.comment||this.comment||"";w=P.generateWorker(this,x,_)}catch(T){(w=new S("error")).error(T)}return new C(w,x.type||"string",x.mimeType)},generateAsync:function(y,w){return this.generateInternalStream(y).accumulate(w)},generateNodeStream:function(y,w){return(y=y||{}).type||(y.type="nodebuffer"),this.generateInternalStream(y).toNodejsStream(w)}};p.exports=k},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(h,p,m){p.exports=h("stream")},{stream:void 0}],17:[function(h,p,m){var d=h("./DataReader");function b(g){d.call(this,g);for(var S=0;S<this.data.length;S++)g[S]=255&g[S]}h("../utils").inherits(b,d),b.prototype.byteAt=function(g){return this.data[this.zero+g]},b.prototype.lastIndexOfSignature=function(g){for(var S=g.charCodeAt(0),C=g.charCodeAt(1),I=g.charCodeAt(2),D=g.charCodeAt(3),z=this.length-4;0<=z;--z)if(this.data[z]===S&&this.data[z+1]===C&&this.data[z+2]===I&&this.data[z+3]===D)return z-this.zero;return-1},b.prototype.readAndCheckSignature=function(g){var S=g.charCodeAt(0),C=g.charCodeAt(1),I=g.charCodeAt(2),D=g.charCodeAt(3),z=this.readData(4);return S===z[0]&&C===z[1]&&I===z[2]&&D===z[3]},b.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var S=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,S},p.exports=b},{"../utils":32,"./DataReader":18}],18:[function(h,p,m){var d=h("../utils");function b(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}b.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var S,C=0;for(this.checkOffset(g),S=this.index+g-1;S>=this.index;S--)C=(C<<8)+this.byteAt(S);return this.index+=g,C},readString:function(g){return d.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},p.exports=b},{"../utils":32}],19:[function(h,p,m){var d=h("./Uint8ArrayReader");function b(g){d.call(this,g)}h("../utils").inherits(b,d),b.prototype.readData=function(g){this.checkOffset(g);var S=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,S},p.exports=b},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(h,p,m){var d=h("./DataReader");function b(g){d.call(this,g)}h("../utils").inherits(b,d),b.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},b.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},b.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},b.prototype.readData=function(g){this.checkOffset(g);var S=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,S},p.exports=b},{"../utils":32,"./DataReader":18}],21:[function(h,p,m){var d=h("./ArrayReader");function b(g){d.call(this,g)}h("../utils").inherits(b,d),b.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var S=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,S},p.exports=b},{"../utils":32,"./ArrayReader":17}],22:[function(h,p,m){var d=h("../utils"),b=h("../support"),g=h("./ArrayReader"),S=h("./StringReader"),C=h("./NodeBufferReader"),I=h("./Uint8ArrayReader");p.exports=function(D){var z=d.getTypeOf(D);return d.checkSupport(z),z!=="string"||b.uint8array?z==="nodebuffer"?new C(D):b.uint8array?new I(d.transformTo("uint8array",D)):new g(d.transformTo("array",D)):new S(D)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(h,p,m){m.LOCAL_FILE_HEADER="PK",m.CENTRAL_FILE_HEADER="PK",m.CENTRAL_DIRECTORY_END="PK",m.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",m.ZIP64_CENTRAL_DIRECTORY_END="PK",m.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(h,p,m){var d=h("./GenericWorker"),b=h("../utils");function g(S){d.call(this,"ConvertWorker to "+S),this.destType=S}b.inherits(g,d),g.prototype.processChunk=function(S){this.push({data:b.transformTo(this.destType,S.data),meta:S.meta})},p.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(h,p,m){var d=h("./GenericWorker"),b=h("../crc32");function g(){d.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}h("../utils").inherits(g,d),g.prototype.processChunk=function(S){this.streamInfo.crc32=b(S.data,this.streamInfo.crc32||0),this.push(S)},p.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(h,p,m){var d=h("../utils"),b=h("./GenericWorker");function g(S){b.call(this,"DataLengthProbe for "+S),this.propName=S,this.withStreamInfo(S,0)}d.inherits(g,b),g.prototype.processChunk=function(S){if(S){var C=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=C+S.data.length}b.prototype.processChunk.call(this,S)},p.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(h,p,m){var d=h("../utils"),b=h("./GenericWorker");function g(S){b.call(this,"DataWorker");var C=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,S.then((function(I){C.dataIsReady=!0,C.data=I,C.max=I&&I.length||0,C.type=d.getTypeOf(I),C.isPaused||C._tickAndRepeat()}),(function(I){C.error(I)}))}d.inherits(g,b),g.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,d.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(d.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var S=null,C=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":S=this.data.substring(this.index,C);break;case"uint8array":S=this.data.subarray(this.index,C);break;case"array":case"nodebuffer":S=this.data.slice(this.index,C)}return this.index=C,this.push({data:S,meta:{percent:this.max?this.index/this.max*100:0}})},p.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(h,p,m){function d(b){this.name=b||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}d.prototype={push:function(b){this.emit("data",b)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(b){this.emit("error",b)}return!0},error:function(b){return!this.isFinished&&(this.isPaused?this.generatedError=b:(this.isFinished=!0,this.emit("error",b),this.previous&&this.previous.error(b),this.cleanUp()),!0)},on:function(b,g){return this._listeners[b].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(b,g){if(this._listeners[b])for(var S=0;S<this._listeners[b].length;S++)this._listeners[b][S].call(this,g)},pipe:function(b){return b.registerPrevious(this)},registerPrevious:function(b){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=b.streamInfo,this.mergeStreamInfo(),this.previous=b;var g=this;return b.on("data",(function(S){g.processChunk(S)})),b.on("end",(function(){g.end()})),b.on("error",(function(S){g.error(S)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var b=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),b=!0),this.previous&&this.previous.resume(),!b},flush:function(){},processChunk:function(b){this.push(b)},withStreamInfo:function(b,g){return this.extraStreamInfo[b]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var b in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,b)&&(this.streamInfo[b]=this.extraStreamInfo[b])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var b="Worker "+this.name;return this.previous?this.previous+" -> "+b:b}},p.exports=d},{}],29:[function(h,p,m){var d=h("../utils"),b=h("./ConvertWorker"),g=h("./GenericWorker"),S=h("../base64"),C=h("../support"),I=h("../external"),D=null;if(C.nodestream)try{D=h("../nodejs/NodejsStreamOutputAdapter")}catch{}function z(P,B,F){var W=B;switch(B){case"blob":case"arraybuffer":W="uint8array";break;case"base64":W="string"}try{this._internalType=W,this._outputType=B,this._mimeType=F,d.checkSupport(W),this._worker=P.pipe(new b(W)),P.lock()}catch(q){this._worker=new g("error"),this._worker.error(q)}}z.prototype={accumulate:function(P){return(function(B,F){return new I.Promise((function(W,q){var A=[],M=B._internalType,k=B._outputType,y=B._mimeType;B.on("data",(function(w,x){A.push(w),F&&F(x)})).on("error",(function(w){A=[],q(w)})).on("end",(function(){try{var w=(function(x,_,T){switch(x){case"blob":return d.newBlob(d.transformTo("arraybuffer",_),T);case"base64":return S.encode(_);default:return d.transformTo(x,_)}})(k,(function(x,_){var T,O=0,j=null,V=0;for(T=0;T<_.length;T++)V+=_[T].length;switch(x){case"string":return _.join("");case"array":return Array.prototype.concat.apply([],_);case"uint8array":for(j=new Uint8Array(V),T=0;T<_.length;T++)j.set(_[T],O),O+=_[T].length;return j;case"nodebuffer":return n.concat(_);default:throw new Error("concat : unsupported type '"+x+"'")}})(M,A),y);W(w)}catch(x){q(x)}A=[]})).resume()}))})(this,P)},on:function(P,B){var F=this;return P==="data"?this._worker.on(P,(function(W){B.call(F,W.data,W.meta)})):this._worker.on(P,(function(){d.delay(B,arguments,F)})),this},resume:function(){return d.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(P){if(d.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new D(this,{objectMode:this._outputType!=="nodebuffer"},P)}},p.exports=z},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(h,p,m){if(m.base64=!0,m.array=!0,m.string=!0,m.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",m.nodebuffer=n!==void 0,m.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")m.blob=!1;else{var d=new ArrayBuffer(0);try{m.blob=new Blob([d],{type:"application/zip"}).size===0}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);b.append(d),m.blob=b.getBlob("application/zip").size===0}catch{m.blob=!1}}}try{m.nodestream=!!h("readable-stream").Readable}catch{m.nodestream=!1}},{"readable-stream":16}],31:[function(h,p,m){for(var d=h("./utils"),b=h("./support"),g=h("./nodejsUtils"),S=h("./stream/GenericWorker"),C=new Array(256),I=0;I<256;I++)C[I]=252<=I?6:248<=I?5:240<=I?4:224<=I?3:192<=I?2:1;function D(){S.call(this,"utf-8 decode"),this.leftOver=null}function z(){S.call(this,"utf-8 encode")}C[254]=C[254]=1,m.utf8encode=function(P){return b.nodebuffer?g.newBufferFrom(P,"utf-8"):(function(B){var F,W,q,A,M,k=B.length,y=0;for(A=0;A<k;A++)(64512&(W=B.charCodeAt(A)))==55296&&A+1<k&&(64512&(q=B.charCodeAt(A+1)))==56320&&(W=65536+(W-55296<<10)+(q-56320),A++),y+=W<128?1:W<2048?2:W<65536?3:4;for(F=b.uint8array?new Uint8Array(y):new Array(y),A=M=0;M<y;A++)(64512&(W=B.charCodeAt(A)))==55296&&A+1<k&&(64512&(q=B.charCodeAt(A+1)))==56320&&(W=65536+(W-55296<<10)+(q-56320),A++),W<128?F[M++]=W:(W<2048?F[M++]=192|W>>>6:(W<65536?F[M++]=224|W>>>12:(F[M++]=240|W>>>18,F[M++]=128|W>>>12&63),F[M++]=128|W>>>6&63),F[M++]=128|63&W);return F})(P)},m.utf8decode=function(P){return b.nodebuffer?d.transformTo("nodebuffer",P).toString("utf-8"):(function(B){var F,W,q,A,M=B.length,k=new Array(2*M);for(F=W=0;F<M;)if((q=B[F++])<128)k[W++]=q;else if(4<(A=C[q]))k[W++]=65533,F+=A-1;else{for(q&=A===2?31:A===3?15:7;1<A&&F<M;)q=q<<6|63&B[F++],A--;1<A?k[W++]=65533:q<65536?k[W++]=q:(q-=65536,k[W++]=55296|q>>10&1023,k[W++]=56320|1023&q)}return k.length!==W&&(k.subarray?k=k.subarray(0,W):k.length=W),d.applyFromCharCode(k)})(P=d.transformTo(b.uint8array?"uint8array":"array",P))},d.inherits(D,S),D.prototype.processChunk=function(P){var B=d.transformTo(b.uint8array?"uint8array":"array",P.data);if(this.leftOver&&this.leftOver.length){if(b.uint8array){var F=B;(B=new Uint8Array(F.length+this.leftOver.length)).set(this.leftOver,0),B.set(F,this.leftOver.length)}else B=this.leftOver.concat(B);this.leftOver=null}var W=(function(A,M){var k;for((M=M||A.length)>A.length&&(M=A.length),k=M-1;0<=k&&(192&A[k])==128;)k--;return k<0||k===0?M:k+C[A[k]]>M?k:M})(B),q=B;W!==B.length&&(b.uint8array?(q=B.subarray(0,W),this.leftOver=B.subarray(W,B.length)):(q=B.slice(0,W),this.leftOver=B.slice(W,B.length))),this.push({data:m.utf8decode(q),meta:P.meta})},D.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:m.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},m.Utf8DecodeWorker=D,d.inherits(z,S),z.prototype.processChunk=function(P){this.push({data:m.utf8encode(P.data),meta:P.meta})},m.Utf8EncodeWorker=z},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(h,p,m){var d=h("./support"),b=h("./base64"),g=h("./nodejsUtils"),S=h("./external");function C(F){return F}function I(F,W){for(var q=0;q<F.length;++q)W[q]=255&F.charCodeAt(q);return W}h("setimmediate"),m.newBlob=function(F,W){m.checkSupport("blob");try{return new Blob([F],{type:W})}catch{try{var q=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return q.append(F),q.getBlob(W)}catch{throw new Error("Bug : can't construct the Blob.")}}};var D={stringifyByChunk:function(F,W,q){var A=[],M=0,k=F.length;if(k<=q)return String.fromCharCode.apply(null,F);for(;M<k;)W==="array"||W==="nodebuffer"?A.push(String.fromCharCode.apply(null,F.slice(M,Math.min(M+q,k)))):A.push(String.fromCharCode.apply(null,F.subarray(M,Math.min(M+q,k)))),M+=q;return A.join("")},stringifyByChar:function(F){for(var W="",q=0;q<F.length;q++)W+=String.fromCharCode(F[q]);return W},applyCanBeUsed:{uint8array:(function(){try{return d.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return d.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch{return!1}})()}};function z(F){var W=65536,q=m.getTypeOf(F),A=!0;if(q==="uint8array"?A=D.applyCanBeUsed.uint8array:q==="nodebuffer"&&(A=D.applyCanBeUsed.nodebuffer),A)for(;1<W;)try{return D.stringifyByChunk(F,q,W)}catch{W=Math.floor(W/2)}return D.stringifyByChar(F)}function P(F,W){for(var q=0;q<F.length;q++)W[q]=F[q];return W}m.applyFromCharCode=z;var B={};B.string={string:C,array:function(F){return I(F,new Array(F.length))},arraybuffer:function(F){return B.string.uint8array(F).buffer},uint8array:function(F){return I(F,new Uint8Array(F.length))},nodebuffer:function(F){return I(F,g.allocBuffer(F.length))}},B.array={string:z,array:C,arraybuffer:function(F){return new Uint8Array(F).buffer},uint8array:function(F){return new Uint8Array(F)},nodebuffer:function(F){return g.newBufferFrom(F)}},B.arraybuffer={string:function(F){return z(new Uint8Array(F))},array:function(F){return P(new Uint8Array(F),new Array(F.byteLength))},arraybuffer:C,uint8array:function(F){return new Uint8Array(F)},nodebuffer:function(F){return g.newBufferFrom(new Uint8Array(F))}},B.uint8array={string:z,array:function(F){return P(F,new Array(F.length))},arraybuffer:function(F){return F.buffer},uint8array:C,nodebuffer:function(F){return g.newBufferFrom(F)}},B.nodebuffer={string:z,array:function(F){return P(F,new Array(F.length))},arraybuffer:function(F){return B.nodebuffer.uint8array(F).buffer},uint8array:function(F){return P(F,new Uint8Array(F.length))},nodebuffer:C},m.transformTo=function(F,W){if(W=W||"",!F)return W;m.checkSupport(F);var q=m.getTypeOf(W);return B[q][F](W)},m.resolve=function(F){for(var W=F.split("/"),q=[],A=0;A<W.length;A++){var M=W[A];M==="."||M===""&&A!==0&&A!==W.length-1||(M===".."?q.pop():q.push(M))}return q.join("/")},m.getTypeOf=function(F){return typeof F=="string"?"string":Object.prototype.toString.call(F)==="[object Array]"?"array":d.nodebuffer&&g.isBuffer(F)?"nodebuffer":d.uint8array&&F instanceof Uint8Array?"uint8array":d.arraybuffer&&F instanceof ArrayBuffer?"arraybuffer":void 0},m.checkSupport=function(F){if(!d[F.toLowerCase()])throw new Error(F+" is not supported by this platform")},m.MAX_VALUE_16BITS=65535,m.MAX_VALUE_32BITS=-1,m.pretty=function(F){var W,q,A="";for(q=0;q<(F||"").length;q++)A+="\\x"+((W=F.charCodeAt(q))<16?"0":"")+W.toString(16).toUpperCase();return A},m.delay=function(F,W,q){a((function(){F.apply(q||null,W||[])}))},m.inherits=function(F,W){function q(){}q.prototype=W.prototype,F.prototype=new q},m.extend=function(){var F,W,q={};for(F=0;F<arguments.length;F++)for(W in arguments[F])Object.prototype.hasOwnProperty.call(arguments[F],W)&&q[W]===void 0&&(q[W]=arguments[F][W]);return q},m.prepareContent=function(F,W,q,A,M){return S.Promise.resolve(W).then((function(k){return d.blob&&(k instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(k))!==-1)&&typeof FileReader<"u"?new S.Promise((function(y,w){var x=new FileReader;x.onload=function(_){y(_.target.result)},x.onerror=function(_){w(_.target.error)},x.readAsArrayBuffer(k)})):k})).then((function(k){var y=m.getTypeOf(k);return y?(y==="arraybuffer"?k=m.transformTo("uint8array",k):y==="string"&&(M?k=b.decode(k):q&&A!==!0&&(k=(function(w){return I(w,d.uint8array?new Uint8Array(w.length):new Array(w.length))})(k))),k):S.Promise.reject(new Error("Can't read the data of '"+F+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(h,p,m){var d=h("./reader/readerFor"),b=h("./utils"),g=h("./signature"),S=h("./zipEntry"),C=h("./support");function I(D){this.files=[],this.loadOptions=D}I.prototype={checkSignature:function(D){if(!this.reader.readAndCheckSignature(D)){this.reader.index-=4;var z=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+b.pretty(z)+", expected "+b.pretty(D)+")")}},isSignature:function(D,z){var P=this.reader.index;this.reader.setIndex(D);var B=this.reader.readString(4)===z;return this.reader.setIndex(P),B},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var D=this.reader.readData(this.zipCommentLength),z=C.uint8array?"uint8array":"array",P=b.transformTo(z,D);this.zipComment=this.loadOptions.decodeFileName(P)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var D,z,P,B=this.zip64EndOfCentralSize-44;0<B;)D=this.reader.readInt(2),z=this.reader.readInt(4),P=this.reader.readData(z),this.zip64ExtensibleData[D]={id:D,length:z,value:P}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var D,z;for(D=0;D<this.files.length;D++)z=this.files[D],this.reader.setIndex(z.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),z.readLocalPart(this.reader),z.handleUTF8(),z.processAttributes()},readCentralDir:function(){var D;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(D=new S({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(D);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var D=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(D<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(D);var z=D;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===b.MAX_VALUE_16BITS||this.diskWithCentralDirStart===b.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===b.MAX_VALUE_16BITS||this.centralDirRecords===b.MAX_VALUE_16BITS||this.centralDirSize===b.MAX_VALUE_32BITS||this.centralDirOffset===b.MAX_VALUE_32BITS){if(this.zip64=!0,(D=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(D),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var P=this.centralDirOffset+this.centralDirSize;this.zip64&&(P+=20,P+=12+this.zip64EndOfCentralSize);var B=z-P;if(0<B)this.isSignature(z,g.CENTRAL_FILE_HEADER)||(this.reader.zero=B);else if(B<0)throw new Error("Corrupted zip: missing "+Math.abs(B)+" bytes.")},prepareReader:function(D){this.reader=d(D)},load:function(D){this.prepareReader(D),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},p.exports=I},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(h,p,m){var d=h("./reader/readerFor"),b=h("./utils"),g=h("./compressedObject"),S=h("./crc32"),C=h("./utf8"),I=h("./compressions"),D=h("./support");function z(P,B){this.options=P,this.loadOptions=B}z.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(P){var B,F;if(P.skip(22),this.fileNameLength=P.readInt(2),F=P.readInt(2),this.fileName=P.readData(this.fileNameLength),P.skip(F),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((B=(function(W){for(var q in I)if(Object.prototype.hasOwnProperty.call(I,q)&&I[q].magic===W)return I[q];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+b.pretty(this.compressionMethod)+" unknown (inner file : "+b.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,B,P.readData(this.compressedSize))},readCentralPart:function(P){this.versionMadeBy=P.readInt(2),P.skip(2),this.bitFlag=P.readInt(2),this.compressionMethod=P.readString(2),this.date=P.readDate(),this.crc32=P.readInt(4),this.compressedSize=P.readInt(4),this.uncompressedSize=P.readInt(4);var B=P.readInt(2);if(this.extraFieldsLength=P.readInt(2),this.fileCommentLength=P.readInt(2),this.diskNumberStart=P.readInt(2),this.internalFileAttributes=P.readInt(2),this.externalFileAttributes=P.readInt(4),this.localHeaderOffset=P.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");P.skip(B),this.readExtraFields(P),this.parseZIP64ExtraField(P),this.fileComment=P.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var P=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),P==0&&(this.dosPermissions=63&this.externalFileAttributes),P==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var P=d(this.extraFields[1].value);this.uncompressedSize===b.MAX_VALUE_32BITS&&(this.uncompressedSize=P.readInt(8)),this.compressedSize===b.MAX_VALUE_32BITS&&(this.compressedSize=P.readInt(8)),this.localHeaderOffset===b.MAX_VALUE_32BITS&&(this.localHeaderOffset=P.readInt(8)),this.diskNumberStart===b.MAX_VALUE_32BITS&&(this.diskNumberStart=P.readInt(4))}},readExtraFields:function(P){var B,F,W,q=P.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});P.index+4<q;)B=P.readInt(2),F=P.readInt(2),W=P.readData(F),this.extraFields[B]={id:B,length:F,value:W};P.setIndex(q)},handleUTF8:function(){var P=D.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=C.utf8decode(this.fileName),this.fileCommentStr=C.utf8decode(this.fileComment);else{var B=this.findExtraFieldUnicodePath();if(B!==null)this.fileNameStr=B;else{var F=b.transformTo(P,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(F)}var W=this.findExtraFieldUnicodeComment();if(W!==null)this.fileCommentStr=W;else{var q=b.transformTo(P,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(q)}}},findExtraFieldUnicodePath:function(){var P=this.extraFields[28789];if(P){var B=d(P.value);return B.readInt(1)!==1||S(this.fileName)!==B.readInt(4)?null:C.utf8decode(B.readData(P.length-5))}return null},findExtraFieldUnicodeComment:function(){var P=this.extraFields[25461];if(P){var B=d(P.value);return B.readInt(1)!==1||S(this.fileComment)!==B.readInt(4)?null:C.utf8decode(B.readData(P.length-5))}return null}},p.exports=z},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(h,p,m){function d(B,F,W){this.name=B,this.dir=W.dir,this.date=W.date,this.comment=W.comment,this.unixPermissions=W.unixPermissions,this.dosPermissions=W.dosPermissions,this._data=F,this._dataBinary=W.binary,this.options={compression:W.compression,compressionOptions:W.compressionOptions}}var b=h("./stream/StreamHelper"),g=h("./stream/DataWorker"),S=h("./utf8"),C=h("./compressedObject"),I=h("./stream/GenericWorker");d.prototype={internalStream:function(B){var F=null,W="string";try{if(!B)throw new Error("No output type specified.");var q=(W=B.toLowerCase())==="string"||W==="text";W!=="binarystring"&&W!=="text"||(W="string"),F=this._decompressWorker();var A=!this._dataBinary;A&&!q&&(F=F.pipe(new S.Utf8EncodeWorker)),!A&&q&&(F=F.pipe(new S.Utf8DecodeWorker))}catch(M){(F=new I("error")).error(M)}return new b(F,W,"")},async:function(B,F){return this.internalStream(B).accumulate(F)},nodeStream:function(B,F){return this.internalStream(B||"nodebuffer").toNodejsStream(F)},_compressWorker:function(B,F){if(this._data instanceof C&&this._data.compression.magic===B.magic)return this._data.getCompressedWorker();var W=this._decompressWorker();return this._dataBinary||(W=W.pipe(new S.Utf8EncodeWorker)),C.createWorkerFrom(W,B,F)},_decompressWorker:function(){return this._data instanceof C?this._data.getContentWorker():this._data instanceof I?this._data:new g(this._data)}};for(var D=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],z=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},P=0;P<D.length;P++)d.prototype[D[P]]=z;p.exports=d},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(h,p,m){(function(d){var b,g,S=d.MutationObserver||d.WebKitMutationObserver;if(S){var C=0,I=new S(B),D=d.document.createTextNode("");I.observe(D,{characterData:!0}),b=function(){D.data=C=++C%2}}else if(d.setImmediate||d.MessageChannel===void 0)b="document"in d&&"onreadystatechange"in d.document.createElement("script")?function(){var F=d.document.createElement("script");F.onreadystatechange=function(){B(),F.onreadystatechange=null,F.parentNode.removeChild(F),F=null},d.document.documentElement.appendChild(F)}:function(){setTimeout(B,0)};else{var z=new d.MessageChannel;z.port1.onmessage=B,b=function(){z.port2.postMessage(0)}}var P=[];function B(){var F,W;g=!0;for(var q=P.length;q;){for(W=P,P=[],F=-1;++F<q;)W[F]();q=P.length}g=!1}p.exports=function(F){P.push(F)!==1||g||b()}}).call(this,r!==void 0?r:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(h,p,m){var d=h("immediate");function b(){}var g={},S=["REJECTED"],C=["FULFILLED"],I=["PENDING"];function D(q){if(typeof q!="function")throw new TypeError("resolver must be a function");this.state=I,this.queue=[],this.outcome=void 0,q!==b&&F(this,q)}function z(q,A,M){this.promise=q,typeof A=="function"&&(this.onFulfilled=A,this.callFulfilled=this.otherCallFulfilled),typeof M=="function"&&(this.onRejected=M,this.callRejected=this.otherCallRejected)}function P(q,A,M){d((function(){var k;try{k=A(M)}catch(y){return g.reject(q,y)}k===q?g.reject(q,new TypeError("Cannot resolve promise with itself")):g.resolve(q,k)}))}function B(q){var A=q&&q.then;if(q&&(typeof q=="object"||typeof q=="function")&&typeof A=="function")return function(){A.apply(q,arguments)}}function F(q,A){var M=!1;function k(x){M||(M=!0,g.reject(q,x))}function y(x){M||(M=!0,g.resolve(q,x))}var w=W((function(){A(y,k)}));w.status==="error"&&k(w.value)}function W(q,A){var M={};try{M.value=q(A),M.status="success"}catch(k){M.status="error",M.value=k}return M}(p.exports=D).prototype.finally=function(q){if(typeof q!="function")return this;var A=this.constructor;return this.then((function(M){return A.resolve(q()).then((function(){return M}))}),(function(M){return A.resolve(q()).then((function(){throw M}))}))},D.prototype.catch=function(q){return this.then(null,q)},D.prototype.then=function(q,A){if(typeof q!="function"&&this.state===C||typeof A!="function"&&this.state===S)return this;var M=new this.constructor(b);return this.state!==I?P(M,this.state===C?q:A,this.outcome):this.queue.push(new z(M,q,A)),M},z.prototype.callFulfilled=function(q){g.resolve(this.promise,q)},z.prototype.otherCallFulfilled=function(q){P(this.promise,this.onFulfilled,q)},z.prototype.callRejected=function(q){g.reject(this.promise,q)},z.prototype.otherCallRejected=function(q){P(this.promise,this.onRejected,q)},g.resolve=function(q,A){var M=W(B,A);if(M.status==="error")return g.reject(q,M.value);var k=M.value;if(k)F(q,k);else{q.state=C,q.outcome=A;for(var y=-1,w=q.queue.length;++y<w;)q.queue[y].callFulfilled(A)}return q},g.reject=function(q,A){q.state=S,q.outcome=A;for(var M=-1,k=q.queue.length;++M<k;)q.queue[M].callRejected(A);return q},D.resolve=function(q){return q instanceof this?q:g.resolve(new this(b),q)},D.reject=function(q){var A=new this(b);return g.reject(A,q)},D.all=function(q){var A=this;if(Object.prototype.toString.call(q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=q.length,k=!1;if(!M)return this.resolve([]);for(var y=new Array(M),w=0,x=-1,_=new this(b);++x<M;)T(q[x],x);return _;function T(O,j){A.resolve(O).then((function(V){y[j]=V,++w!==M||k||(k=!0,g.resolve(_,y))}),(function(V){k||(k=!0,g.reject(_,V))}))}},D.race=function(q){if(Object.prototype.toString.call(q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var A=q.length,M=!1;if(!A)return this.resolve([]);for(var k,y=-1,w=new this(b);++y<A;)k=q[y],this.resolve(k).then((function(x){M||(M=!0,g.resolve(w,x))}),(function(x){M||(M=!0,g.reject(w,x))}));return w}},{immediate:36}],38:[function(h,p,m){var d={};(0,h("./lib/utils/common").assign)(d,h("./lib/deflate"),h("./lib/inflate"),h("./lib/zlib/constants")),p.exports=d},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(h,p,m){var d=h("./zlib/deflate"),b=h("./utils/common"),g=h("./utils/strings"),S=h("./zlib/messages"),C=h("./zlib/zstream"),I=Object.prototype.toString;function D(P){if(!(this instanceof D))return new D(P);this.options=b.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},P||{});var B=this.options;B.raw&&0<B.windowBits?B.windowBits=-B.windowBits:B.gzip&&0<B.windowBits&&B.windowBits<16&&(B.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new C,this.strm.avail_out=0;var F=d.deflateInit2(this.strm,B.level,B.method,B.windowBits,B.memLevel,B.strategy);if(F!==0)throw new Error(S[F]);if(B.header&&d.deflateSetHeader(this.strm,B.header),B.dictionary){var W;if(W=typeof B.dictionary=="string"?g.string2buf(B.dictionary):I.call(B.dictionary)==="[object ArrayBuffer]"?new Uint8Array(B.dictionary):B.dictionary,(F=d.deflateSetDictionary(this.strm,W))!==0)throw new Error(S[F]);this._dict_set=!0}}function z(P,B){var F=new D(B);if(F.push(P,!0),F.err)throw F.msg||S[F.err];return F.result}D.prototype.push=function(P,B){var F,W,q=this.strm,A=this.options.chunkSize;if(this.ended)return!1;W=B===~~B?B:B===!0?4:0,typeof P=="string"?q.input=g.string2buf(P):I.call(P)==="[object ArrayBuffer]"?q.input=new Uint8Array(P):q.input=P,q.next_in=0,q.avail_in=q.input.length;do{if(q.avail_out===0&&(q.output=new b.Buf8(A),q.next_out=0,q.avail_out=A),(F=d.deflate(q,W))!==1&&F!==0)return this.onEnd(F),!(this.ended=!0);q.avail_out!==0&&(q.avail_in!==0||W!==4&&W!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(b.shrinkBuf(q.output,q.next_out))):this.onData(b.shrinkBuf(q.output,q.next_out)))}while((0<q.avail_in||q.avail_out===0)&&F!==1);return W===4?(F=d.deflateEnd(this.strm),this.onEnd(F),this.ended=!0,F===0):W!==2||(this.onEnd(0),!(q.avail_out=0))},D.prototype.onData=function(P){this.chunks.push(P)},D.prototype.onEnd=function(P){P===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=P,this.msg=this.strm.msg},m.Deflate=D,m.deflate=z,m.deflateRaw=function(P,B){return(B=B||{}).raw=!0,z(P,B)},m.gzip=function(P,B){return(B=B||{}).gzip=!0,z(P,B)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(h,p,m){var d=h("./zlib/inflate"),b=h("./utils/common"),g=h("./utils/strings"),S=h("./zlib/constants"),C=h("./zlib/messages"),I=h("./zlib/zstream"),D=h("./zlib/gzheader"),z=Object.prototype.toString;function P(F){if(!(this instanceof P))return new P(F);this.options=b.assign({chunkSize:16384,windowBits:0,to:""},F||{});var W=this.options;W.raw&&0<=W.windowBits&&W.windowBits<16&&(W.windowBits=-W.windowBits,W.windowBits===0&&(W.windowBits=-15)),!(0<=W.windowBits&&W.windowBits<16)||F&&F.windowBits||(W.windowBits+=32),15<W.windowBits&&W.windowBits<48&&(15&W.windowBits)==0&&(W.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new I,this.strm.avail_out=0;var q=d.inflateInit2(this.strm,W.windowBits);if(q!==S.Z_OK)throw new Error(C[q]);this.header=new D,d.inflateGetHeader(this.strm,this.header)}function B(F,W){var q=new P(W);if(q.push(F,!0),q.err)throw q.msg||C[q.err];return q.result}P.prototype.push=function(F,W){var q,A,M,k,y,w,x=this.strm,_=this.options.chunkSize,T=this.options.dictionary,O=!1;if(this.ended)return!1;A=W===~~W?W:W===!0?S.Z_FINISH:S.Z_NO_FLUSH,typeof F=="string"?x.input=g.binstring2buf(F):z.call(F)==="[object ArrayBuffer]"?x.input=new Uint8Array(F):x.input=F,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new b.Buf8(_),x.next_out=0,x.avail_out=_),(q=d.inflate(x,S.Z_NO_FLUSH))===S.Z_NEED_DICT&&T&&(w=typeof T=="string"?g.string2buf(T):z.call(T)==="[object ArrayBuffer]"?new Uint8Array(T):T,q=d.inflateSetDictionary(this.strm,w)),q===S.Z_BUF_ERROR&&O===!0&&(q=S.Z_OK,O=!1),q!==S.Z_STREAM_END&&q!==S.Z_OK)return this.onEnd(q),!(this.ended=!0);x.next_out&&(x.avail_out!==0&&q!==S.Z_STREAM_END&&(x.avail_in!==0||A!==S.Z_FINISH&&A!==S.Z_SYNC_FLUSH)||(this.options.to==="string"?(M=g.utf8border(x.output,x.next_out),k=x.next_out-M,y=g.buf2string(x.output,M),x.next_out=k,x.avail_out=_-k,k&&b.arraySet(x.output,x.output,M,k,0),this.onData(y)):this.onData(b.shrinkBuf(x.output,x.next_out)))),x.avail_in===0&&x.avail_out===0&&(O=!0)}while((0<x.avail_in||x.avail_out===0)&&q!==S.Z_STREAM_END);return q===S.Z_STREAM_END&&(A=S.Z_FINISH),A===S.Z_FINISH?(q=d.inflateEnd(this.strm),this.onEnd(q),this.ended=!0,q===S.Z_OK):A!==S.Z_SYNC_FLUSH||(this.onEnd(S.Z_OK),!(x.avail_out=0))},P.prototype.onData=function(F){this.chunks.push(F)},P.prototype.onEnd=function(F){F===S.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=b.flattenChunks(this.chunks)),this.chunks=[],this.err=F,this.msg=this.strm.msg},m.Inflate=P,m.inflate=B,m.inflateRaw=function(F,W){return(W=W||{}).raw=!0,B(F,W)},m.ungzip=B},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(h,p,m){var d=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";m.assign=function(S){for(var C=Array.prototype.slice.call(arguments,1);C.length;){var I=C.shift();if(I){if(typeof I!="object")throw new TypeError(I+"must be non-object");for(var D in I)I.hasOwnProperty(D)&&(S[D]=I[D])}}return S},m.shrinkBuf=function(S,C){return S.length===C?S:S.subarray?S.subarray(0,C):(S.length=C,S)};var b={arraySet:function(S,C,I,D,z){if(C.subarray&&S.subarray)S.set(C.subarray(I,I+D),z);else for(var P=0;P<D;P++)S[z+P]=C[I+P]},flattenChunks:function(S){var C,I,D,z,P,B;for(C=D=0,I=S.length;C<I;C++)D+=S[C].length;for(B=new Uint8Array(D),C=z=0,I=S.length;C<I;C++)P=S[C],B.set(P,z),z+=P.length;return B}},g={arraySet:function(S,C,I,D,z){for(var P=0;P<D;P++)S[z+P]=C[I+P]},flattenChunks:function(S){return[].concat.apply([],S)}};m.setTyped=function(S){S?(m.Buf8=Uint8Array,m.Buf16=Uint16Array,m.Buf32=Int32Array,m.assign(m,b)):(m.Buf8=Array,m.Buf16=Array,m.Buf32=Array,m.assign(m,g))},m.setTyped(d)},{}],42:[function(h,p,m){var d=h("./common"),b=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{b=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}for(var S=new d.Buf8(256),C=0;C<256;C++)S[C]=252<=C?6:248<=C?5:240<=C?4:224<=C?3:192<=C?2:1;function I(D,z){if(z<65537&&(D.subarray&&g||!D.subarray&&b))return String.fromCharCode.apply(null,d.shrinkBuf(D,z));for(var P="",B=0;B<z;B++)P+=String.fromCharCode(D[B]);return P}S[254]=S[254]=1,m.string2buf=function(D){var z,P,B,F,W,q=D.length,A=0;for(F=0;F<q;F++)(64512&(P=D.charCodeAt(F)))==55296&&F+1<q&&(64512&(B=D.charCodeAt(F+1)))==56320&&(P=65536+(P-55296<<10)+(B-56320),F++),A+=P<128?1:P<2048?2:P<65536?3:4;for(z=new d.Buf8(A),F=W=0;W<A;F++)(64512&(P=D.charCodeAt(F)))==55296&&F+1<q&&(64512&(B=D.charCodeAt(F+1)))==56320&&(P=65536+(P-55296<<10)+(B-56320),F++),P<128?z[W++]=P:(P<2048?z[W++]=192|P>>>6:(P<65536?z[W++]=224|P>>>12:(z[W++]=240|P>>>18,z[W++]=128|P>>>12&63),z[W++]=128|P>>>6&63),z[W++]=128|63&P);return z},m.buf2binstring=function(D){return I(D,D.length)},m.binstring2buf=function(D){for(var z=new d.Buf8(D.length),P=0,B=z.length;P<B;P++)z[P]=D.charCodeAt(P);return z},m.buf2string=function(D,z){var P,B,F,W,q=z||D.length,A=new Array(2*q);for(P=B=0;P<q;)if((F=D[P++])<128)A[B++]=F;else if(4<(W=S[F]))A[B++]=65533,P+=W-1;else{for(F&=W===2?31:W===3?15:7;1<W&&P<q;)F=F<<6|63&D[P++],W--;1<W?A[B++]=65533:F<65536?A[B++]=F:(F-=65536,A[B++]=55296|F>>10&1023,A[B++]=56320|1023&F)}return I(A,B)},m.utf8border=function(D,z){var P;for((z=z||D.length)>D.length&&(z=D.length),P=z-1;0<=P&&(192&D[P])==128;)P--;return P<0||P===0?z:P+S[D[P]]>z?P:z}},{"./common":41}],43:[function(h,p,m){p.exports=function(d,b,g,S){for(var C=65535&d|0,I=d>>>16&65535|0,D=0;g!==0;){for(g-=D=2e3<g?2e3:g;I=I+(C=C+b[S++]|0)|0,--D;);C%=65521,I%=65521}return C|I<<16|0}},{}],44:[function(h,p,m){p.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(h,p,m){var d=(function(){for(var b,g=[],S=0;S<256;S++){b=S;for(var C=0;C<8;C++)b=1&b?3988292384^b>>>1:b>>>1;g[S]=b}return g})();p.exports=function(b,g,S,C){var I=d,D=C+S;b^=-1;for(var z=C;z<D;z++)b=b>>>8^I[255&(b^g[z])];return-1^b}},{}],46:[function(h,p,m){var d,b=h("../utils/common"),g=h("./trees"),S=h("./adler32"),C=h("./crc32"),I=h("./messages"),D=-2,z=258,P=262,B=113;function F(L,G){return L.msg=I[G],G}function W(L){return(L<<1)-(4<L?9:0)}function q(L){for(var G=L.length;0<=--G;)L[G]=0}function A(L){var G=L.state,N=G.pending;N>L.avail_out&&(N=L.avail_out),N!==0&&(b.arraySet(L.output,G.pending_buf,G.pending_out,N,L.next_out),L.next_out+=N,G.pending_out+=N,L.total_out+=N,L.avail_out-=N,G.pending-=N,G.pending===0&&(G.pending_out=0))}function M(L,G){g._tr_flush_block(L,0<=L.block_start?L.block_start:-1,L.strstart-L.block_start,G),L.block_start=L.strstart,A(L.strm)}function k(L,G){L.pending_buf[L.pending++]=G}function y(L,G){L.pending_buf[L.pending++]=G>>>8&255,L.pending_buf[L.pending++]=255&G}function w(L,G){var N,R,U=L.max_chain_length,K=L.strstart,rt=L.prev_length,Z=L.nice_match,et=L.strstart>L.w_size-P?L.strstart-(L.w_size-P):0,ht=L.window,lt=L.w_mask,Q=L.prev,ot=L.strstart+z,nt=ht[K+rt-1],ut=ht[K+rt];L.prev_length>=L.good_match&&(U>>=2),Z>L.lookahead&&(Z=L.lookahead);do if(ht[(N=G)+rt]===ut&&ht[N+rt-1]===nt&&ht[N]===ht[K]&&ht[++N]===ht[K+1]){K+=2,N++;do;while(ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&ht[++K]===ht[++N]&&K<ot);if(R=z-(ot-K),K=ot-z,rt<R){if(L.match_start=G,Z<=(rt=R))break;nt=ht[K+rt-1],ut=ht[K+rt]}}while((G=Q[G<])>et&&--U!=0);return rt<=L.lookahead?rt:L.lookahead}function x(L){var G,N,R,U,K,rt,Z,et,ht,lt,Q=L.w_size;do{if(U=L.window_size-L.lookahead-L.strstart,L.strstart>=Q+(Q-P)){for(b.arraySet(L.window,L.window,Q,Q,0),L.match_start-=Q,L.strstart-=Q,L.block_start-=Q,G=N=L.hash_size;R=L.head[--G],L.head[G]=Q<=R?R-Q:0,--N;);for(G=N=Q;R=L.prev[--G],L.prev[G]=Q<=R?R-Q:0,--N;);U+=Q}if(L.strm.avail_in===0)break;if(rt=L.strm,Z=L.window,et=L.strstart+L.lookahead,lt=void 0,(ht=U)<(lt=rt.avail_in)&&(lt=ht),N=lt===0?0:(rt.avail_in-=lt,b.arraySet(Z,rt.input,rt.next_in,lt,et),rt.state.wrap===1?rt.adler=S(rt.adler,Z,lt,et):rt.state.wrap===2&&(rt.adler=C(rt.adler,Z,lt,et)),rt.next_in+=lt,rt.total_in+=lt,lt),L.lookahead+=N,L.lookahead+L.insert>=3)for(K=L.strstart-L.insert,L.ins_h=L.window[K],L.ins_h=(L.ins_h<<L.hash_shift^L.window[K+1])&L.hash_mask;L.insert&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[K+3-1])&L.hash_mask,L.prev[K&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=K,K++,L.insert--,!(L.lookahead+L.insert<3)););}while(L.lookahead<P&&L.strm.avail_in!==0)}function _(L,G){for(var N,R;;){if(L.lookahead<P){if(x(L),L.lookahead<P&&G===0)return 1;if(L.lookahead===0)break}if(N=0,L.lookahead>=3&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),N!==0&&L.strstart-N<=L.w_size-P&&(L.match_length=w(L,N)),L.match_length>=3)if(R=g._tr_tally(L,L.strstart-L.match_start,L.match_length-3),L.lookahead-=L.match_length,L.match_length<=L.max_lazy_match&&L.lookahead>=3){for(L.match_length--;L.strstart++,L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart,--L.match_length!=0;);L.strstart++}else L.strstart+=L.match_length,L.match_length=0,L.ins_h=L.window[L.strstart],L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+1])&L.hash_mask;else R=g._tr_tally(L,0,L.window[L.strstart]),L.lookahead--,L.strstart++;if(R&&(M(L,!1),L.strm.avail_out===0))return 1}return L.insert=L.strstart<2?L.strstart:2,G===4?(M(L,!0),L.strm.avail_out===0?3:4):L.last_lit&&(M(L,!1),L.strm.avail_out===0)?1:2}function T(L,G){for(var N,R,U;;){if(L.lookahead<P){if(x(L),L.lookahead<P&&G===0)return 1;if(L.lookahead===0)break}if(N=0,L.lookahead>=3&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),L.prev_length=L.match_length,L.prev_match=L.match_start,L.match_length=2,N!==0&&L.prev_length<L.max_lazy_match&&L.strstart-N<=L.w_size-P&&(L.match_length=w(L,N),L.match_length<=5&&(L.strategy===1||L.match_length===3&&4096<L.strstart-L.match_start)&&(L.match_length=2)),L.prev_length>=3&&L.match_length<=L.prev_length){for(U=L.strstart+L.lookahead-3,R=g._tr_tally(L,L.strstart-1-L.prev_match,L.prev_length-3),L.lookahead-=L.prev_length-1,L.prev_length-=2;++L.strstart<=U&&(L.ins_h=(L.ins_h<<L.hash_shift^L.window[L.strstart+3-1])&L.hash_mask,N=L.prev[L.strstart&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=L.strstart),--L.prev_length!=0;);if(L.match_available=0,L.match_length=2,L.strstart++,R&&(M(L,!1),L.strm.avail_out===0))return 1}else if(L.match_available){if((R=g._tr_tally(L,0,L.window[L.strstart-1]))&&M(L,!1),L.strstart++,L.lookahead--,L.strm.avail_out===0)return 1}else L.match_available=1,L.strstart++,L.lookahead--}return L.match_available&&(R=g._tr_tally(L,0,L.window[L.strstart-1]),L.match_available=0),L.insert=L.strstart<2?L.strstart:2,G===4?(M(L,!0),L.strm.avail_out===0?3:4):L.last_lit&&(M(L,!1),L.strm.avail_out===0)?1:2}function O(L,G,N,R,U){this.good_length=L,this.max_lazy=G,this.nice_length=N,this.max_chain=R,this.func=U}function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new b.Buf16(1146),this.dyn_dtree=new b.Buf16(122),this.bl_tree=new b.Buf16(78),q(this.dyn_ltree),q(this.dyn_dtree),q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new b.Buf16(16),this.heap=new b.Buf16(573),q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new b.Buf16(573),q(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(L){var G;return L&&L.state?(L.total_in=L.total_out=0,L.data_type=2,(G=L.state).pending=0,G.pending_out=0,G.wrap<0&&(G.wrap=-G.wrap),G.status=G.wrap?42:B,L.adler=G.wrap===2?0:1,G.last_flush=0,g._tr_init(G),0):F(L,D)}function X(L){var G=V(L);return G===0&&(function(N){N.window_size=2*N.w_size,q(N.head),N.max_lazy_match=d[N.level].max_lazy,N.good_match=d[N.level].good_length,N.nice_match=d[N.level].nice_length,N.max_chain_length=d[N.level].max_chain,N.strstart=0,N.block_start=0,N.lookahead=0,N.insert=0,N.match_length=N.prev_length=2,N.match_available=0,N.ins_h=0})(L.state),G}function J(L,G,N,R,U,K){if(!L)return D;var rt=1;if(G===-1&&(G=6),R<0?(rt=0,R=-R):15<R&&(rt=2,R-=16),U<1||9<U||N!==8||R<8||15<R||G<0||9<G||K<0||4<K)return F(L,D);R===8&&(R=9);var Z=new j;return(L.state=Z).strm=L,Z.wrap=rt,Z.gzhead=null,Z.w_bits=R,Z.w_size=1<<Z.w_bits,Z.w_mask=Z.w_size-1,Z.hash_bits=U+7,Z.hash_size=1<<Z.hash_bits,Z.hash_mask=Z.hash_size-1,Z.hash_shift=~~((Z.hash_bits+3-1)/3),Z.window=new b.Buf8(2*Z.w_size),Z.head=new b.Buf16(Z.hash_size),Z.prev=new b.Buf16(Z.w_size),Z.lit_bufsize=1<<U+6,Z.pending_buf_size=4*Z.lit_bufsize,Z.pending_buf=new b.Buf8(Z.pending_buf_size),Z.d_buf=1*Z.lit_bufsize,Z.l_buf=3*Z.lit_bufsize,Z.level=G,Z.strategy=K,Z.method=N,X(L)}d=[new O(0,0,0,0,(function(L,G){var N=65535;for(N>L.pending_buf_size-5&&(N=L.pending_buf_size-5);;){if(L.lookahead<=1){if(x(L),L.lookahead===0&&G===0)return 1;if(L.lookahead===0)break}L.strstart+=L.lookahead,L.lookahead=0;var R=L.block_start+N;if((L.strstart===0||L.strstart>=R)&&(L.lookahead=L.strstart-R,L.strstart=R,M(L,!1),L.strm.avail_out===0)||L.strstart-L.block_start>=L.w_size-P&&(M(L,!1),L.strm.avail_out===0))return 1}return L.insert=0,G===4?(M(L,!0),L.strm.avail_out===0?3:4):(L.strstart>L.block_start&&(M(L,!1),L.strm.avail_out),1)})),new O(4,4,8,4,_),new O(4,5,16,8,_),new O(4,6,32,32,_),new O(4,4,16,16,T),new O(8,16,32,32,T),new O(8,16,128,128,T),new O(8,32,128,256,T),new O(32,128,258,1024,T),new O(32,258,258,4096,T)],m.deflateInit=function(L,G){return J(L,G,8,15,8,0)},m.deflateInit2=J,m.deflateReset=X,m.deflateResetKeep=V,m.deflateSetHeader=function(L,G){return L&&L.state?L.state.wrap!==2?D:(L.state.gzhead=G,0):D},m.deflate=function(L,G){var N,R,U,K;if(!L||!L.state||5<G||G<0)return L?F(L,D):D;if(R=L.state,!L.output||!L.input&&L.avail_in!==0||R.status===666&&G!==4)return F(L,L.avail_out===0?-5:D);if(R.strm=L,N=R.last_flush,R.last_flush=G,R.status===42)if(R.wrap===2)L.adler=0,k(R,31),k(R,139),k(R,8),R.gzhead?(k(R,(R.gzhead.text?1:0)+(R.gzhead.hcrc?2:0)+(R.gzhead.extra?4:0)+(R.gzhead.name?8:0)+(R.gzhead.comment?16:0)),k(R,255&R.gzhead.time),k(R,R.gzhead.time>>8&255),k(R,R.gzhead.time>>16&255),k(R,R.gzhead.time>>24&255),k(R,R.level===9?2:2<=R.strategy||R.level<2?4:0),k(R,255&R.gzhead.os),R.gzhead.extra&&R.gzhead.extra.length&&(k(R,255&R.gzhead.extra.length),k(R,R.gzhead.extra.length>>8&255)),R.gzhead.hcrc&&(L.adler=C(L.adler,R.pending_buf,R.pending,0)),R.gzindex=0,R.status=69):(k(R,0),k(R,0),k(R,0),k(R,0),k(R,0),k(R,R.level===9?2:2<=R.strategy||R.level<2?4:0),k(R,3),R.status=B);else{var rt=8+(R.w_bits-8<<4)<<8;rt|=(2<=R.strategy||R.level<2?0:R.level<6?1:R.level===6?2:3)<<6,R.strstart!==0&&(rt|=32),rt+=31-rt%31,R.status=B,y(R,rt),R.strstart!==0&&(y(R,L.adler>>>16),y(R,65535&L.adler)),L.adler=1}if(R.status===69)if(R.gzhead.extra){for(U=R.pending;R.gzindex<(65535&R.gzhead.extra.length)&&(R.pending!==R.pending_buf_size||(R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),A(L),U=R.pending,R.pending!==R.pending_buf_size));)k(R,255&R.gzhead.extra[R.gzindex]),R.gzindex++;R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),R.gzindex===R.gzhead.extra.length&&(R.gzindex=0,R.status=73)}else R.status=73;if(R.status===73)if(R.gzhead.name){U=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),A(L),U=R.pending,R.pending===R.pending_buf_size)){K=1;break}K=R.gzindex<R.gzhead.name.length?255&R.gzhead.name.charCodeAt(R.gzindex++):0,k(R,K)}while(K!==0);R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),K===0&&(R.gzindex=0,R.status=91)}else R.status=91;if(R.status===91)if(R.gzhead.comment){U=R.pending;do{if(R.pending===R.pending_buf_size&&(R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),A(L),U=R.pending,R.pending===R.pending_buf_size)){K=1;break}K=R.gzindex<R.gzhead.comment.length?255&R.gzhead.comment.charCodeAt(R.gzindex++):0,k(R,K)}while(K!==0);R.gzhead.hcrc&&R.pending>U&&(L.adler=C(L.adler,R.pending_buf,R.pending-U,U)),K===0&&(R.status=103)}else R.status=103;if(R.status===103&&(R.gzhead.hcrc?(R.pending+2>R.pending_buf_size&&A(L),R.pending+2<=R.pending_buf_size&&(k(R,255&L.adler),k(R,L.adler>>8&255),L.adler=0,R.status=B)):R.status=B),R.pending!==0){if(A(L),L.avail_out===0)return R.last_flush=-1,0}else if(L.avail_in===0&&W(G)<=W(N)&&G!==4)return F(L,-5);if(R.status===666&&L.avail_in!==0)return F(L,-5);if(L.avail_in!==0||R.lookahead!==0||G!==0&&R.status!==666){var Z=R.strategy===2?(function(et,ht){for(var lt;;){if(et.lookahead===0&&(x(et),et.lookahead===0)){if(ht===0)return 1;break}if(et.match_length=0,lt=g._tr_tally(et,0,et.window[et.strstart]),et.lookahead--,et.strstart++,lt&&(M(et,!1),et.strm.avail_out===0))return 1}return et.insert=0,ht===4?(M(et,!0),et.strm.avail_out===0?3:4):et.last_lit&&(M(et,!1),et.strm.avail_out===0)?1:2})(R,G):R.strategy===3?(function(et,ht){for(var lt,Q,ot,nt,ut=et.window;;){if(et.lookahead<=z){if(x(et),et.lookahead<=z&&ht===0)return 1;if(et.lookahead===0)break}if(et.match_length=0,et.lookahead>=3&&0<et.strstart&&(Q=ut[ot=et.strstart-1])===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]){nt=et.strstart+z;do;while(Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&Q===ut[++ot]&&ot<nt);et.match_length=z-(nt-ot),et.match_length>et.lookahead&&(et.match_length=et.lookahead)}if(et.match_length>=3?(lt=g._tr_tally(et,1,et.match_length-3),et.lookahead-=et.match_length,et.strstart+=et.match_length,et.match_length=0):(lt=g._tr_tally(et,0,et.window[et.strstart]),et.lookahead--,et.strstart++),lt&&(M(et,!1),et.strm.avail_out===0))return 1}return et.insert=0,ht===4?(M(et,!0),et.strm.avail_out===0?3:4):et.last_lit&&(M(et,!1),et.strm.avail_out===0)?1:2})(R,G):d[R.level].func(R,G);if(Z!==3&&Z!==4||(R.status=666),Z===1||Z===3)return L.avail_out===0&&(R.last_flush=-1),0;if(Z===2&&(G===1?g._tr_align(R):G!==5&&(g._tr_stored_block(R,0,0,!1),G===3&&(q(R.head),R.lookahead===0&&(R.strstart=0,R.block_start=0,R.insert=0))),A(L),L.avail_out===0))return R.last_flush=-1,0}return G!==4?0:R.wrap<=0?1:(R.wrap===2?(k(R,255&L.adler),k(R,L.adler>>8&255),k(R,L.adler>>16&255),k(R,L.adler>>24&255),k(R,255&L.total_in),k(R,L.total_in>>8&255),k(R,L.total_in>>16&255),k(R,L.total_in>>24&255)):(y(R,L.adler>>>16),y(R,65535&L.adler)),A(L),0<R.wrap&&(R.wrap=-R.wrap),R.pending!==0?0:1)},m.deflateEnd=function(L){var G;return L&&L.state?(G=L.state.status)!==42&&G!==69&&G!==73&&G!==91&&G!==103&&G!==B&&G!==666?F(L,D):(L.state=null,G===B?F(L,-3):0):D},m.deflateSetDictionary=function(L,G){var N,R,U,K,rt,Z,et,ht,lt=G.length;if(!L||!L.state||(K=(N=L.state).wrap)===2||K===1&&N.status!==42||N.lookahead)return D;for(K===1&&(L.adler=S(L.adler,G,lt,0)),N.wrap=0,lt>=N.w_size&&(K===0&&(q(N.head),N.strstart=0,N.block_start=0,N.insert=0),ht=new b.Buf8(N.w_size),b.arraySet(ht,G,lt-N.w_size,N.w_size,0),G=ht,lt=N.w_size),rt=L.avail_in,Z=L.next_in,et=L.input,L.avail_in=lt,L.next_in=0,L.input=G,x(N);N.lookahead>=3;){for(R=N.strstart,U=N.lookahead-2;N.ins_h=(N.ins_h<<N.hash_shift^N.window[R+3-1])&N.hash_mask,N.prev[R&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=R,R++,--U;);N.strstart=R,N.lookahead=2,x(N)}return N.strstart+=N.lookahead,N.block_start=N.strstart,N.insert=N.lookahead,N.lookahead=0,N.match_length=N.prev_length=2,N.match_available=0,L.next_in=Z,L.input=et,L.avail_in=rt,N.wrap=K,0},m.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(h,p,m){p.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(h,p,m){p.exports=function(d,b){var g,S,C,I,D,z,P,B,F,W,q,A,M,k,y,w,x,_,T,O,j,V,X,J,L;g=d.state,S=d.next_in,J=d.input,C=S+(d.avail_in-5),I=d.next_out,L=d.output,D=I-(b-d.avail_out),z=I+(d.avail_out-257),P=g.dmax,B=g.wsize,F=g.whave,W=g.wnext,q=g.window,A=g.hold,M=g.bits,k=g.lencode,y=g.distcode,w=(1<<g.lenbits)-1,x=(1<<g.distbits)-1;t:do{M<15&&(A+=J[S++]<<M,M+=8,A+=J[S++]<<M,M+=8),_=k[A&w];e:for(;;){if(A>>>=T=_>>>24,M-=T,(T=_>>>16&255)==0)L[I++]=65535&_;else{if(!(16&T)){if((64&T)==0){_=k[(65535&_)+(A&(1<<T)-1)];continue e}if(32&T){g.mode=12;break t}d.msg="invalid literal/length code",g.mode=30;break t}O=65535&_,(T&=15)&&(M<T&&(A+=J[S++]<<M,M+=8),O+=A&(1<<T)-1,A>>>=T,M-=T),M<15&&(A+=J[S++]<<M,M+=8,A+=J[S++]<<M,M+=8),_=y[A&x];r:for(;;){if(A>>>=T=_>>>24,M-=T,!(16&(T=_>>>16&255))){if((64&T)==0){_=y[(65535&_)+(A&(1<<T)-1)];continue r}d.msg="invalid distance code",g.mode=30;break t}if(j=65535&_,M<(T&=15)&&(A+=J[S++]<<M,(M+=8)<T&&(A+=J[S++]<<M,M+=8)),P<(j+=A&(1<<T)-1)){d.msg="invalid distance too far back",g.mode=30;break t}if(A>>>=T,M-=T,(T=I-D)<j){if(F<(T=j-T)&&g.sane){d.msg="invalid distance too far back",g.mode=30;break t}if(X=q,(V=0)===W){if(V+=B-T,T<O){for(O-=T;L[I++]=q[V++],--T;);V=I-j,X=L}}else if(W<T){if(V+=B+W-T,(T-=W)<O){for(O-=T;L[I++]=q[V++],--T;);if(V=0,W<O){for(O-=T=W;L[I++]=q[V++],--T;);V=I-j,X=L}}}else if(V+=W-T,T<O){for(O-=T;L[I++]=q[V++],--T;);V=I-j,X=L}for(;2<O;)L[I++]=X[V++],L[I++]=X[V++],L[I++]=X[V++],O-=3;O&&(L[I++]=X[V++],1<O&&(L[I++]=X[V++]))}else{for(V=I-j;L[I++]=L[V++],L[I++]=L[V++],L[I++]=L[V++],2<(O-=3););O&&(L[I++]=L[V++],1<O&&(L[I++]=L[V++]))}break}}break}}while(S<C&&I<z);S-=O=M>>3,A&=(1<<(M-=O<<3))-1,d.next_in=S,d.next_out=I,d.avail_in=S<C?C-S+5:5-(S-C),d.avail_out=I<z?z-I+257:257-(I-z),g.hold=A,g.bits=M}},{}],49:[function(h,p,m){var d=h("../utils/common"),b=h("./adler32"),g=h("./crc32"),S=h("./inffast"),C=h("./inftrees"),I=-2;function D(w){return(w>>>24&255)+(w>>>8&65280)+((65280&w)<<8)+((255&w)<<24)}function z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new d.Buf16(320),this.work=new d.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function P(w){var x;return w&&w.state?(x=w.state,w.total_in=w.total_out=x.total=0,w.msg="",x.wrap&&(w.adler=1&x.wrap),x.mode=1,x.last=0,x.havedict=0,x.dmax=32768,x.head=null,x.hold=0,x.bits=0,x.lencode=x.lendyn=new d.Buf32(852),x.distcode=x.distdyn=new d.Buf32(592),x.sane=1,x.back=-1,0):I}function B(w){var x;return w&&w.state?((x=w.state).wsize=0,x.whave=0,x.wnext=0,P(w)):I}function F(w,x){var _,T;return w&&w.state?(T=w.state,x<0?(_=0,x=-x):(_=1+(x>>4),x<48&&(x&=15)),x&&(x<8||15<x)?I:(T.window!==null&&T.wbits!==x&&(T.window=null),T.wrap=_,T.wbits=x,B(w))):I}function W(w,x){var _,T;return w?(T=new z,(w.state=T).window=null,(_=F(w,x))!==0&&(w.state=null),_):I}var q,A,M=!0;function k(w){if(M){var x;for(q=new d.Buf32(512),A=new d.Buf32(32),x=0;x<144;)w.lens[x++]=8;for(;x<256;)w.lens[x++]=9;for(;x<280;)w.lens[x++]=7;for(;x<288;)w.lens[x++]=8;for(C(1,w.lens,0,288,q,0,w.work,{bits:9}),x=0;x<32;)w.lens[x++]=5;C(2,w.lens,0,32,A,0,w.work,{bits:5}),M=!1}w.lencode=q,w.lenbits=9,w.distcode=A,w.distbits=5}function y(w,x,_,T){var O,j=w.state;return j.window===null&&(j.wsize=1<<j.wbits,j.wnext=0,j.whave=0,j.window=new d.Buf8(j.wsize)),T>=j.wsize?(d.arraySet(j.window,x,_-j.wsize,j.wsize,0),j.wnext=0,j.whave=j.wsize):(T<(O=j.wsize-j.wnext)&&(O=T),d.arraySet(j.window,x,_-T,O,j.wnext),(T-=O)?(d.arraySet(j.window,x,_-T,T,0),j.wnext=T,j.whave=j.wsize):(j.wnext+=O,j.wnext===j.wsize&&(j.wnext=0),j.whave<j.wsize&&(j.whave+=O))),0}m.inflateReset=B,m.inflateReset2=F,m.inflateResetKeep=P,m.inflateInit=function(w){return W(w,15)},m.inflateInit2=W,m.inflate=function(w,x){var _,T,O,j,V,X,J,L,G,N,R,U,K,rt,Z,et,ht,lt,Q,ot,nt,ut,ct,ft,mt=0,gt=new d.Buf8(4),xt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!w||!w.state||!w.output||!w.input&&w.avail_in!==0)return I;(_=w.state).mode===12&&(_.mode=13),V=w.next_out,O=w.output,J=w.avail_out,j=w.next_in,T=w.input,X=w.avail_in,L=_.hold,G=_.bits,N=X,R=J,ut=0;t:for(;;)switch(_.mode){case 1:if(_.wrap===0){_.mode=13;break}for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(2&_.wrap&&L===35615){gt[_.check=0]=255&L,gt[1]=L>>>8&255,_.check=g(_.check,gt,2,0),G=L=0,_.mode=2;break}if(_.flags=0,_.head&&(_.head.done=!1),!(1&_.wrap)||(((255&L)<<8)+(L>>8))%31){w.msg="incorrect header check",_.mode=30;break}if((15&L)!=8){w.msg="unknown compression method",_.mode=30;break}if(G-=4,nt=8+(15&(L>>>=4)),_.wbits===0)_.wbits=nt;else if(nt>_.wbits){w.msg="invalid window size",_.mode=30;break}_.dmax=1<<nt,w.adler=_.check=1,_.mode=512&L?10:12,G=L=0;break;case 2:for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(_.flags=L,(255&_.flags)!=8){w.msg="unknown compression method",_.mode=30;break}if(57344&_.flags){w.msg="unknown header flags set",_.mode=30;break}_.head&&(_.head.text=L>>8&1),512&_.flags&&(gt[0]=255&L,gt[1]=L>>>8&255,_.check=g(_.check,gt,2,0)),G=L=0,_.mode=3;case 3:for(;G<32;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.head&&(_.head.time=L),512&_.flags&&(gt[0]=255&L,gt[1]=L>>>8&255,gt[2]=L>>>16&255,gt[3]=L>>>24&255,_.check=g(_.check,gt,4,0)),G=L=0,_.mode=4;case 4:for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.head&&(_.head.xflags=255&L,_.head.os=L>>8),512&_.flags&&(gt[0]=255&L,gt[1]=L>>>8&255,_.check=g(_.check,gt,2,0)),G=L=0,_.mode=5;case 5:if(1024&_.flags){for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.length=L,_.head&&(_.head.extra_len=L),512&_.flags&&(gt[0]=255&L,gt[1]=L>>>8&255,_.check=g(_.check,gt,2,0)),G=L=0}else _.head&&(_.head.extra=null);_.mode=6;case 6:if(1024&_.flags&&(X<(U=_.length)&&(U=X),U&&(_.head&&(nt=_.head.extra_len-_.length,_.head.extra||(_.head.extra=new Array(_.head.extra_len)),d.arraySet(_.head.extra,T,j,U,nt)),512&_.flags&&(_.check=g(_.check,T,U,j)),X-=U,j+=U,_.length-=U),_.length))break t;_.length=0,_.mode=7;case 7:if(2048&_.flags){if(X===0)break t;for(U=0;nt=T[j+U++],_.head&&nt&&_.length<65536&&(_.head.name+=String.fromCharCode(nt)),nt&&U<X;);if(512&_.flags&&(_.check=g(_.check,T,U,j)),X-=U,j+=U,nt)break t}else _.head&&(_.head.name=null);_.length=0,_.mode=8;case 8:if(4096&_.flags){if(X===0)break t;for(U=0;nt=T[j+U++],_.head&&nt&&_.length<65536&&(_.head.comment+=String.fromCharCode(nt)),nt&&U<X;);if(512&_.flags&&(_.check=g(_.check,T,U,j)),X-=U,j+=U,nt)break t}else _.head&&(_.head.comment=null);_.mode=9;case 9:if(512&_.flags){for(;G<16;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(L!==(65535&_.check)){w.msg="header crc mismatch",_.mode=30;break}G=L=0}_.head&&(_.head.hcrc=_.flags>>9&1,_.head.done=!0),w.adler=_.check=0,_.mode=12;break;case 10:for(;G<32;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}w.adler=_.check=D(L),G=L=0,_.mode=11;case 11:if(_.havedict===0)return w.next_out=V,w.avail_out=J,w.next_in=j,w.avail_in=X,_.hold=L,_.bits=G,2;w.adler=_.check=1,_.mode=12;case 12:if(x===5||x===6)break t;case 13:if(_.last){L>>>=7&G,G-=7&G,_.mode=27;break}for(;G<3;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}switch(_.last=1&L,G-=1,3&(L>>>=1)){case 0:_.mode=14;break;case 1:if(k(_),_.mode=20,x!==6)break;L>>>=2,G-=2;break t;case 2:_.mode=17;break;case 3:w.msg="invalid block type",_.mode=30}L>>>=2,G-=2;break;case 14:for(L>>>=7&G,G-=7&G;G<32;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if((65535&L)!=(L>>>16^65535)){w.msg="invalid stored block lengths",_.mode=30;break}if(_.length=65535&L,G=L=0,_.mode=15,x===6)break t;case 15:_.mode=16;case 16:if(U=_.length){if(X<U&&(U=X),J<U&&(U=J),U===0)break t;d.arraySet(O,T,j,U,V),X-=U,j+=U,J-=U,V+=U,_.length-=U;break}_.mode=12;break;case 17:for(;G<14;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(_.nlen=257+(31&L),L>>>=5,G-=5,_.ndist=1+(31&L),L>>>=5,G-=5,_.ncode=4+(15&L),L>>>=4,G-=4,286<_.nlen||30<_.ndist){w.msg="too many length or distance symbols",_.mode=30;break}_.have=0,_.mode=18;case 18:for(;_.have<_.ncode;){for(;G<3;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.lens[xt[_.have++]]=7&L,L>>>=3,G-=3}for(;_.have<19;)_.lens[xt[_.have++]]=0;if(_.lencode=_.lendyn,_.lenbits=7,ct={bits:_.lenbits},ut=C(0,_.lens,0,19,_.lencode,0,_.work,ct),_.lenbits=ct.bits,ut){w.msg="invalid code lengths set",_.mode=30;break}_.have=0,_.mode=19;case 19:for(;_.have<_.nlen+_.ndist;){for(;et=(mt=_.lencode[L&(1<<_.lenbits)-1])>>>16&255,ht=65535&mt,!((Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(ht<16)L>>>=Z,G-=Z,_.lens[_.have++]=ht;else{if(ht===16){for(ft=Z+2;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(L>>>=Z,G-=Z,_.have===0){w.msg="invalid bit length repeat",_.mode=30;break}nt=_.lens[_.have-1],U=3+(3&L),L>>>=2,G-=2}else if(ht===17){for(ft=Z+3;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}G-=Z,nt=0,U=3+(7&(L>>>=Z)),L>>>=3,G-=3}else{for(ft=Z+7;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}G-=Z,nt=0,U=11+(127&(L>>>=Z)),L>>>=7,G-=7}if(_.have+U>_.nlen+_.ndist){w.msg="invalid bit length repeat",_.mode=30;break}for(;U--;)_.lens[_.have++]=nt}}if(_.mode===30)break;if(_.lens[256]===0){w.msg="invalid code -- missing end-of-block",_.mode=30;break}if(_.lenbits=9,ct={bits:_.lenbits},ut=C(1,_.lens,0,_.nlen,_.lencode,0,_.work,ct),_.lenbits=ct.bits,ut){w.msg="invalid literal/lengths set",_.mode=30;break}if(_.distbits=6,_.distcode=_.distdyn,ct={bits:_.distbits},ut=C(2,_.lens,_.nlen,_.ndist,_.distcode,0,_.work,ct),_.distbits=ct.bits,ut){w.msg="invalid distances set",_.mode=30;break}if(_.mode=20,x===6)break t;case 20:_.mode=21;case 21:if(6<=X&&258<=J){w.next_out=V,w.avail_out=J,w.next_in=j,w.avail_in=X,_.hold=L,_.bits=G,S(w,R),V=w.next_out,O=w.output,J=w.avail_out,j=w.next_in,T=w.input,X=w.avail_in,L=_.hold,G=_.bits,_.mode===12&&(_.back=-1);break}for(_.back=0;et=(mt=_.lencode[L&(1<<_.lenbits)-1])>>>16&255,ht=65535&mt,!((Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(et&&(240&et)==0){for(lt=Z,Q=et,ot=ht;et=(mt=_.lencode[ot+((L&(1<<lt+Q)-1)>>lt)])>>>16&255,ht=65535&mt,!(lt+(Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}L>>>=lt,G-=lt,_.back+=lt}if(L>>>=Z,G-=Z,_.back+=Z,_.length=ht,et===0){_.mode=26;break}if(32&et){_.back=-1,_.mode=12;break}if(64&et){w.msg="invalid literal/length code",_.mode=30;break}_.extra=15&et,_.mode=22;case 22:if(_.extra){for(ft=_.extra;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.length+=L&(1<<_.extra)-1,L>>>=_.extra,G-=_.extra,_.back+=_.extra}_.was=_.length,_.mode=23;case 23:for(;et=(mt=_.distcode[L&(1<<_.distbits)-1])>>>16&255,ht=65535&mt,!((Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if((240&et)==0){for(lt=Z,Q=et,ot=ht;et=(mt=_.distcode[ot+((L&(1<<lt+Q)-1)>>lt)])>>>16&255,ht=65535&mt,!(lt+(Z=mt>>>24)<=G);){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}L>>>=lt,G-=lt,_.back+=lt}if(L>>>=Z,G-=Z,_.back+=Z,64&et){w.msg="invalid distance code",_.mode=30;break}_.offset=ht,_.extra=15&et,_.mode=24;case 24:if(_.extra){for(ft=_.extra;G<ft;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}_.offset+=L&(1<<_.extra)-1,L>>>=_.extra,G-=_.extra,_.back+=_.extra}if(_.offset>_.dmax){w.msg="invalid distance too far back",_.mode=30;break}_.mode=25;case 25:if(J===0)break t;if(U=R-J,_.offset>U){if((U=_.offset-U)>_.whave&&_.sane){w.msg="invalid distance too far back",_.mode=30;break}K=U>_.wnext?(U-=_.wnext,_.wsize-U):_.wnext-U,U>_.length&&(U=_.length),rt=_.window}else rt=O,K=V-_.offset,U=_.length;for(J<U&&(U=J),J-=U,_.length-=U;O[V++]=rt[K++],--U;);_.length===0&&(_.mode=21);break;case 26:if(J===0)break t;O[V++]=_.length,J--,_.mode=21;break;case 27:if(_.wrap){for(;G<32;){if(X===0)break t;X--,L|=T[j++]<<G,G+=8}if(R-=J,w.total_out+=R,_.total+=R,R&&(w.adler=_.check=_.flags?g(_.check,O,R,V-R):b(_.check,O,R,V-R)),R=J,(_.flags?L:D(L))!==_.check){w.msg="incorrect data check",_.mode=30;break}G=L=0}_.mode=28;case 28:if(_.wrap&&_.flags){for(;G<32;){if(X===0)break t;X--,L+=T[j++]<<G,G+=8}if(L!==(4294967295&_.total)){w.msg="incorrect length check",_.mode=30;break}G=L=0}_.mode=29;case 29:ut=1;break t;case 30:ut=-3;break t;case 31:return-4;case 32:default:return I}return w.next_out=V,w.avail_out=J,w.next_in=j,w.avail_in=X,_.hold=L,_.bits=G,(_.wsize||R!==w.avail_out&&_.mode<30&&(_.mode<27||x!==4))&&y(w,w.output,w.next_out,R-w.avail_out)?(_.mode=31,-4):(N-=w.avail_in,R-=w.avail_out,w.total_in+=N,w.total_out+=R,_.total+=R,_.wrap&&R&&(w.adler=_.check=_.flags?g(_.check,O,R,w.next_out-R):b(_.check,O,R,w.next_out-R)),w.data_type=_.bits+(_.last?64:0)+(_.mode===12?128:0)+(_.mode===20||_.mode===15?256:0),(N==0&&R===0||x===4)&&ut===0&&(ut=-5),ut)},m.inflateEnd=function(w){if(!w||!w.state)return I;var x=w.state;return x.window&&(x.window=null),w.state=null,0},m.inflateGetHeader=function(w,x){var _;return w&&w.state?(2&(_=w.state).wrap)==0?I:((_.head=x).done=!1,0):I},m.inflateSetDictionary=function(w,x){var _,T=x.length;return w&&w.state?(_=w.state).wrap!==0&&_.mode!==11?I:_.mode===11&&b(1,x,T,0)!==_.check?-3:y(w,x,T,T)?(_.mode=31,-4):(_.havedict=1,0):I},m.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(h,p,m){var d=h("../utils/common"),b=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],S=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],C=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];p.exports=function(I,D,z,P,B,F,W,q){var A,M,k,y,w,x,_,T,O,j=q.bits,V=0,X=0,J=0,L=0,G=0,N=0,R=0,U=0,K=0,rt=0,Z=null,et=0,ht=new d.Buf16(16),lt=new d.Buf16(16),Q=null,ot=0;for(V=0;V<=15;V++)ht[V]=0;for(X=0;X<P;X++)ht[D[z+X]]++;for(G=j,L=15;1<=L&&ht[L]===0;L--);if(L<G&&(G=L),L===0)return B[F++]=20971520,B[F++]=20971520,q.bits=1,0;for(J=1;J<L&&ht[J]===0;J++);for(G<J&&(G=J),V=U=1;V<=15;V++)if(U<<=1,(U-=ht[V])<0)return-1;if(0<U&&(I===0||L!==1))return-1;for(lt[1]=0,V=1;V<15;V++)lt[V+1]=lt[V]+ht[V];for(X=0;X<P;X++)D[z+X]!==0&&(W[lt[D[z+X]]++]=X);if(x=I===0?(Z=Q=W,19):I===1?(Z=b,et-=257,Q=g,ot-=257,256):(Z=S,Q=C,-1),V=J,w=F,R=X=rt=0,k=-1,y=(K=1<<(N=G))-1,I===1&&852<K||I===2&&592<K)return 1;for(;;){for(_=V-R,O=W[X]<x?(T=0,W[X]):W[X]>x?(T=Q[ot+W[X]],Z[et+W[X]]):(T=96,0),A=1<<V-R,J=M=1<<N;B[w+(rt>>R)+(M-=A)]=_<<24|T<<16|O|0,M!==0;);for(A=1<<V-1;rt&A;)A>>=1;if(A!==0?(rt&=A-1,rt+=A):rt=0,X++,--ht[V]==0){if(V===L)break;V=D[z+W[X]]}if(G<V&&(rt&y)!==k){for(R===0&&(R=G),w+=J,U=1<<(N=V-R);N+R<L&&!((U-=ht[N+R])<=0);)N++,U<<=1;if(K+=1<<N,I===1&&852<K||I===2&&592<K)return 1;B[k=rt&y]=G<<24|N<<16|w-F|0}}return rt!==0&&(B[w+rt]=V-R<<24|64<<16|0),q.bits=G,0}},{"../utils/common":41}],51:[function(h,p,m){p.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(h,p,m){var d=h("../utils/common");function b(Q){for(var ot=Q.length;0<=--ot;)Q[ot]=0}var g=256,S=286,C=30,I=15,D=[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],z=[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],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(576);b(F);var W=new Array(60);b(W);var q=new Array(512);b(q);var A=new Array(256);b(A);var M=new Array(29);b(M);var k,y,w,x=new Array(C);function _(Q,ot,nt,ut,ct){this.static_tree=Q,this.extra_bits=ot,this.extra_base=nt,this.elems=ut,this.max_length=ct,this.has_stree=Q&&Q.length}function T(Q,ot){this.dyn_tree=Q,this.max_code=0,this.stat_desc=ot}function O(Q){return Q<256?q[Q]:q[256+(Q>>>7)]}function j(Q,ot){Q.pending_buf[Q.pending++]=255&ot,Q.pending_buf[Q.pending++]=ot>>>8&255}function V(Q,ot,nt){Q.bi_valid>16-nt?(Q.bi_buf|=ot<<Q.bi_valid&65535,j(Q,Q.bi_buf),Q.bi_buf=ot>>16-Q.bi_valid,Q.bi_valid+=nt-16):(Q.bi_buf|=ot<<Q.bi_valid&65535,Q.bi_valid+=nt)}function X(Q,ot,nt){V(Q,nt[2*ot],nt[2*ot+1])}function J(Q,ot){for(var nt=0;nt|=1&Q,Q>>>=1,nt<<=1,0<--ot;);return nt>>>1}function L(Q,ot,nt){var ut,ct,ft=new Array(16),mt=0;for(ut=1;ut<=I;ut++)ft[ut]=mt=mt+nt[ut-1]<<1;for(ct=0;ct<=ot;ct++){var gt=Q[2*ct+1];gt!==0&&(Q[2*ct]=J(ft[gt]++,gt))}}function G(Q){var ot;for(ot=0;ot<S;ot++)Q.dyn_ltree[2*ot]=0;for(ot=0;ot<C;ot++)Q.dyn_dtree[2*ot]=0;for(ot=0;ot<19;ot++)Q.bl_tree[2*ot]=0;Q.dyn_ltree[512]=1,Q.opt_len=Q.static_len=0,Q.last_lit=Q.matches=0}function N(Q){8<Q.bi_valid?j(Q,Q.bi_buf):0<Q.bi_valid&&(Q.pending_buf[Q.pending++]=Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0}function R(Q,ot,nt,ut){var ct=2*ot,ft=2*nt;return Q[ct]<Q[ft]||Q[ct]===Q[ft]&&ut[ot]<=ut[nt]}function U(Q,ot,nt){for(var ut=Q.heap[nt],ct=nt<<1;ct<=Q.heap_len&&(ct<Q.heap_len&&R(ot,Q.heap[ct+1],Q.heap[ct],Q.depth)&&ct++,!R(ot,ut,Q.heap[ct],Q.depth));)Q.heap[nt]=Q.heap[ct],nt=ct,ct<<=1;Q.heap[nt]=ut}function K(Q,ot,nt){var ut,ct,ft,mt,gt=0;if(Q.last_lit!==0)for(;ut=Q.pending_buf[Q.d_buf+2*gt]<<8|Q.pending_buf[Q.d_buf+2*gt+1],ct=Q.pending_buf[Q.l_buf+gt],gt++,ut===0?X(Q,ct,ot):(X(Q,(ft=A[ct])+g+1,ot),(mt=D[ft])!==0&&V(Q,ct-=M[ft],mt),X(Q,ft=O(--ut),nt),(mt=z[ft])!==0&&V(Q,ut-=x[ft],mt)),gt<Q.last_lit;);X(Q,256,ot)}function rt(Q,ot){var nt,ut,ct,ft=ot.dyn_tree,mt=ot.stat_desc.static_tree,gt=ot.stat_desc.has_stree,xt=ot.stat_desc.elems,Nt=-1;for(Q.heap_len=0,Q.heap_max=573,nt=0;nt<xt;nt++)ft[2*nt]!==0?(Q.heap[++Q.heap_len]=Nt=nt,Q.depth[nt]=0):ft[2*nt+1]=0;for(;Q.heap_len<2;)ft[2*(ct=Q.heap[++Q.heap_len]=Nt<2?++Nt:0)]=1,Q.depth[ct]=0,Q.opt_len--,gt&&(Q.static_len-=mt[2*ct+1]);for(ot.max_code=Nt,nt=Q.heap_len>>1;1<=nt;nt--)U(Q,ft,nt);for(ct=xt;nt=Q.heap[1],Q.heap[1]=Q.heap[Q.heap_len--],U(Q,ft,1),ut=Q.heap[1],Q.heap[--Q.heap_max]=nt,Q.heap[--Q.heap_max]=ut,ft[2*ct]=ft[2*nt]+ft[2*ut],Q.depth[ct]=(Q.depth[nt]>=Q.depth[ut]?Q.depth[nt]:Q.depth[ut])+1,ft[2*nt+1]=ft[2*ut+1]=ct,Q.heap[1]=ct++,U(Q,ft,1),2<=Q.heap_len;);Q.heap[--Q.heap_max]=Q.heap[1],(function(It,At){var Ut,Ht,zt,Xt,jt,Ct,$t=At.dyn_tree,qt=At.max_code,Dt=At.stat_desc.static_tree,fe=At.stat_desc.has_stree,ke=At.stat_desc.extra_bits,Yt=At.stat_desc.extra_base,we=At.stat_desc.max_length,ue=0;for(Xt=0;Xt<=I;Xt++)It.bl_count[Xt]=0;for($t[2*It.heap[It.heap_max]+1]=0,Ut=It.heap_max+1;Ut<573;Ut++)we<(Xt=$t[2*$t[2*(Ht=It.heap[Ut])+1]+1]+1)&&(Xt=we,ue++),$t[2*Ht+1]=Xt,qt<Ht||(It.bl_count[Xt]++,jt=0,Yt<=Ht&&(jt=ke[Ht-Yt]),Ct=$t[2*Ht],It.opt_len+=Ct*(Xt+jt),fe&&(It.static_len+=Ct*(Dt[2*Ht+1]+jt)));if(ue!==0){do{for(Xt=we-1;It.bl_count[Xt]===0;)Xt--;It.bl_count[Xt]--,It.bl_count[Xt+1]+=2,It.bl_count[we]--,ue-=2}while(0<ue);for(Xt=we;Xt!==0;Xt--)for(Ht=It.bl_count[Xt];Ht!==0;)qt<(zt=It.heap[--Ut])||($t[2*zt+1]!==Xt&&(It.opt_len+=(Xt-$t[2*zt+1])*$t[2*zt],$t[2*zt+1]=Xt),Ht--)}})(Q,ot),L(ft,Nt,Q.bl_count)}function Z(Q,ot,nt){var ut,ct,ft=-1,mt=ot[1],gt=0,xt=7,Nt=4;for(mt===0&&(xt=138,Nt=3),ot[2*(nt+1)+1]=65535,ut=0;ut<=nt;ut++)ct=mt,mt=ot[2*(ut+1)+1],++gt<xt&&ct===mt||(gt<Nt?Q.bl_tree[2*ct]+=gt:ct!==0?(ct!==ft&&Q.bl_tree[2*ct]++,Q.bl_tree[32]++):gt<=10?Q.bl_tree[34]++:Q.bl_tree[36]++,ft=ct,Nt=(gt=0)===mt?(xt=138,3):ct===mt?(xt=6,3):(xt=7,4))}function et(Q,ot,nt){var ut,ct,ft=-1,mt=ot[1],gt=0,xt=7,Nt=4;for(mt===0&&(xt=138,Nt=3),ut=0;ut<=nt;ut++)if(ct=mt,mt=ot[2*(ut+1)+1],!(++gt<xt&&ct===mt)){if(gt<Nt)for(;X(Q,ct,Q.bl_tree),--gt!=0;);else ct!==0?(ct!==ft&&(X(Q,ct,Q.bl_tree),gt--),X(Q,16,Q.bl_tree),V(Q,gt-3,2)):gt<=10?(X(Q,17,Q.bl_tree),V(Q,gt-3,3)):(X(Q,18,Q.bl_tree),V(Q,gt-11,7));ft=ct,Nt=(gt=0)===mt?(xt=138,3):ct===mt?(xt=6,3):(xt=7,4)}}b(x);var ht=!1;function lt(Q,ot,nt,ut){V(Q,0+(ut?1:0),3),(function(ct,ft,mt,gt){N(ct),j(ct,mt),j(ct,~mt),d.arraySet(ct.pending_buf,ct.window,ft,mt,ct.pending),ct.pending+=mt})(Q,ot,nt)}m._tr_init=function(Q){ht||((function(){var ot,nt,ut,ct,ft,mt=new Array(16);for(ct=ut=0;ct<28;ct++)for(M[ct]=ut,ot=0;ot<1<<D[ct];ot++)A[ut++]=ct;for(A[ut-1]=ct,ct=ft=0;ct<16;ct++)for(x[ct]=ft,ot=0;ot<1<<z[ct];ot++)q[ft++]=ct;for(ft>>=7;ct<C;ct++)for(x[ct]=ft<<7,ot=0;ot<1<<z[ct]-7;ot++)q[256+ft++]=ct;for(nt=0;nt<=I;nt++)mt[nt]=0;for(ot=0;ot<=143;)F[2*ot+1]=8,ot++,mt[8]++;for(;ot<=255;)F[2*ot+1]=9,ot++,mt[9]++;for(;ot<=279;)F[2*ot+1]=7,ot++,mt[7]++;for(;ot<=287;)F[2*ot+1]=8,ot++,mt[8]++;for(L(F,287,mt),ot=0;ot<C;ot++)W[2*ot+1]=5,W[2*ot]=J(ot,5);k=new _(F,D,257,S,I),y=new _(W,z,0,C,I),w=new _(new Array(0),P,0,19,7)})(),ht=!0),Q.l_desc=new T(Q.dyn_ltree,k),Q.d_desc=new T(Q.dyn_dtree,y),Q.bl_desc=new T(Q.bl_tree,w),Q.bi_buf=0,Q.bi_valid=0,G(Q)},m._tr_stored_block=lt,m._tr_flush_block=function(Q,ot,nt,ut){var ct,ft,mt=0;0<Q.level?(Q.strm.data_type===2&&(Q.strm.data_type=(function(gt){var xt,Nt=4093624447;for(xt=0;xt<=31;xt++,Nt>>>=1)if(1&Nt&>.dyn_ltree[2*xt]!==0)return 0;if(gt.dyn_ltree[18]!==0||gt.dyn_ltree[20]!==0||gt.dyn_ltree[26]!==0)return 1;for(xt=32;xt<g;xt++)if(gt.dyn_ltree[2*xt]!==0)return 1;return 0})(Q)),rt(Q,Q.l_desc),rt(Q,Q.d_desc),mt=(function(gt){var xt;for(Z(gt,gt.dyn_ltree,gt.l_desc.max_code),Z(gt,gt.dyn_dtree,gt.d_desc.max_code),rt(gt,gt.bl_desc),xt=18;3<=xt&>.bl_tree[2*B[xt]+1]===0;xt--);return gt.opt_len+=3*(xt+1)+5+5+4,xt})(Q),ct=Q.opt_len+3+7>>>3,(ft=Q.static_len+3+7>>>3)<=ct&&(ct=ft)):ct=ft=nt+5,nt+4<=ct&&ot!==-1?lt(Q,ot,nt,ut):Q.strategy===4||ft===ct?(V(Q,2+(ut?1:0),3),K(Q,F,W)):(V(Q,4+(ut?1:0),3),(function(gt,xt,Nt,It){var At;for(V(gt,xt-257,5),V(gt,Nt-1,5),V(gt,It-4,4),At=0;At<It;At++)V(gt,gt.bl_tree[2*B[At]+1],3);et(gt,gt.dyn_ltree,xt-1),et(gt,gt.dyn_dtree,Nt-1)})(Q,Q.l_desc.max_code+1,Q.d_desc.max_code+1,mt+1),K(Q,Q.dyn_ltree,Q.dyn_dtree)),G(Q),ut&&N(Q)},m._tr_tally=function(Q,ot,nt){return Q.pending_buf[Q.d_buf+2*Q.last_lit]=ot>>>8&255,Q.pending_buf[Q.d_buf+2*Q.last_lit+1]=255&ot,Q.pending_buf[Q.l_buf+Q.last_lit]=255&nt,Q.last_lit++,ot===0?Q.dyn_ltree[2*nt]++:(Q.matches++,ot--,Q.dyn_ltree[2*(A[nt]+g+1)]++,Q.dyn_dtree[2*O(ot)]++),Q.last_lit===Q.lit_bufsize-1},m._tr_align=function(Q){V(Q,2,3),X(Q,256,F),(function(ot){ot.bi_valid===16?(j(ot,ot.bi_buf),ot.bi_buf=0,ot.bi_valid=0):8<=ot.bi_valid&&(ot.pending_buf[ot.pending++]=255&ot.bi_buf,ot.bi_buf>>=8,ot.bi_valid-=8)})(Q)}},{"../utils/common":41}],53:[function(h,p,m){p.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(h,p,m){(function(d){(function(b,g){if(!b.setImmediate){var S,C,I,D,z=1,P={},B=!1,F=b.document,W=Object.getPrototypeOf&&Object.getPrototypeOf(b);W=W&&W.setTimeout?W:b,S={}.toString.call(b.process)==="[object process]"?function(k){o.nextTick((function(){A(k)}))}:(function(){if(b.postMessage&&!b.importScripts){var k=!0,y=b.onmessage;return b.onmessage=function(){k=!1},b.postMessage("","*"),b.onmessage=y,k}})()?(D="setImmediate$"+Math.random()+"$",b.addEventListener?b.addEventListener("message",M,!1):b.attachEvent("onmessage",M),function(k){b.postMessage(D+k,"*")}):b.MessageChannel?((I=new MessageChannel).port1.onmessage=function(k){A(k.data)},function(k){I.port2.postMessage(k)}):F&&"onreadystatechange"in F.createElement("script")?(C=F.documentElement,function(k){var y=F.createElement("script");y.onreadystatechange=function(){A(k),y.onreadystatechange=null,C.removeChild(y),y=null},C.appendChild(y)}):function(k){setTimeout(A,0,k)},W.setImmediate=function(k){typeof k!="function"&&(k=new Function(""+k));for(var y=new Array(arguments.length-1),w=0;w<y.length;w++)y[w]=arguments[w+1];var x={callback:k,args:y};return P[z]=x,S(z),z++},W.clearImmediate=q}function q(k){delete P[k]}function A(k){if(B)setTimeout(A,0,k);else{var y=P[k];if(y){B=!0;try{(function(w){var x=w.callback,_=w.args;switch(_.length){case 0:x();break;case 1:x(_[0]);break;case 2:x(_[0],_[1]);break;case 3:x(_[0],_[1],_[2]);break;default:x.apply(void 0,_)}})(y)}finally{q(k),B=!1}}}}function M(k){k.source===b&&typeof k.data=="string"&&k.data.indexOf(D)===0&&A(+k.data.slice(D.length))}})(typeof self>"u"?d===void 0?this:d:self)}).call(this,r!==void 0?r:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,t("_process"),typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],t("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(t,l,c){(function(o){(function(){var r=/[\\^$.*+?()[\]{}|]/g,n=RegExp(r.source),s=typeof o=="object"&&o&&o.Object===Object&&o,e=typeof self=="object"&&self&&self.Object===Object&&self,i=s||e||Function("return this")(),u=Object.prototype.toString,a=i.Symbol,h=a?a.prototype:void 0,p=h?h.toString:void 0;function m(d){if(typeof d=="string")return d;if((function(g){return typeof g=="symbol"||(function(S){return!!S&&typeof S=="object"})(g)&&u.call(g)=="[object Symbol]"})(d))return p?p.call(d):"";var b=d+"";return b=="0"&&1/d==-1/0?"-0":b}l.exports=function(d){var b;return(d=(b=d)==null?"":m(b))&&n.test(d)?d.replace(r,"\\$&"):d}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(t,l,c){(function(o){(function(){var r="[object Arguments]",n="[object Map]",s="[object Object]",e="[object Set]",i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,a=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,p=/\\(\\)?/g,m=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[r]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b["[object Function]"]=b[n]=b["[object Number]"]=b[s]=b["[object RegExp]"]=b[e]=b["[object String]"]=b["[object WeakMap]"]=!1;var g=typeof o=="object"&&o&&o.Object===Object&&o,S=typeof self=="object"&&self&&self.Object===Object&&self,C=g||S||Function("return this")(),I=typeof c=="object"&&c&&!c.nodeType&&c,D=I&&typeof l=="object"&&l&&!l.nodeType&&l,z=D&&D.exports===I&&g.process,P=(function(){try{return z&&z.binding("util")}catch{}})(),B=P&&P.isTypedArray;function F(st,pt,wt,_t){for(var Bt=-1,Et=st?st.length:0;++Bt<Et;){var Rt=st[Bt];pt(_t,Rt,wt(Rt),st)}return _t}function W(st,pt){for(var wt=-1,_t=st?st.length:0;++wt<_t;)if(pt(st[wt],wt,st))return!0;return!1}function q(st){var pt=!1;if(st!=null&&typeof st.toString!="function")try{pt=!!(st+"")}catch{}return pt}function A(st){var pt=-1,wt=Array(st.size);return st.forEach((function(_t,Bt){wt[++pt]=[Bt,_t]})),wt}function M(st){var pt=-1,wt=Array(st.size);return st.forEach((function(_t){wt[++pt]=_t})),wt}var k,y,w,x=Array.prototype,_=Function.prototype,T=Object.prototype,O=C["__core-js_shared__"],j=(k=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"",V=_.toString,X=T.hasOwnProperty,J=T.toString,L=RegExp("^"+V.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=C.Symbol,N=C.Uint8Array,R=T.propertyIsEnumerable,U=x.splice,K=(y=Object.keys,w=Object,function(st){return y(w(st))}),rt=Qt(C,"DataView"),Z=Qt(C,"Map"),et=Qt(C,"Promise"),ht=Qt(C,"Set"),lt=Qt(C,"WeakMap"),Q=Qt(Object,"create"),ot=dt(rt),nt=dt(Z),ut=dt(et),ct=dt(ht),ft=dt(lt),mt=G?G.prototype:void 0,gt=mt?mt.valueOf:void 0,xt=mt?mt.toString:void 0;function Nt(st){var pt=-1,wt=st?st.length:0;for(this.clear();++pt<wt;){var _t=st[pt];this.set(_t[0],_t[1])}}function It(st){var pt=-1,wt=st?st.length:0;for(this.clear();++pt<wt;){var _t=st[pt];this.set(_t[0],_t[1])}}function At(st){var pt=-1,wt=st?st.length:0;for(this.clear();++pt<wt;){var _t=st[pt];this.set(_t[0],_t[1])}}function Ut(st){var pt=-1,wt=st?st.length:0;for(this.__data__=new At;++pt<wt;)this.add(st[pt])}function Ht(st){this.__data__=new It(st)}function zt(st,pt){var wt=Zt(st)||ee(st)?(function(Rt,me){for(var oe=-1,he=Array(Rt);++oe<Rt;)he[oe]=me(oe);return he})(st.length,String):[],_t=wt.length,Bt=!!_t;for(var Et in st)!X.call(st,Et)||Bt&&(Et=="length"||Te(Et,_t))||wt.push(Et);return wt}function Xt(st,pt){for(var wt=st.length;wt--;)if(Mt(st[wt][0],pt))return wt;return-1}function jt(st,pt,wt,_t){return $t(st,(function(Bt,Et,Rt){pt(_t,Bt,wt(Bt),Rt)})),_t}Nt.prototype.clear=function(){this.__data__=Q?Q(null):{}},Nt.prototype.delete=function(st){return this.has(st)&&delete this.__data__[st]},Nt.prototype.get=function(st){var pt=this.__data__;if(Q){var wt=pt[st];return wt==="__lodash_hash_undefined__"?void 0:wt}return X.call(pt,st)?pt[st]:void 0},Nt.prototype.has=function(st){var pt=this.__data__;return Q?pt[st]!==void 0:X.call(pt,st)},Nt.prototype.set=function(st,pt){return this.__data__[st]=Q&&pt===void 0?"__lodash_hash_undefined__":pt,this},It.prototype.clear=function(){this.__data__=[]},It.prototype.delete=function(st){var pt=this.__data__,wt=Xt(pt,st);return!(wt<0)&&(wt==pt.length-1?pt.pop():U.call(pt,wt,1),!0)},It.prototype.get=function(st){var pt=this.__data__,wt=Xt(pt,st);return wt<0?void 0:pt[wt][1]},It.prototype.has=function(st){return Xt(this.__data__,st)>-1},It.prototype.set=function(st,pt){var wt=this.__data__,_t=Xt(wt,st);return _t<0?wt.push([st,pt]):wt[_t][1]=pt,this},At.prototype.clear=function(){this.__data__={hash:new Nt,map:new(Z||It),string:new Nt}},At.prototype.delete=function(st){return xe(this,st).delete(st)},At.prototype.get=function(st){return xe(this,st).get(st)},At.prototype.has=function(st){return xe(this,st).has(st)},At.prototype.set=function(st,pt){return xe(this,st).set(st,pt),this},Ut.prototype.add=Ut.prototype.push=function(st){return this.__data__.set(st,"__lodash_hash_undefined__"),this},Ut.prototype.has=function(st){return this.__data__.has(st)},Ht.prototype.clear=function(){this.__data__=new It},Ht.prototype.delete=function(st){return this.__data__.delete(st)},Ht.prototype.get=function(st){return this.__data__.get(st)},Ht.prototype.has=function(st){return this.__data__.has(st)},Ht.prototype.set=function(st,pt){var wt=this.__data__;if(wt instanceof It){var _t=wt.__data__;if(!Z||_t.length<199)return _t.push([st,pt]),this;wt=this.__data__=new At(_t)}return wt.set(st,pt),this};var Ct,$t=(Ct=function(st,pt){return st&&qt(st,pt,er)},function(st,pt){if(st==null)return st;if(!Vt(st))return Ct(st,pt);for(var wt=st.length,_t=-1,Bt=Object(st);++_t<wt&&pt(Bt[_t],_t,Bt)!==!1;);return st}),qt=(function(st){return function(pt,wt,_t){for(var Bt=-1,Et=Object(pt),Rt=_t(pt),me=Rt.length;me--;){var oe=Rt[++Bt];if(wt(Et[oe],oe,Et)===!1)break}return pt}})();function Dt(st,pt){for(var wt=0,_t=(pt=te(pt,st)?[pt]:se(pt)).length;st!=null&&wt<_t;)st=st[at(pt[wt++])];return wt&&wt==_t?st:void 0}function fe(st,pt){return st!=null&&pt in Object(st)}function ke(st,pt,wt,_t,Bt){return st===pt||(st==null||pt==null||!le(st)&&!ze(pt)?st!=st&&pt!=pt:(function(Et,Rt,me,oe,he,Jt){var Ce=Zt(Et),Ee=Zt(Rt),Me="[object Array]",qe="[object Array]";Ce||(Me=(Me=be(Et))==r?s:Me),Ee||(qe=(qe=be(Rt))==r?s:qe);var ir=Me==s&&!q(Et),mr=qe==s&&!q(Rt),Kr=Me==qe;if(Kr&&!ir)return Jt||(Jt=new Ht),Ce||tr(Et)?Oe(Et,Rt,me,oe,he,Jt):(function(Ae,ye,Js,Ri,Jc,Or,ks){switch(Js){case"[object DataView]":if(Ae.byteLength!=ye.byteLength||Ae.byteOffset!=ye.byteOffset)return!1;Ae=Ae.buffer,ye=ye.buffer;case"[object ArrayBuffer]":return!(Ae.byteLength!=ye.byteLength||!Ri(new N(Ae),new N(ye)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Mt(+Ae,+ye);case"[object Error]":return Ae.name==ye.name&&Ae.message==ye.message;case"[object RegExp]":case"[object String]":return Ae==ye+"";case n:var Qs=A;case e:var Ll=2⩔if(Qs||(Qs=M),Ae.size!=ye.size&&!Ll)return!1;var Qc=ks.get(Ae);if(Qc)return Qc==ye;Or|=1,ks.set(Ae,ye);var Zn=Oe(Qs(Ae),Qs(ye),Ri,Jc,Or,ks);return ks.delete(Ae),Zn;case"[object Symbol]":if(gt)return gt.call(Ae)==gt.call(ye)}return!1})(Et,Rt,Me,me,oe,he,Jt);if(!(2&he)){var Ti=ir&&X.call(Et,"__wrapped__"),Yn=mr&&X.call(Rt,"__wrapped__");if(Ti||Yn){var Gn=Ti?Et.value():Et,Kn=Yn?Rt.value():Rt;return Jt||(Jt=new Ht),me(Gn,Kn,oe,he,Jt)}}return Kr?(Jt||(Jt=new Ht),(function(Ae,ye,Js,Ri,Jc,Or){var ks=2&Jc,Qs=er(Ae),Ll=Qs.length,Qc=er(ye).length;if(Ll!=Qc&&!ks)return!1;for(var Zn=Ll;Zn--;){var ti=Qs[Zn];if(!(ks?ti in ye:X.call(ye,ti)))return!1}var Mu=Or.get(Ae);if(Mu&&Or.get(ye))return Mu==ye;var tu=!0;Or.set(Ae,ye),Or.set(ye,Ae);for(var wu=ks;++Zn<Ll;){ti=Qs[Zn];var eu=Ae[ti],ru=ye[ti];if(Ri)var Iu=ks?Ri(ru,eu,ti,ye,Ae,Or):Ri(eu,ru,ti,Ae,ye,Or);if(!(Iu===void 0?eu===ru||Js(eu,ru,Ri,Jc,Or):Iu)){tu=!1;break}wu||(wu=ti=="constructor")}if(tu&&!wu){var su=Ae.constructor,iu=ye.constructor;su==iu||!("constructor"in Ae)||!("constructor"in ye)||typeof su=="function"&&su instanceof su&&typeof iu=="function"&&iu instanceof iu||(tu=!1)}return Or.delete(Ae),Or.delete(ye),tu})(Et,Rt,me,oe,he,Jt)):!1})(st,pt,ke,wt,_t,Bt))}function Yt(st){return!(!le(st)||(function(pt){return!!j&&j in pt})(st))&&(ie(st)||q(st)?L:m).test(dt(st))}function we(st){return typeof st=="function"?st:st==null?xr:typeof st=="object"?Zt(st)?(function(_t,Bt){return te(_t)&&_e(Bt)?Re(at(_t),Bt):function(Et){var Rt=(function(me,oe,he){var Jt=me==null?void 0:Dt(me,oe);return Jt===void 0?he:Jt})(Et,_t);return Rt===void 0&&Rt===Bt?(function(me,oe){return me!=null&&(function(he,Jt,Ce){Jt=te(Jt,he)?[Jt]:se(Jt);for(var Ee,Me=-1,qe=Jt.length;++Me<qe;){var ir=at(Jt[Me]);if(!(Ee=he!=null&&Ce(he,ir)))break;he=he[ir]}return Ee||!!(qe=he?he.length:0)&&re(qe)&&Te(ir,qe)&&(Zt(he)||ee(he))})(me,oe,fe)})(Et,_t):ke(Bt,Rt,void 0,3)}})(st[0],st[1]):(function(_t){var Bt=(function(Et){for(var Rt=er(Et),me=Rt.length;me--;){var oe=Rt[me],he=Et[oe];Rt[me]=[oe,he,_e(he)]}return Rt})(_t);return Bt.length==1&&Bt[0][2]?Re(Bt[0][0],Bt[0][1]):function(Et){return Et===_t||(function(Rt,me,oe,he){var Jt=oe.length,Ce=Jt;if(Rt==null)return!Ce;for(Rt=Object(Rt);Jt--;){var Ee=oe[Jt];if(Ee[2]?Ee[1]!==Rt[Ee[0]]:!(Ee[0]in Rt))return!1}for(;++Jt<Ce;){var Me=(Ee=oe[Jt])[0],qe=Rt[Me],ir=Ee[1];if(Ee[2]){if(qe===void 0&&!(Me in Rt))return!1}else{var mr=new Ht,Kr;if(!(Kr===void 0?ke(ir,qe,he,3,mr):Kr))return!1}}return!0})(Et,_t,Bt)}})(st):te(pt=st)?(wt=at(pt),function(_t){return _t==null?void 0:_t[wt]}):(function(_t){return function(Bt){return Dt(Bt,_t)}})(pt);var pt,wt}function ue(st){if(wt=(pt=st)&&pt.constructor,_t=typeof wt=="function"&&wt.prototype||T,pt!==_t)return K(st);var pt,wt,_t,Bt=[];for(var Et in Object(st))X.call(st,Et)&&Et!="constructor"&&Bt.push(Et);return Bt}function se(st){return Zt(st)?st:ne(st)}function Oe(st,pt,wt,_t,Bt,Et){var Rt=2&Bt,me=st.length,oe=pt.length;if(me!=oe&&!(Rt&&oe>me))return!1;var he=Et.get(st);if(he&&Et.get(pt))return he==pt;var Jt=-1,Ce=!0,Ee=1&Bt?new Ut:void 0;for(Et.set(st,pt),Et.set(pt,st);++Jt<me;){var Me=st[Jt],qe=pt[Jt];if(_t)var ir=Rt?_t(qe,Me,Jt,pt,st,Et):_t(Me,qe,Jt,st,pt,Et);if(ir!==void 0){if(ir)continue;Ce=!1;break}if(Ee){if(!W(pt,(function(mr,Kr){if(!Ee.has(Kr)&&(Me===mr||wt(Me,mr,_t,Bt,Et)))return Ee.add(Kr)}))){Ce=!1;break}}else if(Me!==qe&&!wt(Me,qe,_t,Bt,Et)){Ce=!1;break}}return Et.delete(st),Et.delete(pt),Ce}function xe(st,pt){var wt,_t,Bt=st.__data__;return((_t=typeof(wt=pt))=="string"||_t=="number"||_t=="symbol"||_t=="boolean"?wt!=="__proto__":wt===null)?Bt[typeof pt=="string"?"string":"hash"]:Bt.map}function Qt(st,pt){var wt=(function(_t,Bt){return _t==null?void 0:_t[Bt]})(st,pt);return Yt(wt)?wt:void 0}var be=function(st){return J.call(st)};function Te(st,pt){return!!(pt=pt??9007199254740991)&&(typeof st=="number"||d.test(st))&&st>-1&&st%1==0&&st<pt}function te(st,pt){if(Zt(st))return!1;var wt=typeof st;return!(wt!="number"&&wt!="symbol"&&wt!="boolean"&&st!=null&&!$e(st))||u.test(st)||!i.test(st)||pt!=null&&st in Object(pt)}function _e(st){return st==st&&!le(st)}function Re(st,pt){return function(wt){return wt!=null&&wt[st]===pt&&(pt!==void 0||st in Object(wt))}}(rt&&be(new rt(new ArrayBuffer(1)))!="[object DataView]"||Z&&be(new Z)!=n||et&&be(et.resolve())!="[object Promise]"||ht&&be(new ht)!=e||lt&&be(new lt)!="[object WeakMap]")&&(be=function(st){var pt=J.call(st),wt=pt==s?st.constructor:void 0,_t=wt?dt(wt):void 0;if(_t)switch(_t){case ot:return"[object DataView]";case nt:return n;case ut:return"[object Promise]";case ct:return e;case ft:return"[object WeakMap]"}return pt});var ne=Kt((function(st){var pt;st=(pt=st)==null?"":(function(_t){if(typeof _t=="string")return _t;if($e(_t))return xt?xt.call(_t):"";var Bt=_t+"";return Bt=="0"&&1/_t==-1/0?"-0":Bt})(pt);var wt=[];return a.test(st)&&wt.push(""),st.replace(h,(function(_t,Bt,Et,Rt){wt.push(Et?Rt.replace(p,"$1"):Bt||_t)})),wt}));function at(st){if(typeof st=="string"||$e(st))return st;var pt=st+"";return pt=="0"&&1/st==-1/0?"-0":pt}function dt(st){if(st!=null){try{return V.call(st)}catch{}try{return st+""}catch{}}return""}var bt,Tt=(bt=function(st,pt,wt){X.call(st,wt)?st[wt].push(pt):st[wt]=[pt]},function(st,pt){var wt=Zt(st)?F:jt,_t={};return wt(st,bt,we(pt),_t)});function Kt(st,pt){if(typeof st!="function"||pt&&typeof pt!="function")throw new TypeError("Expected a function");var wt=function(){var _t=arguments,Bt=pt?pt.apply(this,_t):_t[0],Et=wt.cache;if(Et.has(Bt))return Et.get(Bt);var Rt=st.apply(this,_t);return wt.cache=Et.set(Bt,Rt),Rt};return wt.cache=new(Kt.Cache||At),wt}function Mt(st,pt){return st===pt||st!=st&&pt!=pt}function ee(st){return(function(pt){return ze(pt)&&Vt(pt)})(st)&&X.call(st,"callee")&&(!R.call(st,"callee")||J.call(st)==r)}Kt.Cache=At;var Zt=Array.isArray;function Vt(st){return st!=null&&re(st.length)&&!ie(st)}function ie(st){var pt=le(st)?J.call(st):"";return pt=="[object Function]"||pt=="[object GeneratorFunction]"}function re(st){return typeof st=="number"&&st>-1&&st%1==0&&st<=9007199254740991}function le(st){var pt=typeof st;return!!st&&(pt=="object"||pt=="function")}function ze(st){return!!st&&typeof st=="object"}function $e(st){return typeof st=="symbol"||ze(st)&&J.call(st)=="[object Symbol]"}var tr=B?(function(st){return function(pt){return st(pt)}})(B):function(st){return ze(st)&&re(st.length)&&!!b[J.call(st)]};function er(st){return Vt(st)?zt(st):ue(st)}function xr(st){return st}l.exports=Tt}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(t,l,c){var o=Object.prototype.toString;l.exports=function(r){return r===!0||r===!1||(function(n){return!!n&&typeof n=="object"})(r)&&o.call(r)=="[object Boolean]"}},{}],445:[function(t,l,c){(function(o){(function(){var r="[object Arguments]",n="[object Map]",s="[object Object]",e="[object Set]",i=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a[r]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a[n]=a["[object Number]"]=a[s]=a["[object RegExp]"]=a[e]=a["[object String]"]=a["[object WeakMap]"]=!1;var h=typeof o=="object"&&o&&o.Object===Object&&o,p=typeof self=="object"&&self&&self.Object===Object&&self,m=h||p||Function("return this")(),d=typeof c=="object"&&c&&!c.nodeType&&c,b=d&&typeof l=="object"&&l&&!l.nodeType&&l,g=b&&b.exports===d,S=g&&h.process,C=(function(){try{return S&&S.binding&&S.binding("util")}catch{}})(),I=C&&C.isTypedArray;function D(at,dt){for(var bt=-1,Tt=at==null?0:at.length;++bt<Tt;)if(dt(at[bt],bt,at))return!0;return!1}function z(at){var dt=-1,bt=Array(at.size);return at.forEach((function(Tt,Kt){bt[++dt]=[Kt,Tt]})),bt}function P(at){var dt=-1,bt=Array(at.size);return at.forEach((function(Tt){bt[++dt]=Tt})),bt}var B,F,W,q=Array.prototype,A=Function.prototype,M=Object.prototype,k=m["__core-js_shared__"],y=A.toString,w=M.hasOwnProperty,x=(B=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",_=M.toString,T=RegExp("^"+y.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=g?m.Buffer:void 0,j=m.Symbol,V=m.Uint8Array,X=M.propertyIsEnumerable,J=q.splice,L=j?j.toStringTag:void 0,G=Object.getOwnPropertySymbols,N=O?O.isBuffer:void 0,R=(F=Object.keys,W=Object,function(at){return F(W(at))}),U=fe(m,"DataView"),K=fe(m,"Map"),rt=fe(m,"Promise"),Z=fe(m,"Set"),et=fe(m,"WeakMap"),ht=fe(Object,"create"),lt=ue(U),Q=ue(K),ot=ue(rt),nt=ue(Z),ut=ue(et),ct=j?j.prototype:void 0,ft=ct?ct.valueOf:void 0;function mt(at){var dt=-1,bt=at==null?0:at.length;for(this.clear();++dt<bt;){var Tt=at[dt];this.set(Tt[0],Tt[1])}}function gt(at){var dt=-1,bt=at==null?0:at.length;for(this.clear();++dt<bt;){var Tt=at[dt];this.set(Tt[0],Tt[1])}}function xt(at){var dt=-1,bt=at==null?0:at.length;for(this.clear();++dt<bt;){var Tt=at[dt];this.set(Tt[0],Tt[1])}}function Nt(at){var dt=-1,bt=at==null?0:at.length;for(this.__data__=new xt;++dt<bt;)this.add(at[dt])}function It(at){var dt=this.__data__=new gt(at);this.size=dt.size}function At(at,dt){var bt=xe(at),Tt=!bt&&Oe(at),Kt=!bt&&!Tt&&Qt(at),Mt=!bt&&!Tt&&!Kt&&Re(at),ee=bt||Tt||Kt||Mt,Zt=ee?(function(re,le){for(var ze=-1,$e=Array(re);++ze<re;)$e[ze]=le(ze);return $e})(at.length,String):[],Vt=Zt.length;for(var ie in at)!w.call(at,ie)||ee&&(ie=="length"||Kt&&(ie=="offset"||ie=="parent")||Mt&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||we(ie,Vt))||Zt.push(ie);return Zt}function Ut(at,dt){for(var bt=at.length;bt--;)if(se(at[bt][0],dt))return bt;return-1}function Ht(at){return at==null?at===void 0?"[object Undefined]":"[object Null]":L&&L in Object(at)?(function(dt){var bt=w.call(dt,L),Tt=dt[L];try{dt[L]=void 0;var Kt=!0}catch{}var Mt=_.call(dt);return Kt&&(bt?dt[L]=Tt:delete dt[L]),Mt})(at):(function(dt){return _.call(dt)})(at)}function zt(at){return _e(at)&&Ht(at)==r}function Xt(at,dt,bt,Tt,Kt){return at===dt||(at==null||dt==null||!_e(at)&&!_e(dt)?at!=at&&dt!=dt:(function(Mt,ee,Zt,Vt,ie,re){var le=xe(Mt),ze=xe(ee),$e=le?"[object Array]":Yt(Mt),tr=ze?"[object Array]":Yt(ee),er=($e=$e==r?s:$e)==s,xr=(tr=tr==r?s:tr)==s,st=$e==tr;if(st&&Qt(Mt)){if(!Qt(ee))return!1;le=!0,er=!1}if(st&&!er)return re||(re=new It),le||Re(Mt)?$t(Mt,ee,Zt,Vt,ie,re):(function(Et,Rt,me,oe,he,Jt,Ce){switch(me){case"[object DataView]":if(Et.byteLength!=Rt.byteLength||Et.byteOffset!=Rt.byteOffset)return!1;Et=Et.buffer,Rt=Rt.buffer;case"[object ArrayBuffer]":return!(Et.byteLength!=Rt.byteLength||!Jt(new V(Et),new V(Rt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return se(+Et,+Rt);case"[object Error]":return Et.name==Rt.name&&Et.message==Rt.message;case"[object RegExp]":case"[object String]":return Et==Rt+"";case n:var Ee=z;case e:var Me=1&oe;if(Ee||(Ee=P),Et.size!=Rt.size&&!Me)return!1;var qe=Ce.get(Et);if(qe)return qe==Rt;oe|=2,Ce.set(Et,Rt);var ir=$t(Ee(Et),Ee(Rt),oe,he,Jt,Ce);return Ce.delete(Et),ir;case"[object Symbol]":if(ft)return ft.call(Et)==ft.call(Rt)}return!1})(Mt,ee,$e,Zt,Vt,ie,re);if(!(1&Zt)){var pt=er&&w.call(Mt,"__wrapped__"),wt=xr&&w.call(ee,"__wrapped__");if(pt||wt){var _t=pt?Mt.value():Mt,Bt=wt?ee.value():ee;return re||(re=new It),ie(_t,Bt,Zt,Vt,re)}}return st?(re||(re=new It),(function(Et,Rt,me,oe,he,Jt){var Ce=1&me,Ee=qt(Et),Me=Ee.length,qe=qt(Rt).length;if(Me!=qe&&!Ce)return!1;for(var ir=Me;ir--;){var mr=Ee[ir];if(!(Ce?mr in Rt:w.call(Rt,mr)))return!1}var Kr=Jt.get(Et);if(Kr&&Jt.get(Rt))return Kr==Rt;var Ti=!0;Jt.set(Et,Rt),Jt.set(Rt,Et);for(var Yn=Ce;++ir<Me;){mr=Ee[ir];var Gn=Et[mr],Kn=Rt[mr];if(oe)var Ae=Ce?oe(Kn,Gn,mr,Rt,Et,Jt):oe(Gn,Kn,mr,Et,Rt,Jt);if(!(Ae===void 0?Gn===Kn||he(Gn,Kn,me,oe,Jt):Ae)){Ti=!1;break}Yn||(Yn=mr=="constructor")}if(Ti&&!Yn){var ye=Et.constructor,Js=Rt.constructor;ye==Js||!("constructor"in Et)||!("constructor"in Rt)||typeof ye=="function"&&ye instanceof ye&&typeof Js=="function"&&Js instanceof Js||(Ti=!1)}return Jt.delete(Et),Jt.delete(Rt),Ti})(Mt,ee,Zt,Vt,ie,re)):!1})(at,dt,bt,Tt,Xt,Kt))}function jt(at){return!(!te(at)||(function(dt){return!!x&&x in dt})(at))&&(be(at)?T:i).test(ue(at))}function Ct(at){if(bt=(dt=at)&&dt.constructor,Tt=typeof bt=="function"&&bt.prototype||M,dt!==Tt)return R(at);var dt,bt,Tt,Kt=[];for(var Mt in Object(at))w.call(at,Mt)&&Mt!="constructor"&&Kt.push(Mt);return Kt}function $t(at,dt,bt,Tt,Kt,Mt){var ee=1&bt,Zt=at.length,Vt=dt.length;if(Zt!=Vt&&!(ee&&Vt>Zt))return!1;var ie=Mt.get(at);if(ie&&Mt.get(dt))return ie==dt;var re=-1,le=!0,ze=2&bt?new Nt:void 0;for(Mt.set(at,dt),Mt.set(dt,at);++re<Zt;){var $e=at[re],tr=dt[re];if(Tt)var er=ee?Tt(tr,$e,re,dt,at,Mt):Tt($e,tr,re,at,dt,Mt);if(er!==void 0){if(er)continue;le=!1;break}if(ze){if(!D(dt,(function(xr,st){if(pt=st,!ze.has(pt)&&($e===xr||Kt($e,xr,bt,Tt,Mt)))return ze.push(st);var pt}))){le=!1;break}}else if($e!==tr&&!Kt($e,tr,bt,Tt,Mt)){le=!1;break}}return Mt.delete(at),Mt.delete(dt),le}function qt(at){return(function(dt,bt,Tt){var Kt=bt(dt);return xe(dt)?Kt:(function(Mt,ee){for(var Zt=-1,Vt=ee.length,ie=Mt.length;++Zt<Vt;)Mt[ie+Zt]=ee[Zt];return Mt})(Kt,Tt(dt))})(at,ne,ke)}function Dt(at,dt){var bt,Tt,Kt=at.__data__;return((Tt=typeof(bt=dt))=="string"||Tt=="number"||Tt=="symbol"||Tt=="boolean"?bt!=="__proto__":bt===null)?Kt[typeof dt=="string"?"string":"hash"]:Kt.map}function fe(at,dt){var bt=(function(Tt,Kt){return Tt==null?void 0:Tt[Kt]})(at,dt);return jt(bt)?bt:void 0}mt.prototype.clear=function(){this.__data__=ht?ht(null):{},this.size=0},mt.prototype.delete=function(at){var dt=this.has(at)&&delete this.__data__[at];return this.size-=dt?1:0,dt},mt.prototype.get=function(at){var dt=this.__data__;if(ht){var bt=dt[at];return bt==="__lodash_hash_undefined__"?void 0:bt}return w.call(dt,at)?dt[at]:void 0},mt.prototype.has=function(at){var dt=this.__data__;return ht?dt[at]!==void 0:w.call(dt,at)},mt.prototype.set=function(at,dt){var bt=this.__data__;return this.size+=this.has(at)?0:1,bt[at]=ht&&dt===void 0?"__lodash_hash_undefined__":dt,this},gt.prototype.clear=function(){this.__data__=[],this.size=0},gt.prototype.delete=function(at){var dt=this.__data__,bt=Ut(dt,at);return!(bt<0)&&(bt==dt.length-1?dt.pop():J.call(dt,bt,1),--this.size,!0)},gt.prototype.get=function(at){var dt=this.__data__,bt=Ut(dt,at);return bt<0?void 0:dt[bt][1]},gt.prototype.has=function(at){return Ut(this.__data__,at)>-1},gt.prototype.set=function(at,dt){var bt=this.__data__,Tt=Ut(bt,at);return Tt<0?(++this.size,bt.push([at,dt])):bt[Tt][1]=dt,this},xt.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(K||gt),string:new mt}},xt.prototype.delete=function(at){var dt=Dt(this,at).delete(at);return this.size-=dt?1:0,dt},xt.prototype.get=function(at){return Dt(this,at).get(at)},xt.prototype.has=function(at){return Dt(this,at).has(at)},xt.prototype.set=function(at,dt){var bt=Dt(this,at),Tt=bt.size;return bt.set(at,dt),this.size+=bt.size==Tt?0:1,this},Nt.prototype.add=Nt.prototype.push=function(at){return this.__data__.set(at,"__lodash_hash_undefined__"),this},Nt.prototype.has=function(at){return this.__data__.has(at)},It.prototype.clear=function(){this.__data__=new gt,this.size=0},It.prototype.delete=function(at){var dt=this.__data__,bt=dt.delete(at);return this.size=dt.size,bt},It.prototype.get=function(at){return this.__data__.get(at)},It.prototype.has=function(at){return this.__data__.has(at)},It.prototype.set=function(at,dt){var bt=this.__data__;if(bt instanceof gt){var Tt=bt.__data__;if(!K||Tt.length<199)return Tt.push([at,dt]),this.size=++bt.size,this;bt=this.__data__=new xt(Tt)}return bt.set(at,dt),this.size=bt.size,this};var ke=G?function(at){return at==null?[]:(at=Object(at),(function(dt,bt){for(var Tt=-1,Kt=dt==null?0:dt.length,Mt=0,ee=[];++Tt<Kt;){var Zt=dt[Tt];bt(Zt,Tt,dt)&&(ee[Mt++]=Zt)}return ee})(G(at),(function(dt){return X.call(at,dt)})))}:function(){return[]},Yt=Ht;function we(at,dt){return!!(dt=dt??9007199254740991)&&(typeof at=="number"||u.test(at))&&at>-1&&at%1==0&&at<dt}function ue(at){if(at!=null){try{return y.call(at)}catch{}try{return at+""}catch{}}return""}function se(at,dt){return at===dt||at!=at&&dt!=dt}(U&&Yt(new U(new ArrayBuffer(1)))!="[object DataView]"||K&&Yt(new K)!=n||rt&&Yt(rt.resolve())!="[object Promise]"||Z&&Yt(new Z)!=e||et&&Yt(new et)!="[object WeakMap]")&&(Yt=function(at){var dt=Ht(at),bt=dt==s?at.constructor:void 0,Tt=bt?ue(bt):"";if(Tt)switch(Tt){case lt:return"[object DataView]";case Q:return n;case ot:return"[object Promise]";case nt:return e;case ut:return"[object WeakMap]"}return dt});var Oe=zt((function(){return arguments})())?zt:function(at){return _e(at)&&w.call(at,"callee")&&!X.call(at,"callee")},xe=Array.isArray,Qt=N||function(){return!1};function be(at){if(!te(at))return!1;var dt=Ht(at);return dt=="[object Function]"||dt=="[object GeneratorFunction]"||dt=="[object AsyncFunction]"||dt=="[object Proxy]"}function Te(at){return typeof at=="number"&&at>-1&&at%1==0&&at<=9007199254740991}function te(at){var dt=typeof at;return at!=null&&(dt=="object"||dt=="function")}function _e(at){return at!=null&&typeof at=="object"}var Re=I?(function(at){return function(dt){return at(dt)}})(I):function(at){return _e(at)&&Te(at.length)&&!!a[Ht(at)]};function ne(at){return(dt=at)!=null&&Te(dt.length)&&!be(dt)?At(at):Ct(at);var dt}l.exports=function(at,dt){return Xt(at,dt)}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(t,l,c){(function(o){(function(){var r=typeof o=="object"&&o&&o.Object===Object&&o,n=typeof self=="object"&&self&&self.Object===Object&&self,s=r||n||Function("return this")(),e=Object.prototype,i=e.hasOwnProperty,u=e.toString,a=s.Symbol,h=a?a.toStringTag:void 0;function p(m){return m==null?m===void 0?"[object Undefined]":"[object Null]":h&&h in Object(m)?(function(d){var b=i.call(d,h),g=d[h];try{d[h]=void 0;var S=!0}catch{}var C=u.call(d);return S&&(b?d[h]=g:delete d[h]),C})(m):(function(d){return u.call(d)})(m)}l.exports=function(m){if(!(function(b){var g=typeof b;return b!=null&&(g=="object"||g=="function")})(m))return!1;var d=p(m);return d=="[object Function]"||d=="[object GeneratorFunction]"||d=="[object AsyncFunction]"||d=="[object Proxy]"}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(t,l,c){l.exports=function(o){return o==null}},{}],448:[function(t,l,c){l.exports=function(o){return o===void 0}},{}],449:[function(t,l,c){(function(o){(function(){var r=/^\[object .+?Constructor\]$/,n=typeof o=="object"&&o&&o.Object===Object&&o,s=typeof self=="object"&&self&&self.Object===Object&&self,e=n||s||Function("return this")();function i(j,V){return!!(j&&j.length)&&(function(X,J,L){if(J!=J)return(function(R,U,K,rt){for(var Z=R.length,et=K+-1;++et<Z;)if(U(R[et],et,R))return et;return-1})(X,u,L);for(var G=L-1,N=X.length;++G<N;)if(X[G]===J)return G;return-1})(j,V,0)>-1}function u(j){return j!=j}function a(j,V){return j.has(V)}function h(j){var V=-1,X=Array(j.size);return j.forEach((function(J){X[++V]=J})),X}var p,m=Array.prototype,d=Function.prototype,b=Object.prototype,g=e["__core-js_shared__"],S=(p=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",C=d.toString,I=b.hasOwnProperty,D=b.toString,z=RegExp("^"+C.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=m.splice,B=T(e,"Map"),F=T(e,"Set"),W=T(Object,"create");function q(j){var V=-1,X=j?j.length:0;for(this.clear();++V<X;){var J=j[V];this.set(J[0],J[1])}}function A(j){var V=-1,X=j?j.length:0;for(this.clear();++V<X;){var J=j[V];this.set(J[0],J[1])}}function M(j){var V=-1,X=j?j.length:0;for(this.clear();++V<X;){var J=j[V];this.set(J[0],J[1])}}function k(j){var V=-1,X=j?j.length:0;for(this.__data__=new M;++V<X;)this.add(j[V])}function y(j,V){for(var X,J,L=j.length;L--;)if((X=j[L][0])===(J=V)||X!=X&&J!=J)return L;return-1}function w(j){return!(!O(j)||(V=j,S&&S in V))&&((function(X){var J=O(X)?D.call(X):"";return J=="[object Function]"||J=="[object GeneratorFunction]"})(j)||(function(X){var J=!1;if(X!=null&&typeof X.toString!="function")try{J=!!(X+"")}catch{}return J})(j)?z:r).test((function(X){if(X!=null){try{return C.call(X)}catch{}try{return X+""}catch{}}return""})(j));var V}q.prototype.clear=function(){this.__data__=W?W(null):{}},q.prototype.delete=function(j){return this.has(j)&&delete this.__data__[j]},q.prototype.get=function(j){var V=this.__data__;if(W){var X=V[j];return X==="__lodash_hash_undefined__"?void 0:X}return I.call(V,j)?V[j]:void 0},q.prototype.has=function(j){var V=this.__data__;return W?V[j]!==void 0:I.call(V,j)},q.prototype.set=function(j,V){return this.__data__[j]=W&&V===void 0?"__lodash_hash_undefined__":V,this},A.prototype.clear=function(){this.__data__=[]},A.prototype.delete=function(j){var V=this.__data__,X=y(V,j);return!(X<0)&&(X==V.length-1?V.pop():P.call(V,X,1),!0)},A.prototype.get=function(j){var V=this.__data__,X=y(V,j);return X<0?void 0:V[X][1]},A.prototype.has=function(j){return y(this.__data__,j)>-1},A.prototype.set=function(j,V){var X=this.__data__,J=y(X,j);return J<0?X.push([j,V]):X[J][1]=V,this},M.prototype.clear=function(){this.__data__={hash:new q,map:new(B||A),string:new q}},M.prototype.delete=function(j){return _(this,j).delete(j)},M.prototype.get=function(j){return _(this,j).get(j)},M.prototype.has=function(j){return _(this,j).has(j)},M.prototype.set=function(j,V){return _(this,j).set(j,V),this},k.prototype.add=k.prototype.push=function(j){return this.__data__.set(j,"__lodash_hash_undefined__"),this},k.prototype.has=function(j){return this.__data__.has(j)};var x=F&&1/h(new F([,-0]))[1]==1/0?function(j){return new F(j)}:function(){};function _(j,V){var X,J,L=j.__data__;return((J=typeof(X=V))=="string"||J=="number"||J=="symbol"||J=="boolean"?X!=="__proto__":X===null)?L[typeof V=="string"?"string":"hash"]:L.map}function T(j,V){var X=(function(J,L){return J==null?void 0:J[L]})(j,V);return w(X)?X:void 0}function O(j){var V=typeof j;return!!j&&(V=="object"||V=="function")}l.exports=function(j){return j&&j.length?(function(V,X,J){var L=-1,G=i,N=V.length,R=!0,U=[],K=U;if(N>=200){var rt=x(V);if(rt)return h(rt);R=!1,G=a,K=new k}else K=U;t:for(;++L<N;){var Z=V[L],et=Z;if(Z=Z!==0?Z:0,R&&et==et){for(var ht=K.length;ht--;)if(K[ht]===et)continue t;U.push(Z)}else G(K,et,J)||(K!==U&&K.push(et),U.push(Z))}return U})(j):[]}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(t,l,c){var o=t("inherits"),r=t("hash-base"),n=t("safe-buffer").Buffer,s=new Array(16);function e(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function i(m,d){return m<<d|m>>>32-d}function u(m,d,b,g,S,C,I){return i(m+(d&b|~d&g)+S+C|0,I)+d|0}function a(m,d,b,g,S,C,I){return i(m+(d&g|b&~g)+S+C|0,I)+d|0}function h(m,d,b,g,S,C,I){return i(m+(d^b^g)+S+C|0,I)+d|0}function p(m,d,b,g,S,C,I){return i(m+(b^(d|~g))+S+C|0,I)+d|0}o(e,r),e.prototype._update=function(){for(var m=s,d=0;d<16;++d)m[d]=this._block.readInt32LE(4*d);var b=this._a,g=this._b,S=this._c,C=this._d;b=u(b,g,S,C,m[0],3614090360,7),C=u(C,b,g,S,m[1],3905402710,12),S=u(S,C,b,g,m[2],606105819,17),g=u(g,S,C,b,m[3],3250441966,22),b=u(b,g,S,C,m[4],4118548399,7),C=u(C,b,g,S,m[5],1200080426,12),S=u(S,C,b,g,m[6],2821735955,17),g=u(g,S,C,b,m[7],4249261313,22),b=u(b,g,S,C,m[8],1770035416,7),C=u(C,b,g,S,m[9],2336552879,12),S=u(S,C,b,g,m[10],4294925233,17),g=u(g,S,C,b,m[11],2304563134,22),b=u(b,g,S,C,m[12],1804603682,7),C=u(C,b,g,S,m[13],4254626195,12),S=u(S,C,b,g,m[14],2792965006,17),b=a(b,g=u(g,S,C,b,m[15],1236535329,22),S,C,m[1],4129170786,5),C=a(C,b,g,S,m[6],3225465664,9),S=a(S,C,b,g,m[11],643717713,14),g=a(g,S,C,b,m[0],3921069994,20),b=a(b,g,S,C,m[5],3593408605,5),C=a(C,b,g,S,m[10],38016083,9),S=a(S,C,b,g,m[15],3634488961,14),g=a(g,S,C,b,m[4],3889429448,20),b=a(b,g,S,C,m[9],568446438,5),C=a(C,b,g,S,m[14],3275163606,9),S=a(S,C,b,g,m[3],4107603335,14),g=a(g,S,C,b,m[8],1163531501,20),b=a(b,g,S,C,m[13],2850285829,5),C=a(C,b,g,S,m[2],4243563512,9),S=a(S,C,b,g,m[7],1735328473,14),b=h(b,g=a(g,S,C,b,m[12],2368359562,20),S,C,m[5],4294588738,4),C=h(C,b,g,S,m[8],2272392833,11),S=h(S,C,b,g,m[11],1839030562,16),g=h(g,S,C,b,m[14],4259657740,23),b=h(b,g,S,C,m[1],2763975236,4),C=h(C,b,g,S,m[4],1272893353,11),S=h(S,C,b,g,m[7],4139469664,16),g=h(g,S,C,b,m[10],3200236656,23),b=h(b,g,S,C,m[13],681279174,4),C=h(C,b,g,S,m[0],3936430074,11),S=h(S,C,b,g,m[3],3572445317,16),g=h(g,S,C,b,m[6],76029189,23),b=h(b,g,S,C,m[9],3654602809,4),C=h(C,b,g,S,m[12],3873151461,11),S=h(S,C,b,g,m[15],530742520,16),b=p(b,g=h(g,S,C,b,m[2],3299628645,23),S,C,m[0],4096336452,6),C=p(C,b,g,S,m[7],1126891415,10),S=p(S,C,b,g,m[14],2878612391,15),g=p(g,S,C,b,m[5],4237533241,21),b=p(b,g,S,C,m[12],1700485571,6),C=p(C,b,g,S,m[3],2399980690,10),S=p(S,C,b,g,m[10],4293915773,15),g=p(g,S,C,b,m[1],2240044497,21),b=p(b,g,S,C,m[8],1873313359,6),C=p(C,b,g,S,m[15],4264355552,10),S=p(S,C,b,g,m[6],2734768916,15),g=p(g,S,C,b,m[13],1309151649,21),b=p(b,g,S,C,m[4],4149444226,6),C=p(C,b,g,S,m[11],3174756917,10),S=p(S,C,b,g,m[2],718787259,15),g=p(g,S,C,b,m[9],3951481745,21),this._a=this._a+b|0,this._b=this._b+g|0,this._c=this._c+S|0,this._d=this._d+C|0},e.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var m=n.allocUnsafe(16);return m.writeInt32LE(this._a,0),m.writeInt32LE(this._b,4),m.writeInt32LE(this._c,8),m.writeInt32LE(this._d,12),m},l.exports=e},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(t,l,c){var o=t("bn.js"),r=t("brorand");function n(s){this.rand=s||new r.Rand}l.exports=n,n.create=function(s){return new n(s)},n.prototype._randbelow=function(s){var e=s.bitLength(),i=Math.ceil(e/8);do var u=new o(this.rand.generate(i));while(u.cmp(s)>=0);return u},n.prototype._randrange=function(s,e){var i=e.sub(s);return s.add(this._randbelow(i))},n.prototype.test=function(s,e,i){var u=s.bitLength(),a=o.mont(s),h=new o(1).toRed(a);e||(e=Math.max(1,u/48|0));for(var p=s.subn(1),m=0;!p.testn(m);m++);for(var d=s.shrn(m),b=p.toRed(a);e>0;e--){var g=this._randrange(new o(2),p);i&&i(g);var S=g.toRed(a).redPow(d);if(S.cmp(h)!==0&&S.cmp(b)!==0){for(var C=1;C<m;C++){if((S=S.redSqr()).cmp(h)===0)return!1;if(S.cmp(b)===0)break}if(C===m)return!1}}return!0},n.prototype.getDivisor=function(s,e){var i=s.bitLength(),u=o.mont(s),a=new o(1).toRed(u);e||(e=Math.max(1,i/48|0));for(var h=s.subn(1),p=0;!h.testn(p);p++);for(var m=s.shrn(p),d=h.toRed(u);e>0;e--){var b=this._randrange(new o(2),h),g=s.gcd(b);if(g.cmpn(1)!==0)return g;var S=b.toRed(u).redPow(m);if(S.cmp(a)!==0&&S.cmp(d)!==0){for(var C=1;C<p;C++){if((S=S.redSqr()).cmp(a)===0)return S.fromRed().subn(1).gcd(s);if(S.cmp(d)===0)break}if(C===p)return(S=S.redSqr()).fromRed().subn(1).gcd(s)}}return!1}},{"bn.js":452,brorand:187}],452:[function(t,l,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],453:[function(t,l,c){function o(r,n){if(!r)throw new Error(n||"Assertion failed")}l.exports=o,o.equal=function(r,n,s){if(r!=n)throw new Error(s||"Assertion failed: "+r+" != "+n)}},{}],454:[function(t,l,c){var o=c;function r(s){return s.length===1?"0"+s:s}function n(s){for(var e="",i=0;i<s.length;i++)e+=r(s[i].toString(16));return e}o.toArray=function(s,e){if(Array.isArray(s))return s.slice();if(!s)return[];var i=[];if(typeof s!="string"){for(var u=0;u<s.length;u++)i[u]=0|s[u];return i}if(e==="hex")for((s=s.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(s="0"+s),u=0;u<s.length;u+=2)i.push(parseInt(s[u]+s[u+1],16));else for(u=0;u<s.length;u++){var a=s.charCodeAt(u),h=a>>8,p=255&a;h?i.push(h,p):i.push(p)}return i},o.zero2=r,o.toHex=n,o.encode=function(s,e){return e==="hex"?n(s):s}},{}],455:[function(t,l,c){l.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(t,l,c){var o=t("asn1.js");c.certificate=t("./certificate");var r=o.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));c.RSAPrivateKey=r;var n=o.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));c.RSAPublicKey=n;var s=o.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(e),this.key("subjectPublicKey").bitstr())}));c.PublicKey=s;var e=o.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),i=o.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(e),this.key("subjectPrivateKey").octstr())}));c.PrivateKey=i;var u=o.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));c.EncryptedPrivateKey=u;var a=o.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));c.DSAPrivateKey=a,c.DSAparam=o.define("DSAparam",(function(){this.int()}));var h=o.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(p),this.key("publicKey").optional().explicit(1).bitstr())}));c.ECPrivateKey=h;var p=o.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));c.signature=o.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(t,l,c){var o=t("asn1.js"),r=o.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),n=o.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),s=o.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),e=o.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())})),i=o.define("RelativeDistinguishedName",(function(){this.setof(n)})),u=o.define("RDNSequence",(function(){this.seqof(i)})),a=o.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),h=o.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),p=o.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),m=o.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(a),this.key("validity").use(h),this.key("subject").use(a),this.key("subjectPublicKeyInfo").use(e),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(p).optional())})),d=o.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(m),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));l.exports=d},{"asn1.js":170}],458:[function(t,l,c){var o=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=t("evp_bytestokey"),e=t("browserify-aes"),i=t("safe-buffer").Buffer;l.exports=function(u,a){var h,p=u.toString(),m=p.match(o);if(m){var d="aes"+m[1],b=i.from(m[2],"hex"),g=i.from(m[3].replace(/[\r\n]/g,""),"base64"),S=s(a,b.slice(0,8),parseInt(m[1],10)).key,C=[],I=e.createDecipheriv(d,S,b);C.push(I.update(g)),C.push(I.final()),h=i.concat(C)}else{var D=p.match(n);h=i.from(D[2].replace(/[\r\n]/g,""),"base64")}return{tag:p.match(r)[1],data:h}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(t,l,c){var o=t("./asn1"),r=t("./aesid.json"),n=t("./fixProc"),s=t("browserify-aes"),e=t("pbkdf2"),i=t("safe-buffer").Buffer;function u(a){var h;typeof a!="object"||i.isBuffer(a)||(h=a.passphrase,a=a.key),typeof a=="string"&&(a=i.from(a));var p,m,d=n(a,h),b=d.tag,g=d.data;switch(b){case"CERTIFICATE":m=o.certificate.decode(g,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(m||(m=o.PublicKey.decode(g,"der")),p=m.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPublicKey.decode(m.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return m.subjectPrivateKey=m.subjectPublicKey,{type:"ec",data:m};case"1.2.840.10040.4.1":return m.algorithm.params.pub_key=o.DSAparam.decode(m.subjectPublicKey.data,"der"),{type:"dsa",data:m.algorithm.params};default:throw new Error("unknown key id "+p)}case"ENCRYPTED PRIVATE KEY":g=(function(S,C){var I=S.algorithm.decrypt.kde.kdeparams.salt,D=parseInt(S.algorithm.decrypt.kde.kdeparams.iters.toString(),10),z=r[S.algorithm.decrypt.cipher.algo.join(".")],P=S.algorithm.decrypt.cipher.iv,B=S.subjectPrivateKey,F=parseInt(z.split("-")[1],10)/8,W=e.pbkdf2Sync(C,I,D,F,"sha1"),q=s.createDecipheriv(z,W,P),A=[];return A.push(q.update(B)),A.push(q.final()),i.concat(A)})(g=o.EncryptedPrivateKey.decode(g,"der"),h);case"PRIVATE KEY":switch(p=(m=o.PrivateKey.decode(g,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return o.RSAPrivateKey.decode(m.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:m.algorithm.curve,privateKey:o.ECPrivateKey.decode(m.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return m.algorithm.params.priv_key=o.DSAparam.decode(m.subjectPrivateKey,"der"),{type:"dsa",params:m.algorithm.params};default:throw new Error("unknown key id "+p)}case"RSA PUBLIC KEY":return o.RSAPublicKey.decode(g,"der");case"RSA PRIVATE KEY":return o.RSAPrivateKey.decode(g,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:o.DSAPrivateKey.decode(g,"der")};case"EC PRIVATE KEY":return{curve:(g=o.ECPrivateKey.decode(g,"der")).parameters.value,privateKey:g.privateKey};default:throw new Error("unknown key type "+b)}}l.exports=u,u.signature=o.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(t,l,c){c.pbkdf2=t("./lib/async"),c.pbkdf2Sync=t("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(t,l,c){(function(o){(function(){var r,n,s=t("safe-buffer").Buffer,e=t("./precondition"),i=t("./default-encoding"),u=t("./sync"),a=t("./to-buffer"),h=o.crypto&&o.crypto.subtle,p={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},m=[];function d(){return n||(n=o.process&&o.process.nextTick?o.process.nextTick:o.queueMicrotask?o.queueMicrotask:o.setImmediate?o.setImmediate:o.setTimeout)}function b(g,S,C,I,D){return h.importKey("raw",g,{name:"PBKDF2"},!1,["deriveBits"]).then((function(z){return h.deriveBits({name:"PBKDF2",salt:S,iterations:C,hash:{name:D}},z,I<<3)})).then((function(z){return s.from(z)}))}l.exports=function(g,S,C,I,D,z){typeof D=="function"&&(z=D,D=void 0);var P=p[(D=D||"sha1").toLowerCase()];if(P&&typeof o.Promise=="function"){if(e(C,I),g=a(g,i,"Password"),S=a(S,i,"Salt"),typeof z!="function")throw new Error("No callback provided to pbkdf2");(function(B,F){B.then((function(W){d()((function(){F(null,W)}))}),(function(W){d()((function(){F(W)}))}))})((function(B){if(o.process&&!o.process.browser||!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(m[B]!==void 0)return m[B];var F=b(r=r||s.alloc(8),r,10,128,B).then((function(){return!0})).catch((function(){return!1}));return m[B]=F,F})(P).then((function(B){return B?b(g,S,C,I,P):u(g,S,C,I,D)})),z)}else d()((function(){var B;try{B=u(g,S,C,I,D)}catch(F){return z(F)}z(null,B)}))}}).call(this)}).call(this,typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(t,l,c){(function(o,r){(function(){var n;r.process&&r.process.browser?n="utf-8":r.process&&r.process.version?n=parseInt(o.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":n="utf-8",l.exports=n}).call(this)}).call(this,t("_process"),typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(t,l,c){var o=Math.pow(2,30)-1;l.exports=function(r,n){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof n!="number")throw new TypeError("Key length not a number");if(n<0||n>o||n!=n)throw new TypeError("Bad key length")}},{}],464:[function(t,l,c){var o=t("create-hash/md5"),r=t("ripemd160"),n=t("sha.js"),s=t("safe-buffer").Buffer,e=t("./precondition"),i=t("./default-encoding"),u=t("./to-buffer"),a=s.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function p(m,d,b){var g=(function(P){function B(F){return n(P).update(F).digest()}return P==="rmd160"||P==="ripemd160"?function(F){return new r().update(F).digest()}:P==="md5"?o:B})(m),S=m==="sha512"||m==="sha384"?128:64;d.length>S?d=g(d):d.length<S&&(d=s.concat([d,a],S));for(var C=s.allocUnsafe(S+h[m]),I=s.allocUnsafe(S+h[m]),D=0;D<S;D++)C[D]=54^d[D],I[D]=92^d[D];var z=s.allocUnsafe(S+b+4);C.copy(z,0,0,S),this.ipad1=z,this.ipad2=C,this.opad=I,this.alg=m,this.blocksize=S,this.hash=g,this.size=h[m]}p.prototype.run=function(m,d){return m.copy(d,this.blocksize),this.hash(d).copy(this.opad,this.blocksize),this.hash(this.opad)},l.exports=function(m,d,b,g,S){e(b,g);var C=new p(S=S||"sha1",m=u(m,i,"Password"),(d=u(d,i,"Salt")).length),I=s.allocUnsafe(g),D=s.allocUnsafe(d.length+4);d.copy(D,0,0,d.length);for(var z=0,P=h[S],B=Math.ceil(g/P),F=1;F<=B;F++){D.writeUInt32BE(F,d.length);for(var W=C.run(D,C.ipad1),q=W,A=1;A<b;A++){q=C.run(q,C.ipad2);for(var M=0;M<P;M++)W[M]^=q[M]}W.copy(I,z),z+=P}return I}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(t,l,c){var o=t("safe-buffer").Buffer;l.exports=function(r,n,s){if(o.isBuffer(r))return r;if(typeof r=="string")return o.from(r,n);if(ArrayBuffer.isView(r))return o.from(r.buffer);throw new TypeError(s+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(t,l,c){(function(o){(function(){o===void 0||!o.version||o.version.indexOf("v0.")===0||o.version.indexOf("v1.")===0&&o.version.indexOf("v1.8.")!==0?l.exports={nextTick:function(r,n,s,e){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var i,u,a=arguments.length;switch(a){case 0:case 1:return o.nextTick(r);case 2:return o.nextTick((function(){r.call(null,n)}));case 3:return o.nextTick((function(){r.call(null,n,s)}));case 4:return o.nextTick((function(){r.call(null,n,s,e)}));default:for(i=new Array(a-1),u=0;u<i.length;)i[u++]=arguments[u];return o.nextTick((function(){r.apply(null,i)}))}}}:l.exports=o}).call(this)}).call(this,t("_process"))},{_process:467}],467:[function(t,l,c){var o,r,n=l.exports={};function s(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function i(S){if(o===setTimeout)return setTimeout(S,0);if((o===s||!o)&&setTimeout)return o=setTimeout,setTimeout(S,0);try{return o(S,0)}catch{try{return o.call(null,S,0)}catch{return o.call(this,S,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:s}catch{o=s}try{r=typeof clearTimeout=="function"?clearTimeout:e}catch{r=e}})();var u,a=[],h=!1,p=-1;function m(){h&&u&&(h=!1,u.length?a=u.concat(a):p=-1,a.length&&d())}function d(){if(!h){var S=i(m);h=!0;for(var C=a.length;C;){for(u=a,a=[];++p<C;)u&&u[p].run();p=-1,C=a.length}u=null,h=!1,(function(I){if(r===clearTimeout)return clearTimeout(I);if((r===e||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(I);try{r(I)}catch{try{return r.call(null,I)}catch{return r.call(this,I)}}})(S)}}function b(S,C){this.fun=S,this.array=C}function g(){}n.nextTick=function(S){var C=new Array(arguments.length-1);if(arguments.length>1)for(var I=1;I<arguments.length;I++)C[I-1]=arguments[I];a.push(new b(S,C)),a.length!==1||h||i(d)},b.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(S){return[]},n.binding=function(S){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(S){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},{}],468:[function(t,l,c){c.publicEncrypt=t("./publicEncrypt"),c.privateDecrypt=t("./privateDecrypt"),c.privateEncrypt=function(o,r){return c.publicEncrypt(o,r,!0)},c.publicDecrypt=function(o,r){return c.privateDecrypt(o,r,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(t,l,c){var o=t("create-hash"),r=t("safe-buffer").Buffer;function n(s){var e=r.allocUnsafe(4);return e.writeUInt32BE(s,0),e}l.exports=function(s,e){for(var i,u=r.alloc(0),a=0;u.length<e;)i=n(a++),u=r.concat([u,o("sha1").update(s).update(i).digest()]);return u.slice(0,e)}},{"create-hash":386,"safe-buffer":494}],470:[function(t,l,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],471:[function(t,l,c){var o=t("parse-asn1"),r=t("./mgf"),n=t("./xor"),s=t("bn.js"),e=t("browserify-rsa"),i=t("create-hash"),u=t("./withPublic"),a=t("safe-buffer").Buffer;l.exports=function(h,p,m){var d;d=h.padding?h.padding:m?1:4;var b,g=o(h),S=g.modulus.byteLength();if(p.length>S||new s(p).cmp(g.modulus)>=0)throw new Error("decryption error");b=m?u(new s(p),g):e(p,g);var C=a.alloc(S-b.length);if(b=a.concat([C,b],S),d===4)return(function(I,D){var z=I.modulus.byteLength(),P=i("sha1").update(a.alloc(0)).digest(),B=P.length;if(D[0]!==0)throw new Error("decryption error");var F=D.slice(1,B+1),W=D.slice(B+1),q=n(F,r(W,B)),A=n(W,r(q,z-B-1));if((function(k,y){k=a.from(k),y=a.from(y);var w=0,x=k.length;k.length!==y.length&&(w++,x=Math.min(k.length,y.length));for(var _=-1;++_<x;)w+=k[_]^y[_];return w})(P,A.slice(0,B)))throw new Error("decryption error");for(var M=B;A[M]===0;)M++;if(A[M++]!==1)throw new Error("decryption error");return A.slice(M)})(g,b);if(d===1)return(function(I,D,z){for(var P=D.slice(0,2),B=2,F=0;D[B++]!==0;)if(B>=D.length){F++;break}var W=D.slice(2,B-1);if((P.toString("hex")!=="0002"&&!z||P.toString("hex")!=="0001"&&z)&&F++,W.length<8&&F++,F)throw new Error("decryption error");return D.slice(B)})(0,b,m);if(d===3)return b;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(t,l,c){var o=t("parse-asn1"),r=t("randombytes"),n=t("create-hash"),s=t("./mgf"),e=t("./xor"),i=t("bn.js"),u=t("./withPublic"),a=t("browserify-rsa"),h=t("safe-buffer").Buffer;l.exports=function(p,m,d){var b;b=p.padding?p.padding:d?1:4;var g,S=o(p);if(b===4)g=(function(C,I){var D=C.modulus.byteLength(),z=I.length,P=n("sha1").update(h.alloc(0)).digest(),B=P.length,F=2*B;if(z>D-F-2)throw new Error("message too long");var W=h.alloc(D-z-F-2),q=D-B-1,A=r(B),M=e(h.concat([P,W,h.alloc(1,1),I],q),s(A,q)),k=e(A,s(M,B));return new i(h.concat([h.alloc(1),k,M],D))})(S,m);else if(b===1)g=(function(C,I,D){var z,P=I.length,B=C.modulus.byteLength();if(P>B-11)throw new Error("message too long");return z=D?h.alloc(B-P-3,255):(function(F){for(var W,q=h.allocUnsafe(F),A=0,M=r(2*F),k=0;A<F;)k===M.length&&(M=r(2*F),k=0),(W=M[k++])&&(q[A++]=W);return q})(B-P-3),new i(h.concat([h.from([0,D?1:2]),z,h.alloc(1),I],B))})(S,m,d);else{if(b!==3)throw new Error("unknown padding");if((g=new i(m)).cmp(S.modulus)>=0)throw new Error("data too long for modulus")}return d?a(g,S):u(g,S)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(t,l,c){var o=t("bn.js"),r=t("safe-buffer").Buffer;l.exports=function(n,s){return r.from(n.toRed(o.mont(s.modulus)).redPow(new o(s.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(t,l,c){l.exports=function(o,r){for(var n=o.length,s=-1;++s<n;)o[s]^=r[s];return o}},{}],475:[function(t,l,c){(function(o,r){(function(){var n=t("safe-buffer").Buffer,s=r.crypto||r.msCrypto;s&&s.getRandomValues?l.exports=function(e,i){if(e>4294967295)throw new RangeError("requested too many random bytes");var u=n.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)s.getRandomValues(u.slice(a,a+65536));else s.getRandomValues(u);return typeof i=="function"?o.nextTick((function(){i(null,u)})):u}:l.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
276
276
|
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,t("_process"),typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(t,l,c){(function(o,r){(function(){function n(){throw new Error(`secure random number generation not supported by this browser
|
|
277
277
|
use chrome, FireFox or Internet Explorer 11`)}var s=t("safe-buffer"),e=t("randombytes"),i=s.Buffer,u=s.kMaxLength,a=r.crypto||r.msCrypto,h=Math.pow(2,32)-1;function p(b,g){if(typeof b!="number"||b!=b)throw new TypeError("offset must be a number");if(b>h||b<0)throw new TypeError("offset must be a uint32");if(b>u||b>g)throw new RangeError("offset out of range")}function m(b,g,S){if(typeof b!="number"||b!=b)throw new TypeError("size must be a number");if(b>h||b<0)throw new TypeError("size must be a uint32");if(b+g>S||b>u)throw new RangeError("buffer too small")}function d(b,g,S,C){if(o.browser){var I=b.buffer,D=new Uint8Array(I,g,S);return a.getRandomValues(D),C?void o.nextTick((function(){C(null,b)})):b}if(!C)return e(S).copy(b,g),b;e(S,(function(z,P){if(z)return C(z);P.copy(b,g),C(null,b)}))}a&&a.getRandomValues||!o.browser?(c.randomFill=function(b,g,S,C){if(!(i.isBuffer(b)||b instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof g=="function")C=g,g=0,S=b.length;else if(typeof S=="function")C=S,S=b.length-g;else if(typeof C!="function")throw new TypeError('"cb" argument must be a function');return p(g,b.length),m(S,g,b.length),d(b,g,S,C)},c.randomFillSync=function(b,g,S){if(g===void 0&&(g=0),!(i.isBuffer(b)||b instanceof r.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return p(g,b.length),S===void 0&&(S=b.length-g),m(S,g,b.length),d(b,g,S)}):(c.randomFill=n,c.randomFillSync=n)}).call(this)}).call(this,t("_process"),typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(t,l,c){var o={};function r(s,e,i){i||(i=Error);var u=(function(a){var h,p;function m(d,b,g){return a.call(this,(function(S,C,I){return typeof e=="string"?e:e(S,C,I)})(d,b,g))||this}return p=a,(h=m).prototype=Object.create(p.prototype),h.prototype.constructor=h,h.__proto__=p,m})(i);u.prototype.name=i.name,u.prototype.code=s,o[s]=u}function n(s,e){if(Array.isArray(s)){var i=s.length;return s=s.map((function(u){return String(u)})),i>2?"one of ".concat(e," ").concat(s.slice(0,i-1).join(", "),", or ")+s[i-1]:i===2?"one of ".concat(e," ").concat(s[0]," or ").concat(s[1]):"of ".concat(e," ").concat(s[0])}return"of ".concat(e," ").concat(String(s))}r("ERR_INVALID_OPT_VALUE",(function(s,e){return'The value "'+e+'" is invalid for option "'+s+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(s,e,i){var u,a,h;if(typeof e=="string"&&(a="not ",e.substr(0,a.length)===a)?(u="must not be",e=e.replace(/^not /,"")):u="must be",(function(m,d,b){return(b===void 0||b>m.length)&&(b=m.length),m.substring(b-d.length,b)===d})(s," argument"))h="The ".concat(s," ").concat(u," ").concat(n(e,"type"));else{var p=(function(m,d,b){return typeof b!="number"&&(b=0),!(b+d.length>m.length)&&m.indexOf(d,b)!==-1})(s,".")?"property":"argument";h='The "'.concat(s,'" ').concat(p," ").concat(u," ").concat(n(e,"type"))}return h+=". Received type ".concat(typeof i)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(s){return"The "+s+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(s){return"Cannot call "+s+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(s){return"Unknown encoding: "+s}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),l.exports.codes=o},{}],478:[function(t,l,c){(function(o){(function(){var r=Object.keys||function(m){var d=[];for(var b in m)d.push(b);return d};l.exports=a;var n=t("./_stream_readable"),s=t("./_stream_writable");t("inherits")(a,n);for(var e=r(s.prototype),i=0;i<e.length;i++){var u=e[i];a.prototype[u]||(a.prototype[u]=s.prototype[u])}function a(m){if(!(this instanceof a))return new a(m);n.call(this,m),s.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",h)))}function h(){this._writableState.ended||o.nextTick(p,this)}function p(m){m.end()}Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(m){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=m,this._writableState.destroyed=m)}})}).call(this)}).call(this,t("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(t,l,c){l.exports=r;var o=t("./_stream_transform");function r(n){if(!(this instanceof r))return new r(n);o.call(this,n)}t("inherits")(r,o),r.prototype._transform=function(n,s,e){e(null,n)}},{"./_stream_transform":481,inherits:440}],480:[function(t,l,c){(function(o,r){(function(){var n;l.exports=q,q.ReadableState=W,t("events").EventEmitter;var s=function(N,R){return N.listeners(R).length},e=t("./internal/streams/stream"),i=t("buffer").Buffer,u=(r!==void 0?r:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},a,h=t("util");a=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m,d,b=t("./internal/streams/buffer_list"),g=t("./internal/streams/destroy"),S=t("./internal/streams/state").getHighWaterMark,C=t("../errors").codes,I=C.ERR_INVALID_ARG_TYPE,D=C.ERR_STREAM_PUSH_AFTER_EOF,z=C.ERR_METHOD_NOT_IMPLEMENTED,P=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t("inherits")(q,e);var B=g.errorOrDestroy,F=["error","close","destroy","pause","resume"];function W(N,R,U){n=n||t("./_stream_duplex"),N=N||{},typeof U!="boolean"&&(U=R instanceof n),this.objectMode=!!N.objectMode,U&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=S(this,N,"readableHighWaterMark",U),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(p||(p=t("string_decoder/").StringDecoder),this.decoder=new p(N.encoding),this.encoding=N.encoding)}function q(N){if(n=n||t("./_stream_duplex"),!(this instanceof q))return new q(N);var R=this instanceof n;this._readableState=new W(N,this,R),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),e.call(this)}function A(N,R,U,K,rt){a("readableAddChunk",R);var Z,et=N._readableState;if(R===null)et.reading=!1,(function(ht,lt){if(a("onEofChunk"),!lt.ended){if(lt.decoder){var Q=lt.decoder.end();Q&&Q.length&&(lt.buffer.push(Q),lt.length+=lt.objectMode?1:Q.length)}lt.ended=!0,lt.sync?y(ht):(lt.needReadable=!1,lt.emittedReadable||(lt.emittedReadable=!0,w(ht)))}})(N,et);else if(rt||(Z=(function(ht,lt){var Q;ot=lt,i.isBuffer(ot)||ot instanceof u||typeof lt=="string"||lt===void 0||ht.objectMode||(Q=new I("chunk",["string","Buffer","Uint8Array"],lt));var ot;return Q})(et,R)),Z)B(N,Z);else if(et.objectMode||R&&R.length>0)if(typeof R=="string"||et.objectMode||Object.getPrototypeOf(R)===i.prototype||(R=(function(ht){return i.from(ht)})(R)),K)et.endEmitted?B(N,new P):M(N,et,R,!0);else if(et.ended)B(N,new D);else{if(et.destroyed)return!1;et.reading=!1,et.decoder&&!U?(R=et.decoder.write(R),et.objectMode||R.length!==0?M(N,et,R,!1):x(N,et)):M(N,et,R,!1)}else K||(et.reading=!1,x(N,et));return!et.ended&&(et.length<et.highWaterMark||et.length===0)}function M(N,R,U,K){R.flowing&&R.length===0&&!R.sync?(R.awaitDrain=0,N.emit("data",U)):(R.length+=R.objectMode?1:U.length,K?R.buffer.unshift(U):R.buffer.push(U),R.needReadable&&y(N)),x(N,R)}Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(N){this._readableState&&(this._readableState.destroyed=N)}}),q.prototype.destroy=g.destroy,q.prototype._undestroy=g.undestroy,q.prototype._destroy=function(N,R){R(N)},q.prototype.push=function(N,R){var U,K=this._readableState;return K.objectMode?U=!0:typeof N=="string"&&((R=R||K.defaultEncoding)!==K.encoding&&(N=i.from(N,R),R=""),U=!0),A(this,N,R,!1,U)},q.prototype.unshift=function(N){return A(this,N,null,!0,!1)},q.prototype.isPaused=function(){return this._readableState.flowing===!1},q.prototype.setEncoding=function(N){p||(p=t("string_decoder/").StringDecoder);var R=new p(N);this._readableState.decoder=R,this._readableState.encoding=this._readableState.decoder.encoding;for(var U=this._readableState.buffer.head,K="";U!==null;)K+=R.write(U.data),U=U.next;return this._readableState.buffer.clear(),K!==""&&this._readableState.buffer.push(K),this._readableState.length=K.length,this};function k(N,R){return N<=0||R.length===0&&R.ended?0:R.objectMode?1:N!=N?R.flowing&&R.length?R.buffer.head.data.length:R.length:(N>R.highWaterMark&&(R.highWaterMark=(function(U){return U>=1073741824?U=1073741824:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U})(N)),N<=R.length?N:R.ended?R.length:(R.needReadable=!0,0))}function y(N){var R=N._readableState;a("emitReadable",R.needReadable,R.emittedReadable),R.needReadable=!1,R.emittedReadable||(a("emitReadable",R.flowing),R.emittedReadable=!0,o.nextTick(w,N))}function w(N){var R=N._readableState;a("emitReadable_",R.destroyed,R.length,R.ended),R.destroyed||!R.length&&!R.ended||(N.emit("readable"),R.emittedReadable=!1),R.needReadable=!R.flowing&&!R.ended&&R.length<=R.highWaterMark,V(N)}function x(N,R){R.readingMore||(R.readingMore=!0,o.nextTick(_,N,R))}function _(N,R){for(;!R.reading&&!R.ended&&(R.length<R.highWaterMark||R.flowing&&R.length===0);){var U=R.length;if(a("maybeReadMore read 0"),N.read(0),U===R.length)break}R.readingMore=!1}function T(N){var R=N._readableState;R.readableListening=N.listenerCount("readable")>0,R.resumeScheduled&&!R.paused?R.flowing=!0:N.listenerCount("data")>0&&N.resume()}function O(N){a("readable nexttick read 0"),N.read(0)}function j(N,R){a("resume",R.reading),R.reading||N.read(0),R.resumeScheduled=!1,N.emit("resume"),V(N),R.flowing&&!R.reading&&N.read(0)}function V(N){var R=N._readableState;for(a("flow",R.flowing);R.flowing&&N.read()!==null;);}function X(N,R){return R.length===0?null:(R.objectMode?U=R.buffer.shift():!N||N>=R.length?(U=R.decoder?R.buffer.join(""):R.buffer.length===1?R.buffer.first():R.buffer.concat(R.length),R.buffer.clear()):U=R.buffer.consume(N,R.decoder),U);var U}function J(N){var R=N._readableState;a("endReadable",R.endEmitted),R.endEmitted||(R.ended=!0,o.nextTick(L,R,N))}function L(N,R){if(a("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,R.readable=!1,R.emit("end"),N.autoDestroy)){var U=R._writableState;(!U||U.autoDestroy&&U.finished)&&R.destroy()}}function G(N,R){for(var U=0,K=N.length;U<K;U++)if(N[U]===R)return U;return-1}q.prototype.read=function(N){a("read",N),N=parseInt(N,10);var R=this._readableState,U=N;if(N!==0&&(R.emittedReadable=!1),N===0&&R.needReadable&&((R.highWaterMark!==0?R.length>=R.highWaterMark:R.length>0)||R.ended))return a("read: emitReadable",R.length,R.ended),R.length===0&&R.ended?J(this):y(this),null;if((N=k(N,R))===0&&R.ended)return R.length===0&&J(this),null;var K,rt=R.needReadable;return a("need readable",rt),(R.length===0||R.length-N<R.highWaterMark)&&a("length less than watermark",rt=!0),R.ended||R.reading?a("reading or ended",rt=!1):rt&&(a("do read"),R.reading=!0,R.sync=!0,R.length===0&&(R.needReadable=!0),this._read(R.highWaterMark),R.sync=!1,R.reading||(N=k(U,R))),(K=N>0?X(N,R):null)===null?(R.needReadable=R.length<=R.highWaterMark,N=0):(R.length-=N,R.awaitDrain=0),R.length===0&&(R.ended||(R.needReadable=!0),U!==N&&R.ended&&J(this)),K!==null&&this.emit("data",K),K},q.prototype._read=function(N){B(this,new z("_read()"))},q.prototype.pipe=function(N,R){var U=this,K=this._readableState;switch(K.pipesCount){case 0:K.pipes=N;break;case 1:K.pipes=[K.pipes,N];break;default:K.pipes.push(N)}K.pipesCount+=1,a("pipe count=%d opts=%j",K.pipesCount,R);var rt=(!R||R.end!==!1)&&N!==o.stdout&&N!==o.stderr?et:ct;function Z(ft,mt){a("onunpipe"),ft===U&&mt&&mt.hasUnpiped===!1&&(mt.hasUnpiped=!0,a("cleanup"),N.removeListener("close",nt),N.removeListener("finish",ut),N.removeListener("drain",ht),N.removeListener("error",ot),N.removeListener("unpipe",Z),U.removeListener("end",et),U.removeListener("end",ct),U.removeListener("data",Q),lt=!0,!K.awaitDrain||N._writableState&&!N._writableState.needDrain||ht())}function et(){a("onend"),N.end()}K.endEmitted?o.nextTick(rt):U.once("end",rt),N.on("unpipe",Z);var ht=(function(ft){return function(){var mt=ft._readableState;a("pipeOnDrain",mt.awaitDrain),mt.awaitDrain&&mt.awaitDrain--,mt.awaitDrain===0&&s(ft,"data")&&(mt.flowing=!0,V(ft))}})(U);N.on("drain",ht);var lt=!1;function Q(ft){a("ondata");var mt=N.write(ft);a("dest.write",mt),mt===!1&&((K.pipesCount===1&&K.pipes===N||K.pipesCount>1&&G(K.pipes,N)!==-1)&&!lt&&(a("false write response, pause",K.awaitDrain),K.awaitDrain++),U.pause())}function ot(ft){a("onerror",ft),ct(),N.removeListener("error",ot),s(N,"error")===0&&B(N,ft)}function nt(){N.removeListener("finish",ut),ct()}function ut(){a("onfinish"),N.removeListener("close",nt),ct()}function ct(){a("unpipe"),U.unpipe(N)}return U.on("data",Q),(function(ft,mt,gt){if(typeof ft.prependListener=="function")return ft.prependListener(mt,gt);ft._events&&ft._events[mt]?Array.isArray(ft._events[mt])?ft._events[mt].unshift(gt):ft._events[mt]=[gt,ft._events[mt]]:ft.on(mt,gt)})(N,"error",ot),N.once("close",nt),N.once("finish",ut),N.emit("pipe",U),K.flowing||(a("pipe resume"),U.resume()),N},q.prototype.unpipe=function(N){var R=this._readableState,U={hasUnpiped:!1};if(R.pipesCount===0)return this;if(R.pipesCount===1)return N&&N!==R.pipes||(N||(N=R.pipes),R.pipes=null,R.pipesCount=0,R.flowing=!1,N&&N.emit("unpipe",this,U)),this;if(!N){var K=R.pipes,rt=R.pipesCount;R.pipes=null,R.pipesCount=0,R.flowing=!1;for(var Z=0;Z<rt;Z++)K[Z].emit("unpipe",this,{hasUnpiped:!1});return this}var et=G(R.pipes,N);return et===-1||(R.pipes.splice(et,1),R.pipesCount-=1,R.pipesCount===1&&(R.pipes=R.pipes[0]),N.emit("unpipe",this,U)),this},q.prototype.on=function(N,R){var U=e.prototype.on.call(this,N,R),K=this._readableState;return N==="data"?(K.readableListening=this.listenerCount("readable")>0,K.flowing!==!1&&this.resume()):N==="readable"&&(K.endEmitted||K.readableListening||(K.readableListening=K.needReadable=!0,K.flowing=!1,K.emittedReadable=!1,a("on readable",K.length,K.reading),K.length?y(this):K.reading||o.nextTick(O,this))),U},q.prototype.addListener=q.prototype.on,q.prototype.removeListener=function(N,R){var U=e.prototype.removeListener.call(this,N,R);return N==="readable"&&o.nextTick(T,this),U},q.prototype.removeAllListeners=function(N){var R=e.prototype.removeAllListeners.apply(this,arguments);return N!=="readable"&&N!==void 0||o.nextTick(T,this),R},q.prototype.resume=function(){var N=this._readableState;return N.flowing||(a("resume"),N.flowing=!N.readableListening,(function(R,U){U.resumeScheduled||(U.resumeScheduled=!0,o.nextTick(j,R,U))})(this,N)),N.paused=!1,this},q.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},q.prototype.wrap=function(N){var R=this,U=this._readableState,K=!1;for(var rt in N.on("end",(function(){if(a("wrapped end"),U.decoder&&!U.ended){var et=U.decoder.end();et&&et.length&&R.push(et)}R.push(null)})),N.on("data",(function(et){a("wrapped data"),U.decoder&&(et=U.decoder.write(et)),U.objectMode&&et==null||(U.objectMode||et&&et.length)&&(R.push(et)||(K=!0,N.pause()))})),N)this[rt]===void 0&&typeof N[rt]=="function"&&(this[rt]=(function(et){return function(){return N[et].apply(N,arguments)}})(rt));for(var Z=0;Z<F.length;Z++)N.on(F[Z],this.emit.bind(this,F[Z]));return this._read=function(et){a("wrapped _read",et),K&&(K=!1,N.resume())},this},typeof Symbol=="function"&&(q.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=t("./internal/streams/async_iterator")),m(this)}),Object.defineProperty(q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(N){this._readableState&&(this._readableState.flowing=N)}}),q._fromList=X,Object.defineProperty(q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(q.from=function(N,R){return d===void 0&&(d=t("./internal/streams/from")),d(q,N,R)})}).call(this)}).call(this,t("_process"),typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(t,l,c){l.exports=a;var o=t("../errors").codes,r=o.ERR_METHOD_NOT_IMPLEMENTED,n=o.ERR_MULTIPLE_CALLBACK,s=o.ERR_TRANSFORM_ALREADY_TRANSFORMING,e=o.ERR_TRANSFORM_WITH_LENGTH_0,i=t("./_stream_duplex");function u(m,d){var b=this._transformState;b.transforming=!1;var g=b.writecb;if(g===null)return this.emit("error",new n);b.writechunk=null,b.writecb=null,d!=null&&this.push(d),g(m);var S=this._readableState;S.reading=!1,(S.needReadable||S.length<S.highWaterMark)&&this._read(S.highWaterMark)}function a(m){if(!(this instanceof a))return new a(m);i.call(this,m),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,m&&(typeof m.transform=="function"&&(this._transform=m.transform),typeof m.flush=="function"&&(this._flush=m.flush)),this.on("prefinish",h)}function h(){var m=this;typeof this._flush!="function"||this._readableState.destroyed?p(this,null,null):this._flush((function(d,b){p(m,d,b)}))}function p(m,d,b){if(d)return m.emit("error",d);if(b!=null&&m.push(b),m._writableState.length)throw new e;if(m._transformState.transforming)throw new s;return m.push(null)}t("inherits")(a,i),a.prototype.push=function(m,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,m,d)},a.prototype._transform=function(m,d,b){b(new r("_transform()"))},a.prototype._write=function(m,d,b){var g=this._transformState;if(g.writecb=b,g.writechunk=m,g.writeencoding=d,!g.transforming){var S=this._readableState;(g.needTransform||S.needReadable||S.length<S.highWaterMark)&&this._read(S.highWaterMark)}},a.prototype._read=function(m){var d=this._transformState;d.writechunk===null||d.transforming?d.needTransform=!0:(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform))},a.prototype._destroy=function(m,d){i.prototype._destroy.call(this,m,(function(b){d(b)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(t,l,c){(function(o,r){(function(){function n(_){var T=this;this.next=null,this.entry=null,this.finish=function(){(function(O,j,V){var X=O.entry;for(O.entry=null;X;){var J=X.callback;j.pendingcb--,J(V),X=X.next}j.corkedRequestsFree.next=O})(T,_)}}var s;l.exports=q,q.WritableState=W;var e={deprecate:t("util-deprecate")},i=t("./internal/streams/stream"),u=t("buffer").Buffer,a=(r!==void 0?r:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},h,p=t("./internal/streams/destroy"),m=t("./internal/streams/state").getHighWaterMark,d=t("../errors").codes,b=d.ERR_INVALID_ARG_TYPE,g=d.ERR_METHOD_NOT_IMPLEMENTED,S=d.ERR_MULTIPLE_CALLBACK,C=d.ERR_STREAM_CANNOT_PIPE,I=d.ERR_STREAM_DESTROYED,D=d.ERR_STREAM_NULL_VALUES,z=d.ERR_STREAM_WRITE_AFTER_END,P=d.ERR_UNKNOWN_ENCODING,B=p.errorOrDestroy;function F(){}function W(_,T,O){s=s||t("./_stream_duplex"),_=_||{},typeof O!="boolean"&&(O=T instanceof s),this.objectMode=!!_.objectMode,O&&(this.objectMode=this.objectMode||!!_.writableObjectMode),this.highWaterMark=m(this,_,"writableHighWaterMark",O),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var j=_.decodeStrings===!1;this.decodeStrings=!j,this.defaultEncoding=_.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(V){(function(X,J){var L=X._writableState,G=L.sync,N=L.writecb;if(typeof N!="function")throw new S;if((function(U){U.writing=!1,U.writecb=null,U.length-=U.writelen,U.writelen=0})(L),J)(function(U,K,rt,Z,et){--K.pendingcb,rt?(o.nextTick(et,Z),o.nextTick(x,U,K),U._writableState.errorEmitted=!0,B(U,Z)):(et(Z),U._writableState.errorEmitted=!0,B(U,Z),x(U,K))})(X,L,G,J,N);else{var R=y(L)||X.destroyed;R||L.corked||L.bufferProcessing||!L.bufferedRequest||k(X,L),G?o.nextTick(M,X,L,R,N):M(X,L,R,N)}})(T,V)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=_.emitClose!==!1,this.autoDestroy=!!_.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function q(_){var T=this instanceof(s=s||t("./_stream_duplex"));if(!T&&!h.call(q,this))return new q(_);this._writableState=new W(_,this,T),this.writable=!0,_&&(typeof _.write=="function"&&(this._write=_.write),typeof _.writev=="function"&&(this._writev=_.writev),typeof _.destroy=="function"&&(this._destroy=_.destroy),typeof _.final=="function"&&(this._final=_.final)),i.call(this)}function A(_,T,O,j,V,X,J){T.writelen=j,T.writecb=J,T.writing=!0,T.sync=!0,T.destroyed?T.onwrite(new I("write")):O?_._writev(V,T.onwrite):_._write(V,X,T.onwrite),T.sync=!1}function M(_,T,O,j){O||(function(V,X){X.length===0&&X.needDrain&&(X.needDrain=!1,V.emit("drain"))})(_,T),T.pendingcb--,j(),x(_,T)}function k(_,T){T.bufferProcessing=!0;var O=T.bufferedRequest;if(_._writev&&O&&O.next){var j=T.bufferedRequestCount,V=new Array(j),X=T.corkedRequestsFree;X.entry=O;for(var J=0,L=!0;O;)V[J]=O,O.isBuf||(L=!1),O=O.next,J+=1;V.allBuffers=L,A(_,T,!0,T.length,V,"",X.finish),T.pendingcb++,T.lastBufferedRequest=null,X.next?(T.corkedRequestsFree=X.next,X.next=null):T.corkedRequestsFree=new n(T),T.bufferedRequestCount=0}else{for(;O;){var G=O.chunk,N=O.encoding,R=O.callback;if(A(_,T,!1,T.objectMode?1:G.length,G,N,R),O=O.next,T.bufferedRequestCount--,T.writing)break}O===null&&(T.lastBufferedRequest=null)}T.bufferedRequest=O,T.bufferProcessing=!1}function y(_){return _.ending&&_.length===0&&_.bufferedRequest===null&&!_.finished&&!_.writing}function w(_,T){_._final((function(O){T.pendingcb--,O&&B(_,O),T.prefinished=!0,_.emit("prefinish"),x(_,T)}))}function x(_,T){var O=y(T);if(O&&((function(V,X){X.prefinished||X.finalCalled||(typeof V._final!="function"||X.destroyed?(X.prefinished=!0,V.emit("prefinish")):(X.pendingcb++,X.finalCalled=!0,o.nextTick(w,V,X)))})(_,T),T.pendingcb===0&&(T.finished=!0,_.emit("finish"),T.autoDestroy))){var j=_._readableState;(!j||j.autoDestroy&&j.endEmitted)&&_.destroy()}return O}t("inherits")(q,i),W.prototype.getBuffer=function(){for(var _=this.bufferedRequest,T=[];_;)T.push(_),_=_.next;return T},(function(){try{Object.defineProperty(W.prototype,"buffer",{get:e.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(q,Symbol.hasInstance,{value:function(_){return!!h.call(this,_)||this===q&&_&&_._writableState instanceof W}})):h=function(_){return _ instanceof this},q.prototype.pipe=function(){B(this,new C)},q.prototype.write=function(_,T,O){var j,V=this._writableState,X=!1,J=!V.objectMode&&(j=_,u.isBuffer(j)||j instanceof a);return J&&!u.isBuffer(_)&&(_=(function(L){return u.from(L)})(_)),typeof T=="function"&&(O=T,T=null),J?T="buffer":T||(T=V.defaultEncoding),typeof O!="function"&&(O=F),V.ending?(function(L,G){var N=new z;B(L,N),o.nextTick(G,N)})(this,O):(J||(function(L,G,N,R){var U;return N===null?U=new D:typeof N=="string"||G.objectMode||(U=new b("chunk",["string","Buffer"],N)),!U||(B(L,U),o.nextTick(R,U),!1)})(this,V,_,O))&&(V.pendingcb++,X=(function(L,G,N,R,U,K){if(!N){var rt=(function(lt,Q,ot){return lt.objectMode||lt.decodeStrings===!1||typeof Q!="string"||(Q=u.from(Q,ot)),Q})(G,R,U);R!==rt&&(N=!0,U="buffer",R=rt)}var Z=G.objectMode?1:R.length;G.length+=Z;var et=G.length<G.highWaterMark;if(et||(G.needDrain=!0),G.writing||G.corked){var ht=G.lastBufferedRequest;G.lastBufferedRequest={chunk:R,encoding:U,isBuf:N,callback:K,next:null},ht?ht.next=G.lastBufferedRequest:G.bufferedRequest=G.lastBufferedRequest,G.bufferedRequestCount+=1}else A(L,G,!1,Z,R,U,K);return et})(this,V,J,_,T,O)),X},q.prototype.cork=function(){this._writableState.corked++},q.prototype.uncork=function(){var _=this._writableState;_.corked&&(_.corked--,_.writing||_.corked||_.bufferProcessing||!_.bufferedRequest||k(this,_))},q.prototype.setDefaultEncoding=function(_){if(typeof _=="string"&&(_=_.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((_+"").toLowerCase())>-1))throw new P(_);return this._writableState.defaultEncoding=_,this},Object.defineProperty(q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),q.prototype._write=function(_,T,O){O(new g("_write()"))},q.prototype._writev=null,q.prototype.end=function(_,T,O){var j=this._writableState;return typeof _=="function"?(O=_,_=null,T=null):typeof T=="function"&&(O=T,T=null),_!=null&&this.write(_,T),j.corked&&(j.corked=1,this.uncork()),j.ending||(function(V,X,J){X.ending=!0,x(V,X),J&&(X.finished?o.nextTick(J):V.once("finish",J)),X.ended=!0,V.writable=!1})(this,j,O),this},Object.defineProperty(q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(q.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(_){this._writableState&&(this._writableState.destroyed=_)}}),q.prototype.destroy=p.destroy,q.prototype._undestroy=p.undestroy,q.prototype._destroy=function(_,T){T(_)}}).call(this)}).call(this,t("_process"),typeof pe<"u"?pe:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(t,l,c){(function(o){(function(){var r;function n(I,D,z){return(D=(function(P){var B=(function(F,W){if(typeof F!="object"||F===null)return F;var q=F[Symbol.toPrimitive];if(q!==void 0){var A=q.call(F,W);if(typeof A!="object")return A;throw new TypeError("@@toPrimitive must return a primitive value.")}return(W==="string"?String:Number)(F)})(P,"string");return typeof B=="symbol"?B:String(B)})(D))in I?Object.defineProperty(I,D,{value:z,enumerable:!0,configurable:!0,writable:!0}):I[D]=z,I}var s=t("./end-of-stream"),e=Symbol("lastResolve"),i=Symbol("lastReject"),u=Symbol("error"),a=Symbol("ended"),h=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream");function d(I,D){return{value:I,done:D}}function b(I){var D=I[e];if(D!==null){var z=I[m].read();z!==null&&(I[h]=null,I[e]=null,I[i]=null,D(d(z,!1)))}}function g(I){o.nextTick(b,I)}var S=Object.getPrototypeOf((function(){})),C=Object.setPrototypeOf((n(r={get stream(){return this[m]},next:function(){var I=this,D=this[u];if(D!==null)return Promise.reject(D);if(this[a])return Promise.resolve(d(void 0,!0));if(this[m].destroyed)return new Promise((function(F,W){o.nextTick((function(){I[u]?W(I[u]):F(d(void 0,!0))}))}));var z,P=this[h];if(P)z=new Promise((function(F,W){return function(q,A){F.then((function(){W[a]?q(d(void 0,!0)):W[p](q,A)}),A)}})(P,this));else{var B=this[m].read();if(B!==null)return Promise.resolve(d(B,!1));z=new Promise(this[p])}return this[h]=z,z}},Symbol.asyncIterator,(function(){return this})),n(r,"return",(function(){var I=this;return new Promise((function(D,z){I[m].destroy(null,(function(P){P?z(P):D(d(void 0,!0))}))}))})),r),S);l.exports=function(I){var D,z=Object.create(C,(n(D={},m,{value:I,writable:!0}),n(D,e,{value:null,writable:!0}),n(D,i,{value:null,writable:!0}),n(D,u,{value:null,writable:!0}),n(D,a,{value:I._readableState.endEmitted,writable:!0}),n(D,p,{value:function(P,B){var F=z[m].read();F?(z[h]=null,z[e]=null,z[i]=null,P(d(F,!1))):(z[e]=P,z[i]=B)},writable:!0}),D));return z[h]=null,s(I,(function(P){if(P&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){var B=z[i];return B!==null&&(z[h]=null,z[e]=null,z[i]=null,B(P)),void(z[u]=P)}var F=z[e];F!==null&&(z[h]=null,z[e]=null,z[i]=null,F(d(void 0,!0))),z[a]=!0})),I.on("readable",g.bind(null,z)),z}}).call(this)}).call(this,t("_process"))},{"./end-of-stream":486,_process:467}],484:[function(t,l,c){function o(h,p){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(h);p&&(d=d.filter((function(b){return Object.getOwnPropertyDescriptor(h,b).enumerable}))),m.push.apply(m,d)}return m}function r(h){for(var p=1;p<arguments.length;p++){var m=arguments[p]!=null?arguments[p]:{};p%2?o(Object(m),!0).forEach((function(d){n(h,d,m[d])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):o(Object(m)).forEach((function(d){Object.defineProperty(h,d,Object.getOwnPropertyDescriptor(m,d))}))}return h}function n(h,p,m){return(p=e(p))in h?Object.defineProperty(h,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[p]=m,h}function s(h,p){for(var m=0;m<p.length;m++){var d=p[m];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(h,e(d.key),d)}}function e(h){var p=(function(m,d){if(typeof m!="object"||m===null)return m;var b=m[Symbol.toPrimitive];if(b!==void 0){var g=b.call(m,d);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(m)})(h,"string");return typeof p=="symbol"?p:String(p)}var i=t("buffer").Buffer,u=t("util").inspect,a=u&&u.custom||"inspect";l.exports=(function(){function h(){(function(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")})(this,h),this.head=null,this.tail=null,this.length=0}var p,m;return p=h,(m=[{key:"push",value:function(d){var b={data:d,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(d){var b={data:d,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var d=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,d}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(d){if(this.length===0)return"";for(var b=this.head,g=""+b.data;b=b.next;)g+=d+b.data;return g}},{key:"concat",value:function(d){if(this.length===0)return i.alloc(0);for(var b,g,S,C=i.allocUnsafe(d>>>0),I=this.head,D=0;I;)b=I.data,g=C,S=D,i.prototype.copy.call(b,g,S),D+=I.data.length,I=I.next;return C}},{key:"consume",value:function(d,b){var g;return d<this.head.data.length?(g=this.head.data.slice(0,d),this.head.data=this.head.data.slice(d)):g=d===this.head.data.length?this.shift():b?this._getString(d):this._getBuffer(d),g}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(d){var b=this.head,g=1,S=b.data;for(d-=S.length;b=b.next;){var C=b.data,I=d>C.length?C.length:d;if(I===C.length?S+=C:S+=C.slice(0,d),(d-=I)==0){I===C.length?(++g,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=C.slice(I));break}++g}return this.length-=g,S}},{key:"_getBuffer",value:function(d){var b=i.allocUnsafe(d),g=this.head,S=1;for(g.data.copy(b),d-=g.data.length;g=g.next;){var C=g.data,I=d>C.length?C.length:d;if(C.copy(b,b.length-d,0,I),(d-=I)==0){I===C.length?(++S,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=C.slice(I));break}++S}return this.length-=S,b}},{key:a,value:function(d,b){return u(this,r(r({},b),{},{depth:0,customInspect:!1}))}}])&&s(p.prototype,m),Object.defineProperty(p,"prototype",{writable:!1}),h})()},{buffer:220,util:188}],485:[function(t,l,c){(function(o){(function(){function r(e,i){s(e,i),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(e,i){e.emit("error",i)}l.exports={destroy:function(e,i){var u=this,a=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return a||h?(i?i(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(s,this,e)):o.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(p){!i&&p?u._writableState?u._writableState.errorEmitted?o.nextTick(n,u):(u._writableState.errorEmitted=!0,o.nextTick(r,u,p)):o.nextTick(r,u,p):i?(o.nextTick(n,u),i(p)):o.nextTick(n,u)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,i){var u=e._readableState,a=e._writableState;u&&u.autoDestroy||a&&a.autoDestroy?e.destroy(i):e.emit("error",i)}}}).call(this)}).call(this,t("_process"))},{_process:467}],486:[function(t,l,c){var o=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function r(){}l.exports=function n(s,e,i){if(typeof e=="function")return n(s,null,e);e||(e={}),i=(function(I){var D=!1;return function(){if(!D){D=!0;for(var z=arguments.length,P=new Array(z),B=0;B<z;B++)P[B]=arguments[B];I.apply(this,P)}}})(i||r);var u=e.readable||e.readable!==!1&&s.readable,a=e.writable||e.writable!==!1&&s.writable,h=function(){s.writable||m()},p=s._writableState&&s._writableState.finished,m=function(){a=!1,p=!0,u||i.call(s)},d=s._readableState&&s._readableState.endEmitted,b=function(){u=!1,d=!0,a||i.call(s)},g=function(I){i.call(s,I)},S=function(){var I;return u&&!d?(s._readableState&&s._readableState.ended||(I=new o),i.call(s,I)):a&&!p?(s._writableState&&s._writableState.ended||(I=new o),i.call(s,I)):void 0},C=function(){s.req.on("finish",m)};return(function(I){return I.setHeader&&typeof I.abort=="function"})(s)?(s.on("complete",m),s.on("abort",S),s.req?C():s.on("request",C)):a&&!s._writableState&&(s.on("end",h),s.on("close",h)),s.on("end",b),s.on("finish",m),e.error!==!1&&s.on("error",g),s.on("close",S),function(){s.removeListener("complete",m),s.removeListener("abort",S),s.removeListener("request",C),s.req&&s.req.removeListener("finish",m),s.removeListener("end",h),s.removeListener("close",h),s.removeListener("finish",m),s.removeListener("end",b),s.removeListener("error",g),s.removeListener("close",S)}}},{"../../../errors":477}],487:[function(t,l,c){l.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(t,l,c){var o,r=t("../../../errors").codes,n=r.ERR_MISSING_ARGS,s=r.ERR_STREAM_DESTROYED;function e(p){if(p)throw p}function i(p,m,d,b){b=(function(C){var I=!1;return function(){I||(I=!0,C.apply(void 0,arguments))}})(b);var g=!1;p.on("close",(function(){g=!0})),o===void 0&&(o=t("./end-of-stream")),o(p,{readable:m,writable:d},(function(C){if(C)return b(C);g=!0,b()}));var S=!1;return function(C){if(!g&&!S)return S=!0,(function(I){return I.setHeader&&typeof I.abort=="function"})(p)?p.abort():typeof p.destroy=="function"?p.destroy():void b(C||new s("pipe"))}}function u(p){p()}function a(p,m){return p.pipe(m)}function h(p){return p.length?typeof p[p.length-1]!="function"?e:p.pop():e}l.exports=function(){for(var p=arguments.length,m=new Array(p),d=0;d<p;d++)m[d]=arguments[d];var b,g=h(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new n("streams");var S=m.map((function(C,I){var D=I<m.length-1;return i(C,D,I>0,(function(z){b||(b=z),z&&S.forEach(u),D||(S.forEach(u),g(b))}))}));return m.reduce(a)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(t,l,c){var o=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;l.exports={getHighWaterMark:function(r,n,s,e){var i=(function(u,a,h){return u.highWaterMark!=null?u.highWaterMark:a?u[h]:null})(n,e,s);if(i!=null){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new o(e?s:"highWaterMark",i);return Math.floor(i)}return r.objectMode?16:16384}}},{"../../../errors":477}],490:[function(t,l,c){l.exports=t("events").EventEmitter},{events:422}],491:[function(t,l,c){(c=l.exports=t("./lib/_stream_readable.js")).Stream=c,c.Readable=c,c.Writable=t("./lib/_stream_writable.js"),c.Duplex=t("./lib/_stream_duplex.js"),c.Transform=t("./lib/_stream_transform.js"),c.PassThrough=t("./lib/_stream_passthrough.js"),c.finished=t("./lib/internal/streams/end-of-stream.js"),c.pipeline=t("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(t,l,c){var o=(function(r){var n=Object.prototype,s=n.hasOwnProperty,e=Object.defineProperty||function(x,_,T){x[_]=T.value},i=typeof Symbol=="function"?Symbol:{},u=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",h=i.toStringTag||"@@toStringTag";function p(x,_,T){return Object.defineProperty(x,_,{value:T,enumerable:!0,configurable:!0,writable:!0}),x[_]}try{p({},"")}catch{p=function(_,T,O){return _[T]=O}}function m(x,_,T,O){var j=_&&_.prototype instanceof g?_:g,V=Object.create(j.prototype),X=new k(O||[]);return e(V,"_invoke",{value:W(x,T,X)}),V}function d(x,_,T){try{return{type:"normal",arg:x.call(_,T)}}catch(O){return{type:"throw",arg:O}}}r.wrap=m;var b={};function g(){}function S(){}function C(){}var I={};p(I,u,(function(){return this}));var D=Object.getPrototypeOf,z=D&&D(D(y([])));z&&z!==n&&s.call(z,u)&&(I=z);var P=C.prototype=g.prototype=Object.create(I);function B(x){["next","throw","return"].forEach((function(_){p(x,_,(function(T){return this._invoke(_,T)}))}))}function F(x,_){var T;e(this,"_invoke",{value:function(O,j){function V(){return new _((function(X,J){(function L(G,N,R,U){var K=d(x[G],x,N);if(K.type!=="throw"){var rt=K.arg,Z=rt.value;return Z&&typeof Z=="object"&&s.call(Z,"__await")?_.resolve(Z.__await).then((function(et){L("next",et,R,U)}),(function(et){L("throw",et,R,U)})):_.resolve(Z).then((function(et){rt.value=et,R(rt)}),(function(et){return L("throw",et,R,U)}))}U(K.arg)})(O,j,X,J)}))}return T=T?T.then(V,V):V()}})}function W(x,_,T){var O="suspendedStart";return function(j,V){if(O==="executing")throw new Error("Generator is already running");if(O==="completed"){if(j==="throw")throw V;return w()}for(T.method=j,T.arg=V;;){var X=T.delegate;if(X){var J=q(X,T);if(J){if(J===b)continue;return J}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(O==="suspendedStart")throw O="completed",T.arg;T.dispatchException(T.arg)}else T.method==="return"&&T.abrupt("return",T.arg);O="executing";var L=d(x,_,T);if(L.type==="normal"){if(O=T.done?"completed":"suspendedYield",L.arg===b)continue;return{value:L.arg,done:T.done}}L.type==="throw"&&(O="completed",T.method="throw",T.arg=L.arg)}}}function q(x,_){var T=_.method,O=x.iterator[T];if(O===void 0)return _.delegate=null,T==="throw"&&x.iterator.return&&(_.method="return",_.arg=void 0,q(x,_),_.method==="throw")||T!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+T+"' method")),b;var j=d(O,x.iterator,_.arg);if(j.type==="throw")return _.method="throw",_.arg=j.arg,_.delegate=null,b;var V=j.arg;return V?V.done?(_[x.resultName]=V.value,_.next=x.nextLoc,_.method!=="return"&&(_.method="next",_.arg=void 0),_.delegate=null,b):V:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,b)}function A(x){var _={tryLoc:x[0]};1 in x&&(_.catchLoc=x[1]),2 in x&&(_.finallyLoc=x[2],_.afterLoc=x[3]),this.tryEntries.push(_)}function M(x){var _=x.completion||{};_.type="normal",delete _.arg,x.completion=_}function k(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(A,this),this.reset(!0)}function y(x){if(x){var _=x[u];if(_)return _.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var T=-1,O=function j(){for(;++T<x.length;)if(s.call(x,T))return j.value=x[T],j.done=!1,j;return j.value=void 0,j.done=!0,j};return O.next=O}}return{next:w}}function w(){return{value:void 0,done:!0}}return S.prototype=C,e(P,"constructor",{value:C,configurable:!0}),e(C,"constructor",{value:S,configurable:!0}),S.displayName=p(C,h,"GeneratorFunction"),r.isGeneratorFunction=function(x){var _=typeof x=="function"&&x.constructor;return!!_&&(_===S||(_.displayName||_.name)==="GeneratorFunction")},r.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,C):(x.__proto__=C,p(x,h,"GeneratorFunction")),x.prototype=Object.create(P),x},r.awrap=function(x){return{__await:x}},B(F.prototype),p(F.prototype,a,(function(){return this})),r.AsyncIterator=F,r.async=function(x,_,T,O,j){j===void 0&&(j=Promise);var V=new F(m(x,_,T,O),j);return r.isGeneratorFunction(_)?V:V.next().then((function(X){return X.done?X.value:V.next()}))},B(P),p(P,h,"Generator"),p(P,u,(function(){return this})),p(P,"toString",(function(){return"[object Generator]"})),r.keys=function(x){var _=Object(x),T=[];for(var O in _)T.push(O);return T.reverse(),function j(){for(;T.length;){var V=T.pop();if(V in _)return j.value=V,j.done=!1,j}return j.done=!0,j}},r.values=y,k.prototype={constructor:k,reset:function(x){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!x)for(var _ in this)_.charAt(0)==="t"&&s.call(this,_)&&!isNaN(+_.slice(1))&&(this[_]=void 0)},stop:function(){this.done=!0;var x=this.tryEntries[0].completion;if(x.type==="throw")throw x.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var _=this;function T(L,G){return V.type="throw",V.arg=x,_.next=L,G&&(_.method="next",_.arg=void 0),!!G}for(var O=this.tryEntries.length-1;O>=0;--O){var j=this.tryEntries[O],V=j.completion;if(j.tryLoc==="root")return T("end");if(j.tryLoc<=this.prev){var X=s.call(j,"catchLoc"),J=s.call(j,"finallyLoc");if(X&&J){if(this.prev<j.catchLoc)return T(j.catchLoc,!0);if(this.prev<j.finallyLoc)return T(j.finallyLoc)}else if(X){if(this.prev<j.catchLoc)return T(j.catchLoc,!0)}else{if(!J)throw new Error("try statement without catch or finally");if(this.prev<j.finallyLoc)return T(j.finallyLoc)}}}},abrupt:function(x,_){for(var T=this.tryEntries.length-1;T>=0;--T){var O=this.tryEntries[T];if(O.tryLoc<=this.prev&&s.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var j=O;break}}j&&(x==="break"||x==="continue")&&j.tryLoc<=_&&_<=j.finallyLoc&&(j=null);var V=j?j.completion:{};return V.type=x,V.arg=_,j?(this.method="next",this.next=j.finallyLoc,b):this.complete(V)},complete:function(x,_){if(x.type==="throw")throw x.arg;return x.type==="break"||x.type==="continue"?this.next=x.arg:x.type==="return"?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):x.type==="normal"&&_&&(this.next=_),b},finish:function(x){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.finallyLoc===x)return this.complete(T.completion,T.afterLoc),M(T),b}},catch:function(x){for(var _=this.tryEntries.length-1;_>=0;--_){var T=this.tryEntries[_];if(T.tryLoc===x){var O=T.completion;if(O.type==="throw"){var j=O.arg;M(T)}return j}}throw new Error("illegal catch attempt")},delegateYield:function(x,_,T){return this.delegate={iterator:y(x),resultName:_,nextLoc:T},this.method==="next"&&(this.arg=void 0),b}},r})(typeof l=="object"?l.exports:{});try{regeneratorRuntime=o}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},{}],493:[function(t,l,c){var o=t("buffer").Buffer,r=t("inherits"),n=t("hash-base"),s=new Array(16),e=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],i=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],a=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],h=[0,1518500249,1859775393,2400959708,2840853838],p=[1352829926,1548603684,1836072691,2053994217,0];function m(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(D,z){return D<<z|D>>>32-z}function b(D,z,P,B,F,W,q,A){return d(D+(z^P^B)+W+q|0,A)+F|0}function g(D,z,P,B,F,W,q,A){return d(D+(z&P|~z&B)+W+q|0,A)+F|0}function S(D,z,P,B,F,W,q,A){return d(D+((z|~P)^B)+W+q|0,A)+F|0}function C(D,z,P,B,F,W,q,A){return d(D+(z&B|P&~B)+W+q|0,A)+F|0}function I(D,z,P,B,F,W,q,A){return d(D+(z^(P|~B))+W+q|0,A)+F|0}r(m,n),m.prototype._update=function(){for(var D=s,z=0;z<16;++z)D[z]=this._block.readInt32LE(4*z);for(var P=0|this._a,B=0|this._b,F=0|this._c,W=0|this._d,q=0|this._e,A=0|this._a,M=0|this._b,k=0|this._c,y=0|this._d,w=0|this._e,x=0;x<80;x+=1){var _,T;x<16?(_=b(P,B,F,W,q,D[e[x]],h[0],u[x]),T=I(A,M,k,y,w,D[i[x]],p[0],a[x])):x<32?(_=g(P,B,F,W,q,D[e[x]],h[1],u[x]),T=C(A,M,k,y,w,D[i[x]],p[1],a[x])):x<48?(_=S(P,B,F,W,q,D[e[x]],h[2],u[x]),T=S(A,M,k,y,w,D[i[x]],p[2],a[x])):x<64?(_=C(P,B,F,W,q,D[e[x]],h[3],u[x]),T=g(A,M,k,y,w,D[i[x]],p[3],a[x])):(_=I(P,B,F,W,q,D[e[x]],h[4],u[x]),T=b(A,M,k,y,w,D[i[x]],p[4],a[x])),P=q,q=W,W=d(F,10),F=B,B=_,A=w,w=y,y=d(k,10),k=M,M=T}var O=this._b+F+y|0;this._b=this._c+W+w|0,this._c=this._d+q+A|0,this._d=this._e+P+M|0,this._e=this._a+B+k|0,this._a=O},m.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var D=o.alloc?o.alloc(20):new o(20);return D.writeInt32LE(this._a,0),D.writeInt32LE(this._b,4),D.writeInt32LE(this._c,8),D.writeInt32LE(this._d,12),D.writeInt32LE(this._e,16),D},l.exports=m},{buffer:220,"hash-base":425,inherits:440}],494:[function(t,l,c){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var o=t("buffer"),r=o.Buffer;function n(e,i){for(var u in e)i[u]=e[u]}function s(e,i,u){return r(e,i,u)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?l.exports=o:(n(o,c),c.Buffer=s),s.prototype=Object.create(r.prototype),n(r,s),s.from=function(e,i,u){if(typeof e=="number")throw new TypeError("Argument must not be a number");return r(e,i,u)},s.alloc=function(e,i,u){if(typeof e!="number")throw new TypeError("Argument must be a number");var a=r(e);return i!==void 0?typeof u=="string"?a.fill(i,u):a.fill(i):a.fill(0),a},s.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return r(e)},s.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},{buffer:220}],495:[function(t,l,c){(function(o){(function(){var r,n=t("buffer"),s=n.Buffer,e={};for(r in n)n.hasOwnProperty(r)&&r!=="SlowBuffer"&&r!=="Buffer"&&(e[r]=n[r]);var i=e.Buffer={};for(r in s)s.hasOwnProperty(r)&&r!=="allocUnsafe"&&r!=="allocUnsafeSlow"&&(i[r]=s[r]);if(e.Buffer.prototype=s.prototype,i.from&&i.from!==Uint8Array.from||(i.from=function(u,a,h){if(typeof u=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof u);if(u&&u.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);return s(u,a,h)}),i.alloc||(i.alloc=function(u,a,h){if(typeof u!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof u);if(u<0||u>=2*(1<<30))throw new RangeError('The value "'+u+'" is invalid for option "size"');var p=s(u);return a&&a.length!==0?typeof h=="string"?p.fill(a,h):p.fill(a):p.fill(0),p}),!e.kStringMaxLength)try{e.kStringMaxLength=o.binding("buffer").kStringMaxLength}catch{}e.constants||(e.constants={MAX_LENGTH:e.kMaxLength},e.kStringMaxLength&&(e.constants.MAX_STRING_LENGTH=e.kStringMaxLength)),l.exports=e}).call(this)}).call(this,t("_process"))},{_process:467,buffer:220}],496:[function(t,l,c){Object.defineProperty(c,"__esModule",{value:!0});const o=t("xmlchars/xml/1.0/ed5"),r=t("xmlchars/xml/1.1/ed2"),n=t("xmlchars/xmlns/1.0/ed3");var s=o.isS,e=o.isChar,i=o.isNameStartChar,u=o.isNameChar,a=o.S_LIST,h=o.NAME_RE,p=r.isChar,m=n.isNCNameStartChar,d=n.isNCNameChar,b=n.NC_NAME_RE;const g="http://www.w3.org/XML/1998/namespace",S="http://www.w3.org/2000/xmlns/",C={__proto__:null,xml:g,xmlns:S},I={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},D=y=>y===34||y===39,z=[34,39],P=[...z,91,62],B=[...z,60,93],F=[61,63,...a],W=[...a,62,38,60];function q(y,w,x){switch(w){case"xml":x!==g&&y.fail(`xml prefix must be bound to ${g}.`);break;case"xmlns":x!==S&&y.fail(`xmlns prefix must be bound to ${S}.`)}switch(x){case S:y.fail(w===""?`the default namespace may not be set to ${x}.`:`may not assign a prefix (even "xmlns") to the URI ${S}.`);break;case g:switch(w){case"xml":break;case"":y.fail(`the default namespace may not be set to ${x}.`);break;default:y.fail("may not assign the xml namespace to another prefix.")}}}const A=y=>b.test(y),M=y=>h.test(y);c.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const k={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};c.SaxesParser=class{constructor(y){this.opt=y??{},this.fragmentOpt=!!this.opt.fragment;const w=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,w){this.nameStartCheck=m,this.nameCheck=d,this.isName=A,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},C);const x=this.opt.additionalNamespaces;x!=null&&((function(_,T){for(const O of Object.keys(T))q(_,O,T[O])})(this,x),Object.assign(this.ns,x))}else this.nameStartCheck=i,this.nameCheck=u,this.isName=M,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var y;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:w}=this;this.state=w?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=w,this.xmlDeclPossible=!w,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:x}=this.opt;if(x===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");x="1.0"}this.setXMLVersion(x),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(I),(y=this.readyHandler)===null||y===void 0||y.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(y,w){this[k[y]]=w}off(y){this[k[y]]=void 0}makeError(y){var w;let x=(w=this.fileName)!==null&&w!==void 0?w:"";return this.trackPosition&&(x.length>0&&(x+=":"),x+=`${this.line}:${this.column}`),x.length>0&&(x+=": "),new Error(x+y)}fail(y){const w=this.makeError(y),x=this.errorHandler;if(x===void 0)throw w;return x(w),this}write(y){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let w=!1;y===null?(w=!0,y=""):typeof y=="object"&&(y=y.toString()),this.carriedFromPrevious!==void 0&&(y=`${this.carriedFromPrevious}${y}`,this.carriedFromPrevious=void 0);let x=y.length;const _=y.charCodeAt(x-1);!w&&(_===13||_>=55296&&_<=56319)&&(this.carriedFromPrevious=y[x-1],x--,y=y.slice(0,x));const{stateTable:T}=this;for(this.chunk=y,this.i=0;this.i<x;)T[this.state].call(this);return this.chunkPosition+=x,w?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:y,i:w}=this;if(this.prevI=w,this.i=w+1,w>=y.length)return-1;const x=y.charCodeAt(w);if(this.column++,x<55296){if(x>=32||x===9)return x;switch(x){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return y.charCodeAt(w+1)===10&&(this.i=w+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),x}}if(x>56319)return x>=57344&&x<=65533||this.fail("disallowed character."),x;const _=65536+1024*(x-55296)+(y.charCodeAt(w+1)-56320);return this.i=w+2,_>1114111&&this.fail("disallowed character."),_}getCode11(){const{chunk:y,i:w}=this;if(this.prevI=w,this.i=w+1,w>=y.length)return-1;const x=y.charCodeAt(w);if(this.column++,x<55296){if(x>31&&x<127||x>159&&x!==8232||x===9)return x;switch(x){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const T=y.charCodeAt(w+1);T!==10&&T!==133||(this.i=w+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),x}}if(x>56319)return x>=57344&&x<=65533||this.fail("disallowed character."),x;const _=65536+1024*(x-55296)+(y.charCodeAt(w+1)-56320);return this.i=w+2,_>1114111&&this.fail("disallowed character."),_}getCodeNorm(){const y=this.getCode();return y===-2?10:y}unget(){this.i=this.prevI,this.column--}captureTo(y){let{i:w}=this;const{chunk:x}=this;for(;;){const _=this.getCode(),T=_===-2,O=T?10:_;if(O===-1||y.includes(O))return this.text+=x.slice(w,this.prevI),O;T&&(this.text+=x.slice(w,this.prevI)+`
|
|
278
278
|
`,w=this.i)}}captureToChar(y){let{i:w}=this;const{chunk:x}=this;for(;;){let _=this.getCode();switch(_){case-2:this.text+=x.slice(w,this.prevI)+`
|
|
@@ -309,7 +309,7 @@ use chrome, FireFox or Internet Explorer 11`)}var s=t("safe-buffer"),e=t("random
|
|
|
309
309
|
* @author Louis-Dominique Dubeau
|
|
310
310
|
* @license MIT
|
|
311
311
|
* @copyright Louis-Dominique Dubeau
|
|
312
|
-
*/function o(r){return r>=65&&r<=90||r===95||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}Object.defineProperty(c,"__esModule",{value:!0}),c.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",c.NC_NAME_CHAR="-"+c.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",c.NC_NAME_START_CHAR_RE=new RegExp("^["+c.NC_NAME_START_CHAR+"]$","u"),c.NC_NAME_CHAR_RE=new RegExp("^["+c.NC_NAME_CHAR+"]$","u"),c.NC_NAME_RE=new RegExp("^["+c.NC_NAME_START_CHAR+"]["+c.NC_NAME_CHAR+"]*$","u"),c.isNCNameStartChar=o,c.isNCNameChar=function(r){return o(r)||r===45||r===46||r>=48&&r<=57||r===183||r>=768&&r<=879||r>=8255&&r<=8256}},{}]},{},[15])(15)}))})(
|
|
312
|
+
*/function o(r){return r>=65&&r<=90||r===95||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533||r>=65536&&r<=983039}Object.defineProperty(c,"__esModule",{value:!0}),c.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",c.NC_NAME_CHAR="-"+c.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",c.NC_NAME_START_CHAR_RE=new RegExp("^["+c.NC_NAME_START_CHAR+"]$","u"),c.NC_NAME_CHAR_RE=new RegExp("^["+c.NC_NAME_CHAR+"]$","u"),c.NC_NAME_RE=new RegExp("^["+c.NC_NAME_START_CHAR+"]["+c.NC_NAME_CHAR+"]*$","u"),c.isNCNameStartChar=o,c.isNCNameChar=function(r){return o(r)||r===45||r===46||r>=48&&r<=57||r===183||r>=768&&r<=879||r>=8255&&r<=8256}},{}]},{},[15])(15)}))})(au)),au.exports}var vd=yd();const wd=bd(vd);class xd{constructor(E,t){Y(this,Ne);Y(this,Jo);Y(this,un);Y(this,ds);it(this,"export",()=>{var E={fileName:(f(this,Ne).getAttribute("caption")||"export").replace(/[`~!@#$%^&*|\\\'\";:\/?]/gi,""),afterFunc:()=>{}},t=H.nvl(E.fileName,"temp");const l=async(p,m)=>{console.log("export...."),p.xlsx.writeBuffer().then(d=>{var b=new Blob([d],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});const g=window.URL.createObjectURL(b),S=document.createElement("a");document.body.appendChild(S),S.href=g,S.download=m+".xlsx",S.click(),setTimeout(()=>{window.URL.revokeObjectURL(g),document.body.removeChild(S),console.log("completed")},0)})},c=()=>({type:"pattern",pattern:"solid",fgColor:{argb:"FFCCCCCC"}}),o=()=>({top:{style:"thin",color:{argb:"FF999999"}},left:{style:"thin",color:{argb:"FF999999"}},bottom:{style:"thin",color:{argb:"FF999999"}},right:{style:"thin",color:{argb:"FF999999"}}}),r=p=>{var m=$(".ng-container-body thead tr:not(.col-indicator-rowgroup)",f(this,Ne).body).length+1+f(this,Ne).template.length,d=f(this,Ne).data.get(p);$(f(this,Ne).template).each((b,g)=>{var S=parseInt(p*f(this,Ne).template.length)+m+b;if(b==0){var C=s.getCell(S,1);C.alignment={horizontal:"center",vertical:"middle",wrapText:!0},C.dataValidation={type:"list",allowBlank:!0,formulae:['"NONE,INSERT,UPDATE,DELETE"']},C.fill=c(),C.border=o(),f(this,Ne).template.length>1&&s.mergeCells(S,1,S+f(this,Ne).template.length-1,1)}$("th,td",g).not(".dummy").not(".first").not(".last").each((I,D)=>{var z=parseInt(D.dataset.index),P=s.getCell(S,z),B="";if(H.isNull(D.dataset.expr))H.isNull(D.dataset.bind)||(B=d[D.dataset.bind]||"");else try{B=f(this,Ne).exprFunction(D.dataset.expr).call(this,d,p)}catch(A){console.error(A,p,D.dataset.bind,D.dataset.expr)}P.value=B;var F=D.querySelector("ng-combo");if(F){var W=F.getAttribute("data-source");if(W){const A=F.getAttribute("value");W=f(this,Ne).exprFunction(W).call(this,d,p);const M=[...new Set(W.map(k=>k[A].replaceAll(","," ")))];M.length>0&&(P.dataValidation={type:"list",allowBlank:!0,formulae:['"'+M.join(",")+'"']})}}var q=D.querySelector("ng-radio");if(q){var W=q.getAttribute("data-source");if(W){q.getAttribute("value"),W=f(this,Ne).exprFunction(W).call(this,d,p);const M=[...new Set(W.map(k=>k.value))];M.length>0&&(P.dataValidation={type:"list",allowBlank:!0,formulae:['"'+M.join(",")+'"']})}}P.alignment={horizontal:D.getAttribute("text-align")||"left",vertical:"middle",wrapText:!0},(D.colSpan>1||D.rowSpan>1)&&s.mergeCells(S,z,S+D.rowSpan-1,z+D.colSpan-1)})})};$(f(this,un)).html("generate..."),f(this,ds).setAttribute("max",f(this,Ne).data.count()),f(this,ds).setAttribute("value",0);const n=new wd.Workbook,s=n.addWorksheet("Sheet1");var e=0;s.getColumn(++e).width=10,$(".col-indicator-rowgroup .col-indicator:not(.dummy)",f(this,Ne).body).not(".first").not(".last").each((p,m)=>{if(p==0)return!0;m.dataset.index=++e,$(`[data-col="${m.dataset.col}"]`,f(this,Ne).template).each((d,b)=>{b.dataset.index=e}),f(this,Ne).body.querySelectorAll(`thead [data-col="${m.dataset.col}"]`).forEach(d=>{d.dataset.index=e}),s.getColumn(e).width=$(m).width()/7}),$(f(this,Ne).template).each((p,m)=>{var d=p+1;if(p==0){var b=s.getCell(d,1);b.fill=c(),b.border=o(),f(this,Ne).template.length>1&&s.mergeCells(d,1,d+f(this,Ne).template.length-1,1)}$("th:not(.dummy),td:not(.dummy)",m).not(".first").not(".last").each((g,S)=>{var C=parseInt(S.dataset.index),I=s.getCell(d,C);["rowState"].includes(S.dataset.bind)||(I.value=S.dataset.bind),(S.colSpan>1||S.rowSpan>1)&&s.mergeCells(d,C,d+S.rowSpan-1,C+S.colSpan-1),I.font={size:6},I.fill=c(),I.border=o()})}),$("thead tr:not(.col-indicator-rowgroup)",f(this,Ne).body).each((p,m)=>{var d=m.sectionRowIndex+f(this,Ne).template.length;if(p==0){var b=s.getCell(d,1);b.value="CRUD",b.alignment={horizontal:"center",vertical:"middle",wrapText:!0},b.fill=c(),b.border=o(),f(this,Ne).template.length>1&&s.mergeCells(d,1,d+f(this,Ne).template.length-1,1)}$("th:not(.dummy),td:not(.dummy)",m).not(".first").not(".last").each((g,S)=>{var C=parseInt(S.dataset.index),I=s.getCell(d,C);I.value=$(S).text(),(S.colSpan>1||S.rowSpan>1)&&s.mergeCells(d,C,d+S.rowSpan-1,C+S.colSpan-1),I.alignment={horizontal:"center",vertical:"middle",wrapText:!0},I.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFEEEEEE"}},I.border={top:{style:"thin",color:{argb:"FFCCCCCC"}},left:{style:"thin",color:{argb:"FFCCCCCC"}},bottom:{style:"thin",color:{argb:"FFCCCCCC"}},right:{style:"thin",color:{argb:"FFCCCCCC"}}}})});for(var i=f(this,Ne).data.getValidData(),u=0,a=0;a<i.length;a++)setTimeout(()=>{r(u++),f(this,ds).setAttribute("value",u+1),$(f(this,un)).html(u+1>=i.length?"downloading...":"processing... "+u.toLocaleString()+" / "+i.length.toLocaleString())});var h=setInterval(()=>{parseInt(f(this,ds).getAttribute("value"))>=parseInt(f(this,ds).getAttribute("max"))&&(clearInterval(h),setTimeout(()=>{l(n,t).then(p=>{}),E.afterFunc&&E.afterFunc.call(f(this,Ne))}),setTimeout(()=>{f(this,Jo).close()}))},500)});it(this,"exportPdf",()=>{console.log("exportPdf")});tt(this,Ne,E),tt(this,Jo,t),tt(this,un,t.querySelector("#message-box")),tt(this,ds,t.querySelector("#progress-bar"))}}Ne=new WeakMap,Jo=new WeakMap,un=new WeakMap,ds=new WeakMap;class Tu extends HTMLElement{constructor(){super();Y(this,ci);Y(this,dn);Y(this,Qo);Y(this,pu);Y(this,mu,{});Y(this,_h,()=>{});it(this,"exportExcel",()=>{f(this,dn).data.count()>500&&(f(this,ci).showModal(),$(".title",f(this,ci)).html("Export Excel")),f(this,Qo).export()});this.attachShadow({mode:"open"})}connectedCallback(){tt(this,dn,this.getRootNode().host),this.shadowRoot.innerHTML=`
|
|
313
313
|
<style>
|
|
314
314
|
@import "https://cdn.jsdelivr.net/npm/ninegrid/ninegrid.css";
|
|
315
315
|
|
|
@@ -349,7 +349,7 @@ use chrome, FireFox or Internet Explorer 11`)}var s=t("safe-buffer"),e=t("random
|
|
|
349
349
|
</div>
|
|
350
350
|
<progress id="progress-bar" value="0" max="100">50%</progress>
|
|
351
351
|
</nx-dialog>
|
|
352
|
-
`,tt(this,ci,this.shadowRoot.querySelector("dialog")),tt(this,Qo,new xd(f(this,dn),f(this,ci))),f(this,_h).call(this)}}ci=new WeakMap,dn=new WeakMap,Qo=new WeakMap,
|
|
352
|
+
`,tt(this,ci,this.shadowRoot.querySelector("dialog")),tt(this,Qo,new xd(f(this,dn),f(this,ci))),f(this,_h).call(this)}}ci=new WeakMap,dn=new WeakMap,Qo=new WeakMap,pu=new WeakMap,mu=new WeakMap,_h=new WeakMap,customElements.get("ng-export")||customElements.define("ng-export",Tu);class _d{constructor(E){Y(this,ta);Y(this,hr);it(this,"add",E=>{f(this,hr).push(...E),f(this,ea).call(this)});Y(this,ea,()=>{tt(this,hr,[...new Set(f(this,hr))]),["","__ng"].forEach(E=>{const t=f(this,hr).indexOf(E);t>-1&&f(this,hr).splice(t,1)}),f(this,hr).sort((E,t)=>E.length<t.length?1:-1)});Y(this,Sh,()=>{tt(this,hr,[]);const E=f(this,ta).shadowRoot.querySelector("ng-foot").shadowRoot.querySelector("ng-layout");if(E){for(const t of E.tables)$("[data-bind]",t).each((l,c)=>{f(this,hr).push(c.dataset.bind)}),["data-expr","background-color","color","tooltip","visible","readonly","enable-button","enable-check","class-expr","icon-color","icon-src"].forEach(l=>{$(`[${l}]`,t).each((c,o)=>{var r=o.getAttribute(l);if(r.indexOf("data.")<0){const n=r.search(/[(]/g);if(n>0)try{r=String(window[r.substring(0,n).trim()])}catch{r=""}}r.split("data.").forEach(n=>{if(n.trim()!=""){const s=n.search(/[^_A-Za-z0-9]/g);s>=0?f(this,hr).push(n.substring(0,s)):r.startsWith("data.")&&f(this,hr).push(n.replace("data.",""))}})})});f(this,ea).call(this)}});tt(this,ta,E),f(this,Sh).call(this)}get(){return f(this,hr)}indexOf(E){return f(this,hr).indexOf(E)}includes(E){return f(this,hr).includes(E)}}ta=new WeakMap,hr=new WeakMap,ea=new WeakMap,Sh=new WeakMap;class Sd extends HTMLElement{constructor(){super();Y(this,kh);this.attachShadow({mode:"open"})}connectedCallback(){tt(this,kh,this.getRootNode().host),this.shadowRoot.innerHTML=`
|
|
353
353
|
<style>
|
|
354
354
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngFoot.css";
|
|
355
355
|
${H.getCustomPath(this,"ngFoot.css")}
|
|
@@ -638,7 +638,7 @@ Do you want to save it?`,"SAVE",{class:"rgb","true-text":"Yes","false-text":"No"
|
|
|
638
638
|
</svg>
|
|
639
639
|
</div>
|
|
640
640
|
</div>
|
|
641
|
-
`,super.connectedCallback(),this.cell.removeAttribute("tabindex"),this.cell.dataset.bind="rowState",this.cell.dataset.expr=H.nvl(this.cell.dataset.expr,"data.__ng._[ninegrid.ROW.ORDER]"),this.cell.setAttribute("text-align","center"),tt(this,ya,this.shadowRoot.querySelector("span")),f(this,Wh).call(this)}}ya=new WeakMap,Wh=new WeakMap;class Zd extends HTMLElement{constructor(){super();Y(this,fr);Y(this,is);Y(this,va);Y(this,br);Y(this,Hs);Y(this,yi);Y(this,
|
|
641
|
+
`,super.connectedCallback(),this.cell.removeAttribute("tabindex"),this.cell.dataset.bind="rowState",this.cell.dataset.expr=H.nvl(this.cell.dataset.expr,"data.__ng._[ninegrid.ROW.ORDER]"),this.cell.setAttribute("text-align","center"),tt(this,ya,this.shadowRoot.querySelector("span")),f(this,Wh).call(this)}}ya=new WeakMap,Wh=new WeakMap;class Zd extends HTMLElement{constructor(){super();Y(this,fr);Y(this,is);Y(this,va);Y(this,br);Y(this,Hs);Y(this,yi);Y(this,gu);Y(this,ns);Y(this,Xh);Y(this,Yh,()=>{if(f(this,fr)){var t=f(this,fr).querySelector("div.resizer-row-panel");t?tt(this,br,$(t)):(tt(this,br,$('<div class="resizer-row-panel"><div class="grip"></div><div class="tooltip"><div></div><span></span><div></div></div></div>').hide()),$(f(this,fr).body).append(f(this,br))),tt(this,Hs,$(".grip",f(this,br))),tt(this,yi,$(".tooltip",f(this,br))),$(this).on("mousedown",l=>{H.j.querySelectorAll(f(this,is).closest("tbody")).hasClass("fixed")||tt(this,va,setTimeout(()=>{f(this,Gh).call(this,l)},500))}).on("dblclick",l=>{H.j.querySelectorAll(f(this,is).closest("tbody")).hasClass("fixed")||f(this,Kh).call(this,l)}),$(document).on("mouseup",l=>{clearTimeout(f(this,va))})}});Y(this,Gh,t=>{if(!(t.buttons!=1||t.altKey||t.ctrlKey||t.shiftkey)){var l=parseInt(t.target.getAttribute("rowIndex"));l<0||(f(this,is).busy=!0,tt(this,Xh,t.target),tt(this,ns,$(".ng-container-body table tbody.bindable tr",f(this,fr).body).eq(l)),f(this,br).show(),f(this,Hs).width(f(this,fr).body.querySelector(".ng-container").offsetWidth),f(this,_a).call(this,t.pageY),$(f(this,br)).on("mousemove",f(this,wa)),$(f(this,br)).on("mouseup",f(this,xa)))}});Y(this,wa,t=>{t.altKey||t.ctrlKey||t.shiftKey||f(this,_a).call(this,t.pageY)});Y(this,xa,t=>{var l=f(this,Hs).offset().top-f(this,ns).offset().top;l<=1&&(l=0),l=f(this,fr).tableUtils.height(f(this,ns)[0].sectionRowIndex,l);var c=parseInt(f(this,ns)[0].dataset.row*f(this,fr).template.length+f(this,ns)[0].sectionRowIndex%f(this,fr).template.length);f(this,fr).matrix.setHeight(c,l),f(this,is).querySelector("ng-row-indicator").refresh(),$(f(this,br)).off("mousemove",f(this,wa)),$(f(this,br)).off("mouseup",f(this,xa)),f(this,br).hide(),f(this,fr).view.redraw(),f(this,is).busy=!1});Y(this,_a,t=>{var l=$(".ng-container-body table tbody.bindable",f(this,fr).body);if(!(t<l.offset().top)){f(this,Hs).offset({top:t});var c=parseInt(f(this,Hs).offset().top),o=parseInt(c-f(this,ns).offset().top);o<=1&&(o=0),f(this,yi).height(o),f(this,yi).offset({top:f(this,ns).offset().top-1}),f(this,yi).find("span").text(o)}});Y(this,Kh,t=>{})}connectedCallback(){tt(this,is,this.cell),tt(this,fr,f(this,is).getRootNode().host),this.setAttribute("class","row-resizer"),f(this,Yh).call(this)}}fr=new WeakMap,is=new WeakMap,va=new WeakMap,br=new WeakMap,Hs=new WeakMap,yi=new WeakMap,gu=new WeakMap,ns=new WeakMap,Xh=new WeakMap,Yh=new WeakMap,Gh=new WeakMap,wa=new WeakMap,xa=new WeakMap,_a=new WeakMap,Kh=new WeakMap,customElements.get("ng-row-indicator")||customElements.define("ng-row-indicator",Kd),customElements.get("ng-row-resizer")||customElements.define("ng-row-resizer",Zd);class Jd extends _r{constructor(){super();it(this,"dataRefresh",t=>{!this.owner||!this.cell||!this.data||(this.cell.closest("tbody.fixed")?H.j.querySelectorAll(this).addClass("pin"):H.j.querySelectorAll(this).removeClass("pin"),t||this.reset())});Y(this,Zh,()=>{H.isMobile()||this.shadowRoot.querySelector("svg").addEventListener("click",t=>{const l=this.cell.closest("tr").dataset.row;this.cell.closest("tbody.fixed")?this.owner.pin.remove(l):this.owner.pin.add(this.data.__ng._[H.ROW.INDEX])})})}connectedCallback(){this.shadowRoot.innerHTML=`
|
|
642
642
|
<style>
|
|
643
643
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngRowPin.css";
|
|
644
644
|
${H.getCustomPath(this,"ngRowPin.css")}
|
|
@@ -652,7 +652,7 @@ Do you want to save it?`,"SAVE",{class:"rgb","true-text":"Yes","false-text":"No"
|
|
|
652
652
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngRowState.css";
|
|
653
653
|
${H.getCustomPath(this,"ngRowState.css")}
|
|
654
654
|
</style>
|
|
655
|
-
`,super.connectedCallback(),this.cell.dataset.bind="rowState"}}customElements.get("ng-row-state")||customElements.define("ng-row-state",tf);class ef extends HTMLElement{constructor(){super();Y(this,En);Y(this,
|
|
655
|
+
`,super.connectedCallback(),this.cell.dataset.bind="rowState"}}customElements.get("ng-row-state")||customElements.define("ng-row-state",tf);class ef extends HTMLElement{constructor(){super();Y(this,En);Y(this,Pt);Y(this,Xr);Y(this,ge);Y(this,yr);Y(this,vr);Y(this,kn);Y(this,zs,0);Y(this,Dr,0);it(this,"refresh",()=>{if(!f(this,Pt))return;var t=$(".ng-container-body",f(this,Pt).body),l=$(".ng-scroll-thumb",this.shadowRoot),c=$("table > thead",t),o=f(this,Pt).dataManager.viewRecords.rawIndex,r=$(f(this,ge).track).height(),n=$(f(this,ge).thumb).height();Number(f(this,Pt).getAttribute("display-row-count")||0)>=f(this,Pt).dataManager.rawRecords.length||parseInt($(".ng-container .ng-table tr.nodata",f(this,Pt).body).height())>0&&(f(this,Pt).dataManager.rawRecords.length==0||f(this,Pt).dataManager.viewRecords.rawIndex==0)?$(this).hide():$(this).show();var e=Math.min(r*(t.height()-c.height())/(f(this,Pt).template.height()*f(this,Pt).template.length*f(this,Pt).data.count()),r);l[0].dataset.height=e,e<16&&(e=16);var i=r-f(this,vi).call(this);if(i!=0){e>=r?l.css({top:0,height:e-20}):l.css({height:e});var u;if(f(this,Pt).isFirstPage)u=0;else if(f(this,Pt).isLastPage)u=r-n-2;else{var a=parseInt($(".ng-container-body tbody.bindable tr",f(this,Pt).body).not(".nodata").length/f(this,Pt).template.length);u=parseInt(o*i/(f(this,Pt).data.count()-a+1)),u>r-n-3&&(u=r-n-3)}f(this,ge).thumb.style.top=u+"px",f(this,ge).top.disabled=!!f(this,Pt).isFirstPage,f(this,ge).bottom.disabled=!!f(this,Pt).isLastPage,$(this).is(":visible")&&$("ng-hscrollbar",f(this,Pt).body).is(":visible")?$(".ng-scroll-edge",f(this,Pt).body).show():$(".ng-scroll-edge",f(this,Pt).body).hide()}});it(this,"refreshV2",()=>{if(f(this,Pt)){var t=$(".ng-scroll-thumb",this.shadowRoot),l=f(this,Pt).dataManager.viewRecords.rawIndex,c=this.trackHeight,o=this.thumbHeight,r=Math.min(c*(this.bodyHeight-this.theadHeight)/(this.templateHeight*f(this,Pt).template.length*f(this,Pt).data.count()),c);t[0].dataset.height=r,r<16&&(r=16);var n=c-f(this,vi).call(this),s;if(f(this,Pt).isFirstPage)s=0;else if(f(this,Pt).isLastPage)s=c-o-2;else{var e=parseInt($(".ng-container-body tbody.bindable tr",f(this,Pt).body).not(".nodata").length/f(this,Pt).template.length);s=parseInt(l*n/(f(this,Pt).data.count()-e+1)),s>c-o-3&&(s=c-o-3)}f(this,ge).thumb.style.top=s+"px",f(this,ge).top.disabled=!!f(this,Pt).isFirstPage,f(this,ge).bottom.disabled=!!f(this,Pt).isLastPage}});it(this,"delayScroll",(t,l,c,o)=>{clearInterval(f(this,yr)),clearInterval(f(this,vr)),f(this,Pt).scrollBy(t),tt(this,yr,setInterval(()=>{clearInterval(f(this,yr)),tt(this,vr,setInterval(()=>{f(this,Pt).scrollBy(t)?o&&o.call():clearInterval(f(this,vr))},c))},l))});it(this,"stopScroll",()=>{clearInterval(f(this,yr)),clearInterval(f(this,vr))});Y(this,Jh,()=>{var t=l=>{clearInterval(f(this,yr)),clearInterval(f(this,vr)),f(this,Pt).scrollBy(l),tt(this,yr,setInterval(()=>{clearInterval(f(this,yr)),tt(this,vr,setInterval(()=>{f(this,Pt).scrollBy(l)},10))},500))};$(f(this,ge).top).on("mousedown",l=>{l.buttons!=1||l.altKey||l.ctrlKey||l.shiftKey||t(-1)}),$(f(this,ge).bottom).on("mousedown",l=>{l.buttons!=1||l.altKey||l.ctrlKey||l.shiftKey||t(1)}),$(f(this,ge).top).on("touchstart",l=>{t(-1)}),$(f(this,ge).bottom).on("touchstart",l=>{t(1)}),f(this,ge).top.ontouchend=f(this,ge).bottom.ontouchend=f(this,ge).track.ontouchend=f(this,ge).top.onmouseup=f(this,ge).top.onmouseleave=f(this,ge).bottom.onmouseup=f(this,ge).bottom.onmouseleave=f(this,ge).track.onmouseup=f(this,ge).track.onmouseleave=l=>{clearInterval(f(this,yr)),clearInterval(f(this,vr))},$(f(this,ge).track).on("mousedown",f(this,Sa)),$(f(this,ge).track).on("touchstart",f(this,Qh)),$(f(this,ge).thumb).on("mousedown",f(this,Ca)),$(f(this,ge).thumb).on("touchstart",f(this,tc)),document.addEventListener("mouseup",l=>{f(this,Xr)&&tt(this,Xr,!1),document.removeEventListener("mousemove",f(this,Cn)),typeof this.onDragStop=="function"&&this.onDragStop()}),document.addEventListener("touchend",l=>{tt(this,Xr,!1),document.removeEventListener("touchmove",f(this,ka)),typeof this.onDragStop=="function"&&this.onDragStop()})});Y(this,Qh,t=>{var l=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-l.left,t.offsetY=t.targetTouches[0].pageY-l.top,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY,t.buttons=1,f(this,Sa).call(this,t)});Y(this,Sa,t=>{if(!f(this,Xr)&&!(t.buttons!=1||t.altKey||t.ctrlKey||t.shiftKey)){t.preventDefault();var l=f(this,ge).thumb.getBoundingClientRect();clearInterval(f(this,yr)),clearInterval(f(this,vr)),t.clientY>l.y?f(this,Pt).pageDown():f(this,Pt).pageUp(),tt(this,yr,setInterval(()=>{clearInterval(f(this,yr)),tt(this,vr,setInterval(()=>{var c=f(this,ge).thumb.getBoundingClientRect();if(t.clientY>c.y&&t.clientY<c.y+c.height)clearInterval(f(this,vr));else{var o=t.clientY>c.y?f(this,Pt).pageDown():f(this,Pt).pageUp();o||clearInterval(f(this,vr))}},10))},500))}});Y(this,tc,t=>{var l=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-l.left,t.offsetY=t.targetTouches[0].pageY-l.top,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY,t.buttons=1,f(this,Ca).call(this,t),document.addEventListener("touchmove",f(this,ka))});Y(this,ka,t=>{var l=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-l.left,t.offsetY=t.targetTouches[0].pageY-l.top,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY,t.buttons=1,f(this,Cn).call(this,t)});Y(this,Ca,t=>{tt(this,zs,t.clientY),ou.log("::",t,t.clientY),tt(this,Xr,!0),this.shiftY=t.offsetY+f(this,ge).track.getBoundingClientRect().y,this.trackHeight=$(f(this,ge).track).height(),this.thumbHeight=$(f(this,ge).thumb).height(),this.nodataHeight=$(".ng-container .ng-table tr.nodata",f(this,Pt).body).height(),this.bodyHeight=$(".ng-container-body",f(this,Pt).body).height(),this.templateHeight=f(this,Pt).template.height(),this.theadHeight=$(".ng-container-body table > thead",f(this,Pt).body).height()||0,this.tfootHeight=$(".ng-container-body table > tfoot",f(this,Pt).body).height()||0,this.fixedHeight=$(".ng-container-body tbody.fixed",f(this,Pt).body).height(),this.tableHeight=$(".ng-container-body .ng-table",f(this,Pt).body).height(),tt(this,kn,!0),document.addEventListener("mousemove",f(this,Cn)),typeof this.onDragStart=="function"&&this.onDragStart()});Y(this,Cn,t=>{if(!f(this,Xr))return;t.preventDefault();var l=t.clientY-f(this,zs);f(this,kn)&&(H.j.querySelectorAll("th,td",f(this,Pt).body).removeClass("active").removeClass("multi-selected").removeClass("selected").removeClass("selected-current").removeClass("selected-area").removeClass("selected-top").removeClass("selected-bottom").removeClass("selected-left").removeClass("selected-right"),tt(this,kn,!1));var c=this.trackHeight;let o=f(this,vi).call(this);var r=t.clientY-this.shiftY;r<0&&(r=0),r+this.thumbHeight>c&&(r=parseInt(c-o));var n=parseInt($(".ng-container-body tbody.bindable tr",f(this,Pt).body).not(".nodata").length/f(this,Pt).template.length),s=parseInt(r*(f(this,Pt).data.count()+1-n)/parseInt(c-o));let e=f(this,Pt).matrix.getHeight(f(this,Pt).dataManager.viewRecords.rawIndex),i=f(this,Pt).matrix.getHeight(s);ou.log(f(this,Pt).dataManager.viewRecords.rawIndex,s,e,i),tt(this,Dr,f(this,Dr)+l),ou.log(t.clientY,f(this,zs),f(this,Dr),l),Ue(this,En,nu).call(this,f(this,Dr)),f(this,Pt).dataManager.viewRecords.rawIndex!=s&&(f(this,Pt).scrollToV2(s),tt(this,Dr,0),Ue(this,En,nu).call(this,0))});Y(this,bu,t=>{if(f(this,Xr)){t.preventDefault();var l=t.clientY-f(this,zs);tt(this,zs,t.clientY);var c=this.trackHeight,o=f(this,vi).call(this),r=c-o,n=f(this,Pt).matrix.totalHeight-this.bodyHeight,s=r>0?n/r:0,e=l*s;tt(this,Dr,f(this,Dr)-e),tt(this,Dr,Math.max(-n,Math.min(0,f(this,Dr)))),Ue(this,En,nu).call(this,Math.abs(f(this,Dr)));var i=f(this,Pt).getRowIndexAt(Math.abs(f(this,Dr)));f(this,Pt).dataManager.viewRecords.rawIndex!=i&&f(this,Pt).scrollToV2(i)}});Y(this,vi,()=>parseInt(f(this,ge).thumb.dataset.height));this.attachShadow({mode:"open"})}connectedCallback(){tt(this,Pt,this.getRootNode().host),f(this,Pt)&&(this.shadowRoot.innerHTML=`
|
|
656
656
|
<style>
|
|
657
657
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngVScrollBar.css";
|
|
658
658
|
${H.getCustomPath(this,"ngVScrollBar.css")}
|
|
@@ -661,7 +661,7 @@ Do you want to save it?`,"SAVE",{class:"rgb","true-text":"Yes","false-text":"No"
|
|
|
661
661
|
<button class='ng-scroll-top' disabled><div class='ng-scroll-icon'></div></button>
|
|
662
662
|
<div class='ng-scroll-track'> <div class='ng-scroll-thumb'></div> </div>
|
|
663
663
|
<button class='ng-scroll-bottom'><div class='ng-scroll-icon'></div></button>
|
|
664
|
-
`,tt(this,ge,{track:this.shadowRoot.querySelector(".ng-scroll-track"),thumb:this.shadowRoot.querySelector(".ng-scroll-thumb"),top:this.shadowRoot.querySelector(".ng-scroll-top"),bottom:this.shadowRoot.querySelector(".ng-scroll-bottom")}),f(this,Xr),this.shiftX,f(this,Jh).call(this))}}
|
|
664
|
+
`,tt(this,ge,{track:this.shadowRoot.querySelector(".ng-scroll-track"),thumb:this.shadowRoot.querySelector(".ng-scroll-thumb"),top:this.shadowRoot.querySelector(".ng-scroll-top"),bottom:this.shadowRoot.querySelector(".ng-scroll-bottom")}),f(this,Xr),this.shiftX,f(this,Jh).call(this))}}Pt=new WeakMap,Xr=new WeakMap,ge=new WeakMap,yr=new WeakMap,vr=new WeakMap,kn=new WeakMap,zs=new WeakMap,Dr=new WeakMap,Jh=new WeakMap,Qh=new WeakMap,Sa=new WeakMap,tc=new WeakMap,ka=new WeakMap,Ca=new WeakMap,Cn=new WeakMap,bu=new WeakMap,En=new WeakSet,nu=function(t){const l=f(this,Pt).body.querySelector(".ng-container-body tbody.bindable");l&&(l.style.transform=`translateY(-${t}px)`)},vi=new WeakMap;class rf extends HTMLElement{constructor(){super();Y(this,Je);Y(this,bs);Y(this,ae);Y(this,Yr);Y(this,Gr);it(this,"refresh",()=>{if(f(this,Je)){var t=$(".ng-container-body",f(this,Je).body),l=$("table",t),c=$(".ng-scroll-track",this.shadowRoot),o=$(".ng-scroll-thumb",this.shadowRoot);t.width()!=0&&l.width()>t.width()?$(f(this,Je).body.querySelector(".ng-container-bottom")).show():$(f(this,Je).body.querySelector(".ng-container-bottom")).hide(),o.width(Math.min(c.width()*t.width()/l.width(),c.width()));var r=parseInt(Math.abs(l.position().left)*c.width()/l.width());r<0&&(r=0),r+o.width()>c.width()&&(r=c.width()-o.width()),o.css({left:r}),H.j.querySelectorAll(".ng-scroll-left",this.shadowRoot).attr("disabled",r==0),H.j.querySelectorAll(".ng-scroll-right",this.shadowRoot).attr("disabled",r==c.width()-o.width());var n=f(this,Je).body.querySelector("ng-vscrollbar");$(this).is(":visible")&&$(n).is(":visible")?$(".ng-scroll-edge",f(this,Je).body).show():$(".ng-scroll-edge",f(this,Je).body).hide()}});it(this,"scrollToHome",()=>{f(this,Us).call(this,0)});it(this,"scrollToEnd",()=>{var t=f(this,ae).track.getBoundingClientRect(),l=f(this,ae).thumb.getBoundingClientRect(),c=t.width-l.width;f(this,Us).call(this,c)});Y(this,Us,t=>{if(f(this,ae)){var l=$("table",f(this,ae).container),c=f(this,ae).track.getBoundingClientRect(),o=f(this,ae).thumb.getBoundingClientRect();t<0&&(t=0),t+o.width>c.width&&(t=c.width-o.width),t=parseInt(t),f(this,ae).thumb.style.left=t+"px",f(this,ae).left.disabled=t==0,f(this,ae).right.disabled=t==parseInt(c.width-o.width);var r=$(f(this,ae).container).width(),n=$(l).width(),s=-t*(n-r)/(c.width-o.width);return-s>n-r&&(s=n-r),-s+5>n-r&&(s=-(n-r)),r>=n&&(s=0),$(l).css({left:s}),!(t==0||t==c.width-o.width)}});it(this,"adjustThumb2",()=>{var t=$(".ng-container-body > table",f(this,Je).body),l=$(".ng-scroll-track",this.shadowRoot),c=$(".ng-scroll-thumb",this.shadowRoot),o=parseInt(Math.abs(t.position().left)*l.width()/t.width());o<0&&(o=0),o+c.width()>l.width()&&(o=l.width()-c.width()),c.css({left:o}),H.j.querySelectorAll(".ng-scroll-left",this.shadowRoot).attr("disabled",o==0),H.j.querySelectorAll(".ng-scroll-right",this.shadowRoot).attr("disabled",o==l.width()-c.width())});Y(this,ec,()=>{var t=l=>{clearInterval(f(this,Yr)),clearInterval(f(this,Gr));var c=f(this,ae).track.getBoundingClientRect(),o=f(this,ae).thumb.getBoundingClientRect();f(this,Us).call(this,o.x-c.x+l),tt(this,Yr,setInterval(()=>{clearInterval(f(this,Yr)),tt(this,Gr,setInterval(()=>{var r=f(this,ae).thumb.getBoundingClientRect();f(this,Us).call(this,r.x-c.x+l)||clearInterval(f(this,Gr))},10))},500))};f(this,ae).left.ontouchend=f(this,ae).right.ontouchend=f(this,ae).track.ontouchend=f(this,ae).left.onmouseup=f(this,ae).left.onmouseleave=f(this,ae).right.onmouseup=f(this,ae).right.onmouseleave=f(this,ae).track.onmouseup,f(this,ae).track.onmouseleave=l=>{clearInterval(f(this,Yr)),clearInterval(f(this,Gr))},$(f(this,ae).left).on("mousedown",l=>{l.buttons!=1||l.altKey||l.ctrlKey||l.shiftKey||t(-10)}),$(f(this,ae).right).on("mousedown",l=>{l.buttons!=1||l.altKey||l.ctrlKey||l.shiftKey||t(10)}),$(f(this,ae).left).on("touchstart",l=>{t(-10)}),$(f(this,ae).right).on("touchstart",l=>{t(10)}),$(f(this,ae).track).on("mousedown",f(this,Aa)),$(f(this,ae).track).on("touchstart",f(this,rc)),$(f(this,ae).thumb).on("mousedown",f(this,Ta)),$(f(this,ae).thumb).on("touchstart",f(this,sc)),document.addEventListener("touchend",l=>{tt(this,bs,!1),clearInterval(f(this,Yr)),clearInterval(f(this,Gr)),$(document).off("touchmove",f(this,Ra)),typeof this.onDragStop=="function"&&this.onDragStop()}),document.addEventListener("mouseup",l=>{tt(this,bs,!1),clearInterval(f(this,Yr)),clearInterval(f(this,Gr)),document.removeEventListener("mousemove",f(this,An)),typeof this.onDragStop=="function"&&this.onDragStop()})});Y(this,Ea,t=>{var l=f(this,ae).thumb.getBoundingClientRect(),c=parseInt($(".ng-container-body > table",f(this,Je).body).position().left),o=0;t>l.x?$(".ng-container-body .col-indicator",f(this,Je).body).each((r,n)=>{if(o+=parseInt($(n).width())+2,o>Math.abs(c)+1)return!1}):$(".ng-container-body .col-indicator",f(this,Je).body).each((r,n)=>{if(o+parseInt($(n).width())+2>=Math.abs(c))return!1;o+=parseInt($(n).width())+2}),$(".ng-container-body > table",f(this,Je).body).css({left:-o}),this.refresh()});Y(this,rc,t=>{var l=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-l.left,t.offsetY=t.targetTouches[0].pageY-l.top,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY,t.buttons=1,f(this,Aa).call(this,t)});Y(this,Aa,t=>{f(this,bs)||t.buttons!=1||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),f(this,Ea).call(this,t.clientX),tt(this,Yr,setInterval(()=>{clearInterval(f(this,Yr)),tt(this,Gr,setInterval(()=>{var l=f(this,ae).thumb.getBoundingClientRect();t.clientX>l.x&&t.clientX<l.x+l.width?clearInterval(f(this,Gr)):f(this,Ea).call(this,t.clientX)},10))},500)))});Y(this,sc,t=>{var l=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-l.left,t.offsetY=t.targetTouches[0].pageY-l.top,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY,t.buttons=1,f(this,Ta).call(this,t),document.addEventListener("touchmove",f(this,Ra))});Y(this,Ta,t=>{tt(this,bs,!0);var l=Math.min($(f(this,ae).track).width()*$(f(this,Je).body.querySelector(".ng-container-body")).width()/$(f(this,Je).body.querySelector(".ng-container-body > table")).width(),$(f(this,ae).track).width());$(f(this,ae).thumb).width(parseInt(l)),$(f(this,ae).thumb).css({width:parseInt(l),"min-width":parseInt(l)}),this.shiftX=t.offsetX+f(this,ae).track.getBoundingClientRect().x,document.addEventListener("mousemove",f(this,An)),typeof this.onDragStart=="function"&&this.onDragStart()});Y(this,Ra,t=>{var l=t.target.getBoundingClientRect();t.offsetX=t.targetTouches[0].pageX-l.left,t.offsetY=t.targetTouches[0].pageY-l.top,t.pageX=t.changedTouches[0].pageX,t.pageY=t.changedTouches[0].pageY,t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY,t.buttons=1,f(this,An).call(this,t)});Y(this,An,t=>{f(this,bs)&&f(this,Us).call(this,t.pageX-this.shiftX)});this.attachShadow({mode:"open"})}connectedCallback(){tt(this,Je,this.getRootNode().host),this.shadowRoot.innerHTML=`
|
|
665
665
|
<style>
|
|
666
666
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngHScrollBar.css";
|
|
667
667
|
${H.getCustomPath(this,"ngHScrollBar.css")}
|
|
@@ -702,7 +702,7 @@ Do you want to save it?`,"SAVE",{class:"rgb","true-text":"Yes","false-text":"No"
|
|
|
702
702
|
}else if(s&&!t){l[e].__ng._[H.ROW.COLLAPSE]=!0;//!b;
|
|
703
703
|
}else if(!s&&t){l[e].__ng._[H.ROW.COLLAPSE]=!0;//!b;
|
|
704
704
|
}else if(!s&&!t){l[e].__ng._[H.ROW.COLLAPSE]=!0;//!b;
|
|
705
|
-
}n=l[e]}});Y(this,
|
|
705
|
+
}n=l[e]}});Y(this,yu,t=>{var l=this.owner.data.getValidDataNF();const c=this.owner.data.findIndexNF_1(this.data.__ng._[H.ROW.INDEX]);if(!(c<0))for(var o=this.owner.fields.indexOf(this.cell.dataset.bind),r=this.value,n=c+1;n<l.length;n++){var s=l[n].v[o];if(s<=r)break;l[n].__ng._[H.ROW.COLLAPSE]=!t}});Y(this,Ha,t=>{if(t<=0)return-1;const l=this.owner.data.get(t,this.cell.dataset.bind),c=this.owner.fields.indexOf(this.cell.dataset.bind),o=this.owner.data.getValidData();for(var r=t-1;r>=0;r--){const n=o[r].v[c];if(l>n)return r}return-1});Y(this,za,t=>{if(H.isNull(t)||t<0)throw`invalid row [${t}]`;if(t+1>=this.owner.data.count())return!0;const l=this.owner.data.get(t,this.cell.dataset.bind),c=this.owner.fields.indexOf(this.cell.dataset.bind),o=this.owner.data.getValidData();for(var r=t+1;r<o.length;r++){const n=o[r].v[c];if(n<l)return!0;if(n==l)return!1}return!0});Y(this,uc,()=>{var t=[],l=this.owner.data.getValidDataNF(),c=this.owner.data.findIndexNF_1(this.data.__ng._[H.ROW.INDEX]);if(c<0)throw`invalid row index [${this.data.__ng._[H.ROW.INDEX]}]`;var o=this.owner.fields.indexOf(this.cell.dataset.bind);const r=l[c].v[o];for(var n=c+1;n<l.length;n++){var s=l[n].v[o];if(r>=s)break;s==r+1&&t.push(l[n])}return t});Y(this,dc,()=>f(this,uc).call(this).length>0);Y(this,fc,t=>H.isNull(t)||t<0||this.owner.data.count()>=0?-1:this.owner.data.get(t,this.cell.dataset.bind))}connectedCallback(){this.shadowRoot.innerHTML=`
|
|
706
706
|
<style>
|
|
707
707
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngTreeItem.css";
|
|
708
708
|
${H.getCustomPath(this,"ngTreeItem.css")}
|
|
@@ -717,7 +717,7 @@ Do you want to save it?`,"SAVE",{class:"rgb","true-text":"Yes","false-text":"No"
|
|
|
717
717
|
<div></div>
|
|
718
718
|
<span class="text">${this.displayValue}</span>
|
|
719
719
|
</div>
|
|
720
|
-
`,super.connectedCallback(),tt(this,Ba,this.shadowRoot.querySelector("div.ng-pad")),tt(this,Fa,this.shadowRoot.querySelector("span"))}get prevLevel(){var t=parseInt(this.closest("tr").sectionRowIndex/this.owner.template.length);if(!this.owner.dataManager.viewRecords)return-1;if(t!=0){var l=this.owner.data.getNF(t-1);return l[this.cell.dataset.bind]}else for(var c=parseInt(this.cell.dataset.row)-1;c>=0;c--){var o=this.owner.data.get(c);if(!o.__ng._[H.ROW.EXPAND])return o[this.cell.dataset.bind]}return-1}}Ba=new WeakMap,Fa=new WeakMap,qa=new WeakMap,wi=new WeakSet,Pl=function(){return this.data.__ng._[H.ROW.EXPAND]},ac=new WeakMap,lc=new WeakMap,hc=new WeakMap,cc=new WeakMap,bu=new WeakMap,Ha=new WeakMap,za=new WeakMap,uc=new WeakMap,dc=new WeakMap,fc=new WeakMap,customElements.get("ng-tree-item")||customElements.define("ng-tree-item",hf);class cf{constructor(E){Y(this,yt);Y(this,Ke);Y(this,wr);Y(this,xi);Y(this,_i,[]);it(this,"init",()=>{tt(this,wr,{body:$(".ng-container-body",f(this,yt).body).height()||0,thead:$(".ng-container-body thead",f(this,yt).body).height()||0,tfoot:$(".ng-container-body tfoot",f(this,yt).body).height()||0}),!f(this,xi)&&($(".ng-container tbody.bindable tr.nodata",f(this,yt).body).height(f(this,wr).body),tt(this,xi,!0))});it(this,"redraw",()=>{f(this,yt).touchEvent.scrollTop(),this.init(),f(this,yt).dataManager&&(tt(this,Ke,f(this,yt).dataManager.viewRecords.rawIndex||0),f(this,pc).call(this),f(this,Tn).call(this),f(this,yt).body.querySelector("ng-vscrollbar").refresh())});it(this,"redrawV2",()=>{f(this,yt).touchEvent.scrollTop(),this.init(),tt(this,Ke,f(this,yt).dataManager.viewRecords.rawIndex||0),f(this,mc).call(this),f(this,Tn).call(this),f(this,yt).body.querySelector("ng-vscrollbar").refreshV2()});it(this,"redrawV3",()=>{this.init(),tt(this,Ke,f(this,yt).dataManager.viewRecords.rawIndex||0),f(this,Tn).call(this)});Y(this,Ua,()=>{var E=0;return $(".ng-container-body tbody.fixed tr",f(this,yt).body).each((t,l)=>{l.data&&l.data.__ng&&(E+=f(this,yt).matrix.getHeight(l.data.__ng.height[parseInt(t%f(this,yt).template.length)]))}),E});Y(this,Va,()=>{var E=f(this,Ua).call(this);const t=parseInt(f(this,Ke)*f(this,yt).template.length);return $(".ng-container-body tbody.bindable tr:not(.nodata)",f(this,yt).body).each((l,c)=>{E+=f(this,yt).matrix.getHeight(t+l)}),E});Y(this,Wa,()=>{const E=parseInt(f(this,yt).getAttribute("display-row-count"));if(f(this,yt).closest("dialog")&&H.j.querySelectorAll(f(this,yt)).hasClass("simple"))return 1;if([H.PAGINGTYPE.CLIENT,H.PAGINGTYPE.SERVER].includes(f(this,yt).paging.type))return f(this,yt).paging.linesPerPage;if(!isNaN(E))return f(this,Ke)+E>f(this,yt).data.count()&&(tt(this,Ke,E>=f(this,yt).data.count()?0:f(this,yt).data.count()-E),f(this,yt).dataManager.viewRecords.rawIndex=f(this,Ke)),E;const t=f(this,wr).body-f(this,wr).thead-f(this,wr).tfoot-f(this,Ua).call(this);for(var l=0,c=0;c<t;)c+=this.getRowHeight(f(this,Ke)+l++);if(f(this,Ke)+l>f(this,yt).data.count()){l=0,c=0;for(var o=f(this,yt).data.count()-1;o>=0&&c<t;o--)c+=this.getRowHeight(o),l++;c>t&&l--,tt(this,Ke,f(this,yt).data.count()-l),f(this,yt).dataManager.viewRecords.rawIndex=f(this,Ke)}return l});Y(this,Xa,()=>{var E=f(this,Wa).call(this),t=$(".ng-container-body tbody.bindable tr",f(this,yt).body).not("tr.nodata").length/(f(this,yt).template.length||1);const l=f(this,yt).template.clone(),c=l.clone(),o=l.clone();l.find("th,td").not("[fixed=left]").remove(),c.find("th,td").not("[fixed=right]").remove(),o.find("th[fixed=left],td[fixed=left],th[fixed=right],td[fixed=right]").remove();const r=$("tr.nodata",f(this,yt).body.querySelector(".ng-container-left")),n=$("tr.nodata",f(this,yt).body.querySelector(".ng-container-right")),s=$("tr.nodata",f(this,yt).body.querySelector(".ng-container-body"));for(var e=t;e<E;e++)l.each((u,a)=>{r.before(a.outerHTML)}),c.each((u,a)=>{n.before(a.outerHTML)}),o.each((u,a)=>{s.before(a.outerHTML)});return;var i;if(i.length>0)var t});Y(this,Ya,()=>{var E=Math.min(f(this,Wa).call(this),f(this,yt).data.count());$(".ng-container tbody.bindable tr:not(.nodata)",f(this,yt).body).each((t,l)=>{parseInt(l.sectionRowIndex/f(this,yt).template.length)>=E&&$(l).remove()}),f(this,yt).body.querySelectorAll(".ng-container tbody.bindable tr:not(.nodata)").forEach(t=>{f(this,Ke)+parseInt(t.sectionRowIndex/f(this,yt).template.length)>=f(this,yt).data.count()&&$(t).remove()})});Y(this,pc,()=>{f(this,Xa).call(this),f(this,Ya).call(this);var E=f(this,wr).body-f(this,wr).thead-f(this,wr).tfoot-f(this,Va).call(this);if(f(this,yt).getAttribute("display-row-count")&&f(this,yt).data.count()>=Number(f(this,yt).getAttribute("display-row-count")||0)&&(E=0),$(".ng-container tbody.bindable tr.nodata",f(this,yt).body).height(E),f(this,yt).closest("dialog")&&H.j.querySelectorAll(f(this,yt)).hasClass("simple")){$("tr.nodata",f(this,yt).body).height(0);var E=47;$(".ng-container-body tbody.bindable tr",f(this,yt).body).not(".nodata").each((l,c)=>{E+=$(c).height()}),$(f(this,yt).closest("dialog")).height(E)}});Y(this,mc,()=>{f(this,Xa).call(this),f(this,Ya).call(this),f(this,yt).isLastPage});Y(this,gc,()=>{for(const E of f(this,_i))clearTimeout(E);tt(this,_i,[]),f(this,_i).push(setTimeout(()=>{tt(this,xi,!1);var E=$(".ng-container-body tbody.bindable tr",f(this,yt).body).not(".nodata"),t=$(".ng-container-left tbody.bindable tr",f(this,yt).body).not(".nodata"),l=$(".ng-container-right tbody.bindable tr",f(this,yt).body).not(".nodata");if(E.length>0){var c=parseInt(E[0].dataset.row*f(this,yt).template.length);E.each((r,n)=>{var s=f(this,yt).matrix.getHeight(c+r);$("canvas.chart",n).css({height:s-4}),$("canvas.chart",t.eq(r)).css({height:s-4}),$("canvas.chart",l.eq(r)).css({height:s-4}),$(n).css({height:s}).height(s),t.eq(r).css({height:s}).height(s),l.eq(r).css({height:s}).height(s)})}f(this,yt).cell.refresh(),$("ng-row-indicator",f(this,yt).body).each((r,n)=>{n.refresh()});var o=f(this,wr).body-f(this,wr).thead-f(this,wr).tfoot-f(this,Va).call(this);f(this,yt).getAttribute("display-row-count")&&f(this,yt).data.count()>=Number(f(this,yt).getAttribute("display-row-count")||0)&&(o=0),$(".ng-container tbody.bindable tr.nodata",f(this,yt).body).height(o),f(this,yt).refreshBindRows(),f(this,yt).refreshData(),f(this,yt).paging.totalCount=f(this,yt).data.countNF(),f(this,yt).body.querySelector("ng-vscrollbar").refresh(),H.j.querySelectorAll(".ng-table tbody tr",f(this,yt).body).removeClass("hover"),H.j.querySelectorAll(f(this,yt)).removeClass("loading"),H.j.querySelectorAll("ng-filter-panel").removeClass("loading")},300)),f(this,_i).push(setTimeout(()=>{f(this,yt).refreshDataV2()}))});Y(this,Tn,()=>{var E=[];f(this,yt).body.querySelectorAll(".ng-container-body tbody.bindable tr:not(.nodata)").forEach(t=>{E.push(f(this,Ke)+parseInt(t.sectionRowIndex/f(this,yt).template.length))}),E=[...new Set(E)],f(this,yt).body.querySelectorAll(".ng-container tbody.bindable tr:not(.nodata)").forEach(t=>{const l=parseInt(t.sectionRowIndex/f(this,yt).template.length);t.dataset.row=E[l],t.dataset.matrixRow=parseInt(E[l]*f(this,yt).template.length)+parseInt(t.sectionRowIndex%f(this,yt).template.length);for(const c of t.cells)c.dataset.row=t.dataset.row,c.dataset.matrixRow=t.dataset.matrixRow}),E.forEach(t=>{const l=f(this,yt).data.get(t);f(this,yt).body.querySelectorAll(`.ng-container tbody.bindable tr[data-row="${t}"]`).forEach(c=>{c.data=l})}),tt(this,Ke,parseInt(f(this,yt).body.querySelector(".ng-container-body tbody.bindable tr:first-of-type").getAttribute("data-row"))),f(this,yt).dataManager.viewRecords.rawIndex=f(this,Ke),f(this,gc).call(this),f(this,yt).isFirstPage=f(this,Ke)==0,f(this,yt).isLastPage=E[E.length-1]==f(this,yt).data.count()-1});it(this,"getVisibleFirstRow",()=>{var E=f(this,yt).body.querySelector(".ng-container-body tbody.bindable tr:first-child");return parseInt(E.dataset.row)});it(this,"getVisibleLastRow",()=>{var E=f(this,yt).body.querySelectorAll(".ng-container-body tbody.bindable tr:not(.nodata)");return E.length>0?parseInt(E[E.length-1].dataset.row):-1});it(this,"getRowHeight",E=>{let t=0;for(var l=0;l<f(this,yt).template.length;l++)t+=f(this,yt).matrix.getHeight(parseInt(E*f(this,yt).template.length+l));return t});it(this,"getTranslateY",()=>{const E=f(this,yt).body.querySelector(".ng-container-body tbody.bindable");return!E||!E.style||!E.style.transform?0:parseFloat(E.style.transform.replace("translateY(","").replace(")",""))});it(this,"getTotalSpace",()=>$(f(this,yt).body.querySelector(".ng-container-body")).height()-($(f(this,yt).body.querySelector(".ng-container-body thead")).height()||0)-($(f(this,yt).body.querySelector(".ng-container-body tfoot")).height()||0)-($(f(this,yt).body.querySelector(".ng-container-body tbody.fixed")).height()||0));it(this,"fitPage",()=>{const E=this.getVisibleLastRow(),t=this.getTotalSpace();if(E==f(this,yt).data.count()-1){for(var l=0,c=E;c>=0;c--)if(l+=this.getRowHeight(c),l>t){f(this,yt).scrollTo(c+1);break}}});it(this,"selectArea",(E,t,l,c)=>{const o=f(this,Vs).call(this,E),r=f(this,Vs).call(this,l),n=f(this,Ws).call(this,t),s=f(this,Ws).call(this,c),e=parseInt(o*f(this,yt).template.length),i=parseInt(r*f(this,yt).template.length)+f(this,yt).template.length-1;f(this,yt).row.at=o,o>=0&&r>=0?f(this,yt).selection.selectArea(e,n,i,s):this.clearSelection()});it(this,"selectRow",(E,t)=>{const l=f(this,Vs).call(this,E),c=H.isNull(t)?l:f(this,Vs).call(this,t),o=parseInt(l*f(this,yt).template.length),r=parseInt(c*f(this,yt).template.length)+f(this,yt).template.length-1;f(this,yt).row.at=l,l>=0&&c>=0?f(this,yt).selection.selectArea(o,f(this,yt).firstCol,r,f(this,yt).lastCol):this.clearSelection()});it(this,"selectCol",(E,t)=>{const l=f(this,Ws).call(this,E),c=H.isNull(t)?l:f(this,Ws).call(this,t),o=0,r=parseInt(f(this,yt).data.count()*f(this,yt).template.length-1);l>=0&&c>=0?f(this,yt).selection.selectArea(o,l,r,c):this.clearSelection()});it(this,"selectCell",(E,t,l)=>{const c=f(this,Vs).call(this,E),o=f(this,Ws).call(this,t),r=parseInt(c*f(this,yt).template.length)+H.nvl(l,0);f(this,yt).row.at=c,c>=0?f(this,yt).selection.selectArea(r,o,r,o):this.clearSelection()});Y(this,Vs,E=>{if(typeof E=="number")return E;if(typeof E=="function")return f(this,yt).data.findIndex(E);throw`invalid ${E}`});Y(this,Ws,E=>{if(typeof E=="number")return E;if(typeof E=="string"&&f(this,yt).fields.includes(E))return parseInt($(`[data-bind="${E}"]`,f(this,yt).template)[0].dataset.col);throw`invalid ${E}`});it(this,"moveTo",E=>{f(this,yt).scrollTo(E)});tt(this,yt,E),tt(this,xi,!1),this.init()}}yt=new WeakMap,Ke=new WeakMap,wr=new WeakMap,xi=new WeakMap,_i=new WeakMap,Ua=new WeakMap,Va=new WeakMap,Wa=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,pc=new WeakMap,mc=new WeakMap,gc=new WeakMap,Tn=new WeakMap,Vs=new WeakMap,Ws=new WeakMap;class uf{constructor(E){Y(this,Qe);Y(this,Xs);it(this,"initialize",()=>{tt(this,Xs,!1),f(this,Qe).data.clearFilter()});it(this,"isFiltering",()=>f(this,Xs));it(this,"on",E=>{tt(this,Xs,!0);const t=f(this,bc).call(this);f(this,Qe).body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach(l=>{var o,r;const c=(o=l.closest("tr"))==null?void 0:o.sectionRowIndex;if(c!==void 0&&c+l.rowSpan-1===t){const n=Array.from(f(this,Qe).activeTmpl.querySelectorAll(`[data-col="${l.dataset.col}"]`)).map(s=>s.dataset.bind?{colnm:s.dataset.bind,data:[]}:null).filter(Boolean);if(n.length>0){(r=l.querySelector("ng-filter-button"))==null||r.remove();const s=document.createElement("ng-filter-button");l.appendChild(s),s.filterOptions=n}}})});it(this,"off",()=>{tt(this,Xs,!1),f(this,Qe).body.querySelectorAll(".ng-table ng-filter-button").forEach(E=>{E.remove()})});it(this,"set",E=>{this.on();let t=Array.isArray(E)?Object.fromEntries(Object.keys(E[0]).map(l=>[l,[...new Set(E.map(c=>c[l]))]])):E;f(this,Qe).data.clearFilter(),Object.entries(t).forEach(([l,c])=>{const o=f(this,Qe).fields.indexOf(l);f(this,Qe).data.getValidData().some(r=>typeof r.v[o]=="number")&&(c=c.map(Number)),f(this,Qe).data.getValidData().filter(r=>c.nineBinarySearch(r.v[o]||"")<0).forEach(r=>{r.__ng.filtered=!0})}),f(this,Qe).data.refreshFilter(),f(this,Qe).shadowRoot.querySelectorAll("ng-filter-button").forEach(l=>{l.filterOptions.forEach(c=>{c.data=[]})}),Object.entries(t).forEach(([l,c])=>{f(this,Qe).shadowRoot.querySelectorAll("ng-filter-button").forEach(o=>{let r=o.filterOptions;r.forEach(n=>{n.colnm===l&&(n.data=c)}),o.filterOptions=r})}),f(this,Qe).scrollTo_V1(0),f(this,Qe).paging.reset()});Y(this,bc,(E="thead")=>[...f(this,Qe).body.querySelectorAll(`.ng-table ${E}`)].reduce((t,l)=>Math.max(l.rows.length-1,t),0));tt(this,Qe,E),tt(this,Xs,!1);const t=document.createElement("ng-filter-panel");t.style.display="none",f(this,Qe).shadowRoot.appendChild(t)}}Qe=new WeakMap,Xs=new WeakMap,bc=new WeakMap;class df extends HTMLElement{constructor(){super();Y(this,Ga);Y(this,Rn);Y(this,Ka,t=>{var o;t.preventDefault(),t.stopPropagation();const l=f(this,Ga).shadowRoot.querySelector("ng-filter-panel"),c=(o=this.closest("th,td"))==null?void 0:o.dataset.col;l.col===c?l.close():l.open(this)})}connectedCallback(){tt(this,Ga,this.getRootNode().host),this.removeEventListener("click",f(this,Ka)),this.addEventListener("click",f(this,Ka))}get filterOptions(){return f(this,Rn)}set filterOptions(t){tt(this,Rn,t),this.classList.toggle("filtered",f(this,Rn).some(l=>l.data.length>0))}}Ga=new WeakMap,Rn=new WeakMap,Ka=new WeakMap;class ff extends HTMLElement{constructor(){super();Y(this,Mr);Y(this,Za);Y(this,Ja);Y(this,yc,t=>{const l=this.shadowRoot.querySelector("nine-grid");this.classList.add("loading"),setTimeout(()=>{const[c,o,r,n]=["LVL","CHK","COLNM","DATA"].map(u=>l.fields.indexOf(u)),s=l.data.getValidDataNF().filter(u=>u.v[c]===2&&u.v[o]==="Y"),e=s.length>0?[...new Set(s.map(u=>u.v[r]))].map(u=>({colnm:u,data:[...new Set(l.data.getValidData().filter(a=>a.v[o]==="Y"&&a.v[r]===u).map(a=>a.v[n]||""))].sort()})):[];f(this,Za).filterOptions=e;const i=Object.fromEntries([...f(this,Mr).body.querySelectorAll("ng-filter-button")].flatMap(u=>u.filterOptions).filter(u=>u.data.length>0).map(u=>[u.colnm,u.data]));f(this,Mr).filtering.set(i),this.classList.remove("loading"),this.style.display="none"})});Y(this,vc,t=>{this.style.display="none"});Y(this,wc,t=>{const l=this.shadowRoot.querySelector("nine-grid"),c=l.fields.indexOf("CHK"),o=t.target.checked;l.data.getValidData().forEach(r=>{r.v[c]=o?"Y":"N"}),l.refreshData()});Y(this,xc,t=>{const l=this.shadowRoot.querySelector("nine-grid");l.classList.add("loading");const c=l.dataManager.rawRecords;c.forEach(s=>{s.__ng.filtered=!1});const o=t.target.value.toLowerCase(),[r,n]=["LVL","DATA"].map(s=>l.fields.indexOf(s));c.forEach(s=>{s.__ng.filtered=s.v[r]===2&&!String(s.v[n]||"").toLowerCase().includes(o)}),l.data.resetRecords(),clearTimeout(f(this,Ja)),tt(this,Ja,setTimeout(()=>{l.dataManager.viewRecords.reset(),l.dataManager.viewRecords.touch()},200))});it(this,"close",()=>{this.col=null,this.style.display="none"});it(this,"open",t=>{const l=t.closest("th,td"),{left:c}=t.getBoundingClientRect(),{left:o,width:r,top:n}=f(this,Mr).getBoundingClientRect(),{top:s,height:e}=l.getBoundingClientRect(),{width:i}=this.getBoundingClientRect();let u=Math.max(0,c-o);u=Math.min(u,r-i-5);const a=s+e-n;Object.assign(this.style,{left:`${u}px`,top:`${a}px`,display:"flex"}),this.classList.add("loading"),this.shadowRoot.querySelector("input[type=text]").value="",setTimeout(()=>{const h=f(this,Mr).data.getValidDataNF(),p=l.dataset.col;this.col=p,tt(this,Za,t);const m=t.filterOptions.map((g,S)=>{const C=`<span class="group">${l.textContent}${t.filterOptions.length>1?` #${S+1} (${g.colnm})`:""}</span>`,I=f(this,Mr).activeTmpl.querySelector(`[data-col="${p}"][data-bind="${g.colnm}"]`),D=I==null?void 0:I.getAttribute("data-expr"),z=D?f(this,Mr).exprFunction(D):null,P=h.map(B=>{const F=f(this,Mr).fields.indexOf(g.colnm);return D?{v:B.v[F],v2:z(f(this,Mr).data.conv(B),B.__ng.rowidx,f(this,Mr).data)}:{v:B.v[F],v2:B.v[F]}});return[{LVL:1,CHK:"N",DATA2:C},...[...new Set(P.map(JSON.stringify))].map(JSON.parse).sort((B,F)=>(B.v2||"")>(F.v2||"")?1:(B.v2||"")<(F.v2||"")?-1:0).map(B=>({LVL:2,DATA:B.v,DATA2:B.v2||` <span class="empty">(empty)</span> ${B.v}`,COLNM:g.colnm,CHK:g.data.length===0||g.data.nineBinarySearch(B.v||"")>=0?"Y":"N"}))]}).flat(),d=this.shadowRoot.querySelector("nine-grid");d.fields.add(["DATA","DATA2","COLNM"]),d.data.set(m);const b=this.shadowRoot.querySelector("input[type=checkbox]");b.checked=d.data.getValidData().every(g=>!(g.LVL===2&&g.CHK!=="Y")),this.shadowRoot.querySelector("input").focus(),this.classList.remove("loading")})});this.attachShadow({mode:"open"})}connectedCallback(){tt(this,Mr,this.getRootNode().host);const t=this.getRootNode().host.closest("nine-grid").getAttribute("css-path")||"";this.shadowRoot.innerHTML=`
|
|
720
|
+
`,super.connectedCallback(),tt(this,Ba,this.shadowRoot.querySelector("div.ng-pad")),tt(this,Fa,this.shadowRoot.querySelector("span"))}get prevLevel(){var t=parseInt(this.closest("tr").sectionRowIndex/this.owner.template.length);if(!this.owner.dataManager.viewRecords)return-1;if(t!=0){var l=this.owner.data.getNF(t-1);return l[this.cell.dataset.bind]}else for(var c=parseInt(this.cell.dataset.row)-1;c>=0;c--){var o=this.owner.data.get(c);if(!o.__ng._[H.ROW.EXPAND])return o[this.cell.dataset.bind]}return-1}}Ba=new WeakMap,Fa=new WeakMap,qa=new WeakMap,wi=new WeakSet,Pl=function(){return this.data.__ng._[H.ROW.EXPAND]},ac=new WeakMap,lc=new WeakMap,hc=new WeakMap,cc=new WeakMap,yu=new WeakMap,Ha=new WeakMap,za=new WeakMap,uc=new WeakMap,dc=new WeakMap,fc=new WeakMap,customElements.get("ng-tree-item")||customElements.define("ng-tree-item",hf);class cf{constructor(E){Y(this,yt);Y(this,Ke);Y(this,wr);Y(this,xi);Y(this,_i,[]);it(this,"init",()=>{tt(this,wr,{body:$(".ng-container-body",f(this,yt).body).height()||0,thead:$(".ng-container-body thead",f(this,yt).body).height()||0,tfoot:$(".ng-container-body tfoot",f(this,yt).body).height()||0}),!f(this,xi)&&($(".ng-container tbody.bindable tr.nodata",f(this,yt).body).height(f(this,wr).body),tt(this,xi,!0))});it(this,"redraw",()=>{f(this,yt).touchEvent.scrollTop(),this.init(),f(this,yt).dataManager&&(tt(this,Ke,f(this,yt).dataManager.viewRecords.rawIndex||0),f(this,pc).call(this),f(this,Tn).call(this),f(this,yt).body.querySelector("ng-vscrollbar").refresh())});it(this,"redrawV2",()=>{f(this,yt).touchEvent.scrollTop(),this.init(),tt(this,Ke,f(this,yt).dataManager.viewRecords.rawIndex||0),f(this,mc).call(this),f(this,Tn).call(this),f(this,yt).body.querySelector("ng-vscrollbar").refreshV2()});it(this,"redrawV3",()=>{this.init(),tt(this,Ke,f(this,yt).dataManager.viewRecords.rawIndex||0),f(this,Tn).call(this)});Y(this,Ua,()=>{var E=0;return $(".ng-container-body tbody.fixed tr",f(this,yt).body).each((t,l)=>{l.data&&l.data.__ng&&(E+=f(this,yt).matrix.getHeight(l.data.__ng.height[parseInt(t%f(this,yt).template.length)]))}),E});Y(this,Va,()=>{var E=f(this,Ua).call(this);const t=parseInt(f(this,Ke)*f(this,yt).template.length);return $(".ng-container-body tbody.bindable tr:not(.nodata)",f(this,yt).body).each((l,c)=>{E+=f(this,yt).matrix.getHeight(t+l)}),E});Y(this,Wa,()=>{const E=parseInt(f(this,yt).getAttribute("display-row-count"));if(f(this,yt).closest("dialog")&&H.j.querySelectorAll(f(this,yt)).hasClass("simple"))return 1;if([H.PAGINGTYPE.CLIENT,H.PAGINGTYPE.SERVER].includes(f(this,yt).paging.type))return f(this,yt).paging.linesPerPage;if(!isNaN(E))return f(this,Ke)+E>f(this,yt).data.count()&&(tt(this,Ke,E>=f(this,yt).data.count()?0:f(this,yt).data.count()-E),f(this,yt).dataManager.viewRecords.rawIndex=f(this,Ke)),E;const t=f(this,wr).body-f(this,wr).thead-f(this,wr).tfoot-f(this,Ua).call(this);for(var l=0,c=0;c<t;)c+=this.getRowHeight(f(this,Ke)+l++);if(f(this,Ke)+l>f(this,yt).data.count()){l=0,c=0;for(var o=f(this,yt).data.count()-1;o>=0&&c<t;o--)c+=this.getRowHeight(o),l++;c>t&&l--,tt(this,Ke,f(this,yt).data.count()-l),f(this,yt).dataManager.viewRecords.rawIndex=f(this,Ke)}return l});Y(this,Xa,()=>{var E=f(this,Wa).call(this),t=$(".ng-container-body tbody.bindable tr",f(this,yt).body).not("tr.nodata").length/(f(this,yt).template.length||1);const l=f(this,yt).template.clone(),c=l.clone(),o=l.clone();l.find("th,td").not("[fixed=left]").remove(),c.find("th,td").not("[fixed=right]").remove(),o.find("th[fixed=left],td[fixed=left],th[fixed=right],td[fixed=right]").remove();const r=$("tr.nodata",f(this,yt).body.querySelector(".ng-container-left")),n=$("tr.nodata",f(this,yt).body.querySelector(".ng-container-right")),s=$("tr.nodata",f(this,yt).body.querySelector(".ng-container-body"));for(var e=t;e<E;e++)l.each((u,a)=>{r.before(a.outerHTML)}),c.each((u,a)=>{n.before(a.outerHTML)}),o.each((u,a)=>{s.before(a.outerHTML)});return;var i;if(i.length>0)var t});Y(this,Ya,()=>{var E=Math.min(f(this,Wa).call(this),f(this,yt).data.count());$(".ng-container tbody.bindable tr:not(.nodata)",f(this,yt).body).each((t,l)=>{parseInt(l.sectionRowIndex/f(this,yt).template.length)>=E&&$(l).remove()}),f(this,yt).body.querySelectorAll(".ng-container tbody.bindable tr:not(.nodata)").forEach(t=>{f(this,Ke)+parseInt(t.sectionRowIndex/f(this,yt).template.length)>=f(this,yt).data.count()&&$(t).remove()})});Y(this,pc,()=>{f(this,Xa).call(this),f(this,Ya).call(this);var E=f(this,wr).body-f(this,wr).thead-f(this,wr).tfoot-f(this,Va).call(this);if(f(this,yt).getAttribute("display-row-count")&&f(this,yt).data.count()>=Number(f(this,yt).getAttribute("display-row-count")||0)&&(E=0),$(".ng-container tbody.bindable tr.nodata",f(this,yt).body).height(E),f(this,yt).closest("dialog")&&H.j.querySelectorAll(f(this,yt)).hasClass("simple")){$("tr.nodata",f(this,yt).body).height(0);var E=47;$(".ng-container-body tbody.bindable tr",f(this,yt).body).not(".nodata").each((l,c)=>{E+=$(c).height()}),$(f(this,yt).closest("dialog")).height(E)}});Y(this,mc,()=>{f(this,Xa).call(this),f(this,Ya).call(this),f(this,yt).isLastPage});Y(this,gc,()=>{for(const E of f(this,_i))clearTimeout(E);tt(this,_i,[]),f(this,_i).push(setTimeout(()=>{tt(this,xi,!1);var E=$(".ng-container-body tbody.bindable tr",f(this,yt).body).not(".nodata"),t=$(".ng-container-left tbody.bindable tr",f(this,yt).body).not(".nodata"),l=$(".ng-container-right tbody.bindable tr",f(this,yt).body).not(".nodata");if(E.length>0){var c=parseInt(E[0].dataset.row*f(this,yt).template.length);E.each((r,n)=>{var s=f(this,yt).matrix.getHeight(c+r);$("canvas.chart",n).css({height:s-4}),$("canvas.chart",t.eq(r)).css({height:s-4}),$("canvas.chart",l.eq(r)).css({height:s-4}),$(n).css({height:s}).height(s),t.eq(r).css({height:s}).height(s),l.eq(r).css({height:s}).height(s)})}f(this,yt).cell.refresh(),$("ng-row-indicator",f(this,yt).body).each((r,n)=>{n.refresh()});var o=f(this,wr).body-f(this,wr).thead-f(this,wr).tfoot-f(this,Va).call(this);f(this,yt).getAttribute("display-row-count")&&f(this,yt).data.count()>=Number(f(this,yt).getAttribute("display-row-count")||0)&&(o=0),$(".ng-container tbody.bindable tr.nodata",f(this,yt).body).height(o),f(this,yt).refreshBindRows(),f(this,yt).refreshData(),f(this,yt).paging.totalCount=f(this,yt).data.countNF(),f(this,yt).body.querySelector("ng-vscrollbar").refresh(),H.j.querySelectorAll(".ng-table tbody tr",f(this,yt).body).removeClass("hover"),H.j.querySelectorAll(f(this,yt)).removeClass("loading"),H.j.querySelectorAll("ng-filter-panel").removeClass("loading")},300)),f(this,_i).push(setTimeout(()=>{f(this,yt).refreshDataV2()}))});Y(this,Tn,()=>{var E=[];f(this,yt).body.querySelectorAll(".ng-container-body tbody.bindable tr:not(.nodata)").forEach(t=>{E.push(f(this,Ke)+parseInt(t.sectionRowIndex/f(this,yt).template.length))}),E=[...new Set(E)],f(this,yt).body.querySelectorAll(".ng-container tbody.bindable tr:not(.nodata)").forEach(t=>{const l=parseInt(t.sectionRowIndex/f(this,yt).template.length);t.dataset.row=E[l],t.dataset.matrixRow=parseInt(E[l]*f(this,yt).template.length)+parseInt(t.sectionRowIndex%f(this,yt).template.length);for(const c of t.cells)c.dataset.row=t.dataset.row,c.dataset.matrixRow=t.dataset.matrixRow}),E.forEach(t=>{const l=f(this,yt).data.get(t);f(this,yt).body.querySelectorAll(`.ng-container tbody.bindable tr[data-row="${t}"]`).forEach(c=>{c.data=l})}),tt(this,Ke,parseInt(f(this,yt).body.querySelector(".ng-container-body tbody.bindable tr:first-of-type").getAttribute("data-row"))),f(this,yt).dataManager.viewRecords.rawIndex=f(this,Ke),f(this,gc).call(this),f(this,yt).isFirstPage=f(this,Ke)==0,f(this,yt).isLastPage=E[E.length-1]==f(this,yt).data.count()-1});it(this,"getVisibleFirstRow",()=>{var E=f(this,yt).body.querySelector(".ng-container-body tbody.bindable tr:first-child");return parseInt(E.dataset.row)});it(this,"getVisibleLastRow",()=>{var E=f(this,yt).body.querySelectorAll(".ng-container-body tbody.bindable tr:not(.nodata)");return E.length>0?parseInt(E[E.length-1].dataset.row):-1});it(this,"getRowHeight",E=>{let t=0;for(var l=0;l<f(this,yt).template.length;l++)t+=f(this,yt).matrix.getHeight(parseInt(E*f(this,yt).template.length+l));return t});it(this,"getTranslateY",()=>{const E=f(this,yt).body.querySelector(".ng-container-body tbody.bindable");return!E||!E.style||!E.style.transform?0:parseFloat(E.style.transform.replace("translateY(","").replace(")",""))});it(this,"getTotalSpace",()=>$(f(this,yt).body.querySelector(".ng-container-body")).height()-($(f(this,yt).body.querySelector(".ng-container-body thead")).height()||0)-($(f(this,yt).body.querySelector(".ng-container-body tfoot")).height()||0)-($(f(this,yt).body.querySelector(".ng-container-body tbody.fixed")).height()||0));it(this,"fitPage",()=>{const E=this.getVisibleLastRow(),t=this.getTotalSpace();if(E==f(this,yt).data.count()-1){for(var l=0,c=E;c>=0;c--)if(l+=this.getRowHeight(c),l>t){f(this,yt).scrollTo(c+1);break}}});it(this,"selectArea",(E,t,l,c)=>{const o=f(this,Vs).call(this,E),r=f(this,Vs).call(this,l),n=f(this,Ws).call(this,t),s=f(this,Ws).call(this,c),e=parseInt(o*f(this,yt).template.length),i=parseInt(r*f(this,yt).template.length)+f(this,yt).template.length-1;f(this,yt).row.at=o,o>=0&&r>=0?f(this,yt).selection.selectArea(e,n,i,s):this.clearSelection()});it(this,"selectRow",(E,t)=>{const l=f(this,Vs).call(this,E),c=H.isNull(t)?l:f(this,Vs).call(this,t),o=parseInt(l*f(this,yt).template.length),r=parseInt(c*f(this,yt).template.length)+f(this,yt).template.length-1;f(this,yt).row.at=l,l>=0&&c>=0?f(this,yt).selection.selectArea(o,f(this,yt).firstCol,r,f(this,yt).lastCol):this.clearSelection()});it(this,"selectCol",(E,t)=>{const l=f(this,Ws).call(this,E),c=H.isNull(t)?l:f(this,Ws).call(this,t),o=0,r=parseInt(f(this,yt).data.count()*f(this,yt).template.length-1);l>=0&&c>=0?f(this,yt).selection.selectArea(o,l,r,c):this.clearSelection()});it(this,"selectCell",(E,t,l)=>{const c=f(this,Vs).call(this,E),o=f(this,Ws).call(this,t),r=parseInt(c*f(this,yt).template.length)+H.nvl(l,0);f(this,yt).row.at=c,c>=0?f(this,yt).selection.selectArea(r,o,r,o):this.clearSelection()});Y(this,Vs,E=>{if(typeof E=="number")return E;if(typeof E=="function")return f(this,yt).data.findIndex(E);throw`invalid ${E}`});Y(this,Ws,E=>{if(typeof E=="number")return E;if(typeof E=="string"&&f(this,yt).fields.includes(E))return parseInt($(`[data-bind="${E}"]`,f(this,yt).template)[0].dataset.col);throw`invalid ${E}`});it(this,"moveTo",E=>{f(this,yt).scrollTo(E)});tt(this,yt,E),tt(this,xi,!1),this.init()}}yt=new WeakMap,Ke=new WeakMap,wr=new WeakMap,xi=new WeakMap,_i=new WeakMap,Ua=new WeakMap,Va=new WeakMap,Wa=new WeakMap,Xa=new WeakMap,Ya=new WeakMap,pc=new WeakMap,mc=new WeakMap,gc=new WeakMap,Tn=new WeakMap,Vs=new WeakMap,Ws=new WeakMap;class uf{constructor(E){Y(this,Qe);Y(this,Xs);it(this,"initialize",()=>{tt(this,Xs,!1),f(this,Qe).data.clearFilter()});it(this,"isFiltering",()=>f(this,Xs));it(this,"on",E=>{tt(this,Xs,!0);const t=f(this,bc).call(this);f(this,Qe).body.querySelectorAll(".ng-table thead th, .ng-table thead td").forEach(l=>{var o,r;const c=(o=l.closest("tr"))==null?void 0:o.sectionRowIndex;if(c!==void 0&&c+l.rowSpan-1===t){const n=Array.from(f(this,Qe).activeTmpl.querySelectorAll(`[data-col="${l.dataset.col}"]`)).map(s=>s.dataset.bind?{colnm:s.dataset.bind,data:[]}:null).filter(Boolean);if(n.length>0){(r=l.querySelector("ng-filter-button"))==null||r.remove();const s=document.createElement("ng-filter-button");l.appendChild(s),s.filterOptions=n}}})});it(this,"off",()=>{tt(this,Xs,!1),f(this,Qe).body.querySelectorAll(".ng-table ng-filter-button").forEach(E=>{E.remove()})});it(this,"set",E=>{this.on();let t=Array.isArray(E)?Object.fromEntries(Object.keys(E[0]).map(l=>[l,[...new Set(E.map(c=>c[l]))]])):E;f(this,Qe).data.clearFilter(),Object.entries(t).forEach(([l,c])=>{const o=f(this,Qe).fields.indexOf(l);f(this,Qe).data.getValidData().some(r=>typeof r.v[o]=="number")&&(c=c.map(Number)),f(this,Qe).data.getValidData().filter(r=>c.nineBinarySearch(r.v[o]||"")<0).forEach(r=>{r.__ng.filtered=!0})}),f(this,Qe).data.refreshFilter(),f(this,Qe).shadowRoot.querySelectorAll("ng-filter-button").forEach(l=>{l.filterOptions.forEach(c=>{c.data=[]})}),Object.entries(t).forEach(([l,c])=>{f(this,Qe).shadowRoot.querySelectorAll("ng-filter-button").forEach(o=>{let r=o.filterOptions;r.forEach(n=>{n.colnm===l&&(n.data=c)}),o.filterOptions=r})}),f(this,Qe).scrollTo_V1(0),f(this,Qe).paging.reset()});Y(this,bc,(E="thead")=>[...f(this,Qe).body.querySelectorAll(`.ng-table ${E}`)].reduce((t,l)=>Math.max(l.rows.length-1,t),0));tt(this,Qe,E),tt(this,Xs,!1);const t=document.createElement("ng-filter-panel");t.style.display="none",f(this,Qe).shadowRoot.appendChild(t)}}Qe=new WeakMap,Xs=new WeakMap,bc=new WeakMap;class df extends HTMLElement{constructor(){super();Y(this,Ga);Y(this,Rn);Y(this,Ka,t=>{var o;t.preventDefault(),t.stopPropagation();const l=f(this,Ga).shadowRoot.querySelector("ng-filter-panel"),c=(o=this.closest("th,td"))==null?void 0:o.dataset.col;l.col===c?l.close():l.open(this)})}connectedCallback(){tt(this,Ga,this.getRootNode().host),this.removeEventListener("click",f(this,Ka)),this.addEventListener("click",f(this,Ka))}get filterOptions(){return f(this,Rn)}set filterOptions(t){tt(this,Rn,t),this.classList.toggle("filtered",f(this,Rn).some(l=>l.data.length>0))}}Ga=new WeakMap,Rn=new WeakMap,Ka=new WeakMap;class ff extends HTMLElement{constructor(){super();Y(this,Mr);Y(this,Za);Y(this,Ja);Y(this,yc,t=>{const l=this.shadowRoot.querySelector("nine-grid");this.classList.add("loading"),setTimeout(()=>{const[c,o,r,n]=["LVL","CHK","COLNM","DATA"].map(u=>l.fields.indexOf(u)),s=l.data.getValidDataNF().filter(u=>u.v[c]===2&&u.v[o]==="Y"),e=s.length>0?[...new Set(s.map(u=>u.v[r]))].map(u=>({colnm:u,data:[...new Set(l.data.getValidData().filter(a=>a.v[o]==="Y"&&a.v[r]===u).map(a=>a.v[n]||""))].sort()})):[];f(this,Za).filterOptions=e;const i=Object.fromEntries([...f(this,Mr).body.querySelectorAll("ng-filter-button")].flatMap(u=>u.filterOptions).filter(u=>u.data.length>0).map(u=>[u.colnm,u.data]));f(this,Mr).filtering.set(i),this.classList.remove("loading"),this.style.display="none"})});Y(this,vc,t=>{this.style.display="none"});Y(this,wc,t=>{const l=this.shadowRoot.querySelector("nine-grid"),c=l.fields.indexOf("CHK"),o=t.target.checked;l.data.getValidData().forEach(r=>{r.v[c]=o?"Y":"N"}),l.refreshData()});Y(this,xc,t=>{const l=this.shadowRoot.querySelector("nine-grid");l.classList.add("loading");const c=l.dataManager.rawRecords;c.forEach(s=>{s.__ng.filtered=!1});const o=t.target.value.toLowerCase(),[r,n]=["LVL","DATA"].map(s=>l.fields.indexOf(s));c.forEach(s=>{s.__ng.filtered=s.v[r]===2&&!String(s.v[n]||"").toLowerCase().includes(o)}),l.data.resetRecords(),clearTimeout(f(this,Ja)),tt(this,Ja,setTimeout(()=>{l.dataManager.viewRecords.reset(),l.dataManager.viewRecords.touch()},200))});it(this,"close",()=>{this.col=null,this.style.display="none"});it(this,"open",t=>{const l=t.closest("th,td"),{left:c}=t.getBoundingClientRect(),{left:o,width:r,top:n}=f(this,Mr).getBoundingClientRect(),{top:s,height:e}=l.getBoundingClientRect(),{width:i}=this.getBoundingClientRect();let u=Math.max(0,c-o);u=Math.min(u,r-i-5);const a=s+e-n;Object.assign(this.style,{left:`${u}px`,top:`${a}px`,display:"flex"}),this.classList.add("loading"),this.shadowRoot.querySelector("input[type=text]").value="",setTimeout(()=>{const h=f(this,Mr).data.getValidDataNF(),p=l.dataset.col;this.col=p,tt(this,Za,t);const m=t.filterOptions.map((g,S)=>{const C=`<span class="group">${l.textContent}${t.filterOptions.length>1?` #${S+1} (${g.colnm})`:""}</span>`,I=f(this,Mr).activeTmpl.querySelector(`[data-col="${p}"][data-bind="${g.colnm}"]`),D=I==null?void 0:I.getAttribute("data-expr"),z=D?f(this,Mr).exprFunction(D):null,P=h.map(B=>{const F=f(this,Mr).fields.indexOf(g.colnm);return D?{v:B.v[F],v2:z(f(this,Mr).data.conv(B),B.__ng.rowidx,f(this,Mr).data)}:{v:B.v[F],v2:B.v[F]}});return[{LVL:1,CHK:"N",DATA2:C},...[...new Set(P.map(JSON.stringify))].map(JSON.parse).sort((B,F)=>(B.v2||"")>(F.v2||"")?1:(B.v2||"")<(F.v2||"")?-1:0).map(B=>({LVL:2,DATA:B.v,DATA2:B.v2||` <span class="empty">(empty)</span> ${B.v}`,COLNM:g.colnm,CHK:g.data.length===0||g.data.nineBinarySearch(B.v||"")>=0?"Y":"N"}))]}).flat(),d=this.shadowRoot.querySelector("nine-grid");d.fields.add(["DATA","DATA2","COLNM"]),d.data.set(m);const b=this.shadowRoot.querySelector("input[type=checkbox]");b.checked=d.data.getValidData().every(g=>!(g.LVL===2&&g.CHK!=="Y")),this.shadowRoot.querySelector("input").focus(),this.classList.remove("loading")})});this.attachShadow({mode:"open"})}connectedCallback(){tt(this,Mr,this.getRootNode().host);const t=this.getRootNode().host.closest("nine-grid").getAttribute("css-path")||"";this.shadowRoot.innerHTML=`
|
|
721
721
|
<style>
|
|
722
722
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/ngFilterPanel.css";
|
|
723
723
|
${H.getCustomPath(this,"ngFilterPanel.css")}
|
|
@@ -1284,14 +1284,14 @@ Do you want to save it?`,"SAVE",{class:"rgb","true-text":"Yes","false-text":"No"
|
|
|
1284
1284
|
${H.getCustomPath(this,"nxSplitter.css")}
|
|
1285
1285
|
</style>
|
|
1286
1286
|
${c}
|
|
1287
|
-
`,this.shadowRoot.appendChild(o.content.cloneNode(!0)),this.shadowRoot.querySelectorAll(".grip-h,.grip-v").forEach(r=>{r.addEventListener("mousedown",n=>f(this,Hc).call(this,n))}),f(this,_l).call(this),window.addEventListener("resize",()=>f(this,_l).call(this))});Y(this,_l,()=>{const t=f(this,Br)==="h",l=this.parentElement,c=Array.from(l.children).filter(s=>s.tagName.toLowerCase()!=="nx-splitter");if(c.length<2)return;const o=l.getBoundingClientRect(),r=c.reduce((s,e)=>{const i=t?e.getBoundingClientRect().width:e.getBoundingClientRect().height;return s+i},0),n=t?o.width:o.height;c.forEach(s=>{const e=t?s.getBoundingClientRect().width:s.getBoundingClientRect().height,u=n*(e/r)/n;s.style.flex=`${u} ${u} 0`})});this.attachShadow({mode:"open"})}connectedCallback(){f(this,zc).call(this)}}Br=new WeakMap,qc=new WeakMap,Hc=new WeakMap,zc=new WeakMap,_l=new WeakMap,customElements.get("nx-splitter")||customElements.define("nx-splitter",Nf);class Of extends HTMLElement{constructor(){super();Y(this,
|
|
1287
|
+
`,this.shadowRoot.appendChild(o.content.cloneNode(!0)),this.shadowRoot.querySelectorAll(".grip-h,.grip-v").forEach(r=>{r.addEventListener("mousedown",n=>f(this,Hc).call(this,n))}),f(this,_l).call(this),window.addEventListener("resize",()=>f(this,_l).call(this))});Y(this,_l,()=>{const t=f(this,Br)==="h",l=this.parentElement,c=Array.from(l.children).filter(s=>s.tagName.toLowerCase()!=="nx-splitter");if(c.length<2)return;const o=l.getBoundingClientRect(),r=c.reduce((s,e)=>{const i=t?e.getBoundingClientRect().width:e.getBoundingClientRect().height;return s+i},0),n=t?o.width:o.height;c.forEach(s=>{const e=t?s.getBoundingClientRect().width:s.getBoundingClientRect().height,u=n*(e/r)/n;s.style.flex=`${u} ${u} 0`})});this.attachShadow({mode:"open"})}connectedCallback(){f(this,zc).call(this)}}Br=new WeakMap,qc=new WeakMap,Hc=new WeakMap,zc=new WeakMap,_l=new WeakMap,customElements.get("nx-splitter")||customElements.define("nx-splitter",Nf);class Of extends HTMLElement{constructor(){super();Y(this,vu);it(this,"getData_BAK",()=>{const t={};return this.shadowRoot.querySelectorAll("[id]").forEach(l=>{l.tagName==="INPUT"||l.tagName==="TEXTAREA"||l.tagName==="SELECT"?t[l.id]=l.value:t[l.id]=l.textContent.trim()}),t});it(this,"getData",()=>{const t={};return this.shadowRoot.querySelectorAll("input, textarea, select, [id], [name]").forEach(l=>{const c=l.id||l.name;if(!c)return;const o=l.tagName==="INPUT"||l.tagName==="TEXTAREA"||l.tagName==="SELECT"?l.value:l.textContent.trim();t[c]?(Array.isArray(t[c])||(t[c]=[t[c]]),t[c].push(o)):t[c]=o}),t});Y(this,Uc,()=>{const t=this.innerHTML.trim();this.innerHTML="";const l=document.createElement("template");l.innerHTML=`
|
|
1288
1288
|
<style>
|
|
1289
1289
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/nxForm.css";
|
|
1290
1290
|
${H.getCustomPath(this,"nxForm.css")}
|
|
1291
1291
|
</style>
|
|
1292
1292
|
|
|
1293
1293
|
${t}
|
|
1294
|
-
`,this.shadowRoot.appendChild(l.content.cloneNode(!0))});this.attachShadow({mode:"open"})}connectedCallback(){f(this,Uc).call(this)}}
|
|
1294
|
+
`,this.shadowRoot.appendChild(l.content.cloneNode(!0))});this.attachShadow({mode:"open"})}connectedCallback(){f(this,Uc).call(this)}}vu=new WeakMap,Uc=new WeakMap,customElements.get("nx-form")||customElements.define("nx-form",Of);class jf extends HTMLElement{constructor(){super();Y(this,Ir,[]);Y(this,Sl,[]);Y(this,kl,()=>{H.delayQuerySelector("nx-side-menu-item.active").then(t=>{f(this,Cl).call(this,t),f(this,El).call(this)})});Y(this,Cl,t=>{if(tt(this,Ir,[]),t){const l=t.caption;l&&f(this,Ir).unshift({path:t.getAttribute("href"),caption:l});let c=t,o=!1;for(;c;)if(c=c.previousElementSibling,c&&c.tagName==="NX-SIDE-MENU-ITEM"){const r=c.caption;if(c.getAttribute("type")==="group"){r&&!o&&(f(this,Ir).unshift({path:c.getAttribute("href"),caption:r}),o=!0);break}}}this.closest(".list-wrapper")||f(this,Ir).push({path:"",caption:this.getAttribute("caption")||"Current Page"}),f(this,Ir).unshift({path:"/",caption:"Home"}),tt(this,Ir,f(this,Ir).concat(f(this,Sl)))});Y(this,El,()=>{const t=H.querySelector("nx-side-menu-item.active"),l=t?t.caption:"No Caption";this.innerHTML.trim(),this.innerHTML="",this.shadowRoot.innerHTML="";const c=document.createElement("template");c.innerHTML=`
|
|
1295
1295
|
<style>
|
|
1296
1296
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/nxTitle.css";
|
|
1297
1297
|
${H.getCustomPath(this,"nxTitle.css")}
|
|
@@ -1315,7 +1315,7 @@ Do you want to save it?`,"SAVE",{class:"rgb","true-text":"Yes","false-text":"No"
|
|
|
1315
1315
|
>${o.caption}</a>`:`<span class="breadcrumb-item ${n?"breadcrumb-current":""}">${o.caption}</span>`,e=r<f(this,Ir).length-1?'<span class="breadcrumb-separator"> > </span>':"";return`${s}${e}`}).join("")}
|
|
1316
1316
|
</div>
|
|
1317
1317
|
</div>
|
|
1318
|
-
`,this.shadowRoot.appendChild(c.content.cloneNode(!0)),this.shadowRoot.querySelectorAll(".breadcrumb-link").forEach(o=>{o.addEventListener("click",f(this,Vc))})});Y(this,Vc,t=>{console.log(t);const l=t.target.dataset.path;l&&(window.location.href=l)});this.attachShadow({mode:"open"})}connectedCallback(){f(this,kl).call(this)}disconnectedCallback(){document.removeEventListener("DOMContentLoaded",f(this,kl))}setDynamicPath(t){tt(this,Sl,t),f(this,Cl).call(this),f(this,El).call(this)}}Ir=new WeakMap,Sl=new WeakMap,kl=new WeakMap,Cl=new WeakMap,El=new WeakMap,Vc=new WeakMap,customElements.get("nx-title")||customElements.define("nx-title",jf);class
|
|
1318
|
+
`,this.shadowRoot.appendChild(c.content.cloneNode(!0)),this.shadowRoot.querySelectorAll(".breadcrumb-link").forEach(o=>{o.addEventListener("click",f(this,Vc))})});Y(this,Vc,t=>{console.log(t);const l=t.target.dataset.path;l&&(window.location.href=l)});this.attachShadow({mode:"open"})}connectedCallback(){f(this,kl).call(this)}disconnectedCallback(){document.removeEventListener("DOMContentLoaded",f(this,kl))}setDynamicPath(t){tt(this,Sl,t),f(this,Cl).call(this),f(this,El).call(this)}}Ir=new WeakMap,Sl=new WeakMap,kl=new WeakMap,Cl=new WeakMap,El=new WeakMap,Vc=new WeakMap,customElements.get("nx-title")||customElements.define("nx-title",jf);class lu extends HTMLElement{constructor(){super();Y(this,Nr);it(this,"originContents");Y(this,Al,!1);Y(this,Ai);Y(this,Tl,!1);it(this,"getData",()=>{const t={};return Ue(this,Nr,Dl).call(this).forEach(l=>{const c=l.name;if(!c)return;let o;if(l.tagName==="INPUT"&&l.type==="checkbox"){let r=l.getAttribute("true-value")||"Y",n=l.getAttribute("false-value")||"N";o=l.checked?r:n}else l.tagName==="INPUT"&&l.type,o=l.value;t[c]?(Array.isArray(t[c])||(t[c]=[t[c]]),t[c].push(o)):t[c]=o}),t});it(this,"clearData",(t={})=>{Ue(this,Nr,Su).call(this),Ue(this,Nr,Dl).call(this).forEach(l=>{const c=l.name;if(!c)return;const o=t&&t[c]!==void 0?t[c]:"";Ue(this,Nr,_u).call(this,l,o)}),this.changed=!1});it(this,"setData",t=>{if(!t||typeof t!="object")return;Ue(this,Nr,Su).call(this);let l=!1;Ue(this,Nr,Dl).call(this).forEach(c=>{const o=c.name;!o||!t.hasOwnProperty(o)||Ue(this,Nr,_u).call(this,c,t[o])&&(l=!0)}),l&&(this.changed=!0)});it(this,"initData",t=>{this.clearData(t),this.changed=!1});Y(this,Rl,t=>{this.changed=!0});Y(this,Wc,()=>{for(const t of this.attributes)t.name.startsWith("css-")&&this.style.setProperty(t.name.substring(4),t.value);this.originContents=this.innerHTML.trim(),this.innerHTML="",this.shadowRoot&&this.tagName.toLowerCase()==="nx-div"&&(this.shadowRoot.innerHTML=this.originContents)})}connectedCallback(){return f(this,Al)?!1:(this.getAttribute("use-shadow")!=="false"&&!this.shadowRoot?(this.attachShadow({mode:"open"}),tt(this,Ai,this.shadowRoot)):tt(this,Ai,this),f(this,Wc).call(this),tt(this,Al,!0),!0)}get changed(){return f(this,Tl)}set changed(t){const l=!!t;tt(this,Tl,l);const c=this.closest(".detail-wrapper");if(c){const o=c.querySelector("nx-title2");o&&(o.changed=l)}}get root(){return f(this,Ai)||this}}Al=new WeakMap,Ai=new WeakMap,Tl=new WeakMap,Nr=new WeakSet,Dl=function(){return H.querySelectorAll("input[name], textarea[name], select[name], nx-editor[name]",f(this,Ai))},_u=function(t,l){const c=t.tagName.toUpperCase(),o=t.type;let r=!1;if(["INPUT","TEXTAREA","SELECT","NX-EDITOR"].includes(c))if(o==="checkbox"){const n=t.getAttribute("true-value")||"Y",s=String(n)===String(l);t.checked!==s&&(r=!0),t.checked=s}else if(o==="radio"){const n=String(t.value)===String(l);t.checked!==n&&(r=!0),t.checked=n}else t.value!==l&&(r=!0),t.value=l;else t.textContent!==l&&(r=!0),t.textContent=l;return r},Su=function(){Ue(this,Nr,Dl).call(this).forEach(t=>{t.removeEventListener("input",f(this,Rl)),t.addEventListener("input",f(this,Rl))})},Rl=new WeakMap,Wc=new WeakMap;class $f extends lu{constructor(){super();Y(this,Ml,!1);Y(this,Xc,()=>{const t=this.getAttribute("caption")||"",l=document.createElement("template");l.innerHTML=`
|
|
1319
1319
|
<style>
|
|
1320
1320
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/nxTitle2.css";
|
|
1321
1321
|
${H.getCustomPath(this,"nxTitle2.css")}
|
|
@@ -1326,7 +1326,7 @@ Do you want to save it?`,"SAVE",{class:"rgb","true-text":"Yes","false-text":"No"
|
|
|
1326
1326
|
</div>
|
|
1327
1327
|
|
|
1328
1328
|
${this.originContents}
|
|
1329
|
-
`,(this.shadowRoot||this).appendChild(l.content.cloneNode(!0))})}connectedCallback(){super.connectedCallback()&&f(this,Xc).call(this)}get changed(){return f(this,Ml)}set changed(t){tt(this,Ml,t),t?this.classList.add("changed"):this.classList.remove("changed")}}Ml=new WeakMap,Xc=new WeakMap,customElements.get("nx-title2")||customElements.define("nx-title2",$f);class Lf extends HTMLElement{constructor(){super();Y(this,Il);Y(this,Un)}connectedCallback(){tt(this,Un,Array.from(this.children).filter(t=>t.tagName.toLowerCase()!=="nx-splitter")),Ue(this,Il,
|
|
1329
|
+
`,(this.shadowRoot||this).appendChild(l.content.cloneNode(!0))})}connectedCallback(){super.connectedCallback()&&f(this,Xc).call(this)}get changed(){return f(this,Ml)}set changed(t){tt(this,Ml,t),t?this.classList.add("changed"):this.classList.remove("changed")}}Ml=new WeakMap,Xc=new WeakMap,customElements.get("nx-title2")||customElements.define("nx-title2",$f);class Lf extends HTMLElement{constructor(){super();Y(this,Il);Y(this,Un)}connectedCallback(){tt(this,Un,Array.from(this.children).filter(t=>t.tagName.toLowerCase()!=="nx-splitter")),Ue(this,Il,ku).call(this)}attributeChangedCallback(t,l,c){f(this,Un)&&l!==c&&Ue(this,Il,ku).call(this)}static get observedAttributes(){return["columns"]}}Un=new WeakMap,Il=new WeakSet,ku=function(){const t=f(this,Un);if(!t||t.length===0)return;for(;this.firstChild;)this.removeChild(this.firstChild);const l=(this.getAttribute("columns")||"1").split(",").map(Number),c=l.length;let o=0;for(let r=0;r<c;r++){const n=l[r],s=document.createElement("div");s.classList.add("row");for(let e=0;e<n;e++){if(t[o]){const i=t[o];s.appendChild(i),o++}if(e<n-1){const i=document.createElement("nx-splitter");s.appendChild(i)}}if(this.appendChild(s),r<c-1){const e=document.createElement("nx-splitter");e.classList.add("v"),this.appendChild(e)}}},customElements.get("nx-layout")||customElements.define("nx-layout",Lf);class Pf extends HTMLElement{constructor(){super();Y(this,Zs);Y(this,Vn);Y(this,Yc,()=>{const t=c=>{const o=window.getComputedStyle(c),r=c.cloneNode(!0);r.style.fontSize=o.fontSize,r.style.fontFamily=o.fontFamily,r.style.fontWeight=o.fontWeight,r.style.position="absolute",r.style.left="-9999px",r.style.visibility="hidden",document.body.appendChild(r);const n=r.getBoundingClientRect().width;return document.body.removeChild(r),n+4},l=[];this.querySelectorAll(".row").forEach(c=>{c.querySelectorAll(".label").forEach((r,n)=>{l[n]||(l[n]=[]),l[n].push(r)})}),l.forEach(c=>{if(c&&c.length>0){const o=c.map(n=>t(n)),r=Math.max(...o);c.forEach(n=>{n.style.width=`${r}px`})}})})}static get observedAttributes(){return["columns","rows-height"]}connectedCallback(){tt(this,Vn,Array.from(this.children).filter(t=>t.tagName.toLowerCase()!=="nx-splitter")),Ue(this,Zs,Eu).call(this)}attributeChangedCallback(t,l,c){l!==c&&(t==="rows-height"&&Ue(this,Zs,Cu).call(this,c),f(this,Vn)&&Ue(this,Zs,Eu).call(this))}}Vn=new WeakMap,Zs=new WeakSet,Cu=function(t){if(t){const l=t.replace(/,/g," ").replace(/\*/g,"1fr");this.style.setProperty("--rows-template",l)}},Eu=function(){Ue(this,Zs,Cu).call(this,this.getAttribute("rows-height"));const t=f(this,Vn);if(!t||t.length===0)return;for(;this.firstChild;)this.removeChild(this.firstChild);const l=(this.getAttribute("columns")||"1").split(",").map(Number),c=l.length;let o=0;for(let r=0;r<c;r++){const n=l[r],s=document.createElement("div");s.classList.add("row");for(let e=0;e<n;e++)if(t[o]){const i=t[o];s.appendChild(i),o++}this.appendChild(s)}setTimeout(()=>{f(this,Yc).call(this)},300)},Yc=new WeakMap,customElements.get("nx-layout2")||customElements.define("nx-layout2",Pf);class Df extends lu{constructor(){super();Y(this,Gc,()=>{var r;const t=this.getAttribute("caption"),l=this.getAttribute("columns")||"",c=((r=this.getAttribute("rows-height"))==null?void 0:r.replace(/,/g," "))||"",o=document.createElement("template");o.innerHTML=`
|
|
1330
1330
|
<style>
|
|
1331
1331
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/nxPanel.css";
|
|
1332
1332
|
${H.getCustomPath(this,"nxPanel.css")}
|
|
@@ -1340,7 +1340,7 @@ Do you want to save it?`,"SAVE",{class:"rgb","true-text":"Yes","false-text":"No"
|
|
|
1340
1340
|
${this.originContents}
|
|
1341
1341
|
</nx-layout2>
|
|
1342
1342
|
</div>
|
|
1343
|
-
`,(this.shadowRoot||this).appendChild(o.content.cloneNode(!0))})}connectedCallback(){super.connectedCallback()&&f(this,Gc).call(this)}}Gc=new WeakMap,customElements.get("nx-panel")||customElements.define("nx-panel",Df);class Bf extends
|
|
1343
|
+
`,(this.shadowRoot||this).appendChild(o.content.cloneNode(!0))})}connectedCallback(){super.connectedCallback()&&f(this,Gc).call(this)}}Gc=new WeakMap,customElements.get("nx-panel")||customElements.define("nx-panel",Df);class Bf extends lu{constructor(){super();Y(this,Kc,()=>{const t=document.createElement("template");t.innerHTML=`
|
|
1344
1344
|
<style>
|
|
1345
1345
|
@import "https://cdn.jsdelivr.net/npm/ninegrid2@${H.version}/dist/css/nxButtons.css";
|
|
1346
1346
|
${H.getCustomPath(this,"nxButtons.css")}
|