@shipit-ai/cli 1.164.2-pr6.c14c5f2 → 1.164.2-pr9.fdd3eb0

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 (187) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/package.json +1 -1
  3. package/web/.next/BUILD_ID +1 -1
  4. package/web/.next/build-manifest.json +3 -3
  5. package/web/.next/fallback-build-manifest.json +3 -3
  6. package/web/.next/prerender-manifest.json +3 -3
  7. package/web/.next/required-server-files.js +1 -1
  8. package/web/.next/required-server-files.json +1 -1
  9. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +29 -29
  10. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  11. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  12. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +27 -27
  13. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  14. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  15. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +30 -30
  16. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  17. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  18. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +37 -37
  19. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +1 -1
  20. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  21. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  22. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +37 -37
  23. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +1 -1
  24. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  25. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  26. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  27. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  28. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  29. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  30. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  31. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  32. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +27 -27
  33. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  34. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  35. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +30 -30
  36. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  37. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  38. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +37 -37
  39. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +1 -1
  40. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  41. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  42. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +37 -37
  43. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +1 -1
  44. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  45. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  46. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +27 -27
  47. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  48. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  49. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  50. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  51. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  52. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  53. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  54. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  55. package/web/.next/server/app/_global-error.html +1 -1
  56. package/web/.next/server/app/_global-error.rsc +1 -1
  57. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  58. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  59. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  60. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  61. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  62. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +6 -6
  63. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  64. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  65. package/web/.next/server/app/api/sessions/route.js +2 -2
  66. package/web/.next/server/app/settings/page/server-reference-manifest.json +11 -11
  67. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  68. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  69. package/web/.next/server/app/skills/page/server-reference-manifest.json +11 -11
  70. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  71. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  72. package/web/.next/server/app/tools/page/server-reference-manifest.json +11 -11
  73. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  74. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  75. package/web/.next/server/app/version/page/server-reference-manifest.json +6 -6
  76. package/web/.next/server/app/version/page.js.nft.json +1 -1
  77. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  78. package/web/.next/server/chunks/11es_next_dist_esm_build_templates_app-route_067cwst.js +1 -1
  79. package/web/.next/server/chunks/11es_next_dist_esm_build_templates_app-route_067cwst.js.map +1 -1
  80. package/web/.next/server/chunks/[root-of-the-server]__0_.w-eb._.js +1 -1
  81. package/web/.next/server/chunks/[root-of-the-server]__0tb~wwk._.js +1 -1
  82. package/web/.next/server/chunks/ssr/0j.8_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_00~eq5i.js +1 -1
  83. package/web/.next/server/chunks/ssr/0j.8_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_00~eq5i.js.map +1 -1
  84. package/web/.next/server/chunks/ssr/0j.8_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_0979_c..js +1 -1
  85. package/web/.next/server/chunks/ssr/0j.8_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_0979_c..js.map +1 -1
  86. package/web/.next/server/chunks/ssr/0j.8_web__next-internal_server_app_(dashboard)_chat_page_actions_0dqll_1.js +1 -1
  87. package/web/.next/server/chunks/ssr/0j.8_web__next-internal_server_app_(dashboard)_chat_page_actions_0dqll_1.js.map +1 -1
  88. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_create-drawer-client_tsx_0g70fc5._.js +1 -1
  89. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_create-drawer-client_tsx_0g70fc5._.js.map +1 -1
  90. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_feature-drawer-client_tsx_104cna.._.js +2 -2
  91. package/web/.next/server/chunks/ssr/0j.8_web_components_common_control-center-drawer_feature-drawer-client_tsx_104cna.._.js.map +1 -1
  92. package/web/.next/server/chunks/ssr/0ukq_presentation_web_components_features_settings_settings-page-client_tsx_0j1uius._.js +1 -1
  93. package/web/.next/server/chunks/ssr/0ukq_presentation_web_components_features_settings_settings-page-client_tsx_0j1uius._.js.map +1 -1
  94. package/web/.next/server/chunks/ssr/11es_next_dist_esm_build_templates_app-page_0l-25e2.js +1 -1
  95. package/web/.next/server/chunks/ssr/11y9_components_common_control-center-drawer_repository-drawer-client_tsx_09z.znp._.js +1 -1
  96. package/web/.next/server/chunks/ssr/11y9_components_common_control-center-drawer_repository-drawer-client_tsx_09z.znp._.js.map +1 -1
  97. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0r32z03._.js → [root-of-the-server]__01~y8wi._.js} +2 -2
  98. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0r32z03._.js.map → [root-of-the-server]__01~y8wi._.js.map} +1 -1
  99. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0d_0_fp._.js → [root-of-the-server]__0np51e2._.js} +2 -2
  100. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0d_0_fp._.js.map → [root-of-the-server]__0np51e2._.js.map} +1 -1
  101. package/web/.next/server/chunks/ssr/[root-of-the-server]__0rv1gci._.js +1 -1
  102. package/web/.next/server/chunks/ssr/{[root-of-the-server]__045sv4b._.js → [root-of-the-server]__0uxn6-j._.js} +2 -2
  103. package/web/.next/server/chunks/ssr/{[root-of-the-server]__045sv4b._.js.map → [root-of-the-server]__0uxn6-j._.js.map} +1 -1
  104. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0_ag.8y._.js → [root-of-the-server]__0vd39s9._.js} +2 -2
  105. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0_ag.8y._.js.map → [root-of-the-server]__0vd39s9._.js.map} +1 -1
  106. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0l4d7e.._.js → [root-of-the-server]__0~h382a._.js} +2 -2
  107. package/web/.next/server/chunks/ssr/{[root-of-the-server]__0l4d7e.._.js.map → [root-of-the-server]__0~h382a._.js.map} +1 -1
  108. package/web/.next/server/chunks/ssr/[root-of-the-server]__12g8h3_._.js +1 -1
  109. package/web/.next/server/chunks/ssr/[root-of-the-server]__12qqi.~._.js +1 -1
  110. package/web/.next/server/chunks/ssr/[root-of-the-server]__12qqi.~._.js.map +1 -1
  111. package/web/.next/server/chunks/ssr/_01mq~sm._.js +1 -1
  112. package/web/.next/server/chunks/ssr/_01mq~sm._.js.map +1 -1
  113. package/web/.next/server/chunks/ssr/{_07tvs-~._.js → _091c_f9._.js} +2 -2
  114. package/web/.next/server/chunks/ssr/{_07tvs-~._.js.map → _091c_f9._.js.map} +1 -1
  115. package/web/.next/server/chunks/ssr/_0b8rkvn._.js +3 -0
  116. package/web/.next/server/chunks/ssr/{_12nazf8._.js.map → _0b8rkvn._.js.map} +1 -1
  117. package/web/.next/server/chunks/ssr/{_0tcwb~m._.js → _0djr-aw._.js} +2 -2
  118. package/web/.next/server/chunks/ssr/{_0tcwb~m._.js.map → _0djr-aw._.js.map} +1 -1
  119. package/web/.next/server/chunks/ssr/_0ez.1o4._.js +1 -1
  120. package/web/.next/server/chunks/ssr/_0ez.1o4._.js.map +1 -1
  121. package/web/.next/server/chunks/ssr/_0j9vx-1._.js +1 -1
  122. package/web/.next/server/chunks/ssr/_0jpbsh_._.js +1 -1
  123. package/web/.next/server/chunks/ssr/_0rvaoj4._.js +1 -1
  124. package/web/.next/server/chunks/ssr/_0v.yfmg._.js +1 -1
  125. package/web/.next/server/chunks/ssr/_0v.yfmg._.js.map +1 -1
  126. package/web/.next/server/chunks/ssr/_0w-_hww._.js +1 -1
  127. package/web/.next/server/chunks/ssr/_0w-_hww._.js.map +1 -1
  128. package/web/.next/server/chunks/ssr/_11kuznh._.js +1 -1
  129. package/web/.next/server/chunks/ssr/_11kuznh._.js.map +1 -1
  130. package/web/.next/server/chunks/ssr/node_modules__pnpm_0ayym15._.js +3 -0
  131. package/web/.next/server/chunks/ssr/{node_modules__pnpm_0xyo1be._.js.map → node_modules__pnpm_0ayym15._.js.map} +1 -1
  132. package/web/.next/server/chunks/ssr/src_presentation_web_0.e4~xc._.js +1 -1
  133. package/web/.next/server/chunks/ssr/src_presentation_web_0.e4~xc._.js.map +1 -1
  134. package/web/.next/server/chunks/ssr/src_presentation_web_00dvh.m._.js +1 -1
  135. package/web/.next/server/chunks/ssr/src_presentation_web_00dvh.m._.js.map +1 -1
  136. package/web/.next/server/chunks/ssr/src_presentation_web_05-w-~v._.js +1 -1
  137. package/web/.next/server/chunks/ssr/src_presentation_web_05-w-~v._.js.map +1 -1
  138. package/web/.next/server/chunks/ssr/src_presentation_web_06b6~lt._.js +2 -2
  139. package/web/.next/server/chunks/ssr/src_presentation_web_06b6~lt._.js.map +1 -1
  140. package/web/.next/server/chunks/ssr/src_presentation_web_08fy2mf._.js +1 -1
  141. package/web/.next/server/chunks/ssr/src_presentation_web_08fy2mf._.js.map +1 -1
  142. package/web/.next/server/chunks/ssr/src_presentation_web_0f~udu1._.js +1 -1
  143. package/web/.next/server/chunks/ssr/src_presentation_web_0f~udu1._.js.map +1 -1
  144. package/web/.next/server/chunks/ssr/src_presentation_web_0qys821._.js +2 -2
  145. package/web/.next/server/chunks/ssr/src_presentation_web_0qys821._.js.map +1 -1
  146. package/web/.next/server/chunks/ssr/src_presentation_web_0q~dt0o._.js +1 -1
  147. package/web/.next/server/chunks/ssr/src_presentation_web_0q~dt0o._.js.map +1 -1
  148. package/web/.next/server/chunks/ssr/src_presentation_web_11jrkxt._.js +1 -1
  149. package/web/.next/server/chunks/ssr/src_presentation_web_11jrkxt._.js.map +1 -1
  150. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_1199d3x.js +1 -1
  151. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_1199d3x.js.map +1 -1
  152. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app__not-found_page_actions_0m2jqxx.js +1 -1
  153. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app__not-found_page_actions_0m2jqxx.js.map +1 -1
  154. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_version_page_actions_0krkh_0.js +1 -1
  155. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_version_page_actions_0krkh_0.js.map +1 -1
  156. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_load-settings_ts_0b8f3pf._.js +1 -1
  157. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_0w2wqvu._.js +1 -1
  158. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_0l3oxx9._.js +1 -1
  159. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_0l3oxx9._.js.map +1 -1
  160. package/web/.next/server/middleware-build-manifest.js +3 -3
  161. package/web/.next/server/pages/500.html +1 -1
  162. package/web/.next/server/server-reference-manifest.js +1 -1
  163. package/web/.next/server/server-reference-manifest.json +49 -49
  164. package/web/.next/static/chunks/{0gq7w9c~abj0j.js → 010wdbmhyou5l.js} +1 -1
  165. package/web/.next/static/chunks/{0hqsl3xgn_vxb.js → 05csnguxeu_6..js} +1 -1
  166. package/web/.next/static/chunks/{0hgrk.0mznc5..js → 06fuh2nvpirmg.js} +1 -1
  167. package/web/.next/static/chunks/{18ca782kjerlh.js → 0b4_f_x20k4lt.js} +1 -1
  168. package/web/.next/static/chunks/0bgh91x4g6-p9.js +1 -0
  169. package/web/.next/static/chunks/{0wmckrtphfa12.js → 0evxdvnturego.js} +1 -1
  170. package/web/.next/static/chunks/{0m.3~pcsueoah.js → 0fnrtwo.n2vij.js} +1 -1
  171. package/web/.next/static/chunks/{0xp.c-ok~mwrs.js → 0h0q5yqipg5-2.js} +3 -3
  172. package/web/.next/static/chunks/{04thbdvq73.8p.js → 0pdwjzz5fqyi7.js} +1 -1
  173. package/web/.next/static/chunks/{0h7-maep13j01.js → 0r990ua~igkqj.js} +1 -1
  174. package/web/.next/static/chunks/{0cmncp3fhnz3s.js → 0ttgwaa4r_ssq.js} +2 -2
  175. package/web/.next/static/chunks/{0hk9bqajlid1q.js → 0w3h632akwmjj.js} +1 -1
  176. package/web/.next/static/chunks/{09b2usag59_bi.js → 0wlv._qkau1f1.js} +2 -2
  177. package/web/.next/static/chunks/0~_228bvayobk.js +1 -0
  178. package/web/.next/static/chunks/{0vxrl0-qu5nq7.js → 134o_ag.q_viy.js} +2 -2
  179. package/web/.next/static/chunks/{12m0vnrnp5doq.js → 13tsq8xckdd0p.js} +2 -2
  180. package/web/package.json +1 -1
  181. package/web/.next/server/chunks/ssr/_12nazf8._.js +0 -3
  182. package/web/.next/server/chunks/ssr/node_modules__pnpm_0xyo1be._.js +0 -3
  183. package/web/.next/static/chunks/0zz.xgsd83.3n.js +0 -1
  184. package/web/.next/static/chunks/12ykdjf3-fq4-.js +0 -1
  185. /package/web/.next/static/{kWYziSGurYY6iHBzoRCby → JAkg8eEoRUotjG8QQldwP}/_buildManifest.js +0 -0
  186. /package/web/.next/static/{kWYziSGurYY6iHBzoRCby → JAkg8eEoRUotjG8QQldwP}/_clientMiddlewareManifest.js +0 -0
  187. /package/web/.next/static/{kWYziSGurYY6iHBzoRCby → JAkg8eEoRUotjG8QQldwP}/_ssgManifest.js +0 -0
