@stacksjs/components 0.2.381 → 0.2.383

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 (36) hide show
  1. package/dist/{Breadcrumb-pach6f1f.stx → Breadcrumb-cgw1bb6s.stx} +1 -1
  2. package/dist/{Calendar-93yvwp1s.stx → Calendar-5vs6x7gj.stx} +1 -1
  3. package/dist/{Checkout-22wh3s22.stx → Checkout-crbegxyv.stx} +2 -2
  4. package/dist/{Dialog-d1020hj6.stx → Dialog-e9a4r6d0.stx} +34 -0
  5. package/dist/{DialogTitle-0jjdk5ra.stx → DialogTitle-ke58hh68.stx} +1 -1
  6. package/dist/{Pagination-330ybzf1.stx → Pagination-8bhbkpcp.stx} +3 -3
  7. package/dist/{Progress-bv65bwh8.stx → Progress-2qzb77kc.stx} +2 -2
  8. package/dist/{Sidebar-ve2asgf3.stx → Sidebar-8dygywjv.stx} +2 -2
  9. package/dist/{Skeleton-me2hwqrc.stx → Skeleton-m4p66zcs.stx} +1 -1
  10. package/dist/{Stepper-rgbk76hd.stx → Stepper-68gxcmej.stx} +1 -1
  11. package/dist/{StepperStep-b78wmshd.stx → StepperStep-zf4pq1s0.stx} +2 -2
  12. package/dist/{SubscriptionCheckout-f1ev0ry8.stx → SubscriptionCheckout-rdcv32n1.stx} +2 -2
  13. package/dist/{Tabs-f1n3ggkw.stx → Tabs-3j2h0jjn.stx} +30 -5
  14. package/dist/{Textarea-k1gf21kw.stx → Textarea-4zzr72zh.stx} +2 -2
  15. package/dist/{Tooltip-g2j17eg9.stx → Tooltip-sq6tfy00.stx} +1 -1
  16. package/dist/{Transition-hmm11qk1.stx → Transition-7m0mk45s.stx} +2 -2
  17. package/dist/{TwoFactorChallenge-st48qkzw.stx → TwoFactorChallenge-3tsbfdsd.stx} +1 -1
  18. package/dist/index.js +5 -5
  19. package/package.json +3 -3
  20. package/src/ui/auth/TwoFactorChallenge.stx +1 -1
  21. package/src/ui/breadcrumb/Breadcrumb.stx +1 -1
  22. package/src/ui/calendar/Calendar.stx +1 -1
  23. package/src/ui/dialog/Dialog.stx +34 -0
  24. package/src/ui/dialog/DialogTitle.stx +1 -1
  25. package/src/ui/pagination/Pagination.stx +3 -3
  26. package/src/ui/payment/Checkout.stx +2 -2
  27. package/src/ui/payment/SubscriptionCheckout.stx +2 -2
  28. package/src/ui/progress/Progress.stx +2 -2
  29. package/src/ui/sidebar/Sidebar.stx +2 -2
  30. package/src/ui/skeleton/Skeleton.stx +1 -1
  31. package/src/ui/stepper/Stepper.stx +1 -1
  32. package/src/ui/stepper/StepperStep.stx +2 -2
  33. package/src/ui/tabs/Tabs.stx +30 -5
  34. package/src/ui/textarea/Textarea.stx +2 -2
  35. package/src/ui/tooltip/Tooltip.stx +1 -1
  36. package/src/ui/transition/Transition.stx +2 -2
@@ -1,7 +1,7 @@
1
1
  <script server cache>
2
2
  export const items = $props.items || []
3
3
  export const separator = $props.separator || '/'
4
- export const maxItems = $props.maxItems || 0
4
+ export const maxItems = $num($props.maxItems) || 0
5
5
  export const className = $props.className || ''
6
6
 
7
7
  /*
@@ -17,7 +17,7 @@ export const minDate = $props.minDate || null
17
17
  export const maxDate = $props.maxDate || null
18
18
  export const disabledDates = $props.disabledDates || []
19
19
  export const locale = $props.locale || 'en-US'
20
- export const firstDayOfWeek = $props.firstDayOfWeek || 0
20
+ export const firstDayOfWeek = $num($props.firstDayOfWeek) || 0
21
21
  export const showToday = $bool($props.showToday, true)
22
22
  export const className = $props.className || ''
23
23
  export const highlightToday = $bool($props.highlightToday, true)
@@ -3,8 +3,8 @@ export const products = $props.products || []
3
3
  export const mode = $props.mode || 'subscription'
4
4
  export const stripePublicKey = $props.stripePublicKey || ''
5
5
  export const apiUrl = $props.apiUrl || ''
6
- export const shipping = $props.shipping || 0
7
- export const taxes = $props.taxes || 0
6
+ export const shipping = $num($props.shipping) || 0
7
+ export const taxes = $num($props.taxes) || 0
8
8
  export const className = $props.className || ''
9
9
 
10
10
  export const isSubscription = mode === 'subscription'
@@ -2,6 +2,19 @@
2
2
  export const open = $bool($props.open)
3
3
  export const className = $props.className || ''
4
4
 
5
+ /*
6
+ * The dialog's accessible name.
7
+ *
8
+ * `role="dialog"` with no name is announced as just "dialog", which tells a
9
+ * screen reader user nothing about what has taken over the page -- WCAG 4.1.2.
10
+ * The slot idiom puts the name in a <DialogTitle>, which the client script
11
+ * below associates on mount; this prop is the server-rendered half, so a
12
+ * dialog is named before hydration and without JavaScript at all. Emitted only
13
+ * when set: an empty aria-label is worse than none, because it suppresses the
14
+ * name the title would otherwise supply. Same idiom as Drawer.
15
+ */
16
+ export const title = $props.title || ''
17
+
5
18
  const baseClasses = 'relative z-50'
6
19
  export const dialogClasses = `${baseClasses} ${className}`.trim()
7
20
 
@@ -38,8 +51,28 @@ const mounted = state(false)
38
51
 
39
52
  onMount(() => {
40
53
  mounted.set(true)
54
+ labelFromTitle()
41
55
  })
42
56
 
