@arcgis/charts-components 5.2.0-next.109 → 5.2.0-next.110

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 (104) hide show
  1. package/dist/cdn/{ORVZWKA2.js → 2IWBCO6Z.js} +1 -1
  2. package/dist/cdn/{RPISOLCN.js → 3LVNK4EI.js} +1 -1
  3. package/dist/cdn/{FDA4CBO2.js → 3XY3OEMH.js} +1 -1
  4. package/dist/cdn/{3QFLCKDU.js → 3Z2C6NLH.js} +1 -1
  5. package/dist/cdn/{T5BVDE2S.js → 4DGRKLXO.js} +1 -1
  6. package/dist/cdn/{VOMAGIMB.js → 4G3OQ5FC.js} +1 -1
  7. package/dist/cdn/{JNGHRSU6.js → 4L4ZZUIW.js} +1 -1
  8. package/dist/cdn/{YHKUB4KO.js → 5AMXSBVD.js} +1 -1
  9. package/dist/cdn/{FNYGAGZP.js → 5HR252CM.js} +1 -1
  10. package/dist/cdn/{35CI5TO3.js → 5L2GOXND.js} +1 -1
  11. package/dist/cdn/{3NS6DXYP.js → 62M4DHW3.js} +1 -1
  12. package/dist/cdn/{MKLVRKKT.js → 66O67DDO.js} +1 -1
  13. package/dist/cdn/{ODZZ6IDF.js → 6KYYHQBS.js} +1 -1
  14. package/dist/cdn/{CPJ5QZVV.js → 7PAQCBZ7.js} +1 -1
  15. package/dist/cdn/{NLZVDWIX.js → 7RRUD4HM.js} +1 -1
  16. package/dist/cdn/{74BF6TFJ.js → AJDNZRJP.js} +1 -1
  17. package/dist/cdn/{2ATSQ4BK.js → AK34H2Z4.js} +1 -1
  18. package/dist/cdn/{IW2CVDZH.js → AYS37I6F.js} +1 -1
  19. package/dist/cdn/{S334WXA4.js → BGA3UX4U.js} +1 -1
  20. package/dist/cdn/{WYJPHPBV.js → BPYN2X7Q.js} +1 -1
  21. package/dist/cdn/{XS7S622U.js → C4OPIUNW.js} +1 -1
  22. package/dist/cdn/{S7D2TMBC.js → C7IT74BS.js} +1 -1
  23. package/dist/cdn/{DK7J3XAC.js → CHCM5ZNC.js} +1 -1
  24. package/dist/cdn/{K7QEIYH2.js → CKRMPTUO.js} +1 -1
  25. package/dist/cdn/{EOVSDZZR.js → D4EPE7SG.js} +1 -1
  26. package/dist/cdn/{OOMLQFRO.js → DGE5LAEC.js} +1 -1
  27. package/dist/cdn/{DZSVWM55.js → DMTY4NTC.js} +1 -1
  28. package/dist/cdn/{ILV3GIXF.js → EJCQJK4X.js} +1 -1
  29. package/dist/cdn/{FK3H5VZ5.js → EQLEA5AG.js} +1 -1
  30. package/dist/cdn/{JHZKHOF4.js → EQNW3D27.js} +1 -1
  31. package/dist/cdn/{6LOZOA7U.js → EUSDSRSD.js} +1 -1
  32. package/dist/cdn/{BLOSHWOX.js → EXQDBBLY.js} +1 -1
  33. package/dist/cdn/{KOXY2WGR.js → F5C2X2NS.js} +1 -1
  34. package/dist/cdn/{FB7SN7LD.js → FWVZY2DN.js} +1 -1
  35. package/dist/cdn/{KZGZNENS.js → FZ4P2E22.js} +1 -1
  36. package/dist/cdn/{T2X5Q7O4.js → GG7KDNXF.js} +1 -1
  37. package/dist/cdn/{66ZLFE4U.js → GQ6A5FQG.js} +1 -1
  38. package/dist/cdn/{CASRWMF2.js → GY72TEIZ.js} +1 -1
  39. package/dist/cdn/{KCQYNVST.js → H3GVLNRJ.js} +1 -1
  40. package/dist/cdn/{PCR5K4AW.js → IICYSP6T.js} +1 -1
  41. package/dist/cdn/{MUIUALIY.js → IOG2IVJN.js} +1 -1
  42. package/dist/cdn/{ZBBJNKUN.js → J22FARAC.js} +1 -1
  43. package/dist/cdn/{HQOWIODF.js → J5SIGRGU.js} +1 -1
  44. package/dist/cdn/{HQNI3Z6E.js → JCGY4PXV.js} +1 -1
  45. package/dist/cdn/{SJ7S5LDT.js → JDCNFE5C.js} +1 -1
  46. package/dist/cdn/{EH3JCN6Q.js → JFRRNZCG.js} +1 -1
  47. package/dist/cdn/{TUNGGTDZ.js → JJLZNOU5.js} +1 -1
  48. package/dist/cdn/{WSTW26MR.js → JKDSYFI5.js} +1 -1
  49. package/dist/cdn/{JBTMPE2E.js → K6PMOUYR.js} +1 -1
  50. package/dist/cdn/{NDAA3L2F.js → K7M3AA6L.js} +1 -1
  51. package/dist/cdn/{WCJVSSDM.js → KSDWPX5N.js} +1 -1
  52. package/dist/cdn/{7TDKNYL3.js → LBOJGYSL.js} +1 -1
  53. package/dist/cdn/{FVPRMLQF.js → LD7OU6HP.js} +1 -1
  54. package/dist/cdn/{2IB237XM.js → LJOG5J2V.js} +1 -1
  55. package/dist/cdn/{3AU4BVFA.js → LTZBWR5K.js} +1 -1
  56. package/dist/cdn/{JC3ZKK3U.js → NRKA3PVS.js} +1 -1
  57. package/dist/cdn/{R3U6WQA7.js → NVWHMHFJ.js} +1 -1
  58. package/dist/cdn/{3YD7USNZ.js → O3F4PKL5.js} +1 -1
  59. package/dist/cdn/{TMBR6OV4.js → O522WPHN.js} +1 -1
  60. package/dist/cdn/{2VMINED7.js → ORXX53NO.js} +1 -1
  61. package/dist/cdn/{UFL53XLD.js → P6HJNWKL.js} +1 -1
  62. package/dist/cdn/{WLXYQUY2.js → P7L3ARQ3.js} +1 -1
  63. package/dist/cdn/{KRQ7IT6R.js → POUXDWR6.js} +1 -1
  64. package/dist/cdn/{DUKCNEMR.js → PVNWEM36.js} +1 -1
  65. package/dist/cdn/{ZYXHU5KK.js → QBN2RUK7.js} +1 -1
  66. package/dist/cdn/{BBCKB2TP.js → QQE67EPU.js} +1 -1
  67. package/dist/cdn/{S6I4UC4D.js → QZCSTDPS.js} +1 -1
  68. package/dist/cdn/{K5YUTTEF.js → REC66TO6.js} +1 -1
  69. package/dist/cdn/{47UGKETT.js → RRFVH5KA.js} +1 -1
  70. package/dist/cdn/{IVGNLPIM.js → RT3RIRB5.js} +1 -1
  71. package/dist/cdn/{W5ELIMSY.js → RYSXQJEF.js} +1 -1
  72. package/dist/cdn/{YOTALJ7Z.js → SMLGQATL.js} +1 -1
  73. package/dist/cdn/{XN7VGJR3.js → SXOHCOAC.js} +1 -1
  74. package/dist/cdn/{T3VMBZ5E.js → U4LJEOCU.js} +1 -1
  75. package/dist/cdn/{D37MPENZ.js → UCS6KWEF.js} +1 -1
  76. package/dist/cdn/{B7JDEO3X.js → UOXDMZSI.js} +1 -1
  77. package/dist/cdn/{VG6AN56C.js → UZKSCM2S.js} +1 -1
  78. package/dist/cdn/{LBMVPM4L.js → VAWXK4TO.js} +1 -1
  79. package/dist/cdn/{2JJXZDHF.js → VKEJFHGG.js} +1 -1
  80. package/dist/cdn/{RUDWTSYY.js → VPWZC6PQ.js} +1 -1
  81. package/dist/cdn/{D72XCO7P.js → VUWVVCEB.js} +1 -1
  82. package/dist/cdn/{B4PH2UMY.js → WCG6VBHW.js} +1 -1
  83. package/dist/cdn/{V5RTTOZR.js → WZZIHATO.js} +1 -1
  84. package/dist/cdn/{J5DILLLF.js → X4P4OY6S.js} +1 -1
  85. package/dist/cdn/{RXINSABT.js → X6C44FPC.js} +1 -1
  86. package/dist/cdn/{LMQHLEJ2.js → XB5AI5AU.js} +1 -1
  87. package/dist/cdn/{B32VUZLU.js → XETRBEFO.js} +1 -1
  88. package/dist/cdn/{ZG4PSXRA.js → XHJGXDGC.js} +1 -1
  89. package/dist/cdn/{HSFAR36O.js → XJEWRYSH.js} +1 -1
  90. package/dist/cdn/{IEJW363N.js → XURXJVLT.js} +1 -1
  91. package/dist/cdn/{NYBCUG6C.js → Y3WE42BQ.js} +1 -1
  92. package/dist/cdn/{3GK5BZMV.js → YCM6O6HX.js} +1 -1
  93. package/dist/cdn/{7MH6J3X4.js → YKAA3D7I.js} +1 -1
  94. package/dist/cdn/{V5PFATKW.js → YRPBDTCB.js} +1 -1
  95. package/dist/cdn/{D6XSG2BV.js → Z2MRSW74.js} +1 -1
  96. package/dist/cdn/{7U6KVTEI.js → ZE4S6J2S.js} +1 -1
  97. package/dist/cdn/{XCAJJFB7.js → ZJIYZYVK.js} +1 -1
  98. package/dist/cdn/{74XZ3LJI.js → ZN7K5ISR.js} +1 -1
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/runtime.js +3 -3
  102. package/dist/docs/api.json +1 -1
  103. package/dist/docs/docs.json +1 -1
  104. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
