@hot-updater/console 1.2.0-rc.30 → 1.2.0-rc.32
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/.output/nitro.json +1 -1
- package/.output/public/assets/-native-builds-search-BvCftqF2.js +1 -0
- package/.output/public/assets/{BundleIdDisplay-CTBdtFQ8.js → BundleIdDisplay-D8oR8mcP.js} +1 -1
- package/.output/public/assets/{ChannelBadge-CEabmopB.js → ChannelBadge-Do-lWsLM.js} +1 -1
- package/.output/public/assets/{CompositeItem-KUM5yQVr.js → CompositeItem-Ci-Dvjc7.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-Be-0iTww.js → ConsoleFeatureUnavailable-C0iDIboF.js} +1 -1
- package/.output/public/assets/{EventDetails-bDOYte1z.js → EventDetails-DglqzK6l.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-D2f0HmyU.js → HashValueDisplay-DKziWjEg.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-Cj2ROSQO.js → InsightsPageHeader-DLH1MntM.js} +1 -1
- package/.output/public/assets/IosInstall-2R2o1IXd.js +1 -0
- package/.output/public/assets/NativeBuildsNav-BgeUSMqw.js +1 -0
- package/.output/public/assets/{NotFoundPage-CVBtl68B.js → NotFoundPage-CijSy63W.js} +1 -1
- package/.output/public/assets/{PlatformIcon-DVnzzGqM.js → PlatformIcon-Kq3q98tU.js} +1 -1
- package/.output/public/assets/QrCode-D3-Vuudy.js +1 -0
- package/.output/public/assets/RelativeTime-CP7nosYx.js +1 -0
- package/.output/public/assets/{RolloutPercentageBadge-D_I0Raj2.js → RolloutPercentageBadge-DnmU8XbU.js} +1 -1
- package/.output/public/assets/{RowReason-B7VM1ztc.js → RowReason-D7TZ2xwW.js} +1 -1
- package/.output/public/assets/SandboxBadge-BPf2uve4.js +1 -0
- package/.output/public/assets/TargetDisplay-DzSkf5yP.js +1 -0
- package/.output/public/assets/alert-dialog-Dihztkem.js +1 -0
- package/.output/public/assets/{api-C1OPeiG1.js → api-B1z_XXrQ.js} +1 -1
- package/.output/public/assets/api-keys-DL9HeC8e.js +1 -0
- package/.output/public/assets/api-keys-DPuPM7ag.js +1 -0
- package/.output/public/assets/arrow-left-CxxDwBQs.js +1 -0
- package/.output/public/assets/arrow-right-jHG0fJt7.js +1 -0
- package/.output/public/assets/arrow-up-right-BPRe5soE.js +1 -0
- package/.output/public/assets/{badge-FZMD5vvS.js → badge-D4Tiwei-.js} +1 -1
- package/.output/public/assets/{card-CyHYmHue.js → card-BfeRlTvj.js} +1 -1
- package/.output/public/assets/check-Dz_5aNwx.js +1 -0
- package/.output/public/assets/chevron-right-CuYrscDY.js +1 -0
- package/.output/public/assets/{circle-off-BCkZpskJ.js → circle-off-BZFOMb8J.js} +1 -1
- package/.output/public/assets/{clipboard-DZrZK5gR.js → clipboard-D8uvj6FN.js} +1 -1
- package/.output/public/assets/{console-features-api-BO5V64P3.js → console-features-api-De6tXQnd.js} +1 -1
- package/.output/public/assets/{copy-CH1__JAW.js → copy-BxI24-g-.js} +1 -1
- package/.output/public/assets/dialog-e9AF5T6h.js +1 -0
- package/.output/public/assets/{dist-DAM__Tdz.js → dist-BEIz5ojx.js} +1 -1
- package/.output/public/assets/{download-B2GjTySo.js → download-ekENI2Sw.js} +1 -1
- package/.output/public/assets/{empty--YaE5Z4p.js → empty-DpSPWLc2.js} +1 -1
- package/.output/public/assets/{field-CdhSgWhI.js → field-PkdRPD3A.js} +1 -1
- package/.output/public/assets/{git-branch-DG1VDaKq.js → git-branch-BWrvONjc.js} +1 -1
- package/.output/public/assets/{history-C0wv4htz.js → history-DwdBLzJP.js} +1 -1
- package/.output/public/assets/index-DZdzmvWS.js +10 -0
- package/.output/public/assets/input-group-DNfVeeYZ.js +1 -0
- package/.output/public/assets/{insights-_j_ieOyh.js → insights-6d-iISFa.js} +2 -2
- package/.output/public/assets/insights-DotP9eJn.js +2 -0
- package/.output/public/assets/insights-MQrx_wbP.js +1 -0
- package/.output/public/assets/{insights-api-B6Gj74n5.js → insights-api-CXXCRZhF.js} +1 -1
- package/.output/public/assets/{insights-search-Bgvg6wSP.js → insights-search-CtEcj6lz.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-BUCinjSN.js → insights-usage-rpc-DdmD1Nuy.js} +1 -1
- package/.output/public/assets/{insights_.distribution-CRkGNelG.js → insights_.distribution-DATeWpQS.js} +1 -1
- package/.output/public/assets/insights_.distribution-DYgsR7-7.js +2 -0
- package/.output/public/assets/insights_.distribution-REbBAqgL.js +1 -0
- package/.output/public/assets/installations-Di02gX_V.js +1 -0
- package/.output/public/assets/{installations-CYTzndfP.js → installations-Ds-MhfsQ.js} +1 -1
- package/.output/public/assets/{installations-BsD6LgNc.js → installations-Lm8TxrcB.js} +2 -2
- package/.output/public/assets/{key-round-D7UgdXyA.js → key-round-B-vaAsR7.js} +1 -1
- package/.output/public/assets/{link-CN3iHC4A.js → link-D95E0fwF.js} +1 -1
- package/.output/public/assets/{list-Bm-CfN5g.js → list-Dq40Mmoj.js} +1 -1
- package/.output/public/assets/loader-circle-C26cZDSM.js +1 -0
- package/.output/public/assets/native-builds-BOSmoLed.js +1 -0
- package/.output/public/assets/native-builds-Bs_JroPG.js +2 -0
- package/.output/public/assets/native-builds-Chv-kXaS.js +1 -0
- package/.output/public/assets/native-builds_._buildId-Bj24bG99.js +2 -0
- package/.output/public/assets/native-builds_._buildId-Somk3u9R.js +1 -0
- package/.output/public/assets/native-builds_.devices-afOLyzux.js +1 -0
- package/.output/public/assets/native-builds_.devices-o6LsPF9Y.js +2 -0
- package/.output/public/assets/plus-Bp6IqwOH.js +1 -0
- package/.output/public/assets/{preload-helper-CRQjUQaZ.js → preload-helper-52zhjEsw.js} +1 -1
- package/.output/public/assets/{refresh-cw-BHhBYjS8.js → refresh-cw-CpCxPYma.js} +1 -1
- package/.output/public/assets/{relativeTime-BYRt19mj.js → relativeTime-D_aYJRc7.js} +1 -1
- package/.output/public/assets/remote-config-Buy_12p7.js +1 -0
- package/.output/public/assets/remote-config-Dmuqm9xx.js +1 -0
- package/.output/public/assets/remote-config-g05054op.js +6 -0
- package/.output/public/assets/{rotate-cw-Ba-slJea.js → rotate-cw-Bn3fIWmY.js} +1 -1
- package/.output/public/assets/routes-5mt1iab-.js +2 -0
- package/.output/public/assets/routes-BxJfMpil.js +1 -0
- package/.output/public/assets/search-DeKSyo9Q.js +1 -0
- package/.output/public/assets/{select-CA8r-UUe.js → select-BAd2hAoW.js} +1 -1
- package/.output/public/assets/{sidebar-yC7KdImc.js → sidebar-UnsNYOry.js} +1 -1
- package/.output/public/assets/smartphone-lSZWrqxx.js +1 -0
- package/.output/public/assets/styles-CN7c7MGr.css +2 -0
- package/.output/public/assets/{switch-BsV3d4km.js → switch-C_s67MO4.js} +1 -1
- package/.output/public/assets/{table-D8YjT_ht.js → table-r_sYqKTQ.js} +1 -1
- package/.output/public/assets/{tabs-RdhEl9sE.js → tabs-B95QcXeT.js} +1 -1
- package/.output/public/assets/{trash-2-B5KIvrXy.js → trash-2-BPH7ydek.js} +1 -1
- package/.output/public/assets/{undo-2-CFcU9dIB.js → undo-2-CGeTBZjC.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-lAmUsXcc.js → useCompositeListItem-B9ONn9qn.js} +1 -1
- package/.output/public/assets/{useMutation-w3qYaU2L.js → useMutation-BWX97JX2.js} +1 -1
- package/.output/server/{__23tanstack-start-server-fn-resolver-q4YFIDyr.mjs → __23tanstack-start-server-fn-resolver-ET1Ypyyk.mjs} +61 -61
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{-native-builds-search-Mm_AZoRU.mjs → -native-builds-search-OJ8XmaBa.mjs} +2 -2
- package/.output/server/_ssr/{BundleIdDisplay-DvzlYWq8.mjs → BundleIdDisplay-CpaKbEYb.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-qF_Pc5Ud.mjs → ChannelBadge-dVXs-bYV.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-DKUgr0N_.mjs → ConsoleFeatureUnavailable-DWuWwY4L.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-T1XtYEDD.mjs → EventDetails-CcuGyU26.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-Cas_zjIS.mjs → HashValueDisplay-ClkGq5_0.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-BrllhUl2.mjs → InsightsPageHeader-Bw6RVpdS.mjs} +7 -7
- package/.output/server/_ssr/{IosInstall-CEHI8F2M.mjs → IosInstall-DEceeAVT.mjs} +180 -87
- package/.output/server/_ssr/{NativeBuildsNav-2xSHyA1a.mjs → NativeBuildsNav-ChqRZH4E.mjs} +5 -5
- package/.output/server/_ssr/{NotFoundPage-D6H9vxj_.mjs → NotFoundPage-aZrAWo5n.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-BpGOEXjU.mjs → PlatformIcon-X18AN8Yp.mjs} +1 -1
- package/.output/server/_ssr/QrCode-pEaOdaRS.mjs +50 -0
- package/.output/server/_ssr/{RelativeTime-DpEVzDP9.mjs → RelativeTime-CFIJbj_r.mjs} +10 -5
- package/.output/server/_ssr/{RolloutPercentageBadge-DW8-_w30.mjs → RolloutPercentageBadge-BEqOJXly.mjs} +4 -4
- package/.output/server/_ssr/{RowReason-C-PjIxzq.mjs → RowReason-DXbU_Nml.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-CDdNew0R.mjs → SandboxBadge-CP76AVxN.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-BBsP7IaZ.mjs → TargetDisplay-csC-slf3.mjs} +37 -15
- package/.output/server/_ssr/{alert-dialog-Bd4E9xdw.mjs → alert-dialog-Dn5l3Bob.mjs} +3 -3
- package/.output/server/_ssr/{api-BT7aA8UM.mjs → api-W0WerUfm.mjs} +6 -6
- package/.output/server/_ssr/{api-keys-D2NvcQZv.mjs → api-keys-Btu37Irf.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-DjWpM20P.mjs → api-keys-D7kmFdhY.mjs} +10 -9
- package/.output/server/_ssr/{api-keys-rpc-nM5H7V7f.mjs → api-keys-rpc-9o4CyzUZ.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-DX4HynbW.mjs → api-rpc-B1HnUZMu.mjs} +19 -19
- package/.output/server/_ssr/{auth-rpc-LCxTtYz2.mjs → auth-rpc-BBy2L4Ah.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-CERo_xef.mjs → auth.server-ajvR-m99.mjs} +28 -14
- package/.output/server/_ssr/{badge-Dpp4q7sD.mjs → badge-DlEpe8yC.mjs} +1 -1
- package/.output/server/_ssr/{bundleActivity-BP40zYSt.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/{card-CFCftDfI.mjs → card-AK7Ms1Oa.mjs} +1 -1
- package/.output/server/_ssr/{config.server-5W5WD8x2.mjs → config.server-DswyWSgG.mjs} +4 -4
- package/.output/server/_ssr/{console-access-B0S5YFUa.mjs → console-access-DM56j3dM.mjs} +2 -2
- package/.output/server/_ssr/{console-features-xaGDhRC9.mjs → console-features-DTYyXrWO.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-CV_EReEj.mjs → console-features-api-g5s9V5sz.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-D3xlQsuy.mjs → console-features-rpc-Cnmhvmsk.mjs} +3 -3
- package/.output/server/_ssr/{databaseConfig-XAvDetmn.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-BtRVBD0C.mjs → databaseRows-BZMFl5QV.mjs} +2 -2
- package/.output/server/_ssr/{deviceProfileToken-CwWb1lPq.mjs → deviceProfileToken-xzDLfE0T.mjs} +21 -5
- package/.output/server/_ssr/{dialog-DQR_QI_X.mjs → dialog-0oBrR9Cj.mjs} +4 -4
- package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
- package/.output/server/_ssr/{downloadBundle-DnoYpi36.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-C7PFnkCH.mjs → empty-tasgkoU9.mjs} +2 -2
- package/.output/server/_ssr/{failureReports-BA2eg11O.mjs → failureReports-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-BqYN8sZT.mjs → field-phtuBLMh.mjs} +2 -2
- package/.output/server/_ssr/{foldedPage-CqpVk31Q.mjs → foldedPage-CUjJqtlF.mjs} +1 -1
- package/.output/server/_ssr/{getBundleChildren-CdqFonhl.mjs → getBundleChildren-CnOf4Frp.mjs} +2 -2
- package/.output/server/_ssr/{input-group-Brv0mmyp.mjs → input-group-BTEoUANX.mjs} +2 -2
- package/.output/server/_ssr/{insights-CD1e3EnW.mjs → insights-BBzyKO95.mjs} +2 -2
- package/.output/server/_ssr/{insights--xI3A0KI.mjs → insights-CPDtpuXg.mjs} +5 -5
- package/.output/server/_ssr/{insights-Dd0VdO-1.mjs → insights-D4le8l6s.mjs} +31 -26
- package/.output/server/_ssr/{insights-api-Bt2XVa4Y.mjs → insights-api-D6J2HVtY.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-CXHg1lLV.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-7zH97WOO.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-DBGzXP5A.mjs → insights-failures-rpc-ChwlB9sg.mjs} +10 -10
- package/.output/server/_ssr/{insights-recovery-BhOg6kz2.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-C6fAh-i_.mjs → insights-recovery-rpc-B6_GT-_U.mjs} +6 -6
- package/.output/server/_ssr/{insights-rpc-pThKC9oj.mjs → insights-rpc-DG0GxsIL.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-iFN4UaUv.mjs → insights-search-LKeSNr4M.mjs} +4 -4
- package/.output/server/_ssr/{insights-usage-h8fipPTv.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-CGHZQ9jq.mjs → insights-usage-rpc-I0Eh5Z89.mjs} +6 -6
- package/.output/server/_ssr/{insights-usage-rpc-B-RLvdLZ.mjs → insights-usage-rpc-qnQWkNn2.mjs} +4 -4
- package/.output/server/_ssr/{insightsUsage-BjSiV_X_.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-xHmfwwa5.mjs → insights_.distribution-BF99IaZu.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-E6Ns2aN7.mjs → insights_.distribution-D2dZwvqQ.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-C6iXJ93Y.mjs → insights_.distribution-Dgv-_T7g.mjs} +14 -14
- package/.output/server/_ssr/{installations-D6Upc9Rt.mjs → installations-BHjU8FUI.mjs} +2 -2
- package/.output/server/_ssr/{installations-CZnN6slr.mjs → installations-C7TindNY.mjs} +4 -4
- package/.output/server/_ssr/{installations-7V-Xyui8.mjs → installations-DVTUpBGI.mjs} +11 -11
- package/.output/server/_ssr/{ios-devices-rpc-CXuHk24G.mjs → ios-devices-rpc-KtosHTCC.mjs} +18 -20
- package/.output/server/_ssr/iosDeviceCookie-B-8c7lMJ.mjs +155 -0
- package/.output/server/_ssr/{iosDeviceProfile-BESi_onx.mjs → iosDeviceProfile-CIEuY_kV.mjs} +13 -13
- package/.output/server/_ssr/{iosDevices-BmvvvZRo.mjs → iosDevices-CkLgS8_U.mjs} +4 -20
- package/.output/server/_ssr/{listReleases-DYYA5alS.mjs → listReleases-QF91GLE7.mjs} +3 -3
- package/.output/server/_ssr/native-artifact-BRNP_q-y.mjs +1532 -0
- package/.output/server/_ssr/{native-builds-BhDCE89P.mjs → native-builds-3WEAnb93.mjs} +22 -20
- package/.output/server/_ssr/{native-builds-BUojmVWC.mjs → native-builds-B6rWkcHL.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-BXBkklfA.mjs → native-builds-nRuXKypG.mjs} +68 -6
- package/.output/server/_ssr/{native-builds_._buildId-DRiCNDdO.mjs → native-builds_._buildId-BaykQRJl.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-DkMpG-OB.mjs → native-builds_._buildId-RFJXyul0.mjs} +21 -27
- package/.output/server/_ssr/{native-builds_.devices-DsOx1R36.mjs → native-builds_.devices-BzkeAX0K.mjs} +213 -93
- package/.output/server/_ssr/{native-builds_.devices-DSideebA.mjs → native-builds_.devices-D9EGVV1N.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildDownloadLink-DDAUVU8q.mjs → nativeBuildDownloadLink-A1aWZBDw.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-CcBrfTsc.mjs → nativeBuildInstall-XzMDX9iY.mjs} +8 -6
- package/.output/server/_ssr/{nativeBuilds-Cub0EUGN.mjs → nativeBuilds-DaF-TcfO.mjs} +4 -4
- package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
- package/.output/server/_ssr/{plugins-CX7wutet.mjs → plugins-D9CCkDjn.mjs} +6 -5
- package/.output/server/_ssr/publicConsoleBase-wTKw3_iB.mjs +15 -0
- package/.output/server/_ssr/{release-adoption-DeICczY7.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-BjMXMi9A.mjs → release-adoption-rpc-DoDlwfWB.mjs} +8 -8
- package/.output/server/_ssr/{releaseAdoption-kHZo8P90.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-D9dAMI17.mjs → releaseCatalogCompiler-CJ2Shida.mjs} +4 -3
- package/.output/server/_ssr/{releaseManagement-EPhok_Py.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DaZ7ifUF.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-C_DprbJz.mjs → remote-config-6lhdA4DB.mjs} +18 -18
- package/.output/server/_ssr/{remote-config-B1iZuZOF.mjs → remote-config-BMg2UurZ.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-BFTPcMfZ.mjs → remote-config-rpc-Ddg8dyxw.mjs} +4 -4
- package/.output/server/_ssr/{remote-config-C_q6FBE4.mjs → remote-config-u_T4AXyi.mjs} +2 -2
- package/.output/server/_ssr/{router-BDXPwfwl.mjs → router-CovCAswJ.mjs} +101 -61
- package/.output/server/_ssr/{routes-BJeztqpQ.mjs → routes-CTUvEVa6.mjs} +37 -33
- package/.output/server/_ssr/{routes-DpapxHLc.mjs → routes-DtkONaBi.mjs} +12 -11
- package/.output/server/_ssr/{runtime.server-CkSbWaZm.mjs → runtime.server-BUbb281Z.mjs} +4 -4
- package/.output/server/_ssr/{schema-3oDJJFWa.mjs → schema-CaIuQCXb.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-a4bLEdaP.mjs → schema-migration-rpc-DvmruDB6.mjs} +3 -3
- package/.output/server/_ssr/{select-C9HpIZxd.mjs → select-DJLTQgmc.mjs} +1 -1
- package/.output/server/_ssr/{server-C8ZmMWnn.mjs → server-BfWxoIjf.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-BrVL3L7R.mjs → sidebar-Bsfqid7Q.mjs} +6 -6
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-D3noqqOK.mjs → start-BaUpXI0L.mjs} +1 -1
- package/.output/server/_ssr/{switch-DtnsoZHO.mjs → switch-DckZkZBS.mjs} +3 -3
- package/.output/server/_ssr/{table-Bg7nCnct.mjs → table-DG8aRQBO.mjs} +1 -1
- package/.output/server/_ssr/{tabs-BEIoGLTL.mjs → tabs-Dblh3lL2.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-D0bP_Ume.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
- package/.output/server/_ssr/{dist-B6-irDRA.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
- package/.output/server/_ssr/{uuidv7-CmHbryZT.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-NmbU0MD2.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-CfDH9vVq.mjs +225 -0
- package/.output/server/index.mjs +430 -430
- package/package.json +7 -7
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/DataTable.tsx +18 -2
- package/src/components/TargetDisplay.tsx +33 -7
- package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
- package/src/components/features/bundles/BundleMetadata.tsx +1 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +6 -2
- package/src/components/features/insights/FailureReports.tsx +1 -0
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/ReleaseActivity.tsx +5 -1
- package/src/components/features/insights/UpdateFailures.tsx +1 -0
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +1 -0
- package/src/components/features/native-builds/IosDevicesPage.tsx +187 -38
- package/src/components/features/native-builds/IosInstall.tsx +122 -58
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +1 -2
- package/src/components/features/native-builds/NativeBuildsNav.tsx +2 -2
- package/src/components/features/native-builds/NativeBuildsTable.tsx +5 -1
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +1 -1
- package/src/components/features/releases/ReleaseEditorSheet.tsx +6 -5
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/dialog.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/lib/ios-devices-api.ts +148 -5
- package/src/lib/ios-devices-rpc.ts +17 -12
- package/src/lib/native-builds.ts +97 -4
- package/src/lib/server/deviceProfileToken.ts +37 -3
- package/src/lib/server/iosDeviceCookie.ts +239 -0
- package/src/lib/server/iosDeviceProfile.ts +4 -2
- package/src/lib/server/iosDevices.ts +0 -30
- package/src/routeTree.gen.ts +44 -0
- package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
- package/src/routes/[_]hot-updater/devices/request.ts +28 -0
- package/.output/public/assets/-native-builds-search-DdHwfe4q.js +0 -1
- package/.output/public/assets/IosInstall-CHI2C4Yd.js +0 -1
- package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +0 -1
- package/.output/public/assets/RelativeTime-B4PK8qDw.js +0 -1
- package/.output/public/assets/SandboxBadge-BVxHg_HF.js +0 -1
- package/.output/public/assets/TargetDisplay-KU7JhIWG.js +0 -1
- package/.output/public/assets/alert-dialog-Ch0QxRsa.js +0 -1
- package/.output/public/assets/api-keys-DLC8jjaM.js +0 -1
- package/.output/public/assets/api-keys-eDnzgFAf.js +0 -1
- package/.output/public/assets/arrow-left-DQjHJAnT.js +0 -1
- package/.output/public/assets/arrow-right-CXp_K3xK.js +0 -1
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +0 -1
- package/.output/public/assets/check-CqWNyG93.js +0 -1
- package/.output/public/assets/chevron-right-DNbYTBX1.js +0 -1
- package/.output/public/assets/dialog-BLj71-Nf.js +0 -1
- package/.output/public/assets/index-CgwVUC2n.js +0 -10
- package/.output/public/assets/input-group-XKLcUGoa.js +0 -1
- package/.output/public/assets/insights-C94CdeAA.js +0 -1
- package/.output/public/assets/insights-DILMVpk8.js +0 -2
- package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +0 -2
- package/.output/public/assets/insights_.distribution-CyAu3RN3.js +0 -1
- package/.output/public/assets/installations-BA01mqJE.js +0 -1
- package/.output/public/assets/loader-circle-iMqC-8ZE.js +0 -1
- package/.output/public/assets/native-builds-BMbws1g5.js +0 -2
- package/.output/public/assets/native-builds-xgHiHQML.js +0 -1
- package/.output/public/assets/native-builds_._buildId-B04z9yfk.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DaMmTcHo.js +0 -2
- package/.output/public/assets/native-builds_.devices-CTzpCVsb.js +0 -1
- package/.output/public/assets/native-builds_.devices-D_kl2-bc.js +0 -2
- package/.output/public/assets/package-BmfoZ5Zj.js +0 -1
- package/.output/public/assets/plus-Db0KxLZp.js +0 -1
- package/.output/public/assets/remote-config-Cxkr7_BP.js +0 -1
- package/.output/public/assets/remote-config-DAOyn5xL.js +0 -1
- package/.output/public/assets/remote-config-DXv25LX1.js +0 -6
- package/.output/public/assets/routes-DM3TyTLW.js +0 -2
- package/.output/public/assets/routes-Des97uK_.js +0 -1
- package/.output/public/assets/search-dJG2BYmx.js +0 -1
- package/.output/public/assets/send-DuMOCzbD.js +0 -1
- package/.output/public/assets/smartphone-D1C6BRd_.js +0 -1
- package/.output/public/assets/styles-BHLI87EH.css +0 -2
- package/.output/server/_ssr/publicConsoleBase-f67NLLXZ.mjs +0 -610
- package/.output/server/_tanstack-start-manifest_v-C_TPyfFP.mjs +0 -225
- /package/.output/public/assets/{uuidv7-DAoOOpz9.js → uuidv7-DgXZ1zRR.js} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights-MQrx_wbP.js","assets/ConsoleFeatureUnavailable-C0iDIboF.js","assets/sidebar-UnsNYOry.js","assets/console-features-api-De6tXQnd.js","assets/arrow-up-right-BPRe5soE.js","assets/NotFoundPage-CijSy63W.js","assets/link-D95E0fwF.js","assets/empty-DpSPWLc2.js","assets/insights-6d-iISFa.js","assets/alert-dialog-Dihztkem.js","assets/select-BAd2hAoW.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/tabs-B95QcXeT.js","assets/insights-usage-rpc-DdmD1Nuy.js","assets/valueToPercent-Bn8p2lng.js","assets/EventDetails-DglqzK6l.js","assets/insights-api-CXXCRZhF.js","assets/preload-helper-52zhjEsw.js","assets/copy-BxI24-g-.js","assets/download-ekENI2Sw.js","assets/input-group-DNfVeeYZ.js","assets/smartphone-lSZWrqxx.js","assets/badge-D4Tiwei-.js","assets/dist-BEIz5ojx.js","assets/HashValueDisplay-DKziWjEg.js","assets/InsightsPageHeader-DLH1MntM.js","assets/list-Dq40Mmoj.js","assets/arrow-right-jHG0fJt7.js","assets/chevron-right-CuYrscDY.js","assets/circle-off-BZFOMb8J.js","assets/refresh-cw-CpCxPYma.js","assets/rotate-cw-Bn3fIWmY.js","assets/undo-2-CGeTBZjC.js","assets/BundleIdDisplay-D8oR8mcP.js","assets/insights-search-CtEcj6lz.js","assets/uuidv7-DgXZ1zRR.js","assets/PlatformIcon-Kq3q98tU.js","assets/card-BfeRlTvj.js","assets/table-r_sYqKTQ.js","assets/api-B1z_XXrQ.js","assets/useMutation-BWX97JX2.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{r}from"./console-features-api-De6tXQnd.js";import{a as i}from"./insights-search-CtEcj6lz.js";var a=e(`/insights`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:t(()=>n(()=>import(`./insights-MQrx_wbP.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./insights-6d-iISFa.js`),__vite__mapDeps([8,2,9,10,11,12,13,14,15,6,16,17,18,19,20,21,22,23,24,25,26,3,27,7,28,4,29,30,31,32,33,34,35,36,37,38,39,40,41])),`component`),validateSearch:i});export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ConsoleFeatureUnavailable-C0iDIboF.js";var t=e;export{t as notFoundComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Hr as e,Oi as t,Vr as n,wi as r,zr as i}from"./sidebar-
|
|
1
|
+
import{Hr as e,Oi as t,Vr as n,wi as r,zr as i}from"./sidebar-UnsNYOry.js";import{n as a}from"./preload-helper-52zhjEsw.js";var o=n(`chart-no-axes-combined`,[[`path`,{d:`M12 16v5`,key:`zza2cw`}],[`path`,{d:`M16 14v7`,key:`1g90b9`}],[`path`,{d:`M20 10v11`,key:`1iqoj0`}],[`path`,{d:`m22 3-8.646 8.646a.5.5 0 0 1-.708 0L9.354 8.354a.5.5 0 0 0-.707 0L2 15`,key:`1fw8x9`}],[`path`,{d:`M4 18v3`,key:`1yp0dc`}],[`path`,{d:`M8 14v7`,key:`n3cwzv`}]]),s=n(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),c={"24h":{durationMs:864e5,intervalMs:36e5},"7d":{durationMs:7*864e5,intervalMs:6*36e5},"30d":{durationMs:30*864e5,intervalMs:864e5}},l=e=>Math.ceil(e/36e5)*36e5;function u(e){if(!e||e.platform!==`all`&&e.platform!==`ios`&&e.platform!==`android`||typeof e.channel!=`string`||!e.channel.trim()||e.channel.length>1024||e.releaseId!==void 0&&(typeof e.releaseId!=`string`||!e.releaseId.trim()||e.releaseId.length>36)||(e.window===void 0?e.releaseId===void 0:!Object.hasOwn(c,e.window)))throw Error(`Choose a platform, channel, and time window.`);return e}var d=({failedUpdates:e,downloads:t})=>e+t===0?null:e/(e+t),f=({failedInstallations:e,activeInstallations:t})=>t===0?null:Math.min(1,e/t),p=e=>e===null?`—`:`${(e*100).toFixed(2)}%`,m={check:`Update check`,download:`Download`,install:`Install`},h={network:`Network`,http:`HTTP error`,invalid_response:`Invalid response`,hash_mismatch:`Hash mismatch`,signature:`Signature`,patch:`Patch`,extract:`Extract`,storage:`Storage`,unknown:`No reason reported`},g=e=>m[e]??`Unknown stage`,_=e=>h[e]??`Unknown reason`,v=e=>[...e.httpStatus==null?[]:[`HTTP ${e.httpStatus}`],...e.originCode==null?[]:[e.originCode],...e.transport==null?[]:[e.transport],...e.resource==null?[]:[e.resource]],y=e=>{let t=e.errorMessage||(e.reason===`unknown`?`The client did not report a detailed cause`:_(e.reason));return[`${g(e.stage)} failed: ${t}`,...v(e)].join(` · `)},b=r({method:`GET`}).middleware([i]).handler(t(`0d1dacdd1e5ee6b100e5c142fb9af03602b6f2c6fe6af79312b36c223d7f8f97`)),x=r({method:`GET`}).middleware([i]).handler(t(`b4388826a9b515fb4d2113270aa8ded1c50ba13d7f07ac2b268c41396e87d0a3`)),S={rawDays:90,dailyDays:400},C=e=>`${e.toLocaleString(`en`)} ${e===1?`day`:`days`}`,w=({dailyDays:e})=>e>=364;r({method:`GET`}).middleware([i]).handler(t(`ff00311d412c8cdfa8ad5b0ba1eb6aa7471d0cc12170e6cc645deb91603d42dd`));var T=r({method:`GET`}).middleware([i]).handler(t(`d4c50f40701055145f24873dc90f3c55a5494457a6a03a743339b2ac4545eb19`)),E=r({method:`GET`}).middleware([i]).handler(t(`3c04bc6624be6dfdd80cf96819f9c6d0455e59a7bb4c0374b6afb0162ffd15b0`)),D=r({method:`GET`}).middleware([i]).handler(t(`6726f1ed9eda1f0cb4c1f1ad1023faee435ddcfd0b7c55ef08ca7f2f7f577370`)),O=r({method:`GET`}).middleware([i]).handler(t(`c6f18db42ac40385dbff247095197ee9f3fd3a97dc914efd368ce0ded1f098c6`)),k=r({method:`GET`}).middleware([i]).handler(t(`735c501f6d5ea81a445ff2b6b2ea6a1b589e3c6f63a465a881822c80ae71e7d1`)),A=3e4,j={reportingInstallations:e=>[`insights`,`reporting-installations`,e],events:e=>[`insights`,`events`,e],installations:e=>[`insights`,`installations`,e],installation:e=>[`insights`,`installation`,e],installationEvents:e=>[`insights`,`installation-events`,e]},M=(t,n)=>e({queryKey:j.events(t),queryFn:()=>T({data:t}),enabled:n,refetchOnWindowFocus:!0,staleTime:A}),N=(t,n)=>e({queryKey:j.installations(t),queryFn:()=>k({data:t}),enabled:n&&t.identity.length>0,staleTime:A}),P=(t,n)=>e({queryKey:j.installation(t),queryFn:()=>D({data:{installId:t}}),enabled:n&&t.length>0,staleTime:A}),F=(t,n)=>e({queryKey:j.installationEvents(t),queryFn:()=>E({data:t}),enabled:n&&t.installId.length>0,refetchOnWindowFocus:!0,staleTime:A}),I=(t,n=!0)=>e({queryKey:[`insights`,`update-failures`,t],queryFn:()=>b({data:u(t)}),enabled:n,refetchOnWindowFocus:!0,staleTime:A}),L=()=>e({queryKey:[`insights`,`retention`],queryFn:()=>O(),staleTime:1/0}).data??S,R=(e,t)=>a({queryKey:[`insights`,`failure-reports`,e],queryFn:({pageParam:t})=>x({data:{...e,cursor:t}}),initialPageParam:void 0,getNextPageParam:e=>e.nextCursor??void 0,enabled:t,staleTime:A});export{p as _,N as a,s as b,S as c,f as d,y as f,g,_ as h,P as i,C as l,d as m,M as n,L as o,v as p,F as r,I as s,R as t,w as u,l as v,o as x,c as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,Ri as t,Vi as n,at as r,gr as i,nt as a,rt as o}from"./sidebar-
|
|
1
|
+
import{Di as e,Ri as t,Vi as n,at as r,gr as i,nt as a,rt as o}from"./sidebar-UnsNYOry.js";import{b as s}from"./insights-api-CXXCRZhF.js";import{m as c,t as l}from"./uuidv7-DgXZ1zRR.js";var u=n(t(),1),d=e();function f({label:e,children:t}){let n=(0,u.useId)(),[c,l]=(0,u.useState)(!1);return(0,d.jsxs)(a,{open:c,onOpenChange:l,triggerId:n,children:[(0,d.jsx)(r,{id:n,"aria-describedby":c?`${n}-description`:void 0,closeOnClick:!1,onClick:()=>l(e=>!e),render:(0,d.jsx)(i,{"aria-label":e,className:`size-11 sm:size-7`,size:`icon`,variant:`ghost`}),children:(0,d.jsx)(s,{})}),(0,d.jsx)(o,{id:`${n}-description`,role:`tooltip`,className:`max-w-64`,side:`bottom`,children:t})]})}var p=e=>typeof e==`string`&&e.trim().length>0&&e.length<=1024?e:void 0,m=e=>e===`24h`||e===`7d`||e===`30d`?e:void 0,h=e=>e===`adoption`||e===`crashes`?e:void 0,g=e=>e===`12m`?e:m(e),_=`production`,v=e=>e===`all`||e===`ios`||e===`android`?e:void 0;function y(e){return{platform:v(e.platform),channel:p(e.channel),appVersion:p(e.appVersion),window:g(e.window),bundleWindow:m(e.bundleWindow),releaseId:p(e.releaseId),healthChart:h(e.healthChart),bundles:p(e.bundles)}}function b(e){return{...y(e),version:p(e.version),page:typeof e.page==`number`&&Number.isSafeInteger(e.page)&&e.page>0?e.page:void 0}}function x(e,t=Date.now()){if(!c(e))return`7d`;let n=t-l(e);return n<=864e5?`24h`:n<=7*864e5?`7d`:`30d`}var S=e=>e===void 0?void 0:[...new Set(e.split(`,`).filter(e=>e.length>0))];export{y as a,b as i,x as n,f as o,S as r,_ as t};
|
package/.output/public/assets/{insights-usage-rpc-BUCinjSN.js → insights-usage-rpc-DdmD1Nuy.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Di as e,Oi as t,Ri as n,Vi as r,bn as i,gn as a,kr as o,vr as s,wi as c,xr as l,zr as u}from"./sidebar-
|
|
1
|
+
import{Di as e,Oi as t,Ri as n,Vi as r,bn as i,gn as a,kr as o,vr as s,wi as c,xr as l,zr as u}from"./sidebar-UnsNYOry.js";import{r as d,t as f}from"./valueToPercent-Bn8p2lng.js";var p=r(n()),m=p.createContext(void 0);function h(){let e=p.useContext(m);if(e===void 0)throw Error(o(51));return e}var g=function(e){return e.complete=`data-complete`,e.indeterminate=`data-indeterminate`,e.progressing=`data-progressing`,e}({}),_={status(e){return e===`progressing`?{[g.progressing]:``}:e===`complete`?{[g.complete]:``}:e===`indeterminate`?{[g.indeterminate]:``}:null}},v=e();function y(e,t){return t==null?`indeterminate progress`:e||`${t}%`}var b=p.forwardRef(function(e,t){let{format:n,getAriaValueText:r=y,locale:o,max:s=100,min:c=0,value:u,render:f,className:h,children:g,style:b,...x}=e,[S,C]=p.useState(),w=i(n),T=`indeterminate`;Number.isFinite(u)&&(T=u===s?`complete`:`progressing`);let E=d(u,o,w.current),D=p.useMemo(()=>({status:T}),[T]),O={"aria-labelledby":S,"aria-valuemax":s,"aria-valuemin":c,"aria-valuenow":u??void 0,"aria-valuetext":r(E,u),role:`progressbar`,children:(0,v.jsxs)(p.Fragment,{children:[g,(0,v.jsx)(`span`,{role:`presentation`,style:a,children:`x`})]})},k=p.useMemo(()=>({formattedValue:E,max:s,min:c,setLabelId:C,state:D,status:T,value:u}),[E,s,c,C,D,T,u]),A=l(`div`,e,{state:D,ref:t,props:[O,x],stateAttributesMapping:_});return(0,v.jsx)(m.Provider,{value:k,children:A})}),x=p.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=h();return l(`div`,e,{state:o,ref:t,props:a,stateAttributesMapping:_})}),S=p.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{max:o,min:s,value:c,state:u}=h(),d=Number.isFinite(c)&&c!==null?f(c,s,o):null;return l(`div`,e,{state:u,ref:t,props:[{style:d==null?{}:{insetInlineStart:0,height:`inherit`,width:`${d}%`}},a],stateAttributesMapping:_})});function C({className:e,children:t,value:n,...r}){return(0,v.jsxs)(b,{value:n,"data-slot":`progress`,className:s(`w-full`,e),...r,children:[t,(0,v.jsx)(w,{children:(0,v.jsx)(T,{})})]})}function w({className:e,...t}){return(0,v.jsx)(x,{className:s(`relative flex h-1 w-full items-center overflow-x-hidden rounded-md bg-muted`,e),"data-slot":`progress-track`,...t})}function T({className:e,...t}){return(0,v.jsx)(S,{"data-slot":`progress-indicator`,className:s(`h-full bg-primary transition-transform motion-reduce:transition-none`,e),...t})}var E=c({method:`GET`}).middleware([u]).handler(t(`8a98cd9c178e4a54185d62c25a95f09d3d59850c43d3f5baa1563e1614ad942e`));export{C as n,E as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Di as t,Hr as n,_r as r,gr as i}from"./sidebar-
|
|
1
|
+
import{$ as e,Di as t,Hr as n,_r as r,gr as i}from"./sidebar-UnsNYOry.js";import{t as a}from"./link-D95E0fwF.js";import{t as o}from"./arrow-left-CxxDwBQs.js";import{t as s}from"./arrow-up-right-BPRe5soE.js";import{o as c,u as ee}from"./insights-api-CXXCRZhF.js";import{a as l,i as u,n as d,o as f,r as p,t as m}from"./select-BAd2hAoW.js";import{t as h}from"./rotate-cw-Bn3fIWmY.js";import{a as g,i as _,n as v,t as y}from"./badge-D4Tiwei-.js";import{a as te,o as ne}from"./insights-search-CtEcj6lz.js";import{a as re,i as b,n as x,o as S,t as C}from"./card-BfeRlTvj.js";import{a as w,t as T}from"./field-PkdRPD3A.js";import{i as E,o as D,r as O,t as k}from"./empty-DpSPWLc2.js";import{t as A}from"./PlatformIcon-Kq3q98tU.js";import{t as j}from"./insights_.distribution-DYgsR7-7.js";import{t as M}from"./BundleIdDisplay-D8oR8mcP.js";import{n as N,t as P}from"./insights-usage-rpc-DdmD1Nuy.js";import{c as ie,n as F,o as I,t as L}from"./InsightsPageHeader-DLH1MntM.js";var R=t(),z=20,B=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`,timeZone:`UTC`}),V=e=>e.releaseId??(e.builtinBundleId?`Built-in bundle ${e.builtinBundleId}`:`Unknown bundle`);function H({bundleId:e}){return(0,R.jsxs)(`div`,{className:`flex min-h-11 min-w-0 flex-wrap items-center gap-2 md:min-h-9`,children:[(0,R.jsx)(F,{}),(0,R.jsx)(M,{bundleId:e,className:`text-muted-foreground`})]})}function U(){let t=j.useSearch(),M=c(),F=j.useNavigate(),U={platform:t.platform??`all`,channel:t.channel??`production`,appVersion:t.appVersion,window:t.window??`24h`},W=n({queryKey:[`insights`,`app-usage`,U],queryFn:()=>P({data:U}),staleTime:3e4}),G=W.error?void 0:W.data,K=G?`since ${B.format(G.distributionSinceMs)}, 00:00 UTC`:`in this period`,q=(G?.bundleDistribution??[]).filter(e=>!t.version||e.appVersion===t.version),J=q.reduce((e,t)=>e+t.installations,0),Y=Math.max(1,Math.ceil(q.length/z)),X=Math.min(t.page??1,Y),Z=[...new Set([...G?.versions.map(e=>e.name)??[],...t.version?[t.version]:[]])],Q=te(t),$=e=>void F({search:{...t,page:void 0,...e}});return(0,R.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,R.jsx)(L,{view:`distribution`,overviewSearch:Q}),(0,R.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 px-4 py-6 sm:p-8`,children:(0,R.jsxs)(`div`,{className:`mx-auto flex w-full max-w-6xl flex-col gap-6`,children:[(0,R.jsxs)(a,{to:`/insights`,search:Q,className:r({variant:`ghost`,className:`h-11 w-fit sm:h-9`}),children:[(0,R.jsx)(o,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to overview`]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-4`,children:[(0,R.jsx)(`h2`,{className:`text-2xl font-semibold tracking-tight`,children:`Distribution`}),(0,R.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,R.jsx)(I,{twelveMonths:ee(M),window:U.window,onWindowChange:e=>$({window:e})}),(0,R.jsx)(i,{"aria-label":`Refresh distribution`,variant:`ghost`,size:`icon`,className:`size-11 sm:size-9`,disabled:W.isFetching,onClick:()=>void W.refetch(),children:(0,R.jsx)(h,{"aria-hidden":`true`})})]})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-4`,children:[(0,R.jsxs)(T,{className:`w-full sm:w-64`,children:[(0,R.jsx)(w,{htmlFor:`distribution-version`,children:`App version`}),(0,R.jsxs)(m,{items:Object.fromEntries([[`all`,`All versions`],...Z.map(e=>[`version:${e}`,e])]),value:t.version?`version:${t.version}`:`all`,onValueChange:e=>{e!==null&&$({version:e===`all`?void 0:e.slice(8)})},children:[(0,R.jsx)(l,{id:`distribution-version`,className:`min-h-11 w-full sm:min-h-9`,children:(0,R.jsx)(f,{})}),(0,R.jsx)(d,{children:(0,R.jsxs)(p,{children:[(0,R.jsx)(u,{value:`all`,children:`All versions`}),Z.map(e=>(0,R.jsx)(u,{value:`version:${e}`,children:e},e))]})})]})]}),(0,R.jsxs)(`div`,{className:`flex min-h-9 flex-wrap items-center gap-2`,"aria-label":`Distribution scope`,children:[(0,R.jsxs)(y,{variant:`outline`,className:`gap-1.5`,children:[U.platform===`all`?null:(0,R.jsx)(A,{platform:U.platform,className:`size-3.5`}),U.platform===`all`?`All platforms`:U.platform===`ios`?`iOS`:`Android`]}),(0,R.jsx)(y,{variant:`outline`,children:U.channel}),U.appVersion?(0,R.jsxs)(y,{variant:`outline`,children:[`Reports from `,U.appVersion]}):null]})]}),(0,R.jsxs)(C,{"aria-label":`Bundles by app version`,role:`region`,className:`min-w-0`,children:[(0,R.jsxs)(re,{className:`flex flex-col gap-3`,children:[(0,R.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,R.jsx)(S,{children:`Bundles by app version`}),(0,R.jsxs)(ne,{label:`How bundle distribution is counted`,children:[`Each installation counts once, by its latest report`,` `,K,`. Shares are within each app version. Built-in bundle: the bundle the native build shipped, by its ID. Unknown bundle: no deployment and no built-in bundle ID.`]})]}),(0,R.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-1`,children:[W.isPending?(0,R.jsx)(e,{className:`h-9 w-16`}):(0,R.jsx)(`p`,{className:`text-3xl font-semibold tabular-nums`,children:G?`${G.truncated?`≥`:``}${J.toLocaleString()}`:`—`}),(0,R.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Reporting installations`})]})]}),(0,R.jsxs)(x,{className:`flex min-w-0 flex-col gap-4`,children:[G?.truncated?(0,R.jsxs)(v,{children:[(0,R.jsx)(g,{children:`Partial history`}),(0,R.jsxs)(_,{children:[`Counts and shares reflect reports since`,` `,new Date(G.sinceMs).toLocaleString(`en`,{timeZone:`UTC`}),` `,`UTC. Choose a shorter period for a more complete view.`]})]}):null,W.isPending?(0,R.jsx)(e,{"aria-label":`Loading bundle distribution`,className:`h-64`}):W.error?(0,R.jsxs)(`div`,{className:`flex flex-col items-start gap-4`,children:[(0,R.jsx)(ie,{error:W.error,fallbackTitle:`Distribution unavailable`}),(0,R.jsx)(i,{variant:`outline`,onClick:()=>void W.refetch(),children:`Retry distribution`})]}):q.length===0?(0,R.jsxs)(k,{children:[(0,R.jsxs)(E,{children:[(0,R.jsx)(D,{children:`No bundles reported`}),(0,R.jsx)(O,{children:`Choose another version or period, or change the filters in the overview.`})]}),(0,R.jsx)(i,{variant:`outline`,onClick:()=>$({version:void 0}),children:`Show all versions`})]}):(0,R.jsxs)(`div`,{className:`min-w-0`,children:[(0,R.jsxs)(`div`,{"aria-hidden":`true`,className:`hidden grid-cols-[8rem_minmax(0,1fr)_7rem_7rem] gap-4 border-b px-3 pb-3 text-xs text-muted-foreground md:grid`,children:[(0,R.jsx)(`span`,{children:`App version`}),(0,R.jsx)(`span`,{children:`Bundle ID`}),(0,R.jsx)(`span`,{className:`text-right`,children:`Active installations`}),(0,R.jsx)(`span`,{className:`text-right`,children:`Version share`})]}),(0,R.jsx)(`ul`,{"aria-label":`Bundle distribution`,className:`divide-y`,children:q.slice((X-1)*z,X*z).map(e=>{let t=G?.versions.find(t=>t.name===e.appVersion)?.installations??0,n=t>0?e.installations/t*100:0;return(0,R.jsxs)(`li`,{className:`grid min-w-0 grid-cols-[minmax(0,1fr)_auto] items-center gap-x-4 gap-y-3 px-1 py-4 md:grid-cols-[8rem_minmax(0,1fr)_7rem_7rem] md:px-3`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`truncate text-sm font-medium`,title:e.appVersion,children:e.appVersion}),(0,R.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted-foreground`,children:[(0,R.jsx)(A,{platform:e.platform,className:`size-3.5`}),e.platform===`ios`?`iOS`:`Android`]})]}),(0,R.jsxs)(`div`,{className:`col-span-2 row-start-2 min-w-0 md:col-span-1 md:row-auto`,children:[e.releaseId?(0,R.jsxs)(a,{to:`/`,search:{releaseId:e.releaseId},"aria-label":`Review bundle ${e.releaseId} for app version ${e.appVersion}`,className:`flex min-h-11 min-w-0 items-center gap-2 text-xs underline-offset-4 hover:underline md:min-h-9`,children:[(0,R.jsx)(`span`,{className:`break-all font-mono`,children:e.releaseId}),(0,R.jsx)(s,{"aria-hidden":`true`,className:`size-3.5 shrink-0`})]}):e.builtinBundleId?null:(0,R.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Unknown bundle`}),e.builtinBundleId?(0,R.jsx)(H,{bundleId:e.builtinBundleId}):null]}),(0,R.jsxs)(`div`,{className:`col-start-2 row-start-1 text-right md:col-auto md:row-auto`,children:[(0,R.jsx)(`span`,{className:`text-sm font-medium tabular-nums`,children:e.installations.toLocaleString()}),(0,R.jsx)(`span`,{className:`ml-1 text-xs text-muted-foreground md:sr-only`,children:`active`}),(0,R.jsxs)(`p`,{className:`mt-1 text-xs tabular-nums text-muted-foreground md:hidden`,children:[n.toFixed(1),`% of version`]})]}),(0,R.jsxs)(`div`,{className:`hidden flex-col gap-2 md:flex`,children:[(0,R.jsxs)(`span`,{className:`text-right text-sm tabular-nums`,children:[n.toFixed(1),`%`]}),(0,R.jsx)(N,{"aria-label":`${V(e)} share in ${e.appVersion} on ${e.platform}`,value:n})]})]},JSON.stringify([e.appVersion,e.platform,e.releaseId,e.builtinBundleId]))})})]})]}),G&&q.length>0?(0,R.jsxs)(b,{className:`flex flex-wrap items-center justify-between gap-3 border-t pt-4`,children:[(0,R.jsxs)(`p`,{className:`text-xs tabular-nums text-muted-foreground`,children:[(X-1)*z+1,`–`,Math.min(X*z,q.length),` of `,q.length]}),(0,R.jsxs)(`nav`,{"aria-label":`Distribution pages`,className:`flex gap-2`,children:[(0,R.jsx)(i,{variant:`outline`,className:`h-11 sm:h-9`,disabled:X<=1,onClick:()=>$({page:X-1}),children:`Previous`}),(0,R.jsx)(i,{variant:`outline`,className:`h-11 sm:h-9`,disabled:X>=Y,onClick:()=>$({page:X+1}),children:`Next`})]})]}):null]})]})})]})}export{U as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights_.distribution-REbBAqgL.js","assets/ConsoleFeatureUnavailable-C0iDIboF.js","assets/sidebar-UnsNYOry.js","assets/console-features-api-De6tXQnd.js","assets/arrow-up-right-BPRe5soE.js","assets/NotFoundPage-CijSy63W.js","assets/link-D95E0fwF.js","assets/empty-DpSPWLc2.js","assets/insights_.distribution-DATeWpQS.js","assets/select-BAd2hAoW.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/insights-usage-rpc-DdmD1Nuy.js","assets/valueToPercent-Bn8p2lng.js","assets/arrow-left-CxxDwBQs.js","assets/insights-api-CXXCRZhF.js","assets/preload-helper-52zhjEsw.js","assets/rotate-cw-Bn3fIWmY.js","assets/badge-D4Tiwei-.js","assets/BundleIdDisplay-D8oR8mcP.js","assets/insights-search-CtEcj6lz.js","assets/uuidv7-DgXZ1zRR.js","assets/PlatformIcon-Kq3q98tU.js","assets/InsightsPageHeader-DLH1MntM.js","assets/tabs-B95QcXeT.js","assets/list-Dq40Mmoj.js","assets/card-BfeRlTvj.js","assets/field-PkdRPD3A.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{r}from"./console-features-api-De6tXQnd.js";import{i}from"./insights-search-CtEcj6lz.js";var a=e(`/insights_/distribution`)({beforeLoad:({context:e})=>r(e.queryClient,`insightsAnalytics`),notFoundComponent:t(()=>n(()=>import(`./insights_.distribution-REbBAqgL.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./insights_.distribution-DATeWpQS.js`),__vite__mapDeps([8,2,9,10,11,12,13,6,14,4,15,16,17,18,19,20,21,22,23,24,3,25,26,7,27])),`component`),validateSearch:i});export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ConsoleFeatureUnavailable-C0iDIboF.js";var t=e;export{t as notFoundComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ConsoleFeatureUnavailable-C0iDIboF.js";var t=e;export{t as notFoundComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Br as t,Di as n,Ri as r,Vi as i,_r as a,et as o,gr as s,vr as c}from"./sidebar-yC7KdImc.js";import{h as l,i as u,m as d,t as f}from"./link-CN3iHC4A.js";import{c as p,s as m}from"./preload-helper-CRQjUQaZ.js";import{a as h,n as g,o as _,r as v,t as y}from"./EventDetails-bDOYte1z.js";import{t as b}from"./arrow-left-DQjHJAnT.js";import{t as x}from"./arrow-up-right-BFafIOrq.js";import{a as S,c as C,i as w,l as T,n as E,o as ee,r as te}from"./insights-api-B6Gj74n5.js";import{t as D}from"./check-CqWNyG93.js";import{a as O}from"./useCompositeListItem-lAmUsXcc.js";import{t as k}from"./refresh-cw-BHhBYjS8.js";import{i as A,n as j,r as M,t as N}from"./input-group-XKLcUGoa.js";import{t as P}from"./search-dJG2BYmx.js";import{a as F,n as I,o as L,r as R,t as z}from"./card-CyHYmHue.js";import{a as B,i as ne,n as re,o as ie,r as ae,t as oe}from"./installations-BsD6LgNc.js";import{a as se,t as ce}from"./field-CdhSgWhI.js";import{a as V,i as H,n as le,o as U,r as W,t as G}from"./table-D8YjT_ht.js";import{n as ue,t as K}from"./HashValueDisplay-D2f0HmyU.js";import{a as de,c as q,n as fe,r as pe,t as me}from"./InsightsPageHeader-Cj2ROSQO.js";function he(){l(u(),!0)}function ge(e){return he(),d(u(),e)}function _e(e){let t=u();return p(t.stores.location,m(e,t))}var J=i(r(),1),Y=n();function ve({events:e,formatter:t,renderIdentity:n}){return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`px-4 pb-2 text-xs text-muted-foreground sm:px-6`,children:`Time in your browser zone`}),(0,Y.jsx)(`ol`,{"aria-label":`Events`,className:`divide-y border-y`,children:e.map(e=>(0,Y.jsxs)(`li`,{className:`flex min-w-0 flex-col gap-3 px-4 py-4 sm:px-6`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-4 gap-y-1`,children:[(0,Y.jsx)(v,{event:e}),(0,Y.jsx)(`div`,{className:`text-xs tabular-nums`,children:(0,Y.jsx)(g,{value:e.receivedAtMs,formatter:t,touch:!0})})]}),n?.(e),(0,Y.jsxs)(`dl`,{className:`flex flex-wrap gap-x-2 gap-y-1 text-sm`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{className:`sr-only`,children:`App`}),(0,Y.jsxs)(`dd`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]})]}),(0,Y.jsxs)(`div`,{className:`min-w-0 text-muted-foreground`,children:[(0,Y.jsx)(`dt`,{className:`sr-only`,children:`Channel`}),(0,Y.jsx)(`dd`,{className:`wrap-anywhere`,children:e.channel})]})]}),(0,Y.jsx)(`div`,{className:`text-xs`,"aria-label":`Bundle`,children:(0,Y.jsx)(y,{event:e,touch:!0})})]},e.id))})]})}function X({hasPrevious:e,label:t,nextCursor:n,onNext:r,onPrevious:i,pageLength:a,pageNumber:o}){return(0,Y.jsxs)(`nav`,{"aria-label":`${t} pagination`,className:`flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 sm:px-6`,children:[(0,Y.jsxs)(`span`,{className:`text-xs text-muted-foreground tabular-nums`,children:[`Page `,o,` · `,a.toLocaleString(),` rows`]}),(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsx)(s,{className:`h-11 min-w-11 px-3 lg:h-8 lg:min-w-0 lg:px-2`,disabled:!e,onClick:i,size:`sm`,type:`button`,variant:`outline`,children:`Previous`}),(0,Y.jsx)(s,{className:`h-11 min-w-11 px-3 lg:h-8 lg:min-w-0 lg:px-2`,disabled:n===null,onClick:r,size:`sm`,type:`button`,variant:`outline`,children:`Next`})]})]})}var ye=e=>ae.filter((t,n)=>n===0||B[t].durationMs<=e*864e5);function be({event:e,eventsLocation:t,touch:n=!1}){return(0,Y.jsxs)(`div`,{className:n?`flex min-w-0 flex-wrap items-center justify-between gap-2`:`flex min-w-0 flex-col items-start gap-2`,children:[(0,Y.jsxs)(f,{className:a({className:n?`-ml-2 h-auto min-h-11 min-w-0 flex-1 justify-start gap-2 whitespace-normal text-sm`:`-ml-2 max-w-full justify-start`,size:`sm`,variant:`ghost`}),to:`/installations`,search:{...t,query:e.installId||void 0,installId:e.installId},state:e=>({insightsPagination:{eventsBack:e.insightsPagination?.eventsBack}}),"aria-label":`View history for ${e.userId??`anonymous installation`} (${e.installId})`,children:[(0,Y.jsx)(`span`,{className:n?`min-w-0 text-left wrap-anywhere`:`truncate`,children:e.userId??`Anonymous installation`}),(0,Y.jsx)(x,{"aria-hidden":`true`,"data-icon":`inline-end`})]}),(0,Y.jsx)(K,{value:e.installId,maxLength:13,buttonClassName:n?`min-h-11 px-3`:void 0})]})}function xe({children:t,description:n,error:r,eventsLocation:i,history:a,isFetching:o,isLoading:c,onNext:l,onPrevious:u,onRangeChange:d,onRefresh:f,pageNumber:p,range:m,rawDays:h=90,title:b=`All events`}){let x=_(),S=p>1,C=ye(h),w=m===void 0?void 0:ie(m),T=w!==void 0&&C.includes(w)?w:void 0,E=T!==void 0&&d?(0,Y.jsx)(s,{className:`h-11 px-3 lg:h-8`,onClick:()=>d(T),type:`button`,variant:`outline`,children:`Show the last ${B[T].period}`}):null;return(0,Y.jsxs)(z,{className:`@container min-w-0 shadow-sm`,"aria-busy":o,children:[(0,Y.jsxs)(F,{className:`gap-4 p-4 sm:p-6`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,Y.jsx)(L,{children:(0,Y.jsx)(`h2`,{children:b})}),(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[m!==void 0&&d?(0,Y.jsx)(de,{label:`Time range`,onPeriodChange:d,period:m,periods:C.map(e=>({value:e,name:`Last ${B[e].period}`}))}):null,(0,Y.jsxs)(s,{className:`h-11 lg:h-8`,disabled:o,onClick:f,size:`lg`,variant:`outline`,children:[(0,Y.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]})]})]}),n?(0,Y.jsx)(R,{children:n}):null]}),t]}),(0,Y.jsx)(I,{className:`min-w-0 p-0`,children:c?(0,Y.jsxs)(`div`,{className:`flex flex-col gap-4 p-6`,role:`status`,"aria-label":`Loading events`,children:[(0,Y.jsx)(e,{className:`h-12 w-full`}),(0,Y.jsx)(e,{className:`h-12 w-full`}),(0,Y.jsx)(e,{className:`h-12 w-full`})]}):r?(0,Y.jsx)(`div`,{className:`px-6 pb-6`,children:(0,Y.jsx)(q,{error:r,fallbackTitle:`Event history unavailable`})}):a?(0,Y.jsxs)(Y.Fragment,{children:[a.data.length>0?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`@[58rem]:hidden`,children:(0,Y.jsx)(ve,{events:a.data,formatter:x,renderIdentity:e=>(0,Y.jsx)(be,{event:e,eventsLocation:i,touch:!0})})}),(0,Y.jsx)(`div`,{className:`hidden @[58rem]:block`,children:(0,Y.jsxs)(G,{className:`min-w-4xl table-fixed`,children:[(0,Y.jsx)(V,{children:(0,Y.jsxs)(U,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,Y.jsx)(H,{className:`w-64`,children:`Time`}),(0,Y.jsx)(H,{className:`w-48`,children:`Event`}),(0,Y.jsx)(H,{className:`w-48`,children:`User / installation`}),(0,Y.jsx)(H,{className:`w-32`,children:`App`}),(0,Y.jsx)(H,{className:`w-52`,children:`Bundle`})]})}),(0,Y.jsx)(le,{children:a.data.map(e=>(0,Y.jsxs)(U,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,Y.jsx)(W,{className:`whitespace-normal text-xs tabular-nums`,children:(0,Y.jsx)(g,{value:e.receivedAtMs,formatter:x})}),(0,Y.jsx)(W,{children:(0,Y.jsx)(v,{event:e})}),(0,Y.jsx)(W,{children:(0,Y.jsx)(be,{event:e,eventsLocation:i})}),(0,Y.jsx)(W,{className:`whitespace-normal text-xs`,children:(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Y.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,Y.jsx)(W,{className:`whitespace-normal text-xs`,children:(0,Y.jsx)(y,{event:e})})]},e.id))})]})})]}):(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 px-4 pb-4 sm:px-6 sm:pb-6`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:S?`No older events in this range.`:m===void 0?b===`All events`?`No events recorded yet`:`No matching reports in this period`:`No events in the last ${B[m].period}.`}),S?null:E]}),m!==void 0&&a.nextCursor===null&&(a.data.length>0||S)?(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 sm:px-6`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Start of range reached`}),E]}):null,a.data.length>0||S||a.nextCursor?(0,Y.jsx)(X,{hasPrevious:S,label:b,nextCursor:a.nextCursor,onNext:l,onPrevious:u,pageLength:a.data.length,pageNumber:p}):null]}):null})]})}var Se=e=>e.userId??`—`,Ce=e=>`lastKnownBundleId`in e?e.lastKnownBundleId:e.type===`UPDATE_DOWNLOADED`||e.type===`UPDATE_FAILED`?e.fromBundleId:e.toBundleId;function we({error:t,history:n,isLoading:r,onNext:i,onPrevious:a,onRefresh:c,pageNumber:l,retention:u=C,selectedEvent:d,selectedInstallId:f}){let p=_(),m=d?Ce(d):void 0,b=d&&`pendingBundleId`in d?d.pendingBundleId:d&&`type`in d&&d.type===`UPDATE_DOWNLOADED`?d.toBundleId:null;return(0,Y.jsxs)(z,{className:`@container min-h-0 min-w-0 shadow-sm`,children:[(0,Y.jsx)(F,{className:`p-4 sm:p-6`,children:(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[(0,Y.jsx)(L,{className:`text-sm font-medium`,children:(0,Y.jsx)(`h2`,{children:f===void 0?`Select an installation`:`Installation history`})}),f===void 0?null:(0,Y.jsxs)(R,{children:[`Bundle changes and update failures are kept for`,` `,T(u.rawDays),`; the latest report, for`,` `,T(u.dailyDays),` after the installation last reports.`]})]}),c&&f!==void 0?(0,Y.jsxs)(s,{className:`h-11 lg:h-8`,size:`lg`,variant:`outline`,onClick:c,disabled:r,children:[(0,Y.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]}):null]})}),(0,Y.jsxs)(I,{className:`min-h-0 p-0`,children:[f!==void 0&&d?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`section`,{"aria-labelledby":`latest-installation-state`,className:`px-4 pb-4 sm:px-6 sm:pb-6`,children:[(0,Y.jsx)(`h3`,{className:`sr-only`,id:`latest-installation-state`,children:`Latest reported state`}),(0,Y.jsxs)(`dl`,{className:`grid grid-cols-2 gap-4 @[36rem]:grid-cols-3`,children:[(0,Y.jsxs)(`div`,{className:`col-span-2 min-w-0 @[36rem]:col-span-1`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`User ID`}),(0,Y.jsx)(`dd`,{className:`mt-1 text-sm font-medium wrap-anywhere`,children:Se(d)})]}),(0,Y.jsxs)(`div`,{className:`min-w-0`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Install ID`}),(0,Y.jsx)(`dd`,{className:`mt-1 font-mono text-xs`,children:(0,Y.jsx)(K,{value:f,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`})})]}),(0,Y.jsxs)(`div`,{className:`min-w-0`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Last known bundle`}),(0,Y.jsxs)(`dd`,{className:`mt-1 flex min-w-0 flex-wrap items-center gap-2 font-mono text-xs`,children:[m?(0,Y.jsx)(K,{value:m,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`}):`—`,pe(m,d.minBundleId)?(0,Y.jsx)(fe,{}):null]})]}),b?(0,Y.jsxs)(`div`,{className:`col-span-2 min-w-0`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Downloaded · Not launched yet`}),(0,Y.jsx)(`dd`,{className:`mt-1 text-xs`,children:(0,Y.jsx)(K,{value:b})})]}):null]}),d.httpResponse?(0,Y.jsx)(`div`,{className:`mt-4`,children:(0,Y.jsx)(h,{event:d})}):null]}),(0,Y.jsx)(o,{})]}):null,f===void 0?null:r?(0,Y.jsxs)(`div`,{className:`flex flex-col gap-3 p-6`,role:`status`,"aria-label":`Loading installation history`,children:[(0,Y.jsx)(e,{className:`h-10 w-full`}),(0,Y.jsx)(e,{className:`h-10 w-full`}),(0,Y.jsx)(e,{className:`h-10 w-full`})]}):t?(0,Y.jsx)(`div`,{className:`p-6`,children:(0,Y.jsx)(q,{error:t instanceof Error?t:Error(),fallbackTitle:`Installation history unavailable`})}):n&&n.data.length>0?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`@[48rem]:hidden`,children:(0,Y.jsx)(ve,{events:n.data,formatter:p})}),(0,Y.jsx)(`div`,{className:`hidden @[48rem]:block`,children:(0,Y.jsxs)(G,{className:`min-w-3xl table-fixed`,children:[(0,Y.jsx)(V,{children:(0,Y.jsxs)(U,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,Y.jsx)(H,{className:`w-64`,children:`Time`}),(0,Y.jsx)(H,{className:`w-48`,children:`Event`}),(0,Y.jsx)(H,{className:`w-32`,children:`App`}),(0,Y.jsx)(H,{className:`w-52`,children:`Bundle`})]})}),(0,Y.jsx)(le,{children:n.data.map(e=>(0,Y.jsxs)(U,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,Y.jsx)(W,{className:`whitespace-normal text-xs tabular-nums`,children:(0,Y.jsx)(g,{value:e.receivedAtMs,formatter:p})}),(0,Y.jsx)(W,{children:(0,Y.jsx)(v,{event:e})}),(0,Y.jsx)(W,{className:`whitespace-normal text-xs`,children:(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Y.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,Y.jsx)(W,{className:`whitespace-normal text-xs`,children:(0,Y.jsx)(y,{event:e})})]},e.id))})]})}),(0,Y.jsx)(X,{hasPrevious:l>1,label:`Installation history`,nextCursor:n.nextCursor,onNext:i,onPrevious:a,pageLength:n.data.length,pageNumber:l})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`p-6 text-sm text-muted-foreground`,children:l>1?`No older bundle changes.`:`No bundle changes recorded yet.`}),n&&(l>1||n.nextCursor)?(0,Y.jsx)(X,{hasPrevious:l>1,label:`Installation history`,nextCursor:n.nextCursor,onNext:i,onPrevious:a,pageLength:0,pageNumber:l}):null]})]})]})}var Te=e=>e.lastKnownBundleId,Ee=e=>e.userId??`—`;function De({error:e,onNext:t,onPrevious:n,onSelect:r,pageNumber:i,results:o,selectedInstallId:l}){let[u,d]=(0,J.useState)(!1),f=(0,J.useId)(),p=(0,J.useRef)(null),m=!e&&o&&o.data.length>0;return(0,Y.jsxs)(z,{className:`min-h-0 min-w-0 shadow-sm`,children:[(0,Y.jsx)(F,{className:`p-4 sm:px-6`,children:(0,Y.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,Y.jsx)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:(0,Y.jsx)(L,{className:`text-sm font-medium`,children:(0,Y.jsx)(`h2`,{children:`Matching installations`})})}),(0,Y.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:m?(0,Y.jsx)(s,{"aria-controls":f,"aria-expanded":u,"aria-label":u?`Hide matching installations`:`Show matching installations`,className:`size-11 lg:hidden`,onClick:()=>d(!u),ref:p,size:`icon-lg`,variant:`ghost`,children:(0,Y.jsx)(O,{"aria-hidden":`true`,className:c(u&&`rotate-180`)})}):null})]})}),(0,Y.jsxs)(I,{className:c(`min-h-0 p-0`,m&&!u&&`hidden lg:block`),id:f,children:[e?(0,Y.jsx)(`div`,{className:`p-6`,children:(0,Y.jsx)(q,{error:e instanceof Error?e:Error(),fallbackTitle:`Installation search unavailable`})}):o&&o.data.length>0?(0,Y.jsx)(`ul`,{"aria-label":`Matching installations`,className:`divide-y`,children:o.data.map(e=>{let t=Te(e),n=e.installId===l;return(0,Y.jsx)(`li`,{children:(0,Y.jsxs)(`button`,{"aria-label":`${Ee(e)}, install ID ${e.installId}`,"aria-pressed":n,className:`group flex w-full min-w-0 flex-col gap-2 border-l-2 border-transparent px-4 py-4 text-left outline-none transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:bg-muted/40 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/30 aria-pressed:border-primary aria-pressed:bg-muted/60 motion-reduce:transition-none sm:px-6`,onClick:()=>{r(e.installId),d(!1),p.current?.focus()},type:`button`,children:[(0,Y.jsxs)(`span`,{className:`flex w-full min-w-0 items-center justify-between gap-3`,children:[(0,Y.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium`,children:Ee(e)}),n?(0,Y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs font-medium text-primary`,children:[(0,Y.jsx)(D,{"aria-hidden":`true`,className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`sr-only`,children:`Selected`})]}):null]}),(0,Y.jsx)(`span`,{className:`flex flex-wrap items-center gap-2`,children:(0,Y.jsx)(`span`,{className:`font-mono text-xs`,title:e.installId,children:ue(e.installId)})}),(0,Y.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Bundle`}),t?(0,Y.jsx)(`span`,{className:`font-mono text-xs`,title:t,children:ue(t)}):(0,Y.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`—`})]})]})},e.installId)})}):(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 p-4 sm:px-6`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No matches`}),(0,Y.jsx)(`a`,{className:a({variant:`outline`,className:`h-11 px-3 lg:h-8`}),href:`#installation-history-search`,children:`Edit search`})]}),o&&(o.data.length>0||i>1||o.nextCursor)?(0,Y.jsx)(X,{hasPrevious:i>1,label:`Installation results`,nextCursor:o.nextCursor,onNext:t,onPrevious:n,pageLength:o.data.length,pageNumber:i}):null]})]})}function Oe({draftQuery:e,onDraftQueryChange:n,onSubmit:r,onClear:i}){return(0,Y.jsx)(`form`,{"aria-label":`Find installation`,onSubmit:t=>{t.preventDefault(),e.trim()&&r()},role:`search`,children:(0,Y.jsxs)(ce,{className:`gap-2`,children:[(0,Y.jsx)(se,{className:`sr-only`,htmlFor:`installation-history-search`,children:`User ID or installation ID`}),(0,Y.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,Y.jsxs)(N,{className:`h-11 w-auto min-w-0 flex-1 basis-44 lg:h-8`,children:[(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{"aria-hidden":`true`})}),(0,Y.jsx)(A,{autoComplete:`off`,className:`h-11 text-base md:text-base lg:h-8 lg:text-xs`,id:`installation-history-search`,maxLength:1024,name:`installation`,onChange:e=>n(e.target.value),placeholder:`User ID or installation ID`,spellCheck:!1,type:`search`,value:e}),e.length>0?(0,Y.jsx)(j,{align:`inline-end`,children:(0,Y.jsx)(M,{"aria-label":`Clear installation lookup`,className:`size-11 lg:size-5`,onClick:i,size:`icon-xs`,children:(0,Y.jsx)(t,{"aria-hidden":`true`})})}):null]}),(0,Y.jsx)(s,{"aria-label":`Find installation`,className:`h-11 px-3 lg:h-8`,disabled:e.trim().length===0,size:`lg`,type:`submit`,variant:`outline`,children:`Find`})]})]})})}function ke(){return(0,Y.jsxs)(`div`,{className:`grid items-stretch gap-6 lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`,children:[(0,Y.jsx)(e,{className:`h-64 w-full lg:h-full`}),(0,Y.jsx)(e,{className:`h-64 w-full lg:h-full`})]})}var Ae=20,je=50,Z=()=>Date.now(),Q=(e,t)=>[...e,t??``],$=e=>({cursor:e?.at(-1)||void 0,stack:e.slice(0,-1)});function Me(){let e=oe.useSearch(),t=oe.useNavigate(),n=ee(),[r,i]=(0,J.useState)(e.query??``),[a]=(0,J.useState)(Z),[o]=(0,J.useState)(Z),c=_e({select:e=>e.state.insightsPagination}),l=c?.eventsBack??[],u=c?.searchBack??[],d=c?.historyBack??[],f=e.query?.trim()??``,p=f.length>0,m=e.installId!==void 0,h=p||m,g=e.eventsBefore??a,_=e.eventsRange??`7d`,v=e.historyBefore??o,y=(n,r=!1,i={})=>{t({to:`/installations`,search:{...e,...n},state:e=>({...e,insightsPagination:{...e.insightsPagination,...i}}),replace:r})};(0,J.useEffect)(()=>{i(e.query??``)},[e.query]),(0,J.useEffect)(()=>{e.eventsBefore===void 0&&y({eventsBefore:g},!0)},[g,e.eventsBefore]),(0,J.useEffect)(()=>{m&&e.historyBefore===void 0&&y({historyBefore:v},!0)},[m,v,e.historyBefore]);let x=E({...ne(_,g),cursor:e.eventsCursor,limit:20},!h),C=S({cursor:e.searchCursor,identity:f,limit:Ae},p);(0,J.useEffect)(()=>{let e=C.data?.data[0]?.installId;!p||m||e===void 0||y({historyBefore:Z(),historyCursor:void 0,installId:e},!0,{historyBack:[]})},[p,m,C.data?.data]);let D=w(e.installId??``,m),O=te({beforeReceivedAtMs:v,cursor:e.historyCursor,installId:e.installId??``,limit:je},m),k=D.data??C.data?.data.find(({installId:t})=>t===e.installId)??O.data?.data[0],A=h?`installation-history-${e.historyCursor??`first`}`:`all-events-${e.eventsCursor??`first`}`,j=(0,J.useRef)(null),M=ge({id:A,getKey:re});(0,J.useLayoutEffect)(()=>{!h&&!x.isLoading&&j.current&&(j.current.scrollTop=M?.scrollY??0)},[x.isLoading,h,M?.scrollY,A]);let N=()=>{i(``),y({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:void 0,searchCursor:void 0},!1,{historyBack:[],searchBack:[]})},P=(0,Y.jsx)(Oe,{draftQuery:r,onClear:N,onDraftQueryChange:i,onSubmit:()=>{let e=r.trim();if(!e){N();return}y({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:e,searchCursor:void 0},!1,{historyBack:[],searchBack:[]})}});return(0,Y.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,Y.jsx)(me,{view:`events`}),(0,Y.jsx)(`div`,{ref:j,"data-scroll-restoration-id":A,id:`insights-events-scroll`,className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,Y.jsxs)(`div`,{className:`mx-auto flex w-full max-w-7xl flex-col gap-4 sm:gap-6`,children:[h?(0,Y.jsx)(z,{className:`shadow-sm`,children:(0,Y.jsxs)(I,{className:`flex flex-col gap-3 p-4 sm:p-6`,children:[(0,Y.jsxs)(s,{className:`-ml-2 h-11 self-start lg:h-8`,onClick:N,variant:`ghost`,children:[(0,Y.jsx)(b,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to all events`]}),P]})}):null,h?C.isLoading&&p?(0,Y.jsx)(ke,{}):(0,Y.jsxs)(`div`,{className:`grid min-h-0 min-w-0 items-stretch gap-4 sm:gap-6 ${p?`lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`:`lg:grid-cols-1`}`,children:[p?(0,Y.jsx)(De,{error:C.error,onNext:()=>{C.data?.nextCursor&&y({installId:void 0,searchCursor:C.data.nextCursor},!0,{searchBack:Q(u,e.searchCursor)})},onPrevious:()=>{let e=$(u);y({installId:void 0,searchCursor:e.cursor},!0,{searchBack:e.stack})},onSelect:e=>{y({historyBefore:Z(),historyCursor:void 0,installId:e},!1,{historyBack:[]})},pageNumber:u.length+1,results:C.data,selectedInstallId:e.installId}):null,(0,Y.jsx)(we,{error:O.error??D.error,history:O.data,isLoading:O.isLoading||D.isLoading,onNext:()=>{O.data?.nextCursor&&y({historyCursor:O.data.nextCursor},!0,{historyBack:Q(d,e.historyCursor)})},onPrevious:()=>{let e=$(d);y({historyCursor:e.cursor},!0,{historyBack:e.stack})},onRefresh:()=>{y({historyBefore:Z(),historyCursor:void 0},!0,{historyBack:[]})},pageNumber:d.length+1,retention:n,selectedEvent:k,selectedInstallId:e.installId})]}):(0,Y.jsx)(xe,{description:`Downloads, launches, crashes, update failures, and other changes to what an installation runs, newest first, kept for ${T(n.rawDays)}. Launches that change nothing aren't listed.`,error:x.error,eventsLocation:{eventsBefore:g,eventsCursor:e.eventsCursor,eventsRange:e.eventsRange},history:x.data,isFetching:x.isFetching,isLoading:x.isLoading,onNext:()=>{x.data?.nextCursor&&y({eventsCursor:x.data.nextCursor},!0,{eventsBack:Q(l,e.eventsCursor)})},onPrevious:()=>{let e=$(l);y({eventsCursor:e.cursor},!0,{eventsBack:e.stack})},onRangeChange:e=>{y({eventsBefore:Z(),eventsCursor:void 0,eventsRange:e},!1,{eventsBack:[]})},onRefresh:()=>{y({eventsBefore:Z(),eventsCursor:void 0},!0,{eventsBack:[]})},pageNumber:l.length+1,range:_,rawDays:n.rawDays,children:P})]})},A)]})}export{Me as component};
|
|
1
|
+
import{$ as e,Br as t,Di as n,Ri as r,Vi as i,_r as a,et as o,gr as s,vr as c}from"./sidebar-UnsNYOry.js";import{h as l,i as u,m as d,t as f}from"./link-D95E0fwF.js";import{c as p,s as m}from"./preload-helper-52zhjEsw.js";import{a as h,n as g,o as _,r as v,t as y}from"./EventDetails-DglqzK6l.js";import{t as b}from"./arrow-left-CxxDwBQs.js";import{t as x}from"./arrow-up-right-BPRe5soE.js";import{a as S,c as C,i as w,l as T,n as E,o as ee,r as te}from"./insights-api-CXXCRZhF.js";import{t as D}from"./check-Dz_5aNwx.js";import{a as O}from"./useCompositeListItem-B9ONn9qn.js";import{t as k}from"./refresh-cw-CpCxPYma.js";import{i as A,n as j,r as M,t as N}from"./input-group-DNfVeeYZ.js";import{t as P}from"./search-DeKSyo9Q.js";import{a as F,n as I,o as L,r as R,t as z}from"./card-BfeRlTvj.js";import{a as ne,t as re}from"./field-PkdRPD3A.js";import{a as B,i as ie,n as ae,o as oe,r as se,t as ce}from"./installations-Lm8TxrcB.js";import{a as V,i as H,n as le,o as U,r as W,t as G}from"./table-r_sYqKTQ.js";import{n as ue,t as K}from"./HashValueDisplay-DKziWjEg.js";import{a as de,c as q,n as fe,r as pe,t as me}from"./InsightsPageHeader-DLH1MntM.js";function he(){l(u(),!0)}function ge(e){return he(),d(u(),e)}function _e(e){let t=u();return p(t.stores.location,m(e,t))}var J=i(r(),1),Y=n();function ve({events:e,formatter:t,renderIdentity:n}){return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:`px-4 pb-2 text-xs text-muted-foreground sm:px-6`,children:`Time in your browser zone`}),(0,Y.jsx)(`ol`,{"aria-label":`Events`,className:`divide-y border-y`,children:e.map(e=>(0,Y.jsxs)(`li`,{className:`flex min-w-0 flex-col gap-3 px-4 py-4 sm:px-6`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-4 gap-y-1`,children:[(0,Y.jsx)(v,{event:e}),(0,Y.jsx)(`div`,{className:`text-xs tabular-nums`,children:(0,Y.jsx)(g,{value:e.receivedAtMs,formatter:t,touch:!0})})]}),n?.(e),(0,Y.jsxs)(`dl`,{className:`flex flex-wrap gap-x-2 gap-y-1 text-sm`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`dt`,{className:`sr-only`,children:`App`}),(0,Y.jsxs)(`dd`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]})]}),(0,Y.jsxs)(`div`,{className:`min-w-0 text-muted-foreground`,children:[(0,Y.jsx)(`dt`,{className:`sr-only`,children:`Channel`}),(0,Y.jsx)(`dd`,{className:`wrap-anywhere`,children:e.channel})]})]}),(0,Y.jsx)(`div`,{className:`text-xs`,"aria-label":`Bundle`,children:(0,Y.jsx)(y,{event:e,touch:!0})})]},e.id))})]})}function X({hasPrevious:e,label:t,nextCursor:n,onNext:r,onPrevious:i,pageLength:a,pageNumber:o}){return(0,Y.jsxs)(`nav`,{"aria-label":`${t} pagination`,className:`flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 sm:px-6`,children:[(0,Y.jsxs)(`span`,{className:`text-xs text-muted-foreground tabular-nums`,children:[`Page `,o,` · `,a.toLocaleString(),` rows`]}),(0,Y.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Y.jsx)(s,{className:`h-11 min-w-11 px-3 lg:h-8 lg:min-w-0 lg:px-2`,disabled:!e,onClick:i,size:`sm`,type:`button`,variant:`outline`,children:`Previous`}),(0,Y.jsx)(s,{className:`h-11 min-w-11 px-3 lg:h-8 lg:min-w-0 lg:px-2`,disabled:n===null,onClick:r,size:`sm`,type:`button`,variant:`outline`,children:`Next`})]})]})}var ye=e=>se.filter((t,n)=>n===0||B[t].durationMs<=e*864e5);function be({event:e,eventsLocation:t,touch:n=!1}){return(0,Y.jsxs)(`div`,{className:n?`flex min-w-0 flex-wrap items-center justify-between gap-2`:`flex min-w-0 flex-col items-start gap-2`,children:[(0,Y.jsxs)(f,{className:a({className:n?`-ml-2 h-auto min-h-11 min-w-0 flex-1 justify-start gap-2 whitespace-normal text-sm`:`-ml-2 max-w-full justify-start`,size:`sm`,variant:`ghost`}),to:`/installations`,search:{...t,query:e.installId||void 0,installId:e.installId},state:e=>({insightsPagination:{eventsBack:e.insightsPagination?.eventsBack}}),"aria-label":`View history for ${e.userId??`anonymous installation`} (${e.installId})`,children:[(0,Y.jsx)(`span`,{className:n?`min-w-0 text-left wrap-anywhere`:`truncate`,children:e.userId??`Anonymous installation`}),(0,Y.jsx)(x,{"aria-hidden":`true`,"data-icon":`inline-end`})]}),(0,Y.jsx)(K,{value:e.installId,maxLength:13,buttonClassName:n?`min-h-11 px-3`:void 0})]})}function xe({children:t,description:n,error:r,eventsLocation:i,history:a,isFetching:o,isLoading:c,onNext:l,onPrevious:u,onRangeChange:d,onRefresh:f,pageNumber:p,range:m,rawDays:h=90,title:b=`All events`}){let x=_(),S=p>1,C=ye(h),w=m===void 0?void 0:oe(m),T=w!==void 0&&C.includes(w)?w:void 0,E=T!==void 0&&d?(0,Y.jsx)(s,{className:`h-11 px-3 lg:h-8`,onClick:()=>d(T),type:`button`,variant:`outline`,children:`Show the last ${B[T].period}`}):null;return(0,Y.jsxs)(z,{className:`@container min-w-0 shadow-sm`,"aria-busy":o,children:[(0,Y.jsxs)(F,{className:`gap-4 p-4 sm:p-6`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,Y.jsx)(L,{children:(0,Y.jsx)(`h2`,{children:b})}),(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[m!==void 0&&d?(0,Y.jsx)(de,{label:`Time range`,onPeriodChange:d,period:m,periods:C.map(e=>({value:e,name:`Last ${B[e].period}`}))}):null,(0,Y.jsxs)(s,{className:`h-11 lg:h-8`,disabled:o,onClick:f,size:`lg`,variant:`outline`,children:[(0,Y.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]})]})]}),n?(0,Y.jsx)(R,{children:n}):null]}),t]}),(0,Y.jsx)(I,{className:`min-w-0 p-0`,children:c?(0,Y.jsxs)(`div`,{className:`flex flex-col gap-4 p-6`,role:`status`,"aria-label":`Loading events`,children:[(0,Y.jsx)(e,{className:`h-12 w-full`}),(0,Y.jsx)(e,{className:`h-12 w-full`}),(0,Y.jsx)(e,{className:`h-12 w-full`})]}):r?(0,Y.jsx)(`div`,{className:`px-6 pb-6`,children:(0,Y.jsx)(q,{error:r,fallbackTitle:`Event history unavailable`})}):a?(0,Y.jsxs)(Y.Fragment,{children:[a.data.length>0?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`@[58rem]:hidden`,children:(0,Y.jsx)(ve,{events:a.data,formatter:x,renderIdentity:e=>(0,Y.jsx)(be,{event:e,eventsLocation:i,touch:!0})})}),(0,Y.jsx)(`div`,{className:`hidden @[58rem]:block`,children:(0,Y.jsxs)(G,{className:`min-w-4xl table-fixed`,children:[(0,Y.jsx)(V,{children:(0,Y.jsxs)(U,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,Y.jsx)(H,{className:`w-64`,children:`Time`}),(0,Y.jsx)(H,{className:`w-48`,children:`Event`}),(0,Y.jsx)(H,{className:`w-48`,children:`User / installation`}),(0,Y.jsx)(H,{className:`w-32`,children:`App`}),(0,Y.jsx)(H,{className:`w-52`,children:`Bundle`})]})}),(0,Y.jsx)(le,{children:a.data.map(e=>(0,Y.jsxs)(U,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,Y.jsx)(W,{className:`whitespace-normal text-xs tabular-nums`,children:(0,Y.jsx)(g,{value:e.receivedAtMs,formatter:x})}),(0,Y.jsx)(W,{children:(0,Y.jsx)(v,{event:e})}),(0,Y.jsx)(W,{children:(0,Y.jsx)(be,{event:e,eventsLocation:i})}),(0,Y.jsx)(W,{className:`whitespace-normal text-xs`,children:(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Y.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,Y.jsx)(W,{className:`whitespace-normal text-xs`,children:(0,Y.jsx)(y,{event:e})})]},e.id))})]})})]}):(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 px-4 pb-4 sm:px-6 sm:pb-6`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:S?`No older events in this range.`:m===void 0?b===`All events`?`No events recorded yet`:`No matching reports in this period`:`No events in the last ${B[m].period}.`}),S?null:E]}),m!==void 0&&a.nextCursor===null&&(a.data.length>0||S)?(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-t px-4 py-3 sm:px-6`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Start of range reached`}),E]}):null,a.data.length>0||S||a.nextCursor?(0,Y.jsx)(X,{hasPrevious:S,label:b,nextCursor:a.nextCursor,onNext:l,onPrevious:u,pageLength:a.data.length,pageNumber:p}):null]}):null})]})}var Se=e=>e.userId??`—`,Ce=e=>`lastKnownBundleId`in e?e.lastKnownBundleId:e.type===`UPDATE_DOWNLOADED`||e.type===`UPDATE_FAILED`?e.fromBundleId:e.toBundleId;function we({error:t,history:n,isLoading:r,onNext:i,onPrevious:a,onRefresh:c,pageNumber:l,retention:u=C,selectedEvent:d,selectedInstallId:f}){let p=_(),m=d?Ce(d):void 0,b=d&&`pendingBundleId`in d?d.pendingBundleId:d&&`type`in d&&d.type===`UPDATE_DOWNLOADED`?d.toBundleId:null;return(0,Y.jsxs)(z,{className:`@container min-h-0 min-w-0 shadow-sm`,children:[(0,Y.jsx)(F,{className:`p-4 sm:p-6`,children:(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[(0,Y.jsx)(L,{className:`text-sm font-medium`,children:(0,Y.jsx)(`h2`,{children:f===void 0?`Select an installation`:`Installation history`})}),f===void 0?null:(0,Y.jsxs)(R,{children:[`Bundle changes and update failures are kept for`,` `,T(u.rawDays),`; the latest report, for`,` `,T(u.dailyDays),` after the installation last reports.`]})]}),c&&f!==void 0?(0,Y.jsxs)(s,{className:`h-11 lg:h-8`,size:`lg`,variant:`outline`,onClick:c,disabled:r,children:[(0,Y.jsx)(k,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]}):null]})}),(0,Y.jsxs)(I,{className:`min-h-0 p-0`,children:[f!==void 0&&d?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`section`,{"aria-labelledby":`latest-installation-state`,className:`px-4 pb-4 sm:px-6 sm:pb-6`,children:[(0,Y.jsx)(`h3`,{className:`sr-only`,id:`latest-installation-state`,children:`Latest reported state`}),(0,Y.jsxs)(`dl`,{className:`grid grid-cols-2 gap-4 @[36rem]:grid-cols-3`,children:[(0,Y.jsxs)(`div`,{className:`col-span-2 min-w-0 @[36rem]:col-span-1`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`User ID`}),(0,Y.jsx)(`dd`,{className:`mt-1 text-sm font-medium wrap-anywhere`,children:Se(d)})]}),(0,Y.jsxs)(`div`,{className:`min-w-0`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Install ID`}),(0,Y.jsx)(`dd`,{className:`mt-1 font-mono text-xs`,children:(0,Y.jsx)(K,{value:f,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`})})]}),(0,Y.jsxs)(`div`,{className:`min-w-0`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Last known bundle`}),(0,Y.jsxs)(`dd`,{className:`mt-1 flex min-w-0 flex-wrap items-center gap-2 font-mono text-xs`,children:[m?(0,Y.jsx)(K,{value:m,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`}):`—`,pe(m,d.minBundleId)?(0,Y.jsx)(fe,{}):null]})]}),b?(0,Y.jsxs)(`div`,{className:`col-span-2 min-w-0`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Downloaded · Not launched yet`}),(0,Y.jsx)(`dd`,{className:`mt-1 text-xs`,children:(0,Y.jsx)(K,{value:b})})]}):null]}),d.httpResponse?(0,Y.jsx)(`div`,{className:`mt-4`,children:(0,Y.jsx)(h,{event:d})}):null]}),(0,Y.jsx)(o,{})]}):null,f===void 0?null:r?(0,Y.jsxs)(`div`,{className:`flex flex-col gap-3 p-6`,role:`status`,"aria-label":`Loading installation history`,children:[(0,Y.jsx)(e,{className:`h-10 w-full`}),(0,Y.jsx)(e,{className:`h-10 w-full`}),(0,Y.jsx)(e,{className:`h-10 w-full`})]}):t?(0,Y.jsx)(`div`,{className:`p-6`,children:(0,Y.jsx)(q,{error:t instanceof Error?t:Error(),fallbackTitle:`Installation history unavailable`})}):n&&n.data.length>0?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`@[48rem]:hidden`,children:(0,Y.jsx)(ve,{events:n.data,formatter:p})}),(0,Y.jsx)(`div`,{className:`hidden @[48rem]:block`,children:(0,Y.jsxs)(G,{className:`min-w-3xl table-fixed`,children:[(0,Y.jsx)(V,{children:(0,Y.jsxs)(U,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,Y.jsx)(H,{className:`w-64`,children:`Time`}),(0,Y.jsx)(H,{className:`w-48`,children:`Event`}),(0,Y.jsx)(H,{className:`w-32`,children:`App`}),(0,Y.jsx)(H,{className:`w-52`,children:`Bundle`})]})}),(0,Y.jsx)(le,{children:n.data.map(e=>(0,Y.jsxs)(U,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,Y.jsx)(W,{className:`whitespace-normal text-xs tabular-nums`,children:(0,Y.jsx)(g,{value:e.receivedAtMs,formatter:p})}),(0,Y.jsx)(W,{children:(0,Y.jsx)(v,{event:e})}),(0,Y.jsx)(W,{className:`whitespace-normal text-xs`,children:(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Y.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,Y.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,Y.jsx)(W,{className:`whitespace-normal text-xs`,children:(0,Y.jsx)(y,{event:e})})]},e.id))})]})}),(0,Y.jsx)(X,{hasPrevious:l>1,label:`Installation history`,nextCursor:n.nextCursor,onNext:i,onPrevious:a,pageLength:n.data.length,pageNumber:l})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`p-6 text-sm text-muted-foreground`,children:l>1?`No older bundle changes.`:`No bundle changes recorded yet.`}),n&&(l>1||n.nextCursor)?(0,Y.jsx)(X,{hasPrevious:l>1,label:`Installation history`,nextCursor:n.nextCursor,onNext:i,onPrevious:a,pageLength:0,pageNumber:l}):null]})]})]})}var Te=e=>e.lastKnownBundleId,Ee=e=>e.userId??`—`;function De({error:e,onNext:t,onPrevious:n,onSelect:r,pageNumber:i,results:o,selectedInstallId:l}){let[u,d]=(0,J.useState)(!1),f=(0,J.useId)(),p=(0,J.useRef)(null),m=!e&&o&&o.data.length>0;return(0,Y.jsxs)(z,{className:`min-h-0 min-w-0 shadow-sm`,children:[(0,Y.jsx)(F,{className:`p-4 sm:px-6`,children:(0,Y.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,Y.jsx)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:(0,Y.jsx)(L,{className:`text-sm font-medium`,children:(0,Y.jsx)(`h2`,{children:`Matching installations`})})}),(0,Y.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:m?(0,Y.jsx)(s,{"aria-controls":f,"aria-expanded":u,"aria-label":u?`Hide matching installations`:`Show matching installations`,className:`size-11 lg:hidden`,onClick:()=>d(!u),ref:p,size:`icon-lg`,variant:`ghost`,children:(0,Y.jsx)(O,{"aria-hidden":`true`,className:c(u&&`rotate-180`)})}):null})]})}),(0,Y.jsxs)(I,{className:c(`min-h-0 p-0`,m&&!u&&`hidden lg:block`),id:f,children:[e?(0,Y.jsx)(`div`,{className:`p-6`,children:(0,Y.jsx)(q,{error:e instanceof Error?e:Error(),fallbackTitle:`Installation search unavailable`})}):o&&o.data.length>0?(0,Y.jsx)(`ul`,{"aria-label":`Matching installations`,className:`divide-y`,children:o.data.map(e=>{let t=Te(e),n=e.installId===l;return(0,Y.jsx)(`li`,{children:(0,Y.jsxs)(`button`,{"aria-label":`${Ee(e)}, install ID ${e.installId}`,"aria-pressed":n,className:`group flex w-full min-w-0 flex-col gap-2 border-l-2 border-transparent px-4 py-4 text-left outline-none transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:bg-muted/40 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/30 aria-pressed:border-primary aria-pressed:bg-muted/60 motion-reduce:transition-none sm:px-6`,onClick:()=>{r(e.installId),d(!1),p.current?.focus()},type:`button`,children:[(0,Y.jsxs)(`span`,{className:`flex w-full min-w-0 items-center justify-between gap-3`,children:[(0,Y.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium`,children:Ee(e)}),n?(0,Y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs font-medium text-primary`,children:[(0,Y.jsx)(D,{"aria-hidden":`true`,className:`size-3.5`}),(0,Y.jsx)(`span`,{className:`sr-only`,children:`Selected`})]}):null]}),(0,Y.jsx)(`span`,{className:`flex flex-wrap items-center gap-2`,children:(0,Y.jsx)(`span`,{className:`font-mono text-xs`,title:e.installId,children:ue(e.installId)})}),(0,Y.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Bundle`}),t?(0,Y.jsx)(`span`,{className:`font-mono text-xs`,title:t,children:ue(t)}):(0,Y.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`—`})]})]})},e.installId)})}):(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 p-4 sm:px-6`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No matches`}),(0,Y.jsx)(`a`,{className:a({variant:`outline`,className:`h-11 px-3 lg:h-8`}),href:`#installation-history-search`,children:`Edit search`})]}),o&&(o.data.length>0||i>1||o.nextCursor)?(0,Y.jsx)(X,{hasPrevious:i>1,label:`Installation results`,nextCursor:o.nextCursor,onNext:t,onPrevious:n,pageLength:o.data.length,pageNumber:i}):null]})]})}function Oe({draftQuery:e,onDraftQueryChange:n,onSubmit:r,onClear:i}){return(0,Y.jsx)(`form`,{"aria-label":`Find installation`,onSubmit:t=>{t.preventDefault(),e.trim()&&r()},role:`search`,children:(0,Y.jsxs)(re,{className:`gap-2`,children:[(0,Y.jsx)(ne,{className:`sr-only`,htmlFor:`installation-history-search`,children:`User ID or installation ID`}),(0,Y.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,Y.jsxs)(N,{className:`h-11 w-auto min-w-0 flex-1 basis-44 lg:h-8`,children:[(0,Y.jsx)(j,{children:(0,Y.jsx)(P,{"aria-hidden":`true`})}),(0,Y.jsx)(A,{autoComplete:`off`,className:`h-11 text-base md:text-base lg:h-8 lg:text-xs`,id:`installation-history-search`,maxLength:1024,name:`installation`,onChange:e=>n(e.target.value),placeholder:`User ID or installation ID`,spellCheck:!1,type:`search`,value:e}),e.length>0?(0,Y.jsx)(j,{align:`inline-end`,children:(0,Y.jsx)(M,{"aria-label":`Clear installation lookup`,className:`size-11 lg:size-5`,onClick:i,size:`icon-xs`,children:(0,Y.jsx)(t,{"aria-hidden":`true`})})}):null]}),(0,Y.jsx)(s,{"aria-label":`Find installation`,className:`h-11 px-3 lg:h-8`,disabled:e.trim().length===0,size:`lg`,type:`submit`,variant:`outline`,children:`Find`})]})]})})}function ke(){return(0,Y.jsxs)(`div`,{className:`grid items-stretch gap-6 lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`,children:[(0,Y.jsx)(e,{className:`h-64 w-full lg:h-full`}),(0,Y.jsx)(e,{className:`h-64 w-full lg:h-full`})]})}var Ae=20,je=50,Z=()=>Date.now(),Q=(e,t)=>[...e,t??``],$=e=>({cursor:e?.at(-1)||void 0,stack:e.slice(0,-1)});function Me(){let e=ce.useSearch(),t=ce.useNavigate(),n=ee(),[r,i]=(0,J.useState)(e.query??``),[a]=(0,J.useState)(Z),[o]=(0,J.useState)(Z),c=_e({select:e=>e.state.insightsPagination}),l=c?.eventsBack??[],u=c?.searchBack??[],d=c?.historyBack??[],f=e.query?.trim()??``,p=f.length>0,m=e.installId!==void 0,h=p||m,g=e.eventsBefore??a,_=e.eventsRange??`7d`,v=e.historyBefore??o,y=(n,r=!1,i={})=>{t({to:`/installations`,search:{...e,...n},state:e=>({...e,insightsPagination:{...e.insightsPagination,...i}}),replace:r})};(0,J.useEffect)(()=>{i(e.query??``)},[e.query]),(0,J.useEffect)(()=>{e.eventsBefore===void 0&&y({eventsBefore:g},!0)},[g,e.eventsBefore]),(0,J.useEffect)(()=>{m&&e.historyBefore===void 0&&y({historyBefore:v},!0)},[m,v,e.historyBefore]);let x=E({...ie(_,g),cursor:e.eventsCursor,limit:20},!h),C=S({cursor:e.searchCursor,identity:f,limit:Ae},p);(0,J.useEffect)(()=>{let e=C.data?.data[0]?.installId;!p||m||e===void 0||y({historyBefore:Z(),historyCursor:void 0,installId:e},!0,{historyBack:[]})},[p,m,C.data?.data]);let D=w(e.installId??``,m),O=te({beforeReceivedAtMs:v,cursor:e.historyCursor,installId:e.installId??``,limit:je},m),k=D.data??C.data?.data.find(({installId:t})=>t===e.installId)??O.data?.data[0],A=h?`installation-history-${e.historyCursor??`first`}`:`all-events-${e.eventsCursor??`first`}`,j=(0,J.useRef)(null),M=ge({id:A,getKey:ae});(0,J.useLayoutEffect)(()=>{!h&&!x.isLoading&&j.current&&(j.current.scrollTop=M?.scrollY??0)},[x.isLoading,h,M?.scrollY,A]);let N=()=>{i(``),y({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:void 0,searchCursor:void 0},!1,{historyBack:[],searchBack:[]})},P=(0,Y.jsx)(Oe,{draftQuery:r,onClear:N,onDraftQueryChange:i,onSubmit:()=>{let e=r.trim();if(!e){N();return}y({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:e,searchCursor:void 0},!1,{historyBack:[],searchBack:[]})}});return(0,Y.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,Y.jsx)(me,{view:`events`}),(0,Y.jsx)(`div`,{ref:j,"data-scroll-restoration-id":A,id:`insights-events-scroll`,className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,Y.jsxs)(`div`,{className:`mx-auto flex w-full max-w-7xl flex-col gap-4 sm:gap-6`,children:[h?(0,Y.jsx)(z,{className:`shadow-sm`,children:(0,Y.jsxs)(I,{className:`flex flex-col gap-3 p-4 sm:p-6`,children:[(0,Y.jsxs)(s,{className:`-ml-2 h-11 self-start lg:h-8`,onClick:N,variant:`ghost`,children:[(0,Y.jsx)(b,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to all events`]}),P]})}):null,h?C.isLoading&&p?(0,Y.jsx)(ke,{}):(0,Y.jsxs)(`div`,{className:`grid min-h-0 min-w-0 items-stretch gap-4 sm:gap-6 ${p?`lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`:`lg:grid-cols-1`}`,children:[p?(0,Y.jsx)(De,{error:C.error,onNext:()=>{C.data?.nextCursor&&y({installId:void 0,searchCursor:C.data.nextCursor},!0,{searchBack:Q(u,e.searchCursor)})},onPrevious:()=>{let e=$(u);y({installId:void 0,searchCursor:e.cursor},!0,{searchBack:e.stack})},onSelect:e=>{y({historyBefore:Z(),historyCursor:void 0,installId:e},!1,{historyBack:[]})},pageNumber:u.length+1,results:C.data,selectedInstallId:e.installId}):null,(0,Y.jsx)(we,{error:O.error??D.error,history:O.data,isLoading:O.isLoading||D.isLoading,onNext:()=>{O.data?.nextCursor&&y({historyCursor:O.data.nextCursor},!0,{historyBack:Q(d,e.historyCursor)})},onPrevious:()=>{let e=$(d);y({historyCursor:e.cursor},!0,{historyBack:e.stack})},onRefresh:()=>{y({historyBefore:Z(),historyCursor:void 0},!0,{historyBack:[]})},pageNumber:d.length+1,retention:n,selectedEvent:k,selectedInstallId:e.installId})]}):(0,Y.jsx)(xe,{description:`Downloads, launches, crashes, update failures, and other changes to what an installation runs, newest first, kept for ${T(n.rawDays)}. Launches that change nothing aren't listed.`,error:x.error,eventsLocation:{eventsBefore:g,eventsCursor:e.eventsCursor,eventsRange:e.eventsRange},history:x.data,isFetching:x.isFetching,isLoading:x.isLoading,onNext:()=>{x.data?.nextCursor&&y({eventsCursor:x.data.nextCursor},!0,{eventsBack:Q(l,e.eventsCursor)})},onPrevious:()=>{let e=$(l);y({eventsCursor:e.cursor},!0,{eventsBack:e.stack})},onRangeChange:e=>{y({eventsBefore:Z(),eventsCursor:void 0,eventsRange:e},!1,{eventsBack:[]})},onRefresh:()=>{y({eventsBefore:Z(),eventsCursor:void 0},!0,{eventsBack:[]})},pageNumber:l.length+1,range:_,rawDays:n.rawDays,children:P})]})},A)]})}export{Me as component};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/installations-
|
|
2
|
-
import{i as e,r as t,t as n}from"./preload-helper-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/installations-Di02gX_V.js","assets/ConsoleFeatureUnavailable-C0iDIboF.js","assets/sidebar-UnsNYOry.js","assets/console-features-api-De6tXQnd.js","assets/arrow-up-right-BPRe5soE.js","assets/NotFoundPage-CijSy63W.js","assets/link-D95E0fwF.js","assets/empty-DpSPWLc2.js","assets/installations-Ds-MhfsQ.js","assets/preload-helper-52zhjEsw.js","assets/useCompositeListItem-B9ONn9qn.js","assets/EventDetails-DglqzK6l.js","assets/insights-api-CXXCRZhF.js","assets/check-Dz_5aNwx.js","assets/copy-BxI24-g-.js","assets/download-ekENI2Sw.js","assets/input-group-DNfVeeYZ.js","assets/smartphone-lSZWrqxx.js","assets/badge-D4Tiwei-.js","assets/dist-BEIz5ojx.js","assets/HashValueDisplay-DKziWjEg.js","assets/InsightsPageHeader-DLH1MntM.js","assets/tabs-B95QcXeT.js","assets/list-Dq40Mmoj.js","assets/arrow-left-CxxDwBQs.js","assets/refresh-cw-CpCxPYma.js","assets/search-DeKSyo9Q.js","assets/card-BfeRlTvj.js","assets/field-PkdRPD3A.js","assets/table-r_sYqKTQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{r}from"./console-features-api-De6tXQnd.js";var i=864e5,a={"24h":{period:`24 hours`,durationMs:i},"7d":{period:`7 days`,durationMs:7*i},"30d":{period:`30 days`,durationMs:30*i},"90d":{period:`90 days`,durationMs:90*i}},o=Object.keys(a),s=e=>o[o.indexOf(e)+1],c=(e,t)=>({beforeReceivedAtMs:t,sinceMs:Math.max(0,t-a[e].durationMs)}),l=e=>typeof e==`string`&&e.length>0?e:void 0,u=e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:void 0,d=e=>o.find(t=>t===e);function f(e){let t=p(e.search);return t.query===void 0&&t.installId===void 0?`/installations?eventsBefore=${t.eventsBefore??`new`}&eventsRange=${t.eventsRange??`7d`}&eventsCursor=${t.eventsCursor??`first`}`:e.state.__TSR_key}function p(e){return{query:typeof e.query==`string`?e.query:void 0,installId:typeof e.installId==`string`?e.installId:void 0,eventsCursor:l(e.eventsCursor),eventsBefore:u(e.eventsBefore),eventsRange:d(e.eventsRange),searchCursor:l(e.searchCursor),historyCursor:l(e.historyCursor),historyBefore:u(e.historyBefore)}}var m=e(`/installations`)({beforeLoad:({context:e})=>r(e.queryClient,`insights`),notFoundComponent:t(()=>n(()=>import(`./installations-Di02gX_V.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`notFoundComponent`),component:t(()=>n(()=>import(`./installations-Ds-MhfsQ.js`),__vite__mapDeps([8,2,9,6,10,11,12,13,14,15,16,17,18,19,20,21,22,3,23,7,24,4,25,26,27,28,29])),`component`),staticData:{scrollRestorationKey:f},validateSearch:p});export{a,c as i,f as n,s as o,o as r,m as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]);export{t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ai as e,Di as t,Mi as n,Pi as r,Ri as i,Vi as a,ji as o,ki as s}from"./sidebar-yC7KdImc.js";function c(e){return e.replaceAll(`/`,`#`)}function l(e){return e[e.length-1]}function u(e,t){return typeof e==`function`?e(t):e}var d=Object.prototype.hasOwnProperty;function f(e){for(let t in e)if(d.call(e,t))return!0;return!1}var p=()=>Object.create(null),m=(e,t)=>h(e,t,!0);function h(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(g(e)&&g(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&l(a)!==`${o-1}`||c&&l(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let u=0,f,m,_;if(i){for(;u<c&&(_=u,m=e[_],f=t[_],f=m===f?m:typeof m==`object`?h(m,f,n,r):f,f===m);u++);if(u===c&&o===c)return e}else{let i=o===c,l=!0;for(;u<c;u++){_=s[u],m=e[_];let o=t[_];f=m===o?m:typeof m==`object`?h(m,o,n,r):o,i&&=f===m&&(a[u]===_||d.call(e,_)),l&&=Object.is(f,o),a[u]=f}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(l)return t}let v=i?s.fill(0):n?p():{};for(let o=0;o<c;o++)_=i?o:s[o],i?(m=e[_],o>u&&(f=t[_],f=m===f?m:typeof m==`object`?h(m,f,n,r):f),v[_]=o<u?m:f):v[_]=a[o];return v}function g(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function _(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!_(a,o,n,r))return!1}return!0}if(g(e)&&g(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!_(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!_(e[a],t[a],n,r)))return!1;return i===0}return!1}function v(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function y(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}var b=/[\x00-\x1f\x7f"<>`{}]/g;function x(e){return e.replace(b,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function S(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return x(t)}var C=[`http:`,`https:`,`mailto:`,`tel:`];function w(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var T=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function E(e,t){if(!e)return!1;if(T.test(e))return!0;let n=w(e);return n?!t.has(n):!1}var D={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},O=/[&><\u2028\u2029]/g;function k(e){return e.replace(O,e=>D[e])}function A(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=S(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=S(r?e.slice(r):e)}return t}function ee(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function j(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function M(e){return e.replace(/\/{2,}/g,`/`)}function N(e){return e===`/`?e:e.replace(/^\/+/,``)}function P(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function te(e){return P(N(e))}function ne(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function re(e,t,n=`never`,r){if(t.includes(`//`)&&(t=M(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=M(e)),o=e.split(`/`);o.length>1&&l(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(l(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?M(s):s)||`/`;return a&&r&&r.set(a,c),c}function ie(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function ae(e){return e==null||e===``}function oe(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function se(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(!(t===3&&f==null)){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&ae(f)){if(c===`/`&&!d)continue;f=``}o+=c+oe(s,f,r)+(d||``)}}return o+a||`/`}function ce(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var F=4,le=5;function ue(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function de(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function I(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,u=s.length,d=s.endsWith(`/`)?u-1:u,f=c?.caseSensitive??e,p=c?.params?.parse??c?.parseParams,m,h=a?n-1:0;if(!r||s.includes(`$`)){m=a?.slice()??[];let e=l(m);e&&typeof e!=`string`&&e[0]===2&&(m[m.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),d)],h=u)}for(;o<u;){let e=o,t=s.indexOf(`/`,e),n=t===-1?u:t,a=de(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;f?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=L(r);c=n,t.set(e,n)}}else{let t=a[0],l=a[2],g=a[3]??``;if(t===2&&(n=u,o=n+1),m&&h<n&&(h<e-1&&m.push(s.slice(h,e-1)),a[2]=`/`+l,t===2&&a[3]!==void 0&&d<u&&(a[3]=g.slice(0,-1)),m.push(a),h=n),!r)continue;let _=f&&!!(l||g);f||(l=l.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!p&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===l&&e.suffix===g);if(y)c=y;else{let e=L(r,t,_,l,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}m&&h<d&&m.push(s.slice(h,d));let g=m?.slice();if(!r)return g;if(p&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=L(r,le);(r.pathless??=[]).push(e),r=e}let _=(t.path||!t.children)&&!t.isRoot;if(_&&d<u){let e=L(r,F);r.index=e,r=e}return r.parse=p??null,r.priority=c?.params?.priority??0,r.route||(r.data=g,_&&(r.route=t)),[r,o,g]}function fe(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function L(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function pe(e,t){let n=L(),r=[];function i(e,t,n,a){let[o,s,c]=I(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(fe);t.masksTree=n,t.flatCache=ce(1e3)}function me(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=ve(e,t.masksTree);return t.flatCache.set(e,r),r}function he(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=L(),I(t,{from:e},1,o),i.singleCache.set(a,o)),ve(r,o,n)}function ge(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=ve(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=be(a.route)),t.matchCache.set(r,a),a}function _e(e,t=!1){let n=L(),r=[],i={},a={},s=0;function c(e,n,l,u){if(e.init(s),e.id in i&&o(),i[e.id]=e,s!==0&&e.path){let t=P(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}s++;let[d,f,p]=I(t,e,n,l,r,u);if(e._interpolation=p,e.children)for(let t of e.children)c(t,f,d,p)}c(e,1,n);for(let e of r)e.sort(fe);return{processedTree:{segmentTree:n,singleCache:ce(1e3),matchCache:ce(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function ve(e,t,n=!1){let r=e.split(`/`),i=Se(e,r,t,n);if(!i)return null;let[a]=ye(e,r,i);return{route:i.node.route,rawParams:a}}function ye(e,t,n){let r=xe(n.node),i=n.node.data&&ue(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===F)break;if(u.kind===le){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function be(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function xe(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Se(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!l(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,u=null;for(;s.length;){let n=s.pop(),{node:i,index:l,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Ee(u,n))continue;if(i.parse){if(!Te(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==F&&Ee(c,n)&&(c=n);let _=l===o;if(_&&(i.route&&(!a||i.kind===F||i.kind===2)&&Ee(u,n)&&(u=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[l],y;if(_&&i.index){let n={node:i.index,index:l,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Te(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&we(f,o))return n;Ee(u,n)&&(u=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(_||!(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)))){if(a){if(_)continue;let e=t.slice(l).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:l,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:l+1,skipped:d,statics:f,dynamics:p,optionals:m+Ce(o,l),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:l+1,skipped:d,statics:f,dynamics:p+Ce(o,l),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:l+1,skipped:d,statics:f+Ce(o,l),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:l+1,skipped:d,statics:f+Ce(o,l),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:l,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(u)return u;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Ce(e,t){return 2**(e-t-1)}function we(e,t){return e===2**(t-1)-1}function Te(e,t,n){let r,i;try{[r,i]=ye(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Ee(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===F)>(e.node.kind===F)||t.node.kind===F==(e.node.kind===F)&&t.node.depth>e.node.depth))):!0}function De(){try{return sessionStorage}catch{return}}var Oe=`tsr-scroll-restoration-v1_3`,ke=De();function Ae(){try{return JSON.parse(ke?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var R=Ae(),je=`data-scroll-restoration-id`,Me=e=>e.state.__TSR_key||e.href;function Ne(e){let t=e.getAttribute(je);if(t)return`[${je}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}function Pe(e,t){let n=R[(t.getKey||Me)(e.latestLocation)];if(!n)return;if(t.id)return n[`[${je}="${t.id}"]`];let r=t.getElement?.();if(r)return n[r===window?z:Ne(r)]}var Fe=!1,z=`window`;function Ie(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Le(e){let t=new Set;for(let n of e){if(n===z)continue;let e=Ie(n);e&&t.add(e)}return t}function Re(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Me,a=new Set,o=e=>{let t=R[e]||={};for(let e of a)e===document?t[z]={scrollX,scrollY}:e.isConnected&&(t[Ne(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Fe=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Fe||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{ke?.setItem(Oe,JSON.stringify(R))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=R[d];if(e){let t=R[u];for(let n in e){if(n===z){if(s)continue}else{let e=Ie(n);if(!e||s&&o&&(l??=Le(o),l.has(e)))continue}t||=R[u]={},t[n]??=e[n]}}}Fe=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Le(o));let t=e&&i&&c,s=r.e?R[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===z){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Ie(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Fe=!1}}))}var ze=/^(?:\s|["[{\d-]|fa|nu|tr)/,Be=He(JSON.parse),Ve=Ue(JSON.stringify,JSON.parse);function He(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=s(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!ze.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function Ue(t,n){let r=n===JSON.parse;function i(e){if(e&&typeof e==`object`)try{return t(e)}catch{}else if(n&&typeof e==`string`){if(r&&!ze.test(e))return e;try{return n(e),t(e)}catch{}}return e}return t=>{let n=e(t,i);return n?`?${n}`:``}}var We=`__root__`;function Ge(e,t,n){let r=te(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=M(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Ke(n,s.input({url:e})),output:({url:e})=>s.output({url:qe(n,e)})}:s}function Ke(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function qe(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Je(e){let t=e;return{get(){return t},set(e){t=u(e,t)}}}function Ye(e){return{get(){return e()}}}function Xe(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{j(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var B=`__TSR_index`,Ze=`popstate`,Qe=`beforeunload`,$e=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function et(e){let t=$e.exec(e);return t?`/`+e.slice(t[0].length):e}function tt(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
1
|
+
import{Ai as e,Di as t,Mi as n,Pi as r,Ri as i,Vi as a,ji as o,ki as s}from"./sidebar-UnsNYOry.js";function c(e){return e.replaceAll(`/`,`#`)}function l(e){return e[e.length-1]}function u(e,t){return typeof e==`function`?e(t):e}var d=Object.prototype.hasOwnProperty;function f(e){for(let t in e)if(d.call(e,t))return!0;return!1}var p=()=>Object.create(null),m=(e,t)=>h(e,t,!0);function h(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(g(e)&&g(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&l(a)!==`${o-1}`||c&&l(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let u=0,f,m,_;if(i){for(;u<c&&(_=u,m=e[_],f=t[_],f=m===f?m:typeof m==`object`?h(m,f,n,r):f,f===m);u++);if(u===c&&o===c)return e}else{let i=o===c,l=!0;for(;u<c;u++){_=s[u],m=e[_];let o=t[_];f=m===o?m:typeof m==`object`?h(m,o,n,r):o,i&&=f===m&&(a[u]===_||d.call(e,_)),l&&=Object.is(f,o),a[u]=f}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(l)return t}let v=i?s.fill(0):n?p():{};for(let o=0;o<c;o++)_=i?o:s[o],i?(m=e[_],o>u&&(f=t[_],f=m===f?m:typeof m==`object`?h(m,f,n,r):f),v[_]=o<u?m:f):v[_]=a[o];return v}function g(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function _(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!_(a,o,n,r))return!1}return!0}if(g(e)&&g(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!_(e[i],t[i],n,r))return!1;return!0}let i=0;if(r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!_(e[a],t[a],n,r)))return!1;return i===0}return!1}function v(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function y(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}var b=/[\x00-\x1f\x7f"<>`{}]/g;function x(e){return e.replace(b,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function S(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return x(t)}var C=[`http:`,`https:`,`mailto:`,`tel:`];function w(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var T=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function E(e,t){if(!e)return!1;if(T.test(e))return!0;let n=w(e);return n?!t.has(n):!1}var D={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},O=/[&><\u2028\u2029]/g;function k(e){return e.replace(O,e=>D[e])}function A(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=S(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=S(r?e.slice(r):e)}return t}function ee(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function j(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function M(e){return e.replace(/\/{2,}/g,`/`)}function N(e){return e===`/`?e:e.replace(/^\/+/,``)}function P(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function te(e){return P(N(e))}function ne(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function re(e,t,n=`never`,r){if(t.includes(`//`)&&(t=M(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=M(e)),o=e.split(`/`);o.length>1&&l(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(l(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?M(s):s)||`/`;return a&&r&&r.set(a,c),c}function ie(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function ae(e){return e==null||e===``}function oe(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function se(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(!(t===3&&f==null)){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&ae(f)){if(c===`/`&&!d)continue;f=``}o+=c+oe(s,f,r)+(d||``)}}return o+a||`/`}function ce(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var F=4,le=5;function ue(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function de(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function I(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,u=s.length,d=s.endsWith(`/`)?u-1:u,f=c?.caseSensitive??e,p=c?.params?.parse??c?.parseParams,m,h=a?n-1:0;if(!r||s.includes(`$`)){m=a?.slice()??[];let e=l(m);e&&typeof e!=`string`&&e[0]===2&&(m[m.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),d)],h=u)}for(;o<u;){let e=o,t=s.indexOf(`/`,e),n=t===-1?u:t,a=de(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;f?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=L(r);c=n,t.set(e,n)}}else{let t=a[0],l=a[2],g=a[3]??``;if(t===2&&(n=u,o=n+1),m&&h<n&&(h<e-1&&m.push(s.slice(h,e-1)),a[2]=`/`+l,t===2&&a[3]!==void 0&&d<u&&(a[3]=g.slice(0,-1)),m.push(a),h=n),!r)continue;let _=f&&!!(l||g);f||(l=l.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!p&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===l&&e.suffix===g);if(y)c=y;else{let e=L(r,t,_,l,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}m&&h<d&&m.push(s.slice(h,d));let g=m?.slice();if(!r)return g;if(p&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=L(r,le);(r.pathless??=[]).push(e),r=e}let _=(t.path||!t.children)&&!t.isRoot;if(_&&d<u){let e=L(r,F);r.index=e,r=e}return r.parse=p??null,r.priority=c?.params?.priority??0,r.route||(r.data=g,_&&(r.route=t)),[r,o,g]}function fe(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function L(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function pe(e,t){let n=L(),r=[];function i(e,t,n,a){let[o,s,c]=I(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(fe);t.masksTree=n,t.flatCache=ce(1e3)}function me(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=ve(e,t.masksTree);return t.flatCache.set(e,r),r}function he(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=L(),I(t,{from:e},1,o),i.singleCache.set(a,o)),ve(r,o,n)}function ge(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=ve(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=be(a.route)),t.matchCache.set(r,a),a}function _e(e,t=!1){let n=L(),r=[],i={},a={},s=0;function c(e,n,l,u){if(e.init(s),e.id in i&&o(),i[e.id]=e,s!==0&&e.path){let t=P(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}s++;let[d,f,p]=I(t,e,n,l,r,u);if(e._interpolation=p,e.children)for(let t of e.children)c(t,f,d,p)}c(e,1,n);for(let e of r)e.sort(fe);return{processedTree:{segmentTree:n,singleCache:ce(1e3),matchCache:ce(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function ve(e,t,n=!1){let r=e.split(`/`),i=Se(e,r,t,n);if(!i)return null;let[a]=ye(e,r,i);return{route:i.node.route,rawParams:a}}function ye(e,t,n){let r=xe(n.node),i=n.node.data&&ue(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===F)break;if(u.kind===le){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function be(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function xe(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Se(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!l(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,u=null;for(;s.length;){let n=s.pop(),{node:i,index:l,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!Ee(u,n))continue;if(i.parse){if(!Te(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==F&&Ee(c,n)&&(c=n);let _=l===o;if(_&&(i.route&&(!a||i.kind===F||i.kind===2)&&Ee(u,n)&&(u=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[l],y;if(_&&i.index){let n={node:i.index,index:l,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(Te(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&we(f,o))return n;Ee(u,n)&&(u=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(_||!(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)))){if(a){if(_)continue;let e=t.slice(l).join(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:l,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:l+1,skipped:d,statics:f,dynamics:p,optionals:m+Ce(o,l),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:l+1,skipped:d,statics:f,dynamics:p+Ce(o,l),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:l+1,skipped:d,statics:f+Ce(o,l),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:l+1,skipped:d,statics:f+Ce(o,l),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:l,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(u)return u;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Ce(e,t){return 2**(e-t-1)}function we(e,t){return e===2**(t-1)-1}function Te(e,t,n){let r,i;try{[r,i]=ye(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function Ee(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===F)>(e.node.kind===F)||t.node.kind===F==(e.node.kind===F)&&t.node.depth>e.node.depth))):!0}function De(){try{return sessionStorage}catch{return}}var Oe=`tsr-scroll-restoration-v1_3`,ke=De();function Ae(){try{return JSON.parse(ke?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var R=Ae(),je=`data-scroll-restoration-id`,Me=e=>e.state.__TSR_key||e.href;function Ne(e){let t=e.getAttribute(je);if(t)return`[${je}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}function Pe(e,t){let n=R[(t.getKey||Me)(e.latestLocation)];if(!n)return;if(t.id)return n[`[${je}="${t.id}"]`];let r=t.getElement?.();if(r)return n[r===window?z:Ne(r)]}var Fe=!1,z=`window`;function Ie(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Le(e){let t=new Set;for(let n of e){if(n===z)continue;let e=Ie(n);e&&t.add(e)}return t}function Re(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||Me,a=new Set,o=e=>{let t=R[e]||={};for(let e of a)e===document?t[z]={scrollX,scrollY}:e.isConnected&&(t[Ne(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,Fe=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{Fe||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{ke?.setItem(Oe,JSON.stringify(R))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),!r.r&&(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.e&&d&&d!==u){let e=R[d];if(e){let t=R[u];for(let n in e){if(n===z){if(s)continue}else{let e=Ie(n);if(!e||s&&o&&(l??=Le(o),l.has(e)))continue}t||=R[u]={},t[n]??=e[n]}}}Fe=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Le(o));let t=e&&i&&c,s=r.e?R[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===z){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=Ie(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Fe=!1}}))}var ze=/^(?:\s|["[{\d-]|fa|nu|tr)/,Be=He(JSON.parse),Ve=Ue(JSON.stringify,JSON.parse);function He(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=s(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!ze.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function Ue(t,n){let r=n===JSON.parse;function i(e){if(e&&typeof e==`object`)try{return t(e)}catch{}else if(n&&typeof e==`string`){if(r&&!ze.test(e))return e;try{return n(e),t(e)}catch{}}return e}return t=>{let n=e(t,i);return n?`?${n}`:``}}var We=`__root__`;function Ge(e,t,n){let r=te(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=M(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>Ke(n,s.input({url:e})),output:({url:e})=>s.output({url:qe(n,e)})}:s}function Ke(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function qe(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Je(e){let t=e;return{get(){return t},set(e){t=u(e,t)}}}function Ye(e){return{get(){return e()}}}function Xe(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{j(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var B=`__TSR_index`,Ze=`popstate`,Qe=`beforeunload`,$e=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function et(e){let t=$e.exec(e);return t?`/`+e.slice(t[0].length):e}function tt(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
2
2
|
\r`.includes(e)?``:encodeURIComponent(e))),et(e)}function nt(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=at(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[B];i=rt(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[B];i=rt(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[B]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r,_getBlockers:()=>e.getBlockers?.()??[]}}function rt(e,t){let n=ot();return{...t,key:n,__TSR_key:n,[B]:e}}function it(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=t=>tt(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>at(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=ot();t.history.replaceState({[B]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=at(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[B]-l.state[B],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=nt({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Qe,x,{capture:!0}),t.removeEventListener(Ze,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(Qe,x,{capture:!0}),t.addEventListener(Ze,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function at(e,t){let n=tt(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=ot();t={[B]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function ot(){return(Math.random()+1).toString(36).slice(7)}function st(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function ct(e){return e.pathname+e.search+e.hash}function lt(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function ut(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function dt(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function ft({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function pt(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function mt(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var ht=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=it()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`);let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&te(n)?Ge(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Xe(this.latestLocation,e),Re(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=_e(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&pe(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:ce(1e3)}},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i},a)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:A(e),external:!1,searchStr:o,search:m(t?.search,i),hash:A(r.slice(1)),state:h(t?.state,a)}}let o=Ke(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:A(et(o.pathname)),external:!!this.rewrite&&st(o,this.origin),searchStr:c,search:m(t?.search,s),hash:A(o.hash.slice(1)),state:h(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=ge(P(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=at(n.href,{});n={...n,to:Ke(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=re(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[P(c)],u=c.includes(`$`),d;if(l)d=l._branch??=be(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let m=u?l?._interpolation??I(!1,{fullPath:c},0):void 0,h;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(h??=bt(n.params,e),!f(h))break;h===e&&(h=Object.assign(p(),h));try{Object.assign(h,t(h))}catch{}}}h??=bt(n.params,xt(n.params,m)?o()[3]:St);let g=e.leaveParams?c:et(A(m?se(c,m,h,this.pathParamsDecoder):c)),_=Ct(d,e._includeValidateSearch),v=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,yt(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},y=_.length?wt(_,v(),n):n.search===!0?v():typeof n.search==`function`?n.search(v()):n.search||St,b=this.options.stringifySearch(y),x=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,S=x?`#${x}`:``,C=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:St,w=`${g}${b}${S}`,T,E,D=!1;if(this.rewrite){let e=new URL(w,this.origin),t=e.origin,n=qe(this.rewrite,e);T=ct(e),st(n,t)?(E=n.href,D=!0):E=et(ct(n))}else T=ee(w),E=T;return{publicHref:E,href:T,pathname:g,search:y,searchStr:b,state:C,hash:x??``,external:D,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=me(r.pathname,this.processedTree);if(t){let i=Object.assign(p(),t.rawParams),{from:a,params:o,...s}=t.route,c=bt(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return gt(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=P(this.latestLocation.href)===P(n.href)&&_(ft(n.state),ft(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=n?w(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}return gt(this,!a&&r?r:n,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await cn(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(dt(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));this._committed=t.map(t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&<(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t});for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(T.test(n)||(r=w(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:st(e,this.origin)||(n=ct(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=V,this.preloadRoute=e=>ln(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?re(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=he(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!_(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?_(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=ie(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Ve,parseSearch:e.parseSearch??Be,protocolAllowlist:e.protocolAllowlist??C}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=I(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[i,a,o]=this.getMatchedRoutes(e.pathname),s=i,c=!1;(o?o.path!==`/`&&a[`**`]:P(e.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:c=!0);let l=c?Tt(this.options.notFoundMode,s):void 0,u=Array(s.length),d=this._committed,f=(e,t)=>{let n=d[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?d.find(t=>t.routeId===e.id):void 0},g;for(let i=0;i<s.length;i++){let o=s[i],c=u[i-1],d,_,v;{let n=c?.search??e.search,r=c?._strictSearch??void 0;try{let e=yt(o.options.validateSearch,{...n})??void 0;d={...n,...e},_={...r,...e}}catch(e){let r=e;if(e instanceof _t||(r=new _t(e.message,{cause:e})),t?.throwOnError)throw r;d=n,_={},v=r}}let y=``,b=``;try{y=o.options.loaderDeps?.({search:d})??``,b=y&&JSON.stringify(y)||``}catch(e){if(t?.throwOnError)throw e;v??=e}let x=p(),S=o._interpolation?se(o.fullPath,o._interpolation,a,this.pathParamsDecoder,x):o.fullPath,C=o.id+S+b,w=f(o,i),T=this._cache.get(C)??(w?.id===C?w:void 0);g=T?._strictParams??Object.assign(x,g);let E;if(!T)try{Et(o,g)}catch(e){if(E=r(e)||n(e)?e:new vt(e.message,{cause:e}),t?.throwOnError)throw E}let D=w?`stay`:`enter`,O;if(T)O={...T,cause:D,search:m(w?w.search:T.search,d),_strictSearch:_,searchError:v};else{let e=lt(o)?`pending`:`success`;O={id:C,ssr:o.options.ssr,index:i,routeId:o.id,params:w?.params??g,_strictParams:g,pathname:S,updatedAt:Date.now(),search:w?m(w.search,d):d,_strictSearch:_,searchError:v,status:e,isFetching:!1,error:void 0,paramsError:E,context:{},abortController:t?._controller??new AbortController,cause:D,loaderDeps:w?h(w.loaderDeps,y):y,invalid:!1,preload:!1,staticData:o.options.staticData||{},fullPath:o.fullPath}}let k=l===o.id;O._notFound&&!k&&(O.error=void 0),O._notFound=k,u[i]=O}for(let e=0;e<u.length;e++){let n=u[e];n.params=n.cause===`stay`?m(n.params,g):g,t?._controller&&(n.context={})}return u}matchRoutesLightweight(e){let t=l(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=l(a),c={...e.search};for(let e of a)try{Object.assign(c,yt(e.options.validateSearch,c))}catch{}let u=n&&n.routeId===s.id&&n.pathname===e.pathname,d;if(u)d=n.params;else{let e=o;for(let t of a)try{Et(t,e)}catch{}d=e}let f=[a,s.fullPath,c,d];return this.lightweightCache.set(e,[r,f]),f}};async function gt(e,t,{replace:n,ignoreBlocker:r}){if(!E(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var _t=class extends Error{},vt=class extends Error{};function yt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new _t(`Async validation not supported`);if(n.issues)throw new _t(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function bt(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function xt(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!d.call(e,t[1]))}var St=Object.freeze({});function Ct(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=yt(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function wt(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=u(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function Tt(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return We}function Et(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function Dt(e,t){return e.options[t]?.preload?.()}function Ot(e,t){let n=Dt(e,`component`),r=Dt(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function V(e,t,n){let r=()=>t===!1?void 0:t?Dt(e,t):Ot(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function kt(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function At(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}function jt(e){let t=e.length;for(let n=0;n<t;n++){let r=e[n];if(r._assetEnd!==void 0){t=Math.min(t,Math.max(n+1,r._assetEnd));continue}if(r.status!==`success`||r._notFound){t=n+1;break}}return t<e.length?e.slice(0,t):e}var H=0,U=1,Mt=2,W=3,G=[4];function Nt(e){return typeof e[0]==`number`}function K(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).then(()=>t.removeEventListener(`abort`,i))})}function q(e,t){return e.routesById[t.routeId]}function Pt(e,t,i){return n(e)?[W,e]:r(e)?(e.routeId||=i,[Mt,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[U,e]):[H,e]}function Ft(e,t){let n=Pt(t,!0,e.id);if(n[0]!==U)return n;try{e.options.onError?.(n[1])}catch(t){n=Pt(t,!0,e.id)}return n}function It(e,t,n,r,i){return i[0].signal.aborted?G:Yt(e,t,n,Ft(n,r),i)}async function Lt(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=q(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return J(e,r),[i,It(e,t,u,a,n)]}if(c.aborted)return[i,G];let p=r.paramsError??r.searchError;if(p!==void 0)return J(e,r),[i,It(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Bt(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?K(a,c):a);if(c.aborted)return[i,G];let s=Yt(e,t,u,Pt(o,!1,u.id),n);if(s[0]!==H)return J(e,r),[i,s];r.context={...r.context,...o}}catch(a){return J(e,r),[i,It(e,t,u,a,n)]}finally{r.status=h,Bt(e,r,!1,n[0])}}i()}function Rt(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function J(e,t){let n=t._flight;t._flight=void 0,Rt(e,t,n)?.abort()}function Y(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=Rt(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function zt(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Bt(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Vt(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Ht(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return G;if(!i)return[H,void 0];let l=n._flight;Bt(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Vt(e,t,n,r,s,a,!!o[3]))).then(e=>Pt(e,!1,r.id),e=>Pt(e,!0,r.id)).then(t=>(t[0]!==H&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===U&&l[2]?Ft(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Yt(e,t,r,await K(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return J(e,n),G}finally{Bt(e,n,!1,s)}}function Ut(e,t,n){t[0]!==W&&(e.status=`success`,e.error=void 0,t[0]===H?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Wt(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&J(e,r)}function Gt(e,t){return t[0]===U||t[0]===Mt?{...e,status:t[0]===U?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Kt(e,t,n,r,i,a,o){let s=t[1][n],c=q(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Vt(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=G)),!p)if(s.status!==`success`)f=!0;else{let t=l||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}catch(n){s.invalid=!0,J(e,s),p=It(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!!(m&&f&&s.status===`success`&&!l&&!a[4]&&((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)!==`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,Rt(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Ht(e,t,s,c,g,i,a).then(t=>(Ut(s,t,l),t[0]===H&&(m&&!a[0].signal.aborted&&Wt(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[H,s.loaderData]),T=(async()=>{try{let e=V(c,void 0,C);e&&await K(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,It(e,t,c,r,a)]}let r=await w;x&&r[0]===H&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Gt(s,e));let E={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let D=Ht(e,t,E,c,g,i,a).then(e=>(s.isFetching=!1,Ut(E,e,!1),e));return(t[2]??=[]).push([n,D,T,E]),D.then(e=>Gt(E,e))}async function qt(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=q(e,t[n]);try{let e=V(i,!1);e&&await K(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function X(e,t){t[2]&&=(Y(e,t[2].map(e=>e[3])),void 0)}async function Jt(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=W)throw[a,t];!i&&t[0]!==H&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===W)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Yt(e,t,n,r,i,a){for(;r[0]===W;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[W,t]:[W,t,a]}return[W,o,n]}catch(e){r=a?[U,e]:Ft(n,e),a=!0}}return r}async function Xt(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===Mt?qt(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=W)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==H&&t[0]<W&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=W){let n=s[1];if(n[0]!==W||n[1].options.reloadDocument||n[2])return X(e,t),n;c=!0,s=[0,[U,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===U?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=q(e,u);try{await K(i?Promise.resolve().then(()=>V(m,l===U?`errorComponent`:`notFoundComponent`)):Promise.all([V(m),V(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return X(e,t),G}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),X(e,t),Y(e,o),p()):u.status=`success`}return t}async function Zt(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=q(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await K(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function Qt(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await qt(e,n,void 0,a,s);n[s]._notFound=void 0,n[t]._notFound=!0,s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=Kt(e,i,t,u,f,r,l)},m=await Lt(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===Mt){let t=await qt(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=W&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=Xt(e,i,u,r[0],Jt(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Jt(i[2],void 0,void 0,h.then(e=>Nt(e)?0:kt(n).length,()=>0))),o=await h}catch(t){if(X(e,i),t===a&&a.aborted)return G;throw t}return Nt(o)?o:Zt(e,o,a,r[6]===n.length?r[6]:0)}function $t(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=q(e,o),u=s||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>$t(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function Z(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function en(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!kt(t[3]).some(e=>e.id===n[1]))return;let i;try{await K(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function tn(e,t){e._committed=t,e.stores.setMatches(t)}function nn(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=kt(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=q(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=pt(n);tn(e,n),Y(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),mt(e,i,n,a,l,t)}async function rn(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function an(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function on(e,t,n,r,i){let a=n.map(e=>({...e}));zt(a);for(let t of r)J(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await Xt(e,o,r,t[0],i)}catch(t){throw Y(e,a),t}if(Nt(s)){Y(e,a),s[0]===W&&e._tx===t&&e._committed===n&&await an(e,t,s);return}if(await Zt(e,s,t[0].signal),e._tx!==t||e._committed!==n){Y(e,a);return}for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),J(e,n))}tn(e,a),Y(e,n,a)}async function sn(e,t,n,r,i,a){let o=await Qt(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(Nt(o)){let n=o[0]===W&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Z(e,t),Y(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Z(e,t);return}await an(e,t,o);return}let s=o[1];if(e._tx===t&&await en(e,t),e._tx!==t){Z(e,t),Y(e,s),X(e,o);return}let c=t[2],l=dt(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await en(e,t),e._tx!==t){Z(e,t),Y(e,s),X(e,o);return}let n=await e.startTransition(()=>{Z(e,t),nn(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);if(e._tx!==t){X(e,o);return}u?.length&&on(e,t,s,u,o[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function cn(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),!u.signal.aborted){let t=dt(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await rn(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});zt(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){Y(e,m),await rn(e,n);return}e._preflight=void 0;let g,_=()=>sn(e,y,f,()=>$t(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>rn(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Bt(e,t,!1)}n[0].abort(),Y(e,n[3],y[3],!0)}if(e._tx!==y){Y(e,y[3]),y[3]=[],g?.(),await rn(e,y);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&$t(e,y),g?.(_()),await y[5]}async function ln(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let i=e._committed,a=new AbortController,o,s,c;try{try{o=e.matchRoutes(n,{_controller:a}),zt(o),s=(e._preloads??=new Map).set(a,o),c=await Qt(e,n,o,[a,t,i,!0])}finally{s&&(s=s.delete(a),Y(e,o)),a.abort()}if(!Nt(c))return c[1];if(!s||c.length<3)return;n=c[2]}catch(e){r(e)||console.error(e);return}}}async function un(e){let t=window.$_TSR,n=e.options.serializationAdapters;n?.length&&(t.t=new Map(n.map(e=>[e.key,e.fromSerializable])),t.buffer.forEach(e=>e())),t.initialized=!0;let r=t.router;e.ssr={manifest:r.manifest},e.options.ssr={nonce:document.querySelector(`meta[property="csp-nonce"]`)?.content};let i=r.matches,a=new AbortController,o=e._preflight;e._preflight=a,o?.abort();let s=()=>e._preflight===a,l,u,d,f;try{if(await K(e.options.hydrate?.(r.dehydratedData),a.signal),!s())return;let t=e.history.location;d=t.href,f=t.state,e.updateLatestLocation(),l=e.latestLocation,e.stores.location.set(l),u=e.matchRoutes(l,{_controller:a})}catch(t){if(s()&&(e._preflight=void 0),a.abort(t),t!==a.signal)throw t}if(!s())return;let p=[],m,h=0,g=t=>{h=Math.min(h,t+1);let n=p.splice(t);for(let t of n)q(e,t).options.loader&&(t.status===`success`||!t.invalid&&`loaderData`in t)&&Wt(e,{...t,status:`success`,error:void 0,preload:!0},e._cache.get(t.id));Y(e,n)},_=i.length>u.length?u.findIndex(e=>e._notFound)+1:i.length,v=!1;for(let t=0;t<_;t++){let n=u[t],r=i[t];if(r.i!==c(n.id)){m??=t;break}h=t+1;let a=q(e,n);if((`l`in r||r.s===`success`&&r.e===void 0&&a.options.loader)&&(n.loaderData=r.l),n.status=r.s,n.ssr=r.ssr,a.options.ssr=n.ssr,n.updatedAt=r.u,n.error=r.e,n._notFound||=r.g,n.status===`error`||n.status===`notFound`||n._notFound){v=!0,p.push(n),(n.ssr===!1||n.ssr===`data-only`)&&(m??=t);break}if(n.status===`pending`){m??=t;break}p.push(n),n.ssr===`data-only`&&(m??=t)}!v&&p.length===_&&_<u.length&&(m=_);let y=p.map(async t=>{try{let n=q(e,t);return await(t._notFound?Promise.all([V(n),V(n,`notFoundComponent`)]):V(n,t.status===`error`?`errorComponent`:t.status===`notFound`?`notFoundComponent`:void 0)),!0}catch{return!1}}),b=0;try{for(;b<y.length&&await K(y[b],a.signal);)b++}catch{return}if(!s())return;b<p.length&&g(b);let x=Math.max(m===p.length?p.length+1:p.length,b<y.length?b:h);for(let t=0;t<x;t++){let n=u[t],r=q(e,n),o=u[t-1]?.context??e.options.context??{},c;if(r.options.context){try{c=n._ctx=r.options.context({deps:n.loaderDeps,params:n.params,context:o,location:l,navigate:t=>e.navigate({...t,_fromLocation:l}),buildLocation:e.buildLocation,cause:n.cause,abortController:a,preload:!1,matches:u,routeId:r.id})||{}}catch{if(!s())return;if(n.status!==`error`&&n.status!==`notFound`&&!n._notFound){m=Math.min(m??t,t),g(t);break}}if(!s())return}n.context={...o,...c,...p[t]&&i[t].b}}if(await Zt(e,[l,u],a.signal,0,h),!s())return;let S=m!==void 0||p.length<_,C=v&&p.length===_?u:p,w=S?u:C,T;if(S&&m!==void 0){let e=w[m];T=e.ssr===`data-only`&&h>m+1?h:void 0,w=w.slice(),w[m]={...e,status:`pending`,ssr:e.ssr===`data-only`?`data-only`:!1,_assetEnd:T}}let E=()=>{let t=e.history.location;return S&&!e._tx&&t.href===d&&t.state===f&&e._committed===C&&C.length&&!a.signal.aborted?a:void 0},D=[E,t=>{if(e._handoff!==D)return;e._handoff=void 0;let n=C.length;if(!t||!E()||C.some((e,n)=>e.id!==t[n]?.id)){a.abort();return}let r=T;if(r!==void 0){for(let e=n;e<r;e++)if(u[e]?.id!==t[e]?.id){r=e>m+1?e:void 0;break}}let i=C.map(e=>({...e}));r!==void 0&&(i[m]._assetEnd=r),Y(e,t.splice(0,n,...i));for(let e=n;e<t.length;e++){let n=t[e],r=u[e];r?.id===n.id&&r._ctx&&(n._ctx=r._ctx),n.abortController=a}return n}];e._committed=C,e._lifecycleEnd=pt(C),e._handoff=D,e._preflight=void 0,e.batch(()=>{e.stores.setMatches(w),e.stores.status.set(`idle`),S||e.stores.resolvedLocation.set(e.stores.location.get())})}var dn=`Error preloading route! ☝️`,Q=a(i(),1),fn=Q.createContext(null);function pn(e){return Q.useContext(fn)}function mn(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{At(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var hn=Q.createContext(void 0),gn=Q.createContext(void 0);t();function _n(...e){let t=Q.useRef(e),n=t.current;return e.forEach((e,t)=>{_(n[t],e,!1,!0)||(n[t]=e)}),t.current}function vn(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(dn)})}function yn(e,t){let n=typeof e==`string`&&w(e);if(n)return t.has(n)?e:null}function bn(e,t,n,r){let i=ne(e.pathname,r),a=ne(t.pathname,r);return(n?.exact?i!==a:!(i.startsWith(a)&&(i.length===a.length||i[a.length]===`/`)))||(n?.includeSearch??!0)&&!_(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function xn(e,t,n){let r=pn(),i=Q.useRef(null),a=Q.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:m,onMouseEnter:h,onMouseLeave:g,onTouchStart:_}=e,[v,y,b]=_n(e.search,e.params,o),x=Q.useContext(hn),S=(r.stores._linkScopes??={})[x]??=mn(r,x),[C,T,E]=Q.useMemo(()=>{let t=yn(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=S[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=On(t,r,u),s=u||o&&!w(o)?bn(e,t,b,r.basepath):void 0;(!a||a[0]!==o||a[1]!==s)&&(a=[o,s]),i=e}return a};return[n,c,b?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,S,e.from,e.hash,e.href,s,v,y,e.state,e.mask,e.unsafeRelative,b,u]),[D,O]=Q.useSyncExternalStore(S[1],T,E||T),k=O===void 0&&D,A=u||D===void 0,ee=Q.useRef(!1),j=e.reloadDocument||k||A?!1:c??r.options.defaultPreload,M=l??r.options.defaultPreloadDelay??0,N=Q.useCallback(e=>{let t=e?.isIntersecting;if(!(t??j===`intent`)){t===!1&&Dn(i);return}if(!M){vn(r,C);return}i.t??=setTimeout(()=>{i.t=void 0,vn(r,C)},M)},[r,C,i,j,M]);Q.useEffect(()=>{if(!j)return;j===`render`&&!ee.current&&(ee.current=!0,vn(r,C));let e=!0,t;return j===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&N(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),Dn(i)}},[r,C,j,N,i]);let P=Tn(e,n);if(P.ref=t?a:i,k)return P.href=k,P;let te=t=>{let n=d??t.currentTarget.getAttribute(`target`);!A&&!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(!n||n===`_self`)&&t.button===0&&(t.preventDefault(),Dn(i),r.navigate({...e,_fromLocation:C._fromLocation}))},ne=()=>{j===`intent`&&vn(r,C)},re=()=>{j===`intent`&&Dn(i)};return P.onClick=$(f,te),P.onBlur=$(p,re),P.onFocus=$(m,N),P.onMouseEnter=$(h,N),P.onMouseLeave=$(g,re),P.onTouchStart=$(_,ne),En(P,e,O,D,A,n)}var Sn={},Cn={className:`active`},wn=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Tn(e,t){let n={};for(let r in e)wn.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function En(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:d}=t,f=u(n?o:s,{})??(n?Cn:Sn);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=d;let p=f.style;(l||p)&&(e.style=l&&p?{...l,...p}:l||p);let m=f.className;return(c||m)&&(e.className=c?m?`${c} ${m}`:c:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var Dn=e=>{clearTimeout(e.t),e.t=void 0},$=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function On(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!((r.external||i!==r.publicHref)&&E(i,t.protocolAllowlist)))return i}var kn=Q.memo(Q.forwardRef((e,t)=>{let n=e._asChild||`a`,r=xn(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return Q.createElement(n,r,i)}),An);function An(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!wn.has(r)||!_(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}export{y as C,v as S,N as _,fn as a,k as b,ht as c,Je as d,Ye as f,M as g,Re as h,pn as i,ut as l,Pe as m,gn as n,jt as o,We as p,hn as r,un as s,kn as t,dt as u,P as v,h as w,f as x,_ as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Vr as e}from"./sidebar-
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";import{f as t,p as n}from"./uuidv7-DgXZ1zRR.js";var r=e(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),i=e=>/^[\w@%+=:,./-]+$/.test(e)?e:`'${e.replaceAll(`'`,`'\\''`)}'`,a={apk:{label:`APK`,installs:`Android device or emulator`},aab:{label:`AAB`,installs:`Google Play or bundletool`},app:{label:`Simulator app`,installs:`iOS Simulator`},ipa:{label:`IPA`,installs:`registered iOS devices`}},o=e=>e===`ios`?`iOS`:`Android`,s=e=>{let t=e.submitted_version??[e.app_version??e.native_app_version??null,e.build_number===null?null:`(${e.build_number})`].filter(e=>e!==null).join(` `);return t===``?null:`${o(e.platform)} ${t}`},c=e=>`/api/native-builds/${encodeURIComponent(e)}/download`,l=(e,t,n)=>`${e.origin}${u(e,t)}${c(t)}?t=${encodeURIComponent(n)}`,u=(e,t)=>{let n=p(t);return e.pathname.endsWith(n)?e.pathname.slice(0,-n.length):``},d=(e,t)=>{let n=e.pathname.replace(/\/$/u,``),r=t.replace(/\/$/u,``);return n.endsWith(r)?n.slice(0,n.length-r.length):``},f=e=>{let t=e.pathname.lastIndexOf(`/native-builds`);return t<0?``:e.pathname.slice(0,t)},p=e=>`/native-builds/${encodeURIComponent(e)}`,m=3600*1e3,h=`hot-updater-ios-udid`,g=`hot-updater-ios-device-receipt`,_=`hot-updater-ios-device-pending-receipt`,v=e=>{try{let t=e.split(`.`)[0].replaceAll(`-`,`+`).replaceAll(`_`,`/`),n=JSON.parse(atob(t)).x;return typeof n==`number`?n:0}catch{return 0}},y=e=>{try{let t=JSON.parse(window.sessionStorage.getItem(`hot-updater-ios-device-pending-receipt`)??`null`);return typeof t?.receipt==`string`?v(t.receipt)<=Date.now()?(window.sessionStorage.removeItem(_),null):e!==null&&t.udid===e?t.receipt:null:null}catch{return null}},b=(e,t)=>{try{window.sessionStorage.setItem(_,JSON.stringify({udid:e,receipt:t}))}catch{}},x=e=>{try{JSON.parse(window.sessionStorage.getItem(`hot-updater-ios-device-pending-receipt`)??`null`)?.receipt===e&&window.sessionStorage.removeItem(_)}catch{}},S=/^(?:[0-9a-f]{40}|[0-9a-f]{8}-[0-9a-f]{16})$/iu,C=`/native-builds/devices`,w=`/_hot-updater/devices/device.mobileconfig`,T=(e,t)=>`${e}${w}?t=${encodeURIComponent(t)}`,E=`npx hot-updater native-build devices add`,D=e=>`…${e.slice(-6)}`,O=e=>`/_hot-updater/native-builds/${encodeURIComponent(e)}/manifest.plist`,k=(e,t,n)=>{let r=`${e.origin}${u(e,t)}${O(t)}?t=${encodeURIComponent(n)}`;return`itms-services://?action=download-manifest&url=${encodeURIComponent(r)}`},A=e=>n(e.channel_id.slice(8)),j=e=>{if(e.fingerprintHash!==null)return{platform:e.platform,channel:e.channel,fingerprintHash:e.fingerprintHash,appVersion:null};let n=e.targetAppVersion;return n===null||t(n)!==n?null:{platform:e.platform,channel:e.channel,fingerprintHash:null,appVersion:n}},M=e=>{let t=(e.artifact_storage_uri.split(/[?#]/,1)[0]??``).split(`/`).at(-1)??``;try{return decodeURIComponent(t)}catch{return t}},N=[`B`,`KB`,`MB`,`GB`],P=e=>{let t=e,n=0;for(;t>=1024&&n<N.length-1;)t/=1024,n+=1;return`${n===0?t:t.toFixed(1)} ${N[n]}`},F=e=>`npx hot-updater native-build install ${i(e.id)}`;export{y as C,r as D,i as E,o as S,x as T,M as _,h as a,s as b,u as c,b as d,T as f,c as g,A as h,S as i,f as l,a as m,C as n,m as o,D as p,g as r,d as s,E as t,P as u,F as v,j as w,l as x,k as y};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-builds-Chv-kXaS.js","assets/sidebar-UnsNYOry.js","assets/preload-helper-52zhjEsw.js","assets/link-D95E0fwF.js","assets/select-BAd2hAoW.js","assets/useCompositeListItem-B9ONn9qn.js","assets/check-Dz_5aNwx.js","assets/arrow-up-right-BPRe5soE.js","assets/TargetDisplay-DzSkf5yP.js","assets/copy-BxI24-g-.js","assets/key-round-B-vaAsR7.js","assets/native-builds-BOSmoLed.js","assets/uuidv7-DgXZ1zRR.js","assets/dist-BEIz5ojx.js","assets/HashValueDisplay-DKziWjEg.js","assets/download-ekENI2Sw.js","assets/-native-builds-search-BvCftqF2.js","assets/history-DwdBLzJP.js","assets/refresh-cw-CpCxPYma.js","assets/badge-D4Tiwei-.js","assets/ChannelBadge-Do-lWsLM.js","assets/RelativeTime-CP7nosYx.js","assets/relativeTime-D_aYJRc7.js","assets/chevron-right-CuYrscDY.js","assets/table-r_sYqKTQ.js","assets/RowReason-D7TZ2xwW.js","assets/PlatformIcon-Kq3q98tU.js","assets/NativeBuildsNav-BgeUSMqw.js","assets/tabs-B95QcXeT.js","assets/SandboxBadge-BPf2uve4.js","assets/dialog-e9AF5T6h.js","assets/api-B1z_XXrQ.js","assets/useMutation-BWX97JX2.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e,r as t,t as n}from"./preload-helper-52zhjEsw.js";import{r}from"./-native-builds-search-BvCftqF2.js";var i=e(`/native-builds`)({component:t(()=>n(()=>import(`./native-builds-Chv-kXaS.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32])),`component`),validateSearch:r});export{i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Di as e,Vr as t,_r as n,gr as r,h as i,p as a}from"./sidebar-UnsNYOry.js";import{t as o}from"./link-D95E0fwF.js";import{o as s}from"./preload-helper-52zhjEsw.js";import{t as c}from"./arrow-up-right-BPRe5soE.js";import{i as l,n as u,r as d,t as f}from"./TargetDisplay-DzSkf5yP.js";import{a as p,i as m,n as ee,o as te,r as ne,t as re}from"./select-BAd2hAoW.js";import{t as ie}from"./download-ekENI2Sw.js";import{a as h}from"./-native-builds-search-BvCftqF2.js";import{t as ae}from"./history-DwdBLzJP.js";import{S as g,_ as oe,b as se,g as ce,h as _,m as v,u as y}from"./native-builds-BOSmoLed.js";import{t as b}from"./refresh-cw-CpCxPYma.js";import{a as le,i as ue,n as de,o as fe,r as pe,t as me}from"./badge-D4Tiwei-.js";import{t as he}from"./uuidv7-DgXZ1zRR.js";import{g as ge,i as _e,p as ve}from"./api-B1z_XXrQ.js";import{t as x}from"./native-builds-Bs_JroPG.js";import{n as ye,t as be}from"./PlatformIcon-Kq3q98tU.js";import{a as xe,n as Se,o as Ce,r as we,s as Te,t as Ee}from"./dialog-e9AF5T6h.js";import{i as S,r as C}from"./table-r_sYqKTQ.js";import{t as De}from"./ChannelBadge-Do-lWsLM.js";import{a as w,c as T,d as E,f as Oe,i as ke,l as Ae,n as je,o as D,p as Me,r as Ne,s as O,t as k,u as Pe}from"./RelativeTime-CP7nosYx.js";import{a as A,c as Fe,i as j,l as Ie,n as Le,o as Re,r as ze,s as Be,t as Ve}from"./RowReason-D7TZ2xwW.js";import{t as M}from"./NativeBuildsNav-BgeUSMqw.js";import{i as He,n as Ue,r as N,t as P}from"./SandboxBadge-BPf2uve4.js";var We=t(`file-up`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}],[`path`,{d:`m15 15-3-3-3 3`,key:`15xj92`}]]),F=e(),I=`npx hot-updater native-build import <file>`,L=`https://hot-updater.dev/docs/guides/native-build#import-a-build-made-elsewhere`;function Ge(){return(0,F.jsxs)(Ee,{children:[(0,F.jsxs)(Te,{render:(0,F.jsx)(r,{"aria-label":`Import a build`,className:`min-h-11 min-w-11 sm:min-h-7 sm:min-w-0`,size:`sm`,variant:`outline`}),children:[(0,F.jsx)(We,{"data-icon":`inline-start`}),(0,F.jsx)(`span`,{className:`hidden sm:inline`,children:`Import a build`})]}),(0,F.jsxs)(Se,{className:`sm:max-w-lg`,children:[(0,F.jsxs)(xe,{children:[(0,F.jsx)(Ce,{children:`Import a build`}),(0,F.jsx)(we,{children:`Track an .ipa, .aab, .apk or .app built elsewhere as a patch base.`})]}),(0,F.jsx)(l,{label:`the import command`,value:I,wrap:!0}),(0,F.jsxs)(`a`,{className:n({className:`min-h-11 w-full sm:min-h-8 sm:w-fit`,variant:`outline`}),href:L,rel:`noreferrer`,target:`_blank`,children:[`Import guide`,(0,F.jsx)(c,{"data-icon":`inline-end`})]})]})]})}var Ke={"app-store":`App Store`,"ad-hoc":`ad hoc`,development:`development`,enterprise:`enterprise`},R=e=>{let t=v[e.artifact_kind].label,n=e.submitted_to===null?e.artifact_kind===`ipa`&&e.export_method!==null?`${Ke[e.export_method]} ${t}`:t:`${He[e.submitted_to]} build`;return e.is_sandbox?`sandbox ${n}`:n},qe=e=>{if(e===void 0)return{sentence:`A newer build on its channel reaches people the same way.`,label:`Older: a newer build on its channel reaches people the same way`};let t=se(e);return{sentence:`A newer ${R(e)} exists${t===null?`.`:`: ${t}`}`,label:`Older: a newer ${R(e)} exists${t===null?``:`, ${t}`}`}};function z({newer:e}){let t=qe(e);return(0,F.jsx)(Ve,{icon:ae,label:t.label,reason:t.sentence,children:`Older`})}var Je=`https://hot-updater.dev/docs/guides/native-build#how-a-build-is-tracked`,B=10,V=e=>e===void 0?{}:{channel:e},Ye={one:`older build`,other:`older builds`};function Xe({channel:e,paged:t,folded:i,onClearChannel:a}){return t||i?(0,F.jsx)(O,{icon:h,title:i?`Each build here has a newer one`:`No more native builds`,children:(0,F.jsx)(o,{className:n({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),search:V(e),to:`/native-builds`,children:`Show the newest builds`})}):e===void 0?(0,F.jsxs)(O,{icon:h,title:`No native builds`,children:[(0,F.jsxs)(`p`,{children:[`Build one with`,` `,(0,F.jsx)(`code`,{className:`font-mono text-xs`,children:`native-build android`}),` or`,` `,(0,F.jsx)(`code`,{className:`font-mono text-xs`,children:`native-build ios`}),`, or import one built elsewhere:`]}),(0,F.jsx)(`div`,{className:`w-full text-left`,children:(0,F.jsx)(l,{label:`the import command`,value:I,wrap:!0})}),(0,F.jsxs)(`a`,{className:n({className:`mt-1 min-h-11 sm:min-h-8`,variant:`outline`}),href:Je,rel:`noreferrer`,target:`_blank`,children:[`Native build guide`,(0,F.jsx)(c,{"data-icon":`inline-end`})]}),(0,F.jsxs)(`a`,{className:n({className:`min-h-11 sm:min-h-8`,variant:`outline`}),href:L,rel:`noreferrer`,target:`_blank`,children:[`Import guide`,(0,F.jsx)(c,{"data-icon":`inline-end`})]})]}):(0,F.jsxs)(O,{icon:h,title:(0,F.jsxs)(F.Fragment,{children:[`No native build embeds `,(0,F.jsx)(`span`,{translate:`no`,children:e})]}),children:[(0,F.jsx)(`p`,{children:`A build embeds the channel it was built on. Build one on this channel, or list every channel's builds.`}),(0,F.jsx)(r,{className:`mt-1 min-h-11 sm:min-h-8`,onClick:a,variant:`outline`,children:`Show all channels`})]})}var H=e=>`${g(e.platform)} ${v[e.artifact_kind].label}`;function U({build:e}){return(0,F.jsx)(o,{"aria-label":H(e),className:`relative rounded-sm font-medium whitespace-nowrap text-foreground transition-colors underline-offset-4 after:absolute after:-inset-x-[10px] after:-inset-y-[10px] hover:text-primary hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden`,params:{buildId:e.id},to:`/native-builds/$buildId`,children:v[e.artifact_kind].label})}function W({build:e,inTable:t=!1,older:n=!1,newer:r}){return t?(0,F.jsxs)(`span`,{className:`flex max-w-24 flex-wrap items-center gap-x-1.5 gap-y-1`,children:[(0,F.jsx)(U,{build:e}),(0,F.jsx)(P,{build:e}),n?(0,F.jsx)(z,{newer:r}):null]}):(0,F.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1`,children:[(0,F.jsx)(U,{build:e}),(0,F.jsx)(P,{build:e})]})}function G({channel:e,onChannel:t}){return(0,F.jsx)(`button`,{"aria-label":`Show the builds that embed ${e}`,className:`relative flex max-w-full min-w-0 rounded-md text-left after:absolute after:inset-x-0 after:-inset-y-[11px] focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden`,onClick:()=>t(e),title:e,type:`button`,children:(0,F.jsx)(De,{channel:e,className:`block max-w-32 truncate`})})}function Ze({build:e}){return!N(e)&&!e.is_store_build?(0,F.jsx)(u,{}):(0,F.jsx)(K,{build:e,className:`flex flex-col items-start gap-1`})}function K({build:e,className:t}){return(0,F.jsxs)(`span`,{className:t,children:[(0,F.jsx)(Ue,{build:e}),e.is_store_build?(0,F.jsx)(me,{className:`px-1.5`,variant:`muted`,children:`Store build`}):null]})}function q({build:e}){return(0,F.jsxs)(`a`,{"aria-label":`Download ${oe(e)}`,className:n({className:`min-h-11 sm:min-h-8`,size:`sm`,variant:`outline`}),download:!0,href:ce(e.id),children:[(0,F.jsx)(ie,{"data-icon":`inline-start`}),`Download`]})}function Qe({build:e}){return e.build_number?(0,F.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.build_number}):(0,F.jsx)(u,{})}var J=e=>he(e.id);function Y({build:e,older:t=!1,newer:n,onChannel:r}){let i=s(),a=_(e);return(0,F.jsxs)(E,{"aria-label":`Open native build ${e.id}`,className:`data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100`,"data-older":t?!0:void 0,onOpen:()=>void i({to:`/native-builds/$buildId`,params:{buildId:e.id}}),children:[(0,F.jsx)(C,{children:(0,F.jsx)(W,{build:e,inTable:!0,newer:n,older:t})}),(0,F.jsx)(C,{children:(0,F.jsx)(G,{channel:a,onChannel:r})}),(0,F.jsx)(C,{className:`whitespace-nowrap`,children:(0,F.jsx)(ye,{platform:e.platform})}),(0,F.jsx)(C,{children:(0,F.jsx)(Qe,{build:e})}),(0,F.jsx)(C,{children:(0,F.jsx)(d,{appVersion:e.app_version,fingerprintHash:e.fingerprint_hash,nativeAppVersion:e.native_app_version})}),(0,F.jsx)(C,{children:(0,F.jsx)(f,{value:e.build_key})}),(0,F.jsx)(C,{children:(0,F.jsx)(Ze,{build:e})}),(0,F.jsx)(C,{className:`whitespace-nowrap text-muted-foreground tabular-nums`,children:y(e.byte_size)}),(0,F.jsx)(C,{className:`text-xs text-muted-foreground`,children:(0,F.jsx)(k,{ms:J(e)})}),(0,F.jsx)(C,{className:`text-right`,children:(0,F.jsx)(q,{build:e})})]})}function X({build:e,older:t=!1,newer:n,onChannel:r}){let i=s(),a=_(e),o=N(e)||e.is_store_build;return(0,F.jsxs)(je,{"aria-label":`Native build ${H(e)} ${e.id}`,className:`gap-3 border-b-0 data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100`,"data-older":t?!0:void 0,onClick:Me(()=>void i({to:`/native-builds/$buildId`,params:{buildId:e.id}})),children:[(0,F.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,F.jsxs)(`div`,{className:`flex min-w-0 items-center gap-x-2.5`,children:[(0,F.jsx)(be,{className:`size-4 shrink-0 text-muted-foreground`,platform:e.platform}),(0,F.jsx)(W,{build:e}),t?(0,F.jsx)(z,{newer:n}):null]}),(0,F.jsx)(q,{build:e})]}),(0,F.jsx)(`div`,{className:`flex min-w-0`,children:(0,F.jsx)(G,{channel:a,onChannel:r})}),(0,F.jsxs)(`p`,{className:`flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground`,children:[(0,F.jsx)(`span`,{className:`sr-only`,children:g(e.platform)}),e.build_number?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`span`,{translate:`no`,children:[`Build`,` `,(0,F.jsx)(`span`,{className:`font-mono tabular-nums text-foreground`,children:e.build_number})]}),(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`·`})]}):null,(0,F.jsx)(`span`,{className:`tabular-nums`,children:y(e.byte_size)}),(0,F.jsx)(`span`,{"aria-hidden":`true`,children:`·`}),(0,F.jsx)(k,{ms:J(e)})]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-end gap-x-4 gap-y-6 text-xs`,children:[(0,F.jsxs)(`span`,{className:`flex items-center`,children:[(0,F.jsx)(`span`,{className:`sr-only`,children:`Target `}),(0,F.jsx)(d,{appVersion:e.app_version,fingerprintHash:e.fingerprint_hash,nativeAppVersion:e.native_app_version})]}),e.build_key?(0,F.jsxs)(`span`,{className:`flex items-center`,children:[(0,F.jsx)(`span`,{className:`sr-only`,children:`Build key `}),(0,F.jsx)(f,{value:e.build_key})]}):null]}),o?(0,F.jsx)(K,{build:e,className:`flex flex-wrap items-center gap-1.5`}):null]})}function $e({fold:e,channel:t,isMobile:n,open:r,onOpenChange:i,onChannel:a}){let o=ve(t,{...e.from===void 0?{}:{from:e.from},to:e.to},r),s=o.data?.pages??[],c=Object.assign({},...s.map(e=>e.newer)),l=s.flatMap(e=>e.rows),u=n?void 0:B,d=o.isError?(0,F.jsx)(j,{columns:u,label:`Older builds`,onRetry:()=>void o.refetch(),state:`error`}):o.isPending||o.isFetchingNextPage?(0,F.jsx)(j,{columns:u,label:`Loading older builds`,state:`loading`}):o.hasNextPage?(0,F.jsx)(j,{columns:u,label:`Older builds`,onMore:()=>void o.fetchNextPage(),state:`more`}):null,f={label:Re(e,Ye),open:r,onOpenChange:i,panelId:`native-build-fold-${e.to}`};return n?(0,F.jsxs)(Le,{...f,inList:!0,children:[l.map(e=>(0,F.jsx)(`div`,{className:`border-b last:border-b-0`,role:`listitem`,children:(0,F.jsx)(X,{build:e,newer:c[e.id],older:!0,onChannel:a})},e.id)),d]}):(0,F.jsxs)(ze,{...f,columns:B,children:[l.map(e=>(0,F.jsx)(Y,{build:e,newer:c[e.id],older:!0,onChannel:a},e.id)),d]})}function et({builds:e,channel:t,paged:n,onChannel:a}){let o=i(),s=Ie(),c=e.data?.entries,{next:l,previous:u}=e.data??{},d=c?.filter(({kind:e})=>e===`row`).length??0;if(e.isError)return(0,F.jsxs)(de,{variant:`destructive`,children:[(0,F.jsx)(fe,{}),(0,F.jsx)(le,{children:`Native builds couldn't be loaded`}),(0,F.jsx)(ue,{children:`Check your connection and try again.`}),(0,F.jsx)(pe,{children:(0,F.jsxs)(r,{onClick:()=>void e.refetch(),size:`xs`,variant:`outline`,children:[(0,F.jsx)(b,{"data-icon":`inline-start`}),`Retry`]})})]});let f=(0,F.jsx)(Xe,{channel:t,folded:(c?.length??0)>0,onClearChannel:()=>a(void 0),paged:n}),p=e=>(0,F.jsx)($e,{channel:t,fold:e,isMobile:o,onChannel:a,onOpenChange:t=>s.set(A(e),t),open:s.isOpen(A(e))},`fold-${e.to}`);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(T,{children:o?(0,F.jsx)(`div`,{"aria-busy":e.isPlaceholderData,"aria-label":`Native builds`,className:`h-full overflow-y-auto aria-busy:opacity-60`,role:`list`,children:e.isLoading?(0,F.jsx)(Ne,{label:`Loading native builds`}):(0,F.jsxs)(F.Fragment,{children:[d===0?(0,F.jsx)(ke,{children:f}):null,c?.map(e=>e.kind===`fold`?p(e):(0,F.jsx)(`div`,{className:`border-b last:border-b-0`,role:`listitem`,children:(0,F.jsx)(X,{build:e.row,onChannel:a})},e.row.id))]})}):(0,F.jsx)(w,{"aria-busy":e.isPlaceholderData,"aria-label":`Native builds`,className:`aria-busy:opacity-60 [&_td]:px-1.5 [&_th]:px-1.5`,header:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(S,{children:`Artifact`}),(0,F.jsx)(S,{children:`Channel`}),(0,F.jsx)(S,{children:`Platform`}),(0,F.jsx)(S,{children:`Build`}),(0,F.jsx)(S,{children:`Target`}),(0,F.jsx)(S,{children:`Build key`}),(0,F.jsx)(S,{children:`Store`}),(0,F.jsx)(S,{children:`Size`}),(0,F.jsx)(S,{children:`Created`}),(0,F.jsx)(S,{className:`text-right`,children:(0,F.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]}),rowGroups:!0,children:e.isLoading?(0,F.jsx)(D,{children:(0,F.jsx)(Oe,{columns:B,label:`Loading native builds`})}):(0,F.jsxs)(F.Fragment,{children:[d===0?(0,F.jsx)(D,{children:(0,F.jsx)(Ae,{columns:B,children:f})}):null,Fe(c??[]).map(e=>e.kind===`fold`?p(e.fold):(0,F.jsx)(D,{children:e.rows.map(e=>(0,F.jsx)(Y,{build:e,onChannel:a},e.id))},`rows-${e.rows[0].id}`))]})})}),e.isLoading||c===void 0?null:(0,F.jsx)(Pe,{count:d,folded:{...Be(c),label:`older`},label:`Native build pages`,noun:[`build`,`builds`],pending:e.isPlaceholderData,newest:n?{search:V(t),to:`/native-builds`}:void 0,next:l===void 0?void 0:{search:{...V(t),before:l},to:`/native-builds`},previous:u===void 0?void 0:{search:{...V(t),...u},to:`/native-builds`}})]})}var Z=`all`,Q=`channel:`,$=e=>`${Q}${e}`;function tt({search:e,onSearchChange:t}){let{channel:n,before:i,after:o}=e,s=ge(e),c=_e(),l=c.data?.map(({name:e})=>e)??[],u=n===void 0||l.includes(n)?l:[n,...l],d=e=>t(e===void 0?{}:{channel:e});return(0,F.jsxs)(`div`,{className:`flex h-svh min-h-0 min-w-0 flex-col`,children:[(0,F.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,F.jsx)(a,{className:`-ml-1 size-11 lg:size-7`}),(0,F.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,F.jsx)(h,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,F.jsx)(`h1`,{className:`text-sm font-medium`,children:`Native builds`})]}),(0,F.jsx)(`p`,{className:`basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`Store and test builds, each the built-in bundle its OTAs patch from.`})]}),(0,F.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col gap-4 bg-muted/5 p-3 sm:p-6`,children:[(0,F.jsx)(M,{current:`builds`}),(0,F.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,F.jsxs)(re,{items:[{label:`All channels`,value:Z},...u.map(e=>({label:e,value:$(e)}))],onOpenChange:e=>{e&&c.refetch()},onValueChange:e=>d(e?.startsWith(Q)?e.slice(8):void 0),value:n===void 0?Z:$(n),children:[(0,F.jsx)(p,{"aria-label":`Channel`,className:`min-w-0 flex-1 text-xs data-[size=default]:h-11 sm:w-48 sm:flex-none sm:data-[size=default]:h-8`,children:(0,F.jsx)(te,{})}),(0,F.jsx)(ee,{children:(0,F.jsxs)(ne,{children:[(0,F.jsx)(m,{value:Z,children:`All channels`}),u.map(e=>(0,F.jsx)(m,{translate:`no`,value:$(e),children:e},e))]})})]}),(0,F.jsx)(`div`,{className:`ml-auto`,children:(0,F.jsx)(Ge,{})}),(0,F.jsx)(r,{"aria-label":`Refresh native builds`,className:`size-11 sm:size-7`,disabled:s.isLoading,onClick:()=>void s.refetch(),size:`icon-sm`,variant:`ghost`,children:(0,F.jsx)(b,{"aria-hidden":`true`})})]}),(0,F.jsx)(et,{builds:s,channel:n,onChannel:d,paged:i!==void 0||o!==void 0})]})]})}function nt(){let e=x.useSearch(),t=x.useNavigate();return(0,F.jsx)(tt,{onSearchChange:e=>void t({search:e}),search:e})}export{nt as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-builds_._buildId-Somk3u9R.js","assets/sidebar-UnsNYOry.js","assets/link-D95E0fwF.js","assets/relativeTime-D_aYJRc7.js","assets/arrow-up-right-BPRe5soE.js","assets/TargetDisplay-DzSkf5yP.js","assets/copy-BxI24-g-.js","assets/key-round-B-vaAsR7.js","assets/native-builds-BOSmoLed.js","assets/uuidv7-DgXZ1zRR.js","assets/dist-BEIz5ojx.js","assets/HashValueDisplay-DKziWjEg.js","assets/chevron-right-CuYrscDY.js","assets/download-ekENI2Sw.js","assets/RolloutPercentageBadge-DnmU8XbU.js","assets/badge-D4Tiwei-.js","assets/git-branch-BWrvONjc.js","assets/-native-builds-search-BvCftqF2.js","assets/history-DwdBLzJP.js","assets/refresh-cw-CpCxPYma.js","assets/smartphone-lSZWrqxx.js","assets/QrCode-D3-Vuudy.js","assets/BundleIdDisplay-D8oR8mcP.js","assets/ChannelBadge-Do-lWsLM.js","assets/PlatformIcon-Kq3q98tU.js","assets/IosInstall-2R2o1IXd.js","assets/useMutation-BWX97JX2.js","assets/loader-circle-C26cZDSM.js","assets/field-PkdRPD3A.js","assets/api-B1z_XXrQ.js","assets/preload-helper-52zhjEsw.js","assets/SandboxBadge-BPf2uve4.js","assets/card-BfeRlTvj.js","assets/empty-DpSPWLc2.js","assets/table-r_sYqKTQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{Vr as e}from"./sidebar-UnsNYOry.js";import{i as t,r as n,t as r}from"./preload-helper-52zhjEsw.js";import{n as i}from"./-native-builds-search-BvCftqF2.js";var a=e(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),o=t(`/native-builds_/$buildId`)({component:n(()=>r(()=>import(`./native-builds_._buildId-Somk3u9R.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])),`component`),validateSearch:i});export{a as n,o as t};
|