sanoma 0.11.19 → 0.11.21

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 (1334) hide show
  1. package/README.md +22 -22
  2. package/app/README.md +548 -0
  3. package/app/dist/api.d.ts +984 -0
  4. package/app/dist/api.js +261 -0
  5. package/app/dist/api.js.map +1 -0
  6. package/app/dist/app-bundle.d.ts +81 -0
  7. package/app/dist/app-bundle.js +13 -0
  8. package/app/dist/app-bundle.js.map +1 -0
  9. package/app/dist/build.d.ts +89 -0
  10. package/app/dist/build.js +843 -0
  11. package/app/dist/build.js.map +1 -0
  12. package/app/dist/bundle-build.d.ts +39 -0
  13. package/app/dist/bundle-build.js +585 -0
  14. package/app/dist/bundle-build.js.map +1 -0
  15. package/app/dist/client/assets/ArrowUp.es-DOgvoS0P.js +1 -0
  16. package/app/dist/client/assets/Copy.es-B0D5SwiQ.js +1 -0
  17. package/app/dist/client/assets/DialogTitle-BgjYK22C.js +1 -0
  18. package/app/dist/client/assets/FloppyDisk.es-DnuNe_a8.js +1 -0
  19. package/app/dist/client/assets/Globe.es-B6x2e4-a.js +1 -0
  20. package/app/dist/client/assets/MagnifyingGlass.es-DoNoHEhT.js +1 -0
  21. package/app/dist/client/assets/Play.es-BwXalGBh.js +1 -0
  22. package/app/dist/client/assets/Plug.es-CaZsN5P-.js +1 -0
  23. package/app/dist/client/assets/Plus.es-w9VPpTJB.js +1 -0
  24. package/app/dist/client/assets/Separator-BAhKFgSd.js +1 -0
  25. package/app/dist/client/assets/X.es-DKMYClf-.js +1 -0
  26. package/app/dist/client/assets/_id-BSRAaWtO.js +1 -0
  27. package/app/dist/client/assets/_id-BjDP-cPH.js +1 -0
  28. package/app/dist/client/assets/_id-BudM76zX.js +1 -0
  29. package/app/dist/client/assets/_id-C37U5bBa.js +1 -0
  30. package/app/dist/client/assets/_id-lmg24JVh.js +2 -0
  31. package/app/dist/client/assets/_name-CylqFo_t.js +1 -0
  32. package/app/dist/client/assets/_name-D8Gl8iwy.js +4 -0
  33. package/app/dist/client/assets/_name-DdPCU8pt.js +1 -0
  34. package/app/dist/client/assets/_name-TteWQXe0.js +1 -0
  35. package/app/dist/client/assets/_vendor-BLxW83yk.js +1 -0
  36. package/app/dist/client/assets/_vendor-Bq3uZU4-.js +1 -0
  37. package/app/dist/client/assets/app-chrome-H8uZ4dHI.js +16 -0
  38. package/app/dist/client/assets/app-scope-BeUW_8Qh.js +1 -0
  39. package/app/dist/client/assets/approval-DpgmTc63.js +1 -0
  40. package/app/dist/client/assets/apps-71ZEzcL9.js +1 -0
  41. package/app/dist/client/assets/apps-CoWzNm8M.js +1 -0
  42. package/app/dist/client/assets/change-glance-DbYcBT7H.js +1 -0
  43. package/app/dist/client/assets/changes-DIJvP7wQ.js +1 -0
  44. package/app/dist/client/assets/chat-button-BgpOfYh1.js +1 -0
  45. package/app/dist/client/assets/chat-prompt-hiawXcK0.js +1 -0
  46. package/app/dist/client/assets/clipboard-Zb0yr0Ja.js +3 -0
  47. package/app/dist/client/assets/code-BVYaiQEr.js +32 -0
  48. package/app/dist/client/assets/common-Dw2i6XKZ.js +3 -0
  49. package/app/dist/client/assets/composite-D9GNDzFj.js +1 -0
  50. package/app/dist/client/assets/connect-CIq2KJTz.js +1 -0
  51. package/app/dist/client/assets/connections-iqd2XbWQ.js +5 -0
  52. package/app/dist/client/assets/connectors-rI8_D1n1.js +1 -0
  53. package/app/dist/client/assets/content-DOwCrGXH.js +1 -0
  54. package/app/dist/client/assets/credentials-26vu6Fv5.js +1 -0
  55. package/app/dist/client/assets/data-sDMlKaLV.js +1 -0
  56. package/app/dist/client/assets/decidable-zcYI7bY8.js +1 -0
  57. package/app/dist/client/assets/declaration-form-BtSVvxhq.js +1 -0
  58. package/app/dist/client/assets/dialog-DskpUgkl.js +1 -0
  59. package/app/dist/client/assets/existing-BD3VgJ_8.js +1 -0
  60. package/app/dist/client/assets/fraunces-latin-ext-wght-normal-Ca2vKHc0.woff2 +0 -0
  61. package/app/dist/client/assets/fraunces-latin-wght-normal-ukD16Tqj.woff2 +0 -0
  62. package/app/dist/client/assets/fraunces-vietnamese-wght-normal-CnvboYUG.woff2 +0 -0
  63. package/app/dist/client/assets/graph-BBLU_iSl.css +1 -0
  64. package/app/dist/client/assets/graph-Prxl3c55.js +7 -0
  65. package/app/dist/client/assets/grid-diff-SMsvea6t.js +1 -0
  66. package/app/dist/client/assets/hosting-BBHUppH-.js +1 -0
  67. package/app/dist/client/assets/ibm-plex-mono-cyrillic-400-italic-2syK4fUT.woff +0 -0
  68. package/app/dist/client/assets/ibm-plex-mono-cyrillic-400-italic-CBJ8pzag.woff2 +0 -0
  69. package/app/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  70. package/app/dist/client/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  71. package/app/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
  72. package/app/dist/client/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
  73. package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-italic-B4oTjJdl.woff +0 -0
  74. package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-italic-CBjNughH.woff2 +0 -0
  75. package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  76. package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  77. package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
  78. package/app/dist/client/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
  79. package/app/dist/client/assets/ibm-plex-mono-latin-400-italic-66oory27.woff +0 -0
  80. package/app/dist/client/assets/ibm-plex-mono-latin-400-italic-BqAiT5Ww.woff2 +0 -0
  81. package/app/dist/client/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  82. package/app/dist/client/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  83. package/app/dist/client/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  84. package/app/dist/client/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  85. package/app/dist/client/assets/ibm-plex-mono-latin-ext-400-italic-B7_fu1kp.woff2 +0 -0
  86. package/app/dist/client/assets/ibm-plex-mono-latin-ext-400-italic-Bg0ZHwF4.woff +0 -0
  87. package/app/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  88. package/app/dist/client/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  89. package/app/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
  90. package/app/dist/client/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
  91. package/app/dist/client/assets/ibm-plex-mono-vietnamese-400-italic-D6eaYXMU.woff +0 -0
  92. package/app/dist/client/assets/ibm-plex-mono-vietnamese-400-italic-DRuN92E5.woff2 +0 -0
  93. package/app/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  94. package/app/dist/client/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  95. package/app/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
  96. package/app/dist/client/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
  97. package/app/dist/client/assets/ibm-plex-sans-cyrillic-ext-wght-italic-O9KpBTMP.woff2 +0 -0
  98. package/app/dist/client/assets/ibm-plex-sans-cyrillic-ext-wght-normal-d45eAU9y.woff2 +0 -0
  99. package/app/dist/client/assets/ibm-plex-sans-cyrillic-wght-italic-BC1D_hcE.woff2 +0 -0
  100. package/app/dist/client/assets/ibm-plex-sans-cyrillic-wght-normal-BAAhND-U.woff2 +0 -0
  101. package/app/dist/client/assets/ibm-plex-sans-greek-wght-italic-BOZ1G-_q.woff2 +0 -0
  102. package/app/dist/client/assets/ibm-plex-sans-greek-wght-normal-CmyJS8uq.woff2 +0 -0
  103. package/app/dist/client/assets/ibm-plex-sans-latin-ext-wght-italic-QwKXLQRc.woff2 +0 -0
  104. package/app/dist/client/assets/ibm-plex-sans-latin-ext-wght-normal-CIII54If.woff2 +0 -0
  105. package/app/dist/client/assets/ibm-plex-sans-latin-wght-italic-DKUSOBgV.woff2 +0 -0
  106. package/app/dist/client/assets/ibm-plex-sans-latin-wght-normal-IvpUvPa2.woff2 +0 -0
  107. package/app/dist/client/assets/ibm-plex-sans-vietnamese-wght-italic-CKSJVnJa.woff2 +0 -0
  108. package/app/dist/client/assets/ibm-plex-sans-vietnamese-wght-normal-Dg1JeJN0.woff2 +0 -0
  109. package/app/dist/client/assets/import-B92fd4Tl.js +1 -0
  110. package/app/dist/client/assets/inbox-57oGZtxE.js +1 -0
  111. package/app/dist/client/assets/inbox-B2AMNtk5.js +1 -0
  112. package/app/dist/client/assets/index-Bn3XeKy8.js +10 -0
  113. package/app/dist/client/assets/kit-BsK6VZTQ.js +1 -0
  114. package/app/dist/client/assets/lazyRouteComponent-Uri98HNq.js +1 -0
  115. package/app/dist/client/assets/lines-DuFrbGkQ.js +3 -0
  116. package/app/dist/client/assets/motion-C8lNeYvK.js +1 -0
  117. package/app/dist/client/assets/names-COx1nqcj.js +1 -0
  118. package/app/dist/client/assets/people-ISOMYCTu.js +1 -0
  119. package/app/dist/client/assets/permissions-Cenat84K.js +2 -0
  120. package/app/dist/client/assets/permissions-grid-B2GtGwzv.js +1 -0
  121. package/app/dist/client/assets/route-BP1XwaTB.js +1 -0
  122. package/app/dist/client/assets/route-KVU6QgwJ.js +1 -0
  123. package/app/dist/client/assets/runs-table-35lNzKLn.js +1 -0
  124. package/app/dist/client/assets/scenario-DSwsavxS.js +1 -0
  125. package/app/dist/client/assets/scenario-graph-CAzWOtqV.js +1 -0
  126. package/app/dist/client/assets/schema-BpqanhX0.js +1 -0
  127. package/app/dist/client/assets/separator-BlwkzEY0.js +1 -0
  128. package/app/dist/client/assets/sheet-BYL9XU5s.js +1 -0
  129. package/app/dist/client/assets/site-icon-DZvOfBvU.js +1 -0
  130. package/app/dist/client/assets/sites.index-CcNo6N8u.js +1 -0
  131. package/app/dist/client/assets/spinner-BGy6LWIW.js +1 -0
  132. package/app/dist/client/assets/start-form-Bgo9I63s.js +1 -0
  133. package/app/dist/client/assets/store-BGu0d2Ld.js +57 -0
  134. package/app/dist/client/assets/style-CCDLLPgG.css +2 -0
  135. package/app/dist/client/assets/table-DjbI5VTn.js +1 -0
  136. package/app/dist/client/assets/textarea-DXO0eUdp.js +1 -0
  137. package/app/dist/client/assets/useLoaderData-BQd5yMlA.js +1 -0
  138. package/app/dist/client/assets/useOpenInteractionType-Bin8RjM5.js +1 -0
  139. package/app/dist/client/assets/useRegisterFieldControl-CQPTOU7Z.js +1 -0
  140. package/app/dist/client/assets/useValueChanged-DMkuvFZG.js +1 -0
  141. package/app/dist/client/assets/utils-CMsCvwYQ.js +1 -0
  142. package/app/dist/client/assets/who-are-you-Bt1WI3Cz.js +1 -0
  143. package/app/dist/client/assets/workflow-BJpO61A-.js +1 -0
  144. package/app/dist/client/assets/workflow-view-DP-UlRiH.js +1 -0
  145. package/app/dist/client/assets/workflows-BLCBgxbx.js +1 -0
  146. package/app/dist/components/grid/plan.d.ts +373 -0
  147. package/app/dist/components/grid/plan.js +347 -0
  148. package/app/dist/components/grid/plan.js.map +1 -0
  149. package/app/dist/content-files.d.ts +59 -0
  150. package/app/dist/content-files.js +218 -0
  151. package/app/dist/content-files.js.map +1 -0
  152. package/app/dist/content-types.d.ts +39 -0
  153. package/app/dist/content-types.js +16 -0
  154. package/app/dist/content-types.js.map +1 -0
  155. package/app/dist/context.d.ts +92 -0
  156. package/app/dist/context.js +2 -0
  157. package/app/dist/context.js.map +1 -0
  158. package/app/dist/handler.d.ts +72 -0
  159. package/app/dist/handler.js +179 -0
  160. package/app/dist/handler.js.map +1 -0
  161. package/app/dist/index.d.ts +81 -0
  162. package/app/dist/index.js +345 -0
  163. package/app/dist/index.js.map +1 -0
  164. package/app/dist/lib/apply-plan.d.ts +29 -0
  165. package/app/dist/lib/apply-plan.js +65 -0
  166. package/app/dist/lib/apply-plan.js.map +1 -0
  167. package/app/dist/lib/chat.d.ts +104 -0
  168. package/app/dist/lib/chat.js +72 -0
  169. package/app/dist/lib/chat.js.map +1 -0
  170. package/app/dist/lib/names.d.ts +4 -0
  171. package/app/dist/lib/names.js +11 -0
  172. package/app/dist/lib/names.js.map +1 -0
  173. package/app/dist/login/admission.d.ts +16 -0
  174. package/app/dist/login/admission.js +63 -0
  175. package/app/dist/login/admission.js.map +1 -0
  176. package/app/dist/login/keys.d.ts +32 -0
  177. package/app/dist/login/keys.js +60 -0
  178. package/app/dist/login/keys.js.map +1 -0
  179. package/app/dist/login/page.d.ts +23 -0
  180. package/app/dist/login/page.js +95 -0
  181. package/app/dist/login/page.js.map +1 -0
  182. package/app/dist/login/public.d.ts +30 -0
  183. package/app/dist/login/public.js +101 -0
  184. package/app/dist/login/public.js.map +1 -0
  185. package/app/dist/login/staff.d.ts +23 -0
  186. package/app/dist/login/staff.js +330 -0
  187. package/app/dist/login/staff.js.map +1 -0
  188. package/app/dist/loopback.d.ts +32 -0
  189. package/app/dist/loopback.js +84 -0
  190. package/app/dist/loopback.js.map +1 -0
  191. package/app/dist/seo.d.ts +33 -0
  192. package/app/dist/seo.js +66 -0
  193. package/app/dist/seo.js.map +1 -0
  194. package/app/dist/server/assets/_id-BViXAagq.js +689 -0
  195. package/app/dist/server/assets/_id-Dt9tTylX.js +19 -0
  196. package/app/dist/server/assets/_id-ce1EGp7Y.js +30 -0
  197. package/app/dist/server/assets/_id-wB8khGTz.js +82 -0
  198. package/app/dist/server/assets/_id-wuJIq2ZZ.js +13 -0
  199. package/app/dist/server/assets/_name-BGagGBjX.js +371 -0
  200. package/app/dist/server/assets/_name-BqFwnyf7.js +30 -0
  201. package/app/dist/server/assets/_name-D_-MhjNf.js +2951 -0
  202. package/app/dist/server/assets/_name-DntbHE-b.js +350 -0
  203. package/app/dist/server/assets/_tanstack-start-manifest_v-BljuBM-G.js +259 -0
  204. package/app/dist/server/assets/_vendor-CNB03LWX.js +137 -0
  205. package/app/dist/server/assets/_vendor-CcEviOki.js +20 -0
  206. package/app/dist/server/assets/actor-D6iA0pDg.js +94 -0
  207. package/app/dist/server/assets/app-chrome-BYS81Vnx.js +1410 -0
  208. package/app/dist/server/assets/app-scope-CXIgOFmi.js +79 -0
  209. package/app/dist/server/assets/apply-plan-ybBda6vQ.js +265 -0
  210. package/app/dist/server/assets/approval-Su315ikC.js +315 -0
  211. package/app/dist/server/assets/apps-Dbg2f5Lh.js +6 -0
  212. package/app/dist/server/assets/apps-xwQAehch.js +184 -0
  213. package/app/dist/server/assets/button-f9Lc8qLl.js +906 -0
  214. package/app/dist/server/assets/change-glance-CpArIbGS.js +142 -0
  215. package/app/dist/server/assets/changes-Bc_OiDBD.js +103 -0
  216. package/app/dist/server/assets/chat-DMN_hoKm.js +857 -0
  217. package/app/dist/server/assets/chat-button-LtA80MoR.js +19 -0
  218. package/app/dist/server/assets/chat-prompt-BYwbMxR6.js +10 -0
  219. package/app/dist/server/assets/clipboard-lnKxNXLI.js +70 -0
  220. package/app/dist/server/assets/code-COyt8L-n.js +123 -0
  221. package/app/dist/server/assets/common-CWHLj7KV.js +1036 -0
  222. package/app/dist/server/assets/connect-BpPiu5s6.js +165 -0
  223. package/app/dist/server/assets/connections-DBgb1bvX.js +1197 -0
  224. package/app/dist/server/assets/connectors-5a5_SlHO.js +186 -0
  225. package/app/dist/server/assets/content-B9KP-eh3.js +3 -0
  226. package/app/dist/server/assets/credentials-ud_Y68hx.js +187 -0
  227. package/app/dist/server/assets/data-aEdhwcqy.js +168 -0
  228. package/app/dist/server/assets/decidable-Dj5xIrIc.js +13 -0
  229. package/app/dist/server/assets/declaration-form-Dfg1yNuY.js +183 -0
  230. package/app/dist/server/assets/dialog-BGjiw3Dx.js +84 -0
  231. package/app/dist/server/assets/dropdown-menu-DAC3LWas.js +97 -0
  232. package/app/dist/server/assets/empty-plugin-adapters-CeuNAGfU.js +4 -0
  233. package/app/dist/server/assets/existing-B4d4NrC8.js +125 -0
  234. package/app/dist/server/assets/field-C0Xx_90s.js +94 -0
  235. package/app/dist/server/assets/functions-BvFYzabD.js +824 -0
  236. package/app/dist/server/assets/graph-qYOdoz2s.js +926 -0
  237. package/app/dist/server/assets/grid-diff-jTvp-8wS.js +171 -0
  238. package/app/dist/server/assets/hosting-bbn9UvDc.js +718 -0
  239. package/app/dist/server/assets/import-DIwvzHb6.js +730 -0
  240. package/app/dist/server/assets/inbox-D6R6sWBB.js +268 -0
  241. package/app/dist/server/assets/inbox-Dj-5FleF.js +65 -0
  242. package/app/dist/server/assets/input-D63gF3G2.js +14 -0
  243. package/app/dist/server/assets/item-BDSXoEr_.js +97 -0
  244. package/app/dist/server/assets/kit-D6EulwBe.js +489 -0
  245. package/app/dist/server/assets/lines-B4w04QZ0.js +27 -0
  246. package/app/dist/server/assets/middleware-B8JRLyxx.js +1420 -0
  247. package/app/dist/server/assets/motion-CAc7ab9u.js +35 -0
  248. package/app/dist/server/assets/names-B04Si-sV.js +9 -0
  249. package/app/dist/server/assets/native-select-DLa-He0n.js +37 -0
  250. package/app/dist/server/assets/people-CkU_AxrV.js +553 -0
  251. package/app/dist/server/assets/permissions-BfMcQqQb.js +256 -0
  252. package/app/dist/server/assets/permissions-grid-DWP9FAAS.js +91 -0
  253. package/app/dist/server/assets/route-BTT7nMJq.js +17 -0
  254. package/app/dist/server/assets/route-CF_8jQYY.js +22 -0
  255. package/app/dist/server/assets/router-BvYtxrVN.js +2334 -0
  256. package/app/dist/server/assets/runs-table-BBudn12Y.js +87 -0
  257. package/app/dist/server/assets/scenario-BXGTSTiP.js +141 -0
  258. package/app/dist/server/assets/scenario-graph-BErXIRgF.js +46 -0
  259. package/app/dist/server/assets/schema-DBT8KJsP.js +204 -0
  260. package/app/dist/server/assets/separator-8MZ7vR3f.js +13 -0
  261. package/app/dist/server/assets/sheet-5Cyp-4UW.js +74 -0
  262. package/app/dist/server/assets/site-icon-DJisMQUK.js +22 -0
  263. package/app/dist/server/assets/sites.index-1l0BtgVf.js +138 -0
  264. package/app/dist/server/assets/spinner-C1ZW08lp.js +15 -0
  265. package/app/dist/server/assets/start-CSU4irVK.js +75 -0
  266. package/app/dist/server/assets/start-form-DI60UOrc.js +399 -0
  267. package/app/dist/server/assets/table-DtPk_h_5.js +51 -0
  268. package/app/dist/server/assets/textarea-f0Ip5ed1.js +12 -0
  269. package/app/dist/server/assets/utils-wksS9pYh.js +138 -0
  270. package/app/dist/server/assets/who-are-you-ZGyMnpVi.js +122 -0
  271. package/app/dist/server/assets/workflow-Z99QWO42.js +115 -0
  272. package/app/dist/server/assets/workflow-view-C8X8U11S.js +1427 -0
  273. package/app/dist/server/assets/workflows-C0kJoGf1.js +344 -0
  274. package/app/dist/server/chat.d.ts +35 -0
  275. package/app/dist/server/chat.js +231 -0
  276. package/app/dist/server/chat.js.map +1 -0
  277. package/app/dist/server/core.d.ts +186 -0
  278. package/app/dist/server/core.js +716 -0
  279. package/app/dist/server/core.js.map +1 -0
  280. package/app/dist/server/go-live.d.ts +90 -0
  281. package/app/dist/server/go-live.js +351 -0
  282. package/app/dist/server/go-live.js.map +1 -0
  283. package/app/dist/server/models.d.ts +24 -0
  284. package/app/dist/server/models.js +42 -0
  285. package/app/dist/server/models.js.map +1 -0
  286. package/app/dist/server/people.d.ts +14 -0
  287. package/app/dist/server/people.js +41 -0
  288. package/app/dist/server/people.js.map +1 -0
  289. package/app/dist/server/secrets.d.ts +3 -0
  290. package/app/dist/server/secrets.js +5 -0
  291. package/app/dist/server/secrets.js.map +1 -0
  292. package/app/dist/server/server.js +7024 -0
  293. package/app/dist/server/setup.d.ts +75 -0
  294. package/app/dist/server/setup.js +308 -0
  295. package/app/dist/server/setup.js.map +1 -0
  296. package/app/dist/server/webhooks.d.ts +11 -0
  297. package/app/dist/server/webhooks.js +40 -0
  298. package/app/dist/server/webhooks.js.map +1 -0
  299. package/app/dist/site-path.d.ts +24 -0
  300. package/app/dist/site-path.js +27 -0
  301. package/app/dist/site-path.js.map +1 -0
  302. package/app/dist/snapshot-build.d.ts +23 -0
  303. package/app/dist/snapshot-build.js +255 -0
  304. package/app/dist/snapshot-build.js.map +1 -0
  305. package/app/dist/snapshot.d.ts +56 -0
  306. package/app/dist/snapshot.js +19 -0
  307. package/app/dist/snapshot.js.map +1 -0
  308. package/app/dist/steps/agent/acp.d.ts +116 -0
  309. package/app/dist/steps/agent/acp.js +788 -0
  310. package/app/dist/steps/agent/acp.js.map +1 -0
  311. package/app/dist/steps/agent/box-session.d.ts +46 -0
  312. package/app/dist/steps/agent/box-session.js +179 -0
  313. package/app/dist/steps/agent/box-session.js.map +1 -0
  314. package/app/dist/steps/agent/carrier.d.ts +56 -0
  315. package/app/dist/steps/agent/carrier.js +215 -0
  316. package/app/dist/steps/agent/carrier.js.map +1 -0
  317. package/app/dist/steps/agent/checkout.d.ts +73 -0
  318. package/app/dist/steps/agent/checkout.js +167 -0
  319. package/app/dist/steps/agent/checkout.js.map +1 -0
  320. package/app/dist/steps/agent/harness.d.ts +5 -0
  321. package/app/dist/steps/agent/harness.js +199 -0
  322. package/app/dist/steps/agent/harness.js.map +1 -0
  323. package/app/dist/steps/agent/local-box.d.ts +16 -0
  324. package/app/dist/steps/agent/local-box.js +37 -0
  325. package/app/dist/steps/agent/local-box.js.map +1 -0
  326. package/app/dist/steps/agent/loop.d.ts +3 -0
  327. package/app/dist/steps/agent/loop.js +60 -0
  328. package/app/dist/steps/agent/loop.js.map +1 -0
  329. package/app/dist/steps/agent/prompt.d.ts +9 -0
  330. package/app/dist/steps/agent/prompt.js +107 -0
  331. package/app/dist/steps/agent/prompt.js.map +1 -0
  332. package/app/dist/steps/agent/tools.d.ts +2814 -0
  333. package/app/dist/steps/agent/tools.js +248 -0
  334. package/app/dist/steps/agent/tools.js.map +1 -0
  335. package/app/dist/steps/agent/transcript.d.ts +19 -0
  336. package/app/dist/steps/agent/transcript.js +66 -0
  337. package/app/dist/steps/agent/transcript.js.map +1 -0
  338. package/app/dist/steps/agent/turn.d.ts +17 -0
  339. package/app/dist/steps/agent/turn.js +59 -0
  340. package/app/dist/steps/agent/turn.js.map +1 -0
  341. package/app/dist/steps/connect.d.ts +25 -0
  342. package/app/dist/steps/connect.js +141 -0
  343. package/app/dist/steps/connect.js.map +1 -0
  344. package/app/dist/steps/go-live.d.ts +40 -0
  345. package/app/dist/steps/go-live.js +310 -0
  346. package/app/dist/steps/go-live.js.map +1 -0
  347. package/app/dist/steps/index.d.ts +3 -0
  348. package/app/dist/steps/index.js +11 -0
  349. package/app/dist/steps/index.js.map +1 -0
  350. package/app/dist/steps/writes.d.ts +29 -0
  351. package/app/dist/steps/writes.js +174 -0
  352. package/app/dist/steps/writes.js.map +1 -0
  353. package/app/dist/stylesheet.json +1 -0
  354. package/app/src/actor.ts +130 -0
  355. package/app/src/api-client.ts +73 -0
  356. package/app/src/api.ts +686 -0
  357. package/app/src/app-bundle.ts +77 -0
  358. package/app/src/build.ts +907 -0
  359. package/app/src/bundle-build.ts +661 -0
  360. package/app/src/components/app-chrome.tsx +107 -0
  361. package/app/src/components/app-scope.tsx +98 -0
  362. package/app/src/components/apply-plan.tsx +191 -0
  363. package/app/src/components/approval.tsx +367 -0
  364. package/app/src/components/base-node.tsx +12 -0
  365. package/app/src/components/boundaries.tsx +64 -0
  366. package/app/src/components/change-decision.tsx +123 -0
  367. package/app/src/components/change-glance.tsx +44 -0
  368. package/app/src/components/chat-button.tsx +20 -0
  369. package/app/src/components/code.tsx +116 -0
  370. package/app/src/components/common.tsx +895 -0
  371. package/app/src/components/connections.tsx +844 -0
  372. package/app/src/components/credentials.tsx +219 -0
  373. package/app/src/components/data-grid.tsx +247 -0
  374. package/app/src/components/declaration-form.tsx +194 -0
  375. package/app/src/components/density.tsx +44 -0
  376. package/app/src/components/field-diff.tsx +91 -0
  377. package/app/src/components/go-live.tsx +669 -0
  378. package/app/src/components/graph.css +14 -0
  379. package/app/src/components/graph.tsx +563 -0
  380. package/app/src/components/grid/cell.tsx +149 -0
  381. package/app/src/components/grid/clipboard.ts +83 -0
  382. package/app/src/components/grid/collection.ts +476 -0
  383. package/app/src/components/grid/columns.tsx +357 -0
  384. package/app/src/components/grid/conflicts.tsx +81 -0
  385. package/app/src/components/grid/gestures.ts +169 -0
  386. package/app/src/components/grid/grid.tsx +760 -0
  387. package/app/src/components/grid/keys.ts +83 -0
  388. package/app/src/components/grid/plan.ts +389 -0
  389. package/app/src/components/grid/review.tsx +340 -0
  390. package/app/src/components/grid/staged.tsx +454 -0
  391. package/app/src/components/import/match.tsx +212 -0
  392. package/app/src/components/import/review.tsx +121 -0
  393. package/app/src/components/import/sheet.ts +166 -0
  394. package/app/src/components/import/upload.tsx +116 -0
  395. package/app/src/components/inspector.tsx +310 -0
  396. package/app/src/components/kit.tsx +276 -0
  397. package/app/src/components/ledger.tsx +344 -0
  398. package/app/src/components/new-run.tsx +114 -0
  399. package/app/src/components/permissions-diff.tsx +66 -0
  400. package/app/src/components/permissions-grid.tsx +133 -0
  401. package/app/src/components/record-form.tsx +208 -0
  402. package/app/src/components/record-history.tsx +119 -0
  403. package/app/src/components/runs-table.tsx +111 -0
  404. package/app/src/components/scenario.tsx +102 -0
  405. package/app/src/components/shell/bar.tsx +285 -0
  406. package/app/src/components/shell/chat-parts.tsx +326 -0
  407. package/app/src/components/shell/chat-prompt.ts +26 -0
  408. package/app/src/components/shell/chat.tsx +375 -0
  409. package/app/src/components/shell/draft-card.tsx +123 -0
  410. package/app/src/components/shell/nav-user.tsx +174 -0
  411. package/app/src/components/shell/prefs.ts +28 -0
  412. package/app/src/components/site-icon.tsx +17 -0
  413. package/app/src/components/store-move.tsx +313 -0
  414. package/app/src/components/ui/alert.tsx +55 -0
  415. package/app/src/components/ui/avatar.tsx +90 -0
  416. package/app/src/components/ui/badge.tsx +48 -0
  417. package/app/src/components/ui/breadcrumb.tsx +92 -0
  418. package/app/src/components/ui/button-group.tsx +78 -0
  419. package/app/src/components/ui/button.tsx +49 -0
  420. package/app/src/components/ui/card.tsx +69 -0
  421. package/app/src/components/ui/checkbox.tsx +25 -0
  422. package/app/src/components/ui/collapsible.tsx +15 -0
  423. package/app/src/components/ui/dialog.tsx +132 -0
  424. package/app/src/components/ui/dropdown-menu.tsx +252 -0
  425. package/app/src/components/ui/empty.tsx +86 -0
  426. package/app/src/components/ui/field.tsx +218 -0
  427. package/app/src/components/ui/input.tsx +19 -0
  428. package/app/src/components/ui/item.tsx +179 -0
  429. package/app/src/components/ui/label.tsx +17 -0
  430. package/app/src/components/ui/native-select.tsx +47 -0
  431. package/app/src/components/ui/popover.tsx +62 -0
  432. package/app/src/components/ui/separator.tsx +18 -0
  433. package/app/src/components/ui/sheet.tsx +102 -0
  434. package/app/src/components/ui/skeleton.tsx +7 -0
  435. package/app/src/components/ui/slider.tsx +40 -0
  436. package/app/src/components/ui/sonner.tsx +41 -0
  437. package/app/src/components/ui/spinner.tsx +17 -0
  438. package/app/src/components/ui/table.tsx +72 -0
  439. package/app/src/components/ui/tabs.tsx +68 -0
  440. package/app/src/components/ui/textarea.tsx +17 -0
  441. package/app/src/components/ui/tooltip.tsx +51 -0
  442. package/app/src/components/who-are-you.tsx +128 -0
  443. package/app/src/components/workflow-runs.tsx +213 -0
  444. package/app/src/components/workflow-view.tsx +293 -0
  445. package/app/src/components/workflow.tsx +142 -0
  446. package/app/src/components/zoom-slider.tsx +69 -0
  447. package/app/src/content-files.ts +248 -0
  448. package/app/src/content-types.ts +49 -0
  449. package/app/src/content.ts +49 -0
  450. package/app/src/context.ts +91 -0
  451. package/app/src/dev-imports.ts +5 -0
  452. package/app/src/env.d.ts +48 -0
  453. package/app/src/form/run-form.tsx +45 -0
  454. package/app/src/form/schema.ts +308 -0
  455. package/app/src/form/secure-fields.ts +42 -0
  456. package/app/src/form/start-form.tsx +427 -0
  457. package/app/src/form/will-ask.tsx +25 -0
  458. package/app/src/functions.ts +300 -0
  459. package/app/src/graph/layout.ts +238 -0
  460. package/app/src/graph/outline-graph.ts +123 -0
  461. package/app/src/graph/run-graph.ts +193 -0
  462. package/app/src/graph/scenario-graph.ts +48 -0
  463. package/app/src/graph/types.ts +144 -0
  464. package/app/src/graph/wildcard.ts +40 -0
  465. package/app/src/handler.ts +257 -0
  466. package/app/src/icon-small.svg +1 -0
  467. package/app/src/icon.svg +1 -0
  468. package/app/src/index.ts +455 -0
  469. package/app/src/lib/apply-plan.ts +79 -0
  470. package/app/src/lib/apps.ts +10 -0
  471. package/app/src/lib/changes.ts +86 -0
  472. package/app/src/lib/chat.ts +146 -0
  473. package/app/src/lib/cn-tables.ts +116 -0
  474. package/app/src/lib/decidable.ts +21 -0
  475. package/app/src/lib/desktop.ts +52 -0
  476. package/app/src/lib/grid-diff.ts +205 -0
  477. package/app/src/lib/inbox.ts +59 -0
  478. package/app/src/lib/lines.ts +31 -0
  479. package/app/src/lib/locales.ts +101 -0
  480. package/app/src/lib/motion.ts +17 -0
  481. package/app/src/lib/names.ts +12 -0
  482. package/app/src/lib/preview.ts +49 -0
  483. package/app/src/lib/records.ts +56 -0
  484. package/app/src/lib/sites.ts +92 -0
  485. package/app/src/lib/time.ts +10 -0
  486. package/app/src/lib/tone.ts +78 -0
  487. package/app/src/lib/utils.ts +13 -0
  488. package/app/src/login/admission.ts +72 -0
  489. package/app/src/login/keys.ts +65 -0
  490. package/app/src/login/page.ts +119 -0
  491. package/app/src/login/public.ts +138 -0
  492. package/app/src/login/staff.ts +399 -0
  493. package/app/src/loopback.ts +96 -0
  494. package/app/src/middleware.ts +26 -0
  495. package/app/src/public-fns.ts +5 -0
  496. package/app/src/queries.ts +859 -0
  497. package/app/src/router.tsx +45 -0
  498. package/app/src/routes/__root.tsx +223 -0
  499. package/app/src/routes/api/call.ts +17 -0
  500. package/app/src/routes/api/chat.ts +15 -0
  501. package/app/src/routes/api/sign-in.ts +14 -0
  502. package/app/src/routes/apps/$name.tsx +380 -0
  503. package/app/src/routes/apps/index.tsx +204 -0
  504. package/app/src/routes/apps/route.tsx +8 -0
  505. package/app/src/routes/changes/$id.tsx +205 -0
  506. package/app/src/routes/changes/index.tsx +103 -0
  507. package/app/src/routes/changes/route.tsx +8 -0
  508. package/app/src/routes/connect/$vendor/callback.ts +9 -0
  509. package/app/src/routes/connectors/$vendor.tsx +184 -0
  510. package/app/src/routes/connectors/index.tsx +194 -0
  511. package/app/src/routes/connectors/route.tsx +8 -0
  512. package/app/src/routes/data/$name/import.tsx +177 -0
  513. package/app/src/routes/data/$name/index.tsx +266 -0
  514. package/app/src/routes/data/$name/route.tsx +18 -0
  515. package/app/src/routes/data/index.tsx +178 -0
  516. package/app/src/routes/data/route.tsx +11 -0
  517. package/app/src/routes/hosting/connect.tsx +156 -0
  518. package/app/src/routes/hosting/existing.tsx +115 -0
  519. package/app/src/routes/hosting/index.tsx +845 -0
  520. package/app/src/routes/hosting/route.tsx +11 -0
  521. package/app/src/routes/inbox.tsx +310 -0
  522. package/app/src/routes/index.tsx +8 -0
  523. package/app/src/routes/people.tsx +624 -0
  524. package/app/src/routes/permissions.tsx +284 -0
  525. package/app/src/routes/resources.tsx +10 -0
  526. package/app/src/routes/runs/$id.tsx +14 -0
  527. package/app/src/routes/runs/index.tsx +8 -0
  528. package/app/src/routes/setup/connect.tsx +10 -0
  529. package/app/src/routes/setup/existing.tsx +8 -0
  530. package/app/src/routes/setup/github/callback.ts +7 -0
  531. package/app/src/routes/setup/github/manifest.ts +7 -0
  532. package/app/src/routes/setup/index.tsx +8 -0
  533. package/app/src/routes/sites.index.tsx +131 -0
  534. package/app/src/routes/start.tsx +15 -0
  535. package/app/src/routes/workflows/$name/index.tsx +140 -0
  536. package/app/src/routes/workflows/$name/new.tsx +11 -0
  537. package/app/src/routes/workflows/$name/route.tsx +58 -0
  538. package/app/src/routes/workflows/$name/runs/$id.tsx +97 -0
  539. package/app/src/routes/workflows/index.tsx +413 -0
  540. package/app/src/routes/workflows/route.tsx +11 -0
  541. package/app/src/seo.ts +94 -0
  542. package/app/src/server/available.ts +89 -0
  543. package/app/src/server/chat.ts +249 -0
  544. package/app/src/server/columns.ts +52 -0
  545. package/app/src/server/connect.ts +89 -0
  546. package/app/src/server/core.ts +889 -0
  547. package/app/src/server/go-live.ts +420 -0
  548. package/app/src/server/host-derived.ts +72 -0
  549. package/app/src/server/models.ts +52 -0
  550. package/app/src/server/people.ts +51 -0
  551. package/app/src/server/secrets.ts +6 -0
  552. package/app/src/server/setup.ts +335 -0
  553. package/app/src/server/webhooks.ts +38 -0
  554. package/app/src/server.ts +4 -0
  555. package/app/src/site-path.ts +35 -0
  556. package/app/src/site-url.ts +53 -0
  557. package/app/src/site.ts +154 -0
  558. package/app/src/snapshot-build.ts +288 -0
  559. package/app/src/snapshot.ts +69 -0
  560. package/app/src/start.ts +63 -0
  561. package/app/src/steps/agent/acp.ts +918 -0
  562. package/app/src/steps/agent/box-session.ts +230 -0
  563. package/app/src/steps/agent/carrier.ts +242 -0
  564. package/app/src/steps/agent/checkout.ts +222 -0
  565. package/app/src/steps/agent/harness.ts +265 -0
  566. package/app/src/steps/agent/local-box.ts +40 -0
  567. package/app/src/steps/agent/loop.ts +80 -0
  568. package/app/src/steps/agent/prompt.ts +124 -0
  569. package/app/src/steps/agent/tools.ts +300 -0
  570. package/app/src/steps/agent/transcript.ts +95 -0
  571. package/app/src/steps/agent/turn.ts +63 -0
  572. package/app/src/steps/connect.ts +151 -0
  573. package/app/src/steps/go-live.ts +358 -0
  574. package/app/src/steps/index.ts +13 -0
  575. package/app/src/steps/writes.ts +200 -0
  576. package/app/src/style.css +69 -0
  577. package/app/src/ui.css +301 -0
  578. package/app/src/ui.ts +147 -0
  579. package/app/src/worker/app.ts +189 -0
  580. package/app/src/worker/assets.ts +12 -0
  581. package/app/src/worker/main.ts +32 -0
  582. package/app/src/worker/missing.js +13 -0
  583. package/app/tsconfig.site.json +20 -0
  584. package/better-auth/README.md +115 -0
  585. package/better-auth/dist/connector.d.ts +5 -0
  586. package/better-auth/dist/connector.js +14 -0
  587. package/better-auth/dist/connector.js.map +1 -0
  588. package/better-auth/dist/db/staff.d.ts +695 -0
  589. package/better-auth/dist/db/staff.js +4 -0
  590. package/better-auth/dist/db/staff.js.map +1 -0
  591. package/better-auth/dist/db/tables.d.ts +702 -0
  592. package/better-auth/dist/db/tables.js +69 -0
  593. package/better-auth/dist/db/tables.js.map +1 -0
  594. package/better-auth/dist/db/visitors.d.ts +695 -0
  595. package/better-auth/dist/db/visitors.js +4 -0
  596. package/better-auth/dist/db/visitors.js.map +1 -0
  597. package/better-auth/dist/index.d.ts +11 -0
  598. package/better-auth/dist/index.js +16 -0
  599. package/better-auth/dist/index.js.map +1 -0
  600. package/better-auth/dist/instance.d.ts +716 -0
  601. package/better-auth/dist/instance.js +210 -0
  602. package/better-auth/dist/instance.js.map +1 -0
  603. package/better-auth/dist/login.d.ts +13 -0
  604. package/better-auth/dist/login.js +139 -0
  605. package/better-auth/dist/login.js.map +1 -0
  606. package/better-auth/dist/staff.d.ts +12 -0
  607. package/better-auth/dist/staff.js +254 -0
  608. package/better-auth/dist/staff.js.map +1 -0
  609. package/better-auth/drizzle/staff/0000_closed_toro.sql +64 -0
  610. package/better-auth/drizzle/staff/meta/0000_snapshot.json +431 -0
  611. package/better-auth/drizzle/staff/meta/_journal.json +13 -0
  612. package/better-auth/drizzle/visitors/0000_natural_dexter_bennett.sql +64 -0
  613. package/better-auth/drizzle/visitors/meta/0000_snapshot.json +431 -0
  614. package/better-auth/drizzle/visitors/meta/_journal.json +13 -0
  615. package/bridge/README.md +146 -0
  616. package/bridge/dist/bin.d.ts +20 -0
  617. package/bridge/dist/bin.js +37 -0
  618. package/bridge/dist/bin.js.map +1 -0
  619. package/bridge/dist/bridge.d.ts +159 -0
  620. package/bridge/dist/bridge.js +189 -0
  621. package/bridge/dist/bridge.js.map +1 -0
  622. package/bridge/dist/client.d.ts +37 -0
  623. package/bridge/dist/client.js +118 -0
  624. package/bridge/dist/client.js.map +1 -0
  625. package/bridge/dist/configure.d.ts +5 -0
  626. package/bridge/dist/configure.js +17 -0
  627. package/bridge/dist/configure.js.map +1 -0
  628. package/bridge/dist/connector.d.ts +164 -0
  629. package/bridge/dist/connector.js +335 -0
  630. package/bridge/dist/connector.js.map +1 -0
  631. package/bridge/dist/fake.d.ts +4 -0
  632. package/bridge/dist/fake.js +4 -0
  633. package/bridge/dist/fake.js.map +1 -0
  634. package/bridge/dist/fixtures.d.ts +36 -0
  635. package/bridge/dist/fixtures.js +18 -0
  636. package/bridge/dist/fixtures.js.map +1 -0
  637. package/bridge/dist/gen/bridge/v1/bridge_pb.d.ts +694 -0
  638. package/bridge/dist/gen/bridge/v1/bridge_pb.js +173 -0
  639. package/bridge/dist/gen/bridge/v1/bridge_pb.js.map +1 -0
  640. package/bridge/dist/index.d.ts +6 -0
  641. package/bridge/dist/index.js +7 -0
  642. package/bridge/dist/index.js.map +1 -0
  643. package/bridge/dist/json.d.ts +7 -0
  644. package/bridge/dist/json.js +5 -0
  645. package/bridge/dist/json.js.map +1 -0
  646. package/bridge/dist/lazy.d.ts +20 -0
  647. package/bridge/dist/lazy.js +60 -0
  648. package/bridge/dist/lazy.js.map +1 -0
  649. package/bridge/dist/pins.d.ts +12 -0
  650. package/bridge/dist/pins.js +17 -0
  651. package/bridge/dist/pins.js.map +1 -0
  652. package/bridge/dist/replies.d.ts +79 -0
  653. package/bridge/dist/replies.js +217 -0
  654. package/bridge/dist/replies.js.map +1 -0
  655. package/bridge/dist/schema.d.ts +65 -0
  656. package/bridge/dist/schema.js +9 -0
  657. package/bridge/dist/schema.js.map +1 -0
  658. package/bridge/dist/tffake.d.ts +57 -0
  659. package/bridge/dist/tffake.js +105 -0
  660. package/bridge/dist/tffake.js.map +1 -0
  661. package/bridge/dist/tfschema/cli.d.ts +10 -0
  662. package/bridge/dist/tfschema/cli.js +57 -0
  663. package/bridge/dist/tfschema/cli.js.map +1 -0
  664. package/bridge/dist/tfschema/ctyToZod.d.ts +20 -0
  665. package/bridge/dist/tfschema/ctyToZod.js +49 -0
  666. package/bridge/dist/tfschema/ctyToZod.js.map +1 -0
  667. package/bridge/dist/tfschema/generate.d.ts +16 -0
  668. package/bridge/dist/tfschema/generate.js +159 -0
  669. package/bridge/dist/tfschema/generate.js.map +1 -0
  670. package/bridge/dist/tfschema/state.d.ts +14 -0
  671. package/bridge/dist/tfschema/state.js +51 -0
  672. package/bridge/dist/tfschema/state.js.map +1 -0
  673. package/bridge/dist/tfschema/types.d.ts +52 -0
  674. package/bridge/dist/tfschema/types.js +2 -0
  675. package/bridge/dist/tfschema/types.js.map +1 -0
  676. package/bridge/dist/tfschema.d.ts +4 -0
  677. package/bridge/dist/tfschema.js +8 -0
  678. package/bridge/dist/tfschema.js.map +1 -0
  679. package/bridge/testdata/README.md +64 -0
  680. package/bridge/testdata/pins.json +27 -0
  681. package/bridge/testdata/replies/integrations_github_6.13.0/github_branch_protection/provider-bridge_main/import.json +32 -0
  682. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/provider-bridge/import.json +30 -0
  683. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/provider-bridge/read.json +29 -0
  684. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma/import.json +30 -0
  685. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma/read.json +29 -0
  686. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test/apply.json +29 -0
  687. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test/plan.json +40 -0
  688. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test-delete/apply.json +23 -0
  689. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test-delete/plan.json +25 -0
  690. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test-update-1/apply.json +33 -0
  691. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository/sanoma-apply-test-update-1/plan.json +32 -0
  692. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/provider-bridge_notsaltylol/import.json +29 -0
  693. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/provider-bridge_notsaltylol/read.json +28 -0
  694. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/provider-bridge_octocat/import.json +27 -0
  695. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator/apply.json +28 -0
  696. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator/plan.json +29 -0
  697. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-delete/apply.json +21 -0
  698. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-delete/plan.json +23 -0
  699. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-update-1/apply-delete.json +21 -0
  700. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-update-1/apply.json +28 -0
  701. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test-collaborator-update-1/plan.json +33 -0
  702. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test_octocat/import.json +29 -0
  703. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_collaborator/sanoma-apply-test_octocat/read.json +28 -0
  704. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test-key/apply.json +27 -0
  705. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test-key/plan.json +29 -0
  706. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test-key-delete/apply.json +21 -0
  707. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test-key-delete/plan.json +23 -0
  708. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test_1000000101/import.json +28 -0
  709. package/bridge/testdata/replies/integrations_github_6.13.0/github_repository_deploy_key/sanoma-apply-test_1000000101/read.json +26 -0
  710. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132/import.json +28 -0
  711. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132-aede5c47/apply-delete.json +21 -0
  712. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132-aede5c47/apply.json +28 -0
  713. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132-aede5c47/plan.json +49 -0
  714. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/484189f591100781981bb24cb4e365c4ae74db9eb1a0ff03489a7e061b339132-c0239934/plan.json +27 -0
  715. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/8a4dfc1ebfe1b74d277a6e4017921d06e302d4c10fe6999e8ab5cb1522dcb2ad/import.json +25 -0
  716. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/8a4dfc1ebfe1b74d277a6e4017921d06e302d4c10fe6999e8ab5cb1522dcb2ad-delete/apply.json +21 -0
  717. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/8a4dfc1ebfe1b74d277a6e4017921d06e302d4c10fe6999e8ab5cb1522dcb2ad-delete/plan.json +23 -0
  718. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/create-2463512b/apply.json +28 -0
  719. package/bridge/testdata/replies/kreuzwerker_docker_4.6.0/docker_container/create-2463512b/plan.json +42 -0
  720. package/bridge/testdata/schemas/integrations_github_6.13.0.json +10680 -0
  721. package/bridge/testdata/schemas/kreuzwerker_docker_4.6.0.json +4833 -0
  722. package/bridge/testdata/schemas/stripe_stripe_0.3.0.json +55612 -0
  723. package/bridge/testdata/schemas/supabase_supabase_1.11.0.json +790 -0
  724. package/dev/README.md +33 -0
  725. package/dev/dist/cli.d.ts +5 -0
  726. package/dev/dist/cli.js +120 -0
  727. package/dev/dist/cli.js.map +1 -0
  728. package/dev/dist/links.d.ts +33 -0
  729. package/dev/dist/links.js +86 -0
  730. package/dev/dist/links.js.map +1 -0
  731. package/dist/check.d.ts +1 -1
  732. package/dist/check.js +8 -8
  733. package/dist/check.js.map +1 -1
  734. package/dist/cli.js +29 -25
  735. package/dist/cli.js.map +1 -1
  736. package/dist/config.d.ts +1 -4
  737. package/dist/config.js +2 -4
  738. package/dist/config.js.map +1 -1
  739. package/dist/dev.d.ts +5 -8
  740. package/dist/dev.js +13 -50
  741. package/dist/dev.js.map +1 -1
  742. package/dist/env.js +1 -1
  743. package/dist/env.js.map +1 -1
  744. package/dist/events.d.ts +1 -1
  745. package/dist/identity.js +1 -1
  746. package/dist/identity.js.map +1 -1
  747. package/dist/index.d.ts +3 -3
  748. package/dist/index.js +5 -5
  749. package/dist/index.js.map +1 -1
  750. package/dist/init.d.ts +4 -6
  751. package/dist/init.js +21 -15
  752. package/dist/init.js.map +1 -1
  753. package/dist/key.js +1 -1
  754. package/dist/key.js.map +1 -1
  755. package/dist/ledger.d.ts +1 -1
  756. package/dist/ledger.js +1 -1
  757. package/dist/ledger.js.map +1 -1
  758. package/dist/listen.d.ts +1 -1
  759. package/dist/listen.js +1 -1
  760. package/dist/listen.js.map +1 -1
  761. package/dist/oxlint-plugin.js +2 -2
  762. package/dist/oxlint-plugin.js.map +1 -1
  763. package/dist/postgres.js +1 -1
  764. package/dist/postgres.js.map +1 -1
  765. package/dist/serve.d.ts +4 -4
  766. package/dist/serve.js +9 -10
  767. package/dist/serve.js.map +1 -1
  768. package/dist/sites.d.ts +2 -7
  769. package/dist/sites.js +4 -10
  770. package/dist/sites.js.map +1 -1
  771. package/dist/source.d.ts +1 -1
  772. package/dist/source.js +2 -2
  773. package/dist/source.js.map +1 -1
  774. package/dist/wakeup.js +1 -1
  775. package/dist/wakeup.js.map +1 -1
  776. package/dist/worker-port.d.ts +2 -2
  777. package/dist/worker-port.js +2 -2
  778. package/dist/worker-port.js.map +1 -1
  779. package/oxlint.json +283 -47
  780. package/package.json +321 -34
  781. package/template/AGENTS.md +2 -2
  782. package/testing/README.md +261 -0
  783. package/testing/dist/build.d.ts +16 -0
  784. package/testing/dist/build.js +95 -0
  785. package/testing/dist/build.js.map +1 -0
  786. package/testing/dist/database.d.ts +96 -0
  787. package/testing/dist/database.js +213 -0
  788. package/testing/dist/database.js.map +1 -0
  789. package/testing/dist/features.d.ts +25 -0
  790. package/testing/dist/features.js +176 -0
  791. package/testing/dist/features.js.map +1 -0
  792. package/testing/dist/harness.d.ts +27 -0
  793. package/testing/dist/harness.js +63 -0
  794. package/testing/dist/harness.js.map +1 -0
  795. package/testing/dist/host.d.ts +229 -0
  796. package/testing/dist/host.js +738 -0
  797. package/testing/dist/host.js.map +1 -0
  798. package/testing/dist/index.d.ts +36 -0
  799. package/testing/dist/index.js +41 -0
  800. package/testing/dist/index.js.map +1 -0
  801. package/testing/dist/replay.d.ts +44 -0
  802. package/testing/dist/replay.js +95 -0
  803. package/testing/dist/replay.js.map +1 -0
  804. package/testing/dist/sandbox.d.ts +59 -0
  805. package/testing/dist/sandbox.js +201 -0
  806. package/testing/dist/sandbox.js.map +1 -0
  807. package/testing/dist/scenarios.d.ts +17 -0
  808. package/testing/dist/scenarios.js +64 -0
  809. package/testing/dist/scenarios.js.map +1 -0
  810. package/testing/dist/sentinel.d.ts +19 -0
  811. package/testing/dist/sentinel.js +54 -0
  812. package/testing/dist/sentinel.js.map +1 -0
  813. package/testing/dist/wakeup.d.ts +114 -0
  814. package/testing/dist/wakeup.js +288 -0
  815. package/testing/dist/wakeup.js.map +1 -0
  816. package/workflows/CLOUD-IDENTITY.md +333 -0
  817. package/workflows/KMS-SECRETS.md +167 -0
  818. package/workflows/README.md +990 -0
  819. package/workflows/SECRET-SUPPORT.md +72 -0
  820. package/workflows/dist/app-steps.d.ts +17 -0
  821. package/workflows/dist/app-steps.js +43 -0
  822. package/workflows/dist/app-steps.js.map +1 -0
  823. package/workflows/dist/app-workflows.d.ts +174 -0
  824. package/workflows/dist/app-workflows.js +117 -0
  825. package/workflows/dist/app-workflows.js.map +1 -0
  826. package/workflows/dist/apply-steps.d.ts +8 -0
  827. package/workflows/dist/apply-steps.js +92 -0
  828. package/workflows/dist/apply-steps.js.map +1 -0
  829. package/workflows/dist/apply.d.ts +213 -0
  830. package/workflows/dist/apply.js +634 -0
  831. package/workflows/dist/apply.js.map +1 -0
  832. package/workflows/dist/approvals.d.ts +77 -0
  833. package/workflows/dist/approvals.js +211 -0
  834. package/workflows/dist/approvals.js.map +1 -0
  835. package/workflows/dist/apps-list.d.ts +116 -0
  836. package/workflows/dist/apps-list.js +150 -0
  837. package/workflows/dist/apps-list.js.map +1 -0
  838. package/workflows/dist/apps.d.ts +31 -0
  839. package/workflows/dist/apps.js +138 -0
  840. package/workflows/dist/apps.js.map +1 -0
  841. package/workflows/dist/ast.d.ts +59 -0
  842. package/workflows/dist/ast.js +83 -0
  843. package/workflows/dist/ast.js.map +1 -0
  844. package/workflows/dist/authentication.d.ts +140 -0
  845. package/workflows/dist/authentication.js +190 -0
  846. package/workflows/dist/authentication.js.map +1 -0
  847. package/workflows/dist/bundled.d.ts +39 -0
  848. package/workflows/dist/bundled.js +16 -0
  849. package/workflows/dist/bundled.js.map +1 -0
  850. package/workflows/dist/call-workflow.d.ts +21 -0
  851. package/workflows/dist/call-workflow.js +35 -0
  852. package/workflows/dist/call-workflow.js.map +1 -0
  853. package/workflows/dist/call.d.ts +104 -0
  854. package/workflows/dist/call.js +660 -0
  855. package/workflows/dist/call.js.map +1 -0
  856. package/workflows/dist/cedar.d.ts +109 -0
  857. package/workflows/dist/cedar.js +533 -0
  858. package/workflows/dist/cedar.js.map +1 -0
  859. package/workflows/dist/change-steps.d.ts +10 -0
  860. package/workflows/dist/change-steps.js +200 -0
  861. package/workflows/dist/change-steps.js.map +1 -0
  862. package/workflows/dist/change-workflow.d.ts +54 -0
  863. package/workflows/dist/change-workflow.js +161 -0
  864. package/workflows/dist/change-workflow.js.map +1 -0
  865. package/workflows/dist/change.d.ts +330 -0
  866. package/workflows/dist/change.js +351 -0
  867. package/workflows/dist/change.js.map +1 -0
  868. package/workflows/dist/chat-steps.d.ts +5 -0
  869. package/workflows/dist/chat-steps.js +107 -0
  870. package/workflows/dist/chat-steps.js.map +1 -0
  871. package/workflows/dist/chat-workflow.d.ts +43 -0
  872. package/workflows/dist/chat-workflow.js +47 -0
  873. package/workflows/dist/chat-workflow.js.map +1 -0
  874. package/workflows/dist/chats.d.ts +62 -0
  875. package/workflows/dist/chats.js +109 -0
  876. package/workflows/dist/chats.js.map +1 -0
  877. package/workflows/dist/claims.d.ts +58 -0
  878. package/workflows/dist/claims.js +27 -0
  879. package/workflows/dist/claims.js.map +1 -0
  880. package/workflows/dist/client.d.ts +563 -0
  881. package/workflows/dist/client.js +1464 -0
  882. package/workflows/dist/client.js.map +1 -0
  883. package/workflows/dist/cloud-identity.d.ts +56 -0
  884. package/workflows/dist/cloud-identity.js +160 -0
  885. package/workflows/dist/cloud-identity.js.map +1 -0
  886. package/workflows/dist/collection.d.ts +139 -0
  887. package/workflows/dist/collection.js +522 -0
  888. package/workflows/dist/collection.js.map +1 -0
  889. package/workflows/dist/config.d.ts +328 -0
  890. package/workflows/dist/config.js +857 -0
  891. package/workflows/dist/config.js.map +1 -0
  892. package/workflows/dist/connect-workflow.d.ts +6 -0
  893. package/workflows/dist/connect-workflow.js +35 -0
  894. package/workflows/dist/connect-workflow.js.map +1 -0
  895. package/workflows/dist/connection.d.ts +669 -0
  896. package/workflows/dist/connection.js +1228 -0
  897. package/workflows/dist/connection.js.map +1 -0
  898. package/workflows/dist/constructors.d.ts +38 -0
  899. package/workflows/dist/constructors.js +9 -0
  900. package/workflows/dist/constructors.js.map +1 -0
  901. package/workflows/dist/credentials.d.ts +24 -0
  902. package/workflows/dist/credentials.js +168 -0
  903. package/workflows/dist/credentials.js.map +1 -0
  904. package/workflows/dist/cucumber.d.ts +66 -0
  905. package/workflows/dist/cucumber.js +163 -0
  906. package/workflows/dist/cucumber.js.map +1 -0
  907. package/workflows/dist/data.d.ts +2 -0
  908. package/workflows/dist/data.js +3 -0
  909. package/workflows/dist/data.js.map +1 -0
  910. package/workflows/dist/database.d.ts +83 -0
  911. package/workflows/dist/database.js +95 -0
  912. package/workflows/dist/database.js.map +1 -0
  913. package/workflows/dist/db/company.d.ts +2351 -0
  914. package/workflows/dist/db/company.js +245 -0
  915. package/workflows/dist/db/company.js.map +1 -0
  916. package/workflows/dist/db/dbos.d.ts +111 -0
  917. package/workflows/dist/db/dbos.js +15 -0
  918. package/workflows/dist/db/dbos.js.map +1 -0
  919. package/workflows/dist/db/identity.d.ts +367 -0
  920. package/workflows/dist/db/identity.js +48 -0
  921. package/workflows/dist/db/identity.js.map +1 -0
  922. package/workflows/dist/db/index.d.ts +7 -0
  923. package/workflows/dist/db/index.js +12 -0
  924. package/workflows/dist/db/index.js.map +1 -0
  925. package/workflows/dist/db/kms.d.ts +224 -0
  926. package/workflows/dist/db/kms.js +29 -0
  927. package/workflows/dist/db/kms.js.map +1 -0
  928. package/workflows/dist/db/migrate.d.ts +66 -0
  929. package/workflows/dist/db/migrate.js +39 -0
  930. package/workflows/dist/db/migrate.js.map +1 -0
  931. package/workflows/dist/db/wakeup.d.ts +271 -0
  932. package/workflows/dist/db/wakeup.js +34 -0
  933. package/workflows/dist/db/wakeup.js.map +1 -0
  934. package/workflows/dist/db.d.ts +117 -0
  935. package/workflows/dist/db.js +375 -0
  936. package/workflows/dist/db.js.map +1 -0
  937. package/workflows/dist/deadlines.d.ts +107 -0
  938. package/workflows/dist/deadlines.js +208 -0
  939. package/workflows/dist/deadlines.js.map +1 -0
  940. package/workflows/dist/define.d.ts +288 -0
  941. package/workflows/dist/define.js +152 -0
  942. package/workflows/dist/define.js.map +1 -0
  943. package/workflows/dist/definitions.d.ts +25 -0
  944. package/workflows/dist/definitions.js +16 -0
  945. package/workflows/dist/definitions.js.map +1 -0
  946. package/workflows/dist/deployment-key.d.ts +24 -0
  947. package/workflows/dist/deployment-key.js +54 -0
  948. package/workflows/dist/deployment-key.js.map +1 -0
  949. package/workflows/dist/describe.d.ts +40 -0
  950. package/workflows/dist/describe.js +435 -0
  951. package/workflows/dist/describe.js.map +1 -0
  952. package/workflows/dist/description.d.ts +555 -0
  953. package/workflows/dist/description.js +389 -0
  954. package/workflows/dist/description.js.map +1 -0
  955. package/workflows/dist/direct.d.ts +10 -0
  956. package/workflows/dist/direct.js +26 -0
  957. package/workflows/dist/direct.js.map +1 -0
  958. package/workflows/dist/dns.d.ts +20 -0
  959. package/workflows/dist/dns.js +26 -0
  960. package/workflows/dist/dns.js.map +1 -0
  961. package/workflows/dist/drift.d.ts +136 -0
  962. package/workflows/dist/drift.js +188 -0
  963. package/workflows/dist/drift.js.map +1 -0
  964. package/workflows/dist/env.d.ts +51 -0
  965. package/workflows/dist/env.js +83 -0
  966. package/workflows/dist/env.js.map +1 -0
  967. package/workflows/dist/errors.d.ts +115 -0
  968. package/workflows/dist/errors.js +193 -0
  969. package/workflows/dist/errors.js.map +1 -0
  970. package/workflows/dist/expectations.d.ts +26 -0
  971. package/workflows/dist/expectations.js +171 -0
  972. package/workflows/dist/expectations.js.map +1 -0
  973. package/workflows/dist/fake.d.ts +93 -0
  974. package/workflows/dist/fake.js +280 -0
  975. package/workflows/dist/fake.js.map +1 -0
  976. package/workflows/dist/fill.d.ts +17 -0
  977. package/workflows/dist/fill.js +39 -0
  978. package/workflows/dist/fill.js.map +1 -0
  979. package/workflows/dist/folded.d.ts +7 -0
  980. package/workflows/dist/folded.js +28 -0
  981. package/workflows/dist/folded.js.map +1 -0
  982. package/workflows/dist/follow-steps.d.ts +8 -0
  983. package/workflows/dist/follow-steps.js +113 -0
  984. package/workflows/dist/follow-steps.js.map +1 -0
  985. package/workflows/dist/follow-workflow.d.ts +56 -0
  986. package/workflows/dist/follow-workflow.js +50 -0
  987. package/workflows/dist/follow-workflow.js.map +1 -0
  988. package/workflows/dist/grid.d.ts +34 -0
  989. package/workflows/dist/grid.js +63 -0
  990. package/workflows/dist/grid.js.map +1 -0
  991. package/workflows/dist/host-derive.d.ts +162 -0
  992. package/workflows/dist/host-derive.js +438 -0
  993. package/workflows/dist/host-derive.js.map +1 -0
  994. package/workflows/dist/host.d.ts +158 -0
  995. package/workflows/dist/host.js +112 -0
  996. package/workflows/dist/host.js.map +1 -0
  997. package/workflows/dist/identity-broker.d.ts +14 -0
  998. package/workflows/dist/identity-broker.js +84 -0
  999. package/workflows/dist/identity-broker.js.map +1 -0
  1000. package/workflows/dist/identity-provisioning.d.ts +50 -0
  1001. package/workflows/dist/identity-provisioning.js +304 -0
  1002. package/workflows/dist/identity-provisioning.js.map +1 -0
  1003. package/workflows/dist/identity-service.d.ts +25 -0
  1004. package/workflows/dist/identity-service.js +152 -0
  1005. package/workflows/dist/identity-service.js.map +1 -0
  1006. package/workflows/dist/import-workflow.d.ts +4 -0
  1007. package/workflows/dist/import-workflow.js +120 -0
  1008. package/workflows/dist/import-workflow.js.map +1 -0
  1009. package/workflows/dist/import.d.ts +94 -0
  1010. package/workflows/dist/import.js +161 -0
  1011. package/workflows/dist/import.js.map +1 -0
  1012. package/workflows/dist/index.d.ts +66 -0
  1013. package/workflows/dist/index.js +73 -0
  1014. package/workflows/dist/index.js.map +1 -0
  1015. package/workflows/dist/kms-secrets.d.ts +48 -0
  1016. package/workflows/dist/kms-secrets.js +320 -0
  1017. package/workflows/dist/kms-secrets.js.map +1 -0
  1018. package/workflows/dist/ledger.d.ts +281 -0
  1019. package/workflows/dist/ledger.js +335 -0
  1020. package/workflows/dist/ledger.js.map +1 -0
  1021. package/workflows/dist/lint.d.ts +24 -0
  1022. package/workflows/dist/lint.js +185 -0
  1023. package/workflows/dist/lint.js.map +1 -0
  1024. package/workflows/dist/load.d.ts +85 -0
  1025. package/workflows/dist/load.js +407 -0
  1026. package/workflows/dist/load.js.map +1 -0
  1027. package/workflows/dist/local-sandbox.d.ts +17 -0
  1028. package/workflows/dist/local-sandbox.js +131 -0
  1029. package/workflows/dist/local-sandbox.js.map +1 -0
  1030. package/workflows/dist/lockfile.d.ts +38 -0
  1031. package/workflows/dist/lockfile.js +74 -0
  1032. package/workflows/dist/lockfile.js.map +1 -0
  1033. package/workflows/dist/log.d.ts +24 -0
  1034. package/workflows/dist/log.js +83 -0
  1035. package/workflows/dist/log.js.map +1 -0
  1036. package/workflows/dist/login-code.d.ts +23 -0
  1037. package/workflows/dist/login-code.js +37 -0
  1038. package/workflows/dist/login-code.js.map +1 -0
  1039. package/workflows/dist/oauth.d.ts +112 -0
  1040. package/workflows/dist/oauth.js +301 -0
  1041. package/workflows/dist/oauth.js.map +1 -0
  1042. package/workflows/dist/op.d.ts +465 -0
  1043. package/workflows/dist/op.js +249 -0
  1044. package/workflows/dist/op.js.map +1 -0
  1045. package/workflows/dist/outline.d.ts +186 -0
  1046. package/workflows/dist/outline.js +554 -0
  1047. package/workflows/dist/outline.js.map +1 -0
  1048. package/workflows/dist/paths.d.ts +56 -0
  1049. package/workflows/dist/paths.js +124 -0
  1050. package/workflows/dist/paths.js.map +1 -0
  1051. package/workflows/dist/person.d.ts +66 -0
  1052. package/workflows/dist/person.js +71 -0
  1053. package/workflows/dist/person.js.map +1 -0
  1054. package/workflows/dist/plugin.d.ts +45 -0
  1055. package/workflows/dist/plugin.js +61 -0
  1056. package/workflows/dist/plugin.js.map +1 -0
  1057. package/workflows/dist/policy.d.ts +126 -0
  1058. package/workflows/dist/policy.js +50 -0
  1059. package/workflows/dist/policy.js.map +1 -0
  1060. package/workflows/dist/preview.d.ts +26 -0
  1061. package/workflows/dist/preview.js +29 -0
  1062. package/workflows/dist/preview.js.map +1 -0
  1063. package/workflows/dist/provisioning-identity.d.ts +27 -0
  1064. package/workflows/dist/provisioning-identity.js +81 -0
  1065. package/workflows/dist/provisioning-identity.js.map +1 -0
  1066. package/workflows/dist/renewal.d.ts +102 -0
  1067. package/workflows/dist/renewal.js +186 -0
  1068. package/workflows/dist/renewal.js.map +1 -0
  1069. package/workflows/dist/resource.d.ts +506 -0
  1070. package/workflows/dist/resource.js +600 -0
  1071. package/workflows/dist/resource.js.map +1 -0
  1072. package/workflows/dist/resources.d.ts +97 -0
  1073. package/workflows/dist/resources.js +384 -0
  1074. package/workflows/dist/resources.js.map +1 -0
  1075. package/workflows/dist/run-status.d.ts +10 -0
  1076. package/workflows/dist/run-status.js +27 -0
  1077. package/workflows/dist/run-status.js.map +1 -0
  1078. package/workflows/dist/run.d.ts +173 -0
  1079. package/workflows/dist/run.js +22 -0
  1080. package/workflows/dist/run.js.map +1 -0
  1081. package/workflows/dist/runner-box.d.ts +23 -0
  1082. package/workflows/dist/runner-box.js +181 -0
  1083. package/workflows/dist/runner-box.js.map +1 -0
  1084. package/workflows/dist/runner-protocol.d.ts +73 -0
  1085. package/workflows/dist/runner-protocol.js +34 -0
  1086. package/workflows/dist/runner-protocol.js.map +1 -0
  1087. package/workflows/dist/runtime-ops.d.ts +242 -0
  1088. package/workflows/dist/runtime-ops.js +354 -0
  1089. package/workflows/dist/runtime-ops.js.map +1 -0
  1090. package/workflows/dist/sandbox-contract.d.ts +109 -0
  1091. package/workflows/dist/sandbox-contract.js +26 -0
  1092. package/workflows/dist/sandbox-contract.js.map +1 -0
  1093. package/workflows/dist/sandbox-runner.cjs +7 -0
  1094. package/workflows/dist/sandbox.d.ts +46 -0
  1095. package/workflows/dist/sandbox.js +215 -0
  1096. package/workflows/dist/sandbox.js.map +1 -0
  1097. package/workflows/dist/scenario.d.ts +262 -0
  1098. package/workflows/dist/scenario.js +1281 -0
  1099. package/workflows/dist/scenario.js.map +1 -0
  1100. package/workflows/dist/scenarios.d.ts +59 -0
  1101. package/workflows/dist/scenarios.js +82 -0
  1102. package/workflows/dist/scenarios.js.map +1 -0
  1103. package/workflows/dist/schedules.d.ts +74 -0
  1104. package/workflows/dist/schedules.js +168 -0
  1105. package/workflows/dist/schedules.js.map +1 -0
  1106. package/workflows/dist/schema.d.ts +49 -0
  1107. package/workflows/dist/schema.js +256 -0
  1108. package/workflows/dist/schema.js.map +1 -0
  1109. package/workflows/dist/sdk.d.ts +34 -0
  1110. package/workflows/dist/sdk.js +182 -0
  1111. package/workflows/dist/sdk.js.map +1 -0
  1112. package/workflows/dist/seal.d.ts +42 -0
  1113. package/workflows/dist/seal.js +103 -0
  1114. package/workflows/dist/seal.js.map +1 -0
  1115. package/workflows/dist/secret-store-check.d.ts +11 -0
  1116. package/workflows/dist/secret-store-check.js +76 -0
  1117. package/workflows/dist/secret-store-check.js.map +1 -0
  1118. package/workflows/dist/secret-store.d.ts +142 -0
  1119. package/workflows/dist/secret-store.js +273 -0
  1120. package/workflows/dist/secret-store.js.map +1 -0
  1121. package/workflows/dist/secret.d.ts +54 -0
  1122. package/workflows/dist/secret.js +115 -0
  1123. package/workflows/dist/secret.js.map +1 -0
  1124. package/workflows/dist/shared.d.ts +495 -0
  1125. package/workflows/dist/shared.js +558 -0
  1126. package/workflows/dist/shared.js.map +1 -0
  1127. package/workflows/dist/sites.d.ts +62 -0
  1128. package/workflows/dist/sites.js +498 -0
  1129. package/workflows/dist/sites.js.map +1 -0
  1130. package/workflows/dist/source.d.ts +327 -0
  1131. package/workflows/dist/source.js +99 -0
  1132. package/workflows/dist/source.js.map +1 -0
  1133. package/workflows/dist/ssh-key.d.ts +11 -0
  1134. package/workflows/dist/ssh-key.js +44 -0
  1135. package/workflows/dist/ssh-key.js.map +1 -0
  1136. package/workflows/dist/steps.d.ts +81 -0
  1137. package/workflows/dist/steps.js +23 -0
  1138. package/workflows/dist/steps.js.map +1 -0
  1139. package/workflows/dist/storage-provisioning.d.ts +27 -0
  1140. package/workflows/dist/storage-provisioning.js +222 -0
  1141. package/workflows/dist/storage-provisioning.js.map +1 -0
  1142. package/workflows/dist/store-move-workflow.d.ts +14 -0
  1143. package/workflows/dist/store-move-workflow.js +77 -0
  1144. package/workflows/dist/store-move-workflow.js.map +1 -0
  1145. package/workflows/dist/store-move.d.ts +361 -0
  1146. package/workflows/dist/store-move.js +744 -0
  1147. package/workflows/dist/store-move.js.map +1 -0
  1148. package/workflows/dist/supervisor.d.ts +39 -0
  1149. package/workflows/dist/supervisor.js +68 -0
  1150. package/workflows/dist/supervisor.js.map +1 -0
  1151. package/workflows/dist/tokens.d.ts +45 -0
  1152. package/workflows/dist/tokens.js +120 -0
  1153. package/workflows/dist/tokens.js.map +1 -0
  1154. package/workflows/dist/vendor-info.d.ts +19 -0
  1155. package/workflows/dist/vendor-info.js +49 -0
  1156. package/workflows/dist/vendor-info.js.map +1 -0
  1157. package/workflows/dist/version.d.ts +44 -0
  1158. package/workflows/dist/version.js +92 -0
  1159. package/workflows/dist/version.js.map +1 -0
  1160. package/workflows/dist/wakeup-driver.d.ts +128 -0
  1161. package/workflows/dist/wakeup-driver.js +225 -0
  1162. package/workflows/dist/wakeup-driver.js.map +1 -0
  1163. package/workflows/dist/wakeup-service.d.ts +79 -0
  1164. package/workflows/dist/wakeup-service.js +419 -0
  1165. package/workflows/dist/wakeup-service.js.map +1 -0
  1166. package/workflows/dist/wakeup-type.d.ts +43 -0
  1167. package/workflows/dist/wakeup-type.js +82 -0
  1168. package/workflows/dist/wakeup-type.js.map +1 -0
  1169. package/workflows/dist/wakeup.d.ts +95 -0
  1170. package/workflows/dist/wakeup.js +79 -0
  1171. package/workflows/dist/wakeup.js.map +1 -0
  1172. package/workflows/dist/worker.d.ts +85 -0
  1173. package/workflows/dist/worker.js +535 -0
  1174. package/workflows/dist/worker.js.map +1 -0
  1175. package/workflows/dist/writer.d.ts +83 -0
  1176. package/workflows/dist/writer.js +349 -0
  1177. package/workflows/dist/writer.js.map +1 -0
  1178. package/workflows/drizzle/company/0000_tables.sql +104 -0
  1179. package/workflows/drizzle/company/0001_wakeup_row.sql +2 -0
  1180. package/workflows/drizzle/company/0002_runs_tell_the_app.sql +27 -0
  1181. package/workflows/drizzle/company/0003_ledger_target.sql +2 -0
  1182. package/workflows/drizzle/company/0004_oauth_attempts.sql +19 -0
  1183. package/workflows/drizzle/company/0005_connection_renewals.sql +9 -0
  1184. package/workflows/drizzle/company/0006_secret_moves.sql +35 -0
  1185. package/workflows/drizzle/company/meta/0000_snapshot.json +652 -0
  1186. package/workflows/drizzle/company/meta/0001_snapshot.json +652 -0
  1187. package/workflows/drizzle/company/meta/0002_snapshot.json +819 -0
  1188. package/workflows/drizzle/company/meta/0003_snapshot.json +845 -0
  1189. package/workflows/drizzle/company/meta/0004_snapshot.json +955 -0
  1190. package/workflows/drizzle/company/meta/0005_snapshot.json +1010 -0
  1191. package/workflows/drizzle/company/meta/0006_snapshot.json +1232 -0
  1192. package/workflows/drizzle/company/meta/_journal.json +55 -0
  1193. package/workflows/drizzle/wakeup/0000_tables.sql +26 -0
  1194. package/workflows/drizzle/wakeup/meta/0000_snapshot.json +200 -0
  1195. package/workflows/drizzle/wakeup/meta/_journal.json +13 -0
  1196. package/workflows/oxlint.json +117 -0
  1197. package/workflows/src/app-steps.ts +67 -0
  1198. package/workflows/src/app-workflows.ts +261 -0
  1199. package/workflows/src/apply-steps.ts +108 -0
  1200. package/workflows/src/apply.ts +868 -0
  1201. package/workflows/src/approvals.ts +274 -0
  1202. package/workflows/src/apps-list.ts +168 -0
  1203. package/workflows/src/apps.ts +147 -0
  1204. package/workflows/src/ast.ts +115 -0
  1205. package/workflows/src/authentication.ts +316 -0
  1206. package/workflows/src/bundled.ts +49 -0
  1207. package/workflows/src/call-workflow.ts +53 -0
  1208. package/workflows/src/call.ts +848 -0
  1209. package/workflows/src/cedar.ts +681 -0
  1210. package/workflows/src/change-steps.ts +270 -0
  1211. package/workflows/src/change-workflow.ts +198 -0
  1212. package/workflows/src/change.ts +483 -0
  1213. package/workflows/src/chat-steps.ts +117 -0
  1214. package/workflows/src/chat-workflow.ts +69 -0
  1215. package/workflows/src/chats.ts +179 -0
  1216. package/workflows/src/claims.ts +79 -0
  1217. package/workflows/src/client.ts +1924 -0
  1218. package/workflows/src/cloud-identity.ts +205 -0
  1219. package/workflows/src/collection.ts +688 -0
  1220. package/workflows/src/config.ts +1178 -0
  1221. package/workflows/src/connect-workflow.ts +38 -0
  1222. package/workflows/src/connection.ts +1522 -0
  1223. package/workflows/src/constructors.ts +10 -0
  1224. package/workflows/src/credentials.ts +189 -0
  1225. package/workflows/src/cucumber.ts +243 -0
  1226. package/workflows/src/data.ts +10 -0
  1227. package/workflows/src/database.ts +154 -0
  1228. package/workflows/src/db/company.ts +331 -0
  1229. package/workflows/src/db/dbos.ts +17 -0
  1230. package/workflows/src/db/identity.ts +61 -0
  1231. package/workflows/src/db/index.ts +12 -0
  1232. package/workflows/src/db/kms.ts +41 -0
  1233. package/workflows/src/db/migrate.ts +71 -0
  1234. package/workflows/src/db/wakeup.ts +41 -0
  1235. package/workflows/src/db.ts +430 -0
  1236. package/workflows/src/deadlines.ts +283 -0
  1237. package/workflows/src/define.ts +416 -0
  1238. package/workflows/src/definitions.ts +36 -0
  1239. package/workflows/src/deployment-key.ts +57 -0
  1240. package/workflows/src/describe.ts +525 -0
  1241. package/workflows/src/description.ts +434 -0
  1242. package/workflows/src/direct.ts +31 -0
  1243. package/workflows/src/dns.ts +29 -0
  1244. package/workflows/src/drift.ts +289 -0
  1245. package/workflows/src/env.ts +124 -0
  1246. package/workflows/src/errors.ts +255 -0
  1247. package/workflows/src/expectations.ts +200 -0
  1248. package/workflows/src/fake.ts +364 -0
  1249. package/workflows/src/fill.ts +47 -0
  1250. package/workflows/src/folded.ts +28 -0
  1251. package/workflows/src/follow-steps.ts +129 -0
  1252. package/workflows/src/follow-workflow.ts +88 -0
  1253. package/workflows/src/grid.ts +102 -0
  1254. package/workflows/src/host-derive.ts +540 -0
  1255. package/workflows/src/host.ts +234 -0
  1256. package/workflows/src/identity-broker.ts +94 -0
  1257. package/workflows/src/identity-provisioning.ts +337 -0
  1258. package/workflows/src/identity-service.ts +180 -0
  1259. package/workflows/src/import-workflow.ts +153 -0
  1260. package/workflows/src/import.ts +222 -0
  1261. package/workflows/src/index.ts +415 -0
  1262. package/workflows/src/kms-secrets.ts +385 -0
  1263. package/workflows/src/ledger.ts +559 -0
  1264. package/workflows/src/lint.ts +226 -0
  1265. package/workflows/src/load.ts +489 -0
  1266. package/workflows/src/local-sandbox.ts +133 -0
  1267. package/workflows/src/lockfile.ts +102 -0
  1268. package/workflows/src/log.ts +82 -0
  1269. package/workflows/src/login-code.ts +58 -0
  1270. package/workflows/src/oauth.ts +402 -0
  1271. package/workflows/src/op.ts +646 -0
  1272. package/workflows/src/outline.ts +675 -0
  1273. package/workflows/src/paths.ts +135 -0
  1274. package/workflows/src/person.ts +78 -0
  1275. package/workflows/src/plugin.ts +85 -0
  1276. package/workflows/src/policy.ts +162 -0
  1277. package/workflows/src/preview.ts +57 -0
  1278. package/workflows/src/provisioning-identity.ts +106 -0
  1279. package/workflows/src/renewal.ts +272 -0
  1280. package/workflows/src/resource.ts +964 -0
  1281. package/workflows/src/resources.ts +459 -0
  1282. package/workflows/src/run-status.ts +39 -0
  1283. package/workflows/src/run.ts +179 -0
  1284. package/workflows/src/runner-box.ts +218 -0
  1285. package/workflows/src/runner-protocol.ts +61 -0
  1286. package/workflows/src/runtime-ops.ts +391 -0
  1287. package/workflows/src/sandbox-contract.ts +121 -0
  1288. package/workflows/src/sandbox-runner.ts +187 -0
  1289. package/workflows/src/sandbox.ts +253 -0
  1290. package/workflows/src/scenario.ts +1624 -0
  1291. package/workflows/src/scenarios.ts +125 -0
  1292. package/workflows/src/schedules.ts +219 -0
  1293. package/workflows/src/schema.ts +311 -0
  1294. package/workflows/src/sdk.ts +225 -0
  1295. package/workflows/src/seal.ts +127 -0
  1296. package/workflows/src/secret-store-check.ts +93 -0
  1297. package/workflows/src/secret-store.ts +382 -0
  1298. package/workflows/src/secret.ts +151 -0
  1299. package/workflows/src/shared.ts +798 -0
  1300. package/workflows/src/sites.ts +559 -0
  1301. package/workflows/src/source.ts +353 -0
  1302. package/workflows/src/ssh-key.ts +48 -0
  1303. package/workflows/src/steps.ts +93 -0
  1304. package/workflows/src/storage-provisioning.ts +252 -0
  1305. package/workflows/src/store-move-workflow.ts +80 -0
  1306. package/workflows/src/store-move.ts +870 -0
  1307. package/workflows/src/supervisor.ts +102 -0
  1308. package/workflows/src/tokens.ts +163 -0
  1309. package/workflows/src/vendor-info.ts +53 -0
  1310. package/workflows/src/version.ts +103 -0
  1311. package/workflows/src/wakeup-driver.ts +286 -0
  1312. package/workflows/src/wakeup-service.ts +484 -0
  1313. package/workflows/src/wakeup-type.ts +92 -0
  1314. package/workflows/src/wakeup.ts +145 -0
  1315. package/workflows/src/worker.ts +667 -0
  1316. package/workflows/src/writer.ts +392 -0
  1317. package/dist/claims.d.ts +0 -1
  1318. package/dist/claims.js +0 -6
  1319. package/dist/claims.js.map +0 -1
  1320. package/dist/data.d.ts +0 -1
  1321. package/dist/data.js +0 -4
  1322. package/dist/data.js.map +0 -1
  1323. package/dist/resources.d.ts +0 -1
  1324. package/dist/resources.js +0 -5
  1325. package/dist/resources.js.map +0 -1
  1326. package/dist/secrets.d.ts +0 -2
  1327. package/dist/secrets.js +0 -3
  1328. package/dist/secrets.js.map +0 -1
  1329. package/identity/Dockerfile +0 -14
  1330. package/site.d.ts +0 -3
  1331. package/site.js +0 -3
  1332. package/ui.css +0 -2
  1333. package/ui.d.ts +0 -3
  1334. package/ui.js +0 -3
