file-viewer3 1.0.8 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +160 -0
- package/README.en.md +390 -0
- package/README.md +306 -89
- package/dist/components/3MFLoader.js +527 -0
- package/dist/components/AMFLoader.js +188 -0
- package/dist/components/ArchiveViewer.js +526 -0
- package/dist/components/AudioViewer.js +66 -0
- package/dist/components/CadViewer.js +9040 -0
- package/dist/components/CodeViewer.js +151 -0
- package/dist/components/ColladaLoader.js +2282 -0
- package/dist/components/DrawingViewer.js +295 -0
- package/dist/components/EdaViewer.js +630 -0
- package/dist/components/EmailViewer.js +276 -0
- package/dist/components/EpubViewer.js +172 -0
- package/dist/components/FBXLoader.js +1574 -0
- package/dist/components/GLTFLoader.js +1383 -0
- package/dist/components/ImageViewer.js +1516 -1895
- package/dist/components/KMZLoader.js +45 -0
- package/dist/components/MarkdownViewer.js +1456 -1557
- package/dist/components/ModelViewer.js +797 -0
- package/dist/components/OBJLoader.js +287 -0
- package/dist/components/OfdViewer.js +133 -0
- package/dist/components/PCDLoader.js +141 -0
- package/dist/components/PLYLoader.js +305 -0
- package/dist/components/PdfView.js +27662 -21655
- package/dist/components/PptxRender.js +11170 -21118
- package/dist/components/STLLoader.js +83 -0
- package/dist/components/TDSLoader.js +228 -0
- package/dist/components/TypstViewer.js +1697 -0
- package/dist/components/USDLoader.js +2526 -0
- package/dist/components/UmdViewer.js +1873 -0
- package/dist/components/VRMLLoader.js +6422 -0
- package/dist/components/VTKLoader.js +337 -0
- package/dist/components/XYZLoader.js +30 -0
- package/dist/components/XlsxTable.js +7871 -69873
- package/dist/components/__vite-browser-external.js +7 -0
- package/dist/components/_plugin-vue_export-helper.js +8 -0
- package/dist/components/ar-SA-G6X2FPQ2.js +523 -0
- package/dist/components/arc.js +79 -0
- package/dist/components/architecture-7EHR7CIX.js +3 -0
- package/dist/components/architectureDiagram-3BPJPVTR.js +4096 -0
- package/dist/components/archive.js +24 -0
- package/dist/components/asyncToGenerator.js +29 -0
- package/dist/components/audio.js +19 -0
- package/dist/components/az-AZ-76LH7QW2.js +523 -0
- package/dist/components/bash.js +169 -0
- package/dist/components/bg-BG-XCXSNQG7.js +523 -0
- package/dist/components/blockDiagram-GPEHLZMM.js +3357 -0
- package/dist/components/bn-BD-2XOGV67Q.js +523 -0
- package/dist/components/c4Diagram-AAUBKEIU.js +2957 -0
- package/dist/components/ca-ES-6MX7JW3Y.js +523 -0
- package/dist/components/cad.js +23 -0
- package/dist/components/cfb.js +1174 -0
- package/dist/components/channel.js +5 -0
- package/dist/components/chunk-2J33WTMH.js +26 -0
- package/dist/components/chunk-3OPIFGDE.js +4167 -0
- package/dist/components/chunk-4BX2VUAB.js +19 -0
- package/dist/components/chunk-55IACEB6.js +9 -0
- package/dist/components/chunk-5ZQYHXKU.js +669 -0
- package/dist/components/chunk-6U3AYISY.js +624 -0
- package/dist/components/chunk-727SXJPM.js +3356 -0
- package/dist/components/chunk-AGHRB4JF.js +324 -0
- package/dist/components/chunk-AQP2D5EJ.js +2055 -0
- package/dist/components/chunk-BSJP7CBP.js +83 -0
- package/dist/components/chunk-CSCIHK7Q.js +3500 -0
- package/dist/components/chunk-EIO257PC.js +1836 -0
- package/dist/components/chunk-FMBD7UC4.js +5 -0
- package/dist/components/chunk-K2UTITRG.js +17627 -0
- package/dist/components/chunk-KSCS5N6A.js +572 -0
- package/dist/components/chunk-L5ZTLDWV.js +40 -0
- package/dist/components/chunk-LZXEDZCA.js +60 -0
- package/dist/components/chunk-ND2GUHAM.js +61 -0
- package/dist/components/chunk-NNHCCRGN.js +20425 -0
- package/dist/components/chunk-NZK2D7GU.js +68 -0
- package/dist/components/chunk-O5CBEL6O.js +1894 -0
- package/dist/components/chunk-QZHKN3VN.js +12 -0
- package/dist/components/chunk-SRAX5OIU.js +22 -0
- package/dist/components/chunk-WU5MYG2G.js +14 -0
- package/dist/components/chunk-XPW4576I.js +1146 -0
- package/dist/components/chunk-Z3N5DIM6.js +59 -0
- package/dist/components/chunk-ZUYEQ4TG.js +22 -0
- package/dist/components/chunk.js +23 -0
- package/dist/components/classDiagram-4FO5ZUOK.js +29 -0
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +29 -0
- package/dist/components/compiler.js +2 -0
- package/dist/components/core.js +845 -0
- package/dist/components/cose-bilkent-S5V4N54A.js +2268 -0
- package/dist/components/cpp.js +225 -0
- package/dist/components/cs-CZ-2BRQDIVT.js +523 -0
- package/dist/components/csharp.js +260 -0
- package/dist/components/css.js +140 -0
- package/dist/components/cytoscape.esm.js +18114 -0
- package/dist/components/da-DK-5WZEPLOC.js +523 -0
- package/dist/components/dagre-BM42HDAG.js +325 -0
- package/dist/components/dagre.js +1936 -0
- package/dist/components/de-DE-XR44H4JA.js +523 -0
- package/dist/components/defaultLocale.js +201 -0
- package/dist/components/defineProperty.js +50 -0
- package/dist/components/diagram-2AECGRRQ.js +229 -0
- package/dist/components/diagram-5GNKFQAL.js +108 -0
- package/dist/components/diagram-KO2AKTUF.js +443 -0
- package/dist/components/diagram-LMA3HP47.js +139 -0
- package/dist/components/diagram-OG6HWLK6.js +541 -0
- package/dist/components/diff.js +39 -0
- package/dist/components/directory-open-01563666.js +26 -0
- package/dist/components/directory-open-4ed118d0.js +83 -0
- package/dist/components/dist.js +50 -0
- package/dist/components/dist2.js +3291 -0
- package/dist/components/dist3.js +1593 -0
- package/dist/components/documentSearch.js +378 -0
- package/dist/components/docx-preview.js +3113 -0
- package/dist/components/drawing.js +19 -0
- package/dist/components/ebook.js +16 -0
- package/dist/components/eda.js +20 -0
- package/dist/components/el-GR-BZB4AONW.js +523 -0
- package/dist/components/email.js +21 -0
- package/dist/components/en-B4ZKOASM.js +3 -0
- package/dist/components/erDiagram-TEJ5UH35.js +1719 -0
- package/dist/components/es-ES-U4NZUMDT.js +523 -0
- package/dist/components/eu-ES-A7QVB2H4.js +523 -0
- package/dist/components/eventmodeling-FCH6USID.js +3 -0
- package/dist/components/fa-IR-HGAKTJCU.js +523 -0
- package/dist/components/fflate.module.js +323 -0
- package/dist/components/fi-FI-Z5N7JZ37.js +523 -0
- package/dist/components/file-open-002ab408.js +38 -0
- package/dist/components/file-open-7c801643.js +24 -0
- package/dist/components/file-save-3189631c.js +40 -0
- package/dist/components/file-save-745eba88.js +36 -0
- package/dist/components/flowDiagram-I6XJVG4X.js +4181 -0
- package/dist/components/fr-FR-RHASNOE6.js +523 -0
- package/dist/components/ganttDiagram-6RSMTGT7.js +2182 -0
- package/dist/components/gitGraph-WXDBUCRP.js +3 -0
- package/dist/components/gitGraphDiagram-PVQCEYII.js +788 -0
- package/dist/components/gl-ES-HMX3MZ6V.js +523 -0
- package/dist/components/global-compiler.js +23 -0
- package/dist/components/global-renderer.js +23 -0
- package/dist/components/go.js +140 -0
- package/dist/components/graphlib.js +1267 -0
- package/dist/components/he-IL-6SHJWFNN.js +523 -0
- package/dist/components/hi-IN-IWLTKZ5I.js +523 -0
- package/dist/components/hu-HU-A5ZG7DT2.js +523 -0
- package/dist/components/id-ID-SAP4L64H.js +523 -0
- package/dist/components/image-GAAHSSAO.js +3 -0
- package/dist/components/image-blob-reduce.esm.js +1429 -0
- package/dist/components/image.js +17 -0
- package/dist/components/info-J43DQDTF.js +3 -0
- package/dist/components/infoDiagram-5YYISTIA.js +26 -0
- package/dist/components/ini.js +88 -0
- package/dist/components/init.js +15 -0
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +718 -0
- package/dist/components/it-IT-JPQ66NNP.js +523 -0
- package/dist/components/ja-JP-DBVTYXUO.js +523 -0
- package/dist/components/java.js +169 -0
- package/dist/components/javascript.js +436 -0
- package/dist/components/journeyDiagram-JHISSGLW.js +885 -0
- package/dist/components/json.js +36 -0
- package/dist/components/jszip.min.js +3033 -0
- package/dist/components/kaa-6HZHGXH3.js +523 -0
- package/dist/components/kab-KAB-ZGHBKWFO.js +523 -0
- package/dist/components/kanban-definition-UN3LZRKU.js +986 -0
- package/dist/components/katex.js +21979 -0
- package/dist/components/kk-KZ-P5N5QNE5.js +523 -0
- package/dist/components/km-KH-HSX4SM5Z.js +523 -0
- package/dist/components/ko-KR-MTYHY66A.js +523 -0
- package/dist/components/ku-TR-6OUDTVRD.js +523 -0
- package/dist/components/lib.js +4877 -0
- package/dist/components/libarchive.js +360 -0
- package/dist/components/linear.js +289 -0
- package/dist/components/lt-LT-XHIRWOB4.js +523 -0
- package/dist/components/lv-LV-5QDEKY6T.js +523 -0
- package/dist/components/markdown.js +181 -0
- package/dist/components/md.js +17 -0
- package/dist/components/mermaid-parser.core.js +328 -0
- package/dist/components/mindmap-definition-RKZ34NQL.js +1016 -0
- package/dist/components/model.js +21 -0
- package/dist/components/mp4.js +12 -0
- package/dist/components/mr-IN-CRQNXWMA.js +523 -0
- package/dist/components/my-MM-5M5IBNSE.js +523 -0
- package/dist/components/nb-NO-T6EIAALU.js +523 -0
- package/dist/components/nestedRender.js +158 -0
- package/dist/components/nl-NL-IS3SIHDZ.js +523 -0
- package/dist/components/nn-NO-6E72VCQL.js +523 -0
- package/dist/components/objectSpread2.js +29 -0
- package/dist/components/objectWithoutProperties.js +28 -0
- package/dist/components/oc-FR-POXYY2M6.js +523 -0
- package/dist/components/ofd.js +5261 -0
- package/dist/components/ofd2.js +16 -0
- package/dist/components/ordinal.js +65 -0
- package/dist/components/pa-IN-N4M65BXN.js +523 -0
- package/dist/components/packet-YPE3B663.js +3 -0
- package/dist/components/pdf.js +24 -0
- package/dist/components/percentages-BXMCSKIN.js +3 -0
- package/dist/components/php.js +294 -0
- package/dist/components/pica.js +1009 -0
- package/dist/components/pie-LRSECV5Y.js +3 -0
- package/dist/components/pie.js +47 -0
- package/dist/components/pieDiagram-4H26LBE5.js +130 -0
- package/dist/components/pl-PL-T2D74RX3.js +523 -0
- package/dist/components/postal-mime.js +3146 -0
- package/dist/components/pptx.js +15 -0
- package/dist/components/printLayout.js +42 -0
- package/dist/components/prod.js +21770 -0
- package/dist/components/pt-BR-5N22H2LF.js +523 -0
- package/dist/components/pt-PT-UZXXM6DQ.js +523 -0
- package/dist/components/python.js +238 -0
- package/dist/components/quadrantDiagram-W4KKPZXB.js +1988 -0
- package/dist/components/radar-GUYGQ44K.js +3 -0
- package/dist/components/renderer.js +2 -0
- package/dist/components/requirementDiagram-4Y6WPE33.js +2230 -0
- package/dist/components/ro-RO-JPDTUUEW.js +523 -0
- package/dist/components/rough.esm.js +1355 -0
- package/dist/components/roundRect.js +90 -0
- package/dist/components/ru-RU-B4JR7IUQ.js +523 -0
- package/dist/components/rust.js +169 -0
- package/dist/components/sankeyDiagram-5OEKKPKP.js +972 -0
- package/dist/components/sequenceDiagram-3UESZ5HK.js +4255 -0
- package/dist/components/shared.js +175 -0
- package/dist/components/shared2.js +4 -0
- package/dist/components/si-LK-N5RQ5JYF.js +523 -0
- package/dist/components/sk-SK-C5VTKIMK.js +523 -0
- package/dist/components/sl-SI-NN7IZMDC.js +523 -0
- package/dist/components/sourceLoading.js +134 -0
- package/dist/components/sql.js +118 -0
- package/dist/components/src.js +2664 -0
- package/dist/components/src2.js +10722 -0
- package/dist/components/stateDiagram-AJRCARHV.js +217 -0
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +27 -0
- package/dist/components/subset-shared.chunk.js +3 -0
- package/dist/components/subset-worker.chunk.js +21 -0
- package/dist/components/sv-SE-XGPEYMSR.js +523 -0
- package/dist/components/ta-IN-2NMHFXQM.js +523 -0
- package/dist/components/text.js +20 -0
- package/dist/components/th-TH-HPSO5L25.js +523 -0
- package/dist/components/three.module.js +13134 -0
- package/dist/components/time.js +910 -0
- package/dist/components/timeline-definition-PNZ67QCA.js +1084 -0
- package/dist/components/tr-TR-DEFEU3FU.js +523 -0
- package/dist/components/treeView-BLDUP644.js +3 -0
- package/dist/components/treemap-LRROVOQU.js +3 -0
- package/dist/components/typescript.js +521 -0
- package/dist/components/typst.js +25 -0
- package/dist/components/uk-UA-QMV73CPH.js +523 -0
- package/dist/components/umd.js +16 -0
- package/dist/components/use.js +422 -0
- package/dist/components/util.js +49 -0
- package/dist/components/vennDiagram-CIIHVFJN.js +1880 -0
- package/dist/components/vi-VN-M7AON7JQ.js +523 -0
- package/dist/components/viewerZoom.js +92 -0
- package/dist/components/wardley-L42UT6IY.js +3 -0
- package/dist/components/wardleyDiagram-YWT4CUSO.js +656 -0
- package/dist/components/wasm-pack-shim.js +1711 -0
- package/dist/components/wasm-pack-shim2.js +934 -0
- package/dist/components/wasm.js +97 -0
- package/dist/components/word.js +3055 -0
- package/dist/components/worker-ref.js +15 -20
- package/dist/components/xlsx.js +21 -0
- package/dist/components/xml.js +166 -0
- package/dist/components/xychartDiagram-2RQKCTM6.js +2015 -0
- package/dist/components/yaml.js +144 -0
- package/dist/components/zh-CN-LNUGB5OW.js +523 -0
- package/dist/components/zh-HK-E62DVLB3.js +523 -0
- package/dist/components/zh-TW-RAJ6MFWO.js +523 -0
- package/dist/file-viewer3.css +2 -0
- package/dist/index.mjs +3292 -5
- package/dist/src/App.vue.d.ts +3 -0
- package/dist/src/compare/CompareApp.vue.d.ts +3 -0
- package/dist/src/compare/main.d.ts +0 -0
- package/dist/src/compare/useSynchronizedScroll.d.ts +7 -0
- package/dist/src/components/HelloWorld.vue.d.ts +3 -0
- package/dist/src/components/utils.d.ts +4 -0
- package/dist/src/main.d.ts +0 -0
- package/dist/src/package/common/printCapability.d.ts +27 -0
- package/dist/src/package/common/printLayout.d.ts +16 -0
- package/dist/src/package/common/sourceLoading.d.ts +10 -0
- package/dist/src/package/common/type.d.ts +522 -8
- package/dist/src/package/common/worker-ref.d.ts +1 -1
- package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +74 -24
- package/dist/src/package/components/FileViewer/exportDocumentTemplate.d.ts +9 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +29 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerExport.d.ts +21 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +8 -0
- package/dist/src/package/components/FileViewer/hooks/useViewerZoom.d.ts +34 -0
- package/dist/src/package/components/FileViewer/index.d.ts +1 -1
- package/dist/src/package/components/FileViewer/util.d.ts +2 -1
- package/dist/src/package/index.d.ts +14 -4
- package/dist/src/package/use/documentLocation.d.ts +15 -0
- package/dist/src/package/use/documentSearch.d.ts +234 -0
- package/dist/src/package/use/index.d.ts +4 -0
- package/dist/src/package/use/loading.d.ts +33 -0
- package/dist/src/package/use/viewerZoom.d.ts +42 -0
- package/dist/src/package/use/worker.d.ts +2 -2
- package/dist/src/package/vendors/archive/ArchiveViewer.vue.d.ts +9 -0
- package/dist/src/package/vendors/archive/cache.d.ts +10 -0
- package/dist/src/package/vendors/archive/fallback.d.ts +9 -0
- package/dist/src/package/vendors/archive/index.d.ts +3 -0
- package/dist/src/package/vendors/archive/shared.d.ts +24 -0
- package/dist/src/package/vendors/audio/AudioViewer.vue.d.ts +7 -0
- package/dist/src/package/vendors/audio/index.d.ts +7 -0
- package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +9 -0
- package/dist/src/package/vendors/cad/index.d.ts +8 -0
- package/dist/src/package/vendors/drawing/DrawingViewer.vue.d.ts +15 -0
- package/dist/src/package/vendors/drawing/index.d.ts +7 -0
- package/dist/src/package/vendors/ebook/EpubViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/ebook/index.d.ts +7 -0
- package/dist/src/package/vendors/eda/EdaViewer.vue.d.ts +8 -0
- package/dist/src/package/vendors/eda/index.d.ts +2 -0
- package/dist/src/package/vendors/eda/parser.d.ts +77 -0
- package/dist/src/package/vendors/email/EmailViewer.vue.d.ts +10 -0
- package/dist/src/package/vendors/email/index.d.ts +2 -0
- package/dist/src/package/vendors/image/ImageViewer.vue.d.ts +6 -13
- package/dist/src/package/vendors/image/index.d.ts +1 -1
- package/dist/src/package/vendors/md/MarkdownViewer.vue.d.ts +6 -13
- package/dist/src/package/vendors/md/index.d.ts +1 -1
- package/dist/src/package/vendors/model/ModelViewer.vue.d.ts +8 -0
- package/dist/src/package/vendors/model/index.d.ts +3 -0
- package/dist/src/package/vendors/model/shared.d.ts +1 -0
- package/dist/src/package/vendors/nestedRender.d.ts +10 -0
- package/dist/src/package/vendors/ofd/OfdViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/ofd/index.d.ts +7 -0
- package/dist/src/package/vendors/pdf/PdfView.vue.d.ts +10 -13
- package/dist/src/package/vendors/pdf/index.d.ts +2 -1
- package/dist/src/package/vendors/pdf/worker/pdf.worker.d.ts +0 -0
- package/dist/src/package/vendors/pptx/PptxRender.vue.d.ts +9 -81
- package/dist/src/package/vendors/pptx/index.d.ts +1 -1
- package/dist/src/package/vendors/renders.d.ts +1 -1
- package/dist/src/package/vendors/text/CodeViewer.vue.d.ts +7 -13
- package/dist/src/package/vendors/text/index.d.ts +6 -2
- package/dist/src/package/vendors/typst/TypstViewer.vue.d.ts +15 -0
- package/dist/src/package/vendors/typst/index.d.ts +8 -0
- package/dist/src/package/vendors/umd/UmdViewer.vue.d.ts +6 -0
- package/dist/src/package/vendors/umd/index.d.ts +7 -0
- package/dist/src/package/vendors/umd/parser.d.ts +30 -0
- package/dist/src/package/vendors/word/doc.d.ts +5 -0
- package/dist/src/package/vendors/word/docx.d.ts +5 -0
- package/dist/src/package/vendors/word/docx.worker.d.ts +1 -0
- package/dist/src/package/vendors/word/index.d.ts +3 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.state.d.ts +80 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.view.d.ts +25 -0
- package/dist/src/package/vendors/xlsx/XlsxTable.vue.d.ts +6 -21
- package/dist/src/package/vendors/xlsx/index.d.ts +3 -2
- package/dist/src/package/vendors/xlsx/util.d.ts +0 -5
- package/dist/src/package/vendors/xlsx/worker/index.d.ts +4 -6
- package/dist/src/package/vendors/xlsx/worker/sheetjs/SheetJsModel.d.ts +73 -0
- package/dist/src/package/vendors/xlsx/worker/sheetjs/sheet.worker.d.ts +1 -0
- package/dist/style.css +1 -57
- package/dist/wasm/cad/dwfv-render.wasm +0 -0
- package/dist/wasm/cad/dwg-worker.js +24 -0
- package/dist/wasm/cad/libredwg-web.js +15 -0
- package/dist/wasm/cad/libredwg-web.wasm +0 -0
- package/package.json +118 -42
- package/.vscode/extensions.json +0 -3
- package/dist/components/_commonjs-dynamic-modules.js +0 -6
- package/dist/components/_commonjsHelpers.js +0 -36
- package/dist/components/docx-preview.min.js +0 -5287
- package/dist/components/index.js +0 -1717
- package/dist/favicon.ico +0 -0
- package/dist/index.umd.js +0 -436
- package/dist/src/package/vendors/docx/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/render.d.ts +0 -6
- package/dist/src/package/vendors/xlsx/worker/xls/SheetJsModel.d.ts +0 -36
- package/dist/src/package/vendors/xlsx/worker/xlsx/ExcelJsModel.d.ts +0 -39
- package/dist/src/package/vendors/xlsx/worker/xlsx/context.d.ts +0 -7
- package/dist/src/package/vendors/xlsx/worker/xlsx/index.d.ts +0 -4
- package/dist/src/package/vendors/xlsx/worker/xlsx/util.d.ts +0 -10
- package/dist/worker/pdf.worker.js +0 -66
- package/dist/worker/pptx.worker.js +0 -21
- package/dist/worker/sheet.worker.js +0 -38
- package/dist/worker/xlsx.worker.js +0 -65
- /package/dist/src/package/vendors/xlsx/worker/{xlsx → sheetjs}/color.d.ts +0 -0
- /package/dist/src/package/vendors/xlsx/worker/{xls → sheetjs}/index.d.ts +0 -0
|
@@ -0,0 +1,3033 @@
|
|
|
1
|
+
import { i as e, t } from "./chunk.js";
|
|
2
|
+
//#region node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js
|
|
3
|
+
var n = /* @__PURE__ */ t(((t, n) => {
|
|
4
|
+
(function(e) {
|
|
5
|
+
typeof t == "object" && n !== void 0 ? n.exports = e() : typeof define == "function" && define.amd ? define([], e) : (typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : this).JSZip = e();
|
|
6
|
+
})(function() {
|
|
7
|
+
return function t(n, r, i) {
|
|
8
|
+
function a(s, c) {
|
|
9
|
+
if (!r[s]) {
|
|
10
|
+
if (!n[s]) {
|
|
11
|
+
var l = typeof e == "function" && e;
|
|
12
|
+
if (!c && l) return l(s, !0);
|
|
13
|
+
if (o) return o(s, !0);
|
|
14
|
+
var u = /* @__PURE__ */ Error("Cannot find module '" + s + "'");
|
|
15
|
+
throw u.code = "MODULE_NOT_FOUND", u;
|
|
16
|
+
}
|
|
17
|
+
var d = r[s] = { exports: {} };
|
|
18
|
+
n[s][0].call(d.exports, function(e) {
|
|
19
|
+
var t = n[s][1][e];
|
|
20
|
+
return a(t || e);
|
|
21
|
+
}, d, d.exports, t, n, r, i);
|
|
22
|
+
}
|
|
23
|
+
return r[s].exports;
|
|
24
|
+
}
|
|
25
|
+
for (var o = typeof e == "function" && e, s = 0; s < i.length; s++) a(i[s]);
|
|
26
|
+
return a;
|
|
27
|
+
}({
|
|
28
|
+
1: [function(e, t, n) {
|
|
29
|
+
var r = e("./utils"), i = e("./support"), a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
30
|
+
n.encode = function(e) {
|
|
31
|
+
for (var t, n, i, o, s, c, l, u = [], d = 0, f = e.length, p = f, m = r.getTypeOf(e) !== "string"; d < e.length;) p = f - d, i = m ? (t = e[d++], n = d < f ? e[d++] : 0, d < f ? e[d++] : 0) : (t = e.charCodeAt(d++), n = d < f ? e.charCodeAt(d++) : 0, d < f ? e.charCodeAt(d++) : 0), o = t >> 2, s = (3 & t) << 4 | n >> 4, c = 1 < p ? (15 & n) << 2 | i >> 6 : 64, l = 2 < p ? 63 & i : 64, u.push(a.charAt(o) + a.charAt(s) + a.charAt(c) + a.charAt(l));
|
|
32
|
+
return u.join("");
|
|
33
|
+
}, n.decode = function(e) {
|
|
34
|
+
var t, n, r, o, s, c, l = 0, u = 0, d = "data:";
|
|
35
|
+
if (e.substr(0, d.length) === d) throw Error("Invalid base64 input, it looks like a data url.");
|
|
36
|
+
var f, p = 3 * (e = e.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
37
|
+
if (e.charAt(e.length - 1) === a.charAt(64) && p--, e.charAt(e.length - 2) === a.charAt(64) && p--, p % 1 != 0) throw Error("Invalid base64 input, bad content length.");
|
|
38
|
+
for (f = i.uint8array ? new Uint8Array(0 | p) : Array(0 | p); l < e.length;) t = a.indexOf(e.charAt(l++)) << 2 | (o = a.indexOf(e.charAt(l++))) >> 4, n = (15 & o) << 4 | (s = a.indexOf(e.charAt(l++))) >> 2, r = (3 & s) << 6 | (c = a.indexOf(e.charAt(l++))), f[u++] = t, s !== 64 && (f[u++] = n), c !== 64 && (f[u++] = r);
|
|
39
|
+
return f;
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
"./support": 30,
|
|
43
|
+
"./utils": 32
|
|
44
|
+
}],
|
|
45
|
+
2: [function(e, t, n) {
|
|
46
|
+
var r = e("./external"), i = e("./stream/DataWorker"), a = e("./stream/Crc32Probe"), o = e("./stream/DataLengthProbe");
|
|
47
|
+
function s(e, t, n, r, i) {
|
|
48
|
+
this.compressedSize = e, this.uncompressedSize = t, this.crc32 = n, this.compression = r, this.compressedContent = i;
|
|
49
|
+
}
|
|
50
|
+
s.prototype = {
|
|
51
|
+
getContentWorker: function() {
|
|
52
|
+
var e = new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")), t = this;
|
|
53
|
+
return e.on("end", function() {
|
|
54
|
+
if (this.streamInfo.data_length !== t.uncompressedSize) throw Error("Bug : uncompressed data size mismatch");
|
|
55
|
+
}), e;
|
|
56
|
+
},
|
|
57
|
+
getCompressedWorker: function() {
|
|
58
|
+
return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
59
|
+
}
|
|
60
|
+
}, s.createWorkerFrom = function(e, t, n) {
|
|
61
|
+
return e.pipe(new a()).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression", t);
|
|
62
|
+
}, t.exports = s;
|
|
63
|
+
}, {
|
|
64
|
+
"./external": 6,
|
|
65
|
+
"./stream/Crc32Probe": 25,
|
|
66
|
+
"./stream/DataLengthProbe": 26,
|
|
67
|
+
"./stream/DataWorker": 27
|
|
68
|
+
}],
|
|
69
|
+
3: [function(e, t, n) {
|
|
70
|
+
var r = e("./stream/GenericWorker");
|
|
71
|
+
n.STORE = {
|
|
72
|
+
magic: "\0\0",
|
|
73
|
+
compressWorker: function() {
|
|
74
|
+
return new r("STORE compression");
|
|
75
|
+
},
|
|
76
|
+
uncompressWorker: function() {
|
|
77
|
+
return new r("STORE decompression");
|
|
78
|
+
}
|
|
79
|
+
}, n.DEFLATE = e("./flate");
|
|
80
|
+
}, {
|
|
81
|
+
"./flate": 7,
|
|
82
|
+
"./stream/GenericWorker": 28
|
|
83
|
+
}],
|
|
84
|
+
4: [function(e, t, n) {
|
|
85
|
+
var r = e("./utils"), i = function() {
|
|
86
|
+
for (var e, t = [], n = 0; n < 256; n++) {
|
|
87
|
+
e = n;
|
|
88
|
+
for (var r = 0; r < 8; r++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
|
|
89
|
+
t[n] = e;
|
|
90
|
+
}
|
|
91
|
+
return t;
|
|
92
|
+
}();
|
|
93
|
+
t.exports = function(e, t) {
|
|
94
|
+
return e !== void 0 && e.length ? r.getTypeOf(e) === "string" ? function(e, t, n, r) {
|
|
95
|
+
var a = i, o = r + n;
|
|
96
|
+
e ^= -1;
|
|
97
|
+
for (var s = r; s < o; s++) e = e >>> 8 ^ a[255 & (e ^ t.charCodeAt(s))];
|
|
98
|
+
return -1 ^ e;
|
|
99
|
+
}(0 | t, e, e.length, 0) : function(e, t, n, r) {
|
|
100
|
+
var a = i, o = r + n;
|
|
101
|
+
e ^= -1;
|
|
102
|
+
for (var s = r; s < o; s++) e = e >>> 8 ^ a[255 & (e ^ t[s])];
|
|
103
|
+
return -1 ^ e;
|
|
104
|
+
}(0 | t, e, e.length, 0) : 0;
|
|
105
|
+
};
|
|
106
|
+
}, { "./utils": 32 }],
|
|
107
|
+
5: [function(e, t, n) {
|
|
108
|
+
n.base64 = !1, n.binary = !1, n.dir = !1, n.createFolders = !0, n.date = null, n.compression = null, n.compressionOptions = null, n.comment = null, n.unixPermissions = null, n.dosPermissions = null;
|
|
109
|
+
}, {}],
|
|
110
|
+
6: [function(e, t, n) {
|
|
111
|
+
var r = null;
|
|
112
|
+
r = typeof Promise < "u" ? Promise : e("lie"), t.exports = { Promise: r };
|
|
113
|
+
}, { lie: 37 }],
|
|
114
|
+
7: [function(e, t, n) {
|
|
115
|
+
var r = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", i = e("pako"), a = e("./utils"), o = e("./stream/GenericWorker"), s = r ? "uint8array" : "array";
|
|
116
|
+
function c(e, t) {
|
|
117
|
+
o.call(this, "FlateWorker/" + e), this._pako = null, this._pakoAction = e, this._pakoOptions = t, this.meta = {};
|
|
118
|
+
}
|
|
119
|
+
n.magic = "\b\0", a.inherits(c, o), c.prototype.processChunk = function(e) {
|
|
120
|
+
this.meta = e.meta, this._pako === null && this._createPako(), this._pako.push(a.transformTo(s, e.data), !1);
|
|
121
|
+
}, c.prototype.flush = function() {
|
|
122
|
+
o.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
|
|
123
|
+
}, c.prototype.cleanUp = function() {
|
|
124
|
+
o.prototype.cleanUp.call(this), this._pako = null;
|
|
125
|
+
}, c.prototype._createPako = function() {
|
|
126
|
+
this._pako = new i[this._pakoAction]({
|
|
127
|
+
raw: !0,
|
|
128
|
+
level: this._pakoOptions.level || -1
|
|
129
|
+
});
|
|
130
|
+
var e = this;
|
|
131
|
+
this._pako.onData = function(t) {
|
|
132
|
+
e.push({
|
|
133
|
+
data: t,
|
|
134
|
+
meta: e.meta
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
}, n.compressWorker = function(e) {
|
|
138
|
+
return new c("Deflate", e);
|
|
139
|
+
}, n.uncompressWorker = function() {
|
|
140
|
+
return new c("Inflate", {});
|
|
141
|
+
};
|
|
142
|
+
}, {
|
|
143
|
+
"./stream/GenericWorker": 28,
|
|
144
|
+
"./utils": 32,
|
|
145
|
+
pako: 38
|
|
146
|
+
}],
|
|
147
|
+
8: [function(e, t, n) {
|
|
148
|
+
function r(e, t) {
|
|
149
|
+
var n, r = "";
|
|
150
|
+
for (n = 0; n < t; n++) r += String.fromCharCode(255 & e), e >>>= 8;
|
|
151
|
+
return r;
|
|
152
|
+
}
|
|
153
|
+
function i(e, t, n, i, o, u) {
|
|
154
|
+
var d, f, p = e.file, m = e.compression, h = u !== s.utf8encode, g = a.transformTo("string", u(p.name)), _ = a.transformTo("string", s.utf8encode(p.name)), v = p.comment, y = a.transformTo("string", u(v)), b = a.transformTo("string", s.utf8encode(v)), x = _.length !== p.name.length, S = b.length !== v.length, C = "", w = "", T = "", E = p.dir, D = p.date, O = {
|
|
155
|
+
crc32: 0,
|
|
156
|
+
compressedSize: 0,
|
|
157
|
+
uncompressedSize: 0
|
|
158
|
+
};
|
|
159
|
+
t && !n || (O.crc32 = e.crc32, O.compressedSize = e.compressedSize, O.uncompressedSize = e.uncompressedSize);
|
|
160
|
+
var k = 0;
|
|
161
|
+
t && (k |= 8), h || !x && !S || (k |= 2048);
|
|
162
|
+
var A = 0, j = 0;
|
|
163
|
+
E && (A |= 16), o === "UNIX" ? (j = 798, A |= function(e, t) {
|
|
164
|
+
var n = e;
|
|
165
|
+
return e || (n = t ? 16893 : 33204), (65535 & n) << 16;
|
|
166
|
+
}(p.unixPermissions, E)) : (j = 20, A |= function(e) {
|
|
167
|
+
return 63 & (e || 0);
|
|
168
|
+
}(p.dosPermissions)), d = D.getUTCHours(), d <<= 6, d |= D.getUTCMinutes(), d <<= 5, d |= D.getUTCSeconds() / 2, f = D.getUTCFullYear() - 1980, f <<= 4, f |= D.getUTCMonth() + 1, f <<= 5, f |= D.getUTCDate(), x && (w = r(1, 1) + r(c(g), 4) + _, C += "up" + r(w.length, 2) + w), S && (T = r(1, 1) + r(c(y), 4) + b, C += "uc" + r(T.length, 2) + T);
|
|
169
|
+
var M = "";
|
|
170
|
+
return M += "\n\0", M += r(k, 2), M += m.magic, M += r(d, 2), M += r(f, 2), M += r(O.crc32, 4), M += r(O.compressedSize, 4), M += r(O.uncompressedSize, 4), M += r(g.length, 2), M += r(C.length, 2), {
|
|
171
|
+
fileRecord: l.LOCAL_FILE_HEADER + M + g + C,
|
|
172
|
+
dirRecord: l.CENTRAL_FILE_HEADER + r(j, 2) + M + r(y.length, 2) + "\0\0\0\0" + r(A, 4) + r(i, 4) + g + C + y
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
var a = e("../utils"), o = e("../stream/GenericWorker"), s = e("../utf8"), c = e("../crc32"), l = e("../signature");
|
|
176
|
+
function u(e, t, n, r) {
|
|
177
|
+
o.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t, this.zipPlatform = n, this.encodeFileName = r, this.streamFiles = e, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
178
|
+
}
|
|
179
|
+
a.inherits(u, o), u.prototype.push = function(e) {
|
|
180
|
+
var t = e.meta.percent || 0, n = this.entriesCount, r = this._sources.length;
|
|
181
|
+
this.accumulate ? this.contentBuffer.push(e) : (this.bytesWritten += e.data.length, o.prototype.push.call(this, {
|
|
182
|
+
data: e.data,
|
|
183
|
+
meta: {
|
|
184
|
+
currentFile: this.currentFile,
|
|
185
|
+
percent: n ? (t + 100 * (n - r - 1)) / n : 100
|
|
186
|
+
}
|
|
187
|
+
}));
|
|
188
|
+
}, u.prototype.openedSource = function(e) {
|
|
189
|
+
this.currentSourceOffset = this.bytesWritten, this.currentFile = e.file.name;
|
|
190
|
+
var t = this.streamFiles && !e.file.dir;
|
|
191
|
+
if (t) {
|
|
192
|
+
var n = i(e, t, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
193
|
+
this.push({
|
|
194
|
+
data: n.fileRecord,
|
|
195
|
+
meta: { percent: 0 }
|
|
196
|
+
});
|
|
197
|
+
} else this.accumulate = !0;
|
|
198
|
+
}, u.prototype.closedSource = function(e) {
|
|
199
|
+
this.accumulate = !1;
|
|
200
|
+
var t = this.streamFiles && !e.file.dir, n = i(e, t, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
201
|
+
if (this.dirRecords.push(n.dirRecord), t) this.push({
|
|
202
|
+
data: function(e) {
|
|
203
|
+
return l.DATA_DESCRIPTOR + r(e.crc32, 4) + r(e.compressedSize, 4) + r(e.uncompressedSize, 4);
|
|
204
|
+
}(e),
|
|
205
|
+
meta: { percent: 100 }
|
|
206
|
+
});
|
|
207
|
+
else for (this.push({
|
|
208
|
+
data: n.fileRecord,
|
|
209
|
+
meta: { percent: 0 }
|
|
210
|
+
}); this.contentBuffer.length;) this.push(this.contentBuffer.shift());
|
|
211
|
+
this.currentFile = null;
|
|
212
|
+
}, u.prototype.flush = function() {
|
|
213
|
+
for (var e = this.bytesWritten, t = 0; t < this.dirRecords.length; t++) this.push({
|
|
214
|
+
data: this.dirRecords[t],
|
|
215
|
+
meta: { percent: 100 }
|
|
216
|
+
});
|
|
217
|
+
var n = this.bytesWritten - e, i = function(e, t, n, i, o) {
|
|
218
|
+
var s = a.transformTo("string", o(i));
|
|
219
|
+
return l.CENTRAL_DIRECTORY_END + "\0\0\0\0" + r(e, 2) + r(e, 2) + r(t, 4) + r(n, 4) + r(s.length, 2) + s;
|
|
220
|
+
}(this.dirRecords.length, n, e, this.zipComment, this.encodeFileName);
|
|
221
|
+
this.push({
|
|
222
|
+
data: i,
|
|
223
|
+
meta: { percent: 100 }
|
|
224
|
+
});
|
|
225
|
+
}, u.prototype.prepareNextSource = function() {
|
|
226
|
+
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
227
|
+
}, u.prototype.registerPrevious = function(e) {
|
|
228
|
+
this._sources.push(e);
|
|
229
|
+
var t = this;
|
|
230
|
+
return e.on("data", function(e) {
|
|
231
|
+
t.processChunk(e);
|
|
232
|
+
}), e.on("end", function() {
|
|
233
|
+
t.closedSource(t.previous.streamInfo), t._sources.length ? t.prepareNextSource() : t.end();
|
|
234
|
+
}), e.on("error", function(e) {
|
|
235
|
+
t.error(e);
|
|
236
|
+
}), this;
|
|
237
|
+
}, u.prototype.resume = function() {
|
|
238
|
+
return !!o.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
239
|
+
}, u.prototype.error = function(e) {
|
|
240
|
+
var t = this._sources;
|
|
241
|
+
if (!o.prototype.error.call(this, e)) return !1;
|
|
242
|
+
for (var n = 0; n < t.length; n++) try {
|
|
243
|
+
t[n].error(e);
|
|
244
|
+
} catch (e) {}
|
|
245
|
+
return !0;
|
|
246
|
+
}, u.prototype.lock = function() {
|
|
247
|
+
o.prototype.lock.call(this);
|
|
248
|
+
for (var e = this._sources, t = 0; t < e.length; t++) e[t].lock();
|
|
249
|
+
}, t.exports = u;
|
|
250
|
+
}, {
|
|
251
|
+
"../crc32": 4,
|
|
252
|
+
"../signature": 23,
|
|
253
|
+
"../stream/GenericWorker": 28,
|
|
254
|
+
"../utf8": 31,
|
|
255
|
+
"../utils": 32
|
|
256
|
+
}],
|
|
257
|
+
9: [function(e, t, n) {
|
|
258
|
+
var r = e("../compressions"), i = e("./ZipFileWorker");
|
|
259
|
+
n.generateWorker = function(e, t, n) {
|
|
260
|
+
var a = new i(t.streamFiles, n, t.platform, t.encodeFileName), o = 0;
|
|
261
|
+
try {
|
|
262
|
+
e.forEach(function(e, n) {
|
|
263
|
+
o++;
|
|
264
|
+
var i = function(e, t) {
|
|
265
|
+
var n = e || t, i = r[n];
|
|
266
|
+
if (!i) throw Error(n + " is not a valid compression method !");
|
|
267
|
+
return i;
|
|
268
|
+
}(n.options.compression, t.compression), s = n.options.compressionOptions || t.compressionOptions || {}, c = n.dir, l = n.date;
|
|
269
|
+
n._compressWorker(i, s).withStreamInfo("file", {
|
|
270
|
+
name: e,
|
|
271
|
+
dir: c,
|
|
272
|
+
date: l,
|
|
273
|
+
comment: n.comment || "",
|
|
274
|
+
unixPermissions: n.unixPermissions,
|
|
275
|
+
dosPermissions: n.dosPermissions
|
|
276
|
+
}).pipe(a);
|
|
277
|
+
}), a.entriesCount = o;
|
|
278
|
+
} catch (e) {
|
|
279
|
+
a.error(e);
|
|
280
|
+
}
|
|
281
|
+
return a;
|
|
282
|
+
};
|
|
283
|
+
}, {
|
|
284
|
+
"../compressions": 3,
|
|
285
|
+
"./ZipFileWorker": 8
|
|
286
|
+
}],
|
|
287
|
+
10: [function(e, t, n) {
|
|
288
|
+
function r() {
|
|
289
|
+
if (!(this instanceof r)) return new r();
|
|
290
|
+
if (arguments.length) throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
291
|
+
this.files = Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
292
|
+
var e = new r();
|
|
293
|
+
for (var t in this) typeof this[t] != "function" && (e[t] = this[t]);
|
|
294
|
+
return e;
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
(r.prototype = e("./object")).loadAsync = e("./load"), r.support = e("./support"), r.defaults = e("./defaults"), r.version = "3.10.1", r.loadAsync = function(e, t) {
|
|
298
|
+
return new r().loadAsync(e, t);
|
|
299
|
+
}, r.external = e("./external"), t.exports = r;
|
|
300
|
+
}, {
|
|
301
|
+
"./defaults": 5,
|
|
302
|
+
"./external": 6,
|
|
303
|
+
"./load": 11,
|
|
304
|
+
"./object": 15,
|
|
305
|
+
"./support": 30
|
|
306
|
+
}],
|
|
307
|
+
11: [function(e, t, n) {
|
|
308
|
+
var r = e("./utils"), i = e("./external"), a = e("./utf8"), o = e("./zipEntries"), s = e("./stream/Crc32Probe"), c = e("./nodejsUtils");
|
|
309
|
+
function l(e) {
|
|
310
|
+
return new i.Promise(function(t, n) {
|
|
311
|
+
var r = e.decompressed.getContentWorker().pipe(new s());
|
|
312
|
+
r.on("error", function(e) {
|
|
313
|
+
n(e);
|
|
314
|
+
}).on("end", function() {
|
|
315
|
+
r.streamInfo.crc32 === e.decompressed.crc32 ? t() : n(/* @__PURE__ */ Error("Corrupted zip : CRC32 mismatch"));
|
|
316
|
+
}).resume();
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
t.exports = function(e, t) {
|
|
320
|
+
var n = this;
|
|
321
|
+
return t = r.extend(t || {}, {
|
|
322
|
+
base64: !1,
|
|
323
|
+
checkCRC32: !1,
|
|
324
|
+
optimizedBinaryString: !1,
|
|
325
|
+
createFolders: !1,
|
|
326
|
+
decodeFileName: a.utf8decode
|
|
327
|
+
}), c.isNode && c.isStream(e) ? i.Promise.reject(/* @__PURE__ */ Error("JSZip can't accept a stream when loading a zip file.")) : r.prepareContent("the loaded zip file", e, !0, t.optimizedBinaryString, t.base64).then(function(e) {
|
|
328
|
+
var n = new o(t);
|
|
329
|
+
return n.load(e), n;
|
|
330
|
+
}).then(function(e) {
|
|
331
|
+
var n = [i.Promise.resolve(e)], r = e.files;
|
|
332
|
+
if (t.checkCRC32) for (var a = 0; a < r.length; a++) n.push(l(r[a]));
|
|
333
|
+
return i.Promise.all(n);
|
|
334
|
+
}).then(function(e) {
|
|
335
|
+
for (var i = e.shift(), a = i.files, o = 0; o < a.length; o++) {
|
|
336
|
+
var s = a[o], c = s.fileNameStr, l = r.resolve(s.fileNameStr);
|
|
337
|
+
n.file(l, s.decompressed, {
|
|
338
|
+
binary: !0,
|
|
339
|
+
optimizedBinaryString: !0,
|
|
340
|
+
date: s.date,
|
|
341
|
+
dir: s.dir,
|
|
342
|
+
comment: s.fileCommentStr.length ? s.fileCommentStr : null,
|
|
343
|
+
unixPermissions: s.unixPermissions,
|
|
344
|
+
dosPermissions: s.dosPermissions,
|
|
345
|
+
createFolders: t.createFolders
|
|
346
|
+
}), s.dir || (n.file(l).unsafeOriginalName = c);
|
|
347
|
+
}
|
|
348
|
+
return i.zipComment.length && (n.comment = i.zipComment), n;
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
}, {
|
|
352
|
+
"./external": 6,
|
|
353
|
+
"./nodejsUtils": 14,
|
|
354
|
+
"./stream/Crc32Probe": 25,
|
|
355
|
+
"./utf8": 31,
|
|
356
|
+
"./utils": 32,
|
|
357
|
+
"./zipEntries": 33
|
|
358
|
+
}],
|
|
359
|
+
12: [function(e, t, n) {
|
|
360
|
+
var r = e("../utils"), i = e("../stream/GenericWorker");
|
|
361
|
+
function a(e, t) {
|
|
362
|
+
i.call(this, "Nodejs stream input adapter for " + e), this._upstreamEnded = !1, this._bindStream(t);
|
|
363
|
+
}
|
|
364
|
+
r.inherits(a, i), a.prototype._bindStream = function(e) {
|
|
365
|
+
var t = this;
|
|
366
|
+
(this._stream = e).pause(), e.on("data", function(e) {
|
|
367
|
+
t.push({
|
|
368
|
+
data: e,
|
|
369
|
+
meta: { percent: 0 }
|
|
370
|
+
});
|
|
371
|
+
}).on("error", function(e) {
|
|
372
|
+
t.isPaused ? this.generatedError = e : t.error(e);
|
|
373
|
+
}).on("end", function() {
|
|
374
|
+
t.isPaused ? t._upstreamEnded = !0 : t.end();
|
|
375
|
+
});
|
|
376
|
+
}, a.prototype.pause = function() {
|
|
377
|
+
return !!i.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
378
|
+
}, a.prototype.resume = function() {
|
|
379
|
+
return !!i.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
380
|
+
}, t.exports = a;
|
|
381
|
+
}, {
|
|
382
|
+
"../stream/GenericWorker": 28,
|
|
383
|
+
"../utils": 32
|
|
384
|
+
}],
|
|
385
|
+
13: [function(e, t, n) {
|
|
386
|
+
var r = e("readable-stream").Readable;
|
|
387
|
+
function i(e, t, n) {
|
|
388
|
+
r.call(this, t), this._helper = e;
|
|
389
|
+
var i = this;
|
|
390
|
+
e.on("data", function(e, t) {
|
|
391
|
+
i.push(e) || i._helper.pause(), n && n(t);
|
|
392
|
+
}).on("error", function(e) {
|
|
393
|
+
i.emit("error", e);
|
|
394
|
+
}).on("end", function() {
|
|
395
|
+
i.push(null);
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
e("../utils").inherits(i, r), i.prototype._read = function() {
|
|
399
|
+
this._helper.resume();
|
|
400
|
+
}, t.exports = i;
|
|
401
|
+
}, {
|
|
402
|
+
"../utils": 32,
|
|
403
|
+
"readable-stream": 16
|
|
404
|
+
}],
|
|
405
|
+
14: [function(e, t, n) {
|
|
406
|
+
t.exports = {
|
|
407
|
+
isNode: typeof Buffer < "u",
|
|
408
|
+
newBufferFrom: function(e, t) {
|
|
409
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from) return Buffer.from(e, t);
|
|
410
|
+
if (typeof e == "number") throw Error("The \"data\" argument must not be a number");
|
|
411
|
+
return new Buffer(e, t);
|
|
412
|
+
},
|
|
413
|
+
allocBuffer: function(e) {
|
|
414
|
+
if (Buffer.alloc) return Buffer.alloc(e);
|
|
415
|
+
var t = new Buffer(e);
|
|
416
|
+
return t.fill(0), t;
|
|
417
|
+
},
|
|
418
|
+
isBuffer: function(e) {
|
|
419
|
+
return Buffer.isBuffer(e);
|
|
420
|
+
},
|
|
421
|
+
isStream: function(e) {
|
|
422
|
+
return e && typeof e.on == "function" && typeof e.pause == "function" && typeof e.resume == "function";
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
}, {}],
|
|
426
|
+
15: [function(e, t, n) {
|
|
427
|
+
function r(e, t, n) {
|
|
428
|
+
var r, i = a.getTypeOf(t), s = a.extend(n || {}, c);
|
|
429
|
+
s.date = s.date || /* @__PURE__ */ new Date(), s.compression !== null && (s.compression = s.compression.toUpperCase()), typeof s.unixPermissions == "string" && (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 = h(e)), s.createFolders && (r = m(e)) && g.call(this, r, !0);
|
|
430
|
+
var d = i === "string" && !1 === s.binary && !1 === s.base64;
|
|
431
|
+
n && n.binary !== void 0 || (s.binary = !d), (t instanceof l && t.uncompressedSize === 0 || s.dir || !t || t.length === 0) && (s.base64 = !1, s.binary = !0, t = "", s.compression = "STORE", i = "string");
|
|
432
|
+
var _ = null;
|
|
433
|
+
_ = t instanceof l || t instanceof o ? t : f.isNode && f.isStream(t) ? new p(e, t) : a.prepareContent(e, t, s.binary, s.optimizedBinaryString, s.base64);
|
|
434
|
+
var v = new u(e, _, s);
|
|
435
|
+
this.files[e] = v;
|
|
436
|
+
}
|
|
437
|
+
var i = e("./utf8"), a = e("./utils"), o = e("./stream/GenericWorker"), s = e("./stream/StreamHelper"), c = e("./defaults"), l = e("./compressedObject"), u = e("./zipObject"), d = e("./generate"), f = e("./nodejsUtils"), p = e("./nodejs/NodejsStreamInputAdapter"), m = function(e) {
|
|
438
|
+
e.slice(-1) === "/" && (e = e.substring(0, e.length - 1));
|
|
439
|
+
var t = e.lastIndexOf("/");
|
|
440
|
+
return 0 < t ? e.substring(0, t) : "";
|
|
441
|
+
}, h = function(e) {
|
|
442
|
+
return e.slice(-1) !== "/" && (e += "/"), e;
|
|
443
|
+
}, g = function(e, t) {
|
|
444
|
+
return t = t === void 0 ? c.createFolders : t, e = h(e), this.files[e] || r.call(this, e, null, {
|
|
445
|
+
dir: !0,
|
|
446
|
+
createFolders: t
|
|
447
|
+
}), this.files[e];
|
|
448
|
+
};
|
|
449
|
+
function _(e) {
|
|
450
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
451
|
+
}
|
|
452
|
+
t.exports = {
|
|
453
|
+
load: function() {
|
|
454
|
+
throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
455
|
+
},
|
|
456
|
+
forEach: function(e) {
|
|
457
|
+
var t, n, r;
|
|
458
|
+
for (t in this.files) r = this.files[t], (n = t.slice(this.root.length, t.length)) && t.slice(0, this.root.length) === this.root && e(n, r);
|
|
459
|
+
},
|
|
460
|
+
filter: function(e) {
|
|
461
|
+
var t = [];
|
|
462
|
+
return this.forEach(function(n, r) {
|
|
463
|
+
e(n, r) && t.push(r);
|
|
464
|
+
}), t;
|
|
465
|
+
},
|
|
466
|
+
file: function(e, t, n) {
|
|
467
|
+
if (arguments.length !== 1) return e = this.root + e, r.call(this, e, t, n), this;
|
|
468
|
+
if (_(e)) {
|
|
469
|
+
var i = e;
|
|
470
|
+
return this.filter(function(e, t) {
|
|
471
|
+
return !t.dir && i.test(e);
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
var a = this.files[this.root + e];
|
|
475
|
+
return a && !a.dir ? a : null;
|
|
476
|
+
},
|
|
477
|
+
folder: function(e) {
|
|
478
|
+
if (!e) return this;
|
|
479
|
+
if (_(e)) return this.filter(function(t, n) {
|
|
480
|
+
return n.dir && e.test(t);
|
|
481
|
+
});
|
|
482
|
+
var t = this.root + e, n = g.call(this, t), r = this.clone();
|
|
483
|
+
return r.root = n.name, r;
|
|
484
|
+
},
|
|
485
|
+
remove: function(e) {
|
|
486
|
+
e = this.root + e;
|
|
487
|
+
var t = this.files[e];
|
|
488
|
+
if (t || (e.slice(-1) !== "/" && (e += "/"), t = this.files[e]), t && !t.dir) delete this.files[e];
|
|
489
|
+
else for (var n = this.filter(function(t, n) {
|
|
490
|
+
return n.name.slice(0, e.length) === e;
|
|
491
|
+
}), r = 0; r < n.length; r++) delete this.files[n[r].name];
|
|
492
|
+
return this;
|
|
493
|
+
},
|
|
494
|
+
generate: function() {
|
|
495
|
+
throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
496
|
+
},
|
|
497
|
+
generateInternalStream: function(e) {
|
|
498
|
+
var t, n = {};
|
|
499
|
+
try {
|
|
500
|
+
if ((n = a.extend(e || {}, {
|
|
501
|
+
streamFiles: !1,
|
|
502
|
+
compression: "STORE",
|
|
503
|
+
compressionOptions: null,
|
|
504
|
+
type: "",
|
|
505
|
+
platform: "DOS",
|
|
506
|
+
comment: null,
|
|
507
|
+
mimeType: "application/zip",
|
|
508
|
+
encodeFileName: i.utf8encode
|
|
509
|
+
})).type = n.type.toLowerCase(), n.compression = n.compression.toUpperCase(), n.type === "binarystring" && (n.type = "string"), !n.type) throw Error("No output type specified.");
|
|
510
|
+
a.checkSupport(n.type), n.platform !== "darwin" && n.platform !== "freebsd" && n.platform !== "linux" && n.platform !== "sunos" || (n.platform = "UNIX"), n.platform === "win32" && (n.platform = "DOS");
|
|
511
|
+
var r = n.comment || this.comment || "";
|
|
512
|
+
t = d.generateWorker(this, n, r);
|
|
513
|
+
} catch (e) {
|
|
514
|
+
(t = new o("error")).error(e);
|
|
515
|
+
}
|
|
516
|
+
return new s(t, n.type || "string", n.mimeType);
|
|
517
|
+
},
|
|
518
|
+
generateAsync: function(e, t) {
|
|
519
|
+
return this.generateInternalStream(e).accumulate(t);
|
|
520
|
+
},
|
|
521
|
+
generateNodeStream: function(e, t) {
|
|
522
|
+
return (e = e || {}).type || (e.type = "nodebuffer"), this.generateInternalStream(e).toNodejsStream(t);
|
|
523
|
+
}
|
|
524
|
+
};
|
|
525
|
+
}, {
|
|
526
|
+
"./compressedObject": 2,
|
|
527
|
+
"./defaults": 5,
|
|
528
|
+
"./generate": 9,
|
|
529
|
+
"./nodejs/NodejsStreamInputAdapter": 12,
|
|
530
|
+
"./nodejsUtils": 14,
|
|
531
|
+
"./stream/GenericWorker": 28,
|
|
532
|
+
"./stream/StreamHelper": 29,
|
|
533
|
+
"./utf8": 31,
|
|
534
|
+
"./utils": 32,
|
|
535
|
+
"./zipObject": 35
|
|
536
|
+
}],
|
|
537
|
+
16: [function(e, t, n) {
|
|
538
|
+
t.exports = e("stream");
|
|
539
|
+
}, { stream: void 0 }],
|
|
540
|
+
17: [function(e, t, n) {
|
|
541
|
+
var r = e("./DataReader");
|
|
542
|
+
function i(e) {
|
|
543
|
+
r.call(this, e);
|
|
544
|
+
for (var t = 0; t < this.data.length; t++) e[t] = 255 & e[t];
|
|
545
|
+
}
|
|
546
|
+
e("../utils").inherits(i, r), i.prototype.byteAt = function(e) {
|
|
547
|
+
return this.data[this.zero + e];
|
|
548
|
+
}, i.prototype.lastIndexOfSignature = function(e) {
|
|
549
|
+
for (var t = e.charCodeAt(0), n = e.charCodeAt(1), r = e.charCodeAt(2), i = e.charCodeAt(3), a = this.length - 4; 0 <= a; --a) if (this.data[a] === t && this.data[a + 1] === n && this.data[a + 2] === r && this.data[a + 3] === i) return a - this.zero;
|
|
550
|
+
return -1;
|
|
551
|
+
}, i.prototype.readAndCheckSignature = function(e) {
|
|
552
|
+
var t = e.charCodeAt(0), n = e.charCodeAt(1), r = e.charCodeAt(2), i = e.charCodeAt(3), a = this.readData(4);
|
|
553
|
+
return t === a[0] && n === a[1] && r === a[2] && i === a[3];
|
|
554
|
+
}, i.prototype.readData = function(e) {
|
|
555
|
+
if (this.checkOffset(e), e === 0) return [];
|
|
556
|
+
var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
|
|
557
|
+
return this.index += e, t;
|
|
558
|
+
}, t.exports = i;
|
|
559
|
+
}, {
|
|
560
|
+
"../utils": 32,
|
|
561
|
+
"./DataReader": 18
|
|
562
|
+
}],
|
|
563
|
+
18: [function(e, t, n) {
|
|
564
|
+
var r = e("../utils");
|
|
565
|
+
function i(e) {
|
|
566
|
+
this.data = e, this.length = e.length, this.index = 0, this.zero = 0;
|
|
567
|
+
}
|
|
568
|
+
i.prototype = {
|
|
569
|
+
checkOffset: function(e) {
|
|
570
|
+
this.checkIndex(this.index + e);
|
|
571
|
+
},
|
|
572
|
+
checkIndex: function(e) {
|
|
573
|
+
if (this.length < this.zero + e || e < 0) throw Error("End of data reached (data length = " + this.length + ", asked index = " + e + "). Corrupted zip ?");
|
|
574
|
+
},
|
|
575
|
+
setIndex: function(e) {
|
|
576
|
+
this.checkIndex(e), this.index = e;
|
|
577
|
+
},
|
|
578
|
+
skip: function(e) {
|
|
579
|
+
this.setIndex(this.index + e);
|
|
580
|
+
},
|
|
581
|
+
byteAt: function() {},
|
|
582
|
+
readInt: function(e) {
|
|
583
|
+
var t, n = 0;
|
|
584
|
+
for (this.checkOffset(e), t = this.index + e - 1; t >= this.index; t--) n = (n << 8) + this.byteAt(t);
|
|
585
|
+
return this.index += e, n;
|
|
586
|
+
},
|
|
587
|
+
readString: function(e) {
|
|
588
|
+
return r.transformTo("string", this.readData(e));
|
|
589
|
+
},
|
|
590
|
+
readData: function() {},
|
|
591
|
+
lastIndexOfSignature: function() {},
|
|
592
|
+
readAndCheckSignature: function() {},
|
|
593
|
+
readDate: function() {
|
|
594
|
+
var e = this.readInt(4);
|
|
595
|
+
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));
|
|
596
|
+
}
|
|
597
|
+
}, t.exports = i;
|
|
598
|
+
}, { "../utils": 32 }],
|
|
599
|
+
19: [function(e, t, n) {
|
|
600
|
+
var r = e("./Uint8ArrayReader");
|
|
601
|
+
function i(e) {
|
|
602
|
+
r.call(this, e);
|
|
603
|
+
}
|
|
604
|
+
e("../utils").inherits(i, r), i.prototype.readData = function(e) {
|
|
605
|
+
this.checkOffset(e);
|
|
606
|
+
var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
|
|
607
|
+
return this.index += e, t;
|
|
608
|
+
}, t.exports = i;
|
|
609
|
+
}, {
|
|
610
|
+
"../utils": 32,
|
|
611
|
+
"./Uint8ArrayReader": 21
|
|
612
|
+
}],
|
|
613
|
+
20: [function(e, t, n) {
|
|
614
|
+
var r = e("./DataReader");
|
|
615
|
+
function i(e) {
|
|
616
|
+
r.call(this, e);
|
|
617
|
+
}
|
|
618
|
+
e("../utils").inherits(i, r), i.prototype.byteAt = function(e) {
|
|
619
|
+
return this.data.charCodeAt(this.zero + e);
|
|
620
|
+
}, i.prototype.lastIndexOfSignature = function(e) {
|
|
621
|
+
return this.data.lastIndexOf(e) - this.zero;
|
|
622
|
+
}, i.prototype.readAndCheckSignature = function(e) {
|
|
623
|
+
return e === this.readData(4);
|
|
624
|
+
}, i.prototype.readData = function(e) {
|
|
625
|
+
this.checkOffset(e);
|
|
626
|
+
var t = this.data.slice(this.zero + this.index, this.zero + this.index + e);
|
|
627
|
+
return this.index += e, t;
|
|
628
|
+
}, t.exports = i;
|
|
629
|
+
}, {
|
|
630
|
+
"../utils": 32,
|
|
631
|
+
"./DataReader": 18
|
|
632
|
+
}],
|
|
633
|
+
21: [function(e, t, n) {
|
|
634
|
+
var r = e("./ArrayReader");
|
|
635
|
+
function i(e) {
|
|
636
|
+
r.call(this, e);
|
|
637
|
+
}
|
|
638
|
+
e("../utils").inherits(i, r), i.prototype.readData = function(e) {
|
|
639
|
+
if (this.checkOffset(e), e === 0) return new Uint8Array();
|
|
640
|
+
var t = this.data.subarray(this.zero + this.index, this.zero + this.index + e);
|
|
641
|
+
return this.index += e, t;
|
|
642
|
+
}, t.exports = i;
|
|
643
|
+
}, {
|
|
644
|
+
"../utils": 32,
|
|
645
|
+
"./ArrayReader": 17
|
|
646
|
+
}],
|
|
647
|
+
22: [function(e, t, n) {
|
|
648
|
+
var r = e("../utils"), i = e("../support"), a = e("./ArrayReader"), o = e("./StringReader"), s = e("./NodeBufferReader"), c = e("./Uint8ArrayReader");
|
|
649
|
+
t.exports = function(e) {
|
|
650
|
+
var t = r.getTypeOf(e);
|
|
651
|
+
return r.checkSupport(t), t !== "string" || i.uint8array ? t === "nodebuffer" ? new s(e) : i.uint8array ? new c(r.transformTo("uint8array", e)) : new a(r.transformTo("array", e)) : new o(e);
|
|
652
|
+
};
|
|
653
|
+
}, {
|
|
654
|
+
"../support": 30,
|
|
655
|
+
"../utils": 32,
|
|
656
|
+
"./ArrayReader": 17,
|
|
657
|
+
"./NodeBufferReader": 19,
|
|
658
|
+
"./StringReader": 20,
|
|
659
|
+
"./Uint8ArrayReader": 21
|
|
660
|
+
}],
|
|
661
|
+
23: [function(e, t, n) {
|
|
662
|
+
n.LOCAL_FILE_HEADER = "PK", n.CENTRAL_FILE_HEADER = "PK", n.CENTRAL_DIRECTORY_END = "PK", n.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", n.ZIP64_CENTRAL_DIRECTORY_END = "PK", n.DATA_DESCRIPTOR = "PK\x07\b";
|
|
663
|
+
}, {}],
|
|
664
|
+
24: [function(e, t, n) {
|
|
665
|
+
var r = e("./GenericWorker"), i = e("../utils");
|
|
666
|
+
function a(e) {
|
|
667
|
+
r.call(this, "ConvertWorker to " + e), this.destType = e;
|
|
668
|
+
}
|
|
669
|
+
i.inherits(a, r), a.prototype.processChunk = function(e) {
|
|
670
|
+
this.push({
|
|
671
|
+
data: i.transformTo(this.destType, e.data),
|
|
672
|
+
meta: e.meta
|
|
673
|
+
});
|
|
674
|
+
}, t.exports = a;
|
|
675
|
+
}, {
|
|
676
|
+
"../utils": 32,
|
|
677
|
+
"./GenericWorker": 28
|
|
678
|
+
}],
|
|
679
|
+
25: [function(e, t, n) {
|
|
680
|
+
var r = e("./GenericWorker"), i = e("../crc32");
|
|
681
|
+
function a() {
|
|
682
|
+
r.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
683
|
+
}
|
|
684
|
+
e("../utils").inherits(a, r), a.prototype.processChunk = function(e) {
|
|
685
|
+
this.streamInfo.crc32 = i(e.data, this.streamInfo.crc32 || 0), this.push(e);
|
|
686
|
+
}, t.exports = a;
|
|
687
|
+
}, {
|
|
688
|
+
"../crc32": 4,
|
|
689
|
+
"../utils": 32,
|
|
690
|
+
"./GenericWorker": 28
|
|
691
|
+
}],
|
|
692
|
+
26: [function(e, t, n) {
|
|
693
|
+
var r = e("../utils"), i = e("./GenericWorker");
|
|
694
|
+
function a(e) {
|
|
695
|
+
i.call(this, "DataLengthProbe for " + e), this.propName = e, this.withStreamInfo(e, 0);
|
|
696
|
+
}
|
|
697
|
+
r.inherits(a, i), a.prototype.processChunk = function(e) {
|
|
698
|
+
if (e) {
|
|
699
|
+
var t = this.streamInfo[this.propName] || 0;
|
|
700
|
+
this.streamInfo[this.propName] = t + e.data.length;
|
|
701
|
+
}
|
|
702
|
+
i.prototype.processChunk.call(this, e);
|
|
703
|
+
}, t.exports = a;
|
|
704
|
+
}, {
|
|
705
|
+
"../utils": 32,
|
|
706
|
+
"./GenericWorker": 28
|
|
707
|
+
}],
|
|
708
|
+
27: [function(e, t, n) {
|
|
709
|
+
var r = e("../utils"), i = e("./GenericWorker");
|
|
710
|
+
function a(e) {
|
|
711
|
+
i.call(this, "DataWorker");
|
|
712
|
+
var t = this;
|
|
713
|
+
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, e.then(function(e) {
|
|
714
|
+
t.dataIsReady = !0, t.data = e, t.max = e && e.length || 0, t.type = r.getTypeOf(e), t.isPaused || t._tickAndRepeat();
|
|
715
|
+
}, function(e) {
|
|
716
|
+
t.error(e);
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
r.inherits(a, i), a.prototype.cleanUp = function() {
|
|
720
|
+
i.prototype.cleanUp.call(this), this.data = null;
|
|
721
|
+
}, a.prototype.resume = function() {
|
|
722
|
+
return !!i.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, r.delay(this._tickAndRepeat, [], this)), !0);
|
|
723
|
+
}, a.prototype._tickAndRepeat = function() {
|
|
724
|
+
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (r.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
|
|
725
|
+
}, a.prototype._tick = function() {
|
|
726
|
+
if (this.isPaused || this.isFinished) return !1;
|
|
727
|
+
var e = null, t = Math.min(this.max, this.index + 16384);
|
|
728
|
+
if (this.index >= this.max) return this.end();
|
|
729
|
+
switch (this.type) {
|
|
730
|
+
case "string":
|
|
731
|
+
e = this.data.substring(this.index, t);
|
|
732
|
+
break;
|
|
733
|
+
case "uint8array":
|
|
734
|
+
e = this.data.subarray(this.index, t);
|
|
735
|
+
break;
|
|
736
|
+
case "array":
|
|
737
|
+
case "nodebuffer": e = this.data.slice(this.index, t);
|
|
738
|
+
}
|
|
739
|
+
return this.index = t, this.push({
|
|
740
|
+
data: e,
|
|
741
|
+
meta: { percent: this.max ? this.index / this.max * 100 : 0 }
|
|
742
|
+
});
|
|
743
|
+
}, t.exports = a;
|
|
744
|
+
}, {
|
|
745
|
+
"../utils": 32,
|
|
746
|
+
"./GenericWorker": 28
|
|
747
|
+
}],
|
|
748
|
+
28: [function(e, t, n) {
|
|
749
|
+
function r(e) {
|
|
750
|
+
this.name = e || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = {
|
|
751
|
+
data: [],
|
|
752
|
+
end: [],
|
|
753
|
+
error: []
|
|
754
|
+
}, this.previous = null;
|
|
755
|
+
}
|
|
756
|
+
r.prototype = {
|
|
757
|
+
push: function(e) {
|
|
758
|
+
this.emit("data", e);
|
|
759
|
+
},
|
|
760
|
+
end: function() {
|
|
761
|
+
if (this.isFinished) return !1;
|
|
762
|
+
this.flush();
|
|
763
|
+
try {
|
|
764
|
+
this.emit("end"), this.cleanUp(), this.isFinished = !0;
|
|
765
|
+
} catch (e) {
|
|
766
|
+
this.emit("error", e);
|
|
767
|
+
}
|
|
768
|
+
return !0;
|
|
769
|
+
},
|
|
770
|
+
error: function(e) {
|
|
771
|
+
return !this.isFinished && (this.isPaused ? this.generatedError = e : (this.isFinished = !0, this.emit("error", e), this.previous && this.previous.error(e), this.cleanUp()), !0);
|
|
772
|
+
},
|
|
773
|
+
on: function(e, t) {
|
|
774
|
+
return this._listeners[e].push(t), this;
|
|
775
|
+
},
|
|
776
|
+
cleanUp: function() {
|
|
777
|
+
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
778
|
+
},
|
|
779
|
+
emit: function(e, t) {
|
|
780
|
+
if (this._listeners[e]) for (var n = 0; n < this._listeners[e].length; n++) this._listeners[e][n].call(this, t);
|
|
781
|
+
},
|
|
782
|
+
pipe: function(e) {
|
|
783
|
+
return e.registerPrevious(this);
|
|
784
|
+
},
|
|
785
|
+
registerPrevious: function(e) {
|
|
786
|
+
if (this.isLocked) throw Error("The stream '" + this + "' has already been used.");
|
|
787
|
+
this.streamInfo = e.streamInfo, this.mergeStreamInfo(), this.previous = e;
|
|
788
|
+
var t = this;
|
|
789
|
+
return e.on("data", function(e) {
|
|
790
|
+
t.processChunk(e);
|
|
791
|
+
}), e.on("end", function() {
|
|
792
|
+
t.end();
|
|
793
|
+
}), e.on("error", function(e) {
|
|
794
|
+
t.error(e);
|
|
795
|
+
}), this;
|
|
796
|
+
},
|
|
797
|
+
pause: function() {
|
|
798
|
+
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
|
|
799
|
+
},
|
|
800
|
+
resume: function() {
|
|
801
|
+
if (!this.isPaused || this.isFinished) return !1;
|
|
802
|
+
var e = this.isPaused = !1;
|
|
803
|
+
return this.generatedError && (this.error(this.generatedError), e = !0), this.previous && this.previous.resume(), !e;
|
|
804
|
+
},
|
|
805
|
+
flush: function() {},
|
|
806
|
+
processChunk: function(e) {
|
|
807
|
+
this.push(e);
|
|
808
|
+
},
|
|
809
|
+
withStreamInfo: function(e, t) {
|
|
810
|
+
return this.extraStreamInfo[e] = t, this.mergeStreamInfo(), this;
|
|
811
|
+
},
|
|
812
|
+
mergeStreamInfo: function() {
|
|
813
|
+
for (var e in this.extraStreamInfo) Object.prototype.hasOwnProperty.call(this.extraStreamInfo, e) && (this.streamInfo[e] = this.extraStreamInfo[e]);
|
|
814
|
+
},
|
|
815
|
+
lock: function() {
|
|
816
|
+
if (this.isLocked) throw Error("The stream '" + this + "' has already been used.");
|
|
817
|
+
this.isLocked = !0, this.previous && this.previous.lock();
|
|
818
|
+
},
|
|
819
|
+
toString: function() {
|
|
820
|
+
var e = "Worker " + this.name;
|
|
821
|
+
return this.previous ? this.previous + " -> " + e : e;
|
|
822
|
+
}
|
|
823
|
+
}, t.exports = r;
|
|
824
|
+
}, {}],
|
|
825
|
+
29: [function(e, t, n) {
|
|
826
|
+
var r = e("../utils"), i = e("./ConvertWorker"), a = e("./GenericWorker"), o = e("../base64"), s = e("../support"), c = e("../external"), l = null;
|
|
827
|
+
if (s.nodestream) try {
|
|
828
|
+
l = e("../nodejs/NodejsStreamOutputAdapter");
|
|
829
|
+
} catch (e) {}
|
|
830
|
+
function u(e, t) {
|
|
831
|
+
return new c.Promise(function(n, i) {
|
|
832
|
+
var a = [], s = e._internalType, c = e._outputType, l = e._mimeType;
|
|
833
|
+
e.on("data", function(e, n) {
|
|
834
|
+
a.push(e), t && t(n);
|
|
835
|
+
}).on("error", function(e) {
|
|
836
|
+
a = [], i(e);
|
|
837
|
+
}).on("end", function() {
|
|
838
|
+
try {
|
|
839
|
+
n(function(e, t, n) {
|
|
840
|
+
switch (e) {
|
|
841
|
+
case "blob": return r.newBlob(r.transformTo("arraybuffer", t), n);
|
|
842
|
+
case "base64": return o.encode(t);
|
|
843
|
+
default: return r.transformTo(e, t);
|
|
844
|
+
}
|
|
845
|
+
}(c, function(e, t) {
|
|
846
|
+
var n, r = 0, i = null, a = 0;
|
|
847
|
+
for (n = 0; n < t.length; n++) a += t[n].length;
|
|
848
|
+
switch (e) {
|
|
849
|
+
case "string": return t.join("");
|
|
850
|
+
case "array": return Array.prototype.concat.apply([], t);
|
|
851
|
+
case "uint8array":
|
|
852
|
+
for (i = new Uint8Array(a), n = 0; n < t.length; n++) i.set(t[n], r), r += t[n].length;
|
|
853
|
+
return i;
|
|
854
|
+
case "nodebuffer": return Buffer.concat(t);
|
|
855
|
+
default: throw Error("concat : unsupported type '" + e + "'");
|
|
856
|
+
}
|
|
857
|
+
}(s, a), l));
|
|
858
|
+
} catch (e) {
|
|
859
|
+
i(e);
|
|
860
|
+
}
|
|
861
|
+
a = [];
|
|
862
|
+
}).resume();
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
function d(e, t, n) {
|
|
866
|
+
var o = t;
|
|
867
|
+
switch (t) {
|
|
868
|
+
case "blob":
|
|
869
|
+
case "arraybuffer":
|
|
870
|
+
o = "uint8array";
|
|
871
|
+
break;
|
|
872
|
+
case "base64": o = "string";
|
|
873
|
+
}
|
|
874
|
+
try {
|
|
875
|
+
this._internalType = o, this._outputType = t, this._mimeType = n, r.checkSupport(o), this._worker = e.pipe(new i(o)), e.lock();
|
|
876
|
+
} catch (e) {
|
|
877
|
+
this._worker = new a("error"), this._worker.error(e);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
d.prototype = {
|
|
881
|
+
accumulate: function(e) {
|
|
882
|
+
return u(this, e);
|
|
883
|
+
},
|
|
884
|
+
on: function(e, t) {
|
|
885
|
+
var n = this;
|
|
886
|
+
return e === "data" ? this._worker.on(e, function(e) {
|
|
887
|
+
t.call(n, e.data, e.meta);
|
|
888
|
+
}) : this._worker.on(e, function() {
|
|
889
|
+
r.delay(t, arguments, n);
|
|
890
|
+
}), this;
|
|
891
|
+
},
|
|
892
|
+
resume: function() {
|
|
893
|
+
return r.delay(this._worker.resume, [], this._worker), this;
|
|
894
|
+
},
|
|
895
|
+
pause: function() {
|
|
896
|
+
return this._worker.pause(), this;
|
|
897
|
+
},
|
|
898
|
+
toNodejsStream: function(e) {
|
|
899
|
+
if (r.checkSupport("nodestream"), this._outputType !== "nodebuffer") throw Error(this._outputType + " is not supported by this method");
|
|
900
|
+
return new l(this, { objectMode: this._outputType !== "nodebuffer" }, e);
|
|
901
|
+
}
|
|
902
|
+
}, t.exports = d;
|
|
903
|
+
}, {
|
|
904
|
+
"../base64": 1,
|
|
905
|
+
"../external": 6,
|
|
906
|
+
"../nodejs/NodejsStreamOutputAdapter": 13,
|
|
907
|
+
"../support": 30,
|
|
908
|
+
"../utils": 32,
|
|
909
|
+
"./ConvertWorker": 24,
|
|
910
|
+
"./GenericWorker": 28
|
|
911
|
+
}],
|
|
912
|
+
30: [function(e, t, n) {
|
|
913
|
+
if (n.base64 = !0, n.array = !0, n.string = !0, n.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", n.nodebuffer = typeof Buffer < "u", n.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u") n.blob = !1;
|
|
914
|
+
else {
|
|
915
|
+
var r = /* @__PURE__ */ new ArrayBuffer(0);
|
|
916
|
+
try {
|
|
917
|
+
n.blob = new Blob([r], { type: "application/zip" }).size === 0;
|
|
918
|
+
} catch (e) {
|
|
919
|
+
try {
|
|
920
|
+
var i = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
921
|
+
i.append(r), n.blob = i.getBlob("application/zip").size === 0;
|
|
922
|
+
} catch (e) {
|
|
923
|
+
n.blob = !1;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
try {
|
|
928
|
+
n.nodestream = !!e("readable-stream").Readable;
|
|
929
|
+
} catch (e) {
|
|
930
|
+
n.nodestream = !1;
|
|
931
|
+
}
|
|
932
|
+
}, { "readable-stream": 16 }],
|
|
933
|
+
31: [function(e, t, n) {
|
|
934
|
+
for (var r = e("./utils"), i = e("./support"), a = e("./nodejsUtils"), o = e("./stream/GenericWorker"), s = Array(256), c = 0; c < 256; c++) s[c] = 252 <= c ? 6 : 248 <= c ? 5 : 240 <= c ? 4 : 224 <= c ? 3 : 192 <= c ? 2 : 1;
|
|
935
|
+
s[254] = s[254] = 1;
|
|
936
|
+
function l() {
|
|
937
|
+
o.call(this, "utf-8 decode"), this.leftOver = null;
|
|
938
|
+
}
|
|
939
|
+
function u() {
|
|
940
|
+
o.call(this, "utf-8 encode");
|
|
941
|
+
}
|
|
942
|
+
n.utf8encode = function(e) {
|
|
943
|
+
return i.nodebuffer ? a.newBufferFrom(e, "utf-8") : function(e) {
|
|
944
|
+
var t, n, r, a, o, s = e.length, c = 0;
|
|
945
|
+
for (a = 0; a < s; a++) (64512 & (n = e.charCodeAt(a))) == 55296 && a + 1 < s && (64512 & (r = e.charCodeAt(a + 1))) == 56320 && (n = 65536 + (n - 55296 << 10) + (r - 56320), a++), c += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4;
|
|
946
|
+
for (t = i.uint8array ? new Uint8Array(c) : Array(c), a = o = 0; o < c; a++) (64512 & (n = e.charCodeAt(a))) == 55296 && a + 1 < s && (64512 & (r = e.charCodeAt(a + 1))) == 56320 && (n = 65536 + (n - 55296 << 10) + (r - 56320), a++), n < 128 ? t[o++] = n : (n < 2048 ? t[o++] = 192 | n >>> 6 : (n < 65536 ? t[o++] = 224 | n >>> 12 : (t[o++] = 240 | n >>> 18, t[o++] = 128 | n >>> 12 & 63), t[o++] = 128 | n >>> 6 & 63), t[o++] = 128 | 63 & n);
|
|
947
|
+
return t;
|
|
948
|
+
}(e);
|
|
949
|
+
}, n.utf8decode = function(e) {
|
|
950
|
+
return i.nodebuffer ? r.transformTo("nodebuffer", e).toString("utf-8") : function(e) {
|
|
951
|
+
var t, n, i, a, o = e.length, c = Array(2 * o);
|
|
952
|
+
for (t = n = 0; t < o;) if ((i = e[t++]) < 128) c[n++] = i;
|
|
953
|
+
else if (4 < (a = s[i])) c[n++] = 65533, t += a - 1;
|
|
954
|
+
else {
|
|
955
|
+
for (i &= a === 2 ? 31 : a === 3 ? 15 : 7; 1 < a && t < o;) i = i << 6 | 63 & e[t++], a--;
|
|
956
|
+
1 < a ? c[n++] = 65533 : i < 65536 ? c[n++] = i : (i -= 65536, c[n++] = 55296 | i >> 10 & 1023, c[n++] = 56320 | 1023 & i);
|
|
957
|
+
}
|
|
958
|
+
return c.length !== n && (c.subarray ? c = c.subarray(0, n) : c.length = n), r.applyFromCharCode(c);
|
|
959
|
+
}(e = r.transformTo(i.uint8array ? "uint8array" : "array", e));
|
|
960
|
+
}, r.inherits(l, o), l.prototype.processChunk = function(e) {
|
|
961
|
+
var t = r.transformTo(i.uint8array ? "uint8array" : "array", e.data);
|
|
962
|
+
if (this.leftOver && this.leftOver.length) {
|
|
963
|
+
if (i.uint8array) {
|
|
964
|
+
var a = t;
|
|
965
|
+
(t = new Uint8Array(a.length + this.leftOver.length)).set(this.leftOver, 0), t.set(a, this.leftOver.length);
|
|
966
|
+
} else t = this.leftOver.concat(t);
|
|
967
|
+
this.leftOver = null;
|
|
968
|
+
}
|
|
969
|
+
var o = function(e, t) {
|
|
970
|
+
var n;
|
|
971
|
+
for ((t = t || e.length) > e.length && (t = e.length), n = t - 1; 0 <= n && (192 & e[n]) == 128;) n--;
|
|
972
|
+
return n < 0 || n === 0 ? t : n + s[e[n]] > t ? n : t;
|
|
973
|
+
}(t), c = t;
|
|
974
|
+
o !== t.length && (i.uint8array ? (c = t.subarray(0, o), this.leftOver = t.subarray(o, t.length)) : (c = t.slice(0, o), this.leftOver = t.slice(o, t.length))), this.push({
|
|
975
|
+
data: n.utf8decode(c),
|
|
976
|
+
meta: e.meta
|
|
977
|
+
});
|
|
978
|
+
}, l.prototype.flush = function() {
|
|
979
|
+
this.leftOver && this.leftOver.length && (this.push({
|
|
980
|
+
data: n.utf8decode(this.leftOver),
|
|
981
|
+
meta: {}
|
|
982
|
+
}), this.leftOver = null);
|
|
983
|
+
}, n.Utf8DecodeWorker = l, r.inherits(u, o), u.prototype.processChunk = function(e) {
|
|
984
|
+
this.push({
|
|
985
|
+
data: n.utf8encode(e.data),
|
|
986
|
+
meta: e.meta
|
|
987
|
+
});
|
|
988
|
+
}, n.Utf8EncodeWorker = u;
|
|
989
|
+
}, {
|
|
990
|
+
"./nodejsUtils": 14,
|
|
991
|
+
"./stream/GenericWorker": 28,
|
|
992
|
+
"./support": 30,
|
|
993
|
+
"./utils": 32
|
|
994
|
+
}],
|
|
995
|
+
32: [function(e, t, n) {
|
|
996
|
+
var r = e("./support"), i = e("./base64"), a = e("./nodejsUtils"), o = e("./external");
|
|
997
|
+
function s(e) {
|
|
998
|
+
return e;
|
|
999
|
+
}
|
|
1000
|
+
function c(e, t) {
|
|
1001
|
+
for (var n = 0; n < e.length; ++n) t[n] = 255 & e.charCodeAt(n);
|
|
1002
|
+
return t;
|
|
1003
|
+
}
|
|
1004
|
+
e("setimmediate"), n.newBlob = function(e, t) {
|
|
1005
|
+
n.checkSupport("blob");
|
|
1006
|
+
try {
|
|
1007
|
+
return new Blob([e], { type: t });
|
|
1008
|
+
} catch (n) {
|
|
1009
|
+
try {
|
|
1010
|
+
var r = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
1011
|
+
return r.append(e), r.getBlob(t);
|
|
1012
|
+
} catch (e) {
|
|
1013
|
+
throw Error("Bug : can't construct the Blob.");
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
var l = {
|
|
1018
|
+
stringifyByChunk: function(e, t, n) {
|
|
1019
|
+
var r = [], i = 0, a = e.length;
|
|
1020
|
+
if (a <= n) return String.fromCharCode.apply(null, e);
|
|
1021
|
+
for (; i < a;) t === "array" || t === "nodebuffer" ? r.push(String.fromCharCode.apply(null, e.slice(i, Math.min(i + n, a)))) : r.push(String.fromCharCode.apply(null, e.subarray(i, Math.min(i + n, a)))), i += n;
|
|
1022
|
+
return r.join("");
|
|
1023
|
+
},
|
|
1024
|
+
stringifyByChar: function(e) {
|
|
1025
|
+
for (var t = "", n = 0; n < e.length; n++) t += String.fromCharCode(e[n]);
|
|
1026
|
+
return t;
|
|
1027
|
+
},
|
|
1028
|
+
applyCanBeUsed: {
|
|
1029
|
+
uint8array: function() {
|
|
1030
|
+
try {
|
|
1031
|
+
return r.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
1032
|
+
} catch (e) {
|
|
1033
|
+
return !1;
|
|
1034
|
+
}
|
|
1035
|
+
}(),
|
|
1036
|
+
nodebuffer: function() {
|
|
1037
|
+
try {
|
|
1038
|
+
return r.nodebuffer && String.fromCharCode.apply(null, a.allocBuffer(1)).length === 1;
|
|
1039
|
+
} catch (e) {
|
|
1040
|
+
return !1;
|
|
1041
|
+
}
|
|
1042
|
+
}()
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
function u(e) {
|
|
1046
|
+
var t = 65536, r = n.getTypeOf(e), i = !0;
|
|
1047
|
+
if (r === "uint8array" ? i = l.applyCanBeUsed.uint8array : r === "nodebuffer" && (i = l.applyCanBeUsed.nodebuffer), i) for (; 1 < t;) try {
|
|
1048
|
+
return l.stringifyByChunk(e, r, t);
|
|
1049
|
+
} catch (e) {
|
|
1050
|
+
t = Math.floor(t / 2);
|
|
1051
|
+
}
|
|
1052
|
+
return l.stringifyByChar(e);
|
|
1053
|
+
}
|
|
1054
|
+
function d(e, t) {
|
|
1055
|
+
for (var n = 0; n < e.length; n++) t[n] = e[n];
|
|
1056
|
+
return t;
|
|
1057
|
+
}
|
|
1058
|
+
n.applyFromCharCode = u;
|
|
1059
|
+
var f = {};
|
|
1060
|
+
f.string = {
|
|
1061
|
+
string: s,
|
|
1062
|
+
array: function(e) {
|
|
1063
|
+
return c(e, Array(e.length));
|
|
1064
|
+
},
|
|
1065
|
+
arraybuffer: function(e) {
|
|
1066
|
+
return f.string.uint8array(e).buffer;
|
|
1067
|
+
},
|
|
1068
|
+
uint8array: function(e) {
|
|
1069
|
+
return c(e, new Uint8Array(e.length));
|
|
1070
|
+
},
|
|
1071
|
+
nodebuffer: function(e) {
|
|
1072
|
+
return c(e, a.allocBuffer(e.length));
|
|
1073
|
+
}
|
|
1074
|
+
}, f.array = {
|
|
1075
|
+
string: u,
|
|
1076
|
+
array: s,
|
|
1077
|
+
arraybuffer: function(e) {
|
|
1078
|
+
return new Uint8Array(e).buffer;
|
|
1079
|
+
},
|
|
1080
|
+
uint8array: function(e) {
|
|
1081
|
+
return new Uint8Array(e);
|
|
1082
|
+
},
|
|
1083
|
+
nodebuffer: function(e) {
|
|
1084
|
+
return a.newBufferFrom(e);
|
|
1085
|
+
}
|
|
1086
|
+
}, f.arraybuffer = {
|
|
1087
|
+
string: function(e) {
|
|
1088
|
+
return u(new Uint8Array(e));
|
|
1089
|
+
},
|
|
1090
|
+
array: function(e) {
|
|
1091
|
+
return d(new Uint8Array(e), Array(e.byteLength));
|
|
1092
|
+
},
|
|
1093
|
+
arraybuffer: s,
|
|
1094
|
+
uint8array: function(e) {
|
|
1095
|
+
return new Uint8Array(e);
|
|
1096
|
+
},
|
|
1097
|
+
nodebuffer: function(e) {
|
|
1098
|
+
return a.newBufferFrom(new Uint8Array(e));
|
|
1099
|
+
}
|
|
1100
|
+
}, f.uint8array = {
|
|
1101
|
+
string: u,
|
|
1102
|
+
array: function(e) {
|
|
1103
|
+
return d(e, Array(e.length));
|
|
1104
|
+
},
|
|
1105
|
+
arraybuffer: function(e) {
|
|
1106
|
+
return e.buffer;
|
|
1107
|
+
},
|
|
1108
|
+
uint8array: s,
|
|
1109
|
+
nodebuffer: function(e) {
|
|
1110
|
+
return a.newBufferFrom(e);
|
|
1111
|
+
}
|
|
1112
|
+
}, f.nodebuffer = {
|
|
1113
|
+
string: u,
|
|
1114
|
+
array: function(e) {
|
|
1115
|
+
return d(e, Array(e.length));
|
|
1116
|
+
},
|
|
1117
|
+
arraybuffer: function(e) {
|
|
1118
|
+
return f.nodebuffer.uint8array(e).buffer;
|
|
1119
|
+
},
|
|
1120
|
+
uint8array: function(e) {
|
|
1121
|
+
return d(e, new Uint8Array(e.length));
|
|
1122
|
+
},
|
|
1123
|
+
nodebuffer: s
|
|
1124
|
+
}, n.transformTo = function(e, t) {
|
|
1125
|
+
return t = t || "", e ? (n.checkSupport(e), f[n.getTypeOf(t)][e](t)) : t;
|
|
1126
|
+
}, n.resolve = function(e) {
|
|
1127
|
+
for (var t = e.split("/"), n = [], r = 0; r < t.length; r++) {
|
|
1128
|
+
var i = t[r];
|
|
1129
|
+
i === "." || i === "" && r !== 0 && r !== t.length - 1 || (i === ".." ? n.pop() : n.push(i));
|
|
1130
|
+
}
|
|
1131
|
+
return n.join("/");
|
|
1132
|
+
}, n.getTypeOf = function(e) {
|
|
1133
|
+
return typeof e == "string" ? "string" : Object.prototype.toString.call(e) === "[object Array]" ? "array" : r.nodebuffer && a.isBuffer(e) ? "nodebuffer" : r.uint8array && e instanceof Uint8Array ? "uint8array" : r.arraybuffer && e instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
1134
|
+
}, n.checkSupport = function(e) {
|
|
1135
|
+
if (!r[e.toLowerCase()]) throw Error(e + " is not supported by this platform");
|
|
1136
|
+
}, n.MAX_VALUE_16BITS = 65535, n.MAX_VALUE_32BITS = -1, n.pretty = function(e) {
|
|
1137
|
+
var t, n, r = "";
|
|
1138
|
+
for (n = 0; n < (e || "").length; n++) r += "\\x" + ((t = e.charCodeAt(n)) < 16 ? "0" : "") + t.toString(16).toUpperCase();
|
|
1139
|
+
return r;
|
|
1140
|
+
}, n.delay = function(e, t, n) {
|
|
1141
|
+
setImmediate(function() {
|
|
1142
|
+
e.apply(n || null, t || []);
|
|
1143
|
+
});
|
|
1144
|
+
}, n.inherits = function(e, t) {
|
|
1145
|
+
function n() {}
|
|
1146
|
+
n.prototype = t.prototype, e.prototype = new n();
|
|
1147
|
+
}, n.extend = function() {
|
|
1148
|
+
var e, t, n = {};
|
|
1149
|
+
for (e = 0; e < arguments.length; e++) for (t in arguments[e]) Object.prototype.hasOwnProperty.call(arguments[e], t) && n[t] === void 0 && (n[t] = arguments[e][t]);
|
|
1150
|
+
return n;
|
|
1151
|
+
}, n.prepareContent = function(e, t, a, s, l) {
|
|
1152
|
+
return o.Promise.resolve(t).then(function(e) {
|
|
1153
|
+
return r.blob && (e instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(e)) !== -1) && typeof FileReader < "u" ? new o.Promise(function(t, n) {
|
|
1154
|
+
var r = new FileReader();
|
|
1155
|
+
r.onload = function(e) {
|
|
1156
|
+
t(e.target.result);
|
|
1157
|
+
}, r.onerror = function(e) {
|
|
1158
|
+
n(e.target.error);
|
|
1159
|
+
}, r.readAsArrayBuffer(e);
|
|
1160
|
+
}) : e;
|
|
1161
|
+
}).then(function(t) {
|
|
1162
|
+
var u = n.getTypeOf(t);
|
|
1163
|
+
return u ? (u === "arraybuffer" ? t = n.transformTo("uint8array", t) : u === "string" && (l ? t = i.decode(t) : a && !0 !== s && (t = function(e) {
|
|
1164
|
+
return c(e, r.uint8array ? new Uint8Array(e.length) : Array(e.length));
|
|
1165
|
+
}(t))), t) : o.Promise.reject(/* @__PURE__ */ Error("Can't read the data of '" + e + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
1166
|
+
});
|
|
1167
|
+
};
|
|
1168
|
+
}, {
|
|
1169
|
+
"./base64": 1,
|
|
1170
|
+
"./external": 6,
|
|
1171
|
+
"./nodejsUtils": 14,
|
|
1172
|
+
"./support": 30,
|
|
1173
|
+
setimmediate: 54
|
|
1174
|
+
}],
|
|
1175
|
+
33: [function(e, t, n) {
|
|
1176
|
+
var r = e("./reader/readerFor"), i = e("./utils"), a = e("./signature"), o = e("./zipEntry"), s = e("./support");
|
|
1177
|
+
function c(e) {
|
|
1178
|
+
this.files = [], this.loadOptions = e;
|
|
1179
|
+
}
|
|
1180
|
+
c.prototype = {
|
|
1181
|
+
checkSignature: function(e) {
|
|
1182
|
+
if (!this.reader.readAndCheckSignature(e)) {
|
|
1183
|
+
this.reader.index -= 4;
|
|
1184
|
+
var t = this.reader.readString(4);
|
|
1185
|
+
throw Error("Corrupted zip or bug: unexpected signature (" + i.pretty(t) + ", expected " + i.pretty(e) + ")");
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
isSignature: function(e, t) {
|
|
1189
|
+
var n = this.reader.index;
|
|
1190
|
+
this.reader.setIndex(e);
|
|
1191
|
+
var r = this.reader.readString(4) === t;
|
|
1192
|
+
return this.reader.setIndex(n), r;
|
|
1193
|
+
},
|
|
1194
|
+
readBlockEndOfCentral: function() {
|
|
1195
|
+
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);
|
|
1196
|
+
var e = this.reader.readData(this.zipCommentLength), t = s.uint8array ? "uint8array" : "array", n = i.transformTo(t, e);
|
|
1197
|
+
this.zipComment = this.loadOptions.decodeFileName(n);
|
|
1198
|
+
},
|
|
1199
|
+
readBlockZip64EndOfCentral: function() {
|
|
1200
|
+
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 = {};
|
|
1201
|
+
for (var e, t, n, r = this.zip64EndOfCentralSize - 44; 0 < r;) e = this.reader.readInt(2), t = this.reader.readInt(4), n = this.reader.readData(t), this.zip64ExtensibleData[e] = {
|
|
1202
|
+
id: e,
|
|
1203
|
+
length: t,
|
|
1204
|
+
value: n
|
|
1205
|
+
};
|
|
1206
|
+
},
|
|
1207
|
+
readBlockZip64EndOfCentralLocator: function() {
|
|
1208
|
+
if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount) throw Error("Multi-volumes zip are not supported");
|
|
1209
|
+
},
|
|
1210
|
+
readLocalFiles: function() {
|
|
1211
|
+
var e, t;
|
|
1212
|
+
for (e = 0; e < this.files.length; e++) t = this.files[e], this.reader.setIndex(t.localHeaderOffset), this.checkSignature(a.LOCAL_FILE_HEADER), t.readLocalPart(this.reader), t.handleUTF8(), t.processAttributes();
|
|
1213
|
+
},
|
|
1214
|
+
readCentralDir: function() {
|
|
1215
|
+
var e;
|
|
1216
|
+
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);) (e = new o({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(e);
|
|
1217
|
+
if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0) throw Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
1218
|
+
},
|
|
1219
|
+
readEndOfCentral: function() {
|
|
1220
|
+
var e = this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);
|
|
1221
|
+
if (e < 0) throw this.isSignature(0, a.LOCAL_FILE_HEADER) ? /* @__PURE__ */ Error("Corrupted zip: can't find end of central directory") : /* @__PURE__ */ 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");
|
|
1222
|
+
this.reader.setIndex(e);
|
|
1223
|
+
var t = e;
|
|
1224
|
+
if (this.checkSignature(a.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) {
|
|
1225
|
+
if (this.zip64 = !0, (e = this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0) throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
|
|
1226
|
+
if (this.reader.setIndex(e), this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, a.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0)) throw Error("Corrupted zip: can't find the ZIP64 end of central directory");
|
|
1227
|
+
this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
|
|
1228
|
+
}
|
|
1229
|
+
var n = this.centralDirOffset + this.centralDirSize;
|
|
1230
|
+
this.zip64 && (n += 20, n += 12 + this.zip64EndOfCentralSize);
|
|
1231
|
+
var r = t - n;
|
|
1232
|
+
if (0 < r) this.isSignature(t, a.CENTRAL_FILE_HEADER) || (this.reader.zero = r);
|
|
1233
|
+
else if (r < 0) throw Error("Corrupted zip: missing " + Math.abs(r) + " bytes.");
|
|
1234
|
+
},
|
|
1235
|
+
prepareReader: function(e) {
|
|
1236
|
+
this.reader = r(e);
|
|
1237
|
+
},
|
|
1238
|
+
load: function(e) {
|
|
1239
|
+
this.prepareReader(e), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
1240
|
+
}
|
|
1241
|
+
}, t.exports = c;
|
|
1242
|
+
}, {
|
|
1243
|
+
"./reader/readerFor": 22,
|
|
1244
|
+
"./signature": 23,
|
|
1245
|
+
"./support": 30,
|
|
1246
|
+
"./utils": 32,
|
|
1247
|
+
"./zipEntry": 34
|
|
1248
|
+
}],
|
|
1249
|
+
34: [function(e, t, n) {
|
|
1250
|
+
var r = e("./reader/readerFor"), i = e("./utils"), a = e("./compressedObject"), o = e("./crc32"), s = e("./utf8"), c = e("./compressions"), l = e("./support");
|
|
1251
|
+
function u(e, t) {
|
|
1252
|
+
this.options = e, this.loadOptions = t;
|
|
1253
|
+
}
|
|
1254
|
+
u.prototype = {
|
|
1255
|
+
isEncrypted: function() {
|
|
1256
|
+
return (1 & this.bitFlag) == 1;
|
|
1257
|
+
},
|
|
1258
|
+
useUTF8: function() {
|
|
1259
|
+
return (2048 & this.bitFlag) == 2048;
|
|
1260
|
+
},
|
|
1261
|
+
readLocalPart: function(e) {
|
|
1262
|
+
var t, n;
|
|
1263
|
+
if (e.skip(22), this.fileNameLength = e.readInt(2), n = e.readInt(2), this.fileName = e.readData(this.fileNameLength), e.skip(n), this.compressedSize === -1 || this.uncompressedSize === -1) throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
1264
|
+
if ((t = function(e) {
|
|
1265
|
+
for (var t in c) if (Object.prototype.hasOwnProperty.call(c, t) && c[t].magic === e) return c[t];
|
|
1266
|
+
return null;
|
|
1267
|
+
}(this.compressionMethod)) === null) throw Error("Corrupted zip : compression " + i.pretty(this.compressionMethod) + " unknown (inner file : " + i.transformTo("string", this.fileName) + ")");
|
|
1268
|
+
this.decompressed = new a(this.compressedSize, this.uncompressedSize, this.crc32, t, e.readData(this.compressedSize));
|
|
1269
|
+
},
|
|
1270
|
+
readCentralPart: function(e) {
|
|
1271
|
+
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);
|
|
1272
|
+
var t = e.readInt(2);
|
|
1273
|
+
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 Error("Encrypted zip are not supported");
|
|
1274
|
+
e.skip(t), this.readExtraFields(e), this.parseZIP64ExtraField(e), this.fileComment = e.readData(this.fileCommentLength);
|
|
1275
|
+
},
|
|
1276
|
+
processAttributes: function() {
|
|
1277
|
+
this.unixPermissions = null, this.dosPermissions = null;
|
|
1278
|
+
var e = this.versionMadeBy >> 8;
|
|
1279
|
+
this.dir = !!(16 & this.externalFileAttributes), e == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), e == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
|
|
1280
|
+
},
|
|
1281
|
+
parseZIP64ExtraField: function() {
|
|
1282
|
+
if (this.extraFields[1]) {
|
|
1283
|
+
var e = r(this.extraFields[1].value);
|
|
1284
|
+
this.uncompressedSize === i.MAX_VALUE_32BITS && (this.uncompressedSize = e.readInt(8)), this.compressedSize === i.MAX_VALUE_32BITS && (this.compressedSize = e.readInt(8)), this.localHeaderOffset === i.MAX_VALUE_32BITS && (this.localHeaderOffset = e.readInt(8)), this.diskNumberStart === i.MAX_VALUE_32BITS && (this.diskNumberStart = e.readInt(4));
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
readExtraFields: function(e) {
|
|
1288
|
+
var t, n, r, i = e.index + this.extraFieldsLength;
|
|
1289
|
+
for (this.extraFields || (this.extraFields = {}); e.index + 4 < i;) t = e.readInt(2), n = e.readInt(2), r = e.readData(n), this.extraFields[t] = {
|
|
1290
|
+
id: t,
|
|
1291
|
+
length: n,
|
|
1292
|
+
value: r
|
|
1293
|
+
};
|
|
1294
|
+
e.setIndex(i);
|
|
1295
|
+
},
|
|
1296
|
+
handleUTF8: function() {
|
|
1297
|
+
var e = l.uint8array ? "uint8array" : "array";
|
|
1298
|
+
if (this.useUTF8()) this.fileNameStr = s.utf8decode(this.fileName), this.fileCommentStr = s.utf8decode(this.fileComment);
|
|
1299
|
+
else {
|
|
1300
|
+
var t = this.findExtraFieldUnicodePath();
|
|
1301
|
+
if (t !== null) this.fileNameStr = t;
|
|
1302
|
+
else {
|
|
1303
|
+
var n = i.transformTo(e, this.fileName);
|
|
1304
|
+
this.fileNameStr = this.loadOptions.decodeFileName(n);
|
|
1305
|
+
}
|
|
1306
|
+
var r = this.findExtraFieldUnicodeComment();
|
|
1307
|
+
if (r !== null) this.fileCommentStr = r;
|
|
1308
|
+
else {
|
|
1309
|
+
var a = i.transformTo(e, this.fileComment);
|
|
1310
|
+
this.fileCommentStr = this.loadOptions.decodeFileName(a);
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
findExtraFieldUnicodePath: function() {
|
|
1315
|
+
var e = this.extraFields[28789];
|
|
1316
|
+
if (e) {
|
|
1317
|
+
var t = r(e.value);
|
|
1318
|
+
return t.readInt(1) === 1 && o(this.fileName) === t.readInt(4) ? s.utf8decode(t.readData(e.length - 5)) : null;
|
|
1319
|
+
}
|
|
1320
|
+
return null;
|
|
1321
|
+
},
|
|
1322
|
+
findExtraFieldUnicodeComment: function() {
|
|
1323
|
+
var e = this.extraFields[25461];
|
|
1324
|
+
if (e) {
|
|
1325
|
+
var t = r(e.value);
|
|
1326
|
+
return t.readInt(1) === 1 && o(this.fileComment) === t.readInt(4) ? s.utf8decode(t.readData(e.length - 5)) : null;
|
|
1327
|
+
}
|
|
1328
|
+
return null;
|
|
1329
|
+
}
|
|
1330
|
+
}, t.exports = u;
|
|
1331
|
+
}, {
|
|
1332
|
+
"./compressedObject": 2,
|
|
1333
|
+
"./compressions": 3,
|
|
1334
|
+
"./crc32": 4,
|
|
1335
|
+
"./reader/readerFor": 22,
|
|
1336
|
+
"./support": 30,
|
|
1337
|
+
"./utf8": 31,
|
|
1338
|
+
"./utils": 32
|
|
1339
|
+
}],
|
|
1340
|
+
35: [function(e, t, n) {
|
|
1341
|
+
function r(e, t, n) {
|
|
1342
|
+
this.name = e, this.dir = n.dir, this.date = n.date, this.comment = n.comment, this.unixPermissions = n.unixPermissions, this.dosPermissions = n.dosPermissions, this._data = t, this._dataBinary = n.binary, this.options = {
|
|
1343
|
+
compression: n.compression,
|
|
1344
|
+
compressionOptions: n.compressionOptions
|
|
1345
|
+
};
|
|
1346
|
+
}
|
|
1347
|
+
var i = e("./stream/StreamHelper"), a = e("./stream/DataWorker"), o = e("./utf8"), s = e("./compressedObject"), c = e("./stream/GenericWorker");
|
|
1348
|
+
r.prototype = {
|
|
1349
|
+
internalStream: function(e) {
|
|
1350
|
+
var t = null, n = "string";
|
|
1351
|
+
try {
|
|
1352
|
+
if (!e) throw Error("No output type specified.");
|
|
1353
|
+
var r = (n = e.toLowerCase()) === "string" || n === "text";
|
|
1354
|
+
n !== "binarystring" && n !== "text" || (n = "string"), t = this._decompressWorker();
|
|
1355
|
+
var a = !this._dataBinary;
|
|
1356
|
+
a && !r && (t = t.pipe(new o.Utf8EncodeWorker())), !a && r && (t = t.pipe(new o.Utf8DecodeWorker()));
|
|
1357
|
+
} catch (e) {
|
|
1358
|
+
(t = new c("error")).error(e);
|
|
1359
|
+
}
|
|
1360
|
+
return new i(t, n, "");
|
|
1361
|
+
},
|
|
1362
|
+
async: function(e, t) {
|
|
1363
|
+
return this.internalStream(e).accumulate(t);
|
|
1364
|
+
},
|
|
1365
|
+
nodeStream: function(e, t) {
|
|
1366
|
+
return this.internalStream(e || "nodebuffer").toNodejsStream(t);
|
|
1367
|
+
},
|
|
1368
|
+
_compressWorker: function(e, t) {
|
|
1369
|
+
if (this._data instanceof s && this._data.compression.magic === e.magic) return this._data.getCompressedWorker();
|
|
1370
|
+
var n = this._decompressWorker();
|
|
1371
|
+
return this._dataBinary || (n = n.pipe(new o.Utf8EncodeWorker())), s.createWorkerFrom(n, e, t);
|
|
1372
|
+
},
|
|
1373
|
+
_decompressWorker: function() {
|
|
1374
|
+
return this._data instanceof s ? this._data.getContentWorker() : this._data instanceof c ? this._data : new a(this._data);
|
|
1375
|
+
}
|
|
1376
|
+
};
|
|
1377
|
+
for (var l = [
|
|
1378
|
+
"asText",
|
|
1379
|
+
"asBinary",
|
|
1380
|
+
"asNodeBuffer",
|
|
1381
|
+
"asUint8Array",
|
|
1382
|
+
"asArrayBuffer"
|
|
1383
|
+
], u = function() {
|
|
1384
|
+
throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1385
|
+
}, d = 0; d < l.length; d++) r.prototype[l[d]] = u;
|
|
1386
|
+
t.exports = r;
|
|
1387
|
+
}, {
|
|
1388
|
+
"./compressedObject": 2,
|
|
1389
|
+
"./stream/DataWorker": 27,
|
|
1390
|
+
"./stream/GenericWorker": 28,
|
|
1391
|
+
"./stream/StreamHelper": 29,
|
|
1392
|
+
"./utf8": 31
|
|
1393
|
+
}],
|
|
1394
|
+
36: [function(e, t, n) {
|
|
1395
|
+
(function(e) {
|
|
1396
|
+
var n, r, i = e.MutationObserver || e.WebKitMutationObserver;
|
|
1397
|
+
if (i) {
|
|
1398
|
+
var a = 0, o = new i(u), s = e.document.createTextNode("");
|
|
1399
|
+
o.observe(s, { characterData: !0 }), n = function() {
|
|
1400
|
+
s.data = a = ++a % 2;
|
|
1401
|
+
};
|
|
1402
|
+
} else if (e.setImmediate || e.MessageChannel === void 0) n = "document" in e && "onreadystatechange" in e.document.createElement("script") ? function() {
|
|
1403
|
+
var t = e.document.createElement("script");
|
|
1404
|
+
t.onreadystatechange = function() {
|
|
1405
|
+
u(), t.onreadystatechange = null, t.parentNode.removeChild(t), t = null;
|
|
1406
|
+
}, e.document.documentElement.appendChild(t);
|
|
1407
|
+
} : function() {
|
|
1408
|
+
setTimeout(u, 0);
|
|
1409
|
+
};
|
|
1410
|
+
else {
|
|
1411
|
+
var c = new e.MessageChannel();
|
|
1412
|
+
c.port1.onmessage = u, n = function() {
|
|
1413
|
+
c.port2.postMessage(0);
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
var l = [];
|
|
1417
|
+
function u() {
|
|
1418
|
+
var e, t;
|
|
1419
|
+
r = !0;
|
|
1420
|
+
for (var n = l.length; n;) {
|
|
1421
|
+
for (t = l, l = [], e = -1; ++e < n;) t[e]();
|
|
1422
|
+
n = l.length;
|
|
1423
|
+
}
|
|
1424
|
+
r = !1;
|
|
1425
|
+
}
|
|
1426
|
+
t.exports = function(e) {
|
|
1427
|
+
l.push(e) !== 1 || r || n();
|
|
1428
|
+
};
|
|
1429
|
+
}).call(this, typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1430
|
+
}, {}],
|
|
1431
|
+
37: [function(e, t, n) {
|
|
1432
|
+
var r = e("immediate");
|
|
1433
|
+
function i() {}
|
|
1434
|
+
var a = {}, o = ["REJECTED"], s = ["FULFILLED"], c = ["PENDING"];
|
|
1435
|
+
function l(e) {
|
|
1436
|
+
if (typeof e != "function") throw TypeError("resolver must be a function");
|
|
1437
|
+
this.state = c, this.queue = [], this.outcome = void 0, e !== i && p(this, e);
|
|
1438
|
+
}
|
|
1439
|
+
function u(e, t, n) {
|
|
1440
|
+
this.promise = e, typeof t == "function" && (this.onFulfilled = t, this.callFulfilled = this.otherCallFulfilled), typeof n == "function" && (this.onRejected = n, this.callRejected = this.otherCallRejected);
|
|
1441
|
+
}
|
|
1442
|
+
function d(e, t, n) {
|
|
1443
|
+
r(function() {
|
|
1444
|
+
var r;
|
|
1445
|
+
try {
|
|
1446
|
+
r = t(n);
|
|
1447
|
+
} catch (t) {
|
|
1448
|
+
return a.reject(e, t);
|
|
1449
|
+
}
|
|
1450
|
+
r === e ? a.reject(e, /* @__PURE__ */ TypeError("Cannot resolve promise with itself")) : a.resolve(e, r);
|
|
1451
|
+
});
|
|
1452
|
+
}
|
|
1453
|
+
function f(e) {
|
|
1454
|
+
var t = e && e.then;
|
|
1455
|
+
if (e && (typeof e == "object" || typeof e == "function") && typeof t == "function") return function() {
|
|
1456
|
+
t.apply(e, arguments);
|
|
1457
|
+
};
|
|
1458
|
+
}
|
|
1459
|
+
function p(e, t) {
|
|
1460
|
+
var n = !1;
|
|
1461
|
+
function r(t) {
|
|
1462
|
+
n || (n = !0, a.reject(e, t));
|
|
1463
|
+
}
|
|
1464
|
+
function i(t) {
|
|
1465
|
+
n || (n = !0, a.resolve(e, t));
|
|
1466
|
+
}
|
|
1467
|
+
var o = m(function() {
|
|
1468
|
+
t(i, r);
|
|
1469
|
+
});
|
|
1470
|
+
o.status === "error" && r(o.value);
|
|
1471
|
+
}
|
|
1472
|
+
function m(e, t) {
|
|
1473
|
+
var n = {};
|
|
1474
|
+
try {
|
|
1475
|
+
n.value = e(t), n.status = "success";
|
|
1476
|
+
} catch (e) {
|
|
1477
|
+
n.status = "error", n.value = e;
|
|
1478
|
+
}
|
|
1479
|
+
return n;
|
|
1480
|
+
}
|
|
1481
|
+
(t.exports = l).prototype.finally = function(e) {
|
|
1482
|
+
if (typeof e != "function") return this;
|
|
1483
|
+
var t = this.constructor;
|
|
1484
|
+
return this.then(function(n) {
|
|
1485
|
+
return t.resolve(e()).then(function() {
|
|
1486
|
+
return n;
|
|
1487
|
+
});
|
|
1488
|
+
}, function(n) {
|
|
1489
|
+
return t.resolve(e()).then(function() {
|
|
1490
|
+
throw n;
|
|
1491
|
+
});
|
|
1492
|
+
});
|
|
1493
|
+
}, l.prototype.catch = function(e) {
|
|
1494
|
+
return this.then(null, e);
|
|
1495
|
+
}, l.prototype.then = function(e, t) {
|
|
1496
|
+
if (typeof e != "function" && this.state === s || typeof t != "function" && this.state === o) return this;
|
|
1497
|
+
var n = new this.constructor(i);
|
|
1498
|
+
return this.state === c ? this.queue.push(new u(n, e, t)) : d(n, this.state === s ? e : t, this.outcome), n;
|
|
1499
|
+
}, u.prototype.callFulfilled = function(e) {
|
|
1500
|
+
a.resolve(this.promise, e);
|
|
1501
|
+
}, u.prototype.otherCallFulfilled = function(e) {
|
|
1502
|
+
d(this.promise, this.onFulfilled, e);
|
|
1503
|
+
}, u.prototype.callRejected = function(e) {
|
|
1504
|
+
a.reject(this.promise, e);
|
|
1505
|
+
}, u.prototype.otherCallRejected = function(e) {
|
|
1506
|
+
d(this.promise, this.onRejected, e);
|
|
1507
|
+
}, a.resolve = function(e, t) {
|
|
1508
|
+
var n = m(f, t);
|
|
1509
|
+
if (n.status === "error") return a.reject(e, n.value);
|
|
1510
|
+
var r = n.value;
|
|
1511
|
+
if (r) p(e, r);
|
|
1512
|
+
else {
|
|
1513
|
+
e.state = s, e.outcome = t;
|
|
1514
|
+
for (var i = -1, o = e.queue.length; ++i < o;) e.queue[i].callFulfilled(t);
|
|
1515
|
+
}
|
|
1516
|
+
return e;
|
|
1517
|
+
}, a.reject = function(e, t) {
|
|
1518
|
+
e.state = o, e.outcome = t;
|
|
1519
|
+
for (var n = -1, r = e.queue.length; ++n < r;) e.queue[n].callRejected(t);
|
|
1520
|
+
return e;
|
|
1521
|
+
}, l.resolve = function(e) {
|
|
1522
|
+
return e instanceof this ? e : a.resolve(new this(i), e);
|
|
1523
|
+
}, l.reject = function(e) {
|
|
1524
|
+
var t = new this(i);
|
|
1525
|
+
return a.reject(t, e);
|
|
1526
|
+
}, l.all = function(e) {
|
|
1527
|
+
var t = this;
|
|
1528
|
+
if (Object.prototype.toString.call(e) !== "[object Array]") return this.reject(/* @__PURE__ */ TypeError("must be an array"));
|
|
1529
|
+
var n = e.length, r = !1;
|
|
1530
|
+
if (!n) return this.resolve([]);
|
|
1531
|
+
for (var o = Array(n), s = 0, c = -1, l = new this(i); ++c < n;) u(e[c], c);
|
|
1532
|
+
return l;
|
|
1533
|
+
function u(e, i) {
|
|
1534
|
+
t.resolve(e).then(function(e) {
|
|
1535
|
+
o[i] = e, ++s !== n || r || (r = !0, a.resolve(l, o));
|
|
1536
|
+
}, function(e) {
|
|
1537
|
+
r || (r = !0, a.reject(l, e));
|
|
1538
|
+
});
|
|
1539
|
+
}
|
|
1540
|
+
}, l.race = function(e) {
|
|
1541
|
+
var t = this;
|
|
1542
|
+
if (Object.prototype.toString.call(e) !== "[object Array]") return this.reject(/* @__PURE__ */ TypeError("must be an array"));
|
|
1543
|
+
var n = e.length, r = !1;
|
|
1544
|
+
if (!n) return this.resolve([]);
|
|
1545
|
+
for (var o = -1, s = new this(i); ++o < n;) c = e[o], t.resolve(c).then(function(e) {
|
|
1546
|
+
r || (r = !0, a.resolve(s, e));
|
|
1547
|
+
}, function(e) {
|
|
1548
|
+
r || (r = !0, a.reject(s, e));
|
|
1549
|
+
});
|
|
1550
|
+
var c;
|
|
1551
|
+
return s;
|
|
1552
|
+
};
|
|
1553
|
+
}, { immediate: 36 }],
|
|
1554
|
+
38: [function(e, t, n) {
|
|
1555
|
+
var r = {};
|
|
1556
|
+
(0, e("./lib/utils/common").assign)(r, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = r;
|
|
1557
|
+
}, {
|
|
1558
|
+
"./lib/deflate": 39,
|
|
1559
|
+
"./lib/inflate": 40,
|
|
1560
|
+
"./lib/utils/common": 41,
|
|
1561
|
+
"./lib/zlib/constants": 44
|
|
1562
|
+
}],
|
|
1563
|
+
39: [function(e, t, n) {
|
|
1564
|
+
var r = e("./zlib/deflate"), i = e("./utils/common"), a = e("./utils/strings"), o = e("./zlib/messages"), s = e("./zlib/zstream"), c = Object.prototype.toString, l = 0, u = -1, d = 0, f = 8;
|
|
1565
|
+
function p(e) {
|
|
1566
|
+
if (!(this instanceof p)) return new p(e);
|
|
1567
|
+
this.options = i.assign({
|
|
1568
|
+
level: u,
|
|
1569
|
+
method: f,
|
|
1570
|
+
chunkSize: 16384,
|
|
1571
|
+
windowBits: 15,
|
|
1572
|
+
memLevel: 8,
|
|
1573
|
+
strategy: d,
|
|
1574
|
+
to: ""
|
|
1575
|
+
}, e || {});
|
|
1576
|
+
var t = this.options;
|
|
1577
|
+
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;
|
|
1578
|
+
var n = r.deflateInit2(this.strm, t.level, t.method, t.windowBits, t.memLevel, t.strategy);
|
|
1579
|
+
if (n !== l) throw Error(o[n]);
|
|
1580
|
+
if (t.header && r.deflateSetHeader(this.strm, t.header), t.dictionary) {
|
|
1581
|
+
var m;
|
|
1582
|
+
if (m = typeof t.dictionary == "string" ? a.string2buf(t.dictionary) : c.call(t.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(t.dictionary) : t.dictionary, (n = r.deflateSetDictionary(this.strm, m)) !== l) throw Error(o[n]);
|
|
1583
|
+
this._dict_set = !0;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
function m(e, t) {
|
|
1587
|
+
var n = new p(t);
|
|
1588
|
+
if (n.push(e, !0), n.err) throw n.msg || o[n.err];
|
|
1589
|
+
return n.result;
|
|
1590
|
+
}
|
|
1591
|
+
p.prototype.push = function(e, t) {
|
|
1592
|
+
var n, o, s = this.strm, u = this.options.chunkSize;
|
|
1593
|
+
if (this.ended) return !1;
|
|
1594
|
+
o = t === ~~t ? t : !0 === t ? 4 : 0, typeof e == "string" ? s.input = a.string2buf(e) : c.call(e) === "[object ArrayBuffer]" ? s.input = new Uint8Array(e) : s.input = e, s.next_in = 0, s.avail_in = s.input.length;
|
|
1595
|
+
do {
|
|
1596
|
+
if (s.avail_out === 0 && (s.output = new i.Buf8(u), s.next_out = 0, s.avail_out = u), (n = r.deflate(s, o)) !== 1 && n !== l) return this.onEnd(n), !(this.ended = !0);
|
|
1597
|
+
s.avail_out !== 0 && (s.avail_in !== 0 || o !== 4 && o !== 2) || (this.options.to === "string" ? this.onData(a.buf2binstring(i.shrinkBuf(s.output, s.next_out))) : this.onData(i.shrinkBuf(s.output, s.next_out)));
|
|
1598
|
+
} while ((0 < s.avail_in || s.avail_out === 0) && n !== 1);
|
|
1599
|
+
return o === 4 ? (n = r.deflateEnd(this.strm), this.onEnd(n), this.ended = !0, n === l) : o !== 2 || (this.onEnd(l), !(s.avail_out = 0));
|
|
1600
|
+
}, p.prototype.onData = function(e) {
|
|
1601
|
+
this.chunks.push(e);
|
|
1602
|
+
}, p.prototype.onEnd = function(e) {
|
|
1603
|
+
e === l && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
1604
|
+
}, n.Deflate = p, n.deflate = m, n.deflateRaw = function(e, t) {
|
|
1605
|
+
return (t = t || {}).raw = !0, m(e, t);
|
|
1606
|
+
}, n.gzip = function(e, t) {
|
|
1607
|
+
return (t = t || {}).gzip = !0, m(e, t);
|
|
1608
|
+
};
|
|
1609
|
+
}, {
|
|
1610
|
+
"./utils/common": 41,
|
|
1611
|
+
"./utils/strings": 42,
|
|
1612
|
+
"./zlib/deflate": 46,
|
|
1613
|
+
"./zlib/messages": 51,
|
|
1614
|
+
"./zlib/zstream": 53
|
|
1615
|
+
}],
|
|
1616
|
+
40: [function(e, t, n) {
|
|
1617
|
+
var r = e("./zlib/inflate"), i = e("./utils/common"), a = e("./utils/strings"), o = e("./zlib/constants"), s = e("./zlib/messages"), c = e("./zlib/zstream"), l = e("./zlib/gzheader"), u = Object.prototype.toString;
|
|
1618
|
+
function d(e) {
|
|
1619
|
+
if (!(this instanceof d)) return new d(e);
|
|
1620
|
+
this.options = i.assign({
|
|
1621
|
+
chunkSize: 16384,
|
|
1622
|
+
windowBits: 0,
|
|
1623
|
+
to: ""
|
|
1624
|
+
}, e || {});
|
|
1625
|
+
var t = this.options;
|
|
1626
|
+
t.raw && 0 <= t.windowBits && t.windowBits < 16 && (t.windowBits = -t.windowBits, t.windowBits === 0 && (t.windowBits = -15)), !(0 <= t.windowBits && t.windowBits < 16) || e && e.windowBits || (t.windowBits += 32), 15 < t.windowBits && t.windowBits < 48 && !(15 & t.windowBits) && (t.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new c(), this.strm.avail_out = 0;
|
|
1627
|
+
var n = r.inflateInit2(this.strm, t.windowBits);
|
|
1628
|
+
if (n !== o.Z_OK) throw Error(s[n]);
|
|
1629
|
+
this.header = new l(), r.inflateGetHeader(this.strm, this.header);
|
|
1630
|
+
}
|
|
1631
|
+
function f(e, t) {
|
|
1632
|
+
var n = new d(t);
|
|
1633
|
+
if (n.push(e, !0), n.err) throw n.msg || s[n.err];
|
|
1634
|
+
return n.result;
|
|
1635
|
+
}
|
|
1636
|
+
d.prototype.push = function(e, t) {
|
|
1637
|
+
var n, s, c, l, d, f, p = this.strm, m = this.options.chunkSize, h = this.options.dictionary, g = !1;
|
|
1638
|
+
if (this.ended) return !1;
|
|
1639
|
+
s = t === ~~t ? t : !0 === t ? o.Z_FINISH : o.Z_NO_FLUSH, typeof e == "string" ? p.input = a.binstring2buf(e) : u.call(e) === "[object ArrayBuffer]" ? p.input = new Uint8Array(e) : p.input = e, p.next_in = 0, p.avail_in = p.input.length;
|
|
1640
|
+
do {
|
|
1641
|
+
if (p.avail_out === 0 && (p.output = new i.Buf8(m), p.next_out = 0, p.avail_out = m), (n = r.inflate(p, o.Z_NO_FLUSH)) === o.Z_NEED_DICT && h && (f = typeof h == "string" ? a.string2buf(h) : u.call(h) === "[object ArrayBuffer]" ? new Uint8Array(h) : h, n = r.inflateSetDictionary(this.strm, f)), n === o.Z_BUF_ERROR && !0 === g && (n = o.Z_OK, g = !1), n !== o.Z_STREAM_END && n !== o.Z_OK) return this.onEnd(n), !(this.ended = !0);
|
|
1642
|
+
p.next_out && (p.avail_out !== 0 && n !== o.Z_STREAM_END && (p.avail_in !== 0 || s !== o.Z_FINISH && s !== o.Z_SYNC_FLUSH) || (this.options.to === "string" ? (c = a.utf8border(p.output, p.next_out), l = p.next_out - c, d = a.buf2string(p.output, c), p.next_out = l, p.avail_out = m - l, l && i.arraySet(p.output, p.output, c, l, 0), this.onData(d)) : this.onData(i.shrinkBuf(p.output, p.next_out)))), p.avail_in === 0 && p.avail_out === 0 && (g = !0);
|
|
1643
|
+
} while ((0 < p.avail_in || p.avail_out === 0) && n !== o.Z_STREAM_END);
|
|
1644
|
+
return n === o.Z_STREAM_END && (s = o.Z_FINISH), s === o.Z_FINISH ? (n = r.inflateEnd(this.strm), this.onEnd(n), this.ended = !0, n === o.Z_OK) : s !== o.Z_SYNC_FLUSH || (this.onEnd(o.Z_OK), !(p.avail_out = 0));
|
|
1645
|
+
}, d.prototype.onData = function(e) {
|
|
1646
|
+
this.chunks.push(e);
|
|
1647
|
+
}, d.prototype.onEnd = function(e) {
|
|
1648
|
+
e === o.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)), this.chunks = [], this.err = e, this.msg = this.strm.msg;
|
|
1649
|
+
}, n.Inflate = d, n.inflate = f, n.inflateRaw = function(e, t) {
|
|
1650
|
+
return (t = t || {}).raw = !0, f(e, t);
|
|
1651
|
+
}, n.ungzip = f;
|
|
1652
|
+
}, {
|
|
1653
|
+
"./utils/common": 41,
|
|
1654
|
+
"./utils/strings": 42,
|
|
1655
|
+
"./zlib/constants": 44,
|
|
1656
|
+
"./zlib/gzheader": 47,
|
|
1657
|
+
"./zlib/inflate": 49,
|
|
1658
|
+
"./zlib/messages": 51,
|
|
1659
|
+
"./zlib/zstream": 53
|
|
1660
|
+
}],
|
|
1661
|
+
41: [function(e, t, n) {
|
|
1662
|
+
var r = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1663
|
+
n.assign = function(e) {
|
|
1664
|
+
for (var t = Array.prototype.slice.call(arguments, 1); t.length;) {
|
|
1665
|
+
var n = t.shift();
|
|
1666
|
+
if (n) {
|
|
1667
|
+
if (typeof n != "object") throw TypeError(n + "must be non-object");
|
|
1668
|
+
for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
return e;
|
|
1672
|
+
}, n.shrinkBuf = function(e, t) {
|
|
1673
|
+
return e.length === t ? e : e.subarray ? e.subarray(0, t) : (e.length = t, e);
|
|
1674
|
+
};
|
|
1675
|
+
var i = {
|
|
1676
|
+
arraySet: function(e, t, n, r, i) {
|
|
1677
|
+
if (t.subarray && e.subarray) e.set(t.subarray(n, n + r), i);
|
|
1678
|
+
else for (var a = 0; a < r; a++) e[i + a] = t[n + a];
|
|
1679
|
+
},
|
|
1680
|
+
flattenChunks: function(e) {
|
|
1681
|
+
var t, n, r, i, a, o;
|
|
1682
|
+
for (t = r = 0, n = e.length; t < n; t++) r += e[t].length;
|
|
1683
|
+
for (o = new Uint8Array(r), t = i = 0, n = e.length; t < n; t++) a = e[t], o.set(a, i), i += a.length;
|
|
1684
|
+
return o;
|
|
1685
|
+
}
|
|
1686
|
+
}, a = {
|
|
1687
|
+
arraySet: function(e, t, n, r, i) {
|
|
1688
|
+
for (var a = 0; a < r; a++) e[i + a] = t[n + a];
|
|
1689
|
+
},
|
|
1690
|
+
flattenChunks: function(e) {
|
|
1691
|
+
return [].concat.apply([], e);
|
|
1692
|
+
}
|
|
1693
|
+
};
|
|
1694
|
+
n.setTyped = function(e) {
|
|
1695
|
+
e ? (n.Buf8 = Uint8Array, n.Buf16 = Uint16Array, n.Buf32 = Int32Array, n.assign(n, i)) : (n.Buf8 = Array, n.Buf16 = Array, n.Buf32 = Array, n.assign(n, a));
|
|
1696
|
+
}, n.setTyped(r);
|
|
1697
|
+
}, {}],
|
|
1698
|
+
42: [function(e, t, n) {
|
|
1699
|
+
var r = e("./common"), i = !0, a = !0;
|
|
1700
|
+
try {
|
|
1701
|
+
String.fromCharCode.apply(null, [0]);
|
|
1702
|
+
} catch (e) {
|
|
1703
|
+
i = !1;
|
|
1704
|
+
}
|
|
1705
|
+
try {
|
|
1706
|
+
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
1707
|
+
} catch (e) {
|
|
1708
|
+
a = !1;
|
|
1709
|
+
}
|
|
1710
|
+
for (var o = new r.Buf8(256), s = 0; s < 256; s++) o[s] = 252 <= s ? 6 : 248 <= s ? 5 : 240 <= s ? 4 : 224 <= s ? 3 : 192 <= s ? 2 : 1;
|
|
1711
|
+
function c(e, t) {
|
|
1712
|
+
if (t < 65537 && (e.subarray && a || !e.subarray && i)) return String.fromCharCode.apply(null, r.shrinkBuf(e, t));
|
|
1713
|
+
for (var n = "", o = 0; o < t; o++) n += String.fromCharCode(e[o]);
|
|
1714
|
+
return n;
|
|
1715
|
+
}
|
|
1716
|
+
o[254] = o[254] = 1, n.string2buf = function(e) {
|
|
1717
|
+
var t, n, i, a, o, s = e.length, c = 0;
|
|
1718
|
+
for (a = 0; a < s; a++) (64512 & (n = e.charCodeAt(a))) == 55296 && a + 1 < s && (64512 & (i = e.charCodeAt(a + 1))) == 56320 && (n = 65536 + (n - 55296 << 10) + (i - 56320), a++), c += n < 128 ? 1 : n < 2048 ? 2 : n < 65536 ? 3 : 4;
|
|
1719
|
+
for (t = new r.Buf8(c), a = o = 0; o < c; a++) (64512 & (n = e.charCodeAt(a))) == 55296 && a + 1 < s && (64512 & (i = e.charCodeAt(a + 1))) == 56320 && (n = 65536 + (n - 55296 << 10) + (i - 56320), a++), n < 128 ? t[o++] = n : (n < 2048 ? t[o++] = 192 | n >>> 6 : (n < 65536 ? t[o++] = 224 | n >>> 12 : (t[o++] = 240 | n >>> 18, t[o++] = 128 | n >>> 12 & 63), t[o++] = 128 | n >>> 6 & 63), t[o++] = 128 | 63 & n);
|
|
1720
|
+
return t;
|
|
1721
|
+
}, n.buf2binstring = function(e) {
|
|
1722
|
+
return c(e, e.length);
|
|
1723
|
+
}, n.binstring2buf = function(e) {
|
|
1724
|
+
for (var t = new r.Buf8(e.length), n = 0, i = t.length; n < i; n++) t[n] = e.charCodeAt(n);
|
|
1725
|
+
return t;
|
|
1726
|
+
}, n.buf2string = function(e, t) {
|
|
1727
|
+
var n, r, i, a, s = t || e.length, l = Array(2 * s);
|
|
1728
|
+
for (n = r = 0; n < s;) if ((i = e[n++]) < 128) l[r++] = i;
|
|
1729
|
+
else if (4 < (a = o[i])) l[r++] = 65533, n += a - 1;
|
|
1730
|
+
else {
|
|
1731
|
+
for (i &= a === 2 ? 31 : a === 3 ? 15 : 7; 1 < a && n < s;) i = i << 6 | 63 & e[n++], a--;
|
|
1732
|
+
1 < a ? l[r++] = 65533 : i < 65536 ? l[r++] = i : (i -= 65536, l[r++] = 55296 | i >> 10 & 1023, l[r++] = 56320 | 1023 & i);
|
|
1733
|
+
}
|
|
1734
|
+
return c(l, r);
|
|
1735
|
+
}, n.utf8border = function(e, t) {
|
|
1736
|
+
var n;
|
|
1737
|
+
for ((t = t || e.length) > e.length && (t = e.length), n = t - 1; 0 <= n && (192 & e[n]) == 128;) n--;
|
|
1738
|
+
return n < 0 || n === 0 ? t : n + o[e[n]] > t ? n : t;
|
|
1739
|
+
};
|
|
1740
|
+
}, { "./common": 41 }],
|
|
1741
|
+
43: [function(e, t, n) {
|
|
1742
|
+
t.exports = function(e, t, n, r) {
|
|
1743
|
+
for (var i = 65535 & e | 0, a = e >>> 16 & 65535 | 0, o = 0; n !== 0;) {
|
|
1744
|
+
for (n -= o = 2e3 < n ? 2e3 : n; a = a + (i = i + t[r++] | 0) | 0, --o;);
|
|
1745
|
+
i %= 65521, a %= 65521;
|
|
1746
|
+
}
|
|
1747
|
+
return i | a << 16 | 0;
|
|
1748
|
+
};
|
|
1749
|
+
}, {}],
|
|
1750
|
+
44: [function(e, t, n) {
|
|
1751
|
+
t.exports = {
|
|
1752
|
+
Z_NO_FLUSH: 0,
|
|
1753
|
+
Z_PARTIAL_FLUSH: 1,
|
|
1754
|
+
Z_SYNC_FLUSH: 2,
|
|
1755
|
+
Z_FULL_FLUSH: 3,
|
|
1756
|
+
Z_FINISH: 4,
|
|
1757
|
+
Z_BLOCK: 5,
|
|
1758
|
+
Z_TREES: 6,
|
|
1759
|
+
Z_OK: 0,
|
|
1760
|
+
Z_STREAM_END: 1,
|
|
1761
|
+
Z_NEED_DICT: 2,
|
|
1762
|
+
Z_ERRNO: -1,
|
|
1763
|
+
Z_STREAM_ERROR: -2,
|
|
1764
|
+
Z_DATA_ERROR: -3,
|
|
1765
|
+
Z_BUF_ERROR: -5,
|
|
1766
|
+
Z_NO_COMPRESSION: 0,
|
|
1767
|
+
Z_BEST_SPEED: 1,
|
|
1768
|
+
Z_BEST_COMPRESSION: 9,
|
|
1769
|
+
Z_DEFAULT_COMPRESSION: -1,
|
|
1770
|
+
Z_FILTERED: 1,
|
|
1771
|
+
Z_HUFFMAN_ONLY: 2,
|
|
1772
|
+
Z_RLE: 3,
|
|
1773
|
+
Z_FIXED: 4,
|
|
1774
|
+
Z_DEFAULT_STRATEGY: 0,
|
|
1775
|
+
Z_BINARY: 0,
|
|
1776
|
+
Z_TEXT: 1,
|
|
1777
|
+
Z_UNKNOWN: 2,
|
|
1778
|
+
Z_DEFLATED: 8
|
|
1779
|
+
};
|
|
1780
|
+
}, {}],
|
|
1781
|
+
45: [function(e, t, n) {
|
|
1782
|
+
var r = function() {
|
|
1783
|
+
for (var e, t = [], n = 0; n < 256; n++) {
|
|
1784
|
+
e = n;
|
|
1785
|
+
for (var r = 0; r < 8; r++) e = 1 & e ? 3988292384 ^ e >>> 1 : e >>> 1;
|
|
1786
|
+
t[n] = e;
|
|
1787
|
+
}
|
|
1788
|
+
return t;
|
|
1789
|
+
}();
|
|
1790
|
+
t.exports = function(e, t, n, i) {
|
|
1791
|
+
var a = r, o = i + n;
|
|
1792
|
+
e ^= -1;
|
|
1793
|
+
for (var s = i; s < o; s++) e = e >>> 8 ^ a[255 & (e ^ t[s])];
|
|
1794
|
+
return -1 ^ e;
|
|
1795
|
+
};
|
|
1796
|
+
}, {}],
|
|
1797
|
+
46: [function(e, t, n) {
|
|
1798
|
+
var r, i = e("../utils/common"), a = e("./trees"), o = e("./adler32"), s = e("./crc32"), c = e("./messages"), l = 0, u = 4, d = 0, f = -2, p = -1, m = 4, h = 2, g = 8, _ = 9, v = 286, y = 30, b = 19, x = 2 * v + 1, S = 15, C = 3, w = 258, T = w + C + 1, E = 42, D = 113, O = 1, k = 2, A = 3, j = 4;
|
|
1799
|
+
function M(e, t) {
|
|
1800
|
+
return e.msg = c[t], t;
|
|
1801
|
+
}
|
|
1802
|
+
function N(e) {
|
|
1803
|
+
return (e << 1) - (4 < e ? 9 : 0);
|
|
1804
|
+
}
|
|
1805
|
+
function P(e) {
|
|
1806
|
+
for (var t = e.length; 0 <= --t;) e[t] = 0;
|
|
1807
|
+
}
|
|
1808
|
+
function F(e) {
|
|
1809
|
+
var t = e.state, n = t.pending;
|
|
1810
|
+
n > e.avail_out && (n = e.avail_out), n !== 0 && (i.arraySet(e.output, t.pending_buf, t.pending_out, n, e.next_out), e.next_out += n, t.pending_out += n, e.total_out += n, e.avail_out -= n, t.pending -= n, t.pending === 0 && (t.pending_out = 0));
|
|
1811
|
+
}
|
|
1812
|
+
function I(e, t) {
|
|
1813
|
+
a._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);
|
|
1814
|
+
}
|
|
1815
|
+
function L(e, t) {
|
|
1816
|
+
e.pending_buf[e.pending++] = t;
|
|
1817
|
+
}
|
|
1818
|
+
function R(e, t) {
|
|
1819
|
+
e.pending_buf[e.pending++] = t >>> 8 & 255, e.pending_buf[e.pending++] = 255 & t;
|
|
1820
|
+
}
|
|
1821
|
+
function z(e, t) {
|
|
1822
|
+
var n, r, i = e.max_chain_length, a = e.strstart, o = e.prev_length, s = e.nice_match, c = e.strstart > e.w_size - T ? e.strstart - (e.w_size - T) : 0, l = e.window, u = e.w_mask, d = e.prev, f = e.strstart + w, p = l[a + o - 1], m = l[a + o];
|
|
1823
|
+
e.prev_length >= e.good_match && (i >>= 2), s > e.lookahead && (s = e.lookahead);
|
|
1824
|
+
do
|
|
1825
|
+
if (l[(n = t) + o] === m && l[n + o - 1] === p && l[n] === l[a] && l[++n] === l[a + 1]) {
|
|
1826
|
+
a += 2, n++;
|
|
1827
|
+
do ;
|
|
1828
|
+
while (l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && l[++a] === l[++n] && a < f);
|
|
1829
|
+
if (r = w - (f - a), a = f - w, o < r) {
|
|
1830
|
+
if (e.match_start = t, s <= (o = r)) break;
|
|
1831
|
+
p = l[a + o - 1], m = l[a + o];
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
while ((t = d[t & u]) > c && --i != 0);
|
|
1835
|
+
return o <= e.lookahead ? o : e.lookahead;
|
|
1836
|
+
}
|
|
1837
|
+
function B(e) {
|
|
1838
|
+
var t, n, r, a, c, l, u, d, f, p, m = e.w_size;
|
|
1839
|
+
do {
|
|
1840
|
+
if (a = e.window_size - e.lookahead - e.strstart, e.strstart >= m + (m - T)) {
|
|
1841
|
+
for (i.arraySet(e.window, e.window, m, m, 0), e.match_start -= m, e.strstart -= m, e.block_start -= m, t = n = e.hash_size; r = e.head[--t], e.head[t] = m <= r ? r - m : 0, --n;);
|
|
1842
|
+
for (t = n = m; r = e.prev[--t], e.prev[t] = m <= r ? r - m : 0, --n;);
|
|
1843
|
+
a += m;
|
|
1844
|
+
}
|
|
1845
|
+
if (e.strm.avail_in === 0) break;
|
|
1846
|
+
if (l = e.strm, u = e.window, d = e.strstart + e.lookahead, f = a, p = void 0, p = l.avail_in, f < p && (p = f), n = p === 0 ? 0 : (l.avail_in -= p, i.arraySet(u, l.input, l.next_in, p, d), l.state.wrap === 1 ? l.adler = o(l.adler, u, p, d) : l.state.wrap === 2 && (l.adler = s(l.adler, u, p, d)), l.next_in += p, l.total_in += p, p), e.lookahead += n, e.lookahead + e.insert >= C) for (c = e.strstart - e.insert, e.ins_h = e.window[c], e.ins_h = (e.ins_h << e.hash_shift ^ e.window[c + 1]) & e.hash_mask; e.insert && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[c + C - 1]) & e.hash_mask, e.prev[c & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = c, c++, e.insert--, !(e.lookahead + e.insert < C)););
|
|
1847
|
+
} while (e.lookahead < T && e.strm.avail_in !== 0);
|
|
1848
|
+
}
|
|
1849
|
+
function V(e, t) {
|
|
1850
|
+
for (var n, r;;) {
|
|
1851
|
+
if (e.lookahead < T) {
|
|
1852
|
+
if (B(e), e.lookahead < T && t === l) return O;
|
|
1853
|
+
if (e.lookahead === 0) break;
|
|
1854
|
+
}
|
|
1855
|
+
if (n = 0, e.lookahead >= C && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), n !== 0 && e.strstart - n <= e.w_size - T && (e.match_length = z(e, n)), e.match_length >= C) if (r = a._tr_tally(e, e.strstart - e.match_start, e.match_length - C), e.lookahead -= e.match_length, e.match_length <= e.max_lazy_match && e.lookahead >= C) {
|
|
1856
|
+
for (e.match_length--; e.strstart++, e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart, --e.match_length != 0;);
|
|
1857
|
+
e.strstart++;
|
|
1858
|
+
} 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;
|
|
1859
|
+
else r = a._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++;
|
|
1860
|
+
if (r && (I(e, !1), e.strm.avail_out === 0)) return O;
|
|
1861
|
+
}
|
|
1862
|
+
return e.insert = e.strstart < C - 1 ? e.strstart : C - 1, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : e.last_lit && (I(e, !1), e.strm.avail_out === 0) ? O : k;
|
|
1863
|
+
}
|
|
1864
|
+
function H(e, t) {
|
|
1865
|
+
for (var n, r, i;;) {
|
|
1866
|
+
if (e.lookahead < T) {
|
|
1867
|
+
if (B(e), e.lookahead < T && t === l) return O;
|
|
1868
|
+
if (e.lookahead === 0) break;
|
|
1869
|
+
}
|
|
1870
|
+
if (n = 0, e.lookahead >= C && (e.ins_h = (e.ins_h << e.hash_shift ^ e.window[e.strstart + C - 1]) & e.hash_mask, n = 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 = C - 1, n !== 0 && e.prev_length < e.max_lazy_match && e.strstart - n <= e.w_size - T && (e.match_length = z(e, n), e.match_length <= 5 && (e.strategy === 1 || e.match_length === C && 4096 < e.strstart - e.match_start) && (e.match_length = C - 1)), e.prev_length >= C && e.match_length <= e.prev_length) {
|
|
1871
|
+
for (i = e.strstart + e.lookahead - C, r = a._tr_tally(e, e.strstart - 1 - e.prev_match, e.prev_length - C), 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 + C - 1]) & e.hash_mask, n = e.prev[e.strstart & e.w_mask] = e.head[e.ins_h], e.head[e.ins_h] = e.strstart), --e.prev_length != 0;);
|
|
1872
|
+
if (e.match_available = 0, e.match_length = C - 1, e.strstart++, r && (I(e, !1), e.strm.avail_out === 0)) return O;
|
|
1873
|
+
} else if (e.match_available) {
|
|
1874
|
+
if ((r = a._tr_tally(e, 0, e.window[e.strstart - 1])) && I(e, !1), e.strstart++, e.lookahead--, e.strm.avail_out === 0) return O;
|
|
1875
|
+
} else e.match_available = 1, e.strstart++, e.lookahead--;
|
|
1876
|
+
}
|
|
1877
|
+
return e.match_available && (r = a._tr_tally(e, 0, e.window[e.strstart - 1]), e.match_available = 0), e.insert = e.strstart < C - 1 ? e.strstart : C - 1, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : e.last_lit && (I(e, !1), e.strm.avail_out === 0) ? O : k;
|
|
1878
|
+
}
|
|
1879
|
+
function U(e, t, n, r, i) {
|
|
1880
|
+
this.good_length = e, this.max_lazy = t, this.nice_length = n, this.max_chain = r, this.func = i;
|
|
1881
|
+
}
|
|
1882
|
+
function W() {
|
|
1883
|
+
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = g, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new i.Buf16(2 * x), this.dyn_dtree = new i.Buf16(2 * (2 * y + 1)), this.bl_tree = new i.Buf16(2 * (2 * b + 1)), P(this.dyn_ltree), P(this.dyn_dtree), P(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new i.Buf16(S + 1), this.heap = new i.Buf16(2 * v + 1), P(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new i.Buf16(2 * v + 1), P(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;
|
|
1884
|
+
}
|
|
1885
|
+
function G(e) {
|
|
1886
|
+
var t;
|
|
1887
|
+
return e && e.state ? (e.total_in = e.total_out = 0, e.data_type = h, (t = e.state).pending = 0, t.pending_out = 0, t.wrap < 0 && (t.wrap = -t.wrap), t.status = t.wrap ? E : D, e.adler = t.wrap === 2 ? 0 : 1, t.last_flush = l, a._tr_init(t), d) : M(e, f);
|
|
1888
|
+
}
|
|
1889
|
+
function K(e) {
|
|
1890
|
+
var t = G(e);
|
|
1891
|
+
return t === d && function(e) {
|
|
1892
|
+
e.window_size = 2 * e.w_size, P(e.head), e.max_lazy_match = r[e.level].max_lazy, e.good_match = r[e.level].good_length, e.nice_match = r[e.level].nice_length, e.max_chain_length = r[e.level].max_chain, e.strstart = 0, e.block_start = 0, e.lookahead = 0, e.insert = 0, e.match_length = e.prev_length = C - 1, e.match_available = 0, e.ins_h = 0;
|
|
1893
|
+
}(e.state), t;
|
|
1894
|
+
}
|
|
1895
|
+
function q(e, t, n, r, a, o) {
|
|
1896
|
+
if (!e) return f;
|
|
1897
|
+
var s = 1;
|
|
1898
|
+
if (t === p && (t = 6), r < 0 ? (s = 0, r = -r) : 15 < r && (s = 2, r -= 16), a < 1 || _ < a || n !== g || r < 8 || 15 < r || t < 0 || 9 < t || o < 0 || m < o) return M(e, f);
|
|
1899
|
+
r === 8 && (r = 9);
|
|
1900
|
+
var c = new W();
|
|
1901
|
+
return (e.state = c).strm = e, c.wrap = s, c.gzhead = null, c.w_bits = r, c.w_size = 1 << c.w_bits, c.w_mask = c.w_size - 1, c.hash_bits = a + 7, c.hash_size = 1 << c.hash_bits, c.hash_mask = c.hash_size - 1, c.hash_shift = ~~((c.hash_bits + C - 1) / C), c.window = new i.Buf8(2 * c.w_size), c.head = new i.Buf16(c.hash_size), c.prev = new i.Buf16(c.w_size), c.lit_bufsize = 1 << a + 6, c.pending_buf_size = 4 * c.lit_bufsize, c.pending_buf = new i.Buf8(c.pending_buf_size), c.d_buf = 1 * c.lit_bufsize, c.l_buf = 3 * c.lit_bufsize, c.level = t, c.strategy = o, c.method = n, K(e);
|
|
1902
|
+
}
|
|
1903
|
+
r = [
|
|
1904
|
+
new U(0, 0, 0, 0, function(e, t) {
|
|
1905
|
+
var n = 65535;
|
|
1906
|
+
for (n > e.pending_buf_size - 5 && (n = e.pending_buf_size - 5);;) {
|
|
1907
|
+
if (e.lookahead <= 1) {
|
|
1908
|
+
if (B(e), e.lookahead === 0 && t === l) return O;
|
|
1909
|
+
if (e.lookahead === 0) break;
|
|
1910
|
+
}
|
|
1911
|
+
e.strstart += e.lookahead, e.lookahead = 0;
|
|
1912
|
+
var r = e.block_start + n;
|
|
1913
|
+
if ((e.strstart === 0 || e.strstart >= r) && (e.lookahead = e.strstart - r, e.strstart = r, I(e, !1), e.strm.avail_out === 0) || e.strstart - e.block_start >= e.w_size - T && (I(e, !1), e.strm.avail_out === 0)) return O;
|
|
1914
|
+
}
|
|
1915
|
+
return e.insert = 0, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : (e.strstart > e.block_start && (I(e, !1), e.strm.avail_out), O);
|
|
1916
|
+
}),
|
|
1917
|
+
new U(4, 4, 8, 4, V),
|
|
1918
|
+
new U(4, 5, 16, 8, V),
|
|
1919
|
+
new U(4, 6, 32, 32, V),
|
|
1920
|
+
new U(4, 4, 16, 16, H),
|
|
1921
|
+
new U(8, 16, 32, 32, H),
|
|
1922
|
+
new U(8, 16, 128, 128, H),
|
|
1923
|
+
new U(8, 32, 128, 256, H),
|
|
1924
|
+
new U(32, 128, 258, 1024, H),
|
|
1925
|
+
new U(32, 258, 258, 4096, H)
|
|
1926
|
+
], n.deflateInit = function(e, t) {
|
|
1927
|
+
return q(e, t, g, 15, 8, 0);
|
|
1928
|
+
}, n.deflateInit2 = q, n.deflateReset = K, n.deflateResetKeep = G, n.deflateSetHeader = function(e, t) {
|
|
1929
|
+
return e && e.state && e.state.wrap === 2 ? (e.state.gzhead = t, d) : f;
|
|
1930
|
+
}, n.deflate = function(e, t) {
|
|
1931
|
+
var n, i, o, c;
|
|
1932
|
+
if (!e || !e.state || 5 < t || t < 0) return e ? M(e, f) : f;
|
|
1933
|
+
if (i = e.state, !e.output || !e.input && e.avail_in !== 0 || i.status === 666 && t !== u) return M(e, e.avail_out === 0 ? -5 : f);
|
|
1934
|
+
if (i.strm = e, n = i.last_flush, i.last_flush = t, i.status === E) if (i.wrap === 2) e.adler = 0, L(i, 31), L(i, 139), L(i, 8), i.gzhead ? (L(i, +!!i.gzhead.text + (i.gzhead.hcrc ? 2 : 0) + (i.gzhead.extra ? 4 : 0) + (i.gzhead.name ? 8 : 0) + (i.gzhead.comment ? 16 : 0)), L(i, 255 & i.gzhead.time), L(i, i.gzhead.time >> 8 & 255), L(i, i.gzhead.time >> 16 & 255), L(i, i.gzhead.time >> 24 & 255), L(i, i.level === 9 ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0), L(i, 255 & i.gzhead.os), i.gzhead.extra && i.gzhead.extra.length && (L(i, 255 & i.gzhead.extra.length), L(i, i.gzhead.extra.length >> 8 & 255)), i.gzhead.hcrc && (e.adler = s(e.adler, i.pending_buf, i.pending, 0)), i.gzindex = 0, i.status = 69) : (L(i, 0), L(i, 0), L(i, 0), L(i, 0), L(i, 0), L(i, i.level === 9 ? 2 : 2 <= i.strategy || i.level < 2 ? 4 : 0), L(i, 3), i.status = D);
|
|
1935
|
+
else {
|
|
1936
|
+
var p = g + (i.w_bits - 8 << 4) << 8;
|
|
1937
|
+
p |= (2 <= i.strategy || i.level < 2 ? 0 : i.level < 6 ? 1 : i.level === 6 ? 2 : 3) << 6, i.strstart !== 0 && (p |= 32), p += 31 - p % 31, i.status = D, R(i, p), i.strstart !== 0 && (R(i, e.adler >>> 16), R(i, 65535 & e.adler)), e.adler = 1;
|
|
1938
|
+
}
|
|
1939
|
+
if (i.status === 69) if (i.gzhead.extra) {
|
|
1940
|
+
for (o = i.pending; i.gzindex < (65535 & i.gzhead.extra.length) && (i.pending !== i.pending_buf_size || (i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), F(e), o = i.pending, i.pending !== i.pending_buf_size));) L(i, 255 & i.gzhead.extra[i.gzindex]), i.gzindex++;
|
|
1941
|
+
i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), i.gzindex === i.gzhead.extra.length && (i.gzindex = 0, i.status = 73);
|
|
1942
|
+
} else i.status = 73;
|
|
1943
|
+
if (i.status === 73) if (i.gzhead.name) {
|
|
1944
|
+
o = i.pending;
|
|
1945
|
+
do {
|
|
1946
|
+
if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), F(e), o = i.pending, i.pending === i.pending_buf_size)) {
|
|
1947
|
+
c = 1;
|
|
1948
|
+
break;
|
|
1949
|
+
}
|
|
1950
|
+
c = i.gzindex < i.gzhead.name.length ? 255 & i.gzhead.name.charCodeAt(i.gzindex++) : 0, L(i, c);
|
|
1951
|
+
} while (c !== 0);
|
|
1952
|
+
i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), c === 0 && (i.gzindex = 0, i.status = 91);
|
|
1953
|
+
} else i.status = 91;
|
|
1954
|
+
if (i.status === 91) if (i.gzhead.comment) {
|
|
1955
|
+
o = i.pending;
|
|
1956
|
+
do {
|
|
1957
|
+
if (i.pending === i.pending_buf_size && (i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), F(e), o = i.pending, i.pending === i.pending_buf_size)) {
|
|
1958
|
+
c = 1;
|
|
1959
|
+
break;
|
|
1960
|
+
}
|
|
1961
|
+
c = i.gzindex < i.gzhead.comment.length ? 255 & i.gzhead.comment.charCodeAt(i.gzindex++) : 0, L(i, c);
|
|
1962
|
+
} while (c !== 0);
|
|
1963
|
+
i.gzhead.hcrc && i.pending > o && (e.adler = s(e.adler, i.pending_buf, i.pending - o, o)), c === 0 && (i.status = 103);
|
|
1964
|
+
} else i.status = 103;
|
|
1965
|
+
if (i.status === 103 && (i.gzhead.hcrc ? (i.pending + 2 > i.pending_buf_size && F(e), i.pending + 2 <= i.pending_buf_size && (L(i, 255 & e.adler), L(i, e.adler >> 8 & 255), e.adler = 0, i.status = D)) : i.status = D), i.pending !== 0) {
|
|
1966
|
+
if (F(e), e.avail_out === 0) return i.last_flush = -1, d;
|
|
1967
|
+
} else if (e.avail_in === 0 && N(t) <= N(n) && t !== u) return M(e, -5);
|
|
1968
|
+
if (i.status === 666 && e.avail_in !== 0) return M(e, -5);
|
|
1969
|
+
if (e.avail_in !== 0 || i.lookahead !== 0 || t !== l && i.status !== 666) {
|
|
1970
|
+
var m = i.strategy === 2 ? function(e, t) {
|
|
1971
|
+
for (var n;;) {
|
|
1972
|
+
if (e.lookahead === 0 && (B(e), e.lookahead === 0)) {
|
|
1973
|
+
if (t === l) return O;
|
|
1974
|
+
break;
|
|
1975
|
+
}
|
|
1976
|
+
if (e.match_length = 0, n = a._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++, n && (I(e, !1), e.strm.avail_out === 0)) return O;
|
|
1977
|
+
}
|
|
1978
|
+
return e.insert = 0, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : e.last_lit && (I(e, !1), e.strm.avail_out === 0) ? O : k;
|
|
1979
|
+
}(i, t) : i.strategy === 3 ? function(e, t) {
|
|
1980
|
+
for (var n, r, i, o, s = e.window;;) {
|
|
1981
|
+
if (e.lookahead <= w) {
|
|
1982
|
+
if (B(e), e.lookahead <= w && t === l) return O;
|
|
1983
|
+
if (e.lookahead === 0) break;
|
|
1984
|
+
}
|
|
1985
|
+
if (e.match_length = 0, e.lookahead >= C && 0 < e.strstart && (r = s[i = e.strstart - 1]) === s[++i] && r === s[++i] && r === s[++i]) {
|
|
1986
|
+
o = e.strstart + w;
|
|
1987
|
+
do ;
|
|
1988
|
+
while (r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && r === s[++i] && i < o);
|
|
1989
|
+
e.match_length = w - (o - i), e.match_length > e.lookahead && (e.match_length = e.lookahead);
|
|
1990
|
+
}
|
|
1991
|
+
if (e.match_length >= C ? (n = a._tr_tally(e, 1, e.match_length - C), e.lookahead -= e.match_length, e.strstart += e.match_length, e.match_length = 0) : (n = a._tr_tally(e, 0, e.window[e.strstart]), e.lookahead--, e.strstart++), n && (I(e, !1), e.strm.avail_out === 0)) return O;
|
|
1992
|
+
}
|
|
1993
|
+
return e.insert = 0, t === u ? (I(e, !0), e.strm.avail_out === 0 ? A : j) : e.last_lit && (I(e, !1), e.strm.avail_out === 0) ? O : k;
|
|
1994
|
+
}(i, t) : r[i.level].func(i, t);
|
|
1995
|
+
if (m !== A && m !== j || (i.status = 666), m === O || m === A) return e.avail_out === 0 && (i.last_flush = -1), d;
|
|
1996
|
+
if (m === k && (t === 1 ? a._tr_align(i) : t !== 5 && (a._tr_stored_block(i, 0, 0, !1), t === 3 && (P(i.head), i.lookahead === 0 && (i.strstart = 0, i.block_start = 0, i.insert = 0))), F(e), e.avail_out === 0)) return i.last_flush = -1, d;
|
|
1997
|
+
}
|
|
1998
|
+
return t === u ? i.wrap <= 0 ? 1 : (i.wrap === 2 ? (L(i, 255 & e.adler), L(i, e.adler >> 8 & 255), L(i, e.adler >> 16 & 255), L(i, e.adler >> 24 & 255), L(i, 255 & e.total_in), L(i, e.total_in >> 8 & 255), L(i, e.total_in >> 16 & 255), L(i, e.total_in >> 24 & 255)) : (R(i, e.adler >>> 16), R(i, 65535 & e.adler)), F(e), 0 < i.wrap && (i.wrap = -i.wrap), i.pending === 0 ? 1 : d) : d;
|
|
1999
|
+
}, n.deflateEnd = function(e) {
|
|
2000
|
+
var t;
|
|
2001
|
+
return e && e.state ? (t = e.state.status) !== E && t !== 69 && t !== 73 && t !== 91 && t !== 103 && t !== D && t !== 666 ? M(e, f) : (e.state = null, t === D ? M(e, -3) : d) : f;
|
|
2002
|
+
}, n.deflateSetDictionary = function(e, t) {
|
|
2003
|
+
var n, r, a, s, c, l, u, p, m = t.length;
|
|
2004
|
+
if (!e || !e.state || (s = (n = e.state).wrap) === 2 || s === 1 && n.status !== E || n.lookahead) return f;
|
|
2005
|
+
for (s === 1 && (e.adler = o(e.adler, t, m, 0)), n.wrap = 0, m >= n.w_size && (s === 0 && (P(n.head), n.strstart = 0, n.block_start = 0, n.insert = 0), p = new i.Buf8(n.w_size), i.arraySet(p, t, m - n.w_size, n.w_size, 0), t = p, m = n.w_size), c = e.avail_in, l = e.next_in, u = e.input, e.avail_in = m, e.next_in = 0, e.input = t, B(n); n.lookahead >= C;) {
|
|
2006
|
+
for (r = n.strstart, a = n.lookahead - (C - 1); n.ins_h = (n.ins_h << n.hash_shift ^ n.window[r + C - 1]) & n.hash_mask, n.prev[r & n.w_mask] = n.head[n.ins_h], n.head[n.ins_h] = r, r++, --a;);
|
|
2007
|
+
n.strstart = r, n.lookahead = C - 1, B(n);
|
|
2008
|
+
}
|
|
2009
|
+
return n.strstart += n.lookahead, n.block_start = n.strstart, n.insert = n.lookahead, n.lookahead = 0, n.match_length = n.prev_length = C - 1, n.match_available = 0, e.next_in = l, e.input = u, e.avail_in = c, n.wrap = s, d;
|
|
2010
|
+
}, n.deflateInfo = "pako deflate (from Nodeca project)";
|
|
2011
|
+
}, {
|
|
2012
|
+
"../utils/common": 41,
|
|
2013
|
+
"./adler32": 43,
|
|
2014
|
+
"./crc32": 45,
|
|
2015
|
+
"./messages": 51,
|
|
2016
|
+
"./trees": 52
|
|
2017
|
+
}],
|
|
2018
|
+
47: [function(e, t, n) {
|
|
2019
|
+
t.exports = function() {
|
|
2020
|
+
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;
|
|
2021
|
+
};
|
|
2022
|
+
}, {}],
|
|
2023
|
+
48: [function(e, t, n) {
|
|
2024
|
+
t.exports = function(e, t) {
|
|
2025
|
+
var n = e.state, r = e.next_in, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T = e.input, E;
|
|
2026
|
+
i = r + (e.avail_in - 5), a = e.next_out, E = e.output, o = a - (t - e.avail_out), s = a + (e.avail_out - 257), c = n.dmax, l = n.wsize, u = n.whave, d = n.wnext, f = n.window, p = n.hold, m = n.bits, h = n.lencode, g = n.distcode, _ = (1 << n.lenbits) - 1, v = (1 << n.distbits) - 1;
|
|
2027
|
+
e: do {
|
|
2028
|
+
m < 15 && (p += T[r++] << m, m += 8, p += T[r++] << m, m += 8), y = h[p & _];
|
|
2029
|
+
t: for (;;) {
|
|
2030
|
+
if (p >>>= b = y >>> 24, m -= b, (b = y >>> 16 & 255) == 0) E[a++] = 65535 & y;
|
|
2031
|
+
else {
|
|
2032
|
+
if (!(16 & b)) {
|
|
2033
|
+
if (!(64 & b)) {
|
|
2034
|
+
y = h[(65535 & y) + (p & (1 << b) - 1)];
|
|
2035
|
+
continue t;
|
|
2036
|
+
}
|
|
2037
|
+
if (32 & b) {
|
|
2038
|
+
n.mode = 12;
|
|
2039
|
+
break e;
|
|
2040
|
+
}
|
|
2041
|
+
e.msg = "invalid literal/length code", n.mode = 30;
|
|
2042
|
+
break e;
|
|
2043
|
+
}
|
|
2044
|
+
x = 65535 & y, (b &= 15) && (m < b && (p += T[r++] << m, m += 8), x += p & (1 << b) - 1, p >>>= b, m -= b), m < 15 && (p += T[r++] << m, m += 8, p += T[r++] << m, m += 8), y = g[p & v];
|
|
2045
|
+
r: for (;;) {
|
|
2046
|
+
if (p >>>= b = y >>> 24, m -= b, !(16 & (b = y >>> 16 & 255))) {
|
|
2047
|
+
if (!(64 & b)) {
|
|
2048
|
+
y = g[(65535 & y) + (p & (1 << b) - 1)];
|
|
2049
|
+
continue r;
|
|
2050
|
+
}
|
|
2051
|
+
e.msg = "invalid distance code", n.mode = 30;
|
|
2052
|
+
break e;
|
|
2053
|
+
}
|
|
2054
|
+
if (S = 65535 & y, m < (b &= 15) && (p += T[r++] << m, (m += 8) < b && (p += T[r++] << m, m += 8)), c < (S += p & (1 << b) - 1)) {
|
|
2055
|
+
e.msg = "invalid distance too far back", n.mode = 30;
|
|
2056
|
+
break e;
|
|
2057
|
+
}
|
|
2058
|
+
if (p >>>= b, m -= b, (b = a - o) < S) {
|
|
2059
|
+
if (u < (b = S - b) && n.sane) {
|
|
2060
|
+
e.msg = "invalid distance too far back", n.mode = 30;
|
|
2061
|
+
break e;
|
|
2062
|
+
}
|
|
2063
|
+
if (w = f, (C = 0) === d) {
|
|
2064
|
+
if (C += l - b, b < x) {
|
|
2065
|
+
for (x -= b; E[a++] = f[C++], --b;);
|
|
2066
|
+
C = a - S, w = E;
|
|
2067
|
+
}
|
|
2068
|
+
} else if (d < b) {
|
|
2069
|
+
if (C += l + d - b, (b -= d) < x) {
|
|
2070
|
+
for (x -= b; E[a++] = f[C++], --b;);
|
|
2071
|
+
if (C = 0, d < x) {
|
|
2072
|
+
for (x -= b = d; E[a++] = f[C++], --b;);
|
|
2073
|
+
C = a - S, w = E;
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
} else if (C += d - b, b < x) {
|
|
2077
|
+
for (x -= b; E[a++] = f[C++], --b;);
|
|
2078
|
+
C = a - S, w = E;
|
|
2079
|
+
}
|
|
2080
|
+
for (; 2 < x;) E[a++] = w[C++], E[a++] = w[C++], E[a++] = w[C++], x -= 3;
|
|
2081
|
+
x && (E[a++] = w[C++], 1 < x && (E[a++] = w[C++]));
|
|
2082
|
+
} else {
|
|
2083
|
+
for (C = a - S; E[a++] = E[C++], E[a++] = E[C++], E[a++] = E[C++], 2 < (x -= 3););
|
|
2084
|
+
x && (E[a++] = E[C++], 1 < x && (E[a++] = E[C++]));
|
|
2085
|
+
}
|
|
2086
|
+
break;
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
break;
|
|
2090
|
+
}
|
|
2091
|
+
} while (r < i && a < s);
|
|
2092
|
+
r -= x = m >> 3, p &= (1 << (m -= x << 3)) - 1, e.next_in = r, e.next_out = a, e.avail_in = r < i ? i - r + 5 : 5 - (r - i), e.avail_out = a < s ? s - a + 257 : 257 - (a - s), n.hold = p, n.bits = m;
|
|
2093
|
+
};
|
|
2094
|
+
}, {}],
|
|
2095
|
+
49: [function(e, t, n) {
|
|
2096
|
+
var r = e("../utils/common"), i = e("./adler32"), a = e("./crc32"), o = e("./inffast"), s = e("./inftrees"), c = 1, l = 2, u = 0, d = -2, f = 1, p = 852, m = 592;
|
|
2097
|
+
function h(e) {
|
|
2098
|
+
return (e >>> 24 & 255) + (e >>> 8 & 65280) + ((65280 & e) << 8) + ((255 & e) << 24);
|
|
2099
|
+
}
|
|
2100
|
+
function g() {
|
|
2101
|
+
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 r.Buf16(320), this.work = new r.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
2102
|
+
}
|
|
2103
|
+
function _(e) {
|
|
2104
|
+
var t;
|
|
2105
|
+
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 = f, t.last = 0, t.havedict = 0, t.dmax = 32768, t.head = null, t.hold = 0, t.bits = 0, t.lencode = t.lendyn = new r.Buf32(p), t.distcode = t.distdyn = new r.Buf32(m), t.sane = 1, t.back = -1, u) : d;
|
|
2106
|
+
}
|
|
2107
|
+
function v(e) {
|
|
2108
|
+
var t;
|
|
2109
|
+
return e && e.state ? ((t = e.state).wsize = 0, t.whave = 0, t.wnext = 0, _(e)) : d;
|
|
2110
|
+
}
|
|
2111
|
+
function y(e, t) {
|
|
2112
|
+
var n, r;
|
|
2113
|
+
return e && e.state ? (r = e.state, t < 0 ? (n = 0, t = -t) : (n = 1 + (t >> 4), t < 48 && (t &= 15)), t && (t < 8 || 15 < t) ? d : (r.window !== null && r.wbits !== t && (r.window = null), r.wrap = n, r.wbits = t, v(e))) : d;
|
|
2114
|
+
}
|
|
2115
|
+
function b(e, t) {
|
|
2116
|
+
var n, r;
|
|
2117
|
+
return e ? (r = new g(), (e.state = r).window = null, (n = y(e, t)) !== u && (e.state = null), n) : d;
|
|
2118
|
+
}
|
|
2119
|
+
var x, S, C = !0;
|
|
2120
|
+
function w(e) {
|
|
2121
|
+
if (C) {
|
|
2122
|
+
var t;
|
|
2123
|
+
for (x = new r.Buf32(512), S = new r.Buf32(32), t = 0; t < 144;) e.lens[t++] = 8;
|
|
2124
|
+
for (; t < 256;) e.lens[t++] = 9;
|
|
2125
|
+
for (; t < 280;) e.lens[t++] = 7;
|
|
2126
|
+
for (; t < 288;) e.lens[t++] = 8;
|
|
2127
|
+
for (s(c, e.lens, 0, 288, x, 0, e.work, { bits: 9 }), t = 0; t < 32;) e.lens[t++] = 5;
|
|
2128
|
+
s(l, e.lens, 0, 32, S, 0, e.work, { bits: 5 }), C = !1;
|
|
2129
|
+
}
|
|
2130
|
+
e.lencode = x, e.lenbits = 9, e.distcode = S, e.distbits = 5;
|
|
2131
|
+
}
|
|
2132
|
+
function T(e, t, n, i) {
|
|
2133
|
+
var a, o = e.state;
|
|
2134
|
+
return o.window === null && (o.wsize = 1 << o.wbits, o.wnext = 0, o.whave = 0, o.window = new r.Buf8(o.wsize)), i >= o.wsize ? (r.arraySet(o.window, t, n - o.wsize, o.wsize, 0), o.wnext = 0, o.whave = o.wsize) : (i < (a = o.wsize - o.wnext) && (a = i), r.arraySet(o.window, t, n - i, a, o.wnext), (i -= a) ? (r.arraySet(o.window, t, n - i, i, 0), o.wnext = i, o.whave = o.wsize) : (o.wnext += a, o.wnext === o.wsize && (o.wnext = 0), o.whave < o.wsize && (o.whave += a))), 0;
|
|
2135
|
+
}
|
|
2136
|
+
n.inflateReset = v, n.inflateReset2 = y, n.inflateResetKeep = _, n.inflateInit = function(e) {
|
|
2137
|
+
return b(e, 15);
|
|
2138
|
+
}, n.inflateInit2 = b, n.inflate = function(e, t) {
|
|
2139
|
+
var n, p, m, g, _, v, y, b, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, R, z = 0, B = new r.Buf8(4), V = [
|
|
2140
|
+
16,
|
|
2141
|
+
17,
|
|
2142
|
+
18,
|
|
2143
|
+
0,
|
|
2144
|
+
8,
|
|
2145
|
+
7,
|
|
2146
|
+
9,
|
|
2147
|
+
6,
|
|
2148
|
+
10,
|
|
2149
|
+
5,
|
|
2150
|
+
11,
|
|
2151
|
+
4,
|
|
2152
|
+
12,
|
|
2153
|
+
3,
|
|
2154
|
+
13,
|
|
2155
|
+
2,
|
|
2156
|
+
14,
|
|
2157
|
+
1,
|
|
2158
|
+
15
|
|
2159
|
+
];
|
|
2160
|
+
if (!e || !e.state || !e.output || !e.input && e.avail_in !== 0) return d;
|
|
2161
|
+
(n = e.state).mode === 12 && (n.mode = 13), _ = e.next_out, m = e.output, y = e.avail_out, g = e.next_in, p = e.input, v = e.avail_in, b = n.hold, x = n.bits, S = v, C = y, I = u;
|
|
2162
|
+
e: for (;;) switch (n.mode) {
|
|
2163
|
+
case f:
|
|
2164
|
+
if (n.wrap === 0) {
|
|
2165
|
+
n.mode = 13;
|
|
2166
|
+
break;
|
|
2167
|
+
}
|
|
2168
|
+
for (; x < 16;) {
|
|
2169
|
+
if (v === 0) break e;
|
|
2170
|
+
v--, b += p[g++] << x, x += 8;
|
|
2171
|
+
}
|
|
2172
|
+
if (2 & n.wrap && b === 35615) {
|
|
2173
|
+
B[n.check = 0] = 255 & b, B[1] = b >>> 8 & 255, n.check = a(n.check, B, 2, 0), x = b = 0, n.mode = 2;
|
|
2174
|
+
break;
|
|
2175
|
+
}
|
|
2176
|
+
if (n.flags = 0, n.head && (n.head.done = !1), !(1 & n.wrap) || (((255 & b) << 8) + (b >> 8)) % 31) {
|
|
2177
|
+
e.msg = "incorrect header check", n.mode = 30;
|
|
2178
|
+
break;
|
|
2179
|
+
}
|
|
2180
|
+
if ((15 & b) != 8) {
|
|
2181
|
+
e.msg = "unknown compression method", n.mode = 30;
|
|
2182
|
+
break;
|
|
2183
|
+
}
|
|
2184
|
+
if (x -= 4, F = 8 + (15 & (b >>>= 4)), n.wbits === 0) n.wbits = F;
|
|
2185
|
+
else if (F > n.wbits) {
|
|
2186
|
+
e.msg = "invalid window size", n.mode = 30;
|
|
2187
|
+
break;
|
|
2188
|
+
}
|
|
2189
|
+
n.dmax = 1 << F, e.adler = n.check = 1, n.mode = 512 & b ? 10 : 12, x = b = 0;
|
|
2190
|
+
break;
|
|
2191
|
+
case 2:
|
|
2192
|
+
for (; x < 16;) {
|
|
2193
|
+
if (v === 0) break e;
|
|
2194
|
+
v--, b += p[g++] << x, x += 8;
|
|
2195
|
+
}
|
|
2196
|
+
if (n.flags = b, (255 & n.flags) != 8) {
|
|
2197
|
+
e.msg = "unknown compression method", n.mode = 30;
|
|
2198
|
+
break;
|
|
2199
|
+
}
|
|
2200
|
+
if (57344 & n.flags) {
|
|
2201
|
+
e.msg = "unknown header flags set", n.mode = 30;
|
|
2202
|
+
break;
|
|
2203
|
+
}
|
|
2204
|
+
n.head && (n.head.text = b >> 8 & 1), 512 & n.flags && (B[0] = 255 & b, B[1] = b >>> 8 & 255, n.check = a(n.check, B, 2, 0)), x = b = 0, n.mode = 3;
|
|
2205
|
+
case 3:
|
|
2206
|
+
for (; x < 32;) {
|
|
2207
|
+
if (v === 0) break e;
|
|
2208
|
+
v--, b += p[g++] << x, x += 8;
|
|
2209
|
+
}
|
|
2210
|
+
n.head && (n.head.time = b), 512 & n.flags && (B[0] = 255 & b, B[1] = b >>> 8 & 255, B[2] = b >>> 16 & 255, B[3] = b >>> 24 & 255, n.check = a(n.check, B, 4, 0)), x = b = 0, n.mode = 4;
|
|
2211
|
+
case 4:
|
|
2212
|
+
for (; x < 16;) {
|
|
2213
|
+
if (v === 0) break e;
|
|
2214
|
+
v--, b += p[g++] << x, x += 8;
|
|
2215
|
+
}
|
|
2216
|
+
n.head && (n.head.xflags = 255 & b, n.head.os = b >> 8), 512 & n.flags && (B[0] = 255 & b, B[1] = b >>> 8 & 255, n.check = a(n.check, B, 2, 0)), x = b = 0, n.mode = 5;
|
|
2217
|
+
case 5:
|
|
2218
|
+
if (1024 & n.flags) {
|
|
2219
|
+
for (; x < 16;) {
|
|
2220
|
+
if (v === 0) break e;
|
|
2221
|
+
v--, b += p[g++] << x, x += 8;
|
|
2222
|
+
}
|
|
2223
|
+
n.length = b, n.head && (n.head.extra_len = b), 512 & n.flags && (B[0] = 255 & b, B[1] = b >>> 8 & 255, n.check = a(n.check, B, 2, 0)), x = b = 0;
|
|
2224
|
+
} else n.head && (n.head.extra = null);
|
|
2225
|
+
n.mode = 6;
|
|
2226
|
+
case 6:
|
|
2227
|
+
if (1024 & n.flags && (v < (E = n.length) && (E = v), E && (n.head && (F = n.head.extra_len - n.length, n.head.extra || (n.head.extra = Array(n.head.extra_len)), r.arraySet(n.head.extra, p, g, E, F)), 512 & n.flags && (n.check = a(n.check, p, E, g)), v -= E, g += E, n.length -= E), n.length)) break e;
|
|
2228
|
+
n.length = 0, n.mode = 7;
|
|
2229
|
+
case 7:
|
|
2230
|
+
if (2048 & n.flags) {
|
|
2231
|
+
if (v === 0) break e;
|
|
2232
|
+
for (E = 0; F = p[g + E++], n.head && F && n.length < 65536 && (n.head.name += String.fromCharCode(F)), F && E < v;);
|
|
2233
|
+
if (512 & n.flags && (n.check = a(n.check, p, E, g)), v -= E, g += E, F) break e;
|
|
2234
|
+
} else n.head && (n.head.name = null);
|
|
2235
|
+
n.length = 0, n.mode = 8;
|
|
2236
|
+
case 8:
|
|
2237
|
+
if (4096 & n.flags) {
|
|
2238
|
+
if (v === 0) break e;
|
|
2239
|
+
for (E = 0; F = p[g + E++], n.head && F && n.length < 65536 && (n.head.comment += String.fromCharCode(F)), F && E < v;);
|
|
2240
|
+
if (512 & n.flags && (n.check = a(n.check, p, E, g)), v -= E, g += E, F) break e;
|
|
2241
|
+
} else n.head && (n.head.comment = null);
|
|
2242
|
+
n.mode = 9;
|
|
2243
|
+
case 9:
|
|
2244
|
+
if (512 & n.flags) {
|
|
2245
|
+
for (; x < 16;) {
|
|
2246
|
+
if (v === 0) break e;
|
|
2247
|
+
v--, b += p[g++] << x, x += 8;
|
|
2248
|
+
}
|
|
2249
|
+
if (b !== (65535 & n.check)) {
|
|
2250
|
+
e.msg = "header crc mismatch", n.mode = 30;
|
|
2251
|
+
break;
|
|
2252
|
+
}
|
|
2253
|
+
x = b = 0;
|
|
2254
|
+
}
|
|
2255
|
+
n.head && (n.head.hcrc = n.flags >> 9 & 1, n.head.done = !0), e.adler = n.check = 0, n.mode = 12;
|
|
2256
|
+
break;
|
|
2257
|
+
case 10:
|
|
2258
|
+
for (; x < 32;) {
|
|
2259
|
+
if (v === 0) break e;
|
|
2260
|
+
v--, b += p[g++] << x, x += 8;
|
|
2261
|
+
}
|
|
2262
|
+
e.adler = n.check = h(b), x = b = 0, n.mode = 11;
|
|
2263
|
+
case 11:
|
|
2264
|
+
if (n.havedict === 0) return e.next_out = _, e.avail_out = y, e.next_in = g, e.avail_in = v, n.hold = b, n.bits = x, 2;
|
|
2265
|
+
e.adler = n.check = 1, n.mode = 12;
|
|
2266
|
+
case 12: if (t === 5 || t === 6) break e;
|
|
2267
|
+
case 13:
|
|
2268
|
+
if (n.last) {
|
|
2269
|
+
b >>>= 7 & x, x -= 7 & x, n.mode = 27;
|
|
2270
|
+
break;
|
|
2271
|
+
}
|
|
2272
|
+
for (; x < 3;) {
|
|
2273
|
+
if (v === 0) break e;
|
|
2274
|
+
v--, b += p[g++] << x, x += 8;
|
|
2275
|
+
}
|
|
2276
|
+
switch (n.last = 1 & b, --x, 3 & (b >>>= 1)) {
|
|
2277
|
+
case 0:
|
|
2278
|
+
n.mode = 14;
|
|
2279
|
+
break;
|
|
2280
|
+
case 1:
|
|
2281
|
+
if (w(n), n.mode = 20, t !== 6) break;
|
|
2282
|
+
b >>>= 2, x -= 2;
|
|
2283
|
+
break e;
|
|
2284
|
+
case 2:
|
|
2285
|
+
n.mode = 17;
|
|
2286
|
+
break;
|
|
2287
|
+
case 3: e.msg = "invalid block type", n.mode = 30;
|
|
2288
|
+
}
|
|
2289
|
+
b >>>= 2, x -= 2;
|
|
2290
|
+
break;
|
|
2291
|
+
case 14:
|
|
2292
|
+
for (b >>>= 7 & x, x -= 7 & x; x < 32;) {
|
|
2293
|
+
if (v === 0) break e;
|
|
2294
|
+
v--, b += p[g++] << x, x += 8;
|
|
2295
|
+
}
|
|
2296
|
+
if ((65535 & b) != (b >>> 16 ^ 65535)) {
|
|
2297
|
+
e.msg = "invalid stored block lengths", n.mode = 30;
|
|
2298
|
+
break;
|
|
2299
|
+
}
|
|
2300
|
+
if (n.length = 65535 & b, x = b = 0, n.mode = 15, t === 6) break e;
|
|
2301
|
+
case 15: n.mode = 16;
|
|
2302
|
+
case 16:
|
|
2303
|
+
if (E = n.length) {
|
|
2304
|
+
if (v < E && (E = v), y < E && (E = y), E === 0) break e;
|
|
2305
|
+
r.arraySet(m, p, g, E, _), v -= E, g += E, y -= E, _ += E, n.length -= E;
|
|
2306
|
+
break;
|
|
2307
|
+
}
|
|
2308
|
+
n.mode = 12;
|
|
2309
|
+
break;
|
|
2310
|
+
case 17:
|
|
2311
|
+
for (; x < 14;) {
|
|
2312
|
+
if (v === 0) break e;
|
|
2313
|
+
v--, b += p[g++] << x, x += 8;
|
|
2314
|
+
}
|
|
2315
|
+
if (n.nlen = 257 + (31 & b), b >>>= 5, x -= 5, n.ndist = 1 + (31 & b), b >>>= 5, x -= 5, n.ncode = 4 + (15 & b), b >>>= 4, x -= 4, 286 < n.nlen || 30 < n.ndist) {
|
|
2316
|
+
e.msg = "too many length or distance symbols", n.mode = 30;
|
|
2317
|
+
break;
|
|
2318
|
+
}
|
|
2319
|
+
n.have = 0, n.mode = 18;
|
|
2320
|
+
case 18:
|
|
2321
|
+
for (; n.have < n.ncode;) {
|
|
2322
|
+
for (; x < 3;) {
|
|
2323
|
+
if (v === 0) break e;
|
|
2324
|
+
v--, b += p[g++] << x, x += 8;
|
|
2325
|
+
}
|
|
2326
|
+
n.lens[V[n.have++]] = 7 & b, b >>>= 3, x -= 3;
|
|
2327
|
+
}
|
|
2328
|
+
for (; n.have < 19;) n.lens[V[n.have++]] = 0;
|
|
2329
|
+
if (n.lencode = n.lendyn, n.lenbits = 7, L = { bits: n.lenbits }, I = s(0, n.lens, 0, 19, n.lencode, 0, n.work, L), n.lenbits = L.bits, I) {
|
|
2330
|
+
e.msg = "invalid code lengths set", n.mode = 30;
|
|
2331
|
+
break;
|
|
2332
|
+
}
|
|
2333
|
+
n.have = 0, n.mode = 19;
|
|
2334
|
+
case 19:
|
|
2335
|
+
for (; n.have < n.nlen + n.ndist;) {
|
|
2336
|
+
for (; A = (z = n.lencode[b & (1 << n.lenbits) - 1]) >>> 16 & 255, j = 65535 & z, !((k = z >>> 24) <= x);) {
|
|
2337
|
+
if (v === 0) break e;
|
|
2338
|
+
v--, b += p[g++] << x, x += 8;
|
|
2339
|
+
}
|
|
2340
|
+
if (j < 16) b >>>= k, x -= k, n.lens[n.have++] = j;
|
|
2341
|
+
else {
|
|
2342
|
+
if (j === 16) {
|
|
2343
|
+
for (R = k + 2; x < R;) {
|
|
2344
|
+
if (v === 0) break e;
|
|
2345
|
+
v--, b += p[g++] << x, x += 8;
|
|
2346
|
+
}
|
|
2347
|
+
if (b >>>= k, x -= k, n.have === 0) {
|
|
2348
|
+
e.msg = "invalid bit length repeat", n.mode = 30;
|
|
2349
|
+
break;
|
|
2350
|
+
}
|
|
2351
|
+
F = n.lens[n.have - 1], E = 3 + (3 & b), b >>>= 2, x -= 2;
|
|
2352
|
+
} else if (j === 17) {
|
|
2353
|
+
for (R = k + 3; x < R;) {
|
|
2354
|
+
if (v === 0) break e;
|
|
2355
|
+
v--, b += p[g++] << x, x += 8;
|
|
2356
|
+
}
|
|
2357
|
+
x -= k, F = 0, E = 3 + (7 & (b >>>= k)), b >>>= 3, x -= 3;
|
|
2358
|
+
} else {
|
|
2359
|
+
for (R = k + 7; x < R;) {
|
|
2360
|
+
if (v === 0) break e;
|
|
2361
|
+
v--, b += p[g++] << x, x += 8;
|
|
2362
|
+
}
|
|
2363
|
+
x -= k, F = 0, E = 11 + (127 & (b >>>= k)), b >>>= 7, x -= 7;
|
|
2364
|
+
}
|
|
2365
|
+
if (n.have + E > n.nlen + n.ndist) {
|
|
2366
|
+
e.msg = "invalid bit length repeat", n.mode = 30;
|
|
2367
|
+
break;
|
|
2368
|
+
}
|
|
2369
|
+
for (; E--;) n.lens[n.have++] = F;
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
if (n.mode === 30) break;
|
|
2373
|
+
if (n.lens[256] === 0) {
|
|
2374
|
+
e.msg = "invalid code -- missing end-of-block", n.mode = 30;
|
|
2375
|
+
break;
|
|
2376
|
+
}
|
|
2377
|
+
if (n.lenbits = 9, L = { bits: n.lenbits }, I = s(c, n.lens, 0, n.nlen, n.lencode, 0, n.work, L), n.lenbits = L.bits, I) {
|
|
2378
|
+
e.msg = "invalid literal/lengths set", n.mode = 30;
|
|
2379
|
+
break;
|
|
2380
|
+
}
|
|
2381
|
+
if (n.distbits = 6, n.distcode = n.distdyn, L = { bits: n.distbits }, I = s(l, n.lens, n.nlen, n.ndist, n.distcode, 0, n.work, L), n.distbits = L.bits, I) {
|
|
2382
|
+
e.msg = "invalid distances set", n.mode = 30;
|
|
2383
|
+
break;
|
|
2384
|
+
}
|
|
2385
|
+
if (n.mode = 20, t === 6) break e;
|
|
2386
|
+
case 20: n.mode = 21;
|
|
2387
|
+
case 21:
|
|
2388
|
+
if (6 <= v && 258 <= y) {
|
|
2389
|
+
e.next_out = _, e.avail_out = y, e.next_in = g, e.avail_in = v, n.hold = b, n.bits = x, o(e, C), _ = e.next_out, m = e.output, y = e.avail_out, g = e.next_in, p = e.input, v = e.avail_in, b = n.hold, x = n.bits, n.mode === 12 && (n.back = -1);
|
|
2390
|
+
break;
|
|
2391
|
+
}
|
|
2392
|
+
for (n.back = 0; A = (z = n.lencode[b & (1 << n.lenbits) - 1]) >>> 16 & 255, j = 65535 & z, !((k = z >>> 24) <= x);) {
|
|
2393
|
+
if (v === 0) break e;
|
|
2394
|
+
v--, b += p[g++] << x, x += 8;
|
|
2395
|
+
}
|
|
2396
|
+
if (A && !(240 & A)) {
|
|
2397
|
+
for (M = k, N = A, P = j; A = (z = n.lencode[P + ((b & (1 << M + N) - 1) >> M)]) >>> 16 & 255, j = 65535 & z, !(M + (k = z >>> 24) <= x);) {
|
|
2398
|
+
if (v === 0) break e;
|
|
2399
|
+
v--, b += p[g++] << x, x += 8;
|
|
2400
|
+
}
|
|
2401
|
+
b >>>= M, x -= M, n.back += M;
|
|
2402
|
+
}
|
|
2403
|
+
if (b >>>= k, x -= k, n.back += k, n.length = j, A === 0) {
|
|
2404
|
+
n.mode = 26;
|
|
2405
|
+
break;
|
|
2406
|
+
}
|
|
2407
|
+
if (32 & A) {
|
|
2408
|
+
n.back = -1, n.mode = 12;
|
|
2409
|
+
break;
|
|
2410
|
+
}
|
|
2411
|
+
if (64 & A) {
|
|
2412
|
+
e.msg = "invalid literal/length code", n.mode = 30;
|
|
2413
|
+
break;
|
|
2414
|
+
}
|
|
2415
|
+
n.extra = 15 & A, n.mode = 22;
|
|
2416
|
+
case 22:
|
|
2417
|
+
if (n.extra) {
|
|
2418
|
+
for (R = n.extra; x < R;) {
|
|
2419
|
+
if (v === 0) break e;
|
|
2420
|
+
v--, b += p[g++] << x, x += 8;
|
|
2421
|
+
}
|
|
2422
|
+
n.length += b & (1 << n.extra) - 1, b >>>= n.extra, x -= n.extra, n.back += n.extra;
|
|
2423
|
+
}
|
|
2424
|
+
n.was = n.length, n.mode = 23;
|
|
2425
|
+
case 23:
|
|
2426
|
+
for (; A = (z = n.distcode[b & (1 << n.distbits) - 1]) >>> 16 & 255, j = 65535 & z, !((k = z >>> 24) <= x);) {
|
|
2427
|
+
if (v === 0) break e;
|
|
2428
|
+
v--, b += p[g++] << x, x += 8;
|
|
2429
|
+
}
|
|
2430
|
+
if (!(240 & A)) {
|
|
2431
|
+
for (M = k, N = A, P = j; A = (z = n.distcode[P + ((b & (1 << M + N) - 1) >> M)]) >>> 16 & 255, j = 65535 & z, !(M + (k = z >>> 24) <= x);) {
|
|
2432
|
+
if (v === 0) break e;
|
|
2433
|
+
v--, b += p[g++] << x, x += 8;
|
|
2434
|
+
}
|
|
2435
|
+
b >>>= M, x -= M, n.back += M;
|
|
2436
|
+
}
|
|
2437
|
+
if (b >>>= k, x -= k, n.back += k, 64 & A) {
|
|
2438
|
+
e.msg = "invalid distance code", n.mode = 30;
|
|
2439
|
+
break;
|
|
2440
|
+
}
|
|
2441
|
+
n.offset = j, n.extra = 15 & A, n.mode = 24;
|
|
2442
|
+
case 24:
|
|
2443
|
+
if (n.extra) {
|
|
2444
|
+
for (R = n.extra; x < R;) {
|
|
2445
|
+
if (v === 0) break e;
|
|
2446
|
+
v--, b += p[g++] << x, x += 8;
|
|
2447
|
+
}
|
|
2448
|
+
n.offset += b & (1 << n.extra) - 1, b >>>= n.extra, x -= n.extra, n.back += n.extra;
|
|
2449
|
+
}
|
|
2450
|
+
if (n.offset > n.dmax) {
|
|
2451
|
+
e.msg = "invalid distance too far back", n.mode = 30;
|
|
2452
|
+
break;
|
|
2453
|
+
}
|
|
2454
|
+
n.mode = 25;
|
|
2455
|
+
case 25:
|
|
2456
|
+
if (y === 0) break e;
|
|
2457
|
+
if (E = C - y, n.offset > E) {
|
|
2458
|
+
if ((E = n.offset - E) > n.whave && n.sane) {
|
|
2459
|
+
e.msg = "invalid distance too far back", n.mode = 30;
|
|
2460
|
+
break;
|
|
2461
|
+
}
|
|
2462
|
+
D = E > n.wnext ? (E -= n.wnext, n.wsize - E) : n.wnext - E, E > n.length && (E = n.length), O = n.window;
|
|
2463
|
+
} else O = m, D = _ - n.offset, E = n.length;
|
|
2464
|
+
for (y < E && (E = y), y -= E, n.length -= E; m[_++] = O[D++], --E;);
|
|
2465
|
+
n.length === 0 && (n.mode = 21);
|
|
2466
|
+
break;
|
|
2467
|
+
case 26:
|
|
2468
|
+
if (y === 0) break e;
|
|
2469
|
+
m[_++] = n.length, y--, n.mode = 21;
|
|
2470
|
+
break;
|
|
2471
|
+
case 27:
|
|
2472
|
+
if (n.wrap) {
|
|
2473
|
+
for (; x < 32;) {
|
|
2474
|
+
if (v === 0) break e;
|
|
2475
|
+
v--, b |= p[g++] << x, x += 8;
|
|
2476
|
+
}
|
|
2477
|
+
if (C -= y, e.total_out += C, n.total += C, C && (e.adler = n.check = n.flags ? a(n.check, m, C, _ - C) : i(n.check, m, C, _ - C)), C = y, (n.flags ? b : h(b)) !== n.check) {
|
|
2478
|
+
e.msg = "incorrect data check", n.mode = 30;
|
|
2479
|
+
break;
|
|
2480
|
+
}
|
|
2481
|
+
x = b = 0;
|
|
2482
|
+
}
|
|
2483
|
+
n.mode = 28;
|
|
2484
|
+
case 28:
|
|
2485
|
+
if (n.wrap && n.flags) {
|
|
2486
|
+
for (; x < 32;) {
|
|
2487
|
+
if (v === 0) break e;
|
|
2488
|
+
v--, b += p[g++] << x, x += 8;
|
|
2489
|
+
}
|
|
2490
|
+
if (b !== (4294967295 & n.total)) {
|
|
2491
|
+
e.msg = "incorrect length check", n.mode = 30;
|
|
2492
|
+
break;
|
|
2493
|
+
}
|
|
2494
|
+
x = b = 0;
|
|
2495
|
+
}
|
|
2496
|
+
n.mode = 29;
|
|
2497
|
+
case 29:
|
|
2498
|
+
I = 1;
|
|
2499
|
+
break e;
|
|
2500
|
+
case 30:
|
|
2501
|
+
I = -3;
|
|
2502
|
+
break e;
|
|
2503
|
+
case 31: return -4;
|
|
2504
|
+
case 32:
|
|
2505
|
+
default: return d;
|
|
2506
|
+
}
|
|
2507
|
+
return e.next_out = _, e.avail_out = y, e.next_in = g, e.avail_in = v, n.hold = b, n.bits = x, (n.wsize || C !== e.avail_out && n.mode < 30 && (n.mode < 27 || t !== 4)) && T(e, e.output, e.next_out, C - e.avail_out) ? (n.mode = 31, -4) : (S -= e.avail_in, C -= e.avail_out, e.total_in += S, e.total_out += C, n.total += C, n.wrap && C && (e.adler = n.check = n.flags ? a(n.check, m, C, e.next_out - C) : i(n.check, m, C, e.next_out - C)), e.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === 12 ? 128 : 0) + (n.mode === 20 || n.mode === 15 ? 256 : 0), (S == 0 && C === 0 || t === 4) && I === u && (I = -5), I);
|
|
2508
|
+
}, n.inflateEnd = function(e) {
|
|
2509
|
+
if (!e || !e.state) return d;
|
|
2510
|
+
var t = e.state;
|
|
2511
|
+
return t.window && (t.window = null), e.state = null, u;
|
|
2512
|
+
}, n.inflateGetHeader = function(e, t) {
|
|
2513
|
+
var n;
|
|
2514
|
+
return e && e.state && 2 & (n = e.state).wrap ? ((n.head = t).done = !1, u) : d;
|
|
2515
|
+
}, n.inflateSetDictionary = function(e, t) {
|
|
2516
|
+
var n, r = t.length;
|
|
2517
|
+
return e && e.state ? (n = e.state).wrap !== 0 && n.mode !== 11 ? d : n.mode === 11 && i(1, t, r, 0) !== n.check ? -3 : T(e, t, r, r) ? (n.mode = 31, -4) : (n.havedict = 1, u) : d;
|
|
2518
|
+
}, n.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2519
|
+
}, {
|
|
2520
|
+
"../utils/common": 41,
|
|
2521
|
+
"./adler32": 43,
|
|
2522
|
+
"./crc32": 45,
|
|
2523
|
+
"./inffast": 48,
|
|
2524
|
+
"./inftrees": 50
|
|
2525
|
+
}],
|
|
2526
|
+
50: [function(e, t, n) {
|
|
2527
|
+
var r = e("../utils/common"), i = [
|
|
2528
|
+
3,
|
|
2529
|
+
4,
|
|
2530
|
+
5,
|
|
2531
|
+
6,
|
|
2532
|
+
7,
|
|
2533
|
+
8,
|
|
2534
|
+
9,
|
|
2535
|
+
10,
|
|
2536
|
+
11,
|
|
2537
|
+
13,
|
|
2538
|
+
15,
|
|
2539
|
+
17,
|
|
2540
|
+
19,
|
|
2541
|
+
23,
|
|
2542
|
+
27,
|
|
2543
|
+
31,
|
|
2544
|
+
35,
|
|
2545
|
+
43,
|
|
2546
|
+
51,
|
|
2547
|
+
59,
|
|
2548
|
+
67,
|
|
2549
|
+
83,
|
|
2550
|
+
99,
|
|
2551
|
+
115,
|
|
2552
|
+
131,
|
|
2553
|
+
163,
|
|
2554
|
+
195,
|
|
2555
|
+
227,
|
|
2556
|
+
258,
|
|
2557
|
+
0,
|
|
2558
|
+
0
|
|
2559
|
+
], a = [
|
|
2560
|
+
16,
|
|
2561
|
+
16,
|
|
2562
|
+
16,
|
|
2563
|
+
16,
|
|
2564
|
+
16,
|
|
2565
|
+
16,
|
|
2566
|
+
16,
|
|
2567
|
+
16,
|
|
2568
|
+
17,
|
|
2569
|
+
17,
|
|
2570
|
+
17,
|
|
2571
|
+
17,
|
|
2572
|
+
18,
|
|
2573
|
+
18,
|
|
2574
|
+
18,
|
|
2575
|
+
18,
|
|
2576
|
+
19,
|
|
2577
|
+
19,
|
|
2578
|
+
19,
|
|
2579
|
+
19,
|
|
2580
|
+
20,
|
|
2581
|
+
20,
|
|
2582
|
+
20,
|
|
2583
|
+
20,
|
|
2584
|
+
21,
|
|
2585
|
+
21,
|
|
2586
|
+
21,
|
|
2587
|
+
21,
|
|
2588
|
+
16,
|
|
2589
|
+
72,
|
|
2590
|
+
78
|
|
2591
|
+
], o = [
|
|
2592
|
+
1,
|
|
2593
|
+
2,
|
|
2594
|
+
3,
|
|
2595
|
+
4,
|
|
2596
|
+
5,
|
|
2597
|
+
7,
|
|
2598
|
+
9,
|
|
2599
|
+
13,
|
|
2600
|
+
17,
|
|
2601
|
+
25,
|
|
2602
|
+
33,
|
|
2603
|
+
49,
|
|
2604
|
+
65,
|
|
2605
|
+
97,
|
|
2606
|
+
129,
|
|
2607
|
+
193,
|
|
2608
|
+
257,
|
|
2609
|
+
385,
|
|
2610
|
+
513,
|
|
2611
|
+
769,
|
|
2612
|
+
1025,
|
|
2613
|
+
1537,
|
|
2614
|
+
2049,
|
|
2615
|
+
3073,
|
|
2616
|
+
4097,
|
|
2617
|
+
6145,
|
|
2618
|
+
8193,
|
|
2619
|
+
12289,
|
|
2620
|
+
16385,
|
|
2621
|
+
24577,
|
|
2622
|
+
0,
|
|
2623
|
+
0
|
|
2624
|
+
], s = [
|
|
2625
|
+
16,
|
|
2626
|
+
16,
|
|
2627
|
+
16,
|
|
2628
|
+
16,
|
|
2629
|
+
17,
|
|
2630
|
+
17,
|
|
2631
|
+
18,
|
|
2632
|
+
18,
|
|
2633
|
+
19,
|
|
2634
|
+
19,
|
|
2635
|
+
20,
|
|
2636
|
+
20,
|
|
2637
|
+
21,
|
|
2638
|
+
21,
|
|
2639
|
+
22,
|
|
2640
|
+
22,
|
|
2641
|
+
23,
|
|
2642
|
+
23,
|
|
2643
|
+
24,
|
|
2644
|
+
24,
|
|
2645
|
+
25,
|
|
2646
|
+
25,
|
|
2647
|
+
26,
|
|
2648
|
+
26,
|
|
2649
|
+
27,
|
|
2650
|
+
27,
|
|
2651
|
+
28,
|
|
2652
|
+
28,
|
|
2653
|
+
29,
|
|
2654
|
+
29,
|
|
2655
|
+
64,
|
|
2656
|
+
64
|
|
2657
|
+
];
|
|
2658
|
+
t.exports = function(e, t, n, c, l, u, d, f) {
|
|
2659
|
+
var p, m, h, g, _, v, y, b, x, S = f.bits, C = 0, w = 0, T = 0, E = 0, D = 0, O = 0, k = 0, A = 0, j = 0, M = 0, N = null, P = 0, F = new r.Buf16(16), I = new r.Buf16(16), L = null, R = 0;
|
|
2660
|
+
for (C = 0; C <= 15; C++) F[C] = 0;
|
|
2661
|
+
for (w = 0; w < c; w++) F[t[n + w]]++;
|
|
2662
|
+
for (D = S, E = 15; 1 <= E && F[E] === 0; E--);
|
|
2663
|
+
if (E < D && (D = E), E === 0) return l[u++] = 20971520, l[u++] = 20971520, f.bits = 1, 0;
|
|
2664
|
+
for (T = 1; T < E && F[T] === 0; T++);
|
|
2665
|
+
for (D < T && (D = T), C = A = 1; C <= 15; C++) if (A <<= 1, (A -= F[C]) < 0) return -1;
|
|
2666
|
+
if (0 < A && (e === 0 || E !== 1)) return -1;
|
|
2667
|
+
for (I[1] = 0, C = 1; C < 15; C++) I[C + 1] = I[C] + F[C];
|
|
2668
|
+
for (w = 0; w < c; w++) t[n + w] !== 0 && (d[I[t[n + w]]++] = w);
|
|
2669
|
+
if (v = e === 0 ? (N = L = d, 19) : e === 1 ? (N = i, P -= 257, L = a, R -= 257, 256) : (N = o, L = s, -1), C = T, _ = u, k = w = M = 0, h = -1, g = (j = 1 << (O = D)) - 1, e === 1 && 852 < j || e === 2 && 592 < j) return 1;
|
|
2670
|
+
for (;;) {
|
|
2671
|
+
for (y = C - k, x = d[w] < v ? (b = 0, d[w]) : d[w] > v ? (b = L[R + d[w]], N[P + d[w]]) : (b = 96, 0), p = 1 << C - k, T = m = 1 << O; l[_ + (M >> k) + (m -= p)] = y << 24 | b << 16 | x | 0, m !== 0;);
|
|
2672
|
+
for (p = 1 << C - 1; M & p;) p >>= 1;
|
|
2673
|
+
if (p === 0 ? M = 0 : (M &= p - 1, M += p), w++, --F[C] == 0) {
|
|
2674
|
+
if (C === E) break;
|
|
2675
|
+
C = t[n + d[w]];
|
|
2676
|
+
}
|
|
2677
|
+
if (D < C && (M & g) !== h) {
|
|
2678
|
+
for (k === 0 && (k = D), _ += T, A = 1 << (O = C - k); O + k < E && !((A -= F[O + k]) <= 0);) O++, A <<= 1;
|
|
2679
|
+
if (j += 1 << O, e === 1 && 852 < j || e === 2 && 592 < j) return 1;
|
|
2680
|
+
l[h = M & g] = D << 24 | O << 16 | _ - u | 0;
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
return M !== 0 && (l[_ + M] = C - k << 24 | 4194304), f.bits = D, 0;
|
|
2684
|
+
};
|
|
2685
|
+
}, { "../utils/common": 41 }],
|
|
2686
|
+
51: [function(e, t, n) {
|
|
2687
|
+
t.exports = {
|
|
2688
|
+
2: "need dictionary",
|
|
2689
|
+
1: "stream end",
|
|
2690
|
+
0: "",
|
|
2691
|
+
"-1": "file error",
|
|
2692
|
+
"-2": "stream error",
|
|
2693
|
+
"-3": "data error",
|
|
2694
|
+
"-4": "insufficient memory",
|
|
2695
|
+
"-5": "buffer error",
|
|
2696
|
+
"-6": "incompatible version"
|
|
2697
|
+
};
|
|
2698
|
+
}, {}],
|
|
2699
|
+
52: [function(e, t, n) {
|
|
2700
|
+
var r = e("../utils/common"), i = 0, a = 1;
|
|
2701
|
+
function o(e) {
|
|
2702
|
+
for (var t = e.length; 0 <= --t;) e[t] = 0;
|
|
2703
|
+
}
|
|
2704
|
+
var s = 0, c = 29, l = 256, u = l + 1 + c, d = 30, f = 19, p = 2 * u + 1, m = 15, h = 16, g = 7, _ = 256, v = 16, y = 17, b = 18, x = [
|
|
2705
|
+
0,
|
|
2706
|
+
0,
|
|
2707
|
+
0,
|
|
2708
|
+
0,
|
|
2709
|
+
0,
|
|
2710
|
+
0,
|
|
2711
|
+
0,
|
|
2712
|
+
0,
|
|
2713
|
+
1,
|
|
2714
|
+
1,
|
|
2715
|
+
1,
|
|
2716
|
+
1,
|
|
2717
|
+
2,
|
|
2718
|
+
2,
|
|
2719
|
+
2,
|
|
2720
|
+
2,
|
|
2721
|
+
3,
|
|
2722
|
+
3,
|
|
2723
|
+
3,
|
|
2724
|
+
3,
|
|
2725
|
+
4,
|
|
2726
|
+
4,
|
|
2727
|
+
4,
|
|
2728
|
+
4,
|
|
2729
|
+
5,
|
|
2730
|
+
5,
|
|
2731
|
+
5,
|
|
2732
|
+
5,
|
|
2733
|
+
0
|
|
2734
|
+
], S = [
|
|
2735
|
+
0,
|
|
2736
|
+
0,
|
|
2737
|
+
0,
|
|
2738
|
+
0,
|
|
2739
|
+
1,
|
|
2740
|
+
1,
|
|
2741
|
+
2,
|
|
2742
|
+
2,
|
|
2743
|
+
3,
|
|
2744
|
+
3,
|
|
2745
|
+
4,
|
|
2746
|
+
4,
|
|
2747
|
+
5,
|
|
2748
|
+
5,
|
|
2749
|
+
6,
|
|
2750
|
+
6,
|
|
2751
|
+
7,
|
|
2752
|
+
7,
|
|
2753
|
+
8,
|
|
2754
|
+
8,
|
|
2755
|
+
9,
|
|
2756
|
+
9,
|
|
2757
|
+
10,
|
|
2758
|
+
10,
|
|
2759
|
+
11,
|
|
2760
|
+
11,
|
|
2761
|
+
12,
|
|
2762
|
+
12,
|
|
2763
|
+
13,
|
|
2764
|
+
13
|
|
2765
|
+
], C = [
|
|
2766
|
+
0,
|
|
2767
|
+
0,
|
|
2768
|
+
0,
|
|
2769
|
+
0,
|
|
2770
|
+
0,
|
|
2771
|
+
0,
|
|
2772
|
+
0,
|
|
2773
|
+
0,
|
|
2774
|
+
0,
|
|
2775
|
+
0,
|
|
2776
|
+
0,
|
|
2777
|
+
0,
|
|
2778
|
+
0,
|
|
2779
|
+
0,
|
|
2780
|
+
0,
|
|
2781
|
+
0,
|
|
2782
|
+
2,
|
|
2783
|
+
3,
|
|
2784
|
+
7
|
|
2785
|
+
], w = [
|
|
2786
|
+
16,
|
|
2787
|
+
17,
|
|
2788
|
+
18,
|
|
2789
|
+
0,
|
|
2790
|
+
8,
|
|
2791
|
+
7,
|
|
2792
|
+
9,
|
|
2793
|
+
6,
|
|
2794
|
+
10,
|
|
2795
|
+
5,
|
|
2796
|
+
11,
|
|
2797
|
+
4,
|
|
2798
|
+
12,
|
|
2799
|
+
3,
|
|
2800
|
+
13,
|
|
2801
|
+
2,
|
|
2802
|
+
14,
|
|
2803
|
+
1,
|
|
2804
|
+
15
|
|
2805
|
+
], T = Array(2 * (u + 2));
|
|
2806
|
+
o(T);
|
|
2807
|
+
var E = Array(2 * d);
|
|
2808
|
+
o(E);
|
|
2809
|
+
var D = Array(512);
|
|
2810
|
+
o(D);
|
|
2811
|
+
var O = Array(256);
|
|
2812
|
+
o(O);
|
|
2813
|
+
var k = Array(c);
|
|
2814
|
+
o(k);
|
|
2815
|
+
var A, j, M, N = Array(d);
|
|
2816
|
+
function P(e, t, n, r, i) {
|
|
2817
|
+
this.static_tree = e, this.extra_bits = t, this.extra_base = n, this.elems = r, this.max_length = i, this.has_stree = e && e.length;
|
|
2818
|
+
}
|
|
2819
|
+
function F(e, t) {
|
|
2820
|
+
this.dyn_tree = e, this.max_code = 0, this.stat_desc = t;
|
|
2821
|
+
}
|
|
2822
|
+
function I(e) {
|
|
2823
|
+
return e < 256 ? D[e] : D[256 + (e >>> 7)];
|
|
2824
|
+
}
|
|
2825
|
+
function L(e, t) {
|
|
2826
|
+
e.pending_buf[e.pending++] = 255 & t, e.pending_buf[e.pending++] = t >>> 8 & 255;
|
|
2827
|
+
}
|
|
2828
|
+
function R(e, t, n) {
|
|
2829
|
+
e.bi_valid > h - n ? (e.bi_buf |= t << e.bi_valid & 65535, L(e, e.bi_buf), e.bi_buf = t >> h - e.bi_valid, e.bi_valid += n - h) : (e.bi_buf |= t << e.bi_valid & 65535, e.bi_valid += n);
|
|
2830
|
+
}
|
|
2831
|
+
function z(e, t, n) {
|
|
2832
|
+
R(e, n[2 * t], n[2 * t + 1]);
|
|
2833
|
+
}
|
|
2834
|
+
function B(e, t) {
|
|
2835
|
+
for (var n = 0; n |= 1 & e, e >>>= 1, n <<= 1, 0 < --t;);
|
|
2836
|
+
return n >>> 1;
|
|
2837
|
+
}
|
|
2838
|
+
function V(e, t, n) {
|
|
2839
|
+
var r, i, a = Array(m + 1), o = 0;
|
|
2840
|
+
for (r = 1; r <= m; r++) a[r] = o = o + n[r - 1] << 1;
|
|
2841
|
+
for (i = 0; i <= t; i++) {
|
|
2842
|
+
var s = e[2 * i + 1];
|
|
2843
|
+
s !== 0 && (e[2 * i] = B(a[s]++, s));
|
|
2844
|
+
}
|
|
2845
|
+
}
|
|
2846
|
+
function H(e) {
|
|
2847
|
+
var t;
|
|
2848
|
+
for (t = 0; t < u; t++) e.dyn_ltree[2 * t] = 0;
|
|
2849
|
+
for (t = 0; t < d; t++) e.dyn_dtree[2 * t] = 0;
|
|
2850
|
+
for (t = 0; t < f; t++) e.bl_tree[2 * t] = 0;
|
|
2851
|
+
e.dyn_ltree[2 * _] = 1, e.opt_len = e.static_len = 0, e.last_lit = e.matches = 0;
|
|
2852
|
+
}
|
|
2853
|
+
function U(e) {
|
|
2854
|
+
8 < e.bi_valid ? L(e, e.bi_buf) : 0 < e.bi_valid && (e.pending_buf[e.pending++] = e.bi_buf), e.bi_buf = 0, e.bi_valid = 0;
|
|
2855
|
+
}
|
|
2856
|
+
function W(e, t, n, r) {
|
|
2857
|
+
var i = 2 * t, a = 2 * n;
|
|
2858
|
+
return e[i] < e[a] || e[i] === e[a] && r[t] <= r[n];
|
|
2859
|
+
}
|
|
2860
|
+
function G(e, t, n) {
|
|
2861
|
+
for (var r = e.heap[n], i = n << 1; i <= e.heap_len && (i < e.heap_len && W(t, e.heap[i + 1], e.heap[i], e.depth) && i++, !W(t, r, e.heap[i], e.depth));) e.heap[n] = e.heap[i], n = i, i <<= 1;
|
|
2862
|
+
e.heap[n] = r;
|
|
2863
|
+
}
|
|
2864
|
+
function K(e, t, n) {
|
|
2865
|
+
var r, i, a, o, s = 0;
|
|
2866
|
+
if (e.last_lit !== 0) for (; r = e.pending_buf[e.d_buf + 2 * s] << 8 | e.pending_buf[e.d_buf + 2 * s + 1], i = e.pending_buf[e.l_buf + s], s++, r === 0 ? z(e, i, t) : (z(e, (a = O[i]) + l + 1, t), (o = x[a]) !== 0 && R(e, i -= k[a], o), z(e, a = I(--r), n), (o = S[a]) !== 0 && R(e, r -= N[a], o)), s < e.last_lit;);
|
|
2867
|
+
z(e, _, t);
|
|
2868
|
+
}
|
|
2869
|
+
function q(e, t) {
|
|
2870
|
+
var n, r, i, a = t.dyn_tree, o = t.stat_desc.static_tree, s = t.stat_desc.has_stree, c = t.stat_desc.elems, l = -1;
|
|
2871
|
+
for (e.heap_len = 0, e.heap_max = p, n = 0; n < c; n++) a[2 * n] === 0 ? a[2 * n + 1] = 0 : (e.heap[++e.heap_len] = l = n, e.depth[n] = 0);
|
|
2872
|
+
for (; e.heap_len < 2;) a[2 * (i = e.heap[++e.heap_len] = l < 2 ? ++l : 0)] = 1, e.depth[i] = 0, e.opt_len--, s && (e.static_len -= o[2 * i + 1]);
|
|
2873
|
+
for (t.max_code = l, n = e.heap_len >> 1; 1 <= n; n--) G(e, a, n);
|
|
2874
|
+
for (i = c; n = e.heap[1], e.heap[1] = e.heap[e.heap_len--], G(e, a, 1), r = e.heap[1], e.heap[--e.heap_max] = n, e.heap[--e.heap_max] = r, a[2 * i] = a[2 * n] + a[2 * r], e.depth[i] = (e.depth[n] >= e.depth[r] ? e.depth[n] : e.depth[r]) + 1, a[2 * n + 1] = a[2 * r + 1] = i, e.heap[1] = i++, G(e, a, 1), 2 <= e.heap_len;);
|
|
2875
|
+
e.heap[--e.heap_max] = e.heap[1], function(e, t) {
|
|
2876
|
+
var n, r, i, a, o, s, c = t.dyn_tree, l = t.max_code, u = t.stat_desc.static_tree, d = t.stat_desc.has_stree, f = t.stat_desc.extra_bits, h = t.stat_desc.extra_base, g = t.stat_desc.max_length, _ = 0;
|
|
2877
|
+
for (a = 0; a <= m; a++) e.bl_count[a] = 0;
|
|
2878
|
+
for (c[2 * e.heap[e.heap_max] + 1] = 0, n = e.heap_max + 1; n < p; n++) g < (a = c[2 * c[2 * (r = e.heap[n]) + 1] + 1] + 1) && (a = g, _++), c[2 * r + 1] = a, l < r || (e.bl_count[a]++, o = 0, h <= r && (o = f[r - h]), s = c[2 * r], e.opt_len += s * (a + o), d && (e.static_len += s * (u[2 * r + 1] + o)));
|
|
2879
|
+
if (_ !== 0) {
|
|
2880
|
+
do {
|
|
2881
|
+
for (a = g - 1; e.bl_count[a] === 0;) a--;
|
|
2882
|
+
e.bl_count[a]--, e.bl_count[a + 1] += 2, e.bl_count[g]--, _ -= 2;
|
|
2883
|
+
} while (0 < _);
|
|
2884
|
+
for (a = g; a !== 0; a--) for (r = e.bl_count[a]; r !== 0;) l < (i = e.heap[--n]) || (c[2 * i + 1] !== a && (e.opt_len += (a - c[2 * i + 1]) * c[2 * i], c[2 * i + 1] = a), r--);
|
|
2885
|
+
}
|
|
2886
|
+
}(e, t), V(a, l, e.bl_count);
|
|
2887
|
+
}
|
|
2888
|
+
function J(e, t, n) {
|
|
2889
|
+
var r, i, a = -1, o = t[1], s = 0, c = 7, l = 4;
|
|
2890
|
+
for (o === 0 && (c = 138, l = 3), t[2 * (n + 1) + 1] = 65535, r = 0; r <= n; r++) i = o, o = t[2 * (r + 1) + 1], ++s < c && i === o || (s < l ? e.bl_tree[2 * i] += s : i === 0 ? s <= 10 ? e.bl_tree[2 * y]++ : e.bl_tree[2 * b]++ : (i !== a && e.bl_tree[2 * i]++, e.bl_tree[2 * v]++), a = i, l = (s = 0) === o ? (c = 138, 3) : i === o ? (c = 6, 3) : (c = 7, 4));
|
|
2891
|
+
}
|
|
2892
|
+
function Y(e, t, n) {
|
|
2893
|
+
var r, i, a = -1, o = t[1], s = 0, c = 7, l = 4;
|
|
2894
|
+
for (o === 0 && (c = 138, l = 3), r = 0; r <= n; r++) if (i = o, o = t[2 * (r + 1) + 1], !(++s < c && i === o)) {
|
|
2895
|
+
if (s < l) for (; z(e, i, e.bl_tree), --s != 0;);
|
|
2896
|
+
else i === 0 ? s <= 10 ? (z(e, y, e.bl_tree), R(e, s - 3, 3)) : (z(e, b, e.bl_tree), R(e, s - 11, 7)) : (i !== a && (z(e, i, e.bl_tree), s--), z(e, v, e.bl_tree), R(e, s - 3, 2));
|
|
2897
|
+
a = i, l = (s = 0) === o ? (c = 138, 3) : i === o ? (c = 6, 3) : (c = 7, 4);
|
|
2898
|
+
}
|
|
2899
|
+
}
|
|
2900
|
+
o(N);
|
|
2901
|
+
var X = !1;
|
|
2902
|
+
function Z(e, t, n, i) {
|
|
2903
|
+
R(e, (s << 1) + +!!i, 3), function(e, t, n, i) {
|
|
2904
|
+
U(e), i && (L(e, n), L(e, ~n)), r.arraySet(e.pending_buf, e.window, t, n, e.pending), e.pending += n;
|
|
2905
|
+
}(e, t, n, !0);
|
|
2906
|
+
}
|
|
2907
|
+
n._tr_init = function(e) {
|
|
2908
|
+
X || (function() {
|
|
2909
|
+
var e, t, n, r, i, a = Array(m + 1);
|
|
2910
|
+
for (r = n = 0; r < c - 1; r++) for (k[r] = n, e = 0; e < 1 << x[r]; e++) O[n++] = r;
|
|
2911
|
+
for (O[n - 1] = r, r = i = 0; r < 16; r++) for (N[r] = i, e = 0; e < 1 << S[r]; e++) D[i++] = r;
|
|
2912
|
+
for (i >>= 7; r < d; r++) for (N[r] = i << 7, e = 0; e < 1 << S[r] - 7; e++) D[256 + i++] = r;
|
|
2913
|
+
for (t = 0; t <= m; t++) a[t] = 0;
|
|
2914
|
+
for (e = 0; e <= 143;) T[2 * e + 1] = 8, e++, a[8]++;
|
|
2915
|
+
for (; e <= 255;) T[2 * e + 1] = 9, e++, a[9]++;
|
|
2916
|
+
for (; e <= 279;) T[2 * e + 1] = 7, e++, a[7]++;
|
|
2917
|
+
for (; e <= 287;) T[2 * e + 1] = 8, e++, a[8]++;
|
|
2918
|
+
for (V(T, u + 1, a), e = 0; e < d; e++) E[2 * e + 1] = 5, E[2 * e] = B(e, 5);
|
|
2919
|
+
A = new P(T, x, l + 1, u, m), j = new P(E, S, 0, d, m), M = new P([], C, 0, f, g);
|
|
2920
|
+
}(), X = !0), e.l_desc = new F(e.dyn_ltree, A), e.d_desc = new F(e.dyn_dtree, j), e.bl_desc = new F(e.bl_tree, M), e.bi_buf = 0, e.bi_valid = 0, H(e);
|
|
2921
|
+
}, n._tr_stored_block = Z, n._tr_flush_block = function(e, t, n, r) {
|
|
2922
|
+
var o, s, c = 0;
|
|
2923
|
+
0 < e.level ? (e.strm.data_type === 2 && (e.strm.data_type = function(e) {
|
|
2924
|
+
var t, n = 4093624447;
|
|
2925
|
+
for (t = 0; t <= 31; t++, n >>>= 1) if (1 & n && e.dyn_ltree[2 * t] !== 0) return i;
|
|
2926
|
+
if (e.dyn_ltree[18] !== 0 || e.dyn_ltree[20] !== 0 || e.dyn_ltree[26] !== 0) return a;
|
|
2927
|
+
for (t = 32; t < l; t++) if (e.dyn_ltree[2 * t] !== 0) return a;
|
|
2928
|
+
return i;
|
|
2929
|
+
}(e)), q(e, e.l_desc), q(e, e.d_desc), c = function(e) {
|
|
2930
|
+
var t;
|
|
2931
|
+
for (J(e, e.dyn_ltree, e.l_desc.max_code), J(e, e.dyn_dtree, e.d_desc.max_code), q(e, e.bl_desc), t = f - 1; 3 <= t && e.bl_tree[2 * w[t] + 1] === 0; t--);
|
|
2932
|
+
return e.opt_len += 3 * (t + 1) + 5 + 5 + 4, t;
|
|
2933
|
+
}(e), o = e.opt_len + 3 + 7 >>> 3, (s = e.static_len + 3 + 7 >>> 3) <= o && (o = s)) : o = s = n + 5, n + 4 <= o && t !== -1 ? Z(e, t, n, r) : e.strategy === 4 || s === o ? (R(e, 2 + +!!r, 3), K(e, T, E)) : (R(e, 4 + +!!r, 3), function(e, t, n, r) {
|
|
2934
|
+
var i;
|
|
2935
|
+
for (R(e, t - 257, 5), R(e, n - 1, 5), R(e, r - 4, 4), i = 0; i < r; i++) R(e, e.bl_tree[2 * w[i] + 1], 3);
|
|
2936
|
+
Y(e, e.dyn_ltree, t - 1), Y(e, e.dyn_dtree, n - 1);
|
|
2937
|
+
}(e, e.l_desc.max_code + 1, e.d_desc.max_code + 1, c + 1), K(e, e.dyn_ltree, e.dyn_dtree)), H(e), r && U(e);
|
|
2938
|
+
}, n._tr_tally = function(e, t, n) {
|
|
2939
|
+
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 & n, e.last_lit++, t === 0 ? e.dyn_ltree[2 * n]++ : (e.matches++, t--, e.dyn_ltree[2 * (O[n] + l + 1)]++, e.dyn_dtree[2 * I(t)]++), e.last_lit === e.lit_bufsize - 1;
|
|
2940
|
+
}, n._tr_align = function(e) {
|
|
2941
|
+
R(e, 2, 3), z(e, _, T), function(e) {
|
|
2942
|
+
e.bi_valid === 16 ? (L(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);
|
|
2943
|
+
}(e);
|
|
2944
|
+
};
|
|
2945
|
+
}, { "../utils/common": 41 }],
|
|
2946
|
+
53: [function(e, t, n) {
|
|
2947
|
+
t.exports = function() {
|
|
2948
|
+
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;
|
|
2949
|
+
};
|
|
2950
|
+
}, {}],
|
|
2951
|
+
54: [function(e, t, n) {
|
|
2952
|
+
(function(e) {
|
|
2953
|
+
(function(e, t) {
|
|
2954
|
+
if (!e.setImmediate) {
|
|
2955
|
+
var n, r, i, a, o = 1, s = {}, c = !1, l = e.document, u = Object.getPrototypeOf && Object.getPrototypeOf(e);
|
|
2956
|
+
u = u && u.setTimeout ? u : e, n = {}.toString.call(e.process) === "[object process]" ? function(e) {
|
|
2957
|
+
process.nextTick(function() {
|
|
2958
|
+
f(e);
|
|
2959
|
+
});
|
|
2960
|
+
} : function() {
|
|
2961
|
+
if (e.postMessage && !e.importScripts) {
|
|
2962
|
+
var t = !0, n = e.onmessage;
|
|
2963
|
+
return e.onmessage = function() {
|
|
2964
|
+
t = !1;
|
|
2965
|
+
}, e.postMessage("", "*"), e.onmessage = n, t;
|
|
2966
|
+
}
|
|
2967
|
+
}() ? (a = "setImmediate$" + Math.random() + "$", e.addEventListener ? e.addEventListener("message", p, !1) : e.attachEvent("onmessage", p), function(t) {
|
|
2968
|
+
e.postMessage(a + t, "*");
|
|
2969
|
+
}) : e.MessageChannel ? ((i = new MessageChannel()).port1.onmessage = function(e) {
|
|
2970
|
+
f(e.data);
|
|
2971
|
+
}, function(e) {
|
|
2972
|
+
i.port2.postMessage(e);
|
|
2973
|
+
}) : l && "onreadystatechange" in l.createElement("script") ? (r = l.documentElement, function(e) {
|
|
2974
|
+
var t = l.createElement("script");
|
|
2975
|
+
t.onreadystatechange = function() {
|
|
2976
|
+
f(e), t.onreadystatechange = null, r.removeChild(t), t = null;
|
|
2977
|
+
}, r.appendChild(t);
|
|
2978
|
+
}) : function(e) {
|
|
2979
|
+
setTimeout(f, 0, e);
|
|
2980
|
+
}, u.setImmediate = function(e) {
|
|
2981
|
+
typeof e != "function" && (e = Function("" + e));
|
|
2982
|
+
for (var t = Array(arguments.length - 1), r = 0; r < t.length; r++) t[r] = arguments[r + 1];
|
|
2983
|
+
return s[o] = {
|
|
2984
|
+
callback: e,
|
|
2985
|
+
args: t
|
|
2986
|
+
}, n(o), o++;
|
|
2987
|
+
}, u.clearImmediate = d;
|
|
2988
|
+
}
|
|
2989
|
+
function d(e) {
|
|
2990
|
+
delete s[e];
|
|
2991
|
+
}
|
|
2992
|
+
function f(e) {
|
|
2993
|
+
if (c) setTimeout(f, 0, e);
|
|
2994
|
+
else {
|
|
2995
|
+
var n = s[e];
|
|
2996
|
+
if (n) {
|
|
2997
|
+
c = !0;
|
|
2998
|
+
try {
|
|
2999
|
+
(function(e) {
|
|
3000
|
+
var n = e.callback, r = e.args;
|
|
3001
|
+
switch (r.length) {
|
|
3002
|
+
case 0:
|
|
3003
|
+
n();
|
|
3004
|
+
break;
|
|
3005
|
+
case 1:
|
|
3006
|
+
n(r[0]);
|
|
3007
|
+
break;
|
|
3008
|
+
case 2:
|
|
3009
|
+
n(r[0], r[1]);
|
|
3010
|
+
break;
|
|
3011
|
+
case 3:
|
|
3012
|
+
n(r[0], r[1], r[2]);
|
|
3013
|
+
break;
|
|
3014
|
+
default: n.apply(t, r);
|
|
3015
|
+
}
|
|
3016
|
+
})(n);
|
|
3017
|
+
} finally {
|
|
3018
|
+
d(e), c = !1;
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
function p(t) {
|
|
3024
|
+
t.source === e && typeof t.data == "string" && t.data.indexOf(a) === 0 && f(+t.data.slice(a.length));
|
|
3025
|
+
}
|
|
3026
|
+
})(typeof self > "u" ? e === void 0 ? this : e : self);
|
|
3027
|
+
}).call(this, typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
3028
|
+
}, {}]
|
|
3029
|
+
}, {}, [10])(10);
|
|
3030
|
+
});
|
|
3031
|
+
}));
|
|
3032
|
+
//#endregion
|
|
3033
|
+
export { n as t };
|