@@ -1,7 +1,7 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88976,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},82977,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={assign:function(){return s},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return i}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});function o(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))if(Array.isArray(a))for(let e of a)t.append(r,l(e));else t.set(r,l(a));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,a]of r.entries())e.append(t,a)}return e}},94576,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return y},NormalizeError:function(){return b},PageNotFoundError:function(){return x},SP:function(){return g},ST:function(){return h},WEB_VITALS:function(){return o},execOnce:function(){return l},getDisplayName:function(){return u},getLocationOrigin:function(){return d},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return S}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>i.test(e);function d(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=d();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&f(r))return a;if(!a)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return a}let g="u">typeof performance,h=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class b extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},9641,e=>{"use strict";var t=e.i(16539);e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}])},53360,e=>{"use strict";let t=(0,e.i(3645).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,t],53360)},55016,e=>{"use strict";let t=(0,e.i(3645).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Clock",0,t],55016)},71326,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(9413),n=e.i(22353),o=e.i(94983),l=e.i(91967),i=e.i(60310),s="AlertDialog",[d,c]=(0,a.createContextScope)(s,[o.createDialogScope]),u=(0,o.createDialogScope)(),f=e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(o.Root,{...n,...a,modal:!0})};f.displayName=s;var p=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Trigger,{...l,...n,ref:r})});p.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(o.Portal,{...n,...a})};m.displayName="AlertDialogPortal";var g=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Overlay,{...l,...n,ref:r})});g.displayName="AlertDialogOverlay";var h="AlertDialogContent",[v,b]=d(h),x=(0,i.createSlottable)("AlertDialogContent"),y=r.forwardRef((e,a)=>{let{__scopeAlertDialog:i,children:s,...d}=e,c=u(i),f=r.useRef(null),p=(0,n.useComposedRefs)(a,f),m=r.useRef(null);return(0,t.jsx)(o.WarningProvider,{contentName:h,titleName:w,docsSlug:"alert-dialog",children:(0,t.jsx)(v,{scope:i,cancelRef:m,children:(0,t.jsxs)(o.Content,{role:"alertdialog",...c,...d,ref:p,onOpenAutoFocus:(0,l.composeEventHandlers)(d.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,t.jsx)(x,{children:s}),(0,t.jsx)(N,{contentRef:f})]})})})});y.displayName=h;var w="AlertDialogTitle",S=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Title,{...l,...n,ref:r})});S.displayName=w;var j="AlertDialogDescription",C=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Description,{...l,...n,ref:r})});C.displayName=j;var P=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Close,{...l,...n,ref:r})});P.displayName="AlertDialogAction";var k="AlertDialogCancel",D=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...l}=e,{cancelRef:i}=b(k,a),s=u(a),d=(0,n.useComposedRefs)(r,i);return(0,t.jsx)(o.Close,{...s,...l,ref:d})});D.displayName=k;var N=({contentRef:e})=>{let t=`\`${h}\` requires a description for the component to be accessible for screen reader users.
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88976,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},82977,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={assign:function(){return s},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return i}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});function o(e){let t={};for(let[r,a]of e.entries()){let e=t[r];void 0===e?t[r]=a:Array.isArray(e)?e.push(a):t[r]=[e,a]}return t}function l(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,a]of Object.entries(e))if(Array.isArray(a))for(let e of a)t.append(r,l(e));else t.set(r,l(a));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,a]of r.entries())e.append(t,a)}return e}},94576,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return y},NormalizeError:function(){return b},PageNotFoundError:function(){return x},SP:function(){return g},ST:function(){return h},WEB_VITALS:function(){return o},execOnce:function(){return l},getDisplayName:function(){return u},getLocationOrigin:function(){return c},getURL:function(){return d},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return S}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function l(e){let t,r=!1;return(...a)=>(r||(r=!0,t=e(...a)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>i.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function d(){let{href:e}=window.location,t=c();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let a=await e.getInitialProps(t);if(r&&f(r))return a;if(!a)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return a}let g="u">typeof performance,h=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class b extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},9641,e=>{"use strict";var t=e.i(16539);e.s(["usePrevious",0,function(e){let r=t.useRef({value:e,previous:e});return t.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}])},53360,e=>{"use strict";let t=(0,e.i(3645).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,t],53360)},55016,e=>{"use strict";let t=(0,e.i(3645).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Clock",0,t],55016)},71326,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(9413),n=e.i(22353),o=e.i(94983),l=e.i(91967),i=e.i(60310),s="AlertDialog",[c,d]=(0,a.createContextScope)(s,[o.createDialogScope]),u=(0,o.createDialogScope)(),f=e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(o.Root,{...n,...a,modal:!0})};f.displayName=s;var p=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Trigger,{...l,...n,ref:r})});p.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:r,...a}=e,n=u(r);return(0,t.jsx)(o.Portal,{...n,...a})};m.displayName="AlertDialogPortal";var g=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Overlay,{...l,...n,ref:r})});g.displayName="AlertDialogOverlay";var h="AlertDialogContent",[v,b]=c(h),x=(0,i.createSlottable)("AlertDialogContent"),y=r.forwardRef((e,a)=>{let{__scopeAlertDialog:i,children:s,...c}=e,d=u(i),f=r.useRef(null),p=(0,n.useComposedRefs)(a,f),m=r.useRef(null);return(0,t.jsx)(o.WarningProvider,{contentName:h,titleName:w,docsSlug:"alert-dialog",children:(0,t.jsx)(v,{scope:i,cancelRef:m,children:(0,t.jsxs)(o.Content,{role:"alertdialog",...d,...c,ref:p,onOpenAutoFocus:(0,l.composeEventHandlers)(c.onOpenAutoFocus,e=>{e.preventDefault(),m.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,t.jsx)(x,{children:s}),(0,t.jsx)(N,{contentRef:f})]})})})});y.displayName=h;var w="AlertDialogTitle",S=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Title,{...l,...n,ref:r})});S.displayName=w;var j="AlertDialogDescription",C=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Description,{...l,...n,ref:r})});C.displayName=j;var P=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...n}=e,l=u(a);return(0,t.jsx)(o.Close,{...l,...n,ref:r})});P.displayName="AlertDialogAction";var k="AlertDialogCancel",D=r.forwardRef((e,r)=>{let{__scopeAlertDialog:a,...l}=e,{cancelRef:i}=b(k,a),s=u(a),c=(0,n.useComposedRefs)(r,i);return(0,t.jsx)(o.Close,{...s,...l,ref:c})});D.displayName=k;var N=({contentRef:e})=>{let t=`\`${h}\` requires a description for the component to be accessible for screen reader users.
2
2
 
3
3
  You can add a description to the \`${h}\` by passing a \`${j}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
4
4
 
5
5
  Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${h}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
6
6
 
7
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return r.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null};e.s(["Action",0,P,"AlertDialog",0,f,"AlertDialogAction",0,P,"AlertDialogCancel",0,D,"AlertDialogContent",0,y,"AlertDialogDescription",0,C,"AlertDialogOverlay",0,g,"AlertDialogPortal",0,m,"AlertDialogTitle",0,S,"AlertDialogTrigger",0,p,"Cancel",0,D,"Content",0,y,"Description",0,C,"Overlay",0,g,"Portal",0,m,"Root",0,f,"Title",0,S,"Trigger",0,p,"createAlertDialogScope",0,c],37340);var E=e.i(37340),E=E,R=e.i(31777),T=e.i(35364);function A({...e}){return(0,t.jsx)(E.Portal,{"data-slot":"alert-dialog-portal",...e})}function I({className:e,onClick:r,...a}){return(0,t.jsx)(E.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,R.cn)("fixed inset-0 z-50 bg-black/50",e),onClick:e=>{e.stopPropagation(),r?.(e)},...a})}e.s(["AlertDialog",0,function({...e}){return(0,t.jsx)(E.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogAction",0,function({className:e,variant:r="default",size:a="default",...n}){return(0,t.jsx)(T.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(E.Action,{"data-slot":"alert-dialog-action",className:(0,R.cn)(e),...n})})},"AlertDialogCancel",0,function({className:e,variant:r="outline",size:a="default",...n}){return(0,t.jsx)(T.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(E.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,R.cn)(e),...n})})},"AlertDialogContent",0,function({className:e,size:r="default",...a}){return(0,t.jsxs)(A,{children:[(0,t.jsx)(I,{}),(0,t.jsx)(E.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,R.cn)("bg-background group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg",e),...a})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(E.Description,{"data-slot":"alert-dialog-description",className:(0,R.cn)("text-muted-foreground text-sm",e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,R.cn)("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,R.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(E.Title,{"data-slot":"alert-dialog-title",className:(0,R.cn)("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}],71326)},30153,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(71326);let n=(0,r.createContext)(null);function o(){let e=(0,r.useContext)(n);if(!e)throw Error("useDrawerCloseGuard must be used within DrawerCloseGuardProvider");return e}e.s(["DrawerCloseGuardProvider",0,function({children:e}){let o=(0,r.useRef)(null),l=(0,r.useRef)(null),[i,s]=(0,r.useState)(!1),d=(0,r.useCallback)(e=>{o.current=e},[]),c=(0,r.useCallback)(e=>{if(o.current?.isDirty){l.current=e,s(!0);return}e()},[]),u=(0,r.useCallback)(()=>{s(!1),o.current?.onReset(),o.current=null,l.current?.(),l.current=null},[]),f=(0,r.useCallback)(()=>{s(!1),l.current=null},[]),p=(0,r.useCallback)(()=>o.current?.isDirty??!1,[]);return(0,t.jsxs)(n,{value:{setGuard:d,guardedNavigate:c,getIsDirty:p},children:[e,(0,t.jsx)(a.AlertDialog,{open:i,children:(0,t.jsxs)(a.AlertDialogContent,{children:[(0,t.jsxs)(a.AlertDialogHeader,{children:[(0,t.jsx)(a.AlertDialogTitle,{children:"Discard unsaved changes?"}),(0,t.jsx)(a.AlertDialogDescription,{children:"You have unsaved changes. Are you sure you want to discard them?"})]}),(0,t.jsxs)(a.AlertDialogFooter,{children:[(0,t.jsx)(a.AlertDialogAction,{variant:"destructive",onClick:u,children:"Discard"}),(0,t.jsx)(a.AlertDialogCancel,{onClick:f,children:"Keep editing"})]})]})})]})},"useDrawerCloseGuard",0,o,"useGuardedDrawerClose",0,function({open:e,isDirty:t,onClose:a,onReset:n}){let{setGuard:l,guardedNavigate:i}=o();return(0,r.useEffect)(()=>(e?l({isDirty:t,onReset:n}):l(null),()=>l(null)),[e,t,n,l]),{attemptClose:(0,r.useCallback)(()=>{i(()=>{n(),a()})},[i,a,n])}}])},80986,e=>{"use strict";let t=(0,e.i(3645).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,t])},54277,30090,e=>{"use strict";let t=(0,e.i(3645).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["default",0,t],30090),e.s(["CircleX",0,t],54277)},10942,94819,e=>{"use strict";var t=e.i(80986);e.s(["CircleCheck",()=>t.default],10942);let r=(0,e.i(3645).default)("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Ban",0,r],94819)},57779,80554,e=>{"use strict";var t=e.i(96871);e.s(["ChatDotIndicator",0,function({status:e,className:r=""}){return"idle"===e?null:(0,t.jsx)("span",{className:`absolute -top-0.5 -right-0.5 block rounded-full ${"processing"===e?"h-2.5 w-2.5 animate-pulse bg-blue-500":"h-2 w-2 bg-green-500"} ${r}`})}],57779);var r=e.i(16539),a=e.i(46535);let n=(0,r.createContext)({getStatus:()=>"idle"});e.s(["TurnStatusesProvider",0,function({children:e}){let o=function(){let{data:e}=(0,a.useQuery)({queryKey:["turn-statuses"],queryFn:async()=>{let e=await fetch("/api/interactive/chat/turn-statuses");return e.ok?e.json():{}},refetchInterval:5e3});return e??{}}(),l=(0,r.useMemo)(()=>({getStatus:e=>o[e]??"idle"}),[o]);return(0,t.jsx)(n.Provider,{value:l,children:e})},"useTurnStatus",0,function(e){return(0,r.useContext)(n).getStatus(e)}],80554)},79687,e=>{"use strict";var t=e.i(14748);e.s(["AlertCircle",()=>t.default])},48034,e=>{"use strict";var t=e.i(96871),r=e.i(16539);let a=(0,e.i(18354).createLogger)("[SSE]");function n(e,t,r,a){if("u"<typeof EventSource)return()=>{};let n=null,o=!1,l=1e3,i=null,s=null;return!function d(){o||(n=new EventSource(e?`/api/agent-events?runId=${encodeURIComponent(e)}`:"/api/agent-events"),a("connecting"),n.onopen=()=>{a("connected"),s=setTimeout(()=>{s=null,l=1e3},5e3)},n.onerror=()=>{n?.close(),n=null,a("disconnected"),null!==s&&(clearTimeout(s),s=null);let e=l;l=Math.min(2*e,3e4),i=setTimeout(()=>{i=null,d()},e)},n.addEventListener("notification",e=>{let a=JSON.parse(e.data),n={...a,timestamp:new Date(a.timestamp)};t(e=>{let t=[...e,n];return t.length>500?t.slice(-250):t}),r(n)}))}(),()=>{o=!0,null!==i&&(clearTimeout(i),i=null),null!==s&&(clearTimeout(s),s=null),n&&(n.close(),n=null)}}let o=(0,r.createContext)(null);e.s(["AgentEventsProvider",0,function({children:e,runId:l}){let{events:i,lastEvent:s,connectionStatus:d}=function(e){let[t,o]=(0,r.useState)([]),[l,i]=(0,r.useState)(null),[s,d]=(0,r.useState)("disconnected"),c=e?.runId,u=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{let t=e.data;if(t&&"object"==typeof t)if("notification"===t.type){let e=t.data;a.debug("event received:",e.eventType,e),o(t=>{let r=[...t,e];return r.length>500?r.slice(-250):r}),i(e)}else"status"===t.type&&d(t.status)},[]);return(0,r.useEffect)(()=>{let e="u">typeof location&&new URLSearchParams(location.search).has("sse");if(!navigator.serviceWorker||e)return n(c,o,i,d);let t=!1,r={current:void 0};function a(e){t||(u.current=e,e.postMessage({type:"subscribe",runId:c}),d("connecting"))}function l(){if(t)return;let e=navigator.serviceWorker.controller;e&&(u.current=e,e.postMessage({type:"subscribe",runId:c}),d("connecting"))}return navigator.serviceWorker.addEventListener("message",f),navigator.serviceWorker.addEventListener("controllerchange",l),navigator.serviceWorker.register("/agent-events-sw.js",{scope:"/"}).then(e=>{if(t)return;let l=e.active??e.installing??e.waiting;if(!l){r.current=n(c,o,i,d);return}if("activated"===l.state)a(l);else{let e=()=>{"activated"===l.state&&(l.removeEventListener("statechange",e),a(l))};l.addEventListener("statechange",e)}}).catch(()=>{t||(r.current=n(c,o,i,d))}),()=>{t=!0,navigator.serviceWorker.removeEventListener("message",f),navigator.serviceWorker.removeEventListener("controllerchange",l),u.current?.postMessage({type:"unsubscribe"}),u.current=null,r.current?.()}},[c,f]),{events:t,lastEvent:l,connectionStatus:s}}({runId:l}),c=(0,r.useMemo)(()=>({events:i,lastEvent:s,connectionStatus:d}),[i,s,d]);return(0,t.jsx)(o.Provider,{value:c,children:e})},"useAgentEventsContext",0,function(){let e=(0,r.useContext)(o);if(!e)throw Error("useAgentEventsContext must be used within an <AgentEventsProvider>");return e}],48034)},39200,e=>{"use strict";let t=(0,e.i(3645).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,t],39200)},81975,e=>{"use strict";let t=(0,e.i(3645).default)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);e.s(["Wrench",0,t],81975)},98127,e=>{"use strict";var t=e.i(96871),r=e.i(31777);e.s(["Input",0,function({className:e,type:a,...n}){return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}])},66459,e=>{"use strict";let t=(0,e.i(3645).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],66459)},12103,e=>{"use strict";let t=(0,e.i(3645).default)("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);e.s(["Puzzle",0,t],12103)},97063,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={formatUrl:function(){return i},formatWithValidation:function(){return d},urlObjectKeys:function(){return s}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let o=e.r(44066)._(e.r(82977)),l=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,a=e.protocol||"",n=e.pathname||"",i=e.hash||"",s=e.query||"",d=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?d=t+e.host:r&&(d=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(d+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||l.test(a))&&!1!==d?(d="//"+(d||""),n&&"/"!==n[0]&&(n="/"+n)):d||(d=""),i&&"#"!==i[0]&&(i="#"+i),c&&"?"!==c[0]&&(c="?"+c),n=n.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${a}${d}${n}${c}${i}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function d(e){return i(e)}},20819,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let a=e.r(94576),n=e.r(66289);function o(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},78380,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},75459,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return v},useLinkStatus:function(){return x}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let o=e.r(44066),l=e.r(96871),i=o._(e.r(16539)),s=e.r(97063),d=e.r(45319),c=e.r(91992),u=e.r(94576),f=e.r(1921);e.r(88976);let p=e.r(94178),m=e.r(1242),g=e.r(20819),h=e.r(44023);function v(t){var r,a;let n,o,v,[x,y]=(0,i.useOptimistic)(m.IDLE_LINK_STATUS),w=(0,i.useRef)(null),{href:S,as:j,children:C,prefetch:P=null,passHref:k,replace:D,shallow:N,scroll:E,onClick:R,onMouseEnter:T,onTouchStart:A,legacyBehavior:I=!1,onNavigate:L,transitionTypes:_,ref:M,unstable_dynamicOnHover:O,...z}=t;n=C,I&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let F=i.default.useContext(d.AppRouterContext),B=!1!==P,H=!1!==P?null===(a=P)||"auto"===a?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,U="string"==typeof(r=j||S)?r:(0,s.formatUrl)(r);if(I){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=i.default.Children.only(n)}let $=I?o&&"object"==typeof o&&o.ref:M,V=i.default.useCallback(e=>(null!==F&&(w.current=(0,m.mountLinkInstance)(e,U,F,H,B,y)),()=>{w.current&&((0,m.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,m.unmountPrefetchableInstance)(e)}),[B,U,F,H,y]),K={ref:(0,c.useMergedRef)(V,$),onClick(t){I||"function"!=typeof R||R(t),I&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!F||t.defaultPrevented||function(t,r,a,n,o,l,s){if("u">typeof window){let d,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((d=t.currentTarget.getAttribute("target"))&&"_self"!==d||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(88095);i.default.startTransition(()=>{u(r,n?"replace":"push",!1===o?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,a.current,s)})}}(t,U,w,D,E,L,_)},onMouseEnter(e){I||"function"!=typeof T||T(e),I&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),F&&B&&(0,m.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){I||"function"!=typeof A||A(e),I&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),F&&B&&(0,m.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,u.isAbsoluteUrl)(U)?K.href=U:I&&!k&&("a"!==o.type||"href"in o.props)||(K.href=(0,f.addBasePath)(U)),v=I?i.default.cloneElement(o,K):(0,l.jsx)("a",{...z,...K,children:n}),(0,l.jsx)(b.Provider,{value:x,children:v})}e.r(78380);let b=(0,i.createContext)(m.IDLE_LINK_STATUS),x=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},44802,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let a=e.r(26728);function n({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new a.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},70399,(e,t,r)=>{"use strict";function a(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return a}})},77622,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let a=e.r(96871),n=e.r(70309),o=e.r(5474),l=e.r(70399),i=e.r(58349);function s({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let a=t.reactLoadableManifest;for(let t of e){if(!a[t])continue;let e=a[t].files;r.push(...e)}}if(0===r.length)return null;let d=(0,i.getAssetTokenQuery)();return(0,a.jsx)(a.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${d}`;return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},38762,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return d}});let a=e.r(96871),n=e.r(16539),o=e.r(44802),l=e.r(77622);function i(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},d=function(e){let t={...s,...e},r=(0,n.lazy)(()=>t.loader().then(i)),d=t.loading;function c(e){let i=d?(0,a.jsx)(d,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,c=s?n.Suspense:n.Fragment,u=t.ssr?(0,a.jsxs)(a.Fragment,{children:["u"<typeof window?(0,a.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,a.jsx)(r,{...e})]}):(0,a.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(r,{...e})});return(0,a.jsx)(c,{...s?{fallback:i}:{},children:u})}return c.displayName="LoadableComponent",c}},52199,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}});let a=e.r(81258)._(e.r(38762));function n(e,t){let r={};"function"==typeof e&&(r.loader=e);let n={...r,...t};return(0,a.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},13322,61201,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(52199),n=e.i(83428),o=e.i(60112),l=e.i(2287),i=e.i(35364);let s=(0,a.default)(()=>e.A(89305).then(e=>e.FileManager),{loadableGenerated:{modules:[15567]},ssr:!1,loading:()=>(0,t.jsx)(d,{})});function d(){return(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,t.jsx)(n.Loader2,{className:"text-muted-foreground h-8 w-8 animate-spin"})})}async function c(e){let t=new URLSearchParams;e&&t.set("path",e);let r=await fetch(`/api/directory/list?${t.toString()}`);if(!r.ok)throw Error((await r.json().catch(()=>({error:"Failed to load directory"}))).error??"Failed to load directory");return r.json()}e.s(["ReactFileManagerDialog",0,function({open:e,onOpenChange:a,onSelect:n,initialPath:d}){let[u,f]=(0,r.useState)([]),[p,m]=(0,r.useState)(""),[g,h]=(0,r.useState)(!1),[v,b]=(0,r.useState)(null),x=(0,r.useRef)(!1),y=(0,r.useCallback)(async e=>{h(!0),b(null);try{let t=await c(e);f(t.entries),m(t.currentPath)}catch(t){let e=t instanceof Error?t.message:"Failed to load directory";o.toast.error(e)}finally{h(!1)}},[]);(0,r.useEffect)(()=>{e&&!x.current&&(x.current=!0,y(d)),e||(x.current=!1)},[e,d,y]);let w=(0,r.useCallback)(e=>{let t=e.absolutePath;e.isDirectory&&t&&y(t)},[y]),S=(0,r.useCallback)(e=>{1===e.length&&e[0].isDirectory?b(e[0].absolutePath??null):b(null)},[]);function j(){n(null),a(!1)}return(0,t.jsx)(l.Dialog,{open:e,onOpenChange:e=>{e||j()},children:(0,t.jsxs)(l.DialogContent,{className:"flex h-[95dvh] max-w-[95vw] flex-col",onCloseAutoFocus:e=>e.preventDefault(),children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:"Select Folder"}),(0,t.jsx)(l.DialogDescription,{className:"truncate font-mono text-xs",children:p||"Loading..."})]}),(0,t.jsx)("div",{className:"shipit-ai-file-manager min-h-0 flex-1 overflow-hidden rounded-md border",children:(0,t.jsx)(s,{files:u.map(e=>({name:e.name,isDirectory:!0,path:`/${e.name}`,absolutePath:e.path,updatedAt:e.updatedAt})),isLoading:g,height:"100%",width:"100%",layout:"list",enableFilePreview:!1,permissions:{upload:!1,delete:!1,create:!1,download:!1,copy:!1,move:!1,rename:!1},onFileOpen:w,onSelectionChange:S,onRefresh:()=>y(p)},p)}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(i.Button,{variant:"outline",onClick:j,children:"Cancel"}),(0,t.jsx)(i.Button,{variant:"secondary",onClick:function(){p&&(n(p),a(!1))},disabled:!p,children:"Select Current Folder"}),(0,t.jsx)(i.Button,{onClick:function(){v&&(n(v),a(!1))},disabled:!v,children:"Select Folder"})]})]})})}],61201),e.s([],13322)},78521,e=>{"use strict";var t=e.i(96976);let r=(0,t.createServerReference)("0076e4c69e32579ab82dd2149d9191664aa3ad2489",t.callServer,void 0,t.findSourceMapURL,"pickFolder");async function a(){let e=await r();if(e.error)throw Error(e.error);return e.path}e.s(["pickFolder",0,a],78521)},81542,e=>{"use strict";let t=(0,e.i(3645).default)("git-fork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);e.s(["GitFork",0,t],81542)},31364,e=>{"use strict";var t=e.i(75649);e.s(["Direction",0,t])},5812,71379,e=>{"use strict";let t=(0,e.i(3645).default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);e.s(["default",0,t],71379),e.s(["PanelLeftIcon",0,t],5812)},57638,61238,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(94237);e.i(5812);var n=e.i(31364),o=e.i(74302),l=e.i(31777);e.i(35364),e.i(98127),e.i(25235);var i=e.i(48249),s=e.i(64541);function d({...e}){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"sheet",...e})}function c({...e}){return(0,t.jsx)(s.Dialog.Portal,{"data-slot":"sheet-portal",...e})}function u({className:e,...r}){return(0,t.jsx)(s.Dialog.Overlay,{"data-slot":"sheet-overlay",className:(0,l.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...r})}function f({className:e,children:r,side:a="right",showCloseButton:n=!0,...o}){return(0,t.jsxs)(c,{children:[(0,t.jsx)(u,{}),(0,t.jsxs)(s.Dialog.Content,{"data-slot":"sheet-content",className:(0,l.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===a&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm","left"===a&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm","top"===a&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===a&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[r,n?(0,t.jsxs)(s.Dialog.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,t.jsx)(i.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]}):null]})]})}function p({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,l.cn)("flex flex-col gap-1.5 p-4",e),...r})}function m({className:e,...r}){return(0,t.jsx)(s.Dialog.Title,{"data-slot":"sheet-title",className:(0,l.cn)("text-foreground font-semibold",e),...r})}function g({className:e,...r}){return(0,t.jsx)(s.Dialog.Description,{"data-slot":"sheet-description",className:(0,l.cn)("text-muted-foreground text-sm",e),...r})}e.s(["Skeleton",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,l.cn)("bg-accent animate-pulse rounded-md",e),...r})}],61238);var h=e.i(2828);let v="shipit-ai-sidebar-open",b=r.createContext(null);function x(){let e=r.useContext(b);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}let y=(0,a.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Sidebar",0,function({side:e="left",variant:r="sidebar",collapsible:a="offcanvas",className:n,children:o,...i}){let{isMobile:s,state:c,openMobile:u,setOpenMobile:h,animated:v}=x();return"none"===a?(0,t.jsx)("div",{"data-slot":"sidebar",className:(0,l.cn)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),...i,children:o}):s?(0,t.jsx)(d,{open:u,onOpenChange:h,...i,children:(0,t.jsxs)(f,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,t.jsxs)(p,{className:"sr-only",children:[(0,t.jsx)(m,{children:"Sidebar"}),(0,t.jsx)(g,{children:"Displays the mobile sidebar."})]}),(0,t.jsx)("div",{className:"flex h-full w-full flex-col",children:o})]})}):(0,t.jsxs)("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":c,"data-collapsible":"collapsed"===c?a:"","data-variant":r,"data-side":e,"data-slot":"sidebar",children:[(0,t.jsx)("div",{"data-slot":"sidebar-gap",className:(0,l.cn)("relative w-(--sidebar-width) bg-transparent",v&&"transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","floating"===r||"inset"===r?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,t.jsx)("div",{"data-slot":"sidebar-container",className:(0,l.cn)("fixed inset-y-0 start-0 z-10 hidden h-svh w-(--sidebar-width) md:flex",v&&"transition-[inset-inline-start,width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]","floating"===r||"inset"===r?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"border-e group-data-[collapsible=icon]:w-(--sidebar-width-icon)",n),...i,children:(0,t.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})},"SidebarContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,l.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...r})},"SidebarFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,l.cn)("flex flex-col gap-2 p-2",e),...r})},"SidebarGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,l.cn)("relative flex w-full min-w-0 flex-col p-2",e),...r})},"SidebarGroupContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:(0,l.cn)("w-full text-sm",e),...r})},"SidebarGroupLabel",0,function({className:e,asChild:r=!1,...a}){let n=r?o.Slot.Root:"div";return(0,t.jsx)(n,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,l.cn)("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a})},"SidebarHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,l.cn)("flex flex-col gap-2 p-2",e),...r})},"SidebarInset",0,function({className:e,...r}){return(0,t.jsx)("main",{"data-slot":"sidebar-inset",className:(0,l.cn)("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",e),...r})},"SidebarMenu",0,function({className:e,...r}){return(0,t.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,l.cn)("flex w-full min-w-0 flex-col gap-1",e),...r})},"SidebarMenuButton",0,function({asChild:e=!1,isActive:r=!1,variant:a="default",size:i="default",tooltip:s,className:d,...c}){let u=e?o.Slot.Root:"button",{isMobile:f,state:p}=x(),m=n.Direction.useDirection(),g=(0,t.jsx)(u,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":i,"data-active":r,className:(0,l.cn)(y({variant:a,size:i}),d),...c});return s?("string"==typeof s&&(s={children:s}),(0,t.jsxs)(h.Tooltip,{children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:g}),(0,t.jsx)(h.TooltipContent,{side:"rtl"===m?"left":"right",align:"center",hidden:"collapsed"!==p||f,...s})]})):g},"SidebarMenuItem",0,function({className:e,...r}){return(0,t.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,l.cn)("group/menu-item relative",e),...r})},"SidebarProvider",0,function({defaultOpen:e=!0,open:a,onOpenChange:n,className:o,style:i,children:s,...d}){let c=function(){let[e,t]=r.useState(void 0);return r.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),r=()=>{t(window.innerWidth<768)};return e.addEventListener("change",r),t(window.innerWidth<768),()=>e.removeEventListener("change",r)},[]),!!e}(),[u,f]=r.useState(!1),[p,m]=r.useState(!1),[g,x]=r.useState(e),y=a??g,w=r.useCallback(e=>{let t="function"==typeof e?e(y):e;n?n(t):x(t);try{localStorage.setItem(v,String(t)),document.cookie=`${v}=${t}; path=/; max-age=31536000; SameSite=Lax`}catch{}},[n,y]),S=r.useCallback(()=>(m(!0),c?f(e=>!e):w(e=>!e)),[c,w,f]);r.useEffect(()=>{try{if(!document.cookie.includes(v)){let e=localStorage.getItem(v);null!=e&&(document.cookie=`${v}=${e}; path=/; max-age=31536000; SameSite=Lax`)}}catch{}},[]),r.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),S())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[S]);let j=y?"expanded":"collapsed",C=r.useMemo(()=>({state:j,open:y,setOpen:w,isMobile:c,openMobile:u,setOpenMobile:f,toggleSidebar:S,animated:p}),[j,y,w,c,u,f,S,p]);return(0,t.jsx)(b.Provider,{value:C,children:(0,t.jsx)(h.TooltipProvider,{delayDuration:0,children:(0,t.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...i},className:(0,l.cn)("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",o),...d,children:s})})})},"SidebarRail",0,function({className:e,...r}){let{toggleSidebar:a}=x();return(0,t.jsx)("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:(0,l.cn)("hover:after:bg-sidebar-border absolute inset-y-0 -end-4 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:start-1/2 after:w-0.5 sm:flex","cursor-w-resize rtl:cursor-e-resize","in-data-[state=collapsed]:cursor-e-resize rtl:in-data-[state=collapsed]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full","in-data-[collapsible=offcanvas]:-end-2",e),...r})},"useSidebar",0,x],57638)},38373,e=>{"use strict";var t=e.i(96871),r=e.i(16539);let a=(0,r.createContext)({swapPosition:!1});e.s(["FabLayoutProvider",0,function({children:e,layout:r}){return(0,t.jsx)(a.Provider,{value:r,children:e})},"useFabLayout",0,function(){return(0,r.useContext)(a)}])},5147,e=>{"use strict";var t=e.i(96871),r=e.i(16539);let a={"action-required":"action-needed",running:"in-progress",done:"done",blocked:"blocked",pending:"pending",error:"error",creating:null,deleting:null,archived:null},n=(0,r.createContext)(null);e.s(["SidebarFeaturesProvider",0,function({children:e}){let[a,o]=(0,r.useState)([]),[l,i]=(0,r.useState)(!1),s=(0,r.useMemo)(()=>({features:a,setFeatures:o,hasRepositories:l,setHasRepositories:i}),[a,l]);return(0,t.jsx)(n.Provider,{value:s,children:e})},"mapNodeStateToSidebarStatus",0,function(e){return a[e]},"useSidebarFeaturesContext",0,function(){let e=(0,r.useContext)(n);if(!e)throw Error("useSidebarFeaturesContext must be used within a <SidebarFeaturesProvider>");return e}])},47373,27069,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(70309);function n(e,[t,r]){return Math.min(r,Math.max(t,e))}e.s(["clamp",0,n],27069);var o=e.i(91967),l=e.i(87099),i=e.i(22353),s=e.i(9413),d=e.i(75649),c=e.i(3659),u=e.i(87656),f=e.i(62854),p=e.i(11207),m=e.i(73071),g=e.i(76903),h=e.i(85565),v=e.i(60310),b=e.i(88248),x=e.i(36567),y=e.i(18731),w=e.i(9641),S=e.i(87312),j=e.i(73772),C=e.i(69759),P=[" ","Enter","ArrowUp","ArrowDown"],k=[" ","Enter"],D="Select",[N,E,R]=(0,l.createCollection)(D),[T,A]=(0,s.createContextScope)(D,[R,m.createPopperScope]),I=(0,m.createPopperScope)(),[L,_]=T(D),[M,O]=T(D),z=e=>{let{__scopeSelect:a,children:n,open:o,defaultOpen:l,onOpenChange:i,value:s,defaultValue:c,onValueChange:u,dir:f,name:g,autoComplete:h,disabled:v,required:b,form:y}=e,w=I(a),[S,j]=r.useState(null),[C,P]=r.useState(null),[k,E]=r.useState(!1),R=(0,d.useDirection)(f),[T,A]=(0,x.useControllableState)({prop:o,defaultProp:l??!1,onChange:i,caller:D}),[_,O]=(0,x.useControllableState)({prop:s,defaultProp:c,onChange:u,caller:D}),z=r.useRef(null),F=!S||y||!!S.closest("form"),[B,H]=r.useState(new Set),U=Array.from(B).map(e=>e.props.value).join(";");return(0,t.jsx)(m.Root,{...w,children:(0,t.jsxs)(L,{required:b,scope:a,trigger:S,onTriggerChange:j,valueNode:C,onValueNodeChange:P,valueNodeHasChildren:k,onValueNodeHasChildrenChange:E,contentId:(0,p.useId)(),value:_,onValueChange:O,open:T,onOpenChange:A,dir:R,triggerPointerDownPosRef:z,disabled:v,children:[(0,t.jsx)(N.Provider,{scope:a,children:(0,t.jsx)(M,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{H(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{H(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:n})}),F?(0,t.jsxs)(eP,{"aria-hidden":!0,required:b,tabIndex:-1,name:g,autoComplete:h,value:_,onChange:e=>O(e.target.value),disabled:v,form:y,children:[void 0===_?(0,t.jsx)("option",{value:""}):null,Array.from(B)]},U):null]})})};z.displayName=D;var F="SelectTrigger",B=r.forwardRef((e,a)=>{let{__scopeSelect:n,disabled:l=!1,...s}=e,d=I(n),c=_(F,n),u=c.disabled||l,f=(0,i.useComposedRefs)(a,c.onTriggerChange),p=E(n),g=r.useRef("touch"),[v,b,x]=eD(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===c.value),a=eN(t,e,r);void 0!==a&&c.onValueChange(a.value)}),y=e=>{u||(c.onOpenChange(!0),x()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,t.jsx)(m.Anchor,{asChild:!0,...d,children:(0,t.jsx)(h.Primitive.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":ek(c.value)?"":void 0,...s,ref:f,onClick:(0,o.composeEventHandlers)(s.onClick,e=>{e.currentTarget.focus(),"mouse"!==g.current&&y(e)}),onPointerDown:(0,o.composeEventHandlers)(s.onPointerDown,e=>{g.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,o.composeEventHandlers)(s.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||b(e.key),(!t||" "!==e.key)&&P.includes(e.key)&&(y(),e.preventDefault())})})})});B.displayName=F;var H="SelectValue",U=r.forwardRef((e,r)=>{let{__scopeSelect:a,className:n,style:o,children:l,placeholder:s="",...d}=e,c=_(H,a),{onValueNodeHasChildrenChange:u}=c,f=void 0!==l,p=(0,i.useComposedRefs)(r,c.onValueNodeChange);return(0,y.useLayoutEffect)(()=>{u(f)},[u,f]),(0,t.jsx)(h.Primitive.span,{...d,ref:p,style:{pointerEvents:"none"},children:ek(c.value)?(0,t.jsx)(t.Fragment,{children:s}):l})});U.displayName=H;var $=r.forwardRef((e,r)=>{let{__scopeSelect:a,children:n,...o}=e;return(0,t.jsx)(h.Primitive.span,{"aria-hidden":!0,...o,ref:r,children:n||"▼"})});$.displayName="SelectIcon";var V=e=>(0,t.jsx)(g.Portal,{asChild:!0,...e});V.displayName="SelectPortal";var K="SelectContent",W=r.forwardRef((e,n)=>{let o=_(K,e.__scopeSelect),[l,i]=r.useState();return((0,y.useLayoutEffect)(()=>{i(new DocumentFragment)},[]),o.open)?(0,t.jsx)(Y,{...e,ref:n}):l?a.createPortal((0,t.jsx)(G,{scope:e.__scopeSelect,children:(0,t.jsx)(N.Slot,{scope:e.__scopeSelect,children:(0,t.jsx)("div",{children:e.children})})}),l):null});W.displayName=K;var[G,q]=T(K),X=(0,v.createSlot)("SelectContent.RemoveScroll"),Y=r.forwardRef((e,a)=>{let{__scopeSelect:n,position:l="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:d,onPointerDownOutside:p,side:m,sideOffset:g,align:h,alignOffset:v,arrowPadding:b,collisionBoundary:x,collisionPadding:y,sticky:w,hideWhenDetached:S,avoidCollisions:P,...k}=e,D=_(K,n),[N,R]=r.useState(null),[T,A]=r.useState(null),I=(0,i.useComposedRefs)(a,e=>R(e)),[L,M]=r.useState(null),[O,z]=r.useState(null),F=E(n),[B,H]=r.useState(!1),U=r.useRef(!1);r.useEffect(()=>{if(N)return(0,j.hideOthers)(N)},[N]),(0,u.useFocusGuards)();let $=r.useCallback(e=>{let[t,...r]=F().map(e=>e.ref.current),[a]=r.slice(-1),n=document.activeElement;for(let r of e)if(r===n||(r?.scrollIntoView({block:"nearest"}),r===t&&T&&(T.scrollTop=0),r===a&&T&&(T.scrollTop=T.scrollHeight),r?.focus(),document.activeElement!==n))return},[F,T]),V=r.useCallback(()=>$([L,N]),[$,L,N]);r.useEffect(()=>{B&&V()},[B,V]);let{onOpenChange:W,triggerPointerDownPosRef:q}=D;r.useEffect(()=>{if(N){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(q.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():N.contains(r.target)||W(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[N,W,q]),r.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[Y,J]=eD(e=>{let t=F().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),a=eN(t,e,r);a&&setTimeout(()=>a.ref.current.focus())}),ee=r.useCallback((e,t,r)=>{let a=!U.current&&!r;(void 0!==D.value&&D.value===t||a)&&(M(e),a&&(U.current=!0))},[D.value]),et=r.useCallback(()=>N?.focus(),[N]),er=r.useCallback((e,t,r)=>{let a=!U.current&&!r;(void 0!==D.value&&D.value===t||a)&&z(e)},[D.value]),ea="popper"===l?Z:Q,en=ea===Z?{side:m,sideOffset:g,align:h,alignOffset:v,arrowPadding:b,collisionBoundary:x,collisionPadding:y,sticky:w,hideWhenDetached:S,avoidCollisions:P}:{};return(0,t.jsx)(G,{scope:n,content:N,viewport:T,onViewportChange:A,itemRefCallback:ee,selectedItem:L,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:V,selectedItemText:O,position:l,isPositioned:B,searchRef:Y,children:(0,t.jsx)(C.RemoveScroll,{as:X,allowPinchZoom:!0,children:(0,t.jsx)(f.FocusScope,{asChild:!0,trapped:D.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,o.composeEventHandlers)(s,e=>{D.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,t.jsx)(c.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:p,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:(0,t.jsx)(ea,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:e=>e.preventDefault(),...k,...en,onPlaced:()=>H(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:(0,o.composeEventHandlers)(k.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=F().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,a=t.indexOf(r);t=t.slice(a+1)}setTimeout(()=>$(t)),e.preventDefault()}})})})})})})});Y.displayName="SelectContentImpl";var Q=r.forwardRef((e,a)=>{let{__scopeSelect:o,onPlaced:l,...s}=e,d=_(K,o),c=q(K,o),[u,f]=r.useState(null),[p,m]=r.useState(null),g=(0,i.useComposedRefs)(a,e=>m(e)),v=E(o),b=r.useRef(!1),x=r.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:j,focusSelectedItem:C}=c,P=r.useCallback(()=>{if(d.trigger&&d.valueNode&&u&&p&&w&&S&&j){let e=d.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=d.valueNode.getBoundingClientRect(),a=j.getBoundingClientRect();if("rtl"!==d.dir){let o=a.left-t.left,l=r.left-o,i=e.left-l,s=e.width+i,d=Math.max(s,t.width),c=n(l,[10,Math.max(10,window.innerWidth-10-d)]);u.style.minWidth=s+"px",u.style.left=c+"px"}else{let o=t.right-a.right,l=window.innerWidth-r.right-o,i=window.innerWidth-e.right-l,s=e.width+i,d=Math.max(s,t.width),c=n(l,[10,Math.max(10,window.innerWidth-10-d)]);u.style.minWidth=s+"px",u.style.right=c+"px"}let o=v(),i=window.innerHeight-20,s=w.scrollHeight,c=window.getComputedStyle(p),f=parseInt(c.borderTopWidth,10),m=parseInt(c.paddingTop,10),g=parseInt(c.borderBottomWidth,10),h=f+m+s+parseInt(c.paddingBottom,10)+g,x=Math.min(5*S.offsetHeight,h),y=window.getComputedStyle(w),C=parseInt(y.paddingTop,10),P=parseInt(y.paddingBottom,10),k=e.top+e.height/2-10,D=S.offsetHeight/2,N=f+m+(S.offsetTop+D);if(N<=k){let e=o.length>0&&S===o[o.length-1].ref.current;u.style.bottom="0px";let t=Math.max(i-k,D+(e?P:0)+(p.clientHeight-w.offsetTop-w.offsetHeight)+g);u.style.height=N+t+"px"}else{let e=o.length>0&&S===o[0].ref.current;u.style.top="0px";let t=Math.max(k,f+w.offsetTop+(e?C:0)+D);u.style.height=t+(h-N)+"px",w.scrollTop=N-k+w.offsetTop}u.style.margin="10px 0",u.style.minHeight=x+"px",u.style.maxHeight=i+"px",l?.(),requestAnimationFrame(()=>b.current=!0)}},[v,d.trigger,d.valueNode,u,p,w,S,j,d.dir,l]);(0,y.useLayoutEffect)(()=>P(),[P]);let[k,D]=r.useState();(0,y.useLayoutEffect)(()=>{p&&D(window.getComputedStyle(p).zIndex)},[p]);let N=r.useCallback(e=>{e&&!0===x.current&&(P(),C?.(),x.current=!1)},[P,C]);return(0,t.jsx)(J,{scope:o,contentWrapper:u,shouldExpandOnScrollRef:b,onScrollButtonChange:N,children:(0,t.jsx)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,t.jsx)(h.Primitive.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Q.displayName="SelectItemAlignedPosition";var Z=r.forwardRef((e,r)=>{let{__scopeSelect:a,align:n="start",collisionPadding:o=10,...l}=e,i=I(a);return(0,t.jsx)(m.Content,{...i,...l,ref:r,align:n,collisionPadding:o,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Z.displayName="SelectPopperPosition";var[J,ee]=T(K,{}),et="SelectViewport",er=r.forwardRef((e,a)=>{let{__scopeSelect:n,nonce:l,...s}=e,d=q(et,n),c=ee(et,n),u=(0,i.useComposedRefs)(a,d.onViewportChange),f=r.useRef(0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,t.jsx)(N.Slot,{scope:n,children:(0,t.jsx)(h.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:(0,o.composeEventHandlers)(s.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:a}=c;if(a?.current&&r){let e=Math.abs(f.current-t.scrollTop);if(e>0){let a=window.innerHeight-20,n=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(n<a){let o=n+e,l=Math.min(a,o),i=o-l;r.style.height=l+"px","0px"===r.style.bottom&&(t.scrollTop=i>0?i:0,r.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})});er.displayName=et;var ea="SelectGroup",[en,eo]=T(ea),el=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e,o=(0,p.useId)();return(0,t.jsx)(en,{scope:a,id:o,children:(0,t.jsx)(h.Primitive.div,{role:"group","aria-labelledby":o,...n,ref:r})})});el.displayName=ea;var ei="SelectLabel",es=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e,o=eo(ei,a);return(0,t.jsx)(h.Primitive.div,{id:o.id,...n,ref:r})});es.displayName=ei;var ed="SelectItem",[ec,eu]=T(ed),ef=r.forwardRef((e,a)=>{let{__scopeSelect:n,value:l,disabled:s=!1,textValue:d,...c}=e,u=_(ed,n),f=q(ed,n),m=u.value===l,[g,v]=r.useState(d??""),[b,x]=r.useState(!1),y=(0,i.useComposedRefs)(a,e=>f.itemRefCallback?.(e,l,s)),w=(0,p.useId)(),S=r.useRef("touch"),j=()=>{s||(u.onValueChange(l),u.onOpenChange(!1))};if(""===l)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,t.jsx)(ec,{scope:n,value:l,disabled:s,textId:w,isSelected:m,onItemTextChange:r.useCallback(e=>{v(t=>t||(e?.textContent??"").trim())},[]),children:(0,t.jsx)(N.ItemSlot,{scope:n,value:l,disabled:s,textValue:g,children:(0,t.jsx)(h.Primitive.div,{role:"option","aria-labelledby":w,"data-highlighted":b?"":void 0,"aria-selected":m&&b,"data-state":m?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...c,ref:y,onFocus:(0,o.composeEventHandlers)(c.onFocus,()=>x(!0)),onBlur:(0,o.composeEventHandlers)(c.onBlur,()=>x(!1)),onClick:(0,o.composeEventHandlers)(c.onClick,()=>{"mouse"!==S.current&&j()}),onPointerUp:(0,o.composeEventHandlers)(c.onPointerUp,()=>{"mouse"===S.current&&j()}),onPointerDown:(0,o.composeEventHandlers)(c.onPointerDown,e=>{S.current=e.pointerType}),onPointerMove:(0,o.composeEventHandlers)(c.onPointerMove,e=>{S.current=e.pointerType,s?f.onItemLeave?.():"mouse"===S.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,o.composeEventHandlers)(c.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:(0,o.composeEventHandlers)(c.onKeyDown,e=>{(f.searchRef?.current===""||" "!==e.key)&&(k.includes(e.key)&&j()," "===e.key&&e.preventDefault())})})})})});ef.displayName=ed;var ep="SelectItemText",em=r.forwardRef((e,n)=>{let{__scopeSelect:o,className:l,style:s,...d}=e,c=_(ep,o),u=q(ep,o),f=eu(ep,o),p=O(ep,o),[m,g]=r.useState(null),v=(0,i.useComposedRefs)(n,e=>g(e),f.onItemTextChange,e=>u.itemTextRefCallback?.(e,f.value,f.disabled)),b=m?.textContent,x=r.useMemo(()=>(0,t.jsx)("option",{value:f.value,disabled:f.disabled,children:b},f.value),[f.disabled,f.value,b]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=p;return(0,y.useLayoutEffect)(()=>(w(x),()=>S(x)),[w,S,x]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Primitive.span,{id:f.textId,...d,ref:v}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?a.createPortal(d.children,c.valueNode):null]})});em.displayName=ep;var eg="SelectItemIndicator",eh=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e;return eu(eg,a).isSelected?(0,t.jsx)(h.Primitive.span,{"aria-hidden":!0,...n,ref:r}):null});eh.displayName=eg;var ev="SelectScrollUpButton",eb=r.forwardRef((e,a)=>{let n=q(ev,e.__scopeSelect),o=ee(ev,e.__scopeSelect),[l,s]=r.useState(!1),d=(0,i.useComposedRefs)(a,o.onScrollButtonChange);return(0,y.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){s(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,t.jsx)(ew,{...e,ref:d,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eb.displayName=ev;var ex="SelectScrollDownButton",ey=r.forwardRef((e,a)=>{let n=q(ex,e.__scopeSelect),o=ee(ex,e.__scopeSelect),[l,s]=r.useState(!1),d=(0,i.useComposedRefs)(a,o.onScrollButtonChange);return(0,y.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;s(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,t.jsx)(ew,{...e,ref:d,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ey.displayName=ex;var ew=r.forwardRef((e,a)=>{let{__scopeSelect:n,onAutoScroll:l,...i}=e,s=q("SelectScrollButton",n),d=r.useRef(null),c=E(n),u=r.useCallback(()=>{null!==d.current&&(window.clearInterval(d.current),d.current=null)},[]);return r.useEffect(()=>()=>u(),[u]),(0,y.useLayoutEffect)(()=>{let e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,t.jsx)(h.Primitive.div,{"aria-hidden":!0,...i,ref:a,style:{flexShrink:0,...i.style},onPointerDown:(0,o.composeEventHandlers)(i.onPointerDown,()=>{null===d.current&&(d.current=window.setInterval(l,50))}),onPointerMove:(0,o.composeEventHandlers)(i.onPointerMove,()=>{s.onItemLeave?.(),null===d.current&&(d.current=window.setInterval(l,50))}),onPointerLeave:(0,o.composeEventHandlers)(i.onPointerLeave,()=>{u()})})}),eS=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e;return(0,t.jsx)(h.Primitive.div,{"aria-hidden":!0,...n,ref:r})});eS.displayName="SelectSeparator";var ej="SelectArrow",eC=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e,o=I(a),l=_(ej,a),i=q(ej,a);return l.open&&"popper"===i.position?(0,t.jsx)(m.Arrow,{...o,...n,ref:r}):null});eC.displayName=ej;var eP=r.forwardRef(({__scopeSelect:e,value:a,...n},o)=>{let l=r.useRef(null),s=(0,i.useComposedRefs)(o,l),d=(0,w.usePrevious)(a);return r.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(d!==a&&t){let r=new Event("change",{bubbles:!0});t.call(e,a),e.dispatchEvent(r)}},[d,a]),(0,t.jsx)(h.Primitive.select,{...n,style:{...S.VISUALLY_HIDDEN_STYLES,...n.style},ref:s,defaultValue:a})});function ek(e){return""===e||void 0===e}function eD(e){let t=(0,b.useCallbackRef)(e),a=r.useRef(""),n=r.useRef(0),o=r.useCallback(e=>{let r=a.current+e;t(r),function e(t){a.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),l=r.useCallback(()=>{a.current="",window.clearTimeout(n.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(n.current),[]),[a,o,l]}function eN(e,t,r){var a,n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=r?e.indexOf(r):-1,i=(a=e,n=Math.max(l,0),a.map((e,t)=>a[(n+t)%a.length]));1===o.length&&(i=i.filter(e=>e!==r));let s=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}eP.displayName="SelectBubbleInput",e.s(["Arrow",0,eC,"Content",0,W,"Group",0,el,"Icon",0,$,"Item",0,ef,"ItemIndicator",0,eh,"ItemText",0,em,"Label",0,es,"Portal",0,V,"Root",0,z,"ScrollDownButton",0,ey,"ScrollUpButton",0,eb,"Select",0,z,"SelectArrow",0,eC,"SelectContent",0,W,"SelectGroup",0,el,"SelectIcon",0,$,"SelectItem",0,ef,"SelectItemIndicator",0,eh,"SelectItemText",0,em,"SelectLabel",0,es,"SelectPortal",0,V,"SelectScrollDownButton",0,ey,"SelectScrollUpButton",0,eb,"SelectSeparator",0,eS,"SelectTrigger",0,B,"SelectValue",0,U,"SelectViewport",0,er,"Separator",0,eS,"Trigger",0,B,"Value",0,U,"Viewport",0,er,"createSelectScope",0,A],74522);var eE=e.i(74522),eE=eE,eR=e.i(23925),eT=e.i(99105),eA=e.i(27728),eI=e.i(31777);let eL=eE.Root;eE.Group;let e_=eE.Value,eM=r.forwardRef(({className:e,children:r,...a},n)=>(0,t.jsxs)(eE.Trigger,{ref:n,className:(0,eI.cn)("border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-sm focus:ring-1 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[r,(0,t.jsx)(eE.Icon,{asChild:!0,children:(0,t.jsx)(eT.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));eM.displayName=eE.Trigger.displayName;let eO=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(eE.ScrollUpButton,{ref:a,className:(0,eI.cn)("flex cursor-default items-center justify-center py-1",e),...r,children:(0,t.jsx)(eA.ChevronUp,{className:"h-4 w-4"})}));eO.displayName=eE.ScrollUpButton.displayName;let ez=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(eE.ScrollDownButton,{ref:a,className:(0,eI.cn)("flex cursor-default items-center justify-center py-1",e),...r,children:(0,t.jsx)(eT.ChevronDown,{className:"h-4 w-4"})}));ez.displayName=eE.ScrollDownButton.displayName;let eF=r.forwardRef(({className:e,children:r,position:a="popper",...n},o)=>(0,t.jsx)(eE.Portal,{children:(0,t.jsxs)(eE.Content,{ref:o,className:(0,eI.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...n,children:[(0,t.jsx)(eO,{}),(0,t.jsx)(eE.Viewport,{className:(0,eI.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,t.jsx)(ez,{})]})}));eF.displayName=eE.Content.displayName,r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(eE.Label,{ref:a,className:(0,eI.cn)("px-2 py-1.5 text-sm font-semibold",e),...r})).displayName=eE.Label.displayName;let eB=r.forwardRef(({className:e,children:r,...a},n)=>(0,t.jsxs)(eE.Item,{ref:n,className:(0,eI.cn)("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 ps-2 pe-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,t.jsx)("span",{className:"absolute end-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(eE.ItemIndicator,{children:(0,t.jsx)(eR.Check,{className:"h-4 w-4"})})}),(0,t.jsx)(eE.ItemText,{children:r})]}));eB.displayName=eE.Item.displayName,r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(eE.Separator,{ref:a,className:(0,eI.cn)("bg-muted -mx-1 my-1 h-px",e),...r})).displayName=eE.Separator.displayName,e.s(["Select",0,eL,"SelectContent",0,eF,"SelectItem",0,eB,"SelectTrigger",0,eM,"SelectValue",0,e_],47373)},89305,e=>{e.v(t=>Promise.all(["static/chunks/07yqyvabetyrh.js"].map(t=>e.l(t))).then(()=>t(15567)))}]);
7
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return r.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null};e.s(["Action",0,P,"AlertDialog",0,f,"AlertDialogAction",0,P,"AlertDialogCancel",0,D,"AlertDialogContent",0,y,"AlertDialogDescription",0,C,"AlertDialogOverlay",0,g,"AlertDialogPortal",0,m,"AlertDialogTitle",0,S,"AlertDialogTrigger",0,p,"Cancel",0,D,"Content",0,y,"Description",0,C,"Overlay",0,g,"Portal",0,m,"Root",0,f,"Title",0,S,"Trigger",0,p,"createAlertDialogScope",0,d],37340);var E=e.i(37340),E=E,R=e.i(31777),T=e.i(35364);function A({...e}){return(0,t.jsx)(E.Portal,{"data-slot":"alert-dialog-portal",...e})}function I({className:e,onClick:r,...a}){return(0,t.jsx)(E.Overlay,{"data-slot":"alert-dialog-overlay",className:(0,R.cn)("fixed inset-0 z-50 bg-black/50",e),onClick:e=>{e.stopPropagation(),r?.(e)},...a})}e.s(["AlertDialog",0,function({...e}){return(0,t.jsx)(E.Root,{"data-slot":"alert-dialog",...e})},"AlertDialogAction",0,function({className:e,variant:r="default",size:a="default",...n}){return(0,t.jsx)(T.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(E.Action,{"data-slot":"alert-dialog-action",className:(0,R.cn)(e),...n})})},"AlertDialogCancel",0,function({className:e,variant:r="outline",size:a="default",...n}){return(0,t.jsx)(T.Button,{variant:r,size:a,asChild:!0,children:(0,t.jsx)(E.Cancel,{"data-slot":"alert-dialog-cancel",className:(0,R.cn)(e),...n})})},"AlertDialogContent",0,function({className:e,size:r="default",...a}){return(0,t.jsxs)(A,{children:[(0,t.jsx)(I,{}),(0,t.jsx)(E.Content,{"data-slot":"alert-dialog-content","data-size":r,className:(0,R.cn)("bg-background group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-lg",e),...a})]})},"AlertDialogDescription",0,function({className:e,...r}){return(0,t.jsx)(E.Description,{"data-slot":"alert-dialog-description",className:(0,R.cn)("text-muted-foreground text-sm",e),...r})},"AlertDialogFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-footer",className:(0,R.cn)("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",e),...r})},"AlertDialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-dialog-header",className:(0,R.cn)("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",e),...r})},"AlertDialogTitle",0,function({className:e,...r}){return(0,t.jsx)(E.Title,{"data-slot":"alert-dialog-title",className:(0,R.cn)("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",e),...r})}],71326)},30153,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(71326);let n=(0,r.createContext)(null);function o(){let e=(0,r.useContext)(n);if(!e)throw Error("useDrawerCloseGuard must be used within DrawerCloseGuardProvider");return e}e.s(["DrawerCloseGuardProvider",0,function({children:e}){let o=(0,r.useRef)(null),l=(0,r.useRef)(null),[i,s]=(0,r.useState)(!1),c=(0,r.useCallback)(e=>{o.current=e},[]),d=(0,r.useCallback)(e=>{if(o.current?.isDirty){l.current=e,s(!0);return}e()},[]),u=(0,r.useCallback)(()=>{s(!1),o.current?.onReset(),o.current=null,l.current?.(),l.current=null},[]),f=(0,r.useCallback)(()=>{s(!1),l.current=null},[]),p=(0,r.useCallback)(()=>o.current?.isDirty??!1,[]);return(0,t.jsxs)(n,{value:{setGuard:c,guardedNavigate:d,getIsDirty:p},children:[e,(0,t.jsx)(a.AlertDialog,{open:i,children:(0,t.jsxs)(a.AlertDialogContent,{children:[(0,t.jsxs)(a.AlertDialogHeader,{children:[(0,t.jsx)(a.AlertDialogTitle,{children:"Discard unsaved changes?"}),(0,t.jsx)(a.AlertDialogDescription,{children:"You have unsaved changes. Are you sure you want to discard them?"})]}),(0,t.jsxs)(a.AlertDialogFooter,{children:[(0,t.jsx)(a.AlertDialogAction,{variant:"destructive",onClick:u,children:"Discard"}),(0,t.jsx)(a.AlertDialogCancel,{onClick:f,children:"Keep editing"})]})]})})]})},"useDrawerCloseGuard",0,o,"useGuardedDrawerClose",0,function({open:e,isDirty:t,onClose:a,onReset:n}){let{setGuard:l,guardedNavigate:i}=o();return(0,r.useEffect)(()=>(e?l({isDirty:t,onReset:n}):l(null),()=>l(null)),[e,t,n,l]),{attemptClose:(0,r.useCallback)(()=>{i(()=>{n(),a()})},[i,a,n])}}])},80986,e=>{"use strict";let t=(0,e.i(3645).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["default",0,t])},54277,30090,e=>{"use strict";let t=(0,e.i(3645).default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["default",0,t],30090),e.s(["CircleX",0,t],54277)},10942,94819,e=>{"use strict";var t=e.i(80986);e.s(["CircleCheck",()=>t.default],10942);let r=(0,e.i(3645).default)("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Ban",0,r],94819)},57779,80554,e=>{"use strict";var t=e.i(96871);e.s(["ChatDotIndicator",0,function({status:e,className:r=""}){return"idle"===e?null:(0,t.jsx)("span",{className:`absolute -top-0.5 -right-0.5 block rounded-full ${"processing"===e?"h-2.5 w-2.5 animate-pulse bg-blue-500":"h-2 w-2 bg-green-500"} ${r}`})}],57779);var r=e.i(16539),a=e.i(14260);let n=(0,r.createContext)({getStatus:()=>"idle"});e.s(["TurnStatusesProvider",0,function({children:e}){let o=function(){let{data:e}=(0,a.useQuery)({queryKey:["turn-statuses"],queryFn:async()=>{let e=await fetch("/api/interactive/chat/turn-statuses");return e.ok?e.json():{}},refetchInterval:5e3});return e??{}}(),l=(0,r.useMemo)(()=>({getStatus:e=>o[e]??"idle"}),[o]);return(0,t.jsx)(n.Provider,{value:l,children:e})},"useTurnStatus",0,function(e){return(0,r.useContext)(n).getStatus(e)}],80554)},79687,e=>{"use strict";var t=e.i(14748);e.s(["AlertCircle",()=>t.default])},48034,e=>{"use strict";var t=e.i(96871),r=e.i(16539);let a=(0,e.i(18354).createLogger)("[SSE]");function n(e,t,r,a){if("u"<typeof EventSource)return()=>{};let n=null,o=!1,l=1e3,i=null,s=null;return!function c(){o||(n=new EventSource(e?`/api/agent-events?runId=${encodeURIComponent(e)}`:"/api/agent-events"),a("connecting"),n.onopen=()=>{a("connected"),s=setTimeout(()=>{s=null,l=1e3},5e3)},n.onerror=()=>{n?.close(),n=null,a("disconnected"),null!==s&&(clearTimeout(s),s=null);let e=l;l=Math.min(2*e,3e4),i=setTimeout(()=>{i=null,c()},e)},n.addEventListener("notification",e=>{let a=JSON.parse(e.data),n={...a,timestamp:new Date(a.timestamp)};t(e=>{let t=[...e,n];return t.length>500?t.slice(-250):t}),r(n)}))}(),()=>{o=!0,null!==i&&(clearTimeout(i),i=null),null!==s&&(clearTimeout(s),s=null),n&&(n.close(),n=null)}}let o=(0,r.createContext)(null);e.s(["AgentEventsProvider",0,function({children:e,runId:l}){let{events:i,lastEvent:s,connectionStatus:c}=function(e){let[t,o]=(0,r.useState)([]),[l,i]=(0,r.useState)(null),[s,c]=(0,r.useState)("disconnected"),d=e?.runId,u=(0,r.useRef)(null),f=(0,r.useCallback)(e=>{let t=e.data;if(t&&"object"==typeof t)if("notification"===t.type){let e=t.data;a.debug("event received:",e.eventType,e),o(t=>{let r=[...t,e];return r.length>500?r.slice(-250):r}),i(e)}else"status"===t.type&&c(t.status)},[]);return(0,r.useEffect)(()=>{let e="u">typeof location&&new URLSearchParams(location.search).has("sse");if(!navigator.serviceWorker||e)return n(d,o,i,c);let t=!1,r={current:void 0};function a(e){t||(u.current=e,e.postMessage({type:"subscribe",runId:d}),c("connecting"))}function l(){if(t)return;let e=navigator.serviceWorker.controller;e&&(u.current=e,e.postMessage({type:"subscribe",runId:d}),c("connecting"))}return navigator.serviceWorker.addEventListener("message",f),navigator.serviceWorker.addEventListener("controllerchange",l),navigator.serviceWorker.register("/agent-events-sw.js",{scope:"/"}).then(e=>{if(t)return;let l=e.active??e.installing??e.waiting;if(!l){r.current=n(d,o,i,c);return}if("activated"===l.state)a(l);else{let e=()=>{"activated"===l.state&&(l.removeEventListener("statechange",e),a(l))};l.addEventListener("statechange",e)}}).catch(()=>{t||(r.current=n(d,o,i,c))}),()=>{t=!0,navigator.serviceWorker.removeEventListener("message",f),navigator.serviceWorker.removeEventListener("controllerchange",l),u.current?.postMessage({type:"unsubscribe"}),u.current=null,r.current?.()}},[d,f]),{events:t,lastEvent:l,connectionStatus:s}}({runId:l}),d=(0,r.useMemo)(()=>({events:i,lastEvent:s,connectionStatus:c}),[i,s,c]);return(0,t.jsx)(o.Provider,{value:d,children:e})},"useAgentEventsContext",0,function(){let e=(0,r.useContext)(o);if(!e)throw Error("useAgentEventsContext must be used within an <AgentEventsProvider>");return e}],48034)},39200,e=>{"use strict";let t=(0,e.i(3645).default)("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Settings",0,t],39200)},81975,e=>{"use strict";let t=(0,e.i(3645).default)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]);e.s(["Wrench",0,t],81975)},98127,e=>{"use strict";var t=e.i(96871),r=e.i(31777);e.s(["Input",0,function({className:e,type:a,...n}){return(0,t.jsx)("input",{type:a,"data-slot":"input",className:(0,r.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}])},66459,e=>{"use strict";let t=(0,e.i(3645).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],66459)},12103,e=>{"use strict";let t=(0,e.i(3645).default)("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);e.s(["Puzzle",0,t],12103)},97063,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={formatUrl:function(){return i},formatWithValidation:function(){return c},urlObjectKeys:function(){return s}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let o=e.r(44066)._(e.r(82977)),l=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,a=e.protocol||"",n=e.pathname||"",i=e.hash||"",s=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let d=e.search||s&&`?${s}`||"";return a&&!a.endsWith(":")&&(a+=":"),e.slashes||(!a||l.test(a))&&!1!==c?(c="//"+(c||""),n&&"/"!==n[0]&&(n="/"+n)):c||(c=""),i&&"#"!==i[0]&&(i="#"+i),d&&"?"!==d[0]&&(d="?"+d),n=n.replace(/[?#]/g,encodeURIComponent),d=d.replace("#","%23"),`${a}${c}${n}${d}${i}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return i(e)}},20819,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let a=e.r(94576),n=e.r(66289);function o(e){if(!(0,a.isAbsoluteUrl)(e))return!0;try{let t=(0,a.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,n.hasBasePath)(r.pathname)}catch(e){return!1}}},78380,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return a}});let a=e=>{}},75459,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return v},useLinkStatus:function(){return x}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let o=e.r(44066),l=e.r(96871),i=o._(e.r(16539)),s=e.r(97063),c=e.r(45319),d=e.r(91992),u=e.r(94576),f=e.r(1921);e.r(88976);let p=e.r(94178),m=e.r(1242),g=e.r(20819),h=e.r(44023);function v(t){var r,a;let n,o,v,[x,y]=(0,i.useOptimistic)(m.IDLE_LINK_STATUS),w=(0,i.useRef)(null),{href:S,as:j,children:C,prefetch:P=null,passHref:k,replace:D,shallow:N,scroll:E,onClick:R,onMouseEnter:T,onTouchStart:A,legacyBehavior:I=!1,onNavigate:L,transitionTypes:_,ref:M,unstable_dynamicOnHover:O,...z}=t;n=C,I&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let F=i.default.useContext(c.AppRouterContext),B=!1!==P,H=!1!==P?null===(a=P)||"auto"===a?h.FetchStrategy.PPR:h.FetchStrategy.Full:h.FetchStrategy.PPR,U="string"==typeof(r=j||S)?r:(0,s.formatUrl)(r);if(I){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=i.default.Children.only(n)}let $=I?o&&"object"==typeof o&&o.ref:M,V=i.default.useCallback(e=>(null!==F&&(w.current=(0,m.mountLinkInstance)(e,U,F,H,B,y)),()=>{w.current&&((0,m.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,m.unmountPrefetchableInstance)(e)}),[B,U,F,H,y]),K={ref:(0,d.useMergedRef)(V,$),onClick(t){I||"function"!=typeof R||R(t),I&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!F||t.defaultPrevented||function(t,r,a,n,o,l,s){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){n&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:u}=e.r(88095);i.default.startTransition(()=>{u(r,n?"replace":"push",!1===o?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,a.current,s)})}}(t,U,w,D,E,L,_)},onMouseEnter(e){I||"function"!=typeof T||T(e),I&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),F&&B&&(0,m.onNavigationIntent)(e.currentTarget,!0===O)},onTouchStart:function(e){I||"function"!=typeof A||A(e),I&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),F&&B&&(0,m.onNavigationIntent)(e.currentTarget,!0===O)}};return(0,u.isAbsoluteUrl)(U)?K.href=U:I&&!k&&("a"!==o.type||"href"in o.props)||(K.href=(0,f.addBasePath)(U)),v=I?i.default.cloneElement(o,K):(0,l.jsx)("a",{...z,...K,children:n}),(0,l.jsx)(b.Provider,{value:x,children:v})}e.r(78380);let b=(0,i.createContext)(m.IDLE_LINK_STATUS),x=()=>(0,i.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},44802,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return n}});let a=e.r(26728);function n({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new a.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},70399,(e,t,r)=>{"use strict";function a(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return a}})},77622,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let a=e.r(96871),n=e.r(70309),o=e.r(5474),l=e.r(70399),i=e.r(58349);function s({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let a=t.reactLoadableManifest;for(let t of e){if(!a[t])continue;let e=a[t].files;r.push(...e)}}if(0===r.length)return null;let c=(0,i.getAssetTokenQuery)();return(0,a.jsx)(a.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,a.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,n.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},38762,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let a=e.r(96871),n=e.r(16539),o=e.r(44802),l=e.r(77622);function i(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(i(()=>null)),loading:null,ssr:!0},c=function(e){let t={...s,...e},r=(0,n.lazy)(()=>t.loader().then(i)),c=t.loading;function d(e){let i=c?(0,a.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,d=s?n.Suspense:n.Fragment,u=t.ssr?(0,a.jsxs)(a.Fragment,{children:["u"<typeof window?(0,a.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,a.jsx)(r,{...e})]}):(0,a.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(r,{...e})});return(0,a.jsx)(d,{...s?{fallback:i}:{},children:u})}return d.displayName="LoadableComponent",d}},52199,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return n}});let a=e.r(81258)._(e.r(38762));function n(e,t){let r={};"function"==typeof e&&(r.loader=e);let n={...r,...t};return(0,a.default)({...n,modules:n.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},13322,61201,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(52199),n=e.i(83428),o=e.i(60112),l=e.i(2287),i=e.i(35364);let s=(0,a.default)(()=>e.A(89305).then(e=>e.FileManager),{loadableGenerated:{modules:[15567]},ssr:!1,loading:()=>(0,t.jsx)(c,{})});function c(){return(0,t.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,t.jsx)(n.Loader2,{className:"text-muted-foreground h-8 w-8 animate-spin"})})}async function d(e){let t=new URLSearchParams;e&&t.set("path",e);let r=await fetch(`/api/directory/list?${t.toString()}`);if(!r.ok)throw Error((await r.json().catch(()=>({error:"Failed to load directory"}))).error??"Failed to load directory");return r.json()}e.s(["ReactFileManagerDialog",0,function({open:e,onOpenChange:a,onSelect:n,initialPath:c}){let[u,f]=(0,r.useState)([]),[p,m]=(0,r.useState)(""),[g,h]=(0,r.useState)(!1),[v,b]=(0,r.useState)(null),x=(0,r.useRef)(!1),y=(0,r.useCallback)(async e=>{h(!0),b(null);try{let t=await d(e);f(t.entries),m(t.currentPath)}catch(t){let e=t instanceof Error?t.message:"Failed to load directory";o.toast.error(e)}finally{h(!1)}},[]);(0,r.useEffect)(()=>{e&&!x.current&&(x.current=!0,y(c)),e||(x.current=!1)},[e,c,y]);let w=(0,r.useCallback)(e=>{let t=e.absolutePath;e.isDirectory&&t&&y(t)},[y]),S=(0,r.useCallback)(e=>{1===e.length&&e[0].isDirectory?b(e[0].absolutePath??null):b(null)},[]);function j(){n(null),a(!1)}return(0,t.jsx)(l.Dialog,{open:e,onOpenChange:e=>{e||j()},children:(0,t.jsxs)(l.DialogContent,{className:"flex h-[95dvh] max-w-[95vw] flex-col",onCloseAutoFocus:e=>e.preventDefault(),children:[(0,t.jsxs)(l.DialogHeader,{children:[(0,t.jsx)(l.DialogTitle,{children:"Select Folder"}),(0,t.jsx)(l.DialogDescription,{className:"truncate font-mono text-xs",children:p||"Loading..."})]}),(0,t.jsx)("div",{className:"shipit-ai-file-manager min-h-0 flex-1 overflow-hidden rounded-md border",children:(0,t.jsx)(s,{files:u.map(e=>({name:e.name,isDirectory:!0,path:`/${e.name}`,absolutePath:e.path,updatedAt:e.updatedAt})),isLoading:g,height:"100%",width:"100%",layout:"list",enableFilePreview:!1,permissions:{upload:!1,delete:!1,create:!1,download:!1,copy:!1,move:!1,rename:!1},onFileOpen:w,onSelectionChange:S,onRefresh:()=>y(p)},p)}),(0,t.jsxs)(l.DialogFooter,{children:[(0,t.jsx)(i.Button,{variant:"outline",onClick:j,children:"Cancel"}),(0,t.jsx)(i.Button,{variant:"secondary",onClick:function(){p&&(n(p),a(!1))},disabled:!p,children:"Select Current Folder"}),(0,t.jsx)(i.Button,{onClick:function(){v&&(n(v),a(!1))},disabled:!v,children:"Select Folder"})]})]})})}],61201),e.s([],13322)},78521,e=>{"use strict";var t=e.i(96976);let r=(0,t.createServerReference)("0024998ff81fd6d120222831a57fee689b8687c12b",t.callServer,void 0,t.findSourceMapURL,"pickFolder");async function a(){let e=await r();if(e.error)throw Error(e.error);return e.path}e.s(["pickFolder",0,a],78521)},81542,e=>{"use strict";let t=(0,e.i(3645).default)("git-fork",[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]]);e.s(["GitFork",0,t],81542)},31364,e=>{"use strict";var t=e.i(75649);e.s(["Direction",0,t])},5812,71379,e=>{"use strict";let t=(0,e.i(3645).default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);e.s(["default",0,t],71379),e.s(["PanelLeftIcon",0,t],5812)},57638,61238,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(94237);e.i(5812);var n=e.i(31364),o=e.i(74302),l=e.i(31777);e.i(35364),e.i(98127),e.i(25235);var i=e.i(48249),s=e.i(64541);function c({...e}){return(0,t.jsx)(s.Dialog.Root,{"data-slot":"sheet",...e})}function d({...e}){return(0,t.jsx)(s.Dialog.Portal,{"data-slot":"sheet-portal",...e})}function u({className:e,...r}){return(0,t.jsx)(s.Dialog.Overlay,{"data-slot":"sheet-overlay",className:(0,l.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...r})}function f({className:e,children:r,side:a="right",showCloseButton:n=!0,...o}){return(0,t.jsxs)(d,{children:[(0,t.jsx)(u,{}),(0,t.jsxs)(s.Dialog.Content,{"data-slot":"sheet-content",className:(0,l.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===a&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 end-0 h-full w-3/4 border-s sm:max-w-sm","left"===a&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 start-0 h-full w-3/4 border-e sm:max-w-sm","top"===a&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b","bottom"===a&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...o,children:[r,n?(0,t.jsxs)(s.Dialog.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[(0,t.jsx)(i.XIcon,{className:"size-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]}):null]})]})}function p({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sheet-header",className:(0,l.cn)("flex flex-col gap-1.5 p-4",e),...r})}function m({className:e,...r}){return(0,t.jsx)(s.Dialog.Title,{"data-slot":"sheet-title",className:(0,l.cn)("text-foreground font-semibold",e),...r})}function g({className:e,...r}){return(0,t.jsx)(s.Dialog.Description,{"data-slot":"sheet-description",className:(0,l.cn)("text-muted-foreground text-sm",e),...r})}e.s(["Skeleton",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"skeleton",className:(0,l.cn)("bg-accent animate-pulse rounded-md",e),...r})}],61238);var h=e.i(2828);let v="shipit-ai-sidebar-open",b=r.createContext(null);function x(){let e=r.useContext(b);if(!e)throw Error("useSidebar must be used within a SidebarProvider.");return e}let y=(0,a.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Sidebar",0,function({side:e="left",variant:r="sidebar",collapsible:a="offcanvas",className:n,children:o,...i}){let{isMobile:s,state:d,openMobile:u,setOpenMobile:h,animated:v}=x();return"none"===a?(0,t.jsx)("div",{"data-slot":"sidebar",className:(0,l.cn)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),...i,children:o}):s?(0,t.jsx)(c,{open:u,onOpenChange:h,...i,children:(0,t.jsxs)(f,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:e,children:[(0,t.jsxs)(p,{className:"sr-only",children:[(0,t.jsx)(m,{children:"Sidebar"}),(0,t.jsx)(g,{children:"Displays the mobile sidebar."})]}),(0,t.jsx)("div",{className:"flex h-full w-full flex-col",children:o})]})}):(0,t.jsxs)("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":d,"data-collapsible":"collapsed"===d?a:"","data-variant":r,"data-side":e,"data-slot":"sidebar",children:[(0,t.jsx)("div",{"data-slot":"sidebar-gap",className:(0,l.cn)("relative w-(--sidebar-width) bg-transparent",v&&"transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","floating"===r||"inset"===r?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),(0,t.jsx)("div",{"data-slot":"sidebar-container",className:(0,l.cn)("fixed inset-y-0 start-0 z-10 hidden h-svh w-(--sidebar-width) md:flex",v&&"transition-[inset-inline-start,width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:start-[calc(var(--sidebar-width)*-1)]","floating"===r||"inset"===r?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"border-e group-data-[collapsible=icon]:w-(--sidebar-width-icon)",n),...i,children:(0,t.jsx)("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:o})})]})},"SidebarContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:(0,l.cn)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...r})},"SidebarFooter",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:(0,l.cn)("flex flex-col gap-2 p-2",e),...r})},"SidebarGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:(0,l.cn)("relative flex w-full min-w-0 flex-col p-2",e),...r})},"SidebarGroupContent",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:(0,l.cn)("w-full text-sm",e),...r})},"SidebarGroupLabel",0,function({className:e,asChild:r=!1,...a}){let n=r?o.Slot.Root:"div";return(0,t.jsx)(n,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:(0,l.cn)("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a})},"SidebarHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:(0,l.cn)("flex flex-col gap-2 p-2",e),...r})},"SidebarInset",0,function({className:e,...r}){return(0,t.jsx)("main",{"data-slot":"sidebar-inset",className:(0,l.cn)("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2",e),...r})},"SidebarMenu",0,function({className:e,...r}){return(0,t.jsx)("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:(0,l.cn)("flex w-full min-w-0 flex-col gap-1",e),...r})},"SidebarMenuButton",0,function({asChild:e=!1,isActive:r=!1,variant:a="default",size:i="default",tooltip:s,className:c,...d}){let u=e?o.Slot.Root:"button",{isMobile:f,state:p}=x(),m=n.Direction.useDirection(),g=(0,t.jsx)(u,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":i,"data-active":r,className:(0,l.cn)(y({variant:a,size:i}),c),...d});return s?("string"==typeof s&&(s={children:s}),(0,t.jsxs)(h.Tooltip,{children:[(0,t.jsx)(h.TooltipTrigger,{asChild:!0,children:g}),(0,t.jsx)(h.TooltipContent,{side:"rtl"===m?"left":"right",align:"center",hidden:"collapsed"!==p||f,...s})]})):g},"SidebarMenuItem",0,function({className:e,...r}){return(0,t.jsx)("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:(0,l.cn)("group/menu-item relative",e),...r})},"SidebarProvider",0,function({defaultOpen:e=!0,open:a,onOpenChange:n,className:o,style:i,children:s,...c}){let d=function(){let[e,t]=r.useState(void 0);return r.useEffect(()=>{let e=window.matchMedia("(max-width: 767px)"),r=()=>{t(window.innerWidth<768)};return e.addEventListener("change",r),t(window.innerWidth<768),()=>e.removeEventListener("change",r)},[]),!!e}(),[u,f]=r.useState(!1),[p,m]=r.useState(!1),[g,x]=r.useState(e),y=a??g,w=r.useCallback(e=>{let t="function"==typeof e?e(y):e;n?n(t):x(t);try{localStorage.setItem(v,String(t)),document.cookie=`${v}=${t}; path=/; max-age=31536000; SameSite=Lax`}catch{}},[n,y]),S=r.useCallback(()=>(m(!0),d?f(e=>!e):w(e=>!e)),[d,w,f]);r.useEffect(()=>{try{if(!document.cookie.includes(v)){let e=localStorage.getItem(v);null!=e&&(document.cookie=`${v}=${e}; path=/; max-age=31536000; SameSite=Lax`)}}catch{}},[]),r.useEffect(()=>{let e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),S())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[S]);let j=y?"expanded":"collapsed",C=r.useMemo(()=>({state:j,open:y,setOpen:w,isMobile:d,openMobile:u,setOpenMobile:f,toggleSidebar:S,animated:p}),[j,y,w,d,u,f,S,p]);return(0,t.jsx)(b.Provider,{value:C,children:(0,t.jsx)(h.TooltipProvider,{delayDuration:0,children:(0,t.jsx)("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...i},className:(0,l.cn)("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",o),...c,children:s})})})},"SidebarRail",0,function({className:e,...r}){let{toggleSidebar:a}=x();return(0,t.jsx)("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:(0,l.cn)("hover:after:bg-sidebar-border absolute inset-y-0 -end-4 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:start-1/2 after:w-0.5 sm:flex","cursor-w-resize rtl:cursor-e-resize","in-data-[state=collapsed]:cursor-e-resize rtl:in-data-[state=collapsed]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:start-full","in-data-[collapsible=offcanvas]:-end-2",e),...r})},"useSidebar",0,x],57638)},38373,e=>{"use strict";var t=e.i(96871),r=e.i(16539);let a=(0,r.createContext)({swapPosition:!1});e.s(["FabLayoutProvider",0,function({children:e,layout:r}){return(0,t.jsx)(a.Provider,{value:r,children:e})},"useFabLayout",0,function(){return(0,r.useContext)(a)}])},5147,e=>{"use strict";var t=e.i(96871),r=e.i(16539);let a={"action-required":"action-needed",running:"in-progress",done:"done",blocked:"blocked",pending:"pending",error:"error",creating:null,deleting:null,archived:null},n=(0,r.createContext)(null);e.s(["SidebarFeaturesProvider",0,function({children:e}){let[a,o]=(0,r.useState)([]),[l,i]=(0,r.useState)(!1),s=(0,r.useMemo)(()=>({features:a,setFeatures:o,hasRepositories:l,setHasRepositories:i}),[a,l]);return(0,t.jsx)(n.Provider,{value:s,children:e})},"mapNodeStateToSidebarStatus",0,function(e){return a[e]},"useSidebarFeaturesContext",0,function(){let e=(0,r.useContext)(n);if(!e)throw Error("useSidebarFeaturesContext must be used within a <SidebarFeaturesProvider>");return e}])},47373,27069,e=>{"use strict";var t=e.i(96871),r=e.i(16539),a=e.i(70309);function n(e,[t,r]){return Math.min(r,Math.max(t,e))}e.s(["clamp",0,n],27069);var o=e.i(91967),l=e.i(87099),i=e.i(22353),s=e.i(9413),c=e.i(75649),d=e.i(3659),u=e.i(87656),f=e.i(62854),p=e.i(11207),m=e.i(73071),g=e.i(76903),h=e.i(85565),v=e.i(60310),b=e.i(88248),x=e.i(36567),y=e.i(18731),w=e.i(9641),S=e.i(87312),j=e.i(73772),C=e.i(69759),P=[" ","Enter","ArrowUp","ArrowDown"],k=[" ","Enter"],D="Select",[N,E,R]=(0,l.createCollection)(D),[T,A]=(0,s.createContextScope)(D,[R,m.createPopperScope]),I=(0,m.createPopperScope)(),[L,_]=T(D),[M,O]=T(D),z=e=>{let{__scopeSelect:a,children:n,open:o,defaultOpen:l,onOpenChange:i,value:s,defaultValue:d,onValueChange:u,dir:f,name:g,autoComplete:h,disabled:v,required:b,form:y}=e,w=I(a),[S,j]=r.useState(null),[C,P]=r.useState(null),[k,E]=r.useState(!1),R=(0,c.useDirection)(f),[T,A]=(0,x.useControllableState)({prop:o,defaultProp:l??!1,onChange:i,caller:D}),[_,O]=(0,x.useControllableState)({prop:s,defaultProp:d,onChange:u,caller:D}),z=r.useRef(null),F=!S||y||!!S.closest("form"),[B,H]=r.useState(new Set),U=Array.from(B).map(e=>e.props.value).join(";");return(0,t.jsx)(m.Root,{...w,children:(0,t.jsxs)(L,{required:b,scope:a,trigger:S,onTriggerChange:j,valueNode:C,onValueNodeChange:P,valueNodeHasChildren:k,onValueNodeHasChildrenChange:E,contentId:(0,p.useId)(),value:_,onValueChange:O,open:T,onOpenChange:A,dir:R,triggerPointerDownPosRef:z,disabled:v,children:[(0,t.jsx)(N.Provider,{scope:a,children:(0,t.jsx)(M,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{H(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{H(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:n})}),F?(0,t.jsxs)(eP,{"aria-hidden":!0,required:b,tabIndex:-1,name:g,autoComplete:h,value:_,onChange:e=>O(e.target.value),disabled:v,form:y,children:[void 0===_?(0,t.jsx)("option",{value:""}):null,Array.from(B)]},U):null]})})};z.displayName=D;var F="SelectTrigger",B=r.forwardRef((e,a)=>{let{__scopeSelect:n,disabled:l=!1,...s}=e,c=I(n),d=_(F,n),u=d.disabled||l,f=(0,i.useComposedRefs)(a,d.onTriggerChange),p=E(n),g=r.useRef("touch"),[v,b,x]=eD(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===d.value),a=eN(t,e,r);void 0!==a&&d.onValueChange(a.value)}),y=e=>{u||(d.onOpenChange(!0),x()),e&&(d.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,t.jsx)(m.Anchor,{asChild:!0,...c,children:(0,t.jsx)(h.Primitive.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":ek(d.value)?"":void 0,...s,ref:f,onClick:(0,o.composeEventHandlers)(s.onClick,e=>{e.currentTarget.focus(),"mouse"!==g.current&&y(e)}),onPointerDown:(0,o.composeEventHandlers)(s.onPointerDown,e=>{g.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,o.composeEventHandlers)(s.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||b(e.key),(!t||" "!==e.key)&&P.includes(e.key)&&(y(),e.preventDefault())})})})});B.displayName=F;var H="SelectValue",U=r.forwardRef((e,r)=>{let{__scopeSelect:a,className:n,style:o,children:l,placeholder:s="",...c}=e,d=_(H,a),{onValueNodeHasChildrenChange:u}=d,f=void 0!==l,p=(0,i.useComposedRefs)(r,d.onValueNodeChange);return(0,y.useLayoutEffect)(()=>{u(f)},[u,f]),(0,t.jsx)(h.Primitive.span,{...c,ref:p,style:{pointerEvents:"none"},children:ek(d.value)?(0,t.jsx)(t.Fragment,{children:s}):l})});U.displayName=H;var $=r.forwardRef((e,r)=>{let{__scopeSelect:a,children:n,...o}=e;return(0,t.jsx)(h.Primitive.span,{"aria-hidden":!0,...o,ref:r,children:n||"▼"})});$.displayName="SelectIcon";var V=e=>(0,t.jsx)(g.Portal,{asChild:!0,...e});V.displayName="SelectPortal";var K="SelectContent",W=r.forwardRef((e,n)=>{let o=_(K,e.__scopeSelect),[l,i]=r.useState();return((0,y.useLayoutEffect)(()=>{i(new DocumentFragment)},[]),o.open)?(0,t.jsx)(Y,{...e,ref:n}):l?a.createPortal((0,t.jsx)(G,{scope:e.__scopeSelect,children:(0,t.jsx)(N.Slot,{scope:e.__scopeSelect,children:(0,t.jsx)("div",{children:e.children})})}),l):null});W.displayName=K;var[G,q]=T(K),X=(0,v.createSlot)("SelectContent.RemoveScroll"),Y=r.forwardRef((e,a)=>{let{__scopeSelect:n,position:l="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:p,side:m,sideOffset:g,align:h,alignOffset:v,arrowPadding:b,collisionBoundary:x,collisionPadding:y,sticky:w,hideWhenDetached:S,avoidCollisions:P,...k}=e,D=_(K,n),[N,R]=r.useState(null),[T,A]=r.useState(null),I=(0,i.useComposedRefs)(a,e=>R(e)),[L,M]=r.useState(null),[O,z]=r.useState(null),F=E(n),[B,H]=r.useState(!1),U=r.useRef(!1);r.useEffect(()=>{if(N)return(0,j.hideOthers)(N)},[N]),(0,u.useFocusGuards)();let $=r.useCallback(e=>{let[t,...r]=F().map(e=>e.ref.current),[a]=r.slice(-1),n=document.activeElement;for(let r of e)if(r===n||(r?.scrollIntoView({block:"nearest"}),r===t&&T&&(T.scrollTop=0),r===a&&T&&(T.scrollTop=T.scrollHeight),r?.focus(),document.activeElement!==n))return},[F,T]),V=r.useCallback(()=>$([L,N]),[$,L,N]);r.useEffect(()=>{B&&V()},[B,V]);let{onOpenChange:W,triggerPointerDownPosRef:q}=D;r.useEffect(()=>{if(N){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(q.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():N.contains(r.target)||W(!1),document.removeEventListener("pointermove",t),q.current=null};return null!==q.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[N,W,q]),r.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[Y,J]=eD(e=>{let t=F().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),a=eN(t,e,r);a&&setTimeout(()=>a.ref.current.focus())}),ee=r.useCallback((e,t,r)=>{let a=!U.current&&!r;(void 0!==D.value&&D.value===t||a)&&(M(e),a&&(U.current=!0))},[D.value]),et=r.useCallback(()=>N?.focus(),[N]),er=r.useCallback((e,t,r)=>{let a=!U.current&&!r;(void 0!==D.value&&D.value===t||a)&&z(e)},[D.value]),ea="popper"===l?Z:Q,en=ea===Z?{side:m,sideOffset:g,align:h,alignOffset:v,arrowPadding:b,collisionBoundary:x,collisionPadding:y,sticky:w,hideWhenDetached:S,avoidCollisions:P}:{};return(0,t.jsx)(G,{scope:n,content:N,viewport:T,onViewportChange:A,itemRefCallback:ee,selectedItem:L,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:V,selectedItemText:O,position:l,isPositioned:B,searchRef:Y,children:(0,t.jsx)(C.RemoveScroll,{as:X,allowPinchZoom:!0,children:(0,t.jsx)(f.FocusScope,{asChild:!0,trapped:D.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,o.composeEventHandlers)(s,e=>{D.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,t.jsx)(d.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:(0,t.jsx)(ea,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:e=>e.preventDefault(),...k,...en,onPlaced:()=>H(!0),ref:I,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:(0,o.composeEventHandlers)(k.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=F().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,a=t.indexOf(r);t=t.slice(a+1)}setTimeout(()=>$(t)),e.preventDefault()}})})})})})})});Y.displayName="SelectContentImpl";var Q=r.forwardRef((e,a)=>{let{__scopeSelect:o,onPlaced:l,...s}=e,c=_(K,o),d=q(K,o),[u,f]=r.useState(null),[p,m]=r.useState(null),g=(0,i.useComposedRefs)(a,e=>m(e)),v=E(o),b=r.useRef(!1),x=r.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:j,focusSelectedItem:C}=d,P=r.useCallback(()=>{if(c.trigger&&c.valueNode&&u&&p&&w&&S&&j){let e=c.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=c.valueNode.getBoundingClientRect(),a=j.getBoundingClientRect();if("rtl"!==c.dir){let o=a.left-t.left,l=r.left-o,i=e.left-l,s=e.width+i,c=Math.max(s,t.width),d=n(l,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=s+"px",u.style.left=d+"px"}else{let o=t.right-a.right,l=window.innerWidth-r.right-o,i=window.innerWidth-e.right-l,s=e.width+i,c=Math.max(s,t.width),d=n(l,[10,Math.max(10,window.innerWidth-10-c)]);u.style.minWidth=s+"px",u.style.right=d+"px"}let o=v(),i=window.innerHeight-20,s=w.scrollHeight,d=window.getComputedStyle(p),f=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),h=f+m+s+parseInt(d.paddingBottom,10)+g,x=Math.min(5*S.offsetHeight,h),y=window.getComputedStyle(w),C=parseInt(y.paddingTop,10),P=parseInt(y.paddingBottom,10),k=e.top+e.height/2-10,D=S.offsetHeight/2,N=f+m+(S.offsetTop+D);if(N<=k){let e=o.length>0&&S===o[o.length-1].ref.current;u.style.bottom="0px";let t=Math.max(i-k,D+(e?P:0)+(p.clientHeight-w.offsetTop-w.offsetHeight)+g);u.style.height=N+t+"px"}else{let e=o.length>0&&S===o[0].ref.current;u.style.top="0px";let t=Math.max(k,f+w.offsetTop+(e?C:0)+D);u.style.height=t+(h-N)+"px",w.scrollTop=N-k+w.offsetTop}u.style.margin="10px 0",u.style.minHeight=x+"px",u.style.maxHeight=i+"px",l?.(),requestAnimationFrame(()=>b.current=!0)}},[v,c.trigger,c.valueNode,u,p,w,S,j,c.dir,l]);(0,y.useLayoutEffect)(()=>P(),[P]);let[k,D]=r.useState();(0,y.useLayoutEffect)(()=>{p&&D(window.getComputedStyle(p).zIndex)},[p]);let N=r.useCallback(e=>{e&&!0===x.current&&(P(),C?.(),x.current=!1)},[P,C]);return(0,t.jsx)(J,{scope:o,contentWrapper:u,shouldExpandOnScrollRef:b,onScrollButtonChange:N,children:(0,t.jsx)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,t.jsx)(h.Primitive.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Q.displayName="SelectItemAlignedPosition";var Z=r.forwardRef((e,r)=>{let{__scopeSelect:a,align:n="start",collisionPadding:o=10,...l}=e,i=I(a);return(0,t.jsx)(m.Content,{...i,...l,ref:r,align:n,collisionPadding:o,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Z.displayName="SelectPopperPosition";var[J,ee]=T(K,{}),et="SelectViewport",er=r.forwardRef((e,a)=>{let{__scopeSelect:n,nonce:l,...s}=e,c=q(et,n),d=ee(et,n),u=(0,i.useComposedRefs)(a,c.onViewportChange),f=r.useRef(0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,t.jsx)(N.Slot,{scope:n,children:(0,t.jsx)(h.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:(0,o.composeEventHandlers)(s.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:a}=d;if(a?.current&&r){let e=Math.abs(f.current-t.scrollTop);if(e>0){let a=window.innerHeight-20,n=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(n<a){let o=n+e,l=Math.min(a,o),i=o-l;r.style.height=l+"px","0px"===r.style.bottom&&(t.scrollTop=i>0?i:0,r.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})});er.displayName=et;var ea="SelectGroup",[en,eo]=T(ea),el=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e,o=(0,p.useId)();return(0,t.jsx)(en,{scope:a,id:o,children:(0,t.jsx)(h.Primitive.div,{role:"group","aria-labelledby":o,...n,ref:r})})});el.displayName=ea;var ei="SelectLabel",es=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e,o=eo(ei,a);return(0,t.jsx)(h.Primitive.div,{id:o.id,...n,ref:r})});es.displayName=ei;var ec="SelectItem",[ed,eu]=T(ec),ef=r.forwardRef((e,a)=>{let{__scopeSelect:n,value:l,disabled:s=!1,textValue:c,...d}=e,u=_(ec,n),f=q(ec,n),m=u.value===l,[g,v]=r.useState(c??""),[b,x]=r.useState(!1),y=(0,i.useComposedRefs)(a,e=>f.itemRefCallback?.(e,l,s)),w=(0,p.useId)(),S=r.useRef("touch"),j=()=>{s||(u.onValueChange(l),u.onOpenChange(!1))};if(""===l)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,t.jsx)(ed,{scope:n,value:l,disabled:s,textId:w,isSelected:m,onItemTextChange:r.useCallback(e=>{v(t=>t||(e?.textContent??"").trim())},[]),children:(0,t.jsx)(N.ItemSlot,{scope:n,value:l,disabled:s,textValue:g,children:(0,t.jsx)(h.Primitive.div,{role:"option","aria-labelledby":w,"data-highlighted":b?"":void 0,"aria-selected":m&&b,"data-state":m?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...d,ref:y,onFocus:(0,o.composeEventHandlers)(d.onFocus,()=>x(!0)),onBlur:(0,o.composeEventHandlers)(d.onBlur,()=>x(!1)),onClick:(0,o.composeEventHandlers)(d.onClick,()=>{"mouse"!==S.current&&j()}),onPointerUp:(0,o.composeEventHandlers)(d.onPointerUp,()=>{"mouse"===S.current&&j()}),onPointerDown:(0,o.composeEventHandlers)(d.onPointerDown,e=>{S.current=e.pointerType}),onPointerMove:(0,o.composeEventHandlers)(d.onPointerMove,e=>{S.current=e.pointerType,s?f.onItemLeave?.():"mouse"===S.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,o.composeEventHandlers)(d.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:(0,o.composeEventHandlers)(d.onKeyDown,e=>{(f.searchRef?.current===""||" "!==e.key)&&(k.includes(e.key)&&j()," "===e.key&&e.preventDefault())})})})})});ef.displayName=ec;var ep="SelectItemText",em=r.forwardRef((e,n)=>{let{__scopeSelect:o,className:l,style:s,...c}=e,d=_(ep,o),u=q(ep,o),f=eu(ep,o),p=O(ep,o),[m,g]=r.useState(null),v=(0,i.useComposedRefs)(n,e=>g(e),f.onItemTextChange,e=>u.itemTextRefCallback?.(e,f.value,f.disabled)),b=m?.textContent,x=r.useMemo(()=>(0,t.jsx)("option",{value:f.value,disabled:f.disabled,children:b},f.value),[f.disabled,f.value,b]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=p;return(0,y.useLayoutEffect)(()=>(w(x),()=>S(x)),[w,S,x]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h.Primitive.span,{id:f.textId,...c,ref:v}),f.isSelected&&d.valueNode&&!d.valueNodeHasChildren?a.createPortal(c.children,d.valueNode):null]})});em.displayName=ep;var eg="SelectItemIndicator",eh=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e;return eu(eg,a).isSelected?(0,t.jsx)(h.Primitive.span,{"aria-hidden":!0,...n,ref:r}):null});eh.displayName=eg;var ev="SelectScrollUpButton",eb=r.forwardRef((e,a)=>{let n=q(ev,e.__scopeSelect),o=ee(ev,e.__scopeSelect),[l,s]=r.useState(!1),c=(0,i.useComposedRefs)(a,o.onScrollButtonChange);return(0,y.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){s(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,t.jsx)(ew,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});eb.displayName=ev;var ex="SelectScrollDownButton",ey=r.forwardRef((e,a)=>{let n=q(ex,e.__scopeSelect),o=ee(ex,e.__scopeSelect),[l,s]=r.useState(!1),c=(0,i.useComposedRefs)(a,o.onScrollButtonChange);return(0,y.useLayoutEffect)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;s(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),l?(0,t.jsx)(ew,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ey.displayName=ex;var ew=r.forwardRef((e,a)=>{let{__scopeSelect:n,onAutoScroll:l,...i}=e,s=q("SelectScrollButton",n),c=r.useRef(null),d=E(n),u=r.useCallback(()=>{null!==c.current&&(window.clearInterval(c.current),c.current=null)},[]);return r.useEffect(()=>()=>u(),[u]),(0,y.useLayoutEffect)(()=>{let e=d().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[d]),(0,t.jsx)(h.Primitive.div,{"aria-hidden":!0,...i,ref:a,style:{flexShrink:0,...i.style},onPointerDown:(0,o.composeEventHandlers)(i.onPointerDown,()=>{null===c.current&&(c.current=window.setInterval(l,50))}),onPointerMove:(0,o.composeEventHandlers)(i.onPointerMove,()=>{s.onItemLeave?.(),null===c.current&&(c.current=window.setInterval(l,50))}),onPointerLeave:(0,o.composeEventHandlers)(i.onPointerLeave,()=>{u()})})}),eS=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e;return(0,t.jsx)(h.Primitive.div,{"aria-hidden":!0,...n,ref:r})});eS.displayName="SelectSeparator";var ej="SelectArrow",eC=r.forwardRef((e,r)=>{let{__scopeSelect:a,...n}=e,o=I(a),l=_(ej,a),i=q(ej,a);return l.open&&"popper"===i.position?(0,t.jsx)(m.Arrow,{...o,...n,ref:r}):null});eC.displayName=ej;var eP=r.forwardRef(({__scopeSelect:e,value:a,...n},o)=>{let l=r.useRef(null),s=(0,i.useComposedRefs)(o,l),c=(0,w.usePrevious)(a);return r.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(c!==a&&t){let r=new Event("change",{bubbles:!0});t.call(e,a),e.dispatchEvent(r)}},[c,a]),(0,t.jsx)(h.Primitive.select,{...n,style:{...S.VISUALLY_HIDDEN_STYLES,...n.style},ref:s,defaultValue:a})});function ek(e){return""===e||void 0===e}function eD(e){let t=(0,b.useCallbackRef)(e),a=r.useRef(""),n=r.useRef(0),o=r.useCallback(e=>{let r=a.current+e;t(r),function e(t){a.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),l=r.useCallback(()=>{a.current="",window.clearTimeout(n.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(n.current),[]),[a,o,l]}function eN(e,t,r){var a,n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=r?e.indexOf(r):-1,i=(a=e,n=Math.max(l,0),a.map((e,t)=>a[(n+t)%a.length]));1===o.length&&(i=i.filter(e=>e!==r));let s=i.find(e=>e.textValue.toLowerCase().startsWith(o.toLowerCase()));return s!==r?s:void 0}eP.displayName="SelectBubbleInput",e.s(["Arrow",0,eC,"Content",0,W,"Group",0,el,"Icon",0,$,"Item",0,ef,"ItemIndicator",0,eh,"ItemText",0,em,"Label",0,es,"Portal",0,V,"Root",0,z,"ScrollDownButton",0,ey,"ScrollUpButton",0,eb,"Select",0,z,"SelectArrow",0,eC,"SelectContent",0,W,"SelectGroup",0,el,"SelectIcon",0,$,"SelectItem",0,ef,"SelectItemIndicator",0,eh,"SelectItemText",0,em,"SelectLabel",0,es,"SelectPortal",0,V,"SelectScrollDownButton",0,ey,"SelectScrollUpButton",0,eb,"SelectSeparator",0,eS,"SelectTrigger",0,B,"SelectValue",0,U,"SelectViewport",0,er,"Separator",0,eS,"Trigger",0,B,"Value",0,U,"Viewport",0,er,"createSelectScope",0,A],74522);var eE=e.i(74522),eE=eE,eR=e.i(23925),eT=e.i(99105),eA=e.i(27728),eI=e.i(31777);let eL=eE.Root;eE.Group;let e_=eE.Value,eM=r.forwardRef(({className:e,children:r,...a},n)=>(0,t.jsxs)(eE.Trigger,{ref:n,className:(0,eI.cn)("border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-sm focus:ring-1 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[r,(0,t.jsx)(eE.Icon,{asChild:!0,children:(0,t.jsx)(eT.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));eM.displayName=eE.Trigger.displayName;let eO=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(eE.ScrollUpButton,{ref:a,className:(0,eI.cn)("flex cursor-default items-center justify-center py-1",e),...r,children:(0,t.jsx)(eA.ChevronUp,{className:"h-4 w-4"})}));eO.displayName=eE.ScrollUpButton.displayName;let ez=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(eE.ScrollDownButton,{ref:a,className:(0,eI.cn)("flex cursor-default items-center justify-center py-1",e),...r,children:(0,t.jsx)(eT.ChevronDown,{className:"h-4 w-4"})}));ez.displayName=eE.ScrollDownButton.displayName;let eF=r.forwardRef(({className:e,children:r,position:a="popper",...n},o)=>(0,t.jsx)(eE.Portal,{children:(0,t.jsxs)(eE.Content,{ref:o,className:(0,eI.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...n,children:[(0,t.jsx)(eO,{}),(0,t.jsx)(eE.Viewport,{className:(0,eI.cn)("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),(0,t.jsx)(ez,{})]})}));eF.displayName=eE.Content.displayName,r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(eE.Label,{ref:a,className:(0,eI.cn)("px-2 py-1.5 text-sm font-semibold",e),...r})).displayName=eE.Label.displayName;let eB=r.forwardRef(({className:e,children:r,...a},n)=>(0,t.jsxs)(eE.Item,{ref:n,className:(0,eI.cn)("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 ps-2 pe-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,t.jsx)("span",{className:"absolute end-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,t.jsx)(eE.ItemIndicator,{children:(0,t.jsx)(eR.Check,{className:"h-4 w-4"})})}),(0,t.jsx)(eE.ItemText,{children:r})]}));eB.displayName=eE.Item.displayName,r.forwardRef(({className:e,...r},a)=>(0,t.jsx)(eE.Separator,{ref:a,className:(0,eI.cn)("bg-muted -mx-1 my-1 h-px",e),...r})).displayName=eE.Separator.displayName,e.s(["Select",0,eL,"SelectContent",0,eF,"SelectItem",0,eB,"SelectTrigger",0,eM,"SelectValue",0,e_],47373)},89305,e=>{e.v(t=>Promise.all(["static/chunks/07yqyvabetyrh.js"].map(t=>e.l(t))).then(()=>t(15567)))}]);
package/web/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@assistant-ui/react": "^0.12.19",
19
19
  "@assistant-ui/react-markdown": "^0.12.6",
20
- "@dagrejs/dagre": "^3.0.0",
20
+ "@dagrejs/dagre": "^2.0.4",
21
21
  "@shipit-ai/core": "workspace:*",
22
22
  "@tanstack/react-query": "^5.95.1",
23
23
  "@xyflow/react": "^12.10.0",
@@ -1,3 +0,0 @@
1
- module.exports=[55628,a=>{"use strict";var b=a.i(11321),c=a.i(30920),d=a.i(74080),e=a.i(46956),f=a.i(6120);let g=(0,f.createServerReference)("40a8c7eca5cab59dc2d6c474fd49c55474341032b6",f.callServer,void 0,f.findSourceMapURL,"syncRepository");a.s(["useRepositoryActions",0,function(a){let[f,h]=(0,b.useState)(!1),[i,j]=(0,b.useState)(!1),[k,l]=(0,b.useState)(!1),[m,n]=(0,b.useState)(!1),[o,p]=(0,b.useState)(null),[q,r]=(0,b.useState)(null),[s,t]=(0,b.useState)(null),[u,v]=(0,b.useState)(null),w=(0,b.useRef)(null),x=(0,b.useRef)(null),y=(0,b.useRef)(null),z=(0,b.useRef)(null);(0,b.useEffect)(()=>()=>{w.current&&clearTimeout(w.current),x.current&&clearTimeout(x.current),y.current&&clearTimeout(y.current),z.current&&clearTimeout(z.current)},[]);let A=(0,b.useCallback)(async(b,c,d,e,f)=>{if(a&&!f){e.current&&clearTimeout(e.current),c(!0),d(null);try{let a=await b();if(!a.success){let b=a.error??"An unexpected error occurred";d(b),e.current=setTimeout(()=>d(null),5e3)}}catch(a){d(a instanceof Error?a.message:"An unexpected error occurred"),e.current=setTimeout(()=>d(null),5e3)}finally{c(!1)}}},[a]);return{openInIde:(0,b.useCallback)(()=>A(()=>(0,c.openIde)({repositoryPath:a.repositoryPath}),h,p,w,f),[A,f,a]),openInShell:(0,b.useCallback)(()=>A(()=>(0,d.openShell)({repositoryPath:a.repositoryPath}),j,r,x,i),[A,i,a]),openFolder:(0,b.useCallback)(()=>A(()=>(0,e.openFolder)(a.repositoryPath),l,t,y,k),[A,k,a]),syncMain:(0,b.useCallback)(()=>A(()=>g(a.repositoryId??""),n,v,z,m),[A,m,a]),ideLoading:f,shellLoading:i,folderLoading:k,syncLoading:m,ideError:o,shellError:q,folderError:s,syncError:u}}],55628)},53170,a=>{"use strict";let b=(0,a.i(25700).default)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);a.s(["GitBranch",0,b],53170)},71238,a=>{"use strict";let b=(0,a.i(25700).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);a.s(["ExternalLink",0,b],71238)},63698,a=>{"use strict";let b=(0,a.i(25700).default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);a.s(["Terminal",0,b],63698)},78454,a=>{"use strict";a.i(24255),a.s([])},3195,a=>{"use strict";let b=(0,a.i(25700).default)("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);a.s(["FolderOpen",0,b],3195)},33511,a=>{"use strict";let b=(0,a.i(25700).default)("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);a.s(["Archive",0,b],33511)},50488,a=>{"use strict";let b=(0,a.i(25700).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);a.s(["Code2",0,b],50488)},92548,a=>{"use strict";let b=(0,a.i(25700).default)("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);a.s(["GitCommitHorizontal",0,b],92548)},30920,74080,46956,a=>{"use strict";var b=a.i(6120);let c=(0,b.createServerReference)("400ddb1857d7b830547917b796fac2ee51625f68a0",b.callServer,void 0,b.findSourceMapURL,"openIde");a.s(["openIde",0,c],30920);let d=(0,b.createServerReference)("407eae38576531839b5cd510abf21bcea13dbb1138",b.callServer,void 0,b.findSourceMapURL,"openShell");a.s(["openShell",0,d],74080);let e=(0,b.createServerReference)("400e4e1be6c0f67a681be14be765969b4600a6369d",b.callServer,void 0,b.findSourceMapURL,"openFolder");a.s(["openFolder",0,e],46956)},91498,a=>{"use strict";let b=(0,a.i(25700).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);a.s(["AlertTriangle",0,b],91498)},10606,a=>{"use strict";var b=a.i(51969);a.s(["CheckIcon",()=>b.default])},4019,67075,a=>{"use strict";let b=(0,a.i(25700).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);a.s(["Circle",0,b],4019);var c=a.i(2811);a.s(["CheckCircle2",()=>c.default],67075)},67837,a=>{"use strict";let b=(0,a.i(25700).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);a.s(["Plus",0,b],67837)},96853,a=>{"use strict";let b=(0,a.i(25700).default)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);a.s(["default",0,b])},38702,16223,a=>{"use strict";var b=a.i(53083),c=a.i(85536);a.s(["EmptyState",0,function({icon:a,title:d,description:e,action:f,className:g,...h}){return(0,b.jsxs)("div",{className:(0,c.cn)("flex flex-col items-center gap-4 px-4 py-12 text-center",g),...h,children:[a?(0,b.jsx)("div",{className:"text-muted-foreground",children:a}):null,(0,b.jsx)("h3",{className:"text-lg font-semibold",children:d}),e?(0,b.jsx)("p",{className:"text-muted-foreground max-w-md text-sm",children:e}):null,f?(0,b.jsx)("div",{className:"mt-2",children:f}):null]})}],16223),a.s([],38702)},42527,a=>{"use strict";let b=(0,a.i(25700).default)("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);a.s(["FolderPlus",0,b],42527)},27815,a=>{"use strict";var b=a.i(6120);let c=(0,b.createServerReference)("403bde15afb1bde25e406a63031eb0bd4a9d3294ef",b.callServer,void 0,b.findSourceMapURL,"addRepository");a.s(["addRepository",0,c])}];
2
-
3
- //# sourceMappingURL=_12nazf8._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[16605,a=>{"use strict";let b=(0,a.i(25700).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);a.s(["Trash2",0,b],16605)},81781,a=>{"use strict";let b=(0,a.i(25700).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);a.s(["User",0,b],81781)},42241,32591,a=>{"use strict";var b=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};a.s(["Subscribable",0,b],32591);var c=new class extends b{#a;#b;#c;constructor(){super(),this.#c=a=>{}}onSubscribe(){this.#b||this.setEventListener(this.#c)}onUnsubscribe(){this.hasListeners()||(this.#b?.(),this.#b=void 0)}setEventListener(a){this.#c=a,this.#b?.(),this.#b=a(a=>{"boolean"==typeof a?this.setFocused(a):this.onFocus()})}setFocused(a){this.#a!==a&&(this.#a=a,this.onFocus())}onFocus(){let a=this.isFocused();this.listeners.forEach(b=>{b(a)})}isFocused(){return"boolean"==typeof this.#a?this.#a:globalThis.document?.visibilityState!=="hidden"}};a.s(["focusManager",0,c],42241)},89734,66705,a=>{"use strict";var b={setTimeout:(a,b)=>setTimeout(a,b),clearTimeout:a=>clearTimeout(a),setInterval:(a,b)=>setInterval(a,b),clearInterval:a=>clearInterval(a)},c=new class{#d=b;#e=!1;setTimeoutProvider(a){this.#d=a}setTimeout(a,b){return this.#d.setTimeout(a,b)}clearTimeout(a){this.#d.clearTimeout(a)}setInterval(a,b){return this.#d.setInterval(a,b)}clearInterval(a){this.#d.clearInterval(a)}};function d(a,b){return(b?.queryKeyHashFn||e)(a)}function e(a){return JSON.stringify(a,(a,b)=>i(b)?Object.keys(b).sort().reduce((a,c)=>(a[c]=b[c],a),{}):b)}function f(a,b){return a===b||typeof a==typeof b&&!!a&&!!b&&"object"==typeof a&&"object"==typeof b&&Object.keys(b).every(c=>f(a[c],b[c]))}a.s(["systemSetTimeoutZero",0,function(a){setTimeout(a,0)},"timeoutManager",0,c],66705);var g=Object.prototype.hasOwnProperty;function h(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function i(a){if(!j(a))return!1;let b=a.constructor;if(void 0===b)return!0;let c=b.prototype;return!!j(c)&&!!c.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(a)===Object.prototype}function j(a){return"[object Object]"===Object.prototype.toString.call(a)}var k=Symbol();a.s(["addConsumeAwareSignal",0,function(a,b,c){let d,e=!1;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(d??=b(),e||(e=!0,d.aborted?c():d.addEventListener("abort",c,{once:!0})),d)}),a},"addToEnd",0,function(a,b,c=0){let d=[...a,b];return c&&d.length>c?d.slice(1):d},"addToStart",0,function(a,b,c=0){let d=[b,...a];return c&&d.length>c?d.slice(0,-1):d},"ensureQueryFn",0,function(a,b){return!a.queryFn&&b?.initialPromise?()=>b.initialPromise:a.queryFn&&a.queryFn!==k?a.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${a.queryHash}'`))},"functionalUpdate",0,function(a,b){return"function"==typeof a?a(b):a},"hashKey",0,e,"hashQueryKeyByOptions",0,d,"isServer",0,!0,"isValidTimeout",0,function(a){return"number"==typeof a&&a>=0&&a!==1/0},"matchMutation",0,function(a,b){let{exact:c,status:d,predicate:g,mutationKey:h}=a;if(h){if(!b.options.mutationKey)return!1;if(c){if(e(b.options.mutationKey)!==e(h))return!1}else if(!f(b.options.mutationKey,h))return!1}return(!d||b.state.status===d)&&(!g||!!g(b))},"matchQuery",0,function(a,b){let{type:c="all",exact:e,fetchStatus:g,predicate:h,queryKey:i,stale:j}=a;if(i){if(e){if(b.queryHash!==d(i,b.options))return!1}else if(!f(b.queryKey,i))return!1}if("all"!==c){let a=b.isActive();if("active"===c&&!a||"inactive"===c&&a)return!1}return("boolean"!=typeof j||b.isStale()===j)&&(!g||g===b.state.fetchStatus)&&(!h||!!h(b))},"noop",0,function(){},"partialMatchKey",0,f,"replaceData",0,function(a,b,c){return"function"==typeof c.structuralSharing?c.structuralSharing(a,b):!1!==c.structuralSharing?function a(b,c,d=0){if(b===c)return b;if(d>500)return c;let e=h(b)&&h(c);if(!e&&!(i(b)&&i(c)))return c;let f=(e?b:Object.keys(b)).length,j=e?c:Object.keys(c),k=j.length,l=e?Array(k):{},m=0;for(let h=0;h<k;h++){let i=e?h:j[h],k=b[i],n=c[i];if(k===n){l[i]=k,(e?h<f:g.call(b,i))&&m++;continue}if(null===k||null===n||"object"!=typeof k||"object"!=typeof n){l[i]=n;continue}let o=a(k,n,d+1);l[i]=o,o===k&&m++}return f===k&&m===f?b:l}(a,b):b},"resolveEnabled",0,function(a,b){return"function"==typeof a?a(b):a},"resolveStaleTime",0,function(a,b){return"function"==typeof a?a(b):a},"shallowEqualObjects",0,function(a,b){if(!b||Object.keys(a).length!==Object.keys(b).length)return!1;for(let c in a)if(a[c]!==b[c])return!1;return!0},"shouldThrowError",0,function(a,b){return"function"==typeof a?a(...b):!!a},"skipToken",0,k,"sleep",0,function(a){return new Promise(b=>{c.setTimeout(b,a)})},"timeUntilStale",0,function(a,b){return Math.max(a+(b||0)-Date.now(),0)}],89734)},68770,a=>{"use strict";let b;var c=a.i(89734),d=(b=()=>c.isServer,{isServer:()=>b(),setIsServer(a){b=a}});a.s(["environmentManager",0,d])},54646,a=>{"use strict";let b,c,d,e,f,g;var h=a.i(66705).systemSetTimeoutZero,i=(b=[],c=0,d=a=>{a()},e=a=>{a()},f=h,{batch:a=>{let g;c++;try{g=a()}finally{let a;--c||(a=b,b=[],a.length&&f(()=>{e(()=>{a.forEach(a=>{d(a)})})}))}return g},batchCalls:a=>(...b)=>{g(()=>{a(...b)})},schedule:g=a=>{c?b.push(a):f(()=>{d(a)})},setNotifyFunction:a=>{d=a},setBatchNotifyFunction:a=>{e=a},setScheduler:a=>{f=a}});a.s(["notifyManager",0,i])},68486,28432,a=>{"use strict";var b=a.i(32591),c=new class extends b.Subscribable{#f=!0;#b;#c;constructor(){super(),this.#c=a=>{}}onSubscribe(){this.#b||this.setEventListener(this.#c)}onUnsubscribe(){this.hasListeners()||(this.#b?.(),this.#b=void 0)}setEventListener(a){this.#c=a,this.#b?.(),this.#b=a(this.setOnline.bind(this))}setOnline(a){this.#f!==a&&(this.#f=a,this.listeners.forEach(b=>{b(a)}))}isOnline(){return this.#f}};a.s(["onlineManager",0,c],68486),a.i(89734),a.s(["pendingThenable",0,function(){let a,b,c=new Promise((c,d)=>{a=c,b=d});function d(a){Object.assign(c,a),delete c.resolve,delete c.reject}return c.status="pending",c.catch(()=>{}),c.resolve=b=>{d({status:"fulfilled",value:b}),a(b)},c.reject=a=>{d({status:"rejected",reason:a}),b(a)},c}],28432)},88111,24329,14466,19301,a=>{"use strict";var b=a.i(89734),c=a.i(54646),d=a.i(42241),e=a.i(68486),f=a.i(28432),g=a.i(68770);function h(a){return Math.min(1e3*2**a,3e4)}function i(a){return(a??"online")!=="online"||e.onlineManager.isOnline()}var j=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function k(a){let c,k=!1,l=0,m=(0,f.pendingThenable)(),n=()=>d.focusManager.isFocused()&&("always"===a.networkMode||e.onlineManager.isOnline())&&a.canRun(),o=()=>i(a.networkMode)&&a.canRun(),p=a=>{"pending"===m.status&&(c?.(),m.resolve(a))},q=a=>{"pending"===m.status&&(c?.(),m.reject(a))},r=()=>new Promise(b=>{c=a=>{("pending"!==m.status||n())&&b(a)},a.onPause?.()}).then(()=>{c=void 0,"pending"===m.status&&a.onContinue?.()}),s=()=>{let c;if("pending"!==m.status)return;let d=0===l?a.initialPromise:void 0;try{c=d??a.fn()}catch(a){c=Promise.reject(a)}Promise.resolve(c).then(p).catch(c=>{if("pending"!==m.status)return;let d=a.retry??3*!g.environmentManager.isServer(),e=a.retryDelay??h,f="function"==typeof e?e(l,c):e,i=!0===d||"number"==typeof d&&l<d||"function"==typeof d&&d(l,c);k||!i?q(c):(l++,a.onFail?.(l,c),(0,b.sleep)(f).then(()=>n()?void 0:r()).then(()=>{k?q(c):s()}))})};return{promise:m,status:()=>m.status,cancel:b=>{if("pending"===m.status){let c=new j(b);q(c),a.onCancel?.(c)}},continue:()=>(c?.(),m),cancelRetry:()=>{k=!0},continueRetry:()=>{k=!1},canStart:o,start:()=>(o()?s():r().then(s),m)}}a.s(["CancelledError",0,j,"canFetch",0,i,"createRetryer",0,k],24329);var l=a.i(66705),m=class{#g;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,b.isValidTimeout)(this.gcTime)&&(this.#g=l.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(g.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){this.#g&&(l.timeoutManager.clearTimeout(this.#g),this.#g=void 0)}};a.s(["Removable",0,m],14466);var n=class extends m{#h;#i;#j;#k;#l;#m;#n;constructor(a){super(),this.#n=!1,this.#m=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#k=a.client,this.#j=this.#k.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#h=q(this.options),this.state=a.state??this.#h,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(a){if(this.options={...this.#m,...a},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let a=q(this.options);void 0!==a.data&&(this.setState(p(a.data,a.dataUpdatedAt)),this.#h=a)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#j.remove(this)}setData(a,c){let d=(0,b.replaceData)(this.state.data,a,this.options);return this.#o({data:d,type:"success",dataUpdatedAt:c?.updatedAt,manual:c?.manual}),d}setState(a,b){this.#o({type:"setState",state:a,setStateOptions:b})}cancel(a){let c=this.#l?.promise;return this.#l?.cancel(a),c?c.then(b.noop).catch(b.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#h}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>!1!==(0,b.resolveEnabled)(a.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===b.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(a=>"static"===(0,b.resolveStaleTime)(a.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(a=0){return void 0===this.state.data||"static"!==a&&(!!this.state.isInvalidated||!(0,b.timeUntilStale)(this.state.dataUpdatedAt,a))}onFocus(){let a=this.observers.find(a=>a.shouldFetchOnWindowFocus());a?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){let a=this.observers.find(a=>a.shouldFetchOnReconnect());a?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#j.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(b=>b!==a),this.observers.length||(this.#l&&(this.#n||this.#p()?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#j.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}#p(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(a,c){let d;if("idle"!==this.state.fetchStatus&&this.#l?.status()!=="rejected"){if(void 0!==this.state.data&&c?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(a&&this.setOptions(a),!this.options.queryFn){let a=this.observers.find(a=>a.options.queryFn);a&&this.setOptions(a.options)}let e=new AbortController,f=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#n=!0,e.signal)})},g=()=>{let a,d=(0,b.ensureQueryFn)(this.options,c),e=(f(a={client:this.#k,queryKey:this.queryKey,meta:this.meta}),a);return(this.#n=!1,this.options.persister)?this.options.persister(d,e,this):d(e)},h=(f(d={fetchOptions:c,options:this.options,queryKey:this.queryKey,client:this.#k,state:this.state,fetchFn:g}),d);this.options.behavior?.onFetch(h,this),this.#i=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#o({type:"fetch",meta:h.fetchOptions?.meta}),this.#l=k({initialPromise:c?.initialPromise,fn:h.fetchFn,onCancel:a=>{a instanceof j&&a.revert&&this.setState({...this.#i,fetchStatus:"idle"}),e.abort()},onFail:(a,b)=>{this.#o({type:"failed",failureCount:a,error:b})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{let a=await this.#l.start();if(void 0===a)throw Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#j.config.onSuccess?.(a,this),this.#j.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof j){if(a.silent)return this.#l.promise;else if(a.revert){if(void 0===this.state.data)throw a;return this.state.data}}throw this.#o({type:"error",error:a}),this.#j.config.onError?.(a,this),this.#j.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#o(a){let b=b=>{switch(a.type){case"failed":return{...b,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...b,fetchStatus:"paused"};case"continue":return{...b,fetchStatus:"fetching"};case"fetch":return{...b,...o(b.data,this.options),fetchMeta:a.meta??null};case"success":let c={...b,...p(a.data,a.dataUpdatedAt),dataUpdateCount:b.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#i=a.manual?c:void 0,c;case"error":let d=a.error;return{...b,error:d,errorUpdateCount:b.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:b.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...b,isInvalidated:!0};case"setState":return{...b,...a.state}}};this.state=b(this.state),c.notifyManager.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#j.notify({query:this,type:"updated",action:a})})}};function o(a,b){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:i(b.networkMode)?"fetching":"paused",...void 0===a&&{error:null,status:"pending"}}}function p(a,b){return{data:a,dataUpdatedAt:b??Date.now(),error:null,isInvalidated:!1,status:"success"}}function q(a){let b="function"==typeof a.initialData?a.initialData():a.initialData,c=void 0!==b,d=c?"function"==typeof a.initialDataUpdatedAt?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:b,dataUpdateCount:0,dataUpdatedAt:c?d??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}a.s(["Query",0,n,"fetchState",0,o],88111);var r=a.i(11321),s=a.i(53083),t=r.createContext(void 0);a.s(["QueryClientProvider",0,({client:a,children:b})=>(r.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),(0,s.jsx)(t.Provider,{value:a,children:b})),"useQueryClient",0,a=>{let b=r.useContext(t);if(a)return a;if(!b)throw Error("No QueryClient set, use QueryClientProvider to set one");return b}],19301)},61230,a=>{"use strict";let b;var c=a.i(42241),d=a.i(68770),e=a.i(54646),f=a.i(88111),g=a.i(32591),h=a.i(28432),i=a.i(89734),j=a.i(66705),k=class extends g.Subscribable{constructor(a,b){super(),this.options=b,this.#k=a,this.#q=null,this.#r=(0,h.pendingThenable)(),this.bindMethods(),this.setOptions(b)}#k;#s=void 0;#t=void 0;#u=void 0;#v;#w;#r;#q;#x;#y;#z;#A;#B;#C;#D=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),l(this.#s,this.options)?this.#E():this.updateResult(),this.#F())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return m(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return m(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#G(),this.#H(),this.#s.removeObserver(this)}setOptions(a){let b=this.options,c=this.#s;if(this.options=this.#k.defaultQueryOptions(a),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,i.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#I(),this.#s.setOptions(this.options),b._defaulted&&!(0,i.shallowEqualObjects)(this.options,b)&&this.#k.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let d=this.hasListeners();d&&n(this.#s,c,this.options,b)&&this.#E(),this.updateResult(),d&&(this.#s!==c||(0,i.resolveEnabled)(this.options.enabled,this.#s)!==(0,i.resolveEnabled)(b.enabled,this.#s)||(0,i.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,i.resolveStaleTime)(b.staleTime,this.#s))&&this.#J();let e=this.#K();d&&(this.#s!==c||(0,i.resolveEnabled)(this.options.enabled,this.#s)!==(0,i.resolveEnabled)(b.enabled,this.#s)||e!==this.#C)&&this.#L(e)}getOptimisticResult(a){var b,c;let d=this.#k.getQueryCache().build(this.#k,a),e=this.createResult(d,a);return b=this,c=e,(0,i.shallowEqualObjects)(b.getCurrentResult(),c)||(this.#u=e,this.#w=this.options,this.#v=this.#s.state),e}getCurrentResult(){return this.#u}trackResult(a,b){return new Proxy(a,{get:(a,c)=>(this.trackProp(c),b?.(c),"promise"===c&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,c))})}trackProp(a){this.#D.add(a)}getCurrentQuery(){return this.#s}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){let b=this.#k.defaultQueryOptions(a),c=this.#k.getQueryCache().build(this.#k,b);return c.fetch().then(()=>this.createResult(c,b))}fetch(a){return this.#E({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#u))}#E(a){this.#I();let b=this.#s.fetch(this.options,a);return a?.throwOnError||(b=b.catch(i.noop)),b}#J(){this.#G();let a=(0,i.resolveStaleTime)(this.options.staleTime,this.#s);if(d.environmentManager.isServer()||this.#u.isStale||!(0,i.isValidTimeout)(a))return;let b=(0,i.timeUntilStale)(this.#u.dataUpdatedAt,a);this.#A=j.timeoutManager.setTimeout(()=>{this.#u.isStale||this.updateResult()},b+1)}#K(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#L(a){this.#H(),this.#C=a,!d.environmentManager.isServer()&&!1!==(0,i.resolveEnabled)(this.options.enabled,this.#s)&&(0,i.isValidTimeout)(this.#C)&&0!==this.#C&&(this.#B=j.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||c.focusManager.isFocused())&&this.#E()},this.#C))}#F(){this.#J(),this.#L(this.#K())}#G(){this.#A&&(j.timeoutManager.clearTimeout(this.#A),this.#A=void 0)}#H(){this.#B&&(j.timeoutManager.clearInterval(this.#B),this.#B=void 0)}createResult(a,b){let c,d=this.#s,e=this.options,g=this.#u,j=this.#v,k=this.#w,m=a!==d?a.state:this.#t,{state:p}=a,q={...p},r=!1;if(b._optimisticResults){let c=this.hasListeners(),g=!c&&l(a,b),h=c&&n(a,d,b,e);(g||h)&&(q={...q,...(0,f.fetchState)(p.data,a.options)}),"isRestoring"===b._optimisticResults&&(q.fetchStatus="idle")}let{error:s,errorUpdatedAt:t,status:u}=q;c=q.data;let v=!1;if(void 0!==b.placeholderData&&void 0===c&&"pending"===u){let a;g?.isPlaceholderData&&b.placeholderData===k?.placeholderData?(a=g.data,v=!0):a="function"==typeof b.placeholderData?b.placeholderData(this.#z?.state.data,this.#z):b.placeholderData,void 0!==a&&(u="success",c=(0,i.replaceData)(g?.data,a,b),r=!0)}if(b.select&&void 0!==c&&!v)if(g&&c===j?.data&&b.select===this.#x)c=this.#y;else try{this.#x=b.select,c=b.select(c),c=(0,i.replaceData)(g?.data,c,b),this.#y=c,this.#q=null}catch(a){this.#q=a}this.#q&&(s=this.#q,c=this.#y,t=Date.now(),u="error");let w="fetching"===q.fetchStatus,x="pending"===u,y="error"===u,z=x&&w,A=void 0!==c,B={status:u,fetchStatus:q.fetchStatus,isPending:x,isSuccess:"success"===u,isError:y,isInitialLoading:z,isLoading:z,data:c,dataUpdatedAt:q.dataUpdatedAt,error:s,errorUpdatedAt:t,failureCount:q.fetchFailureCount,failureReason:q.fetchFailureReason,errorUpdateCount:q.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:q.dataUpdateCount>m.dataUpdateCount||q.errorUpdateCount>m.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:y&&!A,isPaused:"paused"===q.fetchStatus,isPlaceholderData:r,isRefetchError:y&&A,isStale:o(a,b),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,i.resolveEnabled)(b.enabled,a)};if(this.options.experimental_prefetchInRender){let b=void 0!==B.data,c="error"===B.status&&!b,e=a=>{c?a.reject(B.error):b&&a.resolve(B.data)},f=()=>{e(this.#r=B.promise=(0,h.pendingThenable)())},g=this.#r;switch(g.status){case"pending":a.queryHash===d.queryHash&&e(g);break;case"fulfilled":(c||B.data!==g.value)&&f();break;case"rejected":c&&B.error===g.reason||f()}}return B}updateResult(){let a=this.#u,b=this.createResult(this.#s,this.options);if(this.#v=this.#s.state,this.#w=this.options,void 0!==this.#v.data&&(this.#z=this.#s),(0,i.shallowEqualObjects)(b,a))return;this.#u=b;let c=()=>{if(!a)return!0;let{notifyOnChangeProps:b}=this.options,c="function"==typeof b?b():b;if("all"===c||!c&&!this.#D.size)return!0;let d=new Set(c??this.#D);return this.options.throwOnError&&d.add("error"),Object.keys(this.#u).some(b=>this.#u[b]!==a[b]&&d.has(b))};this.#M({listeners:c()})}#I(){let a=this.#k.getQueryCache().build(this.#k,this.options);if(a===this.#s)return;let b=this.#s;this.#s=a,this.#t=a.state,this.hasListeners()&&(b?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#F()}#M(a){e.notifyManager.batch(()=>{a.listeners&&this.listeners.forEach(a=>{a(this.#u)}),this.#k.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function l(a,b){return!1!==(0,i.resolveEnabled)(b.enabled,a)&&void 0===a.state.data&&("error"!==a.state.status||!1!==b.retryOnMount)||void 0!==a.state.data&&m(a,b,b.refetchOnMount)}function m(a,b,c){if(!1!==(0,i.resolveEnabled)(b.enabled,a)&&"static"!==(0,i.resolveStaleTime)(b.staleTime,a)){let d="function"==typeof c?c(a):c;return"always"===d||!1!==d&&o(a,b)}return!1}function n(a,b,c,d){return(a!==b||!1===(0,i.resolveEnabled)(d.enabled,a))&&(!c.suspense||"error"!==a.state.status)&&o(a,c)}function o(a,b){return!1!==(0,i.resolveEnabled)(b.enabled,a)&&a.isStaleByTime((0,i.resolveStaleTime)(b.staleTime,a))}var p=a.i(11321),q=a.i(19301);a.i(53083);var r=p.createContext((b=!1,{clearReset:()=>{b=!1},reset:()=>{b=!0},isReset:()=>b})),s=p.createContext(!1);s.Provider;var t=(a,b,c)=>b.fetchOptimistic(a).catch(()=>{c.clearReset()});a.s(["useQuery",0,function(a,b){return function(a,b,c){let f,g=p.useContext(s),h=p.useContext(r),j=(0,q.useQueryClient)(c),k=j.defaultQueryOptions(a);j.getDefaultOptions().queries?._experimental_beforeQuery?.(k);let l=j.getQueryCache().get(k.queryHash);if(k._optimisticResults=g?"isRestoring":"optimistic",k.suspense){let a=a=>"static"===a?a:Math.max(a??1e3,1e3),b=k.staleTime;k.staleTime="function"==typeof b?(...c)=>a(b(...c)):a(b),"number"==typeof k.gcTime&&(k.gcTime=Math.max(k.gcTime,1e3))}f=l?.state.error&&"function"==typeof k.throwOnError?(0,i.shouldThrowError)(k.throwOnError,[l.state.error,l]):k.throwOnError,(k.suspense||k.experimental_prefetchInRender||f)&&!h.isReset()&&(k.retryOnMount=!1),p.useEffect(()=>{h.clearReset()},[h]);let m=!j.getQueryCache().get(k.queryHash),[n]=p.useState(()=>new b(j,k)),o=n.getOptimisticResult(k),u=!g&&!1!==a.subscribed;if(p.useSyncExternalStore(p.useCallback(a=>{let b=u?n.subscribe(e.notifyManager.batchCalls(a)):i.noop;return n.updateResult(),b},[n,u]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),p.useEffect(()=>{n.setOptions(k)},[k,n]),k?.suspense&&o.isPending)throw t(k,n,h);if((({result:a,errorResetBoundary:b,throwOnError:c,query:d,suspense:e})=>a.isError&&!b.isReset()&&!a.isFetching&&d&&(e&&void 0===a.data||(0,i.shouldThrowError)(c,[a.error,d])))({result:o,errorResetBoundary:h,throwOnError:k.throwOnError,query:l,suspense:k.suspense}))throw o.error;if(j.getDefaultOptions().queries?._experimental_afterQuery?.(k,o),k.experimental_prefetchInRender&&!d.environmentManager.isServer()&&o.isLoading&&o.isFetching&&!g){let a=m?t(k,n,h):l?.promise;a?.catch(i.noop).finally(()=>{n.updateResult()})}return k.notifyOnChangeProps?o:n.trackResult(o)}(a,k,b)}],61230)}];
2
-
3
- //# sourceMappingURL=node_modules__pnpm_0xyo1be._.js.map
@@ -1 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75649,e=>{"use strict";var t=e.i(16539),r=e.i(96871),s=t.createContext(void 0),i=e=>{let{dir:t,children:i}=e;return(0,r.jsx)(s.Provider,{value:t,children:i})};e.s(["DirectionProvider",0,i,"Provider",0,i,"useDirection",0,function(e){let r=t.useContext(s);return e||r||"ltr"}])},87099,e=>{"use strict";var t=e.i(16539),r=e.i(9413),s=e.i(22353),i=e.i(60310),n=e.i(96871),a=new WeakMap;function o(e,t){var r,s;let i,n,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let o=(r=e,s=t,i=r.length,(a=(n=u(s))>=0?n:i+n)<0||a>=i?-1:a);return -1===o?void 0:e[o]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],a.set(this,!0)}set(e,t){return a.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let s,i=this.has(t),n=this.#e.length,a=u(e),o=a>=0?a:n+a,l=o<0||o>=n?-1:o;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,r),this;let c=this.size+ +!i;a<0&&o++;let h=[...this.#e],d=!1;for(let e=o;e<c;e++)if(o===e){let n=h[e];h[e]===t&&(n=h[e+1]),i&&this.delete(t),s=this.get(n),this.set(t,r)}else{d||h[e-1]!==t||(d=!0);let r=h[d?e:e-1],i=s;s=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,s){let i=new e(this);return i.insert(t,r,s),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let s=this.#e.indexOf(e);return -1===s?this:this.insert(s,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let s=this.#e.indexOf(e);return -1===s?this:this.insert(s+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let s=r+t;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return s;r++}}findIndex(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return r;r++}return -1}filter(t,r){let s=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&s.push(e),i++;return new e(s)}map(t,r){let s=[],i=0;for(let e of this)s.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(s)}reduce(...e){let[t,r]=e,s=0,i=r??this.at(0);for(let r of this)i=0===s&&1===e.length?r:Reflect.apply(t,this,[i,r,s,this]),s++;return i}reduceRight(...e){let[t,r]=e,s=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);s=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[s,i,r,this])}return s}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),s=this.get(r);t.set(r,s)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let s=new e,i=this.size-1;if(void 0===t)return s;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);s.set(t,r)}return s}every(e,t){let r=0;for(let s of this){if(!Reflect.apply(e,t,[s,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let s of this){if(Reflect.apply(e,t,[s,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let a=e+"CollectionProvider",[o,u]=(0,r.createContextScope)(a),[l,c]=o(a,{collectionRef:{current:null},itemMap:new Map}),h=e=>{let{scope:r,children:s}=e,i=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,n.jsx)(l,{scope:r,itemMap:a,collectionRef:i,children:s})};h.displayName=a;let d=e+"CollectionSlot",f=(0,i.createSlot)(d),p=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=c(d,r),o=(0,s.useComposedRefs)(t,a.collectionRef);return(0,n.jsx)(f,{ref:o,children:i})});p.displayName=d;let y=e+"CollectionItemSlot",v="data-radix-collection-item",m=(0,i.createSlot)(y),b=t.default.forwardRef((e,r)=>{let{scope:i,children:a,...o}=e,u=t.default.useRef(null),l=(0,s.useComposedRefs)(r,u),h=c(y,i);return t.default.useEffect(()=>(h.itemMap.set(u,{ref:u,...o}),()=>void h.itemMap.delete(u))),(0,n.jsx)(m,{...{[v]:""},ref:l,children:a})});return b.displayName=y,[{Provider:h,Slot:p,ItemSlot:b},function(r){let s=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=s.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(s.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[s.collectionRef,s.itemMap])},u]}])},64794,e=>{"use strict";var t=e.i(16539),r=e.i(91967),s=e.i(87099),i=e.i(22353),n=e.i(9413),a=e.i(11207),o=e.i(85565),u=e.i(88248),l=e.i(36567),c=e.i(75649),h=e.i(96871),d="rovingFocusGroup.onEntryFocus",f={bubbles:!1,cancelable:!0},p="RovingFocusGroup",[y,v,m]=(0,s.createCollection)(p),[b,g]=(0,n.createContextScope)(p,[m]),[R,S]=b(p),w=t.forwardRef((e,t)=>(0,h.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(T,{...e,ref:t})})}));w.displayName=p;var T=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:y=!1,dir:m,currentTabStopId:b,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:S,onEntryFocus:w,preventScrollOnEntryFocus:T=!1,...C}=e,O=t.useRef(null),E=(0,i.useComposedRefs)(s,O),I=(0,c.useDirection)(m),[F,k]=(0,l.useControllableState)({prop:b,defaultProp:g??null,onChange:S,caller:p}),[Q,M]=t.useState(!1),j=(0,u.useCallbackRef)(w),D=v(n),A=t.useRef(!1),[P,U]=t.useState(0);return t.useEffect(()=>{let e=O.current;if(e)return e.addEventListener(d,j),()=>e.removeEventListener(d,j)},[j]),(0,h.jsx)(R,{scope:n,orientation:a,dir:I,loop:y,currentTabStopId:F,onItemFocus:t.useCallback(e=>k(e),[k]),onItemShiftTab:t.useCallback(()=>M(!0),[]),onFocusableItemAdd:t.useCallback(()=>U(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>U(e=>e-1),[]),children:(0,h.jsx)(o.Primitive.div,{tabIndex:Q||0===P?-1:0,"data-orientation":a,...C,ref:E,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!Q){let t=new CustomEvent(d,f);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=D().filter(e=>e.focusable);x([e.find(e=>e.active),e.find(e=>e.id===F),...e].filter(Boolean).map(e=>e.ref.current),T)}}A.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>M(!1))})})}),C="RovingFocusGroupItem",O=t.forwardRef((e,s)=>{let{__scopeRovingFocusGroup:i,focusable:n=!0,active:u=!1,tabStopId:l,children:c,...d}=e,f=(0,a.useId)(),p=l||f,m=S(C,i),b=m.currentTabStopId===p,g=v(i),{onFocusableItemAdd:R,onFocusableItemRemove:w,currentTabStopId:T}=m;return t.useEffect(()=>{if(n)return R(),()=>w()},[n,R,w]),(0,h.jsx)(y.ItemSlot,{scope:i,id:p,focusable:n,active:u,children:(0,h.jsx)(o.Primitive.span,{tabIndex:b?0:-1,"data-orientation":m.orientation,...d,ref:s,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{n?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var s;let i=(s=e.key,"rtl"!==r?s:"ArrowLeft"===s?"ArrowRight":"ArrowRight"===s?"ArrowLeft":s);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return E[i]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,s;"prev"===t&&i.reverse();let n=i.indexOf(e.currentTarget);i=m.loop?(r=i,s=n+1,r.map((e,t)=>r[(s+t)%r.length])):i.slice(n+1)}setTimeout(()=>x(i))}}),children:"function"==typeof c?c({isCurrentTabStop:b,hasTabStop:null!=T}):c})})});O.displayName=C;var E={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function x(e,t=!1){let r=document.activeElement;for(let s of e)if(s===r||(s.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",0,O,"Root",0,w,"createRovingFocusGroupScope",0,g])},68304,e=>{"use strict";var t=e.i(96871),r=e.i(16539),s=e.i(91967),i=e.i(9413),n=e.i(64794),a=e.i(90816),o=e.i(85565),u=e.i(75649),l=e.i(36567),c=e.i(11207),h="Tabs",[d,f]=(0,i.createContextScope)(h,[n.createRovingFocusGroupScope]),p=(0,n.createRovingFocusGroupScope)(),[y,v]=d(h),m=r.forwardRef((e,r)=>{let{__scopeTabs:s,value:i,onValueChange:n,defaultValue:a,orientation:d="horizontal",dir:f,activationMode:p="automatic",...v}=e,m=(0,u.useDirection)(f),[b,g]=(0,l.useControllableState)({prop:i,onChange:n,defaultProp:a??"",caller:h});return(0,t.jsx)(y,{scope:s,baseId:(0,c.useId)(),value:b,onValueChange:g,orientation:d,dir:m,activationMode:p,children:(0,t.jsx)(o.Primitive.div,{dir:m,"data-orientation":d,...v,ref:r})})});m.displayName=h;var b="TabsList",g=r.forwardRef((e,r)=>{let{__scopeTabs:s,loop:i=!0,...a}=e,u=v(b,s),l=p(s);return(0,t.jsx)(n.Root,{asChild:!0,...l,orientation:u.orientation,dir:u.dir,loop:i,children:(0,t.jsx)(o.Primitive.div,{role:"tablist","aria-orientation":u.orientation,...a,ref:r})})});g.displayName=b;var R="TabsTrigger",S=r.forwardRef((e,r)=>{let{__scopeTabs:i,value:a,disabled:u=!1,...l}=e,c=v(R,i),h=p(i),d=C(c.baseId,a),f=O(c.baseId,a),y=a===c.value;return(0,t.jsx)(n.Item,{asChild:!0,...h,focusable:!u,active:y,children:(0,t.jsx)(o.Primitive.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":f,"data-state":y?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:d,...l,ref:r,onMouseDown:(0,s.composeEventHandlers)(e.onMouseDown,e=>{u||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(a)}),onKeyDown:(0,s.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(a)}),onFocus:(0,s.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==c.activationMode;y||u||!e||c.onValueChange(a)})})})});S.displayName=R;var w="TabsContent",T=r.forwardRef((e,s)=>{let{__scopeTabs:i,value:n,forceMount:u,children:l,...c}=e,h=v(w,i),d=C(h.baseId,n),f=O(h.baseId,n),p=n===h.value,y=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,t.jsx)(a.Presence,{present:u||p,children:({present:r})=>(0,t.jsx)(o.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:f,tabIndex:0,...c,ref:s,style:{...e.style,animationDuration:y.current?"0s":void 0},children:r&&l})})});function C(e,t){return`${e}-trigger-${t}`}function O(e,t){return`${e}-content-${t}`}T.displayName=w,e.s(["Content",0,T,"List",0,g,"Root",0,m,"Tabs",0,m,"TabsContent",0,T,"TabsList",0,g,"TabsTrigger",0,S,"Trigger",0,S,"createTabsScope",0,f],66751);var E=e.i(66751),E=E,x=e.i(31777);let I=E.Root,F=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(E.List,{ref:s,className:(0,x.cn)("bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",e),...r}));F.displayName=E.List.displayName;let k=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(E.Trigger,{ref:s,className:(0,x.cn)("ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-md px-3 py-1 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow",e),...r}));k.displayName=E.Trigger.displayName;let Q=r.forwardRef(({className:e,...r},s)=>(0,t.jsx)(E.Content,{ref:s,className:(0,x.cn)("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",e),...r}));Q.displayName=E.Content.displayName,e.s(["Tabs",0,I,"TabsContent",0,Q,"TabsList",0,F,"TabsTrigger",0,k],68304)},33548,e=>{"use strict";let t=(0,e.i(3645).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],33548)},67669,e=>{"use strict";let t=(0,e.i(3645).default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);e.s(["Trash2",0,t],67669)},94365,e=>{"use strict";let t=(0,e.i(3645).default)("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);e.s(["User",0,t],94365)},67100,70433,e=>{"use strict";var t=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};e.s(["Subscribable",0,t],70433);var r=new class extends t{#t;#r;#s;constructor(){super(),this.#s=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#r||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#s=e,this.#r?.(),this.#r=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#t?this.#t:globalThis.document?.visibilityState!=="hidden"}};e.s(["focusManager",0,r],67100)},27471,35575,e=>{"use strict";e.i(66305);var t={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},r=new class{#i=t;#n=!1;setTimeoutProvider(e){this.#i=e}setTimeout(e,t){return this.#i.setTimeout(e,t)}clearTimeout(e){this.#i.clearTimeout(e)}setInterval(e,t){return this.#i.setInterval(e,t)}clearInterval(e){this.#i.clearInterval(e)}};e.s(["systemSetTimeoutZero",0,function(e){setTimeout(e,0)},"timeoutManager",0,r],35575);var s="u"<typeof window||"Deno"in globalThis;function i(e,t){return(t?.queryKeyHashFn||n)(e)}function n(e){return JSON.stringify(e,(e,t)=>l(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function a(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>a(e[r],t[r]))}var o=Object.prototype.hasOwnProperty;function u(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function l(e){if(!c(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!c(r)&&!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}var h=Symbol();e.s(["addConsumeAwareSignal",0,function(e,t,r){let s,i=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??=t(),i||(i=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e},"addToEnd",0,function(e,t,r=0){let s=[...e,t];return r&&s.length>r?s.slice(1):s},"addToStart",0,function(e,t,r=0){let s=[t,...e];return r&&s.length>r?s.slice(0,-1):s},"ensureQueryFn",0,function(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==h?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))},"functionalUpdate",0,function(e,t){return"function"==typeof e?e(t):e},"hashKey",0,n,"hashQueryKeyByOptions",0,i,"isServer",0,s,"isValidTimeout",0,function(e){return"number"==typeof e&&e>=0&&e!==1/0},"matchMutation",0,function(e,t){let{exact:r,status:s,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(n(t.options.mutationKey)!==n(o))return!1}else if(!a(t.options.mutationKey,o))return!1}return(!s||t.state.status===s)&&(!i||!!i(t))},"matchQuery",0,function(e,t){let{type:r="all",exact:s,fetchStatus:n,predicate:o,queryKey:u,stale:l}=e;if(u){if(s){if(t.queryHash!==i(u,t.options))return!1}else if(!a(t.queryKey,u))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(!n||n===t.state.fetchStatus)&&(!o||!!o(t))},"noop",0,function(){},"partialMatchKey",0,a,"replaceData",0,function(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r,s=0){if(t===r)return t;if(s>500)return r;let i=u(t)&&u(r);if(!i&&!(l(t)&&l(r)))return r;let n=(i?t:Object.keys(t)).length,a=i?r:Object.keys(r),c=a.length,h=i?Array(c):{},d=0;for(let u=0;u<c;u++){let l=i?u:a[u],c=t[l],f=r[l];if(c===f){h[l]=c,(i?u<n:o.call(t,l))&&d++;continue}if(null===c||null===f||"object"!=typeof c||"object"!=typeof f){h[l]=f;continue}let p=e(c,f,s+1);h[l]=p,p===c&&d++}return n===c&&d===n?t:h}(e,t):t},"resolveEnabled",0,function(e,t){return"function"==typeof e?e(t):e},"resolveStaleTime",0,function(e,t){return"function"==typeof e?e(t):e},"shallowEqualObjects",0,function(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},"shouldThrowError",0,function(e,t){return"function"==typeof e?e(...t):!!e},"skipToken",0,h,"sleep",0,function(e){return new Promise(t=>{r.setTimeout(t,e)})},"timeUntilStale",0,function(e,t){return Math.max(e+(t||0)-Date.now(),0)}],27471)},632,e=>{"use strict";let t;var r=e.i(27471),s=(t=()=>r.isServer,{isServer:()=>t(),setIsServer(e){t=e}});e.s(["environmentManager",0,s])},32474,e=>{"use strict";let t,r,s,i,n,a;var o=e.i(35575).systemSetTimeoutZero,u=(t=[],r=0,s=e=>{e()},i=e=>{e()},n=o,{batch:e=>{let a;r++;try{a=e()}finally{let e;--r||(e=t,t=[],e.length&&n(()=>{i(()=>{e.forEach(e=>{s(e)})})}))}return a},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a=e=>{r?t.push(e):n(()=>{s(e)})},setNotifyFunction:e=>{s=e},setBatchNotifyFunction:e=>{i=e},setScheduler:e=>{n=e}});e.s(["notifyManager",0,u])},17189,53361,e=>{"use strict";var t=e.i(70433),r=new class extends t.Subscribable{#a=!0;#r;#s;constructor(){super(),this.#s=e=>{if("u">typeof window&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#r||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#r?.(),this.#r=void 0)}setEventListener(e){this.#s=e,this.#r?.(),this.#r=e(this.setOnline.bind(this))}setOnline(e){this.#a!==e&&(this.#a=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#a}};e.s(["onlineManager",0,r],17189),e.i(27471),e.s(["pendingThenable",0,function(){let e,t,r=new Promise((r,s)=>{e=r,t=s});function s(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{s({status:"fulfilled",value:t}),e(t)},r.reject=e=>{s({status:"rejected",reason:e}),t(e)},r}],53361)},72015,26107,20957,30893,e=>{"use strict";e.i(66305);var t=e.i(27471),r=e.i(32474),s=e.i(67100),i=e.i(17189),n=e.i(53361),a=e.i(632);function o(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||i.onlineManager.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){let r,c=!1,h=0,d=(0,n.pendingThenable)(),f=()=>s.focusManager.isFocused()&&("always"===e.networkMode||i.onlineManager.isOnline())&&e.canRun(),p=()=>u(e.networkMode)&&e.canRun(),y=e=>{"pending"===d.status&&(r?.(),d.resolve(e))},v=e=>{"pending"===d.status&&(r?.(),d.reject(e))},m=()=>new Promise(t=>{r=e=>{("pending"!==d.status||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,"pending"===d.status&&e.onContinue?.()}),b=()=>{let r;if("pending"!==d.status)return;let s=0===h?e.initialPromise:void 0;try{r=s??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(y).catch(r=>{if("pending"!==d.status)return;let s=e.retry??3*!a.environmentManager.isServer(),i=e.retryDelay??o,n="function"==typeof i?i(h,r):i,u=!0===s||"number"==typeof s&&h<s||"function"==typeof s&&s(h,r);c||!u?v(r):(h++,e.onFail?.(h,r),(0,t.sleep)(n).then(()=>f()?void 0:m()).then(()=>{c?v(r):b()}))})};return{promise:d,status:()=>d.status,cancel:t=>{if("pending"===d.status){let r=new l(t);v(r),e.onCancel?.(r)}},continue:()=>(r?.(),d),cancelRetry:()=>{c=!0},continueRetry:()=>{c=!1},canStart:p,start:()=>(p()?b():m().then(b),d)}}e.s(["CancelledError",0,l,"canFetch",0,u,"createRetryer",0,c],26107);var h=e.i(35575),d=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,t.isValidTimeout)(this.gcTime)&&(this.#o=h.timeoutManager.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(a.environmentManager.isServer()?1/0:3e5))}clearGcTimeout(){this.#o&&(h.timeoutManager.clearTimeout(this.#o),this.#o=void 0)}};e.s(["Removable",0,d],20957);var f=class extends d{#u;#l;#c;#h;#d;#f;#p;constructor(e){super(),this.#p=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#h=e.client,this.#c=this.#h.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#u=v(this.options),this.state=e.state??this.#u,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){let e=v(this.options);void 0!==e.data&&(this.setState(y(e.data,e.dataUpdatedAt)),this.#u=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,r){let s=(0,t.replaceData)(this.state.data,e,this.options);return this.#y({data:s,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),s}setState(e,t){this.#y({type:"setState",state:e,setStateOptions:t})}cancel(e){let r=this.#d?.promise;return this.#d?.cancel(e),r?r.then(t.noop).catch(t.noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#u}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==(0,t.resolveEnabled)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===t.skipToken||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,t.resolveStaleTime)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,t.timeUntilStale)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#p||this.#v()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#v(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#y({type:"invalidate"})}async fetch(e,r){let s;if("idle"!==this.state.fetchStatus&&this.#d?.status()!=="rejected"){if(void 0!==this.state.data&&r?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#p=!0,i.signal)})},a=()=>{let e,s=(0,t.ensureQueryFn)(this.options,r),i=(n(e={client:this.#h,queryKey:this.queryKey,meta:this.meta}),e);return(this.#p=!1,this.options.persister)?this.options.persister(s,i,this):s(i)},o=(n(s={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:this.#h,state:this.state,fetchFn:a}),s);this.options.behavior?.onFetch(o,this),this.#l=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#y({type:"fetch",meta:o.fetchOptions?.meta}),this.#d=c({initialPromise:r?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof l&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),i.abort()},onFail:(e,t)=>{this.#y({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#y({type:"pause"})},onContinue:()=>{this.#y({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{let e=await this.#d.start();if(void 0===e)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof l){if(e.silent)return this.#d.promise;else if(e.revert){if(void 0===this.state.data)throw e;return this.state.data}}throw this.#y({type:"error",error:e}),this.#c.config.onError?.(e,this),this.#c.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#y(e){let t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...p(t.data,this.options),fetchMeta:e.meta??null};case"success":let r={...t,...y(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?r:void 0,r;case"error":let s=e.error;return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}};this.state=t(this.state),r.notifyManager.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function p(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:u(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function y(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function v(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,s=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}e.s(["Query",0,f,"fetchState",0,p],72015);var m=e.i(16539),b=e.i(96871),g=m.createContext(void 0);e.s(["QueryClientProvider",0,({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,b.jsx)(g.Provider,{value:e,children:t})),"useQueryClient",0,e=>{let t=m.useContext(g);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t}],30893)},46535,e=>{"use strict";let t;var r=e.i(67100),s=e.i(632),i=e.i(32474),n=e.i(72015),a=e.i(70433),o=e.i(53361),u=e.i(27471),l=e.i(35575),c=class extends a.Subscribable{constructor(e,t){super(),this.options=t,this.#h=e,this.#m=null,this.#b=(0,o.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#h;#g=void 0;#R=void 0;#S=void 0;#w;#T;#b;#m;#C;#O;#E;#x;#I;#F;#k=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#g.addObserver(this),h(this.#g,this.options)?this.#Q():this.updateResult(),this.#M())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#g,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#g,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#j(),this.#D(),this.#g.removeObserver(this)}setOptions(e){let t=this.options,r=this.#g;if(this.options=this.#h.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.resolveEnabled)(this.options.enabled,this.#g))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#A(),this.#g.setOptions(this.options),t._defaulted&&!(0,u.shallowEqualObjects)(this.options,t)&&this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#g,observer:this});let s=this.hasListeners();s&&f(this.#g,r,this.options,t)&&this.#Q(),this.updateResult(),s&&(this.#g!==r||(0,u.resolveEnabled)(this.options.enabled,this.#g)!==(0,u.resolveEnabled)(t.enabled,this.#g)||(0,u.resolveStaleTime)(this.options.staleTime,this.#g)!==(0,u.resolveStaleTime)(t.staleTime,this.#g))&&this.#P();let i=this.#U();s&&(this.#g!==r||(0,u.resolveEnabled)(this.options.enabled,this.#g)!==(0,u.resolveEnabled)(t.enabled,this.#g)||i!==this.#F)&&this.#q(i)}getOptimisticResult(e){var t,r;let s=this.#h.getQueryCache().build(this.#h,e),i=this.createResult(s,e);return t=this,r=i,(0,u.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#S=i,this.#T=this.options,this.#w=this.#g.state),i}getCurrentResult(){return this.#S}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#b.status||this.#b.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#k.add(e)}getCurrentQuery(){return this.#g}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#h.defaultQueryOptions(e),r=this.#h.getQueryCache().build(this.#h,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#Q({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#S))}#Q(e){this.#A();let t=this.#g.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.noop)),t}#P(){this.#j();let e=(0,u.resolveStaleTime)(this.options.staleTime,this.#g);if(s.environmentManager.isServer()||this.#S.isStale||!(0,u.isValidTimeout)(e))return;let t=(0,u.timeUntilStale)(this.#S.dataUpdatedAt,e);this.#x=l.timeoutManager.setTimeout(()=>{this.#S.isStale||this.updateResult()},t+1)}#U(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#g):this.options.refetchInterval)??!1}#q(e){this.#D(),this.#F=e,!s.environmentManager.isServer()&&!1!==(0,u.resolveEnabled)(this.options.enabled,this.#g)&&(0,u.isValidTimeout)(this.#F)&&0!==this.#F&&(this.#I=l.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||r.focusManager.isFocused())&&this.#Q()},this.#F))}#M(){this.#P(),this.#q(this.#U())}#j(){this.#x&&(l.timeoutManager.clearTimeout(this.#x),this.#x=void 0)}#D(){this.#I&&(l.timeoutManager.clearInterval(this.#I),this.#I=void 0)}createResult(e,t){let r,s=this.#g,i=this.options,a=this.#S,l=this.#w,c=this.#T,d=e!==s?e.state:this.#R,{state:y}=e,v={...y},m=!1;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&h(e,t),o=r&&f(e,s,t,i);(a||o)&&(v={...v,...(0,n.fetchState)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:b,errorUpdatedAt:g,status:R}=v;r=v.data;let S=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===R){let e;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=a.data,S=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#E?.state.data,this.#E):t.placeholderData,void 0!==e&&(R="success",r=(0,u.replaceData)(a?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!S)if(a&&r===l?.data&&t.select===this.#C)r=this.#O;else try{this.#C=t.select,r=t.select(r),r=(0,u.replaceData)(a?.data,r,t),this.#O=r,this.#m=null}catch(e){this.#m=e}this.#m&&(b=this.#m,r=this.#O,g=Date.now(),R="error");let w="fetching"===v.fetchStatus,T="pending"===R,C="error"===R,O=T&&w,E=void 0!==r,x={status:R,fetchStatus:v.fetchStatus,isPending:T,isSuccess:"success"===R,isError:C,isInitialLoading:O,isLoading:O,data:r,dataUpdatedAt:v.dataUpdatedAt,error:b,errorUpdatedAt:g,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:v.dataUpdateCount>d.dataUpdateCount||v.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!T,isLoadingError:C&&!E,isPaused:"paused"===v.fetchStatus,isPlaceholderData:m,isRefetchError:C&&E,isStale:p(e,t),refetch:this.refetch,promise:this.#b,isEnabled:!1!==(0,u.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==x.data,r="error"===x.status&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},n=()=>{i(this.#b=x.promise=(0,o.pendingThenable)())},a=this.#b;switch(a.status){case"pending":e.queryHash===s.queryHash&&i(a);break;case"fulfilled":(r||x.data!==a.value)&&n();break;case"rejected":r&&x.error===a.reason||n()}}return x}updateResult(){let e=this.#S,t=this.createResult(this.#g,this.options);if(this.#w=this.#g.state,this.#T=this.options,void 0!==this.#w.data&&(this.#E=this.#g),(0,u.shallowEqualObjects)(t,e))return;this.#S=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#k.size)return!0;let s=new Set(r??this.#k);return this.options.throwOnError&&s.add("error"),Object.keys(this.#S).some(t=>this.#S[t]!==e[t]&&s.has(t))};this.#L({listeners:r()})}#A(){let e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#g)return;let t=this.#g;this.#g=e,this.#R=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#M()}#L(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#S)}),this.#h.getQueryCache().notify({query:this.#g,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,u.resolveEnabled)(t.enabled,e)&&"static"!==(0,u.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&p(e,t)}return!1}function f(e,t,r,s){return(e!==t||!1===(0,u.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&p(e,r)}function p(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,u.resolveStaleTime)(t.staleTime,e))}e.i(66305);var y=e.i(16539),v=e.i(30893);e.i(96871);var m=y.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),b=y.createContext(!1);b.Provider;var g=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});e.s(["useQuery",0,function(e,t){return function(e,t,r){let n,a=y.useContext(b),o=y.useContext(m),l=(0,v.useQueryClient)(r),c=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let h=l.getQueryCache().get(c.queryHash);if(c._optimisticResults=a?"isRestoring":"optimistic",c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}n=h?.state.error&&"function"==typeof c.throwOnError?(0,u.shouldThrowError)(c.throwOnError,[h.state.error,h]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||n)&&!o.isReset()&&(c.retryOnMount=!1),y.useEffect(()=>{o.clearReset()},[o]);let d=!l.getQueryCache().get(c.queryHash),[f]=y.useState(()=>new t(l,c)),p=f.getOptimisticResult(c),R=!a&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=R?f.subscribe(i.notifyManager.batchCalls(e)):u.noop;return f.updateResult(),t},[f,R]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),y.useEffect(()=>{f.setOptions(c)},[c,f]),c?.suspense&&p.isPending)throw g(c,f,o);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,u.shouldThrowError)(r,[e.error,s])))({result:p,errorResetBoundary:o,throwOnError:c.throwOnError,query:h,suspense:c.suspense}))throw p.error;if(l.getDefaultOptions().queries?._experimental_afterQuery?.(c,p),c.experimental_prefetchInRender&&!s.environmentManager.isServer()&&p.isLoading&&p.isFetching&&!a){let e=d?g(c,f,o):h?.promise;e?.catch(u.noop).finally(()=>{f.updateResult()})}return c.notifyOnChangeProps?p:f.trackResult(p)}(e,c,t)}],46535)}]);