57
+ /*
58
+ * Name the dialog after its <DialogTitle>, when the server could not.
59
+ *
60
+ * The documented idiom puts the name in the slot, which the server cannot see
61
+ * from here -- it renders the title as opaque slot content. So a dialog
62
+ * without the `title` prop reaches the browser announced as bare "dialog".
63
+ * This associates the two once the slot content exists. Skipped when a name is
64
+ * already present, so the prop always wins.
65
+ */
66
+ function labelFromTitle() {
67
+ const root = rootRef.value
68
+ if (!root) return
69
+ if (root.getAttribute('aria-label') || root.getAttribute('aria-labelledby')) return
70
+ const heading = root.querySelector('[data-stx-dialog-title]')
71
+ if (!heading) return
72
+ if (!heading.id) heading.id = `${dialogInstanceId}-title`
73
+ root.setAttribute('aria-labelledby', heading.id)
74
+ }
75
+
43
76
  function close() {
44
77
  isOpen.set(false)
45
78
  emit('close')
@@ -262,6 +295,7 @@ defineExpose({
262
295
  data-stx-dialog="{{ dialogInstanceId }}"
263
296
  role="dialog"
264
297
  aria-modal="true"
298
+ @if(title)aria-label="{{ title }}"@endif
265
299
  @click="onRootClick($event)"
266
300
  >
267
301
  <slot />
@@ -6,6 +6,6 @@ const baseClasses = 'text-lg font-medium leading-6 text-fg'
6
6
  const titleClasses = `${baseClasses} ${className}`.trim()
7
7
  </script>
8
8
 
9
- <component :is="{{ as }}" class="{{ titleClasses }}">
9
+ <component :is="{{ as }}" class="{{ titleClasses }}" data-stx-dialog-title>
10
10
  <slot />
11
11
  </component>
@@ -1,7 +1,7 @@
1
1
  <script server cache>
2
- export const currentPage = $props.currentPage || 1
3
- export const totalPages = $props.totalPages || 1
4
- export const siblingCount = $props.siblingCount || 1
2
+ export const currentPage = $num($props.currentPage) || 1
3
+ export const totalPages = $num($props.totalPages) || 1
4
+ export const siblingCount = $num($props.siblingCount) || 1
5
5
  export const showFirstLast = $bool($props.showFirstLast, true)
6
6
  export const showPrevNext = $bool($props.showPrevNext, true)
7
7
  export const className = $props.className || ''
@@ -1,6 +1,6 @@
1
1
  <script server cache>
2
- export const value = $props.value || 0
3
- export const max = $props.max || 100
2
+ export const value = $num($props.value) || 0
3
+ export const max = $num($props.max) || 100
4
4
  export const variant = $props.variant || 'linear'
5
5
  export const size = $props.size || 'md'
6
6
  export const color = $props.color || 'primary'
@@ -29,7 +29,7 @@ export const spacePersistKey = $props.spacePersistKey || ''
29
29
 
30
30
  // `theme` is the new name; `variant` is accepted for backwards compatibility.
31
31
  export const theme = $props.theme || $props.variant || (hasSpaces ? 'arc' : 'macos')
32
- export const width = $props.width || 250
32
+ export const width = $num($props.width) || 250
33
33
  export const position = $props.position || 'left'
34
34
  export const placement = $props.placement || 'fixed'
35
35
  export const bordered = $bool($props.bordered)
@@ -39,7 +39,7 @@ export const bordered = $bool($props.bordered)
39
39
  export const collapsed = $bool($props.collapsed)
40
40
  export const collapsible = $bool($props.collapsible, true)
41
41
  export const collapseMode = $props.collapseMode || (theme === 'workspace' || theme === 'desktop' ? 'rail' : 'hidden')
42
- export const minWidth = $props.minWidth || 64
42
+ export const minWidth = $num($props.minWidth) || 64
43
43
  export const persistKey = $props.persistKey || ''
44
44
  export const shellSelector = $props.shellSelector || ''
45
45
  export const widthVar = $props.widthVar || '--stx-sidebar-width'
@@ -1,6 +1,6 @@
1
1
  <script server cache>
2
2
  export const variant = $props.variant || 'text'
3
- export const count = $props.count || 1
3
+ export const count = $num($props.count) || 1
4
4
  export const width = $props.width || ''
5
5
  export const height = $props.height || ''
6
6
  export const circle = $bool($props.circle)
@@ -1,5 +1,5 @@
1
1
  <script server>
2
- export const currentStep = $props.currentStep || 0
2
+ export const currentStep = $num($props.currentStep) || 0
3
3
  export const orientation = $props.orientation || 'horizontal'
4
4
  export const className = $props.className || ''
5
5
  export const as = $props.as || 'div'
@@ -4,8 +4,8 @@
4
4
  // value leaves the mustache in the JavaScript, which is a SyntaxError that
5
5
  // takes the whole scoped script down -- onClick included. `??` rather than
6
6
  // `||` so an explicit 0 (the first step) survives.
7
- export const stepNumber = $props.stepNumber ?? 0
8
- export const currentStep = $props.currentStep || 0
7
+ export const stepNumber = $num($props.stepNumber, 0)
8
+ export const currentStep = $num($props.currentStep) || 0
9
9
  export const label = $props.label || ''
10
10
  export const description = $props.description || ''
11
11
  export const className = $props.className || ''
@@ -3,8 +3,8 @@ export const products = $props.products || []
3
3
  export const stripePublicKey = $props.stripePublicKey || ''
4
4
  export const apiUrl = $props.apiUrl || ''
5
5
  export const showRemoveProduct = $bool($props.showRemoveProduct, true)
6
- export const shipping = $props.shipping || 0
7
- export const taxes = $props.taxes || 0
6
+ export const shipping = $num($props.shipping) || 0
7
+ export const taxes = $num($props.taxes) || 0
8
8
  export const className = $props.className || ''
9
9
 
10
10
  export const subtotal = products.reduce((sum, product) => sum + (product.price * (product.quantity || 1)), 0)
@@ -8,11 +8,17 @@
8
8
  // [data-stx-tab-panel] descendants on mount and builds the tab list
9
9
  // dynamically.
10
10
  export const tabs = $props.tabs || []
11
- export const defaultTab = $props.defaultTab || 0
11
+ export const defaultTab = $num($props.defaultTab) || 0
12
12
  export const orientation = $props.orientation || 'horizontal'
13
13
  export const variant = $props.variant || 'line'
14
14
  export const className = $props.className || ''
15
15
 
16
+ /*
17
+ * This tab set's own id, so the ids it mints for slot-mode tabs and panels
18
+ * cannot collide with a second <Tabs> on the same page. Same idiom as Dialog.
19
+ */
20
+ export const tabsInstanceId = $uid
21
+
16
22
  const orientationClasses = {
17
23
  horizontal: 'flex-col',
18
24
  vertical: 'flex-row',
@@ -39,6 +45,7 @@ export const hasPropTabs = Array.isArray(tabs) && tabs.length > 0
39
45
 
40
46
  <script client>
41
47
  const emit = defineEmits()
48
+ const tabsInstanceId = {{ tabsInstanceId }}
42
49
  const tabs = {{ tabs }}
43
50
  const variant = {{ variant }}
44
51
  const orientation = {{ orientation }}
@@ -81,10 +88,26 @@ function findOwnPanels() {
81
88
  onMount(() => {
82
89
  if (hasPropTabs) return // legacy mode: prop array already in discoveredTabs
83
90
  const panels = findOwnPanels()
84
- const list = panels.map(p => ({
85
- label: p.dataset.label || '',
86
- icon: p.dataset.icon || '',
87
- }))
91
+ /*
92
+ * Give each panel an id and hand it to its tab, so the tab can point at it.
93
+ *
94
+ * Prop mode numbers both sides itself (`tab-N` / `tab-panel-N`), but in slot
95
+ * mode the panels are the consumer's own markup and may carry no id at all --
96
+ * so the tab button rendered with role="tab" and no aria-controls, and a
97
+ * screen reader had no way to get from the tab to the panel it controls
98
+ * (WCAG 4.1.2). Only assigned when the panel has no id of its own.
99
+ */
100
+ const list = panels.map((p, i) => {
101
+ if (!p.id) p.id = `${tabsInstanceId}-panel-${i}`
102
+ const tabId = `${tabsInstanceId}-tab-${i}`
103
+ p.setAttribute('aria-labelledby', tabId)
104
+ return {
105
+ label: p.dataset.label || '',
106
+ icon: p.dataset.icon || '',
107
+ panelId: p.id,
108
+ tabId,
109
+ }
110
+ })
88
111
  discoveredTabs.set(list)
89
112
  mounted.set(true)
90
113
  })
@@ -193,6 +216,8 @@ defineExpose({ activeTab, selectTab })
193
216
  x-class="getTabClasses(idx)"
194
217
  role="tab"
195
218
  :aria-selected="isActive(idx) ? 'true' : 'false'"
219
+ :aria-controls="tab.panelId"
220
+ :id="tab.tabId"
196
221
  :tabindex="isActive(idx) ? 0 : -1"
197
222
  @click="selectTab(idx)"
198
223
  @keydown="onTabKey($event, idx)"
@@ -3,9 +3,9 @@ export const value = $props.value || ''
3
3
  export const placeholder = $props.placeholder || ''
4
4
  export const disabled = $bool($props.disabled)
5
5
  export const readonly = $bool($props.readonly)
6
- export const rows = $props.rows || 4
6
+ export const rows = $num($props.rows) || 4
7
7
  export const autoResize = $bool($props.autoResize)
8
- export const maxRows = $props.maxRows || 10
8
+ export const maxRows = $num($props.maxRows) || 10
9
9
  export const error = $bool($props.error)
10
10
  export const label = $props.label || ''
11
11
  /*
@@ -1,7 +1,7 @@
1
1
  <script server cache>
2
2
  export const content = $props.content || ''
3
3
  export const position = $props.position || 'top'
4
- export const delay = $props.delay || 0
4
+ export const delay = $num($props.delay) || 0
5
5
  export const className = $props.className || ''
6
6
  export const show = $bool($props.show)
7
7
  export const disabled = $bool($props.disabled)
@@ -7,8 +7,8 @@ export const leave = $props.leave || 'transition-opacity duration-200'
7
7
  export const leaveFrom = $props.leaveFrom || 'opacity-100'
8
8
  export const leaveTo = $props.leaveTo || 'opacity-0'
9
9
  export const appear = $bool($props.appear)
10
- export const duration = $props.duration || 300
11
- export const delay = $props.delay || 0
10
+ export const duration = $num($props.duration) || 300
11
+ export const delay = $num($props.delay) || 0
12
12
  export const preset = $props.preset || ''
13
13
  export const className = $props.className || ''
14
14
 
@@ -2,7 +2,7 @@
2
2
  export const headingText = $props.headingText || 'Two Factor Authentication'
3
3
  export const labelText = $props.labelText || 'Authentication code'
4
4
  export const instructionText = $props.instructionText || 'Open your Symantec 2FA app to view your authentication code.'
5
- export const codeLength = $props.codeLength || 6
5
+ export const codeLength = $num($props.codeLength) || 6
6
6
  export const showRecoveryCode = $bool($props.showRecoveryCode, true)
7
7
  export const className = $props.className || ''
8
8
 
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  // @bun
2
2
  var we=import.meta.require;var ye={__stx:!0,src:"./components/CodeBlock.stx"};var Ce={__stx:!0,src:"./components/Footer.stx"};var $e={__stx:!0,src:"./components/Hero.stx"};var ke={__stx:!0,src:"./components/Installation.stx"};function Dn(e){let{code:t,onSuccess:s,onError:o,timeout:a=2000}=e,n=!1,i=null;return{copied:n,copy:async()=>{try{if(!navigator.clipboard)throw Error("Clipboard API not available");await navigator.clipboard.writeText(t),n=!0,s?.(),i=setTimeout(()=>{n=!1,i=null},a)}catch(d){let h=d instanceof Error?d:Error("Failed to copy code");o?.(h),console.error("Failed to copy code:",h)}},reset:()=>{if(n=!1,i)clearTimeout(i),i=null}}}async function Nn(e){try{return await navigator.clipboard.writeText(e),!0}catch(t){return console.error("Failed to copy to clipboard:",t),!1}}function Se(){if(typeof window>"u")return"light";return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Q(e){return e==="system"?Se():e}function Ln(e={}){let{storageKey:t="theme",defaultTheme:s="system"}=e,o=s;if(typeof window<"u"&&typeof localStorage<"u"){let c=localStorage.getItem(t);if(c)o=c}let a=Q(o)==="dark",n=(c)=>{let d=Q(c);if(typeof document<"u")if(d==="dark")document.documentElement.classList.add("dark");else document.documentElement.classList.remove("dark");if(typeof localStorage<"u")localStorage.setItem(t,c)},i=(c)=>{o=c,n(c)},r=()=>{let d=Q(o)==="dark"?"light":"dark";i(d)};if(n(o),typeof window<"u"&&o==="system")window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(c)=>{if(o==="system")n("system")});return{isDark:a,theme:o,toggle:r,setTheme:i}}function Ie(e,t){if(typeof document>"u")return;document.title=t?t.replace("%s",e):e}function S(e,t,s=!1){if(typeof document>"u")return;let o=s?"property":"name",a=document.querySelector(`meta[${o}="${e}"]`);if(!a)a=document.createElement("meta"),a.setAttribute(o,e),document.head.appendChild(a);a.setAttribute("content",t)}function Ae(e,t){if(typeof document>"u")return;let s=document.querySelector(`link[rel="${e}"]`);if(!s)s=document.createElement("link"),s.setAttribute("rel",e),document.head.appendChild(s);s.setAttribute("href",t)}function zn(e){let{title:t,description:s,author:o,keywords:a,ogImage:n,ogImageWidth:i,ogImageHeight:r,twitterCard:c="summary_large_image",twitterSite:d,twitterCreator:h,canonical:p}=e;if(t)Ie(t),S("og:title",t,!0),S("twitter:title",t);if(s)S("description",s),S("og:description",s,!0),S("twitter:description",s);if(o)S("author",o);if(a&&a.length>0)S("keywords",a.join(", "));if(n)S("og:image",n,!0),S("twitter:image",n);if(i)S("og:image:width",i,!0);if(r)S("og:image:height",r,!0);if(S("twitter:card",c),d)S("twitter:site",d);if(h)S("twitter:creator",h);if(p)Ae("canonical",p);if(S("og:type","website",!0),typeof window<"u")S("og:url",window.location.href,!0)}function Rn(e){let t=[],{title:s,description:o,author:a,keywords:n,ogImage:i,ogImageWidth:r,ogImageHeight:c,twitterCard:d="summary_large_image",twitterSite:h,twitterCreator:p,canonical:m}=e;if(s)t.push(`<title>${I(s)}</title>`),t.push(`<meta property="og:title" content="${I(s)}" />`),t.push(`<meta name="twitter:title" content="${I(s)}" />`);if(o)t.push(`<meta name="description" content="${I(o)}" />`),t.push(`<meta property="og:description" content="${I(o)}" />`),t.push(`<meta name="twitter:description" content="${I(o)}" />`);if(a)t.push(`<meta name="author" content="${I(a)}" />`);if(n&&n.length>0)t.push(`<meta name="keywords" content="${I(n.join(", "))}" />`);if(i)t.push(`<meta property="og:image" content="${I(i)}" />`),t.push(`<meta name="twitter:image" content="${I(i)}" />`);if(r)t.push(`<meta property="og:image:width" content="${I(r)}" />`);if(c)t.push(`<meta property="og:image:height" content="${I(c)}" />`);if(t.push(`<meta name="twitter:card" content="${I(d)}" />`),h)t.push(`<meta name="twitter:site" content="${I(h)}" />`);if(p)t.push(`<meta name="twitter:creator" content="${I(p)}" />`);if(m)t.push(`<link rel="canonical" href="${I(m)}" />`);return t.push('<meta property="og:type" content="website" />'),t.join(`
3
- `)}function I(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function qn(e,t,s={}){let{enabled:o=!0,ignore:a=[]}=s,n=(i)=>{if(!o||!e)return;let r=i.target;if(!e.contains(r)){if(!a.some((d)=>{let h=document.querySelectorAll(d);return Array.from(h).some((p)=>p.contains(r))}))t(i)}};if(typeof document<"u")document.addEventListener("mousedown",n),document.addEventListener("touchstart",n);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}function jn(e,t={}){let{enabled:s=!0,initialFocus:o=null,returnFocus:a=!0,fallbackFocus:n=null}=t,i=null,r=!1;function c(){if(!e)return[];let f=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(f))}function d(f){if(!s||!r||!e)return;let w=c();if(w.length===0){f.preventDefault();return}let y=w[0],v=w[w.length-1];if(f.shiftKey){if(document.activeElement===y||document.activeElement===e)f.preventDefault(),v.focus()}else if(document.activeElement===v)f.preventDefault(),y.focus()}function h(f){if(f.key==="Escape"&&s&&r)m()}function p(){if(!s||!e||r)return;if(i=document.activeElement,o)o.focus();else{let f=c();if(f.length>0)f[0].focus();else if(n)n.focus();else e.focus()}document.addEventListener("keydown",d),document.addEventListener("keydown",h),r=!0}function m(){if(!r)return;if(document.removeEventListener("keydown",d),document.removeEventListener("keydown",h),a&&i)i.focus();r=!1}return{activate:p,deactivate:m}}function Hn(e,t={}){let{enabled:s=!0,preventDefault:o=!0,stopPropagation:a=!1,target:n=typeof document<"u"?document:null}=t,i=Array.isArray(e)?e:[e],r=(c)=>{if(!s)return;i.forEach((d)=>{if(!(Array.isArray(d.key)?d.key:[d.key]).some((m)=>m.toLowerCase()===c.key.toLowerCase()))return;if(d.ctrl!==void 0&&d.ctrl!==c.ctrlKey)return;if(d.shift!==void 0&&d.shift!==c.shiftKey)return;if(d.alt!==void 0&&d.alt!==c.altKey)return;if(d.meta!==void 0&&d.meta!==c.metaKey)return;if(o)c.preventDefault();if(a)c.stopPropagation();d.handler(c)})};if(n)n.addEventListener("keydown",r);return()=>{if(n)n.removeEventListener("keydown",r)}}var Fn={ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};function Kn(e,t,s={}){let{serializer:o=JSON.stringify,deserializer:a=JSON.parse,onError:n=console.error}=s,i=t;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)i=a(p)}}catch(p){n(p)}let r=i,c=new Set;function d(p){try{let m=typeof p==="function"?p(r):p;if(r=m,typeof window<"u")window.localStorage.setItem(e,o(m));c.forEach((f)=>f(m))}catch(m){n(m)}}function h(){try{if(r=t,typeof window<"u")window.localStorage.removeItem(e);c.forEach((p)=>p(t))}catch(p){n(p)}}if(typeof window<"u"){let p=(m)=>{if(m.key===e&&m.newValue!==null)try{let f=a(m.newValue);r=f,c.forEach((w)=>w(f))}catch(f){n(f)}else if(m.key===e&&m.newValue===null)r=t,c.forEach((f)=>f(t))};window.addEventListener("storage",p)}return{value:r,setValue:d,removeValue:h}}function M(e,t={}){let{defaultValue:s=!1}=t,o=s,a=null;if(typeof window<"u"&&"matchMedia"in window){a=window.matchMedia(e),o=a.matches;let i=(r)=>{o=r.matches};if(a.addEventListener)a.addEventListener("change",i);else a.addListener(i)}function n(){if(a)o=a.matches}return{matches:o,updateMatches:n}}var q={xs:"(min-width: 320px)",sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)",reducedMotion:"(prefers-reduced-motion: reduce)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};function Jn(e){return M(q[e])}function _n(){return M(q.mobile)}function Gn(){return M(q.desktop)}function Yn(){return M(q.dark)}function Xn(){return M(q.reducedMotion)}var re=["gray","neutral","slate","zinc","red","green","yellow","blue","indigo"],Qn="--stx-color";function Ee(e,t){return t===void 0?`var(${e})`:`var(${e}, ${t})`}function ei(e={}){let t={};for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;let a={};for(let[n,i]of Object.entries(o))a[n]=Ee(`--stx-color-${s}-${n}`,i);t[s]=a}return t}function ti(e={}){let t=[];for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;for(let a of Object.keys(o))t.push(`--stx-color-${s}-${a}`)}return t}var De="./Accordion-ehpymjam.stx";var Oe="./AccordionItem-fc4ekdqf.stx";var Pe="./Audio-byv8kkvt.stx";var Re="./Login-4666t7j4.stx";var qe="./Signup-pm2r0f2m.stx";var je="./TwoFactorChallenge-st48qkzw.stx";var He="./Avatar-axrzqsdk.stx";var Ve="./Badge-4jxqhkv9.stx";var Ue="./Breadcrumb-pach6f1f.stx";import B from"process";var Je="https://stacksjs.com/components";class A extends Error{component;context;constructor(e,t,s={}){let o=A.formatMessage(e,t,s);super(o);if(this.name="ComponentError",this.component=e,this.context={component:e,...s},Error.captureStackTrace)Error.captureStackTrace(this,A)}static formatMessage(e,t,s){let o=`[${e}] ${t}`;if(s.prop)o+=`
3
+ `)}function I(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function qn(e,t,s={}){let{enabled:o=!0,ignore:a=[]}=s,n=(i)=>{if(!o||!e)return;let r=i.target;if(!e.contains(r)){if(!a.some((d)=>{let h=document.querySelectorAll(d);return Array.from(h).some((p)=>p.contains(r))}))t(i)}};if(typeof document<"u")document.addEventListener("mousedown",n),document.addEventListener("touchstart",n);return()=>{if(typeof document<"u")document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}function Bn(e,t={}){let{enabled:s=!0,initialFocus:o=null,returnFocus:a=!0,fallbackFocus:n=null}=t,i=null,r=!1;function c(){if(!e)return[];let f=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(f))}function d(f){if(!s||!r||!e)return;let w=c();if(w.length===0){f.preventDefault();return}let y=w[0],v=w[w.length-1];if(f.shiftKey){if(document.activeElement===y||document.activeElement===e)f.preventDefault(),v.focus()}else if(document.activeElement===v)f.preventDefault(),y.focus()}function h(f){if(f.key==="Escape"&&s&&r)m()}function p(){if(!s||!e||r)return;if(i=document.activeElement,o)o.focus();else{let f=c();if(f.length>0)f[0].focus();else if(n)n.focus();else e.focus()}document.addEventListener("keydown",d),document.addEventListener("keydown",h),r=!0}function m(){if(!r)return;if(document.removeEventListener("keydown",d),document.removeEventListener("keydown",h),a&&i)i.focus();r=!1}return{activate:p,deactivate:m}}function Hn(e,t={}){let{enabled:s=!0,preventDefault:o=!0,stopPropagation:a=!1,target:n=typeof document<"u"?document:null}=t,i=Array.isArray(e)?e:[e],r=(c)=>{if(!s)return;i.forEach((d)=>{if(!(Array.isArray(d.key)?d.key:[d.key]).some((m)=>m.toLowerCase()===c.key.toLowerCase()))return;if(d.ctrl!==void 0&&d.ctrl!==c.ctrlKey)return;if(d.shift!==void 0&&d.shift!==c.shiftKey)return;if(d.alt!==void 0&&d.alt!==c.altKey)return;if(d.meta!==void 0&&d.meta!==c.metaKey)return;if(o)c.preventDefault();if(a)c.stopPropagation();d.handler(c)})};if(n)n.addEventListener("keydown",r);return()=>{if(n)n.removeEventListener("keydown",r)}}var Fn={ESCAPE:"Escape",ENTER:"Enter",SPACE:" ",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown"};function Kn(e,t,s={}){let{serializer:o=JSON.stringify,deserializer:a=JSON.parse,onError:n=console.error}=s,i=t;try{if(typeof window<"u"){let p=window.localStorage.getItem(e);if(p!==null)i=a(p)}}catch(p){n(p)}let r=i,c=new Set;function d(p){try{let m=typeof p==="function"?p(r):p;if(r=m,typeof window<"u")window.localStorage.setItem(e,o(m));c.forEach((f)=>f(m))}catch(m){n(m)}}function h(){try{if(r=t,typeof window<"u")window.localStorage.removeItem(e);c.forEach((p)=>p(t))}catch(p){n(p)}}if(typeof window<"u"){let p=(m)=>{if(m.key===e&&m.newValue!==null)try{let f=a(m.newValue);r=f,c.forEach((w)=>w(f))}catch(f){n(f)}else if(m.key===e&&m.newValue===null)r=t,c.forEach((f)=>f(t))};window.addEventListener("storage",p)}return{value:r,setValue:d,removeValue:h}}function M(e,t={}){let{defaultValue:s=!1}=t,o=s,a=null;if(typeof window<"u"&&"matchMedia"in window){a=window.matchMedia(e),o=a.matches;let i=(r)=>{o=r.matches};if(a.addEventListener)a.addEventListener("change",i);else a.addListener(i)}function n(){if(a)o=a.matches}return{matches:o,updateMatches:n}}var q={xs:"(min-width: 320px)",sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)",xl:"(min-width: 1280px)","2xl":"(min-width: 1536px)",mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)",reducedMotion:"(prefers-reduced-motion: reduce)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"};function Un(e){return M(q[e])}function _n(){return M(q.mobile)}function Gn(){return M(q.desktop)}function Yn(){return M(q.dark)}function Xn(){return M(q.reducedMotion)}var re=["gray","neutral","slate","zinc","red","green","yellow","blue","indigo"],Qn="--stx-color";function Te(e,t){return t===void 0?`var(${e})`:`var(${e}, ${t})`}function ei(e={}){let t={};for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;let a={};for(let[n,i]of Object.entries(o))a[n]=Te(`--stx-color-${s}-${n}`,i);t[s]=a}return t}function ti(e={}){let t=[];for(let s of re){let o=e[s];if(!o||typeof o==="string")continue;for(let a of Object.keys(o))t.push(`--stx-color-${s}-${a}`)}return t}var De="./Accordion-ehpymjam.stx";var Oe="./AccordionItem-fc4ekdqf.stx";var Pe="./Audio-byv8kkvt.stx";var Re="./Login-4666t7j4.stx";var qe="./Signup-pm2r0f2m.stx";var Be="./TwoFactorChallenge-3tsbfdsd.stx";var He="./Avatar-axrzqsdk.stx";var Ve="./Badge-4jxqhkv9.stx";var Je="./Breadcrumb-cgw1bb6s.stx";import j from"process";var Ue="https://stacksjs.com/components";class A extends Error{component;context;constructor(e,t,s={}){let o=A.formatMessage(e,t,s);super(o);if(this.name="ComponentError",this.component=e,this.context={component:e,...s},Error.captureStackTrace)Error.captureStackTrace(this,A)}static formatMessage(e,t,s){let o=`[${e}] ${t}`;if(s.prop)o+=`
4
4
  Prop: "${s.prop}"`;if(s.received!==void 0)o+=`
5
5
  Received: ${JSON.stringify(s.received)}`;if(s.expected!==void 0){let a=Array.isArray(s.expected)?s.expected.map((n)=>JSON.stringify(n)).join(", "):JSON.stringify(s.expected);o+=`
6
6
  Expected: ${a}`}if(s.details)o+=`
7
7
  Details: ${s.details}`;if(s.docsUrl)o+=`
8
8
  Documentation: ${s.docsUrl}`;else if(e)o+=`
9
- Documentation: ${Je}/${e.toLowerCase()}`;return o}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var R={invalidProp(e,t,s,o){return new A(e,`Invalid prop value for "${t}"`,{prop:t,received:s,expected:o,details:Array.isArray(o)?`The "${t}" prop must be one of the allowed values`:`The "${t}" prop does not match the expected type`})},requiredProp(e,t){return new A(e,`Required prop "${t}" is missing`,{prop:t,details:`The "${t}" prop is required for ${e} to function correctly`})},invalidType(e,t,s,o){return new A(e,`Invalid type for prop "${t}"`,{prop:t,received:typeof s,expected:o,details:`Expected "${t}" to be of type ${o}, but received ${typeof s}`})},componentNotFound(e){return new A("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new A(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new A(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new A(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new A(e,"Failed to render component",{details:t.message})}},H=null;function Ei(e){H=e}function Ti(){H=null}function F(e,t={}){let{throwError:s=!0,logError:o=!0}=t;if(o&&B.env.NODE_ENV!=="production"){if(console.error("Component Error:",e),e instanceof A)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(H)try{H(e)}catch(a){console.error("Error in error handler:",a)}if(s)throw e}function le(e,t,s){return(...o)=>{try{let a=e(...o);if(a instanceof Promise)return a.catch((n)=>{let i=R.eventHandler(t,s,n);throw F(i,{throwError:!1}),i});return a}catch(a){let n=R.eventHandler(t,s,a);throw F(n,{throwError:!1}),n}}}function _e(e,t){if(!e)throw t}function Ge(e,t,s={}){if(B.env.NODE_ENV==="production")return;let o=A.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function Di(e,t){if(B.env.NODE_ENV==="production")return;_e(e,t)}function Ni(e){let t=typeof B<"u"&&B.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){Ge(e,s,o)},error(s,o){let a=new A(e,s,o);F(a,{throwError:!1})}}}function Oi(e,t,s){try{return t()}catch(o){let a=R.render(e,o);return F(a,{throwError:!1}),s}}import Ye from"process";var V=Ye.env.NODE_ENV!=="production";class k{validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new k(this.validate,this.message,!0)}}var l={string:new k((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new k((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new k((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new k((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new k((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`object\`.`),array:new k((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new k(()=>!0,()=>""),oneOf(e){return new k((t)=>e.includes(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected one of [${e.map((a)=>JSON.stringify(a)).join(", ")}].`)},oneOfType(e){return new k((t,s,o)=>e.some((a)=>a.validate(t,s,o)),(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected one of the specified types.`)},arrayOf(e){return new k((t,s,o)=>{if(!Array.isArray(t))return!1;return t.every((a,n)=>e.validate(a,`${s}[${n}]`,o))},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected array of specified type.`)},shape(e){return new k((t,s,o)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[a,n]of Object.entries(e)){if(n.isRequired&&!(a in t))return!1;if(a in t&&!n.validate(t[a],`${s}.${a}`,o))return!1}return!0},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected object matching specified shape.`)},instanceOf(e){return new k((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new k(e,typeof t==="string"?()=>t:t)},min(e){return new k((t)=>typeof t==="number"&&t>=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value >= ${e}.`)},max(e){return new k((t)=>typeof t==="number"&&t<=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value <= ${e}.`)},range(e,t){return new k((s)=>typeof s==="number"&&s>=e&&s<=t,(s,o,a)=>`Invalid prop \`${o}\` of value \`${s}\` supplied to \`${a}\`, expected value between ${e} and ${t}.`)},pattern(e){return new k((t)=>typeof t==="string"&&e.test(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value matching pattern ${e}.`)},email:new k((e)=>typeof e==="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid email address.`),url:new k((e)=>{if(typeof e!=="string")return!1;try{let t=new URL(e);return!0}catch{return!1}},(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid URL.`)};function Xe(e,t,s,o={}){let{throwOnError:a=!1,logWarnings:n=V}=o,i=[];if(!V)return{valid:!0,errors:[]};for(let[r,c]of Object.entries(s)){let d=t[r],h=d===void 0;if(c.isRequired&&h){let p=`Required prop \`${r}\` was not specified in \`${e}\`.`;i.push(p);continue}if(h)continue;if(!c.validate(d,r,e)){let p=c.message(d,r,e);i.push(p)}}if(i.length>0){if(n)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),i.forEach((r)=>console.warn(r)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
9
+ Documentation: ${Ue}/${e.toLowerCase()}`;return o}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var R={invalidProp(e,t,s,o){return new A(e,`Invalid prop value for "${t}"`,{prop:t,received:s,expected:o,details:Array.isArray(o)?`The "${t}" prop must be one of the allowed values`:`The "${t}" prop does not match the expected type`})},requiredProp(e,t){return new A(e,`Required prop "${t}" is missing`,{prop:t,details:`The "${t}" prop is required for ${e} to function correctly`})},invalidType(e,t,s,o){return new A(e,`Invalid type for prop "${t}"`,{prop:t,received:typeof s,expected:o,details:`Expected "${t}" to be of type ${o}, but received ${typeof s}`})},componentNotFound(e){return new A("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new A(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new A(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new A(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new A(e,"Failed to render component",{details:t.message})}},H=null;function Ti(e){H=e}function Ei(){H=null}function F(e,t={}){let{throwError:s=!0,logError:o=!0}=t;if(o&&j.env.NODE_ENV!=="production"){if(console.error("Component Error:",e),e instanceof A)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(H)try{H(e)}catch(a){console.error("Error in error handler:",a)}if(s)throw e}function le(e,t,s){return(...o)=>{try{let a=e(...o);if(a instanceof Promise)return a.catch((n)=>{let i=R.eventHandler(t,s,n);throw F(i,{throwError:!1}),i});return a}catch(a){let n=R.eventHandler(t,s,a);throw F(n,{throwError:!1}),n}}}function _e(e,t){if(!e)throw t}function Ge(e,t,s={}){if(j.env.NODE_ENV==="production")return;let o=A.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function Di(e,t){if(j.env.NODE_ENV==="production")return;_e(e,t)}function Ni(e){let t=typeof j<"u"&&j.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){Ge(e,s,o)},error(s,o){let a=new A(e,s,o);F(a,{throwError:!1})}}}function Oi(e,t,s){try{return t()}catch(o){let a=R.render(e,o);return F(a,{throwError:!1}),s}}import Ye from"process";var V=Ye.env.NODE_ENV!=="production";class k{validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new k(this.validate,this.message,!0)}}var l={string:new k((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new k((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new k((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new k((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new k((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`object\`.`),array:new k((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new k(()=>!0,()=>""),oneOf(e){return new k((t)=>e.includes(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected one of [${e.map((a)=>JSON.stringify(a)).join(", ")}].`)},oneOfType(e){return new k((t,s,o)=>e.some((a)=>a.validate(t,s,o)),(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected one of the specified types.`)},arrayOf(e){return new k((t,s,o)=>{if(!Array.isArray(t))return!1;return t.every((a,n)=>e.validate(a,`${s}[${n}]`,o))},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected array of specified type.`)},shape(e){return new k((t,s,o)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[a,n]of Object.entries(e)){if(n.isRequired&&!(a in t))return!1;if(a in t&&!n.validate(t[a],`${s}.${a}`,o))return!1}return!0},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected object matching specified shape.`)},instanceOf(e){return new k((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new k(e,typeof t==="string"?()=>t:t)},min(e){return new k((t)=>typeof t==="number"&&t>=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value >= ${e}.`)},max(e){return new k((t)=>typeof t==="number"&&t<=e,(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value <= ${e}.`)},range(e,t){return new k((s)=>typeof s==="number"&&s>=e&&s<=t,(s,o,a)=>`Invalid prop \`${o}\` of value \`${s}\` supplied to \`${a}\`, expected value between ${e} and ${t}.`)},pattern(e){return new k((t)=>typeof t==="string"&&e.test(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected value matching pattern ${e}.`)},email:new k((e)=>typeof e==="string"&&/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid email address.`),url:new k((e)=>{if(typeof e!=="string")return!1;try{let t=new URL(e);return!0}catch{return!1}},(e,t,s)=>`Invalid prop \`${t}\` of value \`${e}\` supplied to \`${s}\`, expected valid URL.`)};function Xe(e,t,s,o={}){let{throwOnError:a=!1,logWarnings:n=V}=o,i=[];if(!V)return{valid:!0,errors:[]};for(let[r,c]of Object.entries(s)){let d=t[r],h=d===void 0;if(c.isRequired&&h){let p=`Required prop \`${r}\` was not specified in \`${e}\`.`;i.push(p);continue}if(h)continue;if(!c.validate(d,r,e)){let p=c.message(d,r,e);i.push(p)}}if(i.length>0){if(n)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),i.forEach((r)=>console.warn(r)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
10
10
  ${i.join(`
11
- `)}`)}return{valid:i.length===0,errors:i}}function D(e,t,s){return(o)=>Xe(e,o,t,s)}function zi(e,t,s="value"){if(!V)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Ri(e,t,s="value"){if(!V)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Qe="./Button-k2q6811a.stx";var et={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},Wi=D("Button",et);function Hi(e){return le(e,"Button","onClick")}function Fi(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw R.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function Vi(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw R.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var st="./Calendar-93yvwp1s.stx";var at="./DateRangePicker-z64qqw84.stx";var it="./EmptyState-s790dbym.stx";var lt="./ThemeToggle-4wm9zare.stx";var dt="./Card-r55zpjqh.stx";var ht="./Checkbox-tt8bze29.stx";var ft="./Combobox-9xh1jgjr.stx";var bt="./ComboboxButton-4r6a45s1.stx";var xt="./ComboboxInput-1gyfpnca.stx";var wt="./ComboboxOption-wkw70js7.stx";var Ct="./ComboboxOptions-zhr9b6rx.stx";var kt="./CommandPalette-vvaqtqat.stx";var It="./CommandPaletteItem-7290ce1z.stx";var Et="./Dialog-d1020hj6.stx";var Dt="./DialogBackdrop-de5m5m4w.stx";var Ot="./DialogDescription-gth4c2kx.stx";var Pt="./DialogPanel-vhdqymc2.stx";var Rt="./DialogTitle-0jjdk5ra.stx";var qt="./Drawer-hc0jjpsw.stx";var jt="./Dropdown-25160tc6.stx";var Ht="./DropdownButton-wxc25hsy.stx";var Vt="./DropdownItem-af0vzc8a.stx";var Ut="./DropdownItems-bkz7jkyz.stx";var _t="./Form-ewzy10ye.stx";var Gt={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},Zr=D("Form",Gt);var Xt="./Image-tw2jxbpb.stx";var Qt="./EmailInput-agb8kqae.stx";var ts="./NumberInput-g3jfy120.stx";var os="./PasswordInput-p2rt5926.stx";var ns="./SearchInput-psbjk2ye.stx";var rs="./TextInput-t0a4ch49.stx";var ls={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},cs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},ds={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},ps={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},hs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},dl=D("TextInput",cs),pl=D("EmailInput",ls),hl=D("PasswordInput",ps),ul=D("NumberInput",ds),fl=D("SearchInput",hs);var fs="./Listbox-32gzxace.stx";var bs="./ListboxButton-gan8e3nw.stx";var xs="./ListboxLabel-ka0hfm7b.stx";var ws="./ListboxOption-gpaqvk3s.stx";var Cs="./ListboxOptions-2928864k.stx";var ks="./FilterChip-00ja5jhz.stx";var Is="./FilterChips-7pnzycfd.stx";var Es="./ListRow-8d3e1yxh.stx";var Ds="./NavBar-qqrrhdnk.stx";var Os="./SectionCard-8ctdacjr.stx";var Ps="./TabBar-8143650x.stx";var Rs="./TabBarItem-kddfnhk3.stx";var qs="./Navigator-1yk1c3pp.stx";var js="./Notification-b3cz24f0.stx";var Hs="./Pagination-330ybzf1.stx";var Vs="./Checkout-22wh3s22.stx";var Us="./DefaultPaymentMethod-ss3x61tr.stx";var _s="./PaymentMethods-z4hhr0kv.stx";var Ys="./SubscriptionCheckout-f1ev0ry8.stx";var Zs="./Popover-9m42pym0.stx";var eo="./PopoverButton-3w6550hv.stx";var so="./PopoverPanel-d84gk1w1.stx";var ao="./Portal-m73vz879.stx";var io="./Progress-bv65bwh8.stx";var lo="./Radio-50f4wq25.stx";var po="./RadioGroup-smqcqgds.stx";var uo="./RadioGroupDescription-z34r9avr.stx";var mo="./RadioGroupLabel-ka0hfm7b.stx";var go="./RadioGroupOption-twcw1b2a.stx";var vo="./Select-1p9mcbsb.stx";var yo="./Sidebar-ve2asgf3.stx";var $o="./SidebarFooter-s7skj92y.stx";var So="./SidebarHeader-x7jdhmyr.stx";var Ao="./SidebarItem-r4f2pref.stx";var To="./SidebarPinned-48kyk193.stx";var No="./SidebarSection-5sqza2j6.stx";var Lo="./SidebarSpace-bwv98azf.stx";var zo="./SidebarSpaces-mdtrynr2.stx";var Mo="./SidebarSpaceSwitcher-1mycft2g.stx";var K={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},z={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},qo={selection:"classes",pane:"bg-[#f4f4f3] dark:bg-neutral-950 text-zinc-950 dark:text-white select-none",layers:{},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-5",sectionHeader:"group/section flex w-full items-center gap-2.5 px-4 pb-2 pt-5 text-[13px] font-semibold uppercase tracking-[0.12em] text-zinc-400 dark:text-zinc-500",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[16px] px-3.5 py-2 text-[14px] leading-tight transition-colors duration-150",hover:"hover:bg-[#ececea] hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e7e7e5] text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-[#e2e2e0] dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-500 dark:text-zinc-500",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/70 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Bo={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},jo={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},Wo={...z,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Ho={...z,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Fo={...z,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:z,tahoe:z,"macos-tahoe":z,"macos-latest":z,arc:jo,workspace:qo,desktop:Bo,solid:Wo,transparent:Ho,vibrancy:Fo};function _c(e){return ce[e||"macos"]||ce.macos}function Gc(e){if(!e)return;return K[e]||e}var Vo=K.gray;function L(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function de(e){return{light:{from:L(e,35,"#ffffff"),to:L(e,12.5,"#ffffff"),ink:L(e,22,"#17171b"),accent:L(e,88,"#2a2a30")},dark:{from:L(e,27,"#101014"),to:L(e,10,"#08080b"),ink:L(e,12,"#f4f4f7"),accent:L(e,74,"#ffffff")}}}function Zc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Ko(e){if(!e)return de(Vo);if(typeof e!=="string")return e;return de(K[e]||e)}function Uo(e){return[`--stx-space-light-from: ${e.light.from}`,`--stx-space-light-to: ${e.light.to}`,`--stx-space-light-ink: ${e.light.ink}`,`--stx-space-light-accent: ${e.light.accent}`,`--stx-space-dark-from: ${e.dark.from}`,`--stx-space-dark-to: ${e.dark.to}`,`--stx-space-dark-ink: ${e.dark.ink}`,`--stx-space-dark-accent: ${e.dark.accent}`].join("; ")}function pe(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function Jo(e){let t=Ko(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:pe(e.action,e.id,"action","i-f7-plus"),clear:pe(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Uo(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Qc(e){return(e||[]).map(Jo)}function ed(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function td(e){return e.map((t)=>t.tint)}var Go="./Skeleton-me2hwqrc.stx";var Xo="./Spinner-vhnc3y03.stx";var Qo="./Stepper-rgbk76hd.stx";var ta="./StepperStep-b78wmshd.stx";class U{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((n)=>n(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let n=0;n<e.length;n++){let i=e.charAt(n),r=a+i;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=i}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),n=a;for(let i=1;i<t.length;i++){let r=t[i],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;n+=c,s[o++]=a+c.charAt(0),a=c}return n}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),n={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let i=JSON.stringify(n);if(s?.compress)i=this.compress(i);if(s?.encrypt)i=this.encrypt(i);this.storage.setItem(o,i),this.notifyWatchers(e,t,a)}catch(i){console.error("Storage set error:",i)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var Ad={local:new U("local"),session:new U("session")};function Ed(e="local",t){return new U(e,t)}var oa="./Switch-27hp6pq5.stx";var na="./Table-3ek3w95h.stx";var ra="./TableBody-y49bqb1p.stx";var ca="./TableCell-8swtcq8s.stx";var pa="./TableHead-e9xvjx2j.stx";var ua="./TableHeader-qsc3e208.stx";var ma="./TableRow-dt8e11aj.stx";var ga="./TabPanel-5htevsq6.stx";var va="./Tabs-f1n3ggkw.stx";var ya="./Teleport-c8nn3757.stx";var $a="./Textarea-k1gf21kw.stx";var Sa="./Tooltip-g2j17eg9.stx";var Aa="./Transition-hmm11qk1.stx";var Ta="./Video-rhy7dskw.stx";var Na="./VirtualList-fa7v5a3h.stx";var La="./VirtualTable-kp7b3wyv.stx";var Pa=0;function he(e="a11y"){return`${e}-${++Pa}-${Date.now()}`}function xp(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,n=document.createElement(o?"label":"span");if(n.id=a,n.textContent=e,!o)Object.assign(n.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(n,t);else document.body.appendChild(n);return a}function vp(e,t){let s=he("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function wp(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ee(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function yp(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:i=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,m=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),y();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let E=C[0],O=C[C.length-1];if(x.shiftKey){if(document.activeElement===E)x.preventDefault(),O.focus()}else if(document.activeElement===O)x.preventDefault(),E.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof i==="function"){if(!i(x)&&n)y()}else if(!i&&n)y()}};function w(){if(d)return;d=!0,p=document.activeElement;let x=s||ee(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",m),document.addEventListener("click",f),r?.()}function y(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",m),document.removeEventListener("click",f),c?.()}function v(){h=!0}function g(){h=!1}return{activate:w,deactivate:y,pause:v,unpause:g}}function Cp(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:i}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let m=c();if(p<0||p>=m.length)return;m.forEach((f,w)=>{if(w===p){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),r=p,i?.(p,m[p])},h=(p)=>{let f=c().length-1,w=!1,y=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"Home":y=0,w=!0;break;case"End":y=f,w=!0;break}if(w)p.preventDefault(),d(y)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var $p={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function kp(e){return document.activeElement===e}function Sp(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,i=o[n];if(i)i.focus()}function Ip(e){if(e.getAttribute("aria-hidden")==="true")return!1;let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1;return!0}var Ap={setExpanded(e,t){e.setAttribute("aria-expanded",String(t))},setSelected(e,t){e.setAttribute("aria-selected",String(t))},setChecked(e,t){e.setAttribute("aria-checked",String(t))},setDisabled(e,t){if(e.setAttribute("aria-disabled",String(t)),t)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,t){if(t)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,t){e.setAttribute("aria-pressed",String(t))},setInvalid(e,t){e.setAttribute("aria-invalid",String(t))},setRequired(e,t){e.setAttribute("aria-required",String(t))},setLive(e,t){e.setAttribute("aria-live",t)},setBusy(e,t){e.setAttribute("aria-busy",String(t))}};function Ep(e){let t=document.createElement("span");return t.textContent=e,t.className="sr-only",Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t}function Tp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function Dp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function Np(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function Op(e,t="Skip to main content"){let s=document.createElement("a");return s.href=`#${e}`,s.textContent=t,s.className="skip-link",Object.assign(s.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),s.addEventListener("focus",()=>{s.style.top="0"}),s.addEventListener("blur",()=>{s.style.top="-40px"}),s}function Lp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let i of n)if(!document.getElementById(i))t.push(`${o} references non-existent ID: ${i}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var za=(e,t,s,o)=>{return s*e/o+t},Ra=(e,t,s,o)=>{return e/=o,s*e*e+t},Ma=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},qa=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e+t;return e--,-s/2*(e*(e-2)-1)+t},Ba=(e,t,s,o)=>{return e/=o,s*e*e*e+t},ja=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},Wa=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},Ha=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},Fa=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Va=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e+t;return e-=2,-s/2*(e*e*e*e-2)+t},Ka=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ua=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ja=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e*e+t;return e-=2,s/2*(e*e*e*e*e+2)+t},_a=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},Ga=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ya=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Xa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Za=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Qa=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},en=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},tn=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},sn=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},on=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return e-=1,-(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},an=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},nn=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);if(e<1)return e-=1,-0.5*(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},rn=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},ln=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},cn=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},te=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ue=(e,t,s,o)=>{return s-te(o-e,0,s,o)+t},dn=(e,t,s,o)=>{if(e<o/2)return ue(e*2,0,s,o)*0.5+t;return te(e*2-o,0,s,o)*0.5+s*0.5+t},zp={linear:za,easeInQuad:Ra,easeOutQuad:Ma,easeInOutQuad:qa,easeInCubic:Ba,easeOutCubic:ja,easeInOutCubic:Wa,easeInQuart:Ha,easeOutQuart:Fa,easeInOutQuart:Va,easeInQuint:Ka,easeOutQuint:Ua,easeInOutQuint:Ja,easeInSine:_a,easeOutSine:Ga,easeInOutSine:Ya,easeInExpo:Xa,easeOutExpo:Za,easeInOutExpo:Qa,easeInCirc:en,easeOutCirc:tn,easeInOutCirc:sn,easeInElastic:on,easeOutElastic:an,easeInOutElastic:nn,easeInBack:rn,easeOutBack:ln,easeInOutBack:cn,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:dn};function pn(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:i="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${i} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=pn(t,s)}function Mp(e){e.style.animation=""}function hn(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function qp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,i)=>{let r=`${i*o}ms`;fe(n,t,{...a,delay:r})})}async function Bp(e,t){for(let s of t)fe(e,s.name,s.options),await hn(e)}var jp={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function Wp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function Hp(e,t){let s=`
11
+ `)}`)}return{valid:i.length===0,errors:i}}function D(e,t,s){return(o)=>Xe(e,o,t,s)}function zi(e,t,s="value"){if(!V)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Ri(e,t,s="value"){if(!V)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Qe="./Button-k2q6811a.stx";var et={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},Wi=D("Button",et);function Hi(e){return le(e,"Button","onClick")}function Fi(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw R.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function Vi(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw R.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var st="./Calendar-5vs6x7gj.stx";var at="./DateRangePicker-z64qqw84.stx";var it="./EmptyState-s790dbym.stx";var lt="./ThemeToggle-4wm9zare.stx";var dt="./Card-r55zpjqh.stx";var ht="./Checkbox-tt8bze29.stx";var ft="./Combobox-9xh1jgjr.stx";var bt="./ComboboxButton-4r6a45s1.stx";var xt="./ComboboxInput-1gyfpnca.stx";var wt="./ComboboxOption-wkw70js7.stx";var Ct="./ComboboxOptions-zhr9b6rx.stx";var kt="./CommandPalette-vvaqtqat.stx";var It="./CommandPaletteItem-7290ce1z.stx";var Tt="./Dialog-e9a4r6d0.stx";var Dt="./DialogBackdrop-de5m5m4w.stx";var Ot="./DialogDescription-gth4c2kx.stx";var Pt="./DialogPanel-vhdqymc2.stx";var Rt="./DialogTitle-ke58hh68.stx";var qt="./Drawer-hc0jjpsw.stx";var Bt="./Dropdown-25160tc6.stx";var Ht="./DropdownButton-wxc25hsy.stx";var Vt="./DropdownItem-af0vzc8a.stx";var Jt="./DropdownItems-bkz7jkyz.stx";var _t="./Form-ewzy10ye.stx";var Gt={action:l.string,method:l.oneOf(["GET","POST","PUT","DELETE","PATCH"]),validationSchema:l.object,initialValues:l.object,validateOnChange:l.boolean,validateOnBlur:l.boolean,onSubmit:l.func,onError:l.func,className:l.string},Zr=D("Form",Gt);var Xt="./Image-tw2jxbpb.stx";var Qt="./EmailInput-agb8kqae.stx";var ts="./NumberInput-g3jfy120.stx";var os="./PasswordInput-p2rt5926.stx";var ns="./SearchInput-psbjk2ye.stx";var rs="./TextInput-t0a4ch49.stx";var ls={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string},cs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},ds={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,min:l.number,max:l.number,step:l.number,showControls:l.boolean},ps={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,showStrength:l.boolean},hs={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,onSearch:l.func,loading:l.boolean},dl=D("TextInput",cs),pl=D("EmailInput",ls),hl=D("PasswordInput",ps),ul=D("NumberInput",ds),fl=D("SearchInput",hs);var fs="./Listbox-32gzxace.stx";var bs="./ListboxButton-gan8e3nw.stx";var xs="./ListboxLabel-ka0hfm7b.stx";var ws="./ListboxOption-gpaqvk3s.stx";var Cs="./ListboxOptions-2928864k.stx";var ks="./FilterChip-00ja5jhz.stx";var Is="./FilterChips-7pnzycfd.stx";var Ts="./ListRow-8d3e1yxh.stx";var Ds="./NavBar-qqrrhdnk.stx";var Os="./SectionCard-8ctdacjr.stx";var Ps="./TabBar-8143650x.stx";var Rs="./TabBarItem-kddfnhk3.stx";var qs="./Navigator-1yk1c3pp.stx";var Bs="./Notification-b3cz24f0.stx";var Hs="./Pagination-8bhbkpcp.stx";var Vs="./Checkout-crbegxyv.stx";var Js="./DefaultPaymentMethod-ss3x61tr.stx";var _s="./PaymentMethods-z4hhr0kv.stx";var Ys="./SubscriptionCheckout-rdcv32n1.stx";var Zs="./Popover-9m42pym0.stx";var eo="./PopoverButton-3w6550hv.stx";var so="./PopoverPanel-d84gk1w1.stx";var ao="./Portal-m73vz879.stx";var io="./Progress-2qzb77kc.stx";var lo="./Radio-50f4wq25.stx";var po="./RadioGroup-smqcqgds.stx";var uo="./RadioGroupDescription-z34r9avr.stx";var mo="./RadioGroupLabel-ka0hfm7b.stx";var go="./RadioGroupOption-twcw1b2a.stx";var vo="./Select-1p9mcbsb.stx";var yo="./Sidebar-8dygywjv.stx";var $o="./SidebarFooter-s7skj92y.stx";var So="./SidebarHeader-x7jdhmyr.stx";var Ao="./SidebarItem-r4f2pref.stx";var Eo="./SidebarPinned-48kyk193.stx";var No="./SidebarSection-5sqza2j6.stx";var Lo="./SidebarSpace-bwv98azf.stx";var zo="./SidebarSpaces-mdtrynr2.stx";var Mo="./SidebarSpaceSwitcher-1mycft2g.stx";var K={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},z={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},qo={selection:"classes",pane:"bg-[#f4f4f3] dark:bg-neutral-950 text-zinc-950 dark:text-white select-none",layers:{},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-5",sectionHeader:"group/section flex w-full items-center gap-2.5 px-4 pb-2 pt-5 text-[13px] font-semibold uppercase tracking-[0.12em] text-zinc-400 dark:text-zinc-500",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[16px] px-3.5 py-2 text-[14px] leading-tight transition-colors duration-150",hover:"hover:bg-[#ececea] hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e7e7e5] text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-[#e2e2e0] dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-500 dark:text-zinc-500",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/70 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},jo={selection:"classes",pane:"bg-[#f3f3f1]/48 dark:bg-neutral-950/32 backdrop-blur-3xl backdrop-saturate-150 text-zinc-950 dark:text-white select-none",layers:{tint:"bg-[linear-gradient(112deg,rgba(255,255,255,0.20)_0%,rgba(255,255,255,0.04)_45%,rgba(226,226,222,0.16)_100%)] dark:bg-[linear-gradient(112deg,rgba(255,255,255,0.08)_0%,rgba(255,255,255,0.02)_46%,rgba(255,255,255,0.06)_100%)]"},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-5 py-2",sectionHeader:"group/section flex w-full items-center gap-2.5 px-3 pb-1.5 pt-3 rounded-[14px] text-[12px] font-semibold uppercase tracking-[0.10em] text-zinc-500/80 dark:text-zinc-400/80",sectionChevron:"i-f7-chevron-down h-3 w-3 ml-auto opacity-0 group-hover/section:opacity-100 transition-opacity duration-150 transition-transform duration-200",sectionGroup:"flex flex-col space-y-1",item:{base:"flex w-full items-center gap-3 rounded-[14px] px-3 py-1.5 text-[13.5px] leading-tight transition-colors duration-150",hover:"hover:bg-white/38 hover:text-zinc-950 dark:hover:bg-white/10",active:"bg-[#e8e8e6]/90 text-zinc-950 dark:bg-white/12 dark:text-white",pressed:"active:bg-white/50 dark:active:bg-white/15",disabled:"opacity-50 pointer-events-none",disclosure:"flex h-4 w-4 shrink-0 items-center justify-center",chevron:"i-f7-chevron-right h-3 w-3 opacity-50 transition-transform duration-200",iconSlot:"flex h-5 w-5 shrink-0 items-center justify-center",icon:"h-[18px] w-[18px] text-zinc-600 dark:text-zinc-400",image:"h-5 w-5 rounded object-cover",label:"flex-1 truncate text-left text-zinc-700 dark:text-zinc-300",count:"ml-auto grid h-5 min-w-5 place-items-center rounded-full bg-white/72 px-1.5 text-[11px] font-medium text-zinc-500 shadow-sm dark:bg-white/10 dark:text-zinc-400",indentPerLevel:12}},Bo={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},Wo={...z,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Ho={...z,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Fo={...z,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},ce={macos:z,tahoe:z,"macos-tahoe":z,"macos-latest":z,arc:Bo,workspace:qo,desktop:jo,solid:Wo,transparent:Ho,vibrancy:Fo};function _c(e){return ce[e||"macos"]||ce.macos}function Gc(e){if(!e)return;return K[e]||e}var Vo=K.gray;function L(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function de(e){return{light:{from:L(e,35,"#ffffff"),to:L(e,12.5,"#ffffff"),ink:L(e,22,"#17171b"),accent:L(e,88,"#2a2a30")},dark:{from:L(e,27,"#101014"),to:L(e,10,"#08080b"),ink:L(e,12,"#f4f4f7"),accent:L(e,74,"#ffffff")}}}function Zc(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Ko(e){if(!e)return de(Vo);if(typeof e!=="string")return e;return de(K[e]||e)}function Jo(e){return[`--stx-space-light-from: ${e.light.from}`,`--stx-space-light-to: ${e.light.to}`,`--stx-space-light-ink: ${e.light.ink}`,`--stx-space-light-accent: ${e.light.accent}`,`--stx-space-dark-from: ${e.dark.from}`,`--stx-space-dark-to: ${e.dark.to}`,`--stx-space-dark-ink: ${e.dark.ink}`,`--stx-space-dark-accent: ${e.dark.accent}`].join("; ")}function pe(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function Uo(e){let t=Ko(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:pe(e.action,e.id,"action","i-f7-plus"),clear:pe(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Jo(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Qc(e){return(e||[]).map(Uo)}function ed(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function td(e){return e.map((t)=>t.tint)}var Go="./Skeleton-m4p66zcs.stx";var Xo="./Spinner-vhnc3y03.stx";var Qo="./Stepper-68gxcmej.stx";var ta="./StepperStep-zf4pq1s0.stx";class J{storage;namespace;watchers=new Map;encryptionKey="stx-storage-key";constructor(e="local",t=""){if(this.storage=e==="local"?globalThis.localStorage:globalThis.sessionStorage,this.namespace=t,typeof window<"u")window.addEventListener("storage",this.handleStorageEvent.bind(this))}handleStorageEvent(e){if(!e.key)return;let t=this.namespace&&e.key.startsWith(`${this.namespace}:`)?e.key.slice(this.namespace.length+1):e.key,s=this.watchers.get(t);if(s){let o=e.oldValue?JSON.parse(e.oldValue).value:null,a=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((n)=>n(a,o,t))}}encrypt(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e.charCodeAt(s)^this.encryptionKey.charCodeAt(s%this.encryptionKey.length));return btoa(t)}decrypt(e){try{let t=atob(e),s="";for(let o=0;o<t.length;o++)s+=String.fromCharCode(t.charCodeAt(o)^this.encryptionKey.charCodeAt(o%this.encryptionKey.length));return s}catch{return e}}compress(e){if(e.length<100)return e;let t={},s=256,o=[],a="";for(let n=0;n<e.length;n++){let i=e.charAt(n),r=a+i;if(t[r]!==void 0)a=r;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[r]=s++,a=i}if(a!=="")o.push(a.length>1?t[a]:a.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,a=String.fromCharCode(t[0]),n=a;for(let i=1;i<t.length;i++){let r=t[i],c;if(s[r]!==void 0)c=s[r];else if(r===o)c=a+a.charAt(0);else return e;n+=c,s[o++]=a+c.charAt(0),a=c}return n}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),a=this.get(e),n={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let i=JSON.stringify(n);if(s?.compress)i=this.compress(i);if(s?.encrypt)i=this.encrypt(i);this.storage.setItem(o,i),this.notifyWatchers(e,t,a)}catch(i){console.error("Storage set error:",i)}}get(e){let t=this.getKey(e);try{let s=this.storage.getItem(t);if(!s)return null;if(s.match(/^[A-Z0-9+/]+=*$/i))try{s=this.decrypt(s)}catch{}if(s.startsWith("["))try{s=this.decompress(s)}catch{}let o=JSON.parse(s);if(o.expire&&Date.now()-o.timestamp>o.expire)return this.remove(e),null;return o.value}catch(s){return console.error("Storage get error:",s),null}}watch(e,t){if(!this.watchers.has(e))this.watchers.set(e,new Set);return this.watchers.get(e).add(t),()=>{let s=this.watchers.get(e);if(s){if(s.delete(t),s.size===0)this.watchers.delete(e)}}}notifyWatchers(e,t,s){let o=this.watchers.get(e);if(o)o.forEach((a)=>a(t,s,e))}remove(e){let t=this.getKey(e),s=this.get(e);this.storage.removeItem(t),this.notifyWatchers(e,null,s)}clear(){if(this.namespace)this.keys().forEach((t)=>this.remove(t));else this.storage.clear()}has(e){return this.get(e)!==null}keys(){let e=Object.keys(this.storage);if(this.namespace){let t=`${this.namespace}:`;return e.filter((s)=>s.startsWith(t)).map((s)=>s.slice(t.length))}return e}size(){return this.keys().length}getQuota(){if("storage"in navigator&&"estimate"in navigator.storage)return null;try{let e=0;for(let s=0;s<this.storage.length;s++){let o=this.storage.key(s);if(o){let a=this.storage.getItem(o)||"";e+=o.length+a.length}}let t=5242880;return{usage:e*2,quota:t,percentage:e*2/t*100}}catch{return null}}setMany(e,t){Object.entries(e).forEach(([s,o])=>{this.set(s,o,t)})}getMany(e){let t={};return e.forEach((s)=>{t[s]=this.get(s)}),t}removeMany(e){e.forEach((t)=>this.remove(t))}}var Ad={local:new J("local"),session:new J("session")};function Td(e="local",t){return new J(e,t)}var oa="./Switch-27hp6pq5.stx";var na="./Table-3ek3w95h.stx";var ra="./TableBody-y49bqb1p.stx";var ca="./TableCell-8swtcq8s.stx";var pa="./TableHead-e9xvjx2j.stx";var ua="./TableHeader-qsc3e208.stx";var ma="./TableRow-dt8e11aj.stx";var ga="./TabPanel-5htevsq6.stx";var va="./Tabs-3j2h0jjn.stx";var ya="./Teleport-c8nn3757.stx";var $a="./Textarea-4zzr72zh.stx";var Sa="./Tooltip-sq6tfy00.stx";var Aa="./Transition-7m0mk45s.stx";var Ea="./Video-rhy7dskw.stx";var Na="./VirtualList-fa7v5a3h.stx";var La="./VirtualTable-kp7b3wyv.stx";var Pa=0;function he(e="a11y"){return`${e}-${++Pa}-${Date.now()}`}function xp(e,t,s={}){let{visible:o=!1,id:a=he("label")}=s,n=document.createElement(o?"label":"span");if(n.id=a,n.textContent=e,!o)Object.assign(n.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"});if(t)if(t.setAttribute("aria-labelledby",a),t.parentElement)t.parentElement.insertBefore(n,t);else document.body.appendChild(n);return a}function vp(e,t){let s=he("desc"),o=document.createElement("span");if(o.id=s,o.textContent=e,Object.assign(o.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t)if(t.setAttribute("aria-describedby",s),t.parentElement)t.parentElement.insertBefore(o,t);else document.body.appendChild(o);return s}function wp(e,t="polite"){let s=document.createElement("div");s.setAttribute("role","status"),s.setAttribute("aria-live",t),s.setAttribute("aria-atomic","true"),Object.assign(s.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),document.body.appendChild(s),setTimeout(()=>{s.textContent=e},100),setTimeout(()=>{s.parentNode?.removeChild(s)},1000)}function ee(e){let t=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(",");return Array.from(e.querySelectorAll(t)).filter((s)=>s.offsetParent!==null)}function yp(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:i=!1,onActivate:r,onDeactivate:c}=t,d=!1,h=!1,p=null,m=(x)=>{if(h)return;if(a&&x.key==="Escape"){x.preventDefault(),y();return}if(x.key==="Tab"){let C=ee(e);if(C.length===0){x.preventDefault();return}let T=C[0],O=C[C.length-1];if(x.shiftKey){if(document.activeElement===T)x.preventDefault(),O.focus()}else if(document.activeElement===O)x.preventDefault(),T.focus()}},f=(x)=>{if(h)return;if(!e.contains(x.target)){if(typeof i==="function"){if(!i(x)&&n)y()}else if(!i&&n)y()}};function w(){if(d)return;d=!0,p=document.activeElement;let x=s||ee(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",m),document.addEventListener("click",f),r?.()}function y(){if(!d)return;d=!1;let x=o||p;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",m),document.removeEventListener("click",f),c?.()}function v(){h=!0}function g(){h=!1}return{activate:w,deactivate:y,pause:v,unpause:g}}function Cp(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:i}=t,r=o,c=()=>{return Array.from(e.querySelectorAll(s))},d=(p)=>{let m=c();if(p<0||p>=m.length)return;m.forEach((f,w)=>{if(w===p){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),r=p,i?.(p,m[p])},h=(p)=>{let f=c().length-1,w=!1,y=r;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(y=r+1,y>f)y=n?0:f;w=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(y=r-1,y<0)y=n?f:0;w=!0}break;case"Home":y=0,w=!0;break;case"End":y=f,w=!0;break}if(w)p.preventDefault(),d(y)};return d(o),e.addEventListener("keydown",h),()=>{e.removeEventListener("keydown",h)}}var $p={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function kp(e){return document.activeElement===e}function Sp(e,t){let s=t||document.activeElement,o=ee(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,i=o[n];if(i)i.focus()}function Ip(e){if(e.getAttribute("aria-hidden")==="true")return!1;let t=window.getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden")return!1;return!0}var Ap={setExpanded(e,t){e.setAttribute("aria-expanded",String(t))},setSelected(e,t){e.setAttribute("aria-selected",String(t))},setChecked(e,t){e.setAttribute("aria-checked",String(t))},setDisabled(e,t){if(e.setAttribute("aria-disabled",String(t)),t)e.setAttribute("tabindex","-1");else e.removeAttribute("tabindex")},setHidden(e,t){if(t)e.setAttribute("aria-hidden","true");else e.removeAttribute("aria-hidden")},setPressed(e,t){e.setAttribute("aria-pressed",String(t))},setInvalid(e,t){e.setAttribute("aria-invalid",String(t))},setRequired(e,t){e.setAttribute("aria-required",String(t))},setLive(e,t){e.setAttribute("aria-live",t)},setBusy(e,t){e.setAttribute("aria-busy",String(t))}};function Tp(e){let t=document.createElement("span");return t.textContent=e,t.className="sr-only",Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:"0"}),t}function Ep(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function Dp(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function Np(){if(typeof window.matchMedia==="function"){if(window.matchMedia("(prefers-color-scheme: dark)").matches)return"dark";if(window.matchMedia("(prefers-color-scheme: light)").matches)return"light"}return null}function Op(e,t="Skip to main content"){let s=document.createElement("a");return s.href=`#${e}`,s.textContent=t,s.className="skip-link",Object.assign(s.style,{position:"absolute",top:"-40px",left:"0",background:"#000",color:"#fff",padding:"8px",textDecoration:"none",zIndex:"100"}),s.addEventListener("focus",()=>{s.style.top="0"}),s.addEventListener("blur",()=>{s.style.top="-40px"}),s}function Lp(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let i of n)if(!document.getElementById(i))t.push(`${o} references non-existent ID: ${i}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var za=(e,t,s,o)=>{return s*e/o+t},Ra=(e,t,s,o)=>{return e/=o,s*e*e+t},Ma=(e,t,s,o)=>{return e/=o,-s*e*(e-2)+t},qa=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e+t;return e--,-s/2*(e*(e-2)-1)+t},ja=(e,t,s,o)=>{return e/=o,s*e*e*e+t},Ba=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e+1)+t},Wa=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e+t;return e-=2,s/2*(e*e*e+2)+t},Ha=(e,t,s,o)=>{return e/=o,s*e*e*e*e+t},Fa=(e,t,s,o)=>{return e/=o,e--,-s*(e*e*e*e-1)+t},Va=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e+t;return e-=2,-s/2*(e*e*e*e-2)+t},Ka=(e,t,s,o)=>{return e/=o,s*e*e*e*e*e+t},Ja=(e,t,s,o)=>{return e/=o,e--,s*(e*e*e*e*e+1)+t},Ua=(e,t,s,o)=>{if(e/=o/2,e<1)return s/2*e*e*e*e*e+t;return e-=2,s/2*(e*e*e*e*e+2)+t},_a=(e,t,s,o)=>{return-s*Math.cos(e/o*(Math.PI/2))+s+t},Ga=(e,t,s,o)=>{return s*Math.sin(e/o*(Math.PI/2))+t},Ya=(e,t,s,o)=>{return-s/2*(Math.cos(Math.PI*e/o)-1)+t},Xa=(e,t,s,o)=>{return e===0?t:s*2**(10*(e/o-1))+t},Za=(e,t,s,o)=>{return e===o?t+s:s*(-(2**(-10*e/o))+1)+t},Qa=(e,t,s,o)=>{if(e===0)return t;if(e===o)return t+s;if(e/=o/2,e<1)return s/2*2**(10*(e-1))+t;return e--,s/2*(-(2**(-10*e))+2)+t},en=(e,t,s,o)=>{return e/=o,-s*(Math.sqrt(1-e*e)-1)+t},tn=(e,t,s,o)=>{return e/=o,e--,s*Math.sqrt(1-e*e)+t},sn=(e,t,s,o)=>{if(e/=o/2,e<1)return-s/2*(Math.sqrt(1-e*e)-1)+t;return e-=2,s/2*(Math.sqrt(1-e*e)+1)+t},on=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return e-=1,-(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},an=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);return i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},nn=(e,t,s,o)=>{let a=1.70158,n=0,i=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(i<Math.abs(s))i=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/i);if(e<1)return e-=1,-0.5*(i*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,i*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},rn=(e,t,s,o)=>{return e/=o,s*e*e*(2.70158*e-1.70158)+t},ln=(e,t,s,o)=>{return e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t},cn=(e,t,s,o)=>{let a=1.70158;if(e/=o/2,e<1)return a*=1.525,s/2*(e*e*((a+1)*e-a))+t;return e-=2,a*=1.525,s/2*(e*e*((a+1)*e+a)+2)+t},te=(e,t,s,o)=>{if(e/=o,e<0.36363636363636365)return s*(7.5625*e*e)+t;else if(e<0.7272727272727273)return e-=0.5454545454545454,s*(7.5625*e*e+0.75)+t;else if(e<0.9090909090909091)return e-=0.8181818181818182,s*(7.5625*e*e+0.9375)+t;else return e-=0.9545454545454546,s*(7.5625*e*e+0.984375)+t},ue=(e,t,s,o)=>{return s-te(o-e,0,s,o)+t},dn=(e,t,s,o)=>{if(e<o/2)return ue(e*2,0,s,o)*0.5+t;return te(e*2-o,0,s,o)*0.5+s*0.5+t},zp={linear:za,easeInQuad:Ra,easeOutQuad:Ma,easeInOutQuad:qa,easeInCubic:ja,easeOutCubic:Ba,easeInOutCubic:Wa,easeInQuart:Ha,easeOutQuart:Fa,easeInOutQuart:Va,easeInQuint:Ka,easeOutQuint:Ja,easeInOutQuint:Ua,easeInSine:_a,easeOutSine:Ga,easeInOutSine:Ya,easeInExpo:Xa,easeOutExpo:Za,easeInOutExpo:Qa,easeInCirc:en,easeOutCirc:tn,easeInOutCirc:sn,easeInElastic:on,easeOutElastic:an,easeInOutElastic:nn,easeInBack:rn,easeOutBack:ln,easeInOutBack:cn,easeInBounce:ue,easeOutBounce:te,easeInOutBounce:dn};function pn(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:i="normal",fill:r="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${i} ${r} ${c}`}function fe(e,t,s={}){e.style.animation=pn(t,s)}function Mp(e){e.style.animation=""}function hn(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function qp(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,i)=>{let r=`${i*o}ms`;fe(n,t,{...a,delay:r})})}async function jp(e,t){for(let s of t)fe(e,s.name,s.options),await hn(e)}var Bp={fadeIn:"animate-fade-in",fadeOut:"animate-fade-out",slideInUp:"animate-slide-in-up",slideInDown:"animate-slide-in-down",slideInLeft:"animate-slide-in-left",slideInRight:"animate-slide-in-right",zoomIn:"animate-zoom-in",zoomOut:"animate-zoom-out",bounce:"animate-bounce",spin:"animate-spin",ping:"animate-ping",pulse:"animate-pulse"};function Wp(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function Hp(e,t){let s=`
12
12
  @keyframes ${e} {
13
13
  ${Object.entries(t).map(([a,n])=>{let i=Object.entries(n).map(([r,c])=>`${r}: ${c};`).join(" ");return`${a} { ${i} }`}).join(`
14
14
  `)}
@@ -19,7 +19,7 @@ ${i.join(`
19
19
  :root:not(.light) `)}
20
20
  }`,p.map((v)=>`.dark ${v}`).join(`
21
21
  `)].filter(Boolean).join(`
22
- `);return{html:n.replace(/(<span class="[^"]*")[^>]*?\s+style="[^"]*"/g,(v,g)=>xe.test(/class="([^"]*)"/.exec(g)?.[1]??"")?g:v),css:w}}async function Up(e,t={}){let{theme:s="auto",language:o="typescript",lineNumbers:a=!1,wrapLines:n=!0}=t,i=s==="auto"?globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches?"github-dark":"github-light":s==="dark"?ge:be,r;try{r=await bn()}catch{return{html:oe(e),css:"",language:o,theme:i}}if(s==="auto"){let p=await vn(r,e,o);if(p)return{html:p.html,css:p.css,language:o,theme:"auto"}}let c;try{c=await r.highlight(e,o,{theme:i})}catch{return{html:oe(e),css:"",language:o,theme:i}}let d=c,h=typeof d==="string"?{html:d,css:""}:{html:d?.html??oe(e),css:d?.css??""};return{html:h.html,css:h.css,language:o,theme:i}}function Jp(e){if(e.includes("<!DOCTYPE")||e.includes("<html"))return"html";if(e.includes("<?php"))return"php";if(e.includes("import")&&e.includes("from"))return"typescript";if(e.includes("function")||e.includes("const"))return"javascript";if(e.includes("{")&&e.includes("}"))return"json";if(e.includes("$")&&e.includes("|"))return"bash";if(e.includes("#")&&e.includes("##"))return"markdown";return"typescript"}function _p(e,t){return`<div class="${t?`rounded-md overflow-auto text-sm leading-relaxed font-mono ${t}`:"rounded-md overflow-auto text-sm leading-relaxed font-mono"}">${e}</div>`}var N=null,wn=(e)=>{return e===1?0:1};function J(e,t){return t.split(".").reduce((s,o)=>s?.[o],e)}function ae(e,t={}){return e.replace(/\{(\w+)\}/g,(s,o)=>{return t[o]!==void 0?String(t[o]):s})}function Yp(e){let{locale:t,fallbackLocale:s="en",messages:o,pluralRules:a={},dateTimeFormats:n={},numberFormats:i={},missing:r,warnMissing:c=!0}=e;function d(g,x={}){let C=J(o[t],g);if(C===void 0&&s)C=J(o[s],g);if(C===void 0){if(r){let E=r(t,g);if(E)return ae(E,x)}if(c&&typeof console<"u")console.warn(`[i18n] Missing translation for key "${g}" in locale "${t}"`);return g}if(typeof C==="string")return ae(C,x);return String(C)}function h(g,x,C={}){let E=d(g,{...C,count:x});if(E.includes("|")){let O=E.split("|").map((Z)=>Z.trim()),Y=(a[t]||wn)(x,t),X=O[Y]||O[O.length-1];return ae(X,{...C,count:x})}return E}function p(g,x="default"){let C=typeof g==="number"?new Date(g):g,E=n[x]||n.default||{};return new Intl.DateTimeFormat(t,E).format(C)}function m(g,x="default"){let C=i[x]||i.default||{};return new Intl.NumberFormat(t,C).format(g)}function f(g){if(J(o[t],g)!==void 0)return!0;if(s)return J(o[s],g)!==void 0;return!1}function w(g){if(!o[g]){console.warn(`[i18n] Locale "${g}" not found. Available locales: ${Object.keys(o).join(", ")}`);return}t=g}function y(g,x){if(!o[g])o[g]={};o[g]={...o[g],...x}}function v(g){delete o[g]}return{get locale(){return t},get availableLocales(){return Object.keys(o)},setLocale:w,t:d,tc:h,d:p,n:m,te:f,addMessages:y,removeLocale:v}}function Xp(e){N=e}function Zp(){return N}function Qp(e,t){if(!N)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return N.t(e,t)}function eh(e,t,s){if(!N)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return N.tc(e,t,s)}function th(e,t){if(!N)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return N.d(e,t)}function sh(e,t){if(!N)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return N.n(e,t)}var oh={en:(e)=>e===1?0:1,de:(e)=>e===1?0:1,nl:(e)=>e===1?0:1,sv:(e)=>e===1?0:1,fr:(e)=>e===0||e===1?0:1,pt_BR:(e)=>e===0||e===1?0:1,ru:(e)=>{if(e%10===1&&e%100!==11)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},pl:(e)=>{if(e===1)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},cs:(e)=>{if(e===1)return 0;if(e>=2&&e<=4)return 1;return 2},ar:(e)=>{if(e===0)return 0;if(e===1)return 1;if(e===2)return 2;if(e%100>=3&&e%100<=10)return 3;if(e%100>=11)return 4;return 5},ja:()=>0,ko:()=>0,zh:()=>0,th:()=>0,vi:()=>0},ah={short:{year:"numeric",month:"numeric",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{weekday:"long",year:"numeric",month:"long",day:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}},nh={decimal:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2},currency:{style:"currency",currency:"USD"},percent:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2},compact:{notation:"compact"}};function ih(e){let t=["ar","he","fa","ur","yi"],s=e.split("-")[0].toLowerCase();return t.includes(s)}async function rh(e,t){try{return await t()}catch(s){return console.error(`[i18n] Failed to load messages for locale "${e}":`,s),{}}}var lh={en:{common:{loading:"Loading...",error:"Error",retry:"Retry",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",search:"Search",clear:"Clear",submit:"Submit",reset:"Reset"},form:{required:"This field is required",invalid:"Invalid value",tooShort:"Value is too short (minimum {min} characters)",tooLong:"Value is too long (maximum {max} characters)",invalidEmail:"Invalid email address",invalidUrl:"Invalid URL"},pagination:{previous:"Previous",next:"Next",page:"Page {page}",of:"of {total}"}},es:{common:{loading:"Cargando...",error:"Error",retry:"Reintentar",cancel:"Cancelar",confirm:"Confirmar",close:"Cerrar",save:"Guardar",delete:"Eliminar",edit:"Editar",search:"Buscar",clear:"Limpiar",submit:"Enviar",reset:"Restablecer"},form:{required:"Este campo es obligatorio",invalid:"Valor inv\xE1lido",tooShort:"El valor es demasiado corto (m\xEDnimo {min} caracteres)",tooLong:"El valor es demasiado largo (m\xE1ximo {max} caracteres)",invalidEmail:"Direcci\xF3n de correo electr\xF3nico inv\xE1lida",invalidUrl:"URL inv\xE1lida"},pagination:{previous:"Anterior",next:"Siguiente",page:"P\xE1gina {page}",of:"de {total}"}},fr:{common:{loading:"Chargement...",error:"Erreur",retry:"R\xE9essayer",cancel:"Annuler",confirm:"Confirmer",close:"Fermer",save:"Enregistrer",delete:"Supprimer",edit:"Modifier",search:"Rechercher",clear:"Effacer",submit:"Soumettre",reset:"R\xE9initialiser"},form:{required:"Ce champ est obligatoire",invalid:"Valeur invalide",tooShort:"La valeur est trop courte (minimum {min} caract\xE8res)",tooLong:"La valeur est trop longue (maximum {max} caract\xE8res)",invalidEmail:"Adresse e-mail invalide",invalidUrl:"URL invalide"},pagination:{previous:"Pr\xE9c\xE9dent",next:"Suivant",page:"Page {page}",of:"sur {total}"}}};function dh(e={}){let{max:t=10,ttl:s=0,include:o,exclude:a,hooks:n,debug:i=!1}=e,r=new Map,c=0,d=0;function h(...u){if(i)console.log("[KeepAlive]",...u)}function p(u){if(a){if(a instanceof RegExp&&a.test(u))return!1;if(Array.isArray(a)&&a.includes(u))return!1}if(o){if(o instanceof RegExp&&!o.test(u))return!1;if(Array.isArray(o)&&!o.includes(u))return!1}return!0}function m(u){if(!s||!u.expiresAt)return!1;return Date.now()>u.expiresAt}function f(u){let b=r.get(u);if(b)b.lastAccessedAt=Date.now(),b.accessCount++,b.instance.lastAccessedAt=b.lastAccessedAt,r.delete(u),r.set(u,b),h(`Touched: ${u} (access count: ${b.accessCount})`)}function w(){if(r.size===0)return!1;let u=r.keys().next().value;if(!u)return!1;let b=r.get(u);if(b){h(`Evicting LRU: ${u}`);let $=b.instance.hooks;if($?.onDeactivate)$.onDeactivate(b.instance);if(n?.onDeactivate)n.onDeactivate(b.instance);return r.delete(u),!0}return!1}function y(u,b,$){if(!p(b.type))return h(`Type not cacheable: ${b.type}`),b;if(r.size>=t)w();let T=Date.now(),W={instance:{...b,hooks:$||b.hooks,createdAt:b.createdAt||T,lastAccessedAt:T},accessCount:0,createdAt:T,lastAccessedAt:T,expiresAt:s?T+s:void 0};if(r.set(u,W),h(`Cached: ${u} (size: ${r.size}/${t})`),$?.onMount)$.onMount(W.instance);if(n?.onMount)n.onMount(W.instance);return W.instance}function v(u){let b=r.get(u);if(!b)return d++,h(`Miss: ${u}`),null;if(m(b))return h(`Expired: ${u}`),r.delete(u),d++,null;return c++,f(u),h(`Hit: ${u}`),b.instance}function g(u){let b=r.get(u);if(!b)return!1;if(m(b))return r.delete(u),!1;return!0}function x(u){let b=r.get(u);if(!b)return!1;h(`Removing: ${u}`);let $=b.instance.hooks;if($?.onUnmount)$.onUnmount(b.instance);if(n?.onUnmount)n.onUnmount(b.instance);return r.delete(u)}function C(){h("Clearing cache"),r.forEach((u)=>{let b=u.instance.hooks;if(b?.onUnmount)b.onUnmount(u.instance);if(n?.onUnmount)n.onUnmount(u.instance)}),r.clear(),c=0,d=0}function E(){let u=0,b=Date.now();for(let[$,T]of r.entries())if(m(T))h(`Pruning expired: ${$}`),x($),u++;while(r.size>t)if(w())u++;else break;if(u>0)h(`Pruned ${u} entries`);return u}function O(u){let b=v(u);if(!b)return null;h(`Activating: ${u}`);let $=b.hooks;if($?.onActivate)$.onActivate(b);if(n?.onActivate)n.onActivate(b);if(b.state&&$?.onRestore)$.onRestore(b,b.state);return b}function ie(u){let b=r.get(u);if(!b)return!1;h(`Deactivating: ${u}`);let $=b.instance,T=$.hooks;if(T?.onSave)$.state=T.onSave($);if(T?.onDeactivate)T.onDeactivate($);if(n?.onDeactivate)n.onDeactivate($);return!0}function Y(){let u=c+d;return{hits:c,misses:d,size:r.size,max:t,hitRate:u>0?c/u:0,keys:Array.from(r.keys())}}function X(){return Array.from(r.keys())}function Z(){return r.size}return{cache:y,get:v,has:g,remove:x,clear:C,prune:E,activate:O,deactivate:ie,getStats:Y,keys:X,size:Z}}function ph(e){let t=new Map;return{set(s,o){if(t.has(s))t.delete(s);if(t.set(s,o),t.size>e){let a=t.keys().next().value;if(a)t.delete(a)}},get(s){if(!t.has(s))return;let o=t.get(s);return t.delete(s),t.set(s,o),o},has(s){return t.has(s)},delete(s){return t.delete(s)},clear(){t.clear()},get size(){return t.size},keys(){return Array.from(t.keys())},values(){return Array.from(t.values())},forEach(s){t.forEach(s)}}}function hh(){let e=new Map;return{save(t,s){e.set(t,JSON.parse(JSON.stringify(s)))},restore(t){let s=e.get(t);return s?JSON.parse(JSON.stringify(s)):null},has(t){return e.has(t)},remove(t){return e.delete(t)},clear(){e.clear()},keys(){return Array.from(e.keys())},get size(){return e.size}}}function uh(e,t={}){let{maxSize:s=100,reset:o}=t,a=[];return{acquire(){if(a.length>0)return a.pop();return e()},release(n){if(a.length<s){if(o)o(n);a.push(n)}},clear(){a.length=0},get size(){return a.length},get maxSize(){return s}}}var P=new Map;async function _(e,t){let s=t||e.toString();if(P.has(s))return P.get(s);let o=e();P.set(s,o);try{return await o}catch(a){throw P.delete(s),a}}function mh(e,t={}){let{retryAttempts:s=3,retryDelay:o=1000,onLoading:a,onLoaded:n,onError:i}=t,r="idle",c,d,h=async(p=0)=>{try{if(r==="loading"||r==="loaded"){if(c)return c}r="loading",a?.();let m=await _(e);return c=m,r="loaded",n?.(m),m}catch(m){let f=m;if(p<s)return await new Promise((w)=>setTimeout(w,o*(p+1))),h(p+1);throw r="error",d=f,i?.(f),f}};return{get state(){return r},get module(){return c},get error(){return d},load:()=>h(),preload:()=>h()}}function yn(e,t,s={}){if(!e)return console.warn("lazyLoad: element is null"),()=>{};let{root:o=null,rootMargin:a="0px",threshold:n=0.01,placeholder:i,errorContent:r,onLoading:c,onLoaded:d,onError:h}=s,p=!1,m=null;if(i)if(typeof i==="string")e.innerHTML=i;else e.innerHTML="",e.appendChild(i);return m=new IntersectionObserver(async(w)=>{for(let y of w)if(y.isIntersecting&&!p){p=!0,m?.disconnect();try{c?.();let v=await _(t);if(d?.(v),v&&typeof v.default?.render==="function"){let g=await v.default.render();e.innerHTML=g}}catch(v){let g=v;if(h?.(g),r)if(typeof r==="string")e.innerHTML=r;else e.innerHTML="",e.appendChild(r);else e.innerHTML=`<div style="color: red;">Failed to load component: ${g.message}</div>`}}},{root:o,rootMargin:a,threshold:n}),m.observe(e),()=>{m?.disconnect(),m=null}}function bh(e,t,s={}){let o=[],a=Array.from(e);for(let n of a){let i=typeof t==="function"&&t.length>0?()=>t(n):t,r=yn(n,i,s);o.push(r)}return()=>{o.forEach((n)=>n())}}function Cn(e){return _(e)}function gh(e){return Promise.all(e.map((t)=>Cn(t)))}function xh(e){if(e)P.delete(e);else P.clear()}function vh(){return{size:P.size,keys:Array.from(P.keys())}}function wh(e){return{async load(t){let s=e[t];if(!s)throw Error(`No route found for path: ${t}`);return _(s,`route:${t}`)},async preload(t){return this.load(t)},async preloadRoutes(t){return Promise.all(t.map((s)=>this.preload(s)))}}}function $n(e,t,s={}){if(!e)return()=>{};let{root:o=null,rootMargin:a="50px",threshold:n=0.01,placeholder:i,onLoading:r,onLoaded:c,onError:d}=s;if(i&&typeof i==="string")e.src=i;let h=!1,p=null;return p=new IntersectionObserver((f)=>{for(let w of f)if(w.isIntersecting&&!h)h=!0,p?.disconnect(),r?.(),e.src=t,e.addEventListener("load",()=>{c?.(e),e.classList.add("loaded")},{once:!0}),e.addEventListener("error",(y)=>{let v=Error(`Failed to load image: ${t}`);d?.(v),e.classList.add("error")},{once:!0})},{root:o,rootMargin:a,threshold:n}),p.observe(e),()=>{p?.disconnect(),p=null}}function yh(e=document,t={}){let s=e.querySelectorAll("img[data-lazy-src]"),o=[];return s.forEach((a)=>{let n=a.getAttribute("data-lazy-src");if(n){let i=$n(a,n,t);o.push(i)}}),()=>{o.forEach((a)=>a())}}var ne={colors:{primary:"#3b82f6",secondary:"#8b5cf6",success:"#10b981",warning:"#f59e0b",danger:"#ef4444",info:"#06b6d4",gray:"#6b7280",white:"#ffffff",black:"#000000"},typography:{fontFamily:{sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem"},fontWeight:{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.25",normal:"1.5",relaxed:"1.75"}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},borderRadius:{none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",full:"9999px"},shadows:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",none:"none"},components:{button:{borderRadius:"0.375rem",padding:"0.5rem 1rem",fontSize:"0.875rem",fontWeight:"500"},input:{borderRadius:"0.375rem",padding:"0.5rem 0.75rem",fontSize:"0.875rem",borderWidth:"1px"},card:{borderRadius:"0.5rem",padding:"1.5rem",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)"}}};function ve(e,t){let s={...e};for(let o in t)if(t[o]instanceof Object&&o in e)s[o]=ve(e[o],t[o]);else s[o]=t[o];return s}function j(e){return ve(ne,e)}var G=ne;function $h(){return G}function kn(e){let t=[];if(e.colors)Object.entries(e.colors).forEach(([s,o])=>{if(o)t.push(`--color-${s}: ${o};`)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([s,o])=>{if(o)t.push(`--font-${s}: ${o};`)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([s,o])=>{if(o)t.push(`--text-${s}: ${o};`)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([s,o])=>{if(o)t.push(`--font-weight-${s}: ${o};`)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([s,o])=>{if(o)t.push(`--leading-${s}: ${o};`)});if(e.spacing)Object.entries(e.spacing).forEach(([s,o])=>{if(o)t.push(`--spacing-${s}: ${o};`)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([s,o])=>{if(o)t.push(`--radius-${s}: ${o};`)});if(e.shadows)Object.entries(e.shadows).forEach(([s,o])=>{if(o)t.push(`--shadow-${s}: ${o};`)});if(e.components?.button)Object.entries(e.components.button).forEach(([s,o])=>{if(o)t.push(`--button-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});if(e.components?.input)Object.entries(e.components.input).forEach(([s,o])=>{if(o)t.push(`--input-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});if(e.components?.card)Object.entries(e.components.card).forEach(([s,o])=>{if(o)t.push(`--card-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});return`:root {
22
+ `);return{html:n.replace(/(<span class="[^"]*")[^>]*?\s+style="[^"]*"/g,(v,g)=>xe.test(/class="([^"]*)"/.exec(g)?.[1]??"")?g:v),css:w}}async function Jp(e,t={}){let{theme:s="auto",language:o="typescript",lineNumbers:a=!1,wrapLines:n=!0}=t,i=s==="auto"?globalThis.matchMedia?.("(prefers-color-scheme: dark)").matches?"github-dark":"github-light":s==="dark"?ge:be,r;try{r=await bn()}catch{return{html:oe(e),css:"",language:o,theme:i}}if(s==="auto"){let p=await vn(r,e,o);if(p)return{html:p.html,css:p.css,language:o,theme:"auto"}}let c;try{c=await r.highlight(e,o,{theme:i})}catch{return{html:oe(e),css:"",language:o,theme:i}}let d=c,h=typeof d==="string"?{html:d,css:""}:{html:d?.html??oe(e),css:d?.css??""};return{html:h.html,css:h.css,language:o,theme:i}}function Up(e){if(e.includes("<!DOCTYPE")||e.includes("<html"))return"html";if(e.includes("<?php"))return"php";if(e.includes("import")&&e.includes("from"))return"typescript";if(e.includes("function")||e.includes("const"))return"javascript";if(e.includes("{")&&e.includes("}"))return"json";if(e.includes("$")&&e.includes("|"))return"bash";if(e.includes("#")&&e.includes("##"))return"markdown";return"typescript"}function _p(e,t){return`<div class="${t?`rounded-md overflow-auto text-sm leading-relaxed font-mono ${t}`:"rounded-md overflow-auto text-sm leading-relaxed font-mono"}">${e}</div>`}var N=null,wn=(e)=>{return e===1?0:1};function U(e,t){return t.split(".").reduce((s,o)=>s?.[o],e)}function ae(e,t={}){return e.replace(/\{(\w+)\}/g,(s,o)=>{return t[o]!==void 0?String(t[o]):s})}function Yp(e){let{locale:t,fallbackLocale:s="en",messages:o,pluralRules:a={},dateTimeFormats:n={},numberFormats:i={},missing:r,warnMissing:c=!0}=e;function d(g,x={}){let C=U(o[t],g);if(C===void 0&&s)C=U(o[s],g);if(C===void 0){if(r){let T=r(t,g);if(T)return ae(T,x)}if(c&&typeof console<"u")console.warn(`[i18n] Missing translation for key "${g}" in locale "${t}"`);return g}if(typeof C==="string")return ae(C,x);return String(C)}function h(g,x,C={}){let T=d(g,{...C,count:x});if(T.includes("|")){let O=T.split("|").map((Z)=>Z.trim()),Y=(a[t]||wn)(x,t),X=O[Y]||O[O.length-1];return ae(X,{...C,count:x})}return T}function p(g,x="default"){let C=typeof g==="number"?new Date(g):g,T=n[x]||n.default||{};return new Intl.DateTimeFormat(t,T).format(C)}function m(g,x="default"){let C=i[x]||i.default||{};return new Intl.NumberFormat(t,C).format(g)}function f(g){if(U(o[t],g)!==void 0)return!0;if(s)return U(o[s],g)!==void 0;return!1}function w(g){if(!o[g]){console.warn(`[i18n] Locale "${g}" not found. Available locales: ${Object.keys(o).join(", ")}`);return}t=g}function y(g,x){if(!o[g])o[g]={};o[g]={...o[g],...x}}function v(g){delete o[g]}return{get locale(){return t},get availableLocales(){return Object.keys(o)},setLocale:w,t:d,tc:h,d:p,n:m,te:f,addMessages:y,removeLocale:v}}function Xp(e){N=e}function Zp(){return N}function Qp(e,t){if(!N)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return N.t(e,t)}function eh(e,t,s){if(!N)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),e;return N.tc(e,t,s)}function th(e,t){if(!N)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return N.d(e,t)}function sh(e,t){if(!N)return console.warn("[i18n] No global i18n instance set. Call setI18n() first."),String(e);return N.n(e,t)}var oh={en:(e)=>e===1?0:1,de:(e)=>e===1?0:1,nl:(e)=>e===1?0:1,sv:(e)=>e===1?0:1,fr:(e)=>e===0||e===1?0:1,pt_BR:(e)=>e===0||e===1?0:1,ru:(e)=>{if(e%10===1&&e%100!==11)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},pl:(e)=>{if(e===1)return 0;if(e%10>=2&&e%10<=4&&(e%100<10||e%100>=20))return 1;return 2},cs:(e)=>{if(e===1)return 0;if(e>=2&&e<=4)return 1;return 2},ar:(e)=>{if(e===0)return 0;if(e===1)return 1;if(e===2)return 2;if(e%100>=3&&e%100<=10)return 3;if(e%100>=11)return 4;return 5},ja:()=>0,ko:()=>0,zh:()=>0,th:()=>0,vi:()=>0},ah={short:{year:"numeric",month:"numeric",day:"numeric"},long:{year:"numeric",month:"long",day:"numeric"},full:{weekday:"long",year:"numeric",month:"long",day:"numeric"},time:{hour:"numeric",minute:"numeric"},datetime:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"}},nh={decimal:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2},currency:{style:"currency",currency:"USD"},percent:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2},compact:{notation:"compact"}};function ih(e){let t=["ar","he","fa","ur","yi"],s=e.split("-")[0].toLowerCase();return t.includes(s)}async function rh(e,t){try{return await t()}catch(s){return console.error(`[i18n] Failed to load messages for locale "${e}":`,s),{}}}var lh={en:{common:{loading:"Loading...",error:"Error",retry:"Retry",cancel:"Cancel",confirm:"Confirm",close:"Close",save:"Save",delete:"Delete",edit:"Edit",search:"Search",clear:"Clear",submit:"Submit",reset:"Reset"},form:{required:"This field is required",invalid:"Invalid value",tooShort:"Value is too short (minimum {min} characters)",tooLong:"Value is too long (maximum {max} characters)",invalidEmail:"Invalid email address",invalidUrl:"Invalid URL"},pagination:{previous:"Previous",next:"Next",page:"Page {page}",of:"of {total}"}},es:{common:{loading:"Cargando...",error:"Error",retry:"Reintentar",cancel:"Cancelar",confirm:"Confirmar",close:"Cerrar",save:"Guardar",delete:"Eliminar",edit:"Editar",search:"Buscar",clear:"Limpiar",submit:"Enviar",reset:"Restablecer"},form:{required:"Este campo es obligatorio",invalid:"Valor inv\xE1lido",tooShort:"El valor es demasiado corto (m\xEDnimo {min} caracteres)",tooLong:"El valor es demasiado largo (m\xE1ximo {max} caracteres)",invalidEmail:"Direcci\xF3n de correo electr\xF3nico inv\xE1lida",invalidUrl:"URL inv\xE1lida"},pagination:{previous:"Anterior",next:"Siguiente",page:"P\xE1gina {page}",of:"de {total}"}},fr:{common:{loading:"Chargement...",error:"Erreur",retry:"R\xE9essayer",cancel:"Annuler",confirm:"Confirmer",close:"Fermer",save:"Enregistrer",delete:"Supprimer",edit:"Modifier",search:"Rechercher",clear:"Effacer",submit:"Soumettre",reset:"R\xE9initialiser"},form:{required:"Ce champ est obligatoire",invalid:"Valeur invalide",tooShort:"La valeur est trop courte (minimum {min} caract\xE8res)",tooLong:"La valeur est trop longue (maximum {max} caract\xE8res)",invalidEmail:"Adresse e-mail invalide",invalidUrl:"URL invalide"},pagination:{previous:"Pr\xE9c\xE9dent",next:"Suivant",page:"Page {page}",of:"sur {total}"}}};function dh(e={}){let{max:t=10,ttl:s=0,include:o,exclude:a,hooks:n,debug:i=!1}=e,r=new Map,c=0,d=0;function h(...u){if(i)console.log("[KeepAlive]",...u)}function p(u){if(a){if(a instanceof RegExp&&a.test(u))return!1;if(Array.isArray(a)&&a.includes(u))return!1}if(o){if(o instanceof RegExp&&!o.test(u))return!1;if(Array.isArray(o)&&!o.includes(u))return!1}return!0}function m(u){if(!s||!u.expiresAt)return!1;return Date.now()>u.expiresAt}function f(u){let b=r.get(u);if(b)b.lastAccessedAt=Date.now(),b.accessCount++,b.instance.lastAccessedAt=b.lastAccessedAt,r.delete(u),r.set(u,b),h(`Touched: ${u} (access count: ${b.accessCount})`)}function w(){if(r.size===0)return!1;let u=r.keys().next().value;if(!u)return!1;let b=r.get(u);if(b){h(`Evicting LRU: ${u}`);let $=b.instance.hooks;if($?.onDeactivate)$.onDeactivate(b.instance);if(n?.onDeactivate)n.onDeactivate(b.instance);return r.delete(u),!0}return!1}function y(u,b,$){if(!p(b.type))return h(`Type not cacheable: ${b.type}`),b;if(r.size>=t)w();let E=Date.now(),W={instance:{...b,hooks:$||b.hooks,createdAt:b.createdAt||E,lastAccessedAt:E},accessCount:0,createdAt:E,lastAccessedAt:E,expiresAt:s?E+s:void 0};if(r.set(u,W),h(`Cached: ${u} (size: ${r.size}/${t})`),$?.onMount)$.onMount(W.instance);if(n?.onMount)n.onMount(W.instance);return W.instance}function v(u){let b=r.get(u);if(!b)return d++,h(`Miss: ${u}`),null;if(m(b))return h(`Expired: ${u}`),r.delete(u),d++,null;return c++,f(u),h(`Hit: ${u}`),b.instance}function g(u){let b=r.get(u);if(!b)return!1;if(m(b))return r.delete(u),!1;return!0}function x(u){let b=r.get(u);if(!b)return!1;h(`Removing: ${u}`);let $=b.instance.hooks;if($?.onUnmount)$.onUnmount(b.instance);if(n?.onUnmount)n.onUnmount(b.instance);return r.delete(u)}function C(){h("Clearing cache"),r.forEach((u)=>{let b=u.instance.hooks;if(b?.onUnmount)b.onUnmount(u.instance);if(n?.onUnmount)n.onUnmount(u.instance)}),r.clear(),c=0,d=0}function T(){let u=0,b=Date.now();for(let[$,E]of r.entries())if(m(E))h(`Pruning expired: ${$}`),x($),u++;while(r.size>t)if(w())u++;else break;if(u>0)h(`Pruned ${u} entries`);return u}function O(u){let b=v(u);if(!b)return null;h(`Activating: ${u}`);let $=b.hooks;if($?.onActivate)$.onActivate(b);if(n?.onActivate)n.onActivate(b);if(b.state&&$?.onRestore)$.onRestore(b,b.state);return b}function ie(u){let b=r.get(u);if(!b)return!1;h(`Deactivating: ${u}`);let $=b.instance,E=$.hooks;if(E?.onSave)$.state=E.onSave($);if(E?.onDeactivate)E.onDeactivate($);if(n?.onDeactivate)n.onDeactivate($);return!0}function Y(){let u=c+d;return{hits:c,misses:d,size:r.size,max:t,hitRate:u>0?c/u:0,keys:Array.from(r.keys())}}function X(){return Array.from(r.keys())}function Z(){return r.size}return{cache:y,get:v,has:g,remove:x,clear:C,prune:T,activate:O,deactivate:ie,getStats:Y,keys:X,size:Z}}function ph(e){let t=new Map;return{set(s,o){if(t.has(s))t.delete(s);if(t.set(s,o),t.size>e){let a=t.keys().next().value;if(a)t.delete(a)}},get(s){if(!t.has(s))return;let o=t.get(s);return t.delete(s),t.set(s,o),o},has(s){return t.has(s)},delete(s){return t.delete(s)},clear(){t.clear()},get size(){return t.size},keys(){return Array.from(t.keys())},values(){return Array.from(t.values())},forEach(s){t.forEach(s)}}}function hh(){let e=new Map;return{save(t,s){e.set(t,JSON.parse(JSON.stringify(s)))},restore(t){let s=e.get(t);return s?JSON.parse(JSON.stringify(s)):null},has(t){return e.has(t)},remove(t){return e.delete(t)},clear(){e.clear()},keys(){return Array.from(e.keys())},get size(){return e.size}}}function uh(e,t={}){let{maxSize:s=100,reset:o}=t,a=[];return{acquire(){if(a.length>0)return a.pop();return e()},release(n){if(a.length<s){if(o)o(n);a.push(n)}},clear(){a.length=0},get size(){return a.length},get maxSize(){return s}}}var P=new Map;async function _(e,t){let s=t||e.toString();if(P.has(s))return P.get(s);let o=e();P.set(s,o);try{return await o}catch(a){throw P.delete(s),a}}function mh(e,t={}){let{retryAttempts:s=3,retryDelay:o=1000,onLoading:a,onLoaded:n,onError:i}=t,r="idle",c,d,h=async(p=0)=>{try{if(r==="loading"||r==="loaded"){if(c)return c}r="loading",a?.();let m=await _(e);return c=m,r="loaded",n?.(m),m}catch(m){let f=m;if(p<s)return await new Promise((w)=>setTimeout(w,o*(p+1))),h(p+1);throw r="error",d=f,i?.(f),f}};return{get state(){return r},get module(){return c},get error(){return d},load:()=>h(),preload:()=>h()}}function yn(e,t,s={}){if(!e)return console.warn("lazyLoad: element is null"),()=>{};let{root:o=null,rootMargin:a="0px",threshold:n=0.01,placeholder:i,errorContent:r,onLoading:c,onLoaded:d,onError:h}=s,p=!1,m=null;if(i)if(typeof i==="string")e.innerHTML=i;else e.innerHTML="",e.appendChild(i);return m=new IntersectionObserver(async(w)=>{for(let y of w)if(y.isIntersecting&&!p){p=!0,m?.disconnect();try{c?.();let v=await _(t);if(d?.(v),v&&typeof v.default?.render==="function"){let g=await v.default.render();e.innerHTML=g}}catch(v){let g=v;if(h?.(g),r)if(typeof r==="string")e.innerHTML=r;else e.innerHTML="",e.appendChild(r);else e.innerHTML=`<div style="color: red;">Failed to load component: ${g.message}</div>`}}},{root:o,rootMargin:a,threshold:n}),m.observe(e),()=>{m?.disconnect(),m=null}}function bh(e,t,s={}){let o=[],a=Array.from(e);for(let n of a){let i=typeof t==="function"&&t.length>0?()=>t(n):t,r=yn(n,i,s);o.push(r)}return()=>{o.forEach((n)=>n())}}function Cn(e){return _(e)}function gh(e){return Promise.all(e.map((t)=>Cn(t)))}function xh(e){if(e)P.delete(e);else P.clear()}function vh(){return{size:P.size,keys:Array.from(P.keys())}}function wh(e){return{async load(t){let s=e[t];if(!s)throw Error(`No route found for path: ${t}`);return _(s,`route:${t}`)},async preload(t){return this.load(t)},async preloadRoutes(t){return Promise.all(t.map((s)=>this.preload(s)))}}}function $n(e,t,s={}){if(!e)return()=>{};let{root:o=null,rootMargin:a="50px",threshold:n=0.01,placeholder:i,onLoading:r,onLoaded:c,onError:d}=s;if(i&&typeof i==="string")e.src=i;let h=!1,p=null;return p=new IntersectionObserver((f)=>{for(let w of f)if(w.isIntersecting&&!h)h=!0,p?.disconnect(),r?.(),e.src=t,e.addEventListener("load",()=>{c?.(e),e.classList.add("loaded")},{once:!0}),e.addEventListener("error",(y)=>{let v=Error(`Failed to load image: ${t}`);d?.(v),e.classList.add("error")},{once:!0})},{root:o,rootMargin:a,threshold:n}),p.observe(e),()=>{p?.disconnect(),p=null}}function yh(e=document,t={}){let s=e.querySelectorAll("img[data-lazy-src]"),o=[];return s.forEach((a)=>{let n=a.getAttribute("data-lazy-src");if(n){let i=$n(a,n,t);o.push(i)}}),()=>{o.forEach((a)=>a())}}var ne={colors:{primary:"#3b82f6",secondary:"#8b5cf6",success:"#10b981",warning:"#f59e0b",danger:"#ef4444",info:"#06b6d4",gray:"#6b7280",white:"#ffffff",black:"#000000"},typography:{fontFamily:{sans:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',serif:'Georgia, Cambria, "Times New Roman", Times, serif',mono:'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem"},fontWeight:{light:"300",normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:"1.25",normal:"1.5",relaxed:"1.75"}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},borderRadius:{none:"0",sm:"0.125rem",md:"0.375rem",lg:"0.5rem",full:"9999px"},shadows:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",none:"none"},components:{button:{borderRadius:"0.375rem",padding:"0.5rem 1rem",fontSize:"0.875rem",fontWeight:"500"},input:{borderRadius:"0.375rem",padding:"0.5rem 0.75rem",fontSize:"0.875rem",borderWidth:"1px"},card:{borderRadius:"0.5rem",padding:"1.5rem",shadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)"}}};function ve(e,t){let s={...e};for(let o in t)if(t[o]instanceof Object&&o in e)s[o]=ve(e[o],t[o]);else s[o]=t[o];return s}function B(e){return ve(ne,e)}var G=ne;function $h(){return G}function kn(e){let t=[];if(e.colors)Object.entries(e.colors).forEach(([s,o])=>{if(o)t.push(`--color-${s}: ${o};`)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([s,o])=>{if(o)t.push(`--font-${s}: ${o};`)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([s,o])=>{if(o)t.push(`--text-${s}: ${o};`)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([s,o])=>{if(o)t.push(`--font-weight-${s}: ${o};`)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([s,o])=>{if(o)t.push(`--leading-${s}: ${o};`)});if(e.spacing)Object.entries(e.spacing).forEach(([s,o])=>{if(o)t.push(`--spacing-${s}: ${o};`)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([s,o])=>{if(o)t.push(`--radius-${s}: ${o};`)});if(e.shadows)Object.entries(e.shadows).forEach(([s,o])=>{if(o)t.push(`--shadow-${s}: ${o};`)});if(e.components?.button)Object.entries(e.components.button).forEach(([s,o])=>{if(o)t.push(`--button-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});if(e.components?.input)Object.entries(e.components.input).forEach(([s,o])=>{if(o)t.push(`--input-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});if(e.components?.card)Object.entries(e.components.card).forEach(([s,o])=>{if(o)t.push(`--card-${s.replace(/([A-Z])/g,"-$1").toLowerCase()}: ${o};`)});return`:root {
23
23
  ${t.join(`
24
24
  `)}
25
- }`}function kh(e,t){if(G=e,typeof document>"u")return;let s=t||document.documentElement;if(e.colors)Object.entries(e.colors).forEach(([o,a])=>{if(a)s.style.setProperty(`--color-${o}`,a)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([o,a])=>{if(a)s.style.setProperty(`--font-${o}`,a)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([o,a])=>{if(a)s.style.setProperty(`--text-${o}`,a)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([o,a])=>{if(a)s.style.setProperty(`--font-weight-${o}`,a)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([o,a])=>{if(a)s.style.setProperty(`--leading-${o}`,a)});if(e.spacing)Object.entries(e.spacing).forEach(([o,a])=>{if(a)s.style.setProperty(`--spacing-${o}`,a)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([o,a])=>{if(a)s.style.setProperty(`--radius-${o}`,a)});if(e.shadows)Object.entries(e.shadows).forEach(([o,a])=>{if(a)s.style.setProperty(`--shadow-${o}`,a)});if(e.components?.button)Object.entries(e.components.button).forEach(([o,a])=>{if(a)s.style.setProperty(`--button-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.input)Object.entries(e.components.input).forEach(([o,a])=>{if(a)s.style.setProperty(`--input-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.card)Object.entries(e.components.card).forEach(([o,a])=>{if(a)s.style.setProperty(`--card-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)})}function Sh(){return G}function Ih(e){let t=e.split("."),s=G;for(let o of t)if(s&&typeof s==="object"&&o in s)s=s[o];else return;return s}var Ah={default:ne,purple:j({colors:{primary:"#8b5cf6",secondary:"#a78bfa"}}),green:j({colors:{primary:"#10b981",secondary:"#34d399"}}),orange:j({colors:{primary:"#f97316",secondary:"#fb923c"}}),dark:j({colors:{primary:"#60a5fa",secondary:"#a78bfa",gray:"#9ca3af",white:"#1f2937",black:"#f9fafb"}}),minimal:j({borderRadius:{none:"0",sm:"0",md:"0.125rem",lg:"0.25rem",full:"0.25rem"},shadows:{sm:"none",md:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",lg:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",xl:"0 4px 6px -1px rgba(0, 0, 0, 0.1)","2xl":"0 10px 15px -3px rgba(0, 0, 0, 0.1)",none:"none"}})};function Eh(e){return kn(e)}export{le as wrapErrorHandler,Ri as warnProp,Ge as warn,hn as waitForAnimation,Fi as validateVariant,dl as validateTextInputProps,Vi as validateSize,fl as validateSearchInputProps,Xe as validateProps,hl as validatePasswordInputProps,ul as validateNumberInputProps,Zr as validateFormProps,pl as validateEmailInputProps,Wi as validateButtonProps,Lp as validateAriaRelationships,Sh as useTheme,zn as useSEO,Xn as usePrefersReducedMotion,M as useMediaQuery,Kn as useLocalStorage,Hn as useKeyboard,_n as useIsMobile,Gn as useIsDesktop,Yn as useIsDarkMode,jn as useFocusTrap,Ln as useDarkMode,Dn as useCopyCode,qn as useClickOutside,Jn as useBreakpoint,ti as themeVariableNames,kn as themeToCSSProperties,Ah as themePresets,cs as textInputPropSchema,eh as tc,Qp as t,ei as stxThemePreset,Ad as storage,qp as staggerAnimation,Zc as spaceWashGradient,Uo as spaceTintVars,td as spaceTintPayload,ed as spaceIndexOf,ce as sidebarThemes,Ie as setTitle,S as setMeta,Ae as setLink,Xp as setI18n,Ei as setErrorHandler,Bp as sequenceAnimations,Ko as resolveSpaceTint,_c as resolveSidebarTheme,Gc as resolveIconColor,Mp as removeAnimation,gh as preloadModules,Cn as preloadModule,Tp as prefersReducedMotion,Dp as prefersHighContrast,oh as pluralRules,ds as numberInputPropSchema,nh as numberFormats,Qc as normalizeSpaces,Jo as normalizeSpace,sh as n,Sp as moveFocus,K as macosColors,rh as loadLocaleMessages,za as linear,_ as lazyLoadModule,yh as lazyLoadImages,$n as lazyLoadImage,mh as lazyLoadComponent,bh as lazyLoadAll,yn as lazyLoad,Ip as isVisibleToScreenReader,ih as isRTL,Up as highlight,kp as hasFocus,F as handleError,Ih as getThemeValue,$h as getTheme,Se as getSystemTheme,Zp as getI18n,bn as getHighlighter,ee as getFocusableElements,Q as getEffectiveTheme,Np as getColorSchemePreference,vh as getCacheStats,Eh as generateThemeCSS,Rn as generateSEOTags,he as generateId,Gt as formPropSchema,Oi as errorBoundary,Ga as easeOutSine,Ua as easeOutQuint,Fa as easeOutQuart,Ma as easeOutQuad,Za as easeOutExpo,an as easeOutElastic,ja as easeOutCubic,tn as easeOutCirc,te as easeOutBounce,ln as easeOutBack,_a as easeInSine,Ka as easeInQuint,Ha as easeInQuart,Ra as easeInQuad,Ya as easeInOutSine,Ja as easeInOutQuint,Va as easeInOutQuart,qa as easeInOutQuad,Qa as easeInOutExpo,nn as easeInOutElastic,Wa as easeInOutCubic,sn as easeInOutCirc,dn as easeInOutBounce,cn as easeInOutBack,Xa as easeInExpo,on as easeInElastic,Ba as easeInCubic,en as easeInCirc,ue as easeInBounce,rn as easeInBack,Di as devAssert,Jp as detectLanguage,de as deriveSpaceTint,ne as defaultTheme,ah as dateTimeFormats,th as d,pn as cssAnimation,j as createTheme,Ed as createStorage,hh as createStateManager,Op as createSkipLink,Ep as createScreenReaderText,Hi as createSafeClickHandler,Cp as createRovingTabindex,wh as createRouteLoader,D as createPropValidator,ph as createLRUCache,Hp as createKeyframes,un as createKeyframeAnimation,dh as createKeepAlive,Yp as createI18n,yp as createFocusTrap,Ni as createDebugger,uh as createComponentPool,xp as createAriaLabel,vp as createAriaDescription,Nn as copyToClipboard,lh as componentMessages,xh as clearModuleCache,Ti as clearErrorHandler,et as buttonPropSchema,zi as assertProp,_e as assert,Ap as aria,kh as applyTheme,_p as applyHeadwindClasses,fe as applyAnimation,wp as announceToScreenReader,Wp as animateWithClass,Vp as animate,La as VirtualTable,Na as VirtualList,Ta as Video,je as TwoFactorChallenge,Aa as Transition,Sa as Tooltip,lt as ThemeToggle,$a as Textarea,rs as TextInput,ya as Teleport,va as Tabs,ma as TableRow,ua as TableHeader,pa as TableHead,ca as TableCell,ra as TableBody,na as Table,ga as TabPanel,Rs as TabBarItem,Ps as TabBar,re as THEMED_FAMILIES,oa as Switch,Ys as SubscriptionCheckout,U as StorageManager,ta as StepperStep,Qo as Stepper,Xo as Spinner,Go as Skeleton,qe as Signup,zo as SidebarSpaces,Mo as SidebarSpaceSwitcher,Lo as SidebarSpace,No as SidebarSection,To as SidebarPinned,Ao as SidebarItem,So as SidebarHeader,$o as SidebarFooter,yo as Sidebar,vo as Select,Os as SectionCard,ns as SearchInput,Qn as SHADE_VAR_PREFIX,go as RadioGroupOption,mo as RadioGroupLabel,uo as RadioGroupDescription,po as RadioGroup,lo as Radio,l as PropTypes,io as Progress,ao as Portal,so as PopoverPanel,eo as PopoverButton,Zs as Popover,_s as PaymentMethods,os as PasswordInput,Hs as Pagination,ts as NumberInput,js as Notification,qs as Navigator,Ds as NavBar,Re as Login,Cs as ListboxOptions,ws as ListboxOption,xs as ListboxLabel,bs as ListboxButton,fs as Listbox,Es as ListRow,fn as KeyframeAnimations,Fn as KeyboardShortcuts,$p as KeyboardKeys,ke as Installation,Xt as Image,$e as Hero,_t as Form,Ce as Footer,Is as FilterChips,ks as FilterChip,R as ErrorTypes,it as EmptyState,Qt as EmailInput,zp as Easing,Ut as DropdownItems,Vt as DropdownItem,Ht as DropdownButton,jt as Dropdown,qt as Drawer,Rt as DialogTitle,Pt as DialogPanel,Ot as DialogDescription,Dt as DialogBackdrop,Et as Dialog,Us as DefaultPaymentMethod,at as DateRangePicker,A as ComponentError,It as CommandPaletteItem,kt as CommandPalette,Ct as ComboboxOptions,wt as ComboboxOption,xt as ComboboxInput,bt as ComboboxButton,ft as Combobox,ye as CodeBlock,Vs as Checkout,ht as Checkbox,dt as Card,st as Calendar,Qe as Button,q as Breakpoints,Ue as Breadcrumb,Ve as Badge,He as Avatar,Pe as Audio,jp as AnimationClasses,Oe as AccordionItem,De as Accordion};
25
+ }`}function kh(e,t){if(G=e,typeof document>"u")return;let s=t||document.documentElement;if(e.colors)Object.entries(e.colors).forEach(([o,a])=>{if(a)s.style.setProperty(`--color-${o}`,a)});if(e.typography?.fontFamily)Object.entries(e.typography.fontFamily).forEach(([o,a])=>{if(a)s.style.setProperty(`--font-${o}`,a)});if(e.typography?.fontSize)Object.entries(e.typography.fontSize).forEach(([o,a])=>{if(a)s.style.setProperty(`--text-${o}`,a)});if(e.typography?.fontWeight)Object.entries(e.typography.fontWeight).forEach(([o,a])=>{if(a)s.style.setProperty(`--font-weight-${o}`,a)});if(e.typography?.lineHeight)Object.entries(e.typography.lineHeight).forEach(([o,a])=>{if(a)s.style.setProperty(`--leading-${o}`,a)});if(e.spacing)Object.entries(e.spacing).forEach(([o,a])=>{if(a)s.style.setProperty(`--spacing-${o}`,a)});if(e.borderRadius)Object.entries(e.borderRadius).forEach(([o,a])=>{if(a)s.style.setProperty(`--radius-${o}`,a)});if(e.shadows)Object.entries(e.shadows).forEach(([o,a])=>{if(a)s.style.setProperty(`--shadow-${o}`,a)});if(e.components?.button)Object.entries(e.components.button).forEach(([o,a])=>{if(a)s.style.setProperty(`--button-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.input)Object.entries(e.components.input).forEach(([o,a])=>{if(a)s.style.setProperty(`--input-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)});if(e.components?.card)Object.entries(e.components.card).forEach(([o,a])=>{if(a)s.style.setProperty(`--card-${o.replace(/([A-Z])/g,"-$1").toLowerCase()}`,a)})}function Sh(){return G}function Ih(e){let t=e.split("."),s=G;for(let o of t)if(s&&typeof s==="object"&&o in s)s=s[o];else return;return s}var Ah={default:ne,purple:B({colors:{primary:"#8b5cf6",secondary:"#a78bfa"}}),green:B({colors:{primary:"#10b981",secondary:"#34d399"}}),orange:B({colors:{primary:"#f97316",secondary:"#fb923c"}}),dark:B({colors:{primary:"#60a5fa",secondary:"#a78bfa",gray:"#9ca3af",white:"#1f2937",black:"#f9fafb"}}),minimal:B({borderRadius:{none:"0",sm:"0",md:"0.125rem",lg:"0.25rem",full:"0.25rem"},shadows:{sm:"none",md:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",lg:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",xl:"0 4px 6px -1px rgba(0, 0, 0, 0.1)","2xl":"0 10px 15px -3px rgba(0, 0, 0, 0.1)",none:"none"}})};function Th(e){return kn(e)}export{le as wrapErrorHandler,Ri as warnProp,Ge as warn,hn as waitForAnimation,Fi as validateVariant,dl as validateTextInputProps,Vi as validateSize,fl as validateSearchInputProps,Xe as validateProps,hl as validatePasswordInputProps,ul as validateNumberInputProps,Zr as validateFormProps,pl as validateEmailInputProps,Wi as validateButtonProps,Lp as validateAriaRelationships,Sh as useTheme,zn as useSEO,Xn as usePrefersReducedMotion,M as useMediaQuery,Kn as useLocalStorage,Hn as useKeyboard,_n as useIsMobile,Gn as useIsDesktop,Yn as useIsDarkMode,Bn as useFocusTrap,Ln as useDarkMode,Dn as useCopyCode,qn as useClickOutside,Un as useBreakpoint,ti as themeVariableNames,kn as themeToCSSProperties,Ah as themePresets,cs as textInputPropSchema,eh as tc,Qp as t,ei as stxThemePreset,Ad as storage,qp as staggerAnimation,Zc as spaceWashGradient,Jo as spaceTintVars,td as spaceTintPayload,ed as spaceIndexOf,ce as sidebarThemes,Ie as setTitle,S as setMeta,Ae as setLink,Xp as setI18n,Ti as setErrorHandler,jp as sequenceAnimations,Ko as resolveSpaceTint,_c as resolveSidebarTheme,Gc as resolveIconColor,Mp as removeAnimation,gh as preloadModules,Cn as preloadModule,Ep as prefersReducedMotion,Dp as prefersHighContrast,oh as pluralRules,ds as numberInputPropSchema,nh as numberFormats,Qc as normalizeSpaces,Uo as normalizeSpace,sh as n,Sp as moveFocus,K as macosColors,rh as loadLocaleMessages,za as linear,_ as lazyLoadModule,yh as lazyLoadImages,$n as lazyLoadImage,mh as lazyLoadComponent,bh as lazyLoadAll,yn as lazyLoad,Ip as isVisibleToScreenReader,ih as isRTL,Jp as highlight,kp as hasFocus,F as handleError,Ih as getThemeValue,$h as getTheme,Se as getSystemTheme,Zp as getI18n,bn as getHighlighter,ee as getFocusableElements,Q as getEffectiveTheme,Np as getColorSchemePreference,vh as getCacheStats,Th as generateThemeCSS,Rn as generateSEOTags,he as generateId,Gt as formPropSchema,Oi as errorBoundary,Ga as easeOutSine,Ja as easeOutQuint,Fa as easeOutQuart,Ma as easeOutQuad,Za as easeOutExpo,an as easeOutElastic,Ba as easeOutCubic,tn as easeOutCirc,te as easeOutBounce,ln as easeOutBack,_a as easeInSine,Ka as easeInQuint,Ha as easeInQuart,Ra as easeInQuad,Ya as easeInOutSine,Ua as easeInOutQuint,Va as easeInOutQuart,qa as easeInOutQuad,Qa as easeInOutExpo,nn as easeInOutElastic,Wa as easeInOutCubic,sn as easeInOutCirc,dn as easeInOutBounce,cn as easeInOutBack,Xa as easeInExpo,on as easeInElastic,ja as easeInCubic,en as easeInCirc,ue as easeInBounce,rn as easeInBack,Di as devAssert,Up as detectLanguage,de as deriveSpaceTint,ne as defaultTheme,ah as dateTimeFormats,th as d,pn as cssAnimation,B as createTheme,Td as createStorage,hh as createStateManager,Op as createSkipLink,Tp as createScreenReaderText,Hi as createSafeClickHandler,Cp as createRovingTabindex,wh as createRouteLoader,D as createPropValidator,ph as createLRUCache,Hp as createKeyframes,un as createKeyframeAnimation,dh as createKeepAlive,Yp as createI18n,yp as createFocusTrap,Ni as createDebugger,uh as createComponentPool,xp as createAriaLabel,vp as createAriaDescription,Nn as copyToClipboard,lh as componentMessages,xh as clearModuleCache,Ei as clearErrorHandler,et as buttonPropSchema,zi as assertProp,_e as assert,Ap as aria,kh as applyTheme,_p as applyHeadwindClasses,fe as applyAnimation,wp as announceToScreenReader,Wp as animateWithClass,Vp as animate,La as VirtualTable,Na as VirtualList,Ea as Video,Be as TwoFactorChallenge,Aa as Transition,Sa as Tooltip,lt as ThemeToggle,$a as Textarea,rs as TextInput,ya as Teleport,va as Tabs,ma as TableRow,ua as TableHeader,pa as TableHead,ca as TableCell,ra as TableBody,na as Table,ga as TabPanel,Rs as TabBarItem,Ps as TabBar,re as THEMED_FAMILIES,oa as Switch,Ys as SubscriptionCheckout,J as StorageManager,ta as StepperStep,Qo as Stepper,Xo as Spinner,Go as Skeleton,qe as Signup,zo as SidebarSpaces,Mo as SidebarSpaceSwitcher,Lo as SidebarSpace,No as SidebarSection,Eo as SidebarPinned,Ao as SidebarItem,So as SidebarHeader,$o as SidebarFooter,yo as Sidebar,vo as Select,Os as SectionCard,ns as SearchInput,Qn as SHADE_VAR_PREFIX,go as RadioGroupOption,mo as RadioGroupLabel,uo as RadioGroupDescription,po as RadioGroup,lo as Radio,l as PropTypes,io as Progress,ao as Portal,so as PopoverPanel,eo as PopoverButton,Zs as Popover,_s as PaymentMethods,os as PasswordInput,Hs as Pagination,ts as NumberInput,Bs as Notification,qs as Navigator,Ds as NavBar,Re as Login,Cs as ListboxOptions,ws as ListboxOption,xs as ListboxLabel,bs as ListboxButton,fs as Listbox,Ts as ListRow,fn as KeyframeAnimations,Fn as KeyboardShortcuts,$p as KeyboardKeys,ke as Installation,Xt as Image,$e as Hero,_t as Form,Ce as Footer,Is as FilterChips,ks as FilterChip,R as ErrorTypes,it as EmptyState,Qt as EmailInput,zp as Easing,Jt as DropdownItems,Vt as DropdownItem,Ht as DropdownButton,Bt as Dropdown,qt as Drawer,Rt as DialogTitle,Pt as DialogPanel,Ot as DialogDescription,Dt as DialogBackdrop,Tt as Dialog,Js as DefaultPaymentMethod,at as DateRangePicker,A as ComponentError,It as CommandPaletteItem,kt as CommandPalette,Ct as ComboboxOptions,wt as ComboboxOption,xt as ComboboxInput,bt as ComboboxButton,ft as Combobox,ye as CodeBlock,Vs as Checkout,ht as Checkbox,dt as Card,st as Calendar,Qe as Button,q as Breakpoints,Je as Breadcrumb,Ve as Badge,He as Avatar,Pe as Audio,Bp as AnimationClasses,Oe as AccordionItem,De as Accordion};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/components",
3
3
  "type": "module",
4
- "version": "0.2.381",
4
+ "version": "0.2.383",
5
5
  "description": "A modern component library built with STX, featuring headwind utility classes and TypeScript syntax highlighting.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -64,8 +64,8 @@
64
64
  "dependencies": {
65
65
  "@iconify-json/f7": "^1.2.2",
66
66
  "@stacksjs/ts-css": "^0.3.2",
67
- "@stacksjs/stx": "0.2.381",
68
- "bun-plugin-stx": "0.2.381",
67
+ "@stacksjs/stx": "0.2.383",
68
+ "bun-plugin-stx": "0.2.383",
69
69
  "ts-syntax-highlighter": "^0.2.17"
70
70
  },
71
71
  "devDependencies": {
@@ -2,7 +2,7 @@
2
2
  export const headingText = $props.headingText || 'Two Factor Authentication'
3
3
  export const labelText = $props.labelText || 'Authentication code'
4
4
  export const instructionText = $props.instructionText || 'Open your Symantec 2FA app to view your authentication code.'
5
- export const codeLength = $props.codeLength || 6
5
+ export const codeLength = $num($props.codeLength) || 6
6
6
  export const showRecoveryCode = $bool($props.showRecoveryCode, true)
7
7
  export const className = $props.className || ''
8
8
 
@@ -1,7 +1,7 @@
1
1
  <script server cache>
2
2
  export const items = $props.items || []
3
3
  export const separator = $props.separator || '/'
4
- export const maxItems = $props.maxItems || 0
4
+ export const maxItems = $num($props.maxItems) || 0
5
5
  export const className = $props.className || ''
6
6
 
7
7
  /*
@@ -17,7 +17,7 @@ export const minDate = $props.minDate || null
17
17
  export const maxDate = $props.maxDate || null
18
18
  export const disabledDates = $props.disabledDates || []
19
19
  export const locale = $props.locale || 'en-US'
20
- export const firstDayOfWeek = $props.firstDayOfWeek || 0
20
+ export const firstDayOfWeek = $num($props.firstDayOfWeek) || 0
21
21
  export const showToday = $bool($props.showToday, true)
22
22
  export const className = $props.className || ''
23
23
  export const highlightToday = $bool($props.highlightToday, true)
@@ -2,6 +2,19 @@
2
2
  export const open = $bool($props.open)
3
3
  export const className = $props.className || ''
4
4
 
5
+ /*
6
+ * The dialog's accessible name.
7
+ *
8
+ * `role="dialog"` with no name is announced as just "dialog", which tells a
9
+ * screen reader user nothing about what has taken over the page -- WCAG 4.1.2.
10
+ * The slot idiom puts the name in a <DialogTitle>, which the client script
11
+ * below associates on mount; this prop is the server-rendered half, so a
12
+ * dialog is named before hydration and without JavaScript at all. Emitted only
13
+ * when set: an empty aria-label is worse than none, because it suppresses the
14
+ * name the title would otherwise supply. Same idiom as Drawer.
15
+ */
16
+ export const title = $props.title || ''
17
+
5
18
  const baseClasses = 'relative z-50'
6
19
  export const dialogClasses = `${baseClasses} ${className}`.trim()
7
20
 
@@ -38,8 +51,28 @@ const mounted = state(false)
38
51
 
39
52
  onMount(() => {
40
53
  mounted.set(true)
54
+ labelFromTitle()
41
55
  })
42
56
 
57
+ /*
58
+ * Name the dialog after its <DialogTitle>, when the server could not.
59
+ *
60
+ * The documented idiom puts the name in the slot, which the server cannot see
61
+ * from here -- it renders the title as opaque slot content. So a dialog
62
+ * without the `title` prop reaches the browser announced as bare "dialog".
63
+ * This associates the two once the slot content exists. Skipped when a name is
64
+ * already present, so the prop always wins.
65
+ */
66
+ function labelFromTitle() {
67
+ const root = rootRef.value
68
+ if (!root) return
69
+ if (root.getAttribute('aria-label') || root.getAttribute('aria-labelledby')) return
70
+ const heading = root.querySelector('[data-stx-dialog-title]')
71
+ if (!heading) return
72
+ if (!heading.id) heading.id = `${dialogInstanceId}-title`
73
+ root.setAttribute('aria-labelledby', heading.id)
74
+ }
75
+
43
76
  function close() {
44
77
  isOpen.set(false)
45
78
  emit('close')
@@ -262,6 +295,7 @@ defineExpose({
262
295
  data-stx-dialog="{{ dialogInstanceId }}"
263
296
  role="dialog"
264
297
  aria-modal="true"
298
+ @if(title)aria-label="{{ title }}"@endif
265
299
  @click="onRootClick($event)"
266
300
  >
267
301
  <slot />
@@ -6,6 +6,6 @@ const baseClasses = 'text-lg font-medium leading-6 text-fg'
6
6
  const titleClasses = `${baseClasses} ${className}`.trim()
7
7
  </script>
8
8
 
9
- <component :is="{{ as }}" class="{{ titleClasses }}">
9
+ <component :is="{{ as }}" class="{{ titleClasses }}" data-stx-dialog-title>
10
10
  <slot />
11
11
  </component>
@@ -1,7 +1,7 @@
1
1
  <script server cache>
2
- export const currentPage = $props.currentPage || 1
3
- export const totalPages = $props.totalPages || 1
4
- export const siblingCount = $props.siblingCount || 1
2
+ export const currentPage = $num($props.currentPage) || 1
3
+ export const totalPages = $num($props.totalPages) || 1
4
+ export const siblingCount = $num($props.siblingCount) || 1
5
5
  export const showFirstLast = $bool($props.showFirstLast, true)
6
6
  export const showPrevNext = $bool($props.showPrevNext, true)
7
7
  export const className = $props.className || ''
@@ -3,8 +3,8 @@ export const products = $props.products || []
3
3
  export const mode = $props.mode || 'subscription'
4
4
  export const stripePublicKey = $props.stripePublicKey || ''
5
5
  export const apiUrl = $props.apiUrl || ''
6
- export const shipping = $props.shipping || 0
7
- export const taxes = $props.taxes || 0
6
+ export const shipping = $num($props.shipping) || 0
7
+ export const taxes = $num($props.taxes) || 0
8
8
  export const className = $props.className || ''
9
9
 
10
10
  export const isSubscription = mode === 'subscription'
@@ -3,8 +3,8 @@ export const products = $props.products || []
3
3
  export const stripePublicKey = $props.stripePublicKey || ''
4
4
  export const apiUrl = $props.apiUrl || ''
5
5
  export const showRemoveProduct = $bool($props.showRemoveProduct, true)
6
- export const shipping = $props.shipping || 0
7
- export const taxes = $props.taxes || 0
6
+ export const shipping = $num($props.shipping) || 0
7
+ export const taxes = $num($props.taxes) || 0
8
8
  export const className = $props.className || ''
9
9
 
10
10
  export const subtotal = products.reduce((sum, product) => sum + (product.price * (product.quantity || 1)), 0)
@@ -1,6 +1,6 @@
1
1
  <script server cache>
2
- export const value = $props.value || 0
3
- export const max = $props.max || 100
2
+ export const value = $num($props.value) || 0
3
+ export const max = $num($props.max) || 100
4
4
  export const variant = $props.variant || 'linear'
5
5
  export const size = $props.size || 'md'
6
6
  export const color = $props.color || 'primary'
@@ -29,7 +29,7 @@ export const spacePersistKey = $props.spacePersistKey || ''
29
29
 
30
30
  // `theme` is the new name; `variant` is accepted for backwards compatibility.
31
31
  export const theme = $props.theme || $props.variant || (hasSpaces ? 'arc' : 'macos')
32
- export const width = $props.width || 250
32
+ export const width = $num($props.width) || 250
33
33
  export const position = $props.position || 'left'
34
34
  export const placement = $props.placement || 'fixed'
35
35
  export const bordered = $bool($props.bordered)
@@ -39,7 +39,7 @@ export const bordered = $bool($props.bordered)
39
39
  export const collapsed = $bool($props.collapsed)
40
40
  export const collapsible = $bool($props.collapsible, true)
41
41
  export const collapseMode = $props.collapseMode || (theme === 'workspace' || theme === 'desktop' ? 'rail' : 'hidden')
42
- export const minWidth = $props.minWidth || 64
42
+ export const minWidth = $num($props.minWidth) || 64
43
43
  export const persistKey = $props.persistKey || ''
44
44
  export const shellSelector = $props.shellSelector || ''
45
45
  export const widthVar = $props.widthVar || '--stx-sidebar-width'
@@ -1,6 +1,6 @@
1
1
  <script server cache>
2
2
  export const variant = $props.variant || 'text'
3
- export const count = $props.count || 1
3
+ export const count = $num($props.count) || 1
4
4
  export const width = $props.width || ''
5
5
  export const height = $props.height || ''
6
6
  export const circle = $bool($props.circle)
@@ -1,5 +1,5 @@
1
1
  <script server>
2
- export const currentStep = $props.currentStep || 0
2
+ export const currentStep = $num($props.currentStep) || 0
3
3
  export const orientation = $props.orientation || 'horizontal'
4
4
  export const className = $props.className || ''
5
5
  export const as = $props.as || 'div'
@@ -4,8 +4,8 @@
4
4
  // value leaves the mustache in the JavaScript, which is a SyntaxError that
5
5
  // takes the whole scoped script down -- onClick included. `??` rather than
6
6
  // `||` so an explicit 0 (the first step) survives.
7
- export const stepNumber = $props.stepNumber ?? 0
8
- export const currentStep = $props.currentStep || 0
7
+ export const stepNumber = $num($props.stepNumber, 0)
8
+ export const currentStep = $num($props.currentStep) || 0
9
9
  export const label = $props.label || ''
10
10
  export const description = $props.description || ''
11
11
  export const className = $props.className || ''
@@ -8,11 +8,17 @@
8
8
  // [data-stx-tab-panel] descendants on mount and builds the tab list
9
9
  // dynamically.
10
10
  export const tabs = $props.tabs || []
11
- export const defaultTab = $props.defaultTab || 0
11
+ export const defaultTab = $num($props.defaultTab) || 0
12
12
  export const orientation = $props.orientation || 'horizontal'
13
13
  export const variant = $props.variant || 'line'
14
14
  export const className = $props.className || ''
15
15
 
16
+ /*
17
+ * This tab set's own id, so the ids it mints for slot-mode tabs and panels
18
+ * cannot collide with a second <Tabs> on the same page. Same idiom as Dialog.
19
+ */
20
+ export const tabsInstanceId = $uid
21
+
16
22
  const orientationClasses = {
17
23
  horizontal: 'flex-col',
18
24
  vertical: 'flex-row',
@@ -39,6 +45,7 @@ export const hasPropTabs = Array.isArray(tabs) && tabs.length > 0
39
45
 
40
46
  <script client>
41
47
  const emit = defineEmits()
48
+ const tabsInstanceId = {{ tabsInstanceId }}
42
49
  const tabs = {{ tabs }}
43
50
  const variant = {{ variant }}
44
51
  const orientation = {{ orientation }}
@@ -81,10 +88,26 @@ function findOwnPanels() {
81
88
  onMount(() => {
82
89
  if (hasPropTabs) return // legacy mode: prop array already in discoveredTabs
83
90
  const panels = findOwnPanels()
84
- const list = panels.map(p => ({
85
- label: p.dataset.label || '',
86
- icon: p.dataset.icon || '',
87
- }))
91
+ /*
92
+ * Give each panel an id and hand it to its tab, so the tab can point at it.
93
+ *
94
+ * Prop mode numbers both sides itself (`tab-N` / `tab-panel-N`), but in slot
95
+ * mode the panels are the consumer's own markup and may carry no id at all --
96
+ * so the tab button rendered with role="tab" and no aria-controls, and a
97
+ * screen reader had no way to get from the tab to the panel it controls
98
+ * (WCAG 4.1.2). Only assigned when the panel has no id of its own.
99
+ */
100
+ const list = panels.map((p, i) => {
101
+ if (!p.id) p.id = `${tabsInstanceId}-panel-${i}`
102
+ const tabId = `${tabsInstanceId}-tab-${i}`
103
+ p.setAttribute('aria-labelledby', tabId)
104
+ return {
105
+ label: p.dataset.label || '',
106
+ icon: p.dataset.icon || '',
107
+ panelId: p.id,
108
+ tabId,
109
+ }
110
+ })
88
111
  discoveredTabs.set(list)
89
112
  mounted.set(true)
90
113
  })
@@ -193,6 +216,8 @@ defineExpose({ activeTab, selectTab })
193
216
  x-class="getTabClasses(idx)"
194
217
  role="tab"
195
218
  :aria-selected="isActive(idx) ? 'true' : 'false'"
219
+ :aria-controls="tab.panelId"
220
+ :id="tab.tabId"
196
221
  :tabindex="isActive(idx) ? 0 : -1"
197
222
  @click="selectTab(idx)"
198
223
  @keydown="onTabKey($event, idx)"
@@ -3,9 +3,9 @@ export const value = $props.value || ''
3
3
  export const placeholder = $props.placeholder || ''
4
4
  export const disabled = $bool($props.disabled)
5
5
  export const readonly = $bool($props.readonly)
6
- export const rows = $props.rows || 4
6
+ export const rows = $num($props.rows) || 4
7
7
  export const autoResize = $bool($props.autoResize)
8
- export const maxRows = $props.maxRows || 10
8
+ export const maxRows = $num($props.maxRows) || 10
9
9
  export const error = $bool($props.error)
10
10
  export const label = $props.label || ''
11
11
  /*
@@ -1,7 +1,7 @@
1
1
  <script server cache>
2
2
  export const content = $props.content || ''
3
3
  export const position = $props.position || 'top'
4
- export const delay = $props.delay || 0
4
+ export const delay = $num($props.delay) || 0
5
5
  export const className = $props.className || ''
6
6
  export const show = $bool($props.show)
7
7
  export const disabled = $bool($props.disabled)
@@ -7,8 +7,8 @@ export const leave = $props.leave || 'transition-opacity duration-200'
7
7
  export const leaveFrom = $props.leaveFrom || 'opacity-100'
8
8
  export const leaveTo = $props.leaveTo || 'opacity-0'
9
9
  export const appear = $bool($props.appear)
10
- export const duration = $props.duration || 300
11
- export const delay = $props.delay || 0
10
+ export const duration = $num($props.duration) || 300
11
+ export const delay = $num($props.delay) || 0
12
12
  export const preset = $props.preset || ''
13
13
  export const className = $props.className || ''
14
14