@esri/solutions-components 5.1.0-next.142 → 5.1.0-next.143
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/dist/cdn/{D4MZYBH7.js → 4JGB6WLL.js} +1 -1
- package/dist/cdn/{7NAC32PQ.js → 4MAZNAHZ.js} +1 -1
- package/dist/cdn/{Z6UCVV4K.js → 4RLG6MXK.js} +1 -1
- package/dist/cdn/56A5UMZG.js +9 -0
- package/dist/cdn/{WCOEPRRK.js → 56XVVIG7.js} +1 -1
- package/dist/cdn/{W5FWW67G.js → 5LIR6BQY.js} +1 -1
- package/dist/cdn/{UVOAWVML.js → 5MPYPIR2.js} +1 -1
- package/dist/cdn/{HO4GBQJG.js → 6Z3DXRF6.js} +1 -1
- package/dist/cdn/{HT2HC33W.js → 7FJTZ7VA.js} +1 -1
- package/dist/cdn/{GPL6FNKN.js → 7GXMCAWQ.js} +1 -1
- package/dist/cdn/{E5EU4SVV.js → 7WD3GNG4.js} +1 -1
- package/dist/cdn/{3UJAJDSF.js → AGB374BK.js} +1 -1
- package/dist/cdn/{2KSXH2TC.js → AHB7W7RI.js} +1 -1
- package/dist/cdn/{6ID6N5BF.js → BGLTC5SO.js} +1 -1
- package/dist/cdn/{SSH4MSHE.js → BVSSQNES.js} +1 -1
- package/dist/cdn/{CEWRVOKP.js → C4OXBZJK.js} +1 -1
- package/dist/cdn/{SXVCHOTK.js → DFZZNKPK.js} +3 -6
- package/dist/cdn/{B33EUN4X.js → DKEYOEI7.js} +1 -1
- package/dist/cdn/{5UIJ4Z3C.js → DNPN62O5.js} +1 -1
- package/dist/cdn/{LLPT3R4B.js → E5E6J57F.js} +22 -22
- package/dist/cdn/{KEOBSFBN.js → EPOIEXNS.js} +1 -1
- package/dist/cdn/{JMCZPJDW.js → FVOCVCEE.js} +1 -1
- package/dist/cdn/{FV4F6RW3.js → FYT4Q5GJ.js} +1 -1
- package/dist/cdn/H2UL463J.js +2 -0
- package/dist/cdn/{FMTXVLZB.js → I22C4HE4.js} +1 -1
- package/dist/cdn/{SRT2KXZG.js → IEOFEUZI.js} +1 -1
- package/dist/cdn/ILLTWR2W.js +2 -0
- package/dist/cdn/{P2TNN5UL.js → J3HJC4SO.js} +1 -1
- package/dist/cdn/K4TDKKPB.js +18 -0
- package/dist/cdn/{23LRX7AS.js → KSQHSNTW.js} +1 -1
- package/dist/cdn/{CB7QDBRG.js → KUGXNF5Y.js} +1 -1
- package/dist/cdn/{52QHFDTC.js → LEK4P4OY.js} +1 -1
- package/dist/cdn/LKZFKOG4.js +2 -0
- package/dist/cdn/{RYEEEMFO.js → LYAXTCCM.js} +1 -1
- package/dist/cdn/{TFTW5B3R.js → MC5ARLKZ.js} +1 -1
- package/dist/cdn/{DNZ5U52C.js → MT5J66WR.js} +1 -1
- package/dist/cdn/{IFI66PVI.js → MVF7I3RU.js} +1 -1
- package/dist/cdn/{F3NG6RFP.js → NIHPHDXG.js} +31 -18
- package/dist/cdn/{UFPB7JD3.js → P67K4TAX.js} +1 -1
- package/dist/cdn/{ZIX74MNU.js → PPRV6EZZ.js} +1 -1
- package/dist/cdn/{PZW6JMSM.js → PUCDO65D.js} +1 -1
- package/dist/cdn/Q5TICZRX.js +15 -0
- package/dist/cdn/{GSD6O5J7.js → QHDEVLC3.js} +1 -1
- package/dist/cdn/{HNWINTTY.js → QQEYWBVV.js} +1 -1
- package/dist/cdn/{CUJ3M6UT.js → RRD4QUQS.js} +1 -1
- package/dist/cdn/{GWWU6HWB.js → RSCBZIAN.js} +17 -19
- package/dist/cdn/RUF6QBY7.js +2 -0
- package/dist/cdn/{UY5JVVRO.js → S5AQVTR2.js} +1 -1
- package/dist/cdn/{H7J2FXMS.js → SGQBWAPU.js} +1 -1
- package/dist/cdn/{MEDCFXMB.js → SOLCNPHW.js} +1 -1
- package/dist/cdn/{BQE2XAKC.js → SSIUWTQX.js} +1 -1
- package/dist/cdn/{34JROLRM.js → SYZEWVHU.js} +1 -1
- package/dist/cdn/{KGSB4I6Y.js → TWJSFINX.js} +1 -1
- package/dist/cdn/{VEDAG7UO.js → TX3LBQ6V.js} +1 -1
- package/dist/cdn/{ATHNXWV4.js → U3CNAJQZ.js} +115 -115
- package/dist/cdn/{TIRNZIMX.js → U4RHWD57.js} +1 -1
- package/dist/cdn/{UM3P3Q52.js → U6JZYJ4D.js} +1 -1
- package/dist/cdn/{PQNFWMST.js → ULFPP7PF.js} +1 -1
- package/dist/cdn/{N5D5ABJ6.js → UOGZGAJD.js} +1 -1
- package/dist/cdn/{NWCKV677.js → VBJSVR6T.js} +1 -1
- package/dist/cdn/WGS5W6W5.js +2 -0
- package/dist/cdn/{RPEQD2MH.js → WLM4HMMF.js} +1 -1
- package/dist/cdn/{MOH6GREK.js → X6JL6SAH.js} +1 -1
- package/dist/cdn/{DGNAMFJN.js → XBFG3KX6.js} +6 -2
- package/dist/cdn/{TIF36KTA.js → XXGM7HGO.js} +1 -1
- package/dist/cdn/{BLCW2CZO.js → Y77RX7KL.js} +1 -1
- package/dist/cdn/{ICSHJV2N.js → ZCSF2MJ5.js} +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +2 -2
- package/dist/chunks/assistantResponse.js +17 -19
- package/dist/chunks/cardsHelpers.js +12 -12
- package/dist/chunks/classifyIntent.js +31 -18
- package/dist/chunks/description.js +7 -3
- package/dist/chunks/designSolution.js +1 -1
- package/dist/chunks/downloadUtils.js +5 -5
- package/dist/chunks/getRelatedInfos.js +1 -1
- package/dist/chunks/helpers.js +75 -55
- package/dist/chunks/initialAssessment.js +3 -6
- package/dist/chunks/interfaces.js +45 -41
- package/dist/chunks/mapViewUtils.js +9 -9
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/queryUtils.js +3 -3
- package/dist/chunks/responseOptionsBuilderExclusion.js +12 -0
- package/dist/chunks/responseOptionsDefault.js +18 -0
- package/dist/chunks/solution-builder-assistant.js +7 -6
- package/dist/chunks/solution-deploy-dialog.js +157 -153
- package/dist/chunks/solutions-deploy-app-nav.js +3 -4
- package/dist/chunks/templates.js +6 -6
- package/dist/chunks/updateDesign.js +1 -1
- package/dist/chunks/validators.js +6 -6
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +8 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +355 -292
- package/dist/components/arcgis-solutions-assistant/index.js +1 -0
- package/dist/components/card-manager/customElement.js +6 -6
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +2 -2
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +2 -2
- package/dist/components/map-card/customElement.js +2 -2
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +2 -2
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +2 -2
- package/dist/components/refine-selection/customElement.js +2 -2
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-builder-assistant/customElement.d.ts +6 -2
- package/dist/components/solution-configure-titles/customElement.js +6 -6
- package/dist/components/solution-delete-dialog/customElement.js +2 -2
- package/dist/components/solution-deployed-card/customElement.js +2 -2
- package/dist/components/solution-deployed-card-panel/customElement.js +3 -3
- package/dist/components/solution-details-card/customElement.js +2 -2
- package/dist/components/solution-details-panel/customElement.js +2 -2
- package/dist/components/solution-resource-card/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +2 -2
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-user-avatar/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +160 -32
- package/dist/components/solutions-deploy-app/index.js +1 -1
- package/dist/components/solutions-deployed-list/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +7 -7
- package/dist/utils/interfaces.d.ts +1 -6
- package/package.json +1 -1
- package/dist/cdn/4WJ2UJWQ.js +0 -2
- package/dist/cdn/EXC566PM.js +0 -2
- package/dist/cdn/PUQBEN7F.js +0 -18
- package/dist/cdn/SFFLZSAY.js +0 -2
- package/dist/cdn/XC3IZAIH.js +0 -2
- package/dist/cdn/YM3CRTWP.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import u from"./7FJTZ7VA.js";import t from"./KSQHSNTW.js";import s from"./AGB374BK.js";import r from"./MC5ARLKZ.js";import q from"./SGQBWAPU.js";import n from"./EPOIEXNS.js";import m from"./WGS5W6W5.js";import l from"./7GXMCAWQ.js";import k from"./5MPYPIR2.js";import j from"./DKEYOEI7.js";import i from"./RUF6QBY7.js";import h from"./K4TDKKPB.js";import"./FILMKUOU.js";import"./BNRFT546.js";import g from"./QHDEVLC3.js";import"./ONARC6AZ.js";import{a as L}from"./7VD3Y4IF.js";import"./54AE7WD2.js";import"./S6U6SXMD.js";import e from"./H2UL463J.js";import b from"./LKZFKOG4.js";import{a as D,b as S,c as A}from"./2B4SGB3I.js";import{a as p}from"./I2NTSKBD.js";import"./3UKDJZ2D.js";import{a as C}from"./MGEDATQ7.js";import"./RMEDO4JC.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as w}from"./2I5LGZNX.js";import{E as o,F as a,G as f,I as _,K as T,h as v,i as c,q as d}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,,,,,,,{c:x,j:I,n:O,o:F,r:h},,{b:$},{a:k},,,{g:P,h:M},,,,,m,B,{a:y}])=>{var R=v`.back-color-override{background-color:var(--calcite-color-surface-3);--calcite-tab-border-color: var(--calcite-color-surface-4)}:host{--panel-edge-adjustment: 2vw;--assistant-panel-min-width: 420px;--assistant-panel-width: max(var(--assistant-panel-min-width), calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment) - 15px))}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tab{--calcite-color-focus: transparent}calcite-tab>*{--calcite-color-focus: initial}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-border-2);flex:1;min-height:0}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}.overflow-auto{overflow:auto}solution-details-panel{scroll-margin-top:3rem}.main-content{container-type:inline-size;display:flex;flex-direction:column;height:100%;overflow:hidden}.main-content.assistant-open{margin-inline-end:var(--assistant-panel-width)}.assistant-open solutions-searchsort-toolbar,.assistant-open solution-details-panel,.assistant-open solutions-deployed-shell,.assistant-open solutions-all-shell,.assistant-open calcite-tab-nav,.assistant-open solution-deployed-card-panel{margin-inline-start:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));margin-inline-end:0;width:auto;max-width:1440px}.builder-panel{position:fixed;top:65px;inset-inline-start:max(var(--panel-edge-adjustment),calc((96vw - 1440px) / 2 + var(--panel-edge-adjustment)));inset-inline-end:var(--assistant-panel-width);bottom:0;z-index:400;display:flex;flex-direction:column;transition:transform .3s cubic-bezier(.4,0,.2,1);transform:translate(0);pointer-events:auto}.builder-panel.display-none{display:flex!important;transform:translate(100%);pointer-events:none}.builder-panel:dir(rtl).display-none{transform:translate(-100%)}.builder-panel.display-none:has(~.assistant-panel.display-none){display:none!important;transition:none}.assistant-panel{position:fixed;top:65px;inset-inline-end:0;bottom:0;width:var(--assistant-panel-width);min-width:var(--assistant-panel-min-width);z-index:400;display:flex;flex-direction:column}@media(max-width:800px){.builder-panel{display:none!important}.assistant-panel{width:100%;box-shadow:none}.main-content.assistant-open{margin-inline-end:0}}.assistant-fab{position:fixed;bottom:var(--calcite-spacing-xxl);inset-inline-end:var(--calcite-spacing-xxl);z-index:500}calcite-tooltip{--calcite-tooltip-max-size-x: 16rem}.assistant-fab-popover{--calcite-popover-max-size-x: 16rem}.assistant-fab-popover__content{display:block;padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-md);font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word}`,V={solution:{title:"Bus Stop ADA Compliance Inspections",description:"Bus Stop ADA Compliance Inspections can be used to perform routine inspections of bus stops for ADA compliance and monitor inspection progress.",thumbnailUrl:k,tags:["Bus Stop","ADA Compliance","Inspection","Field","Monitor","ArcGIS Solutions"],strings:[{key:"inspectionsByMonth",value:"Inspections by Month",description:"Descriptive title of dashboard chart displaying the number of inspections completed by month."},{key:"inspectionsCompleted",value:"Inspections Completed",description:"Descriptive title of dashboard indicator displaying the total number of inspections completed."},{key:"assetInventory",value:"Bus Stop Inventory",description:"Descriptive title of dashboard indicator displaying the total number of bus stops."}]},items:[{id:"b21885d38b3c4924922ce36c90112737",title:"Bus Stop ADA Inspection Dashboard",description:"An ArcGIS Dashboards app used to monitor bus stop ADA compliance inspections.",type:"Dashboard"},{id:"54f69b6af00b4f06b1c1eef05e80dc93",title:"Bus Stop ADA Inspection Map",description:"A map used by the Bus Stop ADA Inspection Dashboard app to monitor inspections.",type:"Web Map"},{id:"2fc93fa4e07e42508669d02acb837a75",title:"Bus Stop ADA Inspection Field Map",description:"A map used in ArcGIS Field Maps to inspect bus stops in the field for ADA compliance.",type:"Web Map"},{id:"0bd4ecf9c95e4dcd8ff1744adc12f323",title:"BusStops_field",description:"A hosted feature layer view used to inspect bus stops for ADA compliance.",type:"Feature Layer (hosted, view)"},{id:"0bd4ecf9c95e4dcd8ff1744adc12f324",title:"BusStops_dashboard",description:"A hosted feature layer view used to monitor bus stop ADA inspections.",type:"Feature Layer (hosted, view)"},{id:"36d0bdce3a74436f8314c88c9667003e",title:"BusStops",description:"A hosted feature layer used to store bus stop and ADA inspection details.",type:"Feature Layer (hosted)"}],featureLayer:{itemId:"36d0bdce3a74436f8314c88c9667003e",addLayers:!0,layers:[{id:"0",type:"Point",typeMutable:!0,name:"BusStops",description:"Point layer containing bus stop locations and ADA compliance information.",customFields:[{name:"stop_id",type:"string",alias:"Stop ID",description:"Identifier for the bus stop.",choiceList:null,length:255},{name:"location_description",type:"string",alias:"Location Description",description:"Description of the bus stop location.",choiceList:null,length:255},{name:"shelter_present",type:"string",alias:"Shelter Present",description:"Indicates if a waiting shelter is present at the bus stop.",choiceList:["Yes","No"],length:5},{name:"bench_present",type:"string",alias:"Bench Present",description:"Indicates if a bench is present at the bus stop.",choiceList:["Yes","No"],length:5},{name:"ada_compliant",type:"string",alias:"ADA Compliant",description:"Indicates if the bus stop meets ADA compliance requirements.",choiceList:["Yes","No"],length:5},{name:"capacity",type:"integer",alias:"Seating Capacity",description:"Number of people that can be seated at the bus stop."},{name:"distance_from_curb",type:"double",alias:"Distance from Curb (ft)",description:"Distance in feet from the curb to the shelter."},{name:"last_inspection_date",type:"date",alias:"Last Inspection Date",description:"Date of the most recent inspection."},{name:"installation_date",type:"date",alias:"Installation Date",description:"Date when the bus stop was installed."}],requiredFields:[{name:"route_number",type:"string",alias:"Route Number",description:"Number of the bus route that uses this stop.",choiceList:null,length:50},{name:"average_daily_riders",type:"integer",alias:"Average Daily Riders",description:"Average number of riders using this stop per day."},{name:"inspection_priority",type:"string",alias:"Inspection Priority",description:"Priority level for scheduling inspections.",choiceList:["High","Medium","Low"],length:10}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"1",type:"Polyline",typeMutable:!1,name:"Routes",description:"Polyline layer containing bus route paths.",customFields:[{name:"route_name",type:"string",alias:"Route Name",description:"Name of the bus route.",choiceList:null,length:100},{name:"route_type",type:"string",alias:"Route Type",description:"Type of bus route service.",choiceList:["Express","Local","Rapid"],length:20},{name:"frequency_minutes",type:"integer",alias:"Frequency (minutes)",description:"How often buses run on this route in minutes."},{name:"route_length_miles",type:"double",alias:"Route Length (miles)",description:"Total length of the route in miles."}],requiredFields:[{name:"route_id",type:"string",alias:"Route ID",description:"Unique identifier for the route.",choiceList:null,length:50},{name:"active",type:"string",alias:"Active Status",description:"Whether the route is currently active.",choiceList:["Yes","No"],length:3}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"2",type:"Polygon",typeMutable:!1,name:"ServiceAreas",description:"Polygon layer defining bus service coverage areas.",customFields:[{name:"area_name",type:"string",alias:"Area Name",description:"Name of the service area.",choiceList:null,length:100},{name:"service_level",type:"string",alias:"Service Level",description:"Level of service provided in this area.",choiceList:["High Frequency","Standard","Limited"],length:20},{name:"population",type:"integer",alias:"Population",description:"Estimated population within the service area."},{name:"area_sq_miles",type:"double",alias:"Area (sq miles)",description:"Size of the service area in square miles."}],requiredFields:[{name:"district_id",type:"string",alias:"District ID",description:"Unique identifier for the service district.",choiceList:null,length:50}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"3",type:"Point",typeMutable:!1,name:"Tasks",description:"Point layer containing task assignments for bus stop inspections, related to BusStops layer.",customFields:[{name:"task_id",type:"string",alias:"Task ID",description:"Unique identifier for the task assignment.",choiceList:null,length:50},{name:"stop_id",type:"string",alias:"Bus Stop ID",description:"ID of the bus stop to be inspected (relates to BusStops layer).",choiceList:null,length:255},{name:"assigned_to",type:"string",alias:"Assigned To",description:"Name of the inspector assigned to this task.",choiceList:null,length:100},{name:"due_date",type:"date",alias:"Due Date",description:"Date by which the inspection should be completed."},{name:"priority",type:"string",alias:"Priority",description:"Priority level of the inspection task.",choiceList:["High","Medium","Low"],length:10},{name:"notes",type:"string",alias:"Task Notes",description:"Additional notes or instructions for the inspection task.",choiceList:null,length:500}],requiredFields:[{name:"status",type:"string",alias:"Task Status",description:"Current status of the task assignment.",choiceList:["Not Started","In Progress","Completed","Cancelled"],length:20},{name:"assignment_date",type:"date",alias:"Assignment Date",description:"Date when the task was created and assigned."}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]},{id:"4",typeMutable:!1,type:"Table",name:"Inspections",description:"Table containing inspection records and findings.",customFields:[{name:"inspection_id",type:"string",alias:"Inspection ID",description:"Unique identifier for the inspection.",choiceList:null,length:50},{name:"stop_id",type:"string",alias:"Bus Stop ID",description:"ID of the bus stop that was inspected.",choiceList:null,length:255},{name:"inspector_name",type:"string",alias:"Inspector Name",description:"Name of the person who performed the inspection.",choiceList:null,length:100},{name:"inspection_date",type:"date",alias:"Inspection Date",description:"Date when the inspection was performed."},{name:"overall_condition",type:"string",alias:"Overall Condition",description:"Overall condition assessment of the bus stop.",choiceList:["Excellent","Good","Fair","Poor","Critical"],length:20},{name:"issues_found",type:"integer",alias:"Issues Found",description:"Number of issues identified during inspection."},{name:"notes",type:"string",alias:"Inspection Notes",description:"Additional notes or comments about the inspection.",choiceList:null,length:1e3}],requiredFields:[{name:"inspection_status",type:"string",alias:"Inspection Status",description:"Current status of the inspection.",choiceList:["Scheduled","In Progress","Completed","Cancelled"],length:20}],systemFields:[{name:"objectid",type:"oid",alias:"ObjectID",description:"Unique identifier for each record in the dataset."},{name:"globalid",type:"globalid",alias:"GlobalID",description:"Globally unique identifier for the record."},{name:"created_date",type:"date",alias:"Created On",description:"Date when the record was created."},{name:"created_user",type:"string",alias:"Created By",description:"User who created the record."},{name:"last_edited_date",type:"date",alias:"Last Edited On",description:"Date when the record was last edited."},{name:"last_edited_user",type:"string",alias:"Last Edited By",description:"User who last edited the record."}]}]}},g=class extends f{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.loadExampleBuilderData=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._isViewportMobile=window.innerWidth<=800,this._isAssistantOpen=!1,this._builderVisible=!1,this._hasActiveBuilderDesign=!1,this._showFabTooltip=!0,this._fabTooltipDismissed=!1,this._activeTab="all-solutions",this._showDeployedCardFetchFailed=!1,this._globalAlerts=[],this._translations=C({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${F}`,this._allCards=[],this._allShell=o(),this._allTab=o(),this._allTabTitle=o(),this._resourcesTab=o(),this._resourcesTabTitle=o(),this._categories=[],this._configContextProvider=p({context:S}),this._delay=!1,this._deployAppNav=o(),this._deployedCardPanel=o(),this._deployCardFetchFailedMessage="",this._deployedCardTab=o(),this._deployedCardTabTitle=o(),this._detailsShell=o(),this._detailsTab=o(),this._detailsTabTitle=o(),this._forceInit=!1,this._getSuggested=!1,this._tabpanelsFixed=!1,this._solutionBuilderPanel=o(),this._builderDesignContextProvider=p({context:A}),this._isMobileContextProvider=p({context:D}),this._handleWindowResize=()=>{let t=window.innerWidth<=800;this._isViewportMobile!==t&&(this._isViewportMobile=t,t&&(this._isAssistantOpen=!1,this._builderVisible=!1))},this._mainContentRef=o(),this._mySolutionsShell=o(),this._mySolutionsTab=o(),this._mySolutionsTabTitle=o(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new y,this.deployAppTabSelected=d(),this.deployedCardFetchFailed=d(),this.detailsCardSelected=d(),this.deployedCardSelected=d(),this.metaTagStringsReady=d(),this.sessionRefreshed=d(),this.tabChanged=d(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"displayDeployedCard",this._handleDeployedCardDisplay),this.listenOn(window,"navTabSelected",this._setActiveTab),this.listenOn(window,"forceSelectTab",t=>this.selectTab(t.detail,{})),this.listenOn(window,"showGlobalAlert",this._handleShowGlobalAlert),this.listenOn(window,"openAssistant",()=>{this._openAssistant()}),this.listenOn(window,"closeAssistant",()=>{this._isAssistantOpen=!1,this._builderVisible=!1}),this.listenOn(window,"toggleSolutionBuilder",()=>{this._builderVisible=!this._builderVisible}),this.listenOn(window,"discardBuilder",t=>{this._hasActiveBuilderDesign=t.detail}),this.listenOn(window,"arcgis-solution-design-update",this._solutionBuilderSelected),window.addEventListener("resize",this._handleWindowResize),this._builderDesignContextProvider.value={design:this.loadExampleBuilderData?V:null,updateDesign:t=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:t}},isBuilderVisible:!1,setBuilderVisible:t=>{this._builderVisible=t,this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:t}}},this.loadExampleBuilderData&&(this._hasActiveBuilderDesign=!0)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:5,loadExampleBuilderData:5,authentication:16,_isLoaded:16,isMobile:16,_isViewportMobile:16,_isAssistantOpen:16,_builderVisible:16,_hasActiveBuilderDesign:16,_showFabTooltip:16,_fabTooltipDismissed:16,_activeTab:16,_showDeployedCardFetchFailed:16,_globalAlerts:16,_translations:16}}static{this.styles=R}get _telemetry(){return this._configContextProvider.value?.telemetrySession}get _isDisconnectedEnvironment(){return this._configContextProvider.value?.isEnterprise===!0&&this._configContextProvider.value?.authentication?.CanSearchArcGISOnline===!1}get _readOnlyNotice(){return this._configContextProvider.value?.isEnterprise?this._translations.writableEnterprise||"":(this._translations.writableOnline||"").replace("{{url}}","https://status.arcgis.com/")}_openAssistant(){this._telemetry?.logEvent({category:h.ASSISTANT,action:"Open"}),this._isAssistantOpen=!0}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(this._searchSortToolbar&&(this._searchSortToolbar.scope=t.tabType),t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this.authentication?.IsSignedIn){if(this._forceInit=!0,this._isLoaded=!1,this._cardFetcherDeployed&&await this._getDeployedSolution(t.tabTitleOrId),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(l=>l.id===t.tabTitleOrId?(s=l,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}else return this._isLoaded=!0,this._forceInit=!1,this.selectTab({tabTitleOrId:"",tabType:"deployments"},e);break}else await this.authentication?.signIn();case"details":if(this._allCards){let s=P(this._allCards,t.tabTitleOrId);s=s||M(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,this._searchSortToolbar&&i?.filter&&this._searchSortToolbar.changeOwnerFilter(i.filter!=="Organization"),i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._builderVisible=!1,this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),this._showDeployedCardFetchFailed&&(this.deployedCardFetchFailed.emit({message:this._deployCardFetchFailedMessage,title:this._translations.failedToOpen}),this._showDeployedCardFetchFailed=!1),!0}else return this._initTab=t,this._initFilters=e,!1}updated(t){this._fixTabpanelFocus(),t.has("_isAssistantOpen")&&this._setScrollbarGutters(this._isAssistantOpen?"stable":"stable both-edges"),!this._resizeObserver&&this._mainContentRef.value&&(this._resizeObserver=new ResizeObserver(e=>{for(let i of e){let s=i.contentRect.width<=800;this.isMobile!==s&&(this.isMobile=s,this._isMobileContextProvider.setValue(s))}}),this._resizeObserver.observe(this._mainContentRef.value))}_fixTabpanelFocus(){if(!this._tabpanelsFixed&&this._allTab.value){let t=[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab];Promise.all(t.map(async e=>{let i=e.value;if(i&&(await i.componentOnReady?.(),i.shadowRoot)){let s=i.shadowRoot.querySelector('[role="tabpanel"]');s&&(s.tabIndex=-1)}})).then(()=>{this._tabpanelsFixed=!0,this._setupTabpanelObserver()}).catch(()=>{this._tabpanelsFixed=!0})}}_setupTabpanelObserver(){this._tabpanelObserver||(this._tabpanelObserver=new MutationObserver(t=>{t.forEach(e=>{if(e.type==="attributes"&&e.attributeName==="tabindex"){let i=e.target;i.getAttribute("role")==="tabpanel"&&i.tabIndex===0&&(i.tabIndex=-1)}})}),[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(t=>{let e=t.value;if(e?.shadowRoot){let i=e.shadowRoot.querySelector('[role="tabpanel"]');i&&this._tabpanelObserver.observe(i,{attributes:!0,attributeFilter:["tabindex"]})}}))}async load(){this.useLocalAppConfig&&(this.appConfig=$)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return c`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .assistantOpen=${this._isAssistantOpen} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header ${a(this._deployAppNav)}></solutions-deploy-app-nav><div class=${`main-content${this._isAssistantOpen?" assistant-open":""}`} ${a(this._mainContentRef)}>${this._isSearchToolbarShowing()&&c`<div class="border"></div>`||""}<solutions-searchsort-toolbar ${a(async i=>{i&&(await this._deployAppNav.value?.componentOnReady(),this._searchSortToolbar=i)})}></solutions-searchsort-toolbar><calcite-loader class=${_(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader>${this._renderGlobalAlerts()}<calcite-tabs class=${_(e)} scale=l><calcite-tab-nav class="display-none" @calciteTabChange=${this._handleCalciteTabChanged} slot=title-group><calcite-tab-title ${a(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${a(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${a(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${a(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${a(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${a(this._allTab)}><solutions-all-shell class="height-100" ${a(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${a(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._resourcesTab)}><solutions-resources-shell .assistantOpen=${this._isAssistantOpen} class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${a(this._detailsTab)}><solution-details-panel class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${a(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></div>${!this._configContextProvider.value?.isEnterprise&&c`<div class=${`builder-panel${this._builderVisible&&!this._isViewportMobile?"":" display-none"}`}><solution-builder-assistant class="height-100" .readOnlyNotice=${this._readOnlyNotice} ${a(this._solutionBuilderPanel)}></solution-builder-assistant></div><div class=${`assistant-panel${this._isAssistantOpen&&!this._isViewportMobile?"":" display-none"}`}><arcgis-solutions-assistant class="height-100" .builderVisible=${this._builderVisible} .hasActiveBuilderDesign=${this._hasActiveBuilderDesign}></arcgis-solutions-assistant></div><calcite-fab aria-label=${this._translations.assistantFabTooltip??T} class=${`assistant-fab${this._isAssistantOpen||this._isViewportMobile?" display-none":""}`} icon=effects id=assistant-fab-button @click=${()=>{this._openAssistant(),this._fabTooltipDismissed=!0,this._showFabTooltip=!1}} scale=l></calcite-fab>${!this._fabTooltipDismissed&&c`<calcite-popover closable class=${`assistant-fab-popover${this._isAssistantOpen||this._isViewportMobile?" display-none":""}`} .label=${this._translations.assistantFabTooltip} @calcitePopoverClose=${()=>{this._fabTooltipDismissed=!0,this._showFabTooltip=!1}} .open=${this._showFabTooltip&&!this._isAssistantOpen&&!this._isViewportMobile} placement=leading reference-element=assistant-fab-button><span class="assistant-fab-popover__content">${this._translations.assistantFabTooltip}</span></calcite-popover>`||""}`||""}</calcite-shell>`}loaded(){this._setScrollbarGutters()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._handleWindowResize),this._resizeObserver?.disconnect(),this._tabpanelObserver?.disconnect()}_renderGlobalAlerts(){return L(this._globalAlerts,t=>t.id,t=>c`<calcite-alert .autoClose=${t.autoClose} .autoCloseDuration=${t.autoCloseDuration} .icon=${t.icon} .kind=${t.kind} .label=${t.title||""} @calciteAlertClose=${()=>this._removeGlobalAlert(t.id)} open>${t.title&&c`<div slot=title>${t.title}</div>`||""}<div slot=message>${t.message}</div></calcite-alert>`)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=y.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardFetcherDeployed=new m(e.locale,e.orgUrl,e.portalURL),this._cardsFetcher=new m(e.locale,e.orgUrl,e.portalURL),this._isDisconnectedEnvironment||await this._getSolutions(e.primarySolutionsGroupId,e.agoBasedEnterpriseSolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._setRefreshInterval(),this._initTab?(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0):this.authentication?.IsSignedIn&&(this.initTab==="details"||this.initTab==="deployed-card"||(this._logTabViewTelemetry(this._activeTab),this._emitMetaTagStrings(this._activeTab)))}_setActiveTab(t){let e=t.detail.tabType,i=this._activeTab!==e;switch(this._activeTab=e,i&&this._logTabViewTelemetry(e),e){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}this._builderVisible=!1,e!=="details"&&e!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(e),this.deployAppTabSelected.emit(e),this._emitMetaTagStrings(e))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=h.ALL_SOLUTIONS;break;case"deployments":i=h.DEPLOYMENTS;break;case"resources":i=h.RESOURCES;break;case"details":i=h.SOLUTION_DETAILS;break;case"deployed-card":i=h.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let n=e;s.push(n.title||""),s.push(n.deployCommonId||""),s.push(n.deployVersion||"")}let l=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:l,dimensions:s.length>0?s:void 0})}}_emitMetaTagStrings(t,e){let i="",s="";switch(t){case"all-solutions":i=this._translations.metaAllSolutionsTitle,s=this._translations.metaAllSolutionsDescription;break;case"deployments":case"deployed-card":i=this._translations.metaDeploymentsTitle,s=this._translations.metaDeploymentsDescription;break;case"resources":i=this._translations.metaResourcesTitle,s=this._translations.metaResourcesDescription;break;case"details":e&&(i=this._translations.metaDetailsTitle.replace("{title}",e.title),s=e.snippet);break}this.metaTagStringsReady.emit({pageType:t,title:i,description:s,detailTemplate:e})}_handleCalciteTabChanged(){this.tabChanged.emit(this._activeTab)}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard),this._emitMetaTagStrings("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard),this._emitMetaTagStrings("deployed-card")}_solutionBuilderSelected(t){t?.detail&&(this._builderVisible=!0,this._hasActiveBuilderDesign=!0,this._builderDesignContextProvider.value={design:t.detail,updateDesign:e=>{this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,design:e}},isBuilderVisible:!0,setBuilderVisible:e=>{this._builderVisible=e,this._builderDesignContextProvider.value={...this._builderDesignContextProvider.value,isBuilderVisible:e}}})}_handleDeployedCardDisplay(t){let{card:e,cardRef:i}=t.detail;this.deployedCardSelected.emit({card:e,cardRef:i})}_handleShowGlobalAlert(t){let e=t.detail,i=e.id||`alert-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;this._globalAlerts=[...this._globalAlerts,{...e,id:i}]}_removeGlobalAlert(t){this._globalAlerts=this._globalAlerts.filter(e=>e.id!==t)}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t,e){if(this._isDisconnectedEnvironment)return[];this._abortController?(this._abortController.abort(),this._abortController=new AbortController):this._abortController=new AbortController;let i=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested,num:100},t,e,this._configContextProvider.value.userSession,this._configContextProvider.value.isEnterprise,this._abortController.signal,{num:1e3});return this._abortController=void 0,this._allCards.length===0&&i?.cards&&(this._allCards=i?.cards),this._allCards}async _getDeployedSolution(t){let e=this._configContextProvider.value.authentication,i=this._configContextProvider.value.userSession;if(e&&i&&e.IsSignedIn){this._abortControllerDeployed?(this._abortControllerDeployed.abort(),this._abortControllerDeployed=new AbortController):this._abortControllerDeployed=new AbortController;let s=x(e);try{let l=await B(e,i,this._cardsFetcher,this._cardFetcherDeployed,O,"created","desc",!1,[],[],this._abortControllerDeployed.signal,s?"My organization's solutions":"My solutions",t);l.cards.length===0||l.cards[0].typeKeywords.indexOf("Deployed")<0?(this._deployCardFetchFailedMessage=this._translations.failedToFetchNotSolution.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):this._deployedSolutions=l}catch(l){let n=l.message;n.indexOf("CONT_0001")>-1||n.indexOf("Item does not exist or is inaccessible.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongId.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):n.indexOf("GWM_0003")>-1||n.indexOf("You do not have permissions to access this resource or perform this operation.")>-1?(this._deployCardFetchFailedMessage=this._translations.failedToFetchWrongPermissions.replace("{{ITEMID}}",t),this._showDeployedCardFetchFailed=!0):(this._showDeployedCardFetchFailed=!0,this._deployCardFetchFailedMessage=""),console.warn(l)}}}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry==="AEC"?I.AEC:t.industry,l=t.offerType,n=t.searchTerm,E="",r=t.sortField,u=t.owner,b=t.filter;r==="suggested"&&!this.authentication?.IsSignedIn&&(r=this.sortType),e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),n&&(e=e?{...e,searchTerm:n}:{searchTerm:n}),e&&(e={...e,displayValue:E}),r&&(e=e?{...e,sortType:r}:{sortType:r}),l&&(r=l.toLowerCase(),e=e?{...e,sortType:r}:{sortType:r}),u&&(e=e?{...e,owner:u}:{owner:u}),b&&(e=e?{...e,filter:b}:{filter:b})}return e}_setScrollbarGutters(t="stable both-edges"){[this._allTab,this._mySolutionsTab,this._resourcesTab,this._detailsTab,this._deployedCardTab].forEach(e=>{let i=e.value?.shadowRoot?.firstElementChild;i?.style&&(i.style.scrollbarGutter=t)})}_setRefreshInterval(){let{userSession:t,authentication:e}=this._configContextProvider.value;if(t&&t.tokenDuration&&e?.IsSignedIn){let i=Date.now(),s=(e.Credential?.expires-i)*.95;setInterval(async()=>{if(e.Credential&&e.Credential.expires){await e.Credential?.refreshToken();let l=new Date(e.Credential.expires);t.updateToken(e.Credential.token,l),this.sessionRefreshed.emit(t.token)}},s)}}};w("solutions-deploy-app",g);return g},"identity/IdentityManager","identity/OAuthInfo","portal/Portal","intl","geometry/Extent","geometry/SpatialReference","geometry/operators/projectOperator","geometry/operators/support/geographicTransformationUtils",b,e,g,h,i,j,k,l,m,n,q,r,s,t,u)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as Lf}from"./VVZAS55G.js";import{
|
|
2
|
+
import{a as Lf}from"./VVZAS55G.js";import{a as Le}from"./US5FON7D.js";import{b as xf,ya as Af}from"./3UKDJZ2D.js";import a from"./WV7QX3ED.js";import{c as _f}from"./2I5LGZNX.js";export default $arcgis.t(([Th,n1,{b:Nf}])=>{var lr=Uint8Array,Bn=Uint16Array,Fl=Int32Array,El=new lr([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,0,0,0]),Cl=new lr([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,0,0]),Sf=new lr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ff=function(t,n){for(var e=new Bn(31),r=0;r<31;++r)e[r]=n+=1<<t[r-1];for(var i=new Fl(e[30]),r=1;r<30;++r)for(var a=e[r];a<e[r+1];++a)i[a]=a-e[r]<<5|r;return{b:e,r:i}},Ef=Ff(El,2),V1=Ef.b,kl=Ef.r;V1[28]=258,kl[258]=28;var Cf=Ff(Cl,0),ip=Cf.b,kf=Cf.r,Pl=new Bn(32768);for(be=0;be<32768;++be)Vr=(be&43690)>>1|(be&21845)<<1,Vr=(Vr&52428)>>2|(Vr&13107)<<2,Vr=(Vr&61680)>>4|(Vr&3855)<<4,Pl[be]=((Vr&65280)>>8|(Vr&255)<<8)>>1;var Vr,be,ao=(function(t,n,e){for(var r=t.length,i=0,a=new Bn(n);i<r;++i)t[i]&&++a[t[i]-1];var h=new Bn(n);for(i=1;i<n;++i)h[i]=h[i-1]+a[i-1]<<1;var l;if(e){l=new Bn(1<<n);var c=15-n;for(i=0;i<r;++i)if(t[i])for(var u=i<<4|t[i],g=n-t[i],y=h[t[i]-1]++<<g,x=y|(1<<g)-1;y<=x;++y)l[Pl[y]>>c]=u}else for(l=new Bn(r),i=0;i<r;++i)t[i]&&(l[i]=Pl[h[t[i]-1]++]>>15-t[i]);return l}),Bi=new lr(288);for(be=0;be<144;++be)Bi[be]=8;var be;for(be=144;be<256;++be)Bi[be]=9;var be;for(be=256;be<280;++be)Bi[be]=7;var be;for(be=280;be<288;++be)Bi[be]=8;var be,us=new lr(32);for(be=0;be<32;++be)us[be]=5;var be,Z1=ao(Bi,9,0);var $1=ao(us,5,0);var Of=function(t){return(t+7)/8|0},Y1=function(t,n,e){return(n==null||n<0)&&(n=0),(e==null||e>t.length)&&(e=t.length),new lr(t.subarray(n,e))};var Zr=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8},ro=function(t,n,e){e<<=n&7;var r=n/8|0;t[r]|=e,t[r+1]|=e>>8,t[r+2]|=e>>16},Sl=function(t,n){for(var e=[],r=0;r<t.length;++r)t[r]&&e.push({s:r,f:t[r]});var i=e.length,a=e.slice();if(!i)return{t:Df,l:0};if(i==1){var h=new lr(e[0].s+1);return h[e[0].s]=1,{t:h,l:1}}e.sort(function(rt,mt){return rt.f-mt.f}),e.push({s:-1,f:25001});var l=e[0],c=e[1],u=0,g=1,y=2;for(e[0]={s:-1,f:l.f+c.f,l,r:c};g!=i-1;)l=e[e[u].f<e[y].f?u++:y++],c=e[u!=g&&e[u].f<e[y].f?u++:y++],e[g++]={s:-1,f:l.f+c.f,l,r:c};for(var x=a[0].s,r=1;r<i;++r)a[r].s>x&&(x=a[r].s);var p=new Bn(x+1),F=Il(e[g-1],p,0);if(F>n){var r=0,P=0,D=F-n,N=1<<D;for(a.sort(function(mt,ct){return p[ct.s]-p[mt.s]||mt.f-ct.f});r<i;++r){var H=a[r].s;if(p[H]>n)P+=N-(1<<F-p[H]),p[H]=n;else break}for(P>>=D;P>0;){var q=a[r].s;p[q]<n?P-=1<<n-p[q]++-1:++r}for(;r>=0&&P;--r){var R=a[r].s;p[R]==n&&(--p[R],++P)}F=n}return{t:new lr(p),l:F}},Il=function(t,n,e){return t.s==-1?Math.max(Il(t.l,n,e+1),Il(t.r,n,e+1)):n[t.s]=e},Pf=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new Bn(++n),r=0,i=t[0],a=1,h=function(c){e[r++]=c},l=1;l<=n;++l)if(t[l]==i&&l!=n)++a;else{if(!i&&a>2){for(;a>138;a-=138)h(32754);a>2&&(h(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(h(i),--a;a>6;a-=6)h(8304);a>2&&(h(a-3<<5|8208),a=0)}for(;a--;)h(i);a=1,i=t[l]}return{c:e.subarray(0,r),n}},io=function(t,n){for(var e=0,r=0;r<n.length;++r)e+=t[r]*n[r];return e},Tf=function(t,n,e){var r=e.length,i=Of(n+2);t[i]=r&255,t[i+1]=r>>8,t[i+2]=t[i]^255,t[i+3]=t[i+1]^255;for(var a=0;a<r;++a)t[i+a+4]=e[a];return(i+4+r)*8},If=function(t,n,e,r,i,a,h,l,c,u,g){Zr(n,g++,e),++i[256];for(var y=Sl(i,15),x=y.t,p=y.l,F=Sl(a,15),P=F.t,D=F.l,N=Pf(x),H=N.c,q=N.n,R=Pf(P),rt=R.c,mt=R.n,ct=new Bn(19),Y=0;Y<H.length;++Y)++ct[H[Y]&31];for(var Y=0;Y<rt.length;++Y)++ct[rt[Y]&31];for(var j=Sl(ct,7),tt=j.t,S=j.l,O=19;O>4&&!tt[Sf[O-1]];--O);var W=u+5<<3,U=io(i,Bi)+io(a,us)+h,it=io(i,x)+io(a,P)+h+14+3*O+io(ct,tt)+2*ct[16]+3*ct[17]+7*ct[18];if(c>=0&&W<=U&&W<=it)return Tf(n,g,t.subarray(c,c+u));var st,ht,nt,ut;if(Zr(n,g,1+(it<U)),g+=2,it<U){st=ao(x,p,0),ht=x,nt=ao(P,D,0),ut=P;var At=ao(tt,S,0);Zr(n,g,q-257),Zr(n,g+5,mt-1),Zr(n,g+10,O-4),g+=14;for(var Y=0;Y<O;++Y)Zr(n,g+3*Y,tt[Sf[Y]]);g+=3*O;for(var wt=[H,rt],A=0;A<2;++A)for(var M=wt[A],Y=0;Y<M.length;++Y){var B=M[Y]&31;Zr(n,g,At[B]),g+=tt[B],B>15&&(Zr(n,g,M[Y]>>5&127),g+=M[Y]>>12)}}else st=Z1,ht=Bi,nt=$1,ut=us;for(var Y=0;Y<l;++Y){var G=r[Y];if(G>255){var B=G>>18&31;ro(n,g,st[B+257]),g+=ht[B+257],B>7&&(Zr(n,g,G>>23&31),g+=El[B]);var $=G&31;ro(n,g,nt[$]),g+=ut[$],$>3&&(ro(n,g,G>>5&8191),g+=Cl[$])}else ro(n,g,st[G]),g+=ht[G]}return ro(n,g,st[256]),g+ht[256]},K1=new Fl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Df=new lr(0),X1=function(t,n,e,r,i,a){var h=a.z||t.length,l=new lr(r+h+5*(1+Math.ceil(h/7e3))+i),c=l.subarray(r,l.length-i),u=a.l,g=(a.r||0)&7;if(n){g&&(c[0]=a.r>>3);for(var y=K1[n-1],x=y>>13,p=y&8191,F=(1<<e)-1,P=a.p||new Bn(32768),D=a.h||new Bn(F+1),N=Math.ceil(e/3),H=2*N,q=function(Bt){return(t[Bt]^t[Bt+1]<<N^t[Bt+2]<<H)&F},R=new Fl(25e3),rt=new Bn(288),mt=new Bn(32),ct=0,Y=0,j=a.i||0,tt=0,S=a.w||0,O=0;j+2<h;++j){var W=q(j),U=j&32767,it=D[W];if(P[U]=it,D[W]=U,S<=j){var st=h-j;if((ct>7e3||tt>24576)&&(st>423||!u)){g=If(t,c,0,R,rt,mt,Y,tt,O,j-O,g),tt=ct=Y=0,O=j;for(var ht=0;ht<286;++ht)rt[ht]=0;for(var ht=0;ht<30;++ht)mt[ht]=0}var nt=2,ut=0,At=p,wt=U-it&32767;if(st>2&&W==q(j-wt))for(var A=Math.min(x,st)-1,M=Math.min(32767,j),B=Math.min(258,st);wt<=M&&--At&&U!=it;){if(t[j+nt]==t[j+nt-wt]){for(var G=0;G<B&&t[j+G]==t[j+G-wt];++G);if(G>nt){if(nt=G,ut=wt,G>A)break;for(var $=Math.min(wt,G-2),J=0,ht=0;ht<$;++ht){var at=j-wt+ht&32767,ot=P[at],gt=at-ot&32767;gt>J&&(J=gt,it=at)}}}U=it,it=P[U],wt+=U-it&32767}if(ut){R[tt++]=268435456|kl[nt]<<18|kf[ut];var xt=kl[nt]&31,kt=kf[ut]&31;Y+=El[xt]+Cl[kt],++rt[257+xt],++mt[kt],S=j+nt,++ct}else R[tt++]=t[j],++rt[t[j]]}}for(j=Math.max(j,S);j<h;++j)R[tt++]=t[j],++rt[t[j]];g=If(t,c,u,R,rt,mt,Y,tt,O,j-O,g),u||(a.r=g&7|c[g/8|0]<<3,g-=7,a.h=D,a.p=P,a.i=j,a.w=S)}else{for(var j=a.w||0;j<h+u;j+=65535){var St=j+65535;St>=h&&(c[g/8|0]=u,St=h),g=Tf(c,g+1,t.subarray(j,St))}a.i=h}return Y1(l,0,r+Of(g)+i)};var Mf=function(){var t=1,n=0;return{p:function(e){for(var r=t,i=n,a=e.length|0,h=0;h!=a;){for(var l=Math.min(h+2655,a);h<l;++h)i+=r+=e[h];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}t=r,n=i},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},J1=function(t,n,e,r,i){if(!i&&(i={l:1},n.dictionary)){var a=n.dictionary.subarray(-32768),h=new lr(a.length+t.length);h.set(a),h.set(t,a.length),t=h,i.w=a.length}return X1(t,n.level==null?6:n.level,n.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,r,i)};var Rf=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8};var Q1=function(t,n){var e=n.level,r=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=r<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=Mf();i.p(n.dictionary),Rf(t,2,i.d())}};function ds(t,n){n||(n={});var e=Mf();e.p(t);var r=J1(t,n,n.dictionary?6:2,4);return Q1(r,n),Rf(r,r.length-4,e.d()),r}var t0=typeof TextDecoder<"u"&&new TextDecoder,e0=0;try{t0.decode(Df,{stream:!0}),e0=1}catch{}function jf(t){if(Array.isArray(t))return t}function Bf(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var r,i,a,h,l=[],c=!0,u=!1;try{if(a=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;c=!1}else for(;!(c=(r=a.call(e)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(g){u=!0,i=g}finally{try{if(!c&&e.return!=null&&(h=e.return(),Object(h)!==h))return}finally{if(u)throw i}}return l}}function Ol(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function zf(t,n){if(t){if(typeof t=="string")return Ol(t,n);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Ol(t,n):void 0}}function Uf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tl(t,n){return jf(t)||Bf(t,n)||zf(t,n)||Uf()}function Dl(t,n="utf8"){return new TextDecoder(n).decode(t)}var n0=new TextEncoder;function qf(t){return n0.encode(t)}var r0=1024*8,i0=(()=>{let t=new Uint8Array(4),n=new Uint32Array(t.buffer);return!((n[0]=1)&t[0])})(),Ml={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},oo=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(n=r0,e={}){let r=!1;typeof n=="number"?n=new ArrayBuffer(n):(r=!0,this.lastWrittenByte=n.byteLength);let i=e.offset?e.offset>>>0:0,a=n.byteLength-i,h=i;(ArrayBuffer.isView(n)||n instanceof t)&&(n.byteLength!==n.buffer.byteLength&&(h=n.byteOffset+i),n=n.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=n,this.length=a,this.byteLength=a,this.byteOffset=h,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,h,a),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){let r=(this.offset+n)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,e){let r=Ml[e].BYTES_PER_ELEMENT*n,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+r);if(this.littleEndian===i0&&e!=="uint8"&&e!=="int8"){let l=new Uint8Array(this.buffer.slice(i,i+r));l.reverse();let c=new Ml[e](l.buffer);return this.offset+=r,c.reverse(),c}let h=new Ml[e](a);return this.offset+=r,h}readInt16(){let n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){let n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){let n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){let n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){let n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){let n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){let n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){let n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let r=0;r<n;r++)e+=this.readChar();return e}readUtf8(n=1){return Dl(this.readBytes(n))}decodeText(n=1,e="utf8"){return Dl(this.readBytes(n),e)}writeBoolean(n){return this.writeUint8(n?255:0),this}writeInt8(n){return this.ensureAvailable(1),this._data.setInt8(this.offset++,n),this._updateLastWrittenByte(),this}writeUint8(n){return this.ensureAvailable(1),this._data.setUint8(this.offset++,n),this._updateLastWrittenByte(),this}writeByte(n){return this.writeUint8(n)}writeBytes(n){this.ensureAvailable(n.length);for(let e=0;e<n.length;e++)this._data.setUint8(this.offset++,n[e]);return this._updateLastWrittenByte(),this}writeInt16(n){return this.ensureAvailable(2),this._data.setInt16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(n){return this.ensureAvailable(2),this._data.setUint16(this.offset,n,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(n){return this.ensureAvailable(4),this._data.setInt32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(n){return this.ensureAvailable(4),this._data.setUint32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(n){return this.ensureAvailable(4),this._data.setFloat32(this.offset,n,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(n){return this.ensureAvailable(8),this._data.setFloat64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(n){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(n){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,n,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(n){return this.writeUint8(n.charCodeAt(0))}writeChars(n){for(let e=0;e<n.length;e++)this.writeUint8(n.charCodeAt(e));return this}writeUtf8(n){return this.writeBytes(qf(n))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function ga(t){let n=t.length;for(;--n>=0;)t[n]=0}var a0=0,kc=1,o0=2,s0=3,l0=258,oh=29,xo=256,po=xo+1+oh,ua=30,sh=19,Pc=2*po+1,zi=15,Rl=16,h0=7,lh=256,Ic=16,Fc=17,Ec=18,Xl=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ws=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),f0=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Cc=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c0=512,Yr=new Array((po+2)*2);ga(Yr);var fo=new Array(ua*2);ga(fo);var go=new Array(c0);ga(go);var mo=new Array(l0-s0+1);ga(mo);var hh=new Array(oh);ga(hh);var ys=new Array(ua);ga(ys);function jl(t,n,e,r,i){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}var Oc,Tc,Dc;function Bl(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}var Mc=t=>t<256?go[t]:go[256+(t>>>7)],vo=(t,n)=>{t.pending_buf[t.pending++]=n&255,t.pending_buf[t.pending++]=n>>>8&255},In=(t,n,e)=>{t.bi_valid>Rl-e?(t.bi_buf|=n<<t.bi_valid&65535,vo(t,t.bi_buf),t.bi_buf=n>>Rl-t.bi_valid,t.bi_valid+=e-Rl):(t.bi_buf|=n<<t.bi_valid&65535,t.bi_valid+=e)},xr=(t,n,e)=>{In(t,e[n*2],e[n*2+1])},Rc=(t,n)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--n>0);return e>>>1},u0=t=>{t.bi_valid===16?(vo(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},d0=(t,n)=>{let e=n.dyn_tree,r=n.max_code,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,h=n.stat_desc.extra_bits,l=n.stat_desc.extra_base,c=n.stat_desc.max_length,u,g,y,x,p,F,P=0;for(x=0;x<=zi;x++)t.bl_count[x]=0;for(e[t.heap[t.heap_max]*2+1]=0,u=t.heap_max+1;u<Pc;u++)g=t.heap[u],x=e[e[g*2+1]*2+1]+1,x>c&&(x=c,P++),e[g*2+1]=x,!(g>r)&&(t.bl_count[x]++,p=0,g>=l&&(p=h[g-l]),F=e[g*2],t.opt_len+=F*(x+p),a&&(t.static_len+=F*(i[g*2+1]+p)));if(P!==0){do{for(x=c-1;t.bl_count[x]===0;)x--;t.bl_count[x]--,t.bl_count[x+1]+=2,t.bl_count[c]--,P-=2}while(P>0);for(x=c;x!==0;x--)for(g=t.bl_count[x];g!==0;)y=t.heap[--u],!(y>r)&&(e[y*2+1]!==x&&(t.opt_len+=(x-e[y*2+1])*e[y*2],e[y*2+1]=x),g--)}},jc=(t,n,e)=>{let r=new Array(zi+1),i=0,a,h;for(a=1;a<=zi;a++)i=i+e[a-1]<<1,r[a]=i;for(h=0;h<=n;h++){let l=t[h*2+1];l!==0&&(t[h*2]=Rc(r[l]++,l))}},p0=()=>{let t,n,e,r,i,a=new Array(zi+1);for(e=0,r=0;r<oh-1;r++)for(hh[r]=e,t=0;t<1<<Xl[r];t++)mo[e++]=r;for(mo[e-1]=r,i=0,r=0;r<16;r++)for(ys[r]=i,t=0;t<1<<ws[r];t++)go[i++]=r;for(i>>=7;r<ua;r++)for(ys[r]=i<<7,t=0;t<1<<ws[r]-7;t++)go[256+i++]=r;for(n=0;n<=zi;n++)a[n]=0;for(t=0;t<=143;)Yr[t*2+1]=8,t++,a[8]++;for(;t<=255;)Yr[t*2+1]=9,t++,a[9]++;for(;t<=279;)Yr[t*2+1]=7,t++,a[7]++;for(;t<=287;)Yr[t*2+1]=8,t++,a[8]++;for(jc(Yr,po+1,a),t=0;t<ua;t++)fo[t*2+1]=5,fo[t*2]=Rc(t,5);Oc=new jl(Yr,Xl,xo+1,po,zi),Tc=new jl(fo,ws,0,ua,zi),Dc=new jl(new Array(0),f0,0,sh,h0)},Bc=t=>{let n;for(n=0;n<po;n++)t.dyn_ltree[n*2]=0;for(n=0;n<ua;n++)t.dyn_dtree[n*2]=0;for(n=0;n<sh;n++)t.bl_tree[n*2]=0;t.dyn_ltree[lh*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},zc=t=>{t.bi_valid>8?vo(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},Hf=(t,n,e,r)=>{let i=n*2,a=e*2;return t[i]<t[a]||t[i]===t[a]&&r[n]<=r[e]},zl=(t,n,e)=>{let r=t.heap[e],i=e<<1;for(;i<=t.heap_len&&(i<t.heap_len&&Hf(n,t.heap[i+1],t.heap[i],t.depth)&&i++,!Hf(n,r,t.heap[i],t.depth));)t.heap[e]=t.heap[i],e=i,i<<=1;t.heap[e]=r},Wf=(t,n,e)=>{let r,i,a=0,h,l;if(t.sym_next!==0)do r=t.pending_buf[t.sym_buf+a++]&255,r+=(t.pending_buf[t.sym_buf+a++]&255)<<8,i=t.pending_buf[t.sym_buf+a++],r===0?xr(t,i,n):(h=mo[i],xr(t,h+xo+1,n),l=Xl[h],l!==0&&(i-=hh[h],In(t,i,l)),r--,h=Mc(r),xr(t,h,e),l=ws[h],l!==0&&(r-=ys[h],In(t,r,l)));while(a<t.sym_next);xr(t,lh,n)},Jl=(t,n)=>{let e=n.dyn_tree,r=n.stat_desc.static_tree,i=n.stat_desc.has_stree,a=n.stat_desc.elems,h,l,c=-1,u;for(t.heap_len=0,t.heap_max=Pc,h=0;h<a;h++)e[h*2]!==0?(t.heap[++t.heap_len]=c=h,t.depth[h]=0):e[h*2+1]=0;for(;t.heap_len<2;)u=t.heap[++t.heap_len]=c<2?++c:0,e[u*2]=1,t.depth[u]=0,t.opt_len--,i&&(t.static_len-=r[u*2+1]);for(n.max_code=c,h=t.heap_len>>1;h>=1;h--)zl(t,e,h);u=a;do h=t.heap[1],t.heap[1]=t.heap[t.heap_len--],zl(t,e,1),l=t.heap[1],t.heap[--t.heap_max]=h,t.heap[--t.heap_max]=l,e[u*2]=e[h*2]+e[l*2],t.depth[u]=(t.depth[h]>=t.depth[l]?t.depth[h]:t.depth[l])+1,e[h*2+1]=e[l*2+1]=u,t.heap[1]=u++,zl(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],d0(t,n),jc(e,c,t.bl_count)},Gf=(t,n,e)=>{let r,i=-1,a,h=n[1],l=0,c=7,u=4;for(h===0&&(c=138,u=3),n[(e+1)*2+1]=65535,r=0;r<=e;r++)a=h,h=n[(r+1)*2+1],!(++l<c&&a===h)&&(l<u?t.bl_tree[a*2]+=l:a!==0?(a!==i&&t.bl_tree[a*2]++,t.bl_tree[Ic*2]++):l<=10?t.bl_tree[Fc*2]++:t.bl_tree[Ec*2]++,l=0,i=a,h===0?(c=138,u=3):a===h?(c=6,u=3):(c=7,u=4))},Vf=(t,n,e)=>{let r,i=-1,a,h=n[1],l=0,c=7,u=4;for(h===0&&(c=138,u=3),r=0;r<=e;r++)if(a=h,h=n[(r+1)*2+1],!(++l<c&&a===h)){if(l<u)do xr(t,a,t.bl_tree);while(--l!==0);else a!==0?(a!==i&&(xr(t,a,t.bl_tree),l--),xr(t,Ic,t.bl_tree),In(t,l-3,2)):l<=10?(xr(t,Fc,t.bl_tree),In(t,l-3,3)):(xr(t,Ec,t.bl_tree),In(t,l-11,7));l=0,i=a,h===0?(c=138,u=3):a===h?(c=6,u=3):(c=7,u=4)}},g0=t=>{let n;for(Gf(t,t.dyn_ltree,t.l_desc.max_code),Gf(t,t.dyn_dtree,t.d_desc.max_code),Jl(t,t.bl_desc),n=sh-1;n>=3&&t.bl_tree[Cc[n]*2+1]===0;n--);return t.opt_len+=3*(n+1)+5+5+4,n},m0=(t,n,e,r)=>{let i;for(In(t,n-257,5),In(t,e-1,5),In(t,r-4,4),i=0;i<r;i++)In(t,t.bl_tree[Cc[i]*2+1],3);Vf(t,t.dyn_ltree,n-1),Vf(t,t.dyn_dtree,e-1)},v0=t=>{let n=4093624447,e;for(e=0;e<=31;e++,n>>>=1)if(n&1&&t.dyn_ltree[e*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(e=32;e<xo;e++)if(t.dyn_ltree[e*2]!==0)return 1;return 0},Zf=!1,b0=t=>{Zf||(p0(),Zf=!0),t.l_desc=new Bl(t.dyn_ltree,Oc),t.d_desc=new Bl(t.dyn_dtree,Tc),t.bl_desc=new Bl(t.bl_tree,Dc),t.bi_buf=0,t.bi_valid=0,Bc(t)},Uc=(t,n,e,r)=>{In(t,(a0<<1)+(r?1:0),3),zc(t),vo(t,e),vo(t,~e),e&&t.pending_buf.set(t.window.subarray(n,n+e),t.pending),t.pending+=e},w0=t=>{In(t,kc<<1,3),xr(t,lh,Yr),u0(t)},y0=(t,n,e,r)=>{let i,a,h=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=v0(t)),Jl(t,t.l_desc),Jl(t,t.d_desc),h=g0(t),i=t.opt_len+3+7>>>3,a=t.static_len+3+7>>>3,a<=i&&(i=a)):i=a=e+5,e+4<=i&&n!==-1?Uc(t,n,e,r):t.strategy===4||a===i?(In(t,(kc<<1)+(r?1:0),3),Wf(t,Yr,fo)):(In(t,(o0<<1)+(r?1:0),3),m0(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),Wf(t,t.dyn_ltree,t.dyn_dtree)),Bc(t),r&&zc(t)},_0=(t,n,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=n,t.pending_buf[t.sym_buf+t.sym_next++]=n>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,n===0?t.dyn_ltree[e*2]++:(t.matches++,n--,t.dyn_ltree[(mo[e]+xo+1)*2]++,t.dyn_dtree[Mc(n)*2]++),t.sym_next===t.sym_end),x0=b0,A0=Uc,N0=y0,L0=_0,S0=w0,k0={_tr_init:x0,_tr_stored_block:A0,_tr_flush_block:N0,_tr_tally:L0,_tr_align:S0},P0=(t,n,e,r)=>{let i=t&65535|0,a=t>>>16&65535|0,h=0;for(;e!==0;){h=e>2e3?2e3:e,e-=h;do i=i+n[r++]|0,a=a+i|0;while(--h);i%=65521,a%=65521}return i|a<<16|0},bo=P0,I0=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t}return n},F0=new Uint32Array(I0()),E0=(t,n,e,r)=>{let i=F0,a=r+e;t^=-1;for(let h=r;h<a;h++)t=t>>>8^i[(t^n[h])&255];return t^-1},on=E0,Hi={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"},ma={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:C0,_tr_stored_block:Ql,_tr_flush_block:O0,_tr_tally:gi,_tr_align:T0}=k0,{Z_NO_FLUSH:mi,Z_PARTIAL_FLUSH:D0,Z_FULL_FLUSH:M0,Z_FINISH:Xn,Z_BLOCK:$f,Z_OK:pn,Z_STREAM_END:Yf,Z_STREAM_ERROR:Ar,Z_DATA_ERROR:R0,Z_BUF_ERROR:Ul,Z_DEFAULT_COMPRESSION:j0,Z_FILTERED:B0,Z_HUFFMAN_ONLY:ps,Z_RLE:z0,Z_FIXED:U0,Z_DEFAULT_STRATEGY:q0,Z_UNKNOWN:H0,Z_DEFLATED:As}=ma,W0=9,G0=15,V0=8,Z0=29,$0=256,th=$0+1+Z0,Y0=30,K0=19,X0=2*th+1,J0=15,de=3,pi=258,Nr=pi+de+1,Q0=32,da=42,fh=57,eh=69,nh=73,rh=91,ih=103,Ui=113,lo=666,Ln=1,va=2,Wi=3,ba=4,t2=3,qi=(t,n)=>(t.msg=Hi[n],n),Kf=t=>t*2-(t>4?9:0),di=t=>{let n=t.length;for(;--n>=0;)t[n]=0},e2=t=>{let n,e,r,i=t.w_size;n=t.hash_size,r=n;do e=t.head[--r],t.head[r]=e>=i?e-i:0;while(--n);n=i,r=n;do e=t.prev[--r],t.prev[r]=e>=i?e-i:0;while(--n)},n2=(t,n,e)=>(n<<t.hash_shift^e)&t.hash_mask,vi=n2,zn=t=>{let n=t.state,e=n.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+e),t.next_out),t.next_out+=e,n.pending_out+=e,t.total_out+=e,t.avail_out-=e,n.pending-=e,n.pending===0&&(n.pending_out=0))},Un=(t,n)=>{O0(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,zn(t.strm)},we=(t,n)=>{t.pending_buf[t.pending++]=n},so=(t,n)=>{t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=n&255},ah=(t,n,e,r)=>{let i=t.avail_in;return i>r&&(i=r),i===0?0:(t.avail_in-=i,n.set(t.input.subarray(t.next_in,t.next_in+i),e),t.state.wrap===1?t.adler=bo(t.adler,n,i,e):t.state.wrap===2&&(t.adler=on(t.adler,n,i,e)),t.next_in+=i,t.total_in+=i,i)},qc=(t,n)=>{let e=t.max_chain_length,r=t.strstart,i,a,h=t.prev_length,l=t.nice_match,c=t.strstart>t.w_size-Nr?t.strstart-(t.w_size-Nr):0,u=t.window,g=t.w_mask,y=t.prev,x=t.strstart+pi,p=u[r+h-1],F=u[r+h];t.prev_length>=t.good_match&&(e>>=2),l>t.lookahead&&(l=t.lookahead);do if(i=n,!(u[i+h]!==F||u[i+h-1]!==p||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&r<x);if(a=pi-(x-r),r=x-pi,a>h){if(t.match_start=n,h=a,a>=l)break;p=u[r+h-1],F=u[r+h]}}while((n=y[n&g])>c&&--e!==0);return h<=t.lookahead?h:t.lookahead},pa=t=>{let n=t.w_size,e,r,i;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-Nr)&&(t.window.set(t.window.subarray(n,n+n-r),0),t.match_start-=n,t.strstart-=n,t.block_start-=n,t.insert>t.strstart&&(t.insert=t.strstart),e2(t),r+=n),t.strm.avail_in===0)break;if(e=ah(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=e,t.lookahead+t.insert>=de)for(i=t.strstart-t.insert,t.ins_h=t.window[i],t.ins_h=vi(t,t.ins_h,t.window[i+1]);t.insert&&(t.ins_h=vi(t,t.ins_h,t.window[i+de-1]),t.prev[i&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=i,i++,t.insert--,!(t.lookahead+t.insert<de)););}while(t.lookahead<Nr&&t.strm.avail_in!==0)},Hc=(t,n)=>{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r,i,a,h=0,l=t.strm.avail_in;do{if(r=65535,a=t.bi_valid+42>>3,t.strm.avail_out<a||(a=t.strm.avail_out-a,i=t.strstart-t.block_start,r>i+t.strm.avail_in&&(r=i+t.strm.avail_in),r>a&&(r=a),r<e&&(r===0&&n!==Xn||n===mi||r!==i+t.strm.avail_in)))break;h=n===Xn&&r===i+t.strm.avail_in?1:0,Ql(t,0,0,h),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,zn(t.strm),i&&(i>r&&(i=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,r-=i),r&&(ah(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(h===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),h?ba:n!==mi&&n!==Xn&&t.strm.avail_in===0&&t.strstart===t.block_start?va:(a=t.window_size-t.strstart,t.strm.avail_in>a&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,a+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),a>t.strm.avail_in&&(a=t.strm.avail_in),a&&(ah(t.strm,t.window,t.strstart,a),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.high_water<t.strstart&&(t.high_water=t.strstart),a=t.bi_valid+42>>3,a=t.pending_buf_size-a>65535?65535:t.pending_buf_size-a,e=a>t.w_size?t.w_size:a,i=t.strstart-t.block_start,(i>=e||(i||n===Xn)&&n!==mi&&t.strm.avail_in===0&&i<=a)&&(r=i>a?a:i,h=n===Xn&&t.strm.avail_in===0&&r===i?1:0,Ql(t,t.block_start,r,h),t.block_start+=r,zn(t.strm)),h?Wi:Ln)},ql=(t,n)=>{let e,r;for(;;){if(t.lookahead<Nr){if(pa(t),t.lookahead<Nr&&n===mi)return Ln;if(t.lookahead===0)break}if(e=0,t.lookahead>=de&&(t.ins_h=vi(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),e!==0&&t.strstart-e<=t.w_size-Nr&&(t.match_length=qc(t,e)),t.match_length>=de)if(r=gi(t,t.strstart-t.match_start,t.match_length-de),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=de){t.match_length--;do t.strstart++,t.ins_h=vi(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=vi(t,t.ins_h,t.window[t.strstart+1]);else r=gi(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(Un(t,!1),t.strm.avail_out===0))return Ln}return t.insert=t.strstart<de-1?t.strstart:de-1,n===Xn?(Un(t,!0),t.strm.avail_out===0?Wi:ba):t.sym_next&&(Un(t,!1),t.strm.avail_out===0)?Ln:va},fa=(t,n)=>{let e,r,i;for(;;){if(t.lookahead<Nr){if(pa(t),t.lookahead<Nr&&n===mi)return Ln;if(t.lookahead===0)break}if(e=0,t.lookahead>=de&&(t.ins_h=vi(t,t.ins_h,t.window[t.strstart+de-1]),e=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=de-1,e!==0&&t.prev_length<t.max_lazy_match&&t.strstart-e<=t.w_size-Nr&&(t.match_length=qc(t,e),t.match_length<=5&&(t.strategy===B0||t.match_length===de&&t.strstart-t.match_start>4096)&&(t.match_length=de-1)),t.prev_length>=de&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-de,r=gi(t,t.strstart-1-t.prev_match,t.prev_length-de),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=i&&(t.ins_h=vi(t,t.ins_h,t.window[t.strstart+de-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=de-1,t.strstart++,r&&(Un(t,!1),t.strm.avail_out===0))return Ln}else if(t.match_available){if(r=gi(t,0,t.window[t.strstart-1]),r&&Un(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Ln}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=gi(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<de-1?t.strstart:de-1,n===Xn?(Un(t,!0),t.strm.avail_out===0?Wi:ba):t.sym_next&&(Un(t,!1),t.strm.avail_out===0)?Ln:va},r2=(t,n)=>{let e,r,i,a,h=t.window;for(;;){if(t.lookahead<=pi){if(pa(t),t.lookahead<=pi&&n===mi)return Ln;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=de&&t.strstart>0&&(i=t.strstart-1,r=h[i],r===h[++i]&&r===h[++i]&&r===h[++i])){a=t.strstart+pi;do;while(r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&r===h[++i]&&i<a);t.match_length=pi-(a-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=de?(e=gi(t,1,t.match_length-de),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=gi(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(Un(t,!1),t.strm.avail_out===0))return Ln}return t.insert=0,n===Xn?(Un(t,!0),t.strm.avail_out===0?Wi:ba):t.sym_next&&(Un(t,!1),t.strm.avail_out===0)?Ln:va},i2=(t,n)=>{let e;for(;;){if(t.lookahead===0&&(pa(t),t.lookahead===0)){if(n===mi)return Ln;break}if(t.match_length=0,e=gi(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(Un(t,!1),t.strm.avail_out===0))return Ln}return t.insert=0,n===Xn?(Un(t,!0),t.strm.avail_out===0?Wi:ba):t.sym_next&&(Un(t,!1),t.strm.avail_out===0)?Ln:va};function _r(t,n,e,r,i){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=r,this.func=i}var ho=[new _r(0,0,0,0,Hc),new _r(4,4,8,4,ql),new _r(4,5,16,8,ql),new _r(4,6,32,32,ql),new _r(4,4,16,16,fa),new _r(8,16,32,32,fa),new _r(8,16,128,128,fa),new _r(8,32,128,256,fa),new _r(32,128,258,1024,fa),new _r(32,258,258,4096,fa)],a2=t=>{t.window_size=2*t.w_size,di(t.head),t.max_lazy_match=ho[t.level].max_lazy,t.good_match=ho[t.level].good_length,t.nice_match=ho[t.level].nice_length,t.max_chain_length=ho[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=de-1,t.match_available=0,t.ins_h=0};function o2(){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=As,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(X0*2),this.dyn_dtree=new Uint16Array((2*Y0+1)*2),this.bl_tree=new Uint16Array((2*K0+1)*2),di(this.dyn_ltree),di(this.dyn_dtree),di(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(J0+1),this.heap=new Uint16Array(2*th+1),di(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*th+1),di(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Ao=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.status!==da&&n.status!==fh&&n.status!==eh&&n.status!==nh&&n.status!==rh&&n.status!==ih&&n.status!==Ui&&n.status!==lo?1:0},Wc=t=>{if(Ao(t))return qi(t,Ar);t.total_in=t.total_out=0,t.data_type=H0;let n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?fh:n.wrap?da:Ui,t.adler=n.wrap===2?0:1,n.last_flush=-2,C0(n),pn},Gc=t=>{let n=Wc(t);return n===pn&&a2(t.state),n},s2=(t,n)=>Ao(t)||t.state.wrap!==2?Ar:(t.state.gzhead=n,pn),Vc=(t,n,e,r,i,a)=>{if(!t)return Ar;let h=1;if(n===j0&&(n=6),r<0?(h=0,r=-r):r>15&&(h=2,r-=16),i<1||i>W0||e!==As||r<8||r>15||n<0||n>9||a<0||a>U0||r===8&&h!==1)return qi(t,Ar);r===8&&(r=9);let l=new o2;return t.state=l,l.strm=t,l.status=da,l.wrap=h,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+de-1)/de),l.window=new Uint8Array(l.w_size*2),l.head=new Uint16Array(l.hash_size),l.prev=new Uint16Array(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=l.lit_bufsize*4,l.pending_buf=new Uint8Array(l.pending_buf_size),l.sym_buf=l.lit_bufsize,l.sym_end=(l.lit_bufsize-1)*3,l.level=n,l.strategy=a,l.method=e,Gc(t)},l2=(t,n)=>Vc(t,n,As,G0,V0,q0),h2=(t,n)=>{if(Ao(t)||n>$f||n<0)return t?qi(t,Ar):Ar;let e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===lo&&n!==Xn)return qi(t,t.avail_out===0?Ul:Ar);let r=e.last_flush;if(e.last_flush=n,e.pending!==0){if(zn(t),t.avail_out===0)return e.last_flush=-1,pn}else if(t.avail_in===0&&Kf(n)<=Kf(r)&&n!==Xn)return qi(t,Ul);if(e.status===lo&&t.avail_in!==0)return qi(t,Ul);if(e.status===da&&e.wrap===0&&(e.status=Ui),e.status===da){let i=As+(e.w_bits-8<<4)<<8,a=-1;if(e.strategy>=ps||e.level<2?a=0:e.level<6?a=1:e.level===6?a=2:a=3,i|=a<<6,e.strstart!==0&&(i|=Q0),i+=31-i%31,so(e,i),e.strstart!==0&&(so(e,t.adler>>>16),so(e,t.adler&65535)),t.adler=1,e.status=Ui,zn(t),e.pending!==0)return e.last_flush=-1,pn}if(e.status===fh){if(t.adler=0,we(e,31),we(e,139),we(e,8),e.gzhead)we(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),we(e,e.gzhead.time&255),we(e,e.gzhead.time>>8&255),we(e,e.gzhead.time>>16&255),we(e,e.gzhead.time>>24&255),we(e,e.level===9?2:e.strategy>=ps||e.level<2?4:0),we(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(we(e,e.gzhead.extra.length&255),we(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=on(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=eh;else if(we(e,0),we(e,0),we(e,0),we(e,0),we(e,0),we(e,e.level===9?2:e.strategy>=ps||e.level<2?4:0),we(e,t2),e.status=Ui,zn(t),e.pending!==0)return e.last_flush=-1,pn}if(e.status===eh){if(e.gzhead.extra){let i=e.pending,a=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+a>e.pending_buf_size;){let l=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+l),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex+=l,zn(t),e.pending!==0)return e.last_flush=-1,pn;i=0,a-=l}let h=new Uint8Array(e.gzhead.extra);e.pending_buf.set(h.subarray(e.gzindex,e.gzindex+a),e.pending),e.pending+=a,e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex=0}e.status=nh}if(e.status===nh){if(e.gzhead.name){let i=e.pending,a;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),zn(t),e.pending!==0)return e.last_flush=-1,pn;i=0}e.gzindex<e.gzhead.name.length?a=e.gzhead.name.charCodeAt(e.gzindex++)&255:a=0,we(e,a)}while(a!==0);e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),e.gzindex=0}e.status=rh}if(e.status===rh){if(e.gzhead.comment){let i=e.pending,a;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i)),zn(t),e.pending!==0)return e.last_flush=-1,pn;i=0}e.gzindex<e.gzhead.comment.length?a=e.gzhead.comment.charCodeAt(e.gzindex++)&255:a=0,we(e,a)}while(a!==0);e.gzhead.hcrc&&e.pending>i&&(t.adler=on(t.adler,e.pending_buf,e.pending-i,i))}e.status=ih}if(e.status===ih){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(zn(t),e.pending!==0))return e.last_flush=-1,pn;we(e,t.adler&255),we(e,t.adler>>8&255),t.adler=0}if(e.status=Ui,zn(t),e.pending!==0)return e.last_flush=-1,pn}if(t.avail_in!==0||e.lookahead!==0||n!==mi&&e.status!==lo){let i=e.level===0?Hc(e,n):e.strategy===ps?i2(e,n):e.strategy===z0?r2(e,n):ho[e.level].func(e,n);if((i===Wi||i===ba)&&(e.status=lo),i===Ln||i===Wi)return t.avail_out===0&&(e.last_flush=-1),pn;if(i===va&&(n===D0?T0(e):n!==$f&&(Ql(e,0,0,!1),n===M0&&(di(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),zn(t),t.avail_out===0))return e.last_flush=-1,pn}return n!==Xn?pn:e.wrap<=0?Yf:(e.wrap===2?(we(e,t.adler&255),we(e,t.adler>>8&255),we(e,t.adler>>16&255),we(e,t.adler>>24&255),we(e,t.total_in&255),we(e,t.total_in>>8&255),we(e,t.total_in>>16&255),we(e,t.total_in>>24&255)):(so(e,t.adler>>>16),so(e,t.adler&65535)),zn(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?pn:Yf)},f2=t=>{if(Ao(t))return Ar;let n=t.state.status;return t.state=null,n===Ui?qi(t,R0):pn},c2=(t,n)=>{let e=n.length;if(Ao(t))return Ar;let r=t.state,i=r.wrap;if(i===2||i===1&&r.status!==da||r.lookahead)return Ar;if(i===1&&(t.adler=bo(t.adler,n,e,0)),r.wrap=0,e>=r.w_size){i===0&&(di(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(n.subarray(e-r.w_size,e),0),n=c,e=r.w_size}let a=t.avail_in,h=t.next_in,l=t.input;for(t.avail_in=e,t.next_in=0,t.input=n,pa(r);r.lookahead>=de;){let c=r.strstart,u=r.lookahead-(de-1);do r.ins_h=vi(r,r.ins_h,r.window[c+de-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=de-1,pa(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=de-1,r.match_available=0,t.next_in=h,t.input=l,t.avail_in=a,r.wrap=i,pn},u2=l2,d2=Vc,p2=Gc,g2=Wc,m2=s2,v2=h2,b2=f2,w2=c2,y2="pako deflate (from Nodeca project)",co={deflateInit:u2,deflateInit2:d2,deflateReset:p2,deflateResetKeep:g2,deflateSetHeader:m2,deflate:v2,deflateEnd:b2,deflateSetDictionary:w2,deflateInfo:y2},_2=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),x2=function(t){let n=Array.prototype.slice.call(arguments,1);for(;n.length;){let e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(let r in e)_2(e,r)&&(t[r]=e[r])}}return t},A2=t=>{let n=0;for(let r=0,i=t.length;r<i;r++)n+=t[r].length;let e=new Uint8Array(n);for(let r=0,i=0,a=t.length;r<a;r++){let h=t[r];e.set(h,i),i+=h.length}return e},Ns={assign:x2,flattenChunks:A2},Zc=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Zc=!1}var wo=new Uint8Array(256);for(let t=0;t<256;t++)wo[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;wo[254]=wo[254]=1;var N2=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,r,i,a,h=t.length,l=0;for(i=0;i<h;i++)e=t.charCodeAt(i),(e&64512)===55296&&i+1<h&&(r=t.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(n=new Uint8Array(l),a=0,i=0;a<l;i++)e=t.charCodeAt(i),(e&64512)===55296&&i+1<h&&(r=t.charCodeAt(i+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),i++)),e<128?n[a++]=e:e<2048?(n[a++]=192|e>>>6,n[a++]=128|e&63):e<65536?(n[a++]=224|e>>>12,n[a++]=128|e>>>6&63,n[a++]=128|e&63):(n[a++]=240|e>>>18,n[a++]=128|e>>>12&63,n[a++]=128|e>>>6&63,n[a++]=128|e&63);return n},L2=(t,n)=>{if(n<65534&&t.subarray&&Zc)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let r=0;r<n;r++)e+=String.fromCharCode(t[r]);return e},S2=(t,n)=>{let e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let r,i,a=new Array(e*2);for(i=0,r=0;r<e;){let h=t[r++];if(h<128){a[i++]=h;continue}let l=wo[h];if(l>4){a[i++]=65533,r+=l-1;continue}for(h&=l===2?31:l===3?15:7;l>1&&r<e;)h=h<<6|t[r++]&63,l--;if(l>1){a[i++]=65533;continue}h<65536?a[i++]=h:(h-=65536,a[i++]=55296|h>>10&1023,a[i++]=56320|h&1023)}return L2(a,i)},k2=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+wo[t[e]]>n?e:n},yo={string2buf:N2,buf2string:S2,utf8border:k2};function P2(){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}var $c=P2,Yc=Object.prototype.toString,{Z_NO_FLUSH:I2,Z_SYNC_FLUSH:F2,Z_FULL_FLUSH:E2,Z_FINISH:C2,Z_OK:_s,Z_STREAM_END:O2,Z_DEFAULT_COMPRESSION:T2,Z_DEFAULT_STRATEGY:D2,Z_DEFLATED:M2}=ma;function No(t){this.options=Ns.assign({level:T2,method:M2,chunkSize:16384,windowBits:15,memLevel:8,strategy:D2},t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $c,this.strm.avail_out=0;let e=co.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(e!==_s)throw new Error(Hi[e]);if(n.header&&co.deflateSetHeader(this.strm,n.header),n.dictionary){let r;if(typeof n.dictionary=="string"?r=yo.string2buf(n.dictionary):Yc.call(n.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(n.dictionary):r=n.dictionary,e=co.deflateSetDictionary(this.strm,r),e!==_s)throw new Error(Hi[e]);this._dict_set=!0}}No.prototype.push=function(t,n){let e=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?C2:I2,typeof t=="string"?e.input=yo.string2buf(t):Yc.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),(a===F2||a===E2)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(i=co.deflate(e,a),i===O2)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),i=co.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===_s;if(e.avail_out===0){this.onData(e.output);continue}if(a>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};No.prototype.onData=function(t){this.chunks.push(t)};No.prototype.onEnd=function(t){t===_s&&(this.result=Ns.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function ch(t,n){let e=new No(n);if(e.push(t,!0),e.err)throw e.msg||Hi[e.err];return e.result}function R2(t,n){return n=n||{},n.raw=!0,ch(t,n)}function j2(t,n){return n=n||{},n.gzip=!0,ch(t,n)}var B2=No,z2=ch,U2=R2,q2=j2,H2=ma,W2={Deflate:B2,deflate:z2,deflateRaw:U2,gzip:q2,constants:H2},gs=16209,G2=16191,V2=function(n,e){let r,i,a,h,l,c,u,g,y,x,p,F,P,D,N,H,q,R,rt,mt,ct,Y,j,tt,S=n.state;r=n.next_in,j=n.input,i=r+(n.avail_in-5),a=n.next_out,tt=n.output,h=a-(e-n.avail_out),l=a+(n.avail_out-257),c=S.dmax,u=S.wsize,g=S.whave,y=S.wnext,x=S.window,p=S.hold,F=S.bits,P=S.lencode,D=S.distcode,N=(1<<S.lenbits)-1,H=(1<<S.distbits)-1;t:do{F<15&&(p+=j[r++]<<F,F+=8,p+=j[r++]<<F,F+=8),q=P[p&N];e:for(;;){if(R=q>>>24,p>>>=R,F-=R,R=q>>>16&255,R===0)tt[a++]=q&65535;else if(R&16){rt=q&65535,R&=15,R&&(F<R&&(p+=j[r++]<<F,F+=8),rt+=p&(1<<R)-1,p>>>=R,F-=R),F<15&&(p+=j[r++]<<F,F+=8,p+=j[r++]<<F,F+=8),q=D[p&H];n:for(;;){if(R=q>>>24,p>>>=R,F-=R,R=q>>>16&255,R&16){if(mt=q&65535,R&=15,F<R&&(p+=j[r++]<<F,F+=8,F<R&&(p+=j[r++]<<F,F+=8)),mt+=p&(1<<R)-1,mt>c){n.msg="invalid distance too far back",S.mode=gs;break t}if(p>>>=R,F-=R,R=a-h,mt>R){if(R=mt-R,R>g&&S.sane){n.msg="invalid distance too far back",S.mode=gs;break t}if(ct=0,Y=x,y===0){if(ct+=u-R,R<rt){rt-=R;do tt[a++]=x[ct++];while(--R);ct=a-mt,Y=tt}}else if(y<R){if(ct+=u+y-R,R-=y,R<rt){rt-=R;do tt[a++]=x[ct++];while(--R);if(ct=0,y<rt){R=y,rt-=R;do tt[a++]=x[ct++];while(--R);ct=a-mt,Y=tt}}}else if(ct+=y-R,R<rt){rt-=R;do tt[a++]=x[ct++];while(--R);ct=a-mt,Y=tt}for(;rt>2;)tt[a++]=Y[ct++],tt[a++]=Y[ct++],tt[a++]=Y[ct++],rt-=3;rt&&(tt[a++]=Y[ct++],rt>1&&(tt[a++]=Y[ct++]))}else{ct=a-mt;do tt[a++]=tt[ct++],tt[a++]=tt[ct++],tt[a++]=tt[ct++],rt-=3;while(rt>2);rt&&(tt[a++]=tt[ct++],rt>1&&(tt[a++]=tt[ct++]))}}else if((R&64)===0){q=D[(q&65535)+(p&(1<<R)-1)];continue n}else{n.msg="invalid distance code",S.mode=gs;break t}break}}else if((R&64)===0){q=P[(q&65535)+(p&(1<<R)-1)];continue e}else if(R&32){S.mode=G2;break t}else{n.msg="invalid literal/length code",S.mode=gs;break t}break}}while(r<i&&a<l);rt=F>>3,r-=rt,F-=rt<<3,p&=(1<<F)-1,n.next_in=r,n.next_out=a,n.avail_in=r<i?5+(i-r):5-(r-i),n.avail_out=a<l?257+(l-a):257-(a-l),S.hold=p,S.bits=F},ca=15,Xf=852,Jf=592,Qf=0,Hl=1,tc=2,Z2=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),$2=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Y2=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),K2=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),X2=(t,n,e,r,i,a,h,l)=>{let c=l.bits,u=0,g=0,y=0,x=0,p=0,F=0,P=0,D=0,N=0,H=0,q,R,rt,mt,ct,Y=null,j,tt=new Uint16Array(ca+1),S=new Uint16Array(ca+1),O=null,W,U,it;for(u=0;u<=ca;u++)tt[u]=0;for(g=0;g<r;g++)tt[n[e+g]]++;for(p=c,x=ca;x>=1&&tt[x]===0;x--);if(p>x&&(p=x),x===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,l.bits=1,0;for(y=1;y<x&&tt[y]===0;y++);for(p<y&&(p=y),D=1,u=1;u<=ca;u++)if(D<<=1,D-=tt[u],D<0)return-1;if(D>0&&(t===Qf||x!==1))return-1;for(S[1]=0,u=1;u<ca;u++)S[u+1]=S[u]+tt[u];for(g=0;g<r;g++)n[e+g]!==0&&(h[S[n[e+g]]++]=g);if(t===Qf?(Y=O=h,j=20):t===Hl?(Y=Z2,O=$2,j=257):(Y=Y2,O=K2,j=0),H=0,g=0,u=y,ct=a,F=p,P=0,rt=-1,N=1<<p,mt=N-1,t===Hl&&N>Xf||t===tc&&N>Jf)return 1;for(;;){W=u-P,h[g]+1<j?(U=0,it=h[g]):h[g]>=j?(U=O[h[g]-j],it=Y[h[g]-j]):(U=96,it=0),q=1<<u-P,R=1<<F,y=R;do R-=q,i[ct+(H>>P)+R]=W<<24|U<<16|it|0;while(R!==0);for(q=1<<u-1;H&q;)q>>=1;if(q!==0?(H&=q-1,H+=q):H=0,g++,--tt[u]===0){if(u===x)break;u=n[e+h[g]]}if(u>p&&(H&mt)!==rt){for(P===0&&(P=p),ct+=y,F=u-P,D=1<<F;F+P<x&&(D-=tt[F+P],!(D<=0));)F++,D<<=1;if(N+=1<<F,t===Hl&&N>Xf||t===tc&&N>Jf)return 1;rt=H&mt,i[rt]=p<<24|F<<16|ct-a|0}}return H!==0&&(i[ct+H]=u-P<<24|64<<16|0),l.bits=p,0},uo=X2,J2=0,Kc=1,Xc=2,{Z_FINISH:ec,Z_BLOCK:Q2,Z_TREES:ms,Z_OK:Gi,Z_STREAM_END:t5,Z_NEED_DICT:e5,Z_STREAM_ERROR:Jn,Z_DATA_ERROR:Jc,Z_MEM_ERROR:Qc,Z_BUF_ERROR:n5,Z_DEFLATED:nc}=ma,Ls=16180,rc=16181,ic=16182,ac=16183,oc=16184,sc=16185,lc=16186,hc=16187,fc=16188,cc=16189,xs=16190,$r=16191,Wl=16192,uc=16193,Gl=16194,dc=16195,pc=16196,gc=16197,mc=16198,vs=16199,bs=16200,vc=16201,bc=16202,wc=16203,yc=16204,_c=16205,Vl=16206,xc=16207,Ac=16208,De=16209,tu=16210,eu=16211,r5=852,i5=592,a5=15,o5=a5,Nc=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function s5(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Vi=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.mode<Ls||n.mode>eu?1:0},nu=t=>{if(Vi(t))return Jn;let n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=Ls,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(r5),n.distcode=n.distdyn=new Int32Array(i5),n.sane=1,n.back=-1,Gi},ru=t=>{if(Vi(t))return Jn;let n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,nu(t)},iu=(t,n)=>{let e;if(Vi(t))return Jn;let r=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Jn:(r.window!==null&&r.wbits!==n&&(r.window=null),r.wrap=e,r.wbits=n,ru(t))},au=(t,n)=>{if(!t)return Jn;let e=new s5;t.state=e,e.strm=t,e.window=null,e.mode=Ls;let r=iu(t,n);return r!==Gi&&(t.state=null),r},l5=t=>au(t,o5),Lc=!0,Zl,$l,h5=t=>{if(Lc){Zl=new Int32Array(512),$l=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(uo(Kc,t.lens,0,288,Zl,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;uo(Xc,t.lens,0,32,$l,0,t.work,{bits:5}),Lc=!1}t.lencode=Zl,t.lenbits=9,t.distcode=$l,t.distbits=5},ou=(t,n,e,r)=>{let i,a=t.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(n.subarray(e-a.wsize,e),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(n.subarray(e-r,e-r+i),a.wnext),r-=i,r?(a.window.set(n.subarray(e-r,e),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},f5=(t,n)=>{let e,r,i,a,h,l,c,u,g,y,x,p,F,P,D=0,N,H,q,R,rt,mt,ct,Y,j=new Uint8Array(4),tt,S,O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Vi(t)||!t.output||!t.input&&t.avail_in!==0)return Jn;e=t.state,e.mode===$r&&(e.mode=Wl),h=t.next_out,i=t.output,c=t.avail_out,a=t.next_in,r=t.input,l=t.avail_in,u=e.hold,g=e.bits,y=l,x=c,Y=Gi;t:for(;;)switch(e.mode){case Ls:if(e.wrap===0){e.mode=Wl;break}for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.wrap&2&&u===35615){e.wbits===0&&(e.wbits=15),e.check=0,j[0]=u&255,j[1]=u>>>8&255,e.check=on(e.check,j,2,0),u=0,g=0,e.mode=rc;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((u&255)<<8)+(u>>8))%31){t.msg="incorrect header check",e.mode=De;break}if((u&15)!==nc){t.msg="unknown compression method",e.mode=De;break}if(u>>>=4,g-=4,ct=(u&15)+8,e.wbits===0&&(e.wbits=ct),ct>15||ct>e.wbits){t.msg="invalid window size",e.mode=De;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=u&512?cc:$r,u=0,g=0;break;case rc:for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.flags=u,(e.flags&255)!==nc){t.msg="unknown compression method",e.mode=De;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=De;break}e.head&&(e.head.text=u>>8&1),e.flags&512&&e.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,e.check=on(e.check,j,2,0)),u=0,g=0,e.mode=ic;case ic:for(;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.head&&(e.head.time=u),e.flags&512&&e.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,j[2]=u>>>16&255,j[3]=u>>>24&255,e.check=on(e.check,j,4,0)),u=0,g=0,e.mode=ac;case ac:for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.head&&(e.head.xflags=u&255,e.head.os=u>>8),e.flags&512&&e.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,e.check=on(e.check,j,2,0)),u=0,g=0,e.mode=oc;case oc:if(e.flags&1024){for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.length=u,e.head&&(e.head.extra_len=u),e.flags&512&&e.wrap&4&&(j[0]=u&255,j[1]=u>>>8&255,e.check=on(e.check,j,2,0)),u=0,g=0}else e.head&&(e.head.extra=null);e.mode=sc;case sc:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(ct=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(a,a+p),ct)),e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,a)),l-=p,a+=p,e.length-=p),e.length))break t;e.length=0,e.mode=lc;case lc:if(e.flags&2048){if(l===0)break t;p=0;do ct=r[a+p++],e.head&&ct&&e.length<65536&&(e.head.name+=String.fromCharCode(ct));while(ct&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,a)),l-=p,a+=p,ct)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=hc;case hc:if(e.flags&4096){if(l===0)break t;p=0;do ct=r[a+p++],e.head&&ct&&e.length<65536&&(e.head.comment+=String.fromCharCode(ct));while(ct&&p<l);if(e.flags&512&&e.wrap&4&&(e.check=on(e.check,r,p,a)),l-=p,a+=p,ct)break t}else e.head&&(e.head.comment=null);e.mode=fc;case fc:if(e.flags&512){for(;g<16;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.wrap&4&&u!==(e.check&65535)){t.msg="header crc mismatch",e.mode=De;break}u=0,g=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=$r;break;case cc:for(;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}t.adler=e.check=Nc(u),u=0,g=0,e.mode=xs;case xs:if(e.havedict===0)return t.next_out=h,t.avail_out=c,t.next_in=a,t.avail_in=l,e.hold=u,e.bits=g,e5;t.adler=e.check=1,e.mode=$r;case $r:if(n===Q2||n===ms)break t;case Wl:if(e.last){u>>>=g&7,g-=g&7,e.mode=Vl;break}for(;g<3;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}switch(e.last=u&1,u>>>=1,g-=1,u&3){case 0:e.mode=uc;break;case 1:if(h5(e),e.mode=vs,n===ms){u>>>=2,g-=2;break t}break;case 2:e.mode=pc;break;case 3:t.msg="invalid block type",e.mode=De}u>>>=2,g-=2;break;case uc:for(u>>>=g&7,g-=g&7;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if((u&65535)!==(u>>>16^65535)){t.msg="invalid stored block lengths",e.mode=De;break}if(e.length=u&65535,u=0,g=0,e.mode=Gl,n===ms)break t;case Gl:e.mode=dc;case dc:if(p=e.length,p){if(p>l&&(p=l),p>c&&(p=c),p===0)break t;i.set(r.subarray(a,a+p),h),l-=p,a+=p,c-=p,h+=p,e.length-=p;break}e.mode=$r;break;case pc:for(;g<14;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.nlen=(u&31)+257,u>>>=5,g-=5,e.ndist=(u&31)+1,u>>>=5,g-=5,e.ncode=(u&15)+4,u>>>=4,g-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=De;break}e.have=0,e.mode=gc;case gc:for(;e.have<e.ncode;){for(;g<3;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.lens[O[e.have++]]=u&7,u>>>=3,g-=3}for(;e.have<19;)e.lens[O[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,tt={bits:e.lenbits},Y=uo(J2,e.lens,0,19,e.lencode,0,e.work,tt),e.lenbits=tt.bits,Y){t.msg="invalid code lengths set",e.mode=De;break}e.have=0,e.mode=mc;case mc:for(;e.have<e.nlen+e.ndist;){for(;D=e.lencode[u&(1<<e.lenbits)-1],N=D>>>24,H=D>>>16&255,q=D&65535,!(N<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(q<16)u>>>=N,g-=N,e.lens[e.have++]=q;else{if(q===16){for(S=N+2;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(u>>>=N,g-=N,e.have===0){t.msg="invalid bit length repeat",e.mode=De;break}ct=e.lens[e.have-1],p=3+(u&3),u>>>=2,g-=2}else if(q===17){for(S=N+3;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=N,g-=N,ct=0,p=3+(u&7),u>>>=3,g-=3}else{for(S=N+7;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=N,g-=N,ct=0,p=11+(u&127),u>>>=7,g-=7}if(e.have+p>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=De;break}for(;p--;)e.lens[e.have++]=ct}}if(e.mode===De)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=De;break}if(e.lenbits=9,tt={bits:e.lenbits},Y=uo(Kc,e.lens,0,e.nlen,e.lencode,0,e.work,tt),e.lenbits=tt.bits,Y){t.msg="invalid literal/lengths set",e.mode=De;break}if(e.distbits=6,e.distcode=e.distdyn,tt={bits:e.distbits},Y=uo(Xc,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,tt),e.distbits=tt.bits,Y){t.msg="invalid distances set",e.mode=De;break}if(e.mode=vs,n===ms)break t;case vs:e.mode=bs;case bs:if(l>=6&&c>=258){t.next_out=h,t.avail_out=c,t.next_in=a,t.avail_in=l,e.hold=u,e.bits=g,V2(t,x),h=t.next_out,i=t.output,c=t.avail_out,a=t.next_in,r=t.input,l=t.avail_in,u=e.hold,g=e.bits,e.mode===$r&&(e.back=-1);break}for(e.back=0;D=e.lencode[u&(1<<e.lenbits)-1],N=D>>>24,H=D>>>16&255,q=D&65535,!(N<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(H&&(H&240)===0){for(R=N,rt=H,mt=q;D=e.lencode[mt+((u&(1<<R+rt)-1)>>R)],N=D>>>24,H=D>>>16&255,q=D&65535,!(R+N<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=R,g-=R,e.back+=R}if(u>>>=N,g-=N,e.back+=N,e.length=q,H===0){e.mode=_c;break}if(H&32){e.back=-1,e.mode=$r;break}if(H&64){t.msg="invalid literal/length code",e.mode=De;break}e.extra=H&15,e.mode=vc;case vc:if(e.extra){for(S=e.extra;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.length+=u&(1<<e.extra)-1,u>>>=e.extra,g-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=bc;case bc:for(;D=e.distcode[u&(1<<e.distbits)-1],N=D>>>24,H=D>>>16&255,q=D&65535,!(N<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if((H&240)===0){for(R=N,rt=H,mt=q;D=e.distcode[mt+((u&(1<<R+rt)-1)>>R)],N=D>>>24,H=D>>>16&255,q=D&65535,!(R+N<=g);){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}u>>>=R,g-=R,e.back+=R}if(u>>>=N,g-=N,e.back+=N,H&64){t.msg="invalid distance code",e.mode=De;break}e.offset=q,e.extra=H&15,e.mode=wc;case wc:if(e.extra){for(S=e.extra;g<S;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}e.offset+=u&(1<<e.extra)-1,u>>>=e.extra,g-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=De;break}e.mode=yc;case yc:if(c===0)break t;if(p=x-c,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=De;break}p>e.wnext?(p-=e.wnext,F=e.wsize-p):F=e.wnext-p,p>e.length&&(p=e.length),P=e.window}else P=i,F=h-e.offset,p=e.length;p>c&&(p=c),c-=p,e.length-=p;do i[h++]=P[F++];while(--p);e.length===0&&(e.mode=bs);break;case _c:if(c===0)break t;i[h++]=e.length,c--,e.mode=bs;break;case Vl:if(e.wrap){for(;g<32;){if(l===0)break t;l--,u|=r[a++]<<g,g+=8}if(x-=c,t.total_out+=x,e.total+=x,e.wrap&4&&x&&(t.adler=e.check=e.flags?on(e.check,i,x,h-x):bo(e.check,i,x,h-x)),x=c,e.wrap&4&&(e.flags?u:Nc(u))!==e.check){t.msg="incorrect data check",e.mode=De;break}u=0,g=0}e.mode=xc;case xc:if(e.wrap&&e.flags){for(;g<32;){if(l===0)break t;l--,u+=r[a++]<<g,g+=8}if(e.wrap&4&&u!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=De;break}u=0,g=0}e.mode=Ac;case Ac:Y=t5;break t;case De:Y=Jc;break t;case tu:return Qc;case eu:default:return Jn}return t.next_out=h,t.avail_out=c,t.next_in=a,t.avail_in=l,e.hold=u,e.bits=g,(e.wsize||x!==t.avail_out&&e.mode<De&&(e.mode<Vl||n!==ec))&&ou(t,t.output,t.next_out,x-t.avail_out),y-=t.avail_in,x-=t.avail_out,t.total_in+=y,t.total_out+=x,e.total+=x,e.wrap&4&&x&&(t.adler=e.check=e.flags?on(e.check,i,x,t.next_out-x):bo(e.check,i,x,t.next_out-x)),t.data_type=e.bits+(e.last?64:0)+(e.mode===$r?128:0)+(e.mode===vs||e.mode===Gl?256:0),(y===0&&x===0||n===ec)&&Y===Gi&&(Y=n5),Y},c5=t=>{if(Vi(t))return Jn;let n=t.state;return n.window&&(n.window=null),t.state=null,Gi},u5=(t,n)=>{if(Vi(t))return Jn;let e=t.state;return(e.wrap&2)===0?Jn:(e.head=n,n.done=!1,Gi)},d5=(t,n)=>{let e=n.length,r,i,a;return Vi(t)||(r=t.state,r.wrap!==0&&r.mode!==xs)?Jn:r.mode===xs&&(i=1,i=bo(i,n,e,0),i!==r.check)?Jc:(a=ou(t,n,e,e),a?(r.mode=tu,Qc):(r.havedict=1,Gi))},p5=ru,g5=iu,m5=nu,v5=l5,b5=au,w5=f5,y5=c5,_5=u5,x5=d5,A5="pako inflate (from Nodeca project)",Kr={inflateReset:p5,inflateReset2:g5,inflateResetKeep:m5,inflateInit:v5,inflateInit2:b5,inflate:w5,inflateEnd:y5,inflateGetHeader:_5,inflateSetDictionary:x5,inflateInfo:A5};function N5(){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}var L5=N5,su=Object.prototype.toString,{Z_NO_FLUSH:S5,Z_FINISH:k5,Z_OK:_o,Z_STREAM_END:Yl,Z_NEED_DICT:Kl,Z_STREAM_ERROR:P5,Z_DATA_ERROR:Sc,Z_MEM_ERROR:I5}=ma;function Lo(t){this.options=Ns.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});let n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $c,this.strm.avail_out=0;let e=Kr.inflateInit2(this.strm,n.windowBits);if(e!==_o)throw new Error(Hi[e]);if(this.header=new L5,Kr.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=yo.string2buf(n.dictionary):su.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=Kr.inflateSetDictionary(this.strm,n.dictionary),e!==_o)))throw new Error(Hi[e])}Lo.prototype.push=function(t,n){let e=this.strm,r=this.options.chunkSize,i=this.options.dictionary,a,h,l;if(this.ended)return!1;for(n===~~n?h=n:h=n===!0?k5:S5,su.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),a=Kr.inflate(e,h),a===Kl&&i&&(a=Kr.inflateSetDictionary(e,i),a===_o?a=Kr.inflate(e,h):a===Sc&&(a=Kl));e.avail_in>0&&a===Yl&&e.state.wrap>0&&t[e.next_in]!==0;)Kr.inflateReset(e),a=Kr.inflate(e,h);switch(a){case P5:case Sc:case Kl:case I5:return this.onEnd(a),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||a===Yl))if(this.options.to==="string"){let c=yo.utf8border(e.output,e.next_out),u=e.next_out-c,g=yo.buf2string(e.output,c);e.next_out=u,e.avail_out=r-u,u&&e.output.set(e.output.subarray(c,c+u),0),this.onData(g)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(a===_o&&l===0)){if(a===Yl)return a=Kr.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};Lo.prototype.onData=function(t){this.chunks.push(t)};Lo.prototype.onEnd=function(t){t===_o&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ns.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function uh(t,n){let e=new Lo(n);if(e.push(t),e.err)throw e.msg||Hi[e.err];return e.result}function F5(t,n){return n=n||{},n.raw=!0,uh(t,n)}var E5=Lo,C5=uh,O5=F5,T5=uh,D5=ma,M5={Inflate:E5,inflate:C5,inflateRaw:O5,ungzip:T5,constants:D5},{Deflate:yp,deflate:_p,deflateRaw:xp,gzip:Ap}=W2,{Inflate:R5,inflate:j5,inflateRaw:Np,ungzip:Lp}=M5;var dh=R5,lu=j5;var fu=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n=n>>>1;fu[t]=n}var hu=4294967295;function B5(t,n,e){let r=t;for(let i=0;i<e;i++)r=fu[(r^n[i])&255]^r>>>8;return r}function z5(t,n){return(B5(hu,t,n)^hu)>>>0}function ph(t,n,e){let r=t.readUint32(),i=z5(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(i!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${i}`)}function Ss(t,n,e){for(let r=0;r<e;r++)n[r]=t[r]}function ks(t,n,e,r){let i=0;for(;i<r;i++)n[i]=t[i];for(;i<e;i++)n[i]=t[i]+n[i-r]&255}function Ps(t,n,e,r){let i=0;if(e.length===0)for(;i<r;i++)n[i]=t[i];else for(;i<r;i++)n[i]=t[i]+e[i]&255}function Is(t,n,e,r,i){let a=0;if(e.length===0){for(;a<i;a++)n[a]=t[a];for(;a<r;a++)n[a]=t[a]+(n[a-i]>>1)&255}else{for(;a<i;a++)n[a]=t[a]+(e[a]>>1)&255;for(;a<r;a++)n[a]=t[a]+(n[a-i]+e[a]>>1)&255}}function Fs(t,n,e,r,i){let a=0;if(e.length===0){for(;a<i;a++)n[a]=t[a];for(;a<r;a++)n[a]=t[a]+n[a-i]&255}else{for(;a<i;a++)n[a]=t[a]+e[a]&255;for(;a<r;a++)n[a]=t[a]+U5(n[a-i],e[a],e[a-i])&255}}function U5(t,n,e){let r=t+n-e,i=Math.abs(r-t),a=Math.abs(r-n),h=Math.abs(r-e);return i<=a&&i<=h?t:a<=h?n:e}function cu(t,n,e,r,i,a){switch(t){case 0:Ss(n,e,i);break;case 1:ks(n,e,i,a);break;case 2:Ps(n,e,r,i);break;case 3:Is(n,e,r,i,a);break;case 4:Fs(n,e,r,i,a);break;default:throw new Error(`Unsupported filter: ${t}`)}}var q5=new Uint16Array([255]),H5=new Uint8Array(q5.buffer),W5=H5[0]===255;function uu(t){let{data:n,width:e,height:r,channels:i,depth:a}=t,h=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(a/8)*i,c=new Uint8Array(r*e*l),u=0;for(let g=0;g<7;g++){let y=h[g],x=Math.ceil((e-y.x)/y.xStep),p=Math.ceil((r-y.y)/y.yStep);if(x<=0||p<=0)continue;let F=x*l,P=new Uint8Array(F);for(let D=0;D<p;D++){let N=n[u++],H=n.subarray(u,u+F);u+=F;let q=new Uint8Array(F);cu(N,H,q,P,F,l),P.set(q);for(let R=0;R<x;R++){let rt=y.x+R*y.xStep,mt=y.y+D*y.yStep;if(!(rt>=e||mt>=r))for(let ct=0;ct<l;ct++)c[(mt*e+rt)*l+ct]=q[R*l+ct]}}}if(a===16){let g=new Uint16Array(c.buffer);if(W5)for(let y=0;y<g.length;y++)g[y]=G5(g[y]);return g}else return c}function G5(t){return(t&255)<<8|t>>8&255}var V5=new Uint16Array([255]),Z5=new Uint8Array(V5.buffer),$5=Z5[0]===255,Y5=new Uint8Array(0);function gh(t){let{data:n,width:e,height:r,channels:i,depth:a}=t,h=Math.ceil(a/8)*i,l=Math.ceil(a/8*i*e),c=new Uint8Array(r*l),u=Y5,g=0,y,x;for(let p=0;p<r;p++){switch(y=n.subarray(g+1,g+1+l),x=c.subarray(p*l,(p+1)*l),n[g]){case 0:Ss(y,x,l);break;case 1:ks(y,x,l,h);break;case 2:Ps(y,x,u,l);break;case 3:Is(y,x,u,l,h);break;case 4:Fs(y,x,u,l,h);break;default:throw new Error(`Unsupported filter: ${n[g]}`)}u=x,g+=l+1}if(a===16){let p=new Uint16Array(c.buffer);if($5)for(let F=0;F<p.length;F++)p[F]=K5(p[F]);return p}else return c}function K5(t){return(t&255)<<8|t>>8&255}var Es=Uint8Array.of(137,80,78,71,13,10,26,10);function mh(t){if(!du(t.readBytes(Es.length)))throw new Error("wrong PNG signature")}function du(t){if(t.length<Es.length)return!1;for(let n=0;n<Es.length;n++)if(t[n]!==Es[n])return!1;return!0}var pu="tEXt",J5=0,gu=new TextDecoder("latin1");function Q5(t){if(ed(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}var td=/^[\u0000-\u00FF]*$/;function ed(t){if(!td.test(t))throw new Error("invalid latin1 text")}function mu(t,n,e){let r=vh(n);t[r]=nd(n,e-r.length-1)}function vh(t){for(t.mark();t.readByte()!==J5;);let n=t.offset;t.reset();let e=gu.decode(t.readBytes(n-t.offset-1));return t.skip(1),Q5(e),e}function nd(t,n){return gu.decode(t.readBytes(n))}var Sn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},So={UNKNOWN:-1,DEFLATE:0},Cs={UNKNOWN:-1,ADAPTIVE:0},ko={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Po={NONE:0,BACKGROUND:1,PREVIOUS:2},Os={SOURCE:0,OVER:1};var Io=class extends oo{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(n,e={}){super(n);let{checkCrc:r=!1}=e;this._checkCrc=r,this._inflator=new dh,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=So.UNKNOWN,this._filterMethod=Cs.UNKNOWN,this._interlaceMethod=ko.UNKNOWN,this._colorType=Sn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(mh(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeChunk(n,e)}return this.decodeImage(),this._png}decodeApng(){for(mh(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(n,e)}return this.decodeApngImage(),this._apng}decodeChunk(n,e){let r=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case pu:mu(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?ph(this,n+4,e):this.skip(4)}decodeApngChunk(n,e){let r=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,e),this.offset=r+n;break}if(this.offset-r!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?ph(this,n+4,e):this.skip(4)}decodeIHDR(){let n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=rd(this.readUint8());let e=this.readUint8();this._colorType=e;let r;switch(e){case Sn.GREYSCALE:r=1;break;case Sn.TRUECOLOUR:r=3;break;case Sn.INDEXED_COLOUR:r=1;break;case Sn.GREYSCALE_ALPHA:r=2;break;case Sn.TRUECOLOUR_ALPHA:r=4;break;case Sn.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==So.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);let e=n/3;this._hasPalette=!0;let r=[];this._palette=r;for(let i=0;i<e;i++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(n){this._writingDataChunks=!0;let e=n,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodeFDAT(n){this._writingDataChunks=!0;let e=n,r=this.offset+this.byteOffset;if(r+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,r,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(n)}decodetRNS(n){switch(this._colorType){case Sn.GREYSCALE:case Sn.TRUECOLOUR:{if(n%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${n}`);if(n/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let e=0;e<n/2;e++)this._transparency[e]=this.readUint16();break}case Sn.INDEXED_COLOUR:{if(n>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${n} vs ${this._palette.length})`);let e=0;for(;e<n;e++){let r=this.readByte();this._palette[e].push(r)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}case Sn.UNKNOWN:case Sn.GREYSCALE_ALPHA:case Sn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(n){let e=vh(this),r=this.readUint8();if(r!==So.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);let i=this.readBytes(n-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:lu(i)}}decodepHYs(){let n=this.readUint32(),e=this.readUint32(),r=this.readByte();this._png.resolution={x:n,y:e,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let n=0;n<this._numberOfFrames;n++){let e={sequenceNumber:this._frames[n].sequenceNumber,delayNumber:this._frames[n].delayNumber,delayDenominator:this._frames[n].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(n);if(r){if(r.data=gh({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),n===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)e.data=r.data;else{let i=this._apng.frames.at(n-1);this.disposeFrame(r,i,e),this.addFrameDataToCanvas(e,r)}this._apng.frames.push(e)}}return this._apng}disposeFrame(n,e,r){switch(n.disposeOp){case Po.NONE:break;case Po.BACKGROUND:for(let i=0;i<this._png.height;i++)for(let a=0;a<this._png.width;a++){let h=(i*n.width+a)*this._png.channels;for(let l=0;l<this._png.channels;l++)r.data[h+l]=0}break;case Po.PREVIOUS:r.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(n,e){let r=1<<this._png.depth,i=(a,h)=>{let l=((a+e.yOffset)*this._png.width+e.xOffset+h)*this._png.channels,c=(a*e.width+h)*this._png.channels;return{index:l,frameIndex:c}};switch(e.blendOp){case Os.SOURCE:for(let a=0;a<e.height;a++)for(let h=0;h<e.width;h++){let{index:l,frameIndex:c}=i(a,h);for(let u=0;u<this._png.channels;u++)n.data[l+u]=e.data[c+u]}break;case Os.OVER:for(let a=0;a<e.height;a++)for(let h=0;h<e.width;h++){let{index:l,frameIndex:c}=i(a,h);for(let u=0;u<this._png.channels;u++){let g=e.data[c+this._png.channels-1]/r,y=u%(this._png.channels-1)===0?1:e.data[c+u],x=Math.floor(g*y+(1-g)*n.data[l+u]);n.data[l+u]+=x}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let n=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==Cs.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===ko.NO_INTERLACE)this._png.data=gh({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===ko.ADAM7)this._png.data=uu({data:n,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let n=this._inflator.result,e=this._frames.at(-1);e?e.data=n:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Po.NONE,blendOp:Os.SOURCE,data:n}),this._inflator=new dh,this._writingDataChunks=!1}};function rd(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var vu;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(vu||(vu={}));function bu(t,n){return new Io(t,n).decode()}var $t=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function bh(){$t.console&&typeof $t.console.log=="function"&&$t.console.log.apply($t.console,arguments)}var Pe={log:bh,warn:function(t){$t.console&&(typeof $t.console.warn=="function"?$t.console.warn.apply($t.console,arguments):bh.call(null,arguments))},error:function(t){$t.console&&(typeof $t.console.error=="function"?$t.console.error.apply($t.console,arguments):bh(t))}};function wh(t,n,e){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){Zi(r.response,n,e)},r.onerror=function(){Pe.error("could not download file")},r.send()}function wu(t){var n=new XMLHttpRequest;n.open("HEAD",t,!1);try{n.send()}catch{}return n.status>=200&&n.status<=299}function Ts(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var Zi=$t.saveAs||((typeof window>"u"?"undefined":Le(window))!=="object"||window!==$t?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var r=$t.URL||$t.webkitURL,i=document.createElement("a");n=n||t.name||"download",i.download=n,i.rel="noopener",typeof t=="string"?(i.href=t,i.origin!==location.origin?wu(i.href)?wh(t,n,e):Ts(i,i.target="_blank"):Ts(i)):(i.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){Ts(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(wu(t))wh(t,n,e);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Ts(r)})}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:Le(a)!=="object"&&(Pe.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(t,e),n)}:function(t,n,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return wh(t,n,e);var i=t.type==="application/octet-stream",a=/constructor/i.test($t.HTMLElement)||$t.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||i&&a)&&(typeof FileReader>"u"?"undefined":Le(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var g=l.result;g=h?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=g:location=g,r=null},l.readAsDataURL(t)}else{var c=$t.URL||$t.webkitURL,u=c.createObjectURL(t);r?r.location=u:location.href=u,r=null,setTimeout(function(){c.revokeObjectURL(u)},4e4)}});function Hu(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<e.length;r++){var i=e[r].re,a=e[r].process,h=i.exec(t);h&&(n=a(h),this.r=n[0],this.g=n[1],this.b=n[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),u=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),"#"+l+c+u}}var js=$t.atob.bind($t),yu=$t.btoa.bind($t);function yh(t,n){var e=t[0],r=t[1],i=t[2],a=t[3];e=vn(e,r,i,a,n[0],7,-680876936),a=vn(a,e,r,i,n[1],12,-389564586),i=vn(i,a,e,r,n[2],17,606105819),r=vn(r,i,a,e,n[3],22,-1044525330),e=vn(e,r,i,a,n[4],7,-176418897),a=vn(a,e,r,i,n[5],12,1200080426),i=vn(i,a,e,r,n[6],17,-1473231341),r=vn(r,i,a,e,n[7],22,-45705983),e=vn(e,r,i,a,n[8],7,1770035416),a=vn(a,e,r,i,n[9],12,-1958414417),i=vn(i,a,e,r,n[10],17,-42063),r=vn(r,i,a,e,n[11],22,-1990404162),e=vn(e,r,i,a,n[12],7,1804603682),a=vn(a,e,r,i,n[13],12,-40341101),i=vn(i,a,e,r,n[14],17,-1502002290),e=bn(e,r=vn(r,i,a,e,n[15],22,1236535329),i,a,n[1],5,-165796510),a=bn(a,e,r,i,n[6],9,-1069501632),i=bn(i,a,e,r,n[11],14,643717713),r=bn(r,i,a,e,n[0],20,-373897302),e=bn(e,r,i,a,n[5],5,-701558691),a=bn(a,e,r,i,n[10],9,38016083),i=bn(i,a,e,r,n[15],14,-660478335),r=bn(r,i,a,e,n[4],20,-405537848),e=bn(e,r,i,a,n[9],5,568446438),a=bn(a,e,r,i,n[14],9,-1019803690),i=bn(i,a,e,r,n[3],14,-187363961),r=bn(r,i,a,e,n[8],20,1163531501),e=bn(e,r,i,a,n[13],5,-1444681467),a=bn(a,e,r,i,n[2],9,-51403784),i=bn(i,a,e,r,n[7],14,1735328473),e=wn(e,r=bn(r,i,a,e,n[12],20,-1926607734),i,a,n[5],4,-378558),a=wn(a,e,r,i,n[8],11,-2022574463),i=wn(i,a,e,r,n[11],16,1839030562),r=wn(r,i,a,e,n[14],23,-35309556),e=wn(e,r,i,a,n[1],4,-1530992060),a=wn(a,e,r,i,n[4],11,1272893353),i=wn(i,a,e,r,n[7],16,-155497632),r=wn(r,i,a,e,n[10],23,-1094730640),e=wn(e,r,i,a,n[13],4,681279174),a=wn(a,e,r,i,n[0],11,-358537222),i=wn(i,a,e,r,n[3],16,-722521979),r=wn(r,i,a,e,n[6],23,76029189),e=wn(e,r,i,a,n[9],4,-640364487),a=wn(a,e,r,i,n[12],11,-421815835),i=wn(i,a,e,r,n[15],16,530742520),e=yn(e,r=wn(r,i,a,e,n[2],23,-995338651),i,a,n[0],6,-198630844),a=yn(a,e,r,i,n[7],10,1126891415),i=yn(i,a,e,r,n[14],15,-1416354905),r=yn(r,i,a,e,n[5],21,-57434055),e=yn(e,r,i,a,n[12],6,1700485571),a=yn(a,e,r,i,n[3],10,-1894986606),i=yn(i,a,e,r,n[10],15,-1051523),r=yn(r,i,a,e,n[1],21,-2054922799),e=yn(e,r,i,a,n[8],6,1873313359),a=yn(a,e,r,i,n[15],10,-30611744),i=yn(i,a,e,r,n[6],15,-1560198380),r=yn(r,i,a,e,n[13],21,1309151649),e=yn(e,r,i,a,n[4],6,-145523070),a=yn(a,e,r,i,n[11],10,-1120210379),i=yn(i,a,e,r,n[2],15,718787259),r=yn(r,i,a,e,n[9],21,-343485551),t[0]=wi(e,t[0]),t[1]=wi(r,t[1]),t[2]=wi(i,t[2]),t[3]=wi(a,t[3])}function Gs(t,n,e,r,i,a){return n=wi(wi(n,t),wi(r,a)),wi(n<<i|n>>>32-i,e)}function vn(t,n,e,r,i,a,h){return Gs(n&e|~n&r,t,n,i,a,h)}function bn(t,n,e,r,i,a,h){return Gs(n&r|e&~r,t,n,i,a,h)}function wn(t,n,e,r,i,a,h){return Gs(n^e^r,t,n,i,a,h)}function yn(t,n,e,r,i,a,h){return Gs(e^(n|~r),t,n,i,a,h)}function Wu(t){var n,e=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)yh(r,id(t.substring(n-64,n)));t=t.substring(n-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<t.length;n++)i[n>>2]|=t.charCodeAt(n)<<(n%4<<3);if(i[n>>2]|=128<<(n%4<<3),n>55)for(yh(r,i),n=0;n<16;n++)i[n]=0;return i[14]=8*e,yh(r,i),r}function id(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var _u="0123456789abcdef".split("");function ad(t){for(var n="",e=0;e<4;e++)n+=_u[t>>8*e+4&15]+_u[t>>8*e&15];return n}function od(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function Sh(t){return Wu(t).map(od).join("")}var sd=(function(t){for(var n=0;n<t.length;n++)t[n]=ad(t[n]);return t.join("")})(Wu("hello"))!="5d41402abc4b2a76b9719d911017c592";function wi(t,n){if(sd){var e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function kh(t,n){var e,r,i,a;if(t!==e){for(var h=(i=t,a=1+(256/t.length|0),new Array(a+1).join(i)),l=[],c=0;c<256;c++)l[c]=c;var u=0;for(c=0;c<256;c++){var g=l[c];u=(u+g+h.charCodeAt(c))%256,l[c]=l[u],l[u]=g}e=t,r=l}else l=r;var y=n.length,x=0,p=0,F="";for(c=0;c<y;c++)p=(p+(g=l[x=(x+1)%256]))%256,l[x]=l[p],l[p]=g,h=l[(l[x]+l[p])%256],F+=String.fromCharCode(n.charCodeAt(c)^h);return F}var xu={print:4,modify:8,copy:16,"annot-forms":32};function _a(t,n,e,r){this.v=1,this.r=2;var i=192;t.forEach(function(l){if(xu.perm!==void 0)throw new Error("Invalid permission: "+l);i+=xu[l]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var a=(n+this.padding).substr(0,32),h=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,h),this.P=-(1+(255^i)),this.encryptionKey=Sh(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=kh(this.encryptionKey,this.padding)}function xa(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,r=0;r<e;r++){var i=t.charCodeAt(r);n+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):t[r]}return n}function Au(t){if(Le(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,r,i){if(i=i||!1,typeof e!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var a=Math.random().toString(35);return n[e][a]=[r,!!i],a},this.unsubscribe=function(e){for(var r in n)if(n[r][e])return delete n[r][e],Object.keys(n[r]).length===0&&delete n[r],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in n[e]){var h=n[e][a];try{h[0].apply(t,r)}catch(l){$t.console&&Pe.error("jsPDF PubSub Error",l.message,l)}h[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function Hs(t){if(!(this instanceof Hs))return new Hs(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function Gu(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function $i(t,n,e,r,i){if(!(this instanceof $i))return new $i(t,n,e,r,i);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,Gu.call(this,r,i)}function Aa(t,n,e,r,i){if(!(this instanceof Aa))return new Aa(t,n,e,r,i);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,Gu.call(this,r,i)}function Mt(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],a=arguments[3],h=[],l=1,c=16,u="S",g=null;Le(t=t||{})==="object"&&(e=t.orientation,r=t.unit||r,i=t.format||i,a=t.compress||t.compressPdf||a,(g=t.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(c=t.floatPrecision),u=t.defaultPathOperation||"S"),h=t.filters||(a===!0?["FlateEncode"]:h),r=r||"mm",e=(""+(e||"P")).toLowerCase();var y=t.putOnlyUsedFonts||!1,x={},p={internal:{},__private__:{}};p.__private__.PubSub=Au;var F="1.3",P=p.__private__.getPdfVersion=function(){return F};p.__private__.setPdfVersion=function(f){F=f};var D={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return D};var N=p.__private__.getPageFormat=function(f){return D[f]};i=i||"a4";var H="compat",q="advanced",R=H;function rt(){this.saveGraphicsState(),I(new Vt(ee,0,0,-ee,0,Ii()*ee).toString()+" cm"),this.setFontSize(this.getFontSize()/ee),u="n",R=q}function mt(){this.restoreGraphicsState(),u="S",R=H}var ct=p.__private__.combineFontStyleAndFontWeight=function(f,v){if(f=="bold"&&v=="normal"||f=="bold"&&v==400||f=="normal"&&v=="italic"||f=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(f=v==400||v==="normal"?f==="italic"?"italic":"normal":v!=700&&v!=="bold"||f!=="normal"?(v==700?"bold":v)+""+f:"bold"),f};p.advancedAPI=function(f){var v=R===H;return v&&rt.call(this),typeof f!="function"||(f(this),v&&mt.call(this)),this},p.compatAPI=function(f){var v=R===q;return v&&mt.call(this),typeof f!="function"||(f(this),v&&rt.call(this)),this},p.isAdvancedAPI=function(){return R===q};var Y,j=function(f){if(R!==q)throw new Error(f+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},tt=p.roundToPrecision=p.__private__.roundToPrecision=function(f,v){var T=n||v;if(isNaN(f)||isNaN(T))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return f.toFixed(T).replace(/0+$/,"")};Y=p.hpf=p.__private__.hpf=typeof c=="number"?function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(f,c)}:c==="smart"?function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(f,f>-1&&f<1?16:5)}:function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.hpf");return tt(f,16)};var S=p.f2=p.__private__.f2=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.f2");return tt(f,2)},O=p.__private__.f3=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.f3");return tt(f,3)},W=p.scale=p.__private__.scale=function(f){if(isNaN(f))throw new Error("Invalid argument passed to jsPDF.scale");return R===H?f*ee:R===q?f:void 0},U=function(f){return W((function(v){return R===H?Ii()-v:R===q?v:void 0})(f))};p.__private__.setPrecision=p.setPrecision=function(f){typeof parseInt(f,10)=="number"&&(n=parseInt(f,10))};var it,st="00000000000000000000000000000000",ht=p.__private__.getFileId=function(){return st},nt=p.__private__.setFileId=function(f){return st=f!==void 0&&/^[a-fA-F0-9]{32}$/.test(f)?f.toUpperCase():st.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(Je=new _a(g.userPermissions,g.userPassword,g.ownerPassword,st)),st};p.setFileId=function(f){return nt(f),this},p.getFileId=function(){return ht()};var ut=p.__private__.convertDateToPDFDate=function(f){var v=f.getTimezoneOffset(),T=v<0?"+":"-",z=Math.floor(Math.abs(v/60)),K=Math.abs(v%60),dt=[T,B(z),"'",B(K),"'"].join("");return["D:",f.getFullYear(),B(f.getMonth()+1),B(f.getDate()),B(f.getHours()),B(f.getMinutes()),B(f.getSeconds()),dt].join("")},At=p.__private__.convertPDFDateToDate=function(f){var v=parseInt(f.substr(2,4),10),T=parseInt(f.substr(6,2),10)-1,z=parseInt(f.substr(8,2),10),K=parseInt(f.substr(10,2),10),dt=parseInt(f.substr(12,2),10),vt=parseInt(f.substr(14,2),10);return new Date(v,T,z,K,dt,vt,0)},wt=p.__private__.setCreationDate=function(f){var v;if(f===void 0&&(f=new Date),f instanceof Date)v=ut(f);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(f))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=f}return it=v},A=p.__private__.getCreationDate=function(f){var v=it;return f==="jsDate"&&(v=At(it)),v};p.setCreationDate=function(f){return wt(f),this},p.getCreationDate=function(f){return A(f)};var M,B=p.__private__.padd2=function(f){return("0"+parseInt(f)).slice(-2)},G=p.__private__.padd2Hex=function(f){return("00"+(f=f.toString())).substr(f.length)},$=0,J=[],at=[],ot=0,gt=[],xt=[],kt=!1,St=at;p.__private__.setCustomOutputDestination=function(f){kt=!0,St=f};var Bt=function(f){kt||(St=f)};p.__private__.resetCustomOutputDestination=function(){kt=!1,St=at};var I=p.__private__.out=function(f){return f=f.toString(),ot+=f.length+1,St.push(f),St},Lt=p.__private__.write=function(f){return I(arguments.length===1?f.toString():Array.prototype.join.call(arguments," "))},ae=p.__private__.getArrayBuffer=function(f){for(var v=f.length,T=new ArrayBuffer(v),z=new Uint8Array(T);v--;)z[v]=f.charCodeAt(v);return T},Ht=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return Ht};var yt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(f){return yt=R===q?f/ee:f,this};var Wt,It=p.__private__.getFontSize=p.getFontSize=function(){return R===H?yt:yt*ee},qt=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(f){return qt=f,this},p.__private__.getR2L=p.getR2L=function(){return qt};var zt,ye=p.__private__.setZoomMode=function(f){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(f))Wt=f;else if(isNaN(f)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(f)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+f+'" is not recognized.');Wt=f}else Wt=parseInt(f,10)};p.__private__.getZoomMode=function(){return Wt};var he,Jt=p.__private__.setPageMode=function(f){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(f)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+f+'" is not recognized.');zt=f};p.__private__.getPageMode=function(){return zt};var ce=p.__private__.setLayoutMode=function(f){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(f)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+f+'" is not recognized.');he=f};p.__private__.getLayoutMode=function(){return he},p.__private__.setDisplayMode=p.setDisplayMode=function(f,v,T){return ye(f),ce(v),Jt(T),this};var fe={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(f){if(Object.keys(fe).indexOf(f)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fe[f]},p.__private__.getDocumentProperties=function(){return fe},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(f){for(var v in fe)fe.hasOwnProperty(v)&&f[v]&&(fe[v]=f[v]);return this},p.__private__.setDocumentProperty=function(f,v){if(Object.keys(fe).indexOf(f)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fe[f]=v};var Tt,ee,jt,Ue,ge,oe={},se={},Oe=[],Ut={},Ie={},Zt={},Qt={},Te=null,le=0,Gt=[],_e=new Au(p),_i=t.hotfixes||[],gn={},Pr={},ur=[],Vt=function f(v,T,z,K,dt,vt){if(!(this instanceof f))return new f(v,T,z,K,dt,vt);isNaN(v)&&(v=1),isNaN(T)&&(T=0),isNaN(z)&&(z=0),isNaN(K)&&(K=1),isNaN(dt)&&(dt=0),isNaN(vt)&&(vt=0),this._matrix=[v,T,z,K,dt,vt]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(f){this._matrix[0]=f}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(f){this._matrix[1]=f}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(f){this._matrix[2]=f}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(f){this._matrix[3]=f}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(f){this._matrix[4]=f}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(f){this._matrix[5]=f}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(f){this._matrix[0]=f}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(f){this._matrix[1]=f}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(f){this._matrix[2]=f}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(f){this._matrix[3]=f}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(f){this._matrix[4]=f}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(f){this._matrix[5]=f}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Vt.prototype.join=function(f){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Y).join(f)},Vt.prototype.multiply=function(f){var v=f.sx*this.sx+f.shy*this.shx,T=f.sx*this.shy+f.shy*this.sy,z=f.shx*this.sx+f.sy*this.shx,K=f.shx*this.shy+f.sy*this.sy,dt=f.tx*this.sx+f.ty*this.shx+this.tx,vt=f.tx*this.shy+f.ty*this.sy+this.ty;return new Vt(v,T,z,K,dt,vt)},Vt.prototype.decompose=function(){var f=this.sx,v=this.shy,T=this.shx,z=this.sy,K=this.tx,dt=this.ty,vt=Math.sqrt(f*f+v*v),Et=(f/=vt)*T+(v/=vt)*z;T-=f*Et,z-=v*Et;var Dt=Math.sqrt(T*T+z*z);return Et/=Dt,f*(z/=Dt)<v*(T/=Dt)&&(f=-f,v=-v,Et=-Et,vt=-vt),{scale:new Vt(vt,0,0,Dt,0,0),translate:new Vt(1,0,0,1,K,dt),rotate:new Vt(f,v,-v,f,0,0),skew:new Vt(1,0,Et,1,0,0)}},Vt.prototype.toString=function(f){return this.join(" ")},Vt.prototype.inversed=function(){var f=this.sx,v=this.shy,T=this.shx,z=this.sy,K=this.tx,dt=this.ty,vt=1/(f*z-v*T),Et=z*vt,Dt=-v*vt,Yt=-T*vt,ne=f*vt;return new Vt(Et,Dt,Yt,ne,-Et*K-Yt*dt,-Dt*K-ne*dt)},Vt.prototype.applyToPoint=function(f){var v=f.x*this.sx+f.y*this.shx+this.tx,T=f.x*this.shy+f.y*this.sy+this.ty;return new Dr(v,T)},Vt.prototype.applyToRectangle=function(f){var v=this.applyToPoint(f),T=this.applyToPoint(new Dr(f.x+f.w,f.y+f.h));return new Ra(v.x,v.y,T.x-v.x,T.y-v.y)},Vt.prototype.clone=function(){var f=this.sx,v=this.shy,T=this.shx,z=this.sy,K=this.tx,dt=this.ty;return new Vt(f,v,T,z,K,dt)},p.Matrix=Vt;var Ir=p.matrixMult=function(f,v){return v.multiply(f)},Fr=new Vt(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=Fr;var qn=function(f,v){if(!Ie[f]){var T=(v instanceof $i?"Sh":"P")+(Object.keys(Ut).length+1).toString(10);v.id=T,Ie[f]=T,Ut[T]=v,_e.publish("addPattern",v)}};p.ShadingPattern=$i,p.TilingPattern=Aa,p.addShadingPattern=function(f,v){return j("addShadingPattern()"),qn(f,v),this},p.beginTilingPattern=function(f){j("beginTilingPattern()"),ja(f.boundingBox[0],f.boundingBox[1],f.boundingBox[2]-f.boundingBox[0],f.boundingBox[3]-f.boundingBox[1],f.matrix)},p.endTilingPattern=function(f,v){j("endTilingPattern()"),v.stream=xt[M].join(`
|
|
4
4
|
`),qn(f,v),_e.publish("endTilingPattern",v),ur.pop().restore()};var Hn,Re=p.__private__.newObject=function(){var f=an();return ln(f,!0),f},an=p.__private__.newObjectDeferred=function(){return $++,J[$]=function(){return ot},$},ln=function(f,v){return v=typeof v=="boolean"&&v,J[f]=ot,v&&I(f+" 0 obj"),f},xi=p.__private__.newAdditionalObject=function(){var f={objId:an(),content:""};return gt.push(f),f},Xr=an(),tr=an(),dr=p.__private__.decodeColorString=function(f){var v=f.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length!==5||v[4]!=="k"&&v[4]!=="K"||(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var T=parseFloat(v[0]);v=[T,T,T,"r"]}for(var z="#",K=0;K<3;K++)z+=("0"+Math.floor(255*parseFloat(v[K])).toString(16)).slice(-2);return z},er=p.__private__.encodeColorString=function(f){var v;typeof f=="string"&&(f={ch1:f});var T=f.ch1,z=f.ch2,K=f.ch3,dt=f.ch4,vt=f.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof T=="string"&&T.charAt(0)!=="#"){var Et=new Hu(T);if(Et.ok)T=Et.toHex();else if(!/^\d*\.?\d*$/.test(T))throw new Error('Invalid color "'+T+'" passed to jsPDF.encodeColorString.')}if(typeof T=="string"&&/^#[0-9A-Fa-f]{3}$/.test(T)&&(T="#"+T[1]+T[1]+T[2]+T[2]+T[3]+T[3]),typeof T=="string"&&/^#[0-9A-Fa-f]{6}$/.test(T)){var Dt=parseInt(T.substr(1),16);T=Dt>>16&255,z=Dt>>8&255,K=255&Dt}if(z===void 0||dt===void 0&&T===z&&z===K)v=typeof T=="string"?T+" "+vt[0]:f.precision===2?S(T/255)+" "+vt[0]:O(T/255)+" "+vt[0];else if(dt===void 0||Le(dt)==="object"){if(dt&&!isNaN(dt.a)&&dt.a===0)return["1.","1.","1.",vt[1]].join(" ");v=typeof T=="string"?[T,z,K,vt[1]].join(" "):f.precision===2?[S(T/255),S(z/255),S(K/255),vt[1]].join(" "):[O(T/255),O(z/255),O(K/255),vt[1]].join(" ")}else v=typeof T=="string"?[T,z,K,dt,vt[2]].join(" "):f.precision===2?[S(T),S(z),S(K),S(dt),vt[2]].join(" "):[O(T),O(z),O(K),O(dt),vt[2]].join(" ");return v},nr=p.__private__.getFilters=function(){return h},Wn=p.__private__.putStream=function(f){var v=(f=f||{}).data||"",T=f.filters||nr(),z=f.alreadyAppliedFilters||[],K=f.addLength1||!1,dt=v.length,vt=f.objectId,Et=function(Qe){return Qe};if(g!==null&&vt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(Et=Je.encryptor(vt,0));var Dt={};T===!0&&(T=["FlateEncode"]);var Yt=f.additionalKeyValues||[],ne=(Dt=Mt.API.processDataByFilters!==void 0?Mt.API.processDataByFilters(v,T):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(z)?z.join(" "):z.toString());if(Dt.data.length!==0&&(Yt.push({key:"Length",value:Dt.data.length}),K===!0&&Yt.push({key:"Length1",value:dt})),ne.length!=0)if(ne.split("/").length-1==1)Yt.push({key:"Filter",value:ne});else{Yt.push({key:"Filter",value:"["+ne+"]"});for(var me=0;me<Yt.length;me+=1)if(Yt[me].key==="DecodeParms"){for(var Me=[],Ke=0;Ke<Dt.reverseChain.split("/").length-1;Ke+=1)Me.push("null");Me.push(Yt[me].value),Yt[me].value="["+Me.join(" ")+"]"}}I("<<");for(var Fe=0;Fe<Yt.length;Fe++)I("/"+Yt[Fe].key+" "+Yt[Fe].value);I(">>"),Dt.data.length!==0&&(I("stream"),I(Et(Dt.data)),I("endstream"))},Ai=p.__private__.putPage=function(f){var v=f.number,T=f.data,z=f.objId,K=f.contentsObjId;ln(z,!0),I("<</Type /Page"),I("/Parent "+f.rootDictionaryObjId+" 0 R"),I("/Resources "+f.resourceDictionaryObjId+" 0 R"),I("/MediaBox ["+parseFloat(Y(f.mediaBox.bottomLeftX))+" "+parseFloat(Y(f.mediaBox.bottomLeftY))+" "+Y(f.mediaBox.topRightX)+" "+Y(f.mediaBox.topRightY)+"]"),f.cropBox!==null&&I("/CropBox ["+Y(f.cropBox.bottomLeftX)+" "+Y(f.cropBox.bottomLeftY)+" "+Y(f.cropBox.topRightX)+" "+Y(f.cropBox.topRightY)+"]"),f.bleedBox!==null&&I("/BleedBox ["+Y(f.bleedBox.bottomLeftX)+" "+Y(f.bleedBox.bottomLeftY)+" "+Y(f.bleedBox.topRightX)+" "+Y(f.bleedBox.topRightY)+"]"),f.trimBox!==null&&I("/TrimBox ["+Y(f.trimBox.bottomLeftX)+" "+Y(f.trimBox.bottomLeftY)+" "+Y(f.trimBox.topRightX)+" "+Y(f.trimBox.topRightY)+"]"),f.artBox!==null&&I("/ArtBox ["+Y(f.artBox.bottomLeftX)+" "+Y(f.artBox.bottomLeftY)+" "+Y(f.artBox.topRightX)+" "+Y(f.artBox.topRightY)+"]"),typeof f.userUnit=="number"&&f.userUnit!==1&&I("/UserUnit "+f.userUnit),_e.publish("putPage",{objId:z,pageContext:Gt[v],pageNumber:v,page:T}),I("/Contents "+K+" 0 R"),I(">>"),I("endobj");var dt=T.join(`
|
|
5
5
|
`);return R===q&&(dt+=`
|