@ai-development-environment/server 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/standalone/.next/BUILD_ID +1 -1
- package/standalone/.next/build-manifest.json +3 -3
- package/standalone/.next/prerender-manifest.json +3 -3
- package/standalone/.next/server/app/[locale]/actions/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/agents/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/agents/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/analytics-events/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/build-data/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/coverage/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/[buildId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/builds/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/[codebaseId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/codebases/repositories/[repositoryId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/comments/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/console-logs/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/[id]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/enroll/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/devices/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/cache/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/[issueKey]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jira/tickets/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/jobs/[jobId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/[profileId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/provisioning-profiles/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/[owner]/[repository]/[number]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/pull-requests/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/push-notifications/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/settings/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/[skillId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/[groupId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/groups/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/skills/sync/[runId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/tools/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/unified-events/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/usage/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/[worktreeId]/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/[locale]/worktrees/page_client-reference-manifest.js +1 -1
- package/standalone/.next/server/app/_global-error.html +1 -1
- package/standalone/.next/server/app/_global-error.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.html +1 -1
- package/standalone/.next/server/app/_not-found.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/standalone/.next/server/chunks/ssr/[root-of-the-server]__0v12ijp._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_012q7w6._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_07qmjrj._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0dquba3._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_0t2jwg3._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_1bzibio._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_1h1k5ja._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_1kle1nm._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_1m50niy._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_1pja493._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_1y98hs-._.js +1 -1
- package/standalone/.next/server/chunks/ssr/_1z02bsk._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_agents_agent-detail_tsx_0lfa4ui._.js +2 -2
- package/standalone/.next/server/chunks/ssr/src_components_build-data_build-data-page_tsx_1t2rrh0._.js +2 -2
- package/standalone/.next/server/chunks/ssr/src_components_builds_build-detail-page_tsx_0q1lvps._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_builds_coverage-report-page_tsx_1nhwba1._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_devices_device-detail-page_tsx_1mut_l4._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_devices_devices-page_tsx_1y45lv2._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_github_pull-request-detail-page_tsx_1etlamp._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_jira_cache-page_tsx_1znt1yl._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_jira_ticket-detail-page_tsx_0vmf8nk._.js +2 -2
- package/standalone/.next/server/chunks/ssr/src_components_jira_tickets-page_tsx_0_ocldp._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_push-notifications_push-notifications-page_tsx_1c_b-t4._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_signing-assets_provisioning-profiles-page_tsx_1zr20o7._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_skills_skill-sync-page_tsx_15sidhb._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_skills_skills-page_tsx_0o1nlbg._.js +1 -1
- package/standalone/.next/server/chunks/ssr/src_components_worktrees_worktree-detail-page_tsx_1oexgu_._.js +1 -1
- package/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/standalone/.next/server/pages/404.html +1 -1
- package/standalone/.next/server/pages/500.html +1 -1
- package/standalone/.next/server/server-reference-manifest.js +1 -1
- package/standalone/.next/server/server-reference-manifest.json +1 -1
- package/standalone/.next/static/chunks/{0rrwapb85e3vs.js → 0a8bo5bqge171.js} +1 -1
- package/standalone/.next/static/chunks/0bx-vj8k3jlsz.js +35 -0
- package/standalone/.next/static/chunks/{1z2n-kfxw0xxf.js → 0s_vkk_t0i4mg.js} +1 -1
- package/standalone/.next/static/chunks/12msdp4rhv6ti.js +7 -0
- package/standalone/.next/static/chunks/{1rvz2z_cov6ug.js → 15rske_fphtgw.js} +2 -2
- package/standalone/.next/static/chunks/19l74y4_uc81t.js +33 -0
- package/standalone/.next/static/chunks/{0elijgx6pfo7w.js → 1a5_4cpwnx9uu.js} +1 -1
- package/standalone/.next/static/chunks/1a9j-qydwrg8m.js +7 -0
- package/standalone/.next/static/chunks/1e-vykrs41myl.js +41 -0
- package/standalone/.next/static/chunks/1jwc4nasae27c.js +1 -0
- package/standalone/.next/static/chunks/1llwo8aslhpdp.js +1 -0
- package/standalone/.next/static/chunks/{2-k0gnjfr6ayw.js → 1nkkb5gu3-rhf.js} +1 -1
- package/standalone/.next/static/chunks/1oh9kzyxfy5ih.js +1 -0
- package/standalone/.next/static/chunks/1q87ulu5dp43f.js +1 -0
- package/standalone/.next/static/chunks/{2i8eu37_ggvr8.js → 1smbfkd1cb015.js} +10 -10
- package/standalone/.next/static/chunks/1ynnv9u7cfr4c.js +1 -0
- package/standalone/.next/static/chunks/1yx2no0f8qqs5.js +7 -0
- package/standalone/.next/static/chunks/{3kswwcsm5y95r.js → 1zw6r-idmbfgl.js} +1 -1
- package/standalone/.next/static/chunks/224rpxiffot1u.js +9 -0
- package/standalone/.next/static/chunks/24tqnzr1nzhom.js +1 -0
- package/standalone/.next/static/chunks/292r4qzwbnzg7.js +45 -0
- package/standalone/.next/static/chunks/{3zmi_6t6n2zhl.js → 29bdsmo8ketwt.js} +2 -2
- package/standalone/.next/static/chunks/{08n97leuqvfec.js → 29pirjk9q8gfx.js} +1 -1
- package/standalone/.next/static/chunks/{0gduhhe5i5fyj.js → 2bdfoatg4qo7w.js} +1 -1
- package/standalone/.next/static/chunks/{1mdi8gmbt3v4y.js → 2mzx47_wqfqf6.js} +1 -1
- package/standalone/.next/static/chunks/2rplo_7t3zrb9.js +1 -0
- package/standalone/.next/static/chunks/{0txd8z6bbq8sd.js → 2rv5r0dwu0nv6.js} +1 -1
- package/standalone/.next/static/chunks/2u51t_6-1w566.js +1 -0
- package/standalone/.next/static/chunks/{3fdxq7wzqx26o.js → 2xgehciyxxmdl.js} +1 -1
- package/standalone/.next/static/chunks/34pq01spesbci.js +1 -0
- package/standalone/.next/static/chunks/34pqiakzvfxgg.js +1 -0
- package/standalone/.next/static/chunks/{3g004cn7om3tw.js → 35hg231a8ig1t.js} +1 -1
- package/standalone/.next/static/chunks/36r84wnfwt4kn.css +1 -0
- package/standalone/.next/static/chunks/{11x96hq8bk827.js → 37dd1jthysw7j.js} +1 -1
- package/standalone/.next/static/chunks/{2cohukhgw3x39.js → 384f6qhpff4pn.js} +3 -3
- package/standalone/.next/static/chunks/3_xim7hqyyfr0.js +1 -0
- package/standalone/.next/static/chunks/3eumqpi7f1fek.js +30 -0
- package/standalone/.next/static/chunks/{1209uyjs06prv.js → 3hq055db_1oe4.js} +1 -1
- package/standalone/.next/static/chunks/3ns362pjxzs4s.js +3 -0
- package/standalone/.next/static/chunks/3ojl4tmmy52v4.js +29 -0
- package/standalone/.next/static/chunks/3sxc882-vifa-.js +10 -0
- package/standalone/.next/static/chunks/40k5mbsz_tzvi.js +1 -0
- package/standalone/.next/static/chunks/43pkxbd7uiq6-.js +33 -0
- package/standalone/.next/static/chunks/00vmfj3b0p_9v.js +0 -1
- package/standalone/.next/static/chunks/05qk7dn22ctyw.js +0 -33
- package/standalone/.next/static/chunks/08b5rziqjcmmv.js +0 -9
- package/standalone/.next/static/chunks/0hcrlyp4czqm4.js +0 -33
- package/standalone/.next/static/chunks/0kkylz4dfb-6-.css +0 -1
- package/standalone/.next/static/chunks/0ouxq2tjuuo5p.js +0 -1
- package/standalone/.next/static/chunks/0qslkhjg4g4wo.js +0 -1
- package/standalone/.next/static/chunks/0sgv58x3pi1lt.js +0 -1
- package/standalone/.next/static/chunks/1-uwntvgs-8hy.js +0 -7
- package/standalone/.next/static/chunks/175wjcrz57-r8.js +0 -3
- package/standalone/.next/static/chunks/1aymjnttvjkz8.js +0 -35
- package/standalone/.next/static/chunks/1p0jamt--jvn2.js +0 -1
- package/standalone/.next/static/chunks/1wm2l6ainzpua.js +0 -30
- package/standalone/.next/static/chunks/2aaudeflwvhrw.js +0 -1
- package/standalone/.next/static/chunks/2jj9hlwqhy5pr.js +0 -41
- package/standalone/.next/static/chunks/2ldet81o6fvx9.js +0 -7
- package/standalone/.next/static/chunks/2nnls3_0a15ot.js +0 -1
- package/standalone/.next/static/chunks/32ynps2o_ve-q.js +0 -10
- package/standalone/.next/static/chunks/3812zpxehpne1.js +0 -1
- package/standalone/.next/static/chunks/398-3q0cwr6rj.js +0 -29
- package/standalone/.next/static/chunks/3f0s63l_3ts3k.js +0 -1
- package/standalone/.next/static/chunks/3ognjxt-gne6-.js +0 -1
- package/standalone/.next/static/chunks/3q82abj2-3h1-.js +0 -1
- package/standalone/.next/static/chunks/3zux6x75u6-5-.js +0 -1
- package/standalone/.next/static/chunks/4260c5fq33ytz.js +0 -7
- package/standalone/.next/static/chunks/448r-ornlfrsf.js +0 -45
- /package/standalone/.next/static/{7EXYkB15Ckf6ytAAy22z6 → _yJljIblhKpKw6X4lPPg3}/_buildManifest.js +0 -0
- /package/standalone/.next/static/{7EXYkB15Ckf6ytAAy22z6 → _yJljIblhKpKw6X4lPPg3}/_clientMiddlewareManifest.js +0 -0
- /package/standalone/.next/static/{7EXYkB15Ckf6ytAAy22z6 → _yJljIblhKpKw6X4lPPg3}/_ssgManifest.js +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(975157);let a=(0,r.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:r,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,n.cn)(a({variant:r}),e),...i})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,n.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...r})}])},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:n="default",...a}){return(0,t.jsx)("div",{"data-slot":"card","data-size":n,className:(0,r.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})},"CardAction",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...n})},"CardContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...n})},"CardDescription",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...n})},"CardFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...n})},"CardHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...n})},"CardTitle",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...n})}])},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),n=e.i(758379),n=n;e.s(["Spinner",0,function({className:e,...a}){return(0,t.jsx)(n.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...a})}],987968)},637611,e=>{"use strict";var t,r,n=e.i(247167);function a(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===a(e)}function o(e,t){return e.length<124?e:t}var s=((t=s||{})[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t),l=((r=l||{}).ConnectionInit="connection_init",r.ConnectionAck="connection_ack",r.Ping="ping",r.Pong="pong",r.Subscribe="subscribe",r.Next="next",r.Error="error",r.Complete="complete",r);function d(e){if(!i(e))throw Error(`Message is expected to be an object, but got ${a(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${a(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${a(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${a(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${a(e.payload.query)}`);if(null!=e.payload.variables&&!i(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${a(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==a(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${a(e.payload.operationName)}`);if(null!=e.payload.extensions&&!i(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${a(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${a(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${a(e.payload)}`);break;case"error":var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${a(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${a(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function c(e,t){return d(e),JSON.stringify(e,t)}class u extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function p(e){return i(e)&&"code"in e&&"reason"in e}async function f(e,t){let r=await fetch("/api/graphql",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:e,variables:t})}),n=await r.json();if(!r.ok||n.errors?.length||!n.data)throw Error(n.errors?.map(e=>e.message).join("; ")||`HTTP ${r.status}`);return n.data}let h=null;function m(){return function(e,t,r){let n=`${"https:"===t?"wss":"ws"}://${r}/graphql`;if(!e)return n;try{let r=new URL(e);if("https:"===t&&"wss:"!==r.protocol)return n}catch{}return e}(n.default.env.NEXT_PUBLIC_AGENT_WS_URL,window.location.protocol,window.location.host)}e.s(["controlPlaneRequest",0,f,"controlPlaneSubscriptions",0,function(){return h??=function(t){let r,n,a,i,{url:f,connectionParams:h,lazy:m=!0,onNonLazyError:g=console.error,lazyCloseTimeout:y=0,keepAlive:x=0,disablePong:b,connectionAckWaitTimeout:v=0,retryAttempts:j=5,retryWait:k=async function(e){let t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:w=p,on:C,webSocketImpl:S,generateID:E=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:T,jsonMessageReviver:N}=t;if(S){var R;if(!("function"==typeof(R=S)&&"constructor"in R&&"CLOSED"in R&&"CLOSING"in R&&"CONNECTING"in R&&"OPEN"in R))throw Error("Invalid WebSocket implementation provided");r=S}else r="u">typeof WebSocket?WebSocket:e.g.WebSocket||e.g.MozWebSocket;if(!r)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let A=r,O=(n={},a={on:(e,t)=>(n[e]=t,()=>{delete n[e]}),emit(e){"id"in e&&n[e.id]?.(e)}},i={connecting:C?.connecting?[C.connecting]:[],opened:C?.opened?[C.opened]:[],connected:C?.connected?[C.connected]:[],ping:C?.ping?[C.ping]:[],pong:C?.pong?[C.pong]:[],message:C?.message?[a.emit,C.message]:[a.emit],closed:C?.closed?[C.closed]:[],error:C?.error?[C.error]:[]},{onMessage:a.on,on(e,t){let r=i[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...i[e]])r(...t)}});function D(e){let t=[O.on("error",r=>{t.forEach(e=>e()),e(r)}),O.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let $,P=0,I,M=!1,_=0,B=!1;async function z(){clearTimeout(I);let[e,t]=await ($??($=new Promise((e,t)=>(async()=>{let r,n;if(M){if(await k(_),!P)return $=void 0,t({code:1e3,reason:"All Subscriptions Gone"});_++}O.emit("connecting",M);let a=new A("function"==typeof f?await f():f,"graphql-transport-ws");function i(){isFinite(x)&&x>0&&(clearTimeout(n),n=setTimeout(()=>{a.readyState===A.OPEN&&(a.send(c({type:l.Ping})),O.emit("ping",!1,void 0))},x))}D(e=>{$=void 0,clearTimeout(r),clearTimeout(n),t(e),e instanceof u&&(a.close(4499,"Terminated"),a.onerror=null,a.onclose=null)}),a.onerror=e=>O.emit("error",e),a.onclose=e=>O.emit("closed",e),a.onopen=async()=>{try{O.emit("opened",a);let e="function"==typeof h?await h():h;if(a.readyState!==A.OPEN)return;a.send(c(e?{type:l.ConnectionInit,payload:e}:{type:l.ConnectionInit},T)),isFinite(v)&&v>0&&(r=setTimeout(()=>{a.close(s.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},v)),i()}catch(e){O.emit("error",e),a.close(s.InternalClientError,o(e instanceof Error?e.message:String(e),"Internal client error"))}};let p=!1;a.onmessage=({data:t})=>{try{let n=d("string"==typeof t?JSON.parse(t,N):t);if(O.emit("message",n),"ping"===n.type||"pong"===n.type){O.emit(n.type,!0,n.payload),"pong"===n.type?i():b||(a.send(c(n.payload?{type:l.Pong,payload:n.payload}:{type:l.Pong})),O.emit("pong",!1,n.payload));return}if(p)return;if(n.type!==l.ConnectionAck)throw Error(`First message cannot be of type ${n.type}`);clearTimeout(r),p=!0,O.emit("connected",a,n.payload,M),M=!1,_=0,e([a,new Promise((e,t)=>D(t))])}catch(e){a.onmessage=null,O.emit("error",e),a.close(s.BadResponse,o(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===A.CLOSING&&await t;let r=()=>{},n=new Promise(e=>r=e);return[e,r,Promise.race([n.then(()=>{P||(isFinite(y)&&y>0?I=setTimeout(()=>{e.readyState===A.OPEN&&e.close(1e3,"Normal Closure")},y):e.close(1e3,"Normal Closure"))}),t])]}function L(e){var t;if(p(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[s.InternalServerError,s.InternalClientError,s.BadRequest,s.BadResponse,s.Unauthorized,s.SubprotocolNotAcceptable,s.SubscriberAlreadyExists,s.TooManyInitialisationRequests].includes(e.code)))throw e;if(B)return!1;if(p(e)&&1e3===e.code)return P>0;if(!j||_>=j||!w(e))throw e;return M=!0}function H(e,t){let r=E(e),n=!1,a=!1,i=()=>{P--,n=!0};return(async()=>{for(P++;;)try{let[o,s,d]=await z();if(n)return s();let u=O.onMessage(r,e=>{switch(e.type){case l.Next:return void t.next(e.payload);case l.Error:a=!0,n=!0,t.error(e.payload),i();return;case l.Complete:n=!0,i();return}});o.send(c({id:r,type:l.Subscribe,payload:e},T)),i=()=>{n||o.readyState!==A.OPEN||o.send(c({id:r,type:l.Complete},T)),P--,n=!0,s()},await d.finally(u);return}catch(e){if(!L(e))return}})().then(()=>{a||t.complete()}).catch(e=>{t.error(e)}),()=>{n||i()}}return m||(async()=>{for(P++;;)try{let[,,e]=await z();await e}catch(e){try{if(!L(e))return}catch(e){return g?.(e)}}})(),{on:O.on,subscribe:H,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},n=H(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),a=async function*(){for(;;){for(t.length||await new Promise(e=>r.resolve=e);t.length;)yield t.shift();if(r.error)throw r.error;if(r.done)return}}();return a.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),a.return=async()=>(n(),{done:!0,value:void 0}),a},async dispose(){if(B=!0,$){let[e]=await $;e.close(1e3,"Normal Closure")}},terminate(){$&&O.emit("closed",new u)}}}({url:m,lazy:!0,retryAttempts:1/0,shouldRetry:()=>!0})}],637611)},487486,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(709840),a=e.i(975157);let i=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",success:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 [a]:hover:bg-emerald-500/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",asChild:o=!1,...s}){let l=o?n.Slot.Root:"span";return(0,t.jsx)(l,{className:(0,a.cn)(i({variant:r}),e),"data-slot":"badge","data-variant":r,...s})}])},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,containerClassName:n,...a}){return(0,t.jsx)("div",{className:(0,r.cn)("w-full overflow-x-auto",n),children:(0,t.jsx)("table",{className:(0,r.cn)("w-full caption-bottom text-sm",e),...a})})},"TableBody",0,function({className:e,...n}){return(0,t.jsx)("tbody",{className:(0,r.cn)("divide-y",e),...n})},"TableCell",0,function({className:e,...n}){return(0,t.jsx)("td",{className:(0,r.cn)("whitespace-nowrap px-3 py-3 align-middle",e),...n})},"TableFooter",0,function({className:e,...n}){return(0,t.jsx)("tfoot",{className:(0,r.cn)("border-t bg-muted/50 font-medium",e),...n})},"TableHead",0,function({className:e,...n}){return(0,t.jsx)("th",{className:(0,r.cn)("h-10 whitespace-nowrap px-3 text-left align-middle text-xs font-medium text-muted-foreground",e),...n})},"TableHeader",0,function({className:e,...n}){return(0,t.jsx)("thead",{className:(0,r.cn)("border-b",e),...n})},"TableRow",0,function({className:e,...n}){return(0,t.jsx)("tr",{className:(0,r.cn)("transition-colors hover:bg-muted/40",e),...n})}])},689664,e=>{"use strict";var t=e.i(643957);e.s(["Check",()=>t.default])},77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},59497,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return r.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=n(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}var i=e.i(30030);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)}}"u">typeof window&&window.document&&window.document.createElement;var s=globalThis?.document?r.useLayoutEffect:()=>{};r[" useEffectEvent ".trim().toString()],r[" useInsertionEffect ".trim().toString()];var l=r[" useInsertionEffect ".trim().toString()]||s;Symbol("RADIX:SYNC_STATE");var d=e.i(999682),c=e.i(635804),u=e.i(296626);e.i(174080);var p=Symbol.for("radix.slottable"),f=Symbol.for("react.lazy");function h(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===f&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var m=r[" use ".trim().toString()],g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var i;let o,s=(i=`Primitive.${n}`,(o=r.forwardRef((e,t)=>{var n;let o,s,{children:l,...d}=e,c=null,u=!1,f=[];h(l)&&"function"==typeof m&&(l=m(l._payload)),r.Children.forEach(l,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p){u=!0;let t="child"in e.props?e.props.child:e.props.children;h(t)&&"function"==typeof m&&(t=m(t._payload)),c=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),f.push(c?.props?.children)}else f.push(e)}),c?c=r.cloneElement(c,void 0,f):!u&&1===r.Children.count(l)&&r.isValidElement(l)&&(c=l);let g=c?(n=c,(s=(o=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?n.ref:(s=(o=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?n.props.ref:n.props.ref||n.ref):void 0,y=a(t,g);if(!c){if(l||0===l){let e,t;throw Error(u?(e=i,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=i,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return l}let x=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(d,c.props??{});return c.type!==r.Fragment&&(x.ref=t?y:g),r.cloneElement(c,x)})).displayName=`${i}.Slot`,o),l=r.forwardRef((e,r)=>{let{asChild:a,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(a?s:n,{...i,ref:r})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{}),y="Checkbox",[x,b]=(0,i.createContextScope)(y),[v,j]=x(y);function k(e){let{__scopeCheckbox:n,checked:a,children:i,defaultChecked:o,disabled:s,form:d,name:c,onCheckedChange:u,required:p,value:f="on",internal_do_not_use_render:h}=e,[m,g]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){let[i,o,s]=function({defaultProp:e,onChange:t}){let[n,a]=r.useState(e),i=r.useRef(n),o=r.useRef(t);return l(()=>{o.current=t},[t]),r.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,a,o]}({defaultProp:t,onChange:n}),d=void 0!==e,c=d?e:i;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==d){let t=d?"controlled":"uncontrolled";console.warn(`${a} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=d},[d,a])}return[c,r.useCallback(t=>{if(d){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else o(t)},[d,e,o,s])]}({prop:a,defaultProp:o??!1,onChange:u,caller:y}),[x,b]=r.useState(null),[j,k]=r.useState(null),w=r.useRef(!1),C=!x||!!d||!!x.closest("form"),S={checked:m,disabled:s,setChecked:g,control:x,setControl:b,name:c,form:d,value:f,hasConsumerStoppedPropagationRef:w,required:p,defaultChecked:!A(o)&&o,isFormControl:C,bubbleInput:j,setBubbleInput:k};return(0,t.jsx)(v,{scope:n,...S,children:"function"==typeof h?h(S):i})}var w="CheckboxTrigger",C=r.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:i,...s},l)=>{let{control:d,value:c,disabled:u,checked:p,required:f,setControl:h,setChecked:m,hasConsumerStoppedPropagationRef:y,isFormControl:x,bubbleInput:b}=j(w,e),v=a(l,h),k=r.useRef(p);return r.useEffect(()=>{let e=d?.form;if(e){let t=()=>m(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[d,m]),(0,t.jsx)(g.button,{type:"button",role:"checkbox","aria-checked":A(p)?"mixed":p,"aria-required":f,"data-state":O(p),"data-disabled":u?"":void 0,disabled:u,value:c,...s,ref:v,onKeyDown:o(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:o(i,e=>{m(e=>!!A(e)||!e),b&&x&&(y.current=e.isPropagationStopped(),y.current||e.stopPropagation())})})});C.displayName=w;var S=r.forwardRef((e,r)=>{let{__scopeCheckbox:n,name:a,checked:i,defaultChecked:o,required:s,disabled:l,value:d,onCheckedChange:c,form:u,...p}=e;return(0,t.jsx)(k,{__scopeCheckbox:n,checked:i,defaultChecked:o,disabled:l,required:s,onCheckedChange:c,name:a,form:u,value:d,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{...p,ref:r,__scopeCheckbox:n}),e&&(0,t.jsx)(R,{__scopeCheckbox:n})]})})});S.displayName=y;var E="CheckboxIndicator",T=r.forwardRef((e,r)=>{let{__scopeCheckbox:n,forceMount:a,...i}=e,o=j(E,n);return(0,t.jsx)(u.Presence,{present:a||A(o.checked)||!0===o.checked,children:(0,t.jsx)(g.span,{"data-state":O(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:r,style:{pointerEvents:"none",...e.style}})})});T.displayName=E;var N="CheckboxBubbleInput",R=r.forwardRef(({__scopeCheckbox:e,...n},i)=>{let{control:o,hasConsumerStoppedPropagationRef:s,checked:l,defaultChecked:u,required:p,disabled:f,name:h,value:m,form:y,bubbleInput:x,setBubbleInput:b}=j(N,e),v=a(i,b),k=(0,d.usePrevious)(l),w=(0,c.useSize)(o);r.useEffect(()=>{if(!x)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!s.current;if(k!==l&&e){let r=new Event("click",{bubbles:t});x.indeterminate=A(l),e.call(x,!A(l)&&l),x.dispatchEvent(r)}},[x,k,l,s]);let C=r.useRef(!A(l)&&l);return(0,t.jsx)(g.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??C.current,required:p,disabled:f,name:h,value:m,form:y,...n,tabIndex:-1,ref:v,style:{...n.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function A(e){return"indeterminate"===e}function O(e){return A(e)?"indeterminate":e?"checked":"unchecked"}R.displayName=N,e.s(["Checkbox",0,S,"CheckboxIndicator",0,T,"Indicator",0,T,"Root",0,S,"createCheckboxScope",0,b,"unstable_BubbleInput",0,R,"unstable_CheckboxBubbleInput",0,R,"unstable_CheckboxProvider",0,k,"unstable_CheckboxTrigger",0,C,"unstable_Provider",0,k,"unstable_Trigger",0,C],388474);var D=e.i(388474),D=D,$=e.i(975157),P=e.i(593698);e.s(["Checkbox",0,function({className:e,...r}){return(0,t.jsx)(D.Root,{"data-slot":"checkbox",className:(0,$.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(D.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(P.CheckIcon,{})})})}],59497)},110204,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.i(174080);var a=Symbol.for("radix.slottable"),i=Symbol.for("react.lazy");function o(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var s=r[" use ".trim().toString()],l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,i)=>{var l;let d,c=(l=`Primitive.${i}`,(d=r.forwardRef((e,t)=>{var i;let d,c,{children:u,...p}=e,f=null,h=!1,m=[];o(u)&&"function"==typeof s&&(u=s(u._payload)),r.Children.forEach(u,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===a){h=!0;let t="child"in e.props?e.props.child:e.props.children;o(t)&&"function"==typeof s&&(t=s(t._payload)),f=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),m.push(f?.props?.children)}else m.push(e)}),f?f=r.cloneElement(f,void 0,m):!h&&1===r.Children.count(u)&&r.isValidElement(u)&&(f=u);let g=f?(i=f,(c=(d=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in d&&d.isReactWarning)?i.ref:(c=(d=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in d&&d.isReactWarning)?i.props.ref:i.props.ref||i.ref):void 0,y=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=n(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}(t,g);if(!f){if(u||0===u){let e,t;throw Error(h?(e=l,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=l,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return u}let x=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(p,f.props??{});return f.type!==r.Fragment&&(x.ref=t?y:g),r.cloneElement(f,x)})).displayName=`${l}.Slot`,d),u=r.forwardRef((e,r)=>{let{asChild:n,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(n?c:i,{...a,ref:r})});return u.displayName=`Primitive.${i}`,{...e,[i]:u}},{}),d=r.forwardRef((e,r)=>(0,t.jsx)(l.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));d.displayName="Label",e.s(["Label",0,d,"Root",0,d],973741);var c=e.i(973741),c=c,u=e.i(975157);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(c.Root,{"data-slot":"label",className:(0,u.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],110204)},643957,e=>{"use strict";let t=(0,e.i(456420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},999682,e=>{"use strict";var t=e.i(271645);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])}])},593698,e=>{"use strict";var t=e.i(643957);e.s(["CheckIcon",()=>t.default])},75830,586318,e=>{"use strict";var t=e.i(271645),r=e.i(30030);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=n(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}function i(e){let r=t.forwardRef((r,n)=>{var i;let l,f,{children:h,...m}=r,g=null,y=!1,x=[];d(h)&&"function"==typeof p&&(h=p(h._payload)),t.Children.forEach(h,e=>{var r;if(r=e,t.isValidElement(r)&&"function"==typeof r.type&&"__radixId"in r.type&&r.type.__radixId===o){y=!0;let t="child"in e.props?e.props.child:e.props.children;d(t)&&"function"==typeof p&&(t=p(t._payload)),g=s(e,t),x.push(g?.props?.children)}else x.push(e)}),g?g=t.cloneElement(g,void 0,x):!y&&1===t.Children.count(h)&&t.isValidElement(h)&&(g=h);let b=g?(i=g,(f=(l=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?i.ref:(f=(l=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?i.props.ref:i.props.ref||i.ref):void 0,v=a(n,b);if(!g){if(h||0===h)throw Error(y?u(e):c(e));return h}let j=function(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}(m,g.props??{});return g.type!==t.Fragment&&(j.ref=n?v:b),t.cloneElement(g,j)});return r.displayName=`${e}.Slot`,r}var o=Symbol.for("radix.slottable"),s=(e,r)=>{if("child"in e.props){let r=e.props.child;return t.isValidElement(r)?t.cloneElement(r,void 0,e.props.children(r.props.children)):null}return t.isValidElement(r)?r:null},l=Symbol.for("react.lazy");function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===l&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,u=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,p=t[" use ".trim().toString()],f=e.i(843476),h=new WeakMap;function m(e,t){var r,n;let a,i,o;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,a=r.length,(o=(i=g(n))>=0?i:a+i)<0||o>=a?-1:o);return -1===s?void 0:e[s]}function g(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],h.set(this,!0)}set(e,t){return h.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 n,a=this.has(t),i=this.#e.length,o=g(e),s=o>=0?o:i+o,l=s<0||s>=i?-1:s;if(l===this.size||a&&l===this.size-1||-1===l)return this.set(t,r),this;let d=this.size+ +!a;o<0&&s++;let c=[...this.#e],u=!1;for(let e=s;e<d;e++)if(s===e){let i=c[e];c[e]===t&&(i=c[e+1]),a&&this.delete(t),n=this.get(i),this.set(t,r)}else{u||c[e-1]!==t||(u=!0);let r=c[u?e:e-1],a=n;n=this.get(r),this.delete(r),this.set(r,a)}return this}with(t,r,n){let a=new e(this);return a.insert(t,r,n),a}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,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 n=this.#e.indexOf(e);return -1===n?this:this.insert(n+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=m(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=m(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return m(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],a=0;for(let e of this)Reflect.apply(t,r,[e,a,this])&&n.push(e),a++;return new e(n)}map(t,r){let n=[],a=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,a,this])]),a++;return new e(n)}reduce(...e){let[t,r]=e,n=0,a=r??this.at(0);for(let r of this)a=0===n&&1===e.length?r:Reflect.apply(t,this,[a,r,n,this]),n++;return a}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let a=this.at(r);n=r===this.size-1&&1===e.length?a:Reflect.apply(t,this,[n,a,r,this])}return n}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),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,a=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(a=r-1);for(let e=t;e<=a;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let n=e+"CollectionProvider",[o,s]=(0,r.createContextScope)(n),[l,d]=o(n,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:r,children:n}=e,a=t.useRef(null),i=t.useRef(new Map).current;return(0,f.jsx)(l,{scope:r,itemMap:i,collectionRef:a,children:n})};c.displayName=n;let u=e+"CollectionSlot",p=i(u),h=t.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=a(t,d(u,r).collectionRef);return(0,f.jsx)(p,{ref:i,children:n})});h.displayName=u;let m=e+"CollectionItemSlot",g="data-radix-collection-item",y=i(m),x=t.forwardRef((e,r)=>{let{scope:n,children:i,...o}=e,s=t.useRef(null),l=a(r,s),c=d(m,n);return t.useEffect(()=>(c.itemMap.set(s,{ref:s,...o}),()=>void c.itemMap.delete(s))),(0,f.jsx)(y,{...{[g]:""},ref:l,children:i})});return x.displayName=m,[{Provider:c,Slot:h,ItemSlot:x},function(r){let n=d(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},s]}],75830);var y=t.createContext(void 0);e.s(["useDirection",0,function(e){let r=t.useContext(y);return e||r||"ltr"}],586318)},26495,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},144716,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},776639,e=>{"use strict";var t=e.i(843476),r=e.i(560964),n=e.i(964053),a=e.i(519455),i=e.i(975157);function o({...e}){return(0,t.jsx)(n.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function s({className:e,...r}){return(0,t.jsx)(n.Dialog.Overlay,{className:(0,i.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...r})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(n.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:l,showCloseButton:d=!0,...c}){return(0,t.jsxs)(o,{children:[(0,t.jsx)(s,{}),(0,t.jsxs)(n.Dialog.Content,{className:(0,i.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...c,children:[l,d&&(0,t.jsx)(n.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(a.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(r.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(n.Dialog.Description,{className:(0,i.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...r})},"DialogFooter",0,function({className:e,showCloseButton:r=!1,children:o,...s}){return(0,t.jsxs)("div",{className:(0,i.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...s,children:[o,r&&(0,t.jsx)(n.Dialog.Close,{asChild:!0,children:(0,t.jsx)(a.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,i.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...r})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(n.Dialog.Title,{className:(0,i.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...r})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(n.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},630299,e=>{"use strict";let t=(0,e.i(456420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["default",0,t])},566595,e=>{"use strict";var t=e.i(630299);e.s(["Search",()=>t.default])},452330,e=>{"use strict";let t=(0,e.i(456420).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"}]]);e.s(["Code2",0,t],452330)},131460,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-down-to-line",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);e.s(["ArrowDownToLine",0,t],131460)},669253,e=>{"use strict";let t=(0,e.i(456420).default)("folder-tree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);e.s(["FolderTree",0,t],669253)},41074,e=>{"use strict";var t=e.i(843476),r=e.i(131460),n=e.i(456420);let a=(0,n.default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);var i=e.i(689664),o=e.i(452330),s=e.i(809584),l=e.i(669253);let d=(0,n.default)("mouse-pointer-2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var c=e.i(77071),u=e.i(741120),p=e.i(566595),f=e.i(166794);let h=(0,n.default)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);var m=e.i(328623);let g=(0,n.default)("square-terminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);var y=e.i(948148),x=e.i(271645),b=e.i(929592),v=e.i(487486),j=e.i(519455),k=e.i(515288),w=e.i(59497),C=e.i(776639),S=e.i(793479),E=e.i(110204),T=e.i(987968),N=e.i(967489),R=e.i(784774),A=e.i(677572),O=e.i(520133),D=e.i(637611);let $={CURSOR:"Cursor",GITHUB_COPILOT:"GitHub Copilot",CODEX:"OpenAI Codex",CLAUDE:"Claude Code",OPENCODE:"OpenCode"},P={CURSOR:d,GITHUB_COPILOT:m.Sparkles,CODEX:g,CLAUDE:a,OPENCODE:o.Code2},I=`
|
|
2
|
-
query SkillsOverview($search: String) {
|
|
3
|
-
skillsOverview(search: $search) {
|
|
4
|
-
skills {
|
|
5
|
-
id name description syncGlobally packageHash updatedAt
|
|
6
|
-
files { id path }
|
|
7
|
-
groups { id name }
|
|
8
|
-
}
|
|
9
|
-
groups { id name }
|
|
10
|
-
observations {
|
|
11
|
-
tool configured homePath checkedAt
|
|
12
|
-
agent { id name hostname connectionStatus }
|
|
13
|
-
}
|
|
14
|
-
installations {
|
|
15
|
-
id scope rootKind rootPath skillName description packageHash fileCount totalBytes tracked consumers lastSeenAt
|
|
16
|
-
agent { id name hostname connectionStatus }
|
|
17
|
-
codebase { id folder repository { id name displayOrigin } }
|
|
18
|
-
worktree { id folder }
|
|
19
|
-
skill { id name packageHash }
|
|
20
|
-
}
|
|
21
|
-
settings {
|
|
22
|
-
autoSyncProjectGroups cursorEnabled githubCopilotEnabled codexEnabled claudeEnabled openCodeEnabled updatedAt
|
|
23
|
-
}
|
|
24
|
-
repositories { id name displayOrigin }
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
`;function M(e,t){return"CURSOR"===t?e.cursorEnabled:"GITHUB_COPILOT"===t?e.githubCopilotEnabled:"CODEX"===t?e.codexEnabled:"CLAUDE"===t?e.claudeEnabled:e.openCodeEnabled}function _({overview:e}){let r=(0,y.useTranslations)("skills");return(0,t.jsxs)(k.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(k.CardHeader,{className:"border-b py-4",children:[(0,t.jsx)(k.CardTitle,{children:r("databaseSkills")}),(0,t.jsx)(k.CardDescription,{children:r("databaseSkillsDescription")})]}),(0,t.jsx)(k.CardContent,{className:"px-0",children:(0,t.jsxs)(R.Table,{children:[(0,t.jsx)(R.TableHeader,{children:(0,t.jsxs)(R.TableRow,{children:[(0,t.jsx)(R.TableHead,{children:r("name")}),(0,t.jsx)(R.TableHead,{children:r("skillDescription")}),(0,t.jsx)(R.TableHead,{children:r("scope")}),(0,t.jsx)(R.TableHead,{children:r("groups")}),(0,t.jsx)(R.TableHead,{children:r("files")}),(0,t.jsx)(R.TableHead,{children:r("updated")})]})}),(0,t.jsxs)(R.TableBody,{children:[e.skills.map(e=>(0,t.jsxs)(R.TableRow,{children:[(0,t.jsx)(R.TableCell,{children:(0,t.jsx)(O.Link,{className:"font-medium text-primary hover:underline",href:`/skills/${e.id}`,children:e.name})}),(0,t.jsx)(R.TableCell,{className:"max-w-lg whitespace-normal text-muted-foreground",children:e.description}),(0,t.jsx)(R.TableCell,{children:(0,t.jsx)(v.Badge,{variant:e.syncGlobally?"default":"secondary",children:e.syncGlobally?r("global"):r("groupOnly")})}),(0,t.jsx)(R.TableCell,{children:(0,t.jsx)("div",{className:"flex flex-wrap gap-1",children:e.groups.length?e.groups.map(e=>(0,t.jsx)(v.Badge,{variant:"outline",children:e.name},e.id)):"—"})}),(0,t.jsx)(R.TableCell,{children:e.files.length}),(0,t.jsx)(R.TableCell,{children:new Date(e.updatedAt).toLocaleString()})]},e.id)),!e.skills.length&&(0,t.jsx)(R.TableRow,{children:(0,t.jsx)(R.TableCell,{className:"py-10 text-center text-muted-foreground",colSpan:6,children:r("noSkills")})})]})]})})]})}function B({installations:e}){let n=(0,y.useTranslations)("skills");return(0,t.jsxs)(k.Card,{className:"gap-0 py-0",children:[(0,t.jsxs)(k.CardHeader,{className:"border-b py-4",children:[(0,t.jsx)(k.CardTitle,{children:n("clientSkills")}),(0,t.jsx)(k.CardDescription,{children:n("clientSkillsDescription")})]}),(0,t.jsx)(k.CardContent,{className:"px-0",children:(0,t.jsxs)(R.Table,{children:[(0,t.jsx)(R.TableHeader,{children:(0,t.jsxs)(R.TableRow,{children:[(0,t.jsx)(R.TableHead,{children:n("name")}),(0,t.jsx)(R.TableHead,{children:n("scope")}),(0,t.jsx)(R.TableHead,{children:n("agent")}),(0,t.jsx)(R.TableHead,{children:n("location")}),(0,t.jsx)(R.TableHead,{children:n("status")})]})}),(0,t.jsxs)(R.TableBody,{children:[e.map(e=>{let a=e.skill?e.skill.packageHash===e.packageHash?"UNCHANGED":"CONFLICT":"IMPORT";return(0,t.jsxs)(R.TableRow,{children:[(0,t.jsxs)(R.TableCell,{children:[(0,t.jsx)("div",{className:"font-medium",children:e.skillName}),(0,t.jsx)("div",{className:"max-w-md whitespace-normal text-xs text-muted-foreground",children:e.description})]}),(0,t.jsxs)(R.TableCell,{children:[(0,t.jsx)(v.Badge,{variant:"outline",children:"GLOBAL"===e.scope?n("global"):n("project")}),e.codebase&&(0,t.jsx)("div",{className:"mt-1 text-xs text-muted-foreground",children:e.codebase.repository.name})]}),(0,t.jsx)(R.TableCell,{children:e.agent.name}),(0,t.jsxs)(R.TableCell,{className:"max-w-md whitespace-normal font-mono text-xs",children:[e.rootPath,e.tracked&&(0,t.jsx)(v.Badge,{className:"ml-2",variant:"secondary",children:n("tracked")})]}),(0,t.jsx)(R.TableCell,{children:"UNCHANGED"===a?(0,t.jsxs)(v.Badge,{className:"gap-1",variant:"secondary",children:[(0,t.jsx)(i.Check,{})," ",n("inSync")]}):"IMPORT"===a?(0,t.jsxs)(v.Badge,{className:"gap-1",variant:"outline",children:[(0,t.jsx)(r.ArrowDownToLine,{})," ",n("toDatabase")]}):(0,t.jsxs)(v.Badge,{className:"gap-1",variant:"destructive",children:[(0,t.jsx)(h,{})," ",n("conflict")]})})]},e.id)}),!e.length&&(0,t.jsx)(R.TableRow,{children:(0,t.jsx)(R.TableCell,{className:"py-10 text-center text-muted-foreground",colSpan:5,children:n("noClientSkills")})})]})]})})]})}function z({configuredCounts:e,onOpenChange:r,onSaved:n,open:a,settings:i}){let o=(0,y.useTranslations)("skills"),[s,l]=(0,x.useState)(i),[d,c]=(0,x.useState)(!1),[u,p]=(0,x.useState)(null),f=async()=>{c(!0);try{await (0,D.controlPlaneRequest)(`mutation SaveSkillSettings($input: SaveSkillSettingsInput!) {
|
|
28
|
-
saveSkillSettings(input: $input) { updatedAt }
|
|
29
|
-
}`,{input:{autoSyncProjectGroups:s.autoSyncProjectGroups,cursorEnabled:s.cursorEnabled,githubCopilotEnabled:s.githubCopilotEnabled,codexEnabled:s.codexEnabled,claudeEnabled:s.claudeEnabled,openCodeEnabled:s.openCodeEnabled}}),await n(),r(!1)}catch(e){p(e instanceof Error?e.message:String(e))}finally{c(!1)}};return(0,t.jsx)(C.Dialog,{onOpenChange:r,open:a,children:(0,t.jsxs)(C.DialogContent,{children:[(0,t.jsxs)(C.DialogHeader,{children:[(0,t.jsx)(C.DialogTitle,{children:o("settingsTitle")}),(0,t.jsx)(C.DialogDescription,{children:o("settingsDescription")})]}),u&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:u})}),(0,t.jsxs)("div",{className:"flex items-start gap-3 rounded-lg border p-3",children:[(0,t.jsx)(w.Checkbox,{checked:s.autoSyncProjectGroups,id:"skills-auto-sync",onCheckedChange:e=>l(t=>({...t,autoSyncProjectGroups:!0===e}))}),(0,t.jsxs)("div",{children:[(0,t.jsx)(E.Label,{htmlFor:"skills-auto-sync",children:o("autoSync")}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:o("autoSyncHelp")})]})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(E.Label,{children:o("enabledTools")}),Object.keys($).map(r=>{let n=M(s,r);return(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-md border px-3 py-2",children:[(0,t.jsx)(w.Checkbox,{checked:n,id:`skill-tool-${r}`,onCheckedChange:e=>{var t;return t=!0===e,void l(e=>({...e,..."CURSOR"===r?{cursorEnabled:t}:{},..."GITHUB_COPILOT"===r?{githubCopilotEnabled:t}:{},..."CODEX"===r?{codexEnabled:t}:{},..."CLAUDE"===r?{claudeEnabled:t}:{},..."OPENCODE"===r?{openCodeEnabled:t}:{}}))}}),(0,t.jsxs)(E.Label,{className:"flex flex-1 justify-between",htmlFor:`skill-tool-${r}`,children:[(0,t.jsx)("span",{children:$[r]}),(0,t.jsx)("span",{className:"text-xs text-muted-foreground",children:e[r]>0?o("configuredAgents",{count:e[r]}):o("notDetected")})]})]},r)})]}),(0,t.jsx)(C.DialogFooter,{children:(0,t.jsxs)(j.Button,{disabled:d,onClick:()=>void f(),children:[d&&(0,t.jsx)(T.Spinner,{})," ",o("saveSettings")]})})]})})}e.s(["SkillsPage",0,function(){let e=(0,y.useTranslations)("skills"),r=(0,O.useRouter)(),[n,a]=(0,x.useState)(null),[i,o]=(0,x.useState)(""),[d,h]=(0,x.useState)("DATABASE"),[m,g]=(0,x.useState)(!1),[v,k]=(0,x.useState)(!0),[w,C]=(0,x.useState)(!1),[E,R]=(0,x.useState)(null),L=(0,x.useCallback)(async()=>{try{let e=await (0,D.controlPlaneRequest)(I,{search:i});a(e.skillsOverview),R(null)}catch(e){R(e instanceof Error?e.message:String(e))}finally{k(!1)}},[i]);(0,x.useEffect)(()=>{let e=window.setTimeout(()=>void L(),200);return()=>window.clearTimeout(e)},[L]);let H=(0,x.useMemo)(()=>n?Object.keys($).filter(e=>M(n.settings,e)&&n.observations.some(t=>t.tool===e&&t.configured)):[],[n]),q=(0,x.useMemo)(()=>Object.fromEntries(Object.keys($).map(e=>[e,n?.observations.filter(t=>t.tool===e&&t.configured).length??0])),[n]),G="DATABASE"===d||H.includes(d)?d:"DATABASE",U=async()=>{C(!0);try{let e=await (0,D.controlPlaneRequest)("mutation PrepareSkillSync { prepareSkillSync(kind: ALL) { id } }");r.push(`/skills/sync/${e.prepareSkillSync.id}`)}catch(e){R(e instanceof Error?e.message:String(e))}finally{C(!1)}};return(0,t.jsxs)("div",{className:"flex h-full min-h-0 flex-col gap-4 overflow-auto p-4 sm:p-6",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h1",{className:"text-2xl font-semibold tracking-tight",children:e("title")}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:e("description")})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,t.jsx)(j.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(O.Link,{href:"/skills/groups",children:[(0,t.jsx)(l.FolderTree,{})," ",e("manageGroups")]})}),(0,t.jsxs)(j.Button,{onClick:()=>g(!0),variant:"outline",children:[(0,t.jsx)(f.Settings,{})," ",e("settings")]}),(0,t.jsx)(j.Button,{asChild:!0,variant:"outline",children:(0,t.jsxs)(O.Link,{href:"/skills/new",children:[(0,t.jsx)(c.Plus,{})," ",e("addSkill")]})}),(0,t.jsxs)(j.Button,{disabled:w,onClick:()=>void U(),children:[w?(0,t.jsx)(T.Spinner,{}):(0,t.jsx)(u.RefreshCw,{})," ",e("syncAll")]})]})]}),E&&(0,t.jsx)(b.Alert,{variant:"destructive",children:(0,t.jsx)(b.AlertDescription,{children:E})}),(0,t.jsxs)("div",{className:"relative max-w-xl",children:[(0,t.jsx)(p.Search,{className:"absolute top-2.5 left-3 size-4 text-muted-foreground"}),(0,t.jsx)(S.Input,{"aria-label":e("search"),className:"pl-9",onChange:e=>o(e.target.value),placeholder:e("searchPlaceholder"),value:i})]}),(0,t.jsx)("div",{className:"sm:hidden",children:(0,t.jsxs)(N.Select,{onValueChange:h,value:G,children:[(0,t.jsx)(N.SelectTrigger,{"aria-label":e("skillSource"),className:"w-full",children:(0,t.jsx)(N.SelectValue,{})}),(0,t.jsxs)(N.SelectContent,{children:[(0,t.jsxs)(N.SelectItem,{value:"DATABASE",children:[(0,t.jsx)(s.Database,{})," ",e("database")]}),H.map(e=>{let r=P[e];return(0,t.jsxs)(N.SelectItem,{value:e,children:[(0,t.jsx)(r,{})," ",$[e]]},e)})]})]})}),(0,t.jsx)(A.Tabs,{className:"hidden sm:flex",onValueChange:h,value:G,children:(0,t.jsxs)(A.TabsList,{className:"h-auto flex-wrap justify-start",children:[(0,t.jsxs)(A.TabsTrigger,{value:"DATABASE",children:[(0,t.jsx)(s.Database,{})," ",e("database")]}),H.map(e=>{let r=P[e];return(0,t.jsxs)(A.TabsTrigger,{value:e,children:[(0,t.jsx)(r,{})," ",$[e]]},e)})]})}),v||!n?(0,t.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,t.jsx)(T.Spinner,{})," ",e("loading")]}):"DATABASE"===G?(0,t.jsx)(_,{overview:n}):(0,t.jsx)(B,{installations:n.installations.filter(e=>e.consumers.includes(G))}),n&&(0,t.jsx)(z,{configuredCounts:q,onOpenChange:g,onSaved:L,open:m,settings:n.settings},`${n.settings.updatedAt}-${m?"open":"closed"}`)]})}],41074)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,867927,e=>{"use strict";var t=e.i(986253);e.s(["ChevronRight",()=>t.default])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let r=document.execCommand("copy");if(t.remove(),!r)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},986253,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),o=e.i(975157);let a=(0,r.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:r,...n}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,o.cn)(a({variant:r}),e),...n})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,o.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...r})}])},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:o="default",...a}){return(0,t.jsx)("div",{"data-slot":"card","data-size":o,className:(0,r.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...a})},"CardAction",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...o})},"CardContent",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...o})},"CardDescription",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...o})},"CardFooter",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...o})},"CardHeader",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...o})},"CardTitle",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...o})}])},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),o=e.i(758379),o=o;e.s(["Spinner",0,function({className:e,...a}){return(0,t.jsx)(o.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...a})}],987968)},637611,e=>{"use strict";var t,r,o=e.i(247167);function a(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function n(e){return"object"===a(e)}function s(e,t){return e.length<124?e:t}var i=((t=i||{})[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t),c=((r=c||{}).ConnectionInit="connection_init",r.ConnectionAck="connection_ack",r.Ping="ping",r.Pong="pong",r.Subscribe="subscribe",r.Next="next",r.Error="error",r.Complete="complete",r);function l(e){if(!n(e))throw Error(`Message is expected to be an object, but got ${a(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${a(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!n(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${a(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!n(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${a(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${a(e.payload.query)}`);if(null!=e.payload.variables&&!n(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${a(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==a(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${a(e.payload.operationName)}`);if(null!=e.payload.extensions&&!n(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${a(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${a(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!n(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${a(e.payload)}`);break;case"error":var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${a(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${a(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function d(e,t){return l(e),JSON.stringify(e,t)}class p extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function u(e){return n(e)&&"code"in e&&"reason"in e}async function y(e,t){let r=await fetch("/api/graphql",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:e,variables:t})}),o=await r.json();if(!r.ok||o.errors?.length||!o.data)throw Error(o.errors?.map(e=>e.message).join("; ")||`HTTP ${r.status}`);return o.data}let m=null;function f(){return function(e,t,r){let o=`${"https:"===t?"wss":"ws"}://${r}/graphql`;if(!e)return o;try{let r=new URL(e);if("https:"===t&&"wss:"!==r.protocol)return o}catch{}return e}(o.default.env.NEXT_PUBLIC_AGENT_WS_URL,window.location.protocol,window.location.host)}e.s(["controlPlaneRequest",0,y,"controlPlaneSubscriptions",0,function(){return m??=function(t){let r,o,a,n,{url:y,connectionParams:m,lazy:f=!0,onNonLazyError:g=console.error,lazyCloseTimeout:h=0,keepAlive:x=0,disablePong:b,connectionAckWaitTimeout:v=0,retryAttempts:w=5,retryWait:E=async function(e){let t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:N=u,on:C,webSocketImpl:S,generateID:T=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:j,jsonMessageReviver:A}=t;if(S){var $;if(!("function"==typeof($=S)&&"constructor"in $&&"CLOSED"in $&&"CLOSING"in $&&"CONNECTING"in $&&"OPEN"in $))throw Error("Invalid WebSocket implementation provided");r=S}else r="u">typeof WebSocket?WebSocket:e.g.WebSocket||e.g.MozWebSocket;if(!r)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let k=r,I=(o={},a={on:(e,t)=>(o[e]=t,()=>{delete o[e]}),emit(e){"id"in e&&o[e.id]?.(e)}},n={connecting:C?.connecting?[C.connecting]:[],opened:C?.opened?[C.opened]:[],connected:C?.connected?[C.connected]:[],ping:C?.ping?[C.ping]:[],pong:C?.pong?[C.pong]:[],message:C?.message?[a.emit,C.message]:[a.emit],closed:C?.closed?[C.closed]:[],error:C?.error?[C.error]:[]},{onMessage:a.on,on(e,t){let r=n[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...n[e]])r(...t)}});function R(e){let t=[I.on("error",r=>{t.forEach(e=>e()),e(r)}),I.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let _,O=0,P,M=!1,q=0,B=!1;async function z(){clearTimeout(P);let[e,t]=await (_??(_=new Promise((e,t)=>(async()=>{let r,o;if(M){if(await E(q),!O)return _=void 0,t({code:1e3,reason:"All Subscriptions Gone"});q++}I.emit("connecting",M);let a=new k("function"==typeof y?await y():y,"graphql-transport-ws");function n(){isFinite(x)&&x>0&&(clearTimeout(o),o=setTimeout(()=>{a.readyState===k.OPEN&&(a.send(d({type:c.Ping})),I.emit("ping",!1,void 0))},x))}R(e=>{_=void 0,clearTimeout(r),clearTimeout(o),t(e),e instanceof p&&(a.close(4499,"Terminated"),a.onerror=null,a.onclose=null)}),a.onerror=e=>I.emit("error",e),a.onclose=e=>I.emit("closed",e),a.onopen=async()=>{try{I.emit("opened",a);let e="function"==typeof m?await m():m;if(a.readyState!==k.OPEN)return;a.send(d(e?{type:c.ConnectionInit,payload:e}:{type:c.ConnectionInit},j)),isFinite(v)&&v>0&&(r=setTimeout(()=>{a.close(i.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},v)),n()}catch(e){I.emit("error",e),a.close(i.InternalClientError,s(e instanceof Error?e.message:String(e),"Internal client error"))}};let u=!1;a.onmessage=({data:t})=>{try{let o=l("string"==typeof t?JSON.parse(t,A):t);if(I.emit("message",o),"ping"===o.type||"pong"===o.type){I.emit(o.type,!0,o.payload),"pong"===o.type?n():b||(a.send(d(o.payload?{type:c.Pong,payload:o.payload}:{type:c.Pong})),I.emit("pong",!1,o.payload));return}if(u)return;if(o.type!==c.ConnectionAck)throw Error(`First message cannot be of type ${o.type}`);clearTimeout(r),u=!0,I.emit("connected",a,o.payload,M),M=!1,q=0,e([a,new Promise((e,t)=>R(t))])}catch(e){a.onmessage=null,I.emit("error",e),a.close(i.BadResponse,s(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===k.CLOSING&&await t;let r=()=>{},o=new Promise(e=>r=e);return[e,r,Promise.race([o.then(()=>{O||(isFinite(h)&&h>0?P=setTimeout(()=>{e.readyState===k.OPEN&&e.close(1e3,"Normal Closure")},h):e.close(1e3,"Normal Closure"))}),t])]}function D(e){var t;if(u(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[i.InternalServerError,i.InternalClientError,i.BadRequest,i.BadResponse,i.Unauthorized,i.SubprotocolNotAcceptable,i.SubscriberAlreadyExists,i.TooManyInitialisationRequests].includes(e.code)))throw e;if(B)return!1;if(u(e)&&1e3===e.code)return O>0;if(!w||q>=w||!N(e))throw e;return M=!0}function L(e,t){let r=T(e),o=!1,a=!1,n=()=>{O--,o=!0};return(async()=>{for(O++;;)try{let[s,i,l]=await z();if(o)return i();let p=I.onMessage(r,e=>{switch(e.type){case c.Next:return void t.next(e.payload);case c.Error:a=!0,o=!0,t.error(e.payload),n();return;case c.Complete:o=!0,n();return}});s.send(d({id:r,type:c.Subscribe,payload:e},j)),n=()=>{o||s.readyState!==k.OPEN||s.send(d({id:r,type:c.Complete},j)),O--,o=!0,i()},await l.finally(p);return}catch(e){if(!D(e))return}})().then(()=>{a||t.complete()}).catch(e=>{t.error(e)}),()=>{o||n()}}return f||(async()=>{for(O++;;)try{let[,,e]=await z();await e}catch(e){try{if(!D(e))return}catch(e){return g?.(e)}}})(),{on:I.on,subscribe:L,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},o=L(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),a=async function*(){for(;;){for(t.length||await new Promise(e=>r.resolve=e);t.length;)yield t.shift();if(r.error)throw r.error;if(r.done)return}}();return a.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),a.return=async()=>(o(),{done:!0,value:void 0}),a},async dispose(){if(B=!0,_){let[e]=await _;e.close(1e3,"Normal Closure")}},terminate(){_&&I.emit("closed",new p)}}}({url:f,lazy:!0,retryAttempts:1/0,shouldRetry:()=>!0})}],637611)},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,containerClassName:o,...a}){return(0,t.jsx)("div",{className:(0,r.cn)("w-full overflow-x-auto",o),children:(0,t.jsx)("table",{className:(0,r.cn)("w-full caption-bottom text-sm",e),...a})})},"TableBody",0,function({className:e,...o}){return(0,t.jsx)("tbody",{className:(0,r.cn)("divide-y",e),...o})},"TableCell",0,function({className:e,...o}){return(0,t.jsx)("td",{className:(0,r.cn)("whitespace-nowrap px-3 py-3 align-middle",e),...o})},"TableFooter",0,function({className:e,...o}){return(0,t.jsx)("tfoot",{className:(0,r.cn)("border-t bg-muted/50 font-medium",e),...o})},"TableHead",0,function({className:e,...o}){return(0,t.jsx)("th",{className:(0,r.cn)("h-10 whitespace-nowrap px-3 text-left align-middle text-xs font-medium text-muted-foreground",e),...o})},"TableHeader",0,function({className:e,...o}){return(0,t.jsx)("thead",{className:(0,r.cn)("border-b",e),...o})},"TableRow",0,function({className:e,...o}){return(0,t.jsx)("tr",{className:(0,r.cn)("transition-colors hover:bg-muted/40",e),...o})}])},26495,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["default",0,t])},716327,e=>{"use strict";var t=e.i(26495);e.s(["ChevronDown",()=>t.default])},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),o=e.i(975157);let a=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,o.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,o.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,o.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...n}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,o.cn)(a({variant:r,className:e})),...n})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,o.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},778434,e=>{"use strict";e.s(["AGENT_FIELDS",0,"id name hostname version osVersion architecture cpuModel memoryTotalBytes memoryFreeBytes diskTotalBytes diskFreeBytes capabilities baseRepoDirectory derivedDataLocationMode derivedDataPath buildsDirectory defaultBuildsDirectory effectiveBuildsDirectory connectionStatus ipAddress lastSeenAt disconnectedAt createdAt","JOB_FIELDS",0,"id agentId kind payload status error result timeoutSeconds createdAt startedAt finishedAt updatedAt","JOB_LOG_FIELDS",0,"id jobId sequence stream message createdAt"])},990142,e=>{"use strict";RegExp("^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$"),e.s(["CCUSAGE_REPORT_JOB_KIND",0,"ccusage.report"])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59497,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return r.useCallback(function(...e){return t=>{let r=!1,o=e.map(e=>{let o=n(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t<o.length;t++){let r=o[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}var i=e.i(30030);function a(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n||!n.defaultPrevented)return t?.(n)}}"u">typeof window&&window.document&&window.document.createElement;var s=globalThis?.document?r.useLayoutEffect:()=>{};r[" useEffectEvent ".trim().toString()],r[" useInsertionEffect ".trim().toString()];var l=r[" useInsertionEffect ".trim().toString()]||s;Symbol("RADIX:SYNC_STATE");var c=e.i(999682),d=e.i(635804),u=e.i(296626);e.i(174080);var p=Symbol.for("radix.slottable"),f=Symbol.for("react.lazy");function h(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===f&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var y=r[" use ".trim().toString()],g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var i;let a,s=(i=`Primitive.${n}`,(a=r.forwardRef((e,t)=>{var n;let a,s,{children:l,...c}=e,d=null,u=!1,f=[];h(l)&&"function"==typeof y&&(l=y(l._payload)),r.Children.forEach(l,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===p){u=!0;let t="child"in e.props?e.props.child:e.props.children;h(t)&&"function"==typeof y&&(t=y(t._payload)),d=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),f.push(d?.props?.children)}else f.push(e)}),d?d=r.cloneElement(d,void 0,f):!u&&1===r.Children.count(l)&&r.isValidElement(l)&&(d=l);let g=d?(n=d,(s=(a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.ref:(s=(a=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.props.ref:n.props.ref||n.ref):void 0,m=o(t,g);if(!d){if(l||0===l){let e,t;throw Error(u?(e=i,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=i,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return l}let b=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(c,d.props??{});return d.type!==r.Fragment&&(b.ref=t?m:g),r.cloneElement(d,b)})).displayName=`${i}.Slot`,a),l=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?s:n,{...i,ref:r})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{}),m="Checkbox",[b,v]=(0,i.createContextScope)(m),[x,w]=b(m);function k(e){let{__scopeCheckbox:n,checked:o,children:i,defaultChecked:a,disabled:s,form:c,name:d,onCheckedChange:u,required:p,value:f="on",internal_do_not_use_render:h}=e,[y,g]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){let[i,a,s]=function({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return l(()=>{a.current=t},[t]),r.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),c=void 0!==e,d=c?e:i;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,o])}return[d,r.useCallback(t=>{if(c){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else a(t)},[c,e,a,s])]}({prop:o,defaultProp:a??!1,onChange:u,caller:m}),[b,v]=r.useState(null),[w,k]=r.useState(null),E=r.useRef(!1),C=!b||!!c||!!b.closest("form"),S={checked:y,disabled:s,setChecked:g,control:b,setControl:v,name:d,form:c,value:f,hasConsumerStoppedPropagationRef:E,required:p,defaultChecked:!T(a)&&a,isFormControl:C,bubbleInput:w,setBubbleInput:k};return(0,t.jsx)(x,{scope:n,...S,children:"function"==typeof h?h(S):i})}var E="CheckboxTrigger",C=r.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:i,...s},l)=>{let{control:c,value:d,disabled:u,checked:p,required:f,setControl:h,setChecked:y,hasConsumerStoppedPropagationRef:m,isFormControl:b,bubbleInput:v}=w(E,e),x=o(l,h),k=r.useRef(p);return r.useEffect(()=>{let e=c?.form;if(e){let t=()=>y(k.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[c,y]),(0,t.jsx)(g.button,{type:"button",role:"checkbox","aria-checked":T(p)?"mixed":p,"aria-required":f,"data-state":A(p),"data-disabled":u?"":void 0,disabled:u,value:d,...s,ref:x,onKeyDown:a(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:a(i,e=>{y(e=>!!T(e)||!e),v&&b&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});C.displayName=E;var S=r.forwardRef((e,r)=>{let{__scopeCheckbox:n,name:o,checked:i,defaultChecked:a,required:s,disabled:l,value:c,onCheckedChange:d,form:u,...p}=e;return(0,t.jsx)(k,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:l,required:s,onCheckedChange:d,name:o,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(C,{...p,ref:r,__scopeCheckbox:n}),e&&(0,t.jsx)($,{__scopeCheckbox:n})]})})});S.displayName=m;var R="CheckboxIndicator",N=r.forwardRef((e,r)=>{let{__scopeCheckbox:n,forceMount:o,...i}=e,a=w(R,n);return(0,t.jsx)(u.Presence,{present:o||T(a.checked)||!0===a.checked,children:(0,t.jsx)(g.span,{"data-state":A(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:r,style:{pointerEvents:"none",...e.style}})})});N.displayName=R;var j="CheckboxBubbleInput",$=r.forwardRef(({__scopeCheckbox:e,...n},i)=>{let{control:a,hasConsumerStoppedPropagationRef:s,checked:l,defaultChecked:u,required:p,disabled:f,name:h,value:y,form:m,bubbleInput:b,setBubbleInput:v}=w(j,e),x=o(i,v),k=(0,c.usePrevious)(l),E=(0,d.useSize)(a);r.useEffect(()=>{if(!b)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,t=!s.current;if(k!==l&&e){let r=new Event("click",{bubbles:t});b.indeterminate=T(l),e.call(b,!T(l)&&l),b.dispatchEvent(r)}},[b,k,l,s]);let C=r.useRef(!T(l)&&l);return(0,t.jsx)(g.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??C.current,required:p,disabled:f,name:h,value:y,form:m,...n,tabIndex:-1,ref:x,style:{...n.style,...E,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function T(e){return"indeterminate"===e}function A(e){return T(e)?"indeterminate":e?"checked":"unchecked"}$.displayName=j,e.s(["Checkbox",0,S,"CheckboxIndicator",0,N,"Indicator",0,N,"Root",0,S,"createCheckboxScope",0,v,"unstable_BubbleInput",0,$,"unstable_CheckboxBubbleInput",0,$,"unstable_CheckboxProvider",0,k,"unstable_CheckboxTrigger",0,C,"unstable_Provider",0,k,"unstable_Trigger",0,C],388474);var I=e.i(388474),I=I,O=e.i(975157),_=e.i(593698);e.s(["Checkbox",0,function({className:e,...r}){return(0,t.jsx)(I.Root,{"data-slot":"checkbox",className:(0,O.cn)("peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input transition-colors outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(I.Indicator,{"data-slot":"checkbox-indicator",className:"grid place-content-center text-current transition-none [&>svg]:size-3.5",children:(0,t.jsx)(_.CheckIcon,{})})})}],59497)},929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(975157);let o=(0,r.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:r,...i}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,n.cn)(o({variant:r}),e),...i})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,n.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...r})}])},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:n="default",...o}){return(0,t.jsx)("div",{"data-slot":"card","data-size":n,className:(0,r.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...o})},"CardAction",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...n})},"CardContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...n})},"CardDescription",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...n})},"CardFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...n})},"CardHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...n})},"CardTitle",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...n})}])},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),n=e.i(758379),n=n;e.s(["Spinner",0,function({className:e,...o}){return(0,t.jsx)(n.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...o})}],987968)},637611,e=>{"use strict";var t,r,n=e.i(247167);function o(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function i(e){return"object"===o(e)}function a(e,t){return e.length<124?e:t}var s=((t=s||{})[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t),l=((r=l||{}).ConnectionInit="connection_init",r.ConnectionAck="connection_ack",r.Ping="ping",r.Pong="pong",r.Subscribe="subscribe",r.Next="next",r.Error="error",r.Complete="complete",r);function c(e){if(!i(e))throw Error(`Message is expected to be an object, but got ${o(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${o(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${o(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${o(e.payload.query)}`);if(null!=e.payload.variables&&!i(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${o(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==o(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${o(e.payload.operationName)}`);if(null!=e.payload.extensions&&!i(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${o(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!i(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${o(e.payload)}`);break;case"error":var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function d(e,t){return c(e),JSON.stringify(e,t)}class u extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function p(e){return i(e)&&"code"in e&&"reason"in e}async function f(e,t){let r=await fetch("/api/graphql",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:e,variables:t})}),n=await r.json();if(!r.ok||n.errors?.length||!n.data)throw Error(n.errors?.map(e=>e.message).join("; ")||`HTTP ${r.status}`);return n.data}let h=null;function y(){return function(e,t,r){let n=`${"https:"===t?"wss":"ws"}://${r}/graphql`;if(!e)return n;try{let r=new URL(e);if("https:"===t&&"wss:"!==r.protocol)return n}catch{}return e}(n.default.env.NEXT_PUBLIC_AGENT_WS_URL,window.location.protocol,window.location.host)}e.s(["controlPlaneRequest",0,f,"controlPlaneSubscriptions",0,function(){return h??=function(t){let r,n,o,i,{url:f,connectionParams:h,lazy:y=!0,onNonLazyError:g=console.error,lazyCloseTimeout:m=0,keepAlive:b=0,disablePong:v,connectionAckWaitTimeout:x=0,retryAttempts:w=5,retryWait:k=async function(e){let t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:E=p,on:C,webSocketImpl:S,generateID:R=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:N,jsonMessageReviver:j}=t;if(S){var $;if(!("function"==typeof($=S)&&"constructor"in $&&"CLOSED"in $&&"CLOSING"in $&&"CONNECTING"in $&&"OPEN"in $))throw Error("Invalid WebSocket implementation provided");r=S}else r="u">typeof WebSocket?WebSocket:e.g.WebSocket||e.g.MozWebSocket;if(!r)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let T=r,A=(n={},o={on:(e,t)=>(n[e]=t,()=>{delete n[e]}),emit(e){"id"in e&&n[e.id]?.(e)}},i={connecting:C?.connecting?[C.connecting]:[],opened:C?.opened?[C.opened]:[],connected:C?.connected?[C.connected]:[],ping:C?.ping?[C.ping]:[],pong:C?.pong?[C.pong]:[],message:C?.message?[o.emit,C.message]:[o.emit],closed:C?.closed?[C.closed]:[],error:C?.error?[C.error]:[]},{onMessage:o.on,on(e,t){let r=i[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...i[e]])r(...t)}});function I(e){let t=[A.on("error",r=>{t.forEach(e=>e()),e(r)}),A.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let O,_=0,P,z=!1,M=0,q=!1;async function B(){clearTimeout(P);let[e,t]=await (O??(O=new Promise((e,t)=>(async()=>{let r,n;if(z){if(await k(M),!_)return O=void 0,t({code:1e3,reason:"All Subscriptions Gone"});M++}A.emit("connecting",z);let o=new T("function"==typeof f?await f():f,"graphql-transport-ws");function i(){isFinite(b)&&b>0&&(clearTimeout(n),n=setTimeout(()=>{o.readyState===T.OPEN&&(o.send(d({type:l.Ping})),A.emit("ping",!1,void 0))},b))}I(e=>{O=void 0,clearTimeout(r),clearTimeout(n),t(e),e instanceof u&&(o.close(4499,"Terminated"),o.onerror=null,o.onclose=null)}),o.onerror=e=>A.emit("error",e),o.onclose=e=>A.emit("closed",e),o.onopen=async()=>{try{A.emit("opened",o);let e="function"==typeof h?await h():h;if(o.readyState!==T.OPEN)return;o.send(d(e?{type:l.ConnectionInit,payload:e}:{type:l.ConnectionInit},N)),isFinite(x)&&x>0&&(r=setTimeout(()=>{o.close(s.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},x)),i()}catch(e){A.emit("error",e),o.close(s.InternalClientError,a(e instanceof Error?e.message:String(e),"Internal client error"))}};let p=!1;o.onmessage=({data:t})=>{try{let n=c("string"==typeof t?JSON.parse(t,j):t);if(A.emit("message",n),"ping"===n.type||"pong"===n.type){A.emit(n.type,!0,n.payload),"pong"===n.type?i():v||(o.send(d(n.payload?{type:l.Pong,payload:n.payload}:{type:l.Pong})),A.emit("pong",!1,n.payload));return}if(p)return;if(n.type!==l.ConnectionAck)throw Error(`First message cannot be of type ${n.type}`);clearTimeout(r),p=!0,A.emit("connected",o,n.payload,z),z=!1,M=0,e([o,new Promise((e,t)=>I(t))])}catch(e){o.onmessage=null,A.emit("error",e),o.close(s.BadResponse,a(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===T.CLOSING&&await t;let r=()=>{},n=new Promise(e=>r=e);return[e,r,Promise.race([n.then(()=>{_||(isFinite(m)&&m>0?P=setTimeout(()=>{e.readyState===T.OPEN&&e.close(1e3,"Normal Closure")},m):e.close(1e3,"Normal Closure"))}),t])]}function W(e){var t;if(p(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[s.InternalServerError,s.InternalClientError,s.BadRequest,s.BadResponse,s.Unauthorized,s.SubprotocolNotAcceptable,s.SubscriberAlreadyExists,s.TooManyInitialisationRequests].includes(e.code)))throw e;if(q)return!1;if(p(e)&&1e3===e.code)return _>0;if(!w||M>=w||!E(e))throw e;return z=!0}function D(e,t){let r=R(e),n=!1,o=!1,i=()=>{_--,n=!0};return(async()=>{for(_++;;)try{let[a,s,c]=await B();if(n)return s();let u=A.onMessage(r,e=>{switch(e.type){case l.Next:return void t.next(e.payload);case l.Error:o=!0,n=!0,t.error(e.payload),i();return;case l.Complete:n=!0,i();return}});a.send(d({id:r,type:l.Subscribe,payload:e},N)),i=()=>{n||a.readyState!==T.OPEN||a.send(d({id:r,type:l.Complete},N)),_--,n=!0,s()},await c.finally(u);return}catch(e){if(!W(e))return}})().then(()=>{o||t.complete()}).catch(e=>{t.error(e)}),()=>{n||i()}}return y||(async()=>{for(_++;;)try{let[,,e]=await B();await e}catch(e){try{if(!W(e))return}catch(e){return g?.(e)}}})(),{on:A.on,subscribe:D,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},n=D(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),o=async function*(){for(;;){for(t.length||await new Promise(e=>r.resolve=e);t.length;)yield t.shift();if(r.error)throw r.error;if(r.done)return}}();return o.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),o.return=async()=>(n(),{done:!0,value:void 0}),o},async dispose(){if(q=!0,O){let[e]=await O;e.close(1e3,"Normal Closure")}},terminate(){O&&A.emit("closed",new u)}}}({url:y,lazy:!0,retryAttempts:1/0,shouldRetry:()=>!0})}],637611)},487486,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(709840),o=e.i(975157);let i=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",success:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 [a]:hover:bg-emerald-500/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",asChild:a=!1,...s}){let l=a?n.Slot.Root:"span";return(0,t.jsx)(l,{className:(0,o.cn)(i({variant:r}),e),"data-slot":"badge","data-variant":r,...s})}])},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,containerClassName:n,...o}){return(0,t.jsx)("div",{className:(0,r.cn)("w-full overflow-x-auto",n),children:(0,t.jsx)("table",{className:(0,r.cn)("w-full caption-bottom text-sm",e),...o})})},"TableBody",0,function({className:e,...n}){return(0,t.jsx)("tbody",{className:(0,r.cn)("divide-y",e),...n})},"TableCell",0,function({className:e,...n}){return(0,t.jsx)("td",{className:(0,r.cn)("whitespace-nowrap px-3 py-3 align-middle",e),...n})},"TableFooter",0,function({className:e,...n}){return(0,t.jsx)("tfoot",{className:(0,r.cn)("border-t bg-muted/50 font-medium",e),...n})},"TableHead",0,function({className:e,...n}){return(0,t.jsx)("th",{className:(0,r.cn)("h-10 whitespace-nowrap px-3 text-left align-middle text-xs font-medium text-muted-foreground",e),...n})},"TableHeader",0,function({className:e,...n}){return(0,t.jsx)("thead",{className:(0,r.cn)("border-b",e),...n})},"TableRow",0,function({className:e,...n}){return(0,t.jsx)("tr",{className:(0,r.cn)("transition-colors hover:bg-muted/40",e),...n})}])},643957,e=>{"use strict";let t=(0,e.i(456420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},999682,e=>{"use strict";var t=e.i(271645);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])}])},593698,e=>{"use strict";var t=e.i(643957);e.s(["CheckIcon",()=>t.default])},75830,586318,e=>{"use strict";var t=e.i(271645),r=e.i(30030);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t.useCallback(function(...e){return t=>{let r=!1,o=e.map(e=>{let o=n(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t<o.length;t++){let r=o[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}function i(e){let r=t.forwardRef((r,n)=>{var i;let l,f,{children:h,...y}=r,g=null,m=!1,b=[];c(h)&&"function"==typeof p&&(h=p(h._payload)),t.Children.forEach(h,e=>{var r;if(r=e,t.isValidElement(r)&&"function"==typeof r.type&&"__radixId"in r.type&&r.type.__radixId===a){m=!0;let t="child"in e.props?e.props.child:e.props.children;c(t)&&"function"==typeof p&&(t=p(t._payload)),g=s(e,t),b.push(g?.props?.children)}else b.push(e)}),g?g=t.cloneElement(g,void 0,b):!m&&1===t.Children.count(h)&&t.isValidElement(h)&&(g=h);let v=g?(i=g,(f=(l=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?i.ref:(f=(l=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?i.props.ref:i.props.ref||i.ref):void 0,x=o(n,v);if(!g){if(h||0===h)throw Error(m?u(e):d(e));return h}let w=function(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...i}:"className"===n&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}(y,g.props??{});return g.type!==t.Fragment&&(w.ref=n?x:v),t.cloneElement(g,w)});return r.displayName=`${e}.Slot`,r}var a=Symbol.for("radix.slottable"),s=(e,r)=>{if("child"in e.props){let r=e.props.child;return t.isValidElement(r)?t.cloneElement(r,void 0,e.props.children(r.props.children)):null}return t.isValidElement(r)?r:null},l=Symbol.for("react.lazy");function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===l&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,u=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,p=t[" use ".trim().toString()],f=e.i(843476),h=new WeakMap;function y(e,t){var r,n;let o,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,o=r.length,(a=(i=g(n))>=0?i:o+i)<0||a>=o?-1:a);return -1===s?void 0:e[s]}function g(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],h.set(this,!0)}set(e,t){return h.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 n,o=this.has(t),i=this.#e.length,a=g(e),s=a>=0?a:i+a,l=s<0||s>=i?-1:s;if(l===this.size||o&&l===this.size-1||-1===l)return this.set(t,r),this;let c=this.size+ +!o;a<0&&s++;let d=[...this.#e],u=!1;for(let e=s;e<c;e++)if(s===e){let i=d[e];d[e]===t&&(i=d[e+1]),o&&this.delete(t),n=this.get(i),this.set(t,r)}else{u||d[e-1]!==t||(u=!0);let r=d[u?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,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 n=this.#e.indexOf(e);return -1===n?this:this.insert(n+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=y(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=y(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return y(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}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),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let n=e+"CollectionProvider",[a,s]=(0,r.createContextScope)(n),[l,c]=a(n,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,o=t.useRef(null),i=t.useRef(new Map).current;return(0,f.jsx)(l,{scope:r,itemMap:i,collectionRef:o,children:n})};d.displayName=n;let u=e+"CollectionSlot",p=i(u),h=t.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=o(t,c(u,r).collectionRef);return(0,f.jsx)(p,{ref:i,children:n})});h.displayName=u;let y=e+"CollectionItemSlot",g="data-radix-collection-item",m=i(y),b=t.forwardRef((e,r)=>{let{scope:n,children:i,...a}=e,s=t.useRef(null),l=o(r,s),d=c(y,n);return t.useEffect(()=>(d.itemMap.set(s,{ref:s,...a}),()=>void d.itemMap.delete(s))),(0,f.jsx)(m,{...{[g]:""},ref:l,children:i})});return b.displayName=y,[{Provider:d,Slot:h,ItemSlot:b},function(r){let n=c(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},s]}],75830);var m=t.createContext(void 0);e.s(["useDirection",0,function(e){let r=t.useContext(m);return e||r||"ltr"}],586318)},689664,e=>{"use strict";var t=e.i(643957);e.s(["Check",()=>t.default])}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,624687,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Textarea",0,function({className:e,...a}){return(0,t.jsx)("textarea",{className:(0,r.cn)("min-h-24 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",e),...a})}])},508734,e=>{"use strict";let t=(0,e.i(456420).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],508734)},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),a=e.i(758379),a=a;e.s(["Spinner",0,function({className:e,...n}){return(0,t.jsx)(a.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...n})}],987968)},637611,e=>{"use strict";var t,r,a=e.i(247167);function n(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function o(e){return"object"===n(e)}function i(e,t){return e.length<124?e:t}var s=((t=s||{})[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t),l=((r=l||{}).ConnectionInit="connection_init",r.ConnectionAck="connection_ack",r.Ping="ping",r.Pong="pong",r.Subscribe="subscribe",r.Next="next",r.Error="error",r.Complete="complete",r);function c(e){if(!o(e))throw Error(`Message is expected to be an object, but got ${n(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${n(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!o(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!o(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${n(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${n(e.payload.query)}`);if(null!=e.payload.variables&&!o(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${n(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==n(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${n(e.payload.operationName)}`);if(null!=e.payload.extensions&&!o(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${n(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!o(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${n(e.payload)}`);break;case"error":var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${n(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function d(e,t){return c(e),JSON.stringify(e,t)}class u extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function p(e){return o(e)&&"code"in e&&"reason"in e}async function m(e,t){let r=await fetch("/api/graphql",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:e,variables:t})}),a=await r.json();if(!r.ok||a.errors?.length||!a.data)throw Error(a.errors?.map(e=>e.message).join("; ")||`HTTP ${r.status}`);return a.data}let f=null;function g(){return function(e,t,r){let a=`${"https:"===t?"wss":"ws"}://${r}/graphql`;if(!e)return a;try{let r=new URL(e);if("https:"===t&&"wss:"!==r.protocol)return a}catch{}return e}(a.default.env.NEXT_PUBLIC_AGENT_WS_URL,window.location.protocol,window.location.host)}e.s(["controlPlaneRequest",0,m,"controlPlaneSubscriptions",0,function(){return f??=function(t){let r,a,n,o,{url:m,connectionParams:f,lazy:g=!0,onNonLazyError:y=console.error,lazyCloseTimeout:x=0,keepAlive:h=0,disablePong:v,connectionAckWaitTimeout:b=0,retryAttempts:w=5,retryWait:j=async function(e){let t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:N=p,on:E,webSocketImpl:k,generateID:S=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:C,jsonMessageReviver:T}=t;if(k){var z;if(!("function"==typeof(z=k)&&"constructor"in z&&"CLOSED"in z&&"CLOSING"in z&&"CONNECTING"in z&&"OPEN"in z))throw Error("Invalid WebSocket implementation provided");r=k}else r="u">typeof WebSocket?WebSocket:e.g.WebSocket||e.g.MozWebSocket;if(!r)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let I=r,$=(a={},n={on:(e,t)=>(a[e]=t,()=>{delete a[e]}),emit(e){"id"in e&&a[e.id]?.(e)}},o={connecting:E?.connecting?[E.connecting]:[],opened:E?.opened?[E.opened]:[],connected:E?.connected?[E.connected]:[],ping:E?.ping?[E.ping]:[],pong:E?.pong?[E.pong]:[],message:E?.message?[n.emit,E.message]:[n.emit],closed:E?.closed?[E.closed]:[],error:E?.error?[E.error]:[]},{onMessage:n.on,on(e,t){let r=o[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...o[e]])r(...t)}});function R(e){let t=[$.on("error",r=>{t.forEach(e=>e()),e(r)}),$.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let A,P=0,M,_=!1,O=0,q=!1;async function L(){clearTimeout(M);let[e,t]=await (A??(A=new Promise((e,t)=>(async()=>{let r,a;if(_){if(await j(O),!P)return A=void 0,t({code:1e3,reason:"All Subscriptions Gone"});O++}$.emit("connecting",_);let n=new I("function"==typeof m?await m():m,"graphql-transport-ws");function o(){isFinite(h)&&h>0&&(clearTimeout(a),a=setTimeout(()=>{n.readyState===I.OPEN&&(n.send(d({type:l.Ping})),$.emit("ping",!1,void 0))},h))}R(e=>{A=void 0,clearTimeout(r),clearTimeout(a),t(e),e instanceof u&&(n.close(4499,"Terminated"),n.onerror=null,n.onclose=null)}),n.onerror=e=>$.emit("error",e),n.onclose=e=>$.emit("closed",e),n.onopen=async()=>{try{$.emit("opened",n);let e="function"==typeof f?await f():f;if(n.readyState!==I.OPEN)return;n.send(d(e?{type:l.ConnectionInit,payload:e}:{type:l.ConnectionInit},C)),isFinite(b)&&b>0&&(r=setTimeout(()=>{n.close(s.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},b)),o()}catch(e){$.emit("error",e),n.close(s.InternalClientError,i(e instanceof Error?e.message:String(e),"Internal client error"))}};let p=!1;n.onmessage=({data:t})=>{try{let a=c("string"==typeof t?JSON.parse(t,T):t);if($.emit("message",a),"ping"===a.type||"pong"===a.type){$.emit(a.type,!0,a.payload),"pong"===a.type?o():v||(n.send(d(a.payload?{type:l.Pong,payload:a.payload}:{type:l.Pong})),$.emit("pong",!1,a.payload));return}if(p)return;if(a.type!==l.ConnectionAck)throw Error(`First message cannot be of type ${a.type}`);clearTimeout(r),p=!0,$.emit("connected",n,a.payload,_),_=!1,O=0,e([n,new Promise((e,t)=>R(t))])}catch(e){n.onmessage=null,$.emit("error",e),n.close(s.BadResponse,i(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===I.CLOSING&&await t;let r=()=>{},a=new Promise(e=>r=e);return[e,r,Promise.race([a.then(()=>{P||(isFinite(x)&&x>0?M=setTimeout(()=>{e.readyState===I.OPEN&&e.close(1e3,"Normal Closure")},x):e.close(1e3,"Normal Closure"))}),t])]}function B(e){var t;if(p(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[s.InternalServerError,s.InternalClientError,s.BadRequest,s.BadResponse,s.Unauthorized,s.SubprotocolNotAcceptable,s.SubscriberAlreadyExists,s.TooManyInitialisationRequests].includes(e.code)))throw e;if(q)return!1;if(p(e)&&1e3===e.code)return P>0;if(!w||O>=w||!N(e))throw e;return _=!0}function D(e,t){let r=S(e),a=!1,n=!1,o=()=>{P--,a=!0};return(async()=>{for(P++;;)try{let[i,s,c]=await L();if(a)return s();let u=$.onMessage(r,e=>{switch(e.type){case l.Next:return void t.next(e.payload);case l.Error:n=!0,a=!0,t.error(e.payload),o();return;case l.Complete:a=!0,o();return}});i.send(d({id:r,type:l.Subscribe,payload:e},C)),o=()=>{a||i.readyState!==I.OPEN||i.send(d({id:r,type:l.Complete},C)),P--,a=!0,s()},await c.finally(u);return}catch(e){if(!B(e))return}})().then(()=>{n||t.complete()}).catch(e=>{t.error(e)}),()=>{a||o()}}return g||(async()=>{for(P++;;)try{let[,,e]=await L();await e}catch(e){try{if(!B(e))return}catch(e){return y?.(e)}}})(),{on:$.on,subscribe:D,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},a=D(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),n=async function*(){for(;;){for(t.length||await new Promise(e=>r.resolve=e);t.length;)yield t.shift();if(r.error)throw r.error;if(r.done)return}}();return n.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),n.return=async()=>(a(),{done:!0,value:void 0}),n},async dispose(){if(q=!0,A){let[e]=await A;e.close(1e3,"Normal Closure")}},terminate(){A&&$.emit("closed",new u)}}}({url:g,lazy:!0,retryAttempts:1/0,shouldRetry:()=>!0})}],637611)},929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let n=(0,r.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:r,...o}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,a.cn)(n({variant:r}),e),...o})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,a.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...r})}])},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:a="default",...n}){return(0,t.jsx)("div",{"data-slot":"card","data-size":a,className:(0,r.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...n})},"CardAction",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...a})},"CardContent",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...a})},"CardDescription",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...a})},"CardFooter",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...a})},"CardHeader",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...a})},"CardTitle",0,function({className:e,...a}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...a})}])},487486,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(709840),n=e.i(975157);let o=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",success:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 [a]:hover:bg-emerald-500/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",asChild:i=!1,...s}){let l=i?a.Slot.Root:"span";return(0,t.jsx)(l,{className:(0,n.cn)(o({variant:r}),e),"data-slot":"badge","data-variant":r,...s})}])},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,containerClassName:a,...n}){return(0,t.jsx)("div",{className:(0,r.cn)("w-full overflow-x-auto",a),children:(0,t.jsx)("table",{className:(0,r.cn)("w-full caption-bottom text-sm",e),...n})})},"TableBody",0,function({className:e,...a}){return(0,t.jsx)("tbody",{className:(0,r.cn)("divide-y",e),...a})},"TableCell",0,function({className:e,...a}){return(0,t.jsx)("td",{className:(0,r.cn)("whitespace-nowrap px-3 py-3 align-middle",e),...a})},"TableFooter",0,function({className:e,...a}){return(0,t.jsx)("tfoot",{className:(0,r.cn)("border-t bg-muted/50 font-medium",e),...a})},"TableHead",0,function({className:e,...a}){return(0,t.jsx)("th",{className:(0,r.cn)("h-10 whitespace-nowrap px-3 text-left align-middle text-xs font-medium text-muted-foreground",e),...a})},"TableHeader",0,function({className:e,...a}){return(0,t.jsx)("thead",{className:(0,r.cn)("border-b",e),...a})},"TableRow",0,function({className:e,...a}){return(0,t.jsx)("tr",{className:(0,r.cn)("transition-colors hover:bg-muted/40",e),...a})}])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let r=document.execCommand("copy");if(t.remove(),!r)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},689664,e=>{"use strict";var t=e.i(643957);e.s(["Check",()=>t.default])},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),a=e.i(975157);let n=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,a.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,a.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,a.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...o}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,a.cn)(n({variant:r,className:e})),...o})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,a.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},482022,e=>{"use strict";let t=(0,e.i(456420).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"}]]);e.s(["ExternalLink",0,t],482022)},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},799676,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(30030),n=e.i(30207),o=globalThis?.document?r.useLayoutEffect:()=>{};function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.i(174080);var s=Symbol.for("radix.slottable"),l=Symbol.for("react.lazy");function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===l&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=r[" use ".trim().toString()],u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{var n;let o,l=(n=`Primitive.${a}`,(o=r.forwardRef((e,t)=>{var a;let o,l,{children:u,...p}=e,m=null,f=!1,g=[];c(u)&&"function"==typeof d&&(u=d(u._payload)),r.Children.forEach(u,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===s){f=!0;let t="child"in e.props?e.props.child:e.props.children;c(t)&&"function"==typeof d&&(t=d(t._payload)),m=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),g.push(m?.props?.children)}else g.push(e)}),m?m=r.cloneElement(m,void 0,g):!f&&1===r.Children.count(u)&&r.isValidElement(u)&&(m=u);let y=m?(a=m,(l=(o=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?a.ref:(l=(o=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?a.props.ref:a.props.ref||a.ref):void 0,x=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=i(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():i(e[t],null)}}}}(...e),e)}(t,y);if(!m){if(u||0===u){let e,t;throw Error(f?(e=n,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=n,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return u}let h=function(e,t){let r={...t};for(let a in t){let n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...e)=>{let t=o(...e);return n(...e),t}:n&&(r[a]=n):"style"===a?r[a]={...n,...o}:"className"===a&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}(p,m.props??{});return m.type!==r.Fragment&&(h.ref=t?x:y),r.cloneElement(m,h)})).displayName=`${n}.Slot`,o),u=r.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(n?l:a,{...o,ref:r})});return u.displayName=`Primitive.${a}`,{...e,[a]:u}},{}),p="Avatar",[m,f]=(0,a.createContextScope)(p),g=[0,()=>void 0],[y,x]=m(p),h=r.forwardRef((e,a)=>{let{__scopeAvatar:n,...o}=e,[i,s]=r.useState("idle"),[l,c]=function(){let e=g;{let[t]=e=r.useState(0),a=r.useRef(!1);r.useEffect(()=>{t>1&&!a.current&&(a.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}();return(0,t.jsx)(y,{scope:n,imageLoadingStatus:i,setImageLoadingStatus:s,imageCount:l,setImageCount:c,children:(0,t.jsx)(u.span,{...o,ref:a})})});h.displayName=p;var v="AvatarImage",b=r.forwardRef((e,a)=>{var i;let{__scopeAvatar:s,src:l,onLoadingStatusChange:c,...d}=e,p=x(v,s);i=p.setImageCount,r.useEffect(()=>(i(e=>e+1),()=>{i(e=>e-1)}),[i]);let m=function(e,{loadingStatus:t,setLoadingStatus:r,referrerPolicy:a,crossOrigin:n}){return o(()=>{if(!e)return void r("error");let t=new window.Image,o=e=>{r(N(e.currentTarget))},i=()=>r("error");return t.addEventListener("load",o),t.addEventListener("error",i),a&&(t.referrerPolicy=a),t.crossOrigin=n??null,t.src=e,r(N(t)),()=>{t.removeEventListener("load",o),t.removeEventListener("error",i),r("idle")}},[e,n,a,r]),t}(l,{referrerPolicy:d.referrerPolicy,crossOrigin:d.crossOrigin,loadingStatus:p.imageLoadingStatus,setLoadingStatus:p.setImageLoadingStatus}),f=(0,n.useCallbackRef)(e=>{c?.(e)}),g=r.useRef(m);return o(()=>{let e=g.current;g.current=m,m!==e&&f(m)},[m,f]),"loaded"===m?(0,t.jsx)(u.img,{...d,ref:a,src:l}):null});b.displayName=v;var w="AvatarFallback",j=r.forwardRef((e,a)=>{let{__scopeAvatar:n,delayMs:o,...i}=e,s=x(w,n),[l,c]=r.useState(void 0===o);return r.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>c(!0),o);return()=>window.clearTimeout(e)}},[o]),l&&"loaded"!==s.imageLoadingStatus?(0,t.jsx)(u.span,{...i,ref:a}):null});function N(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}j.displayName=w,e.s(["Avatar",0,h,"AvatarFallback",0,j,"AvatarImage",0,b,"Fallback",0,j,"Image",0,b,"Root",0,h,"createAvatarScope",0,f],97456);var E=e.i(97456),E=E,k=e.i(975157);e.s(["Avatar",0,function({className:e,size:r="default",...a}){return(0,t.jsx)(E.Root,{className:(0,k.cn)("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),"data-size":r,"data-slot":"avatar",...a})},"AvatarFallback",0,function({className:e,...r}){return(0,t.jsx)(E.Fallback,{className:(0,k.cn)("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),"data-slot":"avatar-fallback",...r})},"AvatarImage",0,function({className:e,...r}){return(0,t.jsx)(E.Image,{className:(0,k.cn)("aspect-square size-full rounded-full object-cover",e),"data-slot":"avatar-image",...r})}],799676)},159888,e=>{"use strict";let t=(0,e.i(456420).default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,t],159888)},337355,563707,906197,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(456420).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,r],563707);var a=e.i(271645),n=e.i(519455),o=e.i(317056),i=e.i(225913),s=e.i(709840),l=e.i(975157);e.i(772436);let c=(0,i.cva)("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",{variants:{variant:{default:"border-transparent",outline:"border-border",muted:"border-transparent bg-muted/50"},size:{default:"gap-2.5 px-3 py-2.5",sm:"gap-2.5 px-3 py-2.5",xs:"gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:r="default",size:a="default",asChild:n=!1,...o}){let i=n?s.Slot.Root:"div";return(0,t.jsx)(i,{"data-slot":"item","data-variant":r,"data-size":a,className:(0,l.cn)(c({variant:r,size:a,className:e})),...o})}let u=(0,i.cva)("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"[&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function p({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-content",className:(0,l.cn)("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",e),...r})}function m({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-title",className:(0,l.cn)("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",e),...r})}function f({className:e,...r}){return(0,t.jsx)("p",{"data-slot":"item-description",className:(0,l.cn)("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})}e.s(["Item",0,d,"ItemActions",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-actions",className:(0,l.cn)("flex items-center gap-2",e),...r})},"ItemContent",0,p,"ItemDescription",0,f,"ItemGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{role:"list","data-slot":"item-group",className:(0,l.cn)("group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",e),...r})},"ItemMedia",0,function({className:e,variant:r="default",...a}){return(0,t.jsx)("div",{"data-slot":"item-media","data-variant":r,className:(0,l.cn)(u({variant:r,className:e})),...a})},"ItemTitle",0,m],906197);var g=e.i(337822);e.s(["SearchableSelect",0,function({value:e,onValueChange:i,options:s,placeholder:c,searchPlaceholder:u,emptyMessage:y,ariaLabel:x,disabled:h,className:v,showSelectedDetails:b=!1}){let[w,j]=(0,a.useState)(!1),N=s.find(t=>t.value===e);return(0,t.jsxs)(g.Popover,{onOpenChange:j,open:w,children:[(0,t.jsx)(g.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(n.Button,{"aria-expanded":w,"aria-label":x,className:(0,l.cn)("min-w-0 w-full justify-between font-normal",b&&N&&"h-auto min-h-8 py-2",v),disabled:h,role:"combobox",type:"button",variant:"outline",children:[b&&N?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:N.label}),N.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:N.description}),N.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:N.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:N?.label??c}),(0,t.jsx)(r,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(g.PopoverContent,{align:"start",className:"z-70 w-(--radix-popover-trigger-width) p-0",children:(0,t.jsxs)(o.Command,{label:u,children:[(0,t.jsx)(o.CommandInput,{"aria-label":u,autoFocus:!0,placeholder:u}),(0,t.jsxs)(o.CommandList,{children:[(0,t.jsx)(o.CommandEmpty,{children:y}),(0,t.jsx)(o.CommandGroup,{children:s.map(r=>(0,t.jsx)(o.CommandItem,{"aria-label":[r.label,r.description,r.secondaryDescription].filter(Boolean).join(", "),"aria-selected":r.value===e,className:"items-start py-2","data-checked":r.value===e,disabled:r.disabled,keywords:[r.label,r.description??"",r.secondaryDescription??"",r.keywords??""],onSelect:()=>{i(r.value),j(!1)},value:r.value,children:(0,t.jsx)(d,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(p,{className:"min-w-0",children:[(0,t.jsx)(m,{className:"block truncate",children:r.label}),r.description&&(0,t.jsx)(f,{className:"block truncate",children:r.description}),r.secondaryDescription&&(0,t.jsx)(f,{className:"block truncate",children:r.secondaryDescription})]})})},r.value))})]})]})})]})}],337355)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,110204,e=>{"use strict";var t=e.i(843476),r=e.i(271645);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.i(174080);var o=Symbol.for("radix.slottable"),a=Symbol.for("react.lazy");function i(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===a&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var s=r[" use ".trim().toString()],l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,a)=>{var l;let c,d=(l=`Primitive.${a}`,(c=r.forwardRef((e,t)=>{var a;let c,d,{children:u,...p}=e,f=null,m=!1,g=[];i(u)&&"function"==typeof s&&(u=s(u._payload)),r.Children.forEach(u,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===o){m=!0;let t="child"in e.props?e.props.child:e.props.children;i(t)&&"function"==typeof s&&(t=s(t._payload)),f=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),g.push(f?.props?.children)}else g.push(e)}),f?f=r.cloneElement(f,void 0,g):!m&&1===r.Children.count(u)&&r.isValidElement(u)&&(f=u);let y=f?(a=f,(d=(c=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in c&&c.isReactWarning)?a.ref:(d=(c=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in c&&c.isReactWarning)?a.props.ref:a.props.ref||a.ref):void 0,h=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,o=e.map(e=>{let o=n(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t<o.length;t++){let r=o[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}(t,y);if(!f){if(u||0===u){let e,t;throw Error(m?(e=l,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=l,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return u}let v=function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(p,f.props??{});return f.type!==r.Fragment&&(v.ref=t?h:y),r.cloneElement(f,v)})).displayName=`${l}.Slot`,c),u=r.forwardRef((e,r)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(n?d:a,{...o,ref:r})});return u.displayName=`Primitive.${a}`,{...e,[a]:u}},{}),c=r.forwardRef((e,r)=>(0,t.jsx)(l.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));c.displayName="Label",e.s(["Label",0,c,"Root",0,c],973741);var d=e.i(973741),d=d,u=e.i(975157);e.s(["Label",0,function({className:e,...r}){return(0,t.jsx)(d.Root,{"data-slot":"label",className:(0,u.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}],110204)},643957,e=>{"use strict";let t=(0,e.i(456420).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",0,t])},999682,e=>{"use strict";var t=e.i(271645);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])}])},593698,e=>{"use strict";var t=e.i(643957);e.s(["CheckIcon",()=>t.default])},75830,586318,e=>{"use strict";var t=e.i(271645),r=e.i(30030);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t.useCallback(function(...e){return t=>{let r=!1,o=e.map(e=>{let o=n(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t<o.length;t++){let r=o[t];"function"==typeof r?r():n(e[t],null)}}}}(...e),e)}function a(e){let r=t.forwardRef((r,n)=>{var a;let l,f,{children:m,...g}=r,y=null,h=!1,v=[];c(m)&&"function"==typeof p&&(m=p(m._payload)),t.Children.forEach(m,e=>{var r;if(r=e,t.isValidElement(r)&&"function"==typeof r.type&&"__radixId"in r.type&&r.type.__radixId===i){h=!0;let t="child"in e.props?e.props.child:e.props.children;c(t)&&"function"==typeof p&&(t=p(t._payload)),y=s(e,t),v.push(y?.props?.children)}else v.push(e)}),y?y=t.cloneElement(y,void 0,v):!h&&1===t.Children.count(m)&&t.isValidElement(m)&&(y=m);let x=y?(a=y,(f=(l=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?a.ref:(f=(l=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in l&&l.isReactWarning)?a.props.ref:a.props.ref||a.ref):void 0,b=o(n,x);if(!y){if(m||0===m)throw Error(h?u(e):d(e));return m}let w=function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(g,y.props??{});return y.type!==t.Fragment&&(w.ref=n?b:x),t.cloneElement(y,w)});return r.displayName=`${e}.Slot`,r}var i=Symbol.for("radix.slottable"),s=(e,r)=>{if("child"in e.props){let r=e.props.child;return t.isValidElement(r)?t.cloneElement(r,void 0,e.props.children(r.props.children)):null}return t.isValidElement(r)?r:null},l=Symbol.for("react.lazy");function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===l&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,u=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,p=t[" use ".trim().toString()],f=e.i(843476),m=new WeakMap;function g(e,t){var r,n;let o,a,i;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,o=r.length,(i=(a=y(n))>=0?a:o+a)<0||i>=o?-1:i);return -1===s?void 0:e[s]}function y(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],m.set(this,!0)}set(e,t){return m.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 n,o=this.has(t),a=this.#e.length,i=y(e),s=i>=0?i:a+i,l=s<0||s>=a?-1:s;if(l===this.size||o&&l===this.size-1||-1===l)return this.set(t,r),this;let c=this.size+ +!o;i<0&&s++;let d=[...this.#e],u=!1;for(let e=s;e<c;e++)if(s===e){let a=d[e];d[e]===t&&(a=d[e+1]),o&&this.delete(t),n=this.get(a),this.set(t,r)}else{u||d[e-1]!==t||(u=!0);let r=d[u?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,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 n=this.#e.indexOf(e);return -1===n?this:this.insert(n+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=g(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=g(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return g(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}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),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let n=e+"CollectionProvider",[i,s]=(0,r.createContextScope)(n),[l,c]=i(n,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,o=t.useRef(null),a=t.useRef(new Map).current;return(0,f.jsx)(l,{scope:r,itemMap:a,collectionRef:o,children:n})};d.displayName=n;let u=e+"CollectionSlot",p=a(u),m=t.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=o(t,c(u,r).collectionRef);return(0,f.jsx)(p,{ref:a,children:n})});m.displayName=u;let g=e+"CollectionItemSlot",y="data-radix-collection-item",h=a(g),v=t.forwardRef((e,r)=>{let{scope:n,children:a,...i}=e,s=t.useRef(null),l=o(r,s),d=c(g,n);return t.useEffect(()=>(d.itemMap.set(s,{ref:s,...i}),()=>void d.itemMap.delete(s))),(0,f.jsx)(h,{...{[y]:""},ref:l,children:a})});return v.displayName=g,[{Provider:d,Slot:m,ItemSlot:v},function(r){let n=c(e+"CollectionConsumer",r);return t.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},s]}],75830);var h=t.createContext(void 0);e.s(["useDirection",0,function(e){let r=t.useContext(h);return e||r||"ltr"}],586318)},776639,e=>{"use strict";var t=e.i(843476),r=e.i(560964),n=e.i(964053),o=e.i(519455),a=e.i(975157);function i({...e}){return(0,t.jsx)(n.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function s({className:e,...r}){return(0,t.jsx)(n.Dialog.Overlay,{className:(0,a.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),"data-slot":"dialog-overlay",...r})}e.s(["Dialog",0,function({...e}){return(0,t.jsx)(n.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:l,showCloseButton:c=!0,...d}){return(0,t.jsxs)(i,{children:[(0,t.jsx)(s,{}),(0,t.jsxs)(n.Dialog.Content,{className:(0,a.cn)("fixed top-1/2 left-1/2 z-50 grid max-h-[85dvh] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),"data-slot":"dialog-content",...d,children:[l,c&&(0,t.jsx)(n.Dialog.Close,{asChild:!0,"data-slot":"dialog-close",children:(0,t.jsxs)(o.Button,{className:"absolute top-2 right-2",size:"icon-sm",variant:"ghost",children:[(0,t.jsx)(r.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})})]})]})},"DialogDescription",0,function({className:e,...r}){return(0,t.jsx)(n.Dialog.Description,{className:(0,a.cn)("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e),"data-slot":"dialog-description",...r})},"DialogFooter",0,function({className:e,showCloseButton:r=!1,children:i,...s}){return(0,t.jsxs)("div",{className:(0,a.cn)("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...s,children:[i,r&&(0,t.jsx)(n.Dialog.Close,{asChild:!0,children:(0,t.jsx)(o.Button,{variant:"outline",children:"Close"})})]})},"DialogHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col gap-2",e),"data-slot":"dialog-header",...r})},"DialogTitle",0,function({className:e,...r}){return(0,t.jsx)(n.Dialog.Title,{className:(0,a.cn)("font-heading text-base leading-none font-medium",e),"data-slot":"dialog-title",...r})},"DialogTrigger",0,function({...e}){return(0,t.jsx)(n.Dialog.Trigger,{"data-slot":"dialog-trigger",...e})}])},842727,e=>{"use strict";var t=e.i(271645);function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}"u">typeof window&&window.document&&window.document.createElement;var n=e.i(75830);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return t.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():o(e[t],null)}}}}(...e),e)}var i=e.i(30030),s=e.i(610772);e.i(174080);var l=Symbol.for("radix.slottable"),c=Symbol.for("react.lazy");function d(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===c&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var u=t[" use ".trim().toString()],p=e.i(843476),f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{var n;let o,i=(n=`Primitive.${r}`,(o=t.forwardRef((e,r)=>{var o;let i,s,{children:c,...p}=e,f=null,m=!1,g=[];d(c)&&"function"==typeof u&&(c=u(c._payload)),t.Children.forEach(c,e=>{var r;if(r=e,t.isValidElement(r)&&"function"==typeof r.type&&"__radixId"in r.type&&r.type.__radixId===l){m=!0;let r="child"in e.props?e.props.child:e.props.children;d(r)&&"function"==typeof u&&(r=u(r._payload)),f=((e,r)=>{if("child"in e.props){let r=e.props.child;return t.isValidElement(r)?t.cloneElement(r,void 0,e.props.children(r.props.children)):null}return t.isValidElement(r)?r:null})(e,r),g.push(f?.props?.children)}else g.push(e)}),f?f=t.cloneElement(f,void 0,g):!m&&1===t.Children.count(c)&&t.isValidElement(c)&&(f=c);let y=f?(o=f,(s=(i=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?o.ref:(s=(i=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in i&&i.isReactWarning)?o.props.ref:o.props.ref||o.ref):void 0,h=a(r,y);if(!f){if(c||0===c){let e,t;throw Error(m?(e=n,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=n,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return c}let v=function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(p,f.props??{});return f.type!==t.Fragment&&(v.ref=r?h:y),t.cloneElement(f,v)})).displayName=`${n}.Slot`,o),s=t.forwardRef((e,t)=>{let{asChild:n,...o}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(n?i:r,{...o,ref:t})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{}),m=e.i(30207),g=globalThis?.document?t.useLayoutEffect:()=>{};t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var y=t[" useInsertionEffect ".trim().toString()]||g;Symbol("RADIX:SYNC_STATE");var h=e.i(586318),v=!1,x=t[" useSyncExternalStore ".trim().toString()];function b(){return()=>{}}var w="function"==typeof x?function(){return x(b,()=>!0,()=>!1)}:function(){let[e,r]=t.useState(v);return t.useEffect(()=>{v||(v=!0,r(!0))},[]),e},j="rovingFocusGroup.onEntryFocus",E={bubbles:!1,cancelable:!0},S="RovingFocusGroup",[k,R,C]=(0,n.createCollection)(S),[N,A]=(0,i.createContextScope)(S,[C]),[I,$]=N(S),T=t.forwardRef((e,t)=>(0,p.jsx)(k.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(k.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(z,{...e,ref:t})})}));T.displayName=S;var z=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,orientation:i,loop:s=!1,dir:l,currentTabStopId:c,defaultCurrentTabStopId:d,onCurrentTabStopIdChange:u,onEntryFocus:g,preventScrollOnEntryFocus:v=!1,...x}=e,b=t.useRef(null),w=a(n,b),k=(0,h.useDirection)(l),[C,N]=function({prop:e,defaultProp:r,onChange:n=()=>{},caller:o}){let[a,i,s]=function({defaultProp:e,onChange:r}){let[n,o]=t.useState(e),a=t.useRef(n),i=t.useRef(r);return y(()=>{i.current=r},[r]),t.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,o,i]}({defaultProp:r,onChange:n}),l=void 0!==e,c=l?e:a;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=l},[l,o])}return[c,t.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else i(t)},[l,e,i,s])]}({prop:c,defaultProp:d??null,onChange:u,caller:S}),[A,$]=t.useState(!1),T=(0,m.useCallbackRef)(g),z=R(o),D=t.useRef(!1),[_,O]=t.useState(0);return t.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(j,T),()=>e.removeEventListener(j,T)},[T]),(0,p.jsx)(I,{scope:o,orientation:i,dir:k,loop:s,currentTabStopId:C,onItemFocus:t.useCallback(e=>N(e),[N]),onItemShiftTab:t.useCallback(()=>$(!0),[]),onFocusableItemAdd:t.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>O(e=>e-1),[]),children:(0,p.jsx)(f.div,{tabIndex:A||0===_?-1:0,"data-orientation":i,...x,ref:w,style:{outline:"none",...e.style},onMouseDown:r(e.onMouseDown,()=>{D.current=!0}),onFocus:r(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!A){let t=new CustomEvent(j,E);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=z().filter(e=>e.focusable);P([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),v)}}D.current=!1}),onBlur:r(e.onBlur,()=>$(!1))})})}),D="RovingFocusGroupItem",_=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,focusable:a=!0,active:i=!1,tabStopId:l,children:c,...d}=e,u=(0,s.useId)(),m=l||u,y=$(D,o),h=y.currentTabStopId===m,v=R(o),{onFocusableItemAdd:x,onFocusableItemRemove:b,currentTabStopId:j}=y,E=w();return g(()=>{if(E&&a)return x(),()=>b()},[E,a,x,b]),t.useEffect(()=>{if(!E&&a)return x(),()=>b()},[E,a,x,b]),(0,p.jsx)(k.ItemSlot,{scope:o,id:m,focusable:a,active:i,children:(0,p.jsx)(f.span,{tabIndex:h?0:-1,"data-orientation":y.orientation,...d,ref:n,onMouseDown:r(e.onMouseDown,e=>{a?y.onItemFocus(m):e.preventDefault()}),onFocus:r(e.onFocus,()=>y.onItemFocus(m)),onKeyDown:r(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void y.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return O[o]}(e,y.orientation,y.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=y.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>P(o))}}),children:"function"==typeof c?c({isCurrentTabStop:h,hasTabStop:null!=j}):c})})});_.displayName=D;var O={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function P(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}e.s(["Item",0,_,"Root",0,T,"createRovingFocusGroupScope",0,A],842727)},624687,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Textarea",0,function({className:e,...n}){return(0,t.jsx)("textarea",{className:(0,r.cn)("min-h-24 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50",e),...n})}])},508734,e=>{"use strict";let t=(0,e.i(456420).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],508734)},929592,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(975157);let o=(0,r.cva)("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});e.s(["Alert",0,function({className:e,variant:r,...a}){return(0,t.jsx)("div",{"data-slot":"alert",role:"alert",className:(0,n.cn)(o({variant:r}),e),...a})},"AlertDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"alert-description",className:(0,n.cn)("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...r})}])},515288,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Card",0,function({className:e,size:n="default",...o}){return(0,t.jsx)("div",{"data-slot":"card","data-size":n,className:(0,r.cn)("group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",e),...o})},"CardAction",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-action",className:(0,r.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...n})},"CardContent",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-(--card-spacing)",e),...n})},"CardDescription",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-description",className:(0,r.cn)("text-sm text-muted-foreground",e),...n})},"CardFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-footer",className:(0,r.cn)("flex items-center rounded-b-xl border-t bg-muted/50 p-(--card-spacing)",e),...n})},"CardHeader",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)",e),...n})},"CardTitle",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"card-title",className:(0,r.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e),...n})}])},758379,e=>{"use strict";let t=(0,e.i(456420).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t])},987968,e=>{"use strict";var t=e.i(843476),r=e.i(975157),n=e.i(758379),n=n;e.s(["Spinner",0,function({className:e,...o}){return(0,t.jsx)(n.default,{"data-slot":"spinner",role:"status","aria-label":"Loading",className:(0,r.cn)("size-4 animate-spin",e),...o})}],987968)},637611,e=>{"use strict";var t,r,n=e.i(247167);function o(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function a(e){return"object"===o(e)}function i(e,t){return e.length<124?e:t}var s=((t=s||{})[t.InternalServerError=4500]="InternalServerError",t[t.InternalClientError=4005]="InternalClientError",t[t.BadRequest=4400]="BadRequest",t[t.BadResponse=4004]="BadResponse",t[t.Unauthorized=4401]="Unauthorized",t[t.Forbidden=4403]="Forbidden",t[t.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",t[t.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",t[t.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",t[t.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",t[t.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",t),l=((r=l||{}).ConnectionInit="connection_init",r.ConnectionAck="connection_ack",r.Ping="ping",r.Pong="pong",r.Subscribe="subscribe",r.Next="next",r.Error="error",r.Complete="complete",r);function c(e){if(!a(e))throw Error(`Message is expected to be an object, but got ${o(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${o(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":if(null!=e.payload&&!a(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case"subscribe":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!a(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${o(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${o(e.payload.query)}`);if(null!=e.payload.variables&&!a(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${o(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==o(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${o(e.payload.operationName)}`);if(null!=e.payload.extensions&&!a(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${o(e.payload.extensions)}`);break;case"next":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!a(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${o(e.payload)}`);break;case"error":var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case"complete":if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${o(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function d(e,t){return c(e),JSON.stringify(e,t)}class u extends Error{name="TerminatedCloseEvent";message="4499: Terminated";code=4499;reason="Terminated";wasClean=!1}function p(e){return a(e)&&"code"in e&&"reason"in e}async function f(e,t){let r=await fetch("/api/graphql",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({query:e,variables:t})}),n=await r.json();if(!r.ok||n.errors?.length||!n.data)throw Error(n.errors?.map(e=>e.message).join("; ")||`HTTP ${r.status}`);return n.data}let m=null;function g(){return function(e,t,r){let n=`${"https:"===t?"wss":"ws"}://${r}/graphql`;if(!e)return n;try{let r=new URL(e);if("https:"===t&&"wss:"!==r.protocol)return n}catch{}return e}(n.default.env.NEXT_PUBLIC_AGENT_WS_URL,window.location.protocol,window.location.host)}e.s(["controlPlaneRequest",0,f,"controlPlaneSubscriptions",0,function(){return m??=function(t){let r,n,o,a,{url:f,connectionParams:m,lazy:g=!0,onNonLazyError:y=console.error,lazyCloseTimeout:h=0,keepAlive:v=0,disablePong:x,connectionAckWaitTimeout:b=0,retryAttempts:w=5,retryWait:j=async function(e){let t=Math.pow(2,e);await new Promise(e=>setTimeout(e,1e3*t+Math.floor(2700*Math.random()+300)))},shouldRetry:E=p,on:S,webSocketImpl:k,generateID:R=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:C,jsonMessageReviver:N}=t;if(k){var A;if(!("function"==typeof(A=k)&&"constructor"in A&&"CLOSED"in A&&"CLOSING"in A&&"CONNECTING"in A&&"OPEN"in A))throw Error("Invalid WebSocket implementation provided");r=k}else r="u">typeof WebSocket?WebSocket:e.g.WebSocket||e.g.MozWebSocket;if(!r)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let I=r,$=(n={},o={on:(e,t)=>(n[e]=t,()=>{delete n[e]}),emit(e){"id"in e&&n[e.id]?.(e)}},a={connecting:S?.connecting?[S.connecting]:[],opened:S?.opened?[S.opened]:[],connected:S?.connected?[S.connected]:[],ping:S?.ping?[S.ping]:[],pong:S?.pong?[S.pong]:[],message:S?.message?[o.emit,S.message]:[o.emit],closed:S?.closed?[S.closed]:[],error:S?.error?[S.error]:[]},{onMessage:o.on,on(e,t){let r=a[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...a[e]])r(...t)}});function T(e){let t=[$.on("error",r=>{t.forEach(e=>e()),e(r)}),$.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let z,D=0,_,O=!1,P=0,M=!1;async function F(){clearTimeout(_);let[e,t]=await (z??(z=new Promise((e,t)=>(async()=>{let r,n;if(O){if(await j(P),!D)return z=void 0,t({code:1e3,reason:"All Subscriptions Gone"});P++}$.emit("connecting",O);let o=new I("function"==typeof f?await f():f,"graphql-transport-ws");function a(){isFinite(v)&&v>0&&(clearTimeout(n),n=setTimeout(()=>{o.readyState===I.OPEN&&(o.send(d({type:l.Ping})),$.emit("ping",!1,void 0))},v))}T(e=>{z=void 0,clearTimeout(r),clearTimeout(n),t(e),e instanceof u&&(o.close(4499,"Terminated"),o.onerror=null,o.onclose=null)}),o.onerror=e=>$.emit("error",e),o.onclose=e=>$.emit("closed",e),o.onopen=async()=>{try{$.emit("opened",o);let e="function"==typeof m?await m():m;if(o.readyState!==I.OPEN)return;o.send(d(e?{type:l.ConnectionInit,payload:e}:{type:l.ConnectionInit},C)),isFinite(b)&&b>0&&(r=setTimeout(()=>{o.close(s.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},b)),a()}catch(e){$.emit("error",e),o.close(s.InternalClientError,i(e instanceof Error?e.message:String(e),"Internal client error"))}};let p=!1;o.onmessage=({data:t})=>{try{let n=c("string"==typeof t?JSON.parse(t,N):t);if($.emit("message",n),"ping"===n.type||"pong"===n.type){$.emit(n.type,!0,n.payload),"pong"===n.type?a():x||(o.send(d(n.payload?{type:l.Pong,payload:n.payload}:{type:l.Pong})),$.emit("pong",!1,n.payload));return}if(p)return;if(n.type!==l.ConnectionAck)throw Error(`First message cannot be of type ${n.type}`);clearTimeout(r),p=!0,$.emit("connected",o,n.payload,O),O=!1,P=0,e([o,new Promise((e,t)=>T(t))])}catch(e){o.onmessage=null,$.emit("error",e),o.close(s.BadResponse,i(e instanceof Error?e.message:String(e),"Bad response"))}}})())));e.readyState===I.CLOSING&&await t;let r=()=>{},n=new Promise(e=>r=e);return[e,r,Promise.race([n.then(()=>{D||(isFinite(h)&&h>0?_=setTimeout(()=>{e.readyState===I.OPEN&&e.close(1e3,"Normal Closure")},h):e.close(1e3,"Normal Closure"))}),t])]}function L(e){var t;if(p(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[s.InternalServerError,s.InternalClientError,s.BadRequest,s.BadResponse,s.Unauthorized,s.SubprotocolNotAcceptable,s.SubscriberAlreadyExists,s.TooManyInitialisationRequests].includes(e.code)))throw e;if(M)return!1;if(p(e)&&1e3===e.code)return D>0;if(!w||P>=w||!E(e))throw e;return O=!0}function W(e,t){let r=R(e),n=!1,o=!1,a=()=>{D--,n=!0};return(async()=>{for(D++;;)try{let[i,s,c]=await F();if(n)return s();let u=$.onMessage(r,e=>{switch(e.type){case l.Next:return void t.next(e.payload);case l.Error:o=!0,n=!0,t.error(e.payload),a();return;case l.Complete:n=!0,a();return}});i.send(d({id:r,type:l.Subscribe,payload:e},C)),a=()=>{n||i.readyState!==I.OPEN||i.send(d({id:r,type:l.Complete},C)),D--,n=!0,s()},await c.finally(u);return}catch(e){if(!L(e))return}})().then(()=>{o||t.complete()}).catch(e=>{t.error(e)}),()=>{n||a()}}return g||(async()=>{for(D++;;)try{let[,,e]=await F();await e}catch(e){try{if(!L(e))return}catch(e){return y?.(e)}}})(),{on:$.on,subscribe:W,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},n=W(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),o=async function*(){for(;;){for(t.length||await new Promise(e=>r.resolve=e);t.length;)yield t.shift();if(r.error)throw r.error;if(r.done)return}}();return o.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),o.return=async()=>(n(),{done:!0,value:void 0}),o},async dispose(){if(M=!0,z){let[e]=await z;e.close(1e3,"Normal Closure")}},terminate(){z&&$.emit("closed",new u)}}}({url:g,lazy:!0,retryAttempts:1/0,shouldRetry:()=>!0})}],637611)},487486,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(709840),o=e.i(975157);let a=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",success:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 [a]:hover:bg-emerald-500/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",asChild:i=!1,...s}){let l=i?n.Slot.Root:"span";return(0,t.jsx)(l,{className:(0,o.cn)(a({variant:r}),e),"data-slot":"badge","data-variant":r,...s})}])},784774,e=>{"use strict";var t=e.i(843476),r=e.i(975157);e.s(["Table",0,function({className:e,containerClassName:n,...o}){return(0,t.jsx)("div",{className:(0,r.cn)("w-full overflow-x-auto",n),children:(0,t.jsx)("table",{className:(0,r.cn)("w-full caption-bottom text-sm",e),...o})})},"TableBody",0,function({className:e,...n}){return(0,t.jsx)("tbody",{className:(0,r.cn)("divide-y",e),...n})},"TableCell",0,function({className:e,...n}){return(0,t.jsx)("td",{className:(0,r.cn)("whitespace-nowrap px-3 py-3 align-middle",e),...n})},"TableFooter",0,function({className:e,...n}){return(0,t.jsx)("tfoot",{className:(0,r.cn)("border-t bg-muted/50 font-medium",e),...n})},"TableHead",0,function({className:e,...n}){return(0,t.jsx)("th",{className:(0,r.cn)("h-10 whitespace-nowrap px-3 text-left align-middle text-xs font-medium text-muted-foreground",e),...n})},"TableHeader",0,function({className:e,...n}){return(0,t.jsx)("thead",{className:(0,r.cn)("border-b",e),...n})},"TableRow",0,function({className:e,...n}){return(0,t.jsx)("tr",{className:(0,r.cn)("transition-colors hover:bg-muted/40",e),...n})}])},462777,e=>{"use strict";async function t(e){if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch{}let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.opacity="0",document.body.append(t),t.select();let r=document.execCommand("copy");if(t.remove(),!r)throw Error("Copy is not supported by this browser")}e.s(["copyText",0,t,"createClientId",0,function(){try{if(globalThis.crypto?.randomUUID)return globalThis.crypto.randomUUID()}catch{}if(globalThis.crypto?.getRandomValues)try{let e=globalThis.crypto.getRandomValues(new Uint8Array(16));return Array.from(e,e=>e.toString(16).padStart(2,"0")).join("")}catch{}return`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}])},689664,e=>{"use strict";var t=e.i(643957);e.s(["Check",()=>t.default])},741120,e=>{"use strict";let t=(0,e.i(456420).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],741120)},82612,e=>{"use strict";var t=e.i(843476),r=e.i(225913),n=e.i(975157);let o=(0,r.cva)("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4"}},defaultVariants:{variant:"default"}});e.s(["Empty",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty",className:(0,n.cn)("flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",e),...r})},"EmptyDescription",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-description",className:(0,n.cn)("text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})},"EmptyHeader",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-header",className:(0,n.cn)("flex max-w-sm flex-col items-center gap-2",e),...r})},"EmptyMedia",0,function({className:e,variant:r="default",...a}){return(0,t.jsx)("div",{"data-slot":"empty-icon","data-variant":r,className:(0,n.cn)(o({variant:r,className:e})),...a})},"EmptyTitle",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"empty-title",className:(0,n.cn)("font-heading text-sm font-medium tracking-tight",e),...r})}])},482022,e=>{"use strict";let t=(0,e.i(456420).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"}]]);e.s(["ExternalLink",0,t],482022)},772382,e=>{"use strict";let t=(0,e.i(456420).default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,t],772382)},159888,e=>{"use strict";let t=(0,e.i(456420).default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,t],159888)},799676,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(30030),o=e.i(30207),a=globalThis?.document?r.useLayoutEffect:()=>{};function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}e.i(174080);var s=Symbol.for("radix.slottable"),l=Symbol.for("react.lazy");function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===l&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var d=r[" use ".trim().toString()],u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var o;let a,l=(o=`Primitive.${n}`,(a=r.forwardRef((e,t)=>{var n;let a,l,{children:u,...p}=e,f=null,m=!1,g=[];c(u)&&"function"==typeof d&&(u=d(u._payload)),r.Children.forEach(u,e=>{var t;if(t=e,r.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===s){m=!0;let t="child"in e.props?e.props.child:e.props.children;c(t)&&"function"==typeof d&&(t=d(t._payload)),f=((e,t)=>{if("child"in e.props){let t=e.props.child;return r.isValidElement(t)?r.cloneElement(t,void 0,e.props.children(t.props.children)):null}return r.isValidElement(t)?t:null})(e,t),g.push(f?.props?.children)}else g.push(e)}),f?f=r.cloneElement(f,void 0,g):!m&&1===r.Children.count(u)&&r.isValidElement(u)&&(f=u);let y=f?(n=f,(l=(a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.ref:(l=(a=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?n.props.ref:n.props.ref||n.ref):void 0,h=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():i(e[t],null)}}}}(...e),e)}(t,y);if(!f){if(u||0===u){let e,t;throw Error(m?(e=o,`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(t=o,`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return u}let v=function(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{let t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(p,f.props??{});return f.type!==r.Fragment&&(v.ref=t?h:y),r.cloneElement(f,v)})).displayName=`${o}.Slot`,a),u=r.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,t.jsx)(o?l:n,{...a,ref:r})});return u.displayName=`Primitive.${n}`,{...e,[n]:u}},{}),p="Avatar",[f,m]=(0,n.createContextScope)(p),g=[0,()=>void 0],[y,h]=f(p),v=r.forwardRef((e,n)=>{let{__scopeAvatar:o,...a}=e,[i,s]=r.useState("idle"),[l,c]=function(){let e=g;{let[t]=e=r.useState(0),n=r.useRef(!1);r.useEffect(()=>{t>1&&!n.current&&(n.current=!0,console.warn("Avatar: Only one `Avatar.Image` component should be rendered per `Avatar.Root`, but multiple were detected. This will lead to unexpected behavior."))},[t])}return e}();return(0,t.jsx)(y,{scope:o,imageLoadingStatus:i,setImageLoadingStatus:s,imageCount:l,setImageCount:c,children:(0,t.jsx)(u.span,{...a,ref:n})})});v.displayName=p;var x="AvatarImage",b=r.forwardRef((e,n)=>{var i;let{__scopeAvatar:s,src:l,onLoadingStatusChange:c,...d}=e,p=h(x,s);i=p.setImageCount,r.useEffect(()=>(i(e=>e+1),()=>{i(e=>e-1)}),[i]);let f=function(e,{loadingStatus:t,setLoadingStatus:r,referrerPolicy:n,crossOrigin:o}){return a(()=>{if(!e)return void r("error");let t=new window.Image,a=e=>{r(E(e.currentTarget))},i=()=>r("error");return t.addEventListener("load",a),t.addEventListener("error",i),n&&(t.referrerPolicy=n),t.crossOrigin=o??null,t.src=e,r(E(t)),()=>{t.removeEventListener("load",a),t.removeEventListener("error",i),r("idle")}},[e,o,n,r]),t}(l,{referrerPolicy:d.referrerPolicy,crossOrigin:d.crossOrigin,loadingStatus:p.imageLoadingStatus,setLoadingStatus:p.setImageLoadingStatus}),m=(0,o.useCallbackRef)(e=>{c?.(e)}),g=r.useRef(f);return a(()=>{let e=g.current;g.current=f,f!==e&&m(f)},[f,m]),"loaded"===f?(0,t.jsx)(u.img,{...d,ref:n,src:l}):null});b.displayName=x;var w="AvatarFallback",j=r.forwardRef((e,n)=>{let{__scopeAvatar:o,delayMs:a,...i}=e,s=h(w,o),[l,c]=r.useState(void 0===a);return r.useEffect(()=>{if(void 0!==a){let e=window.setTimeout(()=>c(!0),a);return()=>window.clearTimeout(e)}},[a]),l&&"loaded"!==s.imageLoadingStatus?(0,t.jsx)(u.span,{...i,ref:n}):null});function E(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}j.displayName=w,e.s(["Avatar",0,v,"AvatarFallback",0,j,"AvatarImage",0,b,"Fallback",0,j,"Image",0,b,"Root",0,v,"createAvatarScope",0,m],97456);var S=e.i(97456),S=S,k=e.i(975157);e.s(["Avatar",0,function({className:e,size:r="default",...n}){return(0,t.jsx)(S.Root,{className:(0,k.cn)("group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",e),"data-size":r,"data-slot":"avatar",...n})},"AvatarFallback",0,function({className:e,...r}){return(0,t.jsx)(S.Fallback,{className:(0,k.cn)("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",e),"data-slot":"avatar-fallback",...r})},"AvatarImage",0,function({className:e,...r}){return(0,t.jsx)(S.Image,{className:(0,k.cn)("aspect-square size-full rounded-full object-cover",e),"data-slot":"avatar-image",...r})}],799676)},337355,563707,906197,e=>{"use strict";var t=e.i(843476);let r=(0,e.i(456420).default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,r],563707);var n=e.i(271645),o=e.i(519455),a=e.i(317056),i=e.i(225913),s=e.i(709840),l=e.i(975157);e.i(772436);let c=(0,i.cva)("group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted",{variants:{variant:{default:"border-transparent",outline:"border-border",muted:"border-transparent bg-muted/50"},size:{default:"gap-2.5 px-3 py-2.5",sm:"gap-2.5 px-3 py-2.5",xs:"gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:r="default",size:n="default",asChild:o=!1,...a}){let i=o?s.Slot.Root:"div";return(0,t.jsx)(i,{"data-slot":"item","data-variant":r,"data-size":n,className:(0,l.cn)(c({variant:r,size:n,className:e})),...a})}let u=(0,i.cva)("flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none",{variants:{variant:{default:"bg-transparent",icon:"[&_svg:not([class*='size-'])]:size-4",image:"size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover"}},defaultVariants:{variant:"default"}});function p({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-content",className:(0,l.cn)("flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none",e),...r})}function f({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-title",className:(0,l.cn)("line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4",e),...r})}function m({className:e,...r}){return(0,t.jsx)("p",{"data-slot":"item-description",className:(0,l.cn)("line-clamp-2 text-left text-sm leading-normal font-normal text-muted-foreground group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",e),...r})}e.s(["Item",0,d,"ItemActions",0,function({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"item-actions",className:(0,l.cn)("flex items-center gap-2",e),...r})},"ItemContent",0,p,"ItemDescription",0,m,"ItemGroup",0,function({className:e,...r}){return(0,t.jsx)("div",{role:"list","data-slot":"item-group",className:(0,l.cn)("group/item-group flex w-full flex-col gap-4 has-data-[size=sm]:gap-2.5 has-data-[size=xs]:gap-2",e),...r})},"ItemMedia",0,function({className:e,variant:r="default",...n}){return(0,t.jsx)("div",{"data-slot":"item-media","data-variant":r,className:(0,l.cn)(u({variant:r,className:e})),...n})},"ItemTitle",0,f],906197);var g=e.i(337822);e.s(["SearchableSelect",0,function({value:e,onValueChange:i,options:s,placeholder:c,searchPlaceholder:u,emptyMessage:y,ariaLabel:h,disabled:v,className:x,showSelectedDetails:b=!1}){let[w,j]=(0,n.useState)(!1),E=s.find(t=>t.value===e);return(0,t.jsxs)(g.Popover,{onOpenChange:j,open:w,children:[(0,t.jsx)(g.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{"aria-expanded":w,"aria-label":h,className:(0,l.cn)("min-w-0 w-full justify-between font-normal",b&&E&&"h-auto min-h-8 py-2",x),disabled:v,role:"combobox",type:"button",variant:"outline",children:[b&&E?(0,t.jsxs)("span",{className:"min-w-0 text-left",children:[(0,t.jsx)("span",{className:"block truncate",children:E.label}),E.description&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:E.description}),E.secondaryDescription&&(0,t.jsx)("span",{className:"block truncate text-xs text-muted-foreground",children:E.secondaryDescription})]}):(0,t.jsx)("span",{className:"min-w-0 truncate",children:E?.label??c}),(0,t.jsx)(r,{className:"shrink-0 opacity-50"})]})}),(0,t.jsx)(g.PopoverContent,{align:"start",className:"z-70 w-(--radix-popover-trigger-width) p-0",children:(0,t.jsxs)(a.Command,{label:u,children:[(0,t.jsx)(a.CommandInput,{"aria-label":u,autoFocus:!0,placeholder:u}),(0,t.jsxs)(a.CommandList,{children:[(0,t.jsx)(a.CommandEmpty,{children:y}),(0,t.jsx)(a.CommandGroup,{children:s.map(r=>(0,t.jsx)(a.CommandItem,{"aria-label":[r.label,r.description,r.secondaryDescription].filter(Boolean).join(", "),"aria-selected":r.value===e,className:"items-start py-2","data-checked":r.value===e,disabled:r.disabled,keywords:[r.label,r.description??"",r.secondaryDescription??"",r.keywords??""],onSelect:()=>{i(r.value),j(!1)},value:r.value,children:(0,t.jsx)(d,{className:"min-w-0 flex-1 border-0 p-0",size:"xs",children:(0,t.jsxs)(p,{className:"min-w-0",children:[(0,t.jsx)(f,{className:"block truncate",children:r.label}),r.description&&(0,t.jsx)(m,{className:"block truncate",children:r.description}),r.secondaryDescription&&(0,t.jsx)(m,{className:"block truncate",children:r.secondaryDescription})]})})},r.value))})]})]})})]})}],337355)}]);
|