designix-uis 0.5.19 → 0.5.21

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.
Files changed (39) hide show
  1. package/dist/designix-uis.js +3 -3
  2. package/dist/public/_app/immutable/chunks/{entry.CCZQw5oO.js → entry.BD5qRZ97.js} +2 -2
  3. package/dist/public/_app/immutable/chunks/index.Bw6mlubY.js +157 -0
  4. package/dist/public/_app/immutable/chunks/makeList.CFiTz2zg.js +120 -0
  5. package/dist/public/_app/immutable/chunks/paths.e5GUCUh_.js +1 -0
  6. package/dist/public/_app/immutable/chunks/{stores.DWbCP-9J.js → stores.Chsu13vt.js} +1 -1
  7. package/dist/public/_app/immutable/entry/{app.465Ho3ps.js → app.H9tIVzP-.js} +2 -2
  8. package/dist/public/_app/immutable/entry/start.Bbej_rDO.js +1 -0
  9. package/dist/public/_app/immutable/nodes/{0.DAExDjEC.js → 0.Ca8Vso6D.js} +1 -1
  10. package/dist/public/_app/immutable/nodes/{1.CGoocqNb.js → 1.UAklb8Ok.js} +1 -1
  11. package/dist/public/_app/immutable/nodes/{2.hzTdm1WZ.js → 2.CbRS1Viw.js} +1 -1
  12. package/dist/public/_app/immutable/nodes/3.aBNHnVGg.js +18 -0
  13. package/dist/public/_app/version.json +1 -1
  14. package/dist/public/gear/gear_wheel_wheel.html +15 -15
  15. package/dist/public/gear/simplified_gear_wheel.html +15 -15
  16. package/dist/public/heliostat/base.html +15 -15
  17. package/dist/public/heliostat/haxis_guidance.html +15 -15
  18. package/dist/public/heliostat/heliostat.html +15 -15
  19. package/dist/public/heliostat/heliostat_2.html +15 -15
  20. package/dist/public/heliostat/pole_static.html +15 -15
  21. package/dist/public/heliostat/rake.html +15 -15
  22. package/dist/public/heliostat/rake_stopper.html +15 -15
  23. package/dist/public/heliostat/ring.html +15 -15
  24. package/dist/public/heliostat/ring_guidance.html +15 -15
  25. package/dist/public/heliostat/rod.html +15 -15
  26. package/dist/public/heliostat/spider.html +15 -15
  27. package/dist/public/heliostat/surface.html +15 -15
  28. package/dist/public/heliostat/swing.html +15 -15
  29. package/dist/public/heliostat/trapeze.html +15 -15
  30. package/dist/public/heliostat/vaxis.html +15 -15
  31. package/dist/public/heliostat/vaxis_guidance.html +15 -15
  32. package/dist/public/heliostat/vaxis_holder.html +15 -15
  33. package/dist/public/index.html +12 -12
  34. package/package.json +3 -3
  35. package/dist/public/_app/immutable/chunks/index.Bt0gWcKV.js +0 -127
  36. package/dist/public/_app/immutable/chunks/makeList.REsiyAUZ.js +0 -120
  37. package/dist/public/_app/immutable/chunks/paths.BE-8toip.js +0 -1
  38. package/dist/public/_app/immutable/entry/start.Dapam0r7.js +0 -1
  39. package/dist/public/_app/immutable/nodes/3.R7r_9i1-.js +0 -18
