@hot-updater/console 1.0.0-rc.8 → 1.0.0
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/ConsoleFeatureUnavailable-jB4Loglh.js +1 -0
- package/.output/public/assets/EventDetails-B6yUsyNA.js +1 -0
- package/.output/public/assets/HashValueDisplay-BFX_kY3-.js +1 -0
- package/.output/public/assets/InsightsInfo-BNO0WznZ.js +1 -0
- package/.output/public/assets/InsightsPageHeader-B892oVml.js +1 -0
- package/.output/public/assets/NotFoundPage-DIqCpWa3.js +1 -0
- package/.output/public/assets/alert-dialog-Bbk_4-WJ.js +1 -0
- package/.output/public/assets/api-DCM0wr6O.js +1 -0
- package/.output/public/assets/api-keys-CIO9L_wu.js +1 -0
- package/.output/public/assets/api-keys-DVTL_--f.js +1 -0
- package/.output/public/assets/arrow-left-CnMYpqB7.js +1 -0
- package/.output/public/assets/arrow-up-right-BtffZA6e.js +1 -0
- package/.output/public/assets/chevron-right-BqD5wtFb.js +1 -0
- package/.output/public/assets/clipboard-DS9ucUQL.js +1 -0
- package/.output/public/assets/console-features-api-BH5m_PtQ.js +1 -0
- package/.output/public/assets/dialog-Bqbb7B0N.js +1 -0
- package/.output/public/assets/dist-LxKJB-Vu.js +1 -0
- package/.output/public/assets/empty-CuT2UhFp.js +1 -0
- package/.output/public/assets/field-BBDpjIqu.js +1 -0
- package/.output/public/assets/index-6o51GkFe.js +11 -0
- package/.output/public/assets/input-group-ja_30qaF.js +1 -0
- package/.output/public/assets/insights-CmraDzQh.js +1 -0
- package/.output/public/assets/insights-CxZ2GCYV.js +2 -0
- package/.output/public/assets/insights-api-BigAU9sZ.js +1 -0
- package/.output/public/assets/insights-usage-rpc-DYEhsCKT.js +1 -0
- package/.output/public/assets/insights-vNRCrfnS.js +42 -0
- package/.output/public/assets/insights_.distribution-ChOerfJt.js +1 -0
- package/.output/public/assets/insights_.distribution-D-e4iga8.js +1 -0
- package/.output/public/assets/insights_.distribution-DZtkibX1.js +2 -0
- package/.output/public/assets/installations-BazSJXE0.js +2 -0
- package/.output/public/assets/installations-ClHTqdAO.js +1 -0
- package/.output/public/assets/installations-DpKsBuHi.js +1 -0
- package/.output/public/assets/key-round-wS_SIZ6b.js +1 -0
- package/.output/public/assets/list-CgrYiadM.js +1 -0
- package/.output/public/assets/refresh-cw-BYgoNCco.js +1 -0
- package/.output/public/assets/remote-config-BWwHOkCK.js +1 -0
- package/.output/public/assets/remote-config-Br56BODb.js +6 -0
- package/.output/public/assets/remote-config-CXOi0LRu.js +1 -0
- package/.output/public/assets/routes-B88Erkpk.js +2 -0
- package/.output/public/assets/routes-CfzsAleC.js +1 -0
- package/.output/public/assets/search-DaTDPW25.js +1 -0
- package/.output/public/assets/select-BZZBXMkr.js +1 -0
- package/.output/public/assets/sidebar-DNVyJPfX.js +3 -0
- package/.output/public/assets/smartphone-DpTFgtKf.js +1 -0
- package/.output/public/assets/styles-DTGEAJFv.css +2 -0
- package/.output/public/assets/switch-DZ1TPwx-.js +1 -0
- package/.output/public/assets/table-Gm4qRWwE.js +1 -0
- package/.output/public/assets/tabs-C7FOEjFC.js +1 -0
- package/.output/public/assets/undo-2-CmrHjwFc.js +1 -0
- package/.output/public/assets/useCompositeListItem-9E4pj_CH.js +1 -0
- package/.output/public/assets/valueToPercent-CH8GCHaL.js +1 -0
- package/.output/server/__23tanstack-start-server-fn-resolver-BpRlos5Q.mjs +170 -0
- package/.output/server/_libs/@base-ui/react+[...].mjs +4389 -4207
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +3802 -4022
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +140 -97
- package/.output/server/_libs/lucide-react.mjs +221 -9
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +483 -901
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__history.mjs +68 -41
- package/.output/server/_libs/tanstack__query-core.mjs +2010 -309
- package/.output/server/_libs/tanstack__react-query.mjs +448 -21
- package/.output/server/_libs/verkit.mjs +102 -1
- package/.output/server/_ssr/BundleIdDisplay-x94o9rlU.mjs +13 -0
- package/.output/server/_ssr/ConsoleFeatureUnavailable-ldW8v8-q.mjs +58 -0
- package/.output/server/_ssr/EventDetails-Q8kfj9Nr.mjs +344 -0
- package/.output/server/_ssr/{HashValueDisplay-C5tS4oGo.mjs → HashValueDisplay-n1GholGS.mjs} +3 -3
- package/.output/server/_ssr/InsightsInfo-DuJFatQO.mjs +75 -0
- package/.output/server/_ssr/InsightsPageHeader-BSUX3Ye9.mjs +145 -0
- package/.output/server/_ssr/NotFoundPage-DZzOOzS3.mjs +37 -0
- package/.output/server/_ssr/{dialog-WiIAKl4L.mjs → alert-dialog-C43Doa0I.mjs} +6 -83
- package/.output/server/_ssr/{api-keys-aXriWrv7.mjs → api-keys-B4sYm8dM.mjs} +48 -9
- package/.output/server/_ssr/api-keys-CEnM9fqG.mjs +5 -0
- package/.output/server/_ssr/api-keys-rpc-BIFuUgMt.mjs +52 -0
- package/.output/server/_ssr/api-oZjRn9tP.mjs +186 -0
- package/.output/server/_ssr/api-rpc-BNiFRRK8.mjs +240 -0
- package/.output/server/_ssr/{auth-BF8mbAgF.mjs → auth-UP0wXs4i.mjs} +1 -1
- package/.output/server/_ssr/{auth-rpc-B7w3AdRr.mjs → auth-rpc-DnZqYxyq.mjs} +6 -6
- package/.output/server/_ssr/auth.server-DFpyxRDd.mjs +5374 -0
- package/.output/server/_ssr/bundleActivity-M5gzBFNg.mjs +18 -0
- package/.output/server/_ssr/config-WVX4IxSR.mjs +15 -0
- package/.output/server/_ssr/config.server-DskXCAyI.mjs +35 -0
- package/.output/server/_ssr/console-access-BJfAXknd.mjs +17 -0
- package/.output/server/_ssr/console-features-Oz0q20jJ.mjs +61 -0
- package/.output/server/_ssr/console-features-api-C9kiKvaV.mjs +43 -0
- package/.output/server/_ssr/console-features-rpc-P0GL7Z-R.mjs +19 -0
- package/.output/server/_ssr/{createServerFn-B2hcXoPM.mjs → createMiddleware-Cm6Tn0_Y.mjs} +67 -56
- package/.output/server/_ssr/{createServerRpc-DB29C_5p.mjs → createServerRpc-RLR4H-Fn.mjs} +2 -2
- package/.output/server/_ssr/databaseConfig-C5SkAyUy.mjs +5 -0
- package/.output/server/_ssr/{databaseJsonValue-d6I3nAS4.mjs → databaseJsonValue-Csbuzc9Q.mjs} +28 -5
- package/.output/server/_ssr/databaseRows-CPphvbag.mjs +73 -0
- package/.output/server/_ssr/dialog-BbYDMjdC.mjs +84 -0
- package/.output/server/_ssr/{dist-CyzPaI5v.mjs → dist-CbQbBIw-.mjs} +140 -7
- package/.output/server/_ssr/{downloadBundle-CI7JUKvC.mjs → downloadBundle-CZysjmNW.mjs} +10 -10
- package/.output/server/_ssr/empty-CVLGfxuu.mjs +60 -0
- package/.output/server/_ssr/{empty-plugin-adapters-B5QvGpEl.mjs → empty-plugin-adapters-CPtwX8a7.mjs} +1 -1
- package/.output/server/_ssr/failureReports-DKDhVsXA.mjs +33 -0
- package/.output/server/_ssr/field-asw83X0v.mjs +189 -0
- package/.output/server/_ssr/getBundleChildren-Cv9iz1As.mjs +22 -0
- package/.output/server/_ssr/{input-group-Coj6SwVP.mjs → input-group-CuYJHosb.mjs} +2 -2
- package/.output/server/_ssr/insights-B55FG5fm.mjs +14 -0
- package/.output/server/_ssr/insights-CWnHIFUV.mjs +5 -0
- package/.output/server/_ssr/insights-CpLpedFZ.mjs +2315 -0
- package/.output/server/_ssr/insights-api-sjws23WF.mjs +122 -0
- package/.output/server/_ssr/insights-errors-BjnFUyZj.mjs +34 -0
- package/.output/server/_ssr/insights-failures-rpc-BvbWvqNf.mjs +36 -0
- package/.output/server/_ssr/insights-failures-xaa41Buf.mjs +46 -0
- package/.output/server/_ssr/insights-recovery-BWQhiZaF.mjs +28 -0
- package/.output/server/_ssr/insights-recovery-rpc-GiYXdkaY.mjs +32 -0
- package/.output/server/_ssr/{insights-rpc-l2-oBYth.mjs → insights-rpc-DP_8Rmz4.mjs} +22 -14
- package/.output/server/_ssr/insights-usage-BpBM0U0c.mjs +29 -0
- package/.output/server/_ssr/insights-usage-rpc-BiolgB8e.mjs +29 -0
- package/.output/server/_ssr/insights-usage-rpc-KStL0zOx.mjs +41 -0
- package/.output/server/_ssr/insightsUsage-CzhVjsc8.mjs +56 -0
- package/.output/server/_ssr/insights_.distribution-CVrnbP3R.mjs +7 -0
- package/.output/server/_ssr/insights_.distribution-D2HaNTAA.mjs +16 -0
- package/.output/server/_ssr/{insights_.distribution-INw6QxbU.mjs → insights_.distribution-DN9pR422.mjs} +50 -22
- package/.output/server/_ssr/installations-BHmbbnH8.mjs +5 -0
- package/.output/server/_ssr/{installations-DH-tQuRo.mjs → installations-BSCmFq8Q.mjs} +279 -367
- package/.output/server/_ssr/installations-DD1g__Nc.mjs +69 -0
- package/.output/server/_ssr/listReleases-BfUBlCHo.mjs +79 -0
- package/.output/server/_ssr/plugins-BaD1slHx.mjs +2086 -0
- package/.output/server/_ssr/release-adoption-005tQRpo.mjs +55 -0
- package/.output/server/_ssr/release-adoption-rpc-BsstqxUp.mjs +41 -0
- package/.output/server/_ssr/releaseAdoption-CtOFkwli.mjs +114 -0
- package/.output/server/_ssr/releaseManagement-DFMUnDF5.mjs +11 -0
- package/.output/server/_ssr/remote-config-C2Ee8lXO.mjs +5 -0
- package/.output/server/_ssr/remote-config-Dv1ccMo-.mjs +17 -0
- package/.output/server/_ssr/remote-config-of0lGQH8.mjs +2648 -0
- package/.output/server/_ssr/remote-config-rpc-BzX31mUS.mjs +115 -0
- package/.output/server/_ssr/rolldown-runtime-rSIU-vHC.mjs +13 -0
- package/.output/server/_ssr/{router-DfFyAp5p.mjs → router-D8NuoJ_I.mjs} +117 -136
- package/.output/server/_ssr/{routes-BtsfVx-p.mjs → routes-DgvnFqDy.mjs} +195 -429
- package/.output/server/_ssr/routes-V8sDybGf.mjs +409 -0
- package/.output/server/_ssr/runtime.server-De0QVWc9.mjs +104 -0
- package/.output/server/_ssr/schema-BiAVyEj2.mjs +361 -0
- package/.output/server/_ssr/{select-CyvLaMza.mjs → select-t3iXRwc9.mjs} +3 -3
- package/.output/server/_ssr/server-h4VxnExB.mjs +8325 -0
- package/.output/server/_ssr/{createSsrRpc-C-dLcQuy.mjs → sidebar-DJcErBMo.mjs} +107 -47
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/start-BfFbHKMK.mjs +4 -0
- package/.output/server/_ssr/switch-E-btwMGt.mjs +43 -0
- package/.output/server/_ssr/{table-CkVhsNpe.mjs → table-37Dd23TN.mjs} +2 -2
- package/.output/server/_ssr/tabs-DEFnTm95.mjs +45 -0
- package/.output/server/_ssr/updateFailures-H6pnnYK4.mjs +40 -0
- package/.output/server/_ssr/{uuidv7-D0QFkPL_.mjs → uuidv7-C88s9jWF.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-55AGsehh.mjs +139 -0
- package/.output/server/index.mjs +303 -205
- package/LICENSE +13 -14
- package/README.md +80 -71
- package/lib/index.d.mts +23 -11
- package/lib/vite-internal.mjs +13 -3
- package/lib/vite.d.mts +2 -0
- package/package.json +14 -14
- package/src/components/AppSidebar.tsx +74 -75
- package/src/components/ConsoleAccessPage.tsx +5 -1
- package/src/components/ConsoleFeatureUnavailable.tsx +80 -0
- package/src/components/NotFoundPage.tsx +7 -7
- package/src/components/features/FeatureSlots.tsx +103 -0
- package/src/components/features/api-keys/apiKeysFeatureUi.tsx +15 -0
- package/src/components/features/bundles/BundleMetadata.tsx +8 -5
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +1 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +8 -6
- package/src/components/features/insights/AppUsage.tsx +41 -14
- package/src/components/features/insights/BuiltinBundle.tsx +36 -0
- package/src/components/features/insights/ComparedBundlesChart.tsx +310 -0
- package/src/components/features/insights/EstimatedCount.tsx +18 -0
- package/src/components/features/insights/EventDetails.tsx +390 -26
- package/src/components/features/insights/EventHistoryCard.tsx +111 -25
- package/src/components/features/insights/EventHistoryList.tsx +1 -1
- package/src/components/features/insights/FailureReports.tsx +407 -0
- package/src/components/features/insights/InsightsControls.tsx +240 -142
- package/src/components/features/insights/InsightsErrorAlert.tsx +14 -1
- package/src/components/features/insights/InsightsOverview.tsx +601 -403
- package/src/components/features/insights/InsightsPageHeader.tsx +19 -14
- package/src/components/features/insights/InsightsPeriodSelector.tsx +67 -12
- package/src/components/features/insights/InstallationHistoryCard.tsx +65 -10
- package/src/components/features/insights/InstallationMatchesCard.tsx +1 -1
- package/src/components/features/insights/ReleaseActivity.tsx +308 -0
- package/src/components/features/insights/ReportingDevicesSummary.tsx +13 -13
- package/src/components/features/insights/RollbackButton.tsx +118 -0
- package/src/components/features/insights/UpdateFailures.tsx +382 -0
- package/src/components/features/insights/insightsFeatureUi.tsx +35 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +27 -13
- package/src/components/features/remote-config/ConditionDialog.tsx +592 -0
- package/src/components/features/remote-config/ConditionsCard.tsx +247 -0
- package/src/components/features/remote-config/ParameterDialog.tsx +426 -0
- package/src/components/features/remote-config/ParametersCard.tsx +254 -0
- package/src/components/features/remote-config/PreviewCard.tsx +284 -0
- package/src/components/features/remote-config/PublishDialog.tsx +325 -0
- package/src/components/features/remote-config/RemoteConfigPage.tsx +353 -0
- package/src/components/features/remote-config/RuleSummary.tsx +21 -0
- package/src/components/features/remote-config/ValueInput.tsx +151 -0
- package/src/components/features/remote-config/VersionsCard.tsx +384 -0
- package/src/components/features/remote-config/remoteConfigFeatureUi.tsx +15 -0
- package/src/components/features/remote-config/useDateTimeText.ts +16 -0
- package/src/components/ui/sidebar.tsx +22 -29
- package/src/index.ts +26 -19
- package/src/lib/api-keys-api.ts +0 -28
- package/src/lib/api-keys-rpc.ts +27 -38
- package/src/lib/api-rpc.ts +125 -288
- package/src/lib/api.ts +15 -134
- package/src/lib/bundle-activity.ts +24 -4
- package/src/lib/console-access.ts +20 -0
- package/src/lib/console-features-api.ts +68 -0
- package/src/lib/console-features-rpc.ts +13 -0
- package/src/lib/console-features.ts +98 -0
- package/src/lib/insights-api.ts +56 -2
- package/src/lib/insights-errors.ts +64 -0
- package/src/lib/insights-failures-rpc.ts +36 -0
- package/src/lib/insights-failures.ts +130 -0
- package/src/lib/insights-recovery-rpc.ts +13 -17
- package/src/lib/insights-recovery.ts +12 -36
- package/src/lib/insights-retention.ts +21 -0
- package/src/lib/insights-rpc.ts +30 -12
- package/src/lib/insights-search.ts +50 -4
- package/src/lib/insights-usage-rpc.ts +15 -9
- package/src/lib/insights-usage.ts +41 -3
- package/src/lib/insights-view.ts +34 -5
- package/src/lib/release-adoption-api.ts +214 -0
- package/src/lib/release-adoption-rpc.ts +49 -0
- package/src/lib/release-adoption.ts +164 -0
- package/src/lib/remote-config-api.ts +119 -0
- package/src/lib/remote-config-draft.ts +666 -0
- package/src/lib/remote-config-rpc.ts +196 -0
- package/src/lib/scroll-restoration.ts +21 -0
- package/src/lib/server/auth.server.ts +13 -5
- package/src/lib/server/bundleActivity.ts +27 -28
- package/src/lib/server/config.server.ts +21 -76
- package/src/lib/server/console-feature-apis.ts +70 -0
- package/src/lib/server/console-runtime.server.ts +82 -38
- package/src/lib/server/downloadBundle.ts +14 -15
- package/src/lib/server/failureReports.ts +50 -0
- package/src/lib/server/getBundleChildren.ts +31 -122
- package/src/lib/server/insightsUsage.ts +52 -113
- package/src/lib/server/listReleases.ts +109 -44
- package/src/lib/server/releaseAdoption.ts +151 -0
- package/src/lib/server/releaseReachability.ts +8 -8
- package/src/lib/server/remoteConfig.ts +75 -0
- package/src/lib/server/runtime.server.ts +120 -31
- package/src/lib/server/updateFailures.ts +66 -0
- package/src/lib/use-dialog-target.ts +27 -0
- package/src/routeTree.gen.ts +44 -44
- package/src/router.tsx +3 -2
- package/src/routes/-installations-search.ts +32 -8
- package/src/routes/-releases-search.ts +76 -29
- package/src/routes/__root.tsx +7 -1
- package/src/routes/api/bundles/$bundleId/download.ts +2 -5
- package/src/routes/api-keys.tsx +5 -2
- package/src/routes/index.tsx +210 -152
- package/src/routes/insights.tsx +91 -23
- package/src/routes/insights_.distribution.tsx +50 -9
- package/src/routes/installations.tsx +97 -40
- package/src/routes/remote-config.tsx +42 -0
- package/src/styles.css +9 -0
- package/src/vite-internal.ts +15 -3
- package/src/vite.ts +2 -0
- package/.output/public/assets/HashValueDisplay-BpTc3Oyg.js +0 -1
- package/.output/public/assets/InsightsPageHeader-DC2eEst8.js +0 -1
- package/.output/public/assets/api-CdUyUqzR.js +0 -42
- package/.output/public/assets/api-keys-64PM9PwW.js +0 -1
- package/.output/public/assets/api-keys-api-BeaJnvY5.js +0 -1
- package/.output/public/assets/arrow-left-04Rh8Zgp.js +0 -1
- package/.output/public/assets/card-CYHs5FZv.js +0 -1
- package/.output/public/assets/chart-no-axes-combined-DwyMsVFW.js +0 -1
- package/.output/public/assets/createServerFn-DU71xucx.js +0 -3
- package/.output/public/assets/dialog-IVMkBRCq.js +0 -1
- package/.output/public/assets/dist-BR4GzeEu.js +0 -1
- package/.output/public/assets/field-B3CYDpjg.js +0 -1
- package/.output/public/assets/index-C39o7rJH.js +0 -10
- package/.output/public/assets/info-C3y9HNoU.js +0 -1
- package/.output/public/assets/input-group-nLZylhWF.js +0 -1
- package/.output/public/assets/insights-Bm9v8uO3.js +0 -2
- package/.output/public/assets/insights-DS3iO7Up.js +0 -1
- package/.output/public/assets/insights-search-Byj3g3Mp.js +0 -1
- package/.output/public/assets/insights-usage-rpc-BaGR3lgq.js +0 -1
- package/.output/public/assets/insights_.distribution-B1i6cjlQ.js +0 -1
- package/.output/public/assets/insights_.distribution-C1Wf27eB.js +0 -2
- package/.output/public/assets/installations-CkFW4fV9.js +0 -2
- package/.output/public/assets/installations-DxTaIcHD.js +0 -1
- package/.output/public/assets/lazyRouteComponent-BapzjYnb.js +0 -1
- package/.output/public/assets/list-Dqt53fWZ.js +0 -1
- package/.output/public/assets/loader-circle-CUKfUqow.js +0 -1
- package/.output/public/assets/preload-helper-ClBMtM1g.js +0 -1
- package/.output/public/assets/refresh-cw-CNE_2PnD.js +0 -1
- package/.output/public/assets/routes-Cgtvspjg.js +0 -2
- package/.output/public/assets/routes-O2r2UUN8.js +0 -1
- package/.output/public/assets/shield-check-BFcJ46kz.js +0 -1
- package/.output/public/assets/signing-BgspC-xP.js +0 -1
- package/.output/public/assets/styles-DnrWuBwd.css +0 -2
- package/.output/public/assets/table-BuWQgxJJ.js +0 -1
- package/.output/public/assets/useMutation-CSV9NCUl.js +0 -1
- package/.output/public/assets/useOpenInteractionType-D5kduCTD.js +0 -1
- package/.output/public/assets/valueToPercent-BAtcbSLk.js +0 -1
- package/.output/server/__23tanstack-start-server-fn-resolver-CmYkol9D.mjs +0 -150
- package/.output/server/_ssr/InsightsPageHeader-Dma3dVj1.mjs +0 -64
- package/.output/server/_ssr/api-C3bGmgY0.mjs +0 -332
- package/.output/server/_ssr/api-keys-api-BRF6rbRC.mjs +0 -60
- package/.output/server/_ssr/api-keys-rpc-BMa1ZM6N.mjs +0 -136
- package/.output/server/_ssr/api-rpc-BYQ2e0z6.mjs +0 -1399
- package/.output/server/_ssr/auth.server-CmicHh0J.mjs +0 -47
- package/.output/server/_ssr/bundle-signing-rpc-DbQ4pFAX.mjs +0 -16
- package/.output/server/_ssr/bundle-signing.server-Uqt1OF49.mjs +0 -12
- package/.output/server/_ssr/bundleActivity-pBrPSG01.mjs +0 -28
- package/.output/server/_ssr/card-B7KSO_25.mjs +0 -108
- package/.output/server/_ssr/config-Dv8qLDZ0.mjs +0 -13
- package/.output/server/_ssr/config.server-C-d1QaBU.mjs +0 -368
- package/.output/server/_ssr/databaseRows-5bCRTxm-.mjs +0 -126
- package/.output/server/_ssr/deleteBundle-8X-jq7Z7.mjs +0 -66
- package/.output/server/_ssr/field-BDwuU8RE.mjs +0 -74
- package/.output/server/_ssr/getBundleChildren-DoL8l_AS.mjs +0 -50
- package/.output/server/_ssr/insights-BDJjaDLp.mjs +0 -938
- package/.output/server/_ssr/insights-D0FWpfOS.mjs +0 -10
- package/.output/server/_ssr/insights-recovery-Cv6RSyeR.mjs +0 -21
- package/.output/server/_ssr/insights-recovery-rpc-BE9YsK_T.mjs +0 -37
- package/.output/server/_ssr/insights-search-1czJMZgk.mjs +0 -21
- package/.output/server/_ssr/insights-usage-rpc-BE_aCnea.mjs +0 -184
- package/.output/server/_ssr/insights-usage-rpc-CtAolz-t.mjs +0 -24
- package/.output/server/_ssr/insightsContract-B09K_Px1.mjs +0 -303
- package/.output/server/_ssr/insightsHistory-Ci4rYAgl.mjs +0 -41
- package/.output/server/_ssr/insightsRecovery-CaghWL2t.mjs +0 -113
- package/.output/server/_ssr/insightsUsage-DNIj6jxF.mjs +0 -71
- package/.output/server/_ssr/insights_.distribution-Cp0kf1vW.mjs +0 -10
- package/.output/server/_ssr/installations-Bhyiwx8G.mjs +0 -29
- package/.output/server/_ssr/routes-xBkI2Fmt.mjs +0 -37
- package/.output/server/_ssr/runtime.server-CsiKFp_Z.mjs +0 -436
- package/.output/server/_ssr/server-BdkuOWe8.mjs +0 -7468
- package/.output/server/_ssr/signing-CQ70saFm.mjs +0 -133
- package/.output/server/_ssr/start-DpViQGnt.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-CrBsoKQQ.mjs +0 -125
- package/src/components/features/bundles/BundleActivityChart.tsx +0 -97
- package/src/components/features/bundles/BundleInsightsSummary.tsx +0 -126
- package/src/components/features/signing/BundleSigningPage.tsx +0 -139
- package/src/lib/bundle-signing-api.ts +0 -14
- package/src/lib/bundle-signing-rpc.ts +0 -16
- package/src/lib/server/bundle-signing.server.ts +0 -23
- package/src/lib/server/deleteBundle.ts +0 -145
- package/src/lib/server/insightsHistory.ts +0 -52
- package/src/lib/server/insightsRecovery.ts +0 -187
- package/src/routes/signing.tsx +0 -37
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$n as e,An as t,C as n,D as r,Dn as i,Dt as a,E as o,En as s,Et as c,Fn as l,Ft as u,G as d,Gt as f,H as p,In as m,J as h,Jn as g,Jt as _,Kn as v,Kt as y,Lr as b,Lt as x,Mn as S,Nt as C,O as w,Ot as T,P as E,Pt as D,Qn as O,Qt as k,Rr as A,Rt as j,S as ee,Sn as M,Tn as N,Vr as P,Vt as F,W as I,Wn as L,Xt as R,Y as z,Yn as B,Z as te,Zn as ne,ar as re,b as V,bn as ie,cr as H,er as ae,it as U,jn as W,jt as oe,k as se,kn as ce,ln as le,q as ue,qn as de,qt as fe,tr as pe,tt as me,un as he,vn as ge,w as _e,wn as ve,x as ye,xn as be,yn as xe,zr as Se}from"./createServerFn-DU71xucx.js";import{i as Ce}from"./lazyRouteComponent-BapzjYnb.js";import{$ as we,A as Te,B as Ee,C as De,Ct as Oe,D as ke,Dt as Ae,E as je,F as Me,G as Ne,H as Pe,I as Fe,J as Ie,L as Le,M as Re,N as ze,O as Be,Ot as Ve,P as He,Q as Ue,R as We,S as Ge,St as Ke,T as qe,Tt as Je,U as Ye,X as Xe,Y as Ze,Z as Qe,_t as $e,at as et,b as tt,dt as nt,et as rt,gt as it,h as at,ht as ot,i as st,it as ct,j as lt,k as G,kt as ut,lt as dt,mt as ft,nt as K,ot as pt,pt as q,st as mt,tt as ht,ut as J,v as gt,w as _t,wt as vt,x as yt,xt as bt,y as xt,yt as St}from"./api-CdUyUqzR.js";import{n as Y,r as Ct,t as wt}from"./InsightsPageHeader-DC2eEst8.js";import{a as Tt,i as Et,s as Dt,t as Ot}from"./field-B3CYDpjg.js";import{n as kt,t as At}from"./list-Dqt53fWZ.js";import{A as jt,B as Mt,C as Nt,D as Pt,E as Ft,F as It,H as Lt,I as Rt,L as zt,M as X,N as Bt,O as Vt,P as Ht,R as Ut,S as Wt,T as Gt,V as Kt,a as qt,b as Jt,c as Yt,d as Xt,f as Zt,g as Qt,h as $t,i as en,j as tn,k as nn,l as rn,m as an,o as on,p as sn,s as cn,u as ln,v as un,w as dn,x as fn,y as pn,z as mn}from"./valueToPercent-BAtcbSLk.js";import{a as hn,c as gn,d as _n,f as vn,i as yn,l as bn,m as xn,n as Sn,o as Cn,p as wn,r as Tn,s as En,t as Dn,u as On}from"./insights-usage-rpc-BaGR3lgq.js";import{a as kn,i as An,n as jn,o as Mn,r as Nn,s as Pn,t as Fn}from"./table-BuWQgxJJ.js";import{C as In,S as Ln,i as Rn,r as zn,t as Bn,w as Vn}from"./useOpenInteractionType-D5kduCTD.js";import{t as Hn}from"./insights-Bm9v8uO3.js";import{a as Un,c as Wn,d as Gn,i as Kn,n as qn,o as Jn,s as Yn,t as Xn,u as Zn}from"./card-CYHs5FZv.js";import{i as Qn,n as $n,r as er,t as tr}from"./input-group-nLZylhWF.js";var nr=Se((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}e.isPlainObject=t})),rr=Se(((e,t)=>{t.exports=nr().isPlainObject})),Z=P(A()),ir,ar,or,sr,cr;function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?lr(Object(n),!0).forEach(function(t){dr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dr(e,t,n){return(t=fr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fr(e){var t=pr(e,`string`);return typeof t==`symbol`?t:t+``}function pr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(null,arguments)}function hr(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var gr=(e,t,n,r,i)=>{var a=n-r,o=Ke(ir||=hr([`M `,`,`,``]),e,t);return o+=Ke(ar||=hr([`L `,`,`,``]),e+n,t),o+=Ke(or||=hr([`L `,`,`,``]),e+n-a/2,t+i),o+=Ke(sr||=hr([`L `,`,`,``]),e+n-a/2-r,t+i),o+=Ke(cr||=hr([`L `,`,`,` Z`]),e,t),o},_r={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},vr=e=>{var t=ot(e,_r),{x:n,y:r,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:c,animationDuration:l,animationBegin:u,isUpdateAnimationActive:d}=t,f=(0,Z.useRef)(null),[p,m]=(0,Z.useState)(-1),h=(0,Z.useRef)(i),g=(0,Z.useRef)(a),_=(0,Z.useRef)(o),v=(0,Z.useRef)(n),y=(0,Z.useRef)(r),b=Qe(e,`trapezoid-`);if((0,Z.useEffect)(()=>{if(f.current&&f.current.getTotalLength)try{var e=f.current.getTotalLength();e&&m(e)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var x=L(`recharts-trapezoid`,s);if(!d)return Z.createElement(`g`,null,Z.createElement(`path`,mr({},vt(t),{className:x,d:gr(n,r,i,a,o)})));var S=h.current,C=g.current,w=_.current,T=v.current,E=y.current,D=`0px ${p===-1?1:p}px`,O=`${p}px ${p}px`,k=we([`strokeDasharray`],l,c);return Z.createElement(Ue,{animationId:b,key:b,canBegin:p>0,duration:l,easing:c,isActive:d,begin:u},e=>{var s=$e(S,i,e),c=$e(C,a,e),l=$e(w,o,e),u=$e(T,n,e),d=$e(E,r,e);f.current&&(h.current=s,g.current=c,_.current=l,v.current=u,y.current=d);var p=e>0?{transition:k,strokeDasharray:O}:{strokeDasharray:D};return Z.createElement(`path`,mr({},vt(t),{className:x,d:gr(u,d,s,c,l),ref:f,style:ur(ur({},p),t.style)}))})},yr=P(rr()),br=[`option`,`shapeType`,`activeClassName`,`inActiveClassName`];function xr(e,t){if(e==null)return{};var n,r,i=Sr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Sr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Cr(Object(n),!0).forEach(function(t){Tr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Er(e){var t=Dr(e,`string`);return typeof t==`symbol`?t:t+``}function Dr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Or(e,t){return wr(wr({},t),e)}function kr(e,t){return e===`symbols`}function Ar(e){var{shapeType:t,elementProps:n}=e;switch(t){case`rectangle`:return Z.createElement(Xe,n);case`trapezoid`:return Z.createElement(vr,n);case`sector`:return Z.createElement(Ze,n);case`symbols`:if(kr(t,n))return Z.createElement(it,n);break;case`curve`:return Z.createElement(rt,n);default:return null}}function jr(e){return(0,Z.isValidElement)(e)?e.props:e}function Mr(e){var{option:t,shapeType:n,activeClassName:r=`recharts-active-shape`,inActiveClassName:i=`recharts-shape`}=e,a=xr(e,br),o;if((0,Z.isValidElement)(t))o=(0,Z.cloneElement)(t,wr(wr({},a),jr(t)));else if(typeof t==`function`)o=t(a,a.index);else if((0,yr.default)(t)&&typeof t!=`boolean`){var s=Or(t,a);o=Z.createElement(Ar,{shapeType:n,elementProps:s})}else{var c=a;o=Z.createElement(Ar,{shapeType:n,elementProps:c})}return a.isActive?Z.createElement(Oe,{className:r},o):Z.createElement(Oe,{className:i},o)}var Nr=[`children`];function Pr(e,t){if(e==null)return{};var n,r,i=Fr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Fr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ir=(0,Z.createContext)({data:[],xAxisId:`xAxis-0`,yAxisId:`yAxis-0`,dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function Lr(e){var{children:t}=e,n=Pr(e,Nr);return Z.createElement(Ir.Provider,{value:n},t)}var Rr=(e,t,n,r)=>Ee(e,`xAxis`,t,r),zr=(e,t,n,r)=>Pe(e,`xAxis`,t,r),Br=(e,t,n,r)=>Ee(e,`yAxis`,n,r),Vr=(e,t,n,r)=>Pe(e,`yAxis`,n,r),Hr=q([K,Rr,Br,zr,Vr],(e,t,n,r,i)=>nt(e,`xAxis`)?pt(t,r,!1):pt(n,i,!1)),Ur=(e,t,n,r,i)=>i;function Wr(e){return e.type===`line`}var Gr=q([K,Rr,Br,zr,Vr,q([Ye,Ur],(e,t)=>e.filter(Wr).find(e=>e.id===t)),Hr,Ie],(e,t,n,r,i,a,o,s)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:u}=s;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||o==null||e!==`horizontal`&&e!==`vertical`)){var{dataKey:d,data:f}=a,p=f!=null&&f.length>0?f:c?.slice(l,u+1);if(p!=null)return vi({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:p})}}),Kr=[`id`],qr=[`type`,`layout`,`connectNulls`,`needClip`,`shape`],Jr=[`activeDot`,`animateNewValues`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`hide`,`isAnimationActive`,`label`,`legendType`,`xAxisId`,`yAxisId`,`id`];function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yr.apply(null,arguments)}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Xr(Object(n),!0).forEach(function(t){Qr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qr(e,t,n){return(t=$r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $r(e){var t=ei(e,`string`);return typeof t==`symbol`?t:t+``}function ei(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ti(e,t){if(e==null)return{};var n,r,i=ni(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ni(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ri=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:dt(n,t),payload:e}]},ii=Z.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:bt,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:dt(o,t),hide:s,type:l,color:r,unit:c,graphicalItemId:u}};return Z.createElement(ze,{tooltipEntrySettings:d})}),ai=(e,t)=>`${t}px ${e}px`;function oi(e,t){for(var n=e.length%2==0?e:[...e,0],r=[],i=0;i<t;++i)r.push(...n);return r}var si=(e,t,n)=>{var r=n.reduce((e,t)=>e+t,0);if(!r)return ai(t,e);for(var i=Math.floor(e/r),a=e%r,o=[],s=0,c=0;s<n.length;c+=(l=n[s])??0,++s){var l,u=n[s];if(u!=null&&c+u>a){o=[...n.slice(0,s),a-c];break}}var d=o.length%2==0?[0,t]:[t];return[...oi(n,i),...o,...d].map(e=>`${e}px`).join(`, `)};function ci(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:o}=r,{id:s}=r,c=Je(ti(r,Kr));return Z.createElement(G,{points:n,dot:i,className:`recharts-line-dots`,dotClassName:`recharts-line-dot`,dataKey:a,baseProps:c,needClip:o,clipPathId:t})}function li(e){var{showLabels:t,children:n,points:r}=e,i=(0,Z.useMemo)(()=>r?.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return Zr(Zr({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[r]);return Z.createElement(Me,{value:t?i:void 0},n)}function ui(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:o,layout:s,connectNulls:c,needClip:l,shape:u}=a,d=Zr(Zr({},vt(ti(a,qr))),{},{fill:`none`,className:`recharts-line-curve`,clipPath:l?`url(#clipPath-${t})`:void 0,points:r,type:o,layout:s,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return Z.createElement(Z.Fragment,null,r?.length>1&&Z.createElement(Mr,Yr({shapeType:`curve`,option:u},d,{pathRef:n})),Z.createElement(ci,{points:r,clipPathId:t,props:a}))}function di(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function fi(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,animateNewValues:f,width:p,height:m,onAnimationEnd:h,onAnimationStart:g}=n,_=i.current,v=Qe(o,`recharts-line-`),y=(0,Z.useRef)(v),[b,x]=(0,Z.useState)(!1),S=!b,C=(0,Z.useCallback)(()=>{typeof h==`function`&&h(),x(!1)},[h]),w=(0,Z.useCallback)(()=>{typeof g==`function`&&g(),x(!0)},[g]),T=di(r.current),E=(0,Z.useRef)(0);y.current!==v&&(E.current=a.current,y.current=v);var D=E.current;return Z.createElement(li,{points:o,showLabels:S},n.children,Z.createElement(Ue,{animationId:v,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:C,onAnimationStart:w,key:v},e=>{var l=$e(D,T+D,e),u=Math.min(l,T),d=c?s?si(u,T,`${s}`.split(/[,\s]+/gim).map(e=>parseFloat(e))):ai(T,u):s==null?void 0:String(s);if(e>0&&T>0&&(i.current=o,a.current=Math.max(a.current,u)),_){var h=_.length/o.length,g=e===1?o:o.map((t,n)=>{var r=Math.floor(n*h);if(_[r]){var i=_[r];return Zr(Zr({},t),{},{x:$e(i.x,t.x,e),y:$e(i.y,t.y,e)})}return f?Zr(Zr({},t),{},{x:$e(p*2,t.x,e),y:$e(m/2,t.y,e)}):Zr(Zr({},t),{},{x:t.x,y:t.y})});return i.current=g,Z.createElement(ui,{props:n,points:g,clipPathId:t,pathRef:r,strokeDasharray:d})}return Z.createElement(ui,{props:n,points:o,clipPathId:t,pathRef:r,strokeDasharray:d})}),Z.createElement(Fe,{label:n.label}))}function pi(e){var{clipPathId:t,props:n}=e,r=(0,Z.useRef)(null),i=(0,Z.useRef)(0),a=(0,Z.useRef)(null);return Z.createElement(fi,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}var mi=(e,t)=>({x:e.x??void 0,y:e.y??void 0,value:e.value,errorVal:J(e.payload,t)}),hi=class extends Z.Component{render(){var{hide:e,dot:t,points:n,className:r,xAxisId:i,yAxisId:a,top:o,left:s,width:c,height:l,id:u,needClip:d,zIndex:f}=this.props;if(e)return null;var p=L(`recharts-line`,r),m=u,{r:h,strokeWidth:g}=De(t),_=He(t),v=h*2+g,y=d?`url(#clipPath-${_?``:`dots-`}${m})`:void 0;return Z.createElement(We,{zIndex:f},Z.createElement(Oe,{className:p},d&&Z.createElement(`defs`,null,Z.createElement(_t,{clipPathId:m,xAxisId:i,yAxisId:a}),!_&&Z.createElement(`clipPath`,{id:`clipPath-dots-${m}`},Z.createElement(`rect`,{x:s-v/2,y:o-v/2,width:c+v,height:l+v}))),Z.createElement(Lr,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:mi,errorBarOffset:0},Z.createElement(pi,{props:this.props,clipPathId:m}))),Z.createElement(ke,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:y}))}},gi={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!0,fill:`#fff`,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:Ne.line,type:`linear`};function _i(e){var t=ot(e,gi),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:c,hide:l,isAnimationActive:u,label:d,legendType:f,xAxisId:p,yAxisId:m,id:h}=t,g=ti(t,Jr),{needClip:_}=qe(p,m),v=Be(),y=ct(),b=et(),x=ft(e=>Gr(e,p,m,b,h));if(y!==`horizontal`&&y!==`vertical`||x==null||v==null)return null;var{height:S,width:C,x:w,y:T}=v;return Z.createElement(hi,Yr({},g,{id:h,connectNulls:s,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:l,label:d,legendType:f,xAxisId:p,yAxisId:m,points:x,layout:y,height:S,width:C,left:w,top:T,needClip:_}))}function vi(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:c}=e;return c.map((e,c)=>{var l=J(e,o);if(t===`horizontal`)return{x:mt({axis:n,ticks:i,bandSize:s,entry:e,index:c}),y:(St(l)?null:r.scale.map(l))??null,value:l,payload:e};var u=St(l)?null:n.scale.map(l),d=mt({axis:r,ticks:a,bandSize:s,entry:e,index:c});return u==null||d==null?null:{x:u,y:d,value:l,payload:e}}).filter(Boolean)}function yi(e){var t=ot(e,gi),n=et();return Z.createElement(lt,{id:t.id,type:`line`},e=>Z.createElement(Z.Fragment,null,Z.createElement(Re,{legendPayload:ri(t)}),Z.createElement(ii,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),Z.createElement(Te,{type:`line`,id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),Z.createElement(_i,Yr({},t,{id:e}))))}var bi=Z.memo(yi,ht);bi.displayName=`Line`;var xi=[`axis`],Si=(0,Z.forwardRef)((e,t)=>Z.createElement(tt,{chartName:`LineChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:xi,tooltipPayloadSearcher:Le,categoricalChartProps:e,ref:t})),Ci=Z.createContext(void 0);function wi(){let t=Z.useContext(Ci);if(t===void 0)throw Error(e(53));return t}var Ti=function(e){return e.scrollAreaCornerHeight=`--scroll-area-corner-height`,e.scrollAreaCornerWidth=`--scroll-area-corner-width`,e}({});function Ei(e,t,n){if(!e)return 0;let r=getComputedStyle(e),i=n===`x`?`Inline`:`Block`;return n===`x`&&t===`margin`?parseFloat(r[`${t}InlineStart`])*2:parseFloat(r[`${t}${i}Start`])+parseFloat(r[`${t}${i}End`])}var Di=function(e){return e.orientation=`data-orientation`,e.hovering=`data-hovering`,e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),Oi=function(e){return e.scrolling=`data-scrolling`,e.hasOverflowX=`data-has-overflow-x`,e.hasOverflowY=`data-has-overflow-y`,e.overflowXStart=`data-overflow-x-start`,e.overflowXEnd=`data-overflow-x-end`,e.overflowYStart=`data-overflow-y-start`,e.overflowYEnd=`data-overflow-y-end`,e}({}),ki={hasOverflowX:e=>e?{[Oi.hasOverflowX]:``}:null,hasOverflowY:e=>e?{[Oi.hasOverflowY]:``}:null,overflowXStart:e=>e?{[Oi.overflowXStart]:``}:null,overflowXEnd:e=>e?{[Oi.overflowXEnd]:``}:null,overflowYStart:e=>e?{[Oi.overflowYStart]:``}:null,overflowYEnd:e=>e?{[Oi.overflowYEnd]:``}:null,cornerHidden:()=>null},Q=H(),Ai={x:0,y:0},ji={width:0,height:0},Mi={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},Ni={x:!0,y:!0,corner:!0},Pi=Z.forwardRef(function(e,t){let{render:n,className:r,overflowEdgeThreshold:i,style:a,...o}=e,s=Fi(i),c=_e(),l=ve(),u=ve(),{nonce:d,disableStyleElements:f}=Zt(),[p,h]=Z.useState(!1),[g,_]=Z.useState(!1),[y,b]=Z.useState(!1),[x,S]=Z.useState(!1),[C,w]=Z.useState(!1),[T,E]=Z.useState(ji),[D,O]=Z.useState(ji),[k,A]=Z.useState(Mi),[j,ee]=Z.useState(Ni),M=Z.useRef(null),N=Z.useRef(null),P=Z.useRef(null),F=Z.useRef(null),I=Z.useRef(null),L=Z.useRef(null),R=Z.useRef(null),z=Z.useRef(!1),B=Z.useRef(0),te=Z.useRef(0),ne=Z.useRef(0),re=Z.useRef(0),V=Z.useRef(`vertical`),ie=Z.useRef(Ai),H=m(e=>{let t=e.x-ie.current.x,n=e.y-ie.current.y;ie.current=e,n!==0&&(b(!0),l.start(500,()=>{b(!1)})),t!==0&&(_(!0),u.start(500,()=>{_(!1)}))}),ae=m(e=>{e.button===0&&(z.current=!0,B.current=e.clientY,te.current=e.clientX,V.current=e.currentTarget.getAttribute(Di.orientation),N.current&&(ne.current=N.current.scrollTop,re.current=N.current.scrollLeft),I.current&&V.current===`vertical`&&I.current.setPointerCapture(e.pointerId),L.current&&V.current===`horizontal`&&L.current.setPointerCapture(e.pointerId))}),U=m(e=>{if(!z.current)return;let t=e.clientY-B.current,n=e.clientX-te.current;if(N.current){let r=N.current.scrollHeight,i=N.current.clientHeight,a=N.current.scrollWidth,o=N.current.clientWidth;if(I.current&&P.current&&V.current===`vertical`){let n=Ei(P.current,`padding`,`y`),a=Ei(I.current,`margin`,`y`),o=I.current.offsetHeight,s=t/(P.current.offsetHeight-o-n-a);N.current.scrollTop=ne.current+s*(r-i),e.preventDefault(),b(!0),l.start(500,()=>{b(!1)})}if(L.current&&F.current&&V.current===`horizontal`){let t=Ei(F.current,`padding`,`x`),r=Ei(L.current,`margin`,`x`),i=L.current.offsetWidth,s=n/(F.current.offsetWidth-i-t-r);N.current.scrollLeft=re.current+s*(a-o),e.preventDefault(),_(!0),u.start(500,()=>{_(!1)})}}}),W=m(e=>{z.current=!1,I.current&&V.current===`vertical`&&I.current.releasePointerCapture(e.pointerId),L.current&&V.current===`horizontal`&&L.current.releasePointerCapture(e.pointerId)});function oe(e){S(e.pointerType===`touch`)}function se(e){oe(e),e.pointerType!==`touch`&&h(le(M.current,e.target))}let ce=Z.useMemo(()=>({scrolling:g||y,hasOverflowX:!j.x,hasOverflowY:!j.y,overflowXStart:k.xStart,overflowXEnd:k.xEnd,overflowYStart:k.yStart,overflowYEnd:k.yEnd,cornerHidden:j.corner}),[g,y,j.x,j.y,j.corner,k]),ue={role:`presentation`,onPointerEnter:se,onPointerMove:se,onPointerDown:oe,onPointerLeave(){h(!1)},style:{position:`relative`,[Ti.scrollAreaCornerHeight]:`${T.height}px`,[Ti.scrollAreaCornerWidth]:`${T.width}px`}},de=v(`div`,e,{state:ce,ref:[t,M],props:[ue,o],stateAttributesMapping:ki}),fe=Z.useMemo(()=>({handlePointerDown:ae,handlePointerMove:U,handlePointerUp:W,handleScroll:H,cornerSize:T,setCornerSize:E,thumbSize:D,setThumbSize:O,hasMeasuredScrollbar:C,setHasMeasuredScrollbar:w,touchModality:x,cornerRef:R,scrollingX:g,setScrollingX:_,scrollingY:y,setScrollingY:b,hovering:p,setHovering:h,viewportRef:N,rootRef:M,scrollbarYRef:P,scrollbarXRef:F,thumbYRef:I,thumbXRef:L,rootId:c,hiddenState:j,setHiddenState:ee,overflowEdges:k,setOverflowEdges:A,viewportState:ce,overflowEdgeThreshold:s}),[ae,U,W,H,T,D,C,x,g,_,y,b,p,h,c,j,k,ce,s]);return(0,Q.jsxs)(Ci.Provider,{value:fe,children:[!f&&sn.getElement(d),de]})});function Fi(e){if(typeof e==`number`){let t=Math.max(0,e);return{xStart:t,xEnd:t,yStart:t,yEnd:t}}return{xStart:Math.max(0,e?.xStart||0),xEnd:Math.max(0,e?.xEnd||0),yStart:Math.max(0,e?.yStart||0),yEnd:Math.max(0,e?.yEnd||0)}}var Ii=Z.createContext(void 0),Li=function(e){return e.scrollAreaOverflowXStart=`--scroll-area-overflow-x-start`,e.scrollAreaOverflowXEnd=`--scroll-area-overflow-x-end`,e.scrollAreaOverflowYStart=`--scroll-area-overflow-y-start`,e.scrollAreaOverflowYEnd=`--scroll-area-overflow-y-end`,e}({}),Ri=!1;function zi(){Ri||M||(typeof CSS<`u`&&`registerProperty`in CSS&&[Li.scrollAreaOverflowXStart,Li.scrollAreaOverflowXEnd,Li.scrollAreaOverflowYStart,Li.scrollAreaOverflowYEnd].forEach(e=>{try{CSS.registerProperty({name:e,syntax:`<length>`,inherits:!1,initialValue:`0px`})}catch{}}),Ri=!0)}var Bi=Z.forwardRef(function(e,t){let{render:r,className:i,style:a,...o}=e,{viewportRef:s,scrollbarYRef:c,scrollbarXRef:u,thumbYRef:d,thumbXRef:f,cornerRef:p,cornerSize:h,setCornerSize:g,setThumbSize:_,rootId:y,setHiddenState:b,hiddenState:x,setHasMeasuredScrollbar:S,handleScroll:C,setHovering:w,setOverflowEdges:T,overflowEdges:E,overflowEdgeThreshold:D,scrollingX:O,scrollingY:k}=wi(),A=n(),j=Z.useRef(!0),ee=Z.useRef([NaN,NaN,NaN,NaN]),M=ve(),N=ve(),P=m(()=>{let e=s.current,t=c.current,n=u.current,r=d.current,i=f.current,a=p.current;if(!e)return;let o=e.scrollHeight,l=e.scrollWidth,m=e.clientHeight,v=e.clientWidth,y=e.scrollTop,x=e.scrollLeft,C=ee.current,w=Number.isNaN(C[0]);if(C[0]=m,C[1]=o,C[2]=v,C[3]=l,w&&S(!0),o===0||l===0)return;let E=Vi(e),O=E.y,k=E.x,j=v/l,M=m/o,N=Math.max(0,l-v),P=Math.max(0,o-m),F=0,I=0;if(!k){let e=0;e=Jt(A===`rtl`?-x:x,0,N),F=pn(e,N),I=N-F}let L=O?0:Jt(y,0,P),R=O?0:pn(L,P),z=O?0:P-R,B=k?0:v,te=O?0:m,ne=0,re=0;!k&&!O&&(ne=t?.offsetWidth||0,re=n?.offsetHeight||0);let V=h.width===0&&h.height===0,ie=V?ne:0,H=V?re:0,ae=Ei(n,`padding`,`x`),U=Ei(t,`padding`,`y`),W=Ei(i,`margin`,`x`),oe=Ei(r,`margin`,`y`),se=B-ae-W,ce=te-U-oe,le=n?Math.min(n.offsetWidth-ie,se):se,ue=t?Math.min(t.offsetHeight-H,ce):ce,de=Math.max(16,le*j),fe=Math.max(16,ue*M);if(_(e=>e.height===fe&&e.width===de?e:{width:de,height:fe}),t&&r){let e=t.offsetHeight-fe-U-oe,n=o-m,i=n===0?0:y/n,a=Math.min(e,Math.max(0,i*e));r.style.transform=`translate3d(0,${a}px,0)`}if(n&&i){let e=n.offsetWidth-de-ae-W,t=l-v,r=t===0?0:x/t,a=A===`rtl`?Jt(r*e,-e,0):Jt(r*e,0,e);i.style.transform=`translate3d(${a}px,0,0)`}let pe=[[Li.scrollAreaOverflowXStart,F],[Li.scrollAreaOverflowXEnd,I],[Li.scrollAreaOverflowYStart,R],[Li.scrollAreaOverflowYEnd,z]];for(let[t,n]of pe)e.style.setProperty(t,`${n}px`);a&&(k||O?g({width:0,height:0}):!k&&!O&&g({width:ne,height:re})),b(e=>Hi(e,E));let me={xStart:!k&&F>D.xStart,xEnd:!k&&I>D.xEnd,yStart:!O&&R>D.yStart,yEnd:!O&&z>D.yEnd};T(e=>e.xStart===me.xStart&&e.xEnd===me.xEnd&&e.yStart===me.yStart&&e.yEnd===me.yEnd?e:me)});l(()=>{s.current&&zi()},[s]),l(()=>{queueMicrotask(P)},[P,x,A]),l(()=>{s.current?.matches(`:hover`)&&w(!0)},[s,w]),Z.useEffect(()=>{let e=s.current;if(typeof ResizeObserver>`u`||!e)return;let t=!1,n=new ResizeObserver(()=>{if(!t){t=!0;let n=ee.current;if(n[0]===e.clientHeight&&n[1]===e.scrollHeight&&n[2]===e.clientWidth&&n[3]===e.scrollWidth)return}P()});return n.observe(e),N.start(0,()=>{let t=e.getAnimations({subtree:!0});t.length!==0&&Promise.allSettled(t.map(e=>e.finished)).then(P).catch(()=>{})}),()=>{n.disconnect(),N.clear()}},[P,s,N]);function F(){j.current=!1}let I={role:`presentation`,...y&&{"data-id":`${y}-viewport`},tabIndex:x.x&&x.y?-1:0,className:sn.className,style:{overflow:`scroll`},onScroll(){s.current&&(P(),j.current||C({x:s.current.scrollLeft,y:s.current.scrollTop}),M.start(100,()=>{j.current=!0}))},onWheel:F,onTouchMove:F,onPointerMove:F,onPointerEnter:F,onKeyDown:F},L=Z.useMemo(()=>({scrolling:O||k,hasOverflowX:!x.x,hasOverflowY:!x.y,overflowXStart:E.xStart,overflowXEnd:E.xEnd,overflowYStart:E.yStart,overflowYEnd:E.yEnd,cornerHidden:x.corner}),[O,k,x.x,x.y,x.corner,E]),R=v(`div`,e,{ref:[t,s],state:L,props:[I,o],stateAttributesMapping:ki}),z=Z.useMemo(()=>({computeThumbPosition:P}),[P]);return(0,Q.jsx)(Ii.Provider,{value:z,children:R})});function Vi(e){let t=e.clientHeight>=e.scrollHeight,n=e.clientWidth>=e.scrollWidth;return{y:t,x:n,corner:t||n}}function Hi(e,t){return e.y===t.y&&e.x===t.x&&e.corner===t.corner?e:t}var Ui=Z.createContext(void 0);function Wi(){let t=Z.useContext(Ui);if(t===void 0)throw Error(e(54));return t}var Gi=function(e){return e.scrollAreaThumbHeight=`--scroll-area-thumb-height`,e.scrollAreaThumbWidth=`--scroll-area-thumb-width`,e}({}),Ki=Z.forwardRef(function(e,t){let{render:r,className:i,orientation:a=`vertical`,keepMounted:o=!1,style:s,...c}=e,{hovering:l,scrollingX:u,scrollingY:d,hiddenState:f,overflowEdges:p,scrollbarYRef:m,scrollbarXRef:h,viewportRef:g,thumbYRef:_,thumbXRef:y,handlePointerDown:b,handlePointerUp:x,rootId:S,thumbSize:w,hasMeasuredScrollbar:T}=wi(),E={hovering:l,scrolling:{horizontal:u,vertical:d}[a],orientation:a,hasOverflowX:!f.x,hasOverflowY:!f.y,overflowXStart:p.xStart,overflowXEnd:p.xEnd,overflowYStart:p.yStart,overflowYEnd:p.yEnd,cornerHidden:f.corner},D=n(),O=!T&&!o,k=a===`vertical`?f.y:f.x,A=o||!k;Z.useEffect(()=>{if(!A)return;let e=g.current,t=a===`vertical`?m.current:h.current;if(!t)return;function n(n){if(!e||!t||n.ctrlKey)return;n.preventDefault();let r=a===`horizontal`,i=r?`scrollLeft`:`scrollTop`,o=r?n.deltaX:n.deltaY,s=r?e.scrollWidth-e.clientWidth:e.scrollHeight-e.clientHeight,c=r&&D===`rtl`?-s:0,l=r&&D===`rtl`?0:s,u=e[i];u<=c&&o<0||u>=l&&o>0||(e[i]=Math.min(l,Math.max(c,u+o)))}return C(t,`wheel`,n,{passive:!1})},[D,a,h,m,A,g]);let j={...S&&{"data-id":`${S}-scrollbar`},onPointerDown(e){if(e.button!==0)return;let t=he(e.nativeEvent),n=a===`vertical`?_.current:y.current;if(!(n&&le(n,t))&&g.current){if(_.current&&m.current&&a===`vertical`){let t=Ei(_.current,`margin`,`y`),n=Ei(m.current,`padding`,`y`),r=_.current.offsetHeight,i=m.current.getBoundingClientRect(),a=e.clientY-i.top-r/2-n+t/2,o=g.current.scrollHeight,s=g.current.clientHeight,c=a/(m.current.offsetHeight-r-n-t)*(o-s);g.current.scrollTop=c}if(y.current&&h.current&&a===`horizontal`){let t=Ei(y.current,`margin`,`x`),n=Ei(h.current,`padding`,`x`),r=y.current.offsetWidth,i=h.current.getBoundingClientRect(),a=e.clientX-i.left-r/2-n+t/2,o=g.current.scrollWidth,s=g.current.clientWidth,c=a/(h.current.offsetWidth-r-n-t),l;D===`rtl`?(l=(1-c)*(o-s),g.current.scrollLeft<=0&&(l=-l)):l=c*(o-s),g.current.scrollLeft=l}b(e)}},onPointerUp:x,style:{position:`absolute`,touchAction:`none`,WebkitUserSelect:`none`,userSelect:`none`,visibility:O?`hidden`:void 0,...a===`vertical`&&{top:0,bottom:`var(${Ti.scrollAreaCornerHeight})`,insetInlineEnd:0,[Gi.scrollAreaThumbHeight]:`${w.height}px`},...a===`horizontal`&&{insetInlineStart:0,insetInlineEnd:`var(${Ti.scrollAreaCornerWidth})`,bottom:0,[Gi.scrollAreaThumbWidth]:`${w.width}px`}}},ee=v(`div`,e,{ref:[t,a===`vertical`?m:h],state:E,props:[j,c],stateAttributesMapping:ki}),M=Z.useMemo(()=>({orientation:a}),[a]);return A?(0,Q.jsx)(Ui.Provider,{value:M,children:ee}):null}),qi=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{thumbYRef:o,thumbXRef:s,handlePointerDown:c,handlePointerMove:l,handlePointerUp:u,setScrollingX:d,setScrollingY:f,hasMeasuredScrollbar:p}=wi(),{orientation:m}=Wi();return v(`div`,e,{ref:[t,m===`vertical`?o:s],state:{orientation:m},props:[{onPointerDown:c,onPointerMove:l,onPointerUp(e){m===`vertical`&&f(!1),m===`horizontal`&&d(!1),u(e)},style:{visibility:p?void 0:`hidden`,...m===`vertical`&&{height:`var(${Gi.scrollAreaThumbHeight})`},...m===`horizontal`&&{width:`var(${Gi.scrollAreaThumbWidth})`}}},a]})}),Ji=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{cornerRef:o,cornerSize:s,hiddenState:c}=wi(),l=v(`div`,e,{ref:[t,o],props:[{style:{position:`absolute`,bottom:0,insetInlineEnd:0,width:s.width,height:s.height}},a]});return c.corner?null:l});function Yi({className:e,children:t,...n}){return(0,Q.jsxs)(Pi,{"data-slot":`scroll-area`,className:W(`relative`,e),...n,children:[(0,Q.jsx)(Bi,{"data-slot":`scroll-area-viewport`,className:`size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1`,children:t}),(0,Q.jsx)(Xi,{}),(0,Q.jsx)(Ji,{})]})}function Xi({className:e,orientation:t=`vertical`,...n}){return(0,Q.jsx)(Ki,{"data-slot":`scroll-area-scrollbar`,"data-orientation":t,orientation:t,className:W(`flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent`,e),...n,children:(0,Q.jsx)(qi,{"data-slot":`scroll-area-thumb`,className:`relative flex-1 rounded-full bg-border`})})}function Zi({window:e,count:t,isPending:n,partial:r}){let i=Tn[e];return(0,Q.jsxs)(`div`,{"aria-label":`${i.label} over ${i.period}`,role:`region`,className:`flex items-center gap-3`,children:[n?(0,Q.jsx)(s,{"aria-label":`Loading active users`,className:`h-9 w-12`}):(0,Q.jsx)(`p`,{className:`text-4xl font-semibold tracking-tight tabular-nums`,children:t===void 0?`—`:`${r?`≥`:``}${t.toLocaleString()}`}),(0,Q.jsxs)(`div`,{className:`flex items-center gap-1 text-sm text-muted-foreground`,children:[(0,Q.jsx)(`span`,{children:i.label}),(0,Q.jsxs)(gn,{label:`How ${i.label} is counted`,children:[`Unique app installations that reported activity in the last`,` `,i.period,`, including no-change reports. Filtered by platform, channel, and app version. The chart counts unique reporting installations per `,i.interval,`.`,r?` Only part of the history is available; the total is a lower bound.`:``]})]})]})}var Qi=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`,timeZone:`UTC`}),$i=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`,hour:`numeric`,timeZone:`UTC`});function ea({query:e,search:n,window:r,onWindowChange:a}){let o=e.error?void 0:e.data;return(0,Q.jsxs)(`div`,{className:`grid min-w-0 gap-6 xl:grid-cols-[minmax(0,2fr)_minmax(16rem,1fr)]`,children:[(0,Q.jsxs)(Xn,{"aria-label":`App usage`,role:`region`,className:`min-w-0 shadow-sm`,children:[(0,Q.jsxs)(Un,{className:`flex-row flex-wrap items-center justify-between gap-4`,children:[(0,Q.jsx)(Jn,{children:`App usage`}),(0,Q.jsx)(Sn,{window:r,onWindowChange:a})]}),(0,Q.jsxs)(qn,{className:`flex flex-col gap-4`,children:[(0,Q.jsx)(Zi,{window:r,count:o?.activeInstallations,isPending:e.isPending,partial:o?.truncated??!1}),e.isPending?(0,Q.jsx)(s,{"aria-label":`Loading app usage`,className:`h-48`}):e.error?(0,Q.jsxs)(`div`,{className:`flex flex-col items-start gap-4`,children:[(0,Q.jsx)(Y,{error:e.error,fallbackTitle:`App usage unavailable`}),(0,Q.jsx)(ce,{variant:`outline`,onClick:()=>void e.refetch(),children:`Retry app usage`})]}):o?.activeInstallations===0?(0,Q.jsx)(On,{className:`h-48`,children:(0,Q.jsxs)(vn,{children:[(0,Q.jsx)(wn,{children:`No activity reported`}),(0,Q.jsx)(_n,{children:`Try another period, platform, channel, or app version.`})]})}):o?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`p`,{className:`mb-2 text-right text-xs text-muted-foreground`,children:`Reporting installations · UTC`}),(0,Q.jsx)(at,{"aria-label":`Active users per interval`,className:`h-48 w-full aspect-auto`,config:{installations:{label:`Active users`,color:`var(--chart-2)`}},children:(0,Q.jsxs)(Si,{accessibilityLayer:!0,data:o.points,margin:{right:8,top:8},children:[(0,Q.jsx)(je,{vertical:!1}),(0,Q.jsx)(Ge,{dataKey:`startMs`,tick:{fill:`var(--muted-foreground)`},tickFormatter:e=>(r===`30d`?Qi:$i).format(e),axisLine:!1,tickLine:!1,minTickGap:45}),(0,Q.jsx)(yt,{tick:{fill:`var(--muted-foreground)`},allowDecimals:!1,axisLine:!1,tickLine:!1,width:`auto`}),(0,Q.jsx)(gt,{content:(0,Q.jsx)(xt,{labelFormatter:(e,t)=>`${$i.format(t[0]?.payload.startMs)} · UTC`})}),(0,Q.jsx)(bi,{dataKey:`installations`,type:`linear`,stroke:`var(--color-installations)`,strokeWidth:2,dot:{r:2},activeDot:{r:4},isAnimationActive:!1})]})})]}),(0,Q.jsxs)(`details`,{className:`text-xs text-muted-foreground`,children:[(0,Q.jsx)(`summary`,{className:`cursor-pointer py-2`,children:`View usage data`}),(0,Q.jsxs)(Fn,{"aria-label":`App usage by interval`,children:[(0,Q.jsx)(kn,{children:(0,Q.jsxs)(Mn,{children:[(0,Q.jsx)(An,{children:`Interval · UTC`}),(0,Q.jsx)(An,{className:`text-right`,children:`Active users`})]})}),(0,Q.jsx)(jn,{children:o.points.map(e=>(0,Q.jsxs)(Mn,{children:[(0,Q.jsx)(Nn,{children:$i.format(e.startMs)}),(0,Q.jsx)(Nn,{className:`text-right tabular-nums`,children:e.installations?.toLocaleString()??`Unknown`})]},e.startMs))})]})]})]}):null]})]}),(0,Q.jsxs)(Xn,{"aria-label":`Usage distribution`,role:`region`,className:`flex min-w-0 flex-col shadow-sm`,children:[(0,Q.jsxs)(Un,{className:`flex-row items-center justify-between gap-3`,children:[(0,Q.jsx)(Jn,{className:`flex min-h-9 items-center`,children:`Distribution`}),(0,Q.jsxs)(gn,{label:`How distribution is counted`,children:[`Each reporting installation is counted once, using the app version and platform of its latest matching report in the selected period.`,o?.truncated?` Shares reflect only the available history.`:``]})]}),(0,Q.jsx)(qn,{className:`flex-1`,children:e.isPending?(0,Q.jsx)(s,{"aria-label":`Loading distribution`,className:`h-48`}):e.error?(0,Q.jsx)(Y,{error:e.error,fallbackTitle:`Distribution unavailable`}):o?.activeInstallations?(0,Q.jsx)(`div`,{className:`flex flex-col gap-6`,children:[`versions`,`platforms`].map(e=>(0,Q.jsxs)(`section`,{"aria-label":e===`versions`?`App version distribution`:`Platform distribution`,className:`flex flex-col gap-4`,children:[e===`platforms`?(0,Q.jsx)(i,{}):null,(0,Q.jsxs)(`h3`,{className:`flex items-center gap-2 text-sm font-medium text-muted-foreground`,children:[e===`versions`?`App versions`:`Platforms`,e===`versions`?(0,Q.jsx)(Yn,{variant:`secondary`,children:o.versions.length}):null]}),(0,Q.jsx)(Yi,{className:`min-w-0 [&_[data-slot=scroll-area-viewport]]:max-h-40`,children:(0,Q.jsx)(`dl`,{className:`flex flex-col gap-4 pr-4`,children:o[e].map(t=>{let r=e===`platforms`?t.name===`ios`?`iOS`:`Android`:t.name,i=t.installations/o.activeInstallations*100;return(0,Q.jsxs)(`div`,{className:`group relative flex min-h-11 flex-col gap-2 rounded-sm focus-within:ring-2 focus-within:ring-ring sm:min-h-0`,children:[(0,Q.jsxs)(`div`,{className:`flex min-w-0 items-baseline justify-between gap-3`,children:[(0,Q.jsxs)(`dt`,{className:`flex min-w-0 items-center gap-2 text-sm`,title:r,children:[e===`platforms`&&(t.name===`ios`||t.name===`android`)?(0,Q.jsx)(Mt,{platform:t.name,className:`size-4 shrink-0`}):null,e===`versions`?(0,Q.jsxs)(Ce,{to:`/insights/distribution`,search:{...n,version:t.name},"aria-label":`View bundles for app version ${t.name}`,className:`flex min-w-0 items-center gap-1 after:absolute after:inset-0 group-hover:underline`,children:[(0,Q.jsx)(`span`,{className:`truncate`,children:r}),(0,Q.jsx)(Ve,{"aria-hidden":`true`,className:`size-3 shrink-0 text-muted-foreground`})]}):(0,Q.jsx)(`span`,{className:`truncate`,children:r})]}),(0,Q.jsxs)(`dd`,{className:`flex shrink-0 gap-3 text-sm tabular-nums`,children:[(0,Q.jsx)(`span`,{children:t.installations.toLocaleString()}),(0,Q.jsxs)(`span`,{className:`min-w-10 text-right text-muted-foreground`,children:[i.toFixed(1),`%`]})]})]}),(0,Q.jsx)(bn,{"aria-label":`${r} share`,"aria-valuetext":`${t.installations} installations, ${i.toFixed(1)}%`,value:i})]},t.name)})})})]},e))}):(0,Q.jsx)(On,{className:`h-40`,children:(0,Q.jsxs)(vn,{children:[(0,Q.jsx)(wn,{children:`No reporting installations`}),(0,Q.jsx)(_n,{children:`Try a different filter or period.`})]})})}),(0,Q.jsx)(Kn,{className:`border-t pt-4`,children:(0,Q.jsxs)(Ce,{to:`/insights/distribution`,search:n,className:t({variant:`outline`,className:`h-11 w-full sm:h-9`}),children:[`View distribution`,(0,Q.jsx)(ut,{"aria-hidden":`true`,"data-icon":`inline-end`})]})})]})]})}var ta=Z.createContext(void 0),na=Z.createContext(void 0),ra=Z.createContext(void 0),ia=Z.createContext(``);function aa(){let t=Z.useContext(ta);if(!t)throw Error(e(22));return t}function oa(){let t=Z.useContext(na);if(!t)throw Error(e(23));return t}function sa(){let t=Z.useContext(ra);if(!t)throw Error(e(24));return t}function ca(){return Z.useContext(ia)}var $={id:z(e=>e.id),labelId:z(e=>e.labelId),items:z(e=>e.items),selectedValue:z(e=>e.selectedValue),hasSelectionChips:z(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:z(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:z((e,t)=>t?Wt(e.items):!1),open:z(e=>e.open),mounted:z(e=>e.mounted),forceMounted:z(e=>e.forceMounted),inline:z(e=>e.inline),activeIndex:z(e=>e.activeIndex),selectedIndex:z(e=>e.selectedIndex),isActive:z((e,t)=>e.activeIndex===t),isSelected:z((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Ft(t,e,n)):Ft(t,r,n)}),transitionStatus:z(e=>e.transitionStatus),popupProps:z(e=>e.popupProps),inputProps:z(e=>e.inputProps),triggerProps:z(e=>e.triggerProps),itemProps:z(e=>e.itemProps),positionerElement:z(e=>e.positionerElement),listElement:z(e=>e.listElement),triggerElement:z(e=>e.triggerElement),inputElement:z(e=>e.inputElement),inputGroupElement:z(e=>e.inputGroupElement),popupSide:z(e=>e.popupSide),openMethod:z(e=>e.openMethod),inputInsidePopup:z(e=>e.inputInsidePopup),inputOwnsFormValue:z(e=>e.inputOwnsFormValue),selectionMode:z(e=>e.selectionMode),name:z(e=>e.name),form:z(e=>e.form),disabled:z(e=>e.disabled),readOnly:z(e=>e.readOnly),required:z(e=>e.required),grid:z(e=>e.grid),virtualized:z(e=>e.virtualized),itemToStringLabel:z(e=>e.itemToStringLabel),isItemEqualToValue:z(e=>e.isItemEqualToValue),modal:z(e=>e.modal),autoHighlight:z(e=>e.autoHighlight),submitOnItemClick:z(e=>e.submitOnItemClick)};function la(e,t){return(n,r)=>{if(n==null)return!1;let i=dn(n,t);return e.contains(i,r)}}function ua(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=dn(r,t),o=n==null?``:dn(n,t);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(a,i)}}var da=new Map;function fa(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${pa(e.locale)}|${JSON.stringify(t)}`,r=da.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=dn(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=dn(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=dn(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return da.set(n,a),a}function pa(e){return Array.isArray(e)?e.map(e=>pa(e)).join(`,`):e==null?``:String(e)}var ma=fa,ha=Symbol(`none`),ga={value:ha,index:-1};function _a(e){let{id:t,onOpenChangeComplete:r,defaultSelectedValue:i=null,selectedValue:o,onSelectedValueChange:s,defaultInputValue:f,inputValue:v,open:b,defaultOpen:x=!1,selectionMode:S=`none`,onItemHighlighted:C,name:w,form:T,disabled:A=!1,readOnly:j=!1,required:ee=!1,inputRef:M,grid:P=!1,items:F,filteredItems:I,filter:L,openOnInputClick:R=!0,autoHighlight:z=!1,keepHighlight:re=!1,highlightItemOnHover:V=!0,loopFocus:ie=!0,itemToStringLabel:H,itemToStringValue:U,isItemEqualToValue:W=Pt,virtualized:ce=!1,inline:pe=!1,fillInputOnItemPress:me=!0,modal:ge=!1,limit:_e=-1,autoComplete:ve=`list`,formAutoComplete:ye,locale:be,submitOnItemClick:xe=!1}=e,{clearErrors:Se}=fn(),{setDirty:Ce,validityData:we,shouldValidateOnChange:Te,setFilled:Ee,name:De,disabled:Oe,setTouched:ke,setFocused:Ae,validationMode:je,validation:Me}=Rt(),Ne=n(),Pe=tn({id:t}),Fe=ma({locale:be}),[Ie,Le]=Z.useState(!1),[Re,ze]=Z.useState(null),Be=Z.useRef([]),Ve=Z.useRef([]),He=Z.useRef(null),Ue=Z.useRef(null),We=Z.useRef(null),Ge=Z.useRef(null),Ke=Z.useRef(null),qe=Z.useRef(!0),Je=Z.useRef(!1),Ye=Z.useRef(null),Xe=Z.useRef(null),Ze=Z.useRef(null),Qe=Z.useRef(ga),$e=Z.useRef(null),et=Z.useRef([]),tt=Z.useRef([]),nt=Oe||A,rt=De??w,it=S===`multiple`,at=S===`single`,ot=v!==void 0||f!==void 0,st=F!==void 0,ct=I!==void 0,lt;lt=z===`always`?`always`:z?`input-change`:!1;let[G,ut]=mn({controlled:o,default:it?i??de:i,name:`Combobox`,state:`selectedValue`}),dt=Z.useMemo(()=>L===null?()=>!0:L===void 0?at&&!Ie?ua(Fe,H,G):la(Fe,H):L,[L,at,G,Ie,Fe,H]),ft=O(()=>ot?f??``:at?dn(G,H):``).current,[K,pt]=mn({controlled:v,default:ft,name:`Combobox`,state:`inputValue`}),[q,mt]=mn({controlled:b,default:x,name:`Combobox`,state:`open`}),ht=Nt(F),J=Re??(K===``?``:String(K).trim()),gt=at?dn(G,H):``,_t=at&&!Ie&&J!==``&>!==``&>.length===J.length&&Fe.contains(gt,J),vt=_t?``:J,yt=st&&ct&&_t,bt=Z.useMemo(()=>F?ht?F.flatMap(e=>e.items):F:de,[F,ht]),xt=Z.useMemo(()=>{if(I&&!yt)return I;if(!F)return de;if(ht){let e=F,t=[],n=0;for(let r of e){if(_e>-1&&n>=_e)break;let e=vt===``?r.items:r.items.filter(e=>dt(e,vt,H));if(e.length===0)continue;let i=_e>-1?_e-n:1/0,a=e.slice(0,i);if(a.length>0){let e={...r,items:a};t.push(e),n+=a.length}}return t}if(vt===``)return _e>-1?bt.slice(0,_e):bt;let e=[];for(let t of bt){if(_e>-1&&e.length>=_e)break;dt(t,vt,H)&&e.push(t)}return e},[I,yt,F,ht,vt,_e,dt,H,bt]),St=Z.useMemo(()=>ht?xt.flatMap(e=>e.items):xt,[xt,ht]),Y=O(()=>new ue({id:Pe,labelId:void 0,selectedValue:G,open:q,filter:dt,query:J,items:F,selectionMode:S,listRef:Be,labelsRef:Ve,popupRef:He,emptyRef:Ke,inputRef:Ue,startDismissRef:We,endDismissRef:Ge,keyboardActiveRef:qe,chipsContainerRef:Ye,clearRef:Xe,valuesRef:et,allValuesRef:tt,selectionEventRef:Ze,name:rt,form:T,disabled:nt,readOnly:j,required:ee,grid:P,isGrouped:ht,virtualized:ce,openOnInputClick:R,itemToStringLabel:H,isItemEqualToValue:W,modal:ge,autoHighlight:lt,submitOnItemClick:xe,hasInputValue:ot,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:pe,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},itemProps:g,positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:S===`none`,onOpenChangeComplete:r||B,setOpen:B,setInputValue:B,setSelectedValue:B,setIndices:B,onItemHighlighted:B,handleSelection:B,forceMount:B,requestSubmit:B})).current,Ct=S===`none`?K:G,wt=Z.useMemo(()=>S===`none`?Ct:Array.isArray(G)?G.map(e=>Gt(e,U)):Gt(G,U),[Ct,U,S,G]),Tt=m(C),Et=m(r),Dt=h(Y,$.activeIndex),Ot=h(Y,$.selectedIndex),kt=h(Y,$.positionerElement),At=h(Y,$.listElement),Mt=h(Y,$.triggerElement),It=h(Y,$.inputElement),zt=h(Y,$.inputGroupElement),X=h(Y,$.inline),Ht=h(Y,$.inputInsidePopup),Ut=h(Y,$.inputOwnsFormValue),Wt=oe(Mt),{mounted:Kt,setMounted:qt,transitionStatus:Jt}=d(q),{openMethod:Yt,triggerProps:Xt}=Bn(q),Zt=m(()=>wt);Bt(Ht?Wt:Ue,Pe,Ct,Zt);let Qt=m(()=>{F?Ve.current=St.map(e=>dn(e,H)):Y.set(`forceMounted`,!0)}),$t=Z.useRef(G);l(()=>{G!==$t.current&&Qt()},[Qt,G]);let en=m(e=>{Y.update(e);let t=e.type||`none`;if(e.activeIndex!==void 0)if(e.activeIndex===null)Qe.current!==ga&&(Qe.current=ga,Tt(void 0,u(t,void 0,{index:-1})));else{let n=et.current[e.activeIndex];Qe.current={value:n,index:e.activeIndex},Tt(n,u(t,void 0,{index:e.activeIndex}))}}),rn=m((t,n)=>{if(Je.current=n.reason===y,e.onInputValueChange?.(t,n),!n.isCanceled){if(n.reason===`input-change`){let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&Le(!0),$e.current={hasQuery:e},e&<&&Y.state.activeIndex==null&&Y.set(`activeIndex`,0)}}pt(t)}}),an=m((t,n)=>{if(q!==t&&(n.reason===`escape-key`&&st&&St.length===0&&!Y.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&it&&Ht&&!X&&Re!==null&&(Le(!1),ze(null),K!==``&&rn(``,D(y,n.event))),!t&&Ie&&(at?(X||ze(J),J===``&&Le(!1)):it&&(X||ze(J),Ht&&en({activeIndex:null}),(!Ht||X)&&rn(``,D(y,n.event)))),mt(t),!t&&Ht&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(ke(!0),Ae(!1),je===`onBlur`)))){let e=S===`none`?K:G;Me.commit(e)}}),on=m((e,t)=>{s?.(e,t),!t.isCanceled&&(ut(e),(S===`none`&&He.current&&me||at&&!Y.state.inputInsidePopup)&&rn(dn(e,H),D(t.reason,t.event)),at&&e!=null&&t.reason!==`input-change`&&Ie&&!X&&ze(J))}),sn=m((e,t)=>{let n=t;if(n===void 0){if(Dt===null)return;n=et.current[Dt]}let r=he(e),i=Ze.current??e;Ze.current=null;let a=D(_,i),o=r?.closest(`a`)?.getAttribute(`href`);if(o){o.startsWith(`#`)&&an(!1,a);return}if(it){let e=Array.isArray(G)?G:[];if(on(jt(e,n,Y.state.isItemEqualToValue)?nn(e,n,Y.state.isItemEqualToValue):[...e,n],a),!(Ue.current&&Ue.current.value.trim()!==``))return;Y.state.inputInsidePopup?rn(``,D(y,a.event)):an(!1,a)}else on(n,a),an(!1,a)}),cn=m(()=>{if(!Y.state.submitOnItemClick)return;let e=Me.inputRef.current?.form??Y.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),ln=m(()=>{if(qt(!1),Et?.(!1),Le(!1),ze(null),en(S===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),it&&Ue.current&&Ue.current.value!==``&&!Je.current&&rn(``,D(y)),at)if(Y.state.inputInsidePopup)Ue.current&&Ue.current.value!==``&&rn(``,D(y));else{let e=dn(G,H);Ue.current&&Ue.current.value!==e&&rn(e,D(e===``?y:k))}}),un=Z.useMemo(()=>X&&kt?{current:kt.closest(`[role="dialog"]`)}:He,[X,kt]);p({enabled:!e.actionsRef,open:q,ref:un,onComplete(){q||ln()}}),Z.useImperativeHandle(e.actionsRef,()=>({unmount:ln}),[ln]),l(function(){if(q||S===`none`)return;let e=F?bt:tt.current;if(it){let t=Array.isArray(G)?G:[],n=t[t.length-1],r=Vt(e,n,W);en({selectedIndex:r===-1?null:r})}else{let t=Vt(e,G,W);en({selectedIndex:t===-1?null:t})}},[q,G,F,S,bt,it,W,en]),l(()=>{F&&(et.current=St,Be.current.length=St.length)},[F,St]),l(()=>{let e=$e.current;if(e&&(e.hasQuery?lt&&Y.set(`activeIndex`,0):lt===`always`&&Y.set(`activeIndex`,0),$e.current=null),!q&&!X)return;let t=st||ct?St:et.current,n=Y.state.activeIndex;if(n==null){if(lt===`always`&&t.length>0){Y.set(`activeIndex`,0);return}Qe.current!==ga&&(Qe.current=ga,Y.state.onItemHighlighted(void 0,u(k,void 0,{index:-1})));return}if(n>=t.length){Qe.current!==ga&&(Qe.current=ga,Y.state.onItemHighlighted(void 0,u(k,void 0,{index:-1}))),Y.set(`activeIndex`,null);return}let r=t[n],i=Qe.current.value,a=i!==ha&&Ft(r,i,Y.state.isItemEqualToValue);(Qe.current.index!==n||!a)&&(Qe.current={value:r,index:n},Y.state.onItemHighlighted(r,u(k,void 0,{index:n})))},[Dt,lt,ct,st,St,X,q,Y]),l(()=>{if(S===`none`){Ee(String(K)!==``);return}Ee(it?Array.isArray(G)&&G.length>0:G!=null)},[Ee,S,K,G,it]),Z.useEffect(()=>{st&<&&St.length===0&&en({activeIndex:null})},[st,lt,St.length,en]),zn(J,()=>{!q||J===``||J===String(ft)||Le(!0)}),zn(G,()=>{if(S!==`none`&&(Se(rt),Ce(G!==we.initialValue),Te()?Me.commit(G):Me.commit(G,!0),at&&!ot&&!Ht)){let e=dn(G,H);K!==e&&rn(e,D(k))}}),zn(K,()=>{S===`none`&&(Se(rt),Ce(K!==we.initialValue),Te()?Me.commit(K):Me.commit(K,!0))}),zn(F,()=>{if(!at||ot||Ht||Ie)return;let e=dn(G,H);K!==e&&rn(e,D(k))});let pn=se({open:X?!0:q,onOpenChange:an,elements:{reference:Ht?Mt:It,floating:kt}}),hn,gn;X||(hn=P?`grid`:`listbox`,gn=q?`true`:`false`);let _n=Z.useMemo(()=>{let e=It?.tagName===`INPUT`,t=It==null||e,n=t||q,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=gn,r[`aria-haspopup`]=hn,r[`aria-controls`]=q?At?.id:void 0,r[`aria-autocomplete`]=ve),{reference:r,floating:{role:`presentation`}}},[It,q,gn,hn,At?.id,ve]),vn=In(pn,{enabled:!j&&!nt&&R,event:`mousedown-only`,toggle:!1,touchOpenDelay:Ht?0:100,reason:fe}),yn=te(pn,{enabled:!j&&!nt&&!X,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:X?!0:void 0,outsidePress(e){let t=he(e);return!le(Mt,t)&&!le(Xe.current,t)&&!le(Ye.current,t)&&!le(zt,t)}}),bn=Lt(pn,{enabled:!j&&!nt,id:Pe,listRef:Be,activeIndex:Dt,selectedIndex:Ot,virtual:!0,loopFocus:ie,allowEscape:ie&&!lt,focusItemOnOpen:Ie||S===`none`&&!lt?!1:`auto`,focusItemOnHover:V,resetOnPointerLeave:!re,cols:P?2:1,orientation:P?`horizontal`:void 0,rtl:Ne===`rtl`,disabledIndices:de,onNavigate(e,t){!t&&!q||Jt===`ending`||en(t?{activeIndex:e,type:qe.current?`keyboard`:`pointer`}:{activeIndex:e})}}),xn=Z.useMemo(()=>ae(bn.reference,yn.reference,vn.reference,_n.reference),[bn.reference,yn.reference,vn.reference,_n.reference]),Sn=Z.useMemo(()=>ae(E,bn.floating,yn.floating,_n.floating),[bn.floating,yn.floating,_n.floating]),Cn=Z.useMemo(()=>{let e=bn.item;return e?{...e,onFocus:void 0}:g},[bn.item]);N(()=>{Y.update({inline:pe,popupProps:Sn,inputProps:xn,triggerProps:Xt,itemProps:Cn,setOpen:an,setInputValue:rn,setSelectedValue:on,setIndices:en,onItemHighlighted:Tt,handleSelection:sn,forceMount:Qt,requestSubmit:cn})}),l(()=>{Y.update({id:Pe,selectedValue:G,open:q,mounted:Kt,transitionStatus:Jt,items:F,inline:pe,popupProps:Sn,inputProps:xn,triggerProps:Xt,openMethod:Yt,itemProps:Cn,selectionMode:S,name:rt,form:T,disabled:nt,readOnly:j,required:ee,grid:P,isGrouped:ht,virtualized:ce,onOpenChangeComplete:Et,openOnInputClick:R,itemToStringLabel:H,modal:ge,autoHighlight:lt,isItemEqualToValue:W,submitOnItemClick:xe,hasInputValue:ot,requestSubmit:cn,inputOwnsFormValue:S===`none`&&(pe||!Y.state.inputInsidePopup)})},[Y,Pe,G,q,Kt,Jt,F,Sn,xn,Cn,Yt,Xt,S,rt,nt,j,ee,Me,P,ht,ce,Et,R,H,ge,W,xe,ot,pe,cn,lt,T]);let wn=ne(M,Me.inputRef),Tn=Z.useMemo(()=>({query:J,hasItems:st,filteredItems:xt,flatFilteredItems:St}),[J,st,xt,St]),En=Z.useMemo(()=>Array.isArray(Ct)?``:Gt(Ct,U),[Ct,U]),Dn=it&&Array.isArray(G)&&G.length>0,On=it||S===`none`&&Ut?void 0:rt,kn=Z.useMemo(()=>!it||!Array.isArray(G)||!rt?null:G.map(e=>{let t=Gt(e,U);return(0,Q.jsx)(`input`,{type:`hidden`,form:T,name:rt,value:t},t)}),[it,G,T,rt,U]),An=(0,Q.jsxs)(Z.Fragment,{children:[e.children,(0,Q.jsx)(`input`,{...Me.getInputValidationProps({onFocus(){if(Ht){Mt?.focus();return}(Ue.current||Mt)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||nt||j){e.preventBaseUIHandler?.();return}let t=e.currentTarget.value,n=D(k,e.nativeEvent);function r(){if(it)return;if(S===`none`){Ce(t!==we.initialValue),rn(t,n),Te()&&Me.commit(t);return}let e=et.current.find(e=>Gt(e,U).toLowerCase()===t.toLowerCase()||dn(e,H).toLowerCase()===t.toLowerCase());e!=null&&(Ce(e!==we.initialValue),on?.(e,n),Te()&&Me.commit(e))}F?r():(Qt(),queueMicrotask(r))}}),id:Pe&&On==null?`${Pe}-hidden-input`:void 0,form:T,name:On,autoComplete:ye,disabled:nt,required:ee&&!Dn,readOnly:j,value:En,ref:wn,style:On?a:c,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),kn]});return(0,Q.jsx)(ta.Provider,{value:Y,children:(0,Q.jsx)(na.Provider,{value:pn,children:(0,Q.jsx)(ra.Provider,{value:Tn,children:(0,Q.jsx)(ia.Provider,{value:K,children:An})})})})}var va={...r,...Ut,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null},ya=2,ba=Z.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:p,validation:g}=Rt(),{labelId:_}=X(),y=aa(),{filteredItems:b}=sa(),x=h(y,$.selectionMode),C=h(y,$.disabled),w=h(y,$.readOnly),E=h(y,$.required),O=h(y,$.mounted),k=h(y,$.popupSide),A=h(y,$.positionerElement),j=h(y,$.listElement),ee=h(y,$.triggerProps),M=h(y,$.triggerElement),N=h(y,$.inputInsidePopup),P=h(y,$.id),F=h(y,$.labelId),I=h(y,$.open),L=h(y,$.selectedValue),z=h(y,$.activeIndex),B=h(y,$.selectedIndex),te=h(y,$.hasSelectedValue),ne=oa(),re=ca(),V=ve(),ie=u||C||a,H=b.length===0,ae=O&&A?k:null;tn({id:N?o:void 0});let U=N?o??P:o,W=un(_,F),oe=Z.useRef(``);function se(e){oe.current=e.pointerType}let ce=ne.useState(`domReferenceElement`);Z.useEffect(()=>{N&&M&&M!==ce&&ne.set(`domReferenceElement`,M)},[M,ce,ne,N]);let{reference:ue}=Kt(ne,{enabled:!I&&!w&&!C&&x===`single`,listRef:y.state.labelsRef,activeIndex:z,selectedIndex:B,onMatch(e){let t=y.state.valuesRef.current[e];t!==void 0&&y.state.setSelectedValue(t,D(`none`))}}),{reference:de}=In(ne,{enabled:!w&&!C,event:`mousedown`}),{buttonRef:fe,getButtonProps:pe}=S({native:i,disabled:ie}),me={...l,open:I,disabled:ie,popupSide:ae,listEmpty:H,placeholder:x===`none`?!1:!te};return v(`button`,e,{ref:[t,fe,m(e=>{y.set(`triggerElement`,e)})],state:me,props:[ee,de,ue,{id:U,tabIndex:N?0:-1,role:N?`combobox`:void 0,"aria-expanded":I?`true`:`false`,"aria-haspopup":N?`dialog`:`listbox`,"aria-controls":I?j?.id:void 0,"aria-required":N&&E||void 0,"aria-labelledby":W,onPointerDown:se,onPointerEnter:se,onFocus(){f(!0),!(ie||w)&&V.start(0,y.state.forceMount)},onBlur(e){if(!le(A,e.relatedTarget)&&(d(!0),f(!1),p===`onBlur`)){let e=x===`none`?re:L;g.commit(e)}},onMouseDown(e){if(ie||w||(N||ne.set(`domReferenceElement`,e.currentTarget),y.state.forceMount(),oe.current!==`touch`&&(y.state.inputRef.current?.focus(),N||e.preventDefault()),I))return;let t=T(e.currentTarget);function n(e){if(!M)return;let t=he(e),n=y.state.positionerElement,r=y.state.listElement;if(le(M,t)||le(n,t)||le(r,t)||t===M)return;let i=Qt(M),a=e.clientX>=i.left-ya&&e.clientX<=i.right+ya,o=e.clientY>=i.top-ya&&e.clientY<=i.bottom+ya;a&&o||y.state.setOpen(!1,D(`cancel-open`,e))}N&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){ie||w||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(ge(e),y.state.setOpen(!0,D(R,e.nativeEvent)),y.state.inputRef.current?.focus())}},g?g.getValidationProps(c):c,pe],stateAttributesMapping:va})}),xa=Z.createContext(void 0);function Sa(){return Z.useContext(xa)}var Ca=Z.createContext(void 0);function wa(t){let n=Z.useContext(Ca);if(n===void 0&&!t)throw Error(e(21));return n}var Ta=Z.forwardRef(function(e,t){let n=aa(),{buttonRef:r,getButtonProps:i}=S({native:!1}),o=ne(t,r);function s(e){n.state.setOpen(!1,D(j,e.nativeEvent,e.currentTarget))}return(0,Q.jsx)(`span`,{ref:o,...i({onClick:s}),"aria-label":`Dismiss`,tabIndex:void 0,style:a})}),Ea=Z.forwardRef(function(e,t){let{render:r,className:i,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:p,validationMode:g,validation:_}=Rt(),{labelId:b}=X(),x=Sa(),S=!!wa(!0),C=aa(),{filteredItems:w}=sa(),T=ca(),E=n(),O=h(C,$.required),A=h(C,$.disabled),j=h(C,$.readOnly),ee=h(C,$.name),M=h(C,$.form),N=h(C,$.selectionMode),P=h(C,$.autoHighlight),I=h(C,$.inputProps),L=h(C,$.triggerProps),R=h(C,$.open),z=h(C,$.mounted),B=h(C,$.selectedValue),te=h(C,$.popupSide),ne=h(C,$.positionerElement),re=h(C,$.id),V=h(C,$.inline),H=h(C,$.modal),ae=!!P,U=z&&ne?te:null,W=u||A||a,oe=w.length===0,se=S||V,ce=!se||H,le=_e(o??(se?void 0:re)),ue=un(b,void 0),de=S?zt:l,[fe,pe]=Z.useState(null),me=Z.useRef(!1),he=Z.useRef(null),ve=Z.useRef(!1),ye=N===`none`&&!S,be=m(e=>{let t=S||C.state.inline;t&&!C.state.hasInputValue&&C.state.setInputValue(``,D(k)),C.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:ye})}),Se=S||!_?c:_.getValidationProps(c),Ce={...de,open:R,disabled:W,readOnly:j,popupSide:U,listEmpty:oe};function we(e){if(!x)return;let t,{highlightedChipIndex:n}=x,r=x.chipsRef.current.length,i=E===`rtl`,a=i?`ArrowRight`:`ArrowLeft`,o=i?`ArrowLeft`:`ArrowRight`;if(n!==void 0){if(e.key===a)e.preventDefault(),t=n>0?n-1:void 0;else if(e.key===o)e.preventDefault(),t=n<r-1?n+1:void 0;else if(e.key===`Backspace`||e.key===`Delete`){e.preventDefault();let r=n>=B.length-1?B.length-2:n;t=r>=0?r:void 0,C.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`})}return t}return e.key===a&&(e.currentTarget.selectionStart??0)===0&&B.length>0?(e.preventDefault(),t=r>0?r-1:void 0):e.key===`Backspace`&&e.currentTarget.value===``&&B.length>0&&(C.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`}),e.preventDefault()),t}let Te=v(`input`,e,{state:Ce,ref:[t,C.state.inputRef,be],props:[I,L,{type:`text`,value:e.value??fe??T,"aria-readonly":j||void 0,"aria-required":O||void 0,"aria-labelledby":ue,disabled:W,readOnly:j,required:N===`none`?O:void 0,form:M,...ye&&ee&&{name:ee},id:le,onFocus(){if(p(!0),!V||!ve.current)return;ve.current=!1;let e=he.current;e==null||!Object.hasOwn(C.state.valuesRef.current,e)||C.state.setIndices({activeIndex:e})},onBlur(){d(!0),p(!1);let e=C.state.activeIndex;if(V&&e!==null&&P!==`always`&&(he.current=e,ve.current=!0,C.state.setIndices({activeIndex:null})),g===`onBlur`){let e=N===`none`?T:B;_.commit(e)}},onCompositionStart(e){xe||(me.current=!0,pe(e.currentTarget.value))},onCompositionEnd(e){me.current=!1;let t=e.currentTarget.value;pe(null),C.state.setInputValue(t,D(f,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=!t||t===`insertReplacementText`,r=me.current||!n;if(me.current){let t=e.currentTarget.value;pe(t),t===``&&!C.state.openOnInputClick&&!C.state.inputInsidePopup&&C.state.setOpen(!1,D(y,e.nativeEvent));let n=t.trim(),i=ae&&n!==``;!j&&!W&&n&&r&&(C.state.setOpen(!0,D(f,e.nativeEvent)),ae||C.state.setIndices({activeIndex:null,selectedIndex:null,type:C.state.keyboardActiveRef.current?`keyboard`:`pointer`})),R&&C.state.activeIndex!==null&&!i&&C.state.setIndices({activeIndex:null,selectedIndex:null,type:C.state.keyboardActiveRef.current?`keyboard`:`pointer`});return}C.state.setInputValue(e.currentTarget.value,D(f,e.nativeEvent));let i=e.currentTarget.value===``,a=D(y,e.nativeEvent);i&&!C.state.inputInsidePopup&&(N===`single`&&C.state.setSelectedValue(null,a),C.state.openOnInputClick||C.state.setOpen(!1,a));let o=e.currentTarget.value.trim();!j&&!W&&o&&r&&(C.state.setOpen(!0,D(f,e.nativeEvent)),ae||C.state.setIndices({activeIndex:null,selectedIndex:null,type:C.state.keyboardActiveRef.current?`keyboard`:`pointer`})),R&&C.state.activeIndex!==null&&!ae&&C.state.setIndices({activeIndex:null,selectedIndex:null,type:C.state.keyboardActiveRef.current?`keyboard`:`pointer`})},onKeyDown(e){if(W||j||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;C.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=E===`rtl`;if(e.key===`Home`){ge(e);let n=ie&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){ge(e);let i=ie&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!z&&e.key===`Escape`){let t=N===`multiple`&&Array.isArray(B)?B.length===0:B===null,n=D(F,e.nativeEvent),r=N===`multiple`?[]:null;C.state.setInputValue(``,n),C.state.setSelectedValue(r,n),!t&&!C.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(x&&e.key===`Backspace`&&t.value===``&&x.highlightedChipIndex===void 0&&Array.isArray(B)&&B.length>0){let t=x.chipsRef.current.length,n=t>0?t-1:B.length-1,r=B.filter((e,t)=>t!==n);C.state.setIndices({activeIndex:null,selectedIndex:null,type:C.state.keyboardActiveRef.current?`keyboard`:`pointer`}),C.state.setSelectedValue(r,D(k,e.nativeEvent));return}let i=x?.highlightedChipIndex!==void 0,a=we(e);if(x?.setHighlightedChipIndex(a),a===void 0?i&&C.state.inputRef.current?.focus():x?.chipsRef.current[a]?.focus(),e.which!==229&&e.key===`Enter`&&R){let t=C.state.activeIndex,n=e.nativeEvent;if(t===null){if(V)return;C.state.setOpen(!1,D(k,n));return}ge(e);let r=C.state.listRef.current[t];r&&(C.state.selectionEventRef.current=n,r.click(),C.state.selectionEventRef.current=null)}},onPointerMove(){C.state.keyboardActiveRef.current=!1},onPointerDown(){C.state.keyboardActiveRef.current=!1}},Se],stateAttributesMapping:va}),Ee=S?(0,Q.jsx)(It.Provider,{value:Ht,children:Te}):Te;return(0,Q.jsxs)(Z.Fragment,{children:[R&&ce&&(0,Q.jsx)(Ta,{ref:C.state.startDismissRef}),Ee]})}),Da={...I,...w},Oa=Z.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=Rt(),u=aa(),f=h(u,$.selectionMode),m=h(u,$.disabled),g=h(u,$.readOnly),_=h(u,$.open),y=h(u,$.selectedValue),b=h(u,$.hasSelectionChips),C=ca(),w=!1;w=f===`none`?C!==``:f===`single`?y!=null:b;let T=l||m||i,{buttonRef:E,getButtonProps:O}=S({native:a,disabled:T}),{mounted:k,transitionStatus:A,setMounted:j}=d(w),ee={disabled:T,visible:w,open:_,transitionStatus:A};p({open:w,ref:u.state.clearRef,onComplete(){w||j(!1)}});let M=v(`button`,e,{state:ee,ref:[t,E,u.state.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(T||g)return;let t=u.state.keyboardActiveRef;u.state.setInputValue(``,D(x,e.nativeEvent)),f===`none`?u.state.setIndices({activeIndex:null,type:t.current?`keyboard`:`pointer`}):(u.state.setSelectedValue(Array.isArray(y)?[]:null,D(x,e.nativeEvent)),u.state.setIndices({activeIndex:null,selectedIndex:null,type:t.current?`keyboard`:`pointer`})),u.state.inputRef.current?.focus()}},c,O],stateAttributesMapping:Da});return o||k?M:null}),ka=Z.createContext(null);function Aa(){return Z.useContext(ka)}function ja(e){let{children:t}=e,{filteredItems:n}=sa(),r=Aa(),i=r?r.items:n;return i?(0,Q.jsx)(Z.Fragment,{children:i.map(t)}):null}var Ma=Z.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=aa(),l=oa(),u=!!wa(!0),{filteredItems:d,hasItems:f}=sa(),p=h(c,$.selectionMode),g=h(c,$.grid),_=h(c,$.popupProps),y=h(c,$.virtualized),b=p===`multiple`,x=d.length===0,S=m(e=>{c.set(`positionerElement`,e)}),C=m(e=>{c.set(`listElement`,e)}),w=Z.useMemo(()=>typeof o==`function`?n||=(0,Q.jsx)(ja,{children:o}):o,[o]),T={empty:x},E=l.useState(`floatingId`),D=v(`div`,e,{state:T,ref:[t,C,u?null:S],props:[_,{children:w,tabIndex:-1,id:E,role:g?`grid`:`listbox`,"aria-multiselectable":b?`true`:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;ge(e);let n=e.nativeEvent,r=c.state.listRef.current[t];r&&(c.state.selectionEventRef.current=n,r.click(),c.state.selectionEventRef.current=null)}},onKeyDownCapture(){c.state.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.state.keyboardActiveRef.current=!1}},s]});return y?D:(0,Q.jsx)($t,{elementsRef:c.state.listRef,labelsRef:f?void 0:c.state.labelsRef,children:D})}),Na=``;function Pa(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function Fa(){let e=ve(),t=Z.useRef(null);return Z.useEffect(()=>{if(be)return;let n=t.current;if(n==null)return;let r=Pa(n);if(r==null)return;let i=r.nodeValue??``,a=`${i}${Na}`;return r.nodeValue=a,e.start(200,()=>{r.nodeValue===a&&(r.nodeValue=i)}),()=>{e.clear(),r.nodeValue===a&&(r.nodeValue=i)}},[t,e]),t}var Ia=Z.createContext(void 0);function La(){let t=Z.useContext(Ia);if(t===void 0)throw Error(e(20));return t}var Ra=Z.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=aa(),a=h(i,$.mounted),o=h(i,$.forceMounted);return a||n||o?(0,Q.jsx)(Ia.Provider,{value:n,children:(0,Q.jsx)(me,{ref:t,...r})}):null}),za=Z.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`bottom`,align:s=`center`,sideOffset:c=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:p=5,sticky:g=!1,disableAnchorTracking:_=!1,collisionAvoidance:v=U,style:y,...b}=e,x=aa(),{filteredItems:S}=sa(),C=oa(),w=La(),T=h(x,$.modal),E=h(x,$.open),D=h(x,$.mounted),O=h(x,$.openMethod),k=h(x,$.positionerElement),A=h(x,$.triggerElement),j=h(x,$.inputElement),M=h(x,$.inputGroupElement),N=h(x,$.inputInsidePopup),P=h(x,$.transitionStatus),F=S.length===0,I=ee({anchor:i??(N?A:M??j),floatingRootContext:C,positionMethod:a,mounted:D,side:o,sideOffset:c,align:s,alignOffset:u,arrowPadding:p,collisionBoundary:d,collisionPadding:f,sticky:g,disableAnchorTracking:_,keepMounted:w,collisionAvoidance:v,lazyFlip:!0});an(E&&T,O===`touch`,k,A);let L={open:E,side:I.side,align:I.align,anchorHidden:I.anchorHidden,empty:F};l(()=>{x.set(`popupSide`,I.side)},[x,I.side]);let R=m(e=>{x.set(`positionerElement`,e)}),z=V(e,L,{styles:I.positionerStyles,transitionStatus:P,props:b,refs:[t,R],hidden:!D,inert:!E});return(0,Q.jsxs)(Ca.Provider,{value:I,children:[D&&T&&(0,Q.jsx)(Rn,{inert:Ln(!E),cutout:M??j??A}),z]})}),Ba={...o,...I},Va=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,c=aa(),l=wa(),u=oa(),{filteredItems:d}=sa(),f=h(c,$.mounted),m=h(c,$.open),g=h(c,$.openMethod),_=h(c,$.transitionStatus),y=h(c,$.inputInsidePopup),b=h(c,$.inputElement),x=h(c,$.modal),S=d.length===0;p({open:m,ref:c.state.popupRef,onComplete(){m&&c.state.onOpenChangeComplete(!0)}});let C=v(`div`,e,{state:{open:m,side:l.side,align:l.align,anchorHidden:l.anchorHidden,transitionStatus:_,empty:S},ref:[t,c.state.popupRef],props:[{role:y?`dialog`:`presentation`,tabIndex:-1,onFocus(e){let t=he(e.nativeEvent);g!==`touch`&&(le(c.state.listElement,t)||t===e.currentTarget)&&c.state.inputRef.current?.focus()}},ye(_),s],stateAttributesMapping:Ba}),w=a===void 0?y?e=>e===`touch`?c.state.popupRef.current:b:!1:a,T;T=o??(y?void 0:!1);let E=!y||x;return(0,Q.jsx)(Vn,{context:u,disabled:!f,modal:E,openInteractionType:g,initialFocus:w,returnFocus:T,getInsideElements:()=>[c.state.startDismissRef.current,c.state.endDismissRef.current],children:(0,Q.jsxs)(Z.Fragment,{children:[C,E&&(0,Q.jsx)(Ta,{ref:c.state.endDismissRef})]})})}),Ha=Z.createContext(void 0);function Ua(){let t=Z.useContext(Ha);if(!t)throw Error(e(19));return t}var Wa=Z.createContext(!1);function Ga(){return Z.useContext(Wa)}var Ka=P(b()),qa=Z.memo(Z.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,index:o,disabled:s=!1,nativeButton:c=!1,...u}=e,d=Z.useRef(!1),f=Z.useRef(null),p=Xt({index:o,textRef:f,indexGuessBehavior:ln.GuessFromOrder}),m=aa(),g=Ga(),{flatFilteredItems:_,hasItems:y}=sa(),b=h(m,$.open),x=h(m,$.selectionMode),C=h(m,$.readOnly),w=h(m,$.virtualized),T=h(m,$.isItemEqualToValue),E=x!==`none`,D=o??(w?Vt(_,a,T):p.index),O=p.index!==-1,k=h(m,$.id),A=h(m,$.isActive,D),j=h(m,$.isSelected,a),ee=h(m,$.itemProps),M=Z.useRef(null),N=k!=null&&O?`${k}-${D}`:void 0,P=j&&E;l(()=>{if(!(O&&(w||o!=null)))return;let e=m.state.listRef.current;return e[D]=M.current,()=>{delete e[D]}},[O,w,D,o,m]),l(()=>{if(!O||y)return;let e=m.state.valuesRef.current;return e[D]=a,x!==`none`&&m.state.allValuesRef.current.push(a),()=>{delete e[D]}},[O,y,D,a,m,x]),l(()=>{if(!b){d.current=!1;return}if(!O||y)return;let e=m.state.selectedValue;Ft(a,Array.isArray(e)?e[e.length-1]:e,T)&&m.set(`selectedIndex`,D)},[O,y,b,m,D,a,T]);let{getButtonProps:F,buttonRef:I}=S({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),L={disabled:s,selected:P,highlighted:A};function R(e){function t(){m.state.handleSelection(e,a)}m.state.submitOnItemClick?(Ka.flushSync(t),m.state.requestSubmit()):t()}let z={id:N,role:g?`gridcell`:`option`,"aria-selected":E?P:void 0,tabIndex:void 0,onPointerDownCapture(e){d.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){s||C||R(e.nativeEvent)},onMouseUp(e){let t=d.current;d.current=!1,!(s||C||e.button!==0||t||!A)&&R(e.nativeEvent)}},B=v(`div`,e,{ref:[I,t,p.ref,M],state:L,props:[ee,z,u,F]}),te=Z.useMemo(()=>({selected:P,textRef:f}),[P,f]);return(0,Q.jsx)(Ha.Provider,{value:te,children:B})})),Ja=Z.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=sa(),c=aa(),l=Fa(),u=s.length===0?a:null;return v(`div`,e,{ref:[t,c.state.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})});function Ya(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,Q.jsx)(_a,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var Xa=Z.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Ua();return n||r?(0,Q.jsx)(Za,{...e,ref:t}):null}),Za=Z.memo(Z.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=Ua(),c=Z.useRef(null),{transitionStatus:l,setMounted:u}=d(s),f=v(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:I});return p({open:s,ref:c,onComplete(){s||u(!1)}}),f})),Qa=Ya;function $a({className:e,children:t,...n}){return(0,Q.jsxs)(ba,{"data-slot":`combobox-trigger`,className:W(`[&_svg:not([class*='size-'])]:size-3.5`,e),...n,children:[t,(0,Q.jsx)(kt,{className:`text-muted-foreground size-3.5 pointer-events-none`})]})}function eo({className:e,...t}){return(0,Q.jsx)(Oa,{"aria-label":`Clear selection`,"data-slot":`combobox-clear`,render:(0,Q.jsx)(er,{variant:`ghost`,size:`icon-xs`}),className:W(e),...t,children:(0,Q.jsx)(Pn,{className:`pointer-events-none`})})}function to({className:e,children:t,disabled:n=!1,showTrigger:r=!0,showClear:i=!1,...a}){return(0,Q.jsxs)(tr,{className:W(`w-auto`,e),children:[(0,Q.jsx)(Ea,{render:(0,Q.jsx)(Qn,{disabled:n}),...a}),(0,Q.jsxs)($n,{align:`inline-end`,children:[r&&(0,Q.jsx)($a,{render:(0,Q.jsx)(er,{size:`icon-xs`,variant:`ghost`,"data-slot":`input-group-button`,className:`group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent`,disabled:n})}),i&&(0,Q.jsx)(eo,{disabled:n})]}),t]})}function no({className:e,side:t=`bottom`,sideOffset:n=6,align:r=`start`,alignOffset:i=0,anchor:a,...o}){return(0,Q.jsx)(Ra,{children:(0,Q.jsx)(za,{side:t,sideOffset:n,align:r,alignOffset:i,anchor:a,className:`isolate z-50`,children:(0,Q.jsx)(Va,{"data-slot":`combobox-content`,"data-chips":!!a,className:W(`bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-input/20 dark:bg-popover max-h-72 min-w-32 overflow-hidden rounded-lg shadow-md ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-7 *:data-[slot=input-group]:border-none *:data-[slot=input-group]:shadow-none dark group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)`,e),...o})})})}function ro({className:e,...t}){return(0,Q.jsx)(Ma,{"data-slot":`combobox-list`,className:W(`no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto p-1 data-empty:p-0 overflow-y-auto overscroll-contain`,e),...t})}function io({className:e,children:t,...n}){return(0,Q.jsxs)(qa,{"data-slot":`combobox-item`,className:W(`data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,e),...n,children:[t,(0,Q.jsx)(Xa,{render:(0,Q.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,Q.jsx)(Dt,{className:`pointer-events-none`})})]})}function ao({className:e,...t}){return(0,Q.jsx)(Ja,{"data-slot":`combobox-empty`,className:W(`text-muted-foreground hidden w-full justify-center py-2 text-center text-xs/relaxed group-data-empty/combobox-content:flex`,e),...t})}function oo({onScopeChange:e,scope:t,appVersions:n}){let[r,i]=(0,Z.useState)(t.platform),[a,o]=(0,Z.useState)(t.channel),[s,c]=(0,Z.useState)(t.appVersion??``),l=[...new Set([...n,...s?[s]:[]])],u=st(),d=u.data?.map(e=>e.name)??[];return(0,Q.jsx)(`form`,{"aria-label":`Insights controls`,onSubmit:t=>{t.preventDefault(),e({platform:r,channel:a,...s?{appVersion:s}:{}})},children:(0,Q.jsxs)(Et,{className:`grid grid-cols-2 items-end gap-4 lg:grid-cols-[9rem_minmax(0,1fr)_minmax(0,1fr)_auto]`,children:[(0,Q.jsxs)(Ot,{children:[(0,Q.jsx)(Tt,{htmlFor:`insights-platform`,children:`Platform`}),(0,Q.jsxs)(en,{items:{all:`All platforms`,ios:`iOS`,android:`Android`},value:r,onValueChange:e=>{(e===`all`||e===`ios`||e===`android`)&&i(e)},children:[(0,Q.jsx)(Yt,{id:`insights-platform`,className:`min-h-11 w-full sm:min-h-9`,children:(0,Q.jsxs)(rn,{children:[r===`all`?null:(0,Q.jsx)(Mt,{platform:r,className:`size-3.5`}),r===`all`?`All platforms`:r===`ios`?`iOS`:`Android`]})}),(0,Q.jsx)(qt,{children:(0,Q.jsxs)(on,{children:[(0,Q.jsx)(cn,{value:`all`,children:`All platforms`}),(0,Q.jsxs)(cn,{value:`ios`,children:[(0,Q.jsx)(Mt,{platform:`ios`,className:`size-3.5`}),`iOS`]}),(0,Q.jsxs)(cn,{value:`android`,children:[(0,Q.jsx)(Mt,{platform:`android`,className:`size-3.5`}),`Android`]})]})})]})]}),(0,Q.jsxs)(Ot,{className:`min-w-0`,children:[(0,Q.jsx)(Tt,{htmlFor:`insights-channel`,children:`Channel`}),(0,Q.jsxs)(Qa,{items:d,value:a,onValueChange:e=>{e!==null&&o(e)},children:[(0,Q.jsx)(to,{className:`h-11 w-full sm:h-9 [&_input]:h-full`,id:`insights-channel`,placeholder:`Search channels`,maxLength:1024}),(0,Q.jsxs)(no,{children:[(0,Q.jsx)(ao,{children:u.isPending?`Loading channels…`:u.isError?(0,Q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 p-2`,children:[`Couldn't load channels.`,(0,Q.jsx)(ce,{onClick:()=>void u.refetch(),size:`sm`,variant:`outline`,children:`Retry channels`})]}):`No channels found.`}),(0,Q.jsx)(ro,{children:e=>(0,Q.jsx)(io,{className:`min-h-11 pr-8 sm:min-h-8`,value:e,children:(0,Q.jsx)(`span`,{className:`truncate`,children:e})},e)})]})]})]}),(0,Q.jsxs)(Ot,{className:`min-w-0`,children:[(0,Q.jsx)(Tt,{htmlFor:`insights-app-version`,children:`App version`}),(0,Q.jsxs)(en,{items:Object.fromEntries([[`all`,`All versions`],...l.map(e=>[`version:${e}`,e])]),value:s?`version:${s}`:`all`,onValueChange:e=>{e!==null&&c(e===`all`?``:e.slice(8))},children:[(0,Q.jsx)(Yt,{id:`insights-app-version`,className:`min-h-11 w-full sm:min-h-9`,children:(0,Q.jsx)(rn,{})}),(0,Q.jsx)(qt,{children:(0,Q.jsxs)(on,{children:[(0,Q.jsx)(cn,{value:`all`,children:`All versions`}),l.map(e=>(0,Q.jsx)(cn,{value:`version:${e}`,children:e},e))]})})]})]}),(0,Q.jsx)(ce,{className:`h-11 sm:h-9`,size:`lg`,type:`submit`,variant:`outline`,children:`Apply filters`})]})})}var so=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`,timeZone:`UTC`}),co=new Intl.DateTimeFormat(`en`,{month:`short`,day:`numeric`,hour:`numeric`,timeZone:`UTC`}),lo=[`var(--chart-2)`,`var(--foreground)`,`var(--chart-1)`,`var(--muted-foreground)`,`var(--chart-4)`],uo=[void 0,`6 3`,`2 3`];function fo({report:e}){let[n,r]=(0,Z.useState)(`active`),[i,a]=(0,Z.useState)(null),o=e.series.find(e=>e.releaseId===i),s=Object.fromEntries(e.series.map((e,t)=>[`bundle${t}`,{label:e.releaseId,color:lo[t%lo.length]}])),c=(e.series[0]?.points??[]).map((t,r)=>({startMs:t.startMs,...Object.fromEntries(e.series.map((e,t)=>[`bundle${t}`,n===`active`?e.points[r].active:e.points[r].recoveredInstallations]))})),l=t=>(e.intervalMs<864e5?co:so).format(t),u=o?[...o.points].reverse().find(e=>e.spike):void 0,d=n===`active`?e.series.reduce((e,t)=>e+t.activeInstallations,0):e.series.filter(e=>e.recoveredInstallations>0).length;return(0,Q.jsxs)(yn,{value:n,onValueChange:e=>{(e===`active`||e===`rollback`)&&r(e)},className:`gap-6`,children:[(0,Q.jsxs)(Cn,{"aria-label":`Activity metric`,variant:`line`,className:`min-h-11 sm:min-h-9`,children:[(0,Q.jsx)(En,{className:`min-w-24 px-4`,value:`active`,children:`Active`}),(0,Q.jsx)(En,{className:`min-w-24 px-4`,value:`rollback`,children:`Rollback`})]}),(0,Q.jsxs)(hn,{value:n,className:`flex flex-col gap-4`,children:[(0,Q.jsxs)(`div`,{className:`flex items-baseline gap-3`,children:[(0,Q.jsx)(`p`,{className:`text-4xl font-semibold tracking-tight tabular-nums`,children:d.toLocaleString()}),(0,Q.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n===`active`?`Active installations`:`Bundles with rollbacks`})]}),e.series.length===0?(0,Q.jsx)(`div`,{className:`flex h-48 items-center justify-center text-center text-sm text-muted-foreground`,children:`No bundle reports in this period. Try another channel or check again after the app reports activity.`}):(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`p`,{className:`mb-2 text-right text-xs text-muted-foreground`,children:[n===`active`?`Installations`:`Recovered installations per interval`,` `,`· UTC`]}),(0,Q.jsx)(at,{"aria-label":`${n===`active`?`Active`:`Rollback`} trend for all reported bundle IDs`,className:`h-56 w-full aspect-auto sm:h-64`,config:s,children:(0,Q.jsxs)(Si,{accessibilityLayer:!0,data:c,margin:{left:-12,right:12,top:8},children:[(0,Q.jsx)(je,{vertical:!1}),(0,Q.jsx)(Ge,{tick:{fill:`var(--muted-foreground)`},axisLine:!1,dataKey:`startMs`,minTickGap:40,tickFormatter:l,tickLine:!1}),(0,Q.jsx)(yt,{tick:{fill:`var(--muted-foreground)`},allowDecimals:!1,axisLine:!1,tickLine:!1,width:48}),(0,Q.jsx)(gt,{content:(0,Q.jsx)(xt,{className:`max-h-64 max-w-[calc(100vw-3rem)] overflow-auto`,labelFormatter:(e,t)=>`${co.format(t[0]?.payload.startMs)} · UTC`})}),e.series.map((e,t)=>(0,Q.jsx)(bi,{dataKey:`bundle${t}`,type:`linear`,stroke:`var(--color-bundle${t})`,strokeWidth:i===e.releaseId?3:2,strokeOpacity:!o||o===e?1:.4,strokeDasharray:uo[Math.floor(t/lo.length)%uo.length],dot:{r:2},activeDot:{r:4},isAnimationActive:!1},e.releaseId))]})})]}),(0,Q.jsx)(Yi,{"aria-label":`Reported bundles`,className:`min-w-0 [&_[data-slot=scroll-area-viewport]]:max-h-48`,children:(0,Q.jsx)(`div`,{className:W(`grid grid-cols-1 gap-1 pr-3`,e.series.length>1&&`xl:grid-cols-2`),children:e.series.map((e,t)=>(0,Q.jsxs)(`button`,{type:`button`,"aria-label":`Highlight bundle ${e.releaseId}`,"aria-pressed":i===e.releaseId,title:e.releaseId,onClick:()=>a(i===e.releaseId?null:e.releaseId),className:`flex min-w-0 items-center gap-2 rounded-md px-2 py-2 text-left text-xs hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring aria-pressed:bg-muted`,children:[(0,Q.jsx)(`svg`,{"aria-hidden":`true`,width:`20`,height:`8`,className:`shrink-0`,children:(0,Q.jsx)(`line`,{x1:`0`,x2:`20`,y1:`4`,y2:`4`,stroke:lo[t%lo.length],strokeWidth:`2`,strokeDasharray:uo[Math.floor(t/lo.length)%uo.length]})}),(0,Q.jsx)(`span`,{className:`min-w-0 truncate font-mono`,children:e.releaseId}),e.points.some(e=>e.spike)?(0,Q.jsx)(pe,{"aria-label":`Rollback spike`,className:`size-3 shrink-0`}):null,(0,Q.jsx)(`span`,{className:`ml-auto tabular-nums`,children:(n===`active`?e.activeInstallations:e.recoveredInstallations).toLocaleString()})]},e.releaseId))})}),o?(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-t pt-3`,children:[(0,Q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Q.jsx)(`p`,{className:`break-all font-mono text-xs`,children:o.releaseId}),(0,Q.jsxs)(`p`,{className:`mt-1 text-xs text-muted-foreground`,children:[`Active `,o.activeInstallations.toLocaleString(),` · Rollback `,o.recoveredInstallations.toLocaleString(),` `,`in this period`]}),n===`rollback`&&u?(0,Q.jsxs)(`p`,{className:`mt-2 flex items-center gap-2 text-xs`,children:[(0,Q.jsx)(pe,{className:`size-3 shrink-0`,"aria-hidden":`true`}),`Rollback spike on `,so.format(u.startMs),`. Review this bundle’s delivery settings.`]}):null]}),(0,Q.jsxs)(Ce,{className:t({variant:`outline`,size:`sm`}),to:`/`,search:{releaseId:o.releaseId},children:[`Review bundle`,(0,Q.jsx)(Ct,{"aria-hidden":`true`})]})]}):null,(0,Q.jsxs)(`details`,{className:`text-xs text-muted-foreground`,children:[(0,Q.jsx)(`summary`,{className:`cursor-pointer`,children:`View chart data`}),(0,Q.jsx)(`div`,{className:`mt-2 max-h-64 overflow-auto`,children:(0,Q.jsxs)(`table`,{className:`w-full text-left`,children:[(0,Q.jsxs)(`caption`,{className:`sr-only`,children:[n===`active`?`Active installations`:`Recovered installations`,` `,`by bundle ID, UTC`]}),(0,Q.jsx)(`thead`,{children:(0,Q.jsxs)(`tr`,{children:[(0,Q.jsx)(`th`,{scope:`col`,className:`pr-4`,children:`Date (UTC)`}),e.series.map(e=>(0,Q.jsx)(`th`,{scope:`col`,className:`px-2 font-mono`,children:e.releaseId},e.releaseId))]})}),(0,Q.jsx)(`tbody`,{children:c.map((t,r)=>(0,Q.jsxs)(`tr`,{children:[(0,Q.jsx)(`th`,{scope:`row`,className:`whitespace-nowrap pr-4 font-normal`,children:co.format(t.startMs)}),e.series.map(e=>(0,Q.jsx)(`td`,{className:`px-2 tabular-nums`,children:(n===`active`?e.points[r].active:e.points[r].recoveredInstallations)??`—`},e.releaseId))]},t.startMs))})]})})]})]})]})]})}function po({input:e,onWindowChange:n,query:r,onRefresh:i}){return(0,Q.jsxs)(Xn,{"aria-label":`Bundle activity`,className:`min-w-0 overflow-hidden shadow-sm`,role:`region`,children:[(0,Q.jsxs)(Un,{className:`flex-row flex-wrap items-center justify-between gap-4 p-6`,children:[(0,Q.jsx)(Jn,{children:`Bundle activity`}),(0,Q.jsxs)(`div`,{className:`flex w-full items-center justify-between gap-4 sm:w-auto`,children:[(0,Q.jsx)(Sn,{window:e.window,onWindowChange:n}),(0,Q.jsx)(ce,{"aria-label":`Refresh bundle activity`,className:`size-11 sm:size-9`,variant:`ghost`,size:`icon-lg`,disabled:r.isFetching,onClick:i,children:(0,Q.jsx)(xn,{"aria-hidden":`true`})})]})]}),(0,Q.jsx)(qn,{className:`px-6 pb-6`,children:r.isPending?(0,Q.jsx)(s,{"aria-label":`Loading bundle activity`,className:`h-80 w-full`}):r.error?(0,Q.jsx)(Y,{error:r.error,fallbackTitle:`Bundle activity unavailable`}):r.data?(0,Q.jsx)(fo,{report:r.data},JSON.stringify(e)):null}),(0,Q.jsxs)(Kn,{className:`flex-wrap items-center justify-between gap-4 border-t px-6 py-5`,children:[(0,Q.jsx)(`div`,{className:`flex min-w-0 basis-64 flex-1 flex-col gap-2 text-xs text-muted-foreground`,children:r.data&&!r.error?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`p`,{children:`Active follows each installation’s last reported ID in this period. Rollbacks count recovered installations per interval.`}),r.data.unattributedInstallations>0?(0,Q.jsxs)(`p`,{children:[r.data.unattributedInstallations.toLocaleString(),` `,`reporting installations have no observed bundle ID and are excluded.`]}):null,r.data.truncated?(0,Q.jsxs)(`p`,{children:[`Partial history — only reports since`,` `,co.format(r.data.sinceMs),` UTC are included. Choose a shorter period to see more complete counts.`]}):null]}):(0,Q.jsx)(`p`,{children:`Browse individual reports in the event log.`})}),(0,Q.jsxs)(Ce,{className:W(t({className:`h-11 px-4 sm:h-9`,size:`lg`,variant:`outline`})),to:`/installations`,children:[(0,Q.jsx)(At,{"aria-hidden":`true`,"data-icon":`inline-start`}),`All events`]})]})]})}function mo(){let e=Hn.useSearch(),t=Hn.useNavigate(),n=e.window??`24h`,r=e.bundleWindow??`24h`,i={platform:e.platform??`all`,channel:e.channel??`production`,appVersion:e.appVersion},a=n=>void t({search:{...e,window:n}}),o=n=>void t({search:{...e,bundleWindow:n}}),s=n=>void t({search:{...e,...n,appVersion:n.appVersion}}),c={...i,window:n},l={...i,window:r},u=re({queryKey:[`insights`,`app-usage`,c],queryFn:()=>Dn({data:c}),staleTime:3e4}),d=re({queryKey:[`insights`,`recovery`,l],queryFn:()=>Ae({data:l}),staleTime:3e4});return(0,Q.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,Q.jsx)(wt,{view:`overview`,overviewSearch:e}),(0,Q.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,Q.jsxs)(`div`,{className:`mx-auto flex w-full max-w-6xl flex-col gap-6`,children:[(0,Q.jsx)(oo,{scope:i,appVersions:u.data?.appVersions??[],onScopeChange:s},JSON.stringify(i)),u.data?.truncated&&!u.error?(0,Q.jsxs)(Wn,{children:[(0,Q.jsx)(Gn,{children:`Partial history`}),(0,Q.jsxs)(Zn,{children:[`Only reports since`,` `,new Date(u.data.sinceMs).toLocaleString(`en`,{timeZone:`UTC`}),` `,`UTC are available. The active-user count is a lower bound. Choose a shorter period for a more complete view.`]})]}):null,(0,Q.jsx)(ea,{query:u,search:{...i,window:n,bundleWindow:r},window:n,onWindowChange:a}),(0,Q.jsx)(po,{input:l,query:d,onWindowChange:o,onRefresh:()=>void d.refetch()})]})})]})}export{mo as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=e=>typeof e==`string`&&e.trim().length>0&&e.length<=1024?e:void 0,t=e=>e===`24h`||e===`7d`||e===`30d`?e:void 0;function n(n){return{platform:n.platform===`all`||n.platform===`ios`||n.platform===`android`?n.platform:void 0,channel:e(n.channel),appVersion:e(n.appVersion),window:t(n.window),bundleWindow:t(n.bundleWindow)}}function r(t){return{...n(t),version:e(t.version),page:typeof t.page==`number`&&Number.isSafeInteger(t.page)&&t.page>0?t.page:void 0}}export{n,r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$n as e,C as t,Ct as n,Et as r,Fn as i,G as a,H as o,In as s,Jn as c,Kn as l,Mn as u,Nn as d,Or as f,Ot as p,Pn as m,Pt as h,Qt as g,Rr as _,St as v,U as y,Un as b,Vr as x,W as S,Wt as C,Zn as w,Zt as T,_ as E,_t as D,bt as O,cn as k,cr as A,g as j,gt as M,ht as N,jn as P,jt as F,kn as I,ln as L,mt as R,nr as z,qn as B,t as V,un as H,vt as U,w as W,y as G,yt as ee,zt as te}from"./createServerFn-DU71xucx.js";import{d as ne,h as re,r as ie,t as ae,z as oe}from"./valueToPercent-BAtcbSLk.js";import{t as se}from"./info-C3y9HNoU.js";import{S as ce,_ as le,a as K,b as ue,c as de,f as fe,l as q,m as pe,o as me,p as he,s as ge,u as _e,v as ve,y as ye}from"./useOpenInteractionType-D5kduCTD.js";var be=z(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),J=A();function xe({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`empty`,className:P(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance`,e),...t})}function Se({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`empty-header`,className:P(`flex max-w-sm flex-col items-center gap-1`,e),...t})}b(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-md bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function Ce({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`empty-title`,className:P(`text-sm font-medium tracking-tight`,e),...t})}function we({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`empty-description`,className:P(`text-xs/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary`,e),...t})}var Y=x(_()),Te=Y.createContext(void 0);function Ee(){let t=Y.useContext(Te);if(t===void 0)throw Error(e(51));return t}var X=function(e){return e.complete=`data-complete`,e.indeterminate=`data-indeterminate`,e.progressing=`data-progressing`,e}({}),Z={status(e){return e===`progressing`?{[X.progressing]:``}:e===`complete`?{[X.complete]:``}:e===`indeterminate`?{[X.indeterminate]:``}:null}};function De(e,t){return t==null?`indeterminate progress`:e||`${t}%`}var Oe=Y.forwardRef(function(e,t){let{format:n,getAriaValueText:i=De,locale:a,max:o=100,min:s=0,value:c,render:u,className:d,children:f,style:p,...m}=e,[h,g]=Y.useState(),_=F(n),v=`indeterminate`;Number.isFinite(c)&&(v=c===o?`complete`:`progressing`);let y=ie(c,a,_.current),b=Y.useMemo(()=>({status:v}),[v]),x={"aria-labelledby":h,"aria-valuemax":o,"aria-valuemin":s,"aria-valuenow":c??void 0,"aria-valuetext":i(y,c),role:`progressbar`,children:(0,J.jsxs)(Y.Fragment,{children:[f,(0,J.jsx)(`span`,{role:`presentation`,style:r,children:`x`})]})},S=Y.useMemo(()=>({formattedValue:y,max:o,min:s,setLabelId:g,state:b,status:v,value:c}),[y,o,s,g,b,v,c]),C=l(`div`,e,{state:b,ref:t,props:[x,m],stateAttributesMapping:Z});return(0,J.jsx)(Te.Provider,{value:S,children:C})}),ke=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=Ee();return l(`div`,e,{state:o,ref:t,props:a,stateAttributesMapping:Z})}),Ae=Y.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{max:o,min:s,value:c,state:u}=Ee(),d=Number.isFinite(c)&&c!==null?ae(c,s,o):null;return l(`div`,e,{state:u,ref:t,props:[{style:d==null?{}:{insetInlineStart:0,height:`inherit`,width:`${d}%`}},a],stateAttributesMapping:Z})});function je({className:e,children:t,value:n,...r}){return(0,J.jsxs)(Oe,{value:n,"data-slot":`progress`,className:P(`w-full`,e),...r,children:[t,(0,J.jsx)(Me,{children:(0,J.jsx)(Ne,{})})]})}function Me({className:e,...t}){return(0,J.jsx)(ke,{className:P(`relative flex h-1 w-full items-center overflow-x-hidden rounded-md bg-muted`,e),"data-slot":`progress-track`,...t})}function Ne({className:e,...t}){return(0,J.jsx)(Ae,{"data-slot":`progress-indicator`,className:P(`h-full bg-primary transition-transform motion-reduce:transition-none`,e),...t})}function Pe({label:e,children:t}){let n=(0,Y.useId)(),[r,i]=(0,Y.useState)(!1);return(0,J.jsxs)(j,{open:r,onOpenChange:i,triggerId:n,children:[(0,J.jsx)(G,{id:n,"aria-describedby":r?`${n}-description`:void 0,closeOnClick:!1,onClick:()=>i(e=>!e),render:(0,J.jsx)(I,{"aria-label":e,className:`size-11 sm:size-7`,size:`icon`,variant:`ghost`}),children:(0,J.jsx)(se,{})}),(0,J.jsx)(E,{id:`${n}-description`,role:`tooltip`,className:`max-w-64`,side:`bottom`,children:t})]})}var Fe=Y.createContext(void 0);function Q(){let t=Y.useContext(Fe);if(t===void 0)throw Error(e(64));return t}var Ie=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),$={tabActivationDirection:e=>({[Ie.activationDirection]:e})},Le=Y.forwardRef(function(e,t){let{className:n,defaultValue:r=0,onValueChange:a,orientation:o=`horizontal`,render:c,value:u,style:d,...f}=e,p=e.defaultValue!==void 0,m=Y.useRef([]),[g,_]=Y.useState(()=>new Map),[v,y]=oe({controlled:u,default:r,name:`Tabs`,state:`value`}),b=u!==void 0,[x,S]=Y.useState(()=>new Map),w=Y.useCallback(e=>{if(e===void 0)return null;for(let[t,n]of x.entries())if(n!=null&&e===(n.value??n.index))return t;return null},[x]),[E,D]=Y.useState(()=>({previousValue:v,tabActivationDirection:`none`})),{previousValue:O,tabActivationDirection:k}=E,A=k,j=!1;O!==v&&(A=Re(O,v,o,x),j=O!=null&&v!=null&&w(v)==null);let M=j?O:v,N=O!==M||k!==A;i(()=>{N&&D({previousValue:M,tabActivationDirection:A})},[M,N,A]);let P=s((e,t)=>{t.activationDirection=Re(v,e,o,x),a?.(e,t),!t.isCanceled&&y(e)}),F=s((e,t)=>{a?.(e,h(t,void 0,void 0,{activationDirection:`none`}))}),I=s((e,t)=>{_(n=>{if(n.get(e)===t)return n;let r=new Map(n);return r.set(e,t),r})}),L=s((e,t)=>{_(n=>{if(!n.has(e)||n.get(e)!==t)return n;let r=new Map(n);return r.delete(e),r})}),R=Y.useCallback(e=>g.get(e),[g]),z=Y.useCallback(e=>{for(let t of x.values())if(e===t?.value)return t?.id},[x]),B=Y.useMemo(()=>({getTabElementBySelectedValue:w,getTabIdByPanelValue:z,getTabPanelIdByValue:R,onValueChange:P,orientation:o,registerMountedTabPanel:I,setTabMap:S,unregisterMountedTabPanel:L,tabActivationDirection:A,value:v}),[w,z,R,P,o,I,S,L,A,v]),V=Y.useMemo(()=>{for(let e of x.values())if(e!=null&&e.value===v)return e},[x,v]),H=Y.useMemo(()=>{for(let e of x.values())if(e!=null&&!e.disabled)return e.value},[x]),U=Y.useRef(!p),W=Y.useRef(p),G=Y.useRef(!1);i(()=>{if(b)return;function e(e,t){y(e),D(t=>t.previousValue===e&&t.tabActivationDirection===`none`?t:{previousValue:e,tabActivationDirection:`none`}),F(e,t),U.current=!1}if(x.size===0){if(!G.current||v===null)return;e(null,T);return}G.current=!0;let t=V?.disabled,n=V==null&&v!==null;if(!t&&v===r&&(W.current=!1),W.current&&t&&v===r)return;let i=U.current;if(t||n){let n=H??null;if(v===n){U.current=!1;return}let r=T;i?r=C:t&&(r=te),e(n,r);return}i&&V!=null&&(F(v,C),U.current=!1)},[r,H,b,F,V,y,x,v]);let ee=l(`div`,e,{state:{orientation:o,tabActivationDirection:A},ref:t,props:f,stateAttributesMapping:$});return(0,J.jsx)(Fe.Provider,{value:B,children:(0,J.jsx)(re,{elementsRef:m,children:ee})})});function Re(e,t,n,r){if(e==null||t==null)return`none`;let i=null,a=null;for(let[n,o]of r.entries()){if(o==null)continue;let r=o.value??o.index;if(e===r&&(i=n),t===r&&(a=n),i!=null&&a!=null)break}if(i==null||a==null)return i!==a&&(typeof e==`number`||typeof e==`string`)&&typeof e==typeof t?n===`horizontal`?t>e?`right`:`left`:t>e?`down`:`up`:`none`;let o=i.getBoundingClientRect(),s=a.getBoundingClientRect();if(n===`horizontal`){if(s.left<o.left)return`left`;if(s.left>o.left)return`right`}else{if(s.top<o.top)return`up`;if(s.top>o.top)return`down`}return`none`}var ze=`data-composite-item-active`;function Be(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=m(),{ref:i,index:a}=ne(e),o=n===a,s=Y.useRef(null),c=w(i,s);return{compositeProps:Y.useMemo(()=>({tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}}),[o,r,a,t]),compositeRef:c,index:a}}var Ve=Y.createContext(void 0);function He(){let t=Y.useContext(Ve);if(t===void 0)throw Error(e(65));return t}var Ue=Y.forwardRef(function(e,t){let{className:n,disabled:r=!1,render:a,value:o,id:s,nativeButton:c=!0,style:d,...f}=e,{value:m,getTabPanelIdByValue:_,orientation:v}=Q(),{activateOnFocus:y,highlightedTabIndex:b,onTabActivation:x,registerTabResizeObserverElement:S,setHighlightedTabIndex:C,tabsListElement:w}=He(),T=W(s),{compositeProps:E,compositeRef:D,index:O}=Be({metadata:Y.useMemo(()=>({disabled:r,id:T,value:o}),[r,T,o])}),A=o===m,j=Y.useRef(!1),M=Y.useRef(null);Y.useEffect(()=>{let e=M.current;if(e)return S(e)},[S]),i(()=>{if(j.current){j.current=!1;return}if(!(A&&O>-1&&b!==O))return;let e=w;if(e!=null){let t=k(p(e));if(t&&L(e,t))return}r||C(O)},[A,O,b,C,r,w]);let{getButtonProps:N,buttonRef:P}=u({disabled:r,native:c,focusableWhenDisabled:!0}),F=_(o),I=Y.useRef(!1),R=Y.useRef(!1);function z(e){A||r||x(o,h(g,e.nativeEvent,void 0,{activationDirection:`none`}))}function B(e){A||(O>-1&&!r&&C(O),!r&&y&&(!I.current||I.current&&R.current)&&x(o,h(g,e.nativeEvent,void 0,{activationDirection:`none`})))}function V(e){if(A||r)return;I.current=!0;function t(){I.current=!1,R.current=!1}(!e.button||e.button===0)&&(R.current=!0,p(e.currentTarget).addEventListener(`pointerup`,t,{once:!0}))}return l(`button`,e,{state:{disabled:r,active:A,orientation:v},ref:[t,P,D,M],props:[E,{role:`tab`,"aria-controls":F,"aria-selected":A,id:T,onClick:z,onFocus:B,onPointerDown:V,[ze]:A?``:void 0,onKeyDownCapture(){j.current=!0}},f,N]})}),We=function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=y.startingStyle]=`startingStyle`,e[e.endingStyle=y.endingStyle]=`endingStyle`,e}({}),Ge={...$,...S},Ke=Y.forwardRef(function(e,t){let{className:n,value:r,render:s,keepMounted:c=!1,style:u,...d}=e,{value:f,getTabIdByPanelValue:p,orientation:m,tabActivationDirection:h,registerMountedTabPanel:g,unregisterMountedTabPanel:_}=Q(),v=W(),{ref:y,index:b}=ne({metadata:Y.useMemo(()=>({id:v,value:r}),[v,r])}),x=r===f,{mounted:S,transitionStatus:C,setMounted:w}=a(x),T=!S,E=p(r),D={hidden:T,orientation:m,tabActivationDirection:h,transitionStatus:C},O=Y.useRef(null),k=l(`div`,e,{state:D,ref:[t,y,O],props:[{"aria-labelledby":E,hidden:T,id:v,role:`tabpanel`,tabIndex:x?0:-1,inert:ce(!x),[We.index]:b},d],stateAttributesMapping:Ge});return o({open:x,ref:O,onComplete(){x||w(!1)}}),i(()=>{if(!(T&&!c)&&v!=null)return g(r,v),()=>{_(r,v)}},[T,c,r,v,g,_]),c||S?k:null});function qe(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var Je=[];function Ye(e){let{itemSizes:t,cols:r=1,loopFocus:i=!0,onLoop:a,dense:o=!1,orientation:c=`both`,direction:l,highlightedIndex:u,onHighlightedIndexChange:d,rootRef:f,enableHomeAndEndKeys:p=!1,stopEventPropagation:m=!1,disabledIndices:h,modifierKeys:g=Je}=e,[_,y]=Y.useState(0),b=r>1,x=Y.useRef(null),S=w(x,f),C=Y.useRef([]),T=Y.useRef(!1),E=u??_,k=s((e,t=!1)=>{if((d??y)(e),t){let t=C.current[e];ue(x.current,t,l,c)}}),A=s(e=>{if(e.size===0||T.current)return;T.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&k(r),ue(x.current,n,l,c)}),j=s((e,t,n)=>a?a?.(e,t,n,C):n),P=Y.useMemo(()=>({"aria-orientation":c===`both`?void 0:c,ref:S,onFocus(e){let t=x.current,n=H(e.nativeEvent);!t||n==null||!ye(n)||n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let s=p?_e:me;if(!s.has(e.key)||Xe(e,g)||!x.current)return;let u=l===`rtl`,d=u?ge:de,f={horizontal:d,vertical:K,both:d}[c],_=u?de:ge,y={horizontal:_,vertical:q,both:_}[c],S=H(e.nativeEvent);if(S!=null&&ye(S)&&!qe(S)){let t=S.selectionStart,n=S.selectionEnd,r=S.value??``;if(t==null||e.shiftKey||t!==n||e.key!==y&&t<r.length||e.key!==f&&t>0)return}let w=E,T=O(C,h),A=ee(C,h);if(b){let a=t||Array.from({length:C.current.length},()=>({width:1,height:1})),s=R(a,r,o),l=s.findIndex(e=>e!=null&&!n(C.current,e,h)),d=s.reduce((e,t,r)=>t!=null&&!n(C.current,t,h)?r:e,-1);w=s[U(s.map(e=>e==null?null:C.current[e]),{event:e,orientation:c,loopFocus:i,onLoop:j,cols:r,disabledIndices:D([...h||C.current.map((e,t)=>n(C.current,t)?t:void 0),void 0],s),minIndex:l,maxIndex:d,prevIndex:M(E>A?T:E,a,s,r,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:u})]}let P={horizontal:[d],vertical:[K],both:[d,K]}[c],F={horizontal:[_],vertical:[q],both:[_,q]}[c],I=b?s:{horizontal:p?he:fe,vertical:p?ve:le,both:s}[c];p&&(e.key===`Home`?w=T:e.key===`End`&&(w=A)),w===E&&(P.includes(e.key)||F.includes(e.key))&&(i&&w===A&&P.includes(e.key)?(w=T,a&&(w=a(e,E,w,C))):i&&w===T&&F.includes(e.key)?(w=A,a&&(w=a(e,E,w,C))):w=N(C.current,{startingIndex:w,decrement:F.includes(e.key),disabledIndices:h})),w!==E&&!v(C.current,w)&&(m&&e.stopPropagation(),I.has(e.key)&&e.preventDefault(),k(w,!0),queueMicrotask(()=>{C.current[w]?.focus()}))}}),[r,o,l,h,C,p,E,b,t,i,a,j,S,g,k,c,m]);return Y.useMemo(()=>({props:P,highlightedIndex:E,onHighlightedIndexChange:k,elementsRef:C,disabledIndices:h,onMapChange:A,relayKeyboardEvent:P.onKeyDown}),[P,E,k,C,h,A])}function Xe(e,t){for(let n of pe.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function Ze(e){let{render:n,className:r,style:i,refs:a=B,props:o=B,state:s=c,stateAttributesMapping:u,highlightedIndex:f,onHighlightedIndexChange:p,orientation:m,dense:h,itemSizes:g,loopFocus:_,onLoop:v,cols:y,enableHomeAndEndKeys:b,onMapChange:x,stopEventPropagation:S=!0,rootRef:C,disabledIndices:w,modifierKeys:T,highlightItemOnHover:E=!1,tag:D=`div`,...O}=e,{props:k,highlightedIndex:A,onHighlightedIndexChange:j,elementsRef:M,onMapChange:N,relayKeyboardEvent:P}=Ye({itemSizes:g,cols:y,loopFocus:_,onLoop:v,dense:h,orientation:m,highlightedIndex:f,onHighlightedIndexChange:p,rootRef:C,stopEventPropagation:S,enableHomeAndEndKeys:b,direction:t(),disabledIndices:w,modifierKeys:T}),F=l(D,e,{state:s,ref:a,props:[k,...o,O],stateAttributesMapping:u}),I=Y.useMemo(()=>({highlightedIndex:A,onHighlightedIndexChange:j,highlightItemOnHover:E,relayKeyboardEvent:P}),[A,j,E,P]);return(0,J.jsx)(d.Provider,{value:I,children:(0,J.jsx)(re,{elementsRef:M,onMapChange:e=>{x?.(e),N(e)},children:F})})}var Qe=Y.forwardRef(function(e,t){let{activateOnFocus:n=!1,className:r,loopFocus:i=!0,render:a,style:o,...c}=e,{onValueChange:l,orientation:u,value:d,setTabMap:f,tabActivationDirection:p}=Q(),[m,h]=Y.useState(0),[g,_]=Y.useState(null),v=Y.useRef(new Set),y=Y.useRef(new Set),b=Y.useRef(null);Y.useEffect(()=>{if(typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{v.current.forEach(e=>{e()})});return b.current=e,g&&e.observe(g),y.current.forEach(t=>{e.observe(t)}),()=>{e.disconnect(),b.current=null}},[g]);let x=s(e=>(v.current.add(e),()=>{v.current.delete(e)})),S=s(e=>(y.current.add(e),b.current?.observe(e),()=>{y.current.delete(e),b.current?.unobserve(e)})),C=s((e,t)=>{e!==d&&l(e,t)}),w={orientation:u,tabActivationDirection:p},T={"aria-orientation":u===`vertical`?`vertical`:void 0,role:`tablist`},E=Y.useMemo(()=>({activateOnFocus:n,highlightedTabIndex:m,registerIndicatorUpdateListener:x,registerTabResizeObserverElement:S,onTabActivation:C,setHighlightedTabIndex:h,tabsListElement:g}),[n,m,x,S,C,h,g]);return(0,J.jsx)(Ve.Provider,{value:E,children:(0,J.jsx)(Ze,{render:a,className:r,style:o,state:w,refs:[t,_],props:[T,c],stateAttributesMapping:$,highlightedIndex:m,enableHomeAndEndKeys:!0,loopFocus:i,orientation:u,onHighlightedIndexChange:h,onMapChange:f,disabledIndices:B})})});function $e({className:e,orientation:t=`horizontal`,...n}){return(0,J.jsx)(Le,{orientation:t,"data-slot":`tabs`,"data-orientation":t,className:P(`group/tabs flex gap-2 data-horizontal:flex-col`,e),...n})}var et=b(`group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none`,{variants:{variant:{default:`bg-muted`,line:`gap-1 bg-transparent`}},defaultVariants:{variant:`default`}});function tt({className:e,variant:t=`default`,...n}){return(0,J.jsx)(Qe,{"data-slot":`tabs-list`,"data-variant":t,className:P(et({variant:t}),e),...n})}function nt({className:e,...t}){return(0,J.jsx)(Ue,{"data-slot":`tabs-trigger`,className:P(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start group-data-vertical/tabs:py-[calc(--spacing(1.25))] hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,e),...t})}function rt({className:e,...t}){return(0,J.jsx)(Ke,{"data-slot":`tabs-content`,className:P(`flex-1 text-xs/relaxed outline-none`,e),...t})}var it={"24h":{label:`DAU`,period:`24 hours`,interval:`hour`},"7d":{label:`WAU`,period:`7 days`,interval:`6 hours`},"30d":{label:`MAU`,period:`30 days`,interval:`day`}};function at({window:e,onWindowChange:t}){return(0,J.jsx)($e,{value:e,onValueChange:e=>{(e===`24h`||e===`7d`||e===`30d`)&&t(e)},children:(0,J.jsx)(tt,{"aria-label":`Reporting period`,className:`min-h-11 sm:min-h-9`,children:[`24h`,`7d`,`30d`].map(e=>(0,J.jsx)(nt,{value:e,"aria-label":it[e].period,className:`min-w-12 px-3`,children:e},e))})})}var ot=V({method:`GET`}).handler(f(`8a98cd9c178e4a54185d62c25a95f09d3d59850c43d3f5baa1563e1614ad942e`));export{rt as a,Pe as c,we as d,Se as f,$e as i,je as l,be as m,at as n,tt as o,Ce as p,it as r,nt as s,ot as t,xe as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{An as e,En as t,ar as n,cr as r,kn as i}from"./createServerFn-DU71xucx.js";import{i as a}from"./lazyRouteComponent-BapzjYnb.js";import{t as o}from"./arrow-left-04Rh8Zgp.js";import{n as s,r as c,t as l}from"./InsightsPageHeader-DC2eEst8.js";import{a as u,t as d}from"./field-B3CYDpjg.js";import{B as f,a as p,c as m,i as h,l as g,o as _,s as v}from"./valueToPercent-BAtcbSLk.js";import{c as y,d as b,f as x,l as S,m as C,n as w,p as T,t as E,u as D}from"./insights-usage-rpc-BaGR3lgq.js";import{n as O}from"./insights-search-Byj3g3Mp.js";import{t as k}from"./insights_.distribution-C1Wf27eB.js";import{a as A,c as j,d as M,i as N,n as P,o as F,s as I,t as L,u as R}from"./card-CYHs5FZv.js";var z=r(),B=20;function V(){let r=k.useSearch(),V=k.useNavigate(),H={platform:r.platform??`all`,channel:r.channel??`production`,appVersion:r.appVersion,window:r.window??`24h`},U=n({queryKey:[`insights`,`app-usage`,H],queryFn:()=>E({data:H}),staleTime:3e4}),W=U.error?void 0:U.data,G=(W?.bundleDistribution??[]).filter(e=>!r.version||e.appVersion===r.version),K=G.reduce((e,t)=>e+t.installations,0),q=Math.max(1,Math.ceil(G.length/B)),J=Math.min(r.page??1,q),Y=[...new Set([...W?.versions.map(e=>e.name)??[],...r.version?[r.version]:[]])],X=O(r),Z=e=>void V({search:{...r,page:void 0,...e}});return(0,z.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,z.jsx)(l,{view:`distribution`,overviewSearch:X}),(0,z.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,z.jsxs)(`div`,{className:`mx-auto flex w-full max-w-6xl flex-col gap-6`,children:[(0,z.jsxs)(a,{to:`/insights`,search:X,className:e({variant:`ghost`,className:`h-11 w-fit sm:h-9`}),children:[(0,z.jsx)(o,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to overview`]}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-4`,children:[(0,z.jsx)(`h2`,{className:`text-2xl font-semibold tracking-tight`,children:`Distribution`}),(0,z.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,z.jsx)(w,{window:H.window,onWindowChange:e=>Z({window:e})}),(0,z.jsx)(i,{"aria-label":`Refresh distribution`,variant:`ghost`,size:`icon`,className:`size-11 sm:size-9`,disabled:U.isFetching,onClick:()=>void U.refetch(),children:(0,z.jsx)(C,{"aria-hidden":`true`})})]})]}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-4`,children:[(0,z.jsxs)(d,{className:`w-full sm:w-64`,children:[(0,z.jsx)(u,{htmlFor:`distribution-version`,children:`App version`}),(0,z.jsxs)(h,{items:Object.fromEntries([[`all`,`All versions`],...Y.map(e=>[`version:${e}`,e])]),value:r.version?`version:${r.version}`:`all`,onValueChange:e=>{e!==null&&Z({version:e===`all`?void 0:e.slice(8)})},children:[(0,z.jsx)(m,{id:`distribution-version`,className:`min-h-11 w-full sm:min-h-9`,children:(0,z.jsx)(g,{})}),(0,z.jsx)(p,{children:(0,z.jsxs)(_,{children:[(0,z.jsx)(v,{value:`all`,children:`All versions`}),Y.map(e=>(0,z.jsx)(v,{value:`version:${e}`,children:e},e))]})})]})]}),(0,z.jsxs)(`div`,{className:`flex min-h-9 flex-wrap items-center gap-2`,"aria-label":`Distribution scope`,children:[(0,z.jsxs)(I,{variant:`outline`,className:`gap-1.5`,children:[H.platform===`all`?null:(0,z.jsx)(f,{platform:H.platform,className:`size-3.5`}),H.platform===`all`?`All platforms`:H.platform===`ios`?`iOS`:`Android`]}),(0,z.jsx)(I,{variant:`outline`,children:H.channel}),H.appVersion?(0,z.jsxs)(I,{variant:`outline`,children:[`Reports from `,H.appVersion]}):null]})]}),(0,z.jsxs)(L,{"aria-label":`Bundles by app version`,role:`region`,className:`min-w-0`,children:[(0,z.jsxs)(A,{className:`flex flex-col gap-3`,children:[(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,z.jsx)(F,{children:`Bundles by app version`}),(0,z.jsx)(y,{label:`How bundle distribution is counted`,children:`Each installation contributes its latest matching report in this period. Share is within its app version. Unknown bundle means no deployment ID was observed for the reported file. These counts describe reporting installations, not all installed devices.`})]}),(0,z.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-1`,children:[U.isPending?(0,z.jsx)(t,{className:`h-9 w-16`}):(0,z.jsx)(`p`,{className:`text-3xl font-semibold tabular-nums`,children:W?`${W.truncated?`≥`:``}${K.toLocaleString()}`:`—`}),(0,z.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Reporting installations`})]})]}),(0,z.jsxs)(P,{className:`flex min-w-0 flex-col gap-4`,children:[W?.truncated?(0,z.jsxs)(j,{children:[(0,z.jsx)(M,{children:`Partial history`}),(0,z.jsxs)(R,{children:[`Counts and shares reflect reports since`,` `,new Date(W.sinceMs).toLocaleString(`en`,{timeZone:`UTC`}),` `,`UTC. Choose a shorter period for a more complete view.`]})]}):null,U.isPending?(0,z.jsx)(t,{"aria-label":`Loading bundle distribution`,className:`h-64`}):U.error?(0,z.jsxs)(`div`,{className:`flex flex-col items-start gap-4`,children:[(0,z.jsx)(s,{error:U.error,fallbackTitle:`Distribution unavailable`}),(0,z.jsx)(i,{variant:`outline`,onClick:()=>void U.refetch(),children:`Retry distribution`})]}):G.length===0?(0,z.jsxs)(D,{children:[(0,z.jsxs)(x,{children:[(0,z.jsx)(T,{children:`No bundles reported`}),(0,z.jsx)(b,{children:`Choose another version or period, or change the filters in the overview.`})]}),(0,z.jsx)(i,{variant:`outline`,onClick:()=>Z({version:void 0}),children:`Show all versions`})]}):(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.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,z.jsx)(`span`,{children:`App version`}),(0,z.jsx)(`span`,{children:`Bundle ID`}),(0,z.jsx)(`span`,{className:`text-right`,children:`Active installations`}),(0,z.jsx)(`span`,{className:`text-right`,children:`Version share`})]}),(0,z.jsx)(`ul`,{"aria-label":`Bundle distribution`,className:`divide-y`,children:G.slice((J-1)*B,J*B).map(e=>{let t=W?.versions.find(t=>t.name===e.appVersion)?.installations??0,n=t>0?e.installations/t*100:0;return(0,z.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,z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,z.jsx)(`span`,{className:`truncate text-sm font-medium`,title:e.appVersion,children:e.appVersion}),(0,z.jsxs)(`span`,{className:`flex items-center gap-1.5 text-xs text-muted-foreground`,children:[(0,z.jsx)(f,{platform:e.platform,className:`size-3.5`}),e.platform===`ios`?`iOS`:`Android`]})]}),(0,z.jsx)(`div`,{className:`col-span-2 row-start-2 min-w-0 md:col-span-1 md:row-auto`,children:e.releaseId?(0,z.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,z.jsx)(`span`,{className:`break-all font-mono`,children:e.releaseId}),(0,z.jsx)(c,{"aria-hidden":`true`,className:`size-3.5 shrink-0`})]}):(0,z.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Unknown bundle`})}),(0,z.jsxs)(`div`,{className:`col-start-2 row-start-1 text-right md:col-auto md:row-auto`,children:[(0,z.jsx)(`span`,{className:`text-sm font-medium tabular-nums`,children:e.installations.toLocaleString()}),(0,z.jsx)(`span`,{className:`ml-1 text-xs text-muted-foreground md:sr-only`,children:`active`}),(0,z.jsxs)(`p`,{className:`mt-1 text-xs tabular-nums text-muted-foreground md:hidden`,children:[n.toFixed(1),`% of version`]})]}),(0,z.jsxs)(`div`,{className:`hidden flex-col gap-2 md:flex`,children:[(0,z.jsxs)(`span`,{className:`text-right text-sm tabular-nums`,children:[n.toFixed(1),`%`]}),(0,z.jsx)(S,{"aria-label":`${e.releaseId??`Unknown bundle`} share in ${e.appVersion} on ${e.platform}`,value:n})]})]},JSON.stringify([e.appVersion,e.platform,e.releaseId]))})})]})]}),W&&G.length>0?(0,z.jsxs)(N,{className:`flex flex-wrap items-center justify-between gap-3 border-t pt-4`,children:[(0,z.jsxs)(`p`,{className:`text-xs tabular-nums text-muted-foreground`,children:[(J-1)*B+1,`–`,Math.min(J*B,G.length),` of `,G.length]}),(0,z.jsxs)(`nav`,{"aria-label":`Distribution pages`,className:`flex gap-2`,children:[(0,z.jsx)(i,{variant:`outline`,className:`h-11 sm:h-9`,disabled:J<=1,onClick:()=>Z({page:J-1}),children:`Previous`}),(0,z.jsx)(i,{variant:`outline`,className:`h-11 sm:h-9`,disabled:J>=q,onClick:()=>Z({page:J+1}),children:`Next`})]})]}):null]})]})})]})}export{V as component};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/insights_.distribution-B1i6cjlQ.js","assets/createServerFn-DU71xucx.js","assets/valueToPercent-BAtcbSLk.js","assets/useOpenInteractionType-D5kduCTD.js","assets/field-B3CYDpjg.js","assets/list-Dqt53fWZ.js","assets/insights-usage-rpc-BaGR3lgq.js","assets/info-C3y9HNoU.js","assets/lazyRouteComponent-BapzjYnb.js","assets/arrow-left-04Rh8Zgp.js","assets/InsightsPageHeader-DC2eEst8.js","assets/chart-no-axes-combined-DwyMsVFW.js","assets/card-CYHs5FZv.js","assets/insights-search-Byj3g3Mp.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{n as e,t}from"./lazyRouteComponent-BapzjYnb.js";import{t as n}from"./preload-helper-ClBMtM1g.js";import{t as r}from"./insights-search-Byj3g3Mp.js";var i=e(`/insights_/distribution`)({component:t(()=>n(()=>import(`./insights_.distribution-B1i6cjlQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`),validateSearch:r});export{i as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/installations-DxTaIcHD.js","assets/createServerFn-DU71xucx.js","assets/lazyRouteComponent-BapzjYnb.js","assets/arrow-left-04Rh8Zgp.js","assets/InsightsPageHeader-DC2eEst8.js","assets/chart-no-axes-combined-DwyMsVFW.js","assets/list-Dqt53fWZ.js","assets/card-CYHs5FZv.js","assets/field-B3CYDpjg.js","assets/refresh-cw-CNE_2PnD.js","assets/HashValueDisplay-BpTc3Oyg.js","assets/dist-BR4GzeEu.js","assets/table-BuWQgxJJ.js","assets/input-group-nLZylhWF.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{Ar as e,Fr as t,Mr as n,Nr as r,Pr as i}from"./createServerFn-DU71xucx.js";import{A as a,B as o,C as s,D as c,E as l,H as u,I as d,L as f,M as p,N as m,O as h,P as g,R as _,S as v,T as y,V as b,_ as x,b as S,g as C,h as w,j as T,k as E,m as D,n as O,t as k,v as A,w as ee,x as j,y as te,z as M}from"./lazyRouteComponent-BapzjYnb.js";import{t as ne}from"./preload-helper-ClBMtM1g.js";var re=ae(JSON.parse),ie=oe(JSON.stringify,JSON.parse);function ae(e){return t=>{t[0]===`?`&&(t=t.substring(1));let r=n(t);for(let t in r){let n=r[t];if(typeof n==`string`)try{r[t]=e(n)}catch{}}return r}}function oe(e,t){let n=typeof t==`function`;function i(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=r(e,i);return t?`?${t}`:``}}var N=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},se=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),P=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),F=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},ce=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},I=(t,n,r)=>{if(!(!e(r)&&!i(r)))throw e(r)&&r.redirectHandled&&!r.options.reloadDocument?r:(n&&(n._nonReactive.beforeLoadPromise?.resolve(),n._nonReactive.loaderPromise?.resolve(),n._nonReactive.beforeLoadPromise=void 0,n._nonReactive.loaderPromise=void 0,n._nonReactive.error=r,t.updateMatch(n.id,a=>({...a,status:e(r)?`redirected`:i(r)?`notFound`:a.status===`pending`?`success`:a.status,context:F(t,n.index),isFetching:!1,error:r})),i(r)&&!r.routeId&&(r.routeId=n.routeId),n._nonReactive.loadPromise?.resolve()),e(r)&&(t.rendered=!0,r.options._fromLocation=t.location,r.redirectHandled=!0,r=t.router.resolveRedirect(r)),r)},le=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},ue=(e,t,n)=>{let r=F(e,n);e.updateMatch(t,e=>({...e,context:r}))},L=(t,n,r)=>{let{id:a,routeId:o}=t.matches[n],s=t.router.looseRoutesById[o];if(r instanceof Promise)throw r;t.firstBadMatchIndex??=n,I(t,t.router.getMatch(a),r);try{s.options.onError?.(r)}catch(e){r=e,I(t,t.router.getMatch(a),r)}t.updateMatch(a,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:r,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!t.preload&&!e(r)&&!i(r)&&(t.serialError??=r)},de=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!P(e,t)&&(n.options.loader||n.options.beforeLoad||xe(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{N(e)},i);r._nonReactive.pendingTimeout=t}},fe=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;de(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&I(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},pe=(t,n,r,a)=>{let o=t.router.getMatch(n),s=o._nonReactive.loadPromise;o._nonReactive.loadPromise=T(()=>{s?.resolve(),s=void 0});let{paramsError:c,searchError:l}=o;c&&L(t,r,c),l&&L(t,r,l),de(t,n,a,o);let u=new AbortController,d=!1,f=()=>{d||(d=!0,t.updateMatch(n,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:u})))},p=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,t.updateMatch(n,e=>({...e,isFetching:!1}))};if(!a.options.beforeLoad){t.router.batch(()=>{f(),p()});return}o._nonReactive.beforeLoadPromise=T();let m={...F(t,r,!1),...o.__routeContext},{search:h,params:g,cause:_}=o,v=P(t,n),y={search:h,abortController:u,params:g,preload:v,context:m,location:t.location,navigate:e=>t.router.navigate({...e,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:v?`preload`:_,matches:t.matches,routeId:a.id,...t.router.options.additionalContext},b=a=>{if(a===void 0){t.router.batch(()=>{f(),p()});return}(e(a)||i(a))&&(f(),L(t,r,a)),t.router.batch(()=>{f(),t.updateMatch(n,e=>({...e,__beforeLoadContext:a})),p()})},x;try{if(x=a.options.beforeLoad(y),M(x))return f(),x.catch(e=>{L(t,r,e)}).then(b)}catch(e){f(),L(t,r,e)}b(x)},me=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>pe(e,n,t,i),s=()=>{if(le(e,n))return;let t=fe(e,n,i);return M(t)?t.then(o):o()};return a()},he=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},ge=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=F(e,r),d=P(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},_e=async(t,n,r,a,o)=>{try{let s=t.router.getMatch(r);try{R(o);let e=o.options.loader,i=typeof e==`function`?e:e?.handler,c=i?.(ge(t,n,r,a,o)),l=!!i&&M(c);if((l||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||s._nonReactive.minPendingPromise)&&t.updateMatch(r,e=>({...e,isFetching:`loader`})),i){let e=l?await c:c;I(t,t.router.getMatch(r),e),e!==void 0&&t.updateMatch(r,t=>({...t,loaderData:e}))}o._lazyPromise&&await o._lazyPromise;let u=s._nonReactive.minPendingPromise;u&&await u,o._componentsPromise&&await o._componentsPromise,t.updateMatch(r,e=>({...e,error:void 0,context:F(t,a),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(n){let c=n;if(c?.name===`AbortError`){if(s.abortController.signal.aborted){s._nonReactive.loaderPromise?.resolve(),s._nonReactive.loaderPromise=void 0;return}t.updateMatch(r,e=>({...e,status:e.status===`pending`?`success`:e.status,isFetching:!1,context:F(t,a)}));return}let l=s._nonReactive.minPendingPromise;l&&await l,i(n)&&await o.options.notFoundComponent?.preload?.(),I(t,t.router.getMatch(r),n);try{o.options.onError?.(n)}catch(e){c=e,I(t,t.router.getMatch(r),e)}!e(c)&&!i(c)&&await R(o,[`errorComponent`]),t.updateMatch(r,e=>({...e,error:c,context:F(t,a),status:`error`,isFetching:!1}))}}catch(e){let n=t.router.getMatch(r);n&&(n._nonReactive.loaderPromise=void 0),I(t,n,e)}},ve=async(t,n,r)=>{async function i(i,o,l,u,f){let p=Date.now()-o.updatedAt,m=i?f.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:f.options.staleTime??t.router.options.defaultStaleTime??0,h=f.options.shouldReload,g=typeof h==`function`?h(ge(t,n,a,r,f)):h,{status:_,invalid:v}=u,y=p>=m&&(!!t.forceStaleReload||u.cause===`enter`||l!==void 0&&l!==u.id);s=_===`success`&&(v||(g??y)),i&&f.options.preload===!1||(s&&!t.sync&&d?(c=!0,(async()=>{try{await _e(t,n,a,r,f);let e=t.router.getMatch(a);e._nonReactive.loaderPromise?.resolve(),e._nonReactive.loadPromise?.resolve(),e._nonReactive.loaderPromise=void 0,e._nonReactive.loadPromise=void 0}catch(n){e(n)&&await t.router.navigate(n.options)}})()):_!==`success`||s?await _e(t,n,a,r,f):ue(t,a,r))}let{id:a,routeId:o}=t.matches[r],s=!1,c=!1,l=t.router.looseRoutesById[o],u=l.options.loader,d=((typeof u==`function`?void 0:u?.staleReloadMode)??t.router.options.defaultStaleReloadMode)!==`blocking`;if(le(t,a)){if(!t.router.getMatch(a))return t.matches[r];ue(t,a,r)}else{let e=t.router.getMatch(a),n=t.router.stores.matchesId.get()[r],s=(n&&t.router.stores.matchStores.get(n)||null)?.routeId===o?n:t.router.stores.matches.get().find(e=>e.routeId===o)?.id,c=P(t,a);if(e._nonReactive.loaderPromise){if(e.status===`success`&&!t.sync&&!e.preload&&d)return e;await e._nonReactive.loaderPromise;let n=t.router.getMatch(a),r=n._nonReactive.error||n.error;r&&I(t,n,r),n.status===`pending`&&await i(c,e,s,n,l)}else{let n=c&&!t.router.stores.matchStores.has(a),r=t.router.getMatch(a);r._nonReactive.loaderPromise=T(),n!==r.preload&&t.updateMatch(a,e=>({...e,preload:n})),await i(c,e,s,r,l)}}let f=t.router.getMatch(a);c||(f._nonReactive.loaderPromise?.resolve(),f._nonReactive.loadPromise?.resolve(),f._nonReactive.loadPromise=void 0),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,c||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;let p=c?f.isFetching:!1;return p!==f.isFetching||f.invalid!==!1?(t.updateMatch(a,e=>({...e,isFetching:p,invalid:!1})),t.router.getMatch(a)):f};async function ye(n){let r=n,a=[];se(r.router)&&N(r);let o;for(let t=0;t<r.matches.length;t++){try{let e=me(r,t);M(e)&&await e}catch(t){if(e(t))throw t;if(i(t))o=t;else if(!r.preload)throw t;break}if(r.serialError||r.firstBadMatchIndex!=null)break}let s=r.firstBadMatchIndex??r.matches.length,c=o&&!r.preload?ce(r,o):void 0,l=o&&r.preload?0:c===void 0?s:Math.min(c+1,s),u,d;for(let e=0;e<l;e++)a.push(ve(r,a,e));try{await Promise.all(a)}catch{let t=await Promise.allSettled(a);for(let n of t){if(n.status!==`rejected`)continue;let t=n.reason;if(e(t))throw t;i(t)?u??=t:d??=t}if(d!==void 0)throw d}let f=u??(o&&!r.preload?o:void 0),p=r.firstBadMatchIndex===void 0?r.matches.length-1:r.firstBadMatchIndex;if(!f&&o&&r.preload)return r.matches;if(f){let e=ce(r,f);e===void 0&&t();let n=r.matches[e],i=r.router.looseRoutesById[n.routeId],a=r.router.options?.defaultNotFoundComponent;!i.options.notFoundComponent&&a&&(i.options.notFoundComponent=a),f.routeId=n.routeId;let o=n.routeId===r.router.routeTree.id;r.updateMatch(n.id,e=>({...e,...o?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:f},isFetching:!1})),p=e,await R(i,[`notFoundComponent`])}else if(!r.preload){let e=r.matches[0];e.globalNotFound||r.router.getMatch(e.id)?.globalNotFound&&r.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(r.serialError&&r.firstBadMatchIndex!==void 0){let e=r.router.looseRoutesById[r.matches[r.firstBadMatchIndex].routeId];await R(e,[`errorComponent`])}for(let e=0;e<=p;e++){let{id:t,routeId:n}=r.matches[e],i=r.router.looseRoutesById[n];try{let e=he(r,t,i);if(e){let n=await e;r.updateMatch(t,e=>({...e,...n}))}}catch(e){console.error(`Error executing head for route ${n}:`,e)}}let m=N(r);if(M(m)&&await m,f)throw f;if(r.serialError&&!r.preload&&!r.onReady)throw r.serialError;return r.matches}function be(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function R(e,t=z){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===z?(()=>{if(e._componentsPromise===void 0){let t=be(e,z);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():be(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function xe(e){for(let t of z)if(e.options[t]?.preload)return!0;return!1}var z=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function Se(e){return{input:({url:t})=>{for(let n of e)t=B(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=we(e[n],t);return t}}}function Ce(e){let t=S(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=A([`/`,t,e.pathname]),e)}}function B(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 we(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 Te(e){let t=e;return{get(){return t},set(e){t=d(e,t)}}}function Ee(e){return{get(){return e()}}}function De(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),g=n(e.statusCode),_=n(e.redirect),v=n([]),y=n([]),b=n([]),x=r(()=>V(o,v.get())),S=r(()=>V(s,y.get())),C=r(()=>V(c,b.get())),w=r(()=>v.get()[0]),T=r(()=>v.get().some(e=>o.get(e)?.get().status===`pending`)),E=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),D=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:x.get(),location:p.get(),resolvedLocation:m.get(),statusCode:g.get(),redirect:_.get()})),O=h(64);function k(e){let t=O.get(e);return t||(t=r(()=>{let t=v.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),O.set(e,t)),t}let A={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:g,redirect:_,matchesId:v,pendingIds:y,cachedIds:b,matches:x,pendingMatches:S,cachedMatches:C,firstId:w,hasPending:T,matchRouteDeps:E,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:D,getRouteMatchStore:k,setMatches:ee,setPending:j,setCached:te};ee(e.matches),a?.(A);function ee(e){H(e,o,v,n,i)}function j(e){H(e,s,y,n,i)}function te(e){H(e,c,b,n,i)}return A}function V(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function H(e,t,n,r,i){let o=e.map(e=>e.id),s=new Set(o);i(()=>{for(let e of t.keys())s.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}a(n.get(),o)||n.set(o)})}var U=`__TSR_index`,Oe=`popstate`,ke=`beforeunload`;function Ae(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({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=W(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};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[U];i=je(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[U];i=je(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),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[U]!==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}}function je(e,t){t||={};let n=G();return{...t,key:n,__TSR_key:n,[U]:e}}function Me(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=e?.createHref??(e=>e),c=e?.parseLocation??(()=>W(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=G();t.history.replaceState({[U]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=W(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[U]-l.state[U],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 n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=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=``},C=Ae({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ke,S,{capture:!0}),t.removeEventListener(Oe,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(ke,S,{capture:!0}),t.addEventListener(Oe,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Ne(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function W(e,t){let n=Ne(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=G();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[U]:0,key:a,__TSR_key:a}}}function G(){return(Math.random()+1).toString(36).substring(7)}function Pe(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function K(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var Fe=new WeakMap,Ie=class{constructor(t,n){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=C(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Me()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=h(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=De(Re(this.latestLocation),e),et(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=S(o);t&&t!==`/`&&e.push(Ce({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Se(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=c(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&l(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state: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:p(e).path,external:!1,searchStr:o,search:b(t?.search,i),hash:p(r.slice(1)).path,state:u(t?.state,a)}}let o=new URL(i,this.origin),s=B(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:p(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:b(t?.search,c),hash:p(s.hash.slice(1)).path,state:u(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>te({base:e,to:t.includes(`//`)?w(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>ze({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,m=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,d(t.params,s)),h=this.routesByPath[j(l)],_;if(h)_=this.getRouteBranch(h);else if(l.includes(`$`))_=[];else{let e=this.getMatchedRoutes(l);_=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(_=[..._,this.options.notFoundRoute])}if(_.length&&f(m))for(let e of _){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(m,t(m))}catch{}}let v=e.leaveParams?l:p(x({path:l,params:m,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};_.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,J(t.options.validateSearch,{...e,...y}))}catch{}}),y=e}y=Be({search:y,dest:t,destRoutes:_,_includeValidateSearch:e._includeValidateSearch}),y=b(o,y);let S=this.options.stringifySearch(y),C=t.hash===!0?n.hash:t.hash?d(t.hash,n.hash):void 0,w=C?`#${C}`:``,T=t.state===!0?n.state:t.state?d(t.state,n.state):{};T=u(n.state,T);let E=`${v}${S}${w}`,D,O,k=!1;if(this.rewrite){let e=new URL(E,this.origin),t=we(this.rewrite,e);D=e.href.replace(e.origin,``),t.origin===this.origin?O=t.pathname+t.search+t.hash:(O=t.href,k=!0)}else D=g(E),O=D;return{publicHref:O,href:D,pathname:v,search:y,searchStr:S,state:T,hash:C??``,external:k,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=s(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,d(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=m(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=j(this.latestLocation.href)===j(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=T(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.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.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=W(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=B(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(_(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async t=>{let n=t?.action?.type,r,a,o,s=this.stores.resolvedLocation.get()??this.stores.location.get();for(o=new Promise(c=>{this.startTransition(async()=>{try{this.beforeLoad(),n?Fe.set(this.latestLocation,n):Fe.delete(this.latestLocation);let e=this.latestLocation,r=K(e,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await ye({router:this,sync:t?.sync,forceStaleReload:s.href===e.href,matches:this.stores.pendingMatches.get(),location:e,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(t){e(t)?(r=t,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):i(t)&&(a=t);let n=r?r.status:a?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(n),this.stores.redirect.set(r)})}this.latestLoadPromise===o&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),c()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;let c;this.hasNotFoundMatch()?c=404:this.stores.matches.get().some(e=>e.status===`error`)&&(c=500),c!==void 0&&this.stores.statusCode.set(c)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(K(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&_(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=R,this.preloadRoute=async t=>{let n=t._builtLocation??this.buildLocation(t),r=this.matchRoutes(n,{throwOnError:!0,preload:!0,dest:t}),a=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),o=new Set([...a,...this.stores.cachedIds.get()]),s=r.filter(e=>!o.has(e.id));if(s.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...s])}try{return r=await ye({router:this,matches:r,location:n,preload:!0,updateMatch:(e,t)=>{a.has(e)?r=r.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),r}catch(t){if(e(t))return t.options.reloadDocument?void 0:await this.preloadRoute({...t.options,_fromLocation:n});i(t)||console.error(t);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=y(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!m(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?m(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=n,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??`fuzzy`,stringifySearch:t.stringifySearch??ie,parseSearch:t.parseSearch??re,protocolAllowlist:t.protocolAllowlist??E}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=v(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,n){let r=this.getMatchedRoutes(t.pathname),{foundRoute:a,routeParams:o}=r,{matchedRoutes:s}=r,c=!1;(a?a.path!==`/`&&o[`**`]:j(t.pathname))&&(this.options.notFoundRoute?s=[...s,this.options.notFoundRoute]:c=!0);let l=c?He(this.options.notFoundMode,s):void 0,d=Array(s.length),f=new Map;for(let e of this.stores.matchStores.values())e.routeId&&f.set(e.routeId,e.get());for(let r=0;r<s.length;r++){let a=s[r],c=d[r-1],p,m,h;{let e=c?.search??t.search,r=c?._strictSearch??void 0;try{let t=J(a.options.validateSearch,{...e})??void 0;p={...e,...t},m={...r,...t},h=void 0}catch(t){let r=t;if(t instanceof q||(r=new q(t.message,{cause:t})),n?.throwOnError)throw r;p=e,m={},h=r}}let g=a.options.loaderDeps?.({search:p})??``,_=g?JSON.stringify(g):``,{interpolatedPath:v,usedParams:y}=x({path:a.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),S=a.id+v+_,C=this.getMatch(S),w=f.get(a.id),E=C?._strictParams??y,D;if(!C)try{Ue(a,E)}catch(t){if(D=i(t)||e(t)?t:new Le(t.message,{cause:t}),n?.throwOnError)throw D}Object.assign(o,E);let O=w?`stay`:`enter`,k;if(C)k={...C,cause:O,params:w?.params??o,_strictParams:E,search:b(w?w.search:C.search,p),_strictSearch:m};else{let e=a.options.loader||a.options.beforeLoad||a.lazyFn||xe(a)?`pending`:`success`;k={id:S,ssr:a.options.ssr,index:r,routeId:a.id,params:w?.params??o,_strictParams:E,pathname:v,updatedAt:Date.now(),search:w?b(w.search,p):p,_strictSearch:m,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:D,__routeContext:void 0,_nonReactive:{loadPromise:T()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:O,loaderDeps:w?u(w.loaderDeps,g):g,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:a.options.staticData||{},fullPath:a.fullPath}}n?.preload||(k.globalNotFound=l===a.id),k.searchError=h;let A=this.getParentContext(c);k.context={...A,...k.__routeContext,...k.__beforeLoadContext},d[r]=k}for(let e=0;e<d.length;e++){let n=d[e],r=this.looseRoutesById[n.routeId],i=this.getMatch(n.id),a=f.get(n.routeId);if(n.params=a?b(a.params,o):o,!i){let i=d[e-1],a=this.getParentContext(i);if(r.options.context){let e={deps:n.loaderDeps,params:n.params,context:a??{},location:t,navigate:e=>this.navigate({...e,_fromLocation:t}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:d,routeId:r.id};n.__routeContext=r.options.context(e)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return d}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=o(t),i={...e.search};for(let e of t)try{Object.assign(i,J(e.options.validateSearch,i))}catch{}let a=o(this.stores.matchesId.get()),s=a&&this.stores.matchStores.get(a)?.get(),c=s&&s.routeId===r.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Ue(n,e)}catch{}l=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:l}}},q=class extends Error{},Le=class extends Error{};function Re(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function J(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new q(`Async validation not supported`);if(n.issues)throw new q(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 ze({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=j(e),a,o=ee(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function Be({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Ve(n)(e,t,r??!1)}function Ve(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=J(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=d(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function He(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return D}function Ue(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function We(){try{return sessionStorage}catch{return}}var Ge=`tsr-scroll-restoration-v1_3`,Ke=We();function qe(){try{return JSON.parse(Ke?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Je(){try{Ke?.setItem(Ge,JSON.stringify(Y))}catch{}}var Y=qe(),Ye=`data-scroll-restoration-id`,Xe=e=>e.state.__TSR_key||e.href;function Ze(e){let t=e.getAttribute(Ye);if(t)return`[${Ye}="${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 Qe(e,t){let n=Y[(t.getKey||Xe)(e.latestLocation)];if(!n)return;if(t.id)return n[`[${Ye}="${t.id}"]`];let r=t.getElement?.();if(r)return n[r===window?Z:Ze(r)]}var X=!1,Z=`window`;function Q(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function $e(e){let t=[];for(let n of e){if(n===Z)continue;let e=Q(n);e&&t.push(e)}return t}function et(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Xe,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(X||!r.restoring))if(e.target===document)o(Z,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Y[e]||={};for(let[e,n]of a)e===Z?t[Z]=n:e.isConnected&&(t[Ze(e)]=n)};n&&!r.restoration&&(r.restoration=!0,X=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Je()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=Y[u];if(e){let t=Y[l];for(let n in e){if(n===Z){if(s)continue}else{let e=Q(n);if(!e||s&&o&&(c??=$e(o),c.includes(e)))continue}t||=Y[l]={},t[n]??=e[n]}}}X=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=Fe.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Y[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===Z){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Q(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=$e(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{X=!1}}))}var $=e=>typeof e==`string`&&e.length>0?e:void 0,tt=e=>typeof e==`number`&&Number.isSafeInteger(e)&&e>=0?e:void 0;function nt(e){if(e.pathname===`/installations`){let t=rt(e.search);if(t.query===void 0&&t.installId===void 0)return`/installations?eventsBefore=${t.eventsBefore??`new`}&eventsCursor=${t.eventsCursor??`first`}`}return e.state.__TSR_key}function rt(e){return{query:typeof e.query==`string`?e.query:void 0,installId:typeof e.installId==`string`?e.installId:void 0,eventsCursor:$(e.eventsCursor),eventsBefore:tt(e.eventsBefore),searchCursor:$(e.searchCursor),historyCursor:$(e.historyCursor),historyBefore:tt(e.historyBefore)}}var it=O(`/installations`)({component:k(()=>ne(()=>import(`./installations-DxTaIcHD.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])),`component`),validateSearch:rt});export{Ie as a,Te as c,et as i,Ee as l,nt as n,Pe as o,Qe as r,K as s,it as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{An as e,Dn as t,En as n,Or as r,Rr as i,Vr as a,ar as o,cr as s,jn as c,kn as l,nr as u,t as d}from"./createServerFn-DU71xucx.js";import{i as f,s as p}from"./lazyRouteComponent-BapzjYnb.js";import{i as m,n as ee,r as h,t as g}from"./installations-CkFW4fV9.js";import{t as te}from"./arrow-left-04Rh8Zgp.js";import{n as _,r as v,t as ne}from"./InsightsPageHeader-DC2eEst8.js";import{a as y,s as b,t as x}from"./field-B3CYDpjg.js";import{n as S}from"./list-Dqt53fWZ.js";import{t as C}from"./refresh-cw-CNE_2PnD.js";import{n as w,r as T,t as E}from"./HashValueDisplay-BpTc3Oyg.js";import{a as D,i as O,n as k,o as A,r as j,s as re,t as M}from"./table-BuWQgxJJ.js";import{a as N,n as P,o as F,s as ie,t as I}from"./card-CYHs5FZv.js";import{i as ae,n as L,r as oe,t as se}from"./input-group-nLZylhWF.js";function ce(){m(p(),!0)}function le(e){return ce(),h(p(),e)}var ue=u(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),de=u(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),R=a(i(),1),z=s(),fe={UPDATE_APPLIED:{label:`Update applied`,description:`The app started using the downloaded update.`,variant:`success`,icon:b},RECOVERED:{label:`Rolled back`,description:`The app recovered to a previous working bundle.`,variant:`warning`,icon:T},UNCHANGED:{label:`No change`,description:`The app continues using the same bundle files.`,variant:`secondary`,icon:ue}};function B(){let[e,t]=(0,R.useState)(`UTC`);return(0,R.useEffect)(()=>{t(Intl.DateTimeFormat().resolvedOptions().timeZone)},[]),new Intl.DateTimeFormat(`en`,{timeZone:e,timeZoneName:`shortOffset`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`})}function pe(e,t){let n=Object.fromEntries(t.formatToParts(new Date(e)).map(({type:e,value:t})=>[e,t])),r=n.timeZoneName===`GMT`?`GMT+0`:n.timeZoneName;return`${n.year}/${n.month}/${n.day} ${n.hour}:${n.minute}:${n.second} ${r}`}function V({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=pe(e,t);return(0,z.jsxs)(`details`,{className:`group/time`,children:[(0,z.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring/30 [&::-webkit-details-marker]:hidden ${n?`flex min-h-11 items-center`:``}`,children:(0,z.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,z.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,z.jsx)(S,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,z.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}function H({type:e}){let t=fe[e],n=t.icon;return(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,z.jsxs)(ie,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,z.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,z.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:t.description})]})}function U({event:e,touch:t=!1}){let n=e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,z.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[e.fromBundleId&&n?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`dt`,{className:`text-muted-foreground`,children:`From`}),(0,z.jsx)(`dd`,{children:(0,z.jsx)(E,{value:e.fromBundleId,buttonClassName:t?`min-h-11 px-3`:void 0})})]}):null,(0,z.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`To`:`Current`}),(0,z.jsx)(`dd`,{children:(0,z.jsx)(E,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0})})]})}function W({events:e,formatter:t,renderIdentity:n}){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`p`,{className:`px-4 pb-2 text-xs text-muted-foreground sm:px-6`,children:`Time in your browser zone`}),(0,z.jsx)(`ol`,{"aria-label":`Events`,className:`divide-y border-y`,children:e.map(e=>(0,z.jsxs)(`li`,{className:`flex min-w-0 flex-col gap-3 px-4 py-4 sm:px-6`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-x-4 gap-y-1`,children:[(0,z.jsx)(H,{type:e.type}),(0,z.jsx)(`div`,{className:`text-xs tabular-nums`,children:(0,z.jsx)(V,{value:e.receivedAtMs,formatter:t,touch:!0})})]}),n?.(e),(0,z.jsxs)(`dl`,{className:`flex flex-wrap gap-x-2 gap-y-1 text-sm`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`dt`,{className:`sr-only`,children:`App`}),(0,z.jsxs)(`dd`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]})]}),(0,z.jsxs)(`div`,{className:`min-w-0 text-muted-foreground`,children:[(0,z.jsx)(`dt`,{className:`sr-only`,children:`Channel`}),(0,z.jsx)(`dd`,{className:`wrap-anywhere`,children:e.channel})]})]}),(0,z.jsx)(`div`,{className:`text-xs`,"aria-label":`Bundle`,children:(0,z.jsx)(U,{event:e,touch:!0})})]},e.id))})]})}function G({hasPrevious:e,label:t,nextCursor:n,onNext:r,onPrevious:i,pageLength:a,pageNumber:o}){return(0,z.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,z.jsxs)(`span`,{className:`text-xs text-muted-foreground tabular-nums`,children:[`Page `,o,` · `,a.toLocaleString(),` rows`]}),(0,z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,z.jsx)(l,{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,z.jsx)(l,{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`})]})]})}function K({event:t,eventsLocation:n,touch:r=!1}){return(0,z.jsxs)(`div`,{className:r?`flex min-w-0 flex-wrap items-center justify-between gap-2`:`flex min-w-0 flex-col items-start gap-2`,children:[(0,z.jsxs)(f,{className:e({className:r?`-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:{...n,query:t.installId||void 0,installId:t.installId},"aria-label":`View history for ${t.userId??t.username??`anonymous installation`} (${t.installId})`,children:[(0,z.jsx)(`span`,{className:r?`min-w-0 text-left wrap-anywhere`:`truncate`,children:t.userId??t.username??`Anonymous installation`}),(0,z.jsx)(v,{"aria-hidden":`true`,"data-icon":`inline-end`})]}),(0,z.jsx)(E,{value:t.installId,maxLength:13,buttonClassName:r?`min-h-11 px-3`:void 0})]})}function me({children:e,error:t,eventsLocation:r,history:i,isFetching:a,isLoading:o,onNext:s,onPrevious:c,onRefresh:u,pageNumber:d,title:f=`All events`}){let p=B(),m=d>1;return(0,z.jsxs)(I,{className:`@container min-w-0 shadow-sm`,"aria-busy":a,children:[(0,z.jsxs)(N,{className:`gap-4 p-4 sm:p-6`,children:[(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,z.jsx)(F,{children:(0,z.jsx)(`h2`,{children:f})}),(0,z.jsxs)(l,{className:`h-11 lg:h-8`,disabled:a,onClick:u,size:`lg`,variant:`outline`,children:[(0,z.jsx)(C,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]})]}),e]}),(0,z.jsx)(P,{className:`min-w-0 p-0`,children:o?(0,z.jsxs)(`div`,{className:`flex flex-col gap-4 p-6`,role:`status`,"aria-label":`Loading events`,children:[(0,z.jsx)(n,{className:`h-12 w-full`}),(0,z.jsx)(n,{className:`h-12 w-full`}),(0,z.jsx)(n,{className:`h-12 w-full`})]}):t?(0,z.jsx)(`div`,{className:`px-6 pb-6`,children:(0,z.jsx)(_,{error:t,fallbackTitle:`Event history unavailable`})}):i?(0,z.jsxs)(z.Fragment,{children:[i.data.length>0?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`@[58rem]:hidden`,children:(0,z.jsx)(W,{events:i.data,formatter:p,renderIdentity:e=>(0,z.jsx)(K,{event:e,eventsLocation:r,touch:!0})})}),(0,z.jsx)(`div`,{className:`hidden @[58rem]:block`,children:(0,z.jsxs)(M,{className:`min-w-4xl table-fixed`,children:[(0,z.jsx)(D,{children:(0,z.jsxs)(A,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,z.jsx)(O,{className:`w-64`,children:`Time`}),(0,z.jsx)(O,{className:`w-48`,children:`Event`}),(0,z.jsx)(O,{className:`w-48`,children:`User / installation`}),(0,z.jsx)(O,{className:`w-32`,children:`App`}),(0,z.jsx)(O,{className:`w-52`,children:`Bundle`})]})}),(0,z.jsx)(k,{children:i.data.map(e=>(0,z.jsxs)(A,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,z.jsx)(j,{className:`whitespace-normal text-xs tabular-nums`,children:(0,z.jsx)(V,{value:e.receivedAtMs,formatter:p})}),(0,z.jsx)(j,{children:(0,z.jsx)(H,{type:e.type})}),(0,z.jsx)(j,{children:(0,z.jsx)(K,{event:e,eventsLocation:r})}),(0,z.jsx)(j,{className:`whitespace-normal text-xs`,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,z.jsx)(j,{className:`whitespace-normal text-xs`,children:(0,z.jsx)(U,{event:e})})]},e.id))})]})})]}):(0,z.jsx)(`div`,{className:`px-6 pb-6 text-sm text-muted-foreground`,children:m||i.nextCursor?`No events on this page`:f===`All events`?`No events recorded yet`:`No matching reports in this period`}),i.data.length>0||m||i.nextCursor?(0,z.jsx)(G,{hasPrevious:m,label:f,nextCursor:i.nextCursor,onNext:s,onPrevious:c,pageLength:i.data.length,pageNumber:d}):null]}):null})]})}var he=e=>e.userId??e.username??`—`,ge=e=>`lastKnownBundleId`in e?e.lastKnownBundleId:e.toBundleId??e.fromBundleId;function _e({error:e,history:r,isLoading:i,onNext:a,onPrevious:o,onRefresh:s,pageNumber:c,selectedEvent:u,selectedInstallId:d}){let f=B(),p=u?ge(u):void 0;return(0,z.jsxs)(I,{className:`@container min-h-0 min-w-0 shadow-sm`,children:[(0,z.jsx)(N,{className:`p-4 sm:p-6`,children:(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,z.jsx)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:(0,z.jsx)(F,{className:`text-sm font-medium`,children:(0,z.jsx)(`h2`,{children:d===void 0?`Select an installation`:`Installation history`})})}),s&&d!==void 0?(0,z.jsxs)(l,{className:`h-11 lg:h-8`,size:`lg`,variant:`outline`,onClick:s,disabled:i,children:[(0,z.jsx)(C,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Refresh`]}):null]})}),(0,z.jsxs)(P,{className:`min-h-0 p-0`,children:[d!==void 0&&u?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsxs)(`section`,{"aria-labelledby":`latest-installation-state`,className:`px-4 pb-4 sm:px-6 sm:pb-6`,children:[(0,z.jsx)(`h3`,{className:`sr-only`,id:`latest-installation-state`,children:`Latest reported state`}),(0,z.jsxs)(`dl`,{className:`grid grid-cols-2 gap-4 @[36rem]:grid-cols-3`,children:[(0,z.jsxs)(`div`,{className:`col-span-2 min-w-0 @[36rem]:col-span-1`,children:[(0,z.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`User ID`}),(0,z.jsx)(`dd`,{className:`mt-1 text-sm font-medium wrap-anywhere`,children:he(u)})]}),(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Install ID`}),(0,z.jsx)(`dd`,{className:`mt-1 font-mono text-xs`,children:(0,z.jsx)(E,{value:d,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`})})]}),(0,z.jsxs)(`div`,{className:`min-w-0`,children:[(0,z.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:`Last known bundle`}),(0,z.jsx)(`dd`,{className:`mt-1 font-mono text-xs`,children:p?(0,z.jsx)(E,{value:p,buttonClassName:`min-h-11 px-3 lg:min-h-0 lg:px-1.5`}):`—`})]})]})]}),(0,z.jsx)(t,{})]}):null,d===void 0?null:i?(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 p-6`,role:`status`,"aria-label":`Loading installation history`,children:[(0,z.jsx)(n,{className:`h-10 w-full`}),(0,z.jsx)(n,{className:`h-10 w-full`}),(0,z.jsx)(n,{className:`h-10 w-full`})]}):e?(0,z.jsx)(`div`,{className:`p-6`,children:(0,z.jsx)(_,{error:e instanceof Error?e:Error(),fallbackTitle:`Installation history unavailable`})}):r&&r.data.length>0?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`@[48rem]:hidden`,children:(0,z.jsx)(W,{events:r.data,formatter:f})}),(0,z.jsx)(`div`,{className:`hidden @[48rem]:block`,children:(0,z.jsxs)(M,{className:`min-w-3xl table-fixed`,children:[(0,z.jsx)(D,{children:(0,z.jsxs)(A,{className:`[&>th]:px-4 sm:[&>th]:px-6`,children:[(0,z.jsx)(O,{className:`w-64`,children:`Time`}),(0,z.jsx)(O,{className:`w-48`,children:`Event`}),(0,z.jsx)(O,{className:`w-32`,children:`App`}),(0,z.jsx)(O,{className:`w-52`,children:`Bundle`})]})}),(0,z.jsx)(k,{children:r.data.map(e=>(0,z.jsxs)(A,{className:`[&>td]:px-4 [&>td]:py-4 [&>td]:align-top sm:[&>td]:px-6`,children:[(0,z.jsx)(j,{className:`whitespace-normal text-xs tabular-nums`,children:(0,z.jsx)(V,{value:e.receivedAtMs,formatter:f})}),(0,z.jsx)(j,{children:(0,z.jsx)(H,{type:e.type})}),(0,z.jsx)(j,{className:`whitespace-normal text-xs`,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,z.jsxs)(`span`,{children:[e.platform===`ios`?`iOS`:`Android`,` `,e.appVersion]}),(0,z.jsx)(`span`,{className:`text-muted-foreground`,children:e.channel})]})}),(0,z.jsx)(j,{className:`whitespace-normal text-xs`,children:(0,z.jsx)(U,{event:e})})]},e.id))})]})}),(0,z.jsx)(G,{hasPrevious:c>1,label:`Installation history`,nextCursor:r.nextCursor,onNext:a,onPrevious:o,pageLength:r.data.length,pageNumber:c})]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:`p-6 text-sm text-muted-foreground`,children:c>1||r?.nextCursor?`No bundle changes on this page.`:`No bundle changes recorded yet.`}),r&&(c>1||r.nextCursor)?(0,z.jsx)(G,{hasPrevious:c>1,label:`Installation history`,nextCursor:r.nextCursor,onNext:a,onPrevious:o,pageLength:0,pageNumber:c}):null]})]})]})}var ve=e=>e.lastKnownBundleId,q=e=>e.userId??e.username??`—`;function ye({error:t,onNext:n,onPrevious:r,onSelect:i,pageNumber:a,results:o,selectedInstallId:s}){let[u,d]=(0,R.useState)(!1),f=(0,R.useId)(),p=(0,R.useRef)(null),m=!t&&o&&o.data.length>0;return(0,z.jsxs)(I,{className:`min-h-0 min-w-0 shadow-sm`,children:[(0,z.jsx)(N,{className:`p-4 sm:px-6`,children:(0,z.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,z.jsx)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:(0,z.jsx)(F,{className:`text-sm font-medium`,children:(0,z.jsx)(`h2`,{children:`Matching installations`})})}),(0,z.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:m?(0,z.jsx)(l,{"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,z.jsx)(S,{"aria-hidden":`true`,className:c(u&&`rotate-180`)})}):null})]})}),(0,z.jsxs)(P,{className:c(`min-h-0 p-0`,m&&!u&&`hidden lg:block`),id:f,children:[t?(0,z.jsx)(`div`,{className:`p-6`,children:(0,z.jsx)(_,{error:t instanceof Error?t:Error(),fallbackTitle:`Installation search unavailable`})}):o&&o.data.length>0?(0,z.jsx)(`ul`,{"aria-label":`Matching installations`,className:`divide-y`,children:o.data.map(e=>{let t=ve(e),n=e.installId===s;return(0,z.jsx)(`li`,{children:(0,z.jsxs)(`button`,{"aria-label":`${q(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:()=>{i(e.installId),d(!1),p.current?.focus()},type:`button`,children:[(0,z.jsxs)(`span`,{className:`flex w-full min-w-0 items-center justify-between gap-3`,children:[(0,z.jsx)(`span`,{className:`min-w-0 truncate text-sm font-medium`,children:q(e)}),n?(0,z.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1 text-xs font-medium text-primary`,children:[(0,z.jsx)(b,{"aria-hidden":`true`,className:`size-3.5`}),(0,z.jsx)(`span`,{className:`sr-only`,children:`Selected`})]}):null]}),(0,z.jsx)(`span`,{className:`flex flex-wrap items-center gap-2`,children:(0,z.jsx)(`span`,{className:`font-mono text-xs`,title:e.installId,children:w(e.installId)})}),(0,z.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Bundle`}),t?(0,z.jsx)(`span`,{className:`font-mono text-xs`,title:t,children:w(t)}):(0,z.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`—`})]})]})},e.installId)})}):(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 p-4 sm:px-6`,children:[(0,z.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No matches`}),(0,z.jsx)(`a`,{className:e({variant:`outline`,className:`h-11 px-3 lg:h-8`}),href:`#installation-history-search`,children:`Edit search`})]}),o&&(o.data.length>0||a>1||o.nextCursor)?(0,z.jsx)(G,{hasPrevious:a>1,label:`Installation results`,nextCursor:o.nextCursor,onNext:n,onPrevious:r,pageLength:o.data.length,pageNumber:a}):null]})]})}function be({draftQuery:e,onDraftQueryChange:t,onSubmit:n,onClear:r}){return(0,z.jsx)(`form`,{"aria-label":`Find installation`,onSubmit:t=>{t.preventDefault(),e.trim()&&n()},role:`search`,children:(0,z.jsxs)(x,{className:`gap-2`,children:[(0,z.jsx)(y,{className:`sr-only`,htmlFor:`installation-history-search`,children:`User ID or installation ID`}),(0,z.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,z.jsxs)(se,{className:`h-11 w-auto min-w-0 flex-1 basis-44 lg:h-8`,children:[(0,z.jsx)(L,{children:(0,z.jsx)(de,{"aria-hidden":`true`})}),(0,z.jsx)(ae,{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=>t(e.target.value),placeholder:`User ID or installation ID`,spellCheck:!1,type:`search`,value:e}),e.length>0?(0,z.jsx)(L,{align:`inline-end`,children:(0,z.jsx)(oe,{"aria-label":`Clear installation lookup`,className:`size-11 lg:size-5`,onClick:r,size:`icon-xs`,children:(0,z.jsx)(re,{"aria-hidden":`true`})})}):null]}),(0,z.jsx)(l,{"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 xe(){return(0,z.jsxs)(`div`,{className:`grid items-stretch gap-6 lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`,children:[(0,z.jsx)(n,{className:`h-64 w-full lg:h-full`}),(0,z.jsx)(n,{className:`h-64 w-full lg:h-full`})]})}d({method:`GET`}).handler(r(`ff00311d412c8cdfa8ad5b0ba1eb6aa7471d0cc12170e6cc645deb91603d42dd`));var Se=d({method:`GET`}).handler(r(`d4c50f40701055145f24873dc90f3c55a5494457a6a03a743339b2ac4545eb19`)),Ce=d({method:`GET`}).handler(r(`3c04bc6624be6dfdd80cf96819f9c6d0455e59a7bb4c0374b6afb0162ffd15b0`)),we=d({method:`GET`}).handler(r(`6726f1ed9eda1f0cb4c1f1ad1023faee435ddcfd0b7c55ef08ca7f2f7f577370`)),Te=d({method:`GET`}).handler(r(`735c501f6d5ea81a445ff2b6b2ea6a1b589e3c6f63a465a881822c80ae71e7d1`)),J=3e4,Y={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]},Ee=(e,t)=>o({queryKey:Y.events(e),queryFn:()=>Se({data:e}),enabled:t,refetchOnWindowFocus:!0,staleTime:J}),X=(e,t)=>o({queryKey:Y.installations(e),queryFn:()=>Te({data:e}),enabled:t&&e.identity.length>0,staleTime:J}),De=(e,t)=>o({queryKey:Y.installation(e),queryFn:()=>we({data:{installId:e}}),enabled:t&&e.length>0,staleTime:J}),Oe=(e,t)=>o({queryKey:Y.installationEvents(e),queryFn:()=>Ce({data:e}),enabled:t&&e.installId.length>0,refetchOnWindowFocus:!0,staleTime:J}),ke=20,Ae=50,Z=()=>Date.now(),Q=(e,t)=>[...e,t??``],$=e=>({cursor:e?.at(-1)||void 0,stack:e.slice(0,-1)});function je(){let e=g.useSearch(),t=g.useNavigate(),[n,r]=(0,R.useState)(e.query??``),[i]=(0,R.useState)(Z),[a]=(0,R.useState)(Z),[o,s]=(0,R.useState)([]),[c,u]=(0,R.useState)([]),[d,f]=(0,R.useState)([]),p=e.query?.trim()??``,m=p.length>0,h=e.installId!==void 0,_=m||h,v=e.eventsBefore??i,y=e.historyBefore??a,b=(n,r=!1)=>{t({to:`/installations`,search:{...e,...n},replace:r})};(0,R.useEffect)(()=>{r(e.query??``)},[e.query]),(0,R.useEffect)(()=>{e.eventsBefore===void 0&&b({eventsBefore:v},!0)},[v,e.eventsBefore]),(0,R.useEffect)(()=>{h&&e.historyBefore===void 0&&b({historyBefore:y},!0)},[h,y,e.historyBefore]);let x=Ee({beforeReceivedAtMs:v,cursor:e.eventsCursor,limit:20},!_),S=X({cursor:e.searchCursor,identity:p,limit:ke},m);(0,R.useEffect)(()=>{let e=S.data?.data[0]?.installId;!m||h||e===void 0||(f([]),b({historyBefore:Z(),historyCursor:void 0,installId:e},!0))},[m,h,S.data?.data]);let C=De(e.installId??``,h),w=Oe({beforeReceivedAtMs:y,cursor:e.historyCursor,installId:e.installId??``,limit:Ae},h),T=C.data??S.data?.data.find(({installId:t})=>t===e.installId)??w.data?.data[0],E=_?`installation-history-${e.historyCursor??`first`}`:`all-events-${e.eventsCursor??`first`}`,D=(0,R.useRef)(null),O=le({id:E,getKey:ee});(0,R.useLayoutEffect)(()=>{!_&&!x.isLoading&&D.current&&(D.current.scrollTop=O?.scrollY??0)},[x.isLoading,_,O?.scrollY,E]);let k=()=>{r(``),f([]),u([]),b({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:void 0,searchCursor:void 0})},A=(0,z.jsx)(be,{draftQuery:n,onClear:k,onDraftQueryChange:r,onSubmit:()=>{let e=n.trim();if(!e){k();return}f([]),u([]),b({historyBefore:void 0,historyCursor:void 0,installId:void 0,query:e,searchCursor:void 0})}});return(0,z.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,z.jsx)(ne,{view:`events`}),(0,z.jsx)(`div`,{ref:D,"data-scroll-restoration-id":E,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,z.jsxs)(`div`,{className:`mx-auto flex w-full max-w-7xl flex-col gap-4 sm:gap-6`,children:[_?(0,z.jsx)(I,{className:`shadow-sm`,children:(0,z.jsxs)(P,{className:`flex flex-col gap-3 p-4 sm:p-6`,children:[(0,z.jsxs)(l,{className:`-ml-2 h-11 self-start lg:h-8`,onClick:k,variant:`ghost`,children:[(0,z.jsx)(te,{"aria-hidden":`true`,"data-icon":`inline-start`}),`Back to all events`]}),A]})}):null,_?S.isLoading&&m?(0,z.jsx)(xe,{}):(0,z.jsxs)(`div`,{className:`grid min-h-0 min-w-0 items-stretch gap-4 sm:gap-6 ${m?`lg:min-h-96 lg:grid-cols-[minmax(18rem,20rem)_minmax(0,1fr)]`:`lg:grid-cols-1`}`,children:[m?(0,z.jsx)(ye,{error:S.error,onNext:()=>{S.data?.nextCursor&&(u(Q(c,e.searchCursor)),b({installId:void 0,searchCursor:S.data.nextCursor},!0))},onPrevious:()=>{let e=$(c);u(e.stack),b({installId:void 0,searchCursor:e.cursor},!0)},onSelect:e=>{f([]),b({historyBefore:Z(),historyCursor:void 0,installId:e})},pageNumber:c.length+1,results:S.data,selectedInstallId:e.installId}):null,(0,z.jsx)(_e,{error:w.error??C.error,history:w.data,isLoading:w.isLoading||C.isLoading,onNext:()=>{w.data?.nextCursor&&(f(Q(d,e.historyCursor)),b({historyCursor:w.data.nextCursor},!0))},onPrevious:()=>{let e=$(d);f(e.stack),b({historyCursor:e.cursor},!0)},onRefresh:()=>{f([]),b({historyBefore:Z(),historyCursor:void 0},!0)},pageNumber:d.length+1,selectedEvent:T,selectedInstallId:e.installId})]}):(0,z.jsx)(me,{error:x.error,eventsLocation:{eventsBefore:v,eventsCursor:e.eventsCursor},history:x.data,isFetching:x.isFetching,isLoading:x.isLoading,onNext:()=>{x.data?.nextCursor&&(s(Q(o,e.eventsCursor)),b({eventsCursor:x.data.nextCursor},!0))},onPrevious:()=>{let e=$(o);s(e.stack),b({eventsCursor:e.cursor},!0)},onRefresh:()=>{s([]),b({eventsBefore:Z(),eventsCursor:void 0},!0)},pageNumber:o.length+1,children:A})]})},E)]})}export{je as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Fr as e,Lr as t,Rr as n,Vr as r,cr as i,jr as a,rr as o}from"./createServerFn-DU71xucx.js";function s(e){return e[e.length-1]}function c(e){return typeof e==`function`}function l(e,t){return c(e)?e(t):e}var u=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable;function f(e){for(let t in e)if(u.call(e,t))return!0;return!1}var p=()=>Object.create(null),m=(e,t)=>h(e,t,p);function h(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=y(e)&&y(i);if(!a&&!(_(e)&&_(i)))return i;let o=a?e:g(e);if(!o)return i;let s=a?i:g(i);if(!s)return i;let c=o.length,l=s.length,d=a?Array(l):n(),f=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],p=i[o];if(l===p){d[o]=l,(a?t<c:u.call(e,o))&&f++;continue}if(l===null||p===null||typeof l!=`object`||typeof p!=`object`){d[o]=p;continue}let m=h(l,p,n,r+1);d[o]=m,m===l&&f++}return c===l&&f===c?e:d}function g(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!d.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!d.call(e,t))return!1;r.push(t)}return r}function _(e){if(!v(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!v(n)||!n.hasOwnProperty(`isPrototypeOf`))}function v(e){return Object.prototype.toString.call(e)===`[object Object]`}function y(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!b(e[r],t[r],n))return!1;return!0}if(_(e)&&_(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!b(e[i],t[i],n))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++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!b(e[o],t[o],n)))return!1;return i===a}return!1}function x(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function ee(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 S(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}function te(e){return e.replace(/[\x00-\x1f\x7f]/g,``)}function C(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 te(t)}var ne=[`http:`,`https:`,`mailto:`,`tel:`];function re(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var w={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},T=/[&><\u2028\u2029]/g;function ie(e){return e.replace(T,e=>w[e])}function ae(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=C(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=C(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function oe(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function se(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 E(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var D=4,ce=5;function le(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function ue(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=le(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function de(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=ue(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=A(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=A(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=j(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=j(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=j(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=A(n.fullPath??n.from);e.kind=ce,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=A(n.fullPath??n.from);e.kind=D,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)de(e,t,r,s,i,a,o)}function O(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 k(e){if(e.pathless)for(let t of e.pathless)k(t);if(e.static)for(let t of e.static.values())k(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())k(t);if(e.dynamic?.length){e.dynamic.sort(O);for(let t of e.dynamic)k(t)}if(e.optional?.length){e.optional.sort(O);for(let t of e.optional)k(t)}if(e.wildcard?.length){e.wildcard.sort(O);for(let t of e.wildcard)k(t)}}function A(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function j(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function M(e,t){let n=A(`/`),r=new Uint16Array(6);for(let t of e)de(!1,r,t,1,n,0);k(n),t.masksTree=n,t.flatCache=E(1e3)}function fe(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=I(e,t.masksTree);return t.flatCache.set(e,r),r}function pe(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=A(`/`),de(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),I(r,o,n)}function N(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=I(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=R(a.route)),t.matchCache.set(r,a),a}function P(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function F(t,n=!1,r){let i=A(t.fullPath),a=new Uint16Array(6),o={},s={},c=0;return de(n,a,t,1,i,0,t=>{if(r?.(t,c),t.id in o&&e(),o[t.id]=t,c!==0&&t.path){let e=P(t.fullPath);(!s[e]||t.fullPath.endsWith(`/`))&&(s[e]=t)}c++}),k(i),{processedTree:{segmentTree:i,singleCache:E(1e3),matchCache:E(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:s}}function I(e,t,n=!1){let r=e.split(`/`),i=he(e,r,t,n);if(!i)return null;let[a]=L(e,r,i);return{route:i.node.route,rawParams:a}}function L(e,t,n){let r=me(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===D)break;if(u.kind===ce){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function R(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function me(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function he(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!s(t),a=i&&e!==`/`,o=t.length-+!!i,c=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],l=null,u=null;for(;c.length;){let n=c.pop(),{node:i,index:s,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!V(u,n))continue;if(i.parse){if(!B(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==D&&V(l,n)&&(l=n);let v=s===o;if(v&&(i.route&&(!a||i.kind===D||i.kind===2)&&V(u,n)&&(u=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[s],b;if(v&&i.index){let n={node:i.index,index:s,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(B(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&ge(p,o))return n;V(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&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(s).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}c.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];c.push({node:r,index:s,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}c.push({node:n,index:s+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+z(o,s),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)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?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}c.push({node:t,index:s+1,skipped:d,depth:f+1,statics:p,dynamics:m+z(o,s),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&c.push({node:e,index:s+1,skipped:d,depth:f+1,statics:p+z(o,s),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&c.push({node:e,index:s+1,skipped:d,depth:f+1,statics:p+z(o,s),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];c.push({node:n,index:s,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(u)return u;if(r&&l){let n=l.index;for(let e=0;e<l.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return l.rawParams??=Object.create(null),l.rawParams[`**`]=decodeURIComponent(r),l}return null}function z(e,t){return 2**(e-t-1)}function ge(e,t){return e===2**(t-1)-1}function B(e,t,n){let r,i;try{[r,i]=L(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 V(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===D)>(e.node.kind===D)||t.node.kind===D==(e.node.kind===D)&&t.depth>e.depth))):!0}function H(e){return U(e.filter(e=>e!==void 0).join(`/`))}function U(e){return e.replace(/\/{2,}/g,`/`)}function W(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function G(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function _e(e){return G(W(e))}function K(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function ve(e,t,n){return K(e,n)===K(t,n)}function ye({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let c;if(a)c=e.split(`/`);else if(i)c=t.split(`/`);else{for(c=e.split(`/`);c.length>1&&s(c)===``;)c.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&c.push(r):c=[r]:r===`..`?c.pop():r===`.`||c.push(r)}}c.length>1&&(s(c)===``?n===`never`&&c.pop():n===`always`&&c.push(``));let l=U(c.join(`/`))||`/`;return o&&r&&r.set(o,l),l}function be(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function xe(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>Ce(e,n)).join(`/`):Ce(r,n):r}function Se({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=ue(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=xe(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=xe(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=xe(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function Ce(e,t){let n=encodeURIComponent(e);return t?.(n)??n}var q=`__root__`,we=`Error preloading route! ☝️`,Te=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=t=>{this.originalIndex=t.originalIndex;let n=this.options,r=!n?.path&&!n?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=q:this.parentRoute||e();let i=r?q:n?.path;i&&i!==`/`&&(i=W(i));let a=n?.id||i,o=r?q:H([this.parentRoute.id===`__root__`?``:this.parentRoute.id,a]);i===`__root__`&&(i=`/`),o!==`__root__`&&(o=H([`/`,o]));let s=o===`__root__`?`/`:H([this.parentRoute.fullPath,i]);this._path=i,this._id=o,this._fullPath=s,this._to=G(s)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>a({from:this.fullPath,...e}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Ee=class extends Te{constructor(e){super(e)}},J=r(n(),1),De=J.use,Oe=typeof window<`u`?J.useLayoutEffect:J.useEffect;function ke(e){let t=J.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Ae(e,t,n={},r={}){J.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function je(e){let t=J.useRef(null);return J.useImperativeHandle(e,()=>t.current,[]),t}var Y=i();function Me({children:e,fallback:t=null}){return Ne()?(0,Y.jsx)(J.Fragment,{children:e}):(0,Y.jsx)(J.Fragment,{children:t})}function Ne(){return J.useSyncExternalStore(Pe,()=>!0,()=>!1)}function Pe(){return()=>{}}var Fe=J.createContext(null);function X(e){return J.useContext(Fe)}var Ie=J.createContext(void 0),Le=J.createContext(void 0),Re=o();function ze(e,t){return e===t}function Be(e,t,n=ze){let r=(0,J.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,J.useCallback)(()=>e?.get(),[e]);return(0,Re.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var Ve={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function Z(t){let n=X(),r=J.useContext(t.from?Le:Ie),i=t.from??r,a=i?t.from?n.stores.getRouteMatchStore(i):n.stores.matchStores.get(i):void 0,o=J.useRef(void 0);return Be(a??Ve,r=>{if((t.shouldThrow??!0)&&!r&&e(),r===void 0)return;let i=t.select?t.select(r):r;if(t.structuralSharing??n.options.defaultStructuralSharing){let e=h(o.current,i);return o.current=e,e}return i})}function He(e){return Z({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Ue(e){let{select:t,...n}=e;return Z({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function We(e){return Z({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Ge(e){return Z({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Ke(e){let t=X();return J.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function qe(e){return Z({...e,select:t=>e.select?e.select(t.context):t.context})}var Je=r(t(),1);function Ye(e,t){let n=X(),r=je(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:u,preloadIntentProximity:d,hashScrollIntoView:f,replace:p,startTransition:m,resetScroll:h,viewTransition:g,children:_,target:v,disabled:y,style:x,className:ee,onClick:S,onBlur:te,onFocus:C,onMouseEnter:ne,onMouseLeave:w,onTouchStart:T,ignoreBlocker:ie,params:ae,search:oe,hash:se,state:E,mask:D,reloadDocument:ce,unsafeRelative:le,from:ue,_fromLocation:de,...O}=e,k=Ne(),A=J.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),j=Be(n.stores.location,e=>e,(e,t)=>e.href===t.href),M=J.useMemo(()=>{let e={_fromLocation:j,...A};return n.buildLocation(e)},[n,j,A]),fe=M.maskedLocation?M.maskedLocation.publicHref:M.publicHref,pe=M.maskedLocation?M.maskedLocation.external:M.external,N=J.useMemo(()=>nt(fe,pe,n.history,y),[y,pe,fe,n.history]),P=J.useMemo(()=>{if(N?.external)return re(N.href,n.protocolAllowlist)?void 0:N.href;if(!rt(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),re(s,n.protocolAllowlist)?void 0:s}catch{}},[s,N,n.protocolAllowlist]),F=J.useMemo(()=>{if(P)return!1;if(o?.exact){if(!ve(j.pathname,M.pathname,n.basepath))return!1}else{let e=K(j.pathname,n.basepath),t=K(M.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!b(j.search,M.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:o?.includeHash?k&&j.hash===M.hash:!0},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,j,P,k,M.hash,M.pathname,M.search,n.basepath]),I=F?l(i,{})??Ze:Xe,L=F?Xe:l(a,{})??Xe,R=[ee,I.className,L.className].filter(Boolean).join(` `),me=(x||I.style||L.style)&&{...x,...I.style,...L.style},[he,z]=J.useState(!1),ge=J.useRef(!1),B=e.reloadDocument||P?!1:c??n.options.defaultPreload,V=u??n.options.defaultPreloadDelay??0,H=J.useCallback(()=>{n.preloadRoute({...A,_builtLocation:M}).catch(e=>{console.warn(e),console.warn(we)})},[n,A,M]);Ae(r,J.useCallback(e=>{e?.isIntersecting&&H()},[H]),tt,{disabled:!!y||B!==`viewport`}),J.useEffect(()=>{ge.current||!y&&B===`render`&&(H(),ge.current=!0)},[y,H,B]);let U=e=>{let t=e.currentTarget.getAttribute(`target`),r=v===void 0?t:v;if(!y&&!at(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Je.flushSync)(()=>{z(!0)});let t=n.subscribe(`onResolved`,()=>{t(),z(!1)});n.navigate({...A,replace:p,resetScroll:h,hashScrollIntoView:f,startTransition:m,viewTransition:g,ignoreBlocker:ie})}};if(P)return{...O,ref:r,href:P,..._&&{children:_},...v&&{target:v},...y&&{disabled:y},...x&&{style:x},...ee&&{className:ee},...S&&{onClick:S},...te&&{onBlur:te},...C&&{onFocus:C},...ne&&{onMouseEnter:ne},...w&&{onMouseLeave:w},...T&&{onTouchStart:T}};let W=e=>{if(y||B!==`intent`)return;if(!V){H();return}let t=e.currentTarget;if(Q.has(t))return;let n=setTimeout(()=>{Q.delete(t),H()},V);Q.set(t,n)},G=e=>{y||B!==`intent`||H()},_e=e=>{if(y||!B||!V)return;let t=e.currentTarget,n=Q.get(t);n&&(clearTimeout(n),Q.delete(t))};return{...O,...I,...L,href:N?.href,ref:r,onClick:$([S,U]),onBlur:$([te,_e]),onFocus:$([C,W]),onMouseEnter:$([ne,W]),onMouseLeave:$([w,_e]),onTouchStart:$([T,G]),disabled:!!y,target:v,...me&&{style:me},...R&&{className:R},...y&&Qe,...F&&$e,...k&&he&&et}}var Xe={},Ze={className:`active`},Qe={role:`link`,"aria-disabled":!0},$e={"data-status":`active`,"aria-current":`page`},et={"data-transitioning":`transitioning`},Q=new WeakMap,tt={rootMargin:`100px`},$=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function nt(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function rt(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var it=J.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=Ye(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return J.createElement(`a`,t,o)}return J.createElement(n,a,o)});function at(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var ot=class extends Te{constructor(e){super(e),this.useMatch=e=>Z({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>qe({...e,from:this.id}),this.useSearch=e=>Ge({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>We({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ue({...e,from:this.id}),this.useLoaderData=e=>He({...e,from:this.id}),this.useNavigate=()=>Ke({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(it,{ref:t,from:this.fullPath,...e}))}};function st(e){return new ot(e)}function ct(){return e=>ut(e)}var lt=class extends Ee{constructor(e){super(e),this.useMatch=e=>Z({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>qe({...e,from:this.id}),this.useSearch=e=>Ge({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>We({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>Ue({...e,from:this.id}),this.useLoaderData=e=>He({...e,from:this.id}),this.useNavigate=()=>Ke({from:this.fullPath}),this.Link=J.forwardRef((e,t)=>(0,Y.jsx)(it,{ref:t,from:this.fullPath,...e}))}};function ut(e){return new lt(e)}function dt(e){return new ft(e,{silent:!0}).createRoute}var ft=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=st(e);return t.isRoot=!1,t},this.silent=t?.silent}};function pt(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,ee(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(De)De(o());else throw o();return J.createElement(r,e)};return s.preload=o,s}export{se as A,s as B,fe as C,F as D,M as E,ie as F,h as H,l as I,f as L,ae as M,b as N,E as O,oe as P,re as R,R as S,pe as T,m as V,Se as _,Be as a,_e as b,Fe as c,De as d,Oe as f,be as g,U as h,it as i,x as j,ne as k,Me as l,q as m,dt as n,Ie as o,ke as p,ct as r,X as s,pt as t,Ne as u,H as v,N as w,G as x,ye as y,S as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{nr as e}from"./createServerFn-DU71xucx.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),n=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 as n,n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{nr as e}from"./createServerFn-DU71xucx.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=`modulepreload`,t=function(e){return`/`+e},n={},r=function(r,i,a){let o=Promise.resolve();if(i&&i.length>0){let r=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}o=l(i.map(i=>{if(i=t(i,a),i in n)return;n[i]=!0;let o=i.endsWith(`.css`),s=o?`[rel="stylesheet"]`:``;if(a)for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.href===i&&(!o||t.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;let l=document.createElement(`link`);if(l.rel=o?`stylesheet`:e,o||(l.as=`script`),l.crossOrigin=``,l.href=i,c&&l.setAttribute(`nonce`,c),document.head.appendChild(l),o)return new Promise((e,t)=>{l.addEventListener(`load`,e),l.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${i}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(e=>{for(let t of e||[])t.status===`rejected`&&s(t.reason);return r().catch(s)})};export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{nr as e}from"./createServerFn-DU71xucx.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-O2r2UUN8.js","assets/createServerFn-DU71xucx.js","assets/dialog-IVMkBRCq.js","assets/useOpenInteractionType-D5kduCTD.js","assets/table-BuWQgxJJ.js","assets/valueToPercent-BAtcbSLk.js","assets/field-B3CYDpjg.js","assets/list-Dqt53fWZ.js","assets/api-CdUyUqzR.js","assets/useMutation-CSV9NCUl.js","assets/lazyRouteComponent-BapzjYnb.js","assets/loader-circle-CUKfUqow.js","assets/HashValueDisplay-BpTc3Oyg.js","assets/dist-BR4GzeEu.js","assets/card-CYHs5FZv.js","assets/input-group-nLZylhWF.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{nr as e}from"./createServerFn-DU71xucx.js";import{n as t,t as n}from"./lazyRouteComponent-BapzjYnb.js";import{t as r}from"./preload-helper-ClBMtM1g.js";var i=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`}]]),a=e=>typeof e==`string`&&e.trim().length>0?e.trim():void 0;function o(e){let t=typeof e.page==`number`?e.page:typeof e.page==`string`?Number(e.page):void 0,n=a(e.beforeReleaseId),r=n?void 0:a(e.afterReleaseId),i=e.enabled===!0||e.enabled===`true`?!0:e.enabled===!1||e.enabled===`false`?!1:void 0;return{afterReleaseId:r,beforeReleaseId:n,bundleId:a(e.bundleId),channelId:a(e.channelId),enabled:i,page:t!==void 0&&Number.isInteger(t)&&t>1?t:void 0,platform:e.platform===`ios`||e.platform===`android`?e.platform:void 0,releaseId:a(e.releaseId),targetAppVersion:a(e.targetAppVersion)}}function s(e,t){return{...e,...t,afterReleaseId:void 0,beforeReleaseId:void 0,page:void 0,releaseId:void 0}}var c=t(`/`)({component:n(()=>r(()=>import(`./routes-O2r2UUN8.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15])),`component`),validateSearch:o});export{s as n,i as r,c as t};
|