@@ -0,0 +1 @@
1
+ import{a as e,c as t,i as n,t as r}from"./utils-CMsCvwYQ.js";import{A as i,Ar as a,Bn as o,C as s,Di as c,Ei as l,Er as u,Fn as d,Fr as f,Gn as p,Gr as m,Hi as h,Hn as g,In as _,Jn as v,Jr as y,Ks as b,L as x,Li as S,Lr as C,Mr as w,N as T,Oi as E,Or as D,Qn as O,Qr as k,R as A,Ri as ee,S as te,Si as ne,Sr as j,T as re,Ti as M,Tr as N,Un as P,Vi as ie,Vn as F,Wn as I,Wr as ae,Xr as L,Yi as R,Yn as z,Yr as oe,_ as se,_i as B,_r as V,a as H,b as ce,bi as U,br as le,c as W,ci as G,d as ue,ei as K,f as de,fi as fe,g as q,gi as J,gr as pe,hi as me,hr as Y,i as he,j as ge,ki as _e,mr as ve,n as ye,nr as be,o as xe,oi as X,or as Se,p as Ce,pi as Z,pr as we,qn as Te,r as Ee,si as De,sr as Oe,t as ke,ti as Ae,tr as je,u as Me,v as Ne,w as Pe,wi as Fe,wr as Ie,x as Le,xi as Re,xr as ze,y as Be,yi as Ve,yr as He,zr as Ue}from"./store-BGu0d2Ld.js";import{Ct as We,_t as Ge,vt as Ke,yt as qe}from"./common-Dw2i6XKZ.js";import{B as Je,C as Ye,S as Xe,T as Ze,b as Qe,v as $e,w as et,x as tt,y as nt}from"./kit-BsK6VZTQ.js";import{t as rt}from"./Separator-BAhKFgSd.js";import{a as it,f as at}from"./composite-D9GNDzFj.js";import{a as ot,d as st,f as ct,r as lt}from"./DialogTitle-BgjYK22C.js";import{r as ut,t as dt}from"./useOpenInteractionType-Bin8RjM5.js";import{j as ft}from"./index-Bn3XeKy8.js";var Q=t(e(),1);function pt(e){return j&&e.movementX===0&&e.movementY===0}function mt(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function ht(e,t){return mt(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function gt(e,t,n){return mt(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function _t(e,t,n){return mt(t,n?e===ve:e===Y,e===we)}function vt(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:mt(t,n?e===Y:e===ve,e===pe)}function yt(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:l=null,allowEscape:u=!1,loopFocus:d=!1,nested:f=!1,rtl:p=!1,virtual:m=!1,focusItemOnOpen:h=`auto`,focusItemOnHover:_=!0,openOnArrowKeyDown:y=!0,disabledIndices:b=void 0,orientation:x=`vertical`,triggerOrientation:S=x,parentOrientation:w,id:T,resetOnPointerLeave:k=!0,externalTree:A,nestedReturnFocusRef:ee,grid:j}=t,re=j!=null,M=e.useState(`open`),N=e.useState(`floatingElement`),P=e.useState(`domReferenceElement`),R=e.context.dataRef,oe=O(N),se=je(P),B=D(oe),H=te(),ce=s(A),U=Q.useRef(h),W=Q.useRef(l??-1),G=Q.useRef(null),ue=Q.useRef(!0),K=E(e=>{i(W.current===-1?null:W.current,e)}),de=Q.useRef(!!N),fe=Q.useRef(M),q=Q.useRef(!1),J=Q.useRef(!1),pe=Q.useRef(null),me=D(b),Y=D(M),he=D(l),ge=D(k),_e=C(),ve=C(),ye=E(()=>{_e.cancel();function e(e){m||(pe.current=ct(e,{sync:q.current,preventScroll:!0}))}let t=n.current[W.current],r=J.current;t&&e(t),(q.current?e=>e():e=>_e.request(e))(()=>{let i=n.current[W.current]||t;i&&(t||e(i),Ee&&(r||!ue.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});c(()=>{R.current.orientation=x},[R,x]),c(()=>{M||(G.current=null),M&&h===`auto`||(U.current=h)},[M,h]),c(()=>{a&&(M&&N?(W.current=l??-1,U.current&&l!=null&&(J.current=!0,K())):de.current&&(W.current=-1,K()))},[a,M,N,l,K]),c(()=>{if(a){if(!M)q.current=!1;else if(N){if(r==null){if(q.current=!1,he.current!=null)return;if(de.current&&(W.current=-1,ye()),(!fe.current||!de.current)&&U.current&&(G.current!=null||U.current===!0&&G.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>ve.request(e):queueMicrotask)(t),e+=1):(W.current=G.current==null||gt(G.current,S,p)||f?F(n):o(n),G.current=null,K())};t()}}else I(n.current,r)||(W.current=r,ye(),J.current=!1)}}},[a,M,N,r,he,f,n,S,p,K,ye,ve]),c(()=>{if(!a||N||!ce||m||!de.current)return;let e=ce.nodesRef.current,t=e.find(e=>e.id===H)?.context?.elements.floating,n=V(ne(P??t??null)),r=e.some(e=>e.context&&He(e.context.elements.floating,n));t&&!r&&ue.current&&t.focus({preventScroll:!0})},[a,N,P,ce,H,m]),c(()=>{fe.current=M,de.current=!!N});let xe=r!=null,Se=E(e=>{if(!Y.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(W.current!==t||r!==t)&&(W.current=t,K(e))}),Ce=E(()=>w??ce?.nodesRef.current.find(e=>e.id===H)?.context?.dataRef?.current.orientation),Z=E(()=>F(n,me.current)),we=E(t=>{if(ue.current=!1,q.current=!0,t.which===229||!Y.current&&t.currentTarget===B.current)return;if(f&&vt(t.key,x,p,re)){ht(t.key,Ce())||z(t),e.setOpen(!1,X(L,t.nativeEvent));let n=ee?.current??P;ie(n)&&n.focus();return}r!=null&&r!==W.current&&!I(n.current,r)&&(W.current=r);let i=W.current,a=F(n,b),s=o(n,b);if(se||(t.key===`Home`&&(z(t),W.current=a,K(t)),t.key===`End`&&(z(t),W.current=s,K(t))),j!=null){let e=j(t,W.current,n,x,d,p,b,a,s);if(e!=null&&e!==W.current&&(W.current=e,K(t)),x===`both`)return}if(ht(t.key,x)){z(t);let e=V(t.currentTarget.ownerDocument);if(M&&!m&&He(t.currentTarget,e)&&!n.current.some(t=>t!=null&&He(t,e))){W.current=gt(t.key,x,p)?a:s,K(t),r===W.current&&ye();return}let{index:o,wrapped:c}=g(n.current,i,{decrement:!gt(t.key,x,p),loopFocus:d,allowEscape:u,disabledIndices:b,minIndex:a,maxIndex:s});c&&(q.current=!1),W.current=o,K(t)}}),Ee=Q.useMemo(()=>({onFocus(e){q.current=!0,Se(e)},onClick({currentTarget:e}){m||e.focus({preventScroll:!0})},onMouseMove(e){pt(e)||(q.current=!0,J.current=!1,_&&Se(e))},onPointerLeave(e){if(!Y.current||!ue.current||e.pointerType===`touch`)return;q.current=!0;let t=e.relatedTarget;if(_&&!n.current.includes(t)&&ge.current&&(pe.current?.(),pe.current=null,W.current=-1,K(e),!m)){let e=B.current,t=V(ne(e));e&&He(e,t)&&e.focus({preventScroll:!0})}}}),[Se,Y,B,_,n,K,ge,m]),De=Q.useMemo(()=>m&&M&&xe&&{"aria-activedescendant":`${T}-${r}`},[m,M,xe,T,r]),Oe=Q.useMemo(()=>({...se?{}:De,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&M&&!m){let n=le(t.nativeEvent);if(n&&!He(B.current,n))return;z(t);let r=X(ae,t.nativeEvent);e.setOpen(!1,r);let i=ee?.current??P;!r.isCanceled&&ie(i)&&i.focus()}else we(t)},onPointerMove(e){pt(e)||(ue.current=!0)}}),[De,we,B,se,e,M,m,P,ee]),ke=Q.useMemo(()=>{function t(t){e.setOpen(!0,X(L,t.nativeEvent,t.currentTarget))}function n(e){h===`auto`&&Te(e.nativeEvent)&&(U.current=!m)}function r(e){U.current=h,h===`auto`&&v(e.nativeEvent)&&(U.current=!0)}return{onKeyDown(n){let r=e.select(`open`);ue.current=!1;let i=n.key.startsWith(`Arrow`),a=_t(n.key,Ce(),p),o=ht(n.key,r?x:S),s=(f?a:o)||n.key===`Enter`||n.key.trim()===``;if(m&&r&&(!f||be(n.currentTarget)))return we(n);if(r||y||!i){if(s){let e=ht(n.key,Ce());G.current=f&&e?null:n.key}f?a&&(z(n),r?(W.current=Z(),K(n),m&&B.current?.focus()):t(n)):o&&(he.current!=null&&(W.current=he.current),z(n),!r&&y?t(n):we(n),r&&K(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!m&&(W.current=-1,K(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[we,h,Z,f,K,e,y,x,S,Ce,p,he,m,B]),Ae=Q.useMemo(()=>({...De,...ke}),[De,ke]);return Q.useMemo(()=>a?{reference:Ae,floating:Oe,item:Ee,trigger:ke}:{},[a,Ae,Oe,ke,Ee])}function bt(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:o,disabledIndices:s,onTyping:l,enabled:u=!0,resetMs:d=750,selectedIndex:f=null}=t,m=E(l),h=e.useState(`open`),g=a(),_=Q.useRef(``),v=Q.useRef(f??i??-1),y=Q.useRef(null),b=E(e=>{function t(e){return r?.current[e]}function a(e){let n=t(e);return n&&!P(n)||n?.matches(`:disabled`)?!1:s==null||!p(me,e,s)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&a(n))return n}return-1}let l=n.current;if(_.current.length>0&&e.key===` `&&(z(e),m?.(!0)),_.current.length>0&&_.current[0]!==` `&&c(l,_.current)===-1&&e.key!==` `&&m?.(!1),l==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;h&&e.key!==` `&&(z(e),m?.(!0));let u=_.current===``;u&&(v.current=f??i??-1),l.every((e,t)=>e&&a(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&_.current===e.key&&(_.current=``,v.current=y.current),_.current+=e.key,g.start(d,()=>{_.current=``,v.current=y.current,m?.(!1)});let b=((u?f??i??-1:v.current)??0)+1,x=c(l,_.current,b);x===-1?e.key!==` `&&(_.current=``,m?.(!1)):(o?.(x,e),y.current=x)}),x=E(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);He(r,n)||He(i,n)||(g.clear(),_.current=``,v.current=y.current,m?.(!1))});c(()=>{(h||f===null)&&(g.clear(),y.current=null,_.current!==``&&(_.current=``,m?.(!1)))},[h,f,g,m]);let S=Q.useMemo(()=>({onKeyDown:b,onBlur:x}),[b,x]);return Q.useMemo(()=>u?{reference:S,floating:S}:{},[u,S])}var $=n(),xt=Q.createContext(void 0);function St(e){let t=Q.useContext(xt);if(t===void 0&&!e)throw Error(M(33));return t}var Ct=Q.createContext(void 0);function wt(e){let t=Q.useContext(Ct);if(t===void 0&&!e)throw Error(M(36));return t}var Tt=Q.createContext(void 0);function Et(e=!0){let t=Q.useContext(Tt);if(t===void 0&&!e)throw Error(M(25));return t}var Dt=Q.createContext(null);function Ot(e=`root`){let t=Q.useContext(Dt),n=Q.useContext(Ct);return t===null||n===void 0?null:(e===`submenu-trigger`?n.virtualFocus||n.parentVirtualFocus:n.virtualFocus)?t:null}var kt={visible:!0,ref:null};function At(){return kt}function jt(e,t,n=`root`){let r=Ot(n),i=((n===`submenu-trigger`?r?.useSubmenuTrigger:r?.useItem)??At)({label:e.label,children:e.children,render:e.render}),a=Ve(t,i.ref);return{visible:i.visible,ref:a,props:i.props}}var Mt=Q.createContext(void 0);function Nt(){let e=Q.useContext(Mt);if(e===void 0)throw Error(M(30));return e}function Pt(e){e.preventDefault()}function Ft(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,l=wt(),u=Et(!0),d=c.type===`submenu-trigger`,f=d?l.parentVirtualFocus:l.virtualFocus,p=(d&&l.parent.type===`menu`?l.parent.store:l.store).useState(`webkitAriaSelected`,n),{events:m}=a.useState(`floatingTreeRoot`),h=a.useState(`open`),g=u!==void 0,_=!f&&h&&n?0:-1;return Q.useMemo(()=>({id:r,role:`menuitem`,tabIndex:_,"aria-selected":p,onMouseDown:f?Pt:void 0,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&m.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&m.emit(`close`,{domEvent:e.nativeEvent,reason:y})},onMouseUp(e){if(u){let t=u.initialCursorPointRef.current;if(u.initialCursorPointRef.current=null,g&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||g&&!Ie&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!g||e.button===2)&&c.type===`regular-item`&&Re(s.current,e,{detail:1,pointerType:`mouse`})}}),[t,_,r,m,i,a.context.allowMouseUpTriggerRef,o,s,u,g,c.type,p,f])}var It={type:`regular-item`};function Lt(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:u}=e,d=Q.useRef(null),{getButtonProps:f,buttonRef:p}=U({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),m=Ft({closeOnClick:t,highlighted:r,id:i,nodeId:u,store:a,typingRef:o,itemRef:d,itemMetadata:c}),h=Q.useCallback(e=>l(m,{onMouseEnter(e){c.type===`submenu-trigger`&&c.setActive(e.nativeEvent)}},e,f),[m,f,c]),g=Ve(d,p);return Q.useMemo(()=>({getItemProps:h,itemRef:g}),[h,g])}var Rt=`data-checked`,zt=`data-unchecked`,Bt={checked(e){return e?{[Rt]:``}:{[zt]:``}},...w},Vt=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!1,checked:l=!1,onCheckedChange:u,style:d,...f}=e,{store:p}=wt(),m=Ke({guess:!0,label:a}),h=G(i),g=p.useState(`disabled`),_=p.useState(`isActive`,m.index),v=p.useState(`floatingNodeId`),b=p.useState(`itemProps`),x=s||g,{getItemProps:S,itemRef:C}=Lt({closeOnClick:c,disabled:x,highlighted:_,id:h,store:p,nativeButton:o,nodeId:v,itemMetadata:It}),w=Q.useMemo(()=>({disabled:x,highlighted:_,checked:l}),[x,_,l]);function T(e){let t=X(y,e.nativeEvent,void 0,{preventUnmountOnClose:B});u?.(!l,t)}let E=Z(`div`,e,{state:w,stateAttributesMapping:Bt,props:[b,{role:`menuitemcheckbox`,"aria-checked":l,onClick:T},f,S],ref:[C,t,m.ref]});return(0,$.jsx)(Mt.Provider,{value:w,children:E})}),Ht=Q.forwardRef(function(e,t){let{checked:n,defaultChecked:r,onCheckedChange:i,...a}=e,[o,s]=We({controlled:n,default:r??!1,name:`MenuCheckboxItem`,state:`checked`}),c=jt(e,t);function l(e,t){i?.(e,t),t.isCanceled||s(e)}return c.visible?(0,$.jsx)(Vt,{...a,checked:o,onCheckedChange:l,ref:c.ref}):null}),Ut=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=Nt(),c=Q.useRef(null),{transitionStatus:l,mounted:u,setMounted:d}=f(s.checked);N({batch:!0,enabled:!s.checked,open:s.checked,ref:c,onComplete(){s.checked||d(!1)}});let p={checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l};return Z(`span`,e,{state:p,ref:[t,c],stateAttributesMapping:Bt,props:{"aria-hidden":!0,...o},enabled:a||u})}),Wt=Q.createContext(void 0);function Gt(){let e=Q.useContext(Wt);if(e===void 0)throw Error(M(31));return e}var Kt=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Q.useState(void 0),c=Z(`div`,e,{ref:t,props:{role:`group`,"aria-labelledby":o,...a}});return(0,$.jsx)(Wt.Provider,{value:s,children:c})}),qt=Q.forwardRef(function(e,t){let n=Ot()?.Group??Kt;return(0,$.jsx)(n,{...e,ref:t})}),Jt=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=G(a),l=Gt();return c(()=>(l(s),()=>{l(e=>e===s?void 0:e)}),[l,s]),Z(`div`,e,{ref:t,props:{id:s,"aria-hidden":!0,...o}})}),Yt=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,{store:d}=wt(),f=Ke({guess:!0,label:a}),p=G(i),m=d.useState(`disabled`),h=d.useState(`isActive`,f.index),g=d.useState(`floatingNodeId`),_=d.useState(`itemProps`),v=s||m,{getItemProps:y,itemRef:b}=Lt({closeOnClick:c,disabled:v,highlighted:h,id:p,store:d,nativeButton:o,nodeId:g,itemMetadata:It});return Z(`div`,e,{state:{disabled:v,highlighted:h},props:[_,u,y],ref:[b,t,f.ref]})}),Xt=Q.forwardRef(function(e,t){let n=jt(e,t);return n.visible?(0,$.jsx)(Yt,{...e,ref:n.ref}):null}),Zt=Q.createContext(void 0);function Qt(e){let t=Q.useContext(Zt);if(t===void 0&&!e)throw Error(M(69));return t}var $t=Q.createContext(void 0);function en(){return Q.useContext($t)}function tn(e,t){let n=fe(e.render);if(Q.isValidElement(n)){let e=n.props;if(Object.hasOwn(e,`id`))return e.id??``}return e.id??t}function nn(e,t,n){let r=tn(e,t),i=r===t?void 0:r;return[r,Q.useCallback(e=>n?.(e?i:void 0),[i,n])]}function rn(e,t,n){let r=fe(e.render),i=Q.isValidElement(r)?r.props:void 0,a=e[`aria-label`]??i?.[`aria-label`],o=e[`aria-labelledby`]??i?.[`aria-labelledby`];return o==null&&!a&&(o=t?t.id||void 0:n||void 0),o}var an=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,id:o,initialFocus:s,...c}=e,{store:l,defaultFloatingId:u,setRenderedFloatingId:d,virtualFocus:f,orientation:p}=wt(),m=en(),{side:h,align:g}=St(),_=Qt(!0)!=null,v=l.useState(`open`),y=l.useState(`transitionStatus`),b=l.useState(`popupProps`),x=l.useState(`mounted`),S=l.useState(`instantType`),C=l.useState(`activeTriggerElement`),w=l.useState(`parent`),T=l.useState(`lastOpenChangeReason`),E=l.useState(`rootId`),D=l.useState(`floatingRootContext`),O=l.useState(`floatingTreeRoot`),k=l.useState(`closeDelay`),A=l.useState(`hoverEnabled`),ee=l.useState(`disabled`),te=l.useState(`openMethod`),ne=l.useState(`activeTriggerId`),j=l.useState(`listElement`),[re,M]=nn(e,u,d),P=rn(e,C,ne),ie=w.type===`menu`?m:void 0,F=w.type===`context-menu`,I=s??w.type!==`menu`;s===void 0&&j&&w.type!==`menu`&&(I=()=>l.state.activeIndex===null&&j),N({open:v,ref:l.context.popupRef,onComplete(){v&&l.context.onOpenChangeComplete?.(!0)}}),Q.useEffect(()=>{function e(e){l.setOpen(!1,X(e.reason,e.domEvent))}return O.events.on(`close`,e),()=>{O.events.off(`close`,e)}},[O.events,l]),Ye(D,{enabled:A&&!ee&&!F&&w.type!==`menubar`,closeDelay:k});let ae=l.useStateSetter(`popupElement`),{parentVirtualFocusRef:L,handleFocus:R}=(Q.useContext(Dt)?.useParentHandoff??sn)(l,w,v,f),z={transitionStatus:y,side:h,align:g,open:v,nested:w.type===`menu`,instant:S},oe=Z(`div`,e,{state:z,ref:[t,l.context.popupRef,ae,M],stateAttributesMapping:Se,props:[b,{id:re,...j?{role:`presentation`}:{role:`menu`,"aria-orientation":p===`horizontal`?`horizontal`:void 0,"aria-labelledby":P},onKeyDown(e){ie?.onPopupKeyDown?.(e),_&&it.has(e.key)&&e.stopPropagation()},onFocus:R},nt(y),c,{"data-rootownerid":E}]}),se=w.type===void 0||F;(C||w.type===`menubar`&&T!==`outside-press`)&&(se=!0);let B=ie?.getReturnElement??L;return(0,$.jsx)(st,{context:D,openInteractionType:te,modal:F,disabled:!x,returnFocus:a??B??se,explicitReturnFocus:a===void 0&&B?!1:void 0,initialFocus:I,restoreFocus:!0,getInsideElements:w.type===void 0?()=>[l.context.beforeTriggerFocusGuardRef.current]:void 0,externalTree:w.type===`menubar`?void 0:O,previousFocusableElement:C,nextFocusableElement:w.type===void 0?l.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:oe})}),on={parentVirtualFocusRef:void 0,handleFocus:void 0};function sn(){return on}var cn=Q.forwardRef(function(e,t){let n=Ot()?.Popup??an;return(0,$.jsx)(n,{...e,ref:t})}),ln=Q.createContext(void 0);function un(){let e=Q.useContext(ln);if(e===void 0)throw Error(M(32));return e}var dn=Q.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i,parent:a}=wt();if(!(i.useState(`mounted`)||n))return null;let o=a.type===`menu`||a.type===`menubar`?`group`:void 0;return(0,$.jsx)(ln.Provider,{value:n,children:(0,$.jsx)(re,{ref:t,...r,portalOwnerRole:o})})});function fn(e){let{store:t,domReference:n,positionerElement:r,open:i}=e,a=Q.useRef(null),o=Q.useRef(null),s=u(r);c(()=>{i||(o.current?.abort(),o.current=null,t.state.instantType===`trigger-change`&&t.set(`instantType`,void 0))},[i,t]),c(()=>{let e=n,r=a.current;if(e&&(a.current=e),!r||!e||e===r||!t.select(`open`))return;t.set(`instantType`,void 0);let i=new AbortController;return o.current=i,s(()=>{t.select(`open`)&&t.set(`instantType`,`trigger-change`)},i.signal),()=>{i.abort()}},[n,s,t])}var pn=20;function mn(e,t,n,r){let[i,a]=Q.useState(!1);c(()=>{if(!e||!t||n==null){a(!1);return}let r=ne(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-pn)},[e,t,n]),lt(e&&(!t||i),r)}var hn=Q.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:o,render:s,side:c,align:l,sideOffset:u=0,alignOffset:d=0,collisionBoundary:f=`clipping-ancestors`,collisionPadding:p=5,arrowPadding:m=5,sticky:h=!1,disableAnchorTracking:g=!1,collisionAvoidance:_=i,style:v,...y}=e,{store:b,virtualFocus:x,syncHighlightedItem:S}=wt(),C=un(),w=Et(!0),T=b.useState(`parent`),E=b.useState(`floatingRootContext`),D=b.useState(`floatingTreeRoot`),O=b.useState(`mounted`),k=b.useState(`open`),A=b.useState(`modal`),ee=b.useState(`openMethod`),te=b.useState(`activeTriggerElement`),ne=b.useState(`transitionStatus`),j=b.useState(`positionerElement`),re=b.useState(`instantType`),M=b.useState(`adaptiveOrigin`),N=b.useState(`lastOpenChangeReason`),P=b.useState(`floatingNodeId`),ie=b.useState(`floatingParentNodeId`),F=E.useState(`domReferenceElement`),I=n,ae=u,L=d,R=l,z=_;T.type===`context-menu`&&(I=n??T.context?.anchor,R??=`start`,!c&&R!==`center`&&(L=e.alignOffset??2,ae=e.sideOffset??-5));let oe=c,se=R;T.type===`menu`?(oe??=`inline-end`,se??=`start`,z=e.collisionAvoidance??ge):T.type===`menubar`&&(oe??=T.context.orientation===`vertical`?`inline-end`:`bottom`,se??=`start`);let B=T.type===`context-menu`,V=Qe({anchor:I,floatingRootContext:E,positionMethod:w?`fixed`:r,mounted:O,side:oe,sideOffset:ae,align:se,alignOffset:L,arrowPadding:B?0:m,collisionBoundary:f,collisionPadding:p,sticky:h,nodeId:P,keepMounted:C,disableAnchorTracking:g,collisionAvoidance:z,shift:B?{crossAxis:!(`side`in z&&z.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:D,adaptiveOrigin:M,lazyFlip:x?`placement`:!1});Q.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===P&&b.set(`hoverEnabled`,!1),e.nodeId!==P&&e.parentNodeId===b.select(`floatingParentNodeId`)&&b.setOpen(!1,X(Ae)))}return D.events.on(`menuopenchange`,e),()=>{D.events.off(`menuopenchange`,e)}},[b,D.events,P]),Q.useEffect(()=>{if(b.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==b.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;b.setOpen(!1,X(t))}return D.events.on(`menuopenchange`,e),()=>{D.events.off(`menuopenchange`,e)}},[D.events,b]);let H=a();Q.useEffect(()=>{k||H.clear()},[k,H]),Q.useEffect(()=>{function e(e){if(k&&e.nodeId===b.select(`floatingParentNodeId`)){if(e.target&&te&&te!==e.target){let e=b.select(`closeDelay`);e>0?H.isStarted()||H.start(e,()=>{b.setOpen(!1,X(Ae))}):b.setOpen(!1,X(Ae))}else H.clear()}}return D.events.on(`itemhover`,e),()=>{D.events.off(`itemhover`,e)}},[D.events,k,te,b,H]),Q.useEffect(()=>{let e={open:k,nodeId:P,parentNodeId:ie,reason:b.select(`lastOpenChangeReason`)};D.events.emit(`menuopenchange`,e)},[D.events,k,b,P,ie]),fn({store:b,domReference:F,positionerElement:j,open:k});let ce={open:k,side:V.side,align:V.align,anchorHidden:V.anchorHidden,nested:T.type===`menu`,instant:re},U=T.type===`menubar`&&T.context.modal;mn(k&&(U||A&&N!==`trigger-hover`),ee===`touch`,j,te);let le=$e(e,ce,{styles:V.positionerStyles,transitionStatus:ne,props:y,refs:[t,b.useStateSetter(`positionerElement`)],hidden:!O,inert:!k}),W=O&&T.type!==`menu`&&(T.type!==`menubar`&&A&&N!==`trigger-hover`||T.type===`menubar`&&T.context.modal),G=null;return T.type===`menubar`?G=T.context.contentElement:T.type===void 0&&(G=te),(0,$.jsxs)(xt.Provider,{value:V,children:[W&&(0,$.jsx)(ot,{ref:T.type===`context-menu`||T.type===`nested-context-menu`?T.context.internalBackdropRef:null,inert:at(!k),cutout:G}),(0,$.jsx)(Be,{id:P,children:(0,$.jsx)(qe,{elementsRef:b.context.itemDomElements,labelsRef:b.context.itemLabels,onMapChange:S,children:le})})]})}),gn=Q.createContext(void 0);function _n(){let e=Q.useContext(gn);if(e===void 0)throw Error(M(34));return e}var vn=Q.forwardRef(function(e,t){let{render:n,className:r,value:i,defaultValue:a,onValueChange:o,disabled:s=!1,style:c,"aria-labelledby":l,...u}=e,[d,f]=Q.useState(void 0),[p,m]=We({controlled:i,default:a,name:`MenuRadioGroup`}),h=E((e,t)=>{o?.(e,t),!t.isCanceled&&m(e)}),g=Z(`div`,e,{state:{disabled:s},ref:t,props:{role:`group`,"aria-labelledby":l??d,"aria-disabled":s||void 0,...u}}),_=Q.useMemo(()=>({value:p,setValue:h,disabled:s}),[p,h,s]);return(0,$.jsx)(Wt.Provider,{value:f,children:(0,$.jsx)(gn.Provider,{value:_,children:g})})}),yn=Q.memo(Q.forwardRef(function(e,t){let n=Ot()?.RadioGroup??vn;return(0,$.jsx)(n,{...e,ref:t})})),bn=Q.createContext(void 0);function xn(){let e=Q.useContext(bn);if(e===void 0)throw Error(M(35));return e}var Sn=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!1,value:l,style:u,...d}=e,{store:f}=wt(),{value:p,setValue:m,disabled:h}=_n(),g=Ke({guess:!0,label:a}),_=G(i),v=f.useState(`isActive`,g.index),b=f.useState(`floatingNodeId`),x=f.useState(`itemProps`),S=f.useState(`disabled`),C=s||h||S,w=p===l,{getItemProps:T,itemRef:E}=Lt({closeOnClick:c,disabled:C,highlighted:v,id:_,store:f,nativeButton:o,nodeId:b,itemMetadata:It}),D=Q.useMemo(()=>({disabled:C,highlighted:v,checked:w}),[C,v,w]);function O(e){let t=X(y,e.nativeEvent,void 0,{preventUnmountOnClose:B});m(l,t)}let k=Z(`div`,e,{state:D,stateAttributesMapping:Bt,props:[x,{role:`menuitemradio`,"aria-checked":w,onClick:O},d,T],ref:[E,t,g.ref]});return(0,$.jsx)(bn.Provider,{value:D,children:k})}),Cn=Q.forwardRef(function(e,t){let n=jt(e,t);return n.visible?(0,$.jsx)(Sn,{...e,ref:n.ref}):null}),wn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=xn(),c=Q.useRef(null),{transitionStatus:l,mounted:u,setMounted:d}=f(s.checked);N({batch:!0,enabled:!s.checked,open:s.checked,ref:c,onComplete(){s.checked||d(!1)}});let p={checked:s.checked,disabled:s.disabled,highlighted:s.highlighted,transitionStatus:l};return Z(`span`,e,{state:p,stateAttributesMapping:Bt,ref:[t,c],props:{"aria-hidden":!0,...o},enabled:a||u})}),Tn=Q.createContext(null);function En(e){let t=Q.useContext(Tn);if(t===null&&!e)throw Error(M(5));return t}function Dn(e){return e==null?k:e.type.startsWith(`key`)?oe:e.type.startsWith(`mouse`)||e.type.startsWith(`pointer`)?K:k}var On={...ye,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,keyboardOpen:e=>e.keyboardOpen,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,listElement:e=>e.listElement,triggerControlsId:(e,t)=>{let n=ye.triggerPopupId(e,t);return n?e.listElement?.id||n:void 0},filterTriggerProps:e=>e.filterTriggerProps,inputProps:e=>e.inputProps,webkitAriaSelected:(e,t)=>j&&e.inputFocused&&t?!0:void 0,highlightedItemId:e=>e.highlightedItem?.id||void 0,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType===`trigger-change`&&!ye.open(e)?void 0:e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},kn=class extends Ee{constructor(e,t,n=!1){let r=new he,i=jn(r,t,n,e);super(i,An(r),On),this.observe(`parent`,e=>{e.type===`menu`?this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef:e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef)})}subscribeToParentMenu(){let e=this.state.parent;if(e.type!==`menu`)return;let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);return e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}setActiveIndex(e,t,n){if(this.state.activeIndex!==e){let r=(e===null?void 0:this.context.itemDomElements.current[e])===this.context.reportedItem;this.context.highlightReason=r?`none`:t,this.context.highlightEvent=r?void 0:n}this.set(`activeIndex`,e)}highlightItem(e,t,n){let r=this.context.itemDomElements.current.indexOf(e);r>-1&&this.setActiveIndex(r,t,n)}};function An(e){return{positionerRef:Q.createRef(),popupRef:Q.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},highlightReason:`none`,highlightEvent:void 0,reportedItem:void 0,allowMouseUpTriggerRef:{current:!1},virtualFocusRef:void 0,triggerFocusTargetRef:Q.createRef(),beforeTriggerFocusGuardRef:Q.createRef(),beforeContentFocusGuardRef:Q.createRef(),onOpenChangeComplete:void 0,triggerElements:e}}function jn(e,t,n=!1,r){return{...ke(e,t,n),disabled:!1,modal:!0,openMethod:null,keyboardOpen:!1,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,listElement:null,filterTriggerProps:J,inputProps:J,inputFocused:!1,highlightedItem:void 0,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Pe,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:J,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0,...r}}var Mn=Q.createContext(null);function Nn(e,t){return(e===`trigger-press`||e===`item-press`)&&t?.detail===0}function Pn(e,t){return e===`list-navigation`||Nn(e,t)}var Fn=x(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,onItemHighlighted:o,defaultOpen:s=!1,disabled:d=!1,modal:f,loopFocus:p=!0,orientation:h=`vertical`,actionsRef:g,closeParentOnEsc:_=!1,handle:v,triggerId:y,defaultTriggerId:b=null,highlightItemOnHover:x=!0,isSubmenu:S=!1,virtualFocus:C=!1,virtualFocusRef:w,allowEscape:T=!0,resetOnPointerLeave:D=!0}=e,O=Et(!0),A=wt(!0),ee=En(!0),ne=A?.store,j=A?.virtualFocus??!1,re=Q.useMemo(()=>S&&ne?{type:`menu`,store:ne}:ee?{type:`menubar`,context:ee}:O&&!ne?{type:`context-menu`,context:O}:{type:void 0},[O,ne,ee,S]),M=G(),N=G(),[P,ie]=Q.useState(void 0),F=(P??N)||void 0,I=te(),ae=re.type===`menu`?re.store:void 0,L=(n??s)&&ae?.state.transitionStatus===`starting`,R=_e(()=>L?ae?.state.instantType:void 0).current,z=_e(()=>{let e=new kn({open:s,openProp:n,activeTriggerId:b,triggerIdProp:y,parent:re,disabled:d,highlightItemOnHover:x,modal:re.type===void 0?f:void 0,rootId:M,instantType:R},F,I!=null);return e.context.virtualFocusRef=w,e}).current;z.useControlledProp(`openProp`,n),z.useControlledProp(`triggerIdProp`,y),z.useContextCallback(`onOpenChangeComplete`,i);let B=z.useState(`floatingTreeRoot`),V=Le(B),U=z.useState(`open`),le=z.useState(`activeTriggerElement`),K=z.useState(`positionerElement`),fe=z.useState(`hoverEnabled`),q=z.useState(`disabled`),pe=z.useState(`lastOpenChangeReason`),Y=z.useState(`parent`),he=z.useState(`activeIndex`),ge=z.useState(`keyboardOpen`),ve=z.useState(`payload`),ye=z.useState(`floatingParentNodeId`),be=Q.useRef(null),Se=Q.useRef(Y.type!==`context-menu`),Z=a(),we=Q.useRef(!0),Te=a(),Ee=ye!=null,{openMethod:Oe,triggerProps:ke}=dt(U);z.useSyncedValues({disabled:d,highlightItemOnHover:x,modal:Y.type===void 0?f:void 0,openMethod:Oe,rootId:M}),ue(z);let{forceUnmount:Ae,transitionStatus:je}=de(U,z,()=>{z.set(`allowMouseEnter`,!1)},L),Pe=u(z.context.popupRef);Q.useEffect(()=>{if(R===void 0)return;let e=()=>{z.state.instantType===R&&z.set(`instantType`,void 0)};if(!U){e();return}if(je!==void 0)return;if(z.context.popupRef.current==null){e();return}let t=new AbortController;return Pe(e,t.signal),()=>{t.abort()}},[R,U,je,Pe,z]),c(()=>{O&&!A?z.update({parent:{type:`context-menu`,context:O},floatingNodeId:V,floatingParentNodeId:I}):(A||!z.select(`activeTriggerElement`))&&z.update({floatingNodeId:V,floatingParentNodeId:I})},[O,A,V,I,le,z]),Q.useEffect(()=>{U||(be.current=null),Y.type===`context-menu`&&(U?Z.start(500,()=>{Se.current=!0}):(Z.clear(),Se.current=!1))},[Z,U,Y.type]),c(()=>{!U&&!fe&&z.set(`hoverEnabled`,!0)},[U,fe,z]);let Fe=E((e,t)=>{let n=t.reason;if(!e&&!z.select(`open`)||U===e&&t.trigger===le&&pe===n)return;let i=W(t);if(!e&&t.trigger==null&&(t.trigger=le??void 0),r?.(e,t),t.isCanceled)return;z.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&n!==`item-press`&&a?.type===`click`&&a.pointerType===`touch`&&!we.current)return;e&&n===`trigger-focus`?(we.current=!1,Te.start(300,()=>{we.current=!0})):(we.current=!0,Te.clear());let o=!e&&(n===`escape-key`||n==null);be.current=t.event;let s=Me(z.state,e,t.trigger,i());s.openChangeReason=n,s.keyboardOpen=e&&Pn(n,a),s.instantType=Y.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?`group`:Nn(n,a)?`click`:o?`dismiss`:void 0,z.update(s)}),Ie=se({popupStore:z,floatingRootContext:z.state.floatingRootContext,floatingId:F,nested:I!=null,onOpenChange:Fe}),Re=Ie.context.events;c(()=>{let e=({open:e,eventDetails:t})=>Fe(e,t);return Re.on(`setOpen`,e),()=>{Re?.off(`setOpen`,e)}},[Re,Fe]),c(()=>z.subscribeToParentMenu(),[z]);let ze=Q.useCallback(()=>{z.setOpen(!1,X(m))},[z]);Q.useImperativeHandle(g,()=>({unmount:Ae,close:ze}),[Ae,ze]);let Be;Y.type===`context-menu`&&(Be=Y.context),Q.useImperativeHandle(Be?.positionerRef,()=>K,[K]),Q.useImperativeHandle(Be?.actionsRef,()=>({setOpen:Fe}),[Fe]);let Ve=Ne(Ie,{enabled:!q,bubbles:{escapeKey:_&&Y.type===`menu`},outsidePress(){return Y.type!==`context-menu`||be.current?.type===`contextmenu`||Se.current},externalTree:Ee?B:void 0}),He=Je(),Ue=yt(Ie,{enabled:!q,listRef:z.context.itemDomElements,activeIndex:he,virtual:C,nested:Y.type===`menubar`||!C&&Y.type!==void 0,parentOrientation:Y.type===`menubar`?Y.context.orientation:void 0,loopFocus:p,focusItemOnOpen:C?ge:void 0,allowEscape:C&&p&&T,orientation:h,triggerOrientation:C?`vertical`:h,rtl:He===`rtl`,disabledIndices:me,onNavigate(e,t){z.setActiveIndex(e,Dn(t),t?.nativeEvent)},openOnArrowKeyDown:Y.type!==`context-menu`&&!(C&&S),externalTree:!C&&Ee?B:void 0,nestedReturnFocusRef:ae?.context.virtualFocusRef,focusItemOnHover:x,resetOnPointerLeave:D}),We=Q.useCallback(e=>{z.context.typingRef.current=e},[z]),Ge=bt(Ie,{enabled:!q&&!C,listRef:z.context.itemLabels,elementsRef:z.context.itemDomElements,activeIndex:he,resetMs:500,onMatch:(e,t)=>{U&&e!==he&&z.setActiveIndex(e,oe,t.nativeEvent)},onTyping:We}),Ke=E(o),qe=Q.useRef(-1),Ye=E(()=>{let e=z.state.activeIndex,t=e===null?void 0:z.context.itemDomElements.current[e]??void 0;if(t?.isConnected===!1)return;let n=t===void 0?-1:e;if(qe.current===n&&z.context.reportedItem===t)return;qe.current=n,z.context.reportedItem=t,C&&z.set(`highlightedItem`,t);let{highlightReason:r,highlightEvent:i}=z.context;z.context.highlightReason=k,z.context.highlightEvent=void 0,o&&Ke(t,De(r,i,{label:t===void 0?void 0:z.context.itemLabels.current[n]??void 0}))});c(()=>{Ye()},[he,Ye]);let Xe=Q.useMemo(()=>{if(!C)return Ue.reference;if(!Ue.trigger)return J;let{onFocus:e,...t}=Ue.trigger;return t},[C,Ue.reference,Ue.trigger]);z.useSyncedValue(`inputProps`,C?Ue.reference??J:J);let Ze=Q.useMemo(()=>{let e=l(Ge.reference,Xe,Ve.reference,{onMouseMove(){z.set(`allowMouseEnter`,!0)}},ke);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=U,e},[z,Ge.reference,Xe,Ve.reference,ke,U]),Qe=Q.useMemo(()=>{let e=l(Ue.trigger,Ve.trigger,ke);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[Ue.trigger,Ve.trigger,ke]);_e(()=>(z.update({inactiveTriggerProps:Qe}),null));let $e=Q.useMemo(()=>l(H,{onMouseMove(){z.set(`allowMouseEnter`,!0),Y.type===`menu`&&z.set(`hoverEnabled`,!1)},onClick(){z.select(`hoverEnabled`)&&z.set(`hoverEnabled`,!1)},onKeyDown(e){let t=z.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},Ge.floating,Ue.floating,Ve.floating),[Y.type,z,Ge.floating,Ue.floating,Ve.floating]),et=Ue.item??J;Ce(z,{floatingRootContext:Ie,activeTriggerProps:Ze,inactiveTriggerProps:Qe,popupProps:$e,itemProps:et});let tt=Q.useMemo(()=>({store:z,parent:re,orientation:h,loopFocus:p,allowEscape:T,defaultFloatingId:N,setRenderedFloatingId:ie,virtualFocus:C,parentVirtualFocus:j,syncHighlightedItem:Ye}),[z,re,h,p,T,N,C,j,Ye]),nt=typeof t==`function`?t({payload:ve}):t,rt=(0,$.jsxs)(Ct.Provider,{value:tt,children:[v&&(0,$.jsx)(xe,{handle:v,store:z}),nt]});return(Y.type===void 0||Y.type===`context-menu`)&&(rt=(0,$.jsx)(ce,{externalTree:B,children:rt})),rt});function In(e){let t=Q.useContext(Mn);if(t===null)return(0,$.jsx)(Fn,{...e});let n=t.Root;return(0,$.jsx)(Mn.Provider,{value:null,children:(0,$.jsx)(n,{...t.options,...e})})}var Ln=5;function Rn(e,t){let n=zn(t);return e.clientX>=n.left-Ln&&e.clientX<=n.right+Ln&&e.clientY>=n.top-Ln&&e.clientY<=n.bottom+Ln}function zn(e){let t=e.getBoundingClientRect(),n=ee(e);if(ze)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}function Bn(e){let{render:t,className:n,style:r,state:i=J,props:a=me,refs:o=me,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=Ge({metadata:s});return Z(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function Vn(e){if(ie(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!h(e))return Vn(S(e))}var Hn=t(b(),1);function Un(e,t){function n(n,r,i){let a=n.currentTarget;Hn.flushSync(()=>{e.setOpen(!1,X(ae,n.nativeEvent,a))}),d(a.isConnected?a:t.current,r,i)?.focus()}function r(t){n(t,-1,e.select(`positionerElement`))}function i(t){let r=e.select(`positionerElement`);r&&_(t,r)?e.context.beforeContentFocusGuardRef.current?.focus():n(t,1,r)}return{handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function Wn(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=Q.useRef(!1);return Q.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,ne(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:J,[t,n,r])}var Gn=A(function(e,t){let{render:n,className:r,style:i,disabled:o=!1,nativeButton:c=!0,id:u,openOnHover:d,delay:f=100,closeDelay:p=0,handle:m,payload:h,...g}=e,_=wt(!0),v=Ze(m)??_?.store;if(!v)throw Error(M(85));let y=G(u),b=v.useState(`isTriggerActive`,y),x=v.useState(`floatingRootContext`),S=v.useState(`isOpenedByTrigger`,y),C=v.useState(`triggerControlsId`,y),w=Q.useRef(null),D=qn(),O=Fe(!0),k=s(),A=Q.useMemo(()=>k??new Pe,[k]),ee=Le(A),j=te(),{registerTrigger:re,isMountedByThisTrigger:N}=q(y,w,v,{payload:h,closeDelay:p,parent:D,floatingTreeRoot:A,floatingNodeId:ee,floatingParentNodeId:j,keyboardEventRelay:O?.relayKeyboardEvent}),P=D.type===`menubar`,ie=v.useState(`disabled`),F=o||ie||P&&D.context.disabled,{getButtonProps:I,buttonRef:ae}=U({disabled:F,native:c});Q.useEffect(()=>{!S&&D.type===void 0&&(v.context.allowMouseUpTriggerRef.current=!1)},[v,S,D.type]);let L=Q.useRef(null),R=a(),z=E(e=>{if(!L.current)return;R.clear(),v.context.allowMouseUpTriggerRef.current=!1;let t=e.target;He(L.current,t)||He(v.select(`positionerElement`),t)||t===L.current||t!=null&&Vn(t)===v.select(`rootId`)||Rn(e,L.current)||A.events.emit(`close`,{domEvent:e,reason:Ue})});Q.useEffect(()=>{let e=ne(L.current);if(S&&v.select(`lastOpenChangeReason`)===`trigger-hover`)return e.addEventListener(`mouseup`,z,{once:!0}),()=>{e.removeEventListener(`mouseup`,z)}},[S,z,v]);let oe=P&&D.context.hasSubmenuOpen,se=Xe(x,{enabled:(d??oe)&&!F&&(!P||oe&&!N),handleClose:tt({blockPointerEvents:!P}),mouseOnly:!0,move:!1,restMs:D.type===void 0?f:void 0,delay:{close:p},triggerElementRef:w,externalTree:A,isActiveTrigger:b,isClosing:()=>v.select(`transitionStatus`)===`ending`}),B=Kn(S,v.select(`lastOpenChangeReason`)),V=ut(x,{enabled:!F,event:S&&P?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:D.type===void 0&&B}),H=et(x,{enabled:!F&&oe}),ce=Wn({open:S,enabled:P,mouseDownAction:`open`}),le=Q.useMemo(()=>l(H.reference,V.reference),[H.reference,V.reference]),W=v.useState(`triggerProps`,N),ue=v.useState(`filterTriggerProps`),{handlePreFocusGuardFocus:K,handleFocusTargetFocus:de}=Un(v,w),fe={disabled:F,open:S},pe=[L,t,ae,re,w],me=[le,se??J,W,{"aria-haspopup":`menu`,"aria-controls":C,id:y,onMouseDown:e=>{v.select(`open`)||(R.start(200,()=>{v.context.allowMouseUpTriggerRef.current=!0}),ne(e.currentTarget).addEventListener(`mouseup`,z,{once:!0}))}},ue,P?{role:`menuitem`}:{},ce,g,I],Y=Z(`button`,e,{enabled:!P,stateAttributesMapping:Oe,state:fe,ref:pe,props:me});return P?(0,$.jsx)(Bn,{tag:`button`,render:n,className:r,style:i,state:fe,refs:pe,props:me,stateAttributesMapping:Oe}):S?(0,$.jsxs)(Q.Fragment,{children:[(0,$.jsx)(T,{ref:v.context.beforeTriggerFocusGuardRef,onFocus:K},`${y}-pre-focus-guard`),(0,$.jsx)(Q.Fragment,{children:Y},y),(0,$.jsx)(T,{ref:v.context.triggerFocusTargetRef,onFocus:de},`${y}-post-focus-guard`)]}):(0,$.jsx)(Q.Fragment,{children:Y},y)});function Kn(e,t){let n=a(),[r,i]=Q.useState(!1);return c(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function qn(){let e=En(!0);return Q.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}function Jn({...e}){return(0,$.jsx)(In,{"data-slot":`dropdown-menu`,...e})}function Yn({...e}){return(0,$.jsx)(Gn,{"data-slot":`dropdown-menu-trigger`,...e})}function Xn({align:e=`start`,alignOffset:t=0,side:n=`bottom`,sideOffset:i=4,className:a,...o}){return(0,$.jsx)(dn,{children:(0,$.jsx)(hn,{className:`isolate z-50 outline-none`,align:e,alignOffset:t,side:n,sideOffset:i,children:(0,$.jsx)(cn,{"data-slot":`dropdown-menu-content`,className:r(`z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95`,a),...o})})})}function Zn({...e}){return(0,$.jsx)(qt,{"data-slot":`dropdown-menu-group`,...e})}function Qn({className:e,inset:t,...n}){return(0,$.jsx)(Jt,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:r(`px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7`,e),...n})}function $n({className:e,inset:t,variant:n=`default`,...i}){return(0,$.jsx)(Xt,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:r(`group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive`,e),...i})}function er({className:e,children:t,checked:n,inset:i,...a}){return(0,$.jsxs)(Ht,{"data-slot":`dropdown-menu-checkbox-item`,"data-inset":i,className:r(`relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),checked:n,...a,children:[(0,$.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`,"data-slot":`dropdown-menu-checkbox-item-indicator`,children:(0,$.jsx)(Ut,{children:(0,$.jsx)(ft,{"aria-hidden":`true`})})}),t]})}function tr({...e}){return(0,$.jsx)(yn,{"data-slot":`dropdown-menu-radio-group`,...e})}function nr({className:e,children:t,inset:n,...i}){return(0,$.jsxs)(Cn,{"data-slot":`dropdown-menu-radio-item`,"data-inset":n,className:r(`relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...i,children:[(0,$.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex items-center justify-center`,"data-slot":`dropdown-menu-radio-item-indicator`,children:(0,$.jsx)(wn,{children:(0,$.jsx)(ft,{"aria-hidden":`true`})})}),t]})}function rr({className:e,...t}){return(0,$.jsx)(rt,{"data-slot":`dropdown-menu-separator`,className:r(`-mx-1 my-1 h-px bg-border`,e),...t})}var ir=new Map([[`bold`,Q.createElement(Q.Fragment,null,Q.createElement(`path`,{d:`M208.49,120.49a12,12,0,0,1-17,0L140,69V216a12,12,0,0,1-24,0V69L64.49,120.49a12,12,0,0,1-17-17l72-72a12,12,0,0,1,17,0l72,72A12,12,0,0,1,208.49,120.49Z`}))],[`duotone`,Q.createElement(Q.Fragment,null,Q.createElement(`path`,{d:`M200,112H56l72-72Z`,opacity:`0.2`}),Q.createElement(`path`,{d:`M205.66,106.34l-72-72a8,8,0,0,0-11.32,0l-72,72A8,8,0,0,0,56,120h64v96a8,8,0,0,0,16,0V120h64a8,8,0,0,0,5.66-13.66ZM75.31,104,128,51.31,180.69,104Z`}))],[`fill`,Q.createElement(Q.Fragment,null,Q.createElement(`path`,{d:`M207.39,115.06A8,8,0,0,1,200,120H136v96a8,8,0,0,1-16,0V120H56a8,8,0,0,1-5.66-13.66l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,207.39,115.06Z`}))],[`light`,Q.createElement(Q.Fragment,null,Q.createElement(`path`,{d:`M204.24,116.24a6,6,0,0,1-8.48,0L134,54.49V216a6,6,0,0,1-12,0V54.49L60.24,116.24a6,6,0,0,1-8.48-8.48l72-72a6,6,0,0,1,8.48,0l72,72A6,6,0,0,1,204.24,116.24Z`}))],[`regular`,Q.createElement(Q.Fragment,null,Q.createElement(`path`,{d:`M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z`}))],[`thin`,Q.createElement(Q.Fragment,null,Q.createElement(`path`,{d:`M202.83,114.83a4,4,0,0,1-5.66,0L132,49.66V216a4,4,0,0,1-8,0V49.66L58.83,114.83a4,4,0,0,1-5.66-5.66l72-72a4,4,0,0,1,5.66,0l72,72A4,4,0,0,1,202.83,114.83Z`}))]]),ar=Q.forwardRef((e,t)=>Q.createElement(R,{ref:t,...e,weights:ir}));ar.displayName=`ArrowUpIcon`;export{Zn as a,tr as c,Yn as d,Xn as i,nr as l,Jn as n,$n as o,er as r,Qn as s,ar as t,rr as u};
@@ -0,0 +1 @@
1
+ import{a as e,c as t}from"./utils-CMsCvwYQ.js";import{Yi as n}from"./store-BGu0d2Ld.js";var r=t(e(),1),i=new Map([[`bold`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),r.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),a=r.forwardRef((e,t)=>r.createElement(n,{ref:t,...e,weights:i}));a.displayName=`CopyIcon`;export{a as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,i as n}from"./utils-CMsCvwYQ.js";import{Ar as r,Br as i,C as a,Cr as o,D as s,Di as c,Dr as l,Gr as u,I as d,In as f,Ir as p,Jn as m,L as h,Ln as g,Lr as _,M as v,Mn as y,Mr as b,N as x,Nn as ee,Oi as te,Or as S,Pi as C,Pn as ne,Qn as re,Ri as ie,Rn as ae,Si as w,Sr as oe,T,Ti as E,Tr as se,Ui as ce,Un as le,Vi as D,Wi as ue,Wr as de,Xn as fe,Yn as pe,Zn as me,_i as O,_r as k,a as A,ar as j,bi as he,br as M,ci as N,d as P,f as ge,h as F,i as _e,jr as I,kr as ve,l as ye,m as be,n as xe,nr as Se,o as L,oi as Ce,or as R,p as z,pi as B,qn as we,r as Te,t as Ee,tr as De,u as Oe,v as V,vr as ke,yi as Ae,yr as H}from"./store-BGu0d2Ld.js";import{a as je,f as Me}from"./composite-D9GNDzFj.js";var U=t(e(),1),Ne=0;function Pe(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Ne);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),O;let o=requestAnimationFrame(a);return Ne=o,()=>{Ne===o&&(cancelAnimationFrame(o),Ne=0)}}var Fe=`data-base-ui-inert`,W=new WeakMap,G=new WeakSet,K=new WeakMap,Ie=0;function q(e){return e?ue(e)?e.host:q(e.parentNode):null}var J=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=q(t);return e.contains(n)?n:null}).filter(e=>e!=null),Y=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},X=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{C(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function Le(e,t,n,{mark:r=!0}){let i=J(t,e),a=r?X(t,Y(i),new Set(i)):[],o=[],s=[];if(n){let e=J(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);X(t,Y(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(W.get(e)||0)+1;W.set(e,r),o.push(e),r===1&&n&&G.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(K.get(e)||0)+1;K.set(e,t),s.push(e),t===1&&e.setAttribute(Fe,``)}),Ie+=1,()=>{o.forEach(e=>{let t=(W.get(e)||0)-1;W.set(e,t),t||(G.has(e)||e.removeAttribute(`aria-hidden`),G.delete(e))}),r&&s.forEach(e=>{let t=(K.get(e)||0)-1;K.set(e,t),t||e.removeAttribute(Fe)}),--Ie,Ie||(W=new WeakMap,G=new WeakSet,K=new WeakMap)}}function Re(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=w(e[0]).body;return Le(e,i,n,{mark:r})}var Z=n();function ze(e,t){let n=ie(M(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(we(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Be=20,Q=[];function Ve(){Q=Q.filter(e=>e.deref()?.isConnected)}function He(e){Ve(),e&&C(e)!==`body`&&(Q.push(new WeakRef(e)),Q.length>Be&&(Q=Q.slice(-20)))}function Ue(){return Ve(),Q[Q.length-1]?.deref()}function We(e){return e?g(e)?e:ae(e)[0]||e:null}function Ge(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=y(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return g(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function Ke(e){let{context:t,children:n,disabled:i=!1,initialFocus:o=!0,returnFocus:u=!0,explicitReturnFocus:p,restoreFocus:h=!1,modal:y=!0,closeOnFocusOut:b=!0,openInteractionType:ie=``,nextFocusableElement:T,previousFocusableElement:E,beforeContentFocusGuardRef:se,externalTree:ce,getInsideElements:ue}=e,O=t.useState(`open`),A=t.useState(`domReferenceElement`),j=t.useState(`floatingElement`),{events:he,dataRef:N}=t.context,P=te(()=>N.current.floatingContext?.nodeId),ge=o===!1,F=De(A)&&ge,_e=S(o),ve=S(u),ye=S(p),be=S(ie),xe=S(O),L=a(ce),R=s(),z=U.useRef(!1),B=U.useRef(!1),Te=U.useRef(!1),Ee=U.useRef(null),Oe=U.useRef(``),V=U.useRef(``),je=U.useRef(null),Me=U.useRef(null),Ne=Ae(je,se,R?.beforeInsideRef),Fe=Ae(Me,R?.afterInsideRef),W=r(),G=r(),K=_(),Ie=R!=null,q=re(j),J=te((e=q)=>e?ae(e):[]),Y=te(()=>ue?.().filter(e=>e!=null)??[]);U.useEffect(()=>{if(i||!y)return;function e(e){e.key===`Tab`&&H(q,k(w(q)))&&J().length===0&&!F&&pe(e)}let t=w(q);return I(t,`keydown`,e)},[i,q,y,F,J]),U.useEffect(()=>{if(i||!O)return;let e=w(q);function t(){Te.current=!1}function n(e){let t=M(e),n=Y(),r=H(j,t)||H(A,t)||H(R?.portalNode,t)||n.some(e=>e===t||H(e,t));Te.current=!r,V.current=e.pointerType||`keyboard`,ke(t,`[data-base-ui-click-trigger]`)&&(B.current=!0,G.start(0,()=>{B.current=!1}))}function r(){V.current=`keyboard`}return d(I(e,`pointerdown`,n,!0),I(e,`pointerup`,t,!0),I(e,`pointercancel`,t,!0),I(e,`keydown`,r,!0),t)},[i,j,A,q,O,R,G,Y]),U.useEffect(()=>{if(i||!b)return;let e=w(q);function n(){B.current=!0,G.start(0,()=>{B.current=!1})}function r(e){let t=M(e);g(t)&&(Ee.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=M(n);y&&r==null&&a!=null&&H(j,a)&&He(a),queueMicrotask(()=>{let o=P(),s=t.context.triggerElements,c=Y(),u=r?.hasAttribute(v(`focus-guard`))&&[je.current,Me.current,R?.beforeInsideRef.current,R?.afterInsideRef.current,R?.beforeOutsideRef.current,R?.afterOutsideRef.current,l(E),l(T)].includes(r),d=!(H(A,r)||H(j,r)||H(r,j)||H(R?.portalNode,r)||c.some(e=>e===r||H(e,r))||s.hasMatchingElement(e=>H(e,r))||u||L&&(me(L.nodesRef.current,o).find(e=>H(e.context?.elements.floating,r)||H(e.context?.elements.domReference,r))||fe(L.nodesRef.current,o).find(e=>[e.context?.elements.floating,re(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===A&&q&&Ge(q),h&&i!==A&&!le(a)&&k(e)===e.body){if(D(q)&&(q.focus(),h===`popup`)){K.request(()=>{q.focus()});return}let e=J(),t=Ee.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||q;D(n)&&n.focus()}N.current.insideReactTree?N.current.insideReactTree=!1:(F||!y)&&r&&d&&!B.current&&(F||r!==Ue())&&(z.current=!0,t.setOpen(!1,Ce(de,n)))})}function o(){Te.current||(N.current.insideReactTree=!0,W.start(0,()=>{N.current.insideReactTree=!1}))}let s=D(A)?A:null;if(j||s)return d(s&&I(s,`focusout`,a),s&&I(s,`pointerdown`,n),j&&I(j,`focusin`,r),j&&I(j,`focusout`,a),j&&R&&I(j,`focusout`,o,!0))},[i,A,j,q,y,L,R,t,b,h,J,F,P,N,W,G,K,T,E,Y]),U.useEffect(()=>{if(i||!j||!O)return;let e=Array.from(R?.portalNode?.querySelectorAll(`[${v(`portal`)}]`)||[]),t=(L?fe(L.nodesRef.current,P()):[]).find(e=>De(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Re([j,...e,je.current,Me.current,R?.beforeOutsideRef.current,R?.afterOutsideRef.current,...Y(),t,l(E),l(T),F?A:null].filter(e=>e!=null),{ariaHidden:y||F,mark:!1}),r=Re([j,...e].filter(e=>e!=null));return()=>{r(),n()}},[O,i,A,j,y,R,F,L,P,T,E,Y]),c(()=>{if(!O||i||!D(q))return;Oe.current=``,V.current=``;let e=w(q),t=k(e);queueMicrotask(()=>{let n=_e.current,r=typeof n==`function`?n(be.current||``):n;if(r===void 0||r===!1||H(q,t))return;let i=null,a=()=>(i??=J(q),i[0]||q),o;o=r===!0||r===null?a():l(r),o||=a();let s=H(q,k(e)),c=N.current.openEvent,u=c?.type===`mousedown`&&we(c);Pe(o,{sync:u,preventScroll:o===q,shouldFocus(){if(!xe.current)return!1;if(s)return!0;let t=k(e);return!(t!==o&&H(q,t))}})})},[i,O,q,J,_e,be,xe,N]);let X=U.useRef(null);c(()=>{if(i||!q){X.current=null;return}X.current&&=(X.current.cancelled=!0,null);let e=w(q),t=k(e),n=be.current==null;He(t);function r(e){if(e.open||(Oe.current=ze(e.nativeEvent,V.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(v(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(z.current=!0),e.reason===`outside-press`){if(e.nested)z.current=!1;else if(we(e.nativeEvent)||m(e.nativeEvent))z.current=!1;else{let e=!1;w(q).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?z.current=!1:z.current=!0}}}he.on(`openchange`,r);function a(e){let r=ve.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=A?.isConnected?A:null,o=t?.isConnected&&C(t)!==`body`?t:null,s=n?o||a:a||o;return s||=Ue()||null,typeof i==`boolean`?s:l(i)||s||null}return()=>{he.off(`openchange`,r);let t=k(e),n=Y(),i=H(j,t)||n.some(e=>e===t||H(e,t))||L&&me(L.nodesRef.current,P(),!1).some(e=>H(e.context?.elements.floating,t)),o=ve.current,s=Oe.current,c=a(s),l={cancelled:!1};X.current=l,queueMicrotask(()=>{X.current===l&&(X.current=null);let n=We(c),r=ye.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!z.current&&D(n)&&(r||n===t||t===e.body||i)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}z.current=!1})}},[i,j,q,ve,ye,be,he,L,A,P,Y]),c(()=>{if(!oe||O||!j)return;let e=k(w(j));D(e)&&Se(e)&&H(j,e)&&e.blur()},[O,j]),c(()=>{if(!i&&R)return R.setFocusManagerState({modal:y,closeOnFocusOut:b,open:O,onOpenChange:t.setOpen,domReference:A}),()=>{R.setFocusManagerState(null)}},[i,R,y,O,t,b,A]),c(()=>{if(!i&&q)return Ge(q),()=>{queueMicrotask(Ve)}},[i,q]);let Le=!i&&(!y||!F)&&(Ie||y);return(0,Z.jsxs)(U.Fragment,{children:[Le&&(0,Z.jsx)(x,{"data-type":`inside`,ref:Ne,onFocus:e=>{if(y){let e=J();Pe(e[e.length-1])}else R?.portalNode&&(z.current=!1,f(e,R.portalNode)?ee(A)?.focus():l(E??R.beforeOutsideRef)?.focus())}}),n,Le&&(0,Z.jsx)(x,{"data-type":`inside`,ref:Fe,onFocus:e=>{y?Pe(J()[0]):R?.portalNode&&(b&&(z.current=!0),f(e,R.portalNode)?ne(A)?.focus():l(T??R.afterOutsideRef)?.focus())}})]})}var qe=U.createContext(void 0);function $(e){let t=U.useContext(qe);if(!e&&t===void 0)throw Error(E(27));return t}var Je=U.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=$(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`),d={open:c,transitionStatus:s.useState(`transitionStatus`)};return B(`div`,e,{state:d,ref:[s.context.backdropRef,t],stateAttributesMapping:R,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})}),Ye=U.forwardRef(function(e,t){let{render:n,className:r,style:a,disabled:o=!1,nativeButton:s=!0,...c}=e,l=$(),u=l.useState(`open`),{getButtonProps:d,buttonRef:f}=he({disabled:o,native:s}),p={disabled:o};function m(e){u&&l.setOpen(!1,Ce(i,e.nativeEvent))}return B(`button`,e,{state:p,ref:[t,f],props:[{onClick:m},c,d]})}),Xe=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=$(),c=N(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),B(`p`,e,{ref:t,props:[{id:c},o]})}),Ze=U.createContext(void 0);function Qe(){let e=U.useContext(Ze);if(e===void 0)throw Error(E(26));return e}var $e=`--nested-dialogs`,et=`data-nested-dialog-open`,tt={...j,...b,nestedDialogOpen(e){return e?{[et]:``}:null}},nt=U.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=$(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),ee=d.useState(`floatingId`);Qe(),se({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let te=o===void 0?ye(c.context.popupRef):o,S=g>0,C=c.useStateSetter(`popupElement`),ne=B(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:S},props:[f,{id:ee,"aria-labelledby":y,"aria-describedby":l,role:x,...A,hidden:!m,onKeyDown(e){je.has(e.key)&&e.stopPropagation()},style:{[$e]:g}},s],ref:[t,c.context.popupRef,C],stateAttributesMapping:tt});return(0,Z.jsx)(Ke,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:te,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:ne})}),rt=U.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,Z.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),it=U.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=$(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,Z.jsx)(Ze.Provider,{value:n,children:(0,Z.jsxs)(T,{ref:t,...r,children:[a&&o===!0&&(0,Z.jsx)(rt,{ref:i.context.internalBackdropRef,inert:Me(!s)}),e.children]})}):null}),at={},ot={},st=``;function ct(e,t){return ce(e)?e:t}function lt(e,t,n){return/hidden|clip/.test(e.getComputedStyle(ct(t,n)).overflowY)}function ut(e){if(typeof document>`u`)return!1;let t=w(e);return ie(t).innerWidth-t.documentElement.clientWidth>0}function dt(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=w(e),n=t.documentElement,r=t.body,i=ct(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function ft(e){let t=w(e),n=t.documentElement,r=t.body,i=ct(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function pt(e){let t=w(e),n=t.documentElement,r=t.body,i=ie(n),a=0,o=0,s=!1,c=p.create();if(oe&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,at={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},st=n.style.scrollBehavior,ot={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=ct(n,r);s=dt(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,at),Object.assign(r.style,ot),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=st)}function d(){u(),c.request(l)}l();let f=I(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var mt=new class{lockCount=0;restore=null;timeoutLock=ve.create();timeoutUnlock=ve.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=w(e),n=t.documentElement,r=t.body,i=ie(n);if(lt(i,n,r)){let t=new i.MutationObserver(()=>{lt(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=o||!ut(e);this.restore=a?ft(e):pt(e)}};function ht(e=!0,t=null){c(()=>{if(e)return mt.acquire(t)},[e,t])}function gt({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`mounted`),a=e.useState(`disablePointerDismissal`),o=e.useState(`modal`),s=e.useState(`popupElement`),l=e.useState(`floatingRootContext`),[u,d]=U.useState(0),[f,p]=U.useState(0),m=u===0,h=V(l,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:o===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=M(t);if(m&&!a){if(o){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||H(n,s)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:m});return ht(r&&o===!0,s),e.useContextCallback(`onNestedDialogOpen`,(t,n)=>{(e.select(`open`)||e.select(`mounted`))&&(d(t),p(n))}),c(()=>{!r&&!i&&(d(0),p(0))},[r,i]),c(()=>(t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(u+1,f+ +!!n),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,u,f,t]),z(e,{activeTriggerProps:h.reference,inactiveTriggerProps:h.trigger,popupProps:h.floating,nestedOpenDialogCount:u,nestedOpenDrawerCount:f}),null}var _t={...xe,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},vt=class extends Te{constructor(e,t,n){let r=new _e,i=yt(e,r,t,n);super(i,bt(r),_t)}setOpen=(e,t)=>{t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),!t.isCanceled&&(this.state.floatingRootContext.dispatchOpenChange(e,t),this.update(Oe(this.state,e,t.trigger)))}};function yt(e,t,n,r=!1){return{...Ee(t,n,r),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e}}function bt(e){return{popupRef:U.createRef(),backdropRef:U.createRef(),internalBackdropRef:U.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function xt(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:d,triggerId:f,defaultTriggerId:p=null}=t,m=e===`drawer`,h=e===`alert-dialog`,g=h?!0:c,_=h||s,v=h?`alertdialog`:`dialog`,y=$(!0),b={modal:g,disablePointerDismissal:_,nested:y!=null,role:v},x=be((e,t)=>new vt({open:i,openProp:r,activeTriggerId:p,triggerIdProp:f,...b},e,t),!0);x.useControlledProp(`openProp`,r),x.useControlledProp(`triggerIdProp`,f),x.useSyncedValues(b),x.useContextCallback(`onOpenChange`,a),x.useContextCallback(`onOpenChangeComplete`,o);let ee=x.useState(`open`),te=x.useState(`mounted`),S=x.useState(`payload`);F(x,ee),P(x);let{forceUnmount:C}=ge(ee,x);U.useImperativeHandle(l,()=>({unmount:C,close:()=>x.setOpen(!1,Ce(u))}),[C,x]);let ne=ee||te||d!=null;return(0,Z.jsxs)(qe.Provider,{value:x,children:[d&&(0,Z.jsx)(L,{handle:d,store:x}),ne&&(0,Z.jsx)(gt,{store:x,parentContext:y?.context,isDrawer:m}),typeof n==`function`?n({payload:S}):n]})}var St=h(function(e){return xt(`dialog`,e)}),Ct=U.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=$(),c=N(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),B(`h2`,e,{ref:t,props:[{id:c},o]})});export{rt as a,Ye as c,Ke as d,Pe as f,it as i,Je as l,St as n,nt as o,ht as r,Xe as s,Ct as t,$ as u};
@@ -0,0 +1 @@
1
+ import{a as e,c as t}from"./utils-CMsCvwYQ.js";import{Yi as n}from"./store-BGu0d2Ld.js";var r=t(e(),1),i=new Map([[`bold`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M222.14,69.17,186.83,33.86A19.86,19.86,0,0,0,172.69,28H48A20,20,0,0,0,28,48V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V83.31A19.86,19.86,0,0,0,222.14,69.17ZM164,204H92V160h72Zm40,0H188V156a20,20,0,0,0-20-20H88a20,20,0,0,0-20,20v48H52V52H171l33,33ZM164,84a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h56A12,12,0,0,1,164,84Z`}))],[`duotone`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216,83.31V208a8,8,0,0,1-8,8H176V152a8,8,0,0,0-8-8H88a8,8,0,0,0-8,8v64H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H172.69a8,8,0,0,1,5.65,2.34l35.32,35.32A8,8,0,0,1,216,83.31Z`,opacity:`0.2`}),r.createElement(`path`,{d:`M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z`}))],[`fill`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM208,208H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z`}))],[`light`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M217.9,73.42,182.58,38.1a13.9,13.9,0,0,0-9.89-4.1H48A14,14,0,0,0,34,48V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V83.31A13.9,13.9,0,0,0,217.9,73.42ZM170,210H86V152a2,2,0,0,1,2-2h80a2,2,0,0,1,2,2Zm40-2a2,2,0,0,1-2,2H182V152a14,14,0,0,0-14-14H88a14,14,0,0,0-14,14v58H48a2,2,0,0,1-2-2V48a2,2,0,0,1,2-2H172.69a2,2,0,0,1,1.41.58L209.42,81.9a2,2,0,0,1,.58,1.41ZM158,72a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h56A6,6,0,0,1,158,72Z`}))],[`regular`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z`}))],[`thin`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216.49,74.83,181.17,39.51A11.93,11.93,0,0,0,172.69,36H48A12,12,0,0,0,36,48V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V83.31A11.93,11.93,0,0,0,216.49,74.83ZM172,212H84V152a4,4,0,0,1,4-4h80a4,4,0,0,1,4,4Zm40-4a4,4,0,0,1-4,4H180V152a12,12,0,0,0-12-12H88a12,12,0,0,0-12,12v60H48a4,4,0,0,1-4-4V48a4,4,0,0,1,4-4H172.69a4,4,0,0,1,2.82,1.17l35.32,35.32A4,4,0,0,1,212,83.31ZM156,72a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h56A4,4,0,0,1,156,72Z`}))]]),a=r.forwardRef((e,t)=>r.createElement(n,{ref:t,...e,weights:i}));a.displayName=`FloppyDiskIcon`;export{a as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t}from"./utils-CMsCvwYQ.js";import{Yi as n}from"./store-BGu0d2Ld.js";var r=t(e(),1),i=new Map([[`bold`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,187a113.4,113.4,0,0,1-20.39-35h40.82a116.94,116.94,0,0,1-10,20.77A108.61,108.61,0,0,1,128,207Zm-26.49-59a135.42,135.42,0,0,1,0-40h53a135.42,135.42,0,0,1,0,40ZM44,128a83.49,83.49,0,0,1,2.43-20H77.25a160.63,160.63,0,0,0,0,40H46.43A83.49,83.49,0,0,1,44,128Zm84-79a113.4,113.4,0,0,1,20.39,35H107.59a116.94,116.94,0,0,1,10-20.77A108.61,108.61,0,0,1,128,49Zm50.73,59h30.82a83.52,83.52,0,0,1,0,40H178.75a160.63,160.63,0,0,0,0-40Zm20.77-24H173.71a140.82,140.82,0,0,0-15.5-34.36A84.51,84.51,0,0,1,199.52,84ZM97.79,49.64A140.82,140.82,0,0,0,82.29,84H56.48A84.51,84.51,0,0,1,97.79,49.64ZM56.48,172H82.29a140.82,140.82,0,0,0,15.5,34.36A84.51,84.51,0,0,1,56.48,172Zm101.73,34.36A140.82,140.82,0,0,0,173.71,172h25.81A84.51,84.51,0,0,1,158.21,206.36Z`}))],[`duotone`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),r.createElement(`path`,{d:`M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z`}))],[`fill`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm78.36,64H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM216,128a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM128,43a115.27,115.27,0,0,1,26,45H102A115.11,115.11,0,0,1,128,43ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48Zm50.35,61.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z`}))],[`light`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z`}))],[`regular`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z`}))],[`thin`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M128,28h0A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,190.61c-6.33-6.09-23-24.41-31.27-54.61h62.54C151,194.2,134.33,212.52,128,218.61ZM94.82,156a140.42,140.42,0,0,1,0-56h66.36a140.42,140.42,0,0,1,0,56ZM128,37.39c6.33,6.09,23,24.41,31.27,54.61H96.73C105,61.8,121.67,43.48,128,37.39ZM169.41,100h46.23a92.09,92.09,0,0,1,0,56H169.41a152.65,152.65,0,0,0,0-56Zm43.25-8h-45a129.39,129.39,0,0,0-29.19-55.4A92.25,92.25,0,0,1,212.66,92ZM117.54,36.6A129.39,129.39,0,0,0,88.35,92h-45A92.25,92.25,0,0,1,117.54,36.6ZM40.36,100H86.59a152.65,152.65,0,0,0,0,56H40.36a92.09,92.09,0,0,1,0-56Zm3,64h45a129.39,129.39,0,0,0,29.19,55.4A92.25,92.25,0,0,1,43.34,164Zm95.12,55.4A129.39,129.39,0,0,0,167.65,164h45A92.25,92.25,0,0,1,138.46,219.4Z`}))]]),a=r.forwardRef((e,t)=>r.createElement(n,{ref:t,...e,weights:i}));a.displayName=`GlobeIcon`;export{a as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t}from"./utils-CMsCvwYQ.js";import{Yi as n}from"./store-BGu0d2Ld.js";var r=t(e(),1),i=new Map([[`bold`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),r.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),a=r.forwardRef((e,t)=>r.createElement(n,{ref:t,...e,weights:i}));a.displayName=`MagnifyingGlassIcon`;export{a as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t}from"./utils-CMsCvwYQ.js";import{Yi as n}from"./store-BGu0d2Ld.js";function r({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function i(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var a=[],o=0,{link:s,unlink:c,propagate:l,checkDirty:u,shallowPropagate:d}=r({update(e){return e._update()},notify(e){a[p++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,_(e))}}),f=0,p=0,m,h=0;function g(e){try{++h,e()}finally{--h||v()}}function _(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=c(n,e)}function v(){if(!(h>0)){for(;f<p;){let e=a[f];a[f++]=void 0,e.notify()}f=0,p=0}}function y(e,t){let n=typeof e==`function`,r=e,a={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return m!==void 0&&s(a,m,o),a._snapshot},subscribe(e){let t=i(e),n={current:!1},r=b(()=>{a.get(),n.current?(m=void 0,t.next?.(a._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let i=m,s=t?.compare??Object.is;if(n)m=a,++o,a.depsTail=void 0;else if(e===void 0)return!1;n&&(a.flags=5);try{let t=a._snapshot,i=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!s(t,i)?(a._snapshot=i,!0):!1}finally{m=i,n&&(a.flags&=-5),_(a)}}};return n?(a.flags=17,a.get=function(){let e=a.flags;if(e&16||e&32&&u(a.deps,a)){if(a._update()){let e=a.subs;e!==void 0&&d(e)}}else e&32&&(a.flags=e&-33);return m!==void 0&&s(a,m,o),a._snapshot}):a.set=function(e){if(a._update(e)){let e=a.subs;e!==void 0&&(l(e),d(e),v())}},a}function b(e){let t=()=>{let t=m;m=n,++o,n.depsTail=void 0,n.flags=6;try{return e()}finally{m=t,n.flags&=-5,_(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&u(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,_(this)}};return t(),n}var x=t(e(),1),S=new Map([[`bold`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M234.49,111.07,90.41,22.94A20,20,0,0,0,60,39.87V216.13a20,20,0,0,0,30.41,16.93l144.08-88.13a19.82,19.82,0,0,0,0-33.86ZM84,208.85V47.15L216.16,128Z`}))],[`duotone`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M228.23,134.69,84.15,222.81A8,8,0,0,1,72,216.12V39.88a8,8,0,0,1,12.15-6.69l144.08,88.12A7.82,7.82,0,0,1,228.23,134.69Z`,opacity:`0.2`}),x.createElement(`path`,{d:`M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z`}))],[`fill`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M240,128a15.74,15.74,0,0,1-7.6,13.51L88.32,229.65a16,16,0,0,1-16.2.3A15.86,15.86,0,0,1,64,216.13V39.87a15.86,15.86,0,0,1,8.12-13.82,16,16,0,0,1,16.2.3L232.4,114.49A15.74,15.74,0,0,1,240,128Z`}))],[`light`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M231.36,116.19,87.28,28.06a14,14,0,0,0-14.18-.27A13.69,13.69,0,0,0,66,39.87V216.13a13.69,13.69,0,0,0,7.1,12.08,14,14,0,0,0,14.18-.27l144.08-88.13a13.82,13.82,0,0,0,0-23.62Zm-6.26,13.38L81,217.7a2,2,0,0,1-2.06,0,1.78,1.78,0,0,1-1-1.61V39.87a1.78,1.78,0,0,1,1-1.61A2.06,2.06,0,0,1,80,38a2,2,0,0,1,1,.31L225.1,126.43a1.82,1.82,0,0,1,0,3.14Z`}))],[`regular`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M232.4,114.49,88.32,26.35a16,16,0,0,0-16.2-.3A15.86,15.86,0,0,0,64,39.87V216.13A15.94,15.94,0,0,0,80,232a16.07,16.07,0,0,0,8.36-2.35L232.4,141.51a15.81,15.81,0,0,0,0-27ZM80,215.94V40l143.83,88Z`}))],[`thin`,x.createElement(x.Fragment,null,x.createElement(`path`,{d:`M230.32,117.9,86.24,29.79a11.91,11.91,0,0,0-12.17-.23A11.71,11.71,0,0,0,68,39.89V216.11a11.71,11.71,0,0,0,6.07,10.33,11.91,11.91,0,0,0,12.17-.23L230.32,138.1a11.82,11.82,0,0,0,0-20.2Zm-4.18,13.37L82.06,219.39a4,4,0,0,1-4.07.07,3.77,3.77,0,0,1-2-3.35V39.89a3.77,3.77,0,0,1,2-3.35,4,4,0,0,1,4.07.07l144.08,88.12a3.8,3.8,0,0,1,0,6.54Z`}))]]),C=x.forwardRef((e,t)=>x.createElement(n,{ref:t,...e,weights:S}));C.displayName=`PlayIcon`;export{i,g as n,y as r,C as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t}from"./utils-CMsCvwYQ.js";import{Yi as n}from"./store-BGu0d2Ld.js";var r=t(e(),1),i=new Map([[`bold`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M240.49,63.51a12,12,0,0,0-17,0L192,95,161,64l31.52-31.51a12,12,0,0,0-17-17L144,47,120.49,23.51a12,12,0,1,0-17,17L107,44,56.89,94.14a44,44,0,0,0,0,62.23l12.88,12.88L23.51,215.51a12,12,0,0,0,17,17l46.26-46.26,12.88,12.88a44,44,0,0,0,62.23,0L212,149l3.51,3.52a12,12,0,0,0,17-17L209,112l31.52-31.51A12,12,0,0,0,240.49,63.51Zm-95.6,118.63a20,20,0,0,1-28.29,0L73.86,139.4a20,20,0,0,1,0-28.29L124,61l71,71Z`}))],[`duotone`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M212,132l-58.63,58.63a32,32,0,0,1-45.25,0L65.37,147.88a32,32,0,0,1,0-45.25L124,44Z`,opacity:`0.2`}),r.createElement(`path`,{d:`M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z`}))],[`fill`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M237.66,77.66,203.31,112l26.35,26.34a8,8,0,0,1-11.32,11.32L212,143.31l-53,53a40,40,0,0,1-56.57,0L86.75,180.57,37.66,229.66a8,8,0,0,1-11.32-11.32l49.09-49.09L59.72,153.54a40,40,0,0,1,0-56.57l53-53-6.35-6.34a8,8,0,0,1,11.32-11.32L144,52.69l34.34-34.35a8,8,0,1,1,11.32,11.32L155.31,64,192,100.69l34.34-34.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M236.24,67.76a6,6,0,0,0-8.48,0L192,103.51,152.49,64l35.75-35.76a6,6,0,0,0-8.48-8.48L144,55.51,116.24,27.76a6,6,0,1,0-8.48,8.48L115.51,44,61.13,98.38a38,38,0,0,0,0,53.75l17.13,17.12-50.5,50.51a6,6,0,1,0,8.48,8.48l50.51-50.5,17.13,17.13a38,38,0,0,0,53.74,0L212,140.49l7.76,7.75a6,6,0,0,0,8.48-8.48L200.49,112l35.75-35.76A6,6,0,0,0,236.24,67.76ZM149.13,186.38a26,26,0,0,1-36.77,0L69.62,143.64a26,26,0,0,1,0-36.77L124,52.49,203.51,132Z`}))],[`regular`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M237.66,66.34a8,8,0,0,0-11.32,0L192,100.69,155.31,64l34.35-34.34a8,8,0,1,0-11.32-11.32L144,52.69,117.66,26.34a8,8,0,0,0-11.32,11.32L112.69,44l-53,53a40,40,0,0,0,0,56.57l15.71,15.71L26.34,218.34a8,8,0,0,0,11.32,11.32l49.09-49.09,15.71,15.71a40,40,0,0,0,56.57,0l53-53,6.34,6.35a8,8,0,0,0,11.32-11.32L203.31,112l34.35-34.34A8,8,0,0,0,237.66,66.34ZM147.72,185a24,24,0,0,1-33.95,0L71,142.23a24,24,0,0,1,0-33.95l53-53L200.69,132Z`}))],[`thin`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M234.83,69.17a4,4,0,0,0-5.66,0L192,106.34,149.66,64l37.17-37.17a4,4,0,1,0-5.66-5.66L144,58.34,114.83,29.17a4,4,0,0,0-5.66,5.66L118.34,44,62.54,99.8a36.05,36.05,0,0,0,0,50.91l18.55,18.54L29.17,221.17a4,4,0,0,0,5.66,5.66l51.92-51.92,18.54,18.55a36.06,36.06,0,0,0,50.91,0l55.8-55.8,9.17,9.17a4,4,0,0,0,5.66-5.66L197.66,112l37.17-37.17A4,4,0,0,0,234.83,69.17ZM150.54,187.8a28,28,0,0,1-39.59,0L68.2,145.05a28,28,0,0,1,0-39.59L124,49.66,206.34,132Z`}))]]),a=r.forwardRef((e,t)=>r.createElement(n,{ref:t,...e,weights:i}));a.displayName=`PlugIcon`;export{a as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t}from"./utils-CMsCvwYQ.js";import{Yi as n}from"./store-BGu0d2Ld.js";var r=t(e(),1),i=new Map([[`bold`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z`}))],[`duotone`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),r.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`fill`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z`}))],[`light`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z`}))],[`regular`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`thin`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z`}))]]),a=r.forwardRef((e,t)=>r.createElement(n,{ref:t,...e,weights:i}));a.displayName=`PlusIcon`;export{a as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t}from"./utils-CMsCvwYQ.js";import{pi as n}from"./store-BGu0d2Ld.js";var r=t(e(),1).forwardRef(function(e,t){let{className:r,render:i,orientation:a=`horizontal`,style:o,...s}=e;return n(`div`,e,{state:{orientation:a},ref:t,props:[{role:`separator`,"aria-orientation":a},s]})});export{r as t};
@@ -0,0 +1 @@
1
+ import{a as e,c as t}from"./utils-CMsCvwYQ.js";import{Yi as n}from"./store-BGu0d2Ld.js";var r=t(e(),1),i=new Map([[`bold`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),r.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,r.createElement(r.Fragment,null,r.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),a=r.forwardRef((e,t)=>r.createElement(n,{ref:t,...e,weights:i}));a.displayName=`XIcon`;export{a as t};
@@ -0,0 +1 @@
1
+ import{i as e}from"./utils-CMsCvwYQ.js";import{s as t}from"./kit-BsK6VZTQ.js";import{u as n}from"./index-Bn3XeKy8.js";var r=e(),i=()=>(0,r.jsxs)(t,{variant:`destructive`,children:[`No run `,n.useParams().id,`.`]});export{i as notFoundComponent};
@@ -0,0 +1 @@
1
+ import{i as e}from"./utils-CMsCvwYQ.js";import{s as t}from"./kit-BsK6VZTQ.js";import{t as n}from"./index-Bn3XeKy8.js";var r=e(),i=()=>(0,r.jsxs)(t,{variant:`destructive`,children:[`No run `,n.useParams().id,`.`]});export{i as notFoundComponent};
@@ -0,0 +1 @@
1
+ import{i as e}from"./utils-CMsCvwYQ.js";import{s as t}from"./kit-BsK6VZTQ.js";import{B as n}from"./index-Bn3XeKy8.js";var r=e(),i=()=>(0,r.jsxs)(t,{variant:`destructive`,children:[`No change `,n.useParams().id,`.`]});export{i as notFoundComponent};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,i as n}from"./utils-CMsCvwYQ.js";import{Fa as r,Qi as i,So as a,is as o,on as s,qt as c}from"./store-BGu0d2Ld.js";import{G as l,N as u,s as d}from"./common-Dw2i6XKZ.js";import{R as f,m as p,s as m,t as h}from"./kit-BsK6VZTQ.js";import{t as g}from"./Play.es-BwXalGBh.js";import{t as _}from"./index-Bn3XeKy8.js";import{t as v}from"./workflow-view-DP-UlRiH.js";var y=t(e()),b=n();function x(){let{id:e}=_.useParams(),{data:t,error:n,dataUpdatedAt:x}=i(c(e)),{run:S,ledger:C}=t,w=s(S.workflow),T=C.at(-1),E=T?.type===`sleep.started`&&T.until<=x?T.until:0,D=(0,y.useMemo)(()=>({...t,at:E}),[t,E]),O=S.workflow===`change`?a(S.runId):void 0;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(d,{action:O===void 0?w&&(0,b.jsx)(h,{size:`sm`,children:(0,b.jsxs)(o,{to:`/workflows/$name`,params:{name:S.workflow},search:{new:!0},children:[(0,b.jsx)(g,{"aria-hidden":`true`,"data-icon":`inline-start`}),`New run`]})}):(0,b.jsx)(h,{size:`sm`,children:(0,b.jsx)(o,{to:`/changes/$id`,params:{id:O},children:`Review`})}),children:[(0,b.jsx)(p,{id:`run-status`,dot:!0,tone:f[S.status],children:S.status}),S.sandbox!==void 0&&(0,b.jsx)(u,{name:S.sandbox}),(0,b.jsxs)(`span`,{className:`text-muted-foreground`,children:[r(S),` · `,(0,b.jsx)(l,{at:S.createdAt})]})]}),n&&(0,b.jsxs)(m,{variant:`destructive`,children:[`Could not refresh: `,n.message]}),(0,b.jsx)(v,{name:S.workflow,workflow:w,run:D},S.runId)]})}export{x as component};
@@ -0,0 +1,2 @@
1
+ import{a as e,c as t,i as n,n as r,t as i}from"./utils-CMsCvwYQ.js";import{Ba as a,Fa as o,Ha as s,Ja as c,Kt as l,Pa as u,Qa as d,Qi as f,Ua as p,Va as ee,Ws as m,hn as h,is as g,mt as _,pt as te,so as v,st as y,ui as b,za as x,zt as S}from"./store-BGu0d2Ld.js";import{G as C,P as w,St as T,bt as E,g as D,o as O,p as ne,s as re,xt as ie}from"./common-Dw2i6XKZ.js";import{G as ae,I as oe,K as k,N as A,U as j,V as M,a as N,i as P,l as F,m as I,n as L,r as R,s as z}from"./kit-BsK6VZTQ.js";import{B}from"./index-Bn3XeKy8.js";import{a as V,c as H,l as U,n as W,o as G,r as K,s as q}from"./change-glance-DbYcBT7H.js";import{a as J,n as se,o as ce,r as le,s as ue,t as de}from"./grid-diff-SMsvea6t.js";import{r as Y,t as fe}from"./approval-DpgmTc63.js";import{n as pe}from"./permissions-grid-B2GtGwzv.js";var X=n();function me({change:e,verbs:t=Y}){let{state:n}=e,r={...e,workflow:v},a=e.approvals.find(e=>e.status===`pending`&&e.covers.includes(`sanoma.change.merge`));return(0,X.jsxs)(N,{role:`region`,"aria-label":`Publish`,className:i(ne,`order-first`),children:[(0,X.jsx)(k,{className:`border-b`,children:(0,X.jsx)(L,{children:`Publish`})}),(0,X.jsxs)(j,{className:`flex min-h-0 flex-1 flex-col gap-3 overflow-y-auto`,children:[(0,X.jsx)(he,{state:n}),(0,X.jsxs)(P,{children:[(0,X.jsx)(R,{label:`Checks`,children:n.check?n.check.ok?`pass`:(0,X.jsx)(`ul`,{className:`flex flex-col gap-1`,children:n.check.problems.map((e,t)=>(0,X.jsx)(`li`,{children:(0,X.jsx)(`code`,{className:`text-xs`,children:e})},t))}):(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:`not run yet`})}),(0,X.jsx)(R,{label:`Card`,children:n.card.reason}),n.merged&&(0,X.jsx)(ge,{merged:n.merged})]})]}),a&&(0,X.jsxs)(ae,{className:`flex-wrap gap-2`,children:[(0,X.jsx)(fe,{run:r,approval:a,verbs:t}),(0,X.jsxs)(`p`,{className:`w-full text-sm text-muted-foreground`,children:[t===Y?`Rejecting`:`Choosing ${t.reject}`,` closes the change.`]})]})]})}function he({state:e}){let{decision:t}=e,n;n=e.phase===`merged`?`Published`:e.phase===`closed`?e.closedBy?`Closed by ${e.closedBy}`:`Closed`:t?.answer===`deny`?`Refused: ${t.reason??`the policy denies it`}`:e.phase===`blocked`?`Blocked: ${e.blocked??`it waits for a new commit`}`:t?t.answer===`hold`?`Publish waits for ${K(t.approver)}`:t.approver?`Allowed: Publish is for ${K(t.approver)}`:`Allowed`:`The policy has not been asked yet`;let r=q(e)?void 0:U(t);return(0,X.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,X.jsx)(`p`,{className:`font-medium`,children:n}),r&&(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:r})]})}function ge({merged:e}){let{deploy:t,verified:n}=e,r=t?.follow;return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(R,{label:`Merged`,children:[(0,X.jsx)(O,{sha:e.sha}),`, `,(0,X.jsx)(C,{at:e.at})]}),r&&(0,X.jsx)(R,{label:`This computer`,children:`revision`in r?(0,X.jsxs)(X.Fragment,{children:[`follows main at `,(0,X.jsx)(O,{sha:r.revision})]}):`skipped`in r?`did not follow main: ${r.skipped}`:`could not follow main: ${r.error}`}),t?.apply&&(0,X.jsxs)(R,{label:`Deploy`,children:[(0,X.jsx)(g,{...l({runId:t.apply.runId,workflow:`apply`}),children:`the hosts' apply`}),t.apply.error?`: ${t.apply.error}`:``]}),n&&(0,X.jsxs)(R,{label:`Verified`,children:[(0,X.jsx)(g,{...l({runId:n.runId,workflow:`drift`}),children:`drift`}),n.error?`: ${n.error}`:n.drifted.length>0?`: not as declared: ${n.drifted.join(`, `)}`:`: as declared`]})]})}var Z=t(e(),1),_e={approve:`Approve and apply`,reject:`Send back`};function Q({title:e,detail:t,tone:n,said:r,children:a}){return(0,X.jsxs)(M,{size:`sm`,"aria-label":e,role:`region`,className:i(n===`waiting`&&`ring-tone-waiting-foreground/40`),children:[(0,X.jsxs)(k,{className:`flex flex-wrap items-center gap-x-2.5`,children:[(0,X.jsx)(L,{children:e}),t&&(0,X.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:t}),(0,X.jsx)(`span`,{className:`ml-auto`,children:(0,X.jsx)(I,{tone:n,children:r})})]}),(0,X.jsx)(j,{className:`flex flex-col gap-3 text-sm`,children:a})]})}function ve({keyField:e,field:t,change:n}){let[i,a]=(0,Z.useState)(n.kind===`retype`?n.decision:void 0),{count:o,sample:s}=n.wontConvert,c=[[`clear-unconvertible`,`Convert the rest and leave these ${o} empty`],[`keep-text`,`Keep ${t} as text while someone fixes them in the grid`]];return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(`div`,{className:`overflow-auto rounded-lg border`,children:[(0,X.jsxs)(`table`,{"aria-label":`Records that can't convert`,className:`w-full text-sm`,children:[(0,X.jsx)(`thead`,{children:(0,X.jsxs)(`tr`,{className:`border-b text-left text-muted-foreground`,children:[(0,X.jsx)(`th`,{scope:`col`,className:`px-3 py-1.5 font-medium`,children:e}),(0,X.jsxs)(`th`,{scope:`col`,className:`px-3 py-1.5 font-medium`,children:[t,` now`]})]})}),(0,X.jsx)(`tbody`,{children:s.map(({key:e,value:t})=>(0,X.jsxs)(`tr`,{className:`border-b last:border-0`,children:[(0,X.jsx)(`td`,{className:`px-3 py-1.5 font-medium`,children:e}),(0,X.jsx)(`td`,{className:`px-3 py-1.5`,children:typeof t==`string`?t:JSON.stringify(t)})]},e))})]}),o>s.length&&(0,X.jsxs)(`p`,{className:`border-t px-3 py-1.5 text-xs text-muted-foreground`,children:[`and `,r(o-s.length,`record`),` more`]})]}),(0,X.jsxs)(`fieldset`,{className:`flex flex-col gap-2`,children:[(0,X.jsxs)(`legend`,{className:`mb-2 font-medium`,children:[`What should happen to these `,o,`?`]}),c.map(([e,n])=>(0,X.jsxs)(`label`,{className:`flex items-center gap-2`,children:[(0,X.jsx)(`input`,{type:`radio`,name:`unconverted-${t}`,value:e,checked:i===e,onChange:()=>a(e)}),n]},e))]}),(0,X.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Your choice isn't sent yet: it goes with Approve and apply once the table change lands. Until then these keep the text they hold.`})]})}function ye({change:e,plan:t,keyField:n}){let i=ee(t);switch(e.kind){case`add`:{let t=e.required&&e.empty>0;return(0,X.jsx)(Q,{title:`Add ${e.field}`,detail:d(e.type),tone:t?`waiting`:`ok`,said:t?`Needs values`:`Safe`,children:(0,X.jsxs)(`p`,{children:[i,` show it empty.`,t&&` It is required: each needs a value before it saves again.`]})})}case`rename`:{let n=!t.sql.length&&t.rows>0;return(0,X.jsx)(Q,{title:`Rename ${e.from} to ${e.to}`,tone:n?`waiting`:`ok`,said:n?`Needs the data moved`:`Safe`,children:(0,X.jsx)(`p`,{children:c(t,e)})})}case`retype`:case`convert`:{let i=e.kind===`retype`?e.to:e.type,a=e.kind===`retype`?`Change ${e.field} from ${d(e.from)} to ${d(i)}`:`Make ${e.key} of ${e.field} a column, ${d(i)}`,o=e.wontConvert.count;return o===0?(0,X.jsx)(Q,{title:a,tone:`ok`,said:`Safe`,children:(0,X.jsx)(`p`,{children:`Every value converts.`})}):(0,X.jsxs)(Q,{title:a,tone:`waiting`,said:`Needs a decision`,children:[(0,X.jsxs)(`p`,{children:[r(t.rows-o,`record`),` convert. `,o,` can't, because what's in them isn't `,d(i),`.`]}),(0,X.jsx)(ve,{keyField:n,field:e.kind===`retype`?e.field:e.key,change:e})]})}case`require`:return(0,X.jsx)(Q,{title:`Make ${e.field} required`,tone:e.empty?`waiting`:`ok`,said:e.empty?`Needs values`:`Safe`,children:(0,X.jsx)(`p`,{children:e.empty?`${r(e.empty,`record`)} have it empty: each needs a value before it saves again.`:`Every record has it.`})});case`delete`:return(0,X.jsx)(Q,{title:`Remove ${e.field}`,tone:`ok`,said:`Keeps the data`,children:(0,X.jsxs)(`p`,{children:[`It leaves the grid and the forms.`,` `,e.filled===0?`No record has a value in it.`:`The values in ${r(e.filled,`record`)} are kept.`]})});case`link`:return(0,X.jsx)(Q,{title:`Link ${e.field} to ${e.to}`,tone:e.unmatched?`waiting`:`ok`,said:e.unmatched?`Needs a decision`:`Safe`,children:(0,X.jsx)(`p`,{children:e.unmatched?`${r(e.unmatched,`record`)} to match against ${e.to}'s records.`:`${i} match.`})})}}function be({change:e,plan:t,collection:n}){let[a,o]=(0,Z.useState)(!1),c=n?.key??`key`,l=t.changes.length>1;return(0,X.jsxs)(`section`,{"aria-label":`The table change`,className:`flex flex-col gap-3`,children:[e.status===`failed`&&!e.state.merged&&(0,X.jsxs)(M,{size:`sm`,role:`status`,"aria-label":`Couldn't apply this change`,className:`ring-tone-bad-foreground/40`,children:[(0,X.jsxs)(k,{className:`flex flex-wrap items-center gap-x-2.5`,children:[(0,X.jsx)(L,{children:`Couldn't apply this change`}),(0,X.jsx)(I,{tone:`waiting`,children:`Nothing changed`})]}),(0,X.jsxs)(j,{className:`text-sm`,children:[`Your records and columns are exactly as they were.`,` `,(0,X.jsx)(g,{to:`/runs/$id`,params:{id:e.runId},className:`underline underline-offset-4`,children:`See what went wrong`})]})]}),(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[r(t.changes.length,`change`),` to `,t.collection,` · `,r(t.rows,`record`),l&&`. They apply together: either every one lands, or none does.`]}),p(t)&&(0,X.jsx)(`p`,{role:`note`,className:`rounded-lg border px-3 py-2 text-sm text-muted-foreground`,children:`Until real tables land, this changes resources/data.ts only: each record keeps what it holds, and one the new declaration no longer fits shows as needs fixing.`}),t.changes.map((e,n)=>(0,X.jsx)(ye,{change:e,plan:t,keyField:c},n)),(0,X.jsxs)(M,{size:`sm`,role:`region`,"aria-label":`Try it first`,children:[(0,X.jsx)(k,{children:(0,X.jsx)(L,{children:`Try it first`})}),(0,X.jsxs)(j,{className:`flex flex-col items-start gap-2.5 text-sm`,children:[(0,X.jsxs)(`p`,{children:[`Open a copy of `,t.collection,` with this change applied. Your real records aren't touched.`]}),(0,X.jsx)(b,{variant:`outline`,disabled:!0,title:`Copies arrive with previews`,children:`Try on a copy`})]})]}),(0,X.jsxs)(E,{open:a,onOpenChange:o,render:(0,X.jsx)(M,{size:`sm`,role:`region`,"aria-label":`The details`}),children:[(0,X.jsxs)(k,{className:`flex flex-wrap items-center gap-x-2.5`,children:[(0,X.jsx)(L,{children:`The details`}),(0,X.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`Only if you want them`}),(0,X.jsx)(T,{render:(0,X.jsx)(b,{variant:`ghost`,size:`sm`,className:`ml-auto`}),children:a?`Hide`:`Show`})]}),(0,X.jsx)(ie,{render:(0,X.jsx)(j,{}),children:(0,X.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[n&&(0,X.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,X.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`The company's file · `,(0,X.jsx)(`code`,{children:n.declared?.file??`resources/data.ts`})]}),(0,X.jsx)(`pre`,{className:`overflow-auto rounded-lg border bg-muted/40 px-3 py-2 text-xs leading-relaxed`,children:s(n.fields,t.changes).map((e,t)=>(0,X.jsx)(`span`,{className:i(`block`,e.sign===`+`?`bg-tone-ok/15`:`bg-tone-bad/15`),children:`${e.sign} ${e.text}`},t))})]}),(0,X.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,X.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`What runs on the database`}),t.sql.length?(0,X.jsx)(`pre`,{className:`overflow-auto rounded-lg border bg-muted/40 px-3 py-2 text-xs leading-relaxed`,children:t.sql.join(`
2
+ `)}):(0,X.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[x,`.`]})]})]})})]})]})}function xe({before:e,after:t}){let n=(0,Z.useMemo)(()=>J(e,t),[e,t]),[r,i]=(0,Z.useState)(!1),a=r?n:ue(n),o=ce(n),s=a.workflows.length===0&&a.ops.length===0;return(0,X.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,X.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:o.length>0?o.join(` · `):`No one's answers change`}),(0,X.jsx)(b,{variant:`ghost`,size:`sm`,"aria-pressed":r,onClick:()=>i(!r),children:r?`Hide unchanged rows`:`Show unchanged rows`})]}),!s&&(0,X.jsx)(M,{className:`gap-0 py-0`,children:(0,X.jsx)(pe,{groups:a.groups.map(e=>e.group),workflows:a.workflows,ops:a.ops,cell:(e,t)=>(0,X.jsx)(Se,{cell:e.cells[t]}),linkRow:e=>e.status!==`added`&&e.status!==`removed`})})]})}function Se({cell:e}){let t=e.after??e.before;return t?e.change===`same`?(0,X.jsx)(`span`,{className:`text-muted-foreground`,children:de(t)}):(0,X.jsx)(I,{tone:oe[e.change],"aria-label":se(e),children:le(e)}):null}function Ce(){let{id:e}=B.useParams(),{data:t,error:n}=f(y(e));if(!t)throw m();let{state:r}=t,i=a.safeParse(r.plan).data,{data:s}=f(_());return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsxs)(re,{children:[(0,X.jsx)(I,{dot:!0,tone:A[r.phase],children:H(r)}),(0,X.jsxs)(`span`,{className:`text-muted-foreground`,children:[r.branch&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(`code`,{children:r.branch}),r.head&&(0,X.jsxs)(X.Fragment,{children:[` `,`at `,(0,X.jsx)(O,{sha:r.head})]}),` `,`·`,` `]}),r.pullRequest&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(W,{pullRequest:r.pullRequest}),` ·`,` `]}),`opened by `,o(t),` · `,(0,X.jsx)(C,{at:t.createdAt}),` ·`,` `,(0,X.jsx)(g,{...l({runId:t.runId,workflow:v}),children:u(t.runId)})]})]}),n&&(0,X.jsxs)(z,{variant:`destructive`,children:[`Could not refresh: `,n.message]}),(0,X.jsx)(D,{float:(0,X.jsx)(me,{change:t,...i&&{verbs:_e}}),children:(0,X.jsxs)(`div`,{className:`flex flex-col gap-(--gap-region) p-4`,children:[(0,X.jsx)($,{change:t}),(0,X.jsx)(Te,{change:t}),i&&(0,X.jsx)(be,{change:t,plan:i,collection:te(i.collection)(s)}),(0,X.jsx)(Ee,{change:t}),(0,X.jsx)(De,{change:t})]})})]})}function $({change:{state:e}}){let{decision:t}=e;if(q(e))return null;if(t?.answer===`deny`){let e=U(t);return(0,X.jsxs)(z,{variant:`destructive`,children:[e?`${e}: `:``,t.reason??`the policy refuses this change`]})}return e.phase===`blocked`&&e.blocked?(0,X.jsxs)(z,{variant:`destructive`,children:[`This change cannot publish now: `,e.blocked]}):null}var we=new Intl.ListFormat(`en`,{type:`conjunction`});function Te({change:e}){let{data:t}=f({..._(),select:h}),n=e.state.facts?.stranded??[];if(n.length===0||q(e.state))return null;let i=we.format(e.edits.map(e=>t[e]??e)),a=n.length===1;return(0,X.jsxs)(z,{children:[r(n.length,`run`),` of`,` `,i?`${i}, which this change edits,`:`the workflows this change edits`,` `,a?`is`:`are`,` waiting: publishing cannot move `,a?`it`:`them`,` to the new version.`,` `,n.map((e,t)=>(0,X.jsxs)(`span`,{children:[t>0&&`, `,(0,X.jsx)(g,{to:`/runs/$id`,params:{id:e},children:u(e)})]},e))]})}function Ee({change:{state:e}}){let t=G(V(e.facts));return(0,X.jsx)(F,{title:`What changed`,children:e.facts?t.map(({key:e,title:t,files:n})=>(0,X.jsx)(w,{title:t,children:(0,X.jsx)(`ul`,{className:`flex flex-col gap-1`,children:n.map(e=>(0,X.jsx)(`li`,{children:(0,X.jsx)(`code`,{className:`text-xs`,children:e})},e))})},e)):(0,X.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Sanoma has not read the change yet.`})})}function De({change:{state:e}}){let{data:t}=f(S()),n=e.check?.grid;return n&&J(t,n).changed?(0,X.jsx)(F,{title:`Who may do what`,children:(0,X.jsx)(xe,{before:t,after:n})}):!n&&e.facts?.rules?(0,X.jsx)(F,{title:`Who may do what`,children:(0,X.jsxs)(z,{variant:`destructive`,children:[`The branch's Permissions grid could not be computed`,e.check?.problems.length?`: ${e.check.problems.join(`; `)}`:``,`.`]})}):null}export{Ce as component};
@@ -0,0 +1 @@
1
+ import{a as e,c as t,i as n,n as r}from"./utils-CMsCvwYQ.js";import{It as i,Qi as a,Qt as o,Ws as s,is as c,jt as l,mt as u}from"./store-BGu0d2Ld.js";import{O as d,R as f,f as p,n as m,s as h,x as g}from"./common-Dw2i6XKZ.js";import{V as _,q as v}from"./kit-BsK6VZTQ.js";import{a as y,i as b,n as x,o as S,r as C,t as w}from"./table-DjbI5VTn.js";import{H as T}from"./index-Bn3XeKy8.js";import{n as E}from"./apps-71ZEzcL9.js";import{t as D}from"./chat-button-BgpOfYh1.js";var O=t(e()),k=n(),A=e=>t=>{let n=t.apps.find(t=>t.name===e);if(!n)return;let r=t.policy.files.filter(({file:e})=>e.startsWith(`${n.dir}/policies/`)).map(({file:e,text:t})=>({file:e,rules:t.match(/^\s*(?:permit|forbid)\s*\(/gm)?.length??0,reasons:[...t.matchAll(/@reason\("((?:[^"\\]|\\.)*)"\)/g)].map(([,e])=>e)}));return{app:n,sites:t.sites.filter(t=>t.app===e),collections:t.collections.filter(t=>t.app===e),workflows:t.workflows.filter(t=>t.app===e),policies:r,ops:i(t)}},j=e=>{let t=t=>t.startsWith(`${e}/`);return({scenarios:e,errors:n})=>({files:[...Map.groupBy(e.filter(e=>t(e.file)),e=>e.file)].map(([e,t])=>({file:e,count:t.length,workflows:[...new Set(t.map(e=>e.workflow))]})),errors:n.filter(e=>t(e.file))})};function M(){let{name:e}=T.useParams(),t=(0,O.useMemo)(()=>A(e),[e]),{data:n}=a({...u(),select:t});if(!n)throw s();let{app:i}=n;return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(h,{action:i.source&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(p,{href:i.source,children:`Source`}),(0,k.jsx)(D,{prompt:E(i.name),children:`Update`})]}),children:i.source&&(0,k.jsx)(m,{folder:i.name})}),(0,k.jsx)(N,{app:i}),(0,k.jsxs)(_,{className:`gap-0 py-0`,children:[(0,k.jsx)(P,{title:`Sites`,note:`${n.sites.length} · in the bar`,children:n.sites.length>0&&(0,k.jsxs)(w,{children:[(0,k.jsx)(y,{children:(0,k.jsxs)(S,{children:[(0,k.jsx)(b,{children:`Site`}),(0,k.jsx)(b,{children:`Pages`}),(0,k.jsx)(b,{children:`Calls`}),(0,k.jsx)(b,{className:`text-right`,children:`Seen by`})]})}),(0,k.jsx)(x,{children:n.sites.map(e=>(0,k.jsxs)(S,{children:[(0,k.jsx)(C,{className:`font-medium`,children:(0,k.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,k.jsx)(f,{site:e}),(0,k.jsxs)(`code`,{className:`text-xs font-normal text-muted-foreground`,children:[`/sites/`,e.name]})]})}),(0,k.jsx)(C,{className:`text-muted-foreground`,children:r(e.pages.length,`page`)}),(0,k.jsx)(C,{className:`whitespace-normal`,children:(0,k.jsx)(I,{items:[...new Set(e.calls.map(e=>e.target))]})}),(0,k.jsx)(C,{className:`text-right`,children:e.public?(0,k.jsx)(v,{variant:`secondary`,children:`Visitors`}):(0,k.jsx)(`span`,{className:`text-muted-foreground`,children:`People in the app`})})]},e.name))})]})}),(0,k.jsx)(P,{title:`Collections`,note:`${n.collections.length} · on Data`,children:n.collections.length>0&&(0,k.jsxs)(w,{children:[(0,k.jsx)(y,{children:(0,k.jsxs)(S,{children:[(0,k.jsx)(b,{children:`Collection`}),(0,k.jsx)(b,{children:`Key`}),(0,k.jsx)(b,{children:`Fields`})]})}),(0,k.jsx)(x,{children:n.collections.map(({name:e,title:t,key:n,fields:r})=>(0,k.jsxs)(S,{children:[(0,k.jsx)(C,{className:`font-medium`,children:(0,k.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,k.jsx)(c,{to:`/data/$name`,params:{name:e},children:t??e}),(0,k.jsxs)(`code`,{className:`text-xs font-normal text-muted-foreground`,children:[`data.`,e]})]})}),(0,k.jsx)(C,{children:(0,k.jsx)(`code`,{children:n})}),(0,k.jsx)(C,{className:`whitespace-normal text-muted-foreground`,children:Object.keys(r).join(`, `)})]},e))})]})}),(0,k.jsx)(P,{title:`Workflows`,note:`${n.workflows.length} · on Workflows`,children:n.workflows.length>0&&(0,k.jsx)(L,{workflows:n.workflows,ops:n.ops})}),(0,k.jsx)(P,{title:`Policies`,note:`${r(n.policies.length,`file`)} · on Permissions`,children:n.policies.length>0&&(0,k.jsxs)(w,{children:[(0,k.jsx)(y,{children:(0,k.jsxs)(S,{children:[(0,k.jsx)(b,{children:`File`}),(0,k.jsx)(b,{children:`Rules`}),(0,k.jsx)(b,{children:`Why`}),(0,k.jsx)(b,{className:`text-right`,children:(0,k.jsx)(`span`,{className:`sr-only`,children:`Open`})})]})}),(0,k.jsx)(x,{children:n.policies.map(({file:e,rules:t,reasons:n})=>(0,k.jsxs)(S,{children:[(0,k.jsx)(C,{children:(0,k.jsx)(`code`,{className:`text-xs`,children:e})}),(0,k.jsx)(C,{className:`text-muted-foreground`,children:r(t,`rule`)}),(0,k.jsx)(C,{className:`whitespace-normal`,children:n.join(`; `)||`-`}),(0,k.jsx)(C,{className:`text-right`,children:(0,k.jsx)(c,{to:`/permissions`,children:`See the grid`})})]},e))})]})}),(0,k.jsx)(P,{title:`Scenarios`,note:`run by sanoma check`,children:(0,k.jsx)(R,{dir:i.dir})})]}),(0,k.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`People are never inside an app: its folder declares collections, workflows, policies and sites, and the company's people stay at the root, on People.`})]})}function N({app:e}){return(0,k.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[e.source?(0,k.jsxs)(k.Fragment,{children:[`Taken from `,(0,k.jsx)(p,{href:e.source,children:e.source}),` into `,(0,k.jsxs)(`code`,{children:[e.dir,`/`]}),`.`]}):(0,k.jsxs)(k.Fragment,{children:[`The company's own app, in `,(0,k.jsxs)(`code`,{children:[e.dir,`/`]}),`.`]}),` `,`Everything below lives in that folder and is named `,(0,k.jsxs)(`code`,{children:[e.name,`.`]}),`…`]})}function P({title:e,note:t,children:n}){return(0,k.jsxs)(`section`,{"aria-label":e,className:`flex flex-col border-b last:border-b-0`,children:[(0,k.jsxs)(`div`,{className:`flex items-baseline gap-2 px-4 pt-3 pb-1`,children:[(0,k.jsx)(`h2`,{className:`text-sm font-medium`,children:e}),(0,k.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:t})]}),n||F]})}var F=(0,k.jsx)(`p`,{className:`px-4 pb-3 text-sm text-muted-foreground`,children:`None.`});function I({items:e}){return e.length===0?(0,k.jsx)(`span`,{className:`text-muted-foreground`,children:`-`}):(0,k.jsx)(`span`,{className:`flex flex-wrap gap-x-2 gap-y-1`,children:e.map(e=>(0,k.jsx)(`code`,{className:`text-xs`,children:e},e))})}function L({workflows:e,ops:t}){let{data:n}=a(l());return(0,k.jsxs)(w,{children:[(0,k.jsx)(y,{children:(0,k.jsxs)(S,{children:[(0,k.jsx)(b,{children:`Workflow`}),(0,k.jsx)(b,{children:`Uses`}),(0,k.jsx)(b,{children:`Last run`}),(0,k.jsx)(b,{className:`text-right`,children:(0,k.jsx)(`span`,{className:`sr-only`,children:`Runs`})})]})}),(0,k.jsx)(x,{children:e.map(e=>(0,k.jsxs)(S,{children:[(0,k.jsx)(C,{className:`font-medium`,children:(0,k.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,k.jsx)(c,{to:`/workflows/$name`,params:{name:e.name},children:e.title??e.name}),(0,k.jsx)(`code`,{className:`text-xs font-normal text-muted-foreground`,children:e.name})]})}),(0,k.jsx)(C,{className:`whitespace-normal`,children:e.ops.length===0?(0,k.jsx)(`span`,{className:`text-muted-foreground`,children:`-`}):(0,k.jsx)(`span`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1`,children:e.ops.map(e=>(0,k.jsx)(`span`,{className:`inline-flex items-center gap-1.5 text-xs`,children:(0,k.jsx)(d,{id:e,op:t.get(e)})},e))})}),(0,k.jsx)(C,{children:(0,k.jsx)(g,{run:n[e.name],none:`Never run`})}),(0,k.jsx)(C,{className:`text-right`,children:(0,k.jsx)(c,{to:`/workflows/$name`,params:{name:e.name},search:{view:`runs`},children:`Runs`})})]},e.name))})]})}function R({dir:e}){let t=(0,O.useMemo)(()=>j(e),[e]),{data:{files:n,errors:i}}=a({...o(),select:t});return n.length===0&&i.length===0?F:(0,k.jsxs)(w,{children:[(0,k.jsx)(y,{children:(0,k.jsxs)(S,{children:[(0,k.jsx)(b,{children:`File`}),(0,k.jsx)(b,{children:`Scenarios`}),(0,k.jsx)(b,{children:`Of`})]})}),(0,k.jsxs)(x,{children:[n.map(({file:e,count:t,workflows:n})=>(0,k.jsxs)(S,{children:[(0,k.jsx)(C,{children:(0,k.jsx)(`code`,{className:`text-xs`,children:e})}),(0,k.jsx)(C,{className:`text-muted-foreground`,children:r(t,`scenario`)}),(0,k.jsx)(C,{className:`whitespace-normal`,children:(0,k.jsx)(`span`,{className:`flex flex-wrap gap-x-3 gap-y-1`,children:n.map(e=>(0,k.jsx)(c,{to:`/workflows/$name`,params:{name:e},search:{view:`scenarios`},children:e},e))})})]},e)),i.map(({file:e,message:t})=>(0,k.jsxs)(S,{children:[(0,k.jsx)(C,{children:(0,k.jsx)(`code`,{className:`text-xs`,children:e})}),(0,k.jsx)(C,{colSpan:2,className:`whitespace-normal text-destructive`,children:t})]},e))]})]})}export{M as component};