@@ -1,127 +0,0 @@
1
- var Do=Object.defineProperty;var go=(e,n,t)=>n in e?Do(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var I=(e,n,t)=>(go(e,typeof n!="symbol"?n+"":n,t),t);function b0(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}const nn=15,xr=30,Dr=19,wo=29,Pn=256,Mr=Pn+1+wo,Yr=2*Mr+1,Yt=256,yo=7,Xr=16,Kr=17,zr=18,Qn=8*2,Mn=-1,bo=1,mn=2,_o=0,jt=0,Jr=1,Ao=3,Fe=4,Ze=0,ei=1,xn=2,Ye=-2,vo=-3,Rt=-5;function Un(e){return qn(e.map(([n,t])=>new Array(n).fill(t,0,n)))}function qn(e){return e.reduce((n,t)=>n.concat(Array.isArray(t)?qn(t):t),[])}const Qr=[0,1,2,3].concat(...Un([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function oe(){const e=this;function n(s){const i=e.dyn_tree,o=e.stat_desc.static_tree,u=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,f=e.stat_desc.max_length;let c,h,m,x,b,l,d=0;for(x=0;x<=nn;x++)s.bl_count[x]=0;for(i[s.heap[s.heap_max]*2+1]=0,c=s.heap_max+1;c<Yr;c++)h=s.heap[c],x=i[i[h*2+1]*2+1]+1,x>f&&(x=f,d++),i[h*2+1]=x,!(h>e.max_code)&&(s.bl_count[x]++,b=0,h>=a&&(b=u[h-a]),l=i[h*2],s.opt_len+=l*(x+b),o&&(s.static_len+=l*(o[h*2+1]+b)));if(d!==0){do{for(x=f-1;s.bl_count[x]===0;)x--;s.bl_count[x]--,s.bl_count[x+1]+=2,s.bl_count[f]--,d-=2}while(d>0);for(x=f;x!==0;x--)for(h=s.bl_count[x];h!==0;)m=s.heap[--c],!(m>e.max_code)&&(i[m*2+1]!=x&&(s.opt_len+=(x-i[m*2+1])*i[m*2],i[m*2+1]=x),h--)}}function t(s,i){let o=0;do o|=s&1,s>>>=1,o<<=1;while(--i>0);return o>>>1}function r(s,i,o){const u=[];let a=0,f,c,h;for(f=1;f<=nn;f++)u[f]=a=a+o[f-1]<<1;for(c=0;c<=i;c++)h=s[c*2+1],h!==0&&(s[c*2]=t(u[h]++,h))}e.build_tree=function(s){const i=e.dyn_tree,o=e.stat_desc.static_tree,u=e.stat_desc.elems;let a,f,c=-1,h;for(s.heap_len=0,s.heap_max=Yr,a=0;a<u;a++)i[a*2]!==0?(s.heap[++s.heap_len]=c=a,s.depth[a]=0):i[a*2+1]=0;for(;s.heap_len<2;)h=s.heap[++s.heap_len]=c<2?++c:0,i[h*2]=1,s.depth[h]=0,s.opt_len--,o&&(s.static_len-=o[h*2+1]);for(e.max_code=c,a=Math.floor(s.heap_len/2);a>=1;a--)s.pqdownheap(i,a);h=u;do a=s.heap[1],s.heap[1]=s.heap[s.heap_len--],s.pqdownheap(i,1),f=s.heap[1],s.heap[--s.heap_max]=a,s.heap[--s.heap_max]=f,i[h*2]=i[a*2]+i[f*2],s.depth[h]=Math.max(s.depth[a],s.depth[f])+1,i[a*2+1]=i[f*2+1]=h,s.heap[1]=h++,s.pqdownheap(i,1);while(s.heap_len>=2);s.heap[--s.heap_max]=s.heap[1],n(s),r(i,e.max_code,s.bl_count)}}oe._length_code=[0,1,2,3,4,5,6,7].concat(...Un([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]]));oe.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];oe.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];oe.d_code=function(e){return e<256?Qr[e]:Qr[256+(e>>>7)]};oe.extra_lbits=[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];oe.extra_dbits=[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];oe.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];oe.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function we(e,n,t,r,s){const i=this;i.static_tree=e,i.extra_bits=n,i.extra_base=t,i.elems=r,i.max_length=s}const Co=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],Eo=Un([[144,8],[112,9],[24,7],[8,8]]);we.static_ltree=qn(Co.map((e,n)=>[e,Eo[n]]));const Fo=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],So=Un([[30,5]]);we.static_dtree=qn(Fo.map((e,n)=>[e,So[n]]));we.static_l_desc=new we(we.static_ltree,oe.extra_lbits,Pn+1,Mr,nn);we.static_d_desc=new we(we.static_dtree,oe.extra_dbits,0,xr,nn);we.static_bl_desc=new we(null,oe.extra_blbits,0,Dr,yo);const ko=9,To=8;function Qe(e,n,t,r,s){const i=this;i.good_length=e,i.max_lazy=n,i.nice_length=t,i.max_chain=r,i.func=s}const ti=0,Fn=1,Pt=2,We=[new Qe(0,0,0,0,ti),new Qe(4,4,8,4,Fn),new Qe(4,5,16,8,Fn),new Qe(4,6,32,32,Fn),new Qe(4,4,16,16,Pt),new Qe(8,16,32,32,Pt),new Qe(8,16,128,128,Pt),new Qe(8,32,128,256,Pt),new Qe(32,128,258,1024,Pt),new Qe(32,258,258,4096,Pt)],Dn=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Oe=0,gn=1,Xt=2,wn=3,Bo=32,er=42,yn=113,Kt=666,tr=8,Po=0,nr=1,Mo=2,ue=3,Sn=258,Me=Sn+ue+1;function es(e,n,t,r){const s=e[n*2],i=e[t*2];return s<i||s==i&&r[n]<=r[t]}function Io(){const e=this;let n,t,r,s,i,o,u,a,f,c,h,m,x,b,l,d,p,D,g,v,y,w,_,A,E,S,T,L,M,U,N,$,O;const q=new oe,re=new oe,j=new oe;e.depth=[];let ge,W,J,Ne,he,me;e.bl_count=[],e.heap=[],N=[],$=[],O=[];function ht(){f=2*i,h[x-1]=0;for(let C=0;C<x-1;C++)h[C]=0;S=We[T].max_lazy,M=We[T].good_length,U=We[T].nice_length,E=We[T].max_chain,y=0,p=0,_=0,D=A=ue-1,v=0,m=0}function at(){let C;for(C=0;C<Mr;C++)N[C*2]=0;for(C=0;C<xr;C++)$[C*2]=0;for(C=0;C<Dr;C++)O[C*2]=0;N[Yt*2]=1,e.opt_len=e.static_len=0,W=J=0}function Ke(){q.dyn_tree=N,q.stat_desc=we.static_l_desc,re.dyn_tree=$,re.stat_desc=we.static_d_desc,j.dyn_tree=O,j.stat_desc=we.static_bl_desc,he=0,me=0,Ne=8,at()}e.pqdownheap=function(C,B){const k=e.heap,P=k[B];let R=B<<1;for(;R<=e.heap_len&&(R<e.heap_len&&es(C,k[R+1],k[R],e.depth)&&R++,!es(C,P,k[R],e.depth));)k[B]=k[R],B=R,R<<=1;k[B]=P};function ze(C,B){let k=-1,P,R=C[0*2+1],V=0,z=7,_e=4;R===0&&(z=138,_e=3),C[(B+1)*2+1]=65535;for(let Ge=0;Ge<=B;Ge++)P=R,R=C[(Ge+1)*2+1],!(++V<z&&P==R)&&(V<_e?O[P*2]+=V:P!==0?(P!=k&&O[P*2]++,O[Xr*2]++):V<=10?O[Kr*2]++:O[zr*2]++,V=0,k=P,R===0?(z=138,_e=3):P==R?(z=6,_e=3):(z=7,_e=4))}function ut(){let C;for(ze(N,q.max_code),ze($,re.max_code),j.build_tree(e),C=Dr-1;C>=3&&O[oe.bl_order[C]*2+1]===0;C--);return e.opt_len+=3*(C+1)+5+5+4,C}function $e(C){e.pending_buf[e.pending++]=C}function Re(C){$e(C&255),$e(C>>>8&255)}function Je(C){$e(C>>8&255),$e(C&255&255)}function le(C,B){let k;const P=B;me>Qn-P?(k=C,he|=k<<me&65535,Re(he),he=k>>>Qn-me,me+=P-Qn):(he|=C<<me&65535,me+=P)}function be(C,B){const k=C*2;le(B[k]&65535,B[k+1]&65535)}function St(C,B){let k,P=-1,R,V=C[0*2+1],z=0,_e=7,Ge=4;for(V===0&&(_e=138,Ge=3),k=0;k<=B;k++)if(R=V,V=C[(k+1)*2+1],!(++z<_e&&R==V)){if(z<Ge)do be(R,O);while(--z!==0);else R!==0?(R!=P&&(be(R,O),z--),be(Xr,O),le(z-3,2)):z<=10?(be(Kr,O),le(z-3,3)):(be(zr,O),le(z-11,7));z=0,P=R,V===0?(_e=138,Ge=3):R==V?(_e=6,Ge=3):(_e=7,Ge=4)}}function Ht(C,B,k){let P;for(le(C-257,5),le(B-1,5),le(k-4,4),P=0;P<k;P++)le(O[oe.bl_order[P]*2+1],3);St(N,C-1),St($,B-1)}function mt(){me==16?(Re(he),he=0,me=0):me>=8&&($e(he&255),he>>>=8,me-=8)}function $t(){le(nr<<1,3),be(Yt,we.static_ltree),mt(),1+Ne+10-me<9&&(le(nr<<1,3),be(Yt,we.static_ltree),mt()),Ne=7}function Ce(C,B){let k,P,R;if(e.dist_buf[W]=C,e.lc_buf[W]=B&255,W++,C===0?N[B*2]++:(J++,C--,N[(oe._length_code[B]+Pn+1)*2]++,$[oe.d_code(C)*2]++),!(W&8191)&&T>2){for(k=W*8,P=y-p,R=0;R<xr;R++)k+=$[R*2]*(5+oe.extra_dbits[R]);if(k>>>=3,J<Math.floor(W/2)&&k<Math.floor(P/2))return!0}return W==ge-1}function pn(C,B){let k,P,R=0,V,z;if(W!==0)do k=e.dist_buf[R],P=e.lc_buf[R],R++,k===0?be(P,C):(V=oe._length_code[P],be(V+Pn+1,C),z=oe.extra_lbits[V],z!==0&&(P-=oe.base_length[V],le(P,z)),k--,V=oe.d_code(k),be(V,B),z=oe.extra_dbits[V],z!==0&&(k-=oe.base_dist[V],le(k,z)));while(R<W);be(Yt,C),Ne=C[Yt*2+1]}function hn(){me>8?Re(he):me>0&&$e(he&255),he=0,me=0}function Zt(C,B,k){hn(),Ne=8,Re(B),Re(~B),e.pending_buf.set(a.subarray(C,C+B),e.pending),e.pending+=B}function Gr(C,B,k){le((Po<<1)+(k?1:0),3),Zt(C,B)}function fo(C,B,k){let P,R,V=0;T>0?(q.build_tree(e),re.build_tree(e),V=ut(),P=e.opt_len+3+7>>>3,R=e.static_len+3+7>>>3,R<=P&&(P=R)):P=R=B+5,B+4<=P&&C!=-1?Gr(C,B,k):R==P?(le((nr<<1)+(k?1:0),3),pn(we.static_ltree,we.static_dtree)):(le((Mo<<1)+(k?1:0),3),Ht(q.max_code+1,re.max_code+1,V+1),pn(N,$)),at(),k&&hn()}function xt(C){fo(p>=0?p:-1,y-p,C),p=y,n.flush_pending()}function zn(){let C,B,k,P;do{if(P=f-_-y,P===0&&y===0&&_===0)P=i;else if(P==-1)P--;else if(y>=i+i-Me){a.set(a.subarray(i,i+i),0),w-=i,y-=i,p-=i,C=x,k=C;do B=h[--k]&65535,h[k]=B>=i?B-i:0;while(--C!==0);C=i,k=C;do B=c[--k]&65535,c[k]=B>=i?B-i:0;while(--C!==0);P+=i}if(n.avail_in===0)return;C=n.read_buf(a,y+_,P),_+=C,_>=ue&&(m=a[y]&255,m=(m<<d^a[y+1]&255)&l)}while(_<Me&&n.avail_in!==0)}function po(C){let B=65535,k;for(B>r-5&&(B=r-5);;){if(_<=1){if(zn(),_===0&&C==jt)return Oe;if(_===0)break}if(y+=_,_=0,k=p+B,(y===0||y>=k)&&(_=y-k,y=k,xt(!1),n.avail_out===0)||y-p>=i-Me&&(xt(!1),n.avail_out===0))return Oe}return xt(C==Fe),n.avail_out===0?C==Fe?Xt:Oe:C==Fe?wn:gn}function Wr(C){let B=E,k=y,P,R,V=A;const z=y>i-Me?y-(i-Me):0;let _e=U;const Ge=u,Jn=y+Sn;let Hr=a[k+V-1],Zr=a[k+V];A>=M&&(B>>=2),_e>_&&(_e=_);do if(P=C,!(a[P+V]!=Zr||a[P+V-1]!=Hr||a[P]!=a[k]||a[++P]!=a[k+1])){k+=2,P++;do;while(a[++k]==a[++P]&&a[++k]==a[++P]&&a[++k]==a[++P]&&a[++k]==a[++P]&&a[++k]==a[++P]&&a[++k]==a[++P]&&a[++k]==a[++P]&&a[++k]==a[++P]&&k<Jn);if(R=Sn-(Jn-k),k=Jn-Sn,R>V){if(w=C,V=R,R>=_e)break;Hr=a[k+V-1],Zr=a[k+V]}}while((C=c[C&Ge]&65535)>z&&--B!==0);return V<=_?V:_}function ho(C){let B=0,k;for(;;){if(_<Me){if(zn(),_<Me&&C==jt)return Oe;if(_===0)break}if(_>=ue&&(m=(m<<d^a[y+(ue-1)]&255)&l,B=h[m]&65535,c[y&u]=h[m],h[m]=y),B!==0&&(y-B&65535)<=i-Me&&L!=mn&&(D=Wr(B)),D>=ue)if(k=Ce(y-w,D-ue),_-=D,D<=S&&_>=ue){D--;do y++,m=(m<<d^a[y+(ue-1)]&255)&l,B=h[m]&65535,c[y&u]=h[m],h[m]=y;while(--D!==0);y++}else y+=D,D=0,m=a[y]&255,m=(m<<d^a[y+1]&255)&l;else k=Ce(0,a[y]&255),_--,y++;if(k&&(xt(!1),n.avail_out===0))return Oe}return xt(C==Fe),n.avail_out===0?C==Fe?Xt:Oe:C==Fe?wn:gn}function mo(C){let B=0,k,P;for(;;){if(_<Me){if(zn(),_<Me&&C==jt)return Oe;if(_===0)break}if(_>=ue&&(m=(m<<d^a[y+(ue-1)]&255)&l,B=h[m]&65535,c[y&u]=h[m],h[m]=y),A=D,g=w,D=ue-1,B!==0&&A<S&&(y-B&65535)<=i-Me&&(L!=mn&&(D=Wr(B)),D<=5&&(L==bo||D==ue&&y-w>4096)&&(D=ue-1)),A>=ue&&D<=A){P=y+_-ue,k=Ce(y-1-g,A-ue),_-=A-1,A-=2;do++y<=P&&(m=(m<<d^a[y+(ue-1)]&255)&l,B=h[m]&65535,c[y&u]=h[m],h[m]=y);while(--A!==0);if(v=0,D=ue-1,y++,k&&(xt(!1),n.avail_out===0))return Oe}else if(v!==0){if(k=Ce(0,a[y-1]&255),k&&xt(!1),y++,_--,n.avail_out===0)return Oe}else v=1,y++,_--}return v!==0&&(k=Ce(0,a[y-1]&255),v=0),xt(C==Fe),n.avail_out===0?C==Fe?Xt:Oe:C==Fe?wn:gn}function xo(C){return C.total_in=C.total_out=0,C.msg=null,e.pending=0,e.pending_out=0,t=yn,s=jt,Ke(),ht(),Ze}e.deflateInit=function(C,B,k,P,R,V){return P||(P=tr),R||(R=To),V||(V=_o),C.msg=null,B==Mn&&(B=6),R<1||R>ko||P!=tr||k<9||k>15||B<0||B>9||V<0||V>mn?Ye:(C.dstate=e,o=k,i=1<<o,u=i-1,b=R+7,x=1<<b,l=x-1,d=Math.floor((b+ue-1)/ue),a=new Uint8Array(i*2),c=[],h=[],ge=1<<R+6,e.pending_buf=new Uint8Array(ge*4),r=ge*4,e.dist_buf=new Uint16Array(ge),e.lc_buf=new Uint8Array(ge),T=B,L=V,xo(C))},e.deflateEnd=function(){return t!=er&&t!=yn&&t!=Kt?Ye:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,h=null,c=null,a=null,e.dstate=null,t==yn?vo:Ze)},e.deflateParams=function(C,B,k){let P=Ze;return B==Mn&&(B=6),B<0||B>9||k<0||k>mn?Ye:(We[T].func!=We[B].func&&C.total_in!==0&&(P=C.deflate(Jr)),T!=B&&(T=B,S=We[T].max_lazy,M=We[T].good_length,U=We[T].nice_length,E=We[T].max_chain),L=k,P)},e.deflateSetDictionary=function(C,B,k){let P=k,R,V=0;if(!B||t!=er)return Ye;if(P<ue)return Ze;for(P>i-Me&&(P=i-Me,V=k-P),a.set(B.subarray(V,V+P),0),y=P,p=P,m=a[0]&255,m=(m<<d^a[1]&255)&l,R=0;R<=P-ue;R++)m=(m<<d^a[R+(ue-1)]&255)&l,c[R&u]=h[m],h[m]=R;return Ze},e.deflate=function(C,B){let k,P,R,V,z;if(B>Fe||B<0)return Ye;if(!C.next_out||!C.next_in&&C.avail_in!==0||t==Kt&&B!=Fe)return C.msg=Dn[xn-Ye],Ye;if(C.avail_out===0)return C.msg=Dn[xn-Rt],Rt;if(n=C,V=s,s=B,t==er&&(P=tr+(o-8<<4)<<8,R=(T-1&255)>>1,R>3&&(R=3),P|=R<<6,y!==0&&(P|=Bo),P+=31-P%31,t=yn,Je(P)),e.pending!==0){if(n.flush_pending(),n.avail_out===0)return s=-1,Ze}else if(n.avail_in===0&&B<=V&&B!=Fe)return n.msg=Dn[xn-Rt],Rt;if(t==Kt&&n.avail_in!==0)return C.msg=Dn[xn-Rt],Rt;if(n.avail_in!==0||_!==0||B!=jt&&t!=Kt){switch(z=-1,We[T].func){case ti:z=po(B);break;case Fn:z=ho(B);break;case Pt:z=mo(B);break}if((z==Xt||z==wn)&&(t=Kt),z==Oe||z==Xt)return n.avail_out===0&&(s=-1),Ze;if(z==gn){if(B==Jr)$t();else if(Gr(0,0,!1),B==Ao)for(k=0;k<x;k++)h[k]=0;if(n.flush_pending(),n.avail_out===0)return s=-1,Ze}}return B!=Fe?Ze:ei}}function ni(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}ni.prototype={deflateInit(e,n){const t=this;return t.dstate=new Io,n||(n=nn),t.dstate.deflateInit(t,e,n)},deflate(e){const n=this;return n.dstate?n.dstate.deflate(n,e):Ye},deflateEnd(){const e=this;if(!e.dstate)return Ye;const n=e.dstate.deflateEnd();return e.dstate=null,n},deflateParams(e,n){const t=this;return t.dstate?t.dstate.deflateParams(t,e,n):Ye},deflateSetDictionary(e,n){const t=this;return t.dstate?t.dstate.deflateSetDictionary(t,e,n):Ye},read_buf(e,n,t){const r=this;let s=r.avail_in;return s>t&&(s=t),s===0?0:(r.avail_in-=s,e.set(r.next_in.subarray(r.next_in_index,r.next_in_index+s),n),r.next_in_index+=s,r.total_in+=s,s)},flush_pending(){const e=this;let n=e.dstate.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+n),e.next_out_index),e.next_out_index+=n,e.dstate.pending_out+=n,e.total_out+=n,e.avail_out-=n,e.dstate.pending-=n,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function Lo(e){const n=this,t=new ni,r=No(e&&e.chunkSize?e.chunkSize:64*1024),s=jt,i=new Uint8Array(r);let o=e?e.level:Mn;typeof o>"u"&&(o=Mn),t.deflateInit(o),t.next_out=i,n.append=function(u,a){let f,c,h=0,m=0,x=0;const b=[];if(u.length){t.next_in_index=0,t.next_in=u,t.avail_in=u.length;do{if(t.next_out_index=0,t.avail_out=r,f=t.deflate(s),f!=Ze)throw new Error("deflating: "+t.msg);t.next_out_index&&(t.next_out_index==r?b.push(new Uint8Array(i)):b.push(i.subarray(0,t.next_out_index))),x+=t.next_out_index,a&&t.next_in_index>0&&t.next_in_index!=h&&(a(t.next_in_index),h=t.next_in_index)}while(t.avail_in>0||t.avail_out===0);return b.length>1?(c=new Uint8Array(x),b.forEach(function(l){c.set(l,m),m+=l.length})):c=b[0]?new Uint8Array(b[0]):new Uint8Array,c}},n.flush=function(){let u,a,f=0,c=0;const h=[];do{if(t.next_out_index=0,t.avail_out=r,u=t.deflate(Fe),u!=ei&&u!=Ze)throw new Error("deflating: "+t.msg);r-t.avail_out>0&&h.push(i.slice(0,t.next_out_index)),c+=t.next_out_index}while(t.avail_in>0||t.avail_out===0);return t.deflateEnd(),a=new Uint8Array(c),h.forEach(function(m){a.set(m,f),f+=m.length}),a}}function No(e){return e+5*(Math.floor(e/16383)+1)}const $o=15,ee=0,ft=1,Ro=2,ke=-2,ae=-3,ts=-4,dt=-5,Le=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ri=1440,Oo=0,jo=4,Uo=9,qo=5,Vo=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],Go=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],Wo=[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],Ho=[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,112,112],Zo=[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],Yo=[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],Dt=15;function gr(){const e=this;let n,t,r,s,i,o;function u(f,c,h,m,x,b,l,d,p,D,g){let v,y,w,_,A,E,S,T,L,M,U,N,$,O,q;M=0,A=h;do r[f[c+M]]++,M++,A--;while(A!==0);if(r[0]==h)return l[0]=-1,d[0]=0,ee;for(T=d[0],E=1;E<=Dt&&r[E]===0;E++);for(S=E,T<E&&(T=E),A=Dt;A!==0&&r[A]===0;A--);for(w=A,T>A&&(T=A),d[0]=T,O=1<<E;E<A;E++,O<<=1)if((O-=r[E])<0)return ae;if((O-=r[A])<0)return ae;for(r[A]+=O,o[1]=E=0,M=1,$=2;--A!==0;)o[$]=E+=r[M],$++,M++;A=0,M=0;do(E=f[c+M])!==0&&(g[o[E]++]=A),M++;while(++A<h);for(h=o[w],o[0]=A=0,M=0,_=-1,N=-T,i[0]=0,U=0,q=0;S<=w;S++)for(v=r[S];v--!==0;){for(;S>N+T;){if(_++,N+=T,q=w-N,q=q>T?T:q,(y=1<<(E=S-N))>v+1&&(y-=v+1,$=S,E<q))for(;++E<q&&!((y<<=1)<=r[++$]);)y-=r[$];if(q=1<<E,D[0]+q>ri)return ae;i[_]=U=D[0],D[0]+=q,_!==0?(o[_]=A,s[0]=E,s[1]=T,E=A>>>N-T,s[2]=U-i[_-1]-E,p.set(s,(i[_-1]+E)*3)):l[0]=U}for(s[1]=S-N,M>=h?s[0]=192:g[M]<m?(s[0]=g[M]<256?0:96,s[2]=g[M++]):(s[0]=b[g[M]-m]+16+64,s[2]=x[g[M++]-m]),y=1<<S-N,E=A>>>N;E<q;E+=y)p.set(s,(U+E)*3);for(E=1<<S-1;A&E;E>>>=1)A^=E;for(A^=E,L=(1<<N)-1;(A&L)!=o[_];)_--,N-=T,L=(1<<N)-1}return O!==0&&w!=1?dt:ee}function a(f){let c;for(n||(n=[],t=[],r=new Int32Array(Dt+1),s=[],i=new Int32Array(Dt),o=new Int32Array(Dt+1)),t.length<f&&(t=[]),c=0;c<f;c++)t[c]=0;for(c=0;c<Dt+1;c++)r[c]=0;for(c=0;c<3;c++)s[c]=0;i.set(r.subarray(0,Dt),0),o.set(r.subarray(0,Dt+1),0)}e.inflate_trees_bits=function(f,c,h,m,x){let b;return a(19),n[0]=0,b=u(f,0,19,19,null,null,h,c,m,n,t),b==ae?x.msg="oversubscribed dynamic bit lengths tree":(b==dt||c[0]===0)&&(x.msg="incomplete dynamic bit lengths tree",b=ae),b},e.inflate_trees_dynamic=function(f,c,h,m,x,b,l,d,p){let D;return a(288),n[0]=0,D=u(h,0,f,257,Wo,Ho,b,m,d,n,t),D!=ee||m[0]===0?(D==ae?p.msg="oversubscribed literal/length tree":D!=ts&&(p.msg="incomplete literal/length tree",D=ae),D):(a(288),D=u(h,f,c,0,Zo,Yo,l,x,d,n,t),D!=ee||x[0]===0&&f>257?(D==ae?p.msg="oversubscribed distance tree":D==dt?(p.msg="incomplete distance tree",D=ae):D!=ts&&(p.msg="empty distance tree with lengths",D=ae),D):ee)}}gr.inflate_trees_fixed=function(e,n,t,r){return e[0]=Uo,n[0]=qo,t[0]=Vo,r[0]=Go,ee};const bn=0,ns=1,rs=2,ss=3,is=4,os=5,as=6,rr=7,us=8,_n=9;function Xo(){const e=this;let n,t=0,r,s=0,i=0,o=0,u=0,a=0,f=0,c=0,h,m=0,x,b=0;function l(d,p,D,g,v,y,w,_){let A,E,S,T,L,M,U,N,$,O,q,re,j,ge,W,J;U=_.next_in_index,N=_.avail_in,L=w.bitb,M=w.bitk,$=w.write,O=$<w.read?w.read-$-1:w.end-$,q=Le[d],re=Le[p];do{for(;M<20;)N--,L|=(_.read_byte(U++)&255)<<M,M+=8;if(A=L&q,E=D,S=g,J=(S+A)*3,(T=E[J])===0){L>>=E[J+1],M-=E[J+1],w.win[$++]=E[J+2],O--;continue}do{if(L>>=E[J+1],M-=E[J+1],T&16){for(T&=15,j=E[J+2]+(L&Le[T]),L>>=T,M-=T;M<15;)N--,L|=(_.read_byte(U++)&255)<<M,M+=8;A=L&re,E=v,S=y,J=(S+A)*3,T=E[J];do if(L>>=E[J+1],M-=E[J+1],T&16){for(T&=15;M<T;)N--,L|=(_.read_byte(U++)&255)<<M,M+=8;if(ge=E[J+2]+(L&Le[T]),L>>=T,M-=T,O-=j,$>=ge)W=$-ge,$-W>0&&2>$-W?(w.win[$++]=w.win[W++],w.win[$++]=w.win[W++],j-=2):(w.win.set(w.win.subarray(W,W+2),$),$+=2,W+=2,j-=2);else{W=$-ge;do W+=w.end;while(W<0);if(T=w.end-W,j>T){if(j-=T,$-W>0&&T>$-W)do w.win[$++]=w.win[W++];while(--T!==0);else w.win.set(w.win.subarray(W,W+T),$),$+=T,W+=T,T=0;W=0}}if($-W>0&&j>$-W)do w.win[$++]=w.win[W++];while(--j!==0);else w.win.set(w.win.subarray(W,W+j),$),$+=j,W+=j,j=0;break}else if(!(T&64))A+=E[J+2],A+=L&Le[T],J=(S+A)*3,T=E[J];else return _.msg="invalid distance code",j=_.avail_in-N,j=M>>3<j?M>>3:j,N+=j,U-=j,M-=j<<3,w.bitb=L,w.bitk=M,_.avail_in=N,_.total_in+=U-_.next_in_index,_.next_in_index=U,w.write=$,ae;while(!0);break}if(T&64)return T&32?(j=_.avail_in-N,j=M>>3<j?M>>3:j,N+=j,U-=j,M-=j<<3,w.bitb=L,w.bitk=M,_.avail_in=N,_.total_in+=U-_.next_in_index,_.next_in_index=U,w.write=$,ft):(_.msg="invalid literal/length code",j=_.avail_in-N,j=M>>3<j?M>>3:j,N+=j,U-=j,M-=j<<3,w.bitb=L,w.bitk=M,_.avail_in=N,_.total_in+=U-_.next_in_index,_.next_in_index=U,w.write=$,ae);if(A+=E[J+2],A+=L&Le[T],J=(S+A)*3,(T=E[J])===0){L>>=E[J+1],M-=E[J+1],w.win[$++]=E[J+2],O--;break}}while(!0)}while(O>=258&&N>=10);return j=_.avail_in-N,j=M>>3<j?M>>3:j,N+=j,U-=j,M-=j<<3,w.bitb=L,w.bitk=M,_.avail_in=N,_.total_in+=U-_.next_in_index,_.next_in_index=U,w.write=$,ee}e.init=function(d,p,D,g,v,y){n=bn,f=d,c=p,h=D,m=g,x=v,b=y,r=null},e.proc=function(d,p,D){let g,v,y,w=0,_=0,A=0,E,S,T,L;for(A=p.next_in_index,E=p.avail_in,w=d.bitb,_=d.bitk,S=d.write,T=S<d.read?d.read-S-1:d.end-S;;)switch(n){case bn:if(T>=258&&E>=10&&(d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,D=l(f,c,h,m,x,b,d,p),A=p.next_in_index,E=p.avail_in,w=d.bitb,_=d.bitk,S=d.write,T=S<d.read?d.read-S-1:d.end-S,D!=ee)){n=D==ft?rr:_n;break}i=f,r=h,s=m,n=ns;case ns:for(g=i;_<g;){if(E!==0)D=ee;else return d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);E--,w|=(p.read_byte(A++)&255)<<_,_+=8}if(v=(s+(w&Le[g]))*3,w>>>=r[v+1],_-=r[v+1],y=r[v],y===0){o=r[v+2],n=as;break}if(y&16){u=y&15,t=r[v+2],n=rs;break}if(!(y&64)){i=y,s=v/3+r[v+2];break}if(y&32){n=rr;break}return n=_n,p.msg="invalid literal/length code",D=ae,d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);case rs:for(g=u;_<g;){if(E!==0)D=ee;else return d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);E--,w|=(p.read_byte(A++)&255)<<_,_+=8}t+=w&Le[g],w>>=g,_-=g,i=c,r=x,s=b,n=ss;case ss:for(g=i;_<g;){if(E!==0)D=ee;else return d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);E--,w|=(p.read_byte(A++)&255)<<_,_+=8}if(v=(s+(w&Le[g]))*3,w>>=r[v+1],_-=r[v+1],y=r[v],y&16){u=y&15,a=r[v+2],n=is;break}if(!(y&64)){i=y,s=v/3+r[v+2];break}return n=_n,p.msg="invalid distance code",D=ae,d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);case is:for(g=u;_<g;){if(E!==0)D=ee;else return d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);E--,w|=(p.read_byte(A++)&255)<<_,_+=8}a+=w&Le[g],w>>=g,_-=g,n=os;case os:for(L=S-a;L<0;)L+=d.end;for(;t!==0;){if(T===0&&(S==d.end&&d.read!==0&&(S=0,T=S<d.read?d.read-S-1:d.end-S),T===0&&(d.write=S,D=d.inflate_flush(p,D),S=d.write,T=S<d.read?d.read-S-1:d.end-S,S==d.end&&d.read!==0&&(S=0,T=S<d.read?d.read-S-1:d.end-S),T===0)))return d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);d.win[S++]=d.win[L++],T--,L==d.end&&(L=0),t--}n=bn;break;case as:if(T===0&&(S==d.end&&d.read!==0&&(S=0,T=S<d.read?d.read-S-1:d.end-S),T===0&&(d.write=S,D=d.inflate_flush(p,D),S=d.write,T=S<d.read?d.read-S-1:d.end-S,S==d.end&&d.read!==0&&(S=0,T=S<d.read?d.read-S-1:d.end-S),T===0)))return d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);D=ee,d.win[S++]=o,T--,n=bn;break;case rr:if(_>7&&(_-=8,E++,A--),d.write=S,D=d.inflate_flush(p,D),S=d.write,T=S<d.read?d.read-S-1:d.end-S,d.read!=d.write)return d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);n=us;case us:return D=ft,d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);case _n:return D=ae,d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D);default:return D=ke,d.bitb=w,d.bitk=_,p.avail_in=E,p.total_in+=A-p.next_in_index,p.next_in_index=A,d.write=S,d.inflate_flush(p,D)}},e.free=function(){}}const cs=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ot=0,sr=1,ls=2,fs=3,ds=4,ps=5,An=6,vn=7,hs=8,kt=9;function Ko(e,n){const t=this;let r=Ot,s=0,i=0,o=0,u;const a=[0],f=[0],c=new Xo;let h=0,m=new Int32Array(ri*3);const x=0,b=new gr;t.bitk=0,t.bitb=0,t.win=new Uint8Array(n),t.end=n,t.read=0,t.write=0,t.reset=function(l,d){d&&(d[0]=x),r==An&&c.free(l),r=Ot,t.bitk=0,t.bitb=0,t.read=t.write=0},t.reset(e,null),t.inflate_flush=function(l,d){let p,D,g;return D=l.next_out_index,g=t.read,p=(g<=t.write?t.write:t.end)-g,p>l.avail_out&&(p=l.avail_out),p!==0&&d==dt&&(d=ee),l.avail_out-=p,l.total_out+=p,l.next_out.set(t.win.subarray(g,g+p),D),D+=p,g+=p,g==t.end&&(g=0,t.write==t.end&&(t.write=0),p=t.write-g,p>l.avail_out&&(p=l.avail_out),p!==0&&d==dt&&(d=ee),l.avail_out-=p,l.total_out+=p,l.next_out.set(t.win.subarray(g,g+p),D),D+=p,g+=p),l.next_out_index=D,t.read=g,d},t.proc=function(l,d){let p,D,g,v,y,w,_,A;for(v=l.next_in_index,y=l.avail_in,D=t.bitb,g=t.bitk,w=t.write,_=w<t.read?t.read-w-1:t.end-w;;){let E,S,T,L,M,U,N,$;switch(r){case Ot:for(;g<3;){if(y!==0)d=ee;else return t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);y--,D|=(l.read_byte(v++)&255)<<g,g+=8}switch(p=D&7,h=p&1,p>>>1){case 0:D>>>=3,g-=3,p=g&7,D>>>=p,g-=p,r=sr;break;case 1:E=[],S=[],T=[[]],L=[[]],gr.inflate_trees_fixed(E,S,T,L),c.init(E[0],S[0],T[0],0,L[0],0),D>>>=3,g-=3,r=An;break;case 2:D>>>=3,g-=3,r=fs;break;case 3:return D>>>=3,g-=3,r=kt,l.msg="invalid block type",d=ae,t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d)}break;case sr:for(;g<32;){if(y!==0)d=ee;else return t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);y--,D|=(l.read_byte(v++)&255)<<g,g+=8}if((~D>>>16&65535)!=(D&65535))return r=kt,l.msg="invalid stored block lengths",d=ae,t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);s=D&65535,D=g=0,r=s!==0?ls:h!==0?vn:Ot;break;case ls:if(y===0||_===0&&(w==t.end&&t.read!==0&&(w=0,_=w<t.read?t.read-w-1:t.end-w),_===0&&(t.write=w,d=t.inflate_flush(l,d),w=t.write,_=w<t.read?t.read-w-1:t.end-w,w==t.end&&t.read!==0&&(w=0,_=w<t.read?t.read-w-1:t.end-w),_===0)))return t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);if(d=ee,p=s,p>y&&(p=y),p>_&&(p=_),t.win.set(l.read_buf(v,p),w),v+=p,y-=p,w+=p,_-=p,(s-=p)!==0)break;r=h!==0?vn:Ot;break;case fs:for(;g<14;){if(y!==0)d=ee;else return t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);y--,D|=(l.read_byte(v++)&255)<<g,g+=8}if(i=p=D&16383,(p&31)>29||(p>>5&31)>29)return r=kt,l.msg="too many length or distance symbols",d=ae,t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);if(p=258+(p&31)+(p>>5&31),!u||u.length<p)u=[];else for(A=0;A<p;A++)u[A]=0;D>>>=14,g-=14,o=0,r=ds;case ds:for(;o<4+(i>>>10);){for(;g<3;){if(y!==0)d=ee;else return t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);y--,D|=(l.read_byte(v++)&255)<<g,g+=8}u[cs[o++]]=D&7,D>>>=3,g-=3}for(;o<19;)u[cs[o++]]=0;if(a[0]=7,p=b.inflate_trees_bits(u,a,f,m,l),p!=ee)return d=p,d==ae&&(u=null,r=kt),t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);o=0,r=ps;case ps:for(;p=i,!(o>=258+(p&31)+(p>>5&31));){let O,q;for(p=a[0];g<p;){if(y!==0)d=ee;else return t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);y--,D|=(l.read_byte(v++)&255)<<g,g+=8}if(p=m[(f[0]+(D&Le[p]))*3+1],q=m[(f[0]+(D&Le[p]))*3+2],q<16)D>>>=p,g-=p,u[o++]=q;else{for(A=q==18?7:q-14,O=q==18?11:3;g<p+A;){if(y!==0)d=ee;else return t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);y--,D|=(l.read_byte(v++)&255)<<g,g+=8}if(D>>>=p,g-=p,O+=D&Le[A],D>>>=A,g-=A,A=o,p=i,A+O>258+(p&31)+(p>>5&31)||q==16&&A<1)return u=null,r=kt,l.msg="invalid bit length repeat",d=ae,t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);q=q==16?u[A-1]:0;do u[A++]=q;while(--O!==0);o=A}}if(f[0]=-1,M=[],U=[],N=[],$=[],M[0]=9,U[0]=6,p=i,p=b.inflate_trees_dynamic(257+(p&31),1+(p>>5&31),u,M,U,N,$,m,l),p!=ee)return p==ae&&(u=null,r=kt),d=p,t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);c.init(M[0],U[0],m,N[0],m,$[0]),r=An;case An:if(t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,(d=c.proc(t,l,d))!=ft)return t.inflate_flush(l,d);if(d=ee,c.free(l),v=l.next_in_index,y=l.avail_in,D=t.bitb,g=t.bitk,w=t.write,_=w<t.read?t.read-w-1:t.end-w,h===0){r=Ot;break}r=vn;case vn:if(t.write=w,d=t.inflate_flush(l,d),w=t.write,_=w<t.read?t.read-w-1:t.end-w,t.read!=t.write)return t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);r=hs;case hs:return d=ft,t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);case kt:return d=ae,t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d);default:return d=ke,t.bitb=D,t.bitk=g,l.avail_in=y,l.total_in+=v-l.next_in_index,l.next_in_index=v,t.write=w,t.inflate_flush(l,d)}}},t.free=function(l){t.reset(l,null),t.win=null,m=null},t.set_dictionary=function(l,d,p){t.win.set(l.subarray(d,d+p),0),t.read=t.write=p},t.sync_point=function(){return r==sr?1:0}}const zo=32,Jo=8,Qo=0,ms=1,xs=2,Ds=3,gs=4,ws=5,ir=6,zt=7,ys=12,gt=13,ea=[0,0,255,255];function ta(){const e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function n(t){return!t||!t.istate?ke:(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=zt,t.istate.blocks.reset(t,null),ee)}e.inflateEnd=function(t){return e.blocks&&e.blocks.free(t),e.blocks=null,ee},e.inflateInit=function(t,r){return t.msg=null,e.blocks=null,r<8||r>15?(e.inflateEnd(t),ke):(e.wbits=r,t.istate.blocks=new Ko(t,1<<r),n(t),ee)},e.inflate=function(t,r){let s,i;if(!t||!t.istate||!t.next_in)return ke;const o=t.istate;for(r=r==jo?dt:ee,s=dt;;)switch(o.mode){case Qo:if(t.avail_in===0)return s;if(s=r,t.avail_in--,t.total_in++,((o.method=t.read_byte(t.next_in_index++))&15)!=Jo){o.mode=gt,t.msg="unknown compression method",o.marker=5;break}if((o.method>>4)+8>o.wbits){o.mode=gt,t.msg="invalid win size",o.marker=5;break}o.mode=ms;case ms:if(t.avail_in===0)return s;if(s=r,t.avail_in--,t.total_in++,i=t.read_byte(t.next_in_index++)&255,((o.method<<8)+i)%31!==0){o.mode=gt,t.msg="incorrect header check",o.marker=5;break}if(!(i&zo)){o.mode=zt;break}o.mode=xs;case xs:if(t.avail_in===0)return s;s=r,t.avail_in--,t.total_in++,o.need=(t.read_byte(t.next_in_index++)&255)<<24&4278190080,o.mode=Ds;case Ds:if(t.avail_in===0)return s;s=r,t.avail_in--,t.total_in++,o.need+=(t.read_byte(t.next_in_index++)&255)<<16&16711680,o.mode=gs;case gs:if(t.avail_in===0)return s;s=r,t.avail_in--,t.total_in++,o.need+=(t.read_byte(t.next_in_index++)&255)<<8&65280,o.mode=ws;case ws:return t.avail_in===0?s:(s=r,t.avail_in--,t.total_in++,o.need+=t.read_byte(t.next_in_index++)&255,o.mode=ir,Ro);case ir:return o.mode=gt,t.msg="need dictionary",o.marker=0,ke;case zt:if(s=o.blocks.proc(t,s),s==ae){o.mode=gt,o.marker=0;break}if(s==ee&&(s=r),s!=ft)return s;s=r,o.blocks.reset(t,o.was),o.mode=ys;case ys:return t.avail_in=0,ft;case gt:return ae;default:return ke}},e.inflateSetDictionary=function(t,r,s){let i=0,o=s;if(!t||!t.istate||t.istate.mode!=ir)return ke;const u=t.istate;return o>=1<<u.wbits&&(o=(1<<u.wbits)-1,i=s-o),u.blocks.set_dictionary(r,i,o),u.mode=zt,ee},e.inflateSync=function(t){let r,s,i,o,u;if(!t||!t.istate)return ke;const a=t.istate;if(a.mode!=gt&&(a.mode=gt,a.marker=0),(r=t.avail_in)===0)return dt;for(s=t.next_in_index,i=a.marker;r!==0&&i<4;)t.read_byte(s)==ea[i]?i++:t.read_byte(s)!==0?i=0:i=4-i,s++,r--;return t.total_in+=s-t.next_in_index,t.next_in_index=s,t.avail_in=r,a.marker=i,i!=4?ae:(o=t.total_in,u=t.total_out,n(t),t.total_in=o,t.total_out=u,a.mode=zt,ee)},e.inflateSyncPoint=function(t){return!t||!t.istate||!t.istate.blocks?ke:t.istate.blocks.sync_point()}}function si(){}si.prototype={inflateInit(e){const n=this;return n.istate=new ta,e||(e=$o),n.istate.inflateInit(n,e)},inflate(e){const n=this;return n.istate?n.istate.inflate(n,e):ke},inflateEnd(){const e=this;if(!e.istate)return ke;const n=e.istate.inflateEnd(e);return e.istate=null,n},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):ke},inflateSetDictionary(e,n){const t=this;return t.istate?t.istate.inflateSetDictionary(t,e,n):ke},read_byte(e){return this.next_in[e]},read_buf(e,n){return this.next_in.subarray(e,e+n)}};function na(e){const n=this,t=new si,r=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,s=Oo,i=new Uint8Array(r);let o=!1;t.inflateInit(),t.next_out=i,n.append=function(u,a){const f=[];let c,h,m=0,x=0,b=0;if(u.length!==0){t.next_in_index=0,t.next_in=u,t.avail_in=u.length;do{if(t.next_out_index=0,t.avail_out=r,t.avail_in===0&&!o&&(t.next_in_index=0,o=!0),c=t.inflate(s),o&&c===dt){if(t.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==ee&&c!==ft)throw new Error("inflating: "+t.msg);if((o||c===ft)&&t.avail_in===u.length)throw new Error("inflating: bad input");t.next_out_index&&(t.next_out_index===r?f.push(new Uint8Array(i)):f.push(i.subarray(0,t.next_out_index))),b+=t.next_out_index,a&&t.next_in_index>0&&t.next_in_index!=m&&(a(t.next_in_index),m=t.next_in_index)}while(t.avail_in>0||t.avail_out===0);return f.length>1?(h=new Uint8Array(b),f.forEach(function(l){h.set(l,x),x+=l.length})):h=f[0]?new Uint8Array(f[0]):new Uint8Array,h}},n.flush=function(){t.inflateEnd()}}const Pe=4294967295,Te=65535,bs=8,ra=0,sa=99,ia=67324752,ii=134695760,oa=ii,aa=33639248,ua=101010256,ca=101075792,la=117853008,wr=22,oi=20,ai=56,fa=wr+oi+ai,da=1,pa=39169,ha=10,ma=1,ui=21589,xa=6534,Da=1,ga=8,wa=2048,ya=16,ba=20,_s=45,As=51,or="/",vs=new Date(2107,11,31),Cs=new Date(1980,0,1),pe=void 0,Ct="undefined",un="function";class Es{constructor(n){return class extends TransformStream{constructor(t,r){const s=new n(r);super({transform(i,o){o.enqueue(s.append(i))},flush(i){const o=s.flush();o&&i.enqueue(o)}})}}}}const _a=64;let ci=2;try{typeof navigator!=Ct&&navigator.hardwareConcurrency&&(ci=navigator.hardwareConcurrency)}catch{}const Aa={chunkSize:512*1024,maxWorkers:ci,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:pe,CompressionStreamNative:typeof CompressionStream!=Ct&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=Ct&&DecompressionStream},bt=Object.assign({},Aa);function va(){return bt}function Ca(e){return Math.max(e.chunkSize,_a)}function Ir(e){const{baseURL:n,chunkSize:t,maxWorkers:r,terminateWorkerTimeout:s,useCompressionStream:i,useWebWorkers:o,Deflate:u,Inflate:a,CompressionStream:f,DecompressionStream:c,workerScripts:h}=e;if(wt("baseURL",n),wt("chunkSize",t),wt("maxWorkers",r),wt("terminateWorkerTimeout",s),wt("useCompressionStream",i),wt("useWebWorkers",o),u&&(bt.CompressionStream=new Es(u)),a&&(bt.DecompressionStream=new Es(a)),wt("CompressionStream",f),wt("DecompressionStream",c),h!==pe){const{deflate:m,inflate:x}=h;if((m||x)&&(bt.workerScripts||(bt.workerScripts={})),m){if(!Array.isArray(m))throw new Error("workerScripts.deflate must be an array");bt.workerScripts.deflate=m}if(x){if(!Array.isArray(x))throw new Error("workerScripts.inflate must be an array");bt.workerScripts.inflate=x}}}function wt(e,n){n!==pe&&(bt[e]=n)}const ar={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const e={};for(const n of Object.keys(ar))for(const t of Object.keys(ar[n])){const r=ar[n][t];if(typeof r=="string")e[r]=n+"/"+t;else for(let s=0;s<r.length;s++)e[r[s]]=n+"/"+t}return e})();const li=[];for(let e=0;e<256;e++){let n=e;for(let t=0;t<8;t++)n&1?n=n>>>1^3988292384:n=n>>>1;li[e]=n}class yr{constructor(n){this.crc=n||-1}append(n){let t=this.crc|0;for(let r=0,s=n.length|0;r<s;r++)t=t>>>8^li[(t^n[r])&255];this.crc=t}get(){return~this.crc}}class fi extends TransformStream{constructor(){let n;const t=new yr;super({transform(r,s){t.append(r),s.enqueue(r)},flush(){const r=new Uint8Array(4);new DataView(r.buffer).setUint32(0,t.get()),n.value=r}}),n=this}}function kn(e){if(typeof TextEncoder==Ct){e=unescape(encodeURIComponent(e));const n=new Uint8Array(e.length);for(let t=0;t<n.length;t++)n[t]=e.charCodeAt(t);return n}else return new TextEncoder().encode(e)}const Ae={concat(e,n){if(e.length===0||n.length===0)return e.concat(n);const t=e[e.length-1],r=Ae.getPartial(t);return r===32?e.concat(n):Ae._shiftRight(n,r,t|0,e.slice(0,e.length-1))},bitLength(e){const n=e.length;if(n===0)return 0;const t=e[n-1];return(n-1)*32+Ae.getPartial(t)},clamp(e,n){if(e.length*32<n)return e;e=e.slice(0,Math.ceil(n/32));const t=e.length;return n=n&31,t>0&&n&&(e[t-1]=Ae.partial(n,e[t-1]&2147483648>>n-1,1)),e},partial(e,n,t){return e===32?n:(t?n|0:n<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,n,t,r){for(r===void 0&&(r=[]);n>=32;n-=32)r.push(t),t=0;if(n===0)return r.concat(e);for(let o=0;o<e.length;o++)r.push(t|e[o]>>>n),t=e[o]<<32-n;const s=e.length?e[e.length-1]:0,i=Ae.getPartial(s);return r.push(Ae.partial(n+i&31,n+i>32?t:r.pop(),1)),r}},In={bytes:{fromBits(e){const t=Ae.bitLength(e)/8,r=new Uint8Array(t);let s;for(let i=0;i<t;i++)i&3||(s=e[i/4]),r[i]=s>>>24,s<<=8;return r},toBits(e){const n=[];let t,r=0;for(t=0;t<e.length;t++)r=r<<8|e[t],(t&3)===3&&(n.push(r),r=0);return t&3&&n.push(Ae.partial(8*(t&3),r)),n}}},di={};di.sha1=class{constructor(e){const n=this;n.blockSize=512,n._init=[1732584193,4023233417,2562383102,271733878,3285377520],n._key=[1518500249,1859775393,2400959708,3395469782],e?(n._h=e._h.slice(0),n._buffer=e._buffer.slice(0),n._length=e._length):n.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const n=this;typeof e=="string"&&(e=In.utf8String.toBits(e));const t=n._buffer=Ae.concat(n._buffer,e),r=n._length,s=n._length=r+Ae.bitLength(e);if(s>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const i=new Uint32Array(t);let o=0;for(let u=n.blockSize+r-(n.blockSize+r&n.blockSize-1);u<=s;u+=n.blockSize)n._block(i.subarray(16*o,16*(o+1))),o+=1;return t.splice(0,16*o),n}finalize(){const e=this;let n=e._buffer;const t=e._h;n=Ae.concat(n,[Ae.partial(1,1)]);for(let r=n.length+2;r&15;r++)n.push(0);for(n.push(Math.floor(e._length/4294967296)),n.push(e._length|0);n.length;)e._block(n.splice(0,16));return e.reset(),t}_f(e,n,t,r){if(e<=19)return n&t|~n&r;if(e<=39)return n^t^r;if(e<=59)return n&t|n&r|t&r;if(e<=79)return n^t^r}_S(e,n){return n<<e|n>>>32-e}_block(e){const n=this,t=n._h,r=Array(80);for(let f=0;f<16;f++)r[f]=e[f];let s=t[0],i=t[1],o=t[2],u=t[3],a=t[4];for(let f=0;f<=79;f++){f>=16&&(r[f]=n._S(1,r[f-3]^r[f-8]^r[f-14]^r[f-16]));const c=n._S(5,s)+n._f(f,i,o,u)+a+r[f]+n._key[Math.floor(f/20)]|0;a=u,u=o,o=n._S(30,i),i=s,s=c}t[0]=t[0]+s|0,t[1]=t[1]+i|0,t[2]=t[2]+o|0,t[3]=t[3]+u|0,t[4]=t[4]+a|0}};const pi={};pi.aes=class{constructor(e){const n=this;n._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],n._tables[0][0][0]||n._precompute();const t=n._tables[0][4],r=n._tables[1],s=e.length;let i,o,u,a=1;if(s!==4&&s!==6&&s!==8)throw new Error("invalid aes key size");for(n._key=[o=e.slice(0),u=[]],i=s;i<4*s+28;i++){let f=o[i-1];(i%s===0||s===8&&i%s===4)&&(f=t[f>>>24]<<24^t[f>>16&255]<<16^t[f>>8&255]<<8^t[f&255],i%s===0&&(f=f<<8^f>>>24^a<<24,a=a<<1^(a>>7)*283)),o[i]=o[i-s]^f}for(let f=0;i;f++,i--){const c=o[f&3?i:i-4];i<=4||f<4?u[f]=c:u[f]=r[0][t[c>>>24]]^r[1][t[c>>16&255]]^r[2][t[c>>8&255]]^r[3][t[c&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],n=this._tables[1],t=e[4],r=n[4],s=[],i=[];let o,u,a,f;for(let c=0;c<256;c++)i[(s[c]=c<<1^(c>>7)*283)^c]=c;for(let c=o=0;!t[c];c^=u||1,o=i[o]||1){let h=o^o<<1^o<<2^o<<3^o<<4;h=h>>8^h&255^99,t[c]=h,r[h]=c,f=s[a=s[u=s[c]]];let m=f*16843009^a*65537^u*257^c*16843008,x=s[h]*257^h*16843008;for(let b=0;b<4;b++)e[b][c]=x=x<<24^x>>>8,n[b][h]=m=m<<24^m>>>8}for(let c=0;c<5;c++)e[c]=e[c].slice(0),n[c]=n[c].slice(0)}_crypt(e,n){if(e.length!==4)throw new Error("invalid aes block size");const t=this._key[n],r=t.length/4-2,s=[0,0,0,0],i=this._tables[n],o=i[0],u=i[1],a=i[2],f=i[3],c=i[4];let h=e[0]^t[0],m=e[n?3:1]^t[1],x=e[2]^t[2],b=e[n?1:3]^t[3],l=4,d,p,D;for(let g=0;g<r;g++)d=o[h>>>24]^u[m>>16&255]^a[x>>8&255]^f[b&255]^t[l],p=o[m>>>24]^u[x>>16&255]^a[b>>8&255]^f[h&255]^t[l+1],D=o[x>>>24]^u[b>>16&255]^a[h>>8&255]^f[m&255]^t[l+2],b=o[b>>>24]^u[h>>16&255]^a[m>>8&255]^f[x&255]^t[l+3],l+=4,h=d,m=p,x=D;for(let g=0;g<4;g++)s[n?3&-g:g]=c[h>>>24]<<24^c[m>>16&255]<<16^c[x>>8&255]<<8^c[b&255]^t[l++],d=h,h=m,m=x,x=b,b=d;return s}};const Ea={getRandomValues(e){const n=new Uint32Array(e.buffer),t=r=>{let s=987654321;const i=4294967295;return function(){return s=36969*(s&65535)+(s>>16)&i,r=18e3*(r&65535)+(r>>16)&i,(((s<<16)+r&i)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let r=0,s;r<e.length;r+=4){const i=t((s||Math.random())*4294967296);s=i()*987654071,n[r/4]=i()*4294967296|0}return e}},hi={};hi.ctrGladman=class{constructor(e,n){this._prf=e,this._initIv=n,this._iv=n}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)===255){let n=e>>16&255,t=e>>8&255,r=e&255;n===255?(n=0,t===255?(t=0,r===255?r=0:++r):++t):++n,e=0,e+=n<<16,e+=t<<8,e+=r}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,n,t){let r;if(!(r=n.length))return[];const s=Ae.bitLength(n);for(let i=0;i<r;i+=4){this.incCounter(t);const o=e.encrypt(t);n[i]^=o[0],n[i+1]^=o[1],n[i+2]^=o[2],n[i+3]^=o[3]}return Ae.clamp(n,s)}};const Nt={importKey(e){return new Nt.hmacSha1(In.bytes.toBits(e))},pbkdf2(e,n,t,r){if(t=t||1e4,r<0||t<0)throw new Error("invalid params to pbkdf2");const s=(r>>5)+1<<2;let i,o,u,a,f;const c=new ArrayBuffer(s),h=new DataView(c);let m=0;const x=Ae;for(n=In.bytes.toBits(n),f=1;m<(s||1);f++){for(i=o=e.encrypt(x.concat(n,[f])),u=1;u<t;u++)for(o=e.encrypt(o),a=0;a<o.length;a++)i[a]^=o[a];for(u=0;m<(s||1)&&u<i.length;u++)h.setInt32(m,i[u]),m+=4}return c.slice(0,r/8)}};Nt.hmacSha1=class{constructor(e){const n=this,t=n._hash=di.sha1,r=[[],[]];n._baseHash=[new t,new t];const s=n._baseHash[0].blockSize/32;e.length>s&&(e=new t().update(e).finalize());for(let i=0;i<s;i++)r[0][i]=e[i]^909522486,r[1][i]=e[i]^1549556828;n._baseHash[0].update(r[0]),n._baseHash[1].update(r[1]),n._resultHash=new t(n._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){const n=this;n._updated=!0,n._resultHash.update(e)}digest(){const e=this,n=e._resultHash.finalize(),t=new e._hash(e._baseHash[1]).update(n).finalize();return e.reset(),t}encrypt(e){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}};const Fa=typeof crypto!=Ct&&typeof crypto.getRandomValues==un,mi="Invalid password",xi="Invalid signature",Di="zipjs-abort-check-password";function gi(e){return Fa?crypto.getRandomValues(e):Ea.getRandomValues(e)}const Vt=16,Sa="raw",wi={name:"PBKDF2"},ka={name:"HMAC"},Ta="SHA-1",Ba=Object.assign({hash:ka},wi),br=Object.assign({iterations:1e3,hash:{name:Ta}},wi),Pa=["deriveBits"],rn=[8,12,16],Jt=[16,24,32],yt=10,Ma=[0,0,0,0],Vn=typeof crypto!=Ct,cn=Vn&&crypto.subtle,yi=Vn&&typeof cn!=Ct,it=In.bytes,Ia=pi.aes,La=hi.ctrGladman,Na=Nt.hmacSha1;let Fs=Vn&&yi&&typeof cn.importKey==un,Ss=Vn&&yi&&typeof cn.deriveBits==un;class $a extends TransformStream{constructor({password:n,rawPassword:t,signed:r,encryptionStrength:s,checkPasswordOnly:i}){super({start(){Object.assign(this,{ready:new Promise(o=>this.resolveReady=o),password:Ai(n,t),signed:r,strength:s-1,pending:new Uint8Array})},async transform(o,u){const a=this,{password:f,strength:c,resolveReady:h,ready:m}=a;f?(await Oa(a,c,f,qe(o,0,rn[c]+2)),o=qe(o,rn[c]+2),i?u.error(new Error(Di)):h()):await m;const x=new Uint8Array(o.length-yt-(o.length-yt)%Vt);u.enqueue(bi(a,o,x,0,yt,!0))},async flush(o){const{signed:u,ctr:a,hmac:f,pending:c,ready:h}=this;if(f&&a){await h;const m=qe(c,0,c.length-yt),x=qe(c,c.length-yt);let b=new Uint8Array;if(m.length){const l=on(it,m);f.update(l);const d=a.update(l);b=sn(it,d)}if(u){const l=qe(sn(it,f.digest()),0,yt);for(let d=0;d<yt;d++)if(l[d]!=x[d])throw new Error(xi)}o.enqueue(b)}}})}}class Ra extends TransformStream{constructor({password:n,rawPassword:t,encryptionStrength:r}){let s;super({start(){Object.assign(this,{ready:new Promise(i=>this.resolveReady=i),password:Ai(n,t),strength:r-1,pending:new Uint8Array})},async transform(i,o){const u=this,{password:a,strength:f,resolveReady:c,ready:h}=u;let m=new Uint8Array;a?(m=await ja(u,f,a),c()):await h;const x=new Uint8Array(m.length+i.length-i.length%Vt);x.set(m,0),o.enqueue(bi(u,i,x,m.length,0))},async flush(i){const{ctr:o,hmac:u,pending:a,ready:f}=this;if(u&&o){await f;let c=new Uint8Array;if(a.length){const h=o.update(on(it,a));u.update(h),c=sn(it,h)}s.signature=sn(it,u.digest()).slice(0,yt),i.enqueue(Lr(c,s.signature))}}}),s=this}}function bi(e,n,t,r,s,i){const{ctr:o,hmac:u,pending:a}=e,f=n.length-s;a.length&&(n=Lr(a,n),t=Va(t,f-f%Vt));let c;for(c=0;c<=f-Vt;c+=Vt){const h=on(it,qe(n,c,c+Vt));i&&u.update(h);const m=o.update(h);i||u.update(m),t.set(sn(it,m),c+r)}return e.pending=qe(n,c),t}async function Oa(e,n,t,r){const s=await _i(e,n,t,qe(r,0,rn[n])),i=qe(r,rn[n]);if(s[0]!=i[0]||s[1]!=i[1])throw new Error(mi)}async function ja(e,n,t){const r=gi(new Uint8Array(rn[n])),s=await _i(e,n,t,r);return Lr(r,s)}async function _i(e,n,t,r){e.password=null;const s=await Ua(Sa,t,Ba,!1,Pa),i=await qa(Object.assign({salt:r},br),s,8*(Jt[n]*2+2)),o=new Uint8Array(i),u=on(it,qe(o,0,Jt[n])),a=on(it,qe(o,Jt[n],Jt[n]*2)),f=qe(o,Jt[n]*2);return Object.assign(e,{keys:{key:u,authentication:a,passwordVerification:f},ctr:new La(new Ia(u),Array.from(Ma)),hmac:new Na(a)}),f}async function Ua(e,n,t,r,s){if(Fs)try{return await cn.importKey(e,n,t,r,s)}catch{return Fs=!1,Nt.importKey(n)}else return Nt.importKey(n)}async function qa(e,n,t){if(Ss)try{return await cn.deriveBits(e,n,t)}catch{return Ss=!1,Nt.pbkdf2(n,e.salt,br.iterations,t)}else return Nt.pbkdf2(n,e.salt,br.iterations,t)}function Ai(e,n){return n===pe?kn(e):n}function Lr(e,n){let t=e;return e.length+n.length&&(t=new Uint8Array(e.length+n.length),t.set(e,0),t.set(n,e.length)),t}function Va(e,n){if(n&&n>e.length){const t=e;e=new Uint8Array(n),e.set(t,0)}return e}function qe(e,n,t){return e.subarray(n,t)}function sn(e,n){return e.fromBits(n)}function on(e,n){return e.toBits(n)}const Gt=12;class Ga extends TransformStream{constructor({password:n,passwordVerification:t,checkPasswordOnly:r}){super({start(){Object.assign(this,{password:n,passwordVerification:t}),vi(this,n)},transform(s,i){const o=this;if(o.password){const u=ks(o,s.subarray(0,Gt));if(o.password=null,u[Gt-1]!=o.passwordVerification)throw new Error(mi);s=s.subarray(Gt)}r?i.error(new Error(Di)):i.enqueue(ks(o,s))}})}}class Wa extends TransformStream{constructor({password:n,passwordVerification:t}){super({start(){Object.assign(this,{password:n,passwordVerification:t}),vi(this,n)},transform(r,s){const i=this;let o,u;if(i.password){i.password=null;const a=gi(new Uint8Array(Gt));a[Gt-1]=i.passwordVerification,o=new Uint8Array(r.length+a.length),o.set(Ts(i,a),0),u=Gt}else o=new Uint8Array(r.length),u=0;o.set(Ts(i,r),u),s.enqueue(o)}})}}function ks(e,n){const t=new Uint8Array(n.length);for(let r=0;r<n.length;r++)t[r]=Ci(e)^n[r],Nr(e,t[r]);return t}function Ts(e,n){const t=new Uint8Array(n.length);for(let r=0;r<n.length;r++)t[r]=Ci(e)^n[r],Nr(e,n[r]);return t}function vi(e,n){const t=[305419896,591751049,878082192];Object.assign(e,{keys:t,crcKey0:new yr(t[0]),crcKey2:new yr(t[2])});for(let r=0;r<n.length;r++)Nr(e,n.charCodeAt(r))}function Nr(e,n){let[t,r,s]=e.keys;e.crcKey0.append([n]),t=~e.crcKey0.get(),r=Bs(Math.imul(Bs(r+Ei(t)),134775813)+1),e.crcKey2.append([r>>>24]),s=~e.crcKey2.get(),e.keys=[t,r,s]}function Ci(e){const n=e.keys[2]|2;return Ei(Math.imul(n,n^1)>>>8)}function Ei(e){return e&255}function Bs(e){return e&4294967295}const Ps="deflate-raw";class Ha extends TransformStream{constructor(n,{chunkSize:t,CompressionStream:r,CompressionStreamNative:s}){super({});const{compressed:i,encrypted:o,useCompressionStream:u,zipCrypto:a,signed:f,level:c}=n,h=this;let m,x,b=Fi(super.readable);(!o||a)&&f&&(m=new fi,b=ot(b,m)),i&&(b=ki(b,u,{level:c,chunkSize:t},s,r)),o&&(a?b=ot(b,new Wa(n)):(x=new Ra(n),b=ot(b,x))),Si(h,b,()=>{let l;o&&!a&&(l=x.signature),(!o||a)&&f&&(l=new DataView(m.value.buffer).getUint32(0)),h.signature=l})}}class Za extends TransformStream{constructor(n,{chunkSize:t,DecompressionStream:r,DecompressionStreamNative:s}){super({});const{zipCrypto:i,encrypted:o,signed:u,signature:a,compressed:f,useCompressionStream:c}=n;let h,m,x=Fi(super.readable);o&&(i?x=ot(x,new Ga(n)):(m=new $a(n),x=ot(x,m))),f&&(x=ki(x,c,{chunkSize:t},s,r)),(!o||i)&&u&&(h=new fi,x=ot(x,h)),Si(this,x,()=>{if((!o||i)&&u){const b=new DataView(h.value.buffer);if(a!=b.getUint32(0,!1))throw new Error(xi)}})}}function Fi(e){return ot(e,new TransformStream({transform(n,t){n&&n.length&&t.enqueue(n)}}))}function Si(e,n,t){n=ot(n,new TransformStream({flush:t})),Object.defineProperty(e,"readable",{get(){return n}})}function ki(e,n,t,r,s){try{const i=n&&r?r:s;e=ot(e,new i(Ps,t))}catch{if(n)try{e=ot(e,new s(Ps,t))}catch{return e}else return e}return e}function ot(e,n){return e.pipeThrough(n)}const Ya="message",Xa="start",Ka="pull",Ms="data",za="ack",Is="close",Ti="deflate",Ja="inflate";class Qa extends TransformStream{constructor(n,t){super({});const r=this,{codecType:s}=n;let i;s.startsWith(Ti)?i=Ha:s.startsWith(Ja)&&(i=Za);let o=0,u=0;const a=new i(n,t),f=super.readable,c=new TransformStream({transform(m,x){m&&m.length&&(u+=m.length,x.enqueue(m))},flush(){Object.assign(r,{inputSize:u})}}),h=new TransformStream({transform(m,x){m&&m.length&&(o+=m.length,x.enqueue(m))},flush(){const{signature:m}=a;Object.assign(r,{signature:m,outputSize:o,inputSize:u})}});Object.defineProperty(r,"readable",{get(){return f.pipeThrough(c).pipeThrough(a).pipeThrough(h)}})}}class eu extends TransformStream{constructor(n){let t;super({transform:r,flush(s){t&&t.length&&s.enqueue(t)}});function r(s,i){if(t){const o=new Uint8Array(t.length+s.length);o.set(t),o.set(s,t.length),s=o,t=null}s.length>n?(i.enqueue(s.slice(0,n)),r(s.slice(n),i)):t=s}}}let Bi=typeof Worker!=Ct;class ur{constructor(n,{readable:t,writable:r},{options:s,config:i,streamOptions:o,useWebWorkers:u,transferStreams:a,scripts:f},c){const{signal:h}=o;return Object.assign(n,{busy:!0,readable:t.pipeThrough(new eu(i.chunkSize)).pipeThrough(new tu(t,o),{signal:h}),writable:r,options:Object.assign({},s),scripts:f,transferStreams:a,terminate(){return new Promise(m=>{const{worker:x,busy:b}=n;x?(b?n.resolveTerminated=m:(x.terminate(),m()),n.interface=null):m()})},onTaskFinished(){const{resolveTerminated:m}=n;m&&(n.resolveTerminated=null,n.terminated=!0,n.worker.terminate(),m()),n.busy=!1,c(n)}}),(u&&Bi?nu:Pi)(n,i)}}class tu extends TransformStream{constructor(n,{onstart:t,onprogress:r,size:s,onend:i}){let o=0;super({async start(){t&&await cr(t,s)},async transform(u,a){o+=u.length,r&&await cr(r,o,s),a.enqueue(u)},async flush(){n.size=o,i&&await cr(i,o)}})}}async function cr(e,...n){try{await e(...n)}catch{}}function Pi(e,n){return{run:()=>ru(e,n)}}function nu(e,n){const{baseURL:t,chunkSize:r}=n;if(!e.interface){let s;try{s=ou(e.scripts[0],t,e)}catch{return Bi=!1,Pi(e,n)}Object.assign(e,{worker:s,interface:{run:()=>su(e,{chunkSize:r})}})}return e.interface}async function ru({options:e,readable:n,writable:t,onTaskFinished:r},s){try{const i=new Qa(e,s);await n.pipeThrough(i).pipeTo(t,{preventClose:!0,preventAbort:!0});const{signature:o,inputSize:u,outputSize:a}=i;return{signature:o,inputSize:u,outputSize:a}}finally{r()}}async function su(e,n){let t,r;const s=new Promise((m,x)=>{t=m,r=x});Object.assign(e,{reader:null,writer:null,resolveResult:t,rejectResult:r,result:s});const{readable:i,options:o,scripts:u}=e,{writable:a,closed:f}=iu(e.writable),c=Tn({type:Xa,scripts:u.slice(1),options:o,config:n,readable:i,writable:a},e);c||Object.assign(e,{reader:i.getReader(),writer:a.getWriter()});const h=await s;return c||await a.getWriter().close(),await f,h}function iu(e){let n;const t=new Promise(s=>n=s);return{writable:new WritableStream({async write(s){const i=e.getWriter();await i.ready,await i.write(s),i.releaseLock()},close(){n()},abort(s){return e.getWriter().abort(s)}}),closed:t}}let Ls=!0,Ns=!0;function ou(e,n,t){const r={type:"module"};let s,i;typeof e==un&&(e=e());try{s=new URL(e,n)}catch{s=e}if(Ls)try{i=new Worker(s)}catch{Ls=!1,i=new Worker(s,r)}else i=new Worker(s,r);return i.addEventListener(Ya,o=>au(o,t)),i}function Tn(e,{worker:n,writer:t,onTaskFinished:r,transferStreams:s}){try{let{value:i,readable:o,writable:u}=e;const a=[];if(i&&(i.byteLength<i.buffer.byteLength?e.value=i.buffer.slice(0,i.byteLength):e.value=i.buffer,a.push(e.value)),s&&Ns?(o&&a.push(o),u&&a.push(u)):e.readable=e.writable=null,a.length)try{return n.postMessage(e,a),!0}catch{Ns=!1,e.readable=e.writable=null,n.postMessage(e)}else n.postMessage(e)}catch(i){throw t&&t.releaseLock(),r(),i}}async function au({data:e},n){const{type:t,value:r,messageId:s,result:i,error:o}=e,{reader:u,writer:a,resolveResult:f,rejectResult:c,onTaskFinished:h}=n;try{if(o){const{message:x,stack:b,code:l,name:d}=o,p=new Error(x);Object.assign(p,{stack:b,code:l,name:d}),m(p)}else{if(t==Ka){const{value:x,done:b}=await u.read();Tn({type:Ms,value:x,done:b,messageId:s},n)}t==Ms&&(await a.ready,await a.write(new Uint8Array(r)),Tn({type:za,messageId:s},n)),t==Is&&m(null,i)}}catch(x){Tn({type:Is,messageId:s},n),m(x)}function m(x,b){x?c(x):f(b),a&&a.releaseLock(),h()}}let It=[];const lr=[];let $s=0;async function uu(e,n){const{options:t,config:r}=n,{transferStreams:s,useWebWorkers:i,useCompressionStream:o,codecType:u,compressed:a,signed:f,encrypted:c}=t,{workerScripts:h,maxWorkers:m}=r;n.transferStreams=s||s===pe;const x=!a&&!f&&!c&&!n.transferStreams;return n.useWebWorkers=!x&&(i||i===pe&&r.useWebWorkers),n.scripts=n.useWebWorkers&&h?h[u]:[],t.useCompressionStream=o||o===pe&&r.useCompressionStream,(await b()).run();async function b(){const d=It.find(p=>!p.busy);if(d)return Rs(d),new ur(d,e,n,l);if(It.length<m){const p={indexWorker:$s};return $s++,It.push(p),new ur(p,e,n,l)}else return new Promise(p=>lr.push({resolve:p,stream:e,workerOptions:n}))}function l(d){if(lr.length){const[{resolve:p,stream:D,workerOptions:g}]=lr.splice(0,1);p(new ur(d,D,g,l))}else d.worker?(Rs(d),cu(d,n)):It=It.filter(p=>p!=d)}}function cu(e,n){const{config:t}=n,{terminateWorkerTimeout:r}=t;Number.isFinite(r)&&r>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{It=It.filter(s=>s!=e);try{await e.terminate()}catch{}},r))}function Rs(e){const{terminateTimeout:n}=e;n&&(clearTimeout(n),e.terminateTimeout=null)}function lu(e){const n=()=>URL.createObjectURL(new Blob([`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={p:{m(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},k(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.v=[1732584193,4023233417,2562383102,271733878,3285377520],t.S=[1518500249,1859775393,2400959708,3395469782],e?(t.C=e.C.slice(0),t.A=e.A.slice(0),t._=e._):t.reset()}reset(){const e=this;return e.C=e.v.slice(0),e.A=[],e._=0,e}update(e){const t=this;"string"==typeof e&&(e=I.I.k(e));const n=t.A=_.concat(t.A,e),r=t._,i=t._=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.P(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}D(){const e=this;let t=e.A;const n=e.C;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e._/4294967296)),t.push(0|e._);t.length;)e.P(t.splice(0,16));return e.reset(),n}V(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}R(e,t){return t<<e|t>>>32-e}P(t){const n=this,s=n.C,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.R(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.R(5,o)+n.V(e,c,f,a)+l+i[e]+n.S[r.floor(e/20)]|0;l=a,a=f,f=n.R(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.B(I.p.k(e)),M(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.p.k(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},B:class{constructor(e){const t=this,n=t.U=P,r=[[],[]];t.K=[new n,new n];const s=t.K[0].blockSize/32;e.length>s&&(e=(new n).update(e).D());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.K[0].update(r[0]),t.K[1].update(r[1]),t.N=new n(t.K[0])}reset(){const e=this;e.N=new e.U(e.K[0]),e.O=!1}update(e){this.O=!0,this.N.update(e)}digest(){const e=this,t=e.N.D(),n=new e.U(e.K[1]).update(t).D();return e.reset(),n}encrypt(e){if(this.O)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.p,X=class{constructor(e){const t=this;t.T=[[[],[],[],[],[]],[[],[],[],[],[]]],t.T[0][0][0]||t.W();const n=t.T[0][4],r=t.T[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.S=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.j(e,0)}decrypt(e){return this.j(e,1)}W(){const e=this.T[0],t=this.T[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}j(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.S[t],r=n.length/4-2,i=[0,0,0,0],o=this.T[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.H=e,this.L=t,this.F=t}reset(){this.F=this.L}update(e){return this.q(this.H,e,this.F)}G(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}J(e){0===(e[0]=this.G(e[0]))&&(e[1]=this.G(e[1]))}q(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.J(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.B;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),signed:r,Y:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:o,X:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Z:n,$:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.X=e)),password:ie(e,n),Y:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,Y:s,X:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Z:t,$:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Z:c,$:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.M(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.M(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,ee:u,passwordVerification:w},Z:new Y(new X(l),e.from(F)),$:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.m(t)}function ae(e,t){return e.k(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,te:new x(r[0]),ne:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.te.append([t]),n=~e.te.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.ne.append([s>>>24]),i=~e.ne.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=15,Te=573,We=-2;function je(t){return He(t.map((([t,n])=>new e(t).fill(n,0,t))))}function He(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?He(n):n)),[])}const Le=[0,1,2,3].concat(...je([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Fe(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.re=n=>{const s=e.se,i=e.oe.ie,o=e.oe.ce;let c,f,a,l=-1;for(n.fe=0,n.ae=Te,c=0;o>c;c++)0!==s[2*c]?(n.le[++n.fe]=l=c,n.ue[c]=0):s[2*c+1]=0;for(;2>n.fe;)a=n.le[++n.fe]=2>l?++l:0,s[2*a]=1,n.ue[a]=0,n.we--,i&&(n.he-=i[2*a+1]);for(e.de=l,c=r.floor(n.fe/2);c>=1;c--)n.pe(s,c);a=o;do{c=n.le[1],n.le[1]=n.le[n.fe--],n.pe(s,1),f=n.le[1],n.le[--n.ae]=c,n.le[--n.ae]=f,s[2*a]=s[2*c]+s[2*f],n.ue[a]=r.max(n.ue[c],n.ue[f])+1,s[2*c+1]=s[2*f+1]=a,n.le[1]=a++,n.pe(s,1)}while(n.fe>=2);n.le[--n.ae]=n.le[1],(t=>{const n=e.se,r=e.oe.ie,s=e.oe.ye,i=e.oe.me,o=e.oe.be;let c,f,a,l,u,w,h=0;for(l=0;Oe>=l;l++)t.ge[l]=0;for(n[2*t.le[t.ae]+1]=0,c=t.ae+1;Te>c;c++)f=t.le[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.de||(t.ge[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.we+=w*(l+u),r&&(t.he+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.ge[l];)l--;t.ge[l]--,t.ge[l+1]+=2,t.ge[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.ge[l];0!==f;)a=t.le[--c],a>e.de||(n[2*a+1]!=l&&(t.we+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;Oe>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.de,n.ge)}}function qe(e,t,n,r,s){const i=this;i.ie=e,i.ye=t,i.me=n,i.ce=r,i.be=s}Fe.ke=[0,1,2,3,4,5,6,7].concat(...je([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),Fe.ve=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],Fe.Se=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],Fe.ze=e=>256>e?Le[e]:Le[256+(e>>>7)],Fe.Ce=[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],Fe.xe=[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],Fe.Ae=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Fe._e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Ge=je([[144,8],[112,9],[24,7],[8,8]]);qe.Ie=He([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Ge[t]])));const Je=je([[30,5]]);function Qe(e,t,n,r,s){const i=this;i.Pe=e,i.De=t,i.Ve=n,i.Re=r,i.Be=s}qe.Ee=He([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,Je[t]]))),qe.Me=new qe(qe.Ie,Fe.Ce,257,286,Oe),qe.Ue=new qe(qe.Ee,Fe.xe,0,30,Oe),qe.Ke=new qe(null,Fe.Ae,0,19,7);const Xe=[new Qe(0,0,0,0,0),new Qe(4,4,8,4,1),new Qe(4,5,16,8,1),new Qe(4,6,32,32,1),new Qe(4,4,16,16,2),new Qe(8,16,32,32,2),new Qe(8,16,128,128,2),new Qe(8,32,128,256,2),new Qe(32,128,258,1024,2),new Qe(32,258,258,4096,2)],Ye=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Ze=113,$e=666,et=262;function tt(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function nt(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new Fe,N=new Fe,O=new Fe;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.we=e.he=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ne[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Oe[W]=t,e.Te[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(Fe.ke[n]+256+1)]++,M[2*Fe.ze(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+Fe.xe[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Oe[c],s=e.Te[c],c++,0===r?Y(s,t):(i=Fe.ke[s],Y(i+256+1,t),o=Fe.Ce[i],0!==o&&(s-=Fe.ve[i],X(s,o)),r--,i=Fe.ze(r),Y(i,n),o=Fe.xe[i],0!==o&&(r-=Fe.Se[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ne.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.re(e),N.re(e),o=(()=>{let t;for(G(E,K.de),G(M,N.de),O.re(e),t=18;t>=3&&0===U[2*Fe._e[t]+1];t--);return e.we+=14+3*(t+1),t})(),s=e.we+3+7>>>3,i=e.he+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(qe.Ie,qe.Ee)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*Fe._e[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.de+1,N.de+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.We()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-et){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.je)return;e=t.He(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(et>A&&0!==t.je)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-et?C-(f-et):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.ue=[],e.ge=[],e.le=[],E=[],M=[],U=[],e.pe=(t,n)=>{const r=e.le,s=r[n];let i=n<<1;for(;i<=e.fe&&(i<e.fe&&tt(t,r[i+1],r[i],e.ue)&&i++,!tt(t,s,r[i],e.ue));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.Le=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Fe=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?We:(t.qe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ne=new i(4*T),s=4*T,e.Oe=new o(T),e.Te=new i(T),D=S,V=G,(t=>(t.Ge=t.Je=0,t.Fe=null,e.pending=0,e.Qe=0,n=Ze,c=0,K.se=E,K.oe=qe.Me,N.se=M,N.oe=qe.Ue,O.se=U,O.oe=qe.Ke,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Xe=()=>42!=n&&n!=Ze&&n!=$e?We:(e.Te=null,e.Oe=null,e.Ne=null,d=null,h=null,u=null,e.qe=null,n==Ze?-3:0),e.Ye=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?We:(Xe[D].Be!=Xe[t].Be&&0!==e.Ge&&(r=e.Ze(1)),D!=t&&(D=t,P=Xe[D].De,R=Xe[D].Pe,B=Xe[D].Ve,I=Xe[D].Re),V=n,r)},e.$e=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return We;if(3>i)return 0;for(i>f-et&&(i=f-et,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ze=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return We;if(!r.et||!r.tt&&0!==r.je||n==$e&&4!=i)return r.Fe=Ye[4],We;if(0===r.nt)return r.Fe=Ye[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Ze,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.We(),0===t.nt)return c=-1,0}else if(0===t.je&&I>=i&&4!=i)return t.Fe=Ye[7],-5;if(n==$e&&0!==t.je)return r.Fe=Ye[7],-5;if(0!==t.je||0!==A||0!=i&&n!=$e){switch(R=-1,Xe[D].Be){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.nt))return 0;if(C-k>=f-et&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-et||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.nt))return 0}return se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(et>A){if(ie(),et>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-et>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.nt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.nt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.nt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=$e),0==R||2==R)return 0===t.nt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,qe.Ie),$(),9>1+H+10-F&&(X(2,3),Y(256,qe.Ie),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.We(),0===t.nt)return c=-1,0}}return 4!=i?0:1}}function rt(){const e=this;e.rt=0,e.st=0,e.je=0,e.Ge=0,e.nt=0,e.Je=0}function st(e){const t=new rt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.Le(f),t.et=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,o=t.Ze(0),0!=o)throw new s("deflating: "+t.Fe);t.st&&(t.st==n?w.push(new i(c)):w.push(c.subarray(0,t.st))),u+=t.st,r&&t.rt>0&&t.rt!=a&&(r(t.rt),a=t.rt)}while(t.je>0||0===t.nt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.st=0,t.nt=n,e=t.Ze(4),1!=e&&0!=e)throw new s("deflating: "+t.Fe);n-t.nt>0&&a.push(c.slice(0,t.st)),f+=t.st}while(t.je>0||0===t.nt);return t.Xe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}rt.prototype={Le(e,t){const n=this;return n.qe=new nt,t||(t=Oe),n.qe.Le(n,e,t)},Ze(e){const t=this;return t.qe?t.qe.Ze(t,e):We},Xe(){const e=this;if(!e.qe)return We;const t=e.qe.Xe();return e.qe=null,t},Ye(e,t){const n=this;return n.qe?n.qe.Ye(n,e,t):We},$e(e,t){const n=this;return n.qe?n.qe.$e(n,e,t):We},He(e,t,n){const r=this;let s=r.je;return s>n&&(s=n),0===s?0:(r.je-=s,e.set(r.tt.subarray(r.rt,r.rt+s),t),r.rt+=s,r.Ge+=s,s)},We(){const e=this;let t=e.qe.pending;t>e.nt&&(t=e.nt),0!==t&&(e.et.set(e.qe.Ne.subarray(e.qe.Qe,e.qe.Qe+t),e.st),e.st+=t,e.qe.Qe+=t,e.Je+=t,e.nt-=t,e.qe.pending-=t,0===e.qe.pending&&(e.qe.Qe=0))}};const it=0,ot=1,ct=-2,ft=-3,at=-4,lt=-5,ut=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],wt=1440,ht=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],dt=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],pt=[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],yt=[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,112,112],mt=[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],bt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],gt=15;function kt(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,it;for(S=u[0],k=1;gt>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=gt;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return ft;if(0>(I-=n[g]))return ft;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>wt)return ft;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?lt:it}function c(o){let c;for(e||(e=[],t=[],n=new f(gt+1),r=[],s=new f(gt),i=new f(gt+1)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;gt+1>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,gt),0),i.set(n.subarray(0,gt+1),0)}this.it=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==ft?f.Fe="oversubscribed dynamic bit lengths tree":a!=lt&&0!==r[0]||(f.Fe="incomplete dynamic bit lengths tree",a=ft),a},this.ot=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,pt,yt,a,i,u,e,t),h!=it||0===i[0]?(h==ft?w.Fe="oversubscribed literal/length tree":h!=at&&(w.Fe="incomplete literal/length tree",h=ft),h):(c(288),h=o(s,n,r,0,mt,bt,l,f,u,e,t),h!=it||0===f[0]&&n>257?(h==ft?w.Fe="oversubscribed distance tree":h==lt?(w.Fe="incomplete distance tree",h=ft):h!=at&&(w.Fe="empty distance tree with lengths",h=ft),h):it)}}kt.ct=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ht,r[0]=dt,it);const vt=0,St=1,zt=2,Ct=3,xt=4,At=5,_t=6,It=7,Pt=8,Dt=9;function Vt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.rt,p=c.je,w=o.ft,h=o.lt,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ut[e],g=ut[t];do{for(;20>h;)p--,w|=(255&c.ut(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ut[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ut(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ut(d++))<<h,h+=8;if(v=a[z+2]+(w&ut[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--u);else o.wt.set(o.wt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.wt[y++]=o.wt[S++],o.wt[y++]=o.wt[S++],k-=2):(o.wt.set(o.wt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.wt[y++]=o.wt[S++]}while(0!=--k);else o.wt.set(o.wt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Fe="invalid distance code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft;f+=a[z+2],f+=w&ut[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ot):(c.Fe="invalid literal/length code",k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,ft);if(f+=a[z+2],f+=w&ut[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.wt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.je-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ft=w,o.lt=h,c.je=p,c.Ge+=d-c.rt,c.rt=d,o.write=y,it}e.init=(e,i,o,c,f,a)=>{t=vt,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ht=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case vt:if(z>=258&&v>=10&&(e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.rt,v=y.je,x=e.ft,A=e.lt,S=e.write,z=S<e.read?e.read-S-1:e.end-S,m!=it)){t=m==ot?It:Dt;break}c=u,n=r,o=h,t=St;case St:for(b=c;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}if(g=3*(o+(x&ut[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=_t;break}if(16&k){a=15&k,i=n[g+2],t=zt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=It;break}return t=Dt,y.Fe="invalid literal/length code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case zt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}i+=x&ut[b],x>>=b,A-=b,c=w,n=s,o=d,t=Ct;case Ct:for(b=c;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}if(g=3*(o+(x&ut[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=xt;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=Dt,y.Fe="invalid distance code",m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case xt:for(b=a;b>A;){if(0===v)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,v--,x|=(255&y.ut(_++))<<A,A+=8}l+=x&ut[b],x>>=b,A-=b,t=At;case At:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.dt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);e.wt[S++]=e.wt[C++],z--,C==e.end&&(C=0),i--}t=vt;break;case _t:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.dt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);m=it,e.wt[S++]=f,z--,t=vt;break;case It:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.dt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);t=Pt;case Pt:return m=ot,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);case Dt:return m=ft,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m);default:return m=ct,e.ft=x,e.lt=A,y.je=v,y.Ge+=_-y.rt,y.rt=_,e.write=S,e.dt(y,m)}},e.yt=()=>{}}const Rt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Bt=0,Et=1,Mt=2,Ut=3,Kt=4,Nt=5,Ot=6,Tt=7,Wt=8,jt=9;function Ht(e,t){const n=this;let r,s=Bt,o=0,c=0,a=0;const l=[0],u=[0],w=new Vt;let h=0,d=new f(3*wt);const p=new kt;n.lt=0,n.ft=0,n.wt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),s==Ot&&w.yt(e),s=Bt,n.lt=0,n.ft=0,n.read=n.write=0},n.reset(e,null),n.dt=(e,t)=>{let r,s,i;return s=e.st,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.nt&&(r=e.nt),0!==r&&t==lt&&(t=it),e.nt-=r,e.Je+=r,e.et.set(n.wt.subarray(i,i+r),s),s+=r,i+=r),e.st=s,n.read=i,t},n.ht=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case Bt:for(;3>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=Et;break;case 1:S=[],z=[],C=[[]],x=[[]],kt.ct(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=Ot;break;case 2:f>>>=3,y-=3,s=Ut;break;case 3:return f>>>=3,y-=3,s=jt,e.Fe="invalid block type",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t)}break;case Et:for(;32>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=jt,e.Fe="invalid stored block lengths",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);o=65535&f,f=y=0,s=0!==o?Mt:0!==h?Tt:Bt;break;case Mt:if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.dt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(t=it,i=o,i>b&&(i=b),i>k&&(i=k),n.wt.set(e.He(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?Tt:Bt;break;case Ut:for(;14>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=jt,e.Fe="too many length or distance symbols",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=Kt;case Kt:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}r[Rt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[Rt[a++]]=0;if(l[0]=7,i=p.it(r,l,u,d,e),i!=it)return(t=i)==ft&&(r=null,s=jt),n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);a=0,s=Nt;case Nt:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ut[i]))+1],w=d[3*(u[0]+(f&ut[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);t=it,b--,f|=(255&e.ut(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ut[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=jt,e.Fe="invalid bit length repeat",t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.ot(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),i!=it)return i==ft&&(r=null,s=jt),t=i,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=Ot;case Ot:if(n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,(t=w.ht(n,e,t))!=ot)return n.dt(e,t);if(t=it,w.yt(e),m=e.rt,b=e.je,f=n.ft,y=n.lt,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=Bt;break}s=Tt;case Tt:if(n.write=g,t=n.dt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);s=Wt;case Wt:return t=ot,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);case jt:return t=ft,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t);default:return t=ct,n.ft=f,n.lt=y,e.je=b,e.Ge+=m-e.rt,e.rt=m,n.write=g,n.dt(e,t)}}},n.yt=e=>{n.reset(e,null),n.wt=null,d=null},n.bt=(e,t,r)=>{n.wt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.gt=()=>s==Et?1:0}const Lt=13,Ft=[0,0,255,255];function qt(){const e=this;function t(e){return e&&e.kt?(e.Ge=e.Je=0,e.Fe=null,e.kt.mode=7,e.kt.vt.reset(e,null),it):ct}e.mode=0,e.method=0,e.St=[0],e.zt=0,e.marker=0,e.Ct=0,e.xt=t=>(e.vt&&e.vt.yt(t),e.vt=null,it),e.At=(n,r)=>(n.Fe=null,e.vt=null,8>r||r>15?(e.xt(n),ct):(e.Ct=r,n.kt.vt=new Ht(n,1<<r),t(n),it)),e._t=(e,t)=>{let n,r;if(!e||!e.kt||!e.tt)return ct;const s=e.kt;for(t=4==t?lt:it,n=lt;;)switch(s.mode){case 0:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,8!=(15&(s.method=e.ut(e.rt++)))){s.mode=Lt,e.Fe="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.Ct){s.mode=Lt,e.Fe="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.je)return n;if(n=t,e.je--,e.Ge++,r=255&e.ut(e.rt++),((s.method<<8)+r)%31!=0){s.mode=Lt,e.Fe="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt=(255&e.ut(e.rt++))<<24&4278190080,s.mode=3;case 3:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<16&16711680,s.mode=4;case 4:if(0===e.je)return n;n=t,e.je--,e.Ge++,s.zt+=(255&e.ut(e.rt++))<<8&65280,s.mode=5;case 5:return 0===e.je?n:(n=t,e.je--,e.Ge++,s.zt+=255&e.ut(e.rt++),s.mode=6,2);case 6:return s.mode=Lt,e.Fe="need dictionary",s.marker=0,ct;case 7:if(n=s.vt.ht(e,n),n==ft){s.mode=Lt,s.marker=0;break}if(n==it&&(n=t),n!=ot)return n;n=t,s.vt.reset(e,s.St),s.mode=12;case 12:return e.je=0,ot;case Lt:return ft;default:return ct}},e.It=(e,t,n)=>{let r=0,s=n;if(!e||!e.kt||6!=e.kt.mode)return ct;const i=e.kt;return s<1<<i.Ct||(s=(1<<i.Ct)-1,r=n-s),i.vt.bt(t,r,s),i.mode=7,it},e.Pt=e=>{let n,r,s,i,o;if(!e||!e.kt)return ct;const c=e.kt;if(c.mode!=Lt&&(c.mode=Lt,c.marker=0),0===(n=e.je))return lt;for(r=e.rt,s=c.marker;0!==n&&4>s;)e.ut(r)==Ft[s]?s++:s=0!==e.ut(r)?0:4-s,r++,n--;return e.Ge+=r-e.rt,e.rt=r,e.je=n,c.marker=s,4!=s?ft:(i=e.Ge,o=e.Je,t(e),e.Ge=i,e.Je=o,c.mode=7,it)},e.Dt=e=>e&&e.kt&&e.kt.vt?e.kt.vt.gt():ct}function Gt(){}function Jt(e){const t=new Gt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.At(),t.et=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.rt=0,t.tt=e,t.je=e.length;do{if(t.st=0,t.nt=n,0!==t.je||c||(t.rt=0,c=!0),a=t._t(0),c&&a===lt){if(0!==t.je)throw new s("inflating: bad input")}else if(a!==it&&a!==ot)throw new s("inflating: "+t.Fe);if((c||a===ot)&&t.je===e.length)throw new s("inflating: bad input");t.st&&(t.st===n?f.push(new i(o)):f.push(o.subarray(0,t.st))),h+=t.st,r&&t.rt>0&&t.rt!=u&&(r(t.rt),u=t.rt)}while(t.je>0||0===t.nt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.xt()}}Gt.prototype={At(e){const t=this;return t.kt=new qt,e||(e=15),t.kt.At(t,e)},_t(e){const t=this;return t.kt?t.kt._t(t,e):ct},xt(){const e=this;if(!e.kt)return ct;const t=e.kt.xt(e);return e.kt=null,t},Pt(){const e=this;return e.kt?e.kt.Pt(e):ct},It(e,t){const n=this;return n.kt?n.kt.It(n,e,t):ct},ut(e){return this.tt[e]},He(e,t){return this.tt.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=st,self.Inflate=Jt};
2
- `],{type:"text/javascript"}));e({workerScripts:{inflate:[n],deflate:[n]}})}const fu="Writer iterator completed too soon",du="text/plain",pu="Content-Type",hu=64*1024,Mi="writable";class $r{constructor(){this.size=0}init(){this.initialized=!0}}class Ii extends $r{get readable(){const n=this,{chunkSize:t=hu}=n,r=new ReadableStream({start(){this.chunkOffset=0},async pull(s){const{offset:i=0,size:o,diskNumberStart:u}=r,{chunkOffset:a}=this;s.enqueue(await _r(n,i+a,Math.min(t,o-a),u)),a+t>o?s.close():this.chunkOffset+=t}});return r}}class mu extends Ii{constructor(n){super(),Object.assign(this,{blob:n,size:n.size})}async readUint8Array(n,t){const r=this,s=n+t;let o=await(n||s<r.size?r.blob.slice(n,s):r.blob).arrayBuffer();return o.byteLength>t&&(o=o.slice(n,s)),new Uint8Array(o)}}class xu extends $r{constructor(n){super();const t=this,r=new TransformStream,s=[];n&&s.push([pu,n]),Object.defineProperty(t,Mi,{get(){return r.writable}}),t.blob=new Response(r.readable,{headers:s}).blob()}getData(){return this.blob}}class Ee extends mu{constructor(n){super(new Blob([n],{type:du}))}}class Du extends Ii{constructor(n){super(),this.readers=n}async init(){const n=this,{readers:t}=n;n.lastDiskNumber=0,n.lastDiskOffset=0,await Promise.all(t.map(async(r,s)=>{await r.init(),s!=t.length-1&&(n.lastDiskOffset+=r.size),n.size+=r.size})),super.init()}async readUint8Array(n,t,r=0){const s=this,{readers:i}=this;let o,u=r;u==-1&&(u=i.length-1);let a=n;for(;a>=i[u].size;)a-=i[u].size,u++;const f=i[u],c=f.size;if(a+t<=c)o=await _r(f,a,t);else{const h=c-a;o=new Uint8Array(t),o.set(await _r(f,a,h)),o.set(await s.readUint8Array(n+h,t-h,r),h)}return s.lastDiskNumber=Math.max(u,s.lastDiskNumber),o}}class Os extends $r{constructor(n,t=4294967295){super();const r=this;Object.assign(r,{diskNumber:0,diskOffset:0,size:0,maxSize:t,availableSize:t});let s,i,o;const u=new WritableStream({async write(c){const{availableSize:h}=r;if(o)c.length>=h?(await a(c.slice(0,h)),await f(),r.diskOffset+=s.size,r.diskNumber++,o=null,await this.write(c.slice(h))):await a(c);else{const{value:m,done:x}=await n.next();if(x&&!m)throw new Error(fu);s=m,s.size=0,s.maxSize&&(r.maxSize=s.maxSize),r.availableSize=r.maxSize,await an(s),i=m.writable,o=i.getWriter(),await this.write(c)}},async close(){await o.ready,await f()}});Object.defineProperty(r,Mi,{get(){return u}});async function a(c){const h=c.length;h&&(await o.ready,await o.write(c),s.size+=h,r.size+=h,r.availableSize-=h)}async function f(){i.size=s.size,await o.close()}}}async function an(e,n){if(e.init&&!e.initialized)await e.init(n);else return Promise.resolve()}function gu(e){return Array.isArray(e)&&(e=new Du(e)),e instanceof ReadableStream&&(e={readable:e}),e}function wu(e){e.writable===pe&&typeof e.next==un&&(e=new Os(e)),e instanceof WritableStream&&(e={writable:e});const{writable:n}=e;return n.size===pe&&(n.size=0),e instanceof Os||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function _r(e,n,t,r){return e.readUint8Array(n,t,r)}const yu="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split("");yu.length==256;const bu="filename",_u="rawFilename",Au="comment",vu="rawComment",Cu="uncompressedSize",Eu="compressedSize",Fu="offset",js="diskNumberStart",Li="lastModDate",Su="rawLastModDate",Ni="lastAccessDate",$i="creationDate",Ri="internalFileAttribute",Oi="externalFileAttribute",ji="msDosCompatible",Ui="zip64",ku=[bu,_u,Eu,Cu,Li,Su,Au,vu,Ni,$i,Fu,js,js,Ri,Oi,ji,Ui,"directory","bitFlag","encrypted","signature","filenameUTF8","commentUTF8","compressionMethod","version","versionMadeBy","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class qi{constructor(n){ku.forEach(t=>this[t]=n[t])}}const Tu="File already exists",Bu="Zip file comment exceeds 64KB",Pu="File entry comment exceeds 64KB",Mu="File entry name exceeds 64KB",Us="Version exceeds 65535",Iu="The strength must equal 1, 2, or 3",Lu="Extra field type exceeds 65535",Nu="Extra field data exceeds 64KB",Rr="Zip64 is not supported (make sure 'keepOrder' is set to 'true')",qs=new Uint8Array([7,0,2,0,65,69,3,0,0]);let fr=0;const Vs=[];class $u{constructor(n,t={}){n=wu(n);const r=n.availableSize!==pe&&n.availableSize>0&&n.availableSize!==1/0&&n.maxSize!==pe&&n.maxSize>0&&n.maxSize!==1/0;Object.assign(this,{writer:n,addSplitZipSignature:r,options:t,config:va(),files:new Map,filenames:new Set,offset:n.writable.size,pendingEntriesSize:0,pendingAddFileCalls:new Set,bufferedWrites:0})}async add(n="",t,r={}){const s=this,{pendingAddFileCalls:i,config:o}=s;fr<o.maxWorkers?fr++:await new Promise(a=>Vs.push(a));let u;try{if(n=n.trim(),s.filenames.has(n))throw new Error(Tu);return s.filenames.add(n),u=Ru(s,n,t,r),i.add(u),await u}catch(a){throw s.filenames.delete(n),a}finally{i.delete(u);const a=Vs.shift();a?a():fr--}}async close(n=new Uint8Array,t={}){const r=this,{pendingAddFileCalls:s,writer:i}=this,{writable:o}=i;for(;s.size;)await Promise.allSettled(Array.from(s));return await Zu(this,n,t),ne(r,t,"preventClose")||await o.getWriter().close(),i.getData?i.getData():o}}async function Ru(e,n,t,r){n=n.trim(),r.directory&&!n.endsWith(or)?n+=or:r.directory=n.endsWith(or);const s=ne(e,r,"encodeText",kn);let i=s(n);if(i===pe&&(i=kn(n)),K(i)>Te)throw new Error(Mu);const o=r.comment||"";let u=s(o);if(u===pe&&(u=kn(o)),K(u)>Te)throw new Error(Pu);const a=ne(e,r,"version",ba);if(a>Te)throw new Error(Us);const f=ne(e,r,"versionMadeBy",20);if(f>Te)throw new Error(Us);const c=ne(e,r,Li,new Date),h=ne(e,r,Ni),m=ne(e,r,$i),x=ne(e,r,ji,!0),b=ne(e,r,Ri,0),l=ne(e,r,Oi,0),d=ne(e,r,"password"),p=ne(e,r,"rawPassword"),D=ne(e,r,"encryptionStrength",3),g=ne(e,r,"zipCrypto"),v=ne(e,r,"extendedTimestamp",!0),y=ne(e,r,"keepOrder",!0),w=ne(e,r,"level"),_=ne(e,r,"useWebWorkers"),A=ne(e,r,"bufferedWrite"),E=ne(e,r,"dataDescriptorSignature",!1),S=ne(e,r,"signal"),T=ne(e,r,"useCompressionStream");let L=ne(e,r,"dataDescriptor",!0),M=ne(e,r,Ui);if(d!==pe&&D!==pe&&(D<1||D>3))throw new Error(Iu);let U=new Uint8Array;const{extraField:N}=r;if(N){let $e=0,Re=0;N.forEach(Je=>$e+=4+K(Je)),U=new Uint8Array($e),N.forEach((Je,le)=>{if(le>Te)throw new Error(Lu);if(K(Je)>Te)throw new Error(Nu);xe(U,new Uint16Array([le]),Re),xe(U,new Uint16Array([K(Je)]),Re+2),xe(U,Je,Re+4),Re+=4+K(Je)})}let $=0,O=0,q=0;const re=M===!0;t&&(t=gu(t),await an(t),t.size===pe?(L=!0,(M||M===pe)&&(M=!0,q=$=Pe+1)):(q=t.size,$=Yu(q)));const{diskOffset:j,diskNumber:ge,maxSize:W}=e.writer,J=re||q>Pe,Ne=re||$>Pe,he=re||e.offset+e.pendingEntriesSize-j>Pe,ht=ne(e,r,"supportZip64SplitFile",!0)&&re||ge+Math.ceil(e.pendingEntriesSize/W)>Te;if(he||J||Ne||ht){if(M===!1||!y)throw new Error(Rr);M=!0}M=M||!1,r=Object.assign({},r,{rawFilename:i,rawComment:u,version:a,versionMadeBy:f,lastModDate:c,lastAccessDate:h,creationDate:m,rawExtraField:U,zip64:M,zip64UncompressedSize:J,zip64CompressedSize:Ne,zip64Offset:he,zip64DiskNumberStart:ht,password:d,rawPassword:p,level:!T&&e.config.CompressionStream===pe?0:w,useWebWorkers:_,encryptionStrength:D,extendedTimestamp:v,zipCrypto:g,bufferedWrite:A,keepOrder:y,dataDescriptor:L,dataDescriptorSignature:E,signal:S,msDosCompatible:x,internalFileAttribute:b,externalFileAttribute:l,useCompressionStream:T});const at=Uu(r),Ke=Vu(r),ze=K(at.localHeaderArray,Ke.dataDescriptorArray);O=ze+$,e.options.usdz&&(O+=O+64),e.pendingEntriesSize+=O;let ut;try{ut=await Ou(e,n,t,{headerInfo:at,dataDescriptorInfo:Ke,metadataSize:ze},r)}finally{e.pendingEntriesSize-=O}return Object.assign(ut,{name:n,comment:o,extraField:N}),new qi(ut)}async function Ou(e,n,t,r,s){const{files:i,writer:o}=e,{keepOrder:u,dataDescriptor:a,signal:f}=s,{headerInfo:c}=r,{usdz:h}=e.options,m=Array.from(i.values()).pop();let x={},b,l,d,p,D,g,v;i.set(n,x);try{let A;u&&(A=m&&m.lock,y()),(s.bufferedWrite||e.writerLocked||e.bufferedWrites&&u||!a)&&!h?(g=new TransformStream,v=new Response(g.readable).blob(),g.writable.size=0,b=!0,e.bufferedWrites++,await an(o)):(g=o,await w()),await an(g);const{writable:E}=o;let{diskOffset:S}=o;if(e.addSplitZipSignature){delete e.addSplitZipSignature;const L=new Uint8Array(4),M=ye(L);X(M,0,ii),await rt(E,L),e.offset+=4}h&&qu(r,e.offset-S),b||(await A,await _(E));const{diskNumber:T}=o;if(D=!0,x.diskNumberStart=T,x=await ju(t,g,x,r,e.config,s),D=!1,i.set(n,x),x.filename=n,b){await g.writable.getWriter().close();let L=await v;await A,await w(),p=!0,a||(L=await Wu(x,L,E,s)),await _(E),x.diskNumberStart=o.diskNumber,S=o.diskOffset,await L.stream().pipeTo(E,{preventClose:!0,preventAbort:!0,signal:f}),E.size+=L.size,p=!1}if(x.offset=e.offset-S,x.zip64)Hu(x,s);else if(x.offset>Pe)throw new Error(Rr);return e.offset+=x.size,x}catch(A){if(b&&p||!b&&D){if(e.hasCorruptedEntries=!0,A)try{A.corruptedEntry=!0}catch{}b?e.offset+=g.writable.size:e.offset=g.writable.size}throw i.delete(n),A}finally{b&&e.bufferedWrites--,d&&d(),l&&l()}function y(){x.lock=new Promise(A=>d=A)}async function w(){e.writerLocked=!0;const{lockWriter:A}=e;e.lockWriter=new Promise(E=>l=()=>{e.writerLocked=!1,E()}),await A}async function _(A){K(c.localHeaderArray)>o.availableSize&&(o.availableSize=0,await rt(A,new Uint8Array))}}async function ju(e,n,{diskNumberStart:t,lock:r},s,i,o){const{headerInfo:u,dataDescriptorInfo:a,metadataSize:f}=s,{localHeaderArray:c,headerArray:h,lastModDate:m,rawLastModDate:x,encrypted:b,compressed:l,version:d,compressionMethod:p,rawExtraFieldExtendedTimestamp:D,extraFieldExtendedTimestampFlag:g,rawExtraFieldNTFS:v,rawExtraFieldAES:y}=u,{dataDescriptorArray:w}=a,{rawFilename:_,lastAccessDate:A,creationDate:E,password:S,rawPassword:T,level:L,zip64:M,zip64UncompressedSize:U,zip64CompressedSize:N,zip64Offset:$,zip64DiskNumberStart:O,zipCrypto:q,dataDescriptor:re,directory:j,versionMadeBy:ge,rawComment:W,rawExtraField:J,useWebWorkers:Ne,onstart:he,onprogress:me,onend:ht,signal:at,encryptionStrength:Ke,extendedTimestamp:ze,msDosCompatible:ut,internalFileAttribute:$e,externalFileAttribute:Re,useCompressionStream:Je}=o,le={lock:r,versionMadeBy:ge,zip64:M,directory:!!j,filenameUTF8:!0,rawFilename:_,commentUTF8:!0,rawComment:W,rawExtraFieldExtendedTimestamp:D,rawExtraFieldNTFS:v,rawExtraFieldAES:y,rawExtraField:J,extendedTimestamp:ze,msDosCompatible:ut,internalFileAttribute:$e,externalFileAttribute:Re,diskNumberStart:t};let be=0,St=0,Ht;const{writable:mt}=n;if(e){e.chunkSize=Ca(i),await rt(mt,c);const Ce=e.readable,pn=Ce.size=e.size,hn={options:{codecType:Ti,level:L,rawPassword:T,password:S,encryptionStrength:Ke,zipCrypto:b&&q,passwordVerification:b&&q&&x>>8&255,signed:!0,compressed:l,encrypted:b,useWebWorkers:Ne,useCompressionStream:Je,transferStreams:!1},config:i,streamOptions:{signal:at,size:pn,onstart:he,onprogress:me,onend:ht}},Zt=await uu({readable:Ce,writable:mt},hn);St=Zt.inputSize,be=Zt.outputSize,Ht=Zt.signature,mt.size+=St}else await rt(mt,c);let $t;if(M){let Ce=4;U&&(Ce+=8),N&&(Ce+=8),$&&(Ce+=8),O&&(Ce+=4),$t=new Uint8Array(Ce)}else $t=new Uint8Array;return Gu({signature:Ht,rawExtraFieldZip64:$t,compressedSize:be,uncompressedSize:St,headerInfo:u,dataDescriptorInfo:a},o),re&&await rt(mt,w),Object.assign(le,{uncompressedSize:St,compressedSize:be,lastModDate:m,rawLastModDate:x,creationDate:E,lastAccessDate:A,encrypted:b,size:f+be,compressionMethod:p,version:d,headerArray:h,signature:Ht,rawExtraFieldZip64:$t,extraFieldExtendedTimestampFlag:g,zip64UncompressedSize:U,zip64CompressedSize:N,zip64Offset:$,zip64DiskNumberStart:O}),le}function Uu(e){const{rawFilename:n,lastModDate:t,lastAccessDate:r,creationDate:s,rawPassword:i,password:o,level:u,zip64:a,zipCrypto:f,dataDescriptor:c,directory:h,rawExtraField:m,encryptionStrength:x,extendedTimestamp:b}=e,l=u!==0&&!h,d=!!(o&&K(o)||i&&K(i));let p=e.version,D;if(d&&!f){D=new Uint8Array(K(qs)+2);const O=ye(D);Q(O,0,pa),xe(D,qs,2),Ln(O,8,x)}else D=new Uint8Array;let g,v,y;if(b){v=new Uint8Array(9+(r?4:0)+(s?4:0));const O=ye(v);Q(O,0,ui),Q(O,2,K(v)-4),y=1+(r?2:0)+(s?4:0),Ln(O,4,y);let q=5;X(O,q,Math.floor(t.getTime()/1e3)),q+=4,r&&(X(O,q,Math.floor(r.getTime()/1e3)),q+=4),s&&X(O,q,Math.floor(s.getTime()/1e3));try{g=new Uint8Array(36);const re=ye(g),j=dr(t);Q(re,0,ha),Q(re,2,32),Q(re,8,ma),Q(re,10,24),Be(re,12,j),Be(re,20,dr(r)||j),Be(re,28,dr(s)||j)}catch{g=new Uint8Array}}else g=v=new Uint8Array;let w=wa;c&&(w=w|ga);let _=ra;l&&(_=bs),a&&(p=p>_s?p:_s),d&&(w=w|Da,f||(p=p>As?p:As,_=sa,l&&(D[9]=bs)));const A=new Uint8Array(26),E=ye(A);Q(E,0,p),Q(E,2,w),Q(E,4,_);const S=new Uint32Array(1),T=ye(S);let L;t<Cs?L=Cs:t>vs?L=vs:L=t,Q(T,0,(L.getHours()<<6|L.getMinutes())<<5|L.getSeconds()/2),Q(T,2,(L.getFullYear()-1980<<4|L.getMonth()+1)<<5|L.getDate());const M=S[0];X(E,6,M),Q(E,22,K(n));const U=K(D,v,g,m);Q(E,24,U);const N=new Uint8Array(30+K(n)+U),$=ye(N);return X($,0,ia),xe(N,A,4),xe(N,n,30),xe(N,D,30+K(n)),xe(N,v,30+K(n,D)),xe(N,g,30+K(n,D,v)),xe(N,m,30+K(n,D,v,g)),{localHeaderArray:N,headerArray:A,headerView:E,lastModDate:t,rawLastModDate:M,encrypted:d,compressed:l,version:p,compressionMethod:_,extraFieldExtendedTimestampFlag:y,rawExtraFieldExtendedTimestamp:v,rawExtraFieldNTFS:g,rawExtraFieldAES:D,extraFieldLength:U}}function qu(e,n){const{headerInfo:t}=e;let{localHeaderArray:r,extraFieldLength:s}=t,i=ye(r),o=64-(n+K(r))%64;o<4&&(o+=64);const u=new Uint8Array(o),a=ye(u);Q(a,0,xa),Q(a,2,o-2);const f=r;t.localHeaderArray=r=new Uint8Array(K(f)+o),xe(r,f),xe(r,u,K(f)),i=ye(r),Q(i,28,s+o),e.metadataSize+=o}function Vu(e){const{zip64:n,dataDescriptor:t,dataDescriptorSignature:r}=e;let s=new Uint8Array,i,o=0;return t&&(s=new Uint8Array(n?r?24:20:r?16:12),i=ye(s),r&&(o=4,X(i,0,oa))),{dataDescriptorArray:s,dataDescriptorView:i,dataDescriptorOffset:o}}function Gu(e,n){const{signature:t,rawExtraFieldZip64:r,compressedSize:s,uncompressedSize:i,headerInfo:o,dataDescriptorInfo:u}=e,{headerView:a,encrypted:f}=o,{dataDescriptorView:c,dataDescriptorOffset:h}=u,{zip64:m,zip64UncompressedSize:x,zip64CompressedSize:b,zipCrypto:l,dataDescriptor:d}=n;if((!f||l)&&t!==pe&&(X(a,10,t),d&&X(c,h,t)),m){const p=ye(r);Q(p,0,da),Q(p,2,K(r)-4);let D=4;x&&(X(a,18,Pe),Be(p,D,BigInt(i)),D+=8),b&&(X(a,14,Pe),Be(p,D,BigInt(s))),d&&(Be(c,h+4,BigInt(s)),Be(c,h+12,BigInt(i)))}else X(a,14,s),X(a,18,i),d&&(X(c,h+4,s),X(c,h+8,i))}async function Wu(e,n,t,{zipCrypto:r}){let s;s=await n.slice(0,26).arrayBuffer(),s.byteLength!=26&&(s=s.slice(0,26));const i=new DataView(s);return(!e.encrypted||r)&&X(i,14,e.signature),e.zip64?(X(i,18,Pe),X(i,22,Pe)):(X(i,18,e.compressedSize),X(i,22,e.uncompressedSize)),await rt(t,new Uint8Array(s)),n.slice(s.byteLength)}function Hu(e,n){const{rawExtraFieldZip64:t,offset:r,diskNumberStart:s}=e,{zip64UncompressedSize:i,zip64CompressedSize:o,zip64Offset:u,zip64DiskNumberStart:a}=n,f=ye(t);let c=4;i&&(c+=8),o&&(c+=8),u&&(Be(f,c,BigInt(r)),c+=8),a&&X(f,c,s)}async function Zu(e,n,t){const{files:r,writer:s}=e,{diskOffset:i,writable:o}=s;let{diskNumber:u}=s,a=0,f=0,c=e.offset-i,h=r.size;for(const[,y]of r){const{rawFilename:w,rawExtraFieldZip64:_,rawExtraFieldAES:A,rawComment:E,rawExtraFieldNTFS:S,rawExtraField:T,extendedTimestamp:L,extraFieldExtendedTimestampFlag:M,lastModDate:U}=y;let N;if(L){N=new Uint8Array(9);const $=ye(N);Q($,0,ui),Q($,2,5),Ln($,4,M),X($,5,Math.floor(U.getTime()/1e3))}else N=new Uint8Array;y.rawExtraFieldCDExtendedTimestamp=N,f+=46+K(w,E,_,A,S,N,T)}const m=new Uint8Array(f),x=ye(m);await an(s);let b=0;for(const[y,w]of Array.from(r.values()).entries()){const{offset:_,rawFilename:A,rawExtraFieldZip64:E,rawExtraFieldAES:S,rawExtraFieldCDExtendedTimestamp:T,rawExtraFieldNTFS:L,rawExtraField:M,rawComment:U,versionMadeBy:N,headerArray:$,directory:O,zip64:q,zip64UncompressedSize:re,zip64CompressedSize:j,zip64DiskNumberStart:ge,zip64Offset:W,msDosCompatible:J,internalFileAttribute:Ne,externalFileAttribute:he,diskNumberStart:me,uncompressedSize:ht,compressedSize:at}=w,Ke=K(E,S,T,L,M);X(x,a,aa),Q(x,a+4,N);const ze=ye($);re||X(ze,18,ht),j||X(ze,14,at),xe(m,$,a+6),Q(x,a+30,Ke),Q(x,a+32,K(U)),Q(x,a+34,q&&ge?Te:me),Q(x,a+36,Ne),he?X(x,a+38,he):O&&J&&Ln(x,a+38,ya),X(x,a+42,q&&W?Pe:_),xe(m,A,a+46),xe(m,E,a+46+K(A)),xe(m,S,a+46+K(A,E)),xe(m,T,a+46+K(A,E,S)),xe(m,L,a+46+K(A,E,S,T)),xe(m,M,a+46+K(A,E,S,T,L)),xe(m,U,a+46+K(A)+Ke);const ut=46+K(A,U)+Ke;if(a-b>s.availableSize&&(s.availableSize=0,await rt(o,m.slice(b,a)),b=a),a+=ut,t.onprogress)try{await t.onprogress(y+1,r.size,new qi(w))}catch{}}await rt(o,b?m.slice(b):m);let l=s.diskNumber;const{availableSize:d}=s;d<wr&&l++;let p=ne(e,t,"zip64");if(c>Pe||f>Pe||h>Te||l>Te){if(p===!1)throw new Error(Rr);p=!0}const D=new Uint8Array(p?fa:wr),g=ye(D);a=0,p&&(X(g,0,ca),Be(g,4,BigInt(44)),Q(g,12,45),Q(g,14,45),X(g,16,l),X(g,20,u),Be(g,24,BigInt(h)),Be(g,32,BigInt(h)),Be(g,40,BigInt(f)),Be(g,48,BigInt(c)),X(g,56,la),Be(g,64,BigInt(c)+BigInt(f)),X(g,72,l+1),ne(e,t,"supportZip64SplitFile",!0)&&(l=Te,u=Te),h=Te,c=Pe,f=Pe,a+=ai+oi),X(g,a,ua),Q(g,a+4,l),Q(g,a+6,u),Q(g,a+8,h),Q(g,a+10,h),X(g,a+12,f),X(g,a+16,c);const v=K(n);if(v)if(v<=Te)Q(g,a+20,v);else throw new Error(Bu);await rt(o,D),v&&await rt(o,n)}async function rt(e,n){const t=e.getWriter();try{await t.ready,e.size+=K(n),await t.write(n)}finally{t.releaseLock()}}function dr(e){if(e)return(BigInt(e.getTime())+BigInt(116444736e5))*BigInt(1e4)}function ne(e,n,t,r){const s=n[t]===pe?e.options[t]:n[t];return s===pe?r:s}function Yu(e){return e+5*(Math.floor(e/16383)+1)}function Ln(e,n,t){e.setUint8(n,t)}function Q(e,n,t){e.setUint16(n,t,!0)}function X(e,n,t){e.setUint32(n,t,!0)}function Be(e,n,t){e.setBigUint64(n,t,!0)}function xe(e,n,t){e.set(n,t)}function ye(e){return new DataView(e.buffer)}function K(...e){let n=0;return e.forEach(t=>t&&(n+=t.length)),n}let Vi;try{Vi=import.meta.url}catch{}Ir({baseURL:Vi});lu(Ir);Ir({Deflate:Lo,Inflate:na});var Xu=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ku=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,zu=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,pr={Space_Separator:Xu,ID_Start:Ku,ID_Continue:zu},fe={isSpaceSeparator(e){return typeof e=="string"&&pr.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||pr.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="‌"||e==="‍"||pr.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}};let Ar,ve,lt,Nn,Et,Xe,De,Or,tn;var Ju=function(n,t){Ar=String(n),ve="start",lt=[],Nn=0,Et=1,Xe=0,De=void 0,Or=void 0,tn=void 0;do De=Qu(),nc[ve]();while(De.type!=="eof");return typeof t=="function"?vr({"":tn},"",t):tn};function vr(e,n,t){const r=e[n];if(r!=null&&typeof r=="object")if(Array.isArray(r))for(let s=0;s<r.length;s++){const i=String(s),o=vr(r,i,t);o===void 0?delete r[i]:Object.defineProperty(r,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const s in r){const i=vr(r,s,t);i===void 0?delete r[s]:Object.defineProperty(r,s,{value:i,writable:!0,enumerable:!0,configurable:!0})}return t.call(e,n,r)}let H,G,en,ct,Y;function Qu(){for(H="default",G="",en=!1,ct=1;;){Y=pt();const e=Gi[H]();if(e)return e}}function pt(){if(Ar[Nn])return String.fromCodePoint(Ar.codePointAt(Nn))}function F(){const e=pt();return e===`
3
- `?(Et++,Xe=0):e?Xe+=e.length:Xe++,e&&(Nn+=e.length),e}const Gi={default(){switch(Y){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
4
- `:case"\r":case"\u2028":case"\u2029":F();return;case"/":F(),H="comment";return;case void 0:return F(),se("eof")}if(fe.isSpaceSeparator(Y)){F();return}return Gi[ve]()},comment(){switch(Y){case"*":F(),H="multiLineComment";return;case"/":F(),H="singleLineComment";return}throw ie(F())},multiLineComment(){switch(Y){case"*":F(),H="multiLineCommentAsterisk";return;case void 0:throw ie(F())}F()},multiLineCommentAsterisk(){switch(Y){case"*":F();return;case"/":F(),H="default";return;case void 0:throw ie(F())}F(),H="multiLineComment"},singleLineComment(){switch(Y){case`
5
- `:case"\r":case"\u2028":case"\u2029":F(),H="default";return;case void 0:return F(),se("eof")}F()},value(){switch(Y){case"{":case"[":return se("punctuator",F());case"n":return F(),Tt("ull"),se("null",null);case"t":return F(),Tt("rue"),se("boolean",!0);case"f":return F(),Tt("alse"),se("boolean",!1);case"-":case"+":F()==="-"&&(ct=-1),H="sign";return;case".":G=F(),H="decimalPointLeading";return;case"0":G=F(),H="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":G=F(),H="decimalInteger";return;case"I":return F(),Tt("nfinity"),se("numeric",1/0);case"N":return F(),Tt("aN"),se("numeric",NaN);case'"':case"'":en=F()==='"',G="",H="string";return}throw ie(F())},identifierNameStartEscape(){if(Y!=="u")throw ie(F());F();const e=Cr();switch(e){case"$":case"_":break;default:if(!fe.isIdStartChar(e))throw Gs();break}G+=e,H="identifierName"},identifierName(){switch(Y){case"$":case"_":case"‌":case"‍":G+=F();return;case"\\":F(),H="identifierNameEscape";return}if(fe.isIdContinueChar(Y)){G+=F();return}return se("identifier",G)},identifierNameEscape(){if(Y!=="u")throw ie(F());F();const e=Cr();switch(e){case"$":case"_":case"‌":case"‍":break;default:if(!fe.isIdContinueChar(e))throw Gs();break}G+=e,H="identifierName"},sign(){switch(Y){case".":G=F(),H="decimalPointLeading";return;case"0":G=F(),H="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":G=F(),H="decimalInteger";return;case"I":return F(),Tt("nfinity"),se("numeric",ct*(1/0));case"N":return F(),Tt("aN"),se("numeric",NaN)}throw ie(F())},zero(){switch(Y){case".":G+=F(),H="decimalPoint";return;case"e":case"E":G+=F(),H="decimalExponent";return;case"x":case"X":G+=F(),H="hexadecimal";return}return se("numeric",ct*0)},decimalInteger(){switch(Y){case".":G+=F(),H="decimalPoint";return;case"e":case"E":G+=F(),H="decimalExponent";return}if(fe.isDigit(Y)){G+=F();return}return se("numeric",ct*Number(G))},decimalPointLeading(){if(fe.isDigit(Y)){G+=F(),H="decimalFraction";return}throw ie(F())},decimalPoint(){switch(Y){case"e":case"E":G+=F(),H="decimalExponent";return}if(fe.isDigit(Y)){G+=F(),H="decimalFraction";return}return se("numeric",ct*Number(G))},decimalFraction(){switch(Y){case"e":case"E":G+=F(),H="decimalExponent";return}if(fe.isDigit(Y)){G+=F();return}return se("numeric",ct*Number(G))},decimalExponent(){switch(Y){case"+":case"-":G+=F(),H="decimalExponentSign";return}if(fe.isDigit(Y)){G+=F(),H="decimalExponentInteger";return}throw ie(F())},decimalExponentSign(){if(fe.isDigit(Y)){G+=F(),H="decimalExponentInteger";return}throw ie(F())},decimalExponentInteger(){if(fe.isDigit(Y)){G+=F();return}return se("numeric",ct*Number(G))},hexadecimal(){if(fe.isHexDigit(Y)){G+=F(),H="hexadecimalInteger";return}throw ie(F())},hexadecimalInteger(){if(fe.isHexDigit(Y)){G+=F();return}return se("numeric",ct*Number(G))},string(){switch(Y){case"\\":F(),G+=ec();return;case'"':if(en)return F(),se("string",G);G+=F();return;case"'":if(!en)return F(),se("string",G);G+=F();return;case`
6
- `:case"\r":throw ie(F());case"\u2028":case"\u2029":rc(Y);break;case void 0:throw ie(F())}G+=F()},start(){switch(Y){case"{":case"[":return se("punctuator",F())}H="value"},beforePropertyName(){switch(Y){case"$":case"_":G=F(),H="identifierName";return;case"\\":F(),H="identifierNameStartEscape";return;case"}":return se("punctuator",F());case'"':case"'":en=F()==='"',H="string";return}if(fe.isIdStartChar(Y)){G+=F(),H="identifierName";return}throw ie(F())},afterPropertyName(){if(Y===":")return se("punctuator",F());throw ie(F())},beforePropertyValue(){H="value"},afterPropertyValue(){switch(Y){case",":case"}":return se("punctuator",F())}throw ie(F())},beforeArrayValue(){if(Y==="]")return se("punctuator",F());H="value"},afterArrayValue(){switch(Y){case",":case"]":return se("punctuator",F())}throw ie(F())},end(){throw ie(F())}};function se(e,n){return{type:e,value:n,line:Et,column:Xe}}function Tt(e){for(const n of e){if(pt()!==n)throw ie(F());F()}}function ec(){switch(pt()){case"b":return F(),"\b";case"f":return F(),"\f";case"n":return F(),`
7
- `;case"r":return F(),"\r";case"t":return F()," ";case"v":return F(),"\v";case"0":if(F(),fe.isDigit(pt()))throw ie(F());return"\0";case"x":return F(),tc();case"u":return F(),Cr();case`
8
- `:case"\u2028":case"\u2029":return F(),"";case"\r":return F(),pt()===`
9
- `&&F(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw ie(F());case void 0:throw ie(F())}return F()}function tc(){let e="",n=pt();if(!fe.isHexDigit(n)||(e+=F(),n=pt(),!fe.isHexDigit(n)))throw ie(F());return e+=F(),String.fromCodePoint(parseInt(e,16))}function Cr(){let e="",n=4;for(;n-- >0;){const t=pt();if(!fe.isHexDigit(t))throw ie(F());e+=F()}return String.fromCodePoint(parseInt(e,16))}const nc={start(){if(De.type==="eof")throw Bt();hr()},beforePropertyName(){switch(De.type){case"identifier":case"string":Or=De.value,ve="afterPropertyName";return;case"punctuator":Cn();return;case"eof":throw Bt()}},afterPropertyName(){if(De.type==="eof")throw Bt();ve="beforePropertyValue"},beforePropertyValue(){if(De.type==="eof")throw Bt();hr()},beforeArrayValue(){if(De.type==="eof")throw Bt();if(De.type==="punctuator"&&De.value==="]"){Cn();return}hr()},afterPropertyValue(){if(De.type==="eof")throw Bt();switch(De.value){case",":ve="beforePropertyName";return;case"}":Cn()}},afterArrayValue(){if(De.type==="eof")throw Bt();switch(De.value){case",":ve="beforeArrayValue";return;case"]":Cn()}},end(){}};function hr(){let e;switch(De.type){case"punctuator":switch(De.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=De.value;break}if(tn===void 0)tn=e;else{const n=lt[lt.length-1];Array.isArray(n)?n.push(e):Object.defineProperty(n,Or,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")lt.push(e),Array.isArray(e)?ve="beforeArrayValue":ve="beforePropertyName";else{const n=lt[lt.length-1];n==null?ve="end":Array.isArray(n)?ve="afterArrayValue":ve="afterPropertyValue"}}function Cn(){lt.pop();const e=lt[lt.length-1];e==null?ve="end":Array.isArray(e)?ve="afterArrayValue":ve="afterPropertyValue"}function ie(e){return $n(e===void 0?`JSON5: invalid end of input at ${Et}:${Xe}`:`JSON5: invalid character '${Wi(e)}' at ${Et}:${Xe}`)}function Bt(){return $n(`JSON5: invalid end of input at ${Et}:${Xe}`)}function Gs(){return Xe-=5,$n(`JSON5: invalid identifier character at ${Et}:${Xe}`)}function rc(e){console.warn(`JSON5: '${Wi(e)}' in strings is not valid ECMAScript; consider escaping`)}function Wi(e){const n={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(n[e])return n[e];if(e<" "){const t=e.charCodeAt(0).toString(16);return"\\x"+("00"+t).substring(t.length)}return e}function $n(e){const n=new SyntaxError(e);return n.lineNumber=Et,n.columnNumber=Xe,n}var sc=function(n,t,r){const s=[];let i="",o,u,a="",f;if(t!=null&&typeof t=="object"&&!Array.isArray(t)&&(r=t.space,f=t.quote,t=t.replacer),typeof t=="function")u=t;else if(Array.isArray(t)){o=[];for(const l of t){let d;typeof l=="string"?d=l:(typeof l=="number"||l instanceof String||l instanceof Number)&&(d=String(l)),d!==void 0&&o.indexOf(d)<0&&o.push(d)}}return r instanceof Number?r=Number(r):r instanceof String&&(r=String(r)),typeof r=="number"?r>0&&(r=Math.min(10,Math.floor(r)),a=" ".substr(0,r)):typeof r=="string"&&(a=r.substr(0,10)),c("",{"":n});function c(l,d){let p=d[l];switch(p!=null&&(typeof p.toJSON5=="function"?p=p.toJSON5(l):typeof p.toJSON=="function"&&(p=p.toJSON(l))),u&&(p=u.call(d,l,p)),p instanceof Number?p=Number(p):p instanceof String?p=String(p):p instanceof Boolean&&(p=p.valueOf()),p){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof p=="string")return h(p);if(typeof p=="number")return String(p);if(typeof p=="object")return Array.isArray(p)?b(p):m(p)}function h(l){const d={"'":.1,'"':.2},p={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let D="";for(let v=0;v<l.length;v++){const y=l[v];switch(y){case"'":case'"':d[y]++,D+=y;continue;case"\0":if(fe.isDigit(l[v+1])){D+="\\x00";continue}}if(p[y]){D+=p[y];continue}if(y<" "){let w=y.charCodeAt(0).toString(16);D+="\\x"+("00"+w).substring(w.length);continue}D+=y}const g=f||Object.keys(d).reduce((v,y)=>d[v]<d[y]?v:y);return D=D.replace(new RegExp(g,"g"),p[g]),g+D+g}function m(l){if(s.indexOf(l)>=0)throw TypeError("Converting circular structure to JSON5");s.push(l);let d=i;i=i+a;let p=o||Object.keys(l),D=[];for(const v of p){const y=c(v,l);if(y!==void 0){let w=x(v)+":";a!==""&&(w+=" "),w+=y,D.push(w)}}let g;if(D.length===0)g="{}";else{let v;if(a==="")v=D.join(","),g="{"+v+"}";else{let y=`,
10
- `+i;v=D.join(y),g=`{
11
- `+i+v+`,
12
- `+d+"}"}}return s.pop(),i=d,g}function x(l){if(l.length===0)return h(l);const d=String.fromCodePoint(l.codePointAt(0));if(!fe.isIdStartChar(d))return h(l);for(let p=d.length;p<l.length;p++)if(!fe.isIdContinueChar(String.fromCodePoint(l.codePointAt(p))))return h(l);return l}function b(l){if(s.indexOf(l)>=0)throw TypeError("Converting circular structure to JSON5");s.push(l);let d=i;i=i+a;let p=[];for(let g=0;g<l.length;g++){const v=c(String(g),l);p.push(v!==void 0?v:"null")}let D;if(p.length===0)D="[]";else if(a==="")D="["+p.join(",")+"]";else{let g=`,
13
- `+i,v=p.join(g);D=`[
14
- `+i+v+`,
15
- `+d+"]"}return s.pop(),i=d,D}};const ic={parse:Ju,stringify:sc};var oc=ic,jr=10**-4;function _0(e){return e*(Math.PI/180)}function _t(e){return e/(Math.PI/180)}function te(e){let n=e;return Math.abs(n)<jr&&(n=0),n}function Ft(e){let n=e%(2*Math.PI);return n<0&&(n+=2*Math.PI),n}function ce(e){let n=Ft(e);return n>Math.PI&&(n-=2*Math.PI),n}function nt(e){let n=e%Math.PI;return n<0&&(n+=Math.PI),n}function Ie(e){let n=nt(e);return n>Math.PI/2&&(n-=Math.PI),n}function Er(e,n,t){const r=ce(n)-ce(e);return t?Ft(r):Ft(r)-2*Math.PI}function Hi(e,n,t,r){let s=!1;if(te(ce(e-n))===0)s=!0;else if(te(ce(e-t))===0)s=!0;else{const i=Er(n,t,r),o=Er(n,e,r);Math.abs(o)<Math.abs(i)&&(s=!0)}return s}function st(e){return e.toFixed(2)}var de={point:"grey",line:"grey",vector:"DarkTurquoise",contour:"green",main:"SteelBlue",mainB:"SlateGrey",second:"Violet",secondB:"SlateGrey",dynamics:"Tomato",ruler:"blue",origin:"red",reference:"blue",mouse:"yellow"};function Lt(e,n,t){const r=t.shiftX+(e-t.xMin)*t.scaleX,s=t.shiftY+(n-t.yMin)*t.scaleY;return[r,s]}function A0(e,n,t){const r=(e-t.shiftX)/t.scaleX+t.xMin,s=(n-t.shiftY)/t.scaleY+t.yMin;return[r,s]}function Zi(e,n){if(te(n.scaleX-Math.abs(n.scaleY))!==0)throw`err683: iAdjust.scaleX and scaleY differ ${n.scaleX} ${n.scaleY}`;if(n.scaleX<0)throw`err684: iAdjust.scaleX ${n.scaleX} is negative`;const t=e*n.scaleX;if(t<0)throw`err685: rRadius for canvas ${t} is negative`;return t}function Fr(){return{init:0,xMin:0,yMin:0,xyDiff:1,shiftX:0,shiftY:0,scaleX:1,scaleY:1}}function Sr(e,n,t,r,s,i){const o=Fr(),u=Math.max(n-e,1),a=Math.max(r-t,1),f=s/u,c=i/a;let h=.9*f,m=u;return c<f&&(h=.9*c,m=a),o.init=1,o.xMin=e,o.yMin=t,o.xyDiff=m,o.shiftX=.05*s,o.scaleX=h,o.shiftY=i-.05*i,o.scaleY=-1*h,o}function v0(e,n,t){const r=structuredClone(t);return r.xMin=e-r.xyDiff/2,r.yMin=n-r.xyDiff/2,r}function C0(e,n,t,r,s,i){const o=Math.min(e,t),u=Math.max(e,t),a=Math.min(n,r),f=Math.max(n,r);return Sr(o,u,a,f,s,i)}function E0(e,n){const t=structuredClone(n),r=(1-e)/2;return t.xMin+=r*n.xyDiff,t.yMin+=r*n.xyDiff,t.xyDiff*=e,t.scaleX*=1/e,t.scaleY*=1/e,t}function F0(e,n,t,r,s){const i=structuredClone(s),o=t-e,u=r-n;return i.xMin+=-o,i.yMin+=-u,i}function Gn(e,n){let t=0;if(n>e)throw`err539: ila < ilc ${e} ${n}`;return t=Math.sqrt(e**2-n**2),t}function S0(e,n,t){return Math.sqrt(e**2+n**2-2*e*n*Math.cos(t))}function Ws(e,n,t){let r=0;const s=[e,n,t];for(let o=0;o<s.length;o++)if(s[o]<0)throw`err209: l3[${o}] = ${s[o]}`;const i=s.sort(function(o,u){return u-o});if(i[0]>i[1]+i[2])throw`err839: impossible triangle with length ${e}, ${n} and ${t}`;return r=Math.acos((e**2+n**2-t**2)/(2*e*n)),r}function Hs(e,n,t){let r=0;const s=[e,n,t];for(let a=0;a<s.length;a++)if(te(s[a])===0||s[a]<0)throw`err329: negative or zero triangle-args ${a} : ${s[a]}`;const i=nt(n),o=nt(t);if(i+o>Math.PI)throw`err939: impossible triangle with angles ${n} and ${t}`;return r=e*Math.sin(t)/Math.sin(n),r}function k0(e,n,t){let r=0;const s=[e,n,t];for(let i=0;i<s.length;i++)if(s[i]<=0)throw`err429: negative or zero triangle-args ${i} : ${s[i]}`;return r=Math.asin(n*Math.sin(t)/e),r}var ac=(e=>(e[e.eDefault=0]="eDefault",e[e.eCircle=1]="eCircle",e[e.eCross=2]="eCross",e[e.eSquare=3]="eSquare",e[e.eBigSquare=4]="eBigSquare",e[e.eTwoTri=5]="eTwoTri",e[e.eTri1=6]="eTri1",e[e.eTri2=7]="eTri2",e[e.eTri3=8]="eTri3",e[e.eTri4=9]="eTri4",e))(ac||{}),Ue=class Ut{constructor(n,t,r=0){I(this,"cx");I(this,"cy");I(this,"shape");this.cx=n,this.cy=t,this.shape=r}draw(n,t,r=de.point,s=0){if(isFinite(this.cx)&&isFinite(this.cy)){const i=n.canvas.width*.006999999999999999,o=2*i,[u,a]=Lt(this.cx,this.cy,t);let f=s;switch(f===0&&(f=this.shape),n.beginPath(),f){case 2:n.moveTo(u-o,a),n.lineTo(u+o,a),n.moveTo(u,a-o),n.lineTo(u,a+o);break;case 3:n.rect(u-i,a-i,2*i,2*i);break;case 4:n.rect(u-2*i,a-2*i,4*i,4*i);break;case 5:n.moveTo(u-o,a),n.lineTo(u+o,a),n.lineTo(u,a+o),n.lineTo(u,a-o),n.lineTo(u-o,a);break;case 6:n.moveTo(u-o,a),n.lineTo(u+o,a),n.lineTo(u,a-o),n.lineTo(u,a+o);break;case 7:n.moveTo(u+o,a),n.lineTo(u-o,a),n.lineTo(u,a-o),n.lineTo(u,a+o);break;case 8:n.moveTo(u+o,a),n.lineTo(u-o,a),n.lineTo(u,a+o),n.lineTo(u,a-o);break;case 9:n.moveTo(u-o,a),n.lineTo(u+o,a),n.lineTo(u,a+o),n.lineTo(u,a-o);break;case 1:default:n.arc(u,a,i,0,2*Math.PI)}n.strokeStyle=r,n.stroke()}else console.log(`INFO489: point not draw because of infinity ${this.cx} ${this.cy}`)}distanceOrig(){return Math.sqrt(this.cx**2+this.cy**2)}angleOrig(){return Math.atan2(this.cy,this.cx)}getPolar(){return[this.angleOrig(),this.distanceOrig()]}setPolar(n,t){return new Ut(t*Math.cos(n),t*Math.sin(n))}translate(n,t){return new Ut(this.cx+n,this.cy+t)}translatePolar(n,t){return new Ut(this.cx+t*Math.cos(n),this.cy+t*Math.sin(n))}clone(n=0){return new Ut(this.cx,this.cy,n)}rotateOrig(n){const t=this.getPolar();return this.setPolar(t[0]+n,t[1])}scaleOrig(n){const t=this.getPolar();return this.setPolar(t[0],t[1]*n)}rotate(n,t){const s=this.translate(-1*n.cx,-1*n.cy).getPolar();return this.setPolar(s[0]+t,s[1]).translate(n.cx,n.cy)}scale(n,t){const s=this.translate(-1*n.cx,-1*n.cy).getPolar();return this.setPolar(s[0],s[1]*t).translate(n.cx,n.cy)}isEqual(n){return te(this.cx-n.cx)===0&&te(this.cy-n.cy)===0}distanceToPoint(n){return Math.sqrt((n.cx-this.cx)**2+(n.cy-this.cy)**2)}angleToPoint(n){if(te(this.distanceToPoint(n))===0)throw`err434: no angle because points identical ${this.cx} ${n.cx} ${this.cy} ${n.cy}`;return Math.atan2(n.cy-this.cy,n.cx-this.cx)}angleFromToPoints(n,t){const r=this.angleToPoint(n),s=this.angleToPoint(t);return ce(s-r)}middlePoint(n){const t=(this.cx+n.cx)/2,r=(this.cy+n.cy)/2;return new Ut(t,r)}equidistantPoint(n,t,r){const s=this.distanceToPoint(n)/2;if(this.isEqual(n))throw`err633: no equidistance because identical point ${this.cx} ${this.cy}`;if(t<s)throw`err392: equidistance ${t} smaller than lp1p2h ${s}`;const i=this.middlePoint(n),o=this.angleToPoint(n)+Math.PI/2,u=Math.sqrt(t**2-s**2),a=i.translatePolar(o,u),f=i.translatePolar(o+Math.PI,u),c=r.distanceToPoint(a),h=r.distanceToPoint(f);if(u!==0&&c===h)throw`err284: magnet point p3 is on line p1p2. cx ${r.cx} cy: ${r.cy}`;let m=a;return h<c&&(m=f),m}};function Z(e,n,t=0){return new Ue(e,n,t)}function Yi(e){let n=0,t=0,r=0,s=0;if(e.length>0){const i=e[0];if(i.cx===Number.NEGATIVE_INFINITY||i.cx===Number.POSITIVE_INFINITY||i.cy===Number.NEGATIVE_INFINITY||i.cy===Number.POSITIVE_INFINITY)throw`err292: pointMinMax first point with infinity: ${i.cx} ${i.cy}`;n=e[0].cx,t=e[0].cx,r=e[0].cy,s=e[0].cy;for(const o of e)o.cx!==Number.NEGATIVE_INFINITY&&(n=Math.min(n,o.cx)),o.cx!==Number.POSITIVE_INFINITY&&(t=Math.max(t,o.cx)),o.cy!==Number.NEGATIVE_INFINITY&&(r=Math.min(r,o.cy)),o.cy!==Number.POSITIVE_INFINITY&&(s=Math.max(s,o.cy))}return[n,t,r,s]}var uc=class Se{constructor(n,t,r){I(this,"cx");I(this,"cy");I(this,"ca");this.cx=n,this.cy=t,this.ca=r}draw(n,t,r=de.line){const s=n.canvas.width*2,[i,o]=Lt(this.cx-s*Math.cos(this.ca),this.cy-s*Math.sin(this.ca),t),[u,a]=Lt(this.cx+2*s*Math.cos(this.ca),this.cy+2*s*Math.sin(this.ca),t);n.beginPath(),n.moveTo(i,o),n.lineTo(u,a),n.strokeStyle=r,n.stroke()}setFromPoints(n,t){return this.cx=n.cx,this.cy=n.cy,this.ca=n.angleToPoint(t),this}getAffine(){const n={quasiVertical:!1,ha:0,hb:0,va:0,vb:0};return Math.abs(Ie(this.ca))>Math.PI/4?(n.quasiVertical=!0,n.va=-1*Math.tan(Ie(this.ca-Math.PI/2)),n.vb=this.cx-n.va*this.cy):(n.ha=Math.tan(Ie(this.ca)),n.hb=this.cy-n.ha*this.cx),n}setAffine(n){const t=new Se(0,0,0);return n.quasiVertical?(t.ca=Math.PI/2-Math.atan(n.va),t.cx=n.vb,t.cy=0):(t.ca=Math.atan(n.ha),t.cx=0,t.cy=n.hb),t}intersection(n){if(this.isParallel(n))throw`err902: no intersection, lines are parallel ca1: ${this.ca} ca2: ${n.ca}`;let t=0,r=0;const s=this.getAffine(),i=n.getAffine();return s.quasiVertical?i.quasiVertical?(r=(s.vb-i.vb)/(i.va-s.va),t=s.va*r+s.vb):(t=(s.va*i.hb+s.vb)/(1-s.va*i.ha),r=i.ha*t+i.hb):i.quasiVertical?(r=(s.ha*i.vb+s.hb)/(1-s.ha*i.va),t=i.va*r+i.vb):(t=(s.hb-i.hb)/(i.ha-s.ha),r=s.ha*t+s.hb),Z(t,r)}getAxisXIntersection(){const n=new Se(0,0,0);return this.intersection(n).cx}getAxisYIntersection(){const n=new Se(0,0,Math.PI/2);return this.intersection(n).cy}getAxisXIntersecTri(){let n=1/0;if(te(Ie(this.ca))!==0){const t=new Ue(this.cx,this.cy),r=nt(this.ca),s=t.angleOrig(),i=t.distanceOrig();if(te(i)===0)n=0;else if(te(Ie(r-s))===0)n=0;else{const o=Math.min(r,Math.PI-r),u=ce(r-s),a=Math.min(Math.abs(u),Math.PI-Math.abs(u));n=Math.sign(u)*Hs(i,o,a)}}return n}getAxisYIntersecTri(){let n=1/0;if(te(Ie(this.ca-Math.PI/2))!==0){const t=new Ue(this.cx,this.cy),r=Ie(this.ca),s=t.angleOrig(),i=t.distanceOrig(),o=Ie(r-s);if(te(i)===0)n=0;else if(te(o)===0)n=0;else{const u=nt(r-Math.PI/2),a=-1*ce(r-s),f=Math.min(u,Math.PI-u),c=Math.min(Math.abs(a),Math.PI-Math.abs(a));n=Math.sign(a)*Hs(i,f,c)}}return n}angleOrig(){const t=new Ue(this.cx,this.cy).angleOrig(),r=Ie(this.ca),s=-1*ce(r-t);let i=0;return s<0&&(i=-Math.PI),nt(Math.PI/2+this.ca)+i}distanceOrig(){const n=this.angleOrig(),t=new Ue(this.cx,this.cy),r=t.angleOrig(),s=t.distanceOrig(),i=Ie(r-n);return s*Math.cos(i)}projectOrig(){const n=this.angleOrig(),t=this.distanceOrig();return Z(0,0).setPolar(n,t)}translate(n,t){return new Se(this.cx+n,this.cy+t,this.ca)}rotateOrig(n){const t=new Ue(this.cx,this.cy).rotateOrig(n);return new Se(t.cx,t.cy,ce(this.ca+n))}scaleOrig(n){const t=new Ue(this.cx,this.cy).scaleOrig(n);return new Se(t.cx,t.cy,this.ca)}rotate(n,t){const r=new Ue(this.cx,this.cy).rotate(n,t);return new Se(r.cx,r.cy,ce(this.ca+t))}scale(n,t){const r=new Ue(this.cx,this.cy).scale(n,t);return new Se(r.cx,r.cy,this.ca)}clone(){const n=new Ue(this.cx,this.cy);return new Se(n.cx,n.cy,this.ca)}lineOrthogonal(n){return new Se(n.cx,n.cy,this.ca+Math.PI/2)}lineParallel(n){return new Se(n.cx,n.cy,this.ca)}distanceToPoint(n){let t=0;const r=new Ue(this.cx,this.cy),s=r.distanceToPoint(n);if(te(s)!==0){const i=r.angleToPoint(n),o=Ie(i-this.ca);t=s*Math.abs(Math.sin(o))}return t}projectPoint(n){let t=0;const r=new Ue(this.cx,this.cy),s=r.distanceToPoint(n);if(te(s)!==0){const o=r.angleToPoint(n),u=ce(o-this.ca);t=s*Math.cos(u)}return r.translatePolar(this.ca,t)}isParallel(n){return te(Ie(this.ca-n.ca))===0}isOrthogonal(n){return te(Ie(Math.PI/2+this.ca-n.ca))===0}isEqual(n){const t=Z(n.cx,n.cy),r=this.distanceToPoint(t);return te(r)===0&&this.isParallel(n)}bisector(n,t){const r=this.intersection(n),s=nt(this.ca),i=nt(n.ca),o=Math.min(s,i),u=Math.max(s,i),a=[o,u,o+Math.PI,u+Math.PI,o],f=r.angleToPoint(t);let c=0;for(let x=0;x<4;x++){const b=ce(a[x]-f),l=ce(a[x+1]-f);if(b===0||l===0)throw`err419: bad reference point for bisecor ${t.cx} ${t.cy}`;b<0&&l>0&&(c=x)}const m=nt((o+u)/2)+c*Math.PI/2;return new Se(r.cx,r.cy,m)}lineParallelDistance(n,t,r){const s=Z(this.cx,this.cy),i=s.translatePolar(this.ca+Math.PI/2,n),o=s.translatePolar(this.ca-Math.PI/2,n);let u=o,a=t;return te(this.distanceToPoint(a))===0&&(a=r),a.distanceToPoint(i)<a.distanceToPoint(o)&&(u=i),new Se(u.cx,u.cy,this.ca)}};function Wn(e,n,t){return new uc(e,n,t)}function ln(e,n){return Wn(0,0,0).setFromPoints(e,n)}function kr(e,n){if(e.isEqual(n))throw`err546: no bisector with two same points cx: ${e.cx} cy: ${e.cy}`;const t=e.middlePoint(n),r=nt(e.angleToPoint(n)+Math.PI/2);return Wn(t.cx,t.cy,r)}function cc(e,n,t){if(e.isEqual(n)||n.isEqual(t)||e.isEqual(t))throw`err833: no bisector with two same points cx: ${e.cx} cy: ${e.cy}`;const r=kr(e,n),s=kr(n,t);return r.intersection(s)}function He(e){let n=!1;return(e===0||e===1)&&(n=!0),n}function Qt(e){let n=!1;return(He(e)||e===6)&&(n=!0),n}function Bn(e){let n=!1;return(e===3||e===4||e===5)&&(n=!0),n}function mr(e){let n=!1;return(e===2||Bn(e))&&(n=!0),n}var et=class Xi{constructor(n,t,r,s,i=!1,o=!1){I(this,"sType");I(this,"px");I(this,"py");I(this,"radius");I(this,"arcLarge");I(this,"arcCcw");this.sType=n,this.px=t,this.py=r,this.radius=s,this.arcLarge=i,this.arcCcw=o}clone(){return new Xi(this.sType,this.px,this.py,this.radius,this.arcLarge,this.arcCcw)}},Ve=class{constructor(e,n,t,r,s,i,o,u=!1){I(this,"sType");I(this,"p1");I(this,"p2");I(this,"pc");I(this,"radius");I(this,"a1");I(this,"a2");I(this,"arcCcw");this.sType=e,this.p1=n,this.p2=t,this.pc=r,this.radius=s,this.a1=i,this.a2=o,this.arcCcw=u}},lc=class{constructor(){I(this,"debugPoints");I(this,"debugLines");I(this,"logMessage");this.debugPoints=[],this.debugLines=[],this.logMessage=""}addPoint(e){this.debugPoints.push(e)}getPoints(){return this.debugPoints}clearPoints(){this.debugPoints=[]}addLine(e){this.debugLines.push(e)}getLines(){return this.debugLines}clearLines(){this.debugLines=[]}addMsg(e){this.logMessage+=e}getMsg(){return this.logMessage}clearMsg(){this.logMessage=""}},At=new lc;function vt(e,n,t){if(t.sType!==1)throw`err202: arcSeg1To2 has unexpected type ${t.sType}`;const r=Z(e,n),s=Z(t.px,t.py),i=r.distanceToPoint(s)/2;if(r.isEqual(s))throw`err638: no equidistance because identical point ${r.cx} ${s.cy}`;let o=0;if(te(t.radius-i)===0)o=0;else{if(t.radius<i)throw`err399: radius ${t.radius} smaller than lp1p2h ${i}`;o=Gn(t.radius,i)}const u=r.middlePoint(s),a=r.angleToPoint(s)+Math.PI/2,f=u.translatePolar(a,o),c=u.translatePolar(a+Math.PI,o);let h=f;(!t.arcLarge&&!t.arcCcw||t.arcLarge&&t.arcCcw)&&(h=c);const m=h.angleToPoint(r),x=h.angleToPoint(s);return new Ve(1,r,s,h,t.radius,m,x,t.arcCcw)}function fc(e){let n=Ft(e.a2-e.a1);e.arcCcw||(n=2*Math.PI-n);let t=!1;return n>Math.PI&&(t=!0),new et(1,e.p2.cx,e.p2.cy,e.radius,t,e.arcCcw)}function dc(e,n,t){const r=e.p1,s=e.p2,i=t.p1,o=t.p2;if(!s.isEqual(i))throw`err309: makeCorner-prepare p2 and p2b differ px ${s.cx} ${i.cx} py ${s.cy} ${i.cy}`;let u=s.angleToPoint(r);if(e.sType===1){const l=e.arcCcw?1:-1;u=e.a2-l*Math.PI/2}let a=s.angleToPoint(o);if(t.sType===1){const l=t.arcCcw?1:-1;a=t.a1+l*Math.PI/2}const f=a-u;let h=ce(f)/2;if(te(h)===0){const l=jr*.01;if(e.sType===0&&t.sType===1)h=t.arcCcw?l:-l;else if(e.sType===1&&t.sType===0)h=e.arcCcw?l:-l;else if(e.sType===0&&t.sType===0)throw`err402: prepare aPeakHalf too closed to zero ${h}`}const m=u+h,x=s.translatePolar(m,n.radius);return{s1:e,s2:n,s3:t,ra:n.radius,p1:r,p2:s,p3:o,p4:e.pc,p5:t.pc,p6:x,at1:u,at3:a,abi:m,aph:h}}function Rn(e,n,t){if(n.sType!==1)throw`err510: modifRadius with wrong type ${n.sType}`;const r=e>0?1:-1,s=n.arcCcw?1:-1,i=te(e)===0?1:r*s,o=n.radius+i*t;if(o<=0)throw`err621: modifRadius with negative modified lenght ${o}`;return o}function Ur(e,n,t,r){const s=t.translatePolar(e,n),i=t.translatePolar(e+Math.PI,n),o=r.distanceToPoint(s),u=r.distanceToPoint(i);return o<u?s:i}function Zs(e,n,t,r,s){const i=e.translatePolar(n-t,r),o=e.translatePolar(n+t,r),u=s.distanceToPoint(i),a=s.distanceToPoint(o);return u<a?-1:1}function Hn(e,n){const t=n.clone(),r=e.p1.clone(),s=e.p2;if(e.sType!==0)throw`err103: newStrokeFirst unexpected sType ${e.sType}`;const i=ln(r,s).distanceToPoint(t);if(te(i)!==0)throw`err104: newStrokeFirst new point not aligned ${i} ${t.cx} ${t.cy}`;const o=r.angleToPoint(s),u=r.angleToPoint(t);if(te(ce(u-o))!==0)throw`err105: newStrokeFirst new point miss aligned ${o} ${u} ${t.cx} ${t.cy}`;const a=r.distanceToPoint(t),f=r.distanceToPoint(s);if(f<a)throw`err106: newStrokeFirst new point out of scope ${f} ${a} ${t.cx} ${t.cy}`;const c=Z(0,0);return new Ve(0,r,t,c,0,0,0,!1)}function Zn(e,n){const t=n.clone(),r=e.p2.clone(),s=e.p1;if(e.sType!==0)throw`err203: newStrokeSecond unexpected sType ${e.sType}`;const i=ln(r,s).distanceToPoint(t);if(te(i)!==0)throw`err204: newStrokeSecond new point not aligned ${i} ${t.cx} ${t.cy}`;const o=r.angleToPoint(s),u=r.angleToPoint(t);if(te(ce(u-o))!==0)throw`err205: newStrokeSecond new point miss aligned ${o} ${u} ${t.cx} ${t.cy}`;const a=r.distanceToPoint(t),f=r.distanceToPoint(s);if(f<a)throw`err206: newStrokeSecond new point out of scope ${f} ${a} ${t.cx} ${t.cy}`;const c=Z(0,0);return new Ve(0,t,r,c,0,0,0,!1)}function Yn(e,n){if(e.sType!==1)throw`err203: newArcFirst unexpected sType ${e.sType}`;const t=e.p1.clone(),r=e.pc.clone(),s=n.clone(),i=r.angleToPoint(s);if(!Hi(i,e.a1,e.a2,e.arcCcw))throw`err908: newArcFirst a48 out of scope ${i} ${e.a1} ${e.a2} ${e.arcCcw}`;return new Ve(1,t,s,r,e.radius,e.a1,i,e.arcCcw)}function Xn(e,n){if(e.sType!==1)throw`err204: newArcSecond unexpected sType ${e.sType}`;const t=e.p2.clone(),r=e.pc.clone(),s=n.clone(),i=r.angleToPoint(s);if(!Hi(i,e.a1,e.a2,e.arcCcw))throw`err907: newArcSecond a59 out of scope ${i} ${e.a1} ${e.a2} ${e.arcCcw}`;return new Ve(1,s,t,r,e.radius,i,e.a2,e.arcCcw)}function fn(e,n,t,r,s,i){const o=e.clone(),u=n.clone(),a=t.clone(),f=a.distanceToPoint(o),c=a.distanceToPoint(u);if(te(f-r)!==0||te(c-r)!==0)throw`err610: newRounded not on circle ${r} ${f} ${c}`;const h=a.angleToPoint(o),m=a.angleToPoint(u),x=ce(h-i+Math.PI),b=ce(m-i+Math.PI);Math.abs(b-x)>Math.PI+jr&&At.addMsg(`warn882: newRounded a873 or a972 larger than PI/2 ${st(x)} ${st(b)} at ${st(a.cx)} ${st(a.cy)}
16
- `);const l=!(s>0);return new Ve(1,o,u,a,r,h,m,l)}function pc(e){const n=Math.abs(e.ra/Math.sin(e.aph)),t=n*Math.cos(e.aph),r=e.p2.translatePolar(e.abi,n),s=e.p2.translatePolar(e.at1,t),i=e.p2.translatePolar(e.at3,t),o=[];return o.push(Hn(e.s1,s)),o.push(fn(s,i,r,e.ra,e.aph,e.abi)),o.push(Zn(e.s3,i)),o}function hc(e){const t=ln(e.p1,e.p2).lineParallelDistance(e.ra,e.p6,e.p5),r=t.projectPoint(e.p5),s=r.distanceToPoint(e.p5),i=Rn(e.aph,e.s3,e.ra),o=Gn(i,s),u=Ur(t.ca,o,r,e.p6),a=e.p5.angleToPoint(u),f=e.p5.translatePolar(a,e.s3.radius),c=e.p2.angleFromToPoints(e.p1,u),m=Math.abs(e.ra/Math.sin(c))*Math.cos(c),x=e.p2.angleToPoint(e.p1),b=e.p2.translatePolar(x,m),l=[];return l.push(Hn(e.s1,b)),l.push(fn(b,f,u,e.ra,e.aph,e.abi)),l.push(Xn(e.s3,f)),l}function mc(e){const t=ln(e.p3,e.p2).lineParallelDistance(e.ra,e.p6,e.p4),r=t.projectPoint(e.p4),s=r.distanceToPoint(e.p4),i=Rn(e.aph,e.s1,e.ra),o=Gn(i,s),u=Ur(t.ca,o,r,e.p6),a=e.p4.angleToPoint(u),f=e.p4.translatePolar(a,e.s1.radius),c=e.p2.angleFromToPoints(e.p3,u),m=Math.abs(e.ra/Math.sin(c))*Math.cos(c),x=e.p2.angleToPoint(e.p3),b=e.p2.translatePolar(x,m),l=[];return l.push(Yn(e.s1,f)),l.push(fn(f,b,u,e.ra,e.aph,e.abi)),l.push(Zn(e.s3,b)),l}function xc(e){const n=Rn(e.aph,e.s1,e.ra),t=Rn(e.aph,e.s3,e.ra),r=e.p4.distanceToPoint(e.p5),s=e.p4.angleToPoint(e.p5),i=Ws(r,n,t),o=Zs(e.p4,s,i,n,e.p6),u=s+o*i,a=e.p4.translatePolar(u,n),f=e.p4.translatePolar(u,e.s1.radius),c=Math.PI+s,h=Ws(r,t,n),m=Zs(e.p5,c,h,t,e.p6),x=c+m*h,b=e.p5.translatePolar(x,t);if(!b.isEqual(a))throw`err909: roundArcArc p7 anf p7b differ ${a.cx} ${b.cx} ${a.cy} ${b.cy} 0`;const l=e.p5.translatePolar(x,e.s3.radius),d=[];return d.push(Yn(e.s1,f)),d.push(fn(f,l,a,e.ra,e.aph,e.abi)),d.push(Xn(e.s3,l)),d}function Ki(e){const n=e.abi-2*e.aph,t=e.abi+2*e.aph;let r=e.p6.translatePolar(n,e.ra),s=e.p6.translatePolar(t,e.ra);if(e.s1.sType===1){const a=e.p4.angleFromToPoints(e.p2,e.p6),c=e.p4.angleToPoint(e.p2)+2*a;r=e.p4.translatePolar(c,e.s1.radius)}if(e.s3.sType===1){const a=e.p5.angleFromToPoints(e.p2,e.p6),c=e.p5.angleToPoint(e.p2)+2*a;s=e.p5.translatePolar(c,e.s3.radius)}const i=!(e.aph>0),o=new Ve(1,r,s,e.p6,e.ra,n,t,i),u=[];return e.s1.sType===0?u.push(Hn(e.s1,r)):e.s1.sType===1&&u.push(Yn(e.s1,r)),u.push(o),e.s3.sType===0?u.push(Zn(e.s3,s)):e.s3.sType===1&&u.push(Xn(e.s3,s)),u}function Ys(e,n,t,r){let s=t,i=t;const o=r.p6.angleFromToPoints(r.p2,t);if(Math.abs(o)>Math.PI/2){i=r.p6.translatePolar(r.abi+e*Math.PI/2,r.ra);const u=Wn(i.cx,i.cy,r.abi);if(n.sType===0)s=ln(n.p1,n.p2).intersection(u);else if(n.sType===1){const a=u.projectPoint(n.pc),f=a.distanceToPoint(n.pc);if(f<n.radius){const c=Gn(n.radius,f);s=Ur(r.abi,c,a,t)}else At.addMsg(`warn222: wideAccess not possible on arc ${st(n.radius)} ${st(f)} at ${st(t.cx)} ${st(t.cy)}
17
- `),s=t,i=t}}return[s,i]}function Dc(e){const n=Ki(e),t=n[1].arcCcw?1:-1,[r,s]=Ys(t,e.s1,n[1].p1,e),[i,o]=Ys(-t,e.s3,n[1].p2,e),u=[];if(r.isEqual(s))u.push(n[0]);else{e.s1.sType===0?u.push(Hn(e.s1,r)):e.s1.sType===1&&u.push(Yn(e.s1,r));const a=Z(0,0),f=new Ve(0,r,s,a,0,0,0,!1);u.push(f)}if(u.push(fn(s,o,e.p6,e.ra,e.aph,e.abi)),i.isEqual(o))u.push(n[2]);else{const a=Z(0,0),f=new Ve(0,o,i,a,0,0,0,!1);u.push(f),e.s3.sType===0?u.push(Zn(e.s3,i)):e.s3.sType===1&&u.push(Xn(e.s3,i))}return u}function Xs(e,n,t){const r=dc(e,n,t),s=[];if(n.sType===3)if(e.sType===0&&t.sType===0)s.push(...pc(r));else if(e.sType===0&&t.sType===1)s.push(...hc(r));else if(e.sType===1&&t.sType===0)s.push(...mc(r));else if(e.sType===1&&t.sType===1)s.push(...xc(r));else throw`err123: makeCorner unexpected s1s3.sType ${e.sType} ${t.sType}`;else if(n.sType===4)s.push(...Ki(r));else if(n.sType===5)s.push(...Dc(r));else throw`err723: makeCorner unexpected s2.sType ${n.sType}`;return s}function tt(e){return e.toFixed(4)}function gc(e,n,t,r=""){let s=r;return s===""&&(s="black"),`<circle cx="${tt(e)}" cy="${tt(n)}" r="${tt(t)}" stroke="${s}" stroke-width="1" fill="none" />`}var wc=class{constructor(){I(this,"pathD");this.pathD=""}addStart(e,n){this.pathD=`M ${tt(e)} ${tt(n)}`}addStroke(e,n){this.pathD+=` L ${tt(e)} ${tt(n)}`}addArc(e,n,t,r,s){const i=tt(t),o=r?1:0,u=s?1:0;this.pathD+=` A ${i} ${i} 0 ${o} ${u} ${tt(e)} ${tt(n)}`}stringify(e=""){let n=e;return n===""&&(n="black"),`<path d="${this.pathD} Z" stroke="${n}" stroke-width="1" fill="none" />`}};function yc(){return new wc}var bc=class{constructor(){I(this,"svgStr");I(this,"payloadStr");I(this,"groupActive");this.payloadStr="",this.svgStr="",this.groupActive=!1}addHeader(e,n,t,r){const s=`${e} ${t} ${n} ${r}`;this.svgStr=`<svg width="${n}" height="${r}" viewBox="${s}" xmlns="http://www.w3.org/2000/svg">`}addSvgString(e){this.payloadStr+=e}addGroup(e){if(this.groupActive)throw"err321: group must be closed before opening a new one";this.groupActive=!0,this.payloadStr+=`<g id="${e}">`}closeGroup(){if(!this.groupActive)throw"err331: group is not active so can not be closed";this.groupActive=!1,this.payloadStr+="</g>"}closeSvg(){if(this.svgStr==="")throw"err301: no header set for the svg";if(this.groupActive)throw"err311: group is not closed";this.svgStr+=this.payloadStr,this.svgStr+="</svg>"}stringify(){return this.closeSvg(),this.svgStr}};function _c(){return new bc}function je(e){return e.toFixed(4)}var qr=class{constructor(e,n,t,r,s,i,o,u){I(this,"arc");I(this,"p1x");I(this,"p1y");I(this,"radius");I(this,"a1");I(this,"a2");I(this,"p2x");I(this,"p2y");this.arc=e,this.p1x=n,this.p1y=t,this.radius=r,this.a1=s,this.a2=i,this.p2x=o,this.p2y=u}};function Ac(e,n,t,r){return new qr(!1,e,n,0,0,0,t,r)}function vc(e,n,t,r,s,i){const o=i?r:s,u=i?s:r,a=_t(Ft(o)),f=_t(Ft(u));return new qr(!0,e,n,t,a,f,0,0)}function Cc(e,n,t){return new qr(!1,e,n,t,0,0,0,0)}var Ec=class{constructor(){I(this,"dxfStr");this.dxfStr=`0
18
- SECTION
19
- 2
20
- ENTITIES
21
- `}addCircle(e,n,t){this.dxfStr+=`0
22
- CIRCLE
23
- 8
24
- PARAMETRIX
25
- `,this.dxfStr+=`10
26
- ${je(e)}
27
- 20
28
- ${je(n)}
29
- 40
30
- ${je(t)}
31
- `}addLine(e,n,t,r){this.dxfStr+=`0
32
- LINE
33
- 8
34
- PARAMETRIX
35
- `,this.dxfStr+=`10
36
- ${je(e)}
37
- 20
38
- ${je(n)}
39
- 11
40
- ${je(t)}
41
- 21
42
- ${je(r)}
43
- `}addArc(e,n,t,r,s){this.dxfStr+=`0
44
- ARC
45
- 8
46
- PARAMETRIX
47
- `,this.dxfStr+=`10
48
- ${je(e)}
49
- 20
50
- ${je(n)}
51
- 40
52
- ${je(t)}
53
- 50
54
- ${je(r)}
55
- 51
56
- ${je(s)}
57
- `}close(){this.dxfStr+=`0
58
- ENDSEC
59
- 0
60
- EOF
61
- `}stringify(){return this.close(),this.dxfStr}};function Fc(){return new Ec}function Sc(e,n,t){return{circle:!0,cx:e,cy:n,radius:t}}var kc=class{constructor(){I(this,"seg");this.seg=[]}addStart(e,n){this.seg=[];const t={typ:0,px:e,py:n};this.seg.push(t)}addStroke(e,n){const t={typ:1,px:e,py:n};this.seg.push(t)}addArc(e,n,t,r,s){const i={typ:2,px:e,py:n,radius:t,large:r,ccw:s};this.seg.push(i)}toJson(){return{circle:!1,seg:this.seg}}};function Tc(){return new kc}var zi=class{},Bc=class Mt extends zi{constructor(t,r,s=""){super();I(this,"circle",!1);I(this,"segments");I(this,"points");I(this,"debugPoints");I(this,"debugLines");I(this,"lastPoint");I(this,"imposedColor");this.segments=[new et(6,t,r,0)],this.points=[],this.debugPoints=[],this.debugLines=[],this.lastPoint=Z(t,r),this.imposedColor=s}setLastPoint(t,r){this.lastPoint=Z(t,r)}getLastPoint(){return this.lastPoint}getFirstPoint(){return Z(this.segments[0].px,this.segments[0].py)}addPointA(t,r){if(this.points.length>2)throw`err311: contour add too much point ${t} ${r}`;return this.points.push(Z(t,r)),this}addPointAP(t,r){const s=Z(0,0).translatePolar(t,r);return this.addPointA(s.cx,s.cy),this}addPointR(t,r){const i=this.getLastPoint().translate(t,r);return this.addPointA(i.cx,i.cy),this}addPointRP(t,r){const i=this.getLastPoint().translatePolar(t,r);return this.addPointA(i.cx,i.cy),this}addSeg(t){return this.segments.push(t),this}addSegStroke(){if(this.points.length!==1)throw`err554: contour addSegStroke with unexpected points.length ${this.points.length}`;const t=this.points.pop();if(t!==void 0){const r=new et(0,t.cx,t.cy,0);t.isEqual(this.getLastPoint())||(this.addSeg(r),this.setLastPoint(t.cx,t.cy))}else throw"err284: contour p1 is undefined";return this}addSegStrokeA(t,r){return this.addPointA(t,r).addSegStroke(),this}addSegStrokeAP(t,r){return this.addPointAP(t,r).addSegStroke(),this}addSegStrokeR(t,r){return this.addPointR(t,r).addSegStroke(),this}addSegStrokeRP(t,r){return this.addPointRP(t,r).addSegStroke(),this}addSegArc(t,r,s){if(this.points.length!==1)throw`err954: contour addSegArc with unexpected points.length ${this.points.length}`;const i=this.points.pop();if(i!==void 0){const o=new et(1,i.cx,i.cy,t,r,s);i.isEqual(this.getLastPoint())?console.log(`warn144: addSegArc last and new point identical ${st(i.cx)} ${st(i.cy)}`):(this.addSeg(o),this.setLastPoint(i.cx,i.cy))}else throw"err482: contour p1 is undefined";return this}addSegArc2(){if(this.points.length!==2)throw`err958: contour addSegArc2 with unexpected points.length ${this.points.length}`;const t=this.points.pop(),r=this.points.pop();if(r!==void 0&&t!==void 0){const s=this.getLastPoint(),i=cc(s,r,t),o=i.distanceToPoint(s),u=s.middlePoint(t),a=u.angleToPoint(s),f=u.angleToPoint(r),c=ce(f-a);let h=!1,m=!1;if(!u.isEqual(i)){const x=u.angleToPoint(i),b=ce(x-a);Math.sign(b)*Math.sign(c)>0&&(h=!0)}Math.sign(c)>0&&(m=!0),this.addPointA(t.cx,t.cy).addSegArc(o,h,m),this.debugPoints.push(r)}else throw"err488: contour p1 or p2 or seg is undefined";return this}addSegArc3(t,r){if(this.points.length!==1)throw`err914: contour addSegArc3 with unexpected points.length ${this.points.length}`;const s=this.points.pop();if(s!==void 0){const i=this.getLastPoint(),o=kr(i,s);let u=s;r&&(u=i);const a=Wn(u.cx,u.cy,t+Math.PI/2),f=o.intersection(a),c=f.distanceToPoint(i),h=i.middlePoint(s),m=u.angleToPoint(h),x=ce(t-m);let b=!1;Math.abs(x)>Math.PI/2&&(b=!0);let l=!1;x<0&&(l=!0),r||(l=!l),this.addPointA(s.cx,s.cy).addSegArc(c,b,l),this.debugPoints.push(h),this.debugPoints.push(f)}else throw"err282: contour p1 is undefined";return this}addSeg2Arcs(t,r){if(this.points.length!==1)throw`err214: contour addSeg2Arcs with unexpected points.length ${this.points.length}`;const s=this.points.pop();if(s!==void 0){const i=this.getLastPoint(),o=i.distanceToPoint(s),u=i.angleToPoint(s),a=s.angleToPoint(i),f=ce(t-u),c=-1*ce(r-a);if(Math.abs(f)>=Math.PI/2)throw`err545: addSeg2Arcs with too large au ${f}`;if(Math.abs(c)>=Math.PI/2)throw`err546: addSeg2Arcs with too large av ${c}`;if(te(f)===0)throw`err765: addSeg2Arcs with almost zero au ${f}`;if(te(c)===0)throw`err766: addSeg2Arcs with almost zero av ${c}`;if(Math.sign(f)*Math.sign(c)<1)throw`err767: addSeg2Arcs with au/av bad orientation ${f} ${c}`;const h=Math.tan(f/2),m=Math.tan(c/2),x=o*m/(m+h),b=Math.abs(x/Math.sin(f)),l=x/Math.cos(f/2),d=o*h/(m+h),p=Math.abs(d/Math.sin(c)),D=i.translatePolar(u+f/2,l);let g=!1;Math.sign(f)<0&&(g=!0),this.addPointA(D.cx,D.cy).addSegArc(b,!1,g),this.addPointA(s.cx,s.cy).addSegArc(p,!1,g),this.debugPoints.push(i.translatePolar(u,x)),this.debugPoints.push(i.translatePolar(u+f-Math.sign(f)*Math.PI/2,b)),this.debugPoints.push(s.translatePolar(a-c+Math.sign(f)*Math.PI/2,p))}else throw"err182: contour p1 is undefined";return this}addCornerPointed(){const t=new et(2,0,0,0);return this.addSeg(t),this}addCornerRounded(t){const r=new et(3,0,0,t);return this.addSeg(r),this}addCornerWidened(t){const r=new et(4,0,0,t);return this.addSeg(r),this}addCornerWideAcc(t){const r=new et(5,0,0,t);return this.addSeg(r),this}closeSegStroke(){const t=this.segments[0].px,r=this.segments[0].py;return this.addSegStrokeA(t,r),this}closeSegArc(t,r,s){const i=this.segments[0].px,o=this.segments[0].py;return this.addPointA(i,o).addSegArc(t,r,s),this}clone(){const t=new Mt(this.segments[0].px,this.segments[0].py);for(const r of this.segments){const s=r.clone();s.sType!==6&&(t.addSeg(s),He(s.sType)&&t.setLastPoint(s.px,s.py))}return t}translate(t,r){const s=this.segments[0].px+t,i=this.segments[0].py+r,o=new Mt(s,i);for(const u of this.segments){const a=u.clone();He(u.sType)&&(a.px+=t,a.py+=r),a.sType!==6&&(o.addSeg(a),He(a.sType)&&o.setLastPoint(a.px,a.py))}return o}translatePolar(t,r){return this.translate(r*Math.cos(t),r*Math.sin(t))}rotate(t,r,s){const i=Z(t,r),u=Z(this.segments[0].px,this.segments[0].py).rotate(i,s),a=new Mt(u.cx,u.cy);for(const f of this.segments){const c=f.clone();if(He(f.sType)){const m=Z(c.px,c.py).rotate(i,s);c.px=m.cx,c.py=m.cy}c.sType!==6&&(a.addSeg(c),He(c.sType)&&a.setLastPoint(c.px,c.py))}return a}scale(t,r,s,i=!1){const o=Z(t,r),a=Z(this.segments[0].px,this.segments[0].py).scale(o,s),f=new Mt(a.cx,a.cy);for(const c of this.segments){const h=c.clone();if(He(c.sType)){const x=Z(h.px,h.py).scale(o,s);h.px=x.cx,h.py=x.cy}c.sType===1&&(h.radius*=s),Bn(c.sType)&&i&&(h.radius*=s),h.sType!==6&&(f.addSeg(h),He(h.sType)&&f.setLastPoint(h.px,h.py))}return f}addPartial(t){if(this.points.length>0)throw`err911: addPartial, points should be used ${this.points.length}`;let r=t;if(t.segments.length>0){const s=t.segments[0],i=this.getLastPoint(),o=s.px-i.cx,u=s.py-i.cy;s.sType===6&&(r=t.translate(-o,-u))}for(const s of r.segments)s.sType!==6&&(this.addSeg(s),He(s.sType)&&this.setLastPoint(s.px,s.py));return this}draw(t,r,s=de.contour){const i=this.imposedColor===""?s:this.imposedColor;let o=0,u=0;for(const a of this.segments){if(a.sType===0){const[f,c]=Lt(o,u,r),[h,m]=Lt(a.px,a.py,r);t.beginPath(),t.moveTo(f,c),t.lineTo(h,m),t.strokeStyle=i,t.stroke()}if(a.sType===1)try{const f=vt(o,u,a),[c,h]=Lt(f.pc.cx,f.pc.cy,r),m=Zi(a.radius,r);t.beginPath(),t.arc(c,h,m,-f.a1,-f.a2,a.arcCcw),t.strokeStyle=i,t.stroke()}catch(f){console.log("err413: "+f)}Qt(a.sType)&&(o=a.px,u=a.py)}}extractSkeleton(){const t=this.segments[0],r=new Mt(t.px,t.py);for(const s of this.segments)He(s.sType)&&r.addSeg(s);return r}generateContour(){At.clearPoints(),At.clearLines();const t=[],r=[];let s=0,i=0,o=0;for(const c of this.segments){if(c.sType===0){const x=Z(i,o),b=Z(c.px,c.py),l=Z(0,0);t.push(new Ve(c.sType,x,b,l,0,0,0,!1)),s=1}if(c.sType===1){const x=vt(i,o,c);t.push(x),s=1}const h=t.at(-1),m=t.at(-2);if(h!==void 0&&m!==void 0&&He(h.sType)&&mr(m.sType)){const x=t.pop(),b=t.pop(),l=t.pop();if(l!==void 0&&b!==void 0&&x!==void 0){const d=Xs(l,b,x);t.push(...d)}else throw"err603: contour generateContour internal error"}if(mr(c.sType)){if(s===2)throw`err419: generateContour with two consecutive corners ${c.sType}`;if(s===0&&Bn(c.sType)&&c.radius>0){const x=Z(0,0);r.push(new Ve(c.sType,x,x,x,c.radius,0,0,!1))}if(s===1&&Bn(c.sType)&&c.radius>0){const x=Z(0,0);t.push(new Ve(c.sType,x,x,x,c.radius,0,0,!1))}s=2}Qt(c.sType)&&(i=c.px,o=c.py)}if(r.length>0)if(s===1)t.push(...r);else throw"err397: contour generateContour Corners defined at end and begining";const u=t.at(-1);if(u!==void 0&&mr(u.sType)){const c=t[0],h=t.pop(),m=t.pop();if(m!==void 0&&h!==void 0&&c!==void 0){const x=Xs(m,h,c);t.push(...x.slice(0,-1));const b=x.at(-1);if(b!==void 0)t[0]=b;else throw"err606: contour generateContour internal error"}else throw"err602: contour generateContour internal error"}const a=t[0],f=new Mt(a.p1.cx,a.p1.cy,this.imposedColor);f.debugPoints.push(...At.getPoints()),f.debugLines.push(...At.getLines());for(const c of t)if(c.sType===0)f.addSegStrokeA(c.p2.cx,c.p2.cy);else if(c.sType===1){const h=fc(c);f.addPointA(c.p2.cx,c.p2.cy).addSegArc(h.radius,h.arcLarge,h.arcCcw)}else throw`err986: contour generateContour unexpected in seg2 Enum ${c.sType}`;return f}generatePoints(){const t=[];t.push(...this.debugPoints);const r=this.segments[0];t.push(Z(r.px,r.py));let s=0,i=0;for(const o of this.segments){if(o.sType===1)try{const u=vt(s,i,o),a=Z(u.pc.cx,u.pc.cy),f=ce((u.a2-u.a1)/2);let c=u.a1+f;(Math.sign(f)>0&&!o.arcCcw||Math.sign(f)<0&&o.arcCcw)&&(c+=Math.PI);const h=a.translatePolar(c,o.radius);t.push(h)}catch(u){console.log("err453: "+u)}Qt(o.sType)&&(s=o.px,i=o.py,t.push(Z(s,i)))}return t}generateLines(){const t=[];return t.push(...this.debugLines),t}checkContour(t){if(t.segments[0].sType!==6)throw`err412: contour check first seg is not eStart ${t.segments[0].sType}`;let r=0,s=0;for(const u of t.segments){if(u.sType===1)try{vt(r,s,u)}catch(a){throw`err778: ${a}`}Qt(u.sType)&&(r=u.px,s=u.py)}const i=t.segments[0].px,o=t.segments[0].py;if(te(r-i)!==0||te(s-o)!==0)throw`err414: contour check, contour is not closed px ${i} ${r} py ${i} ${o}`}check(){At.clearMsg(),this.checkContour(this);const t=this.generateContour();return this.checkContour(t),At.getMsg()}toSvg(t,r=""){const s=yc();for(const o of this.segments)o.sType===6?s.addStart(o.px,t-o.py):o.sType===0?s.addStroke(o.px,t-o.py):o.sType===1?s.addArc(o.px,t-o.py,o.radius,o.arcLarge,!o.arcCcw):console.log(`err631: contour.toSvg has unknown segment type ${o.sType}`);return s.stringify(r)}toDxfSeg(){const t=[];let r=0,s=0;for(const i of this.segments){if(i.sType===0)t.push(Ac(r,s,i.px,i.py));else if(i.sType===1)try{const o=vt(r,s,i);t.push(vc(o.pc.cx,o.pc.cy,i.radius,o.a1,o.a2,o.arcCcw))}catch(o){console.log("err413: "+o)}Qt(i.sType)&&(r=i.px,s=i.py)}return t}toPax(){const t=Tc();for(const s of this.segments)s.sType===6?t.addStart(s.px,s.py):s.sType===0?t.addStroke(s.px,s.py):s.sType===1?t.addArc(s.px,s.py,s.radius,s.arcLarge,s.arcCcw):console.log(`err709: contour.toPax has unknown segment type ${s.sType}`);return t.toJson()}getPerimeter(){let t=0;const r=this.generateContour();let s=0,i=0;for(const o of r.segments)if(o.sType===6)s=o.px,i=o.py;else if(o.sType===0){const u=Math.sqrt((o.px-s)**2+(o.py-i)**2);s=o.px,i=o.py,t+=u}else if(o.sType===1){const u=vt(s,i,o),a=Ft(u.a2-u.a1),f=u.arcCcw?a:Ft(2*Math.PI-a),c=o.radius*f;s=o.px,i=o.py,t+=c}else console.log(`err760: contour.getPerimeter has unknown segment type ${o.sType}`);return t}},Pc=class qt extends zi{constructor(t,r,s,i=""){super();I(this,"circle",!0);I(this,"px");I(this,"py");I(this,"radius");I(this,"imposedColor");if(this.px=t,this.py=r,this.radius=s,this.imposedColor=i,s<0)throw`err432: iRadius ${s} is negative at circle ix ${t}, iy ${r}`}clone(){return new qt(this.px,this.py,this.radius,this.imposedColor)}translate(t,r){return new qt(this.px+t,this.py+r,this.radius,this.imposedColor)}translatePolar(t,r){return this.translate(r*Math.cos(t),r*Math.sin(t))}rotate(t,r,s){const i=Z(t,r),o=Z(this.px,this.py).rotate(i,s);return new qt(o.cx,o.cy,this.radius,this.imposedColor)}draw(t,r,s=de.contour){const[i,o]=Lt(this.px,this.py,r),u=Zi(this.radius,r),a=this.imposedColor===""?s:this.imposedColor;t.beginPath(),t.arc(i,o,u,0,2*Math.PI,!0),t.strokeStyle=a,t.stroke()}extractSkeleton(){return new qt(this.px,this.py,this.radius)}generateContour(){return new qt(this.px,this.py,this.radius,this.imposedColor)}generatePoints(){const t=[],r=Z(this.px,this.py);t.push(r);for(let s=0;s<4;s++){const i=r.translatePolar(s*Math.PI/2,this.radius);t.push(i)}return t}generateLines(){return[]}check(){return""}toSvg(t,r=""){return gc(this.px,t-this.py,this.radius,r)}toDxfSeg(){const t=[];return t.push(Cc(this.px,this.py,this.radius)),t}toPax(){return Sc(this.px,this.py,this.radius)}getPerimeter(){return 2*Math.PI*this.radius}};function Vr(e,n,t=""){return new Bc(e,n,t)}function T0(e,n,t,r=""){return new Pc(e,n,t,r)}var Mc=class Tr{constructor(){I(this,"pointList");I(this,"lineList");I(this,"vectorList");I(this,"mainList");I(this,"mainBList");I(this,"secondList");I(this,"secondBList");I(this,"dynamicsList");I(this,"xMin");I(this,"xMax");I(this,"yMin");I(this,"yMax");this.pointList=[],this.lineList=[],this.vectorList=[],this.mainList=[],this.mainBList=[],this.secondList=[],this.secondBList=[],this.dynamicsList=[],this.xMin=0,this.xMax=0,this.yMin=0,this.yMax=0}addPoint(n){this.pointList.push(n)}addPoints(n){this.pointList.push(...n)}addLine(n){this.lineList.push(n)}addLines(n){for(const t of n)this.lineList.push(t)}addVector(n){this.vectorList.push(n)}addMain(n){const t=n.generateContour();this.addPoints(t.generatePoints()),this.addLines(t.generateLines()),this.mainList.push(t),this.mainBList.push(n.extractSkeleton())}addSecond(n){const t=n.generateContour();this.addPoints(t.generatePoints()),this.addLines(t.generateLines()),this.secondList.push(t),this.secondBList.push(n.extractSkeleton())}addDynamics(n){this.addPoints(n.generatePoints()),this.addLines(n.generateLines()),this.dynamicsList.push(n)}translate(n,t){const r=new Tr;for(const s of this.pointList)r.addPoint(s.translate(n,t));for(const s of this.lineList)r.addLine(s.translate(n,t));for(const s of this.vectorList)r.addVector(s.translate(n,t));for(const s of this.mainList)r.addMain(s.translate(n,t));for(const s of this.secondList)r.addSecond(s.translate(n,t));for(const s of this.dynamicsList)r.addDynamics(s.translate(n,t));return r}translatePolar(n,t){return this.translate(t*Math.cos(n),t*Math.sin(n))}rotate(n,t,r){const s=new Tr,i=Z(n,t);for(const o of this.pointList)s.addPoint(o.rotate(i,r));for(const o of this.lineList)s.addLine(o.rotate(i,r));for(const o of this.vectorList)s.addVector(o.rotate(i,r));for(const o of this.mainList)s.addMain(o.rotate(n,t,r));for(const o of this.secondList)s.addSecond(o.rotate(n,t,r));for(const o of this.dynamicsList)s.addDynamics(o.rotate(n,t,r));return s}mergeFigure(n,t=!1){for(const r of n.pointList)this.addPoint(r.clone());for(const r of n.lineList)this.addLine(r.clone());for(const r of n.vectorList)this.addVector(r.clone());for(const r of n.mainList)t?this.addSecond(r.clone()):this.addMain(r.clone());for(const r of n.secondList)this.addSecond(r.clone());for(const r of n.dynamicsList)this.addDynamics(r.clone())}clear(){this.pointList=[],this.lineList=[],this.vectorList=[],this.mainList=[],this.mainBList=[],this.secondList=[],this.secondBList=[],this.dynamicsList=[]}getMinMax(){[this.xMin,this.xMax,this.yMin,this.yMax]=Yi(this.pointList)}getAdjustFull(n,t){let r=Fr();return this.pointList.length>0&&(this.getMinMax(),r=Sr(this.xMin,this.xMax,this.yMin,this.yMax,n,t)),r}getAdjustZoom(n,t){let r=Fr();if(this.pointList.length>0){this.getMinMax();const s=(this.xMin+this.xMax)/2,i=(this.yMin+this.yMax)/2;r=Sr(s,this.xMax,i,this.yMax,n,t)}return r}quantifyRuler(n,t){const s=n/10/t.scaleX;let i=1e-4;for(;i<s;)i*=10;i/5>s?i/=5:i/2>s&&(i/=2);const o=i*t.scaleX;return[i,o]}drawRuler(n,t,r){const[s,i]=this.quantifyRuler(n.canvas.width,t),o=n.canvas.width-10-i;n.font="15px Arial",n.fillStyle=r,n.fillText(`${s.toFixed(4)}`,o,20),n.beginPath(),n.moveTo(o,25),n.lineTo(o+i,25),n.lineTo(o+i,25+i),n.strokeStyle=r,n.stroke()}draw(n,t,r){if(r.points)for(const s of this.pointList)s.draw(n,t);if(r.lines)for(const s of this.lineList)s.draw(n,t);if(r.vectors)for(const s of this.vectorList)s.draw(n,t);if(r.main)for(const s of this.mainList)s.draw(n,t,de.main);if(r.mainB)for(const s of this.mainBList)s.draw(n,t,de.mainB);if(r.second)for(const s of this.secondList)s.draw(n,t,de.second);if(r.secondB)for(const s of this.secondBList)s.draw(n,t,de.secondB);if(r.dynamics)for(const s of this.dynamicsList)s.draw(n,t,de.dynamics);if(r.ruler&&this.drawRuler(n,t,de.ruler),r.refframe){for(const s of[10,100,200])Z(s,0).draw(n,t,de.reference,2),Z(-s,0).draw(n,t,de.reference,2),Z(0,s).draw(n,t,de.reference,2),Z(0,-s).draw(n,t,de.reference,2);Z(0,0).draw(n,t,de.origin,2)}}};function Ic(){return new Mc}function Br(e){const n=Ic();for(const t in e){const r=e[t];for(const s of r.pointList)n.pointList.push(s);for(const s of r.lineList)n.lineList.push(s);for(const s of r.vectorList)n.vectorList.push(s);for(const s of r.mainList)n.mainList.push(s);for(const s of r.mainBList)n.mainBList.push(s);for(const s of r.secondList)n.secondList.push(s);for(const s of r.secondBList)n.secondBList.push(s);for(const s of r.dynamicsList)n.dynamicsList.push(s)}return n}function B0(){return{points:!1,lines:!1,vectors:!1,main:!0,mainB:!1,second:!0,secondB:!1,dynamics:!1,ruler:!0,refframe:!1}}function P0(e){return{points:e.points,lines:e.lines,vectors:e.vectors,main:e.main,mainB:e.mainB,second:e.second,secondB:e.secondB,dynamics:e.dynamics,ruler:e.ruler,refframe:e.refframe}}var Lc=(e=>(e[e.eNumber=0]="eNumber",e[e.eCheckbox=1]="eCheckbox",e[e.eDropdown=2]="eDropdown",e[e.eSectionSeparator=3]="eSectionSeparator",e))(Lc||{}),Kn={partName:"",params:[],paramSvg:{},sim:{tMax:0,tStep:0,tUpdate:0}};function Nc(e,n,t){return{val:e,init:n,chg:t}}function $c(e){const n={};for(const t of Object.keys(e))n[t]=e[t].val;return n}var Rc=class{constructor(e,n=""){I(this,"paramVal",{});I(this,"paramInit",{});I(this,"paramChanged",{});I(this,"partName");I(this,"suffix");I(this,"paramNames");for(const t of e.params)this.paramVal[t.name]=t.init,this.paramInit[t.name]=t.init,this.paramChanged[t.name]=!1;this.suffix=n,this.partName=e.partName,this.paramNames=this.getParamName()}getParamName(){const e=[];for(const n of Object.keys(this.paramVal))e.push(n);return e}getPartName(){return this.partName}getPartNameSuffix(){return this.partName+this.suffix}getSuffix(){return this.suffix}getParamVal(){return this.paramVal}getVal(e){if(this.paramNames.includes(e))return this.paramVal[e];throw`err140: parameter ${e} does not exist in design ${this.partName}`}getInit(e){if(this.paramNames.includes(e))return this.paramInit[e];throw`err149: parameter ${e} does not exist in design ${this.partName}`}getChanged(e){if(this.paramNames.includes(e))return this.paramChanged[e];throw`err156: parameter ${e} does not exist in design ${this.partName}`}setVal(e,n){if(this.paramNames.includes(e))this.paramVal[e]=n,this.paramChanged[e]=!0;else throw`err163: parameter ${e} does not exist in design ${this.partName}`}applyParamVal(e){let n="";for(const t of Object.keys(e))this.setVal(t,e[t]);return n+=`info104: apply ${Object.keys(e).length} parameters on ${this.partName}
62
- `,n}applyParamList(e){return this.applyParamVal($c(e))}getDesignParamList(){const e={};for(const n of this.paramNames)e[n]=Nc(this.getVal(n),this.getInit(n),this.getChanged(n));return e}};function M0(e,n=""){return new Rc(e,n)}function I0(e,n,t,r=0,s=100,i=1){return{name:e,unit:n,init:t,min:r,max:s,step:i,dropdown:[],pType:0}}function L0(e,n){return{name:e,unit:"checkbox",init:n?1:0,min:0,max:1,step:1,dropdown:[],pType:1}}function N0(e,n){return{name:e,unit:"dropdown",init:0,min:0,max:n.length-1,step:1,dropdown:n,pType:2}}function $0(e){return{name:e,unit:"section-separator",init:0,min:0,max:0,step:0,dropdown:[],pType:3}}var Oc=(e=>(e[e.eLinearOrtho=0]="eLinearOrtho",e[e.eRotate=1]="eRotate",e))(Oc||{}),jc=(e=>(e[e.eIdentity=0]="eIdentity",e[e.eIntersection=1]="eIntersection",e[e.eUnion=2]="eUnion",e[e.eSubstraction=3]="eSubstraction",e))(jc||{});function R0(e){return{partName:e,calcErr:!0,logstr:"",fig:{},vol:{extrudes:[],volumes:[]},sub:{}}}function O0(e){if(e.calcErr){let n=`err182: Error in sub-design ${e.partName}
63
- `;throw n+=Uc(e.logstr,e.partName),n}}function Uc(e,n){let t="";for(const r of e.split(`
64
- `))r!==""&&(t+=`[${n}]: ${r}
65
- `);return t}var qc=class{figureToPaxF(e){const n=[];for(const t of e)n.push(t.toPax());return n}getFigures(e){const n={};for(const t in e){const r=this.figureToPaxF(e[t].mainList);n[t]=r}return n}getPaxJson(e,n,t){return{partName:n.partName,pDef:t,params:e,faces:this.getFigures(n.fig),volume:n.vol,subs:n.sub,log:n.logstr}}getPaxStr(e,n,t){const r=this.getPaxJson(e,n,t);return JSON.stringify(r,null,2)}};function dn(){return new qc}function Ji(e){let n=6;return e===1?n=0:e===2&&(n=1),n}function Qi(e,n,t,r){let s=Math.PI/2;n<2*t&&(s=2*Math.asin(n/(2*t)));const i=Math.min(e,s),o=Math.ceil(r/i),u=r/o;return[o,u]}function eo(e,n,t,r=Math.PI/6,s=2){const[i,o]=Qi(r,s,t,2*Math.PI),u=[];for(let c=0;c<i;c++){const h=e+t*Math.cos(c*o),m=n+t*Math.sin(c*o);u.push([h,m])}const a=u[0][0],f=u[0][1];return u.push([a,f]),u}function to(e,n,t,r,s,i,o=Math.PI/6,u=2){const a=Er(r,s,i),[f,c]=Qi(o,u,t,Math.abs(a)),h=i?c:-c,m=f+1,x=[];for(let b=1;b<m;b++){const l=r+b*h,d=e+t*Math.cos(l),p=n+t*Math.sin(l);x.push([d,p])}return x}var no=Math.PI/8,ro=20;function Ks(e,n){return[[e,n]]}function Vc(e,n,t,r,s,i){return to(e,n,t,r,s,i,no,ro)}function Gc(e,n,t){return eo(e,n,t,no,ro)}function Wc(e){const n=[];let t=0,r=0;for(const s of e){if(s.typ===0)n.push(...Ks(s.px,s.py));else if(s.typ===1)n.push(...Ks(s.px,s.py));else if(s.typ===2)try{const i=s,o=new et(Ji(i.typ),i.px,i.py,i.radius,i.large,i.ccw),u=vt(t,r,o);n.push(...Vc(u.pc.cx,u.pc.cy,o.radius,u.a1,u.a2,u.arcCcw))}catch(i){console.log("err730: "+i)}t=s.px,r=s.py}return n}function zs(e){return e.toFixed(4)}var Hc=class{constructor(){I(this,"pts");I(this,"ptIdx");I(this,"idx");this.pts=[],this.ptIdx=[],this.idx=0}addContour(e){const n=[],t=[];for(const i of e){const[o,u]=i;n.push(`[ ${zs(o)}, ${zs(u)} ]`),t.push(` ${this.idx}`),this.idx+=1}const r=`[ ${n.join(",")} ]`,s=`[ ${t.join(",")} ]`;this.pts.push(r),this.ptIdx.push(s)}getFigure(e){let n="";const t=[],r=[];for(const o of this.pts.keys()){const u=`ca_${e}_${o}`,a=`cb_${e}_${o}`;n+=`${u} = ${this.pts[o]};
66
- `,n+=`${a} = ${this.ptIdx[o]};
67
- `,t.push(u),r.push(a)}const s=t.join(", "),i=r.join(", ");return n+=`a_${e} = concat(${s});
68
- `,n+=`b_${e} = [${i}];
69
- `,n}},Zc=class{getHeader(){return`// Generated by Parametrix
70
- `}getOneFigure(e,n){const t=new Hc;for(const s of e)if(s.circle===!0){const i=s,o=Gc(i.cx,i.cy,i.radius);t.addContour(o)}else{const o=Wc(s.seg);t.addContour(o)}return t.getFigure(n)}getAllFigures(e,n){let t="";for(const r in e){const s=this.getOneFigure(e[r],`${n}_${r}`);t+=s}return t}getOneExtrude(e){let n="rotate_extrude",t="";return e.extrudeMethod===0&&(e.length===void 0&&console.log("err103: design error: scad-linear_extrude length undefined!"),n="linear_extrude",t=`height = ${e.length}`),`
71
- module ${e.outName} () {
72
- translate( [ ${e.translate[0]}, ${e.translate[1]}, ${e.translate[2]} ])
73
- rotate( [ ${_t(e.rotate[0])}, ${_t(e.rotate[1])}, ${_t(e.rotate[2])} ])
74
- ${n}(${t}) polygon(a_${e.face}, b_${e.face});
75
- }
76
- `}getAllExtrudes(e){let n="";for(const t of e){const r=this.getOneExtrude(t);n+=r}return n}getOneVolume(e){let n="identity";switch(e.boolMethod){case 1:n="intersection";break;case 2:n="union";break;case 3:n="difference";break}const t=[];for(const i of e.inList)t.push(`${i}();`);const r=t.join(`
77
- `);let s=`
78
- module ${e.outName} () {
79
- ${n} () {
80
- ${r}
81
- }
82
- }
83
- `;return e.boolMethod===0&&(s=`
84
- module ${e.outName} () {
85
- ${r}
86
- }
87
- `),s}getAllVolumes(e){let n="";for(const t of e){const r=this.getOneVolume(t);n+=r}return n}getAllSubGeoms(e){const n=[];for(const t of e)n.includes(t.subgeom)||n.push(t.subgeom);return n}getOneInherit(e){return`
88
- module ${e.outName} () {
89
- translate( [ ${e.translate[0]}, ${e.translate[1]}, ${e.translate[2]} ])
90
- rotate( [ ${_t(e.rotate[0])}, ${_t(e.rotate[1])}, ${_t(e.rotate[2])} ])
91
- ${e.subdesign}();
92
- }
93
- `}getAllInherits(e){let n="";for(const t of e){const r=this.getOneInherit(t);n+=r}return n}getVolume(e){let n="";if(e.inherits!==void 0){const t=this.getAllSubGeoms(e.inherits);for(const r of t){const s=dn().getPaxJson({},r,Kn);n+=this.getAllFigures(s.faces,s.partName),n+=this.getVolume(r.vol)}n+=this.getAllInherits(e.inherits)}return n+=this.getAllExtrudes(e.extrudes),n+=this.getAllVolumes(e.volumes),n}getFooter(e){return`
94
- pax_${e}();
95
- `}getExportFile(e){let n=this.getHeader();return n+=this.getAllFigures(e.faces,e.partName),n+=this.getVolume(e.volume),n+=this.getFooter(e.partName),n}};function Yc(){return new Zc}var so=Math.PI/8,io=20;function Js(e,n){return[[e,n]]}function Xc(e,n,t,r,s,i){return to(e,n,t,r,s,i,so,io)}function Kc(e){const n=[];let t=0,r=0;for(const s of e){if(s.typ===0)n.push(...Js(s.px,s.py));else if(s.typ===1)n.push(...Js(s.px,s.py));else if(s.typ===2)try{const i=s,o=new et(Ji(i.typ),i.px,i.py,i.radius,i.large,i.ccw),u=vt(t,r,o);n.push(...Xc(u.pc.cx,u.pc.cy,o.radius,u.a1,u.a2,u.arcCcw))}catch(i){console.log("err730: "+i)}t=s.px,r=s.py}return n}function zc(e,n,t){return eo(e,n,t,so,io)}function Qs(e){return e.toFixed(4)}var Jc=class{constructor(){I(this,"pts");this.pts=[]}addContour(e){const n=[];for(const r of e){const[s,i]=r;n.push(`[ ${Qs(s)}, ${Qs(i)} ]`)}const t=`[ ${n.join(",")} ]`;this.pts.push(t)}getFigure(e){let n="";const t=[];for(const r of this.pts.keys()){const s=`ctr_${e}_${r}`;n+=`const ${s} = polygon({ points: ${this.pts[r]} });
96
- `,t.push(s)}if(t.length===1)n+=`const face_${e} = ${t[0]};
97
- `;else if(t.length>1){const r=t.join(", ");n+=`const face_${e} = subtract( ${r} )
98
- `}return n}},Qc=class{getHeader(){return`// Generated by Parametrix
99
- const { polygon } = require('@jscad/modeling').primitives
100
- //const { subtract } = require('@jscad/modeling').booleans;
101
- const { union, intersect, scission, subtract } = require('@jscad/modeling').booleans
102
- const { extrudeLinear, extrudeRotate } = require('@jscad/modeling').extrusions;
103
- const { translate, rotate } = require('@jscad/modeling').transforms
104
- const main = () => {
105
- `}getOneFigure(e,n){const t=new Jc;for(const s of e)if(s.circle===!0){const i=s,o=zc(i.cx,i.cy,i.radius);t.addContour(o)}else{const o=Kc(s.seg);t.addContour(o)}return t.getFigure(n)}getAllFigures(e,n){let t="";for(const r in e){const s=this.getOneFigure(e[r],`${n}_${r}`);t+=s}return t}getOneExtrude(e){let n="extrudeRotate",t="{segments: 32}";return e.extrudeMethod===0&&(e.length===void 0&&console.log("err079: design error: extrudeLinear length undefined!"),n="extrudeLinear",t=`{height: ${e.length}}`),`
106
- const ${e.outName} =
107
- translate( [ ${e.translate[0]}, ${e.translate[1]}, ${e.translate[2]}, ],
108
- rotate( [ ${e.rotate[0]}, ${e.rotate[1]}, ${e.rotate[2]}, ],
109
- ${n}( ${t}, face_${e.face} )
110
- )
111
- );
112
- `}getAllExtrudes(e){let n="";for(const t of e){const r=this.getOneExtrude(t);n+=r}return n}getOneVolume(e){let n="identity";switch(e.boolMethod){case 1:n="intersect";break;case 2:n="union";break;case 3:n="subtract";break}const t=e.inList.join(", ");let r=`const ${e.outName} = ${n}( ${t} );
113
- `;return e.boolMethod===0&&(r=`const ${e.outName} = ${e.inList[0]};
114
- `),r}getAllVolumes(e){let n="";for(const t of e){const r=this.getOneVolume(t);n+=r}return n}getAllSubGeoms(e){const n=[];for(const t of e)n.includes(t.subgeom)||n.push(t.subgeom);return n}getOneInherit(e){return`
115
- const ${e.outName} =
116
- translate( [ ${e.translate[0]}, ${e.translate[1]}, ${e.translate[2]}, ],
117
- rotate( [ ${e.rotate[0]}, ${e.rotate[1]}, ${e.rotate[2]}, ],
118
- ${e.subdesign}
119
- )
120
- );
121
- `}getAllInherits(e){let n="";for(const t of e){const r=this.getOneInherit(t);n+=r}return n}getVolume(e){let n="";if(e.inherits!==void 0){const t=this.getAllSubGeoms(e.inherits);for(const r of t){const s=dn().getPaxJson({},r,Kn);n+=this.getAllFigures(s.faces,s.partName),n+=this.getVolume(r.vol)}n+=this.getAllInherits(e.inherits)}return n+=this.getAllExtrudes(e.extrudes),n+=this.getAllVolumes(e.volumes),n}getFooter(e){return`
122
- return pax_${e};
123
- }
124
- module.exports = { main };
125
- `}getExportFile(e){let n=this.getHeader();return n+=this.getAllFigures(e.faces,e.partName),n+=this.getVolume(e.volume),n+=this.getFooter(e.partName),n}};function e0(){return new Qc}var t0=class{constructor(){I(this,"xMin");I(this,"xMax");I(this,"yMin");I(this,"yMax");I(this,"firstDone");this.firstDone=!1,this.xMin=0,this.xMax=0,this.yMin=0,this.yMax=0}addAContour(e){if(e.length>0){const n=[];this.firstDone&&(n.push(Z(this.xMin,this.yMin)),n.push(Z(this.xMax,this.yMax)));for(const o of e)n.push(...o.generatePoints());const[t,r,s,i]=Yi(n);this.xMin=t,this.xMax=r,this.yMin=s,this.yMax=i}}getViewBox(){const e=Math.round((this.xMax-this.xMin)*1.1)+10,n=Math.round((this.yMax-this.yMin)*1.1)+10,t=Math.round(this.xMin-e*.05),r=Math.round(this.yMin-n*.05);return[t,e,r,n]}},n0=class{constructor(){I(this,"minMax");I(this,"groups");I(this,"svg");this.minMax=new t0,this.groups=[],this.svg=_c()}addAContour(e,n="",t=de.contour){this.minMax.addAContour(e);const r={gpName:n,gpColor:t,ctrs:e};this.groups.push(r)}makeSvg(e){for(const n of this.groups){n.gpName!==""&&this.svg.addGroup(n.gpName);for(const t of n.ctrs){let r=t.imposedColor;r===""&&(r=n.gpColor),this.svg.addSvgString(t.toSvg(e,r))}n.gpName!==""&&this.svg.closeGroup()}}stringify(){const[e,n,t,r]=this.minMax.getViewBox();return this.svg.addHeader(e,n,t,r),this.makeSvg(this.minMax.yMax+this.minMax.yMin),this.svg.stringify()}};function oo(){return new n0}function On(e){const n=oo();return n.addAContour(e),n.stringify()}function En(e){const n=oo();return n.addAContour(e.mainList,"main",de.main),n.addAContour(e.mainBList,"mainB",de.mainB),n.addAContour(e.secondList,"second",de.second),n.addAContour(e.secondBList,"secondB",de.secondB),n.addAContour(e.dynamicsList,"dynamics",de.dynamics),n.stringify()}function jn(e){const n=Fc();for(const r of e)if(r.circle){const s=r.toDxfSeg()[0];n.addCircle(s.p1x,s.p1y,s.radius)}else for(const s of r.toDxfSeg())s.arc?n.addArc(s.p1x,s.p1y,s.radius,s.a1,s.a2):n.addLine(s.p1x,s.p1y,s.p2x,s.p2y);return n.stringify()}function r0(e){let n="";return n+=e.logstr,n}function ao(e,n,t){return dn().getPaxStr(e,n,t)}function uo(e){const n=dn().getPaxJson({},e,Kn);return Yc().getExportFile(n)}function co(e){const n=dn().getPaxJson({},e,Kn);return e0().getExportFile(n)}async function s0(e,n,t,r,s){const i=new xu("application/zip"),o=new $u(i),u=n.partName,a=new Ee(JSON.stringify(e,null,2));await o.add(`param_${u}.json`,a);const f=new Ee(n.logstr);await o.add(`geom_${u}_log.txt`,f);const c=new Ee(r.logstr);await o.add(`geom_${u}_t${t}_log.txt`,c);for(const v in n.fig){const y=new Ee(On(n.fig[v].mainList));await o.add(`face_${u}_${v}.svg`,y);const w=new Ee(jn(n.fig[v].mainList));await o.add(`face_${u}_${v}.dxf`,w);const _=new Ee(En(n.fig[v]));await o.add(`deco_${u}_${v}.svg`,_);const A=new Ee(En(r.fig[v]));await o.add(`deco_${u}_${v}_t${t}.svg`,A)}const h=Br(n.fig),m=new Ee(On(h.mainList));await o.add(`face_${u}_all_merged.svg`,m);const x=new Ee(jn(h.mainList));await o.add(`face_${u}_all_merged.dxf`,x);const b=new Ee(En(h));await o.add(`deco_${u}_all_merged.svg`,b);const l=new Ee(En(h));await o.add(`deco_${u}_all_merged_t${t}.svg`,l);const d=new Ee(ao(e,n,s));await o.add(`${u}.pax.json`,d);const p=new Ee(uo(n));await o.add(`${u}_noarc_openscad.scad`,p);const D=new Ee(co(n));return await o.add(`${u}_noarc_jscad.js`,D),await o.close(),await i.getData()}var i0=(e=>(e[e.eSVG=0]="eSVG",e[e.eSVGALL=1]="eSVGALL",e[e.eDXF=2]="eDXF",e[e.eDXFALL=3]="eDXFALL",e[e.eTXTLOG=4]="eTXTLOG",e[e.ePAX=5]="ePAX",e[e.eOPENSCAD=6]="eOPENSCAD",e[e.eJSCAD=7]="eJSCAD",e[e.eZIP=8]="eZIP",e))(i0||{});function j0(e,n,t,r,s){const i=e(0,n);let o="";if(i.calcErr)console.log("err931: error by calling geome ${geome0.calcErr}");else{const u=Object.keys(i.fig);if(s===0)if(u.includes(r)){const a=i.fig[r];o=On(a.mainList)}else console.log(`err749: fileTextContent eFace ${r} invalid`);else if(s===1){const a=Br(i.fig);o=On(a.mainList)}else if(s===2)if(u.includes(r)){const a=i.fig[r];o=jn(a.mainList)}else console.log(`err759: fileTextContent eFace ${r} invalid`);else if(s===3){const a=Br(i.fig);o=jn(a.mainList)}else s===4?o=r0(i):s===5?o=ao(n,i,t):s===6?o=uo(i):s===7?o=co(i):console.log(`err912: unknown exportFormat ${s}`)}return o}async function U0(e,n,t,r,s){const i=e(0,t),o=e(n,t);let u=new Blob;return!i.calcErr&&!o.calcErr?s===8?u=await s0(t,i,n,o,r):console.log(`err913: unknown exportFormat ${s}`):console.log("err932: error by calling geome ${geome0.calcErr} ${geome1.calcErr}"),u}function q0(e){let n="";return e===0||e===1?n="image/svg+xml":e===2||e===3?n="application/dxf":e===4?n="text/plain":e===5?n="application/json":e===6||e===7?n="text/plain":e===8&&(n="application/zip"),n}function V0(e){let n="";return e===0||e===1?n=".svg":e===2||e===3?n=".dxf":e===4?n=".log":e===5?n=".pax.json":e===6?n="_noarc_openscad.scad":e===7?n="_noarc_jscad.js":e===8&&(n=".zip"),n}function G0(e){let n=!1;return e===8&&(n=!0),n}function W0(e,n,t,r){return JSON.stringify({lastModif:e,partName:n,pVal:t,comment:r},null," ")}function H0(e){const n=oc.parse(e),t="lastModif",r="partName",s="pVal",i="comment";let o="";const u={lastModif:"",partName:"",pVal:{},comment:""};if(Object.hasOwn(n,t)&&(u[t]=n[t]),Object.hasOwn(n,r)&&(u[r]=n[r]),Object.hasOwn(n,s)){const a=n[s];for(const f of Object.keys(a)){const c=a[f];if(isNaN(c))throw`err905: ${c} is not a number!`;u[s][f]=c}o+=`info398: parsing file has found ${Object.keys(u[s]).length} parameters
126
- `}else throw`err489: parameter-json-file has no key ${s}
127
- `;return Object.hasOwn(n,i)&&(u[i]=n[i]),[u,o]}function lo(){return[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]}function Wt(){return[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]}function o0(e){const n=Wt(),t=Math.cos(e),r=Math.sin(e);return n[1][1]=t,n[2][2]=t,n[2][1]=r,n[1][2]=-r,n}function a0(e){const n=Wt(),t=Math.cos(e),r=Math.sin(e);return n[0][0]=t,n[2][2]=t,n[0][2]=r,n[2][0]=-r,n}function u0(e){const n=Wt(),t=Math.cos(e),r=Math.sin(e);return n[0][0]=t,n[1][1]=t,n[0][1]=-r,n[1][0]=r,n}function c0(e,n){const t=lo();for(let r=0;r<4;r++)for(let s=0;s<4;s++){let i=0;for(let o=0;o<4;o++)i+=e[r][o]*n[o][s];t[r][s]=i}return t}function Pr(e){let n=Wt();for(const t of e)n=c0(t,n);return n}function l0(e,n,t){return Pr([o0(e),a0(n),u0(t)])}function f0(e,n,t){const r=Wt();return r[0][3]=e,r[1][3]=n,r[2][3]=t,r}function d0(e){const n=lo();for(let t=0;t<4;t++)for(let r=0;r<4;r++)n[t][r]=e[t][r];return n}function p0(e,n){const t=[n[0],n[1],n[2],1],r=[0,0,0];for(let s=0;s<3;s++){let i=0;for(let o=0;o<4;o++)i+=e[s][o]*t[o];r[s]=i}return r}function h0(e){return[e[0][3],e[1][3],e[2][3]]}function m0(e){let n=0,t=0,r=0;const s=e[2][0],i=10**-5;return Math.abs(s-1)<i?(r=0,t=-Math.PI/2,n=-r+Math.atan2(-e[0][1],-e[0][2])):Math.abs(s+1)<i?(r=0,t=Math.PI/2,n=r+Math.atan2(e[0][1],e[0][2])):(n=Math.atan2(e[2][1],e[2][2]),t=Math.atan2(-e[2][0],Math.sqrt(e[2][1]**2+e[2][2]**2)),r=Math.atan2(e[1][0],e[0][0])),[n,t,r]}var x0=class{constructor(e){I(this,"mmat");this.mmat=d0(e)}addRotation(e,n,t){const r=l0(e,n,t);this.mmat=Pr([this.mmat,r])}addTranslation(e,n,t){const r=f0(e,n,t);this.mmat=Pr([this.mmat,r])}getMatrix(){return this.mmat}getRotation(){return m0(this.mmat)}getTranslation(){return h0(this.mmat)}transform(e){return p0(this.mmat,e)}},D0=Wt();function Z0(e=D0){return new x0(e)}function g0(e,n,t,r,s=0){return Vr(e,n).addCornerRounded(s).addSegStrokeR(t,0).addCornerRounded(s).addSegStrokeR(0,r).addCornerRounded(s).addSegStrokeR(-t,0).addCornerRounded(s).closeSegStroke()}function w0(e,n,t,r,s,i=0){return g0(e,n,t,r,i).rotate(e,n,s)}function Y0(e,n,t,r,s,i=0){const o=r/2*Math.sin(s),u=-r/2*Math.cos(s);return w0(e+o,n+u,t,r,s,i)}function X0(e,n,t,r,s,i=0){const o=(r-t)/2;return Vr(e,n).addCornerRounded(i).addSegStrokeR(t,0).addCornerRounded(i).addSegStrokeR(o,s).addCornerRounded(i).addSegStrokeR(-r,0).addCornerRounded(i).closeSegStroke()}function K0(e,n,t,r,s){if(r<t)throw`err821: Hlength ${r} is too small compare to Vwidth ${t}`;const i=t/2,o=r-t;return Vr(i+o,-i).addPointA(i+o,i).addSegArc(i,!1,!0).addSegStrokeA(i,i).addPointA(i,-i).addSegArc(i,!1,!0).closeSegStroke().rotate(0,0,s).translate(e,n)}function z0(e){const n=[];n.push("version details:"),n.push(`${e.name} : ${e.version}`),n.push("dependencies:");const t=Object.keys(e.dependencies);for(const[r,s]of t.entries()){const i=s;n.push(`${r+1} : ${s} : ${e.dependencies[i]}`)}return n}export{Ft as A,ce as B,z0 as C,B0 as D,Oc as E,Br as F,P0 as G,W0 as H,Fr as I,H0 as J,E0 as K,A0 as L,v0 as M,C0 as N,de as O,Lc as P,F0 as Q,$c as R,ac as S,i0 as T,U0 as U,j0 as V,V0 as W,G0 as X,q0 as Y,$0 as a,L0 as b,N0 as c,_0 as d,b0 as e,st as f,Vr as g,jc as h,R0 as i,M0 as j,O0 as k,Uc as l,T0 as m,Z as n,K0 as o,I0 as p,X0 as q,_t as r,Y0 as s,Z0 as t,g0 as u,w0 as v,Ic as w,te as x,k0 as y,S0 as z};