vxui-react 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/README.en.md +205 -0
  2. package/README.md +17 -8
  3. package/dist/404.html +18 -0
  4. package/dist/_redirects +1 -0
  5. package/dist/colorful_flat_icon.ico +0 -0
  6. package/dist/colorful_flat_icon.svg +46 -0
  7. package/dist/index.cjs +23 -23
  8. package/dist/index.d.ts +1 -1
  9. package/dist/index.js +1831 -1661
  10. package/dist/{components → src/components}/AppShell.d.ts +2 -1
  11. package/dist/{components → src/components}/Button.d.ts +8 -2
  12. package/dist/{components → src/components}/Card.d.ts +12 -1
  13. package/dist/src/components/Dialog.d.ts +21 -0
  14. package/dist/src/components/Input.d.ts +18 -0
  15. package/dist/src/components/SegmentedControl.d.ts +16 -0
  16. package/dist/{components → src/components}/Shell.d.ts +2 -1
  17. package/dist/src/components/Table.d.ts +37 -0
  18. package/dist/{lib → src/lib}/index.d.ts +2 -0
  19. package/dist/src/lib/version.d.ts +1 -0
  20. package/dist/{lib → src/lib}/viewport.d.ts +2 -0
  21. package/dist/vxui-react.css +1 -1
  22. package/package.json +2 -1
  23. package/dist/components/Dialog.d.ts +0 -11
  24. package/dist/components/Input.d.ts +0 -9
  25. package/dist/components/Table.d.ts +0 -26
  26. /package/dist/{components → src/components}/Accordion.d.ts +0 -0
  27. /package/dist/{components → src/components}/Alert.d.ts +0 -0
  28. /package/dist/{components → src/components}/AlertDialog.d.ts +0 -0
  29. /package/dist/{components → src/components}/Avatar.d.ts +0 -0
  30. /package/dist/{components → src/components}/Badge.d.ts +0 -0
  31. /package/dist/{components → src/components}/Breadcrumb.d.ts +0 -0
  32. /package/dist/{components → src/components}/Calendar.d.ts +0 -0
  33. /package/dist/{components → src/components}/Carousel.d.ts +0 -0
  34. /package/dist/{components → src/components}/Checkbox.d.ts +0 -0
  35. /package/dist/{components → src/components}/CodeBlock.d.ts +0 -0
  36. /package/dist/{components → src/components}/ColorPicker.d.ts +0 -0
  37. /package/dist/{components → src/components}/Combobox.d.ts +0 -0
  38. /package/dist/{components → src/components}/CommandPalette.d.ts +0 -0
  39. /package/dist/{components → src/components}/ContextMenu.d.ts +0 -0
  40. /package/dist/{components → src/components}/DatePicker.d.ts +0 -0
  41. /package/dist/{components → src/components}/DropdownMenu.d.ts +0 -0
  42. /package/dist/{components → src/components}/EmptyState.d.ts +0 -0
  43. /package/dist/{components → src/components}/FileUpload.d.ts +0 -0
  44. /package/dist/{components → src/components}/Form.d.ts +0 -0
  45. /package/dist/{components → src/components}/Heading.d.ts +0 -0
  46. /package/dist/{components → src/components}/HoverCard.d.ts +0 -0
  47. /package/dist/{components → src/components}/Label.d.ts +0 -0
  48. /package/dist/{components → src/components}/LanguageSwitcher.d.ts +0 -0
  49. /package/dist/{components → src/components}/Menubar.d.ts +0 -0
  50. /package/dist/{components → src/components}/NavigationMenu.d.ts +0 -0
  51. /package/dist/{components → src/components}/NumberInput.d.ts +0 -0
  52. /package/dist/{components → src/components}/Pagination.d.ts +0 -0
  53. /package/dist/{components → src/components}/Popover.d.ts +0 -0
  54. /package/dist/{components → src/components}/Progress.d.ts +0 -0
  55. /package/dist/{components → src/components}/Radio.d.ts +0 -0
  56. /package/dist/{components → src/components}/Rating.d.ts +0 -0
  57. /package/dist/{components → src/components}/Resizable.d.ts +0 -0
  58. /package/dist/{components → src/components}/Responsive.d.ts +0 -0
  59. /package/dist/{components → src/components}/ScrollArea.d.ts +0 -0
  60. /package/dist/{components → src/components}/Select.d.ts +0 -0
  61. /package/dist/{components → src/components}/Separator.d.ts +0 -0
  62. /package/dist/{components → src/components}/Sheet.d.ts +0 -0
  63. /package/dist/{components → src/components}/Skeleton.d.ts +0 -0
  64. /package/dist/{components → src/components}/Slider.d.ts +0 -0
  65. /package/dist/{components → src/components}/Spinner.d.ts +0 -0
  66. /package/dist/{components → src/components}/Stepper.d.ts +0 -0
  67. /package/dist/{components → src/components}/Switch.d.ts +0 -0
  68. /package/dist/{components → src/components}/Tabs.d.ts +0 -0
  69. /package/dist/{components → src/components}/TagInput.d.ts +0 -0
  70. /package/dist/{components → src/components}/Text.d.ts +0 -0
  71. /package/dist/{components → src/components}/Textarea.d.ts +0 -0
  72. /package/dist/{components → src/components}/ThemeProvider.d.ts +0 -0
  73. /package/dist/{components → src/components}/Timeline.d.ts +0 -0
  74. /package/dist/{components → src/components}/Toast.d.ts +0 -0
  75. /package/dist/{components → src/components}/Toggle.d.ts +0 -0
  76. /package/dist/{components → src/components}/Tooltip.d.ts +0 -0
  77. /package/dist/{components → src/components}/TreeView.d.ts +0 -0
  78. /package/dist/{components → src/components}/mobile/ActionSheet.d.ts +0 -0
  79. /package/dist/{components → src/components}/mobile/BottomNav.d.ts +0 -0
  80. /package/dist/{components → src/components}/mobile/MobileApp.d.ts +0 -0
  81. /package/dist/{components → src/components}/mobile/MobileDrawer.d.ts +0 -0
  82. /package/dist/{components → src/components}/mobile/MobileList.d.ts +0 -0
  83. /package/dist/{components → src/components}/mobile/MobilePreviewPage.d.ts +0 -0
  84. /package/dist/{components → src/components}/mobile/MobileShell.d.ts +0 -0
  85. /package/dist/{components → src/components}/pages/ErrorPage.d.ts +0 -0
  86. /package/dist/{components → src/components}/pages/HomePage.d.ts +0 -0
  87. /package/dist/{components → src/components}/pages/LoginPage.d.ts +0 -0
  88. /package/dist/{components → src/components}/pages/PrivacyPolicyPage.d.ts +0 -0
  89. /package/dist/{components → src/components}/pages/RegisterPage.d.ts +0 -0
  90. /package/dist/{components → src/components}/pages/TermsOfServicePage.d.ts +0 -0
  91. /package/dist/{components → src/components}/pages/homePageContent.d.ts +0 -0
  92. /package/dist/{components → src/components}/pages/legalPageContent.d.ts +0 -0
  93. /package/dist/{lib → src/lib}/cx.d.ts +0 -0
package/dist/index.cjs CHANGED
@@ -1,80 +1,80 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),N=require("react"),qt=require("react-dom");function Xt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const x=Xt(N),Zt=Xt(qt),Lr=767,Mr=1023;function St(){if(typeof window>"u")return"desktop";const e=window.innerWidth;return e<=Lr?"phone":e<=Mr?"tablet":"desktop"}const Qt=N.createContext({viewport:"desktop",isPhone:!1,isTablet:!1,isDesktop:!0});function Or({children:e}){const[t,n]=N.useState(St);N.useEffect(()=>{const s=()=>{const o=St();n(l=>l===o?l:o)};return window.addEventListener("resize",s,{passive:!0}),()=>window.removeEventListener("resize",s)},[]);const a={viewport:t,isPhone:t==="phone",isTablet:t==="tablet",isDesktop:t==="desktop"};return r.jsx(Qt.Provider,{value:a,children:e})}function rt(){return N.useContext(Qt)}function $r({desktop:e,mobile:t,tablet:n}){const{viewport:a}=rt();return a==="phone"?r.jsx(r.Fragment,{children:t}):a==="tablet"?r.jsx(r.Fragment,{children:n??e}):r.jsx(r.Fragment,{children:e})}/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),k=require("react"),Zt=require("react-dom");function Qt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const x=Qt(k),Jt=Qt(Zt),Or=767,$r=1023;function Nt(){if(typeof window>"u")return"desktop";const e=window.innerWidth;return e<=Or?"phone":e<=$r?"tablet":"desktop"}const en=k.createContext({viewport:"desktop",isPhone:!1,isTablet:!1,isTabletPortrait:!1,isDesktop:!0});function jt(){return typeof window>"u"?!1:window.innerHeight>window.innerWidth}function Br({children:e}){const[t,n]=k.useState(Nt),[a,s]=k.useState(jt);k.useEffect(()=>{const i=()=>{const u=Nt();n(d=>d===u?d:u);const c=jt();s(d=>d===c?d:c)};return window.addEventListener("resize",i,{passive:!0}),()=>window.removeEventListener("resize",i)},[]);const o=t==="tablet",l={viewport:t,isPhone:t==="phone",isTablet:o,isTabletPortrait:o&&a,isDesktop:t==="desktop"};return r.jsx(en.Provider,{value:l,children:e})}function at(){return k.useContext(en)}function zr({desktop:e,mobile:t,tablet:n}){const{viewport:a}=at();return a==="phone"?r.jsx(r.Fragment,{children:t}):a==="tablet"?r.jsx(r.Fragment,{children:n??e}):r.jsx(r.Fragment,{children:e})}/**
2
2
  * @license lucide-react v0.511.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const Br=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase()),Nt=e=>{const t=zr(e);return t.charAt(0).toUpperCase()+t.slice(1)},Jt=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim(),Ur=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
6
+ */const Ur=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase()),Et=e=>{const t=Hr(e);return t.charAt(0).toUpperCase()+t.slice(1)},tn=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim(),Wr=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
7
7
  * @license lucide-react v0.511.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */var Hr={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"};/**
11
+ */var Gr={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"};/**
12
12
  * @license lucide-react v0.511.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const Wr=N.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:l,...i},u)=>N.createElement("svg",{ref:u,...Hr,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:Jt("lucide",s),...!o&&!Ur(i)&&{"aria-hidden":"true"},...i},[...l.map(([c,d])=>N.createElement(c,d)),...Array.isArray(o)?o:[o]]));/**
16
+ */const Vr=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:s="",children:o,iconNode:l,...i},u)=>k.createElement("svg",{ref:u,...Gr,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:tn("lucide",s),...!o&&!Wr(i)&&{"aria-hidden":"true"},...i},[...l.map(([c,d])=>k.createElement(c,d)),...Array.isArray(o)?o:[o]]));/**
17
17
  * @license lucide-react v0.511.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const G=(e,t)=>{const n=N.forwardRef(({className:a,...s},o)=>N.createElement(Wr,{ref:o,iconNode:t,className:Jt(`lucide-${Br(Nt(e))}`,`lucide-${e}`,a),...s}));return n.displayName=Nt(e),n};/**
21
+ */const G=(e,t)=>{const n=k.forwardRef(({className:a,...s},o)=>k.createElement(Vr,{ref:o,iconNode:t,className:tn(`lucide-${Ur(Et(e))}`,`lucide-${e}`,a),...s}));return n.displayName=Et(e),n};/**
22
22
  * @license lucide-react v0.511.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
25
25
  * See the LICENSE file in the root directory of this source tree.
26
- */const Gr=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],at=G("check",Gr);/**
26
+ */const Kr=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],st=G("check",Kr);/**
27
27
  * @license lucide-react v0.511.0 - ISC
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const Kr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],st=G("chevron-down",Kr);/**
31
+ */const qr=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ot=G("chevron-down",qr);/**
32
32
  * @license lucide-react v0.511.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const Vr=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],en=G("chevron-left",Vr);/**
36
+ */const Yr=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],nn=G("chevron-left",Yr);/**
37
37
  * @license lucide-react v0.511.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
41
- */const Yr=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Pe=G("chevron-right",Yr);/**
41
+ */const Xr=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Re=G("chevron-right",Xr);/**
42
42
  * @license lucide-react v0.511.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const qr=[["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"}]],Xr=G("copy",qr);/**
46
+ */const Zr=[["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"}]],Qr=G("copy",Zr);/**
47
47
  * @license lucide-react v0.511.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const Zr=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],Qr=G("file",Zr);/**
51
+ */const Jr=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],ea=G("file",Jr);/**
52
52
  * @license lucide-react v0.511.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const Jr=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],ea=G("globe",Jr);/**
56
+ */const ta=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],na=G("globe",ta);/**
57
57
  * @license lucide-react v0.511.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const ta=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],tn=G("panel-left-close",ta);/**
61
+ */const ra=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],rn=G("panel-left-close",ra);/**
62
62
  * @license lucide-react v0.511.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const na=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],nn=G("panel-left-open",na);/**
66
+ */const aa=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],an=G("panel-left-open",aa);/**
67
67
  * @license lucide-react v0.511.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const ra=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],aa=G("upload",ra);/**
71
+ */const sa=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],oa=G("upload",sa);/**
72
72
  * @license lucide-react v0.511.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const sa=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ie=G("x",sa);function E(...e){return e.filter(Boolean).join(" ")}const Q=N.forwardRef(function({className:t,variant:n="solid",size:a="md",shape:s="rect",fullWidth:o=!1,type:l="button",...i},u){return r.jsx("button",{ref:u,type:l,className:E("vx-button",`vx-button--${n}`,`vx-button--${a}`,s==="square"&&"vx-button--square",s==="pill"&&"vx-button--pill",o&&"vx-button--full-width",t),...i})});function rn(e,t){N.useEffect(()=>{const n=e.current,a=t.current;if(!n||!a)return;let s;const o=()=>{const c=a.scrollHeight>a.clientHeight+1;if(n.dataset.scrollable=c?"true":"false",!c){n.dataset.scrollbarState="hidden",n.style.setProperty("--vx-scrollbar-thumb-height","0px"),n.style.setProperty("--vx-scrollbar-thumb-offset","0px");return}const d=Math.max(n.clientHeight-16,0),p=Math.max(a.clientHeight/a.scrollHeight*d,36),b=a.scrollHeight-a.clientHeight,k=Math.max(d-p,0),j=b>0?a.scrollTop/b*k:0;n.style.setProperty("--vx-scrollbar-thumb-height",`${p}px`),n.style.setProperty("--vx-scrollbar-thumb-offset",`${j}px`),n.dataset.scrollbarState!=="active"&&(n.dataset.scrollbarState="hidden")},l=()=>{n.dataset.scrollable==="true"&&(n.dataset.scrollbarState="active",s!==void 0&&window.clearTimeout(s),s=window.setTimeout(()=>{n.dataset.scrollbarState="hidden"},640))},i=()=>{o(),l()};o(),a.addEventListener("scroll",i,{passive:!0});const u=new ResizeObserver(()=>o());return u.observe(n),u.observe(a),()=>{a.removeEventListener("scroll",i),u.disconnect(),s!==void 0&&window.clearTimeout(s)}},[])}function an({collapsed:e=!1,mobileNavOpen:t=!1,density:n,className:a,children:s}){const{isTablet:o}=rt();return r.jsx("div",{className:E("vx-shell",a),"data-collapsed":e,"data-nav-open":t,"data-tablet":o,"data-density":n,children:s})}function sn({brand:e="VXUI",brandCaption:t,brandIcon:n,collapsed:a=!1,footer:s,onToggle:o,collapseLabel:l="Collapse",expandLabel:i="Expand",children:u}){const c=N.useRef(null),d=N.useRef(null);return rn(c,d),r.jsxs("aside",{ref:c,className:"vx-sidebar vx-scroll-host","data-scrollable":"false","data-scrollbar-state":"hidden",children:[r.jsxs("div",{ref:p=>{d.current=p},className:"vx-sidebar__scroll vx-scroll-hide-native",children:[r.jsx("div",{className:"vx-sidebar__header",children:r.jsxs("div",{className:"vx-sidebar__brand",children:[n?r.jsx("span",{className:"vx-sidebar__brand-icon",children:n}):null,r.jsxs("div",{className:"vx-sidebar__brand-copy",children:[r.jsx("span",{className:"vx-sidebar__brand-text",children:e}),t?r.jsx("span",{className:"vx-sidebar__brand-caption",children:t}):null]})]})}),u,r.jsxs("div",{className:"vx-sidebar__footer",children:[s?r.jsx("div",{className:"vx-sidebar__footer-content",children:s}):null,o?r.jsxs(Q,{variant:"ghost",size:"sm",className:"vx-sidebar__toggle",onClick:o,"aria-label":a?i:l,children:[a?r.jsx(nn,{size:16}):r.jsx(tn,{size:16}),r.jsx("span",{className:"vx-sidebar__toggle-label",children:a?i:l})]}):null]})]}),r.jsx("span",{className:"vx-overlay-scrollbar","aria-hidden":"true",children:r.jsx("span",{className:"vx-overlay-scrollbar__thumb"})})]})}function on({label:e="Primary navigation",children:t}){return r.jsx("nav",{className:"vx-sidebar__nav","aria-label":e,children:t})}function ln({title:e,children:t}){return r.jsxs("div",{className:"vx-nav-section-block",children:[e?r.jsx("div",{className:"vx-nav-section-block__title",children:e}):null,r.jsx("div",{className:"vx-nav-section-block__items",children:t})]})}function cn({label:e,icon:t,badge:n,trailing:a,active:s,onSelect:o}){return r.jsxs("button",{type:"button",className:E("vx-nav-item",s&&"vx-nav-item--active"),onClick:o,children:[t?r.jsx("span",{className:"vx-nav-item__icon",children:t}):null,r.jsx("span",{className:"vx-nav-item__label",children:e}),n?r.jsx("span",{className:"vx-nav-item__badge",children:n}):null,a?r.jsx("span",{className:"vx-nav-item__trailing",children:a}):null]})}function un({onClose:e,closeLabel:t="Close sidebar"}){return r.jsx("button",{type:"button",className:"vx-shell__overlay","aria-label":t,onClick:e})}function dn({children:e}){return r.jsx("div",{className:"vx-shell__main",children:e})}const pn=N.forwardRef(function({title:t,description:n,breadcrumb:a,actions:s,onMenuToggle:o,mobileNavOpen:l=!1,menuButtonLabel:i="Open navigation"},u){return r.jsxs("header",{ref:u,className:"vx-topbar",children:[o?r.jsx(Q,{variant:"ghost",size:"sm",className:"vx-topbar__menu","aria-label":i,onClick:o,children:l?r.jsx(tn,{size:16}):r.jsx(nn,{size:16})}):null,r.jsx("div",{className:"vx-topbar__title-group",children:a||r.jsxs("div",{children:[t?r.jsx("h1",{className:"vx-topbar__title",children:t}):null,n?r.jsx("p",{className:"vx-topbar__description",children:n}):null]})}),s?r.jsx("div",{className:"vx-topbar__actions",children:s}):null]})});function fn({children:e}){const t=N.useRef(null),n=N.useRef(null);return rn(t,n),r.jsxs("div",{ref:a=>{t.current=a},className:"vx-shell__content-wrap vx-scroll-host","data-scrollable":"false","data-scrollbar-state":"hidden",children:[r.jsx("main",{ref:a=>{n.current=a},className:"vx-shell__content vx-scroll-hide-native",children:e}),r.jsx("span",{className:"vx-overlay-scrollbar","aria-hidden":"true",children:r.jsx("span",{className:"vx-overlay-scrollbar__thumb"})})]})}function oa({brand:e="VXUI",brandCaption:t,brandIcon:n,topbarRef:a,breadcrumb:s,title:o,description:l,navItems:i,navSections:u,sidebarCollapsed:c=!1,mobileNavOpen:d=!1,onSidebarToggle:p,onMobileNavToggle:b,menuButtonLabel:k="Open navigation",sidebarCollapseLabel:j="Collapse",sidebarExpandLabel:g="Expand",sidebarCloseLabel:h="Close sidebar",density:w,headerActions:m,sidebarFooter:v,children:f}){const y=u??(i?[{items:i}]:[]);return r.jsxs(an,{collapsed:c,mobileNavOpen:d,density:w,children:[r.jsx(sn,{brand:e,brandCaption:t,brandIcon:n,collapsed:c,footer:v,onToggle:p,collapseLabel:j,expandLabel:g,children:r.jsx(on,{children:y.map((_,S)=>r.jsx(ln,{title:_.title,children:_.items.map(({key:C,onSelect:T,...A})=>r.jsx(cn,{onSelect:T,...A},C))},_.key??_.title??S))})}),b?r.jsx(un,{onClose:b,closeLabel:h}):null,r.jsxs(dn,{children:[r.jsx(pn,{ref:a,breadcrumb:s,title:o,description:l,actions:m,onMenuToggle:b,mobileNavOpen:d,menuButtonLabel:k}),r.jsx(fn,{children:f})]})]})}function ia({className:e,variant:t="neutral",...n}){return r.jsx("span",{className:E("vx-badge",`vx-badge--${t}`,e),...n})}function la({className:e,...t}){return r.jsx("section",{className:E("vx-card",e),...t})}function ca({className:e,...t}){return r.jsx("header",{className:E("vx-card__header",e),...t})}function ua({className:e,...t}){return r.jsx("h2",{className:E("vx-card__title",e),...t})}function da({className:e,...t}){return r.jsx("p",{className:E("vx-card__description",e),...t})}function pa({className:e,...t}){return r.jsx("div",{className:E("vx-card__content",e),...t})}function D(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function jt(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vn(...e){return t=>{let n=!1;const a=e.map(s=>{const o=jt(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<a.length;s++){const o=a[s];typeof o=="function"?o():jt(e[s],null)}}}}function U(...e){return x.useCallback(vn(...e),e)}function fa(e,t){const n=x.createContext(t),a=o=>{const{children:l,...i}=o,u=x.useMemo(()=>i,Object.values(i));return r.jsx(n.Provider,{value:u,children:l})};a.displayName=e+"Provider";function s(o){const l=x.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[a,s]}function le(e,t=[]){let n=[];function a(o,l){const i=x.createContext(l),u=n.length;n=[...n,l];const c=p=>{var w;const{scope:b,children:k,...j}=p,g=((w=b==null?void 0:b[e])==null?void 0:w[u])||i,h=x.useMemo(()=>j,Object.values(j));return r.jsx(g.Provider,{value:h,children:k})};c.displayName=o+"Provider";function d(p,b){var g;const k=((g=b==null?void 0:b[e])==null?void 0:g[u])||i,j=x.useContext(k);if(j)return j;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[c,d]}const s=()=>{const o=n.map(l=>x.createContext(l));return function(i){const u=(i==null?void 0:i[e])||o;return x.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return s.scopeName=e,[a,va(s,...t)]}function va(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const l=a.reduce((i,{useScope:u,scopeName:c})=>{const p=u(o)[`__scope${c}`];return{...i,...p}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var J=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},ma=x[" useId ".trim().toString()]||(()=>{}),ha=0;function de(e){const[t,n]=x.useState(ma());return J(()=>{n(a=>a??String(ha++))},[e]),e||(t?`radix-${t}`:"")}var ga=x[" useInsertionEffect ".trim().toString()]||J;function pe({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[s,o,l]=xa({defaultProp:t,onChange:n}),i=e!==void 0,u=i?e:s;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const p=d.current;p!==i&&console.warn(`${a} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,a])}const c=x.useCallback(d=>{var p;if(i){const b=ba(d)?d(e):d;b!==e&&((p=l.current)==null||p.call(l,b))}else o(d)},[i,e,o,l]);return[u,c]}function xa({defaultProp:e,onChange:t}){const[n,a]=x.useState(e),s=x.useRef(n),o=x.useRef(t);return ga(()=>{o.current=t},[t]),x.useEffect(()=>{var l;s.current!==n&&((l=o.current)==null||l.call(o,n),s.current=n)},[n,s]),[n,a,o]}function ba(e){return typeof e=="function"}function Ce(e){const t=ya(e),n=x.forwardRef((a,s)=>{const{children:o,...l}=a,i=x.Children.toArray(o),u=i.find(wa);if(u){const c=u.props.children,d=i.map(p=>p===u?x.Children.count(c)>1?x.Children.only(null):x.isValidElement(c)?c.props.children:null:p);return r.jsx(t,{...l,ref:s,children:x.isValidElement(c)?x.cloneElement(c,void 0,d):null})}return r.jsx(t,{...l,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}function ya(e){const t=x.forwardRef((n,a)=>{const{children:s,...o}=n;if(x.isValidElement(s)){const l=Sa(s),i=ka(o,s.props);return s.type!==x.Fragment&&(i.ref=a?vn(a,l):l),x.cloneElement(s,i)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var _a=Symbol("radix.slottable");function wa(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_a}function ka(e,t){const n={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?n[a]=(...i)=>{const u=o(...i);return s(...i),u}:s&&(n[a]=s):a==="style"?n[a]={...s,...o}:a==="className"&&(n[a]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function Sa(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Na=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],L=Na.reduce((e,t)=>{const n=Ce(`Primitive.${t}`),a=x.forwardRef((s,o)=>{const{asChild:l,...i}=s,u=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(u,{...i,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function mn(e,t){e&&Zt.flushSync(()=>e.dispatchEvent(t))}function Y(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}function ja(e,t=globalThis==null?void 0:globalThis.document){const n=Y(e);x.useEffect(()=>{const a=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[n,t])}var Ea="DismissableLayer",Ze="dismissableLayer.update",Ca="dismissableLayer.pointerDownOutside",Ta="dismissableLayer.focusOutside",Et,hn=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ot=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:l,onDismiss:i,...u}=e,c=x.useContext(hn),[d,p]=x.useState(null),b=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,k]=x.useState({}),j=U(t,S=>p(S)),g=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(h),m=d?g.indexOf(d):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,f=m>=w,y=Pa(S=>{const C=S.target,T=[...c.branches].some(A=>A.contains(C));!f||T||(s==null||s(S),l==null||l(S),S.defaultPrevented||i==null||i())},b),_=Ra(S=>{const C=S.target;[...c.branches].some(A=>A.contains(C))||(o==null||o(S),l==null||l(S),S.defaultPrevented||i==null||i())},b);return ja(S=>{m===c.layers.size-1&&(a==null||a(S),!S.defaultPrevented&&i&&(S.preventDefault(),i()))},b),x.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Et=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Ct(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Et)}},[d,b,n,c]),x.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Ct())},[d,c]),x.useEffect(()=>{const S=()=>k({});return document.addEventListener(Ze,S),()=>document.removeEventListener(Ze,S)},[]),r.jsx(L.div,{...u,ref:j,style:{pointerEvents:v?f?"auto":"none":void 0,...e.style},onFocusCapture:D(e.onFocusCapture,_.onFocusCapture),onBlurCapture:D(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:D(e.onPointerDownCapture,y.onPointerDownCapture)})});ot.displayName=Ea;var Aa="DismissableLayerBranch",gn=x.forwardRef((e,t)=>{const n=x.useContext(hn),a=x.useRef(null),s=U(t,a);return x.useEffect(()=>{const o=a.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),r.jsx(L.div,{...e,ref:s})});gn.displayName=Aa;function Pa(e,t=globalThis==null?void 0:globalThis.document){const n=Y(e),a=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const o=i=>{if(i.target&&!a.current){let u=function(){xn(Ca,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=u,t.addEventListener("click",s.current,{once:!0})):u()}else t.removeEventListener("click",s.current);a.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}function Ra(e,t=globalThis==null?void 0:globalThis.document){const n=Y(e),a=x.useRef(!1);return x.useEffect(()=>{const s=o=>{o.target&&!a.current&&xn(Ta,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function Ct(){const e=new CustomEvent(Ze);document.dispatchEvent(e)}function xn(e,t,n,{discrete:a}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),a?mn(s,o):s.dispatchEvent(o)}var Fa=ot,Da=gn,Be="focusScope.autoFocusOnMount",ze="focusScope.autoFocusOnUnmount",Tt={bubbles:!1,cancelable:!0},Ia="FocusScope",bn=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...l}=e,[i,u]=x.useState(null),c=Y(s),d=Y(o),p=x.useRef(null),b=U(t,g=>u(g)),k=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(a){let g=function(v){if(k.paused||!i)return;const f=v.target;i.contains(f)?p.current=f:Z(p.current,{select:!0})},h=function(v){if(k.paused||!i)return;const f=v.relatedTarget;f!==null&&(i.contains(f)||Z(p.current,{select:!0}))},w=function(v){if(document.activeElement===document.body)for(const y of v)y.removedNodes.length>0&&Z(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",h);const m=new MutationObserver(w);return i&&m.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",h),m.disconnect()}}},[a,i,k.paused]),x.useEffect(()=>{if(i){Pt.add(k);const g=document.activeElement;if(!i.contains(g)){const w=new CustomEvent(Be,Tt);i.addEventListener(Be,c),i.dispatchEvent(w),w.defaultPrevented||(La(za(yn(i)),{select:!0}),document.activeElement===g&&Z(i))}return()=>{i.removeEventListener(Be,c),setTimeout(()=>{const w=new CustomEvent(ze,Tt);i.addEventListener(ze,d),i.dispatchEvent(w),w.defaultPrevented||Z(g??document.body,{select:!0}),i.removeEventListener(ze,d),Pt.remove(k)},0)}}},[i,c,d,k]);const j=x.useCallback(g=>{if(!n&&!a||k.paused)return;const h=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(h&&w){const m=g.currentTarget,[v,f]=Ma(m);v&&f?!g.shiftKey&&w===f?(g.preventDefault(),n&&Z(v,{select:!0})):g.shiftKey&&w===v&&(g.preventDefault(),n&&Z(f,{select:!0})):w===m&&g.preventDefault()}},[n,a,k.paused]);return r.jsx(L.div,{tabIndex:-1,...l,ref:b,onKeyDown:j})});bn.displayName=Ia;function La(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(Z(a,{select:t}),document.activeElement!==n)return}function Ma(e){const t=yn(e),n=At(t,e),a=At(t.reverse(),e);return[n,a]}function yn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function At(e,t){for(const n of e)if(!Oa(n,{upTo:t}))return n}function Oa(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $a(e){return e instanceof HTMLInputElement&&"select"in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$a(e)&&t&&e.select()}}var Pt=Ba();function Ba(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Rt(e,t),e.unshift(t)},remove(t){var n;e=Rt(e,t),(n=e[0])==null||n.resume()}}}function Rt(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function za(e){return e.filter(t=>t.tagName!=="A")}var Ua="Portal",it=x.forwardRef((e,t)=>{var i;const{container:n,...a}=e,[s,o]=x.useState(!1);J(()=>o(!0),[]);const l=n||s&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return l?qt.createPortal(r.jsx(L.div,{...a,ref:t}),l):null});it.displayName=Ua;function Ha(e,t){return x.useReducer((n,a)=>t[n][a]??n,e)}var ce=e=>{const{present:t,children:n}=e,a=Wa(t),s=typeof n=="function"?n({present:a.isPresent}):x.Children.only(n),o=U(a.ref,Ga(s));return typeof n=="function"||a.isPresent?x.cloneElement(s,{ref:o}):null};ce.displayName="Presence";function Wa(e){const[t,n]=x.useState(),a=x.useRef(null),s=x.useRef(e),o=x.useRef("none"),l=e?"mounted":"unmounted",[i,u]=Ha(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=xe(a.current);o.current=i==="mounted"?c:"none"},[i]),J(()=>{const c=a.current,d=s.current;if(d!==e){const b=o.current,k=xe(c);e?u("MOUNT"):k==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&b!==k?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,u]),J(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=k=>{const g=xe(a.current).includes(CSS.escape(k.animationName));if(k.target===t&&g&&(u("ANIMATION_END"),!s.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},b=k=>{k.target===t&&(o.current=xe(a.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:x.useCallback(c=>{a.current=c?getComputedStyle(c):null,n(c)},[])}}function xe(e){return(e==null?void 0:e.animationName)||"none"}function Ga(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ue=0;function Ka(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ft()),document.body.insertAdjacentElement("beforeend",e[1]??Ft()),Ue++,()=>{Ue===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ue--}},[])}function Ft(){const 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 V=function(){return V=Object.assign||function(t){for(var n,a=1,s=arguments.length;a<s;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},V.apply(this,arguments)};function _n(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]]);return n}function Va(e,t,n){if(n||arguments.length===2)for(var a=0,s=t.length,o;a<s;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}var je="right-scroll-bar-position",Ee="width-before-scroll-bar",Ya="with-scroll-bars-hidden",qa="--removed-body-scroll-bar-size";function He(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Xa(e,t){var n=N.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var s=n.value;s!==a&&(n.value=a,n.callback(a,s))}}}})[0];return n.callback=t,n.facade}var Za=typeof window<"u"?x.useLayoutEffect:x.useEffect,Dt=new WeakMap;function Qa(e,t){var n=Xa(null,function(a){return e.forEach(function(s){return He(s,a)})});return Za(function(){var a=Dt.get(n);if(a){var s=new Set(a),o=new Set(e),l=n.current;s.forEach(function(i){o.has(i)||He(i,null)}),o.forEach(function(i){s.has(i)||He(i,l)})}Dt.set(n,e)},[e]),n}function Ja(e){return e}function es(e,t){t===void 0&&(t=Ja);var n=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,a);return n.push(l),function(){n=n.filter(function(i){return i!==l})}},assignSyncMedium:function(o){for(a=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(i){return o(i)},filter:function(){return n}}},assignMedium:function(o){a=!0;var l=[];if(n.length){var i=n;n=[],i.forEach(o),l=n}var u=function(){var d=l;l=[],d.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(d){l.push(d),c()},filter:function(d){return l=l.filter(d),n}}}};return s}function ts(e){e===void 0&&(e={});var t=es(null);return t.options=V({async:!0,ssr:!1},e),t}var wn=function(e){var t=e.sideCar,n=_n(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return x.createElement(a,V({},n))};wn.isSideCarExport=!0;function ns(e,t){return e.useMedium(t),wn}var kn=ts(),We=function(){},Re=x.forwardRef(function(e,t){var n=x.useRef(null),a=x.useState({onScrollCapture:We,onWheelCapture:We,onTouchMoveCapture:We}),s=a[0],o=a[1],l=e.forwardProps,i=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,b=e.sideCar,k=e.noRelative,j=e.noIsolation,g=e.inert,h=e.allowPinchZoom,w=e.as,m=w===void 0?"div":w,v=e.gapMode,f=_n(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=b,_=Qa([n,t]),S=V(V({},f),s);return x.createElement(x.Fragment,null,d&&x.createElement(y,{sideCar:kn,removeScrollBar:c,shards:p,noRelative:k,noIsolation:j,inert:g,setCallbacks:o,allowPinchZoom:!!h,lockRef:n,gapMode:v}),l?x.cloneElement(x.Children.only(i),V(V({},S),{ref:_})):x.createElement(m,V({},S,{className:u,ref:_}),i))});Re.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Re.classNames={fullWidth:Ee,zeroRight:je};var rs=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function as(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rs();return t&&e.setAttribute("nonce",t),e}function ss(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function os(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var is=function(){var e=0,t=null;return{add:function(n){e==0&&(t=as())&&(ss(t,n),os(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ls=function(){var e=is();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Sn=function(){var e=ls(),t=function(n){var a=n.styles,s=n.dynamic;return e(a,s),null};return t},cs={left:0,top:0,right:0,gap:0},Ge=function(e){return parseInt(e||"",10)||0},us=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Ge(n),Ge(a),Ge(s)]},ds=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return cs;var t=us(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},ps=Sn(),oe="data-scroll-locked",fs=function(e,t,n,a){var s=e.left,o=e.top,l=e.right,i=e.gap;return n===void 0&&(n="margin"),`
77
- .`.concat(Ya,` {
76
+ */const ia=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ie=G("x",ia);function E(...e){return e.filter(Boolean).join(" ")}const Q=k.forwardRef(function({className:t,variant:n="solid",size:a="md",shape:s="rect",fullWidth:o=!1,loading:l=!1,startIcon:i,endIcon:u,disabled:c,type:d="button",children:p,...b},w){return r.jsxs("button",{ref:w,type:d,disabled:c||l,"aria-busy":l||void 0,className:E("vx-button",`vx-button--${n}`,`vx-button--${a}`,s==="square"&&"vx-button--square",s==="pill"&&"vx-button--pill",s==="circle"&&"vx-button--circle",o&&"vx-button--full-width",l&&"vx-button--loading",t),...b,children:[l?r.jsx("span",{className:"vx-button__spinner","aria-hidden":"true"}):i??null,p,!l&&u?u:null]})});function sn(e,t){k.useEffect(()=>{const n=e.current,a=t.current;if(!n||!a)return;let s;const o=()=>{const c=a.scrollHeight>a.clientHeight+1;if(n.dataset.scrollable=c?"true":"false",!c){n.dataset.scrollbarState="hidden",n.style.setProperty("--vx-scrollbar-thumb-height","0px"),n.style.setProperty("--vx-scrollbar-thumb-offset","0px");return}const d=Math.max(n.clientHeight-16,0),p=Math.max(a.clientHeight/a.scrollHeight*d,36),b=a.scrollHeight-a.clientHeight,w=Math.max(d-p,0),j=b>0?a.scrollTop/b*w:0;n.style.setProperty("--vx-scrollbar-thumb-height",`${p}px`),n.style.setProperty("--vx-scrollbar-thumb-offset",`${j}px`),n.dataset.scrollbarState!=="active"&&(n.dataset.scrollbarState="hidden")},l=()=>{n.dataset.scrollable==="true"&&(n.dataset.scrollbarState="active",s!==void 0&&window.clearTimeout(s),s=window.setTimeout(()=>{n.dataset.scrollbarState="hidden"},640))},i=()=>{o(),l()};o(),a.addEventListener("scroll",i,{passive:!0});const u=new ResizeObserver(()=>o());return u.observe(n),u.observe(a),()=>{a.removeEventListener("scroll",i),u.disconnect(),s!==void 0&&window.clearTimeout(s)}},[])}function on({collapsed:e=!1,mobileNavOpen:t=!1,density:n,className:a,children:s}){const{isTablet:o,isTabletPortrait:l}=at();return r.jsx("div",{className:E("vx-shell",a),"data-collapsed":e,"data-nav-open":t,"data-tablet":o,"data-tablet-portrait":l,"data-density":n,children:s})}function ln({brand:e="VXUI",brandCaption:t,brandIcon:n,collapsed:a=!1,footer:s,onToggle:o,collapseLabel:l="Collapse",expandLabel:i="Expand",onSidebarClick:u,children:c}){const d=k.useRef(null),p=k.useRef(null);return sn(d,p),r.jsxs("aside",{ref:d,className:"vx-sidebar vx-scroll-host","data-scrollable":"false","data-scrollbar-state":"hidden",onClickCapture:u,children:[r.jsxs("div",{ref:b=>{p.current=b},className:"vx-sidebar__scroll vx-scroll-hide-native",children:[r.jsx("div",{className:"vx-sidebar__header",children:r.jsxs("div",{className:"vx-sidebar__brand",children:[n?r.jsx("span",{className:"vx-sidebar__brand-icon",children:n}):null,r.jsxs("div",{className:"vx-sidebar__brand-copy",children:[r.jsx("span",{className:"vx-sidebar__brand-text",children:e}),t?r.jsx("span",{className:"vx-sidebar__brand-caption",children:t}):null]})]})}),c,r.jsxs("div",{className:"vx-sidebar__footer",children:[s?r.jsx("div",{className:"vx-sidebar__footer-content",children:s}):null,o?r.jsxs(Q,{variant:"ghost",size:"sm",className:"vx-sidebar__toggle",onClick:o,"aria-label":a?i:l,children:[a?r.jsx(an,{size:16}):r.jsx(rn,{size:16}),r.jsx("span",{className:"vx-sidebar__toggle-label",children:a?i:l})]}):null]})]}),r.jsx("span",{className:"vx-overlay-scrollbar","aria-hidden":"true",children:r.jsx("span",{className:"vx-overlay-scrollbar__thumb"})})]})}function cn({label:e="Primary navigation",children:t}){return r.jsx("nav",{className:"vx-sidebar__nav","aria-label":e,children:t})}function un({title:e,children:t}){return r.jsxs("div",{className:"vx-nav-section-block",children:[e?r.jsx("div",{className:"vx-nav-section-block__title",children:e}):null,r.jsx("div",{className:"vx-nav-section-block__items",children:t})]})}function dn({label:e,icon:t,badge:n,trailing:a,active:s,onSelect:o}){return r.jsxs("button",{type:"button",className:E("vx-nav-item",s&&"vx-nav-item--active"),onClick:o,children:[t?r.jsx("span",{className:"vx-nav-item__icon",children:t}):null,r.jsx("span",{className:"vx-nav-item__label",children:e}),n?r.jsx("span",{className:"vx-nav-item__badge",children:n}):null,a?r.jsx("span",{className:"vx-nav-item__trailing",children:a}):null]})}function pn({onClose:e,closeLabel:t="Close sidebar"}){return r.jsx("button",{type:"button",className:"vx-shell__overlay","aria-label":t,onClick:e})}function fn({children:e}){return r.jsx("div",{className:"vx-shell__main",children:e})}const vn=k.forwardRef(function({title:t,description:n,breadcrumb:a,actions:s,onMenuToggle:o,mobileNavOpen:l=!1,menuButtonLabel:i="Open navigation"},u){return r.jsxs("header",{ref:u,className:"vx-topbar",children:[o?r.jsx(Q,{variant:"ghost",size:"sm",className:"vx-topbar__menu","aria-label":i,onClick:o,children:l?r.jsx(rn,{size:16}):r.jsx(an,{size:16})}):null,r.jsx("div",{className:"vx-topbar__title-group",children:a||r.jsxs("div",{children:[t?r.jsx("h1",{className:"vx-topbar__title",children:t}):null,n?r.jsx("p",{className:"vx-topbar__description",children:n}):null]})}),s?r.jsx("div",{className:"vx-topbar__actions",children:s}):null]})});function mn({children:e}){const t=k.useRef(null),n=k.useRef(null);return sn(t,n),r.jsxs("div",{ref:a=>{t.current=a},className:"vx-shell__content-wrap vx-scroll-host","data-scrollable":"false","data-scrollbar-state":"hidden",children:[r.jsx("main",{ref:a=>{n.current=a},className:"vx-shell__content vx-scroll-hide-native",children:e}),r.jsx("span",{className:"vx-overlay-scrollbar","aria-hidden":"true",children:r.jsx("span",{className:"vx-overlay-scrollbar__thumb"})})]})}function la({brand:e="VXUI",brandCaption:t,brandIcon:n,topbarRef:a,breadcrumb:s,title:o,description:l,navItems:i,navSections:u,sidebarCollapsed:c=!1,mobileNavOpen:d=!1,onSidebarToggle:p,onMobileNavToggle:b,onSidebarClick:w,menuButtonLabel:j="Open navigation",sidebarCollapseLabel:g="Collapse",sidebarExpandLabel:h="Expand",sidebarCloseLabel:_="Close sidebar",density:m,headerActions:v,sidebarFooter:f,children:y}){const S=u??(i?[{items:i}]:[]);return r.jsxs(on,{collapsed:c,mobileNavOpen:d,density:m,children:[r.jsx(ln,{brand:e,brandCaption:t,brandIcon:n,collapsed:c,footer:f,onToggle:p,onSidebarClick:w,collapseLabel:g,expandLabel:h,children:r.jsx(cn,{children:S.map((N,C)=>r.jsx(un,{title:N.title,children:N.items.map(({key:T,onSelect:P,...R})=>r.jsx(dn,{onSelect:P,...R},T))},N.key??N.title??C))})}),b?r.jsx(pn,{onClose:b,closeLabel:_}):null,r.jsxs(fn,{children:[r.jsx(vn,{ref:a,breadcrumb:s,title:o,description:l,actions:v,onMenuToggle:b,mobileNavOpen:d,menuButtonLabel:j}),r.jsx(mn,{children:y})]})]})}function ca({className:e,variant:t="neutral",...n}){return r.jsx("span",{className:E("vx-badge",`vx-badge--${t}`,e),...n})}function ua({className:e,variant:t="default",padding:n,hoverable:a=!1,...s}){return r.jsx("section",{className:E("vx-card",t!=="default"&&`vx-card--${t}`,n&&`vx-card--pad-${n}`,a&&"vx-card--hoverable",e),...s})}function da({className:e,...t}){return r.jsx("header",{className:E("vx-card__header",e),...t})}function pa({className:e,...t}){return r.jsx("h2",{className:E("vx-card__title",e),...t})}function fa({className:e,...t}){return r.jsx("p",{className:E("vx-card__description",e),...t})}function va({className:e,...t}){return r.jsx("div",{className:E("vx-card__content",e),...t})}function I(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Ct(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function hn(...e){return t=>{let n=!1;const a=e.map(s=>{const o=Ct(s,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let s=0;s<a.length;s++){const o=a[s];typeof o=="function"?o():Ct(e[s],null)}}}}function U(...e){return x.useCallback(hn(...e),e)}function ma(e,t){const n=x.createContext(t),a=o=>{const{children:l,...i}=o,u=x.useMemo(()=>i,Object.values(i));return r.jsx(n.Provider,{value:u,children:l})};a.displayName=e+"Provider";function s(o){const l=x.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[a,s]}function le(e,t=[]){let n=[];function a(o,l){const i=x.createContext(l),u=n.length;n=[...n,l];const c=p=>{var _;const{scope:b,children:w,...j}=p,g=((_=b==null?void 0:b[e])==null?void 0:_[u])||i,h=x.useMemo(()=>j,Object.values(j));return r.jsx(g.Provider,{value:h,children:w})};c.displayName=o+"Provider";function d(p,b){var g;const w=((g=b==null?void 0:b[e])==null?void 0:g[u])||i,j=x.useContext(w);if(j)return j;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[c,d]}const s=()=>{const o=n.map(l=>x.createContext(l));return function(i){const u=(i==null?void 0:i[e])||o;return x.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return s.scopeName=e,[a,ha(s,...t)]}function ha(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(o){const l=a.reduce((i,{useScope:u,scopeName:c})=>{const p=u(o)[`__scope${c}`];return{...i,...p}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var J=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},ga=x[" useId ".trim().toString()]||(()=>{}),xa=0;function de(e){const[t,n]=x.useState(ga());return J(()=>{n(a=>a??String(xa++))},[e]),e||(t?`radix-${t}`:"")}var ba=x[" useInsertionEffect ".trim().toString()]||J;function pe({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[s,o,l]=ya({defaultProp:t,onChange:n}),i=e!==void 0,u=i?e:s;{const d=x.useRef(e!==void 0);x.useEffect(()=>{const p=d.current;p!==i&&console.warn(`${a} is changing from ${p?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=i},[i,a])}const c=x.useCallback(d=>{var p;if(i){const b=_a(d)?d(e):d;b!==e&&((p=l.current)==null||p.call(l,b))}else o(d)},[i,e,o,l]);return[u,c]}function ya({defaultProp:e,onChange:t}){const[n,a]=x.useState(e),s=x.useRef(n),o=x.useRef(t);return ba(()=>{o.current=t},[t]),x.useEffect(()=>{var l;s.current!==n&&((l=o.current)==null||l.call(o,n),s.current=n)},[n,s]),[n,a,o]}function _a(e){return typeof e=="function"}function Ce(e){const t=wa(e),n=x.forwardRef((a,s)=>{const{children:o,...l}=a,i=x.Children.toArray(o),u=i.find(Sa);if(u){const c=u.props.children,d=i.map(p=>p===u?x.Children.count(c)>1?x.Children.only(null):x.isValidElement(c)?c.props.children:null:p);return r.jsx(t,{...l,ref:s,children:x.isValidElement(c)?x.cloneElement(c,void 0,d):null})}return r.jsx(t,{...l,ref:s,children:o})});return n.displayName=`${e}.Slot`,n}function wa(e){const t=x.forwardRef((n,a)=>{const{children:s,...o}=n;if(x.isValidElement(s)){const l=ja(s),i=Na(o,s.props);return s.type!==x.Fragment&&(i.ref=a?hn(a,l):l),x.cloneElement(s,i)}return x.Children.count(s)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ka=Symbol("radix.slottable");function Sa(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ka}function Na(e,t){const n={...t};for(const a in t){const s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?n[a]=(...i)=>{const u=o(...i);return s(...i),u}:s&&(n[a]=s):a==="style"?n[a]={...s,...o}:a==="className"&&(n[a]=[s,o].filter(Boolean).join(" "))}return{...e,...n}}function ja(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ea=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],L=Ea.reduce((e,t)=>{const n=Ce(`Primitive.${t}`),a=x.forwardRef((s,o)=>{const{asChild:l,...i}=s,u=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(u,{...i,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function gn(e,t){e&&Jt.flushSync(()=>e.dispatchEvent(t))}function q(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}function Ca(e,t=globalThis==null?void 0:globalThis.document){const n=q(e);x.useEffect(()=>{const a=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",a,{capture:!0}),()=>t.removeEventListener("keydown",a,{capture:!0})},[n,t])}var Ta="DismissableLayer",Qe="dismissableLayer.update",Aa="dismissableLayer.pointerDownOutside",Pa="dismissableLayer.focusOutside",Tt,xn=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),it=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:l,onDismiss:i,...u}=e,c=x.useContext(xn),[d,p]=x.useState(null),b=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=x.useState({}),j=U(t,N=>p(N)),g=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),_=g.indexOf(h),m=d?g.indexOf(d):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,f=m>=_,y=Fa(N=>{const C=N.target,T=[...c.branches].some(P=>P.contains(C));!f||T||(s==null||s(N),l==null||l(N),N.defaultPrevented||i==null||i())},b),S=Da(N=>{const C=N.target;[...c.branches].some(P=>P.contains(C))||(o==null||o(N),l==null||l(N),N.defaultPrevented||i==null||i())},b);return Ca(N=>{m===c.layers.size-1&&(a==null||a(N),!N.defaultPrevented&&i&&(N.preventDefault(),i()))},b),x.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Tt=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),At(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Tt)}},[d,b,n,c]),x.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),At())},[d,c]),x.useEffect(()=>{const N=()=>w({});return document.addEventListener(Qe,N),()=>document.removeEventListener(Qe,N)},[]),r.jsx(L.div,{...u,ref:j,style:{pointerEvents:v?f?"auto":"none":void 0,...e.style},onFocusCapture:I(e.onFocusCapture,S.onFocusCapture),onBlurCapture:I(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:I(e.onPointerDownCapture,y.onPointerDownCapture)})});it.displayName=Ta;var Ra="DismissableLayerBranch",bn=x.forwardRef((e,t)=>{const n=x.useContext(xn),a=x.useRef(null),s=U(t,a);return x.useEffect(()=>{const o=a.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),r.jsx(L.div,{...e,ref:s})});bn.displayName=Ra;function Fa(e,t=globalThis==null?void 0:globalThis.document){const n=q(e),a=x.useRef(!1),s=x.useRef(()=>{});return x.useEffect(()=>{const o=i=>{if(i.target&&!a.current){let u=function(){yn(Aa,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=u,t.addEventListener("click",s.current,{once:!0})):u()}else t.removeEventListener("click",s.current);a.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>a.current=!0}}function Da(e,t=globalThis==null?void 0:globalThis.document){const n=q(e),a=x.useRef(!1);return x.useEffect(()=>{const s=o=>{o.target&&!a.current&&yn(Pa,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function At(){const e=new CustomEvent(Qe);document.dispatchEvent(e)}function yn(e,t,n,{discrete:a}){const s=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),a?gn(s,o):s.dispatchEvent(o)}var Ia=it,La=bn,ze="focusScope.autoFocusOnMount",Ue="focusScope.autoFocusOnUnmount",Pt={bubbles:!1,cancelable:!0},Ma="FocusScope",_n=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:o,...l}=e,[i,u]=x.useState(null),c=q(s),d=q(o),p=x.useRef(null),b=U(t,g=>u(g)),w=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(a){let g=function(v){if(w.paused||!i)return;const f=v.target;i.contains(f)?p.current=f:Z(p.current,{select:!0})},h=function(v){if(w.paused||!i)return;const f=v.relatedTarget;f!==null&&(i.contains(f)||Z(p.current,{select:!0}))},_=function(v){if(document.activeElement===document.body)for(const y of v)y.removedNodes.length>0&&Z(i)};document.addEventListener("focusin",g),document.addEventListener("focusout",h);const m=new MutationObserver(_);return i&&m.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",h),m.disconnect()}}},[a,i,w.paused]),x.useEffect(()=>{if(i){Ft.add(w);const g=document.activeElement;if(!i.contains(g)){const _=new CustomEvent(ze,Pt);i.addEventListener(ze,c),i.dispatchEvent(_),_.defaultPrevented||(Oa(Ha(wn(i)),{select:!0}),document.activeElement===g&&Z(i))}return()=>{i.removeEventListener(ze,c),setTimeout(()=>{const _=new CustomEvent(Ue,Pt);i.addEventListener(Ue,d),i.dispatchEvent(_),_.defaultPrevented||Z(g??document.body,{select:!0}),i.removeEventListener(Ue,d),Ft.remove(w)},0)}}},[i,c,d,w]);const j=x.useCallback(g=>{if(!n&&!a||w.paused)return;const h=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,_=document.activeElement;if(h&&_){const m=g.currentTarget,[v,f]=$a(m);v&&f?!g.shiftKey&&_===f?(g.preventDefault(),n&&Z(v,{select:!0})):g.shiftKey&&_===v&&(g.preventDefault(),n&&Z(f,{select:!0})):_===m&&g.preventDefault()}},[n,a,w.paused]);return r.jsx(L.div,{tabIndex:-1,...l,ref:b,onKeyDown:j})});_n.displayName=Ma;function Oa(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(Z(a,{select:t}),document.activeElement!==n)return}function $a(e){const t=wn(e),n=Rt(t,e),a=Rt(t.reverse(),e);return[n,a]}function wn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rt(e,t){for(const n of e)if(!Ba(n,{upTo:t}))return n}function Ba(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function za(e){return e instanceof HTMLInputElement&&"select"in e}function Z(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&za(e)&&t&&e.select()}}var Ft=Ua();function Ua(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dt(e,t),e.unshift(t)},remove(t){var n;e=Dt(e,t),(n=e[0])==null||n.resume()}}}function Dt(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function Ha(e){return e.filter(t=>t.tagName!=="A")}var Wa="Portal",lt=x.forwardRef((e,t)=>{var i;const{container:n,...a}=e,[s,o]=x.useState(!1);J(()=>o(!0),[]);const l=n||s&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return l?Zt.createPortal(r.jsx(L.div,{...a,ref:t}),l):null});lt.displayName=Wa;function Ga(e,t){return x.useReducer((n,a)=>t[n][a]??n,e)}var ce=e=>{const{present:t,children:n}=e,a=Va(t),s=typeof n=="function"?n({present:a.isPresent}):x.Children.only(n),o=U(a.ref,Ka(s));return typeof n=="function"||a.isPresent?x.cloneElement(s,{ref:o}):null};ce.displayName="Presence";function Va(e){const[t,n]=x.useState(),a=x.useRef(null),s=x.useRef(e),o=x.useRef("none"),l=e?"mounted":"unmounted",[i,u]=Ga(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const c=xe(a.current);o.current=i==="mounted"?c:"none"},[i]),J(()=>{const c=a.current,d=s.current;if(d!==e){const b=o.current,w=xe(c);e?u("MOUNT"):w==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(d&&b!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,u]),J(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,p=w=>{const g=xe(a.current).includes(CSS.escape(w.animationName));if(w.target===t&&g&&(u("ANIMATION_END"),!s.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},b=w=>{w.target===t&&(o.current=xe(a.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:x.useCallback(c=>{a.current=c?getComputedStyle(c):null,n(c)},[])}}function xe(e){return(e==null?void 0:e.animationName)||"none"}function Ka(e){var a,s;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var He=0;function qa(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??It()),document.body.insertAdjacentElement("beforeend",e[1]??It()),He++,()=>{He===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),He--}},[])}function It(){const 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=function(){return K=Object.assign||function(t){for(var n,a=1,s=arguments.length;a<s;a++){n=arguments[a];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},K.apply(this,arguments)};function kn(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)t.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(n[a[s]]=e[a[s]]);return n}function Ya(e,t,n){if(n||arguments.length===2)for(var a=0,s=t.length,o;a<s;a++)(o||!(a in t))&&(o||(o=Array.prototype.slice.call(t,0,a)),o[a]=t[a]);return e.concat(o||Array.prototype.slice.call(t))}var je="right-scroll-bar-position",Ee="width-before-scroll-bar",Xa="with-scroll-bars-hidden",Za="--removed-body-scroll-bar-size";function We(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Qa(e,t){var n=k.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var s=n.value;s!==a&&(n.value=a,n.callback(a,s))}}}})[0];return n.callback=t,n.facade}var Ja=typeof window<"u"?x.useLayoutEffect:x.useEffect,Lt=new WeakMap;function es(e,t){var n=Qa(null,function(a){return e.forEach(function(s){return We(s,a)})});return Ja(function(){var a=Lt.get(n);if(a){var s=new Set(a),o=new Set(e),l=n.current;s.forEach(function(i){o.has(i)||We(i,null)}),o.forEach(function(i){s.has(i)||We(i,l)})}Lt.set(n,e)},[e]),n}function ts(e){return e}function ns(e,t){t===void 0&&(t=ts);var n=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var l=t(o,a);return n.push(l),function(){n=n.filter(function(i){return i!==l})}},assignSyncMedium:function(o){for(a=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(i){return o(i)},filter:function(){return n}}},assignMedium:function(o){a=!0;var l=[];if(n.length){var i=n;n=[],i.forEach(o),l=n}var u=function(){var d=l;l=[],d.forEach(o)},c=function(){return Promise.resolve().then(u)};c(),n={push:function(d){l.push(d),c()},filter:function(d){return l=l.filter(d),n}}}};return s}function rs(e){e===void 0&&(e={});var t=ns(null);return t.options=K({async:!0,ssr:!1},e),t}var Sn=function(e){var t=e.sideCar,n=kn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return x.createElement(a,K({},n))};Sn.isSideCarExport=!0;function as(e,t){return e.useMedium(t),Sn}var Nn=rs(),Ge=function(){},Fe=x.forwardRef(function(e,t){var n=x.useRef(null),a=x.useState({onScrollCapture:Ge,onWheelCapture:Ge,onTouchMoveCapture:Ge}),s=a[0],o=a[1],l=e.forwardProps,i=e.children,u=e.className,c=e.removeScrollBar,d=e.enabled,p=e.shards,b=e.sideCar,w=e.noRelative,j=e.noIsolation,g=e.inert,h=e.allowPinchZoom,_=e.as,m=_===void 0?"div":_,v=e.gapMode,f=kn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),y=b,S=es([n,t]),N=K(K({},f),s);return x.createElement(x.Fragment,null,d&&x.createElement(y,{sideCar:Nn,removeScrollBar:c,shards:p,noRelative:w,noIsolation:j,inert:g,setCallbacks:o,allowPinchZoom:!!h,lockRef:n,gapMode:v}),l?x.cloneElement(x.Children.only(i),K(K({},N),{ref:S})):x.createElement(m,K({},N,{className:u,ref:S}),i))});Fe.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fe.classNames={fullWidth:Ee,zeroRight:je};var ss=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function os(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ss();return t&&e.setAttribute("nonce",t),e}function is(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ls(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cs=function(){var e=0,t=null;return{add:function(n){e==0&&(t=os())&&(is(t,n),ls(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},us=function(){var e=cs();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jn=function(){var e=us(),t=function(n){var a=n.styles,s=n.dynamic;return e(a,s),null};return t},ds={left:0,top:0,right:0,gap:0},Ve=function(e){return parseInt(e||"",10)||0},ps=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Ve(n),Ve(a),Ve(s)]},fs=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ds;var t=ps(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},vs=jn(),oe="data-scroll-locked",ms=function(e,t,n,a){var s=e.left,o=e.top,l=e.right,i=e.gap;return n===void 0&&(n="margin"),`
77
+ .`.concat(Xa,` {
78
78
  overflow: hidden `).concat(a,`;
79
79
  padding-right: `).concat(i,"px ").concat(a,`;
80
80
  }
@@ -108,21 +108,21 @@
108
108
  }
109
109
 
110
110
  body[`).concat(oe,`] {
111
- `).concat(qa,": ").concat(i,`px;
111
+ `).concat(Za,": ").concat(i,`px;
112
112
  }
113
- `)},It=function(){var e=parseInt(document.body.getAttribute(oe)||"0",10);return isFinite(e)?e:0},vs=function(){x.useEffect(function(){return document.body.setAttribute(oe,(It()+1).toString()),function(){var e=It()-1;e<=0?document.body.removeAttribute(oe):document.body.setAttribute(oe,e.toString())}},[])},ms=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a;vs();var o=x.useMemo(function(){return ds(s)},[s]);return x.createElement(ps,{styles:fs(o,!t,s,n?"":"!important")})},Qe=!1;if(typeof window<"u")try{var be=Object.defineProperty({},"passive",{get:function(){return Qe=!0,!0}});window.addEventListener("test",be,be),window.removeEventListener("test",be,be)}catch{Qe=!1}var re=Qe?{passive:!1}:!1,hs=function(e){return e.tagName==="TEXTAREA"},Nn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!hs(e)&&n[t]==="visible")},gs=function(e){return Nn(e,"overflowY")},xs=function(e){return Nn(e,"overflowX")},Lt=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=jn(e,a);if(s){var o=En(e,a),l=o[1],i=o[2];if(l>i)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},bs=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},ys=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},jn=function(e,t){return e==="v"?gs(t):xs(t)},En=function(e,t){return e==="v"?bs(t):ys(t)},_s=function(e,t){return e==="h"&&t==="rtl"?-1:1},ws=function(e,t,n,a,s){var o=_s(e,window.getComputedStyle(t).direction),l=o*a,i=n.target,u=t.contains(i),c=!1,d=l>0,p=0,b=0;do{if(!i)break;var k=En(e,i),j=k[0],g=k[1],h=k[2],w=g-h-o*j;(j||w)&&jn(e,i)&&(p+=w,b+=j);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(d&&Math.abs(p)<1||!d&&Math.abs(b)<1)&&(c=!0),c},ye=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mt=function(e){return[e.deltaX,e.deltaY]},Ot=function(e){return e&&"current"in e?e.current:e},ks=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ss=function(e){return`
113
+ `)},Mt=function(){var e=parseInt(document.body.getAttribute(oe)||"0",10);return isFinite(e)?e:0},hs=function(){x.useEffect(function(){return document.body.setAttribute(oe,(Mt()+1).toString()),function(){var e=Mt()-1;e<=0?document.body.removeAttribute(oe):document.body.setAttribute(oe,e.toString())}},[])},gs=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a;hs();var o=x.useMemo(function(){return fs(s)},[s]);return x.createElement(vs,{styles:ms(o,!t,s,n?"":"!important")})},Je=!1;if(typeof window<"u")try{var be=Object.defineProperty({},"passive",{get:function(){return Je=!0,!0}});window.addEventListener("test",be,be),window.removeEventListener("test",be,be)}catch{Je=!1}var re=Je?{passive:!1}:!1,xs=function(e){return e.tagName==="TEXTAREA"},En=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!xs(e)&&n[t]==="visible")},bs=function(e){return En(e,"overflowY")},ys=function(e){return En(e,"overflowX")},Ot=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=Cn(e,a);if(s){var o=Tn(e,a),l=o[1],i=o[2];if(l>i)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},_s=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},ws=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},Cn=function(e,t){return e==="v"?bs(t):ys(t)},Tn=function(e,t){return e==="v"?_s(t):ws(t)},ks=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ss=function(e,t,n,a,s){var o=ks(e,window.getComputedStyle(t).direction),l=o*a,i=n.target,u=t.contains(i),c=!1,d=l>0,p=0,b=0;do{if(!i)break;var w=Tn(e,i),j=w[0],g=w[1],h=w[2],_=g-h-o*j;(j||_)&&Cn(e,i)&&(p+=_,b+=j);var m=i.parentNode;i=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(d&&Math.abs(p)<1||!d&&Math.abs(b)<1)&&(c=!0),c},ye=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$t=function(e){return[e.deltaX,e.deltaY]},Bt=function(e){return e&&"current"in e?e.current:e},Ns=function(e,t){return e[0]===t[0]&&e[1]===t[1]},js=function(e){return`
114
114
  .block-interactivity-`.concat(e,` {pointer-events: none;}
115
115
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
116
- `)},Ns=0,ae=[];function js(e){var t=x.useRef([]),n=x.useRef([0,0]),a=x.useRef(),s=x.useState(Ns++)[0],o=x.useState(Sn)[0],l=x.useRef(e);x.useEffect(function(){l.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=Va([e.lockRef.current],(e.shards||[]).map(Ot),!0).filter(Boolean);return g.forEach(function(h){return h.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var i=x.useCallback(function(g,h){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!l.current.allowPinchZoom;var w=ye(g),m=n.current,v="deltaX"in g?g.deltaX:m[0]-w[0],f="deltaY"in g?g.deltaY:m[1]-w[1],y,_=g.target,S=Math.abs(v)>Math.abs(f)?"h":"v";if("touches"in g&&S==="h"&&_.type==="range")return!1;var C=window.getSelection(),T=C&&C.anchorNode,A=T?T===_||T.contains(_):!1;if(A)return!1;var R=Lt(S,_);if(!R)return!0;if(R?y=S:(y=S==="v"?"h":"v",R=Lt(S,_)),!R)return!1;if(!a.current&&"changedTouches"in g&&(v||f)&&(a.current=y),!y)return!0;var P=a.current||y;return ws(P,h,g,P==="h"?v:f)},[]),u=x.useCallback(function(g){var h=g;if(!(!ae.length||ae[ae.length-1]!==o)){var w="deltaY"in h?Mt(h):ye(h),m=t.current.filter(function(y){return y.name===h.type&&(y.target===h.target||h.target===y.shadowParent)&&ks(y.delta,w)})[0];if(m&&m.should){h.cancelable&&h.preventDefault();return}if(!m){var v=(l.current.shards||[]).map(Ot).filter(Boolean).filter(function(y){return y.contains(h.target)}),f=v.length>0?i(h,v[0]):!l.current.noIsolation;f&&h.cancelable&&h.preventDefault()}}},[]),c=x.useCallback(function(g,h,w,m){var v={name:g,delta:h,target:w,should:m,shadowParent:Es(w)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(f){return f!==v})},1)},[]),d=x.useCallback(function(g){n.current=ye(g),a.current=void 0},[]),p=x.useCallback(function(g){c(g.type,Mt(g),g.target,i(g,e.lockRef.current))},[]),b=x.useCallback(function(g){c(g.type,ye(g),g.target,i(g,e.lockRef.current))},[]);x.useEffect(function(){return ae.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:b}),document.addEventListener("wheel",u,re),document.addEventListener("touchmove",u,re),document.addEventListener("touchstart",d,re),function(){ae=ae.filter(function(g){return g!==o}),document.removeEventListener("wheel",u,re),document.removeEventListener("touchmove",u,re),document.removeEventListener("touchstart",d,re)}},[]);var k=e.removeScrollBar,j=e.inert;return x.createElement(x.Fragment,null,j?x.createElement(o,{styles:Ss(s)}):null,k?x.createElement(ms,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Es(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Cs=ns(kn,js);var Cn=x.forwardRef(function(e,t){return x.createElement(Re,V({},e,{ref:t,sideCar:Cs}))});Cn.classNames=Re.classNames;var Ts=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},se=new WeakMap,_e=new WeakMap,we={},Ke=0,Tn=function(e){return e&&(e.host||Tn(e.parentNode))},As=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=Tn(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ps=function(e,t,n,a){var s=As(t,Array.isArray(e)?e:[e]);we[n]||(we[n]=new WeakMap);var o=we[n],l=[],i=new Set,u=new Set(s),c=function(p){!p||i.has(p)||(i.add(p),c(p.parentNode))};s.forEach(c);var d=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(b){if(i.has(b))d(b);else try{var k=b.getAttribute(a),j=k!==null&&k!=="false",g=(se.get(b)||0)+1,h=(o.get(b)||0)+1;se.set(b,g),o.set(b,h),l.push(b),g===1&&j&&_e.set(b,!0),h===1&&b.setAttribute(n,"true"),j||b.setAttribute(a,"true")}catch(w){console.error("aria-hidden: cannot operate on ",b,w)}})};return d(t),i.clear(),Ke++,function(){l.forEach(function(p){var b=se.get(p)-1,k=o.get(p)-1;se.set(p,b),o.set(p,k),b||(_e.has(p)||p.removeAttribute(a),_e.delete(p)),k||p.removeAttribute(n)}),Ke--,Ke||(se=new WeakMap,se=new WeakMap,_e=new WeakMap,we={})}},Rs=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=Ts(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),Ps(a,s,n,"aria-hidden")):function(){return null}},Fe="Dialog",[An]=le(Fe),[Fs,K]=An(Fe),Pn=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:s,onOpenChange:o,modal:l=!0}=e,i=x.useRef(null),u=x.useRef(null),[c,d]=pe({prop:a,defaultProp:s??!1,onChange:o,caller:Fe});return r.jsx(Fs,{scope:t,triggerRef:i,contentRef:u,contentId:de(),titleId:de(),descriptionId:de(),open:c,onOpenChange:d,onOpenToggle:x.useCallback(()=>d(p=>!p),[d]),modal:l,children:n})};Pn.displayName=Fe;var Rn="DialogTrigger",Fn=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=K(Rn,n),o=U(t,s.triggerRef);return r.jsx(L.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ut(s.open),...a,ref:o,onClick:D(e.onClick,s.onOpenToggle)})});Fn.displayName=Rn;var lt="DialogPortal",[Ds,Dn]=An(lt,{forceMount:void 0}),In=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:s}=e,o=K(lt,t);return r.jsx(Ds,{scope:t,forceMount:n,children:x.Children.map(a,l=>r.jsx(ce,{present:n||o.open,children:r.jsx(it,{asChild:!0,container:s,children:l})}))})};In.displayName=lt;var Te="DialogOverlay",Ln=x.forwardRef((e,t)=>{const n=Dn(Te,e.__scopeDialog),{forceMount:a=n.forceMount,...s}=e,o=K(Te,e.__scopeDialog);return o.modal?r.jsx(ce,{present:a||o.open,children:r.jsx(Ls,{...s,ref:t})}):null});Ln.displayName=Te;var Is=Ce("DialogOverlay.RemoveScroll"),Ls=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=K(Te,n);return r.jsx(Cn,{as:Is,allowPinchZoom:!0,shards:[s.contentRef],children:r.jsx(L.div,{"data-state":ut(s.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),ee="DialogContent",Mn=x.forwardRef((e,t)=>{const n=Dn(ee,e.__scopeDialog),{forceMount:a=n.forceMount,...s}=e,o=K(ee,e.__scopeDialog);return r.jsx(ce,{present:a||o.open,children:o.modal?r.jsx(Ms,{...s,ref:t}):r.jsx(Os,{...s,ref:t})})});Mn.displayName=ee;var Ms=x.forwardRef((e,t)=>{const n=K(ee,e.__scopeDialog),a=x.useRef(null),s=U(t,n.contentRef,a);return x.useEffect(()=>{const o=a.current;if(o)return Rs(o)},[]),r.jsx(On,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:D(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:D(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&o.preventDefault()}),onFocusOutside:D(e.onFocusOutside,o=>o.preventDefault())})}),Os=x.forwardRef((e,t)=>{const n=K(ee,e.__scopeDialog),a=x.useRef(!1),s=x.useRef(!1);return r.jsx(On,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,i;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(a.current||(i=n.triggerRef.current)==null||i.focus(),o.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:o=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),On=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,...l}=e,i=K(ee,n),u=x.useRef(null),c=U(t,u);return Ka(),r.jsxs(r.Fragment,{children:[r.jsx(bn,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:r.jsx(ot,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ut(i.open),...l,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx($s,{titleId:i.titleId}),r.jsx(zs,{contentRef:u,descriptionId:i.descriptionId})]})]})}),ct="DialogTitle",$n=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=K(ct,n);return r.jsx(L.h2,{id:s.titleId,...a,ref:t})});$n.displayName=ct;var Bn="DialogDescription",zn=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=K(Bn,n);return r.jsx(L.p,{id:s.descriptionId,...a,ref:t})});zn.displayName=Bn;var Un="DialogClose",Hn=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=K(Un,n);return r.jsx(L.button,{type:"button",...a,ref:t,onClick:D(e.onClick,()=>s.onOpenChange(!1))})});Hn.displayName=Un;function ut(e){return e?"open":"closed"}var Wn="DialogTitleWarning",[Ml,Gn]=fa(Wn,{contentName:ee,titleName:ct,docsSlug:"dialog"}),$s=({titleId:e})=>{const t=Gn(Wn),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
116
+ `)},Es=0,ae=[];function Cs(e){var t=x.useRef([]),n=x.useRef([0,0]),a=x.useRef(),s=x.useState(Es++)[0],o=x.useState(jn)[0],l=x.useRef(e);x.useEffect(function(){l.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var g=Ya([e.lockRef.current],(e.shards||[]).map(Bt),!0).filter(Boolean);return g.forEach(function(h){return h.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),g.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var i=x.useCallback(function(g,h){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!l.current.allowPinchZoom;var _=ye(g),m=n.current,v="deltaX"in g?g.deltaX:m[0]-_[0],f="deltaY"in g?g.deltaY:m[1]-_[1],y,S=g.target,N=Math.abs(v)>Math.abs(f)?"h":"v";if("touches"in g&&N==="h"&&S.type==="range")return!1;var C=window.getSelection(),T=C&&C.anchorNode,P=T?T===S||T.contains(S):!1;if(P)return!1;var R=Ot(N,S);if(!R)return!0;if(R?y=N:(y=N==="v"?"h":"v",R=Ot(N,S)),!R)return!1;if(!a.current&&"changedTouches"in g&&(v||f)&&(a.current=y),!y)return!0;var A=a.current||y;return Ss(A,h,g,A==="h"?v:f)},[]),u=x.useCallback(function(g){var h=g;if(!(!ae.length||ae[ae.length-1]!==o)){var _="deltaY"in h?$t(h):ye(h),m=t.current.filter(function(y){return y.name===h.type&&(y.target===h.target||h.target===y.shadowParent)&&Ns(y.delta,_)})[0];if(m&&m.should){h.cancelable&&h.preventDefault();return}if(!m){var v=(l.current.shards||[]).map(Bt).filter(Boolean).filter(function(y){return y.contains(h.target)}),f=v.length>0?i(h,v[0]):!l.current.noIsolation;f&&h.cancelable&&h.preventDefault()}}},[]),c=x.useCallback(function(g,h,_,m){var v={name:g,delta:h,target:_,should:m,shadowParent:Ts(_)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(f){return f!==v})},1)},[]),d=x.useCallback(function(g){n.current=ye(g),a.current=void 0},[]),p=x.useCallback(function(g){c(g.type,$t(g),g.target,i(g,e.lockRef.current))},[]),b=x.useCallback(function(g){c(g.type,ye(g),g.target,i(g,e.lockRef.current))},[]);x.useEffect(function(){return ae.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:b}),document.addEventListener("wheel",u,re),document.addEventListener("touchmove",u,re),document.addEventListener("touchstart",d,re),function(){ae=ae.filter(function(g){return g!==o}),document.removeEventListener("wheel",u,re),document.removeEventListener("touchmove",u,re),document.removeEventListener("touchstart",d,re)}},[]);var w=e.removeScrollBar,j=e.inert;return x.createElement(x.Fragment,null,j?x.createElement(o,{styles:js(s)}):null,w?x.createElement(gs,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ts(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const As=as(Nn,Cs);var An=x.forwardRef(function(e,t){return x.createElement(Fe,K({},e,{ref:t,sideCar:As}))});An.classNames=Fe.classNames;var Ps=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},se=new WeakMap,_e=new WeakMap,we={},Ke=0,Pn=function(e){return e&&(e.host||Pn(e.parentNode))},Rs=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=Pn(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Fs=function(e,t,n,a){var s=Rs(t,Array.isArray(e)?e:[e]);we[n]||(we[n]=new WeakMap);var o=we[n],l=[],i=new Set,u=new Set(s),c=function(p){!p||i.has(p)||(i.add(p),c(p.parentNode))};s.forEach(c);var d=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(b){if(i.has(b))d(b);else try{var w=b.getAttribute(a),j=w!==null&&w!=="false",g=(se.get(b)||0)+1,h=(o.get(b)||0)+1;se.set(b,g),o.set(b,h),l.push(b),g===1&&j&&_e.set(b,!0),h===1&&b.setAttribute(n,"true"),j||b.setAttribute(a,"true")}catch(_){console.error("aria-hidden: cannot operate on ",b,_)}})};return d(t),i.clear(),Ke++,function(){l.forEach(function(p){var b=se.get(p)-1,w=o.get(p)-1;se.set(p,b),o.set(p,w),b||(_e.has(p)||p.removeAttribute(a),_e.delete(p)),w||p.removeAttribute(n)}),Ke--,Ke||(se=new WeakMap,se=new WeakMap,_e=new WeakMap,we={})}},Ds=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=Ps(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),Fs(a,s,n,"aria-hidden")):function(){return null}},De="Dialog",[Rn]=le(De),[Is,V]=Rn(De),Fn=e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:s,onOpenChange:o,modal:l=!0}=e,i=x.useRef(null),u=x.useRef(null),[c,d]=pe({prop:a,defaultProp:s??!1,onChange:o,caller:De});return r.jsx(Is,{scope:t,triggerRef:i,contentRef:u,contentId:de(),titleId:de(),descriptionId:de(),open:c,onOpenChange:d,onOpenToggle:x.useCallback(()=>d(p=>!p),[d]),modal:l,children:n})};Fn.displayName=De;var Dn="DialogTrigger",In=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=V(Dn,n),o=U(t,s.triggerRef);return r.jsx(L.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":dt(s.open),...a,ref:o,onClick:I(e.onClick,s.onOpenToggle)})});In.displayName=Dn;var ct="DialogPortal",[Ls,Ln]=Rn(ct,{forceMount:void 0}),Mn=e=>{const{__scopeDialog:t,forceMount:n,children:a,container:s}=e,o=V(ct,t);return r.jsx(Ls,{scope:t,forceMount:n,children:x.Children.map(a,l=>r.jsx(ce,{present:n||o.open,children:r.jsx(lt,{asChild:!0,container:s,children:l})}))})};Mn.displayName=ct;var Te="DialogOverlay",On=x.forwardRef((e,t)=>{const n=Ln(Te,e.__scopeDialog),{forceMount:a=n.forceMount,...s}=e,o=V(Te,e.__scopeDialog);return o.modal?r.jsx(ce,{present:a||o.open,children:r.jsx(Os,{...s,ref:t})}):null});On.displayName=Te;var Ms=Ce("DialogOverlay.RemoveScroll"),Os=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=V(Te,n);return r.jsx(An,{as:Ms,allowPinchZoom:!0,shards:[s.contentRef],children:r.jsx(L.div,{"data-state":dt(s.open),...a,ref:t,style:{pointerEvents:"auto",...a.style}})})}),ee="DialogContent",$n=x.forwardRef((e,t)=>{const n=Ln(ee,e.__scopeDialog),{forceMount:a=n.forceMount,...s}=e,o=V(ee,e.__scopeDialog);return r.jsx(ce,{present:a||o.open,children:o.modal?r.jsx($s,{...s,ref:t}):r.jsx(Bs,{...s,ref:t})})});$n.displayName=ee;var $s=x.forwardRef((e,t)=>{const n=V(ee,e.__scopeDialog),a=x.useRef(null),s=U(t,n.contentRef,a);return x.useEffect(()=>{const o=a.current;if(o)return Ds(o)},[]),r.jsx(Bn,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:I(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:I(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&o.preventDefault()}),onFocusOutside:I(e.onFocusOutside,o=>o.preventDefault())})}),Bs=x.forwardRef((e,t)=>{const n=V(ee,e.__scopeDialog),a=x.useRef(!1),s=x.useRef(!1);return r.jsx(Bn,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,i;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(a.current||(i=n.triggerRef.current)==null||i.focus(),o.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:o=>{var u,c;(u=e.onInteractOutside)==null||u.call(e,o),o.defaultPrevented||(a.current=!0,o.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=o.target;((c=n.triggerRef.current)==null?void 0:c.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&s.current&&o.preventDefault()}})}),Bn=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:o,...l}=e,i=V(ee,n),u=x.useRef(null),c=U(t,u);return qa(),r.jsxs(r.Fragment,{children:[r.jsx(_n,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:o,children:r.jsx(it,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":dt(i.open),...l,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(zs,{titleId:i.titleId}),r.jsx(Hs,{contentRef:u,descriptionId:i.descriptionId})]})]})}),ut="DialogTitle",zn=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=V(ut,n);return r.jsx(L.h2,{id:s.titleId,...a,ref:t})});zn.displayName=ut;var Un="DialogDescription",Hn=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=V(Un,n);return r.jsx(L.p,{id:s.descriptionId,...a,ref:t})});Hn.displayName=Un;var Wn="DialogClose",Gn=x.forwardRef((e,t)=>{const{__scopeDialog:n,...a}=e,s=V(Wn,n);return r.jsx(L.button,{type:"button",...a,ref:t,onClick:I(e.onClick,()=>s.onOpenChange(!1))})});Gn.displayName=Wn;function dt(e){return e?"open":"closed"}var Vn="DialogTitleWarning",[Ul,Kn]=ma(Vn,{contentName:ee,titleName:ut,docsSlug:"dialog"}),zs=({titleId:e})=>{const t=Kn(Vn),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
117
117
 
118
118
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
119
119
 
120
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Bs="DialogDescriptionWarning",zs=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gn(Bs).contentName}}.`;return x.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},dt=Pn,pt=Fn,ft=In,vt=Ln,mt=Mn,ht=$n,gt=zn,Ae=Hn;function Us({trigger:e,title:t,description:n,children:a,footer:s,className:o,...l}){return r.jsxs(dt,{...l,children:[r.jsx(pt,{asChild:!0,children:e}),r.jsxs(ft,{children:[r.jsx(vt,{className:"vx-dialog__overlay"}),r.jsxs(mt,{className:E("vx-dialog__content",o),children:[r.jsxs("div",{className:"vx-dialog__header",children:[r.jsxs("div",{children:[r.jsx(ht,{className:"vx-dialog__title",children:t}),n?r.jsx(gt,{className:"vx-dialog__description",children:n}):null]}),r.jsx(Ae,{className:"vx-dialog__close","aria-label":"Close dialog",children:r.jsx(ie,{size:16})})]}),r.jsx("div",{className:"vx-dialog__body",children:a}),s?r.jsx("div",{className:"vx-dialog__footer",children:s}):null]})]})]})}function Hs({className:e,label:t,hint:n,prefix:a,suffix:s,error:o,...l}){return r.jsxs("label",{className:"vx-field-group",children:[t?r.jsx("span",{className:"vx-field-group__label",children:t}):null,r.jsxs("span",{className:E("vx-input",o&&"vx-input--invalid",e),children:[a?r.jsx("span",{className:"vx-input__ornament",children:a}):null,r.jsx("input",{className:"vx-input__field","aria-invalid":o?"true":void 0,...l}),s?r.jsx("span",{className:"vx-input__ornament",children:s}):null]}),o?r.jsx("span",{className:"vx-field-group__error",children:o}):null,!o&&n?r.jsx("span",{className:"vx-field-group__hint",children:n}):null]})}function Ws(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Gs(e){const[t,n]=x.useState(void 0);return J(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let l,i;if("borderBoxSize"in o){const u=o.borderBoxSize,c=Array.isArray(u)?u[0]:u;l=c.inlineSize,i=c.blockSize}else l=e.offsetWidth,i=e.offsetHeight;n({width:l,height:i})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}var De="Switch",[Ks]=le(De),[Vs,Ys]=Ks(De),Kn=x.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:s,defaultChecked:o,required:l,disabled:i,value:u="on",onCheckedChange:c,form:d,...p}=e,[b,k]=x.useState(null),j=U(t,v=>k(v)),g=x.useRef(!1),h=b?d||!!b.closest("form"):!0,[w,m]=pe({prop:s,defaultProp:o??!1,onChange:c,caller:De});return r.jsxs(Vs,{scope:n,checked:w,disabled:i,children:[r.jsx(L.button,{type:"button",role:"switch","aria-checked":w,"aria-required":l,"data-state":Xn(w),"data-disabled":i?"":void 0,disabled:i,value:u,...p,ref:j,onClick:D(e.onClick,v=>{m(f=>!f),h&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),h&&r.jsx(qn,{control:b,bubbles:!g.current,name:a,value:u,checked:w,required:l,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})});Kn.displayName=De;var Vn="SwitchThumb",Yn=x.forwardRef((e,t)=>{const{__scopeSwitch:n,...a}=e,s=Ys(Vn,n);return r.jsx(L.span,{"data-state":Xn(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})});Yn.displayName=Vn;var qs="SwitchBubbleInput",qn=x.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...s},o)=>{const l=x.useRef(null),i=U(l,o),u=Ws(n),c=Gs(t);return x.useEffect(()=>{const d=l.current;if(!d)return;const p=window.HTMLInputElement.prototype,k=Object.getOwnPropertyDescriptor(p,"checked").set;if(u!==n&&k){const j=new Event("click",{bubbles:a});k.call(d,n),d.dispatchEvent(j)}},[u,n,a]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:i,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});qn.displayName=qs;function Xn(e){return e?"checked":"unchecked"}var Xs=Kn,Zs=Yn;function Qs({className:e,label:t,description:n,...a}){return r.jsxs("label",{className:"vx-switch",children:[r.jsxs("span",{className:"vx-switch__copy",children:[r.jsx("span",{className:"vx-switch__label",children:t}),n?r.jsx("span",{className:"vx-switch__description",children:n}):null]}),r.jsx(Xs,{className:E("vx-switch__control",e),...a,children:r.jsx(Zs,{className:"vx-switch__thumb"})})]})}function Zn(e){const t=e+"CollectionProvider",[n,a]=le(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=g=>{const{scope:h,children:w}=g,m=N.useRef(null),v=N.useRef(new Map).current;return r.jsx(s,{scope:h,itemMap:v,collectionRef:m,children:w})};l.displayName=t;const i=e+"CollectionSlot",u=Ce(i),c=N.forwardRef((g,h)=>{const{scope:w,children:m}=g,v=o(i,w),f=U(h,v.collectionRef);return r.jsx(u,{ref:f,children:m})});c.displayName=i;const d=e+"CollectionItemSlot",p="data-radix-collection-item",b=Ce(d),k=N.forwardRef((g,h)=>{const{scope:w,children:m,...v}=g,f=N.useRef(null),y=U(h,f),_=o(d,w);return N.useEffect(()=>(_.itemMap.set(f,{ref:f,...v}),()=>void _.itemMap.delete(f))),r.jsx(b,{[p]:"",ref:y,children:m})});k.displayName=d;function j(g){const h=o(e+"CollectionConsumer",g);return N.useCallback(()=>{const m=h.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((_,S)=>v.indexOf(_.ref.current)-v.indexOf(S.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:l,Slot:c,ItemSlot:k},j,a]}var Js=x.createContext(void 0);function Qn(e){const t=x.useContext(Js);return e||t||"ltr"}var Ve="rovingFocusGroup.onEntryFocus",eo={bubbles:!1,cancelable:!0},fe="RovingFocusGroup",[Je,Jn,to]=Zn(fe),[no,er]=le(fe,[to]),[ro,ao]=no(fe),tr=x.forwardRef((e,t)=>r.jsx(Je.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(Je.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(so,{...e,ref:t})})}));tr.displayName=fe;var so=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:s=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...p}=e,b=x.useRef(null),k=U(t,b),j=Qn(o),[g,h]=pe({prop:l,defaultProp:i??null,onChange:u,caller:fe}),[w,m]=x.useState(!1),v=Y(c),f=Jn(n),y=x.useRef(!1),[_,S]=x.useState(0);return x.useEffect(()=>{const C=b.current;if(C)return C.addEventListener(Ve,v),()=>C.removeEventListener(Ve,v)},[v]),r.jsx(ro,{scope:n,orientation:a,dir:j,loop:s,currentTabStopId:g,onItemFocus:x.useCallback(C=>h(C),[h]),onItemShiftTab:x.useCallback(()=>m(!0),[]),onFocusableItemAdd:x.useCallback(()=>S(C=>C+1),[]),onFocusableItemRemove:x.useCallback(()=>S(C=>C-1),[]),children:r.jsx(L.div,{tabIndex:w||_===0?-1:0,"data-orientation":a,...p,ref:k,style:{outline:"none",...e.style},onMouseDown:D(e.onMouseDown,()=>{y.current=!0}),onFocus:D(e.onFocus,C=>{const T=!y.current;if(C.target===C.currentTarget&&T&&!w){const A=new CustomEvent(Ve,eo);if(C.currentTarget.dispatchEvent(A),!A.defaultPrevented){const R=f().filter($=>$.focusable),P=R.find($=>$.active),I=R.find($=>$.id===g),O=[P,I,...R].filter(Boolean).map($=>$.ref.current);ar(O,d)}}y.current=!1}),onBlur:D(e.onBlur,()=>m(!1))})})}),nr="RovingFocusGroupItem",rr=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:s=!1,tabStopId:o,children:l,...i}=e,u=de(),c=o||u,d=ao(nr,n),p=d.currentTabStopId===c,b=Jn(n),{onFocusableItemAdd:k,onFocusableItemRemove:j,currentTabStopId:g}=d;return x.useEffect(()=>{if(a)return k(),()=>j()},[a,k,j]),r.jsx(Je.ItemSlot,{scope:n,id:c,focusable:a,active:s,children:r.jsx(L.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:D(e.onMouseDown,h=>{a?d.onItemFocus(c):h.preventDefault()}),onFocus:D(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:D(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){d.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const w=lo(h,d.orientation,d.dir);if(w!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let v=b().filter(f=>f.focusable).map(f=>f.ref.current);if(w==="last")v.reverse();else if(w==="prev"||w==="next"){w==="prev"&&v.reverse();const f=v.indexOf(h.currentTarget);v=d.loop?co(v,f+1):v.slice(f+1)}setTimeout(()=>ar(v))}}),children:typeof l=="function"?l({isCurrentTabStop:p,hasTabStop:g!=null}):l})})});rr.displayName=nr;var oo={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function io(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function lo(e,t,n){const a=io(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return oo[a]}function ar(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function co(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var uo=tr,po=rr,Ie="Tabs",[fo]=le(Ie,[er]),sr=er(),[vo,xt]=fo(Ie),or=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,onValueChange:s,defaultValue:o,orientation:l="horizontal",dir:i,activationMode:u="automatic",...c}=e,d=Qn(i),[p,b]=pe({prop:a,onChange:s,defaultProp:o??"",caller:Ie});return r.jsx(vo,{scope:n,baseId:de(),value:p,onValueChange:b,orientation:l,dir:d,activationMode:u,children:r.jsx(L.div,{dir:d,"data-orientation":l,...c,ref:t})})});or.displayName=Ie;var ir="TabsList",lr=x.forwardRef((e,t)=>{const{__scopeTabs:n,loop:a=!0,...s}=e,o=xt(ir,n),l=sr(n);return r.jsx(uo,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:a,children:r.jsx(L.div,{role:"tablist","aria-orientation":o.orientation,...s,ref:t})})});lr.displayName=ir;var cr="TabsTrigger",ur=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,disabled:s=!1,...o}=e,l=xt(cr,n),i=sr(n),u=fr(l.baseId,a),c=vr(l.baseId,a),d=a===l.value;return r.jsx(po,{asChild:!0,...i,focusable:!s,active:d,children:r.jsx(L.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:u,...o,ref:t,onMouseDown:D(e.onMouseDown,p=>{!s&&p.button===0&&p.ctrlKey===!1?l.onValueChange(a):p.preventDefault()}),onKeyDown:D(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&l.onValueChange(a)}),onFocus:D(e.onFocus,()=>{const p=l.activationMode!=="manual";!d&&!s&&p&&l.onValueChange(a)})})})});ur.displayName=cr;var dr="TabsContent",pr=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,forceMount:s,children:o,...l}=e,i=xt(dr,n),u=fr(i.baseId,a),c=vr(i.baseId,a),d=a===i.value,p=x.useRef(d);return x.useEffect(()=>{const b=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(b)},[]),r.jsx(ce,{present:s||d,children:({present:b})=>r.jsx(L.div,{"data-state":d?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":u,hidden:!b,id:c,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:b&&o})})});pr.displayName=dr;function fr(e,t){return`${e}-trigger-${t}`}function vr(e,t){return`${e}-content-${t}`}var mo=or,ho=lr,go=ur,xo=pr;const bo=mo,yo=N.forwardRef(function({className:t,...n},a){return r.jsx(ho,{ref:a,className:E("vx-tabs__list",t),...n})}),_o=N.forwardRef(function({className:t,...n},a){return r.jsx(go,{ref:a,className:E("vx-tabs__trigger",t),...n})}),wo=N.forwardRef(function({className:t,...n},a){return r.jsx(xo,{ref:a,className:E("vx-tabs__content",t),...n})}),mr={light:{label:"Light",mode:"light"},dark:{label:"Dark",mode:"dark"}};function H(e,t={}){return{label:t.label,mode:e,tokens:t.tokens}}const ko={...mr,sunset:H("light",{label:"Sunset",tokens:{"--vx-primary":"#c2410c","--vx-primary-strong":"#9a3412","--vx-primary-soft":"rgba(194, 65, 12, 0.12)","--vx-secondary":"#9a3412","--vx-bg":"#fff7ed","--vx-bg-accent":"#ffedd5","--vx-surface-hover":"#fffaf5","--vx-border":"#fed7aa","--vx-border-strong":"#fdba74","--vx-text":"#431407","--vx-text-secondary":"#9a3412","--vx-text-muted":"#b45309","--vx-shadow-sm":"0 1px 2px rgba(124, 45, 18, 0.08)","--vx-shadow":"0 14px 32px rgba(124, 45, 18, 0.08)","--vx-shadow-lg":"0 28px 64px rgba(124, 45, 18, 0.12)"}}),mint:H("light",{label:"Mint",tokens:{"--vx-primary":"#0f766e","--vx-primary-strong":"#115e59","--vx-primary-soft":"rgba(15, 118, 110, 0.12)","--vx-secondary":"#0f766e","--vx-bg":"#f0fdfa","--vx-bg-accent":"#ccfbf1","--vx-surface-hover":"#f6fffd","--vx-border":"#99f6e4","--vx-border-strong":"#5eead4","--vx-text":"#042f2e","--vx-text-secondary":"#115e59","--vx-text-muted":"#0f766e","--vx-shadow-sm":"0 1px 2px rgba(4, 47, 46, 0.08)","--vx-shadow":"0 14px 32px rgba(4, 47, 46, 0.08)","--vx-shadow-lg":"0 28px 64px rgba(4, 47, 46, 0.12)"}}),graphite:H("dark",{label:"Graphite",tokens:{"--vx-primary":"#f59e0b","--vx-primary-strong":"#d97706","--vx-primary-soft":"rgba(245, 158, 11, 0.16)","--vx-bg":"#111111","--vx-bg-accent":"#191919","--vx-surface":"#18181b","--vx-surface-strong":"#111111","--vx-surface-hover":"#222225","--vx-border":"rgba(244, 244, 245, 0.10)","--vx-border-strong":"rgba(244, 244, 245, 0.18)","--vx-text":"#fafafa","--vx-text-secondary":"#d4d4d8","--vx-text-muted":"#a1a1aa","--vx-shadow-sm":"0 1px 2px rgba(0, 0, 0, 0.34)","--vx-shadow":"0 20px 44px rgba(0, 0, 0, 0.28)","--vx-shadow-lg":"0 30px 72px rgba(0, 0, 0, 0.38)"}}),"ivory-gold":H("light",{label:"Ivory Gold",tokens:{"--vx-primary":"#a0742a","--vx-primary-strong":"#7d5a1e","--vx-primary-soft":"rgba(160, 116, 42, 0.12)","--vx-bg":"#faf6ee","--vx-bg-accent":"#f2ead8","--vx-surface":"#ffffff","--vx-surface-strong":"#faf6ee","--vx-surface-hover":"#f6f0e4","--vx-border":"rgba(160, 116, 42, 0.18)","--vx-border-strong":"rgba(160, 116, 42, 0.38)","--vx-text":"#1c1409","--vx-text-secondary":"#5a4320","--vx-text-muted":"#9a7c4a","--vx-shadow-sm":"0 1px 2px rgba(90, 67, 32, 0.08)","--vx-shadow":"0 12px 32px rgba(90, 67, 32, 0.10)","--vx-shadow-lg":"0 28px 64px rgba(90, 67, 32, 0.14)","--vx-success":"#1a9e6e","--vx-warning":"#c4820a","--vx-danger":"#d63b3b"}}),"black-gold":H("dark",{label:"Black Gold",tokens:{"--vx-primary":"#c8a97c","--vx-primary-strong":"#9a7545","--vx-primary-soft":"rgba(200, 169, 124, 0.16)","--vx-bg":"#05070b","--vx-bg-accent":"#0a0d14","--vx-surface":"rgba(15, 18, 25, 0.76)","--vx-surface-strong":"rgba(18, 21, 29, 0.9)","--vx-surface-hover":"rgba(245, 233, 215, 0.1)","--vx-border":"rgba(245, 233, 215, 0.12)","--vx-border-strong":"rgba(200, 169, 124, 0.42)","--vx-text":"#f5e9d7","--vx-text-secondary":"#d7c8b2","--vx-text-muted":"#928a81","--vx-shadow-sm":"0 1px 2px rgba(0, 0, 0, 0.4)","--vx-shadow":"0 0 42px rgba(200, 169, 124, 0.16)","--vx-shadow-lg":"0 34px 120px rgba(0, 0, 0, 0.62)","--vx-success":"#32d49a","--vx-warning":"#e6ad64","--vx-danger":"#ef6a64"}}),ocean:H("dark",{label:"Ocean",tokens:{"--vx-primary":"#38bdf8","--vx-primary-strong":"#0ea5e9","--vx-primary-soft":"rgba(56, 189, 248, 0.16)","--vx-bg":"#06131f","--vx-bg-accent":"#0b1a2b","--vx-surface":"#0d2236","--vx-surface-strong":"#06131f","--vx-surface-hover":"#13314d","--vx-border":"rgba(125, 211, 252, 0.16)","--vx-border-strong":"rgba(56, 189, 248, 0.24)","--vx-text":"#e0f2fe","--vx-text-secondary":"#bae6fd","--vx-text-muted":"#7dd3fc","--vx-shadow-sm":"0 1px 2px rgba(2, 6, 23, 0.34)","--vx-shadow":"0 20px 44px rgba(2, 6, 23, 0.28)","--vx-shadow-lg":"0 30px 72px rgba(2, 6, 23, 0.4)"}}),indigo:H("light",{label:"Indigo",tokens:{"--vx-primary":"#5c5fe8","--vx-primary-strong":"#4f52d4","--vx-primary-soft":"rgba(92, 95, 232, 0.10)","--vx-secondary":"#818cf8","--vx-success":"#059669","--vx-warning":"#d97706","--vx-danger":"#dc2626","--vx-info":"#5c5fe8","--vx-bg":"#e8ecf6","--vx-bg-accent":"#dde3f0","--vx-surface":"#ffffff","--vx-surface-strong":"#f8f9ff","--vx-surface-hover":"#f4f5ff","--vx-border":"#d4daf0","--vx-border-strong":"#bfc8e8","--vx-text":"#1a2336","--vx-text-secondary":"#4a5572","--vx-text-muted":"#8b96b4","--vx-shadow-sm":"0 1px 3px rgba(28, 40, 80, 0.08)","--vx-shadow":"0 8px 28px rgba(28, 40, 80, 0.10)","--vx-shadow-lg":"0 24px 60px rgba(28, 40, 80, 0.14)","--vx-glass-bg":"color-mix(in srgb, #ffffff 86%, transparent)","--vx-glass-bg-strong":"color-mix(in srgb, #f8f9ff 93%, transparent)","--vx-glass-border":"rgba(92, 95, 232, 0.18)","--vx-glass-shadow":"0 16px 44px rgba(28, 40, 80, 0.12)","--vx-glass-highlight":"inset 0 1px 0 rgba(255, 255, 255, 0.70)","--vx-radius-sm":"10px","--vx-radius":"12px","--vx-radius-lg":"16px","--vx-radius-xl":"22px"}}),violet:H("light",{label:"Violet",tokens:{"--vx-primary":"#7c3aed","--vx-primary-strong":"#6d28d9","--vx-primary-soft":"rgba(124, 58, 237, 0.10)","--vx-secondary":"#8b5cf6","--vx-success":"#059669","--vx-warning":"#d97706","--vx-danger":"#dc2626","--vx-info":"#6d28d9","--vx-bg":"#f8f7ff","--vx-bg-accent":"#ede9fe","--vx-surface":"#ffffff","--vx-surface-strong":"#faf9ff","--vx-surface-hover":"#f5f3ff","--vx-border":"#e4dfff","--vx-border-strong":"#c9bffd","--vx-text":"#1e1b2e","--vx-text-secondary":"#6e6a8a","--vx-text-muted":"#a89fc8","--vx-shadow-sm":"0 1px 3px rgba(109, 40, 217, 0.07)","--vx-shadow":"0 12px 32px rgba(109, 40, 217, 0.10)","--vx-shadow-lg":"0 28px 64px rgba(109, 40, 217, 0.14)","--vx-glass-bg":"color-mix(in srgb, #ffffff 84%, transparent)","--vx-glass-bg-strong":"color-mix(in srgb, #faf9ff 92%, transparent)","--vx-glass-border":"rgba(196, 181, 253, 0.55)","--vx-glass-shadow":"0 18px 48px rgba(109, 40, 217, 0.12)","--vx-glass-highlight":"inset 0 1px 0 rgba(255, 255, 255, 0.60)","--vx-radius-sm":"10px","--vx-radius":"12px","--vx-radius-lg":"16px","--vx-radius-xl":"24px"}}),"violet-dark":H("dark",{label:"Violet Dark",tokens:{"--vx-primary":"#a78bfa","--vx-primary-strong":"#8b5cf6","--vx-primary-soft":"rgba(167, 139, 250, 0.16)","--vx-secondary":"#c4b5fd","--vx-success":"#34d399","--vx-warning":"#fbbf24","--vx-danger":"#f87171","--vx-info":"#c4b5fd","--vx-bg":"#0d0b1a","--vx-bg-accent":"#13102a","--vx-surface":"#1a1735","--vx-surface-strong":"#0d0b1a","--vx-surface-hover":"#1e1b3a","--vx-border":"rgba(167, 139, 250, 0.16)","--vx-border-strong":"rgba(167, 139, 250, 0.30)","--vx-text":"#f0eeff","--vx-text-secondary":"#c4b5fd","--vx-text-muted":"#8b7fc8","--vx-shadow-sm":"0 1px 3px rgba(0, 0, 0, 0.40)","--vx-shadow":"0 18px 44px rgba(0, 0, 0, 0.30)","--vx-shadow-lg":"0 30px 72px rgba(0, 0, 0, 0.44)","--vx-glass-bg":"color-mix(in srgb, #1a1735 86%, transparent)","--vx-glass-bg-strong":"color-mix(in srgb, #0d0b1a 94%, transparent)","--vx-glass-border":"rgba(167, 139, 250, 0.22)","--vx-glass-shadow":"0 22px 54px rgba(0, 0, 0, 0.50)","--vx-glass-highlight":"inset 0 1px 0 rgba(255, 255, 255, 0.07)","--vx-glass-scrim":"color-mix(in srgb, #04030d 62%, transparent)","--vx-radius-sm":"10px","--vx-radius":"12px","--vx-radius-lg":"16px","--vx-radius-xl":"24px"}}),vxai:H("light",{label:"VXAI (Default)",tokens:{"--vx-primary":"#4f46e5","--vx-primary-strong":"#4338ca","--vx-primary-soft":"rgba(79, 70, 229, 0.1)","--vx-secondary":"#64748b","--vx-success":"#10b981","--vx-warning":"#f59e0b","--vx-danger":"#ef4444","--vx-info":"#4f46e5","--vx-bg":"#f8fafc","--vx-bg-accent":"#f1f5f9","--vx-surface":"#ffffff","--vx-surface-strong":"#f8fafc","--vx-surface-hover":"#f1f5f9","--vx-border":"#e2e8f0","--vx-border-strong":"#cbd5e1","--vx-text":"#0f172a","--vx-text-secondary":"#334155","--vx-text-muted":"#64748b","--vx-shadow-sm":"0 1px 2px -1px rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1)","--vx-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)","--vx-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)","--vx-glass-bg":"rgba(255, 255, 255, 0.8)","--vx-glass-bg-strong":"rgba(255, 255, 255, 0.95)","--vx-glass-border":"#e2e8f0","--vx-glass-shadow":"none","--vx-glass-highlight":"none","--vx-radius-sm":"4px","--vx-radius":"6px","--vx-radius-lg":"8px","--vx-radius-xl":"12px"}}),"vxai-dark":H("dark",{label:"VXAI Dark",tokens:{"--vx-primary":"#6366f1","--vx-primary-strong":"#4f46e5","--vx-primary-soft":"rgba(99, 102, 241, 0.16)","--vx-secondary":"#cbd5e1","--vx-success":"#34d399","--vx-warning":"#fbbf24","--vx-danger":"#f87171","--vx-info":"#6366f1","--vx-bg":"#020617","--vx-bg-accent":"#0f172a","--vx-surface":"#0f172a","--vx-surface-strong":"#020617","--vx-surface-hover":"#1e293b","--vx-border":"oklch(27.8% 0.033 256.848)","--vx-border-strong":"#334155","--vx-text":"oklch(96.8% 0.007 247.896)","--vx-text-secondary":"#94a3b8","--vx-text-muted":"#64748b","--vx-shadow-sm":"0 1px 2px -1px rgba(0, 0, 0, 0.4), 0 1px 3px 0 rgba(0, 0, 0, 0.4)","--vx-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4)","--vx-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4)","--vx-glass-bg":"rgba(15, 23, 42, 0.7)","--vx-glass-bg-strong":"rgba(15, 23, 42, 0.95)","--vx-glass-border":"oklch(27.8% 0.033 256.848)","--vx-glass-shadow":"none","--vx-glass-highlight":"none","--vx-radius-sm":"4px","--vx-radius":"6px","--vx-radius-lg":"8px","--vx-radius-xl":"12px"}})};function So(e){return{...mr,...e}}function No(e,t){if(e&&t[e])return e;if(t.light)return"light";const[n]=Object.keys(t);return n??"light"}function jo(e,t){const n=window.localStorage.getItem(e);return n&&t[n]?n:null}function Eo(e,t,n){var s;if(((s=e[n])==null?void 0:s.mode)===t)return n;const a=Object.entries(e).find(([,o])=>o.mode===t);return a==null?void 0:a[0]}const hr=N.createContext(null);function Co({children:e,defaultTheme:t="light",storageKey:n="vxui-react-theme",themes:a}){const s=N.useMemo(()=>So(a),[a]),o=N.useMemo(()=>No(t,s),[t,s]),l=N.useRef([]),[i,u]=N.useState(()=>typeof window>"u"?o:jo(n,s)??o),c=s[i]?i:o,d=s[c];N.useEffect(()=>{i!==c&&u(c)},[c,i]),N.useEffect(()=>{const b=document.documentElement;for(const j of l.current)b.style.removeProperty(j);b.dataset.theme=d.mode,b.dataset.themeName=c;const k=Object.entries(d.tokens??{}).filter(j=>typeof j[1]=="string"&&j[1].length>0);for(const[j,g]of k)b.style.setProperty(j,g);l.current=k.map(([j])=>j),window.localStorage.setItem(n,c)},[d,c,n]);const p=N.useMemo(()=>({theme:c,mode:d.mode,themes:s,setTheme:b=>{u(s[b]?b:o)},toggleTheme:()=>{u(b=>{const j=(s[b]??d).mode==="light"?"dark":"light";return Eo(s,j,j)??b})}}),[d,o,s,c]);return r.jsx(hr.Provider,{value:p,children:e})}function To(){const e=N.useContext(hr);if(!e)throw new Error("useTheme must be used within ThemeProvider.");return e}var Ao=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Po="VisuallyHidden",bt=x.forwardRef((e,t)=>r.jsx(L.span,{...e,ref:t,style:{...Ao,...e.style}}));bt.displayName=Po;var yt="ToastProvider",[_t,Ro,Fo]=Zn("Toast"),[gr]=le("Toast",[Fo]),[Do,Le]=gr(yt),xr=e=>{const{__scopeToast:t,label:n="Notification",duration:a=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:l}=e,[i,u]=x.useState(null),[c,d]=x.useState(0),p=x.useRef(!1),b=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${yt}\`. Expected non-empty \`string\`.`),r.jsx(_t.Provider,{scope:t,children:r.jsx(Do,{scope:t,label:n,duration:a,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:i,onViewportChange:u,onToastAdd:x.useCallback(()=>d(k=>k+1),[]),onToastRemove:x.useCallback(()=>d(k=>k-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:b,children:l})})};xr.displayName=yt;var br="ToastViewport",Io=["F8"],et="toast.viewportPause",tt="toast.viewportResume",yr=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:a=Io,label:s="Notifications ({hotkey})",...o}=e,l=Le(br,n),i=Ro(n),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),b=U(t,p,l.onViewportChange),k=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=l.toastCount>0;x.useEffect(()=>{const h=w=>{var v;a.length!==0&&a.every(f=>w[f]||w.code===f)&&((v=p.current)==null||v.focus())};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[a]),x.useEffect(()=>{const h=u.current,w=p.current;if(j&&h&&w){const m=()=>{if(!l.isClosePausedRef.current){const _=new CustomEvent(et);w.dispatchEvent(_),l.isClosePausedRef.current=!0}},v=()=>{if(l.isClosePausedRef.current){const _=new CustomEvent(tt);w.dispatchEvent(_),l.isClosePausedRef.current=!1}},f=_=>{!h.contains(_.relatedTarget)&&v()},y=()=>{h.contains(document.activeElement)||v()};return h.addEventListener("focusin",m),h.addEventListener("focusout",f),h.addEventListener("pointermove",m),h.addEventListener("pointerleave",y),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{h.removeEventListener("focusin",m),h.removeEventListener("focusout",f),h.removeEventListener("pointermove",m),h.removeEventListener("pointerleave",y),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[j,l.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:h})=>{const m=i().map(v=>{const f=v.ref.current,y=[f,...qo(f)];return h==="forwards"?y:y.reverse()});return(h==="forwards"?m.reverse():m).flat()},[i]);return x.useEffect(()=>{const h=p.current;if(h){const w=m=>{var y,_,S;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const C=document.activeElement,T=m.shiftKey;if(m.target===h&&T){(y=c.current)==null||y.focus();return}const P=g({tabbingDirection:T?"backwards":"forwards"}),I=P.findIndex(F=>F===C);Ye(P.slice(I+1))?m.preventDefault():T?(_=c.current)==null||_.focus():(S=d.current)==null||S.focus()}};return h.addEventListener("keydown",w),()=>h.removeEventListener("keydown",w)}},[i,g]),r.jsxs(Da,{ref:u,role:"region","aria-label":s.replace("{hotkey}",k),tabIndex:-1,style:{pointerEvents:j?void 0:"none"},children:[j&&r.jsx(nt,{ref:c,onFocusFromOutsideViewport:()=>{const h=g({tabbingDirection:"forwards"});Ye(h)}}),r.jsx(_t.Slot,{scope:n,children:r.jsx(L.ol,{tabIndex:-1,...o,ref:b})}),j&&r.jsx(nt,{ref:d,onFocusFromOutsideViewport:()=>{const h=g({tabbingDirection:"backwards"});Ye(h)}})]})});yr.displayName=br;var _r="ToastFocusProxy",nt=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:a,...s}=e,o=Le(_r,n);return r.jsx(bt,{tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:l=>{var c;const i=l.relatedTarget;!((c=o.viewport)!=null&&c.contains(i))&&a()}})});nt.displayName=_r;var ve="Toast",Lo="toast.swipeStart",Mo="toast.swipeMove",Oo="toast.swipeCancel",$o="toast.swipeEnd",wr=x.forwardRef((e,t)=>{const{forceMount:n,open:a,defaultOpen:s,onOpenChange:o,...l}=e,[i,u]=pe({prop:a,defaultProp:s??!0,onChange:o,caller:ve});return r.jsx(ce,{present:n||i,children:r.jsx(Uo,{open:i,...l,ref:t,onClose:()=>u(!1),onPause:Y(e.onPause),onResume:Y(e.onResume),onSwipeStart:D(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:D(e.onSwipeMove,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:D(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:D(e.onSwipeEnd,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),u(!1)})})})});wr.displayName=ve;var[Bo,zo]=gr(ve,{onClose(){}}),Uo=x.forwardRef((e,t)=>{const{__scopeToast:n,type:a="foreground",duration:s,open:o,onClose:l,onEscapeKeyDown:i,onPause:u,onResume:c,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:b,onSwipeEnd:k,...j}=e,g=Le(ve,n),[h,w]=x.useState(null),m=U(t,F=>w(F)),v=x.useRef(null),f=x.useRef(null),y=s||g.duration,_=x.useRef(0),S=x.useRef(y),C=x.useRef(0),{onToastAdd:T,onToastRemove:A}=g,R=Y(()=>{var O;(h==null?void 0:h.contains(document.activeElement))&&((O=g.viewport)==null||O.focus()),l()}),P=x.useCallback(F=>{!F||F===1/0||(window.clearTimeout(C.current),_.current=new Date().getTime(),C.current=window.setTimeout(R,F))},[R]);x.useEffect(()=>{const F=g.viewport;if(F){const O=()=>{P(S.current),c==null||c()},$=()=>{const q=new Date().getTime()-_.current;S.current=S.current-q,window.clearTimeout(C.current),u==null||u()};return F.addEventListener(et,$),F.addEventListener(tt,O),()=>{F.removeEventListener(et,$),F.removeEventListener(tt,O)}}},[g.viewport,y,u,c,P]),x.useEffect(()=>{o&&!g.isClosePausedRef.current&&P(y)},[o,y,g.isClosePausedRef,P]),x.useEffect(()=>(T(),()=>A()),[T,A]);const I=x.useMemo(()=>h?Cr(h):null,[h]);return g.viewport?r.jsxs(r.Fragment,{children:[I&&r.jsx(Ho,{__scopeToast:n,role:"status","aria-live":a==="foreground"?"assertive":"polite",children:I}),r.jsx(Bo,{scope:n,onClose:R,children:Zt.createPortal(r.jsx(_t.ItemSlot,{scope:n,children:r.jsx(Fa,{asChild:!0,onEscapeKeyDown:D(i,()=>{g.isFocusedToastEscapeKeyDownRef.current||R(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(L.li,{tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":g.swipeDirection,...j,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:D(e.onKeyDown,F=>{F.key==="Escape"&&(i==null||i(F.nativeEvent),F.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:D(e.onPointerDown,F=>{F.button===0&&(v.current={x:F.clientX,y:F.clientY})}),onPointerMove:D(e.onPointerMove,F=>{if(!v.current)return;const O=F.clientX-v.current.x,$=F.clientY-v.current.y,q=!!f.current,M=["left","right"].includes(g.swipeDirection),B=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,X=M?B(0,O):0,te=M?0:B(0,$),z=F.pointerType==="touch"?10:2,ne={x:X,y:te},W={originalEvent:F,delta:ne};q?(f.current=ne,ke(Mo,p,W,{discrete:!1})):$t(ne,g.swipeDirection,z)?(f.current=ne,ke(Lo,d,W,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(O)>z||Math.abs($)>z)&&(v.current=null)}),onPointerUp:D(e.onPointerUp,F=>{const O=f.current,$=F.target;if($.hasPointerCapture(F.pointerId)&&$.releasePointerCapture(F.pointerId),f.current=null,v.current=null,O){const q=F.currentTarget,M={originalEvent:F,delta:O};$t(O,g.swipeDirection,g.swipeThreshold)?ke($o,k,M,{discrete:!0}):ke(Oo,b,M,{discrete:!0}),q.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Ho=e=>{const{__scopeToast:t,children:n,...a}=e,s=Le(ve,t),[o,l]=x.useState(!1),[i,u]=x.useState(!1);return Vo(()=>l(!0)),x.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),i?null:r.jsx(it,{asChild:!0,children:r.jsx(bt,{...a,children:o&&r.jsxs(r.Fragment,{children:[s.label," ",n]})})})},Wo="ToastTitle",kr=x.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e;return r.jsx(L.div,{...a,ref:t})});kr.displayName=Wo;var Go="ToastDescription",Sr=x.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e;return r.jsx(L.div,{...a,ref:t})});Sr.displayName=Go;var Nr="ToastAction",Ko=x.forwardRef((e,t)=>{const{altText:n,...a}=e;return n.trim()?r.jsx(Er,{altText:n,asChild:!0,children:r.jsx(wt,{...a,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Nr}\`. Expected non-empty \`string\`.`),null)});Ko.displayName=Nr;var jr="ToastClose",wt=x.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e,s=zo(jr,n);return r.jsx(Er,{asChild:!0,children:r.jsx(L.button,{type:"button",...a,ref:t,onClick:D(e.onClick,s.onClose)})})});wt.displayName=jr;var Er=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:a,...s}=e;return r.jsx(L.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...s,ref:t})});function Cr(e){const t=[];return Array.from(e.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&t.push(a.textContent),Yo(a)){const s=a.ariaHidden||a.hidden||a.style.display==="none",o=a.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const l=a.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...Cr(a))}}),t}function ke(e,t,n,{discrete:a}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),a?mn(s,o):s.dispatchEvent(o)}var $t=(e,t,n=0)=>{const a=Math.abs(e.x),s=Math.abs(e.y),o=a>s;return t==="left"||t==="right"?o&&a>n:!o&&s>n};function Vo(e=()=>{}){const t=Y(e);J(()=>{let n=0,a=0;return n=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(a)}},[t])}function Yo(e){return e.nodeType===e.ELEMENT_NODE}function qo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ye(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Xo=xr,Zo=yr,Qo=wr,Jo=kr,ei=Sr,ti=wt;const Tr=N.createContext(null);let ni=1;function ri({children:e}){const[t,n]=N.useState([]),a=N.useMemo(()=>({push:s=>{n(o=>[...o,{id:ni+=1,tone:"info",...s}])}}),[]);return r.jsx(Tr.Provider,{value:a,children:r.jsxs(Xo,{swipeDirection:"right",children:[e,t.map(s=>r.jsxs(Qo,{className:E("vx-toast",`vx-toast--${s.tone??"info"}`),duration:4500,open:!0,onOpenChange:o=>{o||n(l=>l.filter(i=>i.id!==s.id))},children:[r.jsxs("div",{className:"vx-toast__content",children:[r.jsx(Jo,{className:"vx-toast__title",children:s.title}),s.description?r.jsx(ei,{className:"vx-toast__description",children:s.description}):null]}),r.jsx(ti,{className:"vx-toast__close","aria-label":"Dismiss notification",children:r.jsx(ie,{size:16})})]},s.id)),r.jsx(Zo,{className:"vx-toast__viewport"})]})})}function ai(){const e=N.useContext(Tr);if(!e)throw new Error("useToast must be used within ToastProvider.");return e}function si({as:e="p",variant:t="default",size:n="base",weight:a="normal",truncate:s=!1,className:o,...l}){return r.jsx(e,{className:E("vx-text-component",`vx-text--${t}`,`vx-text-size--${n}`,`vx-text-weight--${a}`,s&&"vx-text--truncate",o),...l})}function oi({as:e,level:t=2,variant:n="default",weight:a="bold",truncate:s=!1,className:o,...l}){const i=e||`h${t}`;return r.jsx(i,{className:E("vx-heading",`vx-heading--h${t}`,`vx-heading--${n}`,`vx-heading-weight--${a}`,s&&"vx-text--truncate",o),...l})}function ii({className:e,label:t,hint:n,placeholder:a,children:s,...o}){return r.jsxs("label",{className:"vx-field-group",children:[t?r.jsx("span",{className:"vx-field-group__label",children:t}):null,r.jsxs("span",{className:E("vx-select",e),children:[r.jsxs("select",{className:"vx-select__field",...o,children:[a?r.jsx("option",{value:"",disabled:!0,children:a}):null,s]}),r.jsx("span",{className:"vx-select__arrow","aria-hidden":"true",children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:r.jsx("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),n?r.jsx("span",{className:"vx-field-group__hint",children:n}):null]})}function li({className:e,label:t,description:n,indeterminate:a,...s}){return r.jsxs("label",{className:E("vx-checkbox",s.disabled&&"vx-checkbox--disabled"),children:[r.jsxs("span",{className:"vx-checkbox__control-wrap",children:[r.jsx("input",{type:"checkbox",className:E("vx-checkbox__input",e),ref:o=>{o&&(o.indeterminate=a??!1)},...s}),r.jsx("span",{className:"vx-checkbox__box","aria-hidden":"true",children:a?r.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:r.jsx("path",{d:"M2 5h6",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})}):r.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:r.jsx("path",{d:"M2 5l2.5 2.5L8 3",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t?r.jsxs("span",{className:"vx-checkbox__copy",children:[r.jsx("span",{className:"vx-checkbox__label",children:t}),n?r.jsx("span",{className:"vx-checkbox__description",children:n}):null]}):null]})}function ci({className:e,label:t,description:n,...a}){return r.jsxs("label",{className:E("vx-radio",a.disabled&&"vx-radio--disabled"),children:[r.jsxs("span",{className:"vx-radio__control-wrap",children:[r.jsx("input",{type:"radio",className:E("vx-radio__input",e),...a}),r.jsx("span",{className:"vx-radio__circle","aria-hidden":"true",children:r.jsx("span",{className:"vx-radio__dot"})})]}),t?r.jsxs("span",{className:"vx-radio__copy",children:[r.jsx("span",{className:"vx-radio__label",children:t}),n?r.jsx("span",{className:"vx-radio__description",children:n}):null]}):null]})}function ui({label:e,children:t,className:n}){return r.jsxs("fieldset",{className:E("vx-radio-group",n),children:[e?r.jsx("legend",{className:"vx-field-group__label",children:e}):null,r.jsx("div",{className:"vx-radio-group__items",children:t})]})}function di({className:e,label:t,hint:n,resize:a="vertical",style:s,...o}){return r.jsxs("label",{className:"vx-field-group",children:[t?r.jsx("span",{className:"vx-field-group__label",children:t}):null,r.jsx("textarea",{className:E("vx-textarea",e),style:{resize:a,...s},...o}),n?r.jsx("span",{className:"vx-field-group__hint",children:n}):null]})}function pi({className:e,label:t,showValue:n=!1,hint:a,value:s,defaultValue:o,...l}){const i=s??o??"";return r.jsxs("label",{className:"vx-field-group",children:[t||n?r.jsxs("span",{className:"vx-slider__header",children:[t?r.jsx("span",{className:"vx-field-group__label vx-slider__label",children:t}):null,n?r.jsx("span",{className:"vx-slider__value",children:i}):null]}):null,r.jsx("input",{type:"range",className:E("vx-slider",e),value:s,defaultValue:o,...l}),a?r.jsx("span",{className:"vx-field-group__hint",children:a}):null]})}const fi={sm:16,md:24,lg:36};function vi({className:e,size:t="md",label:n="Loading…",...a}){const s=fi[t];return r.jsx("span",{role:"status","aria-label":n,className:E("vx-spinner",`vx-spinner--${t}`,e),...a,children:r.jsx("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:r.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"42 14"})})})}function mi({className:e,value:t=0,max:n=100,label:a,showLabel:s=!1,size:o="md",variant:l="default",indeterminate:i=!1,...u}){const c=i?void 0:Math.min(100,Math.max(0,t/n*100));return r.jsxs("div",{className:E("vx-progress-wrap",e),...u,children:[a||s?r.jsxs("div",{className:"vx-progress__header",children:[a?r.jsx("span",{className:"vx-progress__label",children:a}):null,s&&!i?r.jsxs("span",{className:"vx-progress__value",children:[Math.round(c),"%"]}):null]}):null,r.jsx("div",{role:"progressbar","aria-valuenow":i?void 0:t,"aria-valuemin":0,"aria-valuemax":n,"aria-label":a,className:E("vx-progress",`vx-progress--${o}`,`vx-progress--${l}`,i&&"vx-progress--indeterminate"),children:r.jsx("div",{className:"vx-progress__bar",style:i?void 0:{width:`${c}%`}})})]})}const hi={info:r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M8 7v4M8 5.5v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),success:r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M5 8.5l2 2 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),warning:r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("path",{d:"M8 2L14.5 13.5H1.5L8 2z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),r.jsx("path",{d:"M8 6.5v3M8 11v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),danger:r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M10 6L6 10M6 6l4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})};function gi({className:e,variant:t="info",title:n,icon:a,onClose:s,children:o,...l}){return r.jsxs("div",{role:"alert",className:E("vx-alert",`vx-alert--${t}`,e),...l,children:[r.jsx("span",{className:"vx-alert__icon",children:a??hi[t]}),r.jsxs("div",{className:"vx-alert__body",children:[n?r.jsx("p",{className:"vx-alert__title",children:n}):null,o?r.jsx("div",{className:"vx-alert__content",children:o}):null]}),s?r.jsx("button",{type:"button",className:"vx-alert__close",onClick:s,"aria-label":"关闭",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}):null]})}function xi({className:e,width:t,height:n,variant:a="rect",lines:s=1,style:o,...l}){return a==="text"&&s>1?r.jsx("span",{className:E("vx-skeleton-text",e),...l,children:Array.from({length:s}).map((i,u)=>r.jsx("span",{className:"vx-skeleton vx-skeleton--text",style:u===s-1?{width:"70%"}:void 0},u))}):r.jsx("span",{className:E("vx-skeleton",`vx-skeleton--${a}`,e),style:{width:typeof t=="number"?`${t}px`:t,height:typeof n=="number"?`${n}px`:n,...o},...l})}function bi({content:e,placement:t="top",delay:n=600,children:a,className:s}){const[o,l]=N.useState(!1),i=N.useRef(null),u=N.useCallback(()=>{i.current=setTimeout(()=>l(!0),n)},[n]),c=N.useCallback(()=>{i.current&&clearTimeout(i.current),l(!1)},[]);return N.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]),r.jsxs("span",{className:E("vx-tooltip-wrap",s),onMouseEnter:u,onMouseLeave:c,onFocus:u,onBlur:c,children:[a,o?r.jsx("span",{role:"tooltip",className:E("vx-tooltip",`vx-tooltip--${t}`),children:e}):null]})}function yi({content:e,placement:t="bottom",trigger:n="click",children:a,className:s,open:o,onOpenChange:l}){const[i,u]=N.useState(!1),c=o!==void 0,d=c?o:i,p=N.useRef(null),b=N.useCallback(g=>{c||u(g),l==null||l(g)},[c,l]),k=N.useCallback(()=>b(!d),[d,b]);N.useEffect(()=>{if(!d)return;const g=w=>{w.key==="Escape"&&b(!1)},h=w=>{p.current&&!p.current.contains(w.target)&&b(!1)};return document.addEventListener("keydown",g),document.addEventListener("mousedown",h),()=>{document.removeEventListener("keydown",g),document.removeEventListener("mousedown",h)}},[d,b]);const j=n==="click"?{onClick:k}:{onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1)};return r.jsxs("div",{ref:p,className:E("vx-popover-wrap",s),...j,children:[a,d?r.jsx("div",{className:E("vx-popover",`vx-popover--${t}`),role:"dialog",children:e}):null]})}function _i({trigger:e,groups:t,items:n,align:a="left",className:s,open:o,onOpenChange:l}){const[i,u]=N.useState(!1),c=o!==void 0,d=c?o:i,p=N.useRef(null),b=N.useCallback(g=>{c||u(g),l==null||l(g)},[c,l]),k=N.useCallback(()=>b(!d),[d,b]);N.useEffect(()=>{if(!d)return;const g=w=>{w.key==="Escape"&&b(!1)},h=w=>{p.current&&!p.current.contains(w.target)&&b(!1)};return document.addEventListener("keydown",g),document.addEventListener("mousedown",h),()=>{document.removeEventListener("keydown",g),document.removeEventListener("mousedown",h)}},[d,b]);const j=t??(n?[{items:n}]:[]);return r.jsxs("div",{ref:p,className:E("vx-dropdown",s),children:[r.jsx("div",{className:"vx-dropdown__trigger",onClick:k,role:"button",tabIndex:0,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&k()},children:e}),d?r.jsx("div",{className:E("vx-dropdown__menu",`vx-dropdown__menu--${a}`),role:"menu",children:j.map((g,h)=>r.jsxs("div",{className:"vx-dropdown__group",children:[g.label?r.jsx("div",{className:"vx-dropdown__group-label",children:g.label}):null,h>0&&!g.label?r.jsx("div",{className:"vx-dropdown__separator",role:"separator"}):null,g.items.map((w,m)=>r.jsxs("button",{role:"menuitem",disabled:w.disabled,className:E("vx-dropdown__item",w.danger&&"vx-dropdown__item--danger",w.disabled&&"vx-dropdown__item--disabled"),onClick:()=>{var v;w.disabled||((v=w.onClick)==null||v.call(w),b(!1))},children:[w.icon?r.jsx("span",{className:"vx-dropdown__item-icon",children:w.icon}):null,r.jsx("span",{className:"vx-dropdown__item-label",children:w.label}),w.shortcut?r.jsx("kbd",{className:"vx-dropdown__shortcut",children:w.shortcut}):null]},m))]},h))}):null]})}const wi=()=>r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M4.5 2.5L7.5 6l-3 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function ki({items:e,separator:t,className:n}){return r.jsx("nav",{"aria-label":"Breadcrumb",className:E("vx-breadcrumb",n),children:r.jsx("ol",{className:"vx-breadcrumb__list",children:e.map((a,s)=>{const o=s===e.length-1;return r.jsxs("li",{className:"vx-breadcrumb__item",children:[o?r.jsx("span",{className:"vx-breadcrumb__current","aria-current":"page",children:a.label}):a.href?r.jsx("a",{href:a.href,className:"vx-breadcrumb__link",children:a.label}):r.jsx("button",{type:"button",className:"vx-breadcrumb__link",onClick:a.onClick,children:a.label}),o?null:r.jsx("span",{className:"vx-breadcrumb__sep","aria-hidden":"true",children:t??r.jsx(wi,{})})]},s)})})})}function Se(e,t){return Array.from({length:t-e+1},(n,a)=>e+a)}function Si({page:e,total:t,pageSize:n=10,siblingCount:a=1,onChange:s,className:o}){const l=Math.max(1,Math.ceil(t/n)),i=(()=>{const u=a*2+5;if(l<=u)return Se(1,l);const c=Math.max(e-a,1),d=Math.min(e+a,l),p=c>3,b=d<l-2;return!p&&b?[...Se(1,3+a*2),"…",l]:p&&!b?[1,"…",...Se(l-(2+a*2),l)]:[1,"…",...Se(c,d),"…",l]})();return r.jsxs("nav",{role:"navigation","aria-label":"Pagination",className:E("vx-pagination",o),children:[r.jsx("button",{type:"button",className:"vx-pagination__btn vx-pagination__btn--prev",disabled:e<=1,onClick:()=>s(e-1),"aria-label":"上一页",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M9 11L5 7l4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),i.map((u,c)=>u==="…"?r.jsx("span",{className:"vx-pagination__ellipsis","aria-hidden":"true",children:"…"},`e-${c}`):r.jsx("button",{type:"button","aria-current":u===e?"page":void 0,className:E("vx-pagination__btn",u===e&&"vx-pagination__btn--active"),onClick:()=>s(u),children:u},u)),r.jsx("button",{type:"button",className:"vx-pagination__btn vx-pagination__btn--next",disabled:e>=l,onClick:()=>s(e+1),"aria-label":"下一页",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M5 11l4-4-4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}function Ni({items:e,multiple:t=!1,defaultOpen:n=[],className:a}){const[s,o]=N.useState(new Set(n));function l(i){o(u=>{const c=new Set(t?u:[]);return u.has(i)?c.delete(i):c.add(i),c})}return r.jsx("div",{className:E("vx-accordion",a),children:e.map(i=>{const u=s.has(i.key);return r.jsxs("div",{className:E("vx-accordion__item",u&&"vx-accordion__item--open",i.disabled&&"vx-accordion__item--disabled"),children:[r.jsxs("button",{type:"button",disabled:i.disabled,"aria-expanded":u,className:"vx-accordion__trigger",onClick:()=>!i.disabled&&l(i.key),children:[r.jsx("span",{className:"vx-accordion__title",children:i.title}),r.jsx("span",{className:"vx-accordion__chevron","aria-hidden":"true",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:r.jsx("path",{d:"M3 5l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),u?r.jsx("div",{className:"vx-accordion__content",children:i.content}):null]},i.key)})})}function ji({className:e,orientation:t="horizontal",decorative:n=!0,...a}){return r.jsx("hr",{role:n?"none":"separator","aria-orientation":n?void 0:t,className:E("vx-separator",`vx-separator--${t}`,e),...a})}function Ei(e){const t=e.trim().split(/\s+/);return t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}const Bt=[0,30,60,120,160,200,240,270,300,340];function Ci(e){let t=0;for(let n=0;n<e.length;n++)t+=e.charCodeAt(n);return Bt[t%Bt.length]}function Ti({src:e,name:t,size:n="md",shape:a="circle",fallback:s,className:o,alt:l,...i}){const[u,c]=N.useState(!1),d=e&&!u,p=t??l??"",b=p?Ci(p):200;return r.jsx("span",{className:E("vx-avatar",`vx-avatar--${n}`,`vx-avatar--${a}`,o),"aria-label":p||void 0,style:d?void 0:{"--vx-avatar-hue":b},children:d?r.jsx("img",{src:e,alt:l??t??"",className:"vx-avatar__img",onError:()=>c(!0),...i}):s?r.jsx("span",{className:"vx-avatar__fallback",children:s}):p?r.jsx("span",{className:"vx-avatar__initials",children:Ei(p)}):r.jsxs("svg",{className:"vx-avatar__placeholder",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"12",cy:"8",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M4 20c0-4 3.58-7 8-7s8 3 8 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})})}function Ai({columns:e,data:t,striped:n=!1,hoverable:a=!0,bordered:s=!1,compact:o=!1,stickyHeader:l=!1,caption:i,emptyText:u="暂无数据",sortColumn:c,sortDirection:d,onSortChange:p,className:b,...k}){const[j,g]=N.useState(null),[h,w]=N.useState(null),m=c!==void 0,v=m?c:j,f=m?d??null:h,y=N.useCallback(_=>{let S;v!==_?S="asc":f==="asc"?S="desc":f==="desc"?S=null:S="asc",m||(g(S===null?null:_),w(S)),p==null||p(_,S)},[v,f,m,p]);return r.jsx("div",{className:E("vx-table-wrap",b),...k,children:r.jsxs("table",{className:E("vx-table",n&&"vx-table--striped",a&&"vx-table--hoverable",s&&"vx-table--bordered",o&&"vx-table--compact",l&&"vx-table--sticky"),children:[i?r.jsx("caption",{className:"vx-table__caption",children:i}):null,r.jsx("thead",{children:r.jsx("tr",{children:e.map(_=>r.jsx("th",{className:E("vx-table__th",_.sortable&&"vx-table__th--sortable",_.align&&`vx-table__th--${_.align}`,_.className),style:{width:_.width},onClick:_.sortable?()=>y(_.key):void 0,"aria-sort":v===_.key?f==="asc"?"ascending":f==="desc"?"descending":"none":void 0,children:r.jsxs("span",{className:"vx-table__th-inner",children:[_.header,_.sortable?r.jsx("span",{className:"vx-table__sort-icon","aria-hidden":"true",children:v===_.key&&f==="asc"?"↑":v===_.key&&f==="desc"?"↓":"↕"}):null]})},_.key))})}),r.jsx("tbody",{children:t.length===0?r.jsx("tr",{children:r.jsx("td",{colSpan:e.length,className:"vx-table__empty",children:u})}):t.map((_,S)=>r.jsx("tr",{className:"vx-table__row",children:e.map(C=>r.jsx("td",{className:E("vx-table__td",C.align&&`vx-table__td--${C.align}`,C.className),children:C.accessor(_)},C.key))},S))})]})})}function Pi({topBar:e,bottomNav:t,children:n,className:a}){return r.jsxs("div",{className:E("vxm-shell",a),children:[e&&r.jsx("div",{className:"vxm-shell__topbar",children:e}),r.jsx("main",{className:"vxm-shell__main",children:n}),t&&r.jsx("div",{className:"vxm-shell__bottomnav",children:t})]})}function Ri({title:e,leading:t,trailing:n,className:a}){return r.jsxs("div",{className:E("vxm-topbar",a),children:[r.jsx("div",{className:"vxm-topbar__leading",children:t}),r.jsx("div",{className:"vxm-topbar__title",children:e}),r.jsx("div",{className:"vxm-topbar__trailing",children:n})]})}function Fi({label:e,className:t,children:n,...a}){return r.jsx("button",{type:"button",className:E("vxm-icon-btn",t),"aria-label":e,...a,children:n})}function Di({items:e,className:t}){return r.jsx("nav",{className:E("vxm-bottomnav",t),"aria-label":"底部导航",children:e.map(n=>r.jsxs("button",{type:"button",className:E("vxm-bottomnav__item",n.active&&"vxm-bottomnav__item--active"),onClick:n.onSelect,"aria-current":n.active?"page":void 0,children:[r.jsxs("span",{className:"vxm-bottomnav__icon",children:[n.icon,n.badge!=null&&r.jsx("span",{className:"vxm-bottomnav__badge","aria-label":`${n.badge} 条未读`,children:n.badge})]}),r.jsx("span",{className:"vxm-bottomnav__label",children:n.label})]},n.key))})}function Ii({open:e,onClose:t,title:n,description:a,children:s,className:o}){const l=N.useRef(null),i=N.useRef(0),[u,c]=N.useState(!1),[d,p]=N.useState(0),b=N.useRef(0);N.useEffect(()=>{e||(p(0),b.current=0)},[e]),N.useEffect(()=>{if(!e)return;const h=w=>{w.key==="Escape"&&t()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t]),N.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]);const k=h=>{i.current=h.touches[0].clientY,b.current=0,c(!0)},j=h=>{const w=h.touches[0].clientY-i.current;w<0||(b.current=w,p(w))},g=()=>{c(!1);const h=l.current;if(!h)return;const w=h.offsetHeight*.32;b.current>w?t():p(0)};return e?r.jsx("div",{className:"vxm-actionsheet__overlay",onClick:t,role:"presentation","aria-hidden":"true",children:r.jsxs("div",{ref:l,className:E("vxm-actionsheet",o),style:{transform:`translateY(${d}px)`,transition:u?"none":"transform 280ms cubic-bezier(0.32, 0.72, 0, 1)"},onClick:h=>h.stopPropagation(),onTouchStart:k,onTouchMove:j,onTouchEnd:g,role:"dialog","aria-modal":!0,"aria-label":n??"Action sheet",children:[r.jsx("div",{className:"vxm-actionsheet__handle","aria-hidden":"true"}),(n||a)&&r.jsxs("div",{className:"vxm-actionsheet__header",children:[n&&r.jsx("h3",{className:"vxm-actionsheet__title",children:n}),a&&r.jsx("p",{className:"vxm-actionsheet__description",children:a})]}),r.jsx("div",{className:"vxm-actionsheet__body",children:s})]})}):null}function Li({icon:e,destructive:t,className:n,children:a,...s}){return r.jsxs("button",{type:"button",className:E("vxm-actionsheet-item",t&&"vxm-actionsheet-item--destructive",n),...s,children:[e&&r.jsx("span",{className:"vxm-actionsheet-item__icon",children:e}),a]})}function Mi({className:e,...t}){return r.jsx("ul",{className:E("vxm-list",e),role:"list",...t})}function Oi({title:e,className:t,children:n,...a}){return r.jsxs("div",{className:E("vxm-list-section",t),...a,children:[e&&r.jsx("div",{className:"vxm-list-section__title",children:e}),n]})}function $i({leading:e,trailing:t,label:n,description:a,chevron:s,destructive:o,disabled:l,onClick:i,className:u}){const c=r.jsxs(r.Fragment,{children:[e&&r.jsx("span",{className:"vxm-list-item__leading",children:e}),r.jsxs("span",{className:"vxm-list-item__content",children:[r.jsx("span",{className:"vxm-list-item__label",children:n}),a&&r.jsx("span",{className:"vxm-list-item__description",children:a})]}),t&&r.jsx("span",{className:"vxm-list-item__trailing",children:t}),s&&r.jsx(Pe,{size:16,className:"vxm-list-item__chevron","aria-hidden":"true"})]});return r.jsx("li",{className:E("vxm-list-item",o&&"vxm-list-item--destructive",l&&"vxm-list-item--disabled",!i&&"vxm-list-item--static",u),children:r.jsx("button",{type:"button",className:"vxm-list-item__btn",onClick:l?void 0:i,disabled:l,tabIndex:i?0:-1,children:c})})}function Bi({open:e,onClose:t,width:n=280,header:a,footer:s,children:o,className:l}){const i=N.useRef(null),u=N.useRef(0),c=N.useRef(0),[d,p]=N.useState(!1),[b,k]=N.useState(0);N.useEffect(()=>{e||(k(0),c.current=0)},[e]),N.useEffect(()=>{if(!e)return;const v=f=>{f.key==="Escape"&&t()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[e,t]),N.useEffect(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]);const j=v=>{u.current=v.touches[0].clientX,c.current=0,p(!0)},g=v=>{const f=v.touches[0].clientX-u.current;f>0||(c.current=f,k(f))},h=()=>{p(!1),Math.abs(c.current)>n*.3?t():k(0)};if(!e)return null;const m=.52*Math.max(0,1+b/n);return r.jsxs("div",{className:"vxm-drawer__overlay",style:{"--vxm-overlay-opacity":m},children:[r.jsx("div",{className:"vxm-drawer__scrim",onClick:t,"aria-hidden":"true"}),r.jsxs("div",{ref:i,className:E("vxm-drawer",l),style:{width:n,transform:`translateX(${b}px)`,transition:d?"none":"transform 280ms cubic-bezier(0.32, 0.72, 0, 1)"},onTouchStart:j,onTouchMove:g,onTouchEnd:h,role:"dialog","aria-modal":!0,"aria-label":"Navigation drawer",children:[a&&r.jsx("div",{className:"vxm-drawer__header",children:a}),r.jsx("div",{className:"vxm-drawer__body",children:o}),s&&r.jsx("div",{className:"vxm-drawer__footer",children:s})]})]})}function zi({icon:e,label:t,badge:n,active:a,onClick:s}){return r.jsxs("button",{type:"button",className:E("vxm-drawer-item",a&&"vxm-drawer-item--active"),onClick:s,"aria-current":a?"page":void 0,children:[e&&r.jsx("span",{className:"vxm-drawer-item__icon",children:e}),r.jsx("span",{className:"vxm-drawer-item__label",children:t}),n!=null&&r.jsx("span",{className:"vxm-drawer-item__badge",children:n})]})}function Ui({title:e,children:t}){return r.jsxs("div",{className:"vxm-drawer-section",children:[e&&r.jsx("div",{className:"vxm-drawer-section__title",children:e}),r.jsx("div",{className:"vxm-drawer-section__items",children:t})]})}const Hi=N.forwardRef(function({className:t,required:n,children:a,...s},o){return r.jsxs("label",{ref:o,className:E("vx-label",t),...s,children:[a,n?r.jsx("span",{className:"vx-label__required","aria-hidden":"true",children:" *"}):null]})}),Ar=N.createContext({});function Pr(){return N.useContext(Ar)}function Wi({className:e,...t}){return r.jsx("form",{noValidate:!0,className:E("vx-form",e),...t})}function Gi({error:e,children:t,className:n}){return r.jsx(Ar.Provider,{value:{error:e},children:r.jsx("div",{className:E("vx-form-field",e&&"vx-form-field--invalid",n),children:t})})}function Ki({className:e,required:t,children:n,...a}){return r.jsxs("label",{className:E("vx-form-label",e),...a,children:[n,t?r.jsx("span",{className:"vx-form-label__required","aria-hidden":"true",children:" *"}):null]})}function Vi({className:e,children:t,...n}){return r.jsx("p",{className:E("vx-form-description",e),...n,children:t})}function Yi({className:e,children:t,...n}){const{error:a}=Pr(),s=a??t;return s?r.jsx("p",{className:E("vx-form-message",a&&"vx-form-message--error",e),...n,children:s}):null}function qi({trigger:e,title:t,description:n,confirmLabel:a="Confirm",cancelLabel:s="Cancel",onConfirm:o,onCancel:l,variant:i="default",className:u,...c}){return r.jsxs(dt,{...c,children:[r.jsx(pt,{asChild:!0,children:e}),r.jsxs(ft,{children:[r.jsx(vt,{className:"vx-dialog__overlay"}),r.jsxs(mt,{className:E("vx-alert-dialog__content",u),role:"alertdialog","aria-modal":"true",children:[r.jsx(ht,{className:"vx-alert-dialog__title",children:t}),n?r.jsx(gt,{className:"vx-alert-dialog__description",children:n}):null,r.jsxs("div",{className:"vx-alert-dialog__footer",children:[r.jsx(Ae,{asChild:!0,children:r.jsx(Q,{variant:"secondary",onClick:l,children:s})}),r.jsx(Ae,{asChild:!0,children:r.jsx(Q,{variant:i==="danger"?"danger":"solid",onClick:o,children:a})})]})]})]})]})}function Xi({className:e,label:t,hint:n,error:a,value:s,onChange:o,min:l,max:i,step:u=1,disabled:c,...d}){const p=N.useCallback(w=>{let m=w;return l!==void 0&&(m=Math.max(l,m)),i!==void 0&&(m=Math.min(i,m)),m},[l,i]),b=()=>{c||o==null||o(p((s??0)+u))},k=()=>{c||o==null||o(p((s??0)-u))},j=w=>{const m=parseFloat(w.target.value);isNaN(m)||o==null||o(p(m))},g=l!==void 0&&(s??0)<=l,h=i!==void 0&&(s??0)>=i;return r.jsxs("label",{className:"vx-field-group",children:[t?r.jsx("span",{className:"vx-field-group__label",children:t}):null,r.jsxs("span",{className:E("vx-number-input",a&&"vx-number-input--invalid",c&&"vx-number-input--disabled",e),children:[r.jsx("button",{type:"button",className:"vx-number-input__btn",onClick:k,disabled:c||g,"aria-label":"Decrease",tabIndex:-1,children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M2 6h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),r.jsx("input",{type:"number",className:"vx-number-input__field",value:s??"",onChange:j,min:l,max:i,step:u,disabled:c,"aria-invalid":a?"true":void 0,...d}),r.jsx("button",{type:"button",className:"vx-number-input__btn",onClick:b,disabled:c||h,"aria-label":"Increase",tabIndex:-1,children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M6 2v8M2 6h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}),a?r.jsx("span",{className:"vx-field-group__error",children:a}):null,!a&&n?r.jsx("span",{className:"vx-field-group__hint",children:n}):null]})}function Zi(e,t){return new Date(e,t+1,0).getDate()}function Qi(e,t){return new Date(e,t,1).getDay()}function zt(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Rr({value:e,defaultValue:t,onChange:n,min:a,max:s,className:o,weekStartsOnMonday:l=!1}){const i=new Date,u=e!==void 0,[c,d]=N.useState(t),p=u?e:c,[b,k]=N.useState((p??i).getFullYear()),[j,g]=N.useState((p??i).getMonth()),h=Zi(b,j),w=Qi(b,j),m=l?w===0?6:w-1:w,v=l?["Mo","Tu","We","Th","Fr","Sa","Su"]:["Su","Mo","Tu","We","Th","Fr","Sa"],f=()=>{j===0?(k(A=>A-1),g(11)):g(A=>A-1)},y=()=>{j===11?(k(A=>A+1),g(0)):g(A=>A+1)},_=N.useCallback(A=>{const R=new Date(b,j,A);if(a){const P=new Date(a.getFullYear(),a.getMonth(),a.getDate());if(R<P)return!0}if(s){const P=new Date(s.getFullYear(),s.getMonth(),s.getDate());if(R>P)return!0}return!1},[b,j,a,s]),S=A=>{if(_(A))return;const R=new Date(b,j,A);u||d(R),n==null||n(R)},C=new Date(b,j).toLocaleString("default",{month:"long"}),T=[...Array(m).fill(null),...Array.from({length:h},(A,R)=>R+1)];for(;T.length%7!==0;)T.push(null);return r.jsxs("div",{className:E("vx-calendar",o),children:[r.jsxs("div",{className:"vx-calendar__header",children:[r.jsx("button",{type:"button",className:"vx-calendar__nav-btn",onClick:f,"aria-label":"Previous month",children:r.jsx(en,{size:16})}),r.jsxs("span",{className:"vx-calendar__month-label",children:[C," ",b]}),r.jsx("button",{type:"button",className:"vx-calendar__nav-btn",onClick:y,"aria-label":"Next month",children:r.jsx(Pe,{size:16})})]}),r.jsxs("div",{className:"vx-calendar__grid",role:"grid","aria-label":`${C} ${b}`,children:[v.map(A=>r.jsx("div",{className:"vx-calendar__weekday",role:"columnheader",children:A},A)),T.map((A,R)=>{if(A===null)return r.jsx("div",{className:"vx-calendar__cell vx-calendar__cell--empty"},`e-${R}`);const P=new Date(b,j,A),I=zt(P,i),F=p?zt(P,p):!1,O=_(A);return r.jsx("button",{type:"button",role:"gridcell",className:E("vx-calendar__cell",I&&"vx-calendar__cell--today",F&&"vx-calendar__cell--selected",O&&"vx-calendar__cell--disabled"),onClick:()=>S(A),disabled:O,"aria-label":P.toLocaleDateString(),"aria-selected":F,children:A},A)})]})]})}function Ji(e){return e.toLocaleDateString()}function el(){return r.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none","aria-hidden":"true",children:[r.jsx("rect",{x:"1",y:"3",width:"13",height:"11",rx:"2",stroke:"currentColor",strokeWidth:"1.2"}),r.jsx("path",{d:"M1 6.5h13",stroke:"currentColor",strokeWidth:"1.2"}),r.jsx("path",{d:"M5 1v3M10 1v3",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}function tl({value:e,defaultValue:t,onChange:n,placeholder:a="Select date",label:s,hint:o,error:l,min:i,max:u,disabled:c,weekStartsOnMonday:d,className:p}){const b=e!==void 0,[k,j]=N.useState(t),g=b?e:k,[h,w]=N.useState(!1),m=N.useRef(null);N.useEffect(()=>{if(!h)return;const f=_=>{m.current&&!m.current.contains(_.target)&&w(!1)},y=_=>{_.key==="Escape"&&w(!1)};return document.addEventListener("mousedown",f),document.addEventListener("keydown",y),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",y)}},[h]);const v=f=>{b||j(f),n==null||n(f),w(!1)};return r.jsxs("div",{ref:m,className:E("vx-datepicker",p),children:[s?r.jsx("span",{className:"vx-field-group__label",children:s}):null,r.jsxs("button",{type:"button",className:E("vx-datepicker__trigger",l&&"vx-datepicker__trigger--invalid",c&&"vx-datepicker__trigger--disabled"),onClick:()=>!c&&w(f=>!f),disabled:c,"aria-haspopup":"dialog","aria-expanded":h,children:[r.jsx(el,{}),r.jsx("span",{className:E("vx-datepicker__value",!g&&"vx-datepicker__value--placeholder"),children:g?Ji(g):a})]}),l?r.jsx("span",{className:"vx-field-group__error",children:l}):null,!l&&o?r.jsx("span",{className:"vx-field-group__hint",children:o}):null,h?r.jsx("div",{className:"vx-datepicker__popover",role:"dialog","aria-label":"Date picker",children:r.jsx(Rr,{value:g,onChange:v,min:i,max:u,weekStartsOnMonday:d})}):null]})}function nl({options:e,value:t,defaultValue:n,onChange:a,placeholder:s="Select...",searchPlaceholder:o="Search...",label:l,hint:i,error:u,disabled:c,clearable:d=!1,emptyText:p="No results",className:b}){const k=t!==void 0,[j,g]=N.useState(n),h=k?t:j,[w,m]=N.useState(!1),[v,f]=N.useState(""),y=N.useRef(null),_=N.useRef(null),S=N.useId(),C=e.find(P=>P.value===h),T=e.filter(P=>P.label.toLowerCase().includes(v.toLowerCase()));N.useEffect(()=>{if(!w){f("");return}const P=setTimeout(()=>{var I;return(I=_.current)==null?void 0:I.focus()},0);return()=>clearTimeout(P)},[w]),N.useEffect(()=>{if(!w)return;const P=F=>{y.current&&!y.current.contains(F.target)&&m(!1)},I=F=>{F.key==="Escape"&&m(!1)};return document.addEventListener("mousedown",P),document.addEventListener("keydown",I),()=>{document.removeEventListener("mousedown",P),document.removeEventListener("keydown",I)}},[w]);const A=P=>{P.disabled||(k||g(P.value),a==null||a(P.value),m(!1))},R=P=>{P.stopPropagation(),k||g(void 0),a==null||a(void 0)};return r.jsxs("div",{ref:y,className:E("vx-combobox",b),children:[l?r.jsx("span",{className:"vx-field-group__label",children:l}):null,r.jsxs("button",{type:"button",className:E("vx-combobox__trigger",u&&"vx-combobox__trigger--invalid",c&&"vx-combobox__trigger--disabled"),onClick:()=>!c&&m(P=>!P),disabled:c,"aria-haspopup":"listbox","aria-expanded":w,"aria-controls":S,children:[r.jsx("span",{className:E("vx-combobox__value",!C&&"vx-combobox__value--placeholder"),children:(C==null?void 0:C.label)??s}),r.jsxs("span",{className:"vx-combobox__icons",children:[d&&C&&r.jsx("span",{className:"vx-combobox__clear",onClick:R,role:"button","aria-label":"Clear selection",children:r.jsx(ie,{size:14})}),r.jsx(st,{size:14,className:E("vx-combobox__chevron",w&&"vx-combobox__chevron--open")})]})]}),u?r.jsx("span",{className:"vx-field-group__error",children:u}):null,!u&&i?r.jsx("span",{className:"vx-field-group__hint",children:i}):null,w&&r.jsxs("div",{className:"vx-combobox__dropdown",children:[r.jsx("div",{className:"vx-combobox__search-wrap",children:r.jsx("input",{ref:_,type:"text",className:"vx-combobox__search",placeholder:o,value:v,onChange:P=>f(P.target.value),"aria-label":o})}),r.jsx("ul",{id:S,className:"vx-combobox__list",role:"listbox","aria-label":l??"Options",children:T.length===0?r.jsx("li",{className:"vx-combobox__empty",children:p}):T.map(P=>r.jsxs("li",{className:E("vx-combobox__option",P.value===h&&"vx-combobox__option--selected",P.disabled&&"vx-combobox__option--disabled"),role:"option","aria-selected":P.value===h,"aria-disabled":P.disabled,onClick:()=>A(P),children:[r.jsx("span",{children:P.label}),P.value===h?r.jsx(at,{size:14}):null]},P.value))})]})]})}function rl({label:e,hint:t,error:n,accept:a,multiple:s=!1,maxSize:o,disabled:l,onFiles:i,className:u}){const[c,d]=N.useState(!1),[p,b]=N.useState([]),[k,j]=N.useState(),g=N.useRef(null),h=N.useCallback(y=>{if(!y)return;const _=Array.from(y);if(o&&_.filter(A=>A.size>o).length>0){j(`File too large (max ${(o/1024/1024).toFixed(1)} MB)`);return}j(void 0);const S=_.map(T=>({file:T,id:crypto.randomUUID()})),C=s?[...p,...S]:S;b(C),i==null||i(C.map(T=>T.file))},[p,o,s,i]),w=y=>{y.preventDefault(),d(!1),l||h(y.dataTransfer.files)},m=y=>{y.preventDefault(),l||d(!0)},v=y=>{const _=p.filter(S=>S.id!==y);b(_),i==null||i(_.map(S=>S.file))},f=n??k;return r.jsxs("div",{className:E("vx-file-upload",u),children:[e?r.jsx("span",{className:"vx-field-group__label",children:e}):null,r.jsxs("div",{className:E("vx-file-upload__zone",c&&"vx-file-upload__zone--dragging",l&&"vx-file-upload__zone--disabled",f&&"vx-file-upload__zone--invalid"),onDrop:w,onDragOver:m,onDragLeave:()=>d(!1),onClick:()=>{var y;return!l&&((y=g.current)==null?void 0:y.click())},role:"button",tabIndex:l?-1:0,onKeyDown:y=>{var _;return y.key==="Enter"&&!l&&((_=g.current)==null?void 0:_.click())},"aria-label":"Upload files, click or drag and drop",children:[r.jsx(aa,{size:24,className:"vx-file-upload__icon"}),r.jsxs("p",{className:"vx-file-upload__text",children:[r.jsx("span",{className:"vx-file-upload__link",children:"Click to upload"})," or drag and drop"]}),t?r.jsx("p",{className:"vx-file-upload__hint",children:t}):null,r.jsx("input",{ref:g,type:"file",accept:a,multiple:s,disabled:l,className:"vx-file-upload__input",onChange:y=>h(y.target.files),"aria-hidden":"true",tabIndex:-1})]}),f?r.jsx("span",{className:"vx-field-group__error",children:f}):null,p.length>0&&r.jsx("ul",{className:"vx-file-upload__list",children:p.map(({id:y,file:_})=>r.jsxs("li",{className:"vx-file-upload__file",children:[r.jsx(Qr,{size:14,className:"vx-file-upload__file-icon"}),r.jsx("span",{className:"vx-file-upload__file-name",children:_.name}),r.jsxs("span",{className:"vx-file-upload__file-size",children:[(_.size/1024).toFixed(0)," KB"]}),r.jsx("button",{type:"button",className:"vx-file-upload__remove",onClick:()=>v(y),"aria-label":`Remove ${_.name}`,children:r.jsx(ie,{size:14})})]},y))})]})}function al({trigger:e,title:t,description:n,side:a="right",children:s,footer:o,className:l,...i}){return r.jsxs(dt,{...i,children:[e?r.jsx(pt,{asChild:!0,children:e}):null,r.jsxs(ft,{children:[r.jsx(vt,{className:"vx-sheet__overlay"}),r.jsxs(mt,{className:E("vx-sheet",`vx-sheet--${a}`,l),children:[r.jsxs("div",{className:"vx-sheet__header",children:[r.jsxs("div",{children:[t?r.jsx(ht,{className:"vx-sheet__title",children:t}):null,n?r.jsx(gt,{className:"vx-sheet__description",children:n}):null]}),r.jsx(Ae,{className:"vx-dialog__close","aria-label":"Close",children:r.jsx(ie,{size:16})})]}),r.jsx("div",{className:"vx-sheet__body",children:s}),o?r.jsx("div",{className:"vx-sheet__footer",children:o}):null]})]})]})}function sl({maxHeight:e,maxWidth:t,children:n,className:a,style:s,...o}){return r.jsx("div",{className:E("vx-scroll-area",a),style:{maxHeight:typeof e=="number"?`${e}px`:e,maxWidth:typeof t=="number"?`${t}px`:t,...s},...o,children:r.jsx("div",{className:"vx-scroll-area__viewport",children:n})})}function ol({pressed:e,defaultPressed:t=!1,onPressedChange:n,size:a="md",className:s,children:o,onClick:l,...i}){const[u,c]=N.useState(t),d=e!==void 0,p=d?e:u,b=k=>{d||c(j=>!j),n==null||n(!p),l==null||l(k)};return r.jsx("button",{type:"button","aria-pressed":p,className:E("vx-toggle",`vx-toggle--${a}`,p&&"vx-toggle--on",s),onClick:b,...i,children:o})}function il({items:e,value:t,defaultValue:n,onValueChange:a,type:s="single",size:o="md",className:l}){const[i,u]=N.useState(n??(s==="multiple"?[]:"")),c=t!==void 0,d=c?t:i,p=k=>Array.isArray(d)?d.includes(k):d===k,b=k=>{let j;if(s==="multiple"){const g=Array.isArray(d)?d:[];j=g.includes(k)?g.filter(h=>h!==k):[...g,k]}else j=d===k?"":k;c||u(j),a==null||a(j)};return r.jsx("div",{className:E("vx-toggle-group",l),role:"group",children:e.map(k=>r.jsx("button",{type:"button","aria-pressed":p(k.value),disabled:k.disabled,className:E("vx-toggle",`vx-toggle--${o}`,p(k.value)&&"vx-toggle--on","vx-toggle-group__item"),onClick:()=>!k.disabled&&b(k.value),children:k.label},k.value))})}function ll({groups:e,items:t,children:n,className:a}){const[s,o]=N.useState(null),l=N.useRef(null),i=e??(t?[{items:t}]:[]);N.useEffect(()=>{if(!s)return;const c=p=>{l.current&&!l.current.contains(p.target)&&o(null)},d=p=>{p.key==="Escape"&&o(null)};return document.addEventListener("mousedown",c),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",c),document.removeEventListener("keydown",d)}},[s]);const u=N.useCallback(c=>{c.preventDefault(),o({x:c.clientX,y:c.clientY})},[]);return r.jsxs("div",{className:E("vx-context-menu-wrap",a),onContextMenu:u,children:[n,s&&r.jsx("div",{ref:l,className:"vx-dropdown__menu",style:{position:"fixed",top:s.y,left:s.x,zIndex:9999},role:"menu",children:i.map((c,d)=>r.jsxs("div",{className:"vx-dropdown__group",children:[d>0&&r.jsx("div",{className:"vx-dropdown__separator"}),c.label&&r.jsx("div",{className:"vx-dropdown__group-label",children:c.label}),c.items.map((p,b)=>r.jsxs("button",{type:"button",role:"menuitem",disabled:p.disabled,className:E("vx-dropdown__item",p.danger&&"vx-dropdown__item--danger",p.disabled&&"vx-dropdown__item--disabled"),onClick:()=>{var k;(k=p.onClick)==null||k.call(p),o(null)},children:[p.icon&&r.jsx("span",{className:"vx-dropdown__item-icon",children:p.icon}),r.jsx("span",{className:"vx-dropdown__item-label",children:p.label}),p.shortcut&&r.jsx("span",{className:"vx-dropdown__shortcut",children:p.shortcut})]},b))]},d))})]})}function cl({content:e,placement:t="bottom",delay:n=400,children:a,className:s}){const[o,l]=N.useState(!1),i=N.useRef(null),u=N.useCallback(()=>{i.current=setTimeout(()=>l(!0),n)},[n]),c=N.useCallback(()=>{i.current&&clearTimeout(i.current),l(!1)},[]);return r.jsxs("span",{className:E("vx-hovercard-wrap",s),onMouseEnter:u,onMouseLeave:c,onFocus:u,onBlur:c,children:[a,o&&r.jsx("div",{className:E("vx-hovercard",`vx-hovercard--${t}`),children:e})]})}function ul({menus:e,className:t}){const[n,a]=N.useState(null),s=N.useRef(null);return N.useEffect(()=>{if(n===null)return;const o=i=>{s.current&&!s.current.contains(i.target)&&a(null)},l=i=>{i.key==="Escape"&&a(null)};return document.addEventListener("mousedown",o),document.addEventListener("keydown",l),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("keydown",l)}},[n]),r.jsx("div",{ref:s,className:E("vx-menubar",t),role:"menubar",children:e.map((o,l)=>{const i=o.groups??(o.items?[{items:o.items}]:[]),u=n===l;return r.jsxs("div",{className:"vx-menubar__item-wrap",children:[r.jsx("button",{type:"button",role:"menuitem",className:E("vx-menubar__trigger",u&&"vx-menubar__trigger--open"),disabled:o.disabled,"aria-haspopup":"menu","aria-expanded":u,onClick:()=>a(u?null:l),onMouseEnter:()=>{n!==null&&a(l)},children:o.label}),u&&r.jsx("div",{className:"vx-dropdown__menu",role:"menu",children:i.map((c,d)=>r.jsxs("div",{className:"vx-dropdown__group",children:[d>0&&r.jsx("div",{className:"vx-dropdown__separator"}),c.label&&r.jsx("div",{className:"vx-dropdown__group-label",children:c.label}),c.items.map((p,b)=>r.jsxs("button",{type:"button",role:"menuitem",disabled:p.disabled,className:E("vx-dropdown__item",p.danger&&"vx-dropdown__item--danger",p.disabled&&"vx-dropdown__item--disabled"),onClick:()=>{var k;(k=p.onClick)==null||k.call(p),a(null)},children:[p.icon&&r.jsx("span",{className:"vx-dropdown__item-icon",children:p.icon}),r.jsx("span",{className:"vx-dropdown__item-label",children:p.label}),p.shortcut&&r.jsx("span",{className:"vx-dropdown__shortcut",children:p.shortcut})]},b))]},d))})]},l)})})}function dl({items:e,className:t}){const[n,a]=N.useState(null),s=N.useRef(null);return N.useEffect(()=>{if(n===null)return;const o=i=>{s.current&&!s.current.contains(i.target)&&a(null)},l=i=>{i.key==="Escape"&&a(null)};return document.addEventListener("mousedown",o),document.addEventListener("keydown",l),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("keydown",l)}},[n]),r.jsx("nav",{ref:s,className:E("vx-nav-menu",t),"aria-label":"Main navigation",children:r.jsx("ul",{className:"vx-nav-menu__list",role:"list",children:e.map((o,l)=>{const i=o.items&&o.items.length>0,u=n===l;return r.jsxs("li",{className:"vx-nav-menu__item-wrap",children:[i?r.jsxs("button",{type:"button",className:E("vx-nav-menu__link",o.active&&"vx-nav-menu__link--active",u&&"vx-nav-menu__link--open"),"aria-haspopup":"true","aria-expanded":u,onClick:()=>a(u?null:l),children:[o.label,r.jsx(st,{size:14,className:E("vx-nav-menu__chevron",u&&"vx-nav-menu__chevron--open")})]}):r.jsx("a",{href:o.href??"#",className:E("vx-nav-menu__link",o.active&&"vx-nav-menu__link--active"),onClick:o.onClick,children:o.label}),i&&u&&r.jsx("div",{className:"vx-nav-menu__dropdown",children:o.items.map((c,d)=>r.jsxs("a",{href:c.href??"#",className:"vx-nav-menu__sub-item",onClick:()=>{var p;(p=c.onClick)==null||p.call(c),a(null)},children:[c.icon&&r.jsx("span",{className:"vx-nav-menu__sub-icon",children:c.icon}),r.jsxs("span",{children:[r.jsx("span",{className:"vx-nav-menu__sub-label",children:c.label}),c.description&&r.jsx("span",{className:"vx-nav-menu__sub-desc",children:c.description})]})]},d))})]},l)})})})}function pl({steps:e,currentStep:t=0,orientation:n="horizontal",className:a}){return r.jsx("ol",{className:E("vx-stepper",`vx-stepper--${n}`,a),"aria-label":"Steps",children:e.map((s,o)=>{const l=s.status??(o<t?"completed":o===t?"active":"pending");return r.jsxs("li",{className:E("vx-stepper__step",`vx-stepper__step--${l}`),children:[r.jsx("div",{className:"vx-stepper__indicator","aria-hidden":"true",children:l==="completed"?r.jsx(at,{size:14}):r.jsx("span",{children:o+1})}),r.jsxs("div",{className:"vx-stepper__content",children:[r.jsx("span",{className:"vx-stepper__label",children:s.label}),s.description&&r.jsx("span",{className:"vx-stepper__description",children:s.description})]}),o<e.length-1&&r.jsx("div",{className:"vx-stepper__connector","aria-hidden":"true"})]},o)})})}function fl({items:e,className:t}){return r.jsx("ol",{className:E("vx-timeline",t),"aria-label":"Timeline",children:e.map((n,a)=>r.jsxs("li",{className:E("vx-timeline__item",n.status&&`vx-timeline__item--${n.status}`),children:[r.jsx("div",{className:"vx-timeline__dot","aria-hidden":"true",children:n.icon??null}),r.jsxs("div",{className:"vx-timeline__body",children:[r.jsxs("div",{className:"vx-timeline__header",children:[r.jsx("span",{className:"vx-timeline__title",children:n.title}),n.time&&r.jsx("span",{className:"vx-timeline__time",children:n.time})]}),n.description&&r.jsx("p",{className:"vx-timeline__description",children:n.description})]})]},a))})}function vl({icon:e,title:t,description:n,action:a,className:s}){return r.jsxs("div",{className:E("vx-empty-state",s),role:"status","aria-live":"polite",children:[e&&r.jsx("div",{className:"vx-empty-state__icon","aria-hidden":"true",children:e}),r.jsx("p",{className:"vx-empty-state__title",children:t}),n&&r.jsx("p",{className:"vx-empty-state__description",children:n}),a&&r.jsx("div",{className:"vx-empty-state__action",children:a})]})}function ml({items:e,defaultIndex:t=0,index:n,onIndexChange:a,autoPlay:s=!1,interval:o=3e3,loop:l=!0,showDots:i=!0,showArrows:u=!0,className:c}){const d=n!==void 0,[p,b]=N.useState(t),k=d?n:p,j=e.length,g=N.useRef(null),h=N.useCallback(v=>{let f=v;l?f=(v%j+j)%j:f=Math.max(0,Math.min(v,j-1)),d||b(f),a==null||a(f)},[d,l,a,j]);N.useEffect(()=>{if(s)return g.current=setInterval(()=>h(k+1),o),()=>{g.current&&clearInterval(g.current)}},[s,k,h,o]);const w=()=>h(k-1),m=()=>h(k+1);return j===0?null:r.jsxs("div",{className:E("vx-carousel",c),role:"region","aria-roledescription":"carousel","aria-label":"Carousel",children:[r.jsx("div",{className:"vx-carousel__track-wrap",children:r.jsx("div",{className:"vx-carousel__track",style:{transform:`translateX(-${k*100}%)`},children:e.map((v,f)=>r.jsx("div",{className:"vx-carousel__slide",role:"group","aria-roledescription":"slide","aria-label":`Slide ${f+1} of ${j}`,"aria-hidden":f!==k,children:v},f))})}),u&&r.jsxs(r.Fragment,{children:[r.jsx("button",{type:"button",className:"vx-carousel__arrow vx-carousel__arrow--prev",onClick:w,disabled:!l&&k===0,"aria-label":"Previous slide",children:r.jsx(en,{size:20})}),r.jsx("button",{type:"button",className:"vx-carousel__arrow vx-carousel__arrow--next",onClick:m,disabled:!l&&k===j-1,"aria-label":"Next slide",children:r.jsx(Pe,{size:20})})]}),i&&r.jsx("div",{className:"vx-carousel__dots",role:"tablist","aria-label":"Slides",children:e.map((v,f)=>r.jsx("button",{type:"button",role:"tab",className:E("vx-carousel__dot",f===k&&"vx-carousel__dot--active"),onClick:()=>h(f),"aria-selected":f===k,"aria-label":`Go to slide ${f+1}`},f))})]})}function hl({filled:e,half:t}){return r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:t?r.jsxs(r.Fragment,{children:[r.jsx("defs",{children:r.jsxs("linearGradient",{id:"vx-star-half",children:[r.jsx("stop",{offset:"50%",stopColor:"currentColor"}),r.jsx("stop",{offset:"50%",stopColor:"none",stopOpacity:"0"})]})}),r.jsx("path",{d:"M10 1.5l2.39 4.84 5.34.78-3.87 3.77.91 5.32L10 13.77l-4.77 2.44.91-5.32L2.27 7.12l5.34-.78L10 1.5z",fill:"url(#vx-star-half)",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})]}):r.jsx("path",{d:"M10 1.5l2.39 4.84 5.34.78-3.87 3.77.91 5.32L10 13.77l-4.77 2.44.91-5.32L2.27 7.12l5.34-.78L10 1.5z",fill:e?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})})}function gl({value:e,defaultValue:t=0,onChange:n,max:a=5,allowHalf:s=!1,disabled:o,readOnly:l,label:i,className:u,size:c="md"}){const d=e!==void 0,[p,b]=N.useState(t),k=d?e:p,[j,g]=N.useState(null),h=j??k,w=(f,y)=>{if(!s)return f;const _=y.currentTarget.getBoundingClientRect();return y.clientX-_.left<_.width/2?f-.5:f},m=(f,y)=>{if(o||l)return;const _=w(f,y);d||b(_),n==null||n(_)},v=(f,y)=>{o||l||g(w(f,y))};return r.jsx("div",{className:E("vx-rating",`vx-rating--${c}`,o&&"vx-rating--disabled",u),role:"group","aria-label":i??"Rating",children:Array.from({length:a},(f,y)=>{const _=y+1,S=h>=_,C=!S&&h>=_-.5;return r.jsx("button",{type:"button",className:E("vx-rating__star",(S||C)&&"vx-rating__star--active"),onClick:T=>m(_,T),onMouseMove:T=>v(_,T),onMouseLeave:()=>g(null),disabled:o,"aria-label":`${_} star${_!==1?"s":""}`,"aria-pressed":k>=_,tabIndex:l||o?-1:0,children:r.jsx(hl,{filled:S,half:C})},y)})})}function Fr({node:e,depth:t,selected:n,expanded:a,onSelect:s,onToggle:o}){const l=e.children&&e.children.length>0,i=a.has(e.id),u=n===e.id,c=d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),e.disabled||s(e.id,e)),d.key==="ArrowRight"&&l&&!i&&(d.preventDefault(),o(e.id)),d.key==="ArrowLeft"&&i&&(d.preventDefault(),o(e.id))};return r.jsxs("li",{role:"treeitem","aria-selected":u,"aria-expanded":l?i:void 0,children:[r.jsxs("div",{className:E("vx-tree__node",u&&"vx-tree__node--selected",e.disabled&&"vx-tree__node--disabled"),style:{paddingLeft:`${8+t*20}px`},onClick:()=>{e.disabled||(s(e.id,e),l&&o(e.id))},onKeyDown:c,tabIndex:e.disabled?-1:0,role:"button","aria-label":typeof e.label=="string"?e.label:void 0,children:[r.jsx("span",{className:E("vx-tree__expand",!l&&"vx-tree__expand--hidden"),children:r.jsx(Pe,{size:14,className:E("vx-tree__chevron",i&&"vx-tree__chevron--open")})}),e.icon&&r.jsx("span",{className:"vx-tree__icon",children:e.icon}),r.jsx("span",{className:"vx-tree__label",children:e.label})]}),l&&i&&r.jsx("ul",{role:"group",className:"vx-tree__children",children:e.children.map(d=>r.jsx(Fr,{node:d,depth:t+1,selected:n,expanded:a,onSelect:s,onToggle:o},d.id))})]})}function xl({nodes:e,selected:t,defaultSelected:n,onSelect:a,defaultExpanded:s=[],expanded:o,onExpandedChange:l,className:i}){const u=t!==void 0,[c,d]=N.useState(n),p=u?t:c,b=o!==void 0,[k,j]=N.useState(new Set(s)),g=b?new Set(o):k,h=N.useCallback((m,v)=>{u||d(m),a==null||a(m,v)},[u,a]),w=N.useCallback(m=>{const v=new Set(g);v.has(m)?v.delete(m):v.add(m),b||j(v),l==null||l([...v])},[g,b,l]);return r.jsx("ul",{className:E("vx-tree",i),role:"tree","aria-multiselectable":"false",children:e.map(m=>r.jsx(Fr,{node:m,depth:0,selected:p,expanded:g,onSelect:h,onToggle:w},m.id))})}function bl({value:e,defaultValue:t=[],onChange:n,label:a,hint:s,error:o,placeholder:l="Add tag...",confirmKeys:i=["Enter",","],maxTags:u,validate:c,disabled:d,className:p,...b}){const k=e!==void 0,[j,g]=N.useState(t),h=k?e:j,[w,m]=N.useState(""),[v,f]=N.useState(),y=N.useRef(null),_=R=>{k||g(R),n==null||n(R)},S=R=>{const P=R.trim();if(P){if(h.includes(P)){f("Tag already exists");return}if(u&&h.length>=u){f(`Max ${u} tags`);return}if(c){const I=c(P);if(I===!1){f("Invalid tag");return}if(typeof I=="string"){f(I);return}}f(void 0),_([...h,P]),m("")}},C=R=>{_(h.filter((P,I)=>I!==R))},T=R=>{i.includes(R.key)?(R.preventDefault(),S(w)):R.key==="Backspace"&&!w&&h.length>0&&C(h.length-1)},A=o??v;return r.jsxs("div",{className:E("vx-tag-input",p),children:[a?r.jsx("span",{className:"vx-field-group__label",children:a}):null,r.jsxs("div",{className:E("vx-tag-input__wrap",A&&"vx-tag-input__wrap--invalid",d&&"vx-tag-input__wrap--disabled"),onClick:()=>{var R;return(R=y.current)==null?void 0:R.focus()},children:[h.map((R,P)=>r.jsxs("span",{className:"vx-tag-input__tag",children:[R,!d&&r.jsx("button",{type:"button",className:"vx-tag-input__remove",onClick:I=>{I.stopPropagation(),C(P)},"aria-label":`Remove tag ${R}`,children:r.jsx(ie,{size:11})})]},P)),r.jsx("input",{ref:y,className:"vx-tag-input__input",value:w,placeholder:h.length===0?l:"",disabled:d,onKeyDown:T,onChange:R=>{m(R.target.value),f(void 0)},onBlur:()=>{w.trim()&&S(w)},"aria-label":a??"Tag input",...b})]}),A?r.jsx("span",{className:"vx-field-group__error",children:A}):null,!A&&s?r.jsx("span",{className:"vx-field-group__hint",children:s}):null]})}function yl(e){const t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,a=parseInt(e.slice(5,7),16)/255,s=Math.max(t,n,a),o=Math.min(t,n,a),l=(s+o)/2;let i=0,u=0;if(s!==o){const c=s-o;switch(u=c/(l>.5?2-s-o:s+o),s){case t:i=((n-a)/c+(n<a?6:0))/6;break;case n:i=((a-t)/c+2)/6;break;case a:i=((t-n)/c+4)/6;break}}return[Math.round(i*360),Math.round(u*100),Math.round(l*100)]}function qe(e,t,n){const a=e/360,s=t/100,o=n/100,l=(p,b,k)=>{let j=k;return j<0&&(j+=1),j>1&&(j-=1),j<1/6?p+(b-p)*6*j:j<1/2?b:j<2/3?p+(b-p)*(2/3-j)*6:p};let i,u,c;if(s===0)i=u=c=o;else{const p=o<.5?o*(1+s):o+s-o*s,b=2*o-p;i=l(b,p,a+1/3),u=l(b,p,a),c=l(b,p,a-1/3)}const d=p=>Math.round(p*255).toString(16).padStart(2,"0");return`#${d(i)}${d(u)}${d(c)}`}function Ut(e){return/^#[0-9a-f]{6}$/i.test(e)}const _l=["#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899","#64748b","#0f172a","#ffffff","#f8fafc"];function wl({value:e,defaultValue:t="#3b82f6",onChange:n,label:a,hint:s,error:o,disabled:l,presets:i=_l,showPresets:u=!0,className:c}){const d=e!==void 0,[p,b]=N.useState(t),k=d?e:p,[j,g]=N.useState(k),[h,w]=N.useState(!1),[m,v,f]=Ut(k)?yl(k):[0,0,50],y=N.useCallback(S=>{d||b(S),g(S),n==null||n(S)},[d,n]),_=S=>{const C=S.startsWith("#")?S:`#${S}`;g(C),Ut(C)&&y(C)};return r.jsxs("div",{className:E("vx-colorpicker",c),children:[a?r.jsx("span",{className:"vx-field-group__label",children:a}):null,r.jsxs("div",{className:"vx-colorpicker__row",children:[r.jsx("button",{type:"button",className:E("vx-colorpicker__swatch-btn",l&&"vx-colorpicker__swatch-btn--disabled"),style:{"--vx-cp-color":k},onClick:()=>!l&&w(S=>!S),disabled:l,"aria-label":`Current color: ${k}. Click to open color picker.`,"aria-haspopup":"dialog","aria-expanded":h}),r.jsx("input",{type:"text",className:"vx-colorpicker__hex-input",value:j,onChange:S=>_(S.target.value),disabled:l,"aria-label":"Hex color value",maxLength:7})]}),o?r.jsx("span",{className:"vx-field-group__error",children:o}):null,!o&&s?r.jsx("span",{className:"vx-field-group__hint",children:s}):null,h&&r.jsxs("div",{className:"vx-colorpicker__panel",role:"dialog","aria-label":"Color picker",children:[r.jsx("div",{className:"vx-colorpicker__section-label",children:"Hue"}),r.jsx("input",{type:"range",className:"vx-colorpicker__hue-slider",min:"0",max:"360",value:m,onChange:S=>y(qe(Number(S.target.value),v,f)),"aria-label":"Hue"}),r.jsx("div",{className:"vx-colorpicker__section-label",children:"Saturation"}),r.jsx("input",{type:"range",className:"vx-colorpicker__sat-slider",min:"0",max:"100",value:v,style:{"--vx-cp-hue":m},onChange:S=>y(qe(m,Number(S.target.value),f)),"aria-label":"Saturation"}),r.jsx("div",{className:"vx-colorpicker__section-label",children:"Lightness"}),r.jsx("input",{type:"range",className:"vx-colorpicker__lit-slider",min:"0",max:"100",value:f,style:{"--vx-cp-hue":m,"--vx-cp-sat":`${v}%`},onChange:S=>y(qe(m,v,Number(S.target.value))),"aria-label":"Lightness"}),u&&r.jsx("div",{className:"vx-colorpicker__presets",children:i.map(S=>r.jsx("button",{type:"button",className:E("vx-colorpicker__preset",k.toLowerCase()===S.toLowerCase()&&"vx-colorpicker__preset--active"),style:{background:S},onClick:()=>y(S),"aria-label":S},S))}),r.jsx("button",{type:"button",className:"vx-colorpicker__close",onClick:()=>w(!1),children:"Done"})]})]})}function kl({direction:e="horizontal",children:t,className:n}){return r.jsx("div",{className:E("vx-resizable-group",`vx-resizable-group--${e}`,n),children:t})}function Sl({children:e,defaultSize:t=50,minSize:n=10,maxSize:a=90,className:s,style:o}){return r.jsx("div",{className:E("vx-resizable-panel",s),style:{"--vx-panel-size":`${t}%`,...o},"data-min":n,"data-max":a,children:e})}function Nl({className:e,direction:t="horizontal"}){const n=N.useRef(!1),[a,s]=N.useState(!1),o=N.useCallback(l=>{const i=l.currentTarget,u=i.previousElementSibling,c=i.nextElementSibling;if(!u||!c)return;const d=i.parentElement,p=t==="horizontal",b=p?d.getBoundingClientRect().width:d.getBoundingClientRect().height,k=p?u.getBoundingClientRect().width:u.getBoundingClientRect().height,j=p?c.getBoundingClientRect().width:c.getBoundingClientRect().height,g=S=>"touches"in S?p?S.touches[0].clientX:S.touches[0].clientY:p?S.clientX:S.clientY,h=g(l.nativeEvent);n.current=!0,s(!0);const w=Number(u.dataset.min??10)/100*b,m=Number(u.dataset.max??90)/100*b,v=Number(c.dataset.min??10)/100*b,f=Number(c.dataset.max??90)/100*b,y=S=>{if(!n.current)return;const C=g(S)-h,T=Math.min(Math.max(k+C,w),m),A=Math.min(Math.max(j-C,v),f);u.style.flexBasis=`${T/b*100}%`,c.style.flexBasis=`${A/b*100}%`},_=()=>{n.current=!1,s(!1),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",_)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",_),document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",_)},[t]);return r.jsx("div",{role:"separator","aria-orientation":t==="horizontal"?"vertical":"horizontal",className:E("vx-resizable-handle",`vx-resizable-handle--${t}`,a&&"vx-resizable-handle--active",e),onMouseDown:o,onTouchStart:o,children:r.jsx("span",{className:"vx-resizable-handle__bar","aria-hidden":"true"})})}function Ht(e,t){if(!t)return e;const n=e.toLowerCase().indexOf(t.toLowerCase());return n===-1?e:r.jsxs(r.Fragment,{children:[e.slice(0,n),r.jsx("mark",{className:"vx-cmd__mark",children:e.slice(n,n+t.length)}),e.slice(n+t.length)]})}function jl(e,t){const n=t.toLowerCase(),a=e.title.toLowerCase(),s=e.section.toLowerCase(),o=e.description.toLowerCase(),l=(e.keywords??[]).join(" ").toLowerCase();return a===n?100:a.startsWith(n)?80:a.includes(n)?60:s.includes(n)?40:l.includes(n)?35:o.includes(n)?20:0}function El({entries:e,open:t,onClose:n,onSelect:a,placeholder:s="Search components, pages, keywords…",ariaLabel:o="Search",emptyText:l=d=>`No results for "${d}"`,labelNavigate:i="Navigate",labelGo:u="Go",labelClose:c="Close"}){const[d,p]=N.useState(""),[b,k]=N.useState(0),j=N.useRef(null),g=N.useRef(null),h=d.trim()?e.map(f=>({entry:f,s:jl(f,d.trim())})).filter(f=>f.s>0).sort((f,y)=>y.s-f.s).map(f=>f.entry):e;N.useEffect(()=>{t&&(p(""),k(0),setTimeout(()=>{var f;return(f=j.current)==null?void 0:f.focus()},30))},[t]),N.useEffect(()=>{k(0)},[d]),N.useEffect(()=>{var y;const f=(y=g.current)==null?void 0:y.children[b];f==null||f.scrollIntoView({block:"nearest"})},[b]);const w=N.useCallback(f=>{a(f),n()},[a,n]),m=N.useCallback(f=>{f.key==="ArrowDown"?(f.preventDefault(),k(y=>Math.min(y+1,h.length-1))):f.key==="ArrowUp"?(f.preventDefault(),k(y=>Math.max(y-1,0))):f.key==="Enter"?(f.preventDefault(),h[b]&&w(h[b].key)):f.key==="Escape"&&n()},[h,b,w,n]);if(!t)return null;const v=[];for(const f of h){const y=v[v.length-1];y&&y.section===f.section?y.items.push(f):v.push({section:f.section,items:[f]})}return r.jsx("div",{className:"vx-cmd__backdrop",onMouseDown:n,children:r.jsxs("div",{className:"vx-cmd",role:"dialog","aria-modal":"true","aria-label":o,onMouseDown:f=>f.stopPropagation(),children:[r.jsxs("div",{className:"vx-cmd__search",children:[r.jsxs("svg",{className:"vx-cmd__search-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"6.5",cy:"6.5",r:"5",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),r.jsx("input",{ref:j,className:"vx-cmd__input",type:"text",placeholder:s,value:d,onChange:f=>p(f.target.value),onKeyDown:m,autoComplete:"off",spellCheck:!1}),d?r.jsx("button",{className:"vx-cmd__clear",onClick:()=>p(""),"aria-label":"清除",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}):r.jsx("kbd",{className:"vx-cmd__esc",children:"esc"})]}),r.jsx("ul",{className:"vx-cmd__list",ref:g,role:"listbox",children:h.length===0?r.jsx("li",{className:"vx-cmd__empty",children:l(d)}):v.map(f=>f.items.map((y,_)=>{const S=h.indexOf(y),C=S===b;return r.jsxs("li",{role:"option","aria-selected":C,className:`vx-cmd__item${C?" vx-cmd__item--active":""}`,onMouseEnter:()=>k(S),onMouseDown:()=>w(y.key),children:[y.icon?r.jsx("span",{className:"vx-cmd__item-icon",children:y.icon}):r.jsx("span",{className:"vx-cmd__item-icon vx-cmd__item-icon--section",children:y.section.slice(0,1)}),r.jsxs("span",{className:"vx-cmd__item-body",children:[r.jsx("span",{className:"vx-cmd__item-title",children:Ht(y.title,d)}),r.jsx("span",{className:"vx-cmd__item-sub",children:Ht(y.section,d)})]}),C&&r.jsx("kbd",{className:"vx-cmd__enter",children:"↵"})]},y.key)}))}),r.jsxs("div",{className:"vx-cmd__footer",children:[r.jsxs("span",{children:[r.jsx("kbd",{children:"↑↓"})," ",i]}),r.jsxs("span",{children:[r.jsx("kbd",{children:"↵"})," ",u]}),r.jsxs("span",{children:[r.jsx("kbd",{children:"esc"})," ",c]})]})]})})}var Wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xe={exports:{}},Gt;function Tl(){return Gt||(Gt=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
120
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Us="DialogDescriptionWarning",Hs=({contentRef:e,descriptionId:t})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kn(Us).contentName}}.`;return x.useEffect(()=>{var o;const s=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(a))},[a,e,t]),null},pt=Fn,ft=In,vt=Mn,mt=On,ht=$n,gt=zn,xt=Hn,Ae=Gn;function Ws({trigger:e,title:t,description:n,children:a,footer:s,className:o,size:l="md",padding:i,scrollable:u=!1,closable:c=!0,...d}){return r.jsxs(pt,{...d,children:[r.jsx(ft,{asChild:!0,children:e}),r.jsxs(vt,{children:[r.jsx(mt,{className:"vx-dialog__overlay"}),r.jsxs(ht,{className:E("vx-dialog__content",l!=="md"&&`vx-dialog__content--${l}`,i&&`vx-dialog__content--pad-${i}`,u&&"vx-dialog__content--scrollable",o),children:[r.jsxs("div",{className:"vx-dialog__header",children:[r.jsxs("div",{children:[r.jsx(gt,{className:"vx-dialog__title",children:t}),n?r.jsx(xt,{className:"vx-dialog__description",children:n}):null]}),c?r.jsx(Ae,{className:"vx-dialog__close","aria-label":"Close dialog",children:r.jsx(ie,{size:16})}):null]}),r.jsx("div",{className:"vx-dialog__body",children:a}),s?r.jsx("div",{className:"vx-dialog__footer",children:s}):null]})]})]})}function Gs({className:e,label:t,hint:n,prefix:a,suffix:s,error:o,variant:l="default",size:i="md",rounded:u=!1,...c}){return r.jsxs("label",{className:"vx-field-group",children:[t?r.jsx("span",{className:"vx-field-group__label",children:t}):null,r.jsxs("span",{className:E("vx-input",l!=="default"&&`vx-input--${l}`,i!=="md"&&`vx-input--${i}`,u&&"vx-input--rounded",o&&"vx-input--invalid",e),children:[a?r.jsx("span",{className:"vx-input__ornament",children:a}):null,r.jsx("input",{className:"vx-input__field","aria-invalid":o?"true":void 0,...c}),s?r.jsx("span",{className:"vx-input__ornament",children:s}):null]}),o?r.jsx("span",{className:"vx-field-group__error",children:o}):null,!o&&n?r.jsx("span",{className:"vx-field-group__hint",children:n}):null]})}function Vs(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function Ks(e){const[t,n]=x.useState(void 0);return J(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const o=s[0];let l,i;if("borderBoxSize"in o){const u=o.borderBoxSize,c=Array.isArray(u)?u[0]:u;l=c.inlineSize,i=c.blockSize}else l=e.offsetWidth,i=e.offsetHeight;n({width:l,height:i})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}var Ie="Switch",[qs]=le(Ie),[Ys,Xs]=qs(Ie),qn=x.forwardRef((e,t)=>{const{__scopeSwitch:n,name:a,checked:s,defaultChecked:o,required:l,disabled:i,value:u="on",onCheckedChange:c,form:d,...p}=e,[b,w]=x.useState(null),j=U(t,v=>w(v)),g=x.useRef(!1),h=b?d||!!b.closest("form"):!0,[_,m]=pe({prop:s,defaultProp:o??!1,onChange:c,caller:Ie});return r.jsxs(Ys,{scope:n,checked:_,disabled:i,children:[r.jsx(L.button,{type:"button",role:"switch","aria-checked":_,"aria-required":l,"data-state":Qn(_),"data-disabled":i?"":void 0,disabled:i,value:u,...p,ref:j,onClick:I(e.onClick,v=>{m(f=>!f),h&&(g.current=v.isPropagationStopped(),g.current||v.stopPropagation())})}),h&&r.jsx(Zn,{control:b,bubbles:!g.current,name:a,value:u,checked:_,required:l,disabled:i,form:d,style:{transform:"translateX(-100%)"}})]})});qn.displayName=Ie;var Yn="SwitchThumb",Xn=x.forwardRef((e,t)=>{const{__scopeSwitch:n,...a}=e,s=Xs(Yn,n);return r.jsx(L.span,{"data-state":Qn(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:t})});Xn.displayName=Yn;var Zs="SwitchBubbleInput",Zn=x.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:a=!0,...s},o)=>{const l=x.useRef(null),i=U(l,o),u=Vs(n),c=Ks(t);return x.useEffect(()=>{const d=l.current;if(!d)return;const p=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(p,"checked").set;if(u!==n&&w){const j=new Event("click",{bubbles:a});w.call(d,n),d.dispatchEvent(j)}},[u,n,a]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:i,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Zn.displayName=Zs;function Qn(e){return e?"checked":"unchecked"}var Qs=qn,Js=Xn;function eo({className:e,label:t,description:n,...a}){return r.jsxs("label",{className:"vx-switch",children:[r.jsxs("span",{className:"vx-switch__copy",children:[r.jsx("span",{className:"vx-switch__label",children:t}),n?r.jsx("span",{className:"vx-switch__description",children:n}):null]}),r.jsx(Qs,{className:E("vx-switch__control",e),...a,children:r.jsx(Js,{className:"vx-switch__thumb"})})]})}function Jn(e){const t=e+"CollectionProvider",[n,a]=le(t),[s,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=g=>{const{scope:h,children:_}=g,m=k.useRef(null),v=k.useRef(new Map).current;return r.jsx(s,{scope:h,itemMap:v,collectionRef:m,children:_})};l.displayName=t;const i=e+"CollectionSlot",u=Ce(i),c=k.forwardRef((g,h)=>{const{scope:_,children:m}=g,v=o(i,_),f=U(h,v.collectionRef);return r.jsx(u,{ref:f,children:m})});c.displayName=i;const d=e+"CollectionItemSlot",p="data-radix-collection-item",b=Ce(d),w=k.forwardRef((g,h)=>{const{scope:_,children:m,...v}=g,f=k.useRef(null),y=U(h,f),S=o(d,_);return k.useEffect(()=>(S.itemMap.set(f,{ref:f,...v}),()=>void S.itemMap.delete(f))),r.jsx(b,{[p]:"",ref:y,children:m})});w.displayName=d;function j(g){const h=o(e+"CollectionConsumer",g);return k.useCallback(()=>{const m=h.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${p}]`));return Array.from(h.itemMap.values()).sort((S,N)=>v.indexOf(S.ref.current)-v.indexOf(N.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:l,Slot:c,ItemSlot:w},j,a]}var to=x.createContext(void 0);function er(e){const t=x.useContext(to);return e||t||"ltr"}var qe="rovingFocusGroup.onEntryFocus",no={bubbles:!1,cancelable:!0},fe="RovingFocusGroup",[et,tr,ro]=Jn(fe),[ao,nr]=le(fe,[ro]),[so,oo]=ao(fe),rr=x.forwardRef((e,t)=>r.jsx(et.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(et.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(io,{...e,ref:t})})}));rr.displayName=fe;var io=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:s=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...p}=e,b=x.useRef(null),w=U(t,b),j=er(o),[g,h]=pe({prop:l,defaultProp:i??null,onChange:u,caller:fe}),[_,m]=x.useState(!1),v=q(c),f=tr(n),y=x.useRef(!1),[S,N]=x.useState(0);return x.useEffect(()=>{const C=b.current;if(C)return C.addEventListener(qe,v),()=>C.removeEventListener(qe,v)},[v]),r.jsx(so,{scope:n,orientation:a,dir:j,loop:s,currentTabStopId:g,onItemFocus:x.useCallback(C=>h(C),[h]),onItemShiftTab:x.useCallback(()=>m(!0),[]),onFocusableItemAdd:x.useCallback(()=>N(C=>C+1),[]),onFocusableItemRemove:x.useCallback(()=>N(C=>C-1),[]),children:r.jsx(L.div,{tabIndex:_||S===0?-1:0,"data-orientation":a,...p,ref:w,style:{outline:"none",...e.style},onMouseDown:I(e.onMouseDown,()=>{y.current=!0}),onFocus:I(e.onFocus,C=>{const T=!y.current;if(C.target===C.currentTarget&&T&&!_){const P=new CustomEvent(qe,no);if(C.currentTarget.dispatchEvent(P),!P.defaultPrevented){const R=f().filter($=>$.focusable),A=R.find($=>$.active),D=R.find($=>$.id===g),O=[A,D,...R].filter(Boolean).map($=>$.ref.current);or(O,d)}}y.current=!1}),onBlur:I(e.onBlur,()=>m(!1))})})}),ar="RovingFocusGroupItem",sr=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:s=!1,tabStopId:o,children:l,...i}=e,u=de(),c=o||u,d=oo(ar,n),p=d.currentTabStopId===c,b=tr(n),{onFocusableItemAdd:w,onFocusableItemRemove:j,currentTabStopId:g}=d;return x.useEffect(()=>{if(a)return w(),()=>j()},[a,w,j]),r.jsx(et.ItemSlot,{scope:n,id:c,focusable:a,active:s,children:r.jsx(L.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...i,ref:t,onMouseDown:I(e.onMouseDown,h=>{a?d.onItemFocus(c):h.preventDefault()}),onFocus:I(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:I(e.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){d.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const _=uo(h,d.orientation,d.dir);if(_!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let v=b().filter(f=>f.focusable).map(f=>f.ref.current);if(_==="last")v.reverse();else if(_==="prev"||_==="next"){_==="prev"&&v.reverse();const f=v.indexOf(h.currentTarget);v=d.loop?po(v,f+1):v.slice(f+1)}setTimeout(()=>or(v))}}),children:typeof l=="function"?l({isCurrentTabStop:p,hasTabStop:g!=null}):l})})});sr.displayName=ar;var lo={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function co(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function uo(e,t,n){const a=co(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return lo[a]}function or(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}function po(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var fo=rr,vo=sr,Le="Tabs",[mo]=le(Le,[nr]),ir=nr(),[ho,bt]=mo(Le),lr=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,onValueChange:s,defaultValue:o,orientation:l="horizontal",dir:i,activationMode:u="automatic",...c}=e,d=er(i),[p,b]=pe({prop:a,onChange:s,defaultProp:o??"",caller:Le});return r.jsx(ho,{scope:n,baseId:de(),value:p,onValueChange:b,orientation:l,dir:d,activationMode:u,children:r.jsx(L.div,{dir:d,"data-orientation":l,...c,ref:t})})});lr.displayName=Le;var cr="TabsList",ur=x.forwardRef((e,t)=>{const{__scopeTabs:n,loop:a=!0,...s}=e,o=bt(cr,n),l=ir(n);return r.jsx(fo,{asChild:!0,...l,orientation:o.orientation,dir:o.dir,loop:a,children:r.jsx(L.div,{role:"tablist","aria-orientation":o.orientation,...s,ref:t})})});ur.displayName=cr;var dr="TabsTrigger",pr=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,disabled:s=!1,...o}=e,l=bt(dr,n),i=ir(n),u=mr(l.baseId,a),c=hr(l.baseId,a),d=a===l.value;return r.jsx(vo,{asChild:!0,...i,focusable:!s,active:d,children:r.jsx(L.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":c,"data-state":d?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:u,...o,ref:t,onMouseDown:I(e.onMouseDown,p=>{!s&&p.button===0&&p.ctrlKey===!1?l.onValueChange(a):p.preventDefault()}),onKeyDown:I(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&l.onValueChange(a)}),onFocus:I(e.onFocus,()=>{const p=l.activationMode!=="manual";!d&&!s&&p&&l.onValueChange(a)})})})});pr.displayName=dr;var fr="TabsContent",vr=x.forwardRef((e,t)=>{const{__scopeTabs:n,value:a,forceMount:s,children:o,...l}=e,i=bt(fr,n),u=mr(i.baseId,a),c=hr(i.baseId,a),d=a===i.value,p=x.useRef(d);return x.useEffect(()=>{const b=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(b)},[]),r.jsx(ce,{present:s||d,children:({present:b})=>r.jsx(L.div,{"data-state":d?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":u,hidden:!b,id:c,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:b&&o})})});vr.displayName=fr;function mr(e,t){return`${e}-trigger-${t}`}function hr(e,t){return`${e}-content-${t}`}var go=lr,xo=ur,bo=pr,yo=vr;const _o=go,wo=k.forwardRef(function({className:t,...n},a){return r.jsx(xo,{ref:a,className:E("vx-tabs__list",t),...n})}),ko=k.forwardRef(function({className:t,...n},a){return r.jsx(bo,{ref:a,className:E("vx-tabs__trigger",t),...n})}),So=k.forwardRef(function({className:t,...n},a){return r.jsx(yo,{ref:a,className:E("vx-tabs__content",t),...n})}),gr={light:{label:"Light",mode:"light"},dark:{label:"Dark",mode:"dark"}};function H(e,t={}){return{label:t.label,mode:e,tokens:t.tokens}}const No={...gr,sunset:H("light",{label:"Sunset",tokens:{"--vx-primary":"#c2410c","--vx-primary-strong":"#9a3412","--vx-primary-soft":"rgba(194, 65, 12, 0.12)","--vx-secondary":"#9a3412","--vx-bg":"#fff7ed","--vx-bg-accent":"#ffedd5","--vx-surface-hover":"#fffaf5","--vx-border":"#fed7aa","--vx-border-strong":"#fdba74","--vx-text":"#431407","--vx-text-secondary":"#9a3412","--vx-text-muted":"#b45309","--vx-shadow-sm":"0 1px 2px rgba(124, 45, 18, 0.08)","--vx-shadow":"0 14px 32px rgba(124, 45, 18, 0.08)","--vx-shadow-lg":"0 28px 64px rgba(124, 45, 18, 0.12)"}}),mint:H("light",{label:"Mint",tokens:{"--vx-primary":"#0f766e","--vx-primary-strong":"#115e59","--vx-primary-soft":"rgba(15, 118, 110, 0.12)","--vx-secondary":"#0f766e","--vx-bg":"#f0fdfa","--vx-bg-accent":"#ccfbf1","--vx-surface-hover":"#f6fffd","--vx-border":"#99f6e4","--vx-border-strong":"#5eead4","--vx-text":"#042f2e","--vx-text-secondary":"#115e59","--vx-text-muted":"#0f766e","--vx-shadow-sm":"0 1px 2px rgba(4, 47, 46, 0.08)","--vx-shadow":"0 14px 32px rgba(4, 47, 46, 0.08)","--vx-shadow-lg":"0 28px 64px rgba(4, 47, 46, 0.12)"}}),graphite:H("dark",{label:"Graphite",tokens:{"--vx-primary":"#f59e0b","--vx-primary-strong":"#d97706","--vx-primary-soft":"rgba(245, 158, 11, 0.16)","--vx-bg":"#111111","--vx-bg-accent":"#191919","--vx-surface":"#18181b","--vx-surface-strong":"#111111","--vx-surface-hover":"#222225","--vx-border":"rgba(244, 244, 245, 0.10)","--vx-border-strong":"rgba(244, 244, 245, 0.18)","--vx-text":"#fafafa","--vx-text-secondary":"#d4d4d8","--vx-text-muted":"#a1a1aa","--vx-shadow-sm":"0 1px 2px rgba(0, 0, 0, 0.34)","--vx-shadow":"0 20px 44px rgba(0, 0, 0, 0.28)","--vx-shadow-lg":"0 30px 72px rgba(0, 0, 0, 0.38)"}}),"ivory-gold":H("light",{label:"Ivory Gold",tokens:{"--vx-primary":"#a0742a","--vx-primary-strong":"#7d5a1e","--vx-primary-soft":"rgba(160, 116, 42, 0.12)","--vx-bg":"#faf6ee","--vx-bg-accent":"#f2ead8","--vx-surface":"#ffffff","--vx-surface-strong":"#faf6ee","--vx-surface-hover":"#f6f0e4","--vx-border":"rgba(160, 116, 42, 0.18)","--vx-border-strong":"rgba(160, 116, 42, 0.38)","--vx-text":"#1c1409","--vx-text-secondary":"#5a4320","--vx-text-muted":"#9a7c4a","--vx-shadow-sm":"0 1px 2px rgba(90, 67, 32, 0.08)","--vx-shadow":"0 12px 32px rgba(90, 67, 32, 0.10)","--vx-shadow-lg":"0 28px 64px rgba(90, 67, 32, 0.14)","--vx-success":"#1a9e6e","--vx-warning":"#c4820a","--vx-danger":"#d63b3b"}}),"black-gold":H("dark",{label:"Black Gold",tokens:{"--vx-primary":"#c8a97c","--vx-primary-strong":"#9a7545","--vx-primary-soft":"rgba(200, 169, 124, 0.16)","--vx-bg":"#05070b","--vx-bg-accent":"#0a0d14","--vx-surface":"rgba(15, 18, 25, 0.76)","--vx-surface-strong":"rgba(18, 21, 29, 0.9)","--vx-surface-hover":"rgba(245, 233, 215, 0.1)","--vx-border":"rgba(245, 233, 215, 0.12)","--vx-border-strong":"rgba(200, 169, 124, 0.42)","--vx-text":"#f5e9d7","--vx-text-secondary":"#d7c8b2","--vx-text-muted":"#928a81","--vx-shadow-sm":"0 1px 2px rgba(0, 0, 0, 0.4)","--vx-shadow":"0 0 42px rgba(200, 169, 124, 0.16)","--vx-shadow-lg":"0 34px 120px rgba(0, 0, 0, 0.62)","--vx-success":"#32d49a","--vx-warning":"#e6ad64","--vx-danger":"#ef6a64"}}),ocean:H("dark",{label:"Ocean",tokens:{"--vx-primary":"#38bdf8","--vx-primary-strong":"#0ea5e9","--vx-primary-soft":"rgba(56, 189, 248, 0.16)","--vx-bg":"#06131f","--vx-bg-accent":"#0b1a2b","--vx-surface":"#0d2236","--vx-surface-strong":"#06131f","--vx-surface-hover":"#13314d","--vx-border":"rgba(125, 211, 252, 0.16)","--vx-border-strong":"rgba(56, 189, 248, 0.24)","--vx-text":"#e0f2fe","--vx-text-secondary":"#bae6fd","--vx-text-muted":"#7dd3fc","--vx-shadow-sm":"0 1px 2px rgba(2, 6, 23, 0.34)","--vx-shadow":"0 20px 44px rgba(2, 6, 23, 0.28)","--vx-shadow-lg":"0 30px 72px rgba(2, 6, 23, 0.4)"}}),indigo:H("light",{label:"Indigo",tokens:{"--vx-primary":"#5c5fe8","--vx-primary-strong":"#4f52d4","--vx-primary-soft":"rgba(92, 95, 232, 0.10)","--vx-secondary":"#818cf8","--vx-success":"#059669","--vx-warning":"#d97706","--vx-danger":"#dc2626","--vx-info":"#5c5fe8","--vx-bg":"#e8ecf6","--vx-bg-accent":"#dde3f0","--vx-surface":"#ffffff","--vx-surface-strong":"#f8f9ff","--vx-surface-hover":"#f4f5ff","--vx-border":"#d4daf0","--vx-border-strong":"#bfc8e8","--vx-text":"#1a2336","--vx-text-secondary":"#4a5572","--vx-text-muted":"#8b96b4","--vx-shadow-sm":"0 1px 3px rgba(28, 40, 80, 0.08)","--vx-shadow":"0 8px 28px rgba(28, 40, 80, 0.10)","--vx-shadow-lg":"0 24px 60px rgba(28, 40, 80, 0.14)","--vx-glass-bg":"color-mix(in srgb, #ffffff 86%, transparent)","--vx-glass-bg-strong":"color-mix(in srgb, #f8f9ff 93%, transparent)","--vx-glass-border":"rgba(92, 95, 232, 0.18)","--vx-glass-shadow":"0 16px 44px rgba(28, 40, 80, 0.12)","--vx-glass-highlight":"inset 0 1px 0 rgba(255, 255, 255, 0.70)","--vx-radius-sm":"10px","--vx-radius":"12px","--vx-radius-lg":"16px","--vx-radius-xl":"22px"}}),violet:H("light",{label:"Violet",tokens:{"--vx-primary":"#7c3aed","--vx-primary-strong":"#6d28d9","--vx-primary-soft":"rgba(124, 58, 237, 0.10)","--vx-secondary":"#8b5cf6","--vx-success":"#059669","--vx-warning":"#d97706","--vx-danger":"#dc2626","--vx-info":"#6d28d9","--vx-bg":"#f8f7ff","--vx-bg-accent":"#ede9fe","--vx-surface":"#ffffff","--vx-surface-strong":"#faf9ff","--vx-surface-hover":"#f5f3ff","--vx-border":"#e4dfff","--vx-border-strong":"#c9bffd","--vx-text":"#1e1b2e","--vx-text-secondary":"#6e6a8a","--vx-text-muted":"#a89fc8","--vx-shadow-sm":"0 1px 3px rgba(109, 40, 217, 0.07)","--vx-shadow":"0 12px 32px rgba(109, 40, 217, 0.10)","--vx-shadow-lg":"0 28px 64px rgba(109, 40, 217, 0.14)","--vx-glass-bg":"color-mix(in srgb, #ffffff 84%, transparent)","--vx-glass-bg-strong":"color-mix(in srgb, #faf9ff 92%, transparent)","--vx-glass-border":"rgba(196, 181, 253, 0.55)","--vx-glass-shadow":"0 18px 48px rgba(109, 40, 217, 0.12)","--vx-glass-highlight":"inset 0 1px 0 rgba(255, 255, 255, 0.60)","--vx-radius-sm":"10px","--vx-radius":"12px","--vx-radius-lg":"16px","--vx-radius-xl":"24px"}}),"violet-dark":H("dark",{label:"Violet Dark",tokens:{"--vx-primary":"#a78bfa","--vx-primary-strong":"#8b5cf6","--vx-primary-soft":"rgba(167, 139, 250, 0.16)","--vx-secondary":"#c4b5fd","--vx-success":"#34d399","--vx-warning":"#fbbf24","--vx-danger":"#f87171","--vx-info":"#c4b5fd","--vx-bg":"#0d0b1a","--vx-bg-accent":"#13102a","--vx-surface":"#1a1735","--vx-surface-strong":"#0d0b1a","--vx-surface-hover":"#1e1b3a","--vx-border":"rgba(167, 139, 250, 0.16)","--vx-border-strong":"rgba(167, 139, 250, 0.30)","--vx-text":"#f0eeff","--vx-text-secondary":"#c4b5fd","--vx-text-muted":"#8b7fc8","--vx-shadow-sm":"0 1px 3px rgba(0, 0, 0, 0.40)","--vx-shadow":"0 18px 44px rgba(0, 0, 0, 0.30)","--vx-shadow-lg":"0 30px 72px rgba(0, 0, 0, 0.44)","--vx-glass-bg":"color-mix(in srgb, #1a1735 86%, transparent)","--vx-glass-bg-strong":"color-mix(in srgb, #0d0b1a 94%, transparent)","--vx-glass-border":"rgba(167, 139, 250, 0.22)","--vx-glass-shadow":"0 22px 54px rgba(0, 0, 0, 0.50)","--vx-glass-highlight":"inset 0 1px 0 rgba(255, 255, 255, 0.07)","--vx-glass-scrim":"color-mix(in srgb, #04030d 62%, transparent)","--vx-radius-sm":"10px","--vx-radius":"12px","--vx-radius-lg":"16px","--vx-radius-xl":"24px"}}),vxai:H("light",{label:"VXAI (Default)",tokens:{"--vx-primary":"#4f46e5","--vx-primary-strong":"#4338ca","--vx-primary-soft":"rgba(79, 70, 229, 0.1)","--vx-secondary":"#64748b","--vx-success":"#10b981","--vx-warning":"#f59e0b","--vx-danger":"#ef4444","--vx-info":"#4f46e5","--vx-bg":"#f8fafc","--vx-bg-accent":"#f1f5f9","--vx-surface":"#ffffff","--vx-surface-strong":"#f8fafc","--vx-surface-hover":"#f1f5f9","--vx-border":"#e2e8f0","--vx-border-strong":"#cbd5e1","--vx-text":"#0f172a","--vx-text-secondary":"#334155","--vx-text-muted":"#64748b","--vx-shadow-sm":"0 1px 2px -1px rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1)","--vx-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1)","--vx-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1)","--vx-glass-bg":"rgba(255, 255, 255, 0.8)","--vx-glass-bg-strong":"rgba(255, 255, 255, 0.95)","--vx-glass-border":"#e2e8f0","--vx-glass-shadow":"none","--vx-glass-highlight":"none","--vx-radius-sm":"4px","--vx-radius":"6px","--vx-radius-lg":"8px","--vx-radius-xl":"12px"}}),"vxai-dark":H("dark",{label:"VXAI Dark",tokens:{"--vx-primary":"#6366f1","--vx-primary-strong":"#4f46e5","--vx-primary-soft":"rgba(99, 102, 241, 0.16)","--vx-secondary":"#cbd5e1","--vx-success":"#34d399","--vx-warning":"#fbbf24","--vx-danger":"#f87171","--vx-info":"#6366f1","--vx-bg":"#020617","--vx-bg-accent":"#0f172a","--vx-surface":"#0f172a","--vx-surface-strong":"#020617","--vx-surface-hover":"#1e293b","--vx-border":"oklch(27.8% 0.033 256.848)","--vx-border-strong":"#334155","--vx-text":"oklch(96.8% 0.007 247.896)","--vx-text-secondary":"#94a3b8","--vx-text-muted":"#64748b","--vx-shadow-sm":"0 1px 2px -1px rgba(0, 0, 0, 0.4), 0 1px 3px 0 rgba(0, 0, 0, 0.4)","--vx-shadow":"0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4)","--vx-shadow-lg":"0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4)","--vx-glass-bg":"rgba(15, 23, 42, 0.7)","--vx-glass-bg-strong":"rgba(15, 23, 42, 0.95)","--vx-glass-border":"oklch(27.8% 0.033 256.848)","--vx-glass-shadow":"none","--vx-glass-highlight":"none","--vx-radius-sm":"4px","--vx-radius":"6px","--vx-radius-lg":"8px","--vx-radius-xl":"12px"}})};function jo(e){return{...gr,...e}}function Eo(e,t){if(e&&t[e])return e;if(t.light)return"light";const[n]=Object.keys(t);return n??"light"}function Co(e,t){const n=window.localStorage.getItem(e);return n&&t[n]?n:null}function To(e,t,n){var s;if(((s=e[n])==null?void 0:s.mode)===t)return n;const a=Object.entries(e).find(([,o])=>o.mode===t);return a==null?void 0:a[0]}const xr=k.createContext(null);function Ao({children:e,defaultTheme:t="light",storageKey:n="vxui-react-theme",themes:a}){const s=k.useMemo(()=>jo(a),[a]),o=k.useMemo(()=>Eo(t,s),[t,s]),l=k.useRef([]),[i,u]=k.useState(()=>typeof window>"u"?o:Co(n,s)??o),c=s[i]?i:o,d=s[c];k.useEffect(()=>{i!==c&&u(c)},[c,i]),k.useEffect(()=>{const b=document.documentElement;for(const j of l.current)b.style.removeProperty(j);b.dataset.theme=d.mode,b.dataset.themeName=c;const w=Object.entries(d.tokens??{}).filter(j=>typeof j[1]=="string"&&j[1].length>0);for(const[j,g]of w)b.style.setProperty(j,g);l.current=w.map(([j])=>j),window.localStorage.setItem(n,c)},[d,c,n]);const p=k.useMemo(()=>({theme:c,mode:d.mode,themes:s,setTheme:b=>{u(s[b]?b:o)},toggleTheme:()=>{u(b=>{const j=(s[b]??d).mode==="light"?"dark":"light";return To(s,j,j)??b})}}),[d,o,s,c]);return r.jsx(xr.Provider,{value:p,children:e})}function Po(){const e=k.useContext(xr);if(!e)throw new Error("useTheme must be used within ThemeProvider.");return e}var Ro=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Fo="VisuallyHidden",yt=x.forwardRef((e,t)=>r.jsx(L.span,{...e,ref:t,style:{...Ro,...e.style}}));yt.displayName=Fo;var _t="ToastProvider",[wt,Do,Io]=Jn("Toast"),[br]=le("Toast",[Io]),[Lo,Me]=br(_t),yr=e=>{const{__scopeToast:t,label:n="Notification",duration:a=5e3,swipeDirection:s="right",swipeThreshold:o=50,children:l}=e,[i,u]=x.useState(null),[c,d]=x.useState(0),p=x.useRef(!1),b=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${_t}\`. Expected non-empty \`string\`.`),r.jsx(wt.Provider,{scope:t,children:r.jsx(Lo,{scope:t,label:n,duration:a,swipeDirection:s,swipeThreshold:o,toastCount:c,viewport:i,onViewportChange:u,onToastAdd:x.useCallback(()=>d(w=>w+1),[]),onToastRemove:x.useCallback(()=>d(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:b,children:l})})};yr.displayName=_t;var _r="ToastViewport",Mo=["F8"],tt="toast.viewportPause",nt="toast.viewportResume",wr=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:a=Mo,label:s="Notifications ({hotkey})",...o}=e,l=Me(_r,n),i=Do(n),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),b=U(t,p,l.onViewportChange),w=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),j=l.toastCount>0;x.useEffect(()=>{const h=_=>{var v;a.length!==0&&a.every(f=>_[f]||_.code===f)&&((v=p.current)==null||v.focus())};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[a]),x.useEffect(()=>{const h=u.current,_=p.current;if(j&&h&&_){const m=()=>{if(!l.isClosePausedRef.current){const S=new CustomEvent(tt);_.dispatchEvent(S),l.isClosePausedRef.current=!0}},v=()=>{if(l.isClosePausedRef.current){const S=new CustomEvent(nt);_.dispatchEvent(S),l.isClosePausedRef.current=!1}},f=S=>{!h.contains(S.relatedTarget)&&v()},y=()=>{h.contains(document.activeElement)||v()};return h.addEventListener("focusin",m),h.addEventListener("focusout",f),h.addEventListener("pointermove",m),h.addEventListener("pointerleave",y),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{h.removeEventListener("focusin",m),h.removeEventListener("focusout",f),h.removeEventListener("pointermove",m),h.removeEventListener("pointerleave",y),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[j,l.isClosePausedRef]);const g=x.useCallback(({tabbingDirection:h})=>{const m=i().map(v=>{const f=v.ref.current,y=[f,...Zo(f)];return h==="forwards"?y:y.reverse()});return(h==="forwards"?m.reverse():m).flat()},[i]);return x.useEffect(()=>{const h=p.current;if(h){const _=m=>{var y,S,N;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const C=document.activeElement,T=m.shiftKey;if(m.target===h&&T){(y=c.current)==null||y.focus();return}const A=g({tabbingDirection:T?"backwards":"forwards"}),D=A.findIndex(F=>F===C);Ye(A.slice(D+1))?m.preventDefault():T?(S=c.current)==null||S.focus():(N=d.current)==null||N.focus()}};return h.addEventListener("keydown",_),()=>h.removeEventListener("keydown",_)}},[i,g]),r.jsxs(La,{ref:u,role:"region","aria-label":s.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:j?void 0:"none"},children:[j&&r.jsx(rt,{ref:c,onFocusFromOutsideViewport:()=>{const h=g({tabbingDirection:"forwards"});Ye(h)}}),r.jsx(wt.Slot,{scope:n,children:r.jsx(L.ol,{tabIndex:-1,...o,ref:b})}),j&&r.jsx(rt,{ref:d,onFocusFromOutsideViewport:()=>{const h=g({tabbingDirection:"backwards"});Ye(h)}})]})});wr.displayName=_r;var kr="ToastFocusProxy",rt=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:a,...s}=e,o=Me(kr,n);return r.jsx(yt,{tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:l=>{var c;const i=l.relatedTarget;!((c=o.viewport)!=null&&c.contains(i))&&a()}})});rt.displayName=kr;var ve="Toast",Oo="toast.swipeStart",$o="toast.swipeMove",Bo="toast.swipeCancel",zo="toast.swipeEnd",Sr=x.forwardRef((e,t)=>{const{forceMount:n,open:a,defaultOpen:s,onOpenChange:o,...l}=e,[i,u]=pe({prop:a,defaultProp:s??!0,onChange:o,caller:ve});return r.jsx(ce,{present:n||i,children:r.jsx(Wo,{open:i,...l,ref:t,onClose:()=>u(!1),onPause:q(e.onPause),onResume:q(e.onResume),onSwipeStart:I(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:I(e.onSwipeMove,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:I(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:I(e.onSwipeEnd,c=>{const{x:d,y:p}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),u(!1)})})})});Sr.displayName=ve;var[Uo,Ho]=br(ve,{onClose(){}}),Wo=x.forwardRef((e,t)=>{const{__scopeToast:n,type:a="foreground",duration:s,open:o,onClose:l,onEscapeKeyDown:i,onPause:u,onResume:c,onSwipeStart:d,onSwipeMove:p,onSwipeCancel:b,onSwipeEnd:w,...j}=e,g=Me(ve,n),[h,_]=x.useState(null),m=U(t,F=>_(F)),v=x.useRef(null),f=x.useRef(null),y=s||g.duration,S=x.useRef(0),N=x.useRef(y),C=x.useRef(0),{onToastAdd:T,onToastRemove:P}=g,R=q(()=>{var O;(h==null?void 0:h.contains(document.activeElement))&&((O=g.viewport)==null||O.focus()),l()}),A=x.useCallback(F=>{!F||F===1/0||(window.clearTimeout(C.current),S.current=new Date().getTime(),C.current=window.setTimeout(R,F))},[R]);x.useEffect(()=>{const F=g.viewport;if(F){const O=()=>{A(N.current),c==null||c()},$=()=>{const Y=new Date().getTime()-S.current;N.current=N.current-Y,window.clearTimeout(C.current),u==null||u()};return F.addEventListener(tt,$),F.addEventListener(nt,O),()=>{F.removeEventListener(tt,$),F.removeEventListener(nt,O)}}},[g.viewport,y,u,c,A]),x.useEffect(()=>{o&&!g.isClosePausedRef.current&&A(y)},[o,y,g.isClosePausedRef,A]),x.useEffect(()=>(T(),()=>P()),[T,P]);const D=x.useMemo(()=>h?Ar(h):null,[h]);return g.viewport?r.jsxs(r.Fragment,{children:[D&&r.jsx(Go,{__scopeToast:n,role:"status","aria-live":a==="foreground"?"assertive":"polite",children:D}),r.jsx(Uo,{scope:n,onClose:R,children:Jt.createPortal(r.jsx(wt.ItemSlot,{scope:n,children:r.jsx(Ia,{asChild:!0,onEscapeKeyDown:I(i,()=>{g.isFocusedToastEscapeKeyDownRef.current||R(),g.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(L.li,{tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":g.swipeDirection,...j,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:I(e.onKeyDown,F=>{F.key==="Escape"&&(i==null||i(F.nativeEvent),F.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,R()))}),onPointerDown:I(e.onPointerDown,F=>{F.button===0&&(v.current={x:F.clientX,y:F.clientY})}),onPointerMove:I(e.onPointerMove,F=>{if(!v.current)return;const O=F.clientX-v.current.x,$=F.clientY-v.current.y,Y=!!f.current,M=["left","right"].includes(g.swipeDirection),B=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,X=M?B(0,O):0,te=M?0:B(0,$),z=F.pointerType==="touch"?10:2,ne={x:X,y:te},W={originalEvent:F,delta:ne};Y?(f.current=ne,ke($o,p,W,{discrete:!1})):zt(ne,g.swipeDirection,z)?(f.current=ne,ke(Oo,d,W,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(O)>z||Math.abs($)>z)&&(v.current=null)}),onPointerUp:I(e.onPointerUp,F=>{const O=f.current,$=F.target;if($.hasPointerCapture(F.pointerId)&&$.releasePointerCapture(F.pointerId),f.current=null,v.current=null,O){const Y=F.currentTarget,M={originalEvent:F,delta:O};zt(O,g.swipeDirection,g.swipeThreshold)?ke(zo,w,M,{discrete:!0}):ke(Bo,b,M,{discrete:!0}),Y.addEventListener("click",B=>B.preventDefault(),{once:!0})}})})})}),g.viewport)})]}):null}),Go=e=>{const{__scopeToast:t,children:n,...a}=e,s=Me(ve,t),[o,l]=x.useState(!1),[i,u]=x.useState(!1);return Yo(()=>l(!0)),x.useEffect(()=>{const c=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(c)},[]),i?null:r.jsx(lt,{asChild:!0,children:r.jsx(yt,{...a,children:o&&r.jsxs(r.Fragment,{children:[s.label," ",n]})})})},Vo="ToastTitle",Nr=x.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e;return r.jsx(L.div,{...a,ref:t})});Nr.displayName=Vo;var Ko="ToastDescription",jr=x.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e;return r.jsx(L.div,{...a,ref:t})});jr.displayName=Ko;var Er="ToastAction",qo=x.forwardRef((e,t)=>{const{altText:n,...a}=e;return n.trim()?r.jsx(Tr,{altText:n,asChild:!0,children:r.jsx(kt,{...a,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Er}\`. Expected non-empty \`string\`.`),null)});qo.displayName=Er;var Cr="ToastClose",kt=x.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e,s=Ho(Cr,n);return r.jsx(Tr,{asChild:!0,children:r.jsx(L.button,{type:"button",...a,ref:t,onClick:I(e.onClick,s.onClose)})})});kt.displayName=Cr;var Tr=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:a,...s}=e;return r.jsx(L.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...s,ref:t})});function Ar(e){const t=[];return Array.from(e.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&t.push(a.textContent),Xo(a)){const s=a.ariaHidden||a.hidden||a.style.display==="none",o=a.dataset.radixToastAnnounceExclude==="";if(!s)if(o){const l=a.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...Ar(a))}}),t}function ke(e,t,n,{discrete:a}){const s=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),a?gn(s,o):s.dispatchEvent(o)}var zt=(e,t,n=0)=>{const a=Math.abs(e.x),s=Math.abs(e.y),o=a>s;return t==="left"||t==="right"?o&&a>n:!o&&s>n};function Yo(e=()=>{}){const t=q(e);J(()=>{let n=0,a=0;return n=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(a)}},[t])}function Xo(e){return e.nodeType===e.ELEMENT_NODE}function Zo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ye(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Qo=yr,Jo=wr,ei=Sr,ti=Nr,ni=jr,ri=kt;const Pr=k.createContext(null);let ai=1;function si({children:e}){const[t,n]=k.useState([]),a=k.useMemo(()=>({push:s=>{n(o=>[...o,{id:ai+=1,tone:"info",...s}])}}),[]);return r.jsx(Pr.Provider,{value:a,children:r.jsxs(Qo,{swipeDirection:"right",children:[e,t.map(s=>r.jsxs(ei,{className:E("vx-toast",`vx-toast--${s.tone??"info"}`),duration:4500,open:!0,onOpenChange:o=>{o||n(l=>l.filter(i=>i.id!==s.id))},children:[r.jsxs("div",{className:"vx-toast__content",children:[r.jsx(ti,{className:"vx-toast__title",children:s.title}),s.description?r.jsx(ni,{className:"vx-toast__description",children:s.description}):null]}),r.jsx(ri,{className:"vx-toast__close","aria-label":"Dismiss notification",children:r.jsx(ie,{size:16})})]},s.id)),r.jsx(Jo,{className:"vx-toast__viewport"})]})})}function oi(){const e=k.useContext(Pr);if(!e)throw new Error("useToast must be used within ToastProvider.");return e}function ii({as:e="p",variant:t="default",size:n="base",weight:a="normal",truncate:s=!1,className:o,...l}){return r.jsx(e,{className:E("vx-text-component",`vx-text--${t}`,`vx-text-size--${n}`,`vx-text-weight--${a}`,s&&"vx-text--truncate",o),...l})}function li({as:e,level:t=2,variant:n="default",weight:a="bold",truncate:s=!1,className:o,...l}){const i=e||`h${t}`;return r.jsx(i,{className:E("vx-heading",`vx-heading--h${t}`,`vx-heading--${n}`,`vx-heading-weight--${a}`,s&&"vx-text--truncate",o),...l})}function ci({className:e,label:t,hint:n,placeholder:a,children:s,...o}){return r.jsxs("label",{className:"vx-field-group",children:[t?r.jsx("span",{className:"vx-field-group__label",children:t}):null,r.jsxs("span",{className:E("vx-select",e),children:[r.jsxs("select",{className:"vx-select__field",...o,children:[a?r.jsx("option",{value:"",disabled:!0,children:a}):null,s]}),r.jsx("span",{className:"vx-select__arrow","aria-hidden":"true",children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:r.jsx("path",{d:"M2.5 4.5L6 8L9.5 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),n?r.jsx("span",{className:"vx-field-group__hint",children:n}):null]})}function ui({className:e,label:t,description:n,indeterminate:a,...s}){return r.jsxs("label",{className:E("vx-checkbox",s.disabled&&"vx-checkbox--disabled"),children:[r.jsxs("span",{className:"vx-checkbox__control-wrap",children:[r.jsx("input",{type:"checkbox",className:E("vx-checkbox__input",e),ref:o=>{o&&(o.indeterminate=a??!1)},...s}),r.jsx("span",{className:"vx-checkbox__box","aria-hidden":"true",children:a?r.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:r.jsx("path",{d:"M2 5h6",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})}):r.jsx("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:r.jsx("path",{d:"M2 5l2.5 2.5L8 3",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t?r.jsxs("span",{className:"vx-checkbox__copy",children:[r.jsx("span",{className:"vx-checkbox__label",children:t}),n?r.jsx("span",{className:"vx-checkbox__description",children:n}):null]}):null]})}function di({options:e,value:t,defaultValue:n,onChange:a,className:s,fullWidth:o,size:l="md"}){var h;const[i,u]=k.useState(n??((h=e[0])==null?void 0:h.value)),c=t!==void 0,d=c?t:i,[p,b]=k.useState({left:0,width:0,opacity:0}),w=k.useRef(null),j=k.useRef({});k.useEffect(()=>{requestAnimationFrame(()=>{const _=j.current[d];_&&b({left:_.offsetLeft,width:_.offsetWidth,opacity:1})})},[d,e,o,l]);const g=_=>{c||u(_),a==null||a(_)};return r.jsxs("div",{ref:w,className:E("vx-segmented-control",`vx-segmented-control--${l}`,o&&"vx-segmented-control--full",s),children:[r.jsx("div",{className:"vx-segmented-control__slider",style:{transform:`translateX(${p.left}px)`,width:`${p.width}px`,opacity:p.opacity}}),e.map(_=>{const m=d===_.value;return r.jsx("button",{ref:v=>{j.current[_.value]=v},type:"button",role:"radio","aria-checked":m,disabled:_.disabled,onClick:()=>!_.disabled&&g(_.value),className:E("vx-segmented-control__item",m&&"vx-segmented-control__item--active"),children:_.label},_.value)})]})}function pi({className:e,label:t,description:n,...a}){return r.jsxs("label",{className:E("vx-radio",a.disabled&&"vx-radio--disabled"),children:[r.jsxs("span",{className:"vx-radio__control-wrap",children:[r.jsx("input",{type:"radio",className:E("vx-radio__input",e),...a}),r.jsx("span",{className:"vx-radio__circle","aria-hidden":"true",children:r.jsx("span",{className:"vx-radio__dot"})})]}),t?r.jsxs("span",{className:"vx-radio__copy",children:[r.jsx("span",{className:"vx-radio__label",children:t}),n?r.jsx("span",{className:"vx-radio__description",children:n}):null]}):null]})}function fi({label:e,children:t,className:n}){return r.jsxs("fieldset",{className:E("vx-radio-group",n),children:[e?r.jsx("legend",{className:"vx-field-group__label",children:e}):null,r.jsx("div",{className:"vx-radio-group__items",children:t})]})}function vi({className:e,label:t,hint:n,resize:a="vertical",style:s,...o}){return r.jsxs("label",{className:"vx-field-group",children:[t?r.jsx("span",{className:"vx-field-group__label",children:t}):null,r.jsx("textarea",{className:E("vx-textarea",e),style:{resize:a,...s},...o}),n?r.jsx("span",{className:"vx-field-group__hint",children:n}):null]})}function mi({className:e,label:t,showValue:n=!1,hint:a,value:s,defaultValue:o,...l}){const i=s??o??"";return r.jsxs("label",{className:"vx-field-group",children:[t||n?r.jsxs("span",{className:"vx-slider__header",children:[t?r.jsx("span",{className:"vx-field-group__label vx-slider__label",children:t}):null,n?r.jsx("span",{className:"vx-slider__value",children:i}):null]}):null,r.jsx("input",{type:"range",className:E("vx-slider",e),value:s,defaultValue:o,...l}),a?r.jsx("span",{className:"vx-field-group__hint",children:a}):null]})}const hi={sm:16,md:24,lg:36};function gi({className:e,size:t="md",label:n="Loading…",...a}){const s=hi[t];return r.jsx("span",{role:"status","aria-label":n,className:E("vx-spinner",`vx-spinner--${t}`,e),...a,children:r.jsx("svg",{width:s,height:s,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:r.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeDasharray:"42 14"})})})}function xi({className:e,value:t=0,max:n=100,label:a,showLabel:s=!1,size:o="md",variant:l="default",indeterminate:i=!1,...u}){const c=i?void 0:Math.min(100,Math.max(0,t/n*100));return r.jsxs("div",{className:E("vx-progress-wrap",e),...u,children:[a||s?r.jsxs("div",{className:"vx-progress__header",children:[a?r.jsx("span",{className:"vx-progress__label",children:a}):null,s&&!i?r.jsxs("span",{className:"vx-progress__value",children:[Math.round(c),"%"]}):null]}):null,r.jsx("div",{role:"progressbar","aria-valuenow":i?void 0:t,"aria-valuemin":0,"aria-valuemax":n,"aria-label":a,className:E("vx-progress",`vx-progress--${o}`,`vx-progress--${l}`,i&&"vx-progress--indeterminate"),children:r.jsx("div",{className:"vx-progress__bar",style:i?void 0:{width:`${c}%`}})})]})}const bi={info:r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M8 7v4M8 5.5v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),success:r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M5 8.5l2 2 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),warning:r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("path",{d:"M8 2L14.5 13.5H1.5L8 2z",stroke:"currentColor",strokeWidth:"1.5",strokeLinejoin:"round"}),r.jsx("path",{d:"M8 6.5v3M8 11v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),danger:r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"8",cy:"8",r:"7",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M10 6L6 10M6 6l4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})};function yi({className:e,variant:t="info",title:n,icon:a,onClose:s,children:o,...l}){return r.jsxs("div",{role:"alert",className:E("vx-alert",`vx-alert--${t}`,e),...l,children:[r.jsx("span",{className:"vx-alert__icon",children:a??bi[t]}),r.jsxs("div",{className:"vx-alert__body",children:[n?r.jsx("p",{className:"vx-alert__title",children:n}):null,o?r.jsx("div",{className:"vx-alert__content",children:o}):null]}),s?r.jsx("button",{type:"button",className:"vx-alert__close",onClick:s,"aria-label":"关闭",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}):null]})}function _i({className:e,width:t,height:n,variant:a="rect",lines:s=1,style:o,...l}){return a==="text"&&s>1?r.jsx("span",{className:E("vx-skeleton-text",e),...l,children:Array.from({length:s}).map((i,u)=>r.jsx("span",{className:"vx-skeleton vx-skeleton--text",style:u===s-1?{width:"70%"}:void 0},u))}):r.jsx("span",{className:E("vx-skeleton",`vx-skeleton--${a}`,e),style:{width:typeof t=="number"?`${t}px`:t,height:typeof n=="number"?`${n}px`:n,...o},...l})}function wi({content:e,placement:t="top",delay:n=600,children:a,className:s}){const[o,l]=k.useState(!1),i=k.useRef(null),u=k.useCallback(()=>{i.current=setTimeout(()=>l(!0),n)},[n]),c=k.useCallback(()=>{i.current&&clearTimeout(i.current),l(!1)},[]);return k.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]),r.jsxs("span",{className:E("vx-tooltip-wrap",s),onMouseEnter:u,onMouseLeave:c,onFocus:u,onBlur:c,children:[a,o?r.jsx("span",{role:"tooltip",className:E("vx-tooltip",`vx-tooltip--${t}`),children:e}):null]})}function ki({content:e,placement:t="bottom",trigger:n="click",children:a,className:s,open:o,onOpenChange:l}){const[i,u]=k.useState(!1),c=o!==void 0,d=c?o:i,p=k.useRef(null),b=k.useCallback(g=>{c||u(g),l==null||l(g)},[c,l]),w=k.useCallback(()=>b(!d),[d,b]);k.useEffect(()=>{if(!d)return;const g=_=>{_.key==="Escape"&&b(!1)},h=_=>{p.current&&!p.current.contains(_.target)&&b(!1)};return document.addEventListener("keydown",g),document.addEventListener("mousedown",h),()=>{document.removeEventListener("keydown",g),document.removeEventListener("mousedown",h)}},[d,b]);const j=n==="click"?{onClick:w}:{onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1)};return r.jsxs("div",{ref:p,className:E("vx-popover-wrap",s),...j,children:[a,d?r.jsx("div",{className:E("vx-popover",`vx-popover--${t}`),role:"dialog",children:e}):null]})}function Si({trigger:e,groups:t,items:n,align:a="left",className:s,open:o,onOpenChange:l}){const[i,u]=k.useState(!1),c=o!==void 0,d=c?o:i,p=k.useRef(null),b=k.useCallback(g=>{c||u(g),l==null||l(g)},[c,l]),w=k.useCallback(()=>b(!d),[d,b]);k.useEffect(()=>{if(!d)return;const g=_=>{_.key==="Escape"&&b(!1)},h=_=>{p.current&&!p.current.contains(_.target)&&b(!1)};return document.addEventListener("keydown",g),document.addEventListener("mousedown",h),()=>{document.removeEventListener("keydown",g),document.removeEventListener("mousedown",h)}},[d,b]);const j=t??(n?[{items:n}]:[]);return r.jsxs("div",{ref:p,className:E("vx-dropdown",s),children:[r.jsx("div",{className:"vx-dropdown__trigger",onClick:w,role:"button",tabIndex:0,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&w()},children:e}),d?r.jsx("div",{className:E("vx-dropdown__menu",`vx-dropdown__menu--${a}`),role:"menu",children:j.map((g,h)=>r.jsxs("div",{className:"vx-dropdown__group",children:[g.label?r.jsx("div",{className:"vx-dropdown__group-label",children:g.label}):null,h>0&&!g.label?r.jsx("div",{className:"vx-dropdown__separator",role:"separator"}):null,g.items.map((_,m)=>r.jsxs("button",{role:"menuitem",disabled:_.disabled,className:E("vx-dropdown__item",_.danger&&"vx-dropdown__item--danger",_.disabled&&"vx-dropdown__item--disabled"),onClick:()=>{var v;_.disabled||((v=_.onClick)==null||v.call(_),b(!1))},children:[_.icon?r.jsx("span",{className:"vx-dropdown__item-icon",children:_.icon}):null,r.jsx("span",{className:"vx-dropdown__item-label",children:_.label}),_.shortcut?r.jsx("kbd",{className:"vx-dropdown__shortcut",children:_.shortcut}):null]},m))]},h))}):null]})}const Ni=()=>r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M4.5 2.5L7.5 6l-3 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function ji({items:e,separator:t,className:n}){return r.jsx("nav",{"aria-label":"Breadcrumb",className:E("vx-breadcrumb",n),children:r.jsx("ol",{className:"vx-breadcrumb__list",children:e.map((a,s)=>{const o=s===e.length-1;return r.jsxs("li",{className:"vx-breadcrumb__item",children:[o?r.jsx("span",{className:"vx-breadcrumb__current","aria-current":"page",children:a.label}):a.href?r.jsx("a",{href:a.href,className:"vx-breadcrumb__link",children:a.label}):r.jsx("button",{type:"button",className:"vx-breadcrumb__link",onClick:a.onClick,children:a.label}),o?null:r.jsx("span",{className:"vx-breadcrumb__sep","aria-hidden":"true",children:t??r.jsx(Ni,{})})]},s)})})})}function Se(e,t){return Array.from({length:t-e+1},(n,a)=>e+a)}function Ei({page:e,total:t,pageSize:n=10,siblingCount:a=1,onChange:s,className:o}){const l=Math.max(1,Math.ceil(t/n)),i=(()=>{const u=a*2+5;if(l<=u)return Se(1,l);const c=Math.max(e-a,1),d=Math.min(e+a,l),p=c>3,b=d<l-2;return!p&&b?[...Se(1,3+a*2),"…",l]:p&&!b?[1,"…",...Se(l-(2+a*2),l)]:[1,"…",...Se(c,d),"…",l]})();return r.jsxs("nav",{role:"navigation","aria-label":"Pagination",className:E("vx-pagination",o),children:[r.jsx("button",{type:"button",className:"vx-pagination__btn vx-pagination__btn--prev",disabled:e<=1,onClick:()=>s(e-1),"aria-label":"上一页",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M9 11L5 7l4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),i.map((u,c)=>u==="…"?r.jsx("span",{className:"vx-pagination__ellipsis","aria-hidden":"true",children:"…"},`e-${c}`):r.jsx("button",{type:"button","aria-current":u===e?"page":void 0,className:E("vx-pagination__btn",u===e&&"vx-pagination__btn--active"),onClick:()=>s(u),children:u},u)),r.jsx("button",{type:"button",className:"vx-pagination__btn vx-pagination__btn--next",disabled:e>=l,onClick:()=>s(e+1),"aria-label":"下一页",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M5 11l4-4-4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})}function Ci({items:e,multiple:t=!1,defaultOpen:n=[],className:a}){const[s,o]=k.useState(new Set(n));function l(i){o(u=>{const c=new Set(t?u:[]);return u.has(i)?c.delete(i):c.add(i),c})}return r.jsx("div",{className:E("vx-accordion",a),children:e.map(i=>{const u=s.has(i.key);return r.jsxs("div",{className:E("vx-accordion__item",u&&"vx-accordion__item--open",i.disabled&&"vx-accordion__item--disabled"),children:[r.jsxs("button",{type:"button",disabled:i.disabled,"aria-expanded":u,className:"vx-accordion__trigger",onClick:()=>!i.disabled&&l(i.key),children:[r.jsx("span",{className:"vx-accordion__title",children:i.title}),r.jsx("span",{className:"vx-accordion__chevron","aria-hidden":"true",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:r.jsx("path",{d:"M3 5l4 4 4-4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),u?r.jsx("div",{className:"vx-accordion__content",children:i.content}):null]},i.key)})})}function Ti({className:e,orientation:t="horizontal",decorative:n=!0,...a}){return r.jsx("hr",{role:n?"none":"separator","aria-orientation":n?void 0:t,className:E("vx-separator",`vx-separator--${t}`,e),...a})}function Ai(e){const t=e.trim().split(/\s+/);return t.length===1?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}const Ut=[0,30,60,120,160,200,240,270,300,340];function Pi(e){let t=0;for(let n=0;n<e.length;n++)t+=e.charCodeAt(n);return Ut[t%Ut.length]}function Ri({src:e,name:t,size:n="md",shape:a="circle",fallback:s,className:o,alt:l,...i}){const[u,c]=k.useState(!1),d=e&&!u,p=t??l??"",b=p?Pi(p):200;return r.jsx("span",{className:E("vx-avatar",`vx-avatar--${n}`,`vx-avatar--${a}`,o),"aria-label":p||void 0,style:d?void 0:{"--vx-avatar-hue":b},children:d?r.jsx("img",{src:e,alt:l??t??"",className:"vx-avatar__img",onError:()=>c(!0),...i}):s?r.jsx("span",{className:"vx-avatar__fallback",children:s}):p?r.jsx("span",{className:"vx-avatar__initials",children:Ai(p)}):r.jsxs("svg",{className:"vx-avatar__placeholder",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"12",cy:"8",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M4 20c0-4 3.58-7 8-7s8 3 8 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})})}function Fi({columns:e,data:t,size:n="md",striped:a=!1,hoverable:s=!0,bordered:o=!1,compact:l=!1,stickyHeader:i=!1,borderless:u=!1,headless:c=!1,rounded:d=!0,loading:p=!1,caption:b,emptyText:w="暂无数据",sortColumn:j,sortDirection:g,onSortChange:h,className:_,...m}){const v=l?"sm":n,[f,y]=k.useState(null),[S,N]=k.useState(null),C=j!==void 0,T=C?j:f,P=C?g??null:S,R=k.useCallback(A=>{let D;T!==A?D="asc":P==="asc"?D="desc":P==="desc"?D=null:D="asc",C||(y(D===null?null:A),N(D)),h==null||h(A,D)},[T,P,C,h]);return r.jsx("div",{className:E("vx-table-wrap",u&&"vx-table-wrap--borderless",!d&&"vx-table-wrap--square",_),...m,children:r.jsxs("table",{className:E("vx-table",a&&"vx-table--striped",s&&"vx-table--hoverable",o&&"vx-table--bordered",u&&"vx-table--borderless",v!=="md"&&`vx-table--${v}`,i&&"vx-table--sticky"),children:[b?r.jsx("caption",{className:"vx-table__caption",children:b}):null,c?null:r.jsx("thead",{children:r.jsx("tr",{children:e.map(A=>r.jsx("th",{className:E("vx-table__th",A.sortable&&"vx-table__th--sortable",A.align&&`vx-table__th--${A.align}`,A.className),style:{width:A.width},onClick:A.sortable?()=>R(A.key):void 0,"aria-sort":T===A.key?P==="asc"?"ascending":P==="desc"?"descending":"none":void 0,children:r.jsxs("span",{className:"vx-table__th-inner",children:[A.header,A.sortable?r.jsx("span",{className:"vx-table__sort-icon","aria-hidden":"true",children:T===A.key&&P==="asc"?"↑":T===A.key&&P==="desc"?"↓":"↕"}):null]})},A.key))})}),r.jsx("tbody",{className:E(p&&"vx-table__body--loading"),children:t.length===0?r.jsx("tr",{children:r.jsx("td",{colSpan:e.length,className:"vx-table__empty",children:w})}):t.map((A,D)=>r.jsx("tr",{className:"vx-table__row",children:e.map(F=>r.jsx("td",{className:E("vx-table__td",F.align&&`vx-table__td--${F.align}`,F.className),children:F.accessor(A)},F.key))},D))})]})})}function Di({topBar:e,bottomNav:t,children:n,className:a}){return r.jsxs("div",{className:E("vxm-shell",a),children:[e&&r.jsx("div",{className:"vxm-shell__topbar",children:e}),r.jsx("main",{className:"vxm-shell__main",children:n}),t&&r.jsx("div",{className:"vxm-shell__bottomnav",children:t})]})}function Ii({title:e,leading:t,trailing:n,className:a}){return r.jsxs("div",{className:E("vxm-topbar",a),children:[r.jsx("div",{className:"vxm-topbar__leading",children:t}),r.jsx("div",{className:"vxm-topbar__title",children:e}),r.jsx("div",{className:"vxm-topbar__trailing",children:n})]})}function Li({label:e,className:t,children:n,...a}){return r.jsx("button",{type:"button",className:E("vxm-icon-btn",t),"aria-label":e,...a,children:n})}function Mi({items:e,className:t}){return r.jsx("nav",{className:E("vxm-bottomnav",t),"aria-label":"底部导航",children:e.map(n=>r.jsxs("button",{type:"button",className:E("vxm-bottomnav__item",n.active&&"vxm-bottomnav__item--active"),onClick:n.onSelect,"aria-current":n.active?"page":void 0,children:[r.jsxs("span",{className:"vxm-bottomnav__icon",children:[n.icon,n.badge!=null&&r.jsx("span",{className:"vxm-bottomnav__badge","aria-label":`${n.badge} 条未读`,children:n.badge})]}),r.jsx("span",{className:"vxm-bottomnav__label",children:n.label})]},n.key))})}function Oi({open:e,onClose:t,title:n,description:a,children:s,className:o}){const l=k.useRef(null),i=k.useRef(0),[u,c]=k.useState(!1),[d,p]=k.useState(0),b=k.useRef(0);k.useEffect(()=>{e||(p(0),b.current=0)},[e]),k.useEffect(()=>{if(!e)return;const h=_=>{_.key==="Escape"&&t()};return document.addEventListener("keydown",h),()=>document.removeEventListener("keydown",h)},[e,t]),k.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]);const w=h=>{i.current=h.touches[0].clientY,b.current=0,c(!0)},j=h=>{const _=h.touches[0].clientY-i.current;_<0||(b.current=_,p(_))},g=()=>{c(!1);const h=l.current;if(!h)return;const _=h.offsetHeight*.32;b.current>_?t():p(0)};return e?r.jsx("div",{className:"vxm-actionsheet__overlay",onClick:t,role:"presentation","aria-hidden":"true",children:r.jsxs("div",{ref:l,className:E("vxm-actionsheet",o),style:{transform:`translateY(${d}px)`,transition:u?"none":"transform 280ms cubic-bezier(0.32, 0.72, 0, 1)"},onClick:h=>h.stopPropagation(),onTouchStart:w,onTouchMove:j,onTouchEnd:g,role:"dialog","aria-modal":!0,"aria-label":n??"Action sheet",children:[r.jsx("div",{className:"vxm-actionsheet__handle","aria-hidden":"true"}),(n||a)&&r.jsxs("div",{className:"vxm-actionsheet__header",children:[n&&r.jsx("h3",{className:"vxm-actionsheet__title",children:n}),a&&r.jsx("p",{className:"vxm-actionsheet__description",children:a})]}),r.jsx("div",{className:"vxm-actionsheet__body",children:s})]})}):null}function $i({icon:e,destructive:t,className:n,children:a,...s}){return r.jsxs("button",{type:"button",className:E("vxm-actionsheet-item",t&&"vxm-actionsheet-item--destructive",n),...s,children:[e&&r.jsx("span",{className:"vxm-actionsheet-item__icon",children:e}),a]})}function Bi({className:e,...t}){return r.jsx("ul",{className:E("vxm-list",e),role:"list",...t})}function zi({title:e,className:t,children:n,...a}){return r.jsxs("div",{className:E("vxm-list-section",t),...a,children:[e&&r.jsx("div",{className:"vxm-list-section__title",children:e}),n]})}function Ui({leading:e,trailing:t,label:n,description:a,chevron:s,destructive:o,disabled:l,onClick:i,className:u}){const c=r.jsxs(r.Fragment,{children:[e&&r.jsx("span",{className:"vxm-list-item__leading",children:e}),r.jsxs("span",{className:"vxm-list-item__content",children:[r.jsx("span",{className:"vxm-list-item__label",children:n}),a&&r.jsx("span",{className:"vxm-list-item__description",children:a})]}),t&&r.jsx("span",{className:"vxm-list-item__trailing",children:t}),s&&r.jsx(Re,{size:16,className:"vxm-list-item__chevron","aria-hidden":"true"})]});return r.jsx("li",{className:E("vxm-list-item",o&&"vxm-list-item--destructive",l&&"vxm-list-item--disabled",!i&&"vxm-list-item--static",u),children:r.jsx("button",{type:"button",className:"vxm-list-item__btn",onClick:l?void 0:i,disabled:l,tabIndex:i?0:-1,children:c})})}function Hi({open:e,onClose:t,width:n=280,header:a,footer:s,children:o,className:l}){const i=k.useRef(null),u=k.useRef(0),c=k.useRef(0),[d,p]=k.useState(!1),[b,w]=k.useState(0);k.useEffect(()=>{e||(w(0),c.current=0)},[e]),k.useEffect(()=>{if(!e)return;const v=f=>{f.key==="Escape"&&t()};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[e,t]),k.useEffect(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]);const j=v=>{u.current=v.touches[0].clientX,c.current=0,p(!0)},g=v=>{const f=v.touches[0].clientX-u.current;f>0||(c.current=f,w(f))},h=()=>{p(!1),Math.abs(c.current)>n*.3?t():w(0)};if(!e)return null;const m=.52*Math.max(0,1+b/n);return r.jsxs("div",{className:"vxm-drawer__overlay",style:{"--vxm-overlay-opacity":m},children:[r.jsx("div",{className:"vxm-drawer__scrim",onClick:t,"aria-hidden":"true"}),r.jsxs("div",{ref:i,className:E("vxm-drawer",l),style:{width:n,transform:`translateX(${b}px)`,transition:d?"none":"transform 280ms cubic-bezier(0.32, 0.72, 0, 1)"},onTouchStart:j,onTouchMove:g,onTouchEnd:h,role:"dialog","aria-modal":!0,"aria-label":"Navigation drawer",children:[a&&r.jsx("div",{className:"vxm-drawer__header",children:a}),r.jsx("div",{className:"vxm-drawer__body",children:o}),s&&r.jsx("div",{className:"vxm-drawer__footer",children:s})]})]})}function Wi({icon:e,label:t,badge:n,active:a,onClick:s}){return r.jsxs("button",{type:"button",className:E("vxm-drawer-item",a&&"vxm-drawer-item--active"),onClick:s,"aria-current":a?"page":void 0,children:[e&&r.jsx("span",{className:"vxm-drawer-item__icon",children:e}),r.jsx("span",{className:"vxm-drawer-item__label",children:t}),n!=null&&r.jsx("span",{className:"vxm-drawer-item__badge",children:n})]})}function Gi({title:e,children:t}){return r.jsxs("div",{className:"vxm-drawer-section",children:[e&&r.jsx("div",{className:"vxm-drawer-section__title",children:e}),r.jsx("div",{className:"vxm-drawer-section__items",children:t})]})}const Vi=k.forwardRef(function({className:t,required:n,children:a,...s},o){return r.jsxs("label",{ref:o,className:E("vx-label",t),...s,children:[a,n?r.jsx("span",{className:"vx-label__required","aria-hidden":"true",children:" *"}):null]})}),Rr=k.createContext({});function Fr(){return k.useContext(Rr)}function Ki({className:e,...t}){return r.jsx("form",{noValidate:!0,className:E("vx-form",e),...t})}function qi({error:e,children:t,className:n}){return r.jsx(Rr.Provider,{value:{error:e},children:r.jsx("div",{className:E("vx-form-field",e&&"vx-form-field--invalid",n),children:t})})}function Yi({className:e,required:t,children:n,...a}){return r.jsxs("label",{className:E("vx-form-label",e),...a,children:[n,t?r.jsx("span",{className:"vx-form-label__required","aria-hidden":"true",children:" *"}):null]})}function Xi({className:e,children:t,...n}){return r.jsx("p",{className:E("vx-form-description",e),...n,children:t})}function Zi({className:e,children:t,...n}){const{error:a}=Fr(),s=a??t;return s?r.jsx("p",{className:E("vx-form-message",a&&"vx-form-message--error",e),...n,children:s}):null}function Qi({trigger:e,title:t,description:n,confirmLabel:a="Confirm",cancelLabel:s="Cancel",onConfirm:o,onCancel:l,variant:i="default",className:u,...c}){return r.jsxs(pt,{...c,children:[r.jsx(ft,{asChild:!0,children:e}),r.jsxs(vt,{children:[r.jsx(mt,{className:"vx-dialog__overlay"}),r.jsxs(ht,{className:E("vx-alert-dialog__content",u),role:"alertdialog","aria-modal":"true",children:[r.jsx(gt,{className:"vx-alert-dialog__title",children:t}),n?r.jsx(xt,{className:"vx-alert-dialog__description",children:n}):null,r.jsxs("div",{className:"vx-alert-dialog__footer",children:[r.jsx(Ae,{asChild:!0,children:r.jsx(Q,{variant:"secondary",onClick:l,children:s})}),r.jsx(Ae,{asChild:!0,children:r.jsx(Q,{variant:i==="danger"?"danger":"solid",onClick:o,children:a})})]})]})]})]})}function Ji({className:e,label:t,hint:n,error:a,value:s,onChange:o,min:l,max:i,step:u=1,disabled:c,...d}){const p=k.useCallback(_=>{let m=_;return l!==void 0&&(m=Math.max(l,m)),i!==void 0&&(m=Math.min(i,m)),m},[l,i]),b=()=>{c||o==null||o(p((s??0)+u))},w=()=>{c||o==null||o(p((s??0)-u))},j=_=>{const m=parseFloat(_.target.value);isNaN(m)||o==null||o(p(m))},g=l!==void 0&&(s??0)<=l,h=i!==void 0&&(s??0)>=i;return r.jsxs("label",{className:"vx-field-group",children:[t?r.jsx("span",{className:"vx-field-group__label",children:t}):null,r.jsxs("span",{className:E("vx-number-input",a&&"vx-number-input--invalid",c&&"vx-number-input--disabled",e),children:[r.jsx("button",{type:"button",className:"vx-number-input__btn",onClick:w,disabled:c||g,"aria-label":"Decrease",tabIndex:-1,children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M2 6h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),r.jsx("input",{type:"number",className:"vx-number-input__field",value:s??"",onChange:j,min:l,max:i,step:u,disabled:c,"aria-invalid":a?"true":void 0,...d}),r.jsx("button",{type:"button",className:"vx-number-input__btn",onClick:b,disabled:c||h,"aria-label":"Increase",tabIndex:-1,children:r.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M6 2v8M2 6h8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})})]}),a?r.jsx("span",{className:"vx-field-group__error",children:a}):null,!a&&n?r.jsx("span",{className:"vx-field-group__hint",children:n}):null]})}function el(e,t){return new Date(e,t+1,0).getDate()}function tl(e,t){return new Date(e,t,1).getDay()}function Ht(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Dr({value:e,defaultValue:t,onChange:n,min:a,max:s,className:o,weekStartsOnMonday:l=!1}){const i=new Date,u=e!==void 0,[c,d]=k.useState(t),p=u?e:c,[b,w]=k.useState((p??i).getFullYear()),[j,g]=k.useState((p??i).getMonth()),h=el(b,j),_=tl(b,j),m=l?_===0?6:_-1:_,v=l?["Mo","Tu","We","Th","Fr","Sa","Su"]:["Su","Mo","Tu","We","Th","Fr","Sa"],f=()=>{j===0?(w(P=>P-1),g(11)):g(P=>P-1)},y=()=>{j===11?(w(P=>P+1),g(0)):g(P=>P+1)},S=k.useCallback(P=>{const R=new Date(b,j,P);if(a){const A=new Date(a.getFullYear(),a.getMonth(),a.getDate());if(R<A)return!0}if(s){const A=new Date(s.getFullYear(),s.getMonth(),s.getDate());if(R>A)return!0}return!1},[b,j,a,s]),N=P=>{if(S(P))return;const R=new Date(b,j,P);u||d(R),n==null||n(R)},C=new Date(b,j).toLocaleString("default",{month:"long"}),T=[...Array(m).fill(null),...Array.from({length:h},(P,R)=>R+1)];for(;T.length%7!==0;)T.push(null);return r.jsxs("div",{className:E("vx-calendar",o),children:[r.jsxs("div",{className:"vx-calendar__header",children:[r.jsx("button",{type:"button",className:"vx-calendar__nav-btn",onClick:f,"aria-label":"Previous month",children:r.jsx(nn,{size:16})}),r.jsxs("span",{className:"vx-calendar__month-label",children:[C," ",b]}),r.jsx("button",{type:"button",className:"vx-calendar__nav-btn",onClick:y,"aria-label":"Next month",children:r.jsx(Re,{size:16})})]}),r.jsxs("div",{className:"vx-calendar__grid",role:"grid","aria-label":`${C} ${b}`,children:[v.map(P=>r.jsx("div",{className:"vx-calendar__weekday",role:"columnheader",children:P},P)),T.map((P,R)=>{if(P===null)return r.jsx("div",{className:"vx-calendar__cell vx-calendar__cell--empty"},`e-${R}`);const A=new Date(b,j,P),D=Ht(A,i),F=p?Ht(A,p):!1,O=S(P);return r.jsx("button",{type:"button",role:"gridcell",className:E("vx-calendar__cell",D&&"vx-calendar__cell--today",F&&"vx-calendar__cell--selected",O&&"vx-calendar__cell--disabled"),onClick:()=>N(P),disabled:O,"aria-label":A.toLocaleDateString(),"aria-selected":F,children:P},P)})]})]})}function nl(e){return e.toLocaleDateString()}function rl(){return r.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none","aria-hidden":"true",children:[r.jsx("rect",{x:"1",y:"3",width:"13",height:"11",rx:"2",stroke:"currentColor",strokeWidth:"1.2"}),r.jsx("path",{d:"M1 6.5h13",stroke:"currentColor",strokeWidth:"1.2"}),r.jsx("path",{d:"M5 1v3M10 1v3",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}function al({value:e,defaultValue:t,onChange:n,placeholder:a="Select date",label:s,hint:o,error:l,min:i,max:u,disabled:c,weekStartsOnMonday:d,className:p}){const b=e!==void 0,[w,j]=k.useState(t),g=b?e:w,[h,_]=k.useState(!1),m=k.useRef(null);k.useEffect(()=>{if(!h)return;const f=S=>{m.current&&!m.current.contains(S.target)&&_(!1)},y=S=>{S.key==="Escape"&&_(!1)};return document.addEventListener("mousedown",f),document.addEventListener("keydown",y),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keydown",y)}},[h]);const v=f=>{b||j(f),n==null||n(f),_(!1)};return r.jsxs("div",{ref:m,className:E("vx-datepicker",p),children:[s?r.jsx("span",{className:"vx-field-group__label",children:s}):null,r.jsxs("button",{type:"button",className:E("vx-datepicker__trigger",l&&"vx-datepicker__trigger--invalid",c&&"vx-datepicker__trigger--disabled"),onClick:()=>!c&&_(f=>!f),disabled:c,"aria-haspopup":"dialog","aria-expanded":h,children:[r.jsx(rl,{}),r.jsx("span",{className:E("vx-datepicker__value",!g&&"vx-datepicker__value--placeholder"),children:g?nl(g):a})]}),l?r.jsx("span",{className:"vx-field-group__error",children:l}):null,!l&&o?r.jsx("span",{className:"vx-field-group__hint",children:o}):null,h?r.jsx("div",{className:"vx-datepicker__popover",role:"dialog","aria-label":"Date picker",children:r.jsx(Dr,{value:g,onChange:v,min:i,max:u,weekStartsOnMonday:d})}):null]})}function sl({options:e,value:t,defaultValue:n,onChange:a,placeholder:s="Select...",searchPlaceholder:o="Search...",label:l,hint:i,error:u,disabled:c,clearable:d=!1,emptyText:p="No results",className:b}){const w=t!==void 0,[j,g]=k.useState(n),h=w?t:j,[_,m]=k.useState(!1),[v,f]=k.useState(""),y=k.useRef(null),S=k.useRef(null),N=k.useId(),C=e.find(A=>A.value===h),T=e.filter(A=>A.label.toLowerCase().includes(v.toLowerCase()));k.useEffect(()=>{if(!_){f("");return}const A=setTimeout(()=>{var D;return(D=S.current)==null?void 0:D.focus()},0);return()=>clearTimeout(A)},[_]),k.useEffect(()=>{if(!_)return;const A=F=>{y.current&&!y.current.contains(F.target)&&m(!1)},D=F=>{F.key==="Escape"&&m(!1)};return document.addEventListener("mousedown",A),document.addEventListener("keydown",D),()=>{document.removeEventListener("mousedown",A),document.removeEventListener("keydown",D)}},[_]);const P=A=>{A.disabled||(w||g(A.value),a==null||a(A.value),m(!1))},R=A=>{A.stopPropagation(),w||g(void 0),a==null||a(void 0)};return r.jsxs("div",{ref:y,className:E("vx-combobox",b),children:[l?r.jsx("span",{className:"vx-field-group__label",children:l}):null,r.jsxs("button",{type:"button",className:E("vx-combobox__trigger",u&&"vx-combobox__trigger--invalid",c&&"vx-combobox__trigger--disabled"),onClick:()=>!c&&m(A=>!A),disabled:c,"aria-haspopup":"listbox","aria-expanded":_,"aria-controls":N,children:[r.jsx("span",{className:E("vx-combobox__value",!C&&"vx-combobox__value--placeholder"),children:(C==null?void 0:C.label)??s}),r.jsxs("span",{className:"vx-combobox__icons",children:[d&&C&&r.jsx("span",{className:"vx-combobox__clear",onClick:R,role:"button","aria-label":"Clear selection",children:r.jsx(ie,{size:14})}),r.jsx(ot,{size:14,className:E("vx-combobox__chevron",_&&"vx-combobox__chevron--open")})]})]}),u?r.jsx("span",{className:"vx-field-group__error",children:u}):null,!u&&i?r.jsx("span",{className:"vx-field-group__hint",children:i}):null,_&&r.jsxs("div",{className:"vx-combobox__dropdown",children:[r.jsx("div",{className:"vx-combobox__search-wrap",children:r.jsx("input",{ref:S,type:"text",className:"vx-combobox__search",placeholder:o,value:v,onChange:A=>f(A.target.value),"aria-label":o})}),r.jsx("ul",{id:N,className:"vx-combobox__list",role:"listbox","aria-label":l??"Options",children:T.length===0?r.jsx("li",{className:"vx-combobox__empty",children:p}):T.map(A=>r.jsxs("li",{className:E("vx-combobox__option",A.value===h&&"vx-combobox__option--selected",A.disabled&&"vx-combobox__option--disabled"),role:"option","aria-selected":A.value===h,"aria-disabled":A.disabled,onClick:()=>P(A),children:[r.jsx("span",{children:A.label}),A.value===h?r.jsx(st,{size:14}):null]},A.value))})]})]})}function ol({label:e,hint:t,error:n,accept:a,multiple:s=!1,maxSize:o,disabled:l,onFiles:i,className:u}){const[c,d]=k.useState(!1),[p,b]=k.useState([]),[w,j]=k.useState(),g=k.useRef(null),h=k.useCallback(y=>{if(!y)return;const S=Array.from(y);if(o&&S.filter(P=>P.size>o).length>0){j(`File too large (max ${(o/1024/1024).toFixed(1)} MB)`);return}j(void 0);const N=S.map(T=>({file:T,id:crypto.randomUUID()})),C=s?[...p,...N]:N;b(C),i==null||i(C.map(T=>T.file))},[p,o,s,i]),_=y=>{y.preventDefault(),d(!1),l||h(y.dataTransfer.files)},m=y=>{y.preventDefault(),l||d(!0)},v=y=>{const S=p.filter(N=>N.id!==y);b(S),i==null||i(S.map(N=>N.file))},f=n??w;return r.jsxs("div",{className:E("vx-file-upload",u),children:[e?r.jsx("span",{className:"vx-field-group__label",children:e}):null,r.jsxs("div",{className:E("vx-file-upload__zone",c&&"vx-file-upload__zone--dragging",l&&"vx-file-upload__zone--disabled",f&&"vx-file-upload__zone--invalid"),onDrop:_,onDragOver:m,onDragLeave:()=>d(!1),onClick:()=>{var y;return!l&&((y=g.current)==null?void 0:y.click())},role:"button",tabIndex:l?-1:0,onKeyDown:y=>{var S;return y.key==="Enter"&&!l&&((S=g.current)==null?void 0:S.click())},"aria-label":"Upload files, click or drag and drop",children:[r.jsx(oa,{size:24,className:"vx-file-upload__icon"}),r.jsxs("p",{className:"vx-file-upload__text",children:[r.jsx("span",{className:"vx-file-upload__link",children:"Click to upload"})," or drag and drop"]}),t?r.jsx("p",{className:"vx-file-upload__hint",children:t}):null,r.jsx("input",{ref:g,type:"file",accept:a,multiple:s,disabled:l,className:"vx-file-upload__input",onChange:y=>h(y.target.files),"aria-hidden":"true",tabIndex:-1})]}),f?r.jsx("span",{className:"vx-field-group__error",children:f}):null,p.length>0&&r.jsx("ul",{className:"vx-file-upload__list",children:p.map(({id:y,file:S})=>r.jsxs("li",{className:"vx-file-upload__file",children:[r.jsx(ea,{size:14,className:"vx-file-upload__file-icon"}),r.jsx("span",{className:"vx-file-upload__file-name",children:S.name}),r.jsxs("span",{className:"vx-file-upload__file-size",children:[(S.size/1024).toFixed(0)," KB"]}),r.jsx("button",{type:"button",className:"vx-file-upload__remove",onClick:()=>v(y),"aria-label":`Remove ${S.name}`,children:r.jsx(ie,{size:14})})]},y))})]})}function il({trigger:e,title:t,description:n,side:a="right",children:s,footer:o,className:l,...i}){return r.jsxs(pt,{...i,children:[e?r.jsx(ft,{asChild:!0,children:e}):null,r.jsxs(vt,{children:[r.jsx(mt,{className:"vx-sheet__overlay"}),r.jsxs(ht,{className:E("vx-sheet",`vx-sheet--${a}`,l),children:[r.jsxs("div",{className:"vx-sheet__header",children:[r.jsxs("div",{children:[t?r.jsx(gt,{className:"vx-sheet__title",children:t}):null,n?r.jsx(xt,{className:"vx-sheet__description",children:n}):null]}),r.jsx(Ae,{className:"vx-dialog__close","aria-label":"Close",children:r.jsx(ie,{size:16})})]}),r.jsx("div",{className:"vx-sheet__body",children:s}),o?r.jsx("div",{className:"vx-sheet__footer",children:o}):null]})]})]})}function ll({maxHeight:e,maxWidth:t,children:n,className:a,style:s,...o}){return r.jsx("div",{className:E("vx-scroll-area",a),style:{maxHeight:typeof e=="number"?`${e}px`:e,maxWidth:typeof t=="number"?`${t}px`:t,...s},...o,children:r.jsx("div",{className:"vx-scroll-area__viewport",children:n})})}function cl({pressed:e,defaultPressed:t=!1,onPressedChange:n,size:a="md",className:s,children:o,onClick:l,...i}){const[u,c]=k.useState(t),d=e!==void 0,p=d?e:u,b=w=>{d||c(j=>!j),n==null||n(!p),l==null||l(w)};return r.jsx("button",{type:"button","aria-pressed":p,className:E("vx-toggle",`vx-toggle--${a}`,p&&"vx-toggle--on",s),onClick:b,...i,children:o})}function ul({items:e,value:t,defaultValue:n,onValueChange:a,type:s="single",size:o="md",className:l}){const[i,u]=k.useState(n??(s==="multiple"?[]:"")),c=t!==void 0,d=c?t:i,p=w=>Array.isArray(d)?d.includes(w):d===w,b=w=>{let j;if(s==="multiple"){const g=Array.isArray(d)?d:[];j=g.includes(w)?g.filter(h=>h!==w):[...g,w]}else j=d===w?"":w;c||u(j),a==null||a(j)};return r.jsx("div",{className:E("vx-toggle-group",l),role:"group",children:e.map(w=>r.jsx("button",{type:"button","aria-pressed":p(w.value),disabled:w.disabled,className:E("vx-toggle",`vx-toggle--${o}`,p(w.value)&&"vx-toggle--on","vx-toggle-group__item"),onClick:()=>!w.disabled&&b(w.value),children:w.label},w.value))})}function dl({groups:e,items:t,children:n,className:a}){const[s,o]=k.useState(null),l=k.useRef(null),i=e??(t?[{items:t}]:[]);k.useEffect(()=>{if(!s)return;const c=p=>{l.current&&!l.current.contains(p.target)&&o(null)},d=p=>{p.key==="Escape"&&o(null)};return document.addEventListener("mousedown",c),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",c),document.removeEventListener("keydown",d)}},[s]);const u=k.useCallback(c=>{c.preventDefault(),o({x:c.clientX,y:c.clientY})},[]);return r.jsxs("div",{className:E("vx-context-menu-wrap",a),onContextMenu:u,children:[n,s&&r.jsx("div",{ref:l,className:"vx-dropdown__menu",style:{position:"fixed",top:s.y,left:s.x,zIndex:9999},role:"menu",children:i.map((c,d)=>r.jsxs("div",{className:"vx-dropdown__group",children:[d>0&&r.jsx("div",{className:"vx-dropdown__separator"}),c.label&&r.jsx("div",{className:"vx-dropdown__group-label",children:c.label}),c.items.map((p,b)=>r.jsxs("button",{type:"button",role:"menuitem",disabled:p.disabled,className:E("vx-dropdown__item",p.danger&&"vx-dropdown__item--danger",p.disabled&&"vx-dropdown__item--disabled"),onClick:()=>{var w;(w=p.onClick)==null||w.call(p),o(null)},children:[p.icon&&r.jsx("span",{className:"vx-dropdown__item-icon",children:p.icon}),r.jsx("span",{className:"vx-dropdown__item-label",children:p.label}),p.shortcut&&r.jsx("span",{className:"vx-dropdown__shortcut",children:p.shortcut})]},b))]},d))})]})}function pl({content:e,placement:t="bottom",delay:n=400,children:a,className:s}){const[o,l]=k.useState(!1),i=k.useRef(null),u=k.useCallback(()=>{i.current=setTimeout(()=>l(!0),n)},[n]),c=k.useCallback(()=>{i.current&&clearTimeout(i.current),l(!1)},[]);return r.jsxs("span",{className:E("vx-hovercard-wrap",s),onMouseEnter:u,onMouseLeave:c,onFocus:u,onBlur:c,children:[a,o&&r.jsx("div",{className:E("vx-hovercard",`vx-hovercard--${t}`),children:e})]})}function fl({menus:e,className:t}){const[n,a]=k.useState(null),s=k.useRef(null);return k.useEffect(()=>{if(n===null)return;const o=i=>{s.current&&!s.current.contains(i.target)&&a(null)},l=i=>{i.key==="Escape"&&a(null)};return document.addEventListener("mousedown",o),document.addEventListener("keydown",l),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("keydown",l)}},[n]),r.jsx("div",{ref:s,className:E("vx-menubar",t),role:"menubar",children:e.map((o,l)=>{const i=o.groups??(o.items?[{items:o.items}]:[]),u=n===l;return r.jsxs("div",{className:"vx-menubar__item-wrap",children:[r.jsx("button",{type:"button",role:"menuitem",className:E("vx-menubar__trigger",u&&"vx-menubar__trigger--open"),disabled:o.disabled,"aria-haspopup":"menu","aria-expanded":u,onClick:()=>a(u?null:l),onMouseEnter:()=>{n!==null&&a(l)},children:o.label}),u&&r.jsx("div",{className:"vx-dropdown__menu",role:"menu",children:i.map((c,d)=>r.jsxs("div",{className:"vx-dropdown__group",children:[d>0&&r.jsx("div",{className:"vx-dropdown__separator"}),c.label&&r.jsx("div",{className:"vx-dropdown__group-label",children:c.label}),c.items.map((p,b)=>r.jsxs("button",{type:"button",role:"menuitem",disabled:p.disabled,className:E("vx-dropdown__item",p.danger&&"vx-dropdown__item--danger",p.disabled&&"vx-dropdown__item--disabled"),onClick:()=>{var w;(w=p.onClick)==null||w.call(p),a(null)},children:[p.icon&&r.jsx("span",{className:"vx-dropdown__item-icon",children:p.icon}),r.jsx("span",{className:"vx-dropdown__item-label",children:p.label}),p.shortcut&&r.jsx("span",{className:"vx-dropdown__shortcut",children:p.shortcut})]},b))]},d))})]},l)})})}function vl({items:e,className:t}){const[n,a]=k.useState(null),s=k.useRef(null);return k.useEffect(()=>{if(n===null)return;const o=i=>{s.current&&!s.current.contains(i.target)&&a(null)},l=i=>{i.key==="Escape"&&a(null)};return document.addEventListener("mousedown",o),document.addEventListener("keydown",l),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("keydown",l)}},[n]),r.jsx("nav",{ref:s,className:E("vx-nav-menu",t),"aria-label":"Main navigation",children:r.jsx("ul",{className:"vx-nav-menu__list",role:"list",children:e.map((o,l)=>{const i=o.items&&o.items.length>0,u=n===l;return r.jsxs("li",{className:"vx-nav-menu__item-wrap",children:[i?r.jsxs("button",{type:"button",className:E("vx-nav-menu__link",o.active&&"vx-nav-menu__link--active",u&&"vx-nav-menu__link--open"),"aria-haspopup":"true","aria-expanded":u,onClick:()=>a(u?null:l),children:[o.label,r.jsx(ot,{size:14,className:E("vx-nav-menu__chevron",u&&"vx-nav-menu__chevron--open")})]}):r.jsx("a",{href:o.href??"#",className:E("vx-nav-menu__link",o.active&&"vx-nav-menu__link--active"),onClick:o.onClick,children:o.label}),i&&u&&r.jsx("div",{className:"vx-nav-menu__dropdown",children:o.items.map((c,d)=>r.jsxs("a",{href:c.href??"#",className:"vx-nav-menu__sub-item",onClick:()=>{var p;(p=c.onClick)==null||p.call(c),a(null)},children:[c.icon&&r.jsx("span",{className:"vx-nav-menu__sub-icon",children:c.icon}),r.jsxs("span",{children:[r.jsx("span",{className:"vx-nav-menu__sub-label",children:c.label}),c.description&&r.jsx("span",{className:"vx-nav-menu__sub-desc",children:c.description})]})]},d))})]},l)})})})}function ml({steps:e,currentStep:t=0,orientation:n="horizontal",className:a}){return r.jsx("ol",{className:E("vx-stepper",`vx-stepper--${n}`,a),"aria-label":"Steps",children:e.map((s,o)=>{const l=s.status??(o<t?"completed":o===t?"active":"pending");return r.jsxs("li",{className:E("vx-stepper__step",`vx-stepper__step--${l}`),children:[r.jsx("div",{className:"vx-stepper__indicator","aria-hidden":"true",children:l==="completed"?r.jsx(st,{size:14}):r.jsx("span",{children:o+1})}),r.jsxs("div",{className:"vx-stepper__content",children:[r.jsx("span",{className:"vx-stepper__label",children:s.label}),s.description&&r.jsx("span",{className:"vx-stepper__description",children:s.description})]}),o<e.length-1&&r.jsx("div",{className:"vx-stepper__connector","aria-hidden":"true"})]},o)})})}function hl({items:e,className:t}){return r.jsx("ol",{className:E("vx-timeline",t),"aria-label":"Timeline",children:e.map((n,a)=>r.jsxs("li",{className:E("vx-timeline__item",n.status&&`vx-timeline__item--${n.status}`),children:[r.jsx("div",{className:"vx-timeline__dot","aria-hidden":"true",children:n.icon??null}),r.jsxs("div",{className:"vx-timeline__body",children:[r.jsxs("div",{className:"vx-timeline__header",children:[r.jsx("span",{className:"vx-timeline__title",children:n.title}),n.time&&r.jsx("span",{className:"vx-timeline__time",children:n.time})]}),n.description&&r.jsx("p",{className:"vx-timeline__description",children:n.description})]})]},a))})}function gl({icon:e,title:t,description:n,action:a,className:s}){return r.jsxs("div",{className:E("vx-empty-state",s),role:"status","aria-live":"polite",children:[e&&r.jsx("div",{className:"vx-empty-state__icon","aria-hidden":"true",children:e}),r.jsx("p",{className:"vx-empty-state__title",children:t}),n&&r.jsx("p",{className:"vx-empty-state__description",children:n}),a&&r.jsx("div",{className:"vx-empty-state__action",children:a})]})}function xl({items:e,defaultIndex:t=0,index:n,onIndexChange:a,autoPlay:s=!1,interval:o=3e3,loop:l=!0,showDots:i=!0,showArrows:u=!0,className:c}){const d=n!==void 0,[p,b]=k.useState(t),w=d?n:p,j=e.length,g=k.useRef(null),h=k.useCallback(v=>{let f=v;l?f=(v%j+j)%j:f=Math.max(0,Math.min(v,j-1)),d||b(f),a==null||a(f)},[d,l,a,j]);k.useEffect(()=>{if(s)return g.current=setInterval(()=>h(w+1),o),()=>{g.current&&clearInterval(g.current)}},[s,w,h,o]);const _=()=>h(w-1),m=()=>h(w+1);return j===0?null:r.jsxs("div",{className:E("vx-carousel",c),role:"region","aria-roledescription":"carousel","aria-label":"Carousel",children:[r.jsx("div",{className:"vx-carousel__track-wrap",children:r.jsx("div",{className:"vx-carousel__track",style:{transform:`translateX(-${w*100}%)`},children:e.map((v,f)=>r.jsx("div",{className:"vx-carousel__slide",role:"group","aria-roledescription":"slide","aria-label":`Slide ${f+1} of ${j}`,"aria-hidden":f!==w,children:v},f))})}),u&&r.jsxs(r.Fragment,{children:[r.jsx("button",{type:"button",className:"vx-carousel__arrow vx-carousel__arrow--prev",onClick:_,disabled:!l&&w===0,"aria-label":"Previous slide",children:r.jsx(nn,{size:20})}),r.jsx("button",{type:"button",className:"vx-carousel__arrow vx-carousel__arrow--next",onClick:m,disabled:!l&&w===j-1,"aria-label":"Next slide",children:r.jsx(Re,{size:20})})]}),i&&r.jsx("div",{className:"vx-carousel__dots",role:"tablist","aria-label":"Slides",children:e.map((v,f)=>r.jsx("button",{type:"button",role:"tab",className:E("vx-carousel__dot",f===w&&"vx-carousel__dot--active"),onClick:()=>h(f),"aria-selected":f===w,"aria-label":`Go to slide ${f+1}`},f))})]})}function bl({filled:e,half:t}){return r.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true",children:t?r.jsxs(r.Fragment,{children:[r.jsx("defs",{children:r.jsxs("linearGradient",{id:"vx-star-half",children:[r.jsx("stop",{offset:"50%",stopColor:"currentColor"}),r.jsx("stop",{offset:"50%",stopColor:"none",stopOpacity:"0"})]})}),r.jsx("path",{d:"M10 1.5l2.39 4.84 5.34.78-3.87 3.77.91 5.32L10 13.77l-4.77 2.44.91-5.32L2.27 7.12l5.34-.78L10 1.5z",fill:"url(#vx-star-half)",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})]}):r.jsx("path",{d:"M10 1.5l2.39 4.84 5.34.78-3.87 3.77.91 5.32L10 13.77l-4.77 2.44.91-5.32L2.27 7.12l5.34-.78L10 1.5z",fill:e?"currentColor":"none",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})})}function yl({value:e,defaultValue:t=0,onChange:n,max:a=5,allowHalf:s=!1,disabled:o,readOnly:l,label:i,className:u,size:c="md"}){const d=e!==void 0,[p,b]=k.useState(t),w=d?e:p,[j,g]=k.useState(null),h=j??w,_=(f,y)=>{if(!s)return f;const S=y.currentTarget.getBoundingClientRect();return y.clientX-S.left<S.width/2?f-.5:f},m=(f,y)=>{if(o||l)return;const S=_(f,y);d||b(S),n==null||n(S)},v=(f,y)=>{o||l||g(_(f,y))};return r.jsx("div",{className:E("vx-rating",`vx-rating--${c}`,o&&"vx-rating--disabled",u),role:"group","aria-label":i??"Rating",children:Array.from({length:a},(f,y)=>{const S=y+1,N=h>=S,C=!N&&h>=S-.5;return r.jsx("button",{type:"button",className:E("vx-rating__star",(N||C)&&"vx-rating__star--active"),onClick:T=>m(S,T),onMouseMove:T=>v(S,T),onMouseLeave:()=>g(null),disabled:o,"aria-label":`${S} star${S!==1?"s":""}`,"aria-pressed":w>=S,tabIndex:l||o?-1:0,children:r.jsx(bl,{filled:N,half:C})},y)})})}function Ir({node:e,depth:t,selected:n,expanded:a,onSelect:s,onToggle:o}){const l=e.children&&e.children.length>0,i=a.has(e.id),u=n===e.id,c=d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),e.disabled||s(e.id,e)),d.key==="ArrowRight"&&l&&!i&&(d.preventDefault(),o(e.id)),d.key==="ArrowLeft"&&i&&(d.preventDefault(),o(e.id))};return r.jsxs("li",{role:"treeitem","aria-selected":u,"aria-expanded":l?i:void 0,children:[r.jsxs("div",{className:E("vx-tree__node",u&&"vx-tree__node--selected",e.disabled&&"vx-tree__node--disabled"),style:{paddingLeft:`${8+t*20}px`},onClick:()=>{e.disabled||(s(e.id,e),l&&o(e.id))},onKeyDown:c,tabIndex:e.disabled?-1:0,role:"button","aria-label":typeof e.label=="string"?e.label:void 0,children:[r.jsx("span",{className:E("vx-tree__expand",!l&&"vx-tree__expand--hidden"),children:r.jsx(Re,{size:14,className:E("vx-tree__chevron",i&&"vx-tree__chevron--open")})}),e.icon&&r.jsx("span",{className:"vx-tree__icon",children:e.icon}),r.jsx("span",{className:"vx-tree__label",children:e.label})]}),l&&i&&r.jsx("ul",{role:"group",className:"vx-tree__children",children:e.children.map(d=>r.jsx(Ir,{node:d,depth:t+1,selected:n,expanded:a,onSelect:s,onToggle:o},d.id))})]})}function _l({nodes:e,selected:t,defaultSelected:n,onSelect:a,defaultExpanded:s=[],expanded:o,onExpandedChange:l,className:i}){const u=t!==void 0,[c,d]=k.useState(n),p=u?t:c,b=o!==void 0,[w,j]=k.useState(new Set(s)),g=b?new Set(o):w,h=k.useCallback((m,v)=>{u||d(m),a==null||a(m,v)},[u,a]),_=k.useCallback(m=>{const v=new Set(g);v.has(m)?v.delete(m):v.add(m),b||j(v),l==null||l([...v])},[g,b,l]);return r.jsx("ul",{className:E("vx-tree",i),role:"tree","aria-multiselectable":"false",children:e.map(m=>r.jsx(Ir,{node:m,depth:0,selected:p,expanded:g,onSelect:h,onToggle:_},m.id))})}function wl({value:e,defaultValue:t=[],onChange:n,label:a,hint:s,error:o,placeholder:l="Add tag...",confirmKeys:i=["Enter",","],maxTags:u,validate:c,disabled:d,className:p,...b}){const w=e!==void 0,[j,g]=k.useState(t),h=w?e:j,[_,m]=k.useState(""),[v,f]=k.useState(),y=k.useRef(null),S=R=>{w||g(R),n==null||n(R)},N=R=>{const A=R.trim();if(A){if(h.includes(A)){f("Tag already exists");return}if(u&&h.length>=u){f(`Max ${u} tags`);return}if(c){const D=c(A);if(D===!1){f("Invalid tag");return}if(typeof D=="string"){f(D);return}}f(void 0),S([...h,A]),m("")}},C=R=>{S(h.filter((A,D)=>D!==R))},T=R=>{i.includes(R.key)?(R.preventDefault(),N(_)):R.key==="Backspace"&&!_&&h.length>0&&C(h.length-1)},P=o??v;return r.jsxs("div",{className:E("vx-tag-input",p),children:[a?r.jsx("span",{className:"vx-field-group__label",children:a}):null,r.jsxs("div",{className:E("vx-tag-input__wrap",P&&"vx-tag-input__wrap--invalid",d&&"vx-tag-input__wrap--disabled"),onClick:()=>{var R;return(R=y.current)==null?void 0:R.focus()},children:[h.map((R,A)=>r.jsxs("span",{className:"vx-tag-input__tag",children:[R,!d&&r.jsx("button",{type:"button",className:"vx-tag-input__remove",onClick:D=>{D.stopPropagation(),C(A)},"aria-label":`Remove tag ${R}`,children:r.jsx(ie,{size:11})})]},A)),r.jsx("input",{ref:y,className:"vx-tag-input__input",value:_,placeholder:h.length===0?l:"",disabled:d,onKeyDown:T,onChange:R=>{m(R.target.value),f(void 0)},onBlur:()=>{_.trim()&&N(_)},"aria-label":a??"Tag input",...b})]}),P?r.jsx("span",{className:"vx-field-group__error",children:P}):null,!P&&s?r.jsx("span",{className:"vx-field-group__hint",children:s}):null]})}function kl(e){const t=parseInt(e.slice(1,3),16)/255,n=parseInt(e.slice(3,5),16)/255,a=parseInt(e.slice(5,7),16)/255,s=Math.max(t,n,a),o=Math.min(t,n,a),l=(s+o)/2;let i=0,u=0;if(s!==o){const c=s-o;switch(u=c/(l>.5?2-s-o:s+o),s){case t:i=((n-a)/c+(n<a?6:0))/6;break;case n:i=((a-t)/c+2)/6;break;case a:i=((t-n)/c+4)/6;break}}return[Math.round(i*360),Math.round(u*100),Math.round(l*100)]}function Xe(e,t,n){const a=e/360,s=t/100,o=n/100,l=(p,b,w)=>{let j=w;return j<0&&(j+=1),j>1&&(j-=1),j<1/6?p+(b-p)*6*j:j<1/2?b:j<2/3?p+(b-p)*(2/3-j)*6:p};let i,u,c;if(s===0)i=u=c=o;else{const p=o<.5?o*(1+s):o+s-o*s,b=2*o-p;i=l(b,p,a+1/3),u=l(b,p,a),c=l(b,p,a-1/3)}const d=p=>Math.round(p*255).toString(16).padStart(2,"0");return`#${d(i)}${d(u)}${d(c)}`}function Wt(e){return/^#[0-9a-f]{6}$/i.test(e)}const Sl=["#ef4444","#f97316","#eab308","#22c55e","#06b6d4","#3b82f6","#8b5cf6","#ec4899","#64748b","#0f172a","#ffffff","#f8fafc"];function Nl({value:e,defaultValue:t="#3b82f6",onChange:n,label:a,hint:s,error:o,disabled:l,presets:i=Sl,showPresets:u=!0,className:c}){const d=e!==void 0,[p,b]=k.useState(t),w=d?e:p,[j,g]=k.useState(w),[h,_]=k.useState(!1),[m,v,f]=Wt(w)?kl(w):[0,0,50],y=k.useCallback(N=>{d||b(N),g(N),n==null||n(N)},[d,n]),S=N=>{const C=N.startsWith("#")?N:`#${N}`;g(C),Wt(C)&&y(C)};return r.jsxs("div",{className:E("vx-colorpicker",c),children:[a?r.jsx("span",{className:"vx-field-group__label",children:a}):null,r.jsxs("div",{className:"vx-colorpicker__row",children:[r.jsx("button",{type:"button",className:E("vx-colorpicker__swatch-btn",l&&"vx-colorpicker__swatch-btn--disabled"),style:{"--vx-cp-color":w},onClick:()=>!l&&_(N=>!N),disabled:l,"aria-label":`Current color: ${w}. Click to open color picker.`,"aria-haspopup":"dialog","aria-expanded":h}),r.jsx("input",{type:"text",className:"vx-colorpicker__hex-input",value:j,onChange:N=>S(N.target.value),disabled:l,"aria-label":"Hex color value",maxLength:7})]}),o?r.jsx("span",{className:"vx-field-group__error",children:o}):null,!o&&s?r.jsx("span",{className:"vx-field-group__hint",children:s}):null,h&&r.jsxs("div",{className:"vx-colorpicker__panel",role:"dialog","aria-label":"Color picker",children:[r.jsx("div",{className:"vx-colorpicker__section-label",children:"Hue"}),r.jsx("input",{type:"range",className:"vx-colorpicker__hue-slider",min:"0",max:"360",value:m,onChange:N=>y(Xe(Number(N.target.value),v,f)),"aria-label":"Hue"}),r.jsx("div",{className:"vx-colorpicker__section-label",children:"Saturation"}),r.jsx("input",{type:"range",className:"vx-colorpicker__sat-slider",min:"0",max:"100",value:v,style:{"--vx-cp-hue":m},onChange:N=>y(Xe(m,Number(N.target.value),f)),"aria-label":"Saturation"}),r.jsx("div",{className:"vx-colorpicker__section-label",children:"Lightness"}),r.jsx("input",{type:"range",className:"vx-colorpicker__lit-slider",min:"0",max:"100",value:f,style:{"--vx-cp-hue":m,"--vx-cp-sat":`${v}%`},onChange:N=>y(Xe(m,v,Number(N.target.value))),"aria-label":"Lightness"}),u&&r.jsx("div",{className:"vx-colorpicker__presets",children:i.map(N=>r.jsx("button",{type:"button",className:E("vx-colorpicker__preset",w.toLowerCase()===N.toLowerCase()&&"vx-colorpicker__preset--active"),style:{background:N},onClick:()=>y(N),"aria-label":N},N))}),r.jsx("button",{type:"button",className:"vx-colorpicker__close",onClick:()=>_(!1),children:"Done"})]})]})}function jl({direction:e="horizontal",children:t,className:n}){return r.jsx("div",{className:E("vx-resizable-group",`vx-resizable-group--${e}`,n),children:t})}function El({children:e,defaultSize:t=50,minSize:n=10,maxSize:a=90,className:s,style:o}){return r.jsx("div",{className:E("vx-resizable-panel",s),style:{"--vx-panel-size":`${t}%`,...o},"data-min":n,"data-max":a,children:e})}function Cl({className:e,direction:t="horizontal"}){const n=k.useRef(!1),[a,s]=k.useState(!1),o=k.useCallback(l=>{const i=l.currentTarget,u=i.previousElementSibling,c=i.nextElementSibling;if(!u||!c)return;const d=i.parentElement,p=t==="horizontal",b=p?d.getBoundingClientRect().width:d.getBoundingClientRect().height,w=p?u.getBoundingClientRect().width:u.getBoundingClientRect().height,j=p?c.getBoundingClientRect().width:c.getBoundingClientRect().height,g=N=>"touches"in N?p?N.touches[0].clientX:N.touches[0].clientY:p?N.clientX:N.clientY,h=g(l.nativeEvent);n.current=!0,s(!0);const _=Number(u.dataset.min??10)/100*b,m=Number(u.dataset.max??90)/100*b,v=Number(c.dataset.min??10)/100*b,f=Number(c.dataset.max??90)/100*b,y=N=>{if(!n.current)return;const C=g(N)-h,T=Math.min(Math.max(w+C,_),m),P=Math.min(Math.max(j-C,v),f);u.style.flexBasis=`${T/b*100}%`,c.style.flexBasis=`${P/b*100}%`},S=()=>{n.current=!1,s(!1),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",S)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",S)},[t]);return r.jsx("div",{role:"separator","aria-orientation":t==="horizontal"?"vertical":"horizontal",className:E("vx-resizable-handle",`vx-resizable-handle--${t}`,a&&"vx-resizable-handle--active",e),onMouseDown:o,onTouchStart:o,children:r.jsx("span",{className:"vx-resizable-handle__bar","aria-hidden":"true"})})}function Gt(e,t){if(!t)return e;const n=e.toLowerCase().indexOf(t.toLowerCase());return n===-1?e:r.jsxs(r.Fragment,{children:[e.slice(0,n),r.jsx("mark",{className:"vx-cmd__mark",children:e.slice(n,n+t.length)}),e.slice(n+t.length)]})}function Tl(e,t){const n=t.toLowerCase(),a=e.title.toLowerCase(),s=e.section.toLowerCase(),o=e.description.toLowerCase(),l=(e.keywords??[]).join(" ").toLowerCase();return a===n?100:a.startsWith(n)?80:a.includes(n)?60:s.includes(n)?40:l.includes(n)?35:o.includes(n)?20:0}function Al({entries:e,open:t,onClose:n,onSelect:a,placeholder:s="Search components, pages, keywords…",ariaLabel:o="Search",emptyText:l=d=>`No results for "${d}"`,labelNavigate:i="Navigate",labelGo:u="Go",labelClose:c="Close"}){const[d,p]=k.useState(""),[b,w]=k.useState(0),j=k.useRef(null),g=k.useRef(null),h=d.trim()?e.map(f=>({entry:f,s:Tl(f,d.trim())})).filter(f=>f.s>0).sort((f,y)=>y.s-f.s).map(f=>f.entry):e;k.useEffect(()=>{t&&(p(""),w(0),setTimeout(()=>{var f;return(f=j.current)==null?void 0:f.focus()},30))},[t]),k.useEffect(()=>{w(0)},[d]),k.useEffect(()=>{var y;const f=(y=g.current)==null?void 0:y.children[b];f==null||f.scrollIntoView({block:"nearest"})},[b]);const _=k.useCallback(f=>{a(f),n()},[a,n]),m=k.useCallback(f=>{f.key==="ArrowDown"?(f.preventDefault(),w(y=>Math.min(y+1,h.length-1))):f.key==="ArrowUp"?(f.preventDefault(),w(y=>Math.max(y-1,0))):f.key==="Enter"?(f.preventDefault(),h[b]&&_(h[b].key)):f.key==="Escape"&&n()},[h,b,_,n]);if(!t)return null;const v=[];for(const f of h){const y=v[v.length-1];y&&y.section===f.section?y.items.push(f):v.push({section:f.section,items:[f]})}return r.jsx("div",{className:"vx-cmd__backdrop",onMouseDown:n,children:r.jsxs("div",{className:"vx-cmd",role:"dialog","aria-modal":"true","aria-label":o,onMouseDown:f=>f.stopPropagation(),children:[r.jsxs("div",{className:"vx-cmd__search",children:[r.jsxs("svg",{className:"vx-cmd__search-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{cx:"6.5",cy:"6.5",r:"5",stroke:"currentColor",strokeWidth:"1.5"}),r.jsx("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),r.jsx("input",{ref:j,className:"vx-cmd__input",type:"text",placeholder:s,value:d,onChange:f=>p(f.target.value),onKeyDown:m,autoComplete:"off",spellCheck:!1}),d?r.jsx("button",{className:"vx-cmd__clear",onClick:()=>p(""),"aria-label":"清除",children:r.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none","aria-hidden":"true",children:r.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}):r.jsx("kbd",{className:"vx-cmd__esc",children:"esc"})]}),r.jsx("ul",{className:"vx-cmd__list",ref:g,role:"listbox",children:h.length===0?r.jsx("li",{className:"vx-cmd__empty",children:l(d)}):v.map(f=>f.items.map((y,S)=>{const N=h.indexOf(y),C=N===b;return r.jsxs("li",{role:"option","aria-selected":C,className:`vx-cmd__item${C?" vx-cmd__item--active":""}`,onMouseEnter:()=>w(N),onMouseDown:()=>_(y.key),children:[y.icon?r.jsx("span",{className:"vx-cmd__item-icon",children:y.icon}):r.jsx("span",{className:"vx-cmd__item-icon vx-cmd__item-icon--section",children:y.section.slice(0,1)}),r.jsxs("span",{className:"vx-cmd__item-body",children:[r.jsx("span",{className:"vx-cmd__item-title",children:Gt(y.title,d)}),r.jsx("span",{className:"vx-cmd__item-sub",children:Gt(y.section,d)})]}),C&&r.jsx("kbd",{className:"vx-cmd__enter",children:"↵"})]},y.key)}))}),r.jsxs("div",{className:"vx-cmd__footer",children:[r.jsxs("span",{children:[r.jsx("kbd",{children:"↑↓"})," ",i]}),r.jsxs("span",{children:[r.jsx("kbd",{children:"↵"})," ",u]}),r.jsxs("span",{children:[r.jsx("kbd",{children:"esc"})," ",c]})]})]})})}var Vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ze={exports:{}},Kt;function Rl(){return Kt||(Kt=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
121
121
  * Prism: Lightweight, robust, elegant syntax highlighting
122
122
  *
123
123
  * @license MIT <https://opensource.org/licenses/MIT>
124
124
  * @author Lea Verou <https://lea.verou.me>
125
125
  * @namespace
126
126
  * @public
127
- */var n=(function(a){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,l={},i={manual:a.Prism&&a.Prism.manual,disableWorkerMessageHandler:a.Prism&&a.Prism.disableWorkerMessageHandler,util:{encode:function m(v){return v instanceof u?new u(v.type,m(v.content),v.alias):Array.isArray(v)?v.map(m):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(v,f){f=f||{};var y,_;switch(i.util.type(v)){case"Object":if(_=i.util.objId(v),f[_])return f[_];y={},f[_]=y;for(var S in v)v.hasOwnProperty(S)&&(y[S]=m(v[S],f));return y;case"Array":return _=i.util.objId(v),f[_]?f[_]:(y=[],f[_]=y,v.forEach(function(C,T){y[T]=m(C,f)}),y);default:return v}},getLanguage:function(m){for(;m;){var v=s.exec(m.className);if(v)return v[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,v){m.className=m.className.replace(RegExp(s,"gi"),""),m.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(y){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(y.stack)||[])[1];if(m){var v=document.getElementsByTagName("script");for(var f in v)if(v[f].src==m)return v[f]}return null}},isActive:function(m,v,f){for(var y="no-"+v;m;){var _=m.classList;if(_.contains(v))return!0;if(_.contains(y))return!1;m=m.parentElement}return!!f}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(m,v){var f=i.util.clone(i.languages[m]);for(var y in v)f[y]=v[y];return f},insertBefore:function(m,v,f,y){y=y||i.languages;var _=y[m],S={};for(var C in _)if(_.hasOwnProperty(C)){if(C==v)for(var T in f)f.hasOwnProperty(T)&&(S[T]=f[T]);f.hasOwnProperty(C)||(S[C]=_[C])}var A=y[m];return y[m]=S,i.languages.DFS(i.languages,function(R,P){P===A&&R!=m&&(this[R]=S)}),S},DFS:function m(v,f,y,_){_=_||{};var S=i.util.objId;for(var C in v)if(v.hasOwnProperty(C)){f.call(v,C,v[C],y||C);var T=v[C],A=i.util.type(T);A==="Object"&&!_[S(T)]?(_[S(T)]=!0,m(T,f,null,_)):A==="Array"&&!_[S(T)]&&(_[S(T)]=!0,m(T,f,C,_))}}},plugins:{},highlightAll:function(m,v){i.highlightAllUnder(document,m,v)},highlightAllUnder:function(m,v,f){var y={callback:f,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",y),y.elements=Array.prototype.slice.apply(y.container.querySelectorAll(y.selector)),i.hooks.run("before-all-elements-highlight",y);for(var _=0,S;S=y.elements[_++];)i.highlightElement(S,v===!0,y.callback)},highlightElement:function(m,v,f){var y=i.util.getLanguage(m),_=i.languages[y];i.util.setLanguage(m,y);var S=m.parentElement;S&&S.nodeName.toLowerCase()==="pre"&&i.util.setLanguage(S,y);var C=m.textContent,T={element:m,language:y,grammar:_,code:C};function A(P){T.highlightedCode=P,i.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,i.hooks.run("after-highlight",T),i.hooks.run("complete",T),f&&f.call(T.element)}if(i.hooks.run("before-sanity-check",T),S=T.element.parentElement,S&&S.nodeName.toLowerCase()==="pre"&&!S.hasAttribute("tabindex")&&S.setAttribute("tabindex","0"),!T.code){i.hooks.run("complete",T),f&&f.call(T.element);return}if(i.hooks.run("before-highlight",T),!T.grammar){A(i.util.encode(T.code));return}if(v&&a.Worker){var R=new Worker(i.filename);R.onmessage=function(P){A(P.data)},R.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else A(i.highlight(T.code,T.grammar,T.language))},highlight:function(m,v,f){var y={code:m,grammar:v,language:f};if(i.hooks.run("before-tokenize",y),!y.grammar)throw new Error('The language "'+y.language+'" has no grammar.');return y.tokens=i.tokenize(y.code,y.grammar),i.hooks.run("after-tokenize",y),u.stringify(i.util.encode(y.tokens),y.language)},tokenize:function(m,v){var f=v.rest;if(f){for(var y in f)v[y]=f[y];delete v.rest}var _=new p;return b(_,_.head,m),d(m,_,v,_.head,0),j(_)},hooks:{all:{},add:function(m,v){var f=i.hooks.all;f[m]=f[m]||[],f[m].push(v)},run:function(m,v){var f=i.hooks.all[m];if(!(!f||!f.length))for(var y=0,_;_=f[y++];)_(v)}},Token:u};a.Prism=i;function u(m,v,f,y){this.type=m,this.content=v,this.alias=f,this.length=(y||"").length|0}u.stringify=function m(v,f){if(typeof v=="string")return v;if(Array.isArray(v)){var y="";return v.forEach(function(A){y+=m(A,f)}),y}var _={type:v.type,content:m(v.content,f),tag:"span",classes:["token",v.type],attributes:{},language:f},S=v.alias;S&&(Array.isArray(S)?Array.prototype.push.apply(_.classes,S):_.classes.push(S)),i.hooks.run("wrap",_);var C="";for(var T in _.attributes)C+=" "+T+'="'+(_.attributes[T]||"").replace(/"/g,"&quot;")+'"';return"<"+_.tag+' class="'+_.classes.join(" ")+'"'+C+">"+_.content+"</"+_.tag+">"};function c(m,v,f,y){m.lastIndex=v;var _=m.exec(f);if(_&&y&&_[1]){var S=_[1].length;_.index+=S,_[0]=_[0].slice(S)}return _}function d(m,v,f,y,_,S){for(var C in f)if(!(!f.hasOwnProperty(C)||!f[C])){var T=f[C];T=Array.isArray(T)?T:[T];for(var A=0;A<T.length;++A){if(S&&S.cause==C+","+A)return;var R=T[A],P=R.inside,I=!!R.lookbehind,F=!!R.greedy,O=R.alias;if(F&&!R.pattern.global){var $=R.pattern.toString().match(/[imsuy]*$/)[0];R.pattern=RegExp(R.pattern.source,$+"g")}for(var q=R.pattern||R,M=y.next,B=_;M!==v.tail&&!(S&&B>=S.reach);B+=M.value.length,M=M.next){var X=M.value;if(v.length>m.length)return;if(!(X instanceof u)){var te=1,z;if(F){if(z=c(q,B,m,I),!z||z.index>=m.length)break;var me=z.index,ne=z.index+z[0].length,W=B;for(W+=M.value.length;me>=W;)M=M.next,W+=M.value.length;if(W-=M.value.length,B=W,M.value instanceof u)continue;for(var ue=M;ue!==v.tail&&(W<ne||typeof ue.value=="string");ue=ue.next)te++,W+=ue.value.length;te--,X=m.slice(B,W),z.index-=B}else if(z=c(q,0,X,I),!z)continue;var me=z.index,he=z[0],Me=X.slice(0,me),kt=X.slice(me+he.length),Oe=B+X.length;S&&Oe>S.reach&&(S.reach=Oe);var ge=M.prev;Me&&(ge=b(v,ge,Me),B+=Me.length),k(v,ge,te);var Ir=new u(C,P?i.tokenize(he,P):he,O,he);if(M=b(v,ge,Ir),kt&&b(v,M,kt),te>1){var $e={cause:C+","+A,reach:Oe};d(m,v,f,M.prev,B,$e),S&&$e.reach>S.reach&&(S.reach=$e.reach)}}}}}}function p(){var m={value:null,prev:null,next:null},v={value:null,prev:m,next:null};m.next=v,this.head=m,this.tail=v,this.length=0}function b(m,v,f){var y=v.next,_={value:f,prev:v,next:y};return v.next=_,y.prev=_,m.length++,_}function k(m,v,f){for(var y=v.next,_=0;_<f&&y!==m.tail;_++)y=y.next;v.next=y,y.prev=v,m.length-=_}function j(m){for(var v=[],f=m.head.next;f!==m.tail;)v.push(f.value),f=f.next;return v}if(!a.document)return a.addEventListener&&(i.disableWorkerMessageHandler||a.addEventListener("message",function(m){var v=JSON.parse(m.data),f=v.language,y=v.code,_=v.immediateClose;a.postMessage(i.highlight(y,i.languages[f],f)),_&&a.close()},!1)),i;var g=i.util.currentScript();g&&(i.filename=g.src,g.hasAttribute("data-manual")&&(i.manual=!0));function h(){i.manual||i.highlightAll()}if(!i.manual){var w=document.readyState;w==="loading"||w==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return i})(t);e.exports&&(e.exports=n),typeof Wt<"u"&&(Wt.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(s,o){var l={};l["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};i["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var u={};u[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(a,s){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:n.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(a){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css;var o=a.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,(function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var a="Loading…",s=function(g,h){return"✖ Error "+g+" while fetching file: "+h},o="✖ Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},i="data-src-status",u="loading",c="loaded",d="failed",p="pre[data-src]:not(["+i+'="'+c+'"]):not(['+i+'="'+u+'"])';function b(g,h,w){var m=new XMLHttpRequest;m.open("GET",g,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?h(m.responseText):m.status>=400?w(s(m.status,m.statusText)):w(o))},m.send(null)}function k(g){var h=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(h){var w=Number(h[1]),m=h[2],v=h[3];return m?v?[w,Number(v)]:[w,void 0]:[w,w]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+p}),n.hooks.add("before-sanity-check",function(g){var h=g.element;if(h.matches(p)){g.code="",h.setAttribute(i,u);var w=h.appendChild(document.createElement("CODE"));w.textContent=a;var m=h.getAttribute("data-src"),v=g.language;if(v==="none"){var f=(/\.(\w+)$/.exec(m)||[,"none"])[1];v=l[f]||f}n.util.setLanguage(w,v),n.util.setLanguage(h,v);var y=n.plugins.autoloader;y&&y.loadLanguages(v),b(m,function(_){h.setAttribute(i,c);var S=k(h.getAttribute("data-range"));if(S){var C=_.split(/\r\n?|\n/g),T=S[0],A=S[1]==null?C.length:S[1];T<0&&(T+=C.length),T=Math.max(0,Math.min(T-1,C.length)),A<0&&(A+=C.length),A=Math.max(0,Math.min(A,C.length)),_=C.slice(T,A).join(`
128
- `),h.hasAttribute("data-start")||h.setAttribute("data-start",String(T+1))}w.textContent=_,n.highlightElement(w)},function(_){h.setAttribute(i,d),w.textContent=_})}}),n.plugins.fileHighlight={highlight:function(h){for(var w=(h||document).querySelectorAll(p),m=0,v;v=w[m++];)n.highlightElement(v)}};var j=!1;n.fileHighlight=function(){j||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),j=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(Xe)),Xe.exports}var Al=Tl();const Ne=Cl(Al);Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};s["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:s},Prism.languages.insertBefore("markup","cdata",o)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(u,c){return u=u.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return s}),RegExp(u,c)}s=o(s).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(l).join(""):""},i=function(u){for(var c=[],d=0;d<u.length;d++){var p=u[d],b=!1;if(typeof p!="string"&&(p.type==="tag"&&p.content[0]&&p.content[0].type==="tag"?p.content[0].content[0].content==="</"?c.length>0&&c[c.length-1].tagName===l(p.content[0].content[1])&&c.pop():p.content[p.content.length-1].content==="/>"||c.push({tagName:l(p.content[0].content[1]),openedBraces:0}):c.length>0&&p.type==="punctuation"&&p.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?c[c.length-1].openedBraces--:b=!0),(b||typeof p=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var k=l(p);d<u.length-1&&(typeof u[d+1]=="string"||u[d+1].type==="plain-text")&&(k+=l(u[d+1]),u.splice(d+1,1)),d>0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(k=l(u[d-1])+k,u.splice(d-1,1),d--),u[d]=new e.Token("plain-text",k,null,k)}p.content&&typeof p.content!="string"&&i(p.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||i(u.tokens)})})(Prism);var Kt={},Vt;function Pl(){return Vt||(Vt=1,(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism)),Kt}Pl();(function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0})(Prism);(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=a.variable[1].inside,l=0;l<s.length;l++)o[s[l]]=e.languages.bash[s[l]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;function Rl({code:e,language:t="tsx",copyLabel:n,copiedLabel:a,onCopy:s}){const[o,l]=N.useState(!1),i=N.useRef(null),u=N.useMemo(()=>{const d=Ne.languages[t]??Ne.languages.tsx??Ne.languages.typescript;return d?Ne.highlight(e,d,t):e},[e,t]);N.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);async function c(){await s(e)&&(l(!0),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{l(!1),i.current=null},1600))}return r.jsxs("div",{className:"vx-code-block-wrap","data-language":t,children:[r.jsxs(Q,{type:"button",size:"sm",variant:o?"solid":"secondary",className:o?"vx-code-block__copy vx-code-block__copy--copied":"vx-code-block__copy",onClick:()=>void c(),children:[o?r.jsx(at,{size:14}):r.jsx(Xr,{size:14}),o?a:n]}),r.jsx("pre",{className:"vx-code-block",children:r.jsx("code",{className:`vx-code-block__code language-${t}`,dangerouslySetInnerHTML:{__html:u}})})]})}const Dr={locale:"en",label:"English",searchPlaceholder:"Search components, pages, keywords…",searchAriaLabel:"Search",searchEmpty:e=>`No results for "${e}"`,searchNavigate:"Navigate",searchGo:"Go",searchClose:"Close",sidebarCollapse:"Collapse",sidebarExpand:"Expand",sidebarCloseLabel:"Close sidebar",searchTrigger:"Search",versionLabel:"v1.1.1",mobilePreview:"Mobile Preview",nav:{gettingStarted:"Getting Started",layout:"Layout",components:"Components",feedback:"Feedback",navigation:"Navigation",mobile:"Responsive",templates:"Templates"},pages:{introduction:"Introduction","quick-start":"Quick Start","shell-sidebar":"Shell & Sidebar","grid-page":"Grid & Page",button:"Button",elements:"Elements","form-controls":"Form Controls","form-inputs":"Form Inputs",overlays:"Overlays","data-display":"Data Display",navigation:"Navigation","data-list":"Data List","empty-states":"Empty States",toasts:"Toasts",feedback:"Feedback Components","nav-layout":"Navigation & Layout",mobile:"Mobile Components","command-palette":"Command Palette","code-block":"Code Block","language-switcher":"Language Switcher","home-page":"Home Page","login-page":"Login Page","register-page":"Register Page","error-page":"Error Page","privacy-policy":"Privacy Policy","terms-of-service":"Terms of Service"},docs:{guidance:"Guidance",guidanceDesc:"Keep the implementation tight and let the design system do most of the visual work.",preview:"Preview",previewDesc:"A compact example of how this area should feel inside the system.",notes:"Notes",primaryTheme:"Primary Theme",primaryThemeDesc:"Blue-gray neutrals keep emphasis reserved for actions, not decoration.",tokenScale:"Token Scale",tokenScaleDesc:"Reuse the shared surface, border, and text variables before introducing page-specific styles.",themeStudio:"Theme Studio",themeStudioDesc:"Register named themes once, then switch every component with a single key.",liveControls:"Live Controls",liveControlsDesc:"A few reusable primitives are still available inside the docs surface.",searchDocs:"Search docs",searchDocsPlaceholder:"Buttons, tokens, layout...",compactDensity:"Compact density",compactDensityDesc:"Tighten the vertical rhythm for denser operator views.",systemPreview:"System Preview",openSection:"Open section"},intro:{tagline:"A lightweight, dependency-free UI framework for building clean admin interfaces. Design tokens, components, and a minimal SPA runtime live behind one consistent visual language.",getStarted:"Get Started",browseComponents:"Browse Components",atAGlance:"At a Glance",designTokens:"Design Tokens",designTokensLead:"All colors, spacing, and typography values are exposed as CSS custom properties under the vx namespace. Register named light and dark themes once, then swap the whole framework by theme key.",componentFamilies:"Component Families"},glance:{zeroDeps:"Zero dependencies",zeroDepsHint:"Original shell runtime does not require a build pipeline.",components:"Components",componentsHint:"Layout, form, feedback, and list primitives in one system.",coreCSS:"Core CSS",coreCSSHint:"Neutral tokens and structural styles stay compact.",darkMode:"Dark mode",darkModeHint:"Semantic variables keep the same components reusable."},tokens:{primary:"Primary",primaryDesc:"Accent color for primary actions, active navigation, and emphasis.",surface:"Surface",surfaceDesc:"Default panel and content background for documentation cards and shell regions.",border:"Border",borderDesc:"Light separators that keep the UI structured without adding visual weight.",text:"Text",textDesc:"Primary foreground used for headings, dense data, and body copy."},families:{layout:"Layout",layoutDesc:"App shell, sticky header, section rhythm, and responsive content framing.",elements:"Elements",elementsDesc:"Quiet primitives for actions, metadata, and structured content blocks.",forms:"Forms",formsDesc:"Inputs, switches, dialogs, and field composition patterns.",feedback:"Feedback",feedbackDesc:"Transient toasts and interruptive confirmation flows."},dataList:{name:"Name",kind:"Kind",updated:"Updated"},modeLabel:e=>`${e} mode`,publicPages:{navLogin:"Log in",navSignup:"Sign up",navDocs:"Docs",navLogout:"Log out",heroTag:"New · v1.0",heroTitle:"Build faster with vxUI",heroLead:"A lightweight, dependency-free UI framework for building clean admin interfaces. Design tokens, components, and a minimal SPA runtime in one consistent visual language.",heroCta:"Get started",heroCtaAlt:"Browse docs",previewLead:"A production-minded docs surface with direct guest access, persistent sign-in state, and mobile-ready layouts.",previewAccessTitle:"Access modes",previewAccessMember:"Sign in to keep a persisted session and return directly to your workspace.",previewAccessGuest:"Open the docs immediately as a guest when you only need to inspect components.",previewMobileTitle:"Mobile-ready",previewMobileLead:"Navigation and auth layouts collapse cleanly for phones without losing hierarchy or call-to-action priority.",featuresSectionTitle:"Why vxUI",feat1:"Zero dependencies",feat1Desc:"Ships as a pure CSS + TypeScript package with no peer-lib baggage.",feat2:"30+ components",feat2Desc:"Layout, form, feedback, and list primitives in one cohesive system.",feat3:"Themeable",feat3Desc:"Swap the whole framework with a single theme key via CSS variables.",feat4:"Dark mode",feat4Desc:"Semantic tokens keep every component reusable across light and dark themes.",footerCopy:"© 2026 vxUI. All rights reserved.",footerPrivacy:"Privacy Policy",loginTitle:"Welcome back",loginSubtitle:"Sign in to access the documentation.",loginEmail:"Email",loginEmailPlaceholder:"you@example.com",loginPassword:"Password",loginPasswordPlaceholder:"At least 8 characters",loginCta:"Sign in",loginNoAccount:"Don't have an account?",loginRegister:"Register",loginGuest:"Continue without an account →",rememberMe:"Remember this device",showPassword:"Show",hidePassword:"Hide",authInfoTitle:"Guest access is available",authInfoBody:"You can go straight to the docs without an account. Sign in only if you want a persisted session example.",registerTitle:"Create account",registerSubtitle:"Get started with vxUI today.",registerName:"Full name",registerNamePlaceholder:"Jane Smith",registerEmail:"Email",registerEmailPlaceholder:"jane@company.com",registerPassword:"Password",registerPasswordPlaceholder:"Create a strong password",registerTermsAgree:"I agree to the",registerTermsLink:"Terms of Service",registerTermsAnd:"and",registerPrivacyLink:"Privacy Policy",registerCta:"Create account",registerHasAccount:"Already have an account?",registerLogin:"Sign in",registerGuest:"Continue without an account →",validationNameRequired:"Enter your full name.",validationNameShort:"Use at least 2 characters for your name.",validationEmailRequired:"Enter your email address.",validationEmailInvalid:"Enter a valid email address.",validationPasswordRequired:"Enter your password.",validationPasswordShort:"Use at least 8 characters for the password.",validationTermsRequired:"You must agree to the terms before creating an account.",sessionLoginTitle:"Signed in",sessionLoginBody:"Your session is active. You can now browse the docs as a signed-in user.",sessionRegisterTitle:"Account created",sessionRegisterBody:"Your sample account is ready and the docs are now unlocked.",sessionGuestTitle:"Browsing as guest",sessionGuestBody:"You entered the docs without a saved account session.",sessionLogoutTitle:"Signed out",sessionLogoutBody:"Your persisted session was cleared. You are back on the public site.",signedInAs:"Signed in as",guestLabel:"Guest",backHome:"← Back to home",backToDocs:"Back to docs"},pageDefs:{introduction:{section:"Introduction",title:"Introduction",description:"A lightweight, dependency-free UI framework for building clean admin interfaces. Design tokens, components, and a minimal SPA runtime live behind one consistent visual language.",guidance:["Start from the shell and navigation rhythm before styling isolated controls.","Keep tokens semantic so a theme swap does not require page-specific overrides.","Treat documentation, examples, and production surfaces as the same design system."]},"quick-start":{section:"Installation",title:"Quick Start",description:"Install the package, wrap your app with providers, and mount a page shell before composing business screens.",guidance:["Import the shared stylesheet once near the application root.","Use AppShell for product chrome and keep page content inside the main slot.","Add ThemeProvider and ToastProvider only when the app needs them."]},"shell-sidebar":{section:"Components",title:"Shell & Sidebar",description:"The shell is responsible for sidebar hierarchy, sticky header spacing, and content width. Pages should inherit structure instead of rebuilding it.",guidance:["Keep navigation labels short so collapsed mode stays scannable.","Use section titles to separate page groups instead of visual noise.","Let the content area own page-specific headings and actions."]},"grid-page":{section:"Components",title:"Grid & Page",description:"Use simple responsive grids for cards, tokens, and documentation blocks. The page surface should stay neutral and let content carry emphasis.",guidance:["Prefer 12 to 16 pixel gaps for dense documentation surfaces.","Reserve larger spacing for section boundaries, not every card.","Keep max width constrained so long paragraphs remain readable."]},button:{section:"Components",title:"Button",description:"Buttons carry the primary action hierarchy for the system. Variants, sizes, and width should communicate intent without requiring extra styling.",guidance:["Use the solid variant for the primary action in a given area.","Use secondary or ghost variants for supporting actions that should stay visually quieter.","Use fullWidth for stacked mobile actions or single-column forms."]},elements:{section:"Components",title:"Elements",description:"Buttons, badges, and cards should feel quiet by default. The primary action can be loud; everything else should support it.",guidance:["One primary action per area is usually enough.","Use badges for compact status or category metadata, not decoration.","Cards should organize content without feeling like dashboards by default."]},"form-controls":{section:"Components",title:"Form Controls",description:"Inputs and switches need strong contrast, clear labels, and predictable vertical rhythm. Expose complexity through composition rather than one giant field component.",guidance:["Always pair form controls with visible labels in admin surfaces.","Short helper text is better than placeholder-only instruction.","Confirm destructive or high-impact actions with dialog affordances."]},navigation:{section:"Components",title:"Navigation",description:"Navigation patterns should communicate location first, then available movement. Tabs work best for sibling views within a single page context.",guidance:["Mirror information architecture in the control structure.","Make the active state obvious without relying on color alone.","Avoid mixing route navigation and local view state in one control."]},"data-list":{section:"Components",title:"Data List",description:"Lists and tables should prioritize scanning over ornament. Use generous alignment, light separators, and action density only where needed.",guidance:["Align headers and row content precisely to reduce visual drift.","Use subtle borders instead of heavy card chrome around every row.","Reserve destructive affordances for row action groups, not inline text links."]},"empty-states":{section:"Components",title:"Empty States",description:"An empty state should explain what is missing, why it matters, and what the next action is. It should never feel like a dead end.",guidance:["Name the object that is absent so users know what they are looking at.","Offer one clear recovery action.","Keep the visual weight lighter than success or alert feedback."]},toasts:{section:"Components",title:"Toasts",description:"Toasts confirm short-lived events without interrupting task flow. Keep them brief, specific, and easy to dismiss.",guidance:["Use success and info to confirm background actions.","Escalate blocking or destructive states to dialogs instead of stacking toasts.","Avoid repeating the same message on every page transition."]},feedback:{section:"Components",title:"Feedback Components",description:"Spinner, Progress, Alert, and Skeleton give users clear signals about loading states, results, and missing content.",guidance:["Use Spinner for short indeterminate waits; Progress for deterministic operations.","Prefer Alert over toast for persistent or page-level status messages.","Skeleton should match the shape of the content it replaces to reduce layout shift."]},overlays:{section:"Components",title:"Overlays",description:"Tooltip, Popover, and DropdownMenu layer transient content above the page without navigating away.",guidance:["Tooltips are for supplementary text only — never interactive content.","Popovers can contain forms and rich content; they require explicit close triggers.","DropdownMenus should group related actions and support keyboard navigation."]},"nav-layout":{section:"Components",title:"Navigation & Layout",description:"Breadcrumb, Pagination, Accordion, and Separator handle location, paging, and structural rhythm.",guidance:["Breadcrumb mirrors route depth — omit it on single-level pages.","Pagination should show page count so users understand the data set size.","Accordion works best for progressive disclosure, not primary navigation."]},"data-display":{section:"Components",title:"Data Display",description:"Avatar and Table present user identity and structured data with clear hierarchy.",guidance:["Avatar should always have an accessible label, even when showing an image.","Table supports sortable columns — delegate sort state up when the data is server-side.","Use striped rows in dense tables to help eyes track across long rows."]},"form-inputs":{section:"Components",title:"Form Inputs",description:"Select, Checkbox, RadioGroup, Textarea, and Slider extend the form vocabulary beyond text inputs.",guidance:["Group radio buttons with RadioGroup to share name and semantics.","Slider is ideal for numeric ranges; pair it with showValue for immediate feedback.","Textarea defaults to vertical resize — disable resize only in fixed-height containers."]},mobile:{section:"Responsive",title:"Responsive Patterns",description:"A single responsive system for phone, tablet, and desktop. One route tree, one content model, and one set of components adapt through layout instead of duplicate applications.",guidance:["Keep the route tree identical across breakpoints; only the shell and density should change.","Turn persistent side navigation into a drawer on narrow screens instead of forking the page implementation.","Design cards, forms, and tables to reflow from three columns to one without changing component ownership."]},"home-page":{section:"Templates",title:"Home Page",description:"A landing-style home page with a hero section, key feature highlights, and primary call-to-action buttons. Suitable for product sites, internal portals, and marketing pages.",guidance:["Keep the hero message to one compelling sentence — let the CTA do the work.","Feature cards should each solve one problem, not list all capabilities.","Balance a primary action with a softer secondary one to reduce decision fatigue."]},"login-page":{section:"Templates",title:"Login Page",description:"A minimal login form centered on the screen. Collect credentials with clear labels, visible error states, and a single primary action.",guidance:["Never hide the password label — placeholder text alone fails accessibility.","Show inline validation errors as soon as the field loses focus.","Offer a password-visible toggle to reduce login friction."]},"register-page":{section:"Templates",title:"Register Page",description:"A registration form that collects the minimum fields needed to create an account. Reduce friction by asking only what is essential at sign-up.",guidance:["Request only name, email, and password at registration — profile details can come later.","Show password strength inline without blocking submission on minor issues.","The terms-of-service checkbox must be explicit; do not pre-check it."]},"error-page":{section:"Templates",title:"Error Page",description:"A graceful fallback for 404, 500, and other error states. Give users a clear explanation and a direct path back to safety.",guidance:["State the error code and a plain-language explanation — avoid technical jargon.","Always provide a go-home action alongside a go-back option.","Match the error page visual weight to the rest of the product, not a generic OS page."]},"privacy-policy":{section:"Templates",title:"Privacy Policy",description:"A structured legal document page with section headings, readable prose, and clear separators. Designed to remain accessible and scannable without sacrificing completeness.",guidance:["Use headings to break long policy text into scannable sections.","Link directly to the relevant section from any consent flow that references the policy.","Version and date the policy at the top so users know when it was last updated."]},"terms-of-service":{section:"Templates",title:"Terms of Service",description:"A service terms page with clear headings, plain-language obligations, and a layout that stays readable from narrow phones to wide desktop viewports.",guidance:["State the usage permission, limitations, and disclaimer in separate sections to reduce legal ambiguity.","Keep the document scannable with short paragraphs and a compact summary rail.","Link to the terms directly from registration and pricing flows so consent is contextual."]},"command-palette":{section:"Components",title:"Command Palette",description:"A keyboard-driven search overlay that lets users jump to any page or action without leaving the keyboard. Render it globally, wire a hotkey, then pass a flat list of entries.",guidance:["Keep the entries list flat and label-searchable — avoid nesting pages under hidden categories.","Populate entries from the same nav data you use for the sidebar so the two surfaces stay in sync.","Combine with ⌘K (Mac) or Ctrl+K (Windows) for a familiar shortcut that power users expect."]},"code-block":{section:"Components",title:"Code Block",description:"A syntax-highlighted, read-only code display with optional filename label. Use it to render installation snippets, usage examples, or any formatted code string.",guidance:["Set the language prop to the language of the code — tsx, bash, json, etc. — for correct highlighting.","Pass a filename to give readers context on where the snippet belongs in a project.","Keep code snippets minimal; show only the lines needed to illustrate the concept being documented."]},"language-switcher":{section:"Components",title:"Language Switcher",description:"A locale toggle component that updates the entire UI copy when clicked. Drop it into any topbar or settings area — the i18n provider broadcasts the change automatically.",guidance:["Place the switcher in a persistent surface (topbar or settings page) so users can find it from anywhere.","The switcher reflects the current locale; no extra state wiring is needed beyond the i18n provider.","Use the inline variant for topbars and the default variant for settings pages to match visual density."]}}},Fl={locale:"zh",label:"中文",searchPlaceholder:"搜索组件、页面、关键词…",searchAriaLabel:"搜索",searchEmpty:e=>`未找到与"${e}"匹配的结果`,searchNavigate:"导航",searchGo:"跳转",searchClose:"关闭",sidebarCollapse:"收起",sidebarExpand:"展开",sidebarCloseLabel:"关闭侧边栏",searchTrigger:"搜索",versionLabel:"v1.1.1",mobilePreview:"移动端预览",nav:{gettingStarted:"开始使用",layout:"布局",components:"组件",feedback:"反馈",navigation:"导航",mobile:"响应式",templates:"模板"},pages:{introduction:"简介","quick-start":"快速开始","shell-sidebar":"框架与侧边栏","grid-page":"网格与页面",button:"按钮",elements:"基础元素","form-controls":"表单控件","form-inputs":"表单输入",overlays:"浮层","data-display":"数据展示",navigation:"导航","data-list":"数据列表","empty-states":"空状态",toasts:"消息提示",feedback:"反馈组件","nav-layout":"导航与布局",mobile:"移动端组件","command-palette":"命令面板","code-block":"代码块","language-switcher":"语言切换器","home-page":"主页","login-page":"登录页","register-page":"注册页","error-page":"错误页","privacy-policy":"隐私政策","terms-of-service":"服务条款"},docs:{guidance:"使用指南",guidanceDesc:"保持实现简洁,让设计系统完成大部分视觉工作。",preview:"预览",previewDesc:"该区域在系统中呈现效果的精简示例。",notes:"备注",primaryTheme:"主色调",primaryThemeDesc:"蓝灰色中性调将视觉重点保留给操作,而非装饰。",tokenScale:"Token 体系",tokenScaleDesc:"在引入页面特定样式之前,优先复用共享的 surface、border 和 text 变量。",themeStudio:"主题工作室",themeStudioDesc:"一次注册命名主题,用单个 key 即可切换所有组件。",liveControls:"交互控件",liveControlsDesc:"文档界面中仍有若干可复用的基础原语。",searchDocs:"搜索文档",searchDocsPlaceholder:"按钮、Token、布局…",compactDensity:"紧凑模式",compactDensityDesc:"收紧垂直间距,适合高密度操作界面。",systemPreview:"系统预览",openSection:"打开章节"},intro:{tagline:"一个轻量无依赖的 UI 框架,用于构建简洁的后台管理界面。设计 Token、组件和极简 SPA 运行时,统一在一套一致的视觉语言之下。",getStarted:"开始使用",browseComponents:"浏览组件",atAGlance:"概览",designTokens:"设计 Token",designTokensLead:"所有颜色、间距和字体值均以 vx 命名空间下的 CSS 自定义属性暴露。一次注册命名的亮色和暗色主题,之后通过主题 key 即可切换整个框架。",componentFamilies:"组件系列"},glance:{zeroDeps:"零依赖",zeroDepsHint:"原始 shell 运行时无需构建流水线。",components:"组件数",componentsHint:"布局、表单、反馈和列表原语,一套搞定。",coreCSS:"核心 CSS",coreCSSHint:"中性 Token 和结构样式保持精简。",darkMode:"深色模式",darkModeHint:"语义变量让相同组件可在多主题下复用。"},tokens:{primary:"主色",primaryDesc:"用于主要操作、活跃导航和强调的点缀色。",surface:"表面色",surfaceDesc:"文档卡片和框架区域的默认面板与内容背景色。",border:"边框色",borderDesc:"保持 UI 结构清晰且不增加视觉重量的轻量分隔色。",text:"文字色",textDesc:"用于标题、密集数据和正文的主前景色。"},families:{layout:"布局",layoutDesc:"应用框架、固定顶栏、章节节奏和响应式内容框架。",elements:"基础元素",elementsDesc:"用于操作、元数据和结构化内容块的低调原语。",forms:"表单",formsDesc:"输入框、开关、对话框和字段组合模式。",feedback:"反馈",feedbackDesc:"短暂的消息提示与打断性确认流程。"},dataList:{name:"名称",kind:"类型",updated:"更新时间"},modeLabel:e=>`${{light:"浅色",dark:"深色",black:"纯黑"}[e]??e}模式`,publicPages:{navLogin:"登录",navSignup:"注册",navDocs:"文档",navLogout:"退出登录",heroTag:"最新 · v1.0",heroTitle:"用 vxUI 构建更快",heroLead:"一个轻量无依赖的 UI 框架,用于构建简洁的后台管理界面。设计 Token、组件和极简 SPA 运行时,统一在一套一致的视觉语言之下。",heroCta:"立即开始",heroCtaAlt:"浏览文档",previewLead:"一个面向生产场景的文档入口,支持直接访客访问、持久化登录状态,以及适配移动端的页面布局。",previewAccessTitle:"访问方式",previewAccessMember:"登录后可保留会话状态,下次返回时继续进入你的工作区。",previewAccessGuest:"如果只是查看组件,也可以直接以访客身份打开文档。",previewMobileTitle:"移动端可用",previewMobileLead:"导航和认证布局会在手机上自然折叠,不牺牲层级关系和关键行动按钮。",featuresSectionTitle:"为什么选择 vxUI",feat1:"零依赖",feat1Desc:"纯 CSS + TypeScript 包,无第三方依赖负担。",feat2:"30+ 组件",feat2Desc:"布局、表单、反馈和列表原语,一套搞定。",feat3:"可主题化",feat3Desc:"通过 CSS 变量,用单个主题 key 切换整个框架。",feat4:"深色模式",feat4Desc:"语义 Token 让每个组件在各主题下均可复用。",footerCopy:"© 2026 vxUI. 保留所有权利。",footerPrivacy:"隐私政策",loginTitle:"欢迎回来",loginSubtitle:"登录以访问文档。",loginEmail:"邮箱",loginEmailPlaceholder:"you@example.com",loginPassword:"密码",loginPasswordPlaceholder:"至少 8 位字符",loginCta:"登录",loginNoAccount:"还没有账号?",loginRegister:"注册",loginGuest:"无需登录,直接继续 →",rememberMe:"记住这台设备",showPassword:"显示",hidePassword:"隐藏",authInfoTitle:"支持访客访问",authInfoBody:"如果你只是想查看文档,可以不登录直接进入。登录仅用于演示持久化会话的真实流程。",registerTitle:"创建账号",registerSubtitle:"立即开始使用 vxUI。",registerName:"姓名",registerNamePlaceholder:"张三",registerEmail:"邮箱",registerEmailPlaceholder:"zhangsan@company.com",registerPassword:"密码",registerPasswordPlaceholder:"创建一个强密码",registerTermsAgree:"我同意",registerTermsLink:"服务条款",registerTermsAnd:"和",registerPrivacyLink:"隐私政策",registerCta:"创建账号",registerHasAccount:"已有账号?",registerLogin:"登录",registerGuest:"无需登录,直接继续 →",validationNameRequired:"请输入你的姓名。",validationNameShort:"姓名至少需要 2 个字符。",validationEmailRequired:"请输入邮箱地址。",validationEmailInvalid:"请输入有效的邮箱地址。",validationPasswordRequired:"请输入密码。",validationPasswordShort:"密码至少需要 8 位字符。",validationTermsRequired:"创建账号前必须同意条款。",sessionLoginTitle:"已登录",sessionLoginBody:"你的会话已生效,现在可以以登录用户身份查看文档。",sessionRegisterTitle:"账号已创建",sessionRegisterBody:"示例账号已创建完成,文档后台现已可用。",sessionGuestTitle:"当前为访客模式",sessionGuestBody:"你正在无账号状态下浏览文档。",sessionLogoutTitle:"已退出登录",sessionLogoutBody:"持久化会话已清除,你已返回公共首页。",signedInAs:"当前登录",guestLabel:"访客",backHome:"← 返回首页",backToDocs:"返回文档"},pageDefs:{introduction:{section:"介绍",title:"简介",description:"一个轻量无依赖的 UI 框架,用于构建简洁的后台管理界面。设计 Token、组件和极简 SPA 运行时,统一在一套一致的视觉语言之下。",guidance:["先从框架和导航节奏开始,再对独立控件进行样式调整。","保持 Token 语义化,主题切换时无需逐页覆盖样式。","将文档、示例和生产界面视为同一套设计系统。"]},"quick-start":{section:"安装",title:"快速开始",description:"安装包,用 Provider 包裹应用,在组合业务页面前先挂载页面框架。",guidance:["在应用根组件附近统一引入共享样式表。","使用 AppShell 承载产品外壳,页面内容保持在 main 插槽内。","仅在应用需要时才添加 ThemeProvider 和 ToastProvider。"]},"shell-sidebar":{section:"组件",title:"框架与侧边栏",description:"Shell 负责侧边栏层级、固定顶栏间距和内容宽度。页面应继承结构而非重新构建。",guidance:["保持导航标签简短,以确保折叠模式下仍可快速扫读。","使用章节标题分隔页面分组,而非添加视觉噪音。","让内容区域自行管理页面特定的标题和操作。"]},"grid-page":{section:"组件",title:"网格与页面",description:"为卡片、Token 和文档块使用简单的响应式网格。页面表面应保持中性,由内容承载视觉重点。",guidance:["在密集文档界面中优先使用 12 至 16 像素的间距。","较大间距应保留给章节边界,而非每张卡片。","限制最大宽度,确保长段落保持可读性。"]},button:{section:"组件",title:"按钮",description:"按钮承担系统中的主操作层级。变体、尺寸和宽度应该直接表达操作意图,而不需要额外拼样式。",guidance:["在同一区域内,实心按钮通常只保留给一个主操作。","次级和幽灵按钮更适合辅助动作,避免和主操作竞争视觉优先级。","在移动端单列布局或堆叠表单中,优先使用 fullWidth 提升点击面积。"]},elements:{section:"组件",title:"基础元素",description:"按钮、徽章和卡片默认应保持低调。主要操作可以突出,其余元素应配合支撑。",guidance:["每个区域通常一个主操作就足够了。","徽章用于紧凑的状态或分类元数据,而非纯装饰。","卡片应组织内容,默认不应有仪表盘的感觉。"]},"form-controls":{section:"组件",title:"表单控件",description:"输入框和开关需要强对比度、清晰标签和可预测的垂直节奏。通过组合而非一个巨型字段组件来暴露复杂性。",guidance:["在管理界面中,表单控件始终应配有可见标签。","简短的辅助文本优于仅依赖 placeholder 的说明。","对破坏性或高影响操作使用对话框进行确认。"]},navigation:{section:"组件",title:"导航",description:"导航模式应首先传达位置,其次才是可用的移动方向。Tabs 最适合在单个页面上下文中切换兄弟视图。",guidance:["在控件结构中镜像信息架构。","使活跃状态明显,而不仅依赖颜色。","避免在一个控件中混用路由导航和本地视图状态。"]},"data-list":{section:"组件",title:"数据列表",description:"列表和表格应优先考虑扫读效率而非装饰。使用宽松的对齐、轻量分隔线,仅在需要时增加操作密度。",guidance:["精确对齐表头和行内容,减少视觉偏移。","使用细微边框而非为每一行添加重型卡片外壳。","将破坏性操作保留在行操作组中,而非内联文字链接。"]},"empty-states":{section:"组件",title:"空状态",description:"空状态应解释缺少什么、为何重要以及下一步操作是什么。它不应让用户感到走投无路。",guidance:["指明缺失的对象,让用户清楚自己在看什么。","提供一个清晰的恢复操作。","视觉重量应轻于成功或警告反馈。"]},toasts:{section:"组件",title:"消息提示",description:"Toast 在不打断任务流程的情况下确认短暂事件。保持简洁、具体且易于关闭。",guidance:["使用 success 和 info 确认后台操作。","将阻塞性或破坏性状态升级为对话框,而非堆叠 Toast。","避免在每次页面切换时重复相同消息。"]},feedback:{section:"组件",title:"反馈组件",description:"Spinner、Progress、Alert 和 Skeleton 为用户提供关于加载状态、结果和缺失内容的清晰信号。",guidance:["对短暂的不确定等待使用 Spinner;对确定性操作使用 Progress。","对持久性或页面级状态消息,优先使用 Alert 而非 Toast。","Skeleton 应与其替代内容的形状匹配,以减少布局偏移。"]},overlays:{section:"组件",title:"浮层",description:"Tooltip、Popover 和 DropdownMenu 在页面上方叠加临时内容,无需跳转。",guidance:["Tooltip 仅用于补充文本,绝不放置可交互内容。","Popover 可包含表单和富内容;需要明确的关闭触发器。","DropdownMenu 应对相关操作分组,并支持键盘导航。"]},"nav-layout":{section:"组件",title:"导航与布局",description:"Breadcrumb、Pagination、Accordion 和 Separator 处理位置、分页和结构节奏。",guidance:["Breadcrumb 反映路由深度——单层页面可省略。","Pagination 应显示总页数,让用户了解数据集大小。","Accordion 最适合渐进式披露,而非主导航。"]},"data-display":{section:"组件",title:"数据展示",description:"Avatar 和 Table 以清晰的层级呈现用户身份和结构化数据。",guidance:["Avatar 即使在显示图片时也应始终具有无障碍标签。","Table 支持可排序列——数据来自服务端时应将排序状态提升。","在密集表格中使用斑马纹,帮助视线跨列追踪。"]},"form-inputs":{section:"组件",title:"表单输入",description:"Select、Checkbox、RadioGroup、Textarea 和 Slider 将表单词汇扩展到文本输入之外。",guidance:["使用 RadioGroup 包裹单选按钮,共享 name 和语义。","Slider 适合数值范围;配合 showValue 可获得即时反馈。","Textarea 默认纵向可拖拽——仅在固定高度容器中禁用 resize。"]},mobile:{section:"响应式",title:"响应式布局",description:"一套同时覆盖手机、平板与桌面的响应式系统。通过布局与密度变化适配不同设备,而不是维护两套应用与两套页面树。",guidance:["保持所有断点上的路由树一致,只调整壳层结构和内容密度。","在窄屏上把常驻侧边导航转成抽屉,而不是复制一套页面实现。","让卡片、表单和表格从三列到单列平滑重排,不改变组件归属。"]},"home-page":{section:"模板",title:"主页",description:"带有 Hero 区块、核心功能亮点和主要行动召唤按钮的落地式主页。适用于产品官网、内部门户和营销页面。",guidance:["Hero 信息保持一句话——让行动召唤按钮来完成说服工作。","功能卡片各自聚焦一个问题,而非罗列所有能力。","主操作与次操作相配合,降低用户决策疲劳。"]},"login-page":{section:"模板",title:"登录页",description:"居中的极简登录表单。清晰的标签、可见的错误状态和单一主操作,降低登录摩擦。",guidance:["不要隐藏密码标签——仅靠 placeholder 无法满足无障碍要求。","字段失去焦点后立即显示内联校验错误。","提供密码可见切换,降低登录摩擦。"]},"register-page":{section:"模板",title:"注册页",description:"只收集创建账号所需最少字段的注册表单。通过仅询问必要信息来降低注册阻力。",guidance:["注册时只需姓名、邮箱和密码——个人资料可在之后完善。","内联显示密码强度,但不因细微问题阻止提交。","服务条款复选框必须明确,不得预先勾选。"]},"error-page":{section:"模板",title:"错误页",description:"404、500 及其他错误状态的优雅降级页面。给用户清晰的解释和直接返回的路径。",guidance:["说明错误码和通俗解释——避免技术术语。",'始终提供"返回首页"和"后退"两个操作。',"错误页的视觉风格应与产品保持一致,而非系统默认页。"]},"privacy-policy":{section:"模板",title:"隐私政策",description:"带有章节标题、可读段落和清晰分隔线的结构化法律文档页面。在不牺牲完整性的前提下保持无障碍和可扫读性。",guidance:["使用标题将长篇政策文本分成可扫读的章节。","从任何引用政策的同意流程中直接链接到相关章节。","在顶部注明政策版本和日期,让用户了解最近更新时间。"]},"terms-of-service":{section:"模板",title:"服务条款",description:"具备清晰标题、通俗义务说明且在手机到桌面端都保持可读性的服务条款页面。",guidance:["将许可范围、使用限制和免责声明拆成独立段落,降低法律歧义。","正文使用短段落与摘要侧栏,保证长文档依旧可扫读。","在注册和定价流程中直接链接条款页面,让同意动作具备上下文。"]},"command-palette":{section:"组件",title:"命令面板",description:"键盘驱动的搜索浮层,让用户无需离开键盘即可跳转到任意页面或触发任意操作。全局挂载、绑定快捷键,传入扁平的条目列表即可使用。",guidance:["保持条目列表扁平且按标签可搜索——避免隐藏分类嵌套。","从侧边栏导航数据同步填充条目,确保两个入口保持一致。","绑定 ⌘K(Mac)或 Ctrl+K(Windows)快捷键,满足高频用户的操作预期。"]},"code-block":{section:"组件",title:"代码块",description:"带语法高亮的只读代码展示组件,支持可选的文件名标签。用于渲染安装步骤、用法示例或任意格式化的代码字符串。",guidance:["通过 language 属性指定代码语言(tsx、bash、json 等),以获得正确高亮。","传入 filename 可为读者提供该代码片段在项目中所属位置的上下文。","保持示例代码精简——只展示说明当前概念所需的最少行数。"]},"language-switcher":{section:"组件",title:"语言切换器",description:"点击后即可更新整套 UI 文案的语言切换组件。放入任意顶栏或设置区域——i18n Provider 会自动广播变更,无需额外状态绑定。",guidance:["将切换器放置在持久性界面(顶栏或设置页)中,方便用户在任何位置找到它。","切换器自动反映当前语言,除 i18n Provider 外无需额外的状态绑定。","顶栏中使用 inline 变体,设置页中使用默认变体,以匹配对应场景的视觉密度。"]}}},Yt={en:Dr,zh:Fl},Dl=N.createContext({t:Dr,locale:"en",setLocale:()=>{}});function Il(){return N.useContext(Dl)}function Ll({variant:e="inline",className:t}){const{locale:n,setLocale:a}=Il(),s=Object.entries(Yt),o=Yt[n],[l,i]=N.useState(!1),u=N.useRef(null);N.useEffect(()=>{if(!l)return;const d=p=>{u.current&&!u.current.contains(p.target)&&i(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[l]),N.useEffect(()=>{if(!l)return;const d=p=>{p.key==="Escape"&&i(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[l]);const c=e==="sidebar";return r.jsxs("div",{ref:u,className:E("vx-lang-drop",c&&"vx-lang-drop--sidebar",l&&"vx-lang-drop--open",t),children:[r.jsxs(Q,{variant:"outline",size:"sm",onClick:()=>i(d=>!d),"aria-haspopup":"listbox","aria-expanded":l,"aria-label":"Switch language",className:"vx-lang-drop__trigger-btn",style:{height:"36px"},children:[r.jsx(ea,{size:14,"aria-hidden":"true"}),(o==null?void 0:o.label)??n,r.jsx(st,{size:14,className:"vx-lang-drop__chevron","aria-hidden":"true"})]}),l&&r.jsx("ul",{className:"vx-lang-drop__menu",role:"listbox","aria-label":"Language",children:s.map(([d,p])=>r.jsx("li",{role:"option","aria-selected":n===d,children:r.jsxs("button",{type:"button",className:E("vx-lang-drop__item",n===d&&"vx-lang-drop__item--active"),onClick:()=>{a(d),i(!1)},children:[p.label,n===d&&r.jsx("span",{className:"vx-lang-drop__check","aria-hidden":"true",children:"✓"})]})},d))})]})}exports.Accordion=Ni;exports.ActionSheet=Ii;exports.ActionSheetItem=Li;exports.Alert=gi;exports.AlertDialog=qi;exports.AppShell=oa;exports.Avatar=Ti;exports.Badge=ia;exports.BottomNav=Di;exports.Breadcrumb=ki;exports.Button=Q;exports.Calendar=Rr;exports.Card=la;exports.CardContent=pa;exports.CardDescription=da;exports.CardHeader=ca;exports.CardTitle=ua;exports.Carousel=ml;exports.Checkbox=li;exports.CodeBlock=Rl;exports.ColorPicker=wl;exports.Combobox=nl;exports.CommandPalette=El;exports.ContextMenu=ll;exports.DatePicker=tl;exports.Dialog=Us;exports.DrawerNavItem=zi;exports.DrawerNavSection=Ui;exports.DropdownMenu=_i;exports.EmptyState=vl;exports.FileUpload=rl;exports.Form=Wi;exports.FormDescription=Vi;exports.FormField=Gi;exports.FormLabel=Ki;exports.FormMessage=Yi;exports.Heading=oi;exports.HoverCard=cl;exports.Input=Hs;exports.Label=Hi;exports.LanguageSwitcher=Ll;exports.Menubar=ul;exports.MobileDrawer=Bi;exports.MobileIconButton=Fi;exports.MobileList=Mi;exports.MobileListItem=$i;exports.MobileListSection=Oi;exports.MobileShell=Pi;exports.MobileTopBar=Ri;exports.NavigationMenu=dl;exports.NumberInput=Xi;exports.Pagination=Si;exports.Popover=yi;exports.Progress=mi;exports.Radio=ci;exports.RadioGroup=ui;exports.Rating=gl;exports.ResizableHandle=Nl;exports.ResizablePanel=Sl;exports.ResizablePanelGroup=kl;exports.Responsive=$r;exports.ScrollArea=sl;exports.Select=ii;exports.Separator=ji;exports.Sheet=al;exports.Shell=an;exports.ShellContent=fn;exports.ShellMain=dn;exports.ShellNav=on;exports.ShellNavItem=cn;exports.ShellNavSection=ln;exports.ShellOverlay=un;exports.ShellSidebar=sn;exports.ShellTopbar=pn;exports.Skeleton=xi;exports.Slider=pi;exports.Spinner=vi;exports.Stepper=pl;exports.Switch=Qs;exports.Table=Ai;exports.Tabs=bo;exports.TabsContent=wo;exports.TabsList=yo;exports.TabsTrigger=_o;exports.TagInput=bl;exports.Text=si;exports.Textarea=di;exports.ThemeProvider=Co;exports.Timeline=fl;exports.ToastProvider=ri;exports.Toggle=ol;exports.ToggleGroup=il;exports.Tooltip=bi;exports.TreeView=xl;exports.ViewportProvider=Or;exports.createTheme=H;exports.themePresets=ko;exports.useFormField=Pr;exports.useTheme=To;exports.useToast=ai;exports.useViewport=rt;
127
+ */var n=(function(a){var s=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,l={},i={manual:a.Prism&&a.Prism.manual,disableWorkerMessageHandler:a.Prism&&a.Prism.disableWorkerMessageHandler,util:{encode:function m(v){return v instanceof u?new u(v.type,m(v.content),v.alias):Array.isArray(v)?v.map(m):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(m){return Object.prototype.toString.call(m).slice(8,-1)},objId:function(m){return m.__id||Object.defineProperty(m,"__id",{value:++o}),m.__id},clone:function m(v,f){f=f||{};var y,S;switch(i.util.type(v)){case"Object":if(S=i.util.objId(v),f[S])return f[S];y={},f[S]=y;for(var N in v)v.hasOwnProperty(N)&&(y[N]=m(v[N],f));return y;case"Array":return S=i.util.objId(v),f[S]?f[S]:(y=[],f[S]=y,v.forEach(function(C,T){y[T]=m(C,f)}),y);default:return v}},getLanguage:function(m){for(;m;){var v=s.exec(m.className);if(v)return v[1].toLowerCase();m=m.parentElement}return"none"},setLanguage:function(m,v){m.className=m.className.replace(RegExp(s,"gi"),""),m.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(y){var m=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(y.stack)||[])[1];if(m){var v=document.getElementsByTagName("script");for(var f in v)if(v[f].src==m)return v[f]}return null}},isActive:function(m,v,f){for(var y="no-"+v;m;){var S=m.classList;if(S.contains(v))return!0;if(S.contains(y))return!1;m=m.parentElement}return!!f}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(m,v){var f=i.util.clone(i.languages[m]);for(var y in v)f[y]=v[y];return f},insertBefore:function(m,v,f,y){y=y||i.languages;var S=y[m],N={};for(var C in S)if(S.hasOwnProperty(C)){if(C==v)for(var T in f)f.hasOwnProperty(T)&&(N[T]=f[T]);f.hasOwnProperty(C)||(N[C]=S[C])}var P=y[m];return y[m]=N,i.languages.DFS(i.languages,function(R,A){A===P&&R!=m&&(this[R]=N)}),N},DFS:function m(v,f,y,S){S=S||{};var N=i.util.objId;for(var C in v)if(v.hasOwnProperty(C)){f.call(v,C,v[C],y||C);var T=v[C],P=i.util.type(T);P==="Object"&&!S[N(T)]?(S[N(T)]=!0,m(T,f,null,S)):P==="Array"&&!S[N(T)]&&(S[N(T)]=!0,m(T,f,C,S))}}},plugins:{},highlightAll:function(m,v){i.highlightAllUnder(document,m,v)},highlightAllUnder:function(m,v,f){var y={callback:f,container:m,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",y),y.elements=Array.prototype.slice.apply(y.container.querySelectorAll(y.selector)),i.hooks.run("before-all-elements-highlight",y);for(var S=0,N;N=y.elements[S++];)i.highlightElement(N,v===!0,y.callback)},highlightElement:function(m,v,f){var y=i.util.getLanguage(m),S=i.languages[y];i.util.setLanguage(m,y);var N=m.parentElement;N&&N.nodeName.toLowerCase()==="pre"&&i.util.setLanguage(N,y);var C=m.textContent,T={element:m,language:y,grammar:S,code:C};function P(A){T.highlightedCode=A,i.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,i.hooks.run("after-highlight",T),i.hooks.run("complete",T),f&&f.call(T.element)}if(i.hooks.run("before-sanity-check",T),N=T.element.parentElement,N&&N.nodeName.toLowerCase()==="pre"&&!N.hasAttribute("tabindex")&&N.setAttribute("tabindex","0"),!T.code){i.hooks.run("complete",T),f&&f.call(T.element);return}if(i.hooks.run("before-highlight",T),!T.grammar){P(i.util.encode(T.code));return}if(v&&a.Worker){var R=new Worker(i.filename);R.onmessage=function(A){P(A.data)},R.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else P(i.highlight(T.code,T.grammar,T.language))},highlight:function(m,v,f){var y={code:m,grammar:v,language:f};if(i.hooks.run("before-tokenize",y),!y.grammar)throw new Error('The language "'+y.language+'" has no grammar.');return y.tokens=i.tokenize(y.code,y.grammar),i.hooks.run("after-tokenize",y),u.stringify(i.util.encode(y.tokens),y.language)},tokenize:function(m,v){var f=v.rest;if(f){for(var y in f)v[y]=f[y];delete v.rest}var S=new p;return b(S,S.head,m),d(m,S,v,S.head,0),j(S)},hooks:{all:{},add:function(m,v){var f=i.hooks.all;f[m]=f[m]||[],f[m].push(v)},run:function(m,v){var f=i.hooks.all[m];if(!(!f||!f.length))for(var y=0,S;S=f[y++];)S(v)}},Token:u};a.Prism=i;function u(m,v,f,y){this.type=m,this.content=v,this.alias=f,this.length=(y||"").length|0}u.stringify=function m(v,f){if(typeof v=="string")return v;if(Array.isArray(v)){var y="";return v.forEach(function(P){y+=m(P,f)}),y}var S={type:v.type,content:m(v.content,f),tag:"span",classes:["token",v.type],attributes:{},language:f},N=v.alias;N&&(Array.isArray(N)?Array.prototype.push.apply(S.classes,N):S.classes.push(N)),i.hooks.run("wrap",S);var C="";for(var T in S.attributes)C+=" "+T+'="'+(S.attributes[T]||"").replace(/"/g,"&quot;")+'"';return"<"+S.tag+' class="'+S.classes.join(" ")+'"'+C+">"+S.content+"</"+S.tag+">"};function c(m,v,f,y){m.lastIndex=v;var S=m.exec(f);if(S&&y&&S[1]){var N=S[1].length;S.index+=N,S[0]=S[0].slice(N)}return S}function d(m,v,f,y,S,N){for(var C in f)if(!(!f.hasOwnProperty(C)||!f[C])){var T=f[C];T=Array.isArray(T)?T:[T];for(var P=0;P<T.length;++P){if(N&&N.cause==C+","+P)return;var R=T[P],A=R.inside,D=!!R.lookbehind,F=!!R.greedy,O=R.alias;if(F&&!R.pattern.global){var $=R.pattern.toString().match(/[imsuy]*$/)[0];R.pattern=RegExp(R.pattern.source,$+"g")}for(var Y=R.pattern||R,M=y.next,B=S;M!==v.tail&&!(N&&B>=N.reach);B+=M.value.length,M=M.next){var X=M.value;if(v.length>m.length)return;if(!(X instanceof u)){var te=1,z;if(F){if(z=c(Y,B,m,D),!z||z.index>=m.length)break;var me=z.index,ne=z.index+z[0].length,W=B;for(W+=M.value.length;me>=W;)M=M.next,W+=M.value.length;if(W-=M.value.length,B=W,M.value instanceof u)continue;for(var ue=M;ue!==v.tail&&(W<ne||typeof ue.value=="string");ue=ue.next)te++,W+=ue.value.length;te--,X=m.slice(B,W),z.index-=B}else if(z=c(Y,0,X,D),!z)continue;var me=z.index,he=z[0],Oe=X.slice(0,me),St=X.slice(me+he.length),$e=B+X.length;N&&$e>N.reach&&(N.reach=$e);var ge=M.prev;Oe&&(ge=b(v,ge,Oe),B+=Oe.length),w(v,ge,te);var Mr=new u(C,A?i.tokenize(he,A):he,O,he);if(M=b(v,ge,Mr),St&&b(v,M,St),te>1){var Be={cause:C+","+P,reach:$e};d(m,v,f,M.prev,B,Be),N&&Be.reach>N.reach&&(N.reach=Be.reach)}}}}}}function p(){var m={value:null,prev:null,next:null},v={value:null,prev:m,next:null};m.next=v,this.head=m,this.tail=v,this.length=0}function b(m,v,f){var y=v.next,S={value:f,prev:v,next:y};return v.next=S,y.prev=S,m.length++,S}function w(m,v,f){for(var y=v.next,S=0;S<f&&y!==m.tail;S++)y=y.next;v.next=y,y.prev=v,m.length-=S}function j(m){for(var v=[],f=m.head.next;f!==m.tail;)v.push(f.value),f=f.next;return v}if(!a.document)return a.addEventListener&&(i.disableWorkerMessageHandler||a.addEventListener("message",function(m){var v=JSON.parse(m.data),f=v.language,y=v.code,S=v.immediateClose;a.postMessage(i.highlight(y,i.languages[f],f)),S&&a.close()},!1)),i;var g=i.util.currentScript();g&&(i.filename=g.src,g.hasAttribute("data-manual")&&(i.manual=!0));function h(){i.manual||i.highlightAll()}if(!i.manual){var _=document.readyState;_==="loading"||_==="interactive"&&g&&g.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return i})(t);e.exports&&(e.exports=n),typeof Vt<"u"&&(Vt.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(a){a.type==="entity"&&(a.attributes.title=a.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(s,o){var l={};l["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};i["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var u={};u[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:i},n.languages.insertBefore("markup","cdata",u)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(a,s){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+a+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:n.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,(function(a){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;a.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+s.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},a.languages.css.atrule.inside.rest=a.languages.css;var o=a.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,(function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var a="Loading…",s=function(g,h){return"✖ Error "+g+" while fetching file: "+h},o="✖ Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},i="data-src-status",u="loading",c="loaded",d="failed",p="pre[data-src]:not(["+i+'="'+c+'"]):not(['+i+'="'+u+'"])';function b(g,h,_){var m=new XMLHttpRequest;m.open("GET",g,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?h(m.responseText):m.status>=400?_(s(m.status,m.statusText)):_(o))},m.send(null)}function w(g){var h=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(g||"");if(h){var _=Number(h[1]),m=h[2],v=h[3];return m?v?[_,Number(v)]:[_,void 0]:[_,_]}}n.hooks.add("before-highlightall",function(g){g.selector+=", "+p}),n.hooks.add("before-sanity-check",function(g){var h=g.element;if(h.matches(p)){g.code="",h.setAttribute(i,u);var _=h.appendChild(document.createElement("CODE"));_.textContent=a;var m=h.getAttribute("data-src"),v=g.language;if(v==="none"){var f=(/\.(\w+)$/.exec(m)||[,"none"])[1];v=l[f]||f}n.util.setLanguage(_,v),n.util.setLanguage(h,v);var y=n.plugins.autoloader;y&&y.loadLanguages(v),b(m,function(S){h.setAttribute(i,c);var N=w(h.getAttribute("data-range"));if(N){var C=S.split(/\r\n?|\n/g),T=N[0],P=N[1]==null?C.length:N[1];T<0&&(T+=C.length),T=Math.max(0,Math.min(T-1,C.length)),P<0&&(P+=C.length),P=Math.max(0,Math.min(P,C.length)),S=C.slice(T,P).join(`
128
+ `),h.hasAttribute("data-start")||h.setAttribute("data-start",String(T+1))}_.textContent=S,n.highlightElement(_)},function(S){h.setAttribute(i,d),_.textContent=S})}}),n.plugins.fileHighlight={highlight:function(h){for(var _=(h||document).querySelectorAll(p),m=0,v;v=_[m++];)n.highlightElement(v)}};var j=!1;n.fileHighlight=function(){j||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),j=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}})()})(Ze)),Ze.exports}var Fl=Rl();const Ne=Pl(Fl);Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity;Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup;Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))});Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};s["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:s},Prism.languages.insertBefore("markup","cdata",o)}});Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Prism.languages.html=Prism.languages.markup;Prism.languages.mathml=Prism.languages.markup;Prism.languages.svg=Prism.languages.markup;Prism.languages.xml=Prism.languages.extend("markup",{});Prism.languages.ssml=Prism.languages.xml;Prism.languages.atom=Prism.languages.xml;Prism.languages.rss=Prism.languages.xml;Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Prism.languages.js=Prism.languages.javascript;(function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function o(u,c){return u=u.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return a}).replace(/<SPREAD>/g,function(){return s}),RegExp(u,c)}s=o(s).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=o(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:o(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:o(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var l=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(l).join(""):""},i=function(u){for(var c=[],d=0;d<u.length;d++){var p=u[d],b=!1;if(typeof p!="string"&&(p.type==="tag"&&p.content[0]&&p.content[0].type==="tag"?p.content[0].content[0].content==="</"?c.length>0&&c[c.length-1].tagName===l(p.content[0].content[1])&&c.pop():p.content[p.content.length-1].content==="/>"||c.push({tagName:l(p.content[0].content[1]),openedBraces:0}):c.length>0&&p.type==="punctuation"&&p.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?c[c.length-1].openedBraces--:b=!0),(b||typeof p=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var w=l(p);d<u.length-1&&(typeof u[d+1]=="string"||u[d+1].type==="plain-text")&&(w+=l(u[d+1]),u.splice(d+1,1)),d>0&&(typeof u[d-1]=="string"||u[d-1].type==="plain-text")&&(w=l(u[d-1])+w,u.splice(d-1,1),d--),u[d]=new e.Token("plain-text",w,null,w)}p.content&&typeof p.content!="string"&&i(p.content)}};e.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||i(u.tokens)})})(Prism);var qt={},Yt;function Dl(){return Yt||(Yt=1,(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism)),qt}Dl();(function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0})(Prism);(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=a.variable[1].inside,l=0;l<s.length;l++)o[s[l]]=e.languages.bash[s[l]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash})(Prism);Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}};Prism.languages.webmanifest=Prism.languages.json;function Il({code:e,language:t="tsx",copyLabel:n,copiedLabel:a,onCopy:s}){const[o,l]=k.useState(!1),i=k.useRef(null),u=k.useMemo(()=>{const d=Ne.languages[t]??Ne.languages.tsx??Ne.languages.typescript;return d?Ne.highlight(e,d,t):e},[e,t]);k.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);async function c(){await s(e)&&(l(!0),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{l(!1),i.current=null},1600))}return r.jsxs("div",{className:"vx-code-block-wrap","data-language":t,children:[r.jsxs(Q,{type:"button",size:"sm",variant:o?"solid":"secondary",className:o?"vx-code-block__copy vx-code-block__copy--copied":"vx-code-block__copy",onClick:()=>void c(),children:[o?r.jsx(st,{size:14}):r.jsx(Qr,{size:14}),o?a:n]}),r.jsx("pre",{className:"vx-code-block",children:r.jsx("code",{className:`vx-code-block__code language-${t}`,dangerouslySetInnerHTML:{__html:u}})})]})}const Ll="1.1.2",Ml={version:Ll},Pe=`v${Ml.version}`,Lr={locale:"en",label:"English",searchPlaceholder:"Search components, pages, keywords…",searchAriaLabel:"Search",searchEmpty:e=>`No results for "${e}"`,searchNavigate:"Navigate",searchGo:"Go",searchClose:"Close",sidebarCollapse:"Collapse",sidebarExpand:"Expand",sidebarCloseLabel:"Close sidebar",searchTrigger:"Search",versionLabel:Pe,mobilePreview:"Mobile Preview",nav:{gettingStarted:"Getting Started",layout:"Layout",components:"Components",feedback:"Feedback",navigation:"Navigation",mobile:"Responsive",templates:"Templates"},pages:{introduction:"Introduction","quick-start":"Quick Start","shell-sidebar":"Shell & Sidebar","grid-page":"Grid & Page",button:"Button",elements:"Elements","form-controls":"Form Controls","form-inputs":"Form Inputs",overlays:"Overlays","data-display":"Data Display",navigation:"Navigation","data-list":"Data List","empty-states":"Empty States",toasts:"Toasts",feedback:"Feedback Components","nav-layout":"Navigation & Layout",mobile:"Mobile Components","command-palette":"Command Palette","code-block":"Code Block","language-switcher":"Language Switcher","home-page":"Home Page","login-page":"Login Page","register-page":"Register Page","error-page":"Error Page","privacy-policy":"Privacy Policy","terms-of-service":"Terms of Service"},docs:{guidance:"Guidance",guidanceDesc:"Keep the implementation tight and let the design system do most of the visual work.",preview:"Preview",previewDesc:"A compact example of how this area should feel inside the system.",notes:"Notes",primaryTheme:"Primary Theme",primaryThemeDesc:"Blue-gray neutrals keep emphasis reserved for actions, not decoration.",tokenScale:"Token Scale",tokenScaleDesc:"Reuse the shared surface, border, and text variables before introducing page-specific styles.",themeStudio:"Theme Studio",themeStudioDesc:"Register named themes once, then switch every component with a single key.",liveControls:"Live Controls",liveControlsDesc:"A few reusable primitives are still available inside the docs surface.",searchDocs:"Search docs",searchDocsPlaceholder:"Buttons, tokens, layout...",compactDensity:"Compact density",compactDensityDesc:"Tighten the vertical rhythm for denser operator views.",systemPreview:"System Preview",openSection:"Open section"},intro:{tagline:"A lightweight, dependency-free UI framework for building clean admin interfaces. Design tokens, components, and a minimal SPA runtime live behind one consistent visual language.",getStarted:"Get Started",browseComponents:"Browse Components",atAGlance:"At a Glance",designTokens:"Design Tokens",designTokensLead:"All colors, spacing, and typography values are exposed as CSS custom properties under the vx namespace. Register named light and dark themes once, then swap the whole framework by theme key.",componentFamilies:"Component Families"},glance:{zeroDeps:"Zero dependencies",zeroDepsHint:"Original shell runtime does not require a build pipeline.",components:"Components",componentsHint:"Layout, form, feedback, and list primitives in one system.",coreCSS:"Core CSS",coreCSSHint:"Neutral tokens and structural styles stay compact.",darkMode:"Dark mode",darkModeHint:"Semantic variables keep the same components reusable."},tokens:{primary:"Primary",primaryDesc:"Accent color for primary actions, active navigation, and emphasis.",surface:"Surface",surfaceDesc:"Default panel and content background for documentation cards and shell regions.",border:"Border",borderDesc:"Light separators that keep the UI structured without adding visual weight.",text:"Text",textDesc:"Primary foreground used for headings, dense data, and body copy."},families:{layout:"Layout",layoutDesc:"App shell, sticky header, section rhythm, and responsive content framing.",elements:"Elements",elementsDesc:"Quiet primitives for actions, metadata, and structured content blocks.",forms:"Forms",formsDesc:"Inputs, switches, dialogs, and field composition patterns.",feedback:"Feedback",feedbackDesc:"Transient toasts and interruptive confirmation flows."},dataList:{name:"Name",kind:"Kind",updated:"Updated"},modeLabel:e=>`${e} mode`,publicPages:{navLogin:"Log in",navSignup:"Sign up",navDocs:"Docs",navLogout:"Log out",heroTag:`New · ${Pe}`,heroTitle:"Build faster with vxUI",heroLead:"A lightweight, dependency-free UI framework for building clean admin interfaces. Design tokens, components, and a minimal SPA runtime in one consistent visual language.",heroCta:"Get started",heroCtaAlt:"Browse docs",previewLead:"A production-minded docs surface with direct guest access, persistent sign-in state, and mobile-ready layouts.",previewAccessTitle:"Access modes",previewAccessMember:"Sign in to keep a persisted session and return directly to your workspace.",previewAccessGuest:"Open the docs immediately as a guest when you only need to inspect components.",previewMobileTitle:"Mobile-ready",previewMobileLead:"Navigation and auth layouts collapse cleanly for phones without losing hierarchy or call-to-action priority.",featuresSectionTitle:"Why vxUI",feat1:"Zero dependencies",feat1Desc:"Ships as a pure CSS + TypeScript package with no peer-lib baggage.",feat2:"30+ components",feat2Desc:"Layout, form, feedback, and list primitives in one cohesive system.",feat3:"Themeable",feat3Desc:"Swap the whole framework with a single theme key via CSS variables.",feat4:"Dark mode",feat4Desc:"Semantic tokens keep every component reusable across light and dark themes.",footerCopy:"© 2026 vxUI. All rights reserved.",footerPrivacy:"Privacy Policy",footerGithub:"GitHub",footerWebsite:"Website",loginTitle:"Welcome back",loginSubtitle:"Sign in to access the documentation.",loginEmail:"Email",loginEmailPlaceholder:"you@example.com",loginPassword:"Password",loginPasswordPlaceholder:"At least 8 characters",loginCta:"Sign in",loginNoAccount:"Don't have an account?",loginRegister:"Register",loginGuest:"Continue without an account →",rememberMe:"Remember this device",showPassword:"Show",hidePassword:"Hide",authInfoTitle:"Guest access is available",authInfoBody:"You can go straight to the docs without an account. Sign in only if you want a persisted session example.",registerTitle:"Create account",registerSubtitle:"Get started with vxUI today.",registerName:"Full name",registerNamePlaceholder:"Jane Smith",registerEmail:"Email",registerEmailPlaceholder:"jane@company.com",registerPassword:"Password",registerPasswordPlaceholder:"Create a strong password",registerTermsAgree:"I agree to the",registerTermsLink:"Terms of Service",registerTermsAnd:"and",registerPrivacyLink:"Privacy Policy",registerCta:"Create account",registerHasAccount:"Already have an account?",registerLogin:"Sign in",registerGuest:"Continue without an account →",validationNameRequired:"Enter your full name.",validationNameShort:"Use at least 2 characters for your name.",validationEmailRequired:"Enter your email address.",validationEmailInvalid:"Enter a valid email address.",validationPasswordRequired:"Enter your password.",validationPasswordShort:"Use at least 8 characters for the password.",validationTermsRequired:"You must agree to the terms before creating an account.",sessionLoginTitle:"Signed in",sessionLoginBody:"Your session is active. You can now browse the docs as a signed-in user.",sessionRegisterTitle:"Account created",sessionRegisterBody:"Your sample account is ready and the docs are now unlocked.",sessionGuestTitle:"Browsing as guest",sessionGuestBody:"You entered the docs without a saved account session.",sessionLogoutTitle:"Signed out",sessionLogoutBody:"Your persisted session was cleared. You are back on the public site.",signedInAs:"Signed in as",guestLabel:"Guest",backHome:"← Back to home",backToDocs:"Back to docs"},pageDefs:{introduction:{section:"Introduction",title:"Introduction",description:"A lightweight, dependency-free UI framework for building clean admin interfaces. Design tokens, components, and a minimal SPA runtime live behind one consistent visual language.",guidance:["Start from the shell and navigation rhythm before styling isolated controls.","Keep tokens semantic so a theme swap does not require page-specific overrides.","Treat documentation, examples, and production surfaces as the same design system."]},"quick-start":{section:"Installation",title:"Quick Start",description:"Install the package, wrap your app with providers, and mount a page shell before composing business screens.",guidance:["Import the shared stylesheet once near the application root.","Use AppShell for product chrome and keep page content inside the main slot.","Add ThemeProvider and ToastProvider only when the app needs them."]},"shell-sidebar":{section:"Components",title:"Shell & Sidebar",description:"The shell is responsible for sidebar hierarchy, sticky header spacing, and content width. Pages should inherit structure instead of rebuilding it.",guidance:["Keep navigation labels short so collapsed mode stays scannable.","Use section titles to separate page groups instead of visual noise.","Let the content area own page-specific headings and actions."]},"grid-page":{section:"Components",title:"Grid & Page",description:"Use simple responsive grids for cards, tokens, and documentation blocks. The page surface should stay neutral and let content carry emphasis.",guidance:["Prefer 12 to 16 pixel gaps for dense documentation surfaces.","Reserve larger spacing for section boundaries, not every card.","Keep max width constrained so long paragraphs remain readable."]},button:{section:"Components",title:"Button",description:"Buttons carry the primary action hierarchy for the system. Variants, sizes, and width should communicate intent without requiring extra styling.",guidance:["Use the solid variant for the primary action in a given area.","Use secondary or ghost variants for supporting actions that should stay visually quieter.","Use fullWidth for stacked mobile actions or single-column forms."]},elements:{section:"Components",title:"Elements",description:"Buttons, badges, and cards should feel quiet by default. The primary action can be loud; everything else should support it.",guidance:["One primary action per area is usually enough.","Use badges for compact status or category metadata, not decoration.","Cards should organize content without feeling like dashboards by default."]},"form-controls":{section:"Components",title:"Form Controls",description:"Inputs and switches need strong contrast, clear labels, and predictable vertical rhythm. Expose complexity through composition rather than one giant field component.",guidance:["Always pair form controls with visible labels in admin surfaces.","Short helper text is better than placeholder-only instruction.","Confirm destructive or high-impact actions with dialog affordances."]},navigation:{section:"Components",title:"Navigation",description:"Navigation patterns should communicate location first, then available movement. Tabs work best for sibling views within a single page context.",guidance:["Mirror information architecture in the control structure.","Make the active state obvious without relying on color alone.","Avoid mixing route navigation and local view state in one control."]},"data-list":{section:"Components",title:"Data List",description:"Lists and tables should prioritize scanning over ornament. Use generous alignment, light separators, and action density only where needed.",guidance:["Align headers and row content precisely to reduce visual drift.","Use subtle borders instead of heavy card chrome around every row.","Reserve destructive affordances for row action groups, not inline text links."]},"empty-states":{section:"Components",title:"Empty States",description:"An empty state should explain what is missing, why it matters, and what the next action is. It should never feel like a dead end.",guidance:["Name the object that is absent so users know what they are looking at.","Offer one clear recovery action.","Keep the visual weight lighter than success or alert feedback."]},toasts:{section:"Components",title:"Toasts",description:"Toasts confirm short-lived events without interrupting task flow. Keep them brief, specific, and easy to dismiss.",guidance:["Use success and info to confirm background actions.","Escalate blocking or destructive states to dialogs instead of stacking toasts.","Avoid repeating the same message on every page transition."]},feedback:{section:"Components",title:"Feedback Components",description:"Spinner, Progress, Alert, and Skeleton give users clear signals about loading states, results, and missing content.",guidance:["Use Spinner for short indeterminate waits; Progress for deterministic operations.","Prefer Alert over toast for persistent or page-level status messages.","Skeleton should match the shape of the content it replaces to reduce layout shift."]},overlays:{section:"Components",title:"Overlays",description:"Tooltip, Popover, and DropdownMenu layer transient content above the page without navigating away.",guidance:["Tooltips are for supplementary text only — never interactive content.","Popovers can contain forms and rich content; they require explicit close triggers.","DropdownMenus should group related actions and support keyboard navigation."]},"nav-layout":{section:"Components",title:"Navigation & Layout",description:"Breadcrumb, Pagination, Accordion, and Separator handle location, paging, and structural rhythm.",guidance:["Breadcrumb mirrors route depth — omit it on single-level pages.","Pagination should show page count so users understand the data set size.","Accordion works best for progressive disclosure, not primary navigation."]},"data-display":{section:"Components",title:"Data Display",description:"Avatar and Table present user identity and structured data with clear hierarchy.",guidance:["Avatar should always have an accessible label, even when showing an image.","Table supports sortable columns — delegate sort state up when the data is server-side.","Use striped rows in dense tables to help eyes track across long rows."]},"form-inputs":{section:"Components",title:"Form Inputs",description:"Select, Checkbox, RadioGroup, Textarea, and Slider extend the form vocabulary beyond text inputs.",guidance:["Group radio buttons with RadioGroup to share name and semantics.","Slider is ideal for numeric ranges; pair it with showValue for immediate feedback.","Textarea defaults to vertical resize — disable resize only in fixed-height containers."]},mobile:{section:"Responsive",title:"Responsive Patterns",description:"A single responsive system for phone, tablet, and desktop. One route tree, one content model, and one set of components adapt through layout instead of duplicate applications.",guidance:["Keep the route tree identical across breakpoints; only the shell and density should change.","Turn persistent side navigation into a drawer on narrow screens instead of forking the page implementation.","Design cards, forms, and tables to reflow from three columns to one without changing component ownership."]},"home-page":{section:"Templates",title:"Home Page",description:"A landing-style home page with a hero section, key feature highlights, and primary call-to-action buttons. Suitable for product sites, internal portals, and marketing pages.",guidance:["Keep the hero message to one compelling sentence — let the CTA do the work.","Feature cards should each solve one problem, not list all capabilities.","Balance a primary action with a softer secondary one to reduce decision fatigue."]},"login-page":{section:"Templates",title:"Login Page",description:"A minimal login form centered on the screen. Collect credentials with clear labels, visible error states, and a single primary action.",guidance:["Never hide the password label — placeholder text alone fails accessibility.","Show inline validation errors as soon as the field loses focus.","Offer a password-visible toggle to reduce login friction."]},"register-page":{section:"Templates",title:"Register Page",description:"A registration form that collects the minimum fields needed to create an account. Reduce friction by asking only what is essential at sign-up.",guidance:["Request only name, email, and password at registration — profile details can come later.","Show password strength inline without blocking submission on minor issues.","The terms-of-service checkbox must be explicit; do not pre-check it."]},"error-page":{section:"Templates",title:"Error Page",description:"A graceful fallback for 404, 500, and other error states. Give users a clear explanation and a direct path back to safety.",guidance:["State the error code and a plain-language explanation — avoid technical jargon.","Always provide a go-home action alongside a go-back option.","Match the error page visual weight to the rest of the product, not a generic OS page."]},"privacy-policy":{section:"Templates",title:"Privacy Policy",description:"A structured legal document page with section headings, readable prose, and clear separators. Designed to remain accessible and scannable without sacrificing completeness.",guidance:["Use headings to break long policy text into scannable sections.","Link directly to the relevant section from any consent flow that references the policy.","Version and date the policy at the top so users know when it was last updated."]},"terms-of-service":{section:"Templates",title:"Terms of Service",description:"A service terms page with clear headings, plain-language obligations, and a layout that stays readable from narrow phones to wide desktop viewports.",guidance:["State the usage permission, limitations, and disclaimer in separate sections to reduce legal ambiguity.","Keep the document scannable with short paragraphs and a compact summary rail.","Link to the terms directly from registration and pricing flows so consent is contextual."]},"command-palette":{section:"Components",title:"Command Palette",description:"A keyboard-driven search overlay that lets users jump to any page or action without leaving the keyboard. Render it globally, wire a hotkey, then pass a flat list of entries.",guidance:["Keep the entries list flat and label-searchable — avoid nesting pages under hidden categories.","Populate entries from the same nav data you use for the sidebar so the two surfaces stay in sync.","Combine with ⌘K (Mac) or Ctrl+K (Windows) for a familiar shortcut that power users expect."]},"code-block":{section:"Components",title:"Code Block",description:"A syntax-highlighted, read-only code display with optional filename label. Use it to render installation snippets, usage examples, or any formatted code string.",guidance:["Set the language prop to the language of the code — tsx, bash, json, etc. — for correct highlighting.","Pass a filename to give readers context on where the snippet belongs in a project.","Keep code snippets minimal; show only the lines needed to illustrate the concept being documented."]},"language-switcher":{section:"Components",title:"Language Switcher",description:"A locale toggle component that updates the entire UI copy when clicked. Drop it into any topbar or settings area — the i18n provider broadcasts the change automatically.",guidance:["Place the switcher in a persistent surface (topbar or settings page) so users can find it from anywhere.","The switcher reflects the current locale; no extra state wiring is needed beyond the i18n provider.","Use the inline variant for topbars and the default variant for settings pages to match visual density."]}}},Ol={locale:"zh",label:"中文",searchPlaceholder:"搜索组件、页面、关键词…",searchAriaLabel:"搜索",searchEmpty:e=>`未找到与"${e}"匹配的结果`,searchNavigate:"导航",searchGo:"跳转",searchClose:"关闭",sidebarCollapse:"收起",sidebarExpand:"展开",sidebarCloseLabel:"关闭侧边栏",searchTrigger:"搜索",versionLabel:Pe,mobilePreview:"移动端预览",nav:{gettingStarted:"开始使用",layout:"布局",components:"组件",feedback:"反馈",navigation:"导航",mobile:"响应式",templates:"模板"},pages:{introduction:"简介","quick-start":"快速开始","shell-sidebar":"框架与侧边栏","grid-page":"网格与页面",button:"按钮",elements:"基础元素","form-controls":"表单控件","form-inputs":"表单输入",overlays:"浮层","data-display":"数据展示",navigation:"导航","data-list":"数据列表","empty-states":"空状态",toasts:"消息提示",feedback:"反馈组件","nav-layout":"导航与布局",mobile:"移动端组件","command-palette":"命令面板","code-block":"代码块","language-switcher":"语言切换器","home-page":"主页","login-page":"登录页","register-page":"注册页","error-page":"错误页","privacy-policy":"隐私政策","terms-of-service":"服务条款"},docs:{guidance:"使用指南",guidanceDesc:"保持实现简洁,让设计系统完成大部分视觉工作。",preview:"预览",previewDesc:"该区域在系统中呈现效果的精简示例。",notes:"备注",primaryTheme:"主色调",primaryThemeDesc:"蓝灰色中性调将视觉重点保留给操作,而非装饰。",tokenScale:"Token 体系",tokenScaleDesc:"在引入页面特定样式之前,优先复用共享的 surface、border 和 text 变量。",themeStudio:"主题工作室",themeStudioDesc:"一次注册命名主题,用单个 key 即可切换所有组件。",liveControls:"交互控件",liveControlsDesc:"文档界面中仍有若干可复用的基础原语。",searchDocs:"搜索文档",searchDocsPlaceholder:"按钮、Token、布局…",compactDensity:"紧凑模式",compactDensityDesc:"收紧垂直间距,适合高密度操作界面。",systemPreview:"系统预览",openSection:"打开章节"},intro:{tagline:"一个轻量无依赖的 UI 框架,用于构建简洁的后台管理界面。设计 Token、组件和极简 SPA 运行时,统一在一套一致的视觉语言之下。",getStarted:"开始使用",browseComponents:"浏览组件",atAGlance:"概览",designTokens:"设计 Token",designTokensLead:"所有颜色、间距和字体值均以 vx 命名空间下的 CSS 自定义属性暴露。一次注册命名的亮色和暗色主题,之后通过主题 key 即可切换整个框架。",componentFamilies:"组件系列"},glance:{zeroDeps:"零依赖",zeroDepsHint:"原始 shell 运行时无需构建流水线。",components:"组件数",componentsHint:"布局、表单、反馈和列表原语,一套搞定。",coreCSS:"核心 CSS",coreCSSHint:"中性 Token 和结构样式保持精简。",darkMode:"深色模式",darkModeHint:"语义变量让相同组件可在多主题下复用。"},tokens:{primary:"主色",primaryDesc:"用于主要操作、活跃导航和强调的点缀色。",surface:"表面色",surfaceDesc:"文档卡片和框架区域的默认面板与内容背景色。",border:"边框色",borderDesc:"保持 UI 结构清晰且不增加视觉重量的轻量分隔色。",text:"文字色",textDesc:"用于标题、密集数据和正文的主前景色。"},families:{layout:"布局",layoutDesc:"应用框架、固定顶栏、章节节奏和响应式内容框架。",elements:"基础元素",elementsDesc:"用于操作、元数据和结构化内容块的低调原语。",forms:"表单",formsDesc:"输入框、开关、对话框和字段组合模式。",feedback:"反馈",feedbackDesc:"短暂的消息提示与打断性确认流程。"},dataList:{name:"名称",kind:"类型",updated:"更新时间"},modeLabel:e=>`${{light:"浅色",dark:"深色",black:"纯黑"}[e]??e}模式`,publicPages:{navLogin:"登录",navSignup:"注册",navDocs:"文档",navLogout:"退出登录",heroTag:`最新 · ${Pe}`,heroTitle:"用 vxUI 构建更快",heroLead:"一个轻量无依赖的 UI 框架,用于构建简洁的后台管理界面。设计 Token、组件和极简 SPA 运行时,统一在一套一致的视觉语言之下。",heroCta:"立即开始",heroCtaAlt:"浏览文档",previewLead:"一个面向生产场景的文档入口,支持直接访客访问、持久化登录状态,以及适配移动端的页面布局。",previewAccessTitle:"访问方式",previewAccessMember:"登录后可保留会话状态,下次返回时继续进入你的工作区。",previewAccessGuest:"如果只是查看组件,也可以直接以访客身份打开文档。",previewMobileTitle:"移动端可用",previewMobileLead:"导航和认证布局会在手机上自然折叠,不牺牲层级关系和关键行动按钮。",featuresSectionTitle:"为什么选择 vxUI",feat1:"零依赖",feat1Desc:"纯 CSS + TypeScript 包,无第三方依赖负担。",feat2:"30+ 组件",feat2Desc:"布局、表单、反馈和列表原语,一套搞定。",feat3:"可主题化",feat3Desc:"通过 CSS 变量,用单个主题 key 切换整个框架。",feat4:"深色模式",feat4Desc:"语义 Token 让每个组件在各主题下均可复用。",footerCopy:"© 2026 vxUI. 保留所有权利。",footerPrivacy:"隐私政策",footerGithub:"GitHub",footerWebsite:"官网",loginTitle:"欢迎回来",loginSubtitle:"登录以访问文档。",loginEmail:"邮箱",loginEmailPlaceholder:"you@example.com",loginPassword:"密码",loginPasswordPlaceholder:"至少 8 位字符",loginCta:"登录",loginNoAccount:"还没有账号?",loginRegister:"注册",loginGuest:"无需登录,直接继续 →",rememberMe:"记住这台设备",showPassword:"显示",hidePassword:"隐藏",authInfoTitle:"支持访客访问",authInfoBody:"如果你只是想查看文档,可以不登录直接进入。登录仅用于演示持久化会话的真实流程。",registerTitle:"创建账号",registerSubtitle:"立即开始使用 vxUI。",registerName:"姓名",registerNamePlaceholder:"张三",registerEmail:"邮箱",registerEmailPlaceholder:"zhangsan@company.com",registerPassword:"密码",registerPasswordPlaceholder:"创建一个强密码",registerTermsAgree:"我同意",registerTermsLink:"服务条款",registerTermsAnd:"和",registerPrivacyLink:"隐私政策",registerCta:"创建账号",registerHasAccount:"已有账号?",registerLogin:"登录",registerGuest:"无需登录,直接继续 →",validationNameRequired:"请输入你的姓名。",validationNameShort:"姓名至少需要 2 个字符。",validationEmailRequired:"请输入邮箱地址。",validationEmailInvalid:"请输入有效的邮箱地址。",validationPasswordRequired:"请输入密码。",validationPasswordShort:"密码至少需要 8 位字符。",validationTermsRequired:"创建账号前必须同意条款。",sessionLoginTitle:"已登录",sessionLoginBody:"你的会话已生效,现在可以以登录用户身份查看文档。",sessionRegisterTitle:"账号已创建",sessionRegisterBody:"示例账号已创建完成,文档后台现已可用。",sessionGuestTitle:"当前为访客模式",sessionGuestBody:"你正在无账号状态下浏览文档。",sessionLogoutTitle:"已退出登录",sessionLogoutBody:"持久化会话已清除,你已返回公共首页。",signedInAs:"当前登录",guestLabel:"访客",backHome:"← 返回首页",backToDocs:"返回文档"},pageDefs:{introduction:{section:"介绍",title:"简介",description:"一个轻量无依赖的 UI 框架,用于构建简洁的后台管理界面。设计 Token、组件和极简 SPA 运行时,统一在一套一致的视觉语言之下。",guidance:["先从框架和导航节奏开始,再对独立控件进行样式调整。","保持 Token 语义化,主题切换时无需逐页覆盖样式。","将文档、示例和生产界面视为同一套设计系统。"]},"quick-start":{section:"安装",title:"快速开始",description:"安装包,用 Provider 包裹应用,在组合业务页面前先挂载页面框架。",guidance:["在应用根组件附近统一引入共享样式表。","使用 AppShell 承载产品外壳,页面内容保持在 main 插槽内。","仅在应用需要时才添加 ThemeProvider 和 ToastProvider。"]},"shell-sidebar":{section:"组件",title:"框架与侧边栏",description:"Shell 负责侧边栏层级、固定顶栏间距和内容宽度。页面应继承结构而非重新构建。",guidance:["保持导航标签简短,以确保折叠模式下仍可快速扫读。","使用章节标题分隔页面分组,而非添加视觉噪音。","让内容区域自行管理页面特定的标题和操作。"]},"grid-page":{section:"组件",title:"网格与页面",description:"为卡片、Token 和文档块使用简单的响应式网格。页面表面应保持中性,由内容承载视觉重点。",guidance:["在密集文档界面中优先使用 12 至 16 像素的间距。","较大间距应保留给章节边界,而非每张卡片。","限制最大宽度,确保长段落保持可读性。"]},button:{section:"组件",title:"按钮",description:"按钮承担系统中的主操作层级。变体、尺寸和宽度应该直接表达操作意图,而不需要额外拼样式。",guidance:["在同一区域内,实心按钮通常只保留给一个主操作。","次级和幽灵按钮更适合辅助动作,避免和主操作竞争视觉优先级。","在移动端单列布局或堆叠表单中,优先使用 fullWidth 提升点击面积。"]},elements:{section:"组件",title:"基础元素",description:"按钮、徽章和卡片默认应保持低调。主要操作可以突出,其余元素应配合支撑。",guidance:["每个区域通常一个主操作就足够了。","徽章用于紧凑的状态或分类元数据,而非纯装饰。","卡片应组织内容,默认不应有仪表盘的感觉。"]},"form-controls":{section:"组件",title:"表单控件",description:"输入框和开关需要强对比度、清晰标签和可预测的垂直节奏。通过组合而非一个巨型字段组件来暴露复杂性。",guidance:["在管理界面中,表单控件始终应配有可见标签。","简短的辅助文本优于仅依赖 placeholder 的说明。","对破坏性或高影响操作使用对话框进行确认。"]},navigation:{section:"组件",title:"导航",description:"导航模式应首先传达位置,其次才是可用的移动方向。Tabs 最适合在单个页面上下文中切换兄弟视图。",guidance:["在控件结构中镜像信息架构。","使活跃状态明显,而不仅依赖颜色。","避免在一个控件中混用路由导航和本地视图状态。"]},"data-list":{section:"组件",title:"数据列表",description:"列表和表格应优先考虑扫读效率而非装饰。使用宽松的对齐、轻量分隔线,仅在需要时增加操作密度。",guidance:["精确对齐表头和行内容,减少视觉偏移。","使用细微边框而非为每一行添加重型卡片外壳。","将破坏性操作保留在行操作组中,而非内联文字链接。"]},"empty-states":{section:"组件",title:"空状态",description:"空状态应解释缺少什么、为何重要以及下一步操作是什么。它不应让用户感到走投无路。",guidance:["指明缺失的对象,让用户清楚自己在看什么。","提供一个清晰的恢复操作。","视觉重量应轻于成功或警告反馈。"]},toasts:{section:"组件",title:"消息提示",description:"Toast 在不打断任务流程的情况下确认短暂事件。保持简洁、具体且易于关闭。",guidance:["使用 success 和 info 确认后台操作。","将阻塞性或破坏性状态升级为对话框,而非堆叠 Toast。","避免在每次页面切换时重复相同消息。"]},feedback:{section:"组件",title:"反馈组件",description:"Spinner、Progress、Alert 和 Skeleton 为用户提供关于加载状态、结果和缺失内容的清晰信号。",guidance:["对短暂的不确定等待使用 Spinner;对确定性操作使用 Progress。","对持久性或页面级状态消息,优先使用 Alert 而非 Toast。","Skeleton 应与其替代内容的形状匹配,以减少布局偏移。"]},overlays:{section:"组件",title:"浮层",description:"Tooltip、Popover 和 DropdownMenu 在页面上方叠加临时内容,无需跳转。",guidance:["Tooltip 仅用于补充文本,绝不放置可交互内容。","Popover 可包含表单和富内容;需要明确的关闭触发器。","DropdownMenu 应对相关操作分组,并支持键盘导航。"]},"nav-layout":{section:"组件",title:"导航与布局",description:"Breadcrumb、Pagination、Accordion 和 Separator 处理位置、分页和结构节奏。",guidance:["Breadcrumb 反映路由深度——单层页面可省略。","Pagination 应显示总页数,让用户了解数据集大小。","Accordion 最适合渐进式披露,而非主导航。"]},"data-display":{section:"组件",title:"数据展示",description:"Avatar 和 Table 以清晰的层级呈现用户身份和结构化数据。",guidance:["Avatar 即使在显示图片时也应始终具有无障碍标签。","Table 支持可排序列——数据来自服务端时应将排序状态提升。","在密集表格中使用斑马纹,帮助视线跨列追踪。"]},"form-inputs":{section:"组件",title:"表单输入",description:"Select、Checkbox、RadioGroup、Textarea 和 Slider 将表单词汇扩展到文本输入之外。",guidance:["使用 RadioGroup 包裹单选按钮,共享 name 和语义。","Slider 适合数值范围;配合 showValue 可获得即时反馈。","Textarea 默认纵向可拖拽——仅在固定高度容器中禁用 resize。"]},mobile:{section:"响应式",title:"响应式布局",description:"一套同时覆盖手机、平板与桌面的响应式系统。通过布局与密度变化适配不同设备,而不是维护两套应用与两套页面树。",guidance:["保持所有断点上的路由树一致,只调整壳层结构和内容密度。","在窄屏上把常驻侧边导航转成抽屉,而不是复制一套页面实现。","让卡片、表单和表格从三列到单列平滑重排,不改变组件归属。"]},"home-page":{section:"模板",title:"主页",description:"带有 Hero 区块、核心功能亮点和主要行动召唤按钮的落地式主页。适用于产品官网、内部门户和营销页面。",guidance:["Hero 信息保持一句话——让行动召唤按钮来完成说服工作。","功能卡片各自聚焦一个问题,而非罗列所有能力。","主操作与次操作相配合,降低用户决策疲劳。"]},"login-page":{section:"模板",title:"登录页",description:"居中的极简登录表单。清晰的标签、可见的错误状态和单一主操作,降低登录摩擦。",guidance:["不要隐藏密码标签——仅靠 placeholder 无法满足无障碍要求。","字段失去焦点后立即显示内联校验错误。","提供密码可见切换,降低登录摩擦。"]},"register-page":{section:"模板",title:"注册页",description:"只收集创建账号所需最少字段的注册表单。通过仅询问必要信息来降低注册阻力。",guidance:["注册时只需姓名、邮箱和密码——个人资料可在之后完善。","内联显示密码强度,但不因细微问题阻止提交。","服务条款复选框必须明确,不得预先勾选。"]},"error-page":{section:"模板",title:"错误页",description:"404、500 及其他错误状态的优雅降级页面。给用户清晰的解释和直接返回的路径。",guidance:["说明错误码和通俗解释——避免技术术语。",'始终提供"返回首页"和"后退"两个操作。',"错误页的视觉风格应与产品保持一致,而非系统默认页。"]},"privacy-policy":{section:"模板",title:"隐私政策",description:"带有章节标题、可读段落和清晰分隔线的结构化法律文档页面。在不牺牲完整性的前提下保持无障碍和可扫读性。",guidance:["使用标题将长篇政策文本分成可扫读的章节。","从任何引用政策的同意流程中直接链接到相关章节。","在顶部注明政策版本和日期,让用户了解最近更新时间。"]},"terms-of-service":{section:"模板",title:"服务条款",description:"具备清晰标题、通俗义务说明且在手机到桌面端都保持可读性的服务条款页面。",guidance:["将许可范围、使用限制和免责声明拆成独立段落,降低法律歧义。","正文使用短段落与摘要侧栏,保证长文档依旧可扫读。","在注册和定价流程中直接链接条款页面,让同意动作具备上下文。"]},"command-palette":{section:"组件",title:"命令面板",description:"键盘驱动的搜索浮层,让用户无需离开键盘即可跳转到任意页面或触发任意操作。全局挂载、绑定快捷键,传入扁平的条目列表即可使用。",guidance:["保持条目列表扁平且按标签可搜索——避免隐藏分类嵌套。","从侧边栏导航数据同步填充条目,确保两个入口保持一致。","绑定 ⌘K(Mac)或 Ctrl+K(Windows)快捷键,满足高频用户的操作预期。"]},"code-block":{section:"组件",title:"代码块",description:"带语法高亮的只读代码展示组件,支持可选的文件名标签。用于渲染安装步骤、用法示例或任意格式化的代码字符串。",guidance:["通过 language 属性指定代码语言(tsx、bash、json 等),以获得正确高亮。","传入 filename 可为读者提供该代码片段在项目中所属位置的上下文。","保持示例代码精简——只展示说明当前概念所需的最少行数。"]},"language-switcher":{section:"组件",title:"语言切换器",description:"点击后即可更新整套 UI 文案的语言切换组件。放入任意顶栏或设置区域——i18n Provider 会自动广播变更,无需额外状态绑定。",guidance:["将切换器放置在持久性界面(顶栏或设置页)中,方便用户在任何位置找到它。","切换器自动反映当前语言,除 i18n Provider 外无需额外的状态绑定。","顶栏中使用 inline 变体,设置页中使用默认变体,以匹配对应场景的视觉密度。"]}}},Xt={en:Lr,zh:Ol},$l=k.createContext({t:Lr,locale:"en",setLocale:()=>{}});function Bl(){return k.useContext($l)}function zl({variant:e="inline",className:t}){const{locale:n,setLocale:a}=Bl(),s=Object.entries(Xt),o=Xt[n],[l,i]=k.useState(!1),u=k.useRef(null);k.useEffect(()=>{if(!l)return;const d=p=>{u.current&&!u.current.contains(p.target)&&i(!1)};return document.addEventListener("mousedown",d),()=>document.removeEventListener("mousedown",d)},[l]),k.useEffect(()=>{if(!l)return;const d=p=>{p.key==="Escape"&&i(!1)};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[l]);const c=e==="sidebar";return r.jsxs("div",{ref:u,className:E("vx-lang-drop",c&&"vx-lang-drop--sidebar",l&&"vx-lang-drop--open",t),children:[r.jsxs(Q,{variant:"outline",size:"sm",onClick:()=>i(d=>!d),"aria-haspopup":"listbox","aria-expanded":l,"aria-label":"Switch language",className:"vx-lang-drop__trigger-btn",style:{height:"36px"},children:[r.jsx(na,{size:14,"aria-hidden":"true"}),(o==null?void 0:o.label)??n,r.jsx(ot,{size:14,className:"vx-lang-drop__chevron","aria-hidden":"true"})]}),l&&r.jsx("ul",{className:"vx-lang-drop__menu",role:"listbox","aria-label":"Language",children:s.map(([d,p])=>r.jsx("li",{role:"option","aria-selected":n===d,children:r.jsxs("button",{type:"button",className:E("vx-lang-drop__item",n===d&&"vx-lang-drop__item--active"),onClick:()=>{a(d),i(!1)},children:[p.label,n===d&&r.jsx("span",{className:"vx-lang-drop__check","aria-hidden":"true",children:"✓"})]})},d))})]})}exports.Accordion=Ci;exports.ActionSheet=Oi;exports.ActionSheetItem=$i;exports.Alert=yi;exports.AlertDialog=Qi;exports.AppShell=la;exports.Avatar=Ri;exports.Badge=ca;exports.BottomNav=Mi;exports.Breadcrumb=ji;exports.Button=Q;exports.Calendar=Dr;exports.Card=ua;exports.CardContent=va;exports.CardDescription=fa;exports.CardHeader=da;exports.CardTitle=pa;exports.Carousel=xl;exports.Checkbox=ui;exports.CodeBlock=Il;exports.ColorPicker=Nl;exports.Combobox=sl;exports.CommandPalette=Al;exports.ContextMenu=dl;exports.DatePicker=al;exports.Dialog=Ws;exports.DrawerNavItem=Wi;exports.DrawerNavSection=Gi;exports.DropdownMenu=Si;exports.EmptyState=gl;exports.FileUpload=ol;exports.Form=Ki;exports.FormDescription=Xi;exports.FormField=qi;exports.FormLabel=Yi;exports.FormMessage=Zi;exports.Heading=li;exports.HoverCard=pl;exports.Input=Gs;exports.Label=Vi;exports.LanguageSwitcher=zl;exports.Menubar=fl;exports.MobileDrawer=Hi;exports.MobileIconButton=Li;exports.MobileList=Bi;exports.MobileListItem=Ui;exports.MobileListSection=zi;exports.MobileShell=Di;exports.MobileTopBar=Ii;exports.NavigationMenu=vl;exports.NumberInput=Ji;exports.Pagination=Ei;exports.Popover=ki;exports.Progress=xi;exports.Radio=pi;exports.RadioGroup=fi;exports.Rating=yl;exports.ResizableHandle=Cl;exports.ResizablePanel=El;exports.ResizablePanelGroup=jl;exports.Responsive=zr;exports.ScrollArea=ll;exports.SegmentedControl=di;exports.Select=ci;exports.Separator=Ti;exports.Sheet=il;exports.Shell=on;exports.ShellContent=mn;exports.ShellMain=fn;exports.ShellNav=cn;exports.ShellNavItem=dn;exports.ShellNavSection=un;exports.ShellOverlay=pn;exports.ShellSidebar=ln;exports.ShellTopbar=vn;exports.Skeleton=_i;exports.Slider=mi;exports.Spinner=gi;exports.Stepper=ml;exports.Switch=eo;exports.Table=Fi;exports.Tabs=_o;exports.TabsContent=So;exports.TabsList=wo;exports.TabsTrigger=ko;exports.TagInput=wl;exports.Text=ii;exports.Textarea=vi;exports.ThemeProvider=Ao;exports.Timeline=hl;exports.ToastProvider=si;exports.Toggle=cl;exports.ToggleGroup=ul;exports.Tooltip=wi;exports.TreeView=_l;exports.ViewportProvider=Br;exports.createTheme=H;exports.themePresets=No;exports.useFormField=Fr;exports.useTheme=Po;exports.useToast=oi;exports.useViewport=at;