@nanoforge-dev/editor 0.0.1 → 0.0.2-beta.4555742

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 (682) hide show
  1. package/dist/client/_app/immutable/assets/0.DH-_Mfdo.css +1 -0
  2. package/dist/client/_app/immutable/assets/0.DH-_Mfdo.css.br +0 -0
  3. package/dist/client/_app/immutable/assets/0.DH-_Mfdo.css.gz +0 -0
  4. package/dist/client/_app/immutable/assets/10.BP_hUVIU.css +1 -0
  5. package/dist/client/_app/immutable/assets/10.BP_hUVIU.css.br +0 -0
  6. package/dist/client/_app/immutable/assets/10.BP_hUVIU.css.gz +0 -0
  7. package/dist/client/_app/immutable/assets/editor.BuC0XPbM.css.gz +0 -0
  8. package/dist/client/_app/immutable/assets/error.CV-KWLNP.css +1 -0
  9. package/dist/client/_app/immutable/assets/error.CV-KWLNP.css.br +1 -0
  10. package/dist/client/_app/immutable/assets/error.CV-KWLNP.css.gz +0 -0
  11. package/dist/client/_app/immutable/chunks/08VXUWAP.js.gz +0 -0
  12. package/dist/client/_app/immutable/chunks/43DmfD33.js.gz +0 -0
  13. package/dist/client/_app/immutable/chunks/56adh18U.js +1 -0
  14. package/dist/client/_app/immutable/chunks/56adh18U.js.br +0 -0
  15. package/dist/client/_app/immutable/chunks/56adh18U.js.gz +0 -0
  16. package/dist/client/_app/immutable/chunks/6RTg0lbw2.js.gz +0 -0
  17. package/dist/client/_app/immutable/chunks/B2921r3t2.js +1 -0
  18. package/dist/client/_app/immutable/chunks/B2921r3t2.js.br +1 -0
  19. package/dist/client/_app/immutable/chunks/B2921r3t2.js.gz +0 -0
  20. package/dist/client/_app/immutable/chunks/{XIokwnxj2.js → B41NCdmk2.js} +1 -1
  21. package/dist/client/_app/immutable/chunks/B41NCdmk2.js.br +0 -0
  22. package/dist/client/_app/immutable/chunks/B41NCdmk2.js.gz +0 -0
  23. package/dist/client/_app/immutable/chunks/B5-_aFwp.js.gz +0 -0
  24. package/dist/client/_app/immutable/chunks/B5BlQANa2.js +1 -0
  25. package/dist/client/_app/immutable/chunks/B5BlQANa2.js.br +0 -0
  26. package/dist/client/_app/immutable/chunks/B5BlQANa2.js.gz +0 -0
  27. package/dist/client/_app/immutable/chunks/B8J7ngcE2.js.gz +0 -0
  28. package/dist/client/_app/immutable/chunks/B9JPFI3C2.js.gz +0 -0
  29. package/dist/client/_app/immutable/chunks/BAdxhMRi.js +1 -0
  30. package/dist/client/_app/immutable/chunks/BAdxhMRi.js.br +0 -0
  31. package/dist/client/_app/immutable/chunks/BAdxhMRi.js.gz +0 -0
  32. package/dist/client/_app/immutable/chunks/BEEn4gHE.js.gz +0 -0
  33. package/dist/client/_app/immutable/chunks/BEtHBSE62.js.gz +0 -0
  34. package/dist/client/_app/immutable/chunks/BKFRmAUx.js +0 -0
  35. package/dist/client/_app/immutable/chunks/BKFRmAUx.js.br +1 -0
  36. package/dist/client/_app/immutable/chunks/BKFRmAUx.js.gz +0 -0
  37. package/dist/client/_app/immutable/chunks/BKxtCVv1.js.gz +0 -0
  38. package/dist/client/_app/immutable/chunks/BOotOW0E2.js.gz +0 -0
  39. package/dist/client/_app/immutable/chunks/BWPQTe0t.js.gz +0 -0
  40. package/dist/client/_app/immutable/chunks/BYgofb2h.js.gz +0 -0
  41. package/dist/client/_app/immutable/chunks/Ba7i2nA0.js.gz +0 -0
  42. package/dist/client/_app/immutable/chunks/Bc_sGQ0U.js.gz +0 -0
  43. package/dist/client/_app/immutable/chunks/Bd4_wRJp.js +1 -0
  44. package/dist/client/_app/immutable/chunks/Bd4_wRJp.js.br +0 -0
  45. package/dist/client/_app/immutable/chunks/Bd4_wRJp.js.gz +0 -0
  46. package/dist/client/_app/immutable/chunks/BeGwcela.js.gz +0 -0
  47. package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js +1 -0
  48. package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.br +0 -0
  49. package/dist/client/_app/immutable/chunks/Bfd-bGrZ2.js.gz +0 -0
  50. package/dist/client/_app/immutable/chunks/BgJkaMKb.js +1 -0
  51. package/dist/client/_app/immutable/chunks/BgJkaMKb.js.br +0 -0
  52. package/dist/client/_app/immutable/chunks/BgJkaMKb.js.gz +0 -0
  53. package/dist/client/_app/immutable/chunks/BpsTeBMk2.js +1 -0
  54. package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.br +0 -0
  55. package/dist/client/_app/immutable/chunks/BpsTeBMk2.js.gz +0 -0
  56. package/dist/client/_app/immutable/chunks/Bri6UV-V2.js.gz +0 -0
  57. package/dist/client/_app/immutable/chunks/BtTZd70i.js +293 -0
  58. package/dist/client/_app/immutable/chunks/BtTZd70i.js.br +0 -0
  59. package/dist/client/_app/immutable/chunks/BtTZd70i.js.gz +0 -0
  60. package/dist/client/_app/immutable/chunks/BvRk9kiK.js +0 -0
  61. package/dist/client/_app/immutable/chunks/BvRk9kiK.js.br +1 -0
  62. package/dist/client/_app/immutable/chunks/BvRk9kiK.js.gz +0 -0
  63. package/dist/client/_app/immutable/chunks/BwWrilGY.js.gz +0 -0
  64. package/dist/client/_app/immutable/chunks/Bxkupp3x.js.gz +0 -0
  65. package/dist/client/_app/immutable/chunks/Bz4Y3fRF.js.gz +0 -0
  66. package/dist/client/_app/immutable/chunks/C-y9NEjX2.js.gz +0 -0
  67. package/dist/client/_app/immutable/chunks/C50LmoI1.js +0 -0
  68. package/dist/client/_app/immutable/chunks/C50LmoI1.js.br +1 -0
  69. package/dist/client/_app/immutable/chunks/C50LmoI1.js.gz +0 -0
  70. package/dist/client/_app/immutable/chunks/C531GsRP.js.gz +0 -0
  71. package/dist/client/_app/immutable/chunks/C5_-GSwl2.js.gz +0 -0
  72. package/dist/client/_app/immutable/chunks/C7h46wYY.js.gz +0 -0
  73. package/dist/client/_app/immutable/chunks/C8Ef5oNN2.js.gz +0 -0
  74. package/dist/client/_app/immutable/chunks/CC2rA5mh.js.gz +0 -0
  75. package/dist/client/_app/immutable/chunks/CHHvlOt72.js +1 -0
  76. package/dist/client/_app/immutable/chunks/CHHvlOt72.js.br +0 -0
  77. package/dist/client/_app/immutable/chunks/CHHvlOt72.js.gz +0 -0
  78. package/dist/client/_app/immutable/chunks/CIPQ_RoX.js.gz +0 -0
  79. package/dist/client/_app/immutable/chunks/CN98h0cI2.js +1 -0
  80. package/dist/client/_app/immutable/chunks/CN98h0cI2.js.br +0 -0
  81. package/dist/client/_app/immutable/chunks/CN98h0cI2.js.gz +0 -0
  82. package/dist/client/_app/immutable/chunks/CNh34b3X2.js +1 -0
  83. package/dist/client/_app/immutable/chunks/CNh34b3X2.js.br +0 -0
  84. package/dist/client/_app/immutable/chunks/CNh34b3X2.js.gz +0 -0
  85. package/dist/client/_app/immutable/chunks/CRfGWb83.js.gz +0 -0
  86. package/dist/client/_app/immutable/chunks/CVaqCwHa.js.gz +0 -0
  87. package/dist/client/_app/immutable/chunks/CcwsVR0C.js.gz +0 -0
  88. package/dist/client/_app/immutable/chunks/CeXz7yzc.js +1 -0
  89. package/dist/client/_app/immutable/chunks/CeXz7yzc.js.br +3 -0
  90. package/dist/client/_app/immutable/chunks/CeXz7yzc.js.gz +0 -0
  91. package/dist/client/_app/immutable/chunks/CfSJPG6W2.js.gz +0 -0
  92. package/dist/client/_app/immutable/chunks/Cimd5fb32.js.gz +0 -0
  93. package/dist/client/_app/immutable/chunks/Cl5WnCnS.js +0 -0
  94. package/dist/client/_app/immutable/chunks/Cl5WnCnS.js.br +1 -0
  95. package/dist/client/_app/immutable/chunks/Cl5WnCnS.js.gz +0 -0
  96. package/dist/client/_app/immutable/chunks/ClamHrr6.js.gz +0 -0
  97. package/dist/client/_app/immutable/chunks/Cm7r79vr.js.gz +0 -0
  98. package/dist/client/_app/immutable/chunks/CopQ2nXW.js.gz +0 -0
  99. package/dist/client/_app/immutable/chunks/CpzslTdj2.js.gz +0 -0
  100. package/dist/client/_app/immutable/chunks/CsQS60Ue2.js.gz +0 -0
  101. package/dist/client/_app/immutable/chunks/CuyfOZTk2.js +4 -0
  102. package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.br +0 -0
  103. package/dist/client/_app/immutable/chunks/CuyfOZTk2.js.gz +0 -0
  104. package/dist/client/_app/immutable/chunks/CwcsJxhS2.js +1 -0
  105. package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.br +0 -0
  106. package/dist/client/_app/immutable/chunks/CwcsJxhS2.js.gz +0 -0
  107. package/dist/client/_app/immutable/chunks/{BnEty9Zf.js → Cx3ix-dL2.js} +1 -1
  108. package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.br +0 -0
  109. package/dist/client/_app/immutable/chunks/Cx3ix-dL2.js.gz +0 -0
  110. package/dist/client/_app/immutable/chunks/D-oSqn_W2.js.gz +0 -0
  111. package/dist/client/_app/immutable/chunks/D-ptJ9y-.js.gz +0 -0
  112. package/dist/client/_app/immutable/chunks/D05T4iGw2.js.gz +0 -0
  113. package/dist/client/_app/immutable/chunks/D3hlyOfw.js.gz +0 -0
  114. package/dist/client/_app/immutable/chunks/{Bi01QGTh2.js → D5kSEVHd2.js} +1 -1
  115. package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.br +0 -0
  116. package/dist/client/_app/immutable/chunks/D5kSEVHd2.js.gz +0 -0
  117. package/dist/client/_app/immutable/chunks/{B1bBmRUz2.js → D8HnIxQ42.js} +1 -1
  118. package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.br +0 -0
  119. package/dist/client/_app/immutable/chunks/D8HnIxQ42.js.gz +0 -0
  120. package/dist/client/_app/immutable/chunks/D8Kk1mwW.js +1 -0
  121. package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.br +0 -0
  122. package/dist/client/_app/immutable/chunks/D8Kk1mwW.js.gz +0 -0
  123. package/dist/client/_app/immutable/chunks/DHpiXF5c.js.gz +0 -0
  124. package/dist/client/_app/immutable/chunks/DIMkf-bt.js.gz +0 -0
  125. package/dist/client/_app/immutable/chunks/DISqw1ZD.js.gz +0 -0
  126. package/dist/client/_app/immutable/chunks/DJq0R92X.js +1 -0
  127. package/dist/client/_app/immutable/chunks/DJq0R92X.js.br +0 -0
  128. package/dist/client/_app/immutable/chunks/DJq0R92X.js.gz +0 -0
  129. package/dist/client/_app/immutable/chunks/DMUM7wLl.js.gz +0 -0
  130. package/dist/client/_app/immutable/chunks/DRG11iPc2.js +1 -0
  131. package/dist/client/_app/immutable/chunks/DRG11iPc2.js.br +0 -0
  132. package/dist/client/_app/immutable/chunks/DRG11iPc2.js.gz +0 -0
  133. package/dist/client/_app/immutable/chunks/DT7zqm-g.js.gz +0 -0
  134. package/dist/client/_app/immutable/chunks/DTj74zXo.js.gz +0 -0
  135. package/dist/client/_app/immutable/chunks/DV3o63ZY2.js.gz +0 -0
  136. package/dist/client/_app/immutable/chunks/DZFCIeNp2.js.gz +0 -0
  137. package/dist/client/_app/immutable/chunks/D_Lu-MrJ.js.gz +0 -0
  138. package/dist/client/_app/immutable/chunks/DauUninz.js.gz +0 -0
  139. package/dist/client/_app/immutable/chunks/DbInun42.js.gz +0 -0
  140. package/dist/client/_app/immutable/chunks/DdL9SqIa.js.gz +0 -0
  141. package/dist/client/_app/immutable/chunks/De2hgUGE.js.gz +0 -0
  142. package/dist/client/_app/immutable/chunks/DezsRK8O.js.gz +0 -0
  143. package/dist/client/_app/immutable/chunks/DgrK8UCQ.js +0 -0
  144. package/dist/client/_app/immutable/chunks/DgrK8UCQ.js.br +1 -0
  145. package/dist/client/_app/immutable/chunks/DgrK8UCQ.js.gz +0 -0
  146. package/dist/client/_app/immutable/chunks/DkqhCAOL.js.gz +0 -0
  147. package/dist/client/_app/immutable/chunks/DmHpPYUd.js.gz +0 -0
  148. package/dist/client/_app/immutable/chunks/DpFanUEy2.js.gz +0 -0
  149. package/dist/client/_app/immutable/chunks/DrH0SRf2.js.gz +0 -0
  150. package/dist/client/_app/immutable/chunks/Drjp27p72.js +872 -0
  151. package/dist/client/_app/immutable/chunks/Drjp27p72.js.br +0 -0
  152. package/dist/client/_app/immutable/chunks/Drjp27p72.js.gz +0 -0
  153. package/dist/client/_app/immutable/chunks/DybRo6-H.js +0 -0
  154. package/dist/client/_app/immutable/chunks/DybRo6-H.js.br +1 -0
  155. package/dist/client/_app/immutable/chunks/DybRo6-H.js.gz +0 -0
  156. package/dist/client/_app/immutable/chunks/FvmIjYaQ.js.gz +0 -0
  157. package/dist/client/_app/immutable/chunks/H2okCofJ.js +3 -0
  158. package/dist/client/_app/immutable/chunks/H2okCofJ.js.br +0 -0
  159. package/dist/client/_app/immutable/chunks/H2okCofJ.js.gz +0 -0
  160. package/dist/client/_app/immutable/chunks/JwdpM2S5.js +1 -0
  161. package/dist/client/_app/immutable/chunks/JwdpM2S5.js.br +0 -0
  162. package/dist/client/_app/immutable/chunks/JwdpM2S5.js.gz +0 -0
  163. package/dist/client/_app/immutable/chunks/NEE52Syq.js.gz +0 -0
  164. package/dist/client/_app/immutable/chunks/NRUHq-_72.js +1 -0
  165. package/dist/client/_app/immutable/chunks/NRUHq-_72.js.br +0 -0
  166. package/dist/client/_app/immutable/chunks/NRUHq-_72.js.gz +0 -0
  167. package/dist/client/_app/immutable/chunks/QKmwP2RH.js +6 -0
  168. package/dist/client/_app/immutable/chunks/QKmwP2RH.js.br +0 -0
  169. package/dist/client/_app/immutable/chunks/QKmwP2RH.js.gz +0 -0
  170. package/dist/client/_app/immutable/chunks/SOo6toE5.js.gz +0 -0
  171. package/dist/client/_app/immutable/chunks/{BwWFGvpp2.js → VTYQK3v_2.js} +2 -2
  172. package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.br +0 -0
  173. package/dist/client/_app/immutable/chunks/VTYQK3v_2.js.gz +0 -0
  174. package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js +2 -0
  175. package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.br +0 -0
  176. package/dist/client/_app/immutable/chunks/Wjj5hwVF2.js.gz +0 -0
  177. package/dist/client/_app/immutable/chunks/YpKUr6uE2.js +1 -0
  178. package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.br +0 -0
  179. package/dist/client/_app/immutable/chunks/YpKUr6uE2.js.gz +0 -0
  180. package/dist/client/_app/immutable/chunks/Z5eAx3Zn.js.gz +0 -0
  181. package/dist/client/_app/immutable/chunks/bTuwJoIa.js.gz +0 -0
  182. package/dist/client/_app/immutable/chunks/fmXr3nnJ2.js.gz +0 -0
  183. package/dist/client/_app/immutable/chunks/gp-XZpBa.js.gz +0 -0
  184. package/dist/client/_app/immutable/chunks/i0X4ZdIN.js.gz +0 -0
  185. package/dist/client/_app/immutable/chunks/nr791fC2.js.gz +0 -0
  186. package/dist/client/_app/immutable/chunks/onAF5SnQ2.js.gz +0 -0
  187. package/dist/client/_app/immutable/chunks/oz_6vUea.js.gz +0 -0
  188. package/dist/client/_app/immutable/chunks/sBoK_t0W2.js.gz +0 -0
  189. package/dist/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
  190. package/dist/client/_app/immutable/entry/app.CgTzSlEq.js +2 -0
  191. package/dist/client/_app/immutable/entry/app.CgTzSlEq.js.br +0 -0
  192. package/dist/client/_app/immutable/entry/app.CgTzSlEq.js.gz +0 -0
  193. package/dist/client/_app/immutable/entry/start.DeuMoHin.js +1 -0
  194. package/dist/client/_app/immutable/entry/start.DeuMoHin.js.br +1 -0
  195. package/dist/client/_app/immutable/entry/start.DeuMoHin.js.gz +0 -0
  196. package/dist/client/_app/immutable/nodes/0.HtU0ZBoq.js +9 -0
  197. package/dist/client/_app/immutable/nodes/0.HtU0ZBoq.js.br +0 -0
  198. package/dist/client/_app/immutable/nodes/0.HtU0ZBoq.js.gz +0 -0
  199. package/dist/client/_app/immutable/nodes/1.Hn-xzJlH.js +1 -0
  200. package/dist/client/_app/immutable/nodes/1.Hn-xzJlH.js.br +0 -0
  201. package/dist/client/_app/immutable/nodes/1.Hn-xzJlH.js.gz +0 -0
  202. package/dist/client/_app/immutable/nodes/10.5lzO6BCT.js +6 -0
  203. package/dist/client/_app/immutable/nodes/10.5lzO6BCT.js.br +0 -0
  204. package/dist/client/_app/immutable/nodes/10.5lzO6BCT.js.gz +0 -0
  205. package/dist/client/_app/immutable/nodes/2.BrjqCWm0.js +1 -0
  206. package/dist/client/_app/immutable/nodes/2.BrjqCWm0.js.br +0 -0
  207. package/dist/client/_app/immutable/nodes/2.BrjqCWm0.js.gz +0 -0
  208. package/dist/client/_app/immutable/nodes/9.Cr9x1mlV.js +1 -0
  209. package/dist/client/_app/immutable/nodes/9.Cr9x1mlV.js.br +0 -0
  210. package/dist/client/_app/immutable/nodes/9.Cr9x1mlV.js.gz +0 -0
  211. package/dist/client/_app/immutable/workers/{css.worker-DRFWP4k7.js → css.worker-CvXBzhp8.js} +2 -2
  212. package/dist/client/_app/immutable/workers/css.worker-CvXBzhp8.js.br +0 -0
  213. package/dist/client/_app/immutable/workers/css.worker-CvXBzhp8.js.gz +0 -0
  214. package/dist/client/_app/immutable/workers/{html.worker-CXAEVlCI.js → html.worker-BO6WuOEO.js} +3 -3
  215. package/dist/client/_app/immutable/workers/html.worker-BO6WuOEO.js.br +0 -0
  216. package/dist/client/_app/immutable/workers/html.worker-BO6WuOEO.js.gz +0 -0
  217. package/dist/client/_app/immutable/workers/{json.worker-Dkwen84u.js → json.worker-BkJRGcCJ.js} +2 -2
  218. package/dist/client/_app/immutable/workers/json.worker-BkJRGcCJ.js.br +0 -0
  219. package/dist/client/_app/immutable/workers/json.worker-BkJRGcCJ.js.gz +0 -0
  220. package/dist/client/_app/immutable/workers/{ts.worker-DJwDx_mp.js → ts.worker-B0J26iPs.js} +33 -18
  221. package/dist/client/_app/immutable/workers/ts.worker-B0J26iPs.js.br +0 -0
  222. package/dist/client/_app/immutable/workers/ts.worker-B0J26iPs.js.gz +0 -0
  223. package/dist/client/_app/version.json +1 -1
  224. package/dist/client/_app/version.json.br +0 -0
  225. package/dist/client/_app/version.json.gz +0 -0
  226. package/dist/client/assets/fonts/dmmono-53a90e28.woff2 +0 -0
  227. package/dist/client/assets/fonts/dmmono-cd6ed524.woff2 +0 -0
  228. package/dist/client/assets/fonts/dmsans-56778fc7.woff2 +0 -0
  229. package/dist/client/assets/fonts/dmsans-7c37c8a6.woff2 +0 -0
  230. package/dist/client/assets/fonts/dmserifdisplay-1f997542.woff2 +0 -0
  231. package/dist/client/assets/fonts/dmserifdisplay-b6206db2.woff2 +0 -0
  232. package/dist/client/favicon.svg.gz +0 -0
  233. package/dist/server/chunks/0-CQDIDss4.js +16 -0
  234. package/dist/server/chunks/0-CQDIDss4.js.map +1 -0
  235. package/dist/server/chunks/{1-BgVLfks1.js → 1-CYyEReIL.js} +7 -7
  236. package/dist/server/chunks/{1-BgVLfks1.js.map → 1-CYyEReIL.js.map} +1 -1
  237. package/dist/server/chunks/10-D0mJxn8S.js +22 -0
  238. package/dist/server/chunks/10-D0mJxn8S.js.map +1 -0
  239. package/dist/server/chunks/{2-CzdRJh2P.js → 2-COraPbPF.js} +13 -13
  240. package/dist/server/chunks/2-COraPbPF.js.map +1 -0
  241. package/dist/server/chunks/3-CcIZ_M60.js +152 -0
  242. package/dist/server/chunks/3-CcIZ_M60.js.map +1 -0
  243. package/dist/server/chunks/4-DyArZX6h.js +21 -0
  244. package/dist/server/chunks/4-DyArZX6h.js.map +1 -0
  245. package/dist/server/chunks/5-DVrv6Zto.js +21 -0
  246. package/dist/server/chunks/5-DVrv6Zto.js.map +1 -0
  247. package/dist/server/chunks/6-AD0Ee23-.js +65 -0
  248. package/dist/server/chunks/6-AD0Ee23-.js.map +1 -0
  249. package/dist/server/chunks/7-CuJ7XfzT.js +27 -0
  250. package/dist/server/chunks/7-CuJ7XfzT.js.map +1 -0
  251. package/dist/server/chunks/8-CRPOubhA.js +27 -0
  252. package/dist/server/chunks/8-CRPOubhA.js.map +1 -0
  253. package/dist/server/chunks/9-Bk259Pew.js +22 -0
  254. package/dist/server/chunks/9-Bk259Pew.js.map +1 -0
  255. package/dist/server/chunks/_layout.svelte-CP4jFwsK.js +1944 -0
  256. package/dist/server/chunks/_layout.svelte-CP4jFwsK.js.map +1 -0
  257. package/dist/server/chunks/_page.svelte-C7h5iN8e.js +599 -0
  258. package/dist/server/chunks/_page.svelte-C7h5iN8e.js.map +1 -0
  259. package/dist/server/chunks/_page.svelte-DNEdNwOa.js +155 -0
  260. package/dist/server/chunks/_page.svelte-DNEdNwOa.js.map +1 -0
  261. package/dist/server/chunks/_page.svelte-aqS45KvA.js +6249 -0
  262. package/dist/server/chunks/_page.svelte-aqS45KvA.js.map +1 -0
  263. package/dist/server/chunks/_server.ts-BYvWhjnh.js +19 -0
  264. package/dist/server/chunks/_server.ts-BYvWhjnh.js.map +1 -0
  265. package/dist/server/chunks/_server.ts-CrY08U-x.js +35 -0
  266. package/dist/server/chunks/_server.ts-CrY08U-x.js.map +1 -0
  267. package/dist/server/chunks/{app-l-cuFP__.js → app-DUeJj5RD.js} +1 -1
  268. package/dist/server/chunks/app-DUeJj5RD.js.map +1 -0
  269. package/dist/server/chunks/{chunk-9PtDFT_4.js → chunk-ByNZkrT6.js} +5 -7
  270. package/dist/server/chunks/chunk-ByNZkrT6.js.map +1 -0
  271. package/dist/server/chunks/chunk-D7D4PA-g.js +13 -0
  272. package/dist/server/chunks/{client-Dx0O-q6m.js → client-BpCCCb_o.js} +53 -9
  273. package/dist/server/chunks/client-BpCCCb_o.js.map +1 -0
  274. package/dist/server/chunks/const-Dy5RfQqP.js +17 -0
  275. package/dist/server/chunks/const-Dy5RfQqP.js.map +1 -0
  276. package/dist/server/chunks/error-CFpEevfM.js +14938 -0
  277. package/dist/server/chunks/error-CFpEevfM.js.map +1 -0
  278. package/dist/server/chunks/error.svelte-DoUr3CqI.js +12 -0
  279. package/dist/server/chunks/error.svelte-DoUr3CqI.js.map +1 -0
  280. package/dist/server/chunks/{dev-7V6fUCff.js → events-DeYJGjCt.js} +621 -150
  281. package/dist/server/chunks/events-DeYJGjCt.js.map +1 -0
  282. package/dist/server/chunks/{exports-j3HcL9It.js → exports-8wSs4fiF.js} +4 -5
  283. package/dist/server/chunks/exports-8wSs4fiF.js.map +1 -0
  284. package/dist/server/chunks/format-DGOlJxF5.js +123 -0
  285. package/dist/server/chunks/format-DGOlJxF5.js.map +1 -0
  286. package/dist/server/chunks/hooks.server-CG8Cy27D.js +362 -0
  287. package/dist/server/chunks/hooks.server-CG8Cy27D.js.map +1 -0
  288. package/dist/server/chunks/{hooks.universal-0JHSyeLw.js → hooks.universal-DhGFdBkK.js} +2 -2
  289. package/dist/server/chunks/{hooks.universal-0JHSyeLw.js.map → hooks.universal-DhGFdBkK.js.map} +1 -1
  290. package/dist/server/chunks/{internal-BqoJe00m.js → internal-DXl_jCjC.js} +184 -253
  291. package/dist/server/chunks/internal-DXl_jCjC.js.map +1 -0
  292. package/dist/server/chunks/{internal-BgFVxXcc.js → internal-eM0YTBgj.js} +2 -2
  293. package/dist/server/chunks/{internal-BgFVxXcc.js.map → internal-eM0YTBgj.js.map} +1 -1
  294. package/dist/server/chunks/loader-circle-zqx69BdD.js +1592 -0
  295. package/dist/server/chunks/loader-circle-zqx69BdD.js.map +1 -0
  296. package/dist/server/chunks/logo-BCJKEF48.js +848 -0
  297. package/dist/server/chunks/logo-BCJKEF48.js.map +1 -0
  298. package/dist/server/chunks/project-loader-Q4QyAH66.js +185 -0
  299. package/dist/server/chunks/project-loader-Q4QyAH66.js.map +1 -0
  300. package/dist/server/chunks/request-handler-D-qbwxhh.js +1084 -0
  301. package/dist/server/chunks/request-handler-D-qbwxhh.js.map +1 -0
  302. package/dist/server/chunks/{runtime-ISoc6PNh.js → runtime-CDHWD9vo.js} +3 -7
  303. package/dist/server/chunks/runtime-CDHWD9vo.js.map +1 -0
  304. package/dist/server/chunks/schemas-CyYMWYjZ.js +11324 -0
  305. package/dist/server/chunks/schemas-CyYMWYjZ.js.map +1 -0
  306. package/dist/server/chunks/{hooks.server-DqaQ1y1I.js → session-CmQRz9-0.js} +77 -368
  307. package/dist/server/chunks/session-CmQRz9-0.js.map +1 -0
  308. package/dist/server/chunks/{shared-server-D--cyMsO.js → shared-server-Cha0Qlv9.js} +1 -1
  309. package/dist/server/chunks/shared-server-Cha0Qlv9.js.map +1 -0
  310. package/dist/server/chunks/{error.svelte-C5CCEI9O.js → state-UEnMVrEd.js} +5 -33
  311. package/dist/server/chunks/state-UEnMVrEd.js.map +1 -0
  312. package/dist/server/chunks/window-D774FEA_.js +6 -0
  313. package/dist/server/chunks/window-D774FEA_.js.map +1 -0
  314. package/dist/server/index.js +381 -231
  315. package/dist/server/index.js.map +1 -1
  316. package/dist/server/manifest.js +98 -26
  317. package/dist/server/manifest.js.map +1 -1
  318. package/package.json +55 -41
  319. package/dist/client/_app/immutable/assets/0.562EP7L3.css +0 -1
  320. package/dist/client/_app/immutable/assets/0.562EP7L3.css.br +0 -0
  321. package/dist/client/_app/immutable/assets/0.562EP7L3.css.gz +0 -0
  322. package/dist/client/_app/immutable/assets/2.Dl9w-_FK.css +0 -1
  323. package/dist/client/_app/immutable/assets/2.Dl9w-_FK.css.br +0 -0
  324. package/dist/client/_app/immutable/assets/2.Dl9w-_FK.css.gz +0 -0
  325. package/dist/client/_app/immutable/assets/api.CD54FDqW.css +0 -1
  326. package/dist/client/_app/immutable/assets/api.CD54FDqW.css.br +0 -0
  327. package/dist/client/_app/immutable/assets/api.CD54FDqW.css.gz +0 -0
  328. package/dist/client/_app/immutable/chunks/0wEXW2Hc2.js +0 -1
  329. package/dist/client/_app/immutable/chunks/0wEXW2Hc2.js.br +0 -0
  330. package/dist/client/_app/immutable/chunks/0wEXW2Hc2.js.gz +0 -0
  331. package/dist/client/_app/immutable/chunks/1rG2eYdz2.js.gz +0 -0
  332. package/dist/client/_app/immutable/chunks/5CAt0tAC.js.gz +0 -0
  333. package/dist/client/_app/immutable/chunks/5TEFcS4X2.js.gz +0 -0
  334. package/dist/client/_app/immutable/chunks/5k3Q8YWH.js.gz +0 -0
  335. package/dist/client/_app/immutable/chunks/B0Q9zT_Q.js.gz +0 -0
  336. package/dist/client/_app/immutable/chunks/B1GYE4NT.js.gz +0 -0
  337. package/dist/client/_app/immutable/chunks/B1bBmRUz2.js.br +0 -0
  338. package/dist/client/_app/immutable/chunks/B1bBmRUz2.js.gz +0 -0
  339. package/dist/client/_app/immutable/chunks/B3IjbASq.js.gz +0 -0
  340. package/dist/client/_app/immutable/chunks/B3VOL0kZ.js.gz +0 -0
  341. package/dist/client/_app/immutable/chunks/B5crfj0i.js.gz +0 -0
  342. package/dist/client/_app/immutable/chunks/BAtlESPp.js.gz +0 -0
  343. package/dist/client/_app/immutable/chunks/BCAAnHTF2.js.gz +0 -0
  344. package/dist/client/_app/immutable/chunks/BEN0jOJp.js +0 -1
  345. package/dist/client/_app/immutable/chunks/BEN0jOJp.js.br +0 -0
  346. package/dist/client/_app/immutable/chunks/BEN0jOJp.js.gz +0 -0
  347. package/dist/client/_app/immutable/chunks/BHHccBgG2.js +0 -1
  348. package/dist/client/_app/immutable/chunks/BHHccBgG2.js.br +0 -0
  349. package/dist/client/_app/immutable/chunks/BHHccBgG2.js.gz +0 -0
  350. package/dist/client/_app/immutable/chunks/BHxBHC3k.js.gz +0 -0
  351. package/dist/client/_app/immutable/chunks/BK6ghPUh.js +0 -1
  352. package/dist/client/_app/immutable/chunks/BK6ghPUh.js.br +0 -0
  353. package/dist/client/_app/immutable/chunks/BK6ghPUh.js.gz +0 -0
  354. package/dist/client/_app/immutable/chunks/BL9YzxJT.js.gz +0 -0
  355. package/dist/client/_app/immutable/chunks/BNqbTcCU.js.gz +0 -0
  356. package/dist/client/_app/immutable/chunks/BSRtLNCV.js +0 -3
  357. package/dist/client/_app/immutable/chunks/BSRtLNCV.js.br +0 -0
  358. package/dist/client/_app/immutable/chunks/BSRtLNCV.js.gz +0 -0
  359. package/dist/client/_app/immutable/chunks/BSa9oWuP.js.gz +0 -0
  360. package/dist/client/_app/immutable/chunks/BTEHXt4u.js.gz +0 -0
  361. package/dist/client/_app/immutable/chunks/BUMhJFWc.js.gz +0 -0
  362. package/dist/client/_app/immutable/chunks/BXNW00E2.js.gz +0 -0
  363. package/dist/client/_app/immutable/chunks/B__0yjCH2.js.gz +0 -0
  364. package/dist/client/_app/immutable/chunks/B_rYXvqX.js.gz +0 -0
  365. package/dist/client/_app/immutable/chunks/BaORWDBQ.js.gz +0 -0
  366. package/dist/client/_app/immutable/chunks/BeRB61Rp.js.gz +0 -0
  367. package/dist/client/_app/immutable/chunks/Berct1R62.js +0 -1
  368. package/dist/client/_app/immutable/chunks/Berct1R62.js.br +0 -0
  369. package/dist/client/_app/immutable/chunks/Berct1R62.js.gz +0 -0
  370. package/dist/client/_app/immutable/chunks/Bi01QGTh2.js.br +0 -0
  371. package/dist/client/_app/immutable/chunks/Bi01QGTh2.js.gz +0 -0
  372. package/dist/client/_app/immutable/chunks/BnEty9Zf.js.br +0 -0
  373. package/dist/client/_app/immutable/chunks/BnEty9Zf.js.gz +0 -0
  374. package/dist/client/_app/immutable/chunks/Bp42GhE_.js.gz +0 -0
  375. package/dist/client/_app/immutable/chunks/BqR20QL0.js.gz +0 -0
  376. package/dist/client/_app/immutable/chunks/BuvsQ_0P.js.gz +0 -0
  377. package/dist/client/_app/immutable/chunks/BwWFGvpp2.js.br +0 -0
  378. package/dist/client/_app/immutable/chunks/BwWFGvpp2.js.gz +0 -0
  379. package/dist/client/_app/immutable/chunks/BxyUv_372.js.gz +0 -0
  380. package/dist/client/_app/immutable/chunks/C459oz3p.js.gz +0 -0
  381. package/dist/client/_app/immutable/chunks/C4oBl-ul.js.gz +0 -0
  382. package/dist/client/_app/immutable/chunks/C5dBxjD0.js.gz +0 -0
  383. package/dist/client/_app/immutable/chunks/C7TuqZTk.js.gz +0 -0
  384. package/dist/client/_app/immutable/chunks/C84aX3eL2.js.gz +0 -0
  385. package/dist/client/_app/immutable/chunks/CGFoxiJT2.js.gz +0 -0
  386. package/dist/client/_app/immutable/chunks/CGdCAl_w2.js.gz +0 -0
  387. package/dist/client/_app/immutable/chunks/CJL4GRLV2.js.gz +0 -0
  388. package/dist/client/_app/immutable/chunks/CKihvhpr.js.gz +0 -0
  389. package/dist/client/_app/immutable/chunks/CKybJfA6.js.gz +0 -0
  390. package/dist/client/_app/immutable/chunks/CQai7aNJ.js.gz +0 -0
  391. package/dist/client/_app/immutable/chunks/CQghOihB.js.gz +0 -0
  392. package/dist/client/_app/immutable/chunks/CTK4WrGL2.js +0 -1
  393. package/dist/client/_app/immutable/chunks/CTK4WrGL2.js.br +0 -0
  394. package/dist/client/_app/immutable/chunks/CTK4WrGL2.js.gz +0 -0
  395. package/dist/client/_app/immutable/chunks/CUVqITEW2.js +0 -1
  396. package/dist/client/_app/immutable/chunks/CUVqITEW2.js.br +0 -0
  397. package/dist/client/_app/immutable/chunks/CUVqITEW2.js.gz +0 -0
  398. package/dist/client/_app/immutable/chunks/CVmNMiIj.js +0 -1
  399. package/dist/client/_app/immutable/chunks/CVmNMiIj.js.br +0 -0
  400. package/dist/client/_app/immutable/chunks/CVmNMiIj.js.gz +0 -0
  401. package/dist/client/_app/immutable/chunks/CW_66Q8N.js +0 -872
  402. package/dist/client/_app/immutable/chunks/CW_66Q8N.js.br +0 -0
  403. package/dist/client/_app/immutable/chunks/CW_66Q8N.js.gz +0 -0
  404. package/dist/client/_app/immutable/chunks/CXBbh9s-.js.gz +0 -0
  405. package/dist/client/_app/immutable/chunks/CXlfFz7D2.js +0 -1
  406. package/dist/client/_app/immutable/chunks/CXlfFz7D2.js.br +0 -0
  407. package/dist/client/_app/immutable/chunks/CXlfFz7D2.js.gz +0 -0
  408. package/dist/client/_app/immutable/chunks/C_QqwttH.js.gz +0 -0
  409. package/dist/client/_app/immutable/chunks/CbFxQFBh.js.gz +0 -0
  410. package/dist/client/_app/immutable/chunks/CmjNmBcK.js +0 -1
  411. package/dist/client/_app/immutable/chunks/CmjNmBcK.js.br +0 -0
  412. package/dist/client/_app/immutable/chunks/CmjNmBcK.js.gz +0 -0
  413. package/dist/client/_app/immutable/chunks/CntDmp6G.js.gz +0 -0
  414. package/dist/client/_app/immutable/chunks/CqqoQT4S.js.gz +0 -0
  415. package/dist/client/_app/immutable/chunks/CtzzCjLE2.js.gz +0 -0
  416. package/dist/client/_app/immutable/chunks/CziQemry2.js.gz +0 -0
  417. package/dist/client/_app/immutable/chunks/Czovc13W.js +0 -1
  418. package/dist/client/_app/immutable/chunks/Czovc13W.js.br +0 -0
  419. package/dist/client/_app/immutable/chunks/Czovc13W.js.gz +0 -0
  420. package/dist/client/_app/immutable/chunks/D38BHtSY.js.gz +0 -0
  421. package/dist/client/_app/immutable/chunks/DBkS_L3S.js.gz +0 -0
  422. package/dist/client/_app/immutable/chunks/DEoC-BX-.js +0 -11
  423. package/dist/client/_app/immutable/chunks/DEoC-BX-.js.br +0 -0
  424. package/dist/client/_app/immutable/chunks/DEoC-BX-.js.gz +0 -0
  425. package/dist/client/_app/immutable/chunks/DHkiqSLl.js.gz +0 -0
  426. package/dist/client/_app/immutable/chunks/DL7ZpfJd.js +0 -1
  427. package/dist/client/_app/immutable/chunks/DL7ZpfJd.js.br +0 -0
  428. package/dist/client/_app/immutable/chunks/DL7ZpfJd.js.gz +0 -0
  429. package/dist/client/_app/immutable/chunks/DUC3NMun2.js +0 -4
  430. package/dist/client/_app/immutable/chunks/DUC3NMun2.js.br +0 -0
  431. package/dist/client/_app/immutable/chunks/DUC3NMun2.js.gz +0 -0
  432. package/dist/client/_app/immutable/chunks/DWUlubL2.js.gz +0 -0
  433. package/dist/client/_app/immutable/chunks/D_HtEbjl.js.gz +0 -0
  434. package/dist/client/_app/immutable/chunks/DaCLQrfC.js.gz +0 -0
  435. package/dist/client/_app/immutable/chunks/DbxPn-f9.js.gz +0 -0
  436. package/dist/client/_app/immutable/chunks/DhPi0T7V2.js.gz +0 -0
  437. package/dist/client/_app/immutable/chunks/DkZEX-tr.js.gz +0 -0
  438. package/dist/client/_app/immutable/chunks/Dqs1VwMg2.js +0 -1
  439. package/dist/client/_app/immutable/chunks/Dqs1VwMg2.js.br +0 -0
  440. package/dist/client/_app/immutable/chunks/Dqs1VwMg2.js.gz +0 -0
  441. package/dist/client/_app/immutable/chunks/DrDIkqkr2.js.gz +0 -0
  442. package/dist/client/_app/immutable/chunks/DunPnEs5.js.gz +0 -0
  443. package/dist/client/_app/immutable/chunks/DxLN9Q9A.js +0 -1
  444. package/dist/client/_app/immutable/chunks/DxLN9Q9A.js.br +0 -0
  445. package/dist/client/_app/immutable/chunks/DxLN9Q9A.js.gz +0 -0
  446. package/dist/client/_app/immutable/chunks/GhmjqkHA.js +0 -1
  447. package/dist/client/_app/immutable/chunks/GhmjqkHA.js.br +0 -0
  448. package/dist/client/_app/immutable/chunks/GhmjqkHA.js.gz +0 -0
  449. package/dist/client/_app/immutable/chunks/H_bCfo1Z.js +0 -1
  450. package/dist/client/_app/immutable/chunks/H_bCfo1Z.js.br +0 -1
  451. package/dist/client/_app/immutable/chunks/H_bCfo1Z.js.gz +0 -0
  452. package/dist/client/_app/immutable/chunks/KoMdYtDs2.js.gz +0 -0
  453. package/dist/client/_app/immutable/chunks/OELm4xo1.js.gz +0 -0
  454. package/dist/client/_app/immutable/chunks/OdxrjoDx.js.gz +0 -0
  455. package/dist/client/_app/immutable/chunks/SlhV96tq.js.gz +0 -0
  456. package/dist/client/_app/immutable/chunks/X9L1iai42.js.gz +0 -0
  457. package/dist/client/_app/immutable/chunks/XIokwnxj2.js.br +0 -0
  458. package/dist/client/_app/immutable/chunks/XIokwnxj2.js.gz +0 -0
  459. package/dist/client/_app/immutable/chunks/ZmwXQQ8p.js +0 -1
  460. package/dist/client/_app/immutable/chunks/ZmwXQQ8p.js.br +0 -0
  461. package/dist/client/_app/immutable/chunks/ZmwXQQ8p.js.gz +0 -0
  462. package/dist/client/_app/immutable/chunks/acVTcwNd.js.gz +0 -0
  463. package/dist/client/_app/immutable/chunks/bLoc39kl.js +0 -2
  464. package/dist/client/_app/immutable/chunks/bLoc39kl.js.br +0 -0
  465. package/dist/client/_app/immutable/chunks/bLoc39kl.js.gz +0 -0
  466. package/dist/client/_app/immutable/chunks/dm7qVrFn2.js.gz +0 -0
  467. package/dist/client/_app/immutable/chunks/if7vWS9-.js.gz +0 -0
  468. package/dist/client/_app/immutable/chunks/kAc38cH_.js.gz +0 -0
  469. package/dist/client/_app/immutable/chunks/kks0AxFY2.js.gz +0 -0
  470. package/dist/client/_app/immutable/chunks/mA7hbneB.js.gz +0 -0
  471. package/dist/client/_app/immutable/chunks/qWHUp0PJ2.js.gz +0 -0
  472. package/dist/client/_app/immutable/chunks/u6JPB_fg2.js.gz +0 -0
  473. package/dist/client/_app/immutable/chunks/v_jBEYI6.js.gz +0 -0
  474. package/dist/client/_app/immutable/chunks/x4VkYCou2.js.gz +0 -0
  475. package/dist/client/_app/immutable/entry/app.CrM2Umgq.js +0 -2
  476. package/dist/client/_app/immutable/entry/app.CrM2Umgq.js.br +0 -0
  477. package/dist/client/_app/immutable/entry/app.CrM2Umgq.js.gz +0 -0
  478. package/dist/client/_app/immutable/entry/start.25Vi3KZA.js +0 -1
  479. package/dist/client/_app/immutable/entry/start.25Vi3KZA.js.br +0 -0
  480. package/dist/client/_app/immutable/entry/start.25Vi3KZA.js.gz +0 -0
  481. package/dist/client/_app/immutable/nodes/0.Ck5XUPzX.js +0 -1
  482. package/dist/client/_app/immutable/nodes/0.Ck5XUPzX.js.br +0 -0
  483. package/dist/client/_app/immutable/nodes/0.Ck5XUPzX.js.gz +0 -0
  484. package/dist/client/_app/immutable/nodes/1.Dpx0WKl2.js +0 -1
  485. package/dist/client/_app/immutable/nodes/1.Dpx0WKl2.js.br +0 -0
  486. package/dist/client/_app/immutable/nodes/1.Dpx0WKl2.js.gz +0 -0
  487. package/dist/client/_app/immutable/nodes/2.CwofzauD.js +0 -4
  488. package/dist/client/_app/immutable/nodes/2.CwofzauD.js.br +0 -0
  489. package/dist/client/_app/immutable/nodes/2.CwofzauD.js.gz +0 -0
  490. package/dist/client/_app/immutable/nodes/3.CU9DPzka.js +0 -1
  491. package/dist/client/_app/immutable/nodes/3.CU9DPzka.js.br +0 -0
  492. package/dist/client/_app/immutable/nodes/3.CU9DPzka.js.gz +0 -0
  493. package/dist/client/_app/immutable/nodes/4.P9ayzmJ4.js +0 -5
  494. package/dist/client/_app/immutable/nodes/4.P9ayzmJ4.js.br +0 -0
  495. package/dist/client/_app/immutable/nodes/4.P9ayzmJ4.js.gz +0 -0
  496. package/dist/client/_app/immutable/nodes/5.Dcsjm3Pq.js +0 -1
  497. package/dist/client/_app/immutable/nodes/5.Dcsjm3Pq.js.br +0 -0
  498. package/dist/client/_app/immutable/nodes/5.Dcsjm3Pq.js.gz +0 -0
  499. package/dist/client/_app/immutable/workers/css.worker-DRFWP4k7.js.br +0 -0
  500. package/dist/client/_app/immutable/workers/css.worker-DRFWP4k7.js.gz +0 -0
  501. package/dist/client/_app/immutable/workers/html.worker-CXAEVlCI.js.br +0 -0
  502. package/dist/client/_app/immutable/workers/html.worker-CXAEVlCI.js.gz +0 -0
  503. package/dist/client/_app/immutable/workers/json.worker-Dkwen84u.js.br +0 -0
  504. package/dist/client/_app/immutable/workers/json.worker-Dkwen84u.js.gz +0 -0
  505. package/dist/client/_app/immutable/workers/ts.worker-DJwDx_mp.js.br +0 -0
  506. package/dist/client/_app/immutable/workers/ts.worker-DJwDx_mp.js.gz +0 -0
  507. package/dist/server/chunks/0-DmwMCtOF.js +0 -16
  508. package/dist/server/chunks/0-DmwMCtOF.js.map +0 -1
  509. package/dist/server/chunks/2-CzdRJh2P.js.map +0 -1
  510. package/dist/server/chunks/3-C6uctiU1.js +0 -185
  511. package/dist/server/chunks/3-C6uctiU1.js.map +0 -1
  512. package/dist/server/chunks/4-BO3KTp14.js +0 -390
  513. package/dist/server/chunks/4-BO3KTp14.js.map +0 -1
  514. package/dist/server/chunks/5-LbaHRTVX.js +0 -259
  515. package/dist/server/chunks/5-LbaHRTVX.js.map +0 -1
  516. package/dist/server/chunks/_layout.svelte-BzcRjvYO.js +0 -11
  517. package/dist/server/chunks/_layout.svelte-BzcRjvYO.js.map +0 -1
  518. package/dist/server/chunks/_page.svelte-CB5X_URD.js +0 -197
  519. package/dist/server/chunks/_page.svelte-CB5X_URD.js.map +0 -1
  520. package/dist/server/chunks/_page.svelte-DMwjXpw4.js +0 -13
  521. package/dist/server/chunks/_page.svelte-DMwjXpw4.js.map +0 -1
  522. package/dist/server/chunks/_page.svelte-XIYDQw7d.js +0 -14
  523. package/dist/server/chunks/_page.svelte-XIYDQw7d.js.map +0 -1
  524. package/dist/server/chunks/_page.svelte-paWD_HcG.js +0 -4302
  525. package/dist/server/chunks/_page.svelte-paWD_HcG.js.map +0 -1
  526. package/dist/server/chunks/api-9BLkbfaG.js +0 -9126
  527. package/dist/server/chunks/api-9BLkbfaG.js.map +0 -1
  528. package/dist/server/chunks/app-l-cuFP__.js.map +0 -1
  529. package/dist/server/chunks/client-Dx0O-q6m.js.map +0 -1
  530. package/dist/server/chunks/dev-7V6fUCff.js.map +0 -1
  531. package/dist/server/chunks/error.svelte-C5CCEI9O.js.map +0 -1
  532. package/dist/server/chunks/exports-j3HcL9It.js.map +0 -1
  533. package/dist/server/chunks/forms-CffPpDq6.js +0 -36
  534. package/dist/server/chunks/forms-CffPpDq6.js.map +0 -1
  535. package/dist/server/chunks/hooks.server-DqaQ1y1I.js.map +0 -1
  536. package/dist/server/chunks/internal-BqoJe00m.js.map +0 -1
  537. package/dist/server/chunks/runtime-ISoc6PNh.js.map +0 -1
  538. package/dist/server/chunks/server-BlOy0jJl.js +0 -91
  539. package/dist/server/chunks/server-BlOy0jJl.js.map +0 -1
  540. package/dist/server/chunks/shared-server-D--cyMsO.js.map +0 -1
  541. /package/dist/client/_app/immutable/chunks/{DkZEX-tr.js → 08VXUWAP.js} +0 -0
  542. /package/dist/client/_app/immutable/chunks/{DkZEX-tr.js.br → 08VXUWAP.js.br} +0 -0
  543. /package/dist/client/_app/immutable/chunks/{5CAt0tAC.js → 43DmfD33.js} +0 -0
  544. /package/dist/client/_app/immutable/chunks/{5CAt0tAC.js.br → 43DmfD33.js.br} +0 -0
  545. /package/dist/client/_app/immutable/chunks/{CQghOihB.js → 6RTg0lbw2.js} +0 -0
  546. /package/dist/client/_app/immutable/chunks/{CQghOihB.js.br → 6RTg0lbw2.js.br} +0 -0
  547. /package/dist/client/_app/immutable/chunks/{CqqoQT4S.js → B5-_aFwp.js} +0 -0
  548. /package/dist/client/_app/immutable/chunks/{CqqoQT4S.js.br → B5-_aFwp.js.br} +0 -0
  549. /package/dist/client/_app/immutable/chunks/{BNqbTcCU.js → B8J7ngcE2.js} +0 -0
  550. /package/dist/client/_app/immutable/chunks/{BNqbTcCU.js.br → B8J7ngcE2.js.br} +0 -0
  551. /package/dist/client/_app/immutable/chunks/{C84aX3eL2.js → B9JPFI3C2.js} +0 -0
  552. /package/dist/client/_app/immutable/chunks/{C84aX3eL2.js.br → B9JPFI3C2.js.br} +0 -0
  553. /package/dist/client/_app/immutable/chunks/{Bp42GhE_.js → BEEn4gHE.js} +0 -0
  554. /package/dist/client/_app/immutable/chunks/{Bp42GhE_.js.br → BEEn4gHE.js.br} +0 -0
  555. /package/dist/client/_app/immutable/chunks/{BxyUv_372.js → BEtHBSE62.js} +0 -0
  556. /package/dist/client/_app/immutable/chunks/{BxyUv_372.js.br → BEtHBSE62.js.br} +0 -0
  557. /package/dist/client/_app/immutable/chunks/{DunPnEs5.js → BKxtCVv1.js} +0 -0
  558. /package/dist/client/_app/immutable/chunks/{DunPnEs5.js.br → BKxtCVv1.js.br} +0 -0
  559. /package/dist/client/_app/immutable/chunks/{CJL4GRLV2.js → BOotOW0E2.js} +0 -0
  560. /package/dist/client/_app/immutable/chunks/{CJL4GRLV2.js.br → BOotOW0E2.js.br} +0 -0
  561. /package/dist/client/_app/immutable/chunks/{C5dBxjD0.js → BWPQTe0t.js} +0 -0
  562. /package/dist/client/_app/immutable/chunks/{C5dBxjD0.js.br → BWPQTe0t.js.br} +0 -0
  563. /package/dist/client/_app/immutable/chunks/{B5crfj0i.js → BYgofb2h.js} +0 -0
  564. /package/dist/client/_app/immutable/chunks/{B5crfj0i.js.br → BYgofb2h.js.br} +0 -0
  565. /package/dist/client/_app/immutable/chunks/{BeRB61Rp.js → Ba7i2nA0.js} +0 -0
  566. /package/dist/client/_app/immutable/chunks/{BeRB61Rp.js.br → Ba7i2nA0.js.br} +0 -0
  567. /package/dist/client/_app/immutable/chunks/{BAtlESPp.js → Bc_sGQ0U.js} +0 -0
  568. /package/dist/client/_app/immutable/chunks/{BAtlESPp.js.br → Bc_sGQ0U.js.br} +0 -0
  569. /package/dist/client/_app/immutable/chunks/{BuvsQ_0P.js → BeGwcela.js} +0 -0
  570. /package/dist/client/_app/immutable/chunks/{BuvsQ_0P.js.br → BeGwcela.js.br} +0 -0
  571. /package/dist/client/_app/immutable/chunks/{CGdCAl_w2.js → Bri6UV-V2.js} +0 -0
  572. /package/dist/client/_app/immutable/chunks/{CGdCAl_w2.js.br → Bri6UV-V2.js.br} +0 -0
  573. /package/dist/client/_app/immutable/chunks/{DaCLQrfC.js → BwWrilGY.js} +0 -0
  574. /package/dist/client/_app/immutable/chunks/{DaCLQrfC.js.br → BwWrilGY.js.br} +0 -0
  575. /package/dist/client/_app/immutable/chunks/{CXBbh9s-.js → Bxkupp3x.js} +0 -0
  576. /package/dist/client/_app/immutable/chunks/{CXBbh9s-.js.br → Bxkupp3x.js.br} +0 -0
  577. /package/dist/client/_app/immutable/chunks/{BqR20QL0.js → Bz4Y3fRF.js} +0 -0
  578. /package/dist/client/_app/immutable/chunks/{BqR20QL0.js.br → Bz4Y3fRF.js.br} +0 -0
  579. /package/dist/client/_app/immutable/chunks/{DrDIkqkr2.js → C-y9NEjX2.js} +0 -0
  580. /package/dist/client/_app/immutable/chunks/{DrDIkqkr2.js.br → C-y9NEjX2.js.br} +0 -0
  581. /package/dist/client/_app/immutable/chunks/{BUMhJFWc.js → C531GsRP.js} +0 -0
  582. /package/dist/client/_app/immutable/chunks/{BUMhJFWc.js.br → C531GsRP.js.br} +0 -0
  583. /package/dist/client/_app/immutable/chunks/{CKybJfA6.js → C5_-GSwl2.js} +0 -0
  584. /package/dist/client/_app/immutable/chunks/{CKybJfA6.js.br → C5_-GSwl2.js.br} +0 -0
  585. /package/dist/client/_app/immutable/chunks/{DbxPn-f9.js → C7h46wYY.js} +0 -0
  586. /package/dist/client/_app/immutable/chunks/{DbxPn-f9.js.br → C7h46wYY.js.br} +0 -0
  587. /package/dist/client/_app/immutable/chunks/{KoMdYtDs2.js → C8Ef5oNN2.js} +0 -0
  588. /package/dist/client/_app/immutable/chunks/{KoMdYtDs2.js.br → C8Ef5oNN2.js.br} +0 -0
  589. /package/dist/client/_app/immutable/chunks/{DWUlubL2.js → CC2rA5mh.js} +0 -0
  590. /package/dist/client/_app/immutable/chunks/{DWUlubL2.js.br → CC2rA5mh.js.br} +0 -0
  591. /package/dist/client/_app/immutable/chunks/{kks0AxFY2.js → CIPQ_RoX.js} +0 -0
  592. /package/dist/client/_app/immutable/chunks/{kks0AxFY2.js.br → CIPQ_RoX.js.br} +0 -0
  593. /package/dist/client/_app/immutable/chunks/{C_QqwttH.js → CRfGWb83.js} +0 -0
  594. /package/dist/client/_app/immutable/chunks/{C_QqwttH.js.br → CRfGWb83.js.br} +0 -0
  595. /package/dist/client/_app/immutable/chunks/{C7TuqZTk.js → CVaqCwHa.js} +0 -0
  596. /package/dist/client/_app/immutable/chunks/{C7TuqZTk.js.br → CVaqCwHa.js.br} +0 -0
  597. /package/dist/client/_app/immutable/chunks/{SlhV96tq.js → CcwsVR0C.js} +0 -0
  598. /package/dist/client/_app/immutable/chunks/{SlhV96tq.js.br → CcwsVR0C.js.br} +0 -0
  599. /package/dist/client/_app/immutable/chunks/{DhPi0T7V2.js → CfSJPG6W2.js} +0 -0
  600. /package/dist/client/_app/immutable/chunks/{DhPi0T7V2.js.br → CfSJPG6W2.js.br} +0 -0
  601. /package/dist/client/_app/immutable/chunks/{qWHUp0PJ2.js → Cimd5fb32.js} +0 -0
  602. /package/dist/client/_app/immutable/chunks/{qWHUp0PJ2.js.br → Cimd5fb32.js.br} +0 -0
  603. /package/dist/client/_app/immutable/chunks/{if7vWS9-.js → ClamHrr6.js} +0 -0
  604. /package/dist/client/_app/immutable/chunks/{if7vWS9-.js.br → ClamHrr6.js.br} +0 -0
  605. /package/dist/client/_app/immutable/chunks/{B_rYXvqX.js → Cm7r79vr.js} +0 -0
  606. /package/dist/client/_app/immutable/chunks/{B_rYXvqX.js.br → Cm7r79vr.js.br} +0 -0
  607. /package/dist/client/_app/immutable/chunks/{BTEHXt4u.js → CopQ2nXW.js} +0 -0
  608. /package/dist/client/_app/immutable/chunks/{BTEHXt4u.js.br → CopQ2nXW.js.br} +0 -0
  609. /package/dist/client/_app/immutable/chunks/{CziQemry2.js → CpzslTdj2.js} +0 -0
  610. /package/dist/client/_app/immutable/chunks/{CziQemry2.js.br → CpzslTdj2.js.br} +0 -0
  611. /package/dist/client/_app/immutable/chunks/{CtzzCjLE2.js → CsQS60Ue2.js} +0 -0
  612. /package/dist/client/_app/immutable/chunks/{CtzzCjLE2.js.br → CsQS60Ue2.js.br} +0 -0
  613. /package/dist/client/_app/immutable/chunks/{dm7qVrFn2.js → D-oSqn_W2.js} +0 -0
  614. /package/dist/client/_app/immutable/chunks/{dm7qVrFn2.js.br → D-oSqn_W2.js.br} +0 -0
  615. /package/dist/client/_app/immutable/chunks/{CGFoxiJT2.js → D-ptJ9y-.js} +0 -0
  616. /package/dist/client/_app/immutable/chunks/{CGFoxiJT2.js.br → D-ptJ9y-.js.br} +0 -0
  617. /package/dist/client/_app/immutable/chunks/{acVTcwNd.js → D05T4iGw2.js} +0 -0
  618. /package/dist/client/_app/immutable/chunks/{acVTcwNd.js.br → D05T4iGw2.js.br} +0 -0
  619. /package/dist/client/_app/immutable/chunks/{CQai7aNJ.js → D3hlyOfw.js} +0 -0
  620. /package/dist/client/_app/immutable/chunks/{CQai7aNJ.js.br → D3hlyOfw.js.br} +0 -0
  621. /package/dist/client/_app/immutable/chunks/{B3IjbASq.js → DHpiXF5c.js} +0 -0
  622. /package/dist/client/_app/immutable/chunks/{B3IjbASq.js.br → DHpiXF5c.js.br} +0 -0
  623. /package/dist/client/_app/immutable/chunks/{kAc38cH_.js → DIMkf-bt.js} +0 -0
  624. /package/dist/client/_app/immutable/chunks/{kAc38cH_.js.br → DIMkf-bt.js.br} +0 -0
  625. /package/dist/client/_app/immutable/chunks/{D_HtEbjl.js → DISqw1ZD.js} +0 -0
  626. /package/dist/client/_app/immutable/chunks/{D_HtEbjl.js.br → DISqw1ZD.js.br} +0 -0
  627. /package/dist/client/_app/immutable/chunks/{CKihvhpr.js → DMUM7wLl.js} +0 -0
  628. /package/dist/client/_app/immutable/chunks/{CKihvhpr.js.br → DMUM7wLl.js.br} +0 -0
  629. /package/dist/client/_app/immutable/chunks/{B1GYE4NT.js → DT7zqm-g.js} +0 -0
  630. /package/dist/client/_app/immutable/chunks/{B1GYE4NT.js.br → DT7zqm-g.js.br} +0 -0
  631. /package/dist/client/_app/immutable/chunks/{B3VOL0kZ.js → DTj74zXo.js} +0 -0
  632. /package/dist/client/_app/immutable/chunks/{B3VOL0kZ.js.br → DTj74zXo.js.br} +0 -0
  633. /package/dist/client/_app/immutable/chunks/{B0Q9zT_Q.js → DV3o63ZY2.js} +0 -0
  634. /package/dist/client/_app/immutable/chunks/{B0Q9zT_Q.js.br → DV3o63ZY2.js.br} +0 -0
  635. /package/dist/client/_app/immutable/chunks/{5k3Q8YWH.js → DZFCIeNp2.js} +0 -0
  636. /package/dist/client/_app/immutable/chunks/{5k3Q8YWH.js.br → DZFCIeNp2.js.br} +0 -0
  637. /package/dist/client/_app/immutable/chunks/{BL9YzxJT.js → D_Lu-MrJ.js} +0 -0
  638. /package/dist/client/_app/immutable/chunks/{BL9YzxJT.js.br → D_Lu-MrJ.js.br} +0 -0
  639. /package/dist/client/_app/immutable/chunks/{x4VkYCou2.js → DauUninz.js} +0 -0
  640. /package/dist/client/_app/immutable/chunks/{x4VkYCou2.js.br → DauUninz.js.br} +0 -0
  641. /package/dist/client/_app/immutable/chunks/{BSa9oWuP.js → DbInun42.js} +0 -0
  642. /package/dist/client/_app/immutable/chunks/{BSa9oWuP.js.br → DbInun42.js.br} +0 -0
  643. /package/dist/client/_app/immutable/chunks/{CbFxQFBh.js → DdL9SqIa.js} +0 -0
  644. /package/dist/client/_app/immutable/chunks/{CbFxQFBh.js.br → DdL9SqIa.js.br} +0 -0
  645. /package/dist/client/_app/immutable/chunks/{C4oBl-ul.js → De2hgUGE.js} +0 -0
  646. /package/dist/client/_app/immutable/chunks/{C4oBl-ul.js.br → De2hgUGE.js.br} +0 -0
  647. /package/dist/client/_app/immutable/chunks/{BaORWDBQ.js → DezsRK8O.js} +0 -0
  648. /package/dist/client/_app/immutable/chunks/{BaORWDBQ.js.br → DezsRK8O.js.br} +0 -0
  649. /package/dist/client/_app/immutable/chunks/{BHxBHC3k.js → DkqhCAOL.js} +0 -0
  650. /package/dist/client/_app/immutable/chunks/{BHxBHC3k.js.br → DkqhCAOL.js.br} +0 -0
  651. /package/dist/client/_app/immutable/chunks/{DBkS_L3S.js → DmHpPYUd.js} +0 -0
  652. /package/dist/client/_app/immutable/chunks/{DBkS_L3S.js.br → DmHpPYUd.js.br} +0 -0
  653. /package/dist/client/_app/immutable/chunks/{D38BHtSY.js → DpFanUEy2.js} +0 -0
  654. /package/dist/client/_app/immutable/chunks/{D38BHtSY.js.br → DpFanUEy2.js.br} +0 -0
  655. /package/dist/client/_app/immutable/chunks/{B__0yjCH2.js → DrH0SRf2.js} +0 -0
  656. /package/dist/client/_app/immutable/chunks/{B__0yjCH2.js.br → DrH0SRf2.js.br} +0 -0
  657. /package/dist/client/_app/immutable/chunks/{BCAAnHTF2.js → FvmIjYaQ.js} +0 -0
  658. /package/dist/client/_app/immutable/chunks/{BCAAnHTF2.js.br → FvmIjYaQ.js.br} +0 -0
  659. /package/dist/client/_app/immutable/chunks/{CntDmp6G.js → NEE52Syq.js} +0 -0
  660. /package/dist/client/_app/immutable/chunks/{CntDmp6G.js.br → NEE52Syq.js.br} +0 -0
  661. /package/dist/client/_app/immutable/chunks/{X9L1iai42.js → SOo6toE5.js} +0 -0
  662. /package/dist/client/_app/immutable/chunks/{X9L1iai42.js.br → SOo6toE5.js.br} +0 -0
  663. /package/dist/client/_app/immutable/chunks/{OELm4xo1.js → Z5eAx3Zn.js} +0 -0
  664. /package/dist/client/_app/immutable/chunks/{OELm4xo1.js.br → Z5eAx3Zn.js.br} +0 -0
  665. /package/dist/client/_app/immutable/chunks/{BXNW00E2.js → bTuwJoIa.js} +0 -0
  666. /package/dist/client/_app/immutable/chunks/{BXNW00E2.js.br → bTuwJoIa.js.br} +0 -0
  667. /package/dist/client/_app/immutable/chunks/{1rG2eYdz2.js → fmXr3nnJ2.js} +0 -0
  668. /package/dist/client/_app/immutable/chunks/{1rG2eYdz2.js.br → fmXr3nnJ2.js.br} +0 -0
  669. /package/dist/client/_app/immutable/chunks/{mA7hbneB.js → gp-XZpBa.js} +0 -0
  670. /package/dist/client/_app/immutable/chunks/{mA7hbneB.js.br → gp-XZpBa.js.br} +0 -0
  671. /package/dist/client/_app/immutable/chunks/{DHkiqSLl.js → i0X4ZdIN.js} +0 -0
  672. /package/dist/client/_app/immutable/chunks/{DHkiqSLl.js.br → i0X4ZdIN.js.br} +0 -0
  673. /package/dist/client/_app/immutable/chunks/{C459oz3p.js → nr791fC2.js} +0 -0
  674. /package/dist/client/_app/immutable/chunks/{C459oz3p.js.br → nr791fC2.js.br} +0 -0
  675. /package/dist/client/_app/immutable/chunks/{OdxrjoDx.js → onAF5SnQ2.js} +0 -0
  676. /package/dist/client/_app/immutable/chunks/{OdxrjoDx.js.br → onAF5SnQ2.js.br} +0 -0
  677. /package/dist/client/_app/immutable/chunks/{u6JPB_fg2.js → oz_6vUea.js} +0 -0
  678. /package/dist/client/_app/immutable/chunks/{u6JPB_fg2.js.br → oz_6vUea.js.br} +0 -0
  679. /package/dist/client/_app/immutable/chunks/{5TEFcS4X2.js → sBoK_t0W2.js} +0 -0
  680. /package/dist/client/_app/immutable/chunks/{5TEFcS4X2.js.br → sBoK_t0W2.js.br} +0 -0
  681. /package/dist/client/_app/immutable/chunks/{v_jBEYI6.js → xihTtKlq.js} +0 -0
  682. /package/dist/client/_app/immutable/chunks/{v_jBEYI6.js.br → xihTtKlq.js.br} +0 -0
