@stacksjs/components 0.2.439 → 0.2.440

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.
@@ -65,7 +65,9 @@ const tooltipId = {{ tooltipId }}
65
65
  const triggerRef = useRef('triggerRef')
66
66
  const panelRef = useRef('panelRef')
67
67
  const preferredSide = {{ position }}
68
- const panelLimits = 'max-width:calc(100vw - 16px);margin:0;'
68
+ // The body portal uses viewport coordinates. Fixed positioning also prevents
69
+ // a static body's margins from shifting the measured placement offscreen.
70
+ const panelLimits = 'position:fixed;max-width:calc(100vw - 16px);margin:0;'
69
71
  const panelStyle = state(panelLimits)
70
72
  const arrowStyle = state('')
71
73
  const isDisabled = useReactiveProp('disabled', {{ disabled }})
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ var _e={__stx:!0,src:"./components/CodeBlock.stx"};var Ue={__stx:!0,src:"./compo
8
8
  Documentation: ${s.docsUrl}`;else if(e)o+=`
9
9
  Documentation: ${xt}/${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 R(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 R(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 R(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 R("ComponentLoader",`Component "${e}" not found`,{component:e,details:"Make sure the component is properly imported and registered"})},invalidChildren(e,t,s){return new R(e,"Invalid children",{received:typeof t,expected:s,details:`${e} expects ${s} as children`})},stateUpdate(e,t,s){return new R(e,`Failed to update state "${t}"`,{details:s.message})},eventHandler(e,t,s){return new R(e,`Error in "${t}" event handler`,{details:s.message})},render(e,t){return new R(e,"Failed to render component",{details:t.message})}},te=null;function li(e){te=e}function ci(){te=null}function se(e,t={}){let{throwError:s=!0,logError:o=!0}=t;if(o&&Q.env.NODE_ENV!=="production"){if(console.error("Component Error:",e),e instanceof R)console.group("Error Details"),console.log("Component:",e.component),console.log("Context:",e.context),console.groupEnd()}if(te)try{te(e)}catch(n){console.error("Error in error handler:",n)}if(s)throw e}function Ae(e,t,s){return(...o)=>{try{let n=e(...o);if(n instanceof Promise)return n.catch((a)=>{let r=J.eventHandler(t,s,a);throw se(r,{throwError:!1}),r});return n}catch(n){let a=J.eventHandler(t,s,n);throw se(a,{throwError:!1}),a}}}function vt(e,t){if(!e)throw t}function wt(e,t,s={}){if(Q.env.NODE_ENV==="production")return;let o=R.formatMessage(e,t,s);console.warn(`\u26A0\uFE0F ${o}`)}function di(e,t){if(Q.env.NODE_ENV==="production")return;vt(e,t)}function pi(e){let t=typeof Q<"u"&&Q.env.DEBUG==="true";return{log(...s){if(t)console.log(`[${e}]`,...s)},warn(s,o){wt(e,s,o)},error(s,o){let n=new R(e,s,o);se(n,{throwError:!1})}}}function ui(e,t,s){try{return t()}catch(o){let n=J.render(e,o);return se(n,{throwError:!1}),s}}import yt from"process";var oe=yt.env.NODE_ENV!=="production";class L{validate;message;isRequired;constructor(e,t,s=!1){this.validate=e;this.message=t;this.isRequired=s}get required(){return new L(this.validate,this.message,!0)}}var l={string:new L((e)=>typeof e==="string",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`string\`.`),number:new L((e)=>typeof e==="number"&&!Number.isNaN(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`number\`.`),boolean:new L((e)=>typeof e==="boolean",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`boolean\`.`),func:new L((e)=>typeof e==="function",(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`function\`.`),object:new L((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 L((e)=>Array.isArray(e),(e,t,s)=>`Invalid prop \`${t}\` of type \`${typeof e}\` supplied to \`${s}\`, expected \`array\`.`),any:new L(()=>!0,()=>""),oneOf(e){return new L((t)=>e.includes(t),(t,s,o)=>`Invalid prop \`${s}\` of value \`${t}\` supplied to \`${o}\`, expected one of [${e.map((n)=>JSON.stringify(n)).join(", ")}].`)},oneOfType(e){return new L((t,s,o)=>e.some((n)=>n.validate(t,s,o)),(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected one of the specified types.`)},arrayOf(e){return new L((t,s,o)=>{if(!Array.isArray(t))return!1;return t.every((n,a)=>e.validate(n,`${s}[${a}]`,o))},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected array of specified type.`)},shape(e){return new L((t,s,o)=>{if(typeof t!=="object"||t===null||Array.isArray(t))return!1;for(let[n,a]of Object.entries(e)){if(a.isRequired&&!(n in t))return!1;if(n in t&&!a.validate(t[n],`${s}.${n}`,o))return!1}return!0},(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected object matching specified shape.`)},instanceOf(e){return new L((t)=>t instanceof e,(t,s,o)=>`Invalid prop \`${s}\` supplied to \`${o}\`, expected instance of \`${e.name}\`.`)},custom(e,t){return new L(e,typeof t==="string"?()=>t:t)},min(e){return new L((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 L((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 L((s)=>typeof s==="number"&&s>=e&&s<=t,(s,o,n)=>`Invalid prop \`${o}\` of value \`${s}\` supplied to \`${n}\`, expected value between ${e} and ${t}.`)},pattern(e){return new L((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 L((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 L((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 kt(e,t,s,o={}){let{throwOnError:n=!1,logWarnings:a=oe}=o,r=[];if(!oe)return{valid:!0,errors:[]};for(let[i,c]of Object.entries(s)){let p=t[i],u=p===void 0;if(c.isRequired&&u){let d=`Required prop \`${i}\` was not specified in \`${e}\`.`;r.push(d);continue}if(u)continue;if(!c.validate(p,i,e)){let d=c.message(p,i,e);r.push(d)}}if(r.length>0){if(a)console.group(`\u26A0\uFE0F Prop validation failed for \`${e}\``),r.forEach((i)=>console.warn(i)),console.groupEnd();if(n)throw Error(`Prop validation failed for \`${e}\`:
10
10
  ${r.join(`
11
- `)}`)}return{valid:r.length===0,errors:r}}function H(e,t,s){return(o)=>kt(e,o,t,s)}function mi(e,t,s="value"){if(!oe)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function gi(e,t,s="value"){if(!oe)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var $t="./Button-bpjmfkq6.stx";var St={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},yi=H("Button",St);function ki(e){return Ae(e,"Button","onClick")}function Ci(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw J.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function $i(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw J.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var Tt="./Calendar-5vs6x7gj.stx";var At="./DateRangePicker-z64qqw84.stx";var Lt="./EmptyState-s790dbym.stx";var Nt="./ThemeToggle-4wm9zare.stx";var Mt="./Card-r55zpjqh.stx";var zt="./Checkbox-kepzk3h5.stx";var jt="./Combobox-9xh1jgjr.stx";var Vt="./ComboboxButton-4r6a45s1.stx";var qt="./ComboboxInput-1gyfpnca.stx";var Wt="./ComboboxOption-wkw70js7.stx";var Ut="./ComboboxOptions-zhr9b6rx.stx";var Gt="./CommandPalette-vvaqtqat.stx";var Xt="./CommandPaletteItem-7290ce1z.stx";var Zt="./Dialog-e9a4r6d0.stx";var ts="./DialogBackdrop-de5m5m4w.stx";var os="./DialogDescription-gth4c2kx.stx";var as="./DialogPanel-vhdqymc2.stx";var is="./DialogTitle-ke58hh68.stx";var cs="./Drawer-hc0jjpsw.stx";var ps="./Dropdown-25160tc6.stx";var hs="./DropdownButton-wxc25hsy.stx";var ms="./DropdownItem-af0vzc8a.stx";var bs="./DropdownItems-bkz7jkyz.stx";var vs="./Form-ewzy10ye.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},Ol=H("Form",ws);var ks="./Image-6d7ssp75.stx";var $s="./EmailInput-ffzwvp9r.stx";var Es="./NumberInput-r2wsh8w9.stx";var Is="./PasswordInput-36bws0kf.stx";var Ps="./SearchInput-w15r5t95.stx";var Os="./TextInput-h9trj9f9.stx";var Ns={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},Ds={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},Ms={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},Rs={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},zs={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},Kl=H("TextInput",Ds),Wl=H("EmailInput",Ns),_l=H("PasswordInput",Rs),Ul=H("NumberInput",Ms),Jl=H("SearchInput",zs);var js="./Listbox-32gzxace.stx";var Vs="./ListboxButton-gan8e3nw.stx";var qs="./ListboxLabel-ka0hfm7b.stx";var Ws="./ListboxOption-gpaqvk3s.stx";var Us="./ListboxOptions-2928864k.stx";var Gs="./FilterChip-00ja5jhz.stx";var Xs="./FilterChips-7pnzycfd.stx";var Zs="./ListRow-8d3e1yxh.stx";var to="./NavBar-qqrrhdnk.stx";var oo="./SectionCard-8ctdacjr.stx";var ao="./TabBar-8143650x.stx";var io="./TabBarItem-kddfnhk3.stx";var co="./Navigator-1yk1c3pp.stx";var uo="./Notification-b3cz24f0.stx";var fo="./Pagination-8bhbkpcp.stx";var go="./Checkout-crbegxyv.stx";var xo="./DefaultPaymentMethod-ss3x61tr.stx";var wo="./PaymentMethods-z4hhr0kv.stx";var ko="./SubscriptionCheckout-rdcv32n1.stx";var $o="./Popover-9m42pym0.stx";var Eo="./PopoverButton-3w6550hv.stx";var Io="./PopoverPanel-d84gk1w1.stx";var Po="./Portal-m73vz879.stx";var Oo="./Progress-2qzb77kc.stx";var Do="./Radio-8153x74w.stx";var Ro="./RadioGroup-smqcqgds.stx";var Ho="./RadioGroupDescription-z34r9avr.stx";var Fo="./RadioGroupLabel-ka0hfm7b.stx";var Bo="./RadioGroupOption-twcw1b2a.stx";var Ko="./Select-pv44ngbe.stx";var _o="./Sidebar-8dygywjv.stx";var Jo="./SidebarFooter-s7skj92y.stx";var Yo="./SidebarHeader-x7jdhmyr.stx";var Qo="./SidebarItem-r4f2pref.stx";var en="./SidebarPinned-48kyk193.stx";var sn="./SidebarSection-5sqza2j6.stx";var nn="./SidebarSpace-bwv98azf.stx";var rn="./SidebarSpaces-mdtrynr2.stx";var cn="./SidebarSpaceSwitcher-1mycft2g.stx";var ne={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},W={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},dn={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}},pn={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}},un={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},hn={...W,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},fn={...W,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},mn={...W,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},Pe={macos:W,tahoe:W,"macos-tahoe":W,"macos-latest":W,arc:un,workspace:dn,desktop:pn,solid:hn,transparent:fn,vibrancy:mn};function Id(e){return Pe[e||"macos"]||Pe.macos}function Ad(e){if(!e)return;return ne[e]||e}var gn=ne.gray;function B(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function Le(e){return{light:{from:B(e,35,"#ffffff"),to:B(e,12.5,"#ffffff"),ink:B(e,22,"#17171b"),accent:B(e,88,"#2a2a30")},dark:{from:B(e,27,"#101014"),to:B(e,10,"#08080b"),ink:B(e,12,"#f4f4f7"),accent:B(e,74,"#ffffff")}}}function Od(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function bn(e){if(!e)return Le(gn);if(typeof e!=="string")return e;return Le(ne[e]||e)}function xn(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 Oe(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function vn(e){let t=bn(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:Oe(e.action,e.id,"action","i-f7-plus"),clear:Oe(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:xn(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Nd(e){return(e||[]).map(vn)}function Dd(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function Md(e){return e.map((t)=>t.tint)}var yn="./Skeleton-m4p66zcs.stx";var Cn="./Spinner-vhnc3y03.stx";var Sn="./Stepper-68gxcmej.stx";var Tn="./StepperStep-zf4pq1s0.stx";class ae{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,n=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((a)=>a(n,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=[],n="";for(let a=0;a<e.length;a++){let r=e.charAt(a),i=n+r;if(t[i]!==void 0)n=i;else o.push(n.length>1?t[n]:n.charCodeAt(0)),t[i]=s++,n=r}if(n!=="")o.push(n.length>1?t[n]:n.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,n=String.fromCharCode(t[0]),a=n;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=n+n.charAt(0);else return e;a+=c,s[o++]=n+c.charAt(0),n=c}return a}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),n=this.get(e),a={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let r=JSON.stringify(a);if(s?.compress)r=this.compress(r);if(s?.encrypt)r=this.encrypt(r);this.storage.setItem(o,r),this.notifyWatchers(e,t,n)}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((n)=>n(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 n=this.storage.getItem(o)||"";e+=o.length+n.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 ip={local:new ae("local"),session:new ae("session")};function lp(e="local",t){return new ae(e,t)}var An="./Switch-acwd7n07.stx";var Ln="./Table-3ek3w95h.stx";var Nn="./TableBody-y49bqb1p.stx";var Mn="./TableCell-8swtcq8s.stx";var zn="./TableHead-e9xvjx2j.stx";var jn="./TableHeader-qsc3e208.stx";var Vn="./TableRow-dt8e11aj.stx";var qn="./TabPanel-5htevsq6.stx";var Wn="./Tabs-3j2h0jjn.stx";var Un="./Teleport-vqs75x36.stx";var Gn="./Textarea-k8cjs4zs.stx";var Xn="./Tooltip-v2wc1dtw.stx";var Zn="./Transition-7m0mk45s.stx";var ta="./Video-rhy7dskw.stx";var oa="./VirtualList-fa7v5a3h.stx";var aa="./VirtualTable-kp7b3wyv.stx";var ra=0;function Ne(e="a11y"){return`${e}-${++ra}-${Date.now()}`}function Qp(e,t,s={}){let{visible:o=!1,id:n=Ne("label")}=s,a=document.createElement(o?"label":"span");if(a.id=n,a.textContent=e,!o)Object.assign(a.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",n),t.parentElement)t.parentElement.insertBefore(a,t);else document.body.appendChild(a);return n}function Zp(e,t){let s=Ne("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 eu(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 xe(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 tu(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:n=!0,clickOutsideDeactivates:a=!0,allowOutsideClick:r=!1,onActivate:i,onDeactivate:c}=t,p=!1,u=!1,d=null,g=(x)=>{if(u)return;if(n&&x.key==="Escape"){x.preventDefault(),C();return}if(x.key==="Tab"){let T=xe(e);if(T.length===0){x.preventDefault();return}let P=T[0],S=T[T.length-1];if(x.shiftKey){if(document.activeElement===P)x.preventDefault(),S.focus()}else if(document.activeElement===S)x.preventDefault(),P.focus()}},f=(x)=>{if(u)return;if(!e.contains(x.target)){if(typeof r==="function"){if(!r(x)&&a)C()}else if(!r&&a)C()}};function y(){if(p)return;p=!0,d=document.activeElement;let x=s||xe(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",g),document.addEventListener("click",f),i?.()}function C(){if(!p)return;p=!1;let x=o||d;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",g),document.removeEventListener("click",f),c?.()}function k(){u=!0}function b(){u=!1}return{activate:y,deactivate:C,pause:k,unpause:b}}function su(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:n="both",loop:a=!0,onFocusChange:r}=t,i=o,c=()=>Array.from(e.querySelectorAll(s)),p=(d)=>{let g=c();if(d<0||d>=g.length)return;g.forEach((f,y)=>{if(y===d){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),i=d,r?.(d,g[d])},u=(d)=>{let f=c().length-1,y=!1,C=i;switch(d.key){case"ArrowRight":if(n==="horizontal"||n==="both"){if(C=i+1,C>f)C=a?0:f;y=!0}break;case"ArrowLeft":if(n==="horizontal"||n==="both"){if(C=i-1,C<0)C=a?f:0;y=!0}break;case"ArrowDown":if(n==="vertical"||n==="both"){if(C=i+1,C>f)C=a?0:f;y=!0}break;case"ArrowUp":if(n==="vertical"||n==="both"){if(C=i-1,C<0)C=a?f:0;y=!0}break;case"Home":C=0,y=!0;break;case"End":C=f,y=!0;break}if(y)d.preventDefault(),p(C)};return p(o),e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}var ou={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function nu(e){return document.activeElement===e}function au(e,t){let s=t||document.activeElement,o=xe(document.body),n=o.indexOf(s);if(n===-1)return;let a=e==="next"?n+1:n-1,r=o[a];if(r)r.focus()}function ru(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 iu={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 lu(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 cu(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function du(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function pu(){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 uu(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 hu(e){let t=[],s=(o)=>{let n=e.getAttribute(o);if(n){let a=n.split(" ");for(let r of a)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 ia=(e,t,s,o)=>s*e/o+t,la=(e,t,s,o)=>(e/=o,s*e*e+t),ca=(e,t,s,o)=>(e/=o,-s*e*(e-2)+t),da=(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},pa=(e,t,s,o)=>(e/=o,s*e*e*e+t),ua=(e,t,s,o)=>(e/=o,e--,s*(e*e*e+1)+t),ha=(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},fa=(e,t,s,o)=>(e/=o,s*e*e*e*e+t),ma=(e,t,s,o)=>(e/=o,e--,-s*(e*e*e*e-1)+t),ga=(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},ba=(e,t,s,o)=>(e/=o,s*e*e*e*e*e+t),xa=(e,t,s,o)=>(e/=o,e--,s*(e*e*e*e*e+1)+t),va=(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},wa=(e,t,s,o)=>-s*Math.cos(e/o*(Math.PI/2))+s+t,ya=(e,t,s,o)=>s*Math.sin(e/o*(Math.PI/2))+t,ka=(e,t,s,o)=>-s/2*(Math.cos(Math.PI*e/o)-1)+t,Ca=(e,t,s,o)=>e===0?t:s*2**(10*(e/o-1))+t,$a=(e,t,s,o)=>e===o?t+s:s*(-(2**(-10*e/o))+1)+t,Sa=(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},Ea=(e,t,s,o)=>(e/=o,-s*(Math.sqrt(1-e*e)-1)+t),Ta=(e,t,s,o)=>(e/=o,e--,s*Math.sqrt(1-e*e)+t),Ia=(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},Aa=(e,t,s,o)=>{let n=1.70158,a=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!a)a=o*0.3;if(r<Math.abs(s))r=s,n=a/4;else n=a/(2*Math.PI)*Math.asin(s/r);return e-=1,-(r*2**(10*e)*Math.sin((e*o-n)*(2*Math.PI)/a))+t},Pa=(e,t,s,o)=>{let n=1.70158,a=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!a)a=o*0.3;if(r<Math.abs(s))r=s,n=a/4;else n=a/(2*Math.PI)*Math.asin(s/r);return r*2**(-10*e)*Math.sin((e*o-n)*(2*Math.PI)/a)+s+t},La=(e,t,s,o)=>{let n=1.70158,a=0,r=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!a)a=o*0.44999999999999996;if(r<Math.abs(s))r=s,n=a/4;else n=a/(2*Math.PI)*Math.asin(s/r);if(e<1)return e-=1,-0.5*(r*2**(10*e)*Math.sin((e*o-n)*(2*Math.PI)/a))+t;return e-=1,r*2**(-10*e)*Math.sin((e*o-n)*(2*Math.PI)/a)*0.5+s+t},Oa=(e,t,s,o)=>(e/=o,s*e*e*(2.70158*e-1.70158)+t),Na=(e,t,s,o)=>(e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t),Da=(e,t,s,o)=>{let n=1.70158;if(e/=o/2,e<1)return n*=1.525,s/2*(e*e*((n+1)*e-n))+t;return e-=2,n*=1.525,s/2*(e*e*((n+1)*e+n)+2)+t},ve=(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},De=(e,t,s,o)=>s-ve(o-e,0,s,o)+t,Ma=(e,t,s,o)=>{if(e<o/2)return De(e*2,0,s,o)*0.5+t;return ve(e*2-o,0,s,o)*0.5+s*0.5+t},mu={linear:ia,easeInQuad:la,easeOutQuad:ca,easeInOutQuad:da,easeInCubic:pa,easeOutCubic:ua,easeInOutCubic:ha,easeInQuart:fa,easeOutQuart:ma,easeInOutQuart:ga,easeInQuint:ba,easeOutQuint:xa,easeInOutQuint:va,easeInSine:wa,easeOutSine:ya,easeInOutSine:ka,easeInExpo:Ca,easeOutExpo:$a,easeInOutExpo:Sa,easeInCirc:Ea,easeOutCirc:Ta,easeInOutCirc:Ia,easeInElastic:Aa,easeOutElastic:Pa,easeInOutElastic:La,easeInBack:Oa,easeOutBack:Na,easeInOutBack:Da,easeInBounce:De,easeOutBounce:ve,easeInOutBounce:Ma};function Ra(e,t={}){let{duration:s="1s",timing:o="ease",delay:n="0s",iteration:a="1",direction:r="normal",fill:i="both",playState:c="running"}=t;return`${e} ${s} ${o} ${n} ${a} ${r} ${i} ${c}`}function Me(e,t,s={}){e.style.animation=Ra(t,s)}function bu(e){e.style.animation=""}function za(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function xu(e,t,s={}){let{stagger:o=100,...n}=s;e.forEach((a,r)=>{let i=`${r*o}ms`;Me(a,t,{...n,delay:i})})}async function vu(e,t){for(let s of t)Me(e,s.name,s.options),await za(e)}var wu={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 yu(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function ku(e,t){let s=`
11
+ `)}`)}return{valid:r.length===0,errors:r}}function H(e,t,s){return(o)=>kt(e,o,t,s)}function mi(e,t,s="value"){if(!oe)return;if(!t.validate(e,s,"assertion"))throw Error(t.message(e,s,"assertion"))}function gi(e,t,s="value"){if(!oe)return;if(!t.validate(e,s,"warning"))console.warn(t.message(e,s,"warning"))}var $t="./Button-bpjmfkq6.stx";var St={variant:l.oneOf(["primary","secondary","outline","ghost","danger"]),size:l.oneOf(["xs","sm","md","lg","xl"]),disabled:l.boolean,loading:l.boolean,type:l.oneOf(["button","submit","reset"]),fullWidth:l.boolean,leftIcon:l.string,rightIcon:l.string,className:l.string,onClick:l.func},yi=H("Button",St);function ki(e){return Ae(e,"Button","onClick")}function Ci(e){if(e&&!["primary","secondary","outline","ghost","danger"].includes(e))throw J.invalidProp("Button","variant",e,["primary","secondary","outline","ghost","danger"])}function $i(e){if(e&&!["xs","sm","md","lg","xl"].includes(e))throw J.invalidProp("Button","size",e,["xs","sm","md","lg","xl"])}var Tt="./Calendar-5vs6x7gj.stx";var At="./DateRangePicker-z64qqw84.stx";var Lt="./EmptyState-s790dbym.stx";var Nt="./ThemeToggle-4wm9zare.stx";var Mt="./Card-r55zpjqh.stx";var zt="./Checkbox-kepzk3h5.stx";var jt="./Combobox-9xh1jgjr.stx";var Vt="./ComboboxButton-4r6a45s1.stx";var qt="./ComboboxInput-1gyfpnca.stx";var Wt="./ComboboxOption-wkw70js7.stx";var Ut="./ComboboxOptions-zhr9b6rx.stx";var Gt="./CommandPalette-vvaqtqat.stx";var Xt="./CommandPaletteItem-7290ce1z.stx";var Zt="./Dialog-e9a4r6d0.stx";var ts="./DialogBackdrop-de5m5m4w.stx";var os="./DialogDescription-gth4c2kx.stx";var as="./DialogPanel-vhdqymc2.stx";var is="./DialogTitle-ke58hh68.stx";var cs="./Drawer-hc0jjpsw.stx";var ps="./Dropdown-25160tc6.stx";var hs="./DropdownButton-wxc25hsy.stx";var ms="./DropdownItem-af0vzc8a.stx";var bs="./DropdownItems-bkz7jkyz.stx";var vs="./Form-ewzy10ye.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},Ol=H("Form",ws);var ks="./Image-6d7ssp75.stx";var $s="./EmailInput-ffzwvp9r.stx";var Es="./NumberInput-r2wsh8w9.stx";var Is="./PasswordInput-36bws0kf.stx";var Ps="./SearchInput-w15r5t95.stx";var Os="./TextInput-h9trj9f9.stx";var Ns={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},Ds={value:l.string,onChange:l.func,placeholder:l.string,disabled:l.boolean,readonly:l.boolean,size:l.oneOf(["sm","md","lg"]),error:l.boolean,label:l.string,helperText:l.string,required:l.boolean,className:l.string,inputClassName:l.string,leftIcon:l.string,rightIcon:l.string,clearable:l.boolean,maxLength:l.number,showCount:l.boolean},Ms={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},Rs={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},zs={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},Kl=H("TextInput",Ds),Wl=H("EmailInput",Ns),_l=H("PasswordInput",Rs),Ul=H("NumberInput",Ms),Jl=H("SearchInput",zs);var js="./Listbox-32gzxace.stx";var Vs="./ListboxButton-gan8e3nw.stx";var qs="./ListboxLabel-ka0hfm7b.stx";var Ws="./ListboxOption-gpaqvk3s.stx";var Us="./ListboxOptions-2928864k.stx";var Gs="./FilterChip-00ja5jhz.stx";var Xs="./FilterChips-7pnzycfd.stx";var Zs="./ListRow-8d3e1yxh.stx";var to="./NavBar-qqrrhdnk.stx";var oo="./SectionCard-8ctdacjr.stx";var ao="./TabBar-8143650x.stx";var io="./TabBarItem-kddfnhk3.stx";var co="./Navigator-1yk1c3pp.stx";var uo="./Notification-b3cz24f0.stx";var fo="./Pagination-8bhbkpcp.stx";var go="./Checkout-crbegxyv.stx";var xo="./DefaultPaymentMethod-ss3x61tr.stx";var wo="./PaymentMethods-z4hhr0kv.stx";var ko="./SubscriptionCheckout-rdcv32n1.stx";var $o="./Popover-9m42pym0.stx";var Eo="./PopoverButton-3w6550hv.stx";var Io="./PopoverPanel-d84gk1w1.stx";var Po="./Portal-m73vz879.stx";var Oo="./Progress-2qzb77kc.stx";var Do="./Radio-8153x74w.stx";var Ro="./RadioGroup-smqcqgds.stx";var Ho="./RadioGroupDescription-z34r9avr.stx";var Fo="./RadioGroupLabel-ka0hfm7b.stx";var Bo="./RadioGroupOption-twcw1b2a.stx";var Ko="./Select-pv44ngbe.stx";var _o="./Sidebar-8dygywjv.stx";var Jo="./SidebarFooter-s7skj92y.stx";var Yo="./SidebarHeader-x7jdhmyr.stx";var Qo="./SidebarItem-r4f2pref.stx";var en="./SidebarPinned-48kyk193.stx";var sn="./SidebarSection-5sqza2j6.stx";var nn="./SidebarSpace-bwv98azf.stx";var rn="./SidebarSpaces-mdtrynr2.stx";var cn="./SidebarSpaceSwitcher-1mycft2g.stx";var ne={blue:"#0088ff",red:"#ff383c",pink:"#ff2d55",orange:"#ff8d28",yellow:"#ffcc00",green:"#34c759",teal:"#00c3d0",cyan:"#00c0e8",indigo:"#6155f5",purple:"#cb30e0",brown:"#ac7f5e",gray:"#8e8e93"},W={pane:["bg-[#f2f2f4]/90 dark:bg-[#1c1c1e]/88","backdrop-blur-[50px] backdrop-saturate-[180%]","text-black dark:text-white","select-none"].join(" "),selection:"accent",layers:{shimmerRim:!0},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[10px] pb-[10px]",sectionHeader:["group/section flex w-full items-center","pl-[8px] pr-[6px] pt-[16px] pb-[5px]","text-[11px] font-semibold leading-[13px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),sectionChevron:["i-f7-chevron-down h-[11px] w-[11px] ml-auto","text-[#3c3c43]/45 dark:text-[#ebebf5]/45","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col",item:{base:["flex w-full items-center","h-[32px] rounded-[8px] pl-[4px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-black dark:text-white","transition-colors duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-black/4 dark:hover:bg-white/6",active:"",pressed:"active:bg-black/10 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[18px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[11px] w-[11px]","text-[#3c3c43]/55 dark:text-[#ebebf5]/55","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[20px] w-[22px] shrink-0 items-center justify-center mr-[7px]",icon:"h-[17px] w-[17px]",image:"h-[20px] w-[20px] rounded-[4px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[13px] leading-[16px]","text-[#3c3c43]/60 dark:text-[#ebebf5]/60"].join(" "),indentPerLevel:16}},dn={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}},pn={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}},un={selection:"classes",pane:["bg-[#f7f5f1]/92 dark:bg-[#1a1a1c]/92","backdrop-blur-[40px] backdrop-saturate-[160%]","text-[#2c2a28] dark:text-[#ededf0]","select-none"].join(" "),layers:{tint:["bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,251,242,0.55))_0%,rgba(255,255,255,0)_38%)]","dark:bg-[linear-gradient(180deg,var(--stx-sidebar-tint,rgba(255,255,255,0.05))_0%,rgba(255,255,255,0)_42%)]"].join(" ")},scrollArea:"flex-1 overflow-y-auto overflow-x-hidden px-[16px] pb-[8px]",sectionHeader:["group/section flex w-full items-center","px-[8px] pt-[14px] pb-[4px]","text-[11px] font-medium leading-[13px]","opacity-55"].join(" "),sectionChevron:["i-f7-chevron-down h-[10px] w-[10px] ml-auto","opacity-0 group-hover/section:opacity-100 transition-opacity duration-150","transition-transform duration-200"].join(" "),sectionGroup:"flex flex-col space-y-[2px]",item:{base:["flex w-full items-center","h-[30px] rounded-[8px] pl-[6px] pr-[8px]","text-[13px] leading-[16px] font-normal","text-current","transition-[background-color,box-shadow,color] duration-150 ease-out","cursor-default"].join(" "),hover:"hover:bg-white/55 dark:hover:bg-white/8",active:["bg-white dark:bg-white/14","font-medium","shadow-[0_1px_2px_rgba(0,0,0,0.08)] dark:shadow-[0_1px_2px_rgba(0,0,0,0.35)]","ring-1 ring-black/5 dark:ring-white/8"].join(" "),pressed:"active:bg-white/80 dark:active:bg-white/18",disabled:"opacity-40 pointer-events-none",disclosure:"flex h-[16px] w-[16px] shrink-0 items-center justify-center",chevron:["i-f7-chevron-right h-[10px] w-[10px] opacity-45","transition-transform duration-200 ease-out"].join(" "),iconSlot:"flex h-[18px] w-[18px] shrink-0 items-center justify-center mr-[8px]",icon:"h-[16px] w-[16px]",image:"h-[18px] w-[18px] rounded-[5px] object-cover shadow-sm",label:"flex-1 truncate text-left",count:["ml-[8px] shrink-0 tabular-nums","text-[12px] leading-[16px] opacity-45"].join(" "),indentPerLevel:14}},hn={...W,pane:"bg-stone-100 dark:bg-neutral-900 text-black dark:text-white select-none",layers:{}},fn={...W,pane:"bg-transparent text-black dark:text-white select-none",layers:{}},mn={...W,pane:"bg-white/50 dark:bg-black/40 backdrop-blur-3xl backdrop-saturate-200 text-black dark:text-white select-none",layers:{}},Pe={macos:W,tahoe:W,"macos-tahoe":W,"macos-latest":W,arc:un,workspace:dn,desktop:pn,solid:hn,transparent:fn,vibrancy:mn};function Id(e){return Pe[e||"macos"]||Pe.macos}function Ad(e){if(!e)return;return ne[e]||e}var gn=ne.gray;function B(e,t,s){return`color-mix(in oklab, ${e} ${t}%, ${s})`}function Le(e){return{light:{from:B(e,35,"#ffffff"),to:B(e,12.5,"#ffffff"),ink:B(e,22,"#17171b"),accent:B(e,88,"#2a2a30")},dark:{from:B(e,27,"#101014"),to:B(e,10,"#08080b"),ink:B(e,12,"#f4f4f7"),accent:B(e,74,"#ffffff")}}}function Od(e,t){return`linear-gradient(180deg, ${e} 0%, ${t} 100%)`}function bn(e){if(!e)return Le(gn);if(typeof e!=="string")return e;return Le(ne[e]||e)}function xn(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 Oe(e,t,s,o){if(!e||!e.label)return null;return{id:e.id||`${t}-${s}`,label:e.label,icon:e.icon||o}}function vn(e){let t=bn(e.tint);return{id:e.id,label:e.label||"",icon:e.icon||"",pinned:e.pinned||[],sections:e.sections||[],action:Oe(e.action,e.id,"action","i-f7-plus"),clear:Oe(e.clear,e.id,"clear","i-f7-arrow-down"),tint:t,style:xn(t),deferred:e.deferred===!0,showTitle:e.showTitle??!0}}function Nd(e){return(e||[]).map(vn)}function Dd(e,t){if(!t)return 0;let s=e.findIndex((o)=>o.id===t);return s===-1?0:s}function Md(e){return e.map((t)=>t.tint)}var yn="./Skeleton-m4p66zcs.stx";var Cn="./Spinner-vhnc3y03.stx";var Sn="./Stepper-68gxcmej.stx";var Tn="./StepperStep-zf4pq1s0.stx";class ae{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,n=e.newValue?JSON.parse(e.newValue).value:null;s.forEach((a)=>a(n,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=[],n="";for(let a=0;a<e.length;a++){let r=e.charAt(a),i=n+r;if(t[i]!==void 0)n=i;else o.push(n.length>1?t[n]:n.charCodeAt(0)),t[i]=s++,n=r}if(n!=="")o.push(n.length>1?t[n]:n.charCodeAt(0));return JSON.stringify(o)}decompress(e){try{let t=JSON.parse(e);if(!Array.isArray(t))return e;let s={},o=256,n=String.fromCharCode(t[0]),a=n;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=n+n.charAt(0);else return e;a+=c,s[o++]=n+c.charAt(0),n=c}return a}catch{return e}}getKey(e){return this.namespace?`${this.namespace}:${e}`:e}set(e,t,s){let o=this.getKey(e),n=this.get(e),a={value:t,timestamp:Date.now(),expire:s?.expire,encrypted:s?.encrypt||!1,compressed:s?.compress||!1};try{let r=JSON.stringify(a);if(s?.compress)r=this.compress(r);if(s?.encrypt)r=this.encrypt(r);this.storage.setItem(o,r),this.notifyWatchers(e,t,n)}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((n)=>n(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 n=this.storage.getItem(o)||"";e+=o.length+n.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 ip={local:new ae("local"),session:new ae("session")};function lp(e="local",t){return new ae(e,t)}var An="./Switch-acwd7n07.stx";var Ln="./Table-3ek3w95h.stx";var Nn="./TableBody-y49bqb1p.stx";var Mn="./TableCell-8swtcq8s.stx";var zn="./TableHead-e9xvjx2j.stx";var jn="./TableHeader-qsc3e208.stx";var Vn="./TableRow-dt8e11aj.stx";var qn="./TabPanel-5htevsq6.stx";var Wn="./Tabs-3j2h0jjn.stx";var Un="./Teleport-vqs75x36.stx";var Gn="./Textarea-k8cjs4zs.stx";var Xn="./Tooltip-z13bn0pv.stx";var Zn="./Transition-7m0mk45s.stx";var ta="./Video-rhy7dskw.stx";var oa="./VirtualList-fa7v5a3h.stx";var aa="./VirtualTable-kp7b3wyv.stx";var ra=0;function Ne(e="a11y"){return`${e}-${++ra}-${Date.now()}`}function Qp(e,t,s={}){let{visible:o=!1,id:n=Ne("label")}=s,a=document.createElement(o?"label":"span");if(a.id=n,a.textContent=e,!o)Object.assign(a.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",n),t.parentElement)t.parentElement.insertBefore(a,t);else document.body.appendChild(a);return n}function Zp(e,t){let s=Ne("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 eu(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 xe(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 tu(e,t={}){let{initialFocus:s,returnFocus:o,escapeDeactivates:n=!0,clickOutsideDeactivates:a=!0,allowOutsideClick:r=!1,onActivate:i,onDeactivate:c}=t,p=!1,u=!1,d=null,g=(x)=>{if(u)return;if(n&&x.key==="Escape"){x.preventDefault(),C();return}if(x.key==="Tab"){let T=xe(e);if(T.length===0){x.preventDefault();return}let P=T[0],S=T[T.length-1];if(x.shiftKey){if(document.activeElement===P)x.preventDefault(),S.focus()}else if(document.activeElement===S)x.preventDefault(),P.focus()}},f=(x)=>{if(u)return;if(!e.contains(x.target)){if(typeof r==="function"){if(!r(x)&&a)C()}else if(!r&&a)C()}};function y(){if(p)return;p=!0,d=document.activeElement;let x=s||xe(e)[0];if(x&&typeof x.focus==="function")x.focus();document.addEventListener("keydown",g),document.addEventListener("click",f),i?.()}function C(){if(!p)return;p=!1;let x=o||d;if(x&&typeof x.focus==="function")x.focus();document.removeEventListener("keydown",g),document.removeEventListener("click",f),c?.()}function k(){u=!0}function b(){u=!1}return{activate:y,deactivate:C,pause:k,unpause:b}}function su(e,t={}){let{selector:s='[role="option"], [role="menuitem"], [role="tab"], button',initialIndex:o=0,orientation:n="both",loop:a=!0,onFocusChange:r}=t,i=o,c=()=>Array.from(e.querySelectorAll(s)),p=(d)=>{let g=c();if(d<0||d>=g.length)return;g.forEach((f,y)=>{if(y===d){if(f.setAttribute("tabindex","0"),typeof f.focus==="function")f.focus()}else f.setAttribute("tabindex","-1")}),i=d,r?.(d,g[d])},u=(d)=>{let f=c().length-1,y=!1,C=i;switch(d.key){case"ArrowRight":if(n==="horizontal"||n==="both"){if(C=i+1,C>f)C=a?0:f;y=!0}break;case"ArrowLeft":if(n==="horizontal"||n==="both"){if(C=i-1,C<0)C=a?f:0;y=!0}break;case"ArrowDown":if(n==="vertical"||n==="both"){if(C=i+1,C>f)C=a?0:f;y=!0}break;case"ArrowUp":if(n==="vertical"||n==="both"){if(C=i-1,C<0)C=a?f:0;y=!0}break;case"Home":C=0,y=!0;break;case"End":C=f,y=!0;break}if(y)d.preventDefault(),p(C)};return p(o),e.addEventListener("keydown",u),()=>{e.removeEventListener("keydown",u)}}var ou={Enter:"Enter",Space:" ",Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Tab:"Tab",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown"};function nu(e){return document.activeElement===e}function au(e,t){let s=t||document.activeElement,o=xe(document.body),n=o.indexOf(s);if(n===-1)return;let a=e==="next"?n+1:n-1,r=o[a];if(r)r.focus()}function ru(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 iu={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 lu(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 cu(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-reduced-motion: reduce)").matches;return!1}function du(){if(typeof window.matchMedia==="function")return window.matchMedia("(prefers-contrast: high)").matches;return!1}function pu(){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 uu(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 hu(e){let t=[],s=(o)=>{let n=e.getAttribute(o);if(n){let a=n.split(" ");for(let r of a)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 ia=(e,t,s,o)=>s*e/o+t,la=(e,t,s,o)=>(e/=o,s*e*e+t),ca=(e,t,s,o)=>(e/=o,-s*e*(e-2)+t),da=(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},pa=(e,t,s,o)=>(e/=o,s*e*e*e+t),ua=(e,t,s,o)=>(e/=o,e--,s*(e*e*e+1)+t),ha=(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},fa=(e,t,s,o)=>(e/=o,s*e*e*e*e+t),ma=(e,t,s,o)=>(e/=o,e--,-s*(e*e*e*e-1)+t),ga=(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},ba=(e,t,s,o)=>(e/=o,s*e*e*e*e*e+t),xa=(e,t,s,o)=>(e/=o,e--,s*(e*e*e*e*e+1)+t),va=(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},wa=(e,t,s,o)=>-s*Math.cos(e/o*(Math.PI/2))+s+t,ya=(e,t,s,o)=>s*Math.sin(e/o*(Math.PI/2))+t,ka=(e,t,s,o)=>-s/2*(Math.cos(Math.PI*e/o)-1)+t,Ca=(e,t,s,o)=>e===0?t:s*2**(10*(e/o-1))+t,$a=(e,t,s,o)=>e===o?t+s:s*(-(2**(-10*e/o))+1)+t,Sa=(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},Ea=(e,t,s,o)=>(e/=o,-s*(Math.sqrt(1-e*e)-1)+t),Ta=(e,t,s,o)=>(e/=o,e--,s*Math.sqrt(1-e*e)+t),Ia=(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},Aa=(e,t,s,o)=>{let n=1.70158,a=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!a)a=o*0.3;if(r<Math.abs(s))r=s,n=a/4;else n=a/(2*Math.PI)*Math.asin(s/r);return e-=1,-(r*2**(10*e)*Math.sin((e*o-n)*(2*Math.PI)/a))+t},Pa=(e,t,s,o)=>{let n=1.70158,a=0,r=s;if(e===0)return t;if(e/=o,e===1)return t+s;if(!a)a=o*0.3;if(r<Math.abs(s))r=s,n=a/4;else n=a/(2*Math.PI)*Math.asin(s/r);return r*2**(-10*e)*Math.sin((e*o-n)*(2*Math.PI)/a)+s+t},La=(e,t,s,o)=>{let n=1.70158,a=0,r=s;if(e===0)return t;if(e/=o/2,e===2)return t+s;if(!a)a=o*0.44999999999999996;if(r<Math.abs(s))r=s,n=a/4;else n=a/(2*Math.PI)*Math.asin(s/r);if(e<1)return e-=1,-0.5*(r*2**(10*e)*Math.sin((e*o-n)*(2*Math.PI)/a))+t;return e-=1,r*2**(-10*e)*Math.sin((e*o-n)*(2*Math.PI)/a)*0.5+s+t},Oa=(e,t,s,o)=>(e/=o,s*e*e*(2.70158*e-1.70158)+t),Na=(e,t,s,o)=>(e/=o,e--,s*(e*e*(2.70158*e+1.70158)+1)+t),Da=(e,t,s,o)=>{let n=1.70158;if(e/=o/2,e<1)return n*=1.525,s/2*(e*e*((n+1)*e-n))+t;return e-=2,n*=1.525,s/2*(e*e*((n+1)*e+n)+2)+t},ve=(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},De=(e,t,s,o)=>s-ve(o-e,0,s,o)+t,Ma=(e,t,s,o)=>{if(e<o/2)return De(e*2,0,s,o)*0.5+t;return ve(e*2-o,0,s,o)*0.5+s*0.5+t},mu={linear:ia,easeInQuad:la,easeOutQuad:ca,easeInOutQuad:da,easeInCubic:pa,easeOutCubic:ua,easeInOutCubic:ha,easeInQuart:fa,easeOutQuart:ma,easeInOutQuart:ga,easeInQuint:ba,easeOutQuint:xa,easeInOutQuint:va,easeInSine:wa,easeOutSine:ya,easeInOutSine:ka,easeInExpo:Ca,easeOutExpo:$a,easeInOutExpo:Sa,easeInCirc:Ea,easeOutCirc:Ta,easeInOutCirc:Ia,easeInElastic:Aa,easeOutElastic:Pa,easeInOutElastic:La,easeInBack:Oa,easeOutBack:Na,easeInOutBack:Da,easeInBounce:De,easeOutBounce:ve,easeInOutBounce:Ma};function Ra(e,t={}){let{duration:s="1s",timing:o="ease",delay:n="0s",iteration:a="1",direction:r="normal",fill:i="both",playState:c="running"}=t;return`${e} ${s} ${o} ${n} ${a} ${r} ${i} ${c}`}function Me(e,t,s={}){e.style.animation=Ra(t,s)}function bu(e){e.style.animation=""}function za(e){return new Promise((t)=>{let s=()=>{e.removeEventListener("animationend",s),t()};e.addEventListener("animationend",s)})}function xu(e,t,s={}){let{stagger:o=100,...n}=s;e.forEach((a,r)=>{let i=`${r*o}ms`;Me(a,t,{...n,delay:i})})}async function vu(e,t){for(let s of t)Me(e,s.name,s.options),await za(e)}var wu={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 yu(e,t,s=1000){return new Promise((o)=>{e.classList.add(t),setTimeout(()=>{e.classList.remove(t),o()},s)})}function ku(e,t){let s=`
12
12
  @keyframes ${e} {
13
13
  ${Object.entries(t).map(([n,a])=>{let r=Object.entries(a).map(([i,c])=>`${i}: ${c};`).join(" ");return`${n} { ${r} }`}).join(`
14
14
  `)}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/components",
3
3
  "type": "module",
4
- "version": "0.2.439",
4
+ "version": "0.2.440",
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",
@@ -69,8 +69,8 @@
69
69
  "dependencies": {
70
70
  "@iconify-json/f7": "^1.2.2",
71
71
  "@stacksjs/ts-css": "^0.3.2",
72
- "@stacksjs/stx": "0.2.439",
73
- "bun-plugin-stx": "0.2.439",
72
+ "@stacksjs/stx": "0.2.440",
73
+ "bun-plugin-stx": "0.2.440",
74
74
  "ts-syntax-highlighter": "^0.2.17"
75
75
  },
76
76
  "devDependencies": {
@@ -65,7 +65,9 @@ const tooltipId = {{ tooltipId }}
65
65
  const triggerRef = useRef('triggerRef')
66
66
  const panelRef = useRef('panelRef')
67
67
  const preferredSide = {{ position }}
68
- const panelLimits = 'max-width:calc(100vw - 16px);margin:0;'
68
+ // The body portal uses viewport coordinates. Fixed positioning also prevents
69
+ // a static body's margins from shifting the measured placement offscreen.
70
+ const panelLimits = 'position:fixed;max-width:calc(100vw - 16px);margin:0;'
69
71
  const panelStyle = state(panelLimits)
70
72
  const arrowStyle = state('')
71
73
  const isDisabled = useReactiveProp('disabled', {{ disabled }})