@stacksjs/components 0.2.815 → 0.2.817
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Button-gmct2gvq.stx → Button-k3j4cc3h.stx} +18 -1
- package/dist/{Video-9p1pncwt.stx → Video-bqsx3wr8.stx} +61 -10
- package/dist/index.js +1 -1
- package/dist/ui/button/Button.d.ts +16 -1
- package/dist/ui/video/Video.d.ts +56 -7
- package/package.json +9 -3
- package/src/ui/button/Button.stx +18 -1
- package/src/ui/video/Video.stx +61 -10
|
@@ -19,7 +19,22 @@ export const fullWidth = $bool($props.fullWidth)
|
|
|
19
19
|
* one, the button renders it in a span that tracks the parent's binding; given
|
|
20
20
|
* none, the slot behaves exactly as before. See stacksjs/stx#1997.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Desktop and native callers name a button's words `title` and its glyph
|
|
24
|
+
* `symbol`, with `iconOnly` meaning "draw the glyph alone". Accepting them is
|
|
25
|
+
* what lets such a call select this component rather than the native
|
|
26
|
+
* primitive (stacksjs/stx#2091).
|
|
27
|
+
*
|
|
28
|
+
* `title` supplies the words ONLY when nothing else does. It is also the web's
|
|
29
|
+
* tooltip attribute, so a caller writing both a tooltip and content keeps
|
|
30
|
+
* both: folding it into the label unconditionally would replace the slot with
|
|
31
|
+
* the tooltip text.
|
|
32
|
+
*/
|
|
33
|
+
export const symbol = $props.symbol || ''
|
|
34
|
+
export const iconOnly = $bool($props.iconOnly)
|
|
35
|
+
const slotWords = String($slots?.default ?? '').trim()
|
|
36
|
+
const titleWords = !$props.label && !slotWords ? ($props.title || '') : ''
|
|
37
|
+
export const label = $props.label || titleWords
|
|
23
38
|
export const hasLabel = label !== ''
|
|
24
39
|
|
|
25
40
|
/*
|
|
@@ -193,6 +208,8 @@ function onClick(event) {
|
|
|
193
208
|
type="{{ type }}"
|
|
194
209
|
class="{{ nativeButtonClasses }}"
|
|
195
210
|
activeOpacity="0.6"
|
|
211
|
+
@if(symbol)symbol="{{ symbol }}"@endif
|
|
212
|
+
@if(iconOnly)iconOnly="true"@endif
|
|
196
213
|
@if(isDisabled)disabled@endif
|
|
197
214
|
:disabled="isDisabled()"
|
|
198
215
|
aria-busy="{{ loading ? 'true' : 'false' }}"
|
|
@@ -20,13 +20,40 @@
|
|
|
20
20
|
* The controls speak the page's language (`<html lang>`): ts-video-player
|
|
21
21
|
* names its buttons and announces playback in it.
|
|
22
22
|
*
|
|
23
|
-
* On native, src calls using the shared media events select this
|
|
24
|
-
* when installed. Legacy
|
|
25
|
-
* retain the native primitive
|
|
23
|
+
* On native, src and source calls using the shared media events select this
|
|
24
|
+
* component when installed. Legacy-event calls (for example @progress rather
|
|
25
|
+
* than @timeupdate) retain the native primitive, because the two names mean
|
|
26
|
+
* different things on the web and collapse to one on a host. This is the
|
|
27
|
+
* host's Video control: `src`
|
|
26
28
|
* must be a media URL the platform supports, not a YouTube/Vimeo page.
|
|
27
29
|
* Browser source selection, tracks and DRM configuration remain web-only.
|
|
28
30
|
*/
|
|
29
|
-
|
|
31
|
+
/**
|
|
32
|
+
* `source` is the native primitive's name for the same media URL, and both
|
|
33
|
+
* hosts accept either a string or a `{ uri }` payload. Accepting it here is
|
|
34
|
+
* what lets a legacy native call select this component instead of the
|
|
35
|
+
* primitive (stacksjs/stx#2091); `src` wins a mixed call, being this
|
|
36
|
+
* component's own API.
|
|
37
|
+
*/
|
|
38
|
+
function mediaUrl(value) {
|
|
39
|
+
if (typeof value === 'string') return value
|
|
40
|
+
if (value && typeof value === 'object') return String(value.uri ?? '')
|
|
41
|
+
return ''
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* How the frame fills its box. `resizeMode` is the native name and the host
|
|
45
|
+
* interprets it; `object-fit` is the web's, and the four native values map
|
|
46
|
+
* onto it, so one call works on both (stacksjs/stx#2091).
|
|
47
|
+
*
|
|
48
|
+
* Unset keeps this component's existing contain behaviour rather than
|
|
49
|
+
* adopting the primitive's cover default, so no shared caller changes.
|
|
50
|
+
*/
|
|
51
|
+
const RESIZE_FIT = { contain: 'contain', cover: 'cover', stretch: 'fill', center: 'none' }
|
|
52
|
+
export const resizeMode = typeof $props.resizeMode === 'string' ? $props.resizeMode.trim().toLowerCase() : ''
|
|
53
|
+
export const objectFit = RESIZE_FIT[resizeMode] || 'contain'
|
|
54
|
+
export const srcProp = $props.src || ''
|
|
55
|
+
export const sourceUrl = mediaUrl($props.source)
|
|
56
|
+
export const src = srcProp || sourceUrl
|
|
30
57
|
export const poster = $props.poster || ''
|
|
31
58
|
/** The accessible name of the player. Follows a binding. */
|
|
32
59
|
export const label = $props.label || $props.title || ''
|
|
@@ -73,7 +100,23 @@ export const playerConfig = JSON.stringify({ sources: playerSources, tracks: pla
|
|
|
73
100
|
*/
|
|
74
101
|
export const isPage = /^https?:\/\/(?:[\w-]+\.)*(?:youtube\.com|youtube-nocookie\.com|youtu\.be|vimeo\.com)\//i.test(src)
|
|
75
102
|
|
|
76
|
-
|
|
103
|
+
/**
|
|
104
|
+
* A caller's explicit box wins over this component's own sizing.
|
|
105
|
+
*
|
|
106
|
+
* The native primitive is a single node that obeys the box it is given, so
|
|
107
|
+
* `style="width:64;height:32"` produced a 64x32 video. This component imposed
|
|
108
|
+
* `w-full` plus an aspect ratio and dropped the caller's style entirely, so
|
|
109
|
+
* the same call rendered full width and pushed everything below it down the
|
|
110
|
+
* screen. That is what kept legacy `source` calls on the primitive
|
|
111
|
+
* (stacksjs/stx#2091); it is the sizing, not the props.
|
|
112
|
+
*
|
|
113
|
+
* Only a box with BOTH dimensions counts: a caller setting one of them still
|
|
114
|
+
* wants the aspect ratio to supply the other, which is this component's whole
|
|
115
|
+
* reason for having one.
|
|
116
|
+
*/
|
|
117
|
+
export const styleProp = typeof $props.style === 'string' ? $props.style : ''
|
|
118
|
+
export const hasExplicitBox = /(?:^|;)\s*width\s*:/.test(styleProp) && /(?:^|;)\s*height\s*:/.test(styleProp)
|
|
119
|
+
export const containerClasses = `relative ${hasExplicitBox ? '' : 'w-full'} ${className}`.trim().replace(/\s+/g, ' ')
|
|
77
120
|
</script>
|
|
78
121
|
|
|
79
122
|
<script client>
|
|
@@ -83,7 +126,11 @@ const nativeVideo = !!window.stx._host.isNative
|
|
|
83
126
|
if (!nativeVideo)
|
|
84
127
|
registerElements()
|
|
85
128
|
|
|
86
|
-
|
|
129
|
+
// Tracked separately so a parent driving either name keeps working: holding
|
|
130
|
+
// one merged initial value would leave the other stale when it changed.
|
|
131
|
+
const liveSrcProp = useReactiveProp('src', {{ srcProp }})
|
|
132
|
+
const liveSourceProp = useReactiveProp('source', {{ sourceUrl }})
|
|
133
|
+
const liveSrc = derived(() => liveSrcProp() || liveSourceProp() || '')
|
|
87
134
|
const livePoster = useReactiveProp('poster', {{ poster }})
|
|
88
135
|
const liveLabel = useReactiveProp('label', {{ label }})
|
|
89
136
|
const liveRatio = useReactiveProp('aspectRatio', {{ aspectRatio }})
|
|
@@ -113,6 +160,9 @@ function forwardNative(event, payload) {
|
|
|
113
160
|
|
|
114
161
|
/** Width over height as CSS takes it, whatever the parent bound: "9/16", 0.5625. */
|
|
115
162
|
const playerStyle = derived(() => {
|
|
163
|
+
// An explicit box from the caller decides both dimensions, so an aspect
|
|
164
|
+
// ratio alongside it would fight the size they asked for.
|
|
165
|
+
if ({{ hasExplicitBox }}) return null
|
|
116
166
|
const value = String(liveRatio() ?? '').trim()
|
|
117
167
|
const valid = /^\d+(?:\.\d+)?(?:\s*\/\s*\d+(?:\.\d+)?)?$/.test(value) ? value : '16 / 9'
|
|
118
168
|
const [width, height = 1] = valid.split('/').map(Number)
|
|
@@ -130,7 +180,7 @@ effect(() => {
|
|
|
130
180
|
})
|
|
131
181
|
</script>
|
|
132
182
|
|
|
133
|
-
<figure class="m-0 {{ containerClasses }}">
|
|
183
|
+
<figure class="m-0 {{ containerClasses }}" @if(styleProp) style="{{ styleProp }}" @endif>
|
|
134
184
|
@if(title)
|
|
135
185
|
<figcaption class="mb-2 px-1 font-medium text-sm text-fg">{{ title }}</figcaption>
|
|
136
186
|
@endif
|
|
@@ -139,6 +189,7 @@ effect(() => {
|
|
|
139
189
|
<video-player
|
|
140
190
|
data-native="Video"
|
|
141
191
|
data-stx-native-host-root
|
|
192
|
+
@if(resizeMode) resizeMode="{{ resizeMode }}" @endif
|
|
142
193
|
ref="player"
|
|
143
194
|
@play="forwardNative('play', $event)"
|
|
144
195
|
@pause="forwardNative('pause', $event)"
|
|
@@ -170,14 +221,14 @@ effect(() => {
|
|
|
170
221
|
keep-alive
|
|
171
222
|
@if(autofocus) autofocus @endif
|
|
172
223
|
@if(label) aria-label="{{ label }}" @endif
|
|
173
|
-
class="block overflow-hidden relative w-full bg-black rounded-panel focus-within:ring-2 focus-within:ring-accent"
|
|
174
|
-
style="aspect-ratio: {{ initialRatio }};"
|
|
224
|
+
class="block overflow-hidden relative w-full bg-black rounded-panel focus-within:ring-2 focus-within:ring-accent @if(hasExplicitBox) h-full @endif"
|
|
225
|
+
@if(!hasExplicitBox) style="aspect-ratio: {{ initialRatio }};" @endif
|
|
175
226
|
>
|
|
176
227
|
<media-error-display></media-error-display>
|
|
177
228
|
@if(isPage)
|
|
178
229
|
<span data-native-fallback class="block h-full w-full"></span>
|
|
179
230
|
@else
|
|
180
|
-
<video data-native-fallback @if(src) src="{{ src }}" @endif @if(poster) poster="{{ poster }}" @endif @if(controls) controls @endif @if(loop) loop @endif @if(muted) muted @endif :controls="playerControls()" :loop="playerLoop()" :muted="playerMuted()" @if(playsinline) playsinline @endif preload="none" @if(crossorigin) crossorigin="{{ crossorigin }}" @endif controlslist="{{ controlslist }}" @if(disablePictureInPicture) disablepictureinpicture @endif @if(label) aria-label="{{ label }}" @endif class="object-
|
|
231
|
+
<video data-native-fallback @if(src) src="{{ src }}" @endif @if(poster) poster="{{ poster }}" @endif @if(controls) controls @endif @if(loop) loop @endif @if(muted) muted @endif :controls="playerControls()" :loop="playerLoop()" :muted="playerMuted()" @if(playsinline) playsinline @endif preload="none" @if(crossorigin) crossorigin="{{ crossorigin }}" @endif controlslist="{{ controlslist }}" @if(disablePictureInPicture) disablepictureinpicture @endif @if(label) aria-label="{{ label }}" @endif class="object-{{ objectFit }} h-full w-full"></video>
|
|
181
232
|
@endif
|
|
182
233
|
<video-skin>
|
|
183
234
|
<media-seek-button slot="left" seconds="-10"></media-seek-button>
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var Qe={__stx:!0,src:"./components/CodeBlock.stx"};var Ze={__stx:!0,src:"./compo
|
|
|
8
8
|
Documentation: ${s.docsUrl}`;else if(e)o+=`
|
|
9
9
|
Documentation: https://stacksjs.com/components/${e.toLowerCase()}`;return o}toJSON(){return{name:this.name,message:this.message,component:this.component,context:this.context,stack:this.stack}}}var J={invalidProp(e,t,s,o){return new z(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 z(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 z(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 z("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new z(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new z(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new z(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new z(e,"Failed to render component",{details:t.message})}},ae=null;function Cl(e){ae=e}function $l(){ae=null}function ne(e,t={}){let{throwError:s=!0,logError:o=!0}=t;if(o){if(console.error("Component Error:",e),e instanceof z)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(ae)try{ae(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 r=J.eventHandler(t,s,n);throw ne(r,{throwError:!1}),r});return a}catch(a){let n=J.eventHandler(t,s,a);throw ne(n,{throwError:!1}),n}}}function Ht(e,t){if(!e)throw t}function Bt(e,t,s={}){let o=z.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function Sl(e,t){Ht(e,t)}function Tl(e){let t=typeof process<"u"&&process.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){Bt(e,s,o)},error(s,o){let a=new z(e,s,o);ne(a,{throwError:!1})}}}function Il(e,t,s){try{return t()}catch(o){let a=J.render(e,o);return ne(a,{throwError:!1}),s}}class A{validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new A(this.validate,this.message,!0)}}var l={string:new A((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new A((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new A((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new A((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new A((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 A((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new A(()=>!0,()=>""),oneOf(e){return new A((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 A((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 A((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 A((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 A((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new A(e,typeof t==="string"?()=>t:t)},min(e){return new A((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 A((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 A((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 A((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 A((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 A((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 Ft(e,t,s,o={}){let{throwOnError:a=!1,logWarnings:n=!0}=o,r=[];for(let[i,c]of Object.entries(s)){let d=t[i],u=d===void 0;if(c.isRequired&&u){let p=`Required prop \`${i}\` was not specified in \`${e}\`.`;r.push(p);continue}if(u)continue;if(!c.validate(d,i,e)){let p=c.message(d,i,e);r.push(p)}}if(r.length>0){if(n)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),r.forEach((i)=>console.warn(i)),console.groupEnd();if(a)throw Error(`Prop validation failed for \`${e}\`:
|
|
10
10
|
${r.join(`
|
|
11
|
-
`)}`)}return{valid:r.length===0,errors:r}}function B(e,t,s){return(o)=>Ft(e,o,t,s)}function Pl(e,t,s="value"){if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Al(e,t,s="value"){if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Wt="./Button-gmct2gvq.stx";var Kt={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,label:l.string,text:l.string,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},Dl=B("Button",Kt);function Ml(e){return Le(e,"Button","onClick")}function zl(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw J.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function jl(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw J.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var Ut="./Calendar-5vs6x7gj.stx";var Jt="./DateRangePicker-4zmf34e4.stx";var Xt="./EmptyState-snj7gbsn.stx";var Zt="./ErrorState-qb7af5zb.stx";var ts="./ThemeToggle-4wm9zare.stx";var os="./Card-r55zpjqh.stx";var ns="./Checkbox-80myyzzm.stx";var is="./ChoiceChips-8dcf172n.stx";var cs="./Combobox-9n04ec5w.stx";var ps="./ComboboxButton-4r6a45s1.stx";var hs="./ComboboxInput-1gyfpnca.stx";var ms="./ComboboxOption-wkw70js7.stx";var bs="./ComboboxOptions-zhr9b6rx.stx";var vs="./CommandPalette-qqjdbcyg.stx";var ys="./CommandPaletteItem-7290ce1z.stx";var Cs="./Dialog-wm7zjqnb.stx";var Ss="./DialogBackdrop-de5m5m4w.stx";var Is="./DialogDescription-yd2jgt2m.stx";var Ps="./DialogPanel-v972ztcc.stx";var Os="./DialogTitle-nw0pw114.stx";var Rs="./Drawer-d78cdr6d.stx";var Ds="./Dropdown-hb8ks69x.stx";var zs="./DropdownButton-wxc25hsy.stx";var Vs="./DropdownItem-af0vzc8a.stx";var Bs="./DropdownItems-bkz7jkyz.stx";var qs="./Form-cybgg9ym.stx";var Ws={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},Qc=B("Form",Ws);var _s="./GroupedList-j3sxv5pb.stx";var Gs="./GroupedListRow-v52zmzpk.stx";var Ys="./Image-ndt0d1dq.stx";var Qs="./EmailInput-sf9jfrgz.stx";var eo="./NumberInput-pq4k2k4k.stx";var so="./PasswordInput-r51qzgc0.stx";var ao="./SearchInput-w15r5t95.stx";var ro="./TextInput-1kvx4pte.stx";var io={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},lo={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,type:l.oneOf(["text","date","time","datetime-local","month","week","url","tel","color","search","email","number","password"]),pattern:l.string,list:l.string,minLength:l.number,htmlSize:l.number,autofocus:l.boolean},co={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},po={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},uo={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},md=B("TextInput",lo),gd=B("EmailInput",io),bd=B("PasswordInput",po),xd=B("NumberInput",co),vd=B("SearchInput",uo);var fo="./List-q8ff8gdr.stx";var go="./Listbox-83j2q4x6.stx";var xo="./ListboxButton-gan8e3nw.stx";var wo="./ListboxLabel-ka0hfm7b.stx";var ko="./ListboxOption-gpaqvk3s.stx";var $o="./ListboxOptions-2928864k.stx";var To="./FilterChip-bynt5maa.stx";var Eo="./FilterChips-mpmev5v5.stx";var Ao="./ListRow-nvyg2fwb.stx";var Lo="./NavBar-ky8tedjb.stx";var No="./SectionCard-8b5fyrjd.stx";var Mo="./TabBar-6m1ajm1d.stx";var jo="./TabBarItem-kddfnhk3.stx";var Ho="./Navigator-1yk1c3pp.stx";var Fo="./Notification-b3cz24f0.stx";var Wo="./Pager-5e7knyqh.stx";var _o="./PagerDots-076w890y.stx";var Go="./Pagination-8bhbkpcp.stx";var Yo="./Checkout-crbegxyv.stx";var Qo="./DefaultPaymentMethod-ss3x61tr.stx";var ea="./PaymentMethods-z4hhr0kv.stx";var sa="./SubscriptionCheckout-rdcv32n1.stx";var aa="./Popover-jjt7p7sn.stx";var ra="./PopoverButton-ks3cttd9.stx";var la="./PopoverPanel-ddgj4gz3.stx";var da="./Portal-m73vz879.stx";var ua="./Progress-2qzb77kc.stx";var fa="./Radio-8153x74w.stx";var ga="./RadioGroup-smqcqgds.stx";var xa="./RadioGroupDescription-z34r9avr.stx";var wa="./RadioGroupLabel-ka0hfm7b.stx";var ka="./RadioGroupOption-twcw1b2a.stx";var $a="./SegmentedControl-9b1vh960.stx";var Ta="./Select-1cnqbcmg.stx";var Ea="./Sidebar-8dygywjv.stx";var Aa="./SidebarFooter-s7skj92y.stx";var La="./SidebarHeader-x7jdhmyr.stx";var Na="./SidebarItem-64sjb2fe.stx";var Ma="./SidebarPinned-48kyk193.stx";var ja="./SidebarSection-vx5bahsk.stx";var Ha="./SidebarSpace-bwv98azf.stx";var Fa="./SidebarSpaces-mdtrynr2.stx";var Wa="./SidebarSpaceSwitcher-1mycft2g.stx";var re={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},_={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]/75 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/60 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"].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]/60 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]/75 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},Ka={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}},_a={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}},Ua={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"].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}},Ga={..._,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Ja={..._,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Ya={..._,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},Re={macos:_,tahoe:_,"macos-tahoe":_,"macos-latest":_,arc:Ua,workspace:Ka,desktop:_a,solid:Ga,transparent:Ja,vibrancy:Ya};function du(e){return Re[e||"macos"]||Re.macos}function pu(e){if(!e)return;return re[e]||e}var Xa=re.gray;function W(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function Ne(e){return{light:{from:W(e,35,"#ffffff"),to:W(e,12.5,"#ffffff"),ink:W(e,22,"#17171b"),accent:W(e,88,"#2a2a30")},dark:{from:W(e,27,"#101014"),to:W(e,10,"#08080b"),ink:W(e,12,"#f4f4f7"),accent:W(e,74,"#ffffff")}}}function fu(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Qa(e){if(!e)return Ne(Xa);if(typeof e!=="string")return e;return Ne(re[e]||e)}function Za(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 De(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function en(e){let t=Qa(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:De(e.action,e.id,"action","i-f7-plus"),clear:De(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Za(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function mu(e){return(e||[]).map(en)}function gu(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function bu(e){return e.map((t)=>t.tint)}var sn="./Skeleton-m4p66zcs.stx";var an="./Spinner-vhnc3y03.stx";var rn="./Stepper-68gxcmej.stx";var cn="./StepperStep-zf4pq1s0.stx";class ie{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 r=e.charAt(n),i=a+r;if(t[i]!==void 0)a=i;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[i]=s++,a=r}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 r=1;r<t.length;r++){let i=t[r],c;if(s[i]!==void 0)c=s[i];else if(i===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 r=JSON.stringify(n);if(s?.compress)r=this.compress(r);if(s?.encrypt)r=this.encrypt(r);this.storage.setItem(o,r),this.notifyWatchers(e,t,a)}catch(r){console.error("Storage set error:",r)}}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 qu={local:new ie("local"),session:new ie("session")};function Wu(e="local",t){return new ie(e,t)}var pn="./Switch-s8yf2rvm.stx";var hn="./Table-0a4y46vd.stx";var mn="./TableBody-y49bqb1p.stx";var bn="./TableCell-jhvsxw8b.stx";var vn="./TableHead-e9xvjx2j.stx";var yn="./TableHeader-krzcx4sv.stx";var Cn="./TableRow-dt8e11aj.stx";var Sn="./Tab-j9f4t166.stx";var In="./TabList-r1pc87xs.stx";var Pn="./TabPanel-5htevsq6.stx";var On="./Tabs-psm5wj7c.stx";var Rn="./Teleport-vqs75x36.stx";var Dn="./Textarea-40qrctpw.stx";var zn="./AiTextarea-bg6xq5wc.stx";var Vn="./Tooltip-pev702hb.stx";var Bn="./Transition-7m0mk45s.stx";var qn="./Video-9p1pncwt.stx";var Kn="./VirtualList-fa7v5a3h.stx";var Un="./VirtualTable-kp7b3wyv.stx";var Gn=0;function Me(e="a11y"){return`${e}-${++Gn}-${Date.now()}`}function Hh(e,t,s={}){let{visible:o=!1,id:a=Me("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 Bh(e,t){let s=Me("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 Fh(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 ve(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 qh(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:r=!1,onActivate:i,onDeactivate:c}=t,d=!1,u=!1,p=null,h=(w)=>{if(u)return;if(a&&w.key==="Escape"){w.preventDefault(),k();return}if(w.key==="Tab"){let S=ve(e);if(S.length===0){w.preventDefault();return}let L=S[0],R=S[S.length-1];if(w.shiftKey){if(document.activeElement===L)w.preventDefault(),R.focus()}else if(document.activeElement===R)w.preventDefault(),L.focus()}},m=(w)=>{if(u)return;if(!e.contains(w.target)){if(typeof r==="function"){if(!r(w)&&n)k()}else if(!r&&n)k()}};function C(){if(d)return;d=!0,p=document.activeElement;let w=s||ve(e)[0];if(w&&typeof w.focus==="function")w.focus();document.addEventListener("keydown",h),document.addEventListener("click",m),i?.()}function k(){if(!d)return;d=!1;let w=o||p;if(w&&typeof w.focus==="function")w.focus();document.removeEventListener("keydown",h),document.removeEventListener("click",m),c?.()}function y(){u=!0}function b(){u=!1}return{activate:C,deactivate:k,pause:y,unpause:b}}function Wh(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:r}=t,i=o,c=()=>Array.from(e.querySelectorAll(s)),d=(p)=>{let h=c();if(p<0||p>=h.length)return;h.forEach((m,C)=>{if(C===p){if(m.setAttribute("tabindex","0"),typeof m.focus==="function")m.focus()}else m.setAttribute("tabindex","-1")}),i=p,r?.(p,h[p])},u=(p)=>{let m=c().length-1,C=!1,k=i;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(k=i+1,k>m)k=n?0:m;C=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(k=i-1,k<0)k=n?m:0;C=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(k=i+1,k>m)k=n?0:m;C=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(k=i-1,k<0)k=n?m:0;C=!0}break;case"Home":k=0,C=!0;break;case"End":k=m,C=!0;break}if(C)p.preventDefault(),d(k)};return d(o),e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}var Kh={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function _h(e){return document.activeElement===e}function Uh(e,t){let s=t||document.activeElement,o=ve(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,r=o[n];if(r)r.focus()}function Gh(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 Jh={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 Yh(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 Xh(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function Qh(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function Zh(){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 ef(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 tf(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let r of n)if(!document.getElementById(r))t.push(`${o} references non-existent ID: ${r}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var Jn=(e,t,s,o)=>s*e/o+t,Yn=(e,t,s,o)=>(e/=o,s*e*e+t),Xn=(e,t,s,o)=>(e/=o,-s*e*(e-2)+t),Qn=(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},Zn=(e,t,s,o)=>(e/=o,s*e*e*e+t),er=(e,t,s,o)=>(e/=o,e--,s*(e*e*e+1)+t),tr=(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},sr=(e,t,s,o)=>(e/=o,s*e*e*e*e+t),or=(e,t,s,o)=>(e/=o,e--,-s*(e*e*e*e-1)+t),ar=(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},nr=(e,t,s,o)=>(e/=o,s*e*e*e*e*e+t),rr=(e,t,s,o)=>(e/=o,e--,s*(e*e*e*e*e+1)+t),ir=(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},lr=(e,t,s,o)=>-s*Math.cos(e/o*(Math.PI/2))+s+t,cr=(e,t,s,o)=>s*Math.sin(e/o*(Math.PI/2))+t,dr=(e,t,s,o)=>-s/2*(Math.cos(Math.PI*e/o)-1)+t,pr=(e,t,s,o)=>e===0?t:s*2**(10*(e/o-1))+t,ur=(e,t,s,o)=>e===o?t+s:s*(-(2**(-10*e/o))+1)+t,hr=(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},fr=(e,t,s,o)=>(e/=o,-s*(Math.sqrt(1-e*e)-1)+t),mr=(e,t,s,o)=>(e/=o,e--,s*Math.sqrt(1-e*e)+t),gr=(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},br=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);return e-=1,-(r*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},xr=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);return r*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},vr=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);if(e<1)return e-=1,-0.5*(r*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,r*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},wr=(e,t,s,o)=>(e/=o,s*e*e*(2.70158*e-1.70158)+t),yr=(e,t,s,o)=>(e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t),kr=(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},we=(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},ze=(e,t,s,o)=>s-we(o-e,0,s,o)+t,Cr=(e,t,s,o)=>{if(e<o/2)return ze(e*2,0,s,o)*0.5+t;return we(e*2-o,0,s,o)*0.5+s*0.5+t},of={linear:Jn,easeInQuad:Yn,easeOutQuad:Xn,easeInOutQuad:Qn,easeInCubic:Zn,easeOutCubic:er,easeInOutCubic:tr,easeInQuart:sr,easeOutQuart:or,easeInOutQuart:ar,easeInQuint:nr,easeOutQuint:rr,easeInOutQuint:ir,easeInSine:lr,easeOutSine:cr,easeInOutSine:dr,easeInExpo:pr,easeOutExpo:ur,easeInOutExpo:hr,easeInCirc:fr,easeOutCirc:mr,easeInOutCirc:gr,easeInElastic:br,easeOutElastic:xr,easeInOutElastic:vr,easeInBack:wr,easeOutBack:yr,easeInOutBack:kr,easeInBounce:ze,easeOutBounce:we,easeInOutBounce:Cr};function $r(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:r="normal",fill:i="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${r} ${i} ${c}`}function je(e,t,s={}){e.style.animation=$r(t,s)}function nf(e){e.style.animation=""}function Sr(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function rf(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,r)=>{let i=`${r*o}ms`;je(n,t,{...a,delay:i})})}async function lf(e,t){for(let s of t)je(e,s.name,s.options),await Sr(e)}var cf={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 df(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function pf(e,t){let s=`
|
|
11
|
+
`)}`)}return{valid:r.length===0,errors:r}}function B(e,t,s){return(o)=>Ft(e,o,t,s)}function Pl(e,t,s="value"){if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function Al(e,t,s="value"){if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var Wt="./Button-k3j4cc3h.stx";var Kt={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,label:l.string,text:l.string,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},Dl=B("Button",Kt);function Ml(e){return Le(e,"Button","onClick")}function zl(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw J.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function jl(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw J.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var Ut="./Calendar-5vs6x7gj.stx";var Jt="./DateRangePicker-4zmf34e4.stx";var Xt="./EmptyState-snj7gbsn.stx";var Zt="./ErrorState-qb7af5zb.stx";var ts="./ThemeToggle-4wm9zare.stx";var os="./Card-r55zpjqh.stx";var ns="./Checkbox-80myyzzm.stx";var is="./ChoiceChips-8dcf172n.stx";var cs="./Combobox-9n04ec5w.stx";var ps="./ComboboxButton-4r6a45s1.stx";var hs="./ComboboxInput-1gyfpnca.stx";var ms="./ComboboxOption-wkw70js7.stx";var bs="./ComboboxOptions-zhr9b6rx.stx";var vs="./CommandPalette-qqjdbcyg.stx";var ys="./CommandPaletteItem-7290ce1z.stx";var Cs="./Dialog-wm7zjqnb.stx";var Ss="./DialogBackdrop-de5m5m4w.stx";var Is="./DialogDescription-yd2jgt2m.stx";var Ps="./DialogPanel-v972ztcc.stx";var Os="./DialogTitle-nw0pw114.stx";var Rs="./Drawer-d78cdr6d.stx";var Ds="./Dropdown-hb8ks69x.stx";var zs="./DropdownButton-wxc25hsy.stx";var Vs="./DropdownItem-af0vzc8a.stx";var Bs="./DropdownItems-bkz7jkyz.stx";var qs="./Form-cybgg9ym.stx";var Ws={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},Qc=B("Form",Ws);var _s="./GroupedList-j3sxv5pb.stx";var Gs="./GroupedListRow-v52zmzpk.stx";var Ys="./Image-ndt0d1dq.stx";var Qs="./EmailInput-sf9jfrgz.stx";var eo="./NumberInput-pq4k2k4k.stx";var so="./PasswordInput-r51qzgc0.stx";var ao="./SearchInput-w15r5t95.stx";var ro="./TextInput-1kvx4pte.stx";var io={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},lo={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,type:l.oneOf(["text","date","time","datetime-local","month","week","url","tel","color","search","email","number","password"]),pattern:l.string,list:l.string,minLength:l.number,htmlSize:l.number,autofocus:l.boolean},co={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},po={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},uo={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},md=B("TextInput",lo),gd=B("EmailInput",io),bd=B("PasswordInput",po),xd=B("NumberInput",co),vd=B("SearchInput",uo);var fo="./List-q8ff8gdr.stx";var go="./Listbox-83j2q4x6.stx";var xo="./ListboxButton-gan8e3nw.stx";var wo="./ListboxLabel-ka0hfm7b.stx";var ko="./ListboxOption-gpaqvk3s.stx";var $o="./ListboxOptions-2928864k.stx";var To="./FilterChip-bynt5maa.stx";var Eo="./FilterChips-mpmev5v5.stx";var Ao="./ListRow-nvyg2fwb.stx";var Lo="./NavBar-ky8tedjb.stx";var No="./SectionCard-8b5fyrjd.stx";var Mo="./TabBar-6m1ajm1d.stx";var jo="./TabBarItem-kddfnhk3.stx";var Ho="./Navigator-1yk1c3pp.stx";var Fo="./Notification-b3cz24f0.stx";var Wo="./Pager-5e7knyqh.stx";var _o="./PagerDots-076w890y.stx";var Go="./Pagination-8bhbkpcp.stx";var Yo="./Checkout-crbegxyv.stx";var Qo="./DefaultPaymentMethod-ss3x61tr.stx";var ea="./PaymentMethods-z4hhr0kv.stx";var sa="./SubscriptionCheckout-rdcv32n1.stx";var aa="./Popover-jjt7p7sn.stx";var ra="./PopoverButton-ks3cttd9.stx";var la="./PopoverPanel-ddgj4gz3.stx";var da="./Portal-m73vz879.stx";var ua="./Progress-2qzb77kc.stx";var fa="./Radio-8153x74w.stx";var ga="./RadioGroup-smqcqgds.stx";var xa="./RadioGroupDescription-z34r9avr.stx";var wa="./RadioGroupLabel-ka0hfm7b.stx";var ka="./RadioGroupOption-twcw1b2a.stx";var $a="./SegmentedControl-9b1vh960.stx";var Ta="./Select-1cnqbcmg.stx";var Ea="./Sidebar-8dygywjv.stx";var Aa="./SidebarFooter-s7skj92y.stx";var La="./SidebarHeader-x7jdhmyr.stx";var Na="./SidebarItem-64sjb2fe.stx";var Ma="./SidebarPinned-48kyk193.stx";var ja="./SidebarSection-vx5bahsk.stx";var Ha="./SidebarSpace-bwv98azf.stx";var Fa="./SidebarSpaces-mdtrynr2.stx";var Wa="./SidebarSpaceSwitcher-1mycft2g.stx";var re={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},_={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]/75 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/60 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"].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]/60 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]/75 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},Ka={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}},_a={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}},Ua={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"].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}},Ga={..._,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},Ja={..._,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},Ya={..._,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},Re={macos:_,tahoe:_,"macos-tahoe":_,"macos-latest":_,arc:Ua,workspace:Ka,desktop:_a,solid:Ga,transparent:Ja,vibrancy:Ya};function du(e){return Re[e||"macos"]||Re.macos}function pu(e){if(!e)return;return re[e]||e}var Xa=re.gray;function W(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function Ne(e){return{light:{from:W(e,35,"#ffffff"),to:W(e,12.5,"#ffffff"),ink:W(e,22,"#17171b"),accent:W(e,88,"#2a2a30")},dark:{from:W(e,27,"#101014"),to:W(e,10,"#08080b"),ink:W(e,12,"#f4f4f7"),accent:W(e,74,"#ffffff")}}}function fu(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function Qa(e){if(!e)return Ne(Xa);if(typeof e!=="string")return e;return Ne(re[e]||e)}function Za(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 De(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function en(e){let t=Qa(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:De(e.action,e.id,"action","i-f7-plus"),clear:De(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:Za(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function mu(e){return(e||[]).map(en)}function gu(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function bu(e){return e.map((t)=>t.tint)}var sn="./Skeleton-m4p66zcs.stx";var an="./Spinner-vhnc3y03.stx";var rn="./Stepper-68gxcmej.stx";var cn="./StepperStep-zf4pq1s0.stx";class ie{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 r=e.charAt(n),i=a+r;if(t[i]!==void 0)a=i;else o.push(a.length>1?t[a]:a.charCodeAt(0)),t[i]=s++,a=r}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 r=1;r<t.length;r++){let i=t[r],c;if(s[i]!==void 0)c=s[i];else if(i===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 r=JSON.stringify(n);if(s?.compress)r=this.compress(r);if(s?.encrypt)r=this.encrypt(r);this.storage.setItem(o,r),this.notifyWatchers(e,t,a)}catch(r){console.error("Storage set error:",r)}}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 qu={local:new ie("local"),session:new ie("session")};function Wu(e="local",t){return new ie(e,t)}var pn="./Switch-s8yf2rvm.stx";var hn="./Table-0a4y46vd.stx";var mn="./TableBody-y49bqb1p.stx";var bn="./TableCell-jhvsxw8b.stx";var vn="./TableHead-e9xvjx2j.stx";var yn="./TableHeader-krzcx4sv.stx";var Cn="./TableRow-dt8e11aj.stx";var Sn="./Tab-j9f4t166.stx";var In="./TabList-r1pc87xs.stx";var Pn="./TabPanel-5htevsq6.stx";var On="./Tabs-psm5wj7c.stx";var Rn="./Teleport-vqs75x36.stx";var Dn="./Textarea-40qrctpw.stx";var zn="./AiTextarea-bg6xq5wc.stx";var Vn="./Tooltip-pev702hb.stx";var Bn="./Transition-7m0mk45s.stx";var qn="./Video-bqsx3wr8.stx";var Kn="./VirtualList-fa7v5a3h.stx";var Un="./VirtualTable-kp7b3wyv.stx";var Gn=0;function Me(e="a11y"){return`${e}-${++Gn}-${Date.now()}`}function Hh(e,t,s={}){let{visible:o=!1,id:a=Me("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 Bh(e,t){let s=Me("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 Fh(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 ve(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 qh(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:a=!0,clickOutsideDeactivates:n=!0,allowOutsideClick:r=!1,onActivate:i,onDeactivate:c}=t,d=!1,u=!1,p=null,h=(w)=>{if(u)return;if(a&&w.key==="Escape"){w.preventDefault(),k();return}if(w.key==="Tab"){let S=ve(e);if(S.length===0){w.preventDefault();return}let L=S[0],R=S[S.length-1];if(w.shiftKey){if(document.activeElement===L)w.preventDefault(),R.focus()}else if(document.activeElement===R)w.preventDefault(),L.focus()}},m=(w)=>{if(u)return;if(!e.contains(w.target)){if(typeof r==="function"){if(!r(w)&&n)k()}else if(!r&&n)k()}};function C(){if(d)return;d=!0,p=document.activeElement;let w=s||ve(e)[0];if(w&&typeof w.focus==="function")w.focus();document.addEventListener("keydown",h),document.addEventListener("click",m),i?.()}function k(){if(!d)return;d=!1;let w=o||p;if(w&&typeof w.focus==="function")w.focus();document.removeEventListener("keydown",h),document.removeEventListener("click",m),c?.()}function y(){u=!0}function b(){u=!1}return{activate:C,deactivate:k,pause:y,unpause:b}}function Wh(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:a="both",loop:n=!0,onFocusChange:r}=t,i=o,c=()=>Array.from(e.querySelectorAll(s)),d=(p)=>{let h=c();if(p<0||p>=h.length)return;h.forEach((m,C)=>{if(C===p){if(m.setAttribute("tabindex","0"),typeof m.focus==="function")m.focus()}else m.setAttribute("tabindex","-1")}),i=p,r?.(p,h[p])},u=(p)=>{let m=c().length-1,C=!1,k=i;switch(p.key){case"ArrowRight":if(a==="horizontal"||a==="both"){if(k=i+1,k>m)k=n?0:m;C=!0}break;case"ArrowLeft":if(a==="horizontal"||a==="both"){if(k=i-1,k<0)k=n?m:0;C=!0}break;case"ArrowDown":if(a==="vertical"||a==="both"){if(k=i+1,k>m)k=n?0:m;C=!0}break;case"ArrowUp":if(a==="vertical"||a==="both"){if(k=i-1,k<0)k=n?m:0;C=!0}break;case"Home":k=0,C=!0;break;case"End":k=m,C=!0;break}if(C)p.preventDefault(),d(k)};return d(o),e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}var Kh={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function _h(e){return document.activeElement===e}function Uh(e,t){let s=t||document.activeElement,o=ve(document.body),a=o.indexOf(s);if(a===-1)return;let n=e==="next"?a+1:a-1,r=o[n];if(r)r.focus()}function Gh(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 Jh={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 Yh(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 Xh(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function Qh(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function Zh(){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 ef(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 tf(e){let t=[],s=(o)=>{let a=e.getAttribute(o);if(a){let n=a.split(" ");for(let r of n)if(!document.getElementById(r))t.push(`${o} references non-existent ID: ${r}`)}};return s("aria-labelledby"),s("aria-describedby"),s("aria-controls"),s("aria-owns"),s("aria-activedescendant"),t}var Jn=(e,t,s,o)=>s*e/o+t,Yn=(e,t,s,o)=>(e/=o,s*e*e+t),Xn=(e,t,s,o)=>(e/=o,-s*e*(e-2)+t),Qn=(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},Zn=(e,t,s,o)=>(e/=o,s*e*e*e+t),er=(e,t,s,o)=>(e/=o,e--,s*(e*e*e+1)+t),tr=(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},sr=(e,t,s,o)=>(e/=o,s*e*e*e*e+t),or=(e,t,s,o)=>(e/=o,e--,-s*(e*e*e*e-1)+t),ar=(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},nr=(e,t,s,o)=>(e/=o,s*e*e*e*e*e+t),rr=(e,t,s,o)=>(e/=o,e--,s*(e*e*e*e*e+1)+t),ir=(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},lr=(e,t,s,o)=>-s*Math.cos(e/o*(Math.PI/2))+s+t,cr=(e,t,s,o)=>s*Math.sin(e/o*(Math.PI/2))+t,dr=(e,t,s,o)=>-s/2*(Math.cos(Math.PI*e/o)-1)+t,pr=(e,t,s,o)=>e===0?t:s*2**(10*(e/o-1))+t,ur=(e,t,s,o)=>e===o?t+s:s*(-(2**(-10*e/o))+1)+t,hr=(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},fr=(e,t,s,o)=>(e/=o,-s*(Math.sqrt(1-e*e)-1)+t),mr=(e,t,s,o)=>(e/=o,e--,s*Math.sqrt(1-e*e)+t),gr=(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},br=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);return e-=1,-(r*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t},xr=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!n)n=o*0.3;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);return r*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)+s+t},vr=(e,t,s,o)=>{let a=1.70158,n=0,r=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!n)n=o*0.44999999999999996;if(r<Math.abs(s))r=s,a=n/4;else a=n/(2*Math.PI)*Math.asin(s/r);if(e<1)return e-=1,-0.5*(r*2**(10*e)*Math.sin((e*o-a)*(2*Math.PI)/n))+t;return e-=1,r*2**(-10*e)*Math.sin((e*o-a)*(2*Math.PI)/n)*0.5+s+t},wr=(e,t,s,o)=>(e/=o,s*e*e*(2.70158*e-1.70158)+t),yr=(e,t,s,o)=>(e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t),kr=(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},we=(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},ze=(e,t,s,o)=>s-we(o-e,0,s,o)+t,Cr=(e,t,s,o)=>{if(e<o/2)return ze(e*2,0,s,o)*0.5+t;return we(e*2-o,0,s,o)*0.5+s*0.5+t},of={linear:Jn,easeInQuad:Yn,easeOutQuad:Xn,easeInOutQuad:Qn,easeInCubic:Zn,easeOutCubic:er,easeInOutCubic:tr,easeInQuart:sr,easeOutQuart:or,easeInOutQuart:ar,easeInQuint:nr,easeOutQuint:rr,easeInOutQuint:ir,easeInSine:lr,easeOutSine:cr,easeInOutSine:dr,easeInExpo:pr,easeOutExpo:ur,easeInOutExpo:hr,easeInCirc:fr,easeOutCirc:mr,easeInOutCirc:gr,easeInElastic:br,easeOutElastic:xr,easeInOutElastic:vr,easeInBack:wr,easeOutBack:yr,easeInOutBack:kr,easeInBounce:ze,easeOutBounce:we,easeInOutBounce:Cr};function $r(e,t={}){let{duration:s="1s",timing:o="ease",delay:a="0s",iteration:n="1",direction:r="normal",fill:i="both",playState:c="running"}=t;return`${e} ${s} ${o} ${a} ${n} ${r} ${i} ${c}`}function je(e,t,s={}){e.style.animation=$r(t,s)}function nf(e){e.style.animation=""}function Sr(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function rf(e,t,s={}){let{stagger:o=100,...a}=s;e.forEach((n,r)=>{let i=`${r*o}ms`;je(n,t,{...a,delay:i})})}async function lf(e,t){for(let s of t)je(e,s.name,s.options),await Sr(e)}var cf={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 df(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function pf(e,t){let s=`
|
|
12
12
|
@keyframes ${e} {
|
|
13
13
|
${Object.entries(t).map(([a,n])=>{let r=Object.entries(n).map(([i,c])=>`${i}: ${c};`).join(" ");return`${a} { ${r} }`}).join(`
|
|
14
14
|
`)}
|
|
@@ -20,6 +20,21 @@ export declare const fullWidth: ReturnType<typeof $bool>;
|
|
|
20
20
|
* one, the button renders it in a span that tracks the parent's binding; given
|
|
21
21
|
* none, the slot behaves exactly as before. See stacksjs/stx#1997.
|
|
22
22
|
*/
|
|
23
|
+
/**
|
|
24
|
+
* Desktop and native callers name a button's words `title` and its glyph
|
|
25
|
+
* `symbol`, with `iconOnly` meaning "draw the glyph alone". Accepting them is
|
|
26
|
+
* what lets such a call select this component rather than the native
|
|
27
|
+
* primitive (stacksjs/stx#2091).
|
|
28
|
+
*
|
|
29
|
+
* `title` supplies the words ONLY when nothing else does. It is also the web's
|
|
30
|
+
* tooltip attribute, so a caller writing both a tooltip and content keeps
|
|
31
|
+
* both: folding it into the label unconditionally would replace the slot with
|
|
32
|
+
* the tooltip text.
|
|
33
|
+
*/
|
|
34
|
+
export declare const symbol: unknown;
|
|
35
|
+
export declare const iconOnly: ReturnType<typeof $bool>;
|
|
36
|
+
declare const slotWords: unknown;
|
|
37
|
+
declare const titleWords: unknown;
|
|
23
38
|
export declare const label: unknown;
|
|
24
39
|
export declare const hasLabel: boolean;
|
|
25
40
|
/*
|
|
@@ -155,5 +170,5 @@ export declare const nativeButtonClasses: unknown;
|
|
|
155
170
|
export declare const nativeTextClasses: string;
|
|
156
171
|
export declare const legacyNativeTint: boolean;
|
|
157
172
|
export declare const nativeTintClass: unknown;
|
|
158
|
-
declare type __DtsxStxComponentType = DefineComponent<{ variant?: string, size?: string, disabled?: unknown, loading?: unknown, type?: string, fullWidth?: unknown, label?: string, ariaLabel?: unknown, "aria-label"?: string, leftIcon?: string, rightIcon?: string, className?: string }>;
|
|
173
|
+
declare type __DtsxStxComponentType = DefineComponent<{ variant?: string, size?: string, disabled?: unknown, loading?: unknown, type?: string, fullWidth?: unknown, symbol?: string, iconOnly?: unknown, label?: unknown, title?: string, ariaLabel?: unknown, "aria-label"?: string, leftIcon?: string, rightIcon?: string, className?: string }>;
|
|
159
174
|
export default __dtsx_component__;
|
package/dist/ui/video/Video.d.ts
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import type { DefineComponent } from '@stacksjs/stx';
|
|
2
|
-
/** Width over height as CSS takes it: "16/9", "4/3", 0.5625. */
|
|
3
|
-
declare function ratio(value: unknown): string | unknown | unknown | string;
|
|
4
|
-
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
5
2
|
/*
|
|
6
3
|
* A video player: ts-video-player's <video-player>, with its own controls,
|
|
7
4
|
* for a file, an HLS or DASH stream, a YouTube link (played from
|
|
@@ -23,12 +20,48 @@ declare const __dtsx_component__: __DtsxStxComponentType;
|
|
|
23
20
|
* The controls speak the page's language (`<html lang>`): ts-video-player
|
|
24
21
|
* names its buttons and announces playback in it.
|
|
25
22
|
*
|
|
26
|
-
* On native, src calls using the shared media events select this
|
|
27
|
-
* when installed. Legacy
|
|
28
|
-
* retain the native primitive
|
|
23
|
+
* On native, src and source calls using the shared media events select this
|
|
24
|
+
* component when installed. Legacy-event calls (for example @progress rather
|
|
25
|
+
* than @timeupdate) retain the native primitive, because the two names mean
|
|
26
|
+
* different things on the web and collapse to one on a host. This is the
|
|
27
|
+
* host's Video control: `src`
|
|
29
28
|
* must be a media URL the platform supports, not a YouTube/Vimeo page.
|
|
30
29
|
* Browser source selection, tracks and DRM configuration remain web-only.
|
|
31
30
|
*/
|
|
31
|
+
/**
|
|
32
|
+
* `source` is the native primitive's name for the same media URL, and both
|
|
33
|
+
* hosts accept either a string or a `{ uri }` payload. Accepting it here is
|
|
34
|
+
* what lets a legacy native call select this component instead of the
|
|
35
|
+
* primitive (stacksjs/stx#2091); `src` wins a mixed call, being this
|
|
36
|
+
* component's own API.
|
|
37
|
+
*/
|
|
38
|
+
declare function mediaUrl(value: unknown): unknown;
|
|
39
|
+
/** Width over height as CSS takes it: "16/9", "4/3", 0.5625. */
|
|
40
|
+
declare function ratio(value: unknown): string | unknown | unknown | string;
|
|
41
|
+
declare const __dtsx_component__: __DtsxStxComponentType;
|
|
42
|
+
/**
|
|
43
|
+
* How the frame fills its box. `resizeMode` is the native name and the host
|
|
44
|
+
* interprets it; `object-fit` is the web's, and the four native values map
|
|
45
|
+
* onto it, so one call works on both (stacksjs/stx#2091).
|
|
46
|
+
*
|
|
47
|
+
* Unset keeps this component's existing contain behaviour rather than
|
|
48
|
+
* adopting the primitive's cover default, so no shared caller changes.
|
|
49
|
+
* @defaultValue `{ contain: 'contain', cover: 'cover', stretch: 'fill', center: 'none' }`
|
|
50
|
+
*/
|
|
51
|
+
declare const RESIZE_FIT: {
|
|
52
|
+
/** @defaultValue 'contain' */
|
|
53
|
+
contain: string;
|
|
54
|
+
/** @defaultValue 'cover' */
|
|
55
|
+
cover: string;
|
|
56
|
+
/** @defaultValue 'fill' */
|
|
57
|
+
stretch: string;
|
|
58
|
+
/** @defaultValue 'none' */
|
|
59
|
+
center: string
|
|
60
|
+
};
|
|
61
|
+
export declare const resizeMode: boolean;
|
|
62
|
+
export declare const objectFit: unknown;
|
|
63
|
+
export declare const srcProp: unknown;
|
|
64
|
+
export declare const sourceUrl: ReturnType<typeof mediaUrl>;
|
|
32
65
|
export declare const src: unknown;
|
|
33
66
|
export declare const poster: unknown;
|
|
34
67
|
/** The accessible name of the player. Follows a binding. */
|
|
@@ -63,6 +96,22 @@ export declare const playerConfig: unknown;
|
|
|
63
96
|
* only a file, so for a page it stays empty rather than offering the link.
|
|
64
97
|
*/
|
|
65
98
|
export declare const isPage: unknown;
|
|
99
|
+
/**
|
|
100
|
+
* A caller's explicit box wins over this component's own sizing.
|
|
101
|
+
*
|
|
102
|
+
* The native primitive is a single node that obeys the box it is given, so
|
|
103
|
+
* `style="width:64;height:32"` produced a 64x32 video. This component imposed
|
|
104
|
+
* `w-full` plus an aspect ratio and dropped the caller's style entirely, so
|
|
105
|
+
* the same call rendered full width and pushed everything below it down the
|
|
106
|
+
* screen. That is what kept legacy `source` calls on the primitive
|
|
107
|
+
* (stacksjs/stx#2091); it is the sizing, not the props.
|
|
108
|
+
*
|
|
109
|
+
* Only a box with BOTH dimensions counts: a caller setting one of them still
|
|
110
|
+
* wants the aspect ratio to supply the other, which is this component's whole
|
|
111
|
+
* reason for having one.
|
|
112
|
+
*/
|
|
113
|
+
export declare const styleProp: boolean;
|
|
114
|
+
export declare const hasExplicitBox: unknown;
|
|
66
115
|
export declare const containerClasses: unknown;
|
|
67
|
-
declare type __DtsxStxComponentType = DefineComponent<{ src?: string, poster?: string, label?: unknown, title?: string, autoplay?: unknown, loop?: unknown, muted?: unknown, controls?: unknown, playsinline?: unknown, disablePictureInPicture?: unknown, autofocus?: unknown, preload?: string, crossorigin?: string, controlslist?: string, width?: string, height?: string, className?: unknown, class?: string, aspectRatio?: unknown, sources?: unknown, tracks?: unknown, drm?: unknown }> & { readonly __stxEmits?: ["play", "pause", "ended", "timeupdate", "loadedmetadata", "loadstart", "error"] }
|
|
116
|
+
declare type __DtsxStxComponentType = DefineComponent<{ resizeMode?: unknown, src?: string, source?: unknown, poster?: string, label?: unknown, title?: string, autoplay?: unknown, loop?: unknown, muted?: unknown, controls?: unknown, playsinline?: unknown, disablePictureInPicture?: unknown, autofocus?: unknown, preload?: string, crossorigin?: string, controlslist?: string, width?: string, height?: string, className?: unknown, class?: string, aspectRatio?: unknown, sources?: unknown, tracks?: unknown, drm?: unknown, style?: unknown }> & { readonly __stxEmits?: ["play", "pause", "ended", "timeupdate", "loadedmetadata", "loadstart", "error"] }
|
|
68
117
|
export default __dtsx_component__;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.817",
|
|
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",
|
|
@@ -23,6 +23,12 @@
|
|
|
23
23
|
"bun",
|
|
24
24
|
"component-library"
|
|
25
25
|
],
|
|
26
|
+
"stx": {
|
|
27
|
+
"components": [
|
|
28
|
+
"./src/ui",
|
|
29
|
+
"./src/components"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
26
32
|
"sideEffects": [
|
|
27
33
|
"**/*.css"
|
|
28
34
|
],
|
|
@@ -77,8 +83,8 @@
|
|
|
77
83
|
"dependencies": {
|
|
78
84
|
"@iconify-json/f7": "^1.2.2",
|
|
79
85
|
"@stacksjs/ts-css": "^0.3.11",
|
|
80
|
-
"@stacksjs/stx": "0.2.
|
|
81
|
-
"bun-plugin-stx": "0.2.
|
|
86
|
+
"@stacksjs/stx": "0.2.817",
|
|
87
|
+
"bun-plugin-stx": "0.2.817",
|
|
82
88
|
"ts-syntax-highlighter": "^0.2.17",
|
|
83
89
|
"ts-video-player": "^0.1.11"
|
|
84
90
|
},
|
package/src/ui/button/Button.stx
CHANGED
|
@@ -19,7 +19,22 @@ export const fullWidth = $bool($props.fullWidth)
|
|
|
19
19
|
* one, the button renders it in a span that tracks the parent's binding; given
|
|
20
20
|
* none, the slot behaves exactly as before. See stacksjs/stx#1997.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Desktop and native callers name a button's words `title` and its glyph
|
|
24
|
+
* `symbol`, with `iconOnly` meaning "draw the glyph alone". Accepting them is
|
|
25
|
+
* what lets such a call select this component rather than the native
|
|
26
|
+
* primitive (stacksjs/stx#2091).
|
|
27
|
+
*
|
|
28
|
+
* `title` supplies the words ONLY when nothing else does. It is also the web's
|
|
29
|
+
* tooltip attribute, so a caller writing both a tooltip and content keeps
|
|
30
|
+
* both: folding it into the label unconditionally would replace the slot with
|
|
31
|
+
* the tooltip text.
|
|
32
|
+
*/
|
|
33
|
+
export const symbol = $props.symbol || ''
|
|
34
|
+
export const iconOnly = $bool($props.iconOnly)
|
|
35
|
+
const slotWords = String($slots?.default ?? '').trim()
|
|
36
|
+
const titleWords = !$props.label && !slotWords ? ($props.title || '') : ''
|
|
37
|
+
export const label = $props.label || titleWords
|
|
23
38
|
export const hasLabel = label !== ''
|
|
24
39
|
|
|
25
40
|
/*
|
|
@@ -193,6 +208,8 @@ function onClick(event) {
|
|
|
193
208
|
type="{{ type }}"
|
|
194
209
|
class="{{ nativeButtonClasses }}"
|
|
195
210
|
activeOpacity="0.6"
|
|
211
|
+
@if(symbol)symbol="{{ symbol }}"@endif
|
|
212
|
+
@if(iconOnly)iconOnly="true"@endif
|
|
196
213
|
@if(isDisabled)disabled@endif
|
|
197
214
|
:disabled="isDisabled()"
|
|
198
215
|
aria-busy="{{ loading ? 'true' : 'false' }}"
|
package/src/ui/video/Video.stx
CHANGED
|
@@ -20,13 +20,40 @@
|
|
|
20
20
|
* The controls speak the page's language (`<html lang>`): ts-video-player
|
|
21
21
|
* names its buttons and announces playback in it.
|
|
22
22
|
*
|
|
23
|
-
* On native, src calls using the shared media events select this
|
|
24
|
-
* when installed. Legacy
|
|
25
|
-
* retain the native primitive
|
|
23
|
+
* On native, src and source calls using the shared media events select this
|
|
24
|
+
* component when installed. Legacy-event calls (for example @progress rather
|
|
25
|
+
* than @timeupdate) retain the native primitive, because the two names mean
|
|
26
|
+
* different things on the web and collapse to one on a host. This is the
|
|
27
|
+
* host's Video control: `src`
|
|
26
28
|
* must be a media URL the platform supports, not a YouTube/Vimeo page.
|
|
27
29
|
* Browser source selection, tracks and DRM configuration remain web-only.
|
|
28
30
|
*/
|
|
29
|
-
|
|
31
|
+
/**
|
|
32
|
+
* `source` is the native primitive's name for the same media URL, and both
|
|
33
|
+
* hosts accept either a string or a `{ uri }` payload. Accepting it here is
|
|
34
|
+
* what lets a legacy native call select this component instead of the
|
|
35
|
+
* primitive (stacksjs/stx#2091); `src` wins a mixed call, being this
|
|
36
|
+
* component's own API.
|
|
37
|
+
*/
|
|
38
|
+
function mediaUrl(value) {
|
|
39
|
+
if (typeof value === 'string') return value
|
|
40
|
+
if (value && typeof value === 'object') return String(value.uri ?? '')
|
|
41
|
+
return ''
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* How the frame fills its box. `resizeMode` is the native name and the host
|
|
45
|
+
* interprets it; `object-fit` is the web's, and the four native values map
|
|
46
|
+
* onto it, so one call works on both (stacksjs/stx#2091).
|
|
47
|
+
*
|
|
48
|
+
* Unset keeps this component's existing contain behaviour rather than
|
|
49
|
+
* adopting the primitive's cover default, so no shared caller changes.
|
|
50
|
+
*/
|
|
51
|
+
const RESIZE_FIT = { contain: 'contain', cover: 'cover', stretch: 'fill', center: 'none' }
|
|
52
|
+
export const resizeMode = typeof $props.resizeMode === 'string' ? $props.resizeMode.trim().toLowerCase() : ''
|
|
53
|
+
export const objectFit = RESIZE_FIT[resizeMode] || 'contain'
|
|
54
|
+
export const srcProp = $props.src || ''
|
|
55
|
+
export const sourceUrl = mediaUrl($props.source)
|
|
56
|
+
export const src = srcProp || sourceUrl
|
|
30
57
|
export const poster = $props.poster || ''
|
|
31
58
|
/** The accessible name of the player. Follows a binding. */
|
|
32
59
|
export const label = $props.label || $props.title || ''
|
|
@@ -73,7 +100,23 @@ export const playerConfig = JSON.stringify({ sources: playerSources, tracks: pla
|
|
|
73
100
|
*/
|
|
74
101
|
export const isPage = /^https?:\/\/(?:[\w-]+\.)*(?:youtube\.com|youtube-nocookie\.com|youtu\.be|vimeo\.com)\//i.test(src)
|
|
75
102
|
|
|
76
|
-
|
|
103
|
+
/**
|
|
104
|
+
* A caller's explicit box wins over this component's own sizing.
|
|
105
|
+
*
|
|
106
|
+
* The native primitive is a single node that obeys the box it is given, so
|
|
107
|
+
* `style="width:64;height:32"` produced a 64x32 video. This component imposed
|
|
108
|
+
* `w-full` plus an aspect ratio and dropped the caller's style entirely, so
|
|
109
|
+
* the same call rendered full width and pushed everything below it down the
|
|
110
|
+
* screen. That is what kept legacy `source` calls on the primitive
|
|
111
|
+
* (stacksjs/stx#2091); it is the sizing, not the props.
|
|
112
|
+
*
|
|
113
|
+
* Only a box with BOTH dimensions counts: a caller setting one of them still
|
|
114
|
+
* wants the aspect ratio to supply the other, which is this component's whole
|
|
115
|
+
* reason for having one.
|
|
116
|
+
*/
|
|
117
|
+
export const styleProp = typeof $props.style === 'string' ? $props.style : ''
|
|
118
|
+
export const hasExplicitBox = /(?:^|;)\s*width\s*:/.test(styleProp) && /(?:^|;)\s*height\s*:/.test(styleProp)
|
|
119
|
+
export const containerClasses = `relative ${hasExplicitBox ? '' : 'w-full'} ${className}`.trim().replace(/\s+/g, ' ')
|
|
77
120
|
</script>
|
|
78
121
|
|
|
79
122
|
<script client>
|
|
@@ -83,7 +126,11 @@ const nativeVideo = !!window.stx._host.isNative
|
|
|
83
126
|
if (!nativeVideo)
|
|
84
127
|
registerElements()
|
|
85
128
|
|
|
86
|
-
|
|
129
|
+
// Tracked separately so a parent driving either name keeps working: holding
|
|
130
|
+
// one merged initial value would leave the other stale when it changed.
|
|
131
|
+
const liveSrcProp = useReactiveProp('src', {{ srcProp }})
|
|
132
|
+
const liveSourceProp = useReactiveProp('source', {{ sourceUrl }})
|
|
133
|
+
const liveSrc = derived(() => liveSrcProp() || liveSourceProp() || '')
|
|
87
134
|
const livePoster = useReactiveProp('poster', {{ poster }})
|
|
88
135
|
const liveLabel = useReactiveProp('label', {{ label }})
|
|
89
136
|
const liveRatio = useReactiveProp('aspectRatio', {{ aspectRatio }})
|
|
@@ -113,6 +160,9 @@ function forwardNative(event, payload) {
|
|
|
113
160
|
|
|
114
161
|
/** Width over height as CSS takes it, whatever the parent bound: "9/16", 0.5625. */
|
|
115
162
|
const playerStyle = derived(() => {
|
|
163
|
+
// An explicit box from the caller decides both dimensions, so an aspect
|
|
164
|
+
// ratio alongside it would fight the size they asked for.
|
|
165
|
+
if ({{ hasExplicitBox }}) return null
|
|
116
166
|
const value = String(liveRatio() ?? '').trim()
|
|
117
167
|
const valid = /^\d+(?:\.\d+)?(?:\s*\/\s*\d+(?:\.\d+)?)?$/.test(value) ? value : '16 / 9'
|
|
118
168
|
const [width, height = 1] = valid.split('/').map(Number)
|
|
@@ -130,7 +180,7 @@ effect(() => {
|
|
|
130
180
|
})
|
|
131
181
|
</script>
|
|
132
182
|
|
|
133
|
-
<figure class="m-0 {{ containerClasses }}">
|
|
183
|
+
<figure class="m-0 {{ containerClasses }}" @if(styleProp) style="{{ styleProp }}" @endif>
|
|
134
184
|
@if(title)
|
|
135
185
|
<figcaption class="mb-2 px-1 font-medium text-sm text-fg">{{ title }}</figcaption>
|
|
136
186
|
@endif
|
|
@@ -139,6 +189,7 @@ effect(() => {
|
|
|
139
189
|
<video-player
|
|
140
190
|
data-native="Video"
|
|
141
191
|
data-stx-native-host-root
|
|
192
|
+
@if(resizeMode) resizeMode="{{ resizeMode }}" @endif
|
|
142
193
|
ref="player"
|
|
143
194
|
@play="forwardNative('play', $event)"
|
|
144
195
|
@pause="forwardNative('pause', $event)"
|
|
@@ -170,14 +221,14 @@ effect(() => {
|
|
|
170
221
|
keep-alive
|
|
171
222
|
@if(autofocus) autofocus @endif
|
|
172
223
|
@if(label) aria-label="{{ label }}" @endif
|
|
173
|
-
class="block overflow-hidden relative w-full bg-black rounded-panel focus-within:ring-2 focus-within:ring-accent"
|
|
174
|
-
style="aspect-ratio: {{ initialRatio }};"
|
|
224
|
+
class="block overflow-hidden relative w-full bg-black rounded-panel focus-within:ring-2 focus-within:ring-accent @if(hasExplicitBox) h-full @endif"
|
|
225
|
+
@if(!hasExplicitBox) style="aspect-ratio: {{ initialRatio }};" @endif
|
|
175
226
|
>
|
|
176
227
|
<media-error-display></media-error-display>
|
|
177
228
|
@if(isPage)
|
|
178
229
|
<span data-native-fallback class="block h-full w-full"></span>
|
|
179
230
|
@else
|
|
180
|
-
<video data-native-fallback @if(src) src="{{ src }}" @endif @if(poster) poster="{{ poster }}" @endif @if(controls) controls @endif @if(loop) loop @endif @if(muted) muted @endif :controls="playerControls()" :loop="playerLoop()" :muted="playerMuted()" @if(playsinline) playsinline @endif preload="none" @if(crossorigin) crossorigin="{{ crossorigin }}" @endif controlslist="{{ controlslist }}" @if(disablePictureInPicture) disablepictureinpicture @endif @if(label) aria-label="{{ label }}" @endif class="object-
|
|
231
|
+
<video data-native-fallback @if(src) src="{{ src }}" @endif @if(poster) poster="{{ poster }}" @endif @if(controls) controls @endif @if(loop) loop @endif @if(muted) muted @endif :controls="playerControls()" :loop="playerLoop()" :muted="playerMuted()" @if(playsinline) playsinline @endif preload="none" @if(crossorigin) crossorigin="{{ crossorigin }}" @endif controlslist="{{ controlslist }}" @if(disablePictureInPicture) disablepictureinpicture @endif @if(label) aria-label="{{ label }}" @endif class="object-{{ objectFit }} h-full w-full"></video>
|
|
181
232
|
@endif
|
|
182
233
|
<video-skin>
|
|
183
234
|
<media-seek-button slot="left" seconds="-10"></media-seek-button>
|