gds-plus-design-vue 1.3.21 → 1.3.22
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/lib/btnGroup.91a8f59c.js +1 -0
- package/lib/{btnGroup.cbaa6e6b.mjs → btnGroup.de1cc2a8.mjs} +26 -28
- package/lib/components.batchupdate.1962eac2.js +1 -0
- package/lib/{components.batchupdate.62fa93b7.mjs → components.batchupdate.de5e423e.mjs} +6 -5
- package/lib/{components.chartbi.25731354.js → components.chartbi.21cf8350.js} +1 -1
- package/lib/{components.chartbi.45e25851.mjs → components.chartbi.a81fe80e.mjs} +4 -3
- package/lib/components.dataassign.3b0ba94b.js +1 -0
- package/lib/{components.dataassign.6b6e4713.mjs → components.dataassign.a2b3707e.mjs} +4 -3
- package/lib/{components.form.082d9c9b.mjs → components.form.3dec0fec.mjs} +1 -1
- package/lib/{components.form.f4bb9c4c.js → components.form.c95c6835.js} +1 -1
- package/lib/{components.form.column.ee06d8bb.js → components.form.column.597a9f39.js} +1 -1
- package/lib/{components.form.column.cab0072e.mjs → components.form.column.dc8d9c7e.mjs} +1 -1
- package/lib/components.form.selectfkmultiple.4c648ae4.js +1 -0
- package/lib/{components.form.selectfkmultiple.700dd9d1.mjs → components.form.selectfkmultiple.ca036643.mjs} +4 -3
- package/lib/{components.globalheader.c5ce924d.mjs → components.globalheader.1c5bcfc7.mjs} +1 -1
- package/lib/{components.globalheader.5db21e71.js → components.globalheader.26681005.js} +1 -1
- package/lib/{components.sidenavmenu.c7b6729b.mjs → components.sidenavmenu.3134366c.mjs} +1 -1
- package/lib/{components.sidenavmenu.90170635.js → components.sidenavmenu.732eed7d.js} +1 -1
- package/lib/{components.table.childheader.886bb5e9.mjs → components.table.childheader.6bdc2962.mjs} +1 -1
- package/lib/{components.table.childheader.dec53ee4.js → components.table.childheader.e48770c8.js} +1 -1
- package/lib/{components.table.childheaderfilter.f1fe08bb.js → components.table.childheaderfilter.8b9959f1.js} +1 -1
- package/lib/{components.table.childheaderfilter.a5863bed.mjs → components.table.childheaderfilter.f592ad1b.mjs} +1 -1
- package/lib/{components.table.queriesfield.84733bb7.mjs → components.table.queriesfield.b0496b6f.mjs} +1 -1
- package/lib/{components.table.queriesfield.a50919ee.js → components.table.queriesfield.bb1f9e89.js} +1 -1
- package/lib/{components.xlsximport.40d427c7.mjs → components.xlsximport.68883ac0.mjs} +1 -1
- package/lib/{components.xlsximport.df981b91.js → components.xlsximport.d0bdea7b.js} +1 -1
- package/lib/{flow.designer.flowsapproval.31b2dfeb.js → flow.designer.flowsapproval.17a3ec70.js} +1 -1
- package/lib/{flow.designer.flowsapproval.c89ab32f.mjs → flow.designer.flowsapproval.a9bfee0a.mjs} +4 -4
- package/lib/flow.designer.flowsfilter.63129743.js +1 -0
- package/lib/{flow.designer.flowsfilter.3909d81b.mjs → flow.designer.flowsfilter.e31d7ae1.mjs} +3 -2
- package/lib/{flow.designer.flowsprocess.7aa864ff.mjs → flow.designer.flowsprocess.64725e51.mjs} +1 -1
- package/lib/{flow.designer.flowsprocess.a4cdf989.js → flow.designer.flowsprocess.8e40b5d5.js} +1 -1
- package/lib/{flow.designer.flowswork.35555ed7.js → flow.designer.flowswork.aed38cb8.js} +1 -1
- package/lib/{flow.designer.flowswork.45ab5302.mjs → flow.designer.flowswork.d4d75058.mjs} +6 -6
- package/lib/{flow.list.103e6c46.js → flow.list.f00fb85c.js} +1 -1
- package/lib/{flow.list.418fdbf2.mjs → flow.list.f0800e47.mjs} +5 -5
- package/lib/fonticon.015475bb.js +1 -0
- package/lib/{fonticon.0d9a2e23.mjs → fonticon.3fe52106.mjs} +26 -28
- package/lib/{form.designer.build.136e3cdd.mjs → form.designer.build.85f47643.mjs} +4 -4
- package/lib/{form.designer.build.7c94450d.js → form.designer.build.ebb87d9d.js} +1 -1
- package/lib/form.designer.duplicate.60c7c991.js +1 -0
- package/lib/{form.designer.duplicate.60ef52a6.mjs → form.designer.duplicate.d74003f9.mjs} +155 -146
- package/lib/gd-initial.js +1 -1
- package/lib/gd-initial.mjs +80 -82
- package/lib/index.019b1960.js +1 -0
- package/lib/index.1ec5515c.js +1 -0
- package/lib/{index.f1ecfc7f.mjs → index.2f7b8abb.mjs} +31 -33
- package/lib/{index.718199db.mjs → index.51d1f391.mjs} +31 -33
- package/lib/index.6f97e94f.js +1 -0
- package/lib/index.868720cf.js +1 -0
- package/lib/{index.9ec72e55.js → index.b9494e5d.js} +1 -1
- package/lib/{index.459a27d0.mjs → index.d2ee1960.mjs} +27 -29
- package/lib/{index.e051f15e.mjs → index.eada3a0e.mjs} +32 -32
- package/lib/{index.72ea6b6b.mjs → index.ee3c7764.mjs} +10 -9
- package/lib/layoutBlocks.12ab5753.js +1 -0
- package/lib/{layoutBlocks.ec55e84e.mjs → layoutBlocks.20c72bbf.mjs} +26 -28
- package/lib/{layouts.basiclayout.422c6adc.mjs → layouts.basiclayout.4fabd89d.mjs} +2 -2
- package/lib/{layouts.basiclayout.05046cb5.js → layouts.basiclayout.ae0744a3.js} +1 -1
- package/lib/{layouts.basiclayouttop.4047325d.mjs → layouts.basiclayouttop.8a9c0f0a.mjs} +2 -2
- package/lib/{layouts.basiclayouttop.d6ee1637.js → layouts.basiclayouttop.d81eec9a.js} +1 -1
- package/lib/main.118294c4.js +1 -0
- package/lib/{main.95d3ff6c.mjs → main.36116690.mjs} +1 -1
- package/lib/{main.a3a8a32a.mjs → main.3d398f7b.mjs} +29 -31
- package/lib/{main.10a3ef91.mjs → main.678cd264.mjs} +6 -5
- package/lib/{main.750a686d.mjs → main.7f65abb6.mjs} +1 -1
- package/lib/{main.b7f83538.mjs → main.85307c8e.mjs} +5 -4
- package/lib/{main.77bfdb3d.js → main.9ba3822e.js} +1 -1
- package/lib/main.a466fd1d.js +1 -0
- package/lib/main.b54793b2.js +1 -0
- package/lib/{main.ff2b9dde.mjs → main.bede66b8.mjs} +1 -1
- package/lib/{main.72c50010.mjs → main.c9b5d438.mjs} +89 -54
- package/lib/{main.467492ec.js → main.ce44757e.js} +1 -1
- package/lib/main.e835d456.js +1 -0
- package/lib/{main.8024dd7b.js → main.fc0fd324.js} +1 -1
- package/lib/{messages.fieldconfiguration.fc0ab294.js → messages.fieldconfiguration.7bd0c683.js} +1 -1
- package/lib/{messages.fieldconfiguration.c5005421.mjs → messages.fieldconfiguration.b2c624e0.mjs} +4 -4
- package/lib/{messages.messagetemplate.c2f73c16.js → messages.messagetemplate.531d4a32.js} +2 -2
- package/lib/{messages.messagetemplate.c2c8918d.mjs → messages.messagetemplate.d20fd08d.mjs} +2 -2
- package/lib/{messages.sendplan.ee24ff46.js → messages.sendplan.1b899cb1.js} +1 -1
- package/lib/{messages.sendplan.52c1bb0c.mjs → messages.sendplan.d802fbc0.mjs} +1 -1
- package/lib/{page.application.b07312ad.js → page.application.81a43d23.js} +1 -1
- package/lib/{page.application.72fd9f5e.mjs → page.application.bbeccfed.mjs} +2 -2
- package/lib/{page.approval.build.341715b8.mjs → page.approval.build.b391abae.mjs} +3 -3
- package/lib/{page.approval.build.f2ae3171.js → page.approval.build.b683a128.js} +1 -1
- package/lib/page.bcomponents.chartbi.0724042a.js +1 -0
- package/lib/{page.bcomponents.chartbi.11ac732e.mjs → page.bcomponents.chartbi.ea1e2489.mjs} +6 -5
- package/lib/{page.bcomponents.datalist.e9870383.js → page.bcomponents.datalist.6afb4576.js} +1 -1
- package/lib/{page.bcomponents.datalist.ebe77c09.mjs → page.bcomponents.datalist.f50708a5.mjs} +1 -1
- package/lib/{page.bcomponents.tablegridview.b1a8b6ea.mjs → page.bcomponents.tablegridview.79caa0e2.mjs} +1 -1
- package/lib/{page.bcomponents.tablegridview.deb01351.js → page.bcomponents.tablegridview.e65f3546.js} +1 -1
- package/lib/{page.bmodule.approval.c648ecd0.mjs → page.bmodule.approval.8e919147.mjs} +1 -1
- package/lib/{page.bmodule.approval.1f46739c.js → page.bmodule.approval.9eb0736a.js} +1 -1
- package/lib/{page.bmodule.approvalhistory.725e7a01.js → page.bmodule.approvalhistory.6a6ccddf.js} +1 -1
- package/lib/{page.bmodule.approvalhistory.9dd08572.mjs → page.bmodule.approvalhistory.cd05565c.mjs} +1 -1
- package/lib/{page.bmodule.chartbi.98204683.js → page.bmodule.chartbi.5c8d80f0.js} +1 -1
- package/lib/{page.bmodule.chartbi.44c59f0b.mjs → page.bmodule.chartbi.6d961155.mjs} +1 -1
- package/lib/page.bmodule.datafiltering.2d266f51.js +1 -0
- package/lib/{page.bmodule.datafiltering.b3254ae9.mjs → page.bmodule.datafiltering.70a3fd55.mjs} +73 -71
- package/lib/page.bmodule.screendands.57278c53.js +1 -0
- package/lib/page.bmodule.screendands.8e6cfe18.mjs +84 -0
- package/lib/page.bmodule.statistic.02f46b9b.js +1 -0
- package/lib/{page.bmodule.statistic.b3c5f20f.mjs → page.bmodule.statistic.249251c4.mjs} +5 -4
- package/lib/{page.bmodule.tablegrid.d8fa194c.mjs → page.bmodule.tablegrid.c7ca3d0d.mjs} +2 -2
- package/lib/{page.bmodule.tablegrid.7baf5857.js → page.bmodule.tablegrid.f488a197.js} +1 -1
- package/lib/page.bmodule.textcontent.c2beb25f.js +1 -0
- package/lib/{page.bmodule.textcontent.b723d01c.mjs → page.bmodule.textcontent.e03c7acb.mjs} +5 -4
- package/lib/page.build.557751c4.mjs +3037 -0
- package/lib/page.build.d865fad1.js +12 -0
- package/lib/{page.designer.fieldfiltering.2ed8a03f.mjs → page.designer.fieldfiltering.4c83de8f.mjs} +1 -1
- package/lib/{page.designer.fieldfiltering.aba4b648.js → page.designer.fieldfiltering.d9525045.js} +1 -1
- package/lib/page.designerp.generatoraboutconfig.e5d68e62.js +1 -0
- package/lib/{page.designerp.generatoraboutconfig.998009de.mjs → page.designerp.generatoraboutconfig.ff93e31b.mjs} +6 -5
- package/lib/{page.designerp.generatorbackward.f6e8730f.js → page.designerp.generatorbackward.3465ac4c.js} +1 -1
- package/lib/{page.designerp.generatorbackward.4a609e69.mjs → page.designerp.generatorbackward.ec2e8cb9.mjs} +1 -1
- package/lib/{page.designerp.generatorecharts.243dafb6.mjs → page.designerp.generatorecharts.2cd70cd7.mjs} +23 -13
- package/lib/page.designerp.generatorecharts.354e5ddb.js +1 -0
- package/lib/{page.designerp.generatorfiltering.e3b922b2.mjs → page.designerp.generatorfiltering.4f3eb80b.mjs} +1 -1
- package/lib/{page.designerp.generatorfiltering.905e026b.js → page.designerp.generatorfiltering.52d02a76.js} +1 -1
- package/lib/{page.designerp.generatortable.c4cbeb36.mjs → page.designerp.generatortable.12161b54.mjs} +1 -1
- package/lib/{page.designerp.generatortable.79639f31.js → page.designerp.generatortable.1dedc99f.js} +1 -1
- package/lib/{page.designerp.generatortablegrid.e61db667.mjs → page.designerp.generatortablegrid.278cdf69.mjs} +2 -2
- package/lib/{page.designerp.generatortablegrid.2d33e24a.js → page.designerp.generatortablegrid.8752459e.js} +1 -1
- package/lib/{page.designerp.generatortree.f5ea6e0f.js → page.designerp.generatortree.b4ec0dc9.js} +1 -1
- package/lib/{page.designerp.generatortree.a26b78ae.mjs → page.designerp.generatortree.ccb016dd.mjs} +2 -2
- package/lib/{page.designerp.properties.e858d8e2.js → page.designerp.properties.55b2b9a1.js} +1 -1
- package/lib/{page.designerp.properties.3bfd6455.mjs → page.designerp.properties.ff48be97.mjs} +13 -13
- package/lib/{page.designerp.propertieschartbi.2d32c538.mjs → page.designerp.propertieschartbi.179c5500.mjs} +1 -1
- package/lib/{page.designerp.propertieschartbi.9b310756.js → page.designerp.propertieschartbi.a56c825b.js} +1 -1
- package/lib/{page.designerp.propertiesdatafields.4f671ce6.mjs → page.designerp.propertiesdatafields.689c7f7b.mjs} +5 -4
- package/lib/page.designerp.propertiesdatafields.f01f4fbe.js +1 -0
- package/lib/{page.designerp.propertiesdetail.0a966931.mjs → page.designerp.propertiesdetail.a00e099c.mjs} +51 -50
- package/lib/page.designerp.propertiesdetail.ba28f0ff.js +1 -0
- package/lib/{page.designerp.propertiesecharts.fcf3eaa6.mjs → page.designerp.propertiesecharts.95ca196e.mjs} +9 -8
- package/lib/page.designerp.propertiesecharts.d838704e.js +1 -0
- package/lib/page.designerp.propertiesfiltering.859b2fe9.js +1 -0
- package/lib/{page.designerp.propertiesfiltering.b1b010d0.mjs → page.designerp.propertiesfiltering.8ba07531.mjs} +23 -12
- package/lib/page.designerp.propertieslist.5cfffc25.js +1 -0
- package/lib/{page.designerp.propertieslist.828fd439.mjs → page.designerp.propertieslist.fd1fbb98.mjs} +10 -9
- package/lib/{page.designerp.propertiesrelevance.fee69994.mjs → page.designerp.propertiesrelevance.2b81738f.mjs} +60 -223
- package/lib/{page.designerp.propertiesrelevance.0330a49d.js → page.designerp.propertiesrelevance.8ad5a2e5.js} +1 -1
- package/lib/{page.designerp.propertiesstatistic.a417c9e7.mjs → page.designerp.propertiesstatistic.119bbafc.mjs} +1 -1
- package/lib/{page.designerp.propertiesstatistic.0f2da29f.js → page.designerp.propertiesstatistic.4ecb2237.js} +1 -1
- package/lib/{page.designerp.propertiestable.172f9499.mjs → page.designerp.propertiestable.9d7a2ffe.mjs} +10 -9
- package/lib/page.designerp.propertiestable.bb814ba5.js +1 -0
- package/lib/page.designerp.propertiestablegrid.b2b74af5.js +1 -0
- package/lib/page.designerp.propertiestablegrid.cb14d0f9.mjs +551 -0
- package/lib/page.designerp.propertiestree.10a8b210.js +1 -0
- package/lib/{page.designerp.propertiestree.61da99df.mjs → page.designerp.propertiestree.ccd63c1b.mjs} +10 -9
- package/lib/{page.filedocument.build.48a5874e.js → page.filedocument.build.96653b31.js} +1 -1
- package/lib/{page.filedocument.build.61f014b4.mjs → page.filedocument.build.cb49d6c4.mjs} +3 -3
- package/lib/page.screendandss.build.9fcff16a.js +1 -0
- package/lib/page.screendandss.build.eb90b993.mjs +1584 -0
- package/lib/{personal.echarts.268fea3e.mjs → personal.echarts.57f130db.mjs} +1 -1
- package/lib/{personal.echarts.a78792db.js → personal.echarts.a82d1e08.js} +1 -1
- package/lib/{router.config.8be3d360.mjs → router.config.13f50d6e.mjs} +4 -4
- package/lib/{router.config.e68a29e1.js → router.config.35af31ac.js} +1 -1
- package/lib/{search.advanced.dc688c5c.mjs → search.advanced.1b52e72a.mjs} +9 -10
- package/lib/search.advanced.e48627e9.js +1 -0
- package/lib/{solution.approvalflow.1473e907.js → solution.approvalflow.6de84fad.js} +1 -1
- package/lib/{solution.approvalflow.172dfe24.mjs → solution.approvalflow.cc78fd9e.mjs} +2 -2
- package/lib/{solution.processflow.8f95ade9.mjs → solution.processflow.0c889e3f.mjs} +2 -2
- package/lib/{solution.processflow.aae6e7be.js → solution.processflow.f24be0dd.js} +1 -1
- package/lib/{solution.workflow.8a8e8b28.js → solution.workflow.42de6645.js} +1 -1
- package/lib/{solution.workflow.ef472529.mjs → solution.workflow.6b93f0ab.mjs} +2 -2
- package/lib/style.css +2 -2
- package/lib/{sysComponents.90398324.js → sysComponents.a5f1e449.js} +1 -1
- package/lib/{sysComponents.5cffa46d.mjs → sysComponents.ad11e8bb.mjs} +1 -1
- package/lib/{system.document.classifymanage.c3771fa0.js → system.document.classifymanage.31292eab.js} +1 -1
- package/lib/{system.document.classifymanage.4daf3782.mjs → system.document.classifymanage.4280818f.mjs} +1 -1
- package/lib/{system.document.recyclemanage.20503887.mjs → system.document.recyclemanage.ce620eff.mjs} +1 -1
- package/lib/{system.document.recyclemanage.46e290c5.js → system.document.recyclemanage.f66bb7d7.js} +1 -1
- package/lib/{system.duplicatechecking.aeea86d4.js → system.duplicatechecking.00fec573.js} +1 -1
- package/lib/{system.duplicatechecking.d1eb03d9.mjs → system.duplicatechecking.74a3ffb1.mjs} +1 -1
- package/lib/{system.permissions.066316f3.mjs → system.permissions.0959e62e.mjs} +2 -1
- package/lib/system.permissions.3c1d3698.js +1 -0
- package/lib/{system.questionnaire.894382df.mjs → system.questionnaire.69d7750d.mjs} +1 -1
- package/lib/{system.questionnaire.b0e2ee71.js → system.questionnaire.ba54032a.js} +1 -1
- package/lib/{system.questionnairemodule.0373ae59.mjs → system.questionnairemodule.1e5f3710.mjs} +1 -1
- package/lib/{system.questionnairemodule.d1b56552.js → system.questionnairemodule.561dfe7d.js} +1 -1
- package/lib/{table.definition.echartsconfig.02ff98ea.js → table.definition.echartsconfig.a271a945.js} +1 -1
- package/lib/{table.definition.echartsconfig.34eea92d.mjs → table.definition.echartsconfig.b5333188.mjs} +6 -6
- package/lib/{table.definition.fkconfig.a15d547f.mjs → table.definition.fkconfig.0d65c616.mjs} +4 -4
- package/lib/{table.definition.fkconfig.cdd19291.js → table.definition.fkconfig.eeca8f94.js} +1 -1
- package/lib/{table.definition.formconfig.cff793af.mjs → table.definition.formconfig.0ff694a7.mjs} +1 -1
- package/lib/{table.definition.formconfig.772f9395.js → table.definition.formconfig.e9ada088.js} +1 -1
- package/lib/{table.definition.relconfig1n.06739f2f.js → table.definition.relconfig1n.ab0298c6.js} +1 -1
- package/lib/{table.definition.relconfig1n.b4da0947.mjs → table.definition.relconfig1n.fe754ed4.mjs} +1 -1
- package/lib/{table.definition.ruleconfig.9f7b615c.mjs → table.definition.ruleconfig.11f36294.mjs} +3 -3
- package/lib/{table.definition.ruleconfig.b5406966.js → table.definition.ruleconfig.aaf0c457.js} +1 -1
- package/lib/utils.axios.js.471dbf95.js +1 -0
- package/lib/utils.axios.js.b4e877f2.mjs +7 -0
- package/lib/{utils.componentssys.js.539b7c3b.mjs → utils.componentssys.js.5f10821c.mjs} +14 -14
- package/lib/{utils.componentssys.js.a28c0ac2.js → utils.componentssys.js.f0065e96.js} +1 -1
- package/lib/{view.build.c4c937d6.mjs → view.build.9f2d830c.mjs} +14 -15
- package/lib/view.build.b0d2cf1a.js +1 -0
- package/lib/viewTree.31334d4f.js +1 -0
- package/lib/{viewTree.d66af65f.mjs → viewTree.3ad7c3ad.mjs} +4 -3
- package/package.json +16 -17
- package/lib/btnGroup.2304f2f4.js +0 -1
- package/lib/components.batchupdate.5e9d37ed.js +0 -1
- package/lib/components.dataassign.36bab80a.js +0 -1
- package/lib/components.form.selectfkmultiple.4abcc66f.js +0 -1
- package/lib/flow.designer.flowsfilter.3e08ccfa.js +0 -1
- package/lib/fonticon.a1263225.js +0 -1
- package/lib/form.designer.duplicate.0288787e.js +0 -1
- package/lib/index.3a9b2d69.js +0 -1
- package/lib/index.53b24311.js +0 -1
- package/lib/index.6207efd7.js +0 -1
- package/lib/index.8c8698d0.js +0 -1
- package/lib/layoutBlocks.ff24da6b.js +0 -1
- package/lib/main.97e52ee0.js +0 -1
- package/lib/main.9e4ff9c6.js +0 -1
- package/lib/main.a9f3565e.js +0 -1
- package/lib/main.d19f6077.js +0 -1
- package/lib/page.bcomponents.chartbi.b9687d53.js +0 -1
- package/lib/page.bmodule.datafiltering.50c9e358.js +0 -1
- package/lib/page.bmodule.screendands.c9d3a094.js +0 -12
- package/lib/page.bmodule.screendands.f1f47ebe.mjs +0 -4098
- package/lib/page.bmodule.statistic.7ec243e0.js +0 -1
- package/lib/page.bmodule.textcontent.ef260c96.js +0 -1
- package/lib/page.build.5fa4a6c0.js +0 -1
- package/lib/page.build.d8557c78.mjs +0 -389
- package/lib/page.designerp.generatoraboutconfig.df010f35.js +0 -1
- package/lib/page.designerp.generatorecharts.917dd008.js +0 -1
- package/lib/page.designerp.propertiesdatafields.d2709001.js +0 -1
- package/lib/page.designerp.propertiesdetail.e52164a2.js +0 -1
- package/lib/page.designerp.propertiesecharts.5002d91b.js +0 -1
- package/lib/page.designerp.propertiesfiltering.5ad80675.js +0 -1
- package/lib/page.designerp.propertieslist.c7d72d78.js +0 -1
- package/lib/page.designerp.propertiestable.658e0534.js +0 -1
- package/lib/page.designerp.propertiestablegrid.6b5bbe93.mjs +0 -550
- package/lib/page.designerp.propertiestablegrid.e208f5d1.js +0 -1
- package/lib/page.designerp.propertiestree.ee7014b7.js +0 -1
- package/lib/search.advanced.ec1656d2.js +0 -1
- package/lib/system.permissions.606eb229.js +0 -1
- package/lib/utils.axios.js.4fec2453.mjs +0 -1361
- package/lib/utils.axios.js.69442e57.js +0 -5
- package/lib/view.build.cbf165ac.js +0 -1
- package/lib/viewTree.0bf980e8.js +0 -1
|
@@ -1,4098 +0,0 @@
|
|
|
1
|
-
import { M as Zt } from "./page.bmodule.auditlog.564f4370.mjs";
|
|
2
|
-
import { n as ut, m as _t } from "./components.answerquestions.0e877977.mjs";
|
|
3
|
-
import { ab as Ot, ac as Wt, ad as At, ae as Vt, af as Ht, g as It, U as Kt, e as Gt } from "./http.main.573b8993.mjs";
|
|
4
|
-
import { a as qt } from "./form.designer.duplicate.60ef52a6.mjs";
|
|
5
|
-
import { i as Bt, f as Qt, u as Yt } from "./utils.util.js.16b83ff8.mjs";
|
|
6
|
-
import { b as Tt } from "./http.filemanage.237ea8fc.mjs";
|
|
7
|
-
import { c as xt } from "./components.table.46e5f7b8.mjs";
|
|
8
|
-
function St(f) {
|
|
9
|
-
throw new Error('Could not dynamically require "' + f + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
10
|
-
}
|
|
11
|
-
var Rt = { exports: {} };
|
|
12
|
-
/*!
|
|
13
|
-
|
|
14
|
-
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
15
|
-
<http://stuartk.com/jszip>
|
|
16
|
-
|
|
17
|
-
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
18
|
-
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
19
|
-
|
|
20
|
-
JSZip uses the library pako released under the MIT license :
|
|
21
|
-
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
22
|
-
*/
|
|
23
|
-
(function(f, r) {
|
|
24
|
-
(function(e) {
|
|
25
|
-
f.exports = e();
|
|
26
|
-
})(function() {
|
|
27
|
-
return function e(y, m, a) {
|
|
28
|
-
function l(w, x) {
|
|
29
|
-
if (!m[w]) {
|
|
30
|
-
if (!y[w]) {
|
|
31
|
-
var v = typeof St == "function" && St;
|
|
32
|
-
if (!x && v)
|
|
33
|
-
return v(w, !0);
|
|
34
|
-
if (n)
|
|
35
|
-
return n(w, !0);
|
|
36
|
-
var k = new Error("Cannot find module '" + w + "'");
|
|
37
|
-
throw k.code = "MODULE_NOT_FOUND", k;
|
|
38
|
-
}
|
|
39
|
-
var o = m[w] = { exports: {} };
|
|
40
|
-
y[w][0].call(o.exports, function(_) {
|
|
41
|
-
var s = y[w][1][_];
|
|
42
|
-
return l(s || _);
|
|
43
|
-
}, o, o.exports, e, y, m, a);
|
|
44
|
-
}
|
|
45
|
-
return m[w].exports;
|
|
46
|
-
}
|
|
47
|
-
for (var n = typeof St == "function" && St, h = 0; h < a.length; h++)
|
|
48
|
-
l(a[h]);
|
|
49
|
-
return l;
|
|
50
|
-
}({ 1: [function(e, y, m) {
|
|
51
|
-
var a = e("./utils"), l = e("./support"), n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
52
|
-
m.encode = function(h) {
|
|
53
|
-
for (var w, x, v, k, o, _, s, u = [], c = 0, g = h.length, S = g, z = a.getTypeOf(h) !== "string"; c < h.length; )
|
|
54
|
-
S = g - c, v = z ? (w = h[c++], x = c < g ? h[c++] : 0, c < g ? h[c++] : 0) : (w = h.charCodeAt(c++), x = c < g ? h.charCodeAt(c++) : 0, c < g ? h.charCodeAt(c++) : 0), k = w >> 2, o = (3 & w) << 4 | x >> 4, _ = 1 < S ? (15 & x) << 2 | v >> 6 : 64, s = 2 < S ? 63 & v : 64, u.push(n.charAt(k) + n.charAt(o) + n.charAt(_) + n.charAt(s));
|
|
55
|
-
return u.join("");
|
|
56
|
-
}, m.decode = function(h) {
|
|
57
|
-
var w, x, v, k, o, _, s = 0, u = 0, c = "data:";
|
|
58
|
-
if (h.substr(0, c.length) === c)
|
|
59
|
-
throw new Error("Invalid base64 input, it looks like a data url.");
|
|
60
|
-
var g, S = 3 * (h = h.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
61
|
-
if (h.charAt(h.length - 1) === n.charAt(64) && S--, h.charAt(h.length - 2) === n.charAt(64) && S--, S % 1 != 0)
|
|
62
|
-
throw new Error("Invalid base64 input, bad content length.");
|
|
63
|
-
for (g = l.uint8array ? new Uint8Array(0 | S) : new Array(0 | S); s < h.length; )
|
|
64
|
-
w = n.indexOf(h.charAt(s++)) << 2 | (k = n.indexOf(h.charAt(s++))) >> 4, x = (15 & k) << 4 | (o = n.indexOf(h.charAt(s++))) >> 2, v = (3 & o) << 6 | (_ = n.indexOf(h.charAt(s++))), g[u++] = w, o !== 64 && (g[u++] = x), _ !== 64 && (g[u++] = v);
|
|
65
|
-
return g;
|
|
66
|
-
};
|
|
67
|
-
}, { "./support": 30, "./utils": 32 }], 2: [function(e, y, m) {
|
|
68
|
-
var a = e("./external"), l = e("./stream/DataWorker"), n = e("./stream/Crc32Probe"), h = e("./stream/DataLengthProbe");
|
|
69
|
-
function w(x, v, k, o, _) {
|
|
70
|
-
this.compressedSize = x, this.uncompressedSize = v, this.crc32 = k, this.compression = o, this.compressedContent = _;
|
|
71
|
-
}
|
|
72
|
-
w.prototype = { getContentWorker: function() {
|
|
73
|
-
var x = new l(a.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")), v = this;
|
|
74
|
-
return x.on("end", function() {
|
|
75
|
-
if (this.streamInfo.data_length !== v.uncompressedSize)
|
|
76
|
-
throw new Error("Bug : uncompressed data size mismatch");
|
|
77
|
-
}), x;
|
|
78
|
-
}, getCompressedWorker: function() {
|
|
79
|
-
return new l(a.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize", this.compressedSize).withStreamInfo("uncompressedSize", this.uncompressedSize).withStreamInfo("crc32", this.crc32).withStreamInfo("compression", this.compression);
|
|
80
|
-
} }, w.createWorkerFrom = function(x, v, k) {
|
|
81
|
-
return x.pipe(new n()).pipe(new h("uncompressedSize")).pipe(v.compressWorker(k)).pipe(new h("compressedSize")).withStreamInfo("compression", v);
|
|
82
|
-
}, y.exports = w;
|
|
83
|
-
}, { "./external": 6, "./stream/Crc32Probe": 25, "./stream/DataLengthProbe": 26, "./stream/DataWorker": 27 }], 3: [function(e, y, m) {
|
|
84
|
-
var a = e("./stream/GenericWorker");
|
|
85
|
-
m.STORE = { magic: "\0\0", compressWorker: function() {
|
|
86
|
-
return new a("STORE compression");
|
|
87
|
-
}, uncompressWorker: function() {
|
|
88
|
-
return new a("STORE decompression");
|
|
89
|
-
} }, m.DEFLATE = e("./flate");
|
|
90
|
-
}, { "./flate": 7, "./stream/GenericWorker": 28 }], 4: [function(e, y, m) {
|
|
91
|
-
var a = e("./utils"), l = function() {
|
|
92
|
-
for (var n, h = [], w = 0; w < 256; w++) {
|
|
93
|
-
n = w;
|
|
94
|
-
for (var x = 0; x < 8; x++)
|
|
95
|
-
n = 1 & n ? 3988292384 ^ n >>> 1 : n >>> 1;
|
|
96
|
-
h[w] = n;
|
|
97
|
-
}
|
|
98
|
-
return h;
|
|
99
|
-
}();
|
|
100
|
-
y.exports = function(n, h) {
|
|
101
|
-
return n !== void 0 && n.length ? a.getTypeOf(n) !== "string" ? function(w, x, v, k) {
|
|
102
|
-
var o = l, _ = k + v;
|
|
103
|
-
w ^= -1;
|
|
104
|
-
for (var s = k; s < _; s++)
|
|
105
|
-
w = w >>> 8 ^ o[255 & (w ^ x[s])];
|
|
106
|
-
return -1 ^ w;
|
|
107
|
-
}(0 | h, n, n.length, 0) : function(w, x, v, k) {
|
|
108
|
-
var o = l, _ = k + v;
|
|
109
|
-
w ^= -1;
|
|
110
|
-
for (var s = k; s < _; s++)
|
|
111
|
-
w = w >>> 8 ^ o[255 & (w ^ x.charCodeAt(s))];
|
|
112
|
-
return -1 ^ w;
|
|
113
|
-
}(0 | h, n, n.length, 0) : 0;
|
|
114
|
-
};
|
|
115
|
-
}, { "./utils": 32 }], 5: [function(e, y, m) {
|
|
116
|
-
m.base64 = !1, m.binary = !1, m.dir = !1, m.createFolders = !0, m.date = null, m.compression = null, m.compressionOptions = null, m.comment = null, m.unixPermissions = null, m.dosPermissions = null;
|
|
117
|
-
}, {}], 6: [function(e, y, m) {
|
|
118
|
-
var a = null;
|
|
119
|
-
a = typeof Promise < "u" ? Promise : e("lie"), y.exports = { Promise: a };
|
|
120
|
-
}, { lie: 37 }], 7: [function(e, y, m) {
|
|
121
|
-
var a = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Uint32Array < "u", l = e("pako"), n = e("./utils"), h = e("./stream/GenericWorker"), w = a ? "uint8array" : "array";
|
|
122
|
-
function x(v, k) {
|
|
123
|
-
h.call(this, "FlateWorker/" + v), this._pako = null, this._pakoAction = v, this._pakoOptions = k, this.meta = {};
|
|
124
|
-
}
|
|
125
|
-
m.magic = "\b\0", n.inherits(x, h), x.prototype.processChunk = function(v) {
|
|
126
|
-
this.meta = v.meta, this._pako === null && this._createPako(), this._pako.push(n.transformTo(w, v.data), !1);
|
|
127
|
-
}, x.prototype.flush = function() {
|
|
128
|
-
h.prototype.flush.call(this), this._pako === null && this._createPako(), this._pako.push([], !0);
|
|
129
|
-
}, x.prototype.cleanUp = function() {
|
|
130
|
-
h.prototype.cleanUp.call(this), this._pako = null;
|
|
131
|
-
}, x.prototype._createPako = function() {
|
|
132
|
-
this._pako = new l[this._pakoAction]({ raw: !0, level: this._pakoOptions.level || -1 });
|
|
133
|
-
var v = this;
|
|
134
|
-
this._pako.onData = function(k) {
|
|
135
|
-
v.push({ data: k, meta: v.meta });
|
|
136
|
-
};
|
|
137
|
-
}, m.compressWorker = function(v) {
|
|
138
|
-
return new x("Deflate", v);
|
|
139
|
-
}, m.uncompressWorker = function() {
|
|
140
|
-
return new x("Inflate", {});
|
|
141
|
-
};
|
|
142
|
-
}, { "./stream/GenericWorker": 28, "./utils": 32, pako: 38 }], 8: [function(e, y, m) {
|
|
143
|
-
function a(o, _) {
|
|
144
|
-
var s, u = "";
|
|
145
|
-
for (s = 0; s < _; s++)
|
|
146
|
-
u += String.fromCharCode(255 & o), o >>>= 8;
|
|
147
|
-
return u;
|
|
148
|
-
}
|
|
149
|
-
function l(o, _, s, u, c, g) {
|
|
150
|
-
var S, z, E = o.file, N = o.compression, R = g !== w.utf8encode, U = n.transformTo("string", g(E.name)), B = n.transformTo("string", w.utf8encode(E.name)), V = E.comment, Y = n.transformTo("string", g(V)), b = n.transformTo("string", w.utf8encode(V)), D = B.length !== E.name.length, i = b.length !== V.length, $ = "", J = "", P = "", tt = E.dir, M = E.date, X = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
151
|
-
_ && !s || (X.crc32 = o.crc32, X.compressedSize = o.compressedSize, X.uncompressedSize = o.uncompressedSize);
|
|
152
|
-
var O = 0;
|
|
153
|
-
_ && (O |= 8), R || !D && !i || (O |= 2048);
|
|
154
|
-
var T = 0, Q = 0;
|
|
155
|
-
tt && (T |= 16), c === "UNIX" ? (Q = 798, T |= function(H, st) {
|
|
156
|
-
var ct = H;
|
|
157
|
-
return H || (ct = st ? 16893 : 33204), (65535 & ct) << 16;
|
|
158
|
-
}(E.unixPermissions, tt)) : (Q = 20, T |= function(H) {
|
|
159
|
-
return 63 & (H || 0);
|
|
160
|
-
}(E.dosPermissions)), S = M.getUTCHours(), S <<= 6, S |= M.getUTCMinutes(), S <<= 5, S |= M.getUTCSeconds() / 2, z = M.getUTCFullYear() - 1980, z <<= 4, z |= M.getUTCMonth() + 1, z <<= 5, z |= M.getUTCDate(), D && (J = a(1, 1) + a(x(U), 4) + B, $ += "up" + a(J.length, 2) + J), i && (P = a(1, 1) + a(x(Y), 4) + b, $ += "uc" + a(P.length, 2) + P);
|
|
161
|
-
var K = "";
|
|
162
|
-
return K += `
|
|
163
|
-
\0`, K += a(O, 2), K += N.magic, K += a(S, 2), K += a(z, 2), K += a(X.crc32, 4), K += a(X.compressedSize, 4), K += a(X.uncompressedSize, 4), K += a(U.length, 2), K += a($.length, 2), { fileRecord: v.LOCAL_FILE_HEADER + K + U + $, dirRecord: v.CENTRAL_FILE_HEADER + a(Q, 2) + K + a(Y.length, 2) + "\0\0\0\0" + a(T, 4) + a(u, 4) + U + $ + Y };
|
|
164
|
-
}
|
|
165
|
-
var n = e("../utils"), h = e("../stream/GenericWorker"), w = e("../utf8"), x = e("../crc32"), v = e("../signature");
|
|
166
|
-
function k(o, _, s, u) {
|
|
167
|
-
h.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = _, this.zipPlatform = s, this.encodeFileName = u, this.streamFiles = o, this.accumulate = !1, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
168
|
-
}
|
|
169
|
-
n.inherits(k, h), k.prototype.push = function(o) {
|
|
170
|
-
var _ = o.meta.percent || 0, s = this.entriesCount, u = this._sources.length;
|
|
171
|
-
this.accumulate ? this.contentBuffer.push(o) : (this.bytesWritten += o.data.length, h.prototype.push.call(this, { data: o.data, meta: { currentFile: this.currentFile, percent: s ? (_ + 100 * (s - u - 1)) / s : 100 } }));
|
|
172
|
-
}, k.prototype.openedSource = function(o) {
|
|
173
|
-
this.currentSourceOffset = this.bytesWritten, this.currentFile = o.file.name;
|
|
174
|
-
var _ = this.streamFiles && !o.file.dir;
|
|
175
|
-
if (_) {
|
|
176
|
-
var s = l(o, _, !1, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
177
|
-
this.push({ data: s.fileRecord, meta: { percent: 0 } });
|
|
178
|
-
} else
|
|
179
|
-
this.accumulate = !0;
|
|
180
|
-
}, k.prototype.closedSource = function(o) {
|
|
181
|
-
this.accumulate = !1;
|
|
182
|
-
var _ = this.streamFiles && !o.file.dir, s = l(o, _, !0, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
183
|
-
if (this.dirRecords.push(s.dirRecord), _)
|
|
184
|
-
this.push({ data: function(u) {
|
|
185
|
-
return v.DATA_DESCRIPTOR + a(u.crc32, 4) + a(u.compressedSize, 4) + a(u.uncompressedSize, 4);
|
|
186
|
-
}(o), meta: { percent: 100 } });
|
|
187
|
-
else
|
|
188
|
-
for (this.push({ data: s.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; )
|
|
189
|
-
this.push(this.contentBuffer.shift());
|
|
190
|
-
this.currentFile = null;
|
|
191
|
-
}, k.prototype.flush = function() {
|
|
192
|
-
for (var o = this.bytesWritten, _ = 0; _ < this.dirRecords.length; _++)
|
|
193
|
-
this.push({ data: this.dirRecords[_], meta: { percent: 100 } });
|
|
194
|
-
var s = this.bytesWritten - o, u = function(c, g, S, z, E) {
|
|
195
|
-
var N = n.transformTo("string", E(z));
|
|
196
|
-
return v.CENTRAL_DIRECTORY_END + "\0\0\0\0" + a(c, 2) + a(c, 2) + a(g, 4) + a(S, 4) + a(N.length, 2) + N;
|
|
197
|
-
}(this.dirRecords.length, s, o, this.zipComment, this.encodeFileName);
|
|
198
|
-
this.push({ data: u, meta: { percent: 100 } });
|
|
199
|
-
}, k.prototype.prepareNextSource = function() {
|
|
200
|
-
this.previous = this._sources.shift(), this.openedSource(this.previous.streamInfo), this.isPaused ? this.previous.pause() : this.previous.resume();
|
|
201
|
-
}, k.prototype.registerPrevious = function(o) {
|
|
202
|
-
this._sources.push(o);
|
|
203
|
-
var _ = this;
|
|
204
|
-
return o.on("data", function(s) {
|
|
205
|
-
_.processChunk(s);
|
|
206
|
-
}), o.on("end", function() {
|
|
207
|
-
_.closedSource(_.previous.streamInfo), _._sources.length ? _.prepareNextSource() : _.end();
|
|
208
|
-
}), o.on("error", function(s) {
|
|
209
|
-
_.error(s);
|
|
210
|
-
}), this;
|
|
211
|
-
}, k.prototype.resume = function() {
|
|
212
|
-
return !!h.prototype.resume.call(this) && (!this.previous && this._sources.length ? (this.prepareNextSource(), !0) : this.previous || this._sources.length || this.generatedError ? void 0 : (this.end(), !0));
|
|
213
|
-
}, k.prototype.error = function(o) {
|
|
214
|
-
var _ = this._sources;
|
|
215
|
-
if (!h.prototype.error.call(this, o))
|
|
216
|
-
return !1;
|
|
217
|
-
for (var s = 0; s < _.length; s++)
|
|
218
|
-
try {
|
|
219
|
-
_[s].error(o);
|
|
220
|
-
} catch {
|
|
221
|
-
}
|
|
222
|
-
return !0;
|
|
223
|
-
}, k.prototype.lock = function() {
|
|
224
|
-
h.prototype.lock.call(this);
|
|
225
|
-
for (var o = this._sources, _ = 0; _ < o.length; _++)
|
|
226
|
-
o[_].lock();
|
|
227
|
-
}, y.exports = k;
|
|
228
|
-
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, y, m) {
|
|
229
|
-
var a = e("../compressions"), l = e("./ZipFileWorker");
|
|
230
|
-
m.generateWorker = function(n, h, w) {
|
|
231
|
-
var x = new l(h.streamFiles, w, h.platform, h.encodeFileName), v = 0;
|
|
232
|
-
try {
|
|
233
|
-
n.forEach(function(k, o) {
|
|
234
|
-
v++;
|
|
235
|
-
var _ = function(g, S) {
|
|
236
|
-
var z = g || S, E = a[z];
|
|
237
|
-
if (!E)
|
|
238
|
-
throw new Error(z + " is not a valid compression method !");
|
|
239
|
-
return E;
|
|
240
|
-
}(o.options.compression, h.compression), s = o.options.compressionOptions || h.compressionOptions || {}, u = o.dir, c = o.date;
|
|
241
|
-
o._compressWorker(_, s).withStreamInfo("file", { name: k, dir: u, date: c, comment: o.comment || "", unixPermissions: o.unixPermissions, dosPermissions: o.dosPermissions }).pipe(x);
|
|
242
|
-
}), x.entriesCount = v;
|
|
243
|
-
} catch (k) {
|
|
244
|
-
x.error(k);
|
|
245
|
-
}
|
|
246
|
-
return x;
|
|
247
|
-
};
|
|
248
|
-
}, { "../compressions": 3, "./ZipFileWorker": 8 }], 10: [function(e, y, m) {
|
|
249
|
-
function a() {
|
|
250
|
-
if (!(this instanceof a))
|
|
251
|
-
return new a();
|
|
252
|
-
if (arguments.length)
|
|
253
|
-
throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
254
|
-
this.files = /* @__PURE__ */ Object.create(null), this.comment = null, this.root = "", this.clone = function() {
|
|
255
|
-
var l = new a();
|
|
256
|
-
for (var n in this)
|
|
257
|
-
typeof this[n] != "function" && (l[n] = this[n]);
|
|
258
|
-
return l;
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
(a.prototype = e("./object")).loadAsync = e("./load"), a.support = e("./support"), a.defaults = e("./defaults"), a.version = "3.10.1", a.loadAsync = function(l, n) {
|
|
262
|
-
return new a().loadAsync(l, n);
|
|
263
|
-
}, a.external = e("./external"), y.exports = a;
|
|
264
|
-
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, y, m) {
|
|
265
|
-
var a = e("./utils"), l = e("./external"), n = e("./utf8"), h = e("./zipEntries"), w = e("./stream/Crc32Probe"), x = e("./nodejsUtils");
|
|
266
|
-
function v(k) {
|
|
267
|
-
return new l.Promise(function(o, _) {
|
|
268
|
-
var s = k.decompressed.getContentWorker().pipe(new w());
|
|
269
|
-
s.on("error", function(u) {
|
|
270
|
-
_(u);
|
|
271
|
-
}).on("end", function() {
|
|
272
|
-
s.streamInfo.crc32 !== k.decompressed.crc32 ? _(new Error("Corrupted zip : CRC32 mismatch")) : o();
|
|
273
|
-
}).resume();
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
y.exports = function(k, o) {
|
|
277
|
-
var _ = this;
|
|
278
|
-
return o = a.extend(o || {}, { base64: !1, checkCRC32: !1, optimizedBinaryString: !1, createFolders: !1, decodeFileName: n.utf8decode }), x.isNode && x.isStream(k) ? l.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : a.prepareContent("the loaded zip file", k, !0, o.optimizedBinaryString, o.base64).then(function(s) {
|
|
279
|
-
var u = new h(o);
|
|
280
|
-
return u.load(s), u;
|
|
281
|
-
}).then(function(s) {
|
|
282
|
-
var u = [l.Promise.resolve(s)], c = s.files;
|
|
283
|
-
if (o.checkCRC32)
|
|
284
|
-
for (var g = 0; g < c.length; g++)
|
|
285
|
-
u.push(v(c[g]));
|
|
286
|
-
return l.Promise.all(u);
|
|
287
|
-
}).then(function(s) {
|
|
288
|
-
for (var u = s.shift(), c = u.files, g = 0; g < c.length; g++) {
|
|
289
|
-
var S = c[g], z = S.fileNameStr, E = a.resolve(S.fileNameStr);
|
|
290
|
-
_.file(E, S.decompressed, { binary: !0, optimizedBinaryString: !0, date: S.date, dir: S.dir, comment: S.fileCommentStr.length ? S.fileCommentStr : null, unixPermissions: S.unixPermissions, dosPermissions: S.dosPermissions, createFolders: o.createFolders }), S.dir || (_.file(E).unsafeOriginalName = z);
|
|
291
|
-
}
|
|
292
|
-
return u.zipComment.length && (_.comment = u.zipComment), _;
|
|
293
|
-
});
|
|
294
|
-
};
|
|
295
|
-
}, { "./external": 6, "./nodejsUtils": 14, "./stream/Crc32Probe": 25, "./utf8": 31, "./utils": 32, "./zipEntries": 33 }], 12: [function(e, y, m) {
|
|
296
|
-
var a = e("../utils"), l = e("../stream/GenericWorker");
|
|
297
|
-
function n(h, w) {
|
|
298
|
-
l.call(this, "Nodejs stream input adapter for " + h), this._upstreamEnded = !1, this._bindStream(w);
|
|
299
|
-
}
|
|
300
|
-
a.inherits(n, l), n.prototype._bindStream = function(h) {
|
|
301
|
-
var w = this;
|
|
302
|
-
(this._stream = h).pause(), h.on("data", function(x) {
|
|
303
|
-
w.push({ data: x, meta: { percent: 0 } });
|
|
304
|
-
}).on("error", function(x) {
|
|
305
|
-
w.isPaused ? this.generatedError = x : w.error(x);
|
|
306
|
-
}).on("end", function() {
|
|
307
|
-
w.isPaused ? w._upstreamEnded = !0 : w.end();
|
|
308
|
-
});
|
|
309
|
-
}, n.prototype.pause = function() {
|
|
310
|
-
return !!l.prototype.pause.call(this) && (this._stream.pause(), !0);
|
|
311
|
-
}, n.prototype.resume = function() {
|
|
312
|
-
return !!l.prototype.resume.call(this) && (this._upstreamEnded ? this.end() : this._stream.resume(), !0);
|
|
313
|
-
}, y.exports = n;
|
|
314
|
-
}, { "../stream/GenericWorker": 28, "../utils": 32 }], 13: [function(e, y, m) {
|
|
315
|
-
var a = e("readable-stream").Readable;
|
|
316
|
-
function l(n, h, w) {
|
|
317
|
-
a.call(this, h), this._helper = n;
|
|
318
|
-
var x = this;
|
|
319
|
-
n.on("data", function(v, k) {
|
|
320
|
-
x.push(v) || x._helper.pause(), w && w(k);
|
|
321
|
-
}).on("error", function(v) {
|
|
322
|
-
x.emit("error", v);
|
|
323
|
-
}).on("end", function() {
|
|
324
|
-
x.push(null);
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
e("../utils").inherits(l, a), l.prototype._read = function() {
|
|
328
|
-
this._helper.resume();
|
|
329
|
-
}, y.exports = l;
|
|
330
|
-
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, y, m) {
|
|
331
|
-
y.exports = { isNode: typeof Buffer < "u", newBufferFrom: function(a, l) {
|
|
332
|
-
if (Buffer.from && Buffer.from !== Uint8Array.from)
|
|
333
|
-
return Buffer.from(a, l);
|
|
334
|
-
if (typeof a == "number")
|
|
335
|
-
throw new Error('The "data" argument must not be a number');
|
|
336
|
-
return new Buffer(a, l);
|
|
337
|
-
}, allocBuffer: function(a) {
|
|
338
|
-
if (Buffer.alloc)
|
|
339
|
-
return Buffer.alloc(a);
|
|
340
|
-
var l = new Buffer(a);
|
|
341
|
-
return l.fill(0), l;
|
|
342
|
-
}, isBuffer: function(a) {
|
|
343
|
-
return Buffer.isBuffer(a);
|
|
344
|
-
}, isStream: function(a) {
|
|
345
|
-
return a && typeof a.on == "function" && typeof a.pause == "function" && typeof a.resume == "function";
|
|
346
|
-
} };
|
|
347
|
-
}, {}], 15: [function(e, y, m) {
|
|
348
|
-
function a(E, N, R) {
|
|
349
|
-
var U, B = n.getTypeOf(N), V = n.extend(R || {}, x);
|
|
350
|
-
V.date = V.date || new Date(), V.compression !== null && (V.compression = V.compression.toUpperCase()), typeof V.unixPermissions == "string" && (V.unixPermissions = parseInt(V.unixPermissions, 8)), V.unixPermissions && 16384 & V.unixPermissions && (V.dir = !0), V.dosPermissions && 16 & V.dosPermissions && (V.dir = !0), V.dir && (E = c(E)), V.createFolders && (U = u(E)) && g.call(this, U, !0);
|
|
351
|
-
var Y = B === "string" && V.binary === !1 && V.base64 === !1;
|
|
352
|
-
R && R.binary !== void 0 || (V.binary = !Y), (N instanceof v && N.uncompressedSize === 0 || V.dir || !N || N.length === 0) && (V.base64 = !1, V.binary = !0, N = "", V.compression = "STORE", B = "string");
|
|
353
|
-
var b = null;
|
|
354
|
-
b = N instanceof v || N instanceof h ? N : _.isNode && _.isStream(N) ? new s(E, N) : n.prepareContent(E, N, V.binary, V.optimizedBinaryString, V.base64);
|
|
355
|
-
var D = new k(E, b, V);
|
|
356
|
-
this.files[E] = D;
|
|
357
|
-
}
|
|
358
|
-
var l = e("./utf8"), n = e("./utils"), h = e("./stream/GenericWorker"), w = e("./stream/StreamHelper"), x = e("./defaults"), v = e("./compressedObject"), k = e("./zipObject"), o = e("./generate"), _ = e("./nodejsUtils"), s = e("./nodejs/NodejsStreamInputAdapter"), u = function(E) {
|
|
359
|
-
E.slice(-1) === "/" && (E = E.substring(0, E.length - 1));
|
|
360
|
-
var N = E.lastIndexOf("/");
|
|
361
|
-
return 0 < N ? E.substring(0, N) : "";
|
|
362
|
-
}, c = function(E) {
|
|
363
|
-
return E.slice(-1) !== "/" && (E += "/"), E;
|
|
364
|
-
}, g = function(E, N) {
|
|
365
|
-
return N = N !== void 0 ? N : x.createFolders, E = c(E), this.files[E] || a.call(this, E, null, { dir: !0, createFolders: N }), this.files[E];
|
|
366
|
-
};
|
|
367
|
-
function S(E) {
|
|
368
|
-
return Object.prototype.toString.call(E) === "[object RegExp]";
|
|
369
|
-
}
|
|
370
|
-
var z = { load: function() {
|
|
371
|
-
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
372
|
-
}, forEach: function(E) {
|
|
373
|
-
var N, R, U;
|
|
374
|
-
for (N in this.files)
|
|
375
|
-
U = this.files[N], (R = N.slice(this.root.length, N.length)) && N.slice(0, this.root.length) === this.root && E(R, U);
|
|
376
|
-
}, filter: function(E) {
|
|
377
|
-
var N = [];
|
|
378
|
-
return this.forEach(function(R, U) {
|
|
379
|
-
E(R, U) && N.push(U);
|
|
380
|
-
}), N;
|
|
381
|
-
}, file: function(E, N, R) {
|
|
382
|
-
if (arguments.length !== 1)
|
|
383
|
-
return E = this.root + E, a.call(this, E, N, R), this;
|
|
384
|
-
if (S(E)) {
|
|
385
|
-
var U = E;
|
|
386
|
-
return this.filter(function(V, Y) {
|
|
387
|
-
return !Y.dir && U.test(V);
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
var B = this.files[this.root + E];
|
|
391
|
-
return B && !B.dir ? B : null;
|
|
392
|
-
}, folder: function(E) {
|
|
393
|
-
if (!E)
|
|
394
|
-
return this;
|
|
395
|
-
if (S(E))
|
|
396
|
-
return this.filter(function(B, V) {
|
|
397
|
-
return V.dir && E.test(B);
|
|
398
|
-
});
|
|
399
|
-
var N = this.root + E, R = g.call(this, N), U = this.clone();
|
|
400
|
-
return U.root = R.name, U;
|
|
401
|
-
}, remove: function(E) {
|
|
402
|
-
E = this.root + E;
|
|
403
|
-
var N = this.files[E];
|
|
404
|
-
if (N || (E.slice(-1) !== "/" && (E += "/"), N = this.files[E]), N && !N.dir)
|
|
405
|
-
delete this.files[E];
|
|
406
|
-
else
|
|
407
|
-
for (var R = this.filter(function(B, V) {
|
|
408
|
-
return V.name.slice(0, E.length) === E;
|
|
409
|
-
}), U = 0; U < R.length; U++)
|
|
410
|
-
delete this.files[R[U].name];
|
|
411
|
-
return this;
|
|
412
|
-
}, generate: function() {
|
|
413
|
-
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
414
|
-
}, generateInternalStream: function(E) {
|
|
415
|
-
var N, R = {};
|
|
416
|
-
try {
|
|
417
|
-
if ((R = n.extend(E || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: l.utf8encode })).type = R.type.toLowerCase(), R.compression = R.compression.toUpperCase(), R.type === "binarystring" && (R.type = "string"), !R.type)
|
|
418
|
-
throw new Error("No output type specified.");
|
|
419
|
-
n.checkSupport(R.type), R.platform !== "darwin" && R.platform !== "freebsd" && R.platform !== "linux" && R.platform !== "sunos" || (R.platform = "UNIX"), R.platform === "win32" && (R.platform = "DOS");
|
|
420
|
-
var U = R.comment || this.comment || "";
|
|
421
|
-
N = o.generateWorker(this, R, U);
|
|
422
|
-
} catch (B) {
|
|
423
|
-
(N = new h("error")).error(B);
|
|
424
|
-
}
|
|
425
|
-
return new w(N, R.type || "string", R.mimeType);
|
|
426
|
-
}, generateAsync: function(E, N) {
|
|
427
|
-
return this.generateInternalStream(E).accumulate(N);
|
|
428
|
-
}, generateNodeStream: function(E, N) {
|
|
429
|
-
return (E = E || {}).type || (E.type = "nodebuffer"), this.generateInternalStream(E).toNodejsStream(N);
|
|
430
|
-
} };
|
|
431
|
-
y.exports = z;
|
|
432
|
-
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(e, y, m) {
|
|
433
|
-
y.exports = e("stream");
|
|
434
|
-
}, { stream: void 0 }], 17: [function(e, y, m) {
|
|
435
|
-
var a = e("./DataReader");
|
|
436
|
-
function l(n) {
|
|
437
|
-
a.call(this, n);
|
|
438
|
-
for (var h = 0; h < this.data.length; h++)
|
|
439
|
-
n[h] = 255 & n[h];
|
|
440
|
-
}
|
|
441
|
-
e("../utils").inherits(l, a), l.prototype.byteAt = function(n) {
|
|
442
|
-
return this.data[this.zero + n];
|
|
443
|
-
}, l.prototype.lastIndexOfSignature = function(n) {
|
|
444
|
-
for (var h = n.charCodeAt(0), w = n.charCodeAt(1), x = n.charCodeAt(2), v = n.charCodeAt(3), k = this.length - 4; 0 <= k; --k)
|
|
445
|
-
if (this.data[k] === h && this.data[k + 1] === w && this.data[k + 2] === x && this.data[k + 3] === v)
|
|
446
|
-
return k - this.zero;
|
|
447
|
-
return -1;
|
|
448
|
-
}, l.prototype.readAndCheckSignature = function(n) {
|
|
449
|
-
var h = n.charCodeAt(0), w = n.charCodeAt(1), x = n.charCodeAt(2), v = n.charCodeAt(3), k = this.readData(4);
|
|
450
|
-
return h === k[0] && w === k[1] && x === k[2] && v === k[3];
|
|
451
|
-
}, l.prototype.readData = function(n) {
|
|
452
|
-
if (this.checkOffset(n), n === 0)
|
|
453
|
-
return [];
|
|
454
|
-
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
455
|
-
return this.index += n, h;
|
|
456
|
-
}, y.exports = l;
|
|
457
|
-
}, { "../utils": 32, "./DataReader": 18 }], 18: [function(e, y, m) {
|
|
458
|
-
var a = e("../utils");
|
|
459
|
-
function l(n) {
|
|
460
|
-
this.data = n, this.length = n.length, this.index = 0, this.zero = 0;
|
|
461
|
-
}
|
|
462
|
-
l.prototype = { checkOffset: function(n) {
|
|
463
|
-
this.checkIndex(this.index + n);
|
|
464
|
-
}, checkIndex: function(n) {
|
|
465
|
-
if (this.length < this.zero + n || n < 0)
|
|
466
|
-
throw new Error("End of data reached (data length = " + this.length + ", asked index = " + n + "). Corrupted zip ?");
|
|
467
|
-
}, setIndex: function(n) {
|
|
468
|
-
this.checkIndex(n), this.index = n;
|
|
469
|
-
}, skip: function(n) {
|
|
470
|
-
this.setIndex(this.index + n);
|
|
471
|
-
}, byteAt: function() {
|
|
472
|
-
}, readInt: function(n) {
|
|
473
|
-
var h, w = 0;
|
|
474
|
-
for (this.checkOffset(n), h = this.index + n - 1; h >= this.index; h--)
|
|
475
|
-
w = (w << 8) + this.byteAt(h);
|
|
476
|
-
return this.index += n, w;
|
|
477
|
-
}, readString: function(n) {
|
|
478
|
-
return a.transformTo("string", this.readData(n));
|
|
479
|
-
}, readData: function() {
|
|
480
|
-
}, lastIndexOfSignature: function() {
|
|
481
|
-
}, readAndCheckSignature: function() {
|
|
482
|
-
}, readDate: function() {
|
|
483
|
-
var n = this.readInt(4);
|
|
484
|
-
return new Date(Date.UTC(1980 + (n >> 25 & 127), (n >> 21 & 15) - 1, n >> 16 & 31, n >> 11 & 31, n >> 5 & 63, (31 & n) << 1));
|
|
485
|
-
} }, y.exports = l;
|
|
486
|
-
}, { "../utils": 32 }], 19: [function(e, y, m) {
|
|
487
|
-
var a = e("./Uint8ArrayReader");
|
|
488
|
-
function l(n) {
|
|
489
|
-
a.call(this, n);
|
|
490
|
-
}
|
|
491
|
-
e("../utils").inherits(l, a), l.prototype.readData = function(n) {
|
|
492
|
-
this.checkOffset(n);
|
|
493
|
-
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
494
|
-
return this.index += n, h;
|
|
495
|
-
}, y.exports = l;
|
|
496
|
-
}, { "../utils": 32, "./Uint8ArrayReader": 21 }], 20: [function(e, y, m) {
|
|
497
|
-
var a = e("./DataReader");
|
|
498
|
-
function l(n) {
|
|
499
|
-
a.call(this, n);
|
|
500
|
-
}
|
|
501
|
-
e("../utils").inherits(l, a), l.prototype.byteAt = function(n) {
|
|
502
|
-
return this.data.charCodeAt(this.zero + n);
|
|
503
|
-
}, l.prototype.lastIndexOfSignature = function(n) {
|
|
504
|
-
return this.data.lastIndexOf(n) - this.zero;
|
|
505
|
-
}, l.prototype.readAndCheckSignature = function(n) {
|
|
506
|
-
return n === this.readData(4);
|
|
507
|
-
}, l.prototype.readData = function(n) {
|
|
508
|
-
this.checkOffset(n);
|
|
509
|
-
var h = this.data.slice(this.zero + this.index, this.zero + this.index + n);
|
|
510
|
-
return this.index += n, h;
|
|
511
|
-
}, y.exports = l;
|
|
512
|
-
}, { "../utils": 32, "./DataReader": 18 }], 21: [function(e, y, m) {
|
|
513
|
-
var a = e("./ArrayReader");
|
|
514
|
-
function l(n) {
|
|
515
|
-
a.call(this, n);
|
|
516
|
-
}
|
|
517
|
-
e("../utils").inherits(l, a), l.prototype.readData = function(n) {
|
|
518
|
-
if (this.checkOffset(n), n === 0)
|
|
519
|
-
return new Uint8Array(0);
|
|
520
|
-
var h = this.data.subarray(this.zero + this.index, this.zero + this.index + n);
|
|
521
|
-
return this.index += n, h;
|
|
522
|
-
}, y.exports = l;
|
|
523
|
-
}, { "../utils": 32, "./ArrayReader": 17 }], 22: [function(e, y, m) {
|
|
524
|
-
var a = e("../utils"), l = e("../support"), n = e("./ArrayReader"), h = e("./StringReader"), w = e("./NodeBufferReader"), x = e("./Uint8ArrayReader");
|
|
525
|
-
y.exports = function(v) {
|
|
526
|
-
var k = a.getTypeOf(v);
|
|
527
|
-
return a.checkSupport(k), k !== "string" || l.uint8array ? k === "nodebuffer" ? new w(v) : l.uint8array ? new x(a.transformTo("uint8array", v)) : new n(a.transformTo("array", v)) : new h(v);
|
|
528
|
-
};
|
|
529
|
-
}, { "../support": 30, "../utils": 32, "./ArrayReader": 17, "./NodeBufferReader": 19, "./StringReader": 20, "./Uint8ArrayReader": 21 }], 23: [function(e, y, m) {
|
|
530
|
-
m.LOCAL_FILE_HEADER = "PK", m.CENTRAL_FILE_HEADER = "PK", m.CENTRAL_DIRECTORY_END = "PK", m.ZIP64_CENTRAL_DIRECTORY_LOCATOR = "PK\x07", m.ZIP64_CENTRAL_DIRECTORY_END = "PK", m.DATA_DESCRIPTOR = "PK\x07\b";
|
|
531
|
-
}, {}], 24: [function(e, y, m) {
|
|
532
|
-
var a = e("./GenericWorker"), l = e("../utils");
|
|
533
|
-
function n(h) {
|
|
534
|
-
a.call(this, "ConvertWorker to " + h), this.destType = h;
|
|
535
|
-
}
|
|
536
|
-
l.inherits(n, a), n.prototype.processChunk = function(h) {
|
|
537
|
-
this.push({ data: l.transformTo(this.destType, h.data), meta: h.meta });
|
|
538
|
-
}, y.exports = n;
|
|
539
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 25: [function(e, y, m) {
|
|
540
|
-
var a = e("./GenericWorker"), l = e("../crc32");
|
|
541
|
-
function n() {
|
|
542
|
-
a.call(this, "Crc32Probe"), this.withStreamInfo("crc32", 0);
|
|
543
|
-
}
|
|
544
|
-
e("../utils").inherits(n, a), n.prototype.processChunk = function(h) {
|
|
545
|
-
this.streamInfo.crc32 = l(h.data, this.streamInfo.crc32 || 0), this.push(h);
|
|
546
|
-
}, y.exports = n;
|
|
547
|
-
}, { "../crc32": 4, "../utils": 32, "./GenericWorker": 28 }], 26: [function(e, y, m) {
|
|
548
|
-
var a = e("../utils"), l = e("./GenericWorker");
|
|
549
|
-
function n(h) {
|
|
550
|
-
l.call(this, "DataLengthProbe for " + h), this.propName = h, this.withStreamInfo(h, 0);
|
|
551
|
-
}
|
|
552
|
-
a.inherits(n, l), n.prototype.processChunk = function(h) {
|
|
553
|
-
if (h) {
|
|
554
|
-
var w = this.streamInfo[this.propName] || 0;
|
|
555
|
-
this.streamInfo[this.propName] = w + h.data.length;
|
|
556
|
-
}
|
|
557
|
-
l.prototype.processChunk.call(this, h);
|
|
558
|
-
}, y.exports = n;
|
|
559
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 27: [function(e, y, m) {
|
|
560
|
-
var a = e("../utils"), l = e("./GenericWorker");
|
|
561
|
-
function n(h) {
|
|
562
|
-
l.call(this, "DataWorker");
|
|
563
|
-
var w = this;
|
|
564
|
-
this.dataIsReady = !1, this.index = 0, this.max = 0, this.data = null, this.type = "", this._tickScheduled = !1, h.then(function(x) {
|
|
565
|
-
w.dataIsReady = !0, w.data = x, w.max = x && x.length || 0, w.type = a.getTypeOf(x), w.isPaused || w._tickAndRepeat();
|
|
566
|
-
}, function(x) {
|
|
567
|
-
w.error(x);
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
a.inherits(n, l), n.prototype.cleanUp = function() {
|
|
571
|
-
l.prototype.cleanUp.call(this), this.data = null;
|
|
572
|
-
}, n.prototype.resume = function() {
|
|
573
|
-
return !!l.prototype.resume.call(this) && (!this._tickScheduled && this.dataIsReady && (this._tickScheduled = !0, a.delay(this._tickAndRepeat, [], this)), !0);
|
|
574
|
-
}, n.prototype._tickAndRepeat = function() {
|
|
575
|
-
this._tickScheduled = !1, this.isPaused || this.isFinished || (this._tick(), this.isFinished || (a.delay(this._tickAndRepeat, [], this), this._tickScheduled = !0));
|
|
576
|
-
}, n.prototype._tick = function() {
|
|
577
|
-
if (this.isPaused || this.isFinished)
|
|
578
|
-
return !1;
|
|
579
|
-
var h = null, w = Math.min(this.max, this.index + 16384);
|
|
580
|
-
if (this.index >= this.max)
|
|
581
|
-
return this.end();
|
|
582
|
-
switch (this.type) {
|
|
583
|
-
case "string":
|
|
584
|
-
h = this.data.substring(this.index, w);
|
|
585
|
-
break;
|
|
586
|
-
case "uint8array":
|
|
587
|
-
h = this.data.subarray(this.index, w);
|
|
588
|
-
break;
|
|
589
|
-
case "array":
|
|
590
|
-
case "nodebuffer":
|
|
591
|
-
h = this.data.slice(this.index, w);
|
|
592
|
-
}
|
|
593
|
-
return this.index = w, this.push({ data: h, meta: { percent: this.max ? this.index / this.max * 100 : 0 } });
|
|
594
|
-
}, y.exports = n;
|
|
595
|
-
}, { "../utils": 32, "./GenericWorker": 28 }], 28: [function(e, y, m) {
|
|
596
|
-
function a(l) {
|
|
597
|
-
this.name = l || "default", this.streamInfo = {}, this.generatedError = null, this.extraStreamInfo = {}, this.isPaused = !0, this.isFinished = !1, this.isLocked = !1, this._listeners = { data: [], end: [], error: [] }, this.previous = null;
|
|
598
|
-
}
|
|
599
|
-
a.prototype = { push: function(l) {
|
|
600
|
-
this.emit("data", l);
|
|
601
|
-
}, end: function() {
|
|
602
|
-
if (this.isFinished)
|
|
603
|
-
return !1;
|
|
604
|
-
this.flush();
|
|
605
|
-
try {
|
|
606
|
-
this.emit("end"), this.cleanUp(), this.isFinished = !0;
|
|
607
|
-
} catch (l) {
|
|
608
|
-
this.emit("error", l);
|
|
609
|
-
}
|
|
610
|
-
return !0;
|
|
611
|
-
}, error: function(l) {
|
|
612
|
-
return !this.isFinished && (this.isPaused ? this.generatedError = l : (this.isFinished = !0, this.emit("error", l), this.previous && this.previous.error(l), this.cleanUp()), !0);
|
|
613
|
-
}, on: function(l, n) {
|
|
614
|
-
return this._listeners[l].push(n), this;
|
|
615
|
-
}, cleanUp: function() {
|
|
616
|
-
this.streamInfo = this.generatedError = this.extraStreamInfo = null, this._listeners = [];
|
|
617
|
-
}, emit: function(l, n) {
|
|
618
|
-
if (this._listeners[l])
|
|
619
|
-
for (var h = 0; h < this._listeners[l].length; h++)
|
|
620
|
-
this._listeners[l][h].call(this, n);
|
|
621
|
-
}, pipe: function(l) {
|
|
622
|
-
return l.registerPrevious(this);
|
|
623
|
-
}, registerPrevious: function(l) {
|
|
624
|
-
if (this.isLocked)
|
|
625
|
-
throw new Error("The stream '" + this + "' has already been used.");
|
|
626
|
-
this.streamInfo = l.streamInfo, this.mergeStreamInfo(), this.previous = l;
|
|
627
|
-
var n = this;
|
|
628
|
-
return l.on("data", function(h) {
|
|
629
|
-
n.processChunk(h);
|
|
630
|
-
}), l.on("end", function() {
|
|
631
|
-
n.end();
|
|
632
|
-
}), l.on("error", function(h) {
|
|
633
|
-
n.error(h);
|
|
634
|
-
}), this;
|
|
635
|
-
}, pause: function() {
|
|
636
|
-
return !this.isPaused && !this.isFinished && (this.isPaused = !0, this.previous && this.previous.pause(), !0);
|
|
637
|
-
}, resume: function() {
|
|
638
|
-
if (!this.isPaused || this.isFinished)
|
|
639
|
-
return !1;
|
|
640
|
-
var l = this.isPaused = !1;
|
|
641
|
-
return this.generatedError && (this.error(this.generatedError), l = !0), this.previous && this.previous.resume(), !l;
|
|
642
|
-
}, flush: function() {
|
|
643
|
-
}, processChunk: function(l) {
|
|
644
|
-
this.push(l);
|
|
645
|
-
}, withStreamInfo: function(l, n) {
|
|
646
|
-
return this.extraStreamInfo[l] = n, this.mergeStreamInfo(), this;
|
|
647
|
-
}, mergeStreamInfo: function() {
|
|
648
|
-
for (var l in this.extraStreamInfo)
|
|
649
|
-
Object.prototype.hasOwnProperty.call(this.extraStreamInfo, l) && (this.streamInfo[l] = this.extraStreamInfo[l]);
|
|
650
|
-
}, lock: function() {
|
|
651
|
-
if (this.isLocked)
|
|
652
|
-
throw new Error("The stream '" + this + "' has already been used.");
|
|
653
|
-
this.isLocked = !0, this.previous && this.previous.lock();
|
|
654
|
-
}, toString: function() {
|
|
655
|
-
var l = "Worker " + this.name;
|
|
656
|
-
return this.previous ? this.previous + " -> " + l : l;
|
|
657
|
-
} }, y.exports = a;
|
|
658
|
-
}, {}], 29: [function(e, y, m) {
|
|
659
|
-
var a = e("../utils"), l = e("./ConvertWorker"), n = e("./GenericWorker"), h = e("../base64"), w = e("../support"), x = e("../external"), v = null;
|
|
660
|
-
if (w.nodestream)
|
|
661
|
-
try {
|
|
662
|
-
v = e("../nodejs/NodejsStreamOutputAdapter");
|
|
663
|
-
} catch {
|
|
664
|
-
}
|
|
665
|
-
function k(_, s) {
|
|
666
|
-
return new x.Promise(function(u, c) {
|
|
667
|
-
var g = [], S = _._internalType, z = _._outputType, E = _._mimeType;
|
|
668
|
-
_.on("data", function(N, R) {
|
|
669
|
-
g.push(N), s && s(R);
|
|
670
|
-
}).on("error", function(N) {
|
|
671
|
-
g = [], c(N);
|
|
672
|
-
}).on("end", function() {
|
|
673
|
-
try {
|
|
674
|
-
var N = function(R, U, B) {
|
|
675
|
-
switch (R) {
|
|
676
|
-
case "blob":
|
|
677
|
-
return a.newBlob(a.transformTo("arraybuffer", U), B);
|
|
678
|
-
case "base64":
|
|
679
|
-
return h.encode(U);
|
|
680
|
-
default:
|
|
681
|
-
return a.transformTo(R, U);
|
|
682
|
-
}
|
|
683
|
-
}(z, function(R, U) {
|
|
684
|
-
var B, V = 0, Y = null, b = 0;
|
|
685
|
-
for (B = 0; B < U.length; B++)
|
|
686
|
-
b += U[B].length;
|
|
687
|
-
switch (R) {
|
|
688
|
-
case "string":
|
|
689
|
-
return U.join("");
|
|
690
|
-
case "array":
|
|
691
|
-
return Array.prototype.concat.apply([], U);
|
|
692
|
-
case "uint8array":
|
|
693
|
-
for (Y = new Uint8Array(b), B = 0; B < U.length; B++)
|
|
694
|
-
Y.set(U[B], V), V += U[B].length;
|
|
695
|
-
return Y;
|
|
696
|
-
case "nodebuffer":
|
|
697
|
-
return Buffer.concat(U);
|
|
698
|
-
default:
|
|
699
|
-
throw new Error("concat : unsupported type '" + R + "'");
|
|
700
|
-
}
|
|
701
|
-
}(S, g), E);
|
|
702
|
-
u(N);
|
|
703
|
-
} catch (R) {
|
|
704
|
-
c(R);
|
|
705
|
-
}
|
|
706
|
-
g = [];
|
|
707
|
-
}).resume();
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
function o(_, s, u) {
|
|
711
|
-
var c = s;
|
|
712
|
-
switch (s) {
|
|
713
|
-
case "blob":
|
|
714
|
-
case "arraybuffer":
|
|
715
|
-
c = "uint8array";
|
|
716
|
-
break;
|
|
717
|
-
case "base64":
|
|
718
|
-
c = "string";
|
|
719
|
-
}
|
|
720
|
-
try {
|
|
721
|
-
this._internalType = c, this._outputType = s, this._mimeType = u, a.checkSupport(c), this._worker = _.pipe(new l(c)), _.lock();
|
|
722
|
-
} catch (g) {
|
|
723
|
-
this._worker = new n("error"), this._worker.error(g);
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
o.prototype = { accumulate: function(_) {
|
|
727
|
-
return k(this, _);
|
|
728
|
-
}, on: function(_, s) {
|
|
729
|
-
var u = this;
|
|
730
|
-
return _ === "data" ? this._worker.on(_, function(c) {
|
|
731
|
-
s.call(u, c.data, c.meta);
|
|
732
|
-
}) : this._worker.on(_, function() {
|
|
733
|
-
a.delay(s, arguments, u);
|
|
734
|
-
}), this;
|
|
735
|
-
}, resume: function() {
|
|
736
|
-
return a.delay(this._worker.resume, [], this._worker), this;
|
|
737
|
-
}, pause: function() {
|
|
738
|
-
return this._worker.pause(), this;
|
|
739
|
-
}, toNodejsStream: function(_) {
|
|
740
|
-
if (a.checkSupport("nodestream"), this._outputType !== "nodebuffer")
|
|
741
|
-
throw new Error(this._outputType + " is not supported by this method");
|
|
742
|
-
return new v(this, { objectMode: this._outputType !== "nodebuffer" }, _);
|
|
743
|
-
} }, y.exports = o;
|
|
744
|
-
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, y, m) {
|
|
745
|
-
if (m.base64 = !0, m.array = !0, m.string = !0, m.arraybuffer = typeof ArrayBuffer < "u" && typeof Uint8Array < "u", m.nodebuffer = typeof Buffer < "u", m.uint8array = typeof Uint8Array < "u", typeof ArrayBuffer > "u")
|
|
746
|
-
m.blob = !1;
|
|
747
|
-
else {
|
|
748
|
-
var a = new ArrayBuffer(0);
|
|
749
|
-
try {
|
|
750
|
-
m.blob = new Blob([a], { type: "application/zip" }).size === 0;
|
|
751
|
-
} catch {
|
|
752
|
-
try {
|
|
753
|
-
var l = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
754
|
-
l.append(a), m.blob = l.getBlob("application/zip").size === 0;
|
|
755
|
-
} catch {
|
|
756
|
-
m.blob = !1;
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
try {
|
|
761
|
-
m.nodestream = !!e("readable-stream").Readable;
|
|
762
|
-
} catch {
|
|
763
|
-
m.nodestream = !1;
|
|
764
|
-
}
|
|
765
|
-
}, { "readable-stream": 16 }], 31: [function(e, y, m) {
|
|
766
|
-
for (var a = e("./utils"), l = e("./support"), n = e("./nodejsUtils"), h = e("./stream/GenericWorker"), w = new Array(256), x = 0; x < 256; x++)
|
|
767
|
-
w[x] = 252 <= x ? 6 : 248 <= x ? 5 : 240 <= x ? 4 : 224 <= x ? 3 : 192 <= x ? 2 : 1;
|
|
768
|
-
w[254] = w[254] = 1;
|
|
769
|
-
function v() {
|
|
770
|
-
h.call(this, "utf-8 decode"), this.leftOver = null;
|
|
771
|
-
}
|
|
772
|
-
function k() {
|
|
773
|
-
h.call(this, "utf-8 encode");
|
|
774
|
-
}
|
|
775
|
-
m.utf8encode = function(o) {
|
|
776
|
-
return l.nodebuffer ? n.newBufferFrom(o, "utf-8") : function(_) {
|
|
777
|
-
var s, u, c, g, S, z = _.length, E = 0;
|
|
778
|
-
for (g = 0; g < z; g++)
|
|
779
|
-
(64512 & (u = _.charCodeAt(g))) == 55296 && g + 1 < z && (64512 & (c = _.charCodeAt(g + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (c - 56320), g++), E += u < 128 ? 1 : u < 2048 ? 2 : u < 65536 ? 3 : 4;
|
|
780
|
-
for (s = l.uint8array ? new Uint8Array(E) : new Array(E), g = S = 0; S < E; g++)
|
|
781
|
-
(64512 & (u = _.charCodeAt(g))) == 55296 && g + 1 < z && (64512 & (c = _.charCodeAt(g + 1))) == 56320 && (u = 65536 + (u - 55296 << 10) + (c - 56320), g++), u < 128 ? s[S++] = u : (u < 2048 ? s[S++] = 192 | u >>> 6 : (u < 65536 ? s[S++] = 224 | u >>> 12 : (s[S++] = 240 | u >>> 18, s[S++] = 128 | u >>> 12 & 63), s[S++] = 128 | u >>> 6 & 63), s[S++] = 128 | 63 & u);
|
|
782
|
-
return s;
|
|
783
|
-
}(o);
|
|
784
|
-
}, m.utf8decode = function(o) {
|
|
785
|
-
return l.nodebuffer ? a.transformTo("nodebuffer", o).toString("utf-8") : function(_) {
|
|
786
|
-
var s, u, c, g, S = _.length, z = new Array(2 * S);
|
|
787
|
-
for (s = u = 0; s < S; )
|
|
788
|
-
if ((c = _[s++]) < 128)
|
|
789
|
-
z[u++] = c;
|
|
790
|
-
else if (4 < (g = w[c]))
|
|
791
|
-
z[u++] = 65533, s += g - 1;
|
|
792
|
-
else {
|
|
793
|
-
for (c &= g === 2 ? 31 : g === 3 ? 15 : 7; 1 < g && s < S; )
|
|
794
|
-
c = c << 6 | 63 & _[s++], g--;
|
|
795
|
-
1 < g ? z[u++] = 65533 : c < 65536 ? z[u++] = c : (c -= 65536, z[u++] = 55296 | c >> 10 & 1023, z[u++] = 56320 | 1023 & c);
|
|
796
|
-
}
|
|
797
|
-
return z.length !== u && (z.subarray ? z = z.subarray(0, u) : z.length = u), a.applyFromCharCode(z);
|
|
798
|
-
}(o = a.transformTo(l.uint8array ? "uint8array" : "array", o));
|
|
799
|
-
}, a.inherits(v, h), v.prototype.processChunk = function(o) {
|
|
800
|
-
var _ = a.transformTo(l.uint8array ? "uint8array" : "array", o.data);
|
|
801
|
-
if (this.leftOver && this.leftOver.length) {
|
|
802
|
-
if (l.uint8array) {
|
|
803
|
-
var s = _;
|
|
804
|
-
(_ = new Uint8Array(s.length + this.leftOver.length)).set(this.leftOver, 0), _.set(s, this.leftOver.length);
|
|
805
|
-
} else
|
|
806
|
-
_ = this.leftOver.concat(_);
|
|
807
|
-
this.leftOver = null;
|
|
808
|
-
}
|
|
809
|
-
var u = function(g, S) {
|
|
810
|
-
var z;
|
|
811
|
-
for ((S = S || g.length) > g.length && (S = g.length), z = S - 1; 0 <= z && (192 & g[z]) == 128; )
|
|
812
|
-
z--;
|
|
813
|
-
return z < 0 || z === 0 ? S : z + w[g[z]] > S ? z : S;
|
|
814
|
-
}(_), c = _;
|
|
815
|
-
u !== _.length && (l.uint8array ? (c = _.subarray(0, u), this.leftOver = _.subarray(u, _.length)) : (c = _.slice(0, u), this.leftOver = _.slice(u, _.length))), this.push({ data: m.utf8decode(c), meta: o.meta });
|
|
816
|
-
}, v.prototype.flush = function() {
|
|
817
|
-
this.leftOver && this.leftOver.length && (this.push({ data: m.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
818
|
-
}, m.Utf8DecodeWorker = v, a.inherits(k, h), k.prototype.processChunk = function(o) {
|
|
819
|
-
this.push({ data: m.utf8encode(o.data), meta: o.meta });
|
|
820
|
-
}, m.Utf8EncodeWorker = k;
|
|
821
|
-
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, y, m) {
|
|
822
|
-
var a = e("./support"), l = e("./base64"), n = e("./nodejsUtils"), h = e("./external");
|
|
823
|
-
function w(s) {
|
|
824
|
-
return s;
|
|
825
|
-
}
|
|
826
|
-
function x(s, u) {
|
|
827
|
-
for (var c = 0; c < s.length; ++c)
|
|
828
|
-
u[c] = 255 & s.charCodeAt(c);
|
|
829
|
-
return u;
|
|
830
|
-
}
|
|
831
|
-
e("setimmediate"), m.newBlob = function(s, u) {
|
|
832
|
-
m.checkSupport("blob");
|
|
833
|
-
try {
|
|
834
|
-
return new Blob([s], { type: u });
|
|
835
|
-
} catch {
|
|
836
|
-
try {
|
|
837
|
-
var c = new (self.BlobBuilder || self.WebKitBlobBuilder || self.MozBlobBuilder || self.MSBlobBuilder)();
|
|
838
|
-
return c.append(s), c.getBlob(u);
|
|
839
|
-
} catch {
|
|
840
|
-
throw new Error("Bug : can't construct the Blob.");
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
var v = { stringifyByChunk: function(s, u, c) {
|
|
845
|
-
var g = [], S = 0, z = s.length;
|
|
846
|
-
if (z <= c)
|
|
847
|
-
return String.fromCharCode.apply(null, s);
|
|
848
|
-
for (; S < z; )
|
|
849
|
-
u === "array" || u === "nodebuffer" ? g.push(String.fromCharCode.apply(null, s.slice(S, Math.min(S + c, z)))) : g.push(String.fromCharCode.apply(null, s.subarray(S, Math.min(S + c, z)))), S += c;
|
|
850
|
-
return g.join("");
|
|
851
|
-
}, stringifyByChar: function(s) {
|
|
852
|
-
for (var u = "", c = 0; c < s.length; c++)
|
|
853
|
-
u += String.fromCharCode(s[c]);
|
|
854
|
-
return u;
|
|
855
|
-
}, applyCanBeUsed: { uint8array: function() {
|
|
856
|
-
try {
|
|
857
|
-
return a.uint8array && String.fromCharCode.apply(null, new Uint8Array(1)).length === 1;
|
|
858
|
-
} catch {
|
|
859
|
-
return !1;
|
|
860
|
-
}
|
|
861
|
-
}(), nodebuffer: function() {
|
|
862
|
-
try {
|
|
863
|
-
return a.nodebuffer && String.fromCharCode.apply(null, n.allocBuffer(1)).length === 1;
|
|
864
|
-
} catch {
|
|
865
|
-
return !1;
|
|
866
|
-
}
|
|
867
|
-
}() } };
|
|
868
|
-
function k(s) {
|
|
869
|
-
var u = 65536, c = m.getTypeOf(s), g = !0;
|
|
870
|
-
if (c === "uint8array" ? g = v.applyCanBeUsed.uint8array : c === "nodebuffer" && (g = v.applyCanBeUsed.nodebuffer), g)
|
|
871
|
-
for (; 1 < u; )
|
|
872
|
-
try {
|
|
873
|
-
return v.stringifyByChunk(s, c, u);
|
|
874
|
-
} catch {
|
|
875
|
-
u = Math.floor(u / 2);
|
|
876
|
-
}
|
|
877
|
-
return v.stringifyByChar(s);
|
|
878
|
-
}
|
|
879
|
-
function o(s, u) {
|
|
880
|
-
for (var c = 0; c < s.length; c++)
|
|
881
|
-
u[c] = s[c];
|
|
882
|
-
return u;
|
|
883
|
-
}
|
|
884
|
-
m.applyFromCharCode = k;
|
|
885
|
-
var _ = {};
|
|
886
|
-
_.string = { string: w, array: function(s) {
|
|
887
|
-
return x(s, new Array(s.length));
|
|
888
|
-
}, arraybuffer: function(s) {
|
|
889
|
-
return _.string.uint8array(s).buffer;
|
|
890
|
-
}, uint8array: function(s) {
|
|
891
|
-
return x(s, new Uint8Array(s.length));
|
|
892
|
-
}, nodebuffer: function(s) {
|
|
893
|
-
return x(s, n.allocBuffer(s.length));
|
|
894
|
-
} }, _.array = { string: k, array: w, arraybuffer: function(s) {
|
|
895
|
-
return new Uint8Array(s).buffer;
|
|
896
|
-
}, uint8array: function(s) {
|
|
897
|
-
return new Uint8Array(s);
|
|
898
|
-
}, nodebuffer: function(s) {
|
|
899
|
-
return n.newBufferFrom(s);
|
|
900
|
-
} }, _.arraybuffer = { string: function(s) {
|
|
901
|
-
return k(new Uint8Array(s));
|
|
902
|
-
}, array: function(s) {
|
|
903
|
-
return o(new Uint8Array(s), new Array(s.byteLength));
|
|
904
|
-
}, arraybuffer: w, uint8array: function(s) {
|
|
905
|
-
return new Uint8Array(s);
|
|
906
|
-
}, nodebuffer: function(s) {
|
|
907
|
-
return n.newBufferFrom(new Uint8Array(s));
|
|
908
|
-
} }, _.uint8array = { string: k, array: function(s) {
|
|
909
|
-
return o(s, new Array(s.length));
|
|
910
|
-
}, arraybuffer: function(s) {
|
|
911
|
-
return s.buffer;
|
|
912
|
-
}, uint8array: w, nodebuffer: function(s) {
|
|
913
|
-
return n.newBufferFrom(s);
|
|
914
|
-
} }, _.nodebuffer = { string: k, array: function(s) {
|
|
915
|
-
return o(s, new Array(s.length));
|
|
916
|
-
}, arraybuffer: function(s) {
|
|
917
|
-
return _.nodebuffer.uint8array(s).buffer;
|
|
918
|
-
}, uint8array: function(s) {
|
|
919
|
-
return o(s, new Uint8Array(s.length));
|
|
920
|
-
}, nodebuffer: w }, m.transformTo = function(s, u) {
|
|
921
|
-
if (u = u || "", !s)
|
|
922
|
-
return u;
|
|
923
|
-
m.checkSupport(s);
|
|
924
|
-
var c = m.getTypeOf(u);
|
|
925
|
-
return _[c][s](u);
|
|
926
|
-
}, m.resolve = function(s) {
|
|
927
|
-
for (var u = s.split("/"), c = [], g = 0; g < u.length; g++) {
|
|
928
|
-
var S = u[g];
|
|
929
|
-
S === "." || S === "" && g !== 0 && g !== u.length - 1 || (S === ".." ? c.pop() : c.push(S));
|
|
930
|
-
}
|
|
931
|
-
return c.join("/");
|
|
932
|
-
}, m.getTypeOf = function(s) {
|
|
933
|
-
return typeof s == "string" ? "string" : Object.prototype.toString.call(s) === "[object Array]" ? "array" : a.nodebuffer && n.isBuffer(s) ? "nodebuffer" : a.uint8array && s instanceof Uint8Array ? "uint8array" : a.arraybuffer && s instanceof ArrayBuffer ? "arraybuffer" : void 0;
|
|
934
|
-
}, m.checkSupport = function(s) {
|
|
935
|
-
if (!a[s.toLowerCase()])
|
|
936
|
-
throw new Error(s + " is not supported by this platform");
|
|
937
|
-
}, m.MAX_VALUE_16BITS = 65535, m.MAX_VALUE_32BITS = -1, m.pretty = function(s) {
|
|
938
|
-
var u, c, g = "";
|
|
939
|
-
for (c = 0; c < (s || "").length; c++)
|
|
940
|
-
g += "\\x" + ((u = s.charCodeAt(c)) < 16 ? "0" : "") + u.toString(16).toUpperCase();
|
|
941
|
-
return g;
|
|
942
|
-
}, m.delay = function(s, u, c) {
|
|
943
|
-
setImmediate(function() {
|
|
944
|
-
s.apply(c || null, u || []);
|
|
945
|
-
});
|
|
946
|
-
}, m.inherits = function(s, u) {
|
|
947
|
-
function c() {
|
|
948
|
-
}
|
|
949
|
-
c.prototype = u.prototype, s.prototype = new c();
|
|
950
|
-
}, m.extend = function() {
|
|
951
|
-
var s, u, c = {};
|
|
952
|
-
for (s = 0; s < arguments.length; s++)
|
|
953
|
-
for (u in arguments[s])
|
|
954
|
-
Object.prototype.hasOwnProperty.call(arguments[s], u) && c[u] === void 0 && (c[u] = arguments[s][u]);
|
|
955
|
-
return c;
|
|
956
|
-
}, m.prepareContent = function(s, u, c, g, S) {
|
|
957
|
-
return h.Promise.resolve(u).then(function(z) {
|
|
958
|
-
return a.blob && (z instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(z)) !== -1) && typeof FileReader < "u" ? new h.Promise(function(E, N) {
|
|
959
|
-
var R = new FileReader();
|
|
960
|
-
R.onload = function(U) {
|
|
961
|
-
E(U.target.result);
|
|
962
|
-
}, R.onerror = function(U) {
|
|
963
|
-
N(U.target.error);
|
|
964
|
-
}, R.readAsArrayBuffer(z);
|
|
965
|
-
}) : z;
|
|
966
|
-
}).then(function(z) {
|
|
967
|
-
var E = m.getTypeOf(z);
|
|
968
|
-
return E ? (E === "arraybuffer" ? z = m.transformTo("uint8array", z) : E === "string" && (S ? z = l.decode(z) : c && g !== !0 && (z = function(N) {
|
|
969
|
-
return x(N, a.uint8array ? new Uint8Array(N.length) : new Array(N.length));
|
|
970
|
-
}(z))), z) : h.Promise.reject(new Error("Can't read the data of '" + s + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
971
|
-
});
|
|
972
|
-
};
|
|
973
|
-
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, y, m) {
|
|
974
|
-
var a = e("./reader/readerFor"), l = e("./utils"), n = e("./signature"), h = e("./zipEntry"), w = e("./support");
|
|
975
|
-
function x(v) {
|
|
976
|
-
this.files = [], this.loadOptions = v;
|
|
977
|
-
}
|
|
978
|
-
x.prototype = { checkSignature: function(v) {
|
|
979
|
-
if (!this.reader.readAndCheckSignature(v)) {
|
|
980
|
-
this.reader.index -= 4;
|
|
981
|
-
var k = this.reader.readString(4);
|
|
982
|
-
throw new Error("Corrupted zip or bug: unexpected signature (" + l.pretty(k) + ", expected " + l.pretty(v) + ")");
|
|
983
|
-
}
|
|
984
|
-
}, isSignature: function(v, k) {
|
|
985
|
-
var o = this.reader.index;
|
|
986
|
-
this.reader.setIndex(v);
|
|
987
|
-
var _ = this.reader.readString(4) === k;
|
|
988
|
-
return this.reader.setIndex(o), _;
|
|
989
|
-
}, readBlockEndOfCentral: function() {
|
|
990
|
-
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);
|
|
991
|
-
var v = this.reader.readData(this.zipCommentLength), k = w.uint8array ? "uint8array" : "array", o = l.transformTo(k, v);
|
|
992
|
-
this.zipComment = this.loadOptions.decodeFileName(o);
|
|
993
|
-
}, readBlockZip64EndOfCentral: function() {
|
|
994
|
-
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 = {};
|
|
995
|
-
for (var v, k, o, _ = this.zip64EndOfCentralSize - 44; 0 < _; )
|
|
996
|
-
v = this.reader.readInt(2), k = this.reader.readInt(4), o = this.reader.readData(k), this.zip64ExtensibleData[v] = { id: v, length: k, value: o };
|
|
997
|
-
}, readBlockZip64EndOfCentralLocator: function() {
|
|
998
|
-
if (this.diskWithZip64CentralDirStart = this.reader.readInt(4), this.relativeOffsetEndOfZip64CentralDir = this.reader.readInt(8), this.disksCount = this.reader.readInt(4), 1 < this.disksCount)
|
|
999
|
-
throw new Error("Multi-volumes zip are not supported");
|
|
1000
|
-
}, readLocalFiles: function() {
|
|
1001
|
-
var v, k;
|
|
1002
|
-
for (v = 0; v < this.files.length; v++)
|
|
1003
|
-
k = this.files[v], this.reader.setIndex(k.localHeaderOffset), this.checkSignature(n.LOCAL_FILE_HEADER), k.readLocalPart(this.reader), k.handleUTF8(), k.processAttributes();
|
|
1004
|
-
}, readCentralDir: function() {
|
|
1005
|
-
var v;
|
|
1006
|
-
for (this.reader.setIndex(this.centralDirOffset); this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER); )
|
|
1007
|
-
(v = new h({ zip64: this.zip64 }, this.loadOptions)).readCentralPart(this.reader), this.files.push(v);
|
|
1008
|
-
if (this.centralDirRecords !== this.files.length && this.centralDirRecords !== 0 && this.files.length === 0)
|
|
1009
|
-
throw new Error("Corrupted zip or bug: expected " + this.centralDirRecords + " records in central dir, got " + this.files.length);
|
|
1010
|
-
}, readEndOfCentral: function() {
|
|
1011
|
-
var v = this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);
|
|
1012
|
-
if (v < 0)
|
|
1013
|
-
throw this.isSignature(0, n.LOCAL_FILE_HEADER) ? new Error("Corrupted zip: can't find end of central directory") : new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");
|
|
1014
|
-
this.reader.setIndex(v);
|
|
1015
|
-
var k = v;
|
|
1016
|
-
if (this.checkSignature(n.CENTRAL_DIRECTORY_END), this.readBlockEndOfCentral(), this.diskNumber === l.MAX_VALUE_16BITS || this.diskWithCentralDirStart === l.MAX_VALUE_16BITS || this.centralDirRecordsOnThisDisk === l.MAX_VALUE_16BITS || this.centralDirRecords === l.MAX_VALUE_16BITS || this.centralDirSize === l.MAX_VALUE_32BITS || this.centralDirOffset === l.MAX_VALUE_32BITS) {
|
|
1017
|
-
if (this.zip64 = !0, (v = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR)) < 0)
|
|
1018
|
-
throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");
|
|
1019
|
-
if (this.reader.setIndex(v), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR), this.readBlockZip64EndOfCentralLocator(), !this.isSignature(this.relativeOffsetEndOfZip64CentralDir, n.ZIP64_CENTRAL_DIRECTORY_END) && (this.relativeOffsetEndOfZip64CentralDir = this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.relativeOffsetEndOfZip64CentralDir < 0))
|
|
1020
|
-
throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");
|
|
1021
|
-
this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir), this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_END), this.readBlockZip64EndOfCentral();
|
|
1022
|
-
}
|
|
1023
|
-
var o = this.centralDirOffset + this.centralDirSize;
|
|
1024
|
-
this.zip64 && (o += 20, o += 12 + this.zip64EndOfCentralSize);
|
|
1025
|
-
var _ = k - o;
|
|
1026
|
-
if (0 < _)
|
|
1027
|
-
this.isSignature(k, n.CENTRAL_FILE_HEADER) || (this.reader.zero = _);
|
|
1028
|
-
else if (_ < 0)
|
|
1029
|
-
throw new Error("Corrupted zip: missing " + Math.abs(_) + " bytes.");
|
|
1030
|
-
}, prepareReader: function(v) {
|
|
1031
|
-
this.reader = a(v);
|
|
1032
|
-
}, load: function(v) {
|
|
1033
|
-
this.prepareReader(v), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
1034
|
-
} }, y.exports = x;
|
|
1035
|
-
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, y, m) {
|
|
1036
|
-
var a = e("./reader/readerFor"), l = e("./utils"), n = e("./compressedObject"), h = e("./crc32"), w = e("./utf8"), x = e("./compressions"), v = e("./support");
|
|
1037
|
-
function k(o, _) {
|
|
1038
|
-
this.options = o, this.loadOptions = _;
|
|
1039
|
-
}
|
|
1040
|
-
k.prototype = { isEncrypted: function() {
|
|
1041
|
-
return (1 & this.bitFlag) == 1;
|
|
1042
|
-
}, useUTF8: function() {
|
|
1043
|
-
return (2048 & this.bitFlag) == 2048;
|
|
1044
|
-
}, readLocalPart: function(o) {
|
|
1045
|
-
var _, s;
|
|
1046
|
-
if (o.skip(22), this.fileNameLength = o.readInt(2), s = o.readInt(2), this.fileName = o.readData(this.fileNameLength), o.skip(s), this.compressedSize === -1 || this.uncompressedSize === -1)
|
|
1047
|
-
throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");
|
|
1048
|
-
if ((_ = function(u) {
|
|
1049
|
-
for (var c in x)
|
|
1050
|
-
if (Object.prototype.hasOwnProperty.call(x, c) && x[c].magic === u)
|
|
1051
|
-
return x[c];
|
|
1052
|
-
return null;
|
|
1053
|
-
}(this.compressionMethod)) === null)
|
|
1054
|
-
throw new Error("Corrupted zip : compression " + l.pretty(this.compressionMethod) + " unknown (inner file : " + l.transformTo("string", this.fileName) + ")");
|
|
1055
|
-
this.decompressed = new n(this.compressedSize, this.uncompressedSize, this.crc32, _, o.readData(this.compressedSize));
|
|
1056
|
-
}, readCentralPart: function(o) {
|
|
1057
|
-
this.versionMadeBy = o.readInt(2), o.skip(2), this.bitFlag = o.readInt(2), this.compressionMethod = o.readString(2), this.date = o.readDate(), this.crc32 = o.readInt(4), this.compressedSize = o.readInt(4), this.uncompressedSize = o.readInt(4);
|
|
1058
|
-
var _ = o.readInt(2);
|
|
1059
|
-
if (this.extraFieldsLength = o.readInt(2), this.fileCommentLength = o.readInt(2), this.diskNumberStart = o.readInt(2), this.internalFileAttributes = o.readInt(2), this.externalFileAttributes = o.readInt(4), this.localHeaderOffset = o.readInt(4), this.isEncrypted())
|
|
1060
|
-
throw new Error("Encrypted zip are not supported");
|
|
1061
|
-
o.skip(_), this.readExtraFields(o), this.parseZIP64ExtraField(o), this.fileComment = o.readData(this.fileCommentLength);
|
|
1062
|
-
}, processAttributes: function() {
|
|
1063
|
-
this.unixPermissions = null, this.dosPermissions = null;
|
|
1064
|
-
var o = this.versionMadeBy >> 8;
|
|
1065
|
-
this.dir = !!(16 & this.externalFileAttributes), o == 0 && (this.dosPermissions = 63 & this.externalFileAttributes), o == 3 && (this.unixPermissions = this.externalFileAttributes >> 16 & 65535), this.dir || this.fileNameStr.slice(-1) !== "/" || (this.dir = !0);
|
|
1066
|
-
}, parseZIP64ExtraField: function() {
|
|
1067
|
-
if (this.extraFields[1]) {
|
|
1068
|
-
var o = a(this.extraFields[1].value);
|
|
1069
|
-
this.uncompressedSize === l.MAX_VALUE_32BITS && (this.uncompressedSize = o.readInt(8)), this.compressedSize === l.MAX_VALUE_32BITS && (this.compressedSize = o.readInt(8)), this.localHeaderOffset === l.MAX_VALUE_32BITS && (this.localHeaderOffset = o.readInt(8)), this.diskNumberStart === l.MAX_VALUE_32BITS && (this.diskNumberStart = o.readInt(4));
|
|
1070
|
-
}
|
|
1071
|
-
}, readExtraFields: function(o) {
|
|
1072
|
-
var _, s, u, c = o.index + this.extraFieldsLength;
|
|
1073
|
-
for (this.extraFields || (this.extraFields = {}); o.index + 4 < c; )
|
|
1074
|
-
_ = o.readInt(2), s = o.readInt(2), u = o.readData(s), this.extraFields[_] = { id: _, length: s, value: u };
|
|
1075
|
-
o.setIndex(c);
|
|
1076
|
-
}, handleUTF8: function() {
|
|
1077
|
-
var o = v.uint8array ? "uint8array" : "array";
|
|
1078
|
-
if (this.useUTF8())
|
|
1079
|
-
this.fileNameStr = w.utf8decode(this.fileName), this.fileCommentStr = w.utf8decode(this.fileComment);
|
|
1080
|
-
else {
|
|
1081
|
-
var _ = this.findExtraFieldUnicodePath();
|
|
1082
|
-
if (_ !== null)
|
|
1083
|
-
this.fileNameStr = _;
|
|
1084
|
-
else {
|
|
1085
|
-
var s = l.transformTo(o, this.fileName);
|
|
1086
|
-
this.fileNameStr = this.loadOptions.decodeFileName(s);
|
|
1087
|
-
}
|
|
1088
|
-
var u = this.findExtraFieldUnicodeComment();
|
|
1089
|
-
if (u !== null)
|
|
1090
|
-
this.fileCommentStr = u;
|
|
1091
|
-
else {
|
|
1092
|
-
var c = l.transformTo(o, this.fileComment);
|
|
1093
|
-
this.fileCommentStr = this.loadOptions.decodeFileName(c);
|
|
1094
|
-
}
|
|
1095
|
-
}
|
|
1096
|
-
}, findExtraFieldUnicodePath: function() {
|
|
1097
|
-
var o = this.extraFields[28789];
|
|
1098
|
-
if (o) {
|
|
1099
|
-
var _ = a(o.value);
|
|
1100
|
-
return _.readInt(1) !== 1 || h(this.fileName) !== _.readInt(4) ? null : w.utf8decode(_.readData(o.length - 5));
|
|
1101
|
-
}
|
|
1102
|
-
return null;
|
|
1103
|
-
}, findExtraFieldUnicodeComment: function() {
|
|
1104
|
-
var o = this.extraFields[25461];
|
|
1105
|
-
if (o) {
|
|
1106
|
-
var _ = a(o.value);
|
|
1107
|
-
return _.readInt(1) !== 1 || h(this.fileComment) !== _.readInt(4) ? null : w.utf8decode(_.readData(o.length - 5));
|
|
1108
|
-
}
|
|
1109
|
-
return null;
|
|
1110
|
-
} }, y.exports = k;
|
|
1111
|
-
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, y, m) {
|
|
1112
|
-
function a(_, s, u) {
|
|
1113
|
-
this.name = _, this.dir = u.dir, this.date = u.date, this.comment = u.comment, this.unixPermissions = u.unixPermissions, this.dosPermissions = u.dosPermissions, this._data = s, this._dataBinary = u.binary, this.options = { compression: u.compression, compressionOptions: u.compressionOptions };
|
|
1114
|
-
}
|
|
1115
|
-
var l = e("./stream/StreamHelper"), n = e("./stream/DataWorker"), h = e("./utf8"), w = e("./compressedObject"), x = e("./stream/GenericWorker");
|
|
1116
|
-
a.prototype = { internalStream: function(_) {
|
|
1117
|
-
var s = null, u = "string";
|
|
1118
|
-
try {
|
|
1119
|
-
if (!_)
|
|
1120
|
-
throw new Error("No output type specified.");
|
|
1121
|
-
var c = (u = _.toLowerCase()) === "string" || u === "text";
|
|
1122
|
-
u !== "binarystring" && u !== "text" || (u = "string"), s = this._decompressWorker();
|
|
1123
|
-
var g = !this._dataBinary;
|
|
1124
|
-
g && !c && (s = s.pipe(new h.Utf8EncodeWorker())), !g && c && (s = s.pipe(new h.Utf8DecodeWorker()));
|
|
1125
|
-
} catch (S) {
|
|
1126
|
-
(s = new x("error")).error(S);
|
|
1127
|
-
}
|
|
1128
|
-
return new l(s, u, "");
|
|
1129
|
-
}, async: function(_, s) {
|
|
1130
|
-
return this.internalStream(_).accumulate(s);
|
|
1131
|
-
}, nodeStream: function(_, s) {
|
|
1132
|
-
return this.internalStream(_ || "nodebuffer").toNodejsStream(s);
|
|
1133
|
-
}, _compressWorker: function(_, s) {
|
|
1134
|
-
if (this._data instanceof w && this._data.compression.magic === _.magic)
|
|
1135
|
-
return this._data.getCompressedWorker();
|
|
1136
|
-
var u = this._decompressWorker();
|
|
1137
|
-
return this._dataBinary || (u = u.pipe(new h.Utf8EncodeWorker())), w.createWorkerFrom(u, _, s);
|
|
1138
|
-
}, _decompressWorker: function() {
|
|
1139
|
-
return this._data instanceof w ? this._data.getContentWorker() : this._data instanceof x ? this._data : new n(this._data);
|
|
1140
|
-
} };
|
|
1141
|
-
for (var v = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], k = function() {
|
|
1142
|
-
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
1143
|
-
}, o = 0; o < v.length; o++)
|
|
1144
|
-
a.prototype[v[o]] = k;
|
|
1145
|
-
y.exports = a;
|
|
1146
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, y, m) {
|
|
1147
|
-
(function(a) {
|
|
1148
|
-
var l, n, h = a.MutationObserver || a.WebKitMutationObserver;
|
|
1149
|
-
if (h) {
|
|
1150
|
-
var w = 0, x = new h(_), v = a.document.createTextNode("");
|
|
1151
|
-
x.observe(v, { characterData: !0 }), l = function() {
|
|
1152
|
-
v.data = w = ++w % 2;
|
|
1153
|
-
};
|
|
1154
|
-
} else if (a.setImmediate || a.MessageChannel === void 0)
|
|
1155
|
-
l = "document" in a && "onreadystatechange" in a.document.createElement("script") ? function() {
|
|
1156
|
-
var s = a.document.createElement("script");
|
|
1157
|
-
s.onreadystatechange = function() {
|
|
1158
|
-
_(), s.onreadystatechange = null, s.parentNode.removeChild(s), s = null;
|
|
1159
|
-
}, a.document.documentElement.appendChild(s);
|
|
1160
|
-
} : function() {
|
|
1161
|
-
setTimeout(_, 0);
|
|
1162
|
-
};
|
|
1163
|
-
else {
|
|
1164
|
-
var k = new a.MessageChannel();
|
|
1165
|
-
k.port1.onmessage = _, l = function() {
|
|
1166
|
-
k.port2.postMessage(0);
|
|
1167
|
-
};
|
|
1168
|
-
}
|
|
1169
|
-
var o = [];
|
|
1170
|
-
function _() {
|
|
1171
|
-
var s, u;
|
|
1172
|
-
n = !0;
|
|
1173
|
-
for (var c = o.length; c; ) {
|
|
1174
|
-
for (u = o, o = [], s = -1; ++s < c; )
|
|
1175
|
-
u[s]();
|
|
1176
|
-
c = o.length;
|
|
1177
|
-
}
|
|
1178
|
-
n = !1;
|
|
1179
|
-
}
|
|
1180
|
-
y.exports = function(s) {
|
|
1181
|
-
o.push(s) !== 1 || n || l();
|
|
1182
|
-
};
|
|
1183
|
-
}).call(this, typeof xt < "u" ? xt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
1184
|
-
}, {}], 37: [function(e, y, m) {
|
|
1185
|
-
var a = e("immediate");
|
|
1186
|
-
function l() {
|
|
1187
|
-
}
|
|
1188
|
-
var n = {}, h = ["REJECTED"], w = ["FULFILLED"], x = ["PENDING"];
|
|
1189
|
-
function v(c) {
|
|
1190
|
-
if (typeof c != "function")
|
|
1191
|
-
throw new TypeError("resolver must be a function");
|
|
1192
|
-
this.state = x, this.queue = [], this.outcome = void 0, c !== l && s(this, c);
|
|
1193
|
-
}
|
|
1194
|
-
function k(c, g, S) {
|
|
1195
|
-
this.promise = c, typeof g == "function" && (this.onFulfilled = g, this.callFulfilled = this.otherCallFulfilled), typeof S == "function" && (this.onRejected = S, this.callRejected = this.otherCallRejected);
|
|
1196
|
-
}
|
|
1197
|
-
function o(c, g, S) {
|
|
1198
|
-
a(function() {
|
|
1199
|
-
var z;
|
|
1200
|
-
try {
|
|
1201
|
-
z = g(S);
|
|
1202
|
-
} catch (E) {
|
|
1203
|
-
return n.reject(c, E);
|
|
1204
|
-
}
|
|
1205
|
-
z === c ? n.reject(c, new TypeError("Cannot resolve promise with itself")) : n.resolve(c, z);
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
function _(c) {
|
|
1209
|
-
var g = c && c.then;
|
|
1210
|
-
if (c && (typeof c == "object" || typeof c == "function") && typeof g == "function")
|
|
1211
|
-
return function() {
|
|
1212
|
-
g.apply(c, arguments);
|
|
1213
|
-
};
|
|
1214
|
-
}
|
|
1215
|
-
function s(c, g) {
|
|
1216
|
-
var S = !1;
|
|
1217
|
-
function z(R) {
|
|
1218
|
-
S || (S = !0, n.reject(c, R));
|
|
1219
|
-
}
|
|
1220
|
-
function E(R) {
|
|
1221
|
-
S || (S = !0, n.resolve(c, R));
|
|
1222
|
-
}
|
|
1223
|
-
var N = u(function() {
|
|
1224
|
-
g(E, z);
|
|
1225
|
-
});
|
|
1226
|
-
N.status === "error" && z(N.value);
|
|
1227
|
-
}
|
|
1228
|
-
function u(c, g) {
|
|
1229
|
-
var S = {};
|
|
1230
|
-
try {
|
|
1231
|
-
S.value = c(g), S.status = "success";
|
|
1232
|
-
} catch (z) {
|
|
1233
|
-
S.status = "error", S.value = z;
|
|
1234
|
-
}
|
|
1235
|
-
return S;
|
|
1236
|
-
}
|
|
1237
|
-
(y.exports = v).prototype.finally = function(c) {
|
|
1238
|
-
if (typeof c != "function")
|
|
1239
|
-
return this;
|
|
1240
|
-
var g = this.constructor;
|
|
1241
|
-
return this.then(function(S) {
|
|
1242
|
-
return g.resolve(c()).then(function() {
|
|
1243
|
-
return S;
|
|
1244
|
-
});
|
|
1245
|
-
}, function(S) {
|
|
1246
|
-
return g.resolve(c()).then(function() {
|
|
1247
|
-
throw S;
|
|
1248
|
-
});
|
|
1249
|
-
});
|
|
1250
|
-
}, v.prototype.catch = function(c) {
|
|
1251
|
-
return this.then(null, c);
|
|
1252
|
-
}, v.prototype.then = function(c, g) {
|
|
1253
|
-
if (typeof c != "function" && this.state === w || typeof g != "function" && this.state === h)
|
|
1254
|
-
return this;
|
|
1255
|
-
var S = new this.constructor(l);
|
|
1256
|
-
return this.state !== x ? o(S, this.state === w ? c : g, this.outcome) : this.queue.push(new k(S, c, g)), S;
|
|
1257
|
-
}, k.prototype.callFulfilled = function(c) {
|
|
1258
|
-
n.resolve(this.promise, c);
|
|
1259
|
-
}, k.prototype.otherCallFulfilled = function(c) {
|
|
1260
|
-
o(this.promise, this.onFulfilled, c);
|
|
1261
|
-
}, k.prototype.callRejected = function(c) {
|
|
1262
|
-
n.reject(this.promise, c);
|
|
1263
|
-
}, k.prototype.otherCallRejected = function(c) {
|
|
1264
|
-
o(this.promise, this.onRejected, c);
|
|
1265
|
-
}, n.resolve = function(c, g) {
|
|
1266
|
-
var S = u(_, g);
|
|
1267
|
-
if (S.status === "error")
|
|
1268
|
-
return n.reject(c, S.value);
|
|
1269
|
-
var z = S.value;
|
|
1270
|
-
if (z)
|
|
1271
|
-
s(c, z);
|
|
1272
|
-
else {
|
|
1273
|
-
c.state = w, c.outcome = g;
|
|
1274
|
-
for (var E = -1, N = c.queue.length; ++E < N; )
|
|
1275
|
-
c.queue[E].callFulfilled(g);
|
|
1276
|
-
}
|
|
1277
|
-
return c;
|
|
1278
|
-
}, n.reject = function(c, g) {
|
|
1279
|
-
c.state = h, c.outcome = g;
|
|
1280
|
-
for (var S = -1, z = c.queue.length; ++S < z; )
|
|
1281
|
-
c.queue[S].callRejected(g);
|
|
1282
|
-
return c;
|
|
1283
|
-
}, v.resolve = function(c) {
|
|
1284
|
-
return c instanceof this ? c : n.resolve(new this(l), c);
|
|
1285
|
-
}, v.reject = function(c) {
|
|
1286
|
-
var g = new this(l);
|
|
1287
|
-
return n.reject(g, c);
|
|
1288
|
-
}, v.all = function(c) {
|
|
1289
|
-
var g = this;
|
|
1290
|
-
if (Object.prototype.toString.call(c) !== "[object Array]")
|
|
1291
|
-
return this.reject(new TypeError("must be an array"));
|
|
1292
|
-
var S = c.length, z = !1;
|
|
1293
|
-
if (!S)
|
|
1294
|
-
return this.resolve([]);
|
|
1295
|
-
for (var E = new Array(S), N = 0, R = -1, U = new this(l); ++R < S; )
|
|
1296
|
-
B(c[R], R);
|
|
1297
|
-
return U;
|
|
1298
|
-
function B(V, Y) {
|
|
1299
|
-
g.resolve(V).then(function(b) {
|
|
1300
|
-
E[Y] = b, ++N !== S || z || (z = !0, n.resolve(U, E));
|
|
1301
|
-
}, function(b) {
|
|
1302
|
-
z || (z = !0, n.reject(U, b));
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
}, v.race = function(c) {
|
|
1306
|
-
var g = this;
|
|
1307
|
-
if (Object.prototype.toString.call(c) !== "[object Array]")
|
|
1308
|
-
return this.reject(new TypeError("must be an array"));
|
|
1309
|
-
var S = c.length, z = !1;
|
|
1310
|
-
if (!S)
|
|
1311
|
-
return this.resolve([]);
|
|
1312
|
-
for (var E = -1, N = new this(l); ++E < S; )
|
|
1313
|
-
R = c[E], g.resolve(R).then(function(U) {
|
|
1314
|
-
z || (z = !0, n.resolve(N, U));
|
|
1315
|
-
}, function(U) {
|
|
1316
|
-
z || (z = !0, n.reject(N, U));
|
|
1317
|
-
});
|
|
1318
|
-
var R;
|
|
1319
|
-
return N;
|
|
1320
|
-
};
|
|
1321
|
-
}, { immediate: 36 }], 38: [function(e, y, m) {
|
|
1322
|
-
var a = {};
|
|
1323
|
-
(0, e("./lib/utils/common").assign)(a, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), y.exports = a;
|
|
1324
|
-
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, y, m) {
|
|
1325
|
-
var a = e("./zlib/deflate"), l = e("./utils/common"), n = e("./utils/strings"), h = e("./zlib/messages"), w = e("./zlib/zstream"), x = Object.prototype.toString, v = 0, k = -1, o = 0, _ = 8;
|
|
1326
|
-
function s(c) {
|
|
1327
|
-
if (!(this instanceof s))
|
|
1328
|
-
return new s(c);
|
|
1329
|
-
this.options = l.assign({ level: k, method: _, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: o, to: "" }, c || {});
|
|
1330
|
-
var g = this.options;
|
|
1331
|
-
g.raw && 0 < g.windowBits ? g.windowBits = -g.windowBits : g.gzip && 0 < g.windowBits && g.windowBits < 16 && (g.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new w(), this.strm.avail_out = 0;
|
|
1332
|
-
var S = a.deflateInit2(this.strm, g.level, g.method, g.windowBits, g.memLevel, g.strategy);
|
|
1333
|
-
if (S !== v)
|
|
1334
|
-
throw new Error(h[S]);
|
|
1335
|
-
if (g.header && a.deflateSetHeader(this.strm, g.header), g.dictionary) {
|
|
1336
|
-
var z;
|
|
1337
|
-
if (z = typeof g.dictionary == "string" ? n.string2buf(g.dictionary) : x.call(g.dictionary) === "[object ArrayBuffer]" ? new Uint8Array(g.dictionary) : g.dictionary, (S = a.deflateSetDictionary(this.strm, z)) !== v)
|
|
1338
|
-
throw new Error(h[S]);
|
|
1339
|
-
this._dict_set = !0;
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
function u(c, g) {
|
|
1343
|
-
var S = new s(g);
|
|
1344
|
-
if (S.push(c, !0), S.err)
|
|
1345
|
-
throw S.msg || h[S.err];
|
|
1346
|
-
return S.result;
|
|
1347
|
-
}
|
|
1348
|
-
s.prototype.push = function(c, g) {
|
|
1349
|
-
var S, z, E = this.strm, N = this.options.chunkSize;
|
|
1350
|
-
if (this.ended)
|
|
1351
|
-
return !1;
|
|
1352
|
-
z = g === ~~g ? g : g === !0 ? 4 : 0, typeof c == "string" ? E.input = n.string2buf(c) : x.call(c) === "[object ArrayBuffer]" ? E.input = new Uint8Array(c) : E.input = c, E.next_in = 0, E.avail_in = E.input.length;
|
|
1353
|
-
do {
|
|
1354
|
-
if (E.avail_out === 0 && (E.output = new l.Buf8(N), E.next_out = 0, E.avail_out = N), (S = a.deflate(E, z)) !== 1 && S !== v)
|
|
1355
|
-
return this.onEnd(S), !(this.ended = !0);
|
|
1356
|
-
E.avail_out !== 0 && (E.avail_in !== 0 || z !== 4 && z !== 2) || (this.options.to === "string" ? this.onData(n.buf2binstring(l.shrinkBuf(E.output, E.next_out))) : this.onData(l.shrinkBuf(E.output, E.next_out)));
|
|
1357
|
-
} while ((0 < E.avail_in || E.avail_out === 0) && S !== 1);
|
|
1358
|
-
return z === 4 ? (S = a.deflateEnd(this.strm), this.onEnd(S), this.ended = !0, S === v) : z !== 2 || (this.onEnd(v), !(E.avail_out = 0));
|
|
1359
|
-
}, s.prototype.onData = function(c) {
|
|
1360
|
-
this.chunks.push(c);
|
|
1361
|
-
}, s.prototype.onEnd = function(c) {
|
|
1362
|
-
c === v && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = l.flattenChunks(this.chunks)), this.chunks = [], this.err = c, this.msg = this.strm.msg;
|
|
1363
|
-
}, m.Deflate = s, m.deflate = u, m.deflateRaw = function(c, g) {
|
|
1364
|
-
return (g = g || {}).raw = !0, u(c, g);
|
|
1365
|
-
}, m.gzip = function(c, g) {
|
|
1366
|
-
return (g = g || {}).gzip = !0, u(c, g);
|
|
1367
|
-
};
|
|
1368
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/deflate": 46, "./zlib/messages": 51, "./zlib/zstream": 53 }], 40: [function(e, y, m) {
|
|
1369
|
-
var a = e("./zlib/inflate"), l = e("./utils/common"), n = e("./utils/strings"), h = e("./zlib/constants"), w = e("./zlib/messages"), x = e("./zlib/zstream"), v = e("./zlib/gzheader"), k = Object.prototype.toString;
|
|
1370
|
-
function o(s) {
|
|
1371
|
-
if (!(this instanceof o))
|
|
1372
|
-
return new o(s);
|
|
1373
|
-
this.options = l.assign({ chunkSize: 16384, windowBits: 0, to: "" }, s || {});
|
|
1374
|
-
var u = this.options;
|
|
1375
|
-
u.raw && 0 <= u.windowBits && u.windowBits < 16 && (u.windowBits = -u.windowBits, u.windowBits === 0 && (u.windowBits = -15)), !(0 <= u.windowBits && u.windowBits < 16) || s && s.windowBits || (u.windowBits += 32), 15 < u.windowBits && u.windowBits < 48 && (15 & u.windowBits) == 0 && (u.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new x(), this.strm.avail_out = 0;
|
|
1376
|
-
var c = a.inflateInit2(this.strm, u.windowBits);
|
|
1377
|
-
if (c !== h.Z_OK)
|
|
1378
|
-
throw new Error(w[c]);
|
|
1379
|
-
this.header = new v(), a.inflateGetHeader(this.strm, this.header);
|
|
1380
|
-
}
|
|
1381
|
-
function _(s, u) {
|
|
1382
|
-
var c = new o(u);
|
|
1383
|
-
if (c.push(s, !0), c.err)
|
|
1384
|
-
throw c.msg || w[c.err];
|
|
1385
|
-
return c.result;
|
|
1386
|
-
}
|
|
1387
|
-
o.prototype.push = function(s, u) {
|
|
1388
|
-
var c, g, S, z, E, N, R = this.strm, U = this.options.chunkSize, B = this.options.dictionary, V = !1;
|
|
1389
|
-
if (this.ended)
|
|
1390
|
-
return !1;
|
|
1391
|
-
g = u === ~~u ? u : u === !0 ? h.Z_FINISH : h.Z_NO_FLUSH, typeof s == "string" ? R.input = n.binstring2buf(s) : k.call(s) === "[object ArrayBuffer]" ? R.input = new Uint8Array(s) : R.input = s, R.next_in = 0, R.avail_in = R.input.length;
|
|
1392
|
-
do {
|
|
1393
|
-
if (R.avail_out === 0 && (R.output = new l.Buf8(U), R.next_out = 0, R.avail_out = U), (c = a.inflate(R, h.Z_NO_FLUSH)) === h.Z_NEED_DICT && B && (N = typeof B == "string" ? n.string2buf(B) : k.call(B) === "[object ArrayBuffer]" ? new Uint8Array(B) : B, c = a.inflateSetDictionary(this.strm, N)), c === h.Z_BUF_ERROR && V === !0 && (c = h.Z_OK, V = !1), c !== h.Z_STREAM_END && c !== h.Z_OK)
|
|
1394
|
-
return this.onEnd(c), !(this.ended = !0);
|
|
1395
|
-
R.next_out && (R.avail_out !== 0 && c !== h.Z_STREAM_END && (R.avail_in !== 0 || g !== h.Z_FINISH && g !== h.Z_SYNC_FLUSH) || (this.options.to === "string" ? (S = n.utf8border(R.output, R.next_out), z = R.next_out - S, E = n.buf2string(R.output, S), R.next_out = z, R.avail_out = U - z, z && l.arraySet(R.output, R.output, S, z, 0), this.onData(E)) : this.onData(l.shrinkBuf(R.output, R.next_out)))), R.avail_in === 0 && R.avail_out === 0 && (V = !0);
|
|
1396
|
-
} while ((0 < R.avail_in || R.avail_out === 0) && c !== h.Z_STREAM_END);
|
|
1397
|
-
return c === h.Z_STREAM_END && (g = h.Z_FINISH), g === h.Z_FINISH ? (c = a.inflateEnd(this.strm), this.onEnd(c), this.ended = !0, c === h.Z_OK) : g !== h.Z_SYNC_FLUSH || (this.onEnd(h.Z_OK), !(R.avail_out = 0));
|
|
1398
|
-
}, o.prototype.onData = function(s) {
|
|
1399
|
-
this.chunks.push(s);
|
|
1400
|
-
}, o.prototype.onEnd = function(s) {
|
|
1401
|
-
s === h.Z_OK && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = l.flattenChunks(this.chunks)), this.chunks = [], this.err = s, this.msg = this.strm.msg;
|
|
1402
|
-
}, m.Inflate = o, m.inflate = _, m.inflateRaw = function(s, u) {
|
|
1403
|
-
return (u = u || {}).raw = !0, _(s, u);
|
|
1404
|
-
}, m.ungzip = _;
|
|
1405
|
-
}, { "./utils/common": 41, "./utils/strings": 42, "./zlib/constants": 44, "./zlib/gzheader": 47, "./zlib/inflate": 49, "./zlib/messages": 51, "./zlib/zstream": 53 }], 41: [function(e, y, m) {
|
|
1406
|
-
var a = typeof Uint8Array < "u" && typeof Uint16Array < "u" && typeof Int32Array < "u";
|
|
1407
|
-
m.assign = function(h) {
|
|
1408
|
-
for (var w = Array.prototype.slice.call(arguments, 1); w.length; ) {
|
|
1409
|
-
var x = w.shift();
|
|
1410
|
-
if (x) {
|
|
1411
|
-
if (typeof x != "object")
|
|
1412
|
-
throw new TypeError(x + "must be non-object");
|
|
1413
|
-
for (var v in x)
|
|
1414
|
-
x.hasOwnProperty(v) && (h[v] = x[v]);
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
return h;
|
|
1418
|
-
}, m.shrinkBuf = function(h, w) {
|
|
1419
|
-
return h.length === w ? h : h.subarray ? h.subarray(0, w) : (h.length = w, h);
|
|
1420
|
-
};
|
|
1421
|
-
var l = { arraySet: function(h, w, x, v, k) {
|
|
1422
|
-
if (w.subarray && h.subarray)
|
|
1423
|
-
h.set(w.subarray(x, x + v), k);
|
|
1424
|
-
else
|
|
1425
|
-
for (var o = 0; o < v; o++)
|
|
1426
|
-
h[k + o] = w[x + o];
|
|
1427
|
-
}, flattenChunks: function(h) {
|
|
1428
|
-
var w, x, v, k, o, _;
|
|
1429
|
-
for (w = v = 0, x = h.length; w < x; w++)
|
|
1430
|
-
v += h[w].length;
|
|
1431
|
-
for (_ = new Uint8Array(v), w = k = 0, x = h.length; w < x; w++)
|
|
1432
|
-
o = h[w], _.set(o, k), k += o.length;
|
|
1433
|
-
return _;
|
|
1434
|
-
} }, n = { arraySet: function(h, w, x, v, k) {
|
|
1435
|
-
for (var o = 0; o < v; o++)
|
|
1436
|
-
h[k + o] = w[x + o];
|
|
1437
|
-
}, flattenChunks: function(h) {
|
|
1438
|
-
return [].concat.apply([], h);
|
|
1439
|
-
} };
|
|
1440
|
-
m.setTyped = function(h) {
|
|
1441
|
-
h ? (m.Buf8 = Uint8Array, m.Buf16 = Uint16Array, m.Buf32 = Int32Array, m.assign(m, l)) : (m.Buf8 = Array, m.Buf16 = Array, m.Buf32 = Array, m.assign(m, n));
|
|
1442
|
-
}, m.setTyped(a);
|
|
1443
|
-
}, {}], 42: [function(e, y, m) {
|
|
1444
|
-
var a = e("./common"), l = !0, n = !0;
|
|
1445
|
-
try {
|
|
1446
|
-
String.fromCharCode.apply(null, [0]);
|
|
1447
|
-
} catch {
|
|
1448
|
-
l = !1;
|
|
1449
|
-
}
|
|
1450
|
-
try {
|
|
1451
|
-
String.fromCharCode.apply(null, new Uint8Array(1));
|
|
1452
|
-
} catch {
|
|
1453
|
-
n = !1;
|
|
1454
|
-
}
|
|
1455
|
-
for (var h = new a.Buf8(256), w = 0; w < 256; w++)
|
|
1456
|
-
h[w] = 252 <= w ? 6 : 248 <= w ? 5 : 240 <= w ? 4 : 224 <= w ? 3 : 192 <= w ? 2 : 1;
|
|
1457
|
-
function x(v, k) {
|
|
1458
|
-
if (k < 65537 && (v.subarray && n || !v.subarray && l))
|
|
1459
|
-
return String.fromCharCode.apply(null, a.shrinkBuf(v, k));
|
|
1460
|
-
for (var o = "", _ = 0; _ < k; _++)
|
|
1461
|
-
o += String.fromCharCode(v[_]);
|
|
1462
|
-
return o;
|
|
1463
|
-
}
|
|
1464
|
-
h[254] = h[254] = 1, m.string2buf = function(v) {
|
|
1465
|
-
var k, o, _, s, u, c = v.length, g = 0;
|
|
1466
|
-
for (s = 0; s < c; s++)
|
|
1467
|
-
(64512 & (o = v.charCodeAt(s))) == 55296 && s + 1 < c && (64512 & (_ = v.charCodeAt(s + 1))) == 56320 && (o = 65536 + (o - 55296 << 10) + (_ - 56320), s++), g += o < 128 ? 1 : o < 2048 ? 2 : o < 65536 ? 3 : 4;
|
|
1468
|
-
for (k = new a.Buf8(g), s = u = 0; u < g; s++)
|
|
1469
|
-
(64512 & (o = v.charCodeAt(s))) == 55296 && s + 1 < c && (64512 & (_ = v.charCodeAt(s + 1))) == 56320 && (o = 65536 + (o - 55296 << 10) + (_ - 56320), s++), o < 128 ? k[u++] = o : (o < 2048 ? k[u++] = 192 | o >>> 6 : (o < 65536 ? k[u++] = 224 | o >>> 12 : (k[u++] = 240 | o >>> 18, k[u++] = 128 | o >>> 12 & 63), k[u++] = 128 | o >>> 6 & 63), k[u++] = 128 | 63 & o);
|
|
1470
|
-
return k;
|
|
1471
|
-
}, m.buf2binstring = function(v) {
|
|
1472
|
-
return x(v, v.length);
|
|
1473
|
-
}, m.binstring2buf = function(v) {
|
|
1474
|
-
for (var k = new a.Buf8(v.length), o = 0, _ = k.length; o < _; o++)
|
|
1475
|
-
k[o] = v.charCodeAt(o);
|
|
1476
|
-
return k;
|
|
1477
|
-
}, m.buf2string = function(v, k) {
|
|
1478
|
-
var o, _, s, u, c = k || v.length, g = new Array(2 * c);
|
|
1479
|
-
for (o = _ = 0; o < c; )
|
|
1480
|
-
if ((s = v[o++]) < 128)
|
|
1481
|
-
g[_++] = s;
|
|
1482
|
-
else if (4 < (u = h[s]))
|
|
1483
|
-
g[_++] = 65533, o += u - 1;
|
|
1484
|
-
else {
|
|
1485
|
-
for (s &= u === 2 ? 31 : u === 3 ? 15 : 7; 1 < u && o < c; )
|
|
1486
|
-
s = s << 6 | 63 & v[o++], u--;
|
|
1487
|
-
1 < u ? g[_++] = 65533 : s < 65536 ? g[_++] = s : (s -= 65536, g[_++] = 55296 | s >> 10 & 1023, g[_++] = 56320 | 1023 & s);
|
|
1488
|
-
}
|
|
1489
|
-
return x(g, _);
|
|
1490
|
-
}, m.utf8border = function(v, k) {
|
|
1491
|
-
var o;
|
|
1492
|
-
for ((k = k || v.length) > v.length && (k = v.length), o = k - 1; 0 <= o && (192 & v[o]) == 128; )
|
|
1493
|
-
o--;
|
|
1494
|
-
return o < 0 || o === 0 ? k : o + h[v[o]] > k ? o : k;
|
|
1495
|
-
};
|
|
1496
|
-
}, { "./common": 41 }], 43: [function(e, y, m) {
|
|
1497
|
-
y.exports = function(a, l, n, h) {
|
|
1498
|
-
for (var w = 65535 & a | 0, x = a >>> 16 & 65535 | 0, v = 0; n !== 0; ) {
|
|
1499
|
-
for (n -= v = 2e3 < n ? 2e3 : n; x = x + (w = w + l[h++] | 0) | 0, --v; )
|
|
1500
|
-
;
|
|
1501
|
-
w %= 65521, x %= 65521;
|
|
1502
|
-
}
|
|
1503
|
-
return w | x << 16 | 0;
|
|
1504
|
-
};
|
|
1505
|
-
}, {}], 44: [function(e, y, m) {
|
|
1506
|
-
y.exports = { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_TREES: 6, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_BUF_ERROR: -5, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, Z_BINARY: 0, Z_TEXT: 1, Z_UNKNOWN: 2, Z_DEFLATED: 8 };
|
|
1507
|
-
}, {}], 45: [function(e, y, m) {
|
|
1508
|
-
var a = function() {
|
|
1509
|
-
for (var l, n = [], h = 0; h < 256; h++) {
|
|
1510
|
-
l = h;
|
|
1511
|
-
for (var w = 0; w < 8; w++)
|
|
1512
|
-
l = 1 & l ? 3988292384 ^ l >>> 1 : l >>> 1;
|
|
1513
|
-
n[h] = l;
|
|
1514
|
-
}
|
|
1515
|
-
return n;
|
|
1516
|
-
}();
|
|
1517
|
-
y.exports = function(l, n, h, w) {
|
|
1518
|
-
var x = a, v = w + h;
|
|
1519
|
-
l ^= -1;
|
|
1520
|
-
for (var k = w; k < v; k++)
|
|
1521
|
-
l = l >>> 8 ^ x[255 & (l ^ n[k])];
|
|
1522
|
-
return -1 ^ l;
|
|
1523
|
-
};
|
|
1524
|
-
}, {}], 46: [function(e, y, m) {
|
|
1525
|
-
var a, l = e("../utils/common"), n = e("./trees"), h = e("./adler32"), w = e("./crc32"), x = e("./messages"), v = 0, k = 4, o = 0, _ = -2, s = -1, u = 4, c = 2, g = 8, S = 9, z = 286, E = 30, N = 19, R = 2 * z + 1, U = 15, B = 3, V = 258, Y = V + B + 1, b = 42, D = 113, i = 1, $ = 2, J = 3, P = 4;
|
|
1526
|
-
function tt(t, F) {
|
|
1527
|
-
return t.msg = x[F], F;
|
|
1528
|
-
}
|
|
1529
|
-
function M(t) {
|
|
1530
|
-
return (t << 1) - (4 < t ? 9 : 0);
|
|
1531
|
-
}
|
|
1532
|
-
function X(t) {
|
|
1533
|
-
for (var F = t.length; 0 <= --F; )
|
|
1534
|
-
t[F] = 0;
|
|
1535
|
-
}
|
|
1536
|
-
function O(t) {
|
|
1537
|
-
var F = t.state, A = F.pending;
|
|
1538
|
-
A > t.avail_out && (A = t.avail_out), A !== 0 && (l.arraySet(t.output, F.pending_buf, F.pending_out, A, t.next_out), t.next_out += A, F.pending_out += A, t.total_out += A, t.avail_out -= A, F.pending -= A, F.pending === 0 && (F.pending_out = 0));
|
|
1539
|
-
}
|
|
1540
|
-
function T(t, F) {
|
|
1541
|
-
n._tr_flush_block(t, 0 <= t.block_start ? t.block_start : -1, t.strstart - t.block_start, F), t.block_start = t.strstart, O(t.strm);
|
|
1542
|
-
}
|
|
1543
|
-
function Q(t, F) {
|
|
1544
|
-
t.pending_buf[t.pending++] = F;
|
|
1545
|
-
}
|
|
1546
|
-
function K(t, F) {
|
|
1547
|
-
t.pending_buf[t.pending++] = F >>> 8 & 255, t.pending_buf[t.pending++] = 255 & F;
|
|
1548
|
-
}
|
|
1549
|
-
function H(t, F) {
|
|
1550
|
-
var A, p, d = t.max_chain_length, C = t.strstart, L = t.prev_length, j = t.nice_match, I = t.strstart > t.w_size - Y ? t.strstart - (t.w_size - Y) : 0, Z = t.window, G = t.w_mask, W = t.prev, q = t.strstart + V, nt = Z[C + L - 1], it = Z[C + L];
|
|
1551
|
-
t.prev_length >= t.good_match && (d >>= 2), j > t.lookahead && (j = t.lookahead);
|
|
1552
|
-
do
|
|
1553
|
-
if (Z[(A = F) + L] === it && Z[A + L - 1] === nt && Z[A] === Z[C] && Z[++A] === Z[C + 1]) {
|
|
1554
|
-
C += 2, A++;
|
|
1555
|
-
do
|
|
1556
|
-
;
|
|
1557
|
-
while (Z[++C] === Z[++A] && Z[++C] === Z[++A] && Z[++C] === Z[++A] && Z[++C] === Z[++A] && Z[++C] === Z[++A] && Z[++C] === Z[++A] && Z[++C] === Z[++A] && Z[++C] === Z[++A] && C < q);
|
|
1558
|
-
if (p = V - (q - C), C = q - V, L < p) {
|
|
1559
|
-
if (t.match_start = F, j <= (L = p))
|
|
1560
|
-
break;
|
|
1561
|
-
nt = Z[C + L - 1], it = Z[C + L];
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
while ((F = W[F & G]) > I && --d != 0);
|
|
1565
|
-
return L <= t.lookahead ? L : t.lookahead;
|
|
1566
|
-
}
|
|
1567
|
-
function st(t) {
|
|
1568
|
-
var F, A, p, d, C, L, j, I, Z, G, W = t.w_size;
|
|
1569
|
-
do {
|
|
1570
|
-
if (d = t.window_size - t.lookahead - t.strstart, t.strstart >= W + (W - Y)) {
|
|
1571
|
-
for (l.arraySet(t.window, t.window, W, W, 0), t.match_start -= W, t.strstart -= W, t.block_start -= W, F = A = t.hash_size; p = t.head[--F], t.head[F] = W <= p ? p - W : 0, --A; )
|
|
1572
|
-
;
|
|
1573
|
-
for (F = A = W; p = t.prev[--F], t.prev[F] = W <= p ? p - W : 0, --A; )
|
|
1574
|
-
;
|
|
1575
|
-
d += W;
|
|
1576
|
-
}
|
|
1577
|
-
if (t.strm.avail_in === 0)
|
|
1578
|
-
break;
|
|
1579
|
-
if (L = t.strm, j = t.window, I = t.strstart + t.lookahead, Z = d, G = void 0, G = L.avail_in, Z < G && (G = Z), A = G === 0 ? 0 : (L.avail_in -= G, l.arraySet(j, L.input, L.next_in, G, I), L.state.wrap === 1 ? L.adler = h(L.adler, j, G, I) : L.state.wrap === 2 && (L.adler = w(L.adler, j, G, I)), L.next_in += G, L.total_in += G, G), t.lookahead += A, t.lookahead + t.insert >= B)
|
|
1580
|
-
for (C = t.strstart - t.insert, t.ins_h = t.window[C], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[C + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[C + B - 1]) & t.hash_mask, t.prev[C & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = C, C++, t.insert--, !(t.lookahead + t.insert < B)); )
|
|
1581
|
-
;
|
|
1582
|
-
} while (t.lookahead < Y && t.strm.avail_in !== 0);
|
|
1583
|
-
}
|
|
1584
|
-
function ct(t, F) {
|
|
1585
|
-
for (var A, p; ; ) {
|
|
1586
|
-
if (t.lookahead < Y) {
|
|
1587
|
-
if (st(t), t.lookahead < Y && F === v)
|
|
1588
|
-
return i;
|
|
1589
|
-
if (t.lookahead === 0)
|
|
1590
|
-
break;
|
|
1591
|
-
}
|
|
1592
|
-
if (A = 0, t.lookahead >= B && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + B - 1]) & t.hash_mask, A = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), A !== 0 && t.strstart - A <= t.w_size - Y && (t.match_length = H(t, A)), t.match_length >= B)
|
|
1593
|
-
if (p = n._tr_tally(t, t.strstart - t.match_start, t.match_length - B), t.lookahead -= t.match_length, t.match_length <= t.max_lazy_match && t.lookahead >= B) {
|
|
1594
|
-
for (t.match_length--; t.strstart++, t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + B - 1]) & t.hash_mask, A = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart, --t.match_length != 0; )
|
|
1595
|
-
;
|
|
1596
|
-
t.strstart++;
|
|
1597
|
-
} else
|
|
1598
|
-
t.strstart += t.match_length, t.match_length = 0, t.ins_h = t.window[t.strstart], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + 1]) & t.hash_mask;
|
|
1599
|
-
else
|
|
1600
|
-
p = n._tr_tally(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
|
|
1601
|
-
if (p && (T(t, !1), t.strm.avail_out === 0))
|
|
1602
|
-
return i;
|
|
1603
|
-
}
|
|
1604
|
-
return t.insert = t.strstart < B - 1 ? t.strstart : B - 1, F === k ? (T(t, !0), t.strm.avail_out === 0 ? J : P) : t.last_lit && (T(t, !1), t.strm.avail_out === 0) ? i : $;
|
|
1605
|
-
}
|
|
1606
|
-
function et(t, F) {
|
|
1607
|
-
for (var A, p, d; ; ) {
|
|
1608
|
-
if (t.lookahead < Y) {
|
|
1609
|
-
if (st(t), t.lookahead < Y && F === v)
|
|
1610
|
-
return i;
|
|
1611
|
-
if (t.lookahead === 0)
|
|
1612
|
-
break;
|
|
1613
|
-
}
|
|
1614
|
-
if (A = 0, t.lookahead >= B && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + B - 1]) & t.hash_mask, A = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = B - 1, A !== 0 && t.prev_length < t.max_lazy_match && t.strstart - A <= t.w_size - Y && (t.match_length = H(t, A), t.match_length <= 5 && (t.strategy === 1 || t.match_length === B && 4096 < t.strstart - t.match_start) && (t.match_length = B - 1)), t.prev_length >= B && t.match_length <= t.prev_length) {
|
|
1615
|
-
for (d = t.strstart + t.lookahead - B, p = n._tr_tally(t, t.strstart - 1 - t.prev_match, t.prev_length - B), t.lookahead -= t.prev_length - 1, t.prev_length -= 2; ++t.strstart <= d && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[t.strstart + B - 1]) & t.hash_mask, A = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), --t.prev_length != 0; )
|
|
1616
|
-
;
|
|
1617
|
-
if (t.match_available = 0, t.match_length = B - 1, t.strstart++, p && (T(t, !1), t.strm.avail_out === 0))
|
|
1618
|
-
return i;
|
|
1619
|
-
} else if (t.match_available) {
|
|
1620
|
-
if ((p = n._tr_tally(t, 0, t.window[t.strstart - 1])) && T(t, !1), t.strstart++, t.lookahead--, t.strm.avail_out === 0)
|
|
1621
|
-
return i;
|
|
1622
|
-
} else
|
|
1623
|
-
t.match_available = 1, t.strstart++, t.lookahead--;
|
|
1624
|
-
}
|
|
1625
|
-
return t.match_available && (p = n._tr_tally(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < B - 1 ? t.strstart : B - 1, F === k ? (T(t, !0), t.strm.avail_out === 0 ? J : P) : t.last_lit && (T(t, !1), t.strm.avail_out === 0) ? i : $;
|
|
1626
|
-
}
|
|
1627
|
-
function rt(t, F, A, p, d) {
|
|
1628
|
-
this.good_length = t, this.max_lazy = F, this.nice_length = A, this.max_chain = p, this.func = d;
|
|
1629
|
-
}
|
|
1630
|
-
function lt() {
|
|
1631
|
-
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 l.Buf16(2 * R), this.dyn_dtree = new l.Buf16(2 * (2 * E + 1)), this.bl_tree = new l.Buf16(2 * (2 * N + 1)), X(this.dyn_ltree), X(this.dyn_dtree), X(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new l.Buf16(U + 1), this.heap = new l.Buf16(2 * z + 1), X(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new l.Buf16(2 * z + 1), X(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;
|
|
1632
|
-
}
|
|
1633
|
-
function at(t) {
|
|
1634
|
-
var F;
|
|
1635
|
-
return t && t.state ? (t.total_in = t.total_out = 0, t.data_type = c, (F = t.state).pending = 0, F.pending_out = 0, F.wrap < 0 && (F.wrap = -F.wrap), F.status = F.wrap ? b : D, t.adler = F.wrap === 2 ? 0 : 1, F.last_flush = v, n._tr_init(F), o) : tt(t, _);
|
|
1636
|
-
}
|
|
1637
|
-
function ft(t) {
|
|
1638
|
-
var F = at(t);
|
|
1639
|
-
return F === o && function(A) {
|
|
1640
|
-
A.window_size = 2 * A.w_size, X(A.head), A.max_lazy_match = a[A.level].max_lazy, A.good_match = a[A.level].good_length, A.nice_match = a[A.level].nice_length, A.max_chain_length = a[A.level].max_chain, A.strstart = 0, A.block_start = 0, A.lookahead = 0, A.insert = 0, A.match_length = A.prev_length = B - 1, A.match_available = 0, A.ins_h = 0;
|
|
1641
|
-
}(t.state), F;
|
|
1642
|
-
}
|
|
1643
|
-
function ht(t, F, A, p, d, C) {
|
|
1644
|
-
if (!t)
|
|
1645
|
-
return _;
|
|
1646
|
-
var L = 1;
|
|
1647
|
-
if (F === s && (F = 6), p < 0 ? (L = 0, p = -p) : 15 < p && (L = 2, p -= 16), d < 1 || S < d || A !== g || p < 8 || 15 < p || F < 0 || 9 < F || C < 0 || u < C)
|
|
1648
|
-
return tt(t, _);
|
|
1649
|
-
p === 8 && (p = 9);
|
|
1650
|
-
var j = new lt();
|
|
1651
|
-
return (t.state = j).strm = t, j.wrap = L, j.gzhead = null, j.w_bits = p, j.w_size = 1 << j.w_bits, j.w_mask = j.w_size - 1, j.hash_bits = d + 7, j.hash_size = 1 << j.hash_bits, j.hash_mask = j.hash_size - 1, j.hash_shift = ~~((j.hash_bits + B - 1) / B), j.window = new l.Buf8(2 * j.w_size), j.head = new l.Buf16(j.hash_size), j.prev = new l.Buf16(j.w_size), j.lit_bufsize = 1 << d + 6, j.pending_buf_size = 4 * j.lit_bufsize, j.pending_buf = new l.Buf8(j.pending_buf_size), j.d_buf = 1 * j.lit_bufsize, j.l_buf = 3 * j.lit_bufsize, j.level = F, j.strategy = C, j.method = A, ft(t);
|
|
1652
|
-
}
|
|
1653
|
-
a = [new rt(0, 0, 0, 0, function(t, F) {
|
|
1654
|
-
var A = 65535;
|
|
1655
|
-
for (A > t.pending_buf_size - 5 && (A = t.pending_buf_size - 5); ; ) {
|
|
1656
|
-
if (t.lookahead <= 1) {
|
|
1657
|
-
if (st(t), t.lookahead === 0 && F === v)
|
|
1658
|
-
return i;
|
|
1659
|
-
if (t.lookahead === 0)
|
|
1660
|
-
break;
|
|
1661
|
-
}
|
|
1662
|
-
t.strstart += t.lookahead, t.lookahead = 0;
|
|
1663
|
-
var p = t.block_start + A;
|
|
1664
|
-
if ((t.strstart === 0 || t.strstart >= p) && (t.lookahead = t.strstart - p, t.strstart = p, T(t, !1), t.strm.avail_out === 0) || t.strstart - t.block_start >= t.w_size - Y && (T(t, !1), t.strm.avail_out === 0))
|
|
1665
|
-
return i;
|
|
1666
|
-
}
|
|
1667
|
-
return t.insert = 0, F === k ? (T(t, !0), t.strm.avail_out === 0 ? J : P) : (t.strstart > t.block_start && (T(t, !1), t.strm.avail_out), i);
|
|
1668
|
-
}), new rt(4, 4, 8, 4, ct), new rt(4, 5, 16, 8, ct), new rt(4, 6, 32, 32, ct), new rt(4, 4, 16, 16, et), new rt(8, 16, 32, 32, et), new rt(8, 16, 128, 128, et), new rt(8, 32, 128, 256, et), new rt(32, 128, 258, 1024, et), new rt(32, 258, 258, 4096, et)], m.deflateInit = function(t, F) {
|
|
1669
|
-
return ht(t, F, g, 15, 8, 0);
|
|
1670
|
-
}, m.deflateInit2 = ht, m.deflateReset = ft, m.deflateResetKeep = at, m.deflateSetHeader = function(t, F) {
|
|
1671
|
-
return t && t.state ? t.state.wrap !== 2 ? _ : (t.state.gzhead = F, o) : _;
|
|
1672
|
-
}, m.deflate = function(t, F) {
|
|
1673
|
-
var A, p, d, C;
|
|
1674
|
-
if (!t || !t.state || 5 < F || F < 0)
|
|
1675
|
-
return t ? tt(t, _) : _;
|
|
1676
|
-
if (p = t.state, !t.output || !t.input && t.avail_in !== 0 || p.status === 666 && F !== k)
|
|
1677
|
-
return tt(t, t.avail_out === 0 ? -5 : _);
|
|
1678
|
-
if (p.strm = t, A = p.last_flush, p.last_flush = F, p.status === b)
|
|
1679
|
-
if (p.wrap === 2)
|
|
1680
|
-
t.adler = 0, Q(p, 31), Q(p, 139), Q(p, 8), p.gzhead ? (Q(p, (p.gzhead.text ? 1 : 0) + (p.gzhead.hcrc ? 2 : 0) + (p.gzhead.extra ? 4 : 0) + (p.gzhead.name ? 8 : 0) + (p.gzhead.comment ? 16 : 0)), Q(p, 255 & p.gzhead.time), Q(p, p.gzhead.time >> 8 & 255), Q(p, p.gzhead.time >> 16 & 255), Q(p, p.gzhead.time >> 24 & 255), Q(p, p.level === 9 ? 2 : 2 <= p.strategy || p.level < 2 ? 4 : 0), Q(p, 255 & p.gzhead.os), p.gzhead.extra && p.gzhead.extra.length && (Q(p, 255 & p.gzhead.extra.length), Q(p, p.gzhead.extra.length >> 8 & 255)), p.gzhead.hcrc && (t.adler = w(t.adler, p.pending_buf, p.pending, 0)), p.gzindex = 0, p.status = 69) : (Q(p, 0), Q(p, 0), Q(p, 0), Q(p, 0), Q(p, 0), Q(p, p.level === 9 ? 2 : 2 <= p.strategy || p.level < 2 ? 4 : 0), Q(p, 3), p.status = D);
|
|
1681
|
-
else {
|
|
1682
|
-
var L = g + (p.w_bits - 8 << 4) << 8;
|
|
1683
|
-
L |= (2 <= p.strategy || p.level < 2 ? 0 : p.level < 6 ? 1 : p.level === 6 ? 2 : 3) << 6, p.strstart !== 0 && (L |= 32), L += 31 - L % 31, p.status = D, K(p, L), p.strstart !== 0 && (K(p, t.adler >>> 16), K(p, 65535 & t.adler)), t.adler = 1;
|
|
1684
|
-
}
|
|
1685
|
-
if (p.status === 69)
|
|
1686
|
-
if (p.gzhead.extra) {
|
|
1687
|
-
for (d = p.pending; p.gzindex < (65535 & p.gzhead.extra.length) && (p.pending !== p.pending_buf_size || (p.gzhead.hcrc && p.pending > d && (t.adler = w(t.adler, p.pending_buf, p.pending - d, d)), O(t), d = p.pending, p.pending !== p.pending_buf_size)); )
|
|
1688
|
-
Q(p, 255 & p.gzhead.extra[p.gzindex]), p.gzindex++;
|
|
1689
|
-
p.gzhead.hcrc && p.pending > d && (t.adler = w(t.adler, p.pending_buf, p.pending - d, d)), p.gzindex === p.gzhead.extra.length && (p.gzindex = 0, p.status = 73);
|
|
1690
|
-
} else
|
|
1691
|
-
p.status = 73;
|
|
1692
|
-
if (p.status === 73)
|
|
1693
|
-
if (p.gzhead.name) {
|
|
1694
|
-
d = p.pending;
|
|
1695
|
-
do {
|
|
1696
|
-
if (p.pending === p.pending_buf_size && (p.gzhead.hcrc && p.pending > d && (t.adler = w(t.adler, p.pending_buf, p.pending - d, d)), O(t), d = p.pending, p.pending === p.pending_buf_size)) {
|
|
1697
|
-
C = 1;
|
|
1698
|
-
break;
|
|
1699
|
-
}
|
|
1700
|
-
C = p.gzindex < p.gzhead.name.length ? 255 & p.gzhead.name.charCodeAt(p.gzindex++) : 0, Q(p, C);
|
|
1701
|
-
} while (C !== 0);
|
|
1702
|
-
p.gzhead.hcrc && p.pending > d && (t.adler = w(t.adler, p.pending_buf, p.pending - d, d)), C === 0 && (p.gzindex = 0, p.status = 91);
|
|
1703
|
-
} else
|
|
1704
|
-
p.status = 91;
|
|
1705
|
-
if (p.status === 91)
|
|
1706
|
-
if (p.gzhead.comment) {
|
|
1707
|
-
d = p.pending;
|
|
1708
|
-
do {
|
|
1709
|
-
if (p.pending === p.pending_buf_size && (p.gzhead.hcrc && p.pending > d && (t.adler = w(t.adler, p.pending_buf, p.pending - d, d)), O(t), d = p.pending, p.pending === p.pending_buf_size)) {
|
|
1710
|
-
C = 1;
|
|
1711
|
-
break;
|
|
1712
|
-
}
|
|
1713
|
-
C = p.gzindex < p.gzhead.comment.length ? 255 & p.gzhead.comment.charCodeAt(p.gzindex++) : 0, Q(p, C);
|
|
1714
|
-
} while (C !== 0);
|
|
1715
|
-
p.gzhead.hcrc && p.pending > d && (t.adler = w(t.adler, p.pending_buf, p.pending - d, d)), C === 0 && (p.status = 103);
|
|
1716
|
-
} else
|
|
1717
|
-
p.status = 103;
|
|
1718
|
-
if (p.status === 103 && (p.gzhead.hcrc ? (p.pending + 2 > p.pending_buf_size && O(t), p.pending + 2 <= p.pending_buf_size && (Q(p, 255 & t.adler), Q(p, t.adler >> 8 & 255), t.adler = 0, p.status = D)) : p.status = D), p.pending !== 0) {
|
|
1719
|
-
if (O(t), t.avail_out === 0)
|
|
1720
|
-
return p.last_flush = -1, o;
|
|
1721
|
-
} else if (t.avail_in === 0 && M(F) <= M(A) && F !== k)
|
|
1722
|
-
return tt(t, -5);
|
|
1723
|
-
if (p.status === 666 && t.avail_in !== 0)
|
|
1724
|
-
return tt(t, -5);
|
|
1725
|
-
if (t.avail_in !== 0 || p.lookahead !== 0 || F !== v && p.status !== 666) {
|
|
1726
|
-
var j = p.strategy === 2 ? function(I, Z) {
|
|
1727
|
-
for (var G; ; ) {
|
|
1728
|
-
if (I.lookahead === 0 && (st(I), I.lookahead === 0)) {
|
|
1729
|
-
if (Z === v)
|
|
1730
|
-
return i;
|
|
1731
|
-
break;
|
|
1732
|
-
}
|
|
1733
|
-
if (I.match_length = 0, G = n._tr_tally(I, 0, I.window[I.strstart]), I.lookahead--, I.strstart++, G && (T(I, !1), I.strm.avail_out === 0))
|
|
1734
|
-
return i;
|
|
1735
|
-
}
|
|
1736
|
-
return I.insert = 0, Z === k ? (T(I, !0), I.strm.avail_out === 0 ? J : P) : I.last_lit && (T(I, !1), I.strm.avail_out === 0) ? i : $;
|
|
1737
|
-
}(p, F) : p.strategy === 3 ? function(I, Z) {
|
|
1738
|
-
for (var G, W, q, nt, it = I.window; ; ) {
|
|
1739
|
-
if (I.lookahead <= V) {
|
|
1740
|
-
if (st(I), I.lookahead <= V && Z === v)
|
|
1741
|
-
return i;
|
|
1742
|
-
if (I.lookahead === 0)
|
|
1743
|
-
break;
|
|
1744
|
-
}
|
|
1745
|
-
if (I.match_length = 0, I.lookahead >= B && 0 < I.strstart && (W = it[q = I.strstart - 1]) === it[++q] && W === it[++q] && W === it[++q]) {
|
|
1746
|
-
nt = I.strstart + V;
|
|
1747
|
-
do
|
|
1748
|
-
;
|
|
1749
|
-
while (W === it[++q] && W === it[++q] && W === it[++q] && W === it[++q] && W === it[++q] && W === it[++q] && W === it[++q] && W === it[++q] && q < nt);
|
|
1750
|
-
I.match_length = V - (nt - q), I.match_length > I.lookahead && (I.match_length = I.lookahead);
|
|
1751
|
-
}
|
|
1752
|
-
if (I.match_length >= B ? (G = n._tr_tally(I, 1, I.match_length - B), I.lookahead -= I.match_length, I.strstart += I.match_length, I.match_length = 0) : (G = n._tr_tally(I, 0, I.window[I.strstart]), I.lookahead--, I.strstart++), G && (T(I, !1), I.strm.avail_out === 0))
|
|
1753
|
-
return i;
|
|
1754
|
-
}
|
|
1755
|
-
return I.insert = 0, Z === k ? (T(I, !0), I.strm.avail_out === 0 ? J : P) : I.last_lit && (T(I, !1), I.strm.avail_out === 0) ? i : $;
|
|
1756
|
-
}(p, F) : a[p.level].func(p, F);
|
|
1757
|
-
if (j !== J && j !== P || (p.status = 666), j === i || j === J)
|
|
1758
|
-
return t.avail_out === 0 && (p.last_flush = -1), o;
|
|
1759
|
-
if (j === $ && (F === 1 ? n._tr_align(p) : F !== 5 && (n._tr_stored_block(p, 0, 0, !1), F === 3 && (X(p.head), p.lookahead === 0 && (p.strstart = 0, p.block_start = 0, p.insert = 0))), O(t), t.avail_out === 0))
|
|
1760
|
-
return p.last_flush = -1, o;
|
|
1761
|
-
}
|
|
1762
|
-
return F !== k ? o : p.wrap <= 0 ? 1 : (p.wrap === 2 ? (Q(p, 255 & t.adler), Q(p, t.adler >> 8 & 255), Q(p, t.adler >> 16 & 255), Q(p, t.adler >> 24 & 255), Q(p, 255 & t.total_in), Q(p, t.total_in >> 8 & 255), Q(p, t.total_in >> 16 & 255), Q(p, t.total_in >> 24 & 255)) : (K(p, t.adler >>> 16), K(p, 65535 & t.adler)), O(t), 0 < p.wrap && (p.wrap = -p.wrap), p.pending !== 0 ? o : 1);
|
|
1763
|
-
}, m.deflateEnd = function(t) {
|
|
1764
|
-
var F;
|
|
1765
|
-
return t && t.state ? (F = t.state.status) !== b && F !== 69 && F !== 73 && F !== 91 && F !== 103 && F !== D && F !== 666 ? tt(t, _) : (t.state = null, F === D ? tt(t, -3) : o) : _;
|
|
1766
|
-
}, m.deflateSetDictionary = function(t, F) {
|
|
1767
|
-
var A, p, d, C, L, j, I, Z, G = F.length;
|
|
1768
|
-
if (!t || !t.state || (C = (A = t.state).wrap) === 2 || C === 1 && A.status !== b || A.lookahead)
|
|
1769
|
-
return _;
|
|
1770
|
-
for (C === 1 && (t.adler = h(t.adler, F, G, 0)), A.wrap = 0, G >= A.w_size && (C === 0 && (X(A.head), A.strstart = 0, A.block_start = 0, A.insert = 0), Z = new l.Buf8(A.w_size), l.arraySet(Z, F, G - A.w_size, A.w_size, 0), F = Z, G = A.w_size), L = t.avail_in, j = t.next_in, I = t.input, t.avail_in = G, t.next_in = 0, t.input = F, st(A); A.lookahead >= B; ) {
|
|
1771
|
-
for (p = A.strstart, d = A.lookahead - (B - 1); A.ins_h = (A.ins_h << A.hash_shift ^ A.window[p + B - 1]) & A.hash_mask, A.prev[p & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = p, p++, --d; )
|
|
1772
|
-
;
|
|
1773
|
-
A.strstart = p, A.lookahead = B - 1, st(A);
|
|
1774
|
-
}
|
|
1775
|
-
return A.strstart += A.lookahead, A.block_start = A.strstart, A.insert = A.lookahead, A.lookahead = 0, A.match_length = A.prev_length = B - 1, A.match_available = 0, t.next_in = j, t.input = I, t.avail_in = L, A.wrap = C, o;
|
|
1776
|
-
}, m.deflateInfo = "pako deflate (from Nodeca project)";
|
|
1777
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, y, m) {
|
|
1778
|
-
y.exports = function() {
|
|
1779
|
-
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;
|
|
1780
|
-
};
|
|
1781
|
-
}, {}], 48: [function(e, y, m) {
|
|
1782
|
-
y.exports = function(a, l) {
|
|
1783
|
-
var n, h, w, x, v, k, o, _, s, u, c, g, S, z, E, N, R, U, B, V, Y, b, D, i, $;
|
|
1784
|
-
n = a.state, h = a.next_in, i = a.input, w = h + (a.avail_in - 5), x = a.next_out, $ = a.output, v = x - (l - a.avail_out), k = x + (a.avail_out - 257), o = n.dmax, _ = n.wsize, s = n.whave, u = n.wnext, c = n.window, g = n.hold, S = n.bits, z = n.lencode, E = n.distcode, N = (1 << n.lenbits) - 1, R = (1 << n.distbits) - 1;
|
|
1785
|
-
t:
|
|
1786
|
-
do {
|
|
1787
|
-
S < 15 && (g += i[h++] << S, S += 8, g += i[h++] << S, S += 8), U = z[g & N];
|
|
1788
|
-
e:
|
|
1789
|
-
for (; ; ) {
|
|
1790
|
-
if (g >>>= B = U >>> 24, S -= B, (B = U >>> 16 & 255) === 0)
|
|
1791
|
-
$[x++] = 65535 & U;
|
|
1792
|
-
else {
|
|
1793
|
-
if (!(16 & B)) {
|
|
1794
|
-
if ((64 & B) == 0) {
|
|
1795
|
-
U = z[(65535 & U) + (g & (1 << B) - 1)];
|
|
1796
|
-
continue e;
|
|
1797
|
-
}
|
|
1798
|
-
if (32 & B) {
|
|
1799
|
-
n.mode = 12;
|
|
1800
|
-
break t;
|
|
1801
|
-
}
|
|
1802
|
-
a.msg = "invalid literal/length code", n.mode = 30;
|
|
1803
|
-
break t;
|
|
1804
|
-
}
|
|
1805
|
-
V = 65535 & U, (B &= 15) && (S < B && (g += i[h++] << S, S += 8), V += g & (1 << B) - 1, g >>>= B, S -= B), S < 15 && (g += i[h++] << S, S += 8, g += i[h++] << S, S += 8), U = E[g & R];
|
|
1806
|
-
i:
|
|
1807
|
-
for (; ; ) {
|
|
1808
|
-
if (g >>>= B = U >>> 24, S -= B, !(16 & (B = U >>> 16 & 255))) {
|
|
1809
|
-
if ((64 & B) == 0) {
|
|
1810
|
-
U = E[(65535 & U) + (g & (1 << B) - 1)];
|
|
1811
|
-
continue i;
|
|
1812
|
-
}
|
|
1813
|
-
a.msg = "invalid distance code", n.mode = 30;
|
|
1814
|
-
break t;
|
|
1815
|
-
}
|
|
1816
|
-
if (Y = 65535 & U, S < (B &= 15) && (g += i[h++] << S, (S += 8) < B && (g += i[h++] << S, S += 8)), o < (Y += g & (1 << B) - 1)) {
|
|
1817
|
-
a.msg = "invalid distance too far back", n.mode = 30;
|
|
1818
|
-
break t;
|
|
1819
|
-
}
|
|
1820
|
-
if (g >>>= B, S -= B, (B = x - v) < Y) {
|
|
1821
|
-
if (s < (B = Y - B) && n.sane) {
|
|
1822
|
-
a.msg = "invalid distance too far back", n.mode = 30;
|
|
1823
|
-
break t;
|
|
1824
|
-
}
|
|
1825
|
-
if (D = c, (b = 0) === u) {
|
|
1826
|
-
if (b += _ - B, B < V) {
|
|
1827
|
-
for (V -= B; $[x++] = c[b++], --B; )
|
|
1828
|
-
;
|
|
1829
|
-
b = x - Y, D = $;
|
|
1830
|
-
}
|
|
1831
|
-
} else if (u < B) {
|
|
1832
|
-
if (b += _ + u - B, (B -= u) < V) {
|
|
1833
|
-
for (V -= B; $[x++] = c[b++], --B; )
|
|
1834
|
-
;
|
|
1835
|
-
if (b = 0, u < V) {
|
|
1836
|
-
for (V -= B = u; $[x++] = c[b++], --B; )
|
|
1837
|
-
;
|
|
1838
|
-
b = x - Y, D = $;
|
|
1839
|
-
}
|
|
1840
|
-
}
|
|
1841
|
-
} else if (b += u - B, B < V) {
|
|
1842
|
-
for (V -= B; $[x++] = c[b++], --B; )
|
|
1843
|
-
;
|
|
1844
|
-
b = x - Y, D = $;
|
|
1845
|
-
}
|
|
1846
|
-
for (; 2 < V; )
|
|
1847
|
-
$[x++] = D[b++], $[x++] = D[b++], $[x++] = D[b++], V -= 3;
|
|
1848
|
-
V && ($[x++] = D[b++], 1 < V && ($[x++] = D[b++]));
|
|
1849
|
-
} else {
|
|
1850
|
-
for (b = x - Y; $[x++] = $[b++], $[x++] = $[b++], $[x++] = $[b++], 2 < (V -= 3); )
|
|
1851
|
-
;
|
|
1852
|
-
V && ($[x++] = $[b++], 1 < V && ($[x++] = $[b++]));
|
|
1853
|
-
}
|
|
1854
|
-
break;
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
break;
|
|
1858
|
-
}
|
|
1859
|
-
} while (h < w && x < k);
|
|
1860
|
-
h -= V = S >> 3, g &= (1 << (S -= V << 3)) - 1, a.next_in = h, a.next_out = x, a.avail_in = h < w ? w - h + 5 : 5 - (h - w), a.avail_out = x < k ? k - x + 257 : 257 - (x - k), n.hold = g, n.bits = S;
|
|
1861
|
-
};
|
|
1862
|
-
}, {}], 49: [function(e, y, m) {
|
|
1863
|
-
var a = e("../utils/common"), l = e("./adler32"), n = e("./crc32"), h = e("./inffast"), w = e("./inftrees"), x = 1, v = 2, k = 0, o = -2, _ = 1, s = 852, u = 592;
|
|
1864
|
-
function c(b) {
|
|
1865
|
-
return (b >>> 24 & 255) + (b >>> 8 & 65280) + ((65280 & b) << 8) + ((255 & b) << 24);
|
|
1866
|
-
}
|
|
1867
|
-
function g() {
|
|
1868
|
-
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 a.Buf16(320), this.work = new a.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
1869
|
-
}
|
|
1870
|
-
function S(b) {
|
|
1871
|
-
var D;
|
|
1872
|
-
return b && b.state ? (D = b.state, b.total_in = b.total_out = D.total = 0, b.msg = "", D.wrap && (b.adler = 1 & D.wrap), D.mode = _, D.last = 0, D.havedict = 0, D.dmax = 32768, D.head = null, D.hold = 0, D.bits = 0, D.lencode = D.lendyn = new a.Buf32(s), D.distcode = D.distdyn = new a.Buf32(u), D.sane = 1, D.back = -1, k) : o;
|
|
1873
|
-
}
|
|
1874
|
-
function z(b) {
|
|
1875
|
-
var D;
|
|
1876
|
-
return b && b.state ? ((D = b.state).wsize = 0, D.whave = 0, D.wnext = 0, S(b)) : o;
|
|
1877
|
-
}
|
|
1878
|
-
function E(b, D) {
|
|
1879
|
-
var i, $;
|
|
1880
|
-
return b && b.state ? ($ = b.state, D < 0 ? (i = 0, D = -D) : (i = 1 + (D >> 4), D < 48 && (D &= 15)), D && (D < 8 || 15 < D) ? o : ($.window !== null && $.wbits !== D && ($.window = null), $.wrap = i, $.wbits = D, z(b))) : o;
|
|
1881
|
-
}
|
|
1882
|
-
function N(b, D) {
|
|
1883
|
-
var i, $;
|
|
1884
|
-
return b ? ($ = new g(), (b.state = $).window = null, (i = E(b, D)) !== k && (b.state = null), i) : o;
|
|
1885
|
-
}
|
|
1886
|
-
var R, U, B = !0;
|
|
1887
|
-
function V(b) {
|
|
1888
|
-
if (B) {
|
|
1889
|
-
var D;
|
|
1890
|
-
for (R = new a.Buf32(512), U = new a.Buf32(32), D = 0; D < 144; )
|
|
1891
|
-
b.lens[D++] = 8;
|
|
1892
|
-
for (; D < 256; )
|
|
1893
|
-
b.lens[D++] = 9;
|
|
1894
|
-
for (; D < 280; )
|
|
1895
|
-
b.lens[D++] = 7;
|
|
1896
|
-
for (; D < 288; )
|
|
1897
|
-
b.lens[D++] = 8;
|
|
1898
|
-
for (w(x, b.lens, 0, 288, R, 0, b.work, { bits: 9 }), D = 0; D < 32; )
|
|
1899
|
-
b.lens[D++] = 5;
|
|
1900
|
-
w(v, b.lens, 0, 32, U, 0, b.work, { bits: 5 }), B = !1;
|
|
1901
|
-
}
|
|
1902
|
-
b.lencode = R, b.lenbits = 9, b.distcode = U, b.distbits = 5;
|
|
1903
|
-
}
|
|
1904
|
-
function Y(b, D, i, $) {
|
|
1905
|
-
var J, P = b.state;
|
|
1906
|
-
return P.window === null && (P.wsize = 1 << P.wbits, P.wnext = 0, P.whave = 0, P.window = new a.Buf8(P.wsize)), $ >= P.wsize ? (a.arraySet(P.window, D, i - P.wsize, P.wsize, 0), P.wnext = 0, P.whave = P.wsize) : ($ < (J = P.wsize - P.wnext) && (J = $), a.arraySet(P.window, D, i - $, J, P.wnext), ($ -= J) ? (a.arraySet(P.window, D, i - $, $, 0), P.wnext = $, P.whave = P.wsize) : (P.wnext += J, P.wnext === P.wsize && (P.wnext = 0), P.whave < P.wsize && (P.whave += J))), 0;
|
|
1907
|
-
}
|
|
1908
|
-
m.inflateReset = z, m.inflateReset2 = E, m.inflateResetKeep = S, m.inflateInit = function(b) {
|
|
1909
|
-
return N(b, 15);
|
|
1910
|
-
}, m.inflateInit2 = N, m.inflate = function(b, D) {
|
|
1911
|
-
var i, $, J, P, tt, M, X, O, T, Q, K, H, st, ct, et, rt, lt, at, ft, ht, t, F, A, p, d = 0, C = new a.Buf8(4), L = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
1912
|
-
if (!b || !b.state || !b.output || !b.input && b.avail_in !== 0)
|
|
1913
|
-
return o;
|
|
1914
|
-
(i = b.state).mode === 12 && (i.mode = 13), tt = b.next_out, J = b.output, X = b.avail_out, P = b.next_in, $ = b.input, M = b.avail_in, O = i.hold, T = i.bits, Q = M, K = X, F = k;
|
|
1915
|
-
t:
|
|
1916
|
-
for (; ; )
|
|
1917
|
-
switch (i.mode) {
|
|
1918
|
-
case _:
|
|
1919
|
-
if (i.wrap === 0) {
|
|
1920
|
-
i.mode = 13;
|
|
1921
|
-
break;
|
|
1922
|
-
}
|
|
1923
|
-
for (; T < 16; ) {
|
|
1924
|
-
if (M === 0)
|
|
1925
|
-
break t;
|
|
1926
|
-
M--, O += $[P++] << T, T += 8;
|
|
1927
|
-
}
|
|
1928
|
-
if (2 & i.wrap && O === 35615) {
|
|
1929
|
-
C[i.check = 0] = 255 & O, C[1] = O >>> 8 & 255, i.check = n(i.check, C, 2, 0), T = O = 0, i.mode = 2;
|
|
1930
|
-
break;
|
|
1931
|
-
}
|
|
1932
|
-
if (i.flags = 0, i.head && (i.head.done = !1), !(1 & i.wrap) || (((255 & O) << 8) + (O >> 8)) % 31) {
|
|
1933
|
-
b.msg = "incorrect header check", i.mode = 30;
|
|
1934
|
-
break;
|
|
1935
|
-
}
|
|
1936
|
-
if ((15 & O) != 8) {
|
|
1937
|
-
b.msg = "unknown compression method", i.mode = 30;
|
|
1938
|
-
break;
|
|
1939
|
-
}
|
|
1940
|
-
if (T -= 4, t = 8 + (15 & (O >>>= 4)), i.wbits === 0)
|
|
1941
|
-
i.wbits = t;
|
|
1942
|
-
else if (t > i.wbits) {
|
|
1943
|
-
b.msg = "invalid window size", i.mode = 30;
|
|
1944
|
-
break;
|
|
1945
|
-
}
|
|
1946
|
-
i.dmax = 1 << t, b.adler = i.check = 1, i.mode = 512 & O ? 10 : 12, T = O = 0;
|
|
1947
|
-
break;
|
|
1948
|
-
case 2:
|
|
1949
|
-
for (; T < 16; ) {
|
|
1950
|
-
if (M === 0)
|
|
1951
|
-
break t;
|
|
1952
|
-
M--, O += $[P++] << T, T += 8;
|
|
1953
|
-
}
|
|
1954
|
-
if (i.flags = O, (255 & i.flags) != 8) {
|
|
1955
|
-
b.msg = "unknown compression method", i.mode = 30;
|
|
1956
|
-
break;
|
|
1957
|
-
}
|
|
1958
|
-
if (57344 & i.flags) {
|
|
1959
|
-
b.msg = "unknown header flags set", i.mode = 30;
|
|
1960
|
-
break;
|
|
1961
|
-
}
|
|
1962
|
-
i.head && (i.head.text = O >> 8 & 1), 512 & i.flags && (C[0] = 255 & O, C[1] = O >>> 8 & 255, i.check = n(i.check, C, 2, 0)), T = O = 0, i.mode = 3;
|
|
1963
|
-
case 3:
|
|
1964
|
-
for (; T < 32; ) {
|
|
1965
|
-
if (M === 0)
|
|
1966
|
-
break t;
|
|
1967
|
-
M--, O += $[P++] << T, T += 8;
|
|
1968
|
-
}
|
|
1969
|
-
i.head && (i.head.time = O), 512 & i.flags && (C[0] = 255 & O, C[1] = O >>> 8 & 255, C[2] = O >>> 16 & 255, C[3] = O >>> 24 & 255, i.check = n(i.check, C, 4, 0)), T = O = 0, i.mode = 4;
|
|
1970
|
-
case 4:
|
|
1971
|
-
for (; T < 16; ) {
|
|
1972
|
-
if (M === 0)
|
|
1973
|
-
break t;
|
|
1974
|
-
M--, O += $[P++] << T, T += 8;
|
|
1975
|
-
}
|
|
1976
|
-
i.head && (i.head.xflags = 255 & O, i.head.os = O >> 8), 512 & i.flags && (C[0] = 255 & O, C[1] = O >>> 8 & 255, i.check = n(i.check, C, 2, 0)), T = O = 0, i.mode = 5;
|
|
1977
|
-
case 5:
|
|
1978
|
-
if (1024 & i.flags) {
|
|
1979
|
-
for (; T < 16; ) {
|
|
1980
|
-
if (M === 0)
|
|
1981
|
-
break t;
|
|
1982
|
-
M--, O += $[P++] << T, T += 8;
|
|
1983
|
-
}
|
|
1984
|
-
i.length = O, i.head && (i.head.extra_len = O), 512 & i.flags && (C[0] = 255 & O, C[1] = O >>> 8 & 255, i.check = n(i.check, C, 2, 0)), T = O = 0;
|
|
1985
|
-
} else
|
|
1986
|
-
i.head && (i.head.extra = null);
|
|
1987
|
-
i.mode = 6;
|
|
1988
|
-
case 6:
|
|
1989
|
-
if (1024 & i.flags && (M < (H = i.length) && (H = M), H && (i.head && (t = i.head.extra_len - i.length, i.head.extra || (i.head.extra = new Array(i.head.extra_len)), a.arraySet(i.head.extra, $, P, H, t)), 512 & i.flags && (i.check = n(i.check, $, H, P)), M -= H, P += H, i.length -= H), i.length))
|
|
1990
|
-
break t;
|
|
1991
|
-
i.length = 0, i.mode = 7;
|
|
1992
|
-
case 7:
|
|
1993
|
-
if (2048 & i.flags) {
|
|
1994
|
-
if (M === 0)
|
|
1995
|
-
break t;
|
|
1996
|
-
for (H = 0; t = $[P + H++], i.head && t && i.length < 65536 && (i.head.name += String.fromCharCode(t)), t && H < M; )
|
|
1997
|
-
;
|
|
1998
|
-
if (512 & i.flags && (i.check = n(i.check, $, H, P)), M -= H, P += H, t)
|
|
1999
|
-
break t;
|
|
2000
|
-
} else
|
|
2001
|
-
i.head && (i.head.name = null);
|
|
2002
|
-
i.length = 0, i.mode = 8;
|
|
2003
|
-
case 8:
|
|
2004
|
-
if (4096 & i.flags) {
|
|
2005
|
-
if (M === 0)
|
|
2006
|
-
break t;
|
|
2007
|
-
for (H = 0; t = $[P + H++], i.head && t && i.length < 65536 && (i.head.comment += String.fromCharCode(t)), t && H < M; )
|
|
2008
|
-
;
|
|
2009
|
-
if (512 & i.flags && (i.check = n(i.check, $, H, P)), M -= H, P += H, t)
|
|
2010
|
-
break t;
|
|
2011
|
-
} else
|
|
2012
|
-
i.head && (i.head.comment = null);
|
|
2013
|
-
i.mode = 9;
|
|
2014
|
-
case 9:
|
|
2015
|
-
if (512 & i.flags) {
|
|
2016
|
-
for (; T < 16; ) {
|
|
2017
|
-
if (M === 0)
|
|
2018
|
-
break t;
|
|
2019
|
-
M--, O += $[P++] << T, T += 8;
|
|
2020
|
-
}
|
|
2021
|
-
if (O !== (65535 & i.check)) {
|
|
2022
|
-
b.msg = "header crc mismatch", i.mode = 30;
|
|
2023
|
-
break;
|
|
2024
|
-
}
|
|
2025
|
-
T = O = 0;
|
|
2026
|
-
}
|
|
2027
|
-
i.head && (i.head.hcrc = i.flags >> 9 & 1, i.head.done = !0), b.adler = i.check = 0, i.mode = 12;
|
|
2028
|
-
break;
|
|
2029
|
-
case 10:
|
|
2030
|
-
for (; T < 32; ) {
|
|
2031
|
-
if (M === 0)
|
|
2032
|
-
break t;
|
|
2033
|
-
M--, O += $[P++] << T, T += 8;
|
|
2034
|
-
}
|
|
2035
|
-
b.adler = i.check = c(O), T = O = 0, i.mode = 11;
|
|
2036
|
-
case 11:
|
|
2037
|
-
if (i.havedict === 0)
|
|
2038
|
-
return b.next_out = tt, b.avail_out = X, b.next_in = P, b.avail_in = M, i.hold = O, i.bits = T, 2;
|
|
2039
|
-
b.adler = i.check = 1, i.mode = 12;
|
|
2040
|
-
case 12:
|
|
2041
|
-
if (D === 5 || D === 6)
|
|
2042
|
-
break t;
|
|
2043
|
-
case 13:
|
|
2044
|
-
if (i.last) {
|
|
2045
|
-
O >>>= 7 & T, T -= 7 & T, i.mode = 27;
|
|
2046
|
-
break;
|
|
2047
|
-
}
|
|
2048
|
-
for (; T < 3; ) {
|
|
2049
|
-
if (M === 0)
|
|
2050
|
-
break t;
|
|
2051
|
-
M--, O += $[P++] << T, T += 8;
|
|
2052
|
-
}
|
|
2053
|
-
switch (i.last = 1 & O, T -= 1, 3 & (O >>>= 1)) {
|
|
2054
|
-
case 0:
|
|
2055
|
-
i.mode = 14;
|
|
2056
|
-
break;
|
|
2057
|
-
case 1:
|
|
2058
|
-
if (V(i), i.mode = 20, D !== 6)
|
|
2059
|
-
break;
|
|
2060
|
-
O >>>= 2, T -= 2;
|
|
2061
|
-
break t;
|
|
2062
|
-
case 2:
|
|
2063
|
-
i.mode = 17;
|
|
2064
|
-
break;
|
|
2065
|
-
case 3:
|
|
2066
|
-
b.msg = "invalid block type", i.mode = 30;
|
|
2067
|
-
}
|
|
2068
|
-
O >>>= 2, T -= 2;
|
|
2069
|
-
break;
|
|
2070
|
-
case 14:
|
|
2071
|
-
for (O >>>= 7 & T, T -= 7 & T; T < 32; ) {
|
|
2072
|
-
if (M === 0)
|
|
2073
|
-
break t;
|
|
2074
|
-
M--, O += $[P++] << T, T += 8;
|
|
2075
|
-
}
|
|
2076
|
-
if ((65535 & O) != (O >>> 16 ^ 65535)) {
|
|
2077
|
-
b.msg = "invalid stored block lengths", i.mode = 30;
|
|
2078
|
-
break;
|
|
2079
|
-
}
|
|
2080
|
-
if (i.length = 65535 & O, T = O = 0, i.mode = 15, D === 6)
|
|
2081
|
-
break t;
|
|
2082
|
-
case 15:
|
|
2083
|
-
i.mode = 16;
|
|
2084
|
-
case 16:
|
|
2085
|
-
if (H = i.length) {
|
|
2086
|
-
if (M < H && (H = M), X < H && (H = X), H === 0)
|
|
2087
|
-
break t;
|
|
2088
|
-
a.arraySet(J, $, P, H, tt), M -= H, P += H, X -= H, tt += H, i.length -= H;
|
|
2089
|
-
break;
|
|
2090
|
-
}
|
|
2091
|
-
i.mode = 12;
|
|
2092
|
-
break;
|
|
2093
|
-
case 17:
|
|
2094
|
-
for (; T < 14; ) {
|
|
2095
|
-
if (M === 0)
|
|
2096
|
-
break t;
|
|
2097
|
-
M--, O += $[P++] << T, T += 8;
|
|
2098
|
-
}
|
|
2099
|
-
if (i.nlen = 257 + (31 & O), O >>>= 5, T -= 5, i.ndist = 1 + (31 & O), O >>>= 5, T -= 5, i.ncode = 4 + (15 & O), O >>>= 4, T -= 4, 286 < i.nlen || 30 < i.ndist) {
|
|
2100
|
-
b.msg = "too many length or distance symbols", i.mode = 30;
|
|
2101
|
-
break;
|
|
2102
|
-
}
|
|
2103
|
-
i.have = 0, i.mode = 18;
|
|
2104
|
-
case 18:
|
|
2105
|
-
for (; i.have < i.ncode; ) {
|
|
2106
|
-
for (; T < 3; ) {
|
|
2107
|
-
if (M === 0)
|
|
2108
|
-
break t;
|
|
2109
|
-
M--, O += $[P++] << T, T += 8;
|
|
2110
|
-
}
|
|
2111
|
-
i.lens[L[i.have++]] = 7 & O, O >>>= 3, T -= 3;
|
|
2112
|
-
}
|
|
2113
|
-
for (; i.have < 19; )
|
|
2114
|
-
i.lens[L[i.have++]] = 0;
|
|
2115
|
-
if (i.lencode = i.lendyn, i.lenbits = 7, A = { bits: i.lenbits }, F = w(0, i.lens, 0, 19, i.lencode, 0, i.work, A), i.lenbits = A.bits, F) {
|
|
2116
|
-
b.msg = "invalid code lengths set", i.mode = 30;
|
|
2117
|
-
break;
|
|
2118
|
-
}
|
|
2119
|
-
i.have = 0, i.mode = 19;
|
|
2120
|
-
case 19:
|
|
2121
|
-
for (; i.have < i.nlen + i.ndist; ) {
|
|
2122
|
-
for (; rt = (d = i.lencode[O & (1 << i.lenbits) - 1]) >>> 16 & 255, lt = 65535 & d, !((et = d >>> 24) <= T); ) {
|
|
2123
|
-
if (M === 0)
|
|
2124
|
-
break t;
|
|
2125
|
-
M--, O += $[P++] << T, T += 8;
|
|
2126
|
-
}
|
|
2127
|
-
if (lt < 16)
|
|
2128
|
-
O >>>= et, T -= et, i.lens[i.have++] = lt;
|
|
2129
|
-
else {
|
|
2130
|
-
if (lt === 16) {
|
|
2131
|
-
for (p = et + 2; T < p; ) {
|
|
2132
|
-
if (M === 0)
|
|
2133
|
-
break t;
|
|
2134
|
-
M--, O += $[P++] << T, T += 8;
|
|
2135
|
-
}
|
|
2136
|
-
if (O >>>= et, T -= et, i.have === 0) {
|
|
2137
|
-
b.msg = "invalid bit length repeat", i.mode = 30;
|
|
2138
|
-
break;
|
|
2139
|
-
}
|
|
2140
|
-
t = i.lens[i.have - 1], H = 3 + (3 & O), O >>>= 2, T -= 2;
|
|
2141
|
-
} else if (lt === 17) {
|
|
2142
|
-
for (p = et + 3; T < p; ) {
|
|
2143
|
-
if (M === 0)
|
|
2144
|
-
break t;
|
|
2145
|
-
M--, O += $[P++] << T, T += 8;
|
|
2146
|
-
}
|
|
2147
|
-
T -= et, t = 0, H = 3 + (7 & (O >>>= et)), O >>>= 3, T -= 3;
|
|
2148
|
-
} else {
|
|
2149
|
-
for (p = et + 7; T < p; ) {
|
|
2150
|
-
if (M === 0)
|
|
2151
|
-
break t;
|
|
2152
|
-
M--, O += $[P++] << T, T += 8;
|
|
2153
|
-
}
|
|
2154
|
-
T -= et, t = 0, H = 11 + (127 & (O >>>= et)), O >>>= 7, T -= 7;
|
|
2155
|
-
}
|
|
2156
|
-
if (i.have + H > i.nlen + i.ndist) {
|
|
2157
|
-
b.msg = "invalid bit length repeat", i.mode = 30;
|
|
2158
|
-
break;
|
|
2159
|
-
}
|
|
2160
|
-
for (; H--; )
|
|
2161
|
-
i.lens[i.have++] = t;
|
|
2162
|
-
}
|
|
2163
|
-
}
|
|
2164
|
-
if (i.mode === 30)
|
|
2165
|
-
break;
|
|
2166
|
-
if (i.lens[256] === 0) {
|
|
2167
|
-
b.msg = "invalid code -- missing end-of-block", i.mode = 30;
|
|
2168
|
-
break;
|
|
2169
|
-
}
|
|
2170
|
-
if (i.lenbits = 9, A = { bits: i.lenbits }, F = w(x, i.lens, 0, i.nlen, i.lencode, 0, i.work, A), i.lenbits = A.bits, F) {
|
|
2171
|
-
b.msg = "invalid literal/lengths set", i.mode = 30;
|
|
2172
|
-
break;
|
|
2173
|
-
}
|
|
2174
|
-
if (i.distbits = 6, i.distcode = i.distdyn, A = { bits: i.distbits }, F = w(v, i.lens, i.nlen, i.ndist, i.distcode, 0, i.work, A), i.distbits = A.bits, F) {
|
|
2175
|
-
b.msg = "invalid distances set", i.mode = 30;
|
|
2176
|
-
break;
|
|
2177
|
-
}
|
|
2178
|
-
if (i.mode = 20, D === 6)
|
|
2179
|
-
break t;
|
|
2180
|
-
case 20:
|
|
2181
|
-
i.mode = 21;
|
|
2182
|
-
case 21:
|
|
2183
|
-
if (6 <= M && 258 <= X) {
|
|
2184
|
-
b.next_out = tt, b.avail_out = X, b.next_in = P, b.avail_in = M, i.hold = O, i.bits = T, h(b, K), tt = b.next_out, J = b.output, X = b.avail_out, P = b.next_in, $ = b.input, M = b.avail_in, O = i.hold, T = i.bits, i.mode === 12 && (i.back = -1);
|
|
2185
|
-
break;
|
|
2186
|
-
}
|
|
2187
|
-
for (i.back = 0; rt = (d = i.lencode[O & (1 << i.lenbits) - 1]) >>> 16 & 255, lt = 65535 & d, !((et = d >>> 24) <= T); ) {
|
|
2188
|
-
if (M === 0)
|
|
2189
|
-
break t;
|
|
2190
|
-
M--, O += $[P++] << T, T += 8;
|
|
2191
|
-
}
|
|
2192
|
-
if (rt && (240 & rt) == 0) {
|
|
2193
|
-
for (at = et, ft = rt, ht = lt; rt = (d = i.lencode[ht + ((O & (1 << at + ft) - 1) >> at)]) >>> 16 & 255, lt = 65535 & d, !(at + (et = d >>> 24) <= T); ) {
|
|
2194
|
-
if (M === 0)
|
|
2195
|
-
break t;
|
|
2196
|
-
M--, O += $[P++] << T, T += 8;
|
|
2197
|
-
}
|
|
2198
|
-
O >>>= at, T -= at, i.back += at;
|
|
2199
|
-
}
|
|
2200
|
-
if (O >>>= et, T -= et, i.back += et, i.length = lt, rt === 0) {
|
|
2201
|
-
i.mode = 26;
|
|
2202
|
-
break;
|
|
2203
|
-
}
|
|
2204
|
-
if (32 & rt) {
|
|
2205
|
-
i.back = -1, i.mode = 12;
|
|
2206
|
-
break;
|
|
2207
|
-
}
|
|
2208
|
-
if (64 & rt) {
|
|
2209
|
-
b.msg = "invalid literal/length code", i.mode = 30;
|
|
2210
|
-
break;
|
|
2211
|
-
}
|
|
2212
|
-
i.extra = 15 & rt, i.mode = 22;
|
|
2213
|
-
case 22:
|
|
2214
|
-
if (i.extra) {
|
|
2215
|
-
for (p = i.extra; T < p; ) {
|
|
2216
|
-
if (M === 0)
|
|
2217
|
-
break t;
|
|
2218
|
-
M--, O += $[P++] << T, T += 8;
|
|
2219
|
-
}
|
|
2220
|
-
i.length += O & (1 << i.extra) - 1, O >>>= i.extra, T -= i.extra, i.back += i.extra;
|
|
2221
|
-
}
|
|
2222
|
-
i.was = i.length, i.mode = 23;
|
|
2223
|
-
case 23:
|
|
2224
|
-
for (; rt = (d = i.distcode[O & (1 << i.distbits) - 1]) >>> 16 & 255, lt = 65535 & d, !((et = d >>> 24) <= T); ) {
|
|
2225
|
-
if (M === 0)
|
|
2226
|
-
break t;
|
|
2227
|
-
M--, O += $[P++] << T, T += 8;
|
|
2228
|
-
}
|
|
2229
|
-
if ((240 & rt) == 0) {
|
|
2230
|
-
for (at = et, ft = rt, ht = lt; rt = (d = i.distcode[ht + ((O & (1 << at + ft) - 1) >> at)]) >>> 16 & 255, lt = 65535 & d, !(at + (et = d >>> 24) <= T); ) {
|
|
2231
|
-
if (M === 0)
|
|
2232
|
-
break t;
|
|
2233
|
-
M--, O += $[P++] << T, T += 8;
|
|
2234
|
-
}
|
|
2235
|
-
O >>>= at, T -= at, i.back += at;
|
|
2236
|
-
}
|
|
2237
|
-
if (O >>>= et, T -= et, i.back += et, 64 & rt) {
|
|
2238
|
-
b.msg = "invalid distance code", i.mode = 30;
|
|
2239
|
-
break;
|
|
2240
|
-
}
|
|
2241
|
-
i.offset = lt, i.extra = 15 & rt, i.mode = 24;
|
|
2242
|
-
case 24:
|
|
2243
|
-
if (i.extra) {
|
|
2244
|
-
for (p = i.extra; T < p; ) {
|
|
2245
|
-
if (M === 0)
|
|
2246
|
-
break t;
|
|
2247
|
-
M--, O += $[P++] << T, T += 8;
|
|
2248
|
-
}
|
|
2249
|
-
i.offset += O & (1 << i.extra) - 1, O >>>= i.extra, T -= i.extra, i.back += i.extra;
|
|
2250
|
-
}
|
|
2251
|
-
if (i.offset > i.dmax) {
|
|
2252
|
-
b.msg = "invalid distance too far back", i.mode = 30;
|
|
2253
|
-
break;
|
|
2254
|
-
}
|
|
2255
|
-
i.mode = 25;
|
|
2256
|
-
case 25:
|
|
2257
|
-
if (X === 0)
|
|
2258
|
-
break t;
|
|
2259
|
-
if (H = K - X, i.offset > H) {
|
|
2260
|
-
if ((H = i.offset - H) > i.whave && i.sane) {
|
|
2261
|
-
b.msg = "invalid distance too far back", i.mode = 30;
|
|
2262
|
-
break;
|
|
2263
|
-
}
|
|
2264
|
-
st = H > i.wnext ? (H -= i.wnext, i.wsize - H) : i.wnext - H, H > i.length && (H = i.length), ct = i.window;
|
|
2265
|
-
} else
|
|
2266
|
-
ct = J, st = tt - i.offset, H = i.length;
|
|
2267
|
-
for (X < H && (H = X), X -= H, i.length -= H; J[tt++] = ct[st++], --H; )
|
|
2268
|
-
;
|
|
2269
|
-
i.length === 0 && (i.mode = 21);
|
|
2270
|
-
break;
|
|
2271
|
-
case 26:
|
|
2272
|
-
if (X === 0)
|
|
2273
|
-
break t;
|
|
2274
|
-
J[tt++] = i.length, X--, i.mode = 21;
|
|
2275
|
-
break;
|
|
2276
|
-
case 27:
|
|
2277
|
-
if (i.wrap) {
|
|
2278
|
-
for (; T < 32; ) {
|
|
2279
|
-
if (M === 0)
|
|
2280
|
-
break t;
|
|
2281
|
-
M--, O |= $[P++] << T, T += 8;
|
|
2282
|
-
}
|
|
2283
|
-
if (K -= X, b.total_out += K, i.total += K, K && (b.adler = i.check = i.flags ? n(i.check, J, K, tt - K) : l(i.check, J, K, tt - K)), K = X, (i.flags ? O : c(O)) !== i.check) {
|
|
2284
|
-
b.msg = "incorrect data check", i.mode = 30;
|
|
2285
|
-
break;
|
|
2286
|
-
}
|
|
2287
|
-
T = O = 0;
|
|
2288
|
-
}
|
|
2289
|
-
i.mode = 28;
|
|
2290
|
-
case 28:
|
|
2291
|
-
if (i.wrap && i.flags) {
|
|
2292
|
-
for (; T < 32; ) {
|
|
2293
|
-
if (M === 0)
|
|
2294
|
-
break t;
|
|
2295
|
-
M--, O += $[P++] << T, T += 8;
|
|
2296
|
-
}
|
|
2297
|
-
if (O !== (4294967295 & i.total)) {
|
|
2298
|
-
b.msg = "incorrect length check", i.mode = 30;
|
|
2299
|
-
break;
|
|
2300
|
-
}
|
|
2301
|
-
T = O = 0;
|
|
2302
|
-
}
|
|
2303
|
-
i.mode = 29;
|
|
2304
|
-
case 29:
|
|
2305
|
-
F = 1;
|
|
2306
|
-
break t;
|
|
2307
|
-
case 30:
|
|
2308
|
-
F = -3;
|
|
2309
|
-
break t;
|
|
2310
|
-
case 31:
|
|
2311
|
-
return -4;
|
|
2312
|
-
case 32:
|
|
2313
|
-
default:
|
|
2314
|
-
return o;
|
|
2315
|
-
}
|
|
2316
|
-
return b.next_out = tt, b.avail_out = X, b.next_in = P, b.avail_in = M, i.hold = O, i.bits = T, (i.wsize || K !== b.avail_out && i.mode < 30 && (i.mode < 27 || D !== 4)) && Y(b, b.output, b.next_out, K - b.avail_out) ? (i.mode = 31, -4) : (Q -= b.avail_in, K -= b.avail_out, b.total_in += Q, b.total_out += K, i.total += K, i.wrap && K && (b.adler = i.check = i.flags ? n(i.check, J, K, b.next_out - K) : l(i.check, J, K, b.next_out - K)), b.data_type = i.bits + (i.last ? 64 : 0) + (i.mode === 12 ? 128 : 0) + (i.mode === 20 || i.mode === 15 ? 256 : 0), (Q == 0 && K === 0 || D === 4) && F === k && (F = -5), F);
|
|
2317
|
-
}, m.inflateEnd = function(b) {
|
|
2318
|
-
if (!b || !b.state)
|
|
2319
|
-
return o;
|
|
2320
|
-
var D = b.state;
|
|
2321
|
-
return D.window && (D.window = null), b.state = null, k;
|
|
2322
|
-
}, m.inflateGetHeader = function(b, D) {
|
|
2323
|
-
var i;
|
|
2324
|
-
return b && b.state ? (2 & (i = b.state).wrap) == 0 ? o : ((i.head = D).done = !1, k) : o;
|
|
2325
|
-
}, m.inflateSetDictionary = function(b, D) {
|
|
2326
|
-
var i, $ = D.length;
|
|
2327
|
-
return b && b.state ? (i = b.state).wrap !== 0 && i.mode !== 11 ? o : i.mode === 11 && l(1, D, $, 0) !== i.check ? -3 : Y(b, D, $, $) ? (i.mode = 31, -4) : (i.havedict = 1, k) : o;
|
|
2328
|
-
}, m.inflateInfo = "pako inflate (from Nodeca project)";
|
|
2329
|
-
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, y, m) {
|
|
2330
|
-
var a = e("../utils/common"), l = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], n = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], h = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], w = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
2331
|
-
y.exports = function(x, v, k, o, _, s, u, c) {
|
|
2332
|
-
var g, S, z, E, N, R, U, B, V, Y = c.bits, b = 0, D = 0, i = 0, $ = 0, J = 0, P = 0, tt = 0, M = 0, X = 0, O = 0, T = null, Q = 0, K = new a.Buf16(16), H = new a.Buf16(16), st = null, ct = 0;
|
|
2333
|
-
for (b = 0; b <= 15; b++)
|
|
2334
|
-
K[b] = 0;
|
|
2335
|
-
for (D = 0; D < o; D++)
|
|
2336
|
-
K[v[k + D]]++;
|
|
2337
|
-
for (J = Y, $ = 15; 1 <= $ && K[$] === 0; $--)
|
|
2338
|
-
;
|
|
2339
|
-
if ($ < J && (J = $), $ === 0)
|
|
2340
|
-
return _[s++] = 20971520, _[s++] = 20971520, c.bits = 1, 0;
|
|
2341
|
-
for (i = 1; i < $ && K[i] === 0; i++)
|
|
2342
|
-
;
|
|
2343
|
-
for (J < i && (J = i), b = M = 1; b <= 15; b++)
|
|
2344
|
-
if (M <<= 1, (M -= K[b]) < 0)
|
|
2345
|
-
return -1;
|
|
2346
|
-
if (0 < M && (x === 0 || $ !== 1))
|
|
2347
|
-
return -1;
|
|
2348
|
-
for (H[1] = 0, b = 1; b < 15; b++)
|
|
2349
|
-
H[b + 1] = H[b] + K[b];
|
|
2350
|
-
for (D = 0; D < o; D++)
|
|
2351
|
-
v[k + D] !== 0 && (u[H[v[k + D]]++] = D);
|
|
2352
|
-
if (R = x === 0 ? (T = st = u, 19) : x === 1 ? (T = l, Q -= 257, st = n, ct -= 257, 256) : (T = h, st = w, -1), b = i, N = s, tt = D = O = 0, z = -1, E = (X = 1 << (P = J)) - 1, x === 1 && 852 < X || x === 2 && 592 < X)
|
|
2353
|
-
return 1;
|
|
2354
|
-
for (; ; ) {
|
|
2355
|
-
for (U = b - tt, V = u[D] < R ? (B = 0, u[D]) : u[D] > R ? (B = st[ct + u[D]], T[Q + u[D]]) : (B = 96, 0), g = 1 << b - tt, i = S = 1 << P; _[N + (O >> tt) + (S -= g)] = U << 24 | B << 16 | V | 0, S !== 0; )
|
|
2356
|
-
;
|
|
2357
|
-
for (g = 1 << b - 1; O & g; )
|
|
2358
|
-
g >>= 1;
|
|
2359
|
-
if (g !== 0 ? (O &= g - 1, O += g) : O = 0, D++, --K[b] == 0) {
|
|
2360
|
-
if (b === $)
|
|
2361
|
-
break;
|
|
2362
|
-
b = v[k + u[D]];
|
|
2363
|
-
}
|
|
2364
|
-
if (J < b && (O & E) !== z) {
|
|
2365
|
-
for (tt === 0 && (tt = J), N += i, M = 1 << (P = b - tt); P + tt < $ && !((M -= K[P + tt]) <= 0); )
|
|
2366
|
-
P++, M <<= 1;
|
|
2367
|
-
if (X += 1 << P, x === 1 && 852 < X || x === 2 && 592 < X)
|
|
2368
|
-
return 1;
|
|
2369
|
-
_[z = O & E] = J << 24 | P << 16 | N - s | 0;
|
|
2370
|
-
}
|
|
2371
|
-
}
|
|
2372
|
-
return O !== 0 && (_[N + O] = b - tt << 24 | 64 << 16 | 0), c.bits = J, 0;
|
|
2373
|
-
};
|
|
2374
|
-
}, { "../utils/common": 41 }], 51: [function(e, y, m) {
|
|
2375
|
-
y.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
2376
|
-
}, {}], 52: [function(e, y, m) {
|
|
2377
|
-
var a = e("../utils/common"), l = 0, n = 1;
|
|
2378
|
-
function h(d) {
|
|
2379
|
-
for (var C = d.length; 0 <= --C; )
|
|
2380
|
-
d[C] = 0;
|
|
2381
|
-
}
|
|
2382
|
-
var w = 0, x = 29, v = 256, k = v + 1 + x, o = 30, _ = 19, s = 2 * k + 1, u = 15, c = 16, g = 7, S = 256, z = 16, E = 17, N = 18, R = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], U = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], B = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], V = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Y = new Array(2 * (k + 2));
|
|
2383
|
-
h(Y);
|
|
2384
|
-
var b = new Array(2 * o);
|
|
2385
|
-
h(b);
|
|
2386
|
-
var D = new Array(512);
|
|
2387
|
-
h(D);
|
|
2388
|
-
var i = new Array(256);
|
|
2389
|
-
h(i);
|
|
2390
|
-
var $ = new Array(x);
|
|
2391
|
-
h($);
|
|
2392
|
-
var J, P, tt, M = new Array(o);
|
|
2393
|
-
function X(d, C, L, j, I) {
|
|
2394
|
-
this.static_tree = d, this.extra_bits = C, this.extra_base = L, this.elems = j, this.max_length = I, this.has_stree = d && d.length;
|
|
2395
|
-
}
|
|
2396
|
-
function O(d, C) {
|
|
2397
|
-
this.dyn_tree = d, this.max_code = 0, this.stat_desc = C;
|
|
2398
|
-
}
|
|
2399
|
-
function T(d) {
|
|
2400
|
-
return d < 256 ? D[d] : D[256 + (d >>> 7)];
|
|
2401
|
-
}
|
|
2402
|
-
function Q(d, C) {
|
|
2403
|
-
d.pending_buf[d.pending++] = 255 & C, d.pending_buf[d.pending++] = C >>> 8 & 255;
|
|
2404
|
-
}
|
|
2405
|
-
function K(d, C, L) {
|
|
2406
|
-
d.bi_valid > c - L ? (d.bi_buf |= C << d.bi_valid & 65535, Q(d, d.bi_buf), d.bi_buf = C >> c - d.bi_valid, d.bi_valid += L - c) : (d.bi_buf |= C << d.bi_valid & 65535, d.bi_valid += L);
|
|
2407
|
-
}
|
|
2408
|
-
function H(d, C, L) {
|
|
2409
|
-
K(d, L[2 * C], L[2 * C + 1]);
|
|
2410
|
-
}
|
|
2411
|
-
function st(d, C) {
|
|
2412
|
-
for (var L = 0; L |= 1 & d, d >>>= 1, L <<= 1, 0 < --C; )
|
|
2413
|
-
;
|
|
2414
|
-
return L >>> 1;
|
|
2415
|
-
}
|
|
2416
|
-
function ct(d, C, L) {
|
|
2417
|
-
var j, I, Z = new Array(u + 1), G = 0;
|
|
2418
|
-
for (j = 1; j <= u; j++)
|
|
2419
|
-
Z[j] = G = G + L[j - 1] << 1;
|
|
2420
|
-
for (I = 0; I <= C; I++) {
|
|
2421
|
-
var W = d[2 * I + 1];
|
|
2422
|
-
W !== 0 && (d[2 * I] = st(Z[W]++, W));
|
|
2423
|
-
}
|
|
2424
|
-
}
|
|
2425
|
-
function et(d) {
|
|
2426
|
-
var C;
|
|
2427
|
-
for (C = 0; C < k; C++)
|
|
2428
|
-
d.dyn_ltree[2 * C] = 0;
|
|
2429
|
-
for (C = 0; C < o; C++)
|
|
2430
|
-
d.dyn_dtree[2 * C] = 0;
|
|
2431
|
-
for (C = 0; C < _; C++)
|
|
2432
|
-
d.bl_tree[2 * C] = 0;
|
|
2433
|
-
d.dyn_ltree[2 * S] = 1, d.opt_len = d.static_len = 0, d.last_lit = d.matches = 0;
|
|
2434
|
-
}
|
|
2435
|
-
function rt(d) {
|
|
2436
|
-
8 < d.bi_valid ? Q(d, d.bi_buf) : 0 < d.bi_valid && (d.pending_buf[d.pending++] = d.bi_buf), d.bi_buf = 0, d.bi_valid = 0;
|
|
2437
|
-
}
|
|
2438
|
-
function lt(d, C, L, j) {
|
|
2439
|
-
var I = 2 * C, Z = 2 * L;
|
|
2440
|
-
return d[I] < d[Z] || d[I] === d[Z] && j[C] <= j[L];
|
|
2441
|
-
}
|
|
2442
|
-
function at(d, C, L) {
|
|
2443
|
-
for (var j = d.heap[L], I = L << 1; I <= d.heap_len && (I < d.heap_len && lt(C, d.heap[I + 1], d.heap[I], d.depth) && I++, !lt(C, j, d.heap[I], d.depth)); )
|
|
2444
|
-
d.heap[L] = d.heap[I], L = I, I <<= 1;
|
|
2445
|
-
d.heap[L] = j;
|
|
2446
|
-
}
|
|
2447
|
-
function ft(d, C, L) {
|
|
2448
|
-
var j, I, Z, G, W = 0;
|
|
2449
|
-
if (d.last_lit !== 0)
|
|
2450
|
-
for (; j = d.pending_buf[d.d_buf + 2 * W] << 8 | d.pending_buf[d.d_buf + 2 * W + 1], I = d.pending_buf[d.l_buf + W], W++, j === 0 ? H(d, I, C) : (H(d, (Z = i[I]) + v + 1, C), (G = R[Z]) !== 0 && K(d, I -= $[Z], G), H(d, Z = T(--j), L), (G = U[Z]) !== 0 && K(d, j -= M[Z], G)), W < d.last_lit; )
|
|
2451
|
-
;
|
|
2452
|
-
H(d, S, C);
|
|
2453
|
-
}
|
|
2454
|
-
function ht(d, C) {
|
|
2455
|
-
var L, j, I, Z = C.dyn_tree, G = C.stat_desc.static_tree, W = C.stat_desc.has_stree, q = C.stat_desc.elems, nt = -1;
|
|
2456
|
-
for (d.heap_len = 0, d.heap_max = s, L = 0; L < q; L++)
|
|
2457
|
-
Z[2 * L] !== 0 ? (d.heap[++d.heap_len] = nt = L, d.depth[L] = 0) : Z[2 * L + 1] = 0;
|
|
2458
|
-
for (; d.heap_len < 2; )
|
|
2459
|
-
Z[2 * (I = d.heap[++d.heap_len] = nt < 2 ? ++nt : 0)] = 1, d.depth[I] = 0, d.opt_len--, W && (d.static_len -= G[2 * I + 1]);
|
|
2460
|
-
for (C.max_code = nt, L = d.heap_len >> 1; 1 <= L; L--)
|
|
2461
|
-
at(d, Z, L);
|
|
2462
|
-
for (I = q; L = d.heap[1], d.heap[1] = d.heap[d.heap_len--], at(d, Z, 1), j = d.heap[1], d.heap[--d.heap_max] = L, d.heap[--d.heap_max] = j, Z[2 * I] = Z[2 * L] + Z[2 * j], d.depth[I] = (d.depth[L] >= d.depth[j] ? d.depth[L] : d.depth[j]) + 1, Z[2 * L + 1] = Z[2 * j + 1] = I, d.heap[1] = I++, at(d, Z, 1), 2 <= d.heap_len; )
|
|
2463
|
-
;
|
|
2464
|
-
d.heap[--d.heap_max] = d.heap[1], function(it, dt) {
|
|
2465
|
-
var gt, pt, yt, ot, wt, Ct, mt = dt.dyn_tree, Et = dt.max_code, Pt = dt.stat_desc.static_tree, Ut = dt.stat_desc.has_stree, Mt = dt.stat_desc.extra_bits, zt = dt.stat_desc.extra_base, vt = dt.stat_desc.max_length, kt = 0;
|
|
2466
|
-
for (ot = 0; ot <= u; ot++)
|
|
2467
|
-
it.bl_count[ot] = 0;
|
|
2468
|
-
for (mt[2 * it.heap[it.heap_max] + 1] = 0, gt = it.heap_max + 1; gt < s; gt++)
|
|
2469
|
-
vt < (ot = mt[2 * mt[2 * (pt = it.heap[gt]) + 1] + 1] + 1) && (ot = vt, kt++), mt[2 * pt + 1] = ot, Et < pt || (it.bl_count[ot]++, wt = 0, zt <= pt && (wt = Mt[pt - zt]), Ct = mt[2 * pt], it.opt_len += Ct * (ot + wt), Ut && (it.static_len += Ct * (Pt[2 * pt + 1] + wt)));
|
|
2470
|
-
if (kt !== 0) {
|
|
2471
|
-
do {
|
|
2472
|
-
for (ot = vt - 1; it.bl_count[ot] === 0; )
|
|
2473
|
-
ot--;
|
|
2474
|
-
it.bl_count[ot]--, it.bl_count[ot + 1] += 2, it.bl_count[vt]--, kt -= 2;
|
|
2475
|
-
} while (0 < kt);
|
|
2476
|
-
for (ot = vt; ot !== 0; ot--)
|
|
2477
|
-
for (pt = it.bl_count[ot]; pt !== 0; )
|
|
2478
|
-
Et < (yt = it.heap[--gt]) || (mt[2 * yt + 1] !== ot && (it.opt_len += (ot - mt[2 * yt + 1]) * mt[2 * yt], mt[2 * yt + 1] = ot), pt--);
|
|
2479
|
-
}
|
|
2480
|
-
}(d, C), ct(Z, nt, d.bl_count);
|
|
2481
|
-
}
|
|
2482
|
-
function t(d, C, L) {
|
|
2483
|
-
var j, I, Z = -1, G = C[1], W = 0, q = 7, nt = 4;
|
|
2484
|
-
for (G === 0 && (q = 138, nt = 3), C[2 * (L + 1) + 1] = 65535, j = 0; j <= L; j++)
|
|
2485
|
-
I = G, G = C[2 * (j + 1) + 1], ++W < q && I === G || (W < nt ? d.bl_tree[2 * I] += W : I !== 0 ? (I !== Z && d.bl_tree[2 * I]++, d.bl_tree[2 * z]++) : W <= 10 ? d.bl_tree[2 * E]++ : d.bl_tree[2 * N]++, Z = I, nt = (W = 0) === G ? (q = 138, 3) : I === G ? (q = 6, 3) : (q = 7, 4));
|
|
2486
|
-
}
|
|
2487
|
-
function F(d, C, L) {
|
|
2488
|
-
var j, I, Z = -1, G = C[1], W = 0, q = 7, nt = 4;
|
|
2489
|
-
for (G === 0 && (q = 138, nt = 3), j = 0; j <= L; j++)
|
|
2490
|
-
if (I = G, G = C[2 * (j + 1) + 1], !(++W < q && I === G)) {
|
|
2491
|
-
if (W < nt)
|
|
2492
|
-
for (; H(d, I, d.bl_tree), --W != 0; )
|
|
2493
|
-
;
|
|
2494
|
-
else
|
|
2495
|
-
I !== 0 ? (I !== Z && (H(d, I, d.bl_tree), W--), H(d, z, d.bl_tree), K(d, W - 3, 2)) : W <= 10 ? (H(d, E, d.bl_tree), K(d, W - 3, 3)) : (H(d, N, d.bl_tree), K(d, W - 11, 7));
|
|
2496
|
-
Z = I, nt = (W = 0) === G ? (q = 138, 3) : I === G ? (q = 6, 3) : (q = 7, 4);
|
|
2497
|
-
}
|
|
2498
|
-
}
|
|
2499
|
-
h(M);
|
|
2500
|
-
var A = !1;
|
|
2501
|
-
function p(d, C, L, j) {
|
|
2502
|
-
K(d, (w << 1) + (j ? 1 : 0), 3), function(I, Z, G, W) {
|
|
2503
|
-
rt(I), W && (Q(I, G), Q(I, ~G)), a.arraySet(I.pending_buf, I.window, Z, G, I.pending), I.pending += G;
|
|
2504
|
-
}(d, C, L, !0);
|
|
2505
|
-
}
|
|
2506
|
-
m._tr_init = function(d) {
|
|
2507
|
-
A || (function() {
|
|
2508
|
-
var C, L, j, I, Z, G = new Array(u + 1);
|
|
2509
|
-
for (I = j = 0; I < x - 1; I++)
|
|
2510
|
-
for ($[I] = j, C = 0; C < 1 << R[I]; C++)
|
|
2511
|
-
i[j++] = I;
|
|
2512
|
-
for (i[j - 1] = I, I = Z = 0; I < 16; I++)
|
|
2513
|
-
for (M[I] = Z, C = 0; C < 1 << U[I]; C++)
|
|
2514
|
-
D[Z++] = I;
|
|
2515
|
-
for (Z >>= 7; I < o; I++)
|
|
2516
|
-
for (M[I] = Z << 7, C = 0; C < 1 << U[I] - 7; C++)
|
|
2517
|
-
D[256 + Z++] = I;
|
|
2518
|
-
for (L = 0; L <= u; L++)
|
|
2519
|
-
G[L] = 0;
|
|
2520
|
-
for (C = 0; C <= 143; )
|
|
2521
|
-
Y[2 * C + 1] = 8, C++, G[8]++;
|
|
2522
|
-
for (; C <= 255; )
|
|
2523
|
-
Y[2 * C + 1] = 9, C++, G[9]++;
|
|
2524
|
-
for (; C <= 279; )
|
|
2525
|
-
Y[2 * C + 1] = 7, C++, G[7]++;
|
|
2526
|
-
for (; C <= 287; )
|
|
2527
|
-
Y[2 * C + 1] = 8, C++, G[8]++;
|
|
2528
|
-
for (ct(Y, k + 1, G), C = 0; C < o; C++)
|
|
2529
|
-
b[2 * C + 1] = 5, b[2 * C] = st(C, 5);
|
|
2530
|
-
J = new X(Y, R, v + 1, k, u), P = new X(b, U, 0, o, u), tt = new X(new Array(0), B, 0, _, g);
|
|
2531
|
-
}(), A = !0), d.l_desc = new O(d.dyn_ltree, J), d.d_desc = new O(d.dyn_dtree, P), d.bl_desc = new O(d.bl_tree, tt), d.bi_buf = 0, d.bi_valid = 0, et(d);
|
|
2532
|
-
}, m._tr_stored_block = p, m._tr_flush_block = function(d, C, L, j) {
|
|
2533
|
-
var I, Z, G = 0;
|
|
2534
|
-
0 < d.level ? (d.strm.data_type === 2 && (d.strm.data_type = function(W) {
|
|
2535
|
-
var q, nt = 4093624447;
|
|
2536
|
-
for (q = 0; q <= 31; q++, nt >>>= 1)
|
|
2537
|
-
if (1 & nt && W.dyn_ltree[2 * q] !== 0)
|
|
2538
|
-
return l;
|
|
2539
|
-
if (W.dyn_ltree[18] !== 0 || W.dyn_ltree[20] !== 0 || W.dyn_ltree[26] !== 0)
|
|
2540
|
-
return n;
|
|
2541
|
-
for (q = 32; q < v; q++)
|
|
2542
|
-
if (W.dyn_ltree[2 * q] !== 0)
|
|
2543
|
-
return n;
|
|
2544
|
-
return l;
|
|
2545
|
-
}(d)), ht(d, d.l_desc), ht(d, d.d_desc), G = function(W) {
|
|
2546
|
-
var q;
|
|
2547
|
-
for (t(W, W.dyn_ltree, W.l_desc.max_code), t(W, W.dyn_dtree, W.d_desc.max_code), ht(W, W.bl_desc), q = _ - 1; 3 <= q && W.bl_tree[2 * V[q] + 1] === 0; q--)
|
|
2548
|
-
;
|
|
2549
|
-
return W.opt_len += 3 * (q + 1) + 5 + 5 + 4, q;
|
|
2550
|
-
}(d), I = d.opt_len + 3 + 7 >>> 3, (Z = d.static_len + 3 + 7 >>> 3) <= I && (I = Z)) : I = Z = L + 5, L + 4 <= I && C !== -1 ? p(d, C, L, j) : d.strategy === 4 || Z === I ? (K(d, 2 + (j ? 1 : 0), 3), ft(d, Y, b)) : (K(d, 4 + (j ? 1 : 0), 3), function(W, q, nt, it) {
|
|
2551
|
-
var dt;
|
|
2552
|
-
for (K(W, q - 257, 5), K(W, nt - 1, 5), K(W, it - 4, 4), dt = 0; dt < it; dt++)
|
|
2553
|
-
K(W, W.bl_tree[2 * V[dt] + 1], 3);
|
|
2554
|
-
F(W, W.dyn_ltree, q - 1), F(W, W.dyn_dtree, nt - 1);
|
|
2555
|
-
}(d, d.l_desc.max_code + 1, d.d_desc.max_code + 1, G + 1), ft(d, d.dyn_ltree, d.dyn_dtree)), et(d), j && rt(d);
|
|
2556
|
-
}, m._tr_tally = function(d, C, L) {
|
|
2557
|
-
return d.pending_buf[d.d_buf + 2 * d.last_lit] = C >>> 8 & 255, d.pending_buf[d.d_buf + 2 * d.last_lit + 1] = 255 & C, d.pending_buf[d.l_buf + d.last_lit] = 255 & L, d.last_lit++, C === 0 ? d.dyn_ltree[2 * L]++ : (d.matches++, C--, d.dyn_ltree[2 * (i[L] + v + 1)]++, d.dyn_dtree[2 * T(C)]++), d.last_lit === d.lit_bufsize - 1;
|
|
2558
|
-
}, m._tr_align = function(d) {
|
|
2559
|
-
K(d, 2, 3), H(d, S, Y), function(C) {
|
|
2560
|
-
C.bi_valid === 16 ? (Q(C, C.bi_buf), C.bi_buf = 0, C.bi_valid = 0) : 8 <= C.bi_valid && (C.pending_buf[C.pending++] = 255 & C.bi_buf, C.bi_buf >>= 8, C.bi_valid -= 8);
|
|
2561
|
-
}(d);
|
|
2562
|
-
};
|
|
2563
|
-
}, { "../utils/common": 41 }], 53: [function(e, y, m) {
|
|
2564
|
-
y.exports = function() {
|
|
2565
|
-
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;
|
|
2566
|
-
};
|
|
2567
|
-
}, {}], 54: [function(e, y, m) {
|
|
2568
|
-
(function(a) {
|
|
2569
|
-
(function(l, n) {
|
|
2570
|
-
if (!l.setImmediate) {
|
|
2571
|
-
var h, w, x, v, k = 1, o = {}, _ = !1, s = l.document, u = Object.getPrototypeOf && Object.getPrototypeOf(l);
|
|
2572
|
-
u = u && u.setTimeout ? u : l, h = {}.toString.call(l.process) === "[object process]" ? function(z) {
|
|
2573
|
-
process.nextTick(function() {
|
|
2574
|
-
g(z);
|
|
2575
|
-
});
|
|
2576
|
-
} : function() {
|
|
2577
|
-
if (l.postMessage && !l.importScripts) {
|
|
2578
|
-
var z = !0, E = l.onmessage;
|
|
2579
|
-
return l.onmessage = function() {
|
|
2580
|
-
z = !1;
|
|
2581
|
-
}, l.postMessage("", "*"), l.onmessage = E, z;
|
|
2582
|
-
}
|
|
2583
|
-
}() ? (v = "setImmediate$" + Math.random() + "$", l.addEventListener ? l.addEventListener("message", S, !1) : l.attachEvent("onmessage", S), function(z) {
|
|
2584
|
-
l.postMessage(v + z, "*");
|
|
2585
|
-
}) : l.MessageChannel ? ((x = new MessageChannel()).port1.onmessage = function(z) {
|
|
2586
|
-
g(z.data);
|
|
2587
|
-
}, function(z) {
|
|
2588
|
-
x.port2.postMessage(z);
|
|
2589
|
-
}) : s && "onreadystatechange" in s.createElement("script") ? (w = s.documentElement, function(z) {
|
|
2590
|
-
var E = s.createElement("script");
|
|
2591
|
-
E.onreadystatechange = function() {
|
|
2592
|
-
g(z), E.onreadystatechange = null, w.removeChild(E), E = null;
|
|
2593
|
-
}, w.appendChild(E);
|
|
2594
|
-
}) : function(z) {
|
|
2595
|
-
setTimeout(g, 0, z);
|
|
2596
|
-
}, u.setImmediate = function(z) {
|
|
2597
|
-
typeof z != "function" && (z = new Function("" + z));
|
|
2598
|
-
for (var E = new Array(arguments.length - 1), N = 0; N < E.length; N++)
|
|
2599
|
-
E[N] = arguments[N + 1];
|
|
2600
|
-
var R = { callback: z, args: E };
|
|
2601
|
-
return o[k] = R, h(k), k++;
|
|
2602
|
-
}, u.clearImmediate = c;
|
|
2603
|
-
}
|
|
2604
|
-
function c(z) {
|
|
2605
|
-
delete o[z];
|
|
2606
|
-
}
|
|
2607
|
-
function g(z) {
|
|
2608
|
-
if (_)
|
|
2609
|
-
setTimeout(g, 0, z);
|
|
2610
|
-
else {
|
|
2611
|
-
var E = o[z];
|
|
2612
|
-
if (E) {
|
|
2613
|
-
_ = !0;
|
|
2614
|
-
try {
|
|
2615
|
-
(function(N) {
|
|
2616
|
-
var R = N.callback, U = N.args;
|
|
2617
|
-
switch (U.length) {
|
|
2618
|
-
case 0:
|
|
2619
|
-
R();
|
|
2620
|
-
break;
|
|
2621
|
-
case 1:
|
|
2622
|
-
R(U[0]);
|
|
2623
|
-
break;
|
|
2624
|
-
case 2:
|
|
2625
|
-
R(U[0], U[1]);
|
|
2626
|
-
break;
|
|
2627
|
-
case 3:
|
|
2628
|
-
R(U[0], U[1], U[2]);
|
|
2629
|
-
break;
|
|
2630
|
-
default:
|
|
2631
|
-
R.apply(n, U);
|
|
2632
|
-
}
|
|
2633
|
-
})(E);
|
|
2634
|
-
} finally {
|
|
2635
|
-
c(z), _ = !1;
|
|
2636
|
-
}
|
|
2637
|
-
}
|
|
2638
|
-
}
|
|
2639
|
-
}
|
|
2640
|
-
function S(z) {
|
|
2641
|
-
z.source === l && typeof z.data == "string" && z.data.indexOf(v) === 0 && g(+z.data.slice(v.length));
|
|
2642
|
-
}
|
|
2643
|
-
})(typeof self > "u" ? a === void 0 ? this : a : self);
|
|
2644
|
-
}).call(this, typeof xt < "u" ? xt : typeof self < "u" ? self : typeof window < "u" ? window : {});
|
|
2645
|
-
}, {}] }, {}, [10])(10);
|
|
2646
|
-
});
|
|
2647
|
-
})(Rt);
|
|
2648
|
-
const Xt = Rt.exports;
|
|
2649
|
-
const Jt = {
|
|
2650
|
-
data() {
|
|
2651
|
-
return {
|
|
2652
|
-
value: 1,
|
|
2653
|
-
visible: !1,
|
|
2654
|
-
confirmLoading: !1,
|
|
2655
|
-
radioStyle: {
|
|
2656
|
-
display: "block",
|
|
2657
|
-
height: "60px",
|
|
2658
|
-
lineHeight: "30px",
|
|
2659
|
-
paddingTop: "10px"
|
|
2660
|
-
},
|
|
2661
|
-
sysViewButtons: [
|
|
2662
|
-
{
|
|
2663
|
-
displayName: "\u786E\u5B9A",
|
|
2664
|
-
functionName: "handleOk",
|
|
2665
|
-
show: !0,
|
|
2666
|
-
transKey: "gd.btn.confirm",
|
|
2667
|
-
icon: "el-icon-document-checked"
|
|
2668
|
-
}
|
|
2669
|
-
],
|
|
2670
|
-
fullscreen: !1,
|
|
2671
|
-
width: "600px"
|
|
2672
|
-
};
|
|
2673
|
-
},
|
|
2674
|
-
computed: {},
|
|
2675
|
-
methods: {
|
|
2676
|
-
toggleFullscreen() {
|
|
2677
|
-
this.fullscreen = !this.fullscreen;
|
|
2678
|
-
},
|
|
2679
|
-
closed() {
|
|
2680
|
-
this.fullscreen = !1, this.visible = !1;
|
|
2681
|
-
},
|
|
2682
|
-
onChange(f) {
|
|
2683
|
-
this.value = f;
|
|
2684
|
-
},
|
|
2685
|
-
open() {
|
|
2686
|
-
this.fullscreen = !1, this.value = 1, this.visible = !0;
|
|
2687
|
-
},
|
|
2688
|
-
handleOk(f) {
|
|
2689
|
-
this.$emit("ok", this.value), this.visible = !1;
|
|
2690
|
-
},
|
|
2691
|
-
handleCancel(f) {
|
|
2692
|
-
this.visible = !1;
|
|
2693
|
-
},
|
|
2694
|
-
doEvent(f) {
|
|
2695
|
-
let r = f.item.functionName;
|
|
2696
|
-
this[r]();
|
|
2697
|
-
}
|
|
2698
|
-
}
|
|
2699
|
-
};
|
|
2700
|
-
var te = function() {
|
|
2701
|
-
var r = this, e = r._self._c;
|
|
2702
|
-
return e("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: r.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: r.fullscreen, visible: r.visible, width: r.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !0, "show-close": !1 }, on: { "update:visible": function(y) {
|
|
2703
|
-
r.visible = y;
|
|
2704
|
-
}, closed: r.closed } }, [e("template", { slot: "title" }, [e("gd-modal-title", { attrs: { title: r.$i18nt("gd.form.selUseView", "\u9009\u62E9\u4F7F\u7528\u89C6\u56FE"), fullscreen: r.fullscreen, buttons: r.sysViewButtons, confirmLoading: r.confirmLoading, showClose: !0 }, on: { changeEvent: r.doEvent, toggleFullscreen: r.toggleFullscreen } })], 1), e("div", { staticClass: "screen-find-by" }, [e("el-alert", { attrs: { title: r.$i18nt("gd.crowd.selWayTip", "\u9009\u62E9\u67E5\u627E\u8BB0\u5F55\u7684\u65B9\u6CD5\uFF0C\u7136\u540E\u5728\u5217\u8868\u4E2D\u5C06\u8FD9\u4E9B\u8BB0\u5F55\u6DFB\u52A0\u6216\u79FB\u9664\u3002"), type: "info", "show-icon": "", closable: !1 } }), e("div", { staticClass: "find-by-radio" }, [e("div", { staticClass: "radio-item", on: { click: function(y) {
|
|
2705
|
-
return r.onChange(1);
|
|
2706
|
-
} } }, [e("el-radio", { attrs: { label: 1 }, model: { value: r.value, callback: function(y) {
|
|
2707
|
-
r.value = y;
|
|
2708
|
-
}, expression: "value" } }, [r._v(r._s(r.$i18nt("gd.crowd.findBy", "\u4F7F\u7528\u201C\u67E5\u627E\u201D\u6DFB\u52A0")))]), e("div", { staticClass: "radiotip" }, [r._v(r._s(r.$i18nt("gd.crowd.findByTip", "\u67E5\u627E\u8981\u6DFB\u52A0\u5230\u5217\u8868\u7684\u8BB0\u5F55\u3002")))])], 1), e("div", { staticClass: "radio-item", on: { click: function(y) {
|
|
2709
|
-
return r.onChange(2);
|
|
2710
|
-
} } }, [e("el-radio", { attrs: { label: 2 }, model: { value: r.value, callback: function(y) {
|
|
2711
|
-
r.value = y;
|
|
2712
|
-
}, expression: "value" } }, [r._v(r._s(r.$i18nt("gd.crowd.advancedAdd", "\u4F7F\u7528\u201C\u9AD8\u7EA7\u67E5\u627E\u201D\u6DFB\u52A0")))]), e("div", { staticClass: "radiotip" }, [r._v(r._s(r.$i18nt("gd.crowd.advancedAddTip", "\u6839\u636E\u641C\u7D22\u6761\u4EF6\u67E5\u627E\u8981\u6DFB\u52A0\u7684\u8BB0\u5F55\u3002")))])], 1), e("div", { staticClass: "radio-item", on: { click: function(y) {
|
|
2713
|
-
return r.onChange(3);
|
|
2714
|
-
} } }, [e("el-radio", { attrs: { label: 3 }, model: { value: r.value, callback: function(y) {
|
|
2715
|
-
r.value = y;
|
|
2716
|
-
}, expression: "value" } }, [r._v(r._s(r.$i18nt("gd.crowd.advancedDel", "\u4F7F\u7528\u201C\u9AD8\u7EA7\u67E5\u627E\u201D\u5220\u9664")))]), e("div", { staticClass: "radiotip" }, [r._v(r._s(r.$i18nt("gd.crowd.advancedDelTip", "\u6839\u636E\u641C\u7D22\u6761\u4EF6\u67E5\u627E\u8981\u79FB\u9664\u7684\u8BB0\u5F55\u3002")))])], 1)])], 1)], 2);
|
|
2717
|
-
}, ee = [], ie = /* @__PURE__ */ ut(
|
|
2718
|
-
Jt,
|
|
2719
|
-
te,
|
|
2720
|
-
ee,
|
|
2721
|
-
!1,
|
|
2722
|
-
null,
|
|
2723
|
-
"94b12aee",
|
|
2724
|
-
null,
|
|
2725
|
-
null
|
|
2726
|
-
);
|
|
2727
|
-
const re = ie.exports;
|
|
2728
|
-
const ne = {
|
|
2729
|
-
props: {
|
|
2730
|
-
id: {
|
|
2731
|
-
type: [String, Number],
|
|
2732
|
-
default: ""
|
|
2733
|
-
}
|
|
2734
|
-
},
|
|
2735
|
-
data() {
|
|
2736
|
-
return {
|
|
2737
|
-
value: 1,
|
|
2738
|
-
spinning: !1,
|
|
2739
|
-
sysViewButtons: [
|
|
2740
|
-
{
|
|
2741
|
-
id: 1,
|
|
2742
|
-
displayName: "\u67E5\u8BE2\u7ED3\u679C",
|
|
2743
|
-
functionName: "handlResult",
|
|
2744
|
-
show: !0,
|
|
2745
|
-
transKey: "gd.crowd.queryResults"
|
|
2746
|
-
},
|
|
2747
|
-
{
|
|
2748
|
-
id: 2,
|
|
2749
|
-
displayName: "\u786E\u8BA4\u6DFB\u52A0",
|
|
2750
|
-
functionName: "handleSubmit",
|
|
2751
|
-
show: !1,
|
|
2752
|
-
transKey: "gd.crowd.confirmAdd"
|
|
2753
|
-
},
|
|
2754
|
-
{
|
|
2755
|
-
id: 3,
|
|
2756
|
-
displayName: "\u786E\u8BA4\u79FB\u9664",
|
|
2757
|
-
functionName: "handleSubmit",
|
|
2758
|
-
show: !1,
|
|
2759
|
-
transKey: "gd.crowd.confirmRemoval"
|
|
2760
|
-
}
|
|
2761
|
-
],
|
|
2762
|
-
visible: !1,
|
|
2763
|
-
confirmLoading: !1,
|
|
2764
|
-
type: 3,
|
|
2765
|
-
isSelect: !1,
|
|
2766
|
-
radioStyle: {
|
|
2767
|
-
display: "block",
|
|
2768
|
-
lineHeight: "30px",
|
|
2769
|
-
paddingBottom: "2px"
|
|
2770
|
-
},
|
|
2771
|
-
detail: {},
|
|
2772
|
-
fullscreen: !1,
|
|
2773
|
-
width: "90%"
|
|
2774
|
-
};
|
|
2775
|
-
},
|
|
2776
|
-
computed: {
|
|
2777
|
-
list() {
|
|
2778
|
-
return [
|
|
2779
|
-
{
|
|
2780
|
-
name: "\u4EC5\u5C06\u9009\u5B9A\u7684\u8BB0\u5F55\u6DFB\u52A0\u5230\u5217\u8868",
|
|
2781
|
-
val: 1,
|
|
2782
|
-
type: 1,
|
|
2783
|
-
keyI18n: "gd.crowd.selectedRecord"
|
|
2784
|
-
},
|
|
2785
|
-
{
|
|
2786
|
-
name: "\u5C06\u641C\u7D22\u8FD4\u56DE\u7684\u6240\u6709\u6570\u636E\u6DFB\u52A0\u5230\u5217\u8868",
|
|
2787
|
-
val: 2,
|
|
2788
|
-
type: 1,
|
|
2789
|
-
keyI18n: "gd.crowd.addSearchRecord"
|
|
2790
|
-
},
|
|
2791
|
-
{
|
|
2792
|
-
name: "\u4EC5\u5C06\u9009\u5B9A\u7684\u8BB0\u5F55\u4ECE\u5217\u8868\u79FB\u9664",
|
|
2793
|
-
val: 1,
|
|
2794
|
-
type: 2,
|
|
2795
|
-
keyI18n: "gd.crowd.delSelRecord"
|
|
2796
|
-
},
|
|
2797
|
-
{
|
|
2798
|
-
name: "\u5C06\u641C\u7D22\u8FD4\u56DE\u7684\u6240\u6709\u6570\u636E\u4ECE\u5217\u8868\u79FB\u9664",
|
|
2799
|
-
val: 2,
|
|
2800
|
-
type: 2,
|
|
2801
|
-
keyI18n: "gd.crowd.delSearchRecord"
|
|
2802
|
-
}
|
|
2803
|
-
];
|
|
2804
|
-
},
|
|
2805
|
-
screenHig() {
|
|
2806
|
-
const f = this.fullscreen ? 280 : 430;
|
|
2807
|
-
return this.screenHeight - f;
|
|
2808
|
-
},
|
|
2809
|
-
modalStyle() {
|
|
2810
|
-
return this.fullscreen ? {
|
|
2811
|
-
width: "100%",
|
|
2812
|
-
dialogStyle: {
|
|
2813
|
-
top: "0px"
|
|
2814
|
-
}
|
|
2815
|
-
} : {
|
|
2816
|
-
width: this.width,
|
|
2817
|
-
dialogStyle: {
|
|
2818
|
-
top: "40px"
|
|
2819
|
-
}
|
|
2820
|
-
};
|
|
2821
|
-
},
|
|
2822
|
-
title() {
|
|
2823
|
-
let f = this.$i18nt("gd.crowd.useAddRecord", "\u4F7F\u7528\u641C\u7D22\u6761\u4EF6\u67E5\u627E\u8981\u6DFB\u52A0\u7684\u8BB0\u5F55");
|
|
2824
|
-
return this.type == 2 && (f = this.$i18nt("gd.crowd.useDelRecord", "\u4F7F\u7528\u641C\u7D22\u6761\u4EF6\u67E5\u627E\u8981\u79FB\u9664\u7684\u8BB0\u5F55")), f;
|
|
2825
|
-
},
|
|
2826
|
-
..._t(["screenHeight"])
|
|
2827
|
-
},
|
|
2828
|
-
methods: {
|
|
2829
|
-
toggleFullscreen() {
|
|
2830
|
-
this.fullscreen = !this.fullscreen;
|
|
2831
|
-
},
|
|
2832
|
-
delition(f) {
|
|
2833
|
-
if (this.value == 2) {
|
|
2834
|
-
this.dynamicDel(f);
|
|
2835
|
-
return;
|
|
2836
|
-
}
|
|
2837
|
-
if (f.data.length == 0) {
|
|
2838
|
-
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
2839
|
-
return;
|
|
2840
|
-
}
|
|
2841
|
-
this.confirmLoading = !0, Ot({ crowdListId: this.id, ids: f.data.join(",") }).then((r) => {
|
|
2842
|
-
if (r.code == 0)
|
|
2843
|
-
this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.cancel();
|
|
2844
|
-
else {
|
|
2845
|
-
const e = r.msg ? r.msg : r.message;
|
|
2846
|
-
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e);
|
|
2847
|
-
}
|
|
2848
|
-
this.confirmLoading = !1;
|
|
2849
|
-
});
|
|
2850
|
-
},
|
|
2851
|
-
dynamicDel(f) {
|
|
2852
|
-
let r = Object.assign(f.queryTable, {
|
|
2853
|
-
sysViewFilters: f.sysViewFilters,
|
|
2854
|
-
sysViewFields: f.sysViewFields
|
|
2855
|
-
}), e = {
|
|
2856
|
-
crowdListId: this.id,
|
|
2857
|
-
seniorQueryDto: r
|
|
2858
|
-
};
|
|
2859
|
-
this.confirmLoading = !0, Wt(e).then((y) => {
|
|
2860
|
-
if (y.success)
|
|
2861
|
-
this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.cancel();
|
|
2862
|
-
else {
|
|
2863
|
-
const m = y.msg ? y.msg : y.message;
|
|
2864
|
-
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + m);
|
|
2865
|
-
}
|
|
2866
|
-
this.confirmLoading = !1;
|
|
2867
|
-
});
|
|
2868
|
-
},
|
|
2869
|
-
addition(f) {
|
|
2870
|
-
if (this.value == 2) {
|
|
2871
|
-
this.dynamicFeed(f);
|
|
2872
|
-
return;
|
|
2873
|
-
}
|
|
2874
|
-
this.confirmLoading = !0, At({
|
|
2875
|
-
crowdListId: this.id,
|
|
2876
|
-
ids: f.data.join(",")
|
|
2877
|
-
}).then((r) => {
|
|
2878
|
-
if (r.code == 0)
|
|
2879
|
-
this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.cancel();
|
|
2880
|
-
else {
|
|
2881
|
-
const e = r.msg ? r.msg : r.message;
|
|
2882
|
-
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e);
|
|
2883
|
-
}
|
|
2884
|
-
this.confirmLoading = !1;
|
|
2885
|
-
});
|
|
2886
|
-
},
|
|
2887
|
-
dynamicFeed(f) {
|
|
2888
|
-
let r = Object.assign(f.queryTable, {
|
|
2889
|
-
sysViewFilters: f.sysViewFilters,
|
|
2890
|
-
sysViewFields: f.sysViewFields
|
|
2891
|
-
}), e = { ...f.viewRecord };
|
|
2892
|
-
e.loadData && delete e.loadData;
|
|
2893
|
-
let y = {
|
|
2894
|
-
crowdListId: this.id,
|
|
2895
|
-
seniorQueryDto: r,
|
|
2896
|
-
queryFetchXML: JSON.stringify(e)
|
|
2897
|
-
};
|
|
2898
|
-
this.confirmLoading = !0, Vt(y).then((m) => {
|
|
2899
|
-
if (m.success)
|
|
2900
|
-
this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok"), this.cancel();
|
|
2901
|
-
else {
|
|
2902
|
-
const a = m.msg ? m.msg : m.message;
|
|
2903
|
-
this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + a);
|
|
2904
|
-
}
|
|
2905
|
-
this.confirmLoading = !1;
|
|
2906
|
-
});
|
|
2907
|
-
},
|
|
2908
|
-
onChange(f) {
|
|
2909
|
-
this.value = f.target.value;
|
|
2910
|
-
},
|
|
2911
|
-
changeOperate(f) {
|
|
2912
|
-
f == 3 ? (this.baseHideBtns(this.type == 2 ? [1, 2] : [1, 3]), this.baseShowBtns(this.type == 2 ? [3] : [2])) : (this.baseHideBtns([2, 3]), this.baseShowBtns([1]));
|
|
2913
|
-
},
|
|
2914
|
-
open(f) {
|
|
2915
|
-
this.fullscreen = !1, this.detail = f, this.value = 1, this.visible = !0, this.type = f.type, this.isSelect = f.type != 3, this.$nextTick(() => {
|
|
2916
|
-
setTimeout(() => {
|
|
2917
|
-
this.$refs.advancedFind.selectTable(f);
|
|
2918
|
-
}, 0);
|
|
2919
|
-
});
|
|
2920
|
-
},
|
|
2921
|
-
handleSubmit() {
|
|
2922
|
-
this.$refs.advancedFind.getData().then((f) => {
|
|
2923
|
-
this.detail.type == 1 ? this.addition(f) : this.detail.type == 3 ? this.dynamicFeed(f) : this.detail.type == 2 && this.delition(f);
|
|
2924
|
-
});
|
|
2925
|
-
},
|
|
2926
|
-
handlResult() {
|
|
2927
|
-
this.$refs.advancedFind.change("3");
|
|
2928
|
-
},
|
|
2929
|
-
cancel() {
|
|
2930
|
-
this.visible = !1, this.type = 3, this.changeOperate(1);
|
|
2931
|
-
},
|
|
2932
|
-
closed() {
|
|
2933
|
-
this.fullscreen = !1, this.visible = !1, this.cancel();
|
|
2934
|
-
},
|
|
2935
|
-
baseShowBtns(f) {
|
|
2936
|
-
let r = [...this.sysViewButtons];
|
|
2937
|
-
r.map((e) => (e.show = f.includes(e.id) ? !0 : e.show, e)), this.sysViewButtons = [...r];
|
|
2938
|
-
},
|
|
2939
|
-
baseHideBtns(f) {
|
|
2940
|
-
let r = [...this.sysViewButtons];
|
|
2941
|
-
r.map((e) => (e.show = !f.includes(e.id), e)), this.sysViewButtons = [...r];
|
|
2942
|
-
},
|
|
2943
|
-
doEvent(f) {
|
|
2944
|
-
let r = f.item.functionName;
|
|
2945
|
-
this[r](f);
|
|
2946
|
-
}
|
|
2947
|
-
}
|
|
2948
|
-
};
|
|
2949
|
-
var se = function() {
|
|
2950
|
-
var r = this, e = r._self._c;
|
|
2951
|
-
return e("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: r.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: r.fullscreen, visible: r.visible, width: r.width, center: !0, "close-on-click-modal": !1, "modal-append-to-body": !0, "append-to-body": !0, top: "80px", "show-close": !1 }, on: { "update:visible": function(y) {
|
|
2952
|
-
r.visible = y;
|
|
2953
|
-
}, closed: r.closed } }, [e("template", { slot: "title" }, [e("gd-modal-title", { attrs: { title: r.title, fullscreen: r.fullscreen, buttons: r.sysViewButtons, confirmLoading: r.confirmLoading, showClose: !0 }, on: { changeEvent: r.doEvent, toggleFullscreen: r.toggleFullscreen } })], 1), e("div", { directives: [{ name: "loading", rawName: "v-loading", value: r.confirmLoading, expression: "confirmLoading" }] }, [r.type != 3 ? e("div", { staticClass: "findby" }, [e("div", { staticClass: "findbyl" }, [e("el-radio-group", { on: { change: r.onChange }, model: { value: r.value, callback: function(y) {
|
|
2954
|
-
r.value = y;
|
|
2955
|
-
}, expression: "value" } }, [r._l(r.list, function(y) {
|
|
2956
|
-
return [y.type == r.type ? e("el-radio", { style: r.radioStyle, attrs: { label: y.val } }, [r._v(" " + r._s(r.$i18nt(y.keyI18n, y.name)) + " ")]) : r._e()];
|
|
2957
|
-
})], 2)], 1), e("div", { staticClass: "findbyr" }, [e("el-alert", { staticStyle: { width: "500px" }, attrs: { title: r.$i18nt("gd.crowd.operateRecordTip", "\u9009\u62E9\u64CD\u4F5C\u8BB0\u5F55\u7684\u65B9\u6CD5\uFF0C\u7136\u540E\u5728\u5217\u8868\u4E2D\u5C06\u8FD9\u4E9B\u8BB0\u5F55\u6DFB\u52A0\u6216\u79FB\u9664\u3002"), type: "info", "show-icon": "", closable: !1 } })], 1)]) : r._e(), e("div", { staticClass: "findby-advanced" }, [r.visible ? e("gd-advanced-find", { ref: "advancedFind", attrs: { screenHig: r.screenHig, isScreen: !0, showTitle: !1, isSelect: r.isSelect, isDisabled: !0 }, on: { change: r.changeOperate } }) : r._e()], 1)])], 2);
|
|
2958
|
-
}, ae = [], oe = /* @__PURE__ */ ut(
|
|
2959
|
-
ne,
|
|
2960
|
-
se,
|
|
2961
|
-
ae,
|
|
2962
|
-
!1,
|
|
2963
|
-
null,
|
|
2964
|
-
"6e29fe35",
|
|
2965
|
-
null,
|
|
2966
|
-
null
|
|
2967
|
-
);
|
|
2968
|
-
const le = oe.exports;
|
|
2969
|
-
const ce = {
|
|
2970
|
-
props: {
|
|
2971
|
-
item: {
|
|
2972
|
-
type: Object,
|
|
2973
|
-
default: () => ({})
|
|
2974
|
-
},
|
|
2975
|
-
row: {
|
|
2976
|
-
type: Object,
|
|
2977
|
-
default: () => ({})
|
|
2978
|
-
},
|
|
2979
|
-
getFristColumn: {
|
|
2980
|
-
type: Object,
|
|
2981
|
-
default: () => ({})
|
|
2982
|
-
}
|
|
2983
|
-
},
|
|
2984
|
-
data() {
|
|
2985
|
-
return {};
|
|
2986
|
-
},
|
|
2987
|
-
computed: {
|
|
2988
|
-
text() {
|
|
2989
|
-
return this.row[this.item.prop];
|
|
2990
|
-
},
|
|
2991
|
-
getText() {
|
|
2992
|
-
let f = [];
|
|
2993
|
-
return this.text && Bt(this.text) && (f = JSON.parse(this.text)), f;
|
|
2994
|
-
},
|
|
2995
|
-
..._t(["primaryColor"])
|
|
2996
|
-
},
|
|
2997
|
-
methods: {}
|
|
2998
|
-
};
|
|
2999
|
-
var de = function() {
|
|
3000
|
-
var r = this, e = r._self._c;
|
|
3001
|
-
return e("div", { staticClass: "tparticipants" }, [e("el-popover", { attrs: { placement: "top", trigger: "hover", "close-delay": 34 } }, [e("div", { staticClass: "file-popover" }, [r._l(r.getText, function(y, m) {
|
|
3002
|
-
return [e("span", { staticClass: "file-popover-item", on: { click: function(a) {
|
|
3003
|
-
return r.$emit("baseQuickForm", y);
|
|
3004
|
-
} } }, [r._v(r._s(y.name))])];
|
|
3005
|
-
})], 2), e("div", { staticClass: "line1", attrs: { slot: "reference" }, slot: "reference" }, [r._l(r.getText, function(y, m) {
|
|
3006
|
-
return [e("span", [m !== 0 ? e("span", { staticStyle: { padding: "0 4px 0 2px" } }, [r._v(",")]) : r._e(), e("span", [r._v(r._s(y.name))])])];
|
|
3007
|
-
})], 2)])], 1);
|
|
3008
|
-
}, he = [], ue = /* @__PURE__ */ ut(
|
|
3009
|
-
ce,
|
|
3010
|
-
de,
|
|
3011
|
-
he,
|
|
3012
|
-
!1,
|
|
3013
|
-
null,
|
|
3014
|
-
"8101cf7a",
|
|
3015
|
-
null,
|
|
3016
|
-
null
|
|
3017
|
-
);
|
|
3018
|
-
const Dt = ue.exports, ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3019
|
-
__proto__: null,
|
|
3020
|
-
default: Dt
|
|
3021
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
3022
|
-
const fe = {
|
|
3023
|
-
props: {
|
|
3024
|
-
item: {
|
|
3025
|
-
type: Object,
|
|
3026
|
-
default: () => ({})
|
|
3027
|
-
},
|
|
3028
|
-
row: {
|
|
3029
|
-
type: Object,
|
|
3030
|
-
default: () => ({})
|
|
3031
|
-
},
|
|
3032
|
-
getFristColumn: {
|
|
3033
|
-
type: Object,
|
|
3034
|
-
default: () => ({})
|
|
3035
|
-
}
|
|
3036
|
-
},
|
|
3037
|
-
data() {
|
|
3038
|
-
return {};
|
|
3039
|
-
},
|
|
3040
|
-
computed: {
|
|
3041
|
-
text() {
|
|
3042
|
-
return this.getData ? this.$i18nt(`Dynamics.${this.getData.transkey}`, this.getData.name) : "";
|
|
3043
|
-
},
|
|
3044
|
-
getData() {
|
|
3045
|
-
const f = this.row[this.item.prop];
|
|
3046
|
-
return this.item.dictTypeList.filter((e) => e.code == f)[0];
|
|
3047
|
-
},
|
|
3048
|
-
styled() {
|
|
3049
|
-
return this.item.hyperlink ? `color:${this.primaryColor};cursor: pointer;` : "";
|
|
3050
|
-
},
|
|
3051
|
-
stylec() {
|
|
3052
|
-
return this.dictSwitch ? `color:${this.dictSwitch}` : "";
|
|
3053
|
-
},
|
|
3054
|
-
dictSwitch() {
|
|
3055
|
-
return this.getData ? this.getData.colour : null;
|
|
3056
|
-
},
|
|
3057
|
-
..._t(["primaryColor"])
|
|
3058
|
-
},
|
|
3059
|
-
methods: {}
|
|
3060
|
-
};
|
|
3061
|
-
var pe = function() {
|
|
3062
|
-
var r = this, e = r._self._c;
|
|
3063
|
-
return e("div", [r.dictSwitch ? e("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", size: "mini", color: r.dictSwitch }, on: { click: function(y) {
|
|
3064
|
-
return r.$emit("operatorScope");
|
|
3065
|
-
} } }, [r._v(" " + r._s(r.text) + " ")]) : e("div", { style: r.styled }, [e("span", { on: { click: function(y) {
|
|
3066
|
-
return r.$emit("operatorScope");
|
|
3067
|
-
} } }, [r._v(r._s(r.text))])])], 1);
|
|
3068
|
-
}, me = [], _e = /* @__PURE__ */ ut(
|
|
3069
|
-
fe,
|
|
3070
|
-
pe,
|
|
3071
|
-
me,
|
|
3072
|
-
!1,
|
|
3073
|
-
null,
|
|
3074
|
-
"89f9506b",
|
|
3075
|
-
null,
|
|
3076
|
-
null
|
|
3077
|
-
);
|
|
3078
|
-
const Ft = _e.exports, ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3079
|
-
__proto__: null,
|
|
3080
|
-
default: Ft
|
|
3081
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
3082
|
-
const ge = {
|
|
3083
|
-
props: {
|
|
3084
|
-
item: {
|
|
3085
|
-
type: Object,
|
|
3086
|
-
default: () => ({})
|
|
3087
|
-
},
|
|
3088
|
-
row: {
|
|
3089
|
-
type: Object,
|
|
3090
|
-
default: () => ({})
|
|
3091
|
-
},
|
|
3092
|
-
getFristColumn: {
|
|
3093
|
-
type: Object,
|
|
3094
|
-
default: () => ({})
|
|
3095
|
-
}
|
|
3096
|
-
},
|
|
3097
|
-
data() {
|
|
3098
|
-
return {};
|
|
3099
|
-
},
|
|
3100
|
-
computed: {
|
|
3101
|
-
text() {
|
|
3102
|
-
return this.row[this.item.prop];
|
|
3103
|
-
},
|
|
3104
|
-
getDatas() {
|
|
3105
|
-
let f = [];
|
|
3106
|
-
return this.text && (f = String(this.text).split(",")), f;
|
|
3107
|
-
},
|
|
3108
|
-
..._t(["primaryColor"])
|
|
3109
|
-
},
|
|
3110
|
-
methods: {}
|
|
3111
|
-
};
|
|
3112
|
-
var ye = function() {
|
|
3113
|
-
var r = this, e = r._self._c;
|
|
3114
|
-
return e("div", [r._l(r.getDatas, function(y, m) {
|
|
3115
|
-
return [m !== 0 ? e("span", { staticStyle: { padding: "0 4px 0 2px" } }, [r._v(",")]) : r._e(), e("span", [r._v(r._s(r._f("dictType")(r.item.dictTypeCode, y)))])];
|
|
3116
|
-
})], 2);
|
|
3117
|
-
}, ve = [], be = /* @__PURE__ */ ut(
|
|
3118
|
-
ge,
|
|
3119
|
-
ye,
|
|
3120
|
-
ve,
|
|
3121
|
-
!1,
|
|
3122
|
-
null,
|
|
3123
|
-
"ee6de1c1",
|
|
3124
|
-
null,
|
|
3125
|
-
null
|
|
3126
|
-
);
|
|
3127
|
-
const $t = be.exports, ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3128
|
-
__proto__: null,
|
|
3129
|
-
default: $t
|
|
3130
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
3131
|
-
const we = {
|
|
3132
|
-
props: {
|
|
3133
|
-
item: {
|
|
3134
|
-
type: Object,
|
|
3135
|
-
default: () => ({})
|
|
3136
|
-
},
|
|
3137
|
-
row: {
|
|
3138
|
-
type: Object,
|
|
3139
|
-
default: () => ({})
|
|
3140
|
-
},
|
|
3141
|
-
getFristColumn: {
|
|
3142
|
-
type: Object,
|
|
3143
|
-
default: () => ({})
|
|
3144
|
-
}
|
|
3145
|
-
},
|
|
3146
|
-
data() {
|
|
3147
|
-
return {};
|
|
3148
|
-
},
|
|
3149
|
-
computed: {
|
|
3150
|
-
style() {
|
|
3151
|
-
let f = "";
|
|
3152
|
-
return this.item.align === "center" ? f = "justify-content: center" : this.item.align === "right" && (f = "justify-content: flex-end"), f;
|
|
3153
|
-
},
|
|
3154
|
-
list() {
|
|
3155
|
-
const f = this.row[this.item.prop];
|
|
3156
|
-
let r = [];
|
|
3157
|
-
return Bt(f) && (r = JSON.parse(f)), r;
|
|
3158
|
-
},
|
|
3159
|
-
..._t(["primaryColor"])
|
|
3160
|
-
},
|
|
3161
|
-
methods: {
|
|
3162
|
-
preview(f) {
|
|
3163
|
-
this.$emit("preview", f);
|
|
3164
|
-
}
|
|
3165
|
-
}
|
|
3166
|
-
};
|
|
3167
|
-
var ke = function() {
|
|
3168
|
-
var r = this, e = r._self._c;
|
|
3169
|
-
return r.list.length > 0 ? e("div", { staticStyle: { display: "flex", "align-items": "center" }, style: r.style }, [r.item.preview ? e("el-popover", { attrs: { placement: "top", trigger: "hover", "close-delay": 34 } }, [e("div", { staticClass: "file-popover" }, [r._l(r.list, function(y, m) {
|
|
3170
|
-
return [e("div", { staticClass: "file-popover-item line1", on: { click: function(a) {
|
|
3171
|
-
return r.preview(y);
|
|
3172
|
-
} } }, [r._v(r._s(y.fileobjectname))])];
|
|
3173
|
-
}), r.item.preview && r.item.download ? e("el-divider", { attrs: { dashed: "" } }) : r._e(), r.item.download ? e("div", { staticClass: "file-popover-item item-download active-color", on: { click: function(y) {
|
|
3174
|
-
return r.$emit("showFile");
|
|
3175
|
-
} } }, [r._v(" " + r._s(r.$i18nt("gd.btn.download", "\u4E0B\u8F7D")) + " "), e("i", { staticClass: "el-icon-download active-color" })]) : r._e()], 2), e("el-button", { staticStyle: { padding: "4px 12px" }, attrs: { slot: "reference", type: "primary" }, slot: "reference" }, [r._v(r._s(r.$i18nt("gd.btn.viewFile", "\u67E5\u770B\u6587\u4EF6")))])], 1) : r._e()], 1) : r._e();
|
|
3176
|
-
}, xe = [], Se = /* @__PURE__ */ ut(
|
|
3177
|
-
we,
|
|
3178
|
-
ke,
|
|
3179
|
-
xe,
|
|
3180
|
-
!1,
|
|
3181
|
-
null,
|
|
3182
|
-
"17c27787",
|
|
3183
|
-
null,
|
|
3184
|
-
null
|
|
3185
|
-
);
|
|
3186
|
-
const Nt = Se.exports, ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3187
|
-
__proto__: null,
|
|
3188
|
-
default: Nt
|
|
3189
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
3190
|
-
const Ce = {
|
|
3191
|
-
props: {
|
|
3192
|
-
item: {
|
|
3193
|
-
type: Object,
|
|
3194
|
-
default: () => ({})
|
|
3195
|
-
},
|
|
3196
|
-
row: {
|
|
3197
|
-
type: Object,
|
|
3198
|
-
default: () => ({})
|
|
3199
|
-
},
|
|
3200
|
-
getFristColumn: {
|
|
3201
|
-
type: Object,
|
|
3202
|
-
default: () => ({})
|
|
3203
|
-
}
|
|
3204
|
-
},
|
|
3205
|
-
data() {
|
|
3206
|
-
return {};
|
|
3207
|
-
},
|
|
3208
|
-
computed: {
|
|
3209
|
-
text() {
|
|
3210
|
-
return this.row[this.item.prop];
|
|
3211
|
-
},
|
|
3212
|
-
displayPrefix() {
|
|
3213
|
-
if (this.item.effectType !== "currency")
|
|
3214
|
-
return "";
|
|
3215
|
-
let f = this.item.displayPrefix ? this.item.displayPrefix : "none";
|
|
3216
|
-
if (f === "none")
|
|
3217
|
-
return "";
|
|
3218
|
-
let r = f + "sys_currencysys_currencyid", e = this.row[r];
|
|
3219
|
-
return e || "";
|
|
3220
|
-
},
|
|
3221
|
-
cstyle() {
|
|
3222
|
-
return `color:${this.primaryColor};font-size: 14px;`;
|
|
3223
|
-
},
|
|
3224
|
-
displayMode() {
|
|
3225
|
-
let f = "";
|
|
3226
|
-
return !this.item.effectType === "double" ? f : (this.item.displayMode === "percent" ? f = "%" : this.item.displayMode === "permil" && (f = "\u2030"), this.getCurrency === "" ? "" : f);
|
|
3227
|
-
},
|
|
3228
|
-
styled() {
|
|
3229
|
-
return this.item.hyperlink ? `color:${this.primaryColor};cursor: pointer;` : "";
|
|
3230
|
-
},
|
|
3231
|
-
getCurrency() {
|
|
3232
|
-
let f = "";
|
|
3233
|
-
if (this.item.effectType === "double") {
|
|
3234
|
-
let e = this.text !== null && this.text !== "" && this.text !== void 0 ? Number(this.text) : "";
|
|
3235
|
-
f = this.getDisplayMode(e);
|
|
3236
|
-
} else
|
|
3237
|
-
f = this.text !== null && this.text !== "" && this.text !== void 0 ? String(this.text) : "";
|
|
3238
|
-
return f !== null && f !== "" && f !== void 0 && f !== 0 && f !== "0" && this.item.displayMode === "none" && (f = Number(f).toFixed(this.item.filedsize)), Qt(f);
|
|
3239
|
-
},
|
|
3240
|
-
..._t(["primaryColor"])
|
|
3241
|
-
},
|
|
3242
|
-
methods: {
|
|
3243
|
-
getDisplayMode(f) {
|
|
3244
|
-
if (f === "")
|
|
3245
|
-
return "";
|
|
3246
|
-
if (f === 0)
|
|
3247
|
-
return "0";
|
|
3248
|
-
let r = f, e = this.item.filedsize;
|
|
3249
|
-
return this.item.displayMode === "percent" ? (r = f * 100, e -= 2) : this.item.displayMode === "permil" && (r = f * 1e3, e -= 3), String(r.toFixed(e >= 0 ? e : 0));
|
|
3250
|
-
}
|
|
3251
|
-
}
|
|
3252
|
-
};
|
|
3253
|
-
var Ee = function() {
|
|
3254
|
-
var r = this, e = r._self._c;
|
|
3255
|
-
return e("div", { style: r.styled, on: { click: function(y) {
|
|
3256
|
-
return r.$emit("operatorScope");
|
|
3257
|
-
} } }, [r.displayPrefix && r.getCurrency ? e("span", [r._v(r._s(r.displayPrefix))]) : r._e(), e("span", [r._v(r._s(r.getCurrency) + r._s(r.displayMode))])]);
|
|
3258
|
-
}, ze = [], Ie = /* @__PURE__ */ ut(
|
|
3259
|
-
Ce,
|
|
3260
|
-
Ee,
|
|
3261
|
-
ze,
|
|
3262
|
-
!1,
|
|
3263
|
-
null,
|
|
3264
|
-
"af2a245d",
|
|
3265
|
-
null,
|
|
3266
|
-
null
|
|
3267
|
-
);
|
|
3268
|
-
const Lt = Ie.exports, si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3269
|
-
__proto__: null,
|
|
3270
|
-
default: Lt
|
|
3271
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
3272
|
-
const Te = {
|
|
3273
|
-
props: {
|
|
3274
|
-
item: {
|
|
3275
|
-
type: Object,
|
|
3276
|
-
default: () => ({})
|
|
3277
|
-
},
|
|
3278
|
-
row: {
|
|
3279
|
-
type: Object,
|
|
3280
|
-
default: () => ({})
|
|
3281
|
-
},
|
|
3282
|
-
getFristColumn: {
|
|
3283
|
-
type: Object,
|
|
3284
|
-
default: () => ({})
|
|
3285
|
-
}
|
|
3286
|
-
},
|
|
3287
|
-
data() {
|
|
3288
|
-
return {};
|
|
3289
|
-
},
|
|
3290
|
-
computed: {
|
|
3291
|
-
styled() {
|
|
3292
|
-
return this.item.hyperlink ? `color:${this.primaryColor};cursor: pointer;` : "";
|
|
3293
|
-
},
|
|
3294
|
-
dictSwitch() {
|
|
3295
|
-
let f = this.$options.filters.dictData("time_longshort").filter((r) => r.code == this.item.fieldFormat)[0];
|
|
3296
|
-
return f ? f.name.replace("DD", "dd") : "yyyy-MM-dd HH:mm:ss";
|
|
3297
|
-
},
|
|
3298
|
-
..._t(["primaryColor"])
|
|
3299
|
-
},
|
|
3300
|
-
methods: {}
|
|
3301
|
-
};
|
|
3302
|
-
var Oe = function() {
|
|
3303
|
-
var r = this, e = r._self._c;
|
|
3304
|
-
return e("div", { style: r.styled }, [e("span", { on: { click: function(y) {
|
|
3305
|
-
return r.$emit("operatorScope");
|
|
3306
|
-
} } }, [r._v(r._s(r._f("formatTime")(r.row[r.item.prop], r.dictSwitch)))])]);
|
|
3307
|
-
}, Ae = [], Be = /* @__PURE__ */ ut(
|
|
3308
|
-
Te,
|
|
3309
|
-
Oe,
|
|
3310
|
-
Ae,
|
|
3311
|
-
!1,
|
|
3312
|
-
null,
|
|
3313
|
-
"d4617b39",
|
|
3314
|
-
null,
|
|
3315
|
-
null
|
|
3316
|
-
);
|
|
3317
|
-
const jt = Be.exports, ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3318
|
-
__proto__: null,
|
|
3319
|
-
default: jt
|
|
3320
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
3321
|
-
var bt = null;
|
|
3322
|
-
const Re = {
|
|
3323
|
-
components: {
|
|
3324
|
-
findBy: re,
|
|
3325
|
-
findList: le,
|
|
3326
|
-
Participants: Dt,
|
|
3327
|
-
DictSwitch: Ft,
|
|
3328
|
-
Checkboxs: $t,
|
|
3329
|
-
Tfile: Nt,
|
|
3330
|
-
Tcurrency: Lt,
|
|
3331
|
-
Tdatepicker: jt
|
|
3332
|
-
},
|
|
3333
|
-
props: {
|
|
3334
|
-
tableDatas: {
|
|
3335
|
-
type: Object,
|
|
3336
|
-
default: () => ({})
|
|
3337
|
-
},
|
|
3338
|
-
record: {
|
|
3339
|
-
type: Object,
|
|
3340
|
-
default: () => ({})
|
|
3341
|
-
},
|
|
3342
|
-
id: {
|
|
3343
|
-
type: [String, Number],
|
|
3344
|
-
default: ""
|
|
3345
|
-
},
|
|
3346
|
-
fkEntityName: {
|
|
3347
|
-
type: [String, Number],
|
|
3348
|
-
default: ""
|
|
3349
|
-
},
|
|
3350
|
-
tableId: {
|
|
3351
|
-
type: [String, Number],
|
|
3352
|
-
default: ""
|
|
3353
|
-
},
|
|
3354
|
-
viewCode: {
|
|
3355
|
-
type: [String, Number],
|
|
3356
|
-
default: ""
|
|
3357
|
-
},
|
|
3358
|
-
type: {
|
|
3359
|
-
type: [String, Number],
|
|
3360
|
-
default: "2"
|
|
3361
|
-
}
|
|
3362
|
-
},
|
|
3363
|
-
data() {
|
|
3364
|
-
return {
|
|
3365
|
-
imgList: [],
|
|
3366
|
-
currentImg: "",
|
|
3367
|
-
showComponent: "",
|
|
3368
|
-
fileOptions: {},
|
|
3369
|
-
queryTable: {},
|
|
3370
|
-
spinning: !1,
|
|
3371
|
-
viewRecord: {},
|
|
3372
|
-
show: !1,
|
|
3373
|
-
loadData: (f) => this.id == "" ? new Promise((r, e) => {
|
|
3374
|
-
r({
|
|
3375
|
-
pageNo: 1,
|
|
3376
|
-
pageSize: 10,
|
|
3377
|
-
rows: [],
|
|
3378
|
-
totalRows: 0
|
|
3379
|
-
});
|
|
3380
|
-
}) : Ht(
|
|
3381
|
-
Object.assign(f, {
|
|
3382
|
-
tableId: this.tableId,
|
|
3383
|
-
viewId: this.viewCode,
|
|
3384
|
-
crowdListId: this.id
|
|
3385
|
-
})
|
|
3386
|
-
).then((r) => {
|
|
3387
|
-
const e = this.getScroller();
|
|
3388
|
-
return e && (e.scrollTop = 0), r.data;
|
|
3389
|
-
}),
|
|
3390
|
-
sysViewButtons: [
|
|
3391
|
-
{
|
|
3392
|
-
displayName: "\u65B0\u589E",
|
|
3393
|
-
functionName: "add",
|
|
3394
|
-
show: !0,
|
|
3395
|
-
transKey: "gd.btn.add",
|
|
3396
|
-
icon: "el-icon-plus"
|
|
3397
|
-
},
|
|
3398
|
-
{
|
|
3399
|
-
displayName: "\u5220\u9664",
|
|
3400
|
-
functionName: "del",
|
|
3401
|
-
transKey: "gd.btn.del",
|
|
3402
|
-
icon: "el-icon-delete",
|
|
3403
|
-
show: !0,
|
|
3404
|
-
btnType: "danger"
|
|
3405
|
-
}
|
|
3406
|
-
],
|
|
3407
|
-
columns: [],
|
|
3408
|
-
columnsSetting: [],
|
|
3409
|
-
selectedRowKeys: [],
|
|
3410
|
-
selectedRows: [],
|
|
3411
|
-
tableData: {},
|
|
3412
|
-
findByType: 1,
|
|
3413
|
-
statu: !1,
|
|
3414
|
-
sysFindList: {
|
|
3415
|
-
sysViewFilters: []
|
|
3416
|
-
},
|
|
3417
|
-
detail: {},
|
|
3418
|
-
state: !1,
|
|
3419
|
-
eleNum: 6,
|
|
3420
|
-
isCheckedAll: !1,
|
|
3421
|
-
indeterminate: !1
|
|
3422
|
-
};
|
|
3423
|
-
},
|
|
3424
|
-
watch: {
|
|
3425
|
-
type(f, r) {
|
|
3426
|
-
f == 1 ? this.baseShowBtns(["\u5220\u9664"]) : this.baseHideBtns(["\u5220\u9664"]);
|
|
3427
|
-
}
|
|
3428
|
-
},
|
|
3429
|
-
computed: {
|
|
3430
|
-
hig() {
|
|
3431
|
-
return 320;
|
|
3432
|
-
},
|
|
3433
|
-
getFristColumn() {
|
|
3434
|
-
const f = this.columnsSetting.filter((r) => r.type !== "selection" && r.checked)[0];
|
|
3435
|
-
return f || {};
|
|
3436
|
-
},
|
|
3437
|
-
styled() {
|
|
3438
|
-
return `color:${this.primaryColor};cursor: pointer;`;
|
|
3439
|
-
},
|
|
3440
|
-
eleScrollNum() {
|
|
3441
|
-
let f = 0, r = 30, e = this.$el.querySelector(`#${this.tableIds} .el-table__row`), y = e ? e.offsetHeight : 0, m = this.getScroller(), a = m ? m.scrollTop : 0;
|
|
3442
|
-
return y > 0 && (this.$refs.table ? this.$refs.table.localDataSource : []).forEach((n, h) => {
|
|
3443
|
-
(h + 1) * y <= a && (f = h), (h + 1) * y < a + this.y + this.eleNum * y && (r = h + 1);
|
|
3444
|
-
}), { star: f, end: r, eleHig: y };
|
|
3445
|
-
},
|
|
3446
|
-
tableIds() {
|
|
3447
|
-
return Yt();
|
|
3448
|
-
},
|
|
3449
|
-
getColumnsed() {
|
|
3450
|
-
return this.columns.filter((r) => r.scopedSlots != null && r.checked);
|
|
3451
|
-
},
|
|
3452
|
-
columnsMax() {
|
|
3453
|
-
return this.tableColumnsMax != null ? this.tableColumnsMax : 0;
|
|
3454
|
-
},
|
|
3455
|
-
rowSelection() {
|
|
3456
|
-
return null;
|
|
3457
|
-
},
|
|
3458
|
-
..._t(["tableSize", "screenHeight", "primaryColor", "tableLists", "tablePageSize"])
|
|
3459
|
-
},
|
|
3460
|
-
methods: {
|
|
3461
|
-
rowClick(f, r) {
|
|
3462
|
-
if (bt) {
|
|
3463
|
-
clearTimeout(bt), bt = null;
|
|
3464
|
-
const e = this.viewList.filter((m) => m.id === this.viewCode)[0];
|
|
3465
|
-
(e && e.isdoubleclick !== void 0 ? e.isdoubleclick : 1) === 1 && this.baseQuickView(f);
|
|
3466
|
-
return;
|
|
3467
|
-
}
|
|
3468
|
-
bt = setTimeout(() => {
|
|
3469
|
-
bt = null;
|
|
3470
|
-
const e = this.selectedRowKeys.filter((a) => a === f[this.rowKey])[0], y = this.selectedRowKeys.filter((a) => a !== f[this.rowKey]), m = this.selectedRowKeys.filter((a) => a[this.rowKey] !== f[this.rowKey]);
|
|
3471
|
-
this.selectedRowKeys = e ? y : y.concat([f[this.rowKey]]), this.selectedRows = e ? m : m.concat([f]), this.$emit("changeSelect", this.selectedRowKeys, this.selectedRows), this.$refs.table.rowClickSelection(f, !e, r);
|
|
3472
|
-
}, 260);
|
|
3473
|
-
},
|
|
3474
|
-
isCheckAllRows() {
|
|
3475
|
-
if (this.$refs.table) {
|
|
3476
|
-
let f = this.$refs.table.localDataSource.filter((e) => e.id != -1);
|
|
3477
|
-
if (f.length == 0) {
|
|
3478
|
-
this.isCheckedAll = !1;
|
|
3479
|
-
return;
|
|
3480
|
-
}
|
|
3481
|
-
let r = f.filter((e) => this.selectedRowKeys.includes(e.id));
|
|
3482
|
-
this.isCheckedAll = f.length == r.length;
|
|
3483
|
-
}
|
|
3484
|
-
},
|
|
3485
|
-
onCheckRows(f) {
|
|
3486
|
-
let r = this.$refs.table.localDataSource.filter((n) => n.id != -1);
|
|
3487
|
-
if (r.length == 0)
|
|
3488
|
-
return;
|
|
3489
|
-
let e = [];
|
|
3490
|
-
r.forEach((n) => {
|
|
3491
|
-
e.push(n.id);
|
|
3492
|
-
});
|
|
3493
|
-
let y = this.selectedRowKeys.filter((n) => n == f)[0], m = [...this.selectedRowKeys];
|
|
3494
|
-
y === void 0 ? m = m.concat([Number(f)]) : m = m.filter((n) => n != f);
|
|
3495
|
-
let a = this.selectedRowKeys.filter((n) => !e.includes(n)).filter((n) => !m.includes(n)), l = r.filter((n) => m.includes(n.id));
|
|
3496
|
-
this.selectedRowKeys = a.concat(m), this.onSelectChange(a.concat(m), l);
|
|
3497
|
-
},
|
|
3498
|
-
onCheckAllRows(f) {
|
|
3499
|
-
let r = f.target.checked;
|
|
3500
|
-
if (this.isCheckedAll = r, r) {
|
|
3501
|
-
let e = this.$refs.table.localDataSource.filter((m) => m.id != -1), y = [];
|
|
3502
|
-
e.forEach((m) => {
|
|
3503
|
-
y.push(m.id);
|
|
3504
|
-
}), this.onSelectChange(y, e);
|
|
3505
|
-
} else
|
|
3506
|
-
this.onSelectChange([], []);
|
|
3507
|
-
},
|
|
3508
|
-
getScroller() {
|
|
3509
|
-
if (!this.$el || !this.tableIds)
|
|
3510
|
-
return null;
|
|
3511
|
-
let f = `#${this.tableIds} .el-table__body-wrapper`;
|
|
3512
|
-
return this.$el.querySelector(f);
|
|
3513
|
-
},
|
|
3514
|
-
clearTableSource() {
|
|
3515
|
-
var f;
|
|
3516
|
-
if (this.$refs.table.localDataSource && ((f = this.$refs.table) == null ? void 0 : f.localDataSource.length) > 100) {
|
|
3517
|
-
let r = [];
|
|
3518
|
-
this.$refs.table.localDataSource.forEach((y, m) => {
|
|
3519
|
-
m > this.eleScrollNum.star && m <= this.eleScrollNum.end && r.push(y);
|
|
3520
|
-
}), this.$refs.table.localDataSource = r;
|
|
3521
|
-
let e = this.getScroller();
|
|
3522
|
-
if (e) {
|
|
3523
|
-
let m = e.scrollTop % this.eleScrollNum.eleHig;
|
|
3524
|
-
e.scrollTop = m;
|
|
3525
|
-
}
|
|
3526
|
-
}
|
|
3527
|
-
},
|
|
3528
|
-
columnChange(f) {
|
|
3529
|
-
this.columnsSetting = [...f];
|
|
3530
|
-
},
|
|
3531
|
-
operatorScope(f, r) {
|
|
3532
|
-
if (f.hyperlink) {
|
|
3533
|
-
const e = f.sourceFk !== void 0 ? f.sourceFk : !(f.fieldType != "fk" && f.fieldType != "about" && f.fieldType != "user");
|
|
3534
|
-
if (this.getFristColumn.prop === f.prop && !e) {
|
|
3535
|
-
this.baseQuickView(r);
|
|
3536
|
-
return;
|
|
3537
|
-
}
|
|
3538
|
-
e && this.baseQuickForm(r, f);
|
|
3539
|
-
}
|
|
3540
|
-
},
|
|
3541
|
-
changeQuickView(f) {
|
|
3542
|
-
if (this.statu)
|
|
3543
|
-
return;
|
|
3544
|
-
this.showLoading();
|
|
3545
|
-
const r = this.lineQuickView(f);
|
|
3546
|
-
(typeof r == "object" || typeof r == "function") && typeof r.then == "function" ? r.then((e) => {
|
|
3547
|
-
this.changeQuickViewOk(e);
|
|
3548
|
-
}).catch(() => {
|
|
3549
|
-
console.log("\u7528\u6237\u7EC8\u6B62\u64CD\u4F5C"), this.hideLoading();
|
|
3550
|
-
}) : this.changeQuickViewOk(f);
|
|
3551
|
-
},
|
|
3552
|
-
sbumitOk() {
|
|
3553
|
-
this.refresh(!0), this.getDetail();
|
|
3554
|
-
},
|
|
3555
|
-
getDetail() {
|
|
3556
|
-
It({ id: this.id, tableId: this.tableDatas.id }).then((f) => {
|
|
3557
|
-
f.success && (this.detail = f.data[0]);
|
|
3558
|
-
});
|
|
3559
|
-
},
|
|
3560
|
-
lookupSeled(f) {
|
|
3561
|
-
if (f.data.length == 0)
|
|
3562
|
-
return;
|
|
3563
|
-
const r = this.$message({
|
|
3564
|
-
message: this.$i18nt("gd.https.addingData"),
|
|
3565
|
-
duration: 0,
|
|
3566
|
-
iconClass: "el-icon-loading"
|
|
3567
|
-
});
|
|
3568
|
-
At({
|
|
3569
|
-
crowdListId: this.id,
|
|
3570
|
-
ids: f.data.join(",")
|
|
3571
|
-
}).then((e) => {
|
|
3572
|
-
r.close(), e.code == 0 ? (this.$message.success(this.$i18nt("gd.https.operateSucc")), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail") + e.message);
|
|
3573
|
-
});
|
|
3574
|
-
},
|
|
3575
|
-
baseQuickView(f) {
|
|
3576
|
-
if (this.statu)
|
|
3577
|
-
return;
|
|
3578
|
-
this.statu = !0;
|
|
3579
|
-
const r = this.$message({
|
|
3580
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
3581
|
-
duration: 0,
|
|
3582
|
-
iconClass: "el-icon-loading"
|
|
3583
|
-
});
|
|
3584
|
-
this.$refs.middleware.init({ tableId: this.tableData.id, data: [f] }).then((e) => {
|
|
3585
|
-
this.statu = !1, r.close();
|
|
3586
|
-
});
|
|
3587
|
-
},
|
|
3588
|
-
baseQuickForm(f, r) {
|
|
3589
|
-
if (!this.statu) {
|
|
3590
|
-
if (f.item.fieldType == "about") {
|
|
3591
|
-
this.baseQuickAbout({ data: f, item: r });
|
|
3592
|
-
return;
|
|
3593
|
-
}
|
|
3594
|
-
if (r.fieldType == "participants") {
|
|
3595
|
-
let e = this.tableLists.filter((m) => m.tablename == f.tableName)[0];
|
|
3596
|
-
if (e === void 0) {
|
|
3597
|
-
this.$message.error(this.$i18nt("gd.solution.dataErrorTip", "\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));
|
|
3598
|
-
return;
|
|
3599
|
-
}
|
|
3600
|
-
this.statu = !0;
|
|
3601
|
-
const y = this.$message({
|
|
3602
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
3603
|
-
duration: 0,
|
|
3604
|
-
iconClass: "el-icon-loading"
|
|
3605
|
-
});
|
|
3606
|
-
this.$refs.middleware.init({
|
|
3607
|
-
tableId: e.id,
|
|
3608
|
-
data: [f]
|
|
3609
|
-
}).then((m) => {
|
|
3610
|
-
setTimeout(() => {
|
|
3611
|
-
this.statu = !1;
|
|
3612
|
-
}, 1e3), y.close(), this.hideLoading();
|
|
3613
|
-
});
|
|
3614
|
-
return;
|
|
3615
|
-
}
|
|
3616
|
-
this.baseQuickFk({ data: f, item: r });
|
|
3617
|
-
}
|
|
3618
|
-
},
|
|
3619
|
-
baseQuickAbout(f) {
|
|
3620
|
-
this.statu = !0;
|
|
3621
|
-
const r = this.$message({
|
|
3622
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
3623
|
-
duration: 0,
|
|
3624
|
-
iconClass: "el-icon-loading"
|
|
3625
|
-
});
|
|
3626
|
-
It({
|
|
3627
|
-
tableId: this.tableData.id,
|
|
3628
|
-
id: f.data.id
|
|
3629
|
-
}).then((e) => {
|
|
3630
|
-
if (e.success) {
|
|
3631
|
-
let y = f.item.prop + "_abouttable", m = {
|
|
3632
|
-
data: f.data,
|
|
3633
|
-
item: Object.assign(f.item, {
|
|
3634
|
-
fkEntityName: e.data[0][y]
|
|
3635
|
-
})
|
|
3636
|
-
};
|
|
3637
|
-
this.baseQuickFk(m, r);
|
|
3638
|
-
} else
|
|
3639
|
-
r.close(), this.statu = !1, this.$nextTick(() => {
|
|
3640
|
-
setTimeout(() => {
|
|
3641
|
-
this.$message.error(e.message);
|
|
3642
|
-
}, 0);
|
|
3643
|
-
});
|
|
3644
|
-
});
|
|
3645
|
-
},
|
|
3646
|
-
baseQuickFk(f, r) {
|
|
3647
|
-
let e = r;
|
|
3648
|
-
f.item.fieldType != "about" && (this.statu = !0, e = this.$message({
|
|
3649
|
-
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
3650
|
-
duration: 0,
|
|
3651
|
-
iconClass: "el-icon-loading"
|
|
3652
|
-
}));
|
|
3653
|
-
let y = {
|
|
3654
|
-
thisTableName: this.tableData.tableName,
|
|
3655
|
-
thisIdValue: f.data.id,
|
|
3656
|
-
thisFiled: f.item.columnName,
|
|
3657
|
-
fkTable: f.item.fkEntityName
|
|
3658
|
-
};
|
|
3659
|
-
Kt(y).then((m) => {
|
|
3660
|
-
m.success ? this.$refs.middleware.init(
|
|
3661
|
-
Object.assign(m.data, {
|
|
3662
|
-
fieldType: f.item.fieldType
|
|
3663
|
-
})
|
|
3664
|
-
).then((a) => {
|
|
3665
|
-
this.statu = !1, e && e.close();
|
|
3666
|
-
}) : (e && e.close(), this.statu = !1, this.$nextTick(() => {
|
|
3667
|
-
setTimeout(() => {
|
|
3668
|
-
this.$message.error(m.message);
|
|
3669
|
-
}, 0);
|
|
3670
|
-
}));
|
|
3671
|
-
});
|
|
3672
|
-
},
|
|
3673
|
-
showLoading() {
|
|
3674
|
-
this.statu = !0;
|
|
3675
|
-
},
|
|
3676
|
-
hideLoading(f = 1500) {
|
|
3677
|
-
setTimeout(() => {
|
|
3678
|
-
this.statu = !1;
|
|
3679
|
-
}, f);
|
|
3680
|
-
},
|
|
3681
|
-
findByOk(f) {
|
|
3682
|
-
if (this.findByType = f, f == 1) {
|
|
3683
|
-
this.$refs.engineSearch.open({
|
|
3684
|
-
effectType: "participants",
|
|
3685
|
-
fkEntityName: this.fkEntityName,
|
|
3686
|
-
options: {},
|
|
3687
|
-
val: [],
|
|
3688
|
-
fkData: []
|
|
3689
|
-
});
|
|
3690
|
-
return;
|
|
3691
|
-
}
|
|
3692
|
-
this.$refs.findList.open({
|
|
3693
|
-
tableId: this.tableId,
|
|
3694
|
-
type: f == 2 ? 1 : 2,
|
|
3695
|
-
fkEntityName: this.fkEntityName,
|
|
3696
|
-
byviewdeId: this.viewCode,
|
|
3697
|
-
viewRecord: null
|
|
3698
|
-
});
|
|
3699
|
-
},
|
|
3700
|
-
add() {
|
|
3701
|
-
this.type == 1 ? this.$refs.findBy.open() : (this.findByType = 4, this.$refs.findList.open({
|
|
3702
|
-
tableId: this.tableId,
|
|
3703
|
-
fkEntityName: this.fkEntityName,
|
|
3704
|
-
type: 3,
|
|
3705
|
-
viewRecord: JSON.parse(this.detail.queryfetchxml),
|
|
3706
|
-
byviewdeId: this.viewCode
|
|
3707
|
-
}));
|
|
3708
|
-
},
|
|
3709
|
-
del() {
|
|
3710
|
-
if (this.selectedRowKeys.length === 0) {
|
|
3711
|
-
this.$message.warning(this.$i18nt("gd.https.delTip"));
|
|
3712
|
-
return;
|
|
3713
|
-
}
|
|
3714
|
-
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
3715
|
-
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u8BA4\u5220\u9664"),
|
|
3716
|
-
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
3717
|
-
type: "warning",
|
|
3718
|
-
confirmButtonClass: "el-button--danger"
|
|
3719
|
-
}).then(() => {
|
|
3720
|
-
Ot({
|
|
3721
|
-
crowdListId: this.id,
|
|
3722
|
-
ids: this.selectedRowKeys.join(",")
|
|
3723
|
-
}).then((f) => {
|
|
3724
|
-
f.code == 0 ? (this.$message.success(this.$i18nt("gd.https.delSucc")), this.refresh()) : this.$message.error(this.$i18nt("gd.https.delFail") + f.message);
|
|
3725
|
-
});
|
|
3726
|
-
}).catch(() => {
|
|
3727
|
-
});
|
|
3728
|
-
},
|
|
3729
|
-
open() {
|
|
3730
|
-
this.spinning = !0, this.show = !1, this.$nextTick(() => {
|
|
3731
|
-
setTimeout(() => {
|
|
3732
|
-
this.baseGetTableData();
|
|
3733
|
-
}, 100);
|
|
3734
|
-
});
|
|
3735
|
-
},
|
|
3736
|
-
onSelectChange(f, r) {
|
|
3737
|
-
this.selectedRowKeys = f, this.selectedRows = r, this.$emit("changeSelect", f, r);
|
|
3738
|
-
},
|
|
3739
|
-
baseGetTableData() {
|
|
3740
|
-
let f = this.record.columns ? this.record.columns : null;
|
|
3741
|
-
if (f) {
|
|
3742
|
-
this.show = !0, this.columns = [...f], this.spinning = !1, this.$nextTick(() => {
|
|
3743
|
-
setTimeout(() => {
|
|
3744
|
-
this.refresh();
|
|
3745
|
-
}, 100);
|
|
3746
|
-
});
|
|
3747
|
-
return;
|
|
3748
|
-
}
|
|
3749
|
-
Gt({
|
|
3750
|
-
tableId: this.tableId
|
|
3751
|
-
}).then((r) => {
|
|
3752
|
-
r.success && (this.tableData = r.data.table, this.viewList = r.data.viewlist, this.baseGetView());
|
|
3753
|
-
});
|
|
3754
|
-
},
|
|
3755
|
-
baseGetView() {
|
|
3756
|
-
let f = this.viewList.filter((a) => a.id == this.viewCode)[0];
|
|
3757
|
-
f == null && (f = this.viewList[0]), this.viewRecord = {
|
|
3758
|
-
...f
|
|
3759
|
-
};
|
|
3760
|
-
let r = [], e = 0, y = 0;
|
|
3761
|
-
this.viewRecord.sysviewfields.forEach((a, l) => {
|
|
3762
|
-
e += this.columnsMax === 0 ? Number(a.width) : l + 1 > this.columnsMax ? 0 : Number(a.width);
|
|
3763
|
-
let n = qt(a, l, this.viewRecord.frozencolumn), h = Object.assign(n || {}, {
|
|
3764
|
-
checked: this.columnsMax === 0 ? n.checked : l + 1 > this.columnsMax ? !1 : n.checked
|
|
3765
|
-
});
|
|
3766
|
-
y === 0 && n && h.checked && (h = Object.assign(h, {
|
|
3767
|
-
scopedSlots: {
|
|
3768
|
-
customRender: n.prop
|
|
3769
|
-
},
|
|
3770
|
-
ellipsis: !1
|
|
3771
|
-
})), n && r.push(
|
|
3772
|
-
Object.assign(h, {
|
|
3773
|
-
index: h.checked ? y : null
|
|
3774
|
-
})
|
|
3775
|
-
), n && h.checked && (y += 1);
|
|
3776
|
-
});
|
|
3777
|
-
let m = {
|
|
3778
|
-
type: "selection",
|
|
3779
|
-
width: "60",
|
|
3780
|
-
fixed: !0
|
|
3781
|
-
};
|
|
3782
|
-
this.viewRecord.frozencolumn > 0 && (m = Object.assign(m, {
|
|
3783
|
-
fixed: "left"
|
|
3784
|
-
})), this.type == 2 ? this.columns = r : this.columns = [m].concat(r), this.x = e, this.$emit("columns", { columns: r, fkEntityName: this.fkEntityName }), this.show = !0, this.spinning = !1, this.$nextTick(() => {
|
|
3785
|
-
setTimeout(() => {
|
|
3786
|
-
this.refresh();
|
|
3787
|
-
}, 10);
|
|
3788
|
-
});
|
|
3789
|
-
},
|
|
3790
|
-
refresh(f = !0) {
|
|
3791
|
-
this.$refs.table ? this.$refs.table.refresh(f) : console.log("err:\u89C6\u56FE\u672A\u52A0\u8F7D\uFF0C\u8BF7\u7B49\u5F85\u52A0\u8F7D\u5B8C\u6210\uFF01");
|
|
3792
|
-
},
|
|
3793
|
-
baseShowBtns(f) {
|
|
3794
|
-
let r = [...this.sysViewButtons];
|
|
3795
|
-
r.map((e) => (e.show = f.includes(e.displayName) ? !0 : e.show, e)), this.sysViewButtons = [...r];
|
|
3796
|
-
},
|
|
3797
|
-
baseHideBtns(f) {
|
|
3798
|
-
let r = [...this.sysViewButtons];
|
|
3799
|
-
r.map((e) => (e.show = !f.includes(e.displayName), e)), this.sysViewButtons = [...r];
|
|
3800
|
-
},
|
|
3801
|
-
getDictionary(f) {
|
|
3802
|
-
return this.$options.filters.dictData(f);
|
|
3803
|
-
},
|
|
3804
|
-
dictSwitch(f, r) {
|
|
3805
|
-
let e = this.$options.filters.dictData(r).filter((y) => y.code == f)[0];
|
|
3806
|
-
return e != null && e.colour ? e.colour : null;
|
|
3807
|
-
},
|
|
3808
|
-
showImg(f, r, e) {
|
|
3809
|
-
if (this.statu)
|
|
3810
|
-
return;
|
|
3811
|
-
this.showLoading();
|
|
3812
|
-
const m = this.$refs[`img_${e}`][0].dataset.src, a = this.$refs.effectTypeImg.children;
|
|
3813
|
-
let l = [];
|
|
3814
|
-
for (let n = 0; n < a.length; n++)
|
|
3815
|
-
l.push(a[n].dataset.src);
|
|
3816
|
-
this.imgList = l, this.currentImg = m, this.$refs.imgPreview.imgListShow = !0, this.$refs.imgPreview.open(), this.hideLoading();
|
|
3817
|
-
},
|
|
3818
|
-
getFileBlob(f) {
|
|
3819
|
-
return Tt({ id: f.Id }).then((r) => r.data);
|
|
3820
|
-
},
|
|
3821
|
-
preview(f) {
|
|
3822
|
-
if (this.statu)
|
|
3823
|
-
return;
|
|
3824
|
-
this.showLoading();
|
|
3825
|
-
const r = f.fileoriginname.substr(f.fileoriginname.lastIndexOf(".") + 1).toLowerCase();
|
|
3826
|
-
if (this.fileOptions = { ...this.item }, ["gif", "jpeg", "png", "jpg", "JPG", "PNG", "bmp", "BMP"].includes(r)) {
|
|
3827
|
-
sysFileInfoPreview({
|
|
3828
|
-
id: f.id
|
|
3829
|
-
}).then((e) => {
|
|
3830
|
-
const y = window.URL.createObjectURL(new Blob([e]));
|
|
3831
|
-
this.imgList = [y], this.currentImg = y, this.$refs.imgPreview.open(), this.statu = !1, this.hideLoading();
|
|
3832
|
-
}).catch(() => {
|
|
3833
|
-
this.hideLoading();
|
|
3834
|
-
});
|
|
3835
|
-
return;
|
|
3836
|
-
}
|
|
3837
|
-
this.showComponent = "filePreview", this.$nextTick(() => {
|
|
3838
|
-
setTimeout(() => {
|
|
3839
|
-
this.$refs.filePreview.open(Object.assign(f, { fileId: f.id || f.Id, name: f.fileoriginname })), this.hideLoading();
|
|
3840
|
-
}, 0);
|
|
3841
|
-
});
|
|
3842
|
-
},
|
|
3843
|
-
closedPreview() {
|
|
3844
|
-
this.showComponent = "";
|
|
3845
|
-
},
|
|
3846
|
-
showFile(f, r) {
|
|
3847
|
-
if (this.statu)
|
|
3848
|
-
return;
|
|
3849
|
-
this.showLoading();
|
|
3850
|
-
const e = r[f.prop];
|
|
3851
|
-
let y = e;
|
|
3852
|
-
typeof e == "string" && (y = JSON.parse(e));
|
|
3853
|
-
let m = r.name ? r.name : f.title, a = new Xt(), l = [], n = {};
|
|
3854
|
-
y.forEach((w) => {
|
|
3855
|
-
let x = this.getFileBlob(w).then((v) => {
|
|
3856
|
-
a.file(w.fileoriginname, v, {
|
|
3857
|
-
binary: !0
|
|
3858
|
-
}), n[w.fileoriginname] = v;
|
|
3859
|
-
});
|
|
3860
|
-
l.push(x);
|
|
3861
|
-
});
|
|
3862
|
-
const h = this.$message({
|
|
3863
|
-
message: this.$i18nt("gd.https.downloadingFiles", "\u6587\u4EF6\u6B63\u5728\u538B\u7F29\u4E0B\u8F7D\u4E2D..."),
|
|
3864
|
-
duration: 0,
|
|
3865
|
-
iconClass: "el-icon-loading"
|
|
3866
|
-
});
|
|
3867
|
-
Promise.all(l).then(() => {
|
|
3868
|
-
a.generateAsync({
|
|
3869
|
-
type: "blob"
|
|
3870
|
-
}).then((w) => {
|
|
3871
|
-
FileSaver.saveAs(w, m), this.hideLoading(), h.close();
|
|
3872
|
-
});
|
|
3873
|
-
}).catch((w) => {
|
|
3874
|
-
h.close(), this.hideLoading(), this.$message.error("err!");
|
|
3875
|
-
});
|
|
3876
|
-
},
|
|
3877
|
-
downFile(f) {
|
|
3878
|
-
Tt({ id: f.Id }).then((r) => {
|
|
3879
|
-
this.exportWay(r, f);
|
|
3880
|
-
});
|
|
3881
|
-
},
|
|
3882
|
-
exportWay(f, r) {
|
|
3883
|
-
const e = this.$message({
|
|
3884
|
-
message: this.$i18nt("gd.https.downloading"),
|
|
3885
|
-
duration: 0,
|
|
3886
|
-
iconClass: "el-icon-loading"
|
|
3887
|
-
});
|
|
3888
|
-
if (f) {
|
|
3889
|
-
const y = new Blob([f.data], {
|
|
3890
|
-
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
3891
|
-
}), m = URL.createObjectURL(y), a = document.createElement("a");
|
|
3892
|
-
a.style.display = "none", a.href = m, a.download = r.FileOriginName, a.click(), URL.revokeObjectURL(a.href), setTimeout(() => {
|
|
3893
|
-
e.close();
|
|
3894
|
-
}, 1e3);
|
|
3895
|
-
} else
|
|
3896
|
-
e.close(), this.$message.error(f.message);
|
|
3897
|
-
},
|
|
3898
|
-
doEvent(f) {
|
|
3899
|
-
let r = f.item.functionName;
|
|
3900
|
-
this[r](f);
|
|
3901
|
-
}
|
|
3902
|
-
},
|
|
3903
|
-
created() {
|
|
3904
|
-
}
|
|
3905
|
-
};
|
|
3906
|
-
var De = function() {
|
|
3907
|
-
var r = this, e = r._self._c;
|
|
3908
|
-
return e("div", { staticStyle: { "min-height": "260px", position: "relative" } }, [r.fkEntityName == "" ? e("el-empty", [e("span", { attrs: { slot: "description" }, slot: "description" }, [r._v(r._s(r.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]) : r._e(), e("gd-view-loading", { attrs: { spinning: r.spinning, isRelation: !0 } }), r.show ? e("div", { staticClass: "tab-view" }, [e("div", [e("gd-tables", { ref: "table", attrs: { height: r.hig, columns: r.columns, dataSource: r.loadData, size: r.tableSize, pageSize: r.tablePageSize, selectedRowKeys: r.selectedRowKeys, initialLoading: !1, filtering: !1, showPagination: !0 }, on: { onChange: r.onSelectChange, rowClick: r.rowClick, columnChange: r.columnChange }, scopedSlots: r._u([{ key: "operator", fn: function() {
|
|
3909
|
-
return [e("div", { staticClass: "setting-navs" }, [e("gd-btn-list", { attrs: { sysViewButtons: r.sysViewButtons }, on: { functionName: r.doEvent } })], 1)];
|
|
3910
|
-
}, proxy: !0 }, r._l(r.getColumnsed, function(y, m) {
|
|
3911
|
-
return { key: y.prop, fn: function({ row: a }) {
|
|
3912
|
-
return [y.effectType == "datepicker" ? e("Tdatepicker", { attrs: { item: y, row: a }, on: { operatorScope: function(l) {
|
|
3913
|
-
return r.operatorScope(y, a);
|
|
3914
|
-
} } }) : y.effectType == "currency" || y.effectType == "inputnumber" || y.effectType == "double" ? e("Tcurrency", { attrs: { item: y, row: a }, on: { operatorScope: function(l) {
|
|
3915
|
-
return r.operatorScope(y, a);
|
|
3916
|
-
} } }) : y.effectType == "file" ? e("Tfile", { attrs: { item: y, row: a }, on: { preview: r.preview, showFile: function(l) {
|
|
3917
|
-
return r.showFile(y, a);
|
|
3918
|
-
} } }) : y.effectType == "image" ? e("div", { ref: "effectTypeImg", refInFor: !0, staticClass: "effectType-img" }, [r._l(r.imgList, function(l) {
|
|
3919
|
-
return [e("img", { directives: [{ name: "lazyImg", rawName: "v-lazyImg", value: l, expression: "ite" }], ref: `img_${l}`, refInFor: !0, staticClass: "img-data", staticStyle: { width: "auto", height: "18px" }, attrs: { "data-class": "el-table__body-wrapper", "data-url": l }, on: { click: function(n) {
|
|
3920
|
-
return r.showImg(y, a, l);
|
|
3921
|
-
} } })];
|
|
3922
|
-
})], 2) : y.effectType == "checkbox" ? e("Checkboxs", { attrs: { item: y, row: r.record } }) : y.effectType == "select" || y.effectType == "radio" || y.effectType == "switch" ? e("DictSwitch", { attrs: { item: y, row: a }, on: { operatorScope: function(l) {
|
|
3923
|
-
return r.operatorScope(y, a);
|
|
3924
|
-
} } }) : y.effectType == "participants" ? e("Participants", { attrs: { item: y, row: a }, on: { baseQuickForm: (l) => r.baseQuickForm(l, y) } }) : e("div", { staticClass: "line1", class: y.hyperlink ? "active-color active-items" : "" }, [e("span", { on: { click: function(l) {
|
|
3925
|
-
return l.stopPropagation(), r.operatorScope(y, a);
|
|
3926
|
-
} } }, [r._v(r._s(a[y.prop]))])])];
|
|
3927
|
-
} };
|
|
3928
|
-
})], null, !0) })], 1)]) : r._e(), e("findBy", { ref: "findBy", on: { ok: r.findByOk } }), e("findList", { ref: "findList", attrs: { id: r.id }, on: { ok: r.sbumitOk } }), e("gd-search", { ref: "engineSearch", attrs: { disabled: !0, showView: !0, appendToBody: !0 }, on: { lookupSeled: r.lookupSeled } }), e("gd-img-preview", { ref: "imgPreview", attrs: { filePreviewShow: r.imgList.length > 0, imgList: r.imgList, currentImg: r.currentImg } }), r.showComponent === "filePreview" ? e("gd-file-preview", { ref: "filePreview", attrs: { options: r.fileOptions }, on: { closed: r.closedPreview } }) : r._e(), e("gd-middleware", { ref: "middleware", on: { ok: function(y) {
|
|
3929
|
-
return r.refresh(!1);
|
|
3930
|
-
} } })], 1);
|
|
3931
|
-
}, Fe = [], $e = /* @__PURE__ */ ut(
|
|
3932
|
-
Re,
|
|
3933
|
-
De,
|
|
3934
|
-
Fe,
|
|
3935
|
-
!1,
|
|
3936
|
-
null,
|
|
3937
|
-
"54242469",
|
|
3938
|
-
null,
|
|
3939
|
-
null
|
|
3940
|
-
);
|
|
3941
|
-
const Ne = $e.exports;
|
|
3942
|
-
const Le = {
|
|
3943
|
-
name: "GdScreenCrowd",
|
|
3944
|
-
components: {
|
|
3945
|
-
screenTable: Ne
|
|
3946
|
-
},
|
|
3947
|
-
props: {
|
|
3948
|
-
record: {
|
|
3949
|
-
type: Object,
|
|
3950
|
-
default: () => ({})
|
|
3951
|
-
},
|
|
3952
|
-
tableData: {
|
|
3953
|
-
type: Object,
|
|
3954
|
-
default: () => ({})
|
|
3955
|
-
},
|
|
3956
|
-
id: {
|
|
3957
|
-
type: [String, Number],
|
|
3958
|
-
default: ""
|
|
3959
|
-
},
|
|
3960
|
-
parameterData: {
|
|
3961
|
-
type: Object,
|
|
3962
|
-
default: () => ({})
|
|
3963
|
-
}
|
|
3964
|
-
},
|
|
3965
|
-
data() {
|
|
3966
|
-
return {
|
|
3967
|
-
load: !1,
|
|
3968
|
-
fkEntity: [],
|
|
3969
|
-
fkEntityName: "",
|
|
3970
|
-
fkData: {},
|
|
3971
|
-
viewId: "",
|
|
3972
|
-
tableId: "",
|
|
3973
|
-
type: "1"
|
|
3974
|
-
};
|
|
3975
|
-
},
|
|
3976
|
-
watch: {
|
|
3977
|
-
id: {
|
|
3978
|
-
handler(f) {
|
|
3979
|
-
this.changeId(f);
|
|
3980
|
-
},
|
|
3981
|
-
deep: !0,
|
|
3982
|
-
immediate: !0
|
|
3983
|
-
},
|
|
3984
|
-
record: {
|
|
3985
|
-
handler(f) {
|
|
3986
|
-
},
|
|
3987
|
-
deep: !0,
|
|
3988
|
-
immediate: !0
|
|
3989
|
-
},
|
|
3990
|
-
parameterData: {
|
|
3991
|
-
handler(f) {
|
|
3992
|
-
setTimeout(() => {
|
|
3993
|
-
this.change(this.id, this.record);
|
|
3994
|
-
}, 10);
|
|
3995
|
-
},
|
|
3996
|
-
deep: !0,
|
|
3997
|
-
immediate: !0
|
|
3998
|
-
}
|
|
3999
|
-
},
|
|
4000
|
-
methods: {
|
|
4001
|
-
changColumns(f) {
|
|
4002
|
-
let r = [...this.fkEntity];
|
|
4003
|
-
r.map((e) => (e.fkEntityName == f.fkEntityName && (e.columns = f.columns), e)), this.fkEntity = [...r];
|
|
4004
|
-
},
|
|
4005
|
-
change(f, r) {
|
|
4006
|
-
let e = !1, y = this.parameterData.listobjecttype, m = this.parameterData.listmembertype, a = this.fkEntity.filter((l) => l.code == y)[0];
|
|
4007
|
-
a != null && (e = this.fkEntityName != a.code, this.fkData = a, this.fkEntityName = a.fkEntityName, this.viewId = a.viewId, this.tableId = a.id), e && this.$refs.screenTable.open(), this.type = m || "2";
|
|
4008
|
-
},
|
|
4009
|
-
changeId(f) {
|
|
4010
|
-
this.$nextTick(() => {
|
|
4011
|
-
setTimeout(() => {
|
|
4012
|
-
this.$refs.screenTable.getDetail(f);
|
|
4013
|
-
}, 0);
|
|
4014
|
-
});
|
|
4015
|
-
}
|
|
4016
|
-
},
|
|
4017
|
-
mounted() {
|
|
4018
|
-
this.fkEntity = this.record.fkEntity;
|
|
4019
|
-
}
|
|
4020
|
-
};
|
|
4021
|
-
var je = function() {
|
|
4022
|
-
var r = this, e = r._self._c;
|
|
4023
|
-
return e("div", [e("screenTable", { ref: "screenTable", attrs: { record: r.fkData, id: r.id, viewCode: r.viewId, tableId: r.tableId, tableDatas: r.tableData, fkEntityName: r.fkEntityName, type: r.type }, on: { columns: r.changColumns } })], 1);
|
|
4024
|
-
}, Pe = [], Ue = /* @__PURE__ */ ut(
|
|
4025
|
-
Le,
|
|
4026
|
-
je,
|
|
4027
|
-
Pe,
|
|
4028
|
-
!1,
|
|
4029
|
-
null,
|
|
4030
|
-
"a24ad921",
|
|
4031
|
-
null,
|
|
4032
|
-
null
|
|
4033
|
-
);
|
|
4034
|
-
const Me = Ue.exports;
|
|
4035
|
-
const Ze = {
|
|
4036
|
-
props: {
|
|
4037
|
-
record: {
|
|
4038
|
-
type: Object,
|
|
4039
|
-
required: !0
|
|
4040
|
-
},
|
|
4041
|
-
develop: {
|
|
4042
|
-
type: [Number, String],
|
|
4043
|
-
default: 1
|
|
4044
|
-
},
|
|
4045
|
-
tableData: {
|
|
4046
|
-
type: Object,
|
|
4047
|
-
default: () => ({})
|
|
4048
|
-
},
|
|
4049
|
-
height: {
|
|
4050
|
-
type: Number,
|
|
4051
|
-
default: 100
|
|
4052
|
-
},
|
|
4053
|
-
model: {
|
|
4054
|
-
type: Object,
|
|
4055
|
-
default: () => ({})
|
|
4056
|
-
}
|
|
4057
|
-
},
|
|
4058
|
-
data() {
|
|
4059
|
-
return {};
|
|
4060
|
-
},
|
|
4061
|
-
components: { ModuleSkeleton: Zt, ScreenIndex: Me },
|
|
4062
|
-
computed: {
|
|
4063
|
-
fkValue() {
|
|
4064
|
-
return this.model.id !== void 0 ? this.model.id : "";
|
|
4065
|
-
}
|
|
4066
|
-
},
|
|
4067
|
-
methods: {
|
|
4068
|
-
okScreen(f) {
|
|
4069
|
-
}
|
|
4070
|
-
}
|
|
4071
|
-
};
|
|
4072
|
-
var We = function() {
|
|
4073
|
-
var r = this, e = r._self._c;
|
|
4074
|
-
return e("div", [r.develop == 1 ? e("ModuleSkeleton", { attrs: { record: r.record } }) : [e("ScreenIndex", { ref: "screenUseView", attrs: { record: r.record, tableData: r.tableData, id: r.fkValue, parameterData: r.model }, on: { ok: r.okScreen } })]], 2);
|
|
4075
|
-
}, Ve = [], He = /* @__PURE__ */ ut(
|
|
4076
|
-
Ze,
|
|
4077
|
-
We,
|
|
4078
|
-
Ve,
|
|
4079
|
-
!1,
|
|
4080
|
-
null,
|
|
4081
|
-
"a27b0db9",
|
|
4082
|
-
null,
|
|
4083
|
-
null
|
|
4084
|
-
);
|
|
4085
|
-
const Ke = He.exports, oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4086
|
-
__proto__: null,
|
|
4087
|
-
default: Ke
|
|
4088
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
4089
|
-
export {
|
|
4090
|
-
Xt as J,
|
|
4091
|
-
ii as a,
|
|
4092
|
-
ri as b,
|
|
4093
|
-
ni as c,
|
|
4094
|
-
si as d,
|
|
4095
|
-
ai as e,
|
|
4096
|
-
oi as s,
|
|
4097
|
-
ei as t
|
|
4098
|
-
};
|