tide-commander 1.177.2 → 1.178.0

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 (120) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/assets/{BossLogsModal-BJ85hhZB.js → BossLogsModal-CS4LIvSu.js} +1 -1
  3. package/dist/assets/{BossSpawnModal-iF7jBjoW.js → BossSpawnModal-DFqNOCaI.js} +1 -1
  4. package/dist/assets/{ControlsModal-C-Dlj2C2.js → ControlsModal-BTX5H6jw.js} +1 -1
  5. package/dist/assets/{DockerLogsModal-CPK49emd.js → DockerLogsModal-C8pdXuqO.js} +1 -1
  6. package/dist/assets/{EmbeddedEditor-CtM591W2.js → EmbeddedEditor--FuYpTIa.js} +1 -1
  7. package/dist/assets/FcStdViewer-DwgwMwrx.js +1 -0
  8. package/dist/assets/GcodeViewer-CynUwDmS.js +1 -0
  9. package/dist/assets/{GmailOAuthSetup-DBbZpNj4.js → GmailOAuthSetup-BwdW6138.js} +1 -1
  10. package/dist/assets/{GoogleOAuthSetup-BF233CPj.js → GoogleOAuthSetup-D1r3EeDF.js} +1 -1
  11. package/dist/assets/{IframeModal-DoLqp8i3.js → IframeModal-B9yOGPoP.js} +1 -1
  12. package/dist/assets/{IntegrationsPanel-Dpx2slxW.js → IntegrationsPanel-lF8DIGck.js} +2 -2
  13. package/dist/assets/{LogViewerModal-CI6NVsnn.js → LogViewerModal-QtEg0GoV.js} +1 -1
  14. package/dist/assets/{MonitoringModal-CGQjCKh8.js → MonitoringModal-zHaxFAy8.js} +1 -1
  15. package/dist/assets/OrbitControls-B1__nj_c.js +1 -0
  16. package/dist/assets/{PM2LogsModal-cprJemBk.js → PM2LogsModal-DPRGsqvu.js} +1 -1
  17. package/dist/assets/{RestoreArchivedAreaModal-CD-nkwHT.js → RestoreArchivedAreaModal-4Yp2K-Vg.js} +1 -1
  18. package/dist/assets/{Scene2DCanvas-C0d2NOZF.js → Scene2DCanvas-Cn672tbC.js} +1 -1
  19. package/dist/assets/SceneManager-CKaBryd4.js +104 -0
  20. package/dist/assets/{SkillsPanel-Bea0jqNk.js → SkillsPanel-BNSoS60S.js} +1 -1
  21. package/dist/assets/{SlackMultiInstanceSetup-BvYk2UWs.js → SlackMultiInstanceSetup-BsckrPs-.js} +1 -1
  22. package/dist/assets/{SpawnModal-EOdsRMsU.js → SpawnModal-BxdMXDMp.js} +1 -1
  23. package/dist/assets/{StatisticsModal-DMTuwOyD.js → StatisticsModal-FNbvlYGU.js} +1 -1
  24. package/dist/assets/StlViewer-CRt0aUAf.js +1 -0
  25. package/dist/assets/{SubordinateAssignmentModal-kaXTALIo.js → SubordinateAssignmentModal-DxUqNMOR.js} +1 -1
  26. package/dist/assets/ThreeAreaSelector-DkbNFeb4.js +2 -0
  27. package/dist/assets/ThreeViewShortcuts-C6XYQvVm.js +1 -0
  28. package/dist/assets/{TriggerManagerPanel-BwmFtZCh.js → TriggerManagerPanel-DcX4J5m7.js} +1 -1
  29. package/dist/assets/{WorkflowEditorPanel-2SLzQ_F7.js → WorkflowEditorPanel-5VPqFGzD.js} +1 -1
  30. package/dist/assets/{abnfDiagram-VRR7QNED-Bn16ZJvn.js → abnfDiagram-VRR7QNED-6F-3T6-Y.js} +1 -1
  31. package/dist/assets/{arc-BS1yGfg8.js → arc-NHzv0EA5.js} +1 -1
  32. package/dist/assets/{architectureDiagram-ZJ3FMSHR-BowAVE2g.js → architectureDiagram-ZJ3FMSHR-CsJhNPjv.js} +1 -1
  33. package/dist/assets/{area-logos-iPYyTqRS.js → area-logos-CYEXA4lp.js} +1 -1
  34. package/dist/assets/{blockDiagram-677ZJIJ3-ZcRTeACC.js → blockDiagram-677ZJIJ3-UT3b2Q12.js} +1 -1
  35. package/dist/assets/{c4Diagram-LMCZKHZV-DVyCmWLe.js → c4Diagram-LMCZKHZV-uMYRTZix.js} +1 -1
  36. package/dist/assets/channel-D4Oo3ZHk.js +1 -0
  37. package/dist/assets/{chunk-2Q5K7J3B-Do4loXOf.js → chunk-2Q5K7J3B-BwXKcNaP.js} +1 -1
  38. package/dist/assets/{chunk-32BRIVSS-BteUBJrm.js → chunk-32BRIVSS-C8dNk4Hn.js} +1 -1
  39. package/dist/assets/{chunk-5VM5RSS4-CCzvXqtX.js → chunk-5VM5RSS4-Z2pZcBbh.js} +1 -1
  40. package/dist/assets/{chunk-EX3LRPZG-CWfoK8TS.js → chunk-EX3LRPZG-dA9bU_uS.js} +1 -1
  41. package/dist/assets/{chunk-JWPE2WC7-T2EVEO7f.js → chunk-JWPE2WC7-CMkfDWfd.js} +1 -1
  42. package/dist/assets/{chunk-MOJQB5TN-Bms_j_vp.js → chunk-MOJQB5TN-CRQhypCf.js} +1 -1
  43. package/dist/assets/{chunk-RYQCIY6F-BHaTGeSM.js → chunk-RYQCIY6F-CPvbNKNZ.js} +1 -1
  44. package/dist/assets/{chunk-V7JOEXUC-CTk13LTh.js → chunk-V7JOEXUC-6JsV0G3U.js} +1 -1
  45. package/dist/assets/{chunk-VR4S4FIN-DbAzJVcf.js → chunk-VR4S4FIN-n0aWG4-j.js} +1 -1
  46. package/dist/assets/{chunk-XXDRQBXY--nHyvZQ6.js → chunk-XXDRQBXY-BLQ81Hhu.js} +1 -1
  47. package/dist/assets/classDiagram-OUVF2IWQ-ChKBeWCX.js +1 -0
  48. package/dist/assets/classDiagram-v2-EOCWNBFH-ChKBeWCX.js +1 -0
  49. package/dist/assets/{cose-bilkent-JH36ORCC-D4STnGjf.js → cose-bilkent-JH36ORCC-BSHuRRPa.js} +1 -1
  50. package/dist/assets/{cynefin-VYW2F7L2-C3bGlbuH.js → cynefin-VYW2F7L2-vKDum-r-.js} +1 -1
  51. package/dist/assets/{cynefinDiagram-TSTJHNR4-NtQ7fqyK.js → cynefinDiagram-TSTJHNR4-B7hlff7z.js} +1 -1
  52. package/dist/assets/{dagre-VKFMJZFB-4_7veLhL.js → dagre-VKFMJZFB-K2lW3A2u.js} +1 -1
  53. package/dist/assets/{diagram-FQU43EPY-BXSSs1Tt.js → diagram-FQU43EPY-gtpv6DY0.js} +1 -1
  54. package/dist/assets/{diagram-G47NLZAW-0IkpFOVq.js → diagram-G47NLZAW-D9yHOqQq.js} +1 -1
  55. package/dist/assets/{diagram-NH7WQ7WH-DdjwsYrQ.js → diagram-NH7WQ7WH-BzeJ_2nM.js} +1 -1
  56. package/dist/assets/{diagram-OA4YK3LP-DVlmCA6A.js → diagram-OA4YK3LP-CM0HWugE.js} +1 -1
  57. package/dist/assets/{diagram-WEI45ONY-COn2Rq3e.js → diagram-WEI45ONY-BMyBFCkS.js} +1 -1
  58. package/dist/assets/{ebnfDiagram-CCIWWBDH-BBrme_H-.js → ebnfDiagram-CCIWWBDH-8Kj0FCEb.js} +1 -1
  59. package/dist/assets/{erDiagram-Q63AITRT-Dued2fRQ.js → erDiagram-Q63AITRT-BWDV58w3.js} +1 -1
  60. package/dist/assets/fcstd.worker-BSFnALBZ.js +24 -0
  61. package/dist/assets/{flowDiagram-23GEKE2U-CI3IU-MQ.js → flowDiagram-23GEKE2U-Bvu7iKuy.js} +1 -1
  62. package/dist/assets/{ganttDiagram-NO4QXBWP-DjLcWub4.js → ganttDiagram-NO4QXBWP-oOnRqEGi.js} +1 -1
  63. package/dist/assets/gcode.worker-DayjyJb4.js +1 -0
  64. package/dist/assets/{gitGraphDiagram-IHSO6WYX-CDGs8fL2.js → gitGraphDiagram-IHSO6WYX-BLNHz3A1.js} +1 -1
  65. package/dist/assets/{index-Ds6C-5SZ.js → index-BALtikL3.js} +1 -1
  66. package/dist/assets/{index-e1--CClk.js → index-BYRIJxh3.js} +3 -3
  67. package/dist/assets/{index-BeFfmS97.js → index-BZge8Vqz.js} +1 -1
  68. package/dist/assets/{index-BcJI4Wf2.js → index-Bzpy8ZrM.js} +1 -1
  69. package/dist/assets/index-CGjogkgR.js +2 -0
  70. package/dist/assets/{index-CPT2yDF7.js → index-CQrwfFmj.js} +3 -3
  71. package/dist/assets/{index-BO9rcCxW.js → index-DaieR5TQ.js} +1 -1
  72. package/dist/assets/{index-DY0EdedI.js → index-DcPCPN6v.js} +6 -6
  73. package/dist/assets/index-DhnKpoWm.js +2 -0
  74. package/dist/assets/{infoDiagram-FWYZ7A6U-BR8lw-07.js → infoDiagram-FWYZ7A6U-CBoekTgL.js} +1 -1
  75. package/dist/assets/{ishikawaDiagram-FXEZZL3T-BvoUdvxM.js → ishikawaDiagram-FXEZZL3T-i92jYFyn.js} +1 -1
  76. package/dist/assets/{journeyDiagram-5HDEW3XC-5ZTKSL91.js → journeyDiagram-5HDEW3XC-Dlb8tdvI.js} +1 -1
  77. package/dist/assets/{kanban-definition-HUTT4EX6-Crw59w7d.js → kanban-definition-HUTT4EX6-C357GaQI.js} +1 -1
  78. package/dist/assets/{linear-BClkkbnW.js → linear-CIJgBkf3.js} +1 -1
  79. package/dist/assets/{main-anrHq8ki.js → main-DN8Eh8GZ.js} +144 -144
  80. package/dist/assets/main-ZtOMcfnf.css +1 -0
  81. package/dist/assets/{mermaid.core-BDhiHGyU.js → mermaid.core-DpoI2o0n.js} +4 -4
  82. package/dist/assets/{mindmap-definition-LN4V7U3C-kGtzuV8p.js → mindmap-definition-LN4V7U3C-C5jHYqmi.js} +1 -1
  83. package/dist/assets/occt-import-js-BhHfLpto.wasm +0 -0
  84. package/dist/assets/{pegDiagram-2B236MQR-DacPFZVr.js → pegDiagram-2B236MQR-CxZiEIc6.js} +1 -1
  85. package/dist/assets/{pieDiagram-ENE6RG2P-a7t3bV4m.js → pieDiagram-ENE6RG2P-DP--XMmv.js} +1 -1
  86. package/dist/assets/{quadrantDiagram-ABIIQ3AL-D1LJoytH.js → quadrantDiagram-ABIIQ3AL-SVVI0nj0.js} +1 -1
  87. package/dist/assets/{railroadDiagram-RFXS5EU6-DtgETCCu.js → railroadDiagram-RFXS5EU6-B96CUfFG.js} +1 -1
  88. package/dist/assets/{requirementDiagram-TGXJPOKE-B8ofroLn.js → requirementDiagram-TGXJPOKE-CY0Y9Spd.js} +1 -1
  89. package/dist/assets/{sankeyDiagram-HTMAVEWB-BLJxfQiX.js → sankeyDiagram-HTMAVEWB-DUwF25eW.js} +1 -1
  90. package/dist/assets/{sequenceDiagram-DBY2YBRQ-DkXTwgge.js → sequenceDiagram-DBY2YBRQ-B1BXiSWm.js} +1 -1
  91. package/dist/assets/{sizeCapture-X5ZJPWSS-Tu0vJw5U.js → sizeCapture-X5ZJPWSS-DOInCz7x.js} +1 -1
  92. package/dist/assets/{stateDiagram-2N3HPSRC-Y8r1KoB6.js → stateDiagram-2N3HPSRC-DbJfBNBw.js} +1 -1
  93. package/dist/assets/stateDiagram-v2-6OUMAXLB-Cw6k7KjM.js +1 -0
  94. package/dist/assets/{swimlanes-5IMT3BWC-BFl--h7F.js → swimlanes-5IMT3BWC-BiSKR-2-.js} +2 -2
  95. package/dist/assets/swimlanesDiagram-G3AALYLV-De7ovgag.js +8 -0
  96. package/dist/assets/{timeline-definition-FHXFAJF6-CVxVk8L_.js → timeline-definition-FHXFAJF6-CjofGPLC.js} +1 -1
  97. package/dist/assets/{vendor-three-3OKhI9bz.js → vendor-three-CpheMTQa.js} +169 -169
  98. package/dist/assets/{vennDiagram-L72KCM5P-BfIiqSop.js → vennDiagram-L72KCM5P-B_6UlK4t.js} +1 -1
  99. package/dist/assets/{wardleyDiagram-EHGQE667-K-vB1d_8.js → wardleyDiagram-EHGQE667-CdJsoBXi.js} +1 -1
  100. package/dist/assets/{web-BWzU4tbP.js → web-DEGVeF3E.js} +1 -1
  101. package/dist/assets/{web-sV6-seS-.js → web-DINOAJn_.js} +1 -1
  102. package/dist/assets/{web-e-nG7wcx.js → web-Dt2qR7v-.js} +1 -1
  103. package/dist/assets/{xychartDiagram-FW5EYKEG-D6q7J6Kr.js → xychartDiagram-FW5EYKEG-Cp2dbS-J.js} +1 -1
  104. package/dist/build-info.json +1 -1
  105. package/dist/index.html +3 -3
  106. package/dist/locales/en/terminal.json +90 -1
  107. package/dist/locales/es/terminal.json +92 -2
  108. package/dist/src/packages/server/codex/app-server/app-server-process.js +153 -12
  109. package/dist/src/packages/server/routes/files.js +80 -6
  110. package/dist/src/packages/server/routes/system.js +9 -2
  111. package/package.json +2 -1
  112. package/dist/assets/SceneManager-CtgRFnMf.js +0 -104
  113. package/dist/assets/channel-CohCoDiY.js +0 -1
  114. package/dist/assets/classDiagram-OUVF2IWQ-BxHRM6o6.js +0 -1
  115. package/dist/assets/classDiagram-v2-EOCWNBFH-BxHRM6o6.js +0 -1
  116. package/dist/assets/index-CD2Gv3oe.js +0 -2
  117. package/dist/assets/index-evqtZdbD.js +0 -2
  118. package/dist/assets/main-BNsRZCIt.css +0 -1
  119. package/dist/assets/stateDiagram-v2-6OUMAXLB-2qL1wJnY.js +0 -1
  120. package/dist/assets/swimlanesDiagram-G3AALYLV-CrYKOH_2.js +0 -8
