@abtnode/blocklet-services 1.16.33-beta-20241024-064549-2c1ad302 → 1.16.33-beta-20241028-164124-17cf3c21
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/api/cache.js +39 -0
- package/api/index.js +121 -2
- package/api/libs/api.js +3 -3
- package/api/libs/connect/session.js +44 -53
- package/api/libs/kyc.js +9 -0
- package/api/libs/push-kit/index.js +17 -2
- package/api/middlewares/verify-sig.js +35 -3
- package/api/routes/blocklet.js +0 -13
- package/api/routes/env.js +2 -2
- package/api/routes/oauth.js +11 -7
- package/api/routes/user-session.js +38 -23
- package/api/routes/user.js +6 -7
- package/api/services/auth/index.js +43 -64
- package/api/services/kyc/index.js +56 -32
- package/api/util/attach-shared-utils.js +113 -19
- package/api/util/index.js +13 -12
- package/dist/assets/{Add-Bl82G48c.js → Add-DhnwVxhZ.js} +1 -1
- package/dist/assets/{Alert-B9Rlqmtk.js → Alert-C2mTW_RW.js} +1 -1
- package/dist/assets/{ArrowDropDown-z6CkvFic.js → ArrowDropDown-wj9U9ZE8.js} +1 -1
- package/dist/assets/{Autocomplete-C0mtAXbg.js → Autocomplete-CmEAN8J-.js} +1 -1
- package/dist/assets/{Avatar-LMc5QpZl.js → Avatar-BZ_OPd3a.js} +1 -1
- package/dist/assets/{ButtonGroup-Bvw5eHAy.js → ButtonGroup-CFQqy_jV.js} +1 -1
- package/dist/assets/CSSTransition-CJDdpnYB.js +1 -0
- package/dist/assets/{CheckCircle-CW1NWF0M.js → CheckCircle-DK6y1v0b.js} +1 -1
- package/dist/assets/{ChevronLeft-Bc2dOBpo.js → ChevronLeft-BqHB6tsg.js} +1 -1
- package/dist/assets/{ChevronRight-y7cPaDQ3.js → ChevronRight-DwKqpeOS.js} +1 -1
- package/dist/assets/{Close-DLWmZbtN.js → Close-CdDd2weK.js} +1 -1
- package/dist/assets/{CloseOutlined-7w3yHb7q.js → CloseOutlined-KF-hdrv3.js} +1 -1
- package/dist/assets/{Delete-FZyEAOwe.js → Delete-P7WqUbyQ.js} +1 -1
- package/dist/assets/{DeleteOutline-B-H27VeQ.js → DeleteOutline-BrrioL98.js} +1 -1
- package/dist/assets/{DialogContentText-CiyJlDpv.js → DialogContentText-BECZzyeS.js} +1 -1
- package/dist/assets/{Done-BEW0zhw2.js → Done-B8u3JQ36.js} +1 -1
- package/dist/assets/{Download-BfRlCRO0.js → Download-DBU6UuKg.js} +1 -1
- package/dist/assets/{EditIcon-CG4JGMyT.js → EditIcon-BV3Q9c3s.js} +1 -1
- package/dist/assets/{Error-C2cvwDlh.js → Error-CjCi6iqE.js} +1 -1
- package/dist/assets/{ExpandMore-CVPXcP59.js → ExpandMore-BjFaf3Fo.js} +1 -1
- package/dist/assets/FormControl-B9P20sHZ.js +1 -0
- package/dist/assets/FormControlLabel-C2tfmf09.js +1 -0
- package/dist/assets/{FormGroup-DoibujUR.js → FormGroup-QeEOGRIO.js} +1 -1
- package/dist/assets/{Google-BkswiX56.js → Google-B7LRQAsM.js} +3 -3
- package/dist/assets/{Grid-DmS931mb.js → Grid-BArO7d1G.js} +1 -1
- package/dist/assets/HelpOutline-It0-5Kn2.js +1 -0
- package/dist/assets/{Hidden-DFLNRBK7.js → Hidden-CpExY3Hv.js} +1 -1
- package/dist/assets/{InfoOutlined-BGl9NpGF.js → InfoOutlined-DEMaFK-w.js} +1 -1
- package/dist/assets/{InputAdornment-BfRAjWFP.js → InputAdornment-BFyVcV9g.js} +1 -1
- package/dist/assets/{InputLabel-snet_z2M.js → InputLabel-FW_WnrBG.js} +1 -1
- package/dist/assets/{LastPage-KoP1Fd4R.js → LastPage-BbNDF-1B.js} +1 -1
- package/dist/assets/{Launch-DaqmeZ7p.js → Launch-CM54bxPy.js} +1 -1
- package/dist/assets/{LaunchOutlined-D8_8q_U2.js → LaunchOutlined-DQOUx0IB.js} +1 -1
- package/dist/assets/{Link-ZwKMc2xW.js → Link-BLv1ybKR.js} +1 -1
- package/dist/assets/ListItemButton-BhIitXNK.js +1 -0
- package/dist/assets/{LoadingButton-DAYzECCB.js → LoadingButton-Do8QGr9D.js} +1 -1
- package/dist/assets/{LockIcon-CzOlJg7E.js → LockIcon-uGDnriV5.js} +1 -1
- package/dist/assets/{Loop-DdSi2a5X.js → Loop-DQX1T4wF.js} +1 -1
- package/dist/assets/MarkEmailRead-BdVitMKq.js +1 -0
- package/dist/assets/{Menu-cPWOWdJv.js → Menu-B60nijwd.js} +1 -1
- package/dist/assets/{MoreHoriz-CCaXi0-D.js → MoreHoriz-Cwgb_ZWA.js} +1 -1
- package/dist/assets/MoreVert-6z9sYyBh.js +1 -0
- package/dist/assets/{OpenInNew-DhmdNIIA.js → OpenInNew-B7MVFrbE.js} +1 -1
- package/dist/assets/Pagination-C8kC-7d4.js +2 -0
- package/dist/assets/{PlayArrow-dbaJvP3i.js → PlayArrow-CyW2vtN8.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-ClghFyf8.js → QuestionMarkCircle-Dkgs-LrD.js} +1 -1
- package/dist/assets/{RadioGroup-h39eYIOw.js → RadioGroup-F9HJgTgP.js} +1 -1
- package/dist/assets/{Search-Deg4mgEt.js → Search-Bm4BV5ff.js} +1 -1
- package/dist/assets/{Select-D8wgZEYi.js → Select-DN5ZDrhq.js} +2 -2
- package/dist/assets/{ServerLogo-C-IdWQab.js → ServerLogo-qj6BKZhH.js} +1 -1
- package/dist/assets/{Skeleton-DTHod0yi.js → Skeleton-BHxGQUwb.js} +4 -4
- package/dist/assets/{Slider-BGdMADx-.js → Slider-DZmSOFez.js} +1 -1
- package/dist/assets/{Stack-Cp3hYWEn.js → Stack-CcM0sATd.js} +1 -1
- package/dist/assets/{Stepper-BYg7nOyi.js → Stepper-VAkPR7Rp.js} +1 -1
- package/dist/assets/{TextField-COEnibZX.js → TextField-CVbbJh-y.js} +1 -1
- package/dist/assets/{Toolbar-gvJQuyml.js → Toolbar-DMWwm961.js} +1 -1
- package/dist/assets/{Verified-BYBUZULO.js → Verified-CracX5_0.js} +1 -1
- package/dist/assets/{ViewColumn-C-7sjz0Y.js → ViewColumn-cHwmzgaQ.js} +1 -1
- package/dist/assets/{ViewList-JViuspE8.js → ViewList-DEr3Y-iU.js} +1 -1
- package/dist/assets/access-control-DEaRRq7A.js +13 -0
- package/dist/assets/{actions-BvIgnlgP.js → actions-BaCBwrwa.js} +1 -1
- package/dist/assets/{add-component-core-CF3Wvpy3.js → add-component-core-CTd25DO_.js} +38 -38
- package/dist/assets/add-resource-BcsfLDaF.js +1 -0
- package/dist/assets/{addon-BN5Sfj4m.js → addon-B5M4Vtbg.js} +1 -1
- package/dist/assets/{analytics-jhEGduS7.js → analytics-DKUh0ZA1.js} +8 -8
- package/dist/assets/api-noKs5rUY.js +1 -0
- package/dist/assets/ar-2TonDRvZ.js +1 -0
- package/dist/assets/ar-j9K5GatZ.js +1 -0
- package/dist/assets/audit-logs-DEv30kSD.js +58 -0
- package/dist/assets/{base32-RJwtUwTG.js → base32-BbBkrI_s.js} +1 -1
- package/dist/assets/{bundle-avatar-CYj37kYo.js → bundle-avatar-DFcMZdHK.js} +1 -1
- package/dist/assets/{button-Bzg3GLCP.js → button-WHxIb92N.js} +1 -1
- package/dist/assets/{click-to-copy-BxqXxgUi.js → click-to-copy-DSLKklSI.js} +1 -1
- package/dist/assets/{complete-DkKqvq-n.js → complete-CAaHcOBS.js} +1 -1
- package/dist/assets/{component-CBSn0ylq.js → component-_5q7tWN6.js} +81 -81
- package/dist/assets/{config-W5zOORTl.js → config-COlGV3BW.js} +2 -2
- package/dist/assets/config-_6fNEXak.js +1 -0
- package/dist/assets/{config-navigation-acog9zxt.js → config-navigation-DdfU54Ga.js} +5 -5
- package/dist/assets/{confirm-BD8lcIjf.js → confirm-CPhW4Ln4.js} +1 -1
- package/dist/assets/{connect-DUt6GuMA.js → connect-CJYVrjZW.js} +1 -1
- package/dist/assets/{connect-Cau7HJrv.js → connect-CutE2j6W.js} +1 -1
- package/dist/assets/connect-to-ByrmSC7Q.js +54 -0
- package/dist/assets/{content-layout--Pzx1mcC.js → content-layout-NMxrW85n.js} +1 -1
- package/dist/assets/{dashboard-CIOwnQZx.js → dashboard-yyANkyH0.js} +9 -9
- package/dist/assets/de-B1aG8zWS.js +1 -0
- package/dist/assets/de-BVh3hwT3.js +1 -0
- package/dist/assets/{deprecate-D_97v-_E.js → deprecate-TLU2j5Nl.js} +1 -1
- package/dist/assets/{did-address-DgsfKQl1.js → did-address-qp4O986k.js} +1 -1
- package/dist/assets/{domain-zy-h52DT.js → domain-BobgkNRn.js} +1 -1
- package/dist/assets/{domain-list-tyAcumiG.js → domain-list-nelUcVaZ.js} +2 -2
- package/dist/assets/email-BmqNkTVh.js +18 -0
- package/dist/assets/emotion-cache.browser.esm-CRw46sQ7.js +1 -0
- package/dist/assets/es-B78wkrSg.js +1 -0
- package/dist/assets/es-BEwxvJ2s.js +1 -0
- package/dist/assets/{exchange-passport-DPiMkxjA.js → exchange-passport-YyjxxQGp.js} +1 -1
- package/dist/assets/{fallback-DUmnMg78.js → fallback-DpZp1UKo.js} +1 -1
- package/dist/assets/form-text-input-Dnp-THZ5.js +11 -0
- package/dist/assets/{format-error-D0C8Qna1.js → format-error-BvNwPRch.js} +1 -1
- package/dist/assets/fr-Cvy3dZN3.js +1 -0
- package/dist/assets/fr-CyBvbwlz.js +1 -0
- package/dist/assets/{fuel-CZZpMc32.js → fuel-DwAfHv3P.js} +1 -1
- package/dist/assets/{fullpage-ov1kRa00.js → fullpage-BFccehDH.js} +1 -1
- package/dist/assets/hi-CiLl3Zi6.js +1 -0
- package/dist/assets/hi-nvWOxhan.js +1 -0
- package/dist/assets/{home-gwd5aHrM.js → home-BF01oQMN.js} +1 -1
- package/dist/assets/id-Cl0lvxW7.js +1 -0
- package/dist/assets/id-FWMMrTxm.js +1 -0
- package/dist/assets/{iframe-BIzC7nPA.js → iframe-CGjP6x7t.js} +1 -1
- package/dist/assets/index-0R3zcGhj.js +126 -0
- package/dist/assets/{index-BcvXX_mO.js → index-4YjFb1t8.js} +1 -1
- package/dist/assets/{index-DcKMlzdo.js → index-B1jXhAXk.js} +1 -1
- package/dist/assets/{index-rOGdJKYL.js → index-B61Zk4zc.js} +1 -1
- package/dist/assets/{index-AfbTuUW5.js → index-B6rU6yZ1.js} +7 -7
- package/dist/assets/{index-C_0JNAm2.js → index-BAsIkYmI.js} +1 -1
- package/dist/assets/{index-Q7ZUJ_jr.js → index-BEmU10Y0.js} +11 -11
- package/dist/assets/index-BFsNvHHz.js +22 -0
- package/dist/assets/{index-BjLsHd9C.js → index-BHRFloRH.js} +1 -1
- package/dist/assets/index-BZ9M67Kd.js +5 -0
- package/dist/assets/{index-COU4Nu6y.js → index-BZKKn0ch.js} +1 -1
- package/dist/assets/{index-B-DC1bkM.js → index-BnLNgi5J.js} +1 -1
- package/dist/assets/{index-CES_wWCV.js → index-BowU-Rc8.js} +183 -183
- package/dist/assets/index-Br6smtqw.js +1 -0
- package/dist/assets/{index-bwXQ8Wpi.js → index-BxX33nUX.js} +14 -13
- package/dist/assets/{index-B8-zdW7s.js → index-C4-tvqA6.js} +5 -5
- package/dist/assets/{index-BqpKWYMh.js → index-C6bJ8C3n.js} +1 -1
- package/dist/assets/{index-BJmzQOKo.js → index-CDo-yvx8.js} +1 -1
- package/dist/assets/index-C_izWh42.js +11 -0
- package/dist/assets/{index-D8OsCndp.js → index-CxykcKWh.js} +1 -1
- package/dist/assets/{index-QTPBiLZh.js → index-D0Foc0Tz.js} +1 -1
- package/dist/assets/{index-BYSwxOyW.js → index-D5jbzTmg.js} +1 -1
- package/dist/assets/index-DH4lKXWs.js +11 -0
- package/dist/assets/{index-DsWS2z9f.js → index-DaCSO68v.js} +1 -1
- package/dist/assets/{index-XlLZRf68.js → index-DaRP45oo.js} +1 -1
- package/dist/assets/{index-Bv4e_rV5.js → index-DbC1wngE.js} +1 -1
- package/dist/assets/index-Dnw0yymR.js +1 -0
- package/dist/assets/{index-Wi2p68c2.js → index-DsX4E8f1.js} +1 -1
- package/dist/assets/{index-C2AukIic.js → index-DtHgjXc_.js} +1 -1
- package/dist/assets/{index-DS-kwJv8.js → index-DusV8FU1.js} +1 -1
- package/dist/assets/index-FWU8WNJ8.js +1 -0
- package/dist/assets/{index-BA1E4qQ4.js → index-LmZHdjQZ.js} +1 -1
- package/dist/assets/{index-CE4JYDnG.js → index-RHJlosGb.js} +4 -4
- package/dist/assets/index-_uCAkv_0.js +316 -0
- package/dist/assets/{index-CNybmfDH.js → index-dmc3Tzez.js} +1 -1
- package/dist/assets/{index.es-HA92kWdG.js → index.es-DjXtuSXa.js} +3 -3
- package/dist/assets/{invitation-B49_oImo.js → invitation-CitdNTlE.js} +1 -1
- package/dist/assets/{invite-V3Nbkyr9.js → invite-8bX-82iQ.js} +1 -1
- package/dist/assets/isEmail-DlDmj0fr.js +1 -0
- package/dist/assets/{issue-passport-BK_rmsMU.js → issue-passport-DlN6RZob.js} +1 -1
- package/dist/assets/{item-ChdkonTR.js → item-CKNXAp6H.js} +1 -1
- package/dist/assets/ja-Be6ZrJ3j.js +1 -0
- package/dist/assets/ja-Uy7OpVJX.js +1 -0
- package/dist/assets/{jss-plugin-props-sort.esm-DBVL9gMW.js → jss-plugin-props-sort.esm-DoSjjNR1.js} +5 -5
- package/dist/assets/ko-631_NPZL.js +1 -0
- package/dist/assets/ko-RAcT5Den.js +1 -0
- package/dist/assets/{launch-result-message-BAr02bV5.js → launch-result-message-JFKmiVbN.js} +1 -1
- package/dist/assets/{layout-bf8MnH7p.js → layout-DEXenHhy.js} +1 -1
- package/dist/assets/{list-header-BdXS3bwO.js → list-header-7vVYIW_T.js} +1 -1
- package/dist/assets/localization-DdE_yTeV.js +1 -0
- package/dist/assets/{log-CEafQKJ9.js → log-ZCJiZb-D.js} +1 -1
- package/dist/assets/{login-CEkmeGqM.js → login-64rLho-5.js} +1 -1
- package/dist/assets/{login-oauth-callback-BKsN-may.js → login-oauth-callback-nOgNHNCk.js} +1 -1
- package/dist/assets/logo-uploader-Cz1267Av.js +133 -0
- package/dist/assets/{lost-passport-BKV23uoE.js → lost-passport-DjJtlNVj.js} +3 -3
- package/dist/assets/{lottie-Bmh0Xil_.js → lottie-DoYE5XDB.js} +1 -1
- package/dist/assets/notifications-Cv1XH2yb.js +65 -0
- package/dist/assets/{open-window-BxfESFgZ.js → open-window-CN5TQ87C.js} +1 -1
- package/dist/assets/overview-kalRt_uR.js +12 -0
- package/dist/assets/{page-header-C6Www8xa.js → page-header-BmLNlOnD.js} +1 -1
- package/dist/assets/{permission-C0wbV6KF.js → permission-DUsbjffq.js} +1 -1
- package/dist/assets/{preferences-DgOndnl4.js → preferences-ZO1kLbOx.js} +1 -1
- package/dist/assets/pt-BlLvTTrm.js +1 -0
- package/dist/assets/pt-CTpkGCgP.js +1 -0
- package/dist/assets/publish-resource-B2rKe7a9.js +1 -0
- package/dist/assets/purify.es-Bq0E5Q3l.js +2 -0
- package/dist/assets/react-BTu1Y-_j.js +56 -0
- package/dist/assets/{redux-B8mroqAb.js → redux-CJ8S87pk.js} +1 -1
- package/dist/assets/refType-CT_vAXIZ.js +1 -0
- package/dist/assets/resource-dialog-D_8tTarn.js +4 -0
- package/dist/assets/ru-Culp1KLs.js +1 -0
- package/dist/assets/ru-sSBv7F2t.js +1 -0
- package/dist/assets/sdk-C3SAOjUt.js +1 -0
- package/dist/assets/{selector-B2UrJyEC.js → selector-Rhni_cbO.js} +3 -3
- package/dist/assets/session-4S4FY2oN.js +1 -0
- package/dist/assets/setup-BQ-DnQht.js +19 -0
- package/dist/assets/{shorten-label-C69K-2N4.js → shorten-label-8aKNnW15.js} +1 -1
- package/dist/assets/simple-select-CNSx0Qbg.js +1 -0
- package/dist/assets/{slicedToArray-Btbq_uXo.js → slicedToArray-vg-R5s0s.js} +2 -2
- package/dist/assets/{spaces-CKA3haGw.js → spaces-BcZSz_wm.js} +1 -1
- package/dist/assets/{start-E4q8KtSK.js → start-CqQHbsvY.js} +1 -1
- package/dist/assets/{step-actions-Dv65pQs7.js → step-actions-DV3o9hve.js} +1 -1
- package/dist/assets/{studio-C9Z81BQt.js → studio-D_pIJx8G.js} +1 -1
- package/dist/assets/{switch-control-Cct9SW8-.js → switch-control-C-X_dl1C.js} +1 -1
- package/dist/assets/th-Dqms8yb0.js +1 -0
- package/dist/assets/th-Dv20telW.js +1 -0
- package/dist/assets/{toUpper-DjVC4j_j.js → toUpper-CqfCm6FQ.js} +1 -1
- package/dist/assets/{transfer-W8UlEJt-.js → transfer-CSfZjjyt.js} +1 -1
- package/dist/assets/trim-CXCEOOfq.js +1 -0
- package/dist/assets/{uniqBy-BzzuWGYh.js → uniqBy--m6Xe_2K.js} +1 -1
- package/dist/assets/{unsubscribe-BkeOgqWI.js → unsubscribe-BJWyVFrT.js} +1 -1
- package/dist/assets/{url-join-BLh7jCrJ.js → url-join-CAnJBM33.js} +1 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-BWR6SXSQ.js +1 -0
- package/dist/assets/{use-mobile-BJoJTGF0.js → use-mobile-BBtcVjXr.js} +1 -1
- package/dist/assets/{useAsync-CvPpFYs-.js → useAsync-DTvP9Zxi.js} +1 -1
- package/dist/assets/{useFormControl-BXRE7Su9.js → useFormControl-CqDUGVwx.js} +1 -1
- package/dist/assets/{useLocalStorage-BJH73q2r.js → useLocalStorage-BSk8yrmI.js} +1 -1
- package/dist/assets/{useSetState-CJBhbXdV.js → useSetState-Dvi1U0Nw.js} +1 -1
- package/dist/assets/useSlot-CBvar7i-.js +1 -0
- package/dist/assets/{useSlotProps-Bo-Lx2a7.js → useSlotProps-BO61t83_.js} +1 -1
- package/dist/assets/useThemeProps-BVeww5NE.js +1 -0
- package/dist/assets/user-center-DxinbhvA.js +1 -0
- package/dist/assets/{user-sessions-9jxxDLYT.js → user-sessions-BGeFoCxv.js} +1 -1
- package/dist/assets/{util-ZHGnEGmF.js → util-DQZs28G6.js} +1 -1
- package/dist/assets/vi-B-VzHaKw.js +1 -0
- package/dist/assets/vi-DjcU4tKh.js +1 -0
- package/dist/assets/wrap-locale-B-fXOOcn.js +1 -0
- package/dist/assets/zh-DWYwLndz.js +1 -0
- package/dist/assets/zh-tw-3Ki06u1b.js +1 -0
- package/dist/assets/zh-tw-B7lbXLVn.js +1 -0
- package/dist/assets/zh-u8iElwOC.js +2 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +30 -27
- package/api/util/get-dynamic-service-config.js +0 -48
- package/dist/assets/Edit-Cbvlvh2w.js +0 -11
- package/dist/assets/FormControl-vM9EJwp4.js +0 -1
- package/dist/assets/FormControlLabel-CS28YgVs.js +0 -1
- package/dist/assets/MoreVert-D4SS6MnA.js +0 -1
- package/dist/assets/Pagination-BXlUtx3B.js +0 -2
- package/dist/assets/access-control-BDg9FQV3.js +0 -13
- package/dist/assets/add-resource-DLKAe3re.js +0 -1
- package/dist/assets/api-JbjuY7JN.js +0 -1
- package/dist/assets/ar-BcsWe-M7.js +0 -1
- package/dist/assets/ar-rur8F6ox.js +0 -1
- package/dist/assets/audit-logs-Vn5iZ4P_.js +0 -58
- package/dist/assets/config-ONP_4X_B.js +0 -1
- package/dist/assets/connect-to-GhSR8jRw.js +0 -54
- package/dist/assets/de-C-5DrcsF.js +0 -1
- package/dist/assets/de-f8XZAb4q.js +0 -1
- package/dist/assets/email-BINRPUSY.js +0 -18
- package/dist/assets/emotion-cache.browser.esm-ByukGais.js +0 -1
- package/dist/assets/es-CDmziQ2d.js +0 -1
- package/dist/assets/es-Dkw0SgdE.js +0 -1
- package/dist/assets/fr-CutjrzQz.js +0 -1
- package/dist/assets/fr-RdOP2uWC.js +0 -1
- package/dist/assets/hi-BwtTylyX.js +0 -1
- package/dist/assets/hi-V6iw7v5V.js +0 -1
- package/dist/assets/id-CeB6Ugb-.js +0 -1
- package/dist/assets/id-Dz8dfVhg.js +0 -1
- package/dist/assets/index-BHXHtIJm.js +0 -126
- package/dist/assets/index-CXg0jLCN.js +0 -11
- package/dist/assets/index-DW7dwoqE.js +0 -11
- package/dist/assets/index-DmdwpBJN.js +0 -261
- package/dist/assets/index-DqHzmyne.js +0 -68
- package/dist/assets/index-HqFqdQ4r.js +0 -1
- package/dist/assets/index-RVvYAb40.js +0 -1
- package/dist/assets/index-wVSweHe6.js +0 -1
- package/dist/assets/index.esm-S4QOHn5V.js +0 -1
- package/dist/assets/ja-BZrZ4ULY.js +0 -1
- package/dist/assets/ja-DlWywLev.js +0 -1
- package/dist/assets/ko-DLaz-pjP.js +0 -1
- package/dist/assets/ko-ESHUwy9c.js +0 -1
- package/dist/assets/localization-BlAk-2Dh.js +0 -1
- package/dist/assets/logo-uploader-DO_ePInN.js +0 -122
- package/dist/assets/mode-B2dWMeTO.js +0 -1
- package/dist/assets/notifications-CDn5GICo.js +0 -62
- package/dist/assets/overview-DvxryhGu.js +0 -12
- package/dist/assets/pt-BMSFPKAT.js +0 -1
- package/dist/assets/pt-CysEhQ_Z.js +0 -1
- package/dist/assets/publish-resource-BK8LfyYg.js +0 -1
- package/dist/assets/react-DWdAOKA_.js +0 -57
- package/dist/assets/resource-dialog-CxQ2RdqX.js +0 -57
- package/dist/assets/ru-2aTr2i-M.js +0 -1
- package/dist/assets/ru-C-IO4heq.js +0 -1
- package/dist/assets/sdk-BzFjs0zU.js +0 -1
- package/dist/assets/session-CPw6Z6tL.js +0 -1
- package/dist/assets/setup-C-eSKhTS.js +0 -19
- package/dist/assets/th-Bd6_ise5.js +0 -1
- package/dist/assets/th-D2W7tb3N.js +0 -1
- package/dist/assets/trim-pCqXvQz3.js +0 -1
- package/dist/assets/use-blocklet-info-for-connect-did-spaces-BfIvMuGO.js +0 -1
- package/dist/assets/useSlot-BnpRF9Wf.js +0 -1
- package/dist/assets/useThemeProps-NLTP4qET.js +0 -1
- package/dist/assets/user-center-DSwKYf1W.js +0 -1
- package/dist/assets/vi-BrQQz2Dk.js +0 -1
- package/dist/assets/vi-DTSqGMo-.js +0 -1
- package/dist/assets/wrap-locale-De5w1_ZO.js +0 -1
- package/dist/assets/zh-BUjxGa7K.js +0 -1
- package/dist/assets/zh-CT0fSzRS.js +0 -2
- package/dist/assets/zh-tw-GFcs7F29.js +0 -1
- package/dist/assets/zh-tw-i93Px0uV.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as $,bX as Q,
|
|
1
|
+
import{r as $,bX as Q,dz as Z,j as o,bF as O,dA as z,P as n,dB as ee,dC as U,bt as b,bE as B,u as _,dD as q,B as y,aM as C,aj as oe,I as D}from"./index-BowU-Rc8.js";import{E as W}from"./fallback-DpZp1UKo.js";import{R as ne,N as te}from"./index-DbC1wngE.js";import{i as re,u as ie,f as G,g as I,p as ae,m as K,a as se,b as le,H as ce,B as de}from"./index-DH4lKXWs.js";import{d as pe}from"./ExpandMore-BjFaf3Fo.js";import{A as S}from"./Avatar-BZ_OPd3a.js";function T({icon:e,size:t,sx:r,...a}){const i=[...Array.isArray(r)?r:[r]];t&&i.push({width:t,height:t});const[u,s]=$.useState(!1),[c,l]=$.useState(!0);if(Q(async()=>{l(!0);try{await Z(e),s(!0)}catch{s(!1)}l(!1)},[e]),a.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),re(e))return o.jsx(S,{component:"span",...a,src:e,sx:i});const d=t?.6*t+4:0;return c?o.jsx(O,{icon:"codicon:blank",height:d||void 0}):u?o.jsx(S,{component:"span",...a,sx:i,children:o.jsx(O,{icon:e,height:d||void 0})}):e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),o.jsx(S,{component:"span",...a,sx:i,children:Array.from(e)[0]})):null}const ue=z();function A({theme:e,children:t}){const r=e?z(e):ue;return o.jsx(ee,{theme:r,children:t})}A.propTypes={children:n.any.isRequired,theme:n.object};A.defaultProps={theme:null};const fe=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const a=K(e,s=>{var d,p;const c=s.icon?o.jsx(T,{icon:s.icon}):null;if(s.items)return{id:`${t++}`,label:s.title,icon:c,children:s.items};let l={};return((d=s.link)!=null&&d.startsWith("http://")||(p=s.link)!=null&&p.startsWith("https://"))&&(l={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:o.jsx("a",{href:s.link,...l,children:s.title}),icon:c,link:s.link}},"items"),i=se(a),u=le(i.map(s=>s.link));return{navItems:a,activeId:u>=0?i[u].id:null}};function he({meta:e={},addons:t,sessionManagerProps:r={showRole:!0},homeLink:a=ae,theme:i,hideNavMenu:u=!1,...s}){var h,N;ie();const{locale:c}=_()||{},l=$.useMemo(()=>{const w=Object.assign({},window.blocklet,e);try{return G(w)}catch(J){return console.error("Failed to format blocklet info",J,w),w}},[e]);if(!l.appName)return null;const{appLogo:d,appLogoRect:p,theme:m}=l,f=I((h=l==null?void 0:l.navigation)==null?void 0:h.header,c),k=fe(f),{navItems:g,activeId:v}=k,j=typeof t=="function"?w=>t(w,{navigation:k}):t,x=o.jsx(ce,{formattedBlocklet:l,addons:j,sessionManagerProps:r});return o.jsx(A,{theme:i,children:o.jsx(me,{homeLink:a,logo:o.jsx("img",{src:p||d,alt:"logo"}),addons:x,...q(s,["bordered"]),$bordered:s==null?void 0:s.bordered,$bgcolor:(N=m==null?void 0:m.background)==null?void 0:N.header,children:u||!(g!=null&&g.length)?null:({isMobile:w})=>o.jsx(te,{mode:w?"inline":"horizontal",activeId:v,items:g,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}const me=b(ne)`
|
|
2
2
|
${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
|
|
3
3
|
font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
|
|
4
4
|
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -31,7 +31,7 @@ import{r as $,bX as Q,dy as Z,j as o,bF as O,dz as z,P as n,dA as ee,dB as U,bt
|
|
|
31
31
|
height: 20px;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
`,Ce=U(he,{FallbackComponent:
|
|
34
|
+
`,Ce=U(he,{FallbackComponent:W});function F({name:e,logo:t,description:r,...a}){if(!e&&!t&&!r)return null;const i=$.isValidElement(t)?t:o.jsx("img",{src:t,alt:e});return o.jsxs(ge,{...a,children:[o.jsxs("div",{children:[t&&o.jsx(y,{component:"a",href:"/",className:"footer-brand-logo",children:i}),e&&o.jsx("div",{className:"footer-brand-name",children:e})]}),r&&o.jsx("div",{className:"footer-brand-desc",children:r})]})}F.propTypes={name:n.node,logo:n.node,description:n.string};F.defaultProps={name:"",logo:"",description:""};const ge=b("div")`
|
|
35
35
|
display: flex;
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
font-size: 14px;
|
|
@@ -241,7 +241,7 @@ import{r as $,bX as Q,dy as Z,j as o,bF as O,dz as z,P as n,dA as ee,dB as U,bt
|
|
|
241
241
|
margin: 0 auto;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
`;function V({elements:e,data:t,...r}){var a;return o.jsx(ve,{...r,children:o.jsxs(
|
|
244
|
+
`;function V({elements:e,data:t,...r}){var a;return o.jsx(ve,{...r,children:o.jsxs(D,{children:[o.jsxs(y,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{xs:"center",md:"space-between"},gap:2,pb:3},children:[o.jsx(y,{children:e.brand}),o.jsx(y,{lineHeight:1,children:e.socialMedia})]}),!!((a=t.navigation)!=null&&a.length)&&o.jsx(y,{sx:{mb:6,pt:3,borderTop:1,borderColor:"grey.200"},children:e.navigation}),o.jsxs(M,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[e.copyright,e.links]})]})})}V.propTypes={elements:n.shape({brand:n.element,navigation:n.element,socialMedia:n.element,copyright:n.element,links:n.element}).isRequired,data:n.object.isRequired};const ve=b("div")`
|
|
245
245
|
padding: 32px 0 24px 0;
|
|
246
246
|
.footer-brand-name,
|
|
247
247
|
.footer-brand-desc {
|
|
@@ -250,7 +250,7 @@ import{r as $,bX as Q,dy as Z,j as o,bF as O,dz as z,P as n,dA as ee,dB as U,bt
|
|
|
250
250
|
&& .footer-brand-logo {
|
|
251
251
|
margin-right: 0;
|
|
252
252
|
}
|
|
253
|
-
`;function X({elements:e,data:t,...r}){return o.jsx(je,{...r,children:o.jsxs(
|
|
253
|
+
`;function X({elements:e,data:t,...r}){return o.jsx(je,{...r,children:o.jsxs(D,{className:"plain-layout-container",children:[!!t.links&&o.jsxs(M,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!t.links&&o.jsxs(o.Fragment,{children:[$.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})}X.propTypes={elements:n.shape({brand:n.element,navigation:n.element,socialMedia:n.element,copyright:n.element,links:n.element}).isRequired,data:n.object.isRequired};const je=b("div")`
|
|
254
254
|
padding: 24px 0;
|
|
255
255
|
.plain-layout-container {
|
|
256
256
|
display: flex;
|
|
@@ -265,4 +265,4 @@ import{r as $,bX as Q,dy as Z,j as o,bF as O,dz as z,P as n,dA as ee,dB as U,bt
|
|
|
265
265
|
${({$bgcolor:e})=>e&&`background-color: ${e};`}
|
|
266
266
|
font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
|
|
267
267
|
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
268
|
-
`,Te=U(H,{FallbackComponent:
|
|
268
|
+
`,Te=U(H,{FallbackComponent:W});export{Te as F,Ce as H};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as A,v as R,p as w,e as p}from"./index-
|
|
1
|
+
import{d as A,v as R,p as w,e as p}from"./index-DtHgjXc_.js";const O=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,x=/^[a-zA-Z]:\\/;function N(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return x.test(e)?!1:O.test(e)}const _=["http","https"],z=["nofollow"],L={};function T(e){const r=e||L,g=r.protocols||_,u=A(r.test);return function(h){R(h,"element",function(t,y,E){if(t.tagName==="a"&&typeof t.properties.href=="string"&&u(t,y,E)){const o=t.properties.href;if(N(o)?g.includes(o.slice(0,o.indexOf(":"))):o.startsWith("//")){const n=s(r.content,t),c=n&&!Array.isArray(n)?[n]:n,i=s(r.rel,t)||z,a=typeof i=="string"?w(i):i,f=s(r.target,t),l=s(r.properties,t);if(l&&Object.assign(t.properties,p(l)),a.length>0&&(t.properties.rel=[...a]),f&&(t.properties.target=f),c){const m=s(r.contentProperties,t)||{};t.children.push({type:"element",tagName:"span",properties:p(m),children:p(c)})}}}})}}function s(e,r){return typeof e=="function"?e(r):e}export{T as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as o,bt as h,B as p,P as i}from"./index-
|
|
1
|
+
import{r as d,j as o,bt as h,B as p,P as i}from"./index-BowU-Rc8.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(d);var c=o;function v(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(y){return Object.getOwnPropertyDescriptor(e,y).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=g(e,"string");return typeof t=="symbol"?t:t+""}function g(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,c.jsx)("svg",u(u({},t),{},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const O=h(p)`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{P as l,r as c,j as n,B as h,bi as $,a0 as G,bA as H,fq as U,a8 as Y,aC as L,n as Z,de as J,cM as Q,Z as v}from"./index-BowU-Rc8.js";import{d as ee}from"./Done-B8u3JQ36.js";import{C as te}from"./Google-B7LRQAsM.js";import{T as ne}from"./TextField-CVbbJh-y.js";import{R as re,F as oe,L as se}from"./logo-uploader-Cz1267Av.js";const N={description:l.string,editing:l.bool,onChange:l.func,required:l.bool,value:l.any,componentProps:l.object,render:l.func,renderFormItem:l.func};function S({editing:o,value:r,onChange:a}){const[d,u]=c.useState(!1),m=c.useRef(),p=c.useRef(r);c.useEffect(()=>{let s=null;return o&&(s=setTimeout(()=>{u(!0)},50)),()=>{clearTimeout(s)}},[o]);const C=s=>{p.current=s,a(s)},k=()=>{u(!1),a(p.current)},I=n.jsx(h,{className:"form-item-input slot",px:1,children:n.jsxs(h,{display:"flex",alignItems:"center",children:[r,r!=="auto"&&n.jsx("div",{style:{marginLeft:4,backgroundColor:r,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),f=n.jsxs(h,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:k,children:[n.jsx(h,{display:"flex",alignItems:"center",onClick:()=>u(!0),children:n.jsx("div",{ref:m,style:{flexShrink:0,marginLeft:"8px",backgroundColor:r,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:r==="auto"?"default":"pointer"}})}),n.jsx($,{open:d,anchorEl:m.current,onClose:()=>u(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:n.jsx(te,{color:r,onChange:s=>C(s.hex)})})]});return o?f:I}S.propTypes=N;function T({editing:o,description:r,value:a,onChange:d,componentProps:u,...m}){const{placeholder:p}=u,C=c.useRef(a),{t:k}=c.useContext(G),I=s=>{s.key==="Enter"&&d(C.current,"confirm")},f=s=>{C.current=s,d(s)};return o?n.jsx(ne,{style:{flex:1},fullWidth:!0,value:a,onChange:s=>{s.persist(),f(s.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:r||p,onKeyDown:I,...m}):n.jsx(h,{px:1,className:"form-item-input slot",children:a||n.jsx("span",{className:"placeholder",children:k("common.requiredInputPlaceholder",{name:r||p})})})}T.propTypes=N;T.defaultProps={componentProps:{}};function V({editing:o,value:r,onChange:a,componentProps:d,...u}){const{blocklet:m}=d,p=r==="auto"?H.getPassportColorFromDid(m.appDid):r;return n.jsxs(h,{display:"flex",alignItems:"center",children:[n.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:U({title:"Owner",issuer:Y.getDisplayName(m),issuerDid:m.appDid,ownerName:"Your Name",ownerDid:m.appDid,preferredColor:r||"auto"})}}),n.jsx(S,{...u,editing:o,value:o?p:r,onChange:a,componentProps:d})]})}V.propTypes={...N,componentProps:l.shape({blocklet:l.object.isRequired}).isRequired};V.defaultProps={};const ie=Q`
|
|
2
|
+
0%, 100% {
|
|
3
|
+
transform: scale(1) translateX(0);
|
|
4
|
+
}
|
|
5
|
+
50% {
|
|
6
|
+
transform: scale(1.05) translateX(-3px);
|
|
7
|
+
}
|
|
8
|
+
25%, 75% {
|
|
9
|
+
transform: scale(1.1) translateX(3px);
|
|
10
|
+
}
|
|
11
|
+
`,ae={input:T,color:S,passport:V,uploader:o=>n.jsx(se,{...o.componentProps})};function le(o,{editing:r=!1}){const{componentType:a="input",render:d,renderFormItem:u}=o;return r&&u?u:!r&&d?d:ae[a==null?void 0:a.toLowerCase()]}function O({schema:o,loading:r,value:a,defaultValue:d,onChange:u,style:m,disabled:p}){const C=Object.prototype.toString.call(a)==="[object Object]",[k,I]=c.useState([]),[f,s]=c.useState(C?a:d),_=c.useMemo(()=>o.length===1,[o]),g=c.useCallback(e=>k.find(t=>t.key===e),[k]);c.useEffect(()=>{var e;_&&((e=o[0])!=null&&e.required)&&I([{key:o[0].key,editing:!0}])},[o,_]);const P=c.useCallback(e=>{I(t=>t.find(i=>i.key===e.key)?t.map(i=>i.key===e.key?e:{...i}):[e].concat(t))},[]),w=c.useCallback((e,t,x)=>{const{key:i,secure:R}=e,y=g(i)??{...e};y.editing=!0;const j=f[i]!==t;y.edited=t&&y.initialValue!==t,y.initialValue=d[i];const b={...f,[i]:t};j&&s(b),u({[i]:t},{allValues:b,action:x,currentItem:e}),x==="confirm"&&R&&s({...f,[i]:"__encrypted__"}),x==="confirm"&&(y.initialValue=f[i]),["confirm","cancel"].includes(x)&&(y.editing=!1,y.edited=!1),P(y)},[d,f,u,P,g]);function z(e,{editing:t=!1}){const{key:x}=e,i=C?a[x]:f[x];return i==="__encrypted__"?t?"":"******":i}const F=c.useCallback(e=>{const t=g(e.key);t&&w(e,t.initialValue,"cancel")},[g,w]),q=c.useCallback(e=>{const t=g(e.key);!t||!t.edited||(t.shaking=!0,P(t),setTimeout(()=>{t.shaking=!1,P(t)},500))},[g,P]),K=c.useCallback(e=>{const t=g(e.key);!t||!t.edited?F(e):q(e)},[g,q,F]);return n.jsx(ce,{className:"form",style:m,children:o==null?void 0:o.map(e=>{const{key:t,description:x,required:i,solo:R=!1,hidden:y=!1,componentProps:D={}}=e;if(y)return null;const j=g(t),{editing:b,shaking:B}=j??{},E=z(e,{editing:b}),M=le(e,{editing:b}),W={inputProps:{"data-cy":"schema-form-item-component"},key:t,description:x,editing:b,value:E,onChange:(X,A="change")=>w(e,X,A),componentProps:D,onBlur:()=>K(e)};return n.jsxs(h,{className:"form-item",children:[!R&&n.jsxs(h,{className:"form-item-label",style:{color:i&&!E?"#ff0000":"#333"},children:[x,i&&n.jsx(re,{})]}),n.jsxs(h,{className:"form-item-body",children:[n.jsx(h,{className:"form-item-input","data-cy":"schema-form-item-edit",sx:{textAlign:R?"center":"left"},style:{cursor:"text"},onClick:()=>{p||j!=null&&j.edited||w(e,f[t],"edit")},children:n.jsx(M,{...W})}),!R&&n.jsx(h,{className:"form-item-action",style:{marginLeft:0},children:b?n.jsxs(n.Fragment,{children:[j.edited?n.jsx(L,{"data-cy":"schema-form-item-confirm",onClick:()=>{w(e,E,"confirm")},disabled:p||r,sx:{animation:B?`${ie} 0.5s linear`:"none"},style:{paddingRight:4},size:"large",children:r?n.jsx(Z,{size:24}):n.jsx(ee,{})}):null,n.jsx(L,{"data-cy":"schema-form-item-cancel",onClick:()=>F(e),style:{paddingLeft:j.edited?4:8},disabled:p||r,size:"large",children:n.jsx(J,{})})]}):null})]})]},t)})})}O.propTypes={schema:l.array.isRequired,loading:l.bool,onChange:l.func.isRequired,value:l.object,defaultValue:l.object,style:l.object,disabled:l.bool};O.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const ce=v(oe)``;export{O as S};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b7 as Wi,P as C,bt as Ae,j as E,r as Ee,cm as nn,cn as Ji,co as Qi,B as Dn,c3 as Di,cp as er,cq as tr,cr as ei,bD as nr,cs as ir,aM as rr}from"./index-CES_wWCV.js";import{r as ar,a as sr}from"./emotion-cache.browser.esm-ByukGais.js";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const or=4,rn=0,an=1,lr=2;function Se(e){let n=e.length;for(;--n>=0;)e[n]=0}const fr=0,ti=1,cr=2,dr=3,ur=258,Ut=29,qe=256,je=qe+1+Ut,Ne=30,jt=19,ni=2*je+1,ce=15,ht=16,hr=7,Bt=256,ii=16,ri=17,ai=18,St=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]),rt=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]),_r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),si=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pr=512,Q=new Array((je+2)*2);Se(Q);const Ze=new Array(Ne*2);Se(Ze);const Be=new Array(pr);Se(Be);const He=new Array(ur-dr+1);Se(He);const Ht=new Array(Ut);Se(Ht);const at=new Array(Ne);Se(at);function _t(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let oi,li,fi;function pt(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const ci=e=>e<256?Be[e]:Be[256+(e>>>7)],Ve=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},U=(e,n,t)=>{e.bi_valid>ht-t?(e.bi_buf|=n<<e.bi_valid&65535,Ve(e,e.bi_buf),e.bi_buf=n>>ht-e.bi_valid,e.bi_valid+=t-ht):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},Y=(e,n,t)=>{U(e,t[n*2],t[n*2+1])},di=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},gr=e=>{e.bi_valid===16?(Ve(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},br=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,f=n.stat_desc.max_length;let o,c,_,u,d,b,v=0;for(u=0;u<=ce;u++)e.bl_count[u]=0;for(t[e.heap[e.heap_max]*2+1]=0,o=e.heap_max+1;o<ni;o++)c=e.heap[o],u=t[t[c*2+1]*2+1]+1,u>f&&(u=f,v++),t[c*2+1]=u,!(c>i)&&(e.bl_count[u]++,d=0,c>=s&&(d=l[c-s]),b=t[c*2],e.opt_len+=b*(u+d),a&&(e.static_len+=b*(r[c*2+1]+d)));if(v!==0){do{for(u=f-1;e.bl_count[u]===0;)u--;e.bl_count[u]--,e.bl_count[u+1]+=2,e.bl_count[f]--,v-=2}while(v>0);for(u=f;u!==0;u--)for(c=e.bl_count[u];c!==0;)_=e.heap[--o],!(_>i)&&(t[_*2+1]!==u&&(e.opt_len+=(u-t[_*2+1])*t[_*2],t[_*2+1]=u),c--)}},ui=(e,n,t)=>{const i=new Array(ce+1);let r=0,a,l;for(a=1;a<=ce;a++)r=r+t[a-1]<<1,i[a]=r;for(l=0;l<=n;l++){let s=e[l*2+1];s!==0&&(e[l*2]=di(i[s]++,s))}},wr=()=>{let e,n,t,i,r;const a=new Array(ce+1);for(t=0,i=0;i<Ut-1;i++)for(Ht[i]=t,e=0;e<1<<St[i];e++)He[t++]=i;for(He[t-1]=i,r=0,i=0;i<16;i++)for(at[i]=r,e=0;e<1<<rt[i];e++)Be[r++]=i;for(r>>=7;i<Ne;i++)for(at[i]=r<<7,e=0;e<1<<rt[i]-7;e++)Be[256+r++]=i;for(n=0;n<=ce;n++)a[n]=0;for(e=0;e<=143;)Q[e*2+1]=8,e++,a[8]++;for(;e<=255;)Q[e*2+1]=9,e++,a[9]++;for(;e<=279;)Q[e*2+1]=7,e++,a[7]++;for(;e<=287;)Q[e*2+1]=8,e++,a[8]++;for(ui(Q,je+1,a),e=0;e<Ne;e++)Ze[e*2+1]=5,Ze[e*2]=di(e,5);oi=new _t(Q,St,qe+1,je,ce),li=new _t(Ze,rt,0,Ne,ce),fi=new _t(new Array(0),_r,0,jt,hr)},hi=e=>{let n;for(n=0;n<je;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Ne;n++)e.dyn_dtree[n*2]=0;for(n=0;n<jt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Bt*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},_i=e=>{e.bi_valid>8?Ve(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},sn=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},gt=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&sn(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!sn(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},on=(e,n,t)=>{let i,r,a=0,l,s;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?Y(e,r,n):(l=He[r],Y(e,l+qe+1,n),s=St[l],s!==0&&(r-=Ht[l],U(e,r,s)),i--,l=ci(i),Y(e,l,t),s=rt[l],s!==0&&(i-=at[l],U(e,i,s)));while(a<e.sym_next);Y(e,Bt,n)},Ot=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let l,s,f=-1,o;for(e.heap_len=0,e.heap_max=ni,l=0;l<a;l++)t[l*2]!==0?(e.heap[++e.heap_len]=f=l,e.depth[l]=0):t[l*2+1]=0;for(;e.heap_len<2;)o=e.heap[++e.heap_len]=f<2?++f:0,t[o*2]=1,e.depth[o]=0,e.opt_len--,r&&(e.static_len-=i[o*2+1]);for(n.max_code=f,l=e.heap_len>>1;l>=1;l--)gt(e,t,l);o=a;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],gt(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=s,t[o*2]=t[l*2]+t[s*2],e.depth[o]=(e.depth[l]>=e.depth[s]?e.depth[l]:e.depth[s])+1,t[l*2+1]=t[s*2+1]=o,e.heap[1]=o++,gt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],br(e,n),ui(t,f,e.bl_count)},ln=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)&&(s<o?e.bl_tree[a*2]+=s:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[ii*2]++):s<=10?e.bl_tree[ri*2]++:e.bl_tree[ai*2]++,s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4))},fn=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),i=0;i<=t;i++)if(a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)){if(s<o)do Y(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==r&&(Y(e,a,e.bl_tree),s--),Y(e,ii,e.bl_tree),U(e,s-3,2)):s<=10?(Y(e,ri,e.bl_tree),U(e,s-3,3)):(Y(e,ai,e.bl_tree),U(e,s-11,7));s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4)}},xr=e=>{let n;for(ln(e,e.dyn_ltree,e.l_desc.max_code),ln(e,e.dyn_dtree,e.d_desc.max_code),Ot(e,e.bl_desc),n=jt-1;n>=3&&e.bl_tree[si[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},vr=(e,n,t,i)=>{let r;for(U(e,n-257,5),U(e,t-1,5),U(e,i-4,4),r=0;r<i;r++)U(e,e.bl_tree[si[r]*2+1],3);fn(e,e.dyn_ltree,n-1),fn(e,e.dyn_dtree,t-1)},yr=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return rn;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return an;for(t=32;t<qe;t++)if(e.dyn_ltree[t*2]!==0)return an;return rn};let cn=!1;const mr=e=>{cn||(wr(),cn=!0),e.l_desc=new pt(e.dyn_ltree,oi),e.d_desc=new pt(e.dyn_dtree,li),e.bl_desc=new pt(e.bl_tree,fi),e.bi_buf=0,e.bi_valid=0,hi(e)},pi=(e,n,t,i)=>{U(e,(fr<<1)+(i?1:0),3),_i(e),Ve(e,t),Ve(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},Er=e=>{U(e,ti<<1,3),Y(e,Bt,Q),gr(e)},Nr=(e,n,t,i)=>{let r,a,l=0;e.level>0?(e.strm.data_type===lr&&(e.strm.data_type=yr(e)),Ot(e,e.l_desc),Ot(e,e.d_desc),l=xr(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?pi(e,n,t,i):e.strategy===or||a===r?(U(e,(ti<<1)+(i?1:0),3),on(e,Q,Ze)):(U(e,(cr<<1)+(i?1:0),3),vr(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),on(e,e.dyn_ltree,e.dyn_dtree)),hi(e),i&&_i(e)},kr=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(He[t]+qe+1)*2]++,e.dyn_dtree[ci(n)*2]++),e.sym_next===e.sym_end);var Tr=mr,Ar=pi,Sr=Nr,Or=kr,Ir=Er,zr={_tr_init:Tr,_tr_stored_block:Ar,_tr_flush_block:Sr,_tr_tally:Or,_tr_align:Ir};const Rr=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,l=0;for(;t!==0;){l=t>2e3?2e3:t,t-=l;do r=r+n[i++]|0,a=a+r|0;while(--l);r%=65521,a%=65521}return r|a<<16|0};var Xe=Rr;const Cr=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},Pr=new Uint32Array(Cr()),$r=(e,n,t,i)=>{const r=Pr,a=i+t;e^=-1;for(let l=i;l<a;l++)e=e>>>8^r[(e^n[l])&255];return e^-1};var $=$r,_e={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"},be={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};const{_tr_init:Lr,_tr_stored_block:It,_tr_flush_block:Fr,_tr_tally:re,_tr_align:Zr}=zr,{Z_NO_FLUSH:ae,Z_PARTIAL_FLUSH:Mr,Z_FULL_FLUSH:Ur,Z_FINISH:V,Z_BLOCK:dn,Z_OK:L,Z_STREAM_END:un,Z_STREAM_ERROR:q,Z_DATA_ERROR:jr,Z_BUF_ERROR:bt,Z_DEFAULT_COMPRESSION:Br,Z_FILTERED:Hr,Z_HUFFMAN_ONLY:De,Z_RLE:Vr,Z_FIXED:Xr,Z_DEFAULT_STRATEGY:Kr,Z_UNKNOWN:Gr,Z_DEFLATED:lt}=be,Yr=9,qr=15,Wr=8,Jr=29,Qr=256,zt=Qr+1+Jr,Dr=30,ea=19,ta=2*zt+1,na=15,S=3,ie=258,W=ie+S+1,ia=32,ke=42,Vt=57,Rt=69,Ct=73,Pt=91,$t=103,de=113,Le=666,Z=1,Oe=2,pe=3,Ie=4,ra=3,ue=(e,n)=>(e.msg=_e[n],n),hn=e=>e*2-(e>4?9:0),ne=e=>{let n=e.length;for(;--n>=0;)e[n]=0},aa=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let sa=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,se=sa;const B=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},H=(e,n)=>{Fr(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,B(e.strm)},I=(e,n)=>{e.pending_buf[e.pending++]=n},Re=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},Lt=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Xe(e.adler,n,r,t):e.state.wrap===2&&(e.adler=$(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},gi=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,l=e.prev_length,s=e.nice_match;const f=e.strstart>e.w_size-W?e.strstart-(e.w_size-W):0,o=e.window,c=e.w_mask,_=e.prev,u=e.strstart+ie;let d=o[i+l-1],b=o[i+l];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=n,!(o[r+l]!==b||o[r+l-1]!==d||o[r]!==o[i]||o[++r]!==o[i+1])){i+=2,r++;do;while(o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&i<u);if(a=ie-(u-i),i=u-ie,a>l){if(e.match_start=n,l=a,a>=s)break;d=o[i+l-1],b=o[i+l]}}while((n=_[n&c])>f&&--t!==0);return l<=e.lookahead?l:e.lookahead},Te=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-W)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),aa(e),i+=n),e.strm.avail_in===0)break;if(t=Lt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=S)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=se(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=se(e,e.ins_h,e.window[r+S-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<W&&e.strm.avail_in!==0)},bi=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,l=0,s=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==V||n===ae||i!==r+e.strm.avail_in)))break;l=n===V&&i===r+e.strm.avail_in?1:0,It(e,0,0,l),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,B(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&(Lt(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(l===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),l?Ie:n!==ae&&n!==V&&e.strm.avail_in===0&&e.strstart===e.block_start?Oe:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Lt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===V)&&n!==ae&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,l=n===V&&e.strm.avail_in===0&&i===r?1:0,It(e,e.block_start,i,l),e.block_start+=i,B(e.strm)),l?pe:Z)},wt=(e,n)=>{let t,i;for(;;){if(e.lookahead<W){if(Te(e),e.lookahead<W&&n===ae)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-W&&(e.match_length=gi(e,t)),e.match_length>=S)if(i=re(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){e.match_length--;do e.strstart++,e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=se(e,e.ins_h,e.window[e.strstart+1]);else i=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=e.strstart<S-1?e.strstart:S-1,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},ye=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<W){if(Te(e),e.lookahead<W&&n===ae)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-W&&(e.match_length=gi(e,t),e.match_length<=5&&(e.strategy===Hr||e.match_length===S&&e.strstart-e.match_start>4096)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-S,i=re(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=S-1,e.strstart++,i&&(H(e,!1),e.strm.avail_out===0))return Z}else if(e.match_available){if(i=re(e,0,e.window[e.strstart-1]),i&&H(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Z}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=re(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},oa=(e,n)=>{let t,i,r,a;const l=e.window;for(;;){if(e.lookahead<=ie){if(Te(e),e.lookahead<=ie&&n===ae)return Z;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=S&&e.strstart>0&&(r=e.strstart-1,i=l[r],i===l[++r]&&i===l[++r]&&i===l[++r])){a=e.strstart+ie;do;while(i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&r<a);e.match_length=ie-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(t=re(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},la=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(Te(e),e.lookahead===0)){if(n===ae)return Z;break}if(e.match_length=0,t=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe};function G(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const Fe=[new G(0,0,0,0,bi),new G(4,4,8,4,wt),new G(4,5,16,8,wt),new G(4,6,32,32,wt),new G(4,4,16,16,ye),new G(8,16,32,32,ye),new G(8,16,128,128,ye),new G(8,32,128,256,ye),new G(32,128,258,1024,ye),new G(32,258,258,4096,ye)],fa=e=>{e.window_size=2*e.w_size,ne(e.head),e.max_lazy_match=Fe[e.level].max_lazy,e.good_match=Fe[e.level].good_length,e.nice_match=Fe[e.level].nice_length,e.max_chain_length=Fe[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0};function ca(){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=lt,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(ta*2),this.dyn_dtree=new Uint16Array((2*Dr+1)*2),this.bl_tree=new Uint16Array((2*ea+1)*2),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(na+1),this.heap=new Uint16Array(2*zt+1),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*zt+1),ne(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}const We=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==ke&&n.status!==Vt&&n.status!==Rt&&n.status!==Ct&&n.status!==Pt&&n.status!==$t&&n.status!==de&&n.status!==Le?1:0},wi=e=>{if(We(e))return ue(e,q);e.total_in=e.total_out=0,e.data_type=Gr;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Vt:n.wrap?ke:de,e.adler=n.wrap===2?0:1,n.last_flush=-2,Lr(n),L},xi=e=>{const n=wi(e);return n===L&&fa(e.state),n},da=(e,n)=>We(e)||e.state.wrap!==2?q:(e.state.gzhead=n,L),vi=(e,n,t,i,r,a)=>{if(!e)return q;let l=1;if(n===Br&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),r<1||r>Yr||t!==lt||i<8||i>15||n<0||n>9||a<0||a>Xr||i===8&&l!==1)return ue(e,q);i===8&&(i=9);const s=new ca;return e.state=s,s.strm=e,s.status=ke,s.wrap=l,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+S-1)/S),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,xi(e)},ua=(e,n)=>vi(e,n,lt,qr,Wr,Kr),ha=(e,n)=>{if(We(e)||n>dn||n<0)return e?ue(e,q):q;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Le&&n!==V)return ue(e,e.avail_out===0?bt:q);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(B(e),e.avail_out===0)return t.last_flush=-1,L}else if(e.avail_in===0&&hn(n)<=hn(i)&&n!==V)return ue(e,bt);if(t.status===Le&&e.avail_in!==0)return ue(e,bt);if(t.status===ke&&t.wrap===0&&(t.status=de),t.status===ke){let r=lt+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=De||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=ia),r+=31-r%31,Re(t,r),t.strstart!==0&&(Re(t,e.adler>>>16),Re(t,e.adler&65535)),e.adler=1,t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(t.status===Vt){if(e.adler=0,I(t,31),I(t,139),I(t,8),t.gzhead)I(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),I(t,t.gzhead.time&255),I(t,t.gzhead.time>>8&255),I(t,t.gzhead.time>>16&255),I(t,t.gzhead.time>>24&255),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(I(t,t.gzhead.extra.length&255),I(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=$(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Rt;else if(I(t,0),I(t,0),I(t,0),I(t,0),I(t,0),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,ra),t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(t.status===Rt){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,B(e),t.pending!==0)return t.last_flush=-1,L;r=0,a-=s}let l=new Uint8Array(t.gzhead.extra);t.pending_buf.set(l.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Ct}if(t.status===Ct){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),B(e),t.pending!==0)return t.last_flush=-1,L;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Pt}if(t.status===Pt){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),B(e),t.pending!==0)return t.last_flush=-1,L;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r))}t.status=$t}if(t.status===$t){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(B(e),t.pending!==0))return t.last_flush=-1,L;I(t,e.adler&255),I(t,e.adler>>8&255),e.adler=0}if(t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(e.avail_in!==0||t.lookahead!==0||n!==ae&&t.status!==Le){let r=t.level===0?bi(t,n):t.strategy===De?la(t,n):t.strategy===Vr?oa(t,n):Fe[t.level].func(t,n);if((r===pe||r===Ie)&&(t.status=Le),r===Z||r===pe)return e.avail_out===0&&(t.last_flush=-1),L;if(r===Oe&&(n===Mr?Zr(t):n!==dn&&(It(t,0,0,!1),n===Ur&&(ne(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),B(e),e.avail_out===0))return t.last_flush=-1,L}return n!==V?L:t.wrap<=0?un:(t.wrap===2?(I(t,e.adler&255),I(t,e.adler>>8&255),I(t,e.adler>>16&255),I(t,e.adler>>24&255),I(t,e.total_in&255),I(t,e.total_in>>8&255),I(t,e.total_in>>16&255),I(t,e.total_in>>24&255)):(Re(t,e.adler>>>16),Re(t,e.adler&65535)),B(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?L:un)},_a=e=>{if(We(e))return q;const n=e.state.status;return e.state=null,n===de?ue(e,jr):L},pa=(e,n)=>{let t=n.length;if(We(e))return q;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==ke||i.lookahead)return q;if(r===1&&(e.adler=Xe(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(ne(i.head),i.strstart=0,i.block_start=0,i.insert=0);let f=new Uint8Array(i.w_size);f.set(n.subarray(t-i.w_size,t),0),n=f,t=i.w_size}const a=e.avail_in,l=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,Te(i);i.lookahead>=S;){let f=i.strstart,o=i.lookahead-(S-1);do i.ins_h=se(i,i.ins_h,i.window[f+S-1]),i.prev[f&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=f,f++;while(--o);i.strstart=f,i.lookahead=S-1,Te(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=S-1,i.match_available=0,e.next_in=l,e.input=s,e.avail_in=a,i.wrap=r,L};var ga=ua,ba=vi,wa=xi,xa=wi,va=da,ya=ha,ma=_a,Ea=pa,Na="pako deflate (from Nodeca project)",Me={deflateInit:ga,deflateInit2:ba,deflateReset:wa,deflateResetKeep:xa,deflateSetHeader:va,deflate:ya,deflateEnd:ma,deflateSetDictionary:Ea,deflateInfo:Na};const ka=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Ta=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)ka(t,i)&&(e[i]=t[i])}}return e},Aa=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let l=e[i];t.set(l,r),r+=l.length}return t},ft={assign:Ta,flattenChunks:Aa};let yi=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{yi=!1}const Ke=new Uint8Array(256);for(let e=0;e<256;e++)Ke[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ke[254]=Ke[254]=1;var Sa=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,l=e.length,s=0;for(r=0;r<l;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,r=0;a<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Oa=(e,n)=>{if(n<65534&&e.subarray&&yi)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var Ia=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let l=e[i++];if(l<128){a[r++]=l;continue}let s=Ke[l];if(s>4){a[r++]=65533,i+=s-1;continue}for(l&=s===2?31:s===3?15:7;s>1&&i<t;)l=l<<6|e[i++]&63,s--;if(s>1){a[r++]=65533;continue}l<65536?a[r++]=l:(l-=65536,a[r++]=55296|l>>10&1023,a[r++]=56320|l&1023)}return Oa(a,r)},za=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Ke[e[t]]>n?t:n},Ge={string2buf:Sa,buf2string:Ia,utf8border:za};function Ra(){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 mi=Ra;const Ei=Object.prototype.toString,{Z_NO_FLUSH:Ca,Z_SYNC_FLUSH:Pa,Z_FULL_FLUSH:$a,Z_FINISH:La,Z_OK:st,Z_STREAM_END:Fa,Z_DEFAULT_COMPRESSION:Za,Z_DEFAULT_STRATEGY:Ma,Z_DEFLATED:Ua}=be;function Je(e){this.options=ft.assign({level:Za,method:Ua,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ma},e||{});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 mi,this.strm.avail_out=0;let t=Me.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==st)throw new Error(_e[t]);if(n.header&&Me.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ge.string2buf(n.dictionary):Ei.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=Me.deflateSetDictionary(this.strm,i),t!==st)throw new Error(_e[t]);this._dict_set=!0}}Je.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?La:Ca,typeof e=="string"?t.input=Ge.string2buf(e):Ei.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===Pa||a===$a)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=Me.deflate(t,a),r===Fa)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=Me.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===st;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Je.prototype.onData=function(e){this.chunks.push(e)};Je.prototype.onEnd=function(e){e===st&&(this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xt(e,n){const t=new Je(n);if(t.push(e,!0),t.err)throw t.msg||_e[t.err];return t.result}function ja(e,n){return n=n||{},n.raw=!0,Xt(e,n)}function Ba(e,n){return n=n||{},n.gzip=!0,Xt(e,n)}var Ha=Je,Va=Xt,Xa=ja,Ka=Ba,Ga=be,Ya={Deflate:Ha,deflate:Va,deflateRaw:Xa,gzip:Ka,constants:Ga};const et=16209,qa=16191;var Wa=function(n,t){let i,r,a,l,s,f,o,c,_,u,d,b,v,h,g,y,x,p,k,N,w,O,A,m;const T=n.state;i=n.next_in,A=n.input,r=i+(n.avail_in-5),a=n.next_out,m=n.output,l=a-(t-n.avail_out),s=a+(n.avail_out-257),f=T.dmax,o=T.wsize,c=T.whave,_=T.wnext,u=T.window,d=T.hold,b=T.bits,v=T.lencode,h=T.distcode,g=(1<<T.lenbits)-1,y=(1<<T.distbits)-1;e:do{b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),x=v[d&g];t:for(;;){if(p=x>>>24,d>>>=p,b-=p,p=x>>>16&255,p===0)m[a++]=x&65535;else if(p&16){k=x&65535,p&=15,p&&(b<p&&(d+=A[i++]<<b,b+=8),k+=d&(1<<p)-1,d>>>=p,b-=p),b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),x=h[d&y];n:for(;;){if(p=x>>>24,d>>>=p,b-=p,p=x>>>16&255,p&16){if(N=x&65535,p&=15,b<p&&(d+=A[i++]<<b,b+=8,b<p&&(d+=A[i++]<<b,b+=8)),N+=d&(1<<p)-1,N>f){n.msg="invalid distance too far back",T.mode=et;break e}if(d>>>=p,b-=p,p=a-l,N>p){if(p=N-p,p>c&&T.sane){n.msg="invalid distance too far back",T.mode=et;break e}if(w=0,O=u,_===0){if(w+=o-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}else if(_<p){if(w+=o+_-p,p-=_,p<k){k-=p;do m[a++]=u[w++];while(--p);if(w=0,_<k){p=_,k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}}else if(w+=_-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}for(;k>2;)m[a++]=O[w++],m[a++]=O[w++],m[a++]=O[w++],k-=3;k&&(m[a++]=O[w++],k>1&&(m[a++]=O[w++]))}else{w=a-N;do m[a++]=m[w++],m[a++]=m[w++],m[a++]=m[w++],k-=3;while(k>2);k&&(m[a++]=m[w++],k>1&&(m[a++]=m[w++]))}}else if(p&64){n.msg="invalid distance code",T.mode=et;break e}else{x=h[(x&65535)+(d&(1<<p)-1)];continue n}break}}else if(p&64)if(p&32){T.mode=qa;break e}else{n.msg="invalid literal/length code",T.mode=et;break e}else{x=v[(x&65535)+(d&(1<<p)-1)];continue t}break}}while(i<r&&a<s);k=b>>3,i-=k,b-=k<<3,d&=(1<<b)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<s?257+(s-a):257-(a-s),T.hold=d,T.bits=b};const me=15,_n=852,pn=592,gn=0,xt=1,bn=2,Ja=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]),Qa=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]),Da=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]),es=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]),ts=(e,n,t,i,r,a,l,s)=>{const f=s.bits;let o=0,c=0,_=0,u=0,d=0,b=0,v=0,h=0,g=0,y=0,x,p,k,N,w,O=null,A;const m=new Uint16Array(me+1),T=new Uint16Array(me+1);let K=null,ze,le,xe;for(o=0;o<=me;o++)m[o]=0;for(c=0;c<i;c++)m[n[t+c]]++;for(d=f,u=me;u>=1&&m[u]===0;u--);if(d>u&&(d=u),u===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(_=1;_<u&&m[_]===0;_++);for(d<_&&(d=_),h=1,o=1;o<=me;o++)if(h<<=1,h-=m[o],h<0)return-1;if(h>0&&(e===gn||u!==1))return-1;for(T[1]=0,o=1;o<me;o++)T[o+1]=T[o]+m[o];for(c=0;c<i;c++)n[t+c]!==0&&(l[T[n[t+c]]++]=c);if(e===gn?(O=K=l,A=20):e===xt?(O=Ja,K=Qa,A=257):(O=Da,K=es,A=0),y=0,c=0,o=_,w=a,b=d,v=0,k=-1,g=1<<d,N=g-1,e===xt&&g>_n||e===bn&&g>pn)return 1;for(;;){ze=o-v,l[c]+1<A?(le=0,xe=l[c]):l[c]>=A?(le=K[l[c]-A],xe=O[l[c]-A]):(le=96,xe=0),x=1<<o-v,p=1<<b,_=p;do p-=x,r[w+(y>>v)+p]=ze<<24|le<<16|xe|0;while(p!==0);for(x=1<<o-1;y&x;)x>>=1;if(x!==0?(y&=x-1,y+=x):y=0,c++,--m[o]===0){if(o===u)break;o=n[t+l[c]]}if(o>d&&(y&N)!==k){for(v===0&&(v=d),w+=_,b=o-v,h=1<<b;b+v<u&&(h-=m[b+v],!(h<=0));)b++,h<<=1;if(g+=1<<b,e===xt&&g>_n||e===bn&&g>pn)return 1;k=y&N,r[k]=d<<24|b<<16|w-a|0}}return y!==0&&(r[w+y]=o-v<<24|64<<16|0),s.bits=d,0};var Ue=ts;const ns=0,Ni=1,ki=2,{Z_FINISH:wn,Z_BLOCK:is,Z_TREES:tt,Z_OK:ge,Z_STREAM_END:rs,Z_NEED_DICT:as,Z_STREAM_ERROR:X,Z_DATA_ERROR:Ti,Z_MEM_ERROR:Ai,Z_BUF_ERROR:ss,Z_DEFLATED:xn}=be,ct=16180,vn=16181,yn=16182,mn=16183,En=16184,Nn=16185,kn=16186,Tn=16187,An=16188,Sn=16189,ot=16190,J=16191,vt=16192,On=16193,yt=16194,In=16195,zn=16196,Rn=16197,Cn=16198,nt=16199,it=16200,Pn=16201,$n=16202,Ln=16203,Fn=16204,Zn=16205,mt=16206,Mn=16207,Un=16208,z=16209,Si=16210,Oi=16211,os=852,ls=592,fs=15,cs=fs,jn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ds(){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}const we=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<ct||n.mode>Oi?1:0},Ii=e=>{if(we(e))return X;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=ct,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(os),n.distcode=n.distdyn=new Int32Array(ls),n.sane=1,n.back=-1,ge},zi=e=>{if(we(e))return X;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Ii(e)},Ri=(e,n)=>{let t;if(we(e))return X;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?X:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,zi(e))},Ci=(e,n)=>{if(!e)return X;const t=new ds;e.state=t,t.strm=e,t.window=null,t.mode=ct;const i=Ri(e,n);return i!==ge&&(e.state=null),i},us=e=>Ci(e,cs);let Bn=!0,Et,Nt;const hs=e=>{if(Bn){Et=new Int32Array(512),Nt=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(Ue(Ni,e.lens,0,288,Et,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;Ue(ki,e.lens,0,32,Nt,0,e.work,{bits:5}),Bn=!1}e.lencode=Et,e.lenbits=9,e.distcode=Nt,e.distbits=5},Pi=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},_s=(e,n)=>{let t,i,r,a,l,s,f,o,c,_,u,d,b,v,h=0,g,y,x,p,k,N,w,O;const A=new Uint8Array(4);let m,T;const K=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(we(e)||!e.output||!e.input&&e.avail_in!==0)return X;t=e.state,t.mode===J&&(t.mode=vt),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,_=s,u=f,O=ge;e:for(;;)switch(t.mode){case ct:if(t.wrap===0){t.mode=vt;break}for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&2&&o===35615){t.wbits===0&&(t.wbits=15),t.check=0,A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0),o=0,c=0,t.mode=vn;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((o&255)<<8)+(o>>8))%31){e.msg="incorrect header check",t.mode=z;break}if((o&15)!==xn){e.msg="unknown compression method",t.mode=z;break}if(o>>>=4,c-=4,w=(o&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=z;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=o&512?Sn:J,o=0,c=0;break;case vn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.flags=o,(t.flags&255)!==xn){e.msg="unknown compression method",t.mode=z;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=z;break}t.head&&(t.head.text=o>>8&1),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0,t.mode=yn;case yn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.time=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,A[2]=o>>>16&255,A[3]=o>>>24&255,t.check=$(t.check,A,4,0)),o=0,c=0,t.mode=mn;case mn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.xflags=o&255,t.head.os=o>>8),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0,t.mode=En;case En:if(t.flags&1024){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length=o,t.head&&(t.head.extra_len=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0}else t.head&&(t.head.extra=null);t.mode=Nn;case Nn:if(t.flags&1024&&(d=t.length,d>s&&(d=s),d&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+d),w)),t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,t.length-=d),t.length))break e;t.length=0,t.mode=kn;case kn:if(t.flags&2048){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=Tn;case Tn:if(t.flags&4096){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.comment+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.comment=null);t.mode=An;case An:if(t.flags&512){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.check&65535)){e.msg="header crc mismatch",t.mode=z;break}o=0,c=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=J;break;case Sn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}e.adler=t.check=jn(o),o=0,c=0,t.mode=ot;case ot:if(t.havedict===0)return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,as;e.adler=t.check=1,t.mode=J;case J:if(n===is||n===tt)break e;case vt:if(t.last){o>>>=c&7,c-=c&7,t.mode=mt;break}for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}switch(t.last=o&1,o>>>=1,c-=1,o&3){case 0:t.mode=On;break;case 1:if(hs(t),t.mode=nt,n===tt){o>>>=2,c-=2;break e}break;case 2:t.mode=zn;break;case 3:e.msg="invalid block type",t.mode=z}o>>>=2,c-=2;break;case On:for(o>>>=c&7,c-=c&7;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if((o&65535)!==(o>>>16^65535)){e.msg="invalid stored block lengths",t.mode=z;break}if(t.length=o&65535,o=0,c=0,t.mode=yt,n===tt)break e;case yt:t.mode=In;case In:if(d=t.length,d){if(d>s&&(d=s),d>f&&(d=f),d===0)break e;r.set(i.subarray(a,a+d),l),s-=d,a+=d,f-=d,l+=d,t.length-=d;break}t.mode=J;break;case zn:for(;c<14;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.nlen=(o&31)+257,o>>>=5,c-=5,t.ndist=(o&31)+1,o>>>=5,c-=5,t.ncode=(o&15)+4,o>>>=4,c-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=z;break}t.have=0,t.mode=Rn;case Rn:for(;t.have<t.ncode;){for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.lens[K[t.have++]]=o&7,o>>>=3,c-=3}for(;t.have<19;)t.lens[K[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,m={bits:t.lenbits},O=Ue(ns,t.lens,0,19,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid code lengths set",t.mode=z;break}t.have=0,t.mode=Cn;case Cn:for(;t.have<t.nlen+t.ndist;){for(;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(x<16)o>>>=g,c-=g,t.lens[t.have++]=x;else{if(x===16){for(T=g+2;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(o>>>=g,c-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=z;break}w=t.lens[t.have-1],d=3+(o&3),o>>>=2,c-=2}else if(x===17){for(T=g+3;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=3+(o&7),o>>>=3,c-=3}else{for(T=g+7;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=11+(o&127),o>>>=7,c-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=z;break}for(;d--;)t.lens[t.have++]=w}}if(t.mode===z)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=z;break}if(t.lenbits=9,m={bits:t.lenbits},O=Ue(Ni,t.lens,0,t.nlen,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid literal/lengths set",t.mode=z;break}if(t.distbits=6,t.distcode=t.distdyn,m={bits:t.distbits},O=Ue(ki,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,m),t.distbits=m.bits,O){e.msg="invalid distances set",t.mode=z;break}if(t.mode=nt,n===tt)break e;case nt:t.mode=it;case it:if(s>=6&&f>=258){e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,Wa(e,u),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,t.mode===J&&(t.back=-1);break}for(t.back=0;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(y&&!(y&240)){for(p=g,k=y,N=x;h=t.lencode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,y=h>>>16&255,x=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,t.length=x,y===0){t.mode=Zn;break}if(y&32){t.back=-1,t.mode=J;break}if(y&64){e.msg="invalid literal/length code",t.mode=z;break}t.extra=y&15,t.mode=Pn;case Pn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=$n;case $n:for(;h=t.distcode[o&(1<<t.distbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(!(y&240)){for(p=g,k=y,N=x;h=t.distcode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,y=h>>>16&255,x=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,y&64){e.msg="invalid distance code",t.mode=z;break}t.offset=x,t.extra=y&15,t.mode=Ln;case Ln:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.offset+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=z;break}t.mode=Fn;case Fn:if(f===0)break e;if(d=u-f,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=z;break}d>t.wnext?(d-=t.wnext,b=t.wsize-d):b=t.wnext-d,d>t.length&&(d=t.length),v=t.window}else v=r,b=l-t.offset,d=t.length;d>f&&(d=f),f-=d,t.length-=d;do r[l++]=v[b++];while(--d);t.length===0&&(t.mode=it);break;case Zn:if(f===0)break e;r[l++]=t.length,f--,t.mode=it;break;case mt:if(t.wrap){for(;c<32;){if(s===0)break e;s--,o|=i[a++]<<c,c+=8}if(u-=f,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?$(t.check,r,u,l-u):Xe(t.check,r,u,l-u)),u=f,t.wrap&4&&(t.flags?o:jn(o))!==t.check){e.msg="incorrect data check",t.mode=z;break}o=0,c=0}t.mode=Mn;case Mn:if(t.wrap&&t.flags){for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=z;break}o=0,c=0}t.mode=Un;case Un:O=rs;break e;case z:O=Ti;break e;case Si:return Ai;case Oi:default:return X}return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,(t.wsize||u!==e.avail_out&&t.mode<z&&(t.mode<mt||n!==wn))&&Pi(e,e.output,e.next_out,u-e.avail_out),_-=e.avail_in,u-=e.avail_out,e.total_in+=_,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?$(t.check,r,u,e.next_out-u):Xe(t.check,r,u,e.next_out-u)),e.data_type=t.bits+(t.last?64:0)+(t.mode===J?128:0)+(t.mode===nt||t.mode===yt?256:0),(_===0&&u===0||n===wn)&&O===ge&&(O=ss),O},ps=e=>{if(we(e))return X;let n=e.state;return n.window&&(n.window=null),e.state=null,ge},gs=(e,n)=>{if(we(e))return X;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,ge):X},bs=(e,n)=>{const t=n.length;let i,r,a;return we(e)||(i=e.state,i.wrap!==0&&i.mode!==ot)?X:i.mode===ot&&(r=1,r=Xe(r,n,t,0),r!==i.check)?Ti:(a=Pi(e,n,t,t),a?(i.mode=Si,Ai):(i.havedict=1,ge))};var ws=zi,xs=Ri,vs=Ii,ys=us,ms=Ci,Es=_s,Ns=ps,ks=gs,Ts=bs,As="pako inflate (from Nodeca project)",D={inflateReset:ws,inflateReset2:xs,inflateResetKeep:vs,inflateInit:ys,inflateInit2:ms,inflate:Es,inflateEnd:Ns,inflateGetHeader:ks,inflateSetDictionary:Ts,inflateInfo:As};function Ss(){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 Os=Ss;const $i=Object.prototype.toString,{Z_NO_FLUSH:Is,Z_FINISH:zs,Z_OK:Ye,Z_STREAM_END:kt,Z_NEED_DICT:Tt,Z_STREAM_ERROR:Rs,Z_DATA_ERROR:Hn,Z_MEM_ERROR:Cs}=be;function Qe(e){this.options=ft.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const 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&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new mi,this.strm.avail_out=0;let t=D.inflateInit2(this.strm,n.windowBits);if(t!==Ye)throw new Error(_e[t]);if(this.header=new Os,D.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ge.string2buf(n.dictionary):$i.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=D.inflateSetDictionary(this.strm,n.dictionary),t!==Ye)))throw new Error(_e[t])}Qe.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,l,s;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?zs:Is,$i.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=D.inflate(t,l),a===Tt&&r&&(a=D.inflateSetDictionary(t,r),a===Ye?a=D.inflate(t,l):a===Hn&&(a=Tt));t.avail_in>0&&a===kt&&t.state.wrap>0&&e[t.next_in]!==0;)D.inflateReset(t),a=D.inflate(t,l);switch(a){case Rs:case Hn:case Tt:case Cs:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===kt))if(this.options.to==="string"){let f=Ge.utf8border(t.output,t.next_out),o=t.next_out-f,c=Ge.buf2string(t.output,f);t.next_out=o,t.avail_out=i-o,o&&t.output.set(t.output.subarray(f,f+o),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ye&&s===0)){if(a===kt)return a=D.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ye&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kt(e,n){const t=new Qe(n);if(t.push(e),t.err)throw t.msg||_e[t.err];return t.result}function Ps(e,n){return n=n||{},n.raw=!0,Kt(e,n)}var $s=Qe,Ls=Kt,Fs=Ps,Zs=Kt,Ms=be,Us={Inflate:$s,inflate:Ls,inflateRaw:Fs,ungzip:Zs,constants:Ms};const{Deflate:js,deflate:Bs,deflateRaw:Hs,gzip:Vs}=Ya,{Inflate:Xs,inflate:Ks,inflateRaw:Gs,ungzip:Ys}=Us;var qs=js,Ws=Bs,Js=Hs,Qs=Vs,Ds=Xs,eo=Ks,to=Gs,no=Ys,io=be,ro={Deflate:qs,deflate:Ws,deflateRaw:Js,gzip:Qs,Inflate:Ds,inflate:eo,inflateRaw:to,ungzip:no,constants:io},Gt={exports:{}},Yt={},dt={};(function(e){const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",t=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i="["+n+"]["+t+"]*",r=new RegExp("^"+i+"$"),a=function(s,f){const o=[];let c=f.exec(s);for(;c;){const _=[];_.startIndex=f.lastIndex-c[0].length;const u=c.length;for(let d=0;d<u;d++)_.push(c[d]);o.push(_),c=f.exec(s)}return o},l=function(s){const f=r.exec(s);return!(f===null||typeof f>"u")};e.isExist=function(s){return typeof s<"u"},e.isEmptyObject=function(s){return Object.keys(s).length===0},e.merge=function(s,f,o){if(f){const c=Object.keys(f),_=c.length;for(let u=0;u<_;u++)o==="strict"?s[c[u]]=[f[c[u]]]:s[c[u]]=f[c[u]]}},e.getValue=function(s){return e.isExist(s)?s:""},e.isName=l,e.getAllMatches=a,e.nameRegexp=i})(dt);const qt=dt,ao={allowBooleanAttributes:!1,unpairedTags:[]};Yt.validate=function(e,n){n=Object.assign({},ao,n);const t=[];let i=!1,r=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]==="<"&&e[a+1]==="?"){if(a+=2,a=Xn(e,a),a.err)return a}else if(e[a]==="<"){let l=a;if(a++,e[a]==="!"){a=Kn(e,a);continue}else{let s=!1;e[a]==="/"&&(s=!0,a++);let f="";for(;a<e.length&&e[a]!==">"&&e[a]!==" "&&e[a]!==" "&&e[a]!==`
|
|
1
|
+
import{b7 as Wi,P as C,bt as Ae,j as E,r as Ee,cn as nn,co as Ji,cp as Qi,B as Dn,c3 as Di,cq as er,cr as tr,cs as ei,bD as nr,ct as ir,aM as rr}from"./index-BowU-Rc8.js";import{r as ar,a as sr}from"./emotion-cache.browser.esm-CRw46sQ7.js";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const or=4,rn=0,an=1,lr=2;function Se(e){let n=e.length;for(;--n>=0;)e[n]=0}const fr=0,ti=1,cr=2,dr=3,ur=258,Ut=29,qe=256,je=qe+1+Ut,Ne=30,jt=19,ni=2*je+1,ce=15,ht=16,hr=7,Bt=256,ii=16,ri=17,ai=18,St=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]),rt=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]),_r=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),si=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pr=512,Q=new Array((je+2)*2);Se(Q);const Ze=new Array(Ne*2);Se(Ze);const Be=new Array(pr);Se(Be);const He=new Array(ur-dr+1);Se(He);const Ht=new Array(Ut);Se(Ht);const at=new Array(Ne);Se(at);function _t(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let oi,li,fi;function pt(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const ci=e=>e<256?Be[e]:Be[256+(e>>>7)],Ve=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},U=(e,n,t)=>{e.bi_valid>ht-t?(e.bi_buf|=n<<e.bi_valid&65535,Ve(e,e.bi_buf),e.bi_buf=n>>ht-e.bi_valid,e.bi_valid+=t-ht):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},Y=(e,n,t)=>{U(e,t[n*2],t[n*2+1])},di=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},gr=e=>{e.bi_valid===16?(Ve(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},br=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,f=n.stat_desc.max_length;let o,c,_,u,d,b,v=0;for(u=0;u<=ce;u++)e.bl_count[u]=0;for(t[e.heap[e.heap_max]*2+1]=0,o=e.heap_max+1;o<ni;o++)c=e.heap[o],u=t[t[c*2+1]*2+1]+1,u>f&&(u=f,v++),t[c*2+1]=u,!(c>i)&&(e.bl_count[u]++,d=0,c>=s&&(d=l[c-s]),b=t[c*2],e.opt_len+=b*(u+d),a&&(e.static_len+=b*(r[c*2+1]+d)));if(v!==0){do{for(u=f-1;e.bl_count[u]===0;)u--;e.bl_count[u]--,e.bl_count[u+1]+=2,e.bl_count[f]--,v-=2}while(v>0);for(u=f;u!==0;u--)for(c=e.bl_count[u];c!==0;)_=e.heap[--o],!(_>i)&&(t[_*2+1]!==u&&(e.opt_len+=(u-t[_*2+1])*t[_*2],t[_*2+1]=u),c--)}},ui=(e,n,t)=>{const i=new Array(ce+1);let r=0,a,l;for(a=1;a<=ce;a++)r=r+t[a-1]<<1,i[a]=r;for(l=0;l<=n;l++){let s=e[l*2+1];s!==0&&(e[l*2]=di(i[s]++,s))}},wr=()=>{let e,n,t,i,r;const a=new Array(ce+1);for(t=0,i=0;i<Ut-1;i++)for(Ht[i]=t,e=0;e<1<<St[i];e++)He[t++]=i;for(He[t-1]=i,r=0,i=0;i<16;i++)for(at[i]=r,e=0;e<1<<rt[i];e++)Be[r++]=i;for(r>>=7;i<Ne;i++)for(at[i]=r<<7,e=0;e<1<<rt[i]-7;e++)Be[256+r++]=i;for(n=0;n<=ce;n++)a[n]=0;for(e=0;e<=143;)Q[e*2+1]=8,e++,a[8]++;for(;e<=255;)Q[e*2+1]=9,e++,a[9]++;for(;e<=279;)Q[e*2+1]=7,e++,a[7]++;for(;e<=287;)Q[e*2+1]=8,e++,a[8]++;for(ui(Q,je+1,a),e=0;e<Ne;e++)Ze[e*2+1]=5,Ze[e*2]=di(e,5);oi=new _t(Q,St,qe+1,je,ce),li=new _t(Ze,rt,0,Ne,ce),fi=new _t(new Array(0),_r,0,jt,hr)},hi=e=>{let n;for(n=0;n<je;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Ne;n++)e.dyn_dtree[n*2]=0;for(n=0;n<jt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Bt*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},_i=e=>{e.bi_valid>8?Ve(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},sn=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},gt=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&sn(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!sn(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},on=(e,n,t)=>{let i,r,a=0,l,s;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?Y(e,r,n):(l=He[r],Y(e,l+qe+1,n),s=St[l],s!==0&&(r-=Ht[l],U(e,r,s)),i--,l=ci(i),Y(e,l,t),s=rt[l],s!==0&&(i-=at[l],U(e,i,s)));while(a<e.sym_next);Y(e,Bt,n)},Ot=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let l,s,f=-1,o;for(e.heap_len=0,e.heap_max=ni,l=0;l<a;l++)t[l*2]!==0?(e.heap[++e.heap_len]=f=l,e.depth[l]=0):t[l*2+1]=0;for(;e.heap_len<2;)o=e.heap[++e.heap_len]=f<2?++f:0,t[o*2]=1,e.depth[o]=0,e.opt_len--,r&&(e.static_len-=i[o*2+1]);for(n.max_code=f,l=e.heap_len>>1;l>=1;l--)gt(e,t,l);o=a;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],gt(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=s,t[o*2]=t[l*2]+t[s*2],e.depth[o]=(e.depth[l]>=e.depth[s]?e.depth[l]:e.depth[s])+1,t[l*2+1]=t[s*2+1]=o,e.heap[1]=o++,gt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],br(e,n),ui(t,f,e.bl_count)},ln=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)&&(s<o?e.bl_tree[a*2]+=s:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[ii*2]++):s<=10?e.bl_tree[ri*2]++:e.bl_tree[ai*2]++,s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4))},fn=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),i=0;i<=t;i++)if(a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)){if(s<o)do Y(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==r&&(Y(e,a,e.bl_tree),s--),Y(e,ii,e.bl_tree),U(e,s-3,2)):s<=10?(Y(e,ri,e.bl_tree),U(e,s-3,3)):(Y(e,ai,e.bl_tree),U(e,s-11,7));s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4)}},xr=e=>{let n;for(ln(e,e.dyn_ltree,e.l_desc.max_code),ln(e,e.dyn_dtree,e.d_desc.max_code),Ot(e,e.bl_desc),n=jt-1;n>=3&&e.bl_tree[si[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},vr=(e,n,t,i)=>{let r;for(U(e,n-257,5),U(e,t-1,5),U(e,i-4,4),r=0;r<i;r++)U(e,e.bl_tree[si[r]*2+1],3);fn(e,e.dyn_ltree,n-1),fn(e,e.dyn_dtree,t-1)},yr=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return rn;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return an;for(t=32;t<qe;t++)if(e.dyn_ltree[t*2]!==0)return an;return rn};let cn=!1;const mr=e=>{cn||(wr(),cn=!0),e.l_desc=new pt(e.dyn_ltree,oi),e.d_desc=new pt(e.dyn_dtree,li),e.bl_desc=new pt(e.bl_tree,fi),e.bi_buf=0,e.bi_valid=0,hi(e)},pi=(e,n,t,i)=>{U(e,(fr<<1)+(i?1:0),3),_i(e),Ve(e,t),Ve(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},Er=e=>{U(e,ti<<1,3),Y(e,Bt,Q),gr(e)},Nr=(e,n,t,i)=>{let r,a,l=0;e.level>0?(e.strm.data_type===lr&&(e.strm.data_type=yr(e)),Ot(e,e.l_desc),Ot(e,e.d_desc),l=xr(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?pi(e,n,t,i):e.strategy===or||a===r?(U(e,(ti<<1)+(i?1:0),3),on(e,Q,Ze)):(U(e,(cr<<1)+(i?1:0),3),vr(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),on(e,e.dyn_ltree,e.dyn_dtree)),hi(e),i&&_i(e)},kr=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(He[t]+qe+1)*2]++,e.dyn_dtree[ci(n)*2]++),e.sym_next===e.sym_end);var Tr=mr,Ar=pi,Sr=Nr,Or=kr,Ir=Er,zr={_tr_init:Tr,_tr_stored_block:Ar,_tr_flush_block:Sr,_tr_tally:Or,_tr_align:Ir};const Rr=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,l=0;for(;t!==0;){l=t>2e3?2e3:t,t-=l;do r=r+n[i++]|0,a=a+r|0;while(--l);r%=65521,a%=65521}return r|a<<16|0};var Xe=Rr;const Cr=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},Pr=new Uint32Array(Cr()),$r=(e,n,t,i)=>{const r=Pr,a=i+t;e^=-1;for(let l=i;l<a;l++)e=e>>>8^r[(e^n[l])&255];return e^-1};var $=$r,_e={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"},be={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};const{_tr_init:Lr,_tr_stored_block:It,_tr_flush_block:Fr,_tr_tally:re,_tr_align:Zr}=zr,{Z_NO_FLUSH:ae,Z_PARTIAL_FLUSH:Mr,Z_FULL_FLUSH:Ur,Z_FINISH:V,Z_BLOCK:dn,Z_OK:L,Z_STREAM_END:un,Z_STREAM_ERROR:q,Z_DATA_ERROR:jr,Z_BUF_ERROR:bt,Z_DEFAULT_COMPRESSION:Br,Z_FILTERED:Hr,Z_HUFFMAN_ONLY:De,Z_RLE:Vr,Z_FIXED:Xr,Z_DEFAULT_STRATEGY:Kr,Z_UNKNOWN:Gr,Z_DEFLATED:lt}=be,Yr=9,qr=15,Wr=8,Jr=29,Qr=256,zt=Qr+1+Jr,Dr=30,ea=19,ta=2*zt+1,na=15,S=3,ie=258,W=ie+S+1,ia=32,ke=42,Vt=57,Rt=69,Ct=73,Pt=91,$t=103,de=113,Le=666,Z=1,Oe=2,pe=3,Ie=4,ra=3,ue=(e,n)=>(e.msg=_e[n],n),hn=e=>e*2-(e>4?9:0),ne=e=>{let n=e.length;for(;--n>=0;)e[n]=0},aa=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let sa=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,se=sa;const B=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},H=(e,n)=>{Fr(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,B(e.strm)},I=(e,n)=>{e.pending_buf[e.pending++]=n},Re=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},Lt=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Xe(e.adler,n,r,t):e.state.wrap===2&&(e.adler=$(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},gi=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,l=e.prev_length,s=e.nice_match;const f=e.strstart>e.w_size-W?e.strstart-(e.w_size-W):0,o=e.window,c=e.w_mask,_=e.prev,u=e.strstart+ie;let d=o[i+l-1],b=o[i+l];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=n,!(o[r+l]!==b||o[r+l-1]!==d||o[r]!==o[i]||o[++r]!==o[i+1])){i+=2,r++;do;while(o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&i<u);if(a=ie-(u-i),i=u-ie,a>l){if(e.match_start=n,l=a,a>=s)break;d=o[i+l-1],b=o[i+l]}}while((n=_[n&c])>f&&--t!==0);return l<=e.lookahead?l:e.lookahead},Te=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-W)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),aa(e),i+=n),e.strm.avail_in===0)break;if(t=Lt(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=S)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=se(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=se(e,e.ins_h,e.window[r+S-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<W&&e.strm.avail_in!==0)},bi=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,l=0,s=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==V||n===ae||i!==r+e.strm.avail_in)))break;l=n===V&&i===r+e.strm.avail_in?1:0,It(e,0,0,l),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,B(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&(Lt(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(l===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),l?Ie:n!==ae&&n!==V&&e.strm.avail_in===0&&e.strstart===e.block_start?Oe:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(Lt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===V)&&n!==ae&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,l=n===V&&e.strm.avail_in===0&&i===r?1:0,It(e,e.block_start,i,l),e.block_start+=i,B(e.strm)),l?pe:Z)},wt=(e,n)=>{let t,i;for(;;){if(e.lookahead<W){if(Te(e),e.lookahead<W&&n===ae)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-W&&(e.match_length=gi(e,t)),e.match_length>=S)if(i=re(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){e.match_length--;do e.strstart++,e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=se(e,e.ins_h,e.window[e.strstart+1]);else i=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=e.strstart<S-1?e.strstart:S-1,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},ye=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<W){if(Te(e),e.lookahead<W&&n===ae)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-W&&(e.match_length=gi(e,t),e.match_length<=5&&(e.strategy===Hr||e.match_length===S&&e.strstart-e.match_start>4096)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-S,i=re(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=se(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=S-1,e.strstart++,i&&(H(e,!1),e.strm.avail_out===0))return Z}else if(e.match_available){if(i=re(e,0,e.window[e.strstart-1]),i&&H(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Z}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=re(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},oa=(e,n)=>{let t,i,r,a;const l=e.window;for(;;){if(e.lookahead<=ie){if(Te(e),e.lookahead<=ie&&n===ae)return Z;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=S&&e.strstart>0&&(r=e.strstart-1,i=l[r],i===l[++r]&&i===l[++r]&&i===l[++r])){a=e.strstart+ie;do;while(i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&r<a);e.match_length=ie-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(t=re(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe},la=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(Te(e),e.lookahead===0)){if(n===ae)return Z;break}if(e.match_length=0,t=re(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(H(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===V?(H(e,!0),e.strm.avail_out===0?pe:Ie):e.sym_next&&(H(e,!1),e.strm.avail_out===0)?Z:Oe};function G(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const Fe=[new G(0,0,0,0,bi),new G(4,4,8,4,wt),new G(4,5,16,8,wt),new G(4,6,32,32,wt),new G(4,4,16,16,ye),new G(8,16,32,32,ye),new G(8,16,128,128,ye),new G(8,32,128,256,ye),new G(32,128,258,1024,ye),new G(32,258,258,4096,ye)],fa=e=>{e.window_size=2*e.w_size,ne(e.head),e.max_lazy_match=Fe[e.level].max_lazy,e.good_match=Fe[e.level].good_length,e.nice_match=Fe[e.level].nice_length,e.max_chain_length=Fe[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0};function ca(){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=lt,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(ta*2),this.dyn_dtree=new Uint16Array((2*Dr+1)*2),this.bl_tree=new Uint16Array((2*ea+1)*2),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(na+1),this.heap=new Uint16Array(2*zt+1),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*zt+1),ne(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}const We=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==ke&&n.status!==Vt&&n.status!==Rt&&n.status!==Ct&&n.status!==Pt&&n.status!==$t&&n.status!==de&&n.status!==Le?1:0},wi=e=>{if(We(e))return ue(e,q);e.total_in=e.total_out=0,e.data_type=Gr;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Vt:n.wrap?ke:de,e.adler=n.wrap===2?0:1,n.last_flush=-2,Lr(n),L},xi=e=>{const n=wi(e);return n===L&&fa(e.state),n},da=(e,n)=>We(e)||e.state.wrap!==2?q:(e.state.gzhead=n,L),vi=(e,n,t,i,r,a)=>{if(!e)return q;let l=1;if(n===Br&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),r<1||r>Yr||t!==lt||i<8||i>15||n<0||n>9||a<0||a>Xr||i===8&&l!==1)return ue(e,q);i===8&&(i=9);const s=new ca;return e.state=s,s.strm=e,s.status=ke,s.wrap=l,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+S-1)/S),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,xi(e)},ua=(e,n)=>vi(e,n,lt,qr,Wr,Kr),ha=(e,n)=>{if(We(e)||n>dn||n<0)return e?ue(e,q):q;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Le&&n!==V)return ue(e,e.avail_out===0?bt:q);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(B(e),e.avail_out===0)return t.last_flush=-1,L}else if(e.avail_in===0&&hn(n)<=hn(i)&&n!==V)return ue(e,bt);if(t.status===Le&&e.avail_in!==0)return ue(e,bt);if(t.status===ke&&t.wrap===0&&(t.status=de),t.status===ke){let r=lt+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=De||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=ia),r+=31-r%31,Re(t,r),t.strstart!==0&&(Re(t,e.adler>>>16),Re(t,e.adler&65535)),e.adler=1,t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(t.status===Vt){if(e.adler=0,I(t,31),I(t,139),I(t,8),t.gzhead)I(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),I(t,t.gzhead.time&255),I(t,t.gzhead.time>>8&255),I(t,t.gzhead.time>>16&255),I(t,t.gzhead.time>>24&255),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(I(t,t.gzhead.extra.length&255),I(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=$(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Rt;else if(I(t,0),I(t,0),I(t,0),I(t,0),I(t,0),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,ra),t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(t.status===Rt){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,B(e),t.pending!==0)return t.last_flush=-1,L;r=0,a-=s}let l=new Uint8Array(t.gzhead.extra);t.pending_buf.set(l.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Ct}if(t.status===Ct){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),B(e),t.pending!==0)return t.last_flush=-1,L;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Pt}if(t.status===Pt){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r)),B(e),t.pending!==0)return t.last_flush=-1,L;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=$(e.adler,t.pending_buf,t.pending-r,r))}t.status=$t}if(t.status===$t){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(B(e),t.pending!==0))return t.last_flush=-1,L;I(t,e.adler&255),I(t,e.adler>>8&255),e.adler=0}if(t.status=de,B(e),t.pending!==0)return t.last_flush=-1,L}if(e.avail_in!==0||t.lookahead!==0||n!==ae&&t.status!==Le){let r=t.level===0?bi(t,n):t.strategy===De?la(t,n):t.strategy===Vr?oa(t,n):Fe[t.level].func(t,n);if((r===pe||r===Ie)&&(t.status=Le),r===Z||r===pe)return e.avail_out===0&&(t.last_flush=-1),L;if(r===Oe&&(n===Mr?Zr(t):n!==dn&&(It(t,0,0,!1),n===Ur&&(ne(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),B(e),e.avail_out===0))return t.last_flush=-1,L}return n!==V?L:t.wrap<=0?un:(t.wrap===2?(I(t,e.adler&255),I(t,e.adler>>8&255),I(t,e.adler>>16&255),I(t,e.adler>>24&255),I(t,e.total_in&255),I(t,e.total_in>>8&255),I(t,e.total_in>>16&255),I(t,e.total_in>>24&255)):(Re(t,e.adler>>>16),Re(t,e.adler&65535)),B(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?L:un)},_a=e=>{if(We(e))return q;const n=e.state.status;return e.state=null,n===de?ue(e,jr):L},pa=(e,n)=>{let t=n.length;if(We(e))return q;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==ke||i.lookahead)return q;if(r===1&&(e.adler=Xe(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(ne(i.head),i.strstart=0,i.block_start=0,i.insert=0);let f=new Uint8Array(i.w_size);f.set(n.subarray(t-i.w_size,t),0),n=f,t=i.w_size}const a=e.avail_in,l=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,Te(i);i.lookahead>=S;){let f=i.strstart,o=i.lookahead-(S-1);do i.ins_h=se(i,i.ins_h,i.window[f+S-1]),i.prev[f&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=f,f++;while(--o);i.strstart=f,i.lookahead=S-1,Te(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=S-1,i.match_available=0,e.next_in=l,e.input=s,e.avail_in=a,i.wrap=r,L};var ga=ua,ba=vi,wa=xi,xa=wi,va=da,ya=ha,ma=_a,Ea=pa,Na="pako deflate (from Nodeca project)",Me={deflateInit:ga,deflateInit2:ba,deflateReset:wa,deflateResetKeep:xa,deflateSetHeader:va,deflate:ya,deflateEnd:ma,deflateSetDictionary:Ea,deflateInfo:Na};const ka=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Ta=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)ka(t,i)&&(e[i]=t[i])}}return e},Aa=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let l=e[i];t.set(l,r),r+=l.length}return t},ft={assign:Ta,flattenChunks:Aa};let yi=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{yi=!1}const Ke=new Uint8Array(256);for(let e=0;e<256;e++)Ke[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ke[254]=Ke[254]=1;var Sa=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,l=e.length,s=0;for(r=0;r<l;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,r=0;a<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Oa=(e,n)=>{if(n<65534&&e.subarray&&yi)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var Ia=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let l=e[i++];if(l<128){a[r++]=l;continue}let s=Ke[l];if(s>4){a[r++]=65533,i+=s-1;continue}for(l&=s===2?31:s===3?15:7;s>1&&i<t;)l=l<<6|e[i++]&63,s--;if(s>1){a[r++]=65533;continue}l<65536?a[r++]=l:(l-=65536,a[r++]=55296|l>>10&1023,a[r++]=56320|l&1023)}return Oa(a,r)},za=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Ke[e[t]]>n?t:n},Ge={string2buf:Sa,buf2string:Ia,utf8border:za};function Ra(){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 mi=Ra;const Ei=Object.prototype.toString,{Z_NO_FLUSH:Ca,Z_SYNC_FLUSH:Pa,Z_FULL_FLUSH:$a,Z_FINISH:La,Z_OK:st,Z_STREAM_END:Fa,Z_DEFAULT_COMPRESSION:Za,Z_DEFAULT_STRATEGY:Ma,Z_DEFLATED:Ua}=be;function Je(e){this.options=ft.assign({level:Za,method:Ua,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ma},e||{});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 mi,this.strm.avail_out=0;let t=Me.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==st)throw new Error(_e[t]);if(n.header&&Me.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ge.string2buf(n.dictionary):Ei.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=Me.deflateSetDictionary(this.strm,i),t!==st)throw new Error(_e[t]);this._dict_set=!0}}Je.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?La:Ca,typeof e=="string"?t.input=Ge.string2buf(e):Ei.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===Pa||a===$a)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=Me.deflate(t,a),r===Fa)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=Me.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===st;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Je.prototype.onData=function(e){this.chunks.push(e)};Je.prototype.onEnd=function(e){e===st&&(this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xt(e,n){const t=new Je(n);if(t.push(e,!0),t.err)throw t.msg||_e[t.err];return t.result}function ja(e,n){return n=n||{},n.raw=!0,Xt(e,n)}function Ba(e,n){return n=n||{},n.gzip=!0,Xt(e,n)}var Ha=Je,Va=Xt,Xa=ja,Ka=Ba,Ga=be,Ya={Deflate:Ha,deflate:Va,deflateRaw:Xa,gzip:Ka,constants:Ga};const et=16209,qa=16191;var Wa=function(n,t){let i,r,a,l,s,f,o,c,_,u,d,b,v,h,g,y,x,p,k,N,w,O,A,m;const T=n.state;i=n.next_in,A=n.input,r=i+(n.avail_in-5),a=n.next_out,m=n.output,l=a-(t-n.avail_out),s=a+(n.avail_out-257),f=T.dmax,o=T.wsize,c=T.whave,_=T.wnext,u=T.window,d=T.hold,b=T.bits,v=T.lencode,h=T.distcode,g=(1<<T.lenbits)-1,y=(1<<T.distbits)-1;e:do{b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),x=v[d&g];t:for(;;){if(p=x>>>24,d>>>=p,b-=p,p=x>>>16&255,p===0)m[a++]=x&65535;else if(p&16){k=x&65535,p&=15,p&&(b<p&&(d+=A[i++]<<b,b+=8),k+=d&(1<<p)-1,d>>>=p,b-=p),b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),x=h[d&y];n:for(;;){if(p=x>>>24,d>>>=p,b-=p,p=x>>>16&255,p&16){if(N=x&65535,p&=15,b<p&&(d+=A[i++]<<b,b+=8,b<p&&(d+=A[i++]<<b,b+=8)),N+=d&(1<<p)-1,N>f){n.msg="invalid distance too far back",T.mode=et;break e}if(d>>>=p,b-=p,p=a-l,N>p){if(p=N-p,p>c&&T.sane){n.msg="invalid distance too far back",T.mode=et;break e}if(w=0,O=u,_===0){if(w+=o-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}else if(_<p){if(w+=o+_-p,p-=_,p<k){k-=p;do m[a++]=u[w++];while(--p);if(w=0,_<k){p=_,k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}}else if(w+=_-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}for(;k>2;)m[a++]=O[w++],m[a++]=O[w++],m[a++]=O[w++],k-=3;k&&(m[a++]=O[w++],k>1&&(m[a++]=O[w++]))}else{w=a-N;do m[a++]=m[w++],m[a++]=m[w++],m[a++]=m[w++],k-=3;while(k>2);k&&(m[a++]=m[w++],k>1&&(m[a++]=m[w++]))}}else if(p&64){n.msg="invalid distance code",T.mode=et;break e}else{x=h[(x&65535)+(d&(1<<p)-1)];continue n}break}}else if(p&64)if(p&32){T.mode=qa;break e}else{n.msg="invalid literal/length code",T.mode=et;break e}else{x=v[(x&65535)+(d&(1<<p)-1)];continue t}break}}while(i<r&&a<s);k=b>>3,i-=k,b-=k<<3,d&=(1<<b)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<s?257+(s-a):257-(a-s),T.hold=d,T.bits=b};const me=15,_n=852,pn=592,gn=0,xt=1,bn=2,Ja=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]),Qa=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]),Da=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]),es=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]),ts=(e,n,t,i,r,a,l,s)=>{const f=s.bits;let o=0,c=0,_=0,u=0,d=0,b=0,v=0,h=0,g=0,y=0,x,p,k,N,w,O=null,A;const m=new Uint16Array(me+1),T=new Uint16Array(me+1);let K=null,ze,le,xe;for(o=0;o<=me;o++)m[o]=0;for(c=0;c<i;c++)m[n[t+c]]++;for(d=f,u=me;u>=1&&m[u]===0;u--);if(d>u&&(d=u),u===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(_=1;_<u&&m[_]===0;_++);for(d<_&&(d=_),h=1,o=1;o<=me;o++)if(h<<=1,h-=m[o],h<0)return-1;if(h>0&&(e===gn||u!==1))return-1;for(T[1]=0,o=1;o<me;o++)T[o+1]=T[o]+m[o];for(c=0;c<i;c++)n[t+c]!==0&&(l[T[n[t+c]]++]=c);if(e===gn?(O=K=l,A=20):e===xt?(O=Ja,K=Qa,A=257):(O=Da,K=es,A=0),y=0,c=0,o=_,w=a,b=d,v=0,k=-1,g=1<<d,N=g-1,e===xt&&g>_n||e===bn&&g>pn)return 1;for(;;){ze=o-v,l[c]+1<A?(le=0,xe=l[c]):l[c]>=A?(le=K[l[c]-A],xe=O[l[c]-A]):(le=96,xe=0),x=1<<o-v,p=1<<b,_=p;do p-=x,r[w+(y>>v)+p]=ze<<24|le<<16|xe|0;while(p!==0);for(x=1<<o-1;y&x;)x>>=1;if(x!==0?(y&=x-1,y+=x):y=0,c++,--m[o]===0){if(o===u)break;o=n[t+l[c]]}if(o>d&&(y&N)!==k){for(v===0&&(v=d),w+=_,b=o-v,h=1<<b;b+v<u&&(h-=m[b+v],!(h<=0));)b++,h<<=1;if(g+=1<<b,e===xt&&g>_n||e===bn&&g>pn)return 1;k=y&N,r[k]=d<<24|b<<16|w-a|0}}return y!==0&&(r[w+y]=o-v<<24|64<<16|0),s.bits=d,0};var Ue=ts;const ns=0,Ni=1,ki=2,{Z_FINISH:wn,Z_BLOCK:is,Z_TREES:tt,Z_OK:ge,Z_STREAM_END:rs,Z_NEED_DICT:as,Z_STREAM_ERROR:X,Z_DATA_ERROR:Ti,Z_MEM_ERROR:Ai,Z_BUF_ERROR:ss,Z_DEFLATED:xn}=be,ct=16180,vn=16181,yn=16182,mn=16183,En=16184,Nn=16185,kn=16186,Tn=16187,An=16188,Sn=16189,ot=16190,J=16191,vt=16192,On=16193,yt=16194,In=16195,zn=16196,Rn=16197,Cn=16198,nt=16199,it=16200,Pn=16201,$n=16202,Ln=16203,Fn=16204,Zn=16205,mt=16206,Mn=16207,Un=16208,z=16209,Si=16210,Oi=16211,os=852,ls=592,fs=15,cs=fs,jn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function ds(){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}const we=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<ct||n.mode>Oi?1:0},Ii=e=>{if(we(e))return X;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=ct,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(os),n.distcode=n.distdyn=new Int32Array(ls),n.sane=1,n.back=-1,ge},zi=e=>{if(we(e))return X;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Ii(e)},Ri=(e,n)=>{let t;if(we(e))return X;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?X:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,zi(e))},Ci=(e,n)=>{if(!e)return X;const t=new ds;e.state=t,t.strm=e,t.window=null,t.mode=ct;const i=Ri(e,n);return i!==ge&&(e.state=null),i},us=e=>Ci(e,cs);let Bn=!0,Et,Nt;const hs=e=>{if(Bn){Et=new Int32Array(512),Nt=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(Ue(Ni,e.lens,0,288,Et,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;Ue(ki,e.lens,0,32,Nt,0,e.work,{bits:5}),Bn=!1}e.lencode=Et,e.lenbits=9,e.distcode=Nt,e.distbits=5},Pi=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},_s=(e,n)=>{let t,i,r,a,l,s,f,o,c,_,u,d,b,v,h=0,g,y,x,p,k,N,w,O;const A=new Uint8Array(4);let m,T;const K=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(we(e)||!e.output||!e.input&&e.avail_in!==0)return X;t=e.state,t.mode===J&&(t.mode=vt),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,_=s,u=f,O=ge;e:for(;;)switch(t.mode){case ct:if(t.wrap===0){t.mode=vt;break}for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&2&&o===35615){t.wbits===0&&(t.wbits=15),t.check=0,A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0),o=0,c=0,t.mode=vn;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((o&255)<<8)+(o>>8))%31){e.msg="incorrect header check",t.mode=z;break}if((o&15)!==xn){e.msg="unknown compression method",t.mode=z;break}if(o>>>=4,c-=4,w=(o&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=z;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=o&512?Sn:J,o=0,c=0;break;case vn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.flags=o,(t.flags&255)!==xn){e.msg="unknown compression method",t.mode=z;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=z;break}t.head&&(t.head.text=o>>8&1),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0,t.mode=yn;case yn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.time=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,A[2]=o>>>16&255,A[3]=o>>>24&255,t.check=$(t.check,A,4,0)),o=0,c=0,t.mode=mn;case mn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.xflags=o&255,t.head.os=o>>8),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0,t.mode=En;case En:if(t.flags&1024){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length=o,t.head&&(t.head.extra_len=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=$(t.check,A,2,0)),o=0,c=0}else t.head&&(t.head.extra=null);t.mode=Nn;case Nn:if(t.flags&1024&&(d=t.length,d>s&&(d=s),d&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+d),w)),t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,t.length-=d),t.length))break e;t.length=0,t.mode=kn;case kn:if(t.flags&2048){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=Tn;case Tn:if(t.flags&4096){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.comment+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=$(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.comment=null);t.mode=An;case An:if(t.flags&512){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.check&65535)){e.msg="header crc mismatch",t.mode=z;break}o=0,c=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=J;break;case Sn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}e.adler=t.check=jn(o),o=0,c=0,t.mode=ot;case ot:if(t.havedict===0)return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,as;e.adler=t.check=1,t.mode=J;case J:if(n===is||n===tt)break e;case vt:if(t.last){o>>>=c&7,c-=c&7,t.mode=mt;break}for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}switch(t.last=o&1,o>>>=1,c-=1,o&3){case 0:t.mode=On;break;case 1:if(hs(t),t.mode=nt,n===tt){o>>>=2,c-=2;break e}break;case 2:t.mode=zn;break;case 3:e.msg="invalid block type",t.mode=z}o>>>=2,c-=2;break;case On:for(o>>>=c&7,c-=c&7;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if((o&65535)!==(o>>>16^65535)){e.msg="invalid stored block lengths",t.mode=z;break}if(t.length=o&65535,o=0,c=0,t.mode=yt,n===tt)break e;case yt:t.mode=In;case In:if(d=t.length,d){if(d>s&&(d=s),d>f&&(d=f),d===0)break e;r.set(i.subarray(a,a+d),l),s-=d,a+=d,f-=d,l+=d,t.length-=d;break}t.mode=J;break;case zn:for(;c<14;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.nlen=(o&31)+257,o>>>=5,c-=5,t.ndist=(o&31)+1,o>>>=5,c-=5,t.ncode=(o&15)+4,o>>>=4,c-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=z;break}t.have=0,t.mode=Rn;case Rn:for(;t.have<t.ncode;){for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.lens[K[t.have++]]=o&7,o>>>=3,c-=3}for(;t.have<19;)t.lens[K[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,m={bits:t.lenbits},O=Ue(ns,t.lens,0,19,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid code lengths set",t.mode=z;break}t.have=0,t.mode=Cn;case Cn:for(;t.have<t.nlen+t.ndist;){for(;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(x<16)o>>>=g,c-=g,t.lens[t.have++]=x;else{if(x===16){for(T=g+2;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(o>>>=g,c-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=z;break}w=t.lens[t.have-1],d=3+(o&3),o>>>=2,c-=2}else if(x===17){for(T=g+3;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=3+(o&7),o>>>=3,c-=3}else{for(T=g+7;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=11+(o&127),o>>>=7,c-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=z;break}for(;d--;)t.lens[t.have++]=w}}if(t.mode===z)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=z;break}if(t.lenbits=9,m={bits:t.lenbits},O=Ue(Ni,t.lens,0,t.nlen,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid literal/lengths set",t.mode=z;break}if(t.distbits=6,t.distcode=t.distdyn,m={bits:t.distbits},O=Ue(ki,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,m),t.distbits=m.bits,O){e.msg="invalid distances set",t.mode=z;break}if(t.mode=nt,n===tt)break e;case nt:t.mode=it;case it:if(s>=6&&f>=258){e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,Wa(e,u),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,t.mode===J&&(t.back=-1);break}for(t.back=0;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(y&&!(y&240)){for(p=g,k=y,N=x;h=t.lencode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,y=h>>>16&255,x=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,t.length=x,y===0){t.mode=Zn;break}if(y&32){t.back=-1,t.mode=J;break}if(y&64){e.msg="invalid literal/length code",t.mode=z;break}t.extra=y&15,t.mode=Pn;case Pn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=$n;case $n:for(;h=t.distcode[o&(1<<t.distbits)-1],g=h>>>24,y=h>>>16&255,x=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(!(y&240)){for(p=g,k=y,N=x;h=t.distcode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,y=h>>>16&255,x=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,y&64){e.msg="invalid distance code",t.mode=z;break}t.offset=x,t.extra=y&15,t.mode=Ln;case Ln:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.offset+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=z;break}t.mode=Fn;case Fn:if(f===0)break e;if(d=u-f,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=z;break}d>t.wnext?(d-=t.wnext,b=t.wsize-d):b=t.wnext-d,d>t.length&&(d=t.length),v=t.window}else v=r,b=l-t.offset,d=t.length;d>f&&(d=f),f-=d,t.length-=d;do r[l++]=v[b++];while(--d);t.length===0&&(t.mode=it);break;case Zn:if(f===0)break e;r[l++]=t.length,f--,t.mode=it;break;case mt:if(t.wrap){for(;c<32;){if(s===0)break e;s--,o|=i[a++]<<c,c+=8}if(u-=f,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?$(t.check,r,u,l-u):Xe(t.check,r,u,l-u)),u=f,t.wrap&4&&(t.flags?o:jn(o))!==t.check){e.msg="incorrect data check",t.mode=z;break}o=0,c=0}t.mode=Mn;case Mn:if(t.wrap&&t.flags){for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=z;break}o=0,c=0}t.mode=Un;case Un:O=rs;break e;case z:O=Ti;break e;case Si:return Ai;case Oi:default:return X}return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,(t.wsize||u!==e.avail_out&&t.mode<z&&(t.mode<mt||n!==wn))&&Pi(e,e.output,e.next_out,u-e.avail_out),_-=e.avail_in,u-=e.avail_out,e.total_in+=_,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?$(t.check,r,u,e.next_out-u):Xe(t.check,r,u,e.next_out-u)),e.data_type=t.bits+(t.last?64:0)+(t.mode===J?128:0)+(t.mode===nt||t.mode===yt?256:0),(_===0&&u===0||n===wn)&&O===ge&&(O=ss),O},ps=e=>{if(we(e))return X;let n=e.state;return n.window&&(n.window=null),e.state=null,ge},gs=(e,n)=>{if(we(e))return X;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,ge):X},bs=(e,n)=>{const t=n.length;let i,r,a;return we(e)||(i=e.state,i.wrap!==0&&i.mode!==ot)?X:i.mode===ot&&(r=1,r=Xe(r,n,t,0),r!==i.check)?Ti:(a=Pi(e,n,t,t),a?(i.mode=Si,Ai):(i.havedict=1,ge))};var ws=zi,xs=Ri,vs=Ii,ys=us,ms=Ci,Es=_s,Ns=ps,ks=gs,Ts=bs,As="pako inflate (from Nodeca project)",D={inflateReset:ws,inflateReset2:xs,inflateResetKeep:vs,inflateInit:ys,inflateInit2:ms,inflate:Es,inflateEnd:Ns,inflateGetHeader:ks,inflateSetDictionary:Ts,inflateInfo:As};function Ss(){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 Os=Ss;const $i=Object.prototype.toString,{Z_NO_FLUSH:Is,Z_FINISH:zs,Z_OK:Ye,Z_STREAM_END:kt,Z_NEED_DICT:Tt,Z_STREAM_ERROR:Rs,Z_DATA_ERROR:Hn,Z_MEM_ERROR:Cs}=be;function Qe(e){this.options=ft.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const 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&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new mi,this.strm.avail_out=0;let t=D.inflateInit2(this.strm,n.windowBits);if(t!==Ye)throw new Error(_e[t]);if(this.header=new Os,D.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ge.string2buf(n.dictionary):$i.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=D.inflateSetDictionary(this.strm,n.dictionary),t!==Ye)))throw new Error(_e[t])}Qe.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,l,s;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?zs:Is,$i.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=D.inflate(t,l),a===Tt&&r&&(a=D.inflateSetDictionary(t,r),a===Ye?a=D.inflate(t,l):a===Hn&&(a=Tt));t.avail_in>0&&a===kt&&t.state.wrap>0&&e[t.next_in]!==0;)D.inflateReset(t),a=D.inflate(t,l);switch(a){case Rs:case Hn:case Tt:case Cs:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===kt))if(this.options.to==="string"){let f=Ge.utf8border(t.output,t.next_out),o=t.next_out-f,c=Ge.buf2string(t.output,f);t.next_out=o,t.avail_out=i-o,o&&t.output.set(t.output.subarray(f,f+o),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ye&&s===0)){if(a===kt)return a=D.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ye&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kt(e,n){const t=new Qe(n);if(t.push(e),t.err)throw t.msg||_e[t.err];return t.result}function Ps(e,n){return n=n||{},n.raw=!0,Kt(e,n)}var $s=Qe,Ls=Kt,Fs=Ps,Zs=Kt,Ms=be,Us={Inflate:$s,inflate:Ls,inflateRaw:Fs,ungzip:Zs,constants:Ms};const{Deflate:js,deflate:Bs,deflateRaw:Hs,gzip:Vs}=Ya,{Inflate:Xs,inflate:Ks,inflateRaw:Gs,ungzip:Ys}=Us;var qs=js,Ws=Bs,Js=Hs,Qs=Vs,Ds=Xs,eo=Ks,to=Gs,no=Ys,io=be,ro={Deflate:qs,deflate:Ws,deflateRaw:Js,gzip:Qs,Inflate:Ds,inflate:eo,inflateRaw:to,ungzip:no,constants:io},Gt={exports:{}},Yt={},dt={};(function(e){const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",t=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i="["+n+"]["+t+"]*",r=new RegExp("^"+i+"$"),a=function(s,f){const o=[];let c=f.exec(s);for(;c;){const _=[];_.startIndex=f.lastIndex-c[0].length;const u=c.length;for(let d=0;d<u;d++)_.push(c[d]);o.push(_),c=f.exec(s)}return o},l=function(s){const f=r.exec(s);return!(f===null||typeof f>"u")};e.isExist=function(s){return typeof s<"u"},e.isEmptyObject=function(s){return Object.keys(s).length===0},e.merge=function(s,f,o){if(f){const c=Object.keys(f),_=c.length;for(let u=0;u<_;u++)o==="strict"?s[c[u]]=[f[c[u]]]:s[c[u]]=f[c[u]]}},e.getValue=function(s){return e.isExist(s)?s:""},e.isName=l,e.getAllMatches=a,e.nameRegexp=i})(dt);const qt=dt,ao={allowBooleanAttributes:!1,unpairedTags:[]};Yt.validate=function(e,n){n=Object.assign({},ao,n);const t=[];let i=!1,r=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]==="<"&&e[a+1]==="?"){if(a+=2,a=Xn(e,a),a.err)return a}else if(e[a]==="<"){let l=a;if(a++,e[a]==="!"){a=Kn(e,a);continue}else{let s=!1;e[a]==="/"&&(s=!0,a++);let f="";for(;a<e.length&&e[a]!==">"&&e[a]!==" "&&e[a]!==" "&&e[a]!==`
|
|
2
2
|
`&&e[a]!=="\r";a++)f+=e[a];if(f=f.trim(),f[f.length-1]==="/"&&(f=f.substring(0,f.length-1),a--),!_o(f)){let _;return f.trim().length===0?_="Invalid space after '<'.":_="Tag '"+f+"' is an invalid name.",P("InvalidTag",_,F(e,a))}const o=lo(e,a);if(o===!1)return P("InvalidAttr","Attributes for '"+f+"' have open quote.",F(e,a));let c=o.value;if(a=o.index,c[c.length-1]==="/"){const _=a-c.length;c=c.substring(0,c.length-1);const u=Gn(c,n);if(u===!0)i=!0;else return P(u.err.code,u.err.msg,F(e,_+u.err.line))}else if(s)if(o.tagClosed){if(c.trim().length>0)return P("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",F(e,l));if(t.length===0)return P("InvalidTag","Closing tag '"+f+"' has not been opened.",F(e,l));{const _=t.pop();if(f!==_.tagName){let u=F(e,_.tagStartPos);return P("InvalidTag","Expected closing tag '"+_.tagName+"' (opened in line "+u.line+", col "+u.col+") instead of closing tag '"+f+"'.",F(e,l))}t.length==0&&(r=!0)}}else return P("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",F(e,a));else{const _=Gn(c,n);if(_!==!0)return P(_.err.code,_.err.msg,F(e,a-c.length+_.err.line));if(r===!0)return P("InvalidXml","Multiple possible root nodes found.",F(e,a));n.unpairedTags.indexOf(f)!==-1||t.push({tagName:f,tagStartPos:l}),i=!0}for(a++;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="!"){a++,a=Kn(e,a);continue}else if(e[a+1]==="?"){if(a=Xn(e,++a),a.err)return a}else break;else if(e[a]==="&"){const _=uo(e,a);if(_==-1)return P("InvalidChar","char '&' is not expected.",F(e,a));a=_}else if(r===!0&&!Vn(e[a]))return P("InvalidXml","Extra text at the end",F(e,a));e[a]==="<"&&a--}}else{if(Vn(e[a]))continue;return P("InvalidChar","char '"+e[a]+"' is not expected.",F(e,a))}if(i){if(t.length==1)return P("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",F(e,t[0].tagStartPos));if(t.length>0)return P("InvalidXml","Invalid '"+JSON.stringify(t.map(a=>a.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return P("InvalidXml","Start tag expected.",1);return!0};function Vn(e){return e===" "||e===" "||e===`
|
|
3
3
|
`||e==="\r"}function Xn(e,n){const t=n;for(;n<e.length;n++)if(e[n]=="?"||e[n]==" "){const i=e.substr(t,n-t);if(n>5&&i==="xml")return P("InvalidXml","XML declaration allowed only at the start of the document.",F(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function Kn(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n<e.length;n++)if(e[n]==="-"&&e[n+1]==="-"&&e[n+2]===">"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let t=1;for(n+=8;n<e.length;n++)if(e[n]==="<")t++;else if(e[n]===">"&&(t--,t===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n<e.length;n++)if(e[n]==="]"&&e[n+1]==="]"&&e[n+2]===">"){n+=2;break}}return n}const so='"',oo="'";function lo(e,n){let t="",i="",r=!1;for(;n<e.length;n++){if(e[n]===so||e[n]===oo)i===""?i=e[n]:i!==e[n]||(i="");else if(e[n]===">"&&i===""){r=!0;break}t+=e[n]}return i!==""?!1:{value:t,index:n,tagClosed:r}}const fo=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Gn(e,n){const t=qt.getAllMatches(e,fo),i={};for(let r=0;r<t.length;r++){if(t[r][1].length===0)return P("InvalidAttr","Attribute '"+t[r][2]+"' has no space in starting.",Ce(t[r]));if(t[r][3]!==void 0&&t[r][4]===void 0)return P("InvalidAttr","Attribute '"+t[r][2]+"' is without value.",Ce(t[r]));if(t[r][3]===void 0&&!n.allowBooleanAttributes)return P("InvalidAttr","boolean attribute '"+t[r][2]+"' is not allowed.",Ce(t[r]));const a=t[r][2];if(!ho(a))return P("InvalidAttr","Attribute '"+a+"' is an invalid name.",Ce(t[r]));if(!i.hasOwnProperty(a))i[a]=1;else return P("InvalidAttr","Attribute '"+a+"' is repeated.",Ce(t[r]))}return!0}function co(e,n){let t=/\d/;for(e[n]==="x"&&(n++,t=/[\da-fA-F]/);n<e.length;n++){if(e[n]===";")return n;if(!e[n].match(t))break}return-1}function uo(e,n){if(n++,e[n]===";")return-1;if(e[n]==="#")return n++,co(e,n);let t=0;for(;n<e.length;n++,t++)if(!(e[n].match(/\w/)&&t<20)){if(e[n]===";")break;return-1}return n}function P(e,n,t){return{err:{code:e,msg:n,line:t.line||t,col:t.col}}}function ho(e){return qt.isName(e)}function _o(e){return qt.isName(e)}function F(e,n){const t=e.substring(0,n).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}}function Ce(e){return e.startIndex+e[1].length}var Wt={};const Li={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,t){return e}},po=function(e){return Object.assign({},Li,e)};Wt.buildOptions=po;Wt.defaultOptions=Li;class go{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,t){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:t})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}}var bo=go;const wo=dt;function xo(e,n){const t={};if(e[n+3]==="O"&&e[n+4]==="C"&&e[n+5]==="T"&&e[n+6]==="Y"&&e[n+7]==="P"&&e[n+8]==="E"){n=n+9;let i=1,r=!1,a=!1,l="";for(;n<e.length;n++)if(e[n]==="<"&&!a){if(r&&mo(e,n))n+=7,[entityName,val,n]=vo(e,n+1),val.indexOf("&")===-1&&(t[To(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(r&&Eo(e,n))n+=8;else if(r&&No(e,n))n+=8;else if(r&&ko(e,n))n+=9;else if(yo)a=!0;else throw new Error("Invalid DOCTYPE");i++,l=""}else if(e[n]===">"){if(a?e[n-1]==="-"&&e[n-2]==="-"&&(a=!1,i--):i--,i===0)break}else e[n]==="["?r=!0:l+=e[n];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:n}}function vo(e,n){let t="";for(;n<e.length&&e[n]!=="'"&&e[n]!=='"';n++)t+=e[n];if(t=t.trim(),t.indexOf(" ")!==-1)throw new Error("External entites are not supported");const i=e[n++];let r="";for(;n<e.length&&e[n]!==i;n++)r+=e[n];return[t,r,n]}function yo(e,n){return e[n+1]==="!"&&e[n+2]==="-"&&e[n+3]==="-"}function mo(e,n){return e[n+1]==="!"&&e[n+2]==="E"&&e[n+3]==="N"&&e[n+4]==="T"&&e[n+5]==="I"&&e[n+6]==="T"&&e[n+7]==="Y"}function Eo(e,n){return e[n+1]==="!"&&e[n+2]==="E"&&e[n+3]==="L"&&e[n+4]==="E"&&e[n+5]==="M"&&e[n+6]==="E"&&e[n+7]==="N"&&e[n+8]==="T"}function No(e,n){return e[n+1]==="!"&&e[n+2]==="A"&&e[n+3]==="T"&&e[n+4]==="T"&&e[n+5]==="L"&&e[n+6]==="I"&&e[n+7]==="S"&&e[n+8]==="T"}function ko(e,n){return e[n+1]==="!"&&e[n+2]==="N"&&e[n+3]==="O"&&e[n+4]==="T"&&e[n+5]==="A"&&e[n+6]==="T"&&e[n+7]==="I"&&e[n+8]==="O"&&e[n+9]==="N"}function To(e){if(wo.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}var Ao=xo;const So=/^[-+]?0x[a-fA-F0-9]+$/,Oo=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const Io={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function zo(e,n={}){if(n=Object.assign({},Io,n),!e||typeof e!="string")return e;let t=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(t))return e;if(n.hex&&So.test(t))return Number.parseInt(t,16);{const i=Oo.exec(t);if(i){const r=i[1],a=i[2];let l=Ro(i[3]);const s=i[4]||i[6];if(!n.leadingZeros&&a.length>0&&r&&t[2]!==".")return e;if(!n.leadingZeros&&a.length>0&&!r&&t[1]!==".")return e;{const f=Number(t),o=""+f;return o.search(/[eE]/)!==-1||s?n.eNotation?f:e:t.indexOf(".")!==-1?o==="0"&&l===""||o===l||r&&o==="-"+l?f:e:a?l===o||r+l===o?f:e:t===o||t===r+o?f:e}}else return e}}function Ro(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}var Co=zo;function Po(e){return typeof e=="function"?e:Array.isArray(e)?n=>{for(const t of e)if(typeof t=="string"&&n===t||t instanceof RegExp&&t.test(n))return!0}:()=>!1}var Fi=Po;const Zi=dt,Pe=bo,$o=Ao,Lo=Co,Fo=Fi;let Zo=class{constructor(n){this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,i)=>String.fromCharCode(Number.parseInt(i,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,i)=>String.fromCharCode(Number.parseInt(i,16))}},this.addExternalEntities=Mo,this.parseXml=Vo,this.parseTextData=Uo,this.resolveNameSpace=jo,this.buildAttributesMap=Ho,this.isItStopNode=Yo,this.replaceEntitiesValue=Ko,this.readStopNodeData=Wo,this.saveTextToParentTag=Go,this.addChild=Xo,this.ignoreAttributesFn=Fo(this.options.ignoreAttributes)}};function Mo(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:e[i]}}}function Uo(e,n,t,i,r,a,l){if(e!==void 0&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){l||(e=this.replaceEntitiesValue(e));const s=this.options.tagValueProcessor(n,e,t,r,a);return s==null?e:typeof s!=typeof e||s!==e?s:this.options.trimValues?Zt(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Zt(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function jo(e){if(this.options.removeNSPrefix){const n=e.split(":"),t=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=t+n[1])}return e}const Bo=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Ho(e,n,t){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const i=Zi.getAllMatches(e,Bo),r=i.length,a={};for(let l=0;l<r;l++){const s=this.resolveNameSpace(i[l][1]);if(this.ignoreAttributesFn(s,n))continue;let f=i[l][4],o=this.options.attributeNamePrefix+s;if(s.length)if(this.options.transformAttributeName&&(o=this.options.transformAttributeName(o)),o==="__proto__"&&(o="#__proto__"),f!==void 0){this.options.trimValues&&(f=f.trim()),f=this.replaceEntitiesValue(f);const c=this.options.attributeValueProcessor(s,f,n);c==null?a[o]=f:typeof c!=typeof f||c!==f?a[o]=c:a[o]=Zt(f,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[o]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){const l={};return l[this.options.attributesGroupName]=a,l}return a}}const Vo=function(e){e=e.replace(/\r\n?/g,`
|
|
4
4
|
`);const n=new Pe("!xml");let t=n,i="",r="";for(let a=0;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="/"){const s=he(e,">",a,"Closing Tag is not closed.");let f=e.substring(a+2,s).trim();if(this.options.removeNSPrefix){const _=f.indexOf(":");_!==-1&&(f=f.substr(_+1))}this.options.transformTagName&&(f=this.options.transformTagName(f)),t&&(i=this.saveTextToParentTag(i,t,r));const o=r.substring(r.lastIndexOf(".")+1);if(f&&this.options.unpairedTags.indexOf(f)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);let c=0;o&&this.options.unpairedTags.indexOf(o)!==-1?(c=r.lastIndexOf(".",r.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=r.lastIndexOf("."),r=r.substring(0,c),t=this.tagsNodeStack.pop(),i="",a=s}else if(e[a+1]==="?"){let s=Ft(e,a,!1,"?>");if(!s)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,t,r),!(this.options.ignoreDeclaration&&s.tagName==="?xml"||this.options.ignorePiTags)){const f=new Pe(s.tagName);f.add(this.options.textNodeName,""),s.tagName!==s.tagExp&&s.attrExpPresent&&(f[":@"]=this.buildAttributesMap(s.tagExp,r,s.tagName)),this.addChild(t,f,r)}a=s.closeIndex+1}else if(e.substr(a+1,3)==="!--"){const s=he(e,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){const f=e.substring(a+4,s-2);i=this.saveTextToParentTag(i,t,r),t.add(this.options.commentPropName,[{[this.options.textNodeName]:f}])}a=s}else if(e.substr(a+1,2)==="!D"){const s=$o(e,a);this.docTypeEntities=s.entities,a=s.i}else if(e.substr(a+1,2)==="!["){const s=he(e,"]]>",a,"CDATA is not closed.")-2,f=e.substring(a+9,s);i=this.saveTextToParentTag(i,t,r);let o=this.parseTextData(f,t.tagname,r,!0,!1,!0,!0);o==null&&(o=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[{[this.options.textNodeName]:f}]):t.add(this.options.textNodeName,o),a=s+2}else{let s=Ft(e,a,this.options.removeNSPrefix),f=s.tagName;const o=s.rawTagName;let c=s.tagExp,_=s.attrExpPresent,u=s.closeIndex;this.options.transformTagName&&(f=this.options.transformTagName(f)),t&&i&&t.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,t,r,!1));const d=t;if(d&&this.options.unpairedTags.indexOf(d.tagname)!==-1&&(t=this.tagsNodeStack.pop(),r=r.substring(0,r.lastIndexOf("."))),f!==n.tagname&&(r+=r?"."+f:f),this.isItStopNode(this.options.stopNodes,r,f)){let b="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)f[f.length-1]==="/"?(f=f.substr(0,f.length-1),r=r.substr(0,r.length-1),c=f):c=c.substr(0,c.length-1),a=s.closeIndex;else if(this.options.unpairedTags.indexOf(f)!==-1)a=s.closeIndex;else{const h=this.readStopNodeData(e,o,u+1);if(!h)throw new Error(`Unexpected end of ${o}`);a=h.i,b=h.tagContent}const v=new Pe(f);f!==c&&_&&(v[":@"]=this.buildAttributesMap(c,r,f)),b&&(b=this.parseTextData(b,f,r,!0,_,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),v.add(this.options.textNodeName,b),this.addChild(t,v,r)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){f[f.length-1]==="/"?(f=f.substr(0,f.length-1),r=r.substr(0,r.length-1),c=f):c=c.substr(0,c.length-1),this.options.transformTagName&&(f=this.options.transformTagName(f));const b=new Pe(f);f!==c&&_&&(b[":@"]=this.buildAttributesMap(c,r,f)),this.addChild(t,b,r),r=r.substr(0,r.lastIndexOf("."))}else{const b=new Pe(f);this.tagsNodeStack.push(t),f!==c&&_&&(b[":@"]=this.buildAttributesMap(c,r,f)),this.addChild(t,b,r),t=b}i="",a=u}}else i+=e[a];return n.child};function Xo(e,n,t){const i=this.options.updateTag(n.tagname,t,n[":@"]);i===!1||(typeof i=="string"&&(n.tagname=i),e.addChild(n))}const Ko=function(e){if(this.options.processEntities){for(let n in this.docTypeEntities){const t=this.docTypeEntities[n];e=e.replace(t.regx,t.val)}for(let n in this.lastEntities){const t=this.lastEntities[n];e=e.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){const t=this.htmlEntities[n];e=e.replace(t.regex,t.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function Go(e,n,t,i){return e&&(i===void 0&&(i=Object.keys(n.child).length===0),e=this.parseTextData(e,n.tagname,t,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,i),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function Yo(e,n,t){const i="*."+t;for(const r in e){const a=e[r];if(i===a||n===a)return!0}return!1}function qo(e,n,t=">"){let i,r="";for(let a=n;a<e.length;a++){let l=e[a];if(i)l===i&&(i="");else if(l==='"'||l==="'")i=l;else if(l===t[0])if(t[1]){if(e[a+1]===t[1])return{data:r,index:a}}else return{data:r,index:a};else l===" "&&(l=" ");r+=l}}function he(e,n,t,i){const r=e.indexOf(n,t);if(r===-1)throw new Error(i);return r+n.length-1}function Ft(e,n,t,i=">"){const r=qo(e,n+1,i);if(!r)return;let a=r.data;const l=r.index,s=a.search(/\s/);let f=a,o=!0;s!==-1&&(f=a.substring(0,s),a=a.substring(s+1).trimStart());const c=f;if(t){const _=f.indexOf(":");_!==-1&&(f=f.substr(_+1),o=f!==r.data.substr(_+1))}return{tagName:f,tagExp:a,closeIndex:l,attrExpPresent:o,rawTagName:c}}function Wo(e,n,t){const i=t;let r=1;for(;t<e.length;t++)if(e[t]==="<")if(e[t+1]==="/"){const a=he(e,">",t,`${n} is not closed`);if(e.substring(t+2,a).trim()===n&&(r--,r===0))return{tagContent:e.substring(i,t),i:a};t=a}else if(e[t+1]==="?")t=he(e,"?>",t+1,"StopNode is not closed.");else if(e.substr(t+1,3)==="!--")t=he(e,"-->",t+3,"StopNode is not closed.");else if(e.substr(t+1,2)==="![")t=he(e,"]]>",t,"StopNode is not closed.")-2;else{const a=Ft(e,t,">");a&&((a&&a.tagName)===n&&a.tagExp[a.tagExp.length-1]!=="/"&&r++,t=a.closeIndex)}}function Zt(e,n,t){if(n&&typeof e=="string"){const i=e.trim();return i==="true"?!0:i==="false"?!1:Lo(e,t)}else return Zi.isExist(e)?e:""}var Jo=Zo,Mi={};function Qo(e,n){return Ui(e,n)}function Ui(e,n,t){let i;const r={};for(let a=0;a<e.length;a++){const l=e[a],s=Do(l);let f="";if(t===void 0?f=s:f=t+"."+s,s===n.textNodeName)i===void 0?i=l[s]:i+=""+l[s];else{if(s===void 0)continue;if(l[s]){let o=Ui(l[s],n,f);const c=tl(o,n);l[":@"]?el(o,l[":@"],f,n):Object.keys(o).length===1&&o[n.textNodeName]!==void 0&&!n.alwaysCreateTextNode?o=o[n.textNodeName]:Object.keys(o).length===0&&(n.alwaysCreateTextNode?o[n.textNodeName]="":o=""),r[s]!==void 0&&r.hasOwnProperty(s)?(Array.isArray(r[s])||(r[s]=[r[s]]),r[s].push(o)):n.isArray(s,f,c)?r[s]=[o]:r[s]=o}}}return typeof i=="string"?i.length>0&&(r[n.textNodeName]=i):i!==void 0&&(r[n.textNodeName]=i),r}function Do(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];if(i!==":@")return i}}function el(e,n,t,i){if(n){const r=Object.keys(n),a=r.length;for(let l=0;l<a;l++){const s=r[l];i.isArray(s,t+"."+s,!0,!0)?e[s]=[n[s]]:e[s]=n[s]}}}function tl(e,n){const{textNodeName:t}=n,i=Object.keys(e).length;return!!(i===0||i===1&&(e[t]||typeof e[t]=="boolean"||e[t]===0))}Mi.prettify=Qo;const{buildOptions:nl}=Wt,il=Jo,{prettify:rl}=Mi,al=Yt;let sl=class{constructor(n){this.externalEntities={},this.options=nl(n)}parse(n,t){if(typeof n!="string")if(n.toString)n=n.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});const a=al.validate(n,t);if(a!==!0)throw Error(`${a.err.msg}:${a.err.line}:${a.err.col}`)}const i=new il(this.options);i.addExternalEntities(this.externalEntities);const r=i.parseXml(n);return this.options.preserveOrder||r===void 0?r:rl(r,this.options)}addEntity(n,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=t}};var ol=sl;const ll=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b7 as a}from"./index-
|
|
1
|
+
import{b7 as a}from"./index-BowU-Rc8.js";var e=i,s=/^(?:\w+:)?\/\/(\S+)$/,l=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,n=/^[^\s\.]+\.\S{2,}$/;function i(t){if(typeof t!="string")return!1;var o=t.match(s);if(!o)return!1;var r=o[1];return r?!!(l.test(r)||n.test(r)):!1}const c=a(e);export{c as i};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bs as e,P as o,r as b,j as p,bt as u,bu as h,aj as x,T as w}from"./index-
|
|
1
|
+
import{bs as e,P as o,r as b,j as p,bt as u,bu as h,aj as x,T as w}from"./index-BowU-Rc8.js";const C={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},c={error:{color:e.common.white,backgroundColor:e.error.main},warning:{color:e.common.white,backgroundColor:e.warning.main},success:{color:e.common.white,backgroundColor:e.success.main},primary:{color:e.common.white,backgroundColor:e.primary.main},reverse:{color:"#fff",backgroundColor:"#222"}};function s(n){const t=h(n,s,["style"]),{type:r,content:l,children:m,style:d,className:f,forwardedRef:y,...g}=t,{palette:a}=x(),i=Object.assign({},c[r]||c.primary,d);return a[r]&&Object.assign(i,{color:a[r].contrastText||e.common.white,backgroundColor:a[r].main}),p.jsx(j,{ref:y,component:"span",className:f,style:i,...g,children:l||m})}s.propTypes={children:o.any.isRequired,type:o.oneOf(Object.keys(c)),content:o.string,className:o.string,style:o.oneOfType([o.object,o.string])};s.defaultProps={type:"primary",content:"",className:"",style:{}};const T=b.forwardRef((n,t)=>p.jsx(s,{...n,forwardedRef:t})),O=T,j=u(w)`
|
|
2
2
|
&& {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
justify-content: center;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var dt=Object.defineProperty;var ht=(e,n,t)=>n in e?dt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var D=(e,n,t)=>ht(e,typeof n!="symbol"?n+"":n,t);import{P as f,r as j,N as pt,l as gt,j as m,aC as mt,bF as be,bm as yt,bn as bt,dh as wt,ai as xt,bE as C,bk as It,B as St,bB as vt,T as Tt,di as Ct,dj as At,a1 as jt,dk as Pt,bC as Fe,u as ze,aD as kt,f as Lt,E as Mt}from"./index-BowU-Rc8.js";import{D as Et}from"./index-DbC1wngE.js";import{L as Ot}from"./MoreVert-6z9sYyBh.js";import{L as Rt}from"./ListItemButton-BhIitXNK.js";import{L as qt}from"./selector-Rhni_cbO.js";/**
|
|
2
|
+
* (c) Iconify
|
|
3
|
+
*
|
|
4
|
+
* For the full copyright and license information, please view the license.txt
|
|
5
|
+
* files at https://github.com/iconify/iconify
|
|
6
|
+
*
|
|
7
|
+
* Licensed under MIT.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
* @version 1.0.8
|
|
11
|
+
*/const He=Object.freeze({left:0,top:0,width:16,height:16}),V=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...He,...V}),te=Object.freeze({...F,body:"",hidden:!1}),_t=Object.freeze({width:null,height:null}),Be=Object.freeze({..._t,...V});function Nt(e,n=0){const t=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(t!==e){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-t.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return n}const Ft=/[\s,]+/;function zt(e,n){n.split(Ft).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const De={...Be,preserveAspectRatio:""};function we(e){const n={...De},t=(r,o)=>e.getAttribute(r)||o;return n.width=t("width",null),n.height=t("height",null),n.rotate=Nt(t("rotate","")),zt(n,t("flip","")),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}function Ht(e,n){for(const t in De)if(e[t]!==n[t])return!0;return!1}const O=/^[a-z0-9]+(-[a-z0-9]+)*$/,z=(e,n,t,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return n&&!U(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return n&&!U(a)?null:a}if(t&&r===""){const a={provider:r,prefix:"",name:s};return n&&!U(a,t)?null:a}return null},U=(e,n)=>e?!!((e.provider===""||e.provider.match(O))&&(n&&e.prefix===""||e.prefix.match(O))&&e.name.match(O)):!1;function Bt(e,n){const t={};!e.hFlip!=!n.hFlip&&(t.hFlip=!0),!e.vFlip!=!n.vFlip&&(t.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}function xe(e,n){const t=Bt(e,n);for(const r in te)r in V?r in e&&!(r in t)&&(t[r]=V[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function Dt(e,n){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(t[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return Object.keys(t).concat(Object.keys(r)).forEach(s),o}function $t(e,n,t){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=xe(r[a]||o[a],s)}return i(n),t.forEach(i),xe(e,s)}function $e(e,n){const t=[];if(typeof e!="object"||typeof e.icons!="object")return t;e.not_found instanceof Array&&e.not_found.forEach(o=>{n(o,null),t.push(o)});const r=Dt(e);for(const o in r){const s=r[o];s&&(n(o,$t(e,o,s)),t.push(o))}return t}const Ut={provider:"",aliases:{},not_found:{},...He};function X(e,n){for(const t in n)if(t in e&&typeof e[t]!=typeof n[t])return!1;return!0}function Ue(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!X(e,Ut))return null;const t=n.icons;for(const o in t){const s=t[o];if(!o.match(O)||typeof s.body!="string"||!X(s,te))return null}const r=n.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(O)||typeof i!="string"||!t[i]&&!r[i]||!X(s,te))return null}return n}const Z=Object.create(null);function Qt(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function k(e,n){const t=Z[e]||(Z[e]=Object.create(null));return t[n]||(t[n]=Qt(e,n))}function ue(e,n){return Ue(n)?$e(n,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}function Vt(e,n,t){try{if(typeof t.body=="string")return e.icons[n]={...t},!0}catch{}return!1}function Zt(e,n){let t=[];return(typeof e=="string"?[e]:Object.keys(Z)).forEach(o=>{(typeof o=="string"&&typeof n=="string"?[n]:Object.keys(Z[o]||{})).forEach(i=>{const a=k(o,i);t=t.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),t}let q=!1;function Qe(e){return typeof e=="boolean"&&(q=e),q}function _(e){const n=typeof e=="string"?z(e,!0,q):e;if(n){const t=k(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function Ve(e,n){const t=z(e,!0,q);if(!t)return!1;const r=k(t.provider,t.prefix);return Vt(r,t.name,n)}function Ie(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),q&&!n&&!e.prefix){let o=!1;return Ue(e)&&(e.prefix="",$e(e,(s,i)=>{i&&Ve(s,i)&&(o=!0)})),o}const t=e.prefix;if(!U({provider:n,prefix:t,name:"a"}))return!1;const r=k(n,t);return!!ue(r,e)}function Wt(e){return!!_(e)}function Gt(e){const n=_(e);return n?{...F,...n}:null}function Jt(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=t[s]||(t[s]=Object.create(null)),l=c[i]||(c[i]=k(s,i));let u;a in l.icons?u=n.loaded:i===""||l.missing.has(a)?u=n.missing:u=n.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),n}function Ze(e,n){e.forEach(t=>{const r=t.loaderCallbacks;r&&(t.loaderCallbacks=r.filter(o=>o.id!==n))})}function Xt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const r=e.provider,o=e.prefix;n.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return t=!0,!0;return!1}),i.pending.length!==a&&(t||Ze([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Yt=0;function Kt(e,n,t){const r=Yt++,o=Ze.bind(null,t,r);if(!n.pending.length)return o;const s={id:r,icons:n,callback:e,abort:o};return t.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const ne=Object.create(null);function Se(e,n){ne[e]=n}function oe(e){return ne[e]||ne[""]}function en(e,n=!0,t=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?z(o,n,t):o;s&&r.push(s)}),r}var tn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function nn(e,n,t,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const I=Math.floor(Math.random()*h.length);i.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,p=[],g=[];typeof r=="function"&&g.push(r);function b(){d&&(clearTimeout(d),d=null)}function w(){c==="pending"&&(c="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function T(h,I){I&&(g=[]),typeof h=="function"&&g.push(h)}function A(){return{startTime:a,payload:n,status:c,queriesSent:l,queriesPending:p.length,subscribe:T,abort:w}}function x(){c="failed",g.forEach(h=>{h(void 0,u)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function B(h,I,P){const v=I!=="success";switch(p=p.filter(L=>L!==h),c){case"pending":break;case"failed":if(v||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){u=P,x();return}if(v){u=P,p.length||(i.length?S():x());return}if(b(),y(),!e.random){const L=e.resources.indexOf(h.resource);L!==-1&&L!==e.index&&(e.index=L)}c="completed",g.forEach(L=>{L(P)})}function S(){if(c!=="pending")return;b();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),x())},e.timeout);return}x();return}const I={status:"pending",resource:h,callback:(P,v)=>{B(I,P,v)}};p.push(I),l++,d=setTimeout(S,e.rotate),t(h,n,I.callback)}return setTimeout(S),A}function We(e){const n={...tn,...e};let t=[];function r(){t=t.filter(a=>a().status==="pending")}function o(a,c,l){const u=nn(n,a,c,(d,p)=>{r(),l&&l(d,p)});return t.push(u),u}function s(a){return t.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{n.index=a},getIndex:()=>n.index,cleanup:r}}function fe(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const G=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],Q=[];for(;E.length>0;)E.length===1||Math.random()>.5?Q.push(E.shift()):Q.push(E.pop());G[""]=fe({resources:["https://api.iconify.design"].concat(Q)});function ve(e,n){const t=fe(n);return t===null?!1:(G[e]=t,!0)}function J(e){return G[e]}function on(){return Object.keys(G)}function Te(){}const Y=Object.create(null);function rn(e){if(!Y[e]){const n=J(e);if(!n)return;const t=We(n),r={config:n,redundancy:t};Y[e]=r}return Y[e]}function Ge(e,n,t){let r,o;if(typeof e=="string"){const s=oe(e);if(!s)return t(void 0,424),Te;o=s.send;const i=rn(e);i&&(r=i.redundancy)}else{const s=fe(e);if(s){r=We(s);const i=e.resources?e.resources[0]:"",a=oe(i);a&&(o=a.send)}}return!r||!o?(t(void 0,424),Te):r.query(n,o,t)().abort}const Ce="iconify2",N="iconify",Je=N+"-count",Ae=N+"-version",Xe=36e5,sn=168;function re(e,n){try{return e.getItem(n)}catch{}}function de(e,n,t){try{return e.setItem(n,t),!0}catch{}}function je(e,n){try{e.removeItem(n)}catch{}}function se(e,n){return de(e,Je,n.toString())}function ie(e){return parseInt(re(e,Je))||0}const M={local:!0,session:!0},Ye={local:new Set,session:new Set};let he=!1;function cn(e){he=e}let $=typeof window>"u"?{}:window;function Ke(e){const n=e+"Storage";try{if($&&$[n]&&typeof $[n].length=="number")return $[n]}catch{}M[e]=!1}function et(e,n){const t=Ke(e);if(!t)return;const r=re(t,Ae);if(r!==Ce){if(r){const a=ie(t);for(let c=0;c<a;c++)je(t,N+c.toString())}de(t,Ae,Ce),se(t,0);return}const o=Math.floor(Date.now()/Xe)-sn,s=a=>{const c=N+a.toString(),l=re(t,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,a))return!0}catch{}je(t,c)}};let i=ie(t);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,se(t,i)):Ye[e].add(a))}function tt(){if(!he){cn(!0);for(const e in M)et(e,n=>{const t=n.data,r=n.provider,o=t.prefix,s=k(r,o);if(!ue(s,t).length)return!1;const i=t.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function an(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const r in M)et(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===n});return!0}function ln(e,n){he||tt();function t(r){let o;if(!M[r]||!(o=Ke(r)))return;const s=Ye[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ie(o),!se(o,i+1))return;const a={cached:Math.floor(Date.now()/Xe),provider:e.provider,data:n};return de(o,N+i.toString(),JSON.stringify(a))}n.lastModified&&!an(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),t("local")||t("session"))}function Pe(){}function un(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Xt(e)}))}function fn(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=oe(t)))return;s.prepare(t,r,o).forEach(a=>{Ge(t,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=ue(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),ln(e,c)}catch(l){console.error(l)}un(e)})})}))}const pe=(e,n)=>{const t=en(e,!0,Qe()),r=Jt(t);if(!r.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(r.loaded,r.missing,r.pending,Pe)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(k(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,p=k(l,u),g=p.pendingIcons||(p.pendingIcons=new Set);g.has(d)||(g.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&fn(c,o[l][u])}),n?Kt(n,r,s):Pe},dn=e=>new Promise((n,t)=>{const r=typeof e=="string"?z(e,!0):e;if(!r){t(e);return}pe([r||e],o=>{if(o.length&&r){const s=_(r);if(s){n({...F,...s});return}}t(e)})});function hn(e){try{const n=typeof e=="string"?JSON.parse(e):e;if(typeof n.body=="string")return{...n}}catch{}}function pn(e,n){const t=typeof e=="string"?z(e,!0,!0):null;if(!t){const s=hn(e);return{value:e,data:s}}const r=_(t);if(r!==void 0||!t.prefix)return{value:e,name:t,data:r};const o=pe([t],()=>n(e,t,_(t)));return{value:e,name:t,loading:o}}function K(e){return e.hasAttribute("inline")}let nt=!1;try{nt=navigator.vendor.indexOf("Apple")===0}catch{}function gn(e,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(nt||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const mn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,yn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ce(e,n,t){if(n===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*n*t)/t;if(typeof e!="string")return e;const r=e.split(mn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=yn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*n*t)/t)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const bn=e=>e==="unset"||e==="undefined"||e==="none";function ot(e,n){const t={...F,...e},r={...Be,...n},o={left:t.left,top:t.top,width:t.width,height:t.height};let s=t.body;[t,r].forEach(b=>{const w=[],T=b.hFlip,A=b.vFlip;let x=b.rotate;T?A?x+=2:(w.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),w.push("scale(-1 1)"),o.top=o.left=0):A&&(w.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),w.push("scale(1 -1)"),o.top=o.left=0);let y;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:y=o.height/2+o.top,w.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:w.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,w.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}x%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),w.length&&(s='<g transform="'+w.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=ce(d,c/l)):(u=i==="auto"?c:i,d=a===null?ce(u,l/c):a==="auto"?l:a);const p={},g=(b,w)=>{bn(w)||(p[b]=w.toString())};return g("width",u),g("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const wn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let W=wn();function xn(e){W=e}function In(){return W}function Sn(e,n){const t=J(e);if(!t)return 0;let r;if(!t.maxURL)r=0;else{let o=0;t.resources.forEach(i=>{o=Math.max(o,i.length)});const s=n+".json?icons=";r=t.maxURL-o-t.path.length-s.length}return r}function vn(e){return e===404}const Tn=(e,n,t)=>{const r=[],o=Sn(e,n),s="icons";let i={type:s,provider:e,prefix:n,icons:[]},a=0;return t.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:n,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Cn(e){if(typeof e=="string"){const n=J(e);if(n)return n.path}return"/"}const An=(e,n,t)=>{if(!W){t("abort",424);return}let r=Cn(n.provider);switch(n.type){case"icons":{const s=n.prefix,a=n.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=n.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:t("abort",400);return}let o=503;W(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{t(vn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?t("abort",s):t("next",o)});return}setTimeout(()=>{t("success",s)})}).catch(()=>{t("next",o)})},jn={prepare:Tn,send:An};function ke(e,n){switch(e){case"local":case"session":M[e]=n;break;case"all":for(const t in M)M[t]=n;break}}const ee="data-style";let rt="";function Pn(e){rt=e}function Le(e,n){let t=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(ee));t||(t=document.createElement("style"),t.setAttribute(ee,ee),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+rt}function st(){Se("",jn),Qe(!0);let e;try{e=window}catch{}if(e){if(tt(),e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!Ie(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const r in t){const o="IconifyProviders["+r+"] is invalid.";try{const s=t[r];if(typeof s!="object"||!s||s.resources===void 0)continue;ve(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>ke(t,!0),disableCache:t=>ke(t,!1),iconExists:Wt,getIcon:Gt,listIcons:Zt,addIcon:Ve,addCollection:Ie,calculateSize:ce,buildIcon:ot,loadIcons:pe,loadIcon:dn,addAPIProvider:ve,appendCustomStyle:Pn,_api:{getAPIConfig:J,setAPIModule:Se,sendAPIQuery:Ge,setFetch:xn,getFetch:In,listAPIProviders:on}}}function it(e,n){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}function kn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ln(e){return"data:image/svg+xml,"+kn(e)}function Mn(e){return'url("'+Ln(e)+'")'}const ae={"background-color":"currentColor"},ct={"background-color":"transparent"},Me={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ee={"-webkit-mask":ae,mask:ae,background:ct};for(const e in Ee){const n=Ee[e];for(const t in Me)n[e+"-"+t]=Me[t]}function Oe(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function En(e,n,t){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=it(o,{...s,width:n.width+"",height:n.height+""}),a=Mn(i),c=r.style,l={"--svg":a,width:Oe(s.width),height:Oe(s.height),...t?ae:ct};for(const u in l)c.setProperty(u,l[u]);return r}let R;function On(){try{R=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{R=null}}function Rn(e){return R===void 0&&On(),R?R.createHTML(e):e}function qn(e){const n=document.createElement("span"),t=e.attributes;let r="";t.width||(r="width: inherit;"),t.height||(r+="height: inherit;"),r&&(t.style=r);const o=it(e.body,t);return n.innerHTML=Rn(o),n.firstChild}function Re(e,n){const t=n.icon.data,r=n.customisations,o=ot(t,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=n.renderedMode;let i;switch(s){case"svg":i=qn(o);break;default:i=En(o,{...F,...t},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function qe(e,n,t){const r=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:n,icon:e,lastRender:r}}function _n(e="iconify-icon"){let n,t;try{n=window.customElements,t=window.HTMLElement}catch{return}if(!n||!t)return;const r=n.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends t{constructor(){super();D(this,"_shadowRoot");D(this,"_state");D(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=K(this);Le(c,l),this._state=qe({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=K(this),u=this._state;l!==u.inline&&(u.inline=l,Le(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return K(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Re(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=we(this);(c.attrMode!==u||Ht(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=pn(c,(u,d,p)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:p};b.data?this._gotIconData(b):g.icon=b});l.data?this._gotIconData(l):this._state=qe(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,we(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=gn(c.data.body,u),p=this._state.inline;Re(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=st();for(const a in i)s[a]=s.prototype[a]=i[a];return n.define(e,s),s}_n()||st();const Nn=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),at=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),H=(e,n,t="children")=>e.map(r=>Array.isArray(r[t])?n({...r,[t]:H(r[t],n,t)}):n(r)),Fn=(e,n="children")=>{const t=[];return H(e,r=>t.push(r),n),t},ge=(e,n,t="children")=>e.map(r=>({...r})).filter(r=>{const o=r[t];if(Array.isArray(o)){const i=ge(o,n,t);r[t]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[t],isLeaf:!(o!=null&&o.length)};return n(r,s)}),zn=e=>/^https?:\/\//.test(e),Hn=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const n=o=>o.endsWith("/")?o:`${o}/`,t=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return t.startsWith(r)},Bn=(e=[])=>{const n=e.map((r,o)=>({path:r,index:o})).filter(r=>Hn(r.path));return n!=null&&n.length?n.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,n[0]).index:-1};var _e,Ne;const le=((_e=window==null?void 0:window.blocklet)==null?void 0:_e.groupPrefix)||((Ne=window==null?void 0:window.blocklet)==null?void 0:Ne.prefix)||"/",Dn=e=>{const n={...e},t=e==null?void 0:e.background;return typeof t=="string"?n.background={header:t,footer:t,default:t}:t&&typeof t=="object"&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n},lt=(e,n="en")=>{if(!(e!=null&&e.length))return e;const t=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(zn(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return H(e,o=>{var s;return{...o,title:t(o.title,n),link:(s=o.items)!=null&&s.length?o.link:r(o.link,n),_rawLink:o.link}},"items")},$n=e=>H(e,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),Un=e=>{if(!(e!=null&&e.length))return null;const n=$n(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=t[s])==null||i.push(r)}):typeof r.section=="string"&&((o=t[r.section])==null||o.push(r)):t.header.push(r)}),t},Qn=e=>{if(!e)return null;const n={...e};return n.theme=Dn(n.theme),n.navigation=Un(Vn(n.navigation)),n},Vn=(e=[])=>ge(e,(n,t)=>{var r;return!!n.link||((r=t.filteredChildren)==null?void 0:r.length)},"items"),ut=(e,n)=>ge(e,(t,r)=>{var s;const o=!t.role||n&&t.role.includes(n);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),Zn={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Wn={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function me({session:e,locale:n,size:t}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=j.useRef(null),i=pt({open:!1}),a=gt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:m.jsxs(m.Fragment,{children:[m.jsx(mt,{size:"medium",ref:s,onClick:()=>a(),children:m.jsx(be,{icon:Zn,fontSize:t,style:{transform:"scale(1.08)"}})}),m.jsx(yt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>m.jsx(bt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:m.jsx(wt,{...c,timeout:350,children:m.jsxs(xt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:C.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${C.gray6}, 0px 0px 0px 1px ${C.gray6}`},children:[m.jsx(It,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u;return m.jsx(Ot,{disablePadding:!0,children:m.jsxs(Rt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:C.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?m.jsx(St,{component:"img",src:`${vt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):m.jsx(be,{fontSize:50,icon:l.icon||Wn,color:C.textSubtitle}),m.jsx(Tt,{sx:{fontSize:"12px",color:C.textBase,textAlign:"center",lineHeight:"normal"},children:Ct(l.title,n)})]})},l.id)})}),m.jsx(At,{session:e,children:m.jsx(jt,{variant:"outlined",fullWidth:!0,href:Pt,sx:{mt:1,borderRadius:2,color:C.textBase,borderColor:C.lineBorderStrong,"&:hover":{color:C.primaryBase,borderColor:C.primaryBase}},children:n==="zh"?"管理":"Manage"})})]})})})})]})}me.propTypes={session:f.object.isRequired,locale:f.string,size:f.number};me.defaultProps={locale:"en",size:24};function ye({formattedBlocklet:e,addons:n,sessionManagerProps:t}){var p,g,b,w;const r=j.useContext(Fe),{locale:o}=ze()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=lt((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=ut(c,(w=(b=r==null?void 0:r.session)==null?void 0:b.user)==null?void 0:w.role);const u=(()=>{if(n&&typeof n!="function")return Array.isArray(n)?n:[n];let T=[];if(i&&o&&T.push(m.jsx(qt,{showText:!1},"locale-selector")),s&&r){const A=[];a&&(c?c.slice(0,5):[]).forEach(y=>{A.push({label:y.title,icon:y.icon?m.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),T.push(m.jsx(me,{session:r.session,locale:o},"session-blocklet")),T.push(m.jsx(kt,{session:r.session,locale:o,menu:A,showRole:!0,...t},"session-user"))}return typeof n=="function"&&(T=n(T)||[]),T})();return j.createElement(m.Fragment,null,...Array.isArray(u)?u:[u])}ye.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:at};ye.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Gn=()=>{const e=Lt();j.useEffect(()=>{e.wallet&&Mt.call("arcHideTopBar","{}")},[e])};function ft({meta:e,fallbackUrl:n,invalidPathFallback:t,headerAddons:r,sessionManagerProps:o,links:s,...i}){var B;Gn();const a=j.useContext(Fe),c=(B=a==null?void 0:a.session)==null?void 0:B.user,l=c==null?void 0:c.role,{locale:u}=ze()||{},d=j.useMemo(()=>{const S=Object.assign({},window.blocklet,e);try{return Qn(S)}catch(h){return console.error("Failed to format blocklet info",h,S),S}},[e]),{localizedNav:p,flattened:g,matchedIndex:b}=j.useMemo(()=>{var P;let S=lt((P=d==null?void 0:d.navigation)==null?void 0:P.dashboard,u)||[];S=ut(S,l),S=H(S,v=>({title:v.title,url:v.link,icon:v.icon?m.jsx("iconify-icon",{height:"100%",width:"100%",icon:v.icon}):null,external:!0,children:v.items}),"items");const h=Fn(S).filter(v=>!!v.url),I=Bn(h.map(v=>v.url));return I!==-1&&(h[I].active=!0),{localizedNav:S,flattened:h,matchedIndex:I}},[d,u,l]),w=typeof s=="function"?s(p):[...p,...s];if(j.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&n&&(window.location.href=n)},[n]),j.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&b===-1&&t&&t()},[t,g,b]),!d.appName)return null;const{appLogo:T,appLogoRect:A,appName:x}=d,y=m.jsx(ye,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return m.jsx(Et,{title:x,fullWidth:!0,sidebarWidth:128,legacy:!1,links:w,...i,headerProps:{homeLink:le,logo:m.jsx("img",{src:A||T,alt:"logo"}),addons:y,...i.headerProps}})}ft.propTypes={meta:Nn,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:at,links:f.oneOfType([f.array,f.func])};ft.defaultProps={meta:{},fallbackUrl:le,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=le}},links:[]};export{Nn as B,ft as D,ye as H,Fn as a,Bn as b,Qn as f,lt as g,zn as i,H as m,le as p,Gn as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as h,j as c,P as f,a1 as d}from"./index-
|
|
1
|
+
import{r as h,j as c,P as f,a1 as d}from"./index-BowU-Rc8.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0;m(h);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=b(e,"string");return typeof t=="symbol"?t:t+""}function b(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";p=o.default=i;function s({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(p,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}s.propTypes={children:f.any};s.defaultProps={children:""};export{s as C};
|