- import{a as Ca}from"./7YROV2MS.js";import{b as jb}from"./5GZBRQP2.js";import p from"./6LOZOA7U.js";import{a as xP,g as _P}from"./3WARDHOQ.js";import o from"./3GK5BZMV.js";import{c as Db,e as Nd,f as kb,g as Ab,h as Lb,i as Fb,j as ic}from"./BK4JKDTR.js";import n from"./3QFLCKDU.js";import{a as Jw}from"./VTGIHCBG.js";import{a as Vb}from"./FVPRMLQF.js";import m from"./S6I4UC4D.js";import l from"./ODZZ6IDF.js";import k from"./K5YUTTEF.js";import{a as bP}from"./NDAA3L2F.js";import"./PQCKQMUH.js";import j from"./T5BVDE2S.js";import i from"./OOMLQFRO.js";import h from"./JHZKHOF4.js";import g from"./D72XCO7P.js";import{a as is,b as gP,c as yP,d as vP,e as Nb,k as Eb,q as Bb}from"./G5NLV2CS.js";import f from"./YHKUB4KO.js";import e from"./K7QEIYH2.js";import d from"./3AU4BVFA.js";import c from"./ILV3GIXF.js";import b from"./XCAJJFB7.js";import a from"./TUNGGTDZ.js";import{D as wd,E as Pd,a as bt,b as Yf,c as Ee,d as _e,e as xi,f as Wi,g as Io,h as jr,i as Sd,j as Wr,l as Uv,n as tr,p as Gv,r as Oi,v as qv,w as JS,x as Sr}from"./UPENS2HR.js";import{e as fs,h as bn}from"./U4LGTOAJ.js";import{$ as GS,B as vl,Ba as Yv,C as kh,I as Cd,L as Wf,M as jv,N as zf,Q as YS,S as Hf,T as Wv,U as zv,V as Hv,W as US,aa as qS,da as Xv,f as Mo,h as Gu,ha as Xf,i as Ef,j as Ev,k as WS,l as Bf,o as Sa,p as jf,q as zi,r as qu,t as Bv,u as Dh,ua as KS,v as zS,y as HS,z as XS}from"./JGDOGMER.js";import{a as xd,b as Or,c as _d,d as Br,e as Nf,f as Tt}from"./BIXQAUTT.js";import{g as ji,h as $s,k as Ph,l as Ds}from"./GUQ44MLO.js";import{a as BS,b as Ov,c as If,d as yl}from"./DK7J3XAC.js";import{A as Fv,B as VS,C as Mf,H as NS,I as ES,g as FS,h as OS,i as Uu,l as MS,n as ps,p as IS,z as RS}from"./74BF6TFJ.js";import"./BYSF3WH4.js";import"./QIST2E6D.js";import{a as Ie,b as ZS}from"./GFIZPXVK.js";import{a as M,b as Ya,e as He,f as Jt,h as bd,i as Mv,j as Iv,k as Fr,l as Rf,m as Th,n as Rv,o as Vf,p as wi,q as jS,r as $h,t as Vv,u as Nv}from"./C4LXB6MK.js";import{a as vd,b as VF,c as LS,d as NF}from"./K4PGZCDZ.js";export default $arcgis.t(([Zs,{substitute:Fu},vN,bN,{$:No,$a:tc,Aa:uw,Ab:Id,Ac:Bw,Ba:Md,Bc:jw,C:rw,Ca:Zf,Cc:_b,Da:Jf,Dc:Ww,E:Ro,Ea:ab,Ec:zw,F:sw,Fa:cw,Fc:Cb,G:xn,Ga:Qf,Gb:nm,Gc:Hw,H:Lh,Hc:Xw,Ia:nb,Ic:Yw,Ja:dw,Jb:Tw,Jc:Sb,K:Qv,Kb:Ws,Kc:Uw,L:eb,Lc:Gw,M:Dd,Ma:ob,Mb:xl,Mc:um,N:tb,Na:ec,Nb:$w,Nc:qw,O:aw,Oa:pw,Ob:Dw,Oc:wb,P:Qs,Pa:em,Pc:Kw,Q:Gf,Qa:fw,Qb:kw,Qc:Zw,R:Zu,Ra:lb,S:_n,Sa:mw,Sc:Vd,T:Vo,Ta:gw,Tc:cm,U:kd,Ua:hb,Ub:om,V:ib,Va:ub,Vb:Aw,W:nw,Wa:yw,X:Ad,Y:As,Ya:cb,Z:Kn,Za:tm,_:Ld,_a:Ua,_b:gb,aa:ow,ab:Pi,ac:yb,b:Hi,bc:Rd,c:Td,ca:lw,cb:Zn,cc:Oh,d:QS,da:Ju,dc:vb,e:Yn,eb:vw,ec:Pa,f:Un,fa:Fd,fb:bw,fc:bb,g:ks,gb:xw,h:Kv,hb:db,i:Ah,ib:im,ic:Lw,j:X,ja:Qu,jb:rm,k:At,ka:rb,kb:_w,l:Gn,la:Od,lb:Cw,lc:Ga,m:Ku,mb:Sw,mc:Jn,n:qn,nc:lm,o:bl,ob:sm,oc:ct,p:Zv,pb:ww,pc:Fw,q:ew,qb:pb,qc:Ow,r:$d,rb:am,rc:hm,s:Uf,sc:Mh,tb:wa,tc:Mw,u:tw,ub:fb,uc:Iw,v:zr,va:qf,vb:Fh,vc:Rw,wb:Pw,wc:xb,x:iw,xa:sb,xb:Cn,xc:Vw,ya:hw,yb:Sn,yc:Nw,z:Jv,za:Kf,zb:mb,zc:Ew},,{g:Qw,i:eP},{b:tP,c:iP},,{a:Pb},{a:Tb,b:rP,c:sP,d:_l},,,{l:aP,n:nP,o:oP,p:lP,q:hP,r:$b,s:uP,t:cP,u:dP},,,,{q:wP},{b:CP,c:SP},{a:pP,b:fP,c:mP,d:Ob,g:Mb,h:Ib,i:Rb}])=>{var ZT=VF((KT,xx)=>{(function(s){typeof KT=="object"&&typeof xx<"u"?xx.exports=s():typeof define=="function"&&define.amd?define([],s):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=s()})(function(){return(function s(t,e,i){function r(o,l){if(!e[o]){if(!t[o]){var h=typeof vd=="function"&&vd;if(!l&&h)return h(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=e[o]={exports:{}};t[o][0].call(c.exports,function(d){var p=t[o][1][d];return r(p||d)},c,c.exports,s,t,e,i)}return e[o].exports}for(var a=typeof vd=="function"&&vd,n=0;n<i.length;n++)r(i[n]);return r})({1:[function(s,t,e){"use strict";var i=s("./utils"),r=s("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.encode=function(n){for(var o,l,h,u,c,d,p,f=[],m=0,g=n.length,y=g,v=i.getTypeOf(n)!=="string";m<n.length;)y=g-m,h=v?(o=n[m++],l=m<g?n[m++]:0,m<g?n[m++]:0):(o=n.charCodeAt(m++),l=m<g?n.charCodeAt(m++):0,m<g?n.charCodeAt(m++):0),u=o>>2,c=(3&o)<<4|l>>4,d=1<y?(15&l)<<2|h>>6:64,p=2<y?63&h:64,f.push(a.charAt(u)+a.charAt(c)+a.charAt(d)+a.charAt(p));return f.join("")},e.decode=function(n){var o,l,h,u,c,d,p=0,f=0,m="data:";if(n.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var g,y=3*(n=n.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(n.charAt(n.length-1)===a.charAt(64)&&y--,n.charAt(n.length-2)===a.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(g=r.uint8array?new Uint8Array(0|y):new Array(0|y);p<n.length;)o=a.indexOf(n.charAt(p++))<<2|(u=a.indexOf(n.charAt(p++)))>>4,l=(15&u)<<4|(c=a.indexOf(n.charAt(p++)))>>2,h=(3&c)<<6|(d=a.indexOf(n.charAt(p++))),g[f++]=o,c!==64&&(g[f++]=l),d!==64&&(g[f++]=h);return g}},{"./support":30,"./utils":32}],2:[function(s,t,e){"use strict";var i=s("./external"),r=s("./stream/DataWorker"),a=s("./stream/Crc32Probe"),n=s("./stream/DataLengthProbe");function o(l,h,u,c,d){this.compressedSize=l,this.uncompressedSize=h,this.crc32=u,this.compression=c,this.compressedContent=d}o.prototype={getContentWorker:function(){var l=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),h=this;return l.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(l,h,u){return l.pipe(new a).pipe(new n("uncompressedSize")).pipe(h.compressWorker(u)).pipe(new n("compressedSize")).withStreamInfo("compression",h)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(s,t,e){"use strict";var i=s("./stream/GenericWorker");e.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},e.DEFLATE=s("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(s,t,e){"use strict";var i=s("./utils"),r=(function(){for(var a,n=[],o=0;o<256;o++){a=o;for(var l=0;l<8;l++)a=1&a?3988292384^a>>>1:a>>>1;n[o]=a}return n})();t.exports=function(a,n){return a!==void 0&&a.length?i.getTypeOf(a)!=="string"?(function(o,l,h,u){var c=r,d=u+h;o^=-1;for(var p=u;p<d;p++)o=o>>>8^c[255&(o^l[p])];return-1^o})(0|n,a,a.length,0):(function(o,l,h,u){var c=r,d=u+h;o^=-1;for(var p=u;p<d;p++)o=o>>>8^c[255&(o^l.charCodeAt(p))];return-1^o})(0|n,a,a.length,0):0}},{"./utils":32}],5:[function(s,t,e){"use strict";e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(s,t,e){"use strict";var i=null;i=typeof Promise<"u"?Promise:s("lie"),t.exports={Promise:i}},{lie:37}],7:[function(s,t,e){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",r=s("pako"),a=s("./utils"),n=s("./stream/GenericWorker"),o=i?"uint8array":"array";function l(h,u){n.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=u,this.meta={}}e.magic="\b\0",a.inherits(l,n),l.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(o,h.data),!1)},l.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(u){h.push({data:u,meta:h.meta})}},e.compressWorker=function(h){return new l("Deflate",h)},e.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(s,t,e){"use strict";function i(c,d){var p,f="";for(p=0;p<d;p++)f+=String.fromCharCode(255&c),c>>>=8;return f}function r(c,d,p,f,m,g){var y,v,b=c.file,x=c.compression,_=g!==o.utf8encode,S=a.transformTo("string",g(b.name)),w=a.transformTo("string",o.utf8encode(b.name)),P=b.comment,D=a.transformTo("string",g(P)),$=a.transformTo("string",o.utf8encode(P)),A=w.length!==b.name.length,T=$.length!==P.length,I="",N="",B="",W=b.dir,z=b.date,K={crc32:0,compressedSize:0,uncompressedSize:0};d&&!p||(K.crc32=c.crc32,K.compressedSize=c.compressedSize,K.uncompressedSize=c.uncompressedSize);var V=0;d&&(V|=8),_||!A&&!T||(V|=2048);var E=0,ie=0;W&&(E|=16),m==="UNIX"?(ie=798,E|=(function(Z,ce){var Le=Z;return Z||(Le=ce?16893:33204),(65535&Le)<<16})(b.unixPermissions,W)):(ie=20,E|=(function(Z){return 63&(Z||0)})(b.dosPermissions)),y=z.getUTCHours(),y<<=6,y|=z.getUTCMinutes(),y<<=5,y|=z.getUTCSeconds()/2,v=z.getUTCFullYear()-1980,v<<=4,v|=z.getUTCMonth()+1,v<<=5,v|=z.getUTCDate(),A&&(N=i(1,1)+i(l(S),4)+w,I+="up"+i(N.length,2)+N),T&&(B=i(1,1)+i(l(D),4)+$,I+="uc"+i(B.length,2)+B);var U="";return U+=`
2
+ import{a as Ca}from"./7YROV2MS.js";import{b as jb}from"./5GZBRQP2.js";import p from"./EUSDSRSD.js";import{a as xP,g as _P}from"./3WARDHOQ.js";import o from"./YCM6O6HX.js";import{c as Db,e as Nd,f as kb,g as Ab,h as Lb,i as Fb,j as ic}from"./BK4JKDTR.js";import n from"./3Z2C6NLH.js";import{a as Jw}from"./VTGIHCBG.js";import{a as Vb}from"./LD7OU6HP.js";import m from"./QZCSTDPS.js";import l from"./6KYYHQBS.js";import k from"./REC66TO6.js";import{a as bP}from"./K7M3AA6L.js";import"./PQCKQMUH.js";import j from"./4DGRKLXO.js";import i from"./DGE5LAEC.js";import h from"./EQNW3D27.js";import g from"./VUWVVCEB.js";import{a as is,b as gP,c as yP,d as vP,e as Nb,k as Eb,q as Bb}from"./G5NLV2CS.js";import f from"./5AMXSBVD.js";import e from"./CKRMPTUO.js";import d from"./LTZBWR5K.js";import c from"./EJCQJK4X.js";import b from"./ZJIYZYVK.js";import a from"./JJLZNOU5.js";import{D as wd,E as Pd,a as bt,b as Yf,c as Ee,d as _e,e as xi,f as Wi,g as Io,h as jr,i as Sd,j as Wr,l as Uv,n as tr,p as Gv,r as Oi,v as qv,w as JS,x as Sr}from"./UPENS2HR.js";import{e as fs,h as bn}from"./U4LGTOAJ.js";import{$ as GS,B as vl,Ba as Yv,C as kh,I as Cd,L as Wf,M as jv,N as zf,Q as YS,S as Hf,T as Wv,U as zv,V as Hv,W as US,aa as qS,da as Xv,f as Mo,h as Gu,ha as Xf,i as Ef,j as Ev,k as WS,l as Bf,o as Sa,p as jf,q as zi,r as qu,t as Bv,u as Dh,ua as KS,v as zS,y as HS,z as XS}from"./JGDOGMER.js";import{a as xd,b as Or,c as _d,d as Br,e as Nf,f as Tt}from"./BIXQAUTT.js";import{g as ji,h as $s,k as Ph,l as Ds}from"./GUQ44MLO.js";import{a as BS,b as Ov,c as If,d as yl}from"./CHCM5ZNC.js";import{A as Fv,B as VS,C as Mf,H as NS,I as ES,g as FS,h as OS,i as Uu,l as MS,n as ps,p as IS,z as RS}from"./AJDNZRJP.js";import"./BYSF3WH4.js";import"./QIST2E6D.js";import{a as Ie,b as ZS}from"./GFIZPXVK.js";import{a as M,b as Ya,e as He,f as Jt,h as bd,i as Mv,j as Iv,k as Fr,l as Rf,m as Th,n as Rv,o as Vf,p as wi,q as jS,r as $h,t as Vv,u as Nv}from"./C4LXB6MK.js";import{a as vd,b as VF,c as LS,d as NF}from"./K4PGZCDZ.js";export default $arcgis.t(([Zs,{substitute:Fu},vN,bN,{$:No,$a:tc,Aa:uw,Ab:Id,Ac:Bw,Ba:Md,Bc:jw,C:rw,Ca:Zf,Cc:_b,Da:Jf,Dc:Ww,E:Ro,Ea:ab,Ec:zw,F:sw,Fa:cw,Fc:Cb,G:xn,Ga:Qf,Gb:nm,Gc:Hw,H:Lh,Hc:Xw,Ia:nb,Ic:Yw,Ja:dw,Jb:Tw,Jc:Sb,K:Qv,Kb:Ws,Kc:Uw,L:eb,Lc:Gw,M:Dd,Ma:ob,Mb:xl,Mc:um,N:tb,Na:ec,Nb:$w,Nc:qw,O:aw,Oa:pw,Ob:Dw,Oc:wb,P:Qs,Pa:em,Pc:Kw,Q:Gf,Qa:fw,Qb:kw,Qc:Zw,R:Zu,Ra:lb,S:_n,Sa:mw,Sc:Vd,T:Vo,Ta:gw,Tc:cm,U:kd,Ua:hb,Ub:om,V:ib,Va:ub,Vb:Aw,W:nw,Wa:yw,X:Ad,Y:As,Ya:cb,Z:Kn,Za:tm,_:Ld,_a:Ua,_b:gb,aa:ow,ab:Pi,ac:yb,b:Hi,bc:Rd,c:Td,ca:lw,cb:Zn,cc:Oh,d:QS,da:Ju,dc:vb,e:Yn,eb:vw,ec:Pa,f:Un,fa:Fd,fb:bw,fc:bb,g:ks,gb:xw,h:Kv,hb:db,i:Ah,ib:im,ic:Lw,j:X,ja:Qu,jb:rm,k:At,ka:rb,kb:_w,l:Gn,la:Od,lb:Cw,lc:Ga,m:Ku,mb:Sw,mc:Jn,n:qn,nc:lm,o:bl,ob:sm,oc:ct,p:Zv,pb:ww,pc:Fw,q:ew,qb:pb,qc:Ow,r:$d,rb:am,rc:hm,s:Uf,sc:Mh,tb:wa,tc:Mw,u:tw,ub:fb,uc:Iw,v:zr,va:qf,vb:Fh,vc:Rw,wb:Pw,wc:xb,x:iw,xa:sb,xb:Cn,xc:Vw,ya:hw,yb:Sn,yc:Nw,z:Jv,za:Kf,zb:mb,zc:Ew},,{g:Qw,i:eP},{b:tP,c:iP},,{a:Pb},{a:Tb,b:rP,c:sP,d:_l},,,{l:aP,n:nP,o:oP,p:lP,q:hP,r:$b,s:uP,t:cP,u:dP},,,,{q:wP},{b:CP,c:SP},{a:pP,b:fP,c:mP,d:Ob,g:Mb,h:Ib,i:Rb}])=>{var ZT=VF((KT,xx)=>{(function(s){typeof KT=="object"&&typeof xx<"u"?xx.exports=s():typeof define=="function"&&define.amd?define([],s):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=s()})(function(){return(function s(t,e,i){function r(o,l){if(!e[o]){if(!t[o]){var h=typeof vd=="function"&&vd;if(!l&&h)return h(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=e[o]={exports:{}};t[o][0].call(c.exports,function(d){var p=t[o][1][d];return r(p||d)},c,c.exports,s,t,e,i)}return e[o].exports}for(var a=typeof vd=="function"&&vd,n=0;n<i.length;n++)r(i[n]);return r})({1:[function(s,t,e){"use strict";var i=s("./utils"),r=s("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.encode=function(n){for(var o,l,h,u,c,d,p,f=[],m=0,g=n.length,y=g,v=i.getTypeOf(n)!=="string";m<n.length;)y=g-m,h=v?(o=n[m++],l=m<g?n[m++]:0,m<g?n[m++]:0):(o=n.charCodeAt(m++),l=m<g?n.charCodeAt(m++):0,m<g?n.charCodeAt(m++):0),u=o>>2,c=(3&o)<<4|l>>4,d=1<y?(15&l)<<2|h>>6:64,p=2<y?63&h:64,f.push(a.charAt(u)+a.charAt(c)+a.charAt(d)+a.charAt(p));return f.join("")},e.decode=function(n){var o,l,h,u,c,d,p=0,f=0,m="data:";if(n.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var g,y=3*(n=n.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(n.charAt(n.length-1)===a.charAt(64)&&y--,n.charAt(n.length-2)===a.charAt(64)&&y--,y%1!=0)throw new Error("Invalid base64 input, bad content length.");for(g=r.uint8array?new Uint8Array(0|y):new Array(0|y);p<n.length;)o=a.indexOf(n.charAt(p++))<<2|(u=a.indexOf(n.charAt(p++)))>>4,l=(15&u)<<4|(c=a.indexOf(n.charAt(p++)))>>2,h=(3&c)<<6|(d=a.indexOf(n.charAt(p++))),g[f++]=o,c!==64&&(g[f++]=l),d!==64&&(g[f++]=h);return g}},{"./support":30,"./utils":32}],2:[function(s,t,e){"use strict";var i=s("./external"),r=s("./stream/DataWorker"),a=s("./stream/Crc32Probe"),n=s("./stream/DataLengthProbe");function o(l,h,u,c,d){this.compressedSize=l,this.uncompressedSize=h,this.crc32=u,this.compression=c,this.compressedContent=d}o.prototype={getContentWorker:function(){var l=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),h=this;return l.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(l,h,u){return l.pipe(new a).pipe(new n("uncompressedSize")).pipe(h.compressWorker(u)).pipe(new n("compressedSize")).withStreamInfo("compression",h)},t.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(s,t,e){"use strict";var i=s("./stream/GenericWorker");e.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},e.DEFLATE=s("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(s,t,e){"use strict";var i=s("./utils"),r=(function(){for(var a,n=[],o=0;o<256;o++){a=o;for(var l=0;l<8;l++)a=1&a?3988292384^a>>>1:a>>>1;n[o]=a}return n})();t.exports=function(a,n){return a!==void 0&&a.length?i.getTypeOf(a)!=="string"?(function(o,l,h,u){var c=r,d=u+h;o^=-1;for(var p=u;p<d;p++)o=o>>>8^c[255&(o^l[p])];return-1^o})(0|n,a,a.length,0):(function(o,l,h,u){var c=r,d=u+h;o^=-1;for(var p=u;p<d;p++)o=o>>>8^c[255&(o^l.charCodeAt(p))];return-1^o})(0|n,a,a.length,0):0}},{"./utils":32}],5:[function(s,t,e){"use strict";e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],6:[function(s,t,e){"use strict";var i=null;i=typeof Promise<"u"?Promise:s("lie"),t.exports={Promise:i}},{lie:37}],7:[function(s,t,e){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",r=s("pako"),a=s("./utils"),n=s("./stream/GenericWorker"),o=i?"uint8array":"array";function l(h,u){n.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=u,this.meta={}}e.magic="\b\0",a.inherits(l,n),l.prototype.processChunk=function(h){this.meta=h.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(o,h.data),!1)},l.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var h=this;this._pako.onData=function(u){h.push({data:u,meta:h.meta})}},e.compressWorker=function(h){return new l("Deflate",h)},e.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(s,t,e){"use strict";function i(c,d){var p,f="";for(p=0;p<d;p++)f+=String.fromCharCode(255&c),c>>>=8;return f}function r(c,d,p,f,m,g){var y,v,b=c.file,x=c.compression,_=g!==o.utf8encode,S=a.transformTo("string",g(b.name)),w=a.transformTo("string",o.utf8encode(b.name)),P=b.comment,D=a.transformTo("string",g(P)),$=a.transformTo("string",o.utf8encode(P)),A=w.length!==b.name.length,T=$.length!==P.length,I="",N="",B="",W=b.dir,z=b.date,K={crc32:0,compressedSize:0,uncompressedSize:0};d&&!p||(K.crc32=c.crc32,K.compressedSize=c.compressedSize,K.uncompressedSize=c.uncompressedSize);var V=0;d&&(V|=8),_||!A&&!T||(V|=2048);var E=0,ie=0;W&&(E|=16),m==="UNIX"?(ie=798,E|=(function(Z,ce){var Le=Z;return Z||(Le=ce?16893:33204),(65535&Le)<<16})(b.unixPermissions,W)):(ie=20,E|=(function(Z){return 63&(Z||0)})(b.dosPermissions)),y=z.getUTCHours(),y<<=6,y|=z.getUTCMinutes(),y<<=5,y|=z.getUTCSeconds()/2,v=z.getUTCFullYear()-1980,v<<=4,v|=z.getUTCMonth()+1,v<<=5,v|=z.getUTCDate(),A&&(N=i(1,1)+i(l(S),4)+w,I+="up"+i(N.length,2)+N),T&&(B=i(1,1)+i(l(D),4)+$,I+="uc"+i(B.length,2)+B);var U="";return U+=`
3
3
  \0`,U+=i(V,2),U+=x.magic,U+=i(y,2),U+=i(v,2),U+=i(K.crc32,4),U+=i(K.compressedSize,4),U+=i(K.uncompressedSize,4),U+=i(S.length,2),U+=i(I.length,2),{fileRecord:h.LOCAL_FILE_HEADER+U+S+I,dirRecord:h.CENTRAL_FILE_HEADER+i(ie,2)+U+i(D.length,2)+"\0\0\0\0"+i(E,4)+i(f,4)+S+I+D}}var a=s("../utils"),n=s("../stream/GenericWorker"),o=s("../utf8"),l=s("../crc32"),h=s("../signature");function u(c,d,p,f){n.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=p,this.encodeFileName=f,this.streamFiles=c,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,n),u.prototype.push=function(c){var d=c.meta.percent||0,p=this.entriesCount,f=this._sources.length;this.accumulate?this.contentBuffer.push(c):(this.bytesWritten+=c.data.length,n.prototype.push.call(this,{data:c.data,meta:{currentFile:this.currentFile,percent:p?(d+100*(p-f-1))/p:100}}))},u.prototype.openedSource=function(c){this.currentSourceOffset=this.bytesWritten,this.currentFile=c.file.name;var d=this.streamFiles&&!c.file.dir;if(d){var p=r(c,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:p.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(c){this.accumulate=!1;var d=this.streamFiles&&!c.file.dir,p=r(c,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(p.dirRecord),d)this.push({data:(function(f){return h.DATA_DESCRIPTOR+i(f.crc32,4)+i(f.compressedSize,4)+i(f.uncompressedSize,4)})(c),meta:{percent:100}});else for(this.push({data:p.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var c=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var p=this.bytesWritten-c,f=(function(m,g,y,v,b){var x=a.transformTo("string",b(v));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(m,2)+i(m,2)+i(g,4)+i(y,4)+i(x.length,2)+x})(this.dirRecords.length,p,c,this.zipComment,this.encodeFileName);this.push({data:f,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(c){this._sources.push(c);var d=this;return c.on("data",function(p){d.processChunk(p)}),c.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),c.on("error",function(p){d.error(p)}),this},u.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(c){var d=this._sources;if(!n.prototype.error.call(this,c))return!1;for(var p=0;p<d.length;p++)try{d[p].error(c)}catch{}return!0},u.prototype.lock=function(){n.prototype.lock.call(this);for(var c=this._sources,d=0;d<c.length;d++)c[d].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(s,t,e){"use strict";var i=s("../compressions"),r=s("./ZipFileWorker");e.generateWorker=function(a,n,o){var l=new r(n.streamFiles,o,n.platform,n.encodeFileName),h=0;try{a.forEach(function(u,c){h++;var d=(function(g,y){var v=g||y,b=i[v];if(!b)throw new Error(v+" is not a valid compression method !");return b})(c.options.compression,n.compression),p=c.options.compressionOptions||n.compressionOptions||{},f=c.dir,m=c.date;c._compressWorker(d,p).withStreamInfo("file",{name:u,dir:f,date:m,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(l)}),l.entriesCount=h}catch(u){l.error(u)}return l}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(s,t,e){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var r=new i;for(var a in this)typeof this[a]!="function"&&(r[a]=this[a]);return r}}(i.prototype=s("./object")).loadAsync=s("./load"),i.support=s("./support"),i.defaults=s("./defaults"),i.version="3.10.1",i.loadAsync=function(r,a){return new i().loadAsync(r,a)},i.external=s("./external"),t.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(s,t,e){"use strict";var i=s("./utils"),r=s("./external"),a=s("./utf8"),n=s("./zipEntries"),o=s("./stream/Crc32Probe"),l=s("./nodejsUtils");function h(u){return new r.Promise(function(c,d){var p=u.decompressed.getContentWorker().pipe(new o);p.on("error",function(f){d(f)}).on("end",function(){p.streamInfo.crc32!==u.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):c()}).resume()})}t.exports=function(u,c){var d=this;return c=i.extend(c||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(u)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",u,!0,c.optimizedBinaryString,c.base64).then(function(p){var f=new n(c);return f.load(p),f}).then(function(p){var f=[r.Promise.resolve(p)],m=p.files;if(c.checkCRC32)for(var g=0;g<m.length;g++)f.push(h(m[g]));return r.Promise.all(f)}).then(function(p){for(var f=p.shift(),m=f.files,g=0;g<m.length;g++){var y=m[g],v=y.fileNameStr,b=i.resolve(y.fileNameStr);d.file(b,y.decompressed,{binary:!0,optimizedBinaryString:!0,date:y.date,dir:y.dir,comment:y.fileCommentStr.length?y.fileCommentStr:null,unixPermissions:y.unixPermissions,dosPermissions:y.dosPermissions,createFolders:c.createFolders}),y.dir||(d.file(b).unsafeOriginalName=v)}return f.zipComment.length&&(d.comment=f.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(s,t,e){"use strict";var i=s("../utils"),r=s("../stream/GenericWorker");function a(n,o){r.call(this,"Nodejs stream input adapter for "+n),this._upstreamEnded=!1,this._bindStream(o)}i.inherits(a,r),a.prototype._bindStream=function(n){var o=this;(this._stream=n).pause(),n.on("data",function(l){o.push({data:l,meta:{percent:0}})}).on("error",function(l){o.isPaused?this.generatedError=l:o.error(l)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},a.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(s,t,e){"use strict";var i=s("readable-stream").Readable;function r(a,n,o){i.call(this,n),this._helper=a;var l=this;a.on("data",function(h,u){l.push(h)||l._helper.pause(),o&&o(u)}).on("error",function(h){l.emit("error",h)}).on("end",function(){l.push(null)})}s("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},t.exports=r},{"../utils":32,"readable-stream":16}],14:[function(s,t,e){"use strict";t.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,r){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,r);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,r)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var r=new Buffer(i);return r.fill(0),r},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(s,t,e){"use strict";function i(b,x,_){var S,w=a.getTypeOf(x),P=a.extend(_||{},l);P.date=P.date||new Date,P.compression!==null&&(P.compression=P.compression.toUpperCase()),typeof P.unixPermissions=="string"&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(b=m(b)),P.createFolders&&(S=f(b))&&g.call(this,S,!0);var D=w==="string"&&P.binary===!1&&P.base64===!1;_&&_.binary!==void 0||(P.binary=!D),(x instanceof h&&x.uncompressedSize===0||P.dir||!x||x.length===0)&&(P.base64=!1,P.binary=!0,x="",P.compression="STORE",w="string");var $=null;$=x instanceof h||x instanceof n?x:d.isNode&&d.isStream(x)?new p(b,x):a.prepareContent(b,x,P.binary,P.optimizedBinaryString,P.base64);var A=new u(b,$,P);this.files[b]=A}var r=s("./utf8"),a=s("./utils"),n=s("./stream/GenericWorker"),o=s("./stream/StreamHelper"),l=s("./defaults"),h=s("./compressedObject"),u=s("./zipObject"),c=s("./generate"),d=s("./nodejsUtils"),p=s("./nodejs/NodejsStreamInputAdapter"),f=function(b){b.slice(-1)==="/"&&(b=b.substring(0,b.length-1));var x=b.lastIndexOf("/");return 0<x?b.substring(0,x):""},m=function(b){return b.slice(-1)!=="/"&&(b+="/"),b},g=function(b,x){return x=x!==void 0?x:l.createFolders,b=m(b),this.files[b]||i.call(this,b,null,{dir:!0,createFolders:x}),this.files[b]};function y(b){return Object.prototype.toString.call(b)==="[object RegExp]"}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(b){var x,_,S;for(x in this.files)S=this.files[x],(_=x.slice(this.root.length,x.length))&&x.slice(0,this.root.length)===this.root&&b(_,S)},filter:function(b){var x=[];return this.forEach(function(_,S){b(_,S)&&x.push(S)}),x},file:function(b,x,_){if(arguments.length!==1)return b=this.root+b,i.call(this,b,x,_),this;if(y(b)){var S=b;return this.filter(function(P,D){return!D.dir&&S.test(P)})}var w=this.files[this.root+b];return w&&!w.dir?w:null},folder:function(b){if(!b)return this;if(y(b))return this.filter(function(w,P){return P.dir&&b.test(w)});var x=this.root+b,_=g.call(this,x),S=this.clone();return S.root=_.name,S},remove:function(b){b=this.root+b;var x=this.files[b];if(x||(b.slice(-1)!=="/"&&(b+="/"),x=this.files[b]),x&&!x.dir)delete this.files[b];else for(var _=this.filter(function(w,P){return P.name.slice(0,b.length)===b}),S=0;S<_.length;S++)delete this.files[_[S].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(b){var x,_={};try{if((_=a.extend(b||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");a.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var S=_.comment||this.comment||"";x=c.generateWorker(this,_,S)}catch(w){(x=new n("error")).error(w)}return new o(x,_.type||"string",_.mimeType)},generateAsync:function(b,x){return this.generateInternalStream(b).accumulate(x)},generateNodeStream:function(b,x){return(b=b||{}).type||(b.type="nodebuffer"),this.generateInternalStream(b).toNodejsStream(x)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(s,t,e){"use strict";t.exports=s("stream")},{stream:void 0}],17:[function(s,t,e){"use strict";var i=s("./DataReader");function r(a){i.call(this,a);for(var n=0;n<this.data.length;n++)a[n]=255&a[n]}s("../utils").inherits(r,i),r.prototype.byteAt=function(a){return this.data[this.zero+a]},r.prototype.lastIndexOfSignature=function(a){for(var n=a.charCodeAt(0),o=a.charCodeAt(1),l=a.charCodeAt(2),h=a.charCodeAt(3),u=this.length-4;0<=u;--u)if(this.data[u]===n&&this.data[u+1]===o&&this.data[u+2]===l&&this.data[u+3]===h)return u-this.zero;return-1},r.prototype.readAndCheckSignature=function(a){var n=a.charCodeAt(0),o=a.charCodeAt(1),l=a.charCodeAt(2),h=a.charCodeAt(3),u=this.readData(4);return n===u[0]&&o===u[1]&&l===u[2]&&h===u[3]},r.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var n=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},t.exports=r},{"../utils":32,"./DataReader":18}],18:[function(s,t,e){"use strict";var i=s("../utils");function r(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var n,o=0;for(this.checkOffset(a),n=this.index+a-1;n>=this.index;n--)o=(o<<8)+this.byteAt(n);return this.index+=a,o},readString:function(a){return i.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},t.exports=r},{"../utils":32}],19:[function(s,t,e){"use strict";var i=s("./Uint8ArrayReader");function r(a){i.call(this,a)}s("../utils").inherits(r,i),r.prototype.readData=function(a){this.checkOffset(a);var n=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},t.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(s,t,e){"use strict";var i=s("./DataReader");function r(a){i.call(this,a)}s("../utils").inherits(r,i),r.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},r.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},r.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},r.prototype.readData=function(a){this.checkOffset(a);var n=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},t.exports=r},{"../utils":32,"./DataReader":18}],21:[function(s,t,e){"use strict";var i=s("./ArrayReader");function r(a){i.call(this,a)}s("../utils").inherits(r,i),r.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var n=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},t.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(s,t,e){"use strict";var i=s("../utils"),r=s("../support"),a=s("./ArrayReader"),n=s("./StringReader"),o=s("./NodeBufferReader"),l=s("./Uint8ArrayReader");t.exports=function(h){var u=i.getTypeOf(h);return i.checkSupport(u),u!=="string"||r.uint8array?u==="nodebuffer"?new o(h):r.uint8array?new l(i.transformTo("uint8array",h)):new a(i.transformTo("array",h)):new n(h)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(s,t,e){"use strict";e.LOCAL_FILE_HEADER="PK",e.CENTRAL_FILE_HEADER="PK",e.CENTRAL_DIRECTORY_END="PK",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",e.ZIP64_CENTRAL_DIRECTORY_END="PK",e.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(s,t,e){"use strict";var i=s("./GenericWorker"),r=s("../utils");function a(n){i.call(this,"ConvertWorker to "+n),this.destType=n}r.inherits(a,i),a.prototype.processChunk=function(n){this.push({data:r.transformTo(this.destType,n.data),meta:n.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(s,t,e){"use strict";var i=s("./GenericWorker"),r=s("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}s("../utils").inherits(a,i),a.prototype.processChunk=function(n){this.streamInfo.crc32=r(n.data,this.streamInfo.crc32||0),this.push(n)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(s,t,e){"use strict";var i=s("../utils"),r=s("./GenericWorker");function a(n){r.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}i.inherits(a,r),a.prototype.processChunk=function(n){if(n){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+n.data.length}r.prototype.processChunk.call(this,n)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(s,t,e){"use strict";var i=s("../utils"),r=s("./GenericWorker");function a(n){r.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,n.then(function(l){o.dataIsReady=!0,o.data=l,o.max=l&&l.length||0,o.type=i.getTypeOf(l),o.isPaused||o._tickAndRepeat()},function(l){o.error(l)})}i.inherits(a,r),a.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var n=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":n=this.data.substring(this.index,o);break;case"uint8array":n=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":n=this.data.slice(this.index,o)}return this.index=o,this.push({data:n,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(s,t,e){"use strict";function i(r){this.name=r||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(r){this.emit("data",r)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(r){this.emit("error",r)}return!0},error:function(r){return!this.isFinished&&(this.isPaused?this.generatedError=r:(this.isFinished=!0,this.emit("error",r),this.previous&&this.previous.error(r),this.cleanUp()),!0)},on:function(r,a){return this._listeners[r].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(r,a){if(this._listeners[r])for(var n=0;n<this._listeners[r].length;n++)this._listeners[r][n].call(this,a)},pipe:function(r){return r.registerPrevious(this)},registerPrevious:function(r){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=r.streamInfo,this.mergeStreamInfo(),this.previous=r;var a=this;return r.on("data",function(n){a.processChunk(n)}),r.on("end",function(){a.end()}),r.on("error",function(n){a.error(n)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var r=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),r=!0),this.previous&&this.previous.resume(),!r},flush:function(){},processChunk:function(r){this.push(r)},withStreamInfo:function(r,a){return this.extraStreamInfo[r]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var r in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,r)&&(this.streamInfo[r]=this.extraStreamInfo[r])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var r="Worker "+this.name;return this.previous?this.previous+" -> "+r:r}},t.exports=i},{}],29:[function(s,t,e){"use strict";var i=s("../utils"),r=s("./ConvertWorker"),a=s("./GenericWorker"),n=s("../base64"),o=s("../support"),l=s("../external"),h=null;if(o.nodestream)try{h=s("../nodejs/NodejsStreamOutputAdapter")}catch{}function u(d,p){return new l.Promise(function(f,m){var g=[],y=d._internalType,v=d._outputType,b=d._mimeType;d.on("data",function(x,_){g.push(x),p&&p(_)}).on("error",function(x){g=[],m(x)}).on("end",function(){try{var x=(function(_,S,w){switch(_){case"blob":return i.newBlob(i.transformTo("arraybuffer",S),w);case"base64":return n.encode(S);default:return i.transformTo(_,S)}})(v,(function(_,S){var w,P=0,D=null,$=0;for(w=0;w<S.length;w++)$+=S[w].length;switch(_){case"string":return S.join("");case"array":return Array.prototype.concat.apply([],S);case"uint8array":for(D=new Uint8Array($),w=0;w<S.length;w++)D.set(S[w],P),P+=S[w].length;return D;case"nodebuffer":return Buffer.concat(S);default:throw new Error("concat : unsupported type '"+_+"'")}})(y,g),b);f(x)}catch(_){m(_)}g=[]}).resume()})}function c(d,p,f){var m=p;switch(p){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=p,this._mimeType=f,i.checkSupport(m),this._worker=d.pipe(new r(m)),d.lock()}catch(g){this._worker=new a("error"),this._worker.error(g)}}c.prototype={accumulate:function(d){return u(this,d)},on:function(d,p){var f=this;return d==="data"?this._worker.on(d,function(m){p.call(f,m.data,m.meta)}):this._worker.on(d,function(){i.delay(p,arguments,f)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:this._outputType!=="nodebuffer"},d)}},t.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(s,t,e){"use strict";if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",e.nodebuffer=typeof Buffer<"u",e.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")e.blob=!1;else{var i=new ArrayBuffer(0);try{e.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),e.blob=r.getBlob("application/zip").size===0}catch{e.blob=!1}}}try{e.nodestream=!!s("readable-stream").Readable}catch{e.nodestream=!1}},{"readable-stream":16}],31:[function(s,t,e){"use strict";for(var i=s("./utils"),r=s("./support"),a=s("./nodejsUtils"),n=s("./stream/GenericWorker"),o=new Array(256),l=0;l<256;l++)o[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;o[254]=o[254]=1;function h(){n.call(this,"utf-8 decode"),this.leftOver=null}function u(){n.call(this,"utf-8 encode")}e.utf8encode=function(c){return r.nodebuffer?a.newBufferFrom(c,"utf-8"):(function(d){var p,f,m,g,y,v=d.length,b=0;for(g=0;g<v;g++)(64512&(f=d.charCodeAt(g)))==55296&&g+1<v&&(64512&(m=d.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(m-56320),g++),b+=f<128?1:f<2048?2:f<65536?3:4;for(p=r.uint8array?new Uint8Array(b):new Array(b),g=y=0;y<b;g++)(64512&(f=d.charCodeAt(g)))==55296&&g+1<v&&(64512&(m=d.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(m-56320),g++),f<128?p[y++]=f:(f<2048?p[y++]=192|f>>>6:(f<65536?p[y++]=224|f>>>12:(p[y++]=240|f>>>18,p[y++]=128|f>>>12&63),p[y++]=128|f>>>6&63),p[y++]=128|63&f);return p})(c)},e.utf8decode=function(c){return r.nodebuffer?i.transformTo("nodebuffer",c).toString("utf-8"):(function(d){var p,f,m,g,y=d.length,v=new Array(2*y);for(p=f=0;p<y;)if((m=d[p++])<128)v[f++]=m;else if(4<(g=o[m]))v[f++]=65533,p+=g-1;else{for(m&=g===2?31:g===3?15:7;1<g&&p<y;)m=m<<6|63&d[p++],g--;1<g?v[f++]=65533:m<65536?v[f++]=m:(m-=65536,v[f++]=55296|m>>10&1023,v[f++]=56320|1023&m)}return v.length!==f&&(v.subarray?v=v.subarray(0,f):v.length=f),i.applyFromCharCode(v)})(c=i.transformTo(r.uint8array?"uint8array":"array",c))},i.inherits(h,n),h.prototype.processChunk=function(c){var d=i.transformTo(r.uint8array?"uint8array":"array",c.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var p=d;(d=new Uint8Array(p.length+this.leftOver.length)).set(this.leftOver,0),d.set(p,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var f=(function(g,y){var v;for((y=y||g.length)>g.length&&(y=g.length),v=y-1;0<=v&&(192&g[v])==128;)v--;return v<0||v===0?y:v+o[g[v]]>y?v:y})(d),m=d;f!==d.length&&(r.uint8array?(m=d.subarray(0,f),this.leftOver=d.subarray(f,d.length)):(m=d.slice(0,f),this.leftOver=d.slice(f,d.length))),this.push({data:e.utf8decode(m),meta:c.meta})},h.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=h,i.inherits(u,n),u.prototype.processChunk=function(c){this.push({data:e.utf8encode(c.data),meta:c.meta})},e.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(s,t,e){"use strict";var i=s("./support"),r=s("./base64"),a=s("./nodejsUtils"),n=s("./external");function o(p){return p}function l(p,f){for(var m=0;m<p.length;++m)f[m]=255&p.charCodeAt(m);return f}s("setimmediate"),e.newBlob=function(p,f){e.checkSupport("blob");try{return new Blob([p],{type:f})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(p),m.getBlob(f)}catch{throw new Error("Bug : can't construct the Blob.")}}};var h={stringifyByChunk:function(p,f,m){var g=[],y=0,v=p.length;if(v<=m)return String.fromCharCode.apply(null,p);for(;y<v;)f==="array"||f==="nodebuffer"?g.push(String.fromCharCode.apply(null,p.slice(y,Math.min(y+m,v)))):g.push(String.fromCharCode.apply(null,p.subarray(y,Math.min(y+m,v)))),y+=m;return g.join("")},stringifyByChar:function(p){for(var f="",m=0;m<p.length;m++)f+=String.fromCharCode(p[m]);return f},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function u(p){var f=65536,m=e.getTypeOf(p),g=!0;if(m==="uint8array"?g=h.applyCanBeUsed.uint8array:m==="nodebuffer"&&(g=h.applyCanBeUsed.nodebuffer),g)for(;1<f;)try{return h.stringifyByChunk(p,m,f)}catch{f=Math.floor(f/2)}return h.stringifyByChar(p)}function c(p,f){for(var m=0;m<p.length;m++)f[m]=p[m];return f}e.applyFromCharCode=u;var d={};d.string={string:o,array:function(p){return l(p,new Array(p.length))},arraybuffer:function(p){return d.string.uint8array(p).buffer},uint8array:function(p){return l(p,new Uint8Array(p.length))},nodebuffer:function(p){return l(p,a.allocBuffer(p.length))}},d.array={string:u,array:o,arraybuffer:function(p){return new Uint8Array(p).buffer},uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return a.newBufferFrom(p)}},d.arraybuffer={string:function(p){return u(new Uint8Array(p))},array:function(p){return c(new Uint8Array(p),new Array(p.byteLength))},arraybuffer:o,uint8array:function(p){return new Uint8Array(p)},nodebuffer:function(p){return a.newBufferFrom(new Uint8Array(p))}},d.uint8array={string:u,array:function(p){return c(p,new Array(p.length))},arraybuffer:function(p){return p.buffer},uint8array:o,nodebuffer:function(p){return a.newBufferFrom(p)}},d.nodebuffer={string:u,array:function(p){return c(p,new Array(p.length))},arraybuffer:function(p){return d.nodebuffer.uint8array(p).buffer},uint8array:function(p){return c(p,new Uint8Array(p.length))},nodebuffer:o},e.transformTo=function(p,f){if(f=f||"",!p)return f;e.checkSupport(p);var m=e.getTypeOf(f);return d[m][p](f)},e.resolve=function(p){for(var f=p.split("/"),m=[],g=0;g<f.length;g++){var y=f[g];y==="."||y===""&&g!==0&&g!==f.length-1||(y===".."?m.pop():m.push(y))}return m.join("/")},e.getTypeOf=function(p){return typeof p=="string"?"string":Object.prototype.toString.call(p)==="[object Array]"?"array":i.nodebuffer&&a.isBuffer(p)?"nodebuffer":i.uint8array&&p instanceof Uint8Array?"uint8array":i.arraybuffer&&p instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(p){if(!i[p.toLowerCase()])throw new Error(p+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(p){var f,m,g="";for(m=0;m<(p||"").length;m++)g+="\\x"+((f=p.charCodeAt(m))<16?"0":"")+f.toString(16).toUpperCase();return g},e.delay=function(p,f,m){setImmediate(function(){p.apply(m||null,f||[])})},e.inherits=function(p,f){function m(){}m.prototype=f.prototype,p.prototype=new m},e.extend=function(){var p,f,m={};for(p=0;p<arguments.length;p++)for(f in arguments[p])Object.prototype.hasOwnProperty.call(arguments[p],f)&&m[f]===void 0&&(m[f]=arguments[p][f]);return m},e.prepareContent=function(p,f,m,g,y){return n.Promise.resolve(f).then(function(v){return i.blob&&(v instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(v))!==-1)&&typeof FileReader<"u"?new n.Promise(function(b,x){var _=new FileReader;_.onload=function(S){b(S.target.result)},_.onerror=function(S){x(S.target.error)},_.readAsArrayBuffer(v)}):v}).then(function(v){var b=e.getTypeOf(v);return b?(b==="arraybuffer"?v=e.transformTo("uint8array",v):b==="string"&&(y?v=r.decode(v):m&&g!==!0&&(v=(function(x){return l(x,i.uint8array?new Uint8Array(x.length):new Array(x.length))})(v))),v):n.Promise.reject(new Error("Can't read the data of '"+p+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(s,t,e){"use strict";var i=s("./reader/readerFor"),r=s("./utils"),a=s("./signature"),n=s("./zipEntry"),o=s("./support");function l(h){this.files=[],this.loadOptions=h}l.prototype={checkSignature:function(h){if(!this.reader.readAndCheckSignature(h)){this.reader.index-=4;var u=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(u)+", expected "+r.pretty(h)+")")}},isSignature:function(h,u){var c=this.reader.index;this.reader.setIndex(h);var d=this.reader.readString(4)===u;return this.reader.setIndex(c),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var h=this.reader.readData(this.zipCommentLength),u=o.uint8array?"uint8array":"array",c=r.transformTo(u,h);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var h,u,c,d=this.zip64EndOfCentralSize-44;0<d;)h=this.reader.readInt(2),u=this.reader.readInt(4),c=this.reader.readData(u),this.zip64ExtensibleData[h]={id:h,length:u,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var h,u;for(h=0;h<this.files.length;h++)u=this.files[h],this.reader.setIndex(u.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),u.readLocalPart(this.reader),u.handleUTF8(),u.processAttributes()},readCentralDir:function(){var h;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(h=new n({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(h);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var h=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(h<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(h);var u=h;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(h=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(h),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var d=u-c;if(0<d)this.isSignature(u,a.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(h){this.reader=i(h)},load:function(h){this.prepareReader(h),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(s,t,e){"use strict";var i=s("./reader/readerFor"),r=s("./utils"),a=s("./compressedObject"),n=s("./crc32"),o=s("./utf8"),l=s("./compressions"),h=s("./support");function u(c,d){this.options=c,this.loadOptions=d}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var d,p;if(c.skip(22),this.fileNameLength=c.readInt(2),p=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(p),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=(function(f){for(var m in l)if(Object.prototype.hasOwnProperty.call(l,m)&&l[m].magic===f)return l[m];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,d,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var d=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(d),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var d,p,f,m=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<m;)d=c.readInt(2),p=c.readInt(2),f=c.readData(p),this.extraFields[d]={id:d,length:p,value:f};c.setIndex(m)},handleUTF8:function(){var c=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var p=r.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(p)}var f=this.findExtraFieldUnicodeComment();if(f!==null)this.fileCommentStr=f;else{var m=r.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var d=i(c.value);return d.readInt(1)!==1||n(this.fileName)!==d.readInt(4)?null:o.utf8decode(d.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var d=i(c.value);return d.readInt(1)!==1||n(this.fileComment)!==d.readInt(4)?null:o.utf8decode(d.readData(c.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(s,t,e){"use strict";function i(d,p,f){this.name=d,this.dir=f.dir,this.date=f.date,this.comment=f.comment,this.unixPermissions=f.unixPermissions,this.dosPermissions=f.dosPermissions,this._data=p,this._dataBinary=f.binary,this.options={compression:f.compression,compressionOptions:f.compressionOptions}}var r=s("./stream/StreamHelper"),a=s("./stream/DataWorker"),n=s("./utf8"),o=s("./compressedObject"),l=s("./stream/GenericWorker");i.prototype={internalStream:function(d){var p=null,f="string";try{if(!d)throw new Error("No output type specified.");var m=(f=d.toLowerCase())==="string"||f==="text";f!=="binarystring"&&f!=="text"||(f="string"),p=this._decompressWorker();var g=!this._dataBinary;g&&!m&&(p=p.pipe(new n.Utf8EncodeWorker)),!g&&m&&(p=p.pipe(new n.Utf8DecodeWorker))}catch(y){(p=new l("error")).error(y)}return new r(p,f,"")},async:function(d,p){return this.internalStream(d).accumulate(p)},nodeStream:function(d,p){return this.internalStream(d||"nodebuffer").toNodejsStream(p)},_compressWorker:function(d,p){if(this._data instanceof o&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var f=this._decompressWorker();return this._dataBinary||(f=f.pipe(new n.Utf8EncodeWorker)),o.createWorkerFrom(f,d,p)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<h.length;c++)i.prototype[h[c]]=u;t.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(s,t,e){(function(i){"use strict";var r,a,n=i.MutationObserver||i.WebKitMutationObserver;if(n){var o=0,l=new n(d),h=i.document.createTextNode("");l.observe(h,{characterData:!0}),r=function(){h.data=o=++o%2}}else if(i.setImmediate||i.MessageChannel===void 0)r="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var p=i.document.createElement("script");p.onreadystatechange=function(){d(),p.onreadystatechange=null,p.parentNode.removeChild(p),p=null},i.document.documentElement.appendChild(p)}:function(){setTimeout(d,0)};else{var u=new i.MessageChannel;u.port1.onmessage=d,r=function(){u.port2.postMessage(0)}}var c=[];function d(){var p,f;a=!0;for(var m=c.length;m;){for(f=c,c=[],p=-1;++p<m;)f[p]();m=c.length}a=!1}t.exports=function(p){c.push(p)!==1||a||r()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(s,t,e){"use strict";var i=s("immediate");function r(){}var a={},n=["REJECTED"],o=["FULFILLED"],l=["PENDING"];function h(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,m!==r&&p(this,m)}function u(m,g,y){this.promise=m,typeof g=="function"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}function c(m,g,y){i(function(){var v;try{v=g(y)}catch(b){return a.reject(m,b)}v===m?a.reject(m,new TypeError("Cannot resolve promise with itself")):a.resolve(m,v)})}function d(m){var g=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof g=="function")return function(){g.apply(m,arguments)}}function p(m,g){var y=!1;function v(_){y||(y=!0,a.reject(m,_))}function b(_){y||(y=!0,a.resolve(m,_))}var x=f(function(){g(b,v)});x.status==="error"&&v(x.value)}function f(m,g){var y={};try{y.value=m(g),y.status="success"}catch(v){y.status="error",y.value=v}return y}(t.exports=h).prototype.finally=function(m){if(typeof m!="function")return this;var g=this.constructor;return this.then(function(y){return g.resolve(m()).then(function(){return y})},function(y){return g.resolve(m()).then(function(){throw y})})},h.prototype.catch=function(m){return this.then(null,m)},h.prototype.then=function(m,g){if(typeof m!="function"&&this.state===o||typeof g!="function"&&this.state===n)return this;var y=new this.constructor(r);return this.state!==l?c(y,this.state===o?m:g,this.outcome):this.queue.push(new u(y,m,g)),y},u.prototype.callFulfilled=function(m){a.resolve(this.promise,m)},u.prototype.otherCallFulfilled=function(m){c(this.promise,this.onFulfilled,m)},u.prototype.callRejected=function(m){a.reject(this.promise,m)},u.prototype.otherCallRejected=function(m){c(this.promise,this.onRejected,m)},a.resolve=function(m,g){var y=f(d,g);if(y.status==="error")return a.reject(m,y.value);var v=y.value;if(v)p(m,v);else{m.state=o,m.outcome=g;for(var b=-1,x=m.queue.length;++b<x;)m.queue[b].callFulfilled(g)}return m},a.reject=function(m,g){m.state=n,m.outcome=g;for(var y=-1,v=m.queue.length;++y<v;)m.queue[y].callRejected(g);return m},h.resolve=function(m){return m instanceof this?m:a.resolve(new this(r),m)},h.reject=function(m){var g=new this(r);return a.reject(g,m)},h.all=function(m){var g=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=m.length,v=!1;if(!y)return this.resolve([]);for(var b=new Array(y),x=0,_=-1,S=new this(r);++_<y;)w(m[_],_);return S;function w(P,D){g.resolve(P).then(function($){b[D]=$,++x!==y||v||(v=!0,a.resolve(S,b))},function($){v||(v=!0,a.reject(S,$))})}},h.race=function(m){var g=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=m.length,v=!1;if(!y)return this.resolve([]);for(var b=-1,x=new this(r);++b<y;)_=m[b],g.resolve(_).then(function(S){v||(v=!0,a.resolve(x,S))},function(S){v||(v=!0,a.reject(x,S))});var _;return x}},{immediate:36}],38:[function(s,t,e){"use strict";var i={};(0,s("./lib/utils/common").assign)(i,s("./lib/deflate"),s("./lib/inflate"),s("./lib/zlib/constants")),t.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(s,t,e){"use strict";var i=s("./zlib/deflate"),r=s("./utils/common"),a=s("./utils/strings"),n=s("./zlib/messages"),o=s("./zlib/zstream"),l=Object.prototype.toString,h=0,u=-1,c=0,d=8;function p(m){if(!(this instanceof p))return new p(m);this.options=r.assign({level:u,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},m||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var y=i.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(y!==h)throw new Error(n[y]);if(g.header&&i.deflateSetHeader(this.strm,g.header),g.dictionary){var v;if(v=typeof g.dictionary=="string"?a.string2buf(g.dictionary):l.call(g.dictionary)==="[object ArrayBuffer]"?new Uint8Array(g.dictionary):g.dictionary,(y=i.deflateSetDictionary(this.strm,v))!==h)throw new Error(n[y]);this._dict_set=!0}}function f(m,g){var y=new p(g);if(y.push(m,!0),y.err)throw y.msg||n[y.err];return y.result}p.prototype.push=function(m,g){var y,v,b=this.strm,x=this.options.chunkSize;if(this.ended)return!1;v=g===~~g?g:g===!0?4:0,typeof m=="string"?b.input=a.string2buf(m):l.call(m)==="[object ArrayBuffer]"?b.input=new Uint8Array(m):b.input=m,b.next_in=0,b.avail_in=b.input.length;do{if(b.avail_out===0&&(b.output=new r.Buf8(x),b.next_out=0,b.avail_out=x),(y=i.deflate(b,v))!==1&&y!==h)return this.onEnd(y),!(this.ended=!0);b.avail_out!==0&&(b.avail_in!==0||v!==4&&v!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(r.shrinkBuf(b.output,b.next_out))):this.onData(r.shrinkBuf(b.output,b.next_out)))}while((0<b.avail_in||b.avail_out===0)&&y!==1);return v===4?(y=i.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===h):v!==2||(this.onEnd(h),!(b.avail_out=0))},p.prototype.onData=function(m){this.chunks.push(m)},p.prototype.onEnd=function(m){m===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},e.Deflate=p,e.deflate=f,e.deflateRaw=function(m,g){return(g=g||{}).raw=!0,f(m,g)},e.gzip=function(m,g){return(g=g||{}).gzip=!0,f(m,g)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(s,t,e){"use strict";var i=s("./zlib/inflate"),r=s("./utils/common"),a=s("./utils/strings"),n=s("./zlib/constants"),o=s("./zlib/messages"),l=s("./zlib/zstream"),h=s("./zlib/gzheader"),u=Object.prototype.toString;function c(p){if(!(this instanceof c))return new c(p);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},p||{});var f=this.options;f.raw&&0<=f.windowBits&&f.windowBits<16&&(f.windowBits=-f.windowBits,f.windowBits===0&&(f.windowBits=-15)),!(0<=f.windowBits&&f.windowBits<16)||p&&p.windowBits||(f.windowBits+=32),15<f.windowBits&&f.windowBits<48&&(15&f.windowBits)==0&&(f.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var m=i.inflateInit2(this.strm,f.windowBits);if(m!==n.Z_OK)throw new Error(o[m]);this.header=new h,i.inflateGetHeader(this.strm,this.header)}function d(p,f){var m=new c(f);if(m.push(p,!0),m.err)throw m.msg||o[m.err];return m.result}c.prototype.push=function(p,f){var m,g,y,v,b,x,_=this.strm,S=this.options.chunkSize,w=this.options.dictionary,P=!1;if(this.ended)return!1;g=f===~~f?f:f===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof p=="string"?_.input=a.binstring2buf(p):u.call(p)==="[object ArrayBuffer]"?_.input=new Uint8Array(p):_.input=p,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new r.Buf8(S),_.next_out=0,_.avail_out=S),(m=i.inflate(_,n.Z_NO_FLUSH))===n.Z_NEED_DICT&&w&&(x=typeof w=="string"?a.string2buf(w):u.call(w)==="[object ArrayBuffer]"?new Uint8Array(w):w,m=i.inflateSetDictionary(this.strm,x)),m===n.Z_BUF_ERROR&&P===!0&&(m=n.Z_OK,P=!1),m!==n.Z_STREAM_END&&m!==n.Z_OK)return this.onEnd(m),!(this.ended=!0);_.next_out&&(_.avail_out!==0&&m!==n.Z_STREAM_END&&(_.avail_in!==0||g!==n.Z_FINISH&&g!==n.Z_SYNC_FLUSH)||(this.options.to==="string"?(y=a.utf8border(_.output,_.next_out),v=_.next_out-y,b=a.buf2string(_.output,y),_.next_out=v,_.avail_out=S-v,v&&r.arraySet(_.output,_.output,y,v,0),this.onData(b)):this.onData(r.shrinkBuf(_.output,_.next_out)))),_.avail_in===0&&_.avail_out===0&&(P=!0)}while((0<_.avail_in||_.avail_out===0)&&m!==n.Z_STREAM_END);return m===n.Z_STREAM_END&&(g=n.Z_FINISH),g===n.Z_FINISH?(m=i.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===n.Z_OK):g!==n.Z_SYNC_FLUSH||(this.onEnd(n.Z_OK),!(_.avail_out=0))},c.prototype.onData=function(p){this.chunks.push(p)},c.prototype.onEnd=function(p){p===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},e.Inflate=c,e.inflate=d,e.inflateRaw=function(p,f){return(f=f||{}).raw=!0,d(p,f)},e.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(s,t,e){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";e.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var l=o.shift();if(l){if(typeof l!="object")throw new TypeError(l+"must be non-object");for(var h in l)l.hasOwnProperty(h)&&(n[h]=l[h])}}return n},e.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var r={arraySet:function(n,o,l,h,u){if(o.subarray&&n.subarray)n.set(o.subarray(l,l+h),u);else for(var c=0;c<h;c++)n[u+c]=o[l+c]},flattenChunks:function(n){var o,l,h,u,c,d;for(o=h=0,l=n.length;o<l;o++)h+=n[o].length;for(d=new Uint8Array(h),o=u=0,l=n.length;o<l;o++)c=n[o],d.set(c,u),u+=c.length;return d}},a={arraySet:function(n,o,l,h,u){for(var c=0;c<h;c++)n[u+c]=o[l+c]},flattenChunks:function(n){return[].concat.apply([],n)}};e.setTyped=function(n){n?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(i)},{}],42:[function(s,t,e){"use strict";var i=s("./common"),r=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var n=new i.Buf8(256),o=0;o<256;o++)n[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function l(h,u){if(u<65537&&(h.subarray&&a||!h.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(h,u));for(var c="",d=0;d<u;d++)c+=String.fromCharCode(h[d]);return c}n[254]=n[254]=1,e.string2buf=function(h){var u,c,d,p,f,m=h.length,g=0;for(p=0;p<m;p++)(64512&(c=h.charCodeAt(p)))==55296&&p+1<m&&(64512&(d=h.charCodeAt(p+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),p++),g+=c<128?1:c<2048?2:c<65536?3:4;for(u=new i.Buf8(g),p=f=0;f<g;p++)(64512&(c=h.charCodeAt(p)))==55296&&p+1<m&&(64512&(d=h.charCodeAt(p+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),p++),c<128?u[f++]=c:(c<2048?u[f++]=192|c>>>6:(c<65536?u[f++]=224|c>>>12:(u[f++]=240|c>>>18,u[f++]=128|c>>>12&63),u[f++]=128|c>>>6&63),u[f++]=128|63&c);return u},e.buf2binstring=function(h){return l(h,h.length)},e.binstring2buf=function(h){for(var u=new i.Buf8(h.length),c=0,d=u.length;c<d;c++)u[c]=h.charCodeAt(c);return u},e.buf2string=function(h,u){var c,d,p,f,m=u||h.length,g=new Array(2*m);for(c=d=0;c<m;)if((p=h[c++])<128)g[d++]=p;else if(4<(f=n[p]))g[d++]=65533,c+=f-1;else{for(p&=f===2?31:f===3?15:7;1<f&&c<m;)p=p<<6|63&h[c++],f--;1<f?g[d++]=65533:p<65536?g[d++]=p:(p-=65536,g[d++]=55296|p>>10&1023,g[d++]=56320|1023&p)}return l(g,d)},e.utf8border=function(h,u){var c;for((u=u||h.length)>h.length&&(u=h.length),c=u-1;0<=c&&(192&h[c])==128;)c--;return c<0||c===0?u:c+n[h[c]]>u?c:u}},{"./common":41}],43:[function(s,t,e){"use strict";t.exports=function(i,r,a,n){for(var o=65535&i|0,l=i>>>16&65535|0,h=0;a!==0;){for(a-=h=2e3<a?2e3:a;l=l+(o=o+r[n++]|0)|0,--h;);o%=65521,l%=65521}return o|l<<16|0}},{}],44:[function(s,t,e){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(s,t,e){"use strict";var i=(function(){for(var r,a=[],n=0;n<256;n++){r=n;for(var o=0;o<8;o++)r=1&r?3988292384^r>>>1:r>>>1;a[n]=r}return a})();t.exports=function(r,a,n,o){var l=i,h=o+n;r^=-1;for(var u=o;u<h;u++)r=r>>>8^l[255&(r^a[u])];return-1^r}},{}],46:[function(s,t,e){"use strict";var i,r=s("../utils/common"),a=s("./trees"),n=s("./adler32"),o=s("./crc32"),l=s("./messages"),h=0,u=4,c=0,d=-2,p=-1,f=4,m=2,g=8,y=9,v=286,b=30,x=19,_=2*v+1,S=15,w=3,P=258,D=P+w+1,$=42,A=113,T=1,I=2,N=3,B=4;function W(O,le){return O.msg=l[le],le}function z(O){return(O<<1)-(4<O?9:0)}function K(O){for(var le=O.length;0<=--le;)O[le]=0}function V(O){var le=O.state,oe=le.pending;oe>O.avail_out&&(oe=O.avail_out),oe!==0&&(r.arraySet(O.output,le.pending_buf,le.pending_out,oe,O.next_out),O.next_out+=oe,le.pending_out+=oe,O.total_out+=oe,O.avail_out-=oe,le.pending-=oe,le.pending===0&&(le.pending_out=0))}function E(O,le){a._tr_flush_block(O,0<=O.block_start?O.block_start:-1,O.strstart-O.block_start,le),O.block_start=O.strstart,V(O.strm)}function ie(O,le){O.pending_buf[O.pending++]=le}function U(O,le){O.pending_buf[O.pending++]=le>>>8&255,O.pending_buf[O.pending++]=255&le}function Z(O,le){var oe,H,j=O.max_chain_length,J=O.strstart,ve=O.prev_length,be=O.nice_match,re=O.strstart>O.w_size-D?O.strstart-(O.w_size-D):0,Pe=O.window,je=O.w_mask,$e=O.prev,ot=O.strstart+P,ai=Pe[J+ve-1],It=Pe[J+ve];O.prev_length>=O.good_match&&(j>>=2),be>O.lookahead&&(be=O.lookahead);do if(Pe[(oe=le)+ve]===It&&Pe[oe+ve-1]===ai&&Pe[oe]===Pe[J]&&Pe[++oe]===Pe[J+1]){J+=2,oe++;do;while(Pe[++J]===Pe[++oe]&&Pe[++J]===Pe[++oe]&&Pe[++J]===Pe[++oe]&&Pe[++J]===Pe[++oe]&&Pe[++J]===Pe[++oe]&&Pe[++J]===Pe[++oe]&&Pe[++J]===Pe[++oe]&&Pe[++J]===Pe[++oe]&&J<ot);if(H=P-(ot-J),J=ot-P,ve<H){if(O.match_start=le,be<=(ve=H))break;ai=Pe[J+ve-1],It=Pe[J+ve]}}while((le=$e[le&je])>re&&--j!=0);return ve<=O.lookahead?ve:O.lookahead}function ce(O){var le,oe,H,j,J,ve,be,re,Pe,je,$e=O.w_size;do{if(j=O.window_size-O.lookahead-O.strstart,O.strstart>=$e+($e-D)){for(r.arraySet(O.window,O.window,$e,$e,0),O.match_start-=$e,O.strstart-=$e,O.block_start-=$e,le=oe=O.hash_size;H=O.head[--le],O.head[le]=$e<=H?H-$e:0,--oe;);for(le=oe=$e;H=O.prev[--le],O.prev[le]=$e<=H?H-$e:0,--oe;);j+=$e}if(O.strm.avail_in===0)break;if(ve=O.strm,be=O.window,re=O.strstart+O.lookahead,Pe=j,je=void 0,je=ve.avail_in,Pe<je&&(je=Pe),oe=je===0?0:(ve.avail_in-=je,r.arraySet(be,ve.input,ve.next_in,je,re),ve.state.wrap===1?ve.adler=n(ve.adler,be,je,re):ve.state.wrap===2&&(ve.adler=o(ve.adler,be,je,re)),ve.next_in+=je,ve.total_in+=je,je),O.lookahead+=oe,O.lookahead+O.insert>=w)for(J=O.strstart-O.insert,O.ins_h=O.window[J],O.ins_h=(O.ins_h<<O.hash_shift^O.window[J+1])&O.hash_mask;O.insert&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[J+w-1])&O.hash_mask,O.prev[J&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=J,J++,O.insert--,!(O.lookahead+O.insert<w)););}while(O.lookahead<D&&O.strm.avail_in!==0)}function Le(O,le){for(var oe,H;;){if(O.lookahead<D){if(ce(O),O.lookahead<D&&le===h)return T;if(O.lookahead===0)break}if(oe=0,O.lookahead>=w&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+w-1])&O.hash_mask,oe=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),oe!==0&&O.strstart-oe<=O.w_size-D&&(O.match_length=Z(O,oe)),O.match_length>=w)if(H=a._tr_tally(O,O.strstart-O.match_start,O.match_length-w),O.lookahead-=O.match_length,O.match_length<=O.max_lazy_match&&O.lookahead>=w){for(O.match_length--;O.strstart++,O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+w-1])&O.hash_mask,oe=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart,--O.match_length!=0;);O.strstart++}else O.strstart+=O.match_length,O.match_length=0,O.ins_h=O.window[O.strstart],O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+1])&O.hash_mask;else H=a._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++;if(H&&(E(O,!1),O.strm.avail_out===0))return T}return O.insert=O.strstart<w-1?O.strstart:w-1,le===u?(E(O,!0),O.strm.avail_out===0?N:B):O.last_lit&&(E(O,!1),O.strm.avail_out===0)?T:I}function we(O,le){for(var oe,H,j;;){if(O.lookahead<D){if(ce(O),O.lookahead<D&&le===h)return T;if(O.lookahead===0)break}if(oe=0,O.lookahead>=w&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+w-1])&O.hash_mask,oe=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),O.prev_length=O.match_length,O.prev_match=O.match_start,O.match_length=w-1,oe!==0&&O.prev_length<O.max_lazy_match&&O.strstart-oe<=O.w_size-D&&(O.match_length=Z(O,oe),O.match_length<=5&&(O.strategy===1||O.match_length===w&&4096<O.strstart-O.match_start)&&(O.match_length=w-1)),O.prev_length>=w&&O.match_length<=O.prev_length){for(j=O.strstart+O.lookahead-w,H=a._tr_tally(O,O.strstart-1-O.prev_match,O.prev_length-w),O.lookahead-=O.prev_length-1,O.prev_length-=2;++O.strstart<=j&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+w-1])&O.hash_mask,oe=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),--O.prev_length!=0;);if(O.match_available=0,O.match_length=w-1,O.strstart++,H&&(E(O,!1),O.strm.avail_out===0))return T}else if(O.match_available){if((H=a._tr_tally(O,0,O.window[O.strstart-1]))&&E(O,!1),O.strstart++,O.lookahead--,O.strm.avail_out===0)return T}else O.match_available=1,O.strstart++,O.lookahead--}return O.match_available&&(H=a._tr_tally(O,0,O.window[O.strstart-1]),O.match_available=0),O.insert=O.strstart<w-1?O.strstart:w-1,le===u?(E(O,!0),O.strm.avail_out===0?N:B):O.last_lit&&(E(O,!1),O.strm.avail_out===0)?T:I}function Te(O,le,oe,H,j){this.good_length=O,this.max_lazy=le,this.nice_length=oe,this.max_chain=H,this.func=j}function Ze(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(2*_),this.dyn_dtree=new r.Buf16(2*(2*b+1)),this.bl_tree=new r.Buf16(2*(2*x+1)),K(this.dyn_ltree),K(this.dyn_dtree),K(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(S+1),this.heap=new r.Buf16(2*v+1),K(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(2*v+1),K(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ve(O){var le;return O&&O.state?(O.total_in=O.total_out=0,O.data_type=m,(le=O.state).pending=0,le.pending_out=0,le.wrap<0&&(le.wrap=-le.wrap),le.status=le.wrap?$:A,O.adler=le.wrap===2?0:1,le.last_flush=h,a._tr_init(le),c):W(O,d)}function kt(O){var le=Ve(O);return le===c&&(function(oe){oe.window_size=2*oe.w_size,K(oe.head),oe.max_lazy_match=i[oe.level].max_lazy,oe.good_match=i[oe.level].good_length,oe.nice_match=i[oe.level].nice_length,oe.max_chain_length=i[oe.level].max_chain,oe.strstart=0,oe.block_start=0,oe.lookahead=0,oe.insert=0,oe.match_length=oe.prev_length=w-1,oe.match_available=0,oe.ins_h=0})(O.state),le}function jt(O,le,oe,H,j,J){if(!O)return d;var ve=1;if(le===p&&(le=6),H<0?(ve=0,H=-H):15<H&&(ve=2,H-=16),j<1||y<j||oe!==g||H<8||15<H||le<0||9<le||J<0||f<J)return W(O,d);H===8&&(H=9);var be=new Ze;return(O.state=be).strm=O,be.wrap=ve,be.gzhead=null,be.w_bits=H,be.w_size=1<<be.w_bits,be.w_mask=be.w_size-1,be.hash_bits=j+7,be.hash_size=1<<be.hash_bits,be.hash_mask=be.hash_size-1,be.hash_shift=~~((be.hash_bits+w-1)/w),be.window=new r.Buf8(2*be.w_size),be.head=new r.Buf16(be.hash_size),be.prev=new r.Buf16(be.w_size),be.lit_bufsize=1<<j+6,be.pending_buf_size=4*be.lit_bufsize,be.pending_buf=new r.Buf8(be.pending_buf_size),be.d_buf=1*be.lit_bufsize,be.l_buf=3*be.lit_bufsize,be.level=le,be.strategy=J,be.method=oe,kt(O)}i=[new Te(0,0,0,0,function(O,le){var oe=65535;for(oe>O.pending_buf_size-5&&(oe=O.pending_buf_size-5);;){if(O.lookahead<=1){if(ce(O),O.lookahead===0&&le===h)return T;if(O.lookahead===0)break}O.strstart+=O.lookahead,O.lookahead=0;var H=O.block_start+oe;if((O.strstart===0||O.strstart>=H)&&(O.lookahead=O.strstart-H,O.strstart=H,E(O,!1),O.strm.avail_out===0)||O.strstart-O.block_start>=O.w_size-D&&(E(O,!1),O.strm.avail_out===0))return T}return O.insert=0,le===u?(E(O,!0),O.strm.avail_out===0?N:B):(O.strstart>O.block_start&&(E(O,!1),O.strm.avail_out),T)}),new Te(4,4,8,4,Le),new Te(4,5,16,8,Le),new Te(4,6,32,32,Le),new Te(4,4,16,16,we),new Te(8,16,32,32,we),new Te(8,16,128,128,we),new Te(8,32,128,256,we),new Te(32,128,258,1024,we),new Te(32,258,258,4096,we)],e.deflateInit=function(O,le){return jt(O,le,g,15,8,0)},e.deflateInit2=jt,e.deflateReset=kt,e.deflateResetKeep=Ve,e.deflateSetHeader=function(O,le){return O&&O.state?O.state.wrap!==2?d:(O.state.gzhead=le,c):d},e.deflate=function(O,le){var oe,H,j,J;if(!O||!O.state||5<le||le<0)return O?W(O,d):d;if(H=O.state,!O.output||!O.input&&O.avail_in!==0||H.status===666&&le!==u)return W(O,O.avail_out===0?-5:d);if(H.strm=O,oe=H.last_flush,H.last_flush=le,H.status===$)if(H.wrap===2)O.adler=0,ie(H,31),ie(H,139),ie(H,8),H.gzhead?(ie(H,(H.gzhead.text?1:0)+(H.gzhead.hcrc?2:0)+(H.gzhead.extra?4:0)+(H.gzhead.name?8:0)+(H.gzhead.comment?16:0)),ie(H,255&H.gzhead.time),ie(H,H.gzhead.time>>8&255),ie(H,H.gzhead.time>>16&255),ie(H,H.gzhead.time>>24&255),ie(H,H.level===9?2:2<=H.strategy||H.level<2?4:0),ie(H,255&H.gzhead.os),H.gzhead.extra&&H.gzhead.extra.length&&(ie(H,255&H.gzhead.extra.length),ie(H,H.gzhead.extra.length>>8&255)),H.gzhead.hcrc&&(O.adler=o(O.adler,H.pending_buf,H.pending,0)),H.gzindex=0,H.status=69):(ie(H,0),ie(H,0),ie(H,0),ie(H,0),ie(H,0),ie(H,H.level===9?2:2<=H.strategy||H.level<2?4:0),ie(H,3),H.status=A);else{var ve=g+(H.w_bits-8<<4)<<8;ve|=(2<=H.strategy||H.level<2?0:H.level<6?1:H.level===6?2:3)<<6,H.strstart!==0&&(ve|=32),ve+=31-ve%31,H.status=A,U(H,ve),H.strstart!==0&&(U(H,O.adler>>>16),U(H,65535&O.adler)),O.adler=1}if(H.status===69)if(H.gzhead.extra){for(j=H.pending;H.gzindex<(65535&H.gzhead.extra.length)&&(H.pending!==H.pending_buf_size||(H.gzhead.hcrc&&H.pending>j&&(O.adler=o(O.adler,H.pending_buf,H.pending-j,j)),V(O),j=H.pending,H.pending!==H.pending_buf_size));)ie(H,255&H.gzhead.extra[H.gzindex]),H.gzindex++;H.gzhead.hcrc&&H.pending>j&&(O.adler=o(O.adler,H.pending_buf,H.pending-j,j)),H.gzindex===H.gzhead.extra.length&&(H.gzindex=0,H.status=73)}else H.status=73;if(H.status===73)if(H.gzhead.name){j=H.pending;do{if(H.pending===H.pending_buf_size&&(H.gzhead.hcrc&&H.pending>j&&(O.adler=o(O.adler,H.pending_buf,H.pending-j,j)),V(O),j=H.pending,H.pending===H.pending_buf_size)){J=1;break}J=H.gzindex<H.gzhead.name.length?255&H.gzhead.name.charCodeAt(H.gzindex++):0,ie(H,J)}while(J!==0);H.gzhead.hcrc&&H.pending>j&&(O.adler=o(O.adler,H.pending_buf,H.pending-j,j)),J===0&&(H.gzindex=0,H.status=91)}else H.status=91;if(H.status===91)if(H.gzhead.comment){j=H.pending;do{if(H.pending===H.pending_buf_size&&(H.gzhead.hcrc&&H.pending>j&&(O.adler=o(O.adler,H.pending_buf,H.pending-j,j)),V(O),j=H.pending,H.pending===H.pending_buf_size)){J=1;break}J=H.gzindex<H.gzhead.comment.length?255&H.gzhead.comment.charCodeAt(H.gzindex++):0,ie(H,J)}while(J!==0);H.gzhead.hcrc&&H.pending>j&&(O.adler=o(O.adler,H.pending_buf,H.pending-j,j)),J===0&&(H.status=103)}else H.status=103;if(H.status===103&&(H.gzhead.hcrc?(H.pending+2>H.pending_buf_size&&V(O),H.pending+2<=H.pending_buf_size&&(ie(H,255&O.adler),ie(H,O.adler>>8&255),O.adler=0,H.status=A)):H.status=A),H.pending!==0){if(V(O),O.avail_out===0)return H.last_flush=-1,c}else if(O.avail_in===0&&z(le)<=z(oe)&&le!==u)return W(O,-5);if(H.status===666&&O.avail_in!==0)return W(O,-5);if(O.avail_in!==0||H.lookahead!==0||le!==h&&H.status!==666){var be=H.strategy===2?(function(re,Pe){for(var je;;){if(re.lookahead===0&&(ce(re),re.lookahead===0)){if(Pe===h)return T;break}if(re.match_length=0,je=a._tr_tally(re,0,re.window[re.strstart]),re.lookahead--,re.strstart++,je&&(E(re,!1),re.strm.avail_out===0))return T}return re.insert=0,Pe===u?(E(re,!0),re.strm.avail_out===0?N:B):re.last_lit&&(E(re,!1),re.strm.avail_out===0)?T:I})(H,le):H.strategy===3?(function(re,Pe){for(var je,$e,ot,ai,It=re.window;;){if(re.lookahead<=P){if(ce(re),re.lookahead<=P&&Pe===h)return T;if(re.lookahead===0)break}if(re.match_length=0,re.lookahead>=w&&0<re.strstart&&($e=It[ot=re.strstart-1])===It[++ot]&&$e===It[++ot]&&$e===It[++ot]){ai=re.strstart+P;do;while($e===It[++ot]&&$e===It[++ot]&&$e===It[++ot]&&$e===It[++ot]&&$e===It[++ot]&&$e===It[++ot]&&$e===It[++ot]&&$e===It[++ot]&&ot<ai);re.match_length=P-(ai-ot),re.match_length>re.lookahead&&(re.match_length=re.lookahead)}if(re.match_length>=w?(je=a._tr_tally(re,1,re.match_length-w),re.lookahead-=re.match_length,re.strstart+=re.match_length,re.match_length=0):(je=a._tr_tally(re,0,re.window[re.strstart]),re.lookahead--,re.strstart++),je&&(E(re,!1),re.strm.avail_out===0))return T}return re.insert=0,Pe===u?(E(re,!0),re.strm.avail_out===0?N:B):re.last_lit&&(E(re,!1),re.strm.avail_out===0)?T:I})(H,le):i[H.level].func(H,le);if(be!==N&&be!==B||(H.status=666),be===T||be===N)return O.avail_out===0&&(H.last_flush=-1),c;if(be===I&&(le===1?a._tr_align(H):le!==5&&(a._tr_stored_block(H,0,0,!1),le===3&&(K(H.head),H.lookahead===0&&(H.strstart=0,H.block_start=0,H.insert=0))),V(O),O.avail_out===0))return H.last_flush=-1,c}return le!==u?c:H.wrap<=0?1:(H.wrap===2?(ie(H,255&O.adler),ie(H,O.adler>>8&255),ie(H,O.adler>>16&255),ie(H,O.adler>>24&255),ie(H,255&O.total_in),ie(H,O.total_in>>8&255),ie(H,O.total_in>>16&255),ie(H,O.total_in>>24&255)):(U(H,O.adler>>>16),U(H,65535&O.adler)),V(O),0<H.wrap&&(H.wrap=-H.wrap),H.pending!==0?c:1)},e.deflateEnd=function(O){var le;return O&&O.state?(le=O.state.status)!==$&&le!==69&&le!==73&&le!==91&&le!==103&&le!==A&&le!==666?W(O,d):(O.state=null,le===A?W(O,-3):c):d},e.deflateSetDictionary=function(O,le){var oe,H,j,J,ve,be,re,Pe,je=le.length;if(!O||!O.state||(J=(oe=O.state).wrap)===2||J===1&&oe.status!==$||oe.lookahead)return d;for(J===1&&(O.adler=n(O.adler,le,je,0)),oe.wrap=0,je>=oe.w_size&&(J===0&&(K(oe.head),oe.strstart=0,oe.block_start=0,oe.insert=0),Pe=new r.Buf8(oe.w_size),r.arraySet(Pe,le,je-oe.w_size,oe.w_size,0),le=Pe,je=oe.w_size),ve=O.avail_in,be=O.next_in,re=O.input,O.avail_in=je,O.next_in=0,O.input=le,ce(oe);oe.lookahead>=w;){for(H=oe.strstart,j=oe.lookahead-(w-1);oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[H+w-1])&oe.hash_mask,oe.prev[H&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=H,H++,--j;);oe.strstart=H,oe.lookahead=w-1,ce(oe)}return oe.strstart+=oe.lookahead,oe.block_start=oe.strstart,oe.insert=oe.lookahead,oe.lookahead=0,oe.match_length=oe.prev_length=w-1,oe.match_available=0,O.next_in=be,O.input=re,O.avail_in=ve,oe.wrap=J,c},e.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(s,t,e){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(s,t,e){"use strict";t.exports=function(i,r){var a,n,o,l,h,u,c,d,p,f,m,g,y,v,b,x,_,S,w,P,D,$,A,T,I;a=i.state,n=i.next_in,T=i.input,o=n+(i.avail_in-5),l=i.next_out,I=i.output,h=l-(r-i.avail_out),u=l+(i.avail_out-257),c=a.dmax,d=a.wsize,p=a.whave,f=a.wnext,m=a.window,g=a.hold,y=a.bits,v=a.lencode,b=a.distcode,x=(1<<a.lenbits)-1,_=(1<<a.distbits)-1;e:do{y<15&&(g+=T[n++]<<y,y+=8,g+=T[n++]<<y,y+=8),S=v[g&x];t:for(;;){if(g>>>=w=S>>>24,y-=w,(w=S>>>16&255)===0)I[l++]=65535&S;else{if(!(16&w)){if((64&w)==0){S=v[(65535&S)+(g&(1<<w)-1)];continue t}if(32&w){a.mode=12;break e}i.msg="invalid literal/length code",a.mode=30;break e}P=65535&S,(w&=15)&&(y<w&&(g+=T[n++]<<y,y+=8),P+=g&(1<<w)-1,g>>>=w,y-=w),y<15&&(g+=T[n++]<<y,y+=8,g+=T[n++]<<y,y+=8),S=b[g&_];i:for(;;){if(g>>>=w=S>>>24,y-=w,!(16&(w=S>>>16&255))){if((64&w)==0){S=b[(65535&S)+(g&(1<<w)-1)];continue i}i.msg="invalid distance code",a.mode=30;break e}if(D=65535&S,y<(w&=15)&&(g+=T[n++]<<y,(y+=8)<w&&(g+=T[n++]<<y,y+=8)),c<(D+=g&(1<<w)-1)){i.msg="invalid distance too far back",a.mode=30;break e}if(g>>>=w,y-=w,(w=l-h)<D){if(p<(w=D-w)&&a.sane){i.msg="invalid distance too far back",a.mode=30;break e}if(A=m,($=0)===f){if($+=d-w,w<P){for(P-=w;I[l++]=m[$++],--w;);$=l-D,A=I}}else if(f<w){if($+=d+f-w,(w-=f)<P){for(P-=w;I[l++]=m[$++],--w;);if($=0,f<P){for(P-=w=f;I[l++]=m[$++],--w;);$=l-D,A=I}}}else if($+=f-w,w<P){for(P-=w;I[l++]=m[$++],--w;);$=l-D,A=I}for(;2<P;)I[l++]=A[$++],I[l++]=A[$++],I[l++]=A[$++],P-=3;P&&(I[l++]=A[$++],1<P&&(I[l++]=A[$++]))}else{for($=l-D;I[l++]=I[$++],I[l++]=I[$++],I[l++]=I[$++],2<(P-=3););P&&(I[l++]=I[$++],1<P&&(I[l++]=I[$++]))}break}}break}}while(n<o&&l<u);n-=P=y>>3,g&=(1<<(y-=P<<3))-1,i.next_in=n,i.next_out=l,i.avail_in=n<o?o-n+5:5-(n-o),i.avail_out=l<u?u-l+257:257-(l-u),a.hold=g,a.bits=y}},{}],49:[function(s,t,e){"use strict";var i=s("../utils/common"),r=s("./adler32"),a=s("./crc32"),n=s("./inffast"),o=s("./inftrees"),l=1,h=2,u=0,c=-2,d=1,p=852,f=592;function m($){return($>>>24&255)+($>>>8&65280)+((65280&$)<<8)+((255&$)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y($){var A;return $&&$.state?(A=$.state,$.total_in=$.total_out=A.total=0,$.msg="",A.wrap&&($.adler=1&A.wrap),A.mode=d,A.last=0,A.havedict=0,A.dmax=32768,A.head=null,A.hold=0,A.bits=0,A.lencode=A.lendyn=new i.Buf32(p),A.distcode=A.distdyn=new i.Buf32(f),A.sane=1,A.back=-1,u):c}function v($){var A;return $&&$.state?((A=$.state).wsize=0,A.whave=0,A.wnext=0,y($)):c}function b($,A){var T,I;return $&&$.state?(I=$.state,A<0?(T=0,A=-A):(T=1+(A>>4),A<48&&(A&=15)),A&&(A<8||15<A)?c:(I.window!==null&&I.wbits!==A&&(I.window=null),I.wrap=T,I.wbits=A,v($))):c}function x($,A){var T,I;return $?(I=new g,($.state=I).window=null,(T=b($,A))!==u&&($.state=null),T):c}var _,S,w=!0;function P($){if(w){var A;for(_=new i.Buf32(512),S=new i.Buf32(32),A=0;A<144;)$.lens[A++]=8;for(;A<256;)$.lens[A++]=9;for(;A<280;)$.lens[A++]=7;for(;A<288;)$.lens[A++]=8;for(o(l,$.lens,0,288,_,0,$.work,{bits:9}),A=0;A<32;)$.lens[A++]=5;o(h,$.lens,0,32,S,0,$.work,{bits:5}),w=!1}$.lencode=_,$.lenbits=9,$.distcode=S,$.distbits=5}function D($,A,T,I){var N,B=$.state;return B.window===null&&(B.wsize=1<<B.wbits,B.wnext=0,B.whave=0,B.window=new i.Buf8(B.wsize)),I>=B.wsize?(i.arraySet(B.window,A,T-B.wsize,B.wsize,0),B.wnext=0,B.whave=B.wsize):(I<(N=B.wsize-B.wnext)&&(N=I),i.arraySet(B.window,A,T-I,N,B.wnext),(I-=N)?(i.arraySet(B.window,A,T-I,I,0),B.wnext=I,B.whave=B.wsize):(B.wnext+=N,B.wnext===B.wsize&&(B.wnext=0),B.whave<B.wsize&&(B.whave+=N))),0}e.inflateReset=v,e.inflateReset2=b,e.inflateResetKeep=y,e.inflateInit=function($){return x($,15)},e.inflateInit2=x,e.inflate=function($,A){var T,I,N,B,W,z,K,V,E,ie,U,Z,ce,Le,we,Te,Ze,Ve,kt,jt,O,le,oe,H,j=0,J=new i.Buf8(4),ve=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!$||!$.state||!$.output||!$.input&&$.avail_in!==0)return c;(T=$.state).mode===12&&(T.mode=13),W=$.next_out,N=$.output,K=$.avail_out,B=$.next_in,I=$.input,z=$.avail_in,V=T.hold,E=T.bits,ie=z,U=K,le=u;e:for(;;)switch(T.mode){case d:if(T.wrap===0){T.mode=13;break}for(;E<16;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if(2&T.wrap&&V===35615){J[T.check=0]=255&V,J[1]=V>>>8&255,T.check=a(T.check,J,2,0),E=V=0,T.mode=2;break}if(T.flags=0,T.head&&(T.head.done=!1),!(1&T.wrap)||(((255&V)<<8)+(V>>8))%31){$.msg="incorrect header check",T.mode=30;break}if((15&V)!=8){$.msg="unknown compression method",T.mode=30;break}if(E-=4,O=8+(15&(V>>>=4)),T.wbits===0)T.wbits=O;else if(O>T.wbits){$.msg="invalid window size",T.mode=30;break}T.dmax=1<<O,$.adler=T.check=1,T.mode=512&V?10:12,E=V=0;break;case 2:for(;E<16;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if(T.flags=V,(255&T.flags)!=8){$.msg="unknown compression method",T.mode=30;break}if(57344&T.flags){$.msg="unknown header flags set",T.mode=30;break}T.head&&(T.head.text=V>>8&1),512&T.flags&&(J[0]=255&V,J[1]=V>>>8&255,T.check=a(T.check,J,2,0)),E=V=0,T.mode=3;case 3:for(;E<32;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}T.head&&(T.head.time=V),512&T.flags&&(J[0]=255&V,J[1]=V>>>8&255,J[2]=V>>>16&255,J[3]=V>>>24&255,T.check=a(T.check,J,4,0)),E=V=0,T.mode=4;case 4:for(;E<16;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}T.head&&(T.head.xflags=255&V,T.head.os=V>>8),512&T.flags&&(J[0]=255&V,J[1]=V>>>8&255,T.check=a(T.check,J,2,0)),E=V=0,T.mode=5;case 5:if(1024&T.flags){for(;E<16;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}T.length=V,T.head&&(T.head.extra_len=V),512&T.flags&&(J[0]=255&V,J[1]=V>>>8&255,T.check=a(T.check,J,2,0)),E=V=0}else T.head&&(T.head.extra=null);T.mode=6;case 6:if(1024&T.flags&&(z<(Z=T.length)&&(Z=z),Z&&(T.head&&(O=T.head.extra_len-T.length,T.head.extra||(T.head.extra=new Array(T.head.extra_len)),i.arraySet(T.head.extra,I,B,Z,O)),512&T.flags&&(T.check=a(T.check,I,Z,B)),z-=Z,B+=Z,T.length-=Z),T.length))break e;T.length=0,T.mode=7;case 7:if(2048&T.flags){if(z===0)break e;for(Z=0;O=I[B+Z++],T.head&&O&&T.length<65536&&(T.head.name+=String.fromCharCode(O)),O&&Z<z;);if(512&T.flags&&(T.check=a(T.check,I,Z,B)),z-=Z,B+=Z,O)break e}else T.head&&(T.head.name=null);T.length=0,T.mode=8;case 8:if(4096&T.flags){if(z===0)break e;for(Z=0;O=I[B+Z++],T.head&&O&&T.length<65536&&(T.head.comment+=String.fromCharCode(O)),O&&Z<z;);if(512&T.flags&&(T.check=a(T.check,I,Z,B)),z-=Z,B+=Z,O)break e}else T.head&&(T.head.comment=null);T.mode=9;case 9:if(512&T.flags){for(;E<16;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if(V!==(65535&T.check)){$.msg="header crc mismatch",T.mode=30;break}E=V=0}T.head&&(T.head.hcrc=T.flags>>9&1,T.head.done=!0),$.adler=T.check=0,T.mode=12;break;case 10:for(;E<32;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}$.adler=T.check=m(V),E=V=0,T.mode=11;case 11:if(T.havedict===0)return $.next_out=W,$.avail_out=K,$.next_in=B,$.avail_in=z,T.hold=V,T.bits=E,2;$.adler=T.check=1,T.mode=12;case 12:if(A===5||A===6)break e;case 13:if(T.last){V>>>=7&E,E-=7&E,T.mode=27;break}for(;E<3;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}switch(T.last=1&V,E-=1,3&(V>>>=1)){case 0:T.mode=14;break;case 1:if(P(T),T.mode=20,A!==6)break;V>>>=2,E-=2;break e;case 2:T.mode=17;break;case 3:$.msg="invalid block type",T.mode=30}V>>>=2,E-=2;break;case 14:for(V>>>=7&E,E-=7&E;E<32;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if((65535&V)!=(V>>>16^65535)){$.msg="invalid stored block lengths",T.mode=30;break}if(T.length=65535&V,E=V=0,T.mode=15,A===6)break e;case 15:T.mode=16;case 16:if(Z=T.length){if(z<Z&&(Z=z),K<Z&&(Z=K),Z===0)break e;i.arraySet(N,I,B,Z,W),z-=Z,B+=Z,K-=Z,W+=Z,T.length-=Z;break}T.mode=12;break;case 17:for(;E<14;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if(T.nlen=257+(31&V),V>>>=5,E-=5,T.ndist=1+(31&V),V>>>=5,E-=5,T.ncode=4+(15&V),V>>>=4,E-=4,286<T.nlen||30<T.ndist){$.msg="too many length or distance symbols",T.mode=30;break}T.have=0,T.mode=18;case 18:for(;T.have<T.ncode;){for(;E<3;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}T.lens[ve[T.have++]]=7&V,V>>>=3,E-=3}for(;T.have<19;)T.lens[ve[T.have++]]=0;if(T.lencode=T.lendyn,T.lenbits=7,oe={bits:T.lenbits},le=o(0,T.lens,0,19,T.lencode,0,T.work,oe),T.lenbits=oe.bits,le){$.msg="invalid code lengths set",T.mode=30;break}T.have=0,T.mode=19;case 19:for(;T.have<T.nlen+T.ndist;){for(;Te=(j=T.lencode[V&(1<<T.lenbits)-1])>>>16&255,Ze=65535&j,!((we=j>>>24)<=E);){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if(Ze<16)V>>>=we,E-=we,T.lens[T.have++]=Ze;else{if(Ze===16){for(H=we+2;E<H;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if(V>>>=we,E-=we,T.have===0){$.msg="invalid bit length repeat",T.mode=30;break}O=T.lens[T.have-1],Z=3+(3&V),V>>>=2,E-=2}else if(Ze===17){for(H=we+3;E<H;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}E-=we,O=0,Z=3+(7&(V>>>=we)),V>>>=3,E-=3}else{for(H=we+7;E<H;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}E-=we,O=0,Z=11+(127&(V>>>=we)),V>>>=7,E-=7}if(T.have+Z>T.nlen+T.ndist){$.msg="invalid bit length repeat",T.mode=30;break}for(;Z--;)T.lens[T.have++]=O}}if(T.mode===30)break;if(T.lens[256]===0){$.msg="invalid code -- missing end-of-block",T.mode=30;break}if(T.lenbits=9,oe={bits:T.lenbits},le=o(l,T.lens,0,T.nlen,T.lencode,0,T.work,oe),T.lenbits=oe.bits,le){$.msg="invalid literal/lengths set",T.mode=30;break}if(T.distbits=6,T.distcode=T.distdyn,oe={bits:T.distbits},le=o(h,T.lens,T.nlen,T.ndist,T.distcode,0,T.work,oe),T.distbits=oe.bits,le){$.msg="invalid distances set",T.mode=30;break}if(T.mode=20,A===6)break e;case 20:T.mode=21;case 21:if(6<=z&&258<=K){$.next_out=W,$.avail_out=K,$.next_in=B,$.avail_in=z,T.hold=V,T.bits=E,n($,U),W=$.next_out,N=$.output,K=$.avail_out,B=$.next_in,I=$.input,z=$.avail_in,V=T.hold,E=T.bits,T.mode===12&&(T.back=-1);break}for(T.back=0;Te=(j=T.lencode[V&(1<<T.lenbits)-1])>>>16&255,Ze=65535&j,!((we=j>>>24)<=E);){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if(Te&&(240&Te)==0){for(Ve=we,kt=Te,jt=Ze;Te=(j=T.lencode[jt+((V&(1<<Ve+kt)-1)>>Ve)])>>>16&255,Ze=65535&j,!(Ve+(we=j>>>24)<=E);){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}V>>>=Ve,E-=Ve,T.back+=Ve}if(V>>>=we,E-=we,T.back+=we,T.length=Ze,Te===0){T.mode=26;break}if(32&Te){T.back=-1,T.mode=12;break}if(64&Te){$.msg="invalid literal/length code",T.mode=30;break}T.extra=15&Te,T.mode=22;case 22:if(T.extra){for(H=T.extra;E<H;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}T.length+=V&(1<<T.extra)-1,V>>>=T.extra,E-=T.extra,T.back+=T.extra}T.was=T.length,T.mode=23;case 23:for(;Te=(j=T.distcode[V&(1<<T.distbits)-1])>>>16&255,Ze=65535&j,!((we=j>>>24)<=E);){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if((240&Te)==0){for(Ve=we,kt=Te,jt=Ze;Te=(j=T.distcode[jt+((V&(1<<Ve+kt)-1)>>Ve)])>>>16&255,Ze=65535&j,!(Ve+(we=j>>>24)<=E);){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}V>>>=Ve,E-=Ve,T.back+=Ve}if(V>>>=we,E-=we,T.back+=we,64&Te){$.msg="invalid distance code",T.mode=30;break}T.offset=Ze,T.extra=15&Te,T.mode=24;case 24:if(T.extra){for(H=T.extra;E<H;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}T.offset+=V&(1<<T.extra)-1,V>>>=T.extra,E-=T.extra,T.back+=T.extra}if(T.offset>T.dmax){$.msg="invalid distance too far back",T.mode=30;break}T.mode=25;case 25:if(K===0)break e;if(Z=U-K,T.offset>Z){if((Z=T.offset-Z)>T.whave&&T.sane){$.msg="invalid distance too far back",T.mode=30;break}ce=Z>T.wnext?(Z-=T.wnext,T.wsize-Z):T.wnext-Z,Z>T.length&&(Z=T.length),Le=T.window}else Le=N,ce=W-T.offset,Z=T.length;for(K<Z&&(Z=K),K-=Z,T.length-=Z;N[W++]=Le[ce++],--Z;);T.length===0&&(T.mode=21);break;case 26:if(K===0)break e;N[W++]=T.length,K--,T.mode=21;break;case 27:if(T.wrap){for(;E<32;){if(z===0)break e;z--,V|=I[B++]<<E,E+=8}if(U-=K,$.total_out+=U,T.total+=U,U&&($.adler=T.check=T.flags?a(T.check,N,U,W-U):r(T.check,N,U,W-U)),U=K,(T.flags?V:m(V))!==T.check){$.msg="incorrect data check",T.mode=30;break}E=V=0}T.mode=28;case 28:if(T.wrap&&T.flags){for(;E<32;){if(z===0)break e;z--,V+=I[B++]<<E,E+=8}if(V!==(4294967295&T.total)){$.msg="incorrect length check",T.mode=30;break}E=V=0}T.mode=29;case 29:le=1;break e;case 30:le=-3;break e;case 31:return-4;default:return c}return $.next_out=W,$.avail_out=K,$.next_in=B,$.avail_in=z,T.hold=V,T.bits=E,(T.wsize||U!==$.avail_out&&T.mode<30&&(T.mode<27||A!==4))&&D($,$.output,$.next_out,U-$.avail_out)?(T.mode=31,-4):(ie-=$.avail_in,U-=$.avail_out,$.total_in+=ie,$.total_out+=U,T.total+=U,T.wrap&&U&&($.adler=T.check=T.flags?a(T.check,N,U,$.next_out-U):r(T.check,N,U,$.next_out-U)),$.data_type=T.bits+(T.last?64:0)+(T.mode===12?128:0)+(T.mode===20||T.mode===15?256:0),(ie==0&&U===0||A===4)&&le===u&&(le=-5),le)},e.inflateEnd=function($){if(!$||!$.state)return c;var A=$.state;return A.window&&(A.window=null),$.state=null,u},e.inflateGetHeader=function($,A){var T;return $&&$.state?(2&(T=$.state).wrap)==0?c:((T.head=A).done=!1,u):c},e.inflateSetDictionary=function($,A){var T,I=A.length;return $&&$.state?(T=$.state).wrap!==0&&T.mode!==11?c:T.mode===11&&r(1,A,I,0)!==T.check?-3:D($,A,I,I)?(T.mode=31,-4):(T.havedict=1,u):c},e.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(s,t,e){"use strict";var i=s("../utils/common"),r=[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],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],n=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(l,h,u,c,d,p,f,m){var g,y,v,b,x,_,S,w,P,D=m.bits,$=0,A=0,T=0,I=0,N=0,B=0,W=0,z=0,K=0,V=0,E=null,ie=0,U=new i.Buf16(16),Z=new i.Buf16(16),ce=null,Le=0;for($=0;$<=15;$++)U[$]=0;for(A=0;A<c;A++)U[h[u+A]]++;for(N=D,I=15;1<=I&&U[I]===0;I--);if(I<N&&(N=I),I===0)return d[p++]=20971520,d[p++]=20971520,m.bits=1,0;for(T=1;T<I&&U[T]===0;T++);for(N<T&&(N=T),$=z=1;$<=15;$++)if(z<<=1,(z-=U[$])<0)return-1;if(0<z&&(l===0||I!==1))return-1;for(Z[1]=0,$=1;$<15;$++)Z[$+1]=Z[$]+U[$];for(A=0;A<c;A++)h[u+A]!==0&&(f[Z[h[u+A]]++]=A);if(_=l===0?(E=ce=f,19):l===1?(E=r,ie-=257,ce=a,Le-=257,256):(E=n,ce=o,-1),$=T,x=p,W=A=V=0,v=-1,b=(K=1<<(B=N))-1,l===1&&852<K||l===2&&592<K)return 1;for(;;){for(S=$-W,P=f[A]<_?(w=0,f[A]):f[A]>_?(w=ce[Le+f[A]],E[ie+f[A]]):(w=96,0),g=1<<$-W,T=y=1<<B;d[x+(V>>W)+(y-=g)]=S<<24|w<<16|P|0,y!==0;);for(g=1<<$-1;V&g;)g>>=1;if(g!==0?(V&=g-1,V+=g):V=0,A++,--U[$]==0){if($===I)break;$=h[u+f[A]]}if(N<$&&(V&b)!==v){for(W===0&&(W=N),x+=T,z=1<<(B=$-W);B+W<I&&!((z-=U[B+W])<=0);)B++,z<<=1;if(K+=1<<B,l===1&&852<K||l===2&&592<K)return 1;d[v=V&b]=N<<24|B<<16|x-p|0}}return V!==0&&(d[x+V]=$-W<<24|64<<16|0),m.bits=N,0}},{"../utils/common":41}],51:[function(s,t,e){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(s,t,e){"use strict";var i=s("../utils/common"),r=0,a=1;function n(j){for(var J=j.length;0<=--J;)j[J]=0}var o=0,l=29,h=256,u=h+1+l,c=30,d=19,p=2*u+1,f=15,m=16,g=7,y=256,v=16,b=17,x=18,_=[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],S=[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],w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=new Array(2*(u+2));n(D);var $=new Array(2*c);n($);var A=new Array(512);n(A);var T=new Array(256);n(T);var I=new Array(l);n(I);var N,B,W,z=new Array(c);function K(j,J,ve,be,re){this.static_tree=j,this.extra_bits=J,this.extra_base=ve,this.elems=be,this.max_length=re,this.has_stree=j&&j.length}function V(j,J){this.dyn_tree=j,this.max_code=0,this.stat_desc=J}function E(j){return j<256?A[j]:A[256+(j>>>7)]}function ie(j,J){j.pending_buf[j.pending++]=255&J,j.pending_buf[j.pending++]=J>>>8&255}function U(j,J,ve){j.bi_valid>m-ve?(j.bi_buf|=J<<j.bi_valid&65535,ie(j,j.bi_buf),j.bi_buf=J>>m-j.bi_valid,j.bi_valid+=ve-m):(j.bi_buf|=J<<j.bi_valid&65535,j.bi_valid+=ve)}function Z(j,J,ve){U(j,ve[2*J],ve[2*J+1])}function ce(j,J){for(var ve=0;ve|=1&j,j>>>=1,ve<<=1,0<--J;);return ve>>>1}function Le(j,J,ve){var be,re,Pe=new Array(f+1),je=0;for(be=1;be<=f;be++)Pe[be]=je=je+ve[be-1]<<1;for(re=0;re<=J;re++){var $e=j[2*re+1];$e!==0&&(j[2*re]=ce(Pe[$e]++,$e))}}function we(j){var J;for(J=0;J<u;J++)j.dyn_ltree[2*J]=0;for(J=0;J<c;J++)j.dyn_dtree[2*J]=0;for(J=0;J<d;J++)j.bl_tree[2*J]=0;j.dyn_ltree[2*y]=1,j.opt_len=j.static_len=0,j.last_lit=j.matches=0}function Te(j){8<j.bi_valid?ie(j,j.bi_buf):0<j.bi_valid&&(j.pending_buf[j.pending++]=j.bi_buf),j.bi_buf=0,j.bi_valid=0}function Ze(j,J,ve,be){var re=2*J,Pe=2*ve;return j[re]<j[Pe]||j[re]===j[Pe]&&be[J]<=be[ve]}function Ve(j,J,ve){for(var be=j.heap[ve],re=ve<<1;re<=j.heap_len&&(re<j.heap_len&&Ze(J,j.heap[re+1],j.heap[re],j.depth)&&re++,!Ze(J,be,j.heap[re],j.depth));)j.heap[ve]=j.heap[re],ve=re,re<<=1;j.heap[ve]=be}function kt(j,J,ve){var be,re,Pe,je,$e=0;if(j.last_lit!==0)for(;be=j.pending_buf[j.d_buf+2*$e]<<8|j.pending_buf[j.d_buf+2*$e+1],re=j.pending_buf[j.l_buf+$e],$e++,be===0?Z(j,re,J):(Z(j,(Pe=T[re])+h+1,J),(je=_[Pe])!==0&&U(j,re-=I[Pe],je),Z(j,Pe=E(--be),ve),(je=S[Pe])!==0&&U(j,be-=z[Pe],je)),$e<j.last_lit;);Z(j,y,J)}function jt(j,J){var ve,be,re,Pe=J.dyn_tree,je=J.stat_desc.static_tree,$e=J.stat_desc.has_stree,ot=J.stat_desc.elems,ai=-1;for(j.heap_len=0,j.heap_max=p,ve=0;ve<ot;ve++)Pe[2*ve]!==0?(j.heap[++j.heap_len]=ai=ve,j.depth[ve]=0):Pe[2*ve+1]=0;for(;j.heap_len<2;)Pe[2*(re=j.heap[++j.heap_len]=ai<2?++ai:0)]=1,j.depth[re]=0,j.opt_len--,$e&&(j.static_len-=je[2*re+1]);for(J.max_code=ai,ve=j.heap_len>>1;1<=ve;ve--)Ve(j,Pe,ve);for(re=ot;ve=j.heap[1],j.heap[1]=j.heap[j.heap_len--],Ve(j,Pe,1),be=j.heap[1],j.heap[--j.heap_max]=ve,j.heap[--j.heap_max]=be,Pe[2*re]=Pe[2*ve]+Pe[2*be],j.depth[re]=(j.depth[ve]>=j.depth[be]?j.depth[ve]:j.depth[be])+1,Pe[2*ve+1]=Pe[2*be+1]=re,j.heap[1]=re++,Ve(j,Pe,1),2<=j.heap_len;);j.heap[--j.heap_max]=j.heap[1],(function(It,Lr){var hi,fr,or,er,Sh,Hu,Qr=Lr.dyn_tree,gd=Lr.max_code,kv=Lr.stat_desc.static_tree,Xu=Lr.stat_desc.has_stree,Av=Lr.stat_desc.extra_bits,yd=Lr.stat_desc.extra_base,wh=Lr.stat_desc.max_length,Yu=0;for(er=0;er<=f;er++)It.bl_count[er]=0;for(Qr[2*It.heap[It.heap_max]+1]=0,hi=It.heap_max+1;hi<p;hi++)wh<(er=Qr[2*Qr[2*(fr=It.heap[hi])+1]+1]+1)&&(er=wh,Yu++),Qr[2*fr+1]=er,gd<fr||(It.bl_count[er]++,Sh=0,yd<=fr&&(Sh=Av[fr-yd]),Hu=Qr[2*fr],It.opt_len+=Hu*(er+Sh),Xu&&(It.static_len+=Hu*(kv[2*fr+1]+Sh)));if(Yu!==0){do{for(er=wh-1;It.bl_count[er]===0;)er--;It.bl_count[er]--,It.bl_count[er+1]+=2,It.bl_count[wh]--,Yu-=2}while(0<Yu);for(er=wh;er!==0;er--)for(fr=It.bl_count[er];fr!==0;)gd<(or=It.heap[--hi])||(Qr[2*or+1]!==er&&(It.opt_len+=(er-Qr[2*or+1])*Qr[2*or],Qr[2*or+1]=er),fr--)}})(j,J),Le(Pe,ai,j.bl_count)}function O(j,J,ve){var be,re,Pe=-1,je=J[1],$e=0,ot=7,ai=4;for(je===0&&(ot=138,ai=3),J[2*(ve+1)+1]=65535,be=0;be<=ve;be++)re=je,je=J[2*(be+1)+1],++$e<ot&&re===je||($e<ai?j.bl_tree[2*re]+=$e:re!==0?(re!==Pe&&j.bl_tree[2*re]++,j.bl_tree[2*v]++):$e<=10?j.bl_tree[2*b]++:j.bl_tree[2*x]++,Pe=re,ai=($e=0)===je?(ot=138,3):re===je?(ot=6,3):(ot=7,4))}function le(j,J,ve){var be,re,Pe=-1,je=J[1],$e=0,ot=7,ai=4;for(je===0&&(ot=138,ai=3),be=0;be<=ve;be++)if(re=je,je=J[2*(be+1)+1],!(++$e<ot&&re===je)){if($e<ai)for(;Z(j,re,j.bl_tree),--$e!=0;);else re!==0?(re!==Pe&&(Z(j,re,j.bl_tree),$e--),Z(j,v,j.bl_tree),U(j,$e-3,2)):$e<=10?(Z(j,b,j.bl_tree),U(j,$e-3,3)):(Z(j,x,j.bl_tree),U(j,$e-11,7));Pe=re,ai=($e=0)===je?(ot=138,3):re===je?(ot=6,3):(ot=7,4)}}n(z);var oe=!1;function H(j,J,ve,be){U(j,(o<<1)+(be?1:0),3),(function(re,Pe,je,$e){Te(re),$e&&(ie(re,je),ie(re,~je)),i.arraySet(re.pending_buf,re.window,Pe,je,re.pending),re.pending+=je})(j,J,ve,!0)}e._tr_init=function(j){oe||((function(){var J,ve,be,re,Pe,je=new Array(f+1);for(re=be=0;re<l-1;re++)for(I[re]=be,J=0;J<1<<_[re];J++)T[be++]=re;for(T[be-1]=re,re=Pe=0;re<16;re++)for(z[re]=Pe,J=0;J<1<<S[re];J++)A[Pe++]=re;for(Pe>>=7;re<c;re++)for(z[re]=Pe<<7,J=0;J<1<<S[re]-7;J++)A[256+Pe++]=re;for(ve=0;ve<=f;ve++)je[ve]=0;for(J=0;J<=143;)D[2*J+1]=8,J++,je[8]++;for(;J<=255;)D[2*J+1]=9,J++,je[9]++;for(;J<=279;)D[2*J+1]=7,J++,je[7]++;for(;J<=287;)D[2*J+1]=8,J++,je[8]++;for(Le(D,u+1,je),J=0;J<c;J++)$[2*J+1]=5,$[2*J]=ce(J,5);N=new K(D,_,h+1,u,f),B=new K($,S,0,c,f),W=new K(new Array(0),w,0,d,g)})(),oe=!0),j.l_desc=new V(j.dyn_ltree,N),j.d_desc=new V(j.dyn_dtree,B),j.bl_desc=new V(j.bl_tree,W),j.bi_buf=0,j.bi_valid=0,we(j)},e._tr_stored_block=H,e._tr_flush_block=function(j,J,ve,be){var re,Pe,je=0;0<j.level?(j.strm.data_type===2&&(j.strm.data_type=(function($e){var ot,ai=4093624447;for(ot=0;ot<=31;ot++,ai>>>=1)if(1&ai&&$e.dyn_ltree[2*ot]!==0)return r;if($e.dyn_ltree[18]!==0||$e.dyn_ltree[20]!==0||$e.dyn_ltree[26]!==0)return a;for(ot=32;ot<h;ot++)if($e.dyn_ltree[2*ot]!==0)return a;return r})(j)),jt(j,j.l_desc),jt(j,j.d_desc),je=(function($e){var ot;for(O($e,$e.dyn_ltree,$e.l_desc.max_code),O($e,$e.dyn_dtree,$e.d_desc.max_code),jt($e,$e.bl_desc),ot=d-1;3<=ot&&$e.bl_tree[2*P[ot]+1]===0;ot--);return $e.opt_len+=3*(ot+1)+5+5+4,ot})(j),re=j.opt_len+3+7>>>3,(Pe=j.static_len+3+7>>>3)<=re&&(re=Pe)):re=Pe=ve+5,ve+4<=re&&J!==-1?H(j,J,ve,be):j.strategy===4||Pe===re?(U(j,2+(be?1:0),3),kt(j,D,$)):(U(j,4+(be?1:0),3),(function($e,ot,ai,It){var Lr;for(U($e,ot-257,5),U($e,ai-1,5),U($e,It-4,4),Lr=0;Lr<It;Lr++)U($e,$e.bl_tree[2*P[Lr]+1],3);le($e,$e.dyn_ltree,ot-1),le($e,$e.dyn_dtree,ai-1)})(j,j.l_desc.max_code+1,j.d_desc.max_code+1,je+1),kt(j,j.dyn_ltree,j.dyn_dtree)),we(j),be&&Te(j)},e._tr_tally=function(j,J,ve){return j.pending_buf[j.d_buf+2*j.last_lit]=J>>>8&255,j.pending_buf[j.d_buf+2*j.last_lit+1]=255&J,j.pending_buf[j.l_buf+j.last_lit]=255&ve,j.last_lit++,J===0?j.dyn_ltree[2*ve]++:(j.matches++,J--,j.dyn_ltree[2*(T[ve]+h+1)]++,j.dyn_dtree[2*E(J)]++),j.last_lit===j.lit_bufsize-1},e._tr_align=function(j){U(j,2,3),Z(j,y,D),(function(J){J.bi_valid===16?(ie(J,J.bi_buf),J.bi_buf=0,J.bi_valid=0):8<=J.bi_valid&&(J.pending_buf[J.pending++]=255&J.bi_buf,J.bi_buf>>=8,J.bi_valid-=8)})(j)}},{"../utils/common":41}],53:[function(s,t,e){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(s,t,e){(function(i){(function(r,a){"use strict";if(!r.setImmediate){var n,o,l,h,u=1,c={},d=!1,p=r.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(r);f=f&&f.setTimeout?f:r,n={}.toString.call(r.process)==="[object process]"?function(v){process.nextTick(function(){g(v)})}:(function(){if(r.postMessage&&!r.importScripts){var v=!0,b=r.onmessage;return r.onmessage=function(){v=!1},r.postMessage("","*"),r.onmessage=b,v}})()?(h="setImmediate$"+Math.random()+"$",r.addEventListener?r.addEventListener("message",y,!1):r.attachEvent("onmessage",y),function(v){r.postMessage(h+v,"*")}):r.MessageChannel?((l=new MessageChannel).port1.onmessage=function(v){g(v.data)},function(v){l.port2.postMessage(v)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,function(v){var b=p.createElement("script");b.onreadystatechange=function(){g(v),b.onreadystatechange=null,o.removeChild(b),b=null},o.appendChild(b)}):function(v){setTimeout(g,0,v)},f.setImmediate=function(v){typeof v!="function"&&(v=new Function(""+v));for(var b=new Array(arguments.length-1),x=0;x<b.length;x++)b[x]=arguments[x+1];var _={callback:v,args:b};return c[u]=_,n(u),u++},f.clearImmediate=m}function m(v){delete c[v]}function g(v){if(d)setTimeout(g,0,v);else{var b=c[v];if(b){d=!0;try{(function(x){var _=x.callback,S=x.args;switch(S.length){case 0:_();break;case 1:_(S[0]);break;case 2:_(S[0],S[1]);break;case 3:_(S[0],S[1],S[2]);break;default:_.apply(a,S)}})(b)}finally{m(v),d=!1}}}}function y(v){v.source===r&&typeof v.data=="string"&&v.data.indexOf(h)===0&&g(+v.data.slice(h.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var dm={INITIAL:0,PENDING:1,COMPLETE:2,ERROR:3},PP=Symbol(),Ta=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,e)=>{this.o=t,this.h=e})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,e,i){this.p=0,this.i=0,(this._=t).addController(this);let r=typeof e=="object"?e:{task:e,args:i};this.v=r.task,this.j=r.args,this.m=r.argsEqual??pm,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,"initialValue"in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),e=this.O;this.O=t,t===e||t===void 0||e!==void 0&&this.m(e,t)||await this.run(t)}async run(t){let e,i;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let r=++this.p;this.q=new AbortController;let a=!1;try{e=await this.v(t,{signal:this.q.signal})}catch(n){a=!0,i=n}if(this.p===r){if(e===PP)this.i=0;else{if(a===!1){try{this.k?.(e)}catch{}this.i=2,this.o?.(e)}else{try{this.A?.(i)}catch{}this.i=3,this.h?.(i)}this.u=e,this.l=i}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},pm=(s,t)=>s===t||s.length===t.length&&s.every(((e,i)=>!OS(e,t[i])));var EF=Object.defineProperty,$a=(s,t,e)=>()=>{if(e)throw e[0];try{return s&&(t=s(s=0)),t}catch(i){throw e=[i],i}},Hd=(s,t)=>{for(var e in t)EF(s,e,{get:t[e],enumerable:!0})};function BF(s){if(s===!0)return"soft";if(s===!1)return"disabled";if(typeof s=="string"){let t=s.toLowerCase().trim();if(t==="auto")return"auto";if(t==="full")return"full";if(t==="soft"||t==="disabled")return t}return"soft"}function jF(s="soft"){switch(s){case"auto":{Ce.session.styleMap=new Map,Ce.session.nodeMap=new Map;return}case"soft":{Ce.session.styleMap=new Map,Ce.session.nodeMap=new Map,Ce.session.styleCache=new WeakMap;return}case"full":return;case"disabled":{Ce.session.styleMap=new Map,Ce.session.nodeMap=new Map,Ce.session.styleCache=new WeakMap,Ce.computedStyle=new WeakMap,Ce.measureHints=new WeakMap,Ce.baseStyle=new ea(50),Ce.defaultStyle=new ea(30),Ce.image=new ea(100),Ce.background=new ea(100),Ce.resource=new ea(150),Ce.compress=new ea(50),Ce.font=new Set;return}default:{Ce.session.styleMap=new Map,Ce.session.nodeMap=new Map,Ce.session.styleCache=new WeakMap;return}}}var ea,Ce,ta=$a(()=>{"use strict";ea=class extends Map{constructor(s=100,...t){super(...t),this._maxSize=s}set(s,t){if(this.size>=this._maxSize&&!this.has(s)){let e=this.keys().next().value;e!==void 0&&this.delete(e)}return super.set(s,t)}},Ce={image:new ea(100),background:new ea(100),resource:new ea(150),defaultStyle:new ea(30),baseStyle:new ea(50),compress:new ea(50),computedStyle:new WeakMap,measureHints:new WeakMap,burstAdvice:new WeakMap,warnedReconcile:!1,font:new Set,session:{styleMap:new Map,styleCache:new WeakMap,nodeMap:new Map}}});function cx(s){let t=s.match(/url\((['"]?)(.*?)(\1)\)/);if(!t)return null;let e=t[2].trim();return e.startsWith("#")?null:e}function aT(s,t=1){let e=s.match(/^\s*-?(?:webkit-)?image-set\(([\s\S]*)\)\s*$/i);if(!e)return null;let i=[];for(let r of e[1].split(",")){let a=r.match(/url\((['"]?)(.*?)(\1)\)/);if(!a)continue;let n=r.match(/type\(\s*["']([^"']+)["']\s*\)/i);if(n&&!nT.test(n[1].trim()))continue;let o=r.match(/(\d+(?:\.\d+)?)\s*(x|dpi|dppx)/i),l=1;if(o){let h=parseFloat(o[1]);l=/dpi/i.test(o[2])?h/96:h}i.push({url:a[2].trim(),dppx:l})}return i.length?(i.sort((r,a)=>r.dppx-a.dppx),(i.find(r=>r.dppx>=t)||i[i.length-1]).url):null}function WF(s){if(!s||s==="none")return"";let t=s.replace(/translate[XY]?\([^)]*\)/g,"");return t=t.replace(/matrix\(([^)]+)\)/g,(e,i)=>{let r=i.split(",").map(a=>a.trim());return r.length!==6?`matrix(${i})`:(r[4]="0",r[5]="0",`matrix(${r.join(", ")})`)}),t=t.replace(/matrix3d\(([^)]+)\)/g,(e,i)=>{let r=i.split(",").map(a=>a.trim());return r.length!==16?`matrix3d(${i})`:(r[12]="0",r[13]="0",`matrix3d(${r.join(", ")})`)}),t.trim().replace(/\s{2,}/g," ")}function Dm(s){if(/%[0-9A-Fa-f]{2}/.test(s))return s;try{return encodeURI(s)}catch{return s}}function zF(s,t){if(!s||/^(data|blob|about|#)/i.test(s.trim()))return s;try{let e=t||typeof document<"u"&&(document.baseURI||document.location?.href)||"http://localhost/";return new URL(s,e).href}catch{return s}}var nT,Mm=$a(()=>{"use strict";nT=/^image\/(jpeg|jpg|png|gif|webp|avif|apng|svg\+xml|bmp|x-icon|vnd\.microsoft\.icon)\s*(;|$)/i});function HF(s="[snapDOM]",{ttlMs:t=5*6e4,maxEntries:e=12}={}){let i=new Map,r=0;function a(n,o,l){if(r>=e)return;let h=Date.now();(i.get(o)||0)>h||(i.set(o,h+t),r++,n==="warn"&&console&&console.warn?console.warn(`${s} ${l}`):console&&console.error&&console.error(`${s} ${l}`))}return{warnOnce(n,o){a("warn",n,o)},errorOnce(n,o){a("error",n,o)},reset(){i.clear(),r=0}}}function XF(s){return/^data:|^blob:|^about:blank$/i.test(s)}function YF(s,t){try{let e=typeof location<"u"&&location.href?location.href:"http://localhost/",i=t.includes("{url}")?t.split("{url}")[0]:t,r=new URL(i||".",e),a=new URL(s,e);if(a.origin===r.origin)return!0;let n=a.searchParams;if(n&&(n.has("url")||n.has("target")))return!0}catch{}return!1}function UF(s,t){if(!t||XF(s)||YF(s,t))return!1;try{let e=typeof location<"u"&&location.href?location.href:"http://localhost/",i=new URL(s,e);return typeof location<"u"?i.origin!==location.origin:!0}catch{return!!t}}function GF(s,t){if(!t)return s;if(t.includes("{url}"))return t.replace("{urlRaw}",Dm(s)).replace("{url}",encodeURIComponent(s));if(/[?&]url=?$/.test(t))return`${t}${encodeURIComponent(s)}`;if(t.endsWith("?"))return`${t}url=${encodeURIComponent(s)}`;if(t.endsWith("/"))return`${t}${Dm(s)}`;let e=t.includes("?")?"&":"?";return`${t}${e}url=${encodeURIComponent(s)}`}function TP(s){return new Promise((t,e)=>{let i=new FileReader;i.onload=()=>t(String(i.result||"")),i.onerror=()=>e(new Error("read_failed")),i.readAsDataURL(s)})}function qF(s,t){return[t.as||"blob",t.timeout??3e3,t.useProxy||"",t.errorTTL??8e3,s].join("|")}async function Ka(s,t={}){let e=t.as??"blob",i=t.timeout??3e3,r=t.useProxy||"",a=t.errorTTL??8e3,n=t.headers||{},o=!!t.silent;if(/^data:/i.test(s))try{if(e==="text")return{ok:!0,data:String(s),status:200,url:s,fromCache:!1};if(e==="dataURL")return{ok:!0,data:String(s),status:200,url:s,fromCache:!1,mime:String(s).slice(5).split(";")[0]||""};let[,g="",y=""]=String(s).match(/^data:([^,]*),(.*)$/)||[],v=/;base64/i.test(g)?atob(y):decodeURIComponent(y),b=new Uint8Array([...v].map(_=>_.charCodeAt(0))),x=new Blob([b],{type:(g||"").split(";")[0]||""});return{ok:!0,data:x,status:200,url:s,fromCache:!1,mime:x.type||""}}catch{return{ok:!1,data:null,status:0,url:s,fromCache:!1,reason:"special_url_error"}}if(/^blob:/i.test(s))try{let g=await fetch(s);if(!g.ok)return{ok:!1,data:null,status:g.status,url:s,fromCache:!1,reason:"http_error"};let y=await g.blob(),v=y.type||g.headers.get("content-type")||"";return e==="dataURL"?{ok:!0,data:await TP(y),status:g.status,url:s,fromCache:!1,mime:v}:e==="text"?{ok:!0,data:await y.text(),status:g.status,url:s,fromCache:!1,mime:v}:{ok:!0,data:y,status:g.status,url:s,fromCache:!1,mime:v}}catch{return{ok:!1,data:null,status:0,url:s,fromCache:!1,reason:"network"}}if(/^about:blank$/i.test(s))return e==="dataURL"?{ok:!0,data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==",status:200,url:s,fromCache:!1,mime:"image/png"}:{ok:!0,data:e==="text"?"":new Blob([]),status:200,url:s,fromCache:!1};let l=qF(s,{as:e,timeout:i,useProxy:r,errorTTL:a}),h=Bd.get(l);if(h&&h.until>Date.now())return{...h.result,fromCache:!0};h&&Bd.delete(l);let u=vm.get(l);if(u)return u;let c=UF(s,r)?GF(s,r):s,d=t.credentials;if(!d)try{let g=typeof location<"u"&&location.href?location.href:"http://localhost/",y=new URL(s,g);d=typeof location<"u"&&y.origin===location.origin?"include":"omit"}catch{d="omit"}let p=new AbortController,f=setTimeout(()=>p.abort("timeout"),i),m=(async()=>{try{let g=await fetch(c,{signal:p.signal,credentials:d,headers:n});if(!g.ok){let b={ok:!1,data:null,status:g.status,url:c,fromCache:!1,reason:"http_error"};if(a>0&&Bd.set(l,{until:Date.now()+a,result:b}),!o){let x=`${g.status} ${g.statusText||""}`.trim();Ub.warnOnce(`http:${g.status}:${e}:${new URL(s,location?.href??"http://localhost/").origin}`,`HTTP error ${x} while fetching ${e} ${s}`)}return t.onError&&t.onError(b),b}if(e==="text")return{ok:!0,data:await g.text(),status:g.status,url:c,fromCache:!1};let y=await g.blob(),v=y.type||g.headers.get("content-type")||"";return e==="dataURL"?{ok:!0,data:await TP(y),status:g.status,url:c,fromCache:!1,mime:v}:{ok:!0,data:y,status:g.status,url:c,fromCache:!1,mime:v}}catch(g){let y=g&&typeof g=="object"&&"name"in g&&g.name==="AbortError"?String(g.message||"").includes("timeout")?"timeout":"abort":"network",v={ok:!1,data:null,status:0,url:c,fromCache:!1,reason:y};if(!/^blob:/i.test(s)&&a>0&&Bd.set(l,{until:Date.now()+a,result:v}),!o){let b=`${y}:${e}:${new URL(s,location?.href??"http://localhost/").origin}`,x=y==="timeout"?`Timeout after ${i}ms. Consider increasing timeout or using a proxy for ${s}`:y==="abort"?`Request aborted while fetching ${e} ${s}`:`Network/CORS issue while fetching ${e} ${s}. A proxy may be required`;Ub.errorOnce(b,x)}return t.onError&&t.onError(v),v}finally{clearTimeout(f),vm.delete(l)}})();return vm.set(l,m),m}var Ub,vm,Bd,Rh=$a(()=>{"use strict";Mm(),Ub=HF("[snapDOM]",{ttlMs:3*6e4,maxEntries:10}),vm=new Map,Bd=new Map});async function oT(s,t={}){if(/^((repeating-)?(linear|radial|conic)-gradient)\(/i.test(s)||s.trim()==="none")return s;let e=aT(s,typeof devicePixelRatio<"u"&&devicePixelRatio||1)??cx(s);if(!e)return s;let i=zF(e),r=Dm(i),a=(t.useProxy||"")+"|"+r;if(Ce.background.has(a)){let n=Ce.background.get(a);return n?`url("${n}")`:"none"}try{let n=await Ka(r,{as:"dataURL",useProxy:t.useProxy});return n.ok?(Ce.background.set(a,n.data),`url("${n.data}")`):(Ce.background.set(a,null),"none")}catch{return Ce.background.set(a,null),"none"}}var KF=$a(()=>{"use strict";ta(),Mm(),Rh()});function lT(s){if(s=String(s).toLowerCase(),px.has(s)){let a={};return Ce.defaultStyle.set(s,a),a}if(Ce.defaultStyle.has(s))return Ce.defaultStyle.get(s);let t=document.getElementById("snapdom-sandbox");t||(t=document.createElement("div"),t.id="snapdom-sandbox",t.setAttribute("data-snapdom-sandbox","true"),t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.left="-9999px",t.style.top="-9999px",t.style.width="0px",t.style.height="0px",t.style.overflow="hidden",document.body.appendChild(t));let e=document.createElement(s);e.style.all="initial",t.appendChild(e);let i=getComputedStyle(e),r={};for(let a of i){if(dx(a))continue;let n=i.getPropertyValue(a);r[a]=n}return t.removeChild(e),Ce.defaultStyle.set(s,r),r}function dx(s){let t=Kb.get(s);if(t===void 0){let e=String(s).toLowerCase();t=pT.has(e)||dT.test(e)||cT.test(e),Kb.set(s,t)}return t}function hT(s,t){return!gT.has(s)&&(t==="inline"||fT.has(s)||mT.has(s))}function Gb(s,t,e=!0,i=!1){if(t=String(t||"").toLowerCase(),px.has(t))return"";let r=[],a=lT(t),n=(s.display||"").toLowerCase(),o=n==="inline",l=hT(t,n),h=s["text-wrap-mode"]||s["white-space"]||"",u=l&&e&&!o&&(h==="nowrap"||h==="pre"),c=l&&e&&!u,d=!1;for(let p in s){if(dx(p))continue;let f=s[p];if(c){if(yT.has(p))continue;if(vT.has(p)){f&&f!==a[p]&&(r.push(`${p}:${f}`),f!=="auto"&&(d=!0));continue}}if(f&&f!==a[p]){if(!u&&(p==="width"||p==="inline-size")&&f.endsWith("px")&&f.includes(".")){let m=parseFloat(f);if(Number.isFinite(m)){r.push(`${p}:${Math.ceil(m*16)/16}px`);continue}}r.push(`${p}:${f}`)}}if(c&&!o&&!i&&!d){let p=s.width;p&&p!=="auto"&&p!==a.width&&r.push(`min-width:${p}`)}return r.sort(),r.join(";")}function ZF(s){let t=new Set;return s.nodeType!==Node.ELEMENT_NODE&&s.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?[]:(s.tagName&&t.add(s.tagName.toLowerCase()),typeof s.querySelectorAll=="function"&&s.querySelectorAll("*").forEach(e=>t.add(e.tagName.toLowerCase())),Array.from(t))}function JF(s){let t=new Map;for(let i of s){let r=lT(i);if(!r)continue;let a=Object.entries(r).map(([n,o])=>`${n}:${o};`).sort().join("");a&&(t.has(a)||t.set(a,[]),t.get(a).push(i))}let e="";for(let[i,r]of t.entries())e+=`${r.join(",")} { ${i} }
4
4
  `;return e}function QF(s){let t=Array.from(new Set(s.values())).filter(Boolean).sort(),e=new Map,i=1;for(let r of t)e.set(r,`c${i++}`);return e}function eO(s){try{let t=s?.ownerDocument;if(!t)return typeof window<"u"?window:null;let e=t.defaultView;if(e&&typeof e.getComputedStyle=="function")return e;if(typeof window<"u"&&window.frames)for(let i=0;i<window.frames.length;i++)try{if(window.frames[i]?.document===t)return window.frames[i]}catch{}}catch{}return typeof window<"u"?window:null}function qi(s,t=null){let e=()=>{let a={length:0,getPropertyValue:()=>"",item:()=>""};return a[Symbol.iterator]=function*(){},a};if(s?.nodeType!==1){let a=typeof window<"u"?window:null;if(a&&typeof a.getComputedStyle=="function")try{return a.getComputedStyle(s,t)||e()}catch{return e()}return e()}let i=Ce.computedStyle.get(s);i||(i=new Map,Ce.computedStyle.set(s,i));let r=i.get(t);if(!r){let a=eO(s),n=null;try{n=a&&typeof a.getComputedStyle=="function"?a.getComputedStyle(s,t):null}catch{}if(!n&&typeof window<"u"&&typeof window.getComputedStyle=="function")try{s.ownerDocument===document&&(n=window.getComputedStyle(s,t))}catch{}r=n||e(),i.set(t,r)}return r}function $P(s){let t={};for(let e of s)t[e]=s.getPropertyValue(e);for(let e of bT){let i=t[`border-${e}-style`],r=t[`border-${e}-width`];(i==="none"||i==="hidden"||r==="0px")&&(delete t[`border-${e}-style`],delete t[`border-${e}-width`],delete t[`border-${e}-color`])}return t}function qb(s){let t=[],e=0,i=0;for(let r=0;r<s.length;r++){let a=s[r];a==="("&&e++,a===")"&&e--,a===","&&e===0&&(t.push(s.slice(i,r).trim()),i=r+1)}return t.push(s.slice(i).trim()),t}var uT,px,tO,cT,dT,pT,Kb,fT,mT,gT,yT,vT,bT,Im=$a(()=>{"use strict";ta(),uT=new Set(["meta","script","noscript","title","link","template"]),px=new Set(["meta","link","style","title","noscript","script","template","g","defs","use","marker","mask","clipPath","pattern","path","polygon","polyline","line","circle","ellipse","rect","filter","lineargradient","radialgradient","stop"]),tO=["div","span","p","a","img","ul","li","button","input","select","textarea","label","section","article","header","footer","nav","main","aside","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","td","th"],cT=/(?:^|-)(animation|transition)(?:-|$)/i,dT=/^(--.+|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i,pT=new Set(["cursor","pointer-events","touch-action","user-select","print-color-adjust","speak","reading-flow","reading-order","anchor-name","anchor-scope","container-name","container-type","timeline-scope","zoom","stroke-color"]),Kb=new Map,fT=new Set(["span","small","em","strong","b","i","u","s","code","cite","mark","sub","sup"]),mT=new Set(["table","thead","tbody","tfoot","tr","td","th"]),gT=new Set(["img","video","canvas","svg","iframe","embed","object","input","textarea","select"]),yT=new Set(["width","max-width","inline-size","max-inline-size"]),vT=new Set(["min-width","min-inline-size"]),bT=["top","right","bottom","left"]});function bm(s,{fast:t=!1}={}){if(t)return s();"requestIdleCallback"in window?requestIdleCallback(s,{timeout:50}):setTimeout(s,1)}function iO(){if(typeof navigator>"u")return!1;if(navigator.userAgentData)return navigator.userAgentData.platform==="iOS";let s=navigator.userAgent||"",t=/iPhone|iPad|iPod/.test(s),e=navigator.maxTouchPoints>2&&/Macintosh/.test(s);return t||e}function jo(){if(typeof navigator>"u")return!1;let s=navigator.userAgent||"",t=s.toLowerCase(),e=t.includes("safari")&&!t.includes("chrome")&&!t.includes("crios")&&!t.includes("fxios")&&!t.includes("android"),i=/applewebkit/i.test(s),r=/mobile/i.test(s),a=!/safari/i.test(s),n=i&&r&&a,o=/(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(s),l=/(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(t),h=/ipad|iphone|ipod/.test(t)&&i;return e||n||o||l||h}function rO(){if(typeof navigator>"u")return!1;let s=(navigator.userAgent||"").toLowerCase();return s.includes("firefox")||s.includes("fxios")}var Xd=$a(()=>{"use strict"});function Xi(s,t,e){let i=s&&typeof s=="object"&&(s.options||s);i&&i.debug&&(e!==void 0?console.warn("[snapdom]",t,e):console.warn("[snapdom]",t))}var xT=$a(()=>{"use strict"}),wn=$a(()=>{"use strict";KF(),Im(),Xd(),Mm(),xT()}),_T={};Hd(_T,{decodeSvgFromDataURL:()=>fx,encodeSvgToDataURL:()=>mx,fixSafariShadows:()=>gx,toCanvas:()=>Rm});function sO(s){try{let t=s.match(/<svg\b[^>]*>/i);if(!t)return s;let e=t[0],i=parseFloat((e.match(/\bwidth="([\d.]+)/i)||[])[1]),r=parseFloat((e.match(/\bheight="([\d.]+)/i)||[])[1]);if(!Number.isFinite(i)||!Number.isFinite(r)||i<=0||r<=0)return s;let a=Math.min(1,Bo/i,Bo/r,Math.sqrt(km/(i*r)));if(a>=1)return s;let n=Math.max(1,Math.floor(i*a)),o=Math.max(1,Math.floor(r*a));return console.warn(`[snapDOM] Capture ${Math.round(i)}\xD7${Math.round(r)}px exceeds the browser image-decode limit (${Bo}px/side); downscaling to ${n}\xD7${o}px. Lower \`scale\` or set \`width\`/\`height\` to control output size.`),s.replace(e,e.replace(/(\bwidth=")[\d.]+/i,`$1${n}`).replace(/(\bheight=")[\d.]+/i,`$1${o}`))}catch{return s}}function aO(s,t){let e=["x","y","width","height"].map(S=>Number(t?.[S]));if(!e.every(Number.isFinite)||e[2]<=0||e[3]<=0)throw new RangeError("[snapdom] canvas crop requires finite x/y and positive width/height");let i=s.match(/<svg\b[^>]*>/i);if(!i)throw new Error("[snapdom] cannot crop a non-SVG capture");let r=i[0],a=(r.match(/\bviewBox="([^"]+)"/i)||[])[1],n=String(a||"").trim().split(/[\s,]+/).map(Number);if(n.length!==4||!n.every(Number.isFinite)||n[2]<=0||n[3]<=0)throw new Error("[snapdom] cannot crop an SVG without a finite viewBox");let[o,l,h,u]=n,c=Math.max(o,e[0]),d=Math.max(l,e[1]),p=Math.min(o+h,e[0]+e[2]),f=Math.min(l+u,e[1]+e[3]);if(!(p>c)||!(f>d))throw new RangeError("[snapdom] canvas crop does not intersect the SVG viewBox");let m=parseFloat((r.match(/\bwidth="([\d.]+)/i)||[])[1]),g=parseFloat((r.match(/\bheight="([\d.]+)/i)||[])[1]),y=Number.isFinite(m)&&m>0?m/h:1,v=Number.isFinite(g)&&g>0?g/u:1,b=Math.max(1,(p-c)*y),x=Math.max(1,(f-d)*v),_=r.replace(/(\bwidth=")[^"]*/i,`$1${b}`).replace(/(\bheight=")[^"]*/i,`$1${x}`).replace(/(\bviewBox=")[^"]*/i,`$1${c} ${d} ${p-c} ${f-d}`);return s.replace(r,_)}function DP(s){return typeof s=="string"&&/^data:image\/svg\+xml/i.test(s)}function fx(s){let t=s.indexOf(",");return t>=0?decodeURIComponent(s.slice(t+1)):""}function nO(s){let t=s.indexOf(",");if(t<0)return"";let e=s.slice(t+1,t+1201).replace(/%[0-9A-Fa-f]?$/,"");try{return decodeURIComponent(e)}catch{return""}}function mx(s){return`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`}function CT(s){let t=[],e="",i=0;for(let r=0;r<s.length;r++){let a=s[r];a==="("&&i++,a===")"&&(i=Math.max(0,i-1)),a===";"&&i===0?(t.push(e),e=""):e+=a}return e.trim()&&t.push(e),t.map(r=>r.trim()).filter(Boolean)}function oO(s){let t=[],e="",i=0;for(let a=0;a<s.length;a++){let n=s[a];n==="("&&i++,n===")"&&(i=Math.max(0,i-1)),n===","&&i===0?(t.push(e.trim()),e=""):e+=n}e.trim()&&t.push(e.trim());let r=[];for(let a of t){if(/\binset\b/i.test(a))continue;let n=a.match(/-?\d+(?:\.\d+)?px/gi)||[],[o="0px",l="0px",h="0px"]=n;h=`${parseFloat(h)/2}px`;let u=a.replace(/-?\d+(?:\.\d+)?px/gi,"").replace(/\binset\b/ig,"").trim().replace(/\s{2,}/g," "),c=!!u&&u!==",";r.push(`drop-shadow(${o} ${l} ${h}${c?` ${u}`:""})`)}return r.join(" ")}function ST(s){let t=CT(s),e=null,i=null,r=null,a=[];for(let o of t){let l=o.indexOf(":");if(l<0)continue;let h=o.slice(0,l).trim().toLowerCase(),u=o.slice(l+1).trim();h==="box-shadow"?r=u:h==="filter"?e=u:h==="-webkit-filter"?i=u:a.push([h,u])}if(r){let o=oO(r);o&&(e=e?`${e} ${o}`:o,i=i?`${i} ${o}`:o)}let n=[...a];return e&&n.push(["filter",e]),i&&n.push(["-webkit-filter",i]),n.map(([o,l])=>`${o}:${l}`).join(";")}function lO(s){return s.replace(/([^{}]+)\{([^}]*)\}/g,(t,e,i)=>`${e}{${ST(i)}}`)}function hO(s){return s=s.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(t,e)=>t.replace(e,lO(e))),s=s.replace(/style=(['"])([\s\S]*?)\1/gi,(t,e,i)=>`style=${e}${ST(i)}${e}`),s}function uO(){return xm||(xm=(async()=>{try{let s='<svg xmlns="http://www.w3.org/2000/svg" width="8" height="20"><foreignObject width="8" height="20"><div xmlns="http://www.w3.org/1999/xhtml" style="width:4px;height:4px;margin-top:8px;background:#000;box-shadow:0 8px 0 0 #000"></div></foreignObject></svg>',t=new Image;t.decoding="sync",t.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(s)}`,await t.decode();let e=document.createElement("canvas");e.width=8,e.height=20;let i=e.getContext("2d",{willReadFrequently:!0});i.drawImage(t,0,0);let r=i.getImageData(2,18,1,1).data[3]>128,a=i.getImageData(2,2,1,1).data[3]>128;return{native:r||a,flippedY:a&&!r}}catch{return{native:!1,flippedY:!1}}})(),xm)}function cO(s){let t=[],e=0,i=0;for(let r=0;r<s.length;r++){let a=s[r];a==="("?e++:a===")"?e=Math.max(0,e-1):a===","&&e===0&&(t.push(s.slice(i,r)),i=r+1)}return t.push(s.slice(i)),t.map(r=>{let a=0,n=0,o="",l=0;for(;l<r.length;){let h=r[l];if(h==="("?a++:h===")"&&(a=Math.max(0,a-1)),a===0&&(l===0||r[l-1]===" ")){let u=/^-?\d*\.?\d+px/.exec(r.slice(l));if(u){n++,o+=n===2?`${-parseFloat(u[0])}px`:u[0],l+=u[0].length;continue}}o+=h,l++}return o}).join(",")}function dO(s,t){let e=i=>CT(i).map(r=>{let a=r.indexOf(":");if(a<0)return r;let n=r.slice(0,a).trim().toLowerCase();return n==="text-shadow"||t&&n==="box-shadow"?`${n}:${cO(r.slice(a+1))}`:r}).join(";");return s=s.replace(/<style[^>]*>([\s\S]*?)<\/style>/gi,(i,r)=>i.replace(r,r.replace(/([^{}]+)\{([^}]*)\}/g,(a,n,o)=>`${n}{${e(o)}}`))),s=s.replace(/style=(['"])([\s\S]*?)\1/gi,(i,r,a)=>`style=${r}${e(a)}${r}`),s}async function gx(s){if(!/(?:box-shadow|text-shadow)\s*:[^;"}]*px/i.test(s))return{svg:s,naturalOnly:!1};let{native:t,flippedY:e}=await uO();try{let i=s;return t||(i=hO(i)),e&&(i=dO(i,t)),{svg:i,naturalOnly:!0}}catch{return{svg:s,naturalOnly:!0}}}async function pO(s,t){s.setAttribute("data-snapdom-internal",""),s.style.cssText="position:fixed;left:-99999px;top:-99999px;pointer-events:none",document.body.appendChild(s);try{let e=document.createElement("canvas");e.width=16,e.height=16;let i=()=>new Promise(n=>{requestAnimationFrame(n),setTimeout(n,50)}),r=e.getContext("2d",{willReadFrequently:!0});if(!r){await i(),await i();return}let a=performance.now()+(t?600:150);for(;;){r.clearRect(0,0,16,16);try{r.drawImage(s,0,0,16,16)}catch{return}let n=r.getImageData(0,0,16,16).data,o=!1;for(let l=3;l<n.length;l+=4)if(n[l]>0){o=!0;break}if(o||performance.now()>a)return;await i()}}finally{try{s.remove()}catch{}}}async function Rm(s,t){let{width:e,height:i,scale:r=1,dpr:a=1,meta:n={},backgroundColor:o,crop:l=null}=t,h=s,u=!1,c=!1;if(l&&!DP(s))throw new RangeError("[snapdom] canvas crop requires an SVG capture payload");if(DP(s)){let $=(nO(s).match(/<svg\b[^>]*>/i)||[])[0]||"",A=parseFloat(($.match(/\bwidth="([\d.]+)/i)||[])[1]),T=parseFloat(($.match(/\bheight="([\d.]+)/i)||[])[1]),I=Number.isFinite(A)&&Number.isFinite(T)&&A>0&&T>0&&Math.min(1,Bo/A,Bo/T,Math.sqrt(km/(A*T)))<1;if(l||I||jo())try{let N=fx(s);if(l&&(N=aO(N,l)),jo()){let B=await gx(N);N=B.svg,u=B.naturalOnly,c=/@font-face|data:image\//i.test(N)}(I||l)&&(N=sO(N)),h=mx(N)}catch(N){if(l)throw N;h=s}}let d=new Image;d.loading="eager",d.decoding="sync",d.crossOrigin="anonymous",d.src=h,await d.decode(),jo()&&await pO(d,c);let p=d.naturalWidth,f=d.naturalHeight,m=l?p:Number.isFinite(n.vbW)?n.vbW:Number.isFinite(n.w0)?n.w0:p,g=l?f:Number.isFinite(n.vbH)?n.vbH:Number.isFinite(n.h0)?n.h0:f,y,v,b=Number.isFinite(e),x=Number.isFinite(i);if(b&&x)y=Math.max(1,e),v=Math.max(1,i);else if(b){let $=e/Math.max(1,m);y=e,v=g*$}else if(x){let $=i/Math.max(1,g);v=i,y=m*$}else y=p,v=f;y=y*r,v=v*r;let _=y*a,S=v*a,w=Math.max(_/Bo,S/Bo,Math.sqrt(_*S/km));w>1&&(console.warn(`[snapDOM] Output ${Math.round(_)}\xD7${Math.round(S)}px exceeds the browser canvas limit (${Bo}px/side); downscaling. Lower \`scale\`/\`dpr\` or set \`width\`/\`height\`.`),y/=w,v/=w);let P=document.createElement("canvas");P.width=y*a,P.height=v*a,P.style.width=`${y}px`,P.style.height=`${v}px`;let D=P.getContext("2d");if(a!==1&&D.scale(a,a),o&&(D.save(),D.fillStyle=o,D.fillRect(0,0,y,v),D.restore()),u&&(Math.round(y*a)!==p||Math.round(v*a)!==f)){let $=document.createElement("canvas");$.width=p,$.height=f,$.getContext("2d").drawImage(d,0,0),D.drawImage($,0,0,y,v)}else D.drawImage(d,0,0,y,v);return P}var Bo,km,xm,Yd=$a(()=>{"use strict";Xd(),Bo=16384,km=16384*16384,xm=null}),_m={};Hd(_m,{rasterize:()=>wT});async function wT(s,t){let e=await Rm(s,t),i=await new Promise(a=>{let n=()=>a(e.toDataURL(`image/${t.format}`,t.quality));try{e.toBlob(o=>{if(!o)return n();let l=new FileReader;l.onload=()=>a(String(l.result||"")),l.onerror=n,l.readAsDataURL(o)},`image/${t.format}`,t.quality)}catch{n()}}),r=new Image;return r.src=i,await r.decode(),r.style.width=`${e.width/t.dpr}px`,r.style.height=`${e.height/t.dpr}px`,r}var Cm=$a(()=>{"use strict";Yd()}),Zb={};Hd(Zb,{toImg:()=>kP,toSvg:()=>kP});async function kP(s,t){let{scale:e=1,width:i,height:r,meta:a={}}=t,n=Number.isFinite(i),o=Number.isFinite(r),l=Number.isFinite(e)&&e!==1||n||o;if(jo()&&l)try{let{svg:u}=await gx(fx(s)),c=(u.match(/<svg\b[^>]*>/i)||[])[0]||"",d=parseFloat((c.match(/\bwidth="([\d.]+)/i)||[])[1]),p=parseFloat((c.match(/\bheight="([\d.]+)/i)||[])[1]);if(!Number.isFinite(d)||!Number.isFinite(p))throw new Error("svg without dimensions");let f=Number.isFinite(a.vbW)?a.vbW:Number.isFinite(a.w0)?a.w0:d,m=Number.isFinite(a.vbH)?a.vbH:Number.isFinite(a.h0)?a.h0:p,g,y;n&&o?(g=i,y=r):n?(g=i,y=Math.round(m*(i/Math.max(1,f)))):o?(y=r,g=Math.round(f*(r/Math.max(1,m)))):(g=Math.round(d*e),y=Math.round(p*e));let v=u.replace(/width="[^"]*"/,`width="${g}"`).replace(/height="[^"]*"/,`height="${y}"`),b=new Image;return b.decoding="sync",b.loading="eager",b.src=mx(v),await b.decode(),b.style.width=`${g}px`,b.style.height=`${y}px`,b}catch(u){return Xi(t,"safari vector toImg failed, falling back to PNG",u),wT(s,{...t,format:"png",quality:1,meta:a})}let h=new Image;if(h.decoding="sync",h.loading="eager",h.src=s,await h.decode(),n&&o)h.style.width=`${i}px`,h.style.height=`${r}px`;else if(n){let u=Number.isFinite(a.vbW)?a.vbW:Number.isFinite(a.w0)?a.w0:h.naturalWidth,c=Number.isFinite(a.vbH)?a.vbH:Number.isFinite(a.h0)?a.h0:h.naturalHeight,d=i/Math.max(1,u);h.style.width=`${i}px`,h.style.height=`${Math.round(c*d)}px`}else if(o){let u=Number.isFinite(a.vbW)?a.vbW:Number.isFinite(a.w0)?a.w0:h.naturalWidth,c=Number.isFinite(a.vbH)?a.vbH:Number.isFinite(a.h0)?a.h0:h.naturalHeight,d=r/Math.max(1,c);h.style.height=`${r}px`,h.style.width=`${Math.round(u*d)}px`}else{let u=Math.round(h.naturalWidth*e),c=Math.round(h.naturalHeight*e);if(h.style.width=`${u}px`,h.style.height=`${c}px`,typeof s=="string"&&s.startsWith("data:image/svg+xml"))try{let d=decodeURIComponent(s.split(",")[1]).replace(/width="[^"]*"/,`width="${u}"`).replace(/height="[^"]*"/,`height="${c}"`);s=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`,h.src=s}catch(d){Xi(t,"SVG width/height patch in toImg failed",d)}}return h}var AP=$a(()=>{"use strict";wn(),Cm(),Yd()}),PT={};Hd(PT,{toBlob:()=>TT});async function TT(s,t){let e=t.type;if(e==="svg"){let r=decodeURIComponent(s.split(",")[1]);return new Blob([r],{type:"image/svg+xml"})}let i=await Rm(s,t);return new Promise(r=>i.toBlob(a=>r(a),`image/${e}`,t.quality))}var $T=$a(()=>{"use strict";Yd()}),DT={};Hd(DT,{download:()=>fO});async function LP(s,t){let e=new File([s],t,{type:s.type});if(!navigator.canShare?.({files:[e]}))return!1;try{await navigator.share({files:[e],title:t})}catch(i){if(i.name!=="AbortError")return!1}return!0}async function fO(s,t){let e=new Set(["png","jpeg","jpg","webp","svg"]),i=(t?.type||"").toLowerCase(),r=e.has(i)?i:"",a=(t?.format||r||"").toLowerCase(),n=a==="jpg"?"jpeg":a||"png",o=t?.filename||`snapdom.${n}`,l={...t||{},format:n,type:n};l.dpr=1;let h=iO();if(n==="svg"){let d=await TT(s,{...l,type:"svg"});if(h&&await LP(d,o))return;let p=URL.createObjectURL(d),f=document.createElement("a");f.href=p,f.download=o,document.body.appendChild(f),f.click(),URL.revokeObjectURL(p),f.remove();return}let u=await Rm(s,l);if(h){let d=`image/${n}`,p=await new Promise(f=>u.toBlob(f,d,t?.quality));if(p&&await LP(p,o))return}let c=document.createElement("a");c.href=u.toDataURL(`image/${n}`,t?.quality),c.download=o,document.body.appendChild(c),c.click(),c.remove()}var mO=$a(()=>{"use strict";$T(),Yd(),Xd()});wn();wn();ta();var Jb=new WeakMap,Wd=new Map,gO=2e3,Am=0;function Sm(){Am++,Wd.size>gO&&Wd.clear()}var yO="[data-snapdom-sandbox],[data-snapdom-internal],[data-snapdom]";function Wb(s){let t=s&&(s.nodeType===1?s:s.parentElement);return!!(t&&t.closest&&t.closest(yO))}function kT(s){for(let t of s)if(!Wb(t.target)){if(t.type==="childList"){let e=!0;for(let i of t.addedNodes)if(!Wb(i)){e=!1;break}if(e){for(let i of t.removedNodes)if(!Wb(i)){e=!1;break}}if(e)continue}return!0}return!1}var FP=!1;function vO(s=document.documentElement){if(FP)return;FP=!0;let t=e=>{kT(e)&&Sm()};try{new MutationObserver(t).observe(s,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{new MutationObserver(t).observe(document.head,{subtree:!0,childList:!0,characterData:!0,attributes:!0})}catch{}try{let e=document.fonts;e&&(e.addEventListener?.("loadingdone",Sm),e.ready?.then(()=>Sm()).catch(()=>{}))}catch{}}var bO=["mask","mask-image","-webkit-mask","-webkit-mask-image","mask-source","mask-box-image-source","mask-border-source","-webkit-mask-box-image-source","border-image","border-image-source"];function OP(s){let t=Jb.get(s);if(t&&t.epoch===Am){let e=t.snapshot&&t.snapshot.__needsBgInline;if(e!==void 0)return e}return!0}function xO(s,t={}){let e={},i=t.excludeStyleProps;for(let c=0;c<s.length;c++){let d=s[c];if(dx(d)||i&&(i instanceof RegExp&&i.test(d)||typeof i=="function"&&i(d)))continue;let p=s.getPropertyValue(d);(d==="background-image"||d==="content")&&p.includes("url(")&&!p.includes("data:")&&(p="none"),e[d]=p}let r=["text-decoration-line","text-decoration-color","text-decoration-style","text-decoration-thickness","text-underline-offset","text-decoration-skip-ink"];for(let c of r)if(!e[c])try{let d=s.getPropertyValue(c);d&&(e[c]=d)}catch{}let a=["-webkit-text-stroke","-webkit-text-stroke-width","-webkit-text-stroke-color","paint-order"];for(let c of a)if(!e[c])try{let d=s.getPropertyValue(c);d&&(e[c]=d)}catch{}if(t.embedFonts){let c=["font-feature-settings","font-variation-settings","font-kerning","font-variant","font-variant-ligatures","font-optical-sizing"];for(let d of c)if(!e[d])try{let p=s.getPropertyValue(d);p&&(e[d]=p)}catch{}}try{(e["content-visibility"]||s.getPropertyValue("content-visibility"))==="hidden"&&(e["content-visibility"]="hidden")}catch{}let n=!1;{let c=s.getPropertyValue("background-image");if(c&&c!=="none"&&(n=!0),!n){let d=s.getPropertyValue("background-color");d&&d!=="rgba(0, 0, 0, 0)"&&d!=="transparent"&&(n=!0)}if(!n)for(let d of bO){let p=s.getPropertyValue(d);if(p&&p!=="none"){n=!0;break}}if(!n){let d=s.getPropertyValue("background");d&&/url\s*\(/i.test(d)&&(n=!0)}}Object.defineProperty(e,"__needsBgInline",{value:n,enumerable:!1});let o=parseFloat(s.getPropertyValue("border-top-width")||0)||0,l=parseFloat(s.getPropertyValue("border-right-width")||0)||0,h=parseFloat(s.getPropertyValue("border-bottom-width")||0)||0,u=parseFloat(s.getPropertyValue("border-left-width")||0)||0;if(o===0&&l===0&&h===0&&u===0){let c=(s.getPropertyValue("border-image-source")||"").trim(),d=c&&c!=="none",p=["border","border-top","border-right","border-bottom","border-left","border-width","border-style","border-color","border-top-width","border-top-style","border-top-color","border-right-width","border-right-style","border-right-color","border-bottom-width","border-bottom-style","border-bottom-color","border-left-width","border-left-style","border-left-color","border-block","border-block-width","border-block-style","border-block-color","border-inline","border-inline-width","border-inline-style","border-inline-color"];for(let f of p)delete e[f];d||(e.border="none")}return e}function _O(s){for(let t=s.firstChild;t;t=t.nextSibling){if(t.nodeType===3&&/\S/.test(t.nodeValue||""))return!0;if(t.nodeType===1){let e=qi(t).position;if(e!=="absolute"&&e!=="fixed")return!0}}return!1}var MP=new WeakMap;function CO(s){let t=MP.get(s);return t||(t=Object.entries(s).sort((e,i)=>e[0]<i[0]?-1:e[0]>i[0]?1:0).map(([e,i])=>`${e}:${i}`).join(";"),MP.set(s,t),t)}function SO(s,t=null,e={}){let i=Jb.get(s),r=!!(e&&e.embedFonts),a=e&&e.excludeStyleProps||null;if(i&&i.epoch===Am&&i.embedFonts===r&&i.excludeStyleProps===a)return i.snapshot;let n=t||getComputedStyle(s),o=xO(n,e);return kO(s,n,o),Jb.set(s,{epoch:Am,snapshot:o,embedFonts:r,excludeStyleProps:a}),o}function wO(s,t){return s&&s.session&&s.persist?s:s&&(s.styleMap||s.styleCache||s.nodeMap)?{session:s,persist:{snapshotKeyCache:Wd,defaultStyle:Ce.defaultStyle,baseStyle:Ce.baseStyle,image:Ce.image,resource:Ce.resource,background:Ce.background,font:Ce.font},options:t||{}}:{session:Ce.session,persist:{snapshotKeyCache:Wd,defaultStyle:Ce.defaultStyle,baseStyle:Ce.baseStyle,image:Ce.image,resource:Ce.resource,background:Ce.background,font:Ce.font},options:s||t||{}}}function PO(s,t,e){if(!(!s.style||s.style.length===0))for(let i=0;i<s.style.length;i++){let r=s.style[i],a=e.getPropertyValue(r);a&&t.style.setProperty(r,a)}}async function Qn(s,t,e,i){if(s.tagName==="STYLE")return;let r=wO(e,i),a=r.options&&r.options.cache||"auto";a!=="disabled"&&vO(document.documentElement),a==="disabled"&&!r.session.__bumpedForDisabled&&(Sm(),Wd.clear(),r.session.__bumpedForDisabled=!0);let{session:n,persist:o}=r;if(!n.styleCache.has(s)){let g=null;try{g=getComputedStyle(s)}catch{}n.styleCache.set(s,g||getComputedStyle(document.documentElement))}let l=n.styleCache.get(s);s.getAttribute?.("style")&&PO(s,t,l);let h=l.getPropertyValue("animation-name");t&&t.style&&h&&h!=="none"&&t.style.setProperty("animation","none","important");let u=SO(s,l,r.options),c=AT(s);if(c){let g=l.getPropertyValue("min-width");(!g||g==="auto"||g==="0px")&&(u["min-width"]="0px")}let d=s.tagName?.toLowerCase()||"div",p=CO(u),f=!0;if(hT(d,(u.display||"").toLowerCase())){f=_O(s),p=`${p}|${d}${f?"|c":""}${c?"|f":""}`;let g=u["text-wrap-mode"]||u["white-space"]||"";f&&g!=="nowrap"&&g!=="pre"&&(n.reconcileRisk=(n.reconcileRisk||0)+1)}let m=o.snapshotKeyCache.get(p);m===void 0&&(m=Gb(u,d,f,c),o.snapshotKeyCache.set(p,m)),n.styleMap.set(t,m)}function TO(s){return s.backgroundImage&&s.backgroundImage!=="none"||s.backgroundColor&&s.backgroundColor!=="rgba(0, 0, 0, 0)"&&s.backgroundColor!=="transparent"||(parseFloat(s.borderTopWidth)||0)>0||(parseFloat(s.borderBottomWidth)||0)>0||(parseFloat(s.paddingTop)||0)>0||(parseFloat(s.paddingBottom)||0)>0?!0:(s.overflowBlock||s.overflowY||"visible")!=="visible"}function AT(s){let t=s.parentElement;if(!t)return!1;let e=qi(t).display||"";return e.includes("flex")||e.includes("grid")}function $O(s){for(let i=s.firstChild;i;i=i.nextSibling)if(i.nodeType===3&&/\S/.test(i.nodeValue))return!0;let t=s.firstElementChild,e=s.lastElementChild;if(t&&t.tagName==="BR"||e&&e.tagName==="BR")return!0;for(let i=s.firstElementChild;i;i=i.nextElementSibling){let r=qi(i);if(r.display==="none")continue;let a=r.position;if(a!=="absolute"&&a!=="fixed")return!0}return!1}function DO(s){let t=s.getBoundingClientRect().top,e=-1/0,i=null;for(let r=s.firstChild;r;r=r.nextSibling){if(r.nodeType===3){if(!/\S/.test(r.nodeValue||""))continue;i=i||document.createRange(),i.selectNode(r);let o=i.getBoundingClientRect();(o.width||o.height)&&(e=Math.max(e,o.bottom));continue}if(r.nodeType!==1)continue;let a=qi(r);if(a.display==="none")continue;let n=a.position;n==="absolute"||n==="fixed"||a.float&&a.float!=="none"||(e=Math.max(e,r.getBoundingClientRect().bottom))}return e===-1/0?NaN:e-t}function kO(s,t,e){if(s instanceof HTMLElement&&s.style&&s.style.height)return;let i=s.tagName&&s.tagName.toLowerCase();if(!i||!["div","section","article","main","aside","header","footer","nav"].includes(i)||t.aspectRatio&&t.aspectRatio!=="none"&&t.aspectRatio!=="auto")return;let r=t.display||"";if(r.includes("flex")||r.includes("grid"))return;let a=t.position;if(a==="absolute"||a==="fixed"||a==="sticky"||t.transform!=="none"||TO(t)||AT(s))return;let n=t.overflowX||t.overflow||"visible",o=t.overflowY||t.overflow||"visible";if(n!=="visible"||o!=="visible")return;let l=t.clip;if(l&&l!=="auto"&&l!=="rect(auto, auto, auto, auto)"||t.visibility==="hidden"||t.opacity==="0"||!$O(s))return;let h=parseFloat(t.height),u=DO(s);Number.isFinite(h)&&Number.isFinite(u)&&Math.abs(h-u)>2||(delete e.height,delete e["block-size"])}Im();var LT=["fill","stroke","color","background-color","stop-color"],AO=new Set(["symbol","defs","pattern","marker","linearGradient","radialGradient","filter"]);function Qb(s){let t=s;for(;t&&t.nodeType===1;){if(t.namespaceURI==="http://www.w3.org/2000/svg"){if(t.localName==="mask"||t.localName==="clipPath")return!1;if(AO.has(t.localName))return!0}t=t.parentNode}return!1}var IP=new Map;function LO(s,t){let e=t+"::"+s.toLowerCase(),i=IP.get(e);if(i)return i;let r=document,a=t==="http://www.w3.org/2000/svg"?r.createElementNS(t,s):r.createElement(s),n=r.createElement("div");n.setAttribute("data-snapdom-internal",""),n.style.cssText="position:absolute;left:-99999px;top:-99999px;contain:strict;display:block;",n.appendChild(a),r.documentElement.appendChild(n);let o=getComputedStyle(a),l={};for(let h of LT)l[h]=o.getPropertyValue(h)||"";return n.remove(),IP.set(e,l),l}function FO(s,t){if(s?.nodeType!==1||t?.nodeType!==1||Qb(s))return;let e=s.getAttribute?.("style"),i=!!(e&&e.includes("var("));if(!i&&s.attributes?.length){let a=s.attributes;for(let n=0;n<a.length;n++){let o=a[n];if(o&&typeof o.value=="string"&&o.value.includes("var(")){i=!0;break}}}let r=null;if(i)try{r=getComputedStyle(s)}catch{}if(i){let a=s.style;if(a&&a.length){let n=new Set;for(let o=0;o<a.length;o++){let l=a[o];if(n.has(l))continue;n.add(l);let h=a.getPropertyValue(l);if(!h||!h.includes("var("))continue;let u=r&&r.getPropertyValue(l);if(u)try{t.style.setProperty(l,u.trim(),a.getPropertyPriority(l))}catch{}}}}if(i&&s.attributes?.length){let a=s.attributes;for(let n=0;n<a.length;n++){let o=a[n];if(!o||typeof o.value!="string"||!o.value.includes("var("))continue;let l=o.name,h=r&&r.getPropertyValue(l);if(h)try{t.style.setProperty(l,h.trim())}catch{}}}if(!i){if(!r)try{r=getComputedStyle(s)}catch{r=null}if(!r)return;let a=s.namespaceURI||"html",n=LO(s.tagName,a);for(let o of LT){let l=r.getPropertyValue(o)||"",h=n[o]||"";if(l&&l!==h)try{t.style.setProperty(o,l.trim())}catch{}}}}wn();wn();ta();Rh();Rh();function Ih(s){return!!(!s||s.startsWith("data:")||s.startsWith("blob:")||/^data:image\/(gif|png|svg)/.test(s)&&s.length<200)}var RP="img[data-src], img[data-lazy-src], img[data-original], img[data-hi-res-src], img[data-srcset], img[data-lazy-srcset]";function OO(s,t){return!s||s?.nodeType!==1?!1:s.matches?.("picture")||s.querySelector("picture")?!0:t?!!(s.matches?.(RP)||s.querySelector(RP)):!1}var MO=/^image\/(jpeg|jpg|png|gif|webp|avif|apng|svg\+xml|bmp|x-icon|vnd\.microsoft\.icon)\s*(;|$)/i;function Lm(s,t){if(!s)return null;let e=0;try{e=t?t.getBoundingClientRect().width||t.width:0}catch{}e||(e=window.innerWidth||1e3);let i=[];for(let a of s.split(",")){let n=a.trim().split(/\s+/);if(!n[0])continue;let o=n[1]||"",l=1;/^\d*\.?\d+x$/i.test(o)?l=parseFloat(o):/^\d+w$/i.test(o)&&(l=parseInt(o,10)/e),i.push({url:n[0],d:l})}if(!i.length)return null;i.sort((a,n)=>a.d-n.d);let r=window.devicePixelRatio||1;return(i.find(a=>a.d>=r)||i[i.length-1]).url}function FT(s,t){let e=s.currentSrc||"";if(e&&!Ih(e))return e;let i=t.querySelectorAll("source[srcset]"),r=null;for(let a of i){let n=a.getAttribute("srcset");if(!n||Ih(n))continue;let o=a.getAttribute("type");if(o&&!MO.test(o.trim()))continue;let l=a.getAttribute("media");if(l)try{if(window.matchMedia(l).matches)return Lm(n,s)}catch{}r||(r=Lm(n,s))}return r}function IO(s){let t=[s.getAttribute("data-src"),s.getAttribute("data-lazy-src"),s.getAttribute("data-original"),s.getAttribute("data-hi-res-src")];for(let i of t)if(i&&!Ih(i))return i;let e=s.getAttribute("data-srcset")||s.getAttribute("data-lazy-srcset");if(e){let i=e.split(",")[0].trim().split(/\s+/)[0];if(i&&!Ih(i))return i}return null}function RO(s={}){let t=s.pictureResolver&&typeof s.pictureResolver=="object"?s.pictureResolver:{};return{timeout:t.timeout??5e3,concurrency:t.concurrency??4,resolveLazySrc:t.resolveLazySrc!==!1,silent:t.silent??!1,useProxy:typeof s.useProxy=="string"?s.useProxy:""}}async function VO(s,t={}){if(!s||s?.nodeType!==1||t.resolvePicturePlaceholders===!1)return null;let{timeout:e,concurrency:i,resolveLazySrc:r,silent:a,useProxy:n}=RO(t);if(!OO(s,r))return null;let o=[],l=[];async function h(d){let p=await Ka(d,{as:"dataURL",timeout:e,useProxy:n,silent:!0});return p.ok?p.data:null}async function u(d){for(let p=0;p<d.length;p+=i){let f=d.slice(p,p+i);await Promise.allSettled(f.map(m=>m()))}}let c=Array.from(s.querySelectorAll("picture"));s.matches?.("picture")&&c.unshift(s);for(let d of c){let p=d.querySelector("img");if(!p)continue;let f=p.getAttribute("src")||"";if(!Ih(f))continue;let m=FT(p,d);m&&l.push(async()=>{let g=await h(m);if(!g){a||console.warn(`[snapdom:picture-resolver] Failed to fetch: ${m.slice(0,60)}`);return}let y=p.getAttribute("src"),v=p.getAttribute("srcset"),b=p.getAttribute("sizes"),x=[];p.src=g,p.setAttribute("src",g),p.removeAttribute("srcset"),p.removeAttribute("sizes");let _=d.querySelectorAll("source");for(let S of _)x.push({el:S,parent:S.parentElement,next:S.nextSibling}),S.remove();o.push(()=>{y!==null?p.setAttribute("src",y):p.removeAttribute("src"),v!==null&&p.setAttribute("srcset",v),b!==null&&p.setAttribute("sizes",b);for(let{el:S,parent:w,next:P}of x)w&&w.insertBefore(S,P)})})}if(r){let d=Array.from(s.querySelectorAll("img"));s.localName==="img"&&d.unshift(s);for(let p of d){if(p.closest("picture")&&Ih(p.getAttribute("src")||""))continue;let f=p.getAttribute("src")||"",m=IO(p);m&&Ih(f)&&l.push(async()=>{let g=await h(m);if(!g)return;let y=p.getAttribute("src");p.src=g,p.setAttribute("src",g),p.removeAttribute("srcset"),p.removeAttribute("sizes"),o.push(()=>{y!==null?p.setAttribute("src",y):p.removeAttribute("src")})})}}return l.length===0?null:(await u(l),async function(){for(let d of o)try{d()}catch{}})}function zb(s,t,e){return e?Promise.all(s.map(i=>new Promise(r=>t(i,r)))):Promise.all(s.map(i=>new Promise(r=>{function a(){bm(n=>{!(n&&typeof n.timeRemaining=="function")||n.timeRemaining()>0?t(i,r):a()},{fast:e})}a()})))}function NO(s){return s=s.trim(),!s||/:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(s)?s:`${s}:not([data-sd-slotted])`}function EO(s,t,e=!0){return s.split(",").map(i=>i.trim()).filter(Boolean).map(i=>{if(i.startsWith(":where(")||i.startsWith("@"))return i;let r=e?NO(i):i;return`:where(${t} ${r})`}).join(", ")}function BO(s,t){return s?(s=s.replace(/:host\(([^)]+)\)/g,(e,i)=>`:where(${t}:is(${i.trim()}))`),s=s.replace(/:host\b/g,`:where(${t})`),s=s.replace(/:host-context\(([^)]+)\)/g,(e,i)=>`:where(:where(${i.trim()}) ${t})`),s=s.replace(/::slotted\(([^)]+)\)/g,(e,i)=>`:where(${t} ${i.trim()})`),s=s.replace(/(^|})(\s*)([^@}{]+){/g,(e,i,r,a)=>{let n=EO(a,t,!0);return`${i}${r}${n}{`}),s):""}function jO(s){return s.shadowScopeSeq=(s.shadowScopeSeq||0)+1,`s${s.shadowScopeSeq}`}function WO(s){let t="";try{s.querySelectorAll("style").forEach(i=>{t+=(i.textContent||"")+`
5
5
  `});let e=s.adoptedStyleSheets||[];for(let i of e)try{if(i&&i.cssRules)for(let r of i.cssRules)t+=r.cssText+`
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
- import{a}from"./7YROV2MS.js";import{E as b,x as f}from"./UPENS2HR.js";import{w as g,x as m,y as p,z as n}from"./JGDOGMER.js";import"./BIXQAUTT.js";import"./GUQ44MLO.js";import{B as c,C as s,D as e,H as h,g as d,i as r}from"./74BF6TFJ.js";import"./GFIZPXVK.js";import"./C4LXB6MK.js";import"./K4PGZCDZ.js";var x=d`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:block;width:auto;height:auto;overflow:auto}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}.info-modal-container{box-sizing:border-box;width:-webkit-fill-available;height:100%;display:grid;position:absolute;place-items:center;align-content:center;justify-content:center;padding:1rem;text-align:start}.info-modal-container h3.heading-true{display:flex;margin-bottom:auto;background:#0000000d;height:30px;padding:.5rem;justify-self:stretch;text-align:start;align-items:center}.info-modal-container h3.heading-false{background:#0000000d;margin-bottom:auto;text-align:start}.info-modal-container p{justify-self:stretch;text-align:start}.chart-loader-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1001}`,l=class extends c{constructor(){super(...arguments),this.message="",this.heading="",this.showLoader=!1}static{this.properties={message:1,heading:1,showLoader:5,loaderColors:0,calciteThemeColors:0}}static{this.styles=x}render(){let i=null,t=this.loaderColors?.curtainColor??this.calciteThemeColors?.backgroundColor??g,u=this.loaderColors?.spinnerColor??this.calciteThemeColors?.spinnerColor??m,o;return this.loaderColors?.curtainColor?o=b({r:t[0],g:t[1],b:t[2],a:t[3]/255})?n:p:o=this.calciteThemeColors?.textColor??n,this.showLoader?i=r`<div class=${s(a.ChartLoaderOverlay)} style=${e({background:`rgb(${t.toString()})`,"--calcite-loader-progress-color":`rgb(${u.toString()})`})}><calcite-loader scale=s label=Loading></calcite-loader></div>`:this.message!==void 0?i=r`<div class=${s(a.InfoModalContainer)} style=${e({background:`rgb(${t.toString()})`})}><h3 class=${s(this.heading!==void 0?"heading-true":"heading-false")} style=${e({color:`rgb(${o.toString()})`})}>${this.heading}</h3><p style=${e({color:`rgb(${o.toString()})`})} .innerHTML=${f(this.message)??""}></p></div>`:i=r`<div class=${`${a.InfoModalContainer} ${a.Hide}`}></div>`,i}};h("arcgis-charts-info-modal",l);export{l as ArcgisChartsInfoModal};
2
+ import{a}from"./7YROV2MS.js";import{E as b,x as f}from"./UPENS2HR.js";import{w as g,x as m,y as p,z as n}from"./JGDOGMER.js";import"./BIXQAUTT.js";import"./GUQ44MLO.js";import{B as c,C as s,D as e,H as h,g as d,i as r}from"./AJDNZRJP.js";import"./GFIZPXVK.js";import"./C4LXB6MK.js";import"./K4PGZCDZ.js";var x=d`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:block;width:auto;height:auto;overflow:auto}.panel-children-container{display:flex}.panel-children-container calcite-label{flex:1 1 0px;display:flex;width:0px}.panel-children-container{padding:0 1rem;margin-top:1rem}.info-modal-container{box-sizing:border-box;width:-webkit-fill-available;height:100%;display:grid;position:absolute;place-items:center;align-content:center;justify-content:center;padding:1rem;text-align:start}.info-modal-container h3.heading-true{display:flex;margin-bottom:auto;background:#0000000d;height:30px;padding:.5rem;justify-self:stretch;text-align:start;align-items:center}.info-modal-container h3.heading-false{background:#0000000d;margin-bottom:auto;text-align:start}.info-modal-container p{justify-self:stretch;text-align:start}.chart-loader-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1001}`,l=class extends c{constructor(){super(...arguments),this.message="",this.heading="",this.showLoader=!1}static{this.properties={message:1,heading:1,showLoader:5,loaderColors:0,calciteThemeColors:0}}static{this.styles=x}render(){let i=null,t=this.loaderColors?.curtainColor??this.calciteThemeColors?.backgroundColor??g,u=this.loaderColors?.spinnerColor??this.calciteThemeColors?.spinnerColor??m,o;return this.loaderColors?.curtainColor?o=b({r:t[0],g:t[1],b:t[2],a:t[3]/255})?n:p:o=this.calciteThemeColors?.textColor??n,this.showLoader?i=r`<div class=${s(a.ChartLoaderOverlay)} style=${e({background:`rgb(${t.toString()})`,"--calcite-loader-progress-color":`rgb(${u.toString()})`})}><calcite-loader scale=s label=Loading></calcite-loader></div>`:this.message!==void 0?i=r`<div class=${s(a.InfoModalContainer)} style=${e({background:`rgb(${t.toString()})`})}><h3 class=${s(this.heading!==void 0?"heading-true":"heading-false")} style=${e({color:`rgb(${o.toString()})`})}>${this.heading}</h3><p style=${e({color:`rgb(${o.toString()})`})} .innerHTML=${f(this.message)??""}></p></div>`:i=r`<div class=${`${a.InfoModalContainer} ${a.Hide}`}></div>`,i}};h("arcgis-charts-info-modal",l);export{l as ArcgisChartsInfoModal};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
- import{a as $}from"./KZGZNENS.js";import{a as P}from"./3DIZRBOJ.js";import e from"./3QFLCKDU.js";import"./VTGIHCBG.js";import{a as k}from"./FVPRMLQF.js";import c from"./XCAJJFB7.js";import a from"./TUNGGTDZ.js";import"./UPENS2HR.js";import"./U4LGTOAJ.js";import{Da as y,o as I}from"./JGDOGMER.js";import{f as z}from"./BIXQAUTT.js";import{c as _,h as b,k as G}from"./GUQ44MLO.js";import"./DK7J3XAC.js";import{A as g,B as x,C as s,D as p,F as S,H as N,g as T,i as d,k as E,z as m}from"./74BF6TFJ.js";import{f as h}from"./QIST2E6D.js";import"./GFIZPXVK.js";import"./C4LXB6MK.js";import"./K4PGZCDZ.js";export default $arcgis.t(([,,{a:v,g:u,r:M}])=>{var a={sectionLabel:"section-label",label:"label",sliceList:"slice-list",radioGroup:"radio-group",pieDonutLabelsContainer:"pie-donut-labels-container",sliderInputContainer:"slider-input-container",groupingLabelContainer:"grouping-label-container",numberInput:"number-input"},D=T`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.label .grouping-label-container{display:flex;justify-content:space-between}.label .slider-input-container calcite-slider{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important;margin-right:var(--arcgis-charts-config-margin-minor);flex-grow:1}.label .slider-input-container .number-input{width:8rem}.label .slider-input-container{display:flex}.slice-list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.radio-group{margin-top:var(--arcgis-charts-config-margin-minor)}.pie-donut-labels-container{display:flex;justify-content:space-between;margin-top:calc(var(--arcgis-charts-config-margin-minor) * -3)}`,L=class extends x{constructor(){super(...arguments),this._messages=k(),this.slicesPopover=null,this.donutSizeSliderElement=m(),this.groupingThresholdElement=m(),this.groupingThresholdSliderElement=m(),this.labelCharacterLimitElement=m(),this.decimalPlacesElement=m(),this.open=!1,this.onDonutSizeSliderChange=b(()=>{this.donutSizeSliderElement.value&&Number.isInteger(this.donutSizeSliderElement.value?.value)&&(this.model.innerRadiusSize=this.donutSizeSliderElement.value.value??y)},v.SliderTimer),this.onGroupingThresholdSliderChange=b(()=>{let e=this.groupingThresholdSliderElement.value?.value;e!==void 0&&!Number.isNaN(e)?(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=e.toString()),this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=e),this.model.groupingThreshold=e):this.model.groupingThreshold=0},v.SliderTimer),this.sliceNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name,l=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;l!=null&&l>=0?this.model.setSliceName(i,l):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.sliceGrouping={...t,label:i})}},this.sliceColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail,l=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;l!=null&&l>=0?(this.model.colorMatch=!1,this.model.setSliceColor(i,l)):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.colorMatch=!1,this.model.sliceGrouping={...t,fillSymbol:{...t.fillSymbol,type:z.SFS,color:i}})}},this.slicesPopoverClose=e=>{let{selectedSliceId:i}=e.detail;i===this.selectedSliceId&&(this.selectedSliceId=void 0,this.slicesPopover=P(this.slicesPopover))},this.onModelConfigChange=()=>{this.requestUpdate()},this.onGroupingThresholdChange=b(()=>{let e=this.groupingThresholdElement.value?.value??"",i=Number.parseInt(e);i>100?i=100:i<0&&(i=0),Number.isNaN(i)?this.model.groupingThreshold=0:(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=i.toString()),this.model.groupingThreshold=i,this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=i))},v.DebounceTimer),this.popoverPlacement="leading"}static{this.properties={selectedSliceId:16,messageOverrides:0,model:0,popoverPlacement:1,chartData:0}}static{this.styles=D}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSliceId")&&this.selectedSliceIdChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSlicesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSliceIdChange(){if(!G(this.selectedSliceId)){let e=this.model.slices,i=this.model.sliceGrouping,l,t;if(this.selectedSliceId===i?.sliceId)l=i?.label,t=i?.fillSymbol?.color;else if(e!==void 0){let r=e.findIndex(n=>n.sliceId===this.selectedSliceId);l=this.model.getSliceName(r),t=this.model.getSliceColor(r)}this.slicesPopover=S(d`<arcgis-charts-config-pie-chart-slices-popover .referenceElement=${this.el} .placement=${this.popoverPlacement} .open=${this.open} .selectedSliceId=${this.selectedSliceId} .selectedName=${l} .selectedColor=${t} @arcgisChartsConfigSlicesPopoverColorChange=${this.sliceColorChange} @arcgisChartsConfigSlicesPopoverNameChange=${this.sliceNameChange} @arcgisChartsConfigPopoverClose=${this.slicesPopoverClose}></arcgis-charts-config-pie-chart-slices-popover>`),this.slicesPopover&&!document.body.contains(this.slicesPopover)&&document.body.appendChild(this.slicesPopover)}}removeSlicesPopover(){this.slicesPopover!==void 0&&this.slicesPopover!==null&&(this.slicesPopover.open=!1,this.slicesPopover.selectedName=void 0,this.slicesPopover.selectedColor=void 0,this.slicesPopover=P(this.slicesPopover))}buildSliceListItem(){let e="#CCCCCC",i="minus-square",l=[],t=this.model.slices,r=this.chartData?.dataItems;r&&(t=t?.filter(o=>r?.findIndex(c=>c.arcgis_charts_slice_id===o.sliceId)!==-1)),t?.forEach(o=>{if(o.fillSymbol?.color!==void 0){i="square-f";let[c,f,C,w]=[...o.fillSymbol.color];e=`rgba(${c},${f},${C},${w/255})`}if(o!==void 0&&!this.model.groupedSliceIds.includes(o.sliceId)){let c=o.sliceId;c===I.emptySliceId?c=this._messages.emptySlice??"":c===I.nullSliceId&&(c=this._messages.nullSlice??""),l?.push($(o.sliceId,d`<calcite-list-item .label=${o.label??o.sliceId} .description=${c} .value=${o.sliceId} .selected=${this.selectedSliceId===o.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}});let n=this.model.sliceGrouping;if(n?.fillSymbol?.color!==void 0){i="square-f";let[o,c,f,C]=[...n.fillSymbol.color];e=`rgba(${o},${c},${f},${C/255})`}return this.model.groupedSliceIds.length>0&&l?.push($(n?.sliceId,d`<calcite-list-item .label=${n?.label??n?.sliceId??""} .description=${this._messages.groupedSlices} .value=${n?.sliceId??""} .selected=${this.selectedSliceId===n?.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`)),l}buildGroupedSlicesListItem(){let e="#CCCCCC",i="minus-square",l=[];return this.model.slices?.forEach(t=>{if(t.fillSymbol?.color!==void 0){i="square-f";let[r,n,o,c]=[...t.fillSymbol.color];e=`rgba(${r},${n},${o},${c/255})`}t!==void 0&&this.model.groupedSliceIds.includes(t.sliceId)&&l?.push($(t.sliceId,d`<calcite-list-item .label=${t.label??t.sliceId} .description=${t.sliceId} .value=${t.sliceId} .selected=${this.selectedSliceId===t.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}),l}buildSliceList(){return d`<calcite-list .label=${this._messages.slices??""} class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSliceListItem()}</calcite-list>`}buildGroupedSliceList(){return d`<calcite-list .label=${this._messages.groupedSlices??""} class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildGroupedSlicesListItem()}</calcite-list>`}onLabelCharacterLimitChange(e){let i=e.target.value,l=Number.parseInt(i);l<1&&(l=1),Number.isNaN(l)?this.model.labelCharacterLimit=null:(this.labelCharacterLimitElement.value&&(this.labelCharacterLimitElement.value.value=l.toString()),this.model.labelCharacterLimit=l)}onDecimalPlacesChange(e){let i=e.target.value,l=Number.parseInt(i);l<0?l=0:l>20&&(l=20),Number.isNaN(l)?this.model.decimalPlaces=0:(this.decimalPlacesElement.value&&(this.decimalPlacesElement.value.value=l.toString()),this.model.decimalPlaces=l)}onDisplayTypeChange(e){let i=e.target.selectedItem;this.model.displayType=i?.value}resetSlicesOriginal(){this.selectedSliceId=void 0,this.model.colorMatch=!0,this.model.resetSlices()}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:i,oldIndex:l}=e.detail;this.model.moveSeries(l??0,i??l??0)}}openSlicesPopover(e){e.stopImmediatePropagation(),this.removeSlicesPopover();let i=e.target,l=i.localName==="calcite-list-item"?i:i.parentNode;l.value===this.model.sliceGrouping?.sliceId?this.selectedSliceId=this.model.sliceGrouping?.sliceId:this.selectedSliceId=l.value,this.open=!0}createTooltip(e){let i=e.currentTarget;this.tooltip=S(d`<calcite-tooltip style=${p({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top .innerHTML=${this._messages.groupingInfo??""??""}></calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){M(this.tooltip)}render(){return d`<div class=${s(a.sectionLabel)}>${this._messages.settings}</div><calcite-label class=${s(a.label)}>${this._messages.shape}<calcite-slider min=0 max=100 step=1 snap .value=${this.model.innerRadiusSize??y} @calciteSliderChange=${this.onDonutSizeSliderChange} ${g(this.donutSizeSliderElement)}></calcite-slider></calcite-label><div class=${s(a.pieDonutLabelsContainer)}><calcite-label class=${s(a.label)}>${this._messages.pie}</calcite-label><calcite-label class=${s(a.label)}>${this._messages.donut}</calcite-label></div><calcite-label class=${s(a.label)}><div class=${s(a.groupingLabelContainer)}><div>${this._messages.groupingPercent}</div><calcite-icon icon=information scale=s flip-rtl role=img tabindex=0 aria-label=${this._messages.groupingInfo??""??E} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} @focus=${this.createTooltip} @blur=${this.destroyTooltip}></calcite-icon></div><div class=${s(a.sliderInputContainer)}><calcite-slider min=0 max=50 step=1 snap .value=${_(u(this.model.groupingThreshold??0))} @calciteSliderChange=${this.onGroupingThresholdSliderChange} ${g(this.groupingThresholdSliderElement)}></calcite-slider><calcite-input class=${s(a.numberInput)} type=number min=0 max=100 step=1 suffix-text=% .value=${u(this.model.groupingThreshold??0)} @calciteInputInput=${this.onGroupingThresholdChange} @click=${e=>{e.stopPropagation()}} ${g(this.groupingThresholdElement)}></calcite-input></div></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.labels}</div><calcite-label class=${s(a.label)}>${this._messages.labelCharacterLimit}<calcite-input type=number min=1 step=1 .value=${u(this.model.labelCharacterLimit)} @calciteInputInput=${this.onLabelCharacterLimitChange} ${g(this.labelCharacterLimitElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.decimalPlaces}<calcite-input type=number min=0 max=20 step=1 .value=${u(this.model.decimalPlaces)} @calciteInputInput=${this.onDecimalPlacesChange} ${g(this.decimalPlacesElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.display}<calcite-radio-button-group class=${s(a.radioGroup)} name=display layout=vertical @calciteRadioButtonGroupChange=${this.onDisplayTypeChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Value} .checked=${this.model.displayType===h.Value}></calcite-radio-button>${this._messages.value}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Percentage} .checked=${this.model.displayType===h.Percentage}></calcite-radio-button>${this._messages.percentage}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Both} .checked=${this.model.displayType===h.Both}></calcite-radio-button>${this._messages.both}</calcite-label></calcite-radio-button-group></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.slices}<calcite-button @click=${this.resetSlicesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSliceList()}<div class=${s(a.sectionLabel)}>${this._messages.groupedSlices}</div>${this.buildGroupedSliceList()}`}};N("arcgis-charts-config-pie-chart-slices",L);return L},a,c,e)
2
+ import{a as $}from"./FZ4P2E22.js";import{a as P}from"./3DIZRBOJ.js";import e from"./3Z2C6NLH.js";import"./VTGIHCBG.js";import{a as k}from"./LD7OU6HP.js";import c from"./ZJIYZYVK.js";import a from"./JJLZNOU5.js";import"./UPENS2HR.js";import"./U4LGTOAJ.js";import{Da as y,o as I}from"./JGDOGMER.js";import{f as z}from"./BIXQAUTT.js";import{c as _,h as b,k as G}from"./GUQ44MLO.js";import"./CHCM5ZNC.js";import{A as g,B as x,C as s,D as p,F as S,H as N,g as T,i as d,k as E,z as m}from"./AJDNZRJP.js";import{f as h}from"./QIST2E6D.js";import"./GFIZPXVK.js";import"./C4LXB6MK.js";import"./K4PGZCDZ.js";export default $arcgis.t(([,,{a:v,g:u,r:M}])=>{var a={sectionLabel:"section-label",label:"label",sliceList:"slice-list",radioGroup:"radio-group",pieDonutLabelsContainer:"pie-donut-labels-container",sliderInputContainer:"slider-input-container",groupingLabelContainer:"grouping-label-container",numberInput:"number-input"},D=T`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width);margin:var(--arcgis-charts-config-calcite-block-default-margin)}.section-label{display:flex;margin:var(--arcgis-charts-config-margin-major) var(--arcgis-charts-config-margin-minor);justify-content:space-between;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.label{display:flex;margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-minor);justify-content:space-between}.label .grouping-label-container{display:flex;justify-content:space-between}.label .slider-input-container calcite-slider{--calcite-label-margin-bottom: var(--arcgis-charts-intra-section-margin) !important;margin-right:var(--arcgis-charts-config-margin-minor);flex-grow:1}.label .slider-input-container .number-input{width:8rem}.label .slider-input-container{display:flex}.slice-list{margin-left:var(--arcgis-charts-config-margin-minor);margin-right:var(--arcgis-charts-config-margin-minor);margin-bottom:var(--arcgis-charts-config-margin-major)}.radio-group{margin-top:var(--arcgis-charts-config-margin-minor)}.pie-donut-labels-container{display:flex;justify-content:space-between;margin-top:calc(var(--arcgis-charts-config-margin-minor) * -3)}`,L=class extends x{constructor(){super(...arguments),this._messages=k(),this.slicesPopover=null,this.donutSizeSliderElement=m(),this.groupingThresholdElement=m(),this.groupingThresholdSliderElement=m(),this.labelCharacterLimitElement=m(),this.decimalPlacesElement=m(),this.open=!1,this.onDonutSizeSliderChange=b(()=>{this.donutSizeSliderElement.value&&Number.isInteger(this.donutSizeSliderElement.value?.value)&&(this.model.innerRadiusSize=this.donutSizeSliderElement.value.value??y)},v.SliderTimer),this.onGroupingThresholdSliderChange=b(()=>{let e=this.groupingThresholdSliderElement.value?.value;e!==void 0&&!Number.isNaN(e)?(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=e.toString()),this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=e),this.model.groupingThreshold=e):this.model.groupingThreshold=0},v.SliderTimer),this.sliceNameChange=e=>{if(e.detail!==null||e.detail!==void 0){let i=e.detail?.name,l=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;l!=null&&l>=0?this.model.setSliceName(i,l):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.sliceGrouping={...t,label:i})}},this.sliceColorChange=e=>{if(e.detail!==null&&e.detail!==void 0){let{color:i}=e.detail,l=this.model.slices?.findIndex(r=>r.sliceId===this.selectedSliceId),t=this.model.sliceGrouping;l!=null&&l>=0?(this.model.colorMatch=!1,this.model.setSliceColor(i,l)):t?.sliceId===this.selectedSliceId&&t!==void 0&&(this.model.colorMatch=!1,this.model.sliceGrouping={...t,fillSymbol:{...t.fillSymbol,type:z.SFS,color:i}})}},this.slicesPopoverClose=e=>{let{selectedSliceId:i}=e.detail;i===this.selectedSliceId&&(this.selectedSliceId=void 0,this.slicesPopover=P(this.slicesPopover))},this.onModelConfigChange=()=>{this.requestUpdate()},this.onGroupingThresholdChange=b(()=>{let e=this.groupingThresholdElement.value?.value??"",i=Number.parseInt(e);i>100?i=100:i<0&&(i=0),Number.isNaN(i)?this.model.groupingThreshold=0:(this.groupingThresholdElement?.value&&(this.groupingThresholdElement.value.value=i.toString()),this.model.groupingThreshold=i,this.groupingThresholdSliderElement.value&&(this.groupingThresholdSliderElement.value.value=i))},v.DebounceTimer),this.popoverPlacement="leading"}static{this.properties={selectedSliceId:16,messageOverrides:0,model:0,popoverPlacement:1,chartData:0}}static{this.styles=D}load(){this.modelChange(this.model),this.onModelConfigChange()}willUpdate(e){e.has("model")&&this.modelChange(this.model,e.get("model")),e.has("selectedSliceId")&&this.selectedSliceIdChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeSlicesPopover(),this.model.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}modelChange(e,i){i?.removeEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange),e?.addEventListener("arcgisChartsModelConfigChange",this.onModelConfigChange)}selectedSliceIdChange(){if(!G(this.selectedSliceId)){let e=this.model.slices,i=this.model.sliceGrouping,l,t;if(this.selectedSliceId===i?.sliceId)l=i?.label,t=i?.fillSymbol?.color;else if(e!==void 0){let r=e.findIndex(n=>n.sliceId===this.selectedSliceId);l=this.model.getSliceName(r),t=this.model.getSliceColor(r)}this.slicesPopover=S(d`<arcgis-charts-config-pie-chart-slices-popover .referenceElement=${this.el} .placement=${this.popoverPlacement} .open=${this.open} .selectedSliceId=${this.selectedSliceId} .selectedName=${l} .selectedColor=${t} @arcgisChartsConfigSlicesPopoverColorChange=${this.sliceColorChange} @arcgisChartsConfigSlicesPopoverNameChange=${this.sliceNameChange} @arcgisChartsConfigPopoverClose=${this.slicesPopoverClose}></arcgis-charts-config-pie-chart-slices-popover>`),this.slicesPopover&&!document.body.contains(this.slicesPopover)&&document.body.appendChild(this.slicesPopover)}}removeSlicesPopover(){this.slicesPopover!==void 0&&this.slicesPopover!==null&&(this.slicesPopover.open=!1,this.slicesPopover.selectedName=void 0,this.slicesPopover.selectedColor=void 0,this.slicesPopover=P(this.slicesPopover))}buildSliceListItem(){let e="#CCCCCC",i="minus-square",l=[],t=this.model.slices,r=this.chartData?.dataItems;r&&(t=t?.filter(o=>r?.findIndex(c=>c.arcgis_charts_slice_id===o.sliceId)!==-1)),t?.forEach(o=>{if(o.fillSymbol?.color!==void 0){i="square-f";let[c,f,C,w]=[...o.fillSymbol.color];e=`rgba(${c},${f},${C},${w/255})`}if(o!==void 0&&!this.model.groupedSliceIds.includes(o.sliceId)){let c=o.sliceId;c===I.emptySliceId?c=this._messages.emptySlice??"":c===I.nullSliceId&&(c=this._messages.nullSlice??""),l?.push($(o.sliceId,d`<calcite-list-item .label=${o.label??o.sliceId} .description=${c} .value=${o.sliceId} .selected=${this.selectedSliceId===o.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}});let n=this.model.sliceGrouping;if(n?.fillSymbol?.color!==void 0){i="square-f";let[o,c,f,C]=[...n.fillSymbol.color];e=`rgba(${o},${c},${f},${C/255})`}return this.model.groupedSliceIds.length>0&&l?.push($(n?.sliceId,d`<calcite-list-item .label=${n?.label??n?.sliceId??""} .description=${this._messages.groupedSlices} .value=${n?.sliceId??""} .selected=${this.selectedSliceId===n?.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`)),l}buildGroupedSlicesListItem(){let e="#CCCCCC",i="minus-square",l=[];return this.model.slices?.forEach(t=>{if(t.fillSymbol?.color!==void 0){i="square-f";let[r,n,o,c]=[...t.fillSymbol.color];e=`rgba(${r},${n},${o},${c/255})`}t!==void 0&&this.model.groupedSliceIds.includes(t.sliceId)&&l?.push($(t.sliceId,d`<calcite-list-item .label=${t.label??t.sliceId} .description=${t.sliceId} .value=${t.sliceId} .selected=${this.selectedSliceId===t.sliceId} @click=${this.openSlicesPopover}><calcite-icon slot=content-end .icon=${i} style=${p({color:e})}></calcite-icon></calcite-list-item>`))}),l}buildSliceList(){return d`<calcite-list .label=${this._messages.slices??""} class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildSliceListItem()}</calcite-list>`}buildGroupedSliceList(){return d`<calcite-list .label=${this._messages.groupedSlices??""} class=${s(a.sliceList)} selection-mode=single selection-appearance=border @calciteListOrderChange=${this.onCalciteListOrderChange}>${this.buildGroupedSlicesListItem()}</calcite-list>`}onLabelCharacterLimitChange(e){let i=e.target.value,l=Number.parseInt(i);l<1&&(l=1),Number.isNaN(l)?this.model.labelCharacterLimit=null:(this.labelCharacterLimitElement.value&&(this.labelCharacterLimitElement.value.value=l.toString()),this.model.labelCharacterLimit=l)}onDecimalPlacesChange(e){let i=e.target.value,l=Number.parseInt(i);l<0?l=0:l>20&&(l=20),Number.isNaN(l)?this.model.decimalPlaces=0:(this.decimalPlacesElement.value&&(this.decimalPlacesElement.value.value=l.toString()),this.model.decimalPlaces=l)}onDisplayTypeChange(e){let i=e.target.selectedItem;this.model.displayType=i?.value}resetSlicesOriginal(){this.selectedSliceId=void 0,this.model.colorMatch=!0,this.model.resetSlices()}onCalciteListOrderChange(e){if(e.detail!==null&&e.detail!==void 0){let{newIndex:i,oldIndex:l}=e.detail;this.model.moveSeries(l??0,i??l??0)}}openSlicesPopover(e){e.stopImmediatePropagation(),this.removeSlicesPopover();let i=e.target,l=i.localName==="calcite-list-item"?i:i.parentNode;l.value===this.model.sliceGrouping?.sliceId?this.selectedSliceId=this.model.sliceGrouping?.sliceId:this.selectedSliceId=l.value,this.open=!0}createTooltip(e){let i=e.currentTarget;this.tooltip=S(d`<calcite-tooltip style=${p({opacity:1,zIndex:"var(--calcite-floating-ui-z-index)"})} .referenceElement=${i} open placement=top .innerHTML=${this._messages.groupingInfo??""??""}></calcite-tooltip>`),document.body.appendChild(this.tooltip)}destroyTooltip(){M(this.tooltip)}render(){return d`<div class=${s(a.sectionLabel)}>${this._messages.settings}</div><calcite-label class=${s(a.label)}>${this._messages.shape}<calcite-slider min=0 max=100 step=1 snap .value=${this.model.innerRadiusSize??y} @calciteSliderChange=${this.onDonutSizeSliderChange} ${g(this.donutSizeSliderElement)}></calcite-slider></calcite-label><div class=${s(a.pieDonutLabelsContainer)}><calcite-label class=${s(a.label)}>${this._messages.pie}</calcite-label><calcite-label class=${s(a.label)}>${this._messages.donut}</calcite-label></div><calcite-label class=${s(a.label)}><div class=${s(a.groupingLabelContainer)}><div>${this._messages.groupingPercent}</div><calcite-icon icon=information scale=s flip-rtl role=img tabindex=0 aria-label=${this._messages.groupingInfo??""??E} @mouseover=${this.createTooltip} @mouseout=${this.destroyTooltip} @focus=${this.createTooltip} @blur=${this.destroyTooltip}></calcite-icon></div><div class=${s(a.sliderInputContainer)}><calcite-slider min=0 max=50 step=1 snap .value=${_(u(this.model.groupingThreshold??0))} @calciteSliderChange=${this.onGroupingThresholdSliderChange} ${g(this.groupingThresholdSliderElement)}></calcite-slider><calcite-input class=${s(a.numberInput)} type=number min=0 max=100 step=1 suffix-text=% .value=${u(this.model.groupingThreshold??0)} @calciteInputInput=${this.onGroupingThresholdChange} @click=${e=>{e.stopPropagation()}} ${g(this.groupingThresholdElement)}></calcite-input></div></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.labels}</div><calcite-label class=${s(a.label)}>${this._messages.labelCharacterLimit}<calcite-input type=number min=1 step=1 .value=${u(this.model.labelCharacterLimit)} @calciteInputInput=${this.onLabelCharacterLimitChange} ${g(this.labelCharacterLimitElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.decimalPlaces}<calcite-input type=number min=0 max=20 step=1 .value=${u(this.model.decimalPlaces)} @calciteInputInput=${this.onDecimalPlacesChange} ${g(this.decimalPlacesElement)}></calcite-input></calcite-label><calcite-label class=${s(a.label)}>${this._messages.display}<calcite-radio-button-group class=${s(a.radioGroup)} name=display layout=vertical @calciteRadioButtonGroupChange=${this.onDisplayTypeChange}><calcite-label layout=inline><calcite-radio-button .value=${h.Value} .checked=${this.model.displayType===h.Value}></calcite-radio-button>${this._messages.value}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Percentage} .checked=${this.model.displayType===h.Percentage}></calcite-radio-button>${this._messages.percentage}</calcite-label><calcite-label layout=inline><calcite-radio-button .value=${h.Both} .checked=${this.model.displayType===h.Both}></calcite-radio-button>${this._messages.both}</calcite-label></calcite-radio-button-group></calcite-label><div class=${s(a.sectionLabel)}>${this._messages.slices}<calcite-button @click=${this.resetSlicesOriginal} .disabled=${!this.model.resetAvailable()} appearance=transparent icon-end=reset>${this._messages.reset}</calcite-button></div>${this.buildSliceList()}<div class=${s(a.sectionLabel)}>${this._messages.groupedSlices}</div>${this.buildGroupedSliceList()}`}};N("arcgis-charts-config-pie-chart-slices",L);return L},a,c,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
- import{l as d}from"./74BF6TFJ.js";var C=(t,s)=>{let e=t;for(;e;){if(e===s)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},u=(t,s,e)=>{let n=E(s).subscribe;return n(o=>{o.some(a=>C(t,a.target))&&e()})},g={},E=t=>{let s=t.join(","),e=g[s];if(e!==void 0)return e;let n=new Set,o=new MutationObserver(a=>n.forEach(i=>i(a)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let r={subscribe:a=>(n.add(a),()=>{n.delete(a),n.size===0&&(o.disconnect(),g[s]=void 0)})};return g[s]=r,r},h=(t,s)=>{let e=t;for(;e;){let n=e.closest?.(s);if(n)return n;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};function b(t){let s=h(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return s?.classList.contains("calcite-mode-dark")||s?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var v=t=>l(t,"dir","ltr"),l=(t,s,e)=>h(t,`[${s}]`)?.getAttribute(s)??e;var A=t=>{let s=l(t,"lang",globalThis.navigator?.language||c);return{lang:s,t9nLocale:p(s)}},U=(t,s,e,n)=>{let o,r=()=>$(t,s(),n).then(a=>{(o?.lang!==a.lang||o.t9nLocale!==a.t9nLocale||o.t9nStrings!==a.t9nStrings)&&e(a),o=a}).catch(a=>{d("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(r),u(t,["lang"],r)},$=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:n,t9nLocale:o}=A(t),r=`${s}/${e}/t9n`,i=e===null?{}:await S(o,r,"messages.");return{lang:n,t9nLocale:o,t9nStrings:i}};var N="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),y=new Set(N),c="en",L={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},S=async(t,s,e="")=>{let n=`${s}/${e}`,o=`${n}${t}.json`;return f[o]??=m(t,n),await f[o]},f={},m=async(t,s)=>{let e=`${s}${t}.json`;try{let n=await fetch(e);if(n.ok)return await n.json()}catch(n){return d("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:n}}),{}}return t===c?{}:await m(c,s)},p=t=>{let[s,e]=t.split("-"),n=s.toLowerCase(),o=n;return e&&(o=`${n}-${e.toUpperCase()}`),o=L[o]??o,y.has(o)?o:e?p(n):c};export{u as a,b,v as c,A as d,U as e,y as f,c as g,S as h,p as i};
2
+ import{l as d}from"./AJDNZRJP.js";var C=(t,s)=>{let e=t;for(;e;){if(e===s)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},u=(t,s,e)=>{let n=E(s).subscribe;return n(o=>{o.some(a=>C(t,a.target))&&e()})},g={},E=t=>{let s=t.join(","),e=g[s];if(e!==void 0)return e;let n=new Set,o=new MutationObserver(a=>n.forEach(i=>i(a)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let r={subscribe:a=>(n.add(a),()=>{n.delete(a),n.size===0&&(o.disconnect(),g[s]=void 0)})};return g[s]=r,r},h=(t,s)=>{let e=t;for(;e;){let n=e.closest?.(s);if(n)return n;let o=e.getRootNode?.();if(o===globalThis.document)return;e=o?.host}};function b(t){let s=h(t,".calcite-mode-dark, .calcite-mode-light, .calcite-mode-auto");return s?.classList.contains("calcite-mode-dark")||s?.classList.contains("calcite-mode-auto")&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var v=t=>l(t,"dir","ltr"),l=(t,s,e)=>h(t,`[${s}]`)?.getAttribute(s)??e;var A=t=>{let s=l(t,"lang",globalThis.navigator?.language||c);return{lang:s,t9nLocale:p(s)}},U=(t,s,e,n)=>{let o,r=()=>$(t,s(),n).then(a=>{(o?.lang!==a.lang||o.t9nLocale!==a.t9nLocale||o.t9nStrings!==a.t9nStrings)&&e(a),o=a}).catch(a=>{d("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(r),u(t,["lang"],r)},$=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:n,t9nLocale:o}=A(t),r=`${s}/${e}/t9n`,i=e===null?{}:await S(o,r,"messages.");return{lang:n,t9nLocale:o,t9nStrings:i}};var N="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),y=new Set(N),c="en",L={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},S=async(t,s,e="")=>{let n=`${s}/${e}`,o=`${n}${t}.json`;return f[o]??=m(t,n),await f[o]},f={},m=async(t,s)=>{let e=`${s}${t}.json`;try{let n=await fetch(e);if(n.ok)return await n.json()}catch(n){return d("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:n}}),{}}return t===c?{}:await m(c,s)},p=t=>{let[s,e]=t.split("-"),n=s.toLowerCase(),o=n;return e&&(o=`${n}-${e.toUpperCase()}`),o=L[o]??o,y.has(o)?o:e?p(n):c};export{u as a,b,v as c,A as d,U as e,y as f,c as g,S as h,p as i};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
- import b from"./XCAJJFB7.js";import{F as o,H as n,c as a}from"./JGDOGMER.js";export default $arcgis.t(([{a:x}])=>{var f=(i,t)=>t.axes?.[i]?.labels?.visible??!0,g=i=>{let{visibility:t,axisIndex:s,config:e}=i;x({config:e,axisIndex:s,callback:l=>{l.labels!==void 0?l.labels.visible=t:l.labels=n({text:"",visible:t,font:o(a.AxisLabels),type:a.AxisLabels})}})},b=(i,t)=>t.axes?.[i]?.title?.content.text??"",A=(i,t,s)=>{let e=s.axes?.[t];e?.title!==void 0?e.title.content.text=i:e!==void 0&&e?.title===void 0&&(e.title=n({text:i,visible:!0,font:o(a.AxisTitle)}))},m=(i,t)=>t.axes?.[i]?.title?.visible??!1,r=i=>{let{visibility:t,axisIndex:s,config:e}=i;x({config:e,axisIndex:s,callback:(l,c)=>{l.title!==void 0?l.title.visible=t:l.title=n({text:b(c,e),visible:t,font:o(a.AxisTitle)})}})},y=(i,t)=>i.axes?.[t]?.title?.content,I=i=>{let{config:t,axisIndex:s,symbol:e}=i;x({config:t,axisIndex:s,callback:l=>{let c=l.title?.content.text;(l.title===void 0||e===void 0)&&(l.title=n({text:"",visible:!0,font:o(a.AxisTitle),type:a.AxisTitle})),e!==void 0&&(l.title.content=e),l.title.content.text=c}})};return{a:f,b:g,c:b,d:A,e:m,f:r,g:y,h:I}},b)
2
+ import b from"./ZJIYZYVK.js";import{F as o,H as n,c as a}from"./JGDOGMER.js";export default $arcgis.t(([{a:x}])=>{var f=(i,t)=>t.axes?.[i]?.labels?.visible??!0,g=i=>{let{visibility:t,axisIndex:s,config:e}=i;x({config:e,axisIndex:s,callback:l=>{l.labels!==void 0?l.labels.visible=t:l.labels=n({text:"",visible:t,font:o(a.AxisLabels),type:a.AxisLabels})}})},b=(i,t)=>t.axes?.[i]?.title?.content.text??"",A=(i,t,s)=>{let e=s.axes?.[t];e?.title!==void 0?e.title.content.text=i:e!==void 0&&e?.title===void 0&&(e.title=n({text:i,visible:!0,font:o(a.AxisTitle)}))},m=(i,t)=>t.axes?.[i]?.title?.visible??!1,r=i=>{let{visibility:t,axisIndex:s,config:e}=i;x({config:e,axisIndex:s,callback:(l,c)=>{l.title!==void 0?l.title.visible=t:l.title=n({text:b(c,e),visible:t,font:o(a.AxisTitle)})}})},y=(i,t)=>i.axes?.[t]?.title?.content,I=i=>{let{config:t,axisIndex:s,symbol:e}=i;x({config:t,axisIndex:s,callback:l=>{let c=l.title?.content.text;(l.title===void 0||e===void 0)&&(l.title=n({text:"",visible:!0,font:o(a.AxisTitle),type:a.AxisTitle})),e!==void 0&&(l.title.content=e),l.title.content.text=c}})};return{a:f,b:g,c:b,d:A,e:m,f:r,g:y,h:I}},b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
- import{a as u}from"./FVPRMLQF.js";import"./DK7J3XAC.js";import{B as e,H as d,g as t,i as n}from"./74BF6TFJ.js";import"./K4PGZCDZ.js";var h=t`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width)}`,o=class extends e{constructor(){super(...arguments),this._messages=u(),this.open=!1,this.showMinXBoundOption=!1,this.showMaxXBoundOption=!1,this.showMinYBoundOption=!1,this.showMaxYBoundOption=!1,this.showEnableXLogOption=!1,this.showEnableYLogOption=!1}static{this.properties={messageOverrides:0,model:0,calculatedDataMinMaxBounds:0,open:5,showMinXBoundOption:5,showMaxXBoundOption:5,showMinYBoundOption:5,showMaxYBoundOption:5,showEnableXLogOption:5,showEnableYLogOption:5,calculatedMinMaxBounds:0}}static{this.styles=h}getMinFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.minimum??Number.NaN}getMaxFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.maximum??Number.NaN}render(){let i=this.calculatedMinMaxBounds?.find(a=>a.isXAxis),s=this.calculatedMinMaxBounds?.find(a=>!a.isXAxis);return n`<arcgis-charts-config-axis .model=${this.model} is-x-axis .axisTitle=${this._messages.xAxis} .showMinBoundOption=${this.showMinXBoundOption} .showMaxBoundOption=${this.showMaxXBoundOption} .showEnableLogOption=${this.showEnableXLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!0)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!0)} .initialMaxBound=${i?.maximum} .initialMinBound=${i?.minimum}></arcgis-charts-config-axis><arcgis-charts-config-axis .model=${this.model} .axisTitle=${this._messages.yAxis} .showMinBoundOption=${this.showMinYBoundOption} .showMaxBoundOption=${this.showMaxYBoundOption} .showEnableLogOption=${this.showEnableYLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!1)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!1)} .initialMaxBound=${s?.maximum} .initialMinBound=${s?.minimum}></arcgis-charts-config-axis>`}};d("arcgis-charts-config-axes",o);export{o as ArcgisChartsConfigAxes};
2
+ import{a as u}from"./LD7OU6HP.js";import"./CHCM5ZNC.js";import{B as e,H as d,g as t,i as n}from"./AJDNZRJP.js";import"./K4PGZCDZ.js";var h=t`:host{display:flex;flex-direction:column;width:var(--arcgis-charts-config-calcite-block-default-width)}`,o=class extends e{constructor(){super(...arguments),this._messages=u(),this.open=!1,this.showMinXBoundOption=!1,this.showMaxXBoundOption=!1,this.showMinYBoundOption=!1,this.showMaxYBoundOption=!1,this.showEnableXLogOption=!1,this.showEnableYLogOption=!1}static{this.properties={messageOverrides:0,model:0,calculatedDataMinMaxBounds:0,open:5,showMinXBoundOption:5,showMaxXBoundOption:5,showMinYBoundOption:5,showMaxYBoundOption:5,showEnableXLogOption:5,showEnableYLogOption:5,calculatedMinMaxBounds:0}}static{this.styles=h}getMinFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.minimum??Number.NaN}getMaxFromCalculatedDataBounds(i){return this.calculatedDataMinMaxBounds?.find(s=>s.isXAxis===i)?.maximum??Number.NaN}render(){let i=this.calculatedMinMaxBounds?.find(a=>a.isXAxis),s=this.calculatedMinMaxBounds?.find(a=>!a.isXAxis);return n`<arcgis-charts-config-axis .model=${this.model} is-x-axis .axisTitle=${this._messages.xAxis} .showMinBoundOption=${this.showMinXBoundOption} .showMaxBoundOption=${this.showMaxXBoundOption} .showEnableLogOption=${this.showEnableXLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!0)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!0)} .initialMaxBound=${i?.maximum} .initialMinBound=${i?.minimum}></arcgis-charts-config-axis><arcgis-charts-config-axis .model=${this.model} .axisTitle=${this._messages.yAxis} .showMinBoundOption=${this.showMinYBoundOption} .showMaxBoundOption=${this.showMaxYBoundOption} .showEnableLogOption=${this.showEnableYLogOption} .dataMinValue=${this.getMinFromCalculatedDataBounds(!1)} .dataMaxValue=${this.getMaxFromCalculatedDataBounds(!1)} .initialMaxBound=${s?.maximum} .initialMinBound=${s?.minimum}></arcgis-charts-config-axis>`}};d("arcgis-charts-config-axes",o);export{o as ArcgisChartsConfigAxes};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/1.0/LICENSE.txt */
2
- import a from"./3AU4BVFA.js";import{h as d}from"./UPENS2HR.js";export default $arcgis.t(([{d:c,e:n}])=>{var h=Object.defineProperty,m=Object.getOwnPropertyDescriptor,f=(t,e,a,u)=>{for(var r=m(e,a),i=t.length-1,s;i>=0;i--)(s=t[i])&&(r=s(e,a,r)||r);return r&&h(e,a,r),r};function S(t){return t!==void 0&&"rotated"in t}var p=t=>d(t),g=(t,e)=>{e.rotated=t},o=class extends c{get rotatedState(){return p(this._config)}set rotatedState(e){g(e,this._config)}get rotated(){return p(this._config)}set rotated(e){g(e,this._config)}};f([n],o.prototype,"rotatedState");f([n],o.prototype,"rotated");return{a:S,b:o}},a)
2
+ import a from"./LTZBWR5K.js";import{h as d}from"./UPENS2HR.js";export default $arcgis.t(([{d:c,e:n}])=>{var h=Object.defineProperty,m=Object.getOwnPropertyDescriptor,f=(t,e,a,u)=>{for(var r=m(e,a),i=t.length-1,s;i>=0;i--)(s=t[i])&&(r=s(e,a,r)||r);return r&&h(e,a,r),r};function S(t){return t!==void 0&&"rotated"in t}var p=t=>d(t),g=(t,e)=>{e.rotated=t},o=class extends c{get rotatedState(){return p(this._config)}set rotatedState(e){g(e,this._config)}get rotated(){return p(this._config)}set rotated(e){g(e,this._config)}};f([n],o.prototype,"rotatedState");f([n],o.prototype,"rotated");return{a:S,b:o}},a)