@@ -0,0 +1,24 @@
1
+ (function(){"use strict";function pa(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}function ai(x){if(Object.prototype.hasOwnProperty.call(x,"__esModule"))return x;var D=x.default;if(typeof D=="function"){var C=function k(){return this instanceof k?Reflect.construct(D,arguments,this.constructor):D.apply(this,arguments)};C.prototype=D.prototype}else C={};return Object.defineProperty(C,"__esModule",{value:!0}),Object.keys(x).forEach(function(k){var S=Object.getOwnPropertyDescriptor(x,k);Object.defineProperty(C,k,S.get?S:{enumerable:!0,get:function(){return x[k]}})}),C}var Fn={exports:{}},Gt={},_a;function Sn(){if(_a)return Gt;_a=1;var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return Gt.encode=function(D){for(var C="",k,S,$,J,E,j,w,_=0;_<D.length;)k=D.charCodeAt(_++),S=D.charCodeAt(_++),$=D.charCodeAt(_++),J=k>>2,E=(k&3)<<4|S>>4,j=(S&15)<<2|$>>6,w=$&63,isNaN(S)?j=w=64:isNaN($)&&(w=64),C=C+x.charAt(J)+x.charAt(E)+x.charAt(j)+x.charAt(w);return C},Gt.decode=function(D){var C="",k,S,$,J,E,j,w,_=0;for(D=D.replace(/[^A-Za-z0-9\+\/\=]/g,"");_<D.length;)J=x.indexOf(D.charAt(_++)),E=x.indexOf(D.charAt(_++)),j=x.indexOf(D.charAt(_++)),w=x.indexOf(D.charAt(_++)),k=J<<2|E>>4,S=(E&15)<<4|j>>2,$=(j&3)<<6|w,C+=String.fromCharCode(k),j!==64&&(C+=String.fromCharCode(S)),w!==64&&(C+=String.fromCharCode($));return C},Gt}var or={},ma;function ot(){if(ma)return or;if(ma=1,or.base64=!0,or.array=!0,or.string=!0,or.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",or.nodebuffer=typeof Buffer<"u",or.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")or.blob=!1;else{var x=new ArrayBuffer(0);try{or.blob=new Blob([x],{type:"application/zip"}).size===0}catch{try{var D=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,C=new D;C.append(x),or.blob=C.getBlob("application/zip").size===0}catch{or.blob=!1}}}return or}var Bn={},Jt={},Xr={},Ct={exports:{}};/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */var ii=Ct.exports,ga;function oi(){return ga||(ga=1,(function(x,D){(function(C,k){k(D)})(ii,(function(C){function k(r){for(var o=r.length;--o>=0;)r[o]=0}var S=256,$=286,J=30,E=15,j=new Uint8Array([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]),w=new Uint8Array([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]),_=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),g=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),T=new Array(576);k(T);var P=new Array(60);k(P);var Y=new Array(512);k(Y);var ue=new Array(256);k(ue);var Ie=new Array(29);k(Ie);var ye,rr,Ve,ce=new Array(J);function vr(r,o,n,u,d){this.static_tree=r,this.extra_bits=o,this.extra_base=n,this.elems=u,this.max_length=d,this.has_stree=r&&r.length}function Sr(r,o){this.dyn_tree=r,this.max_code=0,this.stat_desc=o}k(ce);var Ur=function(r){return r<256?Y[r]:Y[256+(r>>>7)]},Pe=function(r,o){r.pending_buf[r.pending++]=255&o,r.pending_buf[r.pending++]=o>>>8&255},Be=function(r,o,n){r.bi_valid>16-n?(r.bi_buf|=o<<r.bi_valid&65535,Pe(r,r.bi_buf),r.bi_buf=o>>16-r.bi_valid,r.bi_valid+=n-16):(r.bi_buf|=o<<r.bi_valid&65535,r.bi_valid+=n)},Me=function(r,o,n){Be(r,n[2*o],n[2*o+1])},Kr=function(r,o){var n=0;do n|=1&r,r>>>=1,n<<=1;while(--o>0);return n>>>1},ft=function(r,o,n){var u,d,h=new Array(16),B=0;for(u=1;u<=E;u++)B=B+n[u-1]<<1,h[u]=B;for(d=0;d<=o;d++){var p=r[2*d+1];p!==0&&(r[2*d]=Kr(h[p]++,p))}},Ue=function(r){var o;for(o=0;o<$;o++)r.dyn_ltree[2*o]=0;for(o=0;o<J;o++)r.dyn_dtree[2*o]=0;for(o=0;o<19;o++)r.bl_tree[2*o]=0;r.dyn_ltree[512]=1,r.opt_len=r.static_len=0,r.sym_next=r.matches=0},F=function(r){r.bi_valid>8?Pe(r,r.bi_buf):r.bi_valid>0&&(r.pending_buf[r.pending++]=r.bi_buf),r.bi_buf=0,r.bi_valid=0},b=function(r,o,n,u){var d=2*o,h=2*n;return r[d]<r[h]||r[d]===r[h]&&u[o]<=u[n]},z=function(r,o,n){for(var u=r.heap[n],d=n<<1;d<=r.heap_len&&(d<r.heap_len&&b(o,r.heap[d+1],r.heap[d],r.depth)&&d++,!b(o,u,r.heap[d],r.depth));)r.heap[n]=r.heap[d],n=d,d<<=1;r.heap[n]=u},I=function(r,o,n){var u,d,h,B,p=0;if(r.sym_next!==0)do u=255&r.pending_buf[r.sym_buf+p++],u+=(255&r.pending_buf[r.sym_buf+p++])<<8,d=r.pending_buf[r.sym_buf+p++],u===0?Me(r,d,o):(h=ue[d],Me(r,h+S+1,o),(B=j[h])!==0&&(d-=Ie[h],Be(r,d,B)),u--,h=Ur(u),Me(r,h,n),(B=w[h])!==0&&(u-=ce[h],Be(r,u,B)));while(p<r.sym_next);Me(r,256,o)},W=function(r,o){var n,u,d,h=o.dyn_tree,B=o.stat_desc.static_tree,p=o.stat_desc.has_stree,U=o.stat_desc.elems,m=-1;for(r.heap_len=0,r.heap_max=573,n=0;n<U;n++)h[2*n]!==0?(r.heap[++r.heap_len]=m=n,r.depth[n]=0):h[2*n+1]=0;for(;r.heap_len<2;)h[2*(d=r.heap[++r.heap_len]=m<2?++m:0)]=1,r.depth[d]=0,r.opt_len--,p&&(r.static_len-=B[2*d+1]);for(o.max_code=m,n=r.heap_len>>1;n>=1;n--)z(r,h,n);d=U;do n=r.heap[1],r.heap[1]=r.heap[r.heap_len--],z(r,h,1),u=r.heap[1],r.heap[--r.heap_max]=n,r.heap[--r.heap_max]=u,h[2*d]=h[2*n]+h[2*u],r.depth[d]=(r.depth[n]>=r.depth[u]?r.depth[n]:r.depth[u])+1,h[2*n+1]=h[2*u+1]=d,r.heap[1]=d++,z(r,h,1);while(r.heap_len>=2);r.heap[--r.heap_max]=r.heap[1],(function(y,oe){var H,R,N,ie,ne,se,M=oe.dyn_tree,L=oe.max_code,G=oe.stat_desc.static_tree,be=oe.stat_desc.has_stree,X=oe.stat_desc.extra_bits,de=oe.stat_desc.extra_base,fe=oe.stat_desc.max_length,Q=0;for(ie=0;ie<=E;ie++)y.bl_count[ie]=0;for(M[2*y.heap[y.heap_max]+1]=0,H=y.heap_max+1;H<573;H++)(ie=M[2*M[2*(R=y.heap[H])+1]+1]+1)>fe&&(ie=fe,Q++),M[2*R+1]=ie,R>L||(y.bl_count[ie]++,ne=0,R>=de&&(ne=X[R-de]),se=M[2*R],y.opt_len+=se*(ie+ne),be&&(y.static_len+=se*(G[2*R+1]+ne)));if(Q!==0){do{for(ie=fe-1;y.bl_count[ie]===0;)ie--;y.bl_count[ie]--,y.bl_count[ie+1]+=2,y.bl_count[fe]--,Q-=2}while(Q>0);for(ie=fe;ie!==0;ie--)for(R=y.bl_count[ie];R!==0;)(N=y.heap[--H])>L||(M[2*N+1]!==ie&&(y.opt_len+=(ie-M[2*N+1])*M[2*N],M[2*N+1]=ie),R--)}})(r,o),ft(h,m,r.bl_count)},me=function(r,o,n){var u,d,h=-1,B=o[1],p=0,U=7,m=4;for(B===0&&(U=138,m=3),o[2*(n+1)+1]=65535,u=0;u<=n;u++)d=B,B=o[2*(u+1)+1],++p<U&&d===B||(p<m?r.bl_tree[2*d]+=p:d!==0?(d!==h&&r.bl_tree[2*d]++,r.bl_tree[32]++):p<=10?r.bl_tree[34]++:r.bl_tree[36]++,p=0,h=d,B===0?(U=138,m=3):d===B?(U=6,m=3):(U=7,m=4))},ge=function(r,o,n){var u,d,h=-1,B=o[1],p=0,U=7,m=4;for(B===0&&(U=138,m=3),u=0;u<=n;u++)if(d=B,B=o[2*(u+1)+1],!(++p<U&&d===B)){if(p<m)do Me(r,d,r.bl_tree);while(--p!=0);else d!==0?(d!==h&&(Me(r,d,r.bl_tree),p--),Me(r,16,r.bl_tree),Be(r,p-3,2)):p<=10?(Me(r,17,r.bl_tree),Be(r,p-3,3)):(Me(r,18,r.bl_tree),Be(r,p-11,7));p=0,h=d,B===0?(U=138,m=3):d===B?(U=6,m=3):(U=7,m=4)}},Ce=!1,Re=function(r,o,n,u){Be(r,0+(u?1:0),3),F(r),Pe(r,n),Pe(r,~n),n&&r.pending_buf.set(r.window.subarray(o,o+n),r.pending),r.pending+=n},Le=function(r,o,n,u){var d,h,B=0;r.level>0?(r.strm.data_type===2&&(r.strm.data_type=(function(p){var U,m=4093624447;for(U=0;U<=31;U++,m>>>=1)if(1&m&&p.dyn_ltree[2*U]!==0)return 0;if(p.dyn_ltree[18]!==0||p.dyn_ltree[20]!==0||p.dyn_ltree[26]!==0)return 1;for(U=32;U<S;U++)if(p.dyn_ltree[2*U]!==0)return 1;return 0})(r)),W(r,r.l_desc),W(r,r.d_desc),B=(function(p){var U;for(me(p,p.dyn_ltree,p.l_desc.max_code),me(p,p.dyn_dtree,p.d_desc.max_code),W(p,p.bl_desc),U=18;U>=3&&p.bl_tree[2*g[U]+1]===0;U--);return p.opt_len+=3*(U+1)+5+5+4,U})(r),d=r.opt_len+3+7>>>3,(h=r.static_len+3+7>>>3)<=d&&(d=h)):d=h=n+5,n+4<=d&&o!==-1?Re(r,o,n,u):r.strategy===4||h===d?(Be(r,2+(u?1:0),3),I(r,T,P)):(Be(r,4+(u?1:0),3),(function(p,U,m,y){var oe;for(Be(p,U-257,5),Be(p,m-1,5),Be(p,y-4,4),oe=0;oe<y;oe++)Be(p,p.bl_tree[2*g[oe]+1],3);ge(p,p.dyn_ltree,U-1),ge(p,p.dyn_dtree,m-1)})(r,r.l_desc.max_code+1,r.d_desc.max_code+1,B+1),I(r,r.dyn_ltree,r.dyn_dtree)),Ue(r),u&&F(r)},Ne={_tr_init:function(r){Ce||((function(){var o,n,u,d,h,B=new Array(16);for(u=0,d=0;d<28;d++)for(Ie[d]=u,o=0;o<1<<j[d];o++)ue[u++]=d;for(ue[u-1]=d,h=0,d=0;d<16;d++)for(ce[d]=h,o=0;o<1<<w[d];o++)Y[h++]=d;for(h>>=7;d<J;d++)for(ce[d]=h<<7,o=0;o<1<<w[d]-7;o++)Y[256+h++]=d;for(n=0;n<=E;n++)B[n]=0;for(o=0;o<=143;)T[2*o+1]=8,o++,B[8]++;for(;o<=255;)T[2*o+1]=9,o++,B[9]++;for(;o<=279;)T[2*o+1]=7,o++,B[7]++;for(;o<=287;)T[2*o+1]=8,o++,B[8]++;for(ft(T,287,B),o=0;o<J;o++)P[2*o+1]=5,P[2*o]=Kr(o,5);ye=new vr(T,j,257,$,E),rr=new vr(P,w,0,J,E),Ve=new vr(new Array(0),_,0,19,7)})(),Ce=!0),r.l_desc=new Sr(r.dyn_ltree,ye),r.d_desc=new Sr(r.dyn_dtree,rr),r.bl_desc=new Sr(r.bl_tree,Ve),r.bi_buf=0,r.bi_valid=0,Ue(r)},_tr_stored_block:Re,_tr_flush_block:Le,_tr_tally:function(r,o,n){return r.pending_buf[r.sym_buf+r.sym_next++]=o,r.pending_buf[r.sym_buf+r.sym_next++]=o>>8,r.pending_buf[r.sym_buf+r.sym_next++]=n,o===0?r.dyn_ltree[2*n]++:(r.matches++,o--,r.dyn_ltree[2*(ue[n]+S+1)]++,r.dyn_dtree[2*Ur(o)]++),r.sym_next===r.sym_end},_tr_align:function(r){Be(r,2,3),Me(r,256,T),(function(o){o.bi_valid===16?(Pe(o,o.bi_buf),o.bi_buf=0,o.bi_valid=0):o.bi_valid>=8&&(o.pending_buf[o.pending++]=255&o.bi_buf,o.bi_buf>>=8,o.bi_valid-=8)})(r)}},Ge=function(r,o,n,u){for(var d=65535&r|0,h=r>>>16&65535|0,B=0;n!==0;){n-=B=n>2e3?2e3:n;do h=h+(d=d+o[u++]|0)|0;while(--B);d%=65521,h%=65521}return d|h<<16|0},Dr=new Uint32Array((function(){for(var r,o=[],n=0;n<256;n++){r=n;for(var u=0;u<8;u++)r=1&r?3988292384^r>>>1:r>>>1;o[n]=r}return o})()),Ee=function(r,o,n,u){var d=Dr,h=u+n;r^=-1;for(var B=u;B<h;B++)r=r>>>8^d[255&(r^o[B])];return-1^r},Ye={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"},K={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_MEM_ERROR:-4,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},lr=Ne._tr_init,Je=Ne._tr_stored_block,je=Ne._tr_flush_block,Fe=Ne._tr_tally,fr=Ne._tr_align,xe=K.Z_NO_FLUSH,tr=K.Z_PARTIAL_FLUSH,pr=K.Z_FULL_FLUSH,ke=K.Z_FINISH,Gr=K.Z_BLOCK,De=K.Z_OK,rn=K.Z_STREAM_END,Qe=K.Z_STREAM_ERROR,tn=K.Z_DATA_ERROR,Ft=K.Z_BUF_ERROR,nn=K.Z_DEFAULT_COMPRESSION,Gn=K.Z_FILTERED,ut=K.Z_HUFFMAN_ONLY,Jn=K.Z_RLE,le=K.Z_FIXED,ze=K.Z_DEFAULT_STRATEGY,Qn=K.Z_UNKNOWN,Lr=K.Z_DEFLATED,he=258,ur=262,Br=42,Ze=113,Mr=666,er=function(r,o){return r.msg=Ye[o],o},dt=function(r){return 2*r-(r>4?9:0)},nr=function(r){for(var o=r.length;--o>=0;)r[o]=0},St=function(r){var o,n,u,d=r.w_size;u=o=r.hash_size;do n=r.head[--u],r.head[u]=n>=d?n-d:0;while(--o);u=o=d;do n=r.prev[--u],r.prev[u]=n>=d?n-d:0;while(--o)},_r=function(r,o,n){return(o<<r.hash_shift^n)&r.hash_mask},Xe=function(r){var o=r.state,n=o.pending;n>r.avail_out&&(n=r.avail_out),n!==0&&(r.output.set(o.pending_buf.subarray(o.pending_out,o.pending_out+n),r.next_out),r.next_out+=n,o.pending_out+=n,r.total_out+=n,r.avail_out-=n,o.pending-=n,o.pending===0&&(o.pending_out=0))},Te=function(r,o){je(r,r.block_start>=0?r.block_start:-1,r.strstart-r.block_start,o),r.block_start=r.strstart,Xe(r.strm)},_e=function(r,o){r.pending_buf[r.pending++]=o},Nr=function(r,o){r.pending_buf[r.pending++]=o>>>8&255,r.pending_buf[r.pending++]=255&o},ct=function(r,o,n,u){var d=r.avail_in;return d>u&&(d=u),d===0?0:(r.avail_in-=d,o.set(r.input.subarray(r.next_in,r.next_in+d),n),r.state.wrap===1?r.adler=Ge(r.adler,o,d,n):r.state.wrap===2&&(r.adler=Ee(r.adler,o,d,n)),r.next_in+=d,r.total_in+=d,d)},te=function(r,o){var n,u,d=r.max_chain_length,h=r.strstart,B=r.prev_length,p=r.nice_match,U=r.strstart>r.w_size-ur?r.strstart-(r.w_size-ur):0,m=r.window,y=r.w_mask,oe=r.prev,H=r.strstart+he,R=m[h+B-1],N=m[h+B];r.prev_length>=r.good_match&&(d>>=2),p>r.lookahead&&(p=r.lookahead);do if(m[(n=o)+B]===N&&m[n+B-1]===R&&m[n]===m[h]&&m[++n]===m[h+1]){h+=2,n++;do;while(m[++h]===m[++n]&&m[++h]===m[++n]&&m[++h]===m[++n]&&m[++h]===m[++n]&&m[++h]===m[++n]&&m[++h]===m[++n]&&m[++h]===m[++n]&&m[++h]===m[++n]&&h<H);if(u=he-(H-h),h=H-he,u>B){if(r.match_start=o,B=u,u>=p)break;R=m[h+B-1],N=m[h+B]}}while((o=oe[o&y])>U&&--d!=0);return B<=r.lookahead?B:r.lookahead},jr=function(r){var o,n,u,d=r.w_size;do{if(n=r.window_size-r.lookahead-r.strstart,r.strstart>=d+(d-ur)&&(r.window.set(r.window.subarray(d,d+d-n),0),r.match_start-=d,r.strstart-=d,r.block_start-=d,r.insert>r.strstart&&(r.insert=r.strstart),St(r),n+=d),r.strm.avail_in===0)break;if(o=ct(r.strm,r.window,r.strstart+r.lookahead,n),r.lookahead+=o,r.lookahead+r.insert>=3)for(u=r.strstart-r.insert,r.ins_h=r.window[u],r.ins_h=_r(r,r.ins_h,r.window[u+1]);r.insert&&(r.ins_h=_r(r,r.ins_h,r.window[u+3-1]),r.prev[u&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=u,u++,r.insert--,!(r.lookahead+r.insert<3)););}while(r.lookahead<ur&&r.strm.avail_in!==0)},an=function(r,o){var n,u,d,h=r.pending_buf_size-5>r.w_size?r.w_size:r.pending_buf_size-5,B=0,p=r.strm.avail_in;do{if(n=65535,d=r.bi_valid+42>>3,r.strm.avail_out<d||(d=r.strm.avail_out-d,n>(u=r.strstart-r.block_start)+r.strm.avail_in&&(n=u+r.strm.avail_in),n>d&&(n=d),n<h&&(n===0&&o!==ke||o===xe||n!==u+r.strm.avail_in)))break;B=o===ke&&n===u+r.strm.avail_in?1:0,Je(r,0,0,B),r.pending_buf[r.pending-4]=n,r.pending_buf[r.pending-3]=n>>8,r.pending_buf[r.pending-2]=~n,r.pending_buf[r.pending-1]=~n>>8,Xe(r.strm),u&&(u>n&&(u=n),r.strm.output.set(r.window.subarray(r.block_start,r.block_start+u),r.strm.next_out),r.strm.next_out+=u,r.strm.avail_out-=u,r.strm.total_out+=u,r.block_start+=u,n-=u),n&&(ct(r.strm,r.strm.output,r.strm.next_out,n),r.strm.next_out+=n,r.strm.avail_out-=n,r.strm.total_out+=n)}while(B===0);return(p-=r.strm.avail_in)&&(p>=r.w_size?(r.matches=2,r.window.set(r.strm.input.subarray(r.strm.next_in-r.w_size,r.strm.next_in),0),r.strstart=r.w_size,r.insert=r.strstart):(r.window_size-r.strstart<=p&&(r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,r.insert>r.strstart&&(r.insert=r.strstart)),r.window.set(r.strm.input.subarray(r.strm.next_in-p,r.strm.next_in),r.strstart),r.strstart+=p,r.insert+=p>r.w_size-r.insert?r.w_size-r.insert:p),r.block_start=r.strstart),r.high_water<r.strstart&&(r.high_water=r.strstart),B?4:o!==xe&&o!==ke&&r.strm.avail_in===0&&r.strstart===r.block_start?2:(d=r.window_size-r.strstart,r.strm.avail_in>d&&r.block_start>=r.w_size&&(r.block_start-=r.w_size,r.strstart-=r.w_size,r.window.set(r.window.subarray(r.w_size,r.w_size+r.strstart),0),r.matches<2&&r.matches++,d+=r.w_size,r.insert>r.strstart&&(r.insert=r.strstart)),d>r.strm.avail_in&&(d=r.strm.avail_in),d&&(ct(r.strm,r.window,r.strstart,d),r.strstart+=d,r.insert+=d>r.w_size-r.insert?r.w_size-r.insert:d),r.high_water<r.strstart&&(r.high_water=r.strstart),d=r.bi_valid+42>>3,h=(d=r.pending_buf_size-d>65535?65535:r.pending_buf_size-d)>r.w_size?r.w_size:d,((u=r.strstart-r.block_start)>=h||(u||o===ke)&&o!==xe&&r.strm.avail_in===0&&u<=d)&&(n=u>d?d:u,B=o===ke&&r.strm.avail_in===0&&n===u?1:0,Je(r,r.block_start,n,B),r.block_start+=n,Xe(r.strm)),B?3:1)},Bt=function(r,o){for(var n,u;;){if(r.lookahead<ur){if(jr(r),r.lookahead<ur&&o===xe)return 1;if(r.lookahead===0)break}if(n=0,r.lookahead>=3&&(r.ins_h=_r(r,r.ins_h,r.window[r.strstart+3-1]),n=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),n!==0&&r.strstart-n<=r.w_size-ur&&(r.match_length=te(r,n)),r.match_length>=3)if(u=Fe(r,r.strstart-r.match_start,r.match_length-3),r.lookahead-=r.match_length,r.match_length<=r.max_lazy_match&&r.lookahead>=3){r.match_length--;do r.strstart++,r.ins_h=_r(r,r.ins_h,r.window[r.strstart+3-1]),n=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart;while(--r.match_length!=0);r.strstart++}else r.strstart+=r.match_length,r.match_length=0,r.ins_h=r.window[r.strstart],r.ins_h=_r(r,r.ins_h,r.window[r.strstart+1]);else u=Fe(r,0,r.window[r.strstart]),r.lookahead--,r.strstart++;if(u&&(Te(r,!1),r.strm.avail_out===0))return 1}return r.insert=r.strstart<2?r.strstart:2,o===ke?(Te(r,!0),r.strm.avail_out===0?3:4):r.sym_next&&(Te(r,!1),r.strm.avail_out===0)?1:2},Zr=function(r,o){for(var n,u,d;;){if(r.lookahead<ur){if(jr(r),r.lookahead<ur&&o===xe)return 1;if(r.lookahead===0)break}if(n=0,r.lookahead>=3&&(r.ins_h=_r(r,r.ins_h,r.window[r.strstart+3-1]),n=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart),r.prev_length=r.match_length,r.prev_match=r.match_start,r.match_length=2,n!==0&&r.prev_length<r.max_lazy_match&&r.strstart-n<=r.w_size-ur&&(r.match_length=te(r,n),r.match_length<=5&&(r.strategy===Gn||r.match_length===3&&r.strstart-r.match_start>4096)&&(r.match_length=2)),r.prev_length>=3&&r.match_length<=r.prev_length){d=r.strstart+r.lookahead-3,u=Fe(r,r.strstart-1-r.prev_match,r.prev_length-3),r.lookahead-=r.prev_length-1,r.prev_length-=2;do++r.strstart<=d&&(r.ins_h=_r(r,r.ins_h,r.window[r.strstart+3-1]),n=r.prev[r.strstart&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=r.strstart);while(--r.prev_length!=0);if(r.match_available=0,r.match_length=2,r.strstart++,u&&(Te(r,!1),r.strm.avail_out===0))return 1}else if(r.match_available){if((u=Fe(r,0,r.window[r.strstart-1]))&&Te(r,!1),r.strstart++,r.lookahead--,r.strm.avail_out===0)return 1}else r.match_available=1,r.strstart++,r.lookahead--}return r.match_available&&(u=Fe(r,0,r.window[r.strstart-1]),r.match_available=0),r.insert=r.strstart<2?r.strstart:2,o===ke?(Te(r,!0),r.strm.avail_out===0?3:4):r.sym_next&&(Te(r,!1),r.strm.avail_out===0)?1:2};function dr(r,o,n,u,d){this.good_length=r,this.max_lazy=o,this.nice_length=n,this.max_chain=u,this.func=d}var Jr=[new dr(0,0,0,0,an),new dr(4,4,8,4,Bt),new dr(4,5,16,8,Bt),new dr(4,6,32,32,Bt),new dr(4,4,16,16,Zr),new dr(8,16,32,32,Zr),new dr(8,16,128,128,Zr),new dr(8,32,128,256,Zr),new dr(32,128,258,1024,Zr),new dr(32,258,258,4096,Zr)];function Rt(){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=Lr,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 Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),nr(this.dyn_ltree),nr(this.dyn_dtree),nr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),nr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),nr(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var s=function(r){if(!r)return 1;var o=r.state;return!o||o.strm!==r||o.status!==Br&&o.status!==57&&o.status!==69&&o.status!==73&&o.status!==91&&o.status!==103&&o.status!==Ze&&o.status!==Mr?1:0},ht=function(r){if(s(r))return er(r,Qe);r.total_in=r.total_out=0,r.data_type=Qn;var o=r.state;return o.pending=0,o.pending_out=0,o.wrap<0&&(o.wrap=-o.wrap),o.status=o.wrap===2?57:o.wrap?Br:Ze,r.adler=o.wrap===2?0:1,o.last_flush=-2,lr(o),De},ve=function(r){var o,n=ht(r);return n===De&&((o=r.state).window_size=2*o.w_size,nr(o.head),o.max_lazy_match=Jr[o.level].max_lazy,o.good_match=Jr[o.level].good_length,o.nice_match=Jr[o.level].nice_length,o.max_chain_length=Jr[o.level].max_chain,o.strstart=0,o.block_start=0,o.lookahead=0,o.insert=0,o.match_length=o.prev_length=2,o.match_available=0,o.ins_h=0),n},on=function(r,o,n,u,d,h){if(!r)return Qe;var B=1;if(o===nn&&(o=6),u<0?(B=0,u=-u):u>15&&(B=2,u-=16),d<1||d>9||n!==Lr||u<8||u>15||o<0||o>9||h<0||h>le||u===8&&B!==1)return er(r,Qe);u===8&&(u=9);var p=new Rt;return r.state=p,p.strm=r,p.status=Br,p.wrap=B,p.gzhead=null,p.w_bits=u,p.w_size=1<<p.w_bits,p.w_mask=p.w_size-1,p.hash_bits=d+7,p.hash_size=1<<p.hash_bits,p.hash_mask=p.hash_size-1,p.hash_shift=~~((p.hash_bits+3-1)/3),p.window=new Uint8Array(2*p.w_size),p.head=new Uint16Array(p.hash_size),p.prev=new Uint16Array(p.w_size),p.lit_bufsize=1<<d+6,p.pending_buf_size=4*p.lit_bufsize,p.pending_buf=new Uint8Array(p.pending_buf_size),p.sym_buf=p.lit_bufsize,p.sym_end=3*(p.lit_bufsize-1),p.level=o,p.strategy=h,p.method=n,ve(r)},Qr={deflateInit:function(r,o){return on(r,o,Lr,15,8,ze)},deflateInit2:on,deflateReset:ve,deflateResetKeep:ht,deflateSetHeader:function(r,o){return s(r)||r.state.wrap!==2?Qe:(r.state.gzhead=o,De)},deflate:function(r,o){if(s(r)||o>Gr||o<0)return r?er(r,Qe):Qe;var n=r.state;if(!r.output||r.avail_in!==0&&!r.input||n.status===Mr&&o!==ke)return er(r,r.avail_out===0?Ft:Qe);var u=n.last_flush;if(n.last_flush=o,n.pending!==0){if(Xe(r),r.avail_out===0)return n.last_flush=-1,De}else if(r.avail_in===0&&dt(o)<=dt(u)&&o!==ke)return er(r,Ft);if(n.status===Mr&&r.avail_in!==0)return er(r,Ft);if(n.status===Br&&n.wrap===0&&(n.status=Ze),n.status===Br){var d=Lr+(n.w_bits-8<<4)<<8;if(d|=(n.strategy>=ut||n.level<2?0:n.level<6?1:n.level===6?2:3)<<6,n.strstart!==0&&(d|=32),Nr(n,d+=31-d%31),n.strstart!==0&&(Nr(n,r.adler>>>16),Nr(n,65535&r.adler)),r.adler=1,n.status=Ze,Xe(r),n.pending!==0)return n.last_flush=-1,De}if(n.status===57){if(r.adler=0,_e(n,31),_e(n,139),_e(n,8),n.gzhead)_e(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),_e(n,255&n.gzhead.time),_e(n,n.gzhead.time>>8&255),_e(n,n.gzhead.time>>16&255),_e(n,n.gzhead.time>>24&255),_e(n,n.level===9?2:n.strategy>=ut||n.level<2?4:0),_e(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(_e(n,255&n.gzhead.extra.length),_e(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(r.adler=Ee(r.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(_e(n,0),_e(n,0),_e(n,0),_e(n,0),_e(n,0),_e(n,n.level===9?2:n.strategy>=ut||n.level<2?4:0),_e(n,3),n.status=Ze,Xe(r),n.pending!==0)return n.last_flush=-1,De}if(n.status===69){if(n.gzhead.extra){for(var h=n.pending,B=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+B>n.pending_buf_size;){var p=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+p),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>h&&(r.adler=Ee(r.adler,n.pending_buf,n.pending-h,h)),n.gzindex+=p,Xe(r),n.pending!==0)return n.last_flush=-1,De;h=0,B-=p}var U=new Uint8Array(n.gzhead.extra);n.pending_buf.set(U.subarray(n.gzindex,n.gzindex+B),n.pending),n.pending+=B,n.gzhead.hcrc&&n.pending>h&&(r.adler=Ee(r.adler,n.pending_buf,n.pending-h,h)),n.gzindex=0}n.status=73}if(n.status===73){if(n.gzhead.name){var m,y=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>y&&(r.adler=Ee(r.adler,n.pending_buf,n.pending-y,y)),Xe(r),n.pending!==0)return n.last_flush=-1,De;y=0}m=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,_e(n,m)}while(m!==0);n.gzhead.hcrc&&n.pending>y&&(r.adler=Ee(r.adler,n.pending_buf,n.pending-y,y)),n.gzindex=0}n.status=91}if(n.status===91){if(n.gzhead.comment){var oe,H=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>H&&(r.adler=Ee(r.adler,n.pending_buf,n.pending-H,H)),Xe(r),n.pending!==0)return n.last_flush=-1,De;H=0}oe=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,_e(n,oe)}while(oe!==0);n.gzhead.hcrc&&n.pending>H&&(r.adler=Ee(r.adler,n.pending_buf,n.pending-H,H))}n.status=103}if(n.status===103){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Xe(r),n.pending!==0))return n.last_flush=-1,De;_e(n,255&r.adler),_e(n,r.adler>>8&255),r.adler=0}if(n.status=Ze,Xe(r),n.pending!==0)return n.last_flush=-1,De}if(r.avail_in!==0||n.lookahead!==0||o!==xe&&n.status!==Mr){var R=n.level===0?an(n,o):n.strategy===ut?(function(N,ie){for(var ne;;){if(N.lookahead===0&&(jr(N),N.lookahead===0)){if(ie===xe)return 1;break}if(N.match_length=0,ne=Fe(N,0,N.window[N.strstart]),N.lookahead--,N.strstart++,ne&&(Te(N,!1),N.strm.avail_out===0))return 1}return N.insert=0,ie===ke?(Te(N,!0),N.strm.avail_out===0?3:4):N.sym_next&&(Te(N,!1),N.strm.avail_out===0)?1:2})(n,o):n.strategy===Jn?(function(N,ie){for(var ne,se,M,L,G=N.window;;){if(N.lookahead<=he){if(jr(N),N.lookahead<=he&&ie===xe)return 1;if(N.lookahead===0)break}if(N.match_length=0,N.lookahead>=3&&N.strstart>0&&(se=G[M=N.strstart-1])===G[++M]&&se===G[++M]&&se===G[++M]){L=N.strstart+he;do;while(se===G[++M]&&se===G[++M]&&se===G[++M]&&se===G[++M]&&se===G[++M]&&se===G[++M]&&se===G[++M]&&se===G[++M]&&M<L);N.match_length=he-(L-M),N.match_length>N.lookahead&&(N.match_length=N.lookahead)}if(N.match_length>=3?(ne=Fe(N,1,N.match_length-3),N.lookahead-=N.match_length,N.strstart+=N.match_length,N.match_length=0):(ne=Fe(N,0,N.window[N.strstart]),N.lookahead--,N.strstart++),ne&&(Te(N,!1),N.strm.avail_out===0))return 1}return N.insert=0,ie===ke?(Te(N,!0),N.strm.avail_out===0?3:4):N.sym_next&&(Te(N,!1),N.strm.avail_out===0)?1:2})(n,o):Jr[n.level].func(n,o);if(R!==3&&R!==4||(n.status=Mr),R===1||R===3)return r.avail_out===0&&(n.last_flush=-1),De;if(R===2&&(o===tr?fr(n):o!==Gr&&(Je(n,0,0,!1),o===pr&&(nr(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Xe(r),r.avail_out===0))return n.last_flush=-1,De}return o!==ke?De:n.wrap<=0?rn:(n.wrap===2?(_e(n,255&r.adler),_e(n,r.adler>>8&255),_e(n,r.adler>>16&255),_e(n,r.adler>>24&255),_e(n,255&r.total_in),_e(n,r.total_in>>8&255),_e(n,r.total_in>>16&255),_e(n,r.total_in>>24&255)):(Nr(n,r.adler>>>16),Nr(n,65535&r.adler)),Xe(r),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?De:rn)},deflateEnd:function(r){if(s(r))return Qe;var o=r.state.status;return r.state=null,o===Ze?er(r,tn):De},deflateSetDictionary:function(r,o){var n=o.length;if(s(r))return Qe;var u=r.state,d=u.wrap;if(d===2||d===1&&u.status!==Br||u.lookahead)return Qe;if(d===1&&(r.adler=Ge(r.adler,o,n,0)),u.wrap=0,n>=u.w_size){d===0&&(nr(u.head),u.strstart=0,u.block_start=0,u.insert=0);var h=new Uint8Array(u.w_size);h.set(o.subarray(n-u.w_size,n),0),o=h,n=u.w_size}var B=r.avail_in,p=r.next_in,U=r.input;for(r.avail_in=n,r.next_in=0,r.input=o,jr(u);u.lookahead>=3;){var m=u.strstart,y=u.lookahead-2;do u.ins_h=_r(u,u.ins_h,u.window[m+3-1]),u.prev[m&u.w_mask]=u.head[u.ins_h],u.head[u.ins_h]=m,m++;while(--y);u.strstart=m,u.lookahead=2,jr(u)}return u.strstart+=u.lookahead,u.block_start=u.strstart,u.insert=u.lookahead,u.lookahead=0,u.match_length=u.prev_length=2,u.match_available=0,r.next_in=p,r.input=U,r.avail_in=B,u.wrap=d,De},deflateInfo:"pako deflate (from Nodeca project)"};function Hr(r){return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Hr(r)}var $r=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},sn=function(r){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var n=o.shift();if(n){if(Hr(n)!=="object")throw new TypeError(n+"must be non-object");for(var u in n)$r(n,u)&&(r[u]=n[u])}}return r},ln=function(r){for(var o=0,n=0,u=r.length;n<u;n++)o+=r[n].length;for(var d=new Uint8Array(o),h=0,B=0,p=r.length;h<p;h++){var U=r[h];d.set(U,B),B+=U.length}return d},fn=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{fn=!1}for(var et=new Uint8Array(256),Cr=0;Cr<256;Cr++)et[Cr]=Cr>=252?6:Cr>=248?5:Cr>=240?4:Cr>=224?3:Cr>=192?2:1;et[254]=et[254]=1;var Tt=function(r){if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(r);var o,n,u,d,h,B=r.length,p=0;for(d=0;d<B;d++)(64512&(n=r.charCodeAt(d)))==55296&&d+1<B&&(64512&(u=r.charCodeAt(d+1)))==56320&&(n=65536+(n-55296<<10)+(u-56320),d++),p+=n<128?1:n<2048?2:n<65536?3:4;for(o=new Uint8Array(p),h=0,d=0;h<p;d++)(64512&(n=r.charCodeAt(d)))==55296&&d+1<B&&(64512&(u=r.charCodeAt(d+1)))==56320&&(n=65536+(n-55296<<10)+(u-56320),d++),n<128?o[h++]=n:n<2048?(o[h++]=192|n>>>6,o[h++]=128|63&n):n<65536?(o[h++]=224|n>>>12,o[h++]=128|n>>>6&63,o[h++]=128|63&n):(o[h++]=240|n>>>18,o[h++]=128|n>>>12&63,o[h++]=128|n>>>6&63,o[h++]=128|63&n);return o},ea=function(r,o){var n,u,d=o||r.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(r.subarray(0,o));var h=new Array(2*d);for(u=0,n=0;n<d;){var B=r[n++];if(B<128)h[u++]=B;else{var p=et[B];if(p>4)h[u++]=65533,n+=p-1;else{for(B&=p===2?31:p===3?15:7;p>1&&n<d;)B=B<<6|63&r[n++],p--;p>1?h[u++]=65533:B<65536?h[u++]=B:(B-=65536,h[u++]=55296|B>>10&1023,h[u++]=56320|1023&B)}}}return(function(U,m){if(m<65534&&U.subarray&&fn)return String.fromCharCode.apply(null,U.length===m?U:U.subarray(0,m));for(var y="",oe=0;oe<m;oe++)y+=String.fromCharCode(U[oe]);return y})(h,u)},ra=function(r,o){(o=o||r.length)>r.length&&(o=r.length);for(var n=o-1;n>=0&&(192&r[n])==128;)n--;return n<0||n===0?o:n+et[r[n]]>o?n:o},un=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},dn=Object.prototype.toString,ta=K.Z_NO_FLUSH,na=K.Z_SYNC_FLUSH,cn=K.Z_FULL_FLUSH,ar=K.Z_FINISH,mr=K.Z_OK,Rr=K.Z_STREAM_END,vt=K.Z_DEFAULT_COMPRESSION,hn=K.Z_DEFAULT_STRATEGY,Ke=K.Z_DEFLATED;function qr(r){this.options=sn({level:vt,method:Ke,chunkSize:16384,windowBits:15,memLevel:8,strategy:hn},r||{});var o=this.options;o.raw&&o.windowBits>0?o.windowBits=-o.windowBits:o.gzip&&o.windowBits>0&&o.windowBits<16&&(o.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new un,this.strm.avail_out=0;var n=Qr.deflateInit2(this.strm,o.level,o.method,o.windowBits,o.memLevel,o.strategy);if(n!==mr)throw new Error(Ye[n]);if(o.header&&Qr.deflateSetHeader(this.strm,o.header),o.dictionary){var u;if(u=typeof o.dictionary=="string"?Tt(o.dictionary):dn.call(o.dictionary)==="[object ArrayBuffer]"?new Uint8Array(o.dictionary):o.dictionary,(n=Qr.deflateSetDictionary(this.strm,u))!==mr)throw new Error(Ye[n]);this._dict_set=!0}}function pt(r,o){var n=new qr(o);if(n.push(r,!0),n.err)throw n.msg||Ye[n.err];return n.result}qr.prototype.push=function(r,o){var n,u,d=this.strm,h=this.options.chunkSize;if(this.ended)return!1;for(u=o===~~o?o:o===!0?ar:ta,typeof r=="string"?d.input=Tt(r):dn.call(r)==="[object ArrayBuffer]"?d.input=new Uint8Array(r):d.input=r,d.next_in=0,d.avail_in=d.input.length;;)if(d.avail_out===0&&(d.output=new Uint8Array(h),d.next_out=0,d.avail_out=h),(u===na||u===cn)&&d.avail_out<=6)this.onData(d.output.subarray(0,d.next_out)),d.avail_out=0;else{if((n=Qr.deflate(d,u))===Rr)return d.next_out>0&&this.onData(d.output.subarray(0,d.next_out)),n=Qr.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===mr;if(d.avail_out!==0){if(u>0&&d.next_out>0)this.onData(d.output.subarray(0,d.next_out)),d.avail_out=0;else if(d.avail_in===0)break}else this.onData(d.output)}return!0},qr.prototype.onData=function(r){this.chunks.push(r)},qr.prototype.onEnd=function(r){r===mr&&(this.result=ln(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};var _t={Deflate:qr,deflate:pt,deflateRaw:function(r,o){return(o=o||{}).raw=!0,pt(r,o)},gzip:function(r,o){return(o=o||{}).gzip=!0,pt(r,o)}},mt=16209,gr=function(r,o){var n,u,d,h,B,p,U,m,y,oe,H,R,N,ie,ne,se,M,L,G,be,X,de,fe,Q,ee=r.state;n=r.next_in,fe=r.input,u=n+(r.avail_in-5),d=r.next_out,Q=r.output,h=d-(o-r.avail_out),B=d+(r.avail_out-257),p=ee.dmax,U=ee.wsize,m=ee.whave,y=ee.wnext,oe=ee.window,H=ee.hold,R=ee.bits,N=ee.lencode,ie=ee.distcode,ne=(1<<ee.lenbits)-1,se=(1<<ee.distbits)-1;e:do{R<15&&(H+=fe[n++]<<R,R+=8,H+=fe[n++]<<R,R+=8),M=N[H&ne];r:for(;;){if(H>>>=L=M>>>24,R-=L,(L=M>>>16&255)===0)Q[d++]=65535&M;else{if(!(16&L)){if((64&L)==0){M=N[(65535&M)+(H&(1<<L)-1)];continue r}if(32&L){ee.mode=16191;break e}r.msg="invalid literal/length code",ee.mode=mt;break e}G=65535&M,(L&=15)&&(R<L&&(H+=fe[n++]<<R,R+=8),G+=H&(1<<L)-1,H>>>=L,R-=L),R<15&&(H+=fe[n++]<<R,R+=8,H+=fe[n++]<<R,R+=8),M=ie[H&se];t:for(;;){if(H>>>=L=M>>>24,R-=L,!(16&(L=M>>>16&255))){if((64&L)==0){M=ie[(65535&M)+(H&(1<<L)-1)];continue t}r.msg="invalid distance code",ee.mode=mt;break e}if(be=65535&M,R<(L&=15)&&(H+=fe[n++]<<R,(R+=8)<L&&(H+=fe[n++]<<R,R+=8)),(be+=H&(1<<L)-1)>p){r.msg="invalid distance too far back",ee.mode=mt;break e}if(H>>>=L,R-=L,be>(L=d-h)){if((L=be-L)>m&&ee.sane){r.msg="invalid distance too far back",ee.mode=mt;break e}if(X=0,de=oe,y===0){if(X+=U-L,L<G){G-=L;do Q[d++]=oe[X++];while(--L);X=d-be,de=Q}}else if(y<L){if(X+=U+y-L,(L-=y)<G){G-=L;do Q[d++]=oe[X++];while(--L);if(X=0,y<G){G-=L=y;do Q[d++]=oe[X++];while(--L);X=d-be,de=Q}}}else if(X+=y-L,L<G){G-=L;do Q[d++]=oe[X++];while(--L);X=d-be,de=Q}for(;G>2;)Q[d++]=de[X++],Q[d++]=de[X++],Q[d++]=de[X++],G-=3;G&&(Q[d++]=de[X++],G>1&&(Q[d++]=de[X++]))}else{X=d-be;do Q[d++]=Q[X++],Q[d++]=Q[X++],Q[d++]=Q[X++],G-=3;while(G>2);G&&(Q[d++]=Q[X++],G>1&&(Q[d++]=Q[X++]))}break}}break}}while(n<u&&d<B);n-=G=R>>3,H&=(1<<(R-=G<<3))-1,r.next_in=n,r.next_out=d,r.avail_in=n<u?u-n+5:5-(n-u),r.avail_out=d<B?B-d+257:257-(d-B),ee.hold=H,ee.bits=R},cr=15,aa=new Uint16Array([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]),zt=new Uint8Array([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]),wr=new Uint16Array([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]),Ot=new Uint8Array([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]),rt=function(r,o,n,u,d,h,B,p){var U,m,y,oe,H,R,N,ie,ne,se=p.bits,M=0,L=0,G=0,be=0,X=0,de=0,fe=0,Q=0,ee=0,we=0,Or=null,xr=new Uint16Array(16),kt=new Uint16Array(16),At=null;for(M=0;M<=cr;M++)xr[M]=0;for(L=0;L<u;L++)xr[o[n+L]]++;for(X=se,be=cr;be>=1&&xr[be]===0;be--);if(X>be&&(X=be),be===0)return d[h++]=20971520,d[h++]=20971520,p.bits=1,0;for(G=1;G<be&&xr[G]===0;G++);for(X<G&&(X=G),Q=1,M=1;M<=cr;M++)if(Q<<=1,(Q-=xr[M])<0)return-1;if(Q>0&&(r===0||be!==1))return-1;for(kt[1]=0,M=1;M<cr;M++)kt[M+1]=kt[M]+xr[M];for(L=0;L<u;L++)o[n+L]!==0&&(B[kt[o[n+L]]++]=L);if(r===0?(Or=At=B,R=20):r===1?(Or=aa,At=zt,R=257):(Or=wr,At=Ot,R=0),we=0,L=0,M=G,H=h,de=X,fe=0,y=-1,oe=(ee=1<<X)-1,r===1&&ee>852||r===2&&ee>592)return 1;for(;;){N=M-fe,B[L]+1<R?(ie=0,ne=B[L]):B[L]>=R?(ie=At[B[L]-R],ne=Or[B[L]-R]):(ie=96,ne=0),U=1<<M-fe,G=m=1<<de;do d[H+(we>>fe)+(m-=U)]=N<<24|ie<<16|ne|0;while(m!==0);for(U=1<<M-1;we&U;)U>>=1;if(U!==0?(we&=U-1,we+=U):we=0,L++,--xr[M]==0){if(M===be)break;M=o[n+B[L]]}if(M>X&&(we&oe)!==y){for(fe===0&&(fe=X),H+=G,Q=1<<(de=M-fe);de+fe<be&&!((Q-=xr[de+fe])<=0);)de++,Q<<=1;if(ee+=1<<de,r===1&&ee>852||r===2&&ee>592)return 1;d[y=we&oe]=X<<24|de<<16|H-h|0}}return we!==0&&(d[H+we]=M-fe<<24|64<<16|0),p.bits=X,0},vn=K.Z_FINISH,Oe=K.Z_BLOCK,Wr=K.Z_TREES,Tr=K.Z_OK,ia=K.Z_STREAM_END,oa=K.Z_NEED_DICT,ir=K.Z_STREAM_ERROR,tt=K.Z_DATA_ERROR,It=K.Z_MEM_ERROR,pn=K.Z_BUF_ERROR,Pt=K.Z_DEFLATED,gt=16180,wt=16190,yr=16191,Ut=16192,Lt=16194,yt=16199,bt=16200,Vr=16206,Ae=16209,Mt=function(r){return(r>>>24&255)+(r>>>8&65280)+((65280&r)<<8)+((255&r)<<24)};function sa(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Nt,jt,zr=function(r){if(!r)return 1;var o=r.state;return!o||o.strm!==r||o.mode<gt||o.mode>16211?1:0},Zt=function(r){if(zr(r))return ir;var o=r.state;return r.total_in=r.total_out=o.total=0,r.msg="",o.wrap&&(r.adler=1&o.wrap),o.mode=gt,o.last=0,o.havedict=0,o.flags=-1,o.dmax=32768,o.head=null,o.hold=0,o.bits=0,o.lencode=o.lendyn=new Int32Array(852),o.distcode=o.distdyn=new Int32Array(592),o.sane=1,o.back=-1,Tr},Ht=function(r){if(zr(r))return ir;var o=r.state;return o.wsize=0,o.whave=0,o.wnext=0,Zt(r)},_n=function(r,o){var n;if(zr(r))return ir;var u=r.state;return o<0?(n=0,o=-o):(n=5+(o>>4),o<48&&(o&=15)),o&&(o<8||o>15)?ir:(u.window!==null&&u.wbits!==o&&(u.window=null),u.wrap=n,u.wbits=o,Ht(r))},mn=function(r,o){if(!r)return ir;var n=new sa;r.state=n,n.strm=r,n.window=null,n.mode=gt;var u=_n(r,o);return u!==Tr&&(r.state=null),u},gn=!0,la=function(r){if(gn){Nt=new Int32Array(512),jt=new Int32Array(32);for(var o=0;o<144;)r.lens[o++]=8;for(;o<256;)r.lens[o++]=9;for(;o<280;)r.lens[o++]=7;for(;o<288;)r.lens[o++]=8;for(rt(1,r.lens,0,288,Nt,0,r.work,{bits:9}),o=0;o<32;)r.lens[o++]=5;rt(2,r.lens,0,32,jt,0,r.work,{bits:5}),gn=!1}r.lencode=Nt,r.lenbits=9,r.distcode=jt,r.distbits=5},wn=function(r,o,n,u){var d,h=r.state;return h.window===null&&(h.wsize=1<<h.wbits,h.wnext=0,h.whave=0,h.window=new Uint8Array(h.wsize)),u>=h.wsize?(h.window.set(o.subarray(n-h.wsize,n),0),h.wnext=0,h.whave=h.wsize):((d=h.wsize-h.wnext)>u&&(d=u),h.window.set(o.subarray(n-u,n-u+d),h.wnext),(u-=d)?(h.window.set(o.subarray(n-u,n),0),h.wnext=u,h.whave=h.wsize):(h.wnext+=d,h.wnext===h.wsize&&(h.wnext=0),h.whave<h.wsize&&(h.whave+=d))),0},br={inflateReset:Ht,inflateReset2:_n,inflateResetKeep:Zt,inflateInit:function(r){return mn(r,15)},inflateInit2:mn,inflate:function(r,o){var n,u,d,h,B,p,U,m,y,oe,H,R,N,ie,ne,se,M,L,G,be,X,de,fe,Q,ee=0,we=new Uint8Array(4),Or=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(zr(r)||!r.output||!r.input&&r.avail_in!==0)return ir;(n=r.state).mode===yr&&(n.mode=Ut),B=r.next_out,d=r.output,U=r.avail_out,h=r.next_in,u=r.input,p=r.avail_in,m=n.hold,y=n.bits,oe=p,H=U,de=Tr;e:for(;;)switch(n.mode){case gt:if(n.wrap===0){n.mode=Ut;break}for(;y<16;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if(2&n.wrap&&m===35615){n.wbits===0&&(n.wbits=15),n.check=0,we[0]=255&m,we[1]=m>>>8&255,n.check=Ee(n.check,we,2,0),m=0,y=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){r.msg="incorrect header check",n.mode=Ae;break}if((15&m)!==Pt){r.msg="unknown compression method",n.mode=Ae;break}if(y-=4,X=8+(15&(m>>>=4)),n.wbits===0&&(n.wbits=X),X>15||X>n.wbits){r.msg="invalid window size",n.mode=Ae;break}n.dmax=1<<n.wbits,n.flags=0,r.adler=n.check=1,n.mode=512&m?16189:yr,m=0,y=0;break;case 16181:for(;y<16;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if(n.flags=m,(255&n.flags)!==Pt){r.msg="unknown compression method",n.mode=Ae;break}if(57344&n.flags){r.msg="unknown header flags set",n.mode=Ae;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&4&n.wrap&&(we[0]=255&m,we[1]=m>>>8&255,n.check=Ee(n.check,we,2,0)),m=0,y=0,n.mode=16182;case 16182:for(;y<32;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}n.head&&(n.head.time=m),512&n.flags&&4&n.wrap&&(we[0]=255&m,we[1]=m>>>8&255,we[2]=m>>>16&255,we[3]=m>>>24&255,n.check=Ee(n.check,we,4,0)),m=0,y=0,n.mode=16183;case 16183:for(;y<16;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&4&n.wrap&&(we[0]=255&m,we[1]=m>>>8&255,n.check=Ee(n.check,we,2,0)),m=0,y=0,n.mode=16184;case 16184:if(1024&n.flags){for(;y<16;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&4&n.wrap&&(we[0]=255&m,we[1]=m>>>8&255,n.check=Ee(n.check,we,2,0)),m=0,y=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((R=n.length)>p&&(R=p),R&&(n.head&&(X=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(u.subarray(h,h+R),X)),512&n.flags&&4&n.wrap&&(n.check=Ee(n.check,u,R,h)),p-=R,h+=R,n.length-=R),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(p===0)break e;R=0;do X=u[h+R++],n.head&&X&&n.length<65536&&(n.head.name+=String.fromCharCode(X));while(X&&R<p);if(512&n.flags&&4&n.wrap&&(n.check=Ee(n.check,u,R,h)),p-=R,h+=R,X)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(p===0)break e;R=0;do X=u[h+R++],n.head&&X&&n.length<65536&&(n.head.comment+=String.fromCharCode(X));while(X&&R<p);if(512&n.flags&&4&n.wrap&&(n.check=Ee(n.check,u,R,h)),p-=R,h+=R,X)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;y<16;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if(4&n.wrap&&m!==(65535&n.check)){r.msg="header crc mismatch",n.mode=Ae;break}m=0,y=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),r.adler=n.check=0,n.mode=yr;break;case 16189:for(;y<32;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}r.adler=n.check=Mt(m),m=0,y=0,n.mode=wt;case wt:if(n.havedict===0)return r.next_out=B,r.avail_out=U,r.next_in=h,r.avail_in=p,n.hold=m,n.bits=y,oa;r.adler=n.check=1,n.mode=yr;case yr:if(o===Oe||o===Wr)break e;case Ut:if(n.last){m>>>=7&y,y-=7&y,n.mode=Vr;break}for(;y<3;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}switch(n.last=1&m,y-=1,3&(m>>>=1)){case 0:n.mode=16193;break;case 1:if(la(n),n.mode=yt,o===Wr){m>>>=2,y-=2;break e}break;case 2:n.mode=16196;break;case 3:r.msg="invalid block type",n.mode=Ae}m>>>=2,y-=2;break;case 16193:for(m>>>=7&y,y-=7&y;y<32;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if((65535&m)!=(m>>>16^65535)){r.msg="invalid stored block lengths",n.mode=Ae;break}if(n.length=65535&m,m=0,y=0,n.mode=Lt,o===Wr)break e;case Lt:n.mode=16195;case 16195:if(R=n.length){if(R>p&&(R=p),R>U&&(R=U),R===0)break e;d.set(u.subarray(h,h+R),B),p-=R,h+=R,U-=R,B+=R,n.length-=R;break}n.mode=yr;break;case 16196:for(;y<14;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if(n.nlen=257+(31&m),m>>>=5,y-=5,n.ndist=1+(31&m),m>>>=5,y-=5,n.ncode=4+(15&m),m>>>=4,y-=4,n.nlen>286||n.ndist>30){r.msg="too many length or distance symbols",n.mode=Ae;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;y<3;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}n.lens[Or[n.have++]]=7&m,m>>>=3,y-=3}for(;n.have<19;)n.lens[Or[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,fe={bits:n.lenbits},de=rt(0,n.lens,0,19,n.lencode,0,n.work,fe),n.lenbits=fe.bits,de){r.msg="invalid code lengths set",n.mode=Ae;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;se=(ee=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,M=65535&ee,!((ne=ee>>>24)<=y);){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if(M<16)m>>>=ne,y-=ne,n.lens[n.have++]=M;else{if(M===16){for(Q=ne+2;y<Q;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if(m>>>=ne,y-=ne,n.have===0){r.msg="invalid bit length repeat",n.mode=Ae;break}X=n.lens[n.have-1],R=3+(3&m),m>>>=2,y-=2}else if(M===17){for(Q=ne+3;y<Q;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}y-=ne,X=0,R=3+(7&(m>>>=ne)),m>>>=3,y-=3}else{for(Q=ne+7;y<Q;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}y-=ne,X=0,R=11+(127&(m>>>=ne)),m>>>=7,y-=7}if(n.have+R>n.nlen+n.ndist){r.msg="invalid bit length repeat",n.mode=Ae;break}for(;R--;)n.lens[n.have++]=X}}if(n.mode===Ae)break;if(n.lens[256]===0){r.msg="invalid code -- missing end-of-block",n.mode=Ae;break}if(n.lenbits=9,fe={bits:n.lenbits},de=rt(1,n.lens,0,n.nlen,n.lencode,0,n.work,fe),n.lenbits=fe.bits,de){r.msg="invalid literal/lengths set",n.mode=Ae;break}if(n.distbits=6,n.distcode=n.distdyn,fe={bits:n.distbits},de=rt(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,fe),n.distbits=fe.bits,de){r.msg="invalid distances set",n.mode=Ae;break}if(n.mode=yt,o===Wr)break e;case yt:n.mode=bt;case bt:if(p>=6&&U>=258){r.next_out=B,r.avail_out=U,r.next_in=h,r.avail_in=p,n.hold=m,n.bits=y,gr(r,H),B=r.next_out,d=r.output,U=r.avail_out,h=r.next_in,u=r.input,p=r.avail_in,m=n.hold,y=n.bits,n.mode===yr&&(n.back=-1);break}for(n.back=0;se=(ee=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,M=65535&ee,!((ne=ee>>>24)<=y);){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if(se&&(240&se)==0){for(L=ne,G=se,be=M;se=(ee=n.lencode[be+((m&(1<<L+G)-1)>>L)])>>>16&255,M=65535&ee,!(L+(ne=ee>>>24)<=y);){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}m>>>=L,y-=L,n.back+=L}if(m>>>=ne,y-=ne,n.back+=ne,n.length=M,se===0){n.mode=16205;break}if(32&se){n.back=-1,n.mode=yr;break}if(64&se){r.msg="invalid literal/length code",n.mode=Ae;break}n.extra=15&se,n.mode=16201;case 16201:if(n.extra){for(Q=n.extra;y<Q;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,y-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;se=(ee=n.distcode[m&(1<<n.distbits)-1])>>>16&255,M=65535&ee,!((ne=ee>>>24)<=y);){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if((240&se)==0){for(L=ne,G=se,be=M;se=(ee=n.distcode[be+((m&(1<<L+G)-1)>>L)])>>>16&255,M=65535&ee,!(L+(ne=ee>>>24)<=y);){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}m>>>=L,y-=L,n.back+=L}if(m>>>=ne,y-=ne,n.back+=ne,64&se){r.msg="invalid distance code",n.mode=Ae;break}n.offset=M,n.extra=15&se,n.mode=16203;case 16203:if(n.extra){for(Q=n.extra;y<Q;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,y-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){r.msg="invalid distance too far back",n.mode=Ae;break}n.mode=16204;case 16204:if(U===0)break e;if(R=H-U,n.offset>R){if((R=n.offset-R)>n.whave&&n.sane){r.msg="invalid distance too far back",n.mode=Ae;break}R>n.wnext?(R-=n.wnext,N=n.wsize-R):N=n.wnext-R,R>n.length&&(R=n.length),ie=n.window}else ie=d,N=B-n.offset,R=n.length;R>U&&(R=U),U-=R,n.length-=R;do d[B++]=ie[N++];while(--R);n.length===0&&(n.mode=bt);break;case 16205:if(U===0)break e;d[B++]=n.length,U--,n.mode=bt;break;case Vr:if(n.wrap){for(;y<32;){if(p===0)break e;p--,m|=u[h++]<<y,y+=8}if(H-=U,r.total_out+=H,n.total+=H,4&n.wrap&&H&&(r.adler=n.check=n.flags?Ee(n.check,d,H,B-H):Ge(n.check,d,H,B-H)),H=U,4&n.wrap&&(n.flags?m:Mt(m))!==n.check){r.msg="incorrect data check",n.mode=Ae;break}m=0,y=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;y<32;){if(p===0)break e;p--,m+=u[h++]<<y,y+=8}if(4&n.wrap&&m!==(4294967295&n.total)){r.msg="incorrect length check",n.mode=Ae;break}m=0,y=0}n.mode=16208;case 16208:de=ia;break e;case Ae:de=tt;break e;case 16210:return It;default:return ir}return r.next_out=B,r.avail_out=U,r.next_in=h,r.avail_in=p,n.hold=m,n.bits=y,(n.wsize||H!==r.avail_out&&n.mode<Ae&&(n.mode<Vr||o!==vn))&&wn(r,r.output,r.next_out,H-r.avail_out),oe-=r.avail_in,H-=r.avail_out,r.total_in+=oe,r.total_out+=H,n.total+=H,4&n.wrap&&H&&(r.adler=n.check=n.flags?Ee(n.check,d,H,r.next_out-H):Ge(n.check,d,H,r.next_out-H)),r.data_type=n.bits+(n.last?64:0)+(n.mode===yr?128:0)+(n.mode===yt||n.mode===Lt?256:0),(oe===0&&H===0||o===vn)&&de===Tr&&(de=pn),de},inflateEnd:function(r){if(zr(r))return ir;var o=r.state;return o.window&&(o.window=null),r.state=null,Tr},inflateGetHeader:function(r,o){if(zr(r))return ir;var n=r.state;return(2&n.wrap)==0?ir:(n.head=o,o.done=!1,Tr)},inflateSetDictionary:function(r,o){var n,u=o.length;return zr(r)||(n=r.state).wrap!==0&&n.mode!==wt?ir:n.mode===wt&&Ge(1,o,u,0)!==n.check?tt:wn(r,o,u,u)?(n.mode=16210,It):(n.havedict=1,Tr)},inflateInfo:"pako inflate (from Nodeca project)"},Yr=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},yn=Object.prototype.toString,bn=K.Z_NO_FLUSH,fa=K.Z_FINISH,nt=K.Z_OK,$t=K.Z_STREAM_END,qt=K.Z_NEED_DICT,ua=K.Z_STREAM_ERROR,En=K.Z_DATA_ERROR,da=K.Z_MEM_ERROR;function at(r){this.options=sn({chunkSize:65536,windowBits:15,to:""},r||{});var o=this.options;o.raw&&o.windowBits>=0&&o.windowBits<16&&(o.windowBits=-o.windowBits,o.windowBits===0&&(o.windowBits=-15)),!(o.windowBits>=0&&o.windowBits<16)||r&&r.windowBits||(o.windowBits+=32),o.windowBits>15&&o.windowBits<48&&(15&o.windowBits)==0&&(o.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new un,this.strm.avail_out=0;var n=br.inflateInit2(this.strm,o.windowBits);if(n!==nt)throw new Error(Ye[n]);if(this.header=new Yr,br.inflateGetHeader(this.strm,this.header),o.dictionary&&(typeof o.dictionary=="string"?o.dictionary=Tt(o.dictionary):yn.call(o.dictionary)==="[object ArrayBuffer]"&&(o.dictionary=new Uint8Array(o.dictionary)),o.raw&&(n=br.inflateSetDictionary(this.strm,o.dictionary))!==nt))throw new Error(Ye[n])}function Wt(r,o){var n=new at(o);if(n.push(r),n.err)throw n.msg||Ye[n.err];return n.result}at.prototype.push=function(r,o){var n,u,d,h=this.strm,B=this.options.chunkSize,p=this.options.dictionary;if(this.ended)return!1;for(u=o===~~o?o:o===!0?fa:bn,yn.call(r)==="[object ArrayBuffer]"?h.input=new Uint8Array(r):h.input=r,h.next_in=0,h.avail_in=h.input.length;;){for(h.avail_out===0&&(h.output=new Uint8Array(B),h.next_out=0,h.avail_out=B),(n=br.inflate(h,u))===qt&&p&&((n=br.inflateSetDictionary(h,p))===nt?n=br.inflate(h,u):n===En&&(n=qt));h.avail_in>0&&n===$t&&h.state.wrap>0&&r[h.next_in]!==0;)br.inflateReset(h),n=br.inflate(h,u);switch(n){case ua:case En:case qt:case da:return this.onEnd(n),this.ended=!0,!1}if(d=h.avail_out,h.next_out&&(h.avail_out===0||n===$t))if(this.options.to==="string"){var U=ra(h.output,h.next_out),m=h.next_out-U,y=ea(h.output,U);h.next_out=m,h.avail_out=B-m,m&&h.output.set(h.output.subarray(U,U+m),0),this.onData(y)}else this.onData(h.output.length===h.next_out?h.output:h.output.subarray(0,h.next_out));if(n!==nt||d!==0){if(n===$t)return n=br.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(h.avail_in===0)break}}return!0},at.prototype.onData=function(r){this.chunks.push(r)},at.prototype.onEnd=function(r){r===nt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ln(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg};var Et={Inflate:at,inflate:Wt,inflateRaw:function(r,o){return(o=o||{}).raw=!0,Wt(r,o)},ungzip:Wt},Vt=_t.Deflate,it=_t.deflate,xn=_t.deflateRaw,Er=_t.gzip,kn=Et.Inflate,An=Et.inflate,xt=Et.inflateRaw,Yt=Et.ungzip,Dn=K,ca={Deflate:Vt,deflate:it,deflateRaw:xn,gzip:Er,Inflate:kn,inflate:An,inflateRaw:xt,ungzip:Yt,constants:Dn};C.Deflate=Vt,C.Inflate=kn,C.constants=Dn,C.default=ca,C.deflate=it,C.deflateRaw=xn,C.gzip=Er,C.inflate=An,C.inflateRaw=xt,C.ungzip=Yt,Object.defineProperty(C,"__esModule",{value:!0})}))})(Ct,Ct.exports)),Ct.exports}var wa;function si(){if(wa)return Xr;wa=1;var x=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",D=oi();return Xr.uncompressInputType=x?"uint8array":"array",Xr.compressInputType=x?"uint8array":"array",Xr.magic="\b\0",Xr.compress=function(C,k){return D.deflateRaw(C,{level:k.level||-1})},Xr.uncompress=function(C){return D.inflateRaw(C)},Xr}var ya;function Rn(){return ya||(ya=1,Jt.STORE={magic:"\0\0",compress:function(D){return D},uncompress:function(D){return D},compressInputType:null,uncompressInputType:null},Jt.DEFLATE=si()),Jt}var Qt={exports:{}},ba;function Tn(){return ba||(ba=1,Qt.exports=function(x,D){return typeof x=="number"?Buffer.alloc(x):Buffer.from(x,D)},Qt.exports.test=function(x){return Buffer.isBuffer(x)}),Qt.exports}var Ea;function hr(){return Ea||(Ea=1,(function(x){function D(_){"@babel/helpers - typeof";return D=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},D(_)}var C=ot(),k=Rn(),S=Tn();x.string2binary=function(_){for(var g="",T=0;T<_.length;T++)g+=String.fromCharCode(_.charCodeAt(T)&255);return g},x.arrayBuffer2Blob=function(_,g){x.checkSupport("blob"),g=g||"application/zip";try{return new Blob([_],{type:g})}catch{try{var T=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,P=new T;return P.append(_),P.getBlob(g)}catch{throw new Error("Bug : can't construct the Blob.")}}};function $(_){return _}function J(_,g){for(var T=0;T<_.length;++T)g[T]=_.charCodeAt(T)&255;return g}function E(_){var g=65536,T=[],P=_.length,Y=x.getTypeOf(_),ue=0,Ie=!0;try{switch(Y){case"uint8array":String.fromCharCode.apply(null,new Uint8Array(0));break;case"nodebuffer":String.fromCharCode.apply(null,S(0));break}}catch{Ie=!1}if(!Ie){for(var ye="",rr=0;rr<_.length;rr++)ye+=String.fromCharCode(_[rr]);return ye}for(;ue<P&&g>1;)try{Y==="array"||Y==="nodebuffer"?T.push(String.fromCharCode.apply(null,_.slice(ue,Math.min(ue+g,P)))):T.push(String.fromCharCode.apply(null,_.subarray(ue,Math.min(ue+g,P)))),ue+=g}catch{g=Math.floor(g/2)}return T.join("")}x.applyFromCharCode=E;function j(_,g){for(var T=0;T<_.length;T++)g[T]=_[T];return g}var w={};w.string={string:$,array:function(g){return J(g,new Array(g.length))},arraybuffer:function(g){return w.string.uint8array(g).buffer},uint8array:function(g){return J(g,new Uint8Array(g.length))},nodebuffer:function(g){return J(g,S(g.length))}},w.array={string:E,array:$,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return S(g)}},w.arraybuffer={string:function(g){return E(new Uint8Array(g))},array:function(g){return j(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:$,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return S(new Uint8Array(g))}},w.uint8array={string:E,array:function(g){return j(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:$,nodebuffer:function(g){return S(g)}},w.nodebuffer={string:E,array:function(g){return j(g,new Array(g.length))},arraybuffer:function(g){return w.nodebuffer.uint8array(g).buffer},uint8array:function(g){return j(g,new Uint8Array(g.length))},nodebuffer:$},x.transformTo=function(_,g){if(g||(g=""),!_)return g;x.checkSupport(_);var T=x.getTypeOf(g),P=w[T][_](g);return P},x.getTypeOf=function(_){if(_!=null){if(typeof _=="string")return"string";var g=Object.prototype.toString.call(_);if(g==="[object Array]")return"array";if(C.nodebuffer&&S.test(_))return"nodebuffer";if(C.uint8array&&g==="[object Uint8Array]")return"uint8array";if(C.arraybuffer&&g==="[object ArrayBuffer]")return"arraybuffer";if(g==="[object Promise]")throw new Error("Cannot read data from a promise, you probably are running new PizZip(data) with a promise");if(D(_)==="object"&&typeof _.file=="function")throw new Error("Cannot read data from a pizzip instance, you probably are running new PizZip(zip) with a zipinstance");if(g==="[object Date]")throw new Error("Cannot read data from a Date, you probably are running new PizZip(data) with a date");if(D(_)==="object"&&_.crc32==null)throw new Error("Unsupported data given to new PizZip(data) (object given)")}},x.checkSupport=function(_){var g=C[_.toLowerCase()];if(!g)throw new Error(_+" is not supported by this browser")},x.MAX_VALUE_16BITS=65535,x.MAX_VALUE_32BITS=-1,x.pretty=function(_){var g="",T,P;for(P=0;P<(_||"").length;P++)T=_.charCodeAt(P),g+="\\x"+(T<16?"0":"")+T.toString(16).toUpperCase();return g},x.findCompression=function(_){for(var g in k)if(k.hasOwnProperty(g)&&k[g].magic===_)return k[g];return null},x.isRegExp=function(_){return Object.prototype.toString.call(_)==="[object RegExp]"},x.extend=function(){var _={},g,T;for(g=0;g<arguments.length;g++)for(T in arguments[g])arguments[g].hasOwnProperty(T)&&typeof _[T]>"u"&&(_[T]=arguments[g][T]);return _}})(Bn)),Bn}var zn,xa;function li(){if(xa)return zn;xa=1;var x=hr(),D=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];return zn=function(k,S){if(typeof k>"u"||!k.length)return 0;var $=x.getTypeOf(k)!=="string";typeof S>"u"&&(S=0);var J=0,E=0,j=0;S^=-1;for(var w=0,_=k.length;w<_;w++)j=$?k[w]:k.charCodeAt(w),E=(S^j)&255,J=D[E],S=S>>>8^J;return S^-1},zn}var Pr={},ka;function Aa(){return ka||(ka=1,Pr.LOCAL_FILE_HEADER="PK",Pr.CENTRAL_FILE_HEADER="PK",Pr.CENTRAL_DIRECTORY_END="PK",Pr.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",Pr.ZIP64_CENTRAL_DIRECTORY_END="PK",Pr.DATA_DESCRIPTOR="PK\x07\b"),Pr}var sr={},Da;function Ca(){return Da||(Da=1,sr.base64=!1,sr.binary=!1,sr.dir=!1,sr.createFolders=!1,sr.date=null,sr.compression=null,sr.compressionOptions=null,sr.comment=null,sr.unixPermissions=null,sr.dosPermissions=null),sr}var On,Fa;function Sa(){if(Fa)return On;Fa=1;function x(){this.compressedSize=0,this.uncompressedSize=0,this.crc32=0,this.compressionMethod=null,this.compressedContent=null}return x.prototype={getContent:function(){return null},getCompressedContent:function(){return null}},On=x,On}var en={},Ba;function Ra(){if(Ba)return en;Ba=1;for(var x=hr(),D=ot(),C=Tn(),k=new Array(256),S=0;S<256;S++)k[S]=S>=252?6:S>=248?5:S>=240?4:S>=224?3:S>=192?2:1;k[254]=k[254]=1;function $(j){var w,_,g,T,P,Y=0,ue=j.length;for(T=0;T<ue;T++)_=j.charCodeAt(T),(_&64512)===55296&&T+1<ue&&(g=j.charCodeAt(T+1),(g&64512)===56320&&(_=65536+(_-55296<<10)+(g-56320),T++)),Y+=_<128?1:_<2048?2:_<65536?3:4;for(D.uint8array?w=new Uint8Array(Y):w=new Array(Y),P=0,T=0;P<Y;T++)_=j.charCodeAt(T),(_&64512)===55296&&T+1<ue&&(g=j.charCodeAt(T+1),(g&64512)===56320&&(_=65536+(_-55296<<10)+(g-56320),T++)),_<128?w[P++]=_:_<2048?(w[P++]=192|_>>>6,w[P++]=128|_&63):_<65536?(w[P++]=224|_>>>12,w[P++]=128|_>>>6&63,w[P++]=128|_&63):(w[P++]=240|_>>>18,w[P++]=128|_>>>12&63,w[P++]=128|_>>>6&63,w[P++]=128|_&63);return w}function J(j,w){var _;for(w=w||j.length,w>j.length&&(w=j.length),_=w-1;_>=0&&(j[_]&192)===128;)_--;return _<0||_===0?w:_+k[j[_]]>w?_:w}function E(j){var w,_,g,T,P=j.length,Y=new Array(P*2);for(_=0,w=0;w<P;){if(g=j[w++],g<128){Y[_++]=g;continue}if(T=k[g],T>4){Y[_++]=65533,w+=T-1;continue}for(g&=T===2?31:T===3?15:7;T>1&&w<P;)g=g<<6|j[w++]&63,T--;if(T>1){Y[_++]=65533;continue}g<65536?Y[_++]=g:(g-=65536,Y[_++]=55296|g>>10&1023,Y[_++]=56320|g&1023)}return Y.length!==_&&(Y.subarray?Y=Y.subarray(0,_):Y.length=_),x.applyFromCharCode(Y)}return en.utf8encode=function(w){return D.nodebuffer?C(w,"utf-8"):$(w)},en.utf8decode=function(w){if(D.nodebuffer)return x.transformTo("nodebuffer",w).toString("utf-8");w=x.transformTo(D.uint8array?"uint8array":"array",w);for(var _=[],g=w.length,T=65536,P=0;P<g;){var Y=J(w,Math.min(P+T,g));D.uint8array?_.push(E(w.subarray(P,Y))):_.push(E(w.slice(P,Y))),P=Y}return _.join("")},en}var In,Ta;function fi(){if(Ta)return In;Ta=1;var x=hr();function D(){this.data=[]}return D.prototype={append:function(k){k=x.transformTo("string",k),this.data.push(k)},finalize:function(){return this.data.join("")}},In=D,In}var Pn,za;function ui(){if(za)return Pn;za=1;var x=hr();function D(C){this.data=new Uint8Array(C),this.index=0}return D.prototype={append:function(k){k.length!==0&&(k=x.transformTo("uint8array",k),this.data.set(k,this.index),this.index+=k.length)},finalize:function(){return this.data}},Pn=D,Pn}var Un,Oa;function Ia(){if(Oa)return Un;Oa=1;function x(F,b){var z=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!z){if(Array.isArray(F)||(z=D(F))||b){z&&(F=z);var I=0,W=function(){};return{s:W,n:function(){return I>=F.length?{done:!0}:{done:!1,value:F[I++]}},e:function(Le){throw Le},f:W}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var me,ge=!0,Ce=!1;return{s:function(){z=z.call(F)},n:function(){var Le=z.next();return ge=Le.done,Le},e:function(Le){Ce=!0,me=Le},f:function(){try{ge||z.return==null||z.return()}finally{if(Ce)throw me}}}}function D(F,b){if(F){if(typeof F=="string")return C(F,b);var z={}.toString.call(F).slice(8,-1);return z==="Object"&&F.constructor&&(z=F.constructor.name),z==="Map"||z==="Set"?Array.from(F):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?C(F,b):void 0}}function C(F,b){(b==null||b>F.length)&&(b=F.length);for(var z=0,I=Array(b);z<b;z++)I[z]=F[z];return I}var k=ot(),S=hr(),$=li(),J=Aa(),E=Ca(),j=Sn(),w=Rn(),_=Sa(),g=Tn(),T=Ra(),P=fi(),Y=ui();function ue(F){if(F._data instanceof _&&(F._data=F._data.getContent(),F.options.binary=!0,F.options.base64=!1,S.getTypeOf(F._data)==="uint8array")){var b=F._data;F._data=new Uint8Array(b.length),b.length!==0&&F._data.set(b,0)}return F._data}function Ie(F){var b=ue(F),z=S.getTypeOf(b);return z==="string"?!F.options.binary&&k.nodebuffer?g(b,"utf-8"):F.asBinary():b}var ye={load:function(){throw new Error("Load method is not defined. Is the file pizzip-load.js included ?")},filter:function(b){var z=[],I,W,me,ge;for(I in this.files)this.files.hasOwnProperty(I)&&(me=this.files[I],ge=new Ve(me.name,me._data,S.extend(me.options)),W=I.slice(this.root.length,I.length),I.slice(0,this.root.length)===this.root&&b(W,ge)&&z.push(ge));return z},file:function(b,z,I){if(arguments.length===1){if(S.isRegExp(b)){var W=b;return this.filter(function(me,ge){return!ge.dir&&W.test(me)})}return this.filter(function(me,ge){return!ge.dir&&me===b})[0]||null}return b=this.root+b,Sr.call(this,b,z,I),this},folder:function(b){if(!b)return this;if(S.isRegExp(b))return this.filter(function(me,ge){return ge.dir&&b.test(me)});var z=this.root+b,I=Be.call(this,z),W=this.shallowClone();return W.root=I.name,W},remove:function(b){b=this.root+b;var z=this.files[b];if(z||(b.slice(-1)!=="/"&&(b+="/"),z=this.files[b]),z&&!z.dir)delete this.files[b];else for(var I=this.filter(function(me,ge){return ge.name.slice(0,b.length)===b}),W=0;W<I.length;W++)delete this.files[I[W].name];return this},generate:function(b){b=S.extend(b||{},{base64:!0,compression:"STORE",compressionOptions:null,type:"base64",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:T.utf8encode}),S.checkSupport(b.type),(b.platform==="darwin"||b.platform==="freebsd"||b.platform==="linux"||b.platform==="sunos")&&(b.platform="UNIX"),b.platform==="win32"&&(b.platform="DOS");var z=[],I=S.transformTo("string",b.encodeFileName(b.comment||this.comment||"")),W=0,me=0,ge,Ce,Re=[];b.fileOrder instanceof Array&&(Re=b.fileOrder);for(var Le in this.files)Re.indexOf(Le)===-1&&Re.push(Le);typeof b.fileOrder=="function"&&(Re=b.fileOrder(this.files));var Ne=x(Re),Ge;try{for(Ne.s();!(Ge=Ne.n()).done;){var Dr=Ge.value;if(this.files.hasOwnProperty(Dr)){var Ee=this.files[Dr],Ye=Ee.options.compression||b.compression.toUpperCase(),K=w[Ye];if(!K)throw new Error(Ye+" is not a valid compression method !");var lr=Ee.options.compressionOptions||b.compressionOptions||{},Je=Me.call(this,Ee,K,lr),je=Ue.call(this,Dr,Ee,Je,W,b.platform,b.encodeFileName);W+=je.fileRecord.length+Je.compressedSize,me+=je.dirRecord.length,z.push(je)}}}catch(tr){Ne.e(tr)}finally{Ne.f()}var Fe="";Fe=J.CENTRAL_DIRECTORY_END+"\0\0\0\0"+ce(z.length,2)+ce(z.length,2)+ce(me,4)+ce(W,4)+ce(I.length,2)+I;var fr=b.type.toLowerCase();for(fr==="uint8array"||fr==="arraybuffer"||fr==="blob"||fr==="nodebuffer"?ge=new Y(W+me+Fe.length):ge=new P(W+me+Fe.length),Ce=0;Ce<z.length;Ce++)ge.append(z[Ce].fileRecord),ge.append(z[Ce].compressedObject.compressedContent);for(Ce=0;Ce<z.length;Ce++)ge.append(z[Ce].dirRecord);ge.append(Fe);var xe=ge.finalize();switch(b.type.toLowerCase()){case"uint8array":case"arraybuffer":case"nodebuffer":return S.transformTo(b.type.toLowerCase(),xe);case"blob":return S.arrayBuffer2Blob(S.transformTo("arraybuffer",xe),b.mimeType);case"base64":return b.base64?j.encode(xe):xe;default:return xe}},crc32:function(b,z){return $(b,z)},utf8encode:function(b){return S.transformTo("string",T.utf8encode(b))},utf8decode:function(b){return T.utf8decode(b)}};function rr(F){var b=ue(this);return b===null||typeof b>"u"?"":(this.options.base64&&(b=j.decode(b)),F&&this.options.binary?b=ye.utf8decode(b):b=S.transformTo("string",b),!F&&!this.options.binary&&(b=S.transformTo("string",ye.utf8encode(b))),b)}function Ve(F,b,z){this.name=F,this.dir=z.dir,this.date=z.date,this.comment=z.comment,this.unixPermissions=z.unixPermissions,this.dosPermissions=z.dosPermissions,this._data=b,this.options=z,this._initialMetadata={dir:z.dir,date:z.date}}Ve.prototype={asText:function(){return rr.call(this,!0)},asBinary:function(){return rr.call(this,!1)},asNodeBuffer:function(){var b=Ie(this);return S.transformTo("nodebuffer",b)},asUint8Array:function(){var b=Ie(this);return S.transformTo("uint8array",b)},asArrayBuffer:function(){return this.asUint8Array().buffer}};function ce(F,b){var z="",I;for(I=0;I<b;I++)z+=String.fromCharCode(F&255),F>>>=8;return z}function vr(F){return F=F||{},F.base64===!0&&(F.binary===null||F.binary===void 0)&&(F.binary=!0),F=S.extend(F,E),F.date=F.date||new Date,F.compression!==null&&(F.compression=F.compression.toUpperCase()),F}function Sr(F,b,z){var I=S.getTypeOf(b),W;if(z=vr(z),typeof z.unixPermissions=="string"&&(z.unixPermissions=parseInt(z.unixPermissions,8)),z.unixPermissions&&z.unixPermissions&16384&&(z.dir=!0),z.dosPermissions&&z.dosPermissions&16&&(z.dir=!0),z.dir&&(F=Pe(F)),z.createFolders&&(W=Ur(F))&&Be.call(this,W,!0),z.dir||b===null||typeof b>"u")z.base64=!1,z.binary=!1,b=null,I=null;else if(I==="string")z.binary&&!z.base64&&z.optimizedBinaryString!==!0&&(b=S.string2binary(b));else{if(z.base64=!1,z.binary=!0,!I&&!(b instanceof _))throw new Error("The data of '"+F+"' is in an unsupported format !");I==="arraybuffer"&&(b=S.transformTo("uint8array",b))}var me=new Ve(F,b,z);return this.files[F]=me,me}function Ur(F){F.slice(-1)==="/"&&(F=F.substring(0,F.length-1));var b=F.lastIndexOf("/");return b>0?F.substring(0,b):""}function Pe(F){return F.slice(-1)!=="/"&&(F+="/"),F}function Be(F,b){return b=typeof b<"u"?b:!1,F=Pe(F),this.files[F]||Sr.call(this,F,null,{dir:!0,createFolders:b}),this.files[F]}function Me(F,b,z){var I=new _,W;return F._data instanceof _?(I.uncompressedSize=F._data.uncompressedSize,I.crc32=F._data.crc32,I.uncompressedSize===0||F.dir?(b=w.STORE,I.compressedContent="",I.crc32=0):F._data.compressionMethod===b.magic?I.compressedContent=F._data.getCompressedContent():(W=F._data.getContent(),I.compressedContent=b.compress(S.transformTo(b.compressInputType,W),z))):(W=Ie(F),(!W||W.length===0||F.dir)&&(b=w.STORE,W=""),I.uncompressedSize=W.length,I.crc32=$(W),I.compressedContent=b.compress(S.transformTo(b.compressInputType,W),z)),I.compressedSize=I.compressedContent.length,I.compressionMethod=b.magic,I}function Kr(F,b){var z=F;return F||(z=b?16893:33204),(z&65535)<<16}function ft(F){return(F||0)&63}function Ue(F,b,z,I,W,me){var ge=me!==T.utf8encode,Ce=S.transformTo("string",me(b.name)),Re=S.transformTo("string",T.utf8encode(b.name)),Le=b.comment||"",Ne=S.transformTo("string",me(Le)),Ge=S.transformTo("string",T.utf8encode(Le)),Dr=Re.length!==b.name.length,Ee=Ge.length!==Le.length,Ye=b.options,K,lr,Je="",je="",Fe="",fr,xe;b._initialMetadata.dir!==b.dir?fr=b.dir:fr=Ye.dir,b._initialMetadata.date!==b.date?xe=b.date:xe=Ye.date;var tr=0,pr=0;fr&&(tr|=16),W==="UNIX"?(pr=798,tr|=Kr(b.unixPermissions,fr)):(pr=20,tr|=ft(b.dosPermissions)),K=xe.getHours(),K<<=6,K|=xe.getMinutes(),K<<=5,K|=xe.getSeconds()/2,lr=xe.getFullYear()-1980,lr<<=4,lr|=xe.getMonth()+1,lr<<=5,lr|=xe.getDate(),Dr&&(je=ce(1,1)+ce($(Ce),4)+Re,Je+="up"+ce(je.length,2)+je),Ee&&(Fe=ce(1,1)+ce(this.crc32(Ne),4)+Ge,Je+="uc"+ce(Fe.length,2)+Fe);var ke="";ke+=`
3
+ \0`,ke+=!ge&&(Dr||Ee)?"\0\b":"\0\0",ke+=z.compressionMethod,ke+=ce(K,2),ke+=ce(lr,2),ke+=ce(z.crc32,4),ke+=ce(z.compressedSize,4),ke+=ce(z.uncompressedSize,4),ke+=ce(Ce.length,2),ke+=ce(Je.length,2);var Gr=J.LOCAL_FILE_HEADER+ke+Ce+Je,De=J.CENTRAL_FILE_HEADER+ce(pr,2)+ke+ce(Ne.length,2)+"\0\0\0\0"+ce(tr,4)+ce(I,4)+Ce+Je+Ne;return{fileRecord:Gr,dirRecord:De,compressedObject:z}}return Un=ye,Un}var Ln,Pa;function Ua(){if(Pa)return Ln;Pa=1;var x=hr();function D(){this.data=null,this.length=0,this.index=0,this.zero=0}return D.prototype={checkOffset:function(k){this.checkIndex(this.index+k)},checkIndex:function(k){if(this.length<this.zero+k||k<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+k+"). Corrupted zip ?")},setIndex:function(k){this.checkIndex(k),this.index=k},skip:function(k){this.setIndex(this.index+k)},byteAt:function(){},readInt:function(k){var S=0,$;for(this.checkOffset(k),$=this.index+k-1;$>=this.index;$--)S=(S<<8)+this.byteAt($);return this.index+=k,S},readString:function(k){return x.transformTo("string",this.readData(k))},readData:function(){},lastIndexOfSignature:function(){},readDate:function(){var k=this.readInt(4);return new Date((k>>25&127)+1980,(k>>21&15)-1,k>>16&31,k>>11&31,k>>5&63,(k&31)<<1)}},Ln=D,Ln}var Mn,La;function Ma(){if(La)return Mn;La=1;var x=Ua(),D=hr();function C(k,S){this.data=k,S||(this.data=D.string2binary(this.data)),this.length=this.data.length,this.index=0,this.zero=0}return C.prototype=new x,C.prototype.byteAt=function(k){return this.data.charCodeAt(this.zero+k)},C.prototype.lastIndexOfSignature=function(k){return this.data.lastIndexOf(k)-this.zero},C.prototype.readData=function(k){this.checkOffset(k);var S=this.data.slice(this.zero+this.index,this.zero+this.index+k);return this.index+=k,S},Mn=C,Mn}var Nn,Na;function ja(){if(Na)return Nn;Na=1;var x=Ua();function D(C){if(C){this.data=C,this.length=this.data.length,this.index=0,this.zero=0;for(var k=0;k<this.data.length;k++)C[k]&=C[k]}}return D.prototype=new x,D.prototype.byteAt=function(C){return this.data[this.zero+C]},D.prototype.lastIndexOfSignature=function(C){for(var k=C.charCodeAt(0),S=C.charCodeAt(1),$=C.charCodeAt(2),J=C.charCodeAt(3),E=this.length-4;E>=0;--E)if(this.data[E]===k&&this.data[E+1]===S&&this.data[E+2]===$&&this.data[E+3]===J)return E-this.zero;return-1},D.prototype.readData=function(C){if(this.checkOffset(C),C===0)return[];var k=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,k},Nn=D,Nn}var jn,Za;function Ha(){if(Za)return jn;Za=1;var x=ja();function D(C){C&&(this.data=C,this.length=this.data.length,this.index=0,this.zero=0)}return D.prototype=new x,D.prototype.readData=function(C){if(this.checkOffset(C),C===0)return new Uint8Array(0);var k=this.data.subarray(this.zero+this.index,this.zero+this.index+C);return this.index+=C,k},jn=D,jn}var Zn,$a;function di(){if($a)return Zn;$a=1;var x=Ha();function D(C){this.data=C,this.length=this.data.length,this.index=0,this.zero=0}return D.prototype=new x,D.prototype.readData=function(C){this.checkOffset(C);var k=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,k},Zn=D,Zn}var Hn,qa;function ci(){if(qa)return Hn;qa=1;var x=Ma(),D=hr(),C=Sa(),k=Ia(),S=ot(),$=0,J=3;function E(j,w){this.options=j,this.loadOptions=w}return E.prototype={isEncrypted:function(){return(this.bitFlag&1)===1},useUTF8:function(){return(this.bitFlag&2048)===2048},prepareCompressedContent:function(w,_,g){return function(){var T=w.index;w.setIndex(_);var P=w.readData(g);return w.setIndex(T),P}},prepareContent:function(w,_,g,T,P){return function(){var Y=D.transformTo(T.uncompressInputType,this.getCompressedContent()),ue=T.uncompress(Y);if(ue.length!==P)throw new Error("Bug : uncompressed data size mismatch");return ue}},readLocalPart:function(w){w.skip(22),this.fileNameLength=w.readInt(2);var _=w.readInt(2);if(this.fileName=w.readData(this.fileNameLength),w.skip(_),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize == -1 || uncompressedSize == -1)");var g=D.findCompression(this.compressionMethod);if(g===null)throw new Error("Corrupted zip : compression "+D.pretty(this.compressionMethod)+" unknown (inner file : "+D.transformTo("string",this.fileName)+")");if(this.decompressed=new C,this.decompressed.compressedSize=this.compressedSize,this.decompressed.uncompressedSize=this.uncompressedSize,this.decompressed.crc32=this.crc32,this.decompressed.compressionMethod=this.compressionMethod,this.decompressed.getCompressedContent=this.prepareCompressedContent(w,w.index,this.compressedSize,g),this.decompressed.getContent=this.prepareContent(w,w.index,this.compressedSize,g,this.uncompressedSize),this.loadOptions.checkCRC32&&(this.decompressed=D.transformTo("string",this.decompressed.getContent()),k.crc32(this.decompressed)!==this.crc32))throw new Error("Corrupted zip : CRC32 mismatch")},readCentralPart:function(w){if(this.versionMadeBy=w.readInt(2),this.versionNeeded=w.readInt(2),this.bitFlag=w.readInt(2),this.compressionMethod=w.readString(2),this.date=w.readDate(),this.crc32=w.readInt(4),this.compressedSize=w.readInt(4),this.uncompressedSize=w.readInt(4),this.fileNameLength=w.readInt(2),this.extraFieldsLength=w.readInt(2),this.fileCommentLength=w.readInt(2),this.diskNumberStart=w.readInt(2),this.internalFileAttributes=w.readInt(2),this.externalFileAttributes=w.readInt(4),this.localHeaderOffset=w.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");this.fileName=w.readData(this.fileNameLength),this.readExtraFields(w),this.parseZIP64ExtraField(w),this.fileComment=w.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var w=this.versionMadeBy>>8;this.dir=!!(this.externalFileAttributes&16),w===$&&(this.dosPermissions=this.externalFileAttributes&63),w===J&&(this.unixPermissions=this.externalFileAttributes>>16&65535),!this.dir&&this.fileNameStr.slice(-1)==="/"&&(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var w=new x(this.extraFields[1].value);this.uncompressedSize===D.MAX_VALUE_32BITS&&(this.uncompressedSize=w.readInt(8)),this.compressedSize===D.MAX_VALUE_32BITS&&(this.compressedSize=w.readInt(8)),this.localHeaderOffset===D.MAX_VALUE_32BITS&&(this.localHeaderOffset=w.readInt(8)),this.diskNumberStart===D.MAX_VALUE_32BITS&&(this.diskNumberStart=w.readInt(4))}},readExtraFields:function(w){var _=w.index,g,T,P;for(this.extraFields=this.extraFields||{};w.index<_+this.extraFieldsLength;)g=w.readInt(2),T=w.readInt(2),P=w.readString(T),this.extraFields[g]={id:g,length:T,value:P}},handleUTF8:function(){var w=S.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=k.utf8decode(this.fileName),this.fileCommentStr=k.utf8decode(this.fileComment);else{var _=this.findExtraFieldUnicodePath();if(_!==null)this.fileNameStr=_;else{var g=D.transformTo(w,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var T=this.findExtraFieldUnicodeComment();if(T!==null)this.fileCommentStr=T;else{var P=D.transformTo(w,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(P)}}},findExtraFieldUnicodePath:function(){var w=this.extraFields[28789];if(w){var _=new x(w.value);return _.readInt(1)!==1||k.crc32(this.fileName)!==_.readInt(4)?null:k.utf8decode(_.readString(w.length-5))}return null},findExtraFieldUnicodeComment:function(){var w=this.extraFields[25461];if(w){var _=new x(w.value);return _.readInt(1)!==1||k.crc32(this.fileComment)!==_.readInt(4)?null:k.utf8decode(_.readString(w.length-5))}return null}},Hn=E,Hn}var $n,Wa;function hi(){if(Wa)return $n;Wa=1;var x=Ma(),D=di(),C=Ha(),k=ja(),S=hr(),$=Aa(),J=ci(),E=ot();function j(w,_){this.files=[],this.loadOptions=_,w&&this.load(w)}return j.prototype={checkSignature:function(_){var g=this.reader.readString(4);if(g!==_)throw new Error("Corrupted zip or bug : unexpected signature ("+S.pretty(g)+", expected "+S.pretty(_)+")")},isSignature:function(_,g){var T=this.reader.index;this.reader.setIndex(_);var P=this.reader.readString(4),Y=P===g;return this.reader.setIndex(T),Y},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 _=this.reader.readData(this.zipCommentLength),g=E.uint8array?"uint8array":"array",T=S.transformTo(g,_);this.zipComment=this.loadOptions.decodeFileName(T)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.versionMadeBy=this.reader.readString(2),this.versionNeeded=this.reader.readInt(2),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 _=this.zip64EndOfCentralSize-44,g=0,T,P,Y;g<_;)T=this.reader.readInt(2),P=this.reader.readInt(4),Y=this.reader.readString(P),this.zip64ExtensibleData[T]={id:T,length:P,value:Y}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,g;for(_=0;_<this.files.length;_++)g=this.files[_],this.reader.setIndex(g.localHeaderOffset),this.checkSignature($.LOCAL_FILE_HEADER),g.readLocalPart(this.reader),g.handleUTF8(),g.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readString(4)===$.CENTRAL_FILE_HEADER;)_=new J({zip64:this.zip64},this.loadOptions),_.readCentralPart(this.reader),this.files.push(_);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 _=this.reader.lastIndexOfSignature($.CENTRAL_DIRECTORY_END);if(_<0){var g=!this.isSignature(0,$.LOCAL_FILE_HEADER);throw g?new Error("Can't find end of central directory : is this a zip file ?"):new Error("Corrupted zip : can't find end of central directory")}this.reader.setIndex(_);var T=_;if(this.checkSignature($.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===S.MAX_VALUE_16BITS||this.diskWithCentralDirStart===S.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===S.MAX_VALUE_16BITS||this.centralDirRecords===S.MAX_VALUE_16BITS||this.centralDirSize===S.MAX_VALUE_32BITS||this.centralDirOffset===S.MAX_VALUE_32BITS){if(this.zip64=!0,_=this.reader.lastIndexOfSignature($.ZIP64_CENTRAL_DIRECTORY_LOCATOR),_<0)throw new Error("Corrupted zip : can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(_),this.checkSignature($.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,$.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature($.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($.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var P=this.centralDirOffset+this.centralDirSize;this.zip64&&(P+=20,P+=12+this.zip64EndOfCentralSize);var Y=T-P;if(Y>0)this.isSignature(T,$.CENTRAL_FILE_HEADER)||(this.reader.zero=Y);else if(Y<0)throw new Error("Corrupted zip: missing "+Math.abs(Y)+" bytes.")},prepareReader:function(_){var g=S.getTypeOf(_);if(S.checkSupport(g),g==="string"&&!E.uint8array)this.reader=new x(_,this.loadOptions.optimizedBinaryString);else if(g==="nodebuffer")this.reader=new D(_);else if(E.uint8array)this.reader=new C(S.transformTo("uint8array",_));else if(E.array)this.reader=new k(S.transformTo("array",_));else throw new Error("Unexpected error: unsupported type '"+g+"'")},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},$n=j,$n}var qn,Va;function vi(){if(Va)return qn;Va=1;var x=Sn(),D=Ra(),C=hr(),k=hi();return qn=function(S,$){var J,E;$=C.extend($||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:D.utf8decode}),$.base64&&(S=x.decode(S));var j=new k(S,$),w=j.files;for(J=0;J<w.length;J++)E=w[J],this.file(E.fileNameStr,E.decompressed,{binary:!0,optimizedBinaryString:!0,date:E.date,dir:E.dir,comment:E.fileCommentStr.length?E.fileCommentStr:null,unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions,createFolders:$.createFolders});return j.zipComment.length&&(this.comment=j.zipComment),this},qn}var We={},Ya;function pi(){if(Ya)return We;Ya=1;var x=hr();return We.string2binary=function(D){return x.string2binary(D)},We.string2Uint8Array=function(D){return x.transformTo("uint8array",D)},We.uint8Array2String=function(D){return x.transformTo("string",D)},We.string2Blob=function(D){var C=x.transformTo("arraybuffer",D);return x.arrayBuffer2Blob(C)},We.arrayBuffer2Blob=function(D){return x.arrayBuffer2Blob(D)},We.transformTo=function(D,C){return x.transformTo(D,C)},We.getTypeOf=function(D){return x.getTypeOf(D)},We.checkSupport=function(D){return x.checkSupport(D)},We.MAX_VALUE_16BITS=x.MAX_VALUE_16BITS,We.MAX_VALUE_32BITS=x.MAX_VALUE_32BITS,We.pretty=function(D){return x.pretty(D)},We.findCompression=function(D){return x.findCompression(D)},We.isRegExp=function(D){return x.isRegExp(D)},We}var Xa;function _i(){return Xa||(Xa=1,(function(x){var D=Sn();function C(k,S){if(!(this instanceof C))return new C(k,S);this.files={},this.comment=null,this.root="",k&&this.load(k,S),this.clone=function(){var $=this,J=new C;return Object.keys(this.files).forEach(function(E){J.file(E,$.files[E].asUint8Array())}),J},this.shallowClone=function(){var $=new C;for(var J in this)typeof this[J]!="function"&&($[J]=this[J]);return $}}C.prototype=Ia(),C.prototype.load=vi(),C.support=ot(),C.defaults=Ca(),C.utils=pi(),C.base64={encode:function(S){return D.encode(S)},decode:function(S){return D.decode(S)}},C.compressions=Rn(),x.exports=C,x.exports.default=C})(Fn)),Fn.exports}var mi=_i(),gi=pa(mi),Wn={exports:{}},wi={},yi=Object.freeze({__proto__:null,default:wi}),Vn=ai(yi),Ka;function bi(){return Ka||(Ka=1,(function(x,D){var C=(()=>{var S;var k=typeof document<"u"?(S=document.currentScript)==null?void 0:S.src:void 0;return typeof __filename<"u"&&(k=k||__filename),(function($={}){var J,E=$,j,w,_=new Promise((e,t)=>{j=e,w=t}),g=typeof window=="object",T=typeof importScripts=="function",P=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",Y=Object.assign({},E),ue="./this.program",Ie=(e,t)=>{throw t},ye="";function rr(e){return E.locateFile?E.locateFile(e,ye):ye+e}var Ve,ce;if(P){var vr=Vn,Sr=Vn;ye=__dirname+"/",ce=e=>{e=De(e)?new URL(e):Sr.normalize(e);var t=vr.readFileSync(e);return t},Ve=(e,t=!0)=>(e=De(e)?new URL(e):Sr.normalize(e),new Promise((a,i)=>{vr.readFile(e,t?void 0:"utf8",(l,f)=>{l?i(l):a(t?f.buffer:f)})})),!E.thisProgram&&process.argv.length>1&&(ue=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),Ie=(e,t)=>{throw process.exitCode=e,t}}else(g||T)&&(T?ye=self.location.href:typeof document<"u"&&document.currentScript&&(ye=document.currentScript.src),k&&(ye=k),ye.startsWith("blob:")?ye="":ye=ye.substr(0,ye.replace(/[?#].*/,"").lastIndexOf("/")+1),T&&(ce=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),Ve=e=>De(e)?new Promise((t,a)=>{var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=()=>{if(i.status==200||i.status==0&&i.response){t(i.response);return}a(i.status)},i.onerror=a,i.send(null)}):fetch(e,{credentials:"same-origin"}).then(t=>t.ok?t.arrayBuffer():Promise.reject(new Error(t.status+" : "+t.url))));var Ur=E.print||console.log.bind(console),Pe=E.printErr||console.error.bind(console);Object.assign(E,Y),Y=null,E.arguments&&E.arguments,E.thisProgram&&(ue=E.thisProgram);var Be=E.wasmBinary,Me,Kr=!1;function ft(e,t){e||pr(t)}var Ue,F,b,z,I,W,me,ge;function Ce(){var e=Me.buffer;E.HEAP8=Ue=new Int8Array(e),E.HEAP16=b=new Int16Array(e),E.HEAPU8=F=new Uint8Array(e),E.HEAPU16=z=new Uint16Array(e),E.HEAP32=I=new Int32Array(e),E.HEAPU32=W=new Uint32Array(e),E.HEAPF32=me=new Float32Array(e),E.HEAPF64=ge=new Float64Array(e)}var Re=[],Le=[],Ne=[],Ge=!1;function Dr(){var e=E.preRun;e&&(typeof e=="function"&&(e=[e]),e.forEach(K)),Lr(Re)}function Ee(){Ge=!0,!E.noFSInit&&!s.initialized&&s.init(),s.ignorePermissions=!1,Lr(Le)}function Ye(){var e=E.postRun;e&&(typeof e=="function"&&(e=[e]),e.forEach(Je)),Lr(Ne)}function K(e){Re.unshift(e)}function lr(e){Le.unshift(e)}function Je(e){Ne.unshift(e)}var je=0,Fe=null;function fr(e){return e}function xe(e){var t;je++,(t=E.monitorRunDependencies)==null||t.call(E,je)}function tr(e){var a;if(je--,(a=E.monitorRunDependencies)==null||a.call(E,je),je==0&&Fe){var t=Fe;Fe=null,t()}}function pr(e){var a;(a=E.onAbort)==null||a.call(E,e),e="Aborted("+e+")",Pe(e),Kr=!0,e+=". Build with -sASSERTIONS for more info.",Ge&&ri();var t=new WebAssembly.RuntimeError(e);throw w(t),t}var ke="data:application/octet-stream;base64,",Gr=e=>e.startsWith(ke),De=e=>e.startsWith("file://");function rn(){var e="occt-import-js.wasm";return Gr(e)?e:rr(e)}var Qe;function tn(e){if(e==Qe&&Be)return new Uint8Array(Be);if(ce)return ce(e);throw"both async and sync fetching of the wasm failed"}function Ft(e){return Be?Promise.resolve().then(()=>tn(e)):Ve(e).then(t=>new Uint8Array(t),()=>tn(e))}function nn(e,t,a){return Ft(e).then(i=>WebAssembly.instantiate(i,t)).then(a,i=>{Pe(`failed to asynchronously prepare wasm: ${i}`),pr(i)})}function Gn(e,t,a,i){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!Gr(t)&&!De(t)&&!P&&typeof fetch=="function"?fetch(t,{credentials:"same-origin"}).then(l=>{var f=WebAssembly.instantiateStreaming(l,a);return f.then(i,function(c){return Pe(`wasm streaming compile failed: ${c}`),Pe("falling back to ArrayBuffer instantiation"),nn(t,a,i)})}):nn(t,a,i)}function ut(){return{a:qi}}function Jn(){var e=ut();function t(i,l){return He=i.exports,Me=He._,Ce(),Ae=He.ba,lr(He.$),tr(),He}xe();function a(i){t(i.instance)}if(E.instantiateWasm)try{return E.instantiateWasm(e,t)}catch(i){Pe(`Module.instantiateWasm callback failed with error: ${i}`),w(i)}return Qe??(Qe=rn()),Gn(Be,Qe,e,a).catch(w),{}}var le,ze;function Qn(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var Lr=e=>{e.forEach(t=>t(E))};E.noExitRuntime;var he={isAbs:e=>e.charAt(0)==="/",splitPath:e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return t.exec(e).slice(1)},normalizeArray:(e,t)=>{for(var a=0,i=e.length-1;i>=0;i--){var l=e[i];l==="."?e.splice(i,1):l===".."?(e.splice(i,1),a++):a&&(e.splice(i,1),a--)}if(t)for(;a;a--)e.unshift("..");return e},normalize:e=>{var t=he.isAbs(e),a=e.substr(-1)==="/";return e=he.normalizeArray(e.split("/").filter(i=>!!i),!t).join("/"),!e&&!t&&(e="."),e&&a&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=he.splitPath(e),a=t[0],i=t[1];return!a&&!i?".":(i&&(i=i.substr(0,i.length-1)),a+i)},basename:e=>{if(e==="/")return"/";e=he.normalize(e),e=e.replace(/\/$/,"");var t=e.lastIndexOf("/");return t===-1?e:e.substr(t+1)},join:(...e)=>he.normalize(e.join("/")),join2:(e,t)=>he.normalize(e+"/"+t)},ur=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return i=>crypto.getRandomValues(i);if(P)try{var e=Vn,t=e.randomFillSync;if(t)return i=>e.randomFillSync(i);var a=e.randomBytes;return i=>(i.set(a(i.byteLength)),i)}catch{}pr("initRandomDevice")},Br=e=>(Br=ur())(e),Ze={resolve:(...e)=>{for(var t="",a=!1,i=e.length-1;i>=-1&&!a;i--){var l=i>=0?e[i]:s.cwd();if(typeof l!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!l)return"";t=l+"/"+t,a=he.isAbs(l)}return t=he.normalizeArray(t.split("/").filter(f=>!!f),!a).join("/"),(a?"/":"")+t||"."},relative:(e,t)=>{e=Ze.resolve(e).substr(1),t=Ze.resolve(t).substr(1);function a(O){for(var Z=0;Z<O.length&&O[Z]==="";Z++);for(var q=O.length-1;q>=0&&O[q]==="";q--);return Z>q?[]:O.slice(Z,q-Z+1)}for(var i=a(e.split("/")),l=a(t.split("/")),f=Math.min(i.length,l.length),c=f,v=0;v<f;v++)if(i[v]!==l[v]){c=v;break}for(var A=[],v=c;v<i.length;v++)A.push("..");return A=A.concat(l.slice(c)),A.join("/")}},Mr=typeof TextDecoder<"u"?new TextDecoder:void 0,er=(e,t=0,a=NaN)=>{for(var i=t+a,l=t;e[l]&&!(l>=i);)++l;if(l-t>16&&e.buffer&&Mr)return Mr.decode(e.subarray(t,l));for(var f="";t<l;){var c=e[t++];if(!(c&128)){f+=String.fromCharCode(c);continue}var v=e[t++]&63;if((c&224)==192){f+=String.fromCharCode((c&31)<<6|v);continue}var A=e[t++]&63;if((c&240)==224?c=(c&15)<<12|v<<6|A:c=(c&7)<<18|v<<12|A<<6|e[t++]&63,c<65536)f+=String.fromCharCode(c);else{var O=c-65536;f+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return f},dt=[],nr=e=>{for(var t=0,a=0;a<e.length;++a){var i=e.charCodeAt(a);i<=127?t++:i<=2047?t+=2:i>=55296&&i<=57343?(t+=4,++a):t+=3}return t},St=(e,t,a,i)=>{if(!(i>0))return 0;for(var l=a,f=a+i-1,c=0;c<e.length;++c){var v=e.charCodeAt(c);if(v>=55296&&v<=57343){var A=e.charCodeAt(++c);v=65536+((v&1023)<<10)|A&1023}if(v<=127){if(a>=f)break;t[a++]=v}else if(v<=2047){if(a+1>=f)break;t[a++]=192|v>>6,t[a++]=128|v&63}else if(v<=65535){if(a+2>=f)break;t[a++]=224|v>>12,t[a++]=128|v>>6&63,t[a++]=128|v&63}else{if(a+3>=f)break;t[a++]=240|v>>18,t[a++]=128|v>>12&63,t[a++]=128|v>>6&63,t[a++]=128|v&63}}return t[a]=0,a-l};function _r(e,t,a){var i=nr(e)+1,l=new Array(i),f=St(e,l,0,l.length);return l.length=f,l}var Xe=()=>{if(!dt.length){var e=null;if(P){var t=256,a=Buffer.alloc(t),i=0,l=process.stdin.fd;try{i=vr.readSync(l,a,0,t)}catch(f){if(f.toString().includes("EOF"))i=0;else throw f}i>0&&(e=a.slice(0,i).toString("utf-8"))}else typeof window<"u"&&typeof window.prompt=="function"&&(e=window.prompt("Input: "),e!==null&&(e+=`
4
+ `));if(!e)return null;dt=_r(e)}return dt.shift()},Te={ttys:[],init(){},shutdown(){},register(e,t){Te.ttys[e]={input:[],output:[],ops:t},s.registerDevice(e,Te.stream_ops)},stream_ops:{open(e){var t=Te.ttys[e.node.rdev];if(!t)throw new s.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,a,i,l){if(!e.tty||!e.tty.ops.get_char)throw new s.ErrnoError(60);for(var f=0,c=0;c<i;c++){var v;try{v=e.tty.ops.get_char(e.tty)}catch{throw new s.ErrnoError(29)}if(v===void 0&&f===0)throw new s.ErrnoError(6);if(v==null)break;f++,t[a+c]=v}return f&&(e.node.timestamp=Date.now()),f},write(e,t,a,i,l){if(!e.tty||!e.tty.ops.put_char)throw new s.ErrnoError(60);try{for(var f=0;f<i;f++)e.tty.ops.put_char(e.tty,t[a+f])}catch{throw new s.ErrnoError(29)}return i&&(e.node.timestamp=Date.now()),f}},default_tty_ops:{get_char(e){return Xe()},put_char(e,t){t===null||t===10?(Ur(er(e.output)),e.output=[]):t!=0&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(Ur(er(e.output)),e.output=[])},ioctl_tcgets(e){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets(e,t,a){return 0},ioctl_tiocgwinsz(e){return[24,80]}},default_tty1_ops:{put_char(e,t){t===null||t===10?(Pe(er(e.output)),e.output=[]):t!=0&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(Pe(er(e.output)),e.output=[])}}},_e=(e,t)=>{F.fill(0,e,e+t)},Nr=(e,t)=>Math.ceil(e/t)*t,ct=e=>{e=Nr(e,65536);var t=ei(65536,e);return t&&_e(t,e),t},te={ops_table:null,mount(e){return te.createNode(null,"/",16895,0)},createNode(e,t,a,i){if(s.isBlkdev(a)||s.isFIFO(a))throw new s.ErrnoError(63);te.ops_table||(te.ops_table={dir:{node:{getattr:te.node_ops.getattr,setattr:te.node_ops.setattr,lookup:te.node_ops.lookup,mknod:te.node_ops.mknod,rename:te.node_ops.rename,unlink:te.node_ops.unlink,rmdir:te.node_ops.rmdir,readdir:te.node_ops.readdir,symlink:te.node_ops.symlink},stream:{llseek:te.stream_ops.llseek}},file:{node:{getattr:te.node_ops.getattr,setattr:te.node_ops.setattr},stream:{llseek:te.stream_ops.llseek,read:te.stream_ops.read,write:te.stream_ops.write,allocate:te.stream_ops.allocate,mmap:te.stream_ops.mmap,msync:te.stream_ops.msync}},link:{node:{getattr:te.node_ops.getattr,setattr:te.node_ops.setattr,readlink:te.node_ops.readlink},stream:{}},chrdev:{node:{getattr:te.node_ops.getattr,setattr:te.node_ops.setattr},stream:s.chrdev_stream_ops}});var l=s.createNode(e,t,a,i);return s.isDir(l.mode)?(l.node_ops=te.ops_table.dir.node,l.stream_ops=te.ops_table.dir.stream,l.contents={}):s.isFile(l.mode)?(l.node_ops=te.ops_table.file.node,l.stream_ops=te.ops_table.file.stream,l.usedBytes=0,l.contents=null):s.isLink(l.mode)?(l.node_ops=te.ops_table.link.node,l.stream_ops=te.ops_table.link.stream):s.isChrdev(l.mode)&&(l.node_ops=te.ops_table.chrdev.node,l.stream_ops=te.ops_table.chrdev.stream),l.timestamp=Date.now(),e&&(e.contents[t]=l,e.timestamp=l.timestamp),l},getFileDataAsTypedArray(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage(e,t){var a=e.contents?e.contents.length:0;if(!(a>=t)){var i=1024*1024;t=Math.max(t,a*(a<i?2:1.125)>>>0),a!=0&&(t=Math.max(t,256));var l=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(l.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(t==0)e.contents=null,e.usedBytes=0;else{var a=e.contents;e.contents=new Uint8Array(t),a&&e.contents.set(a.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=s.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,s.isDir(e.mode)?t.size=4096:s.isFile(e.mode)?t.size=e.usedBytes:s.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){t.mode!==void 0&&(e.mode=t.mode),t.timestamp!==void 0&&(e.timestamp=t.timestamp),t.size!==void 0&&te.resizeFileStorage(e,t.size)},lookup(e,t){throw s.genericErrors[44]},mknod(e,t,a,i){return te.createNode(e,t,a,i)},rename(e,t,a){if(s.isDir(e.mode)){var i;try{i=s.lookupNode(t,a)}catch{}if(i)for(var l in i.contents)throw new s.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=a,t.contents[a]=e,t.timestamp=e.parent.timestamp},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var a=s.lookupNode(e,t);for(var i in a.contents)throw new s.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var a of Object.keys(e.contents))t.push(a);return t},symlink(e,t,a){var i=te.createNode(e,t,41471,0);return i.link=a,i},readlink(e){if(!s.isLink(e.mode))throw new s.ErrnoError(28);return e.link}},stream_ops:{read(e,t,a,i,l){var f=e.node.contents;if(l>=e.node.usedBytes)return 0;var c=Math.min(e.node.usedBytes-l,i);if(c>8&&f.subarray)t.set(f.subarray(l,l+c),a);else for(var v=0;v<c;v++)t[a+v]=f[l+v];return c},write(e,t,a,i,l,f){if(t.buffer===Ue.buffer&&(f=!1),!i)return 0;var c=e.node;if(c.timestamp=Date.now(),t.subarray&&(!c.contents||c.contents.subarray)){if(f)return c.contents=t.subarray(a,a+i),c.usedBytes=i,i;if(c.usedBytes===0&&l===0)return c.contents=t.slice(a,a+i),c.usedBytes=i,i;if(l+i<=c.usedBytes)return c.contents.set(t.subarray(a,a+i),l),i}if(te.expandFileStorage(c,l+i),c.contents.subarray&&t.subarray)c.contents.set(t.subarray(a,a+i),l);else for(var v=0;v<i;v++)c.contents[l+v]=t[a+v];return c.usedBytes=Math.max(c.usedBytes,l+i),i},llseek(e,t,a){var i=t;if(a===1?i+=e.position:a===2&&s.isFile(e.node.mode)&&(i+=e.node.usedBytes),i<0)throw new s.ErrnoError(28);return i},allocate(e,t,a){te.expandFileStorage(e.node,t+a),e.node.usedBytes=Math.max(e.node.usedBytes,t+a)},mmap(e,t,a,i,l){if(!s.isFile(e.node.mode))throw new s.ErrnoError(43);var f,c,v=e.node.contents;if(!(l&2)&&v&&v.buffer===Ue.buffer)c=!1,f=v.byteOffset;else{if(c=!0,f=ct(t),!f)throw new s.ErrnoError(48);v&&((a>0||a+t<v.length)&&(v.subarray?v=v.subarray(a,a+t):v=Array.prototype.slice.call(v,a,a+t)),Ue.set(v,f))}return{ptr:f,allocated:c}},msync(e,t,a,i,l){return te.stream_ops.write(e,t,0,i,a,!1),0}}},jr=(e,t,a,i)=>{var l=`al ${e}`;Ve(e).then(f=>{t(new Uint8Array(f)),l&&tr()},f=>{if(a)a();else throw`Loading data file "${e}" failed.`}),l&&xe()},an=(e,t,a,i,l,f)=>{s.createDataFile(e,t,a,i,l,f)},Bt=E.preloadPlugins||[],Zr=(e,t,a,i)=>{typeof Browser<"u"&&Browser.init();var l=!1;return Bt.forEach(f=>{l||f.canHandle(t)&&(f.handle(e,t,a,i),l=!0)}),l},dr=(e,t,a,i,l,f,c,v,A,O)=>{var Z=t?Ze.resolve(he.join2(e,t)):e;function q(re){function V(ae){O==null||O(),v||an(e,t,ae,i,l,A),f==null||f(),tr()}Zr(re,Z,V,()=>{c==null||c(),tr()})||V(re)}xe(),typeof a=="string"?jr(a,q,c):q(a)},Jr=e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},a=t[e];if(typeof a>"u")throw new Error(`Unknown file open mode: ${e}`);return a},Rt=(e,t)=>{var a=0;return e&&(a|=365),t&&(a|=146),a},s={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(e){this.name="ErrnoError",this.errno=e}},genericErrors:{},filesystems:null,syncFSRequests:0,readFiles:{},FSStream:class{constructor(){this.shared={}}get object(){return this.node}set object(e){this.node=e}get isRead(){return(this.flags&2097155)!==1}get isWrite(){return(this.flags&2097155)!==0}get isAppend(){return this.flags&1024}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{constructor(e,t,a,i){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=s.nextInode++,this.name=t,this.mode=a,this.node_ops={},this.stream_ops={},this.rdev=i,this.readMode=365,this.writeMode=146}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return s.isDir(this.mode)}get isDevice(){return s.isChrdev(this.mode)}},lookupPath(e,t={}){if(e=Ze.resolve(e),!e)return{path:"",node:null};var a={follow_mount:!0,recurse_count:0};if(t=Object.assign(a,t),t.recurse_count>8)throw new s.ErrnoError(32);for(var i=e.split("/").filter(q=>!!q),l=s.root,f="/",c=0;c<i.length;c++){var v=c===i.length-1;if(v&&t.parent)break;if(l=s.lookupNode(l,i[c]),f=he.join2(f,i[c]),s.isMountpoint(l)&&(!v||v&&t.follow_mount)&&(l=l.mounted.root),!v||t.follow)for(var A=0;s.isLink(l.mode);){var O=s.readlink(f);f=Ze.resolve(he.dirname(f),O);var Z=s.lookupPath(f,{recurse_count:t.recurse_count+1});if(l=Z.node,A++>40)throw new s.ErrnoError(32)}}return{path:f,node:l}},getPath(e){for(var t;;){if(s.isRoot(e)){var a=e.mount.mountpoint;return t?a[a.length-1]!=="/"?`${a}/${t}`:a+t:a}t=t?`${e.name}/${t}`:e.name,e=e.parent}},hashName(e,t){for(var a=0,i=0;i<t.length;i++)a=(a<<5)-a+t.charCodeAt(i)|0;return(e+a>>>0)%s.nameTable.length},hashAddNode(e){var t=s.hashName(e.parent.id,e.name);e.name_next=s.nameTable[t],s.nameTable[t]=e},hashRemoveNode(e){var t=s.hashName(e.parent.id,e.name);if(s.nameTable[t]===e)s.nameTable[t]=e.name_next;else for(var a=s.nameTable[t];a;){if(a.name_next===e){a.name_next=e.name_next;break}a=a.name_next}},lookupNode(e,t){var a=s.mayLookup(e);if(a)throw new s.ErrnoError(a);for(var i=s.hashName(e.id,t),l=s.nameTable[i];l;l=l.name_next){var f=l.name;if(l.parent.id===e.id&&f===t)return l}return s.lookup(e,t)},createNode(e,t,a,i){var l=new s.FSNode(e,t,a,i);return s.hashAddNode(l),l},destroyNode(e){s.hashRemoveNode(e)},isRoot(e){return e===e.parent},isMountpoint(e){return!!e.mounted},isFile(e){return(e&61440)===32768},isDir(e){return(e&61440)===16384},isLink(e){return(e&61440)===40960},isChrdev(e){return(e&61440)===8192},isBlkdev(e){return(e&61440)===24576},isFIFO(e){return(e&61440)===4096},isSocket(e){return(e&49152)===49152},flagsToPermissionString(e){var t=["r","w","rw"][e&3];return e&512&&(t+="w"),t},nodePermissions(e,t){return s.ignorePermissions?0:t.includes("r")&&!(e.mode&292)||t.includes("w")&&!(e.mode&146)||t.includes("x")&&!(e.mode&73)?2:0},mayLookup(e){if(!s.isDir(e.mode))return 54;var t=s.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate(e,t){try{var a=s.lookupNode(e,t);return 20}catch{}return s.nodePermissions(e,"wx")},mayDelete(e,t,a){var i;try{i=s.lookupNode(e,t)}catch(f){return f.errno}var l=s.nodePermissions(e,"wx");if(l)return l;if(a){if(!s.isDir(i.mode))return 54;if(s.isRoot(i)||s.getPath(i)===s.cwd())return 10}else if(s.isDir(i.mode))return 31;return 0},mayOpen(e,t){return e?s.isLink(e.mode)?32:s.isDir(e.mode)&&(s.flagsToPermissionString(t)!=="r"||t&512)?31:s.nodePermissions(e,s.flagsToPermissionString(t)):44},MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=s.MAX_OPEN_FDS;e++)if(!s.streams[e])return e;throw new s.ErrnoError(33)},getStreamChecked(e){var t=s.getStream(e);if(!t)throw new s.ErrnoError(8);return t},getStream:e=>s.streams[e],createStream(e,t=-1){return e=Object.assign(new s.FSStream,e),t==-1&&(t=s.nextfd()),e.fd=t,s.streams[t]=e,e},closeStream(e){s.streams[e]=null},dupStream(e,t=-1){var i,l;var a=s.createStream(e,t);return(l=(i=a.stream_ops)==null?void 0:i.dup)==null||l.call(i,a),a},chrdev_stream_ops:{open(e){var a,i;var t=s.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,(i=(a=e.stream_ops).open)==null||i.call(a,e)},llseek(){throw new s.ErrnoError(70)}},major:e=>e>>8,minor:e=>e&255,makedev:(e,t)=>e<<8|t,registerDevice(e,t){s.devices[e]={stream_ops:t}},getDevice:e=>s.devices[e],getMounts(e){for(var t=[],a=[e];a.length;){var i=a.pop();t.push(i),a.push(...i.mounts)}return t},syncfs(e,t){typeof e=="function"&&(t=e,e=!1),s.syncFSRequests++,s.syncFSRequests>1&&Pe(`warning: ${s.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var a=s.getMounts(s.root.mount),i=0;function l(c){return s.syncFSRequests--,t(c)}function f(c){if(c)return f.errored?void 0:(f.errored=!0,l(c));++i>=a.length&&l(null)}a.forEach(c=>{if(!c.type.syncfs)return f(null);c.type.syncfs(c,e,f)})},mount(e,t,a){var i=a==="/",l=!a,f;if(i&&s.root)throw new s.ErrnoError(10);if(!i&&!l){var c=s.lookupPath(a,{follow_mount:!1});if(a=c.path,f=c.node,s.isMountpoint(f))throw new s.ErrnoError(10);if(!s.isDir(f.mode))throw new s.ErrnoError(54)}var v={type:e,opts:t,mountpoint:a,mounts:[]},A=e.mount(v);return A.mount=v,v.root=A,i?s.root=A:f&&(f.mounted=v,f.mount&&f.mount.mounts.push(v)),A},unmount(e){var t=s.lookupPath(e,{follow_mount:!1});if(!s.isMountpoint(t.node))throw new s.ErrnoError(28);var a=t.node,i=a.mounted,l=s.getMounts(i);Object.keys(s.nameTable).forEach(c=>{for(var v=s.nameTable[c];v;){var A=v.name_next;l.includes(v.mount)&&s.destroyNode(v),v=A}}),a.mounted=null;var f=a.mount.mounts.indexOf(i);a.mount.mounts.splice(f,1)},lookup(e,t){return e.node_ops.lookup(e,t)},mknod(e,t,a){var i=s.lookupPath(e,{parent:!0}),l=i.node,f=he.basename(e);if(!f||f==="."||f==="..")throw new s.ErrnoError(28);var c=s.mayCreate(l,f);if(c)throw new s.ErrnoError(c);if(!l.node_ops.mknod)throw new s.ErrnoError(63);return l.node_ops.mknod(l,f,t,a)},create(e,t){return t=t!==void 0?t:438,t&=4095,t|=32768,s.mknod(e,t,0)},mkdir(e,t){return t=t!==void 0?t:511,t&=1023,t|=16384,s.mknod(e,t,0)},mkdirTree(e,t){for(var a=e.split("/"),i="",l=0;l<a.length;++l)if(a[l]){i+="/"+a[l];try{s.mkdir(i,t)}catch(f){if(f.errno!=20)throw f}}},mkdev(e,t,a){return typeof a>"u"&&(a=t,t=438),t|=8192,s.mknod(e,t,a)},symlink(e,t){if(!Ze.resolve(e))throw new s.ErrnoError(44);var a=s.lookupPath(t,{parent:!0}),i=a.node;if(!i)throw new s.ErrnoError(44);var l=he.basename(t),f=s.mayCreate(i,l);if(f)throw new s.ErrnoError(f);if(!i.node_ops.symlink)throw new s.ErrnoError(63);return i.node_ops.symlink(i,l,e)},rename(e,t){var a=he.dirname(e),i=he.dirname(t),l=he.basename(e),f=he.basename(t),c,v,A;if(c=s.lookupPath(e,{parent:!0}),v=c.node,c=s.lookupPath(t,{parent:!0}),A=c.node,!v||!A)throw new s.ErrnoError(44);if(v.mount!==A.mount)throw new s.ErrnoError(75);var O=s.lookupNode(v,l),Z=Ze.relative(e,i);if(Z.charAt(0)!==".")throw new s.ErrnoError(28);if(Z=Ze.relative(t,a),Z.charAt(0)!==".")throw new s.ErrnoError(55);var q;try{q=s.lookupNode(A,f)}catch{}if(O!==q){var re=s.isDir(O.mode),V=s.mayDelete(v,l,re);if(V)throw new s.ErrnoError(V);if(V=q?s.mayDelete(A,f,re):s.mayCreate(A,f),V)throw new s.ErrnoError(V);if(!v.node_ops.rename)throw new s.ErrnoError(63);if(s.isMountpoint(O)||q&&s.isMountpoint(q))throw new s.ErrnoError(10);if(A!==v&&(V=s.nodePermissions(v,"w"),V))throw new s.ErrnoError(V);s.hashRemoveNode(O);try{v.node_ops.rename(O,A,f),O.parent=A}catch(ae){throw ae}finally{s.hashAddNode(O)}}},rmdir(e){var t=s.lookupPath(e,{parent:!0}),a=t.node,i=he.basename(e),l=s.lookupNode(a,i),f=s.mayDelete(a,i,!0);if(f)throw new s.ErrnoError(f);if(!a.node_ops.rmdir)throw new s.ErrnoError(63);if(s.isMountpoint(l))throw new s.ErrnoError(10);a.node_ops.rmdir(a,i),s.destroyNode(l)},readdir(e){var t=s.lookupPath(e,{follow:!0}),a=t.node;if(!a.node_ops.readdir)throw new s.ErrnoError(54);return a.node_ops.readdir(a)},unlink(e){var t=s.lookupPath(e,{parent:!0}),a=t.node;if(!a)throw new s.ErrnoError(44);var i=he.basename(e),l=s.lookupNode(a,i),f=s.mayDelete(a,i,!1);if(f)throw new s.ErrnoError(f);if(!a.node_ops.unlink)throw new s.ErrnoError(63);if(s.isMountpoint(l))throw new s.ErrnoError(10);a.node_ops.unlink(a,i),s.destroyNode(l)},readlink(e){var t=s.lookupPath(e),a=t.node;if(!a)throw new s.ErrnoError(44);if(!a.node_ops.readlink)throw new s.ErrnoError(28);return Ze.resolve(s.getPath(a.parent),a.node_ops.readlink(a))},stat(e,t){var a=s.lookupPath(e,{follow:!t}),i=a.node;if(!i)throw new s.ErrnoError(44);if(!i.node_ops.getattr)throw new s.ErrnoError(63);return i.node_ops.getattr(i)},lstat(e){return s.stat(e,!0)},chmod(e,t,a){var i;if(typeof e=="string"){var l=s.lookupPath(e,{follow:!a});i=l.node}else i=e;if(!i.node_ops.setattr)throw new s.ErrnoError(63);i.node_ops.setattr(i,{mode:t&4095|i.mode&-4096,timestamp:Date.now()})},lchmod(e,t){s.chmod(e,t,!0)},fchmod(e,t){var a=s.getStreamChecked(e);s.chmod(a.node,t)},chown(e,t,a,i){var l;if(typeof e=="string"){var f=s.lookupPath(e,{follow:!i});l=f.node}else l=e;if(!l.node_ops.setattr)throw new s.ErrnoError(63);l.node_ops.setattr(l,{timestamp:Date.now()})},lchown(e,t,a){s.chown(e,t,a,!0)},fchown(e,t,a){var i=s.getStreamChecked(e);s.chown(i.node,t,a)},truncate(e,t){if(t<0)throw new s.ErrnoError(28);var a;if(typeof e=="string"){var i=s.lookupPath(e,{follow:!0});a=i.node}else a=e;if(!a.node_ops.setattr)throw new s.ErrnoError(63);if(s.isDir(a.mode))throw new s.ErrnoError(31);if(!s.isFile(a.mode))throw new s.ErrnoError(28);var l=s.nodePermissions(a,"w");if(l)throw new s.ErrnoError(l);a.node_ops.setattr(a,{size:t,timestamp:Date.now()})},ftruncate(e,t){var a=s.getStreamChecked(e);if((a.flags&2097155)===0)throw new s.ErrnoError(28);s.truncate(a.node,t)},utime(e,t,a){var i=s.lookupPath(e,{follow:!0}),l=i.node;l.node_ops.setattr(l,{timestamp:Math.max(t,a)})},open(e,t,a){if(e==="")throw new s.ErrnoError(44);t=typeof t=="string"?Jr(t):t,t&64?(a=typeof a>"u"?438:a,a=a&4095|32768):a=0;var i;if(typeof e=="object")i=e;else{e=he.normalize(e);try{var l=s.lookupPath(e,{follow:!(t&131072)});i=l.node}catch{}}var f=!1;if(t&64)if(i){if(t&128)throw new s.ErrnoError(20)}else i=s.mknod(e,a,0),f=!0;if(!i)throw new s.ErrnoError(44);if(s.isChrdev(i.mode)&&(t&=-513),t&65536&&!s.isDir(i.mode))throw new s.ErrnoError(54);if(!f){var c=s.mayOpen(i,t);if(c)throw new s.ErrnoError(c)}t&512&&!f&&s.truncate(i,0),t&=-131713;var v=s.createStream({node:i,path:s.getPath(i),flags:t,seekable:!0,position:0,stream_ops:i.stream_ops,ungotten:[],error:!1});return v.stream_ops.open&&v.stream_ops.open(v),E.logReadFiles&&!(t&1)&&(e in s.readFiles||(s.readFiles[e]=1)),v},close(e){if(s.isClosed(e))throw new s.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(t){throw t}finally{s.closeStream(e.fd)}e.fd=null},isClosed(e){return e.fd===null},llseek(e,t,a){if(s.isClosed(e))throw new s.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new s.ErrnoError(70);if(a!=0&&a!=1&&a!=2)throw new s.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,a),e.ungotten=[],e.position},read(e,t,a,i,l){if(i<0||l<0)throw new s.ErrnoError(28);if(s.isClosed(e))throw new s.ErrnoError(8);if((e.flags&2097155)===1)throw new s.ErrnoError(8);if(s.isDir(e.node.mode))throw new s.ErrnoError(31);if(!e.stream_ops.read)throw new s.ErrnoError(28);var f=typeof l<"u";if(!f)l=e.position;else if(!e.seekable)throw new s.ErrnoError(70);var c=e.stream_ops.read(e,t,a,i,l);return f||(e.position+=c),c},write(e,t,a,i,l,f){if(i<0||l<0)throw new s.ErrnoError(28);if(s.isClosed(e))throw new s.ErrnoError(8);if((e.flags&2097155)===0)throw new s.ErrnoError(8);if(s.isDir(e.node.mode))throw new s.ErrnoError(31);if(!e.stream_ops.write)throw new s.ErrnoError(28);e.seekable&&e.flags&1024&&s.llseek(e,0,2);var c=typeof l<"u";if(!c)l=e.position;else if(!e.seekable)throw new s.ErrnoError(70);var v=e.stream_ops.write(e,t,a,i,l,f);return c||(e.position+=v),v},allocate(e,t,a){if(s.isClosed(e))throw new s.ErrnoError(8);if(t<0||a<=0)throw new s.ErrnoError(28);if((e.flags&2097155)===0)throw new s.ErrnoError(8);if(!s.isFile(e.node.mode)&&!s.isDir(e.node.mode))throw new s.ErrnoError(43);if(!e.stream_ops.allocate)throw new s.ErrnoError(138);e.stream_ops.allocate(e,t,a)},mmap(e,t,a,i,l){if((i&2)!==0&&(l&2)===0&&(e.flags&2097155)!==2)throw new s.ErrnoError(2);if((e.flags&2097155)===1)throw new s.ErrnoError(2);if(!e.stream_ops.mmap)throw new s.ErrnoError(43);if(!t)throw new s.ErrnoError(28);return e.stream_ops.mmap(e,t,a,i,l)},msync(e,t,a,i,l){return e.stream_ops.msync?e.stream_ops.msync(e,t,a,i,l):0},ioctl(e,t,a){if(!e.stream_ops.ioctl)throw new s.ErrnoError(59);return e.stream_ops.ioctl(e,t,a)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary",t.encoding!=="utf8"&&t.encoding!=="binary")throw new Error(`Invalid encoding type "${t.encoding}"`);var a,i=s.open(e,t.flags),l=s.stat(e),f=l.size,c=new Uint8Array(f);return s.read(i,c,0,f,0),t.encoding==="utf8"?a=er(c):t.encoding==="binary"&&(a=c),s.close(i),a},writeFile(e,t,a={}){a.flags=a.flags||577;var i=s.open(e,a.flags,a.mode);if(typeof t=="string"){var l=new Uint8Array(nr(t)+1),f=St(t,l,0,l.length);s.write(i,l,0,f,void 0,a.canOwn)}else if(ArrayBuffer.isView(t))s.write(i,t,0,t.byteLength,void 0,a.canOwn);else throw new Error("Unsupported data type");s.close(i)},cwd:()=>s.currentPath,chdir(e){var t=s.lookupPath(e,{follow:!0});if(t.node===null)throw new s.ErrnoError(44);if(!s.isDir(t.node.mode))throw new s.ErrnoError(54);var a=s.nodePermissions(t.node,"x");if(a)throw new s.ErrnoError(a);s.currentPath=t.path},createDefaultDirectories(){s.mkdir("/tmp"),s.mkdir("/home"),s.mkdir("/home/web_user")},createDefaultDevices(){s.mkdir("/dev"),s.registerDevice(s.makedev(1,3),{read:()=>0,write:(i,l,f,c,v)=>c}),s.mkdev("/dev/null",s.makedev(1,3)),Te.register(s.makedev(5,0),Te.default_tty_ops),Te.register(s.makedev(6,0),Te.default_tty1_ops),s.mkdev("/dev/tty",s.makedev(5,0)),s.mkdev("/dev/tty1",s.makedev(6,0));var e=new Uint8Array(1024),t=0,a=()=>(t===0&&(t=Br(e).byteLength),e[--t]);s.createDevice("/dev","random",a),s.createDevice("/dev","urandom",a),s.mkdir("/dev/shm"),s.mkdir("/dev/shm/tmp")},createSpecialDirectories(){s.mkdir("/proc");var e=s.mkdir("/proc/self");s.mkdir("/proc/self/fd"),s.mount({mount(){var t=s.createNode(e,"fd",16895,73);return t.node_ops={lookup(a,i){var l=+i,f=s.getStreamChecked(l),c={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>f.path}};return c.parent=c,c}},t}},{},"/proc/self/fd")},createStandardStreams(e,t,a){e?s.createDevice("/dev","stdin",e):s.symlink("/dev/tty","/dev/stdin"),t?s.createDevice("/dev","stdout",null,t):s.symlink("/dev/tty","/dev/stdout"),a?s.createDevice("/dev","stderr",null,a):s.symlink("/dev/tty1","/dev/stderr"),s.open("/dev/stdin",0),s.open("/dev/stdout",1),s.open("/dev/stderr",1)},staticInit(){[44].forEach(e=>{s.genericErrors[e]=new s.ErrnoError(e),s.genericErrors[e].stack="<generic error, no stack>"}),s.nameTable=new Array(4096),s.mount(te,{},"/"),s.createDefaultDirectories(),s.createDefaultDevices(),s.createSpecialDirectories(),s.filesystems={MEMFS:te}},init(e,t,a){s.initialized=!0,e??(e=E.stdin),t??(t=E.stdout),a??(a=E.stderr),s.createStandardStreams(e,t,a)},quit(){s.initialized=!1;for(var e=0;e<s.streams.length;e++){var t=s.streams[e];t&&s.close(t)}},findObject(e,t){var a=s.analyzePath(e,t);return a.exists?a.object:null},analyzePath(e,t){try{var a=s.lookupPath(e,{follow:!t});e=a.path}catch{}var i={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var a=s.lookupPath(e,{parent:!0});i.parentExists=!0,i.parentPath=a.path,i.parentObject=a.node,i.name=he.basename(e),a=s.lookupPath(e,{follow:!t}),i.exists=!0,i.path=a.path,i.object=a.node,i.name=a.node.name,i.isRoot=a.path==="/"}catch(l){i.error=l.errno}return i},createPath(e,t,a,i){e=typeof e=="string"?e:s.getPath(e);for(var l=t.split("/").reverse();l.length;){var f=l.pop();if(f){var c=he.join2(e,f);try{s.mkdir(c)}catch{}e=c}}return c},createFile(e,t,a,i,l){var f=he.join2(typeof e=="string"?e:s.getPath(e),t),c=Rt(i,l);return s.create(f,c)},createDataFile(e,t,a,i,l,f){var c=t;e&&(e=typeof e=="string"?e:s.getPath(e),c=t?he.join2(e,t):e);var v=Rt(i,l),A=s.create(c,v);if(a){if(typeof a=="string"){for(var O=new Array(a.length),Z=0,q=a.length;Z<q;++Z)O[Z]=a.charCodeAt(Z);a=O}s.chmod(A,v|146);var re=s.open(A,577);s.write(re,a,0,a.length,0,f),s.close(re),s.chmod(A,v)}},createDevice(e,t,a,i){var v;var l=he.join2(typeof e=="string"?e:s.getPath(e),t),f=Rt(!!a,!!i);(v=s.createDevice).major??(v.major=64);var c=s.makedev(s.createDevice.major++,0);return s.registerDevice(c,{open(A){A.seekable=!1},close(A){var O;(O=i==null?void 0:i.buffer)!=null&&O.length&&i(10)},read(A,O,Z,q,re){for(var V=0,ae=0;ae<q;ae++){var pe;try{pe=a()}catch{throw new s.ErrnoError(29)}if(pe===void 0&&V===0)throw new s.ErrnoError(6);if(pe==null)break;V++,O[Z+ae]=pe}return V&&(A.node.timestamp=Date.now()),V},write(A,O,Z,q,re){for(var V=0;V<q;V++)try{i(O[Z+V])}catch{throw new s.ErrnoError(29)}return q&&(A.node.timestamp=Date.now()),V}}),s.mkdev(l,f,c)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if(typeof XMLHttpRequest<"u")throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");try{e.contents=ce(e.url),e.usedBytes=e.contents.length}catch{throw new s.ErrnoError(29)}},createLazyFile(e,t,a,i,l){class f{constructor(){this.lengthKnown=!1,this.chunks=[]}get(V){if(!(V>this.length-1||V<0)){var ae=V%this.chunkSize,pe=V/this.chunkSize|0;return this.getter(pe)[ae]}}setDataGetter(V){this.getter=V}cacheLength(){var V=new XMLHttpRequest;if(V.open("HEAD",a,!1),V.send(null),!(V.status>=200&&V.status<300||V.status===304))throw new Error("Couldn't load "+a+". Status: "+V.status);var ae=Number(V.getResponseHeader("Content-length")),pe,$e=(pe=V.getResponseHeader("Accept-Ranges"))&&pe==="bytes",Se=(pe=V.getResponseHeader("Content-Encoding"))&&pe==="gzip",kr=1024*1024;$e||(kr=ae);var Ar=(Fr,Dt)=>{if(Fr>Dt)throw new Error("invalid range ("+Fr+", "+Dt+") or no bytes requested!");if(Dt>ae-1)throw new Error("only "+ae+" bytes available! programmer error!");var qe=new XMLHttpRequest;if(qe.open("GET",a,!1),ae!==kr&&qe.setRequestHeader("Range","bytes="+Fr+"-"+Dt),qe.responseType="arraybuffer",qe.overrideMimeType&&qe.overrideMimeType("text/plain; charset=x-user-defined"),qe.send(null),!(qe.status>=200&&qe.status<300||qe.status===304))throw new Error("Couldn't load "+a+". Status: "+qe.status);return qe.response!==void 0?new Uint8Array(qe.response||[]):_r(qe.responseText||"")},Kt=this;Kt.setDataGetter(Fr=>{var Dt=Fr*kr,qe=(Fr+1)*kr-1;if(qe=Math.min(qe,ae-1),typeof Kt.chunks[Fr]>"u"&&(Kt.chunks[Fr]=Ar(Dt,qe)),typeof Kt.chunks[Fr]>"u")throw new Error("doXHR failed!");return Kt.chunks[Fr]}),(Se||!ae)&&(kr=ae=1,ae=this.getter(0).length,kr=ae,Ur("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=ae,this._chunkSize=kr,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!T)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var c=new f,v={isDevice:!1,contents:c}}else var v={isDevice:!1,url:a};var A=s.createFile(e,t,v,i,l);v.contents?A.contents=v.contents:v.url&&(A.contents=null,A.url=v.url),Object.defineProperties(A,{usedBytes:{get:function(){return this.contents.length}}});var O={},Z=Object.keys(A.stream_ops);Z.forEach(re=>{var V=A.stream_ops[re];O[re]=(...ae)=>(s.forceLoadFile(A),V(...ae))});function q(re,V,ae,pe,$e){var Se=re.node.contents;if($e>=Se.length)return 0;var kr=Math.min(Se.length-$e,pe);if(Se.slice)for(var Ar=0;Ar<kr;Ar++)V[ae+Ar]=Se[$e+Ar];else for(var Ar=0;Ar<kr;Ar++)V[ae+Ar]=Se.get($e+Ar);return kr}return O.read=(re,V,ae,pe,$e)=>(s.forceLoadFile(A),q(re,V,ae,pe,$e)),O.mmap=(re,V,ae,pe,$e)=>{s.forceLoadFile(A);var Se=ct(V);if(!Se)throw new s.ErrnoError(48);return q(re,Ue,Se,V,ae),{ptr:Se,allocated:!0}},A.stream_ops=O,A}},ht=(e,t)=>e?er(F,e,t):"",ve={DEFAULT_POLLMASK:5,calculateAt(e,t,a){if(he.isAbs(t))return t;var i;if(e===-100)i=s.cwd();else{var l=ve.getStreamFromFD(e);i=l.path}if(t.length==0){if(!a)throw new s.ErrnoError(44);return i}return he.join2(i,t)},doStat(e,t,a){var i=e(t);I[a>>2]=i.dev,I[a+4>>2]=i.mode,W[a+8>>2]=i.nlink,I[a+12>>2]=i.uid,I[a+16>>2]=i.gid,I[a+20>>2]=i.rdev,ze=[i.size>>>0,(le=i.size,+Math.abs(le)>=1?le>0?+Math.floor(le/4294967296)>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],I[a+24>>2]=ze[0],I[a+28>>2]=ze[1],I[a+32>>2]=4096,I[a+36>>2]=i.blocks;var l=i.atime.getTime(),f=i.mtime.getTime(),c=i.ctime.getTime();return ze=[Math.floor(l/1e3)>>>0,(le=Math.floor(l/1e3),+Math.abs(le)>=1?le>0?+Math.floor(le/4294967296)>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],I[a+40>>2]=ze[0],I[a+44>>2]=ze[1],W[a+48>>2]=l%1e3*1e3*1e3,ze=[Math.floor(f/1e3)>>>0,(le=Math.floor(f/1e3),+Math.abs(le)>=1?le>0?+Math.floor(le/4294967296)>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],I[a+56>>2]=ze[0],I[a+60>>2]=ze[1],W[a+64>>2]=f%1e3*1e3*1e3,ze=[Math.floor(c/1e3)>>>0,(le=Math.floor(c/1e3),+Math.abs(le)>=1?le>0?+Math.floor(le/4294967296)>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],I[a+72>>2]=ze[0],I[a+76>>2]=ze[1],W[a+80>>2]=c%1e3*1e3*1e3,ze=[i.ino>>>0,(le=i.ino,+Math.abs(le)>=1?le>0?+Math.floor(le/4294967296)>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],I[a+88>>2]=ze[0],I[a+92>>2]=ze[1],0},doMsync(e,t,a,i,l){if(!s.isFile(t.node.mode))throw new s.ErrnoError(43);if(i&2)return 0;var f=F.slice(e,e+a);s.msync(t,f,l,a,i)},getStreamFromFD(e){var t=s.getStreamChecked(e);return t},varargs:void 0,getStr(e){var t=ht(e);return t}};function on(e,t){try{return e=ve.getStr(e),s.chmod(e,t),0}catch(a){if(typeof s>"u"||a.name!=="ErrnoError")throw a;return-a.errno}}function Qr(e,t,a,i){try{if(t=ve.getStr(t),t=ve.calculateAt(e,t),a&-8)return-28;var l=s.lookupPath(t,{follow:!0}),f=l.node;if(!f)return-44;var c="";return a&4&&(c+="r"),a&2&&(c+="w"),a&1&&(c+="x"),c&&s.nodePermissions(f,c)?-2:0}catch(v){if(typeof s>"u"||v.name!=="ErrnoError")throw v;return-v.errno}}function Hr(){var e=I[+ve.varargs>>2];return ve.varargs+=4,e}var $r=Hr;function sn(e,t,a){ve.varargs=a;try{var i=ve.getStreamFromFD(e);switch(t){case 0:{var l=Hr();if(l<0)return-28;for(;s.streams[l];)l++;var f;return f=s.dupStream(i,l),f.fd}case 1:case 2:return 0;case 3:return i.flags;case 4:{var l=Hr();return i.flags|=l,0}case 12:{var l=$r(),c=0;return b[l+c>>1]=2,0}case 13:case 14:return 0}return-28}catch(v){if(typeof s>"u"||v.name!=="ErrnoError")throw v;return-v.errno}}function ln(e,t){try{var a=ve.getStreamFromFD(e);return ve.doStat(s.stat,a.path,t)}catch(i){if(typeof s>"u"||i.name!=="ErrnoError")throw i;return-i.errno}}function fn(e,t,a){ve.varargs=a;try{var i=ve.getStreamFromFD(e);switch(t){case 21509:return i.tty?0:-59;case 21505:{if(!i.tty)return-59;if(i.tty.ops.ioctl_tcgets){var l=i.tty.ops.ioctl_tcgets(i),f=$r();I[f>>2]=l.c_iflag||0,I[f+4>>2]=l.c_oflag||0,I[f+8>>2]=l.c_cflag||0,I[f+12>>2]=l.c_lflag||0;for(var c=0;c<32;c++)Ue[f+c+17]=l.c_cc[c]||0;return 0}return 0}case 21510:case 21511:case 21512:return i.tty?0:-59;case 21506:case 21507:case 21508:{if(!i.tty)return-59;if(i.tty.ops.ioctl_tcsets){for(var f=$r(),v=I[f>>2],A=I[f+4>>2],O=I[f+8>>2],Z=I[f+12>>2],q=[],c=0;c<32;c++)q.push(Ue[f+c+17]);return i.tty.ops.ioctl_tcsets(i.tty,t,{c_iflag:v,c_oflag:A,c_cflag:O,c_lflag:Z,c_cc:q})}return 0}case 21519:{if(!i.tty)return-59;var f=$r();return I[f>>2]=0,0}case 21520:return i.tty?-28:-59;case 21531:{var f=$r();return s.ioctl(i,t,f)}case 21523:{if(!i.tty)return-59;if(i.tty.ops.ioctl_tiocgwinsz){var re=i.tty.ops.ioctl_tiocgwinsz(i.tty),f=$r();b[f>>1]=re[0],b[f+2>>1]=re[1]}return 0}case 21524:return i.tty?0:-59;case 21515:return i.tty?0:-59;default:return-28}}catch(V){if(typeof s>"u"||V.name!=="ErrnoError")throw V;return-V.errno}}function et(e,t){try{return e=ve.getStr(e),ve.doStat(s.lstat,e,t)}catch(a){if(typeof s>"u"||a.name!=="ErrnoError")throw a;return-a.errno}}function Cr(e,t,a,i){try{t=ve.getStr(t);var l=i&256,f=i&4096;return i=i&-6401,t=ve.calculateAt(e,t,f),ve.doStat(l?s.lstat:s.stat,t,a)}catch(c){if(typeof s>"u"||c.name!=="ErrnoError")throw c;return-c.errno}}function Tt(e,t,a,i){ve.varargs=i;try{t=ve.getStr(t),t=ve.calculateAt(e,t);var l=i?Hr():0;return s.open(t,a,l).fd}catch(f){if(typeof s>"u"||f.name!=="ErrnoError")throw f;return-f.errno}}function ea(e){try{return e=ve.getStr(e),s.rmdir(e),0}catch(t){if(typeof s>"u"||t.name!=="ErrnoError")throw t;return-t.errno}}function ra(e,t){try{return e=ve.getStr(e),ve.doStat(s.stat,e,t)}catch(a){if(typeof s>"u"||a.name!=="ErrnoError")throw a;return-a.errno}}function un(e,t,a){try{return t=ve.getStr(t),t=ve.calculateAt(e,t),a===0?s.unlink(t):a===512?s.rmdir(t):pr("Invalid flags passed to unlinkat"),0}catch(i){if(typeof s>"u"||i.name!=="ErrnoError")throw i;return-i.errno}}var dn=()=>{pr("")},ta=(e,t,a,i,l)=>{},na=()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);cn=e},cn,ar=e=>{for(var t="",a=e;F[a];)t+=cn[F[a++]];return t},mr={},Rr={},vt={},hn,Ke=e=>{throw new hn(e)},qr,pt=e=>{throw new qr(e)},_t=(e,t,a)=>{e.forEach(v=>vt[v]=t);function i(v){var A=a(v);A.length!==e.length&&pt("Mismatched type converter count");for(var O=0;O<e.length;++O)gr(e[O],A[O])}var l=new Array(t.length),f=[],c=0;t.forEach((v,A)=>{Rr.hasOwnProperty(v)?l[A]=Rr[v]:(f.push(v),mr.hasOwnProperty(v)||(mr[v]=[]),mr[v].push(()=>{l[A]=Rr[v],++c,c===f.length&&i(l)}))}),f.length===0&&i(l)};function mt(e,t,a={}){var i=t.name;if(e||Ke(`type "${i}" must have a positive integer typeid pointer`),Rr.hasOwnProperty(e)){if(a.ignoreDuplicateRegistrations)return;Ke(`Cannot register type '${i}' twice`)}if(Rr[e]=t,delete vt[e],mr.hasOwnProperty(e)){var l=mr[e];delete mr[e],l.forEach(f=>f())}}function gr(e,t,a={}){return mt(e,t,a)}var cr=8,aa=(e,t,a,i)=>{t=ar(t),gr(e,{name:t,fromWireType:function(l){return!!l},toWireType:function(l,f){return f?a:i},argPackAdvance:cr,readValueFromPointer:function(l){return this.fromWireType(F[l])},destructorFunction:null})},zt=[],wr=[],Ot=e=>{e>9&&--wr[e+1]===0&&(wr[e]=void 0,zt.push(e))},rt=()=>wr.length/2-5-zt.length,vn=()=>{wr.push(0,1,void 0,1,null,1,!0,1,!1,1),E.count_emval_handles=rt},Oe={toValue:e=>(e||Ke("Cannot use deleted val. handle = "+e),wr[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const t=zt.pop()||wr.length;return wr[t]=e,wr[t+1]=1,t}}}};function Wr(e){return this.fromWireType(W[e>>2])}var Tr={name:"emscripten::val",fromWireType:e=>{var t=Oe.toValue(e);return Ot(e),t},toWireType:(e,t)=>Oe.toHandle(t),argPackAdvance:cr,readValueFromPointer:Wr,destructorFunction:null},ia=e=>gr(e,Tr),oa=(e,t)=>{switch(t){case 4:return function(a){return this.fromWireType(me[a>>2])};case 8:return function(a){return this.fromWireType(ge[a>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},ir=(e,t,a)=>{t=ar(t),gr(e,{name:t,fromWireType:i=>i,toWireType:(i,l)=>l,argPackAdvance:cr,readValueFromPointer:oa(t,a),destructorFunction:null})},tt=(e,t)=>Object.defineProperty(t,"name",{value:e}),It=e=>{for(;e.length;){var t=e.pop(),a=e.pop();a(t)}};function pn(e){for(var t=1;t<e.length;++t)if(e[t]!==null&&e[t].destructorFunction===void 0)return!0;return!1}function Pt(e,t){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var a=tt(e.name||"unknownFunctionName",function(){});a.prototype=e.prototype;var i=new a,l=e.apply(i,t);return l instanceof Object?l:i}function gt(e,t,a,i){for(var l=pn(e),f=e.length-2,c=[],v=["fn"],A=0;A<f;++A)c.push(`arg${A}`),v.push(`arg${A}Wired`);c=c.join(","),v=v.join(",");var O=`return function (${c}) {
5
+ `;l&&(O+=`var destructors = [];
6
+ `);for(var Z=l?"destructors":"null",q=["humanName","throwBindingError","invoker","fn","runDestructors","retType","classParam"],A=0;A<f;++A)O+=`var arg${A}Wired = argType${A}['toWireType'](${Z}, arg${A});
7
+ `,q.push(`argType${A}`);if(O+=(a||i?"var rv = ":"")+`invoker(${v});
8
+ `,l)O+=`runDestructors(destructors);
9
+ `;else for(var A=2;A<e.length;++A){var re=A===1?"thisWired":"arg"+(A-2)+"Wired";e[A].destructorFunction!==null&&(O+=`${re}_dtor(${re});
10
+ `,q.push(`${re}_dtor`))}return a&&(O+=`var ret = retType['fromWireType'](rv);
11
+ return ret;
12
+ `),O+=`}
13
+ `,[q,O]}function wt(e,t,a,i,l,f){var c=t.length;c<2&&Ke("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var v=t[1]!==null&&a!==null,A=pn(t),O=t[0].name!=="void",Z=[e,Ke,i,l,It,t[0],t[1]],q=0;q<c-2;++q)Z.push(t[q+2]);if(!A)for(var q=2;q<t.length;++q)t[q].destructorFunction!==null&&Z.push(t[q].destructorFunction);let[re,V]=gt(t,v,O,f);re.push(V);var ae=Pt(Function,re)(...Z);return tt(e,ae)}var yr=(e,t,a)=>{if(e[t].overloadTable===void 0){var i=e[t];e[t]=function(...l){return e[t].overloadTable.hasOwnProperty(l.length)||Ke(`Function '${a}' called with an invalid number of arguments (${l.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[l.length].apply(this,l)},e[t].overloadTable=[],e[t].overloadTable[i.argCount]=i}},Ut=(e,t,a)=>{E.hasOwnProperty(e)?((a===void 0||E[e].overloadTable!==void 0&&E[e].overloadTable[a]!==void 0)&&Ke(`Cannot register public name '${e}' twice`),yr(E,e,e),E.hasOwnProperty(a)&&Ke(`Cannot register multiple overloads of a function with the same number of arguments (${a})!`),E[e].overloadTable[a]=t):(E[e]=t,a!==void 0&&(E[e].numArguments=a))},Lt=(e,t)=>{for(var a=[],i=0;i<e;i++)a.push(W[t+i*4>>2]);return a},yt=(e,t,a)=>{E.hasOwnProperty(e)||pt("Replacing nonexistent public symbol"),E[e].overloadTable!==void 0&&a!==void 0?E[e].overloadTable[a]=t:(E[e]=t,E[e].argCount=a)},bt=(e,t,a)=>{e=e.replace(/p/g,"i");var i=E["dynCall_"+e];return i(t,...a)},Vr=[],Ae,Mt=e=>{var t=Vr[e];return t||(e>=Vr.length&&(Vr.length=e+1),Vr[e]=t=Ae.get(e)),t},sa=(e,t,a=[])=>{if(e.includes("j"))return bt(e,t,a);var i=Mt(t)(...a);return i},Nt=(e,t)=>(...a)=>sa(e,t,a),jt=(e,t)=>{e=ar(e);function a(){return e.includes("j")?Nt(e,t):Mt(t)}var i=a();return typeof i!="function"&&Ke(`unknown function pointer with signature ${e}: ${t}`),i},zr=(e,t)=>{var a=tt(t,function(i){this.name=t,this.message=i;var l=new Error(i).stack;l!==void 0&&(this.stack=this.toString()+`
14
+ `+l.replace(/^Error(:[^\n]*)?\n/,""))});return a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},a},Zt,Ht=e=>{var t=Ja(e),a=ar(t);return Ir(t),a},_n=(e,t)=>{var a=[],i={};function l(f){if(!i[f]&&!Rr[f]){if(vt[f]){vt[f].forEach(l);return}a.push(f),i[f]=!0}}throw t.forEach(l),new Zt(`${e}: `+a.map(Ht).join([", "]))},mn=e=>{e=e.trim();const t=e.indexOf("(");return t!==-1?e.substr(0,t):e},gn=(e,t,a,i,l,f,c,v)=>{var A=Lt(t,a);e=ar(e),e=mn(e),l=jt(i,l),Ut(e,function(){_n(`Cannot call ${e} due to unbound types`,A)},t-1),_t([],A,O=>{var Z=[O[0],null].concat(O.slice(1));return yt(e,wt(e,Z,null,l,f,c),t-1),[]})},la=(e,t,a)=>{switch(t){case 1:return a?i=>Ue[i]:i=>F[i];case 2:return a?i=>b[i>>1]:i=>z[i>>1];case 4:return a?i=>I[i>>2]:i=>W[i>>2];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},wn=(e,t,a,i,l)=>{t=ar(t);var f=Z=>Z;if(i===0){var c=32-8*a;f=Z=>Z<<c>>>c}var v=t.includes("unsigned"),A=(Z,q)=>{},O;v?O=function(Z,q){return A(q,this.name),q>>>0}:O=function(Z,q){return A(q,this.name),q},gr(e,{name:t,fromWireType:f,toWireType:O,argPackAdvance:cr,readValueFromPointer:la(t,a,i!==0),destructorFunction:null})},br=(e,t,a)=>{var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],l=i[t];function f(c){var v=W[c>>2],A=W[c+4>>2];return new l(Ue.buffer,A,v)}a=ar(a),gr(e,{name:a,fromWireType:f,argPackAdvance:cr,readValueFromPointer:f},{ignoreDuplicateRegistrations:!0})},Yr=(e,t,a)=>St(e,F,t,a),yn=(e,t)=>{t=ar(t);var a=t==="std::string";gr(e,{name:t,fromWireType(i){var l=W[i>>2],f=i+4,c;if(a)for(var v=f,A=0;A<=l;++A){var O=f+A;if(A==l||F[O]==0){var Z=O-v,q=ht(v,Z);c===void 0?c=q:(c+="\0",c+=q),v=O+1}}else{for(var re=new Array(l),A=0;A<l;++A)re[A]=String.fromCharCode(F[f+A]);c=re.join("")}return Ir(i),c},toWireType(i,l){l instanceof ArrayBuffer&&(l=new Uint8Array(l));var f,c=typeof l=="string";c||l instanceof Uint8Array||l instanceof Uint8ClampedArray||l instanceof Int8Array||Ke("Cannot pass non-string to std::string"),a&&c?f=nr(l):f=l.length;var v=va(4+f+1),A=v+4;if(W[v>>2]=f,a&&c)Yr(l,A,f+1);else if(c)for(var O=0;O<f;++O){var Z=l.charCodeAt(O);Z>255&&(Ir(A),Ke("String has UTF-16 code units that do not fit in 8 bits")),F[A+O]=Z}else for(var O=0;O<f;++O)F[A+O]=l[O];return i!==null&&i.push(Ir,v),v},argPackAdvance:cr,readValueFromPointer:Wr,destructorFunction(i){Ir(i)}})},bn=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,fa=(e,t)=>{for(var a=e,i=a>>1,l=i+t/2;!(i>=l)&&z[i];)++i;if(a=i<<1,a-e>32&&bn)return bn.decode(F.subarray(e,a));for(var f="",c=0;!(c>=t/2);++c){var v=b[e+c*2>>1];if(v==0)break;f+=String.fromCharCode(v)}return f},nt=(e,t,a)=>{if(a??(a=2147483647),a<2)return 0;a-=2;for(var i=t,l=a<e.length*2?a/2:e.length,f=0;f<l;++f){var c=e.charCodeAt(f);b[t>>1]=c,t+=2}return b[t>>1]=0,t-i},$t=e=>e.length*2,qt=(e,t)=>{for(var a=0,i="";!(a>=t/4);){var l=I[e+a*4>>2];if(l==0)break;if(++a,l>=65536){var f=l-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}else i+=String.fromCharCode(l)}return i},ua=(e,t,a)=>{if(a??(a=2147483647),a<4)return 0;for(var i=t,l=i+a-4,f=0;f<e.length;++f){var c=e.charCodeAt(f);if(c>=55296&&c<=57343){var v=e.charCodeAt(++f);c=65536+((c&1023)<<10)|v&1023}if(I[t>>2]=c,t+=4,t+4>l)break}return I[t>>2]=0,t-i},En=e=>{for(var t=0,a=0;a<e.length;++a){var i=e.charCodeAt(a);i>=55296&&i<=57343&&++a,t+=4}return t},da=(e,t,a)=>{a=ar(a);var i,l,f,c;t===2?(i=fa,l=nt,c=$t,f=v=>z[v>>1]):t===4&&(i=qt,l=ua,c=En,f=v=>W[v>>2]),gr(e,{name:a,fromWireType:v=>{for(var A=W[v>>2],O,Z=v+4,q=0;q<=A;++q){var re=v+4+q*t;if(q==A||f(re)==0){var V=re-Z,ae=i(Z,V);O===void 0?O=ae:(O+="\0",O+=ae),Z=re+t}}return Ir(v),O},toWireType:(v,A)=>{typeof A!="string"&&Ke(`Cannot pass non-string to C++ string type ${a}`);var O=c(A),Z=va(4+O+t);return W[Z>>2]=O/t,l(A,Z+4,O+t),v!==null&&v.push(Ir,Z),Z},argPackAdvance:cr,readValueFromPointer:Wr,destructorFunction(v){Ir(v)}})},at=(e,t)=>{t=ar(t),gr(e,{isVoid:!0,name:t,argPackAdvance:0,fromWireType:()=>{},toWireType:(a,i)=>{}})},Wt=1,Et=()=>Wt,Vt=e=>{for(var t=e.split("."),a=0;a<4;a++){var i=Number(t[a]);if(isNaN(i))return null;t[a]=i}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0},it=e=>parseInt(e),xn=e=>{var t,a,i,l,f=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,c=[];if(!f.test(e))return null;if(e==="::")return[0,0,0,0,0,0,0,0];for(e.startsWith("::")?e=e.replace("::","Z:"):e=e.replace("::",":Z:"),e.indexOf(".")>0?(e=e.replace(new RegExp("[.]","g"),":"),t=e.split(":"),t[t.length-4]=it(t[t.length-4])+it(t[t.length-3])*256,t[t.length-3]=it(t[t.length-2])+it(t[t.length-1])*256,t=t.slice(0,t.length-2)):t=e.split(":"),i=0,l=0,a=0;a<t.length;a++)if(typeof t[a]=="string")if(t[a]==="Z"){for(l=0;l<8-t.length+1;l++)c[a+l]=0;i=l-1}else c[a+i]=Qa(parseInt(t[a],16));else c[a+i]=t[a];return[c[1]<<16|c[0],c[3]<<16|c[2],c[5]<<16|c[4],c[7]<<16|c[6]]},Er={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var t=Vt(e);if(t!==null||(t=xn(e),t!==null))return e;var a;if(Er.address_map.addrs[e])a=Er.address_map.addrs[e];else{var i=Er.address_map.id++;ft(i<65535,"exceeded max address mappings of 65535"),a="172.29."+(i&255)+"."+(i&65280),Er.address_map.names[a]=e,Er.address_map.addrs[e]=a}return a},lookup_addr(e){return Er.address_map.names[e]?Er.address_map.names[e]:null}},kn=e=>{var t=ht(e);return Vt(Er.lookup_name(t))},An=(e,t,a)=>F.copyWithin(e,t,t+a),xt=(e,t)=>{var a=Rr[e];return a===void 0&&Ke(`${t} has unknown type ${Ht(e)}`),a},Yt=(e,t,a)=>{var i=[],l=e.toWireType(i,a);return i.length&&(W[t>>2]=Oe.toHandle(i)),l},Dn=(e,t,a)=>(e=Oe.toValue(e),t=xt(t,"emval::as"),Yt(t,a,e)),ca={},r=e=>{var t=ca[e];return t===void 0?ar(e):t},o=[],n=(e,t,a,i,l)=>(e=o[e],t=Oe.toValue(t),a=r(a),e(t,t[a],i,l)),u=()=>typeof globalThis=="object"?globalThis:(function(){return Function})()("return this")(),d=e=>e===0?Oe.toHandle(u()):(e=r(e),Oe.toHandle(u()[e])),h=e=>{var t=o.length;return o.push(e),t},B=(e,t)=>{for(var a=new Array(e),i=0;i<e;++i)a[i]=xt(W[t+i*4>>2],"parameter "+i);return a},p=(e,t,a)=>{var i=B(e,t),l=i.shift();e--;var f=`return function (obj, func, destructorsRef, args) {
15
+ `,c=0,v=[];a===0&&v.push("obj");for(var A=["retType"],O=[l],Z=0;Z<e;++Z)v.push("arg"+Z),A.push("argType"+Z),O.push(i[Z]),f+=` var arg${Z} = argType${Z}.readValueFromPointer(args${c?"+"+c:""});
16
+ `,c+=i[Z].argPackAdvance;var q=a===1?"new func":"func.call";f+=` var rv = ${q}(${v.join(", ")});
17
+ `,l.isVoid||(A.push("emval_returnValue"),O.push(Yt),f+=` return emval_returnValue(retType, destructorsRef, rv);
18
+ `),f+=`};
19
+ `,A.push(f);var re=Pt(Function,A)(...O),V=`methodCaller<(${i.map(ae=>ae.name).join(", ")}) => ${l.name}>`;return h(tt(V,re))},U=(e,t)=>(e=Oe.toValue(e),t=Oe.toValue(t),Oe.toHandle(e[t])),m=e=>{e>9&&(wr[e+1]+=1)},y=()=>Oe.toHandle([]),oe=e=>Oe.toHandle(r(e)),H=()=>Oe.toHandle({}),R=e=>{var t=Oe.toValue(e);It(t),Ot(e)},N=(e,t,a)=>{e=Oe.toValue(e),t=Oe.toValue(t),a=Oe.toValue(a),e[t]=a},ie=(e,t)=>{e=xt(e,"_emval_take_value");var a=e.readValueFromPointer(t);return Oe.toHandle(a)},ne=e=>e%4===0&&(e%100!==0||e%400===0),se=[0,31,60,91,121,152,182,213,244,274,305,335],M=[0,31,59,90,120,151,181,212,243,273,304,334],L=e=>{var t=ne(e.getFullYear()),a=t?se:M,i=a[e.getMonth()]+e.getDate()-1;return i},G=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+t*4294967296:NaN;function be(e,t,a){var i=G(e,t),l=new Date(i*1e3);I[a>>2]=l.getSeconds(),I[a+4>>2]=l.getMinutes(),I[a+8>>2]=l.getHours(),I[a+12>>2]=l.getDate(),I[a+16>>2]=l.getMonth(),I[a+20>>2]=l.getFullYear()-1900,I[a+24>>2]=l.getDay();var f=L(l)|0;I[a+28>>2]=f,I[a+36>>2]=-(l.getTimezoneOffset()*60);var c=new Date(l.getFullYear(),0,1),v=new Date(l.getFullYear(),6,1).getTimezoneOffset(),A=c.getTimezoneOffset(),O=(v!=A&&l.getTimezoneOffset()==Math.min(A,v))|0;I[a+32>>2]=O}function X(e,t,a,i,l,f,c){var v=G(f,c);try{var A=ve.getStreamFromFD(l);a&2&&ve.doMsync(e,A,t,i,v)}catch(O){if(typeof s>"u"||O.name!=="ErrnoError")throw O;return-O.errno}}var de=(e,t,a,i)=>{var l=new Date().getFullYear(),f=new Date(l,0,1),c=new Date(l,6,1),v=f.getTimezoneOffset(),A=c.getTimezoneOffset(),O=Math.max(v,A);W[e>>2]=O*60,I[t>>2]=+(v!=A);var Z=V=>{var ae=V>=0?"-":"+",pe=Math.abs(V),$e=String(Math.floor(pe/60)).padStart(2,"0"),Se=String(pe%60).padStart(2,"0");return`UTC${ae}${$e}${Se}`},q=Z(v),re=Z(A);A<v?(Yr(q,a,17),Yr(re,i,17)):(Yr(q,i,17),Yr(re,a,17))},fe=()=>Date.now();function Q(){return new Error().stack.toString()}var ee=e=>{ee.shown||(ee.shown={}),ee.shown[e]||(ee.shown[e]=1,P&&(e="warning: "+e),Pe(e))};function we(e){var t=Q(),a=t.lastIndexOf("_emscripten_log"),i=t.lastIndexOf("_emscripten_get_callstack"),l=t.indexOf(`
20
+ `,Math.max(a,i))+1;t=t.slice(l),e&8&&typeof emscripten_source_map>"u"&&(ee('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'),e^=8,e|=16);var f=t.split(`
21
+ `);t="";var c=new RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"),v=new RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"),A=new RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)");for(var O in f){var Z=f[O],q="",re="",V=0,ae=0,pe=A.exec(Z);if(pe&&pe.length==5)q=pe[1],re=pe[2],V=pe[3],ae=pe[4];else if(pe=c.exec(Z)||v.exec(Z),pe&&pe.length>=4)q=pe[1],re=pe[2],V=pe[3],ae=pe[4]|0;else{t+=Z+`
22
+ `;continue}var $e=!1;if(e&8){var Se=emscripten_source_map.originalPositionFor({line:V,column:ae});$e=Se==null?void 0:Se.source,$e&&(e&64&&(Se.source=Se.source.substring(Se.source.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=` at ${q} (${Se.source}:${Se.line}:${Se.column})
23
+ `)}(e&16||!$e)&&(e&64&&(re=re.substring(re.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=($e?` = ${q}`:` at ${q}`)+` (${re}:${V}:${ae})
24
+ `)}return t=t.replace(/\s+$/,""),t}function Or(e,t,a){var i=we(e);if(!t||a<=0)return nr(i)+1;var l=Yr(i,t,a);return l+1}var xr=()=>2147483648,kt=()=>xr(),At=e=>{var t=Me.buffer,a=(e-t.byteLength+65535)/65536|0;try{return Me.grow(a),Ce(),1}catch{}},Ri=e=>{var t=F.length;e>>>=0;var a=xr();if(e>a)return!1;for(var i=1;i<=4;i*=2){var l=t*(1+.2/i);l=Math.min(l,e+100663296);var f=Math.min(a,Nr(Math.max(e,l),65536)),c=At(f);if(c)return!0}return!1},ha={},Ti=()=>ue||"./this.program",Xt=()=>{if(!Xt.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:Ti()};for(var a in ha)ha[a]===void 0?delete t[a]:t[a]=ha[a];var i=[];for(var a in t)i.push(`${a}=${t[a]}`);Xt.strings=i}return Xt.strings},zi=(e,t)=>{for(var a=0;a<e.length;++a)Ue[t++]=e.charCodeAt(a);Ue[t]=0},Oi=(e,t)=>{var a=0;return Xt().forEach((i,l)=>{var f=t+a;W[e+l*4>>2]=f,zi(i,f),a+=i.length+1}),0},Ii=(e,t)=>{var a=Xt();W[e>>2]=a.length;var i=0;return a.forEach(l=>i+=l.length+1),W[t>>2]=i,0},Pi=e=>{Ie(e,new Qn(e))},Ui=(e,t)=>{Pi(e)},Li=Ui;function Mi(e){try{var t=ve.getStreamFromFD(e);return s.close(t),0}catch(a){if(typeof s>"u"||a.name!=="ErrnoError")throw a;return a.errno}}var Ni=(e,t,a,i)=>{for(var l=0,f=0;f<a;f++){var c=W[t>>2],v=W[t+4>>2];t+=8;var A=s.read(e,Ue,c,v,i);if(A<0)return-1;if(l+=A,A<v)break}return l};function ji(e,t,a,i){try{var l=ve.getStreamFromFD(e),f=Ni(l,t,a);return W[i>>2]=f,0}catch(c){if(typeof s>"u"||c.name!=="ErrnoError")throw c;return c.errno}}function Zi(e,t,a,i,l){var f=G(t,a);try{if(isNaN(f))return 61;var c=ve.getStreamFromFD(e);return s.llseek(c,f,i),ze=[c.position>>>0,(le=c.position,+Math.abs(le)>=1?le>0?+Math.floor(le/4294967296)>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],I[l>>2]=ze[0],I[l+4>>2]=ze[1],c.getdents&&f===0&&i===0&&(c.getdents=null),0}catch(v){if(typeof s>"u"||v.name!=="ErrnoError")throw v;return v.errno}}var Hi=(e,t,a,i)=>{for(var l=0,f=0;f<a;f++){var c=W[t>>2],v=W[t+4>>2];t+=8;var A=s.write(e,Ue,c,v,i);if(A<0)return-1;if(l+=A,A<v)break}return l};function $i(e,t,a,i){try{var l=ve.getStreamFromFD(e),f=Hi(l,t,a);return W[i>>2]=f,0}catch(c){if(typeof s>"u"||c.name!=="ErrnoError")throw c;return c.errno}}s.createPreloadedFile=dr,s.staticInit(),na(),hn=E.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},qr=E.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}},vn(),Zt=E.UnboundTypeError=zr(Error,"UnboundTypeError");var qi={M:on,N:Qr,h:sn,I:ln,Q:fn,F:et,G:Cr,j:Tt,B:ea,H:ra,C:un,A:dn,w:ta,V:aa,U:ia,n:ir,f:gn,b:wn,a:br,m:yn,i:da,W:at,J:Et,x:kn,L:An,e:Dn,q:n,T:Ot,u:d,p,k:U,Y:m,X:y,r:oe,Z:H,o:R,c:N,d:ie,t:be,s:X,O:de,K:fe,R:Or,z:kt,y:Ri,D:Oi,E:Ii,S:Li,g:Mi,P:ji,v:Zi,l:$i},He=Jn(),Ja=e=>(Ja=He.aa)(e),va=e=>(va=He.ca)(e),Ir=e=>(Ir=He.da)(e),Qa=e=>(Qa=He.ea)(e),ei=(e,t)=>(ei=He.fa)(e,t),ri=()=>(ri=He.ga)();E.dynCall_viijii=(e,t,a,i,l,f,c)=>(E.dynCall_viijii=He.ha)(e,t,a,i,l,f,c),E.dynCall_viiiiji=(e,t,a,i,l,f,c,v)=>(E.dynCall_viiiiji=He.ia)(e,t,a,i,l,f,c,v),E.dynCall_jiji=(e,t,a,i,l)=>(E.dynCall_jiji=He.ja)(e,t,a,i,l),E.dynCall_iiiiij=(e,t,a,i,l,f,c)=>(E.dynCall_iiiiij=He.ka)(e,t,a,i,l,f,c),E.dynCall_iiiiijj=(e,t,a,i,l,f,c,v,A)=>(E.dynCall_iiiiijj=He.la)(e,t,a,i,l,f,c,v,A),E.dynCall_iiiiiijj=(e,t,a,i,l,f,c,v,A,O)=>(E.dynCall_iiiiiijj=He.ma)(e,t,a,i,l,f,c,v,A,O);var Cn,ti;Fe=function e(){Cn||ni(),Cn||(Fe=e)};function ni(){if(je>0||!ti&&(ti=1,Dr(),je>0))return;function e(){var t;Cn||(Cn=1,E.calledRun=1,!Kr&&(Ee(),j(E),(t=E.onRuntimeInitialized)==null||t.call(E),Ye()))}E.setStatus?(E.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>E.setStatus(""),1),e()},1)):e()}if(E.preInit)for(typeof E.preInit=="function"&&(E.preInit=[E.preInit]);E.preInit.length>0;)E.preInit.pop()();return ni(),J=_,J})})();x.exports=C})(Wn)),Wn.exports}var Ei=bi(),xi=pa(Ei),ki="/assets/occt-import-js-BhHfLpto.wasm";function Yn(x){return x.replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}function st(x,D){var k;const C=D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return(k=new RegExp(`<Property\\s+name="${C}"[^>]*>([\\s\\S]*?)<\\/Property>`).exec(x))==null?void 0:k[1]}function lt(x,D,C){if(!x)return;const k=D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),S=new RegExp(`<${k}\\b[^>]*\\b${C}="([^"]*)"`).exec(x);return S?Yn(S[1]):void 0}function Ai(x){if(!x)return;const D=Number(x)>>>0;return[(D>>>24&255)/255,(D>>>16&255)/255,(D>>>8&255)/255]}function Di(x){return[(x>>>24&255)/255,(x>>>16&255)/255,(x>>>8&255)/255]}function Ci(x){if(x.byteLength<40)return null;const D=new DataView(x.buffer,x.byteOffset,x.byteLength);if(D.getUint32(0,!0)<1)return null;const C=D.getUint32(8,!0),k=D.getFloat32(24,!0);return{color:Di(C),opacity:Number.isFinite(k)?Math.max(0,Math.min(1,1-k)):1}}function Fi(x){const D=new Map;if(!x)return D;const C=/<ViewProvider\s+name="([^"]+)"[^>]*>([\s\S]*?)<\/ViewProvider>/g;for(const k of x.matchAll(C)){const S=k[2],$=lt(st(S,"Visibility"),"Bool","value"),J=lt(st(S,"ShapeColor"),"PropertyColor","value"),E=lt(st(S,"Transparency"),"Integer","value"),j=lt(st(S,"ShapeAppearance"),"MaterialList","file"),w=Number(E);D.set(Yn(k[1]),{visible:$===void 0?void 0:$==="true"||$==="1",color:Ai(J),opacity:Number.isFinite(w)?Math.max(0,Math.min(1,1-w/100)):void 0,appearanceFile:j})}return D}function Si(x,D){var $;if(!x)return[];const C=(($=/<ObjectData\b[^>]*>([\s\S]*?)<\/ObjectData>/.exec(x))==null?void 0:$[1])??x,k=[],S=/<Object\s+name="([^"]+)"[^>]*>([\s\S]*?)<\/Object>/g;for(const J of C.matchAll(S)){const E=Yn(J[1]),j=J[2],w=lt(st(j,"Shape"),"Part","file");if(!w)continue;const _=lt(st(j,"Label"),"String","value")||E,g=D.get(E);k.push({name:E,label:_,shapeFile:w,visible:(g==null?void 0:g.visible)!==!1,color:(g==null?void 0:g.color)??[.36,.75,.84],opacity:(g==null?void 0:g.opacity)??1,appearanceFile:g==null?void 0:g.appearanceFile,hasGuiColor:(g==null?void 0:g.color)!==void 0})}return k}function Ga(x,D){const C=x.file(D);if(C)return C;const k=D.toLowerCase(),S=Object.keys(x.files).find($=>$.toLowerCase()===k);return S?x.file(S):null}let Xn=null;function Bi(){return Xn||(Xn=xi({locateFile:x=>x.endsWith(".wasm")?ki:x})),Xn}function Kn(x,D=[]){self.postMessage(x,{transfer:D})}self.onmessage=async x=>{var D,C,k;try{const S=new gi(x.data),$=(D=S.file("Document.xml"))==null?void 0:D.asText(),J=(C=S.file("GuiDocument.xml"))==null?void 0:C.asText(),E=Fi(J),j=Si($,E);let w=j.filter(P=>P.visible);w.length===0&&(w=j),w.length===0&&(w=Object.keys(S.files).filter(P=>/\.(?:brp\d*|brep)$/i.test(P)).map(P=>({name:P,label:P,shapeFile:P,visible:!0,color:[.36,.75,.84],opacity:1,hasGuiColor:!1})));for(const P of w){if(!P.appearanceFile)continue;const Y=Ga(S,P.appearanceFile);if(!Y)continue;const ue=Ci(Y.asUint8Array());ue&&(P.color=ue.color,P.opacity=ue.opacity,P.hasGuiColor=!0)}if(w=w.filter((P,Y,ue)=>ue.findIndex(Ie=>Ie.shapeFile===P.shapeFile)===Y),w.length===0)throw new Error("NO_BREP_GEOMETRY");const _=await Bi(),g=[];for(let P=0;P<w.length;P++){const Y=w[P];Kn({type:"progress",current:P+1,total:w.length});const ue=Ga(S,Y.shapeFile);if(!ue)continue;const Ie=_.ReadBrepFile(ue.asUint8Array(),{linearDeflectionType:"bounding_box_ratio",linearDeflection:.001,angularDeflection:.5});if(!(!Ie.success||!Ie.meshes))for(const ye of Ie.meshes){const rr=Float32Array.from(ye.attributes.position.array),Ve=ye.attributes.normal?Float32Array.from(ye.attributes.normal.array):void 0,ce=Uint32Array.from(ye.index.array),vr=!Y.hasGuiColor&&((k=ye.color)==null?void 0:k.length)===3?ye.color:Y.color;g.push({name:ye.name||Y.label,positions:rr,normals:Ve,indices:ce,color:vr,opacity:Y.opacity})}}if(g.length===0)throw new Error("BREP_IMPORT_FAILED");const T=g.flatMap(P=>[P.positions.buffer,...P.normals?[P.normals.buffer]:[],P.indices.buffer]);Kn({type:"result",meshes:g,objectCount:w.length},T)}catch(S){Kn({type:"error",message:S instanceof Error?S.message:"FCSTD_IMPORT_FAILED"})}}})();
@@ -1,4 +1,4 @@
1
- import{g as Xt}from"./chunk-5VM5RSS4-CCzvXqtX.js";import{g as Qt}from"./chunk-XXDRQBXY--nHyvZQ6.js";import{s as Zt}from"./chunk-VR4S4FIN-DbAzJVcf.js";import{_ as m,b6 as Jt,X as Mt,l as Z,c as g1,v as $t,x as te,y as rt,b as ee,s as se,o as ie,a as re,g as ae,p as ne,k as ue,Y as le,Z as oe,bo as ce,r as st,d as it,a5 as he,q as de,b8 as pe,t as fe}from"./mermaid.core-BDhiHGyU.js";import{f as ge}from"./chunk-32BRIVSS-BteUBJrm.js";import{c as be}from"./channel-CohCoDiY.js";var Ae="flowchart-",G1,ke=(G1=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=ee,this.setAccDescription=se,this.setDiagramTitle=ie,this.getAccTitle=re,this.getAccDescription=ae,this.getDiagramTitle=ne,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ue.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,u,o,h,c={},g){var L,y;if(!i||i.trim().length===0)return;let r;if(g!==void 0){let f;g.includes(`
1
+ import{g as Xt}from"./chunk-5VM5RSS4-Z2pZcBbh.js";import{g as Qt}from"./chunk-XXDRQBXY-BLQ81Hhu.js";import{s as Zt}from"./chunk-VR4S4FIN-n0aWG4-j.js";import{_ as m,b6 as Jt,X as Mt,l as Z,c as g1,v as $t,x as te,y as rt,b as ee,s as se,o as ie,a as re,g as ae,p as ne,k as ue,Y as le,Z as oe,bo as ce,r as st,d as it,a5 as he,q as de,b8 as pe,t as fe}from"./mermaid.core-DpoI2o0n.js";import{f as ge}from"./chunk-32BRIVSS-C8dNk4Hn.js";import{c as be}from"./channel-D4Oo3ZHk.js";var Ae="flowchart-",G1,ke=(G1=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=ee,this.setAccDescription=se,this.setDiagramTitle=ie,this.getAccTitle=re,this.getAccDescription=ae,this.getDiagramTitle=ne,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ue.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return this.diagramId?`${this.diagramId}-${a.domId}`:a.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,a,n,u,o,h,c={},g){var L,y;if(!i||i.trim().length===0)return;let r;if(g!==void 0){let f;g.includes(`
2
2
  `)?f=g+`
3
3
  `:f=`{
4
4
  `+g+`