@hot-updater/console 1.2.0-rc.5 → 1.2.0-rc.51

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.
Files changed (404) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/-native-builds-search-6aptbS4G.js +1 -0
  3. package/.output/public/assets/BundleIdDisplay-CtbmyR7f.js +1 -0
  4. package/.output/public/assets/ChannelPicker-DPR-7lqV.js +1 -0
  5. package/.output/public/assets/CompositeItem-UhIlCBg4.js +1 -0
  6. package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
  7. package/.output/public/assets/EventDetails-LQ8ejbsd.js +1 -0
  8. package/.output/public/assets/FoldedRows-ClHLI-NM.js +1 -0
  9. package/.output/public/assets/HashValueDisplay-DTSMSH9O.js +1 -0
  10. package/.output/public/assets/InsightsPageHeader-ypKKV3rL.js +1 -0
  11. package/.output/public/assets/IosInstall-1a_GRSNg.js +1 -0
  12. package/.output/public/assets/NativeBuildsNav-ChBahvFN.js +1 -0
  13. package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-BEpesHEm.js} +1 -1
  14. package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-D4KPXCHL.js} +1 -1
  15. package/.output/public/assets/QrCode-BFSCkbPj.js +1 -0
  16. package/.output/public/assets/RelativeTime-BQErgQRj.js +1 -0
  17. package/.output/public/assets/RolloutPercentageBadge-DF4EeZIJ.js +1 -0
  18. package/.output/public/assets/RowReason-BvIxbpPP.js +1 -0
  19. package/.output/public/assets/SandboxBadge-DPmJn40v.js +1 -0
  20. package/.output/public/assets/TargetDisplay-D0dVdFCk.js +1 -0
  21. package/.output/public/assets/alert-dialog-DGPqJBCk.js +1 -0
  22. package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
  23. package/.output/public/assets/api-keys-ztwXoKcj.js +1 -0
  24. package/.output/public/assets/api-znPyglTl.js +1 -0
  25. package/.output/public/assets/arrow-left-68S4uy4I.js +1 -0
  26. package/.output/public/assets/arrow-right-DjRwIoF1.js +1 -0
  27. package/.output/public/assets/arrow-up-right-C_1ALUCD.js +1 -0
  28. package/.output/public/assets/badge-zMibJGR5.js +1 -0
  29. package/.output/public/assets/card-BAs80yql.js +1 -0
  30. package/.output/public/assets/check-C3VCvMOV.js +1 -0
  31. package/.output/public/assets/chevron-down-BkoJHAll.js +1 -0
  32. package/.output/public/assets/chevron-right-RAuPv9r1.js +1 -0
  33. package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-DvYMC5yF.js} +1 -1
  34. package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-D0JWZ1KF.js} +1 -1
  35. package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-CtbGqKyr.js} +1 -1
  36. package/.output/public/assets/{uuidv7-zXMtwR9Q.js → constants-yj-e3ahf.js} +1 -1
  37. package/.output/public/assets/{copy-DsuLj3oj.js → copy-BjVLMKbo.js} +1 -1
  38. package/.output/public/assets/dialog-BvZDZzdQ.js +1 -0
  39. package/.output/public/assets/dist-BEmib-ZM.js +1 -0
  40. package/.output/public/assets/{download-Cf24LBde.js → download-CgpaZb23.js} +1 -1
  41. package/.output/public/assets/empty-C5GqArX9.js +1 -0
  42. package/.output/public/assets/field-DInLQ5oV.js +1 -0
  43. package/.output/public/assets/git-branch-BGatQV8Q.js +1 -0
  44. package/.output/public/assets/history-Ci4dhphE.js +1 -0
  45. package/.output/public/assets/index-B8BpJ73Y.js +10 -0
  46. package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
  47. package/.output/public/assets/insights-BrdBpqda.js +42 -0
  48. package/.output/public/assets/insights-DsmTCDix.js +2 -0
  49. package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
  50. package/.output/public/assets/insights-api-C4Dmm34n.js +1 -0
  51. package/.output/public/assets/insights-search-B4NkHGeC.js +1 -0
  52. package/.output/public/assets/insights-usage-rpc-Dw5_pmRH.js +1 -0
  53. package/.output/public/assets/insights_.distribution-BHmK7ufZ.js +1 -0
  54. package/.output/public/assets/insights_.distribution-BNNw0whH.js +2 -0
  55. package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
  56. package/.output/public/assets/installations-CcPrSZwW.js +1 -0
  57. package/.output/public/assets/installations-Cjx0648C.js +1 -0
  58. package/.output/public/assets/installations-m1v6oE-2.js +2 -0
  59. package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-BkeLvA1m.js} +1 -1
  60. package/.output/public/assets/{link-DTEyW70e.js → link-CRMwpc7-.js} +2 -2
  61. package/.output/public/assets/{list--NIee1FZ.js → list-DQ9YBIDW.js} +1 -1
  62. package/.output/public/assets/loader-circle-8lunBReu.js +1 -0
  63. package/.output/public/assets/native-builds-B6t0ZxKP.js +1 -0
  64. package/.output/public/assets/native-builds-CgPSpNsA.js +2 -0
  65. package/.output/public/assets/native-builds-TF9BhYrQ.js +1 -0
  66. package/.output/public/assets/native-builds_._buildId-2rPrtz9-.js +2 -0
  67. package/.output/public/assets/native-builds_._buildId-BqUOY1Az.js +1 -0
  68. package/.output/public/assets/native-builds_.devices-B9kLHngv.js +2 -0
  69. package/.output/public/assets/native-builds_.devices-COFYZcaA.js +1 -0
  70. package/.output/public/assets/plus-DztQIXYL.js +1 -0
  71. package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-RUNbaMyO.js} +1 -1
  72. package/.output/public/assets/remote-config-BCQHNGRY.js +1 -0
  73. package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
  74. package/.output/public/assets/remote-config-CDlB7JK8.js +6 -0
  75. package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
  76. package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-BFQcpUTO.js} +1 -1
  77. package/.output/public/assets/routes-DMooqgLf.js +1 -0
  78. package/.output/public/assets/routes-Z2IGj8MK.js +2 -0
  79. package/.output/public/assets/search-BfEqtE64.js +1 -0
  80. package/.output/public/assets/select-iSWTEY9t.js +1 -0
  81. package/.output/public/assets/sidebar-BmzmPGuv.js +3 -0
  82. package/.output/public/assets/smartphone-Dy13ukaU.js +1 -0
  83. package/.output/public/assets/styles-D5kpHu-Z.css +2 -0
  84. package/.output/public/assets/switch-ByNYRVTN.js +1 -0
  85. package/.output/public/assets/table-DbZPkzdz.js +1 -0
  86. package/.output/public/assets/tabs-Byfy8Qls.js +1 -0
  87. package/.output/public/assets/trash-2-DI0biNI-.js +1 -0
  88. package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CxhBbgJw.js} +1 -1
  89. package/.output/public/assets/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
  90. package/.output/public/assets/useCompositeListItem-BEDqZ9Ni.js +1 -0
  91. package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-D7IuoOLE.js} +1 -1
  92. package/.output/public/assets/valueToPercent-Db73Kirz.js +1 -0
  93. package/.output/server/{__23tanstack-start-server-fn-resolver-BsXXRtkN.mjs → __23tanstack-start-server-fn-resolver-pdhJfnex.mjs} +94 -46
  94. package/.output/server/_chunks/ssr-renderer.mjs +2 -2
  95. package/.output/server/_libs/@base-ui/react+[...].mjs +4436 -3131
  96. package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
  97. package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
  98. package/.output/server/_libs/_.mjs +2 -0
  99. package/.output/server/_libs/lucide-react.mjs +50 -28
  100. package/.output/server/_libs/next-themes.mjs +1 -1
  101. package/.output/server/_libs/react-redux+[...].mjs +1 -1
  102. package/.output/server/_libs/recharts+[...].mjs +1 -1
  103. package/.output/server/_libs/sonner.mjs +1 -1
  104. package/.output/server/_libs/tanstack__react-query.mjs +1 -1
  105. package/.output/server/_ssr/-native-builds-search-D10dMZzL.mjs +62 -0
  106. package/.output/server/_ssr/BundleIdDisplay-Bbf_lM0q.mjs +26 -0
  107. package/.output/server/_ssr/ChannelPicker-D6dQe9hV.mjs +251 -0
  108. package/.output/server/_ssr/{ConsoleFeatureUnavailable-CGHVL37b.mjs → ConsoleFeatureUnavailable-cLOJizHM.mjs} +8 -8
  109. package/.output/server/_ssr/{EventDetails-DdJyaBZ5.mjs → EventDetails-Bf9A0sIH.mjs} +9 -9
  110. package/.output/server/_ssr/FoldedRows-CBXPkthB.mjs +152 -0
  111. package/.output/server/_ssr/HashValueDisplay-CTRuGnTF.mjs +65 -0
  112. package/.output/server/_ssr/{InsightsPageHeader-KtHEf8Q0.mjs → InsightsPageHeader-CZYqpzbC.mjs} +13 -13
  113. package/.output/server/_ssr/IosInstall-Dnv68fhL.mjs +767 -0
  114. package/.output/server/_ssr/NativeBuildsNav-Dg43O2Cd.mjs +39 -0
  115. package/.output/server/_ssr/{NotFoundPage-DZB6K98c.mjs → NotFoundPage-C0hUVtGq.mjs} +3 -3
  116. package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
  117. package/.output/server/_ssr/QrCode-BbK966IU.mjs +50 -0
  118. package/.output/server/_ssr/RelativeTime-CdBbi7fL.mjs +242 -0
  119. package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-CaK9SkbN.mjs} +20 -4
  120. package/.output/server/_ssr/RowReason-Cg035uIk.mjs +59 -0
  121. package/.output/server/_ssr/SandboxBadge-Zta6e__x.mjs +85 -0
  122. package/.output/server/_ssr/TargetDisplay-DGqswOee.mjs +105 -0
  123. package/.output/server/_ssr/{alert-dialog-CDr-Nsoo.mjs → alert-dialog-DFz9lm_Y.mjs} +4 -4
  124. package/.output/server/_ssr/{api-DGWwi1WN.mjs → api-B2LCh6pv.mjs} +186 -39
  125. package/.output/server/_ssr/{api-keys-BBb3xSox.mjs → api-keys-BbtiHE85.mjs} +14 -11
  126. package/.output/server/_ssr/{api-keys-e_eDCNr2.mjs → api-keys-D3oOFnP9.mjs} +2 -2
  127. package/.output/server/_ssr/{api-keys-rpc-BXiXUAm9.mjs → api-keys-rpc-CJIR67Ch.mjs} +4 -4
  128. package/.output/server/_ssr/{api-rpc-CLreF5Vr.mjs → api-rpc-Bf7S-MaH.mjs} +83 -35
  129. package/.output/server/_ssr/{auth-rpc-Bbf80tQK.mjs → auth-rpc-Dp-DCqh6.mjs} +5 -5
  130. package/.output/server/_ssr/{auth.server-DGwe3eds.mjs → auth.server-Cc0ZRXjk.mjs} +1876 -358
  131. package/.output/server/_ssr/{badge-BXk5c2yv.mjs → badge-YEmoI1eN.mjs} +4 -45
  132. package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
  133. package/.output/server/_ssr/card-D0a_6Dhh.mjs +49 -0
  134. package/.output/server/_ssr/{config.server-BIBSZpZE.mjs → config.server-CZRoGrFp.mjs} +4 -4
  135. package/.output/server/_ssr/{console-access-Cwha8dww.mjs → console-access-OPT4g-IS.mjs} +2 -2
  136. package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-DTYyXrWO.mjs} +1 -1
  137. package/.output/server/_ssr/{console-features-api-Bk24XYA5.mjs → console-features-api-tjmlaM_N.mjs} +4 -4
  138. package/.output/server/_ssr/{console-features-rpc-5WFiUFxb.mjs → console-features-rpc-SlXJxyZV.mjs} +4 -4
  139. package/.output/server/_ssr/constants-D-2jpCiJ.mjs +11 -0
  140. package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
  141. package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
  142. package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
  143. package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-D6bc51Xq.mjs} +5 -4
  144. package/.output/server/_ssr/deviceProfileToken-xzDLfE0T.mjs +98 -0
  145. package/.output/server/_ssr/{dialog-BG-juN_g.mjs → dialog-ChHbf-yX.mjs} +5 -5
  146. package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
  147. package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
  148. package/.output/server/_ssr/{empty-DF3o-H8c.mjs → empty-jogqtpGm.mjs} +3 -3
  149. package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
  150. package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-BVufgM3l.mjs} +3 -3
  151. package/.output/server/_ssr/{field-5zvNofJH.mjs → field-Df_Q9TWZ.mjs} +3 -3
  152. package/.output/server/_ssr/foldedPage-CUjJqtlF.mjs +176 -0
  153. package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-DDqsd1pL.mjs} +2 -2
  154. package/.output/server/_ssr/{input-group-rcPxMqYq.mjs → input-group-CVf7oJb7.mjs} +3 -3
  155. package/.output/server/_ssr/{insights-Din0R0k-.mjs → insights-CWe8WEnp.mjs} +93 -215
  156. package/.output/server/_ssr/{insights-BwEiSUUy.mjs → insights-DFSywrbh.mjs} +5 -5
  157. package/.output/server/_ssr/{insights-BDa6T_cj.mjs → insights-DIRlQAyF.mjs} +2 -2
  158. package/.output/server/_ssr/{insights-api-BESfPrTq.mjs → insights-api-C9rxV0Tn.mjs} +5 -5
  159. package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
  160. package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
  161. package/.output/server/_ssr/{insights-failures-rpc-BD3vjHse.mjs → insights-failures-rpc-wIScA1Qn.mjs} +11 -11
  162. package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
  163. package/.output/server/_ssr/{insights-recovery-rpc-sVwplV7s.mjs → insights-recovery-rpc-BVt-dUJZ.mjs} +7 -7
  164. package/.output/server/_ssr/{insights-rpc-BdtBheBi.mjs → insights-rpc-BDQqwXjX.mjs} +4 -4
  165. package/.output/server/_ssr/{insights-search-BAaycSRp.mjs → insights-search-B56U9By9.mjs} +6 -8
  166. package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
  167. package/.output/server/_ssr/{insights-usage-rpc-Bo5p-cuB.mjs → insights-usage-rpc-C084r9Yl.mjs} +5 -5
  168. package/.output/server/_ssr/{insights-usage-rpc-DCkLNAlG.mjs → insights-usage-rpc-D6QC7xMU.mjs} +7 -7
  169. package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
  170. package/.output/server/_ssr/{insights_.distribution-5sgau7rB.mjs → insights_.distribution-BO1VAcAm.mjs} +5 -5
  171. package/.output/server/_ssr/{insights_.distribution-D4QQxZmG.mjs → insights_.distribution-CoTlEOe8.mjs} +16 -15
  172. package/.output/server/_ssr/{insights_.distribution-DoO2NDvS.mjs → insights_.distribution-DP1M7WJo.mjs} +2 -2
  173. package/.output/server/_ssr/{installations-C4MwFvp6.mjs → installations-BczGuyup.mjs} +13 -13
  174. package/.output/server/_ssr/{installations-CZZsFoXb.mjs → installations-CHXPyqGZ.mjs} +4 -4
  175. package/.output/server/_ssr/{installations-W6DXZ5Tp.mjs → installations-CY86CKgz.mjs} +2 -2
  176. package/.output/server/_ssr/ios-devices-rpc-B-9HHSKk.mjs +149 -0
  177. package/.output/server/_ssr/iosDeviceCookie-CZArbhzA.mjs +155 -0
  178. package/.output/server/_ssr/iosDeviceProfile-CxeXYxc-.mjs +176 -0
  179. package/.output/server/_ssr/iosDevices-Ckjp_S09.mjs +132 -0
  180. package/.output/server/_ssr/listReleases-QF91GLE7.mjs +94 -0
  181. package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
  182. package/.output/server/_ssr/native-artifact-0tXDLTsd.mjs +1517 -0
  183. package/.output/server/_ssr/native-builds-C2xGyB-t.mjs +273 -0
  184. package/.output/server/_ssr/native-builds-CKoFuBrT.mjs +698 -0
  185. package/.output/server/_ssr/{native-builds-BhBltXq2.mjs → native-builds-DGckAE3j.mjs} +3 -3
  186. package/.output/server/_ssr/native-builds_._buildId-BXfvqKmr.mjs +1204 -0
  187. package/.output/server/_ssr/{native-builds_._buildId-B5QgMg7D.mjs → native-builds_._buildId-EqbJ7R4A.mjs} +3 -3
  188. package/.output/server/_ssr/native-builds_.devices-BJ75om8d.mjs +10 -0
  189. package/.output/server/_ssr/native-builds_.devices-X6JpinwG.mjs +858 -0
  190. package/.output/server/_ssr/nativeBuildDownloadLink-BAfCV_k_.mjs +96 -0
  191. package/.output/server/_ssr/nativeBuildInstall-D2rK0m4j.mjs +256 -0
  192. package/.output/server/_ssr/nativeBuilds-B3LcuLs4.mjs +306 -0
  193. package/.output/server/_ssr/plistText-BORUpyEb.mjs +15 -0
  194. package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-D9CCkDjn.mjs} +7 -6
  195. package/.output/server/_ssr/publicConsoleBase-C3sNbafy.mjs +15 -0
  196. package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
  197. package/.output/server/_ssr/{release-adoption-rpc-T00z1y9o.mjs → release-adoption-rpc-xKxB0Ir0.mjs} +9 -9
  198. package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-BNp2LKR5.mjs} +5 -4
  199. package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CLDa8DuR.mjs} +23 -11
  200. package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
  201. package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
  202. package/.output/server/_ssr/{remote-config-bTCPTVky.mjs → remote-config-ByjC_BCV.mjs} +23 -22
  203. package/.output/server/_ssr/{remote-config-Wjia3haX.mjs → remote-config-DmEXPobC.mjs} +3 -3
  204. package/.output/server/_ssr/{remote-config-rpc-7Zvra2dm.mjs → remote-config-rpc-BNPLt44i.mjs} +5 -5
  205. package/.output/server/_ssr/{remote-config-D6YMPi4J.mjs → remote-config-w3s5hFj9.mjs} +2 -2
  206. package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
  207. package/.output/server/_ssr/{router-CLK13IPD.mjs → router-C8NZ0bVd.mjs} +136 -63
  208. package/.output/server/_ssr/{routes-h_nOUmOr.mjs → routes-B8Gmx46E.mjs} +49 -17
  209. package/.output/server/_ssr/{routes-CbdYptnV.mjs → routes-DvpKW5gf.mjs} +495 -476
  210. package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BUbb281Z.mjs} +4 -4
  211. package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-CaIuQCXb.mjs} +1 -1
  212. package/.output/server/_ssr/{schema-migration-rpc-yB9ioGZE.mjs → schema-migration-rpc-DlahGhrf.mjs} +5 -5
  213. package/.output/server/_ssr/{select-BdzEzz-x.mjs → select-Csnyblf2.mjs} +12 -10
  214. package/.output/server/_ssr/{server-CddZkHk2.mjs → server-Yr7QLPLj.mjs} +7 -7
  215. package/.output/server/_ssr/{sidebar-DabmjV5E.mjs → sidebar-bKoOUlMN.mjs} +17 -10
  216. package/.output/server/_ssr/ssr.mjs +1 -1
  217. package/.output/server/_ssr/{start-BvDsQehg.mjs → start-BSkL2B6C.mjs} +2 -2
  218. package/.output/server/_ssr/{switch-84dzb1yG.mjs → switch-C-HJ8oZV.mjs} +4 -4
  219. package/.output/server/_ssr/{table-DP978C4F.mjs → table-DSB_9Amh.mjs} +2 -2
  220. package/.output/server/_ssr/tabs-DRTBxZTO.mjs +45 -0
  221. package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DcCONz23.mjs} +8 -5
  222. package/.output/server/_ssr/{dist-TEpM_UAD.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
  223. package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
  224. package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
  225. package/.output/server/_tanstack-start-manifest_v-MJAIGQWT.mjs +229 -0
  226. package/.output/server/index.mjs +493 -381
  227. package/lib/index.d.mts +9 -0
  228. package/package.json +7 -30
  229. package/src/components/AppSidebar.tsx +11 -2
  230. package/src/components/BundleIdDisplay.tsx +30 -3
  231. package/src/components/ChannelBadge.tsx +9 -9
  232. package/src/components/ChannelPicker.tsx +227 -0
  233. package/src/components/DataTable.tsx +363 -0
  234. package/src/components/FoldedRows.tsx +219 -0
  235. package/src/components/HashValueDisplay.tsx +27 -8
  236. package/src/components/PlatformIcon.tsx +10 -0
  237. package/src/components/RelativeTime.tsx +31 -0
  238. package/src/components/RowReason.tsx +63 -0
  239. package/src/components/TargetDisplay.tsx +95 -0
  240. package/src/components/ThemeProvider.tsx +11 -2
  241. package/src/components/features/api-keys/ApiKeysPage.tsx +5 -3
  242. package/src/components/features/bundles/BundleMetadata.tsx +22 -1
  243. package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
  244. package/src/components/features/channels/ChannelManagementDialog.tsx +10 -11
  245. package/src/components/features/insights/AppUsage.tsx +3 -5
  246. package/src/components/features/insights/ComparedBundlesChart.tsx +1 -0
  247. package/src/components/features/insights/FailureReports.tsx +3 -2
  248. package/src/components/features/insights/InsightsControls.tsx +38 -73
  249. package/src/components/features/insights/InsightsOverview.tsx +10 -2
  250. package/src/components/features/insights/InsightsPageHeader.tsx +10 -15
  251. package/src/components/features/insights/ReleaseActivity.tsx +6 -2
  252. package/src/components/features/insights/ReleaseCombobox.tsx +8 -3
  253. package/src/components/features/insights/RollbackButton.tsx +1 -1
  254. package/src/components/features/insights/UpdateFailures.tsx +36 -10
  255. package/src/components/features/native-builds/BuiltInBundleCard.tsx +125 -63
  256. package/src/components/features/native-builds/CommitLink.tsx +3 -2
  257. package/src/components/features/native-builds/ImportBuild.tsx +1 -1
  258. package/src/components/features/native-builds/InstallCard.tsx +378 -93
  259. package/src/components/features/native-builds/IosDevicesPage.tsx +1145 -0
  260. package/src/components/features/native-builds/IosInstall.tsx +732 -0
  261. package/src/components/features/native-builds/IpaDevicesCard.tsx +123 -0
  262. package/src/components/features/native-builds/NativeBuildDetailPage.tsx +45 -9
  263. package/src/components/features/native-builds/NativeBuildsNav.tsx +45 -0
  264. package/src/components/features/native-builds/NativeBuildsPage.tsx +94 -108
  265. package/src/components/features/native-builds/NativeBuildsTable.tsx +652 -323
  266. package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
  267. package/src/components/features/native-builds/PatchesCard.tsx +28 -19
  268. package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +5 -5
  269. package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
  270. package/src/components/features/native-builds/ServedNowCard.tsx +39 -4
  271. package/src/components/features/native-builds/ShortHash.tsx +6 -3
  272. package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
  273. package/src/components/features/native-builds/playTracks.ts +7 -0
  274. package/src/components/features/releases/ReleaseEditorSheet.tsx +14 -9
  275. package/src/components/features/remote-config/PublishDialog.tsx +4 -1
  276. package/src/components/features/remote-config/VersionsCard.tsx +5 -2
  277. package/src/components/ui/alert-dialog.tsx +2 -2
  278. package/src/components/ui/badge.tsx +2 -0
  279. package/src/components/ui/button.tsx +11 -2
  280. package/src/components/ui/combobox.tsx +2 -2
  281. package/src/components/ui/dialog.tsx +3 -3
  282. package/src/components/ui/input.tsx +1 -1
  283. package/src/components/ui/select.tsx +15 -7
  284. package/src/components/ui/sheet.tsx +1 -1
  285. package/src/components/ui/sidebar.tsx +2 -2
  286. package/src/components/ui/slider.tsx +1 -1
  287. package/src/components/ui/sonner.tsx +3 -1
  288. package/src/components/ui/switch.tsx +1 -1
  289. package/src/components/ui/tabs.tsx +1 -1
  290. package/src/components/ui/textarea.tsx +1 -1
  291. package/src/index.ts +9 -0
  292. package/src/lib/api-rpc.ts +125 -35
  293. package/src/lib/api.ts +171 -16
  294. package/src/lib/constants.ts +18 -0
  295. package/src/lib/insights-search.ts +0 -3
  296. package/src/lib/ios-devices-api.ts +304 -0
  297. package/src/lib/ios-devices-rpc.ts +215 -0
  298. package/src/lib/native-builds.ts +269 -20
  299. package/src/lib/release-adoption.ts +2 -0
  300. package/src/lib/schema-migration-rpc.ts +1 -1
  301. package/src/lib/server/console-runtime.server.ts +9 -2
  302. package/src/lib/server/deviceProfileToken.ts +221 -0
  303. package/src/lib/server/foldedPage.ts +360 -0
  304. package/src/lib/server/iosDeviceCookie.ts +239 -0
  305. package/src/lib/server/iosDeviceProfile.ts +232 -0
  306. package/src/lib/server/iosDevices.ts +232 -0
  307. package/src/lib/server/listReleases.ts +101 -62
  308. package/src/lib/server/local-console.ts +1 -1
  309. package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
  310. package/src/lib/server/nativeBuildInstall.ts +513 -0
  311. package/src/lib/server/nativeBuilds.ts +327 -59
  312. package/src/lib/server/plistText.ts +17 -0
  313. package/src/lib/server/publicConsoleBase.ts +17 -0
  314. package/src/lib/server/releaseAdoption.ts +1 -0
  315. package/src/lib/server/updateFailures.ts +6 -1
  316. package/src/routeTree.gen.ts +129 -18
  317. package/src/routes/-native-builds-search.ts +61 -4
  318. package/src/routes/-releases-search.ts +63 -2
  319. package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
  320. package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
  321. package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
  322. package/src/routes/[_]hot-updater/devices/request.ts +28 -0
  323. package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
  324. package/src/routes/api/native-builds/$buildId/download.ts +22 -1
  325. package/src/routes/index.tsx +662 -578
  326. package/src/routes/insights.tsx +3 -5
  327. package/src/routes/insights_.distribution.tsx +2 -2
  328. package/src/routes/native-builds_.devices.tsx +21 -0
  329. package/src/styles.css +24 -0
  330. package/.output/public/assets/-native-builds-search-C-TGpFAm.js +0 -1
  331. package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
  332. package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
  333. package/.output/public/assets/InsightsPageHeader-DHhqY3DT.js +0 -1
  334. package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
  335. package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
  336. package/.output/public/assets/alert-dialog-BqYScr9y.js +0 -1
  337. package/.output/public/assets/api-P2g8dCNg.js +0 -1
  338. package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
  339. package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
  340. package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
  341. package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
  342. package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
  343. package/.output/public/assets/badge-DWFcDWho.js +0 -1
  344. package/.output/public/assets/check-CXVR3s3X.js +0 -1
  345. package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
  346. package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
  347. package/.output/public/assets/dist-CPlO6ko9.js +0 -1
  348. package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
  349. package/.output/public/assets/field-D-2-mnNh.js +0 -1
  350. package/.output/public/assets/history-DqHlgSuV.js +0 -1
  351. package/.output/public/assets/index-CqP5HPV6.js +0 -10
  352. package/.output/public/assets/input-group-D3OUBk4n.js +0 -1
  353. package/.output/public/assets/insights-B-0odqpt.js +0 -42
  354. package/.output/public/assets/insights-BSVGfxSL.js +0 -1
  355. package/.output/public/assets/insights-NK5B6ReS.js +0 -2
  356. package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
  357. package/.output/public/assets/insights-search-DghCbEnk.js +0 -1
  358. package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
  359. package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
  360. package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
  361. package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
  362. package/.output/public/assets/installations-B674P5Z5.js +0 -2
  363. package/.output/public/assets/installations-BWxczZ2t.js +0 -1
  364. package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
  365. package/.output/public/assets/native-builds-BOC71grI.js +0 -1
  366. package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
  367. package/.output/public/assets/native-builds-DAy2678K.js +0 -1
  368. package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
  369. package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
  370. package/.output/public/assets/plus-BReVKct-.js +0 -1
  371. package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
  372. package/.output/public/assets/refresh-cw-B9HHjLej.js +0 -1
  373. package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
  374. package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
  375. package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
  376. package/.output/public/assets/routes-BDdBIxYS.js +0 -1
  377. package/.output/public/assets/routes-CCD33Azv.js +0 -2
  378. package/.output/public/assets/search-BCel4Oy6.js +0 -1
  379. package/.output/public/assets/select-CBIU0_M1.js +0 -1
  380. package/.output/public/assets/sidebar-Di9SN47G.js +0 -3
  381. package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
  382. package/.output/public/assets/styles-uK-0vUMk.css +0 -2
  383. package/.output/public/assets/switch-BpdiHL_t.js +0 -1
  384. package/.output/public/assets/table-Bpy3SvSo.js +0 -1
  385. package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
  386. package/.output/public/assets/useCompositeListItem-JmyDfo3-.js +0 -1
  387. package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
  388. package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
  389. package/.output/server/_ssr/-native-builds-search-CwNcoXf4.mjs +0 -37
  390. package/.output/server/_ssr/BundleIdDisplay-CFz1sCQl.mjs +0 -13
  391. package/.output/server/_ssr/HashValueDisplay-B85-LoBW.mjs +0 -55
  392. package/.output/server/_ssr/RolloutPercentageBadge-CKFY5OIh.mjs +0 -21
  393. package/.output/server/_ssr/StoreSubmission-CNukW8xF.mjs +0 -139
  394. package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
  395. package/.output/server/_ssr/native-builds-CoOxssXa.mjs +0 -510
  396. package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
  397. package/.output/server/_ssr/native-builds_._buildId-CysSVBT5.mjs +0 -813
  398. package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
  399. package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
  400. package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
  401. package/.output/server/_ssr/tabs-kQRMEiQT.mjs +0 -45
  402. package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
  403. package/src/lib/server/nativeBuildQr.ts +0 -73
  404. package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-10-28T17:24:56.205Z",
2
+ "date": "2026-11-21T12:22:36.927Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -0,0 +1 @@
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";import{m as t,r as n}from"./constants-yj-e3ahf.js";var r=e(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),i=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),a=e=>typeof e==`string`&&e.length>0?e:void 0,o=e=>{let n=a(e);if(n!==void 0)try{return t(n),n}catch{return}},s=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),c=e=>{let t=a(e.before),n=o(e.channel);return s({channel:n,channels:n===void 0&&e.channels===`all`?`all`:void 0,before:t,after:t===void 0?a(e.after):void 0})},l=({channels:e,...t},r)=>{if(t.channel!==void 0||e===`all`)return t;if(r!==void 0)return r.includes(`production`)?{channel:n,...t}:t},u=e=>{let t=a(e.patchesBefore);return s({patchesBefore:t,patchesAfter:t===void 0?a(e.patchesAfter):void 0})},d=[`pending`,`approved`,`registered`],f=e=>{let t=a(e.before);return s({status:typeof e.status==`string`&&d.includes(e.status)?e.status:void 0,before:t,after:t===void 0?a(e.after):void 0})};export{i as a,c as i,f as n,r as o,u as r,l as t};
@@ -0,0 +1 @@
1
+ import{Di as e,vr as t}from"./sidebar-BmzmPGuv.js";var n=e();function r({bundleId:e,label:r,className:i}){let a=(0,n.jsx)(`span`,{translate:`no`,className:t(`break-all font-mono text-xs tabular-nums`,typeof r==`number`?`text-muted-foreground`:null,typeof r==`number`?null:i),children:e});return typeof r==`number`?(0,n.jsxs)(`span`,{className:t(`inline-flex min-w-0 items-baseline gap-1.5`,i),children:[(0,n.jsxs)(`span`,{translate:`no`,className:`shrink-0 font-medium text-sm text-foreground tabular-nums`,children:[`v`,r]}),` `,a]}):a}export{r as t};
@@ -0,0 +1 @@
1
+ import{$ as e,$n as t,A as n,Ar as r,Bn as i,Br as a,Bt as o,C as s,Cn as c,Cr as l,Di as u,En as d,Er as f,Fn as ee,Ht as p,In as te,It as m,Li as h,Lt as g,Mr as _,Mt as v,Nn as y,Nr as b,Nt as x,Pn as S,Qn as C,Ri as w,Rn as ne,Rt as T,Sn as E,Sr as D,Tn as O,Tr as re,Vi as ie,Vt as ae,Xt as k,Yt as A,_n as j,bn as M,bt as oe,cr as se,ct as ce,dt as le,fr as N,ft as ue,gn as de,gr as fe,ht as pe,jr as P,kn as me,kr as F,kt as he,lr as ge,lt as _e,mt as I,or as L,ot as ve,pr as ye,pt as be,sr as xe,st as Se,vn as Ce,vr as R,w as we,wr as Te,wt as Ee,xr as De}from"./sidebar-BmzmPGuv.js";import{i as Oe,n as ke,r as Ae,t as je}from"./useCompositeListItem-BEDqZ9Ni.js";import{t as Me}from"./check-C3VCvMOV.js";import{t as Ne}from"./chevron-down-BkoJHAll.js";import{r as Pe}from"./dist-BEmib-ZM.js";import{C as Fe,E as Ie,S as Le,T as Re,_ as ze,a as Be,b as Ve,d as He,f as Ue,g as We,h as Ge,i as Ke,m as qe,n as Je,o as Ye,p as Xe,s as Ze,t as Qe,u as z,v as B,w as $e,x as et,y as tt}from"./useAnchoredPopupScrollLock-Cvx6CdPD.js";import{t as nt}from"./constants-yj-e3ahf.js";import{i as rt}from"./api-znPyglTl.js";import{i as it,n as at,r as ot,t as st}from"./input-group-CIjTdxCW.js";var V=ie(w()),ct=V.createContext(void 0),lt=V.createContext(void 0),ut=V.createContext(void 0),dt=V.createContext(``);function ft(){let e=V.useContext(ct);if(!e)throw Error(F(22));return e}function pt(){let e=V.useContext(lt);if(!e)throw Error(F(23));return e}function H(){let e=V.useContext(ut);if(!e)throw Error(F(24));return e}function mt(){return V.useContext(dt)}var U={id:T(e=>e.id),labelId:T(e=>e.labelId),items:T(e=>e.items),selectedValue:T(e=>e.selectedValue),hasSelectionChips:T(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),hasSelectedValue:T(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),hasNullItemLabel:T((e,t)=>t?Ye(e.items):!1),open:T(e=>e.open),mounted:T(e=>e.mounted),forceMounted:T(e=>e.forceMounted),inline:T(e=>e.inline),activeIndex:T(e=>e.activeIndex),selectedIndex:T(e=>e.selectedIndex),isActive:T((e,t)=>e.activeIndex===t),isSelected:T((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Ue(t,e,n)):Ue(t,r,n)}),transitionStatus:T(e=>e.transitionStatus),popupProps:T(e=>e.popupProps),inputProps:T(e=>e.inputProps),triggerProps:T(e=>e.triggerProps),itemProps:T(e=>e.itemProps),positionerElement:T(e=>e.positionerElement),listElement:T(e=>e.listElement),triggerElement:T(e=>e.triggerElement),inputElement:T(e=>e.inputElement),inputGroupElement:T(e=>e.inputGroupElement),popupSide:T(e=>e.popupSide),openMethod:T(e=>e.openMethod),inputInsidePopup:T(e=>e.inputInsidePopup),inputOwnsFormValue:T(e=>e.inputOwnsFormValue),selectionMode:T(e=>e.selectionMode),name:T(e=>e.name),form:T(e=>e.form),disabled:T(e=>e.disabled),readOnly:T(e=>e.readOnly),required:T(e=>e.required),grid:T(e=>e.grid),virtualized:T(e=>e.virtualized),itemToStringLabel:T(e=>e.itemToStringLabel),isItemEqualToValue:T(e=>e.isItemEqualToValue),modal:T(e=>e.modal),autoHighlight:T(e=>e.autoHighlight),submitOnItemClick:T(e=>e.submitOnItemClick)},ht=ie(h()),W=u();function gt(e,t){return(n,r)=>{if(n==null)return!1;let i=z(n,t);return e.contains(i,r)}}function _t(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=z(r,t),o=n==null?``:z(n,t);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(a,i)}}var vt=new Map;function yt(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${bt(e.locale)}|${JSON.stringify(t)}`,r=vt.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=z(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=z(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=z(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return vt.set(n,a),a}function bt(e){return Array.isArray(e)?e.map(e=>bt(e)).join(`,`):e==null?``:String(e)}var xt=yt,St=Symbol(`none`),Ct={value:St,index:-1};function wt(e){let{id:n,onOpenChangeComplete:a,defaultSelectedValue:u=null,selectedValue:d,onSelectedValueChange:f,defaultInputValue:p,inputValue:h,open:v,defaultOpen:y=!1,selectionMode:w=`none`,onItemHighlighted:ne,name:T,form:O,disabled:ie=!1,readOnly:k=!1,required:A=!1,inputRef:se,grid:ce=!1,items:N,filteredItems:ue,filter:fe,openOnInputClick:pe=!0,autoHighlight:me=!1,keepHighlight:F=!1,highlightItemOnHover:ge=!0,loopFocus:_e=!0,itemToStringLabel:I,itemToStringValue:L,isItemEqualToValue:ve=Xe,virtualized:be=!1,inline:xe=!1,fillInputOnItemPress:Se=!0,modal:Ce=!1,limit:R=-1,autoComplete:De=`list`,formAutoComplete:ke,locale:Ae,submitOnItemClick:je=!1}=e,{clearErrors:Me}=Be(),{setDirty:Ne,validityData:Pe,shouldValidateOnChange:Fe,setFilled:Re,name:Ve,disabled:Ke,setTouched:Je,setFocused:Ye,validationMode:Qe,validation:B}=Le(),$e=le(),et=ze({id:n}),nt=xt({locale:Ae}),[rt,it]=V.useState(!1),[at,ot]=V.useState(null),st=V.useRef([]),ft=V.useRef([]),pt=V.useRef(null),H=V.useRef(null),mt=V.useRef(null),ht=V.useRef(null),vt=V.useRef(null),yt=V.useRef(!0),bt=V.useRef(!1),wt=V.useRef(null),Tt=V.useRef(null),Et=V.useRef(null),Dt=V.useRef(Ct),Ot=V.useRef(null),kt=V.useRef([]),At=V.useRef([]),jt=Ke||ie,Mt=Ve??T,G=w===`multiple`,Nt=w===`single`,Pt=h!==void 0||p!==void 0,Ft=N!==void 0,It=ue!==void 0,K;K=me===`always`?`always`:me?`input-change`:!1;let[q,Lt]=Oe({controlled:d,default:G?u??D:u,name:`Combobox`,state:`selectedValue`}),Rt=V.useMemo(()=>fe===null?()=>!0:fe===void 0?Nt&&!rt?_t(nt,I,q):gt(nt,I):fe,[fe,Nt,q,rt,nt,I]),zt=b(()=>Pt?p??``:Nt?z(q,I):``).current,[J,Bt]=Oe({controlled:h,default:zt,name:`Combobox`,state:`inputValue`}),[Y,Vt]=Oe({controlled:v,default:y,name:`Combobox`,state:`open`}),Ht=Ze(N),X=at??(J===``?``:String(J).trim()),Ut=Nt?z(q,I):``,Wt=Nt&&!rt&&X!==``&&Ut!==``&&Ut.length===X.length&&nt.contains(Ut,X),Gt=Wt?``:X,Kt=Ft&&It&&Wt,qt=V.useMemo(()=>N?Ht?N.flatMap(e=>e.items):N:D,[N,Ht]),Jt=V.useMemo(()=>{if(ue&&!Kt)return ue;if(!N)return D;if(Ht){let e=N,t=[],n=0;for(let r of e){if(R>-1&&n>=R)break;let e=Gt===``?r.items:r.items.filter(e=>Rt(e,Gt,I));if(e.length===0)continue;let i=R>-1?R-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(Gt===``)return R>-1?qt.slice(0,R):qt;let e=[];for(let t of qt){if(R>-1&&e.length>=R)break;Rt(t,Gt,I)&&e.push(t)}return e},[ue,Kt,N,Ht,Gt,R,Rt,I,qt]),Z=V.useMemo(()=>Ht?Jt.flatMap(e=>e.items):Jt,[Jt,Ht]),Q=b(()=>new m({id:et,labelId:void 0,selectedValue:q,open:Y,filter:Rt,query:X,items:N,selectionMode:w,listRef:st,labelsRef:ft,popupRef:pt,emptyRef:vt,inputRef:H,startDismissRef:mt,endDismissRef:ht,keyboardActiveRef:yt,chipsContainerRef:wt,clearRef:Tt,valuesRef:kt,allValuesRef:At,selectionEventRef:Et,name:Mt,form:O,disabled:jt,readOnly:k,required:A,grid:ce,isGrouped:Ht,virtualized:be,openOnInputClick:pe,itemToStringLabel:I,isItemEqualToValue:ve,modal:Ce,autoHighlight:K,submitOnItemClick:je,hasInputValue:Pt,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:xe,activeIndex:null,selectedIndex:null,popupProps:{},inputProps:{},triggerProps:{},itemProps:l,positionerElement:null,listElement:null,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:w===`none`,onOpenChangeComplete:a||Te,setOpen:Te,setInputValue:Te,setSelectedValue:Te,setIndices:Te,onItemHighlighted:Te,handleSelection:Te,forceMount:Te,requestSubmit:Te})).current,Yt=w===`none`?J:q,Xt=V.useMemo(()=>w===`none`?Yt:Array.isArray(q)?q.map(e=>He(e,L)):He(q,L),[Yt,L,w,q]),Zt=_(ne),Qt=_(a),$t=g(Q,U.activeIndex),en=g(Q,U.selectedIndex),tn=g(Q,U.positionerElement),nn=g(Q,U.listElement),rn=g(Q,U.triggerElement),an=g(Q,U.inputElement),on=g(Q,U.inputGroupElement),$=g(Q,U.inline),sn=g(Q,U.inputInsidePopup),cn=g(Q,U.inputOwnsFormValue),ln=M(rn),{mounted:un,setMounted:dn,transitionStatus:fn}=x(Y),{openMethod:pn,triggerProps:mn}=s(Y),hn=_(()=>Xt);tt(sn?ln:H,et,Yt,hn);let gn=_(()=>{N?ft.current=Z.map(e=>z(e,I)):Q.set(`forceMounted`,!0)}),_n=V.useRef(q);P(()=>{q!==_n.current&&gn()},[gn,q]);let vn=_(e=>{Q.update(e);let t=e.type||`none`;if(e.activeIndex!==void 0)if(e.activeIndex===null)Dt.current!==Ct&&(Dt.current=Ct,Zt(void 0,c(t,void 0,{index:-1})));else{let n=kt.current[e.activeIndex];Dt.current={value:n,index:e.activeIndex},Zt(n,c(t,void 0,{index:e.activeIndex}))}}),yn=_((t,n)=>{if(bt.current=n.reason===S,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&&it(!0),Ot.current={hasQuery:e},e&&K&&Q.state.activeIndex==null&&Q.set(`activeIndex`,0)}}Bt(t)}}),bn=_((t,n)=>{if(Y!==t&&(n.reason===`escape-key`&&Ft&&Z.length===0&&!Q.state.emptyRef.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&G&&sn&&!$&&at!==null&&(it(!1),ot(null),J!==``&&yn(``,E(S,n.event))),!t&&rt&&(Nt?($||ot(X),X===``&&it(!1)):G&&($||ot(X),sn&&vn({activeIndex:null}),(!sn||$)&&yn(``,E(S,n.event)))),Vt(t),!t&&sn&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(Je(!0),Ye(!1),Qe===`onBlur`)))){let e=w===`none`?J:q;B.commit(e)}}),xn=_((e,t)=>{f?.(e,t),!t.isCanceled&&(Lt(e),(w===`none`&&pt.current&&Se||Nt&&!Q.state.inputInsidePopup)&&yn(z(e,I),E(t.reason,t.event)),Nt&&e!=null&&t.reason!==`input-change`&&rt&&!$&&ot(X))}),Sn=_((e,n)=>{let r=n;if(r===void 0){if($t===null)return;r=kt.current[$t]}let i=t(e),a=Et.current??e;Et.current=null;let o=E(te,a),s=i?.closest(`a`)?.getAttribute(`href`);if(s){s.startsWith(`#`)&&bn(!1,o);return}if(G){let e=Array.isArray(q)?q:[];if(xn(We(e,r,Q.state.isItemEqualToValue)?Ge(e,r,Q.state.isItemEqualToValue):[...e,r],o),!(H.current&&H.current.value.trim()!==``))return;Q.state.inputInsidePopup?yn(``,E(S,o.event)):bn(!1,o)}else xn(r,o),bn(!1,o)}),Cn=_(()=>{if(!Q.state.submitOnItemClick)return;let e=B.inputRef.current?.form??Q.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),wn=_(()=>{if(dn(!1),Qt?.(!1),it(!1),ot(null),vn(w===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),G&&H.current&&H.current.value!==``&&!bt.current&&yn(``,E(S)),Nt)if(Q.state.inputInsidePopup)H.current&&H.current.value!==``&&yn(``,E(S));else{let e=z(q,I);H.current&&H.current.value!==e&&yn(e,E(e===``?S:i))}}),Tn=V.useMemo(()=>$&&tn?{current:tn.closest(`[role="dialog"]`)}:pt,[$,tn]);he({enabled:!e.actionsRef,open:Y,ref:Tn,onComplete(){Y||wn()}}),V.useImperativeHandle(e.actionsRef,()=>({unmount:wn}),[wn]),P(function(){if(Y||w===`none`)return;let e=N?qt:At.current;if(G){let t=Array.isArray(q)?q:[],n=t[t.length-1],r=qe(e,n,ve);vn({selectedIndex:r===-1?null:r})}else{let t=qe(e,q,ve);vn({selectedIndex:t===-1?null:t})}},[Y,q,N,w,qt,G,ve,vn]),P(()=>{N&&(kt.current=Z,st.current.length=Z.length)},[N,Z]),P(()=>{let e=Ot.current;if(e&&(e.hasQuery?K&&Q.set(`activeIndex`,0):K===`always`&&Q.set(`activeIndex`,0),Ot.current=null),!Y&&!$)return;let t=Ft||It?Z:kt.current,n=Q.state.activeIndex;if(n==null){if(K===`always`&&t.length>0){Q.set(`activeIndex`,0);return}Dt.current!==Ct&&(Dt.current=Ct,Q.state.onItemHighlighted(void 0,c(i,void 0,{index:-1})));return}if(n>=t.length){Dt.current!==Ct&&(Dt.current=Ct,Q.state.onItemHighlighted(void 0,c(i,void 0,{index:-1}))),Q.set(`activeIndex`,null);return}let r=t[n],a=Dt.current.value,o=a!==St&&Ue(r,a,Q.state.isItemEqualToValue);(Dt.current.index!==n||!o)&&(Dt.current={value:r,index:n},Q.state.onItemHighlighted(r,c(i,void 0,{index:n})))},[$t,K,It,Ft,Z,$,Y,Q]),P(()=>{if(w===`none`){Re(String(J)!==``);return}Re(G?Array.isArray(q)&&q.length>0:q!=null)},[Re,w,J,q,G]),V.useEffect(()=>{Ft&&K&&Z.length===0&&vn({activeIndex:null})},[Ft,K,Z.length,vn]),we(X,()=>{!Y||X===``||X===String(zt)||it(!0)}),we(q,()=>{if(w!==`none`&&(Me(Mt),Ne(q!==Pe.initialValue),Fe()?B.commit(q):B.commit(q,!0),Nt&&!Pt&&!sn)){let e=z(q,I);J!==e&&yn(e,E(i))}}),we(J,()=>{w===`none`&&(Me(Mt),Ne(J!==Pe.initialValue),Fe()?B.commit(J):B.commit(J,!0))}),we(N,()=>{if(!Nt||Pt||sn||rt)return;let e=z(q,I);J!==e&&yn(e,E(i))});let En=oe({open:$?!0:Y,onOpenChange:bn,elements:{reference:sn?rn:an,floating:tn}}),Dn,On;$||(Dn=ce?`grid`:`listbox`,On=Y?`true`:`false`);let kn=V.useMemo(()=>{let e=an?.tagName===`INPUT`,t=an==null||e,n=t||Y,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=On,r[`aria-haspopup`]=Dn,r[`aria-controls`]=Y?nn?.id:void 0,r[`aria-autocomplete`]=De),{reference:r,floating:{role:`presentation`}}},[an,Y,On,Dn,nn?.id,De]),An=ae(En,{enabled:!k&&!jt&&pe,event:`mousedown-only`,toggle:!1,touchOpenDelay:sn?0:100,reason:ee}),jn=o(En,{enabled:!k&&!jt&&!$,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:$?!0:void 0,outsidePress(e){let n=t(e);return!C(rn,n)&&!C(Tt.current,n)&&!C(wt.current,n)&&!C(on,n)}}),Mn=Ie(En,{enabled:!k&&!jt,id:et,listRef:st,activeIndex:$t,selectedIndex:en,virtual:!0,loopFocus:_e,allowEscape:_e&&!K,focusItemOnOpen:rt||w===`none`&&!K?!1:`auto`,focusItemOnHover:ge,resetOnPointerLeave:!F,cols:ce?2:1,orientation:ce?`horizontal`:void 0,rtl:$e===`rtl`,disabledIndices:D,onNavigate(e,t){!t&&!Y||fn===`ending`||vn(t?{activeIndex:e,type:yt.current?`keyboard`:`pointer`}:{activeIndex:e})}}),Nn=V.useMemo(()=>r(Mn.reference,jn.reference,An.reference,kn.reference),[Mn.reference,jn.reference,An.reference,kn.reference]),Pn=V.useMemo(()=>r(Ee,Mn.floating,jn.floating,kn.floating),[Mn.floating,jn.floating,kn.floating]),Fn=V.useMemo(()=>{let e=Mn.item;return e?{...e,onFocus:void 0}:l},[Mn.item]);ye(()=>{Q.update({inline:xe,popupProps:Pn,inputProps:Nn,triggerProps:mn,itemProps:Fn,setOpen:bn,setInputValue:yn,setSelectedValue:xn,setIndices:vn,onItemHighlighted:Zt,handleSelection:Sn,forceMount:gn,requestSubmit:Cn})}),P(()=>{Q.update({id:et,selectedValue:q,open:Y,mounted:un,transitionStatus:fn,items:N,inline:xe,popupProps:Pn,inputProps:Nn,triggerProps:mn,openMethod:pn,itemProps:Fn,selectionMode:w,name:Mt,form:O,disabled:jt,readOnly:k,required:A,grid:ce,isGrouped:Ht,virtualized:be,onOpenChangeComplete:Qt,openOnInputClick:pe,itemToStringLabel:I,modal:Ce,autoHighlight:K,isItemEqualToValue:ve,submitOnItemClick:je,hasInputValue:Pt,requestSubmit:Cn,inputOwnsFormValue:w===`none`&&(xe||!Q.state.inputInsidePopup)})},[Q,et,q,Y,un,fn,N,Pn,Nn,Fn,pn,mn,w,Mt,jt,k,A,B,ce,Ht,be,Qt,pe,I,Ce,ve,je,Pt,xe,Cn,K,O]);let In=re(se,B.inputRef),Ln=V.useMemo(()=>({query:X,hasItems:Ft,filteredItems:Jt,flatFilteredItems:Z}),[X,Ft,Jt,Z]),Rn=V.useMemo(()=>Array.isArray(Yt)?``:He(Yt,L),[Yt,L]),zn=G&&Array.isArray(q)&&q.length>0,Bn=G||w===`none`&&cn?void 0:Mt,Vn=V.useMemo(()=>!G||!Array.isArray(q)||!Mt?null:q.map(e=>{let t=He(e,L);return(0,W.jsx)(`input`,{type:`hidden`,form:O,name:Mt,value:t},t)}),[G,q,O,Mt,L]),Hn=(0,W.jsxs)(V.Fragment,{children:[e.children,(0,W.jsx)(`input`,{...B.getInputValidationProps({onFocus(){if(sn){rn?.focus();return}(H.current||rn)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||jt||k){e.preventBaseUIHandler?.();return}let t=e.currentTarget.value,n=E(i,e.nativeEvent);function r(){if(G)return;if(w===`none`){Ne(t!==Pe.initialValue),yn(t,n),Fe()&&B.commit(t);return}let e=kt.current.find(e=>He(e,L).toLowerCase()===t.toLowerCase()||z(e,I).toLowerCase()===t.toLowerCase());e!=null&&(Ne(e!==Pe.initialValue),xn?.(e,n),Fe()&&B.commit(e))}N?r():(gn(),queueMicrotask(r))}}),id:et&&Bn==null?`${et}-hidden-input`:void 0,form:O,name:Bn,autoComplete:ke,disabled:jt,required:A&&!zn,readOnly:k,value:Rn,ref:In,style:Bn?j:de,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Vn]});return(0,W.jsx)(ct.Provider,{value:Q,children:(0,W.jsx)(lt.Provider,{value:En,children:(0,W.jsx)(ut.Provider,{value:Ln,children:(0,W.jsx)(dt.Provider,{value:J,children:Hn})})})})}var Tt={...I,...$e,popupSide:e=>e?{"data-popup-side":e}:null,listEmpty:e=>e?{"data-list-empty":``}:null},Et=2,Dt=V.forwardRef(function(e,n){let{render:r,className:i,nativeButton:a=!0,disabled:o=!1,id:s,style:c,...l}=e,{state:u,disabled:d,setTouched:ee,setFocused:p,validationMode:te,validation:m}=Le(),{labelId:h}=B(),v=ft(),{filteredItems:y}=H(),b=g(v,U.selectionMode),x=g(v,U.disabled),S=g(v,U.readOnly),w=g(v,U.required),T=g(v,U.mounted),D=g(v,U.popupSide),O=g(v,U.positionerElement),re=g(v,U.listElement),ie=g(v,U.triggerProps),k=g(v,U.triggerElement),A=g(v,U.inputInsidePopup),j=g(v,U.id),M=g(v,U.labelId),oe=g(v,U.open),se=g(v,U.selectedValue),ce=g(v,U.activeIndex),le=g(v,U.selectedIndex),ue=g(v,U.hasSelectedValue),de=pt(),fe=mt(),pe=N(),P=d||x||o,me=y.length===0,F=T&&O?D:null;ze({id:A?s:void 0});let he=A?s??j:s,ge=Ke(h,M),_e=V.useRef(``);function I(e){_e.current=e.pointerType}let ve=de.useState(`domReferenceElement`);V.useEffect(()=>{A&&k&&k!==ve&&de.set(`domReferenceElement`,k)},[k,ve,de,A]);let{reference:ye}=Re(de,{enabled:!oe&&!S&&!x&&b===`single`,listRef:v.state.labelsRef,activeIndex:ce,selectedIndex:le,onMatch(e){let t=v.state.valuesRef.current[e];t!==void 0&&v.state.setSelectedValue(t,E(`none`))}}),{reference:be}=ae(de,{enabled:!S&&!x,event:`mousedown`}),{buttonRef:xe,getButtonProps:Se}=f({native:a,disabled:P}),R={...u,open:oe,disabled:P,popupSide:F,listEmpty:me,placeholder:b===`none`?!1:!ue};return De(`button`,e,{ref:[n,xe,_(e=>{v.set(`triggerElement`,e)})],state:R,props:[ie,be,ye,{id:he,tabIndex:A?0:-1,role:A?`combobox`:void 0,"aria-expanded":oe?`true`:`false`,"aria-haspopup":A?`dialog`:`listbox`,"aria-controls":oe?re?.id:void 0,"aria-required":A&&w||void 0,"aria-labelledby":ge,onPointerDown:I,onPointerEnter:I,onFocus(){p(!0),!(P||S)&&pe.start(0,v.state.forceMount)},onBlur(e){if(!C(O,e.relatedTarget)&&(ee(!0),p(!1),te===`onBlur`)){let e=b===`none`?fe:se;m.commit(e)}},onMouseDown(e){if(P||S||(A||de.set(`domReferenceElement`,e.currentTarget),v.state.forceMount(),_e.current!==`touch`&&(v.state.inputRef.current?.focus(),A||e.preventDefault()),oe))return;let n=Ce(e.currentTarget);function r(e){if(!k)return;let n=t(e),r=v.state.positionerElement,i=v.state.listElement;if(C(k,n)||C(r,n)||C(i,n)||n===k)return;let a=Je(k),o=e.clientX>=a.left-Et&&e.clientX<=a.right+Et,s=e.clientY>=a.top-Et&&e.clientY<=a.bottom+Et;o&&s||v.state.setOpen(!1,E(`cancel-open`,e))}A&&n.addEventListener(`mouseup`,r,{once:!0})},onKeyDown(e){P||S||(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(L(e),v.state.setOpen(!0,E(ne,e.nativeEvent)),v.state.inputRef.current?.focus())}},m?m.getValidationProps(l):l,Se],stateAttributesMapping:Tt})}),Ot=V.createContext(void 0);function kt(){return V.useContext(Ot)}var At=V.createContext(void 0);function jt(e){let t=V.useContext(At);if(t===void 0&&!e)throw Error(F(21));return t}var Mt=V.forwardRef(function(e,t){let n=ft(),{buttonRef:r,getButtonProps:i}=f({native:!1}),a=re(t,r);function o(e){n.state.setOpen(!1,E(d,e.nativeEvent,e.currentTarget))}return(0,W.jsx)(`span`,{ref:a,...i({onClick:o}),"aria-label":`Dismiss`,tabIndex:void 0,style:j})}),G=V.forwardRef(function(e,t){let{render:n,className:r,disabled:a=!1,id:o,style:s,...c}=e,{state:l,disabled:u,setTouched:d,setFocused:f,validationMode:ee,validation:p}=Le(),{labelId:te}=B(),m=kt(),h=!!jt(!0),v=ft(),{filteredItems:b}=H(),x=mt(),C=le(),w=g(v,U.required),ne=g(v,U.disabled),T=g(v,U.readOnly),D=g(v,U.name),O=g(v,U.form),re=g(v,U.selectionMode),ie=g(v,U.autoHighlight),ae=g(v,U.inputProps),k=g(v,U.triggerProps),A=g(v,U.open),j=g(v,U.mounted),M=g(v,U.selectedValue),oe=g(v,U.popupSide),ce=g(v,U.positionerElement),N=g(v,U.id),de=g(v,U.inline),fe=g(v,U.modal),pe=!!ie,P=j&&ce?oe:null,F=u||ne||a,he=b.length===0,ge=h||de,_e=!ge||fe,I=ue(o??(ge?void 0:N)),ve=Ke(te,void 0),ye=h?Fe:l,[be,Se]=V.useState(null),Ce=V.useRef(!1),R=V.useRef(null),we=V.useRef(!1),Te=re===`none`&&!h,Ee=_(e=>{let t=h||v.state.inline;t&&!v.state.hasInputValue&&v.state.setInputValue(``,E(i)),v.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:Te})}),Oe=h||!p?c:p.getValidationProps(c),ke={...ye,open:A,disabled:F,readOnly:T,popupSide:P,listEmpty:he};function Ae(e){if(!m)return;let t,{highlightedChipIndex:n}=m,r=m.chipsRef.current.length,i=C===`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>=M.length-1?M.length-2:n;t=r>=0?r:void 0,v.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`})}return t}return e.key===a&&(e.currentTarget.selectionStart??0)===0&&M.length>0?(e.preventDefault(),t=r>0?r-1:void 0):e.key===`Backspace`&&e.currentTarget.value===``&&M.length>0&&(v.state.setIndices({activeIndex:null,selectedIndex:null,type:`keyboard`}),e.preventDefault()),t}let je=De(`input`,e,{state:ke,ref:[t,v.state.inputRef,Ee],props:[ae,k,{type:`text`,value:e.value??be??x,"aria-readonly":T||void 0,"aria-required":w||void 0,"aria-labelledby":ve,disabled:F,readOnly:T,required:re===`none`?w:void 0,form:O,...Te&&D&&{name:D},id:I,onFocus(){if(f(!0),!de||!we.current)return;we.current=!1;let e=R.current;e==null||!Object.hasOwn(v.state.valuesRef.current,e)||v.state.setIndices({activeIndex:e})},onBlur(){d(!0),f(!1);let e=v.state.activeIndex;if(de&&e!==null&&ie!==`always`&&(R.current=e,we.current=!0,v.state.setIndices({activeIndex:null})),ee===`onBlur`){let e=re===`none`?x:M;p.commit(e)}},onCompositionStart(e){xe||(Ce.current=!0,Se(e.currentTarget.value))},onCompositionEnd(e){Ce.current=!1;let t=e.currentTarget.value;Se(null),v.state.setInputValue(t,E(y,e.nativeEvent))},onChange(e){let t=e.nativeEvent.inputType,n=!t||t===`insertReplacementText`,r=Ce.current||!n;if(Ce.current){let t=e.currentTarget.value;Se(t),t===``&&!v.state.openOnInputClick&&!v.state.inputInsidePopup&&v.state.setOpen(!1,E(S,e.nativeEvent));let n=t.trim(),i=pe&&n!==``;!T&&!F&&n&&r&&(v.state.setOpen(!0,E(y,e.nativeEvent)),pe||v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&v.state.activeIndex!==null&&!i&&v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`});return}v.state.setInputValue(e.currentTarget.value,E(y,e.nativeEvent));let i=e.currentTarget.value===``,a=E(S,e.nativeEvent);i&&!v.state.inputInsidePopup&&(re===`single`&&v.state.setSelectedValue(null,a),v.state.openOnInputClick||v.state.setOpen(!1,a));let o=e.currentTarget.value.trim();!T&&!F&&o&&r&&(v.state.setOpen(!0,E(y,e.nativeEvent)),pe||v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`})),A&&v.state.activeIndex!==null&&!pe&&v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`})},onKeyDown(e){if(F||T||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;v.state.keyboardActiveRef.current=!0;let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=C===`rtl`;if(e.key===`Home`){L(e);let n=se&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){L(e);let i=se&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!j&&e.key===`Escape`){let t=re===`multiple`&&Array.isArray(M)?M.length===0:M===null,n=E(me,e.nativeEvent),r=re===`multiple`?[]:null;v.state.setInputValue(``,n),v.state.setSelectedValue(r,n),!t&&!v.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(m&&e.key===`Backspace`&&t.value===``&&m.highlightedChipIndex===void 0&&Array.isArray(M)&&M.length>0){let t=m.chipsRef.current.length,n=t>0?t-1:M.length-1,r=M.filter((e,t)=>t!==n);v.state.setIndices({activeIndex:null,selectedIndex:null,type:v.state.keyboardActiveRef.current?`keyboard`:`pointer`}),v.state.setSelectedValue(r,E(i,e.nativeEvent));return}let a=m?.highlightedChipIndex!==void 0,o=Ae(e);if(m?.setHighlightedChipIndex(o),o===void 0?a&&v.state.inputRef.current?.focus():m?.chipsRef.current[o]?.focus(),e.which!==229&&e.key===`Enter`&&A){let t=v.state.activeIndex,n=e.nativeEvent;if(t===null){if(de)return;v.state.setOpen(!1,E(i,n));return}L(e);let r=v.state.listRef.current[t];r&&(v.state.selectionEventRef.current=n,r.click(),v.state.selectionEventRef.current=null)}},onPointerMove(){v.state.keyboardActiveRef.current=!1},onPointerDown(){v.state.keyboardActiveRef.current=!1}},Oe],stateAttributesMapping:Tt}),Me=h?(0,W.jsx)(et.Provider,{value:Ve,children:je}):je;return(0,W.jsxs)(V.Fragment,{children:[A&&_e&&(0,W.jsx)(Mt,{ref:v.state.startDismissRef}),Me]})}),Nt={...v,...pe},Pt=V.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:l}=Le(),u=ft(),d=g(u,U.selectionMode),ee=g(u,U.disabled),p=g(u,U.readOnly),te=g(u,U.open),m=g(u,U.selectedValue),h=g(u,U.hasSelectionChips),_=mt(),v=!1;v=d===`none`?_!==``:d===`single`?m!=null:h;let y=l||ee||i,{buttonRef:b,getButtonProps:S}=f({native:a,disabled:y}),{mounted:C,transitionStatus:w,setMounted:ne}=x(v),T={disabled:y,visible:v,open:te,transitionStatus:w};he({open:v,ref:u.state.clearRef,onComplete(){v||ne(!1)}});let D=De(`button`,e,{state:T,ref:[t,b,u.state.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(y||p)return;let t=u.state.keyboardActiveRef;u.state.setInputValue(``,E(O,e.nativeEvent)),d===`none`?u.state.setIndices({activeIndex:null,type:t.current?`keyboard`:`pointer`}):(u.state.setSelectedValue(Array.isArray(m)?[]:null,E(O,e.nativeEvent)),u.state.setIndices({activeIndex:null,selectedIndex:null,type:t.current?`keyboard`:`pointer`})),u.state.inputRef.current?.focus()}},c,S],stateAttributesMapping:Nt});return o||C?D:null}),Ft=V.createContext(null);function It(){return V.useContext(Ft)}function K(e){let{children:t,items:n}=e,r=V.useMemo(()=>({items:n}),[n]);return(0,W.jsx)(Ft.Provider,{value:r,children:t})}function q(e){let{children:t}=e,{filteredItems:n}=H(),r=It(),i=r?r.items:n;return i?(0,W.jsx)(V.Fragment,{children:i.map(t)}):null}var Lt=V.forwardRef(function(e,t){var n;let{render:r,className:i,style:a,children:o,...s}=e,c=ft(),l=pt(),u=!!jt(!0),{filteredItems:d,hasItems:f}=H(),ee=g(c,U.selectionMode),p=g(c,U.grid),te=g(c,U.popupProps),m=g(c,U.virtualized),h=ee===`multiple`,v=d.length===0,y=_(e=>{c.set(`positionerElement`,e)}),b=_(e=>{c.set(`listElement`,e)}),x=V.useMemo(()=>typeof o==`function`?n||=(0,W.jsx)(q,{children:o}):o,[o]),S={empty:v},C=l.useState(`floatingId`),w=De(`div`,e,{state:S,ref:[t,b,u?null:y],props:[te,{children:x,tabIndex:-1,id:C,role:p?`grid`:`listbox`,"aria-multiselectable":h?`true`:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;L(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 m?w:(0,W.jsx)(Ae,{elementsRef:c.state.listRef,labelsRef:f?void 0:c.state.labelsRef,children:w})}),Rt=`⁠`;function zt(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 J(){let e=N(),t=V.useRef(null);return V.useEffect(()=>{if(ge)return;let n=t.current;if(n==null)return;let r=zt(n);if(r==null)return;let i=r.nodeValue??``,a=`${i}${Rt}`;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 Bt=V.createContext(void 0);function Y(){let e=V.useContext(Bt);if(e===void 0)throw Error(F(20));return e}var Vt=V.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=ft(),a=g(i,U.mounted),o=g(i,U.forceMounted);return a||n||o?(0,W.jsx)(Bt.Provider,{value:n,children:(0,W.jsx)(A,{ref:t,...r})}):null}),Ht=V.forwardRef(function(e,t){let{render:r,className:i,anchor:a,positionMethod:o=`absolute`,side:s=`bottom`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f=5,arrowPadding:ee=5,sticky:p=!1,disableAnchorTracking:te=!1,collisionAvoidance:m=k,style:h,...v}=e,y=ft(),{filteredItems:b}=H(),x=pt(),S=Y(),C=g(y,U.modal),w=g(y,U.open),ne=g(y,U.mounted),T=g(y,U.openMethod),E=g(y,U.positionerElement),D=g(y,U.triggerElement),O=g(y,U.inputElement),re=g(y,U.inputGroupElement),ie=g(y,U.inputInsidePopup),ae=g(y,U.transitionStatus),A=b.length===0,j=_e({anchor:a??(ie?D:re??O),floatingRootContext:x,positionMethod:o,mounted:ne,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:ee,collisionBoundary:d,collisionPadding:f,sticky:p,disableAnchorTracking:te,keepMounted:S,collisionAvoidance:m,lazyFlip:!0});Qe(w&&C,T===`touch`,E,D);let M={open:w,side:j.side,align:j.align,anchorHidden:j.anchorHidden,empty:A};P(()=>{y.set(`popupSide`,j.side)},[y,j.side]);let oe=_(e=>{y.set(`positionerElement`,e)}),se=Se(e,M,{styles:j.positionerStyles,transitionStatus:ae,props:v,refs:[t,oe],hidden:!ne,inert:!w});return(0,W.jsxs)(At.Provider,{value:j,children:[ne&&C&&(0,W.jsx)(n,{inert:ve(!w),cutout:re??O??D}),se]})}),X={...be,...v},Ut=V.forwardRef(function(e,n){let{render:r,className:i,style:a,initialFocus:o,finalFocus:s,...c}=e,l=ft(),u=jt(),d=pt(),{filteredItems:f}=H(),ee=g(l,U.mounted),te=g(l,U.open),m=g(l,U.openMethod),h=g(l,U.transitionStatus),_=g(l,U.inputInsidePopup),v=g(l,U.inputElement),y=g(l,U.modal),b=f.length===0;he({open:te,ref:l.state.popupRef,onComplete(){te&&l.state.onOpenChangeComplete(!0)}});let x=De(`div`,e,{state:{open:te,side:u.side,align:u.align,anchorHidden:u.anchorHidden,transitionStatus:h,empty:b},ref:[n,l.state.popupRef],props:[{role:_?`dialog`:`presentation`,tabIndex:-1,onFocus(e){let n=t(e.nativeEvent);m!==`touch`&&(C(l.state.listElement,n)||n===e.currentTarget)&&l.state.inputRef.current?.focus()}},ce(h),c],stateAttributesMapping:X}),S=o===void 0?_?e=>e===`touch`?l.state.popupRef.current:v:!1:o,w;w=s??(_?void 0:!1);let ne=!_||y;return(0,W.jsx)(p,{context:d,disabled:!ee,modal:ne,openInteractionType:m,initialFocus:S,returnFocus:w,getInsideElements:()=>[l.state.startDismissRef.current,l.state.endDismissRef.current],children:(0,W.jsxs)(V.Fragment,{children:[x,ne&&(0,W.jsx)(Mt,{ref:l.state.endDismissRef})]})})}),Wt=V.createContext(void 0);function Gt(){let e=V.useContext(Wt);if(e===void 0)throw Error(F(18));return e}var Kt=V.forwardRef(function(e,t){let{render:n,className:r,style:i,items:a,...o}=e,[s,c]=V.useState(),l=V.useMemo(()=>({labelId:s,setLabelId:c,items:a}),[s,c,a]),u=De(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":s},o]}),d=(0,W.jsx)(Wt.Provider,{value:l,children:u});return a?(0,W.jsx)(K,{items:a,children:d}):d}),qt=V.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=Gt(),c=ue(a);return P(()=>(s(c),()=>{s(void 0)}),[c,s]),De(`div`,e,{ref:t,props:[{id:c},o]})}),Jt=V.createContext(void 0);function Z(){let e=V.useContext(Jt);if(!e)throw Error(F(19));return e}var Q=V.createContext(!1);function Yt(){return V.useContext(Q)}var Xt=V.memo(V.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,index:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=V.useRef(!1),d=V.useRef(null),ee=ke({index:o,textRef:d,indexGuessBehavior:je.GuessFromOrder}),p=ft(),te=Yt(),{flatFilteredItems:m,hasItems:h}=H(),_=g(p,U.open),v=g(p,U.selectionMode),y=g(p,U.readOnly),b=g(p,U.virtualized),x=g(p,U.isItemEqualToValue),S=v!==`none`,C=o??(b?qe(m,a,x):ee.index),w=ee.index!==-1,ne=g(p,U.id),T=g(p,U.isActive,C),E=g(p,U.isSelected,a),D=g(p,U.itemProps),O=V.useRef(null),re=ne!=null&&w?`${ne}-${C}`:void 0,ie=E&&S;P(()=>{if(!(w&&(b||o!=null)))return;let e=p.state.listRef.current;return e[C]=O.current,()=>{delete e[C]}},[w,b,C,o,p]),P(()=>{if(!w||h)return;let e=p.state.valuesRef.current;return e[C]=a,v!==`none`&&p.state.allValuesRef.current.push(a),()=>{delete e[C]}},[w,h,C,a,p,v]),P(()=>{if(!_){u.current=!1;return}if(!w||h)return;let e=p.state.selectedValue;Ue(a,Array.isArray(e)?e[e.length-1]:e,x)&&p.set(`selectedIndex`,C)},[w,h,_,p,C,a,x]);let{getButtonProps:ae,buttonRef:k}=f({disabled:s,focusableWhenDisabled:!0,native:c,composite:!0}),A={disabled:s,selected:ie,highlighted:T};function j(e){function t(){p.state.handleSelection(e,a)}p.state.submitOnItemClick?(ht.flushSync(t),p.state.requestSubmit()):t()}let M={id:re,role:te?`gridcell`:`option`,"aria-selected":S?ie:void 0,tabIndex:void 0,onPointerDownCapture(e){u.current=!0,e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){s||y||j(e.nativeEvent)},onMouseUp(e){let t=u.current;u.current=!1,!(s||y||e.button!==0||t||!T)&&j(e.nativeEvent)}},oe=De(`div`,e,{ref:[k,t,ee.ref,O],state:A,props:[D,M,l,ae]}),se=V.useMemo(()=>({selected:ie,textRef:d}),[ie,d]);return(0,W.jsx)(Jt.Provider,{value:se,children:oe})})),Zt=V.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=H(),c=ft(),l=J(),u=s.length===0?a:null;return De(`div`,e,{ref:[t,c.state.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})});function Qt(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,W.jsx)(wt,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var $t=V.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=Z();return n||r?(0,W.jsx)(en,{...e,ref:t}):null}),en=V.memo(V.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=Z(),c=V.useRef(null),{transitionStatus:l,setMounted:u}=x(s),d=De(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:v});return he({open:s,ref:c,onComplete(){s||u(!1)}}),d})),tn=Qt;function nn({className:e,children:t,...n}){return(0,W.jsxs)(Dt,{"data-slot":`combobox-trigger`,className:R(`[&_svg:not([class*='size-'])]:size-3.5`,e),...n,children:[t,(0,W.jsx)(Ne,{className:`text-muted-foreground size-3.5 pointer-events-none`})]})}function rn({className:e,...t}){return(0,W.jsx)(Pt,{"aria-label":`Clear selection`,"data-slot":`combobox-clear`,render:(0,W.jsx)(ot,{variant:`ghost`,size:`icon-xs`}),className:R(e),...t,children:(0,W.jsx)(a,{className:`pointer-events-none`})})}function an({className:e,children:t,disabled:n=!1,showTrigger:r=!0,showClear:i=!1,...a}){return(0,W.jsxs)(st,{className:R(`w-auto`,e),children:[(0,W.jsx)(G,{render:(0,W.jsx)(it,{disabled:n}),...a}),(0,W.jsxs)(at,{align:`inline-end`,children:[r&&(0,W.jsx)(nn,{render:(0,W.jsx)(ot,{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,W.jsx)(rn,{disabled:n})]}),t]})}function on({className:e,side:t=`bottom`,sideOffset:n=6,align:r=`start`,alignOffset:i=0,anchor:a,...o}){return(0,W.jsx)(Vt,{children:(0,W.jsx)(Ht,{side:t,sideOffset:n,align:r,alignOffset:i,anchor:a,className:`isolate z-50`,children:(0,W.jsx)(Ut,{"data-slot":`combobox-content`,"data-chips":!!a,className:R(`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 max-md:*:data-[slot=input-group]:h-11 *: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 $({className:e,...t}){return(0,W.jsx)(Lt,{"data-slot":`combobox-list`,className:R(`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 sn({className:e,children:t,...n}){return(0,W.jsxs)(Xt,{"data-slot":`combobox-item`,className:R(`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 py-1 pr-8 pl-2 text-xs/relaxed max-md:min-h-11 [&_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,W.jsx)($t,{render:(0,W.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`}),children:(0,W.jsx)(Me,{className:`pointer-events-none`})})]})}function cn({className:e,...t}){return(0,W.jsx)(Kt,{"data-slot":`combobox-group`,className:R(e),...t})}function ln({className:e,...t}){return(0,W.jsx)(qt,{"data-slot":`combobox-label`,className:R(`text-muted-foreground px-2 py-1.5 text-xs`,e),...t})}function un({...e}){return(0,W.jsx)(q,{"data-slot":`combobox-collection`,...e})}function dn({className:e,...t}){return(0,W.jsx)(Zt,{"data-slot":`combobox-empty`,className:R(`text-muted-foreground hidden w-full justify-center py-2 text-center text-xs/relaxed group-data-empty/combobox-content:flex`,e),...t})}function fn({className:e,...t}){return(0,W.jsx)(fe,{className:R(`h-11 shrink-0 gap-1.5 px-3 text-sm data-[active=true]:border-primary/60 data-[active=true]:bg-primary/10 sm:h-8 sm:text-xs`,e),variant:`outline`,...t})}var pn={name:void 0,label:nt};function mn({value:t,onValueChange:n,allChannels:r=!1,pending:i=!1,active:a,className:o}){let s=rt(),[c,l]=(0,V.useState)(``),u=(0,V.useRef)(null),d=(0,V.useRef)(!1),f=s.data?.map(({name:e})=>e)??[],ee=t===void 0||f.includes(t)?f:[t,...f],p=[...r?[pn]:[],...ee.map(e=>({name:e,label:e}))],te=c.trim().toLowerCase(),m=p.filter(e=>e.label.toLowerCase().includes(te)),h=p.find(e=>e.name===t)??(t===void 0?pn:{name:t,label:t}),g=i?void 0:h.label;return(0,W.jsxs)(tn,{autoHighlight:!0,disabled:i,filter:null,inputValue:c,isItemEqualToValue:(e,t)=>e.name===t.name,itemToStringLabel:e=>e.label,items:m,onInputValueChange:l,onItemHighlighted:(e,t)=>{!d.current||t.reason!==`none`||(d.current=!1,queueMicrotask(()=>requestAnimationFrame(()=>{u.current&&(u.current.scrollTop=0)})))},onOpenChange:e=>{if(d.current=e,!e){l(``);return}s.data!==void 0&&!s.isFetching&&Date.now()-s.dataUpdatedAt>3e4&&s.refetch()},onValueChange:e=>{e!==null&&e.name!==t&&n(e.name)},value:i?null:h,children:[(0,W.jsxs)(nn,{"aria-label":g===void 0?`Channel`:`Channel: ${g}`,"data-active":a,render:(0,W.jsx)(fn,{className:o}),title:g,children:[(0,W.jsx)(`span`,{className:`text-muted-foreground`,children:`Channel`}),g===void 0?s.isError?null:(0,W.jsx)(e,{className:`h-3 w-16`}):(0,W.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-left sm:max-w-48`,translate:t===void 0?void 0:`no`,children:g})]}),(0,W.jsxs)(on,{className:`w-72 min-w-(--anchor-width)`,children:[(0,W.jsx)(an,{"aria-label":`Search channels`,maxLength:1024,placeholder:`Search channels…`,showTrigger:!1}),s.isPending?(0,W.jsx)(`p`,{className:`px-3 pt-2 text-xs text-muted-foreground`,children:`Loading channels…`}):s.isError&&s.data===void 0?(0,W.jsxs)(`div`,{className:`flex items-center justify-between gap-2 px-3 pt-2 text-xs text-muted-foreground`,children:[`Couldn't load channels.`,(0,W.jsxs)(fe,{className:`max-md:min-h-11`,onClick:()=>void s.refetch(),size:`sm`,variant:`outline`,children:[(0,W.jsx)(Pe,{"data-icon":`inline-start`}),`Retry channels`]})]}):null,(0,W.jsx)(dn,{className:`flex-col items-center gap-2 px-3`,children:te===``?null:(0,W.jsxs)(W.Fragment,{children:[`No channel matches “`,c.trim(),`”.`,(0,W.jsx)(fe,{className:`max-md:min-h-11`,onClick:()=>l(``),size:`sm`,variant:`outline`,children:`Clear search`})]})}),(0,W.jsx)($,{ref:u,children:e=>(0,W.jsx)(sn,{value:e,children:(0,W.jsx)(`span`,{className:`min-w-0 [overflow-wrap:anywhere]`,translate:e.name===void 0?void 0:`no`,children:e.label})},e.name??``)})]})]})}export{on as a,an as c,$ as d,nn as f,un as i,sn as l,fn as n,dn as o,tn as r,cn as s,mn as t,ln as u};
@@ -0,0 +1 @@
1
+ import{Cr as e,Sr as t,Vr as n,xr as r}from"./sidebar-BmzmPGuv.js";import{s as i}from"./tabs-Byfy8Qls.js";var a=n(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]);function o(n){let{render:a,className:o,style:s,state:c=e,props:l=t,refs:u=t,metadata:d,stateAttributesMapping:f,tag:p=`div`,...m}=n,{compositeProps:h,compositeRef:g}=i({metadata:d});return r(p,n,{state:c,ref:[...u,g],props:[h,...l,m],stateAttributesMapping:f})}export{a as n,o as t};
@@ -1 +1 @@
1
- import{In as e,Wr as t,p as n}from"./sidebar-Di9SN47G.js";import{a as r,c as i,n as a,o}from"./console-features-api-DEXSwFtc.js";import{t as s}from"./arrow-up-right-DK8Zdg40.js";import{t as c}from"./NotFoundPage-DZ3DxyRA.js";import{i as l,n as u,o as d,r as f,t as p}from"./empty-B3Uwdd6k.js";var m=t(),h=`https://hot-updater.dev/docs/guides/console-deployment`;function g({data:t}){let g=a(t),_=r().data?.remote===!0;if(g===void 0)return(0,m.jsx)(c,{});let{label:v,plugin:y}=o[g],b=(0,m.jsx)(`code`,{className:`font-mono`,children:`${y}()`});return(0,m.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,m.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 items-center gap-3 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,m.jsx)(n,{className:`-ml-1`}),(0,m.jsx)(`h1`,{className:`text-sm font-medium`,children:v})]}),(0,m.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,m.jsxs)(p,{children:[(0,m.jsx)(l,{children:i(g,{remote:_})===`remote`?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(d,{children:`Needs the server's database`}),(0,m.jsx)(f,{children:`This console reaches a self-hosted server through its admin API, which does not serve this page. Configure the console with the database the server uses.`})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(d,{children:[v,` not installed`]}),(0,m.jsxs)(f,{children:[`Add `,b,` to `,(0,m.jsx)(`code`,{className:`font-mono`,children:`plugins`}),` `,`where you create the server and in the console config.`]})]})}),(0,m.jsx)(u,{children:(0,m.jsxs)(`a`,{className:e({variant:`outline`}),href:h,rel:`noreferrer`,target:`_blank`,children:[`Console setup guide`,(0,m.jsx)(s,{"aria-hidden":`true`,"data-icon":`inline-end`})]})})]})})]})}export{g as t};
1
+ import{Di as e,_r as t,p as n}from"./sidebar-BmzmPGuv.js";import{a as r,c as i,n as a,o}from"./console-features-api-CtbGqKyr.js";import{t as s}from"./arrow-up-right-C_1ALUCD.js";import{t as c}from"./NotFoundPage-BEpesHEm.js";import{i as l,n as u,o as d,r as f,t as p}from"./empty-C5GqArX9.js";var m=e(),h=`https://hot-updater.dev/docs/guides/console-deployment`;function g({data:e}){let g=a(e),_=r().data?.remote===!0;if(g===void 0)return(0,m.jsx)(c,{});let{label:v,plugin:y}=o[g],b=(0,m.jsx)(`code`,{className:`font-mono`,children:`${y}()`});return(0,m.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,m.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 items-center gap-3 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,m.jsx)(n,{className:`-ml-1`}),(0,m.jsx)(`h1`,{className:`text-sm font-medium`,children:v})]}),(0,m.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,m.jsxs)(p,{children:[(0,m.jsx)(l,{children:i(g,{remote:_})===`remote`?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(d,{children:`Needs the server's database`}),(0,m.jsx)(f,{children:`This console reaches a self-hosted server through its admin API, which does not serve this page. Configure the console with the database the server uses.`})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(d,{children:[v,` not installed`]}),(0,m.jsxs)(f,{children:[`Add `,b,` to `,(0,m.jsx)(`code`,{className:`font-mono`,children:`plugins`}),` `,`where you create the server and in the console config.`]})]})}),(0,m.jsx)(u,{children:(0,m.jsxs)(`a`,{className:t({variant:`outline`}),href:h,rel:`noreferrer`,target:`_blank`,children:[`Console setup guide`,(0,m.jsx)(s,{"aria-hidden":`true`,"data-icon":`inline-end`})]})})]})})]})}export{g as t};
@@ -0,0 +1 @@
1
+ import{Di as e,Ri as t,Vi as n,Vr as r,_ as i,b as a,g as o,gr as s,v as c,x as l,y as u}from"./sidebar-BmzmPGuv.js";import{f as d}from"./insights-api-C4Dmm34n.js";import{t as f}from"./check-C3VCvMOV.js";import{t as p}from"./chevron-down-BkoJHAll.js";import{t as m}from"./copy-BjVLMKbo.js";import{t as h}from"./download-CgpaZb23.js";import{n as g}from"./dist-BEmib-ZM.js";import{t as _}from"./rotate-ccw-tITIe0Bd.js";import{t as v}from"./smartphone-Dy13ukaU.js";import{t as y}from"./badge-zMibJGR5.js";import{i as b,o as x,r as S,t as C}from"./empty-C5GqArX9.js";import{t as w}from"./HashValueDisplay-DTSMSH9O.js";import{n as T,r as E}from"./InsightsPageHeader-ypKKV3rL.js";var D=r(`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`}]]),O=r(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),k=r(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),A=r(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),j=n(t(),1),M=e(),N={UPDATE_DOWNLOADED:{label:`Downloaded`,description:`Downloaded. It launches when the app restarts.`,variant:`default`,icon:h},UPDATE_APPLIED:{label:`Launched`,description:`The app restarted into the downloaded bundle.`,variant:`success`,icon:f},RECOVERED:{label:`Crashed`,description:`Crashed on the bundle and rolled back.`,variant:`warning`,icon:_},UPDATE_FAILED:{label:`Update failed`,description:`An update check, download, or install failed.`,variant:`destructive`,icon:k},UNCHANGED:{label:`Launch`,description:`The app launched; the report changed nothing.`,variant:`secondary`,icon:D}},P=e=>{let{kinds:t=[],previous:n}=e.change??{};return t.includes(`first_seen`)?{label:`First seen`,description:`The installation's first report to this server.`,variant:`secondary`,icon:A}:t.includes(`app_version`)||t.includes(`native_build`)?{label:`App updated`,description:n&&n.appVersion!==e.appVersion?`From app ${n.appVersion} to ${e.appVersion}.`:`A new build of the same app version.`,variant:`secondary`,icon:v}:t.includes(`bundle`)?{label:`Launched`,description:`Seen running this bundle; the report of the restart into it never arrived.`,variant:`success`,icon:f}:t.includes(`release`)?{label:`Release adopted`,description:`The bundle it runs now ships under another release.`,variant:`secondary`,icon:O}:t.includes(`channel`)?{label:`Channel changed`,description:n?`From ${n.channel} to ${e.channel}.`:`It reports on another channel.`,variant:`secondary`,icon:O}:N.UNCHANGED},F=e=>e.type===`UNCHANGED`&&e.change?P({change:e.change,appVersion:e.appVersion??``,channel:e.channel??``}):N[e.type];function I(){let[e,t]=(0,j.useState)(`UTC`);return(0,j.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 L(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 R({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=L(e,t);return(0,M.jsxs)(`details`,{className:`group/time`,children:[(0,M.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,M.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,M.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,M.jsx)(p,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,M.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}var z={patch:`A patch delivered it.`,manifest:`Only the changed files were downloaded.`,archive:`The full archive was downloaded.`},B=e=>{if(e.late)return`Counted nothing: the installation had already downloaded or run this bundle.`;if(e.impliedDownload)return`Its download report never arrived; the download counted with it.`;if(e.type===`UPDATE_FAILED`&&e.failure)return d(e.failure);if(e.type===`UPDATE_DOWNLOADED`&&e.delivery){let t=z[e.delivery]??null;return e.patchFallback?`The patch failed. ${t??``}`.trim():t}return null};function V({response:e}){let t=async()=>{try{await navigator.clipboard.writeText(e.body),g.success(`Response body copied`)}catch{g.error(`Could not copy the response body`)}};return(0,M.jsxs)(`section`,{"aria-label":`Response body`,className:`flex min-w-0 flex-col gap-3`,children:[(0,M.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response body`}),(0,M.jsxs)(s,{variant:`outline`,className:`min-h-11`,disabled:e.body===null||e.body===``,onClick:()=>void t(),children:[(0,M.jsx)(m,{"aria-hidden":`true`,"data-icon":`inline-start`}),` Copy body`]})]}),e.bodyTruncated?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Truncated to the 4 KiB reporting limit. Copy includes only the stored text.`}):null,e.body?(0,M.jsx)(`pre`,{className:`rounded-md border bg-muted/30 p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:e.body}):(0,M.jsx)(C,{children:(0,M.jsxs)(b,{children:[(0,M.jsx)(x,{children:e.body===null?`Response body unavailable`:`Empty response body`}),(0,M.jsx)(S,{children:e.body===null?`The client received the HTTP status but could not read the body.`:e.status===304?`The server returned no body. The client can reuse its cached catalog.`:`The server returned no text in this response.`})]})})]})}function H({event:e}){let t=e.httpResponse,n=I(),r=t.status===304?`Not modified`:t.status>=500?`Server error`:t.status>=400?`Request error`:t.status>=300?`Redirect`:`Success`,d=t.resource===`catalog`?`Catalog`:`Artifact`,f=[[`App`,e.platform&&`${e.platform===`ios`?`iOS`:`Android`} ${e.appVersion}`],[`Channel`,e.channel],[`SDK`,e.sdkVersion],[`Installation`,e.installId]].filter(([,e])=>e!=null);return(0,M.jsxs)(o,{children:[(0,M.jsxs)(l,{"aria-label":`View ${d.toLowerCase()} response: HTTP ${t.status}`,render:(0,M.jsx)(s,{variant:`ghost`,className:`-ml-2 h-auto min-h-11 justify-start`}),children:[(0,M.jsxs)(y,{variant:t.status>=400?`destructive`:`secondary`,children:[`HTTP `,t.status]}),(0,M.jsxs)(`span`,{children:[d,` response`]})]}),(0,M.jsxs)(i,{className:`data-[side=right]:w-full data-[side=right]:sm:max-w-2xl`,children:[(0,M.jsxs)(u,{className:`border-b pr-14`,children:[(0,M.jsx)(a,{children:`HTTP response`}),(0,M.jsxs)(c,{children:[d,` · HTTP `,t.status,` · `,r,`. Most recent response available when this report was created.`]})]}),(0,M.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-6`,children:[(0,M.jsxs)(`section`,{"aria-label":`Request`,className:`flex min-w-0 flex-col gap-2`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Request`}),(0,M.jsxs)(`p`,{className:`font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:[`GET `,t.path]}),t.receivedAtMs==null?null:(0,M.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Response received`,` `,(0,M.jsx)(R,{value:t.receivedAtMs,formatter:n})]})]}),(0,M.jsx)(V,{response:t}),f.length?(0,M.jsxs)(`section`,{"aria-label":`Response context`,className:`flex flex-col gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response context`}),(0,M.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-6 gap-y-4`,children:f.map(([e,t])=>(0,M.jsxs)(`div`,{className:`min-w-0`,children:[(0,M.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,M.jsx)(`dd`,{className:`mt-1 text-sm wrap-anywhere`,children:t})]},e))})]}):null]})]})]})}function U({event:e}){let t=F(e),n=t.icon,r=B(e);return(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,M.jsxs)(y,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,M.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,M.jsx)(`p`,{className:`max-w-56 whitespace-pre-wrap wrap-anywhere text-xs text-muted-foreground`,children:e.type===`UPDATE_FAILED`&&r?r:t.description}),e.httpResponse?(0,M.jsx)(H,{event:e}):null,e.type===`UPDATE_FAILED`&&e.failure?.errorStack?(0,M.jsxs)(`details`,{className:`w-full max-w-56 text-xs`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`Stack trace`}),(0,M.jsx)(`pre`,{className:`mt-2 max-h-64 overflow-auto whitespace-pre-wrap wrap-anywhere font-mono`,children:e.failure.errorStack})]}):null,e.type!==`UPDATE_FAILED`&&r?(0,M.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:r}):null]})}function W({event:e,touch:t=!1}){let n=e.type===`UPDATE_DOWNLOADED`,r=e.type===`UPDATE_FAILED`,i=!r||e.failure?.stage!==`check`,a=e.type===`UNCHANGED`&&e.change?.kinds.includes(`bundle`)===!0&&e.change.previous!==void 0,o=a?e.change.previous.bundleId:e.fromBundleId,s=n||r||a||e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,M.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[o&&s?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n||r?`Running`:`From`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(w,{value:o,buttonClassName:t?`min-h-11 px-3`:void 0}),E(o,a?e.change.previous.minBundleId:e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null,i?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`Pending`:r?`Target`:s?`To`:`Current`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(w,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0}),E(e.toBundleId,e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null]})}export{H as a,V as i,R as n,I as o,U as r,W as t};
@@ -0,0 +1 @@
1
+ import{$ as e,Di as t,Ri as n,Vi as r,gr as i}from"./sidebar-BmzmPGuv.js";import{t as a}from"./chevron-right-RAuPv9r1.js";import{o,r as s}from"./table-DbZPkzdz.js";import{o as c}from"./RelativeTime-BQErgQRj.js";var l=r(n(),1),u=t(),d=e=>e.from??``,f=(e,t)=>`${e.count}${e.more?`+`:``} ${e.count===1&&!e.more?t.one:t.other}`,p=e=>{let t=[];for(let n of e){let e=t.at(-1);n.kind===`fold`?t.push({kind:`fold`,fold:n}):e?.kind===`rows`?e.rows.push(n.row):t.push({kind:`rows`,rows:[n.row]})}return t};function m(){let[e,t]=(0,l.useState)(()=>new Set);return{isOpen:t=>e.has(t),set:(e,n)=>t(t=>{if(t.has(e)===n)return t;let r=new Set(t);return n?r.add(e):r.delete(e),r})}}function h({label:e,open:t,onOpenChange:n,panelId:r}){return(0,u.jsxs)(`button`,{"aria-controls":r,"aria-expanded":t,className:`group/fold flex min-h-11 w-full items-center gap-2 px-4 text-left text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-inset motion-reduce:transition-none sm:min-h-9 sm:px-3`,onClick:()=>n(!t),type:`button`,children:[(0,u.jsx)(a,{"aria-hidden":`true`,className:`size-3.5 shrink-0 transition-transform group-aria-expanded/fold:rotate-90 motion-reduce:transition-none`}),e]})}function g({columns:e,children:t,...n}){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(c,{children:(0,u.jsx)(o,{className:`bg-muted/20 hover:bg-muted/20`,children:(0,u.jsx)(s,{className:`p-0`,colSpan:e,children:(0,u.jsx)(h,{...n})})})}),(0,u.jsx)(c,{hidden:!n.open,id:n.panelId,children:n.open?t:null})]})}function _({children:e,inList:t=!1,...n}){return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(`div`,{className:`border-b bg-muted/20`,role:t?`listitem`:void 0,children:(0,u.jsx)(h,{...n})}),(0,u.jsx)(`div`,{hidden:!n.open,id:n.panelId,children:n.open?e:null})]})}function v({state:t,label:n,onMore:r,onRetry:a,columns:c}){let l=t===`loading`?(0,u.jsxs)(`div`,{"aria-live":`polite`,className:`flex flex-col gap-2 p-3`,children:[(0,u.jsx)(`span`,{className:`sr-only`,children:n}),(0,u.jsx)(e,{className:`h-8 w-full`}),(0,u.jsx)(e,{className:`h-8 w-full`})]}):(0,u.jsxs)(`div`,{className:`flex items-center gap-3 px-4 py-2 sm:px-3`,children:[t===`error`?(0,u.jsxs)(`span`,{className:`text-xs text-muted-foreground`,role:`status`,children:[n,` couldn't be loaded.`]}):null,(0,u.jsx)(i,{className:`h-11 px-3 text-xs sm:h-8`,onClick:t===`error`?a:r,size:`sm`,variant:`ghost`,children:t===`error`?`Retry`:`Show more`})]});return c===void 0?(0,u.jsx)(`div`,{className:`border-b`,children:l}):(0,u.jsx)(o,{className:`hover:bg-transparent`,children:(0,u.jsx)(s,{className:`p-0`,colSpan:c,children:l})})}var y=e=>{let t=0,n=!1;for(let r of e)r.kind===`fold`&&(t+=r.count,n||=r.more);return{count:t,more:n}};export{f as a,m as c,d as i,g as n,y as o,v as r,p as s,_ as t};
@@ -0,0 +1 @@
1
+ import{Di as e,Ri as t,Vi as n,at as r,nt as i,rt as a,vr as o}from"./sidebar-BmzmPGuv.js";import{n as s}from"./dist-BEmib-ZM.js";var c=n(t(),1),l=e(),u=(e,t=12)=>e.length>t?`${e.slice(0,Math.max(1,t-4))}…${e.slice(-4)}`:e;function d({value:e,display:t=e,maxLength:n=12,className:d,buttonClassName:f,hint:p}){let[m,h]=(0,c.useState)(!1),g=t!==e||t.length>n,_=u(t,n),v=async()=>{try{await navigator.clipboard.writeText(e),s.success(`Copied to clipboard`,{description:e})}catch{s.error(`Failed to copy value`)}},y=e=>{e.preventDefault(),e.stopPropagation(),p&&h(!0),v()},b=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),v())},x=(0,l.jsx)(`span`,{translate:`no`,className:o(`font-mono text-xs tabular-nums whitespace-nowrap`,d),children:_});return(0,l.jsxs)(i,{open:m,onOpenChange:h,children:[(0,l.jsx)(r,{closeOnClick:!p,render:(0,l.jsx)(`button`,{type:`button`,"aria-label":`Copy full value: ${e}`,translate:`no`,className:o(`ring-ring/30 bg-muted/40 border-border/70 relative inline-flex min-w-0 after:absolute after:inset-x-0 after:-inset-y-3 sm:after:hidden max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]`,`hover:bg-muted/70 active:scale-[0.98] active:bg-muted/85 focus-visible:ring-[2px]`,`touch-manipulation select-none motion-reduce:transition-none motion-reduce:active:scale-100`,!g&&`cursor-copy`,f),onClick:y,onKeyDown:b}),children:x}),(0,l.jsxs)(a,{className:p?`max-w-64 flex-col items-start`:void 0,hidden:!g&&!p,children:[g?(0,l.jsx)(`p`,{translate:`no`,className:`break-all font-mono text-xs tabular-nums`,children:e}):null,p?(0,l.jsx)(`p`,{children:p}):null]})]})}export{u as n,d as t};
@@ -0,0 +1 @@
1
+ import{Di as e,_r as t,p as n}from"./sidebar-BmzmPGuv.js";import{t as r}from"./link-CRMwpc7-.js";import{i,s as a}from"./console-features-api-CtbGqKyr.js";import{b as o,x as s}from"./insights-api-C4Dmm34n.js";import{t as c}from"./list-DQ9YBIDW.js";import{a as l,i as u,n as d,o as f,t as p}from"./badge-zMibJGR5.js";import{i as m,r as h,t as g}from"./tabs-Byfy8Qls.js";var _=e();function v({error:e,fallbackTitle:t}){return a(e)?(0,_.jsxs)(d,{children:[(0,_.jsx)(o,{"aria-hidden":`true`}),(0,_.jsx)(l,{children:`Insights not installed`}),(0,_.jsx)(u,{children:e.message})]}):(0,_.jsxs)(d,{variant:`destructive`,children:[(0,_.jsx)(f,{"aria-hidden":`true`}),(0,_.jsx)(l,{children:t}),(0,_.jsx)(u,{children:`Refresh to try again. If this keeps happening, check your Insights provider connection.`})]})}var y={"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`},"12m":{label:`YAU`,period:`12 months`,interval:`week`}};function b({label:e,onPeriodChange:t,period:n,periods:r}){return(0,_.jsx)(g,{value:n,onValueChange:e=>{let n=r.find(t=>t.value===e);n&&t(n.value)},children:(0,_.jsx)(h,{"aria-label":e,className:`min-h-11 sm:min-h-9`,children:r.map(({value:e,name:t})=>(0,_.jsx)(m,{value:e,"aria-label":t,className:`min-w-12 px-3`,children:e},e))})})}var x=[`24h`,`7d`,`30d`].map(e=>({value:e,name:y[e].period})),S=Object.keys(y).map(e=>({value:e,name:y[e].period}));function C({window:e,onWindowChange:t}){return(0,_.jsx)(b,{label:`Reporting period`,onPeriodChange:t,period:e,periods:x})}function w({window:e,onWindowChange:t,twelveMonths:n=!0}){return(0,_.jsx)(b,{label:`Reporting period`,onPeriodChange:t,period:e,periods:S.filter(({value:e})=>n||e!==`12m`)})}var T=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-7000-8000-(?:000000000000|0[12][0-9a-f]{10})|00000000-0000-0000-0000-000000000000)$/iu,E=(e,t)=>e!=null&&(e===t||T.test(e));function D(){return(0,_.jsx)(p,{className:`shrink-0 font-sans font-normal`,title:`The bundle the native build shipped`,variant:`secondary`,children:`Built-in bundle`})}function O({view:e,overviewSearch:a}){let o=i(`insightsAnalytics`);return(0,_.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-3 border-b bg-background px-3 py-3 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,_.jsx)(n,{className:`-ml-1 size-11 lg:size-7`}),(0,_.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,_.jsx)(s,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,_.jsx)(`h1`,{className:`text-sm font-medium`,children:`Insights`})]}),(0,_.jsxs)(`nav`,{"aria-label":`Insights views`,className:`ml-auto flex gap-2`,children:[o?(0,_.jsx)(r,{"aria-current":e===`overview`?`page`:void 0,className:t({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:e===`overview`?`secondary`:`ghost`}),search:a,to:`/insights`,children:`Overview`}):null,(0,_.jsxs)(r,{"aria-current":e===`events`?`page`:void 0,className:t({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:e===`events`?`secondary`:`ghost`}),to:`/installations`,children:[(0,_.jsx)(c,{"aria-hidden":`true`,"data-icon":`inline-start`}),`All events`]})]})]})}export{b as a,v as c,C as i,D as n,w as o,E as r,y as s,O as t};
@@ -0,0 +1 @@
1
+ import{$ as e,Di as t,Hr as n,Oi as r,Q as i,Ri as a,Si as o,Vi as s,_r as c,di as l,gr as u,wi as d,zr as f}from"./sidebar-BmzmPGuv.js";import{t as p}from"./link-CRMwpc7-.js";import{t as m}from"./useMutation-D7IuoOLE.js";import{a as ee}from"./-native-builds-search-6aptbS4G.js";import{t as te}from"./loader-circle-8lunBReu.js";import{D as h,T as g,a as _,b as v,f as y,i as b,l as x,o as S,p as C,r as ne,u as re}from"./native-builds-B6t0ZxKP.js";import{r as ie}from"./dist-BEmib-ZM.js";import{t as ae}from"./smartphone-Dy13ukaU.js";import{a as w,i as T,n as E,o as D}from"./badge-zMibJGR5.js";import{n as oe}from"./relativeTime-RUNbaMyO.js";import{a as se,n as ce,r as le,t as ue}from"./field-DInLQ5oV.js";import{m as de}from"./api-znPyglTl.js";var O=s(a(),1),k=s(oe(),1),fe=d({method:`GET`}).middleware([f]).handler(r(`3a62744a539db57f5a29f39cec7fb03fd2817703b40d98e6da69e2f5e7ae6f3d`)),pe=d({method:`POST`}).middleware([f]).handler(r(`7138a71df2ede8dd2c3db732d8d0ae10c56b85a8177dcdacf4e747b8087177c6`)),me=d({method:`POST`}).middleware([f]).handler(r(`4b173c2b2f5ea074a1f10862282308f11f5a043c044d64b6f63e6a29d571ec64`)),he=d({method:`POST`}).middleware([f]).handler(r(`7908c24ccc2674ce07a553a645b8f4790889975a80f424a05d71a9fb8ab49787`)),ge=d({method:`POST`}).middleware([f]).handler(r(`4c92dfeae76a6fc898d6f38941eeedaec1f3d118f51a6f31ebf0bb1cea3fcea4`)),_e=d({method:`POST`}).middleware([f]).handler(r(`8e37ec67413ceba554adb2d4b15e53682595a089d4b431ba7965d4347fb500fc`)),ve=d({method:`GET`}).middleware([f]).handler(r(`a11cb4014e6b23528f76382c43684798b0e84a6936aaba02c918e8f4e216e282`)),A={all:[`ios-devices`],list:e=>[`ios-devices`,e.status??`all`,{before:e.before,after:e.after}],device:e=>[`ios-devices`,`device`,e],kept:e=>[`ios-devices`,`kept`,e??``],ipa:e=>[`native-build-ipa-devices`,e]},j=600*1e3;function ye(e){return n({queryKey:A.list(e),queryFn:()=>fe({data:e}),placeholderData:l})}function be(e){return n({queryKey:A.device(e??``),queryFn:()=>pe({data:{udid:e}}),enabled:e!==null})}function M(e,t=!0){return n({queryKey:[`ios-device-profile-link`,e],queryFn:()=>me({data:e}),enabled:t,staleTime:j,refetchInterval:j})}function N(e){return n({queryKey:A.ipa(e),queryFn:()=>ve({data:{id:e}})})}var P=e=>{let t=o();return m({mutationFn:e,onSettled:async()=>{await Promise.all([t.invalidateQueries({queryKey:A.all}),t.invalidateQueries({queryKey:[`native-build-install-eligibility`]})])}})},xe=()=>P(e=>he({data:e})),Se=()=>P(e=>ge({data:e})),Ce=()=>P(e=>_e({data:e})),F=(e,t)=>`${e}/_hot-updater/devices/${t}`,I=async(e,t={})=>{let{json:n,...r}=t,i=await fetch(e,{credentials:`same-origin`,...r,...n===void 0?{}:{headers:{"content-type":`application/json`},body:JSON.stringify(n)}}),a=await i.json().catch(()=>null);if(!i.ok||a===null)throw Error(a?.error??`Request failed (${i.status}).`);return a},L=`hot-updater-ios-device-kept`,R=`hot-updater-ios-device-kept`,z=new Map,B=(e,t)=>{let n=z.get(t);return n===void 0&&(n=I(F(e,`receipt`),{method:`POST`,json:{receipt:t}}).then(e=>{h(t),window.dispatchEvent(new Event(L));try{window.localStorage.setItem(R,String(Date.now()))}catch{}return e},e=>{throw z.delete(t),e}),z.set(t,n)),n};function V(e,t,r){let i=o();return(0,O.useEffect)(()=>{let e=()=>void i.invalidateQueries({queryKey:A.kept(null),exact:!0}),t=t=>{t.key===R&&e()};return window.addEventListener(L,e),window.addEventListener(`storage`,t),()=>{window.removeEventListener(L,e),window.removeEventListener(`storage`,t)}},[i]),n({queryKey:A.kept(t),queryFn:async()=>{let n=null;t!==null&&await B(e,t).catch(e=>{n=e});let r=await I(F(e,`receipt`));if(n!==null&&r.udid===null)throw n;return r},enabled:r,retry:!1,staleTime:1/0})}var we=async e=>{await I(F(e,`receipt`),{method:`DELETE`}).catch(()=>void 0)},H=e=>P(t=>I(F(e,`request`),{method:`POST`,json:t.receipt===null?{name:t.name}:{name:t.name,receipt:t.receipt}})),U=(e,t)=>e!=null&&t!==null&&e.toLowerCase()===t.toLowerCase(),W=t(),Te=`With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.`,G=`h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit`,K=e=>/iPhone|iPod|iPad/u.test(e.userAgent)||/Macintosh/u.test(e.userAgent)&&e.maxTouchPoints>1,q=()=>{if(typeof window>`u`)return{udid:null,receipt:null,requested:!1};let e=new URLSearchParams(window.location.hash.slice(1)),t=e.get(`udid`),n=t!==null&&b.test(t)?t:null;return{udid:n,receipt:n===null?null:e.get(`r`),requested:n!==null&&e.get(`requested`)===`1`}},Ee=e=>{try{return window.localStorage.getItem(e)}catch{return null}},J=(e,t)=>{try{window.localStorage.setItem(e,t)}catch{}},Y=`hot-updater-ios-device-adopted`,X=(e,t)=>{let n=e?.ios===!0&&e.udid===null&&t!=null&&b.test(t)?t:null;(0,O.useEffect)(()=>{n!==null&&(J(_,n),window.dispatchEvent(new Event(Y)))},[n])},De=()=>{let[e,t]=(0,O.useState)(null),[n]=(0,O.useState)(q);return(0,O.useEffect)(()=>{let e=e=>e!=null&&b.test(e)?e:null,r=n,i=0,a=e=>{let t=e.receipt!==null||e.requested;e.udid!==null&&t&&(i+=1,J(_,e.udid),e.receipt!==null&&(y(e.udid,e.receipt),B(re(window.location),e.receipt).catch(()=>void 0))),e.udid!==null&&window.location.hash!==``&&window.history.replaceState(window.history.state,``,`${window.location.pathname}${window.location.search}`)};a(n);try{window.localStorage.removeItem(ne)}catch{}let o=()=>{let n=e(Ee(`hot-updater-ios-udid`))??r.udid,a=(r.udid===n?r.receipt:null)??g(n),o=r.requested,s=i;t(e=>e!==null&&e.udid===n&&e.receipt===a&&e.requested===o&&e.answers===s?e:{ios:K(navigator),udid:n,receipt:a,requested:o,answers:s})};o();let s=e=>{(e.key===null||e.key===`hot-updater-ios-udid`)&&o()},c=()=>{let e=q();e.udid!==null&&(r=e,a(e)),o()};return window.addEventListener(`storage`,s),window.addEventListener(Y,o),window.addEventListener(`hashchange`,c),window.addEventListener(`pageshow`,c),document.addEventListener(`visibilitychange`,c),()=>{window.removeEventListener(`storage`,s),window.removeEventListener(Y,o),window.removeEventListener(`hashchange`,c),window.removeEventListener(`pageshow`,c),document.removeEventListener(`visibilitychange`,c)}},[n]),e},Oe=300*1e3,Z=(e,t)=>{let[,n]=(0,O.useReducer)(e=>e+1,0),r=e+S-Oe;return(0,O.useEffect)(()=>{if(!t)return;let e=setTimeout(n,Math.max(0,r-Date.now()));return document.addEventListener(`visibilitychange`,n),window.addEventListener(`pageshow`,n),()=>{clearTimeout(e),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`pageshow`,n)}},[r,t]),t&&Date.now()>=r};function ke({fetching:e,onRenew:t}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`This install link has expired.`,e?` Getting a new one.`:``]}),e?null:(0,W.jsx)(u,{className:G,onClick:t,variant:`outline`,children:`Get a new link`})]})}function Ae({build:e,token:t}){return(0,W.jsx)(`a`,{className:c({className:G}),href:v(window.location,e.id,t),children:`Install`})}function je(){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`On iOS 16 or later, the app opens only with Developer Mode on: Settings, Privacy & Security, Developer Mode.`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Te})]})}function Q({build:t,again:n=!1}){let r=M({mode:`identify`,buildId:t.id});return r.data?.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,r.data.secretName,` on the Console to check iPhones from this page.`]}):r.data?.status===`issued`?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(`a`,{className:c({className:G,variant:n?`secondary`:`default`}),href:C(x(window.location,t.id),r.data.token),children:[(0,W.jsx)(ae,{"data-icon":`inline-start`}),n?`Check this iPhone again`:`Check this iPhone`]}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Allow the download, then install it in Settings, where iOS calls it not signed. Nothing stays installed.`})]}):r.isError?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`The check couldn't start`}),(0,W.jsx)(T,{children:`Check your connection and try again.`})]}),(0,W.jsxs)(u,{className:G,disabled:r.isFetching,onClick:()=>void r.refetch(),variant:`outline`,children:[(0,W.jsx)(ie,{"data-icon":`inline-start`}),`Reload`]})]}):(0,W.jsx)(e,{"aria-label":`Preparing the check`,className:`h-11 w-full`})}var Me=e=>(0,k.default)(e).format(`MMM D`);function $({device:e,canApprove:t,onDevicesPage:n=!1}){return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Apple didn't register this iPhone`}),(0,W.jsx)(T,{children:e.apple_error})]}),t?n?null:(0,W.jsx)(p,{className:c({className:G,variant:`outline`}),to:`/native-builds/devices`,children:`iOS devices`}):(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:e.status===`approved`?`Ask a maintainer to free a device slot.`:`Ask a maintainer to check it on the iOS devices page.`})]})}function Ne({build:t,device:n,registry:r,newerBuild:a,canApprove:o,registryReadAt:s}){let l=x(window.location,t.id),d=H(l),f=V(l,n.receipt,n.ios&&n.udid!==null&&r===null),m=n.receipt!==null||U(f.data?.udid,n.udid),[h,g]=(0,O.useState)(``),[_,v]=(0,O.useState)(null),y=_!==null&&s<=_.readBefore,b=y?_.device:r,S=(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Not in this build`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`This IPA was signed without this iPhone, and iOS won't install it here.`})]});if(b!==null){let e=y?null:a;return b.apple_error!==null&&e===null?(0,W.jsx)($,{canApprove:o,device:b}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-sm`,role:`status`,children:b.status===`pending`?`${b.name} was requested on ${Me(b.created_at_ms)}. A maintainer approves it next.`:e===null?`${b.name} is ${b.status}. It joins the next ad hoc build.`:`A newer build has ${b.name}.`}),e===null?null:(0,W.jsx)(p,{className:c({className:G}),params:{buildId:e},to:`/native-builds/$buildId`,children:`Open the newer build`})]})}if(!m&&f.isPending&&n.udid!==null)return(0,W.jsx)(e,{"aria-label":`Reading this iPhone`,className:`h-11 w-full`});if(!m)return(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[S,(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Check this iPhone once more to request it for the next ad hoc build.`}),(0,W.jsx)(Q,{build:t,again:!0})]});let C=h.trim();return(0,W.jsxs)(`form`,{className:`flex min-w-0 flex-col gap-3`,onSubmit:e=>{if(e.preventDefault(),C===``)return;let t=s;d.mutate({receipt:n.receipt,name:C},{onSuccess:({device:e})=>v({device:e,readBefore:t})})},children:[S,(0,W.jsxs)(ue,{"data-invalid":d.isError||void 0,children:[(0,W.jsx)(se,{htmlFor:`ios-device-name`,children:`This iPhone's name`}),(0,W.jsx)(i,{autoComplete:`off`,className:`h-11 sm:h-8`,id:`ios-device-name`,maxLength:100,onChange:e=>g(e.target.value),placeholder:`Kim's iPhone`,value:h}),(0,W.jsx)(ce,{children:`A maintainer approves it, and it joins the next ad hoc build.`}),(0,W.jsx)(le,{children:d.isError?`The request didn't go through. Check this iPhone again, then try once more.`:null})]}),(0,W.jsxs)(u,{className:G,disabled:C===``||d.isPending,type:`submit`,children:[d.isPending?(0,W.jsx)(te,{className:`animate-spin motion-reduce:animate-none`,"data-icon":`inline-start`}):(0,W.jsx)(ee,{"data-icon":`inline-start`}),`Request access`]}),d.isError?(0,W.jsx)(Q,{again:!0,build:t}):null]})}function Pe({build:t,device:n}){X(n,V(x(window.location,t.id),n.receipt,n.ios&&n.udid===null).data?.udid);let{udid:r}=n,i=de(t.id,r),{refetch:a}=i,o=Z(i.dataUpdatedAt,i.data?.status===`installable`&&i.data.device===`included`);if((0,O.useEffect)(()=>{o&&a()},[o,a]),i.isPending)return(0,W.jsx)(e,{"aria-label":`Reading this IPA`,className:`h-11 w-full`});let s=i.data;if(s===void 0||s.status===`unavailable`)return(0,W.jsxs)(E,{children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`Installation details unavailable`}),(0,W.jsx)(T,{children:`The Console couldn't read this IPA from storage in parts, which takes an HTTPS download link that answers Range requests. Other ways to install still work from a computer.`})]});if(s.status===`store`)return(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.is_sandbox?`This IPA is an App Store export, which doesn't install from this page.`:`This IPA is an App Store export, which installs through TestFlight, not from this page.`});if(s.status===`expired`)return(0,W.jsxs)(E,{variant:`destructive`,children:[(0,W.jsx)(D,{}),(0,W.jsx)(w,{children:`This build's profile has expired`}),(0,W.jsxs)(T,{children:[`It expired on `,(0,k.default)(s.expiresAt).format(`YYYY-MM-DD`),`. A maintainer rebuilds it to install again.`]})]});let c=s.link.status===`issued`?s.link.token:null;return s.link.status===`no-secret`?(0,W.jsxs)(`p`,{className:`text-xs text-muted-foreground`,role:`status`,children:[`Set `,s.link.secretName,` on the Console to install from this page.`]}):c===null?null:s.device===`included`?(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`In this build`}),o?(0,W.jsx)(ke,{fetching:i.isFetching,onRenew:()=>void a()}):(0,W.jsx)(Ae,{build:t,token:c}),(0,W.jsx)(je,{})]}):s.device===`not-included`?(0,W.jsx)(Ne,{build:t,device:n,registry:s.registry,newerBuild:s.newerBuild,canApprove:s.canApprove,registryReadAt:i.dataUpdatedAt}):(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,W.jsx)(`p`,{className:`text-sm font-medium`,children:`Check this iPhone first`}),(0,W.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`iOS installs this IPA only on the devices it lists. A profile reads this iPhone's ID, then Safari comes back here.`})]}),(0,W.jsx)(Q,{build:t})]})}export{H as _,De as a,U as c,be as d,ye as f,Se as g,Ce as h,X as i,xe as l,N as m,Pe as n,we as o,V as p,K as r,A as s,$ as t,M as u};
@@ -0,0 +1 @@
1
+ import{Di as e,vr as t}from"./sidebar-BmzmPGuv.js";import{t as n}from"./link-CRMwpc7-.js";import{a as r}from"./tabs-Byfy8Qls.js";var i=e(),a=`relative inline-flex h-full min-h-11 items-center justify-center rounded-md border border-transparent px-3 text-xs font-medium whitespace-nowrap text-foreground/60 transition-colors hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm dark:text-muted-foreground dark:hover:text-foreground dark:aria-[current=page]:border-input dark:aria-[current=page]:bg-input/30 dark:aria-[current=page]:text-foreground`;function o({current:e}){return(0,i.jsxs)(`nav`,{"aria-label":`Native builds views`,className:t(r(),`h-auto min-h-11 sm:h-8 sm:min-h-0 [&>a]:min-h-11 sm:[&>a]:min-h-0`),children:[(0,i.jsx)(n,{activeOptions:{exact:!0,includeSearch:!1},"aria-current":e===`builds`?`page`:void 0,className:a,to:`/native-builds`,children:`Builds`}),(0,i.jsx)(n,{activeOptions:{exact:!0,includeSearch:!1},"aria-current":e===`devices`?`page`:void 0,className:a,to:`/native-builds/devices`,children:`iOS devices`})]})}export{o as n,a as t};
@@ -1 +1 @@
1
- import{In as e,Wr as t}from"./sidebar-Di9SN47G.js";import{t as n}from"./link-DTEyW70e.js";var r=t(),i={afterReleaseId:void 0,beforeReleaseId:void 0,bundleId:void 0,channelId:void 0,enabled:void 0,platform:void 0,releaseId:void 0,scopeKey:void 0};function a(){return(0,r.jsx)(`div`,{className:`flex min-h-svh flex-1 items-center justify-center px-6 py-10`,children:(0,r.jsxs)(`section`,{className:`flex max-w-md flex-col items-center text-center`,children:[(0,r.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Page not found`}),(0,r.jsx)(n,{className:e({className:`mt-6`,size:`lg`}),to:`/`,search:i,children:`Go to home`})]})})}export{a as t};
1
+ import{Di as e,_r as t}from"./sidebar-BmzmPGuv.js";import{t as n}from"./link-CRMwpc7-.js";var r=e(),i={afterReleaseId:void 0,beforeReleaseId:void 0,bundleId:void 0,channelId:void 0,enabled:void 0,platform:void 0,releaseId:void 0,scopeKey:void 0};function a(){return(0,r.jsx)(`div`,{className:`flex min-h-svh flex-1 items-center justify-center px-6 py-10`,children:(0,r.jsxs)(`section`,{className:`flex max-w-md flex-col items-center text-center`,children:[(0,r.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight text-foreground`,children:`Page not found`}),(0,r.jsx)(n,{className:t({className:`mt-6`,size:`lg`}),to:`/`,search:i,children:`Go to home`})]})})}export{a as t};
@@ -1 +1 @@
1
- import{Wr as e}from"./sidebar-Di9SN47G.js";var t=e();function n({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function r({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M18.4395 5.5586c-.675 1.1664-1.352 2.3318-2.0274 3.498-.0366-.0155-.0742-.0286-.1113-.043-1.8249-.6957-3.484-.8-4.42-.787-1.8551.0185-3.3544.4643-4.2597.8203-.084-.1494-1.7526-3.021-2.0215-3.4864a1.1451 1.1451 0 0 0-.1406-.1914c-.3312-.364-.9054-.4859-1.379-.203-.475.282-.7136.9361-.3886 1.5019 1.9466 3.3696-.0966-.2158 1.9473 3.3593.0172.031-.4946.2642-1.3926 1.0177C2.8987 12.176.452 14.772 0 18.9902h24c-.119-1.1108-.3686-2.099-.7461-3.0683-.7438-1.9118-1.8435-3.2928-2.7402-4.1836a12.1048 12.1048 0 0 0-2.1309-1.6875c.6594-1.122 1.312-2.2559 1.9649-3.3848.2077-.3615.1886-.7956-.0079-1.1191a1.1001 1.1001 0 0 0-.8515-.5332c-.5225-.0536-.9392.3128-1.0488.5449zm-.0391 8.461c.3944.5926.324 1.3306-.1563 1.6503-.4799.3197-1.188.0985-1.582-.4941-.3944-.5927-.324-1.3307.1563-1.6504.4727-.315 1.1812-.1086 1.582.4941zM7.207 13.5273c.4803.3197.5506 1.0577.1563 1.6504-.394.5926-1.1038.8138-1.584.4941-.48-.3197-.5503-1.0577-.1563-1.6504.4008-.6021 1.1087-.8106 1.584-.4941z`})})}function i({platform:e,className:i}){return e===`ios`?(0,t.jsx)(n,{className:i}):(0,t.jsx)(r,{className:i})}export{i as t};
1
+ import{Di as e}from"./sidebar-BmzmPGuv.js";var t=e();function n({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function r({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M18.4395 5.5586c-.675 1.1664-1.352 2.3318-2.0274 3.498-.0366-.0155-.0742-.0286-.1113-.043-1.8249-.6957-3.484-.8-4.42-.787-1.8551.0185-3.3544.4643-4.2597.8203-.084-.1494-1.7526-3.021-2.0215-3.4864a1.1451 1.1451 0 0 0-.1406-.1914c-.3312-.364-.9054-.4859-1.379-.203-.475.282-.7136.9361-.3886 1.5019 1.9466 3.3696-.0966-.2158 1.9473 3.3593.0172.031-.4946.2642-1.3926 1.0177C2.8987 12.176.452 14.772 0 18.9902h24c-.119-1.1108-.3686-2.099-.7461-3.0683-.7438-1.9118-1.8435-3.2928-2.7402-4.1836a12.1048 12.1048 0 0 0-2.1309-1.6875c.6594-1.122 1.312-2.2559 1.9649-3.3848.2077-.3615.1886-.7956-.0079-1.1191a1.1001 1.1001 0 0 0-.8515-.5332c-.5225-.0536-.9392.3128-1.0488.5449zm-.0391 8.461c.3944.5926.324 1.3306-.1563 1.6503-.4799.3197-1.188.0985-1.582-.4941-.3944-.5927-.324-1.3307.1563-1.6504.4727-.315 1.1812-.1086 1.582.4941zM7.207 13.5273c.4803.3197.5506 1.0577.1563 1.6504-.394.5926-1.1038.8138-1.584.4941-.48-.3197-.5503-1.0577-.1563-1.6504.4008-.6021 1.1087-.8106 1.584-.4941z`})})}function i({platform:e,className:i}){return e===`ios`?(0,t.jsx)(n,{className:i}):(0,t.jsx)(r,{className:i})}function a({platform:e}){return(0,t.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,t.jsx)(i,{className:`size-4`,platform:e}),e===`ios`?`iOS`:`Android`]})}export{a as n,i as t};
@@ -0,0 +1 @@
1
+ import{Di as e,Ri as t,Vi as n,vr as r}from"./sidebar-BmzmPGuv.js";var i=n(t(),1),a=(e=>(e[e.Border=-1]=`Border`,e[e.Data=0]=`Data`,e[e.Function=1]=`Function`,e[e.Position=2]=`Position`,e[e.Timing=3]=`Timing`,e[e.Alignment=4]=`Alignment`,e))(a||{}),o=[0,1],s=[1,0],c=[2,3],l=[3,2],u={L:o,M:s,Q:c,H:l},d=/^\d*$/,f=/^[A-Z0-9 $%*+./:-]*$/,p=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`,m=1,h=40,g=3,_=3,v=40,y=10,b=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],x=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],S=class{constructor(e,t,n,r){if(this.version=e,this.ecc=t,e<m||e>h)throw RangeError(`Version value out of range`);if(r<-1||r>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let i=Array.from({length:this.size}).fill(!1);for(let e=0;e<this.size;e++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let a=this.addEccAndInterleave(n);if(this.drawCodewords(a),r===-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(r=t,e=n),this.applyMask(t)}}this.mask=r,this.applyMask(r),this.drawFormatBits(r)}size;mask;modules=[];types=[];getModule(e,t){return e>=0&&e<this.size&&t>=0&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0,a.Timing),this.setFunctionModule(e,6,e%2==0,a.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n===0&&r===0||n===0&&r===t-1||n===t-1&&r===0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.ecc[1]<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,w(r,e));this.setFunctionModule(8,7,w(r,6)),this.setFunctionModule(8,8,w(r,7)),this.setFunctionModule(7,8,w(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,w(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,w(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,w(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=w(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),o=e+r,s=t+n;o>=0&&o<this.size&&s>=0&&s<this.size&&this.setFunctionModule(o,s,i!==2&&i!==4,a.Position)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!==1,a.Alignment)}setFunctionModule(e,t,n,r=a.Function){this.modules[t][e]=n,this.types[t][e]=r}addEccAndInterleave(e){let t=this.version,n=this.ecc;if(e.length!==z(t,n))throw RangeError(`Invalid argument`);let r=x[n[0]][t],i=b[n[0]][t],a=Math.floor(R(t)/8),o=r-a%r,s=Math.floor(a/r),c=[],l=B(i);for(let t=0,n=0;t<r;t++){let r=e.slice(n,n+s-i+(t<o?0:1));n+=r.length;let a=V(r,l);t<o&&r.push(0),c.push(r.concat(a))}let u=[];for(let e=0;e<c[0].length;e++)c.forEach((t,n)=>{(e!==s-i||n>=o)&&u.push(t[e])});return u}drawCodewords(e){if(e.length!==Math.floor(R(this.version)/8))throw RangeError(`Invalid argument`);let t=0;for(let n=this.size-1;n>=1;n-=2){n===6&&(n=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let a=n-i,o=n+1&2?r:this.size-1-r;!this.types[o][a]&&t<e.length*8&&(this.modules[o][a]=w(e[t>>>3],7-(t&7)),t++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.types[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let e=0;for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[t][a]===n?(r++,r===5?e+=g:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*v),n=this.modules[t][a],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*v}for(let t=0;t<this.size;t++){let n=!1,r=0,i=[0,0,0,0,0,0,0];for(let a=0;a<this.size;a++)this.modules[a][t]===n?(r++,r===5?e+=g:r>5&&e++):(this.finderPenaltyAddHistory(r,i),n||(e+=this.finderPenaltyCountPatterns(i)*v),n=this.modules[a][t],r=1);e+=this.finderPenaltyTerminateAndCount(n,r,i)*v}for(let t=0;t<this.size-1;t++)for(let n=0;n<this.size-1;n++){let r=this.modules[t][n];r===this.modules[t][n+1]&&r===this.modules[t+1][n]&&r===this.modules[t+1][n+1]&&(e+=_)}let t=0;for(let e of this.modules)t=e.reduce((e,t)=>e+ +!!t,t);let n=this.size*this.size,r=Math.ceil(Math.abs(t*20-n*10)/n)-1;return e+=r*y,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}};function C(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function w(e,t){return(e>>>t&1)!=0}var T=class{constructor(e,t,n){if(this.mode=e,this.numChars=t,this.bitData=n,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}getData(){return this.bitData.slice()}},E=[1,10,12,14],D=[2,9,11,13],O=[4,8,16,16];function k(e,t){return e[Math.floor((t+7)/17)+1]}function A(e){let t=[];for(let n of e)C(n,8,t);return new T(O,e.length,t)}function j(e){if(!P(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let n=0;n<e.length;){let r=Math.min(e.length-n,3);C(Number.parseInt(e.substring(n,n+r),10),r*3+1,t),n+=r}return new T(E,e.length,t)}function M(e){if(!F(e))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let t=[],n;for(n=0;n+2<=e.length;n+=2){let r=p.indexOf(e.charAt(n))*45;r+=p.indexOf(e.charAt(n+1)),C(r,11,t)}return n<e.length&&C(p.indexOf(e.charAt(n)),6,t),new T(D,e.length,t)}function N(e){return e===``?[]:P(e)?[j(e)]:F(e)?[M(e)]:[A(L(e))]}function P(e){return d.test(e)}function F(e){return f.test(e)}function I(e,t){let n=0;for(let r of e){let e=k(r.mode,t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}function L(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)===`%`?(t.push(Number.parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}function R(e){if(e<m||e>h)throw RangeError(`Version number out of range`);let t=(16*e+128)*e+64;if(e>=2){let n=Math.floor(e/7)+2;t-=(25*n-10)*n-55,e>=7&&(t-=36)}return t}function z(e,t){return Math.floor(R(e)/8)-b[t[0]][e]*x[t[0]][e]}function B(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let t=[];for(let n=0;n<e-1;n++)t.push(0);t.push(1);let n=1;for(let r=0;r<e;r++){for(let e=0;e<t.length;e++)t[e]=H(t[e],n),e+1<t.length&&(t[e]^=t[e+1]);n=H(n,2)}return t}function V(e,t){let n=t.map(e=>0);for(let r of e){let e=r^n.shift();n.push(0),t.forEach((t,r)=>n[r]^=H(t,e))}return n}function H(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}function U(e,t,n=1,r=40,i=-1,a=!0){if(!(m<=n&&n<=r&&r<=h)||i<-1||i>7)throw RangeError(`Invalid value`);let o,u;for(o=n;;o++){let n=z(o,t)*8,i=I(e,o);if(i<=n){u=i;break}if(o>=r)throw RangeError(`Data too long`)}for(let e of[s,c,l])a&&u<=z(o,e)*8&&(t=e);let d=[];for(let t of e){C(t.mode[0],4,d),C(t.numChars,k(t.mode,o),d);for(let e of t.getData())d.push(e)}let f=z(o,t)*8;C(0,Math.min(4,f-d.length),d),C(0,(8-d.length%8)%8,d);for(let e=236;d.length<f;e^=253)C(e,8,d);let p=Array.from({length:Math.ceil(d.length/8)},()=>0);return d.forEach((e,t)=>p[t>>>3]|=e<<7-(t&7)),new S(o,t,p,i)}function W(e,t){let{ecc:n=`L`,boostEcc:r=!1,minVersion:i=1,maxVersion:a=40,maskPattern:o=-1,border:s=1}=t||{},c=typeof e==`string`?N(e):Array.isArray(e)?[A(e)]:void 0;if(!c)throw Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let l=U(c,u[n],i,a,o,r),d=G({version:l.version,maskPattern:l.mask,size:l.size,data:l.modules,types:l.types},s);return t?.invert&&(d.data=d.data.map(e=>e.map(e=>!e))),t?.onEncoded?.(d),d}function G(e,t=1){if(!t)return e;let{size:n}=e,r=n+t*2;e.size=r,e.data.forEach(e=>{for(let n=0;n<t;n++)e.unshift(!1),e.push(!1)});for(let n=0;n<t;n++)e.data.unshift(Array.from({length:r},e=>!1)),e.data.push(Array.from({length:r},e=>!1));let i=a.Border;e.types.forEach(e=>{for(let n=0;n<t;n++)e.unshift(i),e.push(i)});for(let n=0;n<t;n++)e.types.unshift(Array.from({length:r},e=>i)),e.types.push(Array.from({length:r},e=>i));return e}var K=e=>{let{data:t,size:n}=W(e,{ecc:`M`,border:4}),r=``;return t.forEach((e,t)=>e.forEach((e,n)=>{e&&(r+=`M${n} ${t}h1v1h-1z`)})),{size:n,path:r}},q=e();function J({value:e,label:t,className:n}){let{size:a,path:o}=(0,i.useMemo)(()=>K(e),[e]);return(0,q.jsxs)(`svg`,{"aria-label":t,className:r(`aspect-square rounded-md`,n),role:`img`,shapeRendering:`crispEdges`,viewBox:`0 0 ${a} ${a}`,children:[(0,q.jsx)(`rect`,{fill:`#fff`,height:a,width:a}),(0,q.jsx)(`path`,{d:o,fill:`#000`})]})}export{J as t};
@@ -0,0 +1 @@
1
+ import{$ as e,Di as t,Vi as n,_r as r,gr as i,vr as a}from"./sidebar-BmzmPGuv.js";import{t as o}from"./link-CRMwpc7-.js";import{a as s}from"./TargetDisplay-D0dVdFCk.js";import{t as c}from"./chevron-right-RAuPv9r1.js";import{n as l,t as u}from"./relativeTime-RUNbaMyO.js";import{a as d,n as f,o as p,r as m,t as h}from"./table-DbZPkzdz.js";var g=t();function _({children:e,className:t}){return(0,g.jsx)(`div`,{className:a(`min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-auto`,t),children:e})}function v({header:e,children:t,className:n,rowGroups:r=!1,...i}){return(0,g.jsxs)(h,{className:a(`min-w-max`,n),...i,children:[(0,g.jsx)(d,{className:`bg-muted/40`,children:(0,g.jsx)(p,{className:`border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground`,children:e})}),r?t:(0,g.jsx)(f,{children:t})]})}function y({className:e,...t}){return(0,g.jsx)(f,{className:a(`[&_tr:last-child]:border-b`,e),...t})}var b=e=>t=>{t.target instanceof Element&&t.target.closest(`button, a, input, select, textarea`)||e()};function x({className:e,onOpen:t,...n}){return(0,g.jsx)(p,{onClick:b(t),onKeyDown:e=>{e.target!==e.currentTarget||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),t())},tabIndex:0,className:a(`cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3`,e),...n})}function S({columns:t,label:n}){return Array.from({length:7},(r,i)=>(0,g.jsx)(p,{children:(0,g.jsxs)(m,{colSpan:t,children:[i===0&&n?(0,g.jsx)(`span`,{className:`sr-only`,children:n}):null,(0,g.jsx)(e,{className:`h-8 w-full`})]})},i))}function C({columns:e,className:t,children:n}){return(0,g.jsx)(p,{children:(0,g.jsx)(m,{className:a(`h-44 text-center text-muted-foreground`,t),colSpan:e,children:n})})}function w({icon:e,title:t,children:n}){return(0,g.jsxs)(`div`,{className:`mx-auto flex max-w-sm flex-col items-center gap-2 whitespace-normal text-center text-sm text-muted-foreground`,children:[(0,g.jsx)(e,{"aria-hidden":`true`,className:`size-5`}),(0,g.jsx)(`p`,{className:`font-medium text-foreground`,children:t}),n]})}function T({children:e}){return(0,g.jsx)(`div`,{className:`p-8`,children:e})}function E({label:t}){return(0,g.jsxs)(`div`,{className:`flex flex-col gap-3 p-4`,children:[t?(0,g.jsx)(`span`,{className:`sr-only`,children:t}):null,Array.from({length:5},(t,n)=>(0,g.jsx)(e,{className:`h-44 w-full`},n))]})}function D({className:e,...t}){return(0,g.jsx)(`article`,{className:a(`flex cursor-pointer touch-manipulation flex-col gap-4 border-b p-4 transition-[background-color,filter] last:border-b-0 hover:bg-muted/10 active:bg-muted/20 motion-reduce:transition-none data-[state=selected]:bg-muted/15`,e),...t})}function O({count:e,noun:t,folded:n,label:a,pending:l=!1,newest:u,previous:d,next:f}){return(0,g.jsxs)(`nav`,{"aria-label":a,className:`flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,g.jsxs)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:[(0,g.jsx)(`span`,{className:`text-foreground`,children:e}),` `,e===1?t[0]:t[1],`, newest first`,n===void 0||n.count===0?null:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(`span`,{"aria-hidden":`true`,children:` · `}),(0,g.jsx)(`span`,{className:`sr-only`,children:`, `}),(0,g.jsxs)(`span`,{className:`text-foreground`,children:[n.count,n.more?`+`:``]}),` `,n.label,` folded`]})]}),(0,g.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 sm:justify-end`,children:[u&&!l?(0,g.jsx)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`ghost`}),search:u.search,to:u.to,children:`Newest`}):null,d&&!l?(0,g.jsxs)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:d.search,to:d.to,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}):(0,g.jsxs)(i,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}),f&&!l?(0,g.jsxs)(o,{className:r({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:f.search,to:f.to,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]}):(0,g.jsxs)(i,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]})]})]})}var k=n(l(),1),A=n(u(),1);k.default.extend(A.default);function j({ms:e,withDate:t=!1}){let n=(0,k.default)(e),r=n.format(`YYYY-MM-DD HH:mm:ss`);return(0,g.jsxs)(`time`,{className:`flex flex-col whitespace-nowrap tabular-nums`,dateTime:n.toISOString(),title:r,children:[(0,g.jsx)(`span`,{children:n.fromNow()}),t?(0,g.jsx)(`span`,{className:`text-muted-foreground`,children:r}):null]})}export{v as a,_ as c,x as d,S as f,T as i,C as l,D as n,y as o,b as p,E as r,w as s,j as t,O as u};
@@ -0,0 +1 @@
1
+ import{Di as e,Vi as t,vr as n}from"./sidebar-BmzmPGuv.js";import{o as r,t as i}from"./badge-zMibJGR5.js";import{i as a}from"./constants-yj-e3ahf.js";import{n as o,t as s}from"./relativeTime-RUNbaMyO.js";var c=t(o(),1),l=t(s(),1),u=e();c.default.extend(l.default);function d({uuid:e,format:t=`relative`}){let n=(0,c.default)(a(e));return t===`relative`?(0,u.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,u.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,u.jsxs)(`div`,{className:`flex flex-col`,children:[(0,u.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,u.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var f=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},p=(e,t)=>{if(!e?.trim())return null;let n=f(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`};function m({percentage:e,className:t}){let a=e<100,o=e.toFixed(1);return(0,u.jsxs)(i,{className:n(`gap-1`,t),variant:a?`secondary`:`default`,children:[a?(0,u.jsx)(r,{className:`h-3 w-3`}):null,o,`%`]})}export{p as n,d as r,m as t};
@@ -0,0 +1 @@
1
+ import{Di as e,Ri as t,Vi as n,at as r,nt as i,rt as a,vr as o}from"./sidebar-BmzmPGuv.js";import{t as s}from"./badge-zMibJGR5.js";var c=e(),l=new Set([`production`,`staging`,`dev`]);function u({channel:e,className:t}){let n=e.toLowerCase();return(0,c.jsx)(s,{variant:`outline`,translate:`no`,"data-channel":l.has(n)?n:void 0,className:o(`border-channel-other/20 bg-channel-other/10 text-channel-other`,`data-[channel=production]:border-channel-production/20 data-[channel=production]:bg-channel-production/10 data-[channel=production]:text-channel-production`,`data-[channel=staging]:border-channel-staging/20 data-[channel=staging]:bg-channel-staging/10 data-[channel=staging]:text-channel-staging`,`data-[channel=dev]:border-channel-dev/20 data-[channel=dev]:bg-channel-dev/10 data-[channel=dev]:text-channel-dev`,t),children:e})}var d=n(t(),1);function f({icon:e,children:t,className:n,label:s,reason:l}){let u=(0,d.useId)(),[f,p]=(0,d.useState)(!1);return(0,c.jsxs)(i,{onOpenChange:p,open:f,triggerId:u,children:[(0,c.jsxs)(r,{"aria-describedby":f?`${u}-reason`:void 0,"aria-label":s,className:o(`relative inline-flex shrink-0 items-center gap-1 rounded-sm text-xs text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3.5 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:after:hidden`,n),closeOnClick:!1,id:u,onClick:()=>p(e=>!e),type:`button`,children:[(0,c.jsx)(e,{"aria-hidden":`true`,className:`size-3.5`}),t]}),(0,c.jsx)(a,{className:`max-w-64`,id:`${u}-reason`,role:`tooltip`,side:`bottom`,children:l})]})}export{u as n,f as t};
@@ -0,0 +1 @@
1
+ import{Di as e,Vi as t}from"./sidebar-BmzmPGuv.js";import{a as n}from"./-native-builds-search-6aptbS4G.js";import{t as r}from"./badge-zMibJGR5.js";import{n as i,t as a}from"./relativeTime-RUNbaMyO.js";var o=t(i(),1),s=t(a(),1),c={"play-internal":{label:`Play internal`},"play-closed":{label:`Play closed`},"play-open":{label:`Play open`},"play-production":{label:`Play production`}},l=e();o.default.extend(s.default);var u={testflight:`TestFlight`,...Object.fromEntries(Object.entries(c).map(([e,t])=>[e,t.label]))},d=e=>e.submitted_to!==null&&e.submitted_to!==void 0;function f({ms:e}){if(e===null)return null;let t=(0,o.default)(e);return(0,l.jsx)(`time`,{className:`text-xs text-muted-foreground`,dateTime:t.toISOString(),title:t.format(`YYYY-MM-DD HH:mm:ss`),children:t.fromNow()})}var p=e=>{let t=`Submitted to ${u[e.submitted_to]}`;if(e.submitted_at_ms===null)return t;let n=(0,o.default)(e.submitted_at_ms);return`${t} ${n.fromNow()}, ${n.format(`YYYY-MM-DD HH:mm:ss`)}`};function m({build:e,withTime:t=!1}){return d(e)?(0,l.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-1.5`,children:[(0,l.jsxs)(r,{className:`gap-1`,title:p(e),variant:`muted`,children:[(0,l.jsx)(n,{"aria-hidden":`true`,className:`size-3`}),u[e.submitted_to],e.submitted_version?(0,l.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.submitted_version}):null]}),t?(0,l.jsx)(f,{ms:e.submitted_at_ms}):null]}):null}function h({build:e}){return e.is_sandbox?(0,l.jsx)(r,{className:`px-1.5`,variant:`muted`,children:`Sandbox`}):null}export{u as i,m as n,d as r,h as t};
@@ -0,0 +1 @@
1
+ import{Di as e,Vr as t,gr as n}from"./sidebar-BmzmPGuv.js";import{t as r}from"./copy-BjVLMKbo.js";import{t as i}from"./key-round-BkeLvA1m.js";import{k as a}from"./native-builds-B6t0ZxKP.js";import{n as o}from"./dist-BEmib-ZM.js";import{t as s}from"./HashValueDisplay-DTSMSH9O.js";var c=t(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),l=t(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),u=e();function d({label:e,value:t,wrap:i=!1}){let a=async()=>{try{await navigator.clipboard.writeText(t),o.success(`Copied to clipboard`)}catch{o.error(`Could not copy ${e}`)}};return(0,u.jsxs)(`div`,{className:`flex w-full min-w-0 items-center gap-2 rounded-md border bg-muted/40 py-1 pr-1 pl-3`,children:[(0,u.jsx)(`code`,{className:i?`min-w-0 flex-1 text-left font-mono text-xs whitespace-normal sm:whitespace-nowrap`:`min-w-0 flex-1 overflow-x-auto text-left font-mono text-xs whitespace-nowrap`,children:t}),(0,u.jsx)(n,{"aria-label":`Copy ${e}`,className:`size-11 sm:size-7`,onClick:()=>void a(),size:`icon-sm`,variant:`ghost`,children:(0,u.jsx)(r,{"aria-hidden":`true`})})]})}function f({icon:e,value:t,display:n}){return(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(e,{className:`size-4 shrink-0 text-muted-foreground`}),(0,u.jsx)(s,{display:n,maxLength:12,value:t})]})}function p(){return(0,u.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}function m({value:e}){return(0,u.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,u.jsx)(a,{className:`size-4 shrink-0 text-muted-foreground`}),(0,u.jsx)(`span`,{className:`font-medium`,children:e})]})}function h({appVersion:e,fingerprintHash:t,nativeAppVersion:n}){if(e)return(0,u.jsx)(m,{value:e});if(t){let e=(0,u.jsx)(f,{icon:l,value:t});return n?(0,u.jsxs)(`span`,{className:`flex flex-col items-start gap-3 sm:gap-1`,"data-target-display":``,children:[(0,u.jsxs)(`span`,{title:`The app version this build reports`,children:[(0,u.jsx)(`span`,{className:`sr-only`,children:`App version `}),(0,u.jsx)(m,{value:n})]}),e]}):e}return(0,u.jsx)(p,{})}function g({value:e}){return e?(0,u.jsx)(f,{display:e.replace(/^nbk1:/,``),icon:i,value:e}):(0,u.jsx)(p,{})}export{c as a,d as i,p as n,h as r,g as t};
@@ -0,0 +1 @@
1
+ import{D as e,Di as t,J as n,Ri as r,S as i,T as a,X as o,Y as s,gr as c,j as l,k as u,vr as d}from"./sidebar-BmzmPGuv.js";function f(t){return e(t,`alert-dialog`)}var p=i;r();var m=t();function h({...e}){return(0,m.jsx)(f,{"data-slot":`alert-dialog`,...e})}function g({...e}){return(0,m.jsx)(p,{"data-slot":`alert-dialog-trigger`,...e})}function _({...e}){return(0,m.jsx)(u,{"data-slot":`alert-dialog-portal`,...e})}function v({className:e,...t}){return(0,m.jsx)(o,{"data-slot":`alert-dialog-overlay`,className:d(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function y({className:e,size:t=`default`,...n}){return(0,m.jsxs)(_,{children:[(0,m.jsx)(v,{}),(0,m.jsx)(l,{"data-slot":`alert-dialog-content`,"data-size":t,className:d(`group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-3 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none max-h-[calc(100dvh-2rem)] overflow-y-auto data-[size=default]:max-w-xs data-[size=sm]:max-w-64 data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...n})]})}function b({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:d(`grid grid-rows-[auto_1fr] place-items-center gap-1 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...t})}function x({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:d(`flex flex-col-reverse gap-2 max-sm:*:min-h-11 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...t})}function S({className:e,...t}){return(0,m.jsx)(`div`,{"data-slot":`alert-dialog-media`,className:d(`mb-2 inline-flex size-8 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-4`,e),...t})}function C({className:e,...t}){return(0,m.jsx)(a,{"data-slot":`alert-dialog-title`,className:d(`text-sm font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...t})}function w({className:e,...t}){return(0,m.jsx)(n,{"data-slot":`alert-dialog-description`,className:d(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function T({className:e,...t}){return(0,m.jsx)(c,{"data-slot":`alert-dialog-action`,className:d(e),...t})}function E({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,m.jsx)(s,{"data-slot":`alert-dialog-cancel`,className:d(e),render:(0,m.jsx)(c,{variant:t,size:n}),...r})}export{w as a,S as c,y as i,C as l,T as n,x as o,E as r,b as s,h as t,g as u};
@@ -0,0 +1 @@
1
+ import{t as e}from"./ConsoleFeatureUnavailable-B3VCINom.js";var t=e;export{t as notFoundComponent};
@@ -0,0 +1 @@
1
+ import{$ as e,Di as t,Hr as n,Oi as r,Q as i,Ri as a,Si as o,Vi as s,Vr as c,gr as l,p as u,wi as d,zr as f}from"./sidebar-BmzmPGuv.js";import{t as p}from"./useMutation-D7IuoOLE.js";import{t as ee}from"./check-C3VCvMOV.js";import{t as te}from"./clipboard-D0JWZ1KF.js";import{t as m}from"./key-round-BkeLvA1m.js";import{t as ne}from"./loader-circle-8lunBReu.js";import{t as h}from"./plus-DztQIXYL.js";import{n as g,r as _}from"./dist-BEmib-ZM.js";import{a as v,i as y,n as b,o as x,r as re,t as ie}from"./badge-zMibJGR5.js";import{a as ae,n as S,o as C,t as w}from"./card-BAs80yql.js";import{a as T,i as E,n as D,r as O,t as k}from"./field-DInLQ5oV.js";import{a as A,c as j,i as M,l as N,n as P,o as F,r as I,s as L,t as R,u as z}from"./alert-dialog-DGPqJBCk.js";import{a as B,i as V,n as oe,o as H,r as U,t as W}from"./dialog-BvZDZzdQ.js";import{a as G,i as K,n as q,o as J,r as Y,t as se}from"./table-DbZPkzdz.js";var X=c(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Z=s(a(),1),ce=d({method:`GET`}).middleware([f]).handler(r(`2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b`)),le=d({method:`POST`}).middleware([f]).handler(r(`68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b`)),ue=d({method:`POST`}).middleware([f]).handler(r(`a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795`)),Q={list:[`api-keys`,`list`]},de=()=>n({queryKey:Q.list,queryFn:()=>ce()}),fe=()=>{let e=o();return p({mutationFn:e=>le({data:{name:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Q.list})}})},pe=()=>{let e=o();return p({mutationFn:e=>ue({data:{id:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Q.list})}})},$=t(),me=e=>new Date(e).toISOString().slice(0,10);function he(){let[e,t]=(0,Z.useState)(!1),[n,r]=(0,Z.useState)(``),[a,o]=(0,Z.useState)(null),s=fe(),c=n.trim(),u=c.length>64?`Name must be 64 characters or fewer.`:null,d=()=>{r(``),o(null),s.reset()},f=e=>{t(e),e||d()};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(l,{className:`max-md:h-11`,onClick:()=>t(!0),children:[(0,$.jsx)(h,{"data-icon":`inline-start`}),`Create API key`]}),(0,$.jsx)(W,{open:e,onOpenChange:f,children:(0,$.jsxs)(oe,{showCloseButton:a===null,children:[(0,$.jsxs)(B,{children:[(0,$.jsx)(H,{children:a===null?`Create API key`:`Save your API key`}),(0,$.jsx)(U,{children:a===null?`Name the app or environment that will use this key.`:`This key is shown once. Store it securely before closing.`})]}),a===null?(0,$.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!(c.length===0||u!==null))try{o((await s.mutateAsync(c)).apiKey),g.success(`API key created`)}catch(e){g.error(e instanceof Error?e.message:`Unable to create API key`)}},children:[(0,$.jsx)(E,{children:(0,$.jsxs)(k,{"data-invalid":u!==null||void 0,children:[(0,$.jsx)(T,{htmlFor:`api-key-name`,children:`Name`}),(0,$.jsx)(i,{id:`api-key-name`,autoComplete:`off`,maxLength:65,onChange:e=>r(e.target.value),placeholder:`Production app`,value:n}),(0,$.jsx)(D,{children:`Use a name you can identify before revoking the key.`}),(0,$.jsx)(O,{children:u})]})}),(0,$.jsx)(V,{className:`mt-4`,children:(0,$.jsxs)(l,{disabled:s.isPending||c.length===0||u!==null,type:`submit`,children:[s.isPending?(0,$.jsx)(ne,{"data-icon":`inline-start`,className:`animate-spin motion-reduce:animate-none`}):(0,$.jsx)(m,{"data-icon":`inline-start`}),`Create API key`]})})]}):(0,$.jsxs)(E,{children:[(0,$.jsxs)(k,{children:[(0,$.jsx)(T,{htmlFor:`created-api-key`,children:`API key`}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(i,{id:`created-api-key`,className:`font-mono`,readOnly:!0,value:a}),(0,$.jsxs)(l,{onClick:async()=>{if(a!==null)try{await navigator.clipboard.writeText(a),g.success(`API key copied`)}catch{g.error(`Unable to copy API key`)}},type:`button`,variant:`outline`,children:[(0,$.jsx)(te,{"data-icon":`inline-start`}),`Copy`]})]})]}),(0,$.jsx)(V,{children:(0,$.jsxs)(l,{onClick:()=>f(!1),children:[(0,$.jsx)(ee,{"data-icon":`inline-start`}),`Done`]})})]})]})})]})}function ge({record:e}){let[t,n]=(0,Z.useState)(!1),r=pe(),i=async t=>{t.preventDefault();try{await r.mutateAsync(e.id),n(!1),g.success(`API key revoked`)}catch(e){g.error(e instanceof Error?e.message:`Unable to revoke API key`)}};return(0,$.jsxs)(R,{open:t,onOpenChange:e=>{r.isPending||n(e)},children:[(0,$.jsxs)(z,{render:(0,$.jsx)(l,{className:`max-md:h-11`,size:`sm`,variant:`ghost`}),children:[(0,$.jsx)(X,{"data-icon":`inline-start`}),`Revoke`]}),(0,$.jsxs)(M,{children:[(0,$.jsxs)(L,{children:[(0,$.jsx)(j,{children:(0,$.jsx)(X,{})}),(0,$.jsxs)(N,{children:[`Revoke `,e.name,`?`]}),(0,$.jsxs)(A,{children:[`Apps using `,e.prefix,`… will immediately lose OTA update and insights access. This action cannot be undone.`]})]}),(0,$.jsxs)(F,{children:[(0,$.jsx)(I,{disabled:r.isPending,children:`Cancel`}),(0,$.jsx)(P,{disabled:r.isPending,onClick:e=>void i(e),variant:`destructive`,children:`Revoke API key`})]})]})]})}function _e(){let t=de();return(0,$.jsxs)(w,{className:`overflow-hidden shadow-sm`,children:[(0,$.jsxs)(ae,{className:`flex-row items-center justify-between space-y-0 border-b px-4 py-3`,children:[(0,$.jsx)(C,{className:`text-sm`,children:(0,$.jsx)(`h2`,{children:`API keys`})}),(0,$.jsx)(he,{})]}),(0,$.jsx)(S,{className:`p-0`,children:t.isError?(0,$.jsx)(`div`,{className:`p-4`,children:(0,$.jsxs)(b,{variant:`destructive`,children:[(0,$.jsx)(x,{}),(0,$.jsx)(v,{children:`API keys couldn't be loaded`}),(0,$.jsx)(y,{children:`Check your connection and try again.`}),(0,$.jsx)(re,{children:(0,$.jsxs)(l,{onClick:()=>void t.refetch(),size:`xs`,variant:`outline`,children:[(0,$.jsx)(_,{"data-icon":`inline-start`}),`Retry`]})})]})}):(0,$.jsxs)(se,{"aria-label":`API keys`,className:`table-fixed`,children:[(0,$.jsx)(G,{children:(0,$.jsxs)(J,{children:[(0,$.jsx)(K,{children:`Key`}),(0,$.jsx)(K,{className:`w-32`,children:`Created`}),(0,$.jsx)(K,{className:`w-24 text-right`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(q,{children:t.isLoading?Array.from({length:3},(t,n)=>(0,$.jsxs)(J,{children:[(0,$.jsxs)(Y,{className:`space-y-2 py-3`,children:[n===0?(0,$.jsx)(`span`,{className:`sr-only`,children:`Loading API keys`}):null,(0,$.jsx)(e,{className:`h-3.5 w-32`}),(0,$.jsx)(e,{className:`h-3 w-20`})]}),(0,$.jsx)(Y,{children:(0,$.jsx)(e,{className:`h-3.5 w-20`})}),(0,$.jsx)(Y,{children:(0,$.jsx)(e,{className:`ml-auto h-6 w-16`})})]},n)):t.data?.length===0?(0,$.jsx)(J,{children:(0,$.jsx)(Y,{colSpan:3,className:`h-40 text-center text-muted-foreground`,children:(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-xs flex-col items-center gap-2`,children:[(0,$.jsx)(m,{className:`size-5`}),(0,$.jsx)(`p`,{className:`font-medium text-foreground`,children:`No API keys`}),(0,$.jsx)(`p`,{children:`Create an API key to connect an app.`})]})})}):t.data?.map(e=>(0,$.jsxs)(J,{className:e.revoked_at_ms===null?void 0:`text-muted-foreground`,children:[(0,$.jsx)(Y,{className:`whitespace-normal py-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`p`,{className:`break-words font-medium text-foreground`,children:e.name}),(0,$.jsxs)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:[e.prefix,`…`]})]})}),(0,$.jsx)(Y,{className:`text-xs text-muted-foreground`,children:(0,$.jsx)(`time`,{dateTime:new Date(e.created_at_ms).toISOString(),children:me(e.created_at_ms)})}),(0,$.jsx)(Y,{className:`text-right`,children:e.revoked_at_ms===null?(0,$.jsx)(ge,{record:e}):(0,$.jsx)(ie,{variant:`outline`,children:`Revoked`})})]},e.id))})]})})]})}function ve(){return(0,$.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,$.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,$.jsx)(u,{className:`-ml-1`}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(m,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,$.jsx)(`h1`,{className:`text-sm font-medium`,children:`API keys`})]}),(0,$.jsx)(`p`,{className:`basis-full pl-9 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`API keys can download OTA updates and submit insights only.`})]}),(0,$.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,$.jsx)(`div`,{className:`mx-auto w-full max-w-5xl`,children:(0,$.jsx)(_e,{})})})]})}export{ve as component};
@@ -0,0 +1 @@
1
+ import{Hr as e,Oi as t,Si as n,wi as r,zr as i}from"./sidebar-BmzmPGuv.js";import{o as a}from"./useCompositeListItem-BEDqZ9Ni.js";import{t as o}from"./useMutation-D7IuoOLE.js";var s=r({method:`GET`}).middleware([i]).handler(t(`206547cb1526f961070a989818ca7b9e34f6b2b0e4ab851698c3807fe9fb5e0c`)),c=r({method:`GET`}).middleware([i]).handler(t(`b30a0e32e3e84050037368e4405bfc34507fda8891a64faefe1a7acd019e9f3c`)),l=r({method:`GET`}).middleware([i]).handler(t(`a6f23116eeaf76166d405e28a95213123025613c6603030894e519015bf48032`)),u=r({method:`POST`}).middleware([i]).handler(t(`7ea0186f19f9f2bc2ca4b26e3c59636891cf046957f84287b6783f8d88bd8cb7`)),d=r({method:`POST`}).middleware([i]).handler(t(`b46c95dba95a6a3e8fa5c9d100e3622fa5ae7af4f38e10fb1ed2fa48289a3a8f`)),f=r({method:`POST`}).middleware([i]).handler(t(`d5b58722ce514e3b63a377f736b4823c2011782495442ae4870ed547e392c70b`)),p=r({method:`POST`}).middleware([i]).handler(t(`956539a300d79a7efa191c1cc2d529d62fc4bfd940442548fdbc1404e0d53078`)),m=r({method:`GET`}).middleware([i]).handler(t(`e8c24b7247936f045a145ffd5c177fd0e3df3b52769d67dfbd8d1de491d66396`)),h=r().middleware([i]).handler(t(`51a34c05479a893c7d320bd4cd1604427289d667698c48b9f30a01aabf8a5e68`)),g=r().middleware([i]).handler(t(`79ada05964de8f2123bfcd62b10097d59bf8fd689ef5c7161031e5871d8396c5`)),_=r({method:`POST`}).middleware([i]).handler(t(`2b9b8d1f49f79a511589617d8d4bfc6094a3acf5264f33651b9569ba66d3f321`)),v=r({method:`POST`}).middleware([i]).handler(t(`52756dde414919a906bfe83d1ab6d29910c63bcafdb47653d6f1df562d958920`)),y=r({method:`GET`}).middleware([i]).handler(t(`1bd85c2a50e24785cb6abb023a247a9f048f37ddfa85cbb1c57e579563bad013`)),b=r({method:`GET`}).middleware([i]).handler(t(`4370f1bf70b91f1168d85379d3008449a1bedb915e9878ca4ef89d5f3a80fa7f`)),x=r({method:`GET`}).middleware([i]).handler(t(`4ca367070b00f58179a572f0bb8196a4ccdd3881e9b1dbfe33deee0cb6e1f549`)),S=r({method:`GET`}).middleware([i]).handler(t(`17a54fe7c5ad6ca53457914b1d02b3d6887811aa6b5fa6598a1ee107796ce8f0`)),C=r({method:`GET`}).middleware([i]).handler(t(`1fc98b1499df6f62eeb3e84712ff4bd12e428d2ddd08880d541463d24ccd0233`)),w=r({method:`GET`}).middleware([i]).handler(t(`c101ad0315790cf226f182906274176b64a93b9bf5b410cacec5067208c70a04`)),T=r({method:`GET`}).middleware([i]).handler(t(`2e3fab89483b2e4fea0c2f996071b2dbb15b8bc072e7dae78c75a9a9d854d5b9`)),E=r({method:`GET`}).middleware([i]).handler(t(`868ce85f0b63ad138a1f82a573d1d6b12f80c7ca44aefec3dadf01b5fa7db86c`)),D=r({method:`POST`}).middleware([i]).handler(t(`a6c8cfa907e2f75bf69aa90044bd52a3ee684d1a0462d23781161a1a3531aa33`)),O=r({method:`GET`}).middleware([i]).handler(t(`936ef8582ff49d97077d1d80e8403d0b4106831c955591c5c471a88f96007fe9`)),k=r({method:`POST`}).middleware([i]).handler(t(`c6ff40bd8faad0b2d7aba3e94179c18e02a918a76bff25849d771ff31f688208`)),A=r({method:`POST`}).middleware([i]).handler(t(`67cea9f69773d83e69e68e20b81116a2bee9ee4ab3e378698ff74149f1d59ad0`)),j=[`releases`],M={config:[`config`],channels:[`channels`],releases:{all:j,list:e=>[...j,e??{}],fold:(e,t)=>[...j,`fold`,e??{},t]},release:e=>[`release`,e],releaseCatalog:e=>[`release-catalog`,e],bundleChildren:{all:[`bundle-children`],list:e=>[`bundle-children`,e],counts:e=>[`bundle-children`,`counts`,...e]},bundle:e=>[`bundle`,e],nativeBuilds:{all:[`native-builds`],list:e=>[`native-builds`,e],fold:(e,t)=>[`native-builds`,`fold`,e??null,t]},nativeBuild:e=>[`native-build`,e],nativeBuildPatches:(e,t)=>[`native-build-patches`,e,t],nativeBuildDownloadUrl:e=>[`native-build-download-url`,e],nativeBuildDownloadLink:e=>[`native-build-download-link`,e],nativeBuildInstallEligibility:(e,t)=>[`native-build-install-eligibility`,e,t],releaseNativeBuild:e=>[`release-native-build`,e]},N=6e4,P=1440*60*1e3,F=1800*1e3;function ee(){return e({queryKey:M.config,queryFn:()=>h(),staleTime:1/0})}function I(){return e({queryKey:M.channels,queryFn:()=>g(),staleTime:1/0})}var L=6e4;function R(t,{enabled:n=!0}={}){return e({queryKey:M.releases.list(t),queryFn:()=>s({data:t}),placeholderData:e=>e,staleTime:L,enabled:n})}function z(e,t,n){return a({queryKey:M.releases.fold(e,t),queryFn:({pageParam:n})=>c({data:{...t,...e===void 0?{}:{filter:e},...n===void 0?{}:{after:n}}}),initialPageParam:void 0,getNextPageParam:e=>e.next,enabled:n,staleTime:L})}function B(t){return e({enabled:t.length>0,queryFn:()=>l({data:{releaseId:t}}),queryKey:M.release(t)})}function V(t){return e({enabled:t.length>0,queryFn:()=>m({data:{scopeKey:t}}),queryKey:M.releaseCatalog(t)})}function H(t){return e({queryKey:M.bundle(t),queryFn:()=>y({data:{bundleId:t}}),staleTime:1/0,enabled:!!t})}function U(t){return e({queryKey:M.bundleChildren.list(t),queryFn:()=>b({data:{baseBundleId:t}}),staleTime:1/0,enabled:!!t})}function W(t){let n=[...t].sort((e,t)=>e.localeCompare(t));return e({queryKey:M.bundleChildren.counts(n),queryFn:()=>x({data:{bundleIds:n}}),staleTime:1/0,enabled:n.length>0})}function G(e,t,n){return a({queryKey:M.nativeBuilds.fold(e,t),queryFn:({pageParam:n})=>C({data:{...t,...e===void 0?{}:{channel:e},...n===void 0?{}:{after:n}}}),initialPageParam:void 0,getNextPageParam:e=>e.next,enabled:n,staleTime:6e4})}function K(t,{enabled:n=!0}={}){return e({queryKey:M.nativeBuilds.list(t),queryFn:()=>S({data:t}),placeholderData:e=>e,staleTime:6e4,enabled:n})}function q(t){return e({queryKey:M.nativeBuild(t),queryFn:()=>w({data:{id:t}}),enabled:t.length>0})}function J(t,n,r){return e({queryKey:M.nativeBuildPatches(t,n),queryFn:()=>T({data:{minBundleId:t,...n}}),enabled:r&&t.length>0,placeholderData:e=>e,staleTime:L})}function Y(t){return e({queryKey:M.releaseNativeBuild(t??{platform:`ios`,channel:``,fingerprintHash:null,targetAppVersion:null}),queryFn:()=>E({data:t}),enabled:t!==null,staleTime:6e4})}function X(t){return e({queryKey:M.nativeBuildDownloadLink(t),queryFn:()=>k({data:{id:t}}),staleTime:P})}function Z(t,n){return e({queryKey:M.nativeBuildInstallEligibility(t,n),queryFn:()=>A({data:{id:t,...n===null?{}:{udid:n}}}),staleTime:F,refetchInterval:F})}function Q(t){return e({queryKey:M.nativeBuildDownloadUrl(t),queryFn:()=>O({data:{id:t}}),staleTime:N})}function $(){let e=n();return o({mutationFn:e=>_({data:e}).then(e=>e.data),onSuccess:async()=>{await e.invalidateQueries({queryKey:M.channels})}})}function te(){let e=n();return o({mutationFn:e=>v({data:e}).then(e=>e.data),onSettled:async()=>{await e.invalidateQueries({queryKey:M.channels})}})}function ne(){let e=n();return o({mutationFn:e=>D({data:e}),onSettled:async()=>{await Promise.all([e.invalidateQueries({queryKey:[`native-build`]}),e.invalidateQueries({queryKey:M.nativeBuilds.all}),e.invalidateQueries({queryKey:[`release-native-build`]})])}})}function re(){let e=n();return o({mutationFn:e=>u({data:e}),onSuccess:async(t,n)=>{await Promise.all([e.invalidateQueries({queryKey:M.releases.all}),e.invalidateQueries({queryKey:M.release(n.releaseId)}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:M.channels})])}})}function ie(){return o({mutationFn:e=>d({data:e})})}function ae(){let e=n();return o({mutationFn:e=>f({data:e}),onSuccess:async(t,n)=>{e.removeQueries({queryKey:M.release(n.releaseId)}),await Promise.all([e.invalidateQueries({queryKey:M.releases.all}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:M.channels}),e.invalidateQueries({queryKey:[`bundle`]}),e.invalidateQueries({queryKey:M.bundleChildren.all}),e.invalidateQueries({queryKey:[`native-build-patches`]})])}})}function oe(){let e=n();return o({mutationFn:e=>p({data:e}),onSuccess:async()=>{await Promise.all([e.invalidateQueries({queryKey:M.releases.all}),e.invalidateQueries({queryKey:[`release`]}),e.invalidateQueries({queryKey:[`release-catalog`]}),e.invalidateQueries({queryKey:M.channels})])}})}export{R as C,B as S,ie as _,ee as a,z as b,ae as c,X as d,Q as f,K as g,J as h,I as i,ne as l,Z as m,U as n,$ as o,G as p,H as r,te as s,W as t,q as u,oe as v,re as w,Y as x,V as y};
@@ -0,0 +1 @@
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";var t=e(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";var t=e(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";var t=e(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Ar as e,Di as t,Ri as n,Vr as r,Z as i,vr as a,yr as o}from"./sidebar-BmzmPGuv.js";var s=r(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);n();var c=t(),l=o(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function u({className:e,variant:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a(l({variant:t}),e),...n})}function d({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`alert-title`,className:a(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,e),...t})}function f({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`alert-description`,className:a(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,e),...t})}function p({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`alert-action`,className:a(`absolute top-1.5 right-2`,e),...t})}var m=o(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,success:`border-success/20 bg-success/10 text-success`,warning:`border-warning/20 bg-warning/10 text-warning`,muted:`border-badge-muted/20 bg-badge-muted/10 font-medium text-badge-muted`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function h({className:t,variant:n=`default`,render:r,...o}){return i({defaultTagName:`span`,props:e({className:a(m({variant:n}),t)},o),render:r,state:{slot:`badge`,variant:n}})}export{d as a,f as i,u as n,s as o,p as r,h as t};
@@ -0,0 +1 @@
1
+ import{Di as e,Ri as t,vr as n}from"./sidebar-BmzmPGuv.js";t();var r=e();function i({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card`,className:n(`rounded-xl border bg-card text-card-foreground shadow`,e),...t})}function a({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:n(`flex flex-col gap-1.5 p-6`,e),...t})}function o({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:n(`font-semibold leading-none tracking-tight`,e),...t})}function s({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:n(`text-sm text-muted-foreground`,e),...t})}function c({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:n(`p-6 pt-0`,e),...t})}function l({className:e,...t}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:n(`flex items-center p-6 pt-0`,e),...t})}export{a,l as i,c as n,o,s as r,i as t};
@@ -0,0 +1 @@
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";var t=e(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
@@ -1 +1 @@
1
- import{ir as e}from"./sidebar-Di9SN47G.js";var t=e(`circle-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,key:`1pfsoa`}],[`path`,{d:`M19.08 19.08A10 10 0 1 1 4.92 4.92`,key:`1ablyi`}]]);export{t};
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";var t=e(`circle-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.35 2.69A10 10 0 0 1 21.3 15.65`,key:`1pfsoa`}],[`path`,{d:`M19.08 19.08A10 10 0 1 1 4.92 4.92`,key:`1ablyi`}]]);export{t};
@@ -1 +1 @@
1
- import{ir as e}from"./sidebar-Di9SN47G.js";var t=e(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]);export{t};
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";var t=e(`clipboard`,[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2`,key:`116196`}]]);export{t};
@@ -1 +1 @@
1
- import{Gr as e,Qr as t,Vr as n,ar as r,nr as i}from"./sidebar-Di9SN47G.js";function a(e){return e}var o={insights:{plugin:`insights`,label:`Insights`,remote:!0},insightsAnalytics:{plugin:`insights`,label:`Insights`,remote:!1},remoteConfig:{plugin:`remoteConfig`,label:`Remote Config`,remote:!0},apiKeys:{plugin:`apiKeys`,label:`API keys`,remote:!1}},s=Object.keys(o),c=(e,{remote:t})=>t&&!o[e].remote?`remote`:`plugin`,l=e=>e instanceof Error&&e.name===`ConsoleFeatureUnavailableError`&&s.includes(Reflect.get(e,`feature`)),u=n({method:`GET`}).middleware([i]).handler(e(`82ec3500e57f9e81dac6d3f3a7bd9e34915da3121429beec87b7ad153dc6eafe`)),d=[`console`,`features`],f=()=>a({queryKey:d,queryFn:()=>u(),staleTime:1/0}),p=()=>r(f()),m=e=>p().data?.features[e]===!0,h=e=>{let t=typeof e==`object`&&e?Reflect.get(e,`feature`):void 0;return typeof t==`string`&&Object.hasOwn(o,t)?t:void 0},g=async(e,n)=>{let r=await e.ensureQueryData(f()).catch(()=>{e.removeQueries({queryKey:d,exact:!0})});if(r!==void 0&&!r.features[n])throw t({data:{feature:n}})};export{p as a,c,m as i,a as l,h as n,o,g as r,l as s,f as t};
1
+ import{Fi as e,Hr as t,Oi as n,wi as r,zr as i}from"./sidebar-BmzmPGuv.js";function a(e){return e}var o={insights:{plugin:`insights`,label:`Insights`,remote:!0},insightsAnalytics:{plugin:`insights`,label:`Insights`,remote:!1},remoteConfig:{plugin:`remoteConfig`,label:`Remote Config`,remote:!0},apiKeys:{plugin:`apiKeys`,label:`API keys`,remote:!1}},s=Object.keys(o),c=(e,{remote:t})=>t&&!o[e].remote?`remote`:`plugin`,l=e=>e instanceof Error&&e.name===`ConsoleFeatureUnavailableError`&&s.includes(Reflect.get(e,`feature`)),u=r({method:`GET`}).middleware([i]).handler(n(`82ec3500e57f9e81dac6d3f3a7bd9e34915da3121429beec87b7ad153dc6eafe`)),d=[`console`,`features`],f=()=>a({queryKey:d,queryFn:()=>u(),staleTime:1/0}),p=()=>t(f()),m=e=>p().data?.features[e]===!0,h=e=>{let t=typeof e==`object`&&e?Reflect.get(e,`feature`):void 0;return typeof t==`string`&&Object.hasOwn(o,t)?t:void 0},g=async(t,n)=>{let r=await t.ensureQueryData(f()).catch(()=>{t.removeQueries({queryKey:d,exact:!0})});if(r!==void 0&&!r.features[n])throw e({data:{feature:n}})};export{p as a,c,m as i,a as l,h as n,o,g as r,l as s,f as t};
@@ -1 +1 @@
1
- var e=`[a-zA-Z0-9-]`,t=String.raw`0|[1-9]\d*`,n=String.raw`\d+`,r=String.raw`\d*[a-zA-Z-]${e}*`,i=String.raw`(${t})\.(${t})\.(${t})`,a=String.raw`(${n})\.(${n})\.(${n})`,o=`(?:${r}|${t})`,s=`(?:${r}|${n})`,c=String.raw`(?:-(${o}(?:\.${o})*))`,l=String.raw`(?:-?(${s}(?:\.${s})*))`,u=`${e}+`,d=String.raw`(?:\+(${u}(?:\.${u})*))`,ee=`v?${i}${c}?${d}?`,f=String.raw`[v=\s]*${a}${l}?${d}?`,p=String.raw`${t}|x|X|\*`,m=String.raw`${n}|x|X|\*`;String.raw`[v=\s]*(${p})(?:\.(${p})(?:\.(${p})(?:${c})?${d}?)?)?`,String.raw`[v=\s]*(${m})(?:\.(${m})(?:\.(${m})(?:${l})?${d}?)?)?`,String.raw`(?:\^)`;var h=String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`,g=String.raw`${h}(?:$|[^\d])`,_=String.raw`${h}(?:${c})?(?:${d})?(?:$|[^\d])`;function v(t){let n=[[String.raw`\s`,1],[String.raw`\d`,256],[e,250]];for(let[e,r]of n)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t}function y(e,t){return new RegExp(v(e),t)}var b=y(`^${ee}$`),x=y(`^${f}$`),S=/^\d+$/;function te(e){let t=`${e.major}.${e.minor}.${e.patch}`;return e.prerelease?.length?`${t}-${e.prerelease.join(`.`)}`:t}function ne(e){let t=te(e);return e.build?.length?`${t}+${e.build.join(`.`)}`:t}function re(e,t={}){if(typeof e!=`string`)return e;if(e.length>256)throw TypeError(`Version exceeds the maximum length of 256 characters`);let n=e.trim().match(t.loose?x:b);if(!n)throw TypeError(`Invalid version syntax: ${e}`);let r=Number(n[1]),i=Number(n[2]),a=Number(n[3]);if(r>2**53-1||r<0)throw TypeError(`Invalid major version: ${n[1]}`);if(i>2**53-1||i<0)throw TypeError(`Invalid minor version: ${n[2]}`);if(a>2**53-1||a<0)throw TypeError(`Invalid patch version: ${n[3]}`);let o=n[4]?n[4].split(`.`).map(e=>{if(S.test(e)){let t=Number(e);if(t>=0&&t<2**53-1)return t}return e}):void 0;return{build:n[5]?.split(`.`),major:r,minor:i,patch:a,prerelease:o}}function C(e,t={}){try{return re(e,t)}catch{return null}}var ie=y(g),w=y(_);y(`^${c}$`),y(`^${l}$`);function T(e,t={}){let n=C(e,t);return n?ne(n):null}function E(e,t={}){if(typeof e==`object`)return e;let n=typeof e==`number`?String(e):e,r=null;if(t.rtl){let e=y(t.includePrerelease?_:g,`g`),i;for(;(i=e.exec(n))&&(!r||r.index+r[0].length!==n.length);)(!r||i.index+i[0].length!==r.index+r[0].length)&&(r=i),e.lastIndex=i.index+i[1].length+i[2].length}else r=(t.includePrerelease?w:ie).exec(n);if(!r)return null;let i=r[2];return C(`${i}.${r[3]||`0`}.${r[4]||`0`}${t.includePrerelease&&r[5]?`-${r[5]}`:``}${t.includePrerelease&&r[6]?`+${r[6]}`:``}`,t)}function D(e){let t=E(e);return t?T(t):null}var O=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`;function k(e){let t=[];for(let n of e){let e=n.codePointAt(0);e<=127?t.push(e):e<=2047?t.push(192|e>>6,128|e&63):e<=65535?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function A(e){let t=``;for(let n=0;n<e.length;){let r=e[n++],i,a;if(r<=127)i=r,a=0;else if((r&224)==192)i=r&31,a=1;else if((r&240)==224)i=r&15,a=2;else if((r&248)==240)i=r&7,a=3;else throw Error(`Invalid UTF-8 channel key`);for(let t=0;t<a;t+=1){let t=e[n++];if(t===void 0||(t&192)!=128)throw Error(`Invalid UTF-8 channel key`);i=i<<6|t&63}if(i>1114111||i>=55296&&i<=57343||a===1&&i<128||a===2&&i<2048||a===3&&i<65536)throw Error(`Invalid UTF-8 channel key`);t+=String.fromCodePoint(i)}return t}function j(e){let t=``;for(let n=0;n<e.length;n+=3){let r=e[n],i=e[n+1],a=e[n+2],o=r<<16|(i??0)<<8|(a??0);t+=O[o>>18&63],t+=O[o>>12&63],i!==void 0&&(t+=O[o>>6&63]),a!==void 0&&(t+=O[o&63])}return t}function M(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4==1)throw Error(`Invalid channel key`);let t=[];for(let n=0;n<e.length;n+=4){let r=e.slice(n,n+4),i=[...r].map(e=>O.indexOf(e));if(i.some(e=>e<0))throw Error(`Invalid channel key`);let a=i[0]<<18|i[1]<<12|(i[2]??0)<<6|(i[3]??0);t.push(a>>16&255),r.length>=3&&t.push(a>>8&255),r.length===4&&t.push(a&255)}return t}function N(e){return e.trim().normalize(`NFC`)}function P(e){let t=N(e);if(t.length===0||t!==e)throw Error(`Channel name must be non-empty, trimmed, and NFC-normalized`);let n=0;for(let e of t)if(n+=1,n>255)throw Error(`Channel name must not exceed 255 characters`)}function F(e){return P(e),j(k(e))}function I(e){let t=A(M(e));if(P(t),F(t)!==e)throw Error(`Channel key is not canonically encoded`);return t}var L=/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,R=e=>typeof e==`string`&&L.test(e),z=e=>{if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.baseBundleId==`string`&&typeof t.baseFileHash==`string`&&typeof t.patchFileHash==`string`&&typeof t.patchStorageUri==`string`},B=e=>Array.isArray(e)?e.filter(z):[],V=e=>{let t=B(e.patches),n=new Set;return t.filter(e=>n.has(e.baseBundleId)?!1:(n.add(e.baseBundleId),!0))},H=e=>V(e)[0]??null,U=e=>H(e)?.baseBundleId??null,ae=e=>H(e)?.baseFileHash??null,W=e=>H(e)?.patchFileHash??null,G=1e3,K=G,q=`Invalid cohort. Use 1-1000 or a lowercase slug without spaces, up to 64 characters.`,J=/^[a-z0-9-]+$/;function Y(e){if(!/^\d+$/.test(e))return null;let t=Number.parseInt(e,10);return Number.isNaN(t)||t<1||t>1e3?null:t}function X(e,t){return(e%t+t)%t}function Z(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}function oe(e,t){let n=Math.abs(e),r=Math.abs(t);for(;r!==0;){let e=n%r;n=r,r=e}return n}function se(e,t){let n=0,r=1,i=t,a=X(e,t);for(;a!==0;){let e=Math.floor(i/a);[n,r]=[r,n-e*r],[i,a]=[a,i-e*a]}if(i>1)throw Error(`No modular inverse for ${e} mod ${t}`);return X(n,t)}function ce(e){let t=X(Z(`${e}:multiplier`),997);for(t===0&&(t=1);oe(t,G)!==1;)t=X(t+1,G),t===0&&(t=1);let n=X(Z(`${e}:offset`),G);return{multiplier:t,offset:n,inverseMultiplier:se(t,G)}}function le(e){return e==null?K:e<=0?0:e>=1e3?G:Math.floor(e)}function Q(e){let t=e.trim().toLowerCase(),n=Y(t);return n===null?t:String(n)}function $(e){return Y(Q(e))}function ue(e){return $(e)!==null}function de(e){let t=Q(e);return t.length>0&&t.length<=64&&!/^\d+$/.test(t)&&J.test(t)}function fe(e){let t=Q(e);return ue(t)||de(t)}function pe(e,t){if(t<1||t>1e3)throw Error(`Invalid numeric cohort: ${t}`);let{offset:n,inverseMultiplier:r}=ce(e);return X(r*(t-1-n),G)}var me=e=>{if(!R(e))throw TypeError(`Expected a canonical lowercase UUIDv7`);let t=e.split(`-`).join(``).slice(0,12);return Number.parseInt(t,16)};export{U as a,fe as c,P as d,D as f,pe as i,Q as l,R as m,q as n,ae as o,I as p,G as r,W as s,me as t,le as u};
1
+ var e=`[a-zA-Z0-9-]`,t=String.raw`0|[1-9]\d*`,n=String.raw`\d+`,r=String.raw`\d*[a-zA-Z-]${e}*`,i=String.raw`(${t})\.(${t})\.(${t})`,a=String.raw`(${n})\.(${n})\.(${n})`,o=`(?:${r}|${t})`,s=`(?:${r}|${n})`,c=String.raw`(?:-(${o}(?:\.${o})*))`,l=String.raw`(?:-?(${s}(?:\.${s})*))`,u=`${e}+`,d=String.raw`(?:\+(${u}(?:\.${u})*))`,ee=`v?${i}${c}?${d}?`,f=String.raw`[v=\s]*${a}${l}?${d}?`,p=String.raw`${t}|x|X|\*`,m=String.raw`${n}|x|X|\*`;String.raw`[v=\s]*(${p})(?:\.(${p})(?:\.(${p})(?:${c})?${d}?)?)?`,String.raw`[v=\s]*(${m})(?:\.(${m})(?:\.(${m})(?:${l})?${d}?)?)?`,String.raw`(?:\^)`;var h=String.raw`(^|[^\d])(\d{1,${16}})(?:\.(\d{1,${16}}))?(?:\.(\d{1,${16}}))?`,g=String.raw`${h}(?:$|[^\d])`,_=String.raw`${h}(?:${c})?(?:${d})?(?:$|[^\d])`;function v(t){let n=[[String.raw`\s`,1],[String.raw`\d`,256],[e,250]];for(let[e,r]of n)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t}function y(e,t){return new RegExp(v(e),t)}var b=y(`^${ee}$`),x=y(`^${f}$`),S=/^\d+$/;function te(e){let t=`${e.major}.${e.minor}.${e.patch}`;return e.prerelease?.length?`${t}-${e.prerelease.join(`.`)}`:t}function ne(e){let t=te(e);return e.build?.length?`${t}+${e.build.join(`.`)}`:t}function re(e,t={}){if(typeof e!=`string`)return e;if(e.length>256)throw TypeError(`Version exceeds the maximum length of 256 characters`);let n=e.trim().match(t.loose?x:b);if(!n)throw TypeError(`Invalid version syntax: ${e}`);let r=Number(n[1]),i=Number(n[2]),a=Number(n[3]);if(r>2**53-1||r<0)throw TypeError(`Invalid major version: ${n[1]}`);if(i>2**53-1||i<0)throw TypeError(`Invalid minor version: ${n[2]}`);if(a>2**53-1||a<0)throw TypeError(`Invalid patch version: ${n[3]}`);let o=n[4]?n[4].split(`.`).map(e=>{if(S.test(e)){let t=Number(e);if(t>=0&&t<2**53-1)return t}return e}):void 0;return{build:n[5]?.split(`.`),major:r,minor:i,patch:a,prerelease:o}}function C(e,t={}){try{return re(e,t)}catch{return null}}var ie=y(g),w=y(_);y(`^${c}$`),y(`^${l}$`);function T(e,t={}){let n=C(e,t);return n?ne(n):null}function E(e,t={}){if(typeof e==`object`)return e;let n=typeof e==`number`?String(e):e,r=null;if(t.rtl){let e=y(t.includePrerelease?_:g,`g`),i;for(;(i=e.exec(n))&&(!r||r.index+r[0].length!==n.length);)(!r||i.index+i[0].length!==r.index+r[0].length)&&(r=i),e.lastIndex=i.index+i[1].length+i[2].length}else r=(t.includePrerelease?w:ie).exec(n);if(!r)return null;let i=r[2];return C(`${i}.${r[3]||`0`}.${r[4]||`0`}${t.includePrerelease&&r[5]?`-${r[5]}`:``}${t.includePrerelease&&r[6]?`+${r[6]}`:``}`,t)}function D(e){let t=E(e);return t?T(t):null}var O=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`;function k(e){let t=[];for(let n of e){let e=n.codePointAt(0);e<=127?t.push(e):e<=2047?t.push(192|e>>6,128|e&63):e<=65535?t.push(224|e>>12,128|e>>6&63,128|e&63):t.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|e&63)}return t}function A(e){let t=``;for(let n=0;n<e.length;){let r=e[n++],i,a;if(r<=127)i=r,a=0;else if((r&224)==192)i=r&31,a=1;else if((r&240)==224)i=r&15,a=2;else if((r&248)==240)i=r&7,a=3;else throw Error(`Invalid UTF-8 channel key`);for(let t=0;t<a;t+=1){let t=e[n++];if(t===void 0||(t&192)!=128)throw Error(`Invalid UTF-8 channel key`);i=i<<6|t&63}if(i>1114111||i>=55296&&i<=57343||a===1&&i<128||a===2&&i<2048||a===3&&i<65536)throw Error(`Invalid UTF-8 channel key`);t+=String.fromCodePoint(i)}return t}function j(e){let t=``;for(let n=0;n<e.length;n+=3){let r=e[n],i=e[n+1],a=e[n+2],o=r<<16|(i??0)<<8|(a??0);t+=O[o>>18&63],t+=O[o>>12&63],i!==void 0&&(t+=O[o>>6&63]),a!==void 0&&(t+=O[o&63])}return t}function M(e){if(!/^[A-Za-z0-9_-]*$/.test(e)||e.length%4==1)throw Error(`Invalid channel key`);let t=[];for(let n=0;n<e.length;n+=4){let r=e.slice(n,n+4),i=[...r].map(e=>O.indexOf(e));if(i.some(e=>e<0))throw Error(`Invalid channel key`);let a=i[0]<<18|i[1]<<12|(i[2]??0)<<6|(i[3]??0);t.push(a>>16&255),r.length>=3&&t.push(a>>8&255),r.length===4&&t.push(a&255)}return t}function N(e){return e.trim().normalize(`NFC`)}function P(e){let t=N(e);if(t.length===0||t!==e)throw Error(`Channel name must be non-empty, trimmed, and NFC-normalized`);let n=0;for(let e of t)if(n+=1,n>255)throw Error(`Channel name must not exceed 255 characters`)}function F(e){return P(e),j(k(e))}function I(e){let t=A(M(e));if(P(t),F(t)!==e)throw Error(`Channel key is not canonically encoded`);return t}var L=/^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,R=e=>typeof e==`string`&&L.test(e),z=e=>{if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;return typeof t.baseBundleId==`string`&&typeof t.baseFileHash==`string`&&typeof t.patchFileHash==`string`&&typeof t.patchStorageUri==`string`},B=e=>Array.isArray(e)?e.filter(z):[],V=e=>{let t=B(e.patches),n=new Set;return t.filter(e=>n.has(e.baseBundleId)?!1:(n.add(e.baseBundleId),!0))},H=e=>V(e)[0]??null,U=e=>H(e)?.baseBundleId??null,ae=e=>H(e)?.baseFileHash??null,W=e=>H(e)?.patchFileHash??null,G=1e3,K=G,q=`Invalid cohort. Use 1-1000 or a lowercase slug without spaces, up to 64 characters.`,J=/^[a-z0-9-]+$/;function Y(e){if(!/^\d+$/.test(e))return null;let t=Number.parseInt(e,10);return Number.isNaN(t)||t<1||t>1e3?null:t}function X(e,t){return(e%t+t)%t}function Z(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}function oe(e,t){let n=Math.abs(e),r=Math.abs(t);for(;r!==0;){let e=n%r;n=r,r=e}return n}function se(e,t){let n=0,r=1,i=t,a=X(e,t);for(;a!==0;){let e=Math.floor(i/a);[n,r]=[r,n-e*r],[i,a]=[a,i-e*a]}if(i>1)throw Error(`No modular inverse for ${e} mod ${t}`);return X(n,t)}function ce(e){let t=X(Z(`${e}:multiplier`),997);for(t===0&&(t=1);oe(t,G)!==1;)t=X(t+1,G),t===0&&(t=1);let n=X(Z(`${e}:offset`),G);return{multiplier:t,offset:n,inverseMultiplier:se(t,G)}}function le(e){return e==null?K:e<=0?0:e>=1e3?G:Math.floor(e)}function Q(e){let t=e.trim().toLowerCase(),n=Y(t);return n===null?t:String(n)}function ue(e){return Y(Q(e))}function de(e){return ue(e)!==null}function fe(e){let t=Q(e);return t.length>0&&t.length<=64&&!/^\d+$/.test(t)&&J.test(t)}function pe(e){let t=Q(e);return de(t)||fe(t)}function $(e,t){if(t<1||t>1e3)throw Error(`Invalid numeric cohort: ${t}`);let{offset:n,inverseMultiplier:r}=ce(e);return X(r*(t-1-n),G)}var me=e=>{if(!R(e))throw TypeError(`Expected a canonical lowercase UUIDv7`);let t=e.split(`-`).join(``).slice(0,12);return Number.parseInt(t,16)},he=`production`,ge=`All channels`,_e=`https://hot-updater.dev/docs/guides/console#git-url`;export{R as _,q as a,U as c,pe as d,Q as f,I as g,D as h,me as i,ae as l,P as m,_e as n,G as o,le as p,he as r,$ as s,ge as t,W as u};
@@ -1 +1 @@
1
- import{ir as e}from"./sidebar-Di9SN47G.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t};
1
+ import{Vr as e}from"./sidebar-BmzmPGuv.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{Br as e,Di as t,E as n,J as r,Ri as i,S as a,T as o,X as s,Y as c,gr as l,j as u,k as d,vr as f}from"./sidebar-BmzmPGuv.js";i();var p=t();function m({...e}){return(0,p.jsx)(n,{"data-slot":`dialog`,...e})}function h({...e}){return(0,p.jsx)(a,{"data-slot":`dialog-trigger`,...e})}function g({...e}){return(0,p.jsx)(d,{"data-slot":`dialog-portal`,...e})}function _({className:e,...t}){return(0,p.jsx)(s,{"data-slot":`dialog-overlay`,className:f(`fixed inset-0 isolate z-50 bg-black/80 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function v({className:t,children:n,showCloseButton:r=!0,...i}){return(0,p.jsxs)(g,{children:[(0,p.jsx)(_,{}),(0,p.jsxs)(u,{"data-slot":`dialog-content`,className:f(`fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-background p-4 text-xs/relaxed ring-1 ring-foreground/10 duration-100 outline-none max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,t),...i,children:[n,r&&(0,p.jsxs)(c,{"data-slot":`dialog-close`,render:(0,p.jsx)(l,{variant:`ghost`,className:`absolute top-2 right-2 max-md:top-1 max-md:right-1 max-md:size-11`,size:`icon-sm`}),children:[(0,p.jsx)(e,{}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function y({className:e,...t}){return(0,p.jsx)(`div`,{"data-slot":`dialog-header`,className:f(`flex flex-col gap-1`,e),...t})}function b({className:e,showCloseButton:t=!1,children:n,...r}){return(0,p.jsxs)(`div`,{"data-slot":`dialog-footer`,className:f(`flex flex-col-reverse gap-2 max-sm:*:min-h-11 sm:flex-row sm:justify-end`,e),...r,children:[n,t&&(0,p.jsx)(c,{render:(0,p.jsx)(l,{variant:`outline`}),children:`Close`})]})}function x({className:e,...t}){return(0,p.jsx)(o,{"data-slot":`dialog-title`,className:f(`text-sm font-medium`,e),...t})}function S({className:e,...t}){return(0,p.jsx)(r,{"data-slot":`dialog-description`,className:f(`text-xs/relaxed text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}export{y as a,b as i,v as n,x as o,S as r,h as s,m as t};