conductor-oss 0.26.4 → 0.26.6
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 +5 -5
- package/web/.next/standalone/packages/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/packages/web/.next/app-path-routes-manifest.json +4 -4
- package/web/.next/standalone/packages/web/.next/build-manifest.json +3 -3
- package/web/.next/standalone/packages/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/packages/web/.next/react-loadable-manifest.json +6 -6
- package/web/.next/standalone/packages/web/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.html +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/api/bridge/devices/[deviceId]/service-restart/route.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/api/workspaces/route.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/bridge/connect/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sessions/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/settings/bridge/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/[[...sign-in]]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/hosted/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/sign-in/sso-callback/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/unlock/page.js.nft.json +1 -1
- package/web/.next/standalone/packages/web/.next/server/app/unlock/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/app-paths-manifest.json +4 -4
- package/web/.next/standalone/packages/web/.next/server/chunks/{7361.js → 1159.js} +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/5164.js +3 -3
- package/web/.next/standalone/packages/web/.next/server/chunks/5295.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/5744.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/6207.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/7164.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/9293.js +1 -0
- package/web/.next/standalone/packages/web/.next/server/chunks/9455.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/middleware-build-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/pages/500.html +1 -1
- package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/packages/web/.next/server/server-reference-manifest.json +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/1257-e2a3894e5e0cc71b.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/1665-1eff15a246cfce80.js +2 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/1690.e7b57c7296ac9195.js +1 -0
- package/web/.next/{static/chunks/2452-19d94753fbd97c89.js → standalone/packages/web/.next/static/chunks/2452-dbb0e1dbd4032cd8.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/370.cf0044df047e274d.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/4443.b5d497c3d76271c6.js +1 -0
- package/web/.next/standalone/packages/web/.next/static/chunks/{7220-6cb285d2bc683c0c.js → 7220-014b585c5dd62e72.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/bridge/connect/{page-275fc646fd4987e9.js → page-3d4e68f832274494.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/layout-e9000902211963e3.js +1 -0
- package/web/.next/{static/chunks/app/page-65b3833e9de01fa1.js → standalone/packages/web/.next/static/chunks/app/page-5208aa0107fba2da.js} +1 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/sessions/[id]/{page-e6814603536935ee.js → page-714da5ecea6df958.js} +1 -1
- package/web/.next/{static/chunks/webpack-b9083811ff13d1d3.js → standalone/packages/web/.next/static/chunks/webpack-238e6e36fd250744.js} +1 -1
- package/web/.next/static/chunks/1257-e2a3894e5e0cc71b.js +1 -0
- package/web/.next/static/chunks/1665-1eff15a246cfce80.js +2 -0
- package/web/.next/static/chunks/1690.e7b57c7296ac9195.js +1 -0
- package/web/.next/{standalone/packages/web/.next/static/chunks/2452-19d94753fbd97c89.js → static/chunks/2452-dbb0e1dbd4032cd8.js} +1 -1
- package/web/.next/static/chunks/370.cf0044df047e274d.js +1 -0
- package/web/.next/static/chunks/4443.b5d497c3d76271c6.js +1 -0
- package/web/.next/static/chunks/{7220-6cb285d2bc683c0c.js → 7220-014b585c5dd62e72.js} +1 -1
- package/web/.next/static/chunks/app/bridge/connect/{page-275fc646fd4987e9.js → page-3d4e68f832274494.js} +1 -1
- package/web/.next/static/chunks/app/layout-e9000902211963e3.js +1 -0
- package/web/.next/{standalone/packages/web/.next/static/chunks/app/page-65b3833e9de01fa1.js → static/chunks/app/page-5208aa0107fba2da.js} +1 -1
- package/web/.next/static/chunks/app/sessions/[id]/{page-e6814603536935ee.js → page-714da5ecea6df958.js} +1 -1
- package/web/.next/{standalone/packages/web/.next/static/chunks/webpack-b9083811ff13d1d3.js → static/chunks/webpack-238e6e36fd250744.js} +1 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/3865.js +0 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/4656.js +0 -1
- package/web/.next/standalone/packages/web/.next/server/chunks/7181.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/1665-3304dc3ed2c2954d.js +0 -2
- package/web/.next/standalone/packages/web/.next/static/chunks/4443.f6d93719a836d5a4.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/4517-5b5b3b23ba76e80f.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/7542.54c25c3fb727a2e3.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/945.3536525b4ff7fa1d.js +0 -1
- package/web/.next/standalone/packages/web/.next/static/chunks/app/layout-dd4c6d44c4af2a5b.js +0 -1
- package/web/.next/static/chunks/1665-3304dc3ed2c2954d.js +0 -2
- package/web/.next/static/chunks/4443.f6d93719a836d5a4.js +0 -1
- package/web/.next/static/chunks/4517-5b5b3b23ba76e80f.js +0 -1
- package/web/.next/static/chunks/7542.54c25c3fb727a2e3.js +0 -1
- package/web/.next/static/chunks/945.3536525b4ff7fa1d.js +0 -1
- package/web/.next/static/chunks/app/layout-dd4c6d44c4af2a5b.js +0 -1
- /package/web/.next/standalone/packages/web/.next/static/{gwN27S3INNu22KsuYbkJd → OL_osFppS0-7QIckR96DB}/_buildManifest.js +0 -0
- /package/web/.next/standalone/packages/web/.next/static/{gwN27S3INNu22KsuYbkJd → OL_osFppS0-7QIckR96DB}/_ssgManifest.js +0 -0
- /package/web/.next/static/{gwN27S3INNu22KsuYbkJd → OL_osFppS0-7QIckR96DB}/_buildManifest.js +0 -0
- /package/web/.next/static/{gwN27S3INNu22KsuYbkJd → OL_osFppS0-7QIckR96DB}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,a,c,d,f,b,t,r,o,n={},i={};function s(e){var a=i[e];if(void 0!==a)return a.exports;var c=i[e]={exports:{}},d=!0;try{n[e](c,c.exports,s),d=!1}finally{d&&delete i[e]}return c.exports}s.m=n,e=[],s.O=(a,c,d,f)=>{if(c){f=f||0;for(var b=e.length;b>0&&e[b-1][2]>f;b--)e[b]=e[b-1];e[b]=[c,d,f];return}for(var t=1/0,b=0;b<e.length;b++){for(var[c,d,f]=e[b],r=!0,o=0;o<c.length;o++)(!1&f||t>=f)&&Object.keys(s.O).every(e=>s.O[e](c[o]))?c.splice(o--,1):(r=!1,f<t&&(t=f));if(r){e.splice(b--,1);var n=d();void 0!==n&&(a=n)}}return a},s.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return s.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,d){if(1&d&&(e=this(e)),8&d||"object"==typeof e&&e&&(4&d&&e.__esModule||16&d&&"function"==typeof e.then))return e;var f=Object.create(null);s.r(f);var b={};a=a||[null,c({}),c([]),c(c)];for(var t=2&d&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach(a=>b[a]=()=>e[a]);return b.default=()=>e,s.d(f,b),f},s.d=(e,a)=>{for(var c in a)s.o(a,c)&&!s.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((a,c)=>(s.f[c](e,a),a),[])),s.u=e=>2452===e?"static/chunks/2452-19d94753fbd97c89.js":9450===e?"static/chunks/9450-296374d8c386d1aa.js":524===e?"static/chunks/524-766ca5d84a96df31.js":3954===e?"static/chunks/3954-8737ba0845209eda.js":"static/chunks/"+(({260:"336436a7",1659:"a4f73d83",1917:"58f38233",3470:"7545c6b5",3543:"6907ee1e",3616:"d917f8c9",3849:"87851ddc",4177:"19a2cade",4762:"b3ef812f",5134:"ca465714",8561:"f1fd93f1",9223:"08e9f8d4",9430:"59a51a4c",9992:"b74732b4"})[e]||e)+"."+({21:"89c66005a060a5db",39:"a4c71badafdd9999",49:"bfdb657c1e94fe04",66:"ba8e1f8a7de3ffd1",137:"7e8b0517bf569b15",143:"9393fc8d78a0dbd9",195:"b27e08cda1161770",205:"75576600d7a32b34",251:"6fe9737785590215",260:"77452dd3b20146a6",307:"364d1ff853e806b5",338:"301aee496ec62b30",347:"06e7bb721073d0b1",401:"dae54b037209112d",474:"e2261e8fe56e5d2b",491:"8df9bdbe831f4a73",520:"725f6c2169f35670",566:"464b5951f5f05fbc",614:"2281a8b0c301797b",634:"941fd9f55ad81365",638:"b62e9131cfac26e8",643:"8b320f8377a34b75",659:"14e369b9a4944635",667:"e76918e0db9306fc",695:"cc4437eb14820e73",705:"2659af85fc9c96ef",723:"3923fc1a881c8665",736:"183230ba50bb651f",759:"143be185109e794a",763:"30a13397784472fb",803:"a3f1e1d6d507fa12",850:"8533925c75596812",901:"2ed792978b958610",918:"c648315f31be5ecf",920:"98e63d826640ee86",931:"c7e3b80b2feae415",941:"fd98a3ee624da6e2",945:"3536525b4ff7fa1d",949:"fbf94b4684ba3c0b",997:"09c037d3028aae00",1006:"3c53de09482da913",1046:"33b71e1d00faada0",1052:"9ac2274003f5905d",1081:"6e400e5ffc4cd3a2",1087:"4ca163e5ca349fb0",1159:"dce3d7a284d851f9",1220:"754b8fdccae1a987",1227:"aef52ee97a37b67e",1251:"b08a0d5b010580b3",1256:"8218290894c814dd",1343:"e183b62a101e2a28",1356:"df5a7b1d1f903566",1399:"dd0fc6368e5b9dbc",1485:"a50ac4eccab1da5a",1516:"1f7f72b30243687d",1569:"80a8d41e0abcb447",1604:"a56818148e23d78e",1613:"c6fe9f1e79098bb1",1659:"53e654ffdc9fdd3e",1745:"cd7d71918de9cb63",1890:"1de505c9bbb58403",1917:"5ff89f94ff0f0386",1924:"5203170f07456b51",1949:"6166871f4616f671",1973:"ba05db0960003e3a",2002:"6ccdaa3301a08bc3",2008:"39797e4860749054",2009:"15bf57d75d91fc70",2029:"1f9ef678d457ce40",2064:"c919e26ada69b601",2094:"08a34a1f82aabb38",2118:"6d7d5b626ea9d95e",2136:"45f74e82dddfcf8a",2187:"316f1d2f81bd6a15",2194:"be772557a806b45b",2213:"2aeefe2d5fe80865",2228:"810adbeee03b4a23",2248:"181dfaa9b563f715",2288:"1e7ffee26b63eedf",2394:"2749bfe10e8256fd",2505:"59659818a6437c38",2582:"7f2e3456831cafbe",2618:"898cb1f35198c030",2643:"d8509333d39edf34",2672:"5484d5bc2feb29eb",2716:"74b190135fc8f8ae",2725:"f04d6fa81951b02d",2766:"6708336cdaaec987",2944:"f98cb801f2fe6801",2968:"c035675959036a26",3023:"439ce27f91df1b5a",3025:"a6409a4c50aa6b50",3027:"d32f7ce6fe24e24d",3035:"d55165cf71483875",3048:"581728e93215a4f2",3111:"7f47b7af66ca1fbf",3211:"b0595e60ea4fcff0",3219:"cc7c5745c8155aa9",3309:"ace84bdcc45f5619",3348:"2f574ccf2b5cfd8c",3445:"7c393f3049424e54",3446:"fb026320baffe327",3462:"5a0b5141527cda21",3470:"2ef286cc269cbbe0",3502:"76db367d14aefbab",3518:"1c34dd172e486ce4",3531:"fa4d6b63e1e692cd",3543:"8ad341b6a75fa799",3583:"28ace0881fe730ea",3609:"fcf9f91042cff79b",3616:"5680ad3780812343",3714:"d42d5df72b92ec38",3736:"b92826c00020fe12",3750:"bab3eb0fdeb5a4a1",3826:"bdc7a2af31e802c3",3843:"cde2fe886e4eb9f2",3849:"dc71a6695b07428e",3922:"6f871228307155f8",3971:"154b902083a92a74",4021:"828758f4e47c21c3",4063:"3047633f31ed7455",4089:"e1046284ba419f1a",4107:"731f8239852ddbbe",4163:"7b7f2384954f9f57",4177:"31d92e49bbf690f8",4185:"ab47a50594e8178a",4280:"33630d2fd3b5faf7",4293:"04c5c8d53b110acc",4305:"39d5a4854f6581a3",4314:"a3eb2293d2685eb0",4319:"09d04cf39cd7b5b2",4352:"49db0f8e3514003f",4388:"0688e8bc30480818",4404:"953f24dbeb0a44c0",4429:"8f0b98d34e7e0df0",4443:"f6d93719a836d5a4",4486:"96a4833a8d35ee07",4535:"665fc994dd695727",4582:"8b972ea7500df8dd",4605:"9365a7e5cfa96b95",4611:"48026daa1ceef8e9",4651:"46eb45dbae3b7fbf",4695:"576442890bb85872",4715:"0235398be0cee170",4733:"db3cdb2b713fe48d",4742:"dd50a37e0c09e4d0",4743:"8f684de86de07757",4762:"c82050d496b46242",4849:"35376b4657ff1071",4889:"e7f34a1375ffd6e2",4891:"d007b90163d3764c",4910:"fa3651c9836e9cc8",4921:"c919e26ada69b601",4947:"e100d75290295105",4953:"6dca52908750af8c",4982:"70f8d2d0c17e3045",5013:"edb21916aadcba03",5034:"b30b7437764f6226",5134:"4d31bfa1a1fb3e89",5171:"43e5c4edb3205ebe",5299:"0ee0685bbff562f3",5350:"aa94c6b8388dca53",5361:"0d3c5e5a487a67ed",5372:"d89a41b743afad60",5387:"a19edfb860f62e94",5403:"4d4517a4aeb6f9d4",5406:"47524e5109936f41",5436:"1228842465009bde",5482:"b5316a9b4bf214ed",5488:"f8de80cfdcf5ea54",5503:"d687814dc81efe2a",5541:"551a82f6823faefa",5559:"16487a252280590e",5644:"3dae19dbc7cd6dc1",5794:"6608ef6f4dcae4c5",5811:"158470dcd2d20272",5910:"55ac290e7e676b0b",5937:"966f925b66fcfbfd",5965:"810c6a006d03100a",5968:"fbd894c4549909ae",5990:"c6ed8770bc5bb2b9",6056:"1236748c7371fe94",6092:"54281dc96c515c4c",6097:"c8f304e256b528f7",6114:"8aa1b5ce7e6d65e3",6143:"005593bfdd2ac4ef",6153:"1b16c58083ddc5da",6202:"46533eb50bcb2b02",6226:"8ab007badc948408",6227:"23f0128159fa5aa7",6258:"8c13bb60c07fd0a8",6267:"13f3222151b29c47",6294:"f625e24dda25ad33",6300:"46ca86f61f0e2653",6318:"1ceadf3c639caecd",6347:"7a01ff4eb14248c5",6439:"67ce2783c59f94a5",6446:"7f2a0581b25f2f32",6453:"dca52781e2d97623",6498:"c68cf2fed1f8e223",6543:"33b19a960d99cbd9",6546:"23d70f654f80c658",6558:"951535ea0d1f1134",6637:"3a8b94fba0f25c8e",6639:"509ba1e7aa03a5d0",6660:"3ab1fe8312128d13",6674:"d4d35317497fff70",6675:"a6cf864cd6fecad5",6702:"e7afb4c56e120896",6721:"b81baf909d7449fa",6750:"dd3e03b1561f93c7",6772:"702586c4a13fa3b5",6778:"b11dd7c7d98f5ec9",6820:"6cacbe052a5e60c3",6836:"28cea96e95318a01",6858:"083125bdb146331f",6884:"c194f0a98a1b9118",6934:"b01dbcef6fcc5f10",6944:"b258f33302e798eb",6976:"bc4b9f7f4e783f74",6982:"e249c102d4364c36",7052:"668b973df8146782",7077:"c8c37a8cc46080ec",7078:"006aaa7649f1eba1",7082:"536cebbdae597baa",7111:"4e2a85c51d610456",7245:"9a7044c686e1e8aa",7268:"f4890b6e1a3e575f",7302:"8172d81113189817",7383:"d818de224b4753ab",7388:"de247364c0d07eef",7403:"25b1d8574003a276",7452:"42dee77dbd7b945d",7504:"cc1d00d4cf49e440",7511:"95dc3df17bdce110",7538:"7e1bbbe63cff0562",7540:"cc573f0982af80f8",7542:"54c25c3fb727a2e3",7559:"dc4bc3eed3a2c9aa",7565:"9ae86ea1715782a0",7578:"d04c0169c7ff59a0",7582:"95ebb4fa829e8609",7604:"49556d0292523231",7605:"278fa9614a1c4efc",7654:"69f0303ee3115f18",7799:"09bfbba1458ea0a0",7805:"61d009e1c1d63173",7813:"d7cd03ac2be02c32",7885:"bbf9d27c9955862e",7915:"4ff095add809bba6",7921:"28d1f2b5eae62719",7952:"81312df15a130b8d",7966:"0b31fb2fe5ded9b2",8e3:"4beca6f7273e77be",8043:"337f0eccb0fea28c",8048:"2249af53330a66f6",8090:"8388e7f012bf0720",8093:"cd36e108daad0739",8115:"eb9dfcc86b21cce2",8130:"997b05975d40c96e",8132:"736c2350218bc374",8179:"3106e7c063997aa3",8194:"b6d433be4f244e14",8198:"cb3080398c70f78a",8218:"ba21c9fe8e1eefe2",8392:"71f74c174370d847",8414:"ab44334e110076e4",8432:"265e7fb442f7455a",8495:"8803956ba0d8c40c",8539:"a2d3694f0d117516",8561:"64d591c95ab55378",8564:"52775d4281d72165",8599:"c0a141e199720df1",8645:"980580120c56e67f",8658:"eefde27f46690669",8672:"d1fcd7ce65b7e5cb",8678:"acd1281dd062017b",8706:"bd4abfb526b585cc",8707:"2c3de6c603e121a0",8716:"1f136fe023d06d7d",8724:"7aa617ae4d55c023",8733:"c626198538458c59",8735:"350b7fd13037afed",8745:"5ed48d5b158fa809",8791:"2566e7881cc41e40",8894:"57dc3f3674d677eb",8959:"57014b840ee75752",8967:"6a167410c4240598",9003:"db666d472b6641cf",9054:"d2c903b7ddcae050",9085:"651439c0e5509629",9115:"3cf91571d413e064",9120:"e4b2cccaaac06e9e",9121:"63e72a22943ba681",9136:"f074be345a9303f0",9167:"b297f3e0aac18dbd",9175:"9790d827e86e77dd",9203:"c5c041ead00ab2f9",9223:"15b9de8ccbdc5de6",9291:"877a6cbda0d05565",9327:"57b60dbce23abd74",9336:"57f0540627cf97d0",9344:"686191b6c16a6511",9354:"b29c9f4b8aa62a4b",9355:"28e46420ac563b95",9381:"6ee9137dc570b715",9388:"0f6a9f1c67c36e1c",9430:"fbe21468acadb86a",9439:"0aa6da7584d6c097",9506:"3d9e616fd121f667",9531:"3016f53df0c2a542",9602:"8c998080def3f0e0",9643:"fc02d88ab0d46ac1",9647:"6f33ab64e451a5e1",9650:"fa041bf7e01981a4",9683:"c919e26ada69b601",9707:"472a90178e35f6ae",9710:"1d9197dec86da9c0",9752:"b6a9b4abd7e860b5",9781:"4d49a4b2f4758912",9914:"314c7fab8d237bd8",9982:"7cbaa0d4f5a1d0a1",9992:"b957826bf9891669"})[e]+".js",s.miniCssF=e=>"static/css/6ef2fa08dd043252.css",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},s.l=(e,a,c,f)=>{if(d[e])return void d[e].push(a);if(void 0!==c)for(var b,t,r=document.getElementsByTagName("script"),o=0;o<r.length;o++){var n=r[o];if(n.getAttribute("src")==e||n.getAttribute("data-webpack")=="_N_E:"+c){b=n;break}}b||(t=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,s.nc&&b.setAttribute("nonce",s.nc),b.setAttribute("data-webpack","_N_E:"+c),b.src=s.tu(e)),d[e]=[a];var i=(a,c)=>{b.onerror=b.onload=null,clearTimeout(l);var f=d[e];if(delete d[e],b.parentNode&&b.parentNode.removeChild(b),f&&f.forEach(e=>e(c)),a)return a(c)},l=setTimeout(i.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=i.bind(null,b.onerror),b.onload=i.bind(null,b.onload),t&&document.head.appendChild(b)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=()=>(void 0===f&&(f={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(f=trustedTypes.createPolicy("nextjs#bundler",f))),f),s.tu=e=>s.tt().createScriptURL(e),s.p="/_next/",b={8068:0},s.f.miniCss=(e,a)=>{if(b[e])a.push(b[e]);else 0!==b[e]&&({4887:1})[e]&&a.push(b[e]=new Promise((a,c)=>{var d=s.miniCssF(e),f=s.p+d;if(((e,a)=>{for(var c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var f=c[d],b=f.getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(b===e||b===a))return f}for(var t=document.getElementsByTagName("style"),d=0;d<t.length;d++){var f=t[d],b=f.getAttribute("data-href");if(b===e||b===a)return f}})(d,f))return a();((e,a,c,d)=>{var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onerror=f.onload=b=>{if(f.onerror=f.onload=null,"load"===b.type)c();else{var t=b&&("load"===b.type?"missing":b.type),r=b&&b.target&&b.target.href||a,o=Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=t,o.request=r,f.parentNode.removeChild(f),d(o)}},f.href=a;if("function"==typeof _N_E_STYLE_LOAD){var b=f.href,t=f.onload,r=f.onerror;_N_E_STYLE_LOAD(0===b.indexOf(window.location.origin)?new URL(b).pathname:b).then(function(){t&&t.call(f,{type:"load"})},function(){r&&r.call(f,{})})}else document.head.appendChild(f)})(e,f,a,c)}).then(()=>{b[e]=0},a=>{throw delete b[e],a}))},t={8068:0,7547:0},s.f.j=(e,a)=>{var c=s.o(t,e)?t[e]:void 0;if(0!==c)if(c)a.push(c[2]);else if(/^(4887|7547|8068)$/.test(e))t[e]=0;else{var d=new Promise((a,d)=>c=t[e]=[a,d]);a.push(c[2]=d);var f=s.p+s.u(e),b=Error();s.l(f,a=>{if(s.o(t,e)&&(0!==(c=t[e])&&(t[e]=void 0),c)){var d=a&&("load"===a.type?"missing":a.type),f=a&&a.target&&a.target.src;b.message="Loading chunk "+e+" failed.\n("+d+": "+f+")",b.name="ChunkLoadError",b.type=d,b.request=f,c[1](b)}},"chunk-"+e,e)}},s.O.j=e=>0===t[e],r=(e,a)=>{var c,d,[f,b,r]=a,o=0;if(f.some(e=>0!==t[e])){for(c in b)s.o(b,c)&&(s.m[c]=b[c]);if(r)var n=r(s)}for(e&&e(a);o<f.length;o++)d=f[o],s.o(t,d)&&t[d]&&t[d][0](),t[d]=0;return s.O(n)},(o=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o)),s.nc=void 0})();
|
|
1
|
+
(()=>{"use strict";var e,a,c,d,f,b,t,r,o,n={},i={};function s(e){var a=i[e];if(void 0!==a)return a.exports;var c=i[e]={exports:{}},d=!0;try{n[e](c,c.exports,s),d=!1}finally{d&&delete i[e]}return c.exports}s.m=n,e=[],s.O=(a,c,d,f)=>{if(c){f=f||0;for(var b=e.length;b>0&&e[b-1][2]>f;b--)e[b]=e[b-1];e[b]=[c,d,f];return}for(var t=1/0,b=0;b<e.length;b++){for(var[c,d,f]=e[b],r=!0,o=0;o<c.length;o++)(!1&f||t>=f)&&Object.keys(s.O).every(e=>s.O[e](c[o]))?c.splice(o--,1):(r=!1,f<t&&(t=f));if(r){e.splice(b--,1);var n=d();void 0!==n&&(a=n)}}return a},s.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return s.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,d){if(1&d&&(e=this(e)),8&d||"object"==typeof e&&e&&(4&d&&e.__esModule||16&d&&"function"==typeof e.then))return e;var f=Object.create(null);s.r(f);var b={};a=a||[null,c({}),c([]),c(c)];for(var t=2&d&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach(a=>b[a]=()=>e[a]);return b.default=()=>e,s.d(f,b),f},s.d=(e,a)=>{for(var c in a)s.o(a,c)&&!s.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce((a,c)=>(s.f[c](e,a),a),[])),s.u=e=>2452===e?"static/chunks/2452-dbb0e1dbd4032cd8.js":9450===e?"static/chunks/9450-296374d8c386d1aa.js":524===e?"static/chunks/524-766ca5d84a96df31.js":3954===e?"static/chunks/3954-8737ba0845209eda.js":"static/chunks/"+(({260:"336436a7",1659:"a4f73d83",1917:"58f38233",3470:"7545c6b5",3543:"6907ee1e",3616:"d917f8c9",3849:"87851ddc",4177:"19a2cade",4762:"b3ef812f",5134:"ca465714",8561:"f1fd93f1",9223:"08e9f8d4",9430:"59a51a4c",9992:"b74732b4"})[e]||e)+"."+({21:"89c66005a060a5db",39:"a4c71badafdd9999",49:"bfdb657c1e94fe04",66:"ba8e1f8a7de3ffd1",137:"7e8b0517bf569b15",143:"9393fc8d78a0dbd9",195:"b27e08cda1161770",205:"75576600d7a32b34",251:"6fe9737785590215",260:"77452dd3b20146a6",307:"364d1ff853e806b5",338:"301aee496ec62b30",347:"06e7bb721073d0b1",370:"cf0044df047e274d",401:"dae54b037209112d",474:"e2261e8fe56e5d2b",491:"8df9bdbe831f4a73",520:"725f6c2169f35670",566:"464b5951f5f05fbc",614:"2281a8b0c301797b",634:"941fd9f55ad81365",638:"b62e9131cfac26e8",643:"8b320f8377a34b75",659:"14e369b9a4944635",667:"e76918e0db9306fc",695:"cc4437eb14820e73",705:"2659af85fc9c96ef",723:"3923fc1a881c8665",736:"183230ba50bb651f",759:"143be185109e794a",763:"30a13397784472fb",803:"a3f1e1d6d507fa12",850:"8533925c75596812",901:"2ed792978b958610",918:"c648315f31be5ecf",920:"98e63d826640ee86",931:"c7e3b80b2feae415",941:"fd98a3ee624da6e2",949:"fbf94b4684ba3c0b",997:"09c037d3028aae00",1006:"3c53de09482da913",1046:"33b71e1d00faada0",1052:"9ac2274003f5905d",1081:"6e400e5ffc4cd3a2",1087:"4ca163e5ca349fb0",1159:"dce3d7a284d851f9",1220:"754b8fdccae1a987",1227:"aef52ee97a37b67e",1251:"b08a0d5b010580b3",1256:"8218290894c814dd",1343:"e183b62a101e2a28",1356:"df5a7b1d1f903566",1399:"dd0fc6368e5b9dbc",1485:"a50ac4eccab1da5a",1516:"1f7f72b30243687d",1569:"80a8d41e0abcb447",1604:"a56818148e23d78e",1613:"c6fe9f1e79098bb1",1659:"53e654ffdc9fdd3e",1690:"e7b57c7296ac9195",1745:"cd7d71918de9cb63",1890:"1de505c9bbb58403",1917:"5ff89f94ff0f0386",1924:"5203170f07456b51",1949:"6166871f4616f671",1973:"ba05db0960003e3a",2002:"6ccdaa3301a08bc3",2008:"39797e4860749054",2009:"15bf57d75d91fc70",2029:"1f9ef678d457ce40",2064:"c919e26ada69b601",2094:"08a34a1f82aabb38",2118:"6d7d5b626ea9d95e",2136:"45f74e82dddfcf8a",2187:"316f1d2f81bd6a15",2194:"be772557a806b45b",2213:"2aeefe2d5fe80865",2228:"810adbeee03b4a23",2248:"181dfaa9b563f715",2288:"1e7ffee26b63eedf",2394:"2749bfe10e8256fd",2505:"59659818a6437c38",2582:"7f2e3456831cafbe",2618:"898cb1f35198c030",2643:"d8509333d39edf34",2672:"5484d5bc2feb29eb",2716:"74b190135fc8f8ae",2725:"f04d6fa81951b02d",2766:"6708336cdaaec987",2944:"f98cb801f2fe6801",2968:"c035675959036a26",3023:"439ce27f91df1b5a",3025:"a6409a4c50aa6b50",3027:"d32f7ce6fe24e24d",3035:"d55165cf71483875",3048:"581728e93215a4f2",3111:"7f47b7af66ca1fbf",3211:"b0595e60ea4fcff0",3219:"cc7c5745c8155aa9",3309:"ace84bdcc45f5619",3348:"2f574ccf2b5cfd8c",3445:"7c393f3049424e54",3446:"fb026320baffe327",3462:"5a0b5141527cda21",3470:"2ef286cc269cbbe0",3502:"76db367d14aefbab",3518:"1c34dd172e486ce4",3531:"fa4d6b63e1e692cd",3543:"8ad341b6a75fa799",3583:"28ace0881fe730ea",3609:"fcf9f91042cff79b",3616:"5680ad3780812343",3714:"d42d5df72b92ec38",3736:"b92826c00020fe12",3750:"bab3eb0fdeb5a4a1",3826:"bdc7a2af31e802c3",3843:"cde2fe886e4eb9f2",3849:"dc71a6695b07428e",3922:"6f871228307155f8",3971:"154b902083a92a74",4021:"828758f4e47c21c3",4063:"3047633f31ed7455",4089:"e1046284ba419f1a",4107:"731f8239852ddbbe",4163:"7b7f2384954f9f57",4177:"31d92e49bbf690f8",4185:"ab47a50594e8178a",4280:"33630d2fd3b5faf7",4293:"04c5c8d53b110acc",4305:"39d5a4854f6581a3",4314:"a3eb2293d2685eb0",4319:"09d04cf39cd7b5b2",4352:"49db0f8e3514003f",4388:"0688e8bc30480818",4404:"953f24dbeb0a44c0",4429:"8f0b98d34e7e0df0",4443:"b5d497c3d76271c6",4486:"96a4833a8d35ee07",4535:"665fc994dd695727",4582:"8b972ea7500df8dd",4605:"9365a7e5cfa96b95",4611:"48026daa1ceef8e9",4651:"46eb45dbae3b7fbf",4695:"576442890bb85872",4715:"0235398be0cee170",4733:"db3cdb2b713fe48d",4742:"dd50a37e0c09e4d0",4743:"8f684de86de07757",4762:"c82050d496b46242",4849:"35376b4657ff1071",4889:"e7f34a1375ffd6e2",4891:"d007b90163d3764c",4910:"fa3651c9836e9cc8",4921:"c919e26ada69b601",4947:"e100d75290295105",4953:"6dca52908750af8c",4982:"70f8d2d0c17e3045",5013:"edb21916aadcba03",5034:"b30b7437764f6226",5134:"4d31bfa1a1fb3e89",5171:"43e5c4edb3205ebe",5299:"0ee0685bbff562f3",5350:"aa94c6b8388dca53",5361:"0d3c5e5a487a67ed",5372:"d89a41b743afad60",5387:"a19edfb860f62e94",5403:"4d4517a4aeb6f9d4",5406:"47524e5109936f41",5436:"1228842465009bde",5482:"b5316a9b4bf214ed",5488:"f8de80cfdcf5ea54",5503:"d687814dc81efe2a",5541:"551a82f6823faefa",5559:"16487a252280590e",5644:"3dae19dbc7cd6dc1",5794:"6608ef6f4dcae4c5",5811:"158470dcd2d20272",5910:"55ac290e7e676b0b",5937:"966f925b66fcfbfd",5965:"810c6a006d03100a",5968:"fbd894c4549909ae",5990:"c6ed8770bc5bb2b9",6056:"1236748c7371fe94",6092:"54281dc96c515c4c",6097:"c8f304e256b528f7",6114:"8aa1b5ce7e6d65e3",6143:"005593bfdd2ac4ef",6153:"1b16c58083ddc5da",6202:"46533eb50bcb2b02",6226:"8ab007badc948408",6227:"23f0128159fa5aa7",6258:"8c13bb60c07fd0a8",6267:"13f3222151b29c47",6294:"f625e24dda25ad33",6300:"46ca86f61f0e2653",6318:"1ceadf3c639caecd",6347:"7a01ff4eb14248c5",6439:"67ce2783c59f94a5",6446:"7f2a0581b25f2f32",6453:"dca52781e2d97623",6498:"c68cf2fed1f8e223",6543:"33b19a960d99cbd9",6546:"23d70f654f80c658",6558:"951535ea0d1f1134",6637:"3a8b94fba0f25c8e",6639:"509ba1e7aa03a5d0",6660:"3ab1fe8312128d13",6674:"d4d35317497fff70",6675:"a6cf864cd6fecad5",6702:"e7afb4c56e120896",6721:"b81baf909d7449fa",6750:"dd3e03b1561f93c7",6772:"702586c4a13fa3b5",6778:"b11dd7c7d98f5ec9",6820:"6cacbe052a5e60c3",6836:"28cea96e95318a01",6858:"083125bdb146331f",6884:"c194f0a98a1b9118",6934:"b01dbcef6fcc5f10",6944:"b258f33302e798eb",6976:"bc4b9f7f4e783f74",6982:"e249c102d4364c36",7052:"668b973df8146782",7077:"c8c37a8cc46080ec",7078:"006aaa7649f1eba1",7082:"536cebbdae597baa",7111:"4e2a85c51d610456",7245:"9a7044c686e1e8aa",7268:"f4890b6e1a3e575f",7302:"8172d81113189817",7383:"d818de224b4753ab",7388:"de247364c0d07eef",7403:"25b1d8574003a276",7452:"42dee77dbd7b945d",7504:"cc1d00d4cf49e440",7511:"95dc3df17bdce110",7538:"7e1bbbe63cff0562",7540:"cc573f0982af80f8",7559:"dc4bc3eed3a2c9aa",7565:"9ae86ea1715782a0",7578:"d04c0169c7ff59a0",7582:"95ebb4fa829e8609",7604:"49556d0292523231",7605:"278fa9614a1c4efc",7654:"69f0303ee3115f18",7799:"09bfbba1458ea0a0",7805:"61d009e1c1d63173",7813:"d7cd03ac2be02c32",7885:"bbf9d27c9955862e",7915:"4ff095add809bba6",7921:"28d1f2b5eae62719",7952:"81312df15a130b8d",7966:"0b31fb2fe5ded9b2",8e3:"4beca6f7273e77be",8043:"337f0eccb0fea28c",8048:"2249af53330a66f6",8090:"8388e7f012bf0720",8093:"cd36e108daad0739",8115:"eb9dfcc86b21cce2",8130:"997b05975d40c96e",8132:"736c2350218bc374",8179:"3106e7c063997aa3",8194:"b6d433be4f244e14",8198:"cb3080398c70f78a",8218:"ba21c9fe8e1eefe2",8392:"71f74c174370d847",8414:"ab44334e110076e4",8432:"265e7fb442f7455a",8495:"8803956ba0d8c40c",8539:"a2d3694f0d117516",8561:"64d591c95ab55378",8564:"52775d4281d72165",8599:"c0a141e199720df1",8645:"980580120c56e67f",8658:"eefde27f46690669",8672:"d1fcd7ce65b7e5cb",8678:"acd1281dd062017b",8706:"bd4abfb526b585cc",8707:"2c3de6c603e121a0",8716:"1f136fe023d06d7d",8724:"7aa617ae4d55c023",8733:"c626198538458c59",8735:"350b7fd13037afed",8745:"5ed48d5b158fa809",8791:"2566e7881cc41e40",8894:"57dc3f3674d677eb",8959:"57014b840ee75752",8967:"6a167410c4240598",9003:"db666d472b6641cf",9054:"d2c903b7ddcae050",9085:"651439c0e5509629",9115:"3cf91571d413e064",9120:"e4b2cccaaac06e9e",9121:"63e72a22943ba681",9136:"f074be345a9303f0",9167:"b297f3e0aac18dbd",9175:"9790d827e86e77dd",9203:"c5c041ead00ab2f9",9223:"15b9de8ccbdc5de6",9291:"877a6cbda0d05565",9327:"57b60dbce23abd74",9336:"57f0540627cf97d0",9344:"686191b6c16a6511",9354:"b29c9f4b8aa62a4b",9355:"28e46420ac563b95",9381:"6ee9137dc570b715",9388:"0f6a9f1c67c36e1c",9430:"fbe21468acadb86a",9439:"0aa6da7584d6c097",9506:"3d9e616fd121f667",9531:"3016f53df0c2a542",9602:"8c998080def3f0e0",9643:"fc02d88ab0d46ac1",9647:"6f33ab64e451a5e1",9650:"fa041bf7e01981a4",9683:"c919e26ada69b601",9707:"472a90178e35f6ae",9710:"1d9197dec86da9c0",9752:"b6a9b4abd7e860b5",9781:"4d49a4b2f4758912",9914:"314c7fab8d237bd8",9982:"7cbaa0d4f5a1d0a1",9992:"b957826bf9891669"})[e]+".js",s.miniCssF=e=>"static/css/6ef2fa08dd043252.css",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),d={},s.l=(e,a,c,f)=>{if(d[e])return void d[e].push(a);if(void 0!==c)for(var b,t,r=document.getElementsByTagName("script"),o=0;o<r.length;o++){var n=r[o];if(n.getAttribute("src")==e||n.getAttribute("data-webpack")=="_N_E:"+c){b=n;break}}b||(t=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,s.nc&&b.setAttribute("nonce",s.nc),b.setAttribute("data-webpack","_N_E:"+c),b.src=s.tu(e)),d[e]=[a];var i=(a,c)=>{b.onerror=b.onload=null,clearTimeout(l);var f=d[e];if(delete d[e],b.parentNode&&b.parentNode.removeChild(b),f&&f.forEach(e=>e(c)),a)return a(c)},l=setTimeout(i.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=i.bind(null,b.onerror),b.onload=i.bind(null,b.onload),t&&document.head.appendChild(b)},s.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.tt=()=>(void 0===f&&(f={createScriptURL:e=>e},"u">typeof trustedTypes&&trustedTypes.createPolicy&&(f=trustedTypes.createPolicy("nextjs#bundler",f))),f),s.tu=e=>s.tt().createScriptURL(e),s.p="/_next/",b={8068:0},s.f.miniCss=(e,a)=>{if(b[e])a.push(b[e]);else 0!==b[e]&&({4887:1})[e]&&a.push(b[e]=new Promise((a,c)=>{var d=s.miniCssF(e),f=s.p+d;if(((e,a)=>{for(var c=document.getElementsByTagName("link"),d=0;d<c.length;d++){var f=c[d],b=f.getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(b===e||b===a))return f}for(var t=document.getElementsByTagName("style"),d=0;d<t.length;d++){var f=t[d],b=f.getAttribute("data-href");if(b===e||b===a)return f}})(d,f))return a();((e,a,c,d)=>{var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onerror=f.onload=b=>{if(f.onerror=f.onload=null,"load"===b.type)c();else{var t=b&&("load"===b.type?"missing":b.type),r=b&&b.target&&b.target.href||a,o=Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.type=t,o.request=r,f.parentNode.removeChild(f),d(o)}},f.href=a;if("function"==typeof _N_E_STYLE_LOAD){var b=f.href,t=f.onload,r=f.onerror;_N_E_STYLE_LOAD(0===b.indexOf(window.location.origin)?new URL(b).pathname:b).then(function(){t&&t.call(f,{type:"load"})},function(){r&&r.call(f,{})})}else document.head.appendChild(f)})(e,f,a,c)}).then(()=>{b[e]=0},a=>{throw delete b[e],a}))},t={8068:0,7547:0},s.f.j=(e,a)=>{var c=s.o(t,e)?t[e]:void 0;if(0!==c)if(c)a.push(c[2]);else if(/^(4887|7547|8068)$/.test(e))t[e]=0;else{var d=new Promise((a,d)=>c=t[e]=[a,d]);a.push(c[2]=d);var f=s.p+s.u(e),b=Error();s.l(f,a=>{if(s.o(t,e)&&(0!==(c=t[e])&&(t[e]=void 0),c)){var d=a&&("load"===a.type?"missing":a.type),f=a&&a.target&&a.target.src;b.message="Loading chunk "+e+" failed.\n("+d+": "+f+")",b.name="ChunkLoadError",b.type=d,b.request=f,c[1](b)}},"chunk-"+e,e)}},s.O.j=e=>0===t[e],r=(e,a)=>{var c,d,[f,b,r]=a,o=0;if(f.some(e=>0!==t[e])){for(c in b)s.o(b,c)&&(s.m[c]=b[c]);if(r)var n=r(s)}for(e&&e(a);o<f.length;o++)d=f[o],s.o(t,d)&&t[d]&&t[d][0](),t[d]=0;return s.O(n)},(o=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o)),s.nc=void 0})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=3865,exports.ids=[3865],exports.modules={48582:(a,b,c)=>{c.d(b,{E:()=>g});var d=c(92692),e=c(93544);let f={default:"border-[var(--vk-border)] bg-[var(--vk-bg-panel)] text-[var(--vk-text-muted)]",success:"border-transparent bg-transparent text-[var(--vk-green)]",warning:"border-transparent bg-transparent text-[var(--vk-orange)]",error:"border-transparent bg-transparent text-[var(--vk-red)]",info:"border-transparent bg-transparent text-[var(--vk-text-muted)]",outline:"border-[var(--vk-border)] bg-transparent text-[var(--vk-text-muted)]"};function g({variant:a="default",className:b,children:c}){return(0,d.jsx)("span",{className:(0,e.cn)("inline-flex items-center gap-1 rounded-[3px] border px-1.5 py-0.5 text-[11px] leading-none",f[a],b),children:c})}},73865:(a,b,c)=>{c.r(b),c.d(b,{SessionSkills:()=>q});var d=c(92692),e=c(71277),f=c(37303);let g=(0,f.A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);var h=c(59789),i=c(64583);let j=(0,f.A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var k=c(3216),l=c(26996),m=c(46818),n=c(48582),o=c(1071),p=c(54761);function q({session:a,sessionId:b,active:c}){let f=a.bridgeId??null,r=a.metadata.agent?.trim()||a.metadata.executor?.trim()||a.metadata.runtimeAgent?.trim()||"",s=a.metadata.workspacePath?.trim()||null,t="claude-code"===r,[u,v]=(0,e.useState)(""),[w,x]=(0,e.useState)(s?"workspace":"user"),[y,z]=(0,e.useState)([]),[A,B]=(0,e.useState)({}),[C,D]=(0,e.useState)([]),[E,F]=(0,e.useState)([]),[G,H]=(0,e.useState)(!0),[I,J]=(0,e.useState)(null),[K,L]=(0,e.useState)(null),M=(0,e.useCallback)(async()=>{if(c){H(!0),L(null);try{let[a,c,d]=await Promise.all([fetch("/api/skills/catalog",{cache:"no-store"}),fetch((0,m.S)(`/api/skills/installed?agent=${encodeURIComponent(r||"claude-code")}${s?`&workspacePath=${encodeURIComponent(s)}`:""}`,f),{cache:"no-store"}),fetch((0,m.S)(`/api/skills/session-active?sessionId=${encodeURIComponent(b)}`,f),{cache:"no-store"})]),e=await a.json(),g=await c.json(),h=await d.json(),i=Object.fromEntries((g.skills??[]).map(a=>[a.skillId,a]));z(e.skills??[]),B(i),F(g.customSkills??[]),D(h.skillIds??[])}catch(a){L({kind:"error",message:a instanceof Error?a.message:"Failed to load skills"})}finally{H(!1)}}},[c,r,f,b,s]),N=(0,e.useMemo)(()=>{let a=u.trim().toLowerCase();return y.filter(b=>0===a.length||b.name.toLowerCase().includes(a)||b.summary.toLowerCase().includes(a)||b.category.toLowerCase().includes(a))},[y,u]),O=(0,e.useCallback)(async(a,c)=>{J(a.id),L(null);try{let d="activate"===c||"deactivate"===c?{sessionId:b,skillId:a.id}:{skillId:a.id,agent:r||"claude-code",scope:w,workspacePath:s,sessionId:b},e=await fetch((0,m.S)("install"===c?"/api/skills/install":"activate"===c?"/api/skills/activate":"deactivate"===c?"/api/skills/deactivate":"/api/skills/uninstall",f),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(d)}),g=await e.json().catch(()=>({}));if(!e.ok)throw Error(g.error||"Skill action failed");let h={install:`${a.name} installed and activated for this session.`,activate:`${a.name} is active for this session.`,deactivate:`${a.name} is no longer active for this session.`,uninstall:`${a.name} was removed from ${w} scope.`};L({kind:"success",message:h[c]}),await M()}catch(a){L({kind:"error",message:a instanceof Error?a.message:"Skill action failed"})}finally{J(null)}},[r,f,M,w,b,s]);return(0,d.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-y-auto overscroll-contain pb-4 lg:overflow-hidden lg:pb-0",children:[(0,d.jsx)(p.Zp,{children:(0,d.jsxs)(p.aR,{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between",children:[(0,d.jsxs)("div",{className:"space-y-1.5",children:[(0,d.jsx)("h2",{className:"text-[15px] font-semibold text-[var(--vk-text-normal)]",children:"Skills"}),(0,d.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:"Install Claude-style skills from the curated catalog on the paired device, detect what is already installed, and mark a skill as active for this session."})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 text-[12px] text-[var(--vk-text-muted)] lg:items-end",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)(g,{className:"h-3.5 w-3.5"})," Agent: ",(0,d.jsx)("span",{className:"font-medium text-[var(--vk-text-normal)]",children:r||"unknown"})]}),(0,d.jsxs)("div",{children:["Device: ",(0,d.jsx)("span",{className:"font-medium text-[var(--vk-text-normal)]",children:f??"local"})]}),(0,d.jsxs)("div",{children:["Workspace: ",(0,d.jsx)("span",{className:"font-medium text-[var(--vk-text-normal)]",children:s??"Unavailable"})]})]})]}),(0,d.jsxs)("div",{className:"flex flex-col gap-2 lg:flex-row lg:items-center lg:justify-between",children:[(0,d.jsxs)("label",{className:"flex items-center gap-2 rounded-[14px] border border-[var(--vk-border)] bg-[var(--vk-bg-main)] px-3 py-2 text-[12px] text-[var(--vk-text-muted)]",children:[(0,d.jsx)(h.A,{className:"h-3.5 w-3.5"}),(0,d.jsx)("input",{value:u,onChange:a=>v(a.target.value),placeholder:"Search skills",className:"w-full bg-transparent text-[13px] text-[var(--vk-text-normal)] outline-none placeholder:text-[var(--vk-text-muted)]"})]}),(0,d.jsxs)("label",{className:"flex items-center gap-2 text-[12px] text-[var(--vk-text-muted)]",children:["Install scope",(0,d.jsxs)("select",{value:w,onChange:a=>x(a.target.value),className:"rounded-[12px] border border-[var(--vk-border)] bg-[var(--vk-bg-main)] px-3 py-2 text-[13px] text-[var(--vk-text-normal)]",children:[(0,d.jsx)("option",{value:"user",children:"User, ~/.claude/skills"}),(0,d.jsx)("option",{value:"workspace",disabled:!s,children:"Workspace, .claude/skills"})]})]})]}),t?null:(0,d.jsxs)("div",{className:"rounded-[14px] border border-amber-400/30 bg-amber-400/10 px-3 py-2 text-[12px] text-amber-100",children:["This first release installs Claude Code skills only. Current session agent is ",(0,d.jsx)("span",{className:"font-semibold",children:r||"unknown"}),"."]}),K?(0,d.jsx)("div",{className:`rounded-[14px] border px-3 py-2 text-[12px] ${"error"===K.kind?"border-red-400/35 bg-red-400/10 text-red-100":"border-emerald-400/35 bg-emerald-400/10 text-emerald-100"}`,children:K.message}):null]})}),(0,d.jsxs)("div",{className:"grid min-h-0 flex-1 gap-3 lg:grid-cols-[minmax(0,1fr)_320px] lg:overflow-hidden",children:[(0,d.jsx)("div",{className:"min-h-0 rounded-[18px] border border-[var(--vk-border)] bg-[var(--vk-bg-surface)] p-3 lg:overflow-y-auto",children:(0,d.jsx)("div",{className:"space-y-3 lg:pr-2",children:G?(0,d.jsxs)("div",{className:"flex min-h-[220px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:[(0,d.jsx)(i.A,{className:"mr-2 h-4 w-4 animate-spin"})," Loading skills..."]}):0===N.length?(0,d.jsx)("div",{className:"flex min-h-[220px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:"No matching skills found."}):N.map(a=>{let b=A[a.id],c=!!(b?.installedUser||b?.installedWorkspace),e=C.includes(a.id),f=I===a.id,g=!a.compatibleAgents.includes(r||"claude-code");return(0,d.jsxs)(p.Zp,{className:"border-[var(--vk-border)] bg-[var(--vk-bg-main)]",children:[(0,d.jsxs)(p.aR,{className:"space-y-3",children:[(0,d.jsxs)("div",{className:"flex flex-col gap-3 xl:flex-row xl:items-start xl:justify-between",children:[(0,d.jsxs)("div",{className:"space-y-1.5",children:[(0,d.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,d.jsx)("h3",{className:"text-[14px] font-semibold text-[var(--vk-text-normal)]",children:a.name}),a.verified?(0,d.jsx)(n.E,{children:"Verified"}):(0,d.jsx)(n.E,{variant:"outline",children:"Community"}),(0,d.jsx)(n.E,{variant:"outline",children:a.category}),c?(0,d.jsx)(n.E,{variant:"outline",children:"Installed"}):null,e?(0,d.jsx)(n.E,{variant:"outline",children:"Active now"}):null,g?(0,d.jsx)(n.E,{variant:"outline",children:"Unsupported"}):null]}),(0,d.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:a.summary})]}),(0,d.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2 xl:w-auto xl:justify-end",children:(0,d.jsxs)("a",{href:a.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[12px] text-[var(--vk-text-muted)] hover:text-[var(--vk-text-normal)]",children:["Docs ",(0,d.jsx)(j,{className:"h-3 w-3"})]})})]}),(0,d.jsx)("div",{className:"flex flex-wrap gap-2 text-[12px] text-[var(--vk-text-muted)]",children:a.compatibleAgents.map(a=>(0,d.jsx)(n.E,{variant:"outline",children:a},a))})]}),(0,d.jsxs)(p.Wu,{className:"space-y-3",children:[b?.installPaths?.length?(0,d.jsxs)("div",{className:"rounded-[12px] border border-[var(--vk-border)] bg-[var(--vk-bg-surface)] px-3 py-2 text-[12px] text-[var(--vk-text-muted)]",children:["Installed at: ",b.installPaths.join(" • ")]}):null,(0,d.jsxs)("div",{className:"flex flex-wrap gap-2",children:[c?e?(0,d.jsxs)(o.$,{type:"button",variant:"outline",size:"sm",disabled:f,onClick:()=>void O(a,"deactivate"),children:[f?(0,d.jsx)(i.A,{className:"mr-1 h-3.5 w-3.5 animate-spin"}):(0,d.jsx)(k.A,{className:"mr-1 h-3.5 w-3.5"})," Deactivate"]}):(0,d.jsxs)(o.$,{type:"button",size:"sm",disabled:f||g,onClick:()=>void O(a,"activate"),children:[f?(0,d.jsx)(i.A,{className:"mr-1 h-3.5 w-3.5 animate-spin"}):(0,d.jsx)(l.A,{className:"mr-1 h-3.5 w-3.5"})," Use in session"]}):(0,d.jsxs)(o.$,{type:"button",size:"sm",disabled:f||g||!t,onClick:()=>void O(a,"install"),children:[f?(0,d.jsx)(i.A,{className:"mr-1 h-3.5 w-3.5 animate-spin"}):(0,d.jsx)(l.A,{className:"mr-1 h-3.5 w-3.5"})," Install and use"]}),c?(0,d.jsxs)(o.$,{type:"button",variant:"outline",size:"sm",disabled:f,onClick:()=>void O(a,"uninstall"),children:[f?(0,d.jsx)(i.A,{className:"mr-1 h-3.5 w-3.5 animate-spin"}):null," Uninstall"]}):null]})]})]},a.id)})})}),(0,d.jsxs)(p.Zp,{className:"min-h-0 border-[var(--vk-border)] bg-[var(--vk-bg-surface)] lg:overflow-y-auto",children:[(0,d.jsxs)(p.aR,{className:"flex-col items-start gap-1.5",children:[(0,d.jsx)("h3",{className:"text-[14px] font-semibold text-[var(--vk-text-normal)]",children:"Detected custom skills"}),(0,d.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:"Extra skill folders already present on the paired machine that do not match the curated catalog."})]}),(0,d.jsx)(p.Wu,{className:"space-y-2 text-[13px] text-[var(--vk-text-muted)]",children:0===E.length?(0,d.jsx)("p",{children:"No custom skill folders detected."}):E.map(a=>(0,d.jsxs)("div",{className:"rounded-[12px] border border-[var(--vk-border)] bg-[var(--vk-bg-main)] px-3 py-2",children:[(0,d.jsx)("div",{className:"font-medium text-[var(--vk-text-normal)]",children:a.name}),(0,d.jsxs)("div",{className:"text-[12px] text-[var(--vk-text-muted)]",children:["Detected from ",a.source]})]},a.id))})]})]})]})}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.id=4656,exports.ids=[4656],exports.modules={16026:(a,b,c)=>{c.d(b,{a:()=>e});var d=c(85660);let e=(0,d.createServerReference)("00f744501dd80954c9575fcb6fa3f8d46af8224403",d.callServer,void 0,d.findSourceMapURL,"createOrReadKeylessAction")},74656:(a,b,c)=>{c.r(b),c.d(b,{createOrReadKeylessAction:()=>g.a,deleteKeylessAction:()=>f,detectKeylessEnvDriftAction:()=>d.A,syncKeylessConfigAction:()=>h});var d=c(91567),e=c(85660);let f=(0,e.createServerReference)("007a3e3f0c29c0ca54e69015d1160debc98c75cce1",e.callServer,void 0,e.findSourceMapURL,"deleteKeylessAction");var g=c(16026);let h=(0,e.createServerReference)("40f40d449676232a3477e094e628fb13cfc56976da",e.callServer,void 0,e.findSourceMapURL,"syncKeylessConfigAction")}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.id=7181,exports.ids=[7181],exports.modules={14276:()=>{},14308:(a,b,c)=>{Promise.resolve().then(c.bind(c,3074)),Promise.resolve().then(c.bind(c,82099)),Promise.resolve().then(c.bind(c,6932)),Promise.resolve().then(c.bind(c,66185)),Promise.resolve().then(c.bind(c,87839)),Promise.resolve().then(c.bind(c,53759)),Promise.resolve().then(c.bind(c,90075)),Promise.resolve().then(c.bind(c,66504)),Promise.resolve().then(c.bind(c,46208))},36026:(a,b,c)=>{"use strict";function d(){let a=function(a){let b=a?.trim();if(!b)return null;try{let a=new URL(b);if("http:"!==a.protocol&&"https:"!==a.protocol)return null;return a.toString()}catch{return null}}(process.env.CONDUCTOR_BACKEND_URL);if(a)return a;let b=function(a){let b=a?.trim();if(!b)return null;let c=Number.parseInt(b,10);return!Number.isInteger(c)||c<1||c>65535?null:c}(process.env.CONDUCTOR_BACKEND_PORT);return null!==b?`http://127.0.0.1:${b}`:null}function e(){let a=d();if(!a)throw Error("Rust backend URL is not configured");return a}c.d(b,{B:()=>e,_:()=>d})},37806:(a,b,c)=>{"use strict";c.d(b,{ThemeProvider:()=>g});var d=c(92692),e=c(71277);let f=(0,e.createContext)({theme:"dark",toggleTheme:()=>{}});function g({children:a}){let[b,c]=(0,e.useState)("dark"),h=(0,e.useCallback)(()=>{c(a=>{let b,c="dark"===a?"light":"dark";return localStorage.setItem("conductor-theme",c),(b=document.documentElement).classList.remove("dark","light"),b.classList.add(c),c})},[]);return(0,d.jsx)(f.Provider,{value:{theme:b,toggleTheme:h},children:a})}},43894:(a,b,c)=>{"use strict";c.d(b,{TooltipProvider:()=>h});var d=c(92692),e=c(49588),f=c(71277),g=c(93544);let h=e.Kq;e.bL,e.l9,(0,f.forwardRef)(({className:a,sideOffset:b=8,...c},f)=>(0,d.jsx)(e.ZL,{children:(0,d.jsx)(e.UC,{ref:f,sideOffset:b,className:(0,g.cn)("z-50 rounded-[var(--radius-xs)] border border-[var(--border-strong)] bg-[var(--bg-panel)] px-2 py-1.5","text-[11px] text-[var(--text-normal)] shadow-[var(--shadow-soft)]","animate-in fade-in-0 zoom-in-95",a),...c})})).displayName="TooltipContent"},44164:(a,b,c)=>{Promise.resolve().then(c.bind(c,33996)),Promise.resolve().then(c.bind(c,16413)),Promise.resolve().then(c.bind(c,58002)),Promise.resolve().then(c.bind(c,19867)),Promise.resolve().then(c.bind(c,89833)),Promise.resolve().then(c.bind(c,99896)),Promise.resolve().then(c.bind(c,12589)),Promise.resolve().then(c.bind(c,37806)),Promise.resolve().then(c.bind(c,43894))},46208:(a,b,c)=>{"use strict";c.d(b,{TooltipProvider:()=>e});var d=c(30274);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call TooltipProvider() from the server but TooltipProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/conductor-oss/conductor-oss/packages/web/src/components/ui/Tooltip.tsx","TooltipProvider");(0,d.registerClientReference)(function(){throw Error("Attempted to call Tooltip() from the server but Tooltip is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/conductor-oss/conductor-oss/packages/web/src/components/ui/Tooltip.tsx","Tooltip"),(0,d.registerClientReference)(function(){throw Error("Attempted to call TooltipTrigger() from the server but TooltipTrigger is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/conductor-oss/conductor-oss/packages/web/src/components/ui/Tooltip.tsx","TooltipTrigger"),(0,d.registerClientReference)(function(){throw Error("Attempted to call TooltipContent() from the server but TooltipContent is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/conductor-oss/conductor-oss/packages/web/src/components/ui/Tooltip.tsx","TooltipContent"),(0,d.registerClientReference)(function(){throw Error("Attempted to call SimpleTooltip() from the server but SimpleTooltip is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/conductor-oss/conductor-oss/packages/web/src/components/ui/Tooltip.tsx","SimpleTooltip")},52893:(a,b,c)=>{"use strict";c.r(b),c.d(b,{"000e332b5b2a2fef007d3a0524bae456a8d6117670":()=>d.i,"00680d7550d1397a9538d465a73e1a5998b881292a":()=>e.AZ,"007a3e3f0c29c0ca54e69015d1160debc98c75cce1":()=>e.at,"00f744501dd80954c9575fcb6fa3f8d46af8224403":()=>e.ai,"40b39ee23749b67341b2ce9f646c833299c8b4122e":()=>d.$,"40f40d449676232a3477e094e628fb13cfc56976da":()=>e.ot});var d=c(35515),e=c(78113)},66504:(a,b,c)=>{"use strict";c.d(b,{ThemeProvider:()=>e});var d=c(30274);let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/conductor-oss/conductor-oss/packages/web/src/components/ThemeProvider.tsx","ThemeProvider");(0,d.registerClientReference)(function(){throw Error("Attempted to call useTheme() from the server but useTheme is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/conductor-oss/conductor-oss/packages/web/src/components/ThemeProvider.tsx","useTheme")},67134:(a,b,c)=>{"use strict";c.d(b,{y:()=>e});var d=c(85660);let e=(0,d.createServerReference)("0009253203745dfa45ddccb8242075b2f635a07539",d.callServer,void 0,d.findSourceMapURL,"invalidateCacheAction")},68773:(a,b,c)=>{"use strict";c.r(b),c.d(b,{"0009253203745dfa45ddccb8242075b2f635a07539":()=>d.y});var d=c(30254)},72567:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,25696,23))},78143:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,32594,23))},89257:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,25696,23)),Promise.resolve().then(c.t.bind(c,69411,23)),Promise.resolve().then(c.t.bind(c,8447,23)),Promise.resolve().then(c.t.bind(c,50674,23)),Promise.resolve().then(c.t.bind(c,78886,23)),Promise.resolve().then(c.t.bind(c,24194,23)),Promise.resolve().then(c.t.bind(c,93431,23)),Promise.resolve().then(c.bind(c,23858))},91567:(a,b,c)=>{"use strict";c.d(b,{A:()=>e});var d=c(85660);let e=(0,d.createServerReference)("00680d7550d1397a9538d465a73e1a5998b881292a",d.callServer,void 0,d.findSourceMapURL,"detectKeylessEnvDriftAction")},91946:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>e});var d=c(42131);let e=async a=>[{type:"image/svg+xml",sizes:"any",url:(0,d.fillMetadataSegment)(".",await a.params,"icon.svg",!0)+"?270c676221766b43"}]},93544:(a,b,c)=>{"use strict";c.d(b,{cn:()=>f});var d=c(9537),e=c(43165);function f(...a){return(0,e.QP)((0,d.$)(a))}},95235:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>x,metadata:()=>u,viewport:()=>v});var d=c(2474),e=c(26543),f=c.n(e),g=c(27897),h=c.n(g),i=c(59520),j=c.n(i),k=c(42525),l=c.n(k),m=c(76323),n=c(90075),o=c(9330),p=c(66504),q=c(46208),r=c(36026),s=c(72460);c(14276);let t=`${l().variable} ${f().variable} ${h().variable} ${j().variable}`,u={title:"Conductor",description:"Multi-agent orchestrator dashboard"},v={width:"device-width",initialScale:1};function w({children:a}){let b=(0,r._)()??"";return(0,d.jsxs)("html",{lang:"en",className:`${t} dark`,suppressHydrationWarning:!0,children:[(0,d.jsxs)("head",{children:[(0,d.jsx)("meta",{name:"conductor-backend-url",content:b}),(0,d.jsx)("script",{dangerouslySetInnerHTML:{__html:'try{var t=localStorage.getItem("conductor-theme");var e=document.documentElement;e.classList.remove("light","dark");e.classList.add(t==="light"||t==="dark"?t:"dark")}catch{}'}})]}),(0,d.jsx)("body",{className:"bg-[var(--bg-canvas)] text-[var(--text-strong)] antialiased",children:(0,d.jsx)(q.TooltipProvider,{children:(0,d.jsxs)(p.ThemeProvider,{children:[a,(0,d.jsx)(n.Analytics,{})]})})})]})}async function x({children:a}){let b=await (0,o.headers)(),c=(0,s.Pn)(b),e=(0,s.kE)(b),f=(0,s.EO)(c,e);return f.enabled&&f.publishableKey?(0,d.jsx)(m.lJ,{publishableKey:f.publishableKey,proxyUrl:f.proxyUrl??void 0,clerkJSUrl:f.clerkJSUrl??void 0,signInUrl:f.signInUrl??void 0,signUpUrl:f.signUpUrl??void 0,allowedRedirectOrigins:f.allowedRedirectOrigins.length>0?f.allowedRedirectOrigins:void 0,appearance:{cssLayerName:"clerk"},children:(0,d.jsx)(w,{children:a})}):(0,d.jsx)(w,{children:a})}},98985:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,32594,23)),Promise.resolve().then(c.t.bind(c,6413,23)),Promise.resolve().then(c.t.bind(c,61437,23)),Promise.resolve().then(c.t.bind(c,99476,23)),Promise.resolve().then(c.t.bind(c,41452,23)),Promise.resolve().then(c.t.bind(c,86792,23)),Promise.resolve().then(c.t.bind(c,48465,23)),Promise.resolve().then(c.t.bind(c,13592,23))}};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1665],{10926:(e,t,r)=>{r.d(t,{C0:()=>a,DW:()=>i});let n="bridge:";function a(e){let t=e?.trim();return t&&t.length>0?t:null}function i(e){let t=e?.trim();if(!t||!t.startsWith(n))return null;let r=t.slice(n.length),i=r.indexOf(":");if(i<=0||i>=r.length-1)return null;let s=a(r.slice(0,i)),o=r.slice(i+1).trim();return s&&0!==o.length?{bridgeId:s,sessionId:o}:null}},11984:(e,t,r)=>{function n(e){let t=e?.trim().toLowerCase()??"";return!!t&&(t.includes("127.0.0.1:4749")||t.includes("older bridge build")||t.includes("one-time local bridge upgrade"))}function a(e){return`This laptop needs a one-time local bridge upgrade before ${function(e){switch(e){case"repair":return"Repair bridge";case"restart":return"Restart service";case"update":return"Update Conductor"}}(e)} can run from the dashboard.`}function i(e){let t=e?.trim()||"This laptop";return`${t} is still on an older bridge build, so Conductor cannot repair, restart, or update it remotely yet. Upgrade the bridge once on that laptop, then future fixes run from the dashboard.`}r.d(t,{Az:()=>n,IG:()=>a,_5:()=>i})},15115:(e,t,r)=>{function n(e,t){return"string"==typeof e&&e.trim().length>0?e.trim():t}function a(e){let t="string"==typeof e?e.trim():"";return t?` (build ${t})`:""}function i(e){return Array.isArray(e)?e.filter(e=>!!e&&"object"==typeof e).map(e=>{let t,r,a;return t=n(e.hostname,"unknown-host"),r=n(e.os,"unknown-os"),a=n(e.arch,"unknown-arch"),{device_id:n(e.device_id,t),device_name:n(e.device_name,t),hostname:t,os:r,arch:a,connected:!0===e.connected,last_status:e.last_status?{hostname:n(e.last_status.hostname,t),os:n(e.last_status.os,r),connected:!0===e.last_status.connected,version:"string"==typeof e.last_status.version&&e.last_status.version.trim().length>0?e.last_status.version.trim():null}:null}}):[]}r.d(t,{oH:()=>i,wj:()=>a})},15321:(e,t,r)=>{r.d(t,{i:()=>m});var n=r(54568),a=r(7620),i=r(65587),s=r.n(i),o=r(63322),d=r(59706),l=r(87242),c=r(76081),u=r(46916),v=r(11984),p=r(61369);function m({deviceId:e,deviceName:t,dashboardUrl:r,installScriptUrl:i,relayUrl:g,className:h}){let[x,b]=(0,a.useState)(!1),f=(0,a.useMemo)(()=>(0,p.$y)(i,r,g),[r,i,g]),k=(0,a.useMemo)(()=>(0,p.kw)(e),[e]);return(0,n.jsxs)("div",{className:(0,u.cn)("mt-3 rounded-[14px] border border-[color:color-mix(in_srgb,var(--vk-orange)_28%,transparent)] bg-[color:color-mix(in_srgb,var(--vk-orange)_10%,transparent)] px-3 py-3",h),children:[(0,n.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--vk-text-muted)]",children:"One-time local repair"}),(0,n.jsx)("div",{className:"mt-2 text-[12px] leading-5 text-[var(--vk-text-normal)]",children:(0,v._5)(t)}),(0,n.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,n.jsxs)(c.$,{type:"button",variant:"outline",size:"sm",onClick:()=>{navigator.clipboard?.writeText?(b(!1),navigator.clipboard.writeText(f).then(()=>{b(!0)}).catch(()=>{b(!1)})):b(!1)},children:[x?(0,n.jsx)(o.A,{className:"h-4 w-4"}):(0,n.jsx)(d.A,{className:"h-4 w-4"}),x?"Repair command copied":"Copy repair command"]}),(0,n.jsx)(c.$,{asChild:!0,variant:"outline",size:"sm",children:(0,n.jsxs)(s(),{href:k,children:[(0,n.jsx)(l.A,{className:"h-4 w-4"}),"Open repair steps"]})})]})]})}},21665:(e,t,r)=>{r.d(t,{J:()=>C});var n=r(54568),a=r(7620),i=r(40448),s=r(65587),o=r.n(s),d=r(79748),l=r(34041),c=r(58299),u=r(87242),v=r(2099),p=r(60527),m=r(81167),g=r(15321),h=r(44522),x=r(11984),b=r(46916),f=r(26167),k=r(61369),w=r(15115),y=r(63680);let j="/bridge/connect";function _({connected:e,className:t,title:r,suffix:a}){return(0,n.jsxs)("span",{className:(0,b.cn)("inline-flex items-center gap-2 rounded-full border px-2.5 py-1 text-[12px] font-medium",e?"border-[rgba(24,197,143,0.35)] bg-[rgba(24,197,143,0.12)] text-[var(--vk-green)]":"border-[rgba(255,143,122,0.24)] bg-[rgba(255,143,122,0.08)] text-[var(--vk-red)]",t),title:r,children:[(0,n.jsx)("span",{className:(0,b.cn)("h-2.5 w-2.5 rounded-full",e?"bg-[var(--vk-green)]":"bg-[var(--vk-red)]")}),(0,n.jsx)("span",{children:e?"Online":"Offline"}),a]})}function N({className:e}){let t,r=(0,d.useRouter)(),s=(0,d.usePathname)(),C=(0,d.useSearchParams)(),[$,I]=(0,a.useState)([]),[R,A]=(0,a.useState)(!0),[S,T]=(0,a.useState)(null),[E,U]=(0,a.useState)(null),[L,O]=(0,a.useState)({deviceId:null,phase:"idle",message:null}),[P,D]=(0,a.useState)({deviceId:null,kind:null,status:"idle",message:null}),z=(0,a.useRef)(new Set),M=(0,a.useCallback)(async e=>{e&&A(!0);try{let e=await fetch("/api/bridge/devices",{cache:"no-store"}),t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error??`Failed to load bridge devices (${e.status})`);I((0,w.oH)(t?.devices)),T(null)}catch(e){T(e instanceof Error?e.message:"Failed to load bridge devices.")}finally{A(!1)}},[]);(0,a.useEffect)(()=>{let e=!1,t=null,r=async t=>{e||await M(t)};return r(!0),t=window.setInterval(()=>{r(!1)},15e3),()=>{e=!0,null!==t&&window.clearInterval(t)}},[M]),(0,a.useEffect)(()=>{let e=()=>{U((0,h.Tr)()?.deviceId??null)};return e(),window.addEventListener("focus",e),window.addEventListener("storage",e),()=>{window.removeEventListener("focus",e),window.removeEventListener("storage",e)}},[]),(0,a.useEffect)(()=>{s!==j&&r.prefetch(j)},[s,r]);let B=$.filter(e=>e.connected),F=C.get("bridge")?.trim()||null,q=window.location.origin,G=(t=function(e){let t=e?.trim();if(!t)return null;try{let e=new URL(t);if("http:"!==e.protocol&&"https:"!==e.protocol)return null;return e.toString()}catch{return null}}(y.env.CONDUCTOR_BRIDGE_RELAY_URL??y.env.NEXT_PUBLIC_CONDUCTOR_BRIDGE_RELAY_URL))||null,V=F?$.find(e=>e.device_id===F)??null:null,J=E?$.find(e=>e.device_id===E)??null:null,W=B.length>0,H=S??(W?`${B.length} bridge${1===B.length?"":"s"} online`:$.length>0?"No paired bridges are online":"No paired bridges yet");(0,a.useEffect)(()=>{let e=(J?.connected?J:null)??(V?.connected?V:null);!e||z.current.has(e.device_id)||(z.current.add(e.device_id),(0,h.jV)(e,O))},[J,V]),(0,a.useEffect)(()=>{!J||J.connected||L.message||O({deviceId:J.device_id,phase:"checking",message:`Waiting for ${J.device_name} to reconnect so Conductor can finish its package update.`})},[L.message,J]);let X=(0,a.useCallback)(async e=>{D({deviceId:e.device_id,kind:"restart",status:"running",message:`Restarting the bridge service on ${e.device_name}.`});try{let t=await (0,f.b)(e.device_id);D({deviceId:e.device_id,kind:"restart",status:"completed",message:t}),window.setTimeout(()=>{M(!1)},2e3)}catch(t){D({deviceId:e.device_id,kind:"restart",status:"failed",message:t instanceof Error?t.message:`Failed to restart ${e.device_name}.`})}},[M]),Y=(0,a.useCallback)(async e=>{D({deviceId:e.device_id,kind:"repair",status:"running",message:`Reinstalling the bridge service on ${e.device_name}.`});try{let t=(0,k.pj)(window.location.origin),r=await (0,f.E)(e.device_id,t);D({deviceId:e.device_id,kind:"repair",status:"completed",message:r}),window.setTimeout(()=>{M(!1)},2e3)}catch(t){D({deviceId:e.device_id,kind:"repair",status:"failed",message:t instanceof Error?t.message:`Failed to repair ${e.device_name}.`})}},[M]),Z=(0,a.useCallback)(async e=>{await (0,h.jV)(e,O),window.setTimeout(()=>{M(!1)},2e3)},[M]);return(0,n.jsxs)(i.bL,{children:[(0,n.jsx)(i.l9,{asChild:!0,children:(0,n.jsx)("button",{type:"button",className:"outline-none",children:(0,n.jsx)(_,{connected:W,className:e,title:H,suffix:(0,n.jsx)(l.A,{className:"h-3.5 w-3.5 text-current/70"})})})}),(0,n.jsx)(i.ZL,{children:(0,n.jsxs)(i.UC,{align:"end",sideOffset:8,className:"z-[90] w-[320px] rounded-[18px] border border-[var(--vk-border)] bg-[var(--vk-bg-panel)] p-2 text-[var(--vk-text-normal)] shadow-[0_22px_48px_rgba(0,0,0,0.34)]",children:[(0,n.jsxs)("div",{className:"rounded-[14px] border border-[var(--vk-border)] bg-[var(--vk-bg-main)] px-3 py-3",children:[(0,n.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-[var(--vk-text-muted)]",children:"Conductor Bridge"}),(0,n.jsx)("div",{className:"mt-2 text-[13px] text-[var(--vk-text-normal)]",children:W?`${B.length} device${1===B.length?"":"s"} online`:R?"Loading device status":"No live bridge connection"}),(0,n.jsx)("div",{className:"mt-2 text-[11px] leading-5 text-[var(--vk-text-faint)]",children:"If a laptop is online but misbehaving, repair the bridge, update Conductor, or restart the service here."}),S?(0,n.jsx)("div",{className:"mt-2 text-[12px] leading-5 text-[var(--vk-red)]",children:S}):null,L.message?(0,n.jsx)("div",{className:(0,b.cn)("mt-2 text-[12px] leading-5","failed"===L.phase?"text-[var(--vk-red)]":"skipped"===L.phase?"text-[var(--vk-text-muted)]":"text-[var(--vk-text-faint)]"),children:L.message}):null]}),(0,n.jsx)("div",{className:"mt-2 max-h-[280px] overflow-y-auto",children:$.length>0?$.map(e=>{let t=(0,h.xv)(L,e.device_id),r="running"===P.status&&P.deviceId===e.device_id,a=r&&"repair"===P.kind,i=r&&"restart"===P.kind,s=P.deviceId===e.device_id&&(0,x.Az)(P.message)||L.deviceId===e.device_id&&(0,x.Az)(L.message);return(0,n.jsx)("div",{className:"rounded-[14px] px-3 py-2.5 transition-colors hover:bg-[var(--vk-bg-hover)]",children:(0,n.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("div",{className:"truncate text-[13px] font-medium text-[var(--vk-text-strong)]",children:e.device_name}),(0,n.jsxs)("div",{className:"mt-1 text-[12px] text-[var(--vk-text-muted)]",children:[e.hostname," \xb7 ",e.os,"/",e.arch,(0,w.wj)(e.last_status?.version)]}),(0,n.jsxs)("div",{className:"mt-1 text-[11px] text-[var(--vk-text-muted)]",children:["Relay: ",e.last_status?.hostname??e.hostname,(0,w.wj)(e.last_status?.version)]}),L.message&&L.deviceId===e.device_id?(0,n.jsx)("div",{className:(0,b.cn)("mt-1 text-[11px] leading-5","failed"===L.phase?"text-[var(--vk-red)]":"skipped"===L.phase?"text-[var(--vk-text-muted)]":"text-[var(--vk-text-faint)]"),children:L.message}):null,P.message&&P.deviceId===e.device_id?(0,n.jsx)("div",{className:(0,b.cn)("mt-1 text-[11px] leading-5","failed"===P.status?"text-[var(--vk-red)]":"completed"===P.status?"text-[var(--vk-green)]":"text-[var(--vk-text-faint)]"),children:P.message}):null,s&&q?(0,n.jsx)(g.i,{deviceId:e.device_id,deviceName:e.device_name,dashboardUrl:q,installScriptUrl:(0,k.pj)(q),relayUrl:G}):null,e.connected?(0,n.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[(0,n.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-[10px] border border-[var(--vk-border)] px-2.5 py-1 text-[11px] font-medium text-[var(--vk-text-normal)] transition-colors hover:bg-[var(--vk-bg-hover)]",disabled:r||t,onClick:()=>{Y(e)},children:[a?(0,n.jsx)(c.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,n.jsx)(u.A,{className:"h-3.5 w-3.5"}),"Repair bridge"]}),(0,n.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-[10px] border border-[var(--vk-border)] px-2.5 py-1 text-[11px] font-medium text-[var(--vk-text-normal)] transition-colors hover:bg-[var(--vk-bg-hover)]",disabled:t||r,onClick:()=>{Z(e)},children:[t?(0,n.jsx)(c.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,n.jsx)(v.A,{className:"h-3.5 w-3.5"}),t?"Updating...":"Update Conductor"]}),(0,n.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-[10px] border border-[var(--vk-border)] px-2.5 py-1 text-[11px] font-medium text-[var(--vk-text-normal)] transition-colors hover:bg-[var(--vk-bg-hover)]",disabled:r||t,onClick:()=>{X(e)},children:[i?(0,n.jsx)(c.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,n.jsx)(p.A,{className:"h-3.5 w-3.5"}),"Restart service"]})]}):null]}),(0,n.jsx)(_,{connected:!0===e.connected})]})},e.device_id)}):(0,n.jsx)("div",{className:"rounded-[14px] border border-dashed border-[var(--vk-border)] px-3 py-4 text-[12px] text-[var(--vk-text-muted)]",children:R?"Loading paired devices...":"Pair a laptop to see bridge status here."})}),(0,n.jsx)(i.wv,{className:"my-2 h-px bg-[var(--vk-border)]"}),(0,n.jsx)(i.q7,{asChild:!0,children:(0,n.jsxs)(o(),{href:j,prefetch:!0,className:"flex items-center justify-between rounded-[12px] px-3 py-2 text-[13px] font-medium text-[var(--vk-text-normal)] outline-none transition-colors hover:bg-[var(--vk-bg-hover)] focus:bg-[var(--vk-bg-hover)]",children:[(0,n.jsx)("span",{children:"Open bridge connection"}),(0,n.jsx)(m.A,{className:"h-4 w-4 text-[var(--vk-text-muted)]"})]})})]})})]})}function C({connected:e,className:t,title:r}={}){return"boolean"==typeof e?(0,n.jsx)(_,{connected:e,className:t,title:r}):(0,n.jsx)(N,{className:t})}},26167:(e,t,r)=>{r.d(t,{E:()=>i,b:()=>a});var n=r(11984);async function a(e){let t=await s(e,"service-restart",{});return t?.message??"Bridge service restart requested. This laptop should reconnect shortly."}async function i(e,t){let r=await s(e,"repair",{installScriptUrl:t});return r?.message??"Bridge reinstall requested. This laptop should reconnect shortly."}async function s(e,t,r){let a=await fetch(`/api/bridge/devices/${encodeURIComponent(e)}/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r),cache:"no-store"}),i=await a.json().catch(()=>null);if(!a.ok){var s,o;let e;throw Error((s=i?.error??i?.message??null,o=a.status,e=s?.trim()??"",(0,n.Az)(e)?(0,n.IG)("repair"===t?"repair":"restart"):e||`Failed to run ${t} on the bridge service (${o})`))}return i}},31404:(e,t,r)=>{r.d(t,{S:()=>a,y:()=>i});var n=r(10926);function a(e,t){let r=(0,n.C0)(t);if(!r)return e;let a=new URL(e,"http://127.0.0.1");return a.searchParams.set("bridgeId",r),`${a.pathname}${a.search}${a.hash}`}function i(e){let t=function(e){if(!e)return null;if(e instanceof URL)return e;if("string"==typeof e)try{return new URL(e,"http://127.0.0.1")}catch{return null}if("string"==typeof e.href)try{return new URL(e.href)}catch{}return null}(e);if(!t)return null;let r=(0,n.C0)(t.searchParams.get("bridge")??t.searchParams.get("bridgeId"));if(r)return r;let a=(0,n.DW)(t.searchParams.get("session"))?.bridgeId;if(a)return a;let i=t.pathname.match(/^\/sessions\/([^/]+)$/);if(!i)return null;try{return(0,n.DW)(decodeURIComponent(i[1]))?.bridgeId??null}catch{return null}}},44522:(e,t,r)=>{r.d(t,{N8:()=>l,Tr:()=>v,jV:()=>p,m7:()=>u,xv:()=>s});var n=r(31404),a=r(11984);let i="conductor-bridge-recent-pairing";function s(e,t){return e.deviceId===t&&("checking"===e.phase||"updating"===e.phase||"restarting"===e.phase)}function o(e,t){return t.jobMessage??`Installing Conductor ${t.latestVersion??"latest"} on ${e.device_name}.`}function d(e){let t=e.currentVersion?.trim();return t?` (build ${t})`:""}function l(e){if(!e.enabled)switch(e.reason){case"source-checkout":return"This laptop is running from a source checkout, so there is no published package to auto-update.";case"missing-cli-metadata":return"This install could not determine its update metadata, so automatic package updates are unavailable.";default:return"Automatic package updates are unavailable for this laptop."}return e.updateAvailable?e.canAutoUpdate?`This laptop is already running the latest Conductor release${d(e)}.`:"npx"===e.installMode?"This laptop was launched via npx, so the next launch will pick up the latest package automatically.":e.updateCommand?`A newer Conductor release is available, but this install still needs a manual update: ${e.updateCommand}`:"A newer Conductor release is available, but this install cannot update itself automatically.":`This laptop is already running the latest Conductor release${d(e)}.`}async function c(e,t){var r,i;let s=t?.method??"GET",o=`/api/bridge/devices/${encodeURIComponent(e)}/app-update`,d=new URL((0,n.S)(o,e),window.location.origin);t?.force&&d.searchParams.set("force","1");let l=await fetch(d.toString(),{method:s,headers:t?.body?{"Content-Type":"application/json"}:void 0,body:t?.body?JSON.stringify(t.body):void 0,cache:"no-store"}),c=await l.json().catch(()=>null);if(!l.ok){let e;throw Error((r=c&&"object"==typeof c&&"error"in c&&"string"==typeof c.error?c.error:null,i=l.status,e=r?.trim()??"",(0,a.Az)(e)?(0,a.IG)("update"):e||`Failed to update Conductor on this laptop (${i})`))}let u=c&&"object"==typeof c?c:null;if(!u)throw Error("Paired device returned an invalid update payload.");return u}function u(e){let t={deviceId:e.deviceId,deviceName:e.deviceName??null,pairedAt:new Date().toISOString()};try{window.localStorage.setItem(i,JSON.stringify(t))}catch{}}function v(){try{let e=window.localStorage.getItem(i);if(!e)return null;let t=JSON.parse(e);if(!(t&&"object"==typeof t&&"string"==typeof t.deviceId&&"string"==typeof t.pairedAt&&(null===t.deviceName||"string"==typeof t.deviceName)))return window.localStorage.removeItem(i),null;let r=Date.parse(t.pairedAt);if(!Number.isFinite(r)||Date.now()-r>18e5)return window.localStorage.removeItem(i),null;return t}catch{return null}}async function p(e,t){let r=(r,n)=>{t({deviceId:e.device_id,phase:r,message:n})};r("checking",`Checking for Conductor updates on ${e.device_name}.`);try{let t=await c(e.device_id,{force:!0});if(t.restarting)return void r("restarting",t.jobMessage??`Restart requested on ${e.device_name}. This page will reconnect once the bridge runtime is back online.`);if("running"===t.jobStatus)r("updating",o(e,t));else{if(!t.updateAvailable||!t.enabled||!t.canAutoUpdate)return void r(t.enabled&&t.canAutoUpdate?"completed":"skipped",l(t));t=await c(e.device_id,{method:"POST"}),r("updating",o(e,t))}let n=Date.now()+3e5;for(;Date.now()<n&&"running"===t.jobStatus;){if(await new Promise(e=>{window.setTimeout(e,1500)}),(t=await c(e.device_id)).restarting)return void r("restarting",t.jobMessage??`Restart requested on ${e.device_name}. This page will reconnect once the bridge runtime is back online.`);r("updating",o(e,t))}if("running"===t.jobStatus)return void r("updating",`The package update is still running on ${e.device_name}. Leave this page open and Conductor will finish applying it in the background.`);if("failed"===t.jobStatus)throw Error(t.jobMessage??t.error??`Automatic package update failed on ${e.device_name}.`);if(t.restartRequired){if(t.canRestart){t=await c(e.device_id,{method:"POST",body:{action:"restart"}}),r("restarting",t.jobMessage??`Restart requested on ${e.device_name} to finish updating Conductor.`);return}r("completed",t.jobMessage??`The latest Conductor package is installed on ${e.device_name}. Restart that laptop to finish updating.`);return}r("completed",t.jobMessage??`${e.device_name} is now updated to Conductor ${t.latestVersion??"latest"}.`)}catch(t){r("failed",t instanceof Error?t.message:`Failed to auto-update ${e.device_name}.`)}}},46916:(e,t,r)=>{r.d(t,{cn:()=>i});var n=r(9917),a=r(2809);function i(...e){return(0,a.QP)((0,n.$)(e))}},61369:(e,t,r)=>{function n(e){return/^[A-Za-z0-9_./:=@%+-]+$/.test(e)?e:`'${e.replace(/'/g,"'\"'\"'")}'`}function a(e){return e.map(n).join(" ")}function i(e){return new URL("/bridge/install.sh",e).toString()}function s(e){return`/bridge/connect?device=${encodeURIComponent(e)}#bridge-setup`}function o(e){return`curl -fsSL ${n(e)} | sh`}function d(e,t,r){let n=["npx","--yes","conductor-oss@latest","bridge","setup","--dashboard-url",t];return r?.trim()&&n.push("--relay-url",r.trim()),a(n)}function l(e,t){let r=["conductor-bridge","connect","--dashboard-url",e];return t?.trim()&&r.push("--relay-url",t.trim()),a(r)}function c(e,t){let r=["conductor-bridge","pair","--code",e?.trim()||"ABC123"],n=["conductor-bridge","daemon"];return t?.trim()&&(r.push("--relay-url",t.trim()),n.push("--relay-url",t.trim())),`${a(r)}
|
|
2
|
-
${a(n)}`}r.d(t,{$y:()=>d,G7:()=>o,hI:()=>l,kw:()=>s,pj:()=>i,zd:()=>c})},76081:(e,t,r)=>{r.d(t,{$:()=>l});var n=r(54568),a=r(46916),i=r(78347),s=r(7620);let o={default:"border-[var(--vk-border)] bg-[var(--vk-bg-panel)] text-[var(--vk-text-normal)] hover:bg-[var(--vk-bg-hover)]",primary:"border-[var(--vk-border)] bg-[var(--vk-bg-active)] text-[var(--vk-text-normal)] hover:bg-[var(--vk-bg-hover)]",ghost:"border-transparent bg-transparent text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)] hover:text-[var(--vk-text-normal)]",danger:"border-[var(--vk-red)]/40 bg-[color:color-mix(in_srgb,var(--vk-red)_18%,transparent)] text-[var(--vk-red)] hover:bg-[color:color-mix(in_srgb,var(--vk-red)_24%,transparent)]",outline:"border-[var(--vk-border)] bg-transparent text-[var(--vk-text-normal)] hover:bg-[var(--vk-bg-hover)]"},d={sm:"h-7 px-2.5 text-[12px] gap-1",md:"h-8 px-3 text-[13px] gap-1.5",lg:"h-9 px-3.5 text-[14px] gap-2",icon:"h-8 w-8 p-0"},l=(0,s.forwardRef)(({variant:e="default",size:t="md",asChild:r,className:s,children:l,...c},u)=>{let v=r?i.DX:"button";return(0,n.jsx)(v,{ref:u,className:(0,a.cn)("inline-flex items-center justify-center rounded-[var(--radius-sm)] border font-medium","transition-colors duration-150","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--vk-orange)]","disabled:pointer-events-none disabled:opacity-45",o[e],d[t],s),...c,children:l})});l.displayName="Button"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4443],{26651:(e,l,a)=>{a.d(l,{a:()=>n});var s=a(5974);let n=(0,s.createServerReference)("00f744501dd80954c9575fcb6fa3f8d46af8224403",s.callServer,void 0,s.findSourceMapURL,"createOrReadKeylessAction")},34443:(e,l,a)=>{a.r(l),a.d(l,{KeylessCreatorOrReader:()=>r});var s=a(79748),n=a(7620),t=a(26651);let r=e=>{var l;let{children:a}=e,r=(null==(l=(0,s.useSelectedLayoutSegments)()[0])?void 0:l.startsWith("/_not-found"))||!1,[i,u]=n.useActionState(t.a,null);return((0,n.useEffect)(()=>{r||n.startTransition(()=>{u()})},[r]),n.isValidElement(a))?n.cloneElement(a,{key:null==i?void 0:i.publishableKey,publishableKey:null==i?void 0:i.publishableKey,__internal_keyless_claimKeylessApplicationUrl:null==i?void 0:i.claimUrl,__internal_keyless_copyInstanceKeysUrl:null==i?void 0:i.apiKeysUrl,__internal_bypassMissingPublishableKey:!0}):a}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4517],{2099:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},13454:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(7620);let o=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:l="",children:u,iconNode:c,...s},d)=>(0,n.createElement)("svg",{ref:d,...i,width:t,height:t,stroke:e,strokeWidth:a?24*Number(r)/Number(t):r,className:o("lucide",l),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(s)&&{"aria-hidden":"true"},...s},[...c.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(u)?u:[u]])),u=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...i},u)=>(0,n.createElement)(l,{ref:u,iconNode:t,className:o(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...i}));return r.displayName=a(e),r}},22130:(e,t,r)=>{r.d(t,{jH:()=>a});var n=r(7620);r(54568);var o=n.createContext(void 0);function a(e){let t=n.useContext(o);return e||t||"ltr"}},34041:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},35752:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(7620),o=r(55556),a=r(33670),i=r(54568);function l(e){var t;let r,o=(t=e,(r=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var i;let e,l,u=(i=r,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),c=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}}(o,r.props);return r.type!==n.Fragment&&(c.ref=t?(0,a.t)(t,u):u),n.cloneElement(r,c)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${t}.SlotClone`,r),l=n.forwardRef((e,t)=>{let{children:r,...a}=e,l=n.Children.toArray(r),u=l.find(c);if(u){let e=u.props.children,r=l.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(o,{...a,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,i.jsx)(o,{...a,ref:t,children:r})});return l.displayName=`${e}.Slot`,l}var u=Symbol("radix.slottable");function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}function s(e){let t=e+"CollectionProvider",[r,u]=(0,o.A)(t),[c,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(c,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=l(f),h=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=s(f,r),l=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(p,{ref:l,children:n})});h.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=l(m),g=n.forwardRef((e,t)=>{let{scope:r,children:o,...l}=e,u=n.useRef(null),c=(0,a.s)(t,u),d=s(m,r);return n.useEffect(()=>(d.itemMap.set(u,{ref:u,...l}),()=>void d.itemMap.delete(u))),(0,i.jsx)(y,{...{[v]:""},ref:c,children:o})});return g.displayName=m,[{Provider:d,Slot:h,ItemSlot:g},function(t){let r=s(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}var d=new WeakMap;function f(e,t){var r,n;let o,a,i;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,n=t,o=r.length,(i=(a=p(n))>=0?a:o+a)<0||i>=o?-1:i);return -1===l?void 0:e[l]}function p(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],d.set(this,!0)}set(e,t){return d.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=p(e),l=i>=0?i:a+i,u=l<0||l>=a?-1:l;if(u===this.size||o&&u===this.size-1||-1===u)return this.set(t,r),this;let c=this.size+ +!o;i<0&&l++;let s=[...this.#e],d=!1;for(let e=l;e<c;e++)if(l===e){let a=s[e];s[e]===t&&(a=s[e+1]),o&&this.delete(t),n=this.get(a),this.set(t,r)}else{d||s[e-1]!==t||(d=!0);let r=s[d?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=f(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(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}})},36645:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},40448:(e,t,r)=>{let n,o,a,i;r.d(t,{UC:()=>tZ,q7:()=>t$,ZL:()=>tX,bL:()=>tU,wv:()=>tq,l9:()=>tH});var l,u,c,s,d,f,p,h=r(7620),m=r(37188),v=r(33670),y=r(55556),g=r(3198),w=r(59947),b=r(35752),x=r(22130),E=r(64159),C=0;function R(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var k=r(55222),M=r(54568),A="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",j={bubbles:!1,cancelable:!0},N=h.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,u]=h.useState(null),c=(0,k.c)(o),s=(0,k.c)(a),d=h.useRef(null),f=(0,v.s)(t,e=>u(e)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(n){let e=function(e){if(p.paused||!l)return;let t=e.target;l.contains(t)?d.current=t:I(d.current,{select:!0})},t=function(e){if(p.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||I(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&I(l)});return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,l,p.paused]),h.useEffect(()=>{if(l){O.add(p);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(A,j);l.addEventListener(A,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(I(n,{select:t}),document.activeElement!==r)return}(D(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&I(l))}return()=>{l.removeEventListener(A,c),setTimeout(()=>{let t=new CustomEvent(S,j);l.addEventListener(S,s),l.dispatchEvent(t),t.defaultPrevented||I(e??document.body,{select:!0}),l.removeEventListener(S,s),O.remove(p)},0)}}},[l,c,s,p]);let m=h.useCallback(e=>{if(!r&&!n||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var a;let t,n=e.currentTarget,[i,l]=[_(t=D(a=n),a),_(t.reverse(),a)];i&&l?e.shiftKey||o!==l?e.shiftKey&&o===i&&(e.preventDefault(),r&&I(l,{select:!0})):(e.preventDefault(),r&&I(i,{select:!0})):o===n&&e.preventDefault()}},[r,n,p.paused]);return(0,M.jsx)(w.sG.div,{tabIndex:-1,...i,ref:f,onKeyDown:m})});function D(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function I(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}N.displayName="FocusScope";var O=(a=[],{add(e){let t=a[0];e!==t&&t?.pause(),(a=P(a,e)).unshift(e)},remove(e){a=P(a,e),a[0]?.resume()}});function P(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var T=r(30586),L=r(38553),K=r(25249),F=r(98386),W=r(92119),B=Symbol("radix.slottable");function G(e){return h.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===B}var z=new WeakMap,V=new WeakMap,U={},H=0,X=function(e){return e&&(e.host||X(e.parentNode))},Z=function(e,t,r,n){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=X(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});U[r]||(U[r]=new WeakMap);var a=U[r],i=[],l=new Set,u=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))s(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,u=(z.get(e)||0)+1,c=(a.get(e)||0)+1;z.set(e,u),a.set(e,c),i.push(e),1===u&&o&&V.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),l.clear(),H++,function(){i.forEach(function(e){var t=z.get(e)-1,o=a.get(e)-1;z.set(e,t),a.set(e,o),t||(V.has(e)||e.removeAttribute(n),V.delete(e)),o||e.removeAttribute(r)}),--H||(z=new WeakMap,z=new WeakMap,V=new WeakMap,U={})}},$=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Z(n,o,r,"aria-hidden")):function(){return null}},q=function(){return(q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Y(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var J=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),Q="width-before-scroll-bar";function ee(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var et="u">typeof window?h.useLayoutEffect:h.useEffect,er=new WeakMap,en=(void 0===l&&(l={}),(void 0===u&&(u=function(e){return e}),c=[],s=!1,d={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:null},useMedium:function(e){var t=u(e,s);return c.push(t),function(){c=c.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;c.length;){var t=c;c=[],t.forEach(e)}c={push:function(t){return e(t)},filter:function(){return c}}},assignMedium:function(e){s=!0;var t=[];if(c.length){var r=c;c=[],r.forEach(e),t=c}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),c={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),c}}}}).options=q({async:!0,ssr:!1},l),d),eo=function(){},ea=h.forwardRef(function(e,t){var r,n,o,a,i=h.useRef(null),l=h.useState({onScrollCapture:eo,onWheelCapture:eo,onTouchMoveCapture:eo}),u=l[0],c=l[1],s=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,v=e.shards,y=e.sideCar,g=e.noRelative,w=e.noIsolation,b=e.inert,x=e.allowPinchZoom,E=e.as,C=e.gapMode,R=Y(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(r=[i,t],n=function(e){return r.forEach(function(t){return ee(t,e)})},(o=(0,h.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,a=o.facade,et(function(){var e=er.get(a);if(e){var t=new Set(e),n=new Set(r),o=a.current;t.forEach(function(e){n.has(e)||ee(e,null)}),n.forEach(function(e){t.has(e)||ee(e,o)})}er.set(a,r)},[r]),a),M=q(q({},R),u);return h.createElement(h.Fragment,null,m&&h.createElement(y,{sideCar:en,removeScrollBar:p,shards:v,noRelative:g,noIsolation:w,inert:b,setCallbacks:c,allowPinchZoom:!!x,lockRef:i,gapMode:C}),s?h.cloneElement(h.Children.only(d),q(q({},M),{ref:k})):h.createElement(void 0===E?"div":E,q({},M,{className:f,ref:k}),d))});ea.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ea.classNames={fullWidth:Q,zeroRight:J};var ei=function(e){var t=e.sideCar,r=Y(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return h.createElement(n,q({},r))};ei.isSideCarExport=!0;var el=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=p||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eu=function(){var e=el();return function(t,r){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ec=function(){var e=eu();return function(t){return e(t.styles,t.dynamic),null}},es={left:0,top:0,right:0,gap:0},ed=function(e){return parseInt(e||"",10)||0},ef=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ed(r),ed(n),ed(o)]},ep=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return es;var t=ef(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},eh=ec(),em="data-scroll-locked",ev=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(em,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(J," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(Q," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(J," .").concat(J," {\n right: 0 ").concat(n,";\n }\n \n .").concat(Q," .").concat(Q," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(em,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},ey=function(){var e=parseInt(document.body.getAttribute(em)||"0",10);return isFinite(e)?e:0},eg=function(){h.useEffect(function(){return document.body.setAttribute(em,(ey()+1).toString()),function(){var e=ey()-1;e<=0?document.body.removeAttribute(em):document.body.setAttribute(em,e.toString())}},[])},ew=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;eg();var a=h.useMemo(function(){return ep(o)},[o]);return h.createElement(eh,{styles:ev(a,!t,o,r?"":"!important")})},eb=!1;if("u">typeof window)try{var ex=Object.defineProperty({},"passive",{get:function(){return eb=!0,!0}});window.addEventListener("test",ex,ex),window.removeEventListener("test",ex,ex)}catch(e){eb=!1}var eE=!!eb&&{passive:!1},eC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eR=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ek(e,n)){var o=eM(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ek=function(e,t){return"v"===e?eC(t,"overflowY"):eC(t,"overflowX")},eM=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eA=function(e,t,r,n,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*n,u=r.target,c=t.contains(u),s=!1,d=l>0,f=0,p=0;do{if(!u)break;var h=eM(e,u),m=h[0],v=h[1]-h[2]-i*m;(m||v)&&ek(e,u)&&(f+=v,p+=m);var y=u.parentNode;u=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},eS=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ej=function(e){return[e.deltaX,e.deltaY]},eN=function(e){return e&&"current"in e?e.current:e},eD=0,e_=[];let eI=(f=function(e){var t=h.useRef([]),r=h.useRef([0,0]),n=h.useRef(),o=h.useState(eD++)[0],a=h.useState(ec)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eN),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=eS(e),l=r.current,u="deltaX"in e?e.deltaX:l[0]-a[0],c="deltaY"in e?e.deltaY:l[1]-a[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var h=eR(d,s);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=eR(d,s)),!h)return!1;if(!n.current&&"changedTouches"in e&&(u||c)&&(n.current=o),!o)return!0;var m=n.current||o;return eA(m,t,e,"h"===m?u:c,!0)},[]),u=h.useCallback(function(e){if(e_.length&&e_[e_.length-1]===a){var r="deltaY"in e?ej(e):eS(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(i.current.shards||[]).map(eN).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=h.useCallback(function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=h.useCallback(function(e){r.current=eS(e),n.current=void 0},[]),d=h.useCallback(function(t){c(t.type,ej(t),t.target,l(t,e.lockRef.current))},[]),f=h.useCallback(function(t){c(t.type,eS(t),t.target,l(t,e.lockRef.current))},[]);h.useEffect(function(){return e_.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,eE),document.addEventListener("touchmove",u,eE),document.addEventListener("touchstart",s,eE),function(){e_=e_.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,eE),document.removeEventListener("touchmove",u,eE),document.removeEventListener("touchstart",s,eE)}},[]);var p=e.removeScrollBar,m=e.inert;return h.createElement(h.Fragment,null,m?h.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?h.createElement(ew,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},en.useMedium(f),ei);var eO=h.forwardRef(function(e,t){return h.createElement(ea,q({},e,{ref:t,sideCar:eI}))});eO.classNames=ea.classNames;var eP=["Enter"," "],eT=["ArrowUp","PageDown","End"],eL=["ArrowDown","PageUp","Home",...eT],eK={ltr:[...eP,"ArrowRight"],rtl:[...eP,"ArrowLeft"]},eF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eW="Menu",[eB,eG,ez]=(0,b.N)(eW),[eV,eU]=(0,y.A)(eW,[ez,L.Bk,W.RG]),eH=(0,L.Bk)(),eX=(0,W.RG)(),[eZ,e$]=eV(eW),[eq,eY]=eV(eW),eJ=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:i=!0}=e,l=eH(t),[u,c]=h.useState(null),s=h.useRef(!1),d=(0,k.c)(a),f=(0,x.jH)(o);return h.useEffect(()=>{let e=()=>{s.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>s.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,M.jsx)(L.bL,{...l,children:(0,M.jsx)(eZ,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:c,children:(0,M.jsx)(eq,{scope:t,onClose:h.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:s,dir:f,modal:i,children:n})})})};eJ.displayName=eW;var eQ=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=eH(r);return(0,M.jsx)(L.Mz,{...o,...n,ref:t})});eQ.displayName="MenuAnchor";var e0="MenuPortal",[e1,e2]=eV(e0,{forceMount:void 0}),e5=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=e$(e0,t);return(0,M.jsx)(e1,{scope:t,forceMount:r,children:(0,M.jsx)(F.C,{present:r||a.open,children:(0,M.jsx)(K.Z,{asChild:!0,container:o,children:n})})})};e5.displayName=e0;var e4="MenuContent",[e6,e3]=eV(e4),e9=h.forwardRef((e,t)=>{let r=e2(e4,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=e$(e4,e.__scopeMenu),i=eY(e4,e.__scopeMenu);return(0,M.jsx)(eB.Provider,{scope:e.__scopeMenu,children:(0,M.jsx)(F.C,{present:n||a.open,children:(0,M.jsx)(eB.Slot,{scope:e.__scopeMenu,children:i.modal?(0,M.jsx)(e7,{...o,ref:t}):(0,M.jsx)(e8,{...o,ref:t})})})})}),e7=h.forwardRef((e,t)=>{let r=e$(e4,e.__scopeMenu),n=h.useRef(null),o=(0,v.s)(t,n);return h.useEffect(()=>{let e=n.current;if(e)return $(e)},[]),(0,M.jsx)(tt,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,m.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),e8=h.forwardRef((e,t)=>{let r=e$(e4,e.__scopeMenu);return(0,M.jsx)(tt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),te=((i=h.forwardRef((e,t)=>{let{children:r,...n}=e;if(h.isValidElement(r)){var o;let e,a,i=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=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}}(n,r.props);return r.type!==h.Fragment&&(l.ref=t?(0,v.t)(t,i):i),h.cloneElement(r,l)}return h.Children.count(r)>1?h.Children.only(null):null})).displayName="MenuContent.ScrollLock.SlotClone",n=i,(o=h.forwardRef((e,t)=>{let{children:r,...o}=e,a=h.Children.toArray(r),i=a.find(G);if(i){let e=i.props.children,r=a.map(t=>t!==i?t:h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null);return(0,M.jsx)(n,{...o,ref:t,children:h.isValidElement(e)?h.cloneElement(e,void 0,r):null})}return(0,M.jsx)(n,{...o,ref:t,children:r})})).displayName="MenuContent.ScrollLock.Slot",o),tt=h.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:y,...g}=e,w=e$(e4,r),b=eY(e4,r),x=eH(r),k=eX(r),A=eG(r),[S,j]=h.useState(null),D=h.useRef(null),_=(0,v.s)(t,D,w.onContentChange),I=h.useRef(0),O=h.useRef(""),P=h.useRef(0),T=h.useRef(null),K=h.useRef("right"),F=h.useRef(0),B=y?eO:h.Fragment;h.useEffect(()=>()=>window.clearTimeout(I.current),[]),h.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??R()),document.body.insertAdjacentElement("beforeend",e[1]??R()),C++,()=>{1===C&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),C--}},[]);let G=h.useCallback(e=>{var t,r;return K.current===T.current?.side&&(t=e,!!(r=T.current?.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],l=t[a],u=i.x,c=i.y,s=l.x,d=l.y;c>n!=d>n&&r<(s-u)*(n-c)/(d-c)+u&&(o=!o)}return o}({x:t.clientX,y:t.clientY},r))},[]);return(0,M.jsx)(e6,{scope:r,searchRef:O,onItemEnter:h.useCallback(e=>{G(e)&&e.preventDefault()},[G]),onItemLeave:h.useCallback(e=>{G(e)||(D.current?.focus(),j(null))},[G]),onTriggerLeave:h.useCallback(e=>{G(e)&&e.preventDefault()},[G]),pointerGraceTimerRef:P,onPointerGraceIntentChange:h.useCallback(e=>{T.current=e},[]),children:(0,M.jsx)(B,{...y?{as:te,allowPinchZoom:!0}:void 0,children:(0,M.jsx)(N,{asChild:!0,trapped:o,onMountAutoFocus:(0,m.mK)(a,e=>{e.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,M.jsx)(E.qW,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,M.jsx)(W.bL,{asChild:!0,...k,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:j,onEntryFocus:(0,m.mK)(u,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,M.jsx)(L.UC,{role:"menu","aria-orientation":"vertical","data-state":tA(w.open),"data-radix-menu-content":"",dir:b.dir,...x,...g,ref:_,style:{outline:"none",...g.style},onKeyDown:(0,m.mK)(g.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;if(t){var o;let t,a,i,l,u,c;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=O.current+o,a=A().filter(e=>!e.disabled),i=document.activeElement,l=a.find(e=>e.ref.current===i)?.textValue,u=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,i=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(i=i.filter(e=>e!==r));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}(a.map(e=>e.textValue),t,l),c=a.find(e=>e.textValue===u)?.ref.current,function e(t){O.current=t,window.clearTimeout(I.current),""!==t&&(I.current=window.setTimeout(()=>e(""),1e3))}(t),c&&setTimeout(()=>c.focus()))}let a=D.current;if(e.target!==a||!eL.includes(e.key))return;e.preventDefault();let i=A().filter(e=>!e.disabled).map(e=>e.ref.current);eT.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,m.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(I.current),O.current="")}),onPointerMove:(0,m.mK)(e.onPointerMove,tN(e=>{let t=e.target,r=F.current!==e.clientX;e.currentTarget.contains(t)&&r&&(K.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});e9.displayName=e4;var tr=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,M.jsx)(w.sG.div,{role:"group",...n,ref:t})});tr.displayName="MenuGroup";var tn=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,M.jsx)(w.sG.div,{...n,ref:t})});tn.displayName="MenuLabel";var to="MenuItem",ta="menu.itemSelect",ti=h.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,a=h.useRef(null),i=eY(to,e.__scopeMenu),l=e3(to,e.__scopeMenu),u=(0,v.s)(t,a),c=h.useRef(!1);return(0,M.jsx)(tl,{...o,ref:u,disabled:r,onClick:(0,m.mK)(e.onClick,()=>{let e=a.current;if(!r&&e){let t=new CustomEvent(ta,{bubbles:!0,cancelable:!0});e.addEventListener(ta,e=>n?.(e),{once:!0}),(0,w.hO)(e,t),t.defaultPrevented?c.current=!1:i.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),c.current=!0},onPointerUp:(0,m.mK)(e.onPointerUp,e=>{c.current||e.currentTarget?.click()}),onKeyDown:(0,m.mK)(e.onKeyDown,e=>{let t=""!==l.searchRef.current;r||t&&" "===e.key||eP.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ti.displayName=to;var tl=h.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=e3(to,r),l=eX(r),u=h.useRef(null),c=(0,v.s)(t,u),[s,d]=h.useState(!1),[f,p]=h.useState("");return h.useEffect(()=>{let e=u.current;e&&p((e.textContent??"").trim())},[a.children]),(0,M.jsx)(eB.ItemSlot,{scope:r,disabled:n,textValue:o??f,children:(0,M.jsx)(W.q7,{asChild:!0,...l,focusable:!n,children:(0,M.jsx)(w.sG.div,{role:"menuitem","data-highlighted":s?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:c,onPointerMove:(0,m.mK)(e.onPointerMove,tN(e=>{n?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,m.mK)(e.onPointerLeave,tN(e=>i.onItemLeave(e))),onFocus:(0,m.mK)(e.onFocus,()=>d(!0)),onBlur:(0,m.mK)(e.onBlur,()=>d(!1))})})})}),tu=h.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,M.jsx)(tv,{scope:e.__scopeMenu,checked:r,children:(0,M.jsx)(ti,{role:"menuitemcheckbox","aria-checked":tS(r)?"mixed":r,...o,ref:t,"data-state":tj(r),onSelect:(0,m.mK)(o.onSelect,()=>n?.(!!tS(r)||!r),{checkForDefaultPrevented:!1})})})});tu.displayName="MenuCheckboxItem";var tc="MenuRadioGroup",[ts,td]=eV(tc,{value:void 0,onValueChange:()=>{}}),tf=h.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=(0,k.c)(n);return(0,M.jsx)(ts,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,M.jsx)(tr,{...o,ref:t})})});tf.displayName=tc;var tp="MenuRadioItem",th=h.forwardRef((e,t)=>{let{value:r,...n}=e,o=td(tp,e.__scopeMenu),a=r===o.value;return(0,M.jsx)(tv,{scope:e.__scopeMenu,checked:a,children:(0,M.jsx)(ti,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":tj(a),onSelect:(0,m.mK)(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});th.displayName=tp;var tm="MenuItemIndicator",[tv,ty]=eV(tm,{checked:!1}),tg=h.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=ty(tm,r);return(0,M.jsx)(F.C,{present:n||tS(a.checked)||!0===a.checked,children:(0,M.jsx)(w.sG.span,{...o,ref:t,"data-state":tj(a.checked)})})});tg.displayName=tm;var tw=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,M.jsx)(w.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});tw.displayName="MenuSeparator";var tb=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=eH(r);return(0,M.jsx)(L.i3,{...o,...n,ref:t})});tb.displayName="MenuArrow";var[tx,tE]=eV("MenuSub"),tC="MenuSubTrigger",tR=h.forwardRef((e,t)=>{let r=e$(tC,e.__scopeMenu),n=eY(tC,e.__scopeMenu),o=tE(tC,e.__scopeMenu),a=e3(tC,e.__scopeMenu),i=h.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=a,c={__scopeMenu:e.__scopeMenu},s=h.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return h.useEffect(()=>s,[s]),h.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]),(0,M.jsx)(eQ,{asChild:!0,...c,children:(0,M.jsx)(tl,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":tA(r.open),...e,ref:(0,v.t)(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,m.mK)(e.onPointerMove,tN(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||i.current||(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),s()},100)))})),onPointerLeave:(0,m.mK)(e.onPointerLeave,tN(e=>{s();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,o="right"===n,i=t[o?"left":"right"],u=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:i,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,m.mK)(e.onKeyDown,t=>{let o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||eK[n.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});tR.displayName=tC;var tk="MenuSubContent",tM=h.forwardRef((e,t)=>{let r=e2(e4,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=e$(e4,e.__scopeMenu),i=eY(e4,e.__scopeMenu),l=tE(tk,e.__scopeMenu),u=h.useRef(null),c=(0,v.s)(t,u);return(0,M.jsx)(eB.Provider,{scope:e.__scopeMenu,children:(0,M.jsx)(F.C,{present:n||a.open,children:(0,M.jsx)(eB.Slot,{scope:e.__scopeMenu,children:(0,M.jsx)(tt,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:c,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,m.mK)(e.onFocusOutside,e=>{e.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,m.mK)(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:(0,m.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=eF[i.dir].includes(e.key);t&&r&&(a.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function tA(e){return e?"open":"closed"}function tS(e){return"indeterminate"===e}function tj(e){return tS(e)?"indeterminate":e?"checked":"unchecked"}function tN(e){return t=>"mouse"===t.pointerType?e(t):void 0}tM.displayName=tk;var tD="DropdownMenu",[t_,tI]=(0,y.A)(tD,[eU]),tO=eU(),[tP,tT]=t_(tD),tL=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,u=tO(t),c=h.useRef(null),[s,d]=(0,g.i)({prop:o,defaultProp:a??!1,onChange:i,caller:tD});return(0,M.jsx)(tP,{scope:t,triggerId:(0,T.B)(),triggerRef:c,contentId:(0,T.B)(),open:s,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(e=>!e),[d]),modal:l,children:(0,M.jsx)(eJ,{...u,open:s,onOpenChange:d,dir:n,modal:l,children:r})})};tL.displayName=tD;var tK="DropdownMenuTrigger",tF=h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=tT(tK,r),i=tO(r);return(0,M.jsx)(eQ,{asChild:!0,...i,children:(0,M.jsx)(w.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,v.t)(t,a.triggerRef),onPointerDown:(0,m.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,m.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tF.displayName=tK;var tW=e=>{let{__scopeDropdownMenu:t,...r}=e,n=tO(t);return(0,M.jsx)(e5,{...n,...r})};tW.displayName="DropdownMenuPortal";var tB="DropdownMenuContent",tG=h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tT(tB,r),a=tO(r),i=h.useRef(!1);return(0,M.jsx)(e9,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:(0,m.mK)(e.onCloseAutoFocus,e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,m.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tG.displayName=tB,h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tr,{...o,...n,ref:t})}).displayName="DropdownMenuGroup",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tn,{...o,...n,ref:t})}).displayName="DropdownMenuLabel";var tz=h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(ti,{...o,...n,ref:t})});tz.displayName="DropdownMenuItem",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tu,{...o,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tf,{...o,...n,ref:t})}).displayName="DropdownMenuRadioGroup",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(th,{...o,...n,ref:t})}).displayName="DropdownMenuRadioItem",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tg,{...o,...n,ref:t})}).displayName="DropdownMenuItemIndicator";var tV=h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tw,{...o,...n,ref:t})});tV.displayName="DropdownMenuSeparator",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tb,{...o,...n,ref:t})}).displayName="DropdownMenuArrow",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tR,{...o,...n,ref:t})}).displayName="DropdownMenuSubTrigger",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tM,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var tU=tL,tH=tF,tX=tW,tZ=tG,t$=tz,tq=tV},58299:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},59706:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("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"}]])},60527:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("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"}]])},63322:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},78347:(e,t,r)=>{let n,o,a;r.d(t,{DX:()=>p});var i,l=r(7620),u=r(33670),c=r(54568),s=Symbol.for("react.lazy"),d=(i||(i=r.t(l,2)))[" use ".trim().toString()];function f(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var p=((a=l.forwardRef((e,t)=>{let{children:r,...n}=e;if(f(r)&&"function"==typeof d&&(r=d(r._payload)),l.isValidElement(r)){var o;let e,a,i=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),c=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}}(n,r.props);return r.type!==l.Fragment&&(c.ref=t?(0,u.t)(t,i):i),l.cloneElement(r,c)}return l.Children.count(r)>1?l.Children.only(null):null})).displayName="Slot.SlotClone",n=a,(o=l.forwardRef((e,t)=>{let{children:r,...o}=e;f(r)&&"function"==typeof d&&(r=d(r._payload));let a=l.Children.toArray(r),i=a.find(m);if(i){let e=i.props.children,r=a.map(t=>t!==i?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,c.jsx)(n,{...o,ref:t,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,c.jsx)(n,{...o,ref:t,children:r})})).displayName="Slot.Slot",o),h=Symbol("radix.slottable");function m(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}},81167:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]])},87242:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},92119:(e,t,r)=>{r.d(t,{RG:()=>x,bL:()=>N,q7:()=>D});var n=r(7620),o=r(37188),a=r(35752),i=r(33670),l=r(55556),u=r(30586),c=r(59947),s=r(55222),d=r(3198),f=r(22130),p=r(54568),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[y,g,w]=(0,a.N)(v),[b,x]=(0,l.A)(v,[w]),[E,C]=b(v),R=n.forwardRef((e,t)=>(0,p.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(k,{...e,ref:t})})}));R.displayName=v;var k=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:l=!1,dir:u,currentTabStopId:y,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...R}=e,k=n.useRef(null),M=(0,i.s)(t,k),A=(0,f.jH)(u),[S,N]=(0,d.i)({prop:y,defaultProp:w??null,onChange:b,caller:v}),[D,_]=n.useState(!1),I=(0,s.c)(x),O=g(r),P=n.useRef(!1),[T,L]=n.useState(0);return n.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(h,I),()=>e.removeEventListener(h,I)},[I]),(0,p.jsx)(E,{scope:r,orientation:a,dir:A,loop:l,currentTabStopId:S,onItemFocus:n.useCallback(e=>N(e),[N]),onItemShiftTab:n.useCallback(()=>_(!0),[]),onFocusableItemAdd:n.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>L(e=>e-1),[]),children:(0,p.jsx)(c.sG.div,{tabIndex:D||0===T?-1:0,"data-orientation":a,...R,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),C)}}P.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>_(!1))})})}),M="RovingFocusGroupItem",A=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:i=!1,tabStopId:l,children:s,...d}=e,f=(0,u.B)(),h=l||f,m=C(M,r),v=m.currentTabStopId===h,w=g(r),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:E}=m;return n.useEffect(()=>{if(a)return b(),()=>x()},[a,b,x]),(0,p.jsx)(y.ItemSlot,{scope:r,id:h,focusable:a,active:i,children:(0,p.jsx)(c.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{a?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var 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 S[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=w().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=m.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>j(o))}}),children:"function"==typeof s?s({isCurrentTabStop:v,hasTabStop:null!=E}):s})})});A.displayName=M;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function j(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var N=R,D=A}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7542],{57542:(e,a,t)=>{t.r(a),t.d(a,{SessionSkills:()=>u});var s=t(54568),l=t(7620),r=t(13454);let n=(0,r.A)("cpu",[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);var i=t(23555),d=t(58299);let c=(0,r.A)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);var o=t(87242),x=t(63322),m=t(31404),v=t(90986),p=t(76081),h=t(40443);function u({session:e,sessionId:a,active:t}){let r=e.bridgeId??null,k=e.metadata.agent?.trim()||e.metadata.executor?.trim()||e.metadata.runtimeAgent?.trim()||"",g=e.metadata.workspacePath?.trim()||null,f="claude-code"===k,[b,j]=(0,l.useState)(""),[y,N]=(0,l.useState)(g?"workspace":"user"),[w,C]=(0,l.useState)([]),[S,A]=(0,l.useState)({}),[E,M]=(0,l.useState)([]),[I,$]=(0,l.useState)([]),[U,z]=(0,l.useState)(!0),[P,R]=(0,l.useState)(null),[_,D]=(0,l.useState)(null),L=(0,l.useCallback)(async()=>{if(t){z(!0),D(null);try{let[e,t,s]=await Promise.all([fetch("/api/skills/catalog",{cache:"no-store"}),fetch((0,m.S)(`/api/skills/installed?agent=${encodeURIComponent(k||"claude-code")}${g?`&workspacePath=${encodeURIComponent(g)}`:""}`,r),{cache:"no-store"}),fetch((0,m.S)(`/api/skills/session-active?sessionId=${encodeURIComponent(a)}`,r),{cache:"no-store"})]),l=await e.json(),n=await t.json(),i=await s.json(),d=Object.fromEntries((n.skills??[]).map(e=>[e.skillId,e]));C(l.skills??[]),A(d),$(n.customSkills??[]),M(i.skillIds??[])}catch(e){D({kind:"error",message:e instanceof Error?e.message:"Failed to load skills"})}finally{z(!1)}}},[t,k,r,a,g]);(0,l.useEffect)(()=>{L()},[L]);let W=(0,l.useMemo)(()=>{let e=b.trim().toLowerCase();return w.filter(a=>0===e.length||a.name.toLowerCase().includes(e)||a.summary.toLowerCase().includes(e)||a.category.toLowerCase().includes(e))},[w,b]),O=(0,l.useCallback)(async(e,t)=>{R(e.id),D(null);try{let s="activate"===t||"deactivate"===t?{sessionId:a,skillId:e.id}:{skillId:e.id,agent:k||"claude-code",scope:y,workspacePath:g,sessionId:a},l=await fetch((0,m.S)("install"===t?"/api/skills/install":"activate"===t?"/api/skills/activate":"deactivate"===t?"/api/skills/deactivate":"/api/skills/uninstall",r),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)}),n=await l.json().catch(()=>({}));if(!l.ok)throw Error(n.error||"Skill action failed");let i={install:`${e.name} installed and activated for this session.`,activate:`${e.name} is active for this session.`,deactivate:`${e.name} is no longer active for this session.`,uninstall:`${e.name} was removed from ${y} scope.`};D({kind:"success",message:i[t]}),await L()}catch(e){D({kind:"error",message:e instanceof Error?e.message:"Skill action failed"})}finally{R(null)}},[k,r,L,y,a,g]);return(0,s.jsxs)("div",{className:"flex h-full min-h-0 min-w-0 flex-col gap-3 overflow-y-auto overscroll-contain pb-4 lg:overflow-hidden lg:pb-0",children:[(0,s.jsx)(h.Zp,{children:(0,s.jsxs)(h.aR,{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between",children:[(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)("h2",{className:"text-[15px] font-semibold text-[var(--vk-text-normal)]",children:"Skills"}),(0,s.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:"Install Claude-style skills from the curated catalog on the paired device, detect what is already installed, and mark a skill as active for this session."})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 text-[12px] text-[var(--vk-text-muted)] lg:items-end",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(n,{className:"h-3.5 w-3.5"})," Agent: ",(0,s.jsx)("span",{className:"font-medium text-[var(--vk-text-normal)]",children:k||"unknown"})]}),(0,s.jsxs)("div",{children:["Device: ",(0,s.jsx)("span",{className:"font-medium text-[var(--vk-text-normal)]",children:r??"local"})]}),(0,s.jsxs)("div",{children:["Workspace: ",(0,s.jsx)("span",{className:"font-medium text-[var(--vk-text-normal)]",children:g??"Unavailable"})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 lg:flex-row lg:items-center lg:justify-between",children:[(0,s.jsxs)("label",{className:"flex items-center gap-2 rounded-[14px] border border-[var(--vk-border)] bg-[var(--vk-bg-main)] px-3 py-2 text-[12px] text-[var(--vk-text-muted)]",children:[(0,s.jsx)(i.A,{className:"h-3.5 w-3.5"}),(0,s.jsx)("input",{value:b,onChange:e=>j(e.target.value),placeholder:"Search skills",className:"w-full bg-transparent text-[13px] text-[var(--vk-text-normal)] outline-none placeholder:text-[var(--vk-text-muted)]"})]}),(0,s.jsxs)("label",{className:"flex items-center gap-2 text-[12px] text-[var(--vk-text-muted)]",children:["Install scope",(0,s.jsxs)("select",{value:y,onChange:e=>N(e.target.value),className:"rounded-[12px] border border-[var(--vk-border)] bg-[var(--vk-bg-main)] px-3 py-2 text-[13px] text-[var(--vk-text-normal)]",children:[(0,s.jsx)("option",{value:"user",children:"User, ~/.claude/skills"}),(0,s.jsx)("option",{value:"workspace",disabled:!g,children:"Workspace, .claude/skills"})]})]})]}),f?null:(0,s.jsxs)("div",{className:"rounded-[14px] border border-amber-400/30 bg-amber-400/10 px-3 py-2 text-[12px] text-amber-100",children:["This first release installs Claude Code skills only. Current session agent is ",(0,s.jsx)("span",{className:"font-semibold",children:k||"unknown"}),"."]}),_?(0,s.jsx)("div",{className:`rounded-[14px] border px-3 py-2 text-[12px] ${"error"===_.kind?"border-red-400/35 bg-red-400/10 text-red-100":"border-emerald-400/35 bg-emerald-400/10 text-emerald-100"}`,children:_.message}):null]})}),(0,s.jsxs)("div",{className:"grid min-h-0 flex-1 gap-3 lg:grid-cols-[minmax(0,1fr)_320px] lg:overflow-hidden",children:[(0,s.jsx)("div",{className:"min-h-0 rounded-[18px] border border-[var(--vk-border)] bg-[var(--vk-bg-surface)] p-3 lg:overflow-y-auto",children:(0,s.jsx)("div",{className:"space-y-3 lg:pr-2",children:U?(0,s.jsxs)("div",{className:"flex min-h-[220px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:[(0,s.jsx)(d.A,{className:"mr-2 h-4 w-4 animate-spin"})," Loading skills..."]}):0===W.length?(0,s.jsx)("div",{className:"flex min-h-[220px] items-center justify-center text-[13px] text-[var(--vk-text-muted)]",children:"No matching skills found."}):W.map(e=>{let a=S[e.id],t=!!(a?.installedUser||a?.installedWorkspace),l=E.includes(e.id),r=P===e.id,n=!e.compatibleAgents.includes(k||"claude-code");return(0,s.jsxs)(h.Zp,{className:"border-[var(--vk-border)] bg-[var(--vk-bg-main)]",children:[(0,s.jsxs)(h.aR,{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-3 xl:flex-row xl:items-start xl:justify-between",children:[(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,s.jsx)("h3",{className:"text-[14px] font-semibold text-[var(--vk-text-normal)]",children:e.name}),e.verified?(0,s.jsx)(v.E,{children:"Verified"}):(0,s.jsx)(v.E,{variant:"outline",children:"Community"}),(0,s.jsx)(v.E,{variant:"outline",children:e.category}),t?(0,s.jsx)(v.E,{variant:"outline",children:"Installed"}):null,l?(0,s.jsx)(v.E,{variant:"outline",children:"Active now"}):null,n?(0,s.jsx)(v.E,{variant:"outline",children:"Unsupported"}):null]}),(0,s.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:e.summary})]}),(0,s.jsx)("div",{className:"flex w-full flex-wrap items-center gap-2 xl:w-auto xl:justify-end",children:(0,s.jsxs)("a",{href:e.docsUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[12px] text-[var(--vk-text-muted)] hover:text-[var(--vk-text-normal)]",children:["Docs ",(0,s.jsx)(c,{className:"h-3 w-3"})]})})]}),(0,s.jsx)("div",{className:"flex flex-wrap gap-2 text-[12px] text-[var(--vk-text-muted)]",children:e.compatibleAgents.map(e=>(0,s.jsx)(v.E,{variant:"outline",children:e},e))})]}),(0,s.jsxs)(h.Wu,{className:"space-y-3",children:[a?.installPaths?.length?(0,s.jsxs)("div",{className:"rounded-[12px] border border-[var(--vk-border)] bg-[var(--vk-bg-surface)] px-3 py-2 text-[12px] text-[var(--vk-text-muted)]",children:["Installed at: ",a.installPaths.join(" • ")]}):null,(0,s.jsxs)("div",{className:"flex flex-wrap gap-2",children:[t?l?(0,s.jsxs)(p.$,{type:"button",variant:"outline",size:"sm",disabled:r,onClick:()=>void O(e,"deactivate"),children:[r?(0,s.jsx)(d.A,{className:"mr-1 h-3.5 w-3.5 animate-spin"}):(0,s.jsx)(o.A,{className:"mr-1 h-3.5 w-3.5"})," Deactivate"]}):(0,s.jsxs)(p.$,{type:"button",size:"sm",disabled:r||n,onClick:()=>void O(e,"activate"),children:[r?(0,s.jsx)(d.A,{className:"mr-1 h-3.5 w-3.5 animate-spin"}):(0,s.jsx)(x.A,{className:"mr-1 h-3.5 w-3.5"})," Use in session"]}):(0,s.jsxs)(p.$,{type:"button",size:"sm",disabled:r||n||!f,onClick:()=>void O(e,"install"),children:[r?(0,s.jsx)(d.A,{className:"mr-1 h-3.5 w-3.5 animate-spin"}):(0,s.jsx)(x.A,{className:"mr-1 h-3.5 w-3.5"})," Install and use"]}),t?(0,s.jsxs)(p.$,{type:"button",variant:"outline",size:"sm",disabled:r,onClick:()=>void O(e,"uninstall"),children:[r?(0,s.jsx)(d.A,{className:"mr-1 h-3.5 w-3.5 animate-spin"}):null," Uninstall"]}):null]})]})]},e.id)})})}),(0,s.jsxs)(h.Zp,{className:"min-h-0 border-[var(--vk-border)] bg-[var(--vk-bg-surface)] lg:overflow-y-auto",children:[(0,s.jsxs)(h.aR,{className:"flex-col items-start gap-1.5",children:[(0,s.jsx)("h3",{className:"text-[14px] font-semibold text-[var(--vk-text-normal)]",children:"Detected custom skills"}),(0,s.jsx)("p",{className:"text-[13px] text-[var(--vk-text-muted)]",children:"Extra skill folders already present on the paired machine that do not match the curated catalog."})]}),(0,s.jsx)(h.Wu,{className:"space-y-2 text-[13px] text-[var(--vk-text-muted)]",children:0===I.length?(0,s.jsx)("p",{children:"No custom skill folders detected."}):I.map(e=>(0,s.jsxs)("div",{className:"rounded-[12px] border border-[var(--vk-border)] bg-[var(--vk-bg-main)] px-3 py-2",children:[(0,s.jsx)("div",{className:"font-medium text-[var(--vk-text-normal)]",children:e.name}),(0,s.jsxs)("div",{className:"text-[12px] text-[var(--vk-text-muted)]",children:["Detected from ",e.source]})]},e.id))})]})]})]})}},90986:(e,a,t)=>{t.d(a,{E:()=>n});var s=t(54568),l=t(46916);let r={default:"border-[var(--vk-border)] bg-[var(--vk-bg-panel)] text-[var(--vk-text-muted)]",success:"border-transparent bg-transparent text-[var(--vk-green)]",warning:"border-transparent bg-transparent text-[var(--vk-orange)]",error:"border-transparent bg-transparent text-[var(--vk-red)]",info:"border-transparent bg-transparent text-[var(--vk-text-muted)]",outline:"border-[var(--vk-border)] bg-transparent text-[var(--vk-text-muted)]"};function n({variant:e="default",className:a,children:t}){return(0,s.jsx)("span",{className:(0,l.cn)("inline-flex items-center gap-1 rounded-[3px] border px-1.5 py-0.5 text-[11px] leading-none",r[e],a),children:t})}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[945],{20945:(e,c,r)=>{r.r(c),r.d(c,{createOrReadKeylessAction:()=>d.a,deleteKeylessAction:()=>s,detectKeylessEnvDriftAction:()=>a.A,syncKeylessConfigAction:()=>f});var a=r(64910),t=r(5974);let s=(0,t.createServerReference)("007a3e3f0c29c0ca54e69015d1160debc98c75cce1",t.callServer,void 0,t.findSourceMapURL,"deleteKeylessAction");var d=r(26651);let f=(0,t.createServerReference)("40f40d449676232a3477e094e628fb13cfc56976da",t.callServer,void 0,t.findSourceMapURL,"syncKeylessConfigAction")},26651:(e,c,r)=>{r.d(c,{a:()=>t});var a=r(5974);let t=(0,a.createServerReference)("00f744501dd80954c9575fcb6fa3f8d46af8224403",a.callServer,void 0,a.findSourceMapURL,"createOrReadKeylessAction")}}]);
|
package/web/.next/standalone/packages/web/.next/static/chunks/app/layout-dd4c6d44c4af2a5b.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{24876:(e,r,t)=>{Promise.resolve().then(t.bind(t,37204)),Promise.resolve().then(t.bind(t,36727)),Promise.resolve().then(t.bind(t,76940)),Promise.resolve().then(t.bind(t,48914)),Promise.resolve().then(t.bind(t,30679)),Promise.resolve().then(t.bind(t,62520)),Promise.resolve().then(t.bind(t,93603)),Promise.resolve().then(t.t.bind(t,48477,23)),Promise.resolve().then(t.t.bind(t,91745,23)),Promise.resolve().then(t.t.bind(t,31008,23)),Promise.resolve().then(t.t.bind(t,78578,23)),Promise.resolve().then(t.t.bind(t,74471,23)),Promise.resolve().then(t.bind(t,48204)),Promise.resolve().then(t.bind(t,92690))},46916:(e,r,t)=>{"use strict";t.d(r,{cn:()=>s});var o=t(9917),n=t(2809);function s(...e){return(0,n.QP)((0,o.$)(e))}},48204:(e,r,t)=>{"use strict";t.d(r,{ThemeProvider:()=>d});var o=t(54568),n=t(7620);let s=(0,n.createContext)({theme:"dark",toggleTheme:()=>{}});function i(e){let r=document.documentElement;r.classList.remove("dark","light"),r.classList.add(e)}function d({children:e}){let[r,t]=(0,n.useState)("dark");(0,n.useEffect)(()=>{let e=localStorage.getItem("conductor-theme");if("light"===e||"dark"===e){t(e),i(e);return}i("dark")},[]);let a=(0,n.useCallback)(()=>{t(e=>{let r="dark"===e?"light":"dark";return localStorage.setItem("conductor-theme",r),i(r),r})},[]);return(0,o.jsx)(s.Provider,{value:{theme:r,toggleTheme:a},children:e})}},59831:(e,r,t)=>{"use strict";t.d(r,{y:()=>n});var o=t(5974);let n=(0,o.createServerReference)("0009253203745dfa45ddccb8242075b2f635a07539",o.callServer,void 0,o.findSourceMapURL,"invalidateCacheAction")},64910:(e,r,t)=>{"use strict";t.d(r,{A:()=>n});var o=t(5974);let n=(0,o.createServerReference)("00680d7550d1397a9538d465a73e1a5998b881292a",o.callServer,void 0,o.findSourceMapURL,"detectKeylessEnvDriftAction")},74471:()=>{},92690:(e,r,t)=>{"use strict";t.d(r,{TooltipProvider:()=>d});var o=t(54568),n=t(97257),s=t(7620),i=t(46916);let d=n.Kq;n.bL,n.l9,(0,s.forwardRef)(({className:e,sideOffset:r=8,...t},s)=>(0,o.jsx)(n.ZL,{children:(0,o.jsx)(n.UC,{ref:s,sideOffset:r,className:(0,i.cn)("z-50 rounded-[var(--radius-xs)] border border-[var(--border-strong)] bg-[var(--bg-panel)] px-2 py-1.5","text-[11px] text-[var(--text-normal)] shadow-[var(--shadow-soft)]","animate-in fade-in-0 zoom-in-95",e),...t})})).displayName="TooltipContent"}},e=>{e.O(0,[7547,3357,524,1455,7220,587,1968,7358],()=>e(e.s=24876)),_N_E=e.O()}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1665],{10926:(e,t,r)=>{r.d(t,{C0:()=>a,DW:()=>i});let n="bridge:";function a(e){let t=e?.trim();return t&&t.length>0?t:null}function i(e){let t=e?.trim();if(!t||!t.startsWith(n))return null;let r=t.slice(n.length),i=r.indexOf(":");if(i<=0||i>=r.length-1)return null;let s=a(r.slice(0,i)),o=r.slice(i+1).trim();return s&&0!==o.length?{bridgeId:s,sessionId:o}:null}},11984:(e,t,r)=>{function n(e){let t=e?.trim().toLowerCase()??"";return!!t&&(t.includes("127.0.0.1:4749")||t.includes("older bridge build")||t.includes("one-time local bridge upgrade"))}function a(e){return`This laptop needs a one-time local bridge upgrade before ${function(e){switch(e){case"repair":return"Repair bridge";case"restart":return"Restart service";case"update":return"Update Conductor"}}(e)} can run from the dashboard.`}function i(e){let t=e?.trim()||"This laptop";return`${t} is still on an older bridge build, so Conductor cannot repair, restart, or update it remotely yet. Upgrade the bridge once on that laptop, then future fixes run from the dashboard.`}r.d(t,{Az:()=>n,IG:()=>a,_5:()=>i})},15115:(e,t,r)=>{function n(e,t){return"string"==typeof e&&e.trim().length>0?e.trim():t}function a(e){let t="string"==typeof e?e.trim():"";return t?` (build ${t})`:""}function i(e){return Array.isArray(e)?e.filter(e=>!!e&&"object"==typeof e).map(e=>{let t,r,a;return t=n(e.hostname,"unknown-host"),r=n(e.os,"unknown-os"),a=n(e.arch,"unknown-arch"),{device_id:n(e.device_id,t),device_name:n(e.device_name,t),hostname:t,os:r,arch:a,connected:!0===e.connected,last_status:e.last_status?{hostname:n(e.last_status.hostname,t),os:n(e.last_status.os,r),connected:!0===e.last_status.connected,version:"string"==typeof e.last_status.version&&e.last_status.version.trim().length>0?e.last_status.version.trim():null}:null}}):[]}r.d(t,{oH:()=>i,wj:()=>a})},15321:(e,t,r)=>{r.d(t,{i:()=>m});var n=r(54568),a=r(7620),i=r(65587),s=r.n(i),o=r(63322),d=r(59706),l=r(87242),c=r(76081),u=r(46916),v=r(11984),p=r(61369);function m({deviceId:e,deviceName:t,dashboardUrl:r,installScriptUrl:i,relayUrl:g,className:h}){let[x,b]=(0,a.useState)(!1),f=(0,a.useMemo)(()=>(0,p.$y)(i,r,g),[r,i,g]),k=(0,a.useMemo)(()=>(0,p.kw)(e),[e]);return(0,n.jsxs)("div",{className:(0,u.cn)("mt-3 rounded-[14px] border border-[color:color-mix(in_srgb,var(--vk-orange)_28%,transparent)] bg-[color:color-mix(in_srgb,var(--vk-orange)_10%,transparent)] px-3 py-3",h),children:[(0,n.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-[var(--vk-text-muted)]",children:"One-time local repair"}),(0,n.jsx)("div",{className:"mt-2 text-[12px] leading-5 text-[var(--vk-text-normal)]",children:(0,v._5)(t)}),(0,n.jsxs)("div",{className:"mt-3 flex flex-wrap gap-2",children:[(0,n.jsxs)(c.$,{type:"button",variant:"outline",size:"sm",onClick:()=>{navigator.clipboard?.writeText?(b(!1),navigator.clipboard.writeText(f).then(()=>{b(!0)}).catch(()=>{b(!1)})):b(!1)},children:[x?(0,n.jsx)(o.A,{className:"h-4 w-4"}):(0,n.jsx)(d.A,{className:"h-4 w-4"}),x?"Repair command copied":"Copy repair command"]}),(0,n.jsx)(c.$,{asChild:!0,variant:"outline",size:"sm",children:(0,n.jsxs)(s(),{href:k,children:[(0,n.jsx)(l.A,{className:"h-4 w-4"}),"Open repair steps"]})})]})]})}},21665:(e,t,r)=>{r.d(t,{J:()=>C});var n=r(54568),a=r(7620),i=r(40448),s=r(65587),o=r.n(s),d=r(79748),l=r(34041),c=r(58299),u=r(87242),v=r(2099),p=r(60527),m=r(81167),g=r(15321),h=r(44522),x=r(11984),b=r(46916),f=r(26167),k=r(61369),w=r(15115),y=r(63680);let j="/bridge/connect";function _({connected:e,className:t,title:r,suffix:a}){return(0,n.jsxs)("span",{className:(0,b.cn)("inline-flex items-center gap-2 rounded-full border px-2.5 py-1 text-[12px] font-medium",e?"border-[rgba(24,197,143,0.35)] bg-[rgba(24,197,143,0.12)] text-[var(--vk-green)]":"border-[rgba(255,143,122,0.24)] bg-[rgba(255,143,122,0.08)] text-[var(--vk-red)]",t),title:r,children:[(0,n.jsx)("span",{className:(0,b.cn)("h-2.5 w-2.5 rounded-full",e?"bg-[var(--vk-green)]":"bg-[var(--vk-red)]")}),(0,n.jsx)("span",{children:e?"Online":"Offline"}),a]})}function N({className:e}){let t,r=(0,d.useRouter)(),s=(0,d.usePathname)(),C=(0,d.useSearchParams)(),[$,I]=(0,a.useState)([]),[R,A]=(0,a.useState)(!0),[S,T]=(0,a.useState)(null),[E,U]=(0,a.useState)(null),[L,O]=(0,a.useState)({deviceId:null,phase:"idle",message:null}),[P,D]=(0,a.useState)({deviceId:null,kind:null,status:"idle",message:null}),z=(0,a.useRef)(new Set),M=(0,a.useCallback)(async e=>{e&&A(!0);try{let e=await fetch("/api/bridge/devices",{cache:"no-store"}),t=await e.json().catch(()=>null);if(!e.ok)throw Error(t?.error??`Failed to load bridge devices (${e.status})`);I((0,w.oH)(t?.devices)),T(null)}catch(e){T(e instanceof Error?e.message:"Failed to load bridge devices.")}finally{A(!1)}},[]);(0,a.useEffect)(()=>{let e=!1,t=null,r=async t=>{e||await M(t)};return r(!0),t=window.setInterval(()=>{r(!1)},15e3),()=>{e=!0,null!==t&&window.clearInterval(t)}},[M]),(0,a.useEffect)(()=>{let e=()=>{U((0,h.Tr)()?.deviceId??null)};return e(),window.addEventListener("focus",e),window.addEventListener("storage",e),()=>{window.removeEventListener("focus",e),window.removeEventListener("storage",e)}},[]),(0,a.useEffect)(()=>{s!==j&&r.prefetch(j)},[s,r]);let B=$.filter(e=>e.connected),F=C.get("bridge")?.trim()||null,q=window.location.origin,G=(t=function(e){let t=e?.trim();if(!t)return null;try{let e=new URL(t);if("http:"!==e.protocol&&"https:"!==e.protocol)return null;return e.toString()}catch{return null}}(y.env.CONDUCTOR_BRIDGE_RELAY_URL??y.env.NEXT_PUBLIC_CONDUCTOR_BRIDGE_RELAY_URL))||null,V=F?$.find(e=>e.device_id===F)??null:null,J=E?$.find(e=>e.device_id===E)??null:null,W=B.length>0,H=S??(W?`${B.length} bridge${1===B.length?"":"s"} online`:$.length>0?"No paired bridges are online":"No paired bridges yet");(0,a.useEffect)(()=>{let e=(J?.connected?J:null)??(V?.connected?V:null);!e||z.current.has(e.device_id)||(z.current.add(e.device_id),(0,h.jV)(e,O))},[J,V]),(0,a.useEffect)(()=>{!J||J.connected||L.message||O({deviceId:J.device_id,phase:"checking",message:`Waiting for ${J.device_name} to reconnect so Conductor can finish its package update.`})},[L.message,J]);let X=(0,a.useCallback)(async e=>{D({deviceId:e.device_id,kind:"restart",status:"running",message:`Restarting the bridge service on ${e.device_name}.`});try{let t=await (0,f.b)(e.device_id);D({deviceId:e.device_id,kind:"restart",status:"completed",message:t}),window.setTimeout(()=>{M(!1)},2e3)}catch(t){D({deviceId:e.device_id,kind:"restart",status:"failed",message:t instanceof Error?t.message:`Failed to restart ${e.device_name}.`})}},[M]),Y=(0,a.useCallback)(async e=>{D({deviceId:e.device_id,kind:"repair",status:"running",message:`Reinstalling the bridge service on ${e.device_name}.`});try{let t=(0,k.pj)(window.location.origin),r=await (0,f.E)(e.device_id,t);D({deviceId:e.device_id,kind:"repair",status:"completed",message:r}),window.setTimeout(()=>{M(!1)},2e3)}catch(t){D({deviceId:e.device_id,kind:"repair",status:"failed",message:t instanceof Error?t.message:`Failed to repair ${e.device_name}.`})}},[M]),Z=(0,a.useCallback)(async e=>{await (0,h.jV)(e,O),window.setTimeout(()=>{M(!1)},2e3)},[M]);return(0,n.jsxs)(i.bL,{children:[(0,n.jsx)(i.l9,{asChild:!0,children:(0,n.jsx)("button",{type:"button",className:"outline-none",children:(0,n.jsx)(_,{connected:W,className:e,title:H,suffix:(0,n.jsx)(l.A,{className:"h-3.5 w-3.5 text-current/70"})})})}),(0,n.jsx)(i.ZL,{children:(0,n.jsxs)(i.UC,{align:"end",sideOffset:8,className:"z-[90] w-[320px] rounded-[18px] border border-[var(--vk-border)] bg-[var(--vk-bg-panel)] p-2 text-[var(--vk-text-normal)] shadow-[0_22px_48px_rgba(0,0,0,0.34)]",children:[(0,n.jsxs)("div",{className:"rounded-[14px] border border-[var(--vk-border)] bg-[var(--vk-bg-main)] px-3 py-3",children:[(0,n.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-[var(--vk-text-muted)]",children:"Conductor Bridge"}),(0,n.jsx)("div",{className:"mt-2 text-[13px] text-[var(--vk-text-normal)]",children:W?`${B.length} device${1===B.length?"":"s"} online`:R?"Loading device status":"No live bridge connection"}),(0,n.jsx)("div",{className:"mt-2 text-[11px] leading-5 text-[var(--vk-text-faint)]",children:"If a laptop is online but misbehaving, repair the bridge, update Conductor, or restart the service here."}),S?(0,n.jsx)("div",{className:"mt-2 text-[12px] leading-5 text-[var(--vk-red)]",children:S}):null,L.message?(0,n.jsx)("div",{className:(0,b.cn)("mt-2 text-[12px] leading-5","failed"===L.phase?"text-[var(--vk-red)]":"skipped"===L.phase?"text-[var(--vk-text-muted)]":"text-[var(--vk-text-faint)]"),children:L.message}):null]}),(0,n.jsx)("div",{className:"mt-2 max-h-[280px] overflow-y-auto",children:$.length>0?$.map(e=>{let t=(0,h.xv)(L,e.device_id),r="running"===P.status&&P.deviceId===e.device_id,a=r&&"repair"===P.kind,i=r&&"restart"===P.kind,s=P.deviceId===e.device_id&&(0,x.Az)(P.message)||L.deviceId===e.device_id&&(0,x.Az)(L.message);return(0,n.jsx)("div",{className:"rounded-[14px] px-3 py-2.5 transition-colors hover:bg-[var(--vk-bg-hover)]",children:(0,n.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("div",{className:"truncate text-[13px] font-medium text-[var(--vk-text-strong)]",children:e.device_name}),(0,n.jsxs)("div",{className:"mt-1 text-[12px] text-[var(--vk-text-muted)]",children:[e.hostname," \xb7 ",e.os,"/",e.arch,(0,w.wj)(e.last_status?.version)]}),(0,n.jsxs)("div",{className:"mt-1 text-[11px] text-[var(--vk-text-muted)]",children:["Relay: ",e.last_status?.hostname??e.hostname,(0,w.wj)(e.last_status?.version)]}),L.message&&L.deviceId===e.device_id?(0,n.jsx)("div",{className:(0,b.cn)("mt-1 text-[11px] leading-5","failed"===L.phase?"text-[var(--vk-red)]":"skipped"===L.phase?"text-[var(--vk-text-muted)]":"text-[var(--vk-text-faint)]"),children:L.message}):null,P.message&&P.deviceId===e.device_id?(0,n.jsx)("div",{className:(0,b.cn)("mt-1 text-[11px] leading-5","failed"===P.status?"text-[var(--vk-red)]":"completed"===P.status?"text-[var(--vk-green)]":"text-[var(--vk-text-faint)]"),children:P.message}):null,s&&q?(0,n.jsx)(g.i,{deviceId:e.device_id,deviceName:e.device_name,dashboardUrl:q,installScriptUrl:(0,k.pj)(q),relayUrl:G}):null,e.connected?(0,n.jsxs)("div",{className:"mt-2 flex flex-wrap gap-2",children:[(0,n.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-[10px] border border-[var(--vk-border)] px-2.5 py-1 text-[11px] font-medium text-[var(--vk-text-normal)] transition-colors hover:bg-[var(--vk-bg-hover)]",disabled:r||t,onClick:()=>{Y(e)},children:[a?(0,n.jsx)(c.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,n.jsx)(u.A,{className:"h-3.5 w-3.5"}),"Repair bridge"]}),(0,n.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-[10px] border border-[var(--vk-border)] px-2.5 py-1 text-[11px] font-medium text-[var(--vk-text-normal)] transition-colors hover:bg-[var(--vk-bg-hover)]",disabled:t||r,onClick:()=>{Z(e)},children:[t?(0,n.jsx)(c.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,n.jsx)(v.A,{className:"h-3.5 w-3.5"}),t?"Updating...":"Update Conductor"]}),(0,n.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1.5 rounded-[10px] border border-[var(--vk-border)] px-2.5 py-1 text-[11px] font-medium text-[var(--vk-text-normal)] transition-colors hover:bg-[var(--vk-bg-hover)]",disabled:r||t,onClick:()=>{X(e)},children:[i?(0,n.jsx)(c.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,n.jsx)(p.A,{className:"h-3.5 w-3.5"}),"Restart service"]})]}):null]}),(0,n.jsx)(_,{connected:!0===e.connected})]})},e.device_id)}):(0,n.jsx)("div",{className:"rounded-[14px] border border-dashed border-[var(--vk-border)] px-3 py-4 text-[12px] text-[var(--vk-text-muted)]",children:R?"Loading paired devices...":"Pair a laptop to see bridge status here."})}),(0,n.jsx)(i.wv,{className:"my-2 h-px bg-[var(--vk-border)]"}),(0,n.jsx)(i.q7,{asChild:!0,children:(0,n.jsxs)(o(),{href:j,prefetch:!0,className:"flex items-center justify-between rounded-[12px] px-3 py-2 text-[13px] font-medium text-[var(--vk-text-normal)] outline-none transition-colors hover:bg-[var(--vk-bg-hover)] focus:bg-[var(--vk-bg-hover)]",children:[(0,n.jsx)("span",{children:"Open bridge connection"}),(0,n.jsx)(m.A,{className:"h-4 w-4 text-[var(--vk-text-muted)]"})]})})]})})]})}function C({connected:e,className:t,title:r}={}){return"boolean"==typeof e?(0,n.jsx)(_,{connected:e,className:t,title:r}):(0,n.jsx)(N,{className:t})}},26167:(e,t,r)=>{r.d(t,{E:()=>i,b:()=>a});var n=r(11984);async function a(e){let t=await s(e,"service-restart",{});return t?.message??"Bridge service restart requested. This laptop should reconnect shortly."}async function i(e,t){let r=await s(e,"repair",{installScriptUrl:t});return r?.message??"Bridge reinstall requested. This laptop should reconnect shortly."}async function s(e,t,r){let a=await fetch(`/api/bridge/devices/${encodeURIComponent(e)}/${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r),cache:"no-store"}),i=await a.json().catch(()=>null);if(!a.ok){var s,o;let e;throw Error((s=i?.error??i?.message??null,o=a.status,e=s?.trim()??"",(0,n.Az)(e)?(0,n.IG)("repair"===t?"repair":"restart"):e||`Failed to run ${t} on the bridge service (${o})`))}return i}},31404:(e,t,r)=>{r.d(t,{S:()=>a,y:()=>i});var n=r(10926);function a(e,t){let r=(0,n.C0)(t);if(!r)return e;let a=new URL(e,"http://127.0.0.1");return a.searchParams.set("bridgeId",r),`${a.pathname}${a.search}${a.hash}`}function i(e){let t=function(e){if(!e)return null;if(e instanceof URL)return e;if("string"==typeof e)try{return new URL(e,"http://127.0.0.1")}catch{return null}if("string"==typeof e.href)try{return new URL(e.href)}catch{}return null}(e);if(!t)return null;let r=(0,n.C0)(t.searchParams.get("bridge")??t.searchParams.get("bridgeId"));if(r)return r;let a=(0,n.DW)(t.searchParams.get("session"))?.bridgeId;if(a)return a;let i=t.pathname.match(/^\/sessions\/([^/]+)$/);if(!i)return null;try{return(0,n.DW)(decodeURIComponent(i[1]))?.bridgeId??null}catch{return null}}},44522:(e,t,r)=>{r.d(t,{N8:()=>l,Tr:()=>v,jV:()=>p,m7:()=>u,xv:()=>s});var n=r(31404),a=r(11984);let i="conductor-bridge-recent-pairing";function s(e,t){return e.deviceId===t&&("checking"===e.phase||"updating"===e.phase||"restarting"===e.phase)}function o(e,t){return t.jobMessage??`Installing Conductor ${t.latestVersion??"latest"} on ${e.device_name}.`}function d(e){let t=e.currentVersion?.trim();return t?` (build ${t})`:""}function l(e){if(!e.enabled)switch(e.reason){case"source-checkout":return"This laptop is running from a source checkout, so there is no published package to auto-update.";case"missing-cli-metadata":return"This install could not determine its update metadata, so automatic package updates are unavailable.";default:return"Automatic package updates are unavailable for this laptop."}return e.updateAvailable?e.canAutoUpdate?`This laptop is already running the latest Conductor release${d(e)}.`:"npx"===e.installMode?"This laptop was launched via npx, so the next launch will pick up the latest package automatically.":e.updateCommand?`A newer Conductor release is available, but this install still needs a manual update: ${e.updateCommand}`:"A newer Conductor release is available, but this install cannot update itself automatically.":`This laptop is already running the latest Conductor release${d(e)}.`}async function c(e,t){var r,i;let s=t?.method??"GET",o=`/api/bridge/devices/${encodeURIComponent(e)}/app-update`,d=new URL((0,n.S)(o,e),window.location.origin);t?.force&&d.searchParams.set("force","1");let l=await fetch(d.toString(),{method:s,headers:t?.body?{"Content-Type":"application/json"}:void 0,body:t?.body?JSON.stringify(t.body):void 0,cache:"no-store"}),c=await l.json().catch(()=>null);if(!l.ok){let e;throw Error((r=c&&"object"==typeof c&&"error"in c&&"string"==typeof c.error?c.error:null,i=l.status,e=r?.trim()??"",(0,a.Az)(e)?(0,a.IG)("update"):e||`Failed to update Conductor on this laptop (${i})`))}let u=c&&"object"==typeof c?c:null;if(!u)throw Error("Paired device returned an invalid update payload.");return u}function u(e){let t={deviceId:e.deviceId,deviceName:e.deviceName??null,pairedAt:new Date().toISOString()};try{window.localStorage.setItem(i,JSON.stringify(t))}catch{}}function v(){try{let e=window.localStorage.getItem(i);if(!e)return null;let t=JSON.parse(e);if(!(t&&"object"==typeof t&&"string"==typeof t.deviceId&&"string"==typeof t.pairedAt&&(null===t.deviceName||"string"==typeof t.deviceName)))return window.localStorage.removeItem(i),null;let r=Date.parse(t.pairedAt);if(!Number.isFinite(r)||Date.now()-r>18e5)return window.localStorage.removeItem(i),null;return t}catch{return null}}async function p(e,t){let r=(r,n)=>{t({deviceId:e.device_id,phase:r,message:n})};r("checking",`Checking for Conductor updates on ${e.device_name}.`);try{let t=await c(e.device_id,{force:!0});if(t.restarting)return void r("restarting",t.jobMessage??`Restart requested on ${e.device_name}. This page will reconnect once the bridge runtime is back online.`);if("running"===t.jobStatus)r("updating",o(e,t));else{if(!t.updateAvailable||!t.enabled||!t.canAutoUpdate)return void r(t.enabled&&t.canAutoUpdate?"completed":"skipped",l(t));t=await c(e.device_id,{method:"POST"}),r("updating",o(e,t))}let n=Date.now()+3e5;for(;Date.now()<n&&"running"===t.jobStatus;){if(await new Promise(e=>{window.setTimeout(e,1500)}),(t=await c(e.device_id)).restarting)return void r("restarting",t.jobMessage??`Restart requested on ${e.device_name}. This page will reconnect once the bridge runtime is back online.`);r("updating",o(e,t))}if("running"===t.jobStatus)return void r("updating",`The package update is still running on ${e.device_name}. Leave this page open and Conductor will finish applying it in the background.`);if("failed"===t.jobStatus)throw Error(t.jobMessage??t.error??`Automatic package update failed on ${e.device_name}.`);if(t.restartRequired){if(t.canRestart){t=await c(e.device_id,{method:"POST",body:{action:"restart"}}),r("restarting",t.jobMessage??`Restart requested on ${e.device_name} to finish updating Conductor.`);return}r("completed",t.jobMessage??`The latest Conductor package is installed on ${e.device_name}. Restart that laptop to finish updating.`);return}r("completed",t.jobMessage??`${e.device_name} is now updated to Conductor ${t.latestVersion??"latest"}.`)}catch(t){r("failed",t instanceof Error?t.message:`Failed to auto-update ${e.device_name}.`)}}},46916:(e,t,r)=>{r.d(t,{cn:()=>i});var n=r(9917),a=r(2809);function i(...e){return(0,a.QP)((0,n.$)(e))}},61369:(e,t,r)=>{function n(e){return/^[A-Za-z0-9_./:=@%+-]+$/.test(e)?e:`'${e.replace(/'/g,"'\"'\"'")}'`}function a(e){return e.map(n).join(" ")}function i(e){return new URL("/bridge/install.sh",e).toString()}function s(e){return`/bridge/connect?device=${encodeURIComponent(e)}#bridge-setup`}function o(e){return`curl -fsSL ${n(e)} | sh`}function d(e,t,r){let n=["npx","--yes","conductor-oss@latest","bridge","setup","--dashboard-url",t];return r?.trim()&&n.push("--relay-url",r.trim()),a(n)}function l(e,t){let r=["conductor-bridge","connect","--dashboard-url",e];return t?.trim()&&r.push("--relay-url",t.trim()),a(r)}function c(e,t){let r=["conductor-bridge","pair","--code",e?.trim()||"ABC123"],n=["conductor-bridge","daemon"];return t?.trim()&&(r.push("--relay-url",t.trim()),n.push("--relay-url",t.trim())),`${a(r)}
|
|
2
|
-
${a(n)}`}r.d(t,{$y:()=>d,G7:()=>o,hI:()=>l,kw:()=>s,pj:()=>i,zd:()=>c})},76081:(e,t,r)=>{r.d(t,{$:()=>l});var n=r(54568),a=r(46916),i=r(78347),s=r(7620);let o={default:"border-[var(--vk-border)] bg-[var(--vk-bg-panel)] text-[var(--vk-text-normal)] hover:bg-[var(--vk-bg-hover)]",primary:"border-[var(--vk-border)] bg-[var(--vk-bg-active)] text-[var(--vk-text-normal)] hover:bg-[var(--vk-bg-hover)]",ghost:"border-transparent bg-transparent text-[var(--vk-text-muted)] hover:bg-[var(--vk-bg-hover)] hover:text-[var(--vk-text-normal)]",danger:"border-[var(--vk-red)]/40 bg-[color:color-mix(in_srgb,var(--vk-red)_18%,transparent)] text-[var(--vk-red)] hover:bg-[color:color-mix(in_srgb,var(--vk-red)_24%,transparent)]",outline:"border-[var(--vk-border)] bg-transparent text-[var(--vk-text-normal)] hover:bg-[var(--vk-bg-hover)]"},d={sm:"h-7 px-2.5 text-[12px] gap-1",md:"h-8 px-3 text-[13px] gap-1.5",lg:"h-9 px-3.5 text-[14px] gap-2",icon:"h-8 w-8 p-0"},l=(0,s.forwardRef)(({variant:e="default",size:t="md",asChild:r,className:s,children:l,...c},u)=>{let v=r?i.DX:"button";return(0,n.jsx)(v,{ref:u,className:(0,a.cn)("inline-flex items-center justify-center rounded-[var(--radius-sm)] border font-medium","transition-colors duration-150","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--vk-orange)]","disabled:pointer-events-none disabled:opacity-45",o[e],d[t],s),...c,children:l})});l.displayName="Button"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4443],{26651:(e,l,a)=>{a.d(l,{a:()=>n});var s=a(5974);let n=(0,s.createServerReference)("00f744501dd80954c9575fcb6fa3f8d46af8224403",s.callServer,void 0,s.findSourceMapURL,"createOrReadKeylessAction")},34443:(e,l,a)=>{a.r(l),a.d(l,{KeylessCreatorOrReader:()=>r});var s=a(79748),n=a(7620),t=a(26651);let r=e=>{var l;let{children:a}=e,r=(null==(l=(0,s.useSelectedLayoutSegments)()[0])?void 0:l.startsWith("/_not-found"))||!1,[i,u]=n.useActionState(t.a,null);return((0,n.useEffect)(()=>{r||n.startTransition(()=>{u()})},[r]),n.isValidElement(a))?n.cloneElement(a,{key:null==i?void 0:i.publishableKey,publishableKey:null==i?void 0:i.publishableKey,__internal_keyless_claimKeylessApplicationUrl:null==i?void 0:i.claimUrl,__internal_keyless_copyInstanceKeysUrl:null==i?void 0:i.apiKeysUrl,__internal_bypassMissingPublishableKey:!0}):a}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4517],{2099:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]])},13454:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(7620);let o=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),a=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let l=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:l="",children:u,iconNode:c,...s},d)=>(0,n.createElement)("svg",{ref:d,...i,width:t,height:t,stroke:e,strokeWidth:a?24*Number(r)/Number(t):r,className:o("lucide",l),...!u&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(s)&&{"aria-hidden":"true"},...s},[...c.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(u)?u:[u]])),u=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...i},u)=>(0,n.createElement)(l,{ref:u,iconNode:t,className:o(`lucide-${a(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,r),...i}));return r.displayName=a(e),r}},22130:(e,t,r)=>{r.d(t,{jH:()=>a});var n=r(7620);r(54568);var o=n.createContext(void 0);function a(e){let t=n.useContext(o);return e||t||"ltr"}},34041:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},35752:(e,t,r)=>{r.d(t,{N:()=>s});var n=r(7620),o=r(55556),a=r(33670),i=r(54568);function l(e){var t;let r,o=(t=e,(r=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){var i;let e,l,u=(i=r,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),c=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}}(o,r.props);return r.type!==n.Fragment&&(c.ref=t?(0,a.t)(t,u):u),n.cloneElement(r,c)}return n.Children.count(r)>1?n.Children.only(null):null})).displayName=`${t}.SlotClone`,r),l=n.forwardRef((e,t)=>{let{children:r,...a}=e,l=n.Children.toArray(r),u=l.find(c);if(u){let e=u.props.children,r=l.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,i.jsx)(o,{...a,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,i.jsx)(o,{...a,ref:t,children:r})});return l.displayName=`${e}.Slot`,l}var u=Symbol("radix.slottable");function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}function s(e){let t=e+"CollectionProvider",[r,u]=(0,o.A)(t),[c,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,o=n.useRef(null),a=n.useRef(new Map).current;return(0,i.jsx)(c,{scope:t,itemMap:a,collectionRef:o,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=l(f),h=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=s(f,r),l=(0,a.s)(t,o.collectionRef);return(0,i.jsx)(p,{ref:l,children:n})});h.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",y=l(m),g=n.forwardRef((e,t)=>{let{scope:r,children:o,...l}=e,u=n.useRef(null),c=(0,a.s)(t,u),d=s(m,r);return n.useEffect(()=>(d.itemMap.set(u,{ref:u,...l}),()=>void d.itemMap.delete(u))),(0,i.jsx)(y,{...{[v]:""},ref:c,children:o})});return g.displayName=m,[{Provider:d,Slot:h,ItemSlot:g},function(t){let r=s(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}var d=new WeakMap;function f(e,t){var r,n;let o,a,i;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,n=t,o=r.length,(i=(a=p(n))>=0?a:o+a)<0||i>=o?-1:i);return -1===l?void 0:e[l]}function p(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],d.set(this,!0)}set(e,t){return d.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=p(e),l=i>=0?i:a+i,u=l<0||l>=a?-1:l;if(u===this.size||o&&u===this.size-1||-1===u)return this.set(t,r),this;let c=this.size+ +!o;i<0&&l++;let s=[...this.#e],d=!1;for(let e=l;e<c;e++)if(l===e){let a=s[e];s[e]===t&&(a=s[e+1]),o&&this.delete(t),n=this.get(a),this.set(t,r)}else{d||s[e-1]!==t||(d=!0);let r=s[d?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=f(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=f(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return f(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}})},36645:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},40448:(e,t,r)=>{let n,o,a,i;r.d(t,{UC:()=>tZ,q7:()=>t$,ZL:()=>tX,bL:()=>tU,wv:()=>tq,l9:()=>tH});var l,u,c,s,d,f,p,h=r(7620),m=r(37188),v=r(33670),y=r(55556),g=r(3198),w=r(59947),b=r(35752),x=r(22130),E=r(64159),C=0;function R(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var k=r(55222),M=r(54568),A="focusScope.autoFocusOnMount",S="focusScope.autoFocusOnUnmount",j={bubbles:!1,cancelable:!0},N=h.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,u]=h.useState(null),c=(0,k.c)(o),s=(0,k.c)(a),d=h.useRef(null),f=(0,v.s)(t,e=>u(e)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(n){let e=function(e){if(p.paused||!l)return;let t=e.target;l.contains(t)?d.current=t:I(d.current,{select:!0})},t=function(e){if(p.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||I(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&I(l)});return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,l,p.paused]),h.useEffect(()=>{if(l){O.add(p);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(A,j);l.addEventListener(A,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(I(n,{select:t}),document.activeElement!==r)return}(D(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&I(l))}return()=>{l.removeEventListener(A,c),setTimeout(()=>{let t=new CustomEvent(S,j);l.addEventListener(S,s),l.dispatchEvent(t),t.defaultPrevented||I(e??document.body,{select:!0}),l.removeEventListener(S,s),O.remove(p)},0)}}},[l,c,s,p]);let m=h.useCallback(e=>{if(!r&&!n||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var a;let t,n=e.currentTarget,[i,l]=[_(t=D(a=n),a),_(t.reverse(),a)];i&&l?e.shiftKey||o!==l?e.shiftKey&&o===i&&(e.preventDefault(),r&&I(l,{select:!0})):(e.preventDefault(),r&&I(i,{select:!0})):o===n&&e.preventDefault()}},[r,n,p.paused]);return(0,M.jsx)(w.sG.div,{tabIndex:-1,...i,ref:f,onKeyDown:m})});function D(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function I(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}N.displayName="FocusScope";var O=(a=[],{add(e){let t=a[0];e!==t&&t?.pause(),(a=P(a,e)).unshift(e)},remove(e){a=P(a,e),a[0]?.resume()}});function P(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var T=r(30586),L=r(38553),K=r(25249),F=r(98386),W=r(92119),B=Symbol("radix.slottable");function G(e){return h.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===B}var z=new WeakMap,V=new WeakMap,U={},H=0,X=function(e){return e&&(e.host||X(e.parentNode))},Z=function(e,t,r,n){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=X(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});U[r]||(U[r]=new WeakMap);var a=U[r],i=[],l=new Set,u=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))s(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,u=(z.get(e)||0)+1,c=(a.get(e)||0)+1;z.set(e,u),a.set(e,c),i.push(e),1===u&&o&&V.set(e,!0),1===c&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),l.clear(),H++,function(){i.forEach(function(e){var t=z.get(e)-1,o=a.get(e)-1;z.set(e,t),a.set(e,o),t||(V.has(e)||e.removeAttribute(n),V.delete(e)),o||e.removeAttribute(r)}),--H||(z=new WeakMap,z=new WeakMap,V=new WeakMap,U={})}},$=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Z(n,o,r,"aria-hidden")):function(){return null}},q=function(){return(q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Y(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var J=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),Q="width-before-scroll-bar";function ee(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var et="u">typeof window?h.useLayoutEffect:h.useEffect,er=new WeakMap,en=(void 0===l&&(l={}),(void 0===u&&(u=function(e){return e}),c=[],s=!1,d={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:null},useMedium:function(e){var t=u(e,s);return c.push(t),function(){c=c.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;c.length;){var t=c;c=[],t.forEach(e)}c={push:function(t){return e(t)},filter:function(){return c}}},assignMedium:function(e){s=!0;var t=[];if(c.length){var r=c;c=[],r.forEach(e),t=c}var n=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(n)};o(),c={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),c}}}}).options=q({async:!0,ssr:!1},l),d),eo=function(){},ea=h.forwardRef(function(e,t){var r,n,o,a,i=h.useRef(null),l=h.useState({onScrollCapture:eo,onWheelCapture:eo,onTouchMoveCapture:eo}),u=l[0],c=l[1],s=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,v=e.shards,y=e.sideCar,g=e.noRelative,w=e.noIsolation,b=e.inert,x=e.allowPinchZoom,E=e.as,C=e.gapMode,R=Y(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(r=[i,t],n=function(e){return r.forEach(function(t){return ee(t,e)})},(o=(0,h.useState)(function(){return{value:null,callback:n,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=n,a=o.facade,et(function(){var e=er.get(a);if(e){var t=new Set(e),n=new Set(r),o=a.current;t.forEach(function(e){n.has(e)||ee(e,null)}),n.forEach(function(e){t.has(e)||ee(e,o)})}er.set(a,r)},[r]),a),M=q(q({},R),u);return h.createElement(h.Fragment,null,m&&h.createElement(y,{sideCar:en,removeScrollBar:p,shards:v,noRelative:g,noIsolation:w,inert:b,setCallbacks:c,allowPinchZoom:!!x,lockRef:i,gapMode:C}),s?h.cloneElement(h.Children.only(d),q(q({},M),{ref:k})):h.createElement(void 0===E?"div":E,q({},M,{className:f,ref:k}),d))});ea.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ea.classNames={fullWidth:Q,zeroRight:J};var ei=function(e){var t=e.sideCar,r=Y(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return h.createElement(n,q({},r))};ei.isSideCarExport=!0;var el=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=p||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eu=function(){var e=el();return function(t,r){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ec=function(){var e=eu();return function(t){return e(t.styles,t.dynamic),null}},es={left:0,top:0,right:0,gap:0},ed=function(e){return parseInt(e||"",10)||0},ef=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ed(r),ed(n),ed(o)]},ep=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return es;var t=ef(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},eh=ec(),em="data-scroll-locked",ev=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(em,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(J," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(Q," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(J," .").concat(J," {\n right: 0 ").concat(n,";\n }\n \n .").concat(Q," .").concat(Q," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(em,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},ey=function(){var e=parseInt(document.body.getAttribute(em)||"0",10);return isFinite(e)?e:0},eg=function(){h.useEffect(function(){return document.body.setAttribute(em,(ey()+1).toString()),function(){var e=ey()-1;e<=0?document.body.removeAttribute(em):document.body.setAttribute(em,e.toString())}},[])},ew=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;eg();var a=h.useMemo(function(){return ep(o)},[o]);return h.createElement(eh,{styles:ev(a,!t,o,r?"":"!important")})},eb=!1;if("u">typeof window)try{var ex=Object.defineProperty({},"passive",{get:function(){return eb=!0,!0}});window.addEventListener("test",ex,ex),window.removeEventListener("test",ex,ex)}catch(e){eb=!1}var eE=!!eb&&{passive:!1},eC=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},eR=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),ek(e,n)){var o=eM(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},ek=function(e,t){return"v"===e?eC(t,"overflowY"):eC(t,"overflowX")},eM=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eA=function(e,t,r,n,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*n,u=r.target,c=t.contains(u),s=!1,d=l>0,f=0,p=0;do{if(!u)break;var h=eM(e,u),m=h[0],v=h[1]-h[2]-i*m;(m||v)&&ek(e,u)&&(f+=v,p+=m);var y=u.parentNode;u=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},eS=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ej=function(e){return[e.deltaX,e.deltaY]},eN=function(e){return e&&"current"in e?e.current:e},eD=0,e_=[];let eI=(f=function(e){var t=h.useRef([]),r=h.useRef([0,0]),n=h.useRef(),o=h.useState(eD++)[0],a=h.useState(ec)[0],i=h.useRef(e);h.useEffect(function(){i.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(eN),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=eS(e),l=r.current,u="deltaX"in e?e.deltaX:l[0]-a[0],c="deltaY"in e?e.deltaY:l[1]-a[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var h=eR(d,s);if(!h)return!0;if(h?o=d:(o="v"===d?"h":"v",h=eR(d,s)),!h)return!1;if(!n.current&&"changedTouches"in e&&(u||c)&&(n.current=o),!o)return!0;var m=n.current||o;return eA(m,t,e,"h"===m?u:c,!0)},[]),u=h.useCallback(function(e){if(e_.length&&e_[e_.length-1]===a){var r="deltaY"in e?ej(e):eS(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var o=(i.current.shards||[]).map(eN).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=h.useCallback(function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),s=h.useCallback(function(e){r.current=eS(e),n.current=void 0},[]),d=h.useCallback(function(t){c(t.type,ej(t),t.target,l(t,e.lockRef.current))},[]),f=h.useCallback(function(t){c(t.type,eS(t),t.target,l(t,e.lockRef.current))},[]);h.useEffect(function(){return e_.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,eE),document.addEventListener("touchmove",u,eE),document.addEventListener("touchstart",s,eE),function(){e_=e_.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,eE),document.removeEventListener("touchmove",u,eE),document.removeEventListener("touchstart",s,eE)}},[]);var p=e.removeScrollBar,m=e.inert;return h.createElement(h.Fragment,null,m?h.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?h.createElement(ew,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},en.useMedium(f),ei);var eO=h.forwardRef(function(e,t){return h.createElement(ea,q({},e,{ref:t,sideCar:eI}))});eO.classNames=ea.classNames;var eP=["Enter"," "],eT=["ArrowUp","PageDown","End"],eL=["ArrowDown","PageUp","Home",...eT],eK={ltr:[...eP,"ArrowRight"],rtl:[...eP,"ArrowLeft"]},eF={ltr:["ArrowLeft"],rtl:["ArrowRight"]},eW="Menu",[eB,eG,ez]=(0,b.N)(eW),[eV,eU]=(0,y.A)(eW,[ez,L.Bk,W.RG]),eH=(0,L.Bk)(),eX=(0,W.RG)(),[eZ,e$]=eV(eW),[eq,eY]=eV(eW),eJ=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:i=!0}=e,l=eH(t),[u,c]=h.useState(null),s=h.useRef(!1),d=(0,k.c)(a),f=(0,x.jH)(o);return h.useEffect(()=>{let e=()=>{s.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>s.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,M.jsx)(L.bL,{...l,children:(0,M.jsx)(eZ,{scope:t,open:r,onOpenChange:d,content:u,onContentChange:c,children:(0,M.jsx)(eq,{scope:t,onClose:h.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:s,dir:f,modal:i,children:n})})})};eJ.displayName=eW;var eQ=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=eH(r);return(0,M.jsx)(L.Mz,{...o,...n,ref:t})});eQ.displayName="MenuAnchor";var e0="MenuPortal",[e1,e2]=eV(e0,{forceMount:void 0}),e5=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=e$(e0,t);return(0,M.jsx)(e1,{scope:t,forceMount:r,children:(0,M.jsx)(F.C,{present:r||a.open,children:(0,M.jsx)(K.Z,{asChild:!0,container:o,children:n})})})};e5.displayName=e0;var e4="MenuContent",[e6,e3]=eV(e4),e9=h.forwardRef((e,t)=>{let r=e2(e4,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=e$(e4,e.__scopeMenu),i=eY(e4,e.__scopeMenu);return(0,M.jsx)(eB.Provider,{scope:e.__scopeMenu,children:(0,M.jsx)(F.C,{present:n||a.open,children:(0,M.jsx)(eB.Slot,{scope:e.__scopeMenu,children:i.modal?(0,M.jsx)(e7,{...o,ref:t}):(0,M.jsx)(e8,{...o,ref:t})})})})}),e7=h.forwardRef((e,t)=>{let r=e$(e4,e.__scopeMenu),n=h.useRef(null),o=(0,v.s)(t,n);return h.useEffect(()=>{let e=n.current;if(e)return $(e)},[]),(0,M.jsx)(tt,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,m.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),e8=h.forwardRef((e,t)=>{let r=e$(e4,e.__scopeMenu);return(0,M.jsx)(tt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),te=((i=h.forwardRef((e,t)=>{let{children:r,...n}=e;if(h.isValidElement(r)){var o;let e,a,i=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),l=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}}(n,r.props);return r.type!==h.Fragment&&(l.ref=t?(0,v.t)(t,i):i),h.cloneElement(r,l)}return h.Children.count(r)>1?h.Children.only(null):null})).displayName="MenuContent.ScrollLock.SlotClone",n=i,(o=h.forwardRef((e,t)=>{let{children:r,...o}=e,a=h.Children.toArray(r),i=a.find(G);if(i){let e=i.props.children,r=a.map(t=>t!==i?t:h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null);return(0,M.jsx)(n,{...o,ref:t,children:h.isValidElement(e)?h.cloneElement(e,void 0,r):null})}return(0,M.jsx)(n,{...o,ref:t,children:r})})).displayName="MenuContent.ScrollLock.Slot",o),tt=h.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:y,...g}=e,w=e$(e4,r),b=eY(e4,r),x=eH(r),k=eX(r),A=eG(r),[S,j]=h.useState(null),D=h.useRef(null),_=(0,v.s)(t,D,w.onContentChange),I=h.useRef(0),O=h.useRef(""),P=h.useRef(0),T=h.useRef(null),K=h.useRef("right"),F=h.useRef(0),B=y?eO:h.Fragment;h.useEffect(()=>()=>window.clearTimeout(I.current),[]),h.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??R()),document.body.insertAdjacentElement("beforeend",e[1]??R()),C++,()=>{1===C&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),C--}},[]);let G=h.useCallback(e=>{var t,r;return K.current===T.current?.side&&(t=e,!!(r=T.current?.area)&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e],l=t[a],u=i.x,c=i.y,s=l.x,d=l.y;c>n!=d>n&&r<(s-u)*(n-c)/(d-c)+u&&(o=!o)}return o}({x:t.clientX,y:t.clientY},r))},[]);return(0,M.jsx)(e6,{scope:r,searchRef:O,onItemEnter:h.useCallback(e=>{G(e)&&e.preventDefault()},[G]),onItemLeave:h.useCallback(e=>{G(e)||(D.current?.focus(),j(null))},[G]),onTriggerLeave:h.useCallback(e=>{G(e)&&e.preventDefault()},[G]),pointerGraceTimerRef:P,onPointerGraceIntentChange:h.useCallback(e=>{T.current=e},[]),children:(0,M.jsx)(B,{...y?{as:te,allowPinchZoom:!0}:void 0,children:(0,M.jsx)(N,{asChild:!0,trapped:o,onMountAutoFocus:(0,m.mK)(a,e=>{e.preventDefault(),D.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,M.jsx)(E.qW,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,M.jsx)(W.bL,{asChild:!0,...k,dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:j,onEntryFocus:(0,m.mK)(u,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,M.jsx)(L.UC,{role:"menu","aria-orientation":"vertical","data-state":tA(w.open),"data-radix-menu-content":"",dir:b.dir,...x,...g,ref:_,style:{outline:"none",...g.style},onKeyDown:(0,m.mK)(g.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;if(t){var o;let t,a,i,l,u,c;"Tab"===e.key&&e.preventDefault(),!r&&n&&(o=e.key,t=O.current+o,a=A().filter(e=>!e.disabled),i=document.activeElement,l=a.find(e=>e.ref.current===i)?.textValue,u=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=r?e.indexOf(r):-1,i=(n=Math.max(a,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(i=i.filter(e=>e!==r));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}(a.map(e=>e.textValue),t,l),c=a.find(e=>e.textValue===u)?.ref.current,function e(t){O.current=t,window.clearTimeout(I.current),""!==t&&(I.current=window.setTimeout(()=>e(""),1e3))}(t),c&&setTimeout(()=>c.focus()))}let a=D.current;if(e.target!==a||!eL.includes(e.key))return;e.preventDefault();let i=A().filter(e=>!e.disabled).map(e=>e.ref.current);eT.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,m.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(I.current),O.current="")}),onPointerMove:(0,m.mK)(e.onPointerMove,tN(e=>{let t=e.target,r=F.current!==e.clientX;e.currentTarget.contains(t)&&r&&(K.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});e9.displayName=e4;var tr=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,M.jsx)(w.sG.div,{role:"group",...n,ref:t})});tr.displayName="MenuGroup";var tn=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,M.jsx)(w.sG.div,{...n,ref:t})});tn.displayName="MenuLabel";var to="MenuItem",ta="menu.itemSelect",ti=h.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,a=h.useRef(null),i=eY(to,e.__scopeMenu),l=e3(to,e.__scopeMenu),u=(0,v.s)(t,a),c=h.useRef(!1);return(0,M.jsx)(tl,{...o,ref:u,disabled:r,onClick:(0,m.mK)(e.onClick,()=>{let e=a.current;if(!r&&e){let t=new CustomEvent(ta,{bubbles:!0,cancelable:!0});e.addEventListener(ta,e=>n?.(e),{once:!0}),(0,w.hO)(e,t),t.defaultPrevented?c.current=!1:i.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),c.current=!0},onPointerUp:(0,m.mK)(e.onPointerUp,e=>{c.current||e.currentTarget?.click()}),onKeyDown:(0,m.mK)(e.onKeyDown,e=>{let t=""!==l.searchRef.current;r||t&&" "===e.key||eP.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ti.displayName=to;var tl=h.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=e3(to,r),l=eX(r),u=h.useRef(null),c=(0,v.s)(t,u),[s,d]=h.useState(!1),[f,p]=h.useState("");return h.useEffect(()=>{let e=u.current;e&&p((e.textContent??"").trim())},[a.children]),(0,M.jsx)(eB.ItemSlot,{scope:r,disabled:n,textValue:o??f,children:(0,M.jsx)(W.q7,{asChild:!0,...l,focusable:!n,children:(0,M.jsx)(w.sG.div,{role:"menuitem","data-highlighted":s?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:c,onPointerMove:(0,m.mK)(e.onPointerMove,tN(e=>{n?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,m.mK)(e.onPointerLeave,tN(e=>i.onItemLeave(e))),onFocus:(0,m.mK)(e.onFocus,()=>d(!0)),onBlur:(0,m.mK)(e.onBlur,()=>d(!1))})})})}),tu=h.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,M.jsx)(tv,{scope:e.__scopeMenu,checked:r,children:(0,M.jsx)(ti,{role:"menuitemcheckbox","aria-checked":tS(r)?"mixed":r,...o,ref:t,"data-state":tj(r),onSelect:(0,m.mK)(o.onSelect,()=>n?.(!!tS(r)||!r),{checkForDefaultPrevented:!1})})})});tu.displayName="MenuCheckboxItem";var tc="MenuRadioGroup",[ts,td]=eV(tc,{value:void 0,onValueChange:()=>{}}),tf=h.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=(0,k.c)(n);return(0,M.jsx)(ts,{scope:e.__scopeMenu,value:r,onValueChange:a,children:(0,M.jsx)(tr,{...o,ref:t})})});tf.displayName=tc;var tp="MenuRadioItem",th=h.forwardRef((e,t)=>{let{value:r,...n}=e,o=td(tp,e.__scopeMenu),a=r===o.value;return(0,M.jsx)(tv,{scope:e.__scopeMenu,checked:a,children:(0,M.jsx)(ti,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":tj(a),onSelect:(0,m.mK)(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});th.displayName=tp;var tm="MenuItemIndicator",[tv,ty]=eV(tm,{checked:!1}),tg=h.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=ty(tm,r);return(0,M.jsx)(F.C,{present:n||tS(a.checked)||!0===a.checked,children:(0,M.jsx)(w.sG.span,{...o,ref:t,"data-state":tj(a.checked)})})});tg.displayName=tm;var tw=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,M.jsx)(w.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});tw.displayName="MenuSeparator";var tb=h.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=eH(r);return(0,M.jsx)(L.i3,{...o,...n,ref:t})});tb.displayName="MenuArrow";var[tx,tE]=eV("MenuSub"),tC="MenuSubTrigger",tR=h.forwardRef((e,t)=>{let r=e$(tC,e.__scopeMenu),n=eY(tC,e.__scopeMenu),o=tE(tC,e.__scopeMenu),a=e3(tC,e.__scopeMenu),i=h.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=a,c={__scopeMenu:e.__scopeMenu},s=h.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return h.useEffect(()=>s,[s]),h.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]),(0,M.jsx)(eQ,{asChild:!0,...c,children:(0,M.jsx)(tl,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":tA(r.open),...e,ref:(0,v.t)(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,m.mK)(e.onPointerMove,tN(t=>{a.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||i.current||(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),s()},100)))})),onPointerLeave:(0,m.mK)(e.onPointerLeave,tN(e=>{s();let t=r.content?.getBoundingClientRect();if(t){let n=r.content?.dataset.side,o="right"===n,i=t[o?"left":"right"],u=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:i,y:t.top},{x:u,y:t.top},{x:u,y:t.bottom},{x:i,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,m.mK)(e.onKeyDown,t=>{let o=""!==a.searchRef.current;e.disabled||o&&" "===t.key||eK[n.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});tR.displayName=tC;var tk="MenuSubContent",tM=h.forwardRef((e,t)=>{let r=e2(e4,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=e$(e4,e.__scopeMenu),i=eY(e4,e.__scopeMenu),l=tE(tk,e.__scopeMenu),u=h.useRef(null),c=(0,v.s)(t,u);return(0,M.jsx)(eB.Provider,{scope:e.__scopeMenu,children:(0,M.jsx)(F.C,{present:n||a.open,children:(0,M.jsx)(eB.Slot,{scope:e.__scopeMenu,children:(0,M.jsx)(tt,{id:l.contentId,"aria-labelledby":l.triggerId,...o,ref:c,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,m.mK)(e.onFocusOutside,e=>{e.target!==l.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,m.mK)(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:(0,m.mK)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=eF[i.dir].includes(e.key);t&&r&&(a.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function tA(e){return e?"open":"closed"}function tS(e){return"indeterminate"===e}function tj(e){return tS(e)?"indeterminate":e?"checked":"unchecked"}function tN(e){return t=>"mouse"===t.pointerType?e(t):void 0}tM.displayName=tk;var tD="DropdownMenu",[t_,tI]=(0,y.A)(tD,[eU]),tO=eU(),[tP,tT]=t_(tD),tL=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:i,modal:l=!0}=e,u=tO(t),c=h.useRef(null),[s,d]=(0,g.i)({prop:o,defaultProp:a??!1,onChange:i,caller:tD});return(0,M.jsx)(tP,{scope:t,triggerId:(0,T.B)(),triggerRef:c,contentId:(0,T.B)(),open:s,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(e=>!e),[d]),modal:l,children:(0,M.jsx)(eJ,{...u,open:s,onOpenChange:d,dir:n,modal:l,children:r})})};tL.displayName=tD;var tK="DropdownMenuTrigger",tF=h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=tT(tK,r),i=tO(r);return(0,M.jsx)(eQ,{asChild:!0,...i,children:(0,M.jsx)(w.sG.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:(0,v.t)(t,a.triggerRef),onPointerDown:(0,m.mK)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,m.mK)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});tF.displayName=tK;var tW=e=>{let{__scopeDropdownMenu:t,...r}=e,n=tO(t);return(0,M.jsx)(e5,{...n,...r})};tW.displayName="DropdownMenuPortal";var tB="DropdownMenuContent",tG=h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tT(tB,r),a=tO(r),i=h.useRef(!1);return(0,M.jsx)(e9,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:(0,m.mK)(e.onCloseAutoFocus,e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,m.mK)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!o.modal||n)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tG.displayName=tB,h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tr,{...o,...n,ref:t})}).displayName="DropdownMenuGroup",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tn,{...o,...n,ref:t})}).displayName="DropdownMenuLabel";var tz=h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(ti,{...o,...n,ref:t})});tz.displayName="DropdownMenuItem",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tu,{...o,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tf,{...o,...n,ref:t})}).displayName="DropdownMenuRadioGroup",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(th,{...o,...n,ref:t})}).displayName="DropdownMenuRadioItem",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tg,{...o,...n,ref:t})}).displayName="DropdownMenuItemIndicator";var tV=h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tw,{...o,...n,ref:t})});tV.displayName="DropdownMenuSeparator",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tb,{...o,...n,ref:t})}).displayName="DropdownMenuArrow",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tR,{...o,...n,ref:t})}).displayName="DropdownMenuSubTrigger",h.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=tO(r);return(0,M.jsx)(tM,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var tU=tL,tH=tF,tX=tW,tZ=tG,t$=tz,tq=tV},58299:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},59706:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("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"}]])},60527:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("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"}]])},63322:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},78347:(e,t,r)=>{let n,o,a;r.d(t,{DX:()=>p});var i,l=r(7620),u=r(33670),c=r(54568),s=Symbol.for("react.lazy"),d=(i||(i=r.t(l,2)))[" use ".trim().toString()];function f(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var p=((a=l.forwardRef((e,t)=>{let{children:r,...n}=e;if(f(r)&&"function"==typeof d&&(r=d(r._payload)),l.isValidElement(r)){var o;let e,a,i=(o=r,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),c=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}}(n,r.props);return r.type!==l.Fragment&&(c.ref=t?(0,u.t)(t,i):i),l.cloneElement(r,c)}return l.Children.count(r)>1?l.Children.only(null):null})).displayName="Slot.SlotClone",n=a,(o=l.forwardRef((e,t)=>{let{children:r,...o}=e;f(r)&&"function"==typeof d&&(r=d(r._payload));let a=l.Children.toArray(r),i=a.find(m);if(i){let e=i.props.children,r=a.map(t=>t!==i?t:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,c.jsx)(n,{...o,ref:t,children:l.isValidElement(e)?l.cloneElement(e,void 0,r):null})}return(0,c.jsx)(n,{...o,ref:t,children:r})})).displayName="Slot.Slot",o),h=Symbol("radix.slottable");function m(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}},81167:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("laptop",[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]])},87242:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(13454).A)("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]])},92119:(e,t,r)=>{r.d(t,{RG:()=>x,bL:()=>N,q7:()=>D});var n=r(7620),o=r(37188),a=r(35752),i=r(33670),l=r(55556),u=r(30586),c=r(59947),s=r(55222),d=r(3198),f=r(22130),p=r(54568),h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[y,g,w]=(0,a.N)(v),[b,x]=(0,l.A)(v,[w]),[E,C]=b(v),R=n.forwardRef((e,t)=>(0,p.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(k,{...e,ref:t})})}));R.displayName=v;var k=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:a,loop:l=!1,dir:u,currentTabStopId:y,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:b,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...R}=e,k=n.useRef(null),M=(0,i.s)(t,k),A=(0,f.jH)(u),[S,N]=(0,d.i)({prop:y,defaultProp:w??null,onChange:b,caller:v}),[D,_]=n.useState(!1),I=(0,s.c)(x),O=g(r),P=n.useRef(!1),[T,L]=n.useState(0);return n.useEffect(()=>{let e=k.current;if(e)return e.addEventListener(h,I),()=>e.removeEventListener(h,I)},[I]),(0,p.jsx)(E,{scope:r,orientation:a,dir:A,loop:l,currentTabStopId:S,onItemFocus:n.useCallback(e=>N(e),[N]),onItemShiftTab:n.useCallback(()=>_(!0),[]),onFocusableItemAdd:n.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>L(e=>e-1),[]),children:(0,p.jsx)(c.sG.div,{tabIndex:D||0===T?-1:0,"data-orientation":a,...R,ref:M,style:{outline:"none",...e.style},onMouseDown:(0,o.mK)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,o.mK)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=O().filter(e=>e.focusable);j([e.find(e=>e.active),e.find(e=>e.id===S),...e].filter(Boolean).map(e=>e.ref.current),C)}}P.current=!1}),onBlur:(0,o.mK)(e.onBlur,()=>_(!1))})})}),M="RovingFocusGroupItem",A=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:a=!0,active:i=!1,tabStopId:l,children:s,...d}=e,f=(0,u.B)(),h=l||f,m=C(M,r),v=m.currentTabStopId===h,w=g(r),{onFocusableItemAdd:b,onFocusableItemRemove:x,currentTabStopId:E}=m;return n.useEffect(()=>{if(a)return b(),()=>x()},[a,b,x]),(0,p.jsx)(y.ItemSlot,{scope:r,id:h,focusable:a,active:i,children:(0,p.jsx)(c.sG.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...d,ref:t,onMouseDown:(0,o.mK)(e.onMouseDown,e=>{a?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,o.mK)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var 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 S[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=w().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=m.loop?(r=o,n=a+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(a+1)}setTimeout(()=>j(o))}}),children:"function"==typeof s?s({isCurrentTabStop:v,hasTabStop:null!=E}):s})})});A.displayName=M;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function j(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var N=R,D=A}}]);
|