@@ -1,4302 +0,0 @@
1
- import { i as __toESM, r as __require, t as __commonJSMin } from "./chunk-9PtDFT_4.js";
2
- import { C as ensure_array_like, T as escape_html, _t as writable, c as attr_class, d as bind_props, dt as stringify, ht as unsubscribe_stores, l as attr_style, s as attr, ut as store_get, x as derived } from "./dev-7V6fUCff.js";
3
- import { Y as onDestroy } from "./internal-BqoJe00m.js";
4
- import { r as resolve, t as goto } from "./client-Dx0O-q6m.js";
5
- import { n as logo_default } from "./forms-CffPpDq6.js";
6
- import { i as DropdownItem, n as Button, r as Dropdown, s as getDB, t as Avatar } from "./api-9BLkbfaG.js";
7
- //#region node_modules/.pnpm/file-saver@2.0.5/node_modules/file-saver/dist/FileSaver.min.js
8
- var require_FileSaver_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9
- (function(a, b) {
10
- if ("function" == typeof define && define.amd) define([], b);
11
- else if ("undefined" != typeof exports) b();
12
- else b(), a.FileSaver = { exports: {} }.exports;
13
- })(exports, function() {
14
- "use strict";
15
- function b(a, b) {
16
- return "undefined" == typeof b ? b = { autoBom: !1 } : "object" != typeof b && (console.warn("Deprecated: Expected third argument to be a object"), b = { autoBom: !b }), b.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type) ? new Blob(["", a], { type: a.type }) : a;
17
- }
18
- function c(a, b, c) {
19
- var d = new XMLHttpRequest();
20
- d.open("GET", a), d.responseType = "blob", d.onload = function() {
21
- g(d.response, b, c);
22
- }, d.onerror = function() {
23
- console.error("could not download file");
24
- }, d.send();
25
- }
26
- function d(a) {
27
- var b = new XMLHttpRequest();
28
- b.open("HEAD", a, !1);
29
- try {
30
- b.send();
31
- } catch (a) {}
32
- return 200 <= b.status && 299 >= b.status;
33
- }
34
- function e(a) {
35
- try {
36
- a.dispatchEvent(new MouseEvent("click"));
37
- } catch (c) {
38
- var b = document.createEvent("MouseEvents");
39
- b.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), a.dispatchEvent(b);
40
- }
41
- }
42
- var f = "object" == typeof window && window.window === window ? window : "object" == typeof self && self.self === self ? self : "object" == typeof global && global.global === global ? global : void 0, a = f.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), g = f.saveAs || ("object" != typeof window || window !== f ? function() {} : "download" in HTMLAnchorElement.prototype && !a ? function(b, g, h) {
43
- var i = f.URL || f.webkitURL, j = document.createElement("a");
44
- g = g || b.name || "download", j.download = g, j.rel = "noopener", "string" == typeof b ? (j.href = b, j.origin === location.origin ? e(j) : d(j.href) ? c(b, g, h) : e(j, j.target = "_blank")) : (j.href = i.createObjectURL(b), setTimeout(function() {
45
- i.revokeObjectURL(j.href);
46
- }, 4e4), setTimeout(function() {
47
- e(j);
48
- }, 0));
49
- } : "msSaveOrOpenBlob" in navigator ? function(f, g, h) {
50
- if (g = g || f.name || "download", "string" != typeof f) navigator.msSaveOrOpenBlob(b(f, h), g);
51
- else if (d(f)) c(f, g, h);
52
- else {
53
- var i = document.createElement("a");
54
- i.href = f, i.target = "_blank", setTimeout(function() {
55
- e(i);
56
- });
57
- }
58
- } : function(b, d, e, g) {
59
- if (g = g || open("", "_blank"), g && (g.document.title = g.document.body.innerText = "downloading..."), "string" == typeof b) return c(b, d, e);
60
- var h = "application/octet-stream" === b.type, i = /constructor/i.test(f.HTMLElement) || f.safari, j = /CriOS\/[\d]+/.test(navigator.userAgent);
61
- if ((j || h && i || a) && "undefined" != typeof FileReader) {
62
- var k = new FileReader();
63
- k.onloadend = function() {
64
- var a = k.result;
65
- a = j ? a : a.replace(/^data:[^;]*;/, "data:attachment/file;"), g ? g.location.href = a : location = a, g = null;
66
- }, k.readAsDataURL(b);
67
- } else {
68
- var l = f.URL || f.webkitURL, m = l.createObjectURL(b);
69
- g ? g.location = m : location.href = m, g = null, setTimeout(function() {
70
- l.revokeObjectURL(m);
71
- }, 4e4);
72
- }
73
- });
74
- f.saveAs = g.saveAs = g, "undefined" != typeof module && (module.exports = g);
75
- });
76
- }));
77
- //#endregion
78
- //#region node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js
79
- var require_jszip_min = /* @__PURE__ */ __commonJSMin(((exports, module) => {
80
- /*!
81
-
82
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
83
- <http://stuartk.com/jszip>
84
-
85
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
86
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
87
-
88
- JSZip uses the library pako released under the MIT license :
89
- https://github.com/nodeca/pako/blob/main/LICENSE
90
- */
91
- (function(e) {
92
- if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
93
- else if ("function" == typeof define && define.amd) define([], e);
94
- else ("undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this).JSZip = e();
95
- })(function() {
96
- return function s(a, o, h) {
97
- function u(r, e) {
98
- if (!o[r]) {
99
- if (!a[r]) {
100
- var t = "function" == typeof __require && __require;
101
- if (!e && t) return t(r, !0);
102
- if (l) return l(r, !0);
103
- var n = /* @__PURE__ */ new Error("Cannot find module '" + r + "'");
104
- throw n.code = "MODULE_NOT_FOUND", n;
105
- }
106
- var i = o[r] = { exports: {} };
107
- a[r][0].call(i.exports, function(e) {
108
- var t = a[r][1][e];
109
- return u(t || e);
110
- }, i, i.exports, s, a, o, h);
111
- }
112
- return o[r].exports;
113
- }
114
- for (var l = "function" == typeof __require && __require, e = 0; e < h.length; e++) u(h[e]);
115
- return u;
116
- }({
117
- 1: [function(e, t, r) {
118
- "use strict";
119
- var d = e("./utils"), c = e("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
120
- r.encode = function(e) {
121
- for (var t, r, n, i, s, a, o, h = [], u = 0, l = e.length, f = l, c = "string" !== d.getTypeOf(e); u < e.length;) f = l - u, n = c ? (t = e[u++], r = u < l ? e[u++] : 0, u < l ? e[u++] : 0) : (t = e.charCodeAt(u++), r = u < l ? e.charCodeAt(u++) : 0, u < l ? e.charCodeAt(u++) : 0), i = t >> 2, s = (3 & t) << 4 | r >> 4, a = 1 < f ? (15 & r) << 2 | n >> 6 : 64, o = 2 < f ? 63 & n : 64, h.push(p.charAt(i) + p.charAt(s) + p.charAt(a) + p.charAt(o));
122
- return h.join("");
123
- }, r.decode = function(e) {
124
- var t, r, n, i, s, a, o = 0, h = 0, u = "data:";
125
- if (e.substr(0, u.length) === u) throw new Error("Invalid base64 input, it looks like a data url.");
126
- var l, f = 3 * (e = e.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
127
- if (e.charAt(e.length - 1) === p.charAt(64) && f--, e.charAt(e.length - 2) === p.charAt(64) && f--, f % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
128
- for (l = c.uint8array ? new Uint8Array(0 | f) : new Array(0 | f); o < e.length;) t = p.indexOf(e.charAt(o++)) << 2 | (i = p.indexOf(e.charAt(o++))) >> 4, r = (15 & i) << 4 | (s = p.indexOf(e.charAt(o++))) >> 2, n = (3 & s) << 6 | (a = p.indexOf(e.charAt(o++))), l[h++] = t, 64 !== s && (l[h++] = r), 64 !== a && (l[h++] = n);
129
- return l;
130
- };
131
- }, {
132
- "./support": 30,
133
- "./utils": 32
134
- }],
135
- 2: [function(e, t, r) {
136
- "use strict";
137
- var n = e("./external"), i = e("./stream/DataWorker"), s = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe");
138
- function o(e, t, r, n, i) {
139
- this.compressedSize = e, this.uncompressedSize = t, this.crc32 = r, this.compression = n, this.compressedContent = i;
140
- }
141
- o.prototype = {
142
- getContentWorker: function() {
143
- var e = new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")), t = this;
144
- return e.on("end", function() {
145
- if (this.streamInfo.data_length !== t.uncompressedSize) throw new Error("Bug : uncompressed data size mismatch");
146
- }), e;
147
- },
148
- getCompressedWorker: function() {
149
- return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
150
- }
151
- }, o.createWorkerFrom = function(e, t, r) {
152
- return e.pipe(new s()).pipe(new a("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new a("compressedSize")).withStreamInfo("compression", t);
153
- }, t.exports = o;
154
- }, {
155
- "./external": 6,
156
- "./stream/Crc32Probe": 25,
157
- "./stream/DataLengthProbe": 26,
158
- "./stream/DataWorker": 27
159
- }],
160
- 3: [function(e, t, r) {
161
- "use strict";
162
- var n = e("./stream/GenericWorker");
163
- r.STORE = {
164
- magic: "\0\0",
165
- compressWorker: function() {
166
- return new n("STORE compression");
167
- },
168
- uncompressWorker: function() {
169
- return new n("STORE decompression");
170
- }
171
- }, r.DEFLATE = e("./flate");
172
- }, {
173
- "./flate": 7,
174
- "./stream/GenericWorker": 28
175
- }],
176
- 4: [function(e, t, r) {
177
- "use strict";
178
- var n = e("./utils");
179
- var o = function() {
180
- for (var e, t = [], r = 0; r < 256; r++) {
181
- e = r;
182
- for (var n = 0; n < 8; n++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
183
- t[r] = e;
184
- }
185
- return t;
186
- }();
187
- t.exports = function(e, t) {
188
- return void 0 !== e && e.length ? "string" !== n.getTypeOf(e) ? function(e, t, r, n) {
189
- var i = o, s = n + r;
190
- e ^= -1;
191
- for (var a = n; a < s; a++) e = e >>> 8 ^ i[255 & (e ^ t[a])];
192
- return -1 ^ e;
193
- }(0 | t, e, e.length, 0) : function(e, t, r, n) {
194
- var i = o, s = n + r;
195
- e ^= -1;
196
- for (var a = n; a < s; a++) e = e >>> 8 ^ i[255 & (e ^ t.charCodeAt(a))];
197
- return -1 ^ e;
198
- }(0 | t, e, e.length, 0) : 0;
199
- };
200
- }, { "./utils": 32 }],
201
- 5: [function(e, t, r) {
202
- "use strict";
203
- r.base64 = !1, r.binary = !1, r.dir = !1, r.createFolders = !0, r.date = null, r.compression = null, r.compressionOptions = null, r.comment = null, r.unixPermissions = null, r.dosPermissions = null;
204
- }, {}],
205
- 6: [function(e, t, r) {
206
- "use strict";
207
- var n = null;
208
- n = "undefined" != typeof Promise ? Promise : e("lie"), t.exports = { Promise: n };
209
- }, { lie: 37 }],
210
- 7: [function(e, t, r) {
211
- "use strict";
212
- var n = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Uint32Array, i = e("pako"), s = e("./utils"), a = e("./stream/GenericWorker"), o = n ? "uint8array" : "array";
213
- function h(e, t) {
214
- a.call(this, "FlateWorker/" + e), this._pako = null, this._pakoAction = e, this._pakoOptions = t, this.meta = {};
215
- }
216
- r.magic = "\b\0", s.inherits(h, a), h.prototype.processChunk = function(e) {
217
- this.meta = e.meta, null === this._pako && this._createPako(), this._pako.push(s.transformTo(o, e.data), !1);
218
- }, h.prototype.flush = function() {
219
- a.prototype.flush.call(this), null === this._pako && this._createPako(), this._pako.push([], !0);
220
- }, h.prototype.cleanUp = function() {
221
- a.prototype.cleanUp.call(this), this._pako = null;
222
- }, h.prototype._createPako = function() {
223
- this._pako = new i[this._pakoAction]({
224
- raw: !0,
225
- level: this._pakoOptions.level || -1
226
- });
227
- var t = this;
228
- this._pako.onData = function(e) {
229
- t.push({
230
- data: e,
231
- meta: t.meta
232
- });
233
- };
234
- }, r.compressWorker = function(e) {
235
- return new h("Deflate", e);
236
- }, r.uncompressWorker = function() {
237
- return new h("Inflate", {});
238
- };
239
- }, {
240
- "./stream/GenericWorker": 28,
241
- "./utils": 32,
242
- pako: 38
243
- }],
244
- 8: [function(e, t, r) {
245
- "use strict";
246
- function A(e, t) {
247
- var r, n = "";
248
- for (r = 0; r < t; r++) n += String.fromCharCode(255 & e), e >>>= 8;
249
- return n;
250
- }
251
- function n(e, t, r, n, i, s) {
252
- var a, o, h = e.file, u = e.compression, l = s !== O.utf8encode, f = I.transformTo("string", s(h.name)), c = I.transformTo("string", O.utf8encode(h.name)), d = h.comment, p = I.transformTo("string", s(d)), m = I.transformTo("string", O.utf8encode(d)), _ = c.length !== h.name.length, g = m.length !== d.length, b = "", v = "", y = "", w = h.dir, k = h.date, x = {
253
- crc32: 0,
254
- compressedSize: 0,
255
- uncompressedSize: 0
256
- };
257
- t && !r || (x.crc32 = e.crc32, x.compressedSize = e.compressedSize, x.uncompressedSize = e.uncompressedSize);
258
- var S = 0;
259
- t && (S |= 8), l || !_ && !g || (S |= 2048);
260
- var z = 0, C = 0;
261
- w && (z |= 16), "UNIX" === i ? (C = 798, z |= function(e, t) {
262
- var r = e;
263
- return e || (r = t ? 16893 : 33204), (65535 & r) << 16;
264
- }(h.unixPermissions, w)) : (C = 20, z |= function(e) {
265
- return 63 & (e || 0);
266
- }(h.dosPermissions)), a = k.getUTCHours(), a <<= 6, a |= k.getUTCMinutes(), a <<= 5, a |= k.getUTCSeconds() / 2, o = k.getUTCFullYear() - 1980, o <<= 4, o |= k.getUTCMonth() + 1, o <<= 5, o |= k.getUTCDate(), _ && (v = A(1, 1) + A(B(f), 4) + c, b += "up" + A(v.length, 2) + v), g && (y = A(1, 1) + A(B(p), 4) + m, b += "uc" + A(y.length, 2) + y);
267
- var E = "";
268
- return E += "\n\0", E += A(S, 2), E += u.magic, E += A(a, 2), E += A(o, 2), E += A(x.crc32, 4), E += A(x.compressedSize, 4), E += A(x.uncompressedSize, 4), E += A(f.length, 2), E += A(b.length, 2), {
269
- fileRecord: R.LOCAL_FILE_HEADER + E + f + b,
270
- dirRecord: R.CENTRAL_FILE_HEADER + A(C, 2) + E + A(p.length, 2) + "\0\0\0\0" + A(z, 4) + A(n, 4) + f + b + p
271
- };
272
- }
273
- var I = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B = e("../crc32"), R = e("../signature");
274
- function s(e, t, r, n) {
275
- i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t, this.zipPlatform = r, this.encodeFileName = n, this.streamFiles = e, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
276
- }
277
- I.inherits(s, i), s.prototype.push = function(e) {
278
- var t = e.meta.percent || 0, r = this.entriesCount, n = this._sources.length;
279
- this.accumulate ? this.contentBuffer.push(e) : (this.bytesWritten += e.data.length, i.prototype.push.call(this, {
280
- data: e.data,
281
- meta: {
282
- currentFile: this.currentFile,
283
- percent: r ? (t + 100 * (r - n - 1)) / r : 100
284
- }
285
- }));
286
- }, s.prototype.openedSource = function(e) {
287
- this.currentSourceOffset = this.bytesWritten, this.currentFile = e.file.name;
288
- var t = this.streamFiles && !e.file.dir;
289
- if (t) {
290
- var r = n(e, t, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
291
- this.push({
292
- data: r.fileRecord,
293
- meta: { percent: 0 }
294
- });
295
- } else this.accumulate = !0;
296
- }, s.prototype.closedSource = function(e) {
297
- this.accumulate = !1;
298
- var t = this.streamFiles && !e.file.dir, r = n(e, t, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
299
- if (this.dirRecords.push(r.dirRecord), t) this.push({
300
- data: function(e) {
301
- return R.DATA_DESCRIPTOR + A(e.crc32, 4) + A(e.compressedSize, 4) + A(e.uncompressedSize, 4);
302
- }(e),
303
- meta: { percent: 100 }
304
- });
305
- else for (this.push({
306
- data: r.fileRecord,
307
- meta: { percent: 0 }
308
- }); this.contentBuffer.length;) this.push(this.contentBuffer.shift());
309
- this.currentFile = null;
310
- }, s.prototype.flush = function() {
311
- for (var e = this.bytesWritten, t = 0; t < this.dirRecords.length; t++) this.push({
312
- data: this.dirRecords[t],
313
- meta: { percent: 100 }
314
- });
315
- var r = this.bytesWritten - e, n = function(e, t, r, n, i) {
316
- var s = I.transformTo("string", i(n));
317
- return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A(e, 2) + A(e, 2) + A(t, 4) + A(r, 4) + A(s.length, 2) + s;
318
- }(this.dirRecords.length, r, e, this.zipComment, this.encodeFileName);
319
- this.push({
320
- data: n,
321
- meta: { percent: 100 }
322
- });
323
- }, s.prototype.prepareNextSource = function() {
324
- this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
325
- }, s.prototype.registerPrevious = function(e) {
326
- this._sources.push(e);
327
- var t = this;
328
- return e.on("data", function(e) {
329
- t.processChunk(e);
330
- }), e.on("end", function() {
331
- t.closedSource(t.previous.streamInfo), t._sources.length ? t.prepareNextSource() : t.end();
332
- }), e.on("error", function(e) {
333
- t.error(e);
334
- }), this;
335
- }, s.prototype.resume = function() {
336
- return !!i.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
337
- }, s.prototype.error = function(e) {
338
- var t = this._sources;
339
- if (!i.prototype.error.call(this, e)) return !1;
340
- for (var r = 0; r < t.length; r++) try {
341
- t[r].error(e);
342
- } catch (e) {}
343
- return !0;
344
- }, s.prototype.lock = function() {
345
- i.prototype.lock.call(this);
346
- for (var e = this._sources, t = 0; t < e.length; t++) e[t].lock();
347
- }, t.exports = s;
348
- }, {
349
- "../crc32": 4,
350
- "../signature": 23,
351
- "../stream/GenericWorker": 28,
352
- "../utf8": 31,
353
- "../utils": 32
354
- }],
355
- 9: [function(e, t, r) {
356
- "use strict";
357
- var u = e("../compressions"), n = e("./ZipFileWorker");
358
- r.generateWorker = function(e, a, t) {
359
- var o = new n(a.streamFiles, t, a.platform, a.encodeFileName), h = 0;
360
- try {
361
- e.forEach(function(e, t) {
362
- h++;
363
- var r = function(e, t) {
364
- var r = e || t, n = u[r];
365
- if (!n) throw new Error(r + " is not a valid compression method !");
366
- return n;
367
- }(t.options.compression, a.compression), n = t.options.compressionOptions || a.compressionOptions || {}, i = t.dir, s = t.date;
368
- t._compressWorker(r, n).withStreamInfo("file", {
369
- name: e,
370
- dir: i,
371
- date: s,
372
- comment: t.comment || "",
373
- unixPermissions: t.unixPermissions,
374
- dosPermissions: t.dosPermissions
375
- }).pipe(o);
376
- }), o.entriesCount = h;
377
- } catch (e) {
378
- o.error(e);
379
- }
380
- return o;
381
- };
382
- }, {
383
- "../compressions": 3,
384
- "./ZipFileWorker": 8
385
- }],
386
- 10: [function(e, t, r) {
387
- "use strict";
388
- function n() {
389
- if (!(this instanceof n)) return new n();
390
- if (arguments.length) throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
391
- this.files = Object.create(null), this.comment = null, this.root = "", this.clone = function() {
392
- var e = new n();
393
- for (var t in this) "function" != typeof this[t] && (e[t] = this[t]);
394
- return e;
395
- };
396
- }
397
- (n.prototype = e("./object")).loadAsync = e("./load"), n.support = e("./support"), n.defaults = e("./defaults"), n.version = "3.10.1", n.loadAsync = function(e, t) {
398
- return new n().loadAsync(e, t);
399
- }, n.external = e("./external"), t.exports = n;
400
- }, {
401
- "./defaults": 5,
402
- "./external": 6,
403
- "./load": 11,
404
- "./object": 15,
405
- "./support": 30
406
- }],
407
- 11: [function(e, t, r) {
408
- "use strict";
409
- var u = e("./utils"), i = e("./external"), n = e("./utf8"), s = e("./zipEntries"), a = e("./stream/Crc32Probe"), l = e("./nodejsUtils");
410
- function f(n) {
411
- return new i.Promise(function(e, t) {
412
- var r = n.decompressed.getContentWorker().pipe(new a());
413
- r.on("error", function(e) {
414
- t(e);
415
- }).on("end", function() {
416
- r.streamInfo.crc32 !== n.decompressed.crc32 ? t(/* @__PURE__ */ new Error("Corrupted zip : CRC32 mismatch")) : e();
417
- }).resume();
418
- });
419
- }
420
- t.exports = function(e, o) {
421
- var h = this;
422
- return o = u.extend(o || {}, {
423
- base64: !1,
424
- checkCRC32: !1,
425
- optimizedBinaryString: !1,
426
- createFolders: !1,
427
- decodeFileName: n.utf8decode
428
- }), l.isNode && l.isStream(e) ? i.Promise.reject(/* @__PURE__ */ new Error("JSZip can't accept a stream when loading a zip file.")) : u.prepareContent("the loaded zip file", e, !0, o.optimizedBinaryString, o.base64).then(function(e) {
429
- var t = new s(o);
430
- return t.load(e), t;
431
- }).then(function(e) {
432
- var t = [i.Promise.resolve(e)], r = e.files;
433
- if (o.checkCRC32) for (var n = 0; n < r.length; n++) t.push(f(r[n]));
434
- return i.Promise.all(t);
435
- }).then(function(e) {
436
- for (var t = e.shift(), r = t.files, n = 0; n < r.length; n++) {
437
- var i = r[n], s = i.fileNameStr, a = u.resolve(i.fileNameStr);
438
- h.file(a, i.decompressed, {
439
- binary: !0,
440
- optimizedBinaryString: !0,
441
- date: i.date,
442
- dir: i.dir,
443
- comment: i.fileCommentStr.length ? i.fileCommentStr : null,
444
- unixPermissions: i.unixPermissions,
445
- dosPermissions: i.dosPermissions,
446
- createFolders: o.createFolders
447
- }), i.dir || (h.file(a).unsafeOriginalName = s);
448
- }
449
- return t.zipComment.length && (h.comment = t.zipComment), h;
450
- });
451
- };
452
- }, {
453
- "./external": 6,
454
- "./nodejsUtils": 14,
455
- "./stream/Crc32Probe": 25,
456
- "./utf8": 31,
457
- "./utils": 32,
458
- "./zipEntries": 33
459
- }],
460
- 12: [function(e, t, r) {
461
- "use strict";
462
- var n = e("../utils"), i = e("../stream/GenericWorker");
463
- function s(e, t) {
464
- i.call(this, "Nodejs stream input adapter for " + e), this._upstreamEnded = !1, this._bindStream(t);
465
- }
466
- n.inherits(s, i), s.prototype._bindStream = function(e) {
467
- var t = this;
468
- (this._stream = e).pause(), e.on("data", function(e) {
469
- t.push({
470
- data: e,
471
- meta: { percent: 0 }
472
- });
473
- }).on("error", function(e) {
474
- t.isPaused ? this.generatedError = e : t.error(e);
475
- }).on("end", function() {
476
- t.isPaused ? t._upstreamEnded = !0 : t.end();
477
- });
478
- }, s.prototype.pause = function() {
479
- return !!i.prototype.pause.call(this) && (this._stream.pause(), !0);
480
- }, s.prototype.resume = function() {
481
- return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
482
- }, t.exports = s;
483
- }, {
484
- "../stream/GenericWorker": 28,
485
- "../utils": 32
486
- }],
487
- 13: [function(e, t, r) {
488
- "use strict";
489
- var i = e("readable-stream").Readable;
490
- function n(e, t, r) {
491
- i.call(this, t), this._helper = e;
492
- var n = this;
493
- e.on("data", function(e, t) {
494
- n.push(e) || n._helper.pause(), r && r(t);
495
- }).on("error", function(e) {
496
- n.emit("error", e);
497
- }).on("end", function() {
498
- n.push(null);
499
- });
500
- }
501
- e("../utils").inherits(n, i), n.prototype._read = function() {
502
- this._helper.resume();
503
- }, t.exports = n;
504
- }, {
505
- "../utils": 32,
506
- "readable-stream": 16
507
- }],
508
- 14: [function(e, t, r) {
509
- "use strict";
510
- t.exports = {
511
- isNode: "undefined" != typeof Buffer,
512
- newBufferFrom: function(e, t) {
513
- if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(e, t);
514
- if ("number" == typeof e) throw new Error("The \"data\" argument must not be a number");
515
- return new Buffer(e, t);
516
- },
517
- allocBuffer: function(e) {
518
- if (Buffer.alloc) return Buffer.alloc(e);
519
- var t = new Buffer(e);
520
- return t.fill(0), t;
521
- },
522
- isBuffer: function(e) {
523
- return Buffer.isBuffer(e);
524
- },
525
- isStream: function(e) {
526
- return e && "function" == typeof e.on && "function" == typeof e.pause && "function" == typeof e.resume;
527
- }
528
- };
529
- }, {}],
530
- 15: [function(e, t, r) {
531
- "use strict";
532
- function s(e, t, r) {
533
- var n, i = u.getTypeOf(t), s = u.extend(r || {}, f);
534
- s.date = s.date || /* @__PURE__ */ new Date(), null !== s.compression && (s.compression = s.compression.toUpperCase()), "string" == typeof s.unixPermissions && (s.unixPermissions = parseInt(s.unixPermissions, 8)), s.unixPermissions && 16384 & s.unixPermissions && (s.dir = !0), s.dosPermissions && 16 & s.dosPermissions && (s.dir = !0), s.dir && (e = g(e)), s.createFolders && (n = _(e)) && b.call(this, n, !0);
535
- var a = "string" === i && !1 === s.binary && !1 === s.base64;
536
- r && void 0 !== r.binary || (s.binary = !a), (t instanceof c && 0 === t.uncompressedSize || s.dir || !t || 0 === t.length) && (s.base64 = !1, s.binary = !0, t = "", s.compression = "STORE", i = "string");
537
- var o = null;
538
- o = t instanceof c || t instanceof l ? t : p.isNode && p.isStream(t) ? new m(e, t) : u.prepareContent(e, t, s.binary, s.optimizedBinaryString, s.base64);
539
- var h = new d(e, o, s);
540
- this.files[e] = h;
541
- }
542
- var i = e("./utf8"), u = e("./utils"), l = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f = e("./defaults"), c = e("./compressedObject"), d = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m = e("./nodejs/NodejsStreamInputAdapter"), _ = function(e) {
543
- "/" === e.slice(-1) && (e = e.substring(0, e.length - 1));
544
- var t = e.lastIndexOf("/");
545
- return 0 < t ? e.substring(0, t) : "";
546
- }, g = function(e) {
547
- return "/" !== e.slice(-1) && (e += "/"), e;
548
- }, b = function(e, t) {
549
- return t = void 0 !== t ? t : f.createFolders, e = g(e), this.files[e] || s.call(this, e, null, {
550
- dir: !0,
551
- createFolders: t
552
- }), this.files[e];
553
- };
554
- function h(e) {
555
- return "[object RegExp]" === Object.prototype.toString.call(e);
556
- }
557
- t.exports = {
558
- load: function() {
559
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
560
- },
561
- forEach: function(e) {
562
- var t, r, n;
563
- for (t in this.files) n = this.files[t], (r = t.slice(this.root.length, t.length)) && t.slice(0, this.root.length) === this.root && e(r, n);
564
- },
565
- filter: function(r) {
566
- var n = [];
567
- return this.forEach(function(e, t) {
568
- r(e, t) && n.push(t);
569
- }), n;
570
- },
571
- file: function(e, t, r) {
572
- if (1 !== arguments.length) return e = this.root + e, s.call(this, e, t, r), this;
573
- if (h(e)) {
574
- var n = e;
575
- return this.filter(function(e, t) {
576
- return !t.dir && n.test(e);
577
- });
578
- }
579
- var i = this.files[this.root + e];
580
- return i && !i.dir ? i : null;
581
- },
582
- folder: function(r) {
583
- if (!r) return this;
584
- if (h(r)) return this.filter(function(e, t) {
585
- return t.dir && r.test(e);
586
- });
587
- var e = this.root + r, t = b.call(this, e), n = this.clone();
588
- return n.root = t.name, n;
589
- },
590
- remove: function(r) {
591
- r = this.root + r;
592
- var e = this.files[r];
593
- if (e || ("/" !== r.slice(-1) && (r += "/"), e = this.files[r]), e && !e.dir) delete this.files[r];
594
- else for (var t = this.filter(function(e, t) {
595
- return t.name.slice(0, r.length) === r;
596
- }), n = 0; n < t.length; n++) delete this.files[t[n].name];
597
- return this;
598
- },
599
- generate: function() {
600
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
601
- },
602
- generateInternalStream: function(e) {
603
- var t, r = {};
604
- try {
605
- if ((r = u.extend(e || {}, {
606
- streamFiles: !1,
607
- compression: "STORE",
608
- compressionOptions: null,
609
- type: "",
610
- platform: "DOS",
611
- comment: null,
612
- mimeType: "application/zip",
613
- encodeFileName: i.utf8encode
614
- })).type = r.type.toLowerCase(), r.compression = r.compression.toUpperCase(), "binarystring" === r.type && (r.type = "string"), !r.type) throw new Error("No output type specified.");
615
- u.checkSupport(r.type), "darwin" !== r.platform && "freebsd" !== r.platform && "linux" !== r.platform && "sunos" !== r.platform || (r.platform = "UNIX"), "win32" === r.platform && (r.platform = "DOS");
616
- var n = r.comment || this.comment || "";
617
- t = o.generateWorker(this, r, n);
618
- } catch (e) {
619
- (t = new l("error")).error(e);
620
- }
621
- return new a(t, r.type || "string", r.mimeType);
622
- },
623
- generateAsync: function(e, t) {
624
- return this.generateInternalStream(e).accumulate(t);
625
- },
626
- generateNodeStream: function(e, t) {
627
- return (e = e || {}).type || (e.type = "nodebuffer"), this.generateInternalStream(e).toNodejsStream(t);
628
- }
629
- };
630
- }, {
631
- "./compressedObject": 2,
632
- "./defaults": 5,
633
- "./generate": 9,
634
- "./nodejs/NodejsStreamInputAdapter": 12,
635
- "./nodejsUtils": 14,
636
- "./stream/GenericWorker": 28,
637
- "./stream/StreamHelper": 29,
638
- "./utf8": 31,
639
- "./utils": 32,
640
- "./zipObject": 35
641
- }],
642
- 16: [function(e, t, r) {
643
- "use strict";
644
- t.exports = e("stream");
645
- }, { stream: void 0 }],
646
- 17: [function(e, t, r) {
647
- "use strict";
648
- var n = e("./DataReader");
649
- function i(e) {
650
- n.call(this, e);
651
- for (var t = 0; t < this.data.length; t++) e[t] = 255 & e[t];
652
- }
653
- e("../utils").inherits(i, n), i.prototype.byteAt = function(e) {
654
- return this.data[this.zero + e];
655
- }, i.prototype.lastIndexOfSignature = function(e) {
656
- for (var t = e.charCodeAt(0), r = e.charCodeAt(1), n = e.charCodeAt(2), i = e.charCodeAt(3), s = this.length - 4; 0 <= s; --s) if (this.data[s] === t && this.data[s + 1] === r && this.data[s + 2] === n && this.data[s + 3] === i) return s - this.zero;
657
- return -1;
658
- }, i.prototype.readAndCheckSignature = function(e) {
659
- var t = e.charCodeAt(0), r = e.charCodeAt(1), n = e.charCodeAt(2), i = e.charCodeAt(3), s = this.readData(4);
660
- return t === s[0] && r === s[1] && n === s[2] && i === s[3];
661
- }, i.prototype.readData = function(e) {
662
- if (this.checkOffset(e), 0 === e) return [];
663
- var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
664
- return this.index += e, t;
665
- }, t.exports = i;
666
- }, {
667
- "../utils": 32,
668
- "./DataReader": 18
669
- }],
670
- 18: [function(e, t, r) {
671
- "use strict";
672
- var n = e("../utils");
673
- function i(e) {
674
- this.data = e, this.length = e.length, this.index = 0, this.zero = 0;
675
- }
676
- i.prototype = {
677
- checkOffset: function(e) {
678
- this.checkIndex(this.index + e);
679
- },
680
- checkIndex: function(e) {
681
- if (this.length < this.zero + e || e < 0) throw new Error("End of data reached (data length = " + this.length + ", asked index = " + e + "). Corrupted zip ?");
682
- },
683
- setIndex: function(e) {
684
- this.checkIndex(e), this.index = e;
685
- },
686
- skip: function(e) {
687
- this.setIndex(this.index + e);
688
- },
689
- byteAt: function() {},
690
- readInt: function(e) {
691
- var t, r = 0;
692
- for (this.checkOffset(e), t = this.index + e - 1; t >= this.index; t--) r = (r << 8) + this.byteAt(t);
693
- return this.index += e, r;
694
- },
695
- readString: function(e) {
696
- return n.transformTo("string", this.readData(e));
697
- },
698
- readData: function() {},
699
- lastIndexOfSignature: function() {},
700
- readAndCheckSignature: function() {},
701
- readDate: function() {
702
- var e = this.readInt(4);
703
- return new Date(Date.UTC(1980 + (e >> 25 & 127), (e >> 21 & 15) - 1, e >> 16 & 31, e >> 11 & 31, e >> 5 & 63, (31 & e) << 1));
704
- }
705
- }, t.exports = i;
706
- }, { "../utils": 32 }],
707
- 19: [function(e, t, r) {
708
- "use strict";
709
- var n = e("./Uint8ArrayReader");
710
- function i(e) {
711
- n.call(this, e);
712
- }
713
- e("../utils").inherits(i, n), i.prototype.readData = function(e) {
714
- this.checkOffset(e);
715
- var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
716
- return this.index += e, t;
717
- }, t.exports = i;
718
- }, {
719
- "../utils": 32,
720
- "./Uint8ArrayReader": 21
721
- }],
722
- 20: [function(e, t, r) {
723
- "use strict";
724
- var n = e("./DataReader");
725
- function i(e) {
726
- n.call(this, e);
727
- }
728
- e("../utils").inherits(i, n), i.prototype.byteAt = function(e) {
729
- return this.data.charCodeAt(this.zero + e);
730
- }, i.prototype.lastIndexOfSignature = function(e) {
731
- return this.data.lastIndexOf(e) - this.zero;
732
- }, i.prototype.readAndCheckSignature = function(e) {
733
- return e === this.readData(4);
734
- }, i.prototype.readData = function(e) {
735
- this.checkOffset(e);
736
- var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
737
- return this.index += e, t;
738
- }, t.exports = i;
739
- }, {
740
- "../utils": 32,
741
- "./DataReader": 18
742
- }],
743
- 21: [function(e, t, r) {
744
- "use strict";
745
- var n = e("./ArrayReader");
746
- function i(e) {
747
- n.call(this, e);
748
- }
749
- e("../utils").inherits(i, n), i.prototype.readData = function(e) {
750
- if (this.checkOffset(e), 0 === e) return new Uint8Array(0);
751
- var t = this.data.subarray(this.zero + this.index, this.zero + this.index + e);
752
- return this.index += e, t;
753
- }, t.exports = i;
754
- }, {
755
- "../utils": 32,
756
- "./ArrayReader": 17
757
- }],
758
- 22: [function(e, t, r) {
759
- "use strict";
760
- var n = e("../utils"), i = e("../support"), s = e("./ArrayReader"), a = e("./StringReader"), o = e("./NodeBufferReader"), h = e("./Uint8ArrayReader");
761
- t.exports = function(e) {
762
- var t = n.getTypeOf(e);
763
- return n.checkSupport(t), "string" !== t || i.uint8array ? "nodebuffer" === t ? new o(e) : i.uint8array ? new h(n.transformTo("uint8array", e)) : new s(n.transformTo("array", e)) : new a(e);
764
- };
765
- }, {
766
- "../support": 30,
767
- "../utils": 32,
768
- "./ArrayReader": 17,
769
- "./NodeBufferReader": 19,
770
- "./StringReader": 20,
771
- "./Uint8ArrayReader": 21
772
- }],
773
- 23: [function(e, t, r) {
774
- "use strict";
775
- r.LOCAL_FILE_HEADER = "PK", r.CENTRAL_FILE_HEADER = "PK", r.CENTRAL_DIRECTORY_END = "PK", r.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", r.ZIP64_CENTRAL_DIRECTORY_END = "PK", r.DATA_DESCRIPTOR = "PK\x07\b";
776
- }, {}],
777
- 24: [function(e, t, r) {
778
- "use strict";
779
- var n = e("./GenericWorker"), i = e("../utils");
780
- function s(e) {
781
- n.call(this, "ConvertWorker to " + e), this.destType = e;
782
- }
783
- i.inherits(s, n), s.prototype.processChunk = function(e) {
784
- this.push({
785
- data: i.transformTo(this.destType, e.data),
786
- meta: e.meta
787
- });
788
- }, t.exports = s;
789
- }, {
790
- "../utils": 32,
791
- "./GenericWorker": 28
792
- }],
793
- 25: [function(e, t, r) {
794
- "use strict";
795
- var n = e("./GenericWorker"), i = e("../crc32");
796
- function s() {
797
- n.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
798
- }
799
- e("../utils").inherits(s, n), s.prototype.processChunk = function(e) {
800
- this.streamInfo.crc32 = i(e.data, this.streamInfo.crc32 || 0), this.push(e);
801
- }, t.exports = s;
802
- }, {
803
- "../crc32": 4,
804
- "../utils": 32,
805
- "./GenericWorker": 28
806
- }],
807
- 26: [function(e, t, r) {
808
- "use strict";
809
- var n = e("../utils"), i = e("./GenericWorker");
810
- function s(e) {
811
- i.call(this, "DataLengthProbe for " + e), this.propName = e, this.withStreamInfo(e, 0);
812
- }
813
- n.inherits(s, i), s.prototype.processChunk = function(e) {
814
- if (e) {
815
- var t = this.streamInfo[this.propName] || 0;
816
- this.streamInfo[this.propName] = t + e.data.length;
817
- }
818
- i.prototype.processChunk.call(this, e);
819
- }, t.exports = s;
820
- }, {
821
- "../utils": 32,
822
- "./GenericWorker": 28
823
- }],
824
- 27: [function(e, t, r) {
825
- "use strict";
826
- var n = e("../utils"), i = e("./GenericWorker");
827
- function s(e) {
828
- i.call(this, "DataWorker");
829
- var t = this;
830
- this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, e.then(function(e) {
831
- t.dataIsReady = !0, t.data = e, t.max = e && e.length || 0, t.type = n.getTypeOf(e), t.isPaused || t._tickAndRepeat();
832
- }, function(e) {
833
- t.error(e);
834
- });
835
- }
836
- n.inherits(s, i), s.prototype.cleanUp = function() {
837
- i.prototype.cleanUp.call(this), this.data = null;
838
- }, s.prototype.resume = function() {
839
- return !!i.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, n.delay(this._tickAndRepeat, [], this)), !0);
840
- }, s.prototype._tickAndRepeat = function() {
841
- this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (n.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
842
- }, s.prototype._tick = function() {
843
- if (this.isPaused || this.isFinished) return !1;
844
- var e = null, t = Math.min(this.max, this.index + 16384);
845
- if (this.index >= this.max) return this.end();
846
- switch (this.type) {
847
- case "string":
848
- e = this.data.substring(this.index, t);
849
- break;
850
- case "uint8array":
851
- e = this.data.subarray(this.index, t);
852
- break;
853
- case "array":
854
- case "nodebuffer": e = this.data.slice(this.index, t);
855
- }
856
- return this.index = t, this.push({
857
- data: e,
858
- meta: { percent: this.max ? this.index / this.max * 100 : 0 }
859
- });
860
- }, t.exports = s;
861
- }, {
862
- "../utils": 32,
863
- "./GenericWorker": 28
864
- }],
865
- 28: [function(e, t, r) {
866
- "use strict";
867
- function n(e) {
868
- this.name = e || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = {
869
- data: [],
870
- end: [],
871
- error: []
872
- }, this.previous = null;
873
- }
874
- n.prototype = {
875
- push: function(e) {
876
- this.emit("data", e);
877
- },
878
- end: function() {
879
- if (this.isFinished) return !1;
880
- this.flush();
881
- try {
882
- this.emit("end"), this.cleanUp(), this.isFinished = !0;
883
- } catch (e) {
884
- this.emit("error", e);
885
- }
886
- return !0;
887
- },
888
- error: function(e) {
889
- return !this.isFinished && (this.isPaused ? this.generatedError = e : (this.isFinished = !0, this.emit("error", e), this.previous && this.previous.error(e), this.cleanUp()), !0);
890
- },
891
- on: function(e, t) {
892
- return this._listeners[e].push(t), this;
893
- },
894
- cleanUp: function() {
895
- this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
896
- },
897
- emit: function(e, t) {
898
- if (this._listeners[e]) for (var r = 0; r < this._listeners[e].length; r++) this._listeners[e][r].call(this, t);
899
- },
900
- pipe: function(e) {
901
- return e.registerPrevious(this);
902
- },
903
- registerPrevious: function(e) {
904
- if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
905
- this.streamInfo = e.streamInfo, this.mergeStreamInfo(), this.previous = e;
906
- var t = this;
907
- return e.on("data", function(e) {
908
- t.processChunk(e);
909
- }), e.on("end", function() {
910
- t.end();
911
- }), e.on("error", function(e) {
912
- t.error(e);
913
- }), this;
914
- },
915
- pause: function() {
916
- return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
917
- },
918
- resume: function() {
919
- if (!this.isPaused || this.isFinished) return !1;
920
- var e = this.isPaused = !1;
921
- return this.generatedError && (this.error(this.generatedError), e = !0), this.previous && this.previous.resume(), !e;
922
- },
923
- flush: function() {},
924
- processChunk: function(e) {
925
- this.push(e);
926
- },
927
- withStreamInfo: function(e, t) {
928
- return this.extraStreamInfo[e] = t, this.mergeStreamInfo(), this;
929
- },
930
- mergeStreamInfo: function() {
931
- for (var e in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, e) && (this.streamInfo[e] = this.extraStreamInfo[e]);
932
- },
933
- lock: function() {
934
- if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
935
- this.isLocked = !0, this.previous && this.previous.lock();
936
- },
937
- toString: function() {
938
- var e = "Worker " + this.name;
939
- return this.previous ? this.previous + " -> " + e : e;
940
- }
941
- }, t.exports = n;
942
- }, {}],
943
- 29: [function(e, t, r) {
944
- "use strict";
945
- var h = e("../utils"), i = e("./ConvertWorker"), s = e("./GenericWorker"), u = e("../base64"), n = e("../support"), a = e("../external"), o = null;
946
- if (n.nodestream) try {
947
- o = e("../nodejs/NodejsStreamOutputAdapter");
948
- } catch (e) {}
949
- function l(e, o) {
950
- return new a.Promise(function(t, r) {
951
- var n = [], i = e._internalType, s = e._outputType, a = e._mimeType;
952
- e.on("data", function(e, t) {
953
- n.push(e), o && o(t);
954
- }).on("error", function(e) {
955
- n = [], r(e);
956
- }).on("end", function() {
957
- try {
958
- t(function(e, t, r) {
959
- switch (e) {
960
- case "blob": return h.newBlob(h.transformTo("arraybuffer", t), r);
961
- case "base64": return u.encode(t);
962
- default: return h.transformTo(e, t);
963
- }
964
- }(s, function(e, t) {
965
- var r, n = 0, i = null, s = 0;
966
- for (r = 0; r < t.length; r++) s += t[r].length;
967
- switch (e) {
968
- case "string": return t.join("");
969
- case "array": return Array.prototype.concat.apply([], t);
970
- case "uint8array":
971
- for (i = new Uint8Array(s), r = 0; r < t.length; r++) i.set(t[r], n), n += t[r].length;
972
- return i;
973
- case "nodebuffer": return Buffer.concat(t);
974
- default: throw new Error("concat : unsupported type '" + e + "'");
975
- }
976
- }(i, n), a));
977
- } catch (e) {
978
- r(e);
979
- }
980
- n = [];
981
- }).resume();
982
- });
983
- }
984
- function f(e, t, r) {
985
- var n = t;
986
- switch (t) {
987
- case "blob":
988
- case "arraybuffer":
989
- n = "uint8array";
990
- break;
991
- case "base64": n = "string";
992
- }
993
- try {
994
- this._internalType = n, this._outputType = t, this._mimeType = r, h.checkSupport(n), this._worker = e.pipe(new i(n)), e.lock();
995
- } catch (e) {
996
- this._worker = new s("error"), this._worker.error(e);
997
- }
998
- }
999
- f.prototype = {
1000
- accumulate: function(e) {
1001
- return l(this, e);
1002
- },
1003
- on: function(e, t) {
1004
- var r = this;
1005
- return "data" === e ? this._worker.on(e, function(e) {
1006
- t.call(r, e.data, e.meta);
1007
- }) : this._worker.on(e, function() {
1008
- h.delay(t, arguments, r);
1009
- }), this;
1010
- },
1011
- resume: function() {
1012
- return h.delay(this._worker.resume, [], this._worker), this;
1013
- },
1014
- pause: function() {
1015
- return this._worker.pause(), this;
1016
- },
1017
- toNodejsStream: function(e) {
1018
- if (h.checkSupport("nodestream"), "nodebuffer" !== this._outputType) throw new Error(this._outputType + " is not supported by this method");
1019
- return new o(this, { objectMode: "nodebuffer" !== this._outputType }, e);
1020
- }
1021
- }, t.exports = f;
1022
- }, {
1023
- "../base64": 1,
1024
- "../external": 6,
1025
- "../nodejs/NodejsStreamOutputAdapter": 13,
1026
- "../support": 30,
1027
- "../utils": 32,
1028
- "./ConvertWorker": 24,
1029
- "./GenericWorker": 28
1030
- }],
1031
- 30: [function(e, t, r) {
1032
- "use strict";
1033
- if (r.base64 = !0, r.array = !0, r.string = !0, r.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array, r.nodebuffer = "undefined" != typeof Buffer, r.uint8array = "undefined" != typeof Uint8Array, "undefined" == typeof ArrayBuffer) r.blob = !1;
1034
- else {
1035
- var n = /* @__PURE__ */ new ArrayBuffer(0);
1036
- try {
1037
- r.blob = 0 === new Blob([n], { type: "application/zip" }).size;
1038
- } catch (e) {
1039
- try {
1040
- var i = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
1041
- i.append(n), r.blob = 0 === i.getBlob("application/zip").size;
1042
- } catch (e) {
1043
- r.blob = !1;
1044
- }
1045
- }
1046
- }
1047
- try {
1048
- r.nodestream = !!e("readable-stream").Readable;
1049
- } catch (e) {
1050
- r.nodestream = !1;
1051
- }
1052
- }, { "readable-stream": 16 }],
1053
- 31: [function(e, t, s) {
1054
- "use strict";
1055
- for (var o = e("./utils"), h = e("./support"), r = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u = new Array(256), i = 0; i < 256; i++) u[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
1056
- u[254] = u[254] = 1;
1057
- function a() {
1058
- n.call(this, "utf-8 decode"), this.leftOver = null;
1059
- }
1060
- function l() {
1061
- n.call(this, "utf-8 encode");
1062
- }
1063
- s.utf8encode = function(e) {
1064
- return h.nodebuffer ? r.newBufferFrom(e, "utf-8") : function(e) {
1065
- var t, r, n, i, s, a = e.length, o = 0;
1066
- for (i = 0; i < a; i++) 55296 == (64512 & (r = e.charCodeAt(i))) && i + 1 < a && 56320 == (64512 & (n = e.charCodeAt(i + 1))) && (r = 65536 + (r - 55296 << 10) + (n - 56320), i++), o += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4;
1067
- for (t = h.uint8array ? new Uint8Array(o) : new Array(o), i = s = 0; s < o; i++) 55296 == (64512 & (r = e.charCodeAt(i))) && i + 1 < a && 56320 == (64512 & (n = e.charCodeAt(i + 1))) && (r = 65536 + (r - 55296 << 10) + (n - 56320), i++), r < 128 ? t[s++] = r : (r < 2048 ? t[s++] = 192 | r >>> 6 : (r < 65536 ? t[s++] = 224 | r >>> 12 : (t[s++] = 240 | r >>> 18, t[s++] = 128 | r >>> 12 & 63), t[s++] = 128 | r >>> 6 & 63), t[s++] = 128 | 63 & r);
1068
- return t;
1069
- }(e);
1070
- }, s.utf8decode = function(e) {
1071
- return h.nodebuffer ? o.transformTo("nodebuffer", e).toString("utf-8") : function(e) {
1072
- var t, r, n, i, s = e.length, a = new Array(2 * s);
1073
- for (t = r = 0; t < s;) if ((n = e[t++]) < 128) a[r++] = n;
1074
- else if (4 < (i = u[n])) a[r++] = 65533, t += i - 1;
1075
- else {
1076
- for (n &= 2 === i ? 31 : 3 === i ? 15 : 7; 1 < i && t < s;) n = n << 6 | 63 & e[t++], i--;
1077
- 1 < i ? a[r++] = 65533 : n < 65536 ? a[r++] = n : (n -= 65536, a[r++] = 55296 | n >> 10 & 1023, a[r++] = 56320 | 1023 & n);
1078
- }
1079
- return a.length !== r && (a.subarray ? a = a.subarray(0, r) : a.length = r), o.applyFromCharCode(a);
1080
- }(e = o.transformTo(h.uint8array ? "uint8array" : "array", e));
1081
- }, o.inherits(a, n), a.prototype.processChunk = function(e) {
1082
- var t = o.transformTo(h.uint8array ? "uint8array" : "array", e.data);
1083
- if (this.leftOver && this.leftOver.length) {
1084
- if (h.uint8array) {
1085
- var r = t;
1086
- (t = new Uint8Array(r.length + this.leftOver.length)).set(this.leftOver, 0), t.set(r, this.leftOver.length);
1087
- } else t = this.leftOver.concat(t);
1088
- this.leftOver = null;
1089
- }
1090
- var n = function(e, t) {
1091
- var r;
1092
- for ((t = t || e.length) > e.length && (t = e.length), r = t - 1; 0 <= r && 128 == (192 & e[r]);) r--;
1093
- return r < 0 ? t : 0 === r ? t : r + u[e[r]] > t ? r : t;
1094
- }(t), i = t;
1095
- n !== t.length && (h.uint8array ? (i = t.subarray(0, n), this.leftOver = t.subarray(n, t.length)) : (i = t.slice(0, n), this.leftOver = t.slice(n, t.length))), this.push({
1096
- data: s.utf8decode(i),
1097
- meta: e.meta
1098
- });
1099
- }, a.prototype.flush = function() {
1100
- this.leftOver && this.leftOver.length && (this.push({
1101
- data: s.utf8decode(this.leftOver),
1102
- meta: {}
1103
- }), this.leftOver = null);
1104
- }, s.Utf8DecodeWorker = a, o.inherits(l, n), l.prototype.processChunk = function(e) {
1105
- this.push({
1106
- data: s.utf8encode(e.data),
1107
- meta: e.meta
1108
- });
1109
- }, s.Utf8EncodeWorker = l;
1110
- }, {
1111
- "./nodejsUtils": 14,
1112
- "./stream/GenericWorker": 28,
1113
- "./support": 30,
1114
- "./utils": 32
1115
- }],
1116
- 32: [function(e, t, a) {
1117
- "use strict";
1118
- var o = e("./support"), h = e("./base64"), r = e("./nodejsUtils"), u = e("./external");
1119
- function n(e) {
1120
- return e;
1121
- }
1122
- function l(e, t) {
1123
- for (var r = 0; r < e.length; ++r) t[r] = 255 & e.charCodeAt(r);
1124
- return t;
1125
- }
1126
- e("setimmediate"), a.newBlob = function(t, r) {
1127
- a.checkSupport("blob");
1128
- try {
1129
- return new Blob([t], { type: r });
1130
- } catch (e) {
1131
- try {
1132
- var n = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
1133
- return n.append(t), n.getBlob(r);
1134
- } catch (e) {
1135
- throw new Error("Bug : can't construct the Blob.");
1136
- }
1137
- }
1138
- };
1139
- var i = {
1140
- stringifyByChunk: function(e, t, r) {
1141
- var n = [], i = 0, s = e.length;
1142
- if (s <= r) return String.fromCharCode.apply(null, e);
1143
- for (; i < s;) "array" === t || "nodebuffer" === t ? n.push(String.fromCharCode.apply(null, e.slice(i, Math.min(i + r, s)))) : n.push(String.fromCharCode.apply(null, e.subarray(i, Math.min(i + r, s)))), i += r;
1144
- return n.join("");
1145
- },
1146
- stringifyByChar: function(e) {
1147
- for (var t = "", r = 0; r < e.length; r++) t += String.fromCharCode(e[r]);
1148
- return t;
1149
- },
1150
- applyCanBeUsed: {
1151
- uint8array: function() {
1152
- try {
1153
- return o.uint8array && 1 === String.fromCharCode.apply(null, new Uint8Array(1)).length;
1154
- } catch (e) {
1155
- return !1;
1156
- }
1157
- }(),
1158
- nodebuffer: function() {
1159
- try {
1160
- return o.nodebuffer && 1 === String.fromCharCode.apply(null, r.allocBuffer(1)).length;
1161
- } catch (e) {
1162
- return !1;
1163
- }
1164
- }()
1165
- }
1166
- };
1167
- function s(e) {
1168
- var t = 65536, r = a.getTypeOf(e), n = !0;
1169
- if ("uint8array" === r ? n = i.applyCanBeUsed.uint8array : "nodebuffer" === r && (n = i.applyCanBeUsed.nodebuffer), n) for (; 1 < t;) try {
1170
- return i.stringifyByChunk(e, r, t);
1171
- } catch (e) {
1172
- t = Math.floor(t / 2);
1173
- }
1174
- return i.stringifyByChar(e);
1175
- }
1176
- function f(e, t) {
1177
- for (var r = 0; r < e.length; r++) t[r] = e[r];
1178
- return t;
1179
- }
1180
- a.applyFromCharCode = s;
1181
- var c = {};
1182
- c.string = {
1183
- string: n,
1184
- array: function(e) {
1185
- return l(e, new Array(e.length));
1186
- },
1187
- arraybuffer: function(e) {
1188
- return c.string.uint8array(e).buffer;
1189
- },
1190
- uint8array: function(e) {
1191
- return l(e, new Uint8Array(e.length));
1192
- },
1193
- nodebuffer: function(e) {
1194
- return l(e, r.allocBuffer(e.length));
1195
- }
1196
- }, c.array = {
1197
- string: s,
1198
- array: n,
1199
- arraybuffer: function(e) {
1200
- return new Uint8Array(e).buffer;
1201
- },
1202
- uint8array: function(e) {
1203
- return new Uint8Array(e);
1204
- },
1205
- nodebuffer: function(e) {
1206
- return r.newBufferFrom(e);
1207
- }
1208
- }, c.arraybuffer = {
1209
- string: function(e) {
1210
- return s(new Uint8Array(e));
1211
- },
1212
- array: function(e) {
1213
- return f(new Uint8Array(e), new Array(e.byteLength));
1214
- },
1215
- arraybuffer: n,
1216
- uint8array: function(e) {
1217
- return new Uint8Array(e);
1218
- },
1219
- nodebuffer: function(e) {
1220
- return r.newBufferFrom(new Uint8Array(e));
1221
- }
1222
- }, c.uint8array = {
1223
- string: s,
1224
- array: function(e) {
1225
- return f(e, new Array(e.length));
1226
- },
1227
- arraybuffer: function(e) {
1228
- return e.buffer;
1229
- },
1230
- uint8array: n,
1231
- nodebuffer: function(e) {
1232
- return r.newBufferFrom(e);
1233
- }
1234
- }, c.nodebuffer = {
1235
- string: s,
1236
- array: function(e) {
1237
- return f(e, new Array(e.length));
1238
- },
1239
- arraybuffer: function(e) {
1240
- return c.nodebuffer.uint8array(e).buffer;
1241
- },
1242
- uint8array: function(e) {
1243
- return f(e, new Uint8Array(e.length));
1244
- },
1245
- nodebuffer: n
1246
- }, a.transformTo = function(e, t) {
1247
- if (t = t || "", !e) return t;
1248
- a.checkSupport(e);
1249
- return c[a.getTypeOf(t)][e](t);
1250
- }, a.resolve = function(e) {
1251
- for (var t = e.split("/"), r = [], n = 0; n < t.length; n++) {
1252
- var i = t[n];
1253
- "." === i || "" === i && 0 !== n && n !== t.length - 1 || (".." === i ? r.pop() : r.push(i));
1254
- }
1255
- return r.join("/");
1256
- }, a.getTypeOf = function(e) {
1257
- return "string" == typeof e ? "string" : "[object Array]" === Object.prototype.toString.call(e) ? "array" : o.nodebuffer && r.isBuffer(e) ? "nodebuffer" : o.uint8array && e instanceof Uint8Array ? "uint8array" : o.arraybuffer && e instanceof ArrayBuffer ? "arraybuffer" : void 0;
1258
- }, a.checkSupport = function(e) {
1259
- if (!o[e.toLowerCase()]) throw new Error(e + " is not supported by this platform");
1260
- }, a.MAX_VALUE_16BITS = 65535, a.MAX_VALUE_32BITS = -1, a.pretty = function(e) {
1261
- var t, r, n = "";
1262
- for (r = 0; r < (e || "").length; r++) n += "\\x" + ((t = e.charCodeAt(r)) < 16 ? "0" : "") + t.toString(16).toUpperCase();
1263
- return n;
1264
- }, a.delay = function(e, t, r) {
1265
- setImmediate(function() {
1266
- e.apply(r || null, t || []);
1267
- });
1268
- }, a.inherits = function(e, t) {
1269
- function r() {}
1270
- r.prototype = t.prototype, e.prototype = new r();
1271
- }, a.extend = function() {
1272
- var e, t, r = {};
1273
- for (e = 0; e < arguments.length; e++) for (t in arguments[e]) Object.prototype.hasOwnProperty.call(arguments[e], t) && void 0 === r[t] && (r[t] = arguments[e][t]);
1274
- return r;
1275
- }, a.prepareContent = function(r, e, n, i, s) {
1276
- return u.Promise.resolve(e).then(function(n) {
1277
- return o.blob && (n instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n))) && "undefined" != typeof FileReader ? new u.Promise(function(t, r) {
1278
- var e = new FileReader();
1279
- e.onload = function(e) {
1280
- t(e.target.result);
1281
- }, e.onerror = function(e) {
1282
- r(e.target.error);
1283
- }, e.readAsArrayBuffer(n);
1284
- }) : n;
1285
- }).then(function(e) {
1286
- var t = a.getTypeOf(e);
1287
- return t ? ("arraybuffer" === t ? e = a.transformTo("uint8array", e) : "string" === t && (s ? e = h.decode(e) : n && !0 !== i && (e = function(e) {
1288
- return l(e, o.uint8array ? new Uint8Array(e.length) : new Array(e.length));
1289
- }(e))), e) : u.Promise.reject(/* @__PURE__ */ new Error("Can't read the data of '" + r + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
1290
- });
1291
- };
1292
- }, {
1293
- "./base64": 1,
1294
- "./external": 6,
1295
- "./nodejsUtils": 14,
1296
- "./support": 30,
1297
- setimmediate: 54
1298
- }],
1299
- 33: [function(e, t, r) {
1300
- "use strict";
1301
- var n = e("./reader/readerFor"), i = e("./utils"), s = e("./signature"), a = e("./zipEntry"), o = e("./support");
1302
- function h(e) {
1303
- this.files = [], this.loadOptions = e;
1304
- }
1305
- h.prototype = {
1306
- checkSignature: function(e) {
1307
- if (!this.reader.readAndCheckSignature(e)) {
1308
- this.reader.index -= 4;
1309
- var t = this.reader.readString(4);
1310
- throw new Error("Corrupted zip or bug: unexpected signature (" + i.pretty(t) + ", expected " + i.pretty(e) + ")");
1311
- }
1312
- },
1313
- isSignature: function(e, t) {
1314
- var r = this.reader.index;
1315
- this.reader.setIndex(e);
1316
- var n = this.reader.readString(4) === t;
1317
- return this.reader.setIndex(r), n;
1318
- },
1319
- readBlockEndOfCentral: function() {
1320
- 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);
1321
- var e = this.reader.readData(this.zipCommentLength), t = o.uint8array ? "uint8array" : "array", r = i.transformTo(t, e);
1322
- this.zipComment = this.loadOptions.decodeFileName(r);
1323
- },
1324
- readBlockZip64EndOfCentral: function() {
1325
- this.zip64EndOfCentralSize = this.reader.readInt(8), this.reader.skip(4), this.diskNumber = this.reader.readInt(4), this.diskWithCentralDirStart = this.reader.readInt(4), this.centralDirRecordsOnThisDisk = this.reader.readInt(8), this.centralDirRecords = this.reader.readInt(8), this.centralDirSize = this.reader.readInt(8), this.centralDirOffset = this.reader.readInt(8), this.zip64ExtensibleData = {};
1326
- for (var e, t, r, n = this.zip64EndOfCentralSize - 44; 0 < n;) e = this.reader.readInt(2), t = this.reader.readInt(4), r = this.reader.readData(t), this.zip64ExtensibleData[e] = {
1327
- id: e,
1328
- length: t,
1329
- value: r
1330
- };
1331
- },
1332
- readBlockZip64EndOfCentralLocator: function() {
1333
- if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw new Error("Multi-volumes zip are not supported");
1334
- },
1335
- readLocalFiles: function() {
1336
- var e, t;
1337
- for (e = 0; e < this.files.length; e++) t = this.files[e], this.reader.setIndex(t.localHeaderOffset), this.checkSignature(s.LOCAL_FILE_HEADER), t.readLocalPart(this.reader), t.handleUTF8(), t.processAttributes();
1338
- },
1339
- readCentralDir: function() {
1340
- var e;
1341
- for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);) (e = new a({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(e);
1342
- if (this.centralDirRecords !== this.files.length && 0 !== this.centralDirRecords && 0 === this.files.length) throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
1343
- },
1344
- readEndOfCentral: function() {
1345
- var e = this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);
1346
- if (e < 0) throw !this.isSignature(0, s.LOCAL_FILE_HEADER) ? /* @__PURE__ */ new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html") : /* @__PURE__ */ new Error("Corrupted zip: can't find end of central directory");
1347
- this.reader.setIndex(e);
1348
- var t = e;
1349
- if (this.checkSignature(s.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === i.MAX_VALUE_16BITS || this.diskWithCentralDirStart === i.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === i.MAX_VALUE_16BITS || this.centralDirRecords === i.MAX_VALUE_16BITS || this.centralDirSize === i.MAX_VALUE_32BITS || this.centralDirOffset === i.MAX_VALUE_32BITS) {
1350
- if (this.zip64 = !0, (e = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
1351
- if (this.reader.setIndex(e), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, s.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
1352
- this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
1353
- }
1354
- var r = this.centralDirOffset + this.centralDirSize;
1355
- this.zip64 && (r += 20, r += 12 + this.zip64EndOfCentralSize);
1356
- var n = t - r;
1357
- if (0 < n) this.isSignature(t, s.CENTRAL_FILE_HEADER) || (this.reader.zero = n);
1358
- else if (n < 0) throw new Error("Corrupted zip: missing " + Math.abs(n) + " bytes.");
1359
- },
1360
- prepareReader: function(e) {
1361
- this.reader = n(e);
1362
- },
1363
- load: function(e) {
1364
- this.prepareReader(e), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
1365
- }
1366
- }, t.exports = h;
1367
- }, {
1368
- "./reader/readerFor": 22,
1369
- "./signature": 23,
1370
- "./support": 30,
1371
- "./utils": 32,
1372
- "./zipEntry": 34
1373
- }],
1374
- 34: [function(e, t, r) {
1375
- "use strict";
1376
- var n = e("./reader/readerFor"), s = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h = e("./compressions"), u = e("./support");
1377
- function l(e, t) {
1378
- this.options = e, this.loadOptions = t;
1379
- }
1380
- l.prototype = {
1381
- isEncrypted: function() {
1382
- return 1 == (1 & this.bitFlag);
1383
- },
1384
- useUTF8: function() {
1385
- return 2048 == (2048 & this.bitFlag);
1386
- },
1387
- readLocalPart: function(e) {
1388
- var t, r;
1389
- if (e.skip(22), this.fileNameLength = e.readInt(2), r = e.readInt(2), this.fileName = e.readData(this.fileNameLength), e.skip(r), -1 === this.compressedSize || -1 === this.uncompressedSize) throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
1390
- if (null === (t = function(e) {
1391
- for (var t in h) if (Object.prototype.hasOwnProperty.call(h, t) && h[t].magic === e) return h[t];
1392
- return null;
1393
- }(this.compressionMethod))) throw new Error("Corrupted zip : compression " + s.pretty(this.compressionMethod) + " unknown (inner file : " + s.transformTo("string", this.fileName) + ")");
1394
- this.decompressed = new i(this.compressedSize, this.uncompressedSize, this.crc32, t, e.readData(this.compressedSize));
1395
- },
1396
- readCentralPart: function(e) {
1397
- this.versionMadeBy = e.readInt(2), e.skip(2), this.bitFlag = e.readInt(2), this.compressionMethod = e.readString(2), this.date = e.readDate(), this.crc32 = e.readInt(4), this.compressedSize = e.readInt(4), this.uncompressedSize = e.readInt(4);
1398
- var t = e.readInt(2);
1399
- if (this.extraFieldsLength = e.readInt(2), this.fileCommentLength = e.readInt(2), this.diskNumberStart = e.readInt(2), this.internalFileAttributes = e.readInt(2), this.externalFileAttributes = e.readInt(4), this.localHeaderOffset = e.readInt(4), this.isEncrypted()) throw new Error("Encrypted zip are not supported");
1400
- e.skip(t), this.readExtraFields(e), this.parseZIP64ExtraField(e), this.fileComment = e.readData(this.fileCommentLength);
1401
- },
1402
- processAttributes: function() {
1403
- this.unixPermissions = null, this.dosPermissions = null;
1404
- var e = this.versionMadeBy >> 8;
1405
- this.dir = !!(16 & this.externalFileAttributes), 0 == e && (this.dosPermissions = 63 & this.externalFileAttributes), 3 == e && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || "/" !== this.fileNameStr.slice(-1) || (this.dir = !0);
1406
- },
1407
- parseZIP64ExtraField: function() {
1408
- if (this.extraFields[1]) {
1409
- var e = n(this.extraFields[1].value);
1410
- this.uncompressedSize === s.MAX_VALUE_32BITS && (this.uncompressedSize = e.readInt(8)), this.compressedSize === s.MAX_VALUE_32BITS && (this.compressedSize = e.readInt(8)), this.localHeaderOffset === s.MAX_VALUE_32BITS && (this.localHeaderOffset = e.readInt(8)), this.diskNumberStart === s.MAX_VALUE_32BITS && (this.diskNumberStart = e.readInt(4));
1411
- }
1412
- },
1413
- readExtraFields: function(e) {
1414
- var t, r, n, i = e.index + this.extraFieldsLength;
1415
- for (this.extraFields || (this.extraFields = {}); e.index + 4 < i;) t = e.readInt(2), r = e.readInt(2), n = e.readData(r), this.extraFields[t] = {
1416
- id: t,
1417
- length: r,
1418
- value: n
1419
- };
1420
- e.setIndex(i);
1421
- },
1422
- handleUTF8: function() {
1423
- var e = u.uint8array ? "uint8array" : "array";
1424
- if (this.useUTF8()) this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment);
1425
- else {
1426
- var t = this.findExtraFieldUnicodePath();
1427
- if (null !== t) this.fileNameStr = t;
1428
- else {
1429
- var r = s.transformTo(e, this.fileName);
1430
- this.fileNameStr = this.loadOptions.decodeFileName(r);
1431
- }
1432
- var n = this.findExtraFieldUnicodeComment();
1433
- if (null !== n) this.fileCommentStr = n;
1434
- else {
1435
- var i = s.transformTo(e, this.fileComment);
1436
- this.fileCommentStr = this.loadOptions.decodeFileName(i);
1437
- }
1438
- }
1439
- },
1440
- findExtraFieldUnicodePath: function() {
1441
- var e = this.extraFields[28789];
1442
- if (e) {
1443
- var t = n(e.value);
1444
- return 1 !== t.readInt(1) ? null : a(this.fileName) !== t.readInt(4) ? null : o.utf8decode(t.readData(e.length - 5));
1445
- }
1446
- return null;
1447
- },
1448
- findExtraFieldUnicodeComment: function() {
1449
- var e = this.extraFields[25461];
1450
- if (e) {
1451
- var t = n(e.value);
1452
- return 1 !== t.readInt(1) ? null : a(this.fileComment) !== t.readInt(4) ? null : o.utf8decode(t.readData(e.length - 5));
1453
- }
1454
- return null;
1455
- }
1456
- }, t.exports = l;
1457
- }, {
1458
- "./compressedObject": 2,
1459
- "./compressions": 3,
1460
- "./crc32": 4,
1461
- "./reader/readerFor": 22,
1462
- "./support": 30,
1463
- "./utf8": 31,
1464
- "./utils": 32
1465
- }],
1466
- 35: [function(e, t, r) {
1467
- "use strict";
1468
- function n(e, t, r) {
1469
- this.name = e, this.dir = r.dir, this.date = r.date, this.comment = r.comment, this.unixPermissions = r.unixPermissions, this.dosPermissions = r.dosPermissions, this._data = t, this._dataBinary = r.binary, this.options = {
1470
- compression: r.compression,
1471
- compressionOptions: r.compressionOptions
1472
- };
1473
- }
1474
- var s = e("./stream/StreamHelper"), i = e("./stream/DataWorker"), a = e("./utf8"), o = e("./compressedObject"), h = e("./stream/GenericWorker");
1475
- n.prototype = {
1476
- internalStream: function(e) {
1477
- var t = null, r = "string";
1478
- try {
1479
- if (!e) throw new Error("No output type specified.");
1480
- var n = "string" === (r = e.toLowerCase()) || "text" === r;
1481
- "binarystring" !== r && "text" !== r || (r = "string"), t = this._decompressWorker();
1482
- var i = !this._dataBinary;
1483
- i && !n && (t = t.pipe(new a.Utf8EncodeWorker())), !i && n && (t = t.pipe(new a.Utf8DecodeWorker()));
1484
- } catch (e) {
1485
- (t = new h("error")).error(e);
1486
- }
1487
- return new s(t, r, "");
1488
- },
1489
- async: function(e, t) {
1490
- return this.internalStream(e).accumulate(t);
1491
- },
1492
- nodeStream: function(e, t) {
1493
- return this.internalStream(e || "nodebuffer").toNodejsStream(t);
1494
- },
1495
- _compressWorker: function(e, t) {
1496
- if (this._data instanceof o && this._data.compression.magic === e.magic) return this._data.getCompressedWorker();
1497
- var r = this._decompressWorker();
1498
- return this._dataBinary || (r = r.pipe(new a.Utf8EncodeWorker())), o.createWorkerFrom(r, e, t);
1499
- },
1500
- _decompressWorker: function() {
1501
- return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h ? this._data : new i(this._data);
1502
- }
1503
- };
1504
- for (var u = [
1505
- "asText",
1506
- "asBinary",
1507
- "asNodeBuffer",
1508
- "asUint8Array",
1509
- "asArrayBuffer"
1510
- ], l = function() {
1511
- throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
1512
- }, f = 0; f < u.length; f++) n.prototype[u[f]] = l;
1513
- t.exports = n;
1514
- }, {
1515
- "./compressedObject": 2,
1516
- "./stream/DataWorker": 27,
1517
- "./stream/GenericWorker": 28,
1518
- "./stream/StreamHelper": 29,
1519
- "./utf8": 31
1520
- }],
1521
- 36: [function(e, l, t) {
1522
- (function(t) {
1523
- "use strict";
1524
- var r, n, e = t.MutationObserver || t.WebKitMutationObserver;
1525
- if (e) {
1526
- var i = 0, s = new e(u), a = t.document.createTextNode("");
1527
- s.observe(a, { characterData: !0 }), r = function() {
1528
- a.data = i = ++i % 2;
1529
- };
1530
- } else if (t.setImmediate || void 0 === t.MessageChannel) r = "document" in t && "onreadystatechange" in t.document.createElement("script") ? function() {
1531
- var e = t.document.createElement("script");
1532
- e.onreadystatechange = function() {
1533
- u(), e.onreadystatechange = null, e.parentNode.removeChild(e), e = null;
1534
- }, t.document.documentElement.appendChild(e);
1535
- } : function() {
1536
- setTimeout(u, 0);
1537
- };
1538
- else {
1539
- var o = new t.MessageChannel();
1540
- o.port1.onmessage = u, r = function() {
1541
- o.port2.postMessage(0);
1542
- };
1543
- }
1544
- var h = [];
1545
- function u() {
1546
- var e, t;
1547
- n = !0;
1548
- for (var r = h.length; r;) {
1549
- for (t = h, h = [], e = -1; ++e < r;) t[e]();
1550
- r = h.length;
1551
- }
1552
- n = !1;
1553
- }
1554
- l.exports = function(e) {
1555
- 1 !== h.push(e) || n || r();
1556
- };
1557
- }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
1558
- }, {}],
1559
- 37: [function(e, t, r) {
1560
- "use strict";
1561
- var i = e("immediate");
1562
- function u() {}
1563
- var l = {}, s = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"];
1564
- function o(e) {
1565
- if ("function" != typeof e) throw new TypeError("resolver must be a function");
1566
- this.state = n, this.queue = [], this.outcome = void 0, e !== u && d(this, e);
1567
- }
1568
- function h(e, t, r) {
1569
- this.promise = e, "function" == typeof t && (this.onFulfilled = t, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r && (this.onRejected = r, this.callRejected = this.otherCallRejected);
1570
- }
1571
- function f(t, r, n) {
1572
- i(function() {
1573
- var e;
1574
- try {
1575
- e = r(n);
1576
- } catch (e) {
1577
- return l.reject(t, e);
1578
- }
1579
- e === t ? l.reject(t, /* @__PURE__ */ new TypeError("Cannot resolve promise with itself")) : l.resolve(t, e);
1580
- });
1581
- }
1582
- function c(e) {
1583
- var t = e && e.then;
1584
- if (e && ("object" == typeof e || "function" == typeof e) && "function" == typeof t) return function() {
1585
- t.apply(e, arguments);
1586
- };
1587
- }
1588
- function d(t, e) {
1589
- var r = !1;
1590
- function n(e) {
1591
- r || (r = !0, l.reject(t, e));
1592
- }
1593
- function i(e) {
1594
- r || (r = !0, l.resolve(t, e));
1595
- }
1596
- var s = p(function() {
1597
- e(i, n);
1598
- });
1599
- "error" === s.status && n(s.value);
1600
- }
1601
- function p(e, t) {
1602
- var r = {};
1603
- try {
1604
- r.value = e(t), r.status = "success";
1605
- } catch (e) {
1606
- r.status = "error", r.value = e;
1607
- }
1608
- return r;
1609
- }
1610
- (t.exports = o).prototype.finally = function(t) {
1611
- if ("function" != typeof t) return this;
1612
- var r = this.constructor;
1613
- return this.then(function(e) {
1614
- return r.resolve(t()).then(function() {
1615
- return e;
1616
- });
1617
- }, function(e) {
1618
- return r.resolve(t()).then(function() {
1619
- throw e;
1620
- });
1621
- });
1622
- }, o.prototype.catch = function(e) {
1623
- return this.then(null, e);
1624
- }, o.prototype.then = function(e, t) {
1625
- if ("function" != typeof e && this.state === a || "function" != typeof t && this.state === s) return this;
1626
- var r = new this.constructor(u);
1627
- this.state !== n ? f(r, this.state === a ? e : t, this.outcome) : this.queue.push(new h(r, e, t));
1628
- return r;
1629
- }, h.prototype.callFulfilled = function(e) {
1630
- l.resolve(this.promise, e);
1631
- }, h.prototype.otherCallFulfilled = function(e) {
1632
- f(this.promise, this.onFulfilled, e);
1633
- }, h.prototype.callRejected = function(e) {
1634
- l.reject(this.promise, e);
1635
- }, h.prototype.otherCallRejected = function(e) {
1636
- f(this.promise, this.onRejected, e);
1637
- }, l.resolve = function(e, t) {
1638
- var r = p(c, t);
1639
- if ("error" === r.status) return l.reject(e, r.value);
1640
- var n = r.value;
1641
- if (n) d(e, n);
1642
- else {
1643
- e.state = a, e.outcome = t;
1644
- for (var i = -1, s = e.queue.length; ++i < s;) e.queue[i].callFulfilled(t);
1645
- }
1646
- return e;
1647
- }, l.reject = function(e, t) {
1648
- e.state = s, e.outcome = t;
1649
- for (var r = -1, n = e.queue.length; ++r < n;) e.queue[r].callRejected(t);
1650
- return e;
1651
- }, o.resolve = function(e) {
1652
- if (e instanceof this) return e;
1653
- return l.resolve(new this(u), e);
1654
- }, o.reject = function(e) {
1655
- var t = new this(u);
1656
- return l.reject(t, e);
1657
- }, o.all = function(e) {
1658
- var r = this;
1659
- if ("[object Array]" !== Object.prototype.toString.call(e)) return this.reject(/* @__PURE__ */ new TypeError("must be an array"));
1660
- var n = e.length, i = !1;
1661
- if (!n) return this.resolve([]);
1662
- var s = new Array(n), a = 0, t = -1, o = new this(u);
1663
- for (; ++t < n;) h(e[t], t);
1664
- return o;
1665
- function h(e, t) {
1666
- r.resolve(e).then(function(e) {
1667
- s[t] = e, ++a !== n || i || (i = !0, l.resolve(o, s));
1668
- }, function(e) {
1669
- i || (i = !0, l.reject(o, e));
1670
- });
1671
- }
1672
- }, o.race = function(e) {
1673
- var t = this;
1674
- if ("[object Array]" !== Object.prototype.toString.call(e)) return this.reject(/* @__PURE__ */ new TypeError("must be an array"));
1675
- var r = e.length, n = !1;
1676
- if (!r) return this.resolve([]);
1677
- var i = -1, s = new this(u);
1678
- for (; ++i < r;) a = e[i], t.resolve(a).then(function(e) {
1679
- n || (n = !0, l.resolve(s, e));
1680
- }, function(e) {
1681
- n || (n = !0, l.reject(s, e));
1682
- });
1683
- var a;
1684
- return s;
1685
- };
1686
- }, { immediate: 36 }],
1687
- 38: [function(e, t, r) {
1688
- "use strict";
1689
- var n = {};
1690
- (0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = n;
1691
- }, {
1692
- "./lib/deflate": 39,
1693
- "./lib/inflate": 40,
1694
- "./lib/utils/common": 41,
1695
- "./lib/zlib/constants": 44
1696
- }],
1697
- 39: [function(e, t, r) {
1698
- "use strict";
1699
- var a = e("./zlib/deflate"), o = e("./utils/common"), h = e("./utils/strings"), i = e("./zlib/messages"), s = e("./zlib/zstream"), u = Object.prototype.toString, l = 0, f = -1, c = 0, d = 8;
1700
- function p(e) {
1701
- if (!(this instanceof p)) return new p(e);
1702
- this.options = o.assign({
1703
- level: f,
1704
- method: d,
1705
- chunkSize: 16384,
1706
- windowBits: 15,
1707
- memLevel: 8,
1708
- strategy: c,
1709
- to: ""
1710
- }, e || {});
1711
- var t = this.options;
1712
- t.raw && 0 < t.windowBits ? t.windowBits = -t.windowBits : t.gzip && 0 < t.windowBits && t.windowBits < 16 && (t.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new s(), this.strm.avail_out = 0;
1713
- var r = a.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy);
1714
- if (r !== l) throw new Error(i[r]);
1715
- if (t.header && a.deflateSetHeader(this.strm, t.header), t.dictionary) {
1716
- var n;
1717
- if (n = "string" == typeof t.dictionary ? h.string2buf(t.dictionary) : "[object ArrayBuffer]" === u.call(t.dictionary) ? new Uint8Array(t.dictionary) : t.dictionary, (r = a.deflateSetDictionary(this.strm, n)) !== l) throw new Error(i[r]);
1718
- this._dict_set = !0;
1719
- }
1720
- }
1721
- function n(e, t) {
1722
- var r = new p(t);
1723
- if (r.push(e, !0), r.err) throw r.msg || i[r.err];
1724
- return r.result;
1725
- }
1726
- p.prototype.push = function(e, t) {
1727
- var r, n, i = this.strm, s = this.options.chunkSize;
1728
- if (this.ended) return !1;
1729
- n = t === ~~t ? t : !0 === t ? 4 : 0, "string" == typeof e ? i.input = h.string2buf(e) : "[object ArrayBuffer]" === u.call(e) ? i.input = new Uint8Array(e) : i.input = e, i.next_in = 0, i.avail_in = i.input.length;
1730
- do {
1731
- if (0 === i.avail_out && (i.output = new o.Buf8(s), i.next_out = 0, i.avail_out = s), 1 !== (r = a.deflate(i, n)) && r !== l) return this.onEnd(r), !(this.ended = !0);
1732
- 0 !== i.avail_out && (0 !== i.avail_in || 4 !== n && 2 !== n) || ("string" === this.options.to ? this.onData(h.buf2binstring(o.shrinkBuf(i.output, i.next_out))) : this.onData(o.shrinkBuf(i.output, i.next_out)));
1733
- } while ((0 < i.avail_in || 0 === i.avail_out) && 1 !== r);
1734
- return 4 === n ? (r = a.deflateEnd(this.strm), this.onEnd(r), this.ended = !0, r === l) : 2 !== n || (this.onEnd(l), !(i.avail_out = 0));
1735
- }, p.prototype.onData = function(e) {
1736
- this.chunks.push(e);
1737
- }, p.prototype.onEnd = function(e) {
1738
- e === l && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
1739
- }, r.Deflate = p, r.deflate = n, r.deflateRaw = function(e, t) {
1740
- return (t = t || {}).raw = !0, n(e, t);
1741
- }, r.gzip = function(e, t) {
1742
- return (t = t || {}).gzip = !0, n(e, t);
1743
- };
1744
- }, {
1745
- "./utils/common": 41,
1746
- "./utils/strings": 42,
1747
- "./zlib/deflate": 46,
1748
- "./zlib/messages": 51,
1749
- "./zlib/zstream": 53
1750
- }],
1751
- 40: [function(e, t, r) {
1752
- "use strict";
1753
- var c = e("./zlib/inflate"), d = e("./utils/common"), p = e("./utils/strings"), m = e("./zlib/constants"), n = e("./zlib/messages"), i = e("./zlib/zstream"), s = e("./zlib/gzheader"), _ = Object.prototype.toString;
1754
- function a(e) {
1755
- if (!(this instanceof a)) return new a(e);
1756
- this.options = d.assign({
1757
- chunkSize: 16384,
1758
- windowBits: 0,
1759
- to: ""
1760
- }, e || {});
1761
- var t = this.options;
1762
- t.raw && 0 <= t.windowBits && t.windowBits < 16 && (t.windowBits = -t.windowBits, 0 === t.windowBits && (t.windowBits = -15)), !(0 <= t.windowBits && t.windowBits < 16) || e && e.windowBits || (t.windowBits += 32), 15 < t.windowBits && t.windowBits < 48 && 0 == (15 & t.windowBits) && (t.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new i(), this.strm.avail_out = 0;
1763
- var r = c.inflateInit2(this.strm, t.windowBits);
1764
- if (r !== m.Z_OK) throw new Error(n[r]);
1765
- this.header = new s(), c.inflateGetHeader(this.strm, this.header);
1766
- }
1767
- function o(e, t) {
1768
- var r = new a(t);
1769
- if (r.push(e, !0), r.err) throw r.msg || n[r.err];
1770
- return r.result;
1771
- }
1772
- a.prototype.push = function(e, t) {
1773
- var r, n, i, s, a, o, h = this.strm, u = this.options.chunkSize, l = this.options.dictionary, f = !1;
1774
- if (this.ended) return !1;
1775
- n = t === ~~t ? t : !0 === t ? m.Z_FINISH : m.Z_NO_FLUSH, "string" == typeof e ? h.input = p.binstring2buf(e) : "[object ArrayBuffer]" === _.call(e) ? h.input = new Uint8Array(e) : h.input = e, h.next_in = 0, h.avail_in = h.input.length;
1776
- do {
1777
- if (0 === h.avail_out && (h.output = new d.Buf8(u), h.next_out = 0, h.avail_out = u), (r = c.inflate(h, m.Z_NO_FLUSH)) === m.Z_NEED_DICT && l && (o = "string" == typeof l ? p.string2buf(l) : "[object ArrayBuffer]" === _.call(l) ? new Uint8Array(l) : l, r = c.inflateSetDictionary(this.strm, o)), r === m.Z_BUF_ERROR && !0 === f && (r = m.Z_OK, f = !1), r !== m.Z_STREAM_END && r !== m.Z_OK) return this.onEnd(r), !(this.ended = !0);
1778
- h.next_out && (0 !== h.avail_out && r !== m.Z_STREAM_END && (0 !== h.avail_in || n !== m.Z_FINISH && n !== m.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i = p.utf8border(h.output, h.next_out), s = h.next_out - i, a = p.buf2string(h.output, i), h.next_out = s, h.avail_out = u - s, s && d.arraySet(h.output, h.output, i, s, 0), this.onData(a)) : this.onData(d.shrinkBuf(h.output, h.next_out)))), 0 === h.avail_in && 0 === h.avail_out && (f = !0);
1779
- } while ((0 < h.avail_in || 0 === h.avail_out) && r !== m.Z_STREAM_END);
1780
- return r === m.Z_STREAM_END && (n = m.Z_FINISH), n === m.Z_FINISH ? (r = c.inflateEnd(this.strm), this.onEnd(r), this.ended = !0, r === m.Z_OK) : n !== m.Z_SYNC_FLUSH || (this.onEnd(m.Z_OK), !(h.avail_out = 0));
1781
- }, a.prototype.onData = function(e) {
1782
- this.chunks.push(e);
1783
- }, a.prototype.onEnd = function(e) {
1784
- e === m.Z_OK && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = d.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
1785
- }, r.Inflate = a, r.inflate = o, r.inflateRaw = function(e, t) {
1786
- return (t = t || {}).raw = !0, o(e, t);
1787
- }, r.ungzip = o;
1788
- }, {
1789
- "./utils/common": 41,
1790
- "./utils/strings": 42,
1791
- "./zlib/constants": 44,
1792
- "./zlib/gzheader": 47,
1793
- "./zlib/inflate": 49,
1794
- "./zlib/messages": 51,
1795
- "./zlib/zstream": 53
1796
- }],
1797
- 41: [function(e, t, r) {
1798
- "use strict";
1799
- var n = "undefined" != typeof Uint8Array && "undefined" != typeof Uint16Array && "undefined" != typeof Int32Array;
1800
- r.assign = function(e) {
1801
- for (var t = Array.prototype.slice.call(arguments, 1); t.length;) {
1802
- var r = t.shift();
1803
- if (r) {
1804
- if ("object" != typeof r) throw new TypeError(r + "must be non-object");
1805
- for (var n in r) r.hasOwnProperty(n) && (e[n] = r[n]);
1806
- }
1807
- }
1808
- return e;
1809
- }, r.shrinkBuf = function(e, t) {
1810
- return e.length === t ? e : e.subarray ? e.subarray(0, t) : (e.length = t, e);
1811
- };
1812
- var i = {
1813
- arraySet: function(e, t, r, n, i) {
1814
- if (t.subarray && e.subarray) e.set(t.subarray(r, r + n), i);
1815
- else for (var s = 0; s < n; s++) e[i + s] = t[r + s];
1816
- },
1817
- flattenChunks: function(e) {
1818
- var t, r, n, i, s, a;
1819
- for (t = n = 0, r = e.length; t < r; t++) n += e[t].length;
1820
- for (a = new Uint8Array(n), t = i = 0, r = e.length; t < r; t++) s = e[t], a.set(s, i), i += s.length;
1821
- return a;
1822
- }
1823
- }, s = {
1824
- arraySet: function(e, t, r, n, i) {
1825
- for (var s = 0; s < n; s++) e[i + s] = t[r + s];
1826
- },
1827
- flattenChunks: function(e) {
1828
- return [].concat.apply([], e);
1829
- }
1830
- };
1831
- r.setTyped = function(e) {
1832
- e ? (r.Buf8 = Uint8Array, r.Buf16 = Uint16Array, r.Buf32 = Int32Array, r.assign(r, i)) : (r.Buf8 = Array, r.Buf16 = Array, r.Buf32 = Array, r.assign(r, s));
1833
- }, r.setTyped(n);
1834
- }, {}],
1835
- 42: [function(e, t, r) {
1836
- "use strict";
1837
- var h = e("./common"), i = !0, s = !0;
1838
- try {
1839
- String.fromCharCode.apply(null, [0]);
1840
- } catch (e) {
1841
- i = !1;
1842
- }
1843
- try {
1844
- String.fromCharCode.apply(null, new Uint8Array(1));
1845
- } catch (e) {
1846
- s = !1;
1847
- }
1848
- for (var u = new h.Buf8(256), n = 0; n < 256; n++) u[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
1849
- function l(e, t) {
1850
- if (t < 65537 && (e.subarray && s || !e.subarray && i)) return String.fromCharCode.apply(null, h.shrinkBuf(e, t));
1851
- for (var r = "", n = 0; n < t; n++) r += String.fromCharCode(e[n]);
1852
- return r;
1853
- }
1854
- u[254] = u[254] = 1, r.string2buf = function(e) {
1855
- var t, r, n, i, s, a = e.length, o = 0;
1856
- for (i = 0; i < a; i++) 55296 == (64512 & (r = e.charCodeAt(i))) && i + 1 < a && 56320 == (64512 & (n = e.charCodeAt(i + 1))) && (r = 65536 + (r - 55296 << 10) + (n - 56320), i++), o += r < 128 ? 1 : r < 2048 ? 2 : r < 65536 ? 3 : 4;
1857
- for (t = new h.Buf8(o), i = s = 0; s < o; i++) 55296 == (64512 & (r = e.charCodeAt(i))) && i + 1 < a && 56320 == (64512 & (n = e.charCodeAt(i + 1))) && (r = 65536 + (r - 55296 << 10) + (n - 56320), i++), r < 128 ? t[s++] = r : (r < 2048 ? t[s++] = 192 | r >>> 6 : (r < 65536 ? t[s++] = 224 | r >>> 12 : (t[s++] = 240 | r >>> 18, t[s++] = 128 | r >>> 12 & 63), t[s++] = 128 | r >>> 6 & 63), t[s++] = 128 | 63 & r);
1858
- return t;
1859
- }, r.buf2binstring = function(e) {
1860
- return l(e, e.length);
1861
- }, r.binstring2buf = function(e) {
1862
- for (var t = new h.Buf8(e.length), r = 0, n = t.length; r < n; r++) t[r] = e.charCodeAt(r);
1863
- return t;
1864
- }, r.buf2string = function(e, t) {
1865
- var r, n, i, s, a = t || e.length, o = new Array(2 * a);
1866
- for (r = n = 0; r < a;) if ((i = e[r++]) < 128) o[n++] = i;
1867
- else if (4 < (s = u[i])) o[n++] = 65533, r += s - 1;
1868
- else {
1869
- for (i &= 2 === s ? 31 : 3 === s ? 15 : 7; 1 < s && r < a;) i = i << 6 | 63 & e[r++], s--;
1870
- 1 < s ? o[n++] = 65533 : i < 65536 ? o[n++] = i : (i -= 65536, o[n++] = 55296 | i >> 10 & 1023, o[n++] = 56320 | 1023 & i);
1871
- }
1872
- return l(o, n);
1873
- }, r.utf8border = function(e, t) {
1874
- var r;
1875
- for ((t = t || e.length) > e.length && (t = e.length), r = t - 1; 0 <= r && 128 == (192 & e[r]);) r--;
1876
- return r < 0 ? t : 0 === r ? t : r + u[e[r]] > t ? r : t;
1877
- };
1878
- }, { "./common": 41 }],
1879
- 43: [function(e, t, r) {
1880
- "use strict";
1881
- t.exports = function(e, t, r, n) {
1882
- for (var i = 65535 & e | 0, s = e >>> 16 & 65535 | 0, a = 0; 0 !== r;) {
1883
- for (r -= a = 2e3 < r ? 2e3 : r; s = s + (i = i + t[n++] | 0) | 0, --a;);
1884
- i %= 65521, s %= 65521;
1885
- }
1886
- return i | s << 16 | 0;
1887
- };
1888
- }, {}],
1889
- 44: [function(e, t, r) {
1890
- "use strict";
1891
- t.exports = {
1892
- Z_NO_FLUSH: 0,
1893
- Z_PARTIAL_FLUSH: 1,
1894
- Z_SYNC_FLUSH: 2,
1895
- Z_FULL_FLUSH: 3,
1896
- Z_FINISH: 4,
1897
- Z_BLOCK: 5,
1898
- Z_TREES: 6,
1899
- Z_OK: 0,
1900
- Z_STREAM_END: 1,
1901
- Z_NEED_DICT: 2,
1902
- Z_ERRNO: -1,
1903
- Z_STREAM_ERROR: -2,
1904
- Z_DATA_ERROR: -3,
1905
- Z_BUF_ERROR: -5,
1906
- Z_NO_COMPRESSION: 0,
1907
- Z_BEST_SPEED: 1,
1908
- Z_BEST_COMPRESSION: 9,
1909
- Z_DEFAULT_COMPRESSION: -1,
1910
- Z_FILTERED: 1,
1911
- Z_HUFFMAN_ONLY: 2,
1912
- Z_RLE: 3,
1913
- Z_FIXED: 4,
1914
- Z_DEFAULT_STRATEGY: 0,
1915
- Z_BINARY: 0,
1916
- Z_TEXT: 1,
1917
- Z_UNKNOWN: 2,
1918
- Z_DEFLATED: 8
1919
- };
1920
- }, {}],
1921
- 45: [function(e, t, r) {
1922
- "use strict";
1923
- var o = function() {
1924
- for (var e, t = [], r = 0; r < 256; r++) {
1925
- e = r;
1926
- for (var n = 0; n < 8; n++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
1927
- t[r] = e;
1928
- }
1929
- return t;
1930
- }();
1931
- t.exports = function(e, t, r, n) {
1932
- var i = o, s = n + r;
1933
- e ^= -1;
1934
- for (var a = n; a < s; a++) e = e >>> 8 ^ i[255 & (e ^ t[a])];
1935
- return -1 ^ e;
1936
- };
1937
- }, {}],
1938
- 46: [function(e, t, r) {
1939
- "use strict";
1940
- var h, c = e("../utils/common"), u = e("./trees"), d = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 0, f = 4, m = 0, _ = -2, g = -1, b = 4, i = 2, v = 8, y = 9, s = 286, a = 30, o = 19, w = 2 * s + 1, k = 15, x = 3, S = 258, z = S + x + 1, C = 42, E = 113, A = 1, I = 2, O = 3, B = 4;
1941
- function R(e, t) {
1942
- return e.msg = n[t], t;
1943
- }
1944
- function T(e) {
1945
- return (e << 1) - (4 < e ? 9 : 0);
1946
- }
1947
- function D(e) {
1948
- for (var t = e.length; 0 <= --t;) e[t] = 0;
1949
- }
1950
- function F(e) {
1951
- var t = e.state, r = t.pending;
1952
- r > e.avail_out && (r = e.avail_out), 0 !== r && (c.arraySet(e.output, t.pending_buf, t.pending_out, r, e.next_out), e.next_out += r, t.pending_out += r, e.total_out += r, e.avail_out -= r, t.pending -= r, 0 === t.pending && (t.pending_out = 0));
1953
- }
1954
- function N(e, t) {
1955
- u._tr_flush_block(e, 0 <= e.block_start ? e.block_start : -1, e.strstart - e.block_start, t), e.block_start = e.strstart, F(e.strm);
1956
- }
1957
- function U(e, t) {
1958
- e.pending_buf[e.pending++] = t;
1959
- }
1960
- function P(e, t) {
1961
- e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = 255 & t;
1962
- }
1963
- function L(e, t) {
1964
- var r, n, i = e.max_chain_length, s = e.strstart, a = e.prev_length, o = e.nice_match, h = e.strstart > e.w_size - z ? e.strstart - (e.w_size - z) : 0, u = e.window, l = e.w_mask, f = e.prev, c = e.strstart + S, d = u[s + a - 1], p = u[s + a];
1965
- e.prev_length >= e.good_match && (i >>= 2), o > e.lookahead && (o = e.lookahead);
1966
- do
1967
- if (u[(r = t) + a] === p && u[r + a - 1] === d && u[r] === u[s] && u[++r] === u[s + 1]) {
1968
- s += 2, r++;
1969
- do ;
1970
- while (u[++s] === u[++r] && u[++s] === u[++r] && u[++s] === u[++r] && u[++s] === u[++r] && u[++s] === u[++r] && u[++s] === u[++r] && u[++s] === u[++r] && u[++s] === u[++r] && s < c);
1971
- if (n = S - (c - s), s = c - S, a < n) {
1972
- if (e.match_start = t, o <= (a = n)) break;
1973
- d = u[s + a - 1], p = u[s + a];
1974
- }
1975
- }
1976
- while ((t = f[t & l]) > h && 0 != --i);
1977
- return a <= e.lookahead ? a : e.lookahead;
1978
- }
1979
- function j(e) {
1980
- var t, r, n, i, s, a, o, h, u, l, f = e.w_size;
1981
- do {
1982
- if (i = e.window_size - e.lookahead - e.strstart, e.strstart >= f + (f - z)) {
1983
- for (c.arraySet(e.window, e.window, f, f, 0), e.match_start -= f, e.strstart -= f, e.block_start -= f, t = r = e.hash_size; n = e.head[--t], e.head[t] = f <= n ? n - f : 0, --r;);
1984
- for (t = r = f; n = e.prev[--t], e.prev[t] = f <= n ? n - f : 0, --r;);
1985
- i += f;
1986
- }
1987
- if (0 === e.strm.avail_in) break;
1988
- if (a = e.strm, o = e.window, h = e.strstart + e.lookahead, u = i, l = void 0, l = a.avail_in, u < l && (l = u), r = 0 === l ? 0 : (a.avail_in -= l, c.arraySet(o, a.input, a.next_in, l, h), 1 === a.state.wrap ? a.adler = d(a.adler, o, l, h) : 2 === a.state.wrap && (a.adler = p(a.adler, o, l, h)), a.next_in += l, a.total_in += l, l), e.lookahead += r, e.lookahead + e.insert >= x) for (s = e.strstart - e.insert, e.ins_h = e.window[s], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[s + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[s + x - 1]) & e.hash_mask, e.prev[s & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = s, s++, e.insert--, !(e.lookahead + e.insert < x)););
1989
- } while (e.lookahead < z && 0 !== e.strm.avail_in);
1990
- }
1991
- function Z(e, t) {
1992
- for (var r, n;;) {
1993
- if (e.lookahead < z) {
1994
- if (j(e), e.lookahead < z && t === l) return A;
1995
- if (0 === e.lookahead) break;
1996
- }
1997
- if (r = 0, e.lookahead >= x && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + x - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), 0 !== r && e.strstart - r <= e.w_size - z && (e.match_length = L(e, r)), e.match_length >= x) if (n = u._tr_tally(e, e.strstart - e.match_start, e.match_length - x), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= x) {
1998
- for (e.match_length--; e.strstart++, e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + x - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart, 0 != --e.match_length;);
1999
- e.strstart++;
2000
- } else e.strstart += e.match_length, e.match_length = 0, e.ins_h = e.window[e.strstart], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + 1]) & e.hash_mask;
2001
- else n = u._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
2002
- if (n && (N(e, !1), 0 === e.strm.avail_out)) return A;
2003
- }
2004
- return e.insert = e.strstart < x - 1 ? e.strstart : x - 1, t === f ? (N(e, !0), 0 === e.strm.avail_out ? O : B) : e.last_lit && (N(e, !1), 0 === e.strm.avail_out) ? A : I;
2005
- }
2006
- function W(e, t) {
2007
- for (var r, n, i;;) {
2008
- if (e.lookahead < z) {
2009
- if (j(e), e.lookahead < z && t === l) return A;
2010
- if (0 === e.lookahead) break;
2011
- }
2012
- if (r = 0, e.lookahead >= x && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + x - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), e.prev_length = e.match_length, e.prev_match = e.match_start, e.match_length = x - 1, 0 !== r && e.prev_length < e.max_lazy_match && e.strstart - r <= e.w_size - z && (e.match_length = L(e, r), e.match_length <= 5 && (1 === e.strategy || e.match_length === x && 4096 < e.strstart - e.match_start) && (e.match_length = x - 1)), e.prev_length >= x && e.match_length <= e.prev_length) {
2013
- for (i = e.strstart + e.lookahead - x, n = u._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - x), e.lookahead -= e.prev_length - 1, e.prev_length -= 2; ++e.strstart <= i && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + x - 1]) & e.hash_mask, r = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), 0 != --e.prev_length;);
2014
- if (e.match_available = 0, e.match_length = x - 1, e.strstart++, n && (N(e, !1), 0 === e.strm.avail_out)) return A;
2015
- } else if (e.match_available) {
2016
- if ((n = u._tr_tally(e, 0, e.window[e.strstart - 1])) && N(e, !1), e.strstart++, e.lookahead--, 0 === e.strm.avail_out) return A;
2017
- } else e.match_available = 1, e.strstart++, e.lookahead--;
2018
- }
2019
- return e.match_available && (n = u._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < x - 1 ? e.strstart : x - 1, t === f ? (N(e, !0), 0 === e.strm.avail_out ? O : B) : e.last_lit && (N(e, !1), 0 === e.strm.avail_out) ? A : I;
2020
- }
2021
- function M(e, t, r, n, i) {
2022
- this.good_length = e, this.max_lazy = t, this.nice_length = r, this.max_chain = n, this.func = i;
2023
- }
2024
- function H() {
2025
- 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 = v, 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 c.Buf16(2 * w), this.dyn_dtree = new c.Buf16(2 * (2 * a + 1)), this.bl_tree = new c.Buf16(2 * (2 * o + 1)), D(this.dyn_ltree), D(this.dyn_dtree), D(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new c.Buf16(k + 1), this.heap = new c.Buf16(2 * s + 1), D(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new c.Buf16(2 * s + 1), D(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
2026
- }
2027
- function G(e) {
2028
- var t;
2029
- return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = i, (t = e.state).pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? C : E, e.adler = 2 === t.wrap ? 0 : 1, t.last_flush = l, u._tr_init(t), m) : R(e, _);
2030
- }
2031
- function K(e) {
2032
- var t = G(e);
2033
- return t === m && function(e) {
2034
- e.window_size = 2 * e.w_size, D(e.head), e.max_lazy_match = h[e.level].max_lazy, e.good_match = h[e.level].good_length, e.nice_match = h[e.level].nice_length, e.max_chain_length = h[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = x - 1, e.match_available = 0, e.ins_h = 0;
2035
- }(e.state), t;
2036
- }
2037
- function Y(e, t, r, n, i, s) {
2038
- if (!e) return _;
2039
- var a = 1;
2040
- if (t === g && (t = 6), n < 0 ? (a = 0, n = -n) : 15 < n && (a = 2, n -= 16), i < 1 || y < i || r !== v || n < 8 || 15 < n || t < 0 || 9 < t || s < 0 || b < s) return R(e, _);
2041
- 8 === n && (n = 9);
2042
- var o = new H();
2043
- return (e.state = o).strm = e, o.wrap = a, o.gzhead = null, o.w_bits = n, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = i + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~((o.hash_bits + x - 1) / x), o.window = new c.Buf8(2 * o.w_size), o.head = new c.Buf16(o.hash_size), o.prev = new c.Buf16(o.w_size), o.lit_bufsize = 1 << i + 6, o.pending_buf_size = 4 * o.lit_bufsize, o.pending_buf = new c.Buf8(o.pending_buf_size), o.d_buf = 1 * o.lit_bufsize, o.l_buf = 3 * o.lit_bufsize, o.level = t, o.strategy = s, o.method = r, K(e);
2044
- }
2045
- h = [
2046
- new M(0, 0, 0, 0, function(e, t) {
2047
- var r = 65535;
2048
- for (r > e.pending_buf_size - 5 && (r = e.pending_buf_size - 5);;) {
2049
- if (e.lookahead <= 1) {
2050
- if (j(e), 0 === e.lookahead && t === l) return A;
2051
- if (0 === e.lookahead) break;
2052
- }
2053
- e.strstart += e.lookahead, e.lookahead = 0;
2054
- var n = e.block_start + r;
2055
- if ((0 === e.strstart || e.strstart >= n) && (e.lookahead = e.strstart - n, e.strstart = n, N(e, !1), 0 === e.strm.avail_out)) return A;
2056
- if (e.strstart - e.block_start >= e.w_size - z && (N(e, !1), 0 === e.strm.avail_out)) return A;
2057
- }
2058
- return e.insert = 0, t === f ? (N(e, !0), 0 === e.strm.avail_out ? O : B) : (e.strstart > e.block_start && (N(e, !1), e.strm.avail_out), A);
2059
- }),
2060
- new M(4, 4, 8, 4, Z),
2061
- new M(4, 5, 16, 8, Z),
2062
- new M(4, 6, 32, 32, Z),
2063
- new M(4, 4, 16, 16, W),
2064
- new M(8, 16, 32, 32, W),
2065
- new M(8, 16, 128, 128, W),
2066
- new M(8, 32, 128, 256, W),
2067
- new M(32, 128, 258, 1024, W),
2068
- new M(32, 258, 258, 4096, W)
2069
- ], r.deflateInit = function(e, t) {
2070
- return Y(e, t, v, 15, 8, 0);
2071
- }, r.deflateInit2 = Y, r.deflateReset = K, r.deflateResetKeep = G, r.deflateSetHeader = function(e, t) {
2072
- return e && e.state ? 2 !== e.state.wrap ? _ : (e.state.gzhead = t, m) : _;
2073
- }, r.deflate = function(e, t) {
2074
- var r, n, i, s;
2075
- if (!e || !e.state || 5 < t || t < 0) return e ? R(e, _) : _;
2076
- if (n = e.state, !e.output || !e.input && 0 !== e.avail_in || 666 === n.status && t !== f) return R(e, 0 === e.avail_out ? -5 : _);
2077
- if (n.strm = e, r = n.last_flush, n.last_flush = t, n.status === C) if (2 === n.wrap) e.adler = 0, U(n, 31), U(n, 139), U(n, 8), n.gzhead ? (U(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)), U(n, 255 & n.gzhead.time), U(n, n.gzhead.time >> 8 & 255), U(n, n.gzhead.time >> 16 & 255), U(n, n.gzhead.time >> 24 & 255), U(n, 9 === n.level ? 2 : 2 <= n.strategy || n.level < 2 ? 4 : 0), U(n, 255 & n.gzhead.os), n.gzhead.extra && n.gzhead.extra.length && (U(n, 255 & n.gzhead.extra.length), U(n, n.gzhead.extra.length >> 8 & 255)), n.gzhead.hcrc && (e.adler = p(e.adler, n.pending_buf, n.pending, 0)), n.gzindex = 0, n.status = 69) : (U(n, 0), U(n, 0), U(n, 0), U(n, 0), U(n, 0), U(n, 9 === n.level ? 2 : 2 <= n.strategy || n.level < 2 ? 4 : 0), U(n, 3), n.status = E);
2078
- else {
2079
- var a = v + (n.w_bits - 8 << 4) << 8;
2080
- a |= (2 <= n.strategy || n.level < 2 ? 0 : n.level < 6 ? 1 : 6 === n.level ? 2 : 3) << 6, 0 !== n.strstart && (a |= 32), a += 31 - a % 31, n.status = E, P(n, a), 0 !== n.strstart && (P(n, e.adler >>> 16), P(n, 65535 & e.adler)), e.adler = 1;
2081
- }
2082
- if (69 === n.status) if (n.gzhead.extra) {
2083
- for (i = n.pending; n.gzindex < (65535 & n.gzhead.extra.length) && (n.pending !== n.pending_buf_size || (n.gzhead.hcrc && n.pending > i && (e.adler = p(e.adler, n.pending_buf, n.pending - i, i)), F(e), i = n.pending, n.pending !== n.pending_buf_size));) U(n, 255 & n.gzhead.extra[n.gzindex]), n.gzindex++;
2084
- n.gzhead.hcrc && n.pending > i && (e.adler = p(e.adler, n.pending_buf, n.pending - i, i)), n.gzindex === n.gzhead.extra.length && (n.gzindex = 0, n.status = 73);
2085
- } else n.status = 73;
2086
- if (73 === n.status) if (n.gzhead.name) {
2087
- i = n.pending;
2088
- do {
2089
- if (n.pending === n.pending_buf_size && (n.gzhead.hcrc && n.pending > i && (e.adler = p(e.adler, n.pending_buf, n.pending - i, i)), F(e), i = n.pending, n.pending === n.pending_buf_size)) {
2090
- s = 1;
2091
- break;
2092
- }
2093
- s = n.gzindex < n.gzhead.name.length ? 255 & n.gzhead.name.charCodeAt(n.gzindex++) : 0, U(n, s);
2094
- } while (0 !== s);
2095
- n.gzhead.hcrc && n.pending > i && (e.adler = p(e.adler, n.pending_buf, n.pending - i, i)), 0 === s && (n.gzindex = 0, n.status = 91);
2096
- } else n.status = 91;
2097
- if (91 === n.status) if (n.gzhead.comment) {
2098
- i = n.pending;
2099
- do {
2100
- if (n.pending === n.pending_buf_size && (n.gzhead.hcrc && n.pending > i && (e.adler = p(e.adler, n.pending_buf, n.pending - i, i)), F(e), i = n.pending, n.pending === n.pending_buf_size)) {
2101
- s = 1;
2102
- break;
2103
- }
2104
- s = n.gzindex < n.gzhead.comment.length ? 255 & n.gzhead.comment.charCodeAt(n.gzindex++) : 0, U(n, s);
2105
- } while (0 !== s);
2106
- n.gzhead.hcrc && n.pending > i && (e.adler = p(e.adler, n.pending_buf, n.pending - i, i)), 0 === s && (n.status = 103);
2107
- } else n.status = 103;
2108
- if (103 === n.status && (n.gzhead.hcrc ? (n.pending + 2 > n.pending_buf_size && F(e), n.pending + 2 <= n.pending_buf_size && (U(n, 255 & e.adler), U(n, e.adler >> 8 & 255), e.adler = 0, n.status = E)) : n.status = E), 0 !== n.pending) {
2109
- if (F(e), 0 === e.avail_out) return n.last_flush = -1, m;
2110
- } else if (0 === e.avail_in && T(t) <= T(r) && t !== f) return R(e, -5);
2111
- if (666 === n.status && 0 !== e.avail_in) return R(e, -5);
2112
- if (0 !== e.avail_in || 0 !== n.lookahead || t !== l && 666 !== n.status) {
2113
- var o = 2 === n.strategy ? function(e, t) {
2114
- for (var r;;) {
2115
- if (0 === e.lookahead && (j(e), 0 === e.lookahead)) {
2116
- if (t === l) return A;
2117
- break;
2118
- }
2119
- if (e.match_length = 0, r = u._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, r && (N(e, !1), 0 === e.strm.avail_out)) return A;
2120
- }
2121
- return e.insert = 0, t === f ? (N(e, !0), 0 === e.strm.avail_out ? O : B) : e.last_lit && (N(e, !1), 0 === e.strm.avail_out) ? A : I;
2122
- }(n, t) : 3 === n.strategy ? function(e, t) {
2123
- for (var r, n, i, s, a = e.window;;) {
2124
- if (e.lookahead <= S) {
2125
- if (j(e), e.lookahead <= S && t === l) return A;
2126
- if (0 === e.lookahead) break;
2127
- }
2128
- if (e.match_length = 0, e.lookahead >= x && 0 < e.strstart && (n = a[i = e.strstart - 1]) === a[++i] && n === a[++i] && n === a[++i]) {
2129
- s = e.strstart + S;
2130
- do ;
2131
- while (n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && n === a[++i] && i < s);
2132
- e.match_length = S - (s - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
2133
- }
2134
- if (e.match_length >= x ? (r = u._tr_tally(e, 1, e.match_length - x), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (r = u._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), r && (N(e, !1), 0 === e.strm.avail_out)) return A;
2135
- }
2136
- return e.insert = 0, t === f ? (N(e, !0), 0 === e.strm.avail_out ? O : B) : e.last_lit && (N(e, !1), 0 === e.strm.avail_out) ? A : I;
2137
- }(n, t) : h[n.level].func(n, t);
2138
- if (o !== O && o !== B || (n.status = 666), o === A || o === O) return 0 === e.avail_out && (n.last_flush = -1), m;
2139
- if (o === I && (1 === t ? u._tr_align(n) : 5 !== t && (u._tr_stored_block(n, 0, 0, !1), 3 === t && (D(n.head), 0 === n.lookahead && (n.strstart = 0, n.block_start = 0, n.insert = 0))), F(e), 0 === e.avail_out)) return n.last_flush = -1, m;
2140
- }
2141
- return t !== f ? m : n.wrap <= 0 ? 1 : (2 === n.wrap ? (U(n, 255 & e.adler), U(n, e.adler >> 8 & 255), U(n, e.adler >> 16 & 255), U(n, e.adler >> 24 & 255), U(n, 255 & e.total_in), U(n, e.total_in >> 8 & 255), U(n, e.total_in >> 16 & 255), U(n, e.total_in >> 24 & 255)) : (P(n, e.adler >>> 16), P(n, 65535 & e.adler)), F(e), 0 < n.wrap && (n.wrap = -n.wrap), 0 !== n.pending ? m : 1);
2142
- }, r.deflateEnd = function(e) {
2143
- var t;
2144
- return e && e.state ? (t = e.state.status) !== C && 69 !== t && 73 !== t && 91 !== t && 103 !== t && t !== E && 666 !== t ? R(e, _) : (e.state = null, t === E ? R(e, -3) : m) : _;
2145
- }, r.deflateSetDictionary = function(e, t) {
2146
- var r, n, i, s, a, o, h, u, l = t.length;
2147
- if (!e || !e.state) return _;
2148
- if (2 === (s = (r = e.state).wrap) || 1 === s && r.status !== C || r.lookahead) return _;
2149
- for (1 === s && (e.adler = d(e.adler, t, l, 0)), r.wrap = 0, l >= r.w_size && (0 === s && (D(r.head), r.strstart = 0, r.block_start = 0, r.insert = 0), u = new c.Buf8(r.w_size), c.arraySet(u, t, l - r.w_size, r.w_size, 0), t = u, l = r.w_size), a = e.avail_in, o = e.next_in, h = e.input, e.avail_in = l, e.next_in = 0, e.input = t, j(r); r.lookahead >= x;) {
2150
- for (n = r.strstart, i = r.lookahead - (x - 1); r.ins_h = (r.ins_h << r.hash_shift ^ r.window[n + x - 1]) & r.hash_mask, r.prev[n & r.w_mask] = r.head[r.ins_h], r.head[r.ins_h] = n, n++, --i;);
2151
- r.strstart = n, r.lookahead = x - 1, j(r);
2152
- }
2153
- return r.strstart += r.lookahead, r.block_start = r.strstart, r.insert = r.lookahead, r.lookahead = 0, r.match_length = r.prev_length = x - 1, r.match_available = 0, e.next_in = o, e.input = h, e.avail_in = a, r.wrap = s, m;
2154
- }, r.deflateInfo = "pako deflate (from Nodeca project)";
2155
- }, {
2156
- "../utils/common": 41,
2157
- "./adler32": 43,
2158
- "./crc32": 45,
2159
- "./messages": 51,
2160
- "./trees": 52
2161
- }],
2162
- 47: [function(e, t, r) {
2163
- "use strict";
2164
- t.exports = function() {
2165
- 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;
2166
- };
2167
- }, {}],
2168
- 48: [function(e, t, r) {
2169
- "use strict";
2170
- t.exports = function(e, t) {
2171
- var r = e.state, n = e.next_in, i, s, a, o, h, u, l, f, c, d, p, m, _, g, b, v, y, w, k, x, S, z = e.input, C;
2172
- i = n + (e.avail_in - 5), s = e.next_out, C = e.output, a = s - (t - e.avail_out), o = s + (e.avail_out - 257), h = r.dmax, u = r.wsize, l = r.whave, f = r.wnext, c = r.window, d = r.hold, p = r.bits, m = r.lencode, _ = r.distcode, g = (1 << r.lenbits) - 1, b = (1 << r.distbits) - 1;
2173
- e: do {
2174
- p < 15 && (d += z[n++] << p, p += 8, d += z[n++] << p, p += 8), v = m[d & g];
2175
- t: for (;;) {
2176
- if (d >>>= y = v >>> 24, p -= y, 0 === (y = v >>> 16 & 255)) C[s++] = 65535 & v;
2177
- else {
2178
- if (!(16 & y)) {
2179
- if (0 == (64 & y)) {
2180
- v = m[(65535 & v) + (d & (1 << y) - 1)];
2181
- continue t;
2182
- }
2183
- if (32 & y) {
2184
- r.mode = 12;
2185
- break e;
2186
- }
2187
- e.msg = "invalid literal/length code", r.mode = 30;
2188
- break e;
2189
- }
2190
- w = 65535 & v, (y &= 15) && (p < y && (d += z[n++] << p, p += 8), w += d & (1 << y) - 1, d >>>= y, p -= y), p < 15 && (d += z[n++] << p, p += 8, d += z[n++] << p, p += 8), v = _[d & b];
2191
- r: for (;;) {
2192
- if (d >>>= y = v >>> 24, p -= y, !(16 & (y = v >>> 16 & 255))) {
2193
- if (0 == (64 & y)) {
2194
- v = _[(65535 & v) + (d & (1 << y) - 1)];
2195
- continue r;
2196
- }
2197
- e.msg = "invalid distance code", r.mode = 30;
2198
- break e;
2199
- }
2200
- if (k = 65535 & v, p < (y &= 15) && (d += z[n++] << p, (p += 8) < y && (d += z[n++] << p, p += 8)), h < (k += d & (1 << y) - 1)) {
2201
- e.msg = "invalid distance too far back", r.mode = 30;
2202
- break e;
2203
- }
2204
- if (d >>>= y, p -= y, (y = s - a) < k) {
2205
- if (l < (y = k - y) && r.sane) {
2206
- e.msg = "invalid distance too far back", r.mode = 30;
2207
- break e;
2208
- }
2209
- if (S = c, (x = 0) === f) {
2210
- if (x += u - y, y < w) {
2211
- for (w -= y; C[s++] = c[x++], --y;);
2212
- x = s - k, S = C;
2213
- }
2214
- } else if (f < y) {
2215
- if (x += u + f - y, (y -= f) < w) {
2216
- for (w -= y; C[s++] = c[x++], --y;);
2217
- if (x = 0, f < w) {
2218
- for (w -= y = f; C[s++] = c[x++], --y;);
2219
- x = s - k, S = C;
2220
- }
2221
- }
2222
- } else if (x += f - y, y < w) {
2223
- for (w -= y; C[s++] = c[x++], --y;);
2224
- x = s - k, S = C;
2225
- }
2226
- for (; 2 < w;) C[s++] = S[x++], C[s++] = S[x++], C[s++] = S[x++], w -= 3;
2227
- w && (C[s++] = S[x++], 1 < w && (C[s++] = S[x++]));
2228
- } else {
2229
- for (x = s - k; C[s++] = C[x++], C[s++] = C[x++], C[s++] = C[x++], 2 < (w -= 3););
2230
- w && (C[s++] = C[x++], 1 < w && (C[s++] = C[x++]));
2231
- }
2232
- break;
2233
- }
2234
- }
2235
- break;
2236
- }
2237
- } while (n < i && s < o);
2238
- n -= w = p >> 3, d &= (1 << (p -= w << 3)) - 1, e.next_in = n, e.next_out = s, e.avail_in = n < i ? i - n + 5 : 5 - (n - i), e.avail_out = s < o ? o - s + 257 : 257 - (s - o), r.hold = d, r.bits = p;
2239
- };
2240
- }, {}],
2241
- 49: [function(e, t, r) {
2242
- "use strict";
2243
- var I = e("../utils/common"), O = e("./adler32"), B = e("./crc32"), R = e("./inffast"), T = e("./inftrees"), D = 1, F = 2, N = 0, U = -2, P = 1, n = 852, i = 592;
2244
- function L(e) {
2245
- return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((65280 & e) << 8) + ((255 & e) << 24);
2246
- }
2247
- function s() {
2248
- this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new I.Buf16(320), this.work = new I.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
2249
- }
2250
- function a(e) {
2251
- var t;
2252
- return e && e.state ? (t = e.state, e.total_in = e.total_out = t.total = 0, e.msg = "", t.wrap && (e.adler = 1 & t.wrap), t.mode = P, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new I.Buf32(n), t.distcode = t.distdyn = new I.Buf32(i), t.sane = 1, t.back = -1, N) : U;
2253
- }
2254
- function o(e) {
2255
- var t;
2256
- return e && e.state ? ((t = e.state).wsize = 0, t.whave = 0, t.wnext = 0, a(e)) : U;
2257
- }
2258
- function h(e, t) {
2259
- var r, n;
2260
- return e && e.state ? (n = e.state, t < 0 ? (r = 0, t = -t) : (r = 1 + (t >> 4), t < 48 && (t &= 15)), t && (t < 8 || 15 < t) ? U : (null !== n.window && n.wbits !== t && (n.window = null), n.wrap = r, n.wbits = t, o(e))) : U;
2261
- }
2262
- function u(e, t) {
2263
- var r, n;
2264
- return e ? (n = new s(), (e.state = n).window = null, (r = h(e, t)) !== N && (e.state = null), r) : U;
2265
- }
2266
- var l, f, c = !0;
2267
- function j(e) {
2268
- if (c) {
2269
- var t;
2270
- for (l = new I.Buf32(512), f = new I.Buf32(32), t = 0; t < 144;) e.lens[t++] = 8;
2271
- for (; t < 256;) e.lens[t++] = 9;
2272
- for (; t < 280;) e.lens[t++] = 7;
2273
- for (; t < 288;) e.lens[t++] = 8;
2274
- for (T(D, e.lens, 0, 288, l, 0, e.work, { bits: 9 }), t = 0; t < 32;) e.lens[t++] = 5;
2275
- T(F, e.lens, 0, 32, f, 0, e.work, { bits: 5 }), c = !1;
2276
- }
2277
- e.lencode = l, e.lenbits = 9, e.distcode = f, e.distbits = 5;
2278
- }
2279
- function Z(e, t, r, n) {
2280
- var i, s = e.state;
2281
- return null === s.window && (s.wsize = 1 << s.wbits, s.wnext = 0, s.whave = 0, s.window = new I.Buf8(s.wsize)), n >= s.wsize ? (I.arraySet(s.window, t, r - s.wsize, s.wsize, 0), s.wnext = 0, s.whave = s.wsize) : (n < (i = s.wsize - s.wnext) && (i = n), I.arraySet(s.window, t, r - n, i, s.wnext), (n -= i) ? (I.arraySet(s.window, t, r - n, n, 0), s.wnext = n, s.whave = s.wsize) : (s.wnext += i, s.wnext === s.wsize && (s.wnext = 0), s.whave < s.wsize && (s.whave += i))), 0;
2282
- }
2283
- r.inflateReset = o, r.inflateReset2 = h, r.inflateResetKeep = a, r.inflateInit = function(e) {
2284
- return u(e, 15);
2285
- }, r.inflateInit2 = u, r.inflate = function(e, t) {
2286
- var r, n, i, s, a, o, h, u, l, f, c, d, p, m, _, g, b, v, y, w, k, x, S, z, C = 0, E = new I.Buf8(4), A = [
2287
- 16,
2288
- 17,
2289
- 18,
2290
- 0,
2291
- 8,
2292
- 7,
2293
- 9,
2294
- 6,
2295
- 10,
2296
- 5,
2297
- 11,
2298
- 4,
2299
- 12,
2300
- 3,
2301
- 13,
2302
- 2,
2303
- 14,
2304
- 1,
2305
- 15
2306
- ];
2307
- if (!e || !e.state || !e.output || !e.input && 0 !== e.avail_in) return U;
2308
- 12 === (r = e.state).mode && (r.mode = 13), a = e.next_out, i = e.output, h = e.avail_out, s = e.next_in, n = e.input, o = e.avail_in, u = r.hold, l = r.bits, f = o, c = h, x = N;
2309
- e: for (;;) switch (r.mode) {
2310
- case P:
2311
- if (0 === r.wrap) {
2312
- r.mode = 13;
2313
- break;
2314
- }
2315
- for (; l < 16;) {
2316
- if (0 === o) break e;
2317
- o--, u += n[s++] << l, l += 8;
2318
- }
2319
- if (2 & r.wrap && 35615 === u) {
2320
- E[r.check = 0] = 255 & u, E[1] = u >>> 8 & 255, r.check = B(r.check, E, 2, 0), l = u = 0, r.mode = 2;
2321
- break;
2322
- }
2323
- if (r.flags = 0, r.head && (r.head.done = !1), !(1 & r.wrap) || (((255 & u) << 8) + (u >> 8)) % 31) {
2324
- e.msg = "incorrect header check", r.mode = 30;
2325
- break;
2326
- }
2327
- if (8 != (15 & u)) {
2328
- e.msg = "unknown compression method", r.mode = 30;
2329
- break;
2330
- }
2331
- if (l -= 4, k = 8 + (15 & (u >>>= 4)), 0 === r.wbits) r.wbits = k;
2332
- else if (k > r.wbits) {
2333
- e.msg = "invalid window size", r.mode = 30;
2334
- break;
2335
- }
2336
- r.dmax = 1 << k, e.adler = r.check = 1, r.mode = 512 & u ? 10 : 12, l = u = 0;
2337
- break;
2338
- case 2:
2339
- for (; l < 16;) {
2340
- if (0 === o) break e;
2341
- o--, u += n[s++] << l, l += 8;
2342
- }
2343
- if (r.flags = u, 8 != (255 & r.flags)) {
2344
- e.msg = "unknown compression method", r.mode = 30;
2345
- break;
2346
- }
2347
- if (57344 & r.flags) {
2348
- e.msg = "unknown header flags set", r.mode = 30;
2349
- break;
2350
- }
2351
- r.head && (r.head.text = u >> 8 & 1), 512 & r.flags && (E[0] = 255 & u, E[1] = u >>> 8 & 255, r.check = B(r.check, E, 2, 0)), l = u = 0, r.mode = 3;
2352
- case 3:
2353
- for (; l < 32;) {
2354
- if (0 === o) break e;
2355
- o--, u += n[s++] << l, l += 8;
2356
- }
2357
- r.head && (r.head.time = u), 512 & r.flags && (E[0] = 255 & u, E[1] = u >>> 8 & 255, E[2] = u >>> 16 & 255, E[3] = u >>> 24 & 255, r.check = B(r.check, E, 4, 0)), l = u = 0, r.mode = 4;
2358
- case 4:
2359
- for (; l < 16;) {
2360
- if (0 === o) break e;
2361
- o--, u += n[s++] << l, l += 8;
2362
- }
2363
- r.head && (r.head.xflags = 255 & u, r.head.os = u >> 8), 512 & r.flags && (E[0] = 255 & u, E[1] = u >>> 8 & 255, r.check = B(r.check, E, 2, 0)), l = u = 0, r.mode = 5;
2364
- case 5:
2365
- if (1024 & r.flags) {
2366
- for (; l < 16;) {
2367
- if (0 === o) break e;
2368
- o--, u += n[s++] << l, l += 8;
2369
- }
2370
- r.length = u, r.head && (r.head.extra_len = u), 512 & r.flags && (E[0] = 255 & u, E[1] = u >>> 8 & 255, r.check = B(r.check, E, 2, 0)), l = u = 0;
2371
- } else r.head && (r.head.extra = null);
2372
- r.mode = 6;
2373
- case 6:
2374
- if (1024 & r.flags && (o < (d = r.length) && (d = o), d && (r.head && (k = r.head.extra_len - r.length, r.head.extra || (r.head.extra = new Array(r.head.extra_len)), I.arraySet(r.head.extra, n, s, d, k)), 512 & r.flags && (r.check = B(r.check, n, d, s)), o -= d, s += d, r.length -= d), r.length)) break e;
2375
- r.length = 0, r.mode = 7;
2376
- case 7:
2377
- if (2048 & r.flags) {
2378
- if (0 === o) break e;
2379
- for (d = 0; k = n[s + d++], r.head && k && r.length < 65536 && (r.head.name += String.fromCharCode(k)), k && d < o;);
2380
- if (512 & r.flags && (r.check = B(r.check, n, d, s)), o -= d, s += d, k) break e;
2381
- } else r.head && (r.head.name = null);
2382
- r.length = 0, r.mode = 8;
2383
- case 8:
2384
- if (4096 & r.flags) {
2385
- if (0 === o) break e;
2386
- for (d = 0; k = n[s + d++], r.head && k && r.length < 65536 && (r.head.comment += String.fromCharCode(k)), k && d < o;);
2387
- if (512 & r.flags && (r.check = B(r.check, n, d, s)), o -= d, s += d, k) break e;
2388
- } else r.head && (r.head.comment = null);
2389
- r.mode = 9;
2390
- case 9:
2391
- if (512 & r.flags) {
2392
- for (; l < 16;) {
2393
- if (0 === o) break e;
2394
- o--, u += n[s++] << l, l += 8;
2395
- }
2396
- if (u !== (65535 & r.check)) {
2397
- e.msg = "header crc mismatch", r.mode = 30;
2398
- break;
2399
- }
2400
- l = u = 0;
2401
- }
2402
- r.head && (r.head.hcrc = r.flags >> 9 & 1, r.head.done = !0), e.adler = r.check = 0, r.mode = 12;
2403
- break;
2404
- case 10:
2405
- for (; l < 32;) {
2406
- if (0 === o) break e;
2407
- o--, u += n[s++] << l, l += 8;
2408
- }
2409
- e.adler = r.check = L(u), l = u = 0, r.mode = 11;
2410
- case 11:
2411
- if (0 === r.havedict) return e.next_out = a, e.avail_out = h, e.next_in = s, e.avail_in = o, r.hold = u, r.bits = l, 2;
2412
- e.adler = r.check = 1, r.mode = 12;
2413
- case 12: if (5 === t || 6 === t) break e;
2414
- case 13:
2415
- if (r.last) {
2416
- u >>>= 7 & l, l -= 7 & l, r.mode = 27;
2417
- break;
2418
- }
2419
- for (; l < 3;) {
2420
- if (0 === o) break e;
2421
- o--, u += n[s++] << l, l += 8;
2422
- }
2423
- switch (r.last = 1 & u, l -= 1, 3 & (u >>>= 1)) {
2424
- case 0:
2425
- r.mode = 14;
2426
- break;
2427
- case 1:
2428
- if (j(r), r.mode = 20, 6 !== t) break;
2429
- u >>>= 2, l -= 2;
2430
- break e;
2431
- case 2:
2432
- r.mode = 17;
2433
- break;
2434
- case 3: e.msg = "invalid block type", r.mode = 30;
2435
- }
2436
- u >>>= 2, l -= 2;
2437
- break;
2438
- case 14:
2439
- for (u >>>= 7 & l, l -= 7 & l; l < 32;) {
2440
- if (0 === o) break e;
2441
- o--, u += n[s++] << l, l += 8;
2442
- }
2443
- if ((65535 & u) != (u >>> 16 ^ 65535)) {
2444
- e.msg = "invalid stored block lengths", r.mode = 30;
2445
- break;
2446
- }
2447
- if (r.length = 65535 & u, l = u = 0, r.mode = 15, 6 === t) break e;
2448
- case 15: r.mode = 16;
2449
- case 16:
2450
- if (d = r.length) {
2451
- if (o < d && (d = o), h < d && (d = h), 0 === d) break e;
2452
- I.arraySet(i, n, s, d, a), o -= d, s += d, h -= d, a += d, r.length -= d;
2453
- break;
2454
- }
2455
- r.mode = 12;
2456
- break;
2457
- case 17:
2458
- for (; l < 14;) {
2459
- if (0 === o) break e;
2460
- o--, u += n[s++] << l, l += 8;
2461
- }
2462
- if (r.nlen = 257 + (31 & u), u >>>= 5, l -= 5, r.ndist = 1 + (31 & u), u >>>= 5, l -= 5, r.ncode = 4 + (15 & u), u >>>= 4, l -= 4, 286 < r.nlen || 30 < r.ndist) {
2463
- e.msg = "too many length or distance symbols", r.mode = 30;
2464
- break;
2465
- }
2466
- r.have = 0, r.mode = 18;
2467
- case 18:
2468
- for (; r.have < r.ncode;) {
2469
- for (; l < 3;) {
2470
- if (0 === o) break e;
2471
- o--, u += n[s++] << l, l += 8;
2472
- }
2473
- r.lens[A[r.have++]] = 7 & u, u >>>= 3, l -= 3;
2474
- }
2475
- for (; r.have < 19;) r.lens[A[r.have++]] = 0;
2476
- if (r.lencode = r.lendyn, r.lenbits = 7, S = { bits: r.lenbits }, x = T(0, r.lens, 0, 19, r.lencode, 0, r.work, S), r.lenbits = S.bits, x) {
2477
- e.msg = "invalid code lengths set", r.mode = 30;
2478
- break;
2479
- }
2480
- r.have = 0, r.mode = 19;
2481
- case 19:
2482
- for (; r.have < r.nlen + r.ndist;) {
2483
- for (; g = (C = r.lencode[u & (1 << r.lenbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l);) {
2484
- if (0 === o) break e;
2485
- o--, u += n[s++] << l, l += 8;
2486
- }
2487
- if (b < 16) u >>>= _, l -= _, r.lens[r.have++] = b;
2488
- else {
2489
- if (16 === b) {
2490
- for (z = _ + 2; l < z;) {
2491
- if (0 === o) break e;
2492
- o--, u += n[s++] << l, l += 8;
2493
- }
2494
- if (u >>>= _, l -= _, 0 === r.have) {
2495
- e.msg = "invalid bit length repeat", r.mode = 30;
2496
- break;
2497
- }
2498
- k = r.lens[r.have - 1], d = 3 + (3 & u), u >>>= 2, l -= 2;
2499
- } else if (17 === b) {
2500
- for (z = _ + 3; l < z;) {
2501
- if (0 === o) break e;
2502
- o--, u += n[s++] << l, l += 8;
2503
- }
2504
- l -= _, k = 0, d = 3 + (7 & (u >>>= _)), u >>>= 3, l -= 3;
2505
- } else {
2506
- for (z = _ + 7; l < z;) {
2507
- if (0 === o) break e;
2508
- o--, u += n[s++] << l, l += 8;
2509
- }
2510
- l -= _, k = 0, d = 11 + (127 & (u >>>= _)), u >>>= 7, l -= 7;
2511
- }
2512
- if (r.have + d > r.nlen + r.ndist) {
2513
- e.msg = "invalid bit length repeat", r.mode = 30;
2514
- break;
2515
- }
2516
- for (; d--;) r.lens[r.have++] = k;
2517
- }
2518
- }
2519
- if (30 === r.mode) break;
2520
- if (0 === r.lens[256]) {
2521
- e.msg = "invalid code -- missing end-of-block", r.mode = 30;
2522
- break;
2523
- }
2524
- if (r.lenbits = 9, S = { bits: r.lenbits }, x = T(D, r.lens, 0, r.nlen, r.lencode, 0, r.work, S), r.lenbits = S.bits, x) {
2525
- e.msg = "invalid literal/lengths set", r.mode = 30;
2526
- break;
2527
- }
2528
- if (r.distbits = 6, r.distcode = r.distdyn, S = { bits: r.distbits }, x = T(F, r.lens, r.nlen, r.ndist, r.distcode, 0, r.work, S), r.distbits = S.bits, x) {
2529
- e.msg = "invalid distances set", r.mode = 30;
2530
- break;
2531
- }
2532
- if (r.mode = 20, 6 === t) break e;
2533
- case 20: r.mode = 21;
2534
- case 21:
2535
- if (6 <= o && 258 <= h) {
2536
- e.next_out = a, e.avail_out = h, e.next_in = s, e.avail_in = o, r.hold = u, r.bits = l, R(e, c), a = e.next_out, i = e.output, h = e.avail_out, s = e.next_in, n = e.input, o = e.avail_in, u = r.hold, l = r.bits, 12 === r.mode && (r.back = -1);
2537
- break;
2538
- }
2539
- for (r.back = 0; g = (C = r.lencode[u & (1 << r.lenbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l);) {
2540
- if (0 === o) break e;
2541
- o--, u += n[s++] << l, l += 8;
2542
- }
2543
- if (g && 0 == (240 & g)) {
2544
- for (v = _, y = g, w = b; g = (C = r.lencode[w + ((u & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b = 65535 & C, !(v + (_ = C >>> 24) <= l);) {
2545
- if (0 === o) break e;
2546
- o--, u += n[s++] << l, l += 8;
2547
- }
2548
- u >>>= v, l -= v, r.back += v;
2549
- }
2550
- if (u >>>= _, l -= _, r.back += _, r.length = b, 0 === g) {
2551
- r.mode = 26;
2552
- break;
2553
- }
2554
- if (32 & g) {
2555
- r.back = -1, r.mode = 12;
2556
- break;
2557
- }
2558
- if (64 & g) {
2559
- e.msg = "invalid literal/length code", r.mode = 30;
2560
- break;
2561
- }
2562
- r.extra = 15 & g, r.mode = 22;
2563
- case 22:
2564
- if (r.extra) {
2565
- for (z = r.extra; l < z;) {
2566
- if (0 === o) break e;
2567
- o--, u += n[s++] << l, l += 8;
2568
- }
2569
- r.length += u & (1 << r.extra) - 1, u >>>= r.extra, l -= r.extra, r.back += r.extra;
2570
- }
2571
- r.was = r.length, r.mode = 23;
2572
- case 23:
2573
- for (; g = (C = r.distcode[u & (1 << r.distbits) - 1]) >>> 16 & 255, b = 65535 & C, !((_ = C >>> 24) <= l);) {
2574
- if (0 === o) break e;
2575
- o--, u += n[s++] << l, l += 8;
2576
- }
2577
- if (0 == (240 & g)) {
2578
- for (v = _, y = g, w = b; g = (C = r.distcode[w + ((u & (1 << v + y) - 1) >> v)]) >>> 16 & 255, b = 65535 & C, !(v + (_ = C >>> 24) <= l);) {
2579
- if (0 === o) break e;
2580
- o--, u += n[s++] << l, l += 8;
2581
- }
2582
- u >>>= v, l -= v, r.back += v;
2583
- }
2584
- if (u >>>= _, l -= _, r.back += _, 64 & g) {
2585
- e.msg = "invalid distance code", r.mode = 30;
2586
- break;
2587
- }
2588
- r.offset = b, r.extra = 15 & g, r.mode = 24;
2589
- case 24:
2590
- if (r.extra) {
2591
- for (z = r.extra; l < z;) {
2592
- if (0 === o) break e;
2593
- o--, u += n[s++] << l, l += 8;
2594
- }
2595
- r.offset += u & (1 << r.extra) - 1, u >>>= r.extra, l -= r.extra, r.back += r.extra;
2596
- }
2597
- if (r.offset > r.dmax) {
2598
- e.msg = "invalid distance too far back", r.mode = 30;
2599
- break;
2600
- }
2601
- r.mode = 25;
2602
- case 25:
2603
- if (0 === h) break e;
2604
- if (d = c - h, r.offset > d) {
2605
- if ((d = r.offset - d) > r.whave && r.sane) {
2606
- e.msg = "invalid distance too far back", r.mode = 30;
2607
- break;
2608
- }
2609
- p = d > r.wnext ? (d -= r.wnext, r.wsize - d) : r.wnext - d, d > r.length && (d = r.length), m = r.window;
2610
- } else m = i, p = a - r.offset, d = r.length;
2611
- for (h < d && (d = h), h -= d, r.length -= d; i[a++] = m[p++], --d;);
2612
- 0 === r.length && (r.mode = 21);
2613
- break;
2614
- case 26:
2615
- if (0 === h) break e;
2616
- i[a++] = r.length, h--, r.mode = 21;
2617
- break;
2618
- case 27:
2619
- if (r.wrap) {
2620
- for (; l < 32;) {
2621
- if (0 === o) break e;
2622
- o--, u |= n[s++] << l, l += 8;
2623
- }
2624
- if (c -= h, e.total_out += c, r.total += c, c && (e.adler = r.check = r.flags ? B(r.check, i, c, a - c) : O(r.check, i, c, a - c)), c = h, (r.flags ? u : L(u)) !== r.check) {
2625
- e.msg = "incorrect data check", r.mode = 30;
2626
- break;
2627
- }
2628
- l = u = 0;
2629
- }
2630
- r.mode = 28;
2631
- case 28:
2632
- if (r.wrap && r.flags) {
2633
- for (; l < 32;) {
2634
- if (0 === o) break e;
2635
- o--, u += n[s++] << l, l += 8;
2636
- }
2637
- if (u !== (4294967295 & r.total)) {
2638
- e.msg = "incorrect length check", r.mode = 30;
2639
- break;
2640
- }
2641
- l = u = 0;
2642
- }
2643
- r.mode = 29;
2644
- case 29:
2645
- x = 1;
2646
- break e;
2647
- case 30:
2648
- x = -3;
2649
- break e;
2650
- case 31: return -4;
2651
- case 32:
2652
- default: return U;
2653
- }
2654
- return e.next_out = a, e.avail_out = h, e.next_in = s, e.avail_in = o, r.hold = u, r.bits = l, (r.wsize || c !== e.avail_out && r.mode < 30 && (r.mode < 27 || 4 !== t)) && Z(e, e.output, e.next_out, c - e.avail_out) ? (r.mode = 31, -4) : (f -= e.avail_in, c -= e.avail_out, e.total_in += f, e.total_out += c, r.total += c, r.wrap && c && (e.adler = r.check = r.flags ? B(r.check, i, c, e.next_out - c) : O(r.check, i, c, e.next_out - c)), e.data_type = r.bits + (r.last ? 64 : 0) + (12 === r.mode ? 128 : 0) + (20 === r.mode || 15 === r.mode ? 256 : 0), (0 == f && 0 === c || 4 === t) && x === N && (x = -5), x);
2655
- }, r.inflateEnd = function(e) {
2656
- if (!e || !e.state) return U;
2657
- var t = e.state;
2658
- return t.window && (t.window = null), e.state = null, N;
2659
- }, r.inflateGetHeader = function(e, t) {
2660
- var r;
2661
- return e && e.state ? 0 == (2 & (r = e.state).wrap) ? U : ((r.head = t).done = !1, N) : U;
2662
- }, r.inflateSetDictionary = function(e, t) {
2663
- var r, n = t.length;
2664
- return e && e.state ? 0 !== (r = e.state).wrap && 11 !== r.mode ? U : 11 === r.mode && O(1, t, n, 0) !== r.check ? -3 : Z(e, t, n, n) ? (r.mode = 31, -4) : (r.havedict = 1, N) : U;
2665
- }, r.inflateInfo = "pako inflate (from Nodeca project)";
2666
- }, {
2667
- "../utils/common": 41,
2668
- "./adler32": 43,
2669
- "./crc32": 45,
2670
- "./inffast": 48,
2671
- "./inftrees": 50
2672
- }],
2673
- 50: [function(e, t, r) {
2674
- "use strict";
2675
- var D = e("../utils/common"), F = [
2676
- 3,
2677
- 4,
2678
- 5,
2679
- 6,
2680
- 7,
2681
- 8,
2682
- 9,
2683
- 10,
2684
- 11,
2685
- 13,
2686
- 15,
2687
- 17,
2688
- 19,
2689
- 23,
2690
- 27,
2691
- 31,
2692
- 35,
2693
- 43,
2694
- 51,
2695
- 59,
2696
- 67,
2697
- 83,
2698
- 99,
2699
- 115,
2700
- 131,
2701
- 163,
2702
- 195,
2703
- 227,
2704
- 258,
2705
- 0,
2706
- 0
2707
- ], N = [
2708
- 16,
2709
- 16,
2710
- 16,
2711
- 16,
2712
- 16,
2713
- 16,
2714
- 16,
2715
- 16,
2716
- 17,
2717
- 17,
2718
- 17,
2719
- 17,
2720
- 18,
2721
- 18,
2722
- 18,
2723
- 18,
2724
- 19,
2725
- 19,
2726
- 19,
2727
- 19,
2728
- 20,
2729
- 20,
2730
- 20,
2731
- 20,
2732
- 21,
2733
- 21,
2734
- 21,
2735
- 21,
2736
- 16,
2737
- 72,
2738
- 78
2739
- ], U = [
2740
- 1,
2741
- 2,
2742
- 3,
2743
- 4,
2744
- 5,
2745
- 7,
2746
- 9,
2747
- 13,
2748
- 17,
2749
- 25,
2750
- 33,
2751
- 49,
2752
- 65,
2753
- 97,
2754
- 129,
2755
- 193,
2756
- 257,
2757
- 385,
2758
- 513,
2759
- 769,
2760
- 1025,
2761
- 1537,
2762
- 2049,
2763
- 3073,
2764
- 4097,
2765
- 6145,
2766
- 8193,
2767
- 12289,
2768
- 16385,
2769
- 24577,
2770
- 0,
2771
- 0
2772
- ], P = [
2773
- 16,
2774
- 16,
2775
- 16,
2776
- 16,
2777
- 17,
2778
- 17,
2779
- 18,
2780
- 18,
2781
- 19,
2782
- 19,
2783
- 20,
2784
- 20,
2785
- 21,
2786
- 21,
2787
- 22,
2788
- 22,
2789
- 23,
2790
- 23,
2791
- 24,
2792
- 24,
2793
- 25,
2794
- 25,
2795
- 26,
2796
- 26,
2797
- 27,
2798
- 27,
2799
- 28,
2800
- 28,
2801
- 29,
2802
- 29,
2803
- 64,
2804
- 64
2805
- ];
2806
- t.exports = function(e, t, r, n, i, s, a, o) {
2807
- var h, u, l, f, c, d, p, m, _, g = o.bits, b = 0, v = 0, y = 0, w = 0, k = 0, x = 0, S = 0, z = 0, C = 0, E = 0, A = null, I = 0, O = new D.Buf16(16), B = new D.Buf16(16), R = null, T = 0;
2808
- for (b = 0; b <= 15; b++) O[b] = 0;
2809
- for (v = 0; v < n; v++) O[t[r + v]]++;
2810
- for (k = g, w = 15; 1 <= w && 0 === O[w]; w--);
2811
- if (w < k && (k = w), 0 === w) return i[s++] = 20971520, i[s++] = 20971520, o.bits = 1, 0;
2812
- for (y = 1; y < w && 0 === O[y]; y++);
2813
- for (k < y && (k = y), b = z = 1; b <= 15; b++) if (z <<= 1, (z -= O[b]) < 0) return -1;
2814
- if (0 < z && (0 === e || 1 !== w)) return -1;
2815
- for (B[1] = 0, b = 1; b < 15; b++) B[b + 1] = B[b] + O[b];
2816
- for (v = 0; v < n; v++) 0 !== t[r + v] && (a[B[t[r + v]]++] = v);
2817
- if (d = 0 === e ? (A = R = a, 19) : 1 === e ? (A = F, I -= 257, R = N, T -= 257, 256) : (A = U, R = P, -1), b = y, c = s, S = v = E = 0, l = -1, f = (C = 1 << (x = k)) - 1, 1 === e && 852 < C || 2 === e && 592 < C) return 1;
2818
- for (;;) {
2819
- for (p = b - S, _ = a[v] < d ? (m = 0, a[v]) : a[v] > d ? (m = R[T + a[v]], A[I + a[v]]) : (m = 96, 0), h = 1 << b - S, y = u = 1 << x; i[c + (E >> S) + (u -= h)] = p << 24 | m << 16 | _ | 0, 0 !== u;);
2820
- for (h = 1 << b - 1; E & h;) h >>= 1;
2821
- if (0 !== h ? (E &= h - 1, E += h) : E = 0, v++, 0 == --O[b]) {
2822
- if (b === w) break;
2823
- b = t[r + a[v]];
2824
- }
2825
- if (k < b && (E & f) !== l) {
2826
- for (0 === S && (S = k), c += y, z = 1 << (x = b - S); x + S < w && !((z -= O[x + S]) <= 0);) x++, z <<= 1;
2827
- if (C += 1 << x, 1 === e && 852 < C || 2 === e && 592 < C) return 1;
2828
- i[l = E & f] = k << 24 | x << 16 | c - s | 0;
2829
- }
2830
- }
2831
- return 0 !== E && (i[c + E] = b - S << 24 | 4194304), o.bits = k, 0;
2832
- };
2833
- }, { "../utils/common": 41 }],
2834
- 51: [function(e, t, r) {
2835
- "use strict";
2836
- t.exports = {
2837
- 2: "need dictionary",
2838
- 1: "stream end",
2839
- 0: "",
2840
- "-1": "file error",
2841
- "-2": "stream error",
2842
- "-3": "data error",
2843
- "-4": "insufficient memory",
2844
- "-5": "buffer error",
2845
- "-6": "incompatible version"
2846
- };
2847
- }, {}],
2848
- 52: [function(e, t, r) {
2849
- "use strict";
2850
- var i = e("../utils/common"), o = 0, h = 1;
2851
- function n(e) {
2852
- for (var t = e.length; 0 <= --t;) e[t] = 0;
2853
- }
2854
- var s = 0, a = 29, u = 256, l = u + 1 + a, f = 30, c = 19, _ = 2 * l + 1, g = 15, d = 16, p = 7, m = 256, b = 16, v = 17, y = 18, w = [
2855
- 0,
2856
- 0,
2857
- 0,
2858
- 0,
2859
- 0,
2860
- 0,
2861
- 0,
2862
- 0,
2863
- 1,
2864
- 1,
2865
- 1,
2866
- 1,
2867
- 2,
2868
- 2,
2869
- 2,
2870
- 2,
2871
- 3,
2872
- 3,
2873
- 3,
2874
- 3,
2875
- 4,
2876
- 4,
2877
- 4,
2878
- 4,
2879
- 5,
2880
- 5,
2881
- 5,
2882
- 5,
2883
- 0
2884
- ], k = [
2885
- 0,
2886
- 0,
2887
- 0,
2888
- 0,
2889
- 1,
2890
- 1,
2891
- 2,
2892
- 2,
2893
- 3,
2894
- 3,
2895
- 4,
2896
- 4,
2897
- 5,
2898
- 5,
2899
- 6,
2900
- 6,
2901
- 7,
2902
- 7,
2903
- 8,
2904
- 8,
2905
- 9,
2906
- 9,
2907
- 10,
2908
- 10,
2909
- 11,
2910
- 11,
2911
- 12,
2912
- 12,
2913
- 13,
2914
- 13
2915
- ], x = [
2916
- 0,
2917
- 0,
2918
- 0,
2919
- 0,
2920
- 0,
2921
- 0,
2922
- 0,
2923
- 0,
2924
- 0,
2925
- 0,
2926
- 0,
2927
- 0,
2928
- 0,
2929
- 0,
2930
- 0,
2931
- 0,
2932
- 2,
2933
- 3,
2934
- 7
2935
- ], S = [
2936
- 16,
2937
- 17,
2938
- 18,
2939
- 0,
2940
- 8,
2941
- 7,
2942
- 9,
2943
- 6,
2944
- 10,
2945
- 5,
2946
- 11,
2947
- 4,
2948
- 12,
2949
- 3,
2950
- 13,
2951
- 2,
2952
- 14,
2953
- 1,
2954
- 15
2955
- ], z = new Array(2 * (l + 2));
2956
- n(z);
2957
- var C = new Array(2 * f);
2958
- n(C);
2959
- var E = new Array(512);
2960
- n(E);
2961
- var A = new Array(256);
2962
- n(A);
2963
- var I = new Array(a);
2964
- n(I);
2965
- var O, B, R, T = new Array(f);
2966
- function D(e, t, r, n, i) {
2967
- this.static_tree = e, this.extra_bits = t, this.extra_base = r, this.elems = n, this.max_length = i, this.has_stree = e && e.length;
2968
- }
2969
- function F(e, t) {
2970
- this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
2971
- }
2972
- function N(e) {
2973
- return e < 256 ? E[e] : E[256 + (e >>> 7)];
2974
- }
2975
- function U(e, t) {
2976
- e.pending_buf[e.pending++] = 255 & t, e.pending_buf[e.pending++] = t >>> 8 & 255;
2977
- }
2978
- function P(e, t, r) {
2979
- e.bi_valid > d - r ? (e.bi_buf |= t << e.bi_valid & 65535, U(e, e.bi_buf), e.bi_buf = t >> d - e.bi_valid, e.bi_valid += r - d) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += r);
2980
- }
2981
- function L(e, t, r) {
2982
- P(e, r[2 * t], r[2 * t + 1]);
2983
- }
2984
- function j(e, t) {
2985
- for (var r = 0; r |= 1 & e, e >>>= 1, r <<= 1, 0 < --t;);
2986
- return r >>> 1;
2987
- }
2988
- function Z(e, t, r) {
2989
- var n, i, s = new Array(g + 1), a = 0;
2990
- for (n = 1; n <= g; n++) s[n] = a = a + r[n - 1] << 1;
2991
- for (i = 0; i <= t; i++) {
2992
- var o = e[2 * i + 1];
2993
- 0 !== o && (e[2 * i] = j(s[o]++, o));
2994
- }
2995
- }
2996
- function W(e) {
2997
- var t;
2998
- for (t = 0; t < l; t++) e.dyn_ltree[2 * t] = 0;
2999
- for (t = 0; t < f; t++) e.dyn_dtree[2 * t] = 0;
3000
- for (t = 0; t < c; t++) e.bl_tree[2 * t] = 0;
3001
- e.dyn_ltree[2 * m] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
3002
- }
3003
- function M(e) {
3004
- 8 < e.bi_valid ? U(e, e.bi_buf) : 0 < e.bi_valid && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
3005
- }
3006
- function H(e, t, r, n) {
3007
- var i = 2 * t, s = 2 * r;
3008
- return e[i] < e[s] || e[i] === e[s] && n[t] <= n[r];
3009
- }
3010
- function G(e, t, r) {
3011
- for (var n = e.heap[r], i = r << 1; i <= e.heap_len && (i < e.heap_len && H(t, e.heap[i + 1], e.heap[i], e.depth) && i++, !H(t, n, e.heap[i], e.depth));) e.heap[r] = e.heap[i], r = i, i <<= 1;
3012
- e.heap[r] = n;
3013
- }
3014
- function K(e, t, r) {
3015
- var n, i, s, a, o = 0;
3016
- if (0 !== e.last_lit) for (; n = e.pending_buf[e.d_buf + 2 * o] << 8 | e.pending_buf[e.d_buf + 2 * o + 1], i = e.pending_buf[e.l_buf + o], o++, 0 === n ? L(e, i, t) : (L(e, (s = A[i]) + u + 1, t), 0 !== (a = w[s]) && P(e, i -= I[s], a), L(e, s = N(--n), r), 0 !== (a = k[s]) && P(e, n -= T[s], a)), o < e.last_lit;);
3017
- L(e, m, t);
3018
- }
3019
- function Y(e, t) {
3020
- var r, n, i, s = t.dyn_tree, a = t.stat_desc.static_tree, o = t.stat_desc.has_stree, h = t.stat_desc.elems, u = -1;
3021
- for (e.heap_len = 0, e.heap_max = _, r = 0; r < h; r++) 0 !== s[2 * r] ? (e.heap[++e.heap_len] = u = r, e.depth[r] = 0) : s[2 * r + 1] = 0;
3022
- for (; e.heap_len < 2;) s[2 * (i = e.heap[++e.heap_len] = u < 2 ? ++u : 0)] = 1, e.depth[i] = 0, e.opt_len--, o && (e.static_len -= a[2 * i + 1]);
3023
- for (t.max_code = u, r = e.heap_len >> 1; 1 <= r; r--) G(e, s, r);
3024
- for (i = h; r = e.heap[1], e.heap[1] = e.heap[e.heap_len--], G(e, s, 1), n = e.heap[1], e.heap[--e.heap_max] = r, e.heap[--e.heap_max] = n, s[2 * i] = s[2 * r] + s[2 * n], e.depth[i] = (e.depth[r] >= e.depth[n] ? e.depth[r] : e.depth[n]) + 1, s[2 * r + 1] = s[2 * n + 1] = i, e.heap[1] = i++, G(e, s, 1), 2 <= e.heap_len;);
3025
- e.heap[--e.heap_max] = e.heap[1], function(e, t) {
3026
- var r, n, i, s, a, o, h = t.dyn_tree, u = t.max_code, l = t.stat_desc.static_tree, f = t.stat_desc.has_stree, c = t.stat_desc.extra_bits, d = t.stat_desc.extra_base, p = t.stat_desc.max_length, m = 0;
3027
- for (s = 0; s <= g; s++) e.bl_count[s] = 0;
3028
- for (h[2 * e.heap[e.heap_max] + 1] = 0, r = e.heap_max + 1; r < _; r++) p < (s = h[2 * h[2 * (n = e.heap[r]) + 1] + 1] + 1) && (s = p, m++), h[2 * n + 1] = s, u < n || (e.bl_count[s]++, a = 0, d <= n && (a = c[n - d]), o = h[2 * n], e.opt_len += o * (s + a), f && (e.static_len += o * (l[2 * n + 1] + a)));
3029
- if (0 !== m) {
3030
- do {
3031
- for (s = p - 1; 0 === e.bl_count[s];) s--;
3032
- e.bl_count[s]--, e.bl_count[s + 1] += 2, e.bl_count[p]--, m -= 2;
3033
- } while (0 < m);
3034
- for (s = p; 0 !== s; s--) for (n = e.bl_count[s]; 0 !== n;) u < (i = e.heap[--r]) || (h[2 * i + 1] !== s && (e.opt_len += (s - h[2 * i + 1]) * h[2 * i], h[2 * i + 1] = s), n--);
3035
- }
3036
- }(e, t), Z(s, u, e.bl_count);
3037
- }
3038
- function X(e, t, r) {
3039
- var n, i, s = -1, a = t[1], o = 0, h = 7, u = 4;
3040
- for (0 === a && (h = 138, u = 3), t[2 * (r + 1) + 1] = 65535, n = 0; n <= r; n++) i = a, a = t[2 * (n + 1) + 1], ++o < h && i === a || (o < u ? e.bl_tree[2 * i] += o : 0 !== i ? (i !== s && e.bl_tree[2 * i]++, e.bl_tree[2 * b]++) : o <= 10 ? e.bl_tree[2 * v]++ : e.bl_tree[2 * y]++, s = i, u = (o = 0) === a ? (h = 138, 3) : i === a ? (h = 6, 3) : (h = 7, 4));
3041
- }
3042
- function V(e, t, r) {
3043
- var n, i, s = -1, a = t[1], o = 0, h = 7, u = 4;
3044
- for (0 === a && (h = 138, u = 3), n = 0; n <= r; n++) if (i = a, a = t[2 * (n + 1) + 1], !(++o < h && i === a)) {
3045
- if (o < u) for (; L(e, i, e.bl_tree), 0 != --o;);
3046
- else 0 !== i ? (i !== s && (L(e, i, e.bl_tree), o--), L(e, b, e.bl_tree), P(e, o - 3, 2)) : o <= 10 ? (L(e, v, e.bl_tree), P(e, o - 3, 3)) : (L(e, y, e.bl_tree), P(e, o - 11, 7));
3047
- s = i, u = (o = 0) === a ? (h = 138, 3) : i === a ? (h = 6, 3) : (h = 7, 4);
3048
- }
3049
- }
3050
- n(T);
3051
- var q = !1;
3052
- function J(e, t, r, n) {
3053
- P(e, (s << 1) + (n ? 1 : 0), 3), function(e, t, r, n) {
3054
- M(e), n && (U(e, r), U(e, ~r)), i.arraySet(e.pending_buf, e.window, t, r, e.pending), e.pending += r;
3055
- }(e, t, r, !0);
3056
- }
3057
- r._tr_init = function(e) {
3058
- q || (function() {
3059
- var e, t, r, n, i, s = new Array(g + 1);
3060
- for (n = r = 0; n < a - 1; n++) for (I[n] = r, e = 0; e < 1 << w[n]; e++) A[r++] = n;
3061
- for (A[r - 1] = n, n = i = 0; n < 16; n++) for (T[n] = i, e = 0; e < 1 << k[n]; e++) E[i++] = n;
3062
- for (i >>= 7; n < f; n++) for (T[n] = i << 7, e = 0; e < 1 << k[n] - 7; e++) E[256 + i++] = n;
3063
- for (t = 0; t <= g; t++) s[t] = 0;
3064
- for (e = 0; e <= 143;) z[2 * e + 1] = 8, e++, s[8]++;
3065
- for (; e <= 255;) z[2 * e + 1] = 9, e++, s[9]++;
3066
- for (; e <= 279;) z[2 * e + 1] = 7, e++, s[7]++;
3067
- for (; e <= 287;) z[2 * e + 1] = 8, e++, s[8]++;
3068
- for (Z(z, l + 1, s), e = 0; e < f; e++) C[2 * e + 1] = 5, C[2 * e] = j(e, 5);
3069
- O = new D(z, w, u + 1, l, g), B = new D(C, k, 0, f, g), R = new D(new Array(0), x, 0, c, p);
3070
- }(), q = !0), e.l_desc = new F(e.dyn_ltree, O), e.d_desc = new F(e.dyn_dtree, B), e.bl_desc = new F(e.bl_tree, R), e.bi_buf = 0, e.bi_valid = 0, W(e);
3071
- }, r._tr_stored_block = J, r._tr_flush_block = function(e, t, r, n) {
3072
- var i, s, a = 0;
3073
- 0 < e.level ? (2 === e.strm.data_type && (e.strm.data_type = function(e) {
3074
- var t, r = 4093624447;
3075
- for (t = 0; t <= 31; t++, r >>>= 1) if (1 & r && 0 !== e.dyn_ltree[2 * t]) return o;
3076
- if (0 !== e.dyn_ltree[18] || 0 !== e.dyn_ltree[20] || 0 !== e.dyn_ltree[26]) return h;
3077
- for (t = 32; t < u; t++) if (0 !== e.dyn_ltree[2 * t]) return h;
3078
- return o;
3079
- }(e)), Y(e, e.l_desc), Y(e, e.d_desc), a = function(e) {
3080
- var t;
3081
- for (X(e, e.dyn_ltree, e.l_desc.max_code), X(e, e.dyn_dtree, e.d_desc.max_code), Y(e, e.bl_desc), t = c - 1; 3 <= t && 0 === e.bl_tree[2 * S[t] + 1]; t--);
3082
- return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
3083
- }(e), i = e.opt_len + 3 + 7 >>> 3, (s = e.static_len + 3 + 7 >>> 3) <= i && (i = s)) : i = s = r + 5, r + 4 <= i && -1 !== t ? J(e, t, r, n) : 4 === e.strategy || s === i ? (P(e, 2 + (n ? 1 : 0), 3), K(e, z, C)) : (P(e, 4 + (n ? 1 : 0), 3), function(e, t, r, n) {
3084
- var i;
3085
- for (P(e, t - 257, 5), P(e, r - 1, 5), P(e, n - 4, 4), i = 0; i < n; i++) P(e, e.bl_tree[2 * S[i] + 1], 3);
3086
- V(e, e.dyn_ltree, t - 1), V(e, e.dyn_dtree, r - 1);
3087
- }(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, a + 1), K(e, e.dyn_ltree, e.dyn_dtree)), W(e), n && M(e);
3088
- }, r._tr_tally = function(e, t, r) {
3089
- return e.pending_buf[e.d_buf + 2 * e.last_lit] = t >>> 8 & 255, e.pending_buf[e.d_buf + 2 * e.last_lit + 1] = 255 & t, e.pending_buf[e.l_buf + e.last_lit] = 255 & r, e.last_lit++, 0 === t ? e.dyn_ltree[2 * r]++ : (e.matches++, t--, e.dyn_ltree[2 * (A[r] + u + 1)]++, e.dyn_dtree[2 * N(t)]++), e.last_lit === e.lit_bufsize - 1;
3090
- }, r._tr_align = function(e) {
3091
- P(e, 2, 3), L(e, m, z), function(e) {
3092
- 16 === e.bi_valid ? (U(e, e.bi_buf), e.bi_buf = 0, e.bi_valid = 0) : 8 <= e.bi_valid && (e.pending_buf[e.pending++] = 255 & e.bi_buf, e.bi_buf >>= 8, e.bi_valid -= 8);
3093
- }(e);
3094
- };
3095
- }, { "../utils/common": 41 }],
3096
- 53: [function(e, t, r) {
3097
- "use strict";
3098
- t.exports = function() {
3099
- 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;
3100
- };
3101
- }, {}],
3102
- 54: [function(e, t, r) {
3103
- (function(e) {
3104
- (function(r, n) {
3105
- "use strict";
3106
- if (!r.setImmediate) {
3107
- var i, s, t, a, o = 1, h = {}, u = !1, l = r.document, e = Object.getPrototypeOf && Object.getPrototypeOf(r);
3108
- e = e && e.setTimeout ? e : r, i = "[object process]" === {}.toString.call(r.process) ? function(e) {
3109
- process.nextTick(function() {
3110
- c(e);
3111
- });
3112
- } : function() {
3113
- if (r.postMessage && !r.importScripts) {
3114
- var e = !0, t = r.onmessage;
3115
- return r.onmessage = function() {
3116
- e = !1;
3117
- }, r.postMessage("", "*"), r.onmessage = t, e;
3118
- }
3119
- }() ? (a = "setImmediate$" + Math.random() + "$", r.addEventListener ? r.addEventListener("message", d, !1) : r.attachEvent("onmessage", d), function(e) {
3120
- r.postMessage(a + e, "*");
3121
- }) : r.MessageChannel ? ((t = new MessageChannel()).port1.onmessage = function(e) {
3122
- c(e.data);
3123
- }, function(e) {
3124
- t.port2.postMessage(e);
3125
- }) : l && "onreadystatechange" in l.createElement("script") ? (s = l.documentElement, function(e) {
3126
- var t = l.createElement("script");
3127
- t.onreadystatechange = function() {
3128
- c(e), t.onreadystatechange = null, s.removeChild(t), t = null;
3129
- }, s.appendChild(t);
3130
- }) : function(e) {
3131
- setTimeout(c, 0, e);
3132
- }, e.setImmediate = function(e) {
3133
- "function" != typeof e && (e = new Function("" + e));
3134
- for (var t = new Array(arguments.length - 1), r = 0; r < t.length; r++) t[r] = arguments[r + 1];
3135
- return h[o] = {
3136
- callback: e,
3137
- args: t
3138
- }, i(o), o++;
3139
- }, e.clearImmediate = f;
3140
- }
3141
- function f(e) {
3142
- delete h[e];
3143
- }
3144
- function c(e) {
3145
- if (u) setTimeout(c, 0, e);
3146
- else {
3147
- var t = h[e];
3148
- if (t) {
3149
- u = !0;
3150
- try {
3151
- (function(e) {
3152
- var t = e.callback, r = e.args;
3153
- switch (r.length) {
3154
- case 0:
3155
- t();
3156
- break;
3157
- case 1:
3158
- t(r[0]);
3159
- break;
3160
- case 2:
3161
- t(r[0], r[1]);
3162
- break;
3163
- case 3:
3164
- t(r[0], r[1], r[2]);
3165
- break;
3166
- default: t.apply(n, r);
3167
- }
3168
- })(t);
3169
- } finally {
3170
- f(e), u = !1;
3171
- }
3172
- }
3173
- }
3174
- }
3175
- function d(e) {
3176
- e.source === r && "string" == typeof e.data && 0 === e.data.indexOf(a) && c(+e.data.slice(a.length));
3177
- }
3178
- })("undefined" == typeof self ? void 0 === e ? this : e : self);
3179
- }).call(this, "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
3180
- }, {}]
3181
- }, {}, [10])(10);
3182
- });
3183
- }));
3184
- //#endregion
3185
- //#region .svelte-kit/adapter-bun/entries/pages/_page.svelte.js
3186
- var import_FileSaver_min = /* @__PURE__ */ __toESM(require_FileSaver_min(), 1);
3187
- var import_jszip_min = /* @__PURE__ */ __toESM(require_jszip_min(), 1);
3188
- function MenuButton($$renderer, $$props) {
3189
- let { title, children } = $$props;
3190
- let isOpen = false;
3191
- let $$settled = true;
3192
- let $$inner_renderer;
3193
- function $$render_inner($$renderer) {
3194
- $$renderer.push(`<div>`);
3195
- Button($$renderer, {
3196
- class: `cursor-pointer rounded-none py-1 hover:bg-neutral-800 ${stringify(isOpen ? "bg-neutral-800 " : "")} px-4 text-xs text-white font-normal`,
3197
- children: ($$renderer) => {
3198
- $$renderer.push(`<!---->${escape_html(title)}`);
3199
- },
3200
- $$slots: { default: true }
3201
- });
3202
- $$renderer.push(`<!----> `);
3203
- Dropdown($$renderer, {
3204
- simple: true,
3205
- placement: "bottom-start",
3206
- class: "rounded-tl-none bg-neutral-800 text-white",
3207
- transitionParams: { duration: 0 },
3208
- offset: 0,
3209
- get isOpen() {
3210
- return isOpen;
3211
- },
3212
- set isOpen($$value) {
3213
- isOpen = $$value;
3214
- $$settled = false;
3215
- },
3216
- children: ($$renderer) => {
3217
- children?.($$renderer);
3218
- $$renderer.push(`<!---->`);
3219
- },
3220
- $$slots: { default: true }
3221
- });
3222
- $$renderer.push(`<!----></div>`);
3223
- }
3224
- do {
3225
- $$settled = true;
3226
- $$inner_renderer = $$renderer.copy();
3227
- $$render_inner($$inner_renderer);
3228
- } while (!$$settled);
3229
- $$renderer.subsume($$inner_renderer);
3230
- }
3231
- function MenuItem($$renderer, $$props) {
3232
- let { icon, children, onClick } = $$props;
3233
- $$renderer.push(`<div>`);
3234
- DropdownItem($$renderer, {
3235
- class: "p-0 w-full",
3236
- children: ($$renderer) => {
3237
- $$renderer.push(`<button class="flex cursor-pointer items-center gap-2 px-3 py-2 text-white text-xs hover:bg-neutral-600 w-full">`);
3238
- Avatar($$renderer, { class: `${stringify(icon || "opacity-0")} w-4 h-4 text-xs text-neutral-200 rounded-none` });
3239
- $$renderer.push(`<!----> `);
3240
- children?.($$renderer);
3241
- $$renderer.push(`<!----></button>`);
3242
- },
3243
- $$slots: { default: true }
3244
- });
3245
- $$renderer.push(`<!----></div>`);
3246
- }
3247
- function ensureFolder(zip, path) {
3248
- return zip.folder(path) ?? zip;
3249
- }
3250
- async function exportToZip(filename = "NanoForge.zip") {
3251
- const allFiles = await (await getDB()).transaction("files", "readonly").objectStore("files").getAll();
3252
- const zip = new import_jszip_min.default();
3253
- for (const file of allFiles) {
3254
- const parts = file.id.split("/");
3255
- let currentFolder = zip;
3256
- for (let i = 0; i < parts.length - 1; i++) {
3257
- const folderName = parts[i];
3258
- const nextFolder = currentFolder.folder(folderName);
3259
- if (nextFolder) currentFolder = nextFolder;
3260
- else currentFolder = ensureFolder(currentFolder, parts[i]);
3261
- }
3262
- currentFolder.file(parts[parts.length - 1], file.content);
3263
- }
3264
- const zipBlob = await zip.generateAsync({ type: "blob" });
3265
- import_FileSaver_min.default.saveAs(zipBlob, filename);
3266
- }
3267
- function MenuBar($$renderer, $$props) {
3268
- $$renderer.component(($$renderer) => {
3269
- let fileInput;
3270
- async function handleImportClick() {
3271
- fileInput.click();
3272
- }
3273
- $$renderer.push(`<div class="w-full flex">`);
3274
- MenuButton($$renderer, {
3275
- title: "File",
3276
- children: ($$renderer) => {
3277
- MenuItem($$renderer, {
3278
- icon: "i-solar-cloud-download-bold-duotone",
3279
- children: ($$renderer) => {
3280
- $$renderer.push(`<!---->Save`);
3281
- },
3282
- $$slots: { default: true }
3283
- });
3284
- $$renderer.push(`<!----> `);
3285
- MenuItem($$renderer, {
3286
- onClick: handleImportClick,
3287
- children: ($$renderer) => {
3288
- $$renderer.push(`<!---->Import <input type="file" accept=".zip" class="hidden"/>`);
3289
- },
3290
- $$slots: { default: true }
3291
- });
3292
- $$renderer.push(`<!----> `);
3293
- MenuItem($$renderer, {
3294
- icon: "i-solar-file-send-bold-duotone",
3295
- onClick: () => exportToZip(),
3296
- children: ($$renderer) => {
3297
- $$renderer.push(`<!---->Export`);
3298
- },
3299
- $$slots: { default: true }
3300
- });
3301
- $$renderer.push(`<!----> `);
3302
- MenuItem($$renderer, {
3303
- icon: "i-solar-exit-bold-duotone",
3304
- onClick: () => goto(resolve("/load-project")),
3305
- children: ($$renderer) => {
3306
- $$renderer.push(`<!---->Exit`);
3307
- },
3308
- $$slots: { default: true }
3309
- });
3310
- $$renderer.push(`<!---->`);
3311
- },
3312
- $$slots: { default: true }
3313
- });
3314
- $$renderer.push(`<!----> `);
3315
- MenuButton($$renderer, {
3316
- title: "Edit",
3317
- children: ($$renderer) => {
3318
- MenuItem($$renderer, {
3319
- icon: "i-solar-arrow-left-bold-duotone",
3320
- children: ($$renderer) => {
3321
- $$renderer.push(`<!---->Undo`);
3322
- },
3323
- $$slots: { default: true }
3324
- });
3325
- $$renderer.push(`<!----> `);
3326
- MenuItem($$renderer, {
3327
- icon: "i-solar-arrow-right-bold-duotone",
3328
- children: ($$renderer) => {
3329
- $$renderer.push(`<!---->Redo`);
3330
- },
3331
- $$slots: { default: true }
3332
- });
3333
- $$renderer.push(`<!----> `);
3334
- MenuItem($$renderer, {
3335
- icon: "i-solar-settings-bold-duotone",
3336
- children: ($$renderer) => {
3337
- $$renderer.push(`<!---->Project settings`);
3338
- },
3339
- $$slots: { default: true }
3340
- });
3341
- $$renderer.push(`<!---->`);
3342
- },
3343
- $$slots: { default: true }
3344
- });
3345
- $$renderer.push(`<!----> `);
3346
- MenuButton($$renderer, {
3347
- title: "Help",
3348
- children: ($$renderer) => {
3349
- MenuItem($$renderer, {
3350
- icon: "i-solar-book-2-bold-duotone",
3351
- children: ($$renderer) => {
3352
- $$renderer.push(`<!---->Documentation`);
3353
- },
3354
- $$slots: { default: true }
3355
- });
3356
- $$renderer.push(`<!----> `);
3357
- MenuItem($$renderer, {
3358
- icon: "i-solar-info-circle-bold-duotone",
3359
- children: ($$renderer) => {
3360
- $$renderer.push(`<!---->About Us`);
3361
- },
3362
- $$slots: { default: true }
3363
- });
3364
- $$renderer.push(`<!---->`);
3365
- },
3366
- $$slots: { default: true }
3367
- });
3368
- $$renderer.push(`<!----></div>`);
3369
- });
3370
- }
3371
- function Tab($$renderer, $$props) {
3372
- $$renderer.component(($$renderer) => {
3373
- let { tab, selected = false, closable = true, onSelect = () => {}, onClose = () => {} } = $$props;
3374
- $$renderer.push(`<button${attr_class(`flex gap-2 items-center justify-center w-56 px-3 py-2 cursor-pointer ${stringify(selected ? "bg-neutral-800" : "hover:bg-neutral-800")} rounded-lg`)}><span${attr_class(`flex items-center justify-center gap-2 text-sm w-full ${stringify(selected ? "font-bold" : "")} truncate`)}><span${attr_class(`${stringify(tab.type.icon)} flex-shrink-0`)}></span> <span${attr_class(`flex-1 text-start text-sm ${stringify(selected ? "font-bold" : "")} truncate relative`)} style="mask-image: linear-gradient(to left, transparent, black 10%); -webkit-mask-image: linear-gradient(to left, transparent, black 10%);">${escape_html(tab.title)}</span></span> `);
3375
- if (closable) {
3376
- $$renderer.push("<!--[0-->");
3377
- $$renderer.push(`<span role="button" tabindex="0" class="i-solar:close-circle-line-duotone" aria-label="Close tab"></span>`);
3378
- } else $$renderer.push("<!--[-1-->");
3379
- $$renderer.push(`<!--]--></button>`);
3380
- bind_props($$props, { selected });
3381
- });
3382
- }
3383
- function Panel($$renderer, $$props) {
3384
- let { direction, children, size } = $$props;
3385
- $$renderer.push(`<div${attr_class(`flex flex-${stringify(direction)} w-full h-full`)}${attr_style("", { "flex-basis": size ? `${size}%` : void 0 })}>`);
3386
- children($$renderer);
3387
- $$renderer.push(`<!----></div>`);
3388
- }
3389
- function MonacoEditor($$renderer, $$props) {
3390
- $$renderer.component(($$renderer) => {
3391
- let { tab = void 0 } = $$props;
3392
- let editor;
3393
- onDestroy(() => {
3394
- editor?.dispose();
3395
- });
3396
- $$renderer.push(`<div class="editor svelte-99n508"></div>`);
3397
- bind_props($$props, { tab });
3398
- });
3399
- }
3400
- function ComponentValueEditor($$renderer, $$props) {
3401
- $$renderer.component(($$renderer) => {
3402
- let { component } = $$props;
3403
- $$renderer.push(`<div class="mb-1"><button class="w-full flex cursor-pointer items-center gap-1 bg-neutral-800 px-2 py-1 font-semibold text-neutral-300 text-sm"><span aria-hidden="true"${attr_class(`${stringify("i-solar-alt-arrow-down-bold")} w-4 text-center select-none text-neutral-400 hover:text-neutral-200`)}></span> ${escape_html(component.type)}</button> `);
3404
- {
3405
- $$renderer.push("<!--[0-->");
3406
- $$renderer.push(`<div class="my-2"><!--[-->`);
3407
- const each_array = ensure_array_like(Object.entries(component.values));
3408
- for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3409
- let [key, value] = each_array[$$index];
3410
- $$renderer.push(`<div class="grid grid-cols-[140px_1fr] m-2 mb-1 items-center gap-2"><div class="text-neutral-200 text-sm">${escape_html(key)}</div> `);
3411
- if (typeof value === "string") {
3412
- $$renderer.push("<!--[0-->");
3413
- $$renderer.push(`<input class="input rounded-sm bg-neutral-800 px-2 py-0.5" type="text"${attr("value", value)}/>`);
3414
- } else if (typeof value === "number") {
3415
- $$renderer.push("<!--[1-->");
3416
- $$renderer.push(`<input class="input w-28 rounded-sm bg-neutral-800 px-2 py-0.5 svelte-1g082om" type="number" step="0.01"${attr("value", value)}/>`);
3417
- } else if (typeof value === "boolean") {
3418
- $$renderer.push("<!--[2-->");
3419
- $$renderer.push(`<label class="flex items-center gap-2"><input type="checkbox"${attr("checked", value, true)}/></label>`);
3420
- } else if (typeof value === "object" && value !== null) {
3421
- $$renderer.push("<!--[3-->");
3422
- $$renderer.push(`<div class="flex gap-2">`);
3423
- if ("x" in value) {
3424
- $$renderer.push("<!--[0-->");
3425
- $$renderer.push(`<div><span class="mr-1 text-red-300">x</span> <input class="input w-24 rounded-sm bg-neutral-800 px-2 py-0.5 svelte-1g082om" type="number"${attr("value", value.x)}/></div>`);
3426
- } else $$renderer.push("<!--[-1-->");
3427
- $$renderer.push(`<!--]--> `);
3428
- if ("y" in value) {
3429
- $$renderer.push("<!--[0-->");
3430
- $$renderer.push(`<div><span class="mr-1 text-green-300">y</span> <input class="input w-24 rounded-sm bg-neutral-800 px-2 py-0.5 svelte-1g082om" type="number"${attr("value", value.y)}/></div>`);
3431
- } else $$renderer.push("<!--[-1-->");
3432
- $$renderer.push(`<!--]--> `);
3433
- if ("z" in value) {
3434
- $$renderer.push("<!--[0-->");
3435
- $$renderer.push(`<div><span class="mr-1 text-blue-300">z</span> <input class="input w-24 rounded-sm bg-neutral-800 px-2 py-0.5 svelte-1g082om" type="number"${attr("value", value.z)}/></div>`);
3436
- } else $$renderer.push("<!--[-1-->");
3437
- $$renderer.push(`<!--]--></div>`);
3438
- } else $$renderer.push("<!--[-1-->");
3439
- $$renderer.push(`<!--]--></div>`);
3440
- }
3441
- $$renderer.push(`<!--]--></div>`);
3442
- }
3443
- $$renderer.push(`<!--]--></div>`);
3444
- });
3445
- }
3446
- var components = [
3447
- {
3448
- type: "Transform3D",
3449
- values: {
3450
- Position: {
3451
- x: 0,
3452
- y: 5,
3453
- z: -10
3454
- },
3455
- Rotation: {
3456
- x: 0,
3457
- y: 0,
3458
- z: 0
3459
- },
3460
- Scale: {
3461
- x: 1,
3462
- y: 1,
3463
- z: 1
3464
- }
3465
- }
3466
- },
3467
- {
3468
- type: "PhysicsBody2D",
3469
- values: {
3470
- Velocity: {
3471
- x: 2,
3472
- y: 2
3473
- },
3474
- Acceleration: {
3475
- x: 0,
3476
- y: 0
3477
- },
3478
- Mass: 25,
3479
- IsKinematic: false
3480
- }
3481
- },
3482
- {
3483
- type: "Camera2D",
3484
- values: {
3485
- Zoom: 1,
3486
- Offset: {
3487
- x: 15,
3488
- y: 30
3489
- },
3490
- Rotation: {
3491
- x: 0,
3492
- y: 0,
3493
- z: -45
3494
- }
3495
- }
3496
- },
3497
- {
3498
- type: "Health",
3499
- values: {
3500
- Current: 75,
3501
- Max: 100
3502
- }
3503
- },
3504
- {
3505
- type: "InputState",
3506
- values: {
3507
- Move: {
3508
- x: 1,
3509
- y: 1
3510
- },
3511
- Look: {
3512
- x: .2,
3513
- y: 0
3514
- },
3515
- Jump: true,
3516
- Fire: false
3517
- }
3518
- }
3519
- ];
3520
- function ComponentsInspectorWidget($$renderer) {
3521
- $$renderer.push(`<div class="h-full w-full overflow-y-scroll bg-neutral-900 py-1 text-md"><!--[-->`);
3522
- const each_array = ensure_array_like(components);
3523
- for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3524
- let component = each_array[$$index];
3525
- ComponentValueEditor($$renderer, { component });
3526
- }
3527
- $$renderer.push(`<!--]--> <div class="mx-4 my-4 flex justify-center"><button class="h-10 w-full cursor-pointer rounded-md bg-neutral-800 font-semibold hover:bg-neutral-700">Add component</button></div></div>`);
3528
- }
3529
- var workingFileStore = writable("");
3530
- var ContentBrowserPath = writable([]);
3531
- function ContentBrowserWidget($$renderer, $$props) {
3532
- $$renderer.component(($$renderer) => {
3533
- var $$store_subs;
3534
- $$renderer.push(`<div class="h-full w-full flex gap-1 bg-neutral-800 p-1"><div class="w-1/5 flex flex-col rounded-l-md rounded-r-sm bg-neutral-900 p-1">`);
3535
- $$renderer.push("<!--[-1-->");
3536
- $$renderer.push(`<!--]--></div> <div class="h-full w-4/5 flex flex-col"><div class="h-fit flex items-center px-1 pb-2 pt-1"><!--[-->`);
3537
- const each_array_1 = ensure_array_like(["Content", ...store_get($$store_subs ??= {}, "$ContentBrowserPath", ContentBrowserPath)]);
3538
- for (let index = 0, $$length = each_array_1.length; index < $$length; index++) {
3539
- let folder = each_array_1[index];
3540
- $$renderer.push(`<button class="cursor-pointer rounded-lg px-2 py-1 text-xs hover:bg-neutral-700">${escape_html(folder)}</button> `);
3541
- if (index < store_get($$store_subs ??= {}, "$ContentBrowserPath", ContentBrowserPath).length) {
3542
- $$renderer.push("<!--[0-->");
3543
- $$renderer.push(`<span class="i-solar-alt-arrow-right-linear mx-2 my-auto font-bold text-sm"></span>`);
3544
- } else $$renderer.push("<!--[-1-->");
3545
- $$renderer.push(`<!--]-->`);
3546
- }
3547
- $$renderer.push(`<!--]--></div> <div class="h-full w-full flex gap-2 rounded-l-sm rounded-r-md bg-neutral-900 p-2 flex-wrap overflow-y-scroll">`);
3548
- $$renderer.push("<!--[-1-->");
3549
- $$renderer.push(`<!--]--></div></div></div>`);
3550
- if ($$store_subs) unsubscribe_stores($$store_subs);
3551
- });
3552
- }
3553
- function EntityItem($$renderer, $$props) {
3554
- $$renderer.component(($$renderer) => {
3555
- let { item, deepness = 0, select, selected = void 0 } = $$props;
3556
- let open = true;
3557
- let $$settled = true;
3558
- let $$inner_renderer;
3559
- function $$render_inner($$renderer) {
3560
- $$renderer.push(`<button${attr_class(`${stringify(selected.find((s) => s === item.id) ? "bg-neutral-700" : "hover:bg-neutral-800")} cursor-pointer py-3 flex items-center h-5 text-sm text-neutral-200 gap-1`)}${attr_style(`padding-left: ${deepness * 8}px`)}>`);
3561
- if (item.type === "folder") {
3562
- $$renderer.push("<!--[0-->");
3563
- $$renderer.push(`<span aria-hidden="true"${attr_class(`${stringify("i-solar-alt-arrow-down-bold")} w-4 text-center select-none text-neutral-400 hover:text-neutral-200`)}></span> <span class="i-ic-baseline-folder"></span>`);
3564
- } else {
3565
- $$renderer.push("<!--[-1-->");
3566
- $$renderer.push(`<span class="i-ic-baseline-token ml-3"></span>`);
3567
- }
3568
- $$renderer.push(`<!--]--> <span>${escape_html(item.name)}</span></button> `);
3569
- if (item.type === "folder" && open) {
3570
- $$renderer.push("<!--[0-->");
3571
- $$renderer.push(`<!--[-->`);
3572
- const each_array = ensure_array_like(item.children);
3573
- for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3574
- let children = each_array[$$index];
3575
- EntityItem($$renderer, {
3576
- item: children,
3577
- deepness: deepness + 1,
3578
- select,
3579
- get selected() {
3580
- return selected;
3581
- },
3582
- set selected($$value) {
3583
- selected = $$value;
3584
- $$settled = false;
3585
- }
3586
- });
3587
- }
3588
- $$renderer.push(`<!--]-->`);
3589
- } else $$renderer.push("<!--[-1-->");
3590
- $$renderer.push(`<!--]-->`);
3591
- }
3592
- do {
3593
- $$settled = true;
3594
- $$inner_renderer = $$renderer.copy();
3595
- $$render_inner($$inner_renderer);
3596
- } while (!$$settled);
3597
- $$renderer.subsume($$inner_renderer);
3598
- bind_props($$props, { selected });
3599
- });
3600
- }
3601
- function EntitiesTreeWidget($$renderer) {
3602
- let entities = [{
3603
- id: "map",
3604
- name: "Map",
3605
- type: "folder",
3606
- children: [{
3607
- id: "floor",
3608
- name: "Floor",
3609
- type: "entity"
3610
- }, {
3611
- id: "building",
3612
- name: "Building",
3613
- type: "entity"
3614
- }]
3615
- }, {
3616
- id: "mobs",
3617
- name: "Mobs",
3618
- type: "folder",
3619
- children: [{
3620
- id: "zombies",
3621
- name: "Zombies",
3622
- type: "folder",
3623
- children: [{
3624
- id: "zombie1",
3625
- name: "Zombie 1",
3626
- type: "entity"
3627
- }, {
3628
- id: "zombie2",
3629
- name: "Zombie 2",
3630
- type: "entity"
3631
- }]
3632
- }]
3633
- }];
3634
- let selected = [];
3635
- let $$settled = true;
3636
- let $$inner_renderer;
3637
- function $$render_inner($$renderer) {
3638
- $$renderer.push(`<div class="h-full w-full flex flex-col bg-neutral-800"><div class="flex justify-between p-2"><input class="h-7 rounded-md bg-black p-2 text-xs outline outline-1 outline-neutral-700" placeholder="Search entity"/> <button class="w-fit flex cursor-pointer items-center gap-1 rounded-md bg-neutral-700 px-2 py-1 text-neutral-200 text-sm text-xs hover:bg-neutral-600"><span class="i-ic-baseline-add"></span> Add Entity</button></div> <div class="h-full flex flex-col bg-neutral-900 p-1"><!--[-->`);
3639
- const each_array = ensure_array_like(entities);
3640
- for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3641
- let entity = each_array[$$index];
3642
- EntityItem($$renderer, {
3643
- item: entity,
3644
- select: (id) => selected = [id],
3645
- get selected() {
3646
- return selected;
3647
- },
3648
- set selected($$value) {
3649
- selected = $$value;
3650
- $$settled = false;
3651
- }
3652
- });
3653
- }
3654
- $$renderer.push(`<!--]--></div></div>`);
3655
- }
3656
- do {
3657
- $$settled = true;
3658
- $$inner_renderer = $$renderer.copy();
3659
- $$render_inner($$inner_renderer);
3660
- } while (!$$settled);
3661
- $$renderer.subsume($$inner_renderer);
3662
- }
3663
- var exampleLogs = [
3664
- {
3665
- id: 1,
3666
- time: "09:58:02.011",
3667
- level: "info",
3668
- source: "NanoForge",
3669
- message: "Starting NanoForge Editor v0.6.0 (Web)"
3670
- },
3671
- {
3672
- id: 2,
3673
- time: "09:58:02.028",
3674
- level: "info",
3675
- source: "Runtime",
3676
- message: "Browser runtime detected: Chrome 121 (WASM + WebGPU)"
3677
- },
3678
- {
3679
- id: 3,
3680
- time: "09:58:02.061",
3681
- level: "info",
3682
- source: "Memory",
3683
- message: "Heap initialized (256 MB)"
3684
- },
3685
- {
3686
- id: 4,
3687
- time: "09:58:02.114",
3688
- level: "info",
3689
- source: "Project",
3690
- message: "Opening project 'JumpOut'"
3691
- },
3692
- {
3693
- id: 5,
3694
- time: "09:58:02.147",
3695
- level: "info",
3696
- source: "Project",
3697
- message: "Project config loaded"
3698
- },
3699
- {
3700
- id: 6,
3701
- time: "09:58:02.201",
3702
- level: "info",
3703
- source: "ECS",
3704
- message: "Creating ECS World"
3705
- },
3706
- {
3707
- id: 7,
3708
- time: "09:58:02.224",
3709
- level: "info",
3710
- source: "ECS",
3711
- message: "Registered 14 components"
3712
- },
3713
- {
3714
- id: 8,
3715
- time: "09:58:02.242",
3716
- level: "info",
3717
- source: "ECS",
3718
- message: "Archetype cache initialized"
3719
- },
3720
- {
3721
- id: 9,
3722
- time: "09:58:02.267",
3723
- level: "info",
3724
- source: "Component",
3725
- message: "Component registered: Transform"
3726
- },
3727
- {
3728
- id: 10,
3729
- time: "09:58:02.268",
3730
- level: "info",
3731
- source: "Component",
3732
- message: "Component registered: Velocity"
3733
- },
3734
- {
3735
- id: 11,
3736
- time: "09:58:02.270",
3737
- level: "info",
3738
- source: "Component",
3739
- message: "Component registered: Sprite"
3740
- },
3741
- {
3742
- id: 12,
3743
- time: "09:58:02.273",
3744
- level: "info",
3745
- source: "Component",
3746
- message: "Component registered: Collider"
3747
- },
3748
- {
3749
- id: 13,
3750
- time: "09:58:02.312",
3751
- level: "info",
3752
- source: "System",
3753
- message: "System loaded: TransformSystem"
3754
- },
3755
- {
3756
- id: 14,
3757
- time: "09:58:02.325",
3758
- level: "info",
3759
- source: "System",
3760
- message: "System loaded: PhysicsSystem"
3761
- },
3762
- {
3763
- id: 15,
3764
- time: "09:58:02.339",
3765
- level: "info",
3766
- source: "System",
3767
- message: "System loaded: RenderSystem"
3768
- },
3769
- {
3770
- id: 16,
3771
- time: "09:58:02.354",
3772
- level: "info",
3773
- source: "System",
3774
- message: "System loaded: InputSystem"
3775
- },
3776
- {
3777
- id: 17,
3778
- time: "09:58:02.389",
3779
- level: "info",
3780
- source: "Scheduler",
3781
- message: "ECS scheduler initialized (fixed update: 60Hz)"
3782
- },
3783
- {
3784
- id: 18,
3785
- time: "09:58:02.401",
3786
- level: "warning",
3787
- source: "Scheduler",
3788
- message: "System 'PhysicsSystem' exceeds frame budget (3.2ms)"
3789
- },
3790
- {
3791
- id: 19,
3792
- time: "09:58:02.447",
3793
- level: "info",
3794
- source: "Assets",
3795
- message: "Importing assets"
3796
- },
3797
- {
3798
- id: 20,
3799
- time: "09:58:02.491",
3800
- level: "info",
3801
- source: "Assets",
3802
- message: "Texture loaded: ship.png (512x512)"
3803
- },
3804
- {
3805
- id: 21,
3806
- time: "09:58:02.522",
3807
- level: "info",
3808
- source: "Assets",
3809
- message: "Shader compiled: sprite.wgsl"
3810
- },
3811
- {
3812
- id: 22,
3813
- time: "09:58:02.581",
3814
- level: "info",
3815
- source: "Scene",
3816
- message: "Spawning entities"
3817
- },
3818
- {
3819
- id: 23,
3820
- time: "09:58:02.602",
3821
- level: "info",
3822
- source: "ECS",
3823
- message: "Entity created: id=42 (Transform, Velocity, Sprite)"
3824
- },
3825
- {
3826
- id: 24,
3827
- time: "09:58:02.618",
3828
- level: "info",
3829
- source: "ECS",
3830
- message: "Entity created: id=43 (Transform, Collider)"
3831
- },
3832
- {
3833
- id: 25,
3834
- time: "09:58:02.689",
3835
- level: "info",
3836
- source: "Runtime",
3837
- message: "Entering Play Mode"
3838
- },
3839
- {
3840
- id: 26,
3841
- time: "09:58:03.012",
3842
- level: "info",
3843
- source: "Runtime",
3844
- message: "Frame time: 16.4ms (61 FPS)"
3845
- },
3846
- {
3847
- id: 27,
3848
- time: "09:58:03.219",
3849
- level: "warning",
3850
- source: "PhysicsSystem",
3851
- message: "Entity 43 has Collider but no Rigidbody"
3852
- },
3853
- {
3854
- id: 28,
3855
- time: "09:58:03.401",
3856
- level: "error",
3857
- source: "RenderSystem",
3858
- message: "Failed to bind texture 'asteroid.png' (not loaded)"
3859
- },
3860
- {
3861
- id: 29,
3862
- time: "09:58:03.402",
3863
- level: "error",
3864
- source: "Runtime",
3865
- message: "Frame aborted due to previous error"
3866
- },
3867
- {
3868
- id: 30,
3869
- time: "09:58:03.435",
3870
- level: "info",
3871
- source: "Editor",
3872
- message: "Play Mode paused"
3873
- }
3874
- ];
3875
- function OutputLogWidget($$renderer, $$props) {
3876
- $$renderer.component(($$renderer) => {
3877
- let filteredLogs;
3878
- let search = "";
3879
- let logs = exampleLogs;
3880
- const levelStyles = {
3881
- info: "text-neutral-200",
3882
- warning: "text-yellow-400",
3883
- error: "text-red-400"
3884
- };
3885
- $: filteredLogs = logs.filter((log) => log.message.toLowerCase().includes(search.toLowerCase()) || log.source?.toLowerCase().includes(search.toLowerCase()));
3886
- $$renderer.push(`<div class="m-2 h-full w-full flex flex-col gap-2 overflow-hidden bg-neutral-800 py-2 text-md"><div class="flex"><input${attr("value", search)} placeholder="Search Log" class="w-full border border-neutral-700 rounded-md bg-neutral-900 px-2 py-1 placeholder-neutral-500 text-sm focus:outline-none focus:ring-1 focus:ring-blue-500"/></div> <div class="h-full w-full overflow-y-auto rounded-md bg-black px-2 py-1 font-mono text-sm"><!--[-->`);
3887
- const each_array = ensure_array_like(filteredLogs);
3888
- for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
3889
- let log = each_array[$$index];
3890
- $$renderer.push(`<div${attr_class(`flex gap-2 py-0.5 ${levelStyles[log.level]}`)}><span class="shrink-0 text-neutral-500">[${escape_html(log.time)}]</span> `);
3891
- if (log.source) {
3892
- $$renderer.push("<!--[0-->");
3893
- $$renderer.push(`<span class="shrink-0 text-blue-400">[${escape_html(log.source)}]</span>`);
3894
- } else $$renderer.push("<!--[-1-->");
3895
- $$renderer.push(`<!--]--> <span class="whitespace-pre-wrap break-words">${escape_html(log.message)}</span></div>`);
3896
- }
3897
- $$renderer.push(`<!--]--> `);
3898
- if (filteredLogs.length === 0) {
3899
- $$renderer.push("<!--[0-->");
3900
- $$renderer.push(`<div class="py-2 italic text-neutral-600">No logs matching your search</div>`);
3901
- } else $$renderer.push("<!--[-1-->");
3902
- $$renderer.push(`<!--]--></div></div>`);
3903
- });
3904
- }
3905
- var play_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kb9Lw0AcxV9TRSkVh2YQcchQnSyCijjWKhShQqgVWnUwufQXNGlJUlwcBdeCgz8Wqw4uzro6uAqC4A8Q/wBxUnSREr+XFFrEeHDch3f3HnfvAKFZYbrVEwd0wzbTyYSUza1Kfa8IIgIREwgpzKrNyXIKvuPrHgG+3sV4lv+5P8eAlrcYEJCI46xm2sQbxDObdo3zPrHISopGfE48btIFiR+5rnr8xrnossAzRTOTnicWiaViF6tdzEqmTjxNHNV0g/KFrMca5y3OeqXO2vfkLwznjZVlrtMcQRKLWIIMCSrqKKMCGzFaDVIspGk/4eMfdv0yuVRylcHIsYAqdCiuH/wPfndrFaYmvaRwAuh9cZyPUaBvF2g1HOf72HFaJ0DwGbgyOv5qE5j9JL3R0aJHwOA2cHHd0dQ94HIHGHqqKabiSkGaQqEAvJ/RN+WAyC0QWvN6a+/j9AHIUFepG+DgEBgrUva6z7v7u3v790y7vx+aSHK2T/EGbAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAAd0SU1FB+oDExQyKyTktngAAANnSURBVHja7Z2xaxNRHMd/d2lJqzdUDNWhVLeAU5sigkgvFWczuLodori4uKkIgktUUJTSUjrVsQ7xH7hERCjSXlEQMioBLUTscK0NMXlOJ6FGTC53ud977/sZC727vk9+7/oZ+koEAAAADJm8V1y7tP3kHlYiWoy+v8N1xOEvpQyTWvkVA8s5bCFdZHSSGbWofuEZxAxFyH9kdDJrTZN39j7EhMCM46Ke/6UvgaDPCTmzcVd82v8a6gZHU2nam1/EtEQ5IS0K/2HfazWIXEdkN+5gYpLasrpR3f9G5Dqi8OH5JJadgZCA0vftnXTlOqaFixAiokb7F5HriKl3tyGGg5CAWuMHkesI2yuuQwUDIQGV3eqVVPkapoWLECKilmgTuY7IvL0lIIQR9aZP5Doi9/6BgBBGbPmftax9k/0Tuo6w3twUEMIIX6PaN2V62D+1/1Hd2jdlfOhSXd3aN2V9cFVr35T9B1Ct9k1VPlmq1L6p0rirUPtKCTlc+3MS1r6SQgI2Jax9pYXIWPt6CJGo9rUR8nftv5iEEFa17+2MVW4ICGHEQbvJrva1FsKx9iGEWe1DCLPahxBmtQ8hzGofQpjVPoQwq30IYVb7EMKs9iGEWe1DSMS1n/eKaxDCiPJu9eogtQ8hMdY+hDBjPMQLH0Ji5Ge7iQmRHQiBEAAhCTFmjkIIq4q3lwwIYUDKMIkWVkMduAMhEZOfyL4c5HS9ESxhNEylj1Ht/GOjPOB1ICSCF/eBvWTU8FtW8hQysyfCvLgxIRGTPXKSquceGqUYrg0hfWCl0uTPLxrVGO8BIb2ysGr4KPXkmbNOhW4KTEiEBIdCbw75vhDSpbJb+RWjntD9sWV1YE9kXyV9hj0mpKOyKwyeRWshaXOEGvZyZJWNLWvAym7Yy+yOQNduQuKsbAhhVtkQwqyy8Q5hVtmYEGaVDSHMKhtbFrPKxoQwq2ythXCsbG23rEJmhmVlazch3CtbGyGyVLYeQiSqbKXfITkJK1vJCQkqe4v0hI0QFSpbmS1LlcqWfkJUq2xphaha2VJuWZePz5xWtbKlmpCgsl9jzQcXMh7ir0kDgn9wX8Va90TvW0eYw1Q0DDuW75CcNQ0ZsU9ID1MSVDaWdVhC/iElqGwsZ5J17RXXL3qPnmIlAAAAAB78BsDqe7QsFQEyAAAAAElFTkSuQmCC";
3906
- var stop_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kb9Lw0AcxV9TRSkVh2YQcchQnSyCijjWKhShQqgVWnUwufQXNGlJUlwcBdeCgz8Wqw4uzro6uAqC4A8Q/wBxUnSREr+XFFrEeHDch3f3HnfvAKFZYbrVEwd0wzbTyYSUza1Kfa8IIgIREwgpzKrNyXIKvuPrHgG+3sV4lv+5P8eAlrcYEJCI46xm2sQbxDObdo3zPrHISopGfE48btIFiR+5rnr8xrnossAzRTOTnicWiaViF6tdzEqmTjxNHNV0g/KFrMca5y3OeqXO2vfkLwznjZVlrtMcQRKLWIIMCSrqKKMCGzFaDVIspGk/4eMfdv0yuVRylcHIsYAqdCiuH/wPfndrFaYmvaRwAuh9cZyPUaBvF2g1HOf72HFaJ0DwGbgyOv5qE5j9JL3R0aJHwOA2cHHd0dQ94HIHGHqqKabiSkGaQqEAvJ/RN+WAyC0QWvN6a+/j9AHIUFepG+DgEBgrUva6z7v7u3v790y7vx+aSHK2T/EGbAAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAK3AAACtwBC/OaewAAAAd0SU1FB+oDExUCOH7eq2IAAAIBSURBVHja7d09SgNBHIbxd/wIgoWCjY12WkXYXQRJp+kt9BDpxCZFGitvIaKH8ADaSSBEQavcIkVgiYS/RRAUFHdmdzTo86tDAu+TWdhqJAAAAAAAMDtcVV9kFxf76vdv9fwsjUb/Y73lZalel7LswLVadzMRxM7PTTc30svL//5rLy5Kh4dyZ2fu14LY3p5pPOY5816tJtftBu86FxTi+nrd0pQYnxmPZWlqdnW18WMnxNLUWL7AuA8PLvoJsUaDGBG38gpi7bYpz1m6qDyXdTpeUbyOlGWZyTggXubn5Xo9V/kJscvLOjECTCbT7Sp/ZD0+PrFuII/tigcZDBg2lMd2xYMMhwwbymO74kF4CSz1shj1TR3xEIQgIAhBQBCCgCAEAUEIAoKAIAQBQQgCghAEBCEICAKCEAQEIQgIQhAQhCAgCAhCEBCEICAIQUAQgoAgIAhBQBCCgCAEAUEIAoKAIAQBQQgCghAEBCHIVxYWWCtUrRYhyOoqw4ZaWYkQZGuLYUNtb0cIkiQHLBsoSXaKftTvQpfdXdNkwsA+Yl3oIklqNhnYl+dm3reIWaPBPVRFLS3J3d+7qEEkrs0rPO5PXJsnSTo52WTub5yergVFLPObXL1azWOq/Al5q9ntOh0d8RYvTS8nPj4uFaP0CflwWri++45/JQAAAAAAf80rJ0OCu8BvVLsAAAAASUVORK5CYII=";
3907
- writable(false);
3908
- function ScreenViewWidget($$renderer, $$props) {
3909
- $$renderer.component(($$renderer) => {
3910
- var $$store_subs;
3911
- $$renderer.push(`<div class="h-full w-full bg-neutral-800 flex flex-col"><div class="py-2 px-2 h-16 flex justify-center"><div class="bg-neutral-600 rounded-md p-1"><button aria-label="Play"${attr_class(`h-fit ${stringify("cursor-pointer hover:bg-neutral-700")} rounded-md p-2`)}><img${attr("src", play_default)}${attr_class(`h-fit w-5 ${stringify("")}`)}/></button> <button aria-label="Stop"${attr_class(`h-fit ${stringify("")} rounded-md p-2`)}><img${attr("src", stop_default)}${attr_class(`h-fit w-5 ${stringify("filter grayscale brightness-300")}`)} alt=""/></button></div></div> <div class="h-full w-full bg-black mb-8"><iframe title="game-screen" src="http://localhost:3000/"${attr_class(`w-full h-full max-w-full max-h-full object-contain ${stringify("hidden")}`)} allowfullscreen=""></iframe></div></div>`);
3912
- if ($$store_subs) unsubscribe_stores($$store_subs);
3913
- });
3914
- }
3915
- var widgetsTypes = [
3916
- {
3917
- id: "content-browser",
3918
- component: ContentBrowserWidget
3919
- },
3920
- {
3921
- id: "screen-view",
3922
- component: ScreenViewWidget
3923
- },
3924
- {
3925
- id: "entities-tree",
3926
- component: EntitiesTreeWidget
3927
- },
3928
- {
3929
- id: "components-inspector",
3930
- component: ComponentsInspectorWidget
3931
- },
3932
- {
3933
- id: "code-editor",
3934
- component: MonacoEditor
3935
- },
3936
- {
3937
- id: "output-log",
3938
- component: OutputLogWidget
3939
- }
3940
- ];
3941
- function Widget($$renderer, $$props) {
3942
- $$renderer.component(($$renderer) => {
3943
- let { size, id, tab = void 0 } = $$props;
3944
- const widgetsMap = Object.fromEntries(widgetsTypes.map((w) => [w.id, w.component]));
3945
- let WidgetComponent = derived(() => id ? widgetsMap[id] : null);
3946
- $$renderer.push(`<div class="h-full w-full flex items-center justify-center overflow-hidden border border-neutral-600 rounded-md bg-neutral-800 text-white"${attr("data-widget-id", id)}${attr_style("", { "flex-basis": size ? `${size}%` : "100%" })}>`);
3947
- if (WidgetComponent()) {
3948
- $$renderer.push("<!--[0-->");
3949
- if (WidgetComponent()) {
3950
- $$renderer.push("<!--[-->");
3951
- WidgetComponent()($$renderer, { tab });
3952
- $$renderer.push("<!--]-->");
3953
- } else {
3954
- $$renderer.push("<!--[!-->");
3955
- $$renderer.push("<!--]-->");
3956
- }
3957
- } else {
3958
- $$renderer.push("<!--[-1-->");
3959
- $$renderer.push(`<span class="text-sm">${escape_html(id || "Widget")}</span>`);
3960
- }
3961
- $$renderer.push(`<!--]--></div>`);
3962
- bind_props($$props, { tab });
3963
- });
3964
- }
3965
- function WidgetResizeBar($$renderer, $$props) {
3966
- $$renderer.component(($$renderer) => {
3967
- let { direction, onResize, onDragStart, onDragEnd } = $$props;
3968
- const isHorizontal = direction === "row";
3969
- $$renderer.push(`<button${attr_class("border-0 bg-neutral-900 p-0 transition-colors duration-150 hover:bg-neutral-800 focus:bg-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-400", void 0, {
3970
- "w-1": isHorizontal,
3971
- "h-full": isHorizontal,
3972
- "h-1": !isHorizontal,
3973
- "w-full": !isHorizontal,
3974
- "cursor-col-resize": isHorizontal,
3975
- "cursor-row-resize": !isHorizontal,
3976
- "bg-blue-500": false
3977
- })}${attr("aria-label", isHorizontal ? "Resize columns" : "Resize rows")}${attr("title", isHorizontal ? "Drag to resize columns, or use arrow keys" : "Drag to resize rows, or use arrow keys")}><span class="sr-only">${escape_html(isHorizontal ? "Column resizer" : "Row resizer")}</span></button>`);
3978
- });
3979
- }
3980
- function isWidget(item) {
3981
- return item.type === "widget";
3982
- }
3983
- function isPanel(item) {
3984
- return item.type === "panel";
3985
- }
3986
- function cloneLayout(layout) {
3987
- if (isWidget(layout)) return { ...layout };
3988
- return {
3989
- ...layout,
3990
- children: layout.children.map(cloneLayout)
3991
- };
3992
- }
3993
- function Layout($$renderer, $$props) {
3994
- $$renderer.component(($$renderer) => {
3995
- let { layout, onLayoutChange, path = [], tab = void 0 } = $$props;
3996
- let dragStartSizes = /* @__PURE__ */ new Map();
3997
- function getDragKey(childIndex, side) {
3998
- return `${path.join(",")}-${childIndex}-${side}`;
3999
- }
4000
- function handleResize(childIndex, delta) {
4001
- if (!isPanel(layout) || !onLayoutChange) return;
4002
- const leftChild = layout.children[childIndex];
4003
- const rightChild = layout.children[childIndex + 1];
4004
- if (!leftChild || !rightChild) return;
4005
- const leftKey = getDragKey(childIndex, "left");
4006
- const rightKey = getDragKey(childIndex, "right");
4007
- const leftInitialSize = dragStartSizes.get(leftKey) ?? leftChild.size ?? 50;
4008
- const rightInitialSize = dragStartSizes.get(rightKey) ?? rightChild.size ?? 50;
4009
- const newLayout = { ...layout };
4010
- newLayout.children = [...layout.children];
4011
- const newLeftSize = Math.max(5, Math.min(95, leftInitialSize + delta));
4012
- const newRightSize = Math.max(5, Math.min(95, rightInitialSize - delta));
4013
- const totalSize = newLeftSize + newRightSize;
4014
- const leftRatio = newLeftSize / totalSize;
4015
- const rightRatio = newRightSize / totalSize;
4016
- const targetTotal = leftInitialSize + rightInitialSize;
4017
- newLayout.children[childIndex] = {
4018
- ...leftChild,
4019
- size: leftRatio * targetTotal
4020
- };
4021
- newLayout.children[childIndex + 1] = {
4022
- ...rightChild,
4023
- size: rightRatio * targetTotal
4024
- };
4025
- onLayoutChange(newLayout);
4026
- }
4027
- function handleChildLayoutChange(childIndex) {
4028
- return (newChildLayout) => {
4029
- if (!isPanel(layout) || !onLayoutChange) return;
4030
- const newLayout = { ...layout };
4031
- newLayout.children = [...layout.children];
4032
- newLayout.children[childIndex] = newChildLayout;
4033
- onLayoutChange(newLayout);
4034
- };
4035
- }
4036
- function handleDragStart(childIndex) {
4037
- if (!isPanel(layout)) return;
4038
- const leftChild = layout.children[childIndex];
4039
- const rightChild = layout.children[childIndex + 1];
4040
- if (!leftChild || !rightChild) return;
4041
- const leftKey = getDragKey(childIndex, "left");
4042
- const rightKey = getDragKey(childIndex, "right");
4043
- dragStartSizes.set(leftKey, leftChild.size ?? 50);
4044
- dragStartSizes.set(rightKey, rightChild.size ?? 50);
4045
- }
4046
- function handleDragEnd(childIndex) {
4047
- const leftKey = getDragKey(childIndex, "left");
4048
- const rightKey = getDragKey(childIndex, "right");
4049
- dragStartSizes.delete(leftKey);
4050
- dragStartSizes.delete(rightKey);
4051
- }
4052
- let $$settled = true;
4053
- let $$inner_renderer;
4054
- function $$render_inner($$renderer) {
4055
- if (isWidget(layout)) {
4056
- $$renderer.push("<!--[0-->");
4057
- Widget($$renderer, {
4058
- size: layout.size,
4059
- id: layout.id,
4060
- get tab() {
4061
- return tab;
4062
- },
4063
- set tab($$value) {
4064
- tab = $$value;
4065
- $$settled = false;
4066
- }
4067
- });
4068
- } else if (isPanel(layout)) {
4069
- $$renderer.push("<!--[1-->");
4070
- Panel($$renderer, {
4071
- direction: layout.direction,
4072
- size: layout.size,
4073
- children: ($$renderer) => {
4074
- $$renderer.push(`<!--[-->`);
4075
- const each_array = ensure_array_like(layout.children);
4076
- for (let index = 0, $$length = each_array.length; index < $$length; index++) {
4077
- let child = each_array[index];
4078
- Layout($$renderer, {
4079
- layout: child,
4080
- onLayoutChange: handleChildLayoutChange(index),
4081
- path: [...path, index],
4082
- get tab() {
4083
- return tab;
4084
- },
4085
- set tab($$value) {
4086
- tab = $$value;
4087
- $$settled = false;
4088
- }
4089
- });
4090
- $$renderer.push(`<!----> `);
4091
- if (index < layout.children.length - 1) {
4092
- $$renderer.push("<!--[0-->");
4093
- WidgetResizeBar($$renderer, {
4094
- direction: layout.direction,
4095
- onResize: (delta) => handleResize(index, delta),
4096
- onDragStart: () => handleDragStart(index),
4097
- onDragEnd: () => handleDragEnd(index)
4098
- });
4099
- } else $$renderer.push("<!--[-1-->");
4100
- $$renderer.push(`<!--]-->`);
4101
- }
4102
- $$renderer.push(`<!--]-->`);
4103
- },
4104
- $$slots: { default: true }
4105
- });
4106
- } else $$renderer.push("<!--[-1-->");
4107
- $$renderer.push(`<!--]-->`);
4108
- }
4109
- do {
4110
- $$settled = true;
4111
- $$inner_renderer = $$renderer.copy();
4112
- $$render_inner($$inner_renderer);
4113
- } while (!$$settled);
4114
- $$renderer.subsume($$inner_renderer);
4115
- bind_props($$props, { tab });
4116
- });
4117
- }
4118
- function CodeEditor($$renderer, $$props) {
4119
- $$renderer.component(($$renderer) => {
4120
- let { tab = void 0 } = $$props;
4121
- let layout = {
4122
- type: "panel",
4123
- direction: "col",
4124
- size: 70,
4125
- children: [{
4126
- type: "widget",
4127
- size: 70,
4128
- id: "code-editor"
4129
- }, {
4130
- type: "widget",
4131
- size: 30,
4132
- id: "output-log"
4133
- }]
4134
- };
4135
- function handleLayoutChange(newLayout) {
4136
- layout = cloneLayout(newLayout);
4137
- }
4138
- let $$settled = true;
4139
- let $$inner_renderer;
4140
- function $$render_inner($$renderer) {
4141
- $$renderer.push(`<div class="h-full w-full" data-layout-container="">`);
4142
- Layout($$renderer, {
4143
- layout,
4144
- onLayoutChange: handleLayoutChange,
4145
- get tab() {
4146
- return tab;
4147
- },
4148
- set tab($$value) {
4149
- tab = $$value;
4150
- $$settled = false;
4151
- }
4152
- });
4153
- $$renderer.push(`<!----></div>`);
4154
- }
4155
- do {
4156
- $$settled = true;
4157
- $$inner_renderer = $$renderer.copy();
4158
- $$render_inner($$inner_renderer);
4159
- } while (!$$settled);
4160
- $$renderer.subsume($$inner_renderer);
4161
- bind_props($$props, { tab });
4162
- });
4163
- }
4164
- function MainTab($$renderer, $$props) {
4165
- $$renderer.component(($$renderer) => {
4166
- let { tab = void 0 } = $$props;
4167
- let layout = {
4168
- type: "panel",
4169
- direction: "row",
4170
- children: [{
4171
- type: "panel",
4172
- direction: "col",
4173
- size: 70,
4174
- children: [{
4175
- type: "panel",
4176
- direction: "row",
4177
- size: 70,
4178
- children: [{
4179
- type: "widget",
4180
- size: 30,
4181
- id: "entities-tree"
4182
- }, {
4183
- type: "widget",
4184
- size: 70,
4185
- id: "screen-view"
4186
- }]
4187
- }, {
4188
- type: "widget",
4189
- size: 30,
4190
- id: "content-browser"
4191
- }]
4192
- }, {
4193
- type: "widget",
4194
- size: 30,
4195
- id: "components-inspector"
4196
- }]
4197
- };
4198
- function handleLayoutChange(newLayout) {
4199
- layout = cloneLayout(newLayout);
4200
- }
4201
- $$renderer.push(`<div class="h-full w-full" data-layout-container="">`);
4202
- Layout($$renderer, {
4203
- layout,
4204
- onLayoutChange: handleLayoutChange
4205
- });
4206
- $$renderer.push(`<!----></div>`);
4207
- bind_props($$props, { tab });
4208
- });
4209
- }
4210
- var tabsStore = writable([{
4211
- type: [
4212
- {
4213
- name: "main",
4214
- icon: "i-material-icon-theme-huff",
4215
- component: MainTab
4216
- },
4217
- {
4218
- name: "ts",
4219
- icon: "i-material-icon-theme-typescript",
4220
- component: CodeEditor
4221
- },
4222
- {
4223
- name: "3d",
4224
- icon: "i-material-icon-theme-3d",
4225
- component: MainTab
4226
- },
4227
- {
4228
- name: "song",
4229
- icon: "i-material-icon-theme-lyric",
4230
- component: MainTab
4231
- }
4232
- ][0],
4233
- title: "Game"
4234
- }]);
4235
- var tabSelectedStore = writable(0);
4236
- function TabBar($$renderer, $$props) {
4237
- $$renderer.component(($$renderer) => {
4238
- var $$store_subs;
4239
- let tabs = derived(() => store_get($$store_subs ??= {}, "$tabsStore", tabsStore));
4240
- $$renderer.push(`<div class="w-full flex gap-1"><!--[-->`);
4241
- const each_array = ensure_array_like(tabs());
4242
- for (let index = 0, $$length = each_array.length; index < $$length; index++) {
4243
- let tab = each_array[index];
4244
- Tab($$renderer, {
4245
- tab,
4246
- selected: store_get($$store_subs ??= {}, "$tabSelectedStore", tabSelectedStore) === index,
4247
- closable: tab.type.name !== "main",
4248
- onSelect: () => {
4249
- tabSelectedStore.set(index);
4250
- workingFileStore.set(tabs()[index].filePath || "");
4251
- },
4252
- onClose: () => tabsStore.update((tabs) => tabs.splice(index, 1))
4253
- });
4254
- }
4255
- $$renderer.push(`<!--]--></div>`);
4256
- if ($$store_subs) unsubscribe_stores($$store_subs);
4257
- });
4258
- }
4259
- function _page($$renderer, $$props) {
4260
- $$renderer.component(($$renderer) => {
4261
- var $$store_subs;
4262
- const Component = derived(() => store_get($$store_subs ??= {}, "$tabsStore", tabsStore)[store_get($$store_subs ??= {}, "$tabSelectedStore", tabSelectedStore)].type.component);
4263
- let tab = derived(() => store_get($$store_subs ??= {}, "$tabsStore", tabsStore)[store_get($$store_subs ??= {}, "$tabSelectedStore", tabSelectedStore)]);
4264
- let $$settled = true;
4265
- let $$inner_renderer;
4266
- function $$render_inner($$renderer) {
4267
- $$renderer.push(`<div class="h-screen flex flex-col gap-1"><header class="h-16 flex bg-neutral-900"><div class="h-full w-full flex"><a${attr("href", resolve("/"))} class="h-full px-3 pb-1 pt-2"><img${attr("src", logo_default)} alt="Logo" class="h-full rounded-full"/></a> <div class="h-full w-full flex flex-col justify-between">`);
4268
- MenuBar($$renderer, {});
4269
- $$renderer.push(`<!----> `);
4270
- TabBar($$renderer, {});
4271
- $$renderer.push(`<!----></div></div> <div class="h-full flex items-center py-2 gap-2"><button aria-label="push" class="flex cursor-pointer items-center justify-between gap-2 rounded-md px-3 py-1 font-medium text-sm bg-none outline-none hover:font-semibold"><span class="i-ic-baseline-file-upload"></span></button> <button class="w-42 flex cursor-pointer items-center justify-between gap-2 rounded-md px-4 py-2 font-medium text-sm outline-2 outline-neutral-700 outline-solid hover:outline-3 hover:font-semibold"><img class="h-7 w-7 rounded-sm" src="https://i1.sndcdn.com/artworks-mwgT5qK6AvkAzuNM-DcYxOA-t500x500.jpg" alt="game cover"/> <span class="w-full font-semibold">Jump Out</span></button> <button aria-label="profile" class="i-solar-user-circle-bold mx-4 h-12 w-12 cursor-pointer"></button></div></header> <main class="h-full min-h-0 w-full flex-1 bg-neutral-900 p-2">`);
4272
- if (Component()) {
4273
- $$renderer.push("<!--[-->");
4274
- Component()($$renderer, {
4275
- get tab() {
4276
- return tab();
4277
- },
4278
- set tab($$value) {
4279
- tab($$value);
4280
- $$settled = false;
4281
- }
4282
- });
4283
- $$renderer.push("<!--]-->");
4284
- } else {
4285
- $$renderer.push("<!--[!-->");
4286
- $$renderer.push("<!--]-->");
4287
- }
4288
- $$renderer.push(`</main></div>`);
4289
- }
4290
- do {
4291
- $$settled = true;
4292
- $$inner_renderer = $$renderer.copy();
4293
- $$render_inner($$inner_renderer);
4294
- } while (!$$settled);
4295
- $$renderer.subsume($$inner_renderer);
4296
- if ($$store_subs) unsubscribe_stores($$store_subs);
4297
- });
4298
- }
4299
- //#endregion
4300
- export { _page as default };
4301
-
4302
- //# sourceMappingURL=_page.svelte-paWD_